infrun.c: Split handle_inferior_event further.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4f5d7f63
PA
12013-11-14 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (struct execution_control_state)
4 <stepped_after_stopped_by_watchpoint>: New field.
5 (get_inferior_stop_soon): New function.
6 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
7 moved to struct execution_control_state -- adjust. Use
8 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
9 new function.
10 (handle_signal_stop): New function, factored out from
11 handle_inferior_event.
12
47591c29
PA
132013-11-14 Pedro Alves <palves@redhat.com>
14
15 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
16 return a boolean.
17 * breakpoint.c (bpstat_explains_signal): Adjust to return a
18 boolean.
19 (explains_signal_watchpoint, base_breakpoint_explains_signal):
20 Adjust to return a boolean.
21 * breakpoint.h (enum bpstat_signal_value): Delete.
22 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
23 (bpstat_explains_signal): Likewise.
24 * infrun.c (handle_inferior_event) <random signal checks>:
25 bpstat_explains_signal now returns a boolean - adjust. No longer
26 consider hiding signals.
27
bac7d97b
PA
282013-11-14 Pedro Alves <palves@redhat.com>
29
30 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
31 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
32 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
33 BPSTAT_SIGNAL_HIDE.
34 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
35 instead of BPSTAT_SIGNAL_HIDE.
36 * infrun.c (handle_inferior_event): Rework random signal checks.
37
ce12b012
PA
382013-11-14 Pedro Alves <palves@redhat.com>
39
40 * infrun.c (struct execution_control_state): Remove
41 'random_signal' field.
42 (handle_syscall_event): Use bpstat_causes_stop instead of
43 bpstat_explains_signal. Don't set ecs->random_signal.
44 (handle_inferior_event): New 'random_signal' local.
45 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
46 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
47 bpstat_explains_signal. Don't set ecs->random_signal.
48 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
49 ecs->random_signal.
50
05ba8510
PA
512013-11-14 Pedro Alves <palves@redhat.com>
52
53 * infrun.c (handle_inferior_event): Move comment from the
54 function's body to the function's description, adjusted.
55
5c09a2c5
PA
562013-11-14 Pedro Alves <palves@redhat.com>
57
58 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
59 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
60 Assert we never fall through out of the TARGET_WAITKIND_LOADED
61 case.
62
91822956
TT
632013-11-14 Tom Tromey <tromey@redhat.com>
64
65 * python/py-linetable.c (ltpy_has_line)
66 (ltpy_get_all_source_lines): Fix loop termination condition.
67
403cb6b1
JB
682013-11-14 Joel Brobecker <brobecker@adacore.com>
69
70 * mi/mi-parse.h (struct mi_parse) <language>: New field.
71 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
72 PARSE->LANGUAGE during command execution, if set.
73 * mi/mi-parse.c: Add "language.h" #include.
74 (mi_parse): Add parsing of "--language" command option.
75
76 * NEWS: Add entry mentioning the new "--language" command option.
77
b5be8ce0
JB
782013-11-14 Pedro Alves <palves@redhat.com>
79 Joel Brobecker <brobecker@adacore.com>
80
81 * cli/cli-utils.h (extract_arg_const): Add declaration.
82 * cli/cli-utils.c (extract_arg_const): New function.
83 (extract_arg): Reimplement using extract_arg_const.
84
671afef6
JB
852013-11-14 Joel Brobecker <brobecker@adacore.com>
86
87 * language.h: Add "symtab.h" #include.
88
6c1b0f7b
DE
892013-11-13 Doug Evans <xdje42@gmail.com>
90
91 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
92 specific breakpoints, don't evaluate breakpoint condition if
93 different thread.
94
74921315
KS
952013-11-13 Keith Seitz <keiths@redhat.com>
96
248ace2e 97 PR c++/7935
74921315
KS
98 PR c++/10541
99 * cp-support.c (insepct_type): Add support for substituting
100 namespace aliases, too.
101 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
102 for DW_TAG_imported_declaration.
103 (add_partial_symbol): Likewise.
104 (process_die): Handle namespace aliases with
105 read_namespace_alias.
106 (die_needs_namespace): Add DW_TAG_imported_declaration.
107 (read_namespace_alias): New function.
108 (load_partial_dies): Load DW_TAG_imported_declaration, too.
109 (new_symbol_full): Handle DW_TAG_imported_declaration.
110
793156e6
KS
1112013-11-13 Keith Seitz <keiths@redhat.com>
112
113 * p-exp.y (uptok): Make first parameter const.
114 (yylex): Make `tokstart' and `tokptr' const.
115 Don't copy the lexer input to a temporary buffer.
116 Make `p' const.
117 Remove const workaround for parse_escape.
118 Create a temporary buffer for a convenience variable instead
119 of doing in-place modification of the input.
120 If a match is found with a different case from the input,
121 do not change the input at all.
122 Use `tmp' to construct the resultant stoken instead of
123 `tokstart'.
124
c42bd95a
DE
1252013-11-13 Doug Evans <xdje42@gmail.com>
126
127 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
128
93973826
JB
1292013-11-13 Joel Brobecker <brobecker@adacore.com>
130
131 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
132 entry with "ada-exceptions".
133
846060df
JB
1342013-11-13 Joel Brobecker <brobecker@adacore.com>
135
136 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
137 after re-initialization of OBJFILE's obstack.
138
5efd1b2b 1392013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
140
141 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
142 bs->stop != 0 on entry. Update function comment. Simplify early
143 exit for frame mismatch. Reindent rest of function.
144
ee7615e1
AA
1452013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
146
147 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
148 NULL.
149
8943b874
DE
1502013-11-12 Doug Evans <dje@google.com>
151
152 Work around gold/15646.
153 * dwarf2read.c (read_index_from_section): Update comment.
154 (struct dw2_symtab_iterator): New member global_seen.
155 (dw2_symtab_iter_init): Initialize it.
156 (dw2_symtab_iter_next): Skip duplicate global symbols.
157 (dw2_expand_symtabs_matching): Ditto.
158
a8a9844d
JB
1592013-11-12 Joel Brobecker <brobecker@adacore.com>
160
161 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
162 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
163 command.
164 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
165 (mi_cmd_info_ada_exceptions): New function.
166 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
167
778865d3
JB
1682013-11-12 Joel Brobecker <brobecker@adacore.com>
169
170 * ada-lang.h: #include "vec.h".
171 (struct ada_exc_info): New.
172 (ada_exc_info): New typedef.
173 (DEF_VEC_O(ada_exc_info)): New vector.
174 (ada_exceptions_list): Add declaration.
175 * ada-lang.c (ada_is_exception_sym)
176 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
177 (sort_remove_dups_ada_exceptions_list)
178 (ada_exc_search_name_matches, ada_add_standard_exceptions)
179 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
180 (ada_exceptions_list_1, ada_exceptions_list)
181 (info_exceptions_command): New function.
182 (_initialize_ada_language): Add "info exception" command.
183
bc79de95
PM
1842013-11-11 Phil Muldoon <pmuldoon@redhat.com>
185
186 PR python/15629
187 * NEWS: Add linetable feature.
188 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
189 * python/py-linetable.c: New file.
190 * python/py-symtab.c (stpy_get_linetable): New function.
191 * python/python-internal.h (symtab_to_linetable_object): Declare.
192 (gdbpy_initialize_linetable): Ditto.
193 * python/python.c (_initialize_python): Call
194 gdbpy_initialize_linetable.
195
2df4d1d5
JB
1962013-11-11 Joel Brobecker <brobecker@adacore.com>
197
198 * ada-lang.c (create_ada_exception_catchpoint): Enhance
199 the documentation of fields "except_string" and "condition".
200 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
201 CONDITION on the heap before passing it to
202 create_ada_exception_catchpoint.
203 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
204 CONDITION.
205
99c1d451
TT
2062013-11-11 Tom Tromey <tromey@redhat.com>
207
208 * config.in, configure: Rebuild.
209 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
210
8ca5801b
JB
2112013-11-11 Joel Brobecker <brobecker@adacore.com>
212
213 * remote-sim.c (gdbsim_detach): Break declaration into
214 shorter lines. No code change.
215
7a06d430
EBM
2162013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
217
218 * remote-sim.c (gdbsim_detach): Fix prototype.
219
73be47f5
DE
2202013-11-08 Doug Evans <dje@google.com>
221
222 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
223 (create_debug_types_hash_table): Only print debugging messages for
224 each TU if dwarf2-read >= 2.
225 (process_queue): Ditto.
226 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
227 Update doc string.
228
a18d8f10
TT
2292013-11-08 Tom Tromey <tromey@redhat.com>
230
231 * configure: Rebuild.
232 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
233
9467110b
TT
2342013-11-08 Tom Tromey <tromey@redhat.com>
235
236 * configure, config.in: Rebuild.
237 * configure.ac: Remove unused configury.
238
69706679
TT
2392013-11-08 Tom Tromey <tromey@redhat.com>
240
241 * m32c-tdep.c: Use gdb_string.h.
242
9b4bea72
TT
2432013-11-08 Tom Tromey <tromey@redhat.com>
244
245 * configure, config.in: Rebuild.
246 * configure.ac: Remove all link.h-related checks.
247
3266f10b
TT
2482013-11-08 Tom Tromey <tromey@redhat.com>
249
250 * acinclude.m4: Include common.m4.
251 * common/common.m4: New file.
252 * configure, config.in: Rebuild.
253 * configure.ac: Use GDB_AC_COMMON.
254
db0fec5c
DE
2552013-11-08 Doug Evans <dje@google.com>
256
257 * NEWS: Mention that "set debug symtab-create" now accepts a
258 verbosity level.
259 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
260 to set the symtab's primary flag.
261 * jit.c (finalize_symtab): Ditto.
262 * mdebugread.c (psymtab_to_symtab_1): Ditto.
263 * symfile.c (allocate_symtab): Only print debugging messages for
264 symtab_create_debug levels 2 and higher.
265 * symtab.c (symtab_create_debug): Change type to unsigned int.
266 (set_symtab_primary): New function.
267 (_initialize_symtab): Change "set debug symtab-create" to a
268 zuinteger option.
269 * symtab.h (set_symtab_primary): Declare.
270 (symtab_create_debug): Update decl.
271
52554a0e
TT
2722013-11-08 Tom Tromey <tromey@redhat.com>
273
274 * aix-thread.c (aix_thread_detach): Update.
275 * corelow.c (core_detach): Update.
276 * darwin-nat.c (darwin_detach): Update.
277 * dec-thread.c (dec_thread_detach): Update.
278 * gnu-nat.c (gnu_detach): Update.
279 * go32-nat.c (go32_detach): Update.
280 * inf-ptrace.c (inf_ptrace_detach): Update.
281 * inf-ttrace.c (inf_ttrace_detach): Update.
282 * linux-fork.c (linux_fork_detach): Update.
283 * linux-fork.h (linux_fork_detach): Update.
284 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
285 local for const-correctness.
286 * linux-thread-db.c (thread_db_detach): Update.
287 * monitor.c (monitor_detach): Update.
288 * nto-procfs.c (procfs_detach): Update.
289 * procfs.c (procfs_detach): Update.
290 * record.c (record_detach): Update.
291 * record.h (record_detach): Update.
292 * remote-m32r-sdi.c (m32r_detach): Update.
293 * remote-mips.c (mips_detach): Update.
294 * remote-sim.c (gdbsim_detach): Update.
295 * remote.c (remote_detach_1, remote_detach)
296 (extended_remote_detach): Update.
297 * sol-thread.c (sol_thread_detach): Update.
298 * target.c (target_detach): Make "args" const.
299 (init_dummy_target): Update.
300 * target.h (struct target_ops) <to_detach>: Make argument const.
301 (target_detach): Likewise.
302 * windows-nat.c (windows_detach): Update.
303
204b5331
DE
3042013-11-07 Doug Evans <dje@google.com>
305
306 PR 11786
307 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
308 and align fields for PT_GNU_RELRO segments.
309
92e32e33
PM
3102013-11-07 Phil Muldoon <pmuldoon@redhat.com>
311
312 PR python/15747
313 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
314
f76c27b5
PM
3152013-11-07 Phil Muldoon <pmuldoon@redhat.com>
316
317 * NEWS: Document Python temporary breakpoint support.
318 * python/py-breakpoint.c (bppy_get_temporary): New function.
319 (bppy_init): New keyword: temporary. Parse it and set breakpoint
320 to temporary if True.
321
d52cd232
JM
3222013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
323
324 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
325 removed to allow analyzing unconditional branch instructions
326 with PC-relative offsets of zero.
327
fa4d0c40
YQ
3282013-11-07 Yao Qi <yao@codesourcery.com>
329
330 * mi/mi-cmd-var.c: Include "language.h".
331 (mi_cmd_var_info_expression): Get language name from
332 language_defn.
333 * varobj.c (varobj_language_string): Remove.
334 (variable_language): Remove declaration.
335 (languages): Remove.
336 (varobj_get_language): Change the type of return value.
337 (variable_language): Remove.
338 * varobj.h (enum varobj_languages): Remove.
339 (varobj_language_string): Remove declaration.
340 (varobj_get_language): Update declaration.
341
6abde28f
YQ
3422013-11-07 Yao Qi <yao@codesourcery.com>
343
344 * language.h (struct language_defn) <la_natural_name>: New
345 field.
346 * ada-lang.c (ada_language_defn): Initialize field
347 'la_natural_name'.
348 * c-lang.c (c_language_defn): Likewise.
349 (cplus_language_defn, asm_language_defn): Likewise.
350 * d-lang.c (d_language_defn): Likewise.
351 * f-lang.c (f_language_defn): Likewise.
352 * go-lang.c (go_language_defn): Likewise.
353 * jv-lang.c (java_language_defn): Likewise.
354 * language.c (unknown_language_defn ): Likewise.
355 (auto_language_defn): Likewise.
356 * m2-lang.c (m2_language_defn): Likewise.
357 * objc-lang.c (objc_language_defn): Likewise.
358 * opencl-lang.c (opencl_language_defn): Likewise.
359 * p-lang.c (pascal_language_defn): Likewise.
360
27cd387b
YQ
3612013-11-07 Yao Qi <yao@codesourcery.com>
362
363 * language.c (language_str): Return const char *.
364 (add_language): Add const to 'language_names'
365 * language.h (struct language_defn) <la_name>: Add const.
366 (language_str: Update declaration.
367
6682d959
AA
3682013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
369
370 * s390-linux-nat.c (s390_read_description): Consider the TE field
371 in the HWCAP for determining 'have_regset_tdb'.
372
b9502d3f
WN
3732013-11-06 Will Newton <will.newton@linaro.org>
374
375 PR gdb/12866
376 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
377 values. (read_partial_die): Likewise.
378
840da61a
MB
3792013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
380
381 PR cli/16122
382 * top.c (command_line_input): Unify interactivity tests to use
383 input_from_terminal_p.
384 * event-top.c (command_line_handler): Likewise.
385
7636ccf9
YQ
3862013-11-06 Yao Qi <yao@codesourcery.com>
387
388 * Makefile.in (check-perf): New target.
389
12b27276
WN
3902013-11-05 Will Newton <will.newton@linaro.org>
391
392 PR gdb/7670
393 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
394 (arm_print_float_info): Likewise.
395
67c059c2
AB
3962013-11-04 Anton Blanchard <anton@samba.org>
397
398 * target.c (memory_xfer_partial): Cap write to 4KB.
399
0569175e
TSD
4002013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
401
402 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
403 probe scan even when the arch provides no get_longjmp_target.
404
b18e90f5
PA
4052013-10-31 Pedro Alves <palves@redhat.com>
406
407 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
408 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
409 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
410 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
411 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
412 <bpstat handling>: If the bpstat chain wants the signal to be
413 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
414 GDB_SIGNAL_TRAP.
415
638aa5a1
AB
4162013-10-31 Andrew Burgess <aburgess@broadcom.com>
417
418 * breakpoint.c (update_watchpoint): Update error message and add
419 an additional error message.
420
0e5fae36
UW
4212013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
422
423 * s390-tdep.h: Rename to...
424 * s390-linux-tdep.h: ...here.
425 * s390-tdep.c: Rename to...
426 * s390-linux-tdep.c: ...here. Adjust #include.
427 * s390-nat.c: Rename to...
428 * s390-linux-nat.c: ...here. Adjust #include.
429 * config/s390/s390.mh: Rename to...
430 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
431 s390-linux-nat.o.
432 * configure.host: Reflect host rename "s390" -> "linux".
433 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
434 * Makefile.in (ALL_TARGET_OBS): Likewise.
435 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
436 s390-linux-tdep.h.
437 (ALLDEPFILES): Reflect rename of .c files.
438
34201ae3
UW
4392013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
440
441 * s390-nat.c: Whitespace cleanup.
442 * s390-tdep.c: Likewise.
443 * s390-tdep.h: Remove empty line at end of file.
444
e17aaa33
MR
4452013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
446
447 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
448 siginfo_size.
449
aee17e42
TT
4502013-10-29 Tom Tromey <tromey@redhat.com>
451
452 * utils.c (reg): Move undefinition...
453 * gdb_curses.h: ... here. Update comment to mention AIX.
454
9ac69859
NB
4552013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
456
457 * exec.h (add_target_sections_of_objfile): New declaration.
458 * exec.c (add_target_sections_of_objfile): New function.
459 * symfile.c (add_symbol_file_command): Update current target sections.
460 (remove_symbol_file_command): New command.
461 (symfile_free_objfile): New function.
462 (_initialize_symfile): Register observer for free_objfile events.
463 * NEWS: Add description of the remove-symbol-file command.
464 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
465 * objfiles.c (free_objfile): Notify free_objfile.
466 (is_addr_in_objfile): New function.
467 * objfiles.h (is_addr_in_objfile): New declaration.
468 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
469 events instead of solib_unloaded events.
470 (_initialize_printcmd): Register observer for free_objfile instead
471 of solib_unloaded notifications.
472 * solib.c (remove_user_added_objfile): New function.
473 (_initialize_symfile): Add remove-symbol-file.
474
f69d9aef
AB
4752013-10-29 Andrew Burgess <aburgess@broadcom.com>
476
477 * infcmd.c (default_print_one_register_info): Use val_print to
478 print all values even optimized out or unavailable ones. Don't
479 try to print a raw form of optimized out or unavailable values.
480
487ad57c
YQ
4812013-10-29 Yao Qi <yao@codesourcery.com>
482
483 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
484 parameter 'arg' instead of from program_space_data.
485 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
486 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
487 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
488 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
489 * inflow.c (inflow_inferior_data_cleanup): Get data from
490 parameter 'arg' instead of inferior_data.
491 * registry.h: Add comments.
492
3c4797ba
PA
4932013-10-28 Pedro Alves <palves@redhat.com>
494
495 * breakpoint.c (watchpoints_triggered)
496 <!target_stopped_data_address>: Hardcode return 1.
497
cdaa5b73
PA
4982013-10-28 Pedro Alves <palves@redhat.com>
499
500 * infrun.c (process_event_stop_test): Remove unnecessary scoping
501 level and reindent.
502
94c57d6a
PA
5032013-10-28 Pedro Alves <palves@redhat.com>
504
505 * infrun.c (process_event_stop_test): New function, factored out
506 from handle_inferior_event.
507 (handle_inferior_event): 'process_event_stop_test' is now a
508 function instead of a goto label -- adjust.
509
fcf3daef
PA
5102013-10-28 Pedro Alves <palves@redhat.com>
511
512 * infrun.c (handle_inferior_event): Move process_event_stop_test
513 goto label to the else branch of the ecs->random_signal check,
514 along with FRAME and GDBARCH re-fetching.
515
c447ac0b
PA
5162013-10-28 Pedro Alves <palves@redhat.com>
517
518 * infrun.c (switch_back_to_stepped_thread): New function, factored
519 out from handle_inferior_event.
520 (handle_inferior_event): Adjust to call
521 switch_back_to_stepped_thread. Call it also at the tail of the
522 random signal handling, and return, instead of also handling
523 random signals just before the stepping tests.
524
f05e4c11
PA
5252013-10-28 Pedro Alves <palves@redhat.com>
526
527 * infrun.c (clear_stop_func): Delete.
528 (handle_inferior_event): Don't call clear_stop_func and don't
529 clear 'ecs->random_signal'.
530
ca20d462
YQ
5312013-10-27 Yao Qi <yao@codesourcery.com>
532
533 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
534 (varobj_create, varobj_get_path_expr): Update.
535 (varobj_value_has_mutated, varobj_update): Likewise.
536 (create_child_with_value, new_root_variable): Likewise.
537 (number_of_children, name_of_variable): Likewise.
538 (value_of_child, my_value_of_variable): Likewise.
539 (varobj_value_is_changeable_p): Likewise.
540
a53b64ea
YQ
5412013-10-25 Yao Qi <yao@codesourcery.com>
542
543 * language.h (struct lang_varobj_ops): Declare.
544 (struct language_defn) <la_varobj_ops>: New field.
545 * ada-lang.c: Include "varobj.h"
546 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
547 ada_varobj_ops.
548 * c-lang.c: Include "varobj.h"
549 (c_language_defn): Initialize field 'la_varobj_ops' with
550 c_varobj_ops.
551 (cplus_language_defn): Initialize field 'la_varobj_ops' with
552 cplus_varobj_ops.
553 (asm_language_defn): Initialize field 'la_varobj_ops' with
554 default_varobj_ops.
555 (minimal_language_defn): Likewise.
556 * d-lang.c (d_language_defn): Likewise.
557 * f-lang.c (f_language_defn): Likewise.
558 * go-lang.c (go_language_defn): Likewise.
559 * m2-lang.c (m2_language_defn): Likewise.
560 * objc-lang.c (objc_language_defn): Likewise.
561 * opencl-lang.c (opencl_language_defn): Likewise.
562 * p-lang.c (pascal_language_defn): Likewise.
563 * language.c (unknown_language_defn): Likewise.
564 (auto_language_defn): Likewise.
565 (local_language_defn): Likewise.
566 * jv-lang.c (java_language_defn): Initialize field
567 'la_varobj_ops' with java_varobj_ops.
568 * varobj.c (varobj_create): Update.
569 * varobj.h (default_varobj_ops): Define macro.
570
686d4def
PA
5712013-10-25 Pedro Alves <palves@redhat.com>
572
573 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
574 static field value.
575 (cp_print_static_field): If the value is entirely optimized out,
576 print <optimized out> here.
577 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
578 static field value.
579 * p-valprint.c (pascal_object_print_static_field): If the value is
580 entirely optimized out, print <optimized out> here.
581 * valops.c (do_search_struct_field)
582 (value_struct_elt_for_reference): No longer handle a NULL static
583 field value.
584 * value.c (value_static_field): Return an optimized out value
585 instead of NULL.
586
6c177e28
YQ
5872013-10-25 Yao Qi <yao@codesourcery.com>
588
589 * remote.c (remote_traceframe_info): Return early if
590 traceframe is not selected.
591
98322bfa
YQ
5922013-10-25 Yao Qi <yao@codesourcery.com>
593
594 * tracepoint.c (traceframe_fun): Remove.
595 (traceframe_sal): Remove.
596 (set_traceframe_context): Add local variables.
597
6ba1f115
JB
5982013-10-25 Joel Brobecker <brobecker@adacore.com>
599
600 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
601 and parameter name.
602
bbe769cc
MR
6032013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
604
605 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
606 failure from register information collection.
607
72ee4495 6082013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
609
610 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
611 member.
612 (linux_corefile_thread_callback): Update accordingly.
613 (linux_make_corefile_notes): Likewise.
614
98882a26
PA
6152013-10-24 Pedro Alves <palves@redhat.com>
616
617 * NEWS (New options): Mention set/show startup-with-shell.
618 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
619 instead of 3.
620 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
621 startup-with-shell'.
622 (show_startup_with_shell): New function.
623 (_initialize_fork_child): Register the set/show startup-with-shell
624 commands.
625 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
626 * inf-ttrace.c (inf_ttrace_him): Remove comment.
627 * procfs.c (procfs_init_inferior): Remove comment.
628 * infcmd.c (startup_with_shell): New global.
629 * inferior.h (startup_with_shell): Declare global.
630 (STARTUP_WITH_SHELL): Delete.
631 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
632
c9737c08
PA
6332013-10-23 Pedro Alves <palves@redhat.com>
634
635 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
636 * common/signals.c: Include "gdb_assert.h".
637 (signals): New field 'symbol'.
638 (SET): Use the 'symbol' parameter.
639 (gdb_signal_to_symbol_string): New function.
640 * infrun.c (handle_inferior_event) <random signal>: In debug
641 output, print the random signal enum as string in addition to its
642 number.
643 * target/waitstatus.c (target_waitstatus_to_string): Print the
644 signal's enum value as string instead of the (POSIX) signal name.
645
f60db4f0
GB
6462013-10-23 Gary Benson <gbenson@redhat.com>
647
648 PR 16013
649 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
650 from 32 to 18. Adjusted fscanf format string accordingly.
651 (Avoids leaving cmd unterminated.)
652 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
653 trun, retn or extra. (Avoids leaving extra unterminated.) Check
654 that local_address and remote_address will not overflow.
655 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
656 leaving dependencies unterminated. Parse size as "%u" to match
657 definition.
658
6d3e7a94
PA
6592013-10-22 Pedro Alves <palves@redhat.com>
660
661 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
662 set ecs->random signal.
663
42ec045f
PA
6642013-10-22 Pedro Alves <palves@redhat.com>
665
666 * infrun.c (keep_going): Update comments.
667
6682013-10-22 Pedro Alves <palves@redhat.com>
669
670 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
671 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
672
6732013-10-22 Pedro Alves <palves@redhat.com>
674
675 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
676 GDB_EXC_BAD_ACCESS.
677 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
678 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
679 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
680 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
681 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
682 (GDB_SIGNAL_LAST): Change description string.
683 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
684 Adjust to signal renaming.
685 * darwin-nat.c (darwin_decode_message): Likewise.
686
c8fde1b1
JM
6872013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
688
689 * MAINTAINERS (Write After Approval): Add myself to the list.
690
e8369a73
AB
6912013-10-18 Andrew Burgess <aburgess@broadcom.com>
692
693 * breakpoint.c (update_watchpoint): If hardware watchpoints are
694 forced off, downgrade them to software watchpoints if possible,
695 and error out if not possible.
696 (watch_command_1): Move watchpoint type selection closer to
697 watchpoint creation, and extend the comments.
698
776f04fa
PA
6992013-10-18 Pedro Alves <palves@redhat.com>
700
701 PR gdb/16062
702 * infrun.c (handle_inferior_event): Keep going if we got a random
703 signal we should not stop for, instead of falling through to the
704 step tests.
705
0c6faab5
YQ
7062013-10-18 Yao Qi <yao@codesourcery.com>
707
708 * c-varobj.c (cplus_number_of_children): Fix indentation.
709
50b34a18
TT
7102013-10-17 Tom Tromey <tromey@redhat.com>
711
712 PR gdb/15995:
713 * printcmd.c (printcmd): Call gdb_flush.
714
5c4c8a59
TT
7152013-10-17 Tom Tromey <tromey@redhat.com>
716
717 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
718 (elf_locate_sections): Update.
719
c4124bf1
YQ
7202013-10-17 Yao Qi <yao@codesourcery.com>
721
722 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
723 * ada-varobj.c: Remove the include of ada-varobj.h.
724 (ada_varobj_get_number_of_children): Declare.
725 (ada_varobj_get_name_of_child): Make it static.
726 (ada_varobj_get_path_expr_of_child): Likewise.
727 (ada_varobj_get_value_of_child): Likewise.
728 (ada_varobj_get_type_of_child): Likewise.
729 (ada_varobj_get_value_of_array_variable): Likewise.
730 * ada-varobj.h: Remove.
731
99ad9427
YQ
7322013-10-17 Yao Qi <yao@codesourcery.com>
733
734 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
735 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
736 * ada-varobj.c: Include "varobj.h".
737 (ada_number_of_children): New. Moved from varobj.c.
738 (ada_name_of_variable, ada_name_of_child): Likewise.
739 (ada_path_expr_of_child, ada_value_of_child): Likewise.
740 (ada_type_of_child, ada_value_of_variable): Likewise.
741 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
742 (ada_varobj_ops): New.
743 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
744 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
745 * gdbtypes.h (get_target_type): Declare.
746 * varobj.c: Remove the inclusion of "ada-varobj.h" and
747 "ada-lang.h".
748 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
749 (ANONYMOUS_UNION_NAME): Likewise.
750 (get_type, get_value_type, get_target_type): Remove declarations.
751 (value_get_print_value, varobj_value_get_print_value): Likewise.
752 (c_number_of_children, c_name_of_variable): Likewise.
753 (c_name_of_child, c_path_expr_of_child): Likewise.
754 (c_value_of_child, c_type_of_child): Likewise.
755 (c_value_of_variable, cplus_number_of_children): Likewise.
756 (cplus_class_num_children, cplus_name_of_variable): Likewise.
757 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
758 (cplus_value_of_child, cplus_type_of_child): Likewise.
759 (cplus_value_of_variable, java_number_of_children): Likewise.
760 (java_name_of_variable, java_name_of_child): Likewise.
761 (java_path_expr_of_child, java_value_of_child): Likewise.
762 (java_type_of_child, java_value_of_variable): Likewise.
763 (ada_number_of_children, ada_name_of_variable): Likewise.
764 (ada_name_of_child, ada_path_expr_of_child): Likewise.
765 (ada_value_of_child, ada_type_of_child): Likewise.
766 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
767 (ada_value_has_mutated): Likewise.
768 (struct language_specific): Move it to varobj.h.
769 (CPLUS_FAKE_CHILD): Move it to varobj.h.
770 (restrict_range): Rename it varobj_restrict_range. Make it extern.
771 Callers update.
772 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
773 Make it extern.
774 (is_anonymous_child): Move it to c-varobj.c and rename to
775 varobj_is_anonymous_child. Caller update.
776 (get_type): Move it to c-varobj.c.
777 (get_value_type): Rename it varobj_get_value_type. Make it
778 extern.
779 (get_target_type): Move it gdbtypes.c.
780 (varobj_formatted_print_options): New function.
781 (value_get_print_value): Rename it to
782 varobj_value_get_print_value and make it extern.
783 (varobj_value_is_changeable_p): Make it extern.
784 (adjust_value_for_child_access): Move it to c-varobj.c.
785 (default_value_is_changeable_p): Rename it to
786 varobj_default_value_is_changeable_p. Make it extern.
787 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
788 (c_name_of_child, c_path_expr_of_child): Likewise.
789 (c_value_of_child, c_type_of_child): Likewise.
790 (c_value_of_variable, cplus_number_of_children): Likewise.
791 (cplus_class_num_children, cplus_name_of_variable): Likewise.
792 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
793 (cplus_value_of_child, cplus_type_of_child): Likewise.
794 (cplus_value_of_variable): Likewise.
795 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
796 (java_name_of_child, java_path_expr_of_child): Likewise.
797 (java_value_of_child, java_type_of_child): Likewise.
798 (java_value_of_variable): Likewise.
799 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
800 (ada_name_of_child, ada_path_expr_of_child): Likewise.
801 (ada_value_of_child, ada_type_of_child): Likewise.
802 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
803 (ada_value_has_mutated): Likewise.
804 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
805 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
806 (c_varobj_ops, cplus_varobj_ops): Declare.
807 (java_varobj_ops, ada_varobj_ops): Declare.
808 (varobj_default_value_is_changeable_p): Declare.
809 (varobj_value_is_changeable_p): Declare.
810 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
811 (varobj_get_path_expr_parent): Declare.
812 (varobj_value_get_print_value): Declare.
813 (varobj_formatted_print_options): Declare.
814 (varobj_restrict_range): Declare.
815
c8a62302
LM
8162013-10-17 Luis Machado <lgustavo@codesourcery.com>
817
818 * target/waitstatus.h (target_waitkind): Remove spurious
819 character from the comments.
820
eade6471
JB
8212013-10-17 Joel Brobecker <brobecker@adacore.com>
822
823 * gdbarch.sh (get_longjmp_target): Add method documentation.
824 * gdbarch.h: Regenerate.
825
5411b26c
TT
8262013-10-16 Tom Tromey <tromey@redhat.com>
827
828 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
829 label.
830
87326c87
LM
8312013-10-16 Luis Machado <lgustavo@codesourcery.com>
832
833 * gcore.in: Call GDB using the full path to the gcore script.
834 Error out if the GDB binary is not found.
835
fd0a4d76
SDJ
8362013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
837
838 PR gdb/16014
839 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
840 sizeof.
841
d92f7ee3
SDJ
8422013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
843
844 PR gdb/16042
845 * target.c (target_disable_btrace): Fix invalid return value for
846 void function.
847 (target_teardown_btrace): Likewise.
848
bb5ce47a
YQ
8492013-10-14 Yao Qi <yao@codesourcery.com>
850
851 * varobj.c (struct varobj): Move most of the fields to
852 varobj.h.
853 (struct varobj_dynamic): New struct.
854 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
855 (varobj_has_more): Likewise.
856 (dynamic_varobj_has_child_method): Likewise.
857 (update_dynamic_varobj_children): Likewise.
858 (varobj_get_num_children): Likewise.
859 (varobj_list_children, varobj_pretty_printed_p): Likewise.
860 (install_new_value_visualizer): Likewise.
861 (install_new_value_visualizer, install_new_value): Likewise.
862 (varobj_update, new_variable, free_variable): Likewise.
863 (my_value_of_variable, value_get_print_value): Likewise.
864 (install_visualizer): Change the type of parameter 'var' to
865 'struct varobjd_dynamic *'. Callers update.
866 * varobj.h (struct varobj): Moved from varobj.c.
867 (struct varobj) <dynamic>: New field.
868
0b76b0ce
SL
8692013-10-13 Sandra Loosemore <sandra@codesourcery.com>
870
871 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
872 as the preferred name of r30.
873 * nios2-linux-tdep.c (reg_offsets): Likewise.
874 * features/nios2-cpu.xml: Likewise.
875 * features/nios2-linux.c: Regenerated.
876 * features/nios2.c: Regenerated.
877 * regformats/nios2-linux.dat: Regenerated.
878
4856b6bc
JK
8792013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 Canonicalize directories for EXEC_FILENAME.
882 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
883 exec_filename.
884 * utils.c (gdb_realpath_keepfile): New function.
885 * utils.h (gdb_realpath_keepfile): New declaration.
886
9b557b58
DE
8872013-10-11 Doug Evans <dje@google.com>
888
889 * Makefile.in (GDBFLAGS): New variable.
890 (run): New rule.
891
ce13fade
JB
8922013-10-11 Joel Brobecker <brobecker@adacore.com>
893
894 * NEWS: Add entry documenting the new "-catch-assert" and
895 "-catch-exception" GDB/MI commands.
896
349774ef
JB
8972013-10-11 Joel Brobecker <brobecker@adacore.com>
898
899 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
900 "enabled".
901 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
902 "enabled". Set B->ENABLE_STATE accordingly.
903 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
904 ada-lang.c.
905 (create_ada_exception_catchpoint): Add declaration.
906 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
907 (create_ada_exception_catchpoint): Make non-static. Add new
908 parameter "disabled". Use it in call to
909 init_ada_exception_breakpoint.
910 (catch_ada_exception_command): Add parameter "enabled" in call
911 to create_ada_exception_catchpoint.
912 (catch_assert_command): Likewise.
913
914 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
915 Add declarations.
916 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
917 "catch-exception" commands.
918 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
919 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
920
761269c8
JB
9212013-10-11 Joel Brobecker <brobecker@adacore.com>
922
923 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
924 "enum exception_catchpoint_kind". Replace the "ex_" prefix
925 of all its enumerates with "ada_". Update the rest of this
926 file throughout.
927
b4a5b78b
JB
9282013-10-11 Joel Brobecker <brobecker@adacore.com>
929
930 * ada-lang.c (ada_decode_exception_location): Delete.
931 (create_ada_exception_catchpoint): Remove arguments "sal",
932 "addr_string" and "ops". Add argument "ex_kind" instead.
933 Adjust implementation accordingly, calling ada_exception_sal
934 to get the entities it no longer gets passed as arguments.
935 Document the function's arguments.
936 (catch_ada_exception_command): Use catch_ada_exception_command_split
937 instead of ada_decode_exception_location, and update call to
938 create_ada_exception_catchpoint.
939 (catch_ada_assert_command_split): Renames
940 ada_decode_assert_location. Remove parameters "addr_string" and
941 "ops", and now returns void. Adjust implementation accordingly.
942 Update the function documentation.
943 (catch_assert_command): Use catch_ada_assert_command_split
944 instead of ada_decode_assert_location. Update call to
945 create_ada_exception_catchpoint.
946
7ad1d32c 9472013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
948
949 * utils.h (perror_warning_with_name): Add declaration.
950 * utils.c (perror_warning_with_name): New function.
951 * cli/cli-cmds.c (source_script_with_search): Add call to
952 perror_warning_with_name if from_tty is nul.
953
7ad1d32c 9542013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
955
956 * utils.c (perror_string): New function, extracted out of
957 throw_perror_with_name.
958 (throw_perror_with_name): Rework to use perror_string.
959
bcc75809
YQ
9602013-10-11 Yao Qi <yao@codesourcery.com>
961
962 * remote.c (discard_pending_stop_replies_in_queue): Update
963 declaration.
964 (struct stop_reply) <rs>: New field.
965 (remove_stop_reply_of_remote_state): New function.
966 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
967 Callers update. Pass remove_stop_reply_of_remote_state to
968 QUEUE_iterate.
969 (remote_parse_stop_reply): Initialize field 'rs'.
970
05feb193
WN
9712013-10-10 Will Newton <will.newton@linaro.org>
972
973 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
974 linux_init_abi.
975
0d12017b
JB
9762013-10-10 Joel Brobecker <brobecker@adacore.com>
977
978 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
979 serial_baud_show_cmd.
980 (_initialize_cli_cmds): Delete the code creating the
981 "set/show remotebaud" commands.
982 * serial.c (baud_rate): Move here from top.c.
983 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
984 (_initialize_serial): Create "set/show serial baud" commands.
985 Add "set/show remotebaud" command aliases.
986 * top.c (baud_rate): Moved to serial.c.
987 * NEWS: Document the new "set/show serial baud" commands,
988 replacing "set/show remotebaud".
989
578d3588
PA
9902013-10-09 Pedro Alves <palves@redhat.com>
991
992 * breakpoint.c (insert_bp_location): Use memory_error_message to
993 build the memory error string.
994 * c-lang.c: Include "gdbcore.h".
995 (c_get_string): Use memory_error to throw error.
996 (target_xfer_memory_error): Delete.
997 (memory_error_message): New, factored out from
998 target_xfer_memory_error.
999 (memory_error): Change parameter type to target_xfer_error.
1000 Rewrite.
1001 (read_memory): Use memory_error instead of
1002 target_xfer_memory_error.
1003 * gdbcore.h: Include "target.h".
1004 (memory_error): Change parameter type to target_xfer_error.
1005 (memory_error_message): Declare function.
1006 * target.c (target_read_memory, target_read_stack)
1007 (target_write_memory, target_write_raw_memory): Return
1008 TARGET_XFER_E_IO on error. Adjust comments.
1009 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1010 instead of EIO.
1011 * target.h (target_read, target_insert_breakpoint)
1012 (target_remove_breakpoint): Adjust comments.
1013 * valprint.c (partial_memory_read): Rename parameter, and adjust
1014 comment.
1015 (val_print_string): Use memory_error_message to build the memory
1016 error string.
1017
c74e1ccf
JK
10182013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1019
1020 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1021 result variable. Rename variable fopen_e_ever_failed to
1022 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1023
915215be
PA
10242013-10-09 Pedro Alves <palves@redhat.com>
1025
1026 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1027 (monitor_write_memory_longlongs, monitor_write_memory_block):
1028 Constify 'myaddr' parameter.
1029 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1030 helper.
1031 (monitor_xfer_partial): New function.
1032 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1033 hook. Install a to_xfer_partial hook.
1034
acd13123
TT
10352013-10-09 Tom Tromey <tromey@redhat.com>
1036
1037 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1038 bfd_get_alt_debug_link_info.
1039
40135bb1
JK
10402013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1041
1042 New flag OBJF_NOT_FILENAME.
1043 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1044 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1045 allocate_objfile.
1046 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1047 symbol_file_add_from_bfd.
1048 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1049 allocate_objfile.
1050 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1051 NULL.
1052 * objfiles.h (OBJF_NOT_FILENAME): New.
1053
dc294be5
TT
10542013-10-08 Tom Tromey <tromey@redhat.com>
1055
1056 * Makefile.in (SFILES): Add build-id.c.
1057 (HFILES_NO_SRCDIR): Add build-id.h.
1058 * build-id.c: New file, largely from elfread.c. Modified
1059 most functions.
1060 * build-id.h: New file.
1061 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1062 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1063 Search for dwz file using build-id.
1064 * elfread.c (build_id_bfd_get, build_id_verify)
1065 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1066
db230ce3
JB
10672013-10-08 Joel Brobecker <brobecker@adacore.com>
1068
1069 * ada-lang.c (compare_names_with_case): Renamed from
1070 compare_names, adding a new parameter "casing" and its handling.
1071 New function documentation.
1072 (compare_names): New function, implemented using
1073 compare_names_with_case.
1074
6501c98a
JB
10752013-10-08 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1078
84a1243b
TT
10792013-10-07 Tom Tromey <tromey@redhat.com>
1080
1081 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1082 demangled_names_hash.
1083 (free_objfile): Don't delete the demangled_names_hash.
1084 * objfiles.h (struct objfile_per_bfd_storage)
1085 <demangled_names_hash>: New field.
1086 (struct objfile) <demangled_names_hash>: Move to
1087 objfile_per_bfd_storage.
1088 * symfile.c (reread_symbols): Don't delete the
1089 demangled_names_hash.
1090 * symtab.c (create_demangled_names_hash): Update.
1091 (symbol_set_names): Update.
1092
1da77581
TT
10932013-10-07 Tom Tromey <tromey@redhat.com>
1094
1095 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1096 needs_relocations>: New fields.
1097 (gdb_bfd_requires_relocations): New function.
1098 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1099 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1100 the BFD needs relocations applied.
1101
46ecd527
PA
11022013-10-07 Pedro Alves <palves@redhat.com>
1103
1104 PR breakpoints/11568
1105 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1106 the thread list" instead of "gone".
1107
0c557179
SDJ
11082013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1109
1110 * NEWS: Mention new convenience variable $_exitsignal.
1111 * corelow.c (core_open): Reset exit convenience variables. Set
1112 $_exitsignal to the uncaught signal which generated the corefile.
1113 * infrun.c (handle_inferior_event): Reset exit convenience
1114 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1115 (clear_exit_convenience_vars): New function.
1116 * inferior.h (clear_exit_convenience_vars): New prototype.
1117
1cc47d81
YQ
11182013-10-06 Yao Qi <yao@codesourcery.com>
1119
1120 * varobj.h: Add comments to enum varobj_languages.
1121
73869dc2
DE
11222013-10-04 Doug Evans <dje@google.com>
1123
1124 Add support for DWP file format version 2.
1125 * NEWS: Mention support for DWP file format version 2.
1126 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1127 union of asection, containing_section. New fields virtual_offset
1128 and is_virtual. Change type of readin filed from int to char.
1129 (dwo_sections, dwo_file): Tweak comments.
1130 (dwp_v2_section_ids): New enum.
1131 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1132 str_offsets, types.
1133 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1134 All uses updated.
1135 (virtual_v2_dwo_sections): New struct.
1136 (dwp_hash_table): New fields version, nr_columns. Change type of
1137 section_pool field to a union.
1138 (dwp_file): New field version.
1139 (dwarf2_has_info): Check for virtual sections.
1140 (get_containing_section): New function.
1141 (get_section_bfd_owner, get_section_bfd_section): Call it.
1142 (dwarf2_locate_sections): Update.
1143 (dwarf2_section_empty_p): Update.
1144 (dwarf2_read_section): Handle virtual sections.
1145 (locate_dwz_sections): Update.
1146 (create_dwp_hash_table): Document and handle V2 format.
1147 (locate_v1_virtual_dwo_sections): Renamed from
1148 locate_virtual_dwo_sections and update. All callers updated.
1149 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1150 Delete arg htab. Rename arg section_index to unit_index.
1151 All callers updated.
1152 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1153 All uses updated.
1154 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1155 (lookup_dwo_unit_in_dwp): Add V2 support.
1156 (dwarf2_locate_dwo_sections): Update.
1157 (dwarf2_locate_common_dwp_sections): Renamed from
1158 dwarf2_locate_dwp_sections and update. All callers updated.
1159 (dwarf2_locate_v2_dwp_sections): New function.
1160 (open_and_init_dwp_file): Add V2 support.
1161 (read_str_index): New locals str_section, str_offsets_section.
1162
9a2c3737
PA
11632013-10-04 Pedro Alves <palves@redhat.com>
1164
1165 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1166 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1167 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1168 describing comments with references to ptid.h.
1169 * common/ptid.h: Remove intro description of constructors,
1170 accessors and predicates.
1171 (struct ptid): Reformat.
1172 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1173 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1174 describing comments.
1175
f5371440
JB
11762013-10-04 Joel Brobecker <brobecker@adacore.com>
1177
1178 * aix-thread.c (sync_threadlists): Add missing ')' in call
1179 to ptid_build.
1180
793e1c06
JB
11812013-10-04 Joel Brobecker <brobecker@adacore.com>
1182
1183 * procfs.c (procfs_init_inferior): Fix typo causing the build
1184 to fail.
1185
26f0edc1
JB
11862013-10-04 Joel Brobecker <brobecker@adacore.com>
1187
1188 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1189
5713b9b5
JB
11902013-10-04 Joel Brobecker <brobecker@adacore.com>
1191
1192 * mi/mi-main.c (run_one_inferior): Add function description.
1193 Make ARG a pointer to an integer whose value determines whether
1194 we should "run" or "start" the program.
1195 (mi_cmd_exec_run): Add handling of the "--start" option.
1196 Reject all other command-line options.
1197 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1198
f48ff2a7
YQ
11992013-10-04 Yao Qi <yao@codesourcery.com>
1200
1201 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1202 (struct notif_client) <pending_event>: Moved
1203 to struct remote_notif_state.
1204 <id>: New field.
1205 (struct remote_notif_state) <pending_event>: New field.
1206 (notif_event_xfree): Declare.
1207 * remote-notif.c (handle_notification): Adjust.
1208 (notif_event_xfree): New function.
1209 (do_notif_event_xfree): Call notif_event_xfree.
1210 (remote_notif_state_xfree): Call notif_event_xfree to free
1211 each element in field pending_event.
1212 * remote.c (discard_pending_stop_replies): Remove declaration.
1213 (discard_pending_stop_replies_in_queue): Declare.
1214 (remote_close): Call discard_pending_stop_replies_in_queue
1215 instead of discard_pending_stop_replies.
1216 (remote_start_remote): Adjust.
1217 (stop_reply_xfree): Call notif_event_xfree.
1218 (notif_client_stop): Adjust initialization.
1219 (remote_notif_remove_all): Rename it to ...
1220 (remove_stop_reply_for_inferior): ... this. Update comments.
1221 Don't check INF is NULL.
1222 (discard_pending_stop_replies): Return early if notif_state is
1223 NULL. Adjust. Don't check INF is NULL.
1224 (remote_notif_get_pending_events): Adjust.
1225 (discard_pending_stop_replies_in_queue): New function.
1226 (remote_wait_ns): Likewise.
1227
5965e028
YQ
12282013-10-04 Yao Qi <yao@codesourcery.com>
1229
1230 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1231 (notif_queue): Remove.
1232 (remote_notif_process): Add one parameter 'notif_queue'.
1233 Update comments. Callers update.
1234 (remote_async_get_pending_events_token): Remove.
1235 (remote_notif_register_async_event_handler): Remove.
1236 (remote_notif_unregister_async_event_handler): Remove.
1237 (handle_notification): Add parameter 'notif_queue'. Update
1238 comments. Callers update.
1239 (notif_xfree): Remove.
1240 (remote_notif_state_allocate): New function.
1241 (remote_notif_state_xfree): New function.
1242 (_initialize_notif): Remove code to allocate queue.
1243 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1244 (struct remote_notif_state): New.
1245 (handle_notification): Update declaration.
1246 (remote_notif_process): Likewise.
1247 (remote_notif_register_async_event_handler): Remove.
1248 (remote_notif_unregister_async_event_handler): Remove.
1249 (remote_notif_state_allocate): Declare.
1250 (remote_notif_state_xfree): Declare.
1251 * remote.c (struct remote_state) <notif_state>: New field.
1252 (remote_close): Don't call
1253 remote_notif_unregister_async_event_handler. Call
1254 remote_notif_state_xfree.
1255 (remote_open_1): Don't call
1256 remote_notif_register_async_event_handler. Call
1257 remote_notif_state_allocate.
1258
5e5ac9a5
YQ
12592013-10-04 Yao Qi <yao@codesourcery.com>
1260
1261 * varobj.c (create_child_with_value): Remove 'const' from the
1262 type of parameter 'name'.
1263 (varobj_add_child): Likewise.
1264 (install_dynamic_child): Remove 'const' from the type of
1265 parameter 'name'.
1266 (varobj_add_child): Likewise.
1267 (create_child_with_value): Likewise. Update comments. Don't
1268 duplicate 'name'.
1269 (update_dynamic_varobj_children): Duplicate 'name'
1270 and pass it to install_dynamic_child.
1271
06ab7b19
PM
12722013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1273
1274 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1275 conversion logic to occur after PyLong_Check. Comment on order
1276 change significance.
1277 * python/py-arch.c (archpy_disassemble): Comment on order of
1278 conversion for integers and longs.
1279
8ae377e8
PA
12802013-10-03 Pedro Alves <palves@redhat.com>
1281
1282 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1283 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1284 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1285 PTRACE_O_TRACEFORK is not supported.
1286 (linux_test_for_tracesysgood): New function.
1287 (linux_test_for_tracefork): New function, factored out from
1288 linux_check_ptrace_features, and also don't kill child_pid here.
1289
b1328b1b
TG
12902013-10-03 Tristan Gingold <gingold@adacore.com>
1291
1292 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1293 Remove verbose error reporting. Use detected state to
1294 thread_set_state call.
1295 (i386_darwin_dr_get): Fix return type. Remove verbose error
1296 report.
1297 Remove trailing spaces.
1298
901461f8
PA
12992013-10-02 Pedro Alves <palves@redhat.com>
1300
1301 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1302 val_print_optimized_out.
1303 * jv-valprint.c (java_print_value_fields): Likewise.
1304 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1305 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1306 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1307 new optimized out value.
1308 * findvar.c (address_from_register): Likewise.
1309 * frame.c (put_frame_register): Tweak error string to say the
1310 register was not saved, rather than optimized out.
1311 * infcmd.c (default_print_one_register_info): Adjust call to
1312 val_print_optimized_out. Use value_of_register instead of
1313 get_frame_register_value.
1314 * mi/mi-main.c (output_register): Use value_of_register instead of
1315 get_frame_register_value.
1316 * valprint.c (valprint_check_validity): Likewise.
1317 (val_print_optimized_out): New value parameter. If the value is
1318 lval_register, print <not saved> instead.
1319 (value_check_printable, val_print_scalar_formatted): Adjust calls
1320 to val_print_optimized_out.
1321 * valprint.h (val_print_optimized_out): New value parameter.
1322 * value.c (struct value) <optimized_out>: Extend comment.
1323 (error_value_optimized_out): New function.
1324 (require_not_optimized_out): Use it. Use a different string for
1325 lval_register values.
1326 * value.h (error_value_optimized_out): New declaration.
1327 * NEWS: Mention <not saved>.
1328
042a84d9
JB
13292013-10-02 Joel Brobecker <brobecker@adacore.com>
1330
1331 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1332 strcmp to compare two symtab filenames.
1333
6b9780fb
JB
13342013-10-02 Joel Brobecker <brobecker@adacore.com>
1335
1336 * symtab.c (search_symbols_equal): Delete.
1337 (sort_search_symbols_remove_dups): Replace call to
1338 search_symbols_equal by call to compare_search_syms,
1339 adjusting as necessary.
1340
751e7549
PM
13412013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1342
1343 PR python/15579
751e7549
PM
1344 * python/python.c: Document gdb.execute command in Python help.
1345
1efd7661
PM
13462013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1347
1348 * python/py-frame.c (frame_info_to_frame_object): Use
1349 gdbpy_convert_exception. Clean up Python object on failure.
1350
562fc849
PM
13512013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1352
1353 * python/lib/gdb/command/frame_filters.py
1354 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1355 (ShowFrameFilterPriority.invoke): Ditto.
1356
d7561cbb
KS
13572013-10-01 Keith Seitz <keiths@redhat.com>
1358
1359 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1360 (parse_linespec): Make 'argptr' const.
1361 Remove temporary cast of 'argptr' to const char **.
1362 (decode_line_full): Pass const pointer to parse_linespec.
1363 (decode_line_1): Likewise.
1364 (decode_objc): Make local variable 'new_argptr' const.
1365 (find_function_symbols): Remove temporary cast to char *
1366 to find_imps.
1367 * objc-lang.c (find_imps): Make argument 'method' const.
1368 Return const.
1369 * objc-lang.h (find_imps): Likewise.
1370
13712013-10-01 Keith Seitz <keiths@redhat.com>
1372
1373 * completer.c (skip_quoted_chars): Make all arguments const.
1374 Return const.
1375 (skip_quoted): Likewise.
1376 * completer.h (skip_quoted_chars): Likewise.
1377 (skip_quoted): Likewise.
1378 * defs.h (skip_quoted): Remove duplicate declaration.
1379 * jv-exp.y: Include completer.h.
1380 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1381 * p-exp.y: Include completer.h.
1382
13832013-10-01 Keith Seitz <keiths@redhat.com>
1384
1385 * c-exp.y (parse_number): Make first argument const.
1386 Make a copy of the input to manipulate.
1387 (c_parse_escape): Make first argument const.
1388 Make local variable 'tokptr' const.
1389 (parse_string_or_char): Make first two arguments const.
1390 (macro_original_text): Make const.
1391 (lex_one_token): Make local variable 'tokstart' const.
1392 Likewise for local variables named 'p'.
1393 Cast away const for struct stoken (temporary).
1394 * c-lang.h (c_parse_escpae): Make first argument const.
1395 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1396 const.
1397 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1398 var_string case.
1399 * f-exp.y (parse_number): Make first argument const.
1400 (match_string_literal): Make local variable 'tokstart'
1401 const.
1402 (yylex): Make local variable 'p' const.
1403 Cast away const for struct stoken (temporary).
1404 * go-exp.y (parse_number): Make first argument const.
1405 (parse_string_or_char): Likewise.
1406 Make local variable 'tokstart' const.
1407 (lex_one_token): Likewise for numerous locals called 'p'.
1408 Cast away const for struct stoken (temporary).
1409 * jv-exp.y (parse_number): Make first argument const.
1410 Make local variables 'tokstart' and 'tokptr' const.
1411 Cast away const for call to skip_quoted (temporary).
1412 (yylex): Make local variable 'p' const.
1413 Cast away const for struct stoken (temporary).
1414 * m2-exp.y (parse_number): Make local variable 'p' const.
1415 (yylex): Likewise for 'tokstart'.
1416 Cast away const for struct stoken (temporary).
1417 Make local variable 'p' const.
1418 * macroexp.c (get_character_constant): Pass a const string
1419 to c_parse_escape.
1420 (get_string_literal): Likewise.
1421 (macro_expand_next): Make first argument const.
1422 Cast away const for init_shared_buffer.
1423 * macroexp.h (macro_expand_next): Make first argument const.
1424 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1425 Pass a const string to c_parse_escape.
1426 Make local variables 'p' and 'namestart' const.
1427 * parse.c (lexptr): Make const.
1428 (prev_lexptr): Likewise.
1429 (find_template_name_end): Return const.
1430 Make argument const, too.
1431 (parse_exp_in_context): Make first argument const.
1432 Remove the entire const_hack.
1433 (parse_exp_in_context_1): Make first argument const.
1434 * parser-defs.h (find_template_name_end): Return const.
1435 Make argument const, too.
1436 (lexptr): Make const.
1437 (prev_lexptr): Likewise.
1438 * utils.c (parse_escape): Make second argument const.
1439 * utils.h (parse_escape): Likewise.
1440
14412013-10-01 Keith Seitz <keiths@redhat.com>
1442
1443 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1444 is now const.
1445 (block_lookup): Make 'raw_name' and 'name' const.
1446 * ada-lex.l (processString): Update for struct stoken.ptr.
1447 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1448 (operator_stoken): Likewise.
1449 (lex_one_token): Remove temporary cast to char * for
1450 'yylval.sval.ptr'.
1451 * f-exp.y (yylex): Likewise.
1452 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1453 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1454 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1455 'yylval.sval.ptr'.
1456 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1457 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1458 * linespec.c (struct ls_parser): Make 'stream' const.
1459 (find_parameter_list_end): Make argument 'input' and local
1460 variable 'p' const.
1461 (linespec_lexer_lex_string): Make local variables 'start' and
1462 'p' const.
1463 Use skip_spaces_const instead of skip_spaces.
1464 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1465 const.
1466 (parse_linespec): Temporarily cast 'argptr' to const for
1467 'parser->lexer.stream'.
1468 * m2-exp.y (yylex): Remove temporary cast to char * for
1469 'yylval.sval.ptr'.
1470 * objc-lang.c (add_msglist): Make local variable 'p' const.
1471 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1472 (exp : STRING): Make 'sp' const.
1473 (parse_number): Make argument 'p' const.
1474 * parser-defs.h (struct stoken): Make 'ptr' const.
1475
193a8eac
DE
14762013-10-01 Doug Evans <dje@google.com>
1477
1478 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1479
2213e2be
YQ
14802013-10-01 Yao Qi <yao@codesourcery.com>
1481
1482 * varobj.c (c_value_of_root): Remove declaration.
1483 (cplus_value_of_root, java_value_of_root): Likewise.
1484 (ada_value_of_root): Likewise.
1485 (struct language_specific) <value_of_root>: Remove.
1486 (languages): Update initialization.
1487 (check_scope): Move earlier.
1488 (c_value_of_root): Move earlier and rename to ...
1489 (value_of_root_1): ... this.
1490 (value_of_root): Caller update.
1491 (cplus_value_of_root, java_value_of_root): Remove.
1492 (ada_value_of_root): Remove.
1493
c573f273
YQ
14942013-10-01 Yao Qi <yao@codesourcery.com>
1495
1496 * varobj.c (varobj_format_string): Remove "unknown".
1497 (languages): Remove the first element.
1498 * varobj.h (enum varobj_languages): Remove vlang_c.
1499
56250258
YQ
15002013-10-01 Yao Qi <yao@codesourcery.com>
1501
1502 * varobj.c (struct language_specific) <language>: Remove.
1503 (languages): Update the initialization.
1504
29f9ebfa
YQ
15052013-10-01 Yao Qi <yao@codesourcery.com>
1506
1507 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1508 "solib-target.h". Include "windows-tdep.h".
1509 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1510 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1511 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1512 windows-tdep.o to gdb_target_obs.
1513
64870a42
YQ
15142013-10-01 Yao Qi <yao@codesourcery.com>
1515
1516 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1517 "solib-target.h".
1518 (amd64_windows_init_abi): Don't call set_solib_ops and
1519 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1520 windows_init_abi instead.
1521 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1522 "solib-target.h".
1523 (i386_cygwin_init_abi): Don't call set_solib_ops,
1524 set_gdbarch_has_dos_based_file_system and
1525 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1526 windows_init_abi instead.
1527 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1528 (windows_init_abi): New function.
1529 (windows_iterate_over_objfiles_in_search_order): Make it
1530 static.
1531 * windows-tdep.h (windows_init_abi): Declare.
1532 (windows_iterate_over_objfiles_in_search_order): Remove
1533 declaration.
1534
0aebdefa
JB
15352013-10-01 Jerome Guitton <guitton@adacore.com>
1536
1537 Checked in by Joel Brobecker <brobecker@adacore.com>
1538 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1539 incomplete dictionnary instead of None in case of missing
1540 environment variables.
1541 (elinos_init): in case of an incomplete environment, best
1542 effort to load system libraries instead of abort.
1543
1c8e84b0
JB
15442013-10-01 Joel Brobecker <brobecker@adacore.com>
1545
1546 * ada-lang.c (ada_has_this_exception_support): Ignore
1547 mst_solib_trampoline minimal symbols.
1548
61d82a0d
TG
15492013-09-30 Tristan Gingold <gingold@adacore.com>
1550
1551 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1552 hardware watchpoint.
1553 (i386_darwin_dr_set): Support 32 and 64 bit states.
1554 (i386_darwin_dr_get): Likewise.
1555 (i386_darwin_dr_set_control): Make static.
1556 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1557 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1558
dfd4cc63
LM
15592013-09-30 Luis Machado <lgustavo@codesourcery.com>
1560
1561 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1562 Replace TIDGET with ptid_get_lwp.
1563 Replace GET_LWP with ptid_get_lwp.
1564 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1565 Replace BUILD_THREAD with ptid_build.
1566 Replace BUILD_LWP with ptid_build.
1567 Replace PIDGET with ptid_get_pid.
1568 Replace TIDGET with ptid_get_lwp.
1569 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1570 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1571 Replace TIDGET with ptid_get_lwp.
1572 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1573 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1574 Replace TIDGET with ptid_get_lwp.
1575 Replace GET_LWP with ptid_get_lwp.
1576 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1577 * auxv.c: Likewise.
1578 * breakpoint.c: Likewise.
1579 * common/ptid.c (ptid_is_pid): Condense check for
1580 null_ptid and minus_one_ptid.
1581 (ptid_lwp_p): New function.
1582 (ptid_tid_p): New function.
1583 * common/ptid.h: Update comments for accessors.
1584 (ptid_lwp_p): New prototype.
1585 (ptid_tid_p): New prototype.
1586 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1587 * gcore.c: Replace PIDGET with ptid_get_pid.
1588 * gdbthread.h: Likewise.
1589 * gnu-nat.c: Likewise.
1590 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1591 Replace TIDGET with ptid_get_lwp.
1592 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1593 * hppanbsd-nat.c: Likewise.
1594 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1595 Replace TIDGET with ptid_get_lwp.
1596 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1597 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1598 * infcmd.c: Likewise.
1599 * inferior.h: Likewise.
1600 * inflow.c: Likewise.
1601 * infrun.c: Likewise.
1602 * linux-fork.c: Likewise.
1603 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1604 Replace GET_PID with ptid_get_pid.
1605 Replace is_lwp with ptid_lwp_p.
1606 Replace GET_LWP with ptid_get_lwp.
1607 Replace BUILD_LWP with ptid_build.
1608
5b4e221c
MF
16092013-09-28 Mike Frysinger <vapier@gentoo.org>
1610
1611 * common/linux-btrace.c: Move sys/syscall.h out of the
1612 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1613 Also check for SYS_perf_event_open before attempting to buid.
1614
57d63ce2
DE
16152013-09-27 Doug Evans <dje@google.com>
1616
19ac8c2e
DE
1617 * dwarf2read.c (dwarf2_section_info): Add comment.
1618 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1619 All uses updated.
1620 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1621 (dwarf2_read_section): Delete unused local "header". Add section
1622 name to error message.
1623 (create_dwo_in_dwp): Tweak comment.
1624 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1625
a32a8923
DE
1626 * dwarf2read.c (die_reader_specs): Tweak comment.
1627 (get_section_bfd_owner, get_section_bfd_section): New functions.
1628 (get_section_name, get_section_file_name): New functions.
1629 (get_section_id, get_section_flags): New functions.
1630 (*): Use new functions to access section fields.
1631
57d63ce2
DE
1632 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1633 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1634 arg "htab". All callers updated.
1635 (create_debug_types_hash_table): Remove redundant copy of
1636 abbrev_section.
1637 (create_dwo_in_dwp): Tweak comments.
1638 (read_str_index): Tweak comment. Record dwarf form name in static
1639 local.
1640
3736004f
PA
16412013-09-27 Pedro Alves <palves@redhat.com>
1642
1643 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1644 (remote_filename_p): Add comment.
1645 * remote.c (remote_filename_p): Adjust to use
1646 REMOTE_SYSROOT_PREFIX.
1647 * solib.c (solib_find): When deciding whether we need to add a
1648 directory separator, check whether the sysroot is "remote:"
1649 instead of checking whether the patch has a drive spec. Add
1650 comments.
1651
5b5596ff
PA
16522013-09-27 Pedro Alves <palves@redhat.com>
1653
1654 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1655 Delete fields.
1656 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1657 directly.
1658
b5eef7aa
JK
16592013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 Fix set debug frame output.
1662 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1663 SENTINEL_FRAME entry lower to match enum frame_type order.
1664
5b856f36
PM
16652013-09-26 Pierre Muller <muller@sourceware.org>
1666
1667 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1668 AMD64_R15_REGNUM when a register index is expected.
1669 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1670 Substitute in array.
1671 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1672 (amd64_push_arguments): Substitute in integer_regnum array.
1673
ade7ed9e
DE
16742013-09-25 Doug Evans <dje@google.com>
1675
d3e81981
DE
1676 * objfiles.c (allocate_objfile): Move comment to better place.
1677
8fb8eb5c
DE
1678 New option "set debug symfile on".
1679 * NEWS: Mention "set debug symfile".
1680 * Makefile.in (SFILES): Add symfile-debug.c.
1681 (COMMON_OBS): Add symfile-debug.o.
1682 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1683 objfile's symbol functions.
1684 * objfiles.h (objfile_set_sym_fns): Declare.
1685 * symfile-debug.c: New file.
1686 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1687 objfile's symbol functions.
1688 (reread_symbols): Ditto.
1689
c256e171
DE
1690 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1691 All uses updated.
1692 (add_symtab_fns): Update prototype.
1693 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1694 (registered_sym_fns): ... this.
1695 (symtab_fns): Update.
1696 (add_symtab_fns): New arg "flavour". All callers updated.
1697 (find_sym_fns): Rewrite to use new sym_fns registry.
1698
f56ce883
DE
1699 * symfile.h (struct sym_fns): Add "objfile" argument to
1700 sym_read_linetable. All uses updated.
1701
20c681d1
DE
1702 * symtab.c (domain_name, search_domain_name): New functions.
1703 * symtab.h (domain_name, search_domain_name): Declare.
1704
ade7ed9e
DE
1705 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1706 map_matching_symbols so objfile is first. All uses updated.
1707 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1708 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1709
7d760051
UW
17102013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1711
1712 PR shlibs/8882
1713 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1714 link map entries.
1715
020f7036
DE
17162013-09-24 Doug Evans <dje@google.com>
1717
1718 * objfiles.c (free_objfile): Move comment.
1719
598402f0
JB
17202013-09-24 Joel Brobecker <brobecker@adacore.com>
1721
1722 * ada-exp.y (string_to_operator): Delete.
1723 (dummy_string_to_ada_operator): Delete.
1724
bf4d6c1c
JB
17252013-09-24 Joel Brobecker <brobecker@adacore.com>
1726
1727 Revert:
1728 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1729 amd64-tdep.c.
1730 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1731 call_dummy_integer_regs, and classify.
1732 * amd64-tdep.h (amd64_classify): Add declaration.
1733 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1734 (amd64_reg_class): Delete, moved to i386-tdep.h.
1735 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1736 Replace call to amd64_classify by call to tdep->classify.
1737 (amd64_push_arguments): Get the list of registers to use for
1738 passing integer parameters from the gdbarch tdep structure,
1739 rather than using a hardcoded one. Replace calls to amd64_classify
1740 by calls to tdep->classify.
1741 (amd64_push_dummy_call): Get the register number used for
1742 the "hidden" argument from tdep->call_dummy_integer_regs.
1743 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1744 and tdep->call_dummy_integer_regs. Set tdep->classify.
1745
849e9755
JB
17462013-09-24 Joel Brobecker <brobecker@adacore.com>
1747
1748 Revert:
1749 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1750 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1751 where tdep->memory_args_by_pointer is non-zero.
1752
c1459fd6
JB
17532013-09-24 Joel Brobecker <brobecker@adacore.com>
1754
1755 Revert:
1756 * i386-tdep.h (struct gdbarch_tdep): Add new field
1757 integer_param_regs_saved_in_caller_frame.
1758 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1759 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1760
20c2e3e0
JB
17612013-09-24 Joel Brobecker <brobecker@adacore.com>
1762
874440b8 1763 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1764 (amd64_windows_classify): Delete.
1765 (amd64_windows_passed_by_integer_register)
1766 (amd64_windows_passed_by_xmm_register)
1767 (amd64_windows_passed_by_pointer)
1768 (amd64_windows_adjust_args_passed_by_pointer)
1769 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1770 (amd64_windows_push_dummy_call): New functions.
1771 (amd64_windows_init_abi): Remove setting of
1772 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1773 tdep->classify, tdep->memory_args_by_pointer and
1774 tdep->integer_param_regs_saved_in_caller_frame.
1775 Add call to set_gdbarch_push_dummy_call.
1776
82bf32bc
JK
17772013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1778
1779 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1780 objfile->original_name.
1781
24ba069a
JK
17822013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1783
1784 Pass down original filename for objfile.
1785 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1786 * elfread.c (elf_symfile_read): Likewise.
1787 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1788 longer set ORIGINAL_NAME.
1789 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1790 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1791 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1792 symbol_file_add_from_bfd call.
1793 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1794 (macho_check_dsym): Add parameter filenamep. Change function comment.
1795 Set *filenamep.
1796 (macho_symfile_read): New variable dsym_filename. Update
1797 macho_check_dsym call. Use it for symbol_file_add_separate.
1798 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1799 it. Use it for objfile->original_name.
1800 (objfile_name): Return OBFD's filename, if available.
1801 * objfiles.h (allocate_objfile): Add new parameter name.
1802 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1803 * symfile-mem.c (symbol_file_add_from_memory): Update
1804 symbol_file_add_from_bfd call.
1805 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1806 comment for it.
1807 (symbol_file_add_with_addrs): New parameter name, add function comment
1808 for it. Remove variable name. Update allocate_objfile call.
1809 (symbol_file_add_separate): New parameter name, add function comment
1810 for it. Update symbol_file_add_with_addrs call.
1811 (symbol_file_add_from_bfd): New parameter name. Update
1812 symbol_file_add_with_addrs call.
1813 (symbol_file_add): Update symbol_file_add_from_bfd call.
1814 (reread_symbols): New variable original_name. Save
1815 objfile->original_name by it.
1816 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1817 second parameter.
1818
4262abfb
JK
18192013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1820
1821 Code cleanup: Add objfile_name accessor function.
1822 * ada-lang.c (is_known_support_routine): Use objfile_name.
1823 * auto-load.c (source_gdb_script_for_objfile)
1824 (auto_load_objfile_script): Likewise.
1825 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1826 * dbxread.c (dbx_symfile_read): Likewise.
1827 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1828 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1829 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1830 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1831 (lookup_dwp_signatured_type, lookup_dwo_unit)
1832 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1833 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1834 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1835 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1836 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1837 (read_subrange_type, load_partial_dies, read_partial_die)
1838 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1839 (die_containing_type, build_error_marker_type, lookup_die_type)
1840 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1841 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1842 (get_DW_AT_signature_type, write_psymtabs_to_index)
1843 (save_gdb_index_command): Likewise.
1844 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1845 Likewise.
1846 * expprint.c (dump_subexp_body_standard): Likewise.
1847 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1848 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1849 original_name.
1850 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1851 obj_name, use objfile_name for it, use the variable.
1852 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1853 Use objfile_name.
1854 * machoread.c (macho_symtab_read, macho_check_dsym)
1855 (macho_symfile_relocate): Likewise.
1856 * maint.c (maintenance_translate_address): Likewise.
1857 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1858 * minsyms.c (install_minimal_symbols): Likewise.
1859 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1860 original_name.
1861 (filter_overlapping_sections): Use objfile_name.
1862 (objfile_name): New function.
1863 * objfiles.h (struct objfile): Rename field name to original_name.
1864 (objfile_name): New prototype.
1865 * printcmd.c (sym_info, address_info): Use objfile_name.
1866 * probe.c (parse_probes, collect_probes, compare_probes)
1867 (info_probes_for_ops): Likewise.
1868 * progspace.c (clone_program_space): Likewise.
1869 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1870 (maintenance_info_psymtabs): Likewise.
1871 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1872 (source_section_scripts): Likewise.
1873 * python/py-objfile.c (objfpy_get_filename): Likewise.
1874 * python/py-progspace.c (pspy_get_filename): Likewise.
1875 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1876 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1877 * solib.c (solib_read_symbols): Likewise.
1878 * stabsread.c (scan_file_globals): Likewise.
1879 * stap-probe.c (handle_stap_probe): Likewise.
1880 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1881 (find_separate_debug_file_by_debuglink): Likewise.
1882 (reread_symbols): Likewise. Use the objfile field name renamed to
1883 original_name.
1884 (allocate_symtab): Use objfile_name.
1885 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1886 (dump_objfile, dump_msymbols, dump_symtab_1)
1887 (maintenance_print_msymbols, maintenance_print_objfiles)
1888 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1889 * target.c (target_translate_tls_address, target_info): Likewise.
1890 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1891 objfile_name.
1892
4721dc18
JK
18932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
1895 Code cleanup.
1896 * probe.c (parse_probes): Rename variable objfile_name to
1897 objfile_namestr.
1898
a61d6db8
JK
18992013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1900
1901 Remove solib-sunos.c.
1902 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1903 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1904 * objfiles.c (rt_common_objfile): Remove.
1905 (free_objfile): Remove rt_common_objfile comparison.
1906 * objfiles.h (rt_common_objfile): Remove.
1907 * solib-sunos.c: Remove.
1908 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1909
2659903b
JK
19102013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 Remove a.out NetBSD and OpenBSD hosts.
1913 * NEWS (Removed native configurations): New.
1914 * config/arm/nbsdaout.mh: Remove.
1915 * config/i386/nbsdaout.mh: Remove.
1916 * config/i386/obsdaout.mh: Remove.
1917 * config/m68k/nbsdaout.mh: Remove.
1918 * config/sparc/nbsdaout.mh: Remove.
1919 * config/vax/nbsdaout.mh: Remove.
1920 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1921 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1922 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1923 error.
1924 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1925 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1926 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1927
f60e2d5c
TT
19282013-09-23 Tom Tromey <tromey@redhat.com>
1929
1930 * linespec.c (struct minsym_and_objfile): Remove.
1931 (minsym_and_objfile_d): Remove.
1932 (struct linespec, struct collect_info, linespec_parse_basic)
1933 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1934 (compare_msymbols, find_method, find_function_symbols)
1935 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1936 (add_minsym, search_minsyms_for_name): Update.
1937
d3eaaf66
AB
19382013-09-23 Andrew Burgess <aburgess@broadcom.com>
1939
1940 * regcache.c: Add include of valprint.h.
1941 (dump_endian_bytes): Delete.
1942 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1943
2cc762b5
AB
19442013-09-23 Andrew Burgess <aburgess@broadcom.com>
1945
1946 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1947
96181529
PA
19482013-09-19 Pedro Alves <palves@redhat.com>
1949
1950 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1951 breakpoints.
1952
9b3f3ee6
TS
19532013-09-19 Pedro Alves <palves@redhat.com>
1954 Thomas Schwinge <thomas@codesourcery.com>
1955 Yue Lu <hacklu.newborn@gmail.com>
1956
1957 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1958 Take a gdb_byte pointer instead of a char pointer.
1959
1960 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1961 gnu_xfer_partial helper.
1962 (gnu_xfer_partial): New function.
1963 (gnu_target): Don't install a deprecated_xfer_memory hook.
1964 Install a to_xfer_partial hook.
1965
69150c3d
JK
19662013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1967
1968 Constification.
1969 * main.c (captured_main): Replace catch_command_errors by
1970 catch_command_errors_const. Twice.
1971 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1972 (symbol_file_add): Make name parameter const.
1973 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1974 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1975 variable name. Change their usage accordingly.
1976 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1977 const.
1978 (symbol_file_add_main): Make args parameter const.
1979
086850b2
UW
19802013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1981 Ulrich Weigand <uweigand@de.ibm.com>
1982
1983 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1984 of c_value member.
1985 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1986
ca08a94c 19872013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1988 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1989
1990 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1991 (gnu_create_inferior)
1992 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1993 (set_sig_thread_cmd): Use the lwpid field of ptids to
1994 store/extract thread ids instead of the tid field.
1995 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1996
e4c6a2c4
AB
19972013-09-18 Andrew Burgess <aburgess@broadcom.com>
1998
1999 * infcmd.c (default_print_one_register_info): Add detection of
2000 optimized out values.
2001 (default_print_registers_info): Switch to using
2002 get_frame_register_value.
2003
58c48e72
MM
20042013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2005
2006 * infrun.c (handle_inferior_event): Check if we know the
2007 function start address before setting a resume breakpoint.
2008
c8d37639
PA
20092013-09-18 Pedro Alves <palves@redhat.com>
2010
2011 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2012 minus_one_ptid instead of looking at the ptid's tid field and
2013 comparing that to -1.
2014
71926e28
AB
20152013-09-18 Andrew Burgess <aburgess@broadcom.com>
2016
2017 * main.h (get_gdb_program_name): Remove extra whitespace.
2018
c88a1531
AB
20192013-09-18 Andrew Burgess <aburgess@broadcom.com>
2020
2021 * main.h (get_gdb_program_name): Add declaration.
2022 * main.c (get_gdb_program_name): Add definition.
2023
4390d890
DE
20242013-09-17 Doug Evans <dje@google.com>
2025
2026 * dwarf2read.c: Move definitions of complaint functions to after
2027 forward declarations of local functions.
2028
49fa26b0
PA
20292013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2030 Pedro Alves <palves@redhat.com>
2031
2032 PR gdb/11568
2033 * breakpoint.c (remove_threaded_breakpoints): New function.
2034 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2035 as thread_exit observer.
2036
08d72866
PA
20372013-09-17 Pedro Alves <palves@redhat.com>
2038
2039 PR gdb/15911
2040 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2041 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2042 * corelow.c (core_open):
2043 * frame.h (print_stack_frame, print_frame_info): New
2044 'set_current_sal' parameter.
2045 * infcmd.c (finish_command, kill_command): Adjust call to
2046 print_stack_frame.
2047 * inferior.c (inferior_command): Likewise.
2048 * infrun.c (normal_stop): Likewise.
2049 * linux-fork.c (linux_fork_context): Likewise.
2050 * record-full.c (record_full_goto_entry, record_full_restore):
2051 Likewise.
2052 * remote-mips.c (common_open): Likewise.
2053 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2054 Use it.
2055 (print_frame_info): New 'set_current_sal' parameter. Set the last
2056 displayed sal depending on the new paremeter instead of looking at
2057 print_what.
2058 (backtrace_command_1, select_and_print_frame, frame_command)
2059 (current_frame_command, up_command, down_command): Adjust call to
2060 print_stack_frame.
2061 * thread.c (print_thread_info, restore_selected_frame)
2062 (do_captured_thread_select): Adjust call to print_stack_frame.
2063 * tracepoint.c (tfind_1): Likewise.
2064 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2065 (mi_cmd_stack_info_frame): Likewise.
2066 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2067 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2068
6bc305f5
SDJ
20692013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2070
2071 * value.c (isvoid_internal_fn): Replace "parameter" with
2072 "argument".
2073
0a7cfe2c
SS
20742013-09-16 Stan Shebs <stan@codesourcery.com>
2075
2076 * README: Update references to writing code for GDB.
2077 * configure.ac (build_warnings): Remove obsolete comment.
2078 * configure: Regenerate.
2079 * gdbarch.sh: Remove references to gdbint.texinfo.
2080 * gdbarch.h: Regenerate.
2081 * gdbtypes.c (objfile_type): Remove comments referencing internals
2082 manual and D10V.
2083
a280dbd1
SDJ
20842013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2085
2086 * NEWS: Mention new convenience function $_isvoid.
2087 * value.c (isvoid_internal_fn): New function.
2088 (_initialize_values): Add new convenience function $_isvoid.
2089
04a83fee
PM
20902013-09-16 Pierre Muller <muller@sourceware.org>
2091
2092 * arm-linux-tdep.c: Add "elf/common.h" header.
2093 Remove AT_HWCAP macro definintion as it is provided in
2094 added include file.
2095 * s390-tdep.c: Remove system header <elf.h>
2096 Add "elf/common.h" header for AT_HWCAP definition.
2097 (s390_core_read_description): Use correct CORE_ADDR
2098 for hwcap local variable used as third parameter
2099 of function target_auxv_search.
2100
88505fac
PM
21012013-09-14 Pierre Muller <muller@sourceware.org>
2102 Tom Tromey <tromey@redhat.com>
2103 Pedro Alves <palves@redhat.com>
2104
2105 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2106 mode if operating system doesn't know O_CLOEXEC.
2107
d3846e71
JK
21082013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2109
2110 Code cleanup.
2111 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2112 inner block.
2113
4ac33720
UW
21142013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115
2116 * NEWS: Mention TDB support.
2117 * features/s390-tdb.xml: New file.
2118 * features/s390-te-linux64.xml: New file.
2119 * features/s390x-te-linux64.xml: New file.
2120 * features/Makefile (WHICH): Add new tdescs above.
2121 (s390-te-linux64-expedite): Set.
2122 (s390x-te-linux64-expedite): Set.
2123 * features/s390-te-linux64.c: New file (generated).
2124 * features/s390x-te-linux64.c: New file (generated).
2125 * regformats/s390-te-linux64.dat: New file (generated).
2126 * regformats/s390x-te-linux64.dat: New file (generated).
2127 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2128 (HWCAP_S390_TE): Likewise.
2129 (S390_TDB_DWORD0_REGNUM): Likewise.
2130 (S390_TDB_DWORD0_REGNUM): Likewise.
2131 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2132 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2133 (S390_TDB_ATIA_REGNUM): Likewise.
2134 (S390_TDB_R0_REGNUM): Likewise.
2135 (S390_TDB_R1_REGNUM): Likewise.
2136 (S390_TDB_R2_REGNUM): Likewise.
2137 (S390_TDB_R3_REGNUM): Likewise.
2138 (S390_TDB_R4_REGNUM): Likewise.
2139 (S390_TDB_R5_REGNUM): Likewise.
2140 (S390_TDB_R6_REGNUM): Likewise.
2141 (S390_TDB_R7_REGNUM): Likewise.
2142 (S390_TDB_R8_REGNUM): Likewise.
2143 (S390_TDB_R9_REGNUM): Likewise.
2144 (S390_TDB_R10_REGNUM): Likewise.
2145 (S390_TDB_R11_REGNUM): Likewise.
2146 (S390_TDB_R12_REGNUM): Likewise.
2147 (S390_TDB_R13_REGNUM): Likewise.
2148 (S390_TDB_R14_REGNUM): Likewise.
2149 (S390_TDB_R15_REGNUM): Likewise.
2150 (S390_NUM_REGS): Increase.
2151 (S390_IS_TDBREGSET_REGNUM): New macro.
2152 (s390_regmap_tdb): Declare.
2153 (s390_sizeof_tdbregset): Define.
2154 (tdesc_s390_te_linux64): Declare.
2155 (tdesc_s390x_te_linux64): Likewise.
2156 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2157 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2158 (s390_regmap_tdb): New regmap.
2159 (s390_supply_tdb_regset): New function.
2160 (s390_tdb_regset): New regset.
2161 (s390_linux64v2_regset_sections): Add TDB regset to list.
2162 (s390x_linux64v2_regset_sections): Likewise.
2163 (s390_regset_from_core_section): Recognize TDB core note section.
2164 (s390_core_read_description): If HWCAP indicates TE support,
2165 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2166 (s390_gdbarch_init): Handle TDB regset.
2167 (_initialize_s390_tdep): Initialize new tdescs.
2168 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2169 (have_regset_tdb): New variable.
2170 (s390_native_supply): Support register invalidation.
2171 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2172 (check_regset): Treat ENODATA as "regset exists".
2173 (s390_linux_fetch_inferior_registers): Add TDB.
2174 (s390_read_description): Check for TDB existence and select
2175 appropriate tdesc.
2176 * gdbserver/Makefile.in (clean): Add removal of new makefile
2177 targets.
2178 (s390-te-linux64.c): New makefile target.
2179 (s390x-te-linux64.c): Likewise.
2180 * gdbserver/configure.srv (srv_regobj): Append new objects
2181 s390-te-linux64.o and s390x-te-linux64.o.
2182 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2183 s390x-te-linux64.xml, and s390-tdb.xml.
2184 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2185 declaration.
2186 (tdesc_s390_te_linux64): Likewise.
2187 (init_registers_s390x_te_linux64): Likewise.
2188 (tdesc_s390x_te_linux64): Likewise.
2189 (s390_check_regset): Treat ENODATA as "regset exists".
2190 (s390_arch_setup): Add TDB regset support.
2191 (initialize_low_arch): Initialize registers for new tdescs.
2192
2ccd1468
UW
21932013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2194
2195 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2196 (S390_IS_FPREGSET_REGNUM): New macro.
2197 * s390-tdep.c (s390_dwarf_regmap): Make const.
2198 (regnum_is_gpr_full): New function for replacing repeated code.
2199 (s390_pseudo_register_name): Use it.
2200 (s390_pseudo_register_type): Likewise.
2201 (s390_pseudo_register_read): Likewise.
2202 (s390_pseudo_register_write): Likewise.
2203 (s390_unwind_pseudo_register): Likewise.
2204 (s390_regmap_gregset): New format for regmap.
2205 (s390x_regmap_gregset): Likewise.
2206 (s390_regmap_fpregset): Likewise.
2207 (s390_regmap_upper): Likewise.
2208 (s390_regmap_last_break): Likewise.
2209 (s390_regmap_system_call): Likewise.
2210 (s390_supply_regset): Adjust to new regmap format.
2211 (s390_collect_regset): Likewise.
2212 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2213 (s390_native_collect): Likewise.
2214 (supply_gregset): Likewise.
2215 (fill_gregset): Likewise.
2216 (supply_fpregset): Likewise.
2217 (fill_fpregset): Likewise.
2218 (fetch_regset): Likewise.
2219 (store_regset): Likewise.
2220 (s390_linux_fetch_inferior_registers): Likewise.
2221 (s390_linux_fetch_inferior_registers): Likewise.
2222
1aa4cd77
AP
22232013-09-12 Andrew Pinski <apinski@cavium.com>
2224
2225 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2226
d91fab15
UW
22272013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2228
2229 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2230
5a5d8ead
AB
22312013-09-09 Andrew Burgess <aburgess@broadcom.com>
2232
2233 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2234
1385f66c
PA
22352013-09-06 Pedro Alves <palves@redhat.com>
2236
2237 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2238 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2239 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2240 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2241 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2242 gdb_stdlog.
2243
146ec4db
PA
22442013-09-06 Pedro Alves <palves@redhat.com>
2245
2246 * remote-sim.c (dump_mem): Constify buf parameter.
2247 gdbsim_xfer_inferior_memory): Rename to ...
2248 (gdbsim_xfer_memory): ... this. Adjust interface as
2249 target_xfer_partial helper.
2250 (gdbsim_xfer_partial): New function.
2251 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2252 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2253
fcde0081
PA
22542013-09-06 Pedro Alves <palves@redhat.com>
2255
2256 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2257 host_address_to_string, and send debug output to gdb_stdlog.
2258
749c8b38
RW
22592013-09-06 Ricard Wanderlof <ricardw@axis.com>
2260
2261 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2262 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2263 gdb_target_obs for cris target.
2264 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2265 (cris_gdbarch_init): Move calls to
2266 set_gdbarch_fetch_tls_load_module_address and
2267 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2268 Add call to gdbarch_init_osabi.
2269 * cris-linux-tdep.c: New file.
2270 * cris-tdep.h: New file.
2271
43df09d9
AB
22722013-09-06 Andrew Burgess <aburgess@broadcom.com>
2273
2274 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2275 to deprecated_init_ui_hook.
2276
4d09c5b4
AB
22772013-09-06 Andrew Burgess <aburgess@broadcom.com>
2278
2279 * cli/cli-interp.c (_initialize_cli_interp): Add a
2280 command_loop_proc to interp_procs.
2281 * event-top.c (cli_command_loop): Change signature to match
2282 interp_command_loop_ftype.
2283 * event-top.h (cli_command_loop): Same.
2284 * interps.c (interp_new): Require every interpreter to have a
2285 command_loop_proc.
2286 (current_interp_command_loop): Just call the command_loop_proc on
2287 the current interpreter.
2288 * tui/tui-interp.c (_initialize_tui_interp): Add a
2289 command_loop_proc to interp_procs.
2290
8eb3d7b6
RW
22912013-09-06 Ricard Wanderlof <ricardw@axis.com>
2292
2293 * cris-tdep.c (cris_gdbarch_init): Add call to
2294 get_gdbarch_fetch_tls_load_module_address.
2295
18b3c2f5
RW
22962013-09-06 Ricard Wanderlof <ricardw@axis.com>
2297
2298 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2299 (cris_elf_gregset_t): Rename from elf_gregset_t.
2300 (crisv32_elf_gregset_t): Adjust.
2301 (cris_supply_gregset, fetch_core_registers): Adjust.
2302
dc8636ef
RW
23032013-09-06 Ricard Wanderlof <ricardw@axis.com>
2304
2305 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2306
257e6d53
AB
23072013-09-05 Andrew Burgess <aburgess@broadcom.com>
2308
1581d8a7 2309 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2310 references in comments.
1581d8a7 2311 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2312 deprecated_command_loop_hook.
2313 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2314 setup.
1581d8a7 2315 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2316
7c33b57c
PA
23172013-09-05 Pedro Alves <palves@redhat.com>
2318
2319 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2320 local is now int instead of ULONGEST. Print it with %d
2321 instead of paddress.
2322
9f8edbd5
TG
23232013-09-05 Tristan Gingold <gingold@adacore.com>
2324
2325 * MAINTAINERS: Remove avr maintainership.
2326
d5b495b4
PA
23272013-09-05 Pedro Alves <palves@redhat.com>
2328
2329 * findvar.c (value_of_register): Rework in terms of
2330 value_of_register_lazy.
2331
40b91786
MB
23322013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2333
2334 * symfile.c (add_symbol_file_command): Remove trailing
2335 whitespaces and blank line after comment.
2336
6eed1678
PA
23372013-09-05 Pedro Alves <palves@redhat.com>
2338
2339 * tui/tui-regs.c (tui_register_format): Don't look at the
2340 register's name here. Return string representing register
2341 value instead of storing it in the data element.
2342 (tui_get_register): Compare register string representations
2343 instead of register value states and contents.
2344
8eb6bda2
PA
23452013-09-05 Pedro Alves <palves@redhat.com>
2346
2347 PR tui/15933
2348 * tui/tui-regs.c (tui_show_registers): Show registers of the
2349 selected frame, not the current frame.
2350
48b1f08c
RW
23512013-09-05 Ricard Wanderlof <ricardw@axis.com>
2352
2353 * MAINTAINERS (Write After Approval): Add myself to the list.
2354
89e63ee4
DE
23552013-09-04 Doug Evans <dje@google.com>
2356
2357 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2358 (queue_and_load_dwo_tu): New function.
2359 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2360 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2361 Make dependent_cu optional.
2362 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2363 and an older .gdb_index is in use, queue and load all its TUs too.
2364
492c0ab7
JK
23652013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2366
2367 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2368 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2369 variable search_flags.
2370 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2371 (OPF_RETURN_REALPATH): ... here.
2372 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2373 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2374 call. Twice.
2375 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2376 openp call.
2377 * solib.c (solib_find): Likewise. Four times.
2378 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2379 in the function comment and for the realpath_fptr variable.
2380 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2381 (find_and_open_source): Likewise. Twice.
2382 * symfile.c (symfile_bfd_open): Likewise, also twice.
2383
23a44de8
DE
23842013-09-04 Doug Evans <dje@google.com>
2385
2386 * progspace.c (save_current_space_and_thread): Remove unnecessary
2387 call to save_current_inferior.
2388
47061676
AB
23892013-09-04 Andrew Burgess <aburgess@broadcom.com>
2390
2391 * sh64-tdep.c (sh64_do_register): Return after printing message
2392 about unavailable register contents.
2393
41dc8db8
MB
23942013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2395 Pedro Alves <palves@redhat.com>
2396
2397 * symfile.c (add_symbol_file_command): Error out on unknown
2398 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2399 options and collapse into single conditional branch.
2400
07107ca6
LM
24012013-09-03 Luis Machado <lgustavo@codesourcery.com>
2402
a7ea61cf 2403 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2404 detach_fork.
2405 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2406 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2407 * inferior.h (detach_fork): Remove.
2408 * infrun.c (detach_fork): Adjust comment and make it
2409 static.
2410 (follow_fork): Pass detach_fork parameter to
2411 target_follow_fork.
2412 * linux-nat.c (linux_child_follow_fork): New parameter
2413 detach_fork.
2414 * target.c (target_follow_fork): New parameter detach_fork.
2415 Pass detach_fork as parameter and print its value.
2416 * target.h (struct target_ops) <to_follow_fork>: New int
2417 parameter.
2418 (target_follow_fork): New parameter detach_fork.
2419
3bec2768
JB
24202013-09-03 Joel Brobecker <brobecker@adacore.com>
2421
2422 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2423 Replace sec->bfd by sec->the_bfd_section->owner.
2424
c01cbb3d
YQ
24252013-09-03 Yao Qi <yao@codesourcery.com>
2426
2427 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2428 from linux_has_shared_address_space.
2429 (linux_has_shared_address_space): Call linux_is_uclinux.
2430 * linux-tdep.h (linux_is_uclinux): Declare.
2431 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2432 linux_is_uclinux.
2433
7b00db47
YQ
24342013-09-03 Yao Qi <yao@codesourcery.com>
2435
2436 * config/djgpp/fnchange.lst: Remove entry of
2437 i386-interix-nat.c and i386-interix-tdep.c.
2438 * configure.ac: Remove '*-*-interix*'.
2439 * configure: Re-generated.
2440 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2441 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2442 obsolete comments.
2443 * osabi.c (gdb_osabi_names): Remove "Interix".
2444
0f9741f2
YQ
24452013-09-03 Yao Qi <yao@codesourcery.com>
2446
2447 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2448
1e038f67
MM
24492013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2450
2451 * record.h (record_print_flag) <record_print_src_line,
2452 record_print_insn_range>: Rename into ...
2453 (record_print_flag) <record_print_src_line,
2454 record_print_insn_range>: ... this. Update all users.
2455
9e52adf9
PM
24562013-09-02 Pierre Muller <muller@sourceware.org>
2457
2458 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2459 error code.
2460
a2388568
PM
24612013-09-02 Pierre Muller <muller@sourceware.org>
2462
2463 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2464 by use of plongest function.
2465
9058cc3a
TG
24662013-09-02 Tristan Gingold <gingold@adacore.com>
2467
2468 * NEWS: Add entry mentioning support for native Windows x64
2469 SEH data.
2470
2471 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2472 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2473 (struct amd64_windows_frame_cache): New struct.
2474 (amd64_windows_w2gdb_regnum): New global.
2475 (pc_in_range, amd64_windows_frame_decode_epilogue)
2476 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2477 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2478 (amd64_windows_frame_this_id): New functions.
2479 (amd64_windows_frame_unwind): New static global.
2480 (amd64_windows_skip_prologue): New function.
2481 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2482 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2483 with amd64_windows_skip_prologue.
2484
3161820b 24852013-08-30 Joel Brobecker <brobecker@adacore.com>
2486
2487 GDB 7.6.1 released.
2488
02457c76
PA
24892013-08-30 Pedro Alves <palves@redhat.com>
2490
2491 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2492 SRC_AND_LOC.
2493
e0162910
PA
24942013-08-30 Pedro Alves <palves@redhat.com>
2495
2496 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2497 warning text.
2498
6391ce51
PA
24992013-08-30 Pedro Alves <palves@redhat.com>
2500
2501 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2502 Adjust arguments to print_stack_frame.
2503
d1da0587
PA
25042013-08-30 Pedro Alves <palves@redhat.com>
2505
2506 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2507
adfd8245
PA
25082013-08-30 Pedro Alves <palves@redhat.com>
2509
2510 * frame.h (show_and_print_stack_frame): Delete declaration.
2511
96d9056e
PM
25122013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2513
2514 PR python/15461
96d9056e
PM
2515 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2516 (archpy_name): Check for valid architecture.
2517 (archpy_disassemble): Ditto.
2518
11cb8762
JB
25192013-08-29 Joel Brobecker <brobecker@adacore.com>
2520
2521 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2522 instead of "long long" in call to ptrace64.
2523
1af12a7d
AB
25242013-08-29 Andrew Burgess <aburgess@broadcom.com>
2525
2526 * mi/mi-interp.c (mi_command_loop): Change signature to match
2527 interp_command_loop_ftype.
2528 (mi1_command_loop): Remove.
2529 (mi2_command_loop): Remove.
2530 (mi3_command_loop): Remove.
2531 (mi_interpreter_resume): Remove setting of
2532 deprecated_command_loop_hook.
2533 (_initialize_mi_interp): Set mi_command_loop as the command loop
2534 callback.
2535
acc900c2
SA
25362013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2537
2538 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2539 value_type.
2540
548b762d
SA
25412013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2542
2543 * value.c (allocate_value_contents): Make static.
2544 * value.h (allocate_value_contents): Remove prototype.
2545
08039c9e
SA
25462013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2547
2548 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2549 of assembling value via allocate_value_lazy and attribute setter.
2550 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2551 assembling value via allocate_value_lazy and attribute setter.
2552 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2553 assembling value via allocate_value_lazy and attribute setter.
2554
314c7de9
SA
25552013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2556
2557 * value.c (value_from_contents_and_address): Replace allocate_value and
2558 memcpy with value_from_contents.
2559
8f28f522
PM
25602013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2561
2562 * python/py-framefilter.c (py_print_frame): Remove usage of
2563 PyString_AsString. Use python_string_to_host_string instead.
2564 Refactor function to work with a string as a new allocation
2565 instead of a pointer.
2566 (py_print_frame): Ditto.
2567 * python/lib/gdb/frames.py (return_list): Cain iterators together
2568 instead of adding them as a list.
2569 (_sort_list): Call return_list, and remove duplicate code.
2570 (execute_frame_filters): Convert iterator to a list with list().
2571 * python/lib/gdb/command/frame_filters.py
2572 (SetFrameFilterPriority._set_filter_priority): Convert priority
2573 attribute to an integer.
2574 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2575 wrapper function __next__.
2576 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2577 define as "str".
2578
8ee002df
PM
25792013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2580
2581 PR python/15752
8ee002df
PM
2582 * python/py-framefilter.c (apply_frame_filter): Check
2583 gdb_python_initialized. Exit if the Python frame-filter code
2584 cannot be initialized.
2585
af4c453a
PM
25862013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2587
2588 PR cli/15842
af4c453a
PM
2589 * top.c (print_gdb_version): Remove erroneous newline after help
2590 text.
2591
bf8793bb
YQ
25922013-08-29 Yao Qi <yao@codesourcery.com>
2593
2594 * varobj.c (install_dynamic_child): Remove trailing space.
2595 Add one blank line after variable declaration.
2596
1f0c4988
JK
25972013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2598
2599 PR gdb/15415
2600 * corefile.c (get_exec_file): Use exec_filename.
2601 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2602 * exec.c (exec_close): Free EXEC_FILENAME.
2603 (exec_file_attach): New variable canonical_pathname. Use
2604 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2605 EXEC_FILENAME.
2606 * exec.h (exec_filename): New.
2607 * inferior.c (print_inferior, inferior_command): Use
2608 PSPACE_EXEC_FILENAME.
2609 * mi/mi-main.c (print_one_inferior): Likewise.
2610 * progspace.c (clone_program_space, print_program_space): Likewise.
2611 * progspace.h (struct program_space): New field pspace_exec_filename.
2612 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2613 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2614
59ee9f94
WN
26152013-08-28 Will Newton <will.newton@linaro.org>
2616
2617 * common/linux-ptrace.c: Include stdint.h unconditionally.
2618
c8a2a419
JK
26192013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 Code cleanup.
2622 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2623
ffa4ac95
YQ
26242013-08-28 Yao Qi <yao@codesourcery.com>
2625 Pedro Alves <palves@redhat.com>
2626
2627 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2628 instead of stdio_fileopen.
2629 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2630 .Call stderr_fileopen instead of stdio_fileopen.
2631 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2632 [__MINGW32__] (stderr_file_fputs): New function.
2633 (stderr_fileopen): New function.
2634 * ui-file.h (stderr_fileopen): Declare.
2635
69d751e3
DE
26362013-08-27 Doug Evans <dje@google.com>
2637
2638 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2639 (struct dwarf2_per_cu_data): Ditto.
2640 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2641 (process_imported_unit_die): Ditto.
2642 (follow_die_sig_1): Simplify assert.
2643
44f38867
PA
26442013-08-27 Pedro Alves <palves@redhat.com>
2645
2646 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2647 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2648 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2649 windows_xfer_memory directly.
2650 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2651
d28d46b5
PA
26522013-08-27 Pedro Alves <palves@redhat.com>
2653
2654 * darwin-nat.c (darwin_xfer_memory): Delete.
2655 (_initialize_darwin_inferior): Don't install a
2656 deprecated_xfer_memory method.
2657
6211c335
YQ
26582013-08-27 Pedro Alves <pedro@codesourcery.com>
2659 Yao Qi <yao@codesourcery.com>
2660
2661 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2662 (parse_no_frames_option): Remove.
2663 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2664 (mi_cmd_stack_list_args): Adjust.
2665 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2666 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2667 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2668 Caller update.
2669 (list_args_or_locals): New parameter 'skip_unavailable'.
2670 Handle it.
2671 * valprint.c (scalar_type_p): Rename to ...
2672 (val_print_scalar_type_p): ... this. Make extern.
2673 (val_print, value_check_printable): Adjust.
2674 * valprint.h (val_print_scalar_type_p): Declare.
2675 * value.c (value_entirely_unavailable): New function.
2676 * value.h (value_entirely_unavailable): Declare.
2677
2678 * NEWS: Mention the new option "--skip-unavailable" to MI
2679 commands '-stack-list-locals', '-stack-list-arguments' and
2680 '-stack-list-variables'.
2681
242f1fd7
YQ
26822013-08-27 Yao Qi <yao@codesourcery.com>
2683
2684 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2685 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2686 options.
2687 * mi/mi-getopt.c (mi_getopt): Remove.
2688 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2689 'error_on_unknown'.
2690 (mi_getopt): Call mi_getopt_1.
2691 (mi_getopt_silent): New.
2692 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2693
260b681b
DE
26942013-08-26 Doug Evans <dje@google.com>
2695
779bd270
DE
2696 PR symtab/15885
2697 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2698 .gdb_index is in use.
2699 * symfile.c (reread_symbols): Reset objfile->sf.
2700
52e260a3
DE
2701 * NEWS: Document "mt print objfiles" now takes optional regexp.
2702 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2703 regexp of objfiles to print.
2704 (_initialize_symmisc): Update doc string for "mt print objfiles".
2705
260b681b
DE
2706 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2707 missing debug info checks.
2708
a85c52f2
UW
27092013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2710 Ulrich Weigand <uweigand@de.ibm.com>
2711
2712 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2713 line tables generated by XLC compiled binaries.
2714
4f00dda3
DE
27152013-08-23 Doug Evans <dje@google.com>
2716
db68bbae
DE
2717 * symmisc.c (dump_symtab): Delete prototype.
2718 (dump_msymbols, dump_objfile): Ditto.
2719 (maintenance_info_symtabs): Mark as dont_repeat.
2720 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2721
4f00dda3
DE
2722 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2723 debugging printf to better location.
2724
23d577b0
PA
27252013-08-23 Pedro Alves <palves@redhat.com>
2726
2727 * target.c (target_read_live_memory): Change type of 'ret' local
2728 to LONGEST.
2729
00d84524
PA
27302013-08-23 Pedro Alves <palves@redhat.com>
2731
2732 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2733 (remote_read_bytes): Change return type to LONGEST, and adjust to
2734 return a target_xfer_error on error.
2735 (remote_xfer_memory): Delete.
2736 (remote_flash_write): Change type of 'ret' local to LONGEST.
2737 (remote_xfer_partial, remote_xfer_partial): Adjust.
2738 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2739
1ed3ee94
PM
27402013-08-23 Pierre Muller <muller@sourceware.org>
2741
2742 ARI fix: Push # directives to start of line.
2743 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2744
9eaabc75
MW
27452013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2746
2747 PR gdb/15501
2748 * breakpoint.c (enable_command, disable_command): Iterate over
2749 all specified breakpoint locations.
2750
101158d9
LM
27512013-08-22 Luis Machado <lgustavo@codesourcery.com>
2752
2753 * common/linux-ptrace.c (linux_fork_to_function): Push #
2754 directives to the start of the line.
2755 (linux_check_ptrace_features): Fix warning message to use
2756 the "_" markup.
2757
96d7229d
LM
27582013-08-22 Luis Machado <lgustavo@codesourcery.com>
2759
2760 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2761 nat/linux-waitpid.h.
2762 (linux-waitpid.o): New object file rule.
2763 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2764 (current_ptrace_options): Moved from linux-nat.c.
2765 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2766 parameters.
2767 (linux_fork_to_function): New function.
2768 (linux_grandchild_function): Likewise.
2769 (linux_child_function): Likewise.
2770 (linux_check_ptrace_features): New function, heavily
2771 based on linux-nat.c:linux_test_for_tracefork.
2772 (linux_enable_event_reporting): New function.
2773 (ptrace_supports_feature): Likewise.
2774 (linux_supports_tracefork): Likewise.
2775 (linux_supports_traceclone): Likewise.
2776 (linux_supports_tracevforkdone): Likewise.
2777 (linux_supports_tracesysgood): Likewise.
2778 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2779 gdbserver/linux-low.c.
2780 (linux_enable_event_reporting): New declaration.
2781 (linux_supports_tracefork): Likewise.
2782 (linux_supports_traceclone): Likewise.
2783 (linux_supports_tracevforkdone): Likewise.
2784 (linux_supports_tracesysgood): Likewise.
2785 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2786 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2787 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2788 * config/arm/linux.mh (NATDEPFILES): Likewise.
2789 * config/i386/linux.mh (NATDEPFILES): Likewise.
2790 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2791 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2792 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2793 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2794 * config/mips/linux.mh (NATDEPFILES): Likewise.
2795 * config/pa/linux.mh (NATDEPFILES): Likewise..
2796 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2797 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2798 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2799 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2800 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2801 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2802 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2803 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2804 ptrace's 4th argument's types.
2805 Check the type of PTRACE_TYPE_ARG4.
2806 * configure: Regenerate.
2807 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2808 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2809 (linux_supports_tracefork_flag): Remove.
2810 (linux_supports_tracesysgood_flag): Likewise.
2811 (linux_supports_tracevforkdone_flag): Likewise.
2812 (current_ptrace_options): Moved to
2813 common/linux-ptrace.c.
2814 (linux_tracefork_child): Remove.
2815 (my_waitpid): Remove.
2816 (linux_test_for_tracefork): Renamed to
2817 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2818 (linux_test_for_tracesysgood): Remove.
2819 (linux_supports_tracesysgood): Remove.
2820 (linux_supports_tracefork): Remove.
2821 (linux_supports_tracevforkdone): Remove.
2822 (linux_enable_tracesysgood): Remove.
2823 (linux_enable_event_reporting): Remove.
2824 (linux_init_ptrace): New function.
2825 (linux_child_post_attach): Call linux_init_ptrace.
2826 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2827 (linux_child_follow_fork): Call linux_supports_tracefork
2828 and linux_supports_tracevforkdone.
2829 (linux_child_insert_fork_catchpoint): Call
2830 linux_supports_tracefork.
2831 (linux_child_insert_vfork_catchpoint): Likewise.
2832 (linux_child_set_syscall_catchpoint): Call
2833 linux_supports_tracesysgood.
2834 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2835 * nat/linux-nat.h: New file.
2836 * nat/linux-waitpid.c: New file.
2837 * nat/linux-waitpid.h: New file.
2838
9f948660
SDJ
28392013-08-22 Samuel Bronson <naesten@gmail.com>
2840
2841 ARM Linux support for `catch syscall'.
2842 * syscalls/arm-linux.py: New file.
2843 * syscalls/arm-linux.xml: Likewise.
2844 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2845 (arm_linux_init_abi): Register the new function and syscall xml file.
2846 * data-directory/Makefile.in: Install the new syscall xml file.
2847 * NEWS: Brag about this.
2848
6be7b56e
PA
28492013-08-22 Pedro Alves <palves@redhat.com>
2850
2851 PR gdb/15871
2852 * corefile.c (target_xfer_memory_error): New function.
2853 (memory_error): Defer EIO to target_memory_error.
2854 (read_memory): Use target_xfer_partial, and handle finer-grained
2855 target xfer errors.
2856 * target.c (target_xfer_error_to_string): New function.
2857 (memory_xfer_partial_1): If memory is known to be
2858 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2859 (target_xfer_partial): Make extern.
2860 * target.h (enum target_xfer_error): New enum.
2861 (target_xfer_error_to_string): Declare function.
2862 (target_xfer_partial): Declare function.
2863 (struct target_ops) <xfer_partial>: Adjust describing comment.
2864
bcbec14e
AM
28652013-08-22 Alan Modra <amodra@gmail.com>
2866
2867 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2868 * configure.tgt: Likewise as targets.
2869
fc474241
DE
28702013-08-20 Doug Evans <dje@google.com>
2871
2872 * buildsym.c (subfile_stack): Move here from buildsym.h.
2873 (pending_macros): Ditto.
2874 (get_macro_table): New function.
2875 (buildsym_init): Initialize subfile_stack.
2876 * coffread.c (type_vector,type_vector_length): Moved here from
2877 buildsym.h.
2878 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2879 (coff_symtab_read): Use it.
2880 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2881 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2882 with call to get_macro_table.
2883 * stabsread.c (type_vector,type_vector_length): Moved here from
2884 buildsym.h.
2885 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2886 * buildsym.h (get_macro_table): Declare.
2887
bec71544
TT
28882013-08-20 Tom Tromey <tromey@redhat.com>
2889
2890 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2891 Update.
2892 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2893
0002ad5f
DE
28942013-08-20 Doug Evans <dje@google.com>
2895
2896 * blockframe.c: Remove #include "psymtab.h".
2897 * cp-support.c: Ditto.
2898 * source.c: Ditto.
2899 * stack.c: Ditto.
2900
df302446
TT
29012013-08-20 Tom Tromey <tromey@redhat.com>
2902
2903 PR python/15816:
2904 * exceptions.h (return_mask): Now an enum.
2905 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2906 enum constants.
2907
df6d5441
TT
29082013-08-20 Tom Tromey <tromey@redhat.com>
2909
2910 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2911 get_objfile_arch.
2912 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2913 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2914 * jit.c (jit_object_close_impl): Update.
2915 * jv-lang.c (get_dynamics_objfile): Update.
2916 * linespec.c (add_minsym): Use get_dynamics_objfile.
2917 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2918 (allocate_objfile): Don't initialize 'gdbarch' field.
2919 (get_objfile_arch): Update.
2920 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2921 moved from...
2922 (struct objfile) <gdbarch>: ... here. Remove.
2923 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2924 get_objfile_arch.
2925 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2926
f5aee5ee
AM
29272013-08-20 Alan Modra <amodra@gmail.com>
2928
2929 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2930 for IBM long double nan and inf.
2931 (floatformat_is_negative, floatformat_classify,
2932 floatformat_mantissa): Similarly.
2933 (floatformat_ieee_single, floatformat_ieee_double,
2934 floatformat_ieee_quad, floatformat_arm_ext,
2935 floatformat_ia64_spill): Delete unused vars.
2936 (_initialize_doublest): Delete unused function.
2937 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2938 little-endian variants of floatformat_ibm_long_double.
2939
33b60d58 29402013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2941
33b60d58
LM
2942 * Makefile.in (SFILES): Remove common/target-common.c and
2943 add target/waitstatus.c.
2944 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2945 target/resume.h, target/wait.h and target/waitstatus.h.
2946 (COMMON_OBS): Remove target-common.o and add
2947 waitstatus.o.
2948 (target-common.o): Remove.
2949 (waitstatus.o): New target object file.
2950 * common/target-common.c: Move contents to
2951 target/waitstatus.c and remove.
2952 * common/target-common.h: Move contents to other files and
2953 remove.
2954 (enum resume_kind: Move to target/resume.h.
2955 (TARGET_WNOHANG): Move to target/wait.h.
2956 (enum target_waitkind): Move to target/waitstatus.h.
2957 (struct target_waitstatus): Likewise.
2958 * target.h: Do not include target-common.h and
2959 include target/resume.h, target/wait.h and
2960 target/waitstatus.h.
2961 * target/resume.h: New file.
2962 * target/wait.h: New file.
2963 * target/waitstatus.h: New file.
2964 * target/waitstatus.c: New file.
2965
12696c10
PA
29662013-08-19 Pedro Alves <palves@redhat.com>
2967
2968 * linux-nat.c (linux_test_for_tracefork)
2969 (linux_test_for_tracesysgood, linux_child_follow_fork)
2970 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2971 (linux_nat_wait_1): Extend comment.
2972 (linux_async_pipe): Add comment.
2973
ba89f962
KB
29742013-08-15 Kevin Buettner <kevinb@redhat.com>
2975
2976 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2977 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2978 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2979 Update to account for fact that PC is now a pseudo-register.
2980 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2981 cases for RL78_PC_REGNUM.
2982
35ab155d
MB
29832013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2984
2985 PR cli/15841
2986 * top.c (quit_force): Skip writing history file
2987 if input is not from terminal.
2988
0d031856
TT
29892013-08-14 Tom Tromey <tromey@redhat.com>
2990
2991 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2992 resultthreadlist>: New fields.
2993 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2994 (remote_get_threadlist, remote_threadlist_iterator): Use
2995 new fields. Remove static variables.
2996
ee154bee
TT
29972013-08-14 Tom Tromey <tromey@redhat.com>
2998
2999 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3000 remote_watch_data_address>: New fields.
3001 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3002 (process_stop_reply, remote_wait_as)
3003 (remote_check_watch_resources, remote_stopped_data_address): Update.
3004
88b496c3
TT
30052013-08-14 Tom Tromey <tromey@redhat.com>
3006
3007 * remote.c (struct remote_state) <async_client_callback,
3008 async_client_context>: New fields.
3009 (async_client_callback, async_client_context): Remove.
3010 (remote_async_serial_handler, remote_async): Update.
3011
2f65bcb7
TT
30122013-08-14 Tom Tromey <tromey@redhat.com>
3013
3014 * remote.c (sizeof_pkt): Remove.
3015 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3016
b80fafe3
TT
30172013-08-14 Tom Tromey <tromey@redhat.com>
3018
3019 * remote.c (struct remote_state) <use_threadinfo_query,
3020 use_threadextra_query>: New fields.
3021 (remote_threads_info, remote_threads_extra_info)
3022 (remote_open_1): Update.
3023
8e88304f
TT
30242013-08-14 Tom Tromey <tromey@redhat.com>
3025
3026 * remote.c (struct remote_state) <finished_object,
3027 finished_annex, finished_offset>: New fields.
3028 (remote_read_qxfer): Use remote_state fields; remove static
3029 variables.
3030
280ceea3
TT
30312013-08-14 Tom Tromey <tromey@redhat.com>
3032
3033 * remote.c (struct remote_state) <last_sent_step>:
3034 New field.
3035 (last_sent_step): Remove.
3036 (remote_resume, remote_wait_as): Update.
3037
b73be471
TT
30382013-08-14 Tom Tromey <tromey@redhat.com>
3039
3040 * remote.c (struct remote_state) <last_sent_signal>:
3041 New field.
3042 (last_sent_signal): Remove.
3043 (new_remote_state, remote_resume, remote_wait_as): Update.
3044
5e4a05c4
TT
30452013-08-14 Tom Tromey <tromey@redhat.com>
3046
3047 * remote.c (struct remote_state) <last_program_signals_packet>:
3048 New field.
3049 (last_program_signals_packet): Remove.
3050 (remote_program_signals, remote_open_1): Update.
3051
747dc59d
TT
30522013-08-14 Tom Tromey <tromey@redhat.com>
3053
3054 * remote.c (struct remote_state) <last_pass_packet>:
3055 New field.
3056 (last_pass_packet): Remove.
3057 (remote_pass_signals, remote_open_1): Update.
3058
262e1174
TT
30592013-08-14 Tom Tromey <tromey@redhat.com>
3060
3061 * remote.c (struct remote_state) <remote_traceframe_number>:
3062 New field.
3063 (remote_traceframe_number): Remove.
3064 (new_remote_state, remote_open_1, set_remote_traceframe)
3065 (remote_trace_find): Update.
3066
47f8a51d
TT
30672013-08-14 Tom Tromey <tromey@redhat.com>
3068
3069 * remote.c (struct remote_state) <general_thread, continue_thread>:
3070 New fields.
3071 (general_thread, continue_thread): Remove.
3072 (record_currthread, set_thread, set_general_process)
3073 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3074 (extended_remote_mourn_1): Update.
3075
5d93a237
TT
30762013-08-14 Tom Tromey <tromey@redhat.com>
3077
3078 * remote.c (struct remote_state) <remote_desc>: New field.
3079 (remote_desc): Remove.
3080 (remote_threads_info, remote_threads_extra_info, remote_close)
3081 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3082 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3083 (remote_hostio_send_command, remote_file_put, remote_file_get)
3084 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3085 (remote_async, remote_new_objfile, set_range_stepping): Update.
3086
cf792862
TT
30872013-08-14 Tom Tromey <tromey@redhat.com>
3088
3089 * remote.c (remote_state): Now a pointer.
3090 (get_remote_state_raw): Update.
3091 (new_remote_state): New function.
3092 (_initialize_remote): Use new_remote_state.
3093
dc473cfb
TT
30942013-08-14 Tom Tromey <tromey@redhat.com>
3095
3096 * remote.c (remote_protocol_features): Now const.
3097
85ec6ce7
TT
30982013-08-14 Tom Tromey <tromey@redhat.com>
3099
3100 * remote.c (crc32_table, crc32): Remove.
3101 (remote_verify_memory): Use xcrc32.
3102
73033f12
SDJ
31032013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3104
3105 * value.h (create_internalvar_type_lazy): Adjust prototype
3106 declaration.
3107
5c30d39a
AB
31082013-08-13 Andrew Burgess <aburgess@broadcom.com>
3109
3110 * common/format.c (parse_format_string): Don't allow '#' flag for
3111 pointer arguments in format string.
3112
1a66331e
PM
31132013-08-13 Pierre Muller <muller@sourceware.org>
3114
fde605f3 3115 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3116 if rl_get_screen_size did not return useful values.
3117
b4013987
AA
31182013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3119
3120 PR breakpoints/15117
3121 * linespec.c (linespec_parse_basic): Check for convenience
3122 variable or history value while parsing.
3123
959b6a66
SDJ
31242013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3125
3126 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3127 AVR.
3128 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3129 different signals between the generic Linux kernel implementation
3130 and AVR's.
3131 (avr_linux_gdb_signal_from_target): Delete.
3132 (avr_linux_gdb_signal_to_target): Delete.
3133 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3134
24a55014
DE
31352013-08-09 Doug Evans <dje@google.com>
3136
3137 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3138 entries.
3139
eb14d406
SDJ
31402013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3141
3142 * linux-tdep.c: Define enum with generic signal numbers.
3143 (linux_gdb_signal_from_target): New function.
3144 (linux_gdb_signal_to_target): Likewise.
3145 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3146 methods to the functions above.
3147 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3148 (linux_gdb_signal_to_target): Likewise.
3149 * alpha-linux-tdep.c: Define new enum with signals different
3150 from generic Linux kernel.
3151 (alpha_linux_gdb_signal_from_target): New function.
3152 (alpha_linux_gdb_signal_to_target): Likewise.
3153 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3154 with the functions mentioned above.
3155 * avr-tdep.c: Define enum with differences between Linux kernel
3156 and AVR signals.
3157 (avr_linux_gdb_signal_from_target): New function.
3158 (avr_linux_gdb_signal_to_target): Likewise.
3159 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3160 the functions mentioned above.
3161 * sparc-linux-tdep.c: Define enum with differences between SPARC
3162 and generic Linux kernel signal numbers.
3163 (sparc32_linux_gdb_signal_from_target): New function.
3164 (sparc32_linux_gdb_signal_to_target): Likewise.
3165 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3166 to the functions defined above.
3167 * xtensa-linux-tdep.c: Define enum with differences between
3168 Xtensa and Linux kernel generic signals.
3169 (xtensa_linux_gdb_signal_from_target): New function.
3170 (xtensa_linux_gdb_signal_to_target): Likewise.
3171 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3172 to the functions defined above.
3173 * mips-linux-tdep.c: Define enum with differences between
3174 signals in MIPS and Linux kernel generic ones.
3175 (mips_gdb_signal_to_target): New function.
3176 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3177 only different signals from the Linux kernel generic.
3178 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3179 the functions defined above.
3180 * mips-linux-tdep.h (enum mips_signals): Remove.
3181
156d08c8
PA
31822013-08-09 Pedro Alves <palves@redhat.com>
3183
3184 * avr-tdep.c (XMALLOC): Delete macro.
3185 * cli/cli-dump.c (XMALLOC): Delete macro.
3186
db229724
PA
31872013-08-09 Pedro Alves <palves@redhat.com>
3188
3189 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3190 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3191 (fopen_with_cleanup, add_dump_command): Make static.
3192 * cli/cli-dump.h: Delete file.
3193 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3194 cli/cli-dump.h.
3195
3f12a589
PA
31962013-08-09 Pedro Alves <palves@redhat.com>
3197
3198 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3199 error message.
3200
c718be47
PA
32012013-08-09 Pedro Alves <palves@redhat.com>
3202
156d08c8 3203 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3204 error message.
3205
1e351ed1
PA
32062013-08-09 Pedro Alves <palves@redhat.com>
3207
3208 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3209 (gcore_command): Use tilde_expand here, and when showing the
3210 filename to the user, show the expanded version.
3211
1ed8d800
YQ
32122013-08-09 Yao Qi <yao@codesourcery.com>
3213
3214 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3215 'entryval' is set.
3216
47ecca85
PA
32172013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3218
3219 * gcore.c (create_gcore_bfd): Use tilde_expand.
3220
82a0a75f
YQ
32212013-08-08 Yao Qi <yao@codesourcery.com>
3222
3223 * frame.h (read_frame_local): Declare.
3224 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3225 read_frame_local.
3226 * stack.c (read_frame_local): New.
3227
5c4aa40b
YQ
32282013-08-08 Yao Qi <yao@codesourcery.com>
3229
3230 * mi/mi-cmd-stack.c: Update comments to function
3231 list_args_or_locals.
3232
b93601f3
TT
32332013-08-07 Tom Tromey <tromey@redhat.com>
3234
3235 PR symtab/15028:
3236 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3237 (process_psymtab_comp_unit_reader): Use it.
3238 (process_psymtab_comp_unit): Update. Add "pretend_language"
3239 argument.
3240 (dwarf2_build_psymtabs_hard): Update.
3241 (scan_partial_symbols): Pass CU's language to
3242 process_psymtab_comp_unit.
3243
fa760f46
TT
32442013-08-07 Tom Tromey <tromey@redhat.com>
3245
3246 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3247 (dwarf2_gdb_index_functions): Update.
3248 * psymtab.c (find_symbol_file_from_partial): Remove.
3249 (psym_functions): Update.
3250 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3251 Remove.
3252
bf6d8a91
TT
32532013-08-07 Tom Tromey <tromey@redhat.com>
3254
3255 * symfile.c (set_initial_language): Look up "main" symbol
3256 and use its language.
3257 * symtab.c (find_main_filename): Remove.
3258 * symtab.h (find_main_filename): Remove.
3259
f9125b6c
TT
32602013-08-07 Tom Tromey <tromey@redhat.com>
3261
3262 * dwarf2read.c (recursively_compute_inclusions): Add
3263 "immediate_parent" argument. Set symtab's "user" field
3264 if not set.
3265 (compute_symtab_includes): Update.
3266
fdbb204b
TT
32672013-08-07 Tom Tromey <tromey@redhat.com>
3268
3269 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3270 when adding label symbols.
3271
49de1690
UW
32722013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3273 Ulrich Weigand <uweigand@de.ibm.com>
3274
3275 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3276 * configure.host (powerpc64-*-aix*): Likewise.
3277
b08ee99f
UW
32782013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3279 Ulrich Weigand <uweigand@de.ibm.com>
3280
3281 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3282 is defined.
3283 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3284 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3285 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3286 * configure.ac: Check for ptrace64.
3287 * configure, config.in: Regenerate.
3288
fecf803e
UW
32892013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3290 Ulrich Weigand <uweigand@de.ibm.com>
3291
3292 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3293 Call ptrace64 instead of ptrace if defined.
3294 Add macro addr_ptr to take care of ptrace address argument.
3295 (pdc_read_regs): Likewise.
3296 (pdc_write_regs): Likewise.
3297 (aix_thread_resume): Likewise.
3298 (fetch_regs_kernel_thread): Likewise.
3299 (store_regs_kernel_thread): Likewise.
3300
3bb5e4a8
AB
33012013-08-07 Anton Blanchard <anton@samba.org>
3302
3303 * MAINTAINERS: Add myself to Write After Approval.
3304
12070676
TT
33052013-08-05 Tom Tromey <tromey@redhat.com>
3306
3307 * aix-thread.c (_initialize_aix_thread): Use
3308 complete_target_initialization.
3309 * bsd-uthread.c (_initialize_bsd_uthread): Use
3310 complete_target_initialization.
3311 * dec-thread.c (_initialize_dec_thread): Use
3312 complete_target_initialization.
3313 * ravenscar-thread.c (_initialize_ravenscar): Use
3314 complete_target_initialization.
3315 * sol-thread.c (_initialize_sol_thread): Use
3316 complete_target_initialization.
3317 * spu-multiarch.c (_initialize_spu_multiarch): Use
3318 complete_target_initialization.
3319
7c7b6655
TT
33202013-08-05 Tom Tromey <tromey@redhat.com>
3321
3322 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3323 * ada-lang.c (ada_lookup_simple_minsym): Return
3324 bound_minimal_symbol.
3325 * ada-lang.h (ada_lookup_simple_minsym): Update.
3326 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3327 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3328 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3329 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3330 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3331 * minsyms.c (msymbol_objfile): Remove.
3332 (lookup_minimal_symbol_internal): New function, from
3333 lookup_minimal_symbol.
3334 (lookup_minimal_symbol): Rewrite using
3335 lookup_minimal_symbol_internal.
3336 (lookup_bound_minimal_symbol): New function.
3337 * minsyms.h (msymbol_objfile): Remove.
3338 (lookup_bound_minimal_symbol): Declare.
3339 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3340 * parse.c (write_exp_msymbol): Change parameter to a
3341 bound_minimal_symbol.
3342 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3343 * parser-defs.h (write_exp_msymbol): Update.
3344 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3345 * symfile.c (simple_read_overlay_table): Use
3346 lookup_bound_minimal_symbol.
3347 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3348 (search_symbols): Likewise.
3349 (print_msymbol_info): Take a bound_minimal_symbol argument.
3350 (symtab_symbol_info, rbreak_command): Update.
3351 * symtab.h (struct symbol_search) <msymbol>: Change type
3352 to bound_minimal_symbol.
3353 * valops.c (find_function_in_inferior): Use
3354 lookup_bound_minimal_symbol.
3355 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3356
934b9bac
JK
33572013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3358
3359 Code cleanup.
3360 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3361 to ...
3362 (async_cleanup_sigint_signal_handler): ... this.
3363 (initialize_sigint_signal_handler): Remove declaration.
3364 (handle_remote_sigint): Rename the declaration to ...
3365 (async_handle_remote_sigint): ... this.
3366 (handle_remote_sigint_twice): Rename the declaration to ...
3367 (async_handle_remote_sigint_twice): ... this.
3368 (async_remote_interrupt, async_remote_interrupt_twice)
3369 (remote_interrupt): Remove the declarations.
3370 (remote_interrupt_twice): Rename the declaration ...
3371 (sync_remote_interrupt_twice): ... this.
3372 (sigint_remote_twice_token): Rename the variable to ...
3373 (async_sigint_remote_twice_token): ... this.
3374 (sigint_remote_token): Rename the variable to ...
3375 (async_sigint_remote_token): ... this.
3376 (initialize_sigint_signal_handler): Rename the function to ...
3377 (async_initialize_sigint_signal_handler): ... this. Update the name
3378 inside.
3379 (handle_remote_sigint): Rename the function to ...
3380 (async_handle_remote_sigint): ... this. Update the names inside.
3381 (handle_remote_sigint_twice): Rename the function to ...
3382 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3383 (cleanup_sigint_signal_handler): Rename the function to ...
3384 (async_cleanup_sigint_signal_handler): ... this.
3385 (remote_interrupt): Rename the function to ...
3386 (sync_remote_interrupt): this. Update the names inside.
3387 (remote_interrupt_twice): Rename the function to ...
3388 (sync_remote_interrupt_twice): this. Update the names inside.
3389 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3390 (_initialize_remote): Update the names inside.
3391
3a1115a0
TT
33922013-08-02 Tom Tromey <tromey@redhat.com>
3393
3394 PR symtab/15719:
3395 * breakpoint.c (update_watchpoint, watchpoint_check)
3396 (watch_command_1): Update.
3397 * eval.c (fetch_subexp_value): Add "preserve_errors"
3398 parameter.
3399 * ppc-linux-nat.c (check_condition): Update.
3400 * value.h (fetch_subexp_value): Update.
3401
58b19776
AB
34022013-08-02 Andrew Burgess <aburgess@broadcom.com>
3403
3404 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3405 add_file_handler.
3406
ec94af83
DE
34072013-08-01 Doug Evans <dje@google.com>
3408
7ee85ab1
DE
3409 PR symtab/15691
3410 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3411 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3412 Add assert of sig_entry->dwo_unit == NULL.
3413 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3414 had already been read.
3415 (read_signatured_type): Set per_cu.tu_read.
3416
b846d303
DE
3417 PR symtab/15695
3418 * valops.c (value_struct_elt): Add missing call to check_typedef.
3419 (value_find_oload_method_list): Ditto.
3420
b52109bc
DE
3421 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3422 effectively, struct symbol_search **.
3423 (make_cleanup_free_search_symbols): Change arg to struct
3424 symbol_search **. All callers updated.
3425 (compare_search_syms): Compare symtab file name and block as well.
3426 (search_symbols_equal): New function.
3427 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3428 New args new_head, new_tail. Result is now void. Remove dups after
3429 sorting the symbols.
3430 (search_symbols): Sort all found symbols once, after all have been
3431 found, and remove duplicates. Simplify cleanup tracking of result.
3432 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3433
ec94af83
DE
3434 Further workarounds for binutils/15021.
3435 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3436 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3437 Watch for duplicate symtabs coming from type units.
3438 (compute_symtab_includes): Update call to
3439 recursively_compute_inclusions. Build vector of included symtabs
3440 instead of per_cus.
3441 * symtab.h (symtab_ptr): New typedef.
3442 (DEF_VEC_P (symtab_ptr)): New VEC type.
3443 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3444 instead.
3445
b2ae85cf
AB
34462013-08-01 Andrew Burgess <aburgess@broadcom.com>
3447
3448 * cli/cli-script.c (script_from_file): Remove use of
3449 error_pre_print.
3450 * main.c (captured_main): Remove use of error_pre_print and
3451 quit_pre_print.
3452 * utils.c (error_pre_print, quit_pre_print): Remove.
3453 * utils.h (error_pre_print, quit_pre_print): Likewise.
3454
645eab03
YQ
34552013-08-01 Yao Qi <yao@codesourcery.com>
3456
3457 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3458 with mi_getopt.
3459 (mi_cmd_stack_list_variables): Likewise.
3460
16f92dd4
AB
34612013-07-31 Andrew Burgess <aburgess@broadcom.com>
3462
3463 * exceptions.c (deprecated_throw_reason): Remove.
3464 * exceptions.h (deprecated_throw_reason): Remove.
3465
13f78033
AB
34662013-07-31 Andrew Burgess <aburgess@broadcom.com>
3467
3468 * remote-mips.c (mips_error): Replace use of
3469 deprecated_throw_reason with throw_verror. Use the error message
3470 passed to mips_error as the error message for throw_verror.
3471
039e3c22
AB
34722013-07-31 Andrew Burgess <aburgess@broadcom.com>
3473
3474 * monitor.c (monitor_interrupt_query): Replace use of
3475 deprecated_throw_reason with quit.
3476 * nto-procfs.c (interrupt_query): Likewise.
3477 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3478 * remote-mips.c (mips_kill): Likewise.
3479 * remote.c (interrupt_query): Likewise.
3480
8150913b
AB
34812013-07-31 Andrew Burgess <aburgess@broadcom.com>
3482
3483 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3484 with call to fatal.
3485
de74e63a
YQ
34862013-07-31 Pedro Alves <pedro@codesourcery.com>
3487 Yao Qi <yao@codesourcery.com>
3488
3489 * tracepoint.c (trace_dump_command): Select the current frame.
3490
247f5c4f
DE
34912013-07-30 Doug Evans <dje@google.com>
3492
3493 * dwarf2read.c (process_queue): Add type signature to debug output.
3494
11b4b7cc
AB
34952013-07-30 Andrew Burgess <aburgess@broadcom.com>
3496
3497 * value.c (value_fetch_lazy): Mark optimized out values as such
3498 rather than raising an error.
3499
b0c54aa5
AB
35002013-07-30 Andrew Burgess <aburgess@broadcom.com>
3501
3502 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3503 before checking which bits of the parent, not the child, value are
3504 valid.
3505
97c85fc6
MB
35062013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3507
3508 PR gdb/15715
3509 * top.c: Include "filenames.h".
3510 (set_history_filename): New function.
3511 (init_main): Install it as set hook of the "set history filename"
3512 command.
3513
ff39bb5e
SA
35142013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3515
3516 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3517 attribute parameter.
3518 (dwarf2_const_value_data): Constify struct attribute parameter.
3519 (dwarf2_const_value): Constify struct attribute parameter.
3520 (dwarf2_const_value_attr): Constify struct attribute parameter.
3521 (lookup_die_type): Constify struct attribute parameter.
3522 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3523 (follow_die_ref_or_sig): Constify struct attribute parameter.
3524 (follow_die_ref): Constify struct attribute parameter.
3525 (follow_die_sig): Constify struct attribute parameter.
3526 (get_DW_AT_signature_type): Constify struct attribute parameter.
3527 (get_type_unit_group): Constify struct attribute parameter.
3528 (fill_in_loclist_baton): Constify struct attribute parameter.
3529 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3530 (type_unit_group): Constify struct attribute parameter.
3531
6e5a29e1
SA
35322013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3533
3534 * dwarf2read.c (attr_form_is_block): Make argument const.
3535 (attr_form_is_section_offset): Make argument const.
3536 (attr_form_is_constant): Make argument const.
3537 (attr_form_is_ref): Make argument const.
3538
7771576e
SA
35392013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3540
3541 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3542 All uses updated.
3543 (attr_form_is_ref): Moved below attr_form_is_constant.
3544
a94e8645
DE
35452013-07-29 Doug Evans <dje@google.com>
3546
bb5291d0
DE
3547 * main.c (captured_command_loop): Tweak comment.
3548
b5419e49
DE
3549 * target.c (target_async_permitted_1): Fix comment.
3550
b2d23133
DE
3551 * symtab.c (iterate_over_some_symtabs): Add comment.
3552
a94e8645
DE
3553 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3554
7a60ad40
YQ
35552013-07-27 Yao Qi <yao@codesourcery.com>
3556
3557 * NEWS: Mention that GDBserver now supports hardware
3558 watchpoints on the MIPS GNU/Linux target.
3559
aaee2056
YQ
35602013-07-27 Yao Qi <yao@codesourcery.com>
3561
3562 * Makefile.in (HFILES_NO_SRCDIR): Add
3563 common/mips-linux-watch.h.
3564 (mips-linux-watch.o): New rule.
3565 * common/mips-linux-watch.c: New.
3566 * common/mips-linux-watch.h: New.
3567 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3568 * mips-linux-nat.c: Include mips-linux-watch.h.
3569 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3570 to common/mips-linux-watch.h.
3571 (MAX_DEBUG_REGISTER): Likewise.
3572 (enum pt_watch_style): Likewise.
3573 (struct mips32_watch_regs): Likewise.
3574 (struct mips64_watch_regs): Likewise.
3575 (struct pt_watch_regs): Likewise.
3576 (struct mips_watchpoint): Likewise.
3577 (mips_linux_watch_get_irw_mask): Move to
3578 common/mips-linux-watch.c.
3579 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3580 (mips_linux_watch_get_watchlo): Likewise.
3581 (mips_linux_watch_set_watchlo): Likewise.
3582 (mips_linux_watch_get_watchhi): Likewise.
3583 (mips_linux_watch_set_watchhi): Likewise.
3584 (mips_linux_read_watch_registers): Likewise.
3585 (mips_linux_watch_type_to_irw): Likewise.
3586 (mips_linux_stopped_data_address, fill_mask): Likewise.
3587 (mips_linux_watch_try_one_watch): Likewise.
3588 (mips_linux_watch_populate_regs): Likewise.
3589
b3436450
YQ
35902013-07-27 Yao Qi <yao@codesourcery.com>
3591
3592 * mips-linux-nat.c (get_irw_mask): Rename to ...
3593 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3594 'set' to 'n'. Update function comment. All callers changed.
3595 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3596 function comment. All callers changed.
3597 (get_num_valid): Rename to ...
3598 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3599 'set' to 'n'. Update function comment. All callers changed.
3600 (get_watchlo): Rename to ...
3601 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3602 'set' to 'n'. Update function comment. All callers changed.
3603 (set_watchlo): Rename to ...
3604 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3605 'set' to 'n'. Update function comment. All callers changed.
3606 (get_watchhi): Rename to ...
3607 (mips_linux_watch_get_watchhi): ... this. Update function
3608 comment. All callers changed.
3609 (set_watchhi): Rename to ...
3610 (mips_linux_watch_set_watchhi): ... this. Update function
3611 comment. All callers changed.
3612 (mips_linux_read_watch_registers): Update function comment.
3613 Add new parameters 'lwpid', 'watch_readback', and
3614 'watch_readback_valid'. Update.
3615 (type_to_irw): Rename to ...
3616 (mips_linux_watch_type_to_irw): ... this. Update function
3617 comment. All callers changed.
3618 (fill_mask): Update function comment.
3619 (try_one_watch): Rename to ...
3620 (mips_linux_watch_try_one_watch): ... this. Change the type
3621 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3622 (populate_regs_from_watches): Rename to ...
3623 (mips_linux_watch_populate_regs): ... this. Add parameter
3624 'current_watches'. All callers changed.
3625
9be14b81
YQ
36262013-07-27 Yao Qi <yao@codesourcery.com>
3627
3628 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3629 the code.
3630 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3631 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3632 (struct pt_watch_regs): Likewise.
3633 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3634 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3635 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3636 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3637 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3638
de6f69ad
YQ
36392013-07-27 Yao Qi <yao@codesourcery.com>
3640
3641 * breakpoint.h: Include break-common.h.
3642 (enum target_hw_bp_type): Move to ...
3643 * common/break-common.h: ... here. New.
3644
6f64ef53
PA
36452013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3646
3647 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3648 process group regardless of having tty on stdin.
3649
6107e809
DE
36502013-07-25 Doug Evans <dje@google.com>
3651
3652 * linux-fork.h (detach_fork): Delete.
3653
7fdc1521
TT
36542013-07-25 Tom Tromey <tromey@redhat.com>
3655
3656 PR remote/15256, PR remote/15266:
3657 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3658 * monitor.c (monitor_detach): Use unpush_target.
3659 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3660 * remote-mips.c (mips_detach): Use unpush_target. Don't
3661 call mips_close.
3662 * remote-sim.c (gdbsim_detach): Use unpush_target.
3663 * target.c (pop_target): Remove.
3664 (pop_all_targets_above): Don't call target_close.
3665 (target_close): Assert that the target is unpushed.
3666 * target.h (pop_target): Don't declare.
3667 * tracepoint.c (tfile_open): Use unpush_target.
3668
c22a2b88
TT
36692013-07-25 Tom Tromey <tromey@redhat.com>
3670
3671 * linux-thread-db.c (init_thread_db_ops): Call
3672 complete_target_initialization.
3673 (_initialize_thread_db): Don't call add_target.
3674 * target.c (complete_target_initialization): New function.
3675 (add_target_with_completer): Call it.
3676 * target.h (complete_target_initialization): Declare.
3677
cbb6aada
MK
36782013-07-25 Mark Kettenis <kettenis@gnu.org>
3679
3680 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3681 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3682 (HPPANBSD_SIZEOF_GREGS): New define.
3683 (hppaobsd_supply_gregset): Handle additional registers.
3684 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3685 we provide more registers now.
3686 (hppabsd_supply_gregset): Supply additional registers.
3687 (hppabsd_collect_gregset): Collect additional registers.
3688
17767988
MK
36892013-07-25 Mark Kettenis <kettenis@gnu.org>
3690
3691 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3692 (hppabsd_dwarf2_frame_init_reg): New function.
3693 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3694
fdc8aae8
AB
36952013-07-25 Andrew Burgess <aburgess@broadcom.com>
3696
3697 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3698 'z' format code. Remove error for optimized out values, standard
3699 code will handle these fine.
3700
6fbe845e
AB
37012013-07-25 Andrew Burgess <aburgess@broadcom.com>
3702
3703 * NEWS: Mention new 'z' formatter.
3704 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3705 (_initialize_printcmd): Mention 'z' formatter in help text of the
3706 'x' command.
3707
3373342d
MR
37082013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3709
3710 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3711 formatting.
3712
25f9533e
SDJ
37132013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3714
3715 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3716 interface can evaluate arguments. Fallback to the old mode if it
3717 cannot.
3718 (create_exception_master_breakpoint): Likewise.
3719 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3720 (struct sym_probe_fns elf_probe_fns): Export function above to the
3721 probe interface.
3722 * probe.c (can_evaluate_probe_arguments): New function.
3723 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3724 function pointer.
3725 (can_evaluate_probe_arguments): New function prototype.
3726 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3727 probe interface can evaluate arguments. Fallback to the old mode
3728 if it cannot.
3729 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3730 interface can evaluate arguments. Warning the user if it cannot.
3731 (stap_can_evaluate_probe_arguments): New function.
3732 (struct probe_ops stap_probe_ops): Export function above to the
3733 probe interface.
3734 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3735 New function pointer.
3736
3360c0bf
LM
37372013-07-24 Luis Machado <lgustavo@codesourcery.com>
3738
3739 * Makefile.in (SFILES): Add common/target-common.c.
3740 Add common/target-common.h to headers.
3741 (COMMON_OBS): Add target-common.o.
3742 (target-common.o): New target.
3743 * linux-nat.h (resume_kind): Move to common/target-common.h.
3744 * target.c (target_waitstatus_to_string): Move to
3745 common/target-common.c.
3746 * target.h: Include target-common.h.
3747 (target_waitkind): Move to common/target-common.h.
3748 (target_waitstatus): Likewise.
3749 (TARGET_WNOHANG): Likewise.
3750 * common/target-common.c: New file.
3751 * common/target-common.h: New file.
3752
6656a72d
DE
37532013-07-24 Doug Evans <dje@google.com>
3754
3755 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3756 a warning.
3757
6df81a63
YQ
37582013-07-23 Yao Qi <yao@codesourcery.com>
3759
3760 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3761 parameter 'gdbarch'.
3762 (i386_stack_tramp_frame_sniffer): Caller update.
3763 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3764 parameter 'gdbarch' and 'target'.
3765 (i386_linux_core_read_description): Caller update.
3766 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3767 Likewise.
3768 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3769 declaration.
3770
365156ad
TT
37712013-07-23 Tom Tromey <tromey@redhat.com>
3772
3773 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3774 2013-07-22.
3775
046ac79f
JK
37762013-07-22 Doug Evans <dje@google.com>
3777
3778 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3779 * exec.c (exec_close): Update call to remove_target_sections.
3780 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3781 * solib.c (update_solib_list): Ditto.
3782 (reload_shared_libraries_1): Ditto.
3783 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3784 * target.h (struct target_section): Rename key to owner.
3785 All uses updated.
046ac79f 3786
29b2cc46
TT
37872013-07-22 Tom Tromey <tromey@redhat.com>
3788
3789 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3790
d1160018
TT
37912013-07-22 Tom Tromey <tromey@redhat.com>
3792
3793 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3794 Simplify cleanup handling.
3795
2f324bf6
TT
37962013-07-22 Tom Tromey <tromey@redhat.com>
3797
3798 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3799 on all return paths.
3800
e23b9d6e
UW
38012013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3802
3803 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3804 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3805 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3806
1cf55f60
PM
38072013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3808
3809 * top.c (print_gdb_version): Add help, apropos description and
3810 url to online documentation.
3811
fa876972
HZ
38122013-07-19 Hui Zhu <hui@codesourcery.com>
3813
3814 PR gdb/15692
3815 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3816
1527aea8
YQ
38172013-07-19 Yao Qi <yao@codesourcery.com>
3818
3819 * target.c (update_current_target): Change the default action
3820 of 'to_traceframe_info' from tcomplain to return_zero.
3821 * target.h (struct target_ops) <to_traceframe_info>: Add more
3822 comments.
3823 * valops.c (read_value_memory): Call
3824 traceframe_available_memory unconditionally.
3825
886f230e
YQ
38262013-07-18 Yao Qi <yao@codesourcery.com>
3827
3828 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3829 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3830 symbol without prefix. If found, set its type to
3831 'mst_solib_trampoline'.
3832
16419bae
DE
38332013-07-17 Doug Evans <dje@google.com>
3834
e7045703
DE
3835 * NEWS: Mention "set print raw frame-arguments".
3836 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3837 * stack.c (print_raw_frame_arguments): New static global.
3838 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3839 (_initialize_stack): New command "set/show print raw frame-arguments".
3840 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3841 (set_print_raw, show_print_raw): New functions.
3842 (_initialize_valprint): New prefix command "set/show print raw".
3843 * valprint.h (value_print_options): Improve comments.
3844
453e48a5
DE
3845 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3846 of all *list variables.
3847
16419bae
DE
3848 * gdbcmd.h (togglelist): Delete.
3849 * cli/cli-cmds.c (togglelist): Delete.
3850 (init_cmd_lists): Update.
3851 * cli/cli-cmds.h (togglelist): Delete.
3852
626f2d1c
TT
38532013-07-17 Tom Tromey <tromey@redhat.com>
3854
3855 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3856 dwarf2_per_objfile.
3857
57e6060e
DE
38582013-07-16 Doug Evans <dje@google.com>
3859
3860 * nto-tdep.c (nto_relocate_section_addresses): Update,
3861 target_section.bfd deleted.
3862 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3863 * s390-tdep.c (s390_load): Ditto.
3864 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3865
5ea5559b
AB
38662013-07-16 Andrew Burgess <aburgess@broadcom.com>
3867
3868 * common/format.c (parse_format_string): Add checks for NULL
3869 character before calling strchr.
3870
2b2848e2
DE
38712013-07-16 Doug Evans <dje@google.com>
3872
2c571006
DE
3873 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3874 temp_pathname argument.
3875 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3876 when opening the file fails.
3877
2b2848e2
DE
3878 * target.h (struct target_section): Delete member bfd.
3879 All users updated to use the_bfd_section->owner instead.
3880 * exec.c (add_to_section_table): Assert bfd is expected value.
3881 Remove initialization of target_section.bfd.
3882 (remove_target_sections): Update.
3883 (section_table_available_memory): Update.
3884 (section_table_xfer_memory_partial): Update.
3885 (print_section_info): Update.
3886 (exec_set_section_address): Update.
3887 * record-full.c (record_full_core_xfer_partial): Update.
3888 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3889 * solib-target.c (solib_target_relocate_section_addresses): Update.
3890 * symfile.c (build_section_addr_info_from_section_table): Update.
3891 * target.c (memory_xfer_live_readonly_partial): Update.
3892 (memory_xfer_partial_1): Update.
3893
926bf92d
UW
38942013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3895
3896 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3897 now available for embedded (BookE) and server (BookS) processors,
3898 correct mentions of 'booke' and adjust comments accordingly in order to
3899 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3900 (have_ptrace_booke_interface): Rename function and variable
3901 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3902 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3903 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3904 'hwdebug_point_cmp'. Update all uses.
3905 (booke_find_thread_points_by_tid): Rename function
3906 'booke_find_thread_points_by_tid' to
3907 'hwdebug_find_thread_points_by_tid'. Update all uses.
3908 (booke_insert_point): Rename function 'booke_insert_point' to
3909 'hwdebug_insert_point'. Update all uses.
3910 (booke_remove_point): Rename function 'booke_remove_point' to
3911 'hwdebug_remove_point'. Update all uses.
3912
d929bc19
MR
39132013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3914
3915 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3916 numbers with enum values.
3917
054e8d9e
AA
39182013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3919
3920 PR threads/13217
3921 * thread.c (thread_apply_all_command): Check for valid threads
3922 and thread count.
3923 (thread_array_cleanup): New struct.
3924 (set_thread_refcount): New function.
3925
cf006359
AB
39262013-07-11 Andrew Burgess <aburgess@broadcom.com>
3927
3928 * infcmd.c (default_print_one_register_info): Reuse function
3929 print_hex_chars.
3930
94e36acc
TT
39312013-07-10 Tom Tromey <tromey@redhat.com>
3932
3933 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3934 (ada-exp.o): New target.
3935
915dd369
SDJ
39362013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3937
3938 * mt-tdep.c (mt_registers_info): Call
3939 get_no_prettyformat_print_options instead of
3940 get_raw_print_options (regression by last patch from Doug
3941 Evans).
3942
eca07816
JB
39432013-07-09 Pedro Alves <palves@redhat.com>
3944
3945 Checked in by Joel Brobecker <brobecker@adacore.com>.
3946 * ada-lang.c (coerce_unspec_val_to_type): Use
3947 value_optimized_out_const.
3948 * value.c (value_optimized_out_const): New function.
3949 * value.h (value_optimized_out_const): New declaration.
3950
2a998fc0
DE
39512013-07-09 Doug Evans <dje@google.com>
3952
3953 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3954 Enum values rename as well. All uses updated.
3955 * valprint.h (value_print_options): Rename member pretty to
3956 pretty format. Rename member prettyprint_arrays to
3957 prettyformat_arrays. Rename member prettyprint_structs to
3958 prettyformat_structs. All uses updated.
3959 (get_no_prettyformat_print_options): Renamed from
3960 get_raw_print_options.
3961 * valprint.c (get_no_prettyformat_print_options): Renamed from
3962 get_raw_print_options. All callers updated.
3963 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3964 All callers updated.
3965 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3966 All callers updated.
3967 (_initialize_valprint): Improve help text for "set print pretty" and
3968 "set print arrays".
3969
466c1fca
AB
39702013-07-09 Andrew Burgess <aburgess@broadcom.com>
3971
3972 * value.c (value_bits_valid): Revert previous change, and change
3973 by Pedro on 2013-07-04, due to regressions in
3974 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3975
ad0f0303
AB
39762013-07-08 Andrew Burgess <aburgess@broadcom.com>
3977 Pedro Alves <palves@redhat.com>
3978
3979 * value.c (value_bits_valid): If the value is not lval_computed
3980 or has no check validity handler then the answer is the
3981 optimized_out flag, otherwise defer to the handler.
3982
b187bec1
EZ
39832013-07-06 Eli Zaretskii <eliz@gnu.org>
3984
48d1d6f5
EZ
3985 * top.c (print_gdb_configuration): Explain in output of
3986 --configuration what does "relocatable" mean.
3987
b187bec1
EZ
3988 * main.c (print_gdb_help): Regroup options in the --help text.
3989 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3990 the relevant discussions.
3991
52d361e1
YQ
39922013-07-06 Yao Qi <yao@codesourcery.com>
3993
3994 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3995 Remove parameter 'lsal'.
3996 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3997 to inner block. Caller update.
3998 (base_breakpoint_create_breakpoints_sal): Update.
3999 (bkpt_create_breakpoints_sal): Likewise.
4000 (tracepoint_create_breakpoints_sal): Likewise.
4001 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4002 element 0 of vector 'canonical->sals'.
4003
e1ec1b42
LM
40042013-07-05 Luis Machado <lgustavo@codesourcery.com>
4005
4006 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4007 register number instead of the pseudo register one.
4008 (rs6000_dwarf2_reg_to_regnum): Likewise.
4009
7195e6f0
PA
40102013-07-04 Pedro Alves <palves@redhat.com>
4011
4012 * findvar.c (value_of_register): Use allocate_optimized_out_value
4013 if the register has been optimized out, instead of
4014 set_value_optimized_out.
4015 * frame-unwind.c (frame_unwind_got_optimized): Use
4016 allocate_optimized_out_value.
4017
58722cac
PA
40182013-07-04 Pedro Alves <palves@redhat.com>
4019
4020 * value.c (value_bits_valid): If the value is not lval_computed,
4021 or doesn't have a check_validity hook, assume the value is entirely
4022 valid.
4023
691a26f5
AB
40242013-07-04 Andrew Burgess <aburgess@broadcom.com>
4025
4026 * stack.c (read_frame_arg): No longer fetch lazy values.
4027 * value.c (value_optimized_out): If the value is not already
4028 marked optimized out, and is lazy then fetch it.
4029 (value_primitive_field): Move optimized out check to later in the
4030 function, after we have loaded any lazy values.
4031 (value_fetch_lazy): Use optimized out flag directly rather than
4032 calling optimized_out method.
4033
a58e2656
AB
40342013-07-04 Andrew Burgess <aburgess@broadcom.com>
4035
4036 * valops.c: Don't include "user-regs.h".
4037 (value_fetch_lazy): Moved to value.c.
4038 * value.c: Include "user-regs.h".
4039 (value_fetch_lazy): Moved from valops.c.
4040
bd885420
YQ
40412013-07-04 Yao Qi <yao@codesourcery.com>
4042
4043 Revert:
4044 2013-06-27 Yao Qi <yao@codesourcery.com>
4045
4046 * common/create-version.sh: Update comments. Handle the case
4047 that TARGET_ALIAS is empty.
4048
17ef446e
PA
40492013-07-03 Pedro Alves <palves@redhat.com>
4050
4051 * Makefile.in (config.status): Depend on development.sh.
4052 (aclocal_m4_deps): Add libmcheck.m4.
4053 * acinclude.m4: Include libmcheck.m4.
4054 * configure.ac: Source development.sh instead of setting
4055 'development' here. --enable-libmcheck/--disable-libmcheck code
4056 factored out to GDB_AC_LIBMCHECK. Run it.
4057 * development.sh: New file.
4058 * libmcheck.m4: New file.
4059 * configure: Regenerate.
4060
ac6dd50f
TT
40612013-07-02 Tom Tromey <tromey@redhat.com>
4062
4063 * contrib/ari/update-web-ari.sh: Update for version.in change.
4064
bd1df410
TT
40652013-07-02 Tom Tromey <tromey@redhat.com>
4066
4067 * common/ptid.h: Comment fixes.
4068
4db1a1dc
TT
40692013-07-01 Tom Tromey <tromey@redhat.com>
4070
4071 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4072 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4073 (dwarf2_read_index, create_all_comp_units): Update.
4074
dd9aa048
TT
40752013-07-01 Tom Tromey <tromey@redhat.com>
4076
4077 * configure.ac (build_warnings): Add -Wold-style-definition.
4078 * configure: Rebuild.
4079 * machoread.c (_initialize_machoread): Use "(void)".
4080 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4081 use "(void)".
4082
44d100c3
TT
40832013-07-01 Tom Tromey <tromey@redhat.com>
4084
4085 * configure.ac (build_warnings): Add -Wold-style-declaration.
4086 * configure: Rebuild.
4087 * dsrec.c (make_srec): Use "static const", not "const static".
4088 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4089 not "const static".
4090 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4091 Use "static const", not "const static".
4092 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4093 not "const static".
4094 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4095 not "const static".
4096 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4097 not "const static".
4098 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4099 not "const static".
4100 (v850_dbtrap_breakpoint_from_pc): Likewise.
4101 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4102 not "const static".
4103
2945b807
TT
41042013-07-01 Tom Tromey <tromey@redhat.com>
4105
4106 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4107 * configure: Rebuild.
4108
d8d2a3ee
PA
41092013-07-01 Pedro Alves <palves@redhat.com>
4110
4111 * defs.h: Include "pathmax.h".
4112 * utils.c: Don't include sys/param.h.
4113 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4114 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4115 instead of MAXPATHLEN.
4116 * solib-sunos.c: Don't include sys/param.h.
4117 * xcoffread.c: Don't include sys/param.h.
4118 * bsd-kvm.c: Don't include sys/param.h.
4119 * darwin-nat.c: Don't include sys/param.h.
4120 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4121 * darwin-nat-info.c: Don't include sys/param.h.
4122 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4123 MAXPATHLEN.
4124 * i386obsd-nat.c: Don't include sys/param.h.
4125 * inf-child.c: Don't include sys/param.h.
4126 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4127 * linux-fork.c: Don't include sys/param.h.
4128 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4129 * linux-nat.c: Don't include sys/param.h.
4130 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4131 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4132 * m68klinux-nat.c: Don't include sys/param.h.
4133 * nbsd-nat.c: Don't include sys/param.h.
4134 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4135 * ppc-linux-nat.c: Don't include sys/param.h.
4136 * rs6000-nat.c: Don't include sys/param.h.
4137 * spu-linux-nat.c. Don't include sys/param.h.
4138 * windows-nat.c: Don't include sys/param.h.
4139 * xtensa-linux-nat.c: Don't include sys/param.h.
4140 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4141
38ec2207
PA
41422013-07-01 Pedro Alves <palves@redhat.com>
4143
4144 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4145 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4146 * gnulib/aclocal.m4: Regenerate.
4147 * gnulib/config.in: Regenerate.
4148 * gnulib/configure: Regenerate.
4149 * gnulib/import/pathmax.h: New file.
4150 * gnulib/import/Makefile.am: Regenerate.
4151 * gnulib/import/Makefile.in: Regenerate.
4152 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4153 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4154 * gnulib/import/m4/pathmax.m4: New file.
4155
e655c1a2
PA
41562013-07-01 Pedro Alves <palves@redhat.com>
4157
4158 * configure.ac (GDBINIT): Define, depending on host.
4159 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4160 * top.c (PATH_MAX): Delete fallback definition.
4161 (GDBINIT_FILENAME): Delete.
4162 (gdbinit): Reimplement as const char array set to the GDBINIT
4163 string constant.
4164 * top.h (gdbinit): Make const.
4165 * configure, config.in: Regenerate.
4166
50dd9793
PA
41672013-07-01 Pedro Alves <palves@redhat.com>
4168
4169 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4170 * cli/cli-cmds.h (source_script): Likewise.
4171 * exceptions.c (catch_command_errors_const): New function.
4172 * exceptions.h (catch_command_errors_const): Declare.
4173 * main.c (get_init_files): Make parameters const, and adjust.
4174 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4175 'local_gdbinit' locals const. Adjust to use
4176 catch_command_errors_const.
4177 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4178 'local_gdbinit' locals const.
4179
bc7dea8d
PA
41802013-07-01 Pedro Alves <palves@redhat.com>
4181
4182 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4183 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4184 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4185 <unistd.h>.
4186
8839a007
PA
41872013-07-01 Pedro Alves <palves@redhat.com>
4188
4189 Import the "unistd" gnulib module.
4190 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4191 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4192 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4193 import/m4/unistd_h.m4.
4194 * gnulib/aclocal.m4: Renenerate.
4195 * gnulib/config.in: Renenerate.
4196 * gnulib/configure: Renenerate.
4197 * gnulib/import/Makefile.am: Renenerate.
4198 * gnulib/import/Makefile.in: Renenerate.
4199 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4200 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4201 * gnulib/import/m4/off_t.m4: New file.
4202 * gnulib/import/m4/ssize_t.m4: New file.
4203 * gnulib/import/m4/sys_types_h.m4: New file.
4204 * gnulib/import/m4/unistd_h.m4: New file.
4205 * gnulib/import/sys_types.in.h: New file.
4206 * gnulib/import/unistd.c: New file.
4207 * gnulib/import/unistd.in.h: New file.
4208
8c0da261
PA
42092013-07-01 Pedro Alves <palves@redhat.com>
4210
4211 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4212 defined instead of checking HAVE_UNISTD_H.
4213
3574124b
PA
42142013-07-01 Pedro Alves <palves@redhat.com>
4215
4216 Reimport gnulib from scratch.
4217 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4218 import/m4/onceonly.m4.
4219 * gnulib/aclocal.m4: Renegerate.
4220 * gnulib/config.in: Renegerate.
4221 * gnulib/configure: Renegerate.
4222 * gnulib/import/Makefile.in: Renegerate.
4223 * gnulib/import/extra/update-copyright: Renegerate.
4224 * gnulib/import/m4/onceonly.m4: Delete.
4225
702dc4fd
PA
42262013-07-01 Pedro Alves <palves@redhat.com>
4227
4228 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4229
47e1ce27
JK
42302013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 Code cleanup.
4233 * remote.c (async_remote_interrupt_twice): Make it static.
4234 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4235
e82839d4
SDJ
42362013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4237
4238 * ia64-linux-tdep.c: Include <ctype.h>.
4239 (ia64_linux_stap_is_single_operand): New function.
4240 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4241
d6c2da54
TT
42422013-06-28 Tom Tromey <tromey@redhat.com>
4243
4244 * Makefile.in (version.c): Use version.in, not
4245 common/version.in.
4246 * common/create-version.sh: Likewise.
4247 * common/version.in: Move...
4248 * version.in: ...here.
4249
74da6f00
PA
42502013-06-28 Pedro Alves <palves@redhat.com>
4251
4252 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4253 here.
4254 * utils.h (pagination_enabled): Declare.
4255
d32dc48e
PA
42562013-06-28 Pedro Alves <palves@redhat.com>
4257
4258 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4259 Move higher up in file.
4260
0edd9e3b
TT
42612013-06-28 Tom Tromey <tromey@redhat.com>
4262
4263 * tracepoint.c (deprecated_readline_begin_hook)
4264 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4265 declare.
4266
4eb59108
PA
42672013-06-28 Pedro Alves <palves@redhat.com>
4268
4269 PR tui/14880
4270 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4271 checking if they're available.
4272 * value.c (value_available_contents_eq): Change comment.
4273 * value.h (value_available_contents_eq): Expand comment.
4274
97b17156
TT
42752013-06-27 Tom Tromey <tromey@redhat.com>
4276
4277 * target.c (find_run_target): Remove.
4278 * target.h (find_run_target): Remove.
4279
6a3bfc5c
TT
42802013-06-27 Tom Tromey <tromey@redhat.com>
4281
4282 * corelow.c (core_gdbarch): Now static.
4283
c9ef825d
TT
42842013-06-27 Tom Tromey <tromey@redhat.com>
4285
4286 * target.c (target_struct_index): Remove.
4287
e5823f1c
PA
42882013-06-27 Pedro Alves <palves@redhat.com>
4289
4290 * infrun.c: Remove comment describing the 'stepping over runtime
4291 loader dynamic symbol resolution code' mechanism; moved to
4292 gdbint.texinfo.
4293
97f8dd09
PA
42942013-06-27 Pedro Alves <palves@redhat.com>
4295
4296 * exceptions.c (catch_command_errors): Remove spurious space.
4297 * exceptions.h (catch_command_errors): Second parameter is "arg",
4298 not "command".
4299
02b1871e
YQ
43002013-06-27 Yao Qi <yao@codesourcery.com>
4301
4302 * common/create-version.sh: Update comments. Handle the case
4303 that TARGET_ALIAS is empty.
4304
bb1b1cf1
PA
43052013-06-26 Pedro Alves <palves@redhat.com>
4306
4307 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4308 comment.
4309
7b624e71
PA
43102013-06-26 Pedro Alves <palves@redhat.com>
4311
4312 * infrun.c: Update comments on stepping over runtime loader
4313 dynamic symbol resolution code.
4314
74e5a346
SDJ
43152013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4316
4317 * ax-gdb.h (union exp_element): Forward declare.
4318 * parser-defs.h: Include expression.h.
4319
a2fb2cee
MR
43202013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4321
4322 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4323
cdba14e0
DK
43242013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4325
4326 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4327
f30aa5af
DK
43282013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4329
4330 Fix trace-status to output proper start-time and stop-time.
4331 * tracepoint.c (trace_status_command): Fix type of printf arg to
4332 prevent improper type conversion.
4333 (trace_status_mi): Likewise.
4334
1aee363c
MR
43352013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4336
4337 * mips-tdep.c (mips_next_pc): Fix a typo.
4338
3356937a
MR
43392013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4340
4341 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4342
dc673c81
YQ
43432013-06-26 Pedro Alves <pedro@codesourcery.com>
4344 Yao Qi <yao@codesourcery.com>
4345
4346 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4347 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4348 * mi/mi-main.c (print_variable_or_computed): New function.
4349 (mi_cmd_trace_frame_collected): New function.
4350 * tracepoint.c (find_trace_state_variable_by_number): New.
4351 (struct traceframe_info): Move to tracepoint.h
4352 (struct collection_list): Likewise.
4353 (do_collect_symbol): Include locals and arguments in the
4354 collected variables list.
4355 (clear_collection_list): Clear wholly collected variables list
4356 and computed variables list.
4357 (append_exp): New function.
4358 (encode_actions_1): Include variables in the wholly
4359 collected variables list. Include memory ranges and
4360 full-fledged expressions in the computed expressions list.
4361 (encode_actions): Move some code to ...
4362 Return the cleanup chain.
4363 (encode_actions_rsp): ... here. New function.
4364 (get_traceframe_location, get_traceframe_info): Remove static.
4365 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4366 (struct collection_list): Moved from tracepoint.c. Add two
4367 new fields 'wholly_collected' and 'computed'.
4368 (find_trace_state_variable_by_number): Declare.
4369 (encode_actions): Adjust declaration.
4370 (encode_actions_rsp): Declare.
4371 (get_traceframe_info, get_traceframe_location): Declare.
4372
4373 * NEWS: Mention new MI command -trace-frame-collected.
4374
28a93511
YQ
43752013-06-26 Pedro Alves <pedro@codesourcery.com>
4376 Yao Qi <yao@codesourcery.com>
4377
4378 * ctf.c (ctf_traceframe_info): Push trace state variables
4379 present in the trace data into the traceframe info object.
4380 * breakpoint.c (DEF_VEC_I): Remove.
4381 * common/filestuff.c (DEF_VEC_I): Likewise.
4382 * dwarf2loc.c (DEF_VEC_I): Likewise.
4383 * mi/mi-main.c (DEF_VEC_I): Likewise.
4384 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4385 * features/traceframe-info.dtd: Add tvar element and its
4386 attributes.
4387 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4388 (build_traceframe_info): Push trace state variables present in
4389 the trace data into the traceframe info object.
4390 (traceframe_info_start_tvar): New function.
4391 (tvar_attributes): New.
4392 (traceframe_info_children): Add "tvar" element.
4393 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4394
4395 * NEWS: Mention the change in GDB and GDBserver.
4396
ddacd3c8
YQ
43972013-06-26 Pedro Alves <pedro@codesourcery.com>
4398 Yao Qi <yao@codesourcery.com>
4399
4400 * tracepoint.c (trace_dump_command): Move code to ...
4401 (get_traceframe_location): ... here. New.
4402
05796b35
YQ
44032013-06-26 Pedro Alves <pedro@codesourcery.com>
4404 Yao Qi <yao@codesourcery.com>
4405
4406 * tracepoint.c (trace_dump_command): GDB emits an error
4407 instead of a warning when a traceframe is not selected.
4408
cbfa3b61
YQ
44092013-06-26 Pedro Alves <pedro@codesourcery.com>
4410 Yao Qi <yao@codesourcery.com>
4411
4412 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4413 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4414 in collection_list.
4415 (do_clear_collection_list, init_collection_list): New.
4416 (encode_actions): Add local variables 'tracepoint_list' and
4417 'stepping_list'. Call init_collection_list and make cleanup
4418 which calls do_clear_collection_list. Don't call
4419 clear_collection_list.
4420 (_initialize_tracepoint): Delete references to
4421 'tracepoint_list' and 'stepping_list'.
4422
6e2048d3
TT
44232013-06-25 Tom Tromey <tromey@redhat.com>
4424
4425 * common/create-version.sh (date): Use "$", not "$$" in sed
4426 expression.
4427
42059f0e
KB
44282013-06-25 Kevin Buettner <kevinb@redhat.com>
4429
4430 * NEWS (New targets): Add entry for TI MSP430.
4431
a0743c90
YQ
44322013-06-25 Yao Qi <yao@codesourcery.com>
4433
4434 * remote.c (remote_start_remote): Move code to upload tsv
4435 earlier.
4436
9d6e6e84
HZ
44372013-06-25 Yao Qi <yao@codesourcery.com>
4438 Hui Zhu <hui@codesourcery.com>
4439 Pedro Alves <palves@redhat.com>
4440
4441 PR breakpoints/15075
4442 PR breakpoints/15434
4443 * breakpoint.c (bpstat_stop_status): Call
4444 b->ops->after_condition_true.
4445 (update_dprintf_command_list): Don't append "continue" command
4446 to the command list of dprintf breakpoint.
4447 (base_breakpoint_after_condition_true): New function.
4448 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4449 (dprintf_after_condition_true): New function.
4450 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4451 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4452
586cf749
KB
44532013-06-24 Kevin Buettner <kevinb@redhat.com>
4454
4455 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4456 (ALLDEPFILES): Add msp430-tdep.c.
4457 * configure.tgt (msp430*-*-elf): New target.
4458 * msp430-tdep.c: New file.
4459
1bbce132
MR
44602013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4461
4462 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4463 microMIPS synthetic symbols.
4464
3e5d3a5a
MR
44652013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4466
4467 * objfiles.h (pc_in_section): New prototype.
4468 (in_plt_section): Remove name argument, replace prototype with
4469 static inline function.
4470 * mips-tdep.h: Include "objfiles.h".
4471 (in_mips_stubs_section): New function.
4472 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4473 in_solib_call_trampoline member.
4474 (hppa_in_solib_call_trampoline): Remove name argument.
4475 * objfiles.c (pc_in_section): New function.
4476 (in_plt_section): Remove function.
4477 * mips-linux-tdep.c: Include "objfiles.h".
4478 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4479 name argument. Return 1 rather than the low 16-bit halfword of
4480 any instruction examined.
4481 (mips_linux_in_dynsym_resolve_code): Update
4482 mips_linux_in_dynsym_stub call accordingly.
4483 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4484 rather than an equivalent hand-coded sequence.
4485 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4486 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4487 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4488 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4489 in_opd_section.
4490 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4491 on call to tdep->in_solib_call_trampoline.
4492 (hppa_in_solib_call_trampoline): Remove name argument, update
4493 according to in_plt_section change.
4494 (hppa_skip_trampoline_code): Update according to in_plt_section
4495 change.
4496 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4497 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4498 Likewise.
4499 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4500 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4501 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4502 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4503 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4504 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4505 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4506 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4507 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4508 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4509 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4510 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4511 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4512
b9b26a16
JB
45132013-06-24 Joel Brobecker <brobecker@adacore.com>
4514
4515 * common/create-version.sh: Fix expansion of $host_alias
4516 and $target_alias in generation of HOST_NAME and TARGET_NAME
4517 (resp.).
4518
01208463
TT
45192013-06-24 Tom Tromey <tromey@redhat.com>
4520
4521 * common/create-version.sh: New file.
4522 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4523 create-version.sh.
4524 (HFILES_NO_SRCDIR): Use common/version.h.
4525 * version.in: Move to ...
4526 * common/version.in: ... here. Replace date with "DATE".
4527 * version.h: Move to ...
4528 * common/version.h: ... here.
4529
bb6b9a5e
JB
45302013-06-21 Joel Brobecker <brobecker@adacore.com>
4531
4532 * gdb/gnulib/Makefile.in: Update date in copyright header.
4533 * gdb/gnulib/configure.ac: Ditto.
4534 * gdb/gnulib/update-gnulib.sh: Ditto.
4535
c3b18ee7
JB
45362013-06-21 Joel Brobecker <brobecker@adacore.com>
4537
4538 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4539 "gdb/gnulib/import".
4540
85d3b769
WN
45412013-06-21 Will Newton <will.newton@linaro.org>
4542
4543 * doublest.c (ldfrexp): Remove function.
4544 (convert_doublest_to_floatformat): Call frexpl instead of
4545 ldfrexp.
4546
88b48903
WN
45472013-06-21 Will Newton <will.newton@linaro.org>
4548
4549 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4550 * gnulib/aclocal.m4: Regenerate.
4551 * gnulib/config.in: Regenerate.
4552 * gnulib/configure: Regenerate.
4553 * gnulib/import/Makefile.am: Update.
4554 * gnulib/import/Makefile.in: Update.
4555 * gnulib/import/m4/gnulib-cache.m4: Update.
4556 * gnulib/import/m4/gnulib-comp.m4: Update.
4557 * gnulib/import/float+.h: Import.
4558 * gnulib/import/float.c: Import.
4559 * gnulib/import/float.in.h: Import.
4560 * gnulib/import/fpucw.h: Import.
4561 * gnulib/import/frexp.c: Import.
4562 * gnulib/import/frexpl.c: Import.
4563 * gnulib/import/isnan.c: Import.
4564 * gnulib/import/isnand-nolibm.h: Import.
4565 * gnulib/import/isnand.c: Import.
4566 * gnulib/import/isnanl-nolibm.h: Import.
4567 * gnulib/import/isnanl.c: Import.
4568 * gnulib/import/itold.c: Import.
4569 * gnulib/import/m4/exponentd.m4: Import.
4570 * gnulib/import/m4/exponentl.m4: Import.
4571 * gnulib/import/m4/float_h.m4: Import.
4572 * gnulib/import/m4/fpieee.m4: Import.
4573 * gnulib/import/m4/frexp.m4: Import.
4574 * gnulib/import/m4/frexpl.m4: Import.
4575 * gnulib/import/m4/isnand.m4: Import.
4576 * gnulib/import/m4/isnanl.m4: Import.
4577 * gnulib/import/m4/math_h.m4: Import.
4578 * gnulib/import/math.c: Import.
4579 * gnulib/import/math.in.h: Import.
4580
4353c9e6
JK
45812013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4582
4583 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4584 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4585 signature_INTEL_edx comparisons.
4586
e3e06db3
DE
45872013-06-20 Doug Evans <dje@google.com>
4588
6ac97d4c
DE
4589 symtab/15652
4590 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4591 All callers updated.
4592 (open_dwp_file): If we can't find the dwp file, search the basename
4593 in debug-file-directory.
4594
93417882
DE
4595 * dwarf2read.c (struct dwp_file): Fix comment.
4596 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4597
e3e06db3
DE
4598 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4599 better.
4600
0878d0fa
YQ
46012013-06-20 Yao Qi <yao@codesourcery.com>
4602
4603 * breakpoint.c (create_breakpoint): Fix code indentation.
4604
023fa29b
YQ
46052013-06-20 Yao Qi <yao@codesourcery.com>
4606
4607 * breakpoint.c (create_breakpoints_sal_default): Remove
4608 parameter 'lsal'. Update declaration.
4609 (bkpt_create_breakpoints_sal): Caller update.
4610 (tracepoint_create_breakpoints_sal): Likewise.
4611
c898adb7
YQ
46122013-06-20 Pedro Alves <pedro@codesourcery.com>
4613 Yao Qi <yao@codesourcery.com>
4614
4615 * NEWS: Mention the new option '--skip-unavailable' of command
4616 -data-list-register-values.
4617 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4618 --skip-unavailable option. Adjust to use output_register.
4619 (output_register): Add new 'skip_unavailable' parameter.
4620 Handle it.
4621
4d157a3d
MF
46222013-06-19 Mike Frysinger <vapier@gentoo.org>
4623
4624 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4625 common/i386-gcc-cpuid.h.
4626 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4627 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4628 Copy the latest version from upstream gcc.
4629 * common/linux-btrace.c: Include i386-cpuid.h.
4630 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4631 call to i386_cpuid.
4632 (cpu_supports_btrace): Likewise.
4633 * go32-nat.c: Include i386-cpuid.h.
4634 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4635
1ce4db08
DE
46362013-06-19 Doug Evans <dje@google.com>
4637
4638 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4639 (get_section_index): Ditto.
4640
0e4777df
TT
46412013-06-19 Tom Tromey <tromey@redhat.com>
4642
4643 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4644 "dprintf" help.
4645
3190f0c6
DE
46462013-06-18 Doug Evans <dje@google.com>
4647
4648 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4649 before using it.
4650 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4651 Move test of cu_index closer to use. Print complaint if cu_index
4652 is bad.
4653
8b89a20a
JB
46542013-06-18 Joel Brobecker <brobecker@adacore.com>
4655
4656 * machoread.c (oso_vector): Delete this global.
4657 (macho_register_oso): Add new parameter "oso_vector_ptr".
4658 Use it instead of the "oso_vector" global.
4659 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4660 (macho_symfile_read): Use a local oso_vector, to be free'ed
4661 at the end of this function, in place of the old "oso_vector"
4662 global. Update various function calls accordingly. Use one
4663 single cleanup chain for the entire function.
4664
59b0c7c1
JB
46652013-06-18 Joel Brobecker <brobecker@adacore.com>
4666
937c708c 4667 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4668 DWARF2_PER_OBJFILE by uses of DATA instead.
4669
427cd150
TT
46702013-06-18 Tom Tromey <tromey@redhat.com>
4671
4672 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4673 argument.
4674 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4675 Special case signals other than GDB_SIGNAL_TRAP.
4676 (explains_signal_watchpoint): New function.
4677 (base_breakpoint_explains_signal): Add 'sig' argument.
4678 (initialize_breakpoint_ops): Set 'explains_signal' method for
4679 watchpoints.
4680 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4681 signal argument.
4682 (bpstat_explains_signal): Likewise.
4683 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4684
2d57700b
TT
46852013-06-18 Tom Tromey <tromey@redhat.com>
4686
4687 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4688
ac475191
TT
46892013-06-18 Tom Tromey <tromey@redhat.com>
4690
4691 * python/python.c (finish_python_initialization): Decref
4692 'pythondir' on failure path as well.
4693
5bd1ef56
TT
46942013-06-18 Tom Tromey <tromey@redhat.com>
4695
4696 PR symtab/15391:
4697 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4698 after taking bits_to_skip into account. Sign extend byte_offset.
4699 * utils.h (gdb_sign_extend): Declare.
4700 * utils.c (gdb_sign_extend): New function.
4701
92fac807
JK
47022013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4703
4704 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4705
2d503272
PM
47062013-06-17 Pierre Muller <muller@sourceware.org>
4707
4708 * corelow.c (core_open): Print GDB signal name instead of target
4709 signal number.
4710
6916fd98
MF
47112013-06-17 Mike Frysinger <vapier@gentoo.org>
4712
4713 * .gitignore: Add /gcore.
4714
9c02c129
DE
47152013-06-13 Doug Evans <dje@google.com>
4716
4717 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4718 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4719
d0548fa2
PM
47202013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4721
4722 * stack.c (backtrace_command_1): Fix indentation.
4723
22128028
JB
47242013-06-11 Joel Brobecker <brobecker@adacore.com>
4725
4726 * window-nat.c (thread_rec): Add missing empty line after
4727 local variable declaration.
4728
2ed3e009
JB
47292013-06-11 Joel Brobecker <brobecker@adacore.com>
4730
4731 * windows-nat.c (thread_rec): Revert format used to print
4732 error code returned by SuspendThread from %d back to %u.
4733
0c3d84be
JB
47342013-06-11 Joel Brobecker <brobecker@adacore.com>
4735
4736 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4737 ID in debug trace.
4738 (get_windows_debug_event): Likewise, for all debug traces.
4739
80e88e1a
JB
47402013-06-11 Joel Brobecker <brobecker@adacore.com>
4741
4742 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4743 warning message.
4744
1edebdbf
YQ
47452013-06-08 Pedro Alves <pedro@codesourcery.com>
4746 Yao Qi <yao@codesourcery.com>
4747
4748 * mi/mi-main.c (get_register): Remove declaration.
4749 (output_register): Declare.
4750 (mi_cmd_data_list_register_values): Remove local variable
4751 'tuple_cleanup'. Move some code into output_register.
4752 (get_register): Renamed to ...
4753 (output_register): ... this. Output the register's
4754 "number" ui_out tuple here.
4755
47d48711
PA
47562013-06-07 Pedro Alves <palves@redhat.com>
4757
4758 * darwin-nat.c: Fix formating in copyright header.
4759 * darwin-nat.h: Likewise.
4760 * gnu-nat.c: Likewise.
4761 * machoread.c: Likewise.
4762
3aee8918
PA
47632013-06-07 Pedro Alves <palves@redhat.com>
4764
5f2b57b5 4765 PR server/14823
3aee8918
PA
4766 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4767 static. Output a global target description pointer.
4768 (init_registers_${name}): Adjust to initialize a
4769 target description structure.
4770
fe8400b4
WN
47712013-06-07 Will Newton <will.newton@linaro.org>
4772
4773 * printcmd.c (build_address_symbolic): Call
4774 gdbarch_addr_bits_remove for text minimal symbols.
4775
20df6206
WN
47762013-06-07 Will Newton <will.newton@linaro.org>
4777
4778 * MAINTAINERS: Add myself to Write After Approval.
4779
aef525cb
YQ
47802013-06-07 Yao Qi <yao@codesourcery.com>
4781
4782 * tracepoint.c (start_tracing): Move code to ...
4783 (trace_reset_local_state): ... here. New.
4784 (disconnect_tracing): Don't call set_current_traceframe,
4785 set_tracepoint_num, and set_traceframe_context. Call
4786 trace_reset_local_state instead.
4787 (tfile_close): Call trace_reset_local_state.
4788 * ctf.c (ctf_close): Likewise.
4789 * remote.c (remote_close): Likewise.
4790 * tracepoint.h (trace_reset_local_state): Declare.
4791
d2415c6c
DE
47922013-06-06 Doug Evans <dje@google.com>
4793
4794 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4795 and fix header docs.
4796
69fc87c2
DE
47972013-06-05 Doug Evans <dje@google.com>
4798 Keith Seitz <keiths@redhat.com>
4799
4800 PR 15519
4801 * cp-namespace.c (find_symbol_in_baseclass): Call
4802 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4803 Check result of call to lookup_symbol_static.
4804 Call lookup_static_symbol_aux unconditionally.
4805 Call check_typedef on base types before accessing them.
4806 (cp_lookup_nested_symbol): Fix comment.
4807
a513d1e8
LM
48082013-06-05 Luis Machado <lgustavo@codesourcery.com>
4809
4810 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4811 minimal symbols pointing to function descriptors.
4812
351a6f02
TT
48132013-06-05 Tom Tromey <tromey@redhat.com>
4814
4815 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4816
5e1b953b 48172013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4818 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4819
4820 * remote.c (remote_wait_as): Restore signal handler before returning
4821 when GDB gets a notification.
4822
f9e14852
GB
48232013-06-04 Gary Benson <gbenson@redhat.com>
4824
8445cbf1 4825 PR 2328
f9e14852
GB
4826 * breakpoint.h (handle_solib_event): Moved function declaration
4827 to solib.h.
4828 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4829 (bpstat_stop_status): Pass new argument to handle_solib_event.
4830 * solib.h (update_solib_breakpoints): New function declaration.
4831 (handle_solib_event): Moved function declaration from
4832 breakpoint.h.
4833 * solib.c (update_solib_breakpoints): New function.
4834 (handle_solib_event): Moved function from breakpoint.c.
4835 Updated to call solib_ops->handle_event if not NULL.
4836 * solist.h (target_so_ops): New fields "update_breakpoints" and
4837 "handle_event".
4838 * infrun.c (set_stop_on_solib_events): New function.
4839 (_initialize_infrun): Use the above for "set
4840 stop-on-solib-events".
4841 (handle_inferior_event): Pass new argument to handle_solib_event.
4842 * solib-svr4.c (probe.h): New include.
4843 (svr4_free_library_list): New forward declaration.
4844 (probe_action): New enum.
4845 (probe_info): New struct.
4846 (probe_info): New static variable.
4847 (NUM_PROBES): New definition.
4848 (svr4_info): New fields "using_xfer", "probes_table" and
4849 "solib_list".
4850 (free_probes_table): New function.
4851 (free_solib_list): New function.
4852 (svr4_pspace_data_cleanup): Free probes table and solib list.
4853 (svr4_copy_library_list): New function.
4854 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4855 (svr4_read_so_list): New parameter "prev_lm".
4856 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4857 (svr4_current_sos): New function.
4858 (probe_and_action): New struct.
4859 (hash_probe_and_action): New function.
4860 (equal_probe_and_action): Likewise.
4861 (register_solib_event_probe): Likewise.
4862 (solib_event_probe_at): Likewise.
4863 (solib_event_probe_action): Likewise.
4864 (solist_update_full): Likewise.
4865 (solist_update_incremental): Likewise.
4866 (disable_probes_interface_cleanup): Likewise.
4867 (svr4_handle_solib_event): Likewise.
4868 (svr4_update_solib_event_breakpoint): Likewise.
4869 (svr4_update_solib_event_breakpoints): Likewise.
4870 (svr4_create_solib_event_breakpoints): Likewise.
4871 (enable_break): Free probes table before creating breakpoints.
4872 Use svr4_create_solib_event_breakpoints to create breakpoints.
4873 (svr4_solib_create_inferior_hook): Free the solib list.
4874 (_initialize_svr4_solib): Initialise
4875 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4876
ced63ec0
GB
48772013-06-04 Gary Benson <gbenson@redhat.com>
4878
4879 * target.h (target_ops): New field
4880 "to_augmented_libraries_svr4_read".
4881 (target_augmented_libraries_svr4_read): New macro.
4882 * target.c (update_current_target): Handle
4883 to_augmented_libraries_svr4_read.
4884 * remote.c (remote_state): New field
4885 "augmented_libraries_svr4_read".
4886 (remote_augmented_libraries_svr4_read_feature): New function.
4887 (remote_protocol_features): Add entry for
4888 "augmented-libraries-svr4-read".
4889 (remote_augmented_libraries_svr4_read): New function.
4890 (init_remote_ops): Initialize
4891 remote_ops.to_augmented_libraries_svr4_read.
4892
7f91dbec
GB
48932013-06-04 Gary Benson <gbenson@redhat.com>
4894
4895 * NEWS: Update.
4896
607ece04
GB
48972013-06-04 Gary Benson <gbenson@redhat.com>
4898
4899 * objfiles.h (inhibit_section_map_updates): New function
4900 declaration.
4901 (resume_section_map_updates): Likewise.
4902 (resume_section_map_updates_cleanup): Likewise.
4903 * objfiles.c (objfile_pspace_info): Removed field
4904 "objfiles_changed_p". New fields "new_objfiles_available",
4905 "section_map_dirty" and "inhibit_updates".
4906 (allocate_objfile): Set new_objfiles_available.
4907 (free_objfile): Set section_map_dirty.
4908 (objfile_relocate1): Likewise.
4909 (in_plt_section): Likewise.
4910 (find_pc_section): Update the conditions under which the
4911 section map will be updated.
4912 (inhibit_section_map_updates): New function.
4913 (resume_section_map_updates): Likewise.
4914 (resume_section_map_updates_cleanup): Likewise.
4915
9ee6a5ac
GB
49162013-06-04 Gary Benson <gbenson@redhat.com>
4917
4918 * probe.h (get_probe_argument_count): New declaration.
4919 (evaluate_probe_argument): Likewise.
4920 * probe.c (get_probe_argument_count): New function.
4921 (evaluate_probe_argument): Likewise.
4922 (probe_safe_evaluate_at_pc): Use the above new functions.
4923
845d4708
AM
49242013-06-04 Alan Modra <amodra@gmail.com>
4925
4926 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4927 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4928 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4929 target mem reads on optional insns.
4930 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4931 ppc_insns_match_pattern calls.
4932 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4933 Add match for power7 thread safety insns, and new order of
4934 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4935 invocation in comment, and update rest of comment.
4936 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4937 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4938 (ppc64_standard_linkage2_target): Update insn offsets.
4939 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4940 stubs first. Update calls.
4941
404e278f
YQ
49422013-06-04 Yao Qi <yao@codesourcery.com>
4943
4944 * solib.c (solib_find): Don't need dir separator if path has
4945 drive spec.
4946
f6aea118
JB
49472013-06-03 Joel Brobecker <brobecker@adacore.com>
4948
4949 Revert (indirectly causes a SIGSEGV):
4950 * machoread.c (macho_symfile_read): Assign first cleanup to
4951 'back_to'.
4952
87967e27
YQ
49532013-06-03 Yao Qi <yao@codesourcery.com>
4954
4955 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4956 mi-parse.c. Make them static.
4957 (mi_all_values): Likewise.
4958 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4959 mi_parse_print_values. Make it external.
4960 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4961 Remove the declarations.
4962 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4963 * mi/mi-parse.h (mi_parse_print_values): Declare.
4964 * mi/mi-cmd-stack.c: Include mi-parse.h.
4965 (parse_print_values): Remove
4966 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4967 of parse_print_values.
4968 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4969
3ca73e0c
YQ
49702013-05-31 Pedro Alves <pedro@codesourcery.com>
4971 Yao Qi <yao@codesourcery.com>
4972
4973 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4974 (encode_actions): Move code to ...
4975 (all_tracepoint_actions_and_cleanup): ... here. New.
4976 (trace_dump_command): Likewise.
4977
4e993a19
TT
49782013-05-30 Tom Tromey <tromey@redhat.com>
4979
4980 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4981
e3b76b4f
TT
49822013-05-30 Tom Tromey <tromey@redhat.com>
4983
4984 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4985 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4986 'old_chain' argument. Add 'parser_result' argument.
4987 (gdb_xml_create_parser_and_cleanup): Remove old version.
4988 (gdb_xml_parse_quick): Update.
4989 (xml_process_xincludes): Update.
4990 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4991 declare.
4992
db26349c
TT
49932013-05-30 Tom Tromey <tromey@redhat.com>
4994
4995 * probe.c (collect_probes): Check arguments for NULL before
4996 calling compile_rx_or_error.
4997 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4998 Remove NULL return.
4999
77f9e713
TT
50002013-05-30 Tom Tromey <tromey@redhat.com>
5001
5002 * infrun.c (adjust_pc_after_break): Introduce an outer null
5003 cleanup.
5004
45475de7
TT
50052013-05-30 Tom Tromey <tromey@redhat.com>
5006
5007 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5008
ac5007fd
TT
50092013-05-30 Tom Tromey <tromey@redhat.com>
5010
5011 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5012 for 'old_chain'. Do not check 'head' before processing
5013 cleanups.
5014
cd82eddc
TT
50152013-05-30 Tom Tromey <tromey@redhat.com>
5016
5017 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5018 "cleanup_tuple".
5019
57cee33a
TT
50202013-05-30 Tom Tromey <tromey@redhat.com>
5021
5022 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5023 inner scope. Unconditionally call do_cleanups.
5024
795d915c
TT
50252013-05-30 Tom Tromey <tromey@redhat.com>
5026
5027 * source.c (find_and_open_source): Call do_cleanups.
5028
1fc3cf4a
TT
50292013-05-30 Tom Tromey <tromey@redhat.com>
5030
5031 * linux-thread-db.c (thread_db_load_search): Unconditionally
5032 call do_cleanups.
5033
e35ac9bf
TT
50342013-05-30 Tom Tromey <tromey@redhat.com>
5035
5036 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5037 for 'cleanup'; instead use a later one.
5038
f3300387
TT
50392013-05-30 Tom Tromey <tromey@redhat.com>
5040
5041 * python/py-breakpoint.c (bppy_get_commands): Use
5042 explicit, unconditional return.
5043 * python/py-frame.c (frapy_read_var): Likewise.
5044 * python/python.c (gdbpy_decode_line): Likewise.
5045
c27e16e3
TT
50462013-05-30 Tom Tromey <tromey@redhat.com>
5047
5048 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5049 do_cleanups on all return paths.
5050
5ae85e44
TT
50512013-05-30 Tom Tromey <tromey@redhat.com>
5052
5053 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5054
73b8d9da
TT
50552013-05-30 Tom Tromey <tromey@redhat.com>
5056
5057 * stabsread.c (read_struct_type): Call do_cleanups along
5058 all return paths.
5059
7d266584
MR
50602013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5061
5062 * mips-linux-tdep.c: Adjust formatting throughout.
5063
0f900f54
TT
50642013-05-30 Tom Tromey <tromey@redhat.com>
5065
5066 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5067 along all return paths.
5068
a991ac28
TT
50692013-05-30 Tom Tromey <tromey@redhat.com>
5070
5071 * symfile.c (find_separate_debug_file): Call do_cleanups
5072 along all return paths.
5073
1abaf042
TT
50742013-05-30 Tom Tromey <tromey@redhat.com>
5075
5076 * symtab.c (search_symbols): Introduce a null cleanup for
5077 'retval_chain'.
5078
edefe1da
TT
50792013-05-30 Tom Tromey <tromey@redhat.com>
5080
5081 * python/py-value.c (valpy_binop): Call do_cleanups before
5082 exiting loop.
5083
54f72dcc
TT
50842013-05-30 Tom Tromey <tromey@redhat.com>
5085
5086 * python/py-prettyprint.c (print_children): Remove extra
5087 do_cleanups call.
5088
af1c6971
TT
50892013-05-30 Tom Tromey <tromey@redhat.com>
5090
5091 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5092 all return paths.
5093
b862ce75
TT
50942013-05-30 Tom Tromey <tromey@redhat.com>
5095
5096 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5097 along all return paths.
5098
e12fefc8
TT
50992013-05-30 Tom Tromey <tromey@redhat.com>
5100
5101 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5102 call do_cleanups.
5103
4867f990
TT
51042013-05-30 Tom Tromey <tromey@redhat.com>
5105
5106 * varobj.c (c_value_of_root): Call do_cleanups along all
5107 return paths.
5108
4fd2d6af
TT
51092013-05-30 Tom Tromey <tromey@redhat.com>
5110
5111 * tracepoint.c (trace_dump_command): Unconditionally call
5112 do_cleanups.
5113
752eb8b4
TT
51142013-05-30 Tom Tromey <tromey@redhat.com>
5115
5116 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5117 do_cleanups earlier.
5118
e42d0aa5
TT
51192013-05-30 Tom Tromey <tromey@redhat.com>
5120
5121 * machoread.c (macho_symfile_read): Assign first cleanup to
5122 'back_to'.
5123
4bbc010a
TT
51242013-05-30 Tom Tromey <tromey@redhat.com>
5125
5126 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5127
b9635925
TT
51282013-05-30 Tom Tromey <tromey@redhat.com>
5129
5130 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5131
25f43500
TT
51322013-05-30 Tom Tromey <tromey@redhat.com>
5133
5134 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5135 call discard_cleanups.
5136 (inf_ptrace_attach): Likewise.
5137
d6a2e54a
TT
51382013-05-30 Tom Tromey <tromey@redhat.com>
5139
5140 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5141 return paths.
5142 (mips_initialize): Likewise.
5143 (common_open): Call do_cleanups.
5144
48be7c1b
TT
51452013-05-30 Tom Tromey <tromey@redhat.com>
5146
5147 * utils.c (internal_vproblem): Call do_cleanups.
5148
e61727ab
TT
51492013-05-30 Tom Tromey <tromey@redhat.com>
5150
5151 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5152
b81b921f
TT
51532013-05-30 Tom Tromey <tromey@redhat.com>
5154
5155 * cli/cli-script.c (setup_user_args): Don't return after error.
5156
fe48dfb1
TT
51572013-05-30 Tom Tromey <tromey@redhat.com>
5158
5159 * somread.c (som_symtab_read): Call do_cleanups.
5160
27833de7
TT
51612013-05-30 Tom Tromey <tromey@redhat.com>
5162
5163 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5164
5b3fca71
TT
51652013-05-30 Tom Tromey <tromey@redhat.com>
5166
5167 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5168 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5169 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5170 * source.c (show_substitute_path_command): Call do_cleanups.
5171 (unset_substitute_path_command, set_substitute_path_command):
5172 Likewise.
5173 * symfile.c (load_command): Call do_cleanups.
5174
af83e3f8
TT
51752013-05-30 Tom Tromey <tromey@redhat.com>
5176
5177 * contrib/cleanup_check.py: New file.
5178 * contrib/gcc-with-excheck: Add option parsing.
5179
564eac42
JB
51802013-05-30 Joel Brobecker <brobecker@adacore.com>
5181
5182 * windows-nat.c (windows_delete_thread): Add missing space
5183 in cast expression.
5184
47902076
HAQ
51852013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5186
5187 * inferior.c (top level): Include tilde.h.
5188 (add_inferior_command): Call tilde_expand on the value of 'exec'
5189 argument.
5190
23da373a
YQ
51912013-05-30 Pedro Alves <pedro@codesourcery.com>
5192 Yao Qi <yao@codesourcery.com>
5193
5194 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5195 Caller update.
5196 (encode_actions): Likewise.
5197 * remote.c (remote_download_tracepoint): Caller update.
5198 * tracepoint.h (encode_actions): Update declaration.
5199
a6e6f791
PA
52002013-05-30 Pedro Alves <palves@redhat.com>
5201
5202 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5203 pointer.
5204
36d25514
YQ
52052013-05-30 Yao Qi <yao@codesourcery.com>
5206
5207 * remote.c (remote_check_symbols): Remove unused parameter
5208 'objfile'.
5209 Declaration update.
5210 (remote_start_remote, remote_new_objfile): Caller update.
5211
62a813cc
YQ
52122013-05-30 Yao Qi <yao@codesourcery.com>
5213
5214 * mi/mi-cmds.c (mi_cmds): Define MI command
5215 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5216 DEF_MI_CMD_CLI.
5217
28439a30
PA
52182013-05-29 Pedro Alves <palves@redhat.com>
5219
5220 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5221 (remote_insert_watchpoint, remote_remove_watchpoint)
5222 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5223 (remote_verify_memory, compare_sections_command)
5224 (remote_search_memory): Set the general process/thread on the
5225 remote side.
5226
6ac1c082
PA
52272013-05-29 Pedro Alves <palves@redhat.com>
5228
5229 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5230 (_initialize_aarch64_tdep): Don't call
5231 initialize_tdesc_aarch64_without_fpu.
5232 * features/Makefile (WHICH): Remove reference to
5233 aarch64-without-fpu.
5234 * features/aarch64-without-fpu.c: Delete file.
5235 * regformats/aarch64-without-fpu.dat: Delete file.
5236
a73e3634
YQ
52372013-05-28 Yao Qi <yao@codesourcery.com>
5238
5239 * tracepoint.c (stringify_collection_list): Remove parameter
5240 'string'.
5241 (encode_actions): Caller update. Remove local variables.
5242
c0ea94eb
YQ
52432013-05-24 Yao Qi <yao@codesourcery.com>
5244
5245 * tracepoint.c (TFILE_PID): Remove.
5246 (tfile_open): Don't add thread and inferior.
5247 (tfile_close): Don't set 'inferior_ptid'. Don't call
5248 exit_inferior_silent.
5249 (tfile_thread_alive): Remove.
5250 (init_tfile_ops): Don't set field 'to_thread_alive' of
5251 tfile_ops.
5252
20d7f211
DE
52532013-05-23 Doug Evans <dje@google.com>
5254
5255 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5256
8658d16d
PA
52572013-05-23 Pedro Alves <palves@redhat.com>
5258
5259 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5260 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5261 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5262 Only define if HAVE_SOCKETS is defined.
5263 * configure.ac: Check for sys/socket.h.
5264 * config.in, configure: Regenerate.
5265
21aa081e
PA
52662013-05-23 Pedro Alves <palves@redhat.com>
5267
5268 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5269 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5270 printing uint32_t variables.
5271
c2d6af84
PA
52722013-05-23 Pedro Alves <palves@redhat.com>
5273
5274 * NEWS: Mention GDBserver range stepping support.
5275
c1e36e3e
PA
52762013-05-23 Yao Qi <yao@codesourcery.com>
5277 Pedro Alves <palves@redhat.com>
5278
5279 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5280 field.
5281 * infcmd.c (step_once, until_next_command): Enable range stepping.
5282 * infrun.c (displaced_step_prepare): Disable range stepping.
5283 (resume): Disable range stepping if stepping over a breakpoint or
5284 we have software watchpoints. If range stepping is enabled,
5285 assert the thread is in the stepping range.
5286 (clear_proceed_status_thread): Clear may_range_step.
5287 (handle_inferior_event): Disable range stepping as soon as we know
5288 the thread that hit the event. Re-enable it whenever we're going
5289 to step with a step range.
5290 * remote.c (struct vCont_action_support) <r>: New field.
5291 (use_range_stepping): New global.
5292 (remote_vcont_probe): Handle 'r' action.
5293 (append_resumption): Append an 'r' action if the thread may range
5294 step.
5295 (show_range_stepping): New function.
5296 (set_range_stepping): New function.
5297 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5298 'set range-stepping' and 'show range-stepping' commands.
5299 * NEWS: Mention range stepping, the new vCont;r action, and the
5300 new "set/show range-stepping" commands.
5301
d458bd84
PA
53022013-05-23 Yao Qi <yao@codesourcery.com>
5303 Pedro Alves <palves@redhat.com>
5304
5305 * remote.c (struct vCont_action_support): New struct.
5306 (struct remote_state) <support_vCont_t>: Remove field.
5307 <vCont_actions_support>: New field.
5308 (remote_vcont_probe, remote_stop_ns): Update.
5309
ce4c476a
PA
53102013-05-23 Yao Qi <yao@codesourcery.com>
5311 Pedro Alves <palves@redhat.com>
5312
5313 * gdbthread.h (pc_in_thread_step_range): New declaration.
5314 * thread.c (pc_in_thread_step_range): New function.
5315 * infrun.c (handle_inferior_event): Use it.
5316
ce70887a
JB
53172013-05-23 Joel Brobecker <brobecker@adacore.com>
5318
5319 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5320 of sprintf.
5321
55b87a52
KS
53222013-05-22 Keith Seitz <keiths@redhat.com>
5323
5324 * ada-lang.c (is_known_support_routine): Add explicit free of
5325 'func_name' from find_frame_funname.
5326 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5327 for func_name from find_frame_funname.
5328 * python/py-frame.c (frapy_name): Add explicit free of
5329 'name' from find_frame_funname.
5330 * stack.c (find_frame_funname): Add comment explaining that
5331 funcp must be freed by the caller.
5332 Return copy of symbol names instead of pointers.
5333 (print_frame): Add a cleanup for 'funname' from
5334 find_frame_funname.
5335 * stack.h (find_frame_funname): Remove "const" from
5336 'funname' parameter.
5337
5f2e6b00
TT
53382013-05-22 Tom Tromey <tromey@redhat.com>
5339
5340 PR c++/15401:
5341 * c-valprint.c (c_value_print): Use value_addr for
5342 references. Convert back to reference type with value_ref.
5343
d85c4847
EZ
53442013-05-22 Eli Zaretskii <eliz@gnu.org>
5345
5346 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5347 unloaded DLL, it will be done by handle_solib_event. See
5348 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5349 details.
5350
54eb231c
PM
53512013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5352
5353 * ui-out.c: Create typedef ui_out_level_p and define vector
5354 operations for that type.
5355 (struct ui_out): Use a vector instead of an array.
5356 (current_level): Return level from a vector.
5357 (push_level): Create a level in a vector.
5358 (pop_level): Delete a level in a vector.
5359 (ui_out_new): Create initial level zero level, and store in a
5360 vector.
5361 (ui_out_destroy): Add vector cleanup.
5362
ac90359c
PA
53632013-05-22 Pedro Alves <palves@redhat.com>
5364
5365 * python/python-internal.h (gdb_Py_DECREF): Tag with
5366 "ARI: editCase function".
5367
6dcc1893
PP
53682013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5369
5370 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5371
c8c735b9
PA
53722013-05-21 Pedro Alves <palves@redhat.com>
5373
5374 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5375 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5376 * python/py-utils.c (py_decref): Don't check for NULL before
5377 calling Py_DECREF.
5378
1915daeb
PA
53792013-05-21 Pedro Alves <palves@redhat.com>
5380
5381 * python/py-utils.c (py_decref): Remove extra braces.
5382 (gdb_pymodule_addobject): Remove extra braces.
5383 * python-internal.h (gdb_Py_DECREF): New static inline function.
5384 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5385
bd9673a4
PW
53862013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5387
5388 * breakpoints.c (detach_breakpoints): Do not
5389 detach breakpoints locations with loc_type bp_loc_other.
5390
ff6009d0
JK
53912013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5392
5393 Workaround Python 2.6.
5394 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5395 a block.
5396
3641da11
JK
53972013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5398
5399 Code cleanup: constification.
5400 * solib.c (solib_ops): Make return type and ops variable type const.
5401 (set_solib_ops): Make the new_ops parameter and ops variable const.
5402 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5403 (solib_add, solib_keep_data_in_core, clear_solib)
5404 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5405 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5406 const.
5407 * solib.h (set_solib_ops): Make the new_ops parameter const.
5408
776af39e
JB
54092013-05-21 Joel Brobecker <brobecker@adacore.com>
5410
5411 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5412 variable.
5413 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5414 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5415 (SYSTEM_GDBINIT_FILES): New variables.
5416 (all): Add stamp-system-gdbinit.
5417 (stamp-system-gdbinit): New rule.
5418 (clean-system-gdbinit, install-system-gdbinit)
5419 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5420 (install-only): Add dependency on install-system-gdbinit.
5421 (uninstall): Add dependency on uninstall-system-gdbinit.
5422 (clean): Add dependency on clean-system-gdbinit.
5423 * system-gdbinit/elinos.py: New file.
5424 * system-gdbinit/wrs-linux.py: New file.
5425
1509e573
JB
54262013-05-21 Joel Brobecker <brobecker@adacore.com>
5427
5428 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5429
c5867ab6
HZ
54302013-05-21 Hui Zhu <hui@codesourcery.com>
5431
5432 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5433 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5434 * mi/mi-cmd-break.c (ctype.h): New include.
5435 (gdb_obstack.h): New include.
5436 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5437 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5438 (mi_cmd_dprintf_insert): New.
5439 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5440 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5441
7d38e38f
TT
54422013-05-20 Tom Tromey <tromey@redhat.com>
5443
5444 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5445
97b77b39
TT
54462013-05-20 Tom Tromey <tromey@redhat.com>
5447
5448 * python/py-value.c (valpy_get_dynamic_type): Simplify
5449 dynamic_type assignment. Use Py_XINCREF.
5450
53e66479
TT
54512013-05-20 Tom Tromey <tromey@redhat.com>
5452
5453 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5454
dcf87832
TT
54552013-05-20 Tom Tromey <tromey@redhat.com>
5456
5457 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5458 (gdbpy_selected_frame): Move object-construction code
5459 out of TRY_CATCH.
5460
aa36459a
TT
54612013-05-20 Tom Tromey <tromey@redhat.com>
5462
5463 * python/py-arch.c (gdbpy_initialize_arch): Use
5464 gdb_pymodule_addobject.
5465 * python/py-block.c (gdbpy_initialize_blocks): Use
5466 gdb_pymodule_addobject.
5467 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5468 gdb_pymodule_addobject.
5469 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5470 gdb_pymodule_addobject.
5471 * python/py-event.c (gdbpy_initialize_event_generic): Use
5472 gdb_pymodule_addobject.
5473 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5474 gdb_pymodule_addobject.
5475 * python/py-evts.c (add_new_registry): Use
5476 gdb_pymodule_addobject.
5477 (gdbpy_initialize_py_events): Likewise.
5478 * python/py-finishbreakpoint.c
5479 (gdbpy_initialize_finishbreakpoints): Use
5480 gdb_pymodule_addobject.
5481 * python/py-frame.c (gdbpy_initialize_frames): Use
5482 gdb_pymodule_addobject.
5483 * python/py-function.c (gdbpy_initialize_functions): Use
5484 gdb_pymodule_addobject.
5485 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5486 gdb_pymodule_addobject.
5487 * python/py-infthread.c (gdbpy_initialize_thread): Use
5488 gdb_pymodule_addobject.
5489 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5490 gdb_pymodule_addobject.
5491 * python/py-param.c (gdbpy_initialize_parameters): Use
5492 gdb_pymodule_addobject.
5493 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5494 gdb_pymodule_addobject.
5495 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5496 gdb_pymodule_addobject.
5497 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5498 gdb_pymodule_addobject.
5499 * python/py-type.c (gdbpy_initialize_types): Use
5500 gdb_pymodule_addobject.
5501 * python/py-utils.c (gdb_pymodule_addobject): New function.
5502 * python/py-value.c (gdbpy_initialize_values): Use
5503 gdb_pymodule_addobject.
5504 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5505 * python/python.c (_initialize_python): Use
5506 gdb_pymodule_addobject.
5507
3d4a3c3e
TT
55082013-05-20 Tom Tromey <tromey@redhat.com>
5509
5510 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5511 * python/py-param.c (get_set_value, get_show_value): Use
5512 explicit decrefs.
5513 * python/python.c (start_type_printers, apply_type_printers):
5514 Use explicit decrefs.
5515
72ff8829
TT
55162013-05-20 Tom Tromey <tromey@redhat.com>
5517
5518 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5519 incref the module.
5520
02146ba5
TT
55212013-05-20 Tom Tromey <tromey@redhat.com>
5522
5523 * python/python.c (gdbpy_run_events): Decref the result
5524 of PyObject_CallObject.
5525
33ee792f
TT
55262013-05-20 Tom Tromey <tromey@redhat.com>
5527
5528 * python/py-symtab.c (set_sal): Use
5529 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5530 (symtab_and_line_to_sal_object): Update.
5531
fcb49fc8
TT
55322013-05-20 Tom Tromey <tromey@redhat.com>
5533
5534 * python/py-param.c (compute_enum_values): Decref 'item'.
5535
0646da15
TT
55362013-05-20 Tom Tromey <tromey@redhat.com>
5537
5538 * mi/mi-main.c: Include python-internal.h.
5539 (mi_cmd_list_features): Check gdb_python_initialized.
5540 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5541 (python_inferior_exit, python_new_objfile, add_thread_object)
5542 (delete_thread_object, py_free_inferior): Check
5543 gdb_python_initialized.
5544 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5545 gdb_python_initialized.
5546 * python/py-type.c (save_objfile_types): Check
5547 gdb_python_initialized.
5548 * python/python-internal.h (gdb_python_initialized): Declare.
5549 * python/python.c (ensure_python_env): Throw exception if
5550 Python not initialized.
5551 (before_prompt_hook, source_python_script_for_objfile)
5552 (start_type_printers, apply_type_printers,
5553 free_type_printers): Check gdb_python_initialized.
5554 * varobj.c (varobj_get_display_hint)
5555 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5556 (install_new_value_visualizer, varobj_set_visualizer)
5557 (value_get_print_value): Check gdb_python_initialized.
5558
999633ed
TT
55592013-05-20 Tom Tromey <tromey@redhat.com>
5560
5561 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5562 Check errors.
5563 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5564 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5565 Check errors.
5566 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5567 Check errors.
5568 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5569 Check errors.
5570 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5571 Check errors.
5572 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5573 init function to return 'int'.
5574 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5575 Return 'int'. Check errors.
5576 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5577 Check errors.
5578 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5579 Return 'int'. Check errors.
5580 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5581 Check errors.
5582 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5583 Check errors.
5584 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5585 Check errors.
5586 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5587 Check errors.
5588 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5589 Check errors.
5590 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5591 Check errors.
5592 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5593 Check errors.
5594 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5595 Check errors.
5596 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5597 Check errors.
5598 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5599 Check errors.
5600 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5601 Check errors.
5602 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5603 Check errors.
5604 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5605 Check errors.
5606 * python/python-internal.h (gdbpy_initialize_auto_load,
5607 gdbpy_initialize_values, gdbpy_initialize_frames,
5608 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5609 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5610 gdbpy_initialize_blocks, gdbpy_initialize_types,
5611 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5612 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5613 gdbpy_initialize_finishbreakpoints,
5614 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5615 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5616 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5617 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5618 gdbpy_initialize_signal_event,
5619 gdbpy_initialize_breakpoint_event,
5620 gdbpy_initialize_continue_event,
5621 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5622 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5623 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5624 * python/python.c (gdb_python_initialized): New global.
5625 (gdbpy_initialize_events): Return 'int'. Check errors.
5626 (_initialize_python): Check errors. Set
5627 gdb_python_initialized.
5628
18868860
TT
56292013-05-20 Tom Tromey <tromey@redhat.com>
5630
5631 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5632 Decref the reslut of PyObject_CallMethod.
5633
9f4ff0c2
TT
56342013-05-20 Tom Tromey <tromey@redhat.com>
5635
5636 * python/py-event.c (gdbpy_initialize_event_generic): Return
5637 early if PyType_Ready fails.
5638
0d3a2e8a
TT
56392013-05-20 Tom Tromey <tromey@redhat.com>
5640
5641 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5642 as 'default' in the switch.
5643
b86af38a
TT
56442013-05-20 Tom Tromey <tromey@redhat.com>
5645
5646 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5647 get_addr_from_python calls out of TRY_CATCH.
5648 (infpy_write_memory, infpy_search_memory): Likewise.
5649 * python/py-utils.c (get_addr_from_python): Return negative
5650 value on error. Use TRY_CATCH.
5651 * python/python-internal.h (get_addr_from_python): Use
5652 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5653
c127ec58
TT
56542013-05-20 Tom Tromey <tromey@redhat.com>
5655
5656 * python/py-event.c (evpy_emit_event): Decref the
5657 result of PyObject_CallFunctionObjArgs.
5658
ba327838
TT
56592013-05-20 Tom Tromey <tromey@redhat.com>
5660
5661 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5662 Correctly decref.
5663
d8191432
TT
56642013-05-20 Tom Tromey <tromey@redhat.com>
5665
5666 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5667
5d153bd1
TT
56682013-05-20 Tom Tromey <tromey@redhat.com>
5669
5670 * python/py-event.h (gdbpy_initialize_event_generic): Use
5671 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5672 * python/py-evts.c (add_new_registry): Use
5673 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5674 * python/python-internal.h
5675 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5676
56cc411c
TT
56772013-05-20 Tom Tromey <tromey@redhat.com>
5678
5679 * python/py-arch.c (archpy_disassemble): Update.
5680 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5681 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5682 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5683 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5684 macro.
5685 (GDB_PY_HANDLE_EXCEPTION): Update.
5686 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5687
8919e174
TT
56882013-05-20 Tom Tromey <tromey@redhat.com>
5689
5690 * python/python-internal.h (events_object_type): Remove.
5691
9b08f225
TT
56922013-05-20 Tom Tromey <tromey@redhat.com>
5693
f5aee5ee
AM
5694 * python/py-event.h (evpy_emit_event): Use
5695 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5696 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5697 New macro.
9b08f225 5698
f04010ff
TT
56992013-05-20 Tom Tromey <tromey@redhat.com>
5700
5701 * py-evtregistry.c (create_event_object): Decref
5702 eventregistry_object if PyList_New fails.
5703
3919fd96
TT
57042013-05-20 Tom Tromey <tromey@redhat.com>
5705
5706 * py-cmd.c (gdbpy_string_to_argv): Check result of
5707 PyList_New.
5708
0430e8cb
TT
57092013-05-20 Tom Tromey <tromey@redhat.com>
5710
5711 * python/python.c (before_prompt_hook): Add cleanup to
5712 decref 'hook'.
5713
764123e4
TT
57142013-05-20 Tom Tromey <tromey@redhat.com>
5715
5716 * python/py-function.c (fnpy_init): Decref result of
5717 PyObject_GetAttrString.
5718
634c58be
TT
57192013-05-20 Tom Tromey <tromey@redhat.com>
5720
5721 * python/py-threadevent.c (get_event_thread): Use
5722 CPYCHECKER_RETURNS_BORROWED_REF.
5723 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5724 New define.
5725 (pspace_to_pspace_object, objfile_to_objfile_object)
5726 (find_thread_object): Use it.
5727
62eec1a5
TT
57282013-05-20 Tom Tromey <tromey@redhat.com>
5729
5730 * python/py-arch.c (arch_object_type): Use
5731 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5732 * python/py-block.c (block_syms_iterator_object_type):
5733 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5734 * python/py-bpevent.c (breakpoint_event_object_type):
5735 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5736 * python/py-cmd.c (cmdpy_object_type): Use
5737 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5738 * python/py-continueevent.c (continue_event_object_type):
5739 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5740 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5741 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5742 * python/py-events.h (thread_event_object_type):
5743 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5744 * python/py-evtregistry.c (eventregistry_object_type): Use
5745 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5746 * python/py-exitedevent.c (exited_event_object_type):
5747 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5748 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5749 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5750 * python/py-function.c (fnpy_object_type): Use
5751 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5752 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5753 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5754 * python/py-infthread.c (thread_object_type): Use
5755 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5756 * python/py-lazy-string.c (lazy_string_object_type):
5757 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5758 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5759 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5760 * python/py-objfile.c (objfile_object_type): Use
5761 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5762 * python/py-param.c (parmpy_object_type):
5763 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5764 * python/py-progspace.c (pspace_object_type):
5765 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5766 * python/py-signalevent.c (signal_event_object_type):
5767 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5768 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5769 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5770 * python/py-type.c (type_object_type, field_object_type)
5771 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5772 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5773 define.
5774 (value_object_type, block_object_type, symbol_object_type)
5775 (event_object_type, stop_event_object_type, breakpoint_object_type)
5776 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5777
81ea8796
AT
57782013-05-20 Andreas Tobler <andreas@fgznet.ch>
5779
5780 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5781 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5782
a2ce51a0
DE
57832013-05-20 Doug Evans <dje@google.com>
5784
5785 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5786 For Fission.
5787 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5788 reading_dwo_directly.
5789 (struct signatured_type): New member dwo_unit.
5790 (struct die_reader_specs): New member comp_dir.
5791 (create_signatured_type_table_from_index): Use malloc for
5792 all_type_units instead of objfile's obstack.
5793 (create_all_type_units): Ditto.
5794 (fill_in_sig_entry_from_dwo_entry): New function.
5795 (add_type_unit): New function.
5796 (lookup_dwo_signatured_type): New function.
5797 (lookup_dwp_signatured_type): New function.
5798 (lookup_signatured_type): New arg cu. All callers updated.
5799 (init_cu_die_reader): Initialize comp_dir.
5800 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5801 Change assert of matching type signatures to call error on mismatch.
5802 (lookup_dwo_unit): Add assert.
5803 (init_tu_and_read_dwo_dies): New function.
5804 (init_cutu_and_read_dies): Call it.
5805 (build_type_unit_groups): Handle case of no type unit groups created.
5806 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5807 (lookup_dwo_cutu): Tweak complaint.
5808 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5809 (dwarf2_per_objfile_free): Free all_type_units.
5810
a25cd31f
JB
58112013-05-20 Joel Brobecker <brobecker@adacore.com>
5812
5813 * windows-nat.c (handle_unload_dll): Add missing empty line.
5814
4d804846
JB
58152013-05-20 Joel Brobecker <brobecker@adacore.com>
5816
5817 * dwarf2read.c (prototyped_function_p): New function.
5818 (read_subroutine_type): Use it.
5819
1c432e72
JB
58202013-05-20 Joel Brobecker <brobecker@adacore.com>
5821
5822 * rs6000-aix-tdep.c: De-indent some example code provided
5823 as a comment.
5824
4feebbdd
EBM
58252013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5826
5827 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5828 region is ok for a hardware watchpoint using the new ptrace interface
5829 on Power servers.
5830
7d0c9981
DE
58312013-05-17 Doug Evans <dje@google.com>
5832
5833 * NEWS: Mention new maintenance commands check-symtabs, and
5834 expand-symtabs, and renamed check-psymtabs.
5835 * psymtab.c (maintenance_check_psymtabs): Renamed from
5836 maintenance_check_symtabs. Only process already-expanded symbol
5837 tables.
5838 (_initialize_psymtab): Update.
5839 * symmisc.c (maintenance_check_symtabs): New function.
5840 (maintenance_expand_name_matcher): New function
5841 (maintenance_expand_file_matcher): New function
5842 (maintenance_expand_symtabs): New function.
5843 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5844 commands.
5845
6cbc7c3d
TT
58462013-05-17 Tom Tromey <tromey@redhat.com>
5847
5848 * python/py-inferior.c (infpy_read_memory): Don't call
5849 PyErr_SetString if PyObject_New fails.
5850 * python/py-frame.c (frame_info_to_frame_object): Don't call
5851 PyErr_SetString if PyObject_New fails.
5852
a48b32c0
L
58532013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5854
5855 * acinclude.m4: Add check for dlopen in libdl.
5856 * configure.ac: Ditto.
5857 * configure: Regenerate.
5858
3de661e6
PM
58592013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5860
5861 * frame.c (frame_stash): Convert to htab.
5862 (frame_addr_hash): New function.
5863 (frame_addr_hash_eq): New function.
5864 (frame_stash_create): Convert function to create
5865 a hash table.
5866 (frame_stash_add): Convert function to add an entry to a hash
5867 table.
5868 (frame_stash_find): Convert function to search the hash table.
5869 (frame_stash_invalidate): Convert function to empty the hash
5870 table.
5871 (get_frame_id): Only add to stash if a frame_id is created.
5872 (_initialize_frame): Call frame_stash_create.
5873
bb4168a9 58742013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5875
5876 * configure.ac: Ensure MIG is available when building for GNU Hurd
5877 hosts.
5878 * configure: Regenerate.
5879
d1be3247
JB
58802013-05-16 Joel Brobecker <brobecker@adacore.com>
5881
5882 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5883
b8fea896
JB
58842013-05-16 Joel Brobecker <brobecker@adacore.com>
5885
5886 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5887 all cleanups are done before returning from this function.
5888
af880d85
JB
58892013-05-15 Joel Brobecker <brobecker@adacore.com>
5890
5891 * utils.h: #include "exceptions.h".
5892 (enum errors): Remove partial declaration.
5893
356a5233
JB
58942013-05-15 Joel Brobecker <brobecker@adacore.com>
5895
5896 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5897 * gdbarch.h, gdbarch.c: Regenerate.
5898 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5899 handling.
5900
5901 * rs6000-aix-tdep.h: New file.
5902 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5903 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5904 "xml-utils.h".
5905 (struct field_info, struct ld_info_desc): New types.
5906 (ld_info32_desc, ld_info64_desc): New static constants.
5907 (struct ld_info): New type.
5908 (rs6000_aix_extract_ld_info): New function.
5909 (rs6000_aix_shared_library_to_xml): Likewise.
5910 (rs6000_aix_ld_info_to_xml): Likewise.
5911 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5912 (rs6000_aix_init_osabi): Add call to
5913 set_gdbarch_core_xfer_shared_libraries_aix.
5914 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5915 Remove "xml-utils.h" include.
5916 (LdInfo): Delete typedef.
5917 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5918 Delete macros.
5919 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5920 Adjust code accordingly.
5921 (rs6000_core_ldinfo): Delete, folded into
5922 rs6000_aix_core_xfer_shared_libraries_aix.
5923 (rs6000_xfer_shared_library): Delete.
5924 (rs6000_xfer_shared_libraries): Reimplement.
5925
742ce053
MM
59262013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5927
5928 * record.c (record_goto_cmdlist): New.
5929 (cmd_record_goto): Split into this ...
5930 (cmd_record_goto_begin): ... this
5931 (cmd_record_goto_end): ... and this.
5932 (_initialize_record): Change "record goto" to prefix command.
5933 Add commands for "record goto begin" and "record goto end".
5934 Add an alias for "record goto start" to "record goto begin".
5935
e93ba630
JK
59362013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5937
5938 * linespec.c (convert_linespec_to_sals): New comment for
5939 SOURCE_FILENAME assignment.
5940
5821aace
JK
59412013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5942
5943 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5944 internal_warning.
5945
a1b8c4cc
TT
59462013-05-14 Tom Tromey <tromey@redhat.com>
5947
5948 * eval.c (parse_and_eval_long): Make 'exp' const.
5949 * value.h (parse_and_eval_long): Update.
5950
23b3a2c3
TT
59512013-05-14 Tom Tromey <tromey@redhat.com>
5952
5953 * ui-file.c (gdb_fopen): Make arguments const.
5954 * ui-file.h (gdb_fopen): Make arguments const.
5955
ca623f82
TT
59562013-05-14 Tom Tromey <tromey@redhat.com>
5957
5958 * remote.c (remote_set_trace_notes): Make arguments const.
5959 * target.c (update_current_target): Update cast.
5960 * target.h (to_set_trace_notes): Make arguments const.
5961
503ebb2c
TT
59622013-05-14 Tom Tromey <tromey@redhat.com>
5963
5964 * go32-nat.c (go32_terminal_info): Make 'args' const.
5965 * inferior.h (child_terminal_info): Update.
5966 * inflow.c (child_terminal_info): Make 'args' const.
5967 * target.c (default_terminal_info): Make 'args' const.
5968 (debug_to_terminal_save_ours): Likewise.
5969 * target.h (struct target_ops) <to_terminal_info>: Make argument
5970 const.
5971
85e1311a
TT
59722013-05-13 Tom Tromey <tromey@redhat.com>
5973
5974 * gcore.c (create_gcore_bfd): Make 'filename' const.
5975 * gcore.h (create_gcore_bfd): Make 'filename' const.
5976 * record-full.c (record_full_save): Make 'recfilename' const.
5977 * target.c (target_save_record): Make 'filename' const.
5978 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5979 const.
5980 (target_save_record): Likewise.
5981
d62bfeaf
TT
59822013-05-13 Tom Tromey <tromey@redhat.com>
5983
f5aee5ee 5984 PR gdb/15338:
d62bfeaf
TT
5985 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5986 ranges section has been read.
5987
ac1ca910
TT
59882013-05-13 Tom Tromey <tromey@redhat.com>
5989
5990 PR exp/15364:
5991 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5992 STRUCTOP_PTR>: Return a not_lval value for
5993 EVAL_AVOID_SIDE_EFFECTS.
5994 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5995 for EVAL_AVOID_SIDE_EFFECTS.
5996
36d1c68c
JB
59972013-05-13 Joel Brobecker <brobecker@adacore.com>
5998
5999 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6000 floating point registers to register type before storing
6001 value.
6002 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6003 Likewise.
6004
21ff4686
TT
60052013-05-10 Joel Brobecker <brobecker@adacore.com>
6006 Tom Tromey <tromey@redhat.com>
6007
6008 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6009 New functions.
6010 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6011 Declare.
6012 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6013 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6014 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6015 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6016
d3685d60
TT
60172013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6018 Tom Tromey <tromey@redhat.com>
6019
6020 PR build/15414:
6021 * configure: Rebuild.
6022 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6023 with -Wno-format.
6024
eb9fe518
PA
60252013-05-10 Pedro Alves <palves@redhat.com>
6026
6027 * remote.c (_initialize_remote): Fix spelling of
6028 qXfer:traceframe-info:read packet in packet config command.
6029
9779ab84
PA
60302013-05-10 David Taylor <dtaylor@emc.com>
6031
6032 PR remote/15455
6033
6034 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6035 "QTro" at start of packet.
6036
060cfbef
JB
60372013-05-10 Joel Brobecker <brobecker@adacore.com>
6038
6039 * solib-aix.c (solib_aix_relocate_section_addresses):
6040 For the .bss section action, apply the same offset as
6041 the .data section.
6042
ab1c4e88
JB
60432013-05-10 Joel Brobecker <brobecker@adacore.com>
6044
6045 * solib-aix.c (solib_aix_relocate_section_addresses):
6046 Remove FIXME comment.
6047
c1357578
JB
60482013-05-10 Joel Brobecker <brobecker@adacore.com>
6049
6050 PR tdep/15420:
6051 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6052 New functions, directly copied from sparc-sol-thread.c.
6053 * sparc-sol-thread.c: Delete.
6054 * configure.ac: Remove code handling sparc-solaris-thread.c.
6055 * configure: Regenerate.
6056
1e611234
PM
60572013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6058
6059 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6060 filter logic.
6061 (backtrace_command): Add "no-filters" option parsing.
6062 (_initialize_stack): Alter help to reflect "no-filters" option.
6063 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6064 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6065 (py-frame.o): Add target
6066 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6067 filter files.
6068 * python/python.h: Add new frame filter constants, and flag enum.
6069 (apply_frame_filter): Add definition.
6070 * python/python.c (apply_frame_filter): New non-Python
6071 enabled function.
6072 * python/py-utils.c (py_xdecref): New function.
6073 (make_cleanup_py_xdecref): Ditto.
6074 * python/py-objfile.c: Declare frame_filters dictionary.
6075 (objfpy_dealloc): Add frame_filters dealloc.
6076 (objfpy_new): Initialize frame_filters attribute.
6077 (objfile_to_objfile_object): Ditto.
6078 (objfpy_get_frame_filters): New function.
6079 (objfpy_set_frame_filters): New function.
6080 * python/py-progspace.c: Declare frame_filters dictionary.
6081 (pspy_dealloc): Add frame_filters dealloc.
6082 (pspy_new): Initialize frame_filters attribute.
6083 (pspacee_to_pspace_object): Ditto.
6084 (pspy_get_frame_filters): New function.
6085 (pspy_set_frame_filters): New function.
6086 * python/py-framefilter.c: New file.
6087 * python/lib/gdb/command/frame_filters.py: New file.
6088 * python/lib/gdb/frames.py: New file.
6089 * python/lib/gdb/__init__.py: Initialize global frame_filters
6090 dictionary
6091 * python/lib/gdb/FrameDecorator.py: New file.
6092 * python/lib/gdb/FrameIterator.py: New file.
6093 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6094 * mi/mi-cmds.h: Declare.
6095 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6096 --no-frame-filter logic, and Python frame filter logic.
6097 (stack_enable_frame_filters): New function.
6098 (parse_no_frame_option): Ditto.
6099 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6100 filter logic.
6101 (mi_cmd_stack_list_locals): Ditto.
6102 (mi_cmd_stack_list_args): Ditto.
6103 (mi_cmd_stack_list_variables): Ditto.
6104 * NEWS: Add frame filter note.
6105
2cb9c859
DE
61062013-05-09 Doug Evans <dje@google.com>
6107
6bf667bb
DE
6108 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6109 All callers updated.
6110 (syms_from_objfile): Ditto. Make static.
6111 (symbol_file_add_with_addrs): Renamed from
6112 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6113 num_offsets. All callers updated.
6114 * symfile.h (syms_from_objfile): Delete.
6115
2cb9c859
DE
6116 * symfile.c (decrement_reading_symtab): Add assert.
6117 (increment_reading_symtab): Ditto.
6118
40aea477
JB
61192013-05-09 Joel Brobecker <brobecker@adacore.com>
6120
6121 * source.c (forward_search_command): Replace call to getc
6122 by call to fgetc.
6123 (reverse_search_command): Likewise.
6124
680d1742
DE
61252013-05-08 Doug Evans <dje@google.com>
6126
6127 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6128 matching test.
6129
17e760ae
JB
61302013-05-08 Joel Brobecker <brobecker@adacore.com>
6131
6132 * sol-thread.c (info_cb): Factorize the code a little.
6133
c0f5f490
JB
61342013-05-08 Joel Brobecker <brobecker@adacore.com>
6135
6136 * sol-thread.c (info_cb): Rework the output of the "maintenance
6137 info sol-threads" command a bit.
6138
5d74e061
JB
61392013-05-08 Joel Brobecker <brobecker@adacore.com>
6140
6141 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6142 Replace ti.ti_startfunc by ti.ti_pc.
6143
814a3ff7
JB
61442013-05-08 Joel Brobecker <brobecker@adacore.com>
6145
6146 * solib-aix.c (solib_aix_free_library_list): New function
6147 for the case where HAVE_LIBEXPAT is not defined.
6148
58ce7251
SDJ
61492013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6150
6151 PR breakpoints/15413:
6152 * breakpoint.c (condition_completer): Simplify the code to
6153 disconsider multiple locations of breakpoints when completing the
6154 "condition" command.
6155
be8b1ea6
PM
61562013-05-07 Pierre Muller <muller@sourceware.org>
6157
6158 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6159 instead of <sys/wait.h>.
6160
1e52bda6
PM
61612013-05-07 Pierre Muller <muller@sourceware.org>
6162
6163 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6164 trailing new line from warning message.
6165
27fd0c6b
PM
61662013-05-07 Pierre Muller <muller@sourceware.org>
6167
6168 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6169 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6170
e228ac87
JB
61712013-05-07 Joel Brobecker <brobecker@adacore.com>
6172
6173 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6174 error message (ARI fix).
6175
61762013-05-07 Joel Brobecker <brobecker@adacore.com>
6177
6178 * features/library-list-aix.dtd: Replace library-list by
6179 library-list-aix.
6180 * rs6000-nat.c: Replace library-list by library-list-aix
6181 throughout.
6182 * solib-aix.c: Likewise.
6183
61842013-05-07 Joel Brobecker <brobecker@adacore.com>
6185
6186 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6187 Renames TARGET_OBJECT_AIX_LIBRARIES.
6188 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6189 TARGET_OBJECT_LIBRARIES_AIX throughout.
6190 * solib-aix.c: Likwise.
6191
26a4dda9
YQ
61922013-05-07 Yao Qi <yao@codesourcery.com>
6193
6194 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6195 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6196
3582629f
YQ
61972013-05-07 Yao Qi <yao@codesourcery.com>
6198
6199 * solib-dsbt.c (enable_break): Declare.
6200 (dsbt_current_sos): Remove call to enable_break2.
6201 (enable_break2): Rename to enable_break. Set solib breakpoint
6202 on '_dl_debug_state'.
6203 (enable_break): Remove.
6204
aacbb8a5
LM
62052013-05-07 Luis Machado <lgustavo@codesourcery.com>
6206
6207 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6208 debug state prior to replicating existing hardware watchpoints or
6209 breakpoints.
6210
0c013353
JK
62112013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 * gcore.c (gcore_create_callback): Ignore sections with
6214 separate_debug_objfile_backlink != NULL.
6215
a1217d97
SL
62162013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6217 Andrew Jenner <andrew@codesourcery.com>
6218 Chung-Lin Tang <cltang@codesourcery.com>
6219 Julian Brown <julian@codesourcery.com>
6220
6221 Based on the nios2-elf port from Altera Corporation.
6222
6223 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6224 nios2-linux-tdep.o.
6225 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6226 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6227 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6228 * nios2-tdep.h: New.
6229 * nios2-tdep.c: New.
6230 * nios2-linux-tdep.c: New.
6231 * features/Makefile (WHICH): Add nios2-linux.
6232 (nios2-linux-expedite): Set.
6233 * features/nios2-cpu.xml: New.
6234 * features/nios2.xml: New.
6235 * features/nios2-linux.xml: New.
6236 * features/nios2.c: New (autogenerated).
6237 * features/nios2-linux.c: New (autogenerated).
6238 * regformats/nios2-linux.dat: New (autogenerated).
6239 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6240 and commands.
6241
0892cb63
DE
62422013-05-06 Doug Evans <dje@google.com>
6243
3b7bacac
DE
6244 * symfile.c: Whitespace cleanup.
6245
0892cb63
DE
6246 * solist.h (struct target_so_ops): New member clear_so.
6247 * solib-svr4.c (svr4_clear_so): New function.
6248 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6249 * solib.c (clear_so): Renamed from free_so_symbols.
6250 All callers updated. Call target clear_so if it exists.
6251
40501e00
TT
62522013-05-06 Tom Tromey <tromey@redhat.com>
6253
6254 * ada-lang.c (ada_value_primitive_packed_val): Don't
6255 call value_incref.
6256 * value.c (set_value_parent): Incref the new parent and decref
6257 the old parent.
6258 (value_copy, value_primitive_field): Use set_value_parent.
6259
b6807d98
TT
62602013-05-06 Tom Tromey <tromey@redhat.com>
6261
6262 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6263 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6264 if needed.
6265 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6266 * dwarf2read.c (write_constant_as_bytes)
6267 (dwarf2_fetch_constant_bytes): New functions.
6268
3aef2284
TT
62692013-05-06 Tom Tromey <tromey@redhat.com>
6270
6271 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6272 parameters.
6273 (dwarf2_const_value_attr): Update.
6274
66f65e2b
TT
62752013-05-06 Tom Tromey <tromey@redhat.com>
6276
6277 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6278 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6279 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6280 Remove declaration.
6281
7919a973
TT
62822013-05-06 Tom Tromey <tromey@redhat.com>
6283
6284 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6285 objfile's obstack.
6286
a7bfba49
DE
62872013-05-06 Doug Evans <dje@google.com>
6288
3189cb12
DE
6289 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6290 * stabsread.h (process_one_symbol): Update declaration.
6291 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6292 * elfread.c (elf_symfile_relocate_probe): Ditto.
6293 * psymtab.c (relocate_psymtabs): Ditto.
6294 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6295 (objfile_relocate): Ditto.
6296 * objfiles.h (objfile_relocate): Update declaration.
6297 * symfile.c (relative_addr_info_to_section_offsets): Constify
6298 addrs parameter.
6299 (default_symfile_offsets): Ditto.
6300 (syms_from_objfile_1): Constify offsets parameter.
6301 (syms_from_objfile): Ditto.
6302 (symbol_file_add_with_addrs_or_offsets): Ditto.
6303 (symfile_map_offsets_to_segments): Constify data parameter.
6304 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6305 delta parameters of member relocate.
6306 (struct sym_probe_fns): Constify new_offsets,
6307 delta parameters of member sym_relocate_probe.
6308 (struct sym_fns): Constify section_addr_info parameter of member
6309 sym_offsets.
6310 (relative_addr_info_to_section_offsets): Update declaration.
6311 (default_symfile_offsets): Ditto.
6312 (syms_from_objfile): Ditto.
6313 (symfile_map_offsets_to_segments): Ditto.
6314
a7bfba49
DE
6315 * symfile.c (syms_from_objfile_1): Use correct section count when
6316 objfile->sf == NULL.
6317
5f8e0b8f
MF
63182013-05-06 Mike Frysinger <vapier@gentoo.org>
6319
6320 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6321
ea52d893
DE
63222013-05-06 Doug Evans <dje@google.com>
6323
6324 * psympriv.h (struct partial_symtab): Augment comment for member
6325 section_offsets.
6326
4d1eb6b4
JB
63272013-05-06 Joel Brobecker <brobecker@adacore.com>
6328
6329 Reimplement shared library support on ppc-aix...
6330 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6331 * features/library-list-aix.dtd: New file.
6332 * solib-aix.h, solib-aix.c: New file.
6333 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6334 (rs6000_find_toc_address_hook): Delete.
6335 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6336 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6337 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6338 "xml-utils.h".
6339 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6340 (vmap_symtab, fixup_breakpoints): Delete.
6341 (rs6000_xfer_shared_libraries): New function.
6342 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6343 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6344 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6345 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6346 (rs6000_xfer_shared_library): New function.
6347 (find_toc_address): Delete.
6348 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6349 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6350 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6351 before creating minimal symbol. Adjust function description
6352 accordingly.
6353 (scan_xcoff_symtab): Replace call to
6354 prim_record_minimal_symbol_and_info by call to
6355 record_minimal_symbol.
6356 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6357 around default_symfile_offsets.
6358 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6359 powerpc-aix targets.
6360 * config/rs6000/nm-rs6000.h: Delete.
6361 * config/powerpc/aix.mh (NAT_FILE): Delete.
6362 (NATDEPFILES): Remove xcoffsolib.o.
6363 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6364 (ALL_TARGET_OBS): Add solib-aix.o.
6365 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6366 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6367 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6368 * xcoffsolib.h, xcoffsolib.c: Delete.
6369
6370 * solib.c (reload_shared_libraries): Remove reference to
6371 SOLIB_CREATE_INFERIOR_HOOK.
6372 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6373 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6374 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6375 comment.
6376 * corelow.c (deprecated_core_resize_section_table): Delete.
6377 * exec.c: Remove include of xcoffsolib.h".
6378 (map_vmap, vmap): Delete.
6379 (exec_close_1): Remove references to vmap.
6380 (exec_file_attach): Remove vmap handling code, and reference
6381 to DEPRECATED_IBM6000_TARGET.
6382 (bfdsec_to_vmap): Delete.
6383 (exec_files_info): Remove block of code handling VMAP.
6384 * infcmd.c (post_create_inferior): Remove reference to
6385 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6386 * infrun.c (follow_exec): Remove reference to
6387 SOLIB_CREATE_INFERIOR_HOOK.
6388 * stack.c (print_frame): Remove reference to PC_SOLIB.
6389 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6390 (dsbt_relocate_main_executable): Likewise.
6391 * solib-frv.c (frv_current_sos): Likewise.
6392
0c4f667c
JB
63932013-05-06 Joel Brobecker <brobecker@adacore.com>
6394
6395 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6396 to target_write_memory and target_read_memory.
6397
726ce67c
JB
63982013-05-06 Joel Brobecker <brobecker@adacore.com>
6399
6400 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6401 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6402
c8c9911f
JB
64032013-05-06 Joel Brobecker <brobecker@adacore.com>
6404
6405 * darwin-nat.c: Replace all "%x" instances in format strings
6406 into "0x%x" throughout.
6407
fda184b6
JB
64082013-05-06 Joel Brobecker <brobecker@adacore.com>
6409
6410 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6411 gdb_assert by call to MACH_CHECK_ERROR.
6412 (darwin_attach_pid): Raise an error rather than a failed
6413 assertion when various system calls failed. Report a warning
6414 instead of raising a failed assertion when PREV_NOT is not NULL
6415 after call to mach_port_request_notification.
6416 (darwin_ptrace_me): Raise an error rather than a failed
6417 assertion when read returns nonzero.
6418
d1d69afb
JB
64192013-05-06 Joel Brobecker <brobecker@adacore.com>
6420
6421 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6422
dc90b24d
JK
64232013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6424
6425 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6426
faab9922
JK
64272013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6428
6429 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6430 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6431 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6432 a stale cleanup. Fix double free of NAME.
6433
e0ea48a0
EZ
64342013-05-04 Eli Zaretskii <eliz@gnu.org>
6435
6436 * windows-nat.c (windows_delete_thread): Accept an additional
6437 argument, the thread's exit code, and announce thread death when
6438 print_thread_events is non-zero and we are deleting a thread that
6439 is not the main thread.
6440 (get_windows_debug_event): Pass thread exit code to
6441 windows_delete_thread.
6442
83b2706a
KB
64432013-05-03 Kevin Buettner <kevinb@redhat.com>
6444
6445 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6446 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6447 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6448 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6449 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6450 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6451 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6452 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6453 (gdbarch_tdep): New struct.
6454 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6455 E_NUM_REGS.
6456 (v850e3v5_register_name): New function.
6457 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6458 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6459 code handling the struct return conventions for the RH850 ABI.
6460 Update all callers.
6461 (v850_eight_byte_align_p): New function.
6462 (v850_push_call_dummy): Push structs by value, not by reference
6463 for the RH850 ABI. Add support for eight byte alignment.
6464 (v850_dbtrap_breakpoint_from_pc): New function.
6465 (v850_gdbarch_init): Add ABI detection code. Register
6466 v850e3v5_register_name for the v850e3v5 architecture. Set the
6467 number of registers for v850e3v5. Register
6468 v850_dbtrap_breakpoint_from_pc as appropriate.
6469 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6470
d445b2f6
DE
64712013-05-03 Doug Evans <dje@google.com>
6472
6473 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6474 of bfd_count_sections.
6475 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6476 * symfile.c (default_symfile_offsets): Ditto.
6477 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6478 one entry, not bfd_count_sections entries.
6479
b3ce41ea
KB
64802013-05-03 Kevin Buettner <kevinb@redhat.com>
6481
6482 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6483 `save' and `restore' register groups. Don't include SPL
6484 or SPH in these groups.
6485 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6486 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6487 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6488 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6489 dwarf2_append_unwinders().
6490
96f7d3f1
PW
64912013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6492
6493 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6494 ignore SIGINT and SIGTRAP in case these internal signals are
6495 caught explicitely.
6496
b9dd1947
JB
64972013-05-01 Joel Brobecker <brobecker@adacore.com>
6498
6499 * darwin-nat.c (darwin_read_write_inferior): Change types
6500 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6501 of copy_count to "mach_msg_type_number_t".
6502 (darwin_read_dyld_info): Change type of parameter
6503 rdaddr to "gdb_byte *".
6504
4ca18a63
JB
65052013-05-01 Joel Brobecker <brobecker@adacore.com>
6506
6507 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6508 of &info->load_map from "char *" to "gdb_byte *".
6509
2b692d32
JB
65102013-05-01 Joel Brobecker <brobecker@adacore.com>
6511
6512 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6513 from "char *" to "gdb_byte *".
6514 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6515
a98c29a0
DE
65162013-04-30 Doug Evans <dje@google.com>
6517
6a506a2d
DE
6518 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6519 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6520 DWO stub. If DWO isn't found, just use stub.
6521 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6522
a98c29a0
DE
6523 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6524 calling init_cutu_and_read_dies.
6525
f92b06da
WT
65262013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6527
6528 * target-descriptions.c (maint_print_c_tdesc_cmd):
6529 Add case to parse structures as register types and
6530 bitfields.
6531
95eebdcc
WT
65322013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6533
6534 * MAINTAINERS (Write After Approval): Add myself to the list.
6535
019c1128
JB
65362013-04-30 Joel Brobecker <brobecker@adacore.com>
6537
6538 * sol-thread.c (rw_common): Change type of parameter "buf"
6539 to "gdb_byte *".
6540 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6541 rw_common to "gdb_byte *" instead of "char *".
6542
5812197c
JB
65432013-04-30 Joel Brobecker <brobecker@adacore.com>
6544
6545 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6546 of local variable msym to const struct bound_minimal_symbol.
6547 Adjust use accordingly.
6548 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6549
ecccb813
TS
65502013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6551
6552 * i386gnu-nat.c (CREG_OFFSET): New macro.
6553 (creg_offset): New array.
6554 (CREG_ADDR): Use creg_offset instead of reg_offset.
6555
f1d02dd4 65562013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6557
6558 * mep-tdep.c (mep_write_pc): Delete.
6559 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6560 Add call to set_gdbarch_pc_regnum.
6561
f1d02dd4 65622013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6563
6564 * common/filestuff.c: Replace #include <dirent.h> by
6565 #include "gdb_dirent.h".
6566
f1d02dd4 65672013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6568
6569 * common/filestuff.c: Replace #include <sys/stat.h> by
6570 #include "gdb_stat.h".
6571
b385a60d
PM
65722013-04-29 Pierre Muller <muller@sourceware.org>
6573
6574 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6575 editCase function rule.
6576 (get_DW_AT_signature_type): Likewise.
6577
d27b54ad
JB
65782013-04-29 Joel Brobecker <brobecker@adacore.com>
6579
6580 * m32r-tdep.c (m32r_write_pc): Delete.
6581 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6582 Add call to set_gdbarch_pc_regnum.
6583
47d21dc5
PM
65842013-04-29 Pierre Muller <muller@sourceware.org>
6585
6586 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6587
9056882e
JB
65882013-04-29 Joel Brobecker <brobecker@adacore.com>
6589
6590 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6591
7ee4732a
YQ
65922013-04-28 Yao Qi <yao@codesourcery.com>
6593
6594 * solib-dsbt.c (fetch_loadmap): Re-indent.
6595 (displacement_from_map, enable_break2): Likewise.
6596 (dsbt_relocate_section_addresses): Likewise.
6597
2260af53 65982013-04-26 Joel Brobecker <brobecker@adacore.com>
6599
6600 GDB 7.6 released.
6601
ff546935
TT
66022013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6603
6604 PR corefiles/14983:
6605 * dwarf2read.c (process_full_comp_unit): Always create a static
6606 block.
6607
40fb6c5e
HZ
66082013-04-25 Hui Zhu <hui@codesourcery.com>
6609
6610 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6611 to loc->cmd_bytecode.
6612
74e04d1c
DE
66132013-04-24 Doug Evans <dje@google.com>
6614
6615 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6616
3cf62c1d
KS
66172013-04-22 Keith Seitz <keiths@redhat.com>
6618
6619 * tracepoint.c (trace_save): Call the writer's start method.
6620
bf9e4d0c
MB
66212013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6622
6623 PR gdb/10462
6624 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6625 before argument.
6626
5d71132c
TT
66272013-04-23 Tom Tromey <tromey@redhat.com>
6628
6629 * common/filestuff.c: Check USE_WIN32API before including
6630 sys/socket.h.
6631 (HAVE_F_GETFD): New define.
6632 (mark_cloexec): Check HAVE_F_GETFD.
6633 (gdb_open_cloexec): Change 'mode' to unsigned long.
6634 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6635 (gdb_pipe_cloexec): Check HAVE_PIPE.
6636 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6637 long.
6638
a11cfd87
HZ
66392013-04-23 Hui Zhu <hui@codesourcery.com>
6640
6641 PR gdb/15293
a11cfd87
HZ
6642 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6643
2d9442cc
HZ
66442013-04-23 Hui Zhu <hui@codesourcery.com>
6645
6646 PR gdb/15165
2d9442cc
HZ
6647 * breakpoint.c (dprintf_print_recreate): New.
6648 (save_breakpoints): Let it not save dprintf commands.
6649 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6650
614c279d
TT
66512013-04-22 Tom Tromey <tromey@redhat.com>
6652
6653 PR gdb/7912:
6654 * Makefile.in (SFILES): Add filestuff.c
6655 (COMMON_OBS): Add filestuff.o.
6656 (filestuff.o): New target.
6657 * auto-load.c (auto_load_objfile_script_1): Use
6658 gdb_fopen_cloexec.
6659 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6660 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6661 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6662 * common/agent.c (gdb_connect_sync_socket): Use
6663 gdb_socket_cloexec.
6664 * common/filestuff.c: New file.
6665 * common/filestuff.h: New file.
6666 * common/linux-osdata.c (linux_common_core_of_thread)
6667 (command_from_pid, commandline_from_pid, print_source_lines)
6668 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6669 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6670 gdb_fopen_cloexec.
6671 * common/linux-procfs.c (linux_proc_get_int)
6672 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6673 * config.in, configure: Rebuild.
6674 * configure.ac: Don't check for sys/socket.h. Check for
6675 fdwalk, pipe2.
6676 * corelow.c (core_open): Use gdb_open_cloexec.
6677 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6678 * fork-child.c (fork_inferior): Call close_most_fds.
6679 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6680 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6681 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6682 Use gdb_fopen_cloexec.
6683 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6684 gdb_open_cloexec.
6685 (linux_async_pipe): Use gdb_pipe_cloexec.
6686 * remote-fileio.c (remote_fileio_func_open): Use
6687 gdb_open_cloexec.
6688 * remote.c (remote_file_put, remote_file_get): Use
6689 gdb_fopen_cloexec.
6690 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6691 close_most_fds.
6692 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6693 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6694 * solib.c (solib_find): Use gdb_open_cloexec.
6695 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6696 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6697 (tfile_open): Use gdb_open_cloexec.
6698 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6699 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6700 * xml-support.c (xml_fetch_content_from_file): Use
6701 gdb_fopen_cloexec.
6702 * main.c (captured_main): Call notice_open_fds.
6703
5fda2332
EBM
67042013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6705
6706 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6707 'char *' to 'gdb_byte *'.
6708 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6709 'gdb_byte'.
6710
eb6c553b
YQ
67112013-04-22 Yao Qi <yao@codesourcery.com>
6712
6713 * infrun.c: Fix typo in comment.
6714
9991b207
SDJ
67152013-04-22 Andrew Haley <aph@redhat.com>
6716
6717 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6718 instead of "long".
6719
8b4833e3
YQ
67202013-04-20 Yao Qi <yao@codesourcery.com>
6721
6722 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6723 'char *' to 'gdb_byte *'. Cast the return value of
6724 'bt_ctf_get_char_array' to 'gdb_byte *'.
6725
bd3f3b55
PA
67262013-04-19 Pedro Alves <palves@redhat.com>
6727
6728 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6729 -Wpointer-sign.
6730 * configure: Regenerate.
6731
c49e7f76
PA
67322013-04-19 Pedro Alves <palves@redhat.com>
6733
6734 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6735 'void *'.
6736
12ff8552
PA
67372013-04-19 Pedro Alves <palves@redhat.com>
6738
6739 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6740 Change type of 'myaddr' parameter to gdb_byte pointer.
6741 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6742 to 'long long' pointer instead of to 'unsigned long long'.
6743 (monitor_write_memory_block, monitor_read_memory_single)
6744 (monitor_read_memory): Change type of 'myaddr' parameter to
6745 gdb_byte pointer.
6746
9c37696b
PA
67472013-04-19 Pedro Alves <palves@redhat.com>
6748
6749 * record.c (validate_history_size): Make parameter 'setting'
6750 unsigned.
6751
a398505b
PA
67522013-04-19 Pedro Alves <palves@redhat.com>
6753
6754 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6755 to 'gdb_byte *'.
6756
9f8afa72
PA
67572013-04-19 Pedro Alves <palves@redhat.com>
6758
6759 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6760 local to int.
6761
c714b426
PA
67622013-04-19 Pedro Alves <palves@redhat.com>
6763
6764 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6765 * ada-tasks.c (read_fat_string_value): Likewise.
6766
507a579c
PA
67672013-04-19 Pedro Alves <palves@redhat.com>
6768
6769 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6770 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6771 'offset', and adjust.
6772
f9d83a0b
PA
67732013-04-19 Pedro Alves <palves@redhat.com>
6774
6775 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6776 (read_index_from_section): Add cast to 'char *'.
6777
745eb4fd
PA
67782013-04-19 Pedro Alves <palves@redhat.com>
6779
6780 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6781
db5be46f
PA
67822013-04-19 Pedro Alves <palves@redhat.com>
6783
6784 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6785
0f928d68
PA
67862013-04-19 Pedro Alves <palves@redhat.com>
6787
6788 * record-full.c (record_full_get_bookmark): Change local 'ret'
6789 type to char * and add cast to gdb_byte *.
6790 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6791 string.
6792 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6793
89f6d837
PA
67942013-04-19 Pedro Alves <palves@redhat.com>
6795
6796 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6797 * python/py-prettyprint.c (print_string_repr): Change type of
6798 'output' local to char *. Add cast to gdb_byte * in
6799 LA_PRINT_STRING call.
6800 (print_children): Change type of 'output' local to char *.
6801 * python/py-value.c (valpy_string): Add cast to const char * in
6802 PyUnicode_Decode call.
6803
ce6ec7d8
PA
68042013-04-19 Pedro Alves <palves@redhat.com>
6805
6806 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6807 and change its type to 'const char *'. Adjust.
6808 (mips_send_packet): Add cast to 'char *', and remove cast to
6809 'unsigned char *'.
6810 (mips_receive_packet): Remove cast to 'unsigned char *'.
6811 (mips_load_srec): Use bfd_byte.
6812 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6813 (pmon_checkset): Make 'value' parameter unsigned.
6814
fda0389f
PA
68152013-04-19 Pedro Alves <palves@redhat.com>
6816
6817 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6818
bc20a4af
PA
68192013-04-19 Pedro Alves <palves@redhat.com>
6820
6821 * remote.c (remote_write_bytes_aux, compare_sections_command)
6822 (remote_read_qxfer)
6823 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6824 (remote_hostio_readlink, remote_bfd_iovec_pread)
6825 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6826 binary buffer, and char when buffer is used as string.
6827 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6828 (trace_save, tfile_open, traceframe_walk_blocks)
6829 (tfile_fetch_registers): Likewise.
6830
c628b528
PA
68312013-04-19 Pedro Alves <palves@redhat.com>
6832
6833 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6834 buffer and size_t size. Adjust.
6835 * ser-base.h (ser_base_write): Adjust.
6836 * ser-go32.c (cnts): Change type to size_t.
6837 (dos_write): Change prototype -- take 'void *'
6838 buffer and size_t size. Adjust.
6839 (dos_info): Print elements of 'cnts' as unsigned long.
6840 * serial.c (serial_write): Likewise.
6841 * serial.h (serial_write): Adjust.
6842 (struct serial_ops) <write>: Change prototype -- take 'void *'
6843 buffer and size_t size. Adjust.
6844
51a5cd90
PA
68452013-04-19 Pedro Alves <palves@redhat.com>
6846
6847 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6848 gdb_byte *.
6849 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6850
a9933661
PA
68512013-04-19 Pedro Alves <palves@redhat.com>
6852
6853 * alpha-tdep.c (alpha_extract_return_value): Use
6854 regcache_cooked_read_unsigned to read 'v0'.
6855
19afdd07
PA
68562013-04-19 Pedro Alves <palves@redhat.com>
6857
6858 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6859 parameters 'at', 'as' and 'offset' to uint32_t.
6860
96b32e50
PA
68612013-04-19 Pedro Alves <palves@redhat.com>
6862
6863 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6864 'is64' to signed 'int'.
6865
eb1bd1fb
PA
68662013-04-19 Pedro Alves <palves@redhat.com>
6867
6868 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6869 parameter to int *.
6870
463920bf
PA
68712013-04-19 Pedro Alves <palves@redhat.com>
6872
6873 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6874 'insnbuf' buffer type to unsigned int[].
6875
70242eb1
PA
68762013-04-19 Pedro Alves <palves@redhat.com>
6877
6878 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6879
9d1dd0e2
PA
68802013-04-19 Pedro Alves <palves@redhat.com>
6881
6882 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6883 unsigned long *.
6884
44096aee
PA
68852013-04-19 Pedro Alves <palves@redhat.com>
6886
6887 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6888 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6889 UINT_MAX.
6890 * mips-tdep.c (heuristic_fence_post): Change type to int.
6891 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6892
e4286e57
PA
68932013-04-19 Pedro Alves <palves@redhat.com>
6894
6895 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6896 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6897 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6898
001f13d8
PA
68992013-04-19 Pedro Alves <palves@redhat.com>
6900
6901 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6902 it to get a string view of the byte buffer.
6903 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6904 type to gdb_byte *. Adjust.
6905 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6906 Change local to char *.
6907 * solib-darwin.c (find_program_interpreter): Change return type to
6908 char *. Adjust.
6909 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6910 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6911 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6912 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6913 * solib-svr4.c (find_program_interpreter): Change return type to
6914 char *. Adjust.
6915 (enable_break): Change local 'interp_name' to char *.
6916 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6917 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6918 (spu_pseudo_register_write_spu): Use char for string buffer.
6919 Adjust.
6920 (info_spu_event_command, info_spu_signal_command): Add casts to
6921 'char *'.
6922
948f8e3d
PA
69232013-04-19 Pedro Alves <palves@redhat.com>
6924
6925 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6926 gdb_byte[].
6927 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6928 * ada-lang.c (ada_value_assign): Use gdb_byte.
6929 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6930 (alphanbsd_sigtramp_offset): Use gdb_byte.
6931 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6932 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6933 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6934 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6935 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6936 * arm-tdep.c (arm_stub_unwind_sniffer)
6937 (arm_displaced_init_closure): Use gdb_byte.
6938 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6939 (arm_default_thumb_le_breakpoint)
6940 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6941 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6942 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6943 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6944 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6945 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6946 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6947 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6948 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6949 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6950 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6951 (cris_store_return_value, cris_extract_return_value): Use
6952 gdb_byte.
6953 (constraint): Change type of parameter to char * from signed
6954 char*. Use gdb_byte.
6955 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6956 of local buffer to gdb_byte *.
6957 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6958 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6959 (add_address_entry): Change type of local buffer to gdb_byte[].
6960 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6961 (frv_push_dummy_call): Use gdb_byte.
6962 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6963 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6964 (hppa_hpux_supply_save_state): Use gdb_byte.
6965 * hppa-tdep.c (hppa32_push_dummy_call)
6966 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6967 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6968 (slotN_contents, replace_slotN_contents): Change type of parameter
6969 to gdb_byte *.
6970 (fetch_instruction, ia64_pseudo_register_write)
6971 (ia64_register_to_value, ia64_value_to_register)
6972 (ia64_extract_return_value, ia64_store_return_value)
6973 (ia64_push_dummy_call): Use gdb_byte.
6974 * m32c-tdep.c (m32c_return_value): Remove cast.
6975 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6976 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6977 gdb_byte.
6978 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6979 * mn10300-tdep.c (mn10300_store_return_value)
6980 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6981 gdb_byte.
6982 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6983 (moxie_process_record): Remove casts.
6984 * ppc-ravenscar-thread.c (supply_register_at_address)
6985 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6986 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6987 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6988 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6989 * remote.c (compare_sections_command): Use gdb_byte.
6990 * score-tdep.c (score7_free_memblock): Change type of parameter to
6991 gdb_byte *.
6992 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6993 gdb_byte *. Use gdb_byte.
6994 (sh_push_dummy_call_fpu): Use gdb_byte.
6995 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6996 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6997 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6998 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6999 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7000 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7001 (sh64_store_return_value, sh64_register_convert_to_virtual):
7002 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7003 (sh64_pseudo_register_write): Use gdb_byte.
7004 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7005 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7006 buffer.
7007 (irix_current_sos): Use gdb_byte.
7008 * solib-som.c (som_current_sos): Use gdb_byte.
7009 * sparc-ravenscar-thread.c (supply_register_at_address)
7010 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7011 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7012 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7013 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7014 'gdb_byte *'.
7015 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7016 'gdb_byte *'.
7017 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7018 * xstormy16-tdep.c (xstormy16_extract_return_value)
7019 (xstormy16_store_return_value): Change parameter type to
7020 'gdb_byte *'. Adjust.
7021 (xstormy16_push_dummy_call): Use gdb_byte.
7022 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7023 (call0_analyze_prologue, execute_code): Use gdb_byte.
7024
433730c9
PA
70252013-04-19 Vladimir Kargov <kargov@gmail.com>
7026 Pedro Alves <palves@redhat.com>
7027
7028 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7029 value contents.
7030
ac9ec31b
DE
70312013-04-17 Doug Evans <dje@google.com>
7032
7033 * dwarf2read.c (struct signatured_type): New member type.
7034 (struct attribute): Replace member signatured_type with signature.
7035 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7036 (read_call_site_scope): Call follow_die_ref instead of
7037 follow_die_ref_or_sig.
7038 (read_structure_type): Rewrite handling of signatured types.
7039 (read_enumeration_type): Ditto.
7040 (read_attribute_value): Update.
7041 (build_error_marker_type): New function.
7042 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7043 Don't call error for bad types, just build an error marker type.
7044 (dump_die_shallow): Update.
7045 (follow_die_sig_1): Renamed from follow_die_sig.
7046 Don't call error for bad types, instead return NULL.
7047 (follow_die_sig): New function.
7048 (get_signatured_type, get_DW_AT_signature_type): New functions.
7049
e546e8bb
YZ
70502013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7051
7052 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7053 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7054 function.
e546e8bb 7055
ab116149
YQ
70562013-04-17 Yao Qi <yao@codesourcery.com>
7057
7058 * top.c (print_gdb_configuration): Print configure-time
7059 parameter on using libbabeltrace or not.
7060
488a42b8
PA
70612013-04-16 Pedro Alves <palves@redhat.com>
7062
7063 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7064
f5fb825b
PA
70652013-04-16 Pedro Alves <palves@redhat.com>
7066
85d494ea 7067 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7068 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7069
e1154999
PA
70702013-04-16 Pedro Alves <palves@redhat.com>
7071
7072 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7073 * common/glibc_thread_db.h: ... this new file ...
7074 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7075
e3b50a7f
PA
70762013-04-16 Will Newton <will.newton@gmail.com>
7077 Pedro Alves <palves@redhat.com>
7078
7079 PR build/11881
7080
7081 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7082 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7083 HAVE_THREAD_DB_H.
7084
1c2e4450
PA
70852013-04-16 Pedro Alves <palves@redhat.com>
7086 Eli Zaretskii <eliz@gnu.org>
7087
7088 * NEWS: Mention "set foo unlimited".
7089
4031ecc5
DE
70902013-04-15 Doug Evans <dje@google.com>
7091
19c3d4c9
DE
7092 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7093 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7094 (create_dwo_cu_reader): Renamed from
7095 create_dwo_debug_info_hash_table_reader.
7096 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7097 Remove support for multiple CUs in a DWO file.
7098 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7099
4031ecc5
DE
7100 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7101 instead of phex.
7102 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7103 (create_dwo_in_dwp): Ditto.
7104
b340913d
TT
71052013-04-15 Tom Tromey <tromey@redhat.com>
7106
7107 * NEWS: Move recent entries into "since 7.6" section.
7108
cc16e6c9
TT
71092013-04-15 Tom Tromey <tromey@redhat.com>
7110
7111 PR c++/13588:
7112 * NEWS: Update.
7113 * break-catch-throw.c (struct exception_catchpoint)
7114 <exception_rx, pattern>: New fields.
7115 (fetch_probe_arguments, dtor_exception_catchpoint)
7116 (check_status_exception_catchpoint)
7117 (print_one_detail_exception_catchpoint): New functions.
7118 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7119 Compile regular expression if needed.
7120 (extract_exception_regexp): New function.
7121 (catch_exception_command_1): Use extract_exception_regexp.
7122 (compute_exception): Use fetch_probe_arguments.
7123 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7124 and check_status fields.
7125 * cp-abi.c (cplus_typename_from_type_info): New function.
7126 * cp-abi.h (cplus_typename_from_type_info): Declare.
7127 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7128 * gdb_regex.h (compile_rx_or_error): Declare.
7129 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7130 comment.
7131 (init_gnuv3_ops): Set get_type_from_type_info field.
7132 * probe.c (compile_rx_or_error): Move...
7133 * utils.c (compile_rx_or_error): ... here.
7134
72f1fe8a
TT
71352013-04-15 Tom Tromey <tromey@redhat.com>
7136
7137 PR c++/15176:
7138 * NEWS: Update.
7139 * break-catch-throw.c (compute_exception): New function.
7140 (exception_funcs): New global.
7141 (_initialize_break_catch_throw): Create $_exception.
7142 * cp-abi.c (cplus_type_from_type_info): New function.
7143 * cp-abi.h (cplus_type_from_type_info): Declare.
7144 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7145 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7146 (gnuv3_get_type_from_type_info): New functions.
7147 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7148
fc4746a2
TT
71492013-04-15 Tom Tromey <tromey@redhat.com>
7150
7151 * break-catch-throw.c (struct exception_names): New.
7152 (exception_functions): Change type.
7153 (re_set_exception_catchpoint): Look for SDT probes.
7154
15a73f56
TT
71552013-04-15 Tom Tromey <tromey@redhat.com>
7156
7157 PR c++/10119:
7158 * break-catch-throw.c (exception_functions): New global.
7159 (gnu_v3_exception_catchpoint_ops): Move earlier.
7160 (struct exception_catchpoint): New.
7161 (classify_exception_breakpoint): Rewrite.
7162 (re_set_exception_catchpoint): New function.
7163 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7164 Allocate a struct exception_catchpoint.
7165 (catch_exception_command_1): Update.
7166 (initialize_throw_catchpoint_ops): Set 're_set' method.
7167
916703c0
TT
71682013-04-15 Tom Tromey <tromey@redhat.com>
7169
7170 * Makefile.in (SFILES): Add break-catch-throw.c
7171 (COMMON_OBS): Add break-catch-throw.o.
7172 * break-catch-throw.c: New file.
7173 * breakpoint.c: Move exception-catching code to new file.
7174 (ep_parse_optional_if_clause): No longer static.
7175 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7176
6e72ca20
TT
71772013-04-15 Tom Tromey <tromey@redhat.com>
7178
7179 PR c++/9065:
7180 * NEWS: Update.
7181 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7182 * c-exp.y (TYPEID): New token.
7183 (exp): Add new TYPEID productions.
7184 (ident_tokens): Add "typeid".
7185 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7186 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7187 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7188 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7189 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7190 case.
7191 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7192 (build_std_type_info_type, gnuv3_get_typeid_type)
7193 (gnuv3_get_typeid): New functions.
7194 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7195 new fields on ABI object.
7196 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7197 * std-operator.def (OP_TYPEID): New.
7198
715c6909
TT
71992013-04-15 Tom Tromey <tromey@redhat.com>
7200
7201 * elfread.c (elf_symtab_read): Install versioned symbol under
7202 unversioned name as well.
7203
8de20a37
TT
72042013-04-15 Tom Tromey <tromey@redhat.com>
7205
7206 PR c++/11990:
7207 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7208 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7209 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7210 (gdb_demangle): New function.
7211 * cp-support.h (gdb_demangle): Declare.
7212 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7213 (dwarf2_name): Use gdb_demangle.
7214 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7215 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7216 suffixes from name.
7217 (gnuv3_print_method_ptr): Use gdb_demangle.
7218 * jv-lang.c (java_demangle): Use gdb_demangle.
7219 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7220 * language.c (unk_lang_demangle): Use gdb_demangle.
7221 * symtab.c (symbol_find_demangled_name)
7222 (demangle_for_lookup): Use gdb_demangle.
7223
591f19e8
TT
72242013-04-15 Tom Tromey <tromey@redhat.com>
7225
7226 PR c++/12824:
7227 * NEWS: Update.
7228 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7229 New constant.
7230 (classify_exception_breakpoint): New function.
7231 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7232 (print_mention_exception_catchpoint)
7233 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7234 (catch_exception_command_1): Handle "rethrow" catchpoint.
7235 (catch_rethrow_command): New function.
7236 (_initialize_breakpoint): Add "catch rethrow" command.
7237
4d40cad2
PM
72382013-04-15 Pierre Muller <muller@sourceware.org>
7239
7240 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7241 set_gdbarch_write_pc as deprecated anymore.
7242
30bcb456
JB
72432013-04-15 Joel Brobecker <brobecker@adacore.com>
7244
7245 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7246 declarations.
7247
da9160e4
YQ
72482013-04-13 Yao Qi <yao@codesourcery.com>
7249
7250 * ctf.c (_initialize_ctf): Include "completer.h".
7251 Call add_target_with_completer instead of add_target.
7252
39ed5604
JK
72532013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7254
7255 Fix GDB regression related to PR binutils/14813.
7256 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7257 * minidebug.c (lzma_close): Add return value comment.
7258 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7259 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7260 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7261
72622013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7263
7264 * config.in: Regenerate.
7265
d521ce57
TT
72662013-04-12 Tom Tromey <tromey@redhat.com>
7267
7268 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7269 const.
7270 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7271 (struct die_reader_specs) <buffer>: Likewise.
7272 (die_reader_func_ftype): Make 'info_ptr' const.
7273 (struct line_header) <include_dirs, statement_program_start,
7274 statement_program_end>: Now const.
7275 (struct file_entry) <name>: Likewise.
7276 (struct partial_die_info) <sibling>: Likewise.
7277 (struct dwarf_block) <data>: Likewise.
7278 (dwarf2_read_section): Remove cast.
7279 (dwarf2_get_section_info): Make 'bufp' const.
7280 (read_index_from_section): Constify.
7281 (dw2_get_file_names_reader): Make 'info_ptr' const.
7282 (dw2_get_primary_filename_reader): Likewise.
7283 (read_comp_unit_head): Make 'info_ptr' and return type const.
7284 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7285 Likewise.
7286 (read_abbrev_offset): Constify.
7287 (dwarf2_create_include_psymtab): Make 'name' const.
7288 (create_debug_types_hash_table): Update.
7289 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7290 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7291 Constify.
7292 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7293 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7294 (read_comp_units_from_section): Constify.
7295 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7296 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7297 const.
7298 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7299 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7300 (create_dwp_hash_table, dwarf2_ranges_read)
7301 (dwarf2_record_block_ranges): Constify.
7302 (read_die_and_children, read_die_and_siblings_1)
7303 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7304 const.
7305 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7306 (abbrev_table_read_table): Constify.
7307 (load_partial_dies): Make 'info_ptr' const.
7308 (read_partial_die, read_attribute_value, read_attribute): Make
7309 'info_ptr' and return type const.
7310 (read_address, read_initial_length)
7311 (read_checked_initial_length_and_offset, read_offset)
7312 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7313 const.
7314 (read_direct_string): Make 'buf' and return type const.
7315 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7316 (read_indirect_string): Make return type const.
7317 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7318 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7319 'info_ptr' const.
7320 (read_str_index): Make return type const.
7321 (add_include_dir): Make 'include_dir' const.
7322 (add_file_name): Make 'name' const.
7323 (dwarf_decode_line_header): Constify.
7324 (psymtab_include_file_name): Make return type const.
7325 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7326 (dwarf2_start_subfile): Make 'filename' const.
7327 (dwarf2_const_value_attr): Make 'bytes' const.
7328 (read_signatured_type_reader): Make 'info_ptr' const.
7329 (decode_locdesc): Constify.
7330 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7331 const.
7332 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7333 'mac_end', and return type const.
7334 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7335 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7336 type const.
7337 (per_cu_header_read_in): Constify.
7338 * symfile.h (dwarf2_get_section_info): Update.
7339
d47a1bc1
TT
73402013-04-12 Tom Tromey <tromey@redhat.com>
7341
7342 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7343
6eaaf48b
EZ
73442013-04-12 Eli Zaretskii <eliz@gnu.org>
7345
fc4c25bf 7346 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7347 * top.c (print_gdb_configuration): New function, displays the
7348 details about GDB configure-time parameters.
7349 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7350 * cli/cli-cmds.c (show_configuration): New function.
7351 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7352 * main.c (captured_main) <print_configuration>: New static var.
7353 <long_options>: Use it.
7354 If --configuration was given, call print_gdb_configuration.
7355
b292c783
JK
73562013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 Pedro Alves <palves@redhat.com>
7358
7359 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7360 (generated_files): Add gcore.
7361 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7362 HAVE_NATIVE_GCORE_HOST.
7363 (gcore): New.
7364 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7365 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7366 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7367 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7368 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7369 Add HAVE_NATIVE_GCORE_HOST.
7370 * configure: Regenerate.
7371 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7372 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7373 AC_CONFIG_FILES for gcore.
7374 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7375 gdb_have_gcore.
7376 * gdb_gcore.sh: Rename to ...
7377 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7378 and GCORE_TRANSFORM_NAME substitutions.
7379
c96b3c4f
JK
7380 Fix parsing tabs in ${gdb_target_obs}.
7381 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7382
d6cb50a2
JK
73832013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7384
7385 * remote.c (unpush_and_perror): Add output message final dot.
7386
cf2cb5ec
YQ
73872013-04-11 Yao Qi <yao@codesourcery.com>
7388
7389 * tracepoint.c (tfile_interp_line): Fit parameters line and
7390 utpp in one line.
7391
07293be4
JB
73922013-04-10 Joel Brobecker <brobecker@adacore.com>
7393
7394 * solib.c (solib_map_sections): Remove code overwriting
7395 SO->SO_NAME with the bfd's filename.
7396
f81d1120
PA
73972013-04-10 Pedro Alves <palves@redhat.com>
7398
7399 * cli/cli-decode.c (integer_unlimited_completer): New function.
7400 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7401 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7402 completer.
7403 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7404 (is_unlimited_literal): New function.
7405 (do_set_command): Handle literal "unlimited" arguments.
7406 * frame.c (_initialize_frame) <set backtrace limit>: Document
7407 "unlimited".
7408 * printcmd.c (_initialize_printcmd) <set print
7409 max-symbolic-offset>: Add help text.
7410 * record-full.c (_initialize_record_full) <set record full
7411 insn-number-max>: Likewise.
7412 * record.c (_initialize_record) <set record
7413 instruction-history-size, set record function-call-history-size>:
7414 Add help text.
7415 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7416 help text.
7417 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7418 Likewise.
7419 * source.c (_initialize_source) <set listsize>: Add help text.
7420 * utils.c (initialize_utils) <set height, set width>: Likewise.
7421 <set pagination>: Mention "set height unlimited".
7422 * valprint.c (_initialize_valprint) <set print elements, set print
7423 repeats>: Document "unlimited".
7424
2f9d54cf
PA
74252013-04-10 Pedro Alves <palves@redhat.com>
7426
7427 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7428 instead of disconnect_tracing.
7429 * infcmd.c (detach_command, disconnect_command): Call
7430 query_if_trace_running. Adjust.
7431 * top.c: Include "tracepoint.h".
7432 (quit_target): Delete. Contents moved ...
7433 (quit_force): ... here. Wrap each stage of teardown in
7434 TRY_CATCH. Call disconnect_tracing before detaching.
7435
393fd4c3
YQ
74362013-04-10 Hui Zhu <hui@codesourcery.com>
7437 Yao Qi <yao@codesourcery.com>
7438
7439 * configure.ac: Check libbabeltrace is installed.
7440 * config.in: Regenerate.
7441 * configure: Regenerate.
7442 * Makefile.in (LIBBABELTRACE): New.
7443 (CLIBS): Add LIBBABELTRACE.
7444 * ctf.c: Include "exec.h".
7445 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7446 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7447 (ctf_save_metadata_header): Define new type aliases in
7448 metadata.
7449 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7450 in metadata. Start a new faked packet for trace status.
7451 (ctf_write_status): Write trace status to CTF.
7452 (ctf_write_uploaded_tsv): Write TSV to CTF.
7453 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7454 (ctf_write_definition_end): End the faked packet.
7455
7456 (ctx, ctf_iter, trace_dirname): New.
7457 (start_pos): New variable.
7458 (ctf_destroy, ctf_open_dir, ctf_open): New.
7459 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7460 macros.
7461 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7462 (ctf_fetch_registers, ctf_xfer_partial): New.
7463 (ctf_get_trace_state_variable_value): New.
7464 (ctf_get_tpnum_from_frame_event): New.
7465 (ctf_get_traceframe_address): New.
7466 (ctf_trace_find, ctf_has_stack): New.
7467 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7468 (ctf_get_trace_status, ctf_read_status): New.
7469 (_initialize_ctf): New.
7470 * tracepoint.c (get_tracepoint_number): New
7471 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7472 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7473 * tracepoint.h: ... here.
7474 (get_tracepoint_number): Declare it.
7475 (get_uploaded_tsv): Declare it.
7476
7477 * NEWS: Mention new configure option.
7478
5c2b4418
HZ
74792013-04-10 Pedro Alves <palves@redhat.com>
7480 Hui Zhu <hui@codesourcery.com>
7481
7482 * breakpoint.c (dprintf_re_set): New.
7483 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7484 to dprintf_re_set.
7485
a5c66735
JB
74862013-04-09 Joel Brobecker <brobecker@adacore.com>
7487
7488 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7489 Remove solib-svr4.o from the list.
7490
9e77999c
JB
74912013-04-09 Joel Brobecker <brobecker@adacore.com>
7492
7493 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7494 Use gdb_assert_not_reached instead of invalid boolean expression.
7495
1927e618
PA
74962013-04-09 Pedro Alves <palves@redhat.com>
7497
7498 * remote.c (unpush_and_perror): New function.
7499 (readchar, remote_serial_write): Use it.
7500
10782d74
MM
75012013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7502
7503 * NEWS: Mention new btrace RSP packets.
7504
4c8429ef
TT
75052013-04-08 Tom Tromey <tromey@redhat.com>
7506
7507 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7508 long.
7509
8625fc1b
TT
75102013-04-08 Tom Tromey <tromey@redhat.com>
7511
7512 * maint.c (print_bfd_section_info): Print the section index.
7513 * symmisc.c (dump_msymbols): Print the section index.
7514
e27d198c
TT
75152013-04-08 Tom Tromey <tromey@redhat.com>
7516
7517 PR symtab/8424:
7518 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7519 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7520 * breakpoint.c (resolve_sal_pc): Update.
7521 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7522 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7523 (minsym_lookup_iterator_cb): Use it.
7524 (default_read_var_value): Update.
7525 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7526 Update.
7527 * infcmd.c (jump_command): Update.
7528 * linespec.c (minsym_found): Update.
7529 * maint.c (maintenance_translate_address): Update.
7530 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7531 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7532 * parse.c (write_exp_msymbol): Update.
7533 * printcmd.c (address_info): Update.
7534 * psymtab.c (find_pc_sect_psymbol): Update.
7535 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7536 SYMBOL_OBJ_SECTION.
7537 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7538 Don't initialize SYMBOL_OBJ_SECTION.
7539 * spu-tdep.c (spu_catch_start): Update.
7540 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7541 * symmisc.c (dump_msymbols, print_symbol): Update.
7542 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7543 how fallback section is computed.
7544 (fixup_symbol_section): Update.
7545 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7546 Update.
7547 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7548 Initialize SYMBOL_SECTION.
7549 * symtab.h (struct general_symbol_info) <section>: Update comment.
7550 <obj_section>: Remove.
7551 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7552 (SYMBOL_OBJFILE): New macro.
7553
e6dc44a8
TT
75542013-04-08 Tom Tromey <tromey@redhat.com>
7555
7556 * coffread.c (record_minimal_symbol): Update.
7557 * dbxread.c (record_minimal_symbol): Update.
7558 * elfread.c (record_minimal_symbol): Update.
7559 * machoread.c (macho_symtab_add_minsym): Update.
7560 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7561 Update.
7562 * minsyms.c (prim_record_minimal_symbol): Update.
7563 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7564 argument.
7565 (prim_record_minimal_symbol_and_info): Likewise.
7566 * minsyms.h (prim_record_minimal_symbol_full)
7567 (prim_record_minimal_symbol_and_info): Update.
7568 * symtab.c (allocate_symbol, initialize_symbol)
7569 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7570 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7571 Update.
7572
36192a8d
TT
75732013-04-08 Tom Tromey <tromey@redhat.com>
7574
7575 PR symtab/8423:
7576 * solib-som.c (som_solib_section_offsets): Use BFD section
7577 indices. Set offsets for all sections.
7578 * somread.c (som_symtab_read): Compute BFD section for
7579 symbol. Use prim_record_minimal_symbol_and_info.
7580 (som_symfile_read): Fix comment.
7581 (struct find_section_offset_arg): New.
7582 (find_section_offset, set_section_index): New functions.
7583 (som_symfile_offsets): Use set_section_index to compute
7584 section indices.
7585
65cf3563
TT
75862013-04-08 Tom Tromey <tromey@redhat.com>
7587
7588 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7589 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7590 gdb_bfd_section_index.
7591 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7592 New functions.
7593 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7594 Declare.
7595 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7596 Update.
7597 * objfiles.c (add_to_objfile_sections_full): New function.
7598 (add_to_objfile_sections): Use it.
7599 (build_section_table): Rewrite.
7600 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7601 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7602 (struct objfile) <sections>: Update comment.
7603 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7604 is NULL.
7605 (ALL_OBJSECTIONS): Use it.
7606 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7607 * solib-frv.c (frv_relocate_main_executable): Update.
7608 * solib-target.c (solib_target_relocate_section_addresses):
7609 Use gdb_bfd_section_index.
7610 * symfile.c (build_section_addr_info_from_section_table):
7611 Use gdb_bfd_section_index.
7612 (build_section_addr_info_from_bfd, place_section): Likewise.
7613 * symtab.c (fixup_section): Update.
7614 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7615
7cbd4a93
TT
76162013-04-08 Tom Tromey <tromey@redhat.com>
7617
7618 * minsyms.h (struct bound_minimal_symbol): New.
7619 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7620 Remove objfile argument.
7621 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7622 Return bound_minimal_symbol.
7623 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7624 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7625 Return bound_minimal_symbol.
7626 (in_gnu_ifunc_stub): Update.
7627 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7628 Remove 'objfile_p' argument.
7629 (lookup_solib_trampoline_symbol_by_pc): Update.
7630 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7631 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7632 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7633 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7634 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7635 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7636 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7637 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7638 stack.c, symtab.c, tui/tui-disasm.c: Update.
7639
f85f34ed
TT
76402013-04-08 Tom Tromey <tromey@redhat.com>
7641
7642 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7643 Use symbol's obstack, not an objfile.
7644 * coffread.c (process_coff_symbol): Update.
7645 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7646 * jv-lang.c (add_class_symbol): Update.
7647 * mdebugread.c (new_symbol): Update.
7648 * minsyms.c (prim_record_minimal_symbol_full)
7649 (terminate_minimal_symbol_table): Update.
7650 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7651 * stabsread.c (define_symbol, read_enum_type): Update.
7652 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7653 Handle Ada specially.
7654 (symbol_set_language): Add 'obstack' argument.
7655 (symbol_set_names): Update.
7656 (symbol_natural_name, symbol_demangled_name): Always use
7657 ada_decode_symbol.
7658 * symtab.h (struct general_symbol_info)
7659 <language_specific::obstack>: New field.
7660 <ada_mangled>: New field.
7661 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7662 (symbol_set_language): Update.
7663
ccde22c0
TT
76642013-04-08 Tom Tromey <tromey@redhat.com>
7665
7666 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7667 Take an obstack, not an objfile.
7668 (symbol_set_names): Update.
7669 * symtab.h (symbol_set_demangled_name): Update.
7670
e623cf5d
TT
76712013-04-08 Tom Tromey <tromey@redhat.com>
7672
7673 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7674 allocate_symbol.
7675 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7676 (read_func_scope): Call allocate_template_symbol.
7677 (new_symbol_full): Call allocate_symbol.
7678 * jit.c (finalize_symtab): Call allocate_symbol.
7679 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7680 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7681 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7682 (common_block_end): Call allocate_symbol.
7683 * symtab.c (allocate_symbol, initialize_symbol)
7684 (allocate_template_symbol): New functions.
7685 * symtab.c (allocate_symbol, initialize_symbol)
7686 (allocate_template_symbol): Declare.
7687 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7688
f6de8ec2
PA
76892013-04-08 Pedro Alves <palves@redhat.com>
7690 Keith Seitz <keiths@redhat.com>
7691
7692 * breakpoint.c (create_breakpoint): Rename
7693 "parse_condition_and_thread" parameter to "parse_arg". Update
7694 describing comment. If !PARSE_ARG, then error out if ARG is not
7695 the empty string after extracting the location.
7696 * breakpoint.h (create_breakpoint): Rename
7697 "parse_condition_and_thread" parameter to "parse_arg".
7698
f65ce5fb
AR
76992013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7700
7701 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7702
cc5925ad
YQ
77032013-04-07 Yao Qi <yao@codesourcery.com>
7704
7705 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7706 and 'addr2' to CORE_ADDR.
7707 * target.c (update_current_target): Update.
7708 * target.h (struct target_ops) <to_trace_find>: Change parameter
7709 type to CORE_ADDR.
7710 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7711 'addr2' to CORE_ADDR.
7712 (tfile_trace_find): Likewise.
7713 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7714 Change local variable 'addr' to type CORE_ADDR.
7715 * tracepoint.h (tfind_1): Update declaration.
7716
d9ac0664
EZ
77172013-04-06 Eli Zaretskii <eliz@gnu.org>
7718
7719 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7720 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7721 Include main.h.
7722
7723 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7724 here...
7725 * main.h (windows_get_absolute_argv0): ...to here.
7726
02142a6c
DE
77272013-04-05 Doug Evans <dje@google.com>
7728
7729 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7730 (read_cutu_die_from_dwo): Add comments.
7731 (read_structure_type): Update comment.
7732 (read_enumeration_type, read_namespace_type): Update comment.
7733 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7734
43662968
JK
77352013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7736
7737 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7738 * Makefile.in (gdb.z): Remove.
7739 (install-only): Remove $(man1dir) and gdb.1 installation.
7740 * gdb.1: Remove.
7741
9ead1b84
JK
77422013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7743
7744 Fix compatibility with Linux kernel 3.8.3.
7745 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7746 to more inner block. Remove parsing of NUMBER from outer block.
7747 Parse NUMBER only if KEYWORD has been identified.
7748
d1794952
JK
77492013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 Fix variable name shadowing.
7752 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7753 filename to mapsfilename and update its uses.
7754
9025569e
EZ
77552013-04-05 Eli Zaretskii <eliz@gnu.org>
7756
7757 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7758 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7759 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7760 details of the problem.
7761
c9a6ce02
PA
77622013-04-04 Pedro Alves <palves@redhat.com>
7763 Hui Zhu <hui@codesourcery.com>
7764
7765 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7766 tracepoint, reset its STEP_COUNT and call validate_actionline.
7767
5ff888ce
DE
77682013-04-03 Doug Evans <dje@google.com>
7769
bf6af496
DE
7770 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7771 read_die_and_siblings.
7772 (read_die_and_siblings): New function.
7773 (read_cutu_die_from_dwo): Dump die if requested.
7774 (read_die_and_children): Call read_full_die_1 and
7775 read_die_and_siblings_1.
7776 (read_full_die): Dump die if requested.
7777
7778 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7779
0ac5b59e
DE
7780 * dwarf2read.c (struct dwo_file): New member comp_dir.
7781 Rename member name to dwo_name. All uses updated.
7782 (hash_dwo_file): Include comp_dir in computation.
7783 (eq_dwo_file): Ditto.
7784 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7785 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7786
5ff888ce
DE
7787 * psymtab.c (read_psymtabs_with_fullname): Don't call
7788 psymtab_to_fullname if the basenames are different.
7789
ec83d211
JK
77902013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7793 New entry about "fullname" presence.
7794
4f4352f7
PA
77952013-04-03 Pedro Alves <palves@redhat.com>
7796
7797 * NEWS: Mention x86_64/Cygwin as new native configuration.
7798
3d1d5ea3
DE
77992013-04-02 Doug Evans <dje@google.com>
7800
7801 * dwarf2read.c (read_structure_type): Fix typo in comment.
7802
be9a8770
PA
78032013-04-02 Pedro Alves <palves@redhat.com>
7804
7805 * NEWS: Mention "set/show debug aarch64", "set/show debug
7806 coff-pe-read" and "set/show debug mach-o".
7807
a46c1e42
PA
78082013-04-02 Pedro Alves <palves@redhat.com>
7809
7810 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7811
3ad18b19
EZ
78122013-04-02 Eli Zaretskii <eliz@gnu.org>
7813
7814 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7815 gdb_string.h is now in common/.
7816
e9f1758d
PA
78172013-04-02 Pedro Alves <palves@redhat.com>
7818
7819 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7820 under "New options".
7821
049dc89b
JK
78222013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7823
7824 Revert this patch:
7825 PR gdb/15275
7826 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7827
c33e31fd
PA
78282013-04-02 Pedro Alves <palves@redhat.com>
7829
7830 PR gdb/15275
7831
7832 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7833 (remote_serial_write): New function.
7834 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7835
ea5f3910
JW
78362013-04-01 Jiong Wang <jiwang@tilera.com>
7837
7838 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7839 "New targets" sections.
ea5f3910 7840
5c6fa7ab
DE
78412013-04-01 Doug Evans <dje@google.com>
7842
c0f78cd4
DE
7843 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7844 (process_enumeration_scope): Simplify.
7845
0186c6a7
DE
7846 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7847 type_unit_group ...
7848 (struct signatured_type): ... to here.
7849 (sig_type_ptr): New typedef.
7850 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7851 out of union 't'. All uses updated.
7852 (dw2_get_file_names_reader): Assert not called for a type unit.
7853 (dw2_get_file_names): Assert not called for a type unit or type
7854 unit group.
7855 (build_type_psymtabs_reader): Assert called for a type unit.
7856 (build_type_psymtab_dependencies): Assert called for a type unit group.
7857
5c6fa7ab
DE
7858 * dwarf2read.c (free_dwo_file): Add comment.
7859 (dwarf2_per_objfile_free): Unref dwp bfd.
7860
b3c0ad67 78612013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7862
7863 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7864 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7865 (read_pe_exported_syms): Remove unused 'exportix'.
7866 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7867 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7868 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7869
e2df1547
AR
78702013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7871
7872 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7873 (print_it_watchpoint): Remove unused 'bl'.
7874 (say_where): Remove unused 'uiout'.
7875 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7876 (bkpt_breakpoint_hit): Remove unused 'b'.
7877 (internal_bkpt_print_it): Remove unused 'uiout'.
7878 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7879
d81e75c0
TD
78802013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7881
7882 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7883 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7884
5a8b3f62
DE
78852013-03-29 Doug Evans <dje@google.com>
7886
ab5088bf
DE
7887 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7888 Delete arg is_dwp. All callers updated.
7889 (open_dwp_file): New function.
7890 (open_and_init_dwp_file): Call it.
7891 (get_dwp_file): New function.
7892 (lookup_dwo_cutu): Call it.
7893
a8ad1e57
DE
7894 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7895 unnecessary, cleanup.
7896
6296d8c1
DE
7897 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7898
b0c7bfa9
DE
7899 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7900 (lookup_dwo_unit): New function.
7901 (init_cutu_and_read_dies): Move DWO handling to new functions.
7902
c88ee1f0
DE
7903 * dwarf2read.c (struct signatured_type): Tweak comment.
7904 (struct dwo_unit): Tweak comment.
7905 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7906 (create_dwo_debug_info_hash_table): Tweak comment.
7907 (dwarf2_per_cu_offset_and_type): Tweak comment.
7908
5a8b3f62
DE
7909 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7910 missing .debug_types section.
7911
9852c492
YQ
79122013-03-29 Yao Qi <yao@codesourcery.com>
7913
7914 * corelow.c: Include "completer.h".
7915 (_initialize_corelow): Call add_target_with_completer with
7916 argument 'filename_completer'.
7917 * tracepoint.c: Likewise.
7918 * exec.c (_initialize_exec): Likewise.
7919 * target.c (add_target): Rename to ...
7920 (add_target_with_completer): ... this. Call set_cmd_completer
7921 if parameter completer is not NULL.
7922 (add_target): New.
7923 * target.h: Include "command.h".
7924 (add_target_with_completer): Declare it.
7925
af312be7
JB
79262013-03-28 Joel Brobecker <brobecker@adacore.com>
7927
7928 * coffread.c (is_import_fixup_symbol): New function.
7929 (record_minimal_symbol): Use is_import_fixup_symbol to
7930 detect import fixup symbols, and discard them.
7931
8a0459fd
DE
79322013-03-28 Doug Evans <dje@google.com>
7933
0349ea22
DE
7934 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7935 types hash table until we know we need it.
7936
f652bce2
DE
7937 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7938 index numbers.
7939
e4a48d9d
DE
7940 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7941 All callers updated.
7942 (dw2_print_stats): Print #read CUs too.
7943 (dump_die_shallow): Print signatured types better.
7944
8a0459fd
DE
7945 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7946 info_or_types_section to section. All uses updated.
7947 (struct dwo_unit): Ditto.
7948
bd3eecc3
PA
79492013-03-28 Pedro Alves <palves@redhat.com>
7950
7951 * NEWS (New options): New section.
7952 (New options): Mention set/show remote trace-status-packet.
7953 * remote.c (PACKET_qTStatus): New enumeration value.
7954 (remote_get_trace_status): Skip sending qTStatus if the packet is
7955 disabled. Use packet_ok.
7956 (_initialize_remote): Register a configuration command for
7957 qTStatus packet.
7958
41245087
DE
79592013-03-28 Doug Evans <dje@google.com>
7960
7edbb660
DE
7961 * symfile.c (find_separate_debug_file): Add comment.
7962 (terminate_after_last_dir_separator): Tweak comment.
7963
0018ea6f
DE
7964 * dwarf2read.c (create_partial_symtab): Add forward decl.
7965 (create_partial_symtab): Move to be closer to other psymtab functions.
7966 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7967
ca69b9e6
DE
7968 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7969 (compute_symtab_includes): Remove unnecessary forward declaration.
7970 (die_needs_namespace): Add comment marking group of functions for
7971 dwarf2 name computation.
7972
a9375afe
DE
7973 * typeprint.c (_initialize_typeprint): Improve type help text.
7974
41245087
DE
7975 * python/python.c (finish_python_initialization): Provide suggestion
7976 for how to tell gdb to find its python files.
7977
7f7cc265
PA
79782013-03-28 Pedro Alves <palves@redhat.com>
7979
7980 PR gdb/15294
7981
7982 * source.c (_initialize_source): Change back "set listsize" to an
7983 integer command.
7984
ec21308c
JK
79852013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7986
7987 PR gdb/15275
7988 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7989
840a9a1f
PA
79902013-03-27 Pedro Alves <palves@redhat.com>
7991
7992 * top.c (history_size): Rename to ...
7993 (history_size_setshow_var): ... this. Add comment.
7994 (show_commands): Use readline's 'history_length' instead of
7995 computing the history length by calling history_get in a loop.
7996 (set_history_size_command): Error out for sizes over INT_MAX.
7997 Restore previous history size on invalid size.
7998 (init_history): If HISTSIZE is negative, leave the history size as
7999 zero. Add comments.
8000 (init_main): Adjust.
8001
826ecc4d
PA
80022013-03-27 Pedro Alves <palves@redhat.com>
8003
8004 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8005 coff_pe_read" command to "set debug coff-pe-read".
8006
0ccfeeae
MM
80072013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8008
8009 * record.c (command_size_to_target_size): Fix size comparison.
8010 Change parameter type from pointer to integer to integer.
8011 Update all users.
8012
40653b35
PM
80132013-03-27 Pierre Muller <muller@sourceware.org>
8014
8015 * windows-nat.c (handle_output_debug_string): Avoid typecast
8016 from integer of different size warning.
8017
c62fa0e2
JB
80182013-03-26 Joel Brobecker <brobecker@adacore.com>
8019
8020 * windows-nat.c (handle_output_debug_string): Add empty line
8021 after local block variable definition.
8022
2c619be2
PA
80232013-03-26 Pedro Alves <palves@redhat.com>
8024
8025 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8026 (net_open): Make 'polls' local unsigned.
8027
1b493192
PA
80282013-03-26 Pedro Alves <palves@redhat.com>
8029
8030 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8031 a zuinteger command instead of uinteger.
8032
7ee70bf5
PA
80332013-03-26 Pedro Alves <palves@redhat.com>
8034
8035 * record-full.c (record_full_insn_num): Make it unsigned.
8036 (record_full_check_insn_num, record_full_message)
8037 (record_full_registers_change, record_full_xfer_partial): Remove
8038 record_full_insn_max_num check (it's always != 0).
8039 (record_full_info, record_full_restore): Use %u as format string.
8040 (): Use %u as format string.
8041 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8042 check (it's always != 0).
8043
dfd1f9bb
PA
80442013-03-26 Pedro Alves <palves@redhat.com>
8045
8046 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8047 and "set dcache size" commands zuinteger instead of uinteger.
8048
addb4faf
PA
80492013-03-26 Pedro Alves <palves@redhat.com>
8050
8051 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8052 command zuinteger instead of uinteger.
8053
b75bf488
PA
80542013-03-26 Pedro Alves <palves@redhat.com>
8055
8056 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8057 zuinteger instead of uinteger.
8058
42c634cb
PA
80592013-03-26 Pedro Alves <palves@redhat.com>
8060
8061 * record.c (record_insn_history_size_setshow_var)
8062 (record_call_history_size_setshow_var): New globals.
8063 (command_size_to_target_size): New function.
8064 (cmd_record_insn_history, cmd_record_call_history): Use
8065 command_size_to_target_size instead of cast.
8066 (validate_history_size, set_record_insn_history_size)
8067 (set_record_call_history_size): New functions.
8068 (_initialize_record): Install set_record_insn_history_size and
8069 set_record_call_history_size as "set" hooks of "set record
8070 instruction-history-size" and "set record
8071 function-call-history-size".
8072
1fb2e2b5
PA
80732013-03-26 Pedro Alves <palves@redhat.com>
8074
8075 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8076 use with history_max_entries use. Remove FIXME note.
8077
99c819ee
MM
80782013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8079
8080 * record-btrace.c (record_btrace_close): Call
8081 record_btrace_auto_disable.
8082
9f9e404c
JB
80832013-03-25 Joel Brobecker <brobecker@adacore.com>
8084
8085 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8086
ebcdfe33
DE
80872013-03-25 Doug Evans <dje@google.com>
8088
8089 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8090
24955f63
TT
80912013-03-25 Tom Tromey <tromey@redhat.com>
8092
8093 PR symtab/11462:
8094 * c-exp.y (exp): Add new productions for destructors after '.' and
8095 '->'.
8096 (write_destructor_name): New function.
8097
fce632b6
TT
80982013-03-25 Tom Tromey <tromey@redhat.com>
8099
8100 PR c++/9197:
8101 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8102 value_struct_elt, not lookup_struct_elt_type.
8103 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8104 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8105 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8106
a4341769
YQ
81072013-03-25 Yao Qi <yao@codesourcery.com>
8108
8109 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8110 instead of '_mkdir'.
8111
b5981e5a
EZ
81122013-03-23 Eli Zaretskii <eliz@gnu.org>
8113
8114 * windows-nat.c (windows_get_absolute_argv0): New function.
8115 * windows-nat.h: Add its prototype.
8116
8117 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8118 Use IS_DIR_SEPARATOR instead of looking for a character inside
8119 SLASH_STRING. Include filenames.h.
8120 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8121 relocate_gdb_directory works when passed gdb_program_name.
8122 Include windows-nat.h.
8123
598d3636
JK
81242013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8125
8126 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8127 * remote.c (trace_error): Remove the special handling of '2'.
8128 (readchar) <SERIAL_EOF>
8129 (readchar) <SERIAL_ERROR>
8130 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8131 (remote_get_trace_status): Call throw_exception if EX is
8132 TARGET_CLOSE_ERROR.
8133 * utils.c (perror_with_name): Rename to ...
8134 (throw_perror_with_name): ... here. New parameter errcode, describe it
8135 in the function comment.
8136 (perror_with_name): New function wrapper.
8137 * utils.h (enum errors): New stub declaration.
8138 (throw_perror_with_name): New declaration.
8139
82b821e9
PA
81402013-03-22 Pedro Alves <palves@redhat.com>
8141 Yao Qi <yao@codesourcery.com>
8142 Mark Kettenis <kettenis@gnu.org>
8143
8144 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8145 Don't let the user set the value to UINT_MAX directly.
8146 <var_integer>: Don't let the user set the value to INT_MAX
8147 directly.
8148
78a095c3
JK
81492013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8150
8151 * remote.c (remote_unpush_target): New function.
8152 (remote_open_1): Remove two pop_target calls, update one comment, add
8153 comment to target_preopen call. Replace pop_target call by
8154 remote_unpush_target call.
8155 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8156 pop_target calls by remote_unpush_target calls.
8157
3e74e146
PA
81582013-03-22 Pedro Alves <palves@redhat.com>
8159
8160 * linux-nat.c (linux_child_follow_fork): Don't call
8161 linux_enable_event_reporting.
8162 (linux_handle_extended_wait): Don't call
8163 linux_enable_event_reporting.
8164
a2213dca
PA
81652013-03-22 Pedro Alves <palves@redhat.com>
8166
8167 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8168 use it to rewrite the trampoline buffers with type gdb_byte[], and
8169 undefine the macro. Remove char* cast.
8170
bd712aed
DE
81712013-03-21 Doug Evans <dje@google.com>
8172
8173 New commands "mt set per-command {space,time,symtab} {on,off}".
8174 * NEWS: Add entry.
8175 * event-top.c: #include "maint.h".
8176 * main.c: #include "maint.h".
8177 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8178 timeval-utils.h, maint.h, cli/cli-setshow.h.
8179 (per_command_time, per_command_space): New static globals.
8180 (per_command_symtab): New static global.
8181 (per_command_setlist, per_command_showlist): New static globals.
8182 (struct cmd_stats): Move here from utils.c.
8183 (set_per_command_time): Renamed from set_display_time in utils.c
8184 and moved here. All callers updated.
8185 (set_per_command_space): Renamed from set_display_space in utils.c
8186 and moved here. All callers updated.
8187 (count_symtabs_and_blocks): New function.
8188 (report_command_stats): Moved here from utils.c. Add support for
8189 printing symtab stats. Only print data if enabled before command
8190 executed.
8191 (make_command_stats_cleanup): Ditto.
8192 (sert_per_command_cmd, show_per_command_cmd): New functions.
8193 (_initialize_maint_cmds): Add new commands
8194 mt set per-command {space,time,symtab} {on,off}.
8195 * maint.h: New file.
8196 * top.c: #include "maint.h".
8197 * utils.c (reset_prompt_for_continue_wait_time): New function.
8198 (get_prompt_for_continue_wait_time): New function.
8199 * utils.h (reset_prompt_for_continue_wait_time): Declare
8200 (get_prompt_for_continue_wait_time): Declare.
8201 (make_command_stats_cleanup): Moved to maint.h.
8202 (set_display_time, set_display_space): Moved to maint.h and renamed
8203 to set_per_command_time, set_per_command_space.
8204 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8205 parse_binary_operation and made non-static. Don't call error,
8206 just return an error marker. All callers updated.
8207 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8208
d76488d8
TT
82092013-03-21 Tom Tromey <tromey@redhat.com>
8210
8211 * symfile.c (alloc_section_addr_info): Update header. Don't set
8212 'num_sections' field.
8213 (build_section_addr_info_from_section_table): Set 'num_sections'.
8214 (build_section_addr_info_from_bfd): Likewise.
8215 (build_section_addr_info_from_objfile): Remove dead loop
8216 condition.
8217 (free_section_addr_info): Unconditionally call xfree.
8218 (relative_addr_info_to_section_offsets, addrs_section_sort)
8219 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8220 condition.
8221 (syms_from_objfile_1): Remove dead 'if' condition. Check
8222 'num_sections'.
8223 (add_symbol_file_command): Set 'num_sections'.
8224 * symfile-mem.c (symbol_file_add_from_memory): Set
8225 'num_sections'.
8226 * somread.c (som_symfile_offsets): Remove dead loop condition.
8227 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8228 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8229
a72e5169 82302013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8231
8232 * tracepoint.h (decode_agent_options): Add 'trace_string'
8233 argument.
8234 * tracepoint.c (decode_agent_options): Add 'trace_string'
8235 argument.
8236 (validate_actionline): Update.
8237 (collect_symbol): Add 'trace_string' argument.
8238 (struct add_local_symbols_data) <trace_string>: New field.
8239 (do_collect_symbol): Update.
8240 (add_local_symbols): Add 'trace_string' argument.
8241 (encode_actions_1): Update.
8242 (trace_dump_actions): Update.
8243 * dwarf2loc.c (access_memory): Update.
8244 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8245 * ax-general.c (new_agent_expr): Update.
8246 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8247 (gen_trace_for_return_address): Add argument.
8248 (trace_kludge, trace_string_kludge): Remove.
8249 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8250 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8251 (gen_trace_for_var): Add 'trace_string' argument.
8252 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8253 (gen_printf, agent_eval_command_one): Update.
8254
b2f83c08
TT
82552013-03-21 Tom Tromey <tromey@redhat.com>
8256
8257 PR exp/15109:
8258 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8259 Handle FILENAME token.
8260
9507860e
TT
82612013-03-21 Tom Tromey <tromey@redhat.com>
8262
8263 * c-exp.y (YYPRINT): Define.
8264 (c_print_token): New function.
8265
e403aa4b
TT
82662013-03-21 Tom Tromey <tromey@redhat.com>
8267
8268 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8269
af307d6a
YQ
82702013-03-21 Yao Qi <yao@codesourcery.com>
8271
8272 * ctf.c: Include "gdb_stat.h".
8273 [USE_WIN32API]: New macro 'mkdir'.
8274 (ctf_start): Use permission bits macros if they are defined.
8275
fb81d016
KS
82762013-03-20 Keith Seitz <keiths@redhat.com>
8277
8278 * breakpoint.h (struct breakpoint): Add comment to
8279 extra_string indicating that this member is mallod'd.
8280 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8281
ef0026f0
PA
82822013-03-20 Pedro Alves <palves@redhat.com>
8283
8284 PR gdb/15289
8285
8286 * cli/cli-setshow.c (do_set_command)
8287 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8288 the result of parsing the command argument. Throw error if the
8289 value is greater than UINT_MAX. Print the invalid value with
8290 plongest.
8291 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8292 result of parsing the command argument. Throw error if the value
8293 is greater than INT_MAX, not greater or equal. Also throw error
8294 if the value is less than INT_MIN. Print the invalid value with
8295 plongest.
8296 <var_zuinteger_unlimited>: Throw error if the value is greater
8297 than INT_MAX, not greater or equal.
8298 (do_show_command) <var_integer, var_zinteger,
8299 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8300
24d6c2a0
TT
83012013-03-20 Tom Tromey <tromey@redhat.com>
8302
8303 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8304 if possible.
8305 * dwarf2read.c (read_func_scope): Remove old FIXME.
8306 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8307 not LOC_COMPUTED.
8308 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8309 Unconditionally call via computed ops, if possible.
8310 * printcmd.c (address_info): Unconditionally call via computed ops,
8311 if possible.
8312 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8313 if possible.
8314 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8315 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8316 if possible.
8317
f1e6e072
TT
83182013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8319 Tom Tromey <tromey@redhat.com>
8320
8321 PR symtab/8421:
8322 * coffread.c (coff_register_index): New global.
8323 (process_coff_symbol, coff_read_enum_type): Set
8324 SYMBOL_ACLASS_INDEX.
8325 (_initialize_coffread): Initialize new global.
8326 * dwarf2loc.c (locexpr_find_frame_base_location)
8327 (dwarf2_block_frame_base_locexpr_funcs)
8328 (loclist_find_frame_base_location)
8329 (dwarf2_block_frame_base_loclist_funcs): New.
8330 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8331 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8332 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8333 (dwarf2_block_frame_base_loclist_funcs): New.
8334 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8335 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8336 globals.
8337 (read_func_scope): Update.
8338 (fixup_go_packaging, mark_common_block_symbol_computed)
8339 (var_decode_location, new_symbol_full, dwarf2_const_value):
8340 Set SYMBOL_ACLASS_INDEX.
8341 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8342 (_initialize_dwarf2_read): Initialize new globals.
8343 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8344 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8345 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8346 globals.
8347 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8348 (_initialize_mdebugread): Initialize new globals.
8349 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8350 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8351 (stab_register_index, stab_regparm_index): New globals.
8352 (define_symbol, read_enum_type, common_block_end): Set
8353 SYMBOL_ACLASS_INDEX.
8354 (_initialize_stabsread): Initialize new globals.
8355 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8356 globals.
8357 (MAX_SYMBOL_IMPLS): New define.
8358 (register_symbol_computed_impl, register_symbol_block_impl)
8359 (register_symbol_register_impl)
8360 (initialize_ordinary_address_classes): New functions.
8361 (_initialize_symtab): Call initialize_ordinary_address_classes.
8362 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8363 (struct symbol_impl): New.
8364 (SYMBOL_ACLASS_BITS): New define.
8365 (struct symbol) <aclass, ops>: Remove fields.
8366 <aclass_index>: New field.
8367 (symbol_impls): Declare.
8368 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8369 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8370 (register_symbol_computed_impl, register_symbol_block_impl)
8371 (register_symbol_register_impl): Declare.
8372 (struct symbol_computed_ops): Add location_has_loclist.
8373 (struct symbol_block_ops): New.
8374 (SYMBOL_BLOCK_OPS): New.
8375 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8376
dbccfd4c
TT
83772013-03-20 Tom Tromey <tromey@redhat.com>
8378
8379 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8380 (print_partial_symbols, recursively_search_psymtabs): Use
8381 PSYMBOL_CLASS.
8382
e3f1ad4f
PM
83832013-03-20 Pierre Muller <muller@sourceware.org>
8384
8385 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8386 addtion, subtraction, multiplication and division binary operator.
8387
460014f5
JK
83882013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8389
8390 Code cleanup.
8391 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8392 * bsd-kvm.c (bsd_kvm_close): Likewise.
8393 * bsd-uthread.c (bsd_uthread_close): Likewise.
8394 * corelow.c (core_close): Likewise.
8395 (core_close_cleanup): Remove parameter quitting from a caller.
8396 * event-top.c (async_disconnect): Likewise.
8397 * exec.c (exec_close_1): Remove parameter quitting.
8398 * go32-nat.c (go32_close): Likewise.
8399 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8400 parameter quitting from a caller.
8401 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8402 variable.
8403 (mips_linux_close): Remove parameter quitting. Remove parameter
8404 quitting from a caller.
8405 * monitor.c (monitor_close): Remove parameter quitting.
8406 * monitor.h (monitor_close): Likewise.
8407 * record-btrace.c (record_btrace_close): Likewise.
8408 * record-full.c (record_full_close): Likewise.
8409 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8410 it also from fprintf_unfiltered.
8411 * remote-mips.c (mips_close): Remove parameter quitting.
8412 (mips_detach): Remove parameter quitting from a caller.
8413 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8414 (gdbsim_close): Remove duplicate function comment. Remove parameter
8415 quitting and remove it also from printf_filtered.
8416 * remote.c (remote_close): Remove parameter quitting.
8417 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8418 * target.c (update_current_target): Remove parameter int from to_close
8419 de_fault.
8420 (push_target, unpush_target, pop_target): Remove parameter quitting from
8421 a caller.
8422 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8423 Remove parameter quitting from a caller.
8424 (target_preopen): Remove parameter quitting from a caller.
8425 (target_close): Remove parameter quitting. Remove parameter quitting
8426 from a caller two times. Remove parameter quitting also from
8427 fprintf_unfiltered.
8428 * target.h (struct target_ops): Remove parameter quitting and as int
8429 from fields to_xclose and to_close.
8430 (extern struct target_ops current_target):
8431 (target_close, pop_all_targets): Remove parameter quitting. Update the
8432 comment.
8433 (pop_all_targets_above): Remove parameter quitting.
8434 * top.c (quit_target): Remove parameter quitting from a caller.
8435 * tracepoint.c (tfile_close): Remove parameter quitting.
8436 * windows-nat.c (windows_close): Remove parameter quitting.
8437
35a7120b
CV
84382013-03-20 Corinna Vinschen <vinschen@redhat.com>
8439
8440 * windows-nat.c (handle_output_debug_string): Replace call
8441 to string_to_core_addr with call to strtoull.
8442
8249a5a9
YQ
84432013-03-20 Yao Qi <yao@codesourcery.com>
8444
8445 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8446 and write it to CTF metadata.
8447
2c15ef43
CV
84482013-03-19 Corinna Vinschen <vinschen@redhat.com>
8449
8450 * windows-nat.c (handle_output_debug_string): Change type of n to
8451 SIZE_T to avoid crash on 64 bit systems.
8452
1cdd3232
EZ
84532013-03-17 Eli Zaretskii <eliz@gnu.org>
8454
8455 * python/python-internal.h (HAVE_SNPRINTF)
8456 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8457 about redefinition of snprintf by pyerrors.h.
8458
3cb2ab1a
SE
84592013-03-15 Steve Ellcey <sellcey@mips.com>
8460
8461 * remote-sim.c (sim_command_completer): Make char arguments const.
8462
9ce98649
TT
84632013-03-15 Tom Tromey <tromey@redhat.com>
8464
8465 PR c++/15116:
8466 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8467
dccee2de
TT
84682013-03-14 Tom Tromey <tromey@redhat.com>
8469
8470 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8471 New fields.
8472 (get_file_crc): Move from symfile.c.
8473 (gdb_bfd_crc): New function.
8474 * gdb_bfd.h (gdb_bfd_crc): Declare.
8475 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8476 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8477 (separate_debug_file_exists): Use gdb_bfd_crc.
8478
cc0ea93c
TT
84792013-03-14 Tom Tromey <tromey@redhat.com>
8480
8481 * symfile.c (get_debug_link_info): Remove.
8482 (find_separate_debug_file_by_debuglink): Use
8483 bfd_get_debug_link_info.
8484
08c23b0d
TT
84852013-03-14 Tom Tromey <tromey@redhat.com>
8486
8487 * symtab.c (error_in_psymtab_expansion): New function.
8488 (lookup_symbol_aux_quick)
8489 (basic_lookup_transparent_type_quick): Remove "last resort"
8490 code. Use error_in_psymtab_expansion.
8491
288e77a7
JK
84922013-03-14 Doug Evans <dje@google.com>
8493 Jan Kratochvil <jan.kratochvil@redhat.com>
8494
8495 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8496 any successful compare_filenames_for_search or FILENAME_CMP.
8497 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8498 * symtab.c (iterate_over_some_symtabs): Likewise.
8499
8f1b8b82
JK
85002013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8501
8502 * source.c (print_source_lines_base): Make a local copy of
8503 symtab_to_fullname.
8504
23eb71e4
JK
85052013-03-14 Hui Zhu <hui_zhu@mentor.com>
8506 Jan Kratochvil <jan.kratochvil@redhat.com>
8507
8508 * source.c (print_source_lines_base): Suppress "file" for TUI.
8509
bb869963
SDJ
85102013-03-14 Keith Seitz <keiths@redhat.com>
8511 Alan Matsuoka <alanm@redhat.com>
8512
8513 PR c++/15203
8514 PR c++/15210
8515 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8516 TYPE_CODE_METHOD.
8517 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8518 symbols.
8519
d6682f9e
YQ
85202013-03-14 Yao Qi <yao@codesourcery.com>
8521
8522 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8523 status to tfile if trace is stopped by command 'tstop'.
8524
a22fa6e4
YQ
85252013-03-14 Yao Qi <yao@codesourcery.com>
8526
8527 * tracepoint.c (tfile_write_status): Write trace notes and user
8528 name into tfile if they are not NULL.
8529
d0353e76
YQ
85302013-03-14 Hui Zhu <hui@codesourcery.com>
8531 Yao Qi <yao@codesourcery.com>
8532
8533 * Makefile.in (REMOTE_OBS): Add ctf.o.
8534 (SFILES): Add ctf.c.
8535 (HFILES_NO_SRCDIR): Add ctf.h.
8536 * ctf.c, ctf.h: New files.
8537 * tracepoint.c: Include 'ctf.h'.
8538 (collect_pseudocommand): Remove static.
8539 (trace_save_command): Parse option "-ctf".
8540 Produce different trace file writers per option.
8541 Adjust output message.
8542 (trace_save_tfile, trace_save_ctf): New.
8543 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8544 * mi/mi-main.c: Include 'ctf.h'.
8545 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8546 trace_save_tfile or trace_save_ctf.
8547 * NEWS: Mention these changes.
8548
3f43bc09
YQ
85492013-03-14 Yao Qi <yao@codesourcery.com>
8550
8551 * tracepoint.c (trace_file_writer_xfree): New.
8552 (struct tfile_writer_data): New.
8553 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8554 (tfile_write_header, tfile_write_regblock_type): New.
8555 (tfile_write_status, tfile_write_uploaded_tsv): New.
8556 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8557 (tfile_write_raw_data, (tfile_end): New.
8558 (tfile_write_ops): New global variable.
8559 (TRACE_WRITE_R_BLOCK): New macro.
8560 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8561 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8562 (TRACE_WRITE_V_BLOCK): New macro.
8563 (trace_save): Add extra one parameter WRITER. Make it static.
8564 Use WRITER to writer trace.
8565 (tfile_trace_file_writer_new): New.
8566 (trace_save_command): Caller update.
8567 (trace_save_tfile): Write trace data in TFILE format.
8568 * tracepoint.h (struct trace_frame_write_ops): New.
8569 (struct trace_file_write_ops): New.
8570 (struct trace_file_writer): New.
8571 (trace_save): Remove its declaration.
8572 (trace_save_tfile): Declare it.
8573 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8574 instead of trace_save.
8575
58665b40
PA
85762013-03-13 Pedro Alves <palves@redhat.com>
8577
8578 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8579
10217050
PA
85802013-03-13 Pedro Alves <palves@redhat.com>
8581
8582 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8583 commented out code.
8584 * demangle.c (current_demangling_style_string): Make it const.
8585 (set_demangling_command): Assert the demangling style is known.
8586 Remove all handling of unknown styles. Set
8587 'current_demangling_style_string' to an element of the
8588 demangling_style_names array.
8589 (set_demangling_style): Delete.
8590 (_initialize_demangler): Set current_demangling_style_string to the
8591 element of the demangling_style_names array that corresponds to
8592 the default demangling style. Remove FIXME note. Don't call
8593 set_demangling_style.
8594 * gdb-demangle.h (set_demangling_style): Remove declaration.
8595
6f937416
PA
85962013-03-13 Pedro Alves <palves@redhat.com>
8597
8598 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8599 fields const.
8600 (ada_make_symbol_completion_list): Make "text0" parameter const.
8601 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8602 * breakpoint.c (condition_completer): Make "text" and "word"
8603 parameters const. Adjust.
8604 (check_tracepoint_command): Adjust to validate_actionline
8605 prototype change.
8606 (catch_syscall_completer): Make "text" and "word" parameters
8607 const.
8608 * cli/cli-cmds.c (show_user): Make "comname" local const.
8609 (valid_command_p): Make "command" parameter const.
8610 (alias_command): Make "alias_prefix" and "command_prefix" locals
8611 const.
8612 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8613 (add_alias_cmd): Make "name" and "oldname" parameters const.
8614 Adjust. No longer make copy of OLDNAME.
8615 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8616 (add_setshow_cmd_full, add_setshow_enum_cmd)
8617 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8618 (add_setshow_filename_cmd, add_setshow_string_cmd)
8619 (add_setshow_string_noescape_cmd)
8620 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8621 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8622 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8623 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8624 Make "name" parameter const.
8625 (help_cmd): Rename "command" parameter to "arg". New const local
8626 "command".
8627 (find_cmd): Make "command" parameter const.
8628 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8629 deprecated_cmd_warning prototype change.
8630 (undef_cmd_error): Make "cmdtype" parameter const.
8631 (lookup_cmd): Make "line" parameter const.
8632 (deprecated_cmd_warning): Change type of "text" parameter to
8633 pointer to const char, from pointer to pointer to char. Adjust.
8634 (lookup_cmd_composition): Make "text" parameter const.
8635 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8636 parameters const.
8637 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8638 const.
8639 * cli/cli-script.c (validate_comname): Make "tem" local const.
8640 (define_command): New const local "tem_c". Use it in calls to
8641 lookup_cmd.
8642 (document_command): Make "tem" and "comfull" locals const.
8643 (show_user_1): Make "prefix" and "name" parameters const.
8644 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8645 const.
8646 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8647 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8648 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8649 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8650 (complete_on_enum, add_setshow_enum_cmd)
8651 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8652 (add_setshow_filename_cmd, add_setshow_string_cmd)
8653 (add_setshow_string_noescape_cmd)
8654 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8655 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8656 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8657 Change prototypes, constifying strings.
8658 * completer.c (noop_completer, filename_completer): Make "text"
8659 and "prefix" parameters const.
8660 (location_completer, expression_completer)
8661 (complete_line_internal): Make "text" and "prefix" parameters
8662 const and adjust.
8663 (command_completer, signal_completer): Make "text" and "prefix"
8664 parameters const.
8665 * completer.h (noop_completer, filename_completer)
8666 (expression_completer, location_completer, command_completer)
8667 (signal_completer): Change prototypes.
8668 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8669 parameters const.
8670 * cp-abi.c (cp_abi_completer): Likewise.
8671 * expression.h (parse_expression_for_completion): Change
8672 prototype.
8673 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8674 parameters const.
8675 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8676 * infrun.c (handle_completer): Make "text" and "word" parameters
8677 const.
8678 * interps.c (interpreter_completer): Make "text" and "word"
8679 parameters const.
8680 * language.h (struct language_defn)
8681 <la_make_symbol_completion_list>: Make "text" and "word"
8682 parameters const.
8683 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8684 (parse_exp_in_context): Rename to ...
8685 (parse_exp_in_context_1): ... this.
8686 (parse_exp_in_context): Reimplement, with const hack from
8687 parse_exp_1.
8688 (parse_expression_for_completion): Make "string" parameter const.
8689 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8690 to pointer to const char. Adjust.
8691 (print_command_1): Make "exp" parameter const.
8692 (output_command): Rename to ...
8693 (output_command_const): ... this. Make "exp" parameter const.
8694 (output_command): Reimplement.
8695 (x_command): Adjust.
8696 (display_command): Rename "exp" parameter to "arg". New "exp"
8697 local, const version of "arg".
8698 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8699 "cmd_name" local const.
8700 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8701 call.
8702 (cmdpy_completer): Make "text" and "word" parameters const.
8703 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8704 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8705 const.
8706 * remote.c (_initialize_remote): Make "cmd_name" local const.
8707 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8708 parameters const. Adjust.
8709 (completion_list_add_fields): Make "sym_text", "text" and "word"
8710 parameters const.
8711 (struct add_name_data) <sym_text, text, word>: Make fields const.
8712 (default_make_symbol_completion_list_break_on): Make "text" and
8713 "word" parameters const. Adjust locals.
8714 (default_make_symbol_completion_list)
8715 (make_symbol_completion_list, make_symbol_completion_type)
8716 (make_symbol_completion_list_fn): Make "text" and "word"
8717 parameters const.
8718 (make_file_symbol_completion_list): Make "text", "word" and
8719 "srcfile" parameters const. Adjust locals.
8720 (add_filename_to_list): Make "text" and "word" parameters const.
8721 (struct add_partial_filename_data) <text, word>: Make fields
8722 const.
8723 (make_source_files_completion_list): Make "text" and "word"
8724 parameters const.
8725 * symtab.h (default_make_symbol_completion_list_break_on)
8726 (default_make_symbol_completion_list, make_symbol_completion_list)
8727 (make_symbol_completion_type enum type_code)
8728 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8729 (make_source_files_completion_list): Change prototype.
8730 * top.c (execute_command): Adjust to pass pointer to pointer to
8731 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8732 change.
8733 (set_verbose): Make "cmdname" local const.
8734 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8735 and adjust.
8736 (validate_actionline): Make "line" parameter a pointer to const
8737 char, and adjust.
8738 (encode_actions_1): Make "action_exp" local const, and adjust.
8739 (encode_actions): Adjust.
8740 (replace_comma): Delete.
8741 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8742 const, and adjust. Don't frob the action string while splitting
8743 it at commas. Instead, make a copy of each split substring in
8744 turn.
8745 (trace_dump_command): Adjust to validate_actionline prototype
8746 change.
8747 * tracepoint.h (decode_agent_options, decode_agent_options)
8748 (encode_actions, validate_actionline): Change prototypes.
8749 * valprint.h (output_command): Delete declaration.
8750 (output_command_const): Declare.
8751 * value.c (function_destroyer): Cast const away in xfree call.
8752
a0bcdaa7
PA
87532013-03-13 Pedro Alves <palves@redhat.com>
8754
8755 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8756 rather than casting 'const char * const *' to 'const char **'.
8757 * ada-lex.l (processInt): Make "trailer" local const. Remove
8758 'const char **' cast.
8759 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8760 locals, and use those as strtol output pointer, instead than doing
8761 invalid casts to from 'const char **' to 'char **'.
8762 (_initialize_demangle): Remove cast.
8763 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8764 locals, and use those as strtol output pointer, instead than doing
8765 invalid casts to from 'const char **' to 'char **'.
8766 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8767 casts.
8768 * stap-probe.c (stap_parse_register_operand)
8769 (stap_parse_single_operand): Likewise.
8770
8ddb1965
YQ
87712013-03-13 Yao Qi <yao@codesourcery.com>
8772
8773 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8774 the last matched 'V' blcok in trace frame.
8775
2d450646
JB
87762013-03-12 Joel Brobecker <brobecker@adacore.com>
8777
8778 * NEWS: Create a new section for the next release branch.
8779 Rename the section of the current branch, now that it has
8780 been cut.
8781
b4b79973 87822013-03-12 Joel Brobecker <brobecker@adacore.com>
8783
8784 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8785 * version.in: Bump version to 7.6.50.20130312-cvs.
8786
ee047554
KS
87872013-03-12 Keith Seitz <keiths@redhat.com>
8788
8789 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8790 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8791 Remove temporary copy of input string.
8792 (mi_execute_command_wrapper): Make "cmd" const.
8793 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8794 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8795 Use const strings.
8796 (mi_parse): Make "cmd" const.
8797 Use const strings.
8798 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8799
bbc13ae3
KS
88002013-03-12 Keith Seitz <keiths@redhat.com>
8801
8802 * ada-lang.c (ada_read_renaming_var_value): Pass const
8803 pointer to expression string to parse_exp_1.
8804 (create_excep_cond_exprs): Likewise.
8805 * ax-gdb.c (agent_eval_command_one): Likewise.
8806 (maint_agent_printf_command): Likewise.
8807 Constify much of the string handling/parsing.
8808 * breakpoint.c (set_breakpoint_condition): Pass const
8809 pointer to expression string to parse_exp_1.
8810 (update_watchpoint): Likewise.
8811 (parse_cmd_to_aexpr): Constify string handling.
8812 Pass const pointer to parse_exp_1.
8813 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8814 (find_condition_and_thread): Likewise.
8815 Make TOK const.
8816 (watch_command_1): Make "arg" const.
8817 Constify string handling.
8818 Copy the expression string instead of changing the input
8819 string.
8820 (update_breakpoint_location): Pass const pointer to
8821 parse_exp_1.
8822 * eval.c (parse_and_eval_address): Make "exp" const.
8823 (parse_to_comma_and_eval): Make "expp" const.
8824 (parse_and_eval): Make "exp" const.
8825 * expression.h (parse_expression): Make argument const.
8826 (parse_exp_1): Make first argument const.
8827 * findcmd.c (parse_find_args): Treat "args" as const.
8828 * linespec.c (parse_linespec): Pass const pointer to
8829 linespec_expression_to_pc.
8830 (linespec_expression_to_pc): Make "exp_ptr" const.
8831 * parse.c (parse_exp_1): Make "stringptr" const.
8832 Make a copy of the expression to pass to parse_exp_in_context until
8833 this whole interface can be constified.
8834 (parse_expression): Make "string" const.
8835 * printcmd.c (ui_printf): Treat "arg" as const.
8836 Handle const strings.
8837 * tracepoint.c (validate_actionline): Pass const pointer to
8838 all calls to parse_exp_1.
8839 (encode_actions_1): Likewise.
8840 * value.h (parse_to_comma_and_eval): Make argument const.
8841 (parse_and_eval_address): Likewise.
8842 (parse_and_eval): Likewise.
8843 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8844 (varobj_set_value): Likewise.
8845 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8846 constify string handling.
8847 Pass const pointers to parse_and_eval_address and
8848 parse_to_comman_and_eval.
8849 * cli/cli-utils.c (skip_to_space): Rename to ...
8850 (skip_to_space_const): ... this. Handle const strings.
8851 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8852 skip_to_space_const.
8853 (skip_to_space_const): Declare.
8854 * common/format.c (parse_format_string): Make "arg" const.
8855 Handle const strings.
8856 * common/format.h (parse_format_string): Make "arg" const.
8857 * gdbserver/ax.c (ax_printf): Make "format" const.
8858 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8859 of the expression string.
8860
f3cec7e6
HZ
88612013-03-12 Hui Zhu <hui@codesourcery.com>
8862
8863 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8864
9df7235c
HZ
88652013-03-12 Yao Qi <yao@codesourcery.com>
8866 Hui Zhu <hui@codesourcery.com>
8867
8868 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8869 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8870 DW_OP_deref_size.
8871
82d049ab
PH
88722013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8873
5f8e0b8f
MF
8874 * ada-lex.l (rules): Only recognize 'thread' as a
8875 delimiter when followed by numerals, as for c-exp.y.
8876 Use new rewind_to_char function to rewind the input for
8877 expression-delimiting tokens.
8878 (rewind_to_char): New function.
82d049ab 8879
8c1fb155
JK
88802013-03-11 Pedro Alves <palves@redhat.com>
8881 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 * configure: Regenerate.
8884 * configure.ac (check dynamic export flag): Link python test with
8885 $PYTHON_LIBS.
8886
cc81e1c6
DE
88872013-03-11 Doug Evans <dje@google.com>
8888 Keith Seitz <keiths@redhat.com>
8889
8890 * linespec.c (find_linespec_symbols): Call find_function_symbols
8891 first, and then call lookup_prefix_sym/find_method.
8892
39086a0e
PA
88932013-03-11 Pedro Alves <palves@redhat.com>
8894
8895 * charset.c (convert_between_encodings): Don't cast between
8896 different pointer to pointer types. Instead, make the 'inp' local
8897 be of the type iconv expects.
8898 (wchar_iterate): Don't cast between different pointer to pointer
8899 types. Instead, use new pointer local of the type iconv expects.
8900 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8901 Add new local of type char pointer, and use it to get a
8902 char/string view of the byte buffer, instead of casting between
8903 pointer to pointer types.
8904
90585175
HAQ
89052013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8906
8907 * remote.c (remote_set_trace_buffer_size): Move != operator
8908 to the start of next line to fix an ARI warning.
8909
59ea5688
MM
89102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8911
8912 * NEWS: Add record changes.
8913
946287b7
MM
89142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8915
8916 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8917 the instruction history disassembly.
8918 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8919 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8920
afedecd3
MM
89212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8922
8923 * Makefile.in (SFILES): Add record-btrace.c
8924 (COMMON_OBS): Add record-btrace.o
8925 * record-btrace.c: New.
8926 * objfiles.c: Include btrace.h.
8927 (free_objfile): call btrace_free_objfile.
8928
15984c13
MM
89292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8930
8931 * target.c (target_call_history, target_call_history_from,
8932 target_call_history_range): New.
8933 * target.h (target_ops) <to_call_history, to_call_history_from,
8934 to_call_history_range>: New fields.
8935 (target_call_history, target_call_history_from,
8936 target_call_history_range): New declaration.
8937 * record.c (get_call_history_modifiers, cmd_record_call_history,
8938 record_call_history_size): New.
8939 (_initialize_record): Add the "record function-call-history" command.
8940 Add "set/show record function-call-history-size" commands.
8941 * record.h (record_print_flag): New.
8942
67c86d06
MM
89432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8944
8945 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8946 to_insn_history_range>: New fields.
8947 (target_insn_history): New.
8948 (target_insn_history_from): New.
8949 (target_insn_history_range): New.
8950 * target.c (target_insn_history): New.
8951 (target_insn_history_from): New.
8952 (target_insn_history_range): New.
8953 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8954 (record_insn_history_size): New.
8955 (get_insn_number): New.
8956 (get_context_size): New.
8957 (no_chunk): New.
8958 (get_insn_history_modifiers): New.
8959 (cmd_record_insn_history): New.
8960 (_initialize_record): Add "set/show record instruction-history-size"
8961 command. Add "record instruction-history" command.
8962
7c1687a9
MM
89632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8964
8965 * record.h (record_disconnect): New.
8966 (record_detach): New.
8967 (record_mourn_inferior): New.
8968 (record_kill): New.
8969 * record-full.c (record_disconnect, record_detach,
8970 record_mourn_inferior, record_kill): Move to...
8971 * record.c: ...here.
8972 (DEBUG): New.
8973 (record_stop): New.
8974 (record_unpush): New.
8975 (cmd_record_stop): Call record_stop. Replace unpush_target
8976 call with record_unpush call.
8977 (record_disconnect, record_detach): Assert that the target
8978 is of record stratum. Call record_unpush, record_stop, and
8979 DEBUG.
8980 (record_mourn_inferior, record_kill): Assert that the target
8981 is of record stratum. Call record_unpush and DEBUG.
8982
25ea693b
MM
89832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8984
8985 * record-full.h, record-full.c (record_memory_query): Rename
8986 to ...
8987 (record_full_memory_query): ...this. Update all users.
8988 (record_arch_list_add_reg): Rename to ...
8989 (record_full_arch_list_add_reg): ...this. Update all users.
8990 (record_arch_list_add_mem): Rename to ...
8991 (record_full_arch_list_add_mem): ...this. Update all users.
8992 (record_arch_list_add_end): Rename to ...
8993 (record_full_arch_list_add_end): ...this. Update all users.
8994 (record_gdb_operation_disable_set): Rename to ...
8995 (record_full_gdb_operation_disable_set): ...this.
8996 Update all users.
8997
88d1aa9d
MM
89982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8999
9000 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9001 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9002 (RECORD_IS_REPLAY): Renamed to ...
9003 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9004 (RECORD_FILE_MAGIC): Renamed to ...
9005 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9006 (record_mem_entry): Renamed to ...
9007 (record_full_mem_entry): ... this. Updated all users.
9008 (record_reg_entry): Renamed to ...
9009 (record_full_reg_entry): ... this. Updated all users.
9010 (record_end_entry): Renamed to ...
9011 (record_full_end_entry): ... this. Updated all users.
9012 (record_type) <record_end, record_reg, record_mem>: Renamed
9013 to ...
9014 (record_full_type) <record_full_end, record_full_reg,
9015 record_full_mem>: ... this. Updated all users.
9016 (record_entry): Renamed to ...
9017 (record_full_entry): ... this. Updated all users.
9018 (record_core_buf_entry): Renamed to ...
9019 (record_full_core_buf_entry): ... this. Updated all users.
9020 (record_core_regbuf): Renamed to ...
9021 (record_full_core_regbuf): ... this. Updated all users.
9022 (record_core_start): Renamed to ...
9023 (record_full_core_start): ... this. Updated all users.
9024 (record_core_end): Renamed to ...
9025 (record_full_core_end): ... this. Updated all users.
9026 (record_core_buf_list): Renamed to ...
9027 (record_full_core_buf_list): ... this. Updated all users.
9028 (record_first): Renamed to ...
9029 (record_full_first): ... this. Updated all users.
9030 (record_list): Renamed to ...
9031 (record_full_list): ... this. Updated all users.
9032 (record_arch_list_head): Renamed to ...
9033 (record_full_arch_list_head): ... this. Updated all users.
9034 (record_arch_list_tail): Renamed to ...
9035 (record_full_arch_list_tail): ... this. Updated all users.
9036 (record_stop_at_limit): Renamed to ...
9037 (record_full_stop_at_limit): ... this. Updated all users.
9038 (record_insn_max_num): Renamed to ...
9039 (record_full_insn_max_num): ... this. Updated all users.
9040 (record_insn_num): Renamed to ...
9041 (record_full_insn_num): ... this. Updated all users.
9042 (record_insn_count): Renamed to ...
9043 (record_full_insn_count): ... this. Updated all users.
9044 (record_ops): Renamed to ...
9045 (record_full_ops): ... this. Updated all users.
9046 (record_core_ops): Renamed to ...
9047 (record_full_core_ops): ... this. Updated all users.
9048 (set_record_cmdlist): Renamed to ...
9049 (set_record_full_cmdlist): ... this. Updated all users.
9050 (show_record_cmdlist): Renamed to ...
9051 (show_record_full_cmdlist): ... this. Updated all users.
9052 (record_cmdlist): Renamed to ...
9053 (record_full_cmdlist): ... this. Updated all users.
9054 (record_beneath_to_resume_ops): Renamed to ...
9055 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9056 (record_beneath_to_resume): Renamed to ...
9057 (record_full_beneath_to_resume): ... this. Updated all users.
9058 (record_beneath_to_wait_ops): Renamed to ...
9059 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9060 (record_beneath_to_wait): Renamed to ...
9061 (record_full_beneath_to_wait): ... this. Updated all users.
9062 (record_beneath_to_store_registers_ops): Renamed to ...
9063 (record_full_beneath_to_store_registers_ops): ... this.
9064 Updated all users.
9065 (record_beneath_to_store_registers): Renamed to ...
9066 (record_full_beneath_to_store_registers): ... this.
9067 Updated all users.
9068 (record_beneath_to_xfer_partial_ops): Renamed to ...
9069 (record_full_beneath_to_xfer_partial_ops): ... this.
9070 Updated all users.
9071 (record_beneath_to_xfer_partial): Renamed to ...
9072 (record_full_beneath_to_xfer_partial): ... this.
9073 Updated all users.
9074 (record_beneath_to_insert_breakpoint): Renamed to ...
9075 (record_full_beneath_to_insert_breakpoint): ... this.
9076 Updated all users.
9077 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9078 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9079 Updated all users.
9080 (record_beneath_to_stopped_data_address): Renamed to ...
9081 (record_full_beneath_to_stopped_data_address): ... this.
9082 Updated all users.
9083 (record_beneath_to_async): Renamed to ...
9084 (record_full_beneath_to_async): ... this. Updated all users.
9085 (record_goto_insn): Renamed to ...
9086 (record_full_goto_insn): ... this. Updated all users.
9087 (record_save): Renamed to ...
9088 (record_full_save): ... this. Updated all users.
9089 (record_reg_alloc): Renamed to ...
9090 (record_full_reg_alloc): ... this. Updated all users.
9091 (record_reg_release): Renamed to ...
9092 (record_full_reg_release): ... this. Updated all users.
9093 (record_mem_alloc): Renamed to ...
9094 (record_full_mem_alloc): ... this. Updated all users.
9095 (record_mem_release): Renamed to ...
9096 (record_full_mem_release): ... this. Updated all users.
9097 (record_end_alloc): Renamed to ...
9098 (record_full_end_alloc): ... this. Updated all users.
9099 (record_end_release): Renamed to ...
9100 (record_full_end_release): ... this. Updated all users.
9101 (record_entry_release): Renamed to ...
9102 (record_full_entry_release): ... this. Updated all users.
9103 (record_list_release): Renamed to ...
9104 (record_full_list_release): ... this. Updated all users.
9105 (record_list_release_following): Renamed to ...
9106 (record_full_list_release_following): ... this.
9107 Updated all users.
9108 (record_list_release_first): Renamed to ...
9109 (record_full_list_release_first): ... this. Updated all users.
9110 (record_arch_list_add): Renamed to ...
9111 (record_full_arch_list_add): ... this. Updated all users.
9112 (record_get_loc): Renamed to ...
9113 (record_full_get_loc): ... this. Updated all users.
9114 (record_check_insn_num): Renamed to ...
9115 (record_full_check_insn_num): ... this. Updated all users.
9116 (record_arch_list_cleanups): Renamed to ...
9117 (record_full_arch_list_cleanups): ... this. Updated all users.
9118 (record_message): Renamed to ...
9119 (record_full_message): ... this. Updated all users.
9120 (record_message_wrapper): Renamed to ...
9121 (record_full_message_wrapper): ... this. Updated all users.
9122 (record_message_wrapper_safe): Renamed to ...
9123 (record_full_message_wrapper_safe): ... this. Updated all users.
9124 (record_gdb_operation_disable): Renamed to ...
9125 (record_full_gdb_operation_disable): ... this. Updated all users.
9126 (record_hw_watchpoint): Renamed to ...
9127 (record_full_hw_watchpoint): ... this. Updated all users.
9128 (record_exec_insn): Renamed to ...
9129 (record_full_exec_insn): ... this. Updated all users.
9130 (record_restore): Renamed to ...
9131 (record_full_restore): ... this. Updated all users.
9132 (record_async_inferior_event_token): Renamed to ...
9133 (record_full_async_inferior_event_token): ... this.
9134 Updated all users.
9135 (record_async_inferior_event_handler): Renamed to ...
9136 (record_full_async_inferior_event_handler): ... this.
9137 Updated all users.
9138 (record_core_open_1): Renamed to ...
9139 (record_full_core_open_1): ... this. Updated all users.
9140 (record_open_1): Renamed to ...
9141 (record_full_open_1): ... this. Updated all users.
9142 (record_open): Renamed to ...
9143 (record_full_open): ... this. Updated all users.
9144 (record_close): Renamed to ...
9145 (record_full_close): ... this. Updated all users.
9146 (record_resume_step): Renamed to ...
9147 (record_full_resume_step): ... this. Updated all users.
9148 (record_resumed): Renamed to ...
9149 (record_full_resumed): ... this. Updated all users.
9150 (record_execution_dir): Renamed to ...
9151 (record_full_execution_dir): ... this. Updated all users.
9152 (record_resume): Renamed to ...
9153 (record_full_resume): ... this. Updated all users.
9154 (record_get_sig): Renamed to ...
9155 (record_full_get_sig): ... this. Updated all users.
9156 (record_sig_handler): Renamed to ...
9157 (record_full_sig_handler): ... this. Updated all users.
9158 (record_wait_cleanups): Renamed to ...
9159 (record_full_wait_cleanups): ... this. Updated all users.
9160 (record_wait_1): Renamed to ...
9161 (record_full_wait_1): ... this. Updated all users.
9162 (record_wait): Renamed to ...
9163 (record_full_wait): ... this. Updated all users.
9164 (record_stopped_by_watchpoint): Renamed to ...
9165 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9166 (record_disconnect): Renamed to ...
9167 (record_full_disconnect): ... this. Updated all users.
9168 (record_detach): Renamed to ...
9169 (record_full_detach): ... this. Updated all users.
9170 (record_mourn_inferior): Renamed to ...
9171 (record_full_mourn_inferior): ... this. Updated all users.
9172 (record_kill): Renamed to ...
9173 (record_full_kill): ... this. Updated all users.
9174 (record_stopped_data_address): Renamed to ...
9175 (record_full_stopped_data_address): ... this. Updated all users.
9176 (record_registers_change): Renamed to ...
9177 (record_full_registers_change): ... this. Updated all users.
9178 (record_store_registers): Renamed to ...
9179 (record_full_store_registers): ... this. Updated all users.
9180 (record_xfer_partial): Renamed to ...
9181 (record_full_xfer_partial): ... this. Updated all users.
9182 (record_breakpoint): Renamed to ...
9183 (record_full_breakpoint): ... this. Updated all users.
9184 (record_breakpoint_p): Renamed to ...
9185 (record_full_breakpoint_p): ... this. Updated all users.
9186 (record_breakpoints): Renamed to ...
9187 (record_full_breakpoints): ... this. Updated all users.
9188 (record_sync_record_breakpoints): Renamed to ...
9189 (record_full_sync_record_breakpoints): ... this.
9190 Updated all users.
9191 (record_init_record_breakpoints): Renamed to ...
9192 (record_full_init_record_breakpoints): ... this.
9193 Updated all users.
9194 (record_insert_breakpoint): Renamed to ...
9195 (record_full_insert_breakpoint): ... this. Updated all users.
9196 (record_remove_breakpoint): Renamed to ...
9197 (record_full_remove_breakpoint): ... this. Updated all users.
9198 (record_can_execute_reverse): Renamed to ...
9199 (record_full_can_execute_reverse): ... this. Updated all users.
9200 (record_get_bookmark): Renamed to ...
9201 (record_full_get_bookmark): ... this. Updated all users.
9202 (record_goto_bookmark): Renamed to ...
9203 (record_full_goto_bookmark): ... this. Updated all users.
9204 (record_async): Renamed to ...
9205 (record_full_async): ... this. Updated all users.
9206 (record_can_async_p): Renamed to ...
9207 (record_full_can_async_p): ... this. Updated all users.
9208 (record_is_async_p): Renamed to ...
9209 (record_full_is_async_p): ... this. Updated all users.
9210 (record_execution_direction): Renamed to ...
9211 (record_full_execution_direction): ... this. Updated all users.
9212 (record_info): Renamed to ...
9213 (record_full_info): ... this. Updated all users.
9214 (record_delete): Renamed to ...
9215 (record_full_delete): ... this. Updated all users.
9216 (record_is_replaying): Renamed to ...
9217 (record_full_is_replaying): ... this. Updated all users.
9218 (record_goto_entry): Renamed to ...
9219 (record_full_goto_entry): ... this. Updated all users.
9220 (record_goto_begin): Renamed to ...
9221 (record_full_goto_begin): ... this. Updated all users.
9222 (record_goto_end): Renamed to ...
9223 (record_full_goto_end): ... this. Updated all users.
9224 (record_goto): Renamed to ...
9225 (record_full_goto): ... this. Updated all users.
9226 (init_record_ops): Renamed to ...
9227 (init_record_full_ops): ... this. Updated all users.
9228 (record_core_resume): Renamed to ...
9229 (record_full_core_resume): ... this. Updated all users.
9230 (record_core_kill): Renamed to ...
9231 (record_full_core_kill): ... this. Updated all users.
9232 (record_core_fetch_registers): Renamed to ...
9233 (record_full_core_fetch_registers): ... this. Updated all users.
9234 (record_core_prepare_to_store): Renamed to ...
9235 (record_full_core_prepare_to_store): ... this. Updated all users.
9236 (record_core_store_registers): Renamed to ...
9237 (record_full_core_store_registers): ... this. Updated all users.
9238 (record_core_xfer_partial): Renamed to ...
9239 (record_full_core_xfer_partial): ... this. Updated all users.
9240 (record_core_insert_breakpoint): Renamed to ...
9241 (record_full_core_insert_breakpoint): ... this. Updated all users.
9242 (record_core_remove_breakpoint): Renamed to ...
9243 (record_full_core_remove_breakpoint): ... this. Updated all users.
9244 (record_core_has_execution): Renamed to ...
9245 (record_full_core_has_execution): ... this. Updated all users.
9246 (init_record_core_ops): Renamed to ...
9247 (init_record_full_core_ops): ... this. Updated all users.
9248 (cmd_record_restore): Renamed to ...
9249 (cmd_record_full_restore): ... this. Updated all users.
9250 (record_save_cleanups): Renamed to ...
9251 (record_full_save_cleanups): ... this. Updated all users.
9252 (cmd_record_start): Renamed to ...
9253 (cmd_record_full_start): ... this. Updated all users.
9254 (set_record_insn_max_num): Renamed to ...
9255 (set_record_full_insn_max_num): ... this. Updated all users.
9256 (set_record_command): Renamed to ...
9257 (set_record_full_command): ... this. Updated all users.
9258 (show_record_command): Renamed to ...
9259 (show_record_full_command): ... this. Updated all users.
9260 (_initialize_record): Renamed to ...
9261 (_initialize_record_full): ... this. Updated all users.
9262
d02ed0bb
MM
92632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9264
9265 * record.h: Split into this and ...
9266 * record-full.h: ... this.
9267 * record.c: Split into this and ...
9268 * record-full.c: ... this.
9269 * target.h (target_ops): Add new fields to_info_record,
9270 to_save_record, to_delete_record, to_record_is_replaying,
9271 to_goto_record_begin, to_goto_record_end, to_goto_record.
9272 (target_info_record): New.
9273 (target_save_record): New.
9274 (target_supports_delete_record): New.
9275 (target_delete_record): New.
9276 (target_record_is_replaying): New.
9277 (target_goto_record_begin): New.
9278 (target_goto_record_end): New.
9279 (target_goto_record): New.
9280 * target.c (target_info_record): New.
9281 (target_save_record): New.
9282 (target_supports_delete_record): New.
9283 (target_delete_record): New.
9284 (target_record_is_replaying): New.
9285 (target_goto_record_begin): New.
9286 (target_goto_record_end): New.
9287 (target_goto_record): New.
9288 * record.h: Declare struct cmd_list_element.
9289 (record_cmdlist): New declaration.
9290 (set_record_cmdlist): New declaration.
9291 (show_record_cmdlist): New declaration.
9292 (info_record_cmdlist): New declaration.
9293 (cmd_record_goto): New declaration.
9294 * record.c: Remove unnecessary includes.
9295 Include inferior.h.
9296 (cmd_record_goto): Remove declaration.
9297 (record_cmdlist): Now extern. Initialize.
9298 (set_record_cmdlist): Now extern. Initialize.
9299 (show_record_cmdlist): Now extern. Initialize.
9300 (info_record_cmdlist): Now extern. Initialize.
9301 (find_record_target): New.
9302 (require_record_target): New.
9303 (cmd_record_start): Update.
9304 (cmd_record_delete): Remove target-specific code.
9305 Call target_delete_record.
9306 (cmd_record_stop): Unpush any record target.
9307 (set_record_insn_max_num): Move to record-full.c
9308 (set_record_command): Add comment.
9309 (show_record_command): Add comment.
9310 (info_record_command): Update comment.
9311 Remove target-specific code.
9312 Call the record target's to_info_record.
9313 (cmd_record_start): New.
9314 (cmd_record_goto): Now extern.
9315 Remove target-specific code.
9316 Call target_goto_begin, target_goto_end, or target_goto.
9317 (_initialize_record): Move record target ops initialization to
9318 record-full.c.
9319 Change "record" command help text.
9320 Move "record restore", "record set", and "record show" commands to
9321 record-full.c.
9322 * Makefile.in (SFILES): Add record-full.c.
9323 (HFILES_NO_SRCDIR): Add record-full.h.
9324 (COMMON_OBS): Add record-full.o.
9325 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9326 * arm-tdep.c: Include record-full.h.
9327 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9328 * i386-tdep.c: Include record-full.h.
9329 * infrun.c: Include record-full.h.
9330 * linux-record.c: Include record-full.h.
9331 * moxie-tdep.c: Include record-full.h.
9332 * record-full.c: Include record-full.h.
9333 Change module comment.
9334 (set_record_full_cmdlist): New.
9335 (show_record_full_cmdlist): New.
9336 (record_full_cmdlist): New.
9337 (record_goto_insn): New declaration.
9338 (record_save): New declaration.
9339 (record_check_insn_num): Change query string.
9340 (record_info): New.
9341 (record_delete): New.
9342 (record_is_replaying): New.
9343 (record_goto_entry): New.
9344 (record_goto_begin): New.
9345 (record_goto_end): New.
9346 (record_goto): New.
9347 (init_record_ops): Update.
9348 (init_record_core_ops): Update.
9349 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9350 (cmd_record_start): New.
9351 (set_record_insn_max_num): Moved from record.c
9352 (set_record_full_command): New.
9353 (show_record_full_command): New.
9354 (_initialize_record_full): New.
9355
b48d48eb
MM
93562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9357
9358 * target.h (add_deprecated_target_alias): New.
9359 * target.c (add_deprecated_target_alias): New.
9360
a950d57c
MM
93612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9362
9363 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9364 and signal.h.
9365 (linux_supports_btrace): Add kernel and
9366 cpuid check.
9367 (kernel_supports_btrace): New function.
9368 (cpu_supports_btrace): New function.
9369 (intel_supports_btrace): New function.
9370
9accd112
MM
93712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9372
9373 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9374 * remote.c: Include btrace.h.
9375 (struct btrace_target_info): New struct.
9376 (remote_supports_btrace): New function.
9377 (send_Qbtrace): New function.
9378 (remote_enable_btrace): New function.
9379 (remote_disable_btrace): New function.
9380 (remote_teardown_btrace): New function.
9381 (remote_read_btrace): New function.
9382 (init_remote_ops): Add btrace ops.
9383 (enum <unnamed>): Add btrace packets.
9384 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9385 (_initialize_remote): Add packet configuration for branch tracing.
9386
c12a2917
MM
93872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9388
9389 * features/btrace.dtd: New file.
9390 * Makefile.in (XMLFILES): Add btrace.dtd.
9391 * btrace.h (parse_xml_btrace): New declaration.
9392 * btrace.c: Include xml-support.h.
9393 (parse_xml_btrace): New function.
9394 (parse_xml_btrace_block): New function.
9395 (block_attributes): New struct.
9396 (btrace_attributes): New struct.
9397 (btrace_children): New struct.
9398 (btrace_elements): New struct.
9399
3e3aea48
MM
94002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9401
9402 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9403 (amd64_linux_enable_btrace): New.
9404 (amd64_linux_disable_btrace): New.
9405 (amd64_linux_teardown_btrace): New.
9406 (_initialize_amd64_linux_nat): Initialize btrace ops.
9407 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9408 (i386_linux_enable_btrace): New.
9409 (i386_linux_disable_btrace): New.
9410 (i386_linux_teardown_btrace): New.
9411 (_initialize_i386_linux_nat): Initialize btrace ops.
9412 * config/i386/linux.mh: Add linux-btrace.o.
9413 * config/i386/linux64.mh: Add linux-btrace.o.
9414
7c97f91e
MM
94152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9416
9417 * common/linux_btrace.h: New file.
9418 * common/linux_btrace.c: New file.
9419 * Makefile.in (SFILES): Add btrace.c.
9420 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9421 (COMMON_OBS): Add btrace.o.
9422 (linux-btrace.o): New rule.
9423
1999790b 94242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9425
9426 * target.h: Include btrace.h.
9427 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9428 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9429 * target.c (target_supports_btrace): New function.
9430 (target_enable_btrace): New function.
9431 (target_disable_btrace): New function.
9432 (target_teardown_btrace): New function.
9433 (target_read_btrace): New function.
9434 * btrace.h: New file.
9435 * btrace.c: New file.
9436 * Makefile.in: Add btrace.c.
9437 * gdbthread.h: Include btrace.h.
9438 (struct thread_info): Add btrace field.
9439 * thread.c: Include btrace.h.
9440 (clear_thread_inferior_resources): Call target_teardown_btrace.
9441 * common/btrace-common.h: New file.
9442
61a31a67
JK
94432013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9444
9445 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9446 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9447 kill_status to outer block.
9448
05c56a9d
JK
94492013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9450
9451 Fix entry-values if the callee called a noreturn function.
9452 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9453 get_frame_address_in_block. Add new comment.
9454
9112db09
JK
94552013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9456
9457 Fix entry-values in C++ across CUs.
9458 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9459 lookup_minimal_symbol. Add a comment.
9460 * dwarf2read.c
9461 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9462 DW_AT_linkage_name.
9463
9b67fcec
YQ
94642013-03-08 Yao Qi <yao@codesourcery.com>
9465
9466 * tracepoint.c (_initialize_tracepoint): Indent the code.
9467
6221be90
PA
94682013-03-08 Pedro Alves <palves@redhat.com>
9469
9470 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9471 (parse_find_args, find_command): Change type of pattern buffer
9472 locals to 'gdb_byte *'.
9473
be9a119c 94742013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9475 Hafiz Abid Qadeer <abidh@codesourcery.com>
9476
9477 * NEWS: Mention set and show trace-buffer-size commands.
9478 Mention new packet.
9479 * target.h (struct target_ops): New method
9480 to_set_trace_buffer_size.
9481 (target_set_trace_buffer_size): New macro.
9482 * target.c (update_current_target): Set up new method.
9483 * tracepoint.c (trace_buffer_size): New global.
9484 (start_tracing): Send it to the target.
9485 (set_trace_buffer_size): New function.
9486 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9487 * remote.c (remote_set_trace_buffer_size): New function.
9488 (_initialize_remote): Use it.
9489 (QTBuffer:size) New remote command.
9490 (PACKET_QTBuffer_size): New enum.
9491 (remote_protocol_features): Add an entry for
9492 PACKET_QTBuffer_size.
9493
7da3ab79
TT
94942013-03-08 Tom Tromey <tromey@redhat.com>
9495
9496 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9497 variable.
9498
0c1f71e7
PA
94992013-03-07 Pedro Alves <palves@redhat.com>
9500
9501 * target.c (target_read_stralloc, target_fileio_read_alloc):
9502 *Cast pointer to 'gdb_byte *' in target call.
9503
c8af03a2
PA
95042013-03-07 Pedro Alves <palves@redhat.com>
9505
9506 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9507 call.
9508
529480d0
KS
95092013-03-07 Keith Seitz <keiths@redhat.com>
9510
9511 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9512 (trace_pass_command): Likewise.
9513 * cli/cli-cmds.c: Include cli/cli-utils.h.
9514 (source_command): Use skip-spaces.
9515 (disassemble_command): Likewise.
9516 * findcmd.c: Include cli/cli-utils.h.
9517 (parse_find_args): Use skip_spaces.
9518 * go32-nat.c: Include cli/cli-utils.h.
9519 (go32_sldt): Use skip_spaces.
9520 (go32_sgdt): Likewise.
9521 (go32_sidt): Likewise.
9522 (go32_pde): Likewise.
9523 (go32_pte): Likewise.
9524 (go32_pte_for_address): Likewise.
9525 * infcmd.c: Include cli/cli-utils.h.
9526 (registers_info): Use skip_spaces.
9527 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9528 (linux_info_proc): Likewise.
9529 * linux-thread-db.c: Include cli/cli-utils.h.
9530 (info_auto_load_libthread_db): Use skip_spaces_const.
9531 * m32r-rom.c: Include cli/cli-utils.h.
9532 (m32r_upload_command): Use skip_spaces.
9533 * maint.c: Include cli/cli-utils.h.
9534 (maintenance_translate_address): Use skip_spaces.
9535 * mi/mi-parse.c: Include cli/cli-utils.h.
9536 (mi_parse_argv): Use skip_spaces.
9537 (mi_parse): Likewise.
9538 * minsyms.c: Include cli/cli-utils.h.
9539 (msymbol_hash_iw): Use skip_spaces_const.
9540 * objc-lang.c: Include cli/cli-utils.h.
9541 (parse_selector): Use skip_spaces.
9542 (parse_method): Likewise.
9543 * python/python.c: Include cli/cli-utils.h.
9544 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9545 (python_command)[HAVE_PYTHON]: Likewise.
9546 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9547 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9548 (m32r_load): Use skip_spaces.
9549 * serial.c: Include cli/cli-utils.h.
9550 (serial_open): Use skip_spaces_const.
9551 * stack.c: Include cli/cli-utils.h.
9552 (parse_frame_specification_1): Use skip_spaces_const.
9553 * symfile.c: Include cli/cli-utils.h.
9554 (set_ext_lang_command): Use skip_spaces.
9555 * symtab.c: Include cli/cli-utils.h.
9556 (rbreak_command): Use skip_spaces.
9557 * thread.c (thread_name_command): Use skip_spaces.
9558 * tracepoint.c (validate_actionline): Use skip_spaces.
9559 (encode_actions_1): Likewise.
9560 (trace_find_range_command): Likewise.
9561 (trace_find_outside_command): Likewise.
9562 (trace_dump_actions): Likewise.
9563
ac91cd70
PA
95642013-03-07 Pedro Alves <palves@redhat.com>
9565
9566 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9567 * expprint.c (print_subexp_standard): Likewise.
9568 * utils.c (host_char_to_target): Likewise.
9569 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9570 * varobj.c (value_get_print_value): Change type of local to char*.
9571 Cast it gdb_byte * in call to language printer.
9572
2898e560
PA
95732013-03-07 Pedro Alves <palves@redhat.com>
9574
9575 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9576 gdb_byte *'.
9577 (make_wchar_iterator): Remove cast to char*.
9578 (wchar_iterate): Change type of local.
9579
a09b4448
PA
95802013-03-07 Pedro Alves <palves@redhat.com>
9581
9582 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9583 for 'regcache->register_status'.
9584
20ced3e4
PA
95852013-03-07 Pedro Alves <palves@redhat.com>
9586
c2d6a675 9587 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9588 int.
9589
fe106009
PA
95902013-03-07 Pedro Alves <palves@redhat.com>
9591
9592 * stap-probe.c (handle_stap_probe): Add cast to char*.
9593
8ac2c12b
PA
95942013-03-07 Pedro Alves <palves@redhat.com>
9595
9596 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9597 RECORD_MSGRCV>: Pass a signed variable to
9598 regcache_raw_read_signed, instead of an unsigned one.
9599
99f0a309
PA
96002013-03-07 Pedro Alves <palves@redhat.com>
9601
9602 * remote-notif.c (notif_debug): Change type to int.
9603 * remote-notif.h (notif_debug): Likewise.
9604
964b8317
PA
96052013-03-07 Pedro Alves <palves@redhat.com>
9606
9607 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9608
f0cc8ad4
PA
96092013-03-07 Pedro Alves <palves@redhat.com>
9610
9611 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9612 * remote.h (hex2bin, bin2hex): ... here.
9613 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9614
77dec115
EZ
96152013-03-07 Eli Zaretskii <eliz@gnu.org>
9616
9617 * utils.c (initialize_utils): Improve doc strings of "set/show
9618 width", "set/show height", and "set/show pagination".
9619
741d92cf
KS
96202013-03-06 Keith Seitz <keiths@redhat.com>
9621
9622 * ax-gdb.c (gen_printf): Make FORMAT const.
9623 * ax-gdb.h (gen_printf): Likewise.
9624 * ax-general.c (ax_string): Make STR const.
9625 * ax.h (ax_string): Likewise.
9626
7b6c814e
DE
96272013-03-06 Doug Evans <dje@google.com>
9628
9629 * elfread.c (elf_symfile_read): Move debugging printf to more
9630 logical location.
9631
634334ab
PA
96322013-03-06 Pedro Alves <palves@redhat.com>
9633
9634 * python/py-utils.c (target_string_to_unicode): Delete function.
9635 * python/python-internal.h (target_string_to_unicode): Delete
9636 declaration.
9637
e482a1a7
PM
96382013-03-06 Pierre Muller <muller@sourceware.org>
9639
9640 * linespec.c (get_current_search_block): ARI fix, use (void)
9641 for empty parameter list.
9642
4eeaa230
DE
96432013-03-05 Doug Evans <dje@google.com>
9644
9645 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9646 of old ada_lookup_symbol_list. In !full_search case, don't
9647 search superblocks.
9648 (ada_lookup_symbol_list): Delete arg full_search, all callers
9649 updated. Call ada_lookup_symbol_list_worker.
9650 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9651 * ada-lang.h (ada_lookup_symbol_list): Update.
9652 * language.h (language_defn): Update comment for
9653 la_iterate_over_symbols.
9654 * linespec.c (iterate_over_file_blocks): New function.
9655 (iterate_over_all_matching_symtabs): Call it.
9656 (lookup_prefix_sym): Ditto.
9657 (get_current_search_block): New function.
9658 (get_search_block): Delete.
9659 (find_label_symbols): Call get_current_search_block.
9660 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9661 * symtab.c (iterate_over_symbols): Don't search superblocks.
9662
b69b1fb1
YQ
96632013-03-05 Yao Qi <yao@codesourcery.com>
9664
9665 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9666 parameter VAR's type from "unsigned int" to "int".
9667 * command.h (var_zuinteger_unlimited): Update its comments.
9668 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9669
3c095f49
CV
96702013-03-05 Corinna Vinschen <vinschen@redhat.de>
9671
9672 * NEWS: Mention new target x86_64-*-cygwin*.
9673
b5b0b0af
CV
96742013-03-05 Corinna Vinschen <vinschen@redhat.de>
9675
9676 * configure.host: Add x86_64-*-cygwin* as host.
9677 * configure.tgt: Add x86_64-*-cygwin* as target.
9678 * config/i386/cygwin64.mh: New file.
9679
f6f99966
JK
96802013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9681
9682 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9683
33f448b1
JK
96842013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9685
9686 * linespec.c (struct linespec_canonical_name): New.
9687 (struct linespec_state): Change canonical_names type to it.
9688 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9689 xrealloc element size. Initialize the different CANONICAL fields.
9690 (canonical_to_fullform): New.
9691 (filter_results): Use it. Add variables canonical, fullform and
9692 cleanup.
9693 (struct decode_line_2_item, decode_line_2_compare_items): New.
9694 (decode_line_2): Remove variables iter and item_names, add variables
9695 items and items_count. Modify the code for these new variables.
9696
feb14725
CV
96972013-03-04 Corinna Vinschen <vinschen@redhat.com>
9698
9699 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9700 calling do_cleanup.
9701
e83b17ba
HZ
97022013-03-04 Luis Machado <lgustavo@codesourcery.com>
9703
9704 * tracepoint.c (build_traceframe_info): Add code for byte order.
9705
a2d13a0d
KB
97062013-03-02 Kevin Buettner <kevinb@redhat.com>
9707
8dddcae8
KB
9708 * v850-tdep.c: (v850e2_register_name): Revise system register
9709 names to match current V850E2M architecture specifications.
9710 Update register number enum comments too.
f5aee5ee 9711
d79e58d8
JW
97122013-03-01 Jiong Wang <jiwang@tilera.com>
9713 Pedro Alves <palves@redhat.com>
9714
9715 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9716 to END_ADDR.
9717 (tilegx_skip_prologue): Limit prologue analysis to section end.
9718
c4be5165
JK
97192013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9720
9721 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9722 use it.
9723
e362b510
PA
97242013-03-01 Pedro Alves <palves@redhat.com>
9725
9726 Use gdb_byte for bytes from the program being debugged.
9727
9728 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9729 Change type of local 'buf' to gdb_byte.
9730 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9731 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9732 * cris-tdep.c (cris_sigcontext_addr)
9733 (cris_sigtramp_frame_unwind_cache): Likewise.
9734 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9735 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9736 Likewise.
9737 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9738 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9739 (hppa32_hpux_search_dummy_call_sequence)
9740 (hppa_hpux_supply_save_state): Likewise.
9741 * hppa-linux-tdep.c (insns_match_pattern)
9742 (hppa_linux_find_global_pointer): Likewise.
9743 * hppa-tdep.c (hppa_in_function_epilogue_p)
9744 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9745 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9746 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9747 (i386fbsd_collect_uthread): Likewise.
9748 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9749 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9750 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9751 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9752 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9753 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9754 (ia64_libunwind_frame_prev_register)
9755 (ia64_libunwind_sigtramp_frame_this_id)
9756 (ia64_find_global_pointer_from_dynamic_section)
9757 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9758 (ia64_unwind_pc): Likewise.
9759 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9760 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9761 (m68hc11_extract_return_value): Likewise.
9762 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9763 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9764 (mep_get_insn, mep_push_dummy_call): Likewise.
9765 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9766 (mips_linux_in_dynsym_stub): Likewise.
9767 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9768 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9769 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9770 to gdb_byte.
9771 * remote-mips.c (mips_set_register): Likewise.
9772 * remote-sim.c (gdbsim_fetch_register): Likewise.
9773 * score-tdep.c (score7_fetch_inst): Change type of parameter
9774 'memblock' and local 'buf' to gdb_byte.
9775 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9776 Change type of local 'buf' to gdb_byte. Adjust.
9777 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9778 to gdb_byte**.
9779 (score7_analyze_prologue): Change type of 'memblock' and
9780 'memblock_ptr' locals to gdb_byte*.
9781 * sh64-tdep.c (sh64_extract_return_value)
9782 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9783 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9784 * solib-pa64.c (pa64_solib_create_inferior_hook)
9785 (pa64_open_symbol_file_object): Remove local 'buf'.
9786 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9787 (som_open_symbol_file_object): Likewise.
9788 * solib-spu.c (spu_current_sos): Likewise.
9789 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9790 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9791 (spu_store_registers): Likewise.
9792 * target.c (debug_print_register): Likewise.
9793 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9794 * xstormy16-tdep.c (xstormy16_store_return_value)
9795 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9796 (xstormy16_find_jmp_table_entry): Likewise.
9797
75cc61ca 97982013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9799
9800 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9801 (tilegx_gdbarch_init): Install it.
9802
ddb08e9c
TT
98032013-02-28 Tom Tromey <tromey@redhat.com>
9804
9805 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9806 PyLong_Check.
9807
62d7fb51
DE
98082013-02-28 Doug Evans <dje@google.com>
9809
9810 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9811 * python/python.c (gdbpy_find_pc_line): Ditto.
9812
c4a9e8b4
TT
98132013-02-28 Tom Tromey <tromey@redhat.com>
9814
9815 * contrib/excheck.py: New file.
9816 * contrib/exsummary.py: New file.
9817 * contrib/gcc-with-excheck: New file.
9818
7f6a5dde
TT
98192013-02-28 Tom Tromey <tromey@redhat.com>
9820
9821 * python/python.c (gdbpy_print_stack): Call begin_line and
9822 fprintf_filtered inside TRY_CATCH.
9823
9e974e55
TT
98242013-02-28 Tom Tromey <tromey@redhat.com>
9825
9826 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9827 inside TRY_CATCH.
9828
dd5fa3e7
TT
98292013-02-28 Tom Tromey <tromey@redhat.com>
9830
9831 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9832 frame_object_to_frame_info inside TRY_CATCH.
9833
86a3263f
TT
98342013-02-28 Tom Tromey <tromey@redhat.com>
9835
9836 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9837 TRY_CATCH.
9838
81b52a3a
TT
98392013-02-28 Tom Tromey <tromey@redhat.com>
9840
9841 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9842
d50a0ce2
CV
98432013-02-27 Corinna Vinschen <vinschen@redhat.com>
9844
9845 * windows-nat.c: Throughout, fix format strings and casts of
9846 printf-like functions to avoid type related warnings on all
9847 platforms.
9848 (handle_output_debug_string): Fetch context information address
9849 from debug string using string_to_core_addr.
9850
e1f58301
JW
98512013-02-27 Jiong Wang <jiwang@tilera.com>
9852
9853 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9854 * regformats/reg-tilegx32.dat: New.
9855
4fcd89fc
JW
98562013-02-27 Jiong Wang <jiwang@tilera.com>
9857
9858 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9859
748d24e6
JW
98602013-02-27 Jiong Wang <jiwang@tilera.com>
9861
9862 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9863
6c8e944d
YQ
98642013-02-27 Yao Qi <yao@codesourcery.com>
9865 Pedro Alves <palves@redhat.com>
9866
9867 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9868 pc/tp/range/outside, look for the next trace frame instead of
9869 always starting from frame 0.
6c8e944d 9870
acd7db30
AG
98712013-02-26 Anthony Green <green@moxielogic.com>
9872
9873 * configure.tgt: Add support for moxie-*-rtems* target.
9874
025e6dce
PA
98752013-02-25 Pedro Alves <palves@redhat.com>
9876
9877 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9878 warning text.
9879
ca9c94ef
MR
98802013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9881
9882 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9883 if $fp is used as the virtual frame pointer.
9884
24c274a1
AM
98852013-02-23 Alan Modra <amodra@gmail.com>
9886
9887 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9888 symbol size.
9889 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9890 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9891 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9892 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9893
bfada189
JK
98942013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9895
9896 Code cleanup.
9897 * elfread.c (build_id_bfd_get): Make the return type const.
9898 (build_id_verify): Make the check parameter const.
9899 (build_id_to_debug_filename): Make the build_id parameter and variable
9900 data const.
9901 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9902
c0355132
AM
99032013-02-21 Alan Modra <amodra@gmail.com>
9904
9905 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9906
9f44fbc0
SCR
99072013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9908
9909 Add a new method 'disassemble' to gdb.Architecture class.
9910 * python/py-arch.c (archpy_disassmble): Implementation of the
9911 new method gdb.Architecture.disassemble.
9912 (arch_object_methods): Add entry for the new method.
9913
b74ea3eb
JW
99142013-02-20 Jiong Wang <jiwang@tilera.com>
9915
9916 * MAINTAINERS (Write After Approval): Add myself to the list.
9917
61a672f1
PA
99182013-02-19 Pedro Alves <palves@redhat.com>
9919
9920 Garbage collect 'struct monitor_ops'::load_routine.
9921
9922 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9923 * monitor.c (monitor_load): No longer call
9924 current_monitor->load_routine.
9925 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9926 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9927 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9928
40e397df
PA
99292013-02-19 Pedro Alves <palves@redhat.com>
9930
9931 PR gdb/15161
9932
9933 Harmonize with generic_load.
9934
9935 * monitor.c: Include "readline/readline.h".
9936 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9937 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9938 long/strtol for the 'load_offset' local. Error out if no argument
9939 is given or if too many arguments are given. Tilde expand the
9940 passed in file name.
9941
f698ca8e
KT
99422013-02-19 Kai Tietz <ktietz@redhat.com>
9943
9944 PR gdb/15161
9945 * symfile.c (load_section_data): Change type of load_offset
9946 to CORE_ADDR.
9947 (generic_load): User strtoulst instead of strtoul for conversion
9948 of load_offset.
9949
3361b059
WL
99502013-02-19 Jiong Wang <jiwang@tilera.com>
9951
9952 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9953 for return address, "lr" register, saved on stack.
9954 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9955 after we invoke tilegx_analyze_prologue.
9956
3e9d5130
WL
99572013-02-19 Jiong Wang <jiwang@tilera.com>
9958
bb1bcd86
WL
9959 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9960
3361b059 99612013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9962
b74ea3eb 9963 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9964
4aaf2503
WL
99652013-02-19 Jiong Wang <jiwang@tilera.com>
9966
b74ea3eb 9967 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9968 (tilegx_write_pc): New function.
9969 (tilegx_cannot_reference_register): Return zero if REGNO
9970 is TILEGX_FAULTNUM_REGNUM.
9971 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9972 (tilegx_register_name): Add handling of "faultnum" register.
9973 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9974 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9975 handling of TILEGX_FAULTNUM_REGNUM.
9976 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9977
bc23a956
WL
99782013-02-19 Jiong Wang <jiwang@tilera.com>
9979
9980 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9981 should be aligned to 64bit.
bc23a956 9982
42f45f1a
KT
99832013-02-19 Kai Tietz <ktietz@redhat.com>
9984
9985 * windows-nat.c (windows_xfer_memory): Fix debug-output
9986 for LLP64.
9987
6ce4c112
LL
99882013-02-19 Lei Liu <lei.liu2@windriver.com>
9989
9990 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9991 Don't check DSP register number if HAVE_DSP is not set.
9992
30e8ee25
AM
99932013-02-19 Alan Modra <amodra@gmail.com>
9994
9995 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9996 throughout file instead.
9997 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9998 Don't xmalloc return value.
9999 (build_id_verify): Similarly. Don't xfree.
10000 (build_id_to_debug_filename): Update.
10001 (find_separate_debug_file_by_buildid): Update, don't xfree.
10002
4c9ad8c2
TT
100032013-02-18 Tom Tromey <tromey@redhat.com>
10004
10005 PR gdb/15102:
10006 * dwarf2read.c (read_subrange_type): Use result of
10007 'check_typedef'.
10008
983dc440
YQ
100092013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10010
10011 * frame.c: Remove one extra white space after #include
10012 directive.
10013
7fb2b84a
JK
100142013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10017
edceb2a9
JK
100182013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10019
10020 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10021 and dir commands into an if block.
10022
e81b7af8
TT
100232013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10024
10025 * python/py-breakpoint (struct pybp_code): Use int instead of
10026 enum type_code.
10027
f5911ea1
HAQ
100282013-02-15 Pedro Alves <pedro@codesourcery.com>
10029 Hafiz Abid Qadeer <abidh@codesourcery.com>
10030
10031 * NEWS: Mention new field "trace-file".
10032 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10033 (tfile_open): Record the trace file's filename in the trace
10034 status.
10035 (tfile_files_info): Mention the name of the trace file.
10036 Check the "filename" field explicitely.
10037 (trace_status_command): Explicitely check "filename" field.
10038 (trace_find_command): Ditto.
10039 (trace_find_pc_command): Ditto.
10040 (trace_find_tracepoint_command): Ditto.
10041 (trace_find_line_command): Ditto.
10042 (trace_find_range_command): Ditto.
10043 (trace_find_outside_command): Ditto.
10044 * tracepoint.h (struct trace_status) <from_file>: Rename it
10045 to "filename" and make it hold the trace file's filename
10046 instead of a boolean.
10047 * remote.c (remote_get_trace_status): Initialize "filename"
10048 field with NULL instead of 0.
10049
796cb314
YQ
100502013-02-15 Yao Qi <yao@codesourcery.com>
10051
10052 * remote.c: Fix a typo.
10053
42e79b1d
PM
100542013-02-14 Pierre Muller <muller@sourceware.org>
10055
10056 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10057
baea0dae
PA
100582013-02-14 Pedro Alves <palves@redhat.com>
10059
10060 * utils.c (savestring): Don't #undef it. Move function to
10061 common/common-utils.c.
10062 * common/common-utils.c: Include gdb_string.h.
10063 (savestring): Move here from utils.c.
10064 * common/common-utils.h (savestring): Declare.
10065
57c3b6ed
PA
100662013-02-14 Pedro Alves <palves@redhat.com>
10067
10068 * utils.c (savestring): Rename parameter 'size' to 'len'.
10069
d6c44983
YZ
100702013-02-14 Pedro Alves <palves@redhat.com>
10071 Yufeng Zhang <yufeng.zhang@arm.com>
10072
10073 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10074 (aarch64_inferior_data, struct aarch64_inferior_data):
10075 Delete.
10076 (struct aarch64_process_info): New.
10077 (aarch64_process_list): New global.
10078 (aarch64_find_process_pid, aarch64_add_process)
10079 (aarch64_process_info_get): New functions.
10080 (aarch64_inferior_data_get): Delete.
10081 (aarch64_process_info_get): New function.
10082 (aarch64_forget_process): New function.
10083 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10084 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10085 aarch64_get_debug_reg_state.
10086 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10087 instead of linux_nat_iterate_watchpoint_lwps.
10088 (aarch64_linux_new_fork): New function.
10089 (aarch64_linux_child_post_startup_inferior): Use
10090 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10091 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10092 (aarch64_linux_remove_hw_breakpoint)
10093 (aarch64_handle_aligned_watchpoint)
10094 (aarch64_handle_unaligned_watchpoint)
10095 (aarch64_linux_insert_watchpoint)
10096 (aarch64_linux_remove_watchpoint)
10097 (aarch64_linux_stopped_data_address): Adjust to pass the current
10098 process id to aarch64_debug_reg_state.
10099 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10100 linux_nat_new_fork hook, and aarch64_forget_process as
10101 linux_nat_forget_process hook; remove the call to
10102 register_inferior_data_with_cleanup.
10103
4819b3f8
PA
101042013-02-14 Pedro Alves <palves@redhat.com>
10105
10106 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10107 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10108 lval_memory.
10109
1773c82c
HAQ
101102013-02-14 Pedro Alves <pedro@codesourcery.com>
10111 Hafiz Abid Qadeer <abidh@codesourcery.com>
10112
10113 * tracepoint.h (validate_trace_state_variable_name): Declare.
10114 * tracepoint.c (validate_trace_state_variable_name): New.
10115 (trace_variable_command): Parse the trace state variable's name
10116 without using parse_expression. Do several validations.
10117 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10118 trace state variable's name with parse_expression. Validate it.
10119
53778a97
YQ
101202013-02-14 Yao Qi <yao@codesourcery.com>
10121
10122 * infcmd.c (breakpoint_proceeded): Remove it.
10123
7b3ae3a6
YQ
101242013-02-14 Yao Qi <yao@codesourcery.com>
10125
10126 * tracepoint.c (end_actions_pseudocommand): Make it static.
10127 (while_stepping_pseudocommand): Likewise.
10128 * tracepoint.h (end_actions_pseudocommand): Remove the
10129 declaration.
10130 (while_stepping_pseudocommand): Likewise.
10131
64580925
YQ
101322013-02-14 Yao Qi <yao@codesourcery.com>
10133
10134 * cli/cli-decode.c (help_cmd): Remove the declaration of
10135 "cmdlist".
10136 (help_all): Likewise.
10137
26cb8b7c
PA
101382013-02-13 Pedro Alves <palves@redhat.com>
10139
10140 * amd64-linux-nat.c (update_debug_registers_callback):
10141 Update comment.
10142 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10143 iterate_over_lwps.
10144 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10145 i386_debug_reg_state.
10146 (amd64_linux_new_fork): New function.
10147 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10148 linux_nat_new_fork hook, and i386_forget_process as
10149 linux_nat_forget_process hook.
10150 * i386-linux-nat.c (update_debug_registers_callback):
10151 Update comment.
a8256ea1 10152 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10153 iterate_over_lwps.
10154 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10155 i386_debug_reg_state.
10156 (i386_linux_new_fork): New function.
10157 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10158 linux_nat_new_fork hook, and i386_forget_process as
10159 linux_nat_forget_process hook.
10160 * i386-nat.c (i386_init_dregs): Delete.
10161 (i386_inferior_data, struct i386_inferior_data):
10162 Delete.
10163 (struct i386_process_info): New.
10164 (i386_process_list): New global.
10165 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10166 New functions.
10167 (i386_inferior_data_get): Delete.
10168 (i386_process_info_get): New function.
10169 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10170 (i386_forget_process): New function.
10171 (i386_cleanup_dregs): Rewrite.
10172 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10173 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10174 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10175 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10176 to i386_debug_reg_state.
10177 (i386_use_watchpoints): Don't register inferior data.
10178 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10179 adjust comment.
10180 (i386_forget_process): Declare.
10181 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10182 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10183 New static globals.
10184 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10185 (add_initial_lwp): New, factored out from ...
10186 (add_lwp): ... this. Don't check the number of lwps before
10187 calling linux_nat_new_thread.
10188 (linux_nat_iterate_watchpoint_lwps): Delete.
10189 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10190 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10191 forks and vforks.
10192 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10193 initial lwp.
10194 (linux_nat_kill, linux_nat_mourn_inferior): Call
10195 linux_nat_forget_process.
10196 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10197 (linux_nat_forget_process): New functions.
10198 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10199 type.
10200 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10201 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10202 types.
10203 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10204 (linux_nat_forget_process): New declarations.
10205
10206 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10207 (amd64fbsd_mourn_inferior): New function.
10208 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10209 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10210
5befea72
MS
102112013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10212
55015247
YQ
10213 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10214 Adding _().
5befea72 10215
1d3ffd6b
MS
102162013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10217
10218 * aarch64-linux-nat.c (debug_reg_change_callback)
10219 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10220 %s and phex().
10221
6eb04473
MS
102222013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10223
10224 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10225 with LONGEST.
10226
a016fc87
HAQ
102272013-02-13 Pedro Alves <palves@redhat.com>
10228 Hafiz Abid Qadeer <abidh@codesourcery.com>
10229
10230 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10231
e234dfaf
TT
102322013-02-12 Tom Tromey <tromey@redhat.com>
10233
10234 PR symtab/11464:
10235 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10236 NAME return.
10237 (classify_inner_name): Remove 'first_name' argument, add
10238 'context'. Remove unused variable.
10239 (yylex): Explicitly maintain the context type. Exit loop earlier
10240 if NAME result is seen.
10241
0b1afbb3
PA
102422013-02-12 Pedro Alves <palves@redhat.com>
10243
10244 * amd64-darwin-tdep.c: Add (C) after Copyright.
10245 * cli/cli-cmds.h: Ditto.
10246 * cli/cli-decode.c: Ditto.
10247 * cli/cli-decode.h: Ditto.
10248 * cli/cli-dump.c: Ditto.
10249 * cli/cli-dump.h: Ditto.
10250 * cli/cli-interp.c: Ditto.
10251 * cli/cli-logging.c: Ditto.
10252 * cli/cli-script.c: Ditto.
10253 * cli/cli-script.h: Ditto.
10254 * cli/cli-setshow.c: Ditto.
10255 * cli/cli-setshow.h: Ditto.
10256 * cli/cli-utils.c: Ditto.
10257 * cli/cli-utils.h: Ditto.
10258 * config/alpha/nm-osf3.h: Ditto.
10259 * config/djgpp/djconfig.sh: Ditto.
10260 * config/i386/nm-fbsd.h: Ditto.
10261 * config/i386/nm-i386gnu.h: Ditto.
10262 * config/nm-linux.h: Ditto.
10263 * config/nm-nto.h: Ditto.
10264 * config/rs6000/nm-rs6000.h: Ditto.
10265 * config/sparc/nm-sol2.h: Ditto.
10266 * darwin-nat-info.c: Ditto.
10267 * dfp.c: Ditto.
10268 * dfp.h: Ditto.
10269 * gdb-demangle.h: Ditto.
10270 * i386-darwin-nat.c: Ditto.
10271 * i386-darwin-tdep.c: Ditto.
10272 * linux-fork.h: Ditto.
10273 * m32c-tdep.c: Ditto.
10274 * microblaze-linux-tdep.c: Ditto.
10275 * microblaze-rom.c: Ditto.
10276 * microblaze-tdep.c: Ditto.
10277 * microblaze-tdep.h: Ditto.
10278 * mips-linux-tdep.h: Ditto.
10279 * ppc-ravenscar-thread.c: Ditto.
10280 * ppc-ravenscar-thread.h: Ditto.
10281 * prologue-value.c: Ditto.
10282 * prologue-value.h: Ditto.
10283 * ravenscar-thread.c: Ditto.
10284 * ravenscar-thread.h: Ditto.
10285 * sparc-ravenscar-thread.c: Ditto.
10286 * sparc-ravenscar-thread.h: Ditto.
10287 * tilegx-linux-tdep.c: Ditto.
10288 * unwind_stop_reasons.def: Ditto.
10289 * windows-nat.h: Ditto.
10290 * xtensa-linux-tdep.c: Ditto.
10291 * xtensa-xtregs.c: Ditto.
10292 * regformats/regdat.sh: Ditto.
10293 * regformats/regdef.h: Ditto.
10294
6c01dd94
PA
102952013-02-12 Pedro Alves <palves@redhat.com>
10296
10297 * break-catch-sig.c: Update copyright years.
10298
b65a2bd9
SCR
102992013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10300
10301 Add support for a destructor for ui_out data and use it to
10302 provide a ui_out destructor.
10303 * ui-out.h: Declare the new ui_out destructor.
10304 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10305 * ui-out.c (default_data_destroy): Add a default data destructor
10306 which does nothing.
10307 (default_ui_out_impl): Set the new data_destroy field to
10308 default_data_destroy
10309 (uo_data_destroy): Local function which invokes the data
10310 destructor if present.
10311 (clear_table): Local function which clears the table data of a
10312 ui_out object.
10313 (ui_out_destroy): Public function which frees a ui_out object.
10314 (ui_out_table_end): Use the new clear_table function.
10315 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10316 NULL.
10317 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10318 to NULL.
10319
c2792f5a
DE
103202013-02-11 Doug Evans <dje@google.com>
10321
10322 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10323 (printf_decfloat): New function. Broken out from ui_printf.
10324 Remove unnecessary code to shift the entire format string down.
10325 (printf_pointer): New function.
10326 (ui_printf): Code to print C strings, wide C strings, decfloats,
10327 and pointers moved to separate functions.
10328
d9e98382
SDJ
103292013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10330
10331 * valops.c (value_assign): Handling bitfield offset in
10332 `lval_internalvar_component' case.
10333
4ff3ce77
DE
103342013-02-08 Doug Evans <dje@google.com>
10335
10336 * common/format.c (parse_format_string): Fix whitespace.
10337
901900c4
MGD
103382013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10339
10340 * stack.c (return_command): Work around uninitialized variable
10341 warning.
10342
b5dbc8d4
YZ
103432013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10344
10345 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10346 number of the registers from 36 to 34.
10347
51d66578
MS
103482013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10349
10350 * NEWS: Mention new AArch64 native and target support.
10351
176b1c95
MS
103522013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10353
10354 * MAINTAINERS (Write After Approval): Add myself.
10355
9d19df75
MS
103562013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10357 Marcus Shawcroft <marcus.shawcroft@arm.com>
10358 Nigel Stephens <nigel.stephens@arm.com>
10359 Yufeng Zhang <yufeng.zhang@arm.com>
10360
10361 * aarch64-linux-nat.c: New file.
10362 * config/aarch64/linux.mh: New file.
10363 * configure.host: Add AArch64.
10364 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10365
7e1e0340
DE
103662013-02-07 Doug Evans <dje@google.com>
10367
10368 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10369 disassemble command.
10370
45e25a36
MS
103712013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10372
10373 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10374 set_gdbarch_fetch_tls_load_module_address.
10375
bbfdfe1c
DM
103762013-02-06 David S. Miller <davem@davemloft.net>
10377
10378 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10379 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10380 * value.c (struct_return_convention): New function.
10381 (using_struct_return): Implement in terms of struct_return_convention.
10382 * value.h (struct_return_convention): Declare.
10383 * stack.c (return_command): Allow successful overriding of the return
10384 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10385
bc9abe4a
TT
103862013-02-06 Tom Tromey <tromey@redhat.com>
10387
10388 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10389 outside of TRY_CATCH.
10390
134a2066
YQ
103912013-02-06 Yao Qi <yao@codesourcery.com>
10392
10393 * mi/mi-interp.c: Include "tracepoint.h".
10394 (mi_tsv_modified): Declare.
10395 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10396 (mi_interpreter_init): Call observer_attach_tsv_modified.
10397 (mi_tsv_modified): New.
10398 (mi_tsv_created, mi_tsv_deleted): Update.
10399 * tracepoint.c (trace_variable_command): Call
10400 observer_notify_tsv_modified if the initial value of tsv is
10401 changed.
10402 (delete_trace_state_variable): Call
10403 observer_notify_tsv_deleted earlier.
10404 (trace_variable_command): Caller update.
10405 (create_tsv_from_upload): Likewise.
10406 * observer.sh: Declare "struct trace_state_variable".
10407
10408 * NEWS: Mention the new MI notification "=tsv-modified".
10409
59be2b6a
DE
104102013-02-05 Doug Evans <dje@google.com>
10411
10412 * completer.c (location_completer): Fix typo in comment.
10413
d30113d4
JK
104142013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10415
10416 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10417 ADDRESS sorted.
10418
14ac654f
MS
104192013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10420
10421 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10422 Refactor if statement to avoid trailing || operator.
10423
543bf33d
AT
104242013-02-05 Andreas Tobler <andreast@fgznet.ch>
10425
10426 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10427
dc18f110
AT
104282013-02-04 Andreas Tobler <andreast@fgznet.ch>
10429
10430 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10431 * configure.host: Add powerpc*-*-freebsd* target.
10432 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10433 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10434 * config/powerpc/fbsd.mh: New file.
10435
b3ac9c77
SDJ
104362013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10437 Denys Vlasenko <dvlasenk@redhat.com>
10438 Pedro Alves <palves@redhat.com>
10439
10440 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10441 (struct elf_internal_linux_prpsinfo): Forward declare.
10442 * gdbarch.h, gdbarch.c: Regenerate.
10443 * linux-tdep.c: Include `cli/cli-utils.h'.
10444 (linux_fill_prpsinfo): New function.
10445 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10446 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10447 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10448 depending on gdbarch pointer bitness.
10449 * ppc-linux-tdep.c: Include elf-bfd.h.
10450 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10451 on 32-bit.
10452
176eb98c
MS
104532013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10454 Marcus Shawcroft <marcus.shawcroft@arm.com>
10455 Nigel Stephens <nigel.stephens@arm.com>
10456 Yufeng Zhang <yufeng.zhang@arm.com>
10457
10458 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10459
cf0dbd6f
MS
104602013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10461 Marcus Shawcroft <marcus.shawcroft@arm.com>
10462 Nigel Stephens <nigel.stephens@arm.com>
10463 Yufeng Zhang <yufeng.zhang@arm.com>
10464
10465 * aarch64-newlib-tdep.c: New file.
10466 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10467 aarch64*-*-elf.
10468 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10469 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10470 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10471 * osabi.c (gdb_osabi_names): Add "Newlib".
10472
1ae3db19
MS
104732013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10474 Marcus Shawcroft <marcus.shawcroft@arm.com>
10475 Nigel Stephens <nigel.stephens@arm.com>
10476 Yufeng Zhang <yufeng.zhang@arm.com>
10477
10478 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10479 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10480 * aarch64-linux-tdep.c: New file.
10481 * aarch64-linux-tdep.h: New file.
10482 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10483 * configure.tgt: Add aarch64-none-linux-gnu.
10484
07b287a0
MS
104852013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10486 Marcus Shawcroft <marcus.shawcroft@arm.com>
10487 Nigel Stephens <nigel.stephens@arm.com>
10488 Yufeng Zhang <yufeng.zhang@arm.com>
10489
10490 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10491 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10492 (ALLDEPFILES): Add aarch64-tdep.c.
10493 * aarch64-tdep.c: New file.
10494 * aarch64-tdep.h: New file.
10495 * configure.tgt: Add AArch64.
10496 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10497 (aarch64-expedite): New definition.
10498 * features/aarch64-core.xml: New file.
10499 * features/aarch64-fpu.xml: New file.
10500 * features/aarch64-without-fpu.c: New file (generated).
10501 * features/aarch64-without-fpu.xml: New file.
10502 * features/aarch64.c: New file (generated).
10503 * features/aarch64.xml: New file.
10504 * regformats/aarch64-without-fpu.dat: New file (generated).
10505 * regformats/aarch64.dat: New file (generated).
10506
0f1b18ab
JK
105072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 * contrib/expect-read1.c: New file.
10510 * contrib/expect-read1.sh: New file.
10511
233d95b5
JK
105122013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10513
10514 * dwarf2read.c (file_file_name): New function with code from
10515 file_full_name.
10516 (file_full_name): Move most of the code to file_file_name.
10517 (macro_start_file): Rename variable full_name to file_name and use
10518 file_file_name for it. Add comp_dir parameter to new_macro_table.
10519 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10520 macro_source_file->filename access by macro_source_fullname call.
10521 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10522 caller.
10523 * macrotab.c (struct macro_table): New field comp_dir.
10524 (macro_include): New variables link_fullname and source_fullname.
10525 Replace any macro_source_file->filename access by macro_source_fullname
10526 call.
10527 (macro_lookup_inclusion): Remove the partial filenames checking code.
10528 (check_for_redefinition): New variables source_fullname and
10529 found_key_fullname. Replace any macro_source_file->filename access by
10530 macro_source_fullname call.
10531 (macro_undef): New variables source_fullname and key_fullname. Replace
10532 any macro_source_file->filename access by macro_source_fullname call.
10533 (macro_lookup_definition): New variables retval and source_fullname.
10534 Replace any macro_source_file->filename access by macro_source_fullname
10535 call.
10536 (foreach_macro): New variable key_fullname. Replace any
10537 macro_source_file->filename access by macro_source_fullname call.
10538 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10539 macro_source_file->filename access by macro_source_fullname call.
10540 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10541 (macro_source_fullname): New function.
10542 * macrotab.h (struct macro_source_file): Extent the filename field
10543 comment.
10544 (new_macro_table): New parameter comp_dir, add a comment for it.
10545 (macro_source_fullname): new declaration.
10546
da235a7c
JK
105472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10548
10549 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10550 this_real_name to outer block. Use it also for
10551 compare_filenames_for_search.
10552 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10553 with dw2_get_real_path for file_matcher, considering also
10554 BASENAMES_MAY_DIFFER.
10555 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10556
fbd9ab74
JK
105572013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10558
10559 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10560 to the file_matcher parameter. Pass 0 to it.
10561 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10562 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10563 NULL psymtab_to_fullname result.
10564 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10565 an expected filename instead.
10566 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10567 file_matcher parameter. Call also psymtab_to_fullname, after newly
10568 considering BASENAMES_MAY_DIFFER.
10569 * source.c (rewrite_source_path): Remove static.
10570 * source.h (rewrite_source_path): New declaration.
10571 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10572 the expand_symtabs_matching field. Comment it.
10573 * symtab.c (file_matches): New function comment. Add parameter
10574 basenames, implement it.
10575 (search_symbols_file_matches): Add basenames parameter. Update the
10576 file_matches caller.
10577 (search_symbols): Match FILES also against symtab_to_fullname.
10578 Optimize it for BASENAMES_MAY_DIFFER.
10579
56d397a3
JK
105802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10581
10582 * source.c (print_source_lines_base): Print for TUI also "fullname".
10583 * tui/tui-data.c (init_content_element): Change tui_locator_element
10584 field to full_name.
10585 * tui/tui-data.h (struct tui_locator_element): Likewise.
10586 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10587 tui_update_locator_filename calls to tui_update_locator_fullname.
10588 Replace symtab->filename refererence by symtab_to_fullname call.
10589 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10590 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10591 field to full_name. Replace symtab->filename refererence by
10592 symtab_to_fullname call.
10593 (tui_show_symtab_source): Rename parameter to fullname. Change
10594 tui_locator_element field to full_name.
10595 * tui/tui-stack.c: Include source.h.
10596 (tui_set_locator_filename): Rename the declaration to ...
10597 (tui_set_locator_fullname): ... here. Rename its parameter to
10598 fullname, updates its comment.
10599 (tui_set_locator_info): Rename its parameter to fullname.
10600 (tui_set_locator_filename): Rename the definition to ...
10601 (tui_set_locator_fullname): ... here. Rename its parameter to
10602 fullname, updates its comment. Change tui_locator_element field to
10603 full_name.
10604 (tui_set_locator_info): Rename its parameter to fullname.
10605 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10606 (tui_update_locator_filename): Rename to ...
10607 (tui_update_locator_fullname): ... here. Rename callee to
10608 tui_set_locator_fullname.
10609 (tui_show_frame_info): Replace symtab->filename refererence by
10610 symtab_to_fullname call.
10611 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10612 (tui_update_locator_fullname): ... here.
10613 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10614 tui_update_locator_fullname. Replace symtab->filename refererence by
10615 symtab_to_fullname call.
10616 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10617 Rename the callee to tui_update_locator_fullname.
10618 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10619
05cba821
JK
106202013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10621
10622 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10623 by symtab_to_filename_for_display calls.
10624 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10625 (clear_command): New variable sal_fullname, initialize it. Replace
10626 compare_filenames_for_search by filename_cmp with sal_fullname.
10627 (say_where, update_static_tracepoint): Replace symtab->filename
10628 refererences by symtab_to_filename_for_display calls.
10629 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10630 Likewise.
10631 * dwarf2read.c: Include source.h.
10632 (fixup_go_packaging): Replace symtab->filename refererences by
10633 symtab_to_filename_for_display calls.
10634 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10635 Replace symtab->filename refererences by symtab_to_filename_for_display
10636 calls.
10637 (create_sals_line_offset, convert_linespec_to_sals): New variable
10638 fullname, initialize it, replace symtab->filename reference by the
10639 variable.
10640 * linux-fork.c: Include source.h.
10641 (info_checkpoints_command): Replace symtab->filename refererences by
10642 symtab_to_filename_for_display calls.
10643 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10644 by symtab_to_filename_for_display calls.
10645 * mdebugread.c: Include source.h.
10646 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10647 symtab_to_filename_for_display calls.
10648 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10649 (mi_cmd_file_list_exec_source_files): Likewise.
10650 * printcmd.c: Include source.h.
10651 (build_address_symbolic): Replace symtab->filename refererences by
10652 symtab_to_filename_for_display calls.
10653 * psymtab.c (partial_map_symtabs_matching_filename)
10654 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10655 with psymtab_to_fullname.
10656 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10657 by symtab_to_filename_for_display calls.
10658 (stpy_get_filename): New variable filename, initialize it, use instead
10659 of symtab->filename refererences.
10660 (salpy_str): Make variable filename const char *. Replace
10661 symtab->filename refererences by symtab_to_filename_for_display calls.
10662 * skip.c: Include source.h and filenames.h.
10663 (skip_file_command): Remove const from the symtab variable. Replace
10664 symtab->filename refererences by symtab_to_fullname call.
10665 (function_name_is_marked_for_skip): New variables searched_for_fullname
10666 and fullname. Use them to search also with symtab's fullname.
10667 * source.c (find_source_lines): Replace symtab->filename refererences
10668 by symtab_to_filename_for_display calls.
10669 (print_source_lines_base): New variable filename, use it instead of
10670 symtab->filename. Replace symtab->filename refererences by
10671 symtab_to_filename_for_display calls.
10672 (line_info, forward_search_command): Replace symtab->filename
10673 refererences by symtab_to_filename_for_display calls.
10674 (reverse_search_command): Replace symtab->filename refererences by
10675 symtab_to_filename_for_display calls. New variable filename for it.
10676 * stack.c (frame_info): Likewise.
10677 * symmisc.c: Include source.h.
10678 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10679 (maintenance_info_symtabs): Replace symtab->filename refererences by
10680 symtab_to_filename_for_display calls.
10681 * symtab.c (iterate_over_some_symtabs): Call
10682 compare_filenames_for_search also with symtab_to_fullname.
10683 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10684 symtab->filename refererences by symtab_to_filename_for_display calls.
10685 (find_line_symtab): Replace symtab->filename refererences by
10686 symtab_to_filename_for_display calls.
10687 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10688 (print_symbol_info): Make the last parameter const char *. New
10689 variable s_filename. Use it in the function.
10690 (symtab_symbol_info): Make the last_filename variable const char *.
10691 Replace symtab->filename refererences by symtab_to_filename_for_display
10692 calls.
10693 (rbreak_command): New variable fullname. Use it. Replace
10694 symtab->filename refererence by symtab_to_filename_for_display call.
10695 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10696 (print_one_static_tracepoint_marker): Replace symtab->filename
10697 refererences by symtab_to_filename_for_display calls.
10698 * tui/tui-source.c (tui_set_source_content): New variables filename and
10699 s_filename. Replace symtab->filename refererences by this variable.
10700 Replace other symtab->filename refererences by
10701 symtab_to_filename_for_display calls.
10702
1b56eb55
JK
107032013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10704 Jan Kratochvil <jan.kratochvil@redhat.com>
10705
10706 Add a new variable that controls a way in which filenames are
10707 displayed.
10708 * NEWS (set filename-display): New entry.
10709 * source.c (filename_display_basename, filename_display_relative)
10710 (filename_display_absolute, filename_display_kind_names)
10711 (filename_display_string, show_filename_display_string)
10712 (symtab_to_filename_for_display): New.
10713 (_initialize_source): Added initialization of 'filename-display'
10714 variable.
10715 * source.h (symtab_to_filename_for_display): Added declaration.
10716 * stack.c (print_frame): Added new variable and calling of a new
10717 function and condition with this variable. Changed third argument of
10718 calling of a function.
10719
aa079c93
JK
107202013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10721
10722 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10723 Rename field reference filename to fullname.
10724 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10725 fullname. New comment for it.
10726 * tui/tui-source.c (tui_set_source_content): Rename field reference
10727 filename to fullname. Initialize field by symtab_to_fullname now.
10728 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10729 reference filename to fullname. Use symtab_to_fullname during
10730 comparison.
10731
652a8996
JK
107322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10733
10734 Code cleanup.
10735 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10736 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10737 filename to fullname. Rename variable this_name to this_fullname.
10738 Lowercase FILENAME_CMP call.
10739 (dw2_find_symbol_file): New comment for the returned string.
10740 (dwarf2_gdb_index_functions): Rename the function to
10741 dw2_expand_symtabs_with_fullname.
10742 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10743 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10744 fullname.
10745 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10746 * symfile.h (struct quick_symbol_functions): Rename field
10747 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10748 parameter filename to fullname. Document returned string meaning for
10749 find_symbol_file.
10750 * symtab.c (find_line_symtab): Rename the called function to
10751 expand_symtabs_with_fullname.
10752
af529f8f
JK
107532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10754
10755 Code cleanup.
10756 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10757 call of filename_cmp with compare_filenames_for_search.
10758 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10759 is_abs, unify the call of FILENAME_CMP with
10760 compare_filenames_for_search. New gdb_asserts for real_path and name.
10761 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10762 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10763 * symfile.h (struct quick_symbol_functions): Extend the comment for
10764 map_symtabs_matching_filename.
10765 * symtab.c (compare_filenames_for_search): Remove the function comment
10766 relative path requirement. Handle absolute filenames, with a comment.
10767 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10768 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10769 real_path and name. Unify the call of compare_filenames_for_search
10770 with FILENAME_CMP.
10771 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10772
2f202fde
JK
107732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 Code cleanup.
10776 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10777 source_file references by symtab field references. Remove variables
10778 sal and fullname.
10779 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10780 (clear_command, say_where): Replace bp_location field source_file
10781 references by symtab field references.
10782 (bp_location_dtor): Remove the source_file reference.
10783 (update_static_tracepoint): Replace bp_location field source_file
10784 references by symtab field references.
10785 (breakpoint_free_objfile): New function.
10786 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10787 Replace the field source_file by field symtab, extend its comment.
10788 (breakpoint_free_objfile): New declaration.
10789 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10790 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10791 field source_file references by symtab field references.
10792
f5b95b50
JK
107932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 Replace xfullpath calls by gdb_realpath calls.
10796 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10797 function comment.
10798 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10799 Remove it from the iterate_over_some_symtabs call.
10800 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10801 Remove it from the dw2_map_expand_apply calls, remove a block handling
10802 it.
10803 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10804 Remove it from the iterate_over_some_symtabs call.
10805 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10806 Remove it from the partial_map_expand_apply calls, remove a block
10807 handling it. Drop gdb_realpath call and cleanups from the real_path
10808 handling.
10809 * source.c (openp): Drop the comment part about xfullpath. Replace
10810 xfullpath calls by gdb_realpath calls.
10811 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10812 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10813 from method map_symtabs_matching_filename and its comment.
10814 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10815 gdb_realpath call.
10816 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10817 remove it also from the function comment, remove a block handling it.
10818 Drop gdb_realpath call and cleanups from the real_path handling.
10819 (iterate_over_symtabs): Drop variable full_path and its use.
10820 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10821 * utils.c (xfullpath): Remove.
10822 * utils.h (xfullpath): Remove.
10823
d78489bf
AT
108242013-02-01 Andreas Tobler <andreast@fgznet.ch>
10825
10826 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10827 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10828 (ALLDEPFILES): Add ppc64-tdep.c.
10829 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10830 ppc64-tdep.o to gdb_target_obs.
10831 * ppc64-tdep.h: New file.
10832 * ppc64-tdep.c: New file.
10833 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10834 ppc-linux-tdep.c to here.
10835 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10836 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10837 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10838 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10839 from ppc-linux-tdep.c to here.
10840 (ppc64_convert_from_func_ptr_addr): Rename from
10841 ppc64_linux_convert_from_func_ptr_addr to
10842 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10843 here.
10844 * rs6000-tdep.c:
10845 (read_insn): Move from ppc-linux-tdep.c to here.
10846 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10847 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10848 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10849 Removed above functions.
10850 (ppc_linux_init_abi): Adjust.
10851
8db60374
AR
108522013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10853
10854 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10855
f2e5f4ce
AR
108562013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10857
10858 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10859
c1f7d745
PA
108602013-02-01 Pedro Alves <palves@redhat.com>
10861
10862 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10863 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10864
8a92335b
JK
108652013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10866
10867 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10868 files with no separate debug info.
10869 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10870 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10871 only for files with no separate debug info.
10872
8eacb197
TT
108732013-01-31 Tom Tromey <tromey@redhat.com>
10874
10875 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10876 change type.
10877 (struct jit_program_space_data): Rename from jit_inferior_data.
10878 Update comments.
10879 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10880 Change return type. Attach data to program space.
10881 (jit_program_space_data_cleanup): Rename from
10882 jit_inferior_data_cleanup; change argument type.
10883 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10884 change type.
10885 (jit_register_code): Update.
10886 (jit_update_inferior_cache): Remove.
10887 (jit_breakpoint_deleted): Get jit data from the location's program
10888 space.
10889 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10890 'ps_data', change type.
10891 (jit_inferior_init, jit_breakpoint_re_set_internal)
10892 (jit_event_handler): Update.
10893 (free_objfile_data): Get data from objfile's program space.
10894 (_initialize_jit): Update.
10895
f25c0135
TT
108962013-01-31 Tom Tromey <tromey@redhat.com>
10897
10898 PR gdb/13987:
10899 * jit.c (struct jit_inferior_data) <cached_code_address,
10900 jit_breakpoint>: New fields.
10901 (jit_breakpoint_re_set_internal): Fix logging. Only create
10902 breakpoint if cached address has changed.
10903 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10904 functions.
10905 (_initialize_jit): Register breakpoint deleted observer.
10906
974a734b
AR
109072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10908
10909 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10910 (save_infcall_suspend_state): Ifdef out unused inf.
10911 (restore_infcall_suspend_state): Ifdef out unused inf.
10912 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10913 (jit_frame_sniffer): Remove unused inf_data.
10914
df54f8eb
AR
109152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10916
10917 * c-exp.y (classify_inner_name): Remove unused type.
10918 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10919 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10920 need_escape.
10921 (c_get_string): Remove unused kind.
10922 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10923
5799c0b9
AR
109242013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10925
10926 * charset.c (intermediate_encoding): Remove unused i.
10927 * completer.c (signal_completer): Remove unused i.
10928 * continuations.c (discard_my_continuations_1): Remove unused
10929 continuation_ptr.
10930 * corelow.c (core_close): Remove unuseD name.
10931 (get_core_siginfo): Remove unused pid.
10932 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10933 i, cps.
10934 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10935 (loclist_describe_location): Remove unused first.
10936 * event-top.c (command_line_handler): Remove unused got_eof.
10937 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10938 (resize_section_table): Remove unused old_value.
10939 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10940 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10941 * i386-tdep.c (i386_process_record): Remove unused rex.
10942 * infcmd.c (get_return_value): Remove unused uiout.
10943 * jv-lang.c (type_from_class): Remove unused is_array.
10944 * jv-valprint.c (java_val_print): Remove unused i.
10945 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10946 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10947 * m2-typeprint.c (m2_print_type): Remove unused code.
10948 * macroexp.c (get_character_constant): Remove unused body_start.
10949 (macro_stringify): Remove unused result.
10950 * objc-lang.c (find_methods): Remove unused gdbarch.
10951 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10952 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10953 * stack.c (print_frame_args): Remove unused summary.
10954 * thread.c (thread_apply_command): Remove unused p.
10955 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10956 * valops.c (search_struct_method): Remove unused skip.
10957 * valprint.c (generic_val_print): Remove unused byte_order.
10958 * varobj.c (varobj_update): Remove unused changed.
10959 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10960 (alias_command): Remove unused c.
10961 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10962 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10963 format.
10964 (mi_cmd_data_write_memory): Remove unused word_format.
10965 (mi_cmd_data_write_memory_bytes): Remove unused r.
10966 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10967 p_start, p_end.
10968 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10969 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10970 line_width.
10971
c656bca5
AR
109722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10973
10974 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10975 * symtab.c (iterate_over_symtabs): Remove unused s.
10976 (find_pc_sect_symtab): Remove unused pspAce.
10977 (find_pc_sect_line): Remove unused alt_symtab.
10978 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10979 (completion_list_add_name): Remove unused newsize.
10980
7078baeb
TT
109812013-01-31 Tom Tromey <tromey@redhat.com>
10982
10983 PR c++/14998:
10984 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10985 TYPE_CODE_FUNC.
10986
c2e8b827
AR
109872013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10988
10989 * target.c (target_read_string): Remove unused origlen.
10990
0e43993a
AR
109912013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10992
10993 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10994 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10995 * ax-general.c (ax_print): Remove unused is_float.
10996 * blockframe.c (block_innermost_frame): Remove unused start, end.
10997 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10998
765a97ab
AR
109992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11000
11001 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11002 (svr4_read_so_list): Remove unused lmo.
11003 * solib-target.c (solib_target_relocate_section_addresses): Remove
11004 unused flags.
11005
a99dad3d
TT
110062013-01-30 Tom Tromey <tromey@redhat.com>
11007
11008 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11009
3bff1ecd
TT
110102013-01-30 Tom Tromey <tromey@redhat.com>
11011
11012 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11013 * utils.c (gnu_debuglink_crc32): Remove.
11014 * utils.h (gnu_debuglink_crc32): Don't declare.
11015
7d455152
TT
110162013-01-30 Tom Tromey <tromey@redhat.com>
11017
11018 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11019 (read_structure_type, read_enumeration_type): Remove cast.
11020
abee88f2
TT
110212013-01-30 Tom Tromey <tromey@redhat.com>
11022
11023 * dwarf2read.c (read_namespace_type): Remove cast.
11024 (read_typedef): Likewise.
11025
8d9878a4
TT
110262013-01-29 Tom Tromey <tromey@redhat.com>
11027
11028 * dwarf2read.c (free_dwo_file): Remove assert.
11029
a543d2a9
TT
110302013-01-29 Tom Tromey <tromey@redhat.com>
11031
11032 * value.c (deprecated_set_value_modifiable): Remove.
11033 * value.h (deprecated_set_value_modifiable): Remove.
11034
bed911e5
DE
110352013-01-28 Doug Evans <dje@google.com>
11036
11037 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11038 to addresses from dwo files.
11039
28c64fc2
SCR
110402013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11041
11042 * valops.c (find_overload_match): Remove unused argument 'lax'.
11043 * value.h: Remove unused argument 'lax' from the declaration of
11044 find_overload_match.
11045 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11046 to find_overload_match.
11047 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11048 argument to find_overload_match.
11049
4d4ec4e5
TT
110502013-01-25 Tom Tromey <tromey@redhat.com>
11051
11052 * dwarf2read.c (processing_has_namespace_info): Remove.
11053 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11054 (process_die, read_func_scope, dwarf2_start_symtab)
11055 (new_symbol_full): Update.
11056
195a3f6c
TT
110572013-01-25 Tom Tromey <tromey@redhat.com>
11058
11059 * cp-namespace.c (cp_set_block_scope): Remove.
11060 * cp-support.h (cp_set_block_scope): Remove.
11061 * dbxread.c: Include block.h.
11062 (cp_set_block_scope): New function.
11063 (process_one_symbol): Update.
11064 * dwarf2read.c (read_func_scope): Use block_set_scope.
11065
8ba0730a
PA
110662013-01-25 Pedro Alves <palves@redhat.com>
11067
11068 * remote.c (add_current_inferior_and_thread): Tweak comment.
11069
12aaed36
TT
110702013-01-25 Tom Tromey <tromey@redhat.com>
11071
11072 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11073 (cp_add_using_directive): Add 'copy_names' argument.
11074 * cp-support.h (cp_add_using_directive): Update.
11075 (struct using_direct) <import_src, import_dest, alias,
11076 declaration>: Now const.
11077 * dwarf2read.c (read_import_statement): Use obconcat.
11078 Don't copy names passed to cp_add_using_directive.
11079
7fc75ca7
TT
110802013-01-25 Tom Tromey <tromey@redhat.com>
11081
11082 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11083
3405876a
PA
110842013-01-25 Pedro Alves <palves@redhat.com>
11085
11086 * remote.c (stop_reply_extract_thread): New.
11087 (add_current_inferior_and_thread): New parameter 'wait_status'.
11088 Handle it.
11089 (remote_start_remote): Pass wait status to
11090 add_current_inferior_and_thread.
11091 (extended_remote_run): Update comment.
11092 (extended_remote_create_inferior_1): Pass wait status to
11093 add_current_inferior_and_thread.
11094
8954db33
AB
110952013-01-25 Andrew Burgess <aburgess@broadcom.com>
11096 Ulrich Weigand <uweigand@de.ibm.com>
11097
11098 * valarith.c (value_vector_widen): New function for replicating a
11099 scalar into a vector.
11100 (value_binop): Use value_vector_widen to widen scalar to vector
11101 rather than casting, this better matches gcc C behaviour.
11102 * valops.c (value_casst): Update logic for casting between vector
11103 types, and for casting from scalar to vector, try to match gcc C
11104 behaviour.
11105 * value.h (value_vector_widen): Declare.
11106 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11107 function, handle special case for casting scalar to vector.
11108 (opencl_relop): Use opencl_value_cast.
11109 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11110 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11111 in order to use opencl_value_cast.
11112
843b20dc
YQ
111132013-01-25 Yao Qi <yao@codesourcery.com>
11114
11115 * event-loop.c: Include "queue.h".
11116 (gdb_event_p): New typedef.
11117 (DECLARE_QUEUE_P): Use.
11118 (DEFINE_QUEUE_P): Use.
11119 (async_queue_event): Remove.
11120 (gdb_event_xfree): New.
11121 (initialize_event_loop): New.
11122 (process_event): Use QUEUE macros.
11123 (event_queue): Remove.
11124 (gdb_wait_for_event): Caller update.
11125 (check_async_event_handlers): Likewise.
11126 (poll_timers): Likewise.
11127 * event-loop.h (initialize_event_loop): Declare.
11128 * event-loop.c (gdb_event_xfree): New.
11129 * top.c (gdb_init): Call initialize_event_loop.
11130
20ad8856
YQ
111312013-01-25 Yao Qi <yao@codesourcery.com>
11132
11133 * event-loop.c (async_queue_event): Remove one parameter
11134 'position'. Remove code handling 'position' == TAIL.
11135 (gdb_wait_for_event): Caller update.
11136 (check_async_event_handlers): Caller update.
11137 (poll_timers): Caller update.
11138 * event-loop.h (enum queue_position): Remove.
11139
3bbbe775
MK
111402013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11141
11142 * MAINTAINERS: Update my email.
11143
a87d9ac4
YQ
111442013-01-25 Yao Qi <yao@codesourcery.com>
11145
11146 * main.c (print_gdb_help): Remove "--epoch" from the help
11147 message.
11148
2077afdd
TD
111492013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11150
11151 * symtab.c (skip_prologue_using_sal): Consider a file
11152 change the same as an increased line number
11153
63da4037
TD
111542013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11155
30e8ee25 11156 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11157
45e6c716
TT
111582013-01-24 Tom Tromey <tromey@redhat.com>
11159
11160 * ada-lang.h (ada_decode_symbol): Make return type const.
11161 * ada-lang.c (ada_decode_symbol): Likewise.
11162
b1ae631a
DE
111632013-01-23 Doug Evans <dje@google.com>
11164
11165 * linespec.c (find_linespec_symbols): Make static.
11166
55a78401
SDJ
111672013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11168
11169 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11170 type on float conversion for complex type.
11171
bea883fd
SCR
111722013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11173
11174 Add a new class gdb.Architecture which exposes GDB's
11175 internal representation of architecture via GDB Python API.
11176 * Makefile.in: Add entries corresponding to the new file
11177 python/py-arch.c.
11178 * NEWS (Python Scripting): Add entries for the new class
11179 gdb.Architecture and the new method gdb.Frame.architecture.
11180 * python/py-arch.c: Implement gdb.Architecture class.
11181 * python/py-frame.c (frapy_arch): Implement the method
11182 gdb.Frame.architecture().
11183 (frame_object_methods): Add 'architecture' to the method table.
11184 * python/python-internal.h: Add declarations of new utility
11185 functions.
11186 * python/python.c (_initialize_python): Initialize
11187 gdb.Architecture class.
11188
796a7ff8
DE
111892013-01-23 Doug Evans <dje@google.com>
11190
11191 Work around binutils/15021.
11192 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11193 type_unit_group out of union s. All uses updated.
11194 (read_index_from_section): Watch for index version 8.
11195 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11196 an imported symtab.
11197 (write_psymtabs_to_index): Increment version number to 8.
11198
0928e93d
PA
111992013-01-22 Pedro Alves <palves@redhat.com>
11200
11201 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11202 user-visible.
11203
9c97429f
PA
112042013-01-22 Pedro Alves <palves@redhat.com>
11205
11206 * annotate.c (annotate_breakpoints_changed): Rename to ...
11207 (annotate_breakpoints_invalid): ... this. Make static.
11208 (breakpoint_changed): Adjust.
11209 (_initialize_annotate): Always install the observers. Install a
11210 "breakpoint_created" observer.
11211 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11212 * breakpoint.c (set_breakpoint_condition)
11213 (breakpoint_set_commands, do_map_commands_command)
11214 (init_raw_breakpoint, clear_command, set_ignore_count)
11215 (enable_breakpoint_disp): No longer call
11216 annotate_breakpoints_changed.
11217
bd00c694
PA
112182013-01-22 Pedro Alves <palves@redhat.com>
11219
11220 * annotate.c: Include "inferior.h".
11221 (frames_invalid_emitted)
11222 (breakpoints_invalid_emitted): New globals.
11223 (async_background_execution_p): New function.
11224 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11225 emitting the annotation if it has already been emitted.
11226 (annotate_display_prompt): New function.
11227 * annotate.h (annotate_display_prompt): New declaration.
11228 * event-top.c: Include annotate.h.
11229 (display_gdb_prompt): Call annotate_display_prompt.
11230
187d10dd
PA
112312013-01-22 Pedro Alves <palves@redhat.com>
11232
11233 * annotate.c (ignore_count_changed): Delete.
11234 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11235 (annotate_ignore_count_change): Delete.
11236 (annotate_stopped): Don't emit a delayed breakpoints-changed
11237 annotation.
11238 * annotate.h (annotate_ignore_count_change): Delete.
11239 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11240 annotate_ignore_count_change.
11241
d84cf7eb
TT
112422013-01-22 Tom Tromey <tromey@redhat.com>
11243
11244 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11245 require_rvalue for a register location.
11246
8f1d5693
MK
112472013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11248
11249 * breakpoint.c (print_one_breakpoint_location): Add MI
11250 field 'thread-groups' when printing a breakpoint.
11251 (output_thread_groups): New function.
11252
aa6199c6
SCR
112532013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11254
11255 * python/lib/gdb/commands/explore.py
11256 (CompoundExplorer.explore_expr): Correct the name of a method
11257 being invoked.
11258 (ExploreTypeCommand.invoke): Add a missing 'return'.
11259
d2afef13
TT
112602013-01-21 Tom Tromey <tromey@redhat.com>
11261
11262 * gdb_obstack.h (obconcat): Move declaration here, from...
11263 * symfile.h (obconcat): ... here.
11264 * gdb_obstack.c: New file.
11265 (obconcat): Move from...
11266 * symfile.c (obconcat): ... here.
11267 * Makefile.in (SFILES): Add gdb_obstack.c.
11268 (COMMON_OBS): Add gdb_obstack.o.
11269
10f0c4bb
TT
112702013-01-21 Tom Tromey <tromey@redhat.com>
11271
11272 * symfile.h (obsavestring): Don't declare.
11273 * symfile.c (obsavestring): Remove.
11274 * ada-exp.y: Use obstack_copy0, not obsavestring.
11275 * ada-lang.c: Use obstack_copy0, not obsavestring.
11276 * coffread.c: Use obstack_copy0, not obsavestring.
11277 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11278 * dbxread.c: Use obstack_copy0, not obsavestring.
11279 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11280 * jit.c: Use obstack_copy0, not obsavestring.
11281 * mdebugread.c: Use obstack_copy0, not obsavestring.
11282 * psymtab.c: Use obstack_copy0, not obsavestring.
11283 * stabsread.c: Use obstack_copy0, not obsavestring.
11284 * xcoffread.c: Use obstack_copy0, not obsavestring.
11285
86f62fd7
TT
112862013-01-21 Tom Tromey <tromey@redhat.com>
11287
11288 * dwarf2read.c (fixup_go_packaging): Save package name
11289 on objfile obstack.
11290 * gdbtypes.c (init_type): Don't copy name.
11291
15d034d0
TT
112922013-01-21 Tom Tromey <tromey@redhat.com>
11293
11294 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11295 const.
11296 (struct attribute) <u.str>: Now const.
11297 (struct fnfieldlist) <name>: Now const.
11298 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11299 (partial_die_parent_scope): Make return type const.
11300 (partial_die_full_name, add_partial_symbol): Update.
11301 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11302 'name' const.
11303 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11304 (read_file_scope, read_func_scope, dwarf2_add_field)
11305 (dwarf2_add_member_fn, read_structure_type)
11306 (process_enumeration_scope, read_array_type, read_module_type)
11307 (read_base_type, read_subrange_type): Update.
11308 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11309 (new_symbol_full, guess_full_die_structure_name): Update.
11310 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11311 (dwarf2_name): Return const type.
11312 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11313 const.
11314
748e18ae
TT
113152013-01-21 Tom Tromey <tromey@redhat.com>
11316
11317 * gdbtypes.c (init_type): Make 'name' const.
11318 * gdbtypes.h (init_type): Update.
11319
46212e0b
TT
113202013-01-21 Tom Tromey <tromey@redhat.com>
11321
11322 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11323 (start_symtab): Make 'name' and 'dirname' const. Use
11324 set_last_source_file.
11325 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11326 (last_source_file): Define. Now static.
11327 (set_last_source_file, get_last_source_file): New functions.
11328 * buildsym.h (last_source_file): Don't declare.
11329 (start_symtab): Update.
11330 (set_last_source_file, get_last_source_file): Declare.
11331 * coffread.c (complete_symtab): Use set_last_source_file.
11332 (coff_end_symtab): Likewise.
11333 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11334 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11335 set_last_source_file.
11336 (process_one_symbol): Use get_last_source_file.
11337 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11338 (psymtab_to_symtab_1): Use get_last_source_file.
11339 * xcoffread.c (process_linenos): Use get_last_source_file.
11340 (complete_symtab): Use set_last_source_file.
11341 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11342 (scan_xcoff_symtab): Use set_last_source_file.
11343
9d2ceabe
TT
113442013-01-21 Tom Tromey <tromey@redhat.com>
11345
11346 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11347 (symbol_set_names): Remove casts. Handle field const-ness.
11348
cfc594ee
TT
113492013-01-21 Tom Tromey <tromey@redhat.com>
11350
11351 * dwarf2read.c (new_symbol_full): Remove cast.
11352 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11353 * symtab.h (symbol_set_demangled_name): Update.
11354
5484b13a
TT
113552013-01-21 Tom Tromey <tromey@redhat.com>
11356
11357 * main.c (captured_main): Call bfd_init.
11358
1605ef26
TT
113592013-01-21 Tom Tromey <tromey@redhat.com>
11360
11361 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11362 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11363 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11364 * NEWS: Update.
11365
3b74cdc3
JK
113662013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11367
11368 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11369
5a352474
JK
113702013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11371
11372 Fix gdb.fortran/common-block.exp crash in PIE mode.
11373 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11374 LOC_COMMON_BLOCK.
11375 * f-valprint.c (info_common_command_for_block): Expect
11376 LOC_COMMON_BLOCK in gdb_assert.
11377 * symtab.h (struct general_symbol_info): Update comment for the
11378 common_block member.
11379 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11380 (enum address_class): New member LOC_COMMON_BLOCK.
11381
c60797fd
DB
113822013-01-18 David Blaikie <dblaikie@gmail.com>
11383
11384 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11385
46f35228
TT
113862013-01-18 Tom Tromey <tromey@redhat.com>
11387
11388 PR c++/14999:
11389 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11390 Call require_rvalue.
11391
257e7a09
YQ
113922013-01-18 Yao Qi <yao@codesourcery.com>
11393
11394 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11395 (dbx_read_symtab): New declaration.
11396 (dbx_psymtab_to_symtab): Delete.
11397 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11398 Rename parameter PST to SELF. Exchanged two parameters.
11399 (start_psymtab): Caller update.
11400 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11401 (dwarf2_read_symtab): New declaration.
11402 (dwarf2_psymtab_to_symtab): Delete.
11403 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11404 Rename parameter PST to SELF. Exchanged two parameters.
11405 (create_partial_symtab): Caller update.
11406 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11407 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11408 Rename parameter PST to SELF. Exchanged two parameters.
11409 (parse_partial_symbols, new_psymtab): Caller update.
11410 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11411 two parameters.
11412 * psymtab.c (psymtab_to_symtab): Caller update.
11413 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11414 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11415 Rename parameter PST to SELF. Exchanged two parameters.
11416 (xcoff_start_psymtab): Caller update.
11417
0de5618e
YQ
114182013-01-18 Yao Qi <yao@codesourcery.com>
11419
11420 * infrun.c (proceed): Rename local variable 'oneproc' to
11421 'force_step'.
11422
5c04624b
DE
114232013-01-17 Doug Evans <dje@google.com>
11424
848e3e78
DE
11425 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11426 (dw2_build_type_unit_groups): Delete. All uses updated.
11427
5c04624b
DE
11428 * symtab.h (struct symbol_search): Add comment.
11429
d84fca2c
JK
114302013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * symtab.c (compare_filenames_for_search): New comment for
11433 HAS_DRIVE_SPEC.
11434
6108433d
TT
114352013-01-17 Tom Tromey <tromey@redhat.com>
11436
11437 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11438
c89ffd86
JK
114392013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11440
11441 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11442 initialize it by existing make_cleanup. Call new do_cleanups.
11443
db2b2972
TT
114442013-01-17 Tom Tromey <tromey@redhat.com>
11445
11446 * cp-abi.c (cp_abi_completer): New function.
11447 (_initialize_cp_abi): Set completer for "set cp-abi".
11448
be7d37a2
TT
114492013-01-17 Tom Tromey <tromey@redhat.com>
11450
11451 * mem-break.c: Remove obsolete comment.
11452 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11453
c9fb1240
SD
114542012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11455
11456 * jit.c (jit_reader_load_command): Interpret the jit reader name
11457 as an absolute path if it begins with a forward slash.
11458
db334a01
SD
114592012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11460
11461 PR gdb/14550
11462
11463 * jit.c (finalize_symtab): Ensure that only the global block has a
11464 NULL superblock.
11465
7d928dac
PA
114662013-01-17 Pedro Alves <palves@redhat.com>
11467
11468 * acinclude.m4: Include ../config/plugins.m4,
11469 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11470 * Makefile.in (aclocal_m4_deps): Update.
11471 * aclocal.m4: Renegerate.
11472
fb8cf7c5
DE
114732013-01-16 Doug Evans <dje@google.com>
11474
11475 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11476
ab04a2af
TT
114772013-01-16 Pedro Alves <palves@redhat.com>
11478 Tom Tromey <tromey@redhat.com>
11479
11480 PR cli/7221:
11481 * NEWS: Add "catch signal".
11482 * breakpoint.c (base_breakpoint_ops): No longer static.
11483 (bpstat_explains_signal): New function.
11484 (init_catchpoint): No longer static.
11485 (base_breakpoint_explains_signal): New function.
11486 (base_breakpoint_ops): Initialize new field.
11487 * breakpoint.h (enum bpstat_signal_value): New.
11488 (struct breakpoint_ops) <explains_signal>: New field.
11489 (bpstat_explains_signal): Remove macro, declare as function.
11490 (base_breakpoint_ops, init_catchpoint): Declare.
11491 * break-catch-sig.c: New file.
11492 * inferior.h (signal_catch_update): Declare.
11493 * infrun.c (signal_catch): New global.
11494 (handle_syscall_event): Update for change to
11495 bpstat_explains_signal.
11496 (handle_inferior_event): Likewise. Always handle random signals
11497 via bpstats.
11498 (signal_cache_update): Check signal_catch.
11499 (signal_catch_update): New function.
11500 (_initialize_infrun): Initialize signal_catch.
11501 * Makefile.in (SFILES): Add break-catch-sig.c.
11502 (COMMON_OBS): Add break-catch-sig.o.
11503
8ac3646f
TT
115042013-01-16 Tom Tromey <tromey@redhat.com>
11505
11506 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11507 (print_one_catch_solib, print_one_catch_syscall)
11508 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11509 "catch-type".
11510
5a18e302
YQ
115112013-01-16 Yao Qi <yao@codesourcery.com>
11512
11513 * printcmd.c (current_display_number): Make it static.
11514
3f01d0d0
YQ
115152013-01-16 Yao Qi <yao@codesourcery.com>
11516
11517 * infcmd.c (step_once): Don't check '!single_inst' as it was
11518 checked before.
11519
1ed59174
JK
115202013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11521
11522 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11523
44478ab3
TT
115242013-01-14 Tom Tromey <tromey@redhat.com>
11525
11526 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11527 set command.
11528 * command.h (add_setshow_string_noescape_cmd): Update.
11529 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11530 (complete_set_gnutarget): New function.
11531 (_initialize_core): Set the "set gnutarget" completer.
11532
06d66ee9
TT
115332013-01-14 Tom Tromey <tromey@redhat.com>
11534
11535 PR symtab/14442:
11536 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11537 (c_type_print_modifier): Likewise.
11538 * dwarf2read.c (read_tag_restrict_type): New function.
11539 (read_type_die_1): Handle DW_TAG_restrict_type.
11540 * gdbtypes.c (make_restrict_type): New function.
11541 (recursive_dump_type): Handle TYPE_RESTRICT.
11542 * gdbtypes.h (enum type_flag_values): Renumber.
11543 (enum type_instance_flag_value): Add
11544 TYPE_INSTANCE_FLAG_RESTRICT.
11545 (TYPE_RESTRICT): New macro.
11546 (make_restrict_type): Declare.
11547
c9bf0622
TT
115482013-01-14 Tom Tromey <tromey@redhat.com>
11549
11550 PR symtab/14931:
11551 * psymtab.c (struct psymtab_state): New.
11552 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11553 functions.
11554 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11555 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11556
44d594fd
PA
115572013-01-14 Richard Sharman <richard_sharman@mitel.com>
11558 Pedro Alves <palves@redhat.com>
11559
11560 PR remote/14786
11561
11562 * remote.c (remote_threads_info): Make a copy of the reply from
11563 qfThreadInfo and use that instead of rs->buf.
11564
442e4d9c
YQ
115652013-01-14 Yao Qi <yao@codesourcery.com>
11566
11567 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11568 (dbx_psymtab_to_symtab): Likewise.
11569 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11570 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11572
5b12a61c
JK
115732013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11574
11575 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11576 make_cleanup_restore_current_language. Call set_language. Move
11577 OLD_CHAIN and INNER_CHAIN cleanups.
11578 * utils.c (do_restore_current_language)
11579 (make_cleanup_restore_current_language): New functions.
11580 * utils.h (make_cleanup_restore_current_language): New declaration.
11581
f0a4b570
JK
115822013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11583
11584 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11585 non-existing files.
11586
57b3c00c
JK
11587 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11588 non-existing files if FILENAME is already absolute.
11589
daefa854
JK
115902013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11591
11592 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11593 fputs_filtered. Append trailing newline.
11594
ca9c6ee2
YQ
115952013-01-11 Yao Qi <yao@codesourcery.com>
11596 Stan Shebs <stan@codesourcery.com>
11597
11598 * psymtab.c (init_psymbol_list): Clarify the comment.
11599
f28045c2
YQ
116002013-01-11 Yao Qi <yao@codesourcery.com>
11601
11602 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11603 (update_dprintf_command_list): Assert that 'printf_line' is
11604 non-null. Remove condition check.
11605
da5132d3
JK
116062013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11607
11608 Code cleanup.
11609 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11610 type const char *.
11611 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11612 const char *.
11613 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11614
843e694d
AG
116152013-01-09 Anthony Green <green@moxielogic.com>
11616
11617 * cp-abi.c (cplus_print_vtable): Don't return value from void
11618 function.
11619 * ada-lang.c (re_set_catch_assert): Ditto.
11620
da51c347
DE
116212013-01-09 Doug Evans <dje@google.com>
11622
11623 * symfile.h (quick_symbol_functions): Delete member
11624 pre_expand_symtabs_matching. All uses removed.
11625 * dwarf2read.c (dw2_lookup_symbol): Implement.
11626 (dw2_do_expand_symtabs_matching): Delete.
11627 (dw2_pre_expand_symtabs_matching): Delete.
11628 (struct dw2_symtab_iterator): New type.
11629 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11630 (dw2_expand_symtabs_for_function): Rewrite.
11631 (dwarf2_gdb_index_functions): Update.
11632 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11633 (psym_functions): Update.
11634
b2259038
TT
116352013-01-09 Tom Tromey <tromey@redhat.com>
11636
11637 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11638 * configure: Rebuild.
11639 * configure.ac: Add somread.o to the build if BFD has SOM
11640 support.
11641 * somread.c: Include som/aout.h, not syms.h.
11642 (som_symtab_read): Use som_external_symbol_dictionary_record.
11643 Unpack records manually.
11644 (_initialize_somread): Declare.
11645
bdad4180
MF
116462012-01-08 Mike Frysinger <vapier@gentoo.org>
11647
11648 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11649 Cast return_address to 64bits.
11650
03cdf680
HZ
116512013-01-08 Hui Zhu <hui_zhu@mentor.com>
11652
11653 * printcmd.c: Remove define of function output_command.
11654 * tracepoint.c: Remove extern of function output_command.
11655 * valprint.h: (output_command): New extern.
11656
8a808554
TT
116572013-01-07 Tom Tromey <tromey@redhat.com>
11658
11659 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11660 Remove.
11661 (objc_language_defn): Use c_printchar, c_printstr,
11662 c_emit_char.
11663
e93a8774
TT
116642013-01-07 Tom Tromey <tromey@redhat.com>
11665
11666 PR cli/7719:
11667 * NEWS: Update.
11668 * ada-valprint.c (printstr, print_field_values): Remove
11669 "inspect_it" code.
11670 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11671 code.
11672 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11673 code.
11674 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11675 * main.c (captured_main): Remove "epoch" argument.
11676 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11677 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11678 * p-valprint.c (pascal_object_print_value_fields): Remove
11679 "inspect_it" code.
11680 * printcmd.c (print_command_1): Remove 'inspect' argument.
11681 (print_command, call_command): Update.
11682 (inspect_command): Remove.
11683 (_initialize_printcmd): Make "inspect" an alias for "print".
11684 * top.c (epoch_interface): Remove.
11685 * top.h (epoch_interface): Remove.
11686 * valprint.c (user_print_options): Update.
11687 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11688 * valprint.h (struct value_print_options) <inspect_it>: Remove
11689 field.
11690
116912013-01-04 Tom Tromey <tromey@redhat.com>
11692
11693 * valprint.h (read_string): Add 'extern'.
11694
b967eb24
JB
116952013-01-07 Joel Brobecker <brobecker@adacore.com>
11696
11697 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11698 used to decide whether to define darwin_read_dyld_info or not.
11699
78a8b30e
PM
117002013-01-03 Pierre Muller <muller@sourceware.org>
11701
11702 * main.c (relocate_gdb_directory): Avoid calling stat function
11703 if DIR is empty.
11704
50da2f25
YQ
117052013-01-03 Yao Qi <yao@codesourcery.com>
11706
11707 * psymtab.c (fixup_psymbol_section): Update declaration.
11708 (fixup_psymbol_section): Remove code returning value.
11709
e7e8980f
YQ
117102013-01-03 Yao Qi <yao@codesourcery.com>
11711
11712 * symtab.h: Remove some out of date comments.
11713 (enum exception_event_kind): Move it ...
11714 * breakpoint.c: ... here.
11715
569283d4
MF
117162013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11717
9f9d9a96 11718 PR gdb/14405
569283d4
MF
11719 * darwin-nat.c (darwin_read_dyld_info): Only build if
11720 TASK_DYLD_INFO_COUNT is defined.
11721 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11722 TASK_DYLD_INFO_COUNT is defined.
11723
2e36fbea
TT
117242013-01-02 Tom Tromey <tromey@redhat.com>
11725
11726 * symfile.h (struct ecoff_debug_hack): Remove.
11727 * objfiles.c: Don't include mdebugread.h.
11728
4f05add4
TT
117292013-01-02 Tom Tromey <tromey@redhat.com>
11730
11731 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11732 * configure.ac: Check for Mach-O support in BFD. Update
11733 CONFIG_OBS.
11734 * configure: Rebuild.
11735
def63ff0
TT
117362013-01-02 Tom Tromey <tromey@redhat.com>
11737
11738 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11739 * configure.ac: Use GDB_AC_CHECK_BFD.
11740 * configure: Rebuild.
11741
60c5dd93
MK
117422013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11743
11744 * MAINTAINERS: Update my email.
11745
6e58437e
JB
117462013-01-01 Joel Brobecker <brobecker@adacore.com>
11747
11748 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11749
627fe805
JB
117502013-01-01 Joel Brobecker <brobecker@adacore.com>
11751
11752 * rs6000-nat.c (bss_data_overlap): New function.
11753 (vmap_symtab): Use it to adjust the .bss section's offset.
11754
28e7fd62
JB
117552013-01-01 Joel Brobecker <brobecker@adacore.com>
11756
11757 Update year range in copyright notice of all files.
11758
e93a8774 117592013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11760
11761 * top.c (print_gdb_version): Update copyright year.
11762
72b20e9c 11763For older changes see ChangeLog-2012.
c906108c
SS
11764\f
11765Local Variables:
11766mode: change-log
11767left-margin: 8
11768fill-column: 74
11769version-control: never
57da7796 11770coding: utf-8
c906108c 11771End:
This page took 2.147132 seconds and 4 git commands to generate.