Fixes to powerpc64 gold ELFv2 support
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ef1bc9e7
AM
12013-11-15 Alan Modra <amodra@gmail.com>
2
3 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
4 (ppc64_desc_entry_point): ..this. Update comments here and at
5 call points.
6 (ppc64_standard_linkage1, ppc64_standard_linkage2,
7 ppc64_standard_linkage3): Update comments.
8 (ppc64_standard_linkage4, ppc64_standard_linkage5,
9 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
10 patterns.
11 (ppc64_standard_linkage4_target): New function.
12 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
13 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
14 nop match. Fix comment wrap.
15
36fa8042
PA
162013-11-14 Pedro Alves <palves@redhat.com>
17
18 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
19 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
20
4f5d7f63
PA
212013-11-14 Pedro Alves <palves@redhat.com>
22
23 * infrun.c (struct execution_control_state)
24 <stepped_after_stopped_by_watchpoint>: New field.
25 (get_inferior_stop_soon): New function.
26 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
27 moved to struct execution_control_state -- adjust. Use
28 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
29 new function.
30 (handle_signal_stop): New function, factored out from
31 handle_inferior_event.
32
47591c29
PA
332013-11-14 Pedro Alves <palves@redhat.com>
34
35 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
36 return a boolean.
37 * breakpoint.c (bpstat_explains_signal): Adjust to return a
38 boolean.
39 (explains_signal_watchpoint, base_breakpoint_explains_signal):
40 Adjust to return a boolean.
41 * breakpoint.h (enum bpstat_signal_value): Delete.
42 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
43 (bpstat_explains_signal): Likewise.
44 * infrun.c (handle_inferior_event) <random signal checks>:
45 bpstat_explains_signal now returns a boolean - adjust. No longer
46 consider hiding signals.
47
bac7d97b
PA
482013-11-14 Pedro Alves <palves@redhat.com>
49
50 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
51 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
52 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
53 BPSTAT_SIGNAL_HIDE.
54 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
55 instead of BPSTAT_SIGNAL_HIDE.
56 * infrun.c (handle_inferior_event): Rework random signal checks.
57
ce12b012
PA
582013-11-14 Pedro Alves <palves@redhat.com>
59
60 * infrun.c (struct execution_control_state): Remove
61 'random_signal' field.
62 (handle_syscall_event): Use bpstat_causes_stop instead of
63 bpstat_explains_signal. Don't set ecs->random_signal.
64 (handle_inferior_event): New 'random_signal' local.
65 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
66 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
67 bpstat_explains_signal. Don't set ecs->random_signal.
68 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
69 ecs->random_signal.
70
05ba8510
PA
712013-11-14 Pedro Alves <palves@redhat.com>
72
73 * infrun.c (handle_inferior_event): Move comment from the
74 function's body to the function's description, adjusted.
75
5c09a2c5
PA
762013-11-14 Pedro Alves <palves@redhat.com>
77
78 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
79 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
80 Assert we never fall through out of the TARGET_WAITKIND_LOADED
81 case.
82
91822956
TT
832013-11-14 Tom Tromey <tromey@redhat.com>
84
85 * python/py-linetable.c (ltpy_has_line)
86 (ltpy_get_all_source_lines): Fix loop termination condition.
87
403cb6b1
JB
882013-11-14 Joel Brobecker <brobecker@adacore.com>
89
90 * mi/mi-parse.h (struct mi_parse) <language>: New field.
91 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
92 PARSE->LANGUAGE during command execution, if set.
93 * mi/mi-parse.c: Add "language.h" #include.
94 (mi_parse): Add parsing of "--language" command option.
95
96 * NEWS: Add entry mentioning the new "--language" command option.
97
b5be8ce0
JB
982013-11-14 Pedro Alves <palves@redhat.com>
99 Joel Brobecker <brobecker@adacore.com>
100
101 * cli/cli-utils.h (extract_arg_const): Add declaration.
102 * cli/cli-utils.c (extract_arg_const): New function.
103 (extract_arg): Reimplement using extract_arg_const.
104
671afef6
JB
1052013-11-14 Joel Brobecker <brobecker@adacore.com>
106
107 * language.h: Add "symtab.h" #include.
108
6c1b0f7b
DE
1092013-11-13 Doug Evans <xdje42@gmail.com>
110
111 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
112 specific breakpoints, don't evaluate breakpoint condition if
113 different thread.
114
74921315
KS
1152013-11-13 Keith Seitz <keiths@redhat.com>
116
248ace2e 117 PR c++/7935
74921315
KS
118 PR c++/10541
119 * cp-support.c (insepct_type): Add support for substituting
120 namespace aliases, too.
121 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
122 for DW_TAG_imported_declaration.
123 (add_partial_symbol): Likewise.
124 (process_die): Handle namespace aliases with
125 read_namespace_alias.
126 (die_needs_namespace): Add DW_TAG_imported_declaration.
127 (read_namespace_alias): New function.
128 (load_partial_dies): Load DW_TAG_imported_declaration, too.
129 (new_symbol_full): Handle DW_TAG_imported_declaration.
130
793156e6
KS
1312013-11-13 Keith Seitz <keiths@redhat.com>
132
133 * p-exp.y (uptok): Make first parameter const.
134 (yylex): Make `tokstart' and `tokptr' const.
135 Don't copy the lexer input to a temporary buffer.
136 Make `p' const.
137 Remove const workaround for parse_escape.
138 Create a temporary buffer for a convenience variable instead
139 of doing in-place modification of the input.
140 If a match is found with a different case from the input,
141 do not change the input at all.
142 Use `tmp' to construct the resultant stoken instead of
143 `tokstart'.
144
c42bd95a
DE
1452013-11-13 Doug Evans <xdje42@gmail.com>
146
147 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
148
93973826
JB
1492013-11-13 Joel Brobecker <brobecker@adacore.com>
150
151 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
152 entry with "ada-exceptions".
153
846060df
JB
1542013-11-13 Joel Brobecker <brobecker@adacore.com>
155
156 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
157 after re-initialization of OBJFILE's obstack.
158
5efd1b2b 1592013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
160
161 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
162 bs->stop != 0 on entry. Update function comment. Simplify early
163 exit for frame mismatch. Reindent rest of function.
164
ee7615e1
AA
1652013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
166
167 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
168 NULL.
169
8943b874
DE
1702013-11-12 Doug Evans <dje@google.com>
171
172 Work around gold/15646.
173 * dwarf2read.c (read_index_from_section): Update comment.
174 (struct dw2_symtab_iterator): New member global_seen.
175 (dw2_symtab_iter_init): Initialize it.
176 (dw2_symtab_iter_next): Skip duplicate global symbols.
177 (dw2_expand_symtabs_matching): Ditto.
178
a8a9844d
JB
1792013-11-12 Joel Brobecker <brobecker@adacore.com>
180
181 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
182 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
183 command.
184 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
185 (mi_cmd_info_ada_exceptions): New function.
186 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
187
778865d3
JB
1882013-11-12 Joel Brobecker <brobecker@adacore.com>
189
190 * ada-lang.h: #include "vec.h".
191 (struct ada_exc_info): New.
192 (ada_exc_info): New typedef.
193 (DEF_VEC_O(ada_exc_info)): New vector.
194 (ada_exceptions_list): Add declaration.
195 * ada-lang.c (ada_is_exception_sym)
196 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
197 (sort_remove_dups_ada_exceptions_list)
198 (ada_exc_search_name_matches, ada_add_standard_exceptions)
199 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
200 (ada_exceptions_list_1, ada_exceptions_list)
201 (info_exceptions_command): New function.
202 (_initialize_ada_language): Add "info exception" command.
203
bc79de95
PM
2042013-11-11 Phil Muldoon <pmuldoon@redhat.com>
205
206 PR python/15629
207 * NEWS: Add linetable feature.
208 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
209 * python/py-linetable.c: New file.
210 * python/py-symtab.c (stpy_get_linetable): New function.
211 * python/python-internal.h (symtab_to_linetable_object): Declare.
212 (gdbpy_initialize_linetable): Ditto.
213 * python/python.c (_initialize_python): Call
214 gdbpy_initialize_linetable.
215
2df4d1d5
JB
2162013-11-11 Joel Brobecker <brobecker@adacore.com>
217
218 * ada-lang.c (create_ada_exception_catchpoint): Enhance
219 the documentation of fields "except_string" and "condition".
220 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
221 CONDITION on the heap before passing it to
222 create_ada_exception_catchpoint.
223 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
224 CONDITION.
225
99c1d451
TT
2262013-11-11 Tom Tromey <tromey@redhat.com>
227
228 * config.in, configure: Rebuild.
229 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
230
8ca5801b
JB
2312013-11-11 Joel Brobecker <brobecker@adacore.com>
232
233 * remote-sim.c (gdbsim_detach): Break declaration into
234 shorter lines. No code change.
235
7a06d430
EBM
2362013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
237
238 * remote-sim.c (gdbsim_detach): Fix prototype.
239
73be47f5
DE
2402013-11-08 Doug Evans <dje@google.com>
241
242 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
243 (create_debug_types_hash_table): Only print debugging messages for
244 each TU if dwarf2-read >= 2.
245 (process_queue): Ditto.
246 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
247 Update doc string.
248
a18d8f10
TT
2492013-11-08 Tom Tromey <tromey@redhat.com>
250
251 * configure: Rebuild.
252 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
253
9467110b
TT
2542013-11-08 Tom Tromey <tromey@redhat.com>
255
256 * configure, config.in: Rebuild.
257 * configure.ac: Remove unused configury.
258
69706679
TT
2592013-11-08 Tom Tromey <tromey@redhat.com>
260
261 * m32c-tdep.c: Use gdb_string.h.
262
9b4bea72
TT
2632013-11-08 Tom Tromey <tromey@redhat.com>
264
265 * configure, config.in: Rebuild.
266 * configure.ac: Remove all link.h-related checks.
267
3266f10b
TT
2682013-11-08 Tom Tromey <tromey@redhat.com>
269
270 * acinclude.m4: Include common.m4.
271 * common/common.m4: New file.
272 * configure, config.in: Rebuild.
273 * configure.ac: Use GDB_AC_COMMON.
274
db0fec5c
DE
2752013-11-08 Doug Evans <dje@google.com>
276
277 * NEWS: Mention that "set debug symtab-create" now accepts a
278 verbosity level.
279 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
280 to set the symtab's primary flag.
281 * jit.c (finalize_symtab): Ditto.
282 * mdebugread.c (psymtab_to_symtab_1): Ditto.
283 * symfile.c (allocate_symtab): Only print debugging messages for
284 symtab_create_debug levels 2 and higher.
285 * symtab.c (symtab_create_debug): Change type to unsigned int.
286 (set_symtab_primary): New function.
287 (_initialize_symtab): Change "set debug symtab-create" to a
288 zuinteger option.
289 * symtab.h (set_symtab_primary): Declare.
290 (symtab_create_debug): Update decl.
291
52554a0e
TT
2922013-11-08 Tom Tromey <tromey@redhat.com>
293
294 * aix-thread.c (aix_thread_detach): Update.
295 * corelow.c (core_detach): Update.
296 * darwin-nat.c (darwin_detach): Update.
297 * dec-thread.c (dec_thread_detach): Update.
298 * gnu-nat.c (gnu_detach): Update.
299 * go32-nat.c (go32_detach): Update.
300 * inf-ptrace.c (inf_ptrace_detach): Update.
301 * inf-ttrace.c (inf_ttrace_detach): Update.
302 * linux-fork.c (linux_fork_detach): Update.
303 * linux-fork.h (linux_fork_detach): Update.
304 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
305 local for const-correctness.
306 * linux-thread-db.c (thread_db_detach): Update.
307 * monitor.c (monitor_detach): Update.
308 * nto-procfs.c (procfs_detach): Update.
309 * procfs.c (procfs_detach): Update.
310 * record.c (record_detach): Update.
311 * record.h (record_detach): Update.
312 * remote-m32r-sdi.c (m32r_detach): Update.
313 * remote-mips.c (mips_detach): Update.
314 * remote-sim.c (gdbsim_detach): Update.
315 * remote.c (remote_detach_1, remote_detach)
316 (extended_remote_detach): Update.
317 * sol-thread.c (sol_thread_detach): Update.
318 * target.c (target_detach): Make "args" const.
319 (init_dummy_target): Update.
320 * target.h (struct target_ops) <to_detach>: Make argument const.
321 (target_detach): Likewise.
322 * windows-nat.c (windows_detach): Update.
323
204b5331
DE
3242013-11-07 Doug Evans <dje@google.com>
325
326 PR 11786
327 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
328 and align fields for PT_GNU_RELRO segments.
329
92e32e33
PM
3302013-11-07 Phil Muldoon <pmuldoon@redhat.com>
331
ef1bc9e7
AM
332 PR python/15747
333 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 334
f76c27b5
PM
3352013-11-07 Phil Muldoon <pmuldoon@redhat.com>
336
337 * NEWS: Document Python temporary breakpoint support.
338 * python/py-breakpoint.c (bppy_get_temporary): New function.
339 (bppy_init): New keyword: temporary. Parse it and set breakpoint
340 to temporary if True.
341
d52cd232
JM
3422013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
343
344 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
345 removed to allow analyzing unconditional branch instructions
346 with PC-relative offsets of zero.
347
fa4d0c40
YQ
3482013-11-07 Yao Qi <yao@codesourcery.com>
349
350 * mi/mi-cmd-var.c: Include "language.h".
351 (mi_cmd_var_info_expression): Get language name from
352 language_defn.
353 * varobj.c (varobj_language_string): Remove.
354 (variable_language): Remove declaration.
355 (languages): Remove.
356 (varobj_get_language): Change the type of return value.
357 (variable_language): Remove.
358 * varobj.h (enum varobj_languages): Remove.
359 (varobj_language_string): Remove declaration.
360 (varobj_get_language): Update declaration.
361
6abde28f
YQ
3622013-11-07 Yao Qi <yao@codesourcery.com>
363
364 * language.h (struct language_defn) <la_natural_name>: New
365 field.
366 * ada-lang.c (ada_language_defn): Initialize field
367 'la_natural_name'.
368 * c-lang.c (c_language_defn): Likewise.
369 (cplus_language_defn, asm_language_defn): Likewise.
370 * d-lang.c (d_language_defn): Likewise.
371 * f-lang.c (f_language_defn): Likewise.
372 * go-lang.c (go_language_defn): Likewise.
373 * jv-lang.c (java_language_defn): Likewise.
374 * language.c (unknown_language_defn ): Likewise.
375 (auto_language_defn): Likewise.
376 * m2-lang.c (m2_language_defn): Likewise.
377 * objc-lang.c (objc_language_defn): Likewise.
378 * opencl-lang.c (opencl_language_defn): Likewise.
379 * p-lang.c (pascal_language_defn): Likewise.
380
27cd387b
YQ
3812013-11-07 Yao Qi <yao@codesourcery.com>
382
383 * language.c (language_str): Return const char *.
384 (add_language): Add const to 'language_names'
385 * language.h (struct language_defn) <la_name>: Add const.
386 (language_str: Update declaration.
387
6682d959
AA
3882013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
389
390 * s390-linux-nat.c (s390_read_description): Consider the TE field
391 in the HWCAP for determining 'have_regset_tdb'.
392
b9502d3f
WN
3932013-11-06 Will Newton <will.newton@linaro.org>
394
395 PR gdb/12866
396 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
397 values. (read_partial_die): Likewise.
398
840da61a
MB
3992013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
400
401 PR cli/16122
402 * top.c (command_line_input): Unify interactivity tests to use
403 input_from_terminal_p.
404 * event-top.c (command_line_handler): Likewise.
405
7636ccf9
YQ
4062013-11-06 Yao Qi <yao@codesourcery.com>
407
408 * Makefile.in (check-perf): New target.
409
12b27276
WN
4102013-11-05 Will Newton <will.newton@linaro.org>
411
412 PR gdb/7670
413 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
414 (arm_print_float_info): Likewise.
415
67c059c2
AB
4162013-11-04 Anton Blanchard <anton@samba.org>
417
418 * target.c (memory_xfer_partial): Cap write to 4KB.
419
0569175e
TSD
4202013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
421
422 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
423 probe scan even when the arch provides no get_longjmp_target.
424
b18e90f5
PA
4252013-10-31 Pedro Alves <palves@redhat.com>
426
427 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
428 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
429 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
430 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
431 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
432 <bpstat handling>: If the bpstat chain wants the signal to be
433 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
434 GDB_SIGNAL_TRAP.
435
638aa5a1
AB
4362013-10-31 Andrew Burgess <aburgess@broadcom.com>
437
438 * breakpoint.c (update_watchpoint): Update error message and add
439 an additional error message.
440
0e5fae36
UW
4412013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
442
443 * s390-tdep.h: Rename to...
444 * s390-linux-tdep.h: ...here.
445 * s390-tdep.c: Rename to...
446 * s390-linux-tdep.c: ...here. Adjust #include.
447 * s390-nat.c: Rename to...
448 * s390-linux-nat.c: ...here. Adjust #include.
449 * config/s390/s390.mh: Rename to...
450 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
451 s390-linux-nat.o.
452 * configure.host: Reflect host rename "s390" -> "linux".
453 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
454 * Makefile.in (ALL_TARGET_OBS): Likewise.
455 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
456 s390-linux-tdep.h.
457 (ALLDEPFILES): Reflect rename of .c files.
458
34201ae3
UW
4592013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * s390-nat.c: Whitespace cleanup.
462 * s390-tdep.c: Likewise.
463 * s390-tdep.h: Remove empty line at end of file.
464
e17aaa33
MR
4652013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
466
467 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
468 siginfo_size.
469
aee17e42
TT
4702013-10-29 Tom Tromey <tromey@redhat.com>
471
472 * utils.c (reg): Move undefinition...
473 * gdb_curses.h: ... here. Update comment to mention AIX.
474
9ac69859
NB
4752013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
476
477 * exec.h (add_target_sections_of_objfile): New declaration.
478 * exec.c (add_target_sections_of_objfile): New function.
479 * symfile.c (add_symbol_file_command): Update current target sections.
480 (remove_symbol_file_command): New command.
481 (symfile_free_objfile): New function.
482 (_initialize_symfile): Register observer for free_objfile events.
483 * NEWS: Add description of the remove-symbol-file command.
484 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
485 * objfiles.c (free_objfile): Notify free_objfile.
486 (is_addr_in_objfile): New function.
487 * objfiles.h (is_addr_in_objfile): New declaration.
488 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
489 events instead of solib_unloaded events.
490 (_initialize_printcmd): Register observer for free_objfile instead
491 of solib_unloaded notifications.
492 * solib.c (remove_user_added_objfile): New function.
493 (_initialize_symfile): Add remove-symbol-file.
494
f69d9aef
AB
4952013-10-29 Andrew Burgess <aburgess@broadcom.com>
496
497 * infcmd.c (default_print_one_register_info): Use val_print to
498 print all values even optimized out or unavailable ones. Don't
499 try to print a raw form of optimized out or unavailable values.
500
487ad57c
YQ
5012013-10-29 Yao Qi <yao@codesourcery.com>
502
503 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
504 parameter 'arg' instead of from program_space_data.
505 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
506 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
507 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
508 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
509 * inflow.c (inflow_inferior_data_cleanup): Get data from
510 parameter 'arg' instead of inferior_data.
511 * registry.h: Add comments.
512
3c4797ba
PA
5132013-10-28 Pedro Alves <palves@redhat.com>
514
515 * breakpoint.c (watchpoints_triggered)
516 <!target_stopped_data_address>: Hardcode return 1.
517
cdaa5b73
PA
5182013-10-28 Pedro Alves <palves@redhat.com>
519
520 * infrun.c (process_event_stop_test): Remove unnecessary scoping
521 level and reindent.
522
94c57d6a
PA
5232013-10-28 Pedro Alves <palves@redhat.com>
524
525 * infrun.c (process_event_stop_test): New function, factored out
526 from handle_inferior_event.
527 (handle_inferior_event): 'process_event_stop_test' is now a
528 function instead of a goto label -- adjust.
529
fcf3daef
PA
5302013-10-28 Pedro Alves <palves@redhat.com>
531
532 * infrun.c (handle_inferior_event): Move process_event_stop_test
533 goto label to the else branch of the ecs->random_signal check,
534 along with FRAME and GDBARCH re-fetching.
535
c447ac0b
PA
5362013-10-28 Pedro Alves <palves@redhat.com>
537
538 * infrun.c (switch_back_to_stepped_thread): New function, factored
539 out from handle_inferior_event.
540 (handle_inferior_event): Adjust to call
541 switch_back_to_stepped_thread. Call it also at the tail of the
542 random signal handling, and return, instead of also handling
543 random signals just before the stepping tests.
544
f05e4c11
PA
5452013-10-28 Pedro Alves <palves@redhat.com>
546
547 * infrun.c (clear_stop_func): Delete.
548 (handle_inferior_event): Don't call clear_stop_func and don't
549 clear 'ecs->random_signal'.
550
ca20d462
YQ
5512013-10-27 Yao Qi <yao@codesourcery.com>
552
553 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
554 (varobj_create, varobj_get_path_expr): Update.
555 (varobj_value_has_mutated, varobj_update): Likewise.
556 (create_child_with_value, new_root_variable): Likewise.
557 (number_of_children, name_of_variable): Likewise.
558 (value_of_child, my_value_of_variable): Likewise.
559 (varobj_value_is_changeable_p): Likewise.
560
a53b64ea
YQ
5612013-10-25 Yao Qi <yao@codesourcery.com>
562
563 * language.h (struct lang_varobj_ops): Declare.
564 (struct language_defn) <la_varobj_ops>: New field.
565 * ada-lang.c: Include "varobj.h"
566 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
567 ada_varobj_ops.
568 * c-lang.c: Include "varobj.h"
569 (c_language_defn): Initialize field 'la_varobj_ops' with
570 c_varobj_ops.
571 (cplus_language_defn): Initialize field 'la_varobj_ops' with
572 cplus_varobj_ops.
573 (asm_language_defn): Initialize field 'la_varobj_ops' with
574 default_varobj_ops.
575 (minimal_language_defn): Likewise.
576 * d-lang.c (d_language_defn): Likewise.
577 * f-lang.c (f_language_defn): Likewise.
578 * go-lang.c (go_language_defn): Likewise.
579 * m2-lang.c (m2_language_defn): Likewise.
580 * objc-lang.c (objc_language_defn): Likewise.
581 * opencl-lang.c (opencl_language_defn): Likewise.
582 * p-lang.c (pascal_language_defn): Likewise.
583 * language.c (unknown_language_defn): Likewise.
584 (auto_language_defn): Likewise.
585 (local_language_defn): Likewise.
586 * jv-lang.c (java_language_defn): Initialize field
587 'la_varobj_ops' with java_varobj_ops.
588 * varobj.c (varobj_create): Update.
589 * varobj.h (default_varobj_ops): Define macro.
590
686d4def
PA
5912013-10-25 Pedro Alves <palves@redhat.com>
592
593 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
594 static field value.
595 (cp_print_static_field): If the value is entirely optimized out,
596 print <optimized out> here.
597 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
598 static field value.
599 * p-valprint.c (pascal_object_print_static_field): If the value is
600 entirely optimized out, print <optimized out> here.
601 * valops.c (do_search_struct_field)
602 (value_struct_elt_for_reference): No longer handle a NULL static
603 field value.
604 * value.c (value_static_field): Return an optimized out value
605 instead of NULL.
606
6c177e28
YQ
6072013-10-25 Yao Qi <yao@codesourcery.com>
608
609 * remote.c (remote_traceframe_info): Return early if
610 traceframe is not selected.
611
98322bfa
YQ
6122013-10-25 Yao Qi <yao@codesourcery.com>
613
614 * tracepoint.c (traceframe_fun): Remove.
615 (traceframe_sal): Remove.
616 (set_traceframe_context): Add local variables.
617
6ba1f115
JB
6182013-10-25 Joel Brobecker <brobecker@adacore.com>
619
620 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
621 and parameter name.
622
bbe769cc
MR
6232013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
624
625 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
626 failure from register information collection.
627
72ee4495 6282013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
629
630 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
631 member.
632 (linux_corefile_thread_callback): Update accordingly.
633 (linux_make_corefile_notes): Likewise.
634
98882a26
PA
6352013-10-24 Pedro Alves <palves@redhat.com>
636
637 * NEWS (New options): Mention set/show startup-with-shell.
638 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
639 instead of 3.
640 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
641 startup-with-shell'.
642 (show_startup_with_shell): New function.
643 (_initialize_fork_child): Register the set/show startup-with-shell
644 commands.
645 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
646 * inf-ttrace.c (inf_ttrace_him): Remove comment.
647 * procfs.c (procfs_init_inferior): Remove comment.
648 * infcmd.c (startup_with_shell): New global.
649 * inferior.h (startup_with_shell): Declare global.
650 (STARTUP_WITH_SHELL): Delete.
651 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
652
c9737c08
PA
6532013-10-23 Pedro Alves <palves@redhat.com>
654
655 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
656 * common/signals.c: Include "gdb_assert.h".
657 (signals): New field 'symbol'.
658 (SET): Use the 'symbol' parameter.
659 (gdb_signal_to_symbol_string): New function.
660 * infrun.c (handle_inferior_event) <random signal>: In debug
661 output, print the random signal enum as string in addition to its
662 number.
663 * target/waitstatus.c (target_waitstatus_to_string): Print the
664 signal's enum value as string instead of the (POSIX) signal name.
665
f60db4f0
GB
6662013-10-23 Gary Benson <gbenson@redhat.com>
667
668 PR 16013
669 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
670 from 32 to 18. Adjusted fscanf format string accordingly.
671 (Avoids leaving cmd unterminated.)
672 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
673 trun, retn or extra. (Avoids leaving extra unterminated.) Check
674 that local_address and remote_address will not overflow.
675 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
676 leaving dependencies unterminated. Parse size as "%u" to match
677 definition.
678
6d3e7a94
PA
6792013-10-22 Pedro Alves <palves@redhat.com>
680
681 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
682 set ecs->random signal.
683
42ec045f
PA
6842013-10-22 Pedro Alves <palves@redhat.com>
685
686 * infrun.c (keep_going): Update comments.
687
6882013-10-22 Pedro Alves <palves@redhat.com>
689
690 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
691 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
692
6932013-10-22 Pedro Alves <palves@redhat.com>
694
695 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
696 GDB_EXC_BAD_ACCESS.
697 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
698 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
699 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
700 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
701 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
702 (GDB_SIGNAL_LAST): Change description string.
703 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
704 Adjust to signal renaming.
705 * darwin-nat.c (darwin_decode_message): Likewise.
706
c8fde1b1
JM
7072013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
708
709 * MAINTAINERS (Write After Approval): Add myself to the list.
710
e8369a73
AB
7112013-10-18 Andrew Burgess <aburgess@broadcom.com>
712
713 * breakpoint.c (update_watchpoint): If hardware watchpoints are
714 forced off, downgrade them to software watchpoints if possible,
715 and error out if not possible.
716 (watch_command_1): Move watchpoint type selection closer to
717 watchpoint creation, and extend the comments.
718
776f04fa
PA
7192013-10-18 Pedro Alves <palves@redhat.com>
720
721 PR gdb/16062
722 * infrun.c (handle_inferior_event): Keep going if we got a random
723 signal we should not stop for, instead of falling through to the
724 step tests.
725
0c6faab5
YQ
7262013-10-18 Yao Qi <yao@codesourcery.com>
727
728 * c-varobj.c (cplus_number_of_children): Fix indentation.
729
50b34a18
TT
7302013-10-17 Tom Tromey <tromey@redhat.com>
731
732 PR gdb/15995:
733 * printcmd.c (printcmd): Call gdb_flush.
734
5c4c8a59
TT
7352013-10-17 Tom Tromey <tromey@redhat.com>
736
737 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
738 (elf_locate_sections): Update.
739
c4124bf1
YQ
7402013-10-17 Yao Qi <yao@codesourcery.com>
741
742 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
743 * ada-varobj.c: Remove the include of ada-varobj.h.
744 (ada_varobj_get_number_of_children): Declare.
745 (ada_varobj_get_name_of_child): Make it static.
746 (ada_varobj_get_path_expr_of_child): Likewise.
747 (ada_varobj_get_value_of_child): Likewise.
748 (ada_varobj_get_type_of_child): Likewise.
749 (ada_varobj_get_value_of_array_variable): Likewise.
750 * ada-varobj.h: Remove.
751
99ad9427
YQ
7522013-10-17 Yao Qi <yao@codesourcery.com>
753
754 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
755 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
756 * ada-varobj.c: Include "varobj.h".
757 (ada_number_of_children): New. Moved from varobj.c.
758 (ada_name_of_variable, ada_name_of_child): Likewise.
759 (ada_path_expr_of_child, ada_value_of_child): Likewise.
760 (ada_type_of_child, ada_value_of_variable): Likewise.
761 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
762 (ada_varobj_ops): New.
763 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
764 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
765 * gdbtypes.h (get_target_type): Declare.
766 * varobj.c: Remove the inclusion of "ada-varobj.h" and
767 "ada-lang.h".
768 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
769 (ANONYMOUS_UNION_NAME): Likewise.
770 (get_type, get_value_type, get_target_type): Remove declarations.
771 (value_get_print_value, varobj_value_get_print_value): Likewise.
772 (c_number_of_children, c_name_of_variable): Likewise.
773 (c_name_of_child, c_path_expr_of_child): Likewise.
774 (c_value_of_child, c_type_of_child): Likewise.
775 (c_value_of_variable, cplus_number_of_children): Likewise.
776 (cplus_class_num_children, cplus_name_of_variable): Likewise.
777 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
778 (cplus_value_of_child, cplus_type_of_child): Likewise.
779 (cplus_value_of_variable, java_number_of_children): Likewise.
780 (java_name_of_variable, java_name_of_child): Likewise.
781 (java_path_expr_of_child, java_value_of_child): Likewise.
782 (java_type_of_child, java_value_of_variable): Likewise.
783 (ada_number_of_children, ada_name_of_variable): Likewise.
784 (ada_name_of_child, ada_path_expr_of_child): Likewise.
785 (ada_value_of_child, ada_type_of_child): Likewise.
786 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
787 (ada_value_has_mutated): Likewise.
788 (struct language_specific): Move it to varobj.h.
789 (CPLUS_FAKE_CHILD): Move it to varobj.h.
790 (restrict_range): Rename it varobj_restrict_range. Make it extern.
791 Callers update.
792 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
793 Make it extern.
794 (is_anonymous_child): Move it to c-varobj.c and rename to
795 varobj_is_anonymous_child. Caller update.
796 (get_type): Move it to c-varobj.c.
797 (get_value_type): Rename it varobj_get_value_type. Make it
798 extern.
799 (get_target_type): Move it gdbtypes.c.
800 (varobj_formatted_print_options): New function.
801 (value_get_print_value): Rename it to
802 varobj_value_get_print_value and make it extern.
803 (varobj_value_is_changeable_p): Make it extern.
804 (adjust_value_for_child_access): Move it to c-varobj.c.
805 (default_value_is_changeable_p): Rename it to
806 varobj_default_value_is_changeable_p. Make it extern.
807 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
808 (c_name_of_child, c_path_expr_of_child): Likewise.
809 (c_value_of_child, c_type_of_child): Likewise.
810 (c_value_of_variable, cplus_number_of_children): Likewise.
811 (cplus_class_num_children, cplus_name_of_variable): Likewise.
812 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
813 (cplus_value_of_child, cplus_type_of_child): Likewise.
814 (cplus_value_of_variable): Likewise.
815 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
816 (java_name_of_child, java_path_expr_of_child): Likewise.
817 (java_value_of_child, java_type_of_child): Likewise.
818 (java_value_of_variable): Likewise.
819 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
820 (ada_name_of_child, ada_path_expr_of_child): Likewise.
821 (ada_value_of_child, ada_type_of_child): Likewise.
822 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
823 (ada_value_has_mutated): Likewise.
824 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
825 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
826 (c_varobj_ops, cplus_varobj_ops): Declare.
827 (java_varobj_ops, ada_varobj_ops): Declare.
828 (varobj_default_value_is_changeable_p): Declare.
829 (varobj_value_is_changeable_p): Declare.
830 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
831 (varobj_get_path_expr_parent): Declare.
832 (varobj_value_get_print_value): Declare.
833 (varobj_formatted_print_options): Declare.
834 (varobj_restrict_range): Declare.
835
c8a62302
LM
8362013-10-17 Luis Machado <lgustavo@codesourcery.com>
837
838 * target/waitstatus.h (target_waitkind): Remove spurious
839 character from the comments.
840
eade6471
JB
8412013-10-17 Joel Brobecker <brobecker@adacore.com>
842
843 * gdbarch.sh (get_longjmp_target): Add method documentation.
844 * gdbarch.h: Regenerate.
845
5411b26c
TT
8462013-10-16 Tom Tromey <tromey@redhat.com>
847
848 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
849 label.
850
87326c87
LM
8512013-10-16 Luis Machado <lgustavo@codesourcery.com>
852
853 * gcore.in: Call GDB using the full path to the gcore script.
854 Error out if the GDB binary is not found.
855
fd0a4d76
SDJ
8562013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
857
858 PR gdb/16014
859 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
860 sizeof.
861
d92f7ee3
SDJ
8622013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
863
864 PR gdb/16042
865 * target.c (target_disable_btrace): Fix invalid return value for
866 void function.
867 (target_teardown_btrace): Likewise.
868
bb5ce47a
YQ
8692013-10-14 Yao Qi <yao@codesourcery.com>
870
871 * varobj.c (struct varobj): Move most of the fields to
872 varobj.h.
873 (struct varobj_dynamic): New struct.
874 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
875 (varobj_has_more): Likewise.
876 (dynamic_varobj_has_child_method): Likewise.
877 (update_dynamic_varobj_children): Likewise.
878 (varobj_get_num_children): Likewise.
879 (varobj_list_children, varobj_pretty_printed_p): Likewise.
880 (install_new_value_visualizer): Likewise.
881 (install_new_value_visualizer, install_new_value): Likewise.
882 (varobj_update, new_variable, free_variable): Likewise.
883 (my_value_of_variable, value_get_print_value): Likewise.
884 (install_visualizer): Change the type of parameter 'var' to
885 'struct varobjd_dynamic *'. Callers update.
886 * varobj.h (struct varobj): Moved from varobj.c.
887 (struct varobj) <dynamic>: New field.
888
0b76b0ce
SL
8892013-10-13 Sandra Loosemore <sandra@codesourcery.com>
890
891 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
892 as the preferred name of r30.
893 * nios2-linux-tdep.c (reg_offsets): Likewise.
894 * features/nios2-cpu.xml: Likewise.
895 * features/nios2-linux.c: Regenerated.
896 * features/nios2.c: Regenerated.
897 * regformats/nios2-linux.dat: Regenerated.
898
4856b6bc
JK
8992013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 Canonicalize directories for EXEC_FILENAME.
902 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
903 exec_filename.
904 * utils.c (gdb_realpath_keepfile): New function.
905 * utils.h (gdb_realpath_keepfile): New declaration.
906
9b557b58
DE
9072013-10-11 Doug Evans <dje@google.com>
908
909 * Makefile.in (GDBFLAGS): New variable.
910 (run): New rule.
911
ce13fade
JB
9122013-10-11 Joel Brobecker <brobecker@adacore.com>
913
914 * NEWS: Add entry documenting the new "-catch-assert" and
915 "-catch-exception" GDB/MI commands.
916
349774ef
JB
9172013-10-11 Joel Brobecker <brobecker@adacore.com>
918
919 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
920 "enabled".
921 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
922 "enabled". Set B->ENABLE_STATE accordingly.
923 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
924 ada-lang.c.
925 (create_ada_exception_catchpoint): Add declaration.
926 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
927 (create_ada_exception_catchpoint): Make non-static. Add new
928 parameter "disabled". Use it in call to
929 init_ada_exception_breakpoint.
930 (catch_ada_exception_command): Add parameter "enabled" in call
931 to create_ada_exception_catchpoint.
932 (catch_assert_command): Likewise.
933
934 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
935 Add declarations.
936 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
937 "catch-exception" commands.
938 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
939 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
940
761269c8
JB
9412013-10-11 Joel Brobecker <brobecker@adacore.com>
942
943 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
944 "enum exception_catchpoint_kind". Replace the "ex_" prefix
945 of all its enumerates with "ada_". Update the rest of this
946 file throughout.
947
b4a5b78b
JB
9482013-10-11 Joel Brobecker <brobecker@adacore.com>
949
950 * ada-lang.c (ada_decode_exception_location): Delete.
951 (create_ada_exception_catchpoint): Remove arguments "sal",
952 "addr_string" and "ops". Add argument "ex_kind" instead.
953 Adjust implementation accordingly, calling ada_exception_sal
954 to get the entities it no longer gets passed as arguments.
955 Document the function's arguments.
956 (catch_ada_exception_command): Use catch_ada_exception_command_split
957 instead of ada_decode_exception_location, and update call to
958 create_ada_exception_catchpoint.
959 (catch_ada_assert_command_split): Renames
960 ada_decode_assert_location. Remove parameters "addr_string" and
961 "ops", and now returns void. Adjust implementation accordingly.
962 Update the function documentation.
963 (catch_assert_command): Use catch_ada_assert_command_split
964 instead of ada_decode_assert_location. Update call to
965 create_ada_exception_catchpoint.
966
7ad1d32c 9672013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
968
969 * utils.h (perror_warning_with_name): Add declaration.
970 * utils.c (perror_warning_with_name): New function.
971 * cli/cli-cmds.c (source_script_with_search): Add call to
972 perror_warning_with_name if from_tty is nul.
973
7ad1d32c 9742013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
975
976 * utils.c (perror_string): New function, extracted out of
977 throw_perror_with_name.
978 (throw_perror_with_name): Rework to use perror_string.
979
bcc75809
YQ
9802013-10-11 Yao Qi <yao@codesourcery.com>
981
982 * remote.c (discard_pending_stop_replies_in_queue): Update
983 declaration.
984 (struct stop_reply) <rs>: New field.
985 (remove_stop_reply_of_remote_state): New function.
986 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
987 Callers update. Pass remove_stop_reply_of_remote_state to
988 QUEUE_iterate.
989 (remote_parse_stop_reply): Initialize field 'rs'.
990
05feb193
WN
9912013-10-10 Will Newton <will.newton@linaro.org>
992
993 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
994 linux_init_abi.
995
0d12017b
JB
9962013-10-10 Joel Brobecker <brobecker@adacore.com>
997
998 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
999 serial_baud_show_cmd.
1000 (_initialize_cli_cmds): Delete the code creating the
1001 "set/show remotebaud" commands.
1002 * serial.c (baud_rate): Move here from top.c.
1003 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1004 (_initialize_serial): Create "set/show serial baud" commands.
1005 Add "set/show remotebaud" command aliases.
1006 * top.c (baud_rate): Moved to serial.c.
1007 * NEWS: Document the new "set/show serial baud" commands,
1008 replacing "set/show remotebaud".
1009
578d3588
PA
10102013-10-09 Pedro Alves <palves@redhat.com>
1011
1012 * breakpoint.c (insert_bp_location): Use memory_error_message to
1013 build the memory error string.
1014 * c-lang.c: Include "gdbcore.h".
1015 (c_get_string): Use memory_error to throw error.
1016 (target_xfer_memory_error): Delete.
1017 (memory_error_message): New, factored out from
1018 target_xfer_memory_error.
1019 (memory_error): Change parameter type to target_xfer_error.
1020 Rewrite.
1021 (read_memory): Use memory_error instead of
1022 target_xfer_memory_error.
1023 * gdbcore.h: Include "target.h".
1024 (memory_error): Change parameter type to target_xfer_error.
1025 (memory_error_message): Declare function.
1026 * target.c (target_read_memory, target_read_stack)
1027 (target_write_memory, target_write_raw_memory): Return
1028 TARGET_XFER_E_IO on error. Adjust comments.
1029 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1030 instead of EIO.
1031 * target.h (target_read, target_insert_breakpoint)
1032 (target_remove_breakpoint): Adjust comments.
1033 * valprint.c (partial_memory_read): Rename parameter, and adjust
1034 comment.
1035 (val_print_string): Use memory_error_message to build the memory
1036 error string.
1037
c74e1ccf
JK
10382013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1041 result variable. Rename variable fopen_e_ever_failed to
1042 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1043
915215be
PA
10442013-10-09 Pedro Alves <palves@redhat.com>
1045
1046 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1047 (monitor_write_memory_longlongs, monitor_write_memory_block):
1048 Constify 'myaddr' parameter.
1049 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1050 helper.
1051 (monitor_xfer_partial): New function.
1052 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1053 hook. Install a to_xfer_partial hook.
1054
acd13123
TT
10552013-10-09 Tom Tromey <tromey@redhat.com>
1056
1057 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1058 bfd_get_alt_debug_link_info.
1059
40135bb1
JK
10602013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1061
1062 New flag OBJF_NOT_FILENAME.
1063 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1064 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1065 allocate_objfile.
1066 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1067 symbol_file_add_from_bfd.
1068 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1069 allocate_objfile.
1070 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1071 NULL.
1072 * objfiles.h (OBJF_NOT_FILENAME): New.
1073
dc294be5
TT
10742013-10-08 Tom Tromey <tromey@redhat.com>
1075
1076 * Makefile.in (SFILES): Add build-id.c.
1077 (HFILES_NO_SRCDIR): Add build-id.h.
1078 * build-id.c: New file, largely from elfread.c. Modified
1079 most functions.
1080 * build-id.h: New file.
1081 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1082 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1083 Search for dwz file using build-id.
1084 * elfread.c (build_id_bfd_get, build_id_verify)
1085 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1086
db230ce3
JB
10872013-10-08 Joel Brobecker <brobecker@adacore.com>
1088
1089 * ada-lang.c (compare_names_with_case): Renamed from
1090 compare_names, adding a new parameter "casing" and its handling.
1091 New function documentation.
1092 (compare_names): New function, implemented using
1093 compare_names_with_case.
1094
6501c98a
JB
10952013-10-08 Joel Brobecker <brobecker@adacore.com>
1096
1097 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1098
84a1243b
TT
10992013-10-07 Tom Tromey <tromey@redhat.com>
1100
1101 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1102 demangled_names_hash.
1103 (free_objfile): Don't delete the demangled_names_hash.
1104 * objfiles.h (struct objfile_per_bfd_storage)
1105 <demangled_names_hash>: New field.
1106 (struct objfile) <demangled_names_hash>: Move to
1107 objfile_per_bfd_storage.
1108 * symfile.c (reread_symbols): Don't delete the
1109 demangled_names_hash.
1110 * symtab.c (create_demangled_names_hash): Update.
1111 (symbol_set_names): Update.
1112
1da77581
TT
11132013-10-07 Tom Tromey <tromey@redhat.com>
1114
1115 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1116 needs_relocations>: New fields.
1117 (gdb_bfd_requires_relocations): New function.
1118 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1119 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1120 the BFD needs relocations applied.
1121
46ecd527
PA
11222013-10-07 Pedro Alves <palves@redhat.com>
1123
1124 PR breakpoints/11568
1125 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1126 the thread list" instead of "gone".
1127
0c557179
SDJ
11282013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1129
1130 * NEWS: Mention new convenience variable $_exitsignal.
1131 * corelow.c (core_open): Reset exit convenience variables. Set
1132 $_exitsignal to the uncaught signal which generated the corefile.
1133 * infrun.c (handle_inferior_event): Reset exit convenience
1134 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1135 (clear_exit_convenience_vars): New function.
1136 * inferior.h (clear_exit_convenience_vars): New prototype.
1137
1cc47d81
YQ
11382013-10-06 Yao Qi <yao@codesourcery.com>
1139
1140 * varobj.h: Add comments to enum varobj_languages.
1141
73869dc2
DE
11422013-10-04 Doug Evans <dje@google.com>
1143
1144 Add support for DWP file format version 2.
1145 * NEWS: Mention support for DWP file format version 2.
1146 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1147 union of asection, containing_section. New fields virtual_offset
1148 and is_virtual. Change type of readin filed from int to char.
1149 (dwo_sections, dwo_file): Tweak comments.
1150 (dwp_v2_section_ids): New enum.
1151 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1152 str_offsets, types.
1153 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1154 All uses updated.
1155 (virtual_v2_dwo_sections): New struct.
1156 (dwp_hash_table): New fields version, nr_columns. Change type of
1157 section_pool field to a union.
1158 (dwp_file): New field version.
1159 (dwarf2_has_info): Check for virtual sections.
1160 (get_containing_section): New function.
1161 (get_section_bfd_owner, get_section_bfd_section): Call it.
1162 (dwarf2_locate_sections): Update.
1163 (dwarf2_section_empty_p): Update.
1164 (dwarf2_read_section): Handle virtual sections.
1165 (locate_dwz_sections): Update.
1166 (create_dwp_hash_table): Document and handle V2 format.
1167 (locate_v1_virtual_dwo_sections): Renamed from
1168 locate_virtual_dwo_sections and update. All callers updated.
1169 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1170 Delete arg htab. Rename arg section_index to unit_index.
1171 All callers updated.
1172 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1173 All uses updated.
1174 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1175 (lookup_dwo_unit_in_dwp): Add V2 support.
1176 (dwarf2_locate_dwo_sections): Update.
1177 (dwarf2_locate_common_dwp_sections): Renamed from
1178 dwarf2_locate_dwp_sections and update. All callers updated.
1179 (dwarf2_locate_v2_dwp_sections): New function.
1180 (open_and_init_dwp_file): Add V2 support.
1181 (read_str_index): New locals str_section, str_offsets_section.
1182
9a2c3737
PA
11832013-10-04 Pedro Alves <palves@redhat.com>
1184
1185 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1186 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1187 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1188 describing comments with references to ptid.h.
1189 * common/ptid.h: Remove intro description of constructors,
1190 accessors and predicates.
1191 (struct ptid): Reformat.
1192 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1193 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1194 describing comments.
1195
f5371440
JB
11962013-10-04 Joel Brobecker <brobecker@adacore.com>
1197
1198 * aix-thread.c (sync_threadlists): Add missing ')' in call
1199 to ptid_build.
1200
793e1c06
JB
12012013-10-04 Joel Brobecker <brobecker@adacore.com>
1202
1203 * procfs.c (procfs_init_inferior): Fix typo causing the build
1204 to fail.
1205
26f0edc1
JB
12062013-10-04 Joel Brobecker <brobecker@adacore.com>
1207
1208 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1209
5713b9b5
JB
12102013-10-04 Joel Brobecker <brobecker@adacore.com>
1211
1212 * mi/mi-main.c (run_one_inferior): Add function description.
1213 Make ARG a pointer to an integer whose value determines whether
1214 we should "run" or "start" the program.
1215 (mi_cmd_exec_run): Add handling of the "--start" option.
1216 Reject all other command-line options.
1217 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1218
f48ff2a7
YQ
12192013-10-04 Yao Qi <yao@codesourcery.com>
1220
1221 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1222 (struct notif_client) <pending_event>: Moved
1223 to struct remote_notif_state.
1224 <id>: New field.
1225 (struct remote_notif_state) <pending_event>: New field.
1226 (notif_event_xfree): Declare.
1227 * remote-notif.c (handle_notification): Adjust.
1228 (notif_event_xfree): New function.
1229 (do_notif_event_xfree): Call notif_event_xfree.
1230 (remote_notif_state_xfree): Call notif_event_xfree to free
1231 each element in field pending_event.
1232 * remote.c (discard_pending_stop_replies): Remove declaration.
1233 (discard_pending_stop_replies_in_queue): Declare.
1234 (remote_close): Call discard_pending_stop_replies_in_queue
1235 instead of discard_pending_stop_replies.
1236 (remote_start_remote): Adjust.
1237 (stop_reply_xfree): Call notif_event_xfree.
1238 (notif_client_stop): Adjust initialization.
1239 (remote_notif_remove_all): Rename it to ...
1240 (remove_stop_reply_for_inferior): ... this. Update comments.
1241 Don't check INF is NULL.
1242 (discard_pending_stop_replies): Return early if notif_state is
1243 NULL. Adjust. Don't check INF is NULL.
1244 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1245 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1246 (remote_wait_ns): Likewise.
1247
5965e028
YQ
12482013-10-04 Yao Qi <yao@codesourcery.com>
1249
1250 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1251 (notif_queue): Remove.
1252 (remote_notif_process): Add one parameter 'notif_queue'.
1253 Update comments. Callers update.
1254 (remote_async_get_pending_events_token): Remove.
1255 (remote_notif_register_async_event_handler): Remove.
1256 (remote_notif_unregister_async_event_handler): Remove.
1257 (handle_notification): Add parameter 'notif_queue'. Update
1258 comments. Callers update.
1259 (notif_xfree): Remove.
1260 (remote_notif_state_allocate): New function.
1261 (remote_notif_state_xfree): New function.
1262 (_initialize_notif): Remove code to allocate queue.
1263 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1264 (struct remote_notif_state): New.
1265 (handle_notification): Update declaration.
1266 (remote_notif_process): Likewise.
1267 (remote_notif_register_async_event_handler): Remove.
1268 (remote_notif_unregister_async_event_handler): Remove.
1269 (remote_notif_state_allocate): Declare.
1270 (remote_notif_state_xfree): Declare.
1271 * remote.c (struct remote_state) <notif_state>: New field.
1272 (remote_close): Don't call
1273 remote_notif_unregister_async_event_handler. Call
1274 remote_notif_state_xfree.
1275 (remote_open_1): Don't call
1276 remote_notif_register_async_event_handler. Call
1277 remote_notif_state_allocate.
1278
5e5ac9a5
YQ
12792013-10-04 Yao Qi <yao@codesourcery.com>
1280
1281 * varobj.c (create_child_with_value): Remove 'const' from the
1282 type of parameter 'name'.
1283 (varobj_add_child): Likewise.
1284 (install_dynamic_child): Remove 'const' from the type of
1285 parameter 'name'.
1286 (varobj_add_child): Likewise.
1287 (create_child_with_value): Likewise. Update comments. Don't
1288 duplicate 'name'.
1289 (update_dynamic_varobj_children): Duplicate 'name'
1290 and pass it to install_dynamic_child.
1291
06ab7b19
PM
12922013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1293
1294 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1295 conversion logic to occur after PyLong_Check. Comment on order
1296 change significance.
1297 * python/py-arch.c (archpy_disassemble): Comment on order of
1298 conversion for integers and longs.
1299
8ae377e8
PA
13002013-10-03 Pedro Alves <palves@redhat.com>
1301
1302 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1303 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1304 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1305 PTRACE_O_TRACEFORK is not supported.
1306 (linux_test_for_tracesysgood): New function.
1307 (linux_test_for_tracefork): New function, factored out from
1308 linux_check_ptrace_features, and also don't kill child_pid here.
1309
b1328b1b
TG
13102013-10-03 Tristan Gingold <gingold@adacore.com>
1311
1312 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1313 Remove verbose error reporting. Use detected state to
1314 thread_set_state call.
1315 (i386_darwin_dr_get): Fix return type. Remove verbose error
1316 report.
1317 Remove trailing spaces.
1318
901461f8
PA
13192013-10-02 Pedro Alves <palves@redhat.com>
1320
1321 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1322 val_print_optimized_out.
1323 * jv-valprint.c (java_print_value_fields): Likewise.
1324 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1325 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1326 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1327 new optimized out value.
1328 * findvar.c (address_from_register): Likewise.
1329 * frame.c (put_frame_register): Tweak error string to say the
1330 register was not saved, rather than optimized out.
1331 * infcmd.c (default_print_one_register_info): Adjust call to
1332 val_print_optimized_out. Use value_of_register instead of
1333 get_frame_register_value.
1334 * mi/mi-main.c (output_register): Use value_of_register instead of
1335 get_frame_register_value.
1336 * valprint.c (valprint_check_validity): Likewise.
1337 (val_print_optimized_out): New value parameter. If the value is
1338 lval_register, print <not saved> instead.
1339 (value_check_printable, val_print_scalar_formatted): Adjust calls
1340 to val_print_optimized_out.
1341 * valprint.h (val_print_optimized_out): New value parameter.
1342 * value.c (struct value) <optimized_out>: Extend comment.
1343 (error_value_optimized_out): New function.
1344 (require_not_optimized_out): Use it. Use a different string for
1345 lval_register values.
1346 * value.h (error_value_optimized_out): New declaration.
1347 * NEWS: Mention <not saved>.
1348
042a84d9
JB
13492013-10-02 Joel Brobecker <brobecker@adacore.com>
1350
1351 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1352 strcmp to compare two symtab filenames.
1353
6b9780fb
JB
13542013-10-02 Joel Brobecker <brobecker@adacore.com>
1355
1356 * symtab.c (search_symbols_equal): Delete.
1357 (sort_search_symbols_remove_dups): Replace call to
1358 search_symbols_equal by call to compare_search_syms,
1359 adjusting as necessary.
1360
751e7549
PM
13612013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1362
1363 PR python/15579
751e7549
PM
1364 * python/python.c: Document gdb.execute command in Python help.
1365
1efd7661
PM
13662013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1367
1368 * python/py-frame.c (frame_info_to_frame_object): Use
1369 gdbpy_convert_exception. Clean up Python object on failure.
1370
562fc849
PM
13712013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1372
1373 * python/lib/gdb/command/frame_filters.py
1374 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1375 (ShowFrameFilterPriority.invoke): Ditto.
1376
d7561cbb
KS
13772013-10-01 Keith Seitz <keiths@redhat.com>
1378
1379 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1380 (parse_linespec): Make 'argptr' const.
1381 Remove temporary cast of 'argptr' to const char **.
1382 (decode_line_full): Pass const pointer to parse_linespec.
1383 (decode_line_1): Likewise.
1384 (decode_objc): Make local variable 'new_argptr' const.
1385 (find_function_symbols): Remove temporary cast to char *
1386 to find_imps.
1387 * objc-lang.c (find_imps): Make argument 'method' const.
1388 Return const.
1389 * objc-lang.h (find_imps): Likewise.
1390
13912013-10-01 Keith Seitz <keiths@redhat.com>
1392
1393 * completer.c (skip_quoted_chars): Make all arguments const.
1394 Return const.
1395 (skip_quoted): Likewise.
1396 * completer.h (skip_quoted_chars): Likewise.
1397 (skip_quoted): Likewise.
1398 * defs.h (skip_quoted): Remove duplicate declaration.
1399 * jv-exp.y: Include completer.h.
1400 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1401 * p-exp.y: Include completer.h.
1402
14032013-10-01 Keith Seitz <keiths@redhat.com>
1404
1405 * c-exp.y (parse_number): Make first argument const.
1406 Make a copy of the input to manipulate.
1407 (c_parse_escape): Make first argument const.
1408 Make local variable 'tokptr' const.
1409 (parse_string_or_char): Make first two arguments const.
1410 (macro_original_text): Make const.
1411 (lex_one_token): Make local variable 'tokstart' const.
1412 Likewise for local variables named 'p'.
1413 Cast away const for struct stoken (temporary).
1414 * c-lang.h (c_parse_escpae): Make first argument const.
1415 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1416 const.
1417 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1418 var_string case.
1419 * f-exp.y (parse_number): Make first argument const.
1420 (match_string_literal): Make local variable 'tokstart'
1421 const.
1422 (yylex): Make local variable 'p' const.
1423 Cast away const for struct stoken (temporary).
1424 * go-exp.y (parse_number): Make first argument const.
1425 (parse_string_or_char): Likewise.
1426 Make local variable 'tokstart' const.
1427 (lex_one_token): Likewise for numerous locals called 'p'.
1428 Cast away const for struct stoken (temporary).
1429 * jv-exp.y (parse_number): Make first argument const.
1430 Make local variables 'tokstart' and 'tokptr' const.
1431 Cast away const for call to skip_quoted (temporary).
1432 (yylex): Make local variable 'p' const.
1433 Cast away const for struct stoken (temporary).
1434 * m2-exp.y (parse_number): Make local variable 'p' const.
1435 (yylex): Likewise for 'tokstart'.
1436 Cast away const for struct stoken (temporary).
1437 Make local variable 'p' const.
1438 * macroexp.c (get_character_constant): Pass a const string
1439 to c_parse_escape.
1440 (get_string_literal): Likewise.
1441 (macro_expand_next): Make first argument const.
1442 Cast away const for init_shared_buffer.
1443 * macroexp.h (macro_expand_next): Make first argument const.
1444 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1445 Pass a const string to c_parse_escape.
1446 Make local variables 'p' and 'namestart' const.
1447 * parse.c (lexptr): Make const.
1448 (prev_lexptr): Likewise.
1449 (find_template_name_end): Return const.
1450 Make argument const, too.
1451 (parse_exp_in_context): Make first argument const.
1452 Remove the entire const_hack.
1453 (parse_exp_in_context_1): Make first argument const.
1454 * parser-defs.h (find_template_name_end): Return const.
1455 Make argument const, too.
1456 (lexptr): Make const.
1457 (prev_lexptr): Likewise.
1458 * utils.c (parse_escape): Make second argument const.
1459 * utils.h (parse_escape): Likewise.
1460
14612013-10-01 Keith Seitz <keiths@redhat.com>
1462
1463 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1464 is now const.
1465 (block_lookup): Make 'raw_name' and 'name' const.
1466 * ada-lex.l (processString): Update for struct stoken.ptr.
1467 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1468 (operator_stoken): Likewise.
1469 (lex_one_token): Remove temporary cast to char * for
1470 'yylval.sval.ptr'.
1471 * f-exp.y (yylex): Likewise.
1472 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1473 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1474 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1475 'yylval.sval.ptr'.
1476 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1477 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1478 * linespec.c (struct ls_parser): Make 'stream' const.
1479 (find_parameter_list_end): Make argument 'input' and local
1480 variable 'p' const.
1481 (linespec_lexer_lex_string): Make local variables 'start' and
1482 'p' const.
1483 Use skip_spaces_const instead of skip_spaces.
1484 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1485 const.
1486 (parse_linespec): Temporarily cast 'argptr' to const for
1487 'parser->lexer.stream'.
1488 * m2-exp.y (yylex): Remove temporary cast to char * for
1489 'yylval.sval.ptr'.
1490 * objc-lang.c (add_msglist): Make local variable 'p' const.
1491 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1492 (exp : STRING): Make 'sp' const.
1493 (parse_number): Make argument 'p' const.
1494 * parser-defs.h (struct stoken): Make 'ptr' const.
1495
193a8eac
DE
14962013-10-01 Doug Evans <dje@google.com>
1497
1498 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1499
2213e2be
YQ
15002013-10-01 Yao Qi <yao@codesourcery.com>
1501
1502 * varobj.c (c_value_of_root): Remove declaration.
1503 (cplus_value_of_root, java_value_of_root): Likewise.
1504 (ada_value_of_root): Likewise.
1505 (struct language_specific) <value_of_root>: Remove.
1506 (languages): Update initialization.
1507 (check_scope): Move earlier.
1508 (c_value_of_root): Move earlier and rename to ...
1509 (value_of_root_1): ... this.
1510 (value_of_root): Caller update.
1511 (cplus_value_of_root, java_value_of_root): Remove.
1512 (ada_value_of_root): Remove.
1513
c573f273
YQ
15142013-10-01 Yao Qi <yao@codesourcery.com>
1515
1516 * varobj.c (varobj_format_string): Remove "unknown".
1517 (languages): Remove the first element.
1518 * varobj.h (enum varobj_languages): Remove vlang_c.
1519
56250258
YQ
15202013-10-01 Yao Qi <yao@codesourcery.com>
1521
1522 * varobj.c (struct language_specific) <language>: Remove.
1523 (languages): Update the initialization.
1524
29f9ebfa
YQ
15252013-10-01 Yao Qi <yao@codesourcery.com>
1526
1527 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1528 "solib-target.h". Include "windows-tdep.h".
1529 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1530 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1531 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1532 windows-tdep.o to gdb_target_obs.
1533
64870a42
YQ
15342013-10-01 Yao Qi <yao@codesourcery.com>
1535
1536 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1537 "solib-target.h".
1538 (amd64_windows_init_abi): Don't call set_solib_ops and
1539 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1540 windows_init_abi instead.
1541 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1542 "solib-target.h".
1543 (i386_cygwin_init_abi): Don't call set_solib_ops,
1544 set_gdbarch_has_dos_based_file_system and
1545 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1546 windows_init_abi instead.
1547 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1548 (windows_init_abi): New function.
1549 (windows_iterate_over_objfiles_in_search_order): Make it
1550 static.
1551 * windows-tdep.h (windows_init_abi): Declare.
1552 (windows_iterate_over_objfiles_in_search_order): Remove
1553 declaration.
1554
0aebdefa
JB
15552013-10-01 Jerome Guitton <guitton@adacore.com>
1556
1557 Checked in by Joel Brobecker <brobecker@adacore.com>
1558 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1559 incomplete dictionnary instead of None in case of missing
1560 environment variables.
1561 (elinos_init): in case of an incomplete environment, best
1562 effort to load system libraries instead of abort.
1563
1c8e84b0
JB
15642013-10-01 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ada-lang.c (ada_has_this_exception_support): Ignore
1567 mst_solib_trampoline minimal symbols.
1568
61d82a0d
TG
15692013-09-30 Tristan Gingold <gingold@adacore.com>
1570
1571 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1572 hardware watchpoint.
1573 (i386_darwin_dr_set): Support 32 and 64 bit states.
1574 (i386_darwin_dr_get): Likewise.
1575 (i386_darwin_dr_set_control): Make static.
1576 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1577 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1578
dfd4cc63
LM
15792013-09-30 Luis Machado <lgustavo@codesourcery.com>
1580
1581 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1582 Replace TIDGET with ptid_get_lwp.
1583 Replace GET_LWP with ptid_get_lwp.
1584 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1585 Replace BUILD_THREAD with ptid_build.
1586 Replace BUILD_LWP with ptid_build.
1587 Replace PIDGET with ptid_get_pid.
1588 Replace TIDGET with ptid_get_lwp.
1589 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1590 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1591 Replace TIDGET with ptid_get_lwp.
1592 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1593 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1594 Replace TIDGET with ptid_get_lwp.
1595 Replace GET_LWP with ptid_get_lwp.
1596 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1597 * auxv.c: Likewise.
1598 * breakpoint.c: Likewise.
1599 * common/ptid.c (ptid_is_pid): Condense check for
1600 null_ptid and minus_one_ptid.
1601 (ptid_lwp_p): New function.
1602 (ptid_tid_p): New function.
1603 * common/ptid.h: Update comments for accessors.
1604 (ptid_lwp_p): New prototype.
1605 (ptid_tid_p): New prototype.
1606 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1607 * gcore.c: Replace PIDGET with ptid_get_pid.
1608 * gdbthread.h: Likewise.
1609 * gnu-nat.c: Likewise.
1610 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1611 Replace TIDGET with ptid_get_lwp.
1612 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1613 * hppanbsd-nat.c: Likewise.
1614 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1615 Replace TIDGET with ptid_get_lwp.
1616 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1617 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1618 * infcmd.c: Likewise.
1619 * inferior.h: Likewise.
1620 * inflow.c: Likewise.
1621 * infrun.c: Likewise.
1622 * linux-fork.c: Likewise.
1623 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1624 Replace GET_PID with ptid_get_pid.
1625 Replace is_lwp with ptid_lwp_p.
1626 Replace GET_LWP with ptid_get_lwp.
1627 Replace BUILD_LWP with ptid_build.
1628
5b4e221c
MF
16292013-09-28 Mike Frysinger <vapier@gentoo.org>
1630
1631 * common/linux-btrace.c: Move sys/syscall.h out of the
1632 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1633 Also check for SYS_perf_event_open before attempting to buid.
1634
57d63ce2
DE
16352013-09-27 Doug Evans <dje@google.com>
1636
19ac8c2e
DE
1637 * dwarf2read.c (dwarf2_section_info): Add comment.
1638 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1639 All uses updated.
1640 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1641 (dwarf2_read_section): Delete unused local "header". Add section
1642 name to error message.
1643 (create_dwo_in_dwp): Tweak comment.
1644 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1645
a32a8923
DE
1646 * dwarf2read.c (die_reader_specs): Tweak comment.
1647 (get_section_bfd_owner, get_section_bfd_section): New functions.
1648 (get_section_name, get_section_file_name): New functions.
1649 (get_section_id, get_section_flags): New functions.
1650 (*): Use new functions to access section fields.
1651
57d63ce2
DE
1652 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1653 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1654 arg "htab". All callers updated.
1655 (create_debug_types_hash_table): Remove redundant copy of
1656 abbrev_section.
1657 (create_dwo_in_dwp): Tweak comments.
1658 (read_str_index): Tweak comment. Record dwarf form name in static
1659 local.
1660
3736004f
PA
16612013-09-27 Pedro Alves <palves@redhat.com>
1662
1663 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1664 (remote_filename_p): Add comment.
1665 * remote.c (remote_filename_p): Adjust to use
1666 REMOTE_SYSROOT_PREFIX.
1667 * solib.c (solib_find): When deciding whether we need to add a
1668 directory separator, check whether the sysroot is "remote:"
1669 instead of checking whether the patch has a drive spec. Add
1670 comments.
1671
5b5596ff
PA
16722013-09-27 Pedro Alves <palves@redhat.com>
1673
1674 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1675 Delete fields.
1676 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1677 directly.
1678
b5eef7aa
JK
16792013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 Fix set debug frame output.
1682 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1683 SENTINEL_FRAME entry lower to match enum frame_type order.
1684
5b856f36
PM
16852013-09-26 Pierre Muller <muller@sourceware.org>
1686
1687 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1688 AMD64_R15_REGNUM when a register index is expected.
1689 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1690 Substitute in array.
1691 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1692 (amd64_push_arguments): Substitute in integer_regnum array.
1693
ade7ed9e
DE
16942013-09-25 Doug Evans <dje@google.com>
1695
d3e81981
DE
1696 * objfiles.c (allocate_objfile): Move comment to better place.
1697
8fb8eb5c
DE
1698 New option "set debug symfile on".
1699 * NEWS: Mention "set debug symfile".
1700 * Makefile.in (SFILES): Add symfile-debug.c.
1701 (COMMON_OBS): Add symfile-debug.o.
1702 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1703 objfile's symbol functions.
1704 * objfiles.h (objfile_set_sym_fns): Declare.
1705 * symfile-debug.c: New file.
1706 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1707 objfile's symbol functions.
1708 (reread_symbols): Ditto.
1709
c256e171
DE
1710 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1711 All uses updated.
1712 (add_symtab_fns): Update prototype.
1713 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1714 (registered_sym_fns): ... this.
1715 (symtab_fns): Update.
1716 (add_symtab_fns): New arg "flavour". All callers updated.
1717 (find_sym_fns): Rewrite to use new sym_fns registry.
1718
f56ce883
DE
1719 * symfile.h (struct sym_fns): Add "objfile" argument to
1720 sym_read_linetable. All uses updated.
1721
20c681d1
DE
1722 * symtab.c (domain_name, search_domain_name): New functions.
1723 * symtab.h (domain_name, search_domain_name): Declare.
1724
ade7ed9e
DE
1725 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1726 map_matching_symbols so objfile is first. All uses updated.
1727 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1728 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1729
7d760051
UW
17302013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1731
1732 PR shlibs/8882
1733 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1734 link map entries.
1735
020f7036
DE
17362013-09-24 Doug Evans <dje@google.com>
1737
1738 * objfiles.c (free_objfile): Move comment.
1739
598402f0
JB
17402013-09-24 Joel Brobecker <brobecker@adacore.com>
1741
1742 * ada-exp.y (string_to_operator): Delete.
1743 (dummy_string_to_ada_operator): Delete.
1744
bf4d6c1c
JB
17452013-09-24 Joel Brobecker <brobecker@adacore.com>
1746
1747 Revert:
1748 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1749 amd64-tdep.c.
1750 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1751 call_dummy_integer_regs, and classify.
1752 * amd64-tdep.h (amd64_classify): Add declaration.
1753 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1754 (amd64_reg_class): Delete, moved to i386-tdep.h.
1755 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1756 Replace call to amd64_classify by call to tdep->classify.
1757 (amd64_push_arguments): Get the list of registers to use for
1758 passing integer parameters from the gdbarch tdep structure,
1759 rather than using a hardcoded one. Replace calls to amd64_classify
1760 by calls to tdep->classify.
1761 (amd64_push_dummy_call): Get the register number used for
1762 the "hidden" argument from tdep->call_dummy_integer_regs.
1763 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1764 and tdep->call_dummy_integer_regs. Set tdep->classify.
1765
849e9755
JB
17662013-09-24 Joel Brobecker <brobecker@adacore.com>
1767
1768 Revert:
1769 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1770 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1771 where tdep->memory_args_by_pointer is non-zero.
1772
c1459fd6
JB
17732013-09-24 Joel Brobecker <brobecker@adacore.com>
1774
1775 Revert:
1776 * i386-tdep.h (struct gdbarch_tdep): Add new field
1777 integer_param_regs_saved_in_caller_frame.
1778 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1779 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1780
20c2e3e0
JB
17812013-09-24 Joel Brobecker <brobecker@adacore.com>
1782
874440b8 1783 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1784 (amd64_windows_classify): Delete.
1785 (amd64_windows_passed_by_integer_register)
1786 (amd64_windows_passed_by_xmm_register)
1787 (amd64_windows_passed_by_pointer)
1788 (amd64_windows_adjust_args_passed_by_pointer)
1789 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1790 (amd64_windows_push_dummy_call): New functions.
1791 (amd64_windows_init_abi): Remove setting of
1792 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1793 tdep->classify, tdep->memory_args_by_pointer and
1794 tdep->integer_param_regs_saved_in_caller_frame.
1795 Add call to set_gdbarch_push_dummy_call.
1796
82bf32bc
JK
17972013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1800 objfile->original_name.
1801
24ba069a
JK
18022013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 Pass down original filename for objfile.
1805 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1806 * elfread.c (elf_symfile_read): Likewise.
1807 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1808 longer set ORIGINAL_NAME.
1809 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1810 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1811 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1812 symbol_file_add_from_bfd call.
1813 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1814 (macho_check_dsym): Add parameter filenamep. Change function comment.
1815 Set *filenamep.
1816 (macho_symfile_read): New variable dsym_filename. Update
1817 macho_check_dsym call. Use it for symbol_file_add_separate.
1818 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1819 it. Use it for objfile->original_name.
1820 (objfile_name): Return OBFD's filename, if available.
1821 * objfiles.h (allocate_objfile): Add new parameter name.
1822 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1823 * symfile-mem.c (symbol_file_add_from_memory): Update
1824 symbol_file_add_from_bfd call.
1825 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1826 comment for it.
1827 (symbol_file_add_with_addrs): New parameter name, add function comment
1828 for it. Remove variable name. Update allocate_objfile call.
1829 (symbol_file_add_separate): New parameter name, add function comment
1830 for it. Update symbol_file_add_with_addrs call.
1831 (symbol_file_add_from_bfd): New parameter name. Update
1832 symbol_file_add_with_addrs call.
1833 (symbol_file_add): Update symbol_file_add_from_bfd call.
1834 (reread_symbols): New variable original_name. Save
1835 objfile->original_name by it.
1836 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1837 second parameter.
1838
4262abfb
JK
18392013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1840
1841 Code cleanup: Add objfile_name accessor function.
1842 * ada-lang.c (is_known_support_routine): Use objfile_name.
1843 * auto-load.c (source_gdb_script_for_objfile)
1844 (auto_load_objfile_script): Likewise.
1845 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1846 * dbxread.c (dbx_symfile_read): Likewise.
1847 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1848 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1849 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1850 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1851 (lookup_dwp_signatured_type, lookup_dwo_unit)
1852 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1853 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1854 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1855 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1856 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1857 (read_subrange_type, load_partial_dies, read_partial_die)
1858 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1859 (die_containing_type, build_error_marker_type, lookup_die_type)
1860 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1861 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1862 (get_DW_AT_signature_type, write_psymtabs_to_index)
1863 (save_gdb_index_command): Likewise.
1864 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1865 Likewise.
1866 * expprint.c (dump_subexp_body_standard): Likewise.
1867 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1868 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1869 original_name.
1870 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1871 obj_name, use objfile_name for it, use the variable.
1872 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1873 Use objfile_name.
1874 * machoread.c (macho_symtab_read, macho_check_dsym)
1875 (macho_symfile_relocate): Likewise.
1876 * maint.c (maintenance_translate_address): Likewise.
1877 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1878 * minsyms.c (install_minimal_symbols): Likewise.
1879 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1880 original_name.
1881 (filter_overlapping_sections): Use objfile_name.
1882 (objfile_name): New function.
1883 * objfiles.h (struct objfile): Rename field name to original_name.
1884 (objfile_name): New prototype.
1885 * printcmd.c (sym_info, address_info): Use objfile_name.
1886 * probe.c (parse_probes, collect_probes, compare_probes)
1887 (info_probes_for_ops): Likewise.
1888 * progspace.c (clone_program_space): Likewise.
1889 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1890 (maintenance_info_psymtabs): Likewise.
1891 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1892 (source_section_scripts): Likewise.
1893 * python/py-objfile.c (objfpy_get_filename): Likewise.
1894 * python/py-progspace.c (pspy_get_filename): Likewise.
1895 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1896 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1897 * solib.c (solib_read_symbols): Likewise.
1898 * stabsread.c (scan_file_globals): Likewise.
1899 * stap-probe.c (handle_stap_probe): Likewise.
1900 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1901 (find_separate_debug_file_by_debuglink): Likewise.
1902 (reread_symbols): Likewise. Use the objfile field name renamed to
1903 original_name.
1904 (allocate_symtab): Use objfile_name.
1905 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1906 (dump_objfile, dump_msymbols, dump_symtab_1)
1907 (maintenance_print_msymbols, maintenance_print_objfiles)
1908 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1909 * target.c (target_translate_tls_address, target_info): Likewise.
1910 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1911 objfile_name.
1912
4721dc18
JK
19132013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1914
1915 Code cleanup.
1916 * probe.c (parse_probes): Rename variable objfile_name to
1917 objfile_namestr.
1918
a61d6db8
JK
19192013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 Remove solib-sunos.c.
1922 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1923 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1924 * objfiles.c (rt_common_objfile): Remove.
1925 (free_objfile): Remove rt_common_objfile comparison.
1926 * objfiles.h (rt_common_objfile): Remove.
1927 * solib-sunos.c: Remove.
1928 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1929
2659903b
JK
19302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1931
1932 Remove a.out NetBSD and OpenBSD hosts.
1933 * NEWS (Removed native configurations): New.
1934 * config/arm/nbsdaout.mh: Remove.
1935 * config/i386/nbsdaout.mh: Remove.
1936 * config/i386/obsdaout.mh: Remove.
1937 * config/m68k/nbsdaout.mh: Remove.
1938 * config/sparc/nbsdaout.mh: Remove.
1939 * config/vax/nbsdaout.mh: Remove.
1940 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1941 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1942 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1943 error.
1944 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1945 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1946 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1947
f60e2d5c
TT
19482013-09-23 Tom Tromey <tromey@redhat.com>
1949
1950 * linespec.c (struct minsym_and_objfile): Remove.
1951 (minsym_and_objfile_d): Remove.
1952 (struct linespec, struct collect_info, linespec_parse_basic)
1953 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1954 (compare_msymbols, find_method, find_function_symbols)
1955 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1956 (add_minsym, search_minsyms_for_name): Update.
1957
d3eaaf66
AB
19582013-09-23 Andrew Burgess <aburgess@broadcom.com>
1959
1960 * regcache.c: Add include of valprint.h.
1961 (dump_endian_bytes): Delete.
1962 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1963
2cc762b5
AB
19642013-09-23 Andrew Burgess <aburgess@broadcom.com>
1965
1966 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1967
96181529
PA
19682013-09-19 Pedro Alves <palves@redhat.com>
1969
1970 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1971 breakpoints.
1972
9b3f3ee6
TS
19732013-09-19 Pedro Alves <palves@redhat.com>
1974 Thomas Schwinge <thomas@codesourcery.com>
1975 Yue Lu <hacklu.newborn@gmail.com>
1976
1977 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1978 Take a gdb_byte pointer instead of a char pointer.
1979
1980 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1981 gnu_xfer_partial helper.
1982 (gnu_xfer_partial): New function.
1983 (gnu_target): Don't install a deprecated_xfer_memory hook.
1984 Install a to_xfer_partial hook.
1985
69150c3d
JK
19862013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 Constification.
1989 * main.c (captured_main): Replace catch_command_errors by
1990 catch_command_errors_const. Twice.
1991 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1992 (symbol_file_add): Make name parameter const.
1993 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1994 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1995 variable name. Change their usage accordingly.
1996 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1997 const.
1998 (symbol_file_add_main): Make args parameter const.
1999
086850b2
UW
20002013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2001 Ulrich Weigand <uweigand@de.ibm.com>
2002
2003 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2004 of c_value member.
2005 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2006
ca08a94c 20072013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2008 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2009
2010 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2011 (gnu_create_inferior)
2012 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2013 (set_sig_thread_cmd): Use the lwpid field of ptids to
2014 store/extract thread ids instead of the tid field.
2015 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2016
e4c6a2c4
AB
20172013-09-18 Andrew Burgess <aburgess@broadcom.com>
2018
2019 * infcmd.c (default_print_one_register_info): Add detection of
2020 optimized out values.
2021 (default_print_registers_info): Switch to using
2022 get_frame_register_value.
2023
58c48e72
MM
20242013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2025
2026 * infrun.c (handle_inferior_event): Check if we know the
2027 function start address before setting a resume breakpoint.
2028
c8d37639
PA
20292013-09-18 Pedro Alves <palves@redhat.com>
2030
2031 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2032 minus_one_ptid instead of looking at the ptid's tid field and
2033 comparing that to -1.
2034
71926e28
AB
20352013-09-18 Andrew Burgess <aburgess@broadcom.com>
2036
2037 * main.h (get_gdb_program_name): Remove extra whitespace.
2038
c88a1531
AB
20392013-09-18 Andrew Burgess <aburgess@broadcom.com>
2040
2041 * main.h (get_gdb_program_name): Add declaration.
2042 * main.c (get_gdb_program_name): Add definition.
2043
4390d890
DE
20442013-09-17 Doug Evans <dje@google.com>
2045
2046 * dwarf2read.c: Move definitions of complaint functions to after
2047 forward declarations of local functions.
2048
49fa26b0
PA
20492013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2050 Pedro Alves <palves@redhat.com>
2051
2052 PR gdb/11568
2053 * breakpoint.c (remove_threaded_breakpoints): New function.
2054 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2055 as thread_exit observer.
2056
08d72866
PA
20572013-09-17 Pedro Alves <palves@redhat.com>
2058
2059 PR gdb/15911
2060 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2061 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2062 * corelow.c (core_open):
2063 * frame.h (print_stack_frame, print_frame_info): New
2064 'set_current_sal' parameter.
2065 * infcmd.c (finish_command, kill_command): Adjust call to
2066 print_stack_frame.
2067 * inferior.c (inferior_command): Likewise.
2068 * infrun.c (normal_stop): Likewise.
2069 * linux-fork.c (linux_fork_context): Likewise.
2070 * record-full.c (record_full_goto_entry, record_full_restore):
2071 Likewise.
2072 * remote-mips.c (common_open): Likewise.
2073 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2074 Use it.
2075 (print_frame_info): New 'set_current_sal' parameter. Set the last
2076 displayed sal depending on the new paremeter instead of looking at
2077 print_what.
2078 (backtrace_command_1, select_and_print_frame, frame_command)
2079 (current_frame_command, up_command, down_command): Adjust call to
2080 print_stack_frame.
2081 * thread.c (print_thread_info, restore_selected_frame)
2082 (do_captured_thread_select): Adjust call to print_stack_frame.
2083 * tracepoint.c (tfind_1): Likewise.
2084 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2085 (mi_cmd_stack_info_frame): Likewise.
2086 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2087 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2088
6bc305f5
SDJ
20892013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2090
2091 * value.c (isvoid_internal_fn): Replace "parameter" with
2092 "argument".
2093
0a7cfe2c
SS
20942013-09-16 Stan Shebs <stan@codesourcery.com>
2095
2096 * README: Update references to writing code for GDB.
2097 * configure.ac (build_warnings): Remove obsolete comment.
2098 * configure: Regenerate.
2099 * gdbarch.sh: Remove references to gdbint.texinfo.
2100 * gdbarch.h: Regenerate.
2101 * gdbtypes.c (objfile_type): Remove comments referencing internals
2102 manual and D10V.
2103
a280dbd1
SDJ
21042013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2105
2106 * NEWS: Mention new convenience function $_isvoid.
2107 * value.c (isvoid_internal_fn): New function.
2108 (_initialize_values): Add new convenience function $_isvoid.
2109
04a83fee
PM
21102013-09-16 Pierre Muller <muller@sourceware.org>
2111
2112 * arm-linux-tdep.c: Add "elf/common.h" header.
2113 Remove AT_HWCAP macro definintion as it is provided in
2114 added include file.
2115 * s390-tdep.c: Remove system header <elf.h>
2116 Add "elf/common.h" header for AT_HWCAP definition.
2117 (s390_core_read_description): Use correct CORE_ADDR
2118 for hwcap local variable used as third parameter
2119 of function target_auxv_search.
2120
88505fac
PM
21212013-09-14 Pierre Muller <muller@sourceware.org>
2122 Tom Tromey <tromey@redhat.com>
2123 Pedro Alves <palves@redhat.com>
2124
2125 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2126 mode if operating system doesn't know O_CLOEXEC.
2127
d3846e71
JK
21282013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 Code cleanup.
2131 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2132 inner block.
2133
4ac33720
UW
21342013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135
2136 * NEWS: Mention TDB support.
2137 * features/s390-tdb.xml: New file.
2138 * features/s390-te-linux64.xml: New file.
2139 * features/s390x-te-linux64.xml: New file.
2140 * features/Makefile (WHICH): Add new tdescs above.
2141 (s390-te-linux64-expedite): Set.
2142 (s390x-te-linux64-expedite): Set.
2143 * features/s390-te-linux64.c: New file (generated).
2144 * features/s390x-te-linux64.c: New file (generated).
2145 * regformats/s390-te-linux64.dat: New file (generated).
2146 * regformats/s390x-te-linux64.dat: New file (generated).
2147 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2148 (HWCAP_S390_TE): Likewise.
2149 (S390_TDB_DWORD0_REGNUM): Likewise.
2150 (S390_TDB_DWORD0_REGNUM): Likewise.
2151 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2152 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2153 (S390_TDB_ATIA_REGNUM): Likewise.
2154 (S390_TDB_R0_REGNUM): Likewise.
2155 (S390_TDB_R1_REGNUM): Likewise.
2156 (S390_TDB_R2_REGNUM): Likewise.
2157 (S390_TDB_R3_REGNUM): Likewise.
2158 (S390_TDB_R4_REGNUM): Likewise.
2159 (S390_TDB_R5_REGNUM): Likewise.
2160 (S390_TDB_R6_REGNUM): Likewise.
2161 (S390_TDB_R7_REGNUM): Likewise.
2162 (S390_TDB_R8_REGNUM): Likewise.
2163 (S390_TDB_R9_REGNUM): Likewise.
2164 (S390_TDB_R10_REGNUM): Likewise.
2165 (S390_TDB_R11_REGNUM): Likewise.
2166 (S390_TDB_R12_REGNUM): Likewise.
2167 (S390_TDB_R13_REGNUM): Likewise.
2168 (S390_TDB_R14_REGNUM): Likewise.
2169 (S390_TDB_R15_REGNUM): Likewise.
2170 (S390_NUM_REGS): Increase.
2171 (S390_IS_TDBREGSET_REGNUM): New macro.
2172 (s390_regmap_tdb): Declare.
2173 (s390_sizeof_tdbregset): Define.
2174 (tdesc_s390_te_linux64): Declare.
2175 (tdesc_s390x_te_linux64): Likewise.
2176 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2177 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2178 (s390_regmap_tdb): New regmap.
2179 (s390_supply_tdb_regset): New function.
2180 (s390_tdb_regset): New regset.
2181 (s390_linux64v2_regset_sections): Add TDB regset to list.
2182 (s390x_linux64v2_regset_sections): Likewise.
2183 (s390_regset_from_core_section): Recognize TDB core note section.
2184 (s390_core_read_description): If HWCAP indicates TE support,
2185 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2186 (s390_gdbarch_init): Handle TDB regset.
2187 (_initialize_s390_tdep): Initialize new tdescs.
2188 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2189 (have_regset_tdb): New variable.
2190 (s390_native_supply): Support register invalidation.
2191 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2192 (check_regset): Treat ENODATA as "regset exists".
2193 (s390_linux_fetch_inferior_registers): Add TDB.
2194 (s390_read_description): Check for TDB existence and select
2195 appropriate tdesc.
2196 * gdbserver/Makefile.in (clean): Add removal of new makefile
2197 targets.
2198 (s390-te-linux64.c): New makefile target.
2199 (s390x-te-linux64.c): Likewise.
2200 * gdbserver/configure.srv (srv_regobj): Append new objects
2201 s390-te-linux64.o and s390x-te-linux64.o.
2202 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2203 s390x-te-linux64.xml, and s390-tdb.xml.
2204 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2205 declaration.
2206 (tdesc_s390_te_linux64): Likewise.
2207 (init_registers_s390x_te_linux64): Likewise.
2208 (tdesc_s390x_te_linux64): Likewise.
2209 (s390_check_regset): Treat ENODATA as "regset exists".
2210 (s390_arch_setup): Add TDB regset support.
2211 (initialize_low_arch): Initialize registers for new tdescs.
2212
2ccd1468
UW
22132013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2214
2215 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2216 (S390_IS_FPREGSET_REGNUM): New macro.
2217 * s390-tdep.c (s390_dwarf_regmap): Make const.
2218 (regnum_is_gpr_full): New function for replacing repeated code.
2219 (s390_pseudo_register_name): Use it.
2220 (s390_pseudo_register_type): Likewise.
2221 (s390_pseudo_register_read): Likewise.
2222 (s390_pseudo_register_write): Likewise.
2223 (s390_unwind_pseudo_register): Likewise.
2224 (s390_regmap_gregset): New format for regmap.
2225 (s390x_regmap_gregset): Likewise.
2226 (s390_regmap_fpregset): Likewise.
2227 (s390_regmap_upper): Likewise.
2228 (s390_regmap_last_break): Likewise.
2229 (s390_regmap_system_call): Likewise.
2230 (s390_supply_regset): Adjust to new regmap format.
2231 (s390_collect_regset): Likewise.
2232 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2233 (s390_native_collect): Likewise.
2234 (supply_gregset): Likewise.
2235 (fill_gregset): Likewise.
2236 (supply_fpregset): Likewise.
2237 (fill_fpregset): Likewise.
2238 (fetch_regset): Likewise.
2239 (store_regset): Likewise.
2240 (s390_linux_fetch_inferior_registers): Likewise.
2241 (s390_linux_fetch_inferior_registers): Likewise.
2242
1aa4cd77
AP
22432013-09-12 Andrew Pinski <apinski@cavium.com>
2244
2245 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2246
d91fab15
UW
22472013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2248
2249 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2250
5a5d8ead
AB
22512013-09-09 Andrew Burgess <aburgess@broadcom.com>
2252
2253 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2254
1385f66c
PA
22552013-09-06 Pedro Alves <palves@redhat.com>
2256
2257 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2258 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2259 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2260 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2261 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2262 gdb_stdlog.
2263
146ec4db
PA
22642013-09-06 Pedro Alves <palves@redhat.com>
2265
2266 * remote-sim.c (dump_mem): Constify buf parameter.
2267 gdbsim_xfer_inferior_memory): Rename to ...
2268 (gdbsim_xfer_memory): ... this. Adjust interface as
2269 target_xfer_partial helper.
2270 (gdbsim_xfer_partial): New function.
2271 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2272 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2273
fcde0081
PA
22742013-09-06 Pedro Alves <palves@redhat.com>
2275
2276 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2277 host_address_to_string, and send debug output to gdb_stdlog.
2278
749c8b38
RW
22792013-09-06 Ricard Wanderlof <ricardw@axis.com>
2280
2281 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2282 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2283 gdb_target_obs for cris target.
2284 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2285 (cris_gdbarch_init): Move calls to
2286 set_gdbarch_fetch_tls_load_module_address and
2287 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2288 Add call to gdbarch_init_osabi.
2289 * cris-linux-tdep.c: New file.
2290 * cris-tdep.h: New file.
2291
43df09d9
AB
22922013-09-06 Andrew Burgess <aburgess@broadcom.com>
2293
2294 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2295 to deprecated_init_ui_hook.
2296
4d09c5b4
AB
22972013-09-06 Andrew Burgess <aburgess@broadcom.com>
2298
2299 * cli/cli-interp.c (_initialize_cli_interp): Add a
2300 command_loop_proc to interp_procs.
2301 * event-top.c (cli_command_loop): Change signature to match
2302 interp_command_loop_ftype.
2303 * event-top.h (cli_command_loop): Same.
2304 * interps.c (interp_new): Require every interpreter to have a
2305 command_loop_proc.
2306 (current_interp_command_loop): Just call the command_loop_proc on
2307 the current interpreter.
2308 * tui/tui-interp.c (_initialize_tui_interp): Add a
2309 command_loop_proc to interp_procs.
2310
8eb3d7b6
RW
23112013-09-06 Ricard Wanderlof <ricardw@axis.com>
2312
2313 * cris-tdep.c (cris_gdbarch_init): Add call to
2314 get_gdbarch_fetch_tls_load_module_address.
2315
18b3c2f5
RW
23162013-09-06 Ricard Wanderlof <ricardw@axis.com>
2317
2318 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2319 (cris_elf_gregset_t): Rename from elf_gregset_t.
2320 (crisv32_elf_gregset_t): Adjust.
2321 (cris_supply_gregset, fetch_core_registers): Adjust.
2322
dc8636ef
RW
23232013-09-06 Ricard Wanderlof <ricardw@axis.com>
2324
2325 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2326
257e6d53
AB
23272013-09-05 Andrew Burgess <aburgess@broadcom.com>
2328
1581d8a7 2329 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2330 references in comments.
1581d8a7 2331 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2332 deprecated_command_loop_hook.
2333 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2334 setup.
1581d8a7 2335 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2336
7c33b57c
PA
23372013-09-05 Pedro Alves <palves@redhat.com>
2338
2339 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2340 local is now int instead of ULONGEST. Print it with %d
2341 instead of paddress.
2342
9f8edbd5
TG
23432013-09-05 Tristan Gingold <gingold@adacore.com>
2344
2345 * MAINTAINERS: Remove avr maintainership.
2346
d5b495b4
PA
23472013-09-05 Pedro Alves <palves@redhat.com>
2348
2349 * findvar.c (value_of_register): Rework in terms of
2350 value_of_register_lazy.
2351
40b91786
MB
23522013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2353
2354 * symfile.c (add_symbol_file_command): Remove trailing
2355 whitespaces and blank line after comment.
2356
6eed1678
PA
23572013-09-05 Pedro Alves <palves@redhat.com>
2358
2359 * tui/tui-regs.c (tui_register_format): Don't look at the
2360 register's name here. Return string representing register
2361 value instead of storing it in the data element.
2362 (tui_get_register): Compare register string representations
2363 instead of register value states and contents.
2364
8eb6bda2
PA
23652013-09-05 Pedro Alves <palves@redhat.com>
2366
2367 PR tui/15933
2368 * tui/tui-regs.c (tui_show_registers): Show registers of the
2369 selected frame, not the current frame.
2370
48b1f08c
RW
23712013-09-05 Ricard Wanderlof <ricardw@axis.com>
2372
2373 * MAINTAINERS (Write After Approval): Add myself to the list.
2374
89e63ee4
DE
23752013-09-04 Doug Evans <dje@google.com>
2376
2377 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2378 (queue_and_load_dwo_tu): New function.
2379 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2380 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2381 Make dependent_cu optional.
2382 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2383 and an older .gdb_index is in use, queue and load all its TUs too.
2384
492c0ab7
JK
23852013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2386
2387 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2388 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2389 variable search_flags.
2390 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2391 (OPF_RETURN_REALPATH): ... here.
2392 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2393 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2394 call. Twice.
2395 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2396 openp call.
2397 * solib.c (solib_find): Likewise. Four times.
2398 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2399 in the function comment and for the realpath_fptr variable.
2400 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2401 (find_and_open_source): Likewise. Twice.
2402 * symfile.c (symfile_bfd_open): Likewise, also twice.
2403
23a44de8
DE
24042013-09-04 Doug Evans <dje@google.com>
2405
2406 * progspace.c (save_current_space_and_thread): Remove unnecessary
2407 call to save_current_inferior.
2408
47061676
AB
24092013-09-04 Andrew Burgess <aburgess@broadcom.com>
2410
2411 * sh64-tdep.c (sh64_do_register): Return after printing message
2412 about unavailable register contents.
2413
41dc8db8
MB
24142013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2415 Pedro Alves <palves@redhat.com>
2416
2417 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2418 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2419 options and collapse into single conditional branch.
41dc8db8 2420
07107ca6
LM
24212013-09-03 Luis Machado <lgustavo@codesourcery.com>
2422
a7ea61cf 2423 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2424 detach_fork.
2425 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2426 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2427 * inferior.h (detach_fork): Remove.
2428 * infrun.c (detach_fork): Adjust comment and make it
2429 static.
2430 (follow_fork): Pass detach_fork parameter to
2431 target_follow_fork.
2432 * linux-nat.c (linux_child_follow_fork): New parameter
2433 detach_fork.
2434 * target.c (target_follow_fork): New parameter detach_fork.
2435 Pass detach_fork as parameter and print its value.
2436 * target.h (struct target_ops) <to_follow_fork>: New int
2437 parameter.
2438 (target_follow_fork): New parameter detach_fork.
2439
3bec2768
JB
24402013-09-03 Joel Brobecker <brobecker@adacore.com>
2441
2442 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2443 Replace sec->bfd by sec->the_bfd_section->owner.
2444
c01cbb3d
YQ
24452013-09-03 Yao Qi <yao@codesourcery.com>
2446
2447 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2448 from linux_has_shared_address_space.
2449 (linux_has_shared_address_space): Call linux_is_uclinux.
2450 * linux-tdep.h (linux_is_uclinux): Declare.
2451 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2452 linux_is_uclinux.
2453
7b00db47
YQ
24542013-09-03 Yao Qi <yao@codesourcery.com>
2455
2456 * config/djgpp/fnchange.lst: Remove entry of
2457 i386-interix-nat.c and i386-interix-tdep.c.
2458 * configure.ac: Remove '*-*-interix*'.
2459 * configure: Re-generated.
2460 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2461 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2462 obsolete comments.
2463 * osabi.c (gdb_osabi_names): Remove "Interix".
2464
0f9741f2
YQ
24652013-09-03 Yao Qi <yao@codesourcery.com>
2466
2467 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2468
1e038f67
MM
24692013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2470
2471 * record.h (record_print_flag) <record_print_src_line,
2472 record_print_insn_range>: Rename into ...
2473 (record_print_flag) <record_print_src_line,
2474 record_print_insn_range>: ... this. Update all users.
2475
9e52adf9
PM
24762013-09-02 Pierre Muller <muller@sourceware.org>
2477
2478 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2479 error code.
2480
a2388568
PM
24812013-09-02 Pierre Muller <muller@sourceware.org>
2482
2483 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2484 by use of plongest function.
2485
9058cc3a
TG
24862013-09-02 Tristan Gingold <gingold@adacore.com>
2487
2488 * NEWS: Add entry mentioning support for native Windows x64
2489 SEH data.
2490
2491 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2492 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2493 (struct amd64_windows_frame_cache): New struct.
2494 (amd64_windows_w2gdb_regnum): New global.
2495 (pc_in_range, amd64_windows_frame_decode_epilogue)
2496 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2497 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2498 (amd64_windows_frame_this_id): New functions.
2499 (amd64_windows_frame_unwind): New static global.
2500 (amd64_windows_skip_prologue): New function.
2501 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2502 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2503 with amd64_windows_skip_prologue.
2504
3161820b 25052013-08-30 Joel Brobecker <brobecker@adacore.com>
2506
2507 GDB 7.6.1 released.
2508
02457c76
PA
25092013-08-30 Pedro Alves <palves@redhat.com>
2510
2511 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2512 SRC_AND_LOC.
2513
e0162910
PA
25142013-08-30 Pedro Alves <palves@redhat.com>
2515
2516 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2517 warning text.
2518
6391ce51
PA
25192013-08-30 Pedro Alves <palves@redhat.com>
2520
2521 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2522 Adjust arguments to print_stack_frame.
2523
d1da0587
PA
25242013-08-30 Pedro Alves <palves@redhat.com>
2525
2526 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2527
adfd8245
PA
25282013-08-30 Pedro Alves <palves@redhat.com>
2529
2530 * frame.h (show_and_print_stack_frame): Delete declaration.
2531
96d9056e
PM
25322013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2533
2534 PR python/15461
96d9056e
PM
2535 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2536 (archpy_name): Check for valid architecture.
2537 (archpy_disassemble): Ditto.
2538
11cb8762
JB
25392013-08-29 Joel Brobecker <brobecker@adacore.com>
2540
2541 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2542 instead of "long long" in call to ptrace64.
2543
1af12a7d
AB
25442013-08-29 Andrew Burgess <aburgess@broadcom.com>
2545
2546 * mi/mi-interp.c (mi_command_loop): Change signature to match
2547 interp_command_loop_ftype.
2548 (mi1_command_loop): Remove.
2549 (mi2_command_loop): Remove.
2550 (mi3_command_loop): Remove.
2551 (mi_interpreter_resume): Remove setting of
2552 deprecated_command_loop_hook.
2553 (_initialize_mi_interp): Set mi_command_loop as the command loop
2554 callback.
2555
acc900c2
SA
25562013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2557
2558 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2559 value_type.
2560
548b762d
SA
25612013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2562
2563 * value.c (allocate_value_contents): Make static.
2564 * value.h (allocate_value_contents): Remove prototype.
2565
08039c9e
SA
25662013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2567
2568 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2569 of assembling value via allocate_value_lazy and attribute setter.
2570 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2571 assembling value via allocate_value_lazy and attribute setter.
2572 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2573 assembling value via allocate_value_lazy and attribute setter.
2574
314c7de9
SA
25752013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2576
2577 * value.c (value_from_contents_and_address): Replace allocate_value and
2578 memcpy with value_from_contents.
2579
8f28f522
PM
25802013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2581
2582 * python/py-framefilter.c (py_print_frame): Remove usage of
2583 PyString_AsString. Use python_string_to_host_string instead.
2584 Refactor function to work with a string as a new allocation
2585 instead of a pointer.
2586 (py_print_frame): Ditto.
2587 * python/lib/gdb/frames.py (return_list): Cain iterators together
2588 instead of adding them as a list.
2589 (_sort_list): Call return_list, and remove duplicate code.
2590 (execute_frame_filters): Convert iterator to a list with list().
2591 * python/lib/gdb/command/frame_filters.py
2592 (SetFrameFilterPriority._set_filter_priority): Convert priority
2593 attribute to an integer.
2594 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2595 wrapper function __next__.
2596 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2597 define as "str".
2598
8ee002df
PM
25992013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2600
2601 PR python/15752
8ee002df
PM
2602 * python/py-framefilter.c (apply_frame_filter): Check
2603 gdb_python_initialized. Exit if the Python frame-filter code
2604 cannot be initialized.
2605
af4c453a
PM
26062013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2607
2608 PR cli/15842
af4c453a
PM
2609 * top.c (print_gdb_version): Remove erroneous newline after help
2610 text.
2611
bf8793bb
YQ
26122013-08-29 Yao Qi <yao@codesourcery.com>
2613
2614 * varobj.c (install_dynamic_child): Remove trailing space.
2615 Add one blank line after variable declaration.
2616
1f0c4988
JK
26172013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 PR gdb/15415
2620 * corefile.c (get_exec_file): Use exec_filename.
2621 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2622 * exec.c (exec_close): Free EXEC_FILENAME.
2623 (exec_file_attach): New variable canonical_pathname. Use
2624 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2625 EXEC_FILENAME.
2626 * exec.h (exec_filename): New.
2627 * inferior.c (print_inferior, inferior_command): Use
2628 PSPACE_EXEC_FILENAME.
2629 * mi/mi-main.c (print_one_inferior): Likewise.
2630 * progspace.c (clone_program_space, print_program_space): Likewise.
2631 * progspace.h (struct program_space): New field pspace_exec_filename.
2632 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2633 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2634
59ee9f94
WN
26352013-08-28 Will Newton <will.newton@linaro.org>
2636
2637 * common/linux-ptrace.c: Include stdint.h unconditionally.
2638
c8a2a419
JK
26392013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 Code cleanup.
2642 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2643
ffa4ac95
YQ
26442013-08-28 Yao Qi <yao@codesourcery.com>
2645 Pedro Alves <palves@redhat.com>
2646
2647 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2648 instead of stdio_fileopen.
2649 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2650 .Call stderr_fileopen instead of stdio_fileopen.
2651 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2652 [__MINGW32__] (stderr_file_fputs): New function.
2653 (stderr_fileopen): New function.
2654 * ui-file.h (stderr_fileopen): Declare.
2655
69d751e3
DE
26562013-08-27 Doug Evans <dje@google.com>
2657
2658 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2659 (struct dwarf2_per_cu_data): Ditto.
2660 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2661 (process_imported_unit_die): Ditto.
2662 (follow_die_sig_1): Simplify assert.
2663
44f38867
PA
26642013-08-27 Pedro Alves <palves@redhat.com>
2665
2666 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2667 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2668 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2669 windows_xfer_memory directly.
2670 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2671
d28d46b5
PA
26722013-08-27 Pedro Alves <palves@redhat.com>
2673
2674 * darwin-nat.c (darwin_xfer_memory): Delete.
2675 (_initialize_darwin_inferior): Don't install a
2676 deprecated_xfer_memory method.
2677
6211c335
YQ
26782013-08-27 Pedro Alves <pedro@codesourcery.com>
2679 Yao Qi <yao@codesourcery.com>
2680
2681 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2682 (parse_no_frames_option): Remove.
2683 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2684 (mi_cmd_stack_list_args): Adjust.
2685 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2686 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2687 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2688 Caller update.
2689 (list_args_or_locals): New parameter 'skip_unavailable'.
2690 Handle it.
2691 * valprint.c (scalar_type_p): Rename to ...
2692 (val_print_scalar_type_p): ... this. Make extern.
2693 (val_print, value_check_printable): Adjust.
2694 * valprint.h (val_print_scalar_type_p): Declare.
2695 * value.c (value_entirely_unavailable): New function.
2696 * value.h (value_entirely_unavailable): Declare.
2697
2698 * NEWS: Mention the new option "--skip-unavailable" to MI
2699 commands '-stack-list-locals', '-stack-list-arguments' and
2700 '-stack-list-variables'.
2701
242f1fd7
YQ
27022013-08-27 Yao Qi <yao@codesourcery.com>
2703
2704 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2705 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2706 options.
2707 * mi/mi-getopt.c (mi_getopt): Remove.
2708 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2709 'error_on_unknown'.
2710 (mi_getopt): Call mi_getopt_1.
2711 (mi_getopt_silent): New.
2712 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2713
260b681b
DE
27142013-08-26 Doug Evans <dje@google.com>
2715
779bd270
DE
2716 PR symtab/15885
2717 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2718 .gdb_index is in use.
2719 * symfile.c (reread_symbols): Reset objfile->sf.
2720
52e260a3
DE
2721 * NEWS: Document "mt print objfiles" now takes optional regexp.
2722 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2723 regexp of objfiles to print.
2724 (_initialize_symmisc): Update doc string for "mt print objfiles".
2725
260b681b
DE
2726 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2727 missing debug info checks.
2728
a85c52f2
UW
27292013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2730 Ulrich Weigand <uweigand@de.ibm.com>
2731
2732 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2733 line tables generated by XLC compiled binaries.
2734
4f00dda3
DE
27352013-08-23 Doug Evans <dje@google.com>
2736
db68bbae
DE
2737 * symmisc.c (dump_symtab): Delete prototype.
2738 (dump_msymbols, dump_objfile): Ditto.
2739 (maintenance_info_symtabs): Mark as dont_repeat.
2740 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2741
4f00dda3
DE
2742 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2743 debugging printf to better location.
2744
23d577b0
PA
27452013-08-23 Pedro Alves <palves@redhat.com>
2746
2747 * target.c (target_read_live_memory): Change type of 'ret' local
2748 to LONGEST.
2749
00d84524
PA
27502013-08-23 Pedro Alves <palves@redhat.com>
2751
2752 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2753 (remote_read_bytes): Change return type to LONGEST, and adjust to
2754 return a target_xfer_error on error.
2755 (remote_xfer_memory): Delete.
2756 (remote_flash_write): Change type of 'ret' local to LONGEST.
2757 (remote_xfer_partial, remote_xfer_partial): Adjust.
2758 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2759
1ed3ee94
PM
27602013-08-23 Pierre Muller <muller@sourceware.org>
2761
2762 ARI fix: Push # directives to start of line.
2763 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2764
9eaabc75
MW
27652013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2766
2767 PR gdb/15501
2768 * breakpoint.c (enable_command, disable_command): Iterate over
2769 all specified breakpoint locations.
2770
101158d9
LM
27712013-08-22 Luis Machado <lgustavo@codesourcery.com>
2772
2773 * common/linux-ptrace.c (linux_fork_to_function): Push #
2774 directives to the start of the line.
2775 (linux_check_ptrace_features): Fix warning message to use
2776 the "_" markup.
2777
96d7229d
LM
27782013-08-22 Luis Machado <lgustavo@codesourcery.com>
2779
2780 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2781 nat/linux-waitpid.h.
2782 (linux-waitpid.o): New object file rule.
2783 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2784 (current_ptrace_options): Moved from linux-nat.c.
2785 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2786 parameters.
2787 (linux_fork_to_function): New function.
2788 (linux_grandchild_function): Likewise.
2789 (linux_child_function): Likewise.
2790 (linux_check_ptrace_features): New function, heavily
2791 based on linux-nat.c:linux_test_for_tracefork.
2792 (linux_enable_event_reporting): New function.
2793 (ptrace_supports_feature): Likewise.
2794 (linux_supports_tracefork): Likewise.
2795 (linux_supports_traceclone): Likewise.
2796 (linux_supports_tracevforkdone): Likewise.
2797 (linux_supports_tracesysgood): Likewise.
2798 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2799 gdbserver/linux-low.c.
2800 (linux_enable_event_reporting): New declaration.
2801 (linux_supports_tracefork): Likewise.
2802 (linux_supports_traceclone): Likewise.
2803 (linux_supports_tracevforkdone): Likewise.
2804 (linux_supports_tracesysgood): Likewise.
2805 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2806 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2807 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2808 * config/arm/linux.mh (NATDEPFILES): Likewise.
2809 * config/i386/linux.mh (NATDEPFILES): Likewise.
2810 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2811 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2812 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2813 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2814 * config/mips/linux.mh (NATDEPFILES): Likewise.
2815 * config/pa/linux.mh (NATDEPFILES): Likewise..
2816 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2817 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2818 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2819 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2820 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2821 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2822 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2823 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2824 ptrace's 4th argument's types.
2825 Check the type of PTRACE_TYPE_ARG4.
2826 * configure: Regenerate.
2827 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2828 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2829 (linux_supports_tracefork_flag): Remove.
2830 (linux_supports_tracesysgood_flag): Likewise.
2831 (linux_supports_tracevforkdone_flag): Likewise.
2832 (current_ptrace_options): Moved to
2833 common/linux-ptrace.c.
2834 (linux_tracefork_child): Remove.
2835 (my_waitpid): Remove.
2836 (linux_test_for_tracefork): Renamed to
2837 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2838 (linux_test_for_tracesysgood): Remove.
2839 (linux_supports_tracesysgood): Remove.
2840 (linux_supports_tracefork): Remove.
2841 (linux_supports_tracevforkdone): Remove.
2842 (linux_enable_tracesysgood): Remove.
2843 (linux_enable_event_reporting): Remove.
2844 (linux_init_ptrace): New function.
2845 (linux_child_post_attach): Call linux_init_ptrace.
2846 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2847 (linux_child_follow_fork): Call linux_supports_tracefork
2848 and linux_supports_tracevforkdone.
2849 (linux_child_insert_fork_catchpoint): Call
2850 linux_supports_tracefork.
2851 (linux_child_insert_vfork_catchpoint): Likewise.
2852 (linux_child_set_syscall_catchpoint): Call
2853 linux_supports_tracesysgood.
2854 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2855 * nat/linux-nat.h: New file.
2856 * nat/linux-waitpid.c: New file.
2857 * nat/linux-waitpid.h: New file.
2858
9f948660
SDJ
28592013-08-22 Samuel Bronson <naesten@gmail.com>
2860
2861 ARM Linux support for `catch syscall'.
2862 * syscalls/arm-linux.py: New file.
2863 * syscalls/arm-linux.xml: Likewise.
2864 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2865 (arm_linux_init_abi): Register the new function and syscall xml file.
2866 * data-directory/Makefile.in: Install the new syscall xml file.
2867 * NEWS: Brag about this.
2868
6be7b56e
PA
28692013-08-22 Pedro Alves <palves@redhat.com>
2870
2871 PR gdb/15871
2872 * corefile.c (target_xfer_memory_error): New function.
2873 (memory_error): Defer EIO to target_memory_error.
2874 (read_memory): Use target_xfer_partial, and handle finer-grained
2875 target xfer errors.
2876 * target.c (target_xfer_error_to_string): New function.
2877 (memory_xfer_partial_1): If memory is known to be
2878 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2879 (target_xfer_partial): Make extern.
2880 * target.h (enum target_xfer_error): New enum.
2881 (target_xfer_error_to_string): Declare function.
2882 (target_xfer_partial): Declare function.
2883 (struct target_ops) <xfer_partial>: Adjust describing comment.
2884
bcbec14e
AM
28852013-08-22 Alan Modra <amodra@gmail.com>
2886
2887 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2888 * configure.tgt: Likewise as targets.
2889
fc474241
DE
28902013-08-20 Doug Evans <dje@google.com>
2891
2892 * buildsym.c (subfile_stack): Move here from buildsym.h.
2893 (pending_macros): Ditto.
2894 (get_macro_table): New function.
2895 (buildsym_init): Initialize subfile_stack.
2896 * coffread.c (type_vector,type_vector_length): Moved here from
2897 buildsym.h.
2898 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2899 (coff_symtab_read): Use it.
2900 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2901 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2902 with call to get_macro_table.
2903 * stabsread.c (type_vector,type_vector_length): Moved here from
2904 buildsym.h.
2905 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2906 * buildsym.h (get_macro_table): Declare.
2907
bec71544
TT
29082013-08-20 Tom Tromey <tromey@redhat.com>
2909
2910 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2911 Update.
2912 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2913
0002ad5f
DE
29142013-08-20 Doug Evans <dje@google.com>
2915
2916 * blockframe.c: Remove #include "psymtab.h".
2917 * cp-support.c: Ditto.
2918 * source.c: Ditto.
2919 * stack.c: Ditto.
2920
df302446
TT
29212013-08-20 Tom Tromey <tromey@redhat.com>
2922
2923 PR python/15816:
2924 * exceptions.h (return_mask): Now an enum.
2925 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2926 enum constants.
2927
df6d5441
TT
29282013-08-20 Tom Tromey <tromey@redhat.com>
2929
2930 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2931 get_objfile_arch.
2932 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2933 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2934 * jit.c (jit_object_close_impl): Update.
2935 * jv-lang.c (get_dynamics_objfile): Update.
2936 * linespec.c (add_minsym): Use get_dynamics_objfile.
2937 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2938 (allocate_objfile): Don't initialize 'gdbarch' field.
2939 (get_objfile_arch): Update.
2940 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2941 moved from...
2942 (struct objfile) <gdbarch>: ... here. Remove.
2943 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2944 get_objfile_arch.
2945 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2946
f5aee5ee
AM
29472013-08-20 Alan Modra <amodra@gmail.com>
2948
2949 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2950 for IBM long double nan and inf.
2951 (floatformat_is_negative, floatformat_classify,
2952 floatformat_mantissa): Similarly.
2953 (floatformat_ieee_single, floatformat_ieee_double,
2954 floatformat_ieee_quad, floatformat_arm_ext,
2955 floatformat_ia64_spill): Delete unused vars.
2956 (_initialize_doublest): Delete unused function.
2957 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2958 little-endian variants of floatformat_ibm_long_double.
2959
33b60d58 29602013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2961
33b60d58
LM
2962 * Makefile.in (SFILES): Remove common/target-common.c and
2963 add target/waitstatus.c.
2964 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2965 target/resume.h, target/wait.h and target/waitstatus.h.
2966 (COMMON_OBS): Remove target-common.o and add
2967 waitstatus.o.
2968 (target-common.o): Remove.
2969 (waitstatus.o): New target object file.
2970 * common/target-common.c: Move contents to
2971 target/waitstatus.c and remove.
2972 * common/target-common.h: Move contents to other files and
2973 remove.
2974 (enum resume_kind: Move to target/resume.h.
2975 (TARGET_WNOHANG): Move to target/wait.h.
2976 (enum target_waitkind): Move to target/waitstatus.h.
2977 (struct target_waitstatus): Likewise.
2978 * target.h: Do not include target-common.h and
2979 include target/resume.h, target/wait.h and
2980 target/waitstatus.h.
2981 * target/resume.h: New file.
2982 * target/wait.h: New file.
2983 * target/waitstatus.h: New file.
2984 * target/waitstatus.c: New file.
2985
12696c10
PA
29862013-08-19 Pedro Alves <palves@redhat.com>
2987
2988 * linux-nat.c (linux_test_for_tracefork)
2989 (linux_test_for_tracesysgood, linux_child_follow_fork)
2990 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2991 (linux_nat_wait_1): Extend comment.
2992 (linux_async_pipe): Add comment.
2993
ba89f962
KB
29942013-08-15 Kevin Buettner <kevinb@redhat.com>
2995
2996 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2997 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2998 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2999 Update to account for fact that PC is now a pseudo-register.
3000 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3001 cases for RL78_PC_REGNUM.
3002
35ab155d
MB
30032013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3004
3005 PR cli/15841
3006 * top.c (quit_force): Skip writing history file
3007 if input is not from terminal.
3008
0d031856
TT
30092013-08-14 Tom Tromey <tromey@redhat.com>
3010
3011 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3012 resultthreadlist>: New fields.
3013 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3014 (remote_get_threadlist, remote_threadlist_iterator): Use
3015 new fields. Remove static variables.
3016
ee154bee
TT
30172013-08-14 Tom Tromey <tromey@redhat.com>
3018
3019 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3020 remote_watch_data_address>: New fields.
3021 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3022 (process_stop_reply, remote_wait_as)
3023 (remote_check_watch_resources, remote_stopped_data_address): Update.
3024
88b496c3
TT
30252013-08-14 Tom Tromey <tromey@redhat.com>
3026
3027 * remote.c (struct remote_state) <async_client_callback,
3028 async_client_context>: New fields.
3029 (async_client_callback, async_client_context): Remove.
3030 (remote_async_serial_handler, remote_async): Update.
3031
2f65bcb7
TT
30322013-08-14 Tom Tromey <tromey@redhat.com>
3033
3034 * remote.c (sizeof_pkt): Remove.
3035 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3036
b80fafe3
TT
30372013-08-14 Tom Tromey <tromey@redhat.com>
3038
3039 * remote.c (struct remote_state) <use_threadinfo_query,
3040 use_threadextra_query>: New fields.
3041 (remote_threads_info, remote_threads_extra_info)
3042 (remote_open_1): Update.
3043
8e88304f
TT
30442013-08-14 Tom Tromey <tromey@redhat.com>
3045
3046 * remote.c (struct remote_state) <finished_object,
3047 finished_annex, finished_offset>: New fields.
3048 (remote_read_qxfer): Use remote_state fields; remove static
3049 variables.
3050
280ceea3
TT
30512013-08-14 Tom Tromey <tromey@redhat.com>
3052
3053 * remote.c (struct remote_state) <last_sent_step>:
3054 New field.
3055 (last_sent_step): Remove.
3056 (remote_resume, remote_wait_as): Update.
3057
b73be471
TT
30582013-08-14 Tom Tromey <tromey@redhat.com>
3059
3060 * remote.c (struct remote_state) <last_sent_signal>:
3061 New field.
3062 (last_sent_signal): Remove.
3063 (new_remote_state, remote_resume, remote_wait_as): Update.
3064
5e4a05c4
TT
30652013-08-14 Tom Tromey <tromey@redhat.com>
3066
3067 * remote.c (struct remote_state) <last_program_signals_packet>:
3068 New field.
3069 (last_program_signals_packet): Remove.
3070 (remote_program_signals, remote_open_1): Update.
3071
747dc59d
TT
30722013-08-14 Tom Tromey <tromey@redhat.com>
3073
3074 * remote.c (struct remote_state) <last_pass_packet>:
3075 New field.
3076 (last_pass_packet): Remove.
3077 (remote_pass_signals, remote_open_1): Update.
3078
262e1174
TT
30792013-08-14 Tom Tromey <tromey@redhat.com>
3080
3081 * remote.c (struct remote_state) <remote_traceframe_number>:
3082 New field.
3083 (remote_traceframe_number): Remove.
3084 (new_remote_state, remote_open_1, set_remote_traceframe)
3085 (remote_trace_find): Update.
3086
47f8a51d
TT
30872013-08-14 Tom Tromey <tromey@redhat.com>
3088
3089 * remote.c (struct remote_state) <general_thread, continue_thread>:
3090 New fields.
3091 (general_thread, continue_thread): Remove.
3092 (record_currthread, set_thread, set_general_process)
3093 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3094 (extended_remote_mourn_1): Update.
3095
5d93a237
TT
30962013-08-14 Tom Tromey <tromey@redhat.com>
3097
3098 * remote.c (struct remote_state) <remote_desc>: New field.
3099 (remote_desc): Remove.
3100 (remote_threads_info, remote_threads_extra_info, remote_close)
3101 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3102 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3103 (remote_hostio_send_command, remote_file_put, remote_file_get)
3104 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3105 (remote_async, remote_new_objfile, set_range_stepping): Update.
3106
cf792862
TT
31072013-08-14 Tom Tromey <tromey@redhat.com>
3108
3109 * remote.c (remote_state): Now a pointer.
3110 (get_remote_state_raw): Update.
3111 (new_remote_state): New function.
3112 (_initialize_remote): Use new_remote_state.
3113
dc473cfb
TT
31142013-08-14 Tom Tromey <tromey@redhat.com>
3115
3116 * remote.c (remote_protocol_features): Now const.
3117
85ec6ce7
TT
31182013-08-14 Tom Tromey <tromey@redhat.com>
3119
3120 * remote.c (crc32_table, crc32): Remove.
3121 (remote_verify_memory): Use xcrc32.
3122
73033f12
SDJ
31232013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3124
3125 * value.h (create_internalvar_type_lazy): Adjust prototype
3126 declaration.
3127
5c30d39a
AB
31282013-08-13 Andrew Burgess <aburgess@broadcom.com>
3129
3130 * common/format.c (parse_format_string): Don't allow '#' flag for
3131 pointer arguments in format string.
3132
1a66331e
PM
31332013-08-13 Pierre Muller <muller@sourceware.org>
3134
fde605f3 3135 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3136 if rl_get_screen_size did not return useful values.
3137
b4013987
AA
31382013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3139
3140 PR breakpoints/15117
3141 * linespec.c (linespec_parse_basic): Check for convenience
3142 variable or history value while parsing.
3143
959b6a66
SDJ
31442013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3145
3146 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3147 AVR.
3148 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3149 different signals between the generic Linux kernel implementation
3150 and AVR's.
3151 (avr_linux_gdb_signal_from_target): Delete.
3152 (avr_linux_gdb_signal_to_target): Delete.
3153 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3154
24a55014
DE
31552013-08-09 Doug Evans <dje@google.com>
3156
3157 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3158 entries.
3159
eb14d406
SDJ
31602013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3161
3162 * linux-tdep.c: Define enum with generic signal numbers.
3163 (linux_gdb_signal_from_target): New function.
3164 (linux_gdb_signal_to_target): Likewise.
3165 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3166 methods to the functions above.
3167 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3168 (linux_gdb_signal_to_target): Likewise.
3169 * alpha-linux-tdep.c: Define new enum with signals different
3170 from generic Linux kernel.
3171 (alpha_linux_gdb_signal_from_target): New function.
3172 (alpha_linux_gdb_signal_to_target): Likewise.
3173 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3174 with the functions mentioned above.
3175 * avr-tdep.c: Define enum with differences between Linux kernel
3176 and AVR signals.
3177 (avr_linux_gdb_signal_from_target): New function.
3178 (avr_linux_gdb_signal_to_target): Likewise.
3179 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3180 the functions mentioned above.
3181 * sparc-linux-tdep.c: Define enum with differences between SPARC
3182 and generic Linux kernel signal numbers.
3183 (sparc32_linux_gdb_signal_from_target): New function.
3184 (sparc32_linux_gdb_signal_to_target): Likewise.
3185 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3186 to the functions defined above.
3187 * xtensa-linux-tdep.c: Define enum with differences between
3188 Xtensa and Linux kernel generic signals.
3189 (xtensa_linux_gdb_signal_from_target): New function.
3190 (xtensa_linux_gdb_signal_to_target): Likewise.
3191 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3192 to the functions defined above.
3193 * mips-linux-tdep.c: Define enum with differences between
3194 signals in MIPS and Linux kernel generic ones.
3195 (mips_gdb_signal_to_target): New function.
3196 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3197 only different signals from the Linux kernel generic.
3198 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3199 the functions defined above.
3200 * mips-linux-tdep.h (enum mips_signals): Remove.
3201
156d08c8
PA
32022013-08-09 Pedro Alves <palves@redhat.com>
3203
3204 * avr-tdep.c (XMALLOC): Delete macro.
3205 * cli/cli-dump.c (XMALLOC): Delete macro.
3206
db229724
PA
32072013-08-09 Pedro Alves <palves@redhat.com>
3208
3209 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3210 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3211 (fopen_with_cleanup, add_dump_command): Make static.
3212 * cli/cli-dump.h: Delete file.
3213 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3214 cli/cli-dump.h.
3215
3f12a589
PA
32162013-08-09 Pedro Alves <palves@redhat.com>
3217
3218 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3219 error message.
3220
c718be47
PA
32212013-08-09 Pedro Alves <palves@redhat.com>
3222
156d08c8 3223 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3224 error message.
3225
1e351ed1
PA
32262013-08-09 Pedro Alves <palves@redhat.com>
3227
3228 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3229 (gcore_command): Use tilde_expand here, and when showing the
3230 filename to the user, show the expanded version.
3231
1ed8d800
YQ
32322013-08-09 Yao Qi <yao@codesourcery.com>
3233
3234 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3235 'entryval' is set.
3236
47ecca85
PA
32372013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3238
3239 * gcore.c (create_gcore_bfd): Use tilde_expand.
3240
82a0a75f
YQ
32412013-08-08 Yao Qi <yao@codesourcery.com>
3242
3243 * frame.h (read_frame_local): Declare.
3244 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3245 read_frame_local.
3246 * stack.c (read_frame_local): New.
3247
5c4aa40b
YQ
32482013-08-08 Yao Qi <yao@codesourcery.com>
3249
3250 * mi/mi-cmd-stack.c: Update comments to function
3251 list_args_or_locals.
3252
b93601f3
TT
32532013-08-07 Tom Tromey <tromey@redhat.com>
3254
3255 PR symtab/15028:
3256 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3257 (process_psymtab_comp_unit_reader): Use it.
3258 (process_psymtab_comp_unit): Update. Add "pretend_language"
3259 argument.
3260 (dwarf2_build_psymtabs_hard): Update.
3261 (scan_partial_symbols): Pass CU's language to
3262 process_psymtab_comp_unit.
3263
fa760f46
TT
32642013-08-07 Tom Tromey <tromey@redhat.com>
3265
3266 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3267 (dwarf2_gdb_index_functions): Update.
3268 * psymtab.c (find_symbol_file_from_partial): Remove.
3269 (psym_functions): Update.
3270 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3271 Remove.
3272
bf6d8a91
TT
32732013-08-07 Tom Tromey <tromey@redhat.com>
3274
3275 * symfile.c (set_initial_language): Look up "main" symbol
3276 and use its language.
3277 * symtab.c (find_main_filename): Remove.
3278 * symtab.h (find_main_filename): Remove.
3279
f9125b6c
TT
32802013-08-07 Tom Tromey <tromey@redhat.com>
3281
3282 * dwarf2read.c (recursively_compute_inclusions): Add
3283 "immediate_parent" argument. Set symtab's "user" field
3284 if not set.
3285 (compute_symtab_includes): Update.
3286
fdbb204b
TT
32872013-08-07 Tom Tromey <tromey@redhat.com>
3288
3289 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3290 when adding label symbols.
3291
49de1690
UW
32922013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3293 Ulrich Weigand <uweigand@de.ibm.com>
3294
3295 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3296 * configure.host (powerpc64-*-aix*): Likewise.
3297
b08ee99f
UW
32982013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3299 Ulrich Weigand <uweigand@de.ibm.com>
3300
3301 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3302 is defined.
3303 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3304 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3305 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3306 * configure.ac: Check for ptrace64.
3307 * configure, config.in: Regenerate.
3308
fecf803e
UW
33092013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3310 Ulrich Weigand <uweigand@de.ibm.com>
3311
3312 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3313 Call ptrace64 instead of ptrace if defined.
3314 Add macro addr_ptr to take care of ptrace address argument.
3315 (pdc_read_regs): Likewise.
3316 (pdc_write_regs): Likewise.
3317 (aix_thread_resume): Likewise.
3318 (fetch_regs_kernel_thread): Likewise.
3319 (store_regs_kernel_thread): Likewise.
3320
3bb5e4a8
AB
33212013-08-07 Anton Blanchard <anton@samba.org>
3322
3323 * MAINTAINERS: Add myself to Write After Approval.
3324
12070676
TT
33252013-08-05 Tom Tromey <tromey@redhat.com>
3326
3327 * aix-thread.c (_initialize_aix_thread): Use
3328 complete_target_initialization.
3329 * bsd-uthread.c (_initialize_bsd_uthread): Use
3330 complete_target_initialization.
3331 * dec-thread.c (_initialize_dec_thread): Use
3332 complete_target_initialization.
3333 * ravenscar-thread.c (_initialize_ravenscar): Use
3334 complete_target_initialization.
3335 * sol-thread.c (_initialize_sol_thread): Use
3336 complete_target_initialization.
3337 * spu-multiarch.c (_initialize_spu_multiarch): Use
3338 complete_target_initialization.
3339
7c7b6655
TT
33402013-08-05 Tom Tromey <tromey@redhat.com>
3341
3342 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3343 * ada-lang.c (ada_lookup_simple_minsym): Return
3344 bound_minimal_symbol.
3345 * ada-lang.h (ada_lookup_simple_minsym): Update.
3346 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3347 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3348 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3349 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3350 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3351 * minsyms.c (msymbol_objfile): Remove.
3352 (lookup_minimal_symbol_internal): New function, from
3353 lookup_minimal_symbol.
3354 (lookup_minimal_symbol): Rewrite using
3355 lookup_minimal_symbol_internal.
3356 (lookup_bound_minimal_symbol): New function.
3357 * minsyms.h (msymbol_objfile): Remove.
3358 (lookup_bound_minimal_symbol): Declare.
3359 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3360 * parse.c (write_exp_msymbol): Change parameter to a
3361 bound_minimal_symbol.
3362 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3363 * parser-defs.h (write_exp_msymbol): Update.
3364 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3365 * symfile.c (simple_read_overlay_table): Use
3366 lookup_bound_minimal_symbol.
3367 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3368 (search_symbols): Likewise.
3369 (print_msymbol_info): Take a bound_minimal_symbol argument.
3370 (symtab_symbol_info, rbreak_command): Update.
3371 * symtab.h (struct symbol_search) <msymbol>: Change type
3372 to bound_minimal_symbol.
3373 * valops.c (find_function_in_inferior): Use
3374 lookup_bound_minimal_symbol.
3375 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3376
934b9bac
JK
33772013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3378
3379 Code cleanup.
3380 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3381 to ...
3382 (async_cleanup_sigint_signal_handler): ... this.
3383 (initialize_sigint_signal_handler): Remove declaration.
3384 (handle_remote_sigint): Rename the declaration to ...
3385 (async_handle_remote_sigint): ... this.
3386 (handle_remote_sigint_twice): Rename the declaration to ...
3387 (async_handle_remote_sigint_twice): ... this.
3388 (async_remote_interrupt, async_remote_interrupt_twice)
3389 (remote_interrupt): Remove the declarations.
3390 (remote_interrupt_twice): Rename the declaration ...
3391 (sync_remote_interrupt_twice): ... this.
3392 (sigint_remote_twice_token): Rename the variable to ...
3393 (async_sigint_remote_twice_token): ... this.
3394 (sigint_remote_token): Rename the variable to ...
3395 (async_sigint_remote_token): ... this.
3396 (initialize_sigint_signal_handler): Rename the function to ...
3397 (async_initialize_sigint_signal_handler): ... this. Update the name
3398 inside.
3399 (handle_remote_sigint): Rename the function to ...
3400 (async_handle_remote_sigint): ... this. Update the names inside.
3401 (handle_remote_sigint_twice): Rename the function to ...
3402 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3403 (cleanup_sigint_signal_handler): Rename the function to ...
3404 (async_cleanup_sigint_signal_handler): ... this.
3405 (remote_interrupt): Rename the function to ...
3406 (sync_remote_interrupt): this. Update the names inside.
3407 (remote_interrupt_twice): Rename the function to ...
3408 (sync_remote_interrupt_twice): this. Update the names inside.
3409 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3410 (_initialize_remote): Update the names inside.
3411
3a1115a0
TT
34122013-08-02 Tom Tromey <tromey@redhat.com>
3413
3414 PR symtab/15719:
3415 * breakpoint.c (update_watchpoint, watchpoint_check)
3416 (watch_command_1): Update.
3417 * eval.c (fetch_subexp_value): Add "preserve_errors"
3418 parameter.
3419 * ppc-linux-nat.c (check_condition): Update.
3420 * value.h (fetch_subexp_value): Update.
3421
58b19776
AB
34222013-08-02 Andrew Burgess <aburgess@broadcom.com>
3423
3424 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3425 add_file_handler.
3426
ec94af83
DE
34272013-08-01 Doug Evans <dje@google.com>
3428
7ee85ab1
DE
3429 PR symtab/15691
3430 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3431 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3432 Add assert of sig_entry->dwo_unit == NULL.
3433 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3434 had already been read.
3435 (read_signatured_type): Set per_cu.tu_read.
3436
b846d303
DE
3437 PR symtab/15695
3438 * valops.c (value_struct_elt): Add missing call to check_typedef.
3439 (value_find_oload_method_list): Ditto.
3440
b52109bc
DE
3441 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3442 effectively, struct symbol_search **.
3443 (make_cleanup_free_search_symbols): Change arg to struct
3444 symbol_search **. All callers updated.
3445 (compare_search_syms): Compare symtab file name and block as well.
3446 (search_symbols_equal): New function.
3447 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3448 New args new_head, new_tail. Result is now void. Remove dups after
3449 sorting the symbols.
3450 (search_symbols): Sort all found symbols once, after all have been
3451 found, and remove duplicates. Simplify cleanup tracking of result.
3452 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3453
ec94af83
DE
3454 Further workarounds for binutils/15021.
3455 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3456 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3457 Watch for duplicate symtabs coming from type units.
3458 (compute_symtab_includes): Update call to
3459 recursively_compute_inclusions. Build vector of included symtabs
3460 instead of per_cus.
3461 * symtab.h (symtab_ptr): New typedef.
3462 (DEF_VEC_P (symtab_ptr)): New VEC type.
3463 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3464 instead.
3465
b2ae85cf
AB
34662013-08-01 Andrew Burgess <aburgess@broadcom.com>
3467
3468 * cli/cli-script.c (script_from_file): Remove use of
3469 error_pre_print.
3470 * main.c (captured_main): Remove use of error_pre_print and
3471 quit_pre_print.
3472 * utils.c (error_pre_print, quit_pre_print): Remove.
3473 * utils.h (error_pre_print, quit_pre_print): Likewise.
3474
645eab03
YQ
34752013-08-01 Yao Qi <yao@codesourcery.com>
3476
3477 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3478 with mi_getopt.
3479 (mi_cmd_stack_list_variables): Likewise.
3480
16f92dd4
AB
34812013-07-31 Andrew Burgess <aburgess@broadcom.com>
3482
3483 * exceptions.c (deprecated_throw_reason): Remove.
3484 * exceptions.h (deprecated_throw_reason): Remove.
3485
13f78033
AB
34862013-07-31 Andrew Burgess <aburgess@broadcom.com>
3487
3488 * remote-mips.c (mips_error): Replace use of
3489 deprecated_throw_reason with throw_verror. Use the error message
3490 passed to mips_error as the error message for throw_verror.
3491
039e3c22
AB
34922013-07-31 Andrew Burgess <aburgess@broadcom.com>
3493
3494 * monitor.c (monitor_interrupt_query): Replace use of
3495 deprecated_throw_reason with quit.
3496 * nto-procfs.c (interrupt_query): Likewise.
3497 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3498 * remote-mips.c (mips_kill): Likewise.
3499 * remote.c (interrupt_query): Likewise.
3500
8150913b
AB
35012013-07-31 Andrew Burgess <aburgess@broadcom.com>
3502
3503 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3504 with call to fatal.
3505
de74e63a
YQ
35062013-07-31 Pedro Alves <pedro@codesourcery.com>
3507 Yao Qi <yao@codesourcery.com>
3508
3509 * tracepoint.c (trace_dump_command): Select the current frame.
3510
247f5c4f
DE
35112013-07-30 Doug Evans <dje@google.com>
3512
3513 * dwarf2read.c (process_queue): Add type signature to debug output.
3514
11b4b7cc
AB
35152013-07-30 Andrew Burgess <aburgess@broadcom.com>
3516
3517 * value.c (value_fetch_lazy): Mark optimized out values as such
3518 rather than raising an error.
3519
b0c54aa5
AB
35202013-07-30 Andrew Burgess <aburgess@broadcom.com>
3521
3522 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3523 before checking which bits of the parent, not the child, value are
3524 valid.
3525
97c85fc6
MB
35262013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3527
3528 PR gdb/15715
3529 * top.c: Include "filenames.h".
3530 (set_history_filename): New function.
3531 (init_main): Install it as set hook of the "set history filename"
3532 command.
3533
ff39bb5e
SA
35342013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3535
3536 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3537 attribute parameter.
3538 (dwarf2_const_value_data): Constify struct attribute parameter.
3539 (dwarf2_const_value): Constify struct attribute parameter.
3540 (dwarf2_const_value_attr): Constify struct attribute parameter.
3541 (lookup_die_type): Constify struct attribute parameter.
3542 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3543 (follow_die_ref_or_sig): Constify struct attribute parameter.
3544 (follow_die_ref): Constify struct attribute parameter.
3545 (follow_die_sig): Constify struct attribute parameter.
3546 (get_DW_AT_signature_type): Constify struct attribute parameter.
3547 (get_type_unit_group): Constify struct attribute parameter.
3548 (fill_in_loclist_baton): Constify struct attribute parameter.
3549 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3550 (type_unit_group): Constify struct attribute parameter.
3551
6e5a29e1
SA
35522013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3553
3554 * dwarf2read.c (attr_form_is_block): Make argument const.
3555 (attr_form_is_section_offset): Make argument const.
3556 (attr_form_is_constant): Make argument const.
3557 (attr_form_is_ref): Make argument const.
3558
7771576e
SA
35592013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3560
3561 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3562 All uses updated.
3563 (attr_form_is_ref): Moved below attr_form_is_constant.
3564
a94e8645
DE
35652013-07-29 Doug Evans <dje@google.com>
3566
bb5291d0
DE
3567 * main.c (captured_command_loop): Tweak comment.
3568
b5419e49
DE
3569 * target.c (target_async_permitted_1): Fix comment.
3570
b2d23133
DE
3571 * symtab.c (iterate_over_some_symtabs): Add comment.
3572
a94e8645
DE
3573 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3574
7a60ad40
YQ
35752013-07-27 Yao Qi <yao@codesourcery.com>
3576
3577 * NEWS: Mention that GDBserver now supports hardware
3578 watchpoints on the MIPS GNU/Linux target.
3579
aaee2056
YQ
35802013-07-27 Yao Qi <yao@codesourcery.com>
3581
3582 * Makefile.in (HFILES_NO_SRCDIR): Add
3583 common/mips-linux-watch.h.
3584 (mips-linux-watch.o): New rule.
3585 * common/mips-linux-watch.c: New.
3586 * common/mips-linux-watch.h: New.
3587 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3588 * mips-linux-nat.c: Include mips-linux-watch.h.
3589 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3590 to common/mips-linux-watch.h.
3591 (MAX_DEBUG_REGISTER): Likewise.
3592 (enum pt_watch_style): Likewise.
3593 (struct mips32_watch_regs): Likewise.
3594 (struct mips64_watch_regs): Likewise.
3595 (struct pt_watch_regs): Likewise.
3596 (struct mips_watchpoint): Likewise.
3597 (mips_linux_watch_get_irw_mask): Move to
3598 common/mips-linux-watch.c.
3599 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3600 (mips_linux_watch_get_watchlo): Likewise.
3601 (mips_linux_watch_set_watchlo): Likewise.
3602 (mips_linux_watch_get_watchhi): Likewise.
3603 (mips_linux_watch_set_watchhi): Likewise.
3604 (mips_linux_read_watch_registers): Likewise.
3605 (mips_linux_watch_type_to_irw): Likewise.
3606 (mips_linux_stopped_data_address, fill_mask): Likewise.
3607 (mips_linux_watch_try_one_watch): Likewise.
3608 (mips_linux_watch_populate_regs): Likewise.
3609
b3436450
YQ
36102013-07-27 Yao Qi <yao@codesourcery.com>
3611
3612 * mips-linux-nat.c (get_irw_mask): Rename to ...
3613 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3614 'set' to 'n'. Update function comment. All callers changed.
3615 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3616 function comment. All callers changed.
3617 (get_num_valid): Rename to ...
3618 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3619 'set' to 'n'. Update function comment. All callers changed.
3620 (get_watchlo): Rename to ...
3621 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3622 'set' to 'n'. Update function comment. All callers changed.
3623 (set_watchlo): Rename to ...
3624 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3625 'set' to 'n'. Update function comment. All callers changed.
3626 (get_watchhi): Rename to ...
3627 (mips_linux_watch_get_watchhi): ... this. Update function
3628 comment. All callers changed.
3629 (set_watchhi): Rename to ...
3630 (mips_linux_watch_set_watchhi): ... this. Update function
3631 comment. All callers changed.
3632 (mips_linux_read_watch_registers): Update function comment.
3633 Add new parameters 'lwpid', 'watch_readback', and
3634 'watch_readback_valid'. Update.
3635 (type_to_irw): Rename to ...
3636 (mips_linux_watch_type_to_irw): ... this. Update function
3637 comment. All callers changed.
3638 (fill_mask): Update function comment.
3639 (try_one_watch): Rename to ...
3640 (mips_linux_watch_try_one_watch): ... this. Change the type
3641 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3642 (populate_regs_from_watches): Rename to ...
3643 (mips_linux_watch_populate_regs): ... this. Add parameter
3644 'current_watches'. All callers changed.
3645
9be14b81
YQ
36462013-07-27 Yao Qi <yao@codesourcery.com>
3647
3648 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3649 the code.
3650 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3651 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3652 (struct pt_watch_regs): Likewise.
3653 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3654 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3655 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3656 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3657 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3658
de6f69ad
YQ
36592013-07-27 Yao Qi <yao@codesourcery.com>
3660
3661 * breakpoint.h: Include break-common.h.
3662 (enum target_hw_bp_type): Move to ...
3663 * common/break-common.h: ... here. New.
3664
6f64ef53
PA
36652013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3666
3667 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3668 process group regardless of having tty on stdin.
3669
6107e809
DE
36702013-07-25 Doug Evans <dje@google.com>
3671
3672 * linux-fork.h (detach_fork): Delete.
3673
7fdc1521
TT
36742013-07-25 Tom Tromey <tromey@redhat.com>
3675
3676 PR remote/15256, PR remote/15266:
3677 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3678 * monitor.c (monitor_detach): Use unpush_target.
3679 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3680 * remote-mips.c (mips_detach): Use unpush_target. Don't
3681 call mips_close.
3682 * remote-sim.c (gdbsim_detach): Use unpush_target.
3683 * target.c (pop_target): Remove.
3684 (pop_all_targets_above): Don't call target_close.
3685 (target_close): Assert that the target is unpushed.
3686 * target.h (pop_target): Don't declare.
3687 * tracepoint.c (tfile_open): Use unpush_target.
3688
c22a2b88
TT
36892013-07-25 Tom Tromey <tromey@redhat.com>
3690
3691 * linux-thread-db.c (init_thread_db_ops): Call
3692 complete_target_initialization.
3693 (_initialize_thread_db): Don't call add_target.
3694 * target.c (complete_target_initialization): New function.
3695 (add_target_with_completer): Call it.
3696 * target.h (complete_target_initialization): Declare.
3697
cbb6aada
MK
36982013-07-25 Mark Kettenis <kettenis@gnu.org>
3699
3700 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3701 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3702 (HPPANBSD_SIZEOF_GREGS): New define.
3703 (hppaobsd_supply_gregset): Handle additional registers.
3704 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3705 we provide more registers now.
3706 (hppabsd_supply_gregset): Supply additional registers.
3707 (hppabsd_collect_gregset): Collect additional registers.
3708
17767988
MK
37092013-07-25 Mark Kettenis <kettenis@gnu.org>
3710
3711 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3712 (hppabsd_dwarf2_frame_init_reg): New function.
3713 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3714
fdc8aae8
AB
37152013-07-25 Andrew Burgess <aburgess@broadcom.com>
3716
3717 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3718 'z' format code. Remove error for optimized out values, standard
3719 code will handle these fine.
3720
6fbe845e
AB
37212013-07-25 Andrew Burgess <aburgess@broadcom.com>
3722
3723 * NEWS: Mention new 'z' formatter.
3724 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3725 (_initialize_printcmd): Mention 'z' formatter in help text of the
3726 'x' command.
3727
3373342d
MR
37282013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3729
3730 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3731 formatting.
3732
25f9533e
SDJ
37332013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3734
3735 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3736 interface can evaluate arguments. Fallback to the old mode if it
3737 cannot.
3738 (create_exception_master_breakpoint): Likewise.
3739 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3740 (struct sym_probe_fns elf_probe_fns): Export function above to the
3741 probe interface.
3742 * probe.c (can_evaluate_probe_arguments): New function.
3743 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3744 function pointer.
3745 (can_evaluate_probe_arguments): New function prototype.
3746 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3747 probe interface can evaluate arguments. Fallback to the old mode
3748 if it cannot.
3749 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3750 interface can evaluate arguments. Warning the user if it cannot.
3751 (stap_can_evaluate_probe_arguments): New function.
3752 (struct probe_ops stap_probe_ops): Export function above to the
3753 probe interface.
3754 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3755 New function pointer.
3756
3360c0bf
LM
37572013-07-24 Luis Machado <lgustavo@codesourcery.com>
3758
3759 * Makefile.in (SFILES): Add common/target-common.c.
3760 Add common/target-common.h to headers.
3761 (COMMON_OBS): Add target-common.o.
3762 (target-common.o): New target.
3763 * linux-nat.h (resume_kind): Move to common/target-common.h.
3764 * target.c (target_waitstatus_to_string): Move to
3765 common/target-common.c.
3766 * target.h: Include target-common.h.
3767 (target_waitkind): Move to common/target-common.h.
3768 (target_waitstatus): Likewise.
3769 (TARGET_WNOHANG): Likewise.
3770 * common/target-common.c: New file.
3771 * common/target-common.h: New file.
3772
6656a72d
DE
37732013-07-24 Doug Evans <dje@google.com>
3774
3775 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3776 a warning.
3777
6df81a63
YQ
37782013-07-23 Yao Qi <yao@codesourcery.com>
3779
3780 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3781 parameter 'gdbarch'.
3782 (i386_stack_tramp_frame_sniffer): Caller update.
3783 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3784 parameter 'gdbarch' and 'target'.
3785 (i386_linux_core_read_description): Caller update.
3786 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3787 Likewise.
3788 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3789 declaration.
3790
365156ad
TT
37912013-07-23 Tom Tromey <tromey@redhat.com>
3792
3793 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3794 2013-07-22.
3795
046ac79f
JK
37962013-07-22 Doug Evans <dje@google.com>
3797
3798 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3799 * exec.c (exec_close): Update call to remove_target_sections.
3800 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3801 * solib.c (update_solib_list): Ditto.
3802 (reload_shared_libraries_1): Ditto.
3803 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3804 * target.h (struct target_section): Rename key to owner.
3805 All uses updated.
046ac79f 3806
29b2cc46
TT
38072013-07-22 Tom Tromey <tromey@redhat.com>
3808
3809 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3810
d1160018
TT
38112013-07-22 Tom Tromey <tromey@redhat.com>
3812
3813 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3814 Simplify cleanup handling.
3815
2f324bf6
TT
38162013-07-22 Tom Tromey <tromey@redhat.com>
3817
3818 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3819 on all return paths.
3820
e23b9d6e
UW
38212013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3822
3823 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3824 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3825 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3826
1cf55f60
PM
38272013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3828
3829 * top.c (print_gdb_version): Add help, apropos description and
3830 url to online documentation.
3831
fa876972
HZ
38322013-07-19 Hui Zhu <hui@codesourcery.com>
3833
3834 PR gdb/15692
3835 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3836
1527aea8
YQ
38372013-07-19 Yao Qi <yao@codesourcery.com>
3838
3839 * target.c (update_current_target): Change the default action
3840 of 'to_traceframe_info' from tcomplain to return_zero.
3841 * target.h (struct target_ops) <to_traceframe_info>: Add more
3842 comments.
3843 * valops.c (read_value_memory): Call
3844 traceframe_available_memory unconditionally.
3845
886f230e
YQ
38462013-07-18 Yao Qi <yao@codesourcery.com>
3847
3848 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3849 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3850 symbol without prefix. If found, set its type to
3851 'mst_solib_trampoline'.
3852
16419bae
DE
38532013-07-17 Doug Evans <dje@google.com>
3854
e7045703
DE
3855 * NEWS: Mention "set print raw frame-arguments".
3856 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3857 * stack.c (print_raw_frame_arguments): New static global.
3858 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3859 (_initialize_stack): New command "set/show print raw frame-arguments".
3860 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3861 (set_print_raw, show_print_raw): New functions.
3862 (_initialize_valprint): New prefix command "set/show print raw".
3863 * valprint.h (value_print_options): Improve comments.
3864
453e48a5
DE
3865 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3866 of all *list variables.
3867
16419bae
DE
3868 * gdbcmd.h (togglelist): Delete.
3869 * cli/cli-cmds.c (togglelist): Delete.
3870 (init_cmd_lists): Update.
3871 * cli/cli-cmds.h (togglelist): Delete.
3872
626f2d1c
TT
38732013-07-17 Tom Tromey <tromey@redhat.com>
3874
3875 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3876 dwarf2_per_objfile.
3877
57e6060e
DE
38782013-07-16 Doug Evans <dje@google.com>
3879
3880 * nto-tdep.c (nto_relocate_section_addresses): Update,
3881 target_section.bfd deleted.
3882 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3883 * s390-tdep.c (s390_load): Ditto.
3884 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3885
5ea5559b
AB
38862013-07-16 Andrew Burgess <aburgess@broadcom.com>
3887
3888 * common/format.c (parse_format_string): Add checks for NULL
3889 character before calling strchr.
3890
2b2848e2
DE
38912013-07-16 Doug Evans <dje@google.com>
3892
2c571006
DE
3893 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3894 temp_pathname argument.
3895 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3896 when opening the file fails.
3897
2b2848e2
DE
3898 * target.h (struct target_section): Delete member bfd.
3899 All users updated to use the_bfd_section->owner instead.
3900 * exec.c (add_to_section_table): Assert bfd is expected value.
3901 Remove initialization of target_section.bfd.
3902 (remove_target_sections): Update.
3903 (section_table_available_memory): Update.
3904 (section_table_xfer_memory_partial): Update.
3905 (print_section_info): Update.
3906 (exec_set_section_address): Update.
3907 * record-full.c (record_full_core_xfer_partial): Update.
3908 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3909 * solib-target.c (solib_target_relocate_section_addresses): Update.
3910 * symfile.c (build_section_addr_info_from_section_table): Update.
3911 * target.c (memory_xfer_live_readonly_partial): Update.
3912 (memory_xfer_partial_1): Update.
3913
926bf92d
UW
39142013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3915
3916 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3917 now available for embedded (BookE) and server (BookS) processors,
3918 correct mentions of 'booke' and adjust comments accordingly in order to
3919 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3920 (have_ptrace_booke_interface): Rename function and variable
3921 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3922 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3923 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3924 'hwdebug_point_cmp'. Update all uses.
3925 (booke_find_thread_points_by_tid): Rename function
3926 'booke_find_thread_points_by_tid' to
3927 'hwdebug_find_thread_points_by_tid'. Update all uses.
3928 (booke_insert_point): Rename function 'booke_insert_point' to
3929 'hwdebug_insert_point'. Update all uses.
3930 (booke_remove_point): Rename function 'booke_remove_point' to
3931 'hwdebug_remove_point'. Update all uses.
3932
d929bc19
MR
39332013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3934
3935 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3936 numbers with enum values.
3937
054e8d9e
AA
39382013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3939
3940 PR threads/13217
3941 * thread.c (thread_apply_all_command): Check for valid threads
3942 and thread count.
3943 (thread_array_cleanup): New struct.
3944 (set_thread_refcount): New function.
3945
cf006359
AB
39462013-07-11 Andrew Burgess <aburgess@broadcom.com>
3947
3948 * infcmd.c (default_print_one_register_info): Reuse function
3949 print_hex_chars.
3950
94e36acc
TT
39512013-07-10 Tom Tromey <tromey@redhat.com>
3952
3953 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3954 (ada-exp.o): New target.
3955
915dd369
SDJ
39562013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3957
3958 * mt-tdep.c (mt_registers_info): Call
3959 get_no_prettyformat_print_options instead of
3960 get_raw_print_options (regression by last patch from Doug
3961 Evans).
3962
eca07816
JB
39632013-07-09 Pedro Alves <palves@redhat.com>
3964
3965 Checked in by Joel Brobecker <brobecker@adacore.com>.
3966 * ada-lang.c (coerce_unspec_val_to_type): Use
3967 value_optimized_out_const.
3968 * value.c (value_optimized_out_const): New function.
3969 * value.h (value_optimized_out_const): New declaration.
3970
2a998fc0
DE
39712013-07-09 Doug Evans <dje@google.com>
3972
3973 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3974 Enum values rename as well. All uses updated.
3975 * valprint.h (value_print_options): Rename member pretty to
3976 pretty format. Rename member prettyprint_arrays to
3977 prettyformat_arrays. Rename member prettyprint_structs to
3978 prettyformat_structs. All uses updated.
3979 (get_no_prettyformat_print_options): Renamed from
3980 get_raw_print_options.
3981 * valprint.c (get_no_prettyformat_print_options): Renamed from
3982 get_raw_print_options. All callers updated.
3983 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3984 All callers updated.
3985 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3986 All callers updated.
3987 (_initialize_valprint): Improve help text for "set print pretty" and
3988 "set print arrays".
3989
466c1fca
AB
39902013-07-09 Andrew Burgess <aburgess@broadcom.com>
3991
3992 * value.c (value_bits_valid): Revert previous change, and change
3993 by Pedro on 2013-07-04, due to regressions in
3994 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3995
ad0f0303
AB
39962013-07-08 Andrew Burgess <aburgess@broadcom.com>
3997 Pedro Alves <palves@redhat.com>
3998
3999 * value.c (value_bits_valid): If the value is not lval_computed
4000 or has no check validity handler then the answer is the
4001 optimized_out flag, otherwise defer to the handler.
4002
b187bec1
EZ
40032013-07-06 Eli Zaretskii <eliz@gnu.org>
4004
48d1d6f5
EZ
4005 * top.c (print_gdb_configuration): Explain in output of
4006 --configuration what does "relocatable" mean.
4007
b187bec1
EZ
4008 * main.c (print_gdb_help): Regroup options in the --help text.
4009 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4010 the relevant discussions.
4011
52d361e1
YQ
40122013-07-06 Yao Qi <yao@codesourcery.com>
4013
4014 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4015 Remove parameter 'lsal'.
4016 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4017 to inner block. Caller update.
4018 (base_breakpoint_create_breakpoints_sal): Update.
4019 (bkpt_create_breakpoints_sal): Likewise.
4020 (tracepoint_create_breakpoints_sal): Likewise.
4021 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4022 element 0 of vector 'canonical->sals'.
4023
e1ec1b42
LM
40242013-07-05 Luis Machado <lgustavo@codesourcery.com>
4025
4026 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4027 register number instead of the pseudo register one.
4028 (rs6000_dwarf2_reg_to_regnum): Likewise.
4029
7195e6f0
PA
40302013-07-04 Pedro Alves <palves@redhat.com>
4031
4032 * findvar.c (value_of_register): Use allocate_optimized_out_value
4033 if the register has been optimized out, instead of
4034 set_value_optimized_out.
4035 * frame-unwind.c (frame_unwind_got_optimized): Use
4036 allocate_optimized_out_value.
4037
58722cac
PA
40382013-07-04 Pedro Alves <palves@redhat.com>
4039
4040 * value.c (value_bits_valid): If the value is not lval_computed,
4041 or doesn't have a check_validity hook, assume the value is entirely
4042 valid.
4043
691a26f5
AB
40442013-07-04 Andrew Burgess <aburgess@broadcom.com>
4045
4046 * stack.c (read_frame_arg): No longer fetch lazy values.
4047 * value.c (value_optimized_out): If the value is not already
4048 marked optimized out, and is lazy then fetch it.
4049 (value_primitive_field): Move optimized out check to later in the
4050 function, after we have loaded any lazy values.
4051 (value_fetch_lazy): Use optimized out flag directly rather than
4052 calling optimized_out method.
4053
a58e2656
AB
40542013-07-04 Andrew Burgess <aburgess@broadcom.com>
4055
4056 * valops.c: Don't include "user-regs.h".
4057 (value_fetch_lazy): Moved to value.c.
4058 * value.c: Include "user-regs.h".
4059 (value_fetch_lazy): Moved from valops.c.
4060
bd885420
YQ
40612013-07-04 Yao Qi <yao@codesourcery.com>
4062
4063 Revert:
4064 2013-06-27 Yao Qi <yao@codesourcery.com>
4065
4066 * common/create-version.sh: Update comments. Handle the case
4067 that TARGET_ALIAS is empty.
4068
17ef446e
PA
40692013-07-03 Pedro Alves <palves@redhat.com>
4070
4071 * Makefile.in (config.status): Depend on development.sh.
4072 (aclocal_m4_deps): Add libmcheck.m4.
4073 * acinclude.m4: Include libmcheck.m4.
4074 * configure.ac: Source development.sh instead of setting
4075 'development' here. --enable-libmcheck/--disable-libmcheck code
4076 factored out to GDB_AC_LIBMCHECK. Run it.
4077 * development.sh: New file.
4078 * libmcheck.m4: New file.
4079 * configure: Regenerate.
4080
ac6dd50f
TT
40812013-07-02 Tom Tromey <tromey@redhat.com>
4082
4083 * contrib/ari/update-web-ari.sh: Update for version.in change.
4084
bd1df410
TT
40852013-07-02 Tom Tromey <tromey@redhat.com>
4086
4087 * common/ptid.h: Comment fixes.
4088
4db1a1dc
TT
40892013-07-01 Tom Tromey <tromey@redhat.com>
4090
4091 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4092 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4093 (dwarf2_read_index, create_all_comp_units): Update.
4094
dd9aa048
TT
40952013-07-01 Tom Tromey <tromey@redhat.com>
4096
4097 * configure.ac (build_warnings): Add -Wold-style-definition.
4098 * configure: Rebuild.
4099 * machoread.c (_initialize_machoread): Use "(void)".
4100 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4101 use "(void)".
4102
44d100c3
TT
41032013-07-01 Tom Tromey <tromey@redhat.com>
4104
4105 * configure.ac (build_warnings): Add -Wold-style-declaration.
4106 * configure: Rebuild.
4107 * dsrec.c (make_srec): Use "static const", not "const static".
4108 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4109 not "const static".
4110 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4111 Use "static const", not "const static".
4112 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4113 not "const static".
4114 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4115 not "const static".
4116 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4117 not "const static".
4118 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4119 not "const static".
4120 (v850_dbtrap_breakpoint_from_pc): Likewise.
4121 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4122 not "const static".
4123
2945b807
TT
41242013-07-01 Tom Tromey <tromey@redhat.com>
4125
4126 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4127 * configure: Rebuild.
4128
d8d2a3ee
PA
41292013-07-01 Pedro Alves <palves@redhat.com>
4130
4131 * defs.h: Include "pathmax.h".
4132 * utils.c: Don't include sys/param.h.
4133 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4134 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4135 instead of MAXPATHLEN.
4136 * solib-sunos.c: Don't include sys/param.h.
4137 * xcoffread.c: Don't include sys/param.h.
4138 * bsd-kvm.c: Don't include sys/param.h.
4139 * darwin-nat.c: Don't include sys/param.h.
4140 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4141 * darwin-nat-info.c: Don't include sys/param.h.
4142 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4143 MAXPATHLEN.
4144 * i386obsd-nat.c: Don't include sys/param.h.
4145 * inf-child.c: Don't include sys/param.h.
4146 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4147 * linux-fork.c: Don't include sys/param.h.
4148 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4149 * linux-nat.c: Don't include sys/param.h.
4150 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4151 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4152 * m68klinux-nat.c: Don't include sys/param.h.
4153 * nbsd-nat.c: Don't include sys/param.h.
4154 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4155 * ppc-linux-nat.c: Don't include sys/param.h.
4156 * rs6000-nat.c: Don't include sys/param.h.
4157 * spu-linux-nat.c. Don't include sys/param.h.
4158 * windows-nat.c: Don't include sys/param.h.
4159 * xtensa-linux-nat.c: Don't include sys/param.h.
4160 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4161
38ec2207
PA
41622013-07-01 Pedro Alves <palves@redhat.com>
4163
4164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4165 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4166 * gnulib/aclocal.m4: Regenerate.
4167 * gnulib/config.in: Regenerate.
4168 * gnulib/configure: Regenerate.
4169 * gnulib/import/pathmax.h: New file.
4170 * gnulib/import/Makefile.am: Regenerate.
4171 * gnulib/import/Makefile.in: Regenerate.
4172 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4173 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4174 * gnulib/import/m4/pathmax.m4: New file.
4175
e655c1a2
PA
41762013-07-01 Pedro Alves <palves@redhat.com>
4177
4178 * configure.ac (GDBINIT): Define, depending on host.
4179 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4180 * top.c (PATH_MAX): Delete fallback definition.
4181 (GDBINIT_FILENAME): Delete.
4182 (gdbinit): Reimplement as const char array set to the GDBINIT
4183 string constant.
4184 * top.h (gdbinit): Make const.
4185 * configure, config.in: Regenerate.
4186
50dd9793
PA
41872013-07-01 Pedro Alves <palves@redhat.com>
4188
4189 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4190 * cli/cli-cmds.h (source_script): Likewise.
4191 * exceptions.c (catch_command_errors_const): New function.
4192 * exceptions.h (catch_command_errors_const): Declare.
4193 * main.c (get_init_files): Make parameters const, and adjust.
4194 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4195 'local_gdbinit' locals const. Adjust to use
4196 catch_command_errors_const.
4197 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4198 'local_gdbinit' locals const.
4199
bc7dea8d
PA
42002013-07-01 Pedro Alves <palves@redhat.com>
4201
4202 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4203 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4204 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4205 <unistd.h>.
4206
8839a007
PA
42072013-07-01 Pedro Alves <palves@redhat.com>
4208
4209 Import the "unistd" gnulib module.
4210 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4211 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4212 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4213 import/m4/unistd_h.m4.
4214 * gnulib/aclocal.m4: Renenerate.
4215 * gnulib/config.in: Renenerate.
4216 * gnulib/configure: Renenerate.
4217 * gnulib/import/Makefile.am: Renenerate.
4218 * gnulib/import/Makefile.in: Renenerate.
4219 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4220 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4221 * gnulib/import/m4/off_t.m4: New file.
4222 * gnulib/import/m4/ssize_t.m4: New file.
4223 * gnulib/import/m4/sys_types_h.m4: New file.
4224 * gnulib/import/m4/unistd_h.m4: New file.
4225 * gnulib/import/sys_types.in.h: New file.
4226 * gnulib/import/unistd.c: New file.
4227 * gnulib/import/unistd.in.h: New file.
4228
8c0da261
PA
42292013-07-01 Pedro Alves <palves@redhat.com>
4230
4231 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4232 defined instead of checking HAVE_UNISTD_H.
4233
3574124b
PA
42342013-07-01 Pedro Alves <palves@redhat.com>
4235
4236 Reimport gnulib from scratch.
4237 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4238 import/m4/onceonly.m4.
4239 * gnulib/aclocal.m4: Renegerate.
4240 * gnulib/config.in: Renegerate.
4241 * gnulib/configure: Renegerate.
4242 * gnulib/import/Makefile.in: Renegerate.
4243 * gnulib/import/extra/update-copyright: Renegerate.
4244 * gnulib/import/m4/onceonly.m4: Delete.
4245
702dc4fd
PA
42462013-07-01 Pedro Alves <palves@redhat.com>
4247
4248 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4249
47e1ce27
JK
42502013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 Code cleanup.
4253 * remote.c (async_remote_interrupt_twice): Make it static.
4254 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4255
e82839d4
SDJ
42562013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4257
4258 * ia64-linux-tdep.c: Include <ctype.h>.
4259 (ia64_linux_stap_is_single_operand): New function.
4260 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4261
d6c2da54
TT
42622013-06-28 Tom Tromey <tromey@redhat.com>
4263
4264 * Makefile.in (version.c): Use version.in, not
4265 common/version.in.
4266 * common/create-version.sh: Likewise.
4267 * common/version.in: Move...
4268 * version.in: ...here.
4269
74da6f00
PA
42702013-06-28 Pedro Alves <palves@redhat.com>
4271
4272 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4273 here.
4274 * utils.h (pagination_enabled): Declare.
4275
d32dc48e
PA
42762013-06-28 Pedro Alves <palves@redhat.com>
4277
4278 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4279 Move higher up in file.
4280
0edd9e3b
TT
42812013-06-28 Tom Tromey <tromey@redhat.com>
4282
4283 * tracepoint.c (deprecated_readline_begin_hook)
4284 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4285 declare.
4286
4eb59108
PA
42872013-06-28 Pedro Alves <palves@redhat.com>
4288
4289 PR tui/14880
4290 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4291 checking if they're available.
4292 * value.c (value_available_contents_eq): Change comment.
4293 * value.h (value_available_contents_eq): Expand comment.
4294
97b17156
TT
42952013-06-27 Tom Tromey <tromey@redhat.com>
4296
4297 * target.c (find_run_target): Remove.
4298 * target.h (find_run_target): Remove.
4299
6a3bfc5c
TT
43002013-06-27 Tom Tromey <tromey@redhat.com>
4301
4302 * corelow.c (core_gdbarch): Now static.
4303
c9ef825d
TT
43042013-06-27 Tom Tromey <tromey@redhat.com>
4305
4306 * target.c (target_struct_index): Remove.
4307
e5823f1c
PA
43082013-06-27 Pedro Alves <palves@redhat.com>
4309
4310 * infrun.c: Remove comment describing the 'stepping over runtime
4311 loader dynamic symbol resolution code' mechanism; moved to
4312 gdbint.texinfo.
4313
97f8dd09
PA
43142013-06-27 Pedro Alves <palves@redhat.com>
4315
4316 * exceptions.c (catch_command_errors): Remove spurious space.
4317 * exceptions.h (catch_command_errors): Second parameter is "arg",
4318 not "command".
4319
02b1871e
YQ
43202013-06-27 Yao Qi <yao@codesourcery.com>
4321
4322 * common/create-version.sh: Update comments. Handle the case
4323 that TARGET_ALIAS is empty.
4324
bb1b1cf1
PA
43252013-06-26 Pedro Alves <palves@redhat.com>
4326
4327 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4328 comment.
4329
7b624e71
PA
43302013-06-26 Pedro Alves <palves@redhat.com>
4331
4332 * infrun.c: Update comments on stepping over runtime loader
4333 dynamic symbol resolution code.
4334
74e5a346
SDJ
43352013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4336
4337 * ax-gdb.h (union exp_element): Forward declare.
4338 * parser-defs.h: Include expression.h.
4339
a2fb2cee
MR
43402013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4341
4342 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4343
cdba14e0
DK
43442013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4345
4346 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4347
f30aa5af
DK
43482013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4349
4350 Fix trace-status to output proper start-time and stop-time.
4351 * tracepoint.c (trace_status_command): Fix type of printf arg to
4352 prevent improper type conversion.
4353 (trace_status_mi): Likewise.
4354
1aee363c
MR
43552013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4356
4357 * mips-tdep.c (mips_next_pc): Fix a typo.
4358
3356937a
MR
43592013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4360
4361 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4362
dc673c81
YQ
43632013-06-26 Pedro Alves <pedro@codesourcery.com>
4364 Yao Qi <yao@codesourcery.com>
4365
4366 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4367 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4368 * mi/mi-main.c (print_variable_or_computed): New function.
4369 (mi_cmd_trace_frame_collected): New function.
4370 * tracepoint.c (find_trace_state_variable_by_number): New.
4371 (struct traceframe_info): Move to tracepoint.h
4372 (struct collection_list): Likewise.
4373 (do_collect_symbol): Include locals and arguments in the
4374 collected variables list.
4375 (clear_collection_list): Clear wholly collected variables list
4376 and computed variables list.
4377 (append_exp): New function.
4378 (encode_actions_1): Include variables in the wholly
4379 collected variables list. Include memory ranges and
4380 full-fledged expressions in the computed expressions list.
4381 (encode_actions): Move some code to ...
4382 Return the cleanup chain.
4383 (encode_actions_rsp): ... here. New function.
4384 (get_traceframe_location, get_traceframe_info): Remove static.
4385 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4386 (struct collection_list): Moved from tracepoint.c. Add two
4387 new fields 'wholly_collected' and 'computed'.
4388 (find_trace_state_variable_by_number): Declare.
4389 (encode_actions): Adjust declaration.
4390 (encode_actions_rsp): Declare.
4391 (get_traceframe_info, get_traceframe_location): Declare.
4392
4393 * NEWS: Mention new MI command -trace-frame-collected.
4394
28a93511
YQ
43952013-06-26 Pedro Alves <pedro@codesourcery.com>
4396 Yao Qi <yao@codesourcery.com>
4397
4398 * ctf.c (ctf_traceframe_info): Push trace state variables
4399 present in the trace data into the traceframe info object.
4400 * breakpoint.c (DEF_VEC_I): Remove.
4401 * common/filestuff.c (DEF_VEC_I): Likewise.
4402 * dwarf2loc.c (DEF_VEC_I): Likewise.
4403 * mi/mi-main.c (DEF_VEC_I): Likewise.
4404 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4405 * features/traceframe-info.dtd: Add tvar element and its
4406 attributes.
4407 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4408 (build_traceframe_info): Push trace state variables present in
4409 the trace data into the traceframe info object.
4410 (traceframe_info_start_tvar): New function.
4411 (tvar_attributes): New.
4412 (traceframe_info_children): Add "tvar" element.
4413 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4414
4415 * NEWS: Mention the change in GDB and GDBserver.
4416
ddacd3c8
YQ
44172013-06-26 Pedro Alves <pedro@codesourcery.com>
4418 Yao Qi <yao@codesourcery.com>
4419
4420 * tracepoint.c (trace_dump_command): Move code to ...
4421 (get_traceframe_location): ... here. New.
4422
05796b35
YQ
44232013-06-26 Pedro Alves <pedro@codesourcery.com>
4424 Yao Qi <yao@codesourcery.com>
4425
4426 * tracepoint.c (trace_dump_command): GDB emits an error
4427 instead of a warning when a traceframe is not selected.
4428
cbfa3b61
YQ
44292013-06-26 Pedro Alves <pedro@codesourcery.com>
4430 Yao Qi <yao@codesourcery.com>
4431
4432 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4433 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4434 in collection_list.
4435 (do_clear_collection_list, init_collection_list): New.
4436 (encode_actions): Add local variables 'tracepoint_list' and
4437 'stepping_list'. Call init_collection_list and make cleanup
4438 which calls do_clear_collection_list. Don't call
4439 clear_collection_list.
4440 (_initialize_tracepoint): Delete references to
4441 'tracepoint_list' and 'stepping_list'.
4442
6e2048d3
TT
44432013-06-25 Tom Tromey <tromey@redhat.com>
4444
4445 * common/create-version.sh (date): Use "$", not "$$" in sed
4446 expression.
4447
42059f0e
KB
44482013-06-25 Kevin Buettner <kevinb@redhat.com>
4449
4450 * NEWS (New targets): Add entry for TI MSP430.
4451
a0743c90
YQ
44522013-06-25 Yao Qi <yao@codesourcery.com>
4453
4454 * remote.c (remote_start_remote): Move code to upload tsv
4455 earlier.
4456
9d6e6e84
HZ
44572013-06-25 Yao Qi <yao@codesourcery.com>
4458 Hui Zhu <hui@codesourcery.com>
4459 Pedro Alves <palves@redhat.com>
4460
4461 PR breakpoints/15075
4462 PR breakpoints/15434
4463 * breakpoint.c (bpstat_stop_status): Call
4464 b->ops->after_condition_true.
4465 (update_dprintf_command_list): Don't append "continue" command
4466 to the command list of dprintf breakpoint.
4467 (base_breakpoint_after_condition_true): New function.
4468 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4469 (dprintf_after_condition_true): New function.
4470 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4471 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4472
586cf749
KB
44732013-06-24 Kevin Buettner <kevinb@redhat.com>
4474
4475 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4476 (ALLDEPFILES): Add msp430-tdep.c.
4477 * configure.tgt (msp430*-*-elf): New target.
4478 * msp430-tdep.c: New file.
4479
1bbce132
MR
44802013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4481
4482 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4483 microMIPS synthetic symbols.
4484
3e5d3a5a
MR
44852013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4486
4487 * objfiles.h (pc_in_section): New prototype.
4488 (in_plt_section): Remove name argument, replace prototype with
4489 static inline function.
4490 * mips-tdep.h: Include "objfiles.h".
4491 (in_mips_stubs_section): New function.
4492 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4493 in_solib_call_trampoline member.
4494 (hppa_in_solib_call_trampoline): Remove name argument.
4495 * objfiles.c (pc_in_section): New function.
4496 (in_plt_section): Remove function.
4497 * mips-linux-tdep.c: Include "objfiles.h".
4498 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4499 name argument. Return 1 rather than the low 16-bit halfword of
4500 any instruction examined.
4501 (mips_linux_in_dynsym_resolve_code): Update
4502 mips_linux_in_dynsym_stub call accordingly.
4503 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4504 rather than an equivalent hand-coded sequence.
4505 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4506 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4507 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4508 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4509 in_opd_section.
4510 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4511 on call to tdep->in_solib_call_trampoline.
4512 (hppa_in_solib_call_trampoline): Remove name argument, update
4513 according to in_plt_section change.
4514 (hppa_skip_trampoline_code): Update according to in_plt_section
4515 change.
4516 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4517 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4518 Likewise.
4519 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4520 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4521 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4522 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4523 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4524 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4525 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4526 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4527 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4528 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4529 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4530 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4531 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4532
b9b26a16
JB
45332013-06-24 Joel Brobecker <brobecker@adacore.com>
4534
4535 * common/create-version.sh: Fix expansion of $host_alias
4536 and $target_alias in generation of HOST_NAME and TARGET_NAME
4537 (resp.).
4538
01208463
TT
45392013-06-24 Tom Tromey <tromey@redhat.com>
4540
4541 * common/create-version.sh: New file.
4542 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4543 create-version.sh.
4544 (HFILES_NO_SRCDIR): Use common/version.h.
4545 * version.in: Move to ...
4546 * common/version.in: ... here. Replace date with "DATE".
4547 * version.h: Move to ...
4548 * common/version.h: ... here.
4549
bb6b9a5e
JB
45502013-06-21 Joel Brobecker <brobecker@adacore.com>
4551
4552 * gdb/gnulib/Makefile.in: Update date in copyright header.
4553 * gdb/gnulib/configure.ac: Ditto.
4554 * gdb/gnulib/update-gnulib.sh: Ditto.
4555
c3b18ee7
JB
45562013-06-21 Joel Brobecker <brobecker@adacore.com>
4557
4558 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4559 "gdb/gnulib/import".
4560
85d3b769
WN
45612013-06-21 Will Newton <will.newton@linaro.org>
4562
4563 * doublest.c (ldfrexp): Remove function.
4564 (convert_doublest_to_floatformat): Call frexpl instead of
4565 ldfrexp.
4566
88b48903
WN
45672013-06-21 Will Newton <will.newton@linaro.org>
4568
4569 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4570 * gnulib/aclocal.m4: Regenerate.
4571 * gnulib/config.in: Regenerate.
4572 * gnulib/configure: Regenerate.
4573 * gnulib/import/Makefile.am: Update.
4574 * gnulib/import/Makefile.in: Update.
4575 * gnulib/import/m4/gnulib-cache.m4: Update.
4576 * gnulib/import/m4/gnulib-comp.m4: Update.
4577 * gnulib/import/float+.h: Import.
4578 * gnulib/import/float.c: Import.
4579 * gnulib/import/float.in.h: Import.
4580 * gnulib/import/fpucw.h: Import.
4581 * gnulib/import/frexp.c: Import.
4582 * gnulib/import/frexpl.c: Import.
4583 * gnulib/import/isnan.c: Import.
4584 * gnulib/import/isnand-nolibm.h: Import.
4585 * gnulib/import/isnand.c: Import.
4586 * gnulib/import/isnanl-nolibm.h: Import.
4587 * gnulib/import/isnanl.c: Import.
4588 * gnulib/import/itold.c: Import.
4589 * gnulib/import/m4/exponentd.m4: Import.
4590 * gnulib/import/m4/exponentl.m4: Import.
4591 * gnulib/import/m4/float_h.m4: Import.
4592 * gnulib/import/m4/fpieee.m4: Import.
4593 * gnulib/import/m4/frexp.m4: Import.
4594 * gnulib/import/m4/frexpl.m4: Import.
4595 * gnulib/import/m4/isnand.m4: Import.
4596 * gnulib/import/m4/isnanl.m4: Import.
4597 * gnulib/import/m4/math_h.m4: Import.
4598 * gnulib/import/math.c: Import.
4599 * gnulib/import/math.in.h: Import.
4600
4353c9e6
JK
46012013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4602
4603 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4604 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4605 signature_INTEL_edx comparisons.
4606
e3e06db3
DE
46072013-06-20 Doug Evans <dje@google.com>
4608
6ac97d4c
DE
4609 symtab/15652
4610 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4611 All callers updated.
4612 (open_dwp_file): If we can't find the dwp file, search the basename
4613 in debug-file-directory.
4614
93417882
DE
4615 * dwarf2read.c (struct dwp_file): Fix comment.
4616 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4617
e3e06db3
DE
4618 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4619 better.
4620
0878d0fa
YQ
46212013-06-20 Yao Qi <yao@codesourcery.com>
4622
4623 * breakpoint.c (create_breakpoint): Fix code indentation.
4624
023fa29b
YQ
46252013-06-20 Yao Qi <yao@codesourcery.com>
4626
4627 * breakpoint.c (create_breakpoints_sal_default): Remove
4628 parameter 'lsal'. Update declaration.
4629 (bkpt_create_breakpoints_sal): Caller update.
4630 (tracepoint_create_breakpoints_sal): Likewise.
4631
c898adb7
YQ
46322013-06-20 Pedro Alves <pedro@codesourcery.com>
4633 Yao Qi <yao@codesourcery.com>
4634
4635 * NEWS: Mention the new option '--skip-unavailable' of command
4636 -data-list-register-values.
4637 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4638 --skip-unavailable option. Adjust to use output_register.
4639 (output_register): Add new 'skip_unavailable' parameter.
4640 Handle it.
4641
4d157a3d
MF
46422013-06-19 Mike Frysinger <vapier@gentoo.org>
4643
4644 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4645 common/i386-gcc-cpuid.h.
4646 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4647 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4648 Copy the latest version from upstream gcc.
4649 * common/linux-btrace.c: Include i386-cpuid.h.
4650 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4651 call to i386_cpuid.
4652 (cpu_supports_btrace): Likewise.
4653 * go32-nat.c: Include i386-cpuid.h.
4654 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4655
1ce4db08
DE
46562013-06-19 Doug Evans <dje@google.com>
4657
4658 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4659 (get_section_index): Ditto.
4660
0e4777df
TT
46612013-06-19 Tom Tromey <tromey@redhat.com>
4662
4663 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4664 "dprintf" help.
4665
3190f0c6
DE
46662013-06-18 Doug Evans <dje@google.com>
4667
4668 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4669 before using it.
4670 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4671 Move test of cu_index closer to use. Print complaint if cu_index
4672 is bad.
4673
8b89a20a
JB
46742013-06-18 Joel Brobecker <brobecker@adacore.com>
4675
4676 * machoread.c (oso_vector): Delete this global.
4677 (macho_register_oso): Add new parameter "oso_vector_ptr".
4678 Use it instead of the "oso_vector" global.
4679 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4680 (macho_symfile_read): Use a local oso_vector, to be free'ed
4681 at the end of this function, in place of the old "oso_vector"
4682 global. Update various function calls accordingly. Use one
4683 single cleanup chain for the entire function.
4684
59b0c7c1
JB
46852013-06-18 Joel Brobecker <brobecker@adacore.com>
4686
937c708c 4687 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4688 DWARF2_PER_OBJFILE by uses of DATA instead.
4689
427cd150
TT
46902013-06-18 Tom Tromey <tromey@redhat.com>
4691
4692 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4693 argument.
4694 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4695 Special case signals other than GDB_SIGNAL_TRAP.
4696 (explains_signal_watchpoint): New function.
4697 (base_breakpoint_explains_signal): Add 'sig' argument.
4698 (initialize_breakpoint_ops): Set 'explains_signal' method for
4699 watchpoints.
4700 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4701 signal argument.
4702 (bpstat_explains_signal): Likewise.
4703 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4704
2d57700b
TT
47052013-06-18 Tom Tromey <tromey@redhat.com>
4706
4707 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4708
ac475191
TT
47092013-06-18 Tom Tromey <tromey@redhat.com>
4710
4711 * python/python.c (finish_python_initialization): Decref
4712 'pythondir' on failure path as well.
4713
5bd1ef56
TT
47142013-06-18 Tom Tromey <tromey@redhat.com>
4715
4716 PR symtab/15391:
4717 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4718 after taking bits_to_skip into account. Sign extend byte_offset.
4719 * utils.h (gdb_sign_extend): Declare.
4720 * utils.c (gdb_sign_extend): New function.
4721
92fac807
JK
47222013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4723
4724 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4725
2d503272
PM
47262013-06-17 Pierre Muller <muller@sourceware.org>
4727
4728 * corelow.c (core_open): Print GDB signal name instead of target
4729 signal number.
4730
6916fd98
MF
47312013-06-17 Mike Frysinger <vapier@gentoo.org>
4732
4733 * .gitignore: Add /gcore.
4734
9c02c129
DE
47352013-06-13 Doug Evans <dje@google.com>
4736
4737 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4738 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4739
d0548fa2
PM
47402013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4741
4742 * stack.c (backtrace_command_1): Fix indentation.
4743
22128028
JB
47442013-06-11 Joel Brobecker <brobecker@adacore.com>
4745
4746 * window-nat.c (thread_rec): Add missing empty line after
4747 local variable declaration.
4748
2ed3e009
JB
47492013-06-11 Joel Brobecker <brobecker@adacore.com>
4750
4751 * windows-nat.c (thread_rec): Revert format used to print
4752 error code returned by SuspendThread from %d back to %u.
4753
0c3d84be
JB
47542013-06-11 Joel Brobecker <brobecker@adacore.com>
4755
4756 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4757 ID in debug trace.
4758 (get_windows_debug_event): Likewise, for all debug traces.
4759
80e88e1a
JB
47602013-06-11 Joel Brobecker <brobecker@adacore.com>
4761
4762 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4763 warning message.
4764
1edebdbf
YQ
47652013-06-08 Pedro Alves <pedro@codesourcery.com>
4766 Yao Qi <yao@codesourcery.com>
4767
4768 * mi/mi-main.c (get_register): Remove declaration.
4769 (output_register): Declare.
4770 (mi_cmd_data_list_register_values): Remove local variable
4771 'tuple_cleanup'. Move some code into output_register.
4772 (get_register): Renamed to ...
4773 (output_register): ... this. Output the register's
4774 "number" ui_out tuple here.
4775
47d48711
PA
47762013-06-07 Pedro Alves <palves@redhat.com>
4777
4778 * darwin-nat.c: Fix formating in copyright header.
4779 * darwin-nat.h: Likewise.
4780 * gnu-nat.c: Likewise.
4781 * machoread.c: Likewise.
4782
3aee8918
PA
47832013-06-07 Pedro Alves <palves@redhat.com>
4784
5f2b57b5 4785 PR server/14823
3aee8918
PA
4786 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4787 static. Output a global target description pointer.
4788 (init_registers_${name}): Adjust to initialize a
4789 target description structure.
4790
fe8400b4
WN
47912013-06-07 Will Newton <will.newton@linaro.org>
4792
4793 * printcmd.c (build_address_symbolic): Call
4794 gdbarch_addr_bits_remove for text minimal symbols.
4795
20df6206
WN
47962013-06-07 Will Newton <will.newton@linaro.org>
4797
4798 * MAINTAINERS: Add myself to Write After Approval.
4799
aef525cb
YQ
48002013-06-07 Yao Qi <yao@codesourcery.com>
4801
4802 * tracepoint.c (start_tracing): Move code to ...
4803 (trace_reset_local_state): ... here. New.
4804 (disconnect_tracing): Don't call set_current_traceframe,
4805 set_tracepoint_num, and set_traceframe_context. Call
4806 trace_reset_local_state instead.
4807 (tfile_close): Call trace_reset_local_state.
4808 * ctf.c (ctf_close): Likewise.
4809 * remote.c (remote_close): Likewise.
4810 * tracepoint.h (trace_reset_local_state): Declare.
4811
d2415c6c
DE
48122013-06-06 Doug Evans <dje@google.com>
4813
4814 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4815 and fix header docs.
4816
69fc87c2
DE
48172013-06-05 Doug Evans <dje@google.com>
4818 Keith Seitz <keiths@redhat.com>
4819
4820 PR 15519
4821 * cp-namespace.c (find_symbol_in_baseclass): Call
4822 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4823 Check result of call to lookup_symbol_static.
4824 Call lookup_static_symbol_aux unconditionally.
4825 Call check_typedef on base types before accessing them.
4826 (cp_lookup_nested_symbol): Fix comment.
4827
a513d1e8
LM
48282013-06-05 Luis Machado <lgustavo@codesourcery.com>
4829
4830 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4831 minimal symbols pointing to function descriptors.
4832
351a6f02
TT
48332013-06-05 Tom Tromey <tromey@redhat.com>
4834
4835 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4836
5e1b953b 48372013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4838 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4839
4840 * remote.c (remote_wait_as): Restore signal handler before returning
4841 when GDB gets a notification.
4842
f9e14852
GB
48432013-06-04 Gary Benson <gbenson@redhat.com>
4844
8445cbf1 4845 PR 2328
f9e14852
GB
4846 * breakpoint.h (handle_solib_event): Moved function declaration
4847 to solib.h.
4848 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4849 (bpstat_stop_status): Pass new argument to handle_solib_event.
4850 * solib.h (update_solib_breakpoints): New function declaration.
4851 (handle_solib_event): Moved function declaration from
4852 breakpoint.h.
4853 * solib.c (update_solib_breakpoints): New function.
4854 (handle_solib_event): Moved function from breakpoint.c.
4855 Updated to call solib_ops->handle_event if not NULL.
4856 * solist.h (target_so_ops): New fields "update_breakpoints" and
4857 "handle_event".
4858 * infrun.c (set_stop_on_solib_events): New function.
4859 (_initialize_infrun): Use the above for "set
4860 stop-on-solib-events".
4861 (handle_inferior_event): Pass new argument to handle_solib_event.
4862 * solib-svr4.c (probe.h): New include.
4863 (svr4_free_library_list): New forward declaration.
4864 (probe_action): New enum.
4865 (probe_info): New struct.
4866 (probe_info): New static variable.
4867 (NUM_PROBES): New definition.
4868 (svr4_info): New fields "using_xfer", "probes_table" and
4869 "solib_list".
4870 (free_probes_table): New function.
4871 (free_solib_list): New function.
4872 (svr4_pspace_data_cleanup): Free probes table and solib list.
4873 (svr4_copy_library_list): New function.
4874 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4875 (svr4_read_so_list): New parameter "prev_lm".
4876 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4877 (svr4_current_sos): New function.
4878 (probe_and_action): New struct.
4879 (hash_probe_and_action): New function.
4880 (equal_probe_and_action): Likewise.
4881 (register_solib_event_probe): Likewise.
4882 (solib_event_probe_at): Likewise.
4883 (solib_event_probe_action): Likewise.
4884 (solist_update_full): Likewise.
4885 (solist_update_incremental): Likewise.
4886 (disable_probes_interface_cleanup): Likewise.
4887 (svr4_handle_solib_event): Likewise.
4888 (svr4_update_solib_event_breakpoint): Likewise.
4889 (svr4_update_solib_event_breakpoints): Likewise.
4890 (svr4_create_solib_event_breakpoints): Likewise.
4891 (enable_break): Free probes table before creating breakpoints.
4892 Use svr4_create_solib_event_breakpoints to create breakpoints.
4893 (svr4_solib_create_inferior_hook): Free the solib list.
4894 (_initialize_svr4_solib): Initialise
4895 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4896
ced63ec0
GB
48972013-06-04 Gary Benson <gbenson@redhat.com>
4898
4899 * target.h (target_ops): New field
4900 "to_augmented_libraries_svr4_read".
4901 (target_augmented_libraries_svr4_read): New macro.
4902 * target.c (update_current_target): Handle
4903 to_augmented_libraries_svr4_read.
4904 * remote.c (remote_state): New field
4905 "augmented_libraries_svr4_read".
4906 (remote_augmented_libraries_svr4_read_feature): New function.
4907 (remote_protocol_features): Add entry for
4908 "augmented-libraries-svr4-read".
4909 (remote_augmented_libraries_svr4_read): New function.
4910 (init_remote_ops): Initialize
4911 remote_ops.to_augmented_libraries_svr4_read.
4912
7f91dbec
GB
49132013-06-04 Gary Benson <gbenson@redhat.com>
4914
4915 * NEWS: Update.
4916
607ece04
GB
49172013-06-04 Gary Benson <gbenson@redhat.com>
4918
4919 * objfiles.h (inhibit_section_map_updates): New function
4920 declaration.
4921 (resume_section_map_updates): Likewise.
4922 (resume_section_map_updates_cleanup): Likewise.
4923 * objfiles.c (objfile_pspace_info): Removed field
4924 "objfiles_changed_p". New fields "new_objfiles_available",
4925 "section_map_dirty" and "inhibit_updates".
4926 (allocate_objfile): Set new_objfiles_available.
4927 (free_objfile): Set section_map_dirty.
4928 (objfile_relocate1): Likewise.
4929 (in_plt_section): Likewise.
4930 (find_pc_section): Update the conditions under which the
4931 section map will be updated.
4932 (inhibit_section_map_updates): New function.
4933 (resume_section_map_updates): Likewise.
4934 (resume_section_map_updates_cleanup): Likewise.
4935
9ee6a5ac
GB
49362013-06-04 Gary Benson <gbenson@redhat.com>
4937
4938 * probe.h (get_probe_argument_count): New declaration.
4939 (evaluate_probe_argument): Likewise.
4940 * probe.c (get_probe_argument_count): New function.
4941 (evaluate_probe_argument): Likewise.
4942 (probe_safe_evaluate_at_pc): Use the above new functions.
4943
845d4708
AM
49442013-06-04 Alan Modra <amodra@gmail.com>
4945
4946 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4947 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4948 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4949 target mem reads on optional insns.
4950 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4951 ppc_insns_match_pattern calls.
4952 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4953 Add match for power7 thread safety insns, and new order of
4954 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4955 invocation in comment, and update rest of comment.
4956 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4957 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4958 (ppc64_standard_linkage2_target): Update insn offsets.
4959 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4960 stubs first. Update calls.
4961
404e278f
YQ
49622013-06-04 Yao Qi <yao@codesourcery.com>
4963
4964 * solib.c (solib_find): Don't need dir separator if path has
4965 drive spec.
4966
f6aea118
JB
49672013-06-03 Joel Brobecker <brobecker@adacore.com>
4968
4969 Revert (indirectly causes a SIGSEGV):
4970 * machoread.c (macho_symfile_read): Assign first cleanup to
4971 'back_to'.
4972
87967e27
YQ
49732013-06-03 Yao Qi <yao@codesourcery.com>
4974
4975 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4976 mi-parse.c. Make them static.
4977 (mi_all_values): Likewise.
4978 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4979 mi_parse_print_values. Make it external.
4980 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4981 Remove the declarations.
4982 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4983 * mi/mi-parse.h (mi_parse_print_values): Declare.
4984 * mi/mi-cmd-stack.c: Include mi-parse.h.
4985 (parse_print_values): Remove
4986 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4987 of parse_print_values.
4988 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4989
3ca73e0c
YQ
49902013-05-31 Pedro Alves <pedro@codesourcery.com>
4991 Yao Qi <yao@codesourcery.com>
4992
4993 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4994 (encode_actions): Move code to ...
4995 (all_tracepoint_actions_and_cleanup): ... here. New.
4996 (trace_dump_command): Likewise.
4997
4e993a19
TT
49982013-05-30 Tom Tromey <tromey@redhat.com>
4999
5000 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5001
e3b76b4f
TT
50022013-05-30 Tom Tromey <tromey@redhat.com>
5003
5004 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5005 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5006 'old_chain' argument. Add 'parser_result' argument.
5007 (gdb_xml_create_parser_and_cleanup): Remove old version.
5008 (gdb_xml_parse_quick): Update.
5009 (xml_process_xincludes): Update.
5010 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5011 declare.
5012
db26349c
TT
50132013-05-30 Tom Tromey <tromey@redhat.com>
5014
5015 * probe.c (collect_probes): Check arguments for NULL before
5016 calling compile_rx_or_error.
5017 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5018 Remove NULL return.
5019
77f9e713
TT
50202013-05-30 Tom Tromey <tromey@redhat.com>
5021
5022 * infrun.c (adjust_pc_after_break): Introduce an outer null
5023 cleanup.
5024
45475de7
TT
50252013-05-30 Tom Tromey <tromey@redhat.com>
5026
5027 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5028
ac5007fd
TT
50292013-05-30 Tom Tromey <tromey@redhat.com>
5030
5031 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5032 for 'old_chain'. Do not check 'head' before processing
5033 cleanups.
5034
cd82eddc
TT
50352013-05-30 Tom Tromey <tromey@redhat.com>
5036
5037 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5038 "cleanup_tuple".
5039
57cee33a
TT
50402013-05-30 Tom Tromey <tromey@redhat.com>
5041
5042 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5043 inner scope. Unconditionally call do_cleanups.
5044
795d915c
TT
50452013-05-30 Tom Tromey <tromey@redhat.com>
5046
5047 * source.c (find_and_open_source): Call do_cleanups.
5048
1fc3cf4a
TT
50492013-05-30 Tom Tromey <tromey@redhat.com>
5050
5051 * linux-thread-db.c (thread_db_load_search): Unconditionally
5052 call do_cleanups.
5053
e35ac9bf
TT
50542013-05-30 Tom Tromey <tromey@redhat.com>
5055
5056 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5057 for 'cleanup'; instead use a later one.
5058
f3300387
TT
50592013-05-30 Tom Tromey <tromey@redhat.com>
5060
5061 * python/py-breakpoint.c (bppy_get_commands): Use
5062 explicit, unconditional return.
5063 * python/py-frame.c (frapy_read_var): Likewise.
5064 * python/python.c (gdbpy_decode_line): Likewise.
5065
c27e16e3
TT
50662013-05-30 Tom Tromey <tromey@redhat.com>
5067
5068 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5069 do_cleanups on all return paths.
5070
5ae85e44
TT
50712013-05-30 Tom Tromey <tromey@redhat.com>
5072
5073 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5074
73b8d9da
TT
50752013-05-30 Tom Tromey <tromey@redhat.com>
5076
5077 * stabsread.c (read_struct_type): Call do_cleanups along
5078 all return paths.
5079
7d266584
MR
50802013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5081
5082 * mips-linux-tdep.c: Adjust formatting throughout.
5083
0f900f54
TT
50842013-05-30 Tom Tromey <tromey@redhat.com>
5085
5086 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5087 along all return paths.
5088
a991ac28
TT
50892013-05-30 Tom Tromey <tromey@redhat.com>
5090
5091 * symfile.c (find_separate_debug_file): Call do_cleanups
5092 along all return paths.
5093
1abaf042
TT
50942013-05-30 Tom Tromey <tromey@redhat.com>
5095
5096 * symtab.c (search_symbols): Introduce a null cleanup for
5097 'retval_chain'.
5098
edefe1da
TT
50992013-05-30 Tom Tromey <tromey@redhat.com>
5100
5101 * python/py-value.c (valpy_binop): Call do_cleanups before
5102 exiting loop.
5103
54f72dcc
TT
51042013-05-30 Tom Tromey <tromey@redhat.com>
5105
5106 * python/py-prettyprint.c (print_children): Remove extra
5107 do_cleanups call.
5108
af1c6971
TT
51092013-05-30 Tom Tromey <tromey@redhat.com>
5110
5111 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5112 all return paths.
5113
b862ce75
TT
51142013-05-30 Tom Tromey <tromey@redhat.com>
5115
5116 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5117 along all return paths.
5118
e12fefc8
TT
51192013-05-30 Tom Tromey <tromey@redhat.com>
5120
5121 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5122 call do_cleanups.
5123
4867f990
TT
51242013-05-30 Tom Tromey <tromey@redhat.com>
5125
5126 * varobj.c (c_value_of_root): Call do_cleanups along all
5127 return paths.
5128
4fd2d6af
TT
51292013-05-30 Tom Tromey <tromey@redhat.com>
5130
5131 * tracepoint.c (trace_dump_command): Unconditionally call
5132 do_cleanups.
5133
752eb8b4
TT
51342013-05-30 Tom Tromey <tromey@redhat.com>
5135
5136 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5137 do_cleanups earlier.
5138
e42d0aa5
TT
51392013-05-30 Tom Tromey <tromey@redhat.com>
5140
5141 * machoread.c (macho_symfile_read): Assign first cleanup to
5142 'back_to'.
5143
4bbc010a
TT
51442013-05-30 Tom Tromey <tromey@redhat.com>
5145
5146 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5147
b9635925
TT
51482013-05-30 Tom Tromey <tromey@redhat.com>
5149
5150 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5151
25f43500
TT
51522013-05-30 Tom Tromey <tromey@redhat.com>
5153
5154 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5155 call discard_cleanups.
5156 (inf_ptrace_attach): Likewise.
5157
d6a2e54a
TT
51582013-05-30 Tom Tromey <tromey@redhat.com>
5159
5160 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5161 return paths.
5162 (mips_initialize): Likewise.
5163 (common_open): Call do_cleanups.
5164
48be7c1b
TT
51652013-05-30 Tom Tromey <tromey@redhat.com>
5166
5167 * utils.c (internal_vproblem): Call do_cleanups.
5168
e61727ab
TT
51692013-05-30 Tom Tromey <tromey@redhat.com>
5170
5171 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5172
b81b921f
TT
51732013-05-30 Tom Tromey <tromey@redhat.com>
5174
5175 * cli/cli-script.c (setup_user_args): Don't return after error.
5176
fe48dfb1
TT
51772013-05-30 Tom Tromey <tromey@redhat.com>
5178
5179 * somread.c (som_symtab_read): Call do_cleanups.
5180
27833de7
TT
51812013-05-30 Tom Tromey <tromey@redhat.com>
5182
5183 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5184
5b3fca71
TT
51852013-05-30 Tom Tromey <tromey@redhat.com>
5186
5187 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5188 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5189 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5190 * source.c (show_substitute_path_command): Call do_cleanups.
5191 (unset_substitute_path_command, set_substitute_path_command):
5192 Likewise.
5193 * symfile.c (load_command): Call do_cleanups.
5194
af83e3f8
TT
51952013-05-30 Tom Tromey <tromey@redhat.com>
5196
5197 * contrib/cleanup_check.py: New file.
5198 * contrib/gcc-with-excheck: Add option parsing.
5199
564eac42
JB
52002013-05-30 Joel Brobecker <brobecker@adacore.com>
5201
5202 * windows-nat.c (windows_delete_thread): Add missing space
5203 in cast expression.
5204
47902076
HAQ
52052013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5206
5207 * inferior.c (top level): Include tilde.h.
5208 (add_inferior_command): Call tilde_expand on the value of 'exec'
5209 argument.
5210
23da373a
YQ
52112013-05-30 Pedro Alves <pedro@codesourcery.com>
5212 Yao Qi <yao@codesourcery.com>
5213
5214 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5215 Caller update.
5216 (encode_actions): Likewise.
5217 * remote.c (remote_download_tracepoint): Caller update.
5218 * tracepoint.h (encode_actions): Update declaration.
5219
a6e6f791
PA
52202013-05-30 Pedro Alves <palves@redhat.com>
5221
5222 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5223 pointer.
5224
36d25514
YQ
52252013-05-30 Yao Qi <yao@codesourcery.com>
5226
5227 * remote.c (remote_check_symbols): Remove unused parameter
5228 'objfile'.
5229 Declaration update.
5230 (remote_start_remote, remote_new_objfile): Caller update.
5231
62a813cc
YQ
52322013-05-30 Yao Qi <yao@codesourcery.com>
5233
5234 * mi/mi-cmds.c (mi_cmds): Define MI command
5235 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5236 DEF_MI_CMD_CLI.
5237
28439a30
PA
52382013-05-29 Pedro Alves <palves@redhat.com>
5239
5240 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5241 (remote_insert_watchpoint, remote_remove_watchpoint)
5242 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5243 (remote_verify_memory, compare_sections_command)
5244 (remote_search_memory): Set the general process/thread on the
5245 remote side.
5246
6ac1c082
PA
52472013-05-29 Pedro Alves <palves@redhat.com>
5248
5249 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5250 (_initialize_aarch64_tdep): Don't call
5251 initialize_tdesc_aarch64_without_fpu.
5252 * features/Makefile (WHICH): Remove reference to
5253 aarch64-without-fpu.
5254 * features/aarch64-without-fpu.c: Delete file.
5255 * regformats/aarch64-without-fpu.dat: Delete file.
5256
a73e3634
YQ
52572013-05-28 Yao Qi <yao@codesourcery.com>
5258
5259 * tracepoint.c (stringify_collection_list): Remove parameter
5260 'string'.
5261 (encode_actions): Caller update. Remove local variables.
5262
c0ea94eb
YQ
52632013-05-24 Yao Qi <yao@codesourcery.com>
5264
5265 * tracepoint.c (TFILE_PID): Remove.
5266 (tfile_open): Don't add thread and inferior.
5267 (tfile_close): Don't set 'inferior_ptid'. Don't call
5268 exit_inferior_silent.
5269 (tfile_thread_alive): Remove.
5270 (init_tfile_ops): Don't set field 'to_thread_alive' of
5271 tfile_ops.
5272
20d7f211
DE
52732013-05-23 Doug Evans <dje@google.com>
5274
5275 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5276
8658d16d
PA
52772013-05-23 Pedro Alves <palves@redhat.com>
5278
5279 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5280 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5281 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5282 Only define if HAVE_SOCKETS is defined.
5283 * configure.ac: Check for sys/socket.h.
5284 * config.in, configure: Regenerate.
5285
21aa081e
PA
52862013-05-23 Pedro Alves <palves@redhat.com>
5287
5288 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5289 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5290 printing uint32_t variables.
5291
c2d6af84
PA
52922013-05-23 Pedro Alves <palves@redhat.com>
5293
5294 * NEWS: Mention GDBserver range stepping support.
5295
c1e36e3e
PA
52962013-05-23 Yao Qi <yao@codesourcery.com>
5297 Pedro Alves <palves@redhat.com>
5298
5299 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5300 field.
5301 * infcmd.c (step_once, until_next_command): Enable range stepping.
5302 * infrun.c (displaced_step_prepare): Disable range stepping.
5303 (resume): Disable range stepping if stepping over a breakpoint or
5304 we have software watchpoints. If range stepping is enabled,
5305 assert the thread is in the stepping range.
5306 (clear_proceed_status_thread): Clear may_range_step.
5307 (handle_inferior_event): Disable range stepping as soon as we know
5308 the thread that hit the event. Re-enable it whenever we're going
5309 to step with a step range.
5310 * remote.c (struct vCont_action_support) <r>: New field.
5311 (use_range_stepping): New global.
5312 (remote_vcont_probe): Handle 'r' action.
5313 (append_resumption): Append an 'r' action if the thread may range
5314 step.
5315 (show_range_stepping): New function.
5316 (set_range_stepping): New function.
5317 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5318 'set range-stepping' and 'show range-stepping' commands.
5319 * NEWS: Mention range stepping, the new vCont;r action, and the
5320 new "set/show range-stepping" commands.
5321
d458bd84
PA
53222013-05-23 Yao Qi <yao@codesourcery.com>
5323 Pedro Alves <palves@redhat.com>
5324
5325 * remote.c (struct vCont_action_support): New struct.
5326 (struct remote_state) <support_vCont_t>: Remove field.
5327 <vCont_actions_support>: New field.
5328 (remote_vcont_probe, remote_stop_ns): Update.
5329
ce4c476a
PA
53302013-05-23 Yao Qi <yao@codesourcery.com>
5331 Pedro Alves <palves@redhat.com>
5332
5333 * gdbthread.h (pc_in_thread_step_range): New declaration.
5334 * thread.c (pc_in_thread_step_range): New function.
5335 * infrun.c (handle_inferior_event): Use it.
5336
ce70887a
JB
53372013-05-23 Joel Brobecker <brobecker@adacore.com>
5338
5339 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5340 of sprintf.
5341
55b87a52
KS
53422013-05-22 Keith Seitz <keiths@redhat.com>
5343
5344 * ada-lang.c (is_known_support_routine): Add explicit free of
5345 'func_name' from find_frame_funname.
5346 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5347 for func_name from find_frame_funname.
5348 * python/py-frame.c (frapy_name): Add explicit free of
5349 'name' from find_frame_funname.
5350 * stack.c (find_frame_funname): Add comment explaining that
5351 funcp must be freed by the caller.
5352 Return copy of symbol names instead of pointers.
5353 (print_frame): Add a cleanup for 'funname' from
5354 find_frame_funname.
5355 * stack.h (find_frame_funname): Remove "const" from
5356 'funname' parameter.
5357
5f2e6b00
TT
53582013-05-22 Tom Tromey <tromey@redhat.com>
5359
5360 PR c++/15401:
5361 * c-valprint.c (c_value_print): Use value_addr for
5362 references. Convert back to reference type with value_ref.
5363
d85c4847
EZ
53642013-05-22 Eli Zaretskii <eliz@gnu.org>
5365
5366 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5367 unloaded DLL, it will be done by handle_solib_event. See
5368 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5369 details.
5370
54eb231c
PM
53712013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5372
5373 * ui-out.c: Create typedef ui_out_level_p and define vector
5374 operations for that type.
5375 (struct ui_out): Use a vector instead of an array.
5376 (current_level): Return level from a vector.
5377 (push_level): Create a level in a vector.
5378 (pop_level): Delete a level in a vector.
5379 (ui_out_new): Create initial level zero level, and store in a
5380 vector.
5381 (ui_out_destroy): Add vector cleanup.
5382
ac90359c
PA
53832013-05-22 Pedro Alves <palves@redhat.com>
5384
5385 * python/python-internal.h (gdb_Py_DECREF): Tag with
5386 "ARI: editCase function".
5387
6dcc1893
PP
53882013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5389
5390 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5391
c8c735b9
PA
53922013-05-21 Pedro Alves <palves@redhat.com>
5393
5394 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5395 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5396 * python/py-utils.c (py_decref): Don't check for NULL before
5397 calling Py_DECREF.
5398
1915daeb
PA
53992013-05-21 Pedro Alves <palves@redhat.com>
5400
5401 * python/py-utils.c (py_decref): Remove extra braces.
5402 (gdb_pymodule_addobject): Remove extra braces.
5403 * python-internal.h (gdb_Py_DECREF): New static inline function.
5404 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5405
bd9673a4
PW
54062013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * breakpoints.c (detach_breakpoints): Do not
5409 detach breakpoints locations with loc_type bp_loc_other.
5410
ff6009d0
JK
54112013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5412
5413 Workaround Python 2.6.
5414 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5415 a block.
5416
3641da11
JK
54172013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5418
5419 Code cleanup: constification.
5420 * solib.c (solib_ops): Make return type and ops variable type const.
5421 (set_solib_ops): Make the new_ops parameter and ops variable const.
5422 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5423 (solib_add, solib_keep_data_in_core, clear_solib)
5424 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5425 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5426 const.
5427 * solib.h (set_solib_ops): Make the new_ops parameter const.
5428
776af39e
JB
54292013-05-21 Joel Brobecker <brobecker@adacore.com>
5430
5431 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5432 variable.
5433 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5434 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5435 (SYSTEM_GDBINIT_FILES): New variables.
5436 (all): Add stamp-system-gdbinit.
5437 (stamp-system-gdbinit): New rule.
5438 (clean-system-gdbinit, install-system-gdbinit)
5439 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5440 (install-only): Add dependency on install-system-gdbinit.
5441 (uninstall): Add dependency on uninstall-system-gdbinit.
5442 (clean): Add dependency on clean-system-gdbinit.
5443 * system-gdbinit/elinos.py: New file.
5444 * system-gdbinit/wrs-linux.py: New file.
5445
1509e573
JB
54462013-05-21 Joel Brobecker <brobecker@adacore.com>
5447
5448 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5449
c5867ab6
HZ
54502013-05-21 Hui Zhu <hui@codesourcery.com>
5451
5452 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5453 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5454 * mi/mi-cmd-break.c (ctype.h): New include.
5455 (gdb_obstack.h): New include.
5456 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5457 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5458 (mi_cmd_dprintf_insert): New.
5459 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5460 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5461
7d38e38f
TT
54622013-05-20 Tom Tromey <tromey@redhat.com>
5463
5464 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5465
97b77b39
TT
54662013-05-20 Tom Tromey <tromey@redhat.com>
5467
5468 * python/py-value.c (valpy_get_dynamic_type): Simplify
5469 dynamic_type assignment. Use Py_XINCREF.
5470
53e66479
TT
54712013-05-20 Tom Tromey <tromey@redhat.com>
5472
5473 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5474
dcf87832
TT
54752013-05-20 Tom Tromey <tromey@redhat.com>
5476
5477 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5478 (gdbpy_selected_frame): Move object-construction code
5479 out of TRY_CATCH.
5480
aa36459a
TT
54812013-05-20 Tom Tromey <tromey@redhat.com>
5482
5483 * python/py-arch.c (gdbpy_initialize_arch): Use
5484 gdb_pymodule_addobject.
5485 * python/py-block.c (gdbpy_initialize_blocks): Use
5486 gdb_pymodule_addobject.
5487 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5488 gdb_pymodule_addobject.
5489 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5490 gdb_pymodule_addobject.
5491 * python/py-event.c (gdbpy_initialize_event_generic): Use
5492 gdb_pymodule_addobject.
5493 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5494 gdb_pymodule_addobject.
5495 * python/py-evts.c (add_new_registry): Use
5496 gdb_pymodule_addobject.
5497 (gdbpy_initialize_py_events): Likewise.
5498 * python/py-finishbreakpoint.c
5499 (gdbpy_initialize_finishbreakpoints): Use
5500 gdb_pymodule_addobject.
5501 * python/py-frame.c (gdbpy_initialize_frames): Use
5502 gdb_pymodule_addobject.
5503 * python/py-function.c (gdbpy_initialize_functions): Use
5504 gdb_pymodule_addobject.
5505 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5506 gdb_pymodule_addobject.
5507 * python/py-infthread.c (gdbpy_initialize_thread): Use
5508 gdb_pymodule_addobject.
5509 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5510 gdb_pymodule_addobject.
5511 * python/py-param.c (gdbpy_initialize_parameters): Use
5512 gdb_pymodule_addobject.
5513 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5514 gdb_pymodule_addobject.
5515 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5516 gdb_pymodule_addobject.
5517 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5518 gdb_pymodule_addobject.
5519 * python/py-type.c (gdbpy_initialize_types): Use
5520 gdb_pymodule_addobject.
5521 * python/py-utils.c (gdb_pymodule_addobject): New function.
5522 * python/py-value.c (gdbpy_initialize_values): Use
5523 gdb_pymodule_addobject.
5524 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5525 * python/python.c (_initialize_python): Use
5526 gdb_pymodule_addobject.
5527
3d4a3c3e
TT
55282013-05-20 Tom Tromey <tromey@redhat.com>
5529
5530 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5531 * python/py-param.c (get_set_value, get_show_value): Use
5532 explicit decrefs.
5533 * python/python.c (start_type_printers, apply_type_printers):
5534 Use explicit decrefs.
5535
72ff8829
TT
55362013-05-20 Tom Tromey <tromey@redhat.com>
5537
5538 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5539 incref the module.
5540
02146ba5
TT
55412013-05-20 Tom Tromey <tromey@redhat.com>
5542
5543 * python/python.c (gdbpy_run_events): Decref the result
5544 of PyObject_CallObject.
5545
33ee792f
TT
55462013-05-20 Tom Tromey <tromey@redhat.com>
5547
5548 * python/py-symtab.c (set_sal): Use
5549 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5550 (symtab_and_line_to_sal_object): Update.
5551
fcb49fc8
TT
55522013-05-20 Tom Tromey <tromey@redhat.com>
5553
5554 * python/py-param.c (compute_enum_values): Decref 'item'.
5555
0646da15
TT
55562013-05-20 Tom Tromey <tromey@redhat.com>
5557
5558 * mi/mi-main.c: Include python-internal.h.
5559 (mi_cmd_list_features): Check gdb_python_initialized.
5560 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5561 (python_inferior_exit, python_new_objfile, add_thread_object)
5562 (delete_thread_object, py_free_inferior): Check
5563 gdb_python_initialized.
5564 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5565 gdb_python_initialized.
5566 * python/py-type.c (save_objfile_types): Check
5567 gdb_python_initialized.
5568 * python/python-internal.h (gdb_python_initialized): Declare.
5569 * python/python.c (ensure_python_env): Throw exception if
5570 Python not initialized.
5571 (before_prompt_hook, source_python_script_for_objfile)
5572 (start_type_printers, apply_type_printers,
5573 free_type_printers): Check gdb_python_initialized.
5574 * varobj.c (varobj_get_display_hint)
5575 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5576 (install_new_value_visualizer, varobj_set_visualizer)
5577 (value_get_print_value): Check gdb_python_initialized.
5578
999633ed
TT
55792013-05-20 Tom Tromey <tromey@redhat.com>
5580
5581 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5582 Check errors.
5583 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5584 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5585 Check errors.
5586 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5587 Check errors.
5588 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5589 Check errors.
5590 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5591 Check errors.
5592 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5593 init function to return 'int'.
5594 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5595 Return 'int'. Check errors.
5596 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5597 Check errors.
5598 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5599 Return 'int'. Check errors.
5600 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5601 Check errors.
5602 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5603 Check errors.
5604 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5605 Check errors.
5606 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5607 Check errors.
5608 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5609 Check errors.
5610 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5611 Check errors.
5612 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5613 Check errors.
5614 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5615 Check errors.
5616 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5617 Check errors.
5618 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5619 Check errors.
5620 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5621 Check errors.
5622 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5623 Check errors.
5624 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5625 Check errors.
5626 * python/python-internal.h (gdbpy_initialize_auto_load,
5627 gdbpy_initialize_values, gdbpy_initialize_frames,
5628 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5629 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5630 gdbpy_initialize_blocks, gdbpy_initialize_types,
5631 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5632 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5633 gdbpy_initialize_finishbreakpoints,
5634 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5635 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5636 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5637 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5638 gdbpy_initialize_signal_event,
5639 gdbpy_initialize_breakpoint_event,
5640 gdbpy_initialize_continue_event,
5641 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5642 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5643 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5644 * python/python.c (gdb_python_initialized): New global.
5645 (gdbpy_initialize_events): Return 'int'. Check errors.
5646 (_initialize_python): Check errors. Set
5647 gdb_python_initialized.
5648
18868860
TT
56492013-05-20 Tom Tromey <tromey@redhat.com>
5650
5651 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5652 Decref the reslut of PyObject_CallMethod.
5653
9f4ff0c2
TT
56542013-05-20 Tom Tromey <tromey@redhat.com>
5655
5656 * python/py-event.c (gdbpy_initialize_event_generic): Return
5657 early if PyType_Ready fails.
5658
0d3a2e8a
TT
56592013-05-20 Tom Tromey <tromey@redhat.com>
5660
5661 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5662 as 'default' in the switch.
5663
b86af38a
TT
56642013-05-20 Tom Tromey <tromey@redhat.com>
5665
5666 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5667 get_addr_from_python calls out of TRY_CATCH.
5668 (infpy_write_memory, infpy_search_memory): Likewise.
5669 * python/py-utils.c (get_addr_from_python): Return negative
5670 value on error. Use TRY_CATCH.
5671 * python/python-internal.h (get_addr_from_python): Use
5672 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5673
c127ec58
TT
56742013-05-20 Tom Tromey <tromey@redhat.com>
5675
5676 * python/py-event.c (evpy_emit_event): Decref the
5677 result of PyObject_CallFunctionObjArgs.
5678
ba327838
TT
56792013-05-20 Tom Tromey <tromey@redhat.com>
5680
5681 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5682 Correctly decref.
5683
d8191432
TT
56842013-05-20 Tom Tromey <tromey@redhat.com>
5685
5686 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5687
5d153bd1
TT
56882013-05-20 Tom Tromey <tromey@redhat.com>
5689
5690 * python/py-event.h (gdbpy_initialize_event_generic): Use
5691 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5692 * python/py-evts.c (add_new_registry): Use
5693 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5694 * python/python-internal.h
5695 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5696
56cc411c
TT
56972013-05-20 Tom Tromey <tromey@redhat.com>
5698
5699 * python/py-arch.c (archpy_disassemble): Update.
5700 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5701 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5702 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5703 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5704 macro.
5705 (GDB_PY_HANDLE_EXCEPTION): Update.
5706 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5707
8919e174
TT
57082013-05-20 Tom Tromey <tromey@redhat.com>
5709
5710 * python/python-internal.h (events_object_type): Remove.
5711
9b08f225
TT
57122013-05-20 Tom Tromey <tromey@redhat.com>
5713
f5aee5ee
AM
5714 * python/py-event.h (evpy_emit_event): Use
5715 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5716 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5717 New macro.
9b08f225 5718
f04010ff
TT
57192013-05-20 Tom Tromey <tromey@redhat.com>
5720
5721 * py-evtregistry.c (create_event_object): Decref
5722 eventregistry_object if PyList_New fails.
5723
3919fd96
TT
57242013-05-20 Tom Tromey <tromey@redhat.com>
5725
5726 * py-cmd.c (gdbpy_string_to_argv): Check result of
5727 PyList_New.
5728
0430e8cb
TT
57292013-05-20 Tom Tromey <tromey@redhat.com>
5730
5731 * python/python.c (before_prompt_hook): Add cleanup to
5732 decref 'hook'.
5733
764123e4
TT
57342013-05-20 Tom Tromey <tromey@redhat.com>
5735
5736 * python/py-function.c (fnpy_init): Decref result of
5737 PyObject_GetAttrString.
5738
634c58be
TT
57392013-05-20 Tom Tromey <tromey@redhat.com>
5740
5741 * python/py-threadevent.c (get_event_thread): Use
5742 CPYCHECKER_RETURNS_BORROWED_REF.
5743 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5744 New define.
5745 (pspace_to_pspace_object, objfile_to_objfile_object)
5746 (find_thread_object): Use it.
5747
62eec1a5
TT
57482013-05-20 Tom Tromey <tromey@redhat.com>
5749
5750 * python/py-arch.c (arch_object_type): Use
5751 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5752 * python/py-block.c (block_syms_iterator_object_type):
5753 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5754 * python/py-bpevent.c (breakpoint_event_object_type):
5755 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5756 * python/py-cmd.c (cmdpy_object_type): Use
5757 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5758 * python/py-continueevent.c (continue_event_object_type):
5759 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5760 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5761 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5762 * python/py-events.h (thread_event_object_type):
5763 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5764 * python/py-evtregistry.c (eventregistry_object_type): Use
5765 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5766 * python/py-exitedevent.c (exited_event_object_type):
5767 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5768 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5769 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5770 * python/py-function.c (fnpy_object_type): Use
5771 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5772 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5773 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5774 * python/py-infthread.c (thread_object_type): Use
5775 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5776 * python/py-lazy-string.c (lazy_string_object_type):
5777 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5778 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5779 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5780 * python/py-objfile.c (objfile_object_type): Use
5781 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5782 * python/py-param.c (parmpy_object_type):
5783 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5784 * python/py-progspace.c (pspace_object_type):
5785 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5786 * python/py-signalevent.c (signal_event_object_type):
5787 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5788 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5789 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5790 * python/py-type.c (type_object_type, field_object_type)
5791 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5792 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5793 define.
5794 (value_object_type, block_object_type, symbol_object_type)
5795 (event_object_type, stop_event_object_type, breakpoint_object_type)
5796 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5797
81ea8796
AT
57982013-05-20 Andreas Tobler <andreas@fgznet.ch>
5799
5800 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5801 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5802
a2ce51a0
DE
58032013-05-20 Doug Evans <dje@google.com>
5804
5805 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5806 For Fission.
5807 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5808 reading_dwo_directly.
5809 (struct signatured_type): New member dwo_unit.
5810 (struct die_reader_specs): New member comp_dir.
5811 (create_signatured_type_table_from_index): Use malloc for
5812 all_type_units instead of objfile's obstack.
5813 (create_all_type_units): Ditto.
5814 (fill_in_sig_entry_from_dwo_entry): New function.
5815 (add_type_unit): New function.
5816 (lookup_dwo_signatured_type): New function.
5817 (lookup_dwp_signatured_type): New function.
5818 (lookup_signatured_type): New arg cu. All callers updated.
5819 (init_cu_die_reader): Initialize comp_dir.
5820 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5821 Change assert of matching type signatures to call error on mismatch.
5822 (lookup_dwo_unit): Add assert.
5823 (init_tu_and_read_dwo_dies): New function.
5824 (init_cutu_and_read_dies): Call it.
5825 (build_type_unit_groups): Handle case of no type unit groups created.
5826 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5827 (lookup_dwo_cutu): Tweak complaint.
5828 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5829 (dwarf2_per_objfile_free): Free all_type_units.
5830
a25cd31f
JB
58312013-05-20 Joel Brobecker <brobecker@adacore.com>
5832
5833 * windows-nat.c (handle_unload_dll): Add missing empty line.
5834
4d804846
JB
58352013-05-20 Joel Brobecker <brobecker@adacore.com>
5836
5837 * dwarf2read.c (prototyped_function_p): New function.
5838 (read_subroutine_type): Use it.
5839
1c432e72
JB
58402013-05-20 Joel Brobecker <brobecker@adacore.com>
5841
5842 * rs6000-aix-tdep.c: De-indent some example code provided
5843 as a comment.
5844
4feebbdd
EBM
58452013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5846
5847 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5848 region is ok for a hardware watchpoint using the new ptrace interface
5849 on Power servers.
5850
7d0c9981
DE
58512013-05-17 Doug Evans <dje@google.com>
5852
5853 * NEWS: Mention new maintenance commands check-symtabs, and
5854 expand-symtabs, and renamed check-psymtabs.
5855 * psymtab.c (maintenance_check_psymtabs): Renamed from
5856 maintenance_check_symtabs. Only process already-expanded symbol
5857 tables.
5858 (_initialize_psymtab): Update.
5859 * symmisc.c (maintenance_check_symtabs): New function.
5860 (maintenance_expand_name_matcher): New function
5861 (maintenance_expand_file_matcher): New function
5862 (maintenance_expand_symtabs): New function.
5863 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5864 commands.
5865
6cbc7c3d
TT
58662013-05-17 Tom Tromey <tromey@redhat.com>
5867
5868 * python/py-inferior.c (infpy_read_memory): Don't call
5869 PyErr_SetString if PyObject_New fails.
5870 * python/py-frame.c (frame_info_to_frame_object): Don't call
5871 PyErr_SetString if PyObject_New fails.
5872
a48b32c0
L
58732013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5874
5875 * acinclude.m4: Add check for dlopen in libdl.
5876 * configure.ac: Ditto.
5877 * configure: Regenerate.
5878
3de661e6
PM
58792013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5880
5881 * frame.c (frame_stash): Convert to htab.
5882 (frame_addr_hash): New function.
5883 (frame_addr_hash_eq): New function.
5884 (frame_stash_create): Convert function to create
5885 a hash table.
5886 (frame_stash_add): Convert function to add an entry to a hash
5887 table.
5888 (frame_stash_find): Convert function to search the hash table.
5889 (frame_stash_invalidate): Convert function to empty the hash
5890 table.
5891 (get_frame_id): Only add to stash if a frame_id is created.
5892 (_initialize_frame): Call frame_stash_create.
5893
bb4168a9 58942013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5895
5896 * configure.ac: Ensure MIG is available when building for GNU Hurd
5897 hosts.
5898 * configure: Regenerate.
5899
d1be3247
JB
59002013-05-16 Joel Brobecker <brobecker@adacore.com>
5901
5902 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5903
b8fea896
JB
59042013-05-16 Joel Brobecker <brobecker@adacore.com>
5905
5906 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5907 all cleanups are done before returning from this function.
5908
af880d85
JB
59092013-05-15 Joel Brobecker <brobecker@adacore.com>
5910
5911 * utils.h: #include "exceptions.h".
5912 (enum errors): Remove partial declaration.
5913
356a5233
JB
59142013-05-15 Joel Brobecker <brobecker@adacore.com>
5915
5916 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5917 * gdbarch.h, gdbarch.c: Regenerate.
5918 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5919 handling.
5920
5921 * rs6000-aix-tdep.h: New file.
5922 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5923 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5924 "xml-utils.h".
5925 (struct field_info, struct ld_info_desc): New types.
5926 (ld_info32_desc, ld_info64_desc): New static constants.
5927 (struct ld_info): New type.
5928 (rs6000_aix_extract_ld_info): New function.
5929 (rs6000_aix_shared_library_to_xml): Likewise.
5930 (rs6000_aix_ld_info_to_xml): Likewise.
5931 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5932 (rs6000_aix_init_osabi): Add call to
5933 set_gdbarch_core_xfer_shared_libraries_aix.
5934 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5935 Remove "xml-utils.h" include.
5936 (LdInfo): Delete typedef.
5937 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5938 Delete macros.
5939 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5940 Adjust code accordingly.
5941 (rs6000_core_ldinfo): Delete, folded into
5942 rs6000_aix_core_xfer_shared_libraries_aix.
5943 (rs6000_xfer_shared_library): Delete.
5944 (rs6000_xfer_shared_libraries): Reimplement.
5945
742ce053
MM
59462013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5947
5948 * record.c (record_goto_cmdlist): New.
5949 (cmd_record_goto): Split into this ...
5950 (cmd_record_goto_begin): ... this
5951 (cmd_record_goto_end): ... and this.
5952 (_initialize_record): Change "record goto" to prefix command.
5953 Add commands for "record goto begin" and "record goto end".
5954 Add an alias for "record goto start" to "record goto begin".
5955
e93ba630
JK
59562013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5957
5958 * linespec.c (convert_linespec_to_sals): New comment for
5959 SOURCE_FILENAME assignment.
5960
5821aace
JK
59612013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5962
5963 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5964 internal_warning.
5965
a1b8c4cc
TT
59662013-05-14 Tom Tromey <tromey@redhat.com>
5967
5968 * eval.c (parse_and_eval_long): Make 'exp' const.
5969 * value.h (parse_and_eval_long): Update.
5970
23b3a2c3
TT
59712013-05-14 Tom Tromey <tromey@redhat.com>
5972
5973 * ui-file.c (gdb_fopen): Make arguments const.
5974 * ui-file.h (gdb_fopen): Make arguments const.
5975
ca623f82
TT
59762013-05-14 Tom Tromey <tromey@redhat.com>
5977
5978 * remote.c (remote_set_trace_notes): Make arguments const.
5979 * target.c (update_current_target): Update cast.
5980 * target.h (to_set_trace_notes): Make arguments const.
5981
503ebb2c
TT
59822013-05-14 Tom Tromey <tromey@redhat.com>
5983
5984 * go32-nat.c (go32_terminal_info): Make 'args' const.
5985 * inferior.h (child_terminal_info): Update.
5986 * inflow.c (child_terminal_info): Make 'args' const.
5987 * target.c (default_terminal_info): Make 'args' const.
5988 (debug_to_terminal_save_ours): Likewise.
5989 * target.h (struct target_ops) <to_terminal_info>: Make argument
5990 const.
5991
85e1311a
TT
59922013-05-13 Tom Tromey <tromey@redhat.com>
5993
5994 * gcore.c (create_gcore_bfd): Make 'filename' const.
5995 * gcore.h (create_gcore_bfd): Make 'filename' const.
5996 * record-full.c (record_full_save): Make 'recfilename' const.
5997 * target.c (target_save_record): Make 'filename' const.
5998 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5999 const.
6000 (target_save_record): Likewise.
6001
d62bfeaf
TT
60022013-05-13 Tom Tromey <tromey@redhat.com>
6003
f5aee5ee 6004 PR gdb/15338:
d62bfeaf
TT
6005 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6006 ranges section has been read.
6007
ac1ca910
TT
60082013-05-13 Tom Tromey <tromey@redhat.com>
6009
6010 PR exp/15364:
6011 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6012 STRUCTOP_PTR>: Return a not_lval value for
6013 EVAL_AVOID_SIDE_EFFECTS.
6014 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6015 for EVAL_AVOID_SIDE_EFFECTS.
6016
36d1c68c
JB
60172013-05-13 Joel Brobecker <brobecker@adacore.com>
6018
6019 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6020 floating point registers to register type before storing
6021 value.
6022 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6023 Likewise.
6024
21ff4686
TT
60252013-05-10 Joel Brobecker <brobecker@adacore.com>
6026 Tom Tromey <tromey@redhat.com>
6027
6028 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6029 New functions.
6030 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6031 Declare.
6032 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6033 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6034 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6035 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6036
d3685d60
TT
60372013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6038 Tom Tromey <tromey@redhat.com>
6039
6040 PR build/15414:
6041 * configure: Rebuild.
6042 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6043 with -Wno-format.
6044
eb9fe518
PA
60452013-05-10 Pedro Alves <palves@redhat.com>
6046
6047 * remote.c (_initialize_remote): Fix spelling of
6048 qXfer:traceframe-info:read packet in packet config command.
6049
9779ab84
PA
60502013-05-10 David Taylor <dtaylor@emc.com>
6051
6052 PR remote/15455
6053
6054 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6055 "QTro" at start of packet.
6056
060cfbef
JB
60572013-05-10 Joel Brobecker <brobecker@adacore.com>
6058
6059 * solib-aix.c (solib_aix_relocate_section_addresses):
6060 For the .bss section action, apply the same offset as
6061 the .data section.
6062
ab1c4e88
JB
60632013-05-10 Joel Brobecker <brobecker@adacore.com>
6064
6065 * solib-aix.c (solib_aix_relocate_section_addresses):
6066 Remove FIXME comment.
6067
c1357578
JB
60682013-05-10 Joel Brobecker <brobecker@adacore.com>
6069
6070 PR tdep/15420:
6071 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6072 New functions, directly copied from sparc-sol-thread.c.
6073 * sparc-sol-thread.c: Delete.
6074 * configure.ac: Remove code handling sparc-solaris-thread.c.
6075 * configure: Regenerate.
6076
1e611234
PM
60772013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6078
6079 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6080 filter logic.
6081 (backtrace_command): Add "no-filters" option parsing.
6082 (_initialize_stack): Alter help to reflect "no-filters" option.
6083 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6084 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6085 (py-frame.o): Add target
6086 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6087 filter files.
6088 * python/python.h: Add new frame filter constants, and flag enum.
6089 (apply_frame_filter): Add definition.
6090 * python/python.c (apply_frame_filter): New non-Python
6091 enabled function.
6092 * python/py-utils.c (py_xdecref): New function.
6093 (make_cleanup_py_xdecref): Ditto.
6094 * python/py-objfile.c: Declare frame_filters dictionary.
6095 (objfpy_dealloc): Add frame_filters dealloc.
6096 (objfpy_new): Initialize frame_filters attribute.
6097 (objfile_to_objfile_object): Ditto.
6098 (objfpy_get_frame_filters): New function.
6099 (objfpy_set_frame_filters): New function.
6100 * python/py-progspace.c: Declare frame_filters dictionary.
6101 (pspy_dealloc): Add frame_filters dealloc.
6102 (pspy_new): Initialize frame_filters attribute.
6103 (pspacee_to_pspace_object): Ditto.
6104 (pspy_get_frame_filters): New function.
6105 (pspy_set_frame_filters): New function.
6106 * python/py-framefilter.c: New file.
6107 * python/lib/gdb/command/frame_filters.py: New file.
6108 * python/lib/gdb/frames.py: New file.
6109 * python/lib/gdb/__init__.py: Initialize global frame_filters
6110 dictionary
6111 * python/lib/gdb/FrameDecorator.py: New file.
6112 * python/lib/gdb/FrameIterator.py: New file.
6113 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6114 * mi/mi-cmds.h: Declare.
6115 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6116 --no-frame-filter logic, and Python frame filter logic.
6117 (stack_enable_frame_filters): New function.
6118 (parse_no_frame_option): Ditto.
6119 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6120 filter logic.
6121 (mi_cmd_stack_list_locals): Ditto.
6122 (mi_cmd_stack_list_args): Ditto.
6123 (mi_cmd_stack_list_variables): Ditto.
6124 * NEWS: Add frame filter note.
6125
2cb9c859
DE
61262013-05-09 Doug Evans <dje@google.com>
6127
6bf667bb
DE
6128 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6129 All callers updated.
6130 (syms_from_objfile): Ditto. Make static.
6131 (symbol_file_add_with_addrs): Renamed from
6132 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6133 num_offsets. All callers updated.
6134 * symfile.h (syms_from_objfile): Delete.
6135
2cb9c859
DE
6136 * symfile.c (decrement_reading_symtab): Add assert.
6137 (increment_reading_symtab): Ditto.
6138
40aea477
JB
61392013-05-09 Joel Brobecker <brobecker@adacore.com>
6140
6141 * source.c (forward_search_command): Replace call to getc
6142 by call to fgetc.
6143 (reverse_search_command): Likewise.
6144
680d1742
DE
61452013-05-08 Doug Evans <dje@google.com>
6146
6147 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6148 matching test.
6149
17e760ae
JB
61502013-05-08 Joel Brobecker <brobecker@adacore.com>
6151
6152 * sol-thread.c (info_cb): Factorize the code a little.
6153
c0f5f490
JB
61542013-05-08 Joel Brobecker <brobecker@adacore.com>
6155
6156 * sol-thread.c (info_cb): Rework the output of the "maintenance
6157 info sol-threads" command a bit.
6158
5d74e061
JB
61592013-05-08 Joel Brobecker <brobecker@adacore.com>
6160
6161 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6162 Replace ti.ti_startfunc by ti.ti_pc.
6163
814a3ff7
JB
61642013-05-08 Joel Brobecker <brobecker@adacore.com>
6165
6166 * solib-aix.c (solib_aix_free_library_list): New function
6167 for the case where HAVE_LIBEXPAT is not defined.
6168
58ce7251
SDJ
61692013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6170
6171 PR breakpoints/15413:
6172 * breakpoint.c (condition_completer): Simplify the code to
6173 disconsider multiple locations of breakpoints when completing the
6174 "condition" command.
6175
be8b1ea6
PM
61762013-05-07 Pierre Muller <muller@sourceware.org>
6177
6178 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6179 instead of <sys/wait.h>.
6180
1e52bda6
PM
61812013-05-07 Pierre Muller <muller@sourceware.org>
6182
6183 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6184 trailing new line from warning message.
6185
27fd0c6b
PM
61862013-05-07 Pierre Muller <muller@sourceware.org>
6187
6188 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6189 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6190
e228ac87
JB
61912013-05-07 Joel Brobecker <brobecker@adacore.com>
6192
6193 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6194 error message (ARI fix).
6195
61962013-05-07 Joel Brobecker <brobecker@adacore.com>
6197
6198 * features/library-list-aix.dtd: Replace library-list by
6199 library-list-aix.
6200 * rs6000-nat.c: Replace library-list by library-list-aix
6201 throughout.
6202 * solib-aix.c: Likewise.
6203
62042013-05-07 Joel Brobecker <brobecker@adacore.com>
6205
6206 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6207 Renames TARGET_OBJECT_AIX_LIBRARIES.
6208 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6209 TARGET_OBJECT_LIBRARIES_AIX throughout.
6210 * solib-aix.c: Likwise.
6211
26a4dda9
YQ
62122013-05-07 Yao Qi <yao@codesourcery.com>
6213
6214 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6215 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6216
3582629f
YQ
62172013-05-07 Yao Qi <yao@codesourcery.com>
6218
6219 * solib-dsbt.c (enable_break): Declare.
6220 (dsbt_current_sos): Remove call to enable_break2.
6221 (enable_break2): Rename to enable_break. Set solib breakpoint
6222 on '_dl_debug_state'.
6223 (enable_break): Remove.
6224
aacbb8a5
LM
62252013-05-07 Luis Machado <lgustavo@codesourcery.com>
6226
6227 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6228 debug state prior to replicating existing hardware watchpoints or
6229 breakpoints.
6230
0c013353
JK
62312013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6232
6233 * gcore.c (gcore_create_callback): Ignore sections with
6234 separate_debug_objfile_backlink != NULL.
6235
a1217d97
SL
62362013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6237 Andrew Jenner <andrew@codesourcery.com>
6238 Chung-Lin Tang <cltang@codesourcery.com>
6239 Julian Brown <julian@codesourcery.com>
6240
6241 Based on the nios2-elf port from Altera Corporation.
6242
6243 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6244 nios2-linux-tdep.o.
6245 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6246 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6247 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6248 * nios2-tdep.h: New.
6249 * nios2-tdep.c: New.
6250 * nios2-linux-tdep.c: New.
6251 * features/Makefile (WHICH): Add nios2-linux.
6252 (nios2-linux-expedite): Set.
6253 * features/nios2-cpu.xml: New.
6254 * features/nios2.xml: New.
6255 * features/nios2-linux.xml: New.
6256 * features/nios2.c: New (autogenerated).
6257 * features/nios2-linux.c: New (autogenerated).
6258 * regformats/nios2-linux.dat: New (autogenerated).
6259 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6260 and commands.
6261
0892cb63
DE
62622013-05-06 Doug Evans <dje@google.com>
6263
3b7bacac
DE
6264 * symfile.c: Whitespace cleanup.
6265
0892cb63
DE
6266 * solist.h (struct target_so_ops): New member clear_so.
6267 * solib-svr4.c (svr4_clear_so): New function.
6268 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6269 * solib.c (clear_so): Renamed from free_so_symbols.
6270 All callers updated. Call target clear_so if it exists.
6271
40501e00
TT
62722013-05-06 Tom Tromey <tromey@redhat.com>
6273
6274 * ada-lang.c (ada_value_primitive_packed_val): Don't
6275 call value_incref.
6276 * value.c (set_value_parent): Incref the new parent and decref
6277 the old parent.
6278 (value_copy, value_primitive_field): Use set_value_parent.
6279
b6807d98
TT
62802013-05-06 Tom Tromey <tromey@redhat.com>
6281
6282 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6283 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6284 if needed.
6285 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6286 * dwarf2read.c (write_constant_as_bytes)
6287 (dwarf2_fetch_constant_bytes): New functions.
6288
3aef2284
TT
62892013-05-06 Tom Tromey <tromey@redhat.com>
6290
6291 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6292 parameters.
6293 (dwarf2_const_value_attr): Update.
6294
66f65e2b
TT
62952013-05-06 Tom Tromey <tromey@redhat.com>
6296
6297 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6298 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6299 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6300 Remove declaration.
6301
7919a973
TT
63022013-05-06 Tom Tromey <tromey@redhat.com>
6303
6304 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6305 objfile's obstack.
6306
a7bfba49
DE
63072013-05-06 Doug Evans <dje@google.com>
6308
3189cb12
DE
6309 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6310 * stabsread.h (process_one_symbol): Update declaration.
6311 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6312 * elfread.c (elf_symfile_relocate_probe): Ditto.
6313 * psymtab.c (relocate_psymtabs): Ditto.
6314 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6315 (objfile_relocate): Ditto.
6316 * objfiles.h (objfile_relocate): Update declaration.
6317 * symfile.c (relative_addr_info_to_section_offsets): Constify
6318 addrs parameter.
6319 (default_symfile_offsets): Ditto.
6320 (syms_from_objfile_1): Constify offsets parameter.
6321 (syms_from_objfile): Ditto.
6322 (symbol_file_add_with_addrs_or_offsets): Ditto.
6323 (symfile_map_offsets_to_segments): Constify data parameter.
6324 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6325 delta parameters of member relocate.
6326 (struct sym_probe_fns): Constify new_offsets,
6327 delta parameters of member sym_relocate_probe.
6328 (struct sym_fns): Constify section_addr_info parameter of member
6329 sym_offsets.
6330 (relative_addr_info_to_section_offsets): Update declaration.
6331 (default_symfile_offsets): Ditto.
6332 (syms_from_objfile): Ditto.
6333 (symfile_map_offsets_to_segments): Ditto.
6334
a7bfba49
DE
6335 * symfile.c (syms_from_objfile_1): Use correct section count when
6336 objfile->sf == NULL.
6337
5f8e0b8f
MF
63382013-05-06 Mike Frysinger <vapier@gentoo.org>
6339
6340 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6341
ea52d893
DE
63422013-05-06 Doug Evans <dje@google.com>
6343
6344 * psympriv.h (struct partial_symtab): Augment comment for member
6345 section_offsets.
6346
4d1eb6b4
JB
63472013-05-06 Joel Brobecker <brobecker@adacore.com>
6348
6349 Reimplement shared library support on ppc-aix...
6350 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6351 * features/library-list-aix.dtd: New file.
6352 * solib-aix.h, solib-aix.c: New file.
6353 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6354 (rs6000_find_toc_address_hook): Delete.
6355 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6356 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6357 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6358 "xml-utils.h".
6359 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6360 (vmap_symtab, fixup_breakpoints): Delete.
6361 (rs6000_xfer_shared_libraries): New function.
6362 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6363 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6364 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6365 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6366 (rs6000_xfer_shared_library): New function.
6367 (find_toc_address): Delete.
6368 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6369 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6370 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6371 before creating minimal symbol. Adjust function description
6372 accordingly.
6373 (scan_xcoff_symtab): Replace call to
6374 prim_record_minimal_symbol_and_info by call to
6375 record_minimal_symbol.
6376 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6377 around default_symfile_offsets.
6378 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6379 powerpc-aix targets.
6380 * config/rs6000/nm-rs6000.h: Delete.
6381 * config/powerpc/aix.mh (NAT_FILE): Delete.
6382 (NATDEPFILES): Remove xcoffsolib.o.
6383 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6384 (ALL_TARGET_OBS): Add solib-aix.o.
6385 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6386 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6387 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6388 * xcoffsolib.h, xcoffsolib.c: Delete.
6389
6390 * solib.c (reload_shared_libraries): Remove reference to
6391 SOLIB_CREATE_INFERIOR_HOOK.
6392 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6393 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6394 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6395 comment.
6396 * corelow.c (deprecated_core_resize_section_table): Delete.
6397 * exec.c: Remove include of xcoffsolib.h".
6398 (map_vmap, vmap): Delete.
6399 (exec_close_1): Remove references to vmap.
6400 (exec_file_attach): Remove vmap handling code, and reference
6401 to DEPRECATED_IBM6000_TARGET.
6402 (bfdsec_to_vmap): Delete.
6403 (exec_files_info): Remove block of code handling VMAP.
6404 * infcmd.c (post_create_inferior): Remove reference to
6405 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6406 * infrun.c (follow_exec): Remove reference to
6407 SOLIB_CREATE_INFERIOR_HOOK.
6408 * stack.c (print_frame): Remove reference to PC_SOLIB.
6409 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6410 (dsbt_relocate_main_executable): Likewise.
6411 * solib-frv.c (frv_current_sos): Likewise.
6412
0c4f667c
JB
64132013-05-06 Joel Brobecker <brobecker@adacore.com>
6414
6415 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6416 to target_write_memory and target_read_memory.
6417
726ce67c
JB
64182013-05-06 Joel Brobecker <brobecker@adacore.com>
6419
6420 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6421 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6422
c8c9911f
JB
64232013-05-06 Joel Brobecker <brobecker@adacore.com>
6424
6425 * darwin-nat.c: Replace all "%x" instances in format strings
6426 into "0x%x" throughout.
6427
fda184b6
JB
64282013-05-06 Joel Brobecker <brobecker@adacore.com>
6429
6430 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6431 gdb_assert by call to MACH_CHECK_ERROR.
6432 (darwin_attach_pid): Raise an error rather than a failed
6433 assertion when various system calls failed. Report a warning
6434 instead of raising a failed assertion when PREV_NOT is not NULL
6435 after call to mach_port_request_notification.
6436 (darwin_ptrace_me): Raise an error rather than a failed
6437 assertion when read returns nonzero.
6438
d1d69afb
JB
64392013-05-06 Joel Brobecker <brobecker@adacore.com>
6440
6441 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6442
dc90b24d
JK
64432013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6444
6445 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6446
faab9922
JK
64472013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6450 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6451 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6452 a stale cleanup. Fix double free of NAME.
6453
e0ea48a0
EZ
64542013-05-04 Eli Zaretskii <eliz@gnu.org>
6455
6456 * windows-nat.c (windows_delete_thread): Accept an additional
6457 argument, the thread's exit code, and announce thread death when
6458 print_thread_events is non-zero and we are deleting a thread that
6459 is not the main thread.
6460 (get_windows_debug_event): Pass thread exit code to
6461 windows_delete_thread.
6462
83b2706a
KB
64632013-05-03 Kevin Buettner <kevinb@redhat.com>
6464
6465 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6466 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6467 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6468 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6469 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6470 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6471 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6472 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6473 (gdbarch_tdep): New struct.
6474 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6475 E_NUM_REGS.
6476 (v850e3v5_register_name): New function.
6477 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6478 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6479 code handling the struct return conventions for the RH850 ABI.
6480 Update all callers.
6481 (v850_eight_byte_align_p): New function.
6482 (v850_push_call_dummy): Push structs by value, not by reference
6483 for the RH850 ABI. Add support for eight byte alignment.
6484 (v850_dbtrap_breakpoint_from_pc): New function.
6485 (v850_gdbarch_init): Add ABI detection code. Register
6486 v850e3v5_register_name for the v850e3v5 architecture. Set the
6487 number of registers for v850e3v5. Register
6488 v850_dbtrap_breakpoint_from_pc as appropriate.
6489 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6490
d445b2f6
DE
64912013-05-03 Doug Evans <dje@google.com>
6492
6493 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6494 of bfd_count_sections.
6495 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6496 * symfile.c (default_symfile_offsets): Ditto.
6497 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6498 one entry, not bfd_count_sections entries.
6499
b3ce41ea
KB
65002013-05-03 Kevin Buettner <kevinb@redhat.com>
6501
6502 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6503 `save' and `restore' register groups. Don't include SPL
6504 or SPH in these groups.
6505 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6506 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6507 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6508 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6509 dwarf2_append_unwinders().
6510
96f7d3f1
PW
65112013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6512
6513 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6514 ignore SIGINT and SIGTRAP in case these internal signals are
6515 caught explicitely.
6516
b9dd1947
JB
65172013-05-01 Joel Brobecker <brobecker@adacore.com>
6518
6519 * darwin-nat.c (darwin_read_write_inferior): Change types
6520 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6521 of copy_count to "mach_msg_type_number_t".
6522 (darwin_read_dyld_info): Change type of parameter
6523 rdaddr to "gdb_byte *".
6524
4ca18a63
JB
65252013-05-01 Joel Brobecker <brobecker@adacore.com>
6526
6527 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6528 of &info->load_map from "char *" to "gdb_byte *".
6529
2b692d32
JB
65302013-05-01 Joel Brobecker <brobecker@adacore.com>
6531
6532 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6533 from "char *" to "gdb_byte *".
6534 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6535
a98c29a0
DE
65362013-04-30 Doug Evans <dje@google.com>
6537
6a506a2d
DE
6538 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6539 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6540 DWO stub. If DWO isn't found, just use stub.
6541 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6542
a98c29a0
DE
6543 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6544 calling init_cutu_and_read_dies.
6545
f92b06da
WT
65462013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6547
6548 * target-descriptions.c (maint_print_c_tdesc_cmd):
6549 Add case to parse structures as register types and
6550 bitfields.
6551
95eebdcc
WT
65522013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6553
6554 * MAINTAINERS (Write After Approval): Add myself to the list.
6555
019c1128
JB
65562013-04-30 Joel Brobecker <brobecker@adacore.com>
6557
6558 * sol-thread.c (rw_common): Change type of parameter "buf"
6559 to "gdb_byte *".
6560 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6561 rw_common to "gdb_byte *" instead of "char *".
6562
5812197c
JB
65632013-04-30 Joel Brobecker <brobecker@adacore.com>
6564
6565 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6566 of local variable msym to const struct bound_minimal_symbol.
6567 Adjust use accordingly.
6568 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6569
ecccb813
TS
65702013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6571
6572 * i386gnu-nat.c (CREG_OFFSET): New macro.
6573 (creg_offset): New array.
6574 (CREG_ADDR): Use creg_offset instead of reg_offset.
6575
f1d02dd4 65762013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6577
6578 * mep-tdep.c (mep_write_pc): Delete.
6579 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6580 Add call to set_gdbarch_pc_regnum.
6581
f1d02dd4 65822013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6583
6584 * common/filestuff.c: Replace #include <dirent.h> by
6585 #include "gdb_dirent.h".
6586
f1d02dd4 65872013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6588
6589 * common/filestuff.c: Replace #include <sys/stat.h> by
6590 #include "gdb_stat.h".
6591
b385a60d
PM
65922013-04-29 Pierre Muller <muller@sourceware.org>
6593
6594 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6595 editCase function rule.
6596 (get_DW_AT_signature_type): Likewise.
6597
d27b54ad
JB
65982013-04-29 Joel Brobecker <brobecker@adacore.com>
6599
6600 * m32r-tdep.c (m32r_write_pc): Delete.
6601 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6602 Add call to set_gdbarch_pc_regnum.
6603
47d21dc5
PM
66042013-04-29 Pierre Muller <muller@sourceware.org>
6605
6606 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6607
9056882e
JB
66082013-04-29 Joel Brobecker <brobecker@adacore.com>
6609
6610 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6611
7ee4732a
YQ
66122013-04-28 Yao Qi <yao@codesourcery.com>
6613
6614 * solib-dsbt.c (fetch_loadmap): Re-indent.
6615 (displacement_from_map, enable_break2): Likewise.
6616 (dsbt_relocate_section_addresses): Likewise.
6617
2260af53 66182013-04-26 Joel Brobecker <brobecker@adacore.com>
6619
6620 GDB 7.6 released.
6621
ff546935
TT
66222013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6623
6624 PR corefiles/14983:
6625 * dwarf2read.c (process_full_comp_unit): Always create a static
6626 block.
6627
40fb6c5e
HZ
66282013-04-25 Hui Zhu <hui@codesourcery.com>
6629
6630 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6631 to loc->cmd_bytecode.
6632
74e04d1c
DE
66332013-04-24 Doug Evans <dje@google.com>
6634
6635 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6636
3cf62c1d
KS
66372013-04-22 Keith Seitz <keiths@redhat.com>
6638
6639 * tracepoint.c (trace_save): Call the writer's start method.
6640
bf9e4d0c
MB
66412013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6642
6643 PR gdb/10462
6644 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6645 before argument.
6646
5d71132c
TT
66472013-04-23 Tom Tromey <tromey@redhat.com>
6648
6649 * common/filestuff.c: Check USE_WIN32API before including
6650 sys/socket.h.
6651 (HAVE_F_GETFD): New define.
6652 (mark_cloexec): Check HAVE_F_GETFD.
6653 (gdb_open_cloexec): Change 'mode' to unsigned long.
6654 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6655 (gdb_pipe_cloexec): Check HAVE_PIPE.
6656 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6657 long.
6658
a11cfd87
HZ
66592013-04-23 Hui Zhu <hui@codesourcery.com>
6660
6661 PR gdb/15293
a11cfd87
HZ
6662 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6663
2d9442cc
HZ
66642013-04-23 Hui Zhu <hui@codesourcery.com>
6665
6666 PR gdb/15165
2d9442cc
HZ
6667 * breakpoint.c (dprintf_print_recreate): New.
6668 (save_breakpoints): Let it not save dprintf commands.
6669 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6670
614c279d
TT
66712013-04-22 Tom Tromey <tromey@redhat.com>
6672
6673 PR gdb/7912:
6674 * Makefile.in (SFILES): Add filestuff.c
6675 (COMMON_OBS): Add filestuff.o.
6676 (filestuff.o): New target.
6677 * auto-load.c (auto_load_objfile_script_1): Use
6678 gdb_fopen_cloexec.
6679 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6680 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6681 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6682 * common/agent.c (gdb_connect_sync_socket): Use
6683 gdb_socket_cloexec.
6684 * common/filestuff.c: New file.
6685 * common/filestuff.h: New file.
6686 * common/linux-osdata.c (linux_common_core_of_thread)
6687 (command_from_pid, commandline_from_pid, print_source_lines)
6688 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6689 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6690 gdb_fopen_cloexec.
6691 * common/linux-procfs.c (linux_proc_get_int)
6692 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6693 * config.in, configure: Rebuild.
6694 * configure.ac: Don't check for sys/socket.h. Check for
6695 fdwalk, pipe2.
6696 * corelow.c (core_open): Use gdb_open_cloexec.
6697 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6698 * fork-child.c (fork_inferior): Call close_most_fds.
6699 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6700 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6701 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6702 Use gdb_fopen_cloexec.
6703 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6704 gdb_open_cloexec.
6705 (linux_async_pipe): Use gdb_pipe_cloexec.
6706 * remote-fileio.c (remote_fileio_func_open): Use
6707 gdb_open_cloexec.
6708 * remote.c (remote_file_put, remote_file_get): Use
6709 gdb_fopen_cloexec.
6710 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6711 close_most_fds.
6712 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6713 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6714 * solib.c (solib_find): Use gdb_open_cloexec.
6715 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6716 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6717 (tfile_open): Use gdb_open_cloexec.
6718 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6719 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6720 * xml-support.c (xml_fetch_content_from_file): Use
6721 gdb_fopen_cloexec.
6722 * main.c (captured_main): Call notice_open_fds.
6723
5fda2332
EBM
67242013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6725
6726 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6727 'char *' to 'gdb_byte *'.
6728 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6729 'gdb_byte'.
6730
eb6c553b
YQ
67312013-04-22 Yao Qi <yao@codesourcery.com>
6732
6733 * infrun.c: Fix typo in comment.
6734
9991b207
SDJ
67352013-04-22 Andrew Haley <aph@redhat.com>
6736
6737 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6738 instead of "long".
6739
8b4833e3
YQ
67402013-04-20 Yao Qi <yao@codesourcery.com>
6741
6742 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6743 'char *' to 'gdb_byte *'. Cast the return value of
6744 'bt_ctf_get_char_array' to 'gdb_byte *'.
6745
bd3f3b55
PA
67462013-04-19 Pedro Alves <palves@redhat.com>
6747
6748 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6749 -Wpointer-sign.
6750 * configure: Regenerate.
6751
c49e7f76
PA
67522013-04-19 Pedro Alves <palves@redhat.com>
6753
6754 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6755 'void *'.
6756
12ff8552
PA
67572013-04-19 Pedro Alves <palves@redhat.com>
6758
6759 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6760 Change type of 'myaddr' parameter to gdb_byte pointer.
6761 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6762 to 'long long' pointer instead of to 'unsigned long long'.
6763 (monitor_write_memory_block, monitor_read_memory_single)
6764 (monitor_read_memory): Change type of 'myaddr' parameter to
6765 gdb_byte pointer.
6766
9c37696b
PA
67672013-04-19 Pedro Alves <palves@redhat.com>
6768
6769 * record.c (validate_history_size): Make parameter 'setting'
6770 unsigned.
6771
a398505b
PA
67722013-04-19 Pedro Alves <palves@redhat.com>
6773
6774 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6775 to 'gdb_byte *'.
6776
9f8afa72
PA
67772013-04-19 Pedro Alves <palves@redhat.com>
6778
6779 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6780 local to int.
6781
c714b426
PA
67822013-04-19 Pedro Alves <palves@redhat.com>
6783
6784 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6785 * ada-tasks.c (read_fat_string_value): Likewise.
6786
507a579c
PA
67872013-04-19 Pedro Alves <palves@redhat.com>
6788
6789 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6790 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6791 'offset', and adjust.
6792
f9d83a0b
PA
67932013-04-19 Pedro Alves <palves@redhat.com>
6794
6795 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6796 (read_index_from_section): Add cast to 'char *'.
6797
745eb4fd
PA
67982013-04-19 Pedro Alves <palves@redhat.com>
6799
6800 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6801
db5be46f
PA
68022013-04-19 Pedro Alves <palves@redhat.com>
6803
6804 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6805
0f928d68
PA
68062013-04-19 Pedro Alves <palves@redhat.com>
6807
6808 * record-full.c (record_full_get_bookmark): Change local 'ret'
6809 type to char * and add cast to gdb_byte *.
6810 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6811 string.
6812 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6813
89f6d837
PA
68142013-04-19 Pedro Alves <palves@redhat.com>
6815
6816 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6817 * python/py-prettyprint.c (print_string_repr): Change type of
6818 'output' local to char *. Add cast to gdb_byte * in
6819 LA_PRINT_STRING call.
6820 (print_children): Change type of 'output' local to char *.
6821 * python/py-value.c (valpy_string): Add cast to const char * in
6822 PyUnicode_Decode call.
6823
ce6ec7d8
PA
68242013-04-19 Pedro Alves <palves@redhat.com>
6825
6826 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6827 and change its type to 'const char *'. Adjust.
6828 (mips_send_packet): Add cast to 'char *', and remove cast to
6829 'unsigned char *'.
6830 (mips_receive_packet): Remove cast to 'unsigned char *'.
6831 (mips_load_srec): Use bfd_byte.
6832 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6833 (pmon_checkset): Make 'value' parameter unsigned.
6834
fda0389f
PA
68352013-04-19 Pedro Alves <palves@redhat.com>
6836
6837 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6838
bc20a4af
PA
68392013-04-19 Pedro Alves <palves@redhat.com>
6840
6841 * remote.c (remote_write_bytes_aux, compare_sections_command)
6842 (remote_read_qxfer)
6843 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6844 (remote_hostio_readlink, remote_bfd_iovec_pread)
6845 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6846 binary buffer, and char when buffer is used as string.
6847 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6848 (trace_save, tfile_open, traceframe_walk_blocks)
6849 (tfile_fetch_registers): Likewise.
6850
c628b528
PA
68512013-04-19 Pedro Alves <palves@redhat.com>
6852
6853 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6854 buffer and size_t size. Adjust.
6855 * ser-base.h (ser_base_write): Adjust.
6856 * ser-go32.c (cnts): Change type to size_t.
6857 (dos_write): Change prototype -- take 'void *'
6858 buffer and size_t size. Adjust.
6859 (dos_info): Print elements of 'cnts' as unsigned long.
6860 * serial.c (serial_write): Likewise.
6861 * serial.h (serial_write): Adjust.
6862 (struct serial_ops) <write>: Change prototype -- take 'void *'
6863 buffer and size_t size. Adjust.
6864
51a5cd90
PA
68652013-04-19 Pedro Alves <palves@redhat.com>
6866
6867 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6868 gdb_byte *.
6869 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6870
a9933661
PA
68712013-04-19 Pedro Alves <palves@redhat.com>
6872
6873 * alpha-tdep.c (alpha_extract_return_value): Use
6874 regcache_cooked_read_unsigned to read 'v0'.
6875
19afdd07
PA
68762013-04-19 Pedro Alves <palves@redhat.com>
6877
6878 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6879 parameters 'at', 'as' and 'offset' to uint32_t.
6880
96b32e50
PA
68812013-04-19 Pedro Alves <palves@redhat.com>
6882
6883 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6884 'is64' to signed 'int'.
6885
eb1bd1fb
PA
68862013-04-19 Pedro Alves <palves@redhat.com>
6887
6888 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6889 parameter to int *.
6890
463920bf
PA
68912013-04-19 Pedro Alves <palves@redhat.com>
6892
6893 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6894 'insnbuf' buffer type to unsigned int[].
6895
70242eb1
PA
68962013-04-19 Pedro Alves <palves@redhat.com>
6897
6898 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6899
9d1dd0e2
PA
69002013-04-19 Pedro Alves <palves@redhat.com>
6901
6902 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6903 unsigned long *.
6904
44096aee
PA
69052013-04-19 Pedro Alves <palves@redhat.com>
6906
6907 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6908 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6909 UINT_MAX.
6910 * mips-tdep.c (heuristic_fence_post): Change type to int.
6911 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6912
e4286e57
PA
69132013-04-19 Pedro Alves <palves@redhat.com>
6914
6915 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6916 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6917 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6918
001f13d8
PA
69192013-04-19 Pedro Alves <palves@redhat.com>
6920
6921 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6922 it to get a string view of the byte buffer.
6923 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6924 type to gdb_byte *. Adjust.
6925 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6926 Change local to char *.
6927 * solib-darwin.c (find_program_interpreter): Change return type to
6928 char *. Adjust.
6929 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6930 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6931 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6932 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6933 * solib-svr4.c (find_program_interpreter): Change return type to
6934 char *. Adjust.
6935 (enable_break): Change local 'interp_name' to char *.
6936 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6937 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6938 (spu_pseudo_register_write_spu): Use char for string buffer.
6939 Adjust.
6940 (info_spu_event_command, info_spu_signal_command): Add casts to
6941 'char *'.
6942
948f8e3d
PA
69432013-04-19 Pedro Alves <palves@redhat.com>
6944
6945 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6946 gdb_byte[].
6947 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6948 * ada-lang.c (ada_value_assign): Use gdb_byte.
6949 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6950 (alphanbsd_sigtramp_offset): Use gdb_byte.
6951 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6952 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6953 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6954 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6955 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6956 * arm-tdep.c (arm_stub_unwind_sniffer)
6957 (arm_displaced_init_closure): Use gdb_byte.
6958 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6959 (arm_default_thumb_le_breakpoint)
6960 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6961 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6962 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6963 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6964 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6965 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6966 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6967 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6968 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6969 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6970 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6971 (cris_store_return_value, cris_extract_return_value): Use
6972 gdb_byte.
6973 (constraint): Change type of parameter to char * from signed
6974 char*. Use gdb_byte.
6975 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6976 of local buffer to gdb_byte *.
6977 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6978 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6979 (add_address_entry): Change type of local buffer to gdb_byte[].
6980 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6981 (frv_push_dummy_call): Use gdb_byte.
6982 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6983 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6984 (hppa_hpux_supply_save_state): Use gdb_byte.
6985 * hppa-tdep.c (hppa32_push_dummy_call)
6986 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6987 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6988 (slotN_contents, replace_slotN_contents): Change type of parameter
6989 to gdb_byte *.
6990 (fetch_instruction, ia64_pseudo_register_write)
6991 (ia64_register_to_value, ia64_value_to_register)
6992 (ia64_extract_return_value, ia64_store_return_value)
6993 (ia64_push_dummy_call): Use gdb_byte.
6994 * m32c-tdep.c (m32c_return_value): Remove cast.
6995 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6996 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6997 gdb_byte.
6998 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6999 * mn10300-tdep.c (mn10300_store_return_value)
7000 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7001 gdb_byte.
7002 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7003 (moxie_process_record): Remove casts.
7004 * ppc-ravenscar-thread.c (supply_register_at_address)
7005 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7006 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7007 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7008 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7009 * remote.c (compare_sections_command): Use gdb_byte.
7010 * score-tdep.c (score7_free_memblock): Change type of parameter to
7011 gdb_byte *.
7012 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7013 gdb_byte *. Use gdb_byte.
7014 (sh_push_dummy_call_fpu): Use gdb_byte.
7015 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7016 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7017 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7018 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7019 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7020 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7021 (sh64_store_return_value, sh64_register_convert_to_virtual):
7022 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7023 (sh64_pseudo_register_write): Use gdb_byte.
7024 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7025 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7026 buffer.
7027 (irix_current_sos): Use gdb_byte.
7028 * solib-som.c (som_current_sos): Use gdb_byte.
7029 * sparc-ravenscar-thread.c (supply_register_at_address)
7030 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7031 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7032 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7033 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7034 'gdb_byte *'.
7035 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7036 'gdb_byte *'.
7037 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7038 * xstormy16-tdep.c (xstormy16_extract_return_value)
7039 (xstormy16_store_return_value): Change parameter type to
7040 'gdb_byte *'. Adjust.
7041 (xstormy16_push_dummy_call): Use gdb_byte.
7042 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7043 (call0_analyze_prologue, execute_code): Use gdb_byte.
7044
433730c9
PA
70452013-04-19 Vladimir Kargov <kargov@gmail.com>
7046 Pedro Alves <palves@redhat.com>
7047
7048 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7049 value contents.
7050
ac9ec31b
DE
70512013-04-17 Doug Evans <dje@google.com>
7052
7053 * dwarf2read.c (struct signatured_type): New member type.
7054 (struct attribute): Replace member signatured_type with signature.
7055 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7056 (read_call_site_scope): Call follow_die_ref instead of
7057 follow_die_ref_or_sig.
7058 (read_structure_type): Rewrite handling of signatured types.
7059 (read_enumeration_type): Ditto.
7060 (read_attribute_value): Update.
7061 (build_error_marker_type): New function.
7062 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7063 Don't call error for bad types, just build an error marker type.
7064 (dump_die_shallow): Update.
7065 (follow_die_sig_1): Renamed from follow_die_sig.
7066 Don't call error for bad types, instead return NULL.
7067 (follow_die_sig): New function.
7068 (get_signatured_type, get_DW_AT_signature_type): New functions.
7069
e546e8bb
YZ
70702013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7071
7072 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7073 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7074 function.
e546e8bb 7075
ab116149
YQ
70762013-04-17 Yao Qi <yao@codesourcery.com>
7077
7078 * top.c (print_gdb_configuration): Print configure-time
7079 parameter on using libbabeltrace or not.
7080
488a42b8
PA
70812013-04-16 Pedro Alves <palves@redhat.com>
7082
7083 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7084
f5fb825b
PA
70852013-04-16 Pedro Alves <palves@redhat.com>
7086
85d494ea 7087 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7088 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7089
e1154999
PA
70902013-04-16 Pedro Alves <palves@redhat.com>
7091
7092 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7093 * common/glibc_thread_db.h: ... this new file ...
7094 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7095
e3b50a7f
PA
70962013-04-16 Will Newton <will.newton@gmail.com>
7097 Pedro Alves <palves@redhat.com>
7098
7099 PR build/11881
7100
7101 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7102 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7103 HAVE_THREAD_DB_H.
7104
1c2e4450
PA
71052013-04-16 Pedro Alves <palves@redhat.com>
7106 Eli Zaretskii <eliz@gnu.org>
7107
7108 * NEWS: Mention "set foo unlimited".
7109
4031ecc5
DE
71102013-04-15 Doug Evans <dje@google.com>
7111
19c3d4c9
DE
7112 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7113 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7114 (create_dwo_cu_reader): Renamed from
7115 create_dwo_debug_info_hash_table_reader.
7116 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7117 Remove support for multiple CUs in a DWO file.
7118 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7119
4031ecc5
DE
7120 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7121 instead of phex.
7122 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7123 (create_dwo_in_dwp): Ditto.
7124
b340913d
TT
71252013-04-15 Tom Tromey <tromey@redhat.com>
7126
7127 * NEWS: Move recent entries into "since 7.6" section.
7128
cc16e6c9
TT
71292013-04-15 Tom Tromey <tromey@redhat.com>
7130
7131 PR c++/13588:
7132 * NEWS: Update.
7133 * break-catch-throw.c (struct exception_catchpoint)
7134 <exception_rx, pattern>: New fields.
7135 (fetch_probe_arguments, dtor_exception_catchpoint)
7136 (check_status_exception_catchpoint)
7137 (print_one_detail_exception_catchpoint): New functions.
7138 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7139 Compile regular expression if needed.
7140 (extract_exception_regexp): New function.
7141 (catch_exception_command_1): Use extract_exception_regexp.
7142 (compute_exception): Use fetch_probe_arguments.
7143 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7144 and check_status fields.
7145 * cp-abi.c (cplus_typename_from_type_info): New function.
7146 * cp-abi.h (cplus_typename_from_type_info): Declare.
7147 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7148 * gdb_regex.h (compile_rx_or_error): Declare.
7149 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7150 comment.
7151 (init_gnuv3_ops): Set get_type_from_type_info field.
7152 * probe.c (compile_rx_or_error): Move...
7153 * utils.c (compile_rx_or_error): ... here.
7154
72f1fe8a
TT
71552013-04-15 Tom Tromey <tromey@redhat.com>
7156
7157 PR c++/15176:
7158 * NEWS: Update.
7159 * break-catch-throw.c (compute_exception): New function.
7160 (exception_funcs): New global.
7161 (_initialize_break_catch_throw): Create $_exception.
7162 * cp-abi.c (cplus_type_from_type_info): New function.
7163 * cp-abi.h (cplus_type_from_type_info): Declare.
7164 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7165 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7166 (gnuv3_get_type_from_type_info): New functions.
7167 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7168
fc4746a2
TT
71692013-04-15 Tom Tromey <tromey@redhat.com>
7170
7171 * break-catch-throw.c (struct exception_names): New.
7172 (exception_functions): Change type.
7173 (re_set_exception_catchpoint): Look for SDT probes.
7174
15a73f56
TT
71752013-04-15 Tom Tromey <tromey@redhat.com>
7176
7177 PR c++/10119:
7178 * break-catch-throw.c (exception_functions): New global.
7179 (gnu_v3_exception_catchpoint_ops): Move earlier.
7180 (struct exception_catchpoint): New.
7181 (classify_exception_breakpoint): Rewrite.
7182 (re_set_exception_catchpoint): New function.
7183 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7184 Allocate a struct exception_catchpoint.
7185 (catch_exception_command_1): Update.
7186 (initialize_throw_catchpoint_ops): Set 're_set' method.
7187
916703c0
TT
71882013-04-15 Tom Tromey <tromey@redhat.com>
7189
7190 * Makefile.in (SFILES): Add break-catch-throw.c
7191 (COMMON_OBS): Add break-catch-throw.o.
7192 * break-catch-throw.c: New file.
7193 * breakpoint.c: Move exception-catching code to new file.
7194 (ep_parse_optional_if_clause): No longer static.
7195 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7196
6e72ca20
TT
71972013-04-15 Tom Tromey <tromey@redhat.com>
7198
7199 PR c++/9065:
7200 * NEWS: Update.
7201 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7202 * c-exp.y (TYPEID): New token.
7203 (exp): Add new TYPEID productions.
7204 (ident_tokens): Add "typeid".
7205 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7206 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7207 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7208 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7209 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7210 case.
7211 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7212 (build_std_type_info_type, gnuv3_get_typeid_type)
7213 (gnuv3_get_typeid): New functions.
7214 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7215 new fields on ABI object.
7216 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7217 * std-operator.def (OP_TYPEID): New.
7218
715c6909
TT
72192013-04-15 Tom Tromey <tromey@redhat.com>
7220
7221 * elfread.c (elf_symtab_read): Install versioned symbol under
7222 unversioned name as well.
7223
8de20a37
TT
72242013-04-15 Tom Tromey <tromey@redhat.com>
7225
7226 PR c++/11990:
7227 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7228 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7229 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7230 (gdb_demangle): New function.
7231 * cp-support.h (gdb_demangle): Declare.
7232 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7233 (dwarf2_name): Use gdb_demangle.
7234 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7235 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7236 suffixes from name.
7237 (gnuv3_print_method_ptr): Use gdb_demangle.
7238 * jv-lang.c (java_demangle): Use gdb_demangle.
7239 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7240 * language.c (unk_lang_demangle): Use gdb_demangle.
7241 * symtab.c (symbol_find_demangled_name)
7242 (demangle_for_lookup): Use gdb_demangle.
7243
591f19e8
TT
72442013-04-15 Tom Tromey <tromey@redhat.com>
7245
7246 PR c++/12824:
7247 * NEWS: Update.
7248 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7249 New constant.
7250 (classify_exception_breakpoint): New function.
7251 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7252 (print_mention_exception_catchpoint)
7253 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7254 (catch_exception_command_1): Handle "rethrow" catchpoint.
7255 (catch_rethrow_command): New function.
7256 (_initialize_breakpoint): Add "catch rethrow" command.
7257
4d40cad2
PM
72582013-04-15 Pierre Muller <muller@sourceware.org>
7259
7260 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7261 set_gdbarch_write_pc as deprecated anymore.
7262
30bcb456
JB
72632013-04-15 Joel Brobecker <brobecker@adacore.com>
7264
7265 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7266 declarations.
7267
da9160e4
YQ
72682013-04-13 Yao Qi <yao@codesourcery.com>
7269
7270 * ctf.c (_initialize_ctf): Include "completer.h".
7271 Call add_target_with_completer instead of add_target.
7272
39ed5604
JK
72732013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7274
7275 Fix GDB regression related to PR binutils/14813.
7276 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7277 * minidebug.c (lzma_close): Add return value comment.
7278 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7279 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7280 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7281
72822013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7283
7284 * config.in: Regenerate.
7285
d521ce57
TT
72862013-04-12 Tom Tromey <tromey@redhat.com>
7287
7288 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7289 const.
7290 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7291 (struct die_reader_specs) <buffer>: Likewise.
7292 (die_reader_func_ftype): Make 'info_ptr' const.
7293 (struct line_header) <include_dirs, statement_program_start,
7294 statement_program_end>: Now const.
7295 (struct file_entry) <name>: Likewise.
7296 (struct partial_die_info) <sibling>: Likewise.
7297 (struct dwarf_block) <data>: Likewise.
7298 (dwarf2_read_section): Remove cast.
7299 (dwarf2_get_section_info): Make 'bufp' const.
7300 (read_index_from_section): Constify.
7301 (dw2_get_file_names_reader): Make 'info_ptr' const.
7302 (dw2_get_primary_filename_reader): Likewise.
7303 (read_comp_unit_head): Make 'info_ptr' and return type const.
7304 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7305 Likewise.
7306 (read_abbrev_offset): Constify.
7307 (dwarf2_create_include_psymtab): Make 'name' const.
7308 (create_debug_types_hash_table): Update.
7309 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7310 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7311 Constify.
7312 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7313 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7314 (read_comp_units_from_section): Constify.
7315 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7316 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7317 const.
7318 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7319 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7320 (create_dwp_hash_table, dwarf2_ranges_read)
7321 (dwarf2_record_block_ranges): Constify.
7322 (read_die_and_children, read_die_and_siblings_1)
7323 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7324 const.
7325 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7326 (abbrev_table_read_table): Constify.
7327 (load_partial_dies): Make 'info_ptr' const.
7328 (read_partial_die, read_attribute_value, read_attribute): Make
7329 'info_ptr' and return type const.
7330 (read_address, read_initial_length)
7331 (read_checked_initial_length_and_offset, read_offset)
7332 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7333 const.
7334 (read_direct_string): Make 'buf' and return type const.
7335 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7336 (read_indirect_string): Make return type const.
7337 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7338 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7339 'info_ptr' const.
7340 (read_str_index): Make return type const.
7341 (add_include_dir): Make 'include_dir' const.
7342 (add_file_name): Make 'name' const.
7343 (dwarf_decode_line_header): Constify.
7344 (psymtab_include_file_name): Make return type const.
7345 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7346 (dwarf2_start_subfile): Make 'filename' const.
7347 (dwarf2_const_value_attr): Make 'bytes' const.
7348 (read_signatured_type_reader): Make 'info_ptr' const.
7349 (decode_locdesc): Constify.
7350 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7351 const.
7352 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7353 'mac_end', and return type const.
7354 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7355 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7356 type const.
7357 (per_cu_header_read_in): Constify.
7358 * symfile.h (dwarf2_get_section_info): Update.
7359
d47a1bc1
TT
73602013-04-12 Tom Tromey <tromey@redhat.com>
7361
7362 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7363
6eaaf48b
EZ
73642013-04-12 Eli Zaretskii <eliz@gnu.org>
7365
fc4c25bf 7366 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7367 * top.c (print_gdb_configuration): New function, displays the
7368 details about GDB configure-time parameters.
7369 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7370 * cli/cli-cmds.c (show_configuration): New function.
7371 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7372 * main.c (captured_main) <print_configuration>: New static var.
7373 <long_options>: Use it.
7374 If --configuration was given, call print_gdb_configuration.
7375
b292c783
JK
73762013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7377 Pedro Alves <palves@redhat.com>
7378
7379 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7380 (generated_files): Add gcore.
7381 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7382 HAVE_NATIVE_GCORE_HOST.
7383 (gcore): New.
7384 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7385 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7386 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7387 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7388 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7389 Add HAVE_NATIVE_GCORE_HOST.
7390 * configure: Regenerate.
7391 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7392 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7393 AC_CONFIG_FILES for gcore.
7394 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7395 gdb_have_gcore.
7396 * gdb_gcore.sh: Rename to ...
7397 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7398 and GCORE_TRANSFORM_NAME substitutions.
7399
c96b3c4f
JK
7400 Fix parsing tabs in ${gdb_target_obs}.
7401 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7402
d6cb50a2
JK
74032013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7404
7405 * remote.c (unpush_and_perror): Add output message final dot.
7406
cf2cb5ec
YQ
74072013-04-11 Yao Qi <yao@codesourcery.com>
7408
7409 * tracepoint.c (tfile_interp_line): Fit parameters line and
7410 utpp in one line.
7411
07293be4
JB
74122013-04-10 Joel Brobecker <brobecker@adacore.com>
7413
7414 * solib.c (solib_map_sections): Remove code overwriting
7415 SO->SO_NAME with the bfd's filename.
7416
f81d1120
PA
74172013-04-10 Pedro Alves <palves@redhat.com>
7418
7419 * cli/cli-decode.c (integer_unlimited_completer): New function.
7420 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7421 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7422 completer.
7423 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7424 (is_unlimited_literal): New function.
7425 (do_set_command): Handle literal "unlimited" arguments.
7426 * frame.c (_initialize_frame) <set backtrace limit>: Document
7427 "unlimited".
7428 * printcmd.c (_initialize_printcmd) <set print
7429 max-symbolic-offset>: Add help text.
7430 * record-full.c (_initialize_record_full) <set record full
7431 insn-number-max>: Likewise.
7432 * record.c (_initialize_record) <set record
7433 instruction-history-size, set record function-call-history-size>:
7434 Add help text.
7435 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7436 help text.
7437 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7438 Likewise.
7439 * source.c (_initialize_source) <set listsize>: Add help text.
7440 * utils.c (initialize_utils) <set height, set width>: Likewise.
7441 <set pagination>: Mention "set height unlimited".
7442 * valprint.c (_initialize_valprint) <set print elements, set print
7443 repeats>: Document "unlimited".
7444
2f9d54cf
PA
74452013-04-10 Pedro Alves <palves@redhat.com>
7446
7447 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7448 instead of disconnect_tracing.
7449 * infcmd.c (detach_command, disconnect_command): Call
7450 query_if_trace_running. Adjust.
7451 * top.c: Include "tracepoint.h".
7452 (quit_target): Delete. Contents moved ...
7453 (quit_force): ... here. Wrap each stage of teardown in
7454 TRY_CATCH. Call disconnect_tracing before detaching.
7455
393fd4c3
YQ
74562013-04-10 Hui Zhu <hui@codesourcery.com>
7457 Yao Qi <yao@codesourcery.com>
7458
7459 * configure.ac: Check libbabeltrace is installed.
7460 * config.in: Regenerate.
7461 * configure: Regenerate.
7462 * Makefile.in (LIBBABELTRACE): New.
7463 (CLIBS): Add LIBBABELTRACE.
7464 * ctf.c: Include "exec.h".
7465 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7466 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7467 (ctf_save_metadata_header): Define new type aliases in
7468 metadata.
7469 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7470 in metadata. Start a new faked packet for trace status.
7471 (ctf_write_status): Write trace status to CTF.
7472 (ctf_write_uploaded_tsv): Write TSV to CTF.
7473 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7474 (ctf_write_definition_end): End the faked packet.
7475
7476 (ctx, ctf_iter, trace_dirname): New.
7477 (start_pos): New variable.
7478 (ctf_destroy, ctf_open_dir, ctf_open): New.
7479 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7480 macros.
7481 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7482 (ctf_fetch_registers, ctf_xfer_partial): New.
7483 (ctf_get_trace_state_variable_value): New.
7484 (ctf_get_tpnum_from_frame_event): New.
7485 (ctf_get_traceframe_address): New.
7486 (ctf_trace_find, ctf_has_stack): New.
7487 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7488 (ctf_get_trace_status, ctf_read_status): New.
7489 (_initialize_ctf): New.
7490 * tracepoint.c (get_tracepoint_number): New
7491 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7492 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7493 * tracepoint.h: ... here.
7494 (get_tracepoint_number): Declare it.
7495 (get_uploaded_tsv): Declare it.
7496
7497 * NEWS: Mention new configure option.
7498
5c2b4418
HZ
74992013-04-10 Pedro Alves <palves@redhat.com>
7500 Hui Zhu <hui@codesourcery.com>
7501
7502 * breakpoint.c (dprintf_re_set): New.
7503 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7504 to dprintf_re_set.
7505
a5c66735
JB
75062013-04-09 Joel Brobecker <brobecker@adacore.com>
7507
7508 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7509 Remove solib-svr4.o from the list.
7510
9e77999c
JB
75112013-04-09 Joel Brobecker <brobecker@adacore.com>
7512
7513 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7514 Use gdb_assert_not_reached instead of invalid boolean expression.
7515
1927e618
PA
75162013-04-09 Pedro Alves <palves@redhat.com>
7517
7518 * remote.c (unpush_and_perror): New function.
7519 (readchar, remote_serial_write): Use it.
7520
10782d74
MM
75212013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7522
7523 * NEWS: Mention new btrace RSP packets.
7524
4c8429ef
TT
75252013-04-08 Tom Tromey <tromey@redhat.com>
7526
7527 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7528 long.
7529
8625fc1b
TT
75302013-04-08 Tom Tromey <tromey@redhat.com>
7531
7532 * maint.c (print_bfd_section_info): Print the section index.
7533 * symmisc.c (dump_msymbols): Print the section index.
7534
e27d198c
TT
75352013-04-08 Tom Tromey <tromey@redhat.com>
7536
7537 PR symtab/8424:
7538 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7539 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7540 * breakpoint.c (resolve_sal_pc): Update.
7541 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7542 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7543 (minsym_lookup_iterator_cb): Use it.
7544 (default_read_var_value): Update.
7545 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7546 Update.
7547 * infcmd.c (jump_command): Update.
7548 * linespec.c (minsym_found): Update.
7549 * maint.c (maintenance_translate_address): Update.
7550 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7551 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7552 * parse.c (write_exp_msymbol): Update.
7553 * printcmd.c (address_info): Update.
7554 * psymtab.c (find_pc_sect_psymbol): Update.
7555 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7556 SYMBOL_OBJ_SECTION.
7557 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7558 Don't initialize SYMBOL_OBJ_SECTION.
7559 * spu-tdep.c (spu_catch_start): Update.
7560 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7561 * symmisc.c (dump_msymbols, print_symbol): Update.
7562 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7563 how fallback section is computed.
7564 (fixup_symbol_section): Update.
7565 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7566 Update.
7567 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7568 Initialize SYMBOL_SECTION.
7569 * symtab.h (struct general_symbol_info) <section>: Update comment.
7570 <obj_section>: Remove.
7571 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7572 (SYMBOL_OBJFILE): New macro.
7573
e6dc44a8
TT
75742013-04-08 Tom Tromey <tromey@redhat.com>
7575
7576 * coffread.c (record_minimal_symbol): Update.
7577 * dbxread.c (record_minimal_symbol): Update.
7578 * elfread.c (record_minimal_symbol): Update.
7579 * machoread.c (macho_symtab_add_minsym): Update.
7580 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7581 Update.
7582 * minsyms.c (prim_record_minimal_symbol): Update.
7583 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7584 argument.
7585 (prim_record_minimal_symbol_and_info): Likewise.
7586 * minsyms.h (prim_record_minimal_symbol_full)
7587 (prim_record_minimal_symbol_and_info): Update.
7588 * symtab.c (allocate_symbol, initialize_symbol)
7589 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7590 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7591 Update.
7592
36192a8d
TT
75932013-04-08 Tom Tromey <tromey@redhat.com>
7594
7595 PR symtab/8423:
7596 * solib-som.c (som_solib_section_offsets): Use BFD section
7597 indices. Set offsets for all sections.
7598 * somread.c (som_symtab_read): Compute BFD section for
7599 symbol. Use prim_record_minimal_symbol_and_info.
7600 (som_symfile_read): Fix comment.
7601 (struct find_section_offset_arg): New.
7602 (find_section_offset, set_section_index): New functions.
7603 (som_symfile_offsets): Use set_section_index to compute
7604 section indices.
7605
65cf3563
TT
76062013-04-08 Tom Tromey <tromey@redhat.com>
7607
7608 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7609 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7610 gdb_bfd_section_index.
7611 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7612 New functions.
7613 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7614 Declare.
7615 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7616 Update.
7617 * objfiles.c (add_to_objfile_sections_full): New function.
7618 (add_to_objfile_sections): Use it.
7619 (build_section_table): Rewrite.
7620 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7621 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7622 (struct objfile) <sections>: Update comment.
7623 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7624 is NULL.
7625 (ALL_OBJSECTIONS): Use it.
7626 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7627 * solib-frv.c (frv_relocate_main_executable): Update.
7628 * solib-target.c (solib_target_relocate_section_addresses):
7629 Use gdb_bfd_section_index.
7630 * symfile.c (build_section_addr_info_from_section_table):
7631 Use gdb_bfd_section_index.
7632 (build_section_addr_info_from_bfd, place_section): Likewise.
7633 * symtab.c (fixup_section): Update.
7634 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7635
7cbd4a93
TT
76362013-04-08 Tom Tromey <tromey@redhat.com>
7637
7638 * minsyms.h (struct bound_minimal_symbol): New.
7639 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7640 Remove objfile argument.
7641 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7642 Return bound_minimal_symbol.
7643 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7644 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7645 Return bound_minimal_symbol.
7646 (in_gnu_ifunc_stub): Update.
7647 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7648 Remove 'objfile_p' argument.
7649 (lookup_solib_trampoline_symbol_by_pc): Update.
7650 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7651 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7652 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7653 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7654 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7655 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7656 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7657 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7658 stack.c, symtab.c, tui/tui-disasm.c: Update.
7659
f85f34ed
TT
76602013-04-08 Tom Tromey <tromey@redhat.com>
7661
7662 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7663 Use symbol's obstack, not an objfile.
7664 * coffread.c (process_coff_symbol): Update.
7665 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7666 * jv-lang.c (add_class_symbol): Update.
7667 * mdebugread.c (new_symbol): Update.
7668 * minsyms.c (prim_record_minimal_symbol_full)
7669 (terminate_minimal_symbol_table): Update.
7670 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7671 * stabsread.c (define_symbol, read_enum_type): Update.
7672 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7673 Handle Ada specially.
7674 (symbol_set_language): Add 'obstack' argument.
7675 (symbol_set_names): Update.
7676 (symbol_natural_name, symbol_demangled_name): Always use
7677 ada_decode_symbol.
7678 * symtab.h (struct general_symbol_info)
7679 <language_specific::obstack>: New field.
7680 <ada_mangled>: New field.
7681 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7682 (symbol_set_language): Update.
7683
ccde22c0
TT
76842013-04-08 Tom Tromey <tromey@redhat.com>
7685
7686 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7687 Take an obstack, not an objfile.
7688 (symbol_set_names): Update.
7689 * symtab.h (symbol_set_demangled_name): Update.
7690
e623cf5d
TT
76912013-04-08 Tom Tromey <tromey@redhat.com>
7692
7693 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7694 allocate_symbol.
7695 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7696 (read_func_scope): Call allocate_template_symbol.
7697 (new_symbol_full): Call allocate_symbol.
7698 * jit.c (finalize_symtab): Call allocate_symbol.
7699 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7700 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7701 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7702 (common_block_end): Call allocate_symbol.
7703 * symtab.c (allocate_symbol, initialize_symbol)
7704 (allocate_template_symbol): New functions.
7705 * symtab.c (allocate_symbol, initialize_symbol)
7706 (allocate_template_symbol): Declare.
7707 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7708
f6de8ec2
PA
77092013-04-08 Pedro Alves <palves@redhat.com>
7710 Keith Seitz <keiths@redhat.com>
7711
7712 * breakpoint.c (create_breakpoint): Rename
7713 "parse_condition_and_thread" parameter to "parse_arg". Update
7714 describing comment. If !PARSE_ARG, then error out if ARG is not
7715 the empty string after extracting the location.
7716 * breakpoint.h (create_breakpoint): Rename
7717 "parse_condition_and_thread" parameter to "parse_arg".
7718
f65ce5fb
AR
77192013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7720
7721 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7722
cc5925ad
YQ
77232013-04-07 Yao Qi <yao@codesourcery.com>
7724
7725 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7726 and 'addr2' to CORE_ADDR.
7727 * target.c (update_current_target): Update.
7728 * target.h (struct target_ops) <to_trace_find>: Change parameter
7729 type to CORE_ADDR.
7730 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7731 'addr2' to CORE_ADDR.
7732 (tfile_trace_find): Likewise.
7733 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7734 Change local variable 'addr' to type CORE_ADDR.
7735 * tracepoint.h (tfind_1): Update declaration.
7736
d9ac0664
EZ
77372013-04-06 Eli Zaretskii <eliz@gnu.org>
7738
7739 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7740 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7741 Include main.h.
7742
7743 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7744 here...
7745 * main.h (windows_get_absolute_argv0): ...to here.
7746
02142a6c
DE
77472013-04-05 Doug Evans <dje@google.com>
7748
7749 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7750 (read_cutu_die_from_dwo): Add comments.
7751 (read_structure_type): Update comment.
7752 (read_enumeration_type, read_namespace_type): Update comment.
7753 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7754
43662968
JK
77552013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7756
7757 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7758 * Makefile.in (gdb.z): Remove.
7759 (install-only): Remove $(man1dir) and gdb.1 installation.
7760 * gdb.1: Remove.
7761
9ead1b84
JK
77622013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7763
7764 Fix compatibility with Linux kernel 3.8.3.
7765 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7766 to more inner block. Remove parsing of NUMBER from outer block.
7767 Parse NUMBER only if KEYWORD has been identified.
7768
d1794952
JK
77692013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7770
7771 Fix variable name shadowing.
7772 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7773 filename to mapsfilename and update its uses.
7774
9025569e
EZ
77752013-04-05 Eli Zaretskii <eliz@gnu.org>
7776
7777 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7778 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7779 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7780 details of the problem.
7781
c9a6ce02
PA
77822013-04-04 Pedro Alves <palves@redhat.com>
7783 Hui Zhu <hui@codesourcery.com>
7784
7785 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7786 tracepoint, reset its STEP_COUNT and call validate_actionline.
7787
5ff888ce
DE
77882013-04-03 Doug Evans <dje@google.com>
7789
bf6af496
DE
7790 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7791 read_die_and_siblings.
7792 (read_die_and_siblings): New function.
7793 (read_cutu_die_from_dwo): Dump die if requested.
7794 (read_die_and_children): Call read_full_die_1 and
7795 read_die_and_siblings_1.
7796 (read_full_die): Dump die if requested.
7797
7798 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7799
0ac5b59e
DE
7800 * dwarf2read.c (struct dwo_file): New member comp_dir.
7801 Rename member name to dwo_name. All uses updated.
7802 (hash_dwo_file): Include comp_dir in computation.
7803 (eq_dwo_file): Ditto.
7804 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7805 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7806
5ff888ce
DE
7807 * psymtab.c (read_psymtabs_with_fullname): Don't call
7808 psymtab_to_fullname if the basenames are different.
7809
ec83d211
JK
78102013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7811
7812 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7813 New entry about "fullname" presence.
7814
4f4352f7
PA
78152013-04-03 Pedro Alves <palves@redhat.com>
7816
7817 * NEWS: Mention x86_64/Cygwin as new native configuration.
7818
3d1d5ea3
DE
78192013-04-02 Doug Evans <dje@google.com>
7820
7821 * dwarf2read.c (read_structure_type): Fix typo in comment.
7822
be9a8770
PA
78232013-04-02 Pedro Alves <palves@redhat.com>
7824
7825 * NEWS: Mention "set/show debug aarch64", "set/show debug
7826 coff-pe-read" and "set/show debug mach-o".
7827
a46c1e42
PA
78282013-04-02 Pedro Alves <palves@redhat.com>
7829
7830 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7831
3ad18b19
EZ
78322013-04-02 Eli Zaretskii <eliz@gnu.org>
7833
7834 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7835 gdb_string.h is now in common/.
7836
e9f1758d
PA
78372013-04-02 Pedro Alves <palves@redhat.com>
7838
7839 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7840 under "New options".
7841
049dc89b
JK
78422013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7843
7844 Revert this patch:
7845 PR gdb/15275
7846 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7847
c33e31fd
PA
78482013-04-02 Pedro Alves <palves@redhat.com>
7849
7850 PR gdb/15275
7851
7852 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7853 (remote_serial_write): New function.
7854 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7855
ea5f3910
JW
78562013-04-01 Jiong Wang <jiwang@tilera.com>
7857
7858 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7859 "New targets" sections.
ea5f3910 7860
5c6fa7ab
DE
78612013-04-01 Doug Evans <dje@google.com>
7862
c0f78cd4
DE
7863 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7864 (process_enumeration_scope): Simplify.
7865
0186c6a7
DE
7866 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7867 type_unit_group ...
7868 (struct signatured_type): ... to here.
7869 (sig_type_ptr): New typedef.
7870 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7871 out of union 't'. All uses updated.
7872 (dw2_get_file_names_reader): Assert not called for a type unit.
7873 (dw2_get_file_names): Assert not called for a type unit or type
7874 unit group.
7875 (build_type_psymtabs_reader): Assert called for a type unit.
7876 (build_type_psymtab_dependencies): Assert called for a type unit group.
7877
5c6fa7ab
DE
7878 * dwarf2read.c (free_dwo_file): Add comment.
7879 (dwarf2_per_objfile_free): Unref dwp bfd.
7880
b3c0ad67 78812013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7882
7883 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7884 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7885 (read_pe_exported_syms): Remove unused 'exportix'.
7886 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7887 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7888 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7889
e2df1547
AR
78902013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7891
7892 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7893 (print_it_watchpoint): Remove unused 'bl'.
7894 (say_where): Remove unused 'uiout'.
7895 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7896 (bkpt_breakpoint_hit): Remove unused 'b'.
7897 (internal_bkpt_print_it): Remove unused 'uiout'.
7898 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7899
d81e75c0
TD
79002013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7901
7902 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7903 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7904
5a8b3f62
DE
79052013-03-29 Doug Evans <dje@google.com>
7906
ab5088bf
DE
7907 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7908 Delete arg is_dwp. All callers updated.
7909 (open_dwp_file): New function.
7910 (open_and_init_dwp_file): Call it.
7911 (get_dwp_file): New function.
7912 (lookup_dwo_cutu): Call it.
7913
a8ad1e57
DE
7914 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7915 unnecessary, cleanup.
7916
6296d8c1
DE
7917 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7918
b0c7bfa9
DE
7919 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7920 (lookup_dwo_unit): New function.
7921 (init_cutu_and_read_dies): Move DWO handling to new functions.
7922
c88ee1f0
DE
7923 * dwarf2read.c (struct signatured_type): Tweak comment.
7924 (struct dwo_unit): Tweak comment.
7925 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7926 (create_dwo_debug_info_hash_table): Tweak comment.
7927 (dwarf2_per_cu_offset_and_type): Tweak comment.
7928
5a8b3f62
DE
7929 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7930 missing .debug_types section.
7931
9852c492
YQ
79322013-03-29 Yao Qi <yao@codesourcery.com>
7933
7934 * corelow.c: Include "completer.h".
7935 (_initialize_corelow): Call add_target_with_completer with
7936 argument 'filename_completer'.
7937 * tracepoint.c: Likewise.
7938 * exec.c (_initialize_exec): Likewise.
7939 * target.c (add_target): Rename to ...
7940 (add_target_with_completer): ... this. Call set_cmd_completer
7941 if parameter completer is not NULL.
7942 (add_target): New.
7943 * target.h: Include "command.h".
7944 (add_target_with_completer): Declare it.
7945
af312be7
JB
79462013-03-28 Joel Brobecker <brobecker@adacore.com>
7947
7948 * coffread.c (is_import_fixup_symbol): New function.
7949 (record_minimal_symbol): Use is_import_fixup_symbol to
7950 detect import fixup symbols, and discard them.
7951
8a0459fd
DE
79522013-03-28 Doug Evans <dje@google.com>
7953
0349ea22
DE
7954 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7955 types hash table until we know we need it.
7956
f652bce2
DE
7957 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7958 index numbers.
7959
e4a48d9d
DE
7960 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7961 All callers updated.
7962 (dw2_print_stats): Print #read CUs too.
7963 (dump_die_shallow): Print signatured types better.
7964
8a0459fd
DE
7965 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7966 info_or_types_section to section. All uses updated.
7967 (struct dwo_unit): Ditto.
7968
bd3eecc3
PA
79692013-03-28 Pedro Alves <palves@redhat.com>
7970
7971 * NEWS (New options): New section.
7972 (New options): Mention set/show remote trace-status-packet.
7973 * remote.c (PACKET_qTStatus): New enumeration value.
7974 (remote_get_trace_status): Skip sending qTStatus if the packet is
7975 disabled. Use packet_ok.
7976 (_initialize_remote): Register a configuration command for
7977 qTStatus packet.
7978
41245087
DE
79792013-03-28 Doug Evans <dje@google.com>
7980
7edbb660
DE
7981 * symfile.c (find_separate_debug_file): Add comment.
7982 (terminate_after_last_dir_separator): Tweak comment.
7983
0018ea6f
DE
7984 * dwarf2read.c (create_partial_symtab): Add forward decl.
7985 (create_partial_symtab): Move to be closer to other psymtab functions.
7986 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7987
ca69b9e6
DE
7988 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7989 (compute_symtab_includes): Remove unnecessary forward declaration.
7990 (die_needs_namespace): Add comment marking group of functions for
7991 dwarf2 name computation.
7992
a9375afe
DE
7993 * typeprint.c (_initialize_typeprint): Improve type help text.
7994
41245087
DE
7995 * python/python.c (finish_python_initialization): Provide suggestion
7996 for how to tell gdb to find its python files.
7997
7f7cc265
PA
79982013-03-28 Pedro Alves <palves@redhat.com>
7999
8000 PR gdb/15294
8001
8002 * source.c (_initialize_source): Change back "set listsize" to an
8003 integer command.
8004
ec21308c
JK
80052013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8006
8007 PR gdb/15275
8008 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8009
840a9a1f
PA
80102013-03-27 Pedro Alves <palves@redhat.com>
8011
8012 * top.c (history_size): Rename to ...
8013 (history_size_setshow_var): ... this. Add comment.
8014 (show_commands): Use readline's 'history_length' instead of
8015 computing the history length by calling history_get in a loop.
8016 (set_history_size_command): Error out for sizes over INT_MAX.
8017 Restore previous history size on invalid size.
8018 (init_history): If HISTSIZE is negative, leave the history size as
8019 zero. Add comments.
8020 (init_main): Adjust.
8021
826ecc4d
PA
80222013-03-27 Pedro Alves <palves@redhat.com>
8023
8024 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8025 coff_pe_read" command to "set debug coff-pe-read".
8026
0ccfeeae
MM
80272013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8028
8029 * record.c (command_size_to_target_size): Fix size comparison.
8030 Change parameter type from pointer to integer to integer.
8031 Update all users.
8032
40653b35
PM
80332013-03-27 Pierre Muller <muller@sourceware.org>
8034
8035 * windows-nat.c (handle_output_debug_string): Avoid typecast
8036 from integer of different size warning.
8037
c62fa0e2
JB
80382013-03-26 Joel Brobecker <brobecker@adacore.com>
8039
8040 * windows-nat.c (handle_output_debug_string): Add empty line
8041 after local block variable definition.
8042
2c619be2
PA
80432013-03-26 Pedro Alves <palves@redhat.com>
8044
8045 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8046 (net_open): Make 'polls' local unsigned.
8047
1b493192
PA
80482013-03-26 Pedro Alves <palves@redhat.com>
8049
8050 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8051 a zuinteger command instead of uinteger.
8052
7ee70bf5
PA
80532013-03-26 Pedro Alves <palves@redhat.com>
8054
8055 * record-full.c (record_full_insn_num): Make it unsigned.
8056 (record_full_check_insn_num, record_full_message)
8057 (record_full_registers_change, record_full_xfer_partial): Remove
8058 record_full_insn_max_num check (it's always != 0).
8059 (record_full_info, record_full_restore): Use %u as format string.
8060 (): Use %u as format string.
8061 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8062 check (it's always != 0).
8063
dfd1f9bb
PA
80642013-03-26 Pedro Alves <palves@redhat.com>
8065
8066 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8067 and "set dcache size" commands zuinteger instead of uinteger.
8068
addb4faf
PA
80692013-03-26 Pedro Alves <palves@redhat.com>
8070
8071 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8072 command zuinteger instead of uinteger.
8073
b75bf488
PA
80742013-03-26 Pedro Alves <palves@redhat.com>
8075
8076 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8077 zuinteger instead of uinteger.
8078
42c634cb
PA
80792013-03-26 Pedro Alves <palves@redhat.com>
8080
8081 * record.c (record_insn_history_size_setshow_var)
8082 (record_call_history_size_setshow_var): New globals.
8083 (command_size_to_target_size): New function.
8084 (cmd_record_insn_history, cmd_record_call_history): Use
8085 command_size_to_target_size instead of cast.
8086 (validate_history_size, set_record_insn_history_size)
8087 (set_record_call_history_size): New functions.
8088 (_initialize_record): Install set_record_insn_history_size and
8089 set_record_call_history_size as "set" hooks of "set record
8090 instruction-history-size" and "set record
8091 function-call-history-size".
8092
1fb2e2b5
PA
80932013-03-26 Pedro Alves <palves@redhat.com>
8094
8095 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8096 use with history_max_entries use. Remove FIXME note.
8097
99c819ee
MM
80982013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8099
8100 * record-btrace.c (record_btrace_close): Call
8101 record_btrace_auto_disable.
8102
9f9e404c
JB
81032013-03-25 Joel Brobecker <brobecker@adacore.com>
8104
8105 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8106
ebcdfe33
DE
81072013-03-25 Doug Evans <dje@google.com>
8108
8109 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8110
24955f63
TT
81112013-03-25 Tom Tromey <tromey@redhat.com>
8112
8113 PR symtab/11462:
8114 * c-exp.y (exp): Add new productions for destructors after '.' and
8115 '->'.
8116 (write_destructor_name): New function.
8117
fce632b6
TT
81182013-03-25 Tom Tromey <tromey@redhat.com>
8119
8120 PR c++/9197:
8121 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8122 value_struct_elt, not lookup_struct_elt_type.
8123 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8124 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8125 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8126
a4341769
YQ
81272013-03-25 Yao Qi <yao@codesourcery.com>
8128
8129 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8130 instead of '_mkdir'.
8131
b5981e5a
EZ
81322013-03-23 Eli Zaretskii <eliz@gnu.org>
8133
8134 * windows-nat.c (windows_get_absolute_argv0): New function.
8135 * windows-nat.h: Add its prototype.
8136
8137 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8138 Use IS_DIR_SEPARATOR instead of looking for a character inside
8139 SLASH_STRING. Include filenames.h.
8140 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8141 relocate_gdb_directory works when passed gdb_program_name.
8142 Include windows-nat.h.
8143
598d3636
JK
81442013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8145
8146 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8147 * remote.c (trace_error): Remove the special handling of '2'.
8148 (readchar) <SERIAL_EOF>
8149 (readchar) <SERIAL_ERROR>
8150 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8151 (remote_get_trace_status): Call throw_exception if EX is
8152 TARGET_CLOSE_ERROR.
8153 * utils.c (perror_with_name): Rename to ...
8154 (throw_perror_with_name): ... here. New parameter errcode, describe it
8155 in the function comment.
8156 (perror_with_name): New function wrapper.
8157 * utils.h (enum errors): New stub declaration.
8158 (throw_perror_with_name): New declaration.
8159
82b821e9
PA
81602013-03-22 Pedro Alves <palves@redhat.com>
8161 Yao Qi <yao@codesourcery.com>
8162 Mark Kettenis <kettenis@gnu.org>
8163
8164 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8165 Don't let the user set the value to UINT_MAX directly.
8166 <var_integer>: Don't let the user set the value to INT_MAX
8167 directly.
8168
78a095c3
JK
81692013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8170
8171 * remote.c (remote_unpush_target): New function.
8172 (remote_open_1): Remove two pop_target calls, update one comment, add
8173 comment to target_preopen call. Replace pop_target call by
8174 remote_unpush_target call.
8175 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8176 pop_target calls by remote_unpush_target calls.
8177
3e74e146
PA
81782013-03-22 Pedro Alves <palves@redhat.com>
8179
8180 * linux-nat.c (linux_child_follow_fork): Don't call
8181 linux_enable_event_reporting.
8182 (linux_handle_extended_wait): Don't call
8183 linux_enable_event_reporting.
8184
a2213dca
PA
81852013-03-22 Pedro Alves <palves@redhat.com>
8186
8187 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8188 use it to rewrite the trampoline buffers with type gdb_byte[], and
8189 undefine the macro. Remove char* cast.
8190
bd712aed
DE
81912013-03-21 Doug Evans <dje@google.com>
8192
8193 New commands "mt set per-command {space,time,symtab} {on,off}".
8194 * NEWS: Add entry.
8195 * event-top.c: #include "maint.h".
8196 * main.c: #include "maint.h".
8197 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8198 timeval-utils.h, maint.h, cli/cli-setshow.h.
8199 (per_command_time, per_command_space): New static globals.
8200 (per_command_symtab): New static global.
8201 (per_command_setlist, per_command_showlist): New static globals.
8202 (struct cmd_stats): Move here from utils.c.
8203 (set_per_command_time): Renamed from set_display_time in utils.c
8204 and moved here. All callers updated.
8205 (set_per_command_space): Renamed from set_display_space in utils.c
8206 and moved here. All callers updated.
8207 (count_symtabs_and_blocks): New function.
8208 (report_command_stats): Moved here from utils.c. Add support for
8209 printing symtab stats. Only print data if enabled before command
8210 executed.
8211 (make_command_stats_cleanup): Ditto.
8212 (sert_per_command_cmd, show_per_command_cmd): New functions.
8213 (_initialize_maint_cmds): Add new commands
8214 mt set per-command {space,time,symtab} {on,off}.
8215 * maint.h: New file.
8216 * top.c: #include "maint.h".
8217 * utils.c (reset_prompt_for_continue_wait_time): New function.
8218 (get_prompt_for_continue_wait_time): New function.
8219 * utils.h (reset_prompt_for_continue_wait_time): Declare
8220 (get_prompt_for_continue_wait_time): Declare.
8221 (make_command_stats_cleanup): Moved to maint.h.
8222 (set_display_time, set_display_space): Moved to maint.h and renamed
8223 to set_per_command_time, set_per_command_space.
8224 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8225 parse_binary_operation and made non-static. Don't call error,
8226 just return an error marker. All callers updated.
8227 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8228
d76488d8
TT
82292013-03-21 Tom Tromey <tromey@redhat.com>
8230
8231 * symfile.c (alloc_section_addr_info): Update header. Don't set
8232 'num_sections' field.
8233 (build_section_addr_info_from_section_table): Set 'num_sections'.
8234 (build_section_addr_info_from_bfd): Likewise.
8235 (build_section_addr_info_from_objfile): Remove dead loop
8236 condition.
8237 (free_section_addr_info): Unconditionally call xfree.
8238 (relative_addr_info_to_section_offsets, addrs_section_sort)
8239 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8240 condition.
8241 (syms_from_objfile_1): Remove dead 'if' condition. Check
8242 'num_sections'.
8243 (add_symbol_file_command): Set 'num_sections'.
8244 * symfile-mem.c (symbol_file_add_from_memory): Set
8245 'num_sections'.
8246 * somread.c (som_symfile_offsets): Remove dead loop condition.
8247 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8248 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8249
a72e5169 82502013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8251
8252 * tracepoint.h (decode_agent_options): Add 'trace_string'
8253 argument.
8254 * tracepoint.c (decode_agent_options): Add 'trace_string'
8255 argument.
8256 (validate_actionline): Update.
8257 (collect_symbol): Add 'trace_string' argument.
8258 (struct add_local_symbols_data) <trace_string>: New field.
8259 (do_collect_symbol): Update.
8260 (add_local_symbols): Add 'trace_string' argument.
8261 (encode_actions_1): Update.
8262 (trace_dump_actions): Update.
8263 * dwarf2loc.c (access_memory): Update.
8264 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8265 * ax-general.c (new_agent_expr): Update.
8266 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8267 (gen_trace_for_return_address): Add argument.
8268 (trace_kludge, trace_string_kludge): Remove.
8269 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8270 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8271 (gen_trace_for_var): Add 'trace_string' argument.
8272 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8273 (gen_printf, agent_eval_command_one): Update.
8274
b2f83c08
TT
82752013-03-21 Tom Tromey <tromey@redhat.com>
8276
8277 PR exp/15109:
8278 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8279 Handle FILENAME token.
8280
9507860e
TT
82812013-03-21 Tom Tromey <tromey@redhat.com>
8282
8283 * c-exp.y (YYPRINT): Define.
8284 (c_print_token): New function.
8285
e403aa4b
TT
82862013-03-21 Tom Tromey <tromey@redhat.com>
8287
8288 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8289
af307d6a
YQ
82902013-03-21 Yao Qi <yao@codesourcery.com>
8291
8292 * ctf.c: Include "gdb_stat.h".
8293 [USE_WIN32API]: New macro 'mkdir'.
8294 (ctf_start): Use permission bits macros if they are defined.
8295
fb81d016
KS
82962013-03-20 Keith Seitz <keiths@redhat.com>
8297
8298 * breakpoint.h (struct breakpoint): Add comment to
8299 extra_string indicating that this member is mallod'd.
8300 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8301
ef0026f0
PA
83022013-03-20 Pedro Alves <palves@redhat.com>
8303
8304 PR gdb/15289
8305
8306 * cli/cli-setshow.c (do_set_command)
8307 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8308 the result of parsing the command argument. Throw error if the
8309 value is greater than UINT_MAX. Print the invalid value with
8310 plongest.
8311 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8312 result of parsing the command argument. Throw error if the value
8313 is greater than INT_MAX, not greater or equal. Also throw error
8314 if the value is less than INT_MIN. Print the invalid value with
8315 plongest.
8316 <var_zuinteger_unlimited>: Throw error if the value is greater
8317 than INT_MAX, not greater or equal.
8318 (do_show_command) <var_integer, var_zinteger,
8319 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8320
24d6c2a0
TT
83212013-03-20 Tom Tromey <tromey@redhat.com>
8322
8323 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8324 if possible.
8325 * dwarf2read.c (read_func_scope): Remove old FIXME.
8326 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8327 not LOC_COMPUTED.
8328 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8329 Unconditionally call via computed ops, if possible.
8330 * printcmd.c (address_info): Unconditionally call via computed ops,
8331 if possible.
8332 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8333 if possible.
8334 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8335 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8336 if possible.
8337
f1e6e072
TT
83382013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8339 Tom Tromey <tromey@redhat.com>
8340
8341 PR symtab/8421:
8342 * coffread.c (coff_register_index): New global.
8343 (process_coff_symbol, coff_read_enum_type): Set
8344 SYMBOL_ACLASS_INDEX.
8345 (_initialize_coffread): Initialize new global.
8346 * dwarf2loc.c (locexpr_find_frame_base_location)
8347 (dwarf2_block_frame_base_locexpr_funcs)
8348 (loclist_find_frame_base_location)
8349 (dwarf2_block_frame_base_loclist_funcs): New.
8350 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8351 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8352 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8353 (dwarf2_block_frame_base_loclist_funcs): New.
8354 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8355 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8356 globals.
8357 (read_func_scope): Update.
8358 (fixup_go_packaging, mark_common_block_symbol_computed)
8359 (var_decode_location, new_symbol_full, dwarf2_const_value):
8360 Set SYMBOL_ACLASS_INDEX.
8361 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8362 (_initialize_dwarf2_read): Initialize new globals.
8363 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8364 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8365 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8366 globals.
8367 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8368 (_initialize_mdebugread): Initialize new globals.
8369 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8370 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8371 (stab_register_index, stab_regparm_index): New globals.
8372 (define_symbol, read_enum_type, common_block_end): Set
8373 SYMBOL_ACLASS_INDEX.
8374 (_initialize_stabsread): Initialize new globals.
8375 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8376 globals.
8377 (MAX_SYMBOL_IMPLS): New define.
8378 (register_symbol_computed_impl, register_symbol_block_impl)
8379 (register_symbol_register_impl)
8380 (initialize_ordinary_address_classes): New functions.
8381 (_initialize_symtab): Call initialize_ordinary_address_classes.
8382 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8383 (struct symbol_impl): New.
8384 (SYMBOL_ACLASS_BITS): New define.
8385 (struct symbol) <aclass, ops>: Remove fields.
8386 <aclass_index>: New field.
8387 (symbol_impls): Declare.
8388 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8389 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8390 (register_symbol_computed_impl, register_symbol_block_impl)
8391 (register_symbol_register_impl): Declare.
8392 (struct symbol_computed_ops): Add location_has_loclist.
8393 (struct symbol_block_ops): New.
8394 (SYMBOL_BLOCK_OPS): New.
8395 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8396
dbccfd4c
TT
83972013-03-20 Tom Tromey <tromey@redhat.com>
8398
8399 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8400 (print_partial_symbols, recursively_search_psymtabs): Use
8401 PSYMBOL_CLASS.
8402
e3f1ad4f
PM
84032013-03-20 Pierre Muller <muller@sourceware.org>
8404
8405 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8406 addtion, subtraction, multiplication and division binary operator.
8407
460014f5
JK
84082013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 Code cleanup.
8411 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8412 * bsd-kvm.c (bsd_kvm_close): Likewise.
8413 * bsd-uthread.c (bsd_uthread_close): Likewise.
8414 * corelow.c (core_close): Likewise.
8415 (core_close_cleanup): Remove parameter quitting from a caller.
8416 * event-top.c (async_disconnect): Likewise.
8417 * exec.c (exec_close_1): Remove parameter quitting.
8418 * go32-nat.c (go32_close): Likewise.
8419 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8420 parameter quitting from a caller.
8421 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8422 variable.
8423 (mips_linux_close): Remove parameter quitting. Remove parameter
8424 quitting from a caller.
8425 * monitor.c (monitor_close): Remove parameter quitting.
8426 * monitor.h (monitor_close): Likewise.
8427 * record-btrace.c (record_btrace_close): Likewise.
8428 * record-full.c (record_full_close): Likewise.
8429 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8430 it also from fprintf_unfiltered.
8431 * remote-mips.c (mips_close): Remove parameter quitting.
8432 (mips_detach): Remove parameter quitting from a caller.
8433 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8434 (gdbsim_close): Remove duplicate function comment. Remove parameter
8435 quitting and remove it also from printf_filtered.
8436 * remote.c (remote_close): Remove parameter quitting.
8437 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8438 * target.c (update_current_target): Remove parameter int from to_close
8439 de_fault.
8440 (push_target, unpush_target, pop_target): Remove parameter quitting from
8441 a caller.
8442 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8443 Remove parameter quitting from a caller.
8444 (target_preopen): Remove parameter quitting from a caller.
8445 (target_close): Remove parameter quitting. Remove parameter quitting
8446 from a caller two times. Remove parameter quitting also from
8447 fprintf_unfiltered.
8448 * target.h (struct target_ops): Remove parameter quitting and as int
8449 from fields to_xclose and to_close.
8450 (extern struct target_ops current_target):
8451 (target_close, pop_all_targets): Remove parameter quitting. Update the
8452 comment.
8453 (pop_all_targets_above): Remove parameter quitting.
8454 * top.c (quit_target): Remove parameter quitting from a caller.
8455 * tracepoint.c (tfile_close): Remove parameter quitting.
8456 * windows-nat.c (windows_close): Remove parameter quitting.
8457
35a7120b
CV
84582013-03-20 Corinna Vinschen <vinschen@redhat.com>
8459
8460 * windows-nat.c (handle_output_debug_string): Replace call
8461 to string_to_core_addr with call to strtoull.
8462
8249a5a9
YQ
84632013-03-20 Yao Qi <yao@codesourcery.com>
8464
8465 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8466 and write it to CTF metadata.
8467
2c15ef43
CV
84682013-03-19 Corinna Vinschen <vinschen@redhat.com>
8469
8470 * windows-nat.c (handle_output_debug_string): Change type of n to
8471 SIZE_T to avoid crash on 64 bit systems.
8472
1cdd3232
EZ
84732013-03-17 Eli Zaretskii <eliz@gnu.org>
8474
8475 * python/python-internal.h (HAVE_SNPRINTF)
8476 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8477 about redefinition of snprintf by pyerrors.h.
8478
3cb2ab1a
SE
84792013-03-15 Steve Ellcey <sellcey@mips.com>
8480
8481 * remote-sim.c (sim_command_completer): Make char arguments const.
8482
9ce98649
TT
84832013-03-15 Tom Tromey <tromey@redhat.com>
8484
8485 PR c++/15116:
8486 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8487
dccee2de
TT
84882013-03-14 Tom Tromey <tromey@redhat.com>
8489
8490 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8491 New fields.
8492 (get_file_crc): Move from symfile.c.
8493 (gdb_bfd_crc): New function.
8494 * gdb_bfd.h (gdb_bfd_crc): Declare.
8495 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8496 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8497 (separate_debug_file_exists): Use gdb_bfd_crc.
8498
cc0ea93c
TT
84992013-03-14 Tom Tromey <tromey@redhat.com>
8500
8501 * symfile.c (get_debug_link_info): Remove.
8502 (find_separate_debug_file_by_debuglink): Use
8503 bfd_get_debug_link_info.
8504
08c23b0d
TT
85052013-03-14 Tom Tromey <tromey@redhat.com>
8506
8507 * symtab.c (error_in_psymtab_expansion): New function.
8508 (lookup_symbol_aux_quick)
8509 (basic_lookup_transparent_type_quick): Remove "last resort"
8510 code. Use error_in_psymtab_expansion.
8511
288e77a7
JK
85122013-03-14 Doug Evans <dje@google.com>
8513 Jan Kratochvil <jan.kratochvil@redhat.com>
8514
8515 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8516 any successful compare_filenames_for_search or FILENAME_CMP.
8517 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8518 * symtab.c (iterate_over_some_symtabs): Likewise.
8519
8f1b8b82
JK
85202013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 * source.c (print_source_lines_base): Make a local copy of
8523 symtab_to_fullname.
8524
23eb71e4
JK
85252013-03-14 Hui Zhu <hui_zhu@mentor.com>
8526 Jan Kratochvil <jan.kratochvil@redhat.com>
8527
8528 * source.c (print_source_lines_base): Suppress "file" for TUI.
8529
bb869963
SDJ
85302013-03-14 Keith Seitz <keiths@redhat.com>
8531 Alan Matsuoka <alanm@redhat.com>
8532
8533 PR c++/15203
8534 PR c++/15210
8535 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8536 TYPE_CODE_METHOD.
8537 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8538 symbols.
8539
d6682f9e
YQ
85402013-03-14 Yao Qi <yao@codesourcery.com>
8541
8542 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8543 status to tfile if trace is stopped by command 'tstop'.
8544
a22fa6e4
YQ
85452013-03-14 Yao Qi <yao@codesourcery.com>
8546
8547 * tracepoint.c (tfile_write_status): Write trace notes and user
8548 name into tfile if they are not NULL.
8549
d0353e76
YQ
85502013-03-14 Hui Zhu <hui@codesourcery.com>
8551 Yao Qi <yao@codesourcery.com>
8552
8553 * Makefile.in (REMOTE_OBS): Add ctf.o.
8554 (SFILES): Add ctf.c.
8555 (HFILES_NO_SRCDIR): Add ctf.h.
8556 * ctf.c, ctf.h: New files.
8557 * tracepoint.c: Include 'ctf.h'.
8558 (collect_pseudocommand): Remove static.
8559 (trace_save_command): Parse option "-ctf".
8560 Produce different trace file writers per option.
8561 Adjust output message.
8562 (trace_save_tfile, trace_save_ctf): New.
8563 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8564 * mi/mi-main.c: Include 'ctf.h'.
8565 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8566 trace_save_tfile or trace_save_ctf.
8567 * NEWS: Mention these changes.
8568
3f43bc09
YQ
85692013-03-14 Yao Qi <yao@codesourcery.com>
8570
8571 * tracepoint.c (trace_file_writer_xfree): New.
8572 (struct tfile_writer_data): New.
8573 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8574 (tfile_write_header, tfile_write_regblock_type): New.
8575 (tfile_write_status, tfile_write_uploaded_tsv): New.
8576 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8577 (tfile_write_raw_data, (tfile_end): New.
8578 (tfile_write_ops): New global variable.
8579 (TRACE_WRITE_R_BLOCK): New macro.
8580 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8581 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8582 (TRACE_WRITE_V_BLOCK): New macro.
8583 (trace_save): Add extra one parameter WRITER. Make it static.
8584 Use WRITER to writer trace.
8585 (tfile_trace_file_writer_new): New.
8586 (trace_save_command): Caller update.
8587 (trace_save_tfile): Write trace data in TFILE format.
8588 * tracepoint.h (struct trace_frame_write_ops): New.
8589 (struct trace_file_write_ops): New.
8590 (struct trace_file_writer): New.
8591 (trace_save): Remove its declaration.
8592 (trace_save_tfile): Declare it.
8593 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8594 instead of trace_save.
8595
58665b40
PA
85962013-03-13 Pedro Alves <palves@redhat.com>
8597
8598 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8599
10217050
PA
86002013-03-13 Pedro Alves <palves@redhat.com>
8601
8602 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8603 commented out code.
8604 * demangle.c (current_demangling_style_string): Make it const.
8605 (set_demangling_command): Assert the demangling style is known.
8606 Remove all handling of unknown styles. Set
8607 'current_demangling_style_string' to an element of the
8608 demangling_style_names array.
8609 (set_demangling_style): Delete.
8610 (_initialize_demangler): Set current_demangling_style_string to the
8611 element of the demangling_style_names array that corresponds to
8612 the default demangling style. Remove FIXME note. Don't call
8613 set_demangling_style.
8614 * gdb-demangle.h (set_demangling_style): Remove declaration.
8615
6f937416
PA
86162013-03-13 Pedro Alves <palves@redhat.com>
8617
8618 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8619 fields const.
8620 (ada_make_symbol_completion_list): Make "text0" parameter const.
8621 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8622 * breakpoint.c (condition_completer): Make "text" and "word"
8623 parameters const. Adjust.
8624 (check_tracepoint_command): Adjust to validate_actionline
8625 prototype change.
8626 (catch_syscall_completer): Make "text" and "word" parameters
8627 const.
8628 * cli/cli-cmds.c (show_user): Make "comname" local const.
8629 (valid_command_p): Make "command" parameter const.
8630 (alias_command): Make "alias_prefix" and "command_prefix" locals
8631 const.
8632 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8633 (add_alias_cmd): Make "name" and "oldname" parameters const.
8634 Adjust. No longer make copy of OLDNAME.
8635 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8636 (add_setshow_cmd_full, add_setshow_enum_cmd)
8637 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8638 (add_setshow_filename_cmd, add_setshow_string_cmd)
8639 (add_setshow_string_noescape_cmd)
8640 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8641 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8642 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8643 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8644 Make "name" parameter const.
8645 (help_cmd): Rename "command" parameter to "arg". New const local
8646 "command".
8647 (find_cmd): Make "command" parameter const.
8648 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8649 deprecated_cmd_warning prototype change.
8650 (undef_cmd_error): Make "cmdtype" parameter const.
8651 (lookup_cmd): Make "line" parameter const.
8652 (deprecated_cmd_warning): Change type of "text" parameter to
8653 pointer to const char, from pointer to pointer to char. Adjust.
8654 (lookup_cmd_composition): Make "text" parameter const.
8655 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8656 parameters const.
8657 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8658 const.
8659 * cli/cli-script.c (validate_comname): Make "tem" local const.
8660 (define_command): New const local "tem_c". Use it in calls to
8661 lookup_cmd.
8662 (document_command): Make "tem" and "comfull" locals const.
8663 (show_user_1): Make "prefix" and "name" parameters const.
8664 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8665 const.
8666 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8667 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8668 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8669 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8670 (complete_on_enum, add_setshow_enum_cmd)
8671 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8672 (add_setshow_filename_cmd, add_setshow_string_cmd)
8673 (add_setshow_string_noescape_cmd)
8674 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8675 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8676 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8677 Change prototypes, constifying strings.
8678 * completer.c (noop_completer, filename_completer): Make "text"
8679 and "prefix" parameters const.
8680 (location_completer, expression_completer)
8681 (complete_line_internal): Make "text" and "prefix" parameters
8682 const and adjust.
8683 (command_completer, signal_completer): Make "text" and "prefix"
8684 parameters const.
8685 * completer.h (noop_completer, filename_completer)
8686 (expression_completer, location_completer, command_completer)
8687 (signal_completer): Change prototypes.
8688 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8689 parameters const.
8690 * cp-abi.c (cp_abi_completer): Likewise.
8691 * expression.h (parse_expression_for_completion): Change
8692 prototype.
8693 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8694 parameters const.
8695 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8696 * infrun.c (handle_completer): Make "text" and "word" parameters
8697 const.
8698 * interps.c (interpreter_completer): Make "text" and "word"
8699 parameters const.
8700 * language.h (struct language_defn)
8701 <la_make_symbol_completion_list>: Make "text" and "word"
8702 parameters const.
8703 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8704 (parse_exp_in_context): Rename to ...
8705 (parse_exp_in_context_1): ... this.
8706 (parse_exp_in_context): Reimplement, with const hack from
8707 parse_exp_1.
8708 (parse_expression_for_completion): Make "string" parameter const.
8709 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8710 to pointer to const char. Adjust.
8711 (print_command_1): Make "exp" parameter const.
8712 (output_command): Rename to ...
8713 (output_command_const): ... this. Make "exp" parameter const.
8714 (output_command): Reimplement.
8715 (x_command): Adjust.
8716 (display_command): Rename "exp" parameter to "arg". New "exp"
8717 local, const version of "arg".
8718 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8719 "cmd_name" local const.
8720 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8721 call.
8722 (cmdpy_completer): Make "text" and "word" parameters const.
8723 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8724 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8725 const.
8726 * remote.c (_initialize_remote): Make "cmd_name" local const.
8727 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8728 parameters const. Adjust.
8729 (completion_list_add_fields): Make "sym_text", "text" and "word"
8730 parameters const.
8731 (struct add_name_data) <sym_text, text, word>: Make fields const.
8732 (default_make_symbol_completion_list_break_on): Make "text" and
8733 "word" parameters const. Adjust locals.
8734 (default_make_symbol_completion_list)
8735 (make_symbol_completion_list, make_symbol_completion_type)
8736 (make_symbol_completion_list_fn): Make "text" and "word"
8737 parameters const.
8738 (make_file_symbol_completion_list): Make "text", "word" and
8739 "srcfile" parameters const. Adjust locals.
8740 (add_filename_to_list): Make "text" and "word" parameters const.
8741 (struct add_partial_filename_data) <text, word>: Make fields
8742 const.
8743 (make_source_files_completion_list): Make "text" and "word"
8744 parameters const.
8745 * symtab.h (default_make_symbol_completion_list_break_on)
8746 (default_make_symbol_completion_list, make_symbol_completion_list)
8747 (make_symbol_completion_type enum type_code)
8748 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8749 (make_source_files_completion_list): Change prototype.
8750 * top.c (execute_command): Adjust to pass pointer to pointer to
8751 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8752 change.
8753 (set_verbose): Make "cmdname" local const.
8754 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8755 and adjust.
8756 (validate_actionline): Make "line" parameter a pointer to const
8757 char, and adjust.
8758 (encode_actions_1): Make "action_exp" local const, and adjust.
8759 (encode_actions): Adjust.
8760 (replace_comma): Delete.
8761 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8762 const, and adjust. Don't frob the action string while splitting
8763 it at commas. Instead, make a copy of each split substring in
8764 turn.
8765 (trace_dump_command): Adjust to validate_actionline prototype
8766 change.
8767 * tracepoint.h (decode_agent_options, decode_agent_options)
8768 (encode_actions, validate_actionline): Change prototypes.
8769 * valprint.h (output_command): Delete declaration.
8770 (output_command_const): Declare.
8771 * value.c (function_destroyer): Cast const away in xfree call.
8772
a0bcdaa7
PA
87732013-03-13 Pedro Alves <palves@redhat.com>
8774
8775 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8776 rather than casting 'const char * const *' to 'const char **'.
8777 * ada-lex.l (processInt): Make "trailer" local const. Remove
8778 'const char **' cast.
8779 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8780 locals, and use those as strtol output pointer, instead than doing
8781 invalid casts to from 'const char **' to 'char **'.
8782 (_initialize_demangle): Remove cast.
8783 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8784 locals, and use those as strtol output pointer, instead than doing
8785 invalid casts to from 'const char **' to 'char **'.
8786 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8787 casts.
8788 * stap-probe.c (stap_parse_register_operand)
8789 (stap_parse_single_operand): Likewise.
8790
8ddb1965
YQ
87912013-03-13 Yao Qi <yao@codesourcery.com>
8792
8793 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8794 the last matched 'V' blcok in trace frame.
8795
2d450646
JB
87962013-03-12 Joel Brobecker <brobecker@adacore.com>
8797
8798 * NEWS: Create a new section for the next release branch.
8799 Rename the section of the current branch, now that it has
8800 been cut.
8801
b4b79973 88022013-03-12 Joel Brobecker <brobecker@adacore.com>
8803
8804 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8805 * version.in: Bump version to 7.6.50.20130312-cvs.
8806
ee047554
KS
88072013-03-12 Keith Seitz <keiths@redhat.com>
8808
8809 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8810 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8811 Remove temporary copy of input string.
8812 (mi_execute_command_wrapper): Make "cmd" const.
8813 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8814 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8815 Use const strings.
8816 (mi_parse): Make "cmd" const.
8817 Use const strings.
8818 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8819
bbc13ae3
KS
88202013-03-12 Keith Seitz <keiths@redhat.com>
8821
8822 * ada-lang.c (ada_read_renaming_var_value): Pass const
8823 pointer to expression string to parse_exp_1.
8824 (create_excep_cond_exprs): Likewise.
8825 * ax-gdb.c (agent_eval_command_one): Likewise.
8826 (maint_agent_printf_command): Likewise.
8827 Constify much of the string handling/parsing.
8828 * breakpoint.c (set_breakpoint_condition): Pass const
8829 pointer to expression string to parse_exp_1.
8830 (update_watchpoint): Likewise.
8831 (parse_cmd_to_aexpr): Constify string handling.
8832 Pass const pointer to parse_exp_1.
8833 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8834 (find_condition_and_thread): Likewise.
8835 Make TOK const.
8836 (watch_command_1): Make "arg" const.
8837 Constify string handling.
8838 Copy the expression string instead of changing the input
8839 string.
8840 (update_breakpoint_location): Pass const pointer to
8841 parse_exp_1.
8842 * eval.c (parse_and_eval_address): Make "exp" const.
8843 (parse_to_comma_and_eval): Make "expp" const.
8844 (parse_and_eval): Make "exp" const.
8845 * expression.h (parse_expression): Make argument const.
8846 (parse_exp_1): Make first argument const.
8847 * findcmd.c (parse_find_args): Treat "args" as const.
8848 * linespec.c (parse_linespec): Pass const pointer to
8849 linespec_expression_to_pc.
8850 (linespec_expression_to_pc): Make "exp_ptr" const.
8851 * parse.c (parse_exp_1): Make "stringptr" const.
8852 Make a copy of the expression to pass to parse_exp_in_context until
8853 this whole interface can be constified.
8854 (parse_expression): Make "string" const.
8855 * printcmd.c (ui_printf): Treat "arg" as const.
8856 Handle const strings.
8857 * tracepoint.c (validate_actionline): Pass const pointer to
8858 all calls to parse_exp_1.
8859 (encode_actions_1): Likewise.
8860 * value.h (parse_to_comma_and_eval): Make argument const.
8861 (parse_and_eval_address): Likewise.
8862 (parse_and_eval): Likewise.
8863 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8864 (varobj_set_value): Likewise.
8865 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8866 constify string handling.
8867 Pass const pointers to parse_and_eval_address and
8868 parse_to_comman_and_eval.
8869 * cli/cli-utils.c (skip_to_space): Rename to ...
8870 (skip_to_space_const): ... this. Handle const strings.
8871 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8872 skip_to_space_const.
8873 (skip_to_space_const): Declare.
8874 * common/format.c (parse_format_string): Make "arg" const.
8875 Handle const strings.
8876 * common/format.h (parse_format_string): Make "arg" const.
8877 * gdbserver/ax.c (ax_printf): Make "format" const.
8878 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8879 of the expression string.
8880
f3cec7e6
HZ
88812013-03-12 Hui Zhu <hui@codesourcery.com>
8882
8883 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8884
9df7235c
HZ
88852013-03-12 Yao Qi <yao@codesourcery.com>
8886 Hui Zhu <hui@codesourcery.com>
8887
8888 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8889 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8890 DW_OP_deref_size.
8891
82d049ab
PH
88922013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8893
5f8e0b8f
MF
8894 * ada-lex.l (rules): Only recognize 'thread' as a
8895 delimiter when followed by numerals, as for c-exp.y.
8896 Use new rewind_to_char function to rewind the input for
8897 expression-delimiting tokens.
8898 (rewind_to_char): New function.
82d049ab 8899
8c1fb155
JK
89002013-03-11 Pedro Alves <palves@redhat.com>
8901 Jan Kratochvil <jan.kratochvil@redhat.com>
8902
8903 * configure: Regenerate.
8904 * configure.ac (check dynamic export flag): Link python test with
8905 $PYTHON_LIBS.
8906
cc81e1c6
DE
89072013-03-11 Doug Evans <dje@google.com>
8908 Keith Seitz <keiths@redhat.com>
8909
8910 * linespec.c (find_linespec_symbols): Call find_function_symbols
8911 first, and then call lookup_prefix_sym/find_method.
8912
39086a0e
PA
89132013-03-11 Pedro Alves <palves@redhat.com>
8914
8915 * charset.c (convert_between_encodings): Don't cast between
8916 different pointer to pointer types. Instead, make the 'inp' local
8917 be of the type iconv expects.
8918 (wchar_iterate): Don't cast between different pointer to pointer
8919 types. Instead, use new pointer local of the type iconv expects.
8920 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8921 Add new local of type char pointer, and use it to get a
8922 char/string view of the byte buffer, instead of casting between
8923 pointer to pointer types.
8924
90585175
HAQ
89252013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8926
8927 * remote.c (remote_set_trace_buffer_size): Move != operator
8928 to the start of next line to fix an ARI warning.
8929
59ea5688
MM
89302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8931
8932 * NEWS: Add record changes.
8933
946287b7
MM
89342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8935
8936 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8937 the instruction history disassembly.
8938 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8939 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8940
afedecd3
MM
89412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8942
8943 * Makefile.in (SFILES): Add record-btrace.c
8944 (COMMON_OBS): Add record-btrace.o
8945 * record-btrace.c: New.
8946 * objfiles.c: Include btrace.h.
8947 (free_objfile): call btrace_free_objfile.
8948
15984c13
MM
89492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8950
8951 * target.c (target_call_history, target_call_history_from,
8952 target_call_history_range): New.
8953 * target.h (target_ops) <to_call_history, to_call_history_from,
8954 to_call_history_range>: New fields.
8955 (target_call_history, target_call_history_from,
8956 target_call_history_range): New declaration.
8957 * record.c (get_call_history_modifiers, cmd_record_call_history,
8958 record_call_history_size): New.
8959 (_initialize_record): Add the "record function-call-history" command.
8960 Add "set/show record function-call-history-size" commands.
8961 * record.h (record_print_flag): New.
8962
67c86d06
MM
89632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8964
8965 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8966 to_insn_history_range>: New fields.
8967 (target_insn_history): New.
8968 (target_insn_history_from): New.
8969 (target_insn_history_range): New.
8970 * target.c (target_insn_history): New.
8971 (target_insn_history_from): New.
8972 (target_insn_history_range): New.
8973 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8974 (record_insn_history_size): New.
8975 (get_insn_number): New.
8976 (get_context_size): New.
8977 (no_chunk): New.
8978 (get_insn_history_modifiers): New.
8979 (cmd_record_insn_history): New.
8980 (_initialize_record): Add "set/show record instruction-history-size"
8981 command. Add "record instruction-history" command.
8982
7c1687a9
MM
89832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8984
8985 * record.h (record_disconnect): New.
8986 (record_detach): New.
8987 (record_mourn_inferior): New.
8988 (record_kill): New.
8989 * record-full.c (record_disconnect, record_detach,
8990 record_mourn_inferior, record_kill): Move to...
8991 * record.c: ...here.
8992 (DEBUG): New.
8993 (record_stop): New.
8994 (record_unpush): New.
8995 (cmd_record_stop): Call record_stop. Replace unpush_target
8996 call with record_unpush call.
8997 (record_disconnect, record_detach): Assert that the target
8998 is of record stratum. Call record_unpush, record_stop, and
8999 DEBUG.
9000 (record_mourn_inferior, record_kill): Assert that the target
9001 is of record stratum. Call record_unpush and DEBUG.
9002
25ea693b
MM
90032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9004
9005 * record-full.h, record-full.c (record_memory_query): Rename
9006 to ...
9007 (record_full_memory_query): ...this. Update all users.
9008 (record_arch_list_add_reg): Rename to ...
9009 (record_full_arch_list_add_reg): ...this. Update all users.
9010 (record_arch_list_add_mem): Rename to ...
9011 (record_full_arch_list_add_mem): ...this. Update all users.
9012 (record_arch_list_add_end): Rename to ...
9013 (record_full_arch_list_add_end): ...this. Update all users.
9014 (record_gdb_operation_disable_set): Rename to ...
9015 (record_full_gdb_operation_disable_set): ...this.
9016 Update all users.
9017
88d1aa9d
MM
90182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9019
9020 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9021 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9022 (RECORD_IS_REPLAY): Renamed to ...
9023 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9024 (RECORD_FILE_MAGIC): Renamed to ...
9025 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9026 (record_mem_entry): Renamed to ...
9027 (record_full_mem_entry): ... this. Updated all users.
9028 (record_reg_entry): Renamed to ...
9029 (record_full_reg_entry): ... this. Updated all users.
9030 (record_end_entry): Renamed to ...
9031 (record_full_end_entry): ... this. Updated all users.
9032 (record_type) <record_end, record_reg, record_mem>: Renamed
9033 to ...
9034 (record_full_type) <record_full_end, record_full_reg,
9035 record_full_mem>: ... this. Updated all users.
9036 (record_entry): Renamed to ...
9037 (record_full_entry): ... this. Updated all users.
9038 (record_core_buf_entry): Renamed to ...
9039 (record_full_core_buf_entry): ... this. Updated all users.
9040 (record_core_regbuf): Renamed to ...
9041 (record_full_core_regbuf): ... this. Updated all users.
9042 (record_core_start): Renamed to ...
9043 (record_full_core_start): ... this. Updated all users.
9044 (record_core_end): Renamed to ...
9045 (record_full_core_end): ... this. Updated all users.
9046 (record_core_buf_list): Renamed to ...
9047 (record_full_core_buf_list): ... this. Updated all users.
9048 (record_first): Renamed to ...
9049 (record_full_first): ... this. Updated all users.
9050 (record_list): Renamed to ...
9051 (record_full_list): ... this. Updated all users.
9052 (record_arch_list_head): Renamed to ...
9053 (record_full_arch_list_head): ... this. Updated all users.
9054 (record_arch_list_tail): Renamed to ...
9055 (record_full_arch_list_tail): ... this. Updated all users.
9056 (record_stop_at_limit): Renamed to ...
9057 (record_full_stop_at_limit): ... this. Updated all users.
9058 (record_insn_max_num): Renamed to ...
9059 (record_full_insn_max_num): ... this. Updated all users.
9060 (record_insn_num): Renamed to ...
9061 (record_full_insn_num): ... this. Updated all users.
9062 (record_insn_count): Renamed to ...
9063 (record_full_insn_count): ... this. Updated all users.
9064 (record_ops): Renamed to ...
9065 (record_full_ops): ... this. Updated all users.
9066 (record_core_ops): Renamed to ...
9067 (record_full_core_ops): ... this. Updated all users.
9068 (set_record_cmdlist): Renamed to ...
9069 (set_record_full_cmdlist): ... this. Updated all users.
9070 (show_record_cmdlist): Renamed to ...
9071 (show_record_full_cmdlist): ... this. Updated all users.
9072 (record_cmdlist): Renamed to ...
9073 (record_full_cmdlist): ... this. Updated all users.
9074 (record_beneath_to_resume_ops): Renamed to ...
9075 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9076 (record_beneath_to_resume): Renamed to ...
9077 (record_full_beneath_to_resume): ... this. Updated all users.
9078 (record_beneath_to_wait_ops): Renamed to ...
9079 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9080 (record_beneath_to_wait): Renamed to ...
9081 (record_full_beneath_to_wait): ... this. Updated all users.
9082 (record_beneath_to_store_registers_ops): Renamed to ...
9083 (record_full_beneath_to_store_registers_ops): ... this.
9084 Updated all users.
9085 (record_beneath_to_store_registers): Renamed to ...
9086 (record_full_beneath_to_store_registers): ... this.
9087 Updated all users.
9088 (record_beneath_to_xfer_partial_ops): Renamed to ...
9089 (record_full_beneath_to_xfer_partial_ops): ... this.
9090 Updated all users.
9091 (record_beneath_to_xfer_partial): Renamed to ...
9092 (record_full_beneath_to_xfer_partial): ... this.
9093 Updated all users.
9094 (record_beneath_to_insert_breakpoint): Renamed to ...
9095 (record_full_beneath_to_insert_breakpoint): ... this.
9096 Updated all users.
9097 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9098 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9099 Updated all users.
9100 (record_beneath_to_stopped_data_address): Renamed to ...
9101 (record_full_beneath_to_stopped_data_address): ... this.
9102 Updated all users.
9103 (record_beneath_to_async): Renamed to ...
9104 (record_full_beneath_to_async): ... this. Updated all users.
9105 (record_goto_insn): Renamed to ...
9106 (record_full_goto_insn): ... this. Updated all users.
9107 (record_save): Renamed to ...
9108 (record_full_save): ... this. Updated all users.
9109 (record_reg_alloc): Renamed to ...
9110 (record_full_reg_alloc): ... this. Updated all users.
9111 (record_reg_release): Renamed to ...
9112 (record_full_reg_release): ... this. Updated all users.
9113 (record_mem_alloc): Renamed to ...
9114 (record_full_mem_alloc): ... this. Updated all users.
9115 (record_mem_release): Renamed to ...
9116 (record_full_mem_release): ... this. Updated all users.
9117 (record_end_alloc): Renamed to ...
9118 (record_full_end_alloc): ... this. Updated all users.
9119 (record_end_release): Renamed to ...
9120 (record_full_end_release): ... this. Updated all users.
9121 (record_entry_release): Renamed to ...
9122 (record_full_entry_release): ... this. Updated all users.
9123 (record_list_release): Renamed to ...
9124 (record_full_list_release): ... this. Updated all users.
9125 (record_list_release_following): Renamed to ...
9126 (record_full_list_release_following): ... this.
9127 Updated all users.
9128 (record_list_release_first): Renamed to ...
9129 (record_full_list_release_first): ... this. Updated all users.
9130 (record_arch_list_add): Renamed to ...
9131 (record_full_arch_list_add): ... this. Updated all users.
9132 (record_get_loc): Renamed to ...
9133 (record_full_get_loc): ... this. Updated all users.
9134 (record_check_insn_num): Renamed to ...
9135 (record_full_check_insn_num): ... this. Updated all users.
9136 (record_arch_list_cleanups): Renamed to ...
9137 (record_full_arch_list_cleanups): ... this. Updated all users.
9138 (record_message): Renamed to ...
9139 (record_full_message): ... this. Updated all users.
9140 (record_message_wrapper): Renamed to ...
9141 (record_full_message_wrapper): ... this. Updated all users.
9142 (record_message_wrapper_safe): Renamed to ...
9143 (record_full_message_wrapper_safe): ... this. Updated all users.
9144 (record_gdb_operation_disable): Renamed to ...
9145 (record_full_gdb_operation_disable): ... this. Updated all users.
9146 (record_hw_watchpoint): Renamed to ...
9147 (record_full_hw_watchpoint): ... this. Updated all users.
9148 (record_exec_insn): Renamed to ...
9149 (record_full_exec_insn): ... this. Updated all users.
9150 (record_restore): Renamed to ...
9151 (record_full_restore): ... this. Updated all users.
9152 (record_async_inferior_event_token): Renamed to ...
9153 (record_full_async_inferior_event_token): ... this.
9154 Updated all users.
9155 (record_async_inferior_event_handler): Renamed to ...
9156 (record_full_async_inferior_event_handler): ... this.
9157 Updated all users.
9158 (record_core_open_1): Renamed to ...
9159 (record_full_core_open_1): ... this. Updated all users.
9160 (record_open_1): Renamed to ...
9161 (record_full_open_1): ... this. Updated all users.
9162 (record_open): Renamed to ...
9163 (record_full_open): ... this. Updated all users.
9164 (record_close): Renamed to ...
9165 (record_full_close): ... this. Updated all users.
9166 (record_resume_step): Renamed to ...
9167 (record_full_resume_step): ... this. Updated all users.
9168 (record_resumed): Renamed to ...
9169 (record_full_resumed): ... this. Updated all users.
9170 (record_execution_dir): Renamed to ...
9171 (record_full_execution_dir): ... this. Updated all users.
9172 (record_resume): Renamed to ...
9173 (record_full_resume): ... this. Updated all users.
9174 (record_get_sig): Renamed to ...
9175 (record_full_get_sig): ... this. Updated all users.
9176 (record_sig_handler): Renamed to ...
9177 (record_full_sig_handler): ... this. Updated all users.
9178 (record_wait_cleanups): Renamed to ...
9179 (record_full_wait_cleanups): ... this. Updated all users.
9180 (record_wait_1): Renamed to ...
9181 (record_full_wait_1): ... this. Updated all users.
9182 (record_wait): Renamed to ...
9183 (record_full_wait): ... this. Updated all users.
9184 (record_stopped_by_watchpoint): Renamed to ...
9185 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9186 (record_disconnect): Renamed to ...
9187 (record_full_disconnect): ... this. Updated all users.
9188 (record_detach): Renamed to ...
9189 (record_full_detach): ... this. Updated all users.
9190 (record_mourn_inferior): Renamed to ...
9191 (record_full_mourn_inferior): ... this. Updated all users.
9192 (record_kill): Renamed to ...
9193 (record_full_kill): ... this. Updated all users.
9194 (record_stopped_data_address): Renamed to ...
9195 (record_full_stopped_data_address): ... this. Updated all users.
9196 (record_registers_change): Renamed to ...
9197 (record_full_registers_change): ... this. Updated all users.
9198 (record_store_registers): Renamed to ...
9199 (record_full_store_registers): ... this. Updated all users.
9200 (record_xfer_partial): Renamed to ...
9201 (record_full_xfer_partial): ... this. Updated all users.
9202 (record_breakpoint): Renamed to ...
9203 (record_full_breakpoint): ... this. Updated all users.
9204 (record_breakpoint_p): Renamed to ...
9205 (record_full_breakpoint_p): ... this. Updated all users.
9206 (record_breakpoints): Renamed to ...
9207 (record_full_breakpoints): ... this. Updated all users.
9208 (record_sync_record_breakpoints): Renamed to ...
9209 (record_full_sync_record_breakpoints): ... this.
9210 Updated all users.
9211 (record_init_record_breakpoints): Renamed to ...
9212 (record_full_init_record_breakpoints): ... this.
9213 Updated all users.
9214 (record_insert_breakpoint): Renamed to ...
9215 (record_full_insert_breakpoint): ... this. Updated all users.
9216 (record_remove_breakpoint): Renamed to ...
9217 (record_full_remove_breakpoint): ... this. Updated all users.
9218 (record_can_execute_reverse): Renamed to ...
9219 (record_full_can_execute_reverse): ... this. Updated all users.
9220 (record_get_bookmark): Renamed to ...
9221 (record_full_get_bookmark): ... this. Updated all users.
9222 (record_goto_bookmark): Renamed to ...
9223 (record_full_goto_bookmark): ... this. Updated all users.
9224 (record_async): Renamed to ...
9225 (record_full_async): ... this. Updated all users.
9226 (record_can_async_p): Renamed to ...
9227 (record_full_can_async_p): ... this. Updated all users.
9228 (record_is_async_p): Renamed to ...
9229 (record_full_is_async_p): ... this. Updated all users.
9230 (record_execution_direction): Renamed to ...
9231 (record_full_execution_direction): ... this. Updated all users.
9232 (record_info): Renamed to ...
9233 (record_full_info): ... this. Updated all users.
9234 (record_delete): Renamed to ...
9235 (record_full_delete): ... this. Updated all users.
9236 (record_is_replaying): Renamed to ...
9237 (record_full_is_replaying): ... this. Updated all users.
9238 (record_goto_entry): Renamed to ...
9239 (record_full_goto_entry): ... this. Updated all users.
9240 (record_goto_begin): Renamed to ...
9241 (record_full_goto_begin): ... this. Updated all users.
9242 (record_goto_end): Renamed to ...
9243 (record_full_goto_end): ... this. Updated all users.
9244 (record_goto): Renamed to ...
9245 (record_full_goto): ... this. Updated all users.
9246 (init_record_ops): Renamed to ...
9247 (init_record_full_ops): ... this. Updated all users.
9248 (record_core_resume): Renamed to ...
9249 (record_full_core_resume): ... this. Updated all users.
9250 (record_core_kill): Renamed to ...
9251 (record_full_core_kill): ... this. Updated all users.
9252 (record_core_fetch_registers): Renamed to ...
9253 (record_full_core_fetch_registers): ... this. Updated all users.
9254 (record_core_prepare_to_store): Renamed to ...
9255 (record_full_core_prepare_to_store): ... this. Updated all users.
9256 (record_core_store_registers): Renamed to ...
9257 (record_full_core_store_registers): ... this. Updated all users.
9258 (record_core_xfer_partial): Renamed to ...
9259 (record_full_core_xfer_partial): ... this. Updated all users.
9260 (record_core_insert_breakpoint): Renamed to ...
9261 (record_full_core_insert_breakpoint): ... this. Updated all users.
9262 (record_core_remove_breakpoint): Renamed to ...
9263 (record_full_core_remove_breakpoint): ... this. Updated all users.
9264 (record_core_has_execution): Renamed to ...
9265 (record_full_core_has_execution): ... this. Updated all users.
9266 (init_record_core_ops): Renamed to ...
9267 (init_record_full_core_ops): ... this. Updated all users.
9268 (cmd_record_restore): Renamed to ...
9269 (cmd_record_full_restore): ... this. Updated all users.
9270 (record_save_cleanups): Renamed to ...
9271 (record_full_save_cleanups): ... this. Updated all users.
9272 (cmd_record_start): Renamed to ...
9273 (cmd_record_full_start): ... this. Updated all users.
9274 (set_record_insn_max_num): Renamed to ...
9275 (set_record_full_insn_max_num): ... this. Updated all users.
9276 (set_record_command): Renamed to ...
9277 (set_record_full_command): ... this. Updated all users.
9278 (show_record_command): Renamed to ...
9279 (show_record_full_command): ... this. Updated all users.
9280 (_initialize_record): Renamed to ...
9281 (_initialize_record_full): ... this. Updated all users.
9282
d02ed0bb
MM
92832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9284
9285 * record.h: Split into this and ...
9286 * record-full.h: ... this.
9287 * record.c: Split into this and ...
9288 * record-full.c: ... this.
9289 * target.h (target_ops): Add new fields to_info_record,
9290 to_save_record, to_delete_record, to_record_is_replaying,
9291 to_goto_record_begin, to_goto_record_end, to_goto_record.
9292 (target_info_record): New.
9293 (target_save_record): New.
9294 (target_supports_delete_record): New.
9295 (target_delete_record): New.
9296 (target_record_is_replaying): New.
9297 (target_goto_record_begin): New.
9298 (target_goto_record_end): New.
9299 (target_goto_record): New.
9300 * target.c (target_info_record): New.
9301 (target_save_record): New.
9302 (target_supports_delete_record): New.
9303 (target_delete_record): New.
9304 (target_record_is_replaying): New.
9305 (target_goto_record_begin): New.
9306 (target_goto_record_end): New.
9307 (target_goto_record): New.
9308 * record.h: Declare struct cmd_list_element.
9309 (record_cmdlist): New declaration.
9310 (set_record_cmdlist): New declaration.
9311 (show_record_cmdlist): New declaration.
9312 (info_record_cmdlist): New declaration.
9313 (cmd_record_goto): New declaration.
9314 * record.c: Remove unnecessary includes.
9315 Include inferior.h.
9316 (cmd_record_goto): Remove declaration.
9317 (record_cmdlist): Now extern. Initialize.
9318 (set_record_cmdlist): Now extern. Initialize.
9319 (show_record_cmdlist): Now extern. Initialize.
9320 (info_record_cmdlist): Now extern. Initialize.
9321 (find_record_target): New.
9322 (require_record_target): New.
9323 (cmd_record_start): Update.
9324 (cmd_record_delete): Remove target-specific code.
9325 Call target_delete_record.
9326 (cmd_record_stop): Unpush any record target.
9327 (set_record_insn_max_num): Move to record-full.c
9328 (set_record_command): Add comment.
9329 (show_record_command): Add comment.
9330 (info_record_command): Update comment.
9331 Remove target-specific code.
9332 Call the record target's to_info_record.
9333 (cmd_record_start): New.
9334 (cmd_record_goto): Now extern.
9335 Remove target-specific code.
9336 Call target_goto_begin, target_goto_end, or target_goto.
9337 (_initialize_record): Move record target ops initialization to
9338 record-full.c.
9339 Change "record" command help text.
9340 Move "record restore", "record set", and "record show" commands to
9341 record-full.c.
9342 * Makefile.in (SFILES): Add record-full.c.
9343 (HFILES_NO_SRCDIR): Add record-full.h.
9344 (COMMON_OBS): Add record-full.o.
9345 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9346 * arm-tdep.c: Include record-full.h.
9347 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9348 * i386-tdep.c: Include record-full.h.
9349 * infrun.c: Include record-full.h.
9350 * linux-record.c: Include record-full.h.
9351 * moxie-tdep.c: Include record-full.h.
9352 * record-full.c: Include record-full.h.
9353 Change module comment.
9354 (set_record_full_cmdlist): New.
9355 (show_record_full_cmdlist): New.
9356 (record_full_cmdlist): New.
9357 (record_goto_insn): New declaration.
9358 (record_save): New declaration.
9359 (record_check_insn_num): Change query string.
9360 (record_info): New.
9361 (record_delete): New.
9362 (record_is_replaying): New.
9363 (record_goto_entry): New.
9364 (record_goto_begin): New.
9365 (record_goto_end): New.
9366 (record_goto): New.
9367 (init_record_ops): Update.
9368 (init_record_core_ops): Update.
9369 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9370 (cmd_record_start): New.
9371 (set_record_insn_max_num): Moved from record.c
9372 (set_record_full_command): New.
9373 (show_record_full_command): New.
9374 (_initialize_record_full): New.
9375
b48d48eb
MM
93762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9377
9378 * target.h (add_deprecated_target_alias): New.
9379 * target.c (add_deprecated_target_alias): New.
9380
a950d57c
MM
93812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9382
9383 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9384 and signal.h.
9385 (linux_supports_btrace): Add kernel and
9386 cpuid check.
9387 (kernel_supports_btrace): New function.
9388 (cpu_supports_btrace): New function.
9389 (intel_supports_btrace): New function.
9390
9accd112
MM
93912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9392
9393 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9394 * remote.c: Include btrace.h.
9395 (struct btrace_target_info): New struct.
9396 (remote_supports_btrace): New function.
9397 (send_Qbtrace): New function.
9398 (remote_enable_btrace): New function.
9399 (remote_disable_btrace): New function.
9400 (remote_teardown_btrace): New function.
9401 (remote_read_btrace): New function.
9402 (init_remote_ops): Add btrace ops.
9403 (enum <unnamed>): Add btrace packets.
9404 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9405 (_initialize_remote): Add packet configuration for branch tracing.
9406
c12a2917
MM
94072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9408
9409 * features/btrace.dtd: New file.
9410 * Makefile.in (XMLFILES): Add btrace.dtd.
9411 * btrace.h (parse_xml_btrace): New declaration.
9412 * btrace.c: Include xml-support.h.
9413 (parse_xml_btrace): New function.
9414 (parse_xml_btrace_block): New function.
9415 (block_attributes): New struct.
9416 (btrace_attributes): New struct.
9417 (btrace_children): New struct.
9418 (btrace_elements): New struct.
9419
3e3aea48
MM
94202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9421
9422 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9423 (amd64_linux_enable_btrace): New.
9424 (amd64_linux_disable_btrace): New.
9425 (amd64_linux_teardown_btrace): New.
9426 (_initialize_amd64_linux_nat): Initialize btrace ops.
9427 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9428 (i386_linux_enable_btrace): New.
9429 (i386_linux_disable_btrace): New.
9430 (i386_linux_teardown_btrace): New.
9431 (_initialize_i386_linux_nat): Initialize btrace ops.
9432 * config/i386/linux.mh: Add linux-btrace.o.
9433 * config/i386/linux64.mh: Add linux-btrace.o.
9434
7c97f91e
MM
94352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9436
9437 * common/linux_btrace.h: New file.
9438 * common/linux_btrace.c: New file.
9439 * Makefile.in (SFILES): Add btrace.c.
9440 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9441 (COMMON_OBS): Add btrace.o.
9442 (linux-btrace.o): New rule.
9443
1999790b 94442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9445
9446 * target.h: Include btrace.h.
9447 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9448 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9449 * target.c (target_supports_btrace): New function.
9450 (target_enable_btrace): New function.
9451 (target_disable_btrace): New function.
9452 (target_teardown_btrace): New function.
9453 (target_read_btrace): New function.
9454 * btrace.h: New file.
9455 * btrace.c: New file.
9456 * Makefile.in: Add btrace.c.
9457 * gdbthread.h: Include btrace.h.
9458 (struct thread_info): Add btrace field.
9459 * thread.c: Include btrace.h.
9460 (clear_thread_inferior_resources): Call target_teardown_btrace.
9461 * common/btrace-common.h: New file.
9462
61a31a67
JK
94632013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9464
9465 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9466 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9467 kill_status to outer block.
9468
05c56a9d
JK
94692013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9470
9471 Fix entry-values if the callee called a noreturn function.
9472 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9473 get_frame_address_in_block. Add new comment.
9474
9112db09
JK
94752013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 Fix entry-values in C++ across CUs.
9478 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9479 lookup_minimal_symbol. Add a comment.
9480 * dwarf2read.c
9481 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9482 DW_AT_linkage_name.
9483
9b67fcec
YQ
94842013-03-08 Yao Qi <yao@codesourcery.com>
9485
9486 * tracepoint.c (_initialize_tracepoint): Indent the code.
9487
6221be90
PA
94882013-03-08 Pedro Alves <palves@redhat.com>
9489
9490 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9491 (parse_find_args, find_command): Change type of pattern buffer
9492 locals to 'gdb_byte *'.
9493
be9a119c 94942013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9495 Hafiz Abid Qadeer <abidh@codesourcery.com>
9496
9497 * NEWS: Mention set and show trace-buffer-size commands.
9498 Mention new packet.
9499 * target.h (struct target_ops): New method
9500 to_set_trace_buffer_size.
9501 (target_set_trace_buffer_size): New macro.
9502 * target.c (update_current_target): Set up new method.
9503 * tracepoint.c (trace_buffer_size): New global.
9504 (start_tracing): Send it to the target.
9505 (set_trace_buffer_size): New function.
9506 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9507 * remote.c (remote_set_trace_buffer_size): New function.
9508 (_initialize_remote): Use it.
9509 (QTBuffer:size) New remote command.
9510 (PACKET_QTBuffer_size): New enum.
9511 (remote_protocol_features): Add an entry for
9512 PACKET_QTBuffer_size.
9513
7da3ab79
TT
95142013-03-08 Tom Tromey <tromey@redhat.com>
9515
9516 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9517 variable.
9518
0c1f71e7
PA
95192013-03-07 Pedro Alves <palves@redhat.com>
9520
9521 * target.c (target_read_stralloc, target_fileio_read_alloc):
9522 *Cast pointer to 'gdb_byte *' in target call.
9523
c8af03a2
PA
95242013-03-07 Pedro Alves <palves@redhat.com>
9525
9526 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9527 call.
9528
529480d0
KS
95292013-03-07 Keith Seitz <keiths@redhat.com>
9530
9531 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9532 (trace_pass_command): Likewise.
9533 * cli/cli-cmds.c: Include cli/cli-utils.h.
9534 (source_command): Use skip-spaces.
9535 (disassemble_command): Likewise.
9536 * findcmd.c: Include cli/cli-utils.h.
9537 (parse_find_args): Use skip_spaces.
9538 * go32-nat.c: Include cli/cli-utils.h.
9539 (go32_sldt): Use skip_spaces.
9540 (go32_sgdt): Likewise.
9541 (go32_sidt): Likewise.
9542 (go32_pde): Likewise.
9543 (go32_pte): Likewise.
9544 (go32_pte_for_address): Likewise.
9545 * infcmd.c: Include cli/cli-utils.h.
9546 (registers_info): Use skip_spaces.
9547 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9548 (linux_info_proc): Likewise.
9549 * linux-thread-db.c: Include cli/cli-utils.h.
9550 (info_auto_load_libthread_db): Use skip_spaces_const.
9551 * m32r-rom.c: Include cli/cli-utils.h.
9552 (m32r_upload_command): Use skip_spaces.
9553 * maint.c: Include cli/cli-utils.h.
9554 (maintenance_translate_address): Use skip_spaces.
9555 * mi/mi-parse.c: Include cli/cli-utils.h.
9556 (mi_parse_argv): Use skip_spaces.
9557 (mi_parse): Likewise.
9558 * minsyms.c: Include cli/cli-utils.h.
9559 (msymbol_hash_iw): Use skip_spaces_const.
9560 * objc-lang.c: Include cli/cli-utils.h.
9561 (parse_selector): Use skip_spaces.
9562 (parse_method): Likewise.
9563 * python/python.c: Include cli/cli-utils.h.
9564 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9565 (python_command)[HAVE_PYTHON]: Likewise.
9566 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9567 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9568 (m32r_load): Use skip_spaces.
9569 * serial.c: Include cli/cli-utils.h.
9570 (serial_open): Use skip_spaces_const.
9571 * stack.c: Include cli/cli-utils.h.
9572 (parse_frame_specification_1): Use skip_spaces_const.
9573 * symfile.c: Include cli/cli-utils.h.
9574 (set_ext_lang_command): Use skip_spaces.
9575 * symtab.c: Include cli/cli-utils.h.
9576 (rbreak_command): Use skip_spaces.
9577 * thread.c (thread_name_command): Use skip_spaces.
9578 * tracepoint.c (validate_actionline): Use skip_spaces.
9579 (encode_actions_1): Likewise.
9580 (trace_find_range_command): Likewise.
9581 (trace_find_outside_command): Likewise.
9582 (trace_dump_actions): Likewise.
9583
ac91cd70
PA
95842013-03-07 Pedro Alves <palves@redhat.com>
9585
9586 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9587 * expprint.c (print_subexp_standard): Likewise.
9588 * utils.c (host_char_to_target): Likewise.
9589 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9590 * varobj.c (value_get_print_value): Change type of local to char*.
9591 Cast it gdb_byte * in call to language printer.
9592
2898e560
PA
95932013-03-07 Pedro Alves <palves@redhat.com>
9594
9595 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9596 gdb_byte *'.
9597 (make_wchar_iterator): Remove cast to char*.
9598 (wchar_iterate): Change type of local.
9599
a09b4448
PA
96002013-03-07 Pedro Alves <palves@redhat.com>
9601
9602 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9603 for 'regcache->register_status'.
9604
20ced3e4
PA
96052013-03-07 Pedro Alves <palves@redhat.com>
9606
c2d6a675 9607 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9608 int.
9609
fe106009
PA
96102013-03-07 Pedro Alves <palves@redhat.com>
9611
9612 * stap-probe.c (handle_stap_probe): Add cast to char*.
9613
8ac2c12b
PA
96142013-03-07 Pedro Alves <palves@redhat.com>
9615
9616 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9617 RECORD_MSGRCV>: Pass a signed variable to
9618 regcache_raw_read_signed, instead of an unsigned one.
9619
99f0a309
PA
96202013-03-07 Pedro Alves <palves@redhat.com>
9621
9622 * remote-notif.c (notif_debug): Change type to int.
9623 * remote-notif.h (notif_debug): Likewise.
9624
964b8317
PA
96252013-03-07 Pedro Alves <palves@redhat.com>
9626
9627 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9628
f0cc8ad4
PA
96292013-03-07 Pedro Alves <palves@redhat.com>
9630
9631 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9632 * remote.h (hex2bin, bin2hex): ... here.
9633 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9634
77dec115
EZ
96352013-03-07 Eli Zaretskii <eliz@gnu.org>
9636
9637 * utils.c (initialize_utils): Improve doc strings of "set/show
9638 width", "set/show height", and "set/show pagination".
9639
741d92cf
KS
96402013-03-06 Keith Seitz <keiths@redhat.com>
9641
9642 * ax-gdb.c (gen_printf): Make FORMAT const.
9643 * ax-gdb.h (gen_printf): Likewise.
9644 * ax-general.c (ax_string): Make STR const.
9645 * ax.h (ax_string): Likewise.
9646
7b6c814e
DE
96472013-03-06 Doug Evans <dje@google.com>
9648
9649 * elfread.c (elf_symfile_read): Move debugging printf to more
9650 logical location.
9651
634334ab
PA
96522013-03-06 Pedro Alves <palves@redhat.com>
9653
9654 * python/py-utils.c (target_string_to_unicode): Delete function.
9655 * python/python-internal.h (target_string_to_unicode): Delete
9656 declaration.
9657
e482a1a7
PM
96582013-03-06 Pierre Muller <muller@sourceware.org>
9659
9660 * linespec.c (get_current_search_block): ARI fix, use (void)
9661 for empty parameter list.
9662
4eeaa230
DE
96632013-03-05 Doug Evans <dje@google.com>
9664
9665 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9666 of old ada_lookup_symbol_list. In !full_search case, don't
9667 search superblocks.
9668 (ada_lookup_symbol_list): Delete arg full_search, all callers
9669 updated. Call ada_lookup_symbol_list_worker.
9670 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9671 * ada-lang.h (ada_lookup_symbol_list): Update.
9672 * language.h (language_defn): Update comment for
9673 la_iterate_over_symbols.
9674 * linespec.c (iterate_over_file_blocks): New function.
9675 (iterate_over_all_matching_symtabs): Call it.
9676 (lookup_prefix_sym): Ditto.
9677 (get_current_search_block): New function.
9678 (get_search_block): Delete.
9679 (find_label_symbols): Call get_current_search_block.
9680 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9681 * symtab.c (iterate_over_symbols): Don't search superblocks.
9682
b69b1fb1
YQ
96832013-03-05 Yao Qi <yao@codesourcery.com>
9684
9685 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9686 parameter VAR's type from "unsigned int" to "int".
9687 * command.h (var_zuinteger_unlimited): Update its comments.
9688 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9689
3c095f49
CV
96902013-03-05 Corinna Vinschen <vinschen@redhat.de>
9691
9692 * NEWS: Mention new target x86_64-*-cygwin*.
9693
b5b0b0af
CV
96942013-03-05 Corinna Vinschen <vinschen@redhat.de>
9695
9696 * configure.host: Add x86_64-*-cygwin* as host.
9697 * configure.tgt: Add x86_64-*-cygwin* as target.
9698 * config/i386/cygwin64.mh: New file.
9699
f6f99966
JK
97002013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9703
33f448b1
JK
97042013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9705
9706 * linespec.c (struct linespec_canonical_name): New.
9707 (struct linespec_state): Change canonical_names type to it.
9708 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9709 xrealloc element size. Initialize the different CANONICAL fields.
9710 (canonical_to_fullform): New.
9711 (filter_results): Use it. Add variables canonical, fullform and
9712 cleanup.
9713 (struct decode_line_2_item, decode_line_2_compare_items): New.
9714 (decode_line_2): Remove variables iter and item_names, add variables
9715 items and items_count. Modify the code for these new variables.
9716
feb14725
CV
97172013-03-04 Corinna Vinschen <vinschen@redhat.com>
9718
9719 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9720 calling do_cleanup.
9721
e83b17ba
HZ
97222013-03-04 Luis Machado <lgustavo@codesourcery.com>
9723
9724 * tracepoint.c (build_traceframe_info): Add code for byte order.
9725
a2d13a0d
KB
97262013-03-02 Kevin Buettner <kevinb@redhat.com>
9727
8dddcae8
KB
9728 * v850-tdep.c: (v850e2_register_name): Revise system register
9729 names to match current V850E2M architecture specifications.
9730 Update register number enum comments too.
f5aee5ee 9731
d79e58d8
JW
97322013-03-01 Jiong Wang <jiwang@tilera.com>
9733 Pedro Alves <palves@redhat.com>
9734
9735 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9736 to END_ADDR.
9737 (tilegx_skip_prologue): Limit prologue analysis to section end.
9738
c4be5165
JK
97392013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9740
9741 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9742 use it.
9743
e362b510
PA
97442013-03-01 Pedro Alves <palves@redhat.com>
9745
9746 Use gdb_byte for bytes from the program being debugged.
9747
9748 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9749 Change type of local 'buf' to gdb_byte.
9750 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9751 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9752 * cris-tdep.c (cris_sigcontext_addr)
9753 (cris_sigtramp_frame_unwind_cache): Likewise.
9754 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9755 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9756 Likewise.
9757 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9758 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9759 (hppa32_hpux_search_dummy_call_sequence)
9760 (hppa_hpux_supply_save_state): Likewise.
9761 * hppa-linux-tdep.c (insns_match_pattern)
9762 (hppa_linux_find_global_pointer): Likewise.
9763 * hppa-tdep.c (hppa_in_function_epilogue_p)
9764 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9765 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9766 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9767 (i386fbsd_collect_uthread): Likewise.
9768 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9769 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9770 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9771 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9772 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9773 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9774 (ia64_libunwind_frame_prev_register)
9775 (ia64_libunwind_sigtramp_frame_this_id)
9776 (ia64_find_global_pointer_from_dynamic_section)
9777 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9778 (ia64_unwind_pc): Likewise.
9779 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9780 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9781 (m68hc11_extract_return_value): Likewise.
9782 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9783 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9784 (mep_get_insn, mep_push_dummy_call): Likewise.
9785 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9786 (mips_linux_in_dynsym_stub): Likewise.
9787 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9788 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9789 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9790 to gdb_byte.
9791 * remote-mips.c (mips_set_register): Likewise.
9792 * remote-sim.c (gdbsim_fetch_register): Likewise.
9793 * score-tdep.c (score7_fetch_inst): Change type of parameter
9794 'memblock' and local 'buf' to gdb_byte.
9795 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9796 Change type of local 'buf' to gdb_byte. Adjust.
9797 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9798 to gdb_byte**.
9799 (score7_analyze_prologue): Change type of 'memblock' and
9800 'memblock_ptr' locals to gdb_byte*.
9801 * sh64-tdep.c (sh64_extract_return_value)
9802 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9803 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9804 * solib-pa64.c (pa64_solib_create_inferior_hook)
9805 (pa64_open_symbol_file_object): Remove local 'buf'.
9806 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9807 (som_open_symbol_file_object): Likewise.
9808 * solib-spu.c (spu_current_sos): Likewise.
9809 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9810 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9811 (spu_store_registers): Likewise.
9812 * target.c (debug_print_register): Likewise.
9813 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9814 * xstormy16-tdep.c (xstormy16_store_return_value)
9815 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9816 (xstormy16_find_jmp_table_entry): Likewise.
9817
75cc61ca 98182013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9819
9820 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9821 (tilegx_gdbarch_init): Install it.
9822
ddb08e9c
TT
98232013-02-28 Tom Tromey <tromey@redhat.com>
9824
9825 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9826 PyLong_Check.
9827
62d7fb51
DE
98282013-02-28 Doug Evans <dje@google.com>
9829
9830 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9831 * python/python.c (gdbpy_find_pc_line): Ditto.
9832
c4a9e8b4
TT
98332013-02-28 Tom Tromey <tromey@redhat.com>
9834
9835 * contrib/excheck.py: New file.
9836 * contrib/exsummary.py: New file.
9837 * contrib/gcc-with-excheck: New file.
9838
7f6a5dde
TT
98392013-02-28 Tom Tromey <tromey@redhat.com>
9840
9841 * python/python.c (gdbpy_print_stack): Call begin_line and
9842 fprintf_filtered inside TRY_CATCH.
9843
9e974e55
TT
98442013-02-28 Tom Tromey <tromey@redhat.com>
9845
9846 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9847 inside TRY_CATCH.
9848
dd5fa3e7
TT
98492013-02-28 Tom Tromey <tromey@redhat.com>
9850
9851 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9852 frame_object_to_frame_info inside TRY_CATCH.
9853
86a3263f
TT
98542013-02-28 Tom Tromey <tromey@redhat.com>
9855
9856 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9857 TRY_CATCH.
9858
81b52a3a
TT
98592013-02-28 Tom Tromey <tromey@redhat.com>
9860
9861 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9862
d50a0ce2
CV
98632013-02-27 Corinna Vinschen <vinschen@redhat.com>
9864
9865 * windows-nat.c: Throughout, fix format strings and casts of
9866 printf-like functions to avoid type related warnings on all
9867 platforms.
9868 (handle_output_debug_string): Fetch context information address
9869 from debug string using string_to_core_addr.
9870
e1f58301
JW
98712013-02-27 Jiong Wang <jiwang@tilera.com>
9872
9873 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9874 * regformats/reg-tilegx32.dat: New.
9875
4fcd89fc
JW
98762013-02-27 Jiong Wang <jiwang@tilera.com>
9877
9878 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9879
748d24e6
JW
98802013-02-27 Jiong Wang <jiwang@tilera.com>
9881
9882 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9883
6c8e944d
YQ
98842013-02-27 Yao Qi <yao@codesourcery.com>
9885 Pedro Alves <palves@redhat.com>
9886
9887 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9888 pc/tp/range/outside, look for the next trace frame instead of
9889 always starting from frame 0.
6c8e944d 9890
acd7db30
AG
98912013-02-26 Anthony Green <green@moxielogic.com>
9892
9893 * configure.tgt: Add support for moxie-*-rtems* target.
9894
025e6dce
PA
98952013-02-25 Pedro Alves <palves@redhat.com>
9896
9897 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9898 warning text.
9899
ca9c94ef
MR
99002013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9901
9902 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9903 if $fp is used as the virtual frame pointer.
9904
24c274a1
AM
99052013-02-23 Alan Modra <amodra@gmail.com>
9906
9907 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9908 symbol size.
9909 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9910 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9911 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9912 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9913
bfada189
JK
99142013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 Code cleanup.
9917 * elfread.c (build_id_bfd_get): Make the return type const.
9918 (build_id_verify): Make the check parameter const.
9919 (build_id_to_debug_filename): Make the build_id parameter and variable
9920 data const.
9921 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9922
c0355132
AM
99232013-02-21 Alan Modra <amodra@gmail.com>
9924
9925 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9926
9f44fbc0
SCR
99272013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9928
9929 Add a new method 'disassemble' to gdb.Architecture class.
9930 * python/py-arch.c (archpy_disassmble): Implementation of the
9931 new method gdb.Architecture.disassemble.
9932 (arch_object_methods): Add entry for the new method.
9933
b74ea3eb
JW
99342013-02-20 Jiong Wang <jiwang@tilera.com>
9935
9936 * MAINTAINERS (Write After Approval): Add myself to the list.
9937
61a672f1
PA
99382013-02-19 Pedro Alves <palves@redhat.com>
9939
9940 Garbage collect 'struct monitor_ops'::load_routine.
9941
9942 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9943 * monitor.c (monitor_load): No longer call
9944 current_monitor->load_routine.
9945 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9946 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9947 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9948
40e397df
PA
99492013-02-19 Pedro Alves <palves@redhat.com>
9950
9951 PR gdb/15161
9952
9953 Harmonize with generic_load.
9954
9955 * monitor.c: Include "readline/readline.h".
9956 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9957 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9958 long/strtol for the 'load_offset' local. Error out if no argument
9959 is given or if too many arguments are given. Tilde expand the
9960 passed in file name.
9961
f698ca8e
KT
99622013-02-19 Kai Tietz <ktietz@redhat.com>
9963
9964 PR gdb/15161
9965 * symfile.c (load_section_data): Change type of load_offset
9966 to CORE_ADDR.
9967 (generic_load): User strtoulst instead of strtoul for conversion
9968 of load_offset.
9969
3361b059
WL
99702013-02-19 Jiong Wang <jiwang@tilera.com>
9971
9972 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9973 for return address, "lr" register, saved on stack.
9974 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9975 after we invoke tilegx_analyze_prologue.
9976
3e9d5130
WL
99772013-02-19 Jiong Wang <jiwang@tilera.com>
9978
bb1bcd86
WL
9979 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9980
3361b059 99812013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9982
b74ea3eb 9983 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9984
4aaf2503
WL
99852013-02-19 Jiong Wang <jiwang@tilera.com>
9986
b74ea3eb 9987 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9988 (tilegx_write_pc): New function.
9989 (tilegx_cannot_reference_register): Return zero if REGNO
9990 is TILEGX_FAULTNUM_REGNUM.
9991 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9992 (tilegx_register_name): Add handling of "faultnum" register.
9993 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9994 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9995 handling of TILEGX_FAULTNUM_REGNUM.
9996 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9997
bc23a956
WL
99982013-02-19 Jiong Wang <jiwang@tilera.com>
9999
10000 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10001 should be aligned to 64bit.
bc23a956 10002
42f45f1a
KT
100032013-02-19 Kai Tietz <ktietz@redhat.com>
10004
10005 * windows-nat.c (windows_xfer_memory): Fix debug-output
10006 for LLP64.
10007
6ce4c112
LL
100082013-02-19 Lei Liu <lei.liu2@windriver.com>
10009
10010 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10011 Don't check DSP register number if HAVE_DSP is not set.
10012
30e8ee25
AM
100132013-02-19 Alan Modra <amodra@gmail.com>
10014
10015 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10016 throughout file instead.
10017 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10018 Don't xmalloc return value.
10019 (build_id_verify): Similarly. Don't xfree.
10020 (build_id_to_debug_filename): Update.
10021 (find_separate_debug_file_by_buildid): Update, don't xfree.
10022
4c9ad8c2
TT
100232013-02-18 Tom Tromey <tromey@redhat.com>
10024
10025 PR gdb/15102:
10026 * dwarf2read.c (read_subrange_type): Use result of
10027 'check_typedef'.
10028
983dc440
YQ
100292013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10030
10031 * frame.c: Remove one extra white space after #include
10032 directive.
10033
7fb2b84a
JK
100342013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10035
10036 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10037
edceb2a9
JK
100382013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10039
10040 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10041 and dir commands into an if block.
10042
e81b7af8
TT
100432013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10044
10045 * python/py-breakpoint (struct pybp_code): Use int instead of
10046 enum type_code.
10047
f5911ea1
HAQ
100482013-02-15 Pedro Alves <pedro@codesourcery.com>
10049 Hafiz Abid Qadeer <abidh@codesourcery.com>
10050
10051 * NEWS: Mention new field "trace-file".
10052 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10053 (tfile_open): Record the trace file's filename in the trace
10054 status.
10055 (tfile_files_info): Mention the name of the trace file.
10056 Check the "filename" field explicitely.
10057 (trace_status_command): Explicitely check "filename" field.
10058 (trace_find_command): Ditto.
10059 (trace_find_pc_command): Ditto.
10060 (trace_find_tracepoint_command): Ditto.
10061 (trace_find_line_command): Ditto.
10062 (trace_find_range_command): Ditto.
10063 (trace_find_outside_command): Ditto.
10064 * tracepoint.h (struct trace_status) <from_file>: Rename it
10065 to "filename" and make it hold the trace file's filename
10066 instead of a boolean.
10067 * remote.c (remote_get_trace_status): Initialize "filename"
10068 field with NULL instead of 0.
10069
796cb314
YQ
100702013-02-15 Yao Qi <yao@codesourcery.com>
10071
10072 * remote.c: Fix a typo.
10073
42e79b1d
PM
100742013-02-14 Pierre Muller <muller@sourceware.org>
10075
10076 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10077
baea0dae
PA
100782013-02-14 Pedro Alves <palves@redhat.com>
10079
10080 * utils.c (savestring): Don't #undef it. Move function to
10081 common/common-utils.c.
10082 * common/common-utils.c: Include gdb_string.h.
10083 (savestring): Move here from utils.c.
10084 * common/common-utils.h (savestring): Declare.
10085
57c3b6ed
PA
100862013-02-14 Pedro Alves <palves@redhat.com>
10087
10088 * utils.c (savestring): Rename parameter 'size' to 'len'.
10089
d6c44983
YZ
100902013-02-14 Pedro Alves <palves@redhat.com>
10091 Yufeng Zhang <yufeng.zhang@arm.com>
10092
10093 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10094 (aarch64_inferior_data, struct aarch64_inferior_data):
10095 Delete.
10096 (struct aarch64_process_info): New.
10097 (aarch64_process_list): New global.
10098 (aarch64_find_process_pid, aarch64_add_process)
10099 (aarch64_process_info_get): New functions.
10100 (aarch64_inferior_data_get): Delete.
10101 (aarch64_process_info_get): New function.
10102 (aarch64_forget_process): New function.
10103 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10104 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10105 aarch64_get_debug_reg_state.
10106 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10107 instead of linux_nat_iterate_watchpoint_lwps.
10108 (aarch64_linux_new_fork): New function.
10109 (aarch64_linux_child_post_startup_inferior): Use
10110 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10111 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10112 (aarch64_linux_remove_hw_breakpoint)
10113 (aarch64_handle_aligned_watchpoint)
10114 (aarch64_handle_unaligned_watchpoint)
10115 (aarch64_linux_insert_watchpoint)
10116 (aarch64_linux_remove_watchpoint)
10117 (aarch64_linux_stopped_data_address): Adjust to pass the current
10118 process id to aarch64_debug_reg_state.
10119 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10120 linux_nat_new_fork hook, and aarch64_forget_process as
10121 linux_nat_forget_process hook; remove the call to
10122 register_inferior_data_with_cleanup.
10123
4819b3f8
PA
101242013-02-14 Pedro Alves <palves@redhat.com>
10125
10126 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10127 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10128 lval_memory.
10129
1773c82c
HAQ
101302013-02-14 Pedro Alves <pedro@codesourcery.com>
10131 Hafiz Abid Qadeer <abidh@codesourcery.com>
10132
10133 * tracepoint.h (validate_trace_state_variable_name): Declare.
10134 * tracepoint.c (validate_trace_state_variable_name): New.
10135 (trace_variable_command): Parse the trace state variable's name
10136 without using parse_expression. Do several validations.
10137 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10138 trace state variable's name with parse_expression. Validate it.
10139
53778a97
YQ
101402013-02-14 Yao Qi <yao@codesourcery.com>
10141
10142 * infcmd.c (breakpoint_proceeded): Remove it.
10143
7b3ae3a6
YQ
101442013-02-14 Yao Qi <yao@codesourcery.com>
10145
10146 * tracepoint.c (end_actions_pseudocommand): Make it static.
10147 (while_stepping_pseudocommand): Likewise.
10148 * tracepoint.h (end_actions_pseudocommand): Remove the
10149 declaration.
10150 (while_stepping_pseudocommand): Likewise.
10151
64580925
YQ
101522013-02-14 Yao Qi <yao@codesourcery.com>
10153
10154 * cli/cli-decode.c (help_cmd): Remove the declaration of
10155 "cmdlist".
10156 (help_all): Likewise.
10157
26cb8b7c
PA
101582013-02-13 Pedro Alves <palves@redhat.com>
10159
10160 * amd64-linux-nat.c (update_debug_registers_callback):
10161 Update comment.
10162 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10163 iterate_over_lwps.
10164 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10165 i386_debug_reg_state.
10166 (amd64_linux_new_fork): New function.
10167 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10168 linux_nat_new_fork hook, and i386_forget_process as
10169 linux_nat_forget_process hook.
10170 * i386-linux-nat.c (update_debug_registers_callback):
10171 Update comment.
a8256ea1 10172 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10173 iterate_over_lwps.
10174 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10175 i386_debug_reg_state.
10176 (i386_linux_new_fork): New function.
10177 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10178 linux_nat_new_fork hook, and i386_forget_process as
10179 linux_nat_forget_process hook.
10180 * i386-nat.c (i386_init_dregs): Delete.
10181 (i386_inferior_data, struct i386_inferior_data):
10182 Delete.
10183 (struct i386_process_info): New.
10184 (i386_process_list): New global.
10185 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10186 New functions.
10187 (i386_inferior_data_get): Delete.
10188 (i386_process_info_get): New function.
10189 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10190 (i386_forget_process): New function.
10191 (i386_cleanup_dregs): Rewrite.
10192 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10193 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10194 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10195 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10196 to i386_debug_reg_state.
10197 (i386_use_watchpoints): Don't register inferior data.
10198 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10199 adjust comment.
10200 (i386_forget_process): Declare.
10201 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10202 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10203 New static globals.
10204 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10205 (add_initial_lwp): New, factored out from ...
10206 (add_lwp): ... this. Don't check the number of lwps before
10207 calling linux_nat_new_thread.
10208 (linux_nat_iterate_watchpoint_lwps): Delete.
10209 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10210 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10211 forks and vforks.
10212 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10213 initial lwp.
10214 (linux_nat_kill, linux_nat_mourn_inferior): Call
10215 linux_nat_forget_process.
10216 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10217 (linux_nat_forget_process): New functions.
10218 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10219 type.
10220 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10221 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10222 types.
10223 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10224 (linux_nat_forget_process): New declarations.
10225
10226 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10227 (amd64fbsd_mourn_inferior): New function.
10228 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10229 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10230
5befea72
MS
102312013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10232
55015247
YQ
10233 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10234 Adding _().
5befea72 10235
1d3ffd6b
MS
102362013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10237
10238 * aarch64-linux-nat.c (debug_reg_change_callback)
10239 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10240 %s and phex().
10241
6eb04473
MS
102422013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10243
10244 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10245 with LONGEST.
10246
a016fc87
HAQ
102472013-02-13 Pedro Alves <palves@redhat.com>
10248 Hafiz Abid Qadeer <abidh@codesourcery.com>
10249
10250 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10251
e234dfaf
TT
102522013-02-12 Tom Tromey <tromey@redhat.com>
10253
10254 PR symtab/11464:
10255 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10256 NAME return.
10257 (classify_inner_name): Remove 'first_name' argument, add
10258 'context'. Remove unused variable.
10259 (yylex): Explicitly maintain the context type. Exit loop earlier
10260 if NAME result is seen.
10261
0b1afbb3
PA
102622013-02-12 Pedro Alves <palves@redhat.com>
10263
10264 * amd64-darwin-tdep.c: Add (C) after Copyright.
10265 * cli/cli-cmds.h: Ditto.
10266 * cli/cli-decode.c: Ditto.
10267 * cli/cli-decode.h: Ditto.
10268 * cli/cli-dump.c: Ditto.
10269 * cli/cli-dump.h: Ditto.
10270 * cli/cli-interp.c: Ditto.
10271 * cli/cli-logging.c: Ditto.
10272 * cli/cli-script.c: Ditto.
10273 * cli/cli-script.h: Ditto.
10274 * cli/cli-setshow.c: Ditto.
10275 * cli/cli-setshow.h: Ditto.
10276 * cli/cli-utils.c: Ditto.
10277 * cli/cli-utils.h: Ditto.
10278 * config/alpha/nm-osf3.h: Ditto.
10279 * config/djgpp/djconfig.sh: Ditto.
10280 * config/i386/nm-fbsd.h: Ditto.
10281 * config/i386/nm-i386gnu.h: Ditto.
10282 * config/nm-linux.h: Ditto.
10283 * config/nm-nto.h: Ditto.
10284 * config/rs6000/nm-rs6000.h: Ditto.
10285 * config/sparc/nm-sol2.h: Ditto.
10286 * darwin-nat-info.c: Ditto.
10287 * dfp.c: Ditto.
10288 * dfp.h: Ditto.
10289 * gdb-demangle.h: Ditto.
10290 * i386-darwin-nat.c: Ditto.
10291 * i386-darwin-tdep.c: Ditto.
10292 * linux-fork.h: Ditto.
10293 * m32c-tdep.c: Ditto.
10294 * microblaze-linux-tdep.c: Ditto.
10295 * microblaze-rom.c: Ditto.
10296 * microblaze-tdep.c: Ditto.
10297 * microblaze-tdep.h: Ditto.
10298 * mips-linux-tdep.h: Ditto.
10299 * ppc-ravenscar-thread.c: Ditto.
10300 * ppc-ravenscar-thread.h: Ditto.
10301 * prologue-value.c: Ditto.
10302 * prologue-value.h: Ditto.
10303 * ravenscar-thread.c: Ditto.
10304 * ravenscar-thread.h: Ditto.
10305 * sparc-ravenscar-thread.c: Ditto.
10306 * sparc-ravenscar-thread.h: Ditto.
10307 * tilegx-linux-tdep.c: Ditto.
10308 * unwind_stop_reasons.def: Ditto.
10309 * windows-nat.h: Ditto.
10310 * xtensa-linux-tdep.c: Ditto.
10311 * xtensa-xtregs.c: Ditto.
10312 * regformats/regdat.sh: Ditto.
10313 * regformats/regdef.h: Ditto.
10314
6c01dd94
PA
103152013-02-12 Pedro Alves <palves@redhat.com>
10316
10317 * break-catch-sig.c: Update copyright years.
10318
b65a2bd9
SCR
103192013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10320
10321 Add support for a destructor for ui_out data and use it to
10322 provide a ui_out destructor.
10323 * ui-out.h: Declare the new ui_out destructor.
10324 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10325 * ui-out.c (default_data_destroy): Add a default data destructor
10326 which does nothing.
10327 (default_ui_out_impl): Set the new data_destroy field to
10328 default_data_destroy
10329 (uo_data_destroy): Local function which invokes the data
10330 destructor if present.
10331 (clear_table): Local function which clears the table data of a
10332 ui_out object.
10333 (ui_out_destroy): Public function which frees a ui_out object.
10334 (ui_out_table_end): Use the new clear_table function.
10335 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10336 NULL.
10337 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10338 to NULL.
10339
c2792f5a
DE
103402013-02-11 Doug Evans <dje@google.com>
10341
10342 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10343 (printf_decfloat): New function. Broken out from ui_printf.
10344 Remove unnecessary code to shift the entire format string down.
10345 (printf_pointer): New function.
10346 (ui_printf): Code to print C strings, wide C strings, decfloats,
10347 and pointers moved to separate functions.
10348
d9e98382
SDJ
103492013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10350
10351 * valops.c (value_assign): Handling bitfield offset in
10352 `lval_internalvar_component' case.
10353
4ff3ce77
DE
103542013-02-08 Doug Evans <dje@google.com>
10355
10356 * common/format.c (parse_format_string): Fix whitespace.
10357
901900c4
MGD
103582013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10359
10360 * stack.c (return_command): Work around uninitialized variable
10361 warning.
10362
b5dbc8d4
YZ
103632013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10364
10365 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10366 number of the registers from 36 to 34.
10367
51d66578
MS
103682013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10369
10370 * NEWS: Mention new AArch64 native and target support.
10371
176b1c95
MS
103722013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10373
10374 * MAINTAINERS (Write After Approval): Add myself.
10375
9d19df75
MS
103762013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10377 Marcus Shawcroft <marcus.shawcroft@arm.com>
10378 Nigel Stephens <nigel.stephens@arm.com>
10379 Yufeng Zhang <yufeng.zhang@arm.com>
10380
10381 * aarch64-linux-nat.c: New file.
10382 * config/aarch64/linux.mh: New file.
10383 * configure.host: Add AArch64.
10384 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10385
7e1e0340
DE
103862013-02-07 Doug Evans <dje@google.com>
10387
10388 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10389 disassemble command.
10390
45e25a36
MS
103912013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10392
10393 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10394 set_gdbarch_fetch_tls_load_module_address.
10395
bbfdfe1c
DM
103962013-02-06 David S. Miller <davem@davemloft.net>
10397
10398 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10399 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10400 * value.c (struct_return_convention): New function.
10401 (using_struct_return): Implement in terms of struct_return_convention.
10402 * value.h (struct_return_convention): Declare.
10403 * stack.c (return_command): Allow successful overriding of the return
10404 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10405
bc9abe4a
TT
104062013-02-06 Tom Tromey <tromey@redhat.com>
10407
10408 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10409 outside of TRY_CATCH.
10410
134a2066
YQ
104112013-02-06 Yao Qi <yao@codesourcery.com>
10412
10413 * mi/mi-interp.c: Include "tracepoint.h".
10414 (mi_tsv_modified): Declare.
10415 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10416 (mi_interpreter_init): Call observer_attach_tsv_modified.
10417 (mi_tsv_modified): New.
10418 (mi_tsv_created, mi_tsv_deleted): Update.
10419 * tracepoint.c (trace_variable_command): Call
10420 observer_notify_tsv_modified if the initial value of tsv is
10421 changed.
10422 (delete_trace_state_variable): Call
10423 observer_notify_tsv_deleted earlier.
10424 (trace_variable_command): Caller update.
10425 (create_tsv_from_upload): Likewise.
10426 * observer.sh: Declare "struct trace_state_variable".
10427
10428 * NEWS: Mention the new MI notification "=tsv-modified".
10429
59be2b6a
DE
104302013-02-05 Doug Evans <dje@google.com>
10431
10432 * completer.c (location_completer): Fix typo in comment.
10433
d30113d4
JK
104342013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10435
10436 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10437 ADDRESS sorted.
10438
14ac654f
MS
104392013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10440
10441 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10442 Refactor if statement to avoid trailing || operator.
10443
543bf33d
AT
104442013-02-05 Andreas Tobler <andreast@fgznet.ch>
10445
10446 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10447
dc18f110
AT
104482013-02-04 Andreas Tobler <andreast@fgznet.ch>
10449
10450 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10451 * configure.host: Add powerpc*-*-freebsd* target.
10452 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10453 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10454 * config/powerpc/fbsd.mh: New file.
10455
b3ac9c77
SDJ
104562013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10457 Denys Vlasenko <dvlasenk@redhat.com>
10458 Pedro Alves <palves@redhat.com>
10459
10460 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10461 (struct elf_internal_linux_prpsinfo): Forward declare.
10462 * gdbarch.h, gdbarch.c: Regenerate.
10463 * linux-tdep.c: Include `cli/cli-utils.h'.
10464 (linux_fill_prpsinfo): New function.
10465 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10466 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10467 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10468 depending on gdbarch pointer bitness.
10469 * ppc-linux-tdep.c: Include elf-bfd.h.
10470 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10471 on 32-bit.
10472
176eb98c
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 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10479
cf0dbd6f
MS
104802013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10481 Marcus Shawcroft <marcus.shawcroft@arm.com>
10482 Nigel Stephens <nigel.stephens@arm.com>
10483 Yufeng Zhang <yufeng.zhang@arm.com>
10484
10485 * aarch64-newlib-tdep.c: New file.
10486 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10487 aarch64*-*-elf.
10488 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10489 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10490 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10491 * osabi.c (gdb_osabi_names): Add "Newlib".
10492
1ae3db19
MS
104932013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10494 Marcus Shawcroft <marcus.shawcroft@arm.com>
10495 Nigel Stephens <nigel.stephens@arm.com>
10496 Yufeng Zhang <yufeng.zhang@arm.com>
10497
10498 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10499 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10500 * aarch64-linux-tdep.c: New file.
10501 * aarch64-linux-tdep.h: New file.
10502 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10503 * configure.tgt: Add aarch64-none-linux-gnu.
10504
07b287a0
MS
105052013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10506 Marcus Shawcroft <marcus.shawcroft@arm.com>
10507 Nigel Stephens <nigel.stephens@arm.com>
10508 Yufeng Zhang <yufeng.zhang@arm.com>
10509
10510 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10511 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10512 (ALLDEPFILES): Add aarch64-tdep.c.
10513 * aarch64-tdep.c: New file.
10514 * aarch64-tdep.h: New file.
10515 * configure.tgt: Add AArch64.
10516 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10517 (aarch64-expedite): New definition.
10518 * features/aarch64-core.xml: New file.
10519 * features/aarch64-fpu.xml: New file.
10520 * features/aarch64-without-fpu.c: New file (generated).
10521 * features/aarch64-without-fpu.xml: New file.
10522 * features/aarch64.c: New file (generated).
10523 * features/aarch64.xml: New file.
10524 * regformats/aarch64-without-fpu.dat: New file (generated).
10525 * regformats/aarch64.dat: New file (generated).
10526
0f1b18ab
JK
105272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 * contrib/expect-read1.c: New file.
10530 * contrib/expect-read1.sh: New file.
10531
233d95b5
JK
105322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10533
10534 * dwarf2read.c (file_file_name): New function with code from
10535 file_full_name.
10536 (file_full_name): Move most of the code to file_file_name.
10537 (macro_start_file): Rename variable full_name to file_name and use
10538 file_file_name for it. Add comp_dir parameter to new_macro_table.
10539 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10540 macro_source_file->filename access by macro_source_fullname call.
10541 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10542 caller.
10543 * macrotab.c (struct macro_table): New field comp_dir.
10544 (macro_include): New variables link_fullname and source_fullname.
10545 Replace any macro_source_file->filename access by macro_source_fullname
10546 call.
10547 (macro_lookup_inclusion): Remove the partial filenames checking code.
10548 (check_for_redefinition): New variables source_fullname and
10549 found_key_fullname. Replace any macro_source_file->filename access by
10550 macro_source_fullname call.
10551 (macro_undef): New variables source_fullname and key_fullname. Replace
10552 any macro_source_file->filename access by macro_source_fullname call.
10553 (macro_lookup_definition): New variables retval and source_fullname.
10554 Replace any macro_source_file->filename access by macro_source_fullname
10555 call.
10556 (foreach_macro): New variable key_fullname. Replace any
10557 macro_source_file->filename access by macro_source_fullname call.
10558 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10559 macro_source_file->filename access by macro_source_fullname call.
10560 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10561 (macro_source_fullname): New function.
10562 * macrotab.h (struct macro_source_file): Extent the filename field
10563 comment.
10564 (new_macro_table): New parameter comp_dir, add a comment for it.
10565 (macro_source_fullname): new declaration.
10566
da235a7c
JK
105672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10568
10569 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10570 this_real_name to outer block. Use it also for
10571 compare_filenames_for_search.
10572 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10573 with dw2_get_real_path for file_matcher, considering also
10574 BASENAMES_MAY_DIFFER.
10575 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10576
fbd9ab74
JK
105772013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10578
10579 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10580 to the file_matcher parameter. Pass 0 to it.
10581 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10582 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10583 NULL psymtab_to_fullname result.
10584 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10585 an expected filename instead.
10586 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10587 file_matcher parameter. Call also psymtab_to_fullname, after newly
10588 considering BASENAMES_MAY_DIFFER.
10589 * source.c (rewrite_source_path): Remove static.
10590 * source.h (rewrite_source_path): New declaration.
10591 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10592 the expand_symtabs_matching field. Comment it.
10593 * symtab.c (file_matches): New function comment. Add parameter
10594 basenames, implement it.
10595 (search_symbols_file_matches): Add basenames parameter. Update the
10596 file_matches caller.
10597 (search_symbols): Match FILES also against symtab_to_fullname.
10598 Optimize it for BASENAMES_MAY_DIFFER.
10599
56d397a3
JK
106002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 * source.c (print_source_lines_base): Print for TUI also "fullname".
10603 * tui/tui-data.c (init_content_element): Change tui_locator_element
10604 field to full_name.
10605 * tui/tui-data.h (struct tui_locator_element): Likewise.
10606 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10607 tui_update_locator_filename calls to tui_update_locator_fullname.
10608 Replace symtab->filename refererence by symtab_to_fullname call.
10609 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10610 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10611 field to full_name. Replace symtab->filename refererence by
10612 symtab_to_fullname call.
10613 (tui_show_symtab_source): Rename parameter to fullname. Change
10614 tui_locator_element field to full_name.
10615 * tui/tui-stack.c: Include source.h.
10616 (tui_set_locator_filename): Rename the declaration to ...
10617 (tui_set_locator_fullname): ... here. Rename its parameter to
10618 fullname, updates its comment.
10619 (tui_set_locator_info): Rename its parameter to fullname.
10620 (tui_set_locator_filename): Rename the definition to ...
10621 (tui_set_locator_fullname): ... here. Rename its parameter to
10622 fullname, updates its comment. Change tui_locator_element field to
10623 full_name.
10624 (tui_set_locator_info): Rename its parameter to fullname.
10625 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10626 (tui_update_locator_filename): Rename to ...
10627 (tui_update_locator_fullname): ... here. Rename callee to
10628 tui_set_locator_fullname.
10629 (tui_show_frame_info): Replace symtab->filename refererence by
10630 symtab_to_fullname call.
10631 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10632 (tui_update_locator_fullname): ... here.
10633 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10634 tui_update_locator_fullname. Replace symtab->filename refererence by
10635 symtab_to_fullname call.
10636 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10637 Rename the callee to tui_update_locator_fullname.
10638 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10639
05cba821
JK
106402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10641
10642 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10643 by symtab_to_filename_for_display calls.
10644 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10645 (clear_command): New variable sal_fullname, initialize it. Replace
10646 compare_filenames_for_search by filename_cmp with sal_fullname.
10647 (say_where, update_static_tracepoint): Replace symtab->filename
10648 refererences by symtab_to_filename_for_display calls.
10649 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10650 Likewise.
10651 * dwarf2read.c: Include source.h.
10652 (fixup_go_packaging): Replace symtab->filename refererences by
10653 symtab_to_filename_for_display calls.
10654 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10655 Replace symtab->filename refererences by symtab_to_filename_for_display
10656 calls.
10657 (create_sals_line_offset, convert_linespec_to_sals): New variable
10658 fullname, initialize it, replace symtab->filename reference by the
10659 variable.
10660 * linux-fork.c: Include source.h.
10661 (info_checkpoints_command): Replace symtab->filename refererences by
10662 symtab_to_filename_for_display calls.
10663 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10664 by symtab_to_filename_for_display calls.
10665 * mdebugread.c: Include source.h.
10666 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10667 symtab_to_filename_for_display calls.
10668 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10669 (mi_cmd_file_list_exec_source_files): Likewise.
10670 * printcmd.c: Include source.h.
10671 (build_address_symbolic): Replace symtab->filename refererences by
10672 symtab_to_filename_for_display calls.
10673 * psymtab.c (partial_map_symtabs_matching_filename)
10674 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10675 with psymtab_to_fullname.
10676 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10677 by symtab_to_filename_for_display calls.
10678 (stpy_get_filename): New variable filename, initialize it, use instead
10679 of symtab->filename refererences.
10680 (salpy_str): Make variable filename const char *. Replace
10681 symtab->filename refererences by symtab_to_filename_for_display calls.
10682 * skip.c: Include source.h and filenames.h.
10683 (skip_file_command): Remove const from the symtab variable. Replace
10684 symtab->filename refererences by symtab_to_fullname call.
10685 (function_name_is_marked_for_skip): New variables searched_for_fullname
10686 and fullname. Use them to search also with symtab's fullname.
10687 * source.c (find_source_lines): Replace symtab->filename refererences
10688 by symtab_to_filename_for_display calls.
10689 (print_source_lines_base): New variable filename, use it instead of
10690 symtab->filename. Replace symtab->filename refererences by
10691 symtab_to_filename_for_display calls.
10692 (line_info, forward_search_command): Replace symtab->filename
10693 refererences by symtab_to_filename_for_display calls.
10694 (reverse_search_command): Replace symtab->filename refererences by
10695 symtab_to_filename_for_display calls. New variable filename for it.
10696 * stack.c (frame_info): Likewise.
10697 * symmisc.c: Include source.h.
10698 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10699 (maintenance_info_symtabs): Replace symtab->filename refererences by
10700 symtab_to_filename_for_display calls.
10701 * symtab.c (iterate_over_some_symtabs): Call
10702 compare_filenames_for_search also with symtab_to_fullname.
10703 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10704 symtab->filename refererences by symtab_to_filename_for_display calls.
10705 (find_line_symtab): Replace symtab->filename refererences by
10706 symtab_to_filename_for_display calls.
10707 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10708 (print_symbol_info): Make the last parameter const char *. New
10709 variable s_filename. Use it in the function.
10710 (symtab_symbol_info): Make the last_filename variable const char *.
10711 Replace symtab->filename refererences by symtab_to_filename_for_display
10712 calls.
10713 (rbreak_command): New variable fullname. Use it. Replace
10714 symtab->filename refererence by symtab_to_filename_for_display call.
10715 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10716 (print_one_static_tracepoint_marker): Replace symtab->filename
10717 refererences by symtab_to_filename_for_display calls.
10718 * tui/tui-source.c (tui_set_source_content): New variables filename and
10719 s_filename. Replace symtab->filename refererences by this variable.
10720 Replace other symtab->filename refererences by
10721 symtab_to_filename_for_display calls.
10722
1b56eb55
JK
107232013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10724 Jan Kratochvil <jan.kratochvil@redhat.com>
10725
10726 Add a new variable that controls a way in which filenames are
10727 displayed.
10728 * NEWS (set filename-display): New entry.
10729 * source.c (filename_display_basename, filename_display_relative)
10730 (filename_display_absolute, filename_display_kind_names)
10731 (filename_display_string, show_filename_display_string)
10732 (symtab_to_filename_for_display): New.
10733 (_initialize_source): Added initialization of 'filename-display'
10734 variable.
10735 * source.h (symtab_to_filename_for_display): Added declaration.
10736 * stack.c (print_frame): Added new variable and calling of a new
10737 function and condition with this variable. Changed third argument of
10738 calling of a function.
10739
aa079c93
JK
107402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10741
10742 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10743 Rename field reference filename to fullname.
10744 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10745 fullname. New comment for it.
10746 * tui/tui-source.c (tui_set_source_content): Rename field reference
10747 filename to fullname. Initialize field by symtab_to_fullname now.
10748 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10749 reference filename to fullname. Use symtab_to_fullname during
10750 comparison.
10751
652a8996
JK
107522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 Code cleanup.
10755 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10756 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10757 filename to fullname. Rename variable this_name to this_fullname.
10758 Lowercase FILENAME_CMP call.
10759 (dw2_find_symbol_file): New comment for the returned string.
10760 (dwarf2_gdb_index_functions): Rename the function to
10761 dw2_expand_symtabs_with_fullname.
10762 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10763 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10764 fullname.
10765 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10766 * symfile.h (struct quick_symbol_functions): Rename field
10767 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10768 parameter filename to fullname. Document returned string meaning for
10769 find_symbol_file.
10770 * symtab.c (find_line_symtab): Rename the called function to
10771 expand_symtabs_with_fullname.
10772
af529f8f
JK
107732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 Code cleanup.
10776 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10777 call of filename_cmp with compare_filenames_for_search.
10778 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10779 is_abs, unify the call of FILENAME_CMP with
10780 compare_filenames_for_search. New gdb_asserts for real_path and name.
10781 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10782 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10783 * symfile.h (struct quick_symbol_functions): Extend the comment for
10784 map_symtabs_matching_filename.
10785 * symtab.c (compare_filenames_for_search): Remove the function comment
10786 relative path requirement. Handle absolute filenames, with a comment.
10787 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10788 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10789 real_path and name. Unify the call of compare_filenames_for_search
10790 with FILENAME_CMP.
10791 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10792
2f202fde
JK
107932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 Code cleanup.
10796 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10797 source_file references by symtab field references. Remove variables
10798 sal and fullname.
10799 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10800 (clear_command, say_where): Replace bp_location field source_file
10801 references by symtab field references.
10802 (bp_location_dtor): Remove the source_file reference.
10803 (update_static_tracepoint): Replace bp_location field source_file
10804 references by symtab field references.
10805 (breakpoint_free_objfile): New function.
10806 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10807 Replace the field source_file by field symtab, extend its comment.
10808 (breakpoint_free_objfile): New declaration.
10809 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10810 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10811 field source_file references by symtab field references.
10812
f5b95b50
JK
108132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10814
10815 Replace xfullpath calls by gdb_realpath calls.
10816 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10817 function comment.
10818 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10819 Remove it from the iterate_over_some_symtabs call.
10820 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10821 Remove it from the dw2_map_expand_apply calls, remove a block handling
10822 it.
10823 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10824 Remove it from the iterate_over_some_symtabs call.
10825 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10826 Remove it from the partial_map_expand_apply calls, remove a block
10827 handling it. Drop gdb_realpath call and cleanups from the real_path
10828 handling.
10829 * source.c (openp): Drop the comment part about xfullpath. Replace
10830 xfullpath calls by gdb_realpath calls.
10831 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10832 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10833 from method map_symtabs_matching_filename and its comment.
10834 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10835 gdb_realpath call.
10836 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10837 remove it also from the function comment, remove a block handling it.
10838 Drop gdb_realpath call and cleanups from the real_path handling.
10839 (iterate_over_symtabs): Drop variable full_path and its use.
10840 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10841 * utils.c (xfullpath): Remove.
10842 * utils.h (xfullpath): Remove.
10843
d78489bf
AT
108442013-02-01 Andreas Tobler <andreast@fgznet.ch>
10845
10846 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10847 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10848 (ALLDEPFILES): Add ppc64-tdep.c.
10849 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10850 ppc64-tdep.o to gdb_target_obs.
10851 * ppc64-tdep.h: New file.
10852 * ppc64-tdep.c: New file.
10853 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10854 ppc-linux-tdep.c to here.
10855 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10856 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10857 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10858 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10859 from ppc-linux-tdep.c to here.
10860 (ppc64_convert_from_func_ptr_addr): Rename from
10861 ppc64_linux_convert_from_func_ptr_addr to
10862 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10863 here.
10864 * rs6000-tdep.c:
10865 (read_insn): Move from ppc-linux-tdep.c to here.
10866 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10867 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10868 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10869 Removed above functions.
10870 (ppc_linux_init_abi): Adjust.
10871
8db60374
AR
108722013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10873
10874 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10875
f2e5f4ce
AR
108762013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10877
10878 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10879
c1f7d745
PA
108802013-02-01 Pedro Alves <palves@redhat.com>
10881
10882 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10883 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10884
8a92335b
JK
108852013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10886
10887 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10888 files with no separate debug info.
10889 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10890 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10891 only for files with no separate debug info.
10892
8eacb197
TT
108932013-01-31 Tom Tromey <tromey@redhat.com>
10894
10895 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10896 change type.
10897 (struct jit_program_space_data): Rename from jit_inferior_data.
10898 Update comments.
10899 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10900 Change return type. Attach data to program space.
10901 (jit_program_space_data_cleanup): Rename from
10902 jit_inferior_data_cleanup; change argument type.
10903 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10904 change type.
10905 (jit_register_code): Update.
10906 (jit_update_inferior_cache): Remove.
10907 (jit_breakpoint_deleted): Get jit data from the location's program
10908 space.
10909 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10910 'ps_data', change type.
10911 (jit_inferior_init, jit_breakpoint_re_set_internal)
10912 (jit_event_handler): Update.
10913 (free_objfile_data): Get data from objfile's program space.
10914 (_initialize_jit): Update.
10915
f25c0135
TT
109162013-01-31 Tom Tromey <tromey@redhat.com>
10917
10918 PR gdb/13987:
10919 * jit.c (struct jit_inferior_data) <cached_code_address,
10920 jit_breakpoint>: New fields.
10921 (jit_breakpoint_re_set_internal): Fix logging. Only create
10922 breakpoint if cached address has changed.
10923 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10924 functions.
10925 (_initialize_jit): Register breakpoint deleted observer.
10926
974a734b
AR
109272013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10928
10929 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10930 (save_infcall_suspend_state): Ifdef out unused inf.
10931 (restore_infcall_suspend_state): Ifdef out unused inf.
10932 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10933 (jit_frame_sniffer): Remove unused inf_data.
10934
df54f8eb
AR
109352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10936
10937 * c-exp.y (classify_inner_name): Remove unused type.
10938 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10939 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10940 need_escape.
10941 (c_get_string): Remove unused kind.
10942 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10943
5799c0b9
AR
109442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10945
10946 * charset.c (intermediate_encoding): Remove unused i.
10947 * completer.c (signal_completer): Remove unused i.
10948 * continuations.c (discard_my_continuations_1): Remove unused
10949 continuation_ptr.
10950 * corelow.c (core_close): Remove unuseD name.
10951 (get_core_siginfo): Remove unused pid.
10952 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10953 i, cps.
10954 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10955 (loclist_describe_location): Remove unused first.
10956 * event-top.c (command_line_handler): Remove unused got_eof.
10957 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10958 (resize_section_table): Remove unused old_value.
10959 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10960 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10961 * i386-tdep.c (i386_process_record): Remove unused rex.
10962 * infcmd.c (get_return_value): Remove unused uiout.
10963 * jv-lang.c (type_from_class): Remove unused is_array.
10964 * jv-valprint.c (java_val_print): Remove unused i.
10965 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10966 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10967 * m2-typeprint.c (m2_print_type): Remove unused code.
10968 * macroexp.c (get_character_constant): Remove unused body_start.
10969 (macro_stringify): Remove unused result.
10970 * objc-lang.c (find_methods): Remove unused gdbarch.
10971 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10972 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10973 * stack.c (print_frame_args): Remove unused summary.
10974 * thread.c (thread_apply_command): Remove unused p.
10975 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10976 * valops.c (search_struct_method): Remove unused skip.
10977 * valprint.c (generic_val_print): Remove unused byte_order.
10978 * varobj.c (varobj_update): Remove unused changed.
10979 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10980 (alias_command): Remove unused c.
10981 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10982 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10983 format.
10984 (mi_cmd_data_write_memory): Remove unused word_format.
10985 (mi_cmd_data_write_memory_bytes): Remove unused r.
10986 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10987 p_start, p_end.
10988 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10989 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10990 line_width.
10991
c656bca5
AR
109922013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10993
10994 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10995 * symtab.c (iterate_over_symtabs): Remove unused s.
10996 (find_pc_sect_symtab): Remove unused pspAce.
10997 (find_pc_sect_line): Remove unused alt_symtab.
10998 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10999 (completion_list_add_name): Remove unused newsize.
11000
7078baeb
TT
110012013-01-31 Tom Tromey <tromey@redhat.com>
11002
11003 PR c++/14998:
11004 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11005 TYPE_CODE_FUNC.
11006
c2e8b827
AR
110072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11008
11009 * target.c (target_read_string): Remove unused origlen.
11010
0e43993a
AR
110112013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11012
11013 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11014 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11015 * ax-general.c (ax_print): Remove unused is_float.
11016 * blockframe.c (block_innermost_frame): Remove unused start, end.
11017 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11018
765a97ab
AR
110192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11020
11021 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11022 (svr4_read_so_list): Remove unused lmo.
11023 * solib-target.c (solib_target_relocate_section_addresses): Remove
11024 unused flags.
11025
a99dad3d
TT
110262013-01-30 Tom Tromey <tromey@redhat.com>
11027
11028 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11029
3bff1ecd
TT
110302013-01-30 Tom Tromey <tromey@redhat.com>
11031
11032 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11033 * utils.c (gnu_debuglink_crc32): Remove.
11034 * utils.h (gnu_debuglink_crc32): Don't declare.
11035
7d455152
TT
110362013-01-30 Tom Tromey <tromey@redhat.com>
11037
11038 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11039 (read_structure_type, read_enumeration_type): Remove cast.
11040
abee88f2
TT
110412013-01-30 Tom Tromey <tromey@redhat.com>
11042
11043 * dwarf2read.c (read_namespace_type): Remove cast.
11044 (read_typedef): Likewise.
11045
8d9878a4
TT
110462013-01-29 Tom Tromey <tromey@redhat.com>
11047
11048 * dwarf2read.c (free_dwo_file): Remove assert.
11049
a543d2a9
TT
110502013-01-29 Tom Tromey <tromey@redhat.com>
11051
11052 * value.c (deprecated_set_value_modifiable): Remove.
11053 * value.h (deprecated_set_value_modifiable): Remove.
11054
bed911e5
DE
110552013-01-28 Doug Evans <dje@google.com>
11056
11057 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11058 to addresses from dwo files.
11059
28c64fc2
SCR
110602013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11061
11062 * valops.c (find_overload_match): Remove unused argument 'lax'.
11063 * value.h: Remove unused argument 'lax' from the declaration of
11064 find_overload_match.
11065 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11066 to find_overload_match.
11067 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11068 argument to find_overload_match.
11069
4d4ec4e5
TT
110702013-01-25 Tom Tromey <tromey@redhat.com>
11071
11072 * dwarf2read.c (processing_has_namespace_info): Remove.
11073 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11074 (process_die, read_func_scope, dwarf2_start_symtab)
11075 (new_symbol_full): Update.
11076
195a3f6c
TT
110772013-01-25 Tom Tromey <tromey@redhat.com>
11078
11079 * cp-namespace.c (cp_set_block_scope): Remove.
11080 * cp-support.h (cp_set_block_scope): Remove.
11081 * dbxread.c: Include block.h.
11082 (cp_set_block_scope): New function.
11083 (process_one_symbol): Update.
11084 * dwarf2read.c (read_func_scope): Use block_set_scope.
11085
8ba0730a
PA
110862013-01-25 Pedro Alves <palves@redhat.com>
11087
11088 * remote.c (add_current_inferior_and_thread): Tweak comment.
11089
12aaed36
TT
110902013-01-25 Tom Tromey <tromey@redhat.com>
11091
11092 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11093 (cp_add_using_directive): Add 'copy_names' argument.
11094 * cp-support.h (cp_add_using_directive): Update.
11095 (struct using_direct) <import_src, import_dest, alias,
11096 declaration>: Now const.
11097 * dwarf2read.c (read_import_statement): Use obconcat.
11098 Don't copy names passed to cp_add_using_directive.
11099
7fc75ca7
TT
111002013-01-25 Tom Tromey <tromey@redhat.com>
11101
11102 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11103
3405876a
PA
111042013-01-25 Pedro Alves <palves@redhat.com>
11105
11106 * remote.c (stop_reply_extract_thread): New.
11107 (add_current_inferior_and_thread): New parameter 'wait_status'.
11108 Handle it.
11109 (remote_start_remote): Pass wait status to
11110 add_current_inferior_and_thread.
11111 (extended_remote_run): Update comment.
11112 (extended_remote_create_inferior_1): Pass wait status to
11113 add_current_inferior_and_thread.
11114
8954db33
AB
111152013-01-25 Andrew Burgess <aburgess@broadcom.com>
11116 Ulrich Weigand <uweigand@de.ibm.com>
11117
11118 * valarith.c (value_vector_widen): New function for replicating a
11119 scalar into a vector.
11120 (value_binop): Use value_vector_widen to widen scalar to vector
11121 rather than casting, this better matches gcc C behaviour.
11122 * valops.c (value_casst): Update logic for casting between vector
11123 types, and for casting from scalar to vector, try to match gcc C
11124 behaviour.
11125 * value.h (value_vector_widen): Declare.
11126 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11127 function, handle special case for casting scalar to vector.
11128 (opencl_relop): Use opencl_value_cast.
11129 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11130 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11131 in order to use opencl_value_cast.
11132
843b20dc
YQ
111332013-01-25 Yao Qi <yao@codesourcery.com>
11134
11135 * event-loop.c: Include "queue.h".
11136 (gdb_event_p): New typedef.
11137 (DECLARE_QUEUE_P): Use.
11138 (DEFINE_QUEUE_P): Use.
11139 (async_queue_event): Remove.
11140 (gdb_event_xfree): New.
11141 (initialize_event_loop): New.
11142 (process_event): Use QUEUE macros.
11143 (event_queue): Remove.
11144 (gdb_wait_for_event): Caller update.
11145 (check_async_event_handlers): Likewise.
11146 (poll_timers): Likewise.
11147 * event-loop.h (initialize_event_loop): Declare.
11148 * event-loop.c (gdb_event_xfree): New.
11149 * top.c (gdb_init): Call initialize_event_loop.
11150
20ad8856
YQ
111512013-01-25 Yao Qi <yao@codesourcery.com>
11152
11153 * event-loop.c (async_queue_event): Remove one parameter
11154 'position'. Remove code handling 'position' == TAIL.
11155 (gdb_wait_for_event): Caller update.
11156 (check_async_event_handlers): Caller update.
11157 (poll_timers): Caller update.
11158 * event-loop.h (enum queue_position): Remove.
11159
3bbbe775
MK
111602013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11161
11162 * MAINTAINERS: Update my email.
11163
a87d9ac4
YQ
111642013-01-25 Yao Qi <yao@codesourcery.com>
11165
11166 * main.c (print_gdb_help): Remove "--epoch" from the help
11167 message.
11168
2077afdd
TD
111692013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11170
11171 * symtab.c (skip_prologue_using_sal): Consider a file
11172 change the same as an increased line number
11173
63da4037
TD
111742013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11175
30e8ee25 11176 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11177
45e6c716
TT
111782013-01-24 Tom Tromey <tromey@redhat.com>
11179
11180 * ada-lang.h (ada_decode_symbol): Make return type const.
11181 * ada-lang.c (ada_decode_symbol): Likewise.
11182
b1ae631a
DE
111832013-01-23 Doug Evans <dje@google.com>
11184
11185 * linespec.c (find_linespec_symbols): Make static.
11186
55a78401
SDJ
111872013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11188
11189 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11190 type on float conversion for complex type.
11191
bea883fd
SCR
111922013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11193
11194 Add a new class gdb.Architecture which exposes GDB's
11195 internal representation of architecture via GDB Python API.
11196 * Makefile.in: Add entries corresponding to the new file
11197 python/py-arch.c.
11198 * NEWS (Python Scripting): Add entries for the new class
11199 gdb.Architecture and the new method gdb.Frame.architecture.
11200 * python/py-arch.c: Implement gdb.Architecture class.
11201 * python/py-frame.c (frapy_arch): Implement the method
11202 gdb.Frame.architecture().
11203 (frame_object_methods): Add 'architecture' to the method table.
11204 * python/python-internal.h: Add declarations of new utility
11205 functions.
11206 * python/python.c (_initialize_python): Initialize
11207 gdb.Architecture class.
11208
796a7ff8
DE
112092013-01-23 Doug Evans <dje@google.com>
11210
11211 Work around binutils/15021.
11212 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11213 type_unit_group out of union s. All uses updated.
11214 (read_index_from_section): Watch for index version 8.
11215 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11216 an imported symtab.
11217 (write_psymtabs_to_index): Increment version number to 8.
11218
0928e93d
PA
112192013-01-22 Pedro Alves <palves@redhat.com>
11220
11221 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11222 user-visible.
11223
9c97429f
PA
112242013-01-22 Pedro Alves <palves@redhat.com>
11225
11226 * annotate.c (annotate_breakpoints_changed): Rename to ...
11227 (annotate_breakpoints_invalid): ... this. Make static.
11228 (breakpoint_changed): Adjust.
11229 (_initialize_annotate): Always install the observers. Install a
11230 "breakpoint_created" observer.
11231 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11232 * breakpoint.c (set_breakpoint_condition)
11233 (breakpoint_set_commands, do_map_commands_command)
11234 (init_raw_breakpoint, clear_command, set_ignore_count)
11235 (enable_breakpoint_disp): No longer call
11236 annotate_breakpoints_changed.
11237
bd00c694
PA
112382013-01-22 Pedro Alves <palves@redhat.com>
11239
11240 * annotate.c: Include "inferior.h".
11241 (frames_invalid_emitted)
11242 (breakpoints_invalid_emitted): New globals.
11243 (async_background_execution_p): New function.
11244 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11245 emitting the annotation if it has already been emitted.
11246 (annotate_display_prompt): New function.
11247 * annotate.h (annotate_display_prompt): New declaration.
11248 * event-top.c: Include annotate.h.
11249 (display_gdb_prompt): Call annotate_display_prompt.
11250
187d10dd
PA
112512013-01-22 Pedro Alves <palves@redhat.com>
11252
11253 * annotate.c (ignore_count_changed): Delete.
11254 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11255 (annotate_ignore_count_change): Delete.
11256 (annotate_stopped): Don't emit a delayed breakpoints-changed
11257 annotation.
11258 * annotate.h (annotate_ignore_count_change): Delete.
11259 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11260 annotate_ignore_count_change.
11261
d84cf7eb
TT
112622013-01-22 Tom Tromey <tromey@redhat.com>
11263
11264 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11265 require_rvalue for a register location.
11266
8f1d5693
MK
112672013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11268
11269 * breakpoint.c (print_one_breakpoint_location): Add MI
11270 field 'thread-groups' when printing a breakpoint.
11271 (output_thread_groups): New function.
11272
aa6199c6
SCR
112732013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11274
11275 * python/lib/gdb/commands/explore.py
11276 (CompoundExplorer.explore_expr): Correct the name of a method
11277 being invoked.
11278 (ExploreTypeCommand.invoke): Add a missing 'return'.
11279
d2afef13
TT
112802013-01-21 Tom Tromey <tromey@redhat.com>
11281
11282 * gdb_obstack.h (obconcat): Move declaration here, from...
11283 * symfile.h (obconcat): ... here.
11284 * gdb_obstack.c: New file.
11285 (obconcat): Move from...
11286 * symfile.c (obconcat): ... here.
11287 * Makefile.in (SFILES): Add gdb_obstack.c.
11288 (COMMON_OBS): Add gdb_obstack.o.
11289
10f0c4bb
TT
112902013-01-21 Tom Tromey <tromey@redhat.com>
11291
11292 * symfile.h (obsavestring): Don't declare.
11293 * symfile.c (obsavestring): Remove.
11294 * ada-exp.y: Use obstack_copy0, not obsavestring.
11295 * ada-lang.c: Use obstack_copy0, not obsavestring.
11296 * coffread.c: Use obstack_copy0, not obsavestring.
11297 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11298 * dbxread.c: Use obstack_copy0, not obsavestring.
11299 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11300 * jit.c: Use obstack_copy0, not obsavestring.
11301 * mdebugread.c: Use obstack_copy0, not obsavestring.
11302 * psymtab.c: Use obstack_copy0, not obsavestring.
11303 * stabsread.c: Use obstack_copy0, not obsavestring.
11304 * xcoffread.c: Use obstack_copy0, not obsavestring.
11305
86f62fd7
TT
113062013-01-21 Tom Tromey <tromey@redhat.com>
11307
11308 * dwarf2read.c (fixup_go_packaging): Save package name
11309 on objfile obstack.
11310 * gdbtypes.c (init_type): Don't copy name.
11311
15d034d0
TT
113122013-01-21 Tom Tromey <tromey@redhat.com>
11313
11314 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11315 const.
11316 (struct attribute) <u.str>: Now const.
11317 (struct fnfieldlist) <name>: Now const.
11318 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11319 (partial_die_parent_scope): Make return type const.
11320 (partial_die_full_name, add_partial_symbol): Update.
11321 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11322 'name' const.
11323 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11324 (read_file_scope, read_func_scope, dwarf2_add_field)
11325 (dwarf2_add_member_fn, read_structure_type)
11326 (process_enumeration_scope, read_array_type, read_module_type)
11327 (read_base_type, read_subrange_type): Update.
11328 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11329 (new_symbol_full, guess_full_die_structure_name): Update.
11330 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11331 (dwarf2_name): Return const type.
11332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11333 const.
11334
748e18ae
TT
113352013-01-21 Tom Tromey <tromey@redhat.com>
11336
11337 * gdbtypes.c (init_type): Make 'name' const.
11338 * gdbtypes.h (init_type): Update.
11339
46212e0b
TT
113402013-01-21 Tom Tromey <tromey@redhat.com>
11341
11342 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11343 (start_symtab): Make 'name' and 'dirname' const. Use
11344 set_last_source_file.
11345 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11346 (last_source_file): Define. Now static.
11347 (set_last_source_file, get_last_source_file): New functions.
11348 * buildsym.h (last_source_file): Don't declare.
11349 (start_symtab): Update.
11350 (set_last_source_file, get_last_source_file): Declare.
11351 * coffread.c (complete_symtab): Use set_last_source_file.
11352 (coff_end_symtab): Likewise.
11353 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11354 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11355 set_last_source_file.
11356 (process_one_symbol): Use get_last_source_file.
11357 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11358 (psymtab_to_symtab_1): Use get_last_source_file.
11359 * xcoffread.c (process_linenos): Use get_last_source_file.
11360 (complete_symtab): Use set_last_source_file.
11361 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11362 (scan_xcoff_symtab): Use set_last_source_file.
11363
9d2ceabe
TT
113642013-01-21 Tom Tromey <tromey@redhat.com>
11365
11366 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11367 (symbol_set_names): Remove casts. Handle field const-ness.
11368
cfc594ee
TT
113692013-01-21 Tom Tromey <tromey@redhat.com>
11370
11371 * dwarf2read.c (new_symbol_full): Remove cast.
11372 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11373 * symtab.h (symbol_set_demangled_name): Update.
11374
5484b13a
TT
113752013-01-21 Tom Tromey <tromey@redhat.com>
11376
11377 * main.c (captured_main): Call bfd_init.
11378
1605ef26
TT
113792013-01-21 Tom Tromey <tromey@redhat.com>
11380
11381 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11382 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11383 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11384 * NEWS: Update.
11385
3b74cdc3
JK
113862013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11387
11388 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11389
5a352474
JK
113902013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11391
11392 Fix gdb.fortran/common-block.exp crash in PIE mode.
11393 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11394 LOC_COMMON_BLOCK.
11395 * f-valprint.c (info_common_command_for_block): Expect
11396 LOC_COMMON_BLOCK in gdb_assert.
11397 * symtab.h (struct general_symbol_info): Update comment for the
11398 common_block member.
11399 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11400 (enum address_class): New member LOC_COMMON_BLOCK.
11401
c60797fd
DB
114022013-01-18 David Blaikie <dblaikie@gmail.com>
11403
11404 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11405
46f35228
TT
114062013-01-18 Tom Tromey <tromey@redhat.com>
11407
11408 PR c++/14999:
11409 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11410 Call require_rvalue.
11411
257e7a09
YQ
114122013-01-18 Yao Qi <yao@codesourcery.com>
11413
11414 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11415 (dbx_read_symtab): New declaration.
11416 (dbx_psymtab_to_symtab): Delete.
11417 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11418 Rename parameter PST to SELF. Exchanged two parameters.
11419 (start_psymtab): Caller update.
11420 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11421 (dwarf2_read_symtab): New declaration.
11422 (dwarf2_psymtab_to_symtab): Delete.
11423 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11424 Rename parameter PST to SELF. Exchanged two parameters.
11425 (create_partial_symtab): Caller update.
11426 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11427 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11428 Rename parameter PST to SELF. Exchanged two parameters.
11429 (parse_partial_symbols, new_psymtab): Caller update.
11430 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11431 two parameters.
11432 * psymtab.c (psymtab_to_symtab): Caller update.
11433 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11434 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11435 Rename parameter PST to SELF. Exchanged two parameters.
11436 (xcoff_start_psymtab): Caller update.
11437
0de5618e
YQ
114382013-01-18 Yao Qi <yao@codesourcery.com>
11439
11440 * infrun.c (proceed): Rename local variable 'oneproc' to
11441 'force_step'.
11442
5c04624b
DE
114432013-01-17 Doug Evans <dje@google.com>
11444
848e3e78
DE
11445 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11446 (dw2_build_type_unit_groups): Delete. All uses updated.
11447
5c04624b
DE
11448 * symtab.h (struct symbol_search): Add comment.
11449
d84fca2c
JK
114502013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11451
11452 * symtab.c (compare_filenames_for_search): New comment for
11453 HAS_DRIVE_SPEC.
11454
6108433d
TT
114552013-01-17 Tom Tromey <tromey@redhat.com>
11456
11457 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11458
c89ffd86
JK
114592013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11460
11461 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11462 initialize it by existing make_cleanup. Call new do_cleanups.
11463
db2b2972
TT
114642013-01-17 Tom Tromey <tromey@redhat.com>
11465
11466 * cp-abi.c (cp_abi_completer): New function.
11467 (_initialize_cp_abi): Set completer for "set cp-abi".
11468
be7d37a2
TT
114692013-01-17 Tom Tromey <tromey@redhat.com>
11470
11471 * mem-break.c: Remove obsolete comment.
11472 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11473
c9fb1240
SD
114742012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11475
11476 * jit.c (jit_reader_load_command): Interpret the jit reader name
11477 as an absolute path if it begins with a forward slash.
11478
db334a01
SD
114792012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11480
11481 PR gdb/14550
11482
11483 * jit.c (finalize_symtab): Ensure that only the global block has a
11484 NULL superblock.
11485
7d928dac
PA
114862013-01-17 Pedro Alves <palves@redhat.com>
11487
11488 * acinclude.m4: Include ../config/plugins.m4,
11489 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11490 * Makefile.in (aclocal_m4_deps): Update.
11491 * aclocal.m4: Renegerate.
11492
fb8cf7c5
DE
114932013-01-16 Doug Evans <dje@google.com>
11494
11495 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11496
ab04a2af
TT
114972013-01-16 Pedro Alves <palves@redhat.com>
11498 Tom Tromey <tromey@redhat.com>
11499
11500 PR cli/7221:
11501 * NEWS: Add "catch signal".
11502 * breakpoint.c (base_breakpoint_ops): No longer static.
11503 (bpstat_explains_signal): New function.
11504 (init_catchpoint): No longer static.
11505 (base_breakpoint_explains_signal): New function.
11506 (base_breakpoint_ops): Initialize new field.
11507 * breakpoint.h (enum bpstat_signal_value): New.
11508 (struct breakpoint_ops) <explains_signal>: New field.
11509 (bpstat_explains_signal): Remove macro, declare as function.
11510 (base_breakpoint_ops, init_catchpoint): Declare.
11511 * break-catch-sig.c: New file.
11512 * inferior.h (signal_catch_update): Declare.
11513 * infrun.c (signal_catch): New global.
11514 (handle_syscall_event): Update for change to
11515 bpstat_explains_signal.
11516 (handle_inferior_event): Likewise. Always handle random signals
11517 via bpstats.
11518 (signal_cache_update): Check signal_catch.
11519 (signal_catch_update): New function.
11520 (_initialize_infrun): Initialize signal_catch.
11521 * Makefile.in (SFILES): Add break-catch-sig.c.
11522 (COMMON_OBS): Add break-catch-sig.o.
11523
8ac3646f
TT
115242013-01-16 Tom Tromey <tromey@redhat.com>
11525
11526 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11527 (print_one_catch_solib, print_one_catch_syscall)
11528 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11529 "catch-type".
11530
5a18e302
YQ
115312013-01-16 Yao Qi <yao@codesourcery.com>
11532
11533 * printcmd.c (current_display_number): Make it static.
11534
3f01d0d0
YQ
115352013-01-16 Yao Qi <yao@codesourcery.com>
11536
11537 * infcmd.c (step_once): Don't check '!single_inst' as it was
11538 checked before.
11539
1ed59174
JK
115402013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11541
11542 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11543
44478ab3
TT
115442013-01-14 Tom Tromey <tromey@redhat.com>
11545
11546 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11547 set command.
11548 * command.h (add_setshow_string_noescape_cmd): Update.
11549 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11550 (complete_set_gnutarget): New function.
11551 (_initialize_core): Set the "set gnutarget" completer.
11552
06d66ee9
TT
115532013-01-14 Tom Tromey <tromey@redhat.com>
11554
11555 PR symtab/14442:
11556 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11557 (c_type_print_modifier): Likewise.
11558 * dwarf2read.c (read_tag_restrict_type): New function.
11559 (read_type_die_1): Handle DW_TAG_restrict_type.
11560 * gdbtypes.c (make_restrict_type): New function.
11561 (recursive_dump_type): Handle TYPE_RESTRICT.
11562 * gdbtypes.h (enum type_flag_values): Renumber.
11563 (enum type_instance_flag_value): Add
11564 TYPE_INSTANCE_FLAG_RESTRICT.
11565 (TYPE_RESTRICT): New macro.
11566 (make_restrict_type): Declare.
11567
c9bf0622
TT
115682013-01-14 Tom Tromey <tromey@redhat.com>
11569
11570 PR symtab/14931:
11571 * psymtab.c (struct psymtab_state): New.
11572 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11573 functions.
11574 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11575 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11576
44d594fd
PA
115772013-01-14 Richard Sharman <richard_sharman@mitel.com>
11578 Pedro Alves <palves@redhat.com>
11579
11580 PR remote/14786
11581
11582 * remote.c (remote_threads_info): Make a copy of the reply from
11583 qfThreadInfo and use that instead of rs->buf.
11584
442e4d9c
YQ
115852013-01-14 Yao Qi <yao@codesourcery.com>
11586
11587 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11588 (dbx_psymtab_to_symtab): Likewise.
11589 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11590 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11592
5b12a61c
JK
115932013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11594
11595 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11596 make_cleanup_restore_current_language. Call set_language. Move
11597 OLD_CHAIN and INNER_CHAIN cleanups.
11598 * utils.c (do_restore_current_language)
11599 (make_cleanup_restore_current_language): New functions.
11600 * utils.h (make_cleanup_restore_current_language): New declaration.
11601
f0a4b570
JK
116022013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11605 non-existing files.
11606
57b3c00c
JK
11607 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11608 non-existing files if FILENAME is already absolute.
11609
daefa854
JK
116102013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11611
11612 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11613 fputs_filtered. Append trailing newline.
11614
ca9c6ee2
YQ
116152013-01-11 Yao Qi <yao@codesourcery.com>
11616 Stan Shebs <stan@codesourcery.com>
11617
11618 * psymtab.c (init_psymbol_list): Clarify the comment.
11619
f28045c2
YQ
116202013-01-11 Yao Qi <yao@codesourcery.com>
11621
11622 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11623 (update_dprintf_command_list): Assert that 'printf_line' is
11624 non-null. Remove condition check.
11625
da5132d3
JK
116262013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11627
11628 Code cleanup.
11629 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11630 type const char *.
11631 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11632 const char *.
11633 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11634
843e694d
AG
116352013-01-09 Anthony Green <green@moxielogic.com>
11636
11637 * cp-abi.c (cplus_print_vtable): Don't return value from void
11638 function.
11639 * ada-lang.c (re_set_catch_assert): Ditto.
11640
da51c347
DE
116412013-01-09 Doug Evans <dje@google.com>
11642
11643 * symfile.h (quick_symbol_functions): Delete member
11644 pre_expand_symtabs_matching. All uses removed.
11645 * dwarf2read.c (dw2_lookup_symbol): Implement.
11646 (dw2_do_expand_symtabs_matching): Delete.
11647 (dw2_pre_expand_symtabs_matching): Delete.
11648 (struct dw2_symtab_iterator): New type.
11649 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11650 (dw2_expand_symtabs_for_function): Rewrite.
11651 (dwarf2_gdb_index_functions): Update.
11652 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11653 (psym_functions): Update.
11654
b2259038
TT
116552013-01-09 Tom Tromey <tromey@redhat.com>
11656
11657 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11658 * configure: Rebuild.
11659 * configure.ac: Add somread.o to the build if BFD has SOM
11660 support.
11661 * somread.c: Include som/aout.h, not syms.h.
11662 (som_symtab_read): Use som_external_symbol_dictionary_record.
11663 Unpack records manually.
11664 (_initialize_somread): Declare.
11665
bdad4180
MF
116662012-01-08 Mike Frysinger <vapier@gentoo.org>
11667
11668 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11669 Cast return_address to 64bits.
11670
03cdf680
HZ
116712013-01-08 Hui Zhu <hui_zhu@mentor.com>
11672
11673 * printcmd.c: Remove define of function output_command.
11674 * tracepoint.c: Remove extern of function output_command.
11675 * valprint.h: (output_command): New extern.
11676
8a808554
TT
116772013-01-07 Tom Tromey <tromey@redhat.com>
11678
11679 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11680 Remove.
11681 (objc_language_defn): Use c_printchar, c_printstr,
11682 c_emit_char.
11683
e93a8774
TT
116842013-01-07 Tom Tromey <tromey@redhat.com>
11685
11686 PR cli/7719:
11687 * NEWS: Update.
11688 * ada-valprint.c (printstr, print_field_values): Remove
11689 "inspect_it" code.
11690 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11691 code.
11692 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11693 code.
11694 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11695 * main.c (captured_main): Remove "epoch" argument.
11696 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11697 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11698 * p-valprint.c (pascal_object_print_value_fields): Remove
11699 "inspect_it" code.
11700 * printcmd.c (print_command_1): Remove 'inspect' argument.
11701 (print_command, call_command): Update.
11702 (inspect_command): Remove.
11703 (_initialize_printcmd): Make "inspect" an alias for "print".
11704 * top.c (epoch_interface): Remove.
11705 * top.h (epoch_interface): Remove.
11706 * valprint.c (user_print_options): Update.
11707 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11708 * valprint.h (struct value_print_options) <inspect_it>: Remove
11709 field.
11710
117112013-01-04 Tom Tromey <tromey@redhat.com>
11712
11713 * valprint.h (read_string): Add 'extern'.
11714
b967eb24
JB
117152013-01-07 Joel Brobecker <brobecker@adacore.com>
11716
11717 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11718 used to decide whether to define darwin_read_dyld_info or not.
11719
78a8b30e
PM
117202013-01-03 Pierre Muller <muller@sourceware.org>
11721
11722 * main.c (relocate_gdb_directory): Avoid calling stat function
11723 if DIR is empty.
11724
50da2f25
YQ
117252013-01-03 Yao Qi <yao@codesourcery.com>
11726
11727 * psymtab.c (fixup_psymbol_section): Update declaration.
11728 (fixup_psymbol_section): Remove code returning value.
11729
e7e8980f
YQ
117302013-01-03 Yao Qi <yao@codesourcery.com>
11731
11732 * symtab.h: Remove some out of date comments.
11733 (enum exception_event_kind): Move it ...
11734 * breakpoint.c: ... here.
11735
569283d4
MF
117362013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11737
9f9d9a96 11738 PR gdb/14405
569283d4
MF
11739 * darwin-nat.c (darwin_read_dyld_info): Only build if
11740 TASK_DYLD_INFO_COUNT is defined.
11741 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11742 TASK_DYLD_INFO_COUNT is defined.
11743
2e36fbea
TT
117442013-01-02 Tom Tromey <tromey@redhat.com>
11745
11746 * symfile.h (struct ecoff_debug_hack): Remove.
11747 * objfiles.c: Don't include mdebugread.h.
11748
4f05add4
TT
117492013-01-02 Tom Tromey <tromey@redhat.com>
11750
11751 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11752 * configure.ac: Check for Mach-O support in BFD. Update
11753 CONFIG_OBS.
11754 * configure: Rebuild.
11755
def63ff0
TT
117562013-01-02 Tom Tromey <tromey@redhat.com>
11757
11758 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11759 * configure.ac: Use GDB_AC_CHECK_BFD.
11760 * configure: Rebuild.
11761
60c5dd93
MK
117622013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11763
11764 * MAINTAINERS: Update my email.
11765
6e58437e
JB
117662013-01-01 Joel Brobecker <brobecker@adacore.com>
11767
11768 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11769
627fe805
JB
117702013-01-01 Joel Brobecker <brobecker@adacore.com>
11771
11772 * rs6000-nat.c (bss_data_overlap): New function.
11773 (vmap_symtab): Use it to adjust the .bss section's offset.
11774
28e7fd62
JB
117752013-01-01 Joel Brobecker <brobecker@adacore.com>
11776
11777 Update year range in copyright notice of all files.
11778
e93a8774 117792013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11780
11781 * top.c (print_gdb_version): Update copyright year.
11782
72b20e9c 11783For older changes see ChangeLog-2012.
c906108c
SS
11784\f
11785Local Variables:
11786mode: change-log
11787left-margin: 8
11788fill-column: 74
11789version-control: never
57da7796 11790coding: utf-8
c906108c 11791End:
This page took 2.177867 seconds and 4 git commands to generate.