Change "set debug dwarf2-read" to take a verbosity level.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73be47f5
DE
12013-11-08 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
4 (create_debug_types_hash_table): Only print debugging messages for
5 each TU if dwarf2-read >= 2.
6 (process_queue): Ditto.
7 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
8 Update doc string.
9
a18d8f10
TT
102013-11-08 Tom Tromey <tromey@redhat.com>
11
12 * configure: Rebuild.
13 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
14
9467110b
TT
152013-11-08 Tom Tromey <tromey@redhat.com>
16
17 * configure, config.in: Rebuild.
18 * configure.ac: Remove unused configury.
19
69706679
TT
202013-11-08 Tom Tromey <tromey@redhat.com>
21
22 * m32c-tdep.c: Use gdb_string.h.
23
9b4bea72
TT
242013-11-08 Tom Tromey <tromey@redhat.com>
25
26 * configure, config.in: Rebuild.
27 * configure.ac: Remove all link.h-related checks.
28
3266f10b
TT
292013-11-08 Tom Tromey <tromey@redhat.com>
30
31 * acinclude.m4: Include common.m4.
32 * common/common.m4: New file.
33 * configure, config.in: Rebuild.
34 * configure.ac: Use GDB_AC_COMMON.
35
db0fec5c
DE
362013-11-08 Doug Evans <dje@google.com>
37
38 * NEWS: Mention that "set debug symtab-create" now accepts a
39 verbosity level.
40 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
41 to set the symtab's primary flag.
42 * jit.c (finalize_symtab): Ditto.
43 * mdebugread.c (psymtab_to_symtab_1): Ditto.
44 * symfile.c (allocate_symtab): Only print debugging messages for
45 symtab_create_debug levels 2 and higher.
46 * symtab.c (symtab_create_debug): Change type to unsigned int.
47 (set_symtab_primary): New function.
48 (_initialize_symtab): Change "set debug symtab-create" to a
49 zuinteger option.
50 * symtab.h (set_symtab_primary): Declare.
51 (symtab_create_debug): Update decl.
52
52554a0e
TT
532013-11-08 Tom Tromey <tromey@redhat.com>
54
55 * aix-thread.c (aix_thread_detach): Update.
56 * corelow.c (core_detach): Update.
57 * darwin-nat.c (darwin_detach): Update.
58 * dec-thread.c (dec_thread_detach): Update.
59 * gnu-nat.c (gnu_detach): Update.
60 * go32-nat.c (go32_detach): Update.
61 * inf-ptrace.c (inf_ptrace_detach): Update.
62 * inf-ttrace.c (inf_ttrace_detach): Update.
63 * linux-fork.c (linux_fork_detach): Update.
64 * linux-fork.h (linux_fork_detach): Update.
65 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
66 local for const-correctness.
67 * linux-thread-db.c (thread_db_detach): Update.
68 * monitor.c (monitor_detach): Update.
69 * nto-procfs.c (procfs_detach): Update.
70 * procfs.c (procfs_detach): Update.
71 * record.c (record_detach): Update.
72 * record.h (record_detach): Update.
73 * remote-m32r-sdi.c (m32r_detach): Update.
74 * remote-mips.c (mips_detach): Update.
75 * remote-sim.c (gdbsim_detach): Update.
76 * remote.c (remote_detach_1, remote_detach)
77 (extended_remote_detach): Update.
78 * sol-thread.c (sol_thread_detach): Update.
79 * target.c (target_detach): Make "args" const.
80 (init_dummy_target): Update.
81 * target.h (struct target_ops) <to_detach>: Make argument const.
82 (target_detach): Likewise.
83 * windows-nat.c (windows_detach): Update.
84
204b5331
DE
852013-11-07 Doug Evans <dje@google.com>
86
87 PR 11786
88 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
89 and align fields for PT_GNU_RELRO segments.
90
92e32e33
PM
912013-11-07 Phil Muldoon <pmuldoon@redhat.com>
92
93 PR python/15747
94 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
95
f76c27b5
PM
962013-11-07 Phil Muldoon <pmuldoon@redhat.com>
97
98 * NEWS: Document Python temporary breakpoint support.
99 * python/py-breakpoint.c (bppy_get_temporary): New function.
100 (bppy_init): New keyword: temporary. Parse it and set breakpoint
101 to temporary if True.
102
d52cd232
JM
1032013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
104
105 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
106 removed to allow analyzing unconditional branch instructions
107 with PC-relative offsets of zero.
108
fa4d0c40
YQ
1092013-11-07 Yao Qi <yao@codesourcery.com>
110
111 * mi/mi-cmd-var.c: Include "language.h".
112 (mi_cmd_var_info_expression): Get language name from
113 language_defn.
114 * varobj.c (varobj_language_string): Remove.
115 (variable_language): Remove declaration.
116 (languages): Remove.
117 (varobj_get_language): Change the type of return value.
118 (variable_language): Remove.
119 * varobj.h (enum varobj_languages): Remove.
120 (varobj_language_string): Remove declaration.
121 (varobj_get_language): Update declaration.
122
6abde28f
YQ
1232013-11-07 Yao Qi <yao@codesourcery.com>
124
125 * language.h (struct language_defn) <la_natural_name>: New
126 field.
127 * ada-lang.c (ada_language_defn): Initialize field
128 'la_natural_name'.
129 * c-lang.c (c_language_defn): Likewise.
130 (cplus_language_defn, asm_language_defn): Likewise.
131 * d-lang.c (d_language_defn): Likewise.
132 * f-lang.c (f_language_defn): Likewise.
133 * go-lang.c (go_language_defn): Likewise.
134 * jv-lang.c (java_language_defn): Likewise.
135 * language.c (unknown_language_defn ): Likewise.
136 (auto_language_defn): Likewise.
137 * m2-lang.c (m2_language_defn): Likewise.
138 * objc-lang.c (objc_language_defn): Likewise.
139 * opencl-lang.c (opencl_language_defn): Likewise.
140 * p-lang.c (pascal_language_defn): Likewise.
141
27cd387b
YQ
1422013-11-07 Yao Qi <yao@codesourcery.com>
143
144 * language.c (language_str): Return const char *.
145 (add_language): Add const to 'language_names'
146 * language.h (struct language_defn) <la_name>: Add const.
147 (language_str: Update declaration.
148
6682d959
AA
1492013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
150
151 * s390-linux-nat.c (s390_read_description): Consider the TE field
152 in the HWCAP for determining 'have_regset_tdb'.
153
b9502d3f
WN
1542013-11-06 Will Newton <will.newton@linaro.org>
155
156 PR gdb/12866
157 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
158 values. (read_partial_die): Likewise.
159
840da61a
MB
1602013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
161
162 PR cli/16122
163 * top.c (command_line_input): Unify interactivity tests to use
164 input_from_terminal_p.
165 * event-top.c (command_line_handler): Likewise.
166
7636ccf9
YQ
1672013-11-06 Yao Qi <yao@codesourcery.com>
168
169 * Makefile.in (check-perf): New target.
170
12b27276
WN
1712013-11-05 Will Newton <will.newton@linaro.org>
172
173 PR gdb/7670
174 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
175 (arm_print_float_info): Likewise.
176
67c059c2
AB
1772013-11-04 Anton Blanchard <anton@samba.org>
178
179 * target.c (memory_xfer_partial): Cap write to 4KB.
180
0569175e
TSD
1812013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
182
183 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
184 probe scan even when the arch provides no get_longjmp_target.
185
b18e90f5
PA
1862013-10-31 Pedro Alves <palves@redhat.com>
187
188 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
189 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
190 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
191 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
192 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
193 <bpstat handling>: If the bpstat chain wants the signal to be
194 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
195 GDB_SIGNAL_TRAP.
196
638aa5a1
AB
1972013-10-31 Andrew Burgess <aburgess@broadcom.com>
198
199 * breakpoint.c (update_watchpoint): Update error message and add
200 an additional error message.
201
0e5fae36
UW
2022013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
203
204 * s390-tdep.h: Rename to...
205 * s390-linux-tdep.h: ...here.
206 * s390-tdep.c: Rename to...
207 * s390-linux-tdep.c: ...here. Adjust #include.
208 * s390-nat.c: Rename to...
209 * s390-linux-nat.c: ...here. Adjust #include.
210 * config/s390/s390.mh: Rename to...
211 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
212 s390-linux-nat.o.
213 * configure.host: Reflect host rename "s390" -> "linux".
214 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
215 * Makefile.in (ALL_TARGET_OBS): Likewise.
216 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
217 s390-linux-tdep.h.
218 (ALLDEPFILES): Reflect rename of .c files.
219
34201ae3
UW
2202013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
221
222 * s390-nat.c: Whitespace cleanup.
223 * s390-tdep.c: Likewise.
224 * s390-tdep.h: Remove empty line at end of file.
225
e17aaa33
MR
2262013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
227
228 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
229 siginfo_size.
230
aee17e42
TT
2312013-10-29 Tom Tromey <tromey@redhat.com>
232
233 * utils.c (reg): Move undefinition...
234 * gdb_curses.h: ... here. Update comment to mention AIX.
235
9ac69859
NB
2362013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
237
238 * exec.h (add_target_sections_of_objfile): New declaration.
239 * exec.c (add_target_sections_of_objfile): New function.
240 * symfile.c (add_symbol_file_command): Update current target sections.
241 (remove_symbol_file_command): New command.
242 (symfile_free_objfile): New function.
243 (_initialize_symfile): Register observer for free_objfile events.
244 * NEWS: Add description of the remove-symbol-file command.
245 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
246 * objfiles.c (free_objfile): Notify free_objfile.
247 (is_addr_in_objfile): New function.
248 * objfiles.h (is_addr_in_objfile): New declaration.
249 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
250 events instead of solib_unloaded events.
251 (_initialize_printcmd): Register observer for free_objfile instead
252 of solib_unloaded notifications.
253 * solib.c (remove_user_added_objfile): New function.
254 (_initialize_symfile): Add remove-symbol-file.
255
f69d9aef
AB
2562013-10-29 Andrew Burgess <aburgess@broadcom.com>
257
258 * infcmd.c (default_print_one_register_info): Use val_print to
259 print all values even optimized out or unavailable ones. Don't
260 try to print a raw form of optimized out or unavailable values.
261
487ad57c
YQ
2622013-10-29 Yao Qi <yao@codesourcery.com>
263
264 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
265 parameter 'arg' instead of from program_space_data.
266 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
267 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
268 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
269 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
270 * inflow.c (inflow_inferior_data_cleanup): Get data from
271 parameter 'arg' instead of inferior_data.
272 * registry.h: Add comments.
273
3c4797ba
PA
2742013-10-28 Pedro Alves <palves@redhat.com>
275
276 * breakpoint.c (watchpoints_triggered)
277 <!target_stopped_data_address>: Hardcode return 1.
278
cdaa5b73
PA
2792013-10-28 Pedro Alves <palves@redhat.com>
280
281 * infrun.c (process_event_stop_test): Remove unnecessary scoping
282 level and reindent.
283
94c57d6a
PA
2842013-10-28 Pedro Alves <palves@redhat.com>
285
286 * infrun.c (process_event_stop_test): New function, factored out
287 from handle_inferior_event.
288 (handle_inferior_event): 'process_event_stop_test' is now a
289 function instead of a goto label -- adjust.
290
fcf3daef
PA
2912013-10-28 Pedro Alves <palves@redhat.com>
292
293 * infrun.c (handle_inferior_event): Move process_event_stop_test
294 goto label to the else branch of the ecs->random_signal check,
295 along with FRAME and GDBARCH re-fetching.
296
c447ac0b
PA
2972013-10-28 Pedro Alves <palves@redhat.com>
298
299 * infrun.c (switch_back_to_stepped_thread): New function, factored
300 out from handle_inferior_event.
301 (handle_inferior_event): Adjust to call
302 switch_back_to_stepped_thread. Call it also at the tail of the
303 random signal handling, and return, instead of also handling
304 random signals just before the stepping tests.
305
f05e4c11
PA
3062013-10-28 Pedro Alves <palves@redhat.com>
307
308 * infrun.c (clear_stop_func): Delete.
309 (handle_inferior_event): Don't call clear_stop_func and don't
310 clear 'ecs->random_signal'.
311
ca20d462
YQ
3122013-10-27 Yao Qi <yao@codesourcery.com>
313
314 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
315 (varobj_create, varobj_get_path_expr): Update.
316 (varobj_value_has_mutated, varobj_update): Likewise.
317 (create_child_with_value, new_root_variable): Likewise.
318 (number_of_children, name_of_variable): Likewise.
319 (value_of_child, my_value_of_variable): Likewise.
320 (varobj_value_is_changeable_p): Likewise.
321
a53b64ea
YQ
3222013-10-25 Yao Qi <yao@codesourcery.com>
323
324 * language.h (struct lang_varobj_ops): Declare.
325 (struct language_defn) <la_varobj_ops>: New field.
326 * ada-lang.c: Include "varobj.h"
327 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
328 ada_varobj_ops.
329 * c-lang.c: Include "varobj.h"
330 (c_language_defn): Initialize field 'la_varobj_ops' with
331 c_varobj_ops.
332 (cplus_language_defn): Initialize field 'la_varobj_ops' with
333 cplus_varobj_ops.
334 (asm_language_defn): Initialize field 'la_varobj_ops' with
335 default_varobj_ops.
336 (minimal_language_defn): Likewise.
337 * d-lang.c (d_language_defn): Likewise.
338 * f-lang.c (f_language_defn): Likewise.
339 * go-lang.c (go_language_defn): Likewise.
340 * m2-lang.c (m2_language_defn): Likewise.
341 * objc-lang.c (objc_language_defn): Likewise.
342 * opencl-lang.c (opencl_language_defn): Likewise.
343 * p-lang.c (pascal_language_defn): Likewise.
344 * language.c (unknown_language_defn): Likewise.
345 (auto_language_defn): Likewise.
346 (local_language_defn): Likewise.
347 * jv-lang.c (java_language_defn): Initialize field
348 'la_varobj_ops' with java_varobj_ops.
349 * varobj.c (varobj_create): Update.
350 * varobj.h (default_varobj_ops): Define macro.
351
686d4def
PA
3522013-10-25 Pedro Alves <palves@redhat.com>
353
354 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
355 static field value.
356 (cp_print_static_field): If the value is entirely optimized out,
357 print <optimized out> here.
358 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
359 static field value.
360 * p-valprint.c (pascal_object_print_static_field): If the value is
361 entirely optimized out, print <optimized out> here.
362 * valops.c (do_search_struct_field)
363 (value_struct_elt_for_reference): No longer handle a NULL static
364 field value.
365 * value.c (value_static_field): Return an optimized out value
366 instead of NULL.
367
6c177e28
YQ
3682013-10-25 Yao Qi <yao@codesourcery.com>
369
370 * remote.c (remote_traceframe_info): Return early if
371 traceframe is not selected.
372
98322bfa
YQ
3732013-10-25 Yao Qi <yao@codesourcery.com>
374
375 * tracepoint.c (traceframe_fun): Remove.
376 (traceframe_sal): Remove.
377 (set_traceframe_context): Add local variables.
378
6ba1f115
JB
3792013-10-25 Joel Brobecker <brobecker@adacore.com>
380
381 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
382 and parameter name.
383
bbe769cc
MR
3842013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
385
386 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
387 failure from register information collection.
388
72ee4495 3892013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
390
391 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
392 member.
393 (linux_corefile_thread_callback): Update accordingly.
394 (linux_make_corefile_notes): Likewise.
395
98882a26
PA
3962013-10-24 Pedro Alves <palves@redhat.com>
397
398 * NEWS (New options): Mention set/show startup-with-shell.
399 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
400 instead of 3.
401 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
402 startup-with-shell'.
403 (show_startup_with_shell): New function.
404 (_initialize_fork_child): Register the set/show startup-with-shell
405 commands.
406 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
407 * inf-ttrace.c (inf_ttrace_him): Remove comment.
408 * procfs.c (procfs_init_inferior): Remove comment.
409 * infcmd.c (startup_with_shell): New global.
410 * inferior.h (startup_with_shell): Declare global.
411 (STARTUP_WITH_SHELL): Delete.
412 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
413
c9737c08
PA
4142013-10-23 Pedro Alves <palves@redhat.com>
415
416 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
417 * common/signals.c: Include "gdb_assert.h".
418 (signals): New field 'symbol'.
419 (SET): Use the 'symbol' parameter.
420 (gdb_signal_to_symbol_string): New function.
421 * infrun.c (handle_inferior_event) <random signal>: In debug
422 output, print the random signal enum as string in addition to its
423 number.
424 * target/waitstatus.c (target_waitstatus_to_string): Print the
425 signal's enum value as string instead of the (POSIX) signal name.
426
f60db4f0
GB
4272013-10-23 Gary Benson <gbenson@redhat.com>
428
429 PR 16013
430 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
431 from 32 to 18. Adjusted fscanf format string accordingly.
432 (Avoids leaving cmd unterminated.)
433 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
434 trun, retn or extra. (Avoids leaving extra unterminated.) Check
435 that local_address and remote_address will not overflow.
436 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
437 leaving dependencies unterminated. Parse size as "%u" to match
438 definition.
439
6d3e7a94
PA
4402013-10-22 Pedro Alves <palves@redhat.com>
441
442 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
443 set ecs->random signal.
444
42ec045f
PA
4452013-10-22 Pedro Alves <palves@redhat.com>
446
447 * infrun.c (keep_going): Update comments.
448
4492013-10-22 Pedro Alves <palves@redhat.com>
450
451 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
452 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
453
4542013-10-22 Pedro Alves <palves@redhat.com>
455
456 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
457 GDB_EXC_BAD_ACCESS.
458 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
459 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
460 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
461 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
462 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
463 (GDB_SIGNAL_LAST): Change description string.
464 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
465 Adjust to signal renaming.
466 * darwin-nat.c (darwin_decode_message): Likewise.
467
c8fde1b1
JM
4682013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
469
470 * MAINTAINERS (Write After Approval): Add myself to the list.
471
e8369a73
AB
4722013-10-18 Andrew Burgess <aburgess@broadcom.com>
473
474 * breakpoint.c (update_watchpoint): If hardware watchpoints are
475 forced off, downgrade them to software watchpoints if possible,
476 and error out if not possible.
477 (watch_command_1): Move watchpoint type selection closer to
478 watchpoint creation, and extend the comments.
479
776f04fa
PA
4802013-10-18 Pedro Alves <palves@redhat.com>
481
482 PR gdb/16062
483 * infrun.c (handle_inferior_event): Keep going if we got a random
484 signal we should not stop for, instead of falling through to the
485 step tests.
486
0c6faab5
YQ
4872013-10-18 Yao Qi <yao@codesourcery.com>
488
489 * c-varobj.c (cplus_number_of_children): Fix indentation.
490
50b34a18
TT
4912013-10-17 Tom Tromey <tromey@redhat.com>
492
493 PR gdb/15995:
494 * printcmd.c (printcmd): Call gdb_flush.
495
5c4c8a59
TT
4962013-10-17 Tom Tromey <tromey@redhat.com>
497
498 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
499 (elf_locate_sections): Update.
500
c4124bf1
YQ
5012013-10-17 Yao Qi <yao@codesourcery.com>
502
503 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
504 * ada-varobj.c: Remove the include of ada-varobj.h.
505 (ada_varobj_get_number_of_children): Declare.
506 (ada_varobj_get_name_of_child): Make it static.
507 (ada_varobj_get_path_expr_of_child): Likewise.
508 (ada_varobj_get_value_of_child): Likewise.
509 (ada_varobj_get_type_of_child): Likewise.
510 (ada_varobj_get_value_of_array_variable): Likewise.
511 * ada-varobj.h: Remove.
512
99ad9427
YQ
5132013-10-17 Yao Qi <yao@codesourcery.com>
514
515 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
516 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
517 * ada-varobj.c: Include "varobj.h".
518 (ada_number_of_children): New. Moved from varobj.c.
519 (ada_name_of_variable, ada_name_of_child): Likewise.
520 (ada_path_expr_of_child, ada_value_of_child): Likewise.
521 (ada_type_of_child, ada_value_of_variable): Likewise.
522 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
523 (ada_varobj_ops): New.
524 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
525 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
526 * gdbtypes.h (get_target_type): Declare.
527 * varobj.c: Remove the inclusion of "ada-varobj.h" and
528 "ada-lang.h".
529 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
530 (ANONYMOUS_UNION_NAME): Likewise.
531 (get_type, get_value_type, get_target_type): Remove declarations.
532 (value_get_print_value, varobj_value_get_print_value): Likewise.
533 (c_number_of_children, c_name_of_variable): Likewise.
534 (c_name_of_child, c_path_expr_of_child): Likewise.
535 (c_value_of_child, c_type_of_child): Likewise.
536 (c_value_of_variable, cplus_number_of_children): Likewise.
537 (cplus_class_num_children, cplus_name_of_variable): Likewise.
538 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
539 (cplus_value_of_child, cplus_type_of_child): Likewise.
540 (cplus_value_of_variable, java_number_of_children): Likewise.
541 (java_name_of_variable, java_name_of_child): Likewise.
542 (java_path_expr_of_child, java_value_of_child): Likewise.
543 (java_type_of_child, java_value_of_variable): Likewise.
544 (ada_number_of_children, ada_name_of_variable): Likewise.
545 (ada_name_of_child, ada_path_expr_of_child): Likewise.
546 (ada_value_of_child, ada_type_of_child): Likewise.
547 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
548 (ada_value_has_mutated): Likewise.
549 (struct language_specific): Move it to varobj.h.
550 (CPLUS_FAKE_CHILD): Move it to varobj.h.
551 (restrict_range): Rename it varobj_restrict_range. Make it extern.
552 Callers update.
553 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
554 Make it extern.
555 (is_anonymous_child): Move it to c-varobj.c and rename to
556 varobj_is_anonymous_child. Caller update.
557 (get_type): Move it to c-varobj.c.
558 (get_value_type): Rename it varobj_get_value_type. Make it
559 extern.
560 (get_target_type): Move it gdbtypes.c.
561 (varobj_formatted_print_options): New function.
562 (value_get_print_value): Rename it to
563 varobj_value_get_print_value and make it extern.
564 (varobj_value_is_changeable_p): Make it extern.
565 (adjust_value_for_child_access): Move it to c-varobj.c.
566 (default_value_is_changeable_p): Rename it to
567 varobj_default_value_is_changeable_p. Make it extern.
568 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
569 (c_name_of_child, c_path_expr_of_child): Likewise.
570 (c_value_of_child, c_type_of_child): Likewise.
571 (c_value_of_variable, cplus_number_of_children): Likewise.
572 (cplus_class_num_children, cplus_name_of_variable): Likewise.
573 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
574 (cplus_value_of_child, cplus_type_of_child): Likewise.
575 (cplus_value_of_variable): Likewise.
576 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
577 (java_name_of_child, java_path_expr_of_child): Likewise.
578 (java_value_of_child, java_type_of_child): Likewise.
579 (java_value_of_variable): Likewise.
580 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
581 (ada_name_of_child, ada_path_expr_of_child): Likewise.
582 (ada_value_of_child, ada_type_of_child): Likewise.
583 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
584 (ada_value_has_mutated): Likewise.
585 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
586 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
587 (c_varobj_ops, cplus_varobj_ops): Declare.
588 (java_varobj_ops, ada_varobj_ops): Declare.
589 (varobj_default_value_is_changeable_p): Declare.
590 (varobj_value_is_changeable_p): Declare.
591 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
592 (varobj_get_path_expr_parent): Declare.
593 (varobj_value_get_print_value): Declare.
594 (varobj_formatted_print_options): Declare.
595 (varobj_restrict_range): Declare.
596
c8a62302
LM
5972013-10-17 Luis Machado <lgustavo@codesourcery.com>
598
599 * target/waitstatus.h (target_waitkind): Remove spurious
600 character from the comments.
601
eade6471
JB
6022013-10-17 Joel Brobecker <brobecker@adacore.com>
603
604 * gdbarch.sh (get_longjmp_target): Add method documentation.
605 * gdbarch.h: Regenerate.
606
5411b26c
TT
6072013-10-16 Tom Tromey <tromey@redhat.com>
608
609 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
610 label.
611
87326c87
LM
6122013-10-16 Luis Machado <lgustavo@codesourcery.com>
613
614 * gcore.in: Call GDB using the full path to the gcore script.
615 Error out if the GDB binary is not found.
616
fd0a4d76
SDJ
6172013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
618
619 PR gdb/16014
620 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
621 sizeof.
622
d92f7ee3
SDJ
6232013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
624
625 PR gdb/16042
626 * target.c (target_disable_btrace): Fix invalid return value for
627 void function.
628 (target_teardown_btrace): Likewise.
629
bb5ce47a
YQ
6302013-10-14 Yao Qi <yao@codesourcery.com>
631
632 * varobj.c (struct varobj): Move most of the fields to
633 varobj.h.
634 (struct varobj_dynamic): New struct.
635 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
636 (varobj_has_more): Likewise.
637 (dynamic_varobj_has_child_method): Likewise.
638 (update_dynamic_varobj_children): Likewise.
639 (varobj_get_num_children): Likewise.
640 (varobj_list_children, varobj_pretty_printed_p): Likewise.
641 (install_new_value_visualizer): Likewise.
642 (install_new_value_visualizer, install_new_value): Likewise.
643 (varobj_update, new_variable, free_variable): Likewise.
644 (my_value_of_variable, value_get_print_value): Likewise.
645 (install_visualizer): Change the type of parameter 'var' to
646 'struct varobjd_dynamic *'. Callers update.
647 * varobj.h (struct varobj): Moved from varobj.c.
648 (struct varobj) <dynamic>: New field.
649
0b76b0ce
SL
6502013-10-13 Sandra Loosemore <sandra@codesourcery.com>
651
652 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
653 as the preferred name of r30.
654 * nios2-linux-tdep.c (reg_offsets): Likewise.
655 * features/nios2-cpu.xml: Likewise.
656 * features/nios2-linux.c: Regenerated.
657 * features/nios2.c: Regenerated.
658 * regformats/nios2-linux.dat: Regenerated.
659
4856b6bc
JK
6602013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
661
662 Canonicalize directories for EXEC_FILENAME.
663 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
664 exec_filename.
665 * utils.c (gdb_realpath_keepfile): New function.
666 * utils.h (gdb_realpath_keepfile): New declaration.
667
9b557b58
DE
6682013-10-11 Doug Evans <dje@google.com>
669
670 * Makefile.in (GDBFLAGS): New variable.
671 (run): New rule.
672
ce13fade
JB
6732013-10-11 Joel Brobecker <brobecker@adacore.com>
674
675 * NEWS: Add entry documenting the new "-catch-assert" and
676 "-catch-exception" GDB/MI commands.
677
349774ef
JB
6782013-10-11 Joel Brobecker <brobecker@adacore.com>
679
680 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
681 "enabled".
682 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
683 "enabled". Set B->ENABLE_STATE accordingly.
684 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
685 ada-lang.c.
686 (create_ada_exception_catchpoint): Add declaration.
687 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
688 (create_ada_exception_catchpoint): Make non-static. Add new
689 parameter "disabled". Use it in call to
690 init_ada_exception_breakpoint.
691 (catch_ada_exception_command): Add parameter "enabled" in call
692 to create_ada_exception_catchpoint.
693 (catch_assert_command): Likewise.
694
695 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
696 Add declarations.
697 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
698 "catch-exception" commands.
699 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
700 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
701
761269c8
JB
7022013-10-11 Joel Brobecker <brobecker@adacore.com>
703
704 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
705 "enum exception_catchpoint_kind". Replace the "ex_" prefix
706 of all its enumerates with "ada_". Update the rest of this
707 file throughout.
708
b4a5b78b
JB
7092013-10-11 Joel Brobecker <brobecker@adacore.com>
710
711 * ada-lang.c (ada_decode_exception_location): Delete.
712 (create_ada_exception_catchpoint): Remove arguments "sal",
713 "addr_string" and "ops". Add argument "ex_kind" instead.
714 Adjust implementation accordingly, calling ada_exception_sal
715 to get the entities it no longer gets passed as arguments.
716 Document the function's arguments.
717 (catch_ada_exception_command): Use catch_ada_exception_command_split
718 instead of ada_decode_exception_location, and update call to
719 create_ada_exception_catchpoint.
720 (catch_ada_assert_command_split): Renames
721 ada_decode_assert_location. Remove parameters "addr_string" and
722 "ops", and now returns void. Adjust implementation accordingly.
723 Update the function documentation.
724 (catch_assert_command): Use catch_ada_assert_command_split
725 instead of ada_decode_assert_location. Update call to
726 create_ada_exception_catchpoint.
727
7ad1d32c 7282013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
729
730 * utils.h (perror_warning_with_name): Add declaration.
731 * utils.c (perror_warning_with_name): New function.
732 * cli/cli-cmds.c (source_script_with_search): Add call to
733 perror_warning_with_name if from_tty is nul.
734
7ad1d32c 7352013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
736
737 * utils.c (perror_string): New function, extracted out of
738 throw_perror_with_name.
739 (throw_perror_with_name): Rework to use perror_string.
740
bcc75809
YQ
7412013-10-11 Yao Qi <yao@codesourcery.com>
742
743 * remote.c (discard_pending_stop_replies_in_queue): Update
744 declaration.
745 (struct stop_reply) <rs>: New field.
746 (remove_stop_reply_of_remote_state): New function.
747 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
748 Callers update. Pass remove_stop_reply_of_remote_state to
749 QUEUE_iterate.
750 (remote_parse_stop_reply): Initialize field 'rs'.
751
05feb193
WN
7522013-10-10 Will Newton <will.newton@linaro.org>
753
754 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
755 linux_init_abi.
756
0d12017b
JB
7572013-10-10 Joel Brobecker <brobecker@adacore.com>
758
759 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
760 serial_baud_show_cmd.
761 (_initialize_cli_cmds): Delete the code creating the
762 "set/show remotebaud" commands.
763 * serial.c (baud_rate): Move here from top.c.
764 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
765 (_initialize_serial): Create "set/show serial baud" commands.
766 Add "set/show remotebaud" command aliases.
767 * top.c (baud_rate): Moved to serial.c.
768 * NEWS: Document the new "set/show serial baud" commands,
769 replacing "set/show remotebaud".
770
578d3588
PA
7712013-10-09 Pedro Alves <palves@redhat.com>
772
773 * breakpoint.c (insert_bp_location): Use memory_error_message to
774 build the memory error string.
775 * c-lang.c: Include "gdbcore.h".
776 (c_get_string): Use memory_error to throw error.
777 (target_xfer_memory_error): Delete.
778 (memory_error_message): New, factored out from
779 target_xfer_memory_error.
780 (memory_error): Change parameter type to target_xfer_error.
781 Rewrite.
782 (read_memory): Use memory_error instead of
783 target_xfer_memory_error.
784 * gdbcore.h: Include "target.h".
785 (memory_error): Change parameter type to target_xfer_error.
786 (memory_error_message): Declare function.
787 * target.c (target_read_memory, target_read_stack)
788 (target_write_memory, target_write_raw_memory): Return
789 TARGET_XFER_E_IO on error. Adjust comments.
790 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
791 instead of EIO.
792 * target.h (target_read, target_insert_breakpoint)
793 (target_remove_breakpoint): Adjust comments.
794 * valprint.c (partial_memory_read): Rename parameter, and adjust
795 comment.
796 (val_print_string): Use memory_error_message to build the memory
797 error string.
798
c74e1ccf
JK
7992013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
800
801 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
802 result variable. Rename variable fopen_e_ever_failed to
803 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
804
915215be
PA
8052013-10-09 Pedro Alves <palves@redhat.com>
806
807 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
808 (monitor_write_memory_longlongs, monitor_write_memory_block):
809 Constify 'myaddr' parameter.
810 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
811 helper.
812 (monitor_xfer_partial): New function.
813 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
814 hook. Install a to_xfer_partial hook.
815
acd13123
TT
8162013-10-09 Tom Tromey <tromey@redhat.com>
817
818 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
819 bfd_get_alt_debug_link_info.
820
40135bb1
JK
8212013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 New flag OBJF_NOT_FILENAME.
824 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
825 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
826 allocate_objfile.
827 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
828 symbol_file_add_from_bfd.
829 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
830 allocate_objfile.
831 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
832 NULL.
833 * objfiles.h (OBJF_NOT_FILENAME): New.
834
dc294be5
TT
8352013-10-08 Tom Tromey <tromey@redhat.com>
836
837 * Makefile.in (SFILES): Add build-id.c.
838 (HFILES_NO_SRCDIR): Add build-id.h.
839 * build-id.c: New file, largely from elfread.c. Modified
840 most functions.
841 * build-id.h: New file.
842 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
843 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
844 Search for dwz file using build-id.
845 * elfread.c (build_id_bfd_get, build_id_verify)
846 (build_id_to_debug_filename, find_separate_debug_file): Remove.
847
db230ce3
JB
8482013-10-08 Joel Brobecker <brobecker@adacore.com>
849
850 * ada-lang.c (compare_names_with_case): Renamed from
851 compare_names, adding a new parameter "casing" and its handling.
852 New function documentation.
853 (compare_names): New function, implemented using
854 compare_names_with_case.
855
6501c98a
JB
8562013-10-08 Joel Brobecker <brobecker@adacore.com>
857
858 * ada-lang.c (ada_exception_sal): Remove advance declaration.
859
84a1243b
TT
8602013-10-07 Tom Tromey <tromey@redhat.com>
861
862 * objfiles.c (free_objfile_per_bfd_storage): Delete the
863 demangled_names_hash.
864 (free_objfile): Don't delete the demangled_names_hash.
865 * objfiles.h (struct objfile_per_bfd_storage)
866 <demangled_names_hash>: New field.
867 (struct objfile) <demangled_names_hash>: Move to
868 objfile_per_bfd_storage.
869 * symfile.c (reread_symbols): Don't delete the
870 demangled_names_hash.
871 * symtab.c (create_demangled_names_hash): Update.
872 (symbol_set_names): Update.
873
1da77581
TT
8742013-10-07 Tom Tromey <tromey@redhat.com>
875
876 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
877 needs_relocations>: New fields.
878 (gdb_bfd_requires_relocations): New function.
879 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
880 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
881 the BFD needs relocations applied.
882
46ecd527
PA
8832013-10-07 Pedro Alves <palves@redhat.com>
884
885 PR breakpoints/11568
886 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
887 the thread list" instead of "gone".
888
0c557179
SDJ
8892013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
890
891 * NEWS: Mention new convenience variable $_exitsignal.
892 * corelow.c (core_open): Reset exit convenience variables. Set
893 $_exitsignal to the uncaught signal which generated the corefile.
894 * infrun.c (handle_inferior_event): Reset exit convenience
895 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
896 (clear_exit_convenience_vars): New function.
897 * inferior.h (clear_exit_convenience_vars): New prototype.
898
1cc47d81
YQ
8992013-10-06 Yao Qi <yao@codesourcery.com>
900
901 * varobj.h: Add comments to enum varobj_languages.
902
73869dc2
DE
9032013-10-04 Doug Evans <dje@google.com>
904
905 Add support for DWP file format version 2.
906 * NEWS: Mention support for DWP file format version 2.
907 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
908 union of asection, containing_section. New fields virtual_offset
909 and is_virtual. Change type of readin filed from int to char.
910 (dwo_sections, dwo_file): Tweak comments.
911 (dwp_v2_section_ids): New enum.
912 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
913 str_offsets, types.
914 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
915 All uses updated.
916 (virtual_v2_dwo_sections): New struct.
917 (dwp_hash_table): New fields version, nr_columns. Change type of
918 section_pool field to a union.
919 (dwp_file): New field version.
920 (dwarf2_has_info): Check for virtual sections.
921 (get_containing_section): New function.
922 (get_section_bfd_owner, get_section_bfd_section): Call it.
923 (dwarf2_locate_sections): Update.
924 (dwarf2_section_empty_p): Update.
925 (dwarf2_read_section): Handle virtual sections.
926 (locate_dwz_sections): Update.
927 (create_dwp_hash_table): Document and handle V2 format.
928 (locate_v1_virtual_dwo_sections): Renamed from
929 locate_virtual_dwo_sections and update. All callers updated.
930 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
931 Delete arg htab. Rename arg section_index to unit_index.
932 All callers updated.
933 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
934 All uses updated.
935 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
936 (lookup_dwo_unit_in_dwp): Add V2 support.
937 (dwarf2_locate_dwo_sections): Update.
938 (dwarf2_locate_common_dwp_sections): Renamed from
939 dwarf2_locate_dwp_sections and update. All callers updated.
940 (dwarf2_locate_v2_dwp_sections): New function.
941 (open_and_init_dwp_file): Add V2 support.
942 (read_str_index): New locals str_section, str_offsets_section.
943
9a2c3737
PA
9442013-10-04 Pedro Alves <palves@redhat.com>
945
946 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
947 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
948 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
949 describing comments with references to ptid.h.
950 * common/ptid.h: Remove intro description of constructors,
951 accessors and predicates.
952 (struct ptid): Reformat.
953 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
954 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
955 describing comments.
956
f5371440
JB
9572013-10-04 Joel Brobecker <brobecker@adacore.com>
958
959 * aix-thread.c (sync_threadlists): Add missing ')' in call
960 to ptid_build.
961
793e1c06
JB
9622013-10-04 Joel Brobecker <brobecker@adacore.com>
963
964 * procfs.c (procfs_init_inferior): Fix typo causing the build
965 to fail.
966
26f0edc1
JB
9672013-10-04 Joel Brobecker <brobecker@adacore.com>
968
969 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
970
5713b9b5
JB
9712013-10-04 Joel Brobecker <brobecker@adacore.com>
972
973 * mi/mi-main.c (run_one_inferior): Add function description.
974 Make ARG a pointer to an integer whose value determines whether
975 we should "run" or "start" the program.
976 (mi_cmd_exec_run): Add handling of the "--start" option.
977 Reject all other command-line options.
978 * NEWS: Add entry for "-exec-run"'s new "--start" option.
979
f48ff2a7
YQ
9802013-10-04 Yao Qi <yao@codesourcery.com>
981
982 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
983 (struct notif_client) <pending_event>: Moved
984 to struct remote_notif_state.
985 <id>: New field.
986 (struct remote_notif_state) <pending_event>: New field.
987 (notif_event_xfree): Declare.
988 * remote-notif.c (handle_notification): Adjust.
989 (notif_event_xfree): New function.
990 (do_notif_event_xfree): Call notif_event_xfree.
991 (remote_notif_state_xfree): Call notif_event_xfree to free
992 each element in field pending_event.
993 * remote.c (discard_pending_stop_replies): Remove declaration.
994 (discard_pending_stop_replies_in_queue): Declare.
995 (remote_close): Call discard_pending_stop_replies_in_queue
996 instead of discard_pending_stop_replies.
997 (remote_start_remote): Adjust.
998 (stop_reply_xfree): Call notif_event_xfree.
999 (notif_client_stop): Adjust initialization.
1000 (remote_notif_remove_all): Rename it to ...
1001 (remove_stop_reply_for_inferior): ... this. Update comments.
1002 Don't check INF is NULL.
1003 (discard_pending_stop_replies): Return early if notif_state is
1004 NULL. Adjust. Don't check INF is NULL.
1005 (remote_notif_get_pending_events): Adjust.
1006 (discard_pending_stop_replies_in_queue): New function.
1007 (remote_wait_ns): Likewise.
1008
5965e028
YQ
10092013-10-04 Yao Qi <yao@codesourcery.com>
1010
1011 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1012 (notif_queue): Remove.
1013 (remote_notif_process): Add one parameter 'notif_queue'.
1014 Update comments. Callers update.
1015 (remote_async_get_pending_events_token): Remove.
1016 (remote_notif_register_async_event_handler): Remove.
1017 (remote_notif_unregister_async_event_handler): Remove.
1018 (handle_notification): Add parameter 'notif_queue'. Update
1019 comments. Callers update.
1020 (notif_xfree): Remove.
1021 (remote_notif_state_allocate): New function.
1022 (remote_notif_state_xfree): New function.
1023 (_initialize_notif): Remove code to allocate queue.
1024 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1025 (struct remote_notif_state): New.
1026 (handle_notification): Update declaration.
1027 (remote_notif_process): Likewise.
1028 (remote_notif_register_async_event_handler): Remove.
1029 (remote_notif_unregister_async_event_handler): Remove.
1030 (remote_notif_state_allocate): Declare.
1031 (remote_notif_state_xfree): Declare.
1032 * remote.c (struct remote_state) <notif_state>: New field.
1033 (remote_close): Don't call
1034 remote_notif_unregister_async_event_handler. Call
1035 remote_notif_state_xfree.
1036 (remote_open_1): Don't call
1037 remote_notif_register_async_event_handler. Call
1038 remote_notif_state_allocate.
1039
5e5ac9a5
YQ
10402013-10-04 Yao Qi <yao@codesourcery.com>
1041
1042 * varobj.c (create_child_with_value): Remove 'const' from the
1043 type of parameter 'name'.
1044 (varobj_add_child): Likewise.
1045 (install_dynamic_child): Remove 'const' from the type of
1046 parameter 'name'.
1047 (varobj_add_child): Likewise.
1048 (create_child_with_value): Likewise. Update comments. Don't
1049 duplicate 'name'.
1050 (update_dynamic_varobj_children): Duplicate 'name'
1051 and pass it to install_dynamic_child.
1052
06ab7b19
PM
10532013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1054
1055 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1056 conversion logic to occur after PyLong_Check. Comment on order
1057 change significance.
1058 * python/py-arch.c (archpy_disassemble): Comment on order of
1059 conversion for integers and longs.
1060
8ae377e8
PA
10612013-10-03 Pedro Alves <palves@redhat.com>
1062
1063 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1064 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1065 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1066 PTRACE_O_TRACEFORK is not supported.
1067 (linux_test_for_tracesysgood): New function.
1068 (linux_test_for_tracefork): New function, factored out from
1069 linux_check_ptrace_features, and also don't kill child_pid here.
1070
b1328b1b
TG
10712013-10-03 Tristan Gingold <gingold@adacore.com>
1072
1073 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1074 Remove verbose error reporting. Use detected state to
1075 thread_set_state call.
1076 (i386_darwin_dr_get): Fix return type. Remove verbose error
1077 report.
1078 Remove trailing spaces.
1079
901461f8
PA
10802013-10-02 Pedro Alves <palves@redhat.com>
1081
1082 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1083 val_print_optimized_out.
1084 * jv-valprint.c (java_print_value_fields): Likewise.
1085 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1086 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1087 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1088 new optimized out value.
1089 * findvar.c (address_from_register): Likewise.
1090 * frame.c (put_frame_register): Tweak error string to say the
1091 register was not saved, rather than optimized out.
1092 * infcmd.c (default_print_one_register_info): Adjust call to
1093 val_print_optimized_out. Use value_of_register instead of
1094 get_frame_register_value.
1095 * mi/mi-main.c (output_register): Use value_of_register instead of
1096 get_frame_register_value.
1097 * valprint.c (valprint_check_validity): Likewise.
1098 (val_print_optimized_out): New value parameter. If the value is
1099 lval_register, print <not saved> instead.
1100 (value_check_printable, val_print_scalar_formatted): Adjust calls
1101 to val_print_optimized_out.
1102 * valprint.h (val_print_optimized_out): New value parameter.
1103 * value.c (struct value) <optimized_out>: Extend comment.
1104 (error_value_optimized_out): New function.
1105 (require_not_optimized_out): Use it. Use a different string for
1106 lval_register values.
1107 * value.h (error_value_optimized_out): New declaration.
1108 * NEWS: Mention <not saved>.
1109
042a84d9
JB
11102013-10-02 Joel Brobecker <brobecker@adacore.com>
1111
1112 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1113 strcmp to compare two symtab filenames.
1114
6b9780fb
JB
11152013-10-02 Joel Brobecker <brobecker@adacore.com>
1116
1117 * symtab.c (search_symbols_equal): Delete.
1118 (sort_search_symbols_remove_dups): Replace call to
1119 search_symbols_equal by call to compare_search_syms,
1120 adjusting as necessary.
1121
751e7549
PM
11222013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1123
1124 PR python/15579
751e7549
PM
1125 * python/python.c: Document gdb.execute command in Python help.
1126
1efd7661
PM
11272013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1128
1129 * python/py-frame.c (frame_info_to_frame_object): Use
1130 gdbpy_convert_exception. Clean up Python object on failure.
1131
562fc849
PM
11322013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1133
1134 * python/lib/gdb/command/frame_filters.py
1135 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1136 (ShowFrameFilterPriority.invoke): Ditto.
1137
d7561cbb
KS
11382013-10-01 Keith Seitz <keiths@redhat.com>
1139
1140 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1141 (parse_linespec): Make 'argptr' const.
1142 Remove temporary cast of 'argptr' to const char **.
1143 (decode_line_full): Pass const pointer to parse_linespec.
1144 (decode_line_1): Likewise.
1145 (decode_objc): Make local variable 'new_argptr' const.
1146 (find_function_symbols): Remove temporary cast to char *
1147 to find_imps.
1148 * objc-lang.c (find_imps): Make argument 'method' const.
1149 Return const.
1150 * objc-lang.h (find_imps): Likewise.
1151
11522013-10-01 Keith Seitz <keiths@redhat.com>
1153
1154 * completer.c (skip_quoted_chars): Make all arguments const.
1155 Return const.
1156 (skip_quoted): Likewise.
1157 * completer.h (skip_quoted_chars): Likewise.
1158 (skip_quoted): Likewise.
1159 * defs.h (skip_quoted): Remove duplicate declaration.
1160 * jv-exp.y: Include completer.h.
1161 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1162 * p-exp.y: Include completer.h.
1163
11642013-10-01 Keith Seitz <keiths@redhat.com>
1165
1166 * c-exp.y (parse_number): Make first argument const.
1167 Make a copy of the input to manipulate.
1168 (c_parse_escape): Make first argument const.
1169 Make local variable 'tokptr' const.
1170 (parse_string_or_char): Make first two arguments const.
1171 (macro_original_text): Make const.
1172 (lex_one_token): Make local variable 'tokstart' const.
1173 Likewise for local variables named 'p'.
1174 Cast away const for struct stoken (temporary).
1175 * c-lang.h (c_parse_escpae): Make first argument const.
1176 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1177 const.
1178 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1179 var_string case.
1180 * f-exp.y (parse_number): Make first argument const.
1181 (match_string_literal): Make local variable 'tokstart'
1182 const.
1183 (yylex): Make local variable 'p' const.
1184 Cast away const for struct stoken (temporary).
1185 * go-exp.y (parse_number): Make first argument const.
1186 (parse_string_or_char): Likewise.
1187 Make local variable 'tokstart' const.
1188 (lex_one_token): Likewise for numerous locals called 'p'.
1189 Cast away const for struct stoken (temporary).
1190 * jv-exp.y (parse_number): Make first argument const.
1191 Make local variables 'tokstart' and 'tokptr' const.
1192 Cast away const for call to skip_quoted (temporary).
1193 (yylex): Make local variable 'p' const.
1194 Cast away const for struct stoken (temporary).
1195 * m2-exp.y (parse_number): Make local variable 'p' const.
1196 (yylex): Likewise for 'tokstart'.
1197 Cast away const for struct stoken (temporary).
1198 Make local variable 'p' const.
1199 * macroexp.c (get_character_constant): Pass a const string
1200 to c_parse_escape.
1201 (get_string_literal): Likewise.
1202 (macro_expand_next): Make first argument const.
1203 Cast away const for init_shared_buffer.
1204 * macroexp.h (macro_expand_next): Make first argument const.
1205 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1206 Pass a const string to c_parse_escape.
1207 Make local variables 'p' and 'namestart' const.
1208 * parse.c (lexptr): Make const.
1209 (prev_lexptr): Likewise.
1210 (find_template_name_end): Return const.
1211 Make argument const, too.
1212 (parse_exp_in_context): Make first argument const.
1213 Remove the entire const_hack.
1214 (parse_exp_in_context_1): Make first argument const.
1215 * parser-defs.h (find_template_name_end): Return const.
1216 Make argument const, too.
1217 (lexptr): Make const.
1218 (prev_lexptr): Likewise.
1219 * utils.c (parse_escape): Make second argument const.
1220 * utils.h (parse_escape): Likewise.
1221
12222013-10-01 Keith Seitz <keiths@redhat.com>
1223
1224 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1225 is now const.
1226 (block_lookup): Make 'raw_name' and 'name' const.
1227 * ada-lex.l (processString): Update for struct stoken.ptr.
1228 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1229 (operator_stoken): Likewise.
1230 (lex_one_token): Remove temporary cast to char * for
1231 'yylval.sval.ptr'.
1232 * f-exp.y (yylex): Likewise.
1233 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1234 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1235 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1236 'yylval.sval.ptr'.
1237 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1238 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1239 * linespec.c (struct ls_parser): Make 'stream' const.
1240 (find_parameter_list_end): Make argument 'input' and local
1241 variable 'p' const.
1242 (linespec_lexer_lex_string): Make local variables 'start' and
1243 'p' const.
1244 Use skip_spaces_const instead of skip_spaces.
1245 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1246 const.
1247 (parse_linespec): Temporarily cast 'argptr' to const for
1248 'parser->lexer.stream'.
1249 * m2-exp.y (yylex): Remove temporary cast to char * for
1250 'yylval.sval.ptr'.
1251 * objc-lang.c (add_msglist): Make local variable 'p' const.
1252 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1253 (exp : STRING): Make 'sp' const.
1254 (parse_number): Make argument 'p' const.
1255 * parser-defs.h (struct stoken): Make 'ptr' const.
1256
193a8eac
DE
12572013-10-01 Doug Evans <dje@google.com>
1258
1259 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1260
2213e2be
YQ
12612013-10-01 Yao Qi <yao@codesourcery.com>
1262
1263 * varobj.c (c_value_of_root): Remove declaration.
1264 (cplus_value_of_root, java_value_of_root): Likewise.
1265 (ada_value_of_root): Likewise.
1266 (struct language_specific) <value_of_root>: Remove.
1267 (languages): Update initialization.
1268 (check_scope): Move earlier.
1269 (c_value_of_root): Move earlier and rename to ...
1270 (value_of_root_1): ... this.
1271 (value_of_root): Caller update.
1272 (cplus_value_of_root, java_value_of_root): Remove.
1273 (ada_value_of_root): Remove.
1274
c573f273
YQ
12752013-10-01 Yao Qi <yao@codesourcery.com>
1276
1277 * varobj.c (varobj_format_string): Remove "unknown".
1278 (languages): Remove the first element.
1279 * varobj.h (enum varobj_languages): Remove vlang_c.
1280
56250258
YQ
12812013-10-01 Yao Qi <yao@codesourcery.com>
1282
1283 * varobj.c (struct language_specific) <language>: Remove.
1284 (languages): Update the initialization.
1285
29f9ebfa
YQ
12862013-10-01 Yao Qi <yao@codesourcery.com>
1287
1288 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1289 "solib-target.h". Include "windows-tdep.h".
1290 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1291 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1292 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1293 windows-tdep.o to gdb_target_obs.
1294
64870a42
YQ
12952013-10-01 Yao Qi <yao@codesourcery.com>
1296
1297 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1298 "solib-target.h".
1299 (amd64_windows_init_abi): Don't call set_solib_ops and
1300 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1301 windows_init_abi instead.
1302 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1303 "solib-target.h".
1304 (i386_cygwin_init_abi): Don't call set_solib_ops,
1305 set_gdbarch_has_dos_based_file_system and
1306 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1307 windows_init_abi instead.
1308 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1309 (windows_init_abi): New function.
1310 (windows_iterate_over_objfiles_in_search_order): Make it
1311 static.
1312 * windows-tdep.h (windows_init_abi): Declare.
1313 (windows_iterate_over_objfiles_in_search_order): Remove
1314 declaration.
1315
0aebdefa
JB
13162013-10-01 Jerome Guitton <guitton@adacore.com>
1317
1318 Checked in by Joel Brobecker <brobecker@adacore.com>
1319 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1320 incomplete dictionnary instead of None in case of missing
1321 environment variables.
1322 (elinos_init): in case of an incomplete environment, best
1323 effort to load system libraries instead of abort.
1324
1c8e84b0
JB
13252013-10-01 Joel Brobecker <brobecker@adacore.com>
1326
1327 * ada-lang.c (ada_has_this_exception_support): Ignore
1328 mst_solib_trampoline minimal symbols.
1329
61d82a0d
TG
13302013-09-30 Tristan Gingold <gingold@adacore.com>
1331
1332 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1333 hardware watchpoint.
1334 (i386_darwin_dr_set): Support 32 and 64 bit states.
1335 (i386_darwin_dr_get): Likewise.
1336 (i386_darwin_dr_set_control): Make static.
1337 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1338 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1339
dfd4cc63
LM
13402013-09-30 Luis Machado <lgustavo@codesourcery.com>
1341
1342 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1343 Replace TIDGET with ptid_get_lwp.
1344 Replace GET_LWP with ptid_get_lwp.
1345 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1346 Replace BUILD_THREAD with ptid_build.
1347 Replace BUILD_LWP with ptid_build.
1348 Replace PIDGET with ptid_get_pid.
1349 Replace TIDGET with ptid_get_lwp.
1350 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1351 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1352 Replace TIDGET with ptid_get_lwp.
1353 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1354 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1355 Replace TIDGET with ptid_get_lwp.
1356 Replace GET_LWP with ptid_get_lwp.
1357 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1358 * auxv.c: Likewise.
1359 * breakpoint.c: Likewise.
1360 * common/ptid.c (ptid_is_pid): Condense check for
1361 null_ptid and minus_one_ptid.
1362 (ptid_lwp_p): New function.
1363 (ptid_tid_p): New function.
1364 * common/ptid.h: Update comments for accessors.
1365 (ptid_lwp_p): New prototype.
1366 (ptid_tid_p): New prototype.
1367 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1368 * gcore.c: Replace PIDGET with ptid_get_pid.
1369 * gdbthread.h: Likewise.
1370 * gnu-nat.c: Likewise.
1371 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1372 Replace TIDGET with ptid_get_lwp.
1373 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1374 * hppanbsd-nat.c: Likewise.
1375 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1376 Replace TIDGET with ptid_get_lwp.
1377 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1378 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1379 * infcmd.c: Likewise.
1380 * inferior.h: Likewise.
1381 * inflow.c: Likewise.
1382 * infrun.c: Likewise.
1383 * linux-fork.c: Likewise.
1384 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1385 Replace GET_PID with ptid_get_pid.
1386 Replace is_lwp with ptid_lwp_p.
1387 Replace GET_LWP with ptid_get_lwp.
1388 Replace BUILD_LWP with ptid_build.
1389
5b4e221c
MF
13902013-09-28 Mike Frysinger <vapier@gentoo.org>
1391
1392 * common/linux-btrace.c: Move sys/syscall.h out of the
1393 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1394 Also check for SYS_perf_event_open before attempting to buid.
1395
57d63ce2
DE
13962013-09-27 Doug Evans <dje@google.com>
1397
19ac8c2e
DE
1398 * dwarf2read.c (dwarf2_section_info): Add comment.
1399 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1400 All uses updated.
1401 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1402 (dwarf2_read_section): Delete unused local "header". Add section
1403 name to error message.
1404 (create_dwo_in_dwp): Tweak comment.
1405 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1406
a32a8923
DE
1407 * dwarf2read.c (die_reader_specs): Tweak comment.
1408 (get_section_bfd_owner, get_section_bfd_section): New functions.
1409 (get_section_name, get_section_file_name): New functions.
1410 (get_section_id, get_section_flags): New functions.
1411 (*): Use new functions to access section fields.
1412
57d63ce2
DE
1413 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1414 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1415 arg "htab". All callers updated.
1416 (create_debug_types_hash_table): Remove redundant copy of
1417 abbrev_section.
1418 (create_dwo_in_dwp): Tweak comments.
1419 (read_str_index): Tweak comment. Record dwarf form name in static
1420 local.
1421
3736004f
PA
14222013-09-27 Pedro Alves <palves@redhat.com>
1423
1424 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1425 (remote_filename_p): Add comment.
1426 * remote.c (remote_filename_p): Adjust to use
1427 REMOTE_SYSROOT_PREFIX.
1428 * solib.c (solib_find): When deciding whether we need to add a
1429 directory separator, check whether the sysroot is "remote:"
1430 instead of checking whether the patch has a drive spec. Add
1431 comments.
1432
5b5596ff
PA
14332013-09-27 Pedro Alves <palves@redhat.com>
1434
1435 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1436 Delete fields.
1437 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1438 directly.
1439
b5eef7aa
JK
14402013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1441
1442 Fix set debug frame output.
1443 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1444 SENTINEL_FRAME entry lower to match enum frame_type order.
1445
5b856f36
PM
14462013-09-26 Pierre Muller <muller@sourceware.org>
1447
1448 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1449 AMD64_R15_REGNUM when a register index is expected.
1450 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1451 Substitute in array.
1452 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1453 (amd64_push_arguments): Substitute in integer_regnum array.
1454
ade7ed9e
DE
14552013-09-25 Doug Evans <dje@google.com>
1456
d3e81981
DE
1457 * objfiles.c (allocate_objfile): Move comment to better place.
1458
8fb8eb5c
DE
1459 New option "set debug symfile on".
1460 * NEWS: Mention "set debug symfile".
1461 * Makefile.in (SFILES): Add symfile-debug.c.
1462 (COMMON_OBS): Add symfile-debug.o.
1463 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1464 objfile's symbol functions.
1465 * objfiles.h (objfile_set_sym_fns): Declare.
1466 * symfile-debug.c: New file.
1467 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1468 objfile's symbol functions.
1469 (reread_symbols): Ditto.
1470
c256e171
DE
1471 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1472 All uses updated.
1473 (add_symtab_fns): Update prototype.
1474 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1475 (registered_sym_fns): ... this.
1476 (symtab_fns): Update.
1477 (add_symtab_fns): New arg "flavour". All callers updated.
1478 (find_sym_fns): Rewrite to use new sym_fns registry.
1479
f56ce883
DE
1480 * symfile.h (struct sym_fns): Add "objfile" argument to
1481 sym_read_linetable. All uses updated.
1482
20c681d1
DE
1483 * symtab.c (domain_name, search_domain_name): New functions.
1484 * symtab.h (domain_name, search_domain_name): Declare.
1485
ade7ed9e
DE
1486 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1487 map_matching_symbols so objfile is first. All uses updated.
1488 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1489 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1490
7d760051
UW
14912013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492
1493 PR shlibs/8882
1494 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1495 link map entries.
1496
020f7036
DE
14972013-09-24 Doug Evans <dje@google.com>
1498
1499 * objfiles.c (free_objfile): Move comment.
1500
598402f0
JB
15012013-09-24 Joel Brobecker <brobecker@adacore.com>
1502
1503 * ada-exp.y (string_to_operator): Delete.
1504 (dummy_string_to_ada_operator): Delete.
1505
bf4d6c1c
JB
15062013-09-24 Joel Brobecker <brobecker@adacore.com>
1507
1508 Revert:
1509 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1510 amd64-tdep.c.
1511 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1512 call_dummy_integer_regs, and classify.
1513 * amd64-tdep.h (amd64_classify): Add declaration.
1514 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1515 (amd64_reg_class): Delete, moved to i386-tdep.h.
1516 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1517 Replace call to amd64_classify by call to tdep->classify.
1518 (amd64_push_arguments): Get the list of registers to use for
1519 passing integer parameters from the gdbarch tdep structure,
1520 rather than using a hardcoded one. Replace calls to amd64_classify
1521 by calls to tdep->classify.
1522 (amd64_push_dummy_call): Get the register number used for
1523 the "hidden" argument from tdep->call_dummy_integer_regs.
1524 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1525 and tdep->call_dummy_integer_regs. Set tdep->classify.
1526
849e9755
JB
15272013-09-24 Joel Brobecker <brobecker@adacore.com>
1528
1529 Revert:
1530 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1531 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1532 where tdep->memory_args_by_pointer is non-zero.
1533
c1459fd6
JB
15342013-09-24 Joel Brobecker <brobecker@adacore.com>
1535
1536 Revert:
1537 * i386-tdep.h (struct gdbarch_tdep): Add new field
1538 integer_param_regs_saved_in_caller_frame.
1539 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1540 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1541
20c2e3e0
JB
15422013-09-24 Joel Brobecker <brobecker@adacore.com>
1543
874440b8 1544 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1545 (amd64_windows_classify): Delete.
1546 (amd64_windows_passed_by_integer_register)
1547 (amd64_windows_passed_by_xmm_register)
1548 (amd64_windows_passed_by_pointer)
1549 (amd64_windows_adjust_args_passed_by_pointer)
1550 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1551 (amd64_windows_push_dummy_call): New functions.
1552 (amd64_windows_init_abi): Remove setting of
1553 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1554 tdep->classify, tdep->memory_args_by_pointer and
1555 tdep->integer_param_regs_saved_in_caller_frame.
1556 Add call to set_gdbarch_push_dummy_call.
1557
82bf32bc
JK
15582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1561 objfile->original_name.
1562
24ba069a
JK
15632013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1564
1565 Pass down original filename for objfile.
1566 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1567 * elfread.c (elf_symfile_read): Likewise.
1568 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1569 longer set ORIGINAL_NAME.
1570 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1571 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1572 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1573 symbol_file_add_from_bfd call.
1574 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1575 (macho_check_dsym): Add parameter filenamep. Change function comment.
1576 Set *filenamep.
1577 (macho_symfile_read): New variable dsym_filename. Update
1578 macho_check_dsym call. Use it for symbol_file_add_separate.
1579 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1580 it. Use it for objfile->original_name.
1581 (objfile_name): Return OBFD's filename, if available.
1582 * objfiles.h (allocate_objfile): Add new parameter name.
1583 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1584 * symfile-mem.c (symbol_file_add_from_memory): Update
1585 symbol_file_add_from_bfd call.
1586 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1587 comment for it.
1588 (symbol_file_add_with_addrs): New parameter name, add function comment
1589 for it. Remove variable name. Update allocate_objfile call.
1590 (symbol_file_add_separate): New parameter name, add function comment
1591 for it. Update symbol_file_add_with_addrs call.
1592 (symbol_file_add_from_bfd): New parameter name. Update
1593 symbol_file_add_with_addrs call.
1594 (symbol_file_add): Update symbol_file_add_from_bfd call.
1595 (reread_symbols): New variable original_name. Save
1596 objfile->original_name by it.
1597 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1598 second parameter.
1599
4262abfb
JK
16002013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 Code cleanup: Add objfile_name accessor function.
1603 * ada-lang.c (is_known_support_routine): Use objfile_name.
1604 * auto-load.c (source_gdb_script_for_objfile)
1605 (auto_load_objfile_script): Likewise.
1606 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1607 * dbxread.c (dbx_symfile_read): Likewise.
1608 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1609 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1610 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1611 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1612 (lookup_dwp_signatured_type, lookup_dwo_unit)
1613 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1614 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1615 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1616 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1617 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1618 (read_subrange_type, load_partial_dies, read_partial_die)
1619 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1620 (die_containing_type, build_error_marker_type, lookup_die_type)
1621 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1622 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1623 (get_DW_AT_signature_type, write_psymtabs_to_index)
1624 (save_gdb_index_command): Likewise.
1625 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1626 Likewise.
1627 * expprint.c (dump_subexp_body_standard): Likewise.
1628 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1629 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1630 original_name.
1631 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1632 obj_name, use objfile_name for it, use the variable.
1633 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1634 Use objfile_name.
1635 * machoread.c (macho_symtab_read, macho_check_dsym)
1636 (macho_symfile_relocate): Likewise.
1637 * maint.c (maintenance_translate_address): Likewise.
1638 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1639 * minsyms.c (install_minimal_symbols): Likewise.
1640 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1641 original_name.
1642 (filter_overlapping_sections): Use objfile_name.
1643 (objfile_name): New function.
1644 * objfiles.h (struct objfile): Rename field name to original_name.
1645 (objfile_name): New prototype.
1646 * printcmd.c (sym_info, address_info): Use objfile_name.
1647 * probe.c (parse_probes, collect_probes, compare_probes)
1648 (info_probes_for_ops): Likewise.
1649 * progspace.c (clone_program_space): Likewise.
1650 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1651 (maintenance_info_psymtabs): Likewise.
1652 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1653 (source_section_scripts): Likewise.
1654 * python/py-objfile.c (objfpy_get_filename): Likewise.
1655 * python/py-progspace.c (pspy_get_filename): Likewise.
1656 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1657 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1658 * solib.c (solib_read_symbols): Likewise.
1659 * stabsread.c (scan_file_globals): Likewise.
1660 * stap-probe.c (handle_stap_probe): Likewise.
1661 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1662 (find_separate_debug_file_by_debuglink): Likewise.
1663 (reread_symbols): Likewise. Use the objfile field name renamed to
1664 original_name.
1665 (allocate_symtab): Use objfile_name.
1666 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1667 (dump_objfile, dump_msymbols, dump_symtab_1)
1668 (maintenance_print_msymbols, maintenance_print_objfiles)
1669 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1670 * target.c (target_translate_tls_address, target_info): Likewise.
1671 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1672 objfile_name.
1673
4721dc18
JK
16742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1675
1676 Code cleanup.
1677 * probe.c (parse_probes): Rename variable objfile_name to
1678 objfile_namestr.
1679
a61d6db8
JK
16802013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1681
1682 Remove solib-sunos.c.
1683 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1684 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1685 * objfiles.c (rt_common_objfile): Remove.
1686 (free_objfile): Remove rt_common_objfile comparison.
1687 * objfiles.h (rt_common_objfile): Remove.
1688 * solib-sunos.c: Remove.
1689 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1690
2659903b
JK
16912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 Remove a.out NetBSD and OpenBSD hosts.
1694 * NEWS (Removed native configurations): New.
1695 * config/arm/nbsdaout.mh: Remove.
1696 * config/i386/nbsdaout.mh: Remove.
1697 * config/i386/obsdaout.mh: Remove.
1698 * config/m68k/nbsdaout.mh: Remove.
1699 * config/sparc/nbsdaout.mh: Remove.
1700 * config/vax/nbsdaout.mh: Remove.
1701 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1702 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1703 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1704 error.
1705 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1706 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1707 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1708
f60e2d5c
TT
17092013-09-23 Tom Tromey <tromey@redhat.com>
1710
1711 * linespec.c (struct minsym_and_objfile): Remove.
1712 (minsym_and_objfile_d): Remove.
1713 (struct linespec, struct collect_info, linespec_parse_basic)
1714 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1715 (compare_msymbols, find_method, find_function_symbols)
1716 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1717 (add_minsym, search_minsyms_for_name): Update.
1718
d3eaaf66
AB
17192013-09-23 Andrew Burgess <aburgess@broadcom.com>
1720
1721 * regcache.c: Add include of valprint.h.
1722 (dump_endian_bytes): Delete.
1723 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1724
2cc762b5
AB
17252013-09-23 Andrew Burgess <aburgess@broadcom.com>
1726
1727 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1728
96181529
PA
17292013-09-19 Pedro Alves <palves@redhat.com>
1730
1731 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1732 breakpoints.
1733
9b3f3ee6
TS
17342013-09-19 Pedro Alves <palves@redhat.com>
1735 Thomas Schwinge <thomas@codesourcery.com>
1736 Yue Lu <hacklu.newborn@gmail.com>
1737
1738 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1739 Take a gdb_byte pointer instead of a char pointer.
1740
1741 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1742 gnu_xfer_partial helper.
1743 (gnu_xfer_partial): New function.
1744 (gnu_target): Don't install a deprecated_xfer_memory hook.
1745 Install a to_xfer_partial hook.
1746
69150c3d
JK
17472013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 Constification.
1750 * main.c (captured_main): Replace catch_command_errors by
1751 catch_command_errors_const. Twice.
1752 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1753 (symbol_file_add): Make name parameter const.
1754 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1755 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1756 variable name. Change their usage accordingly.
1757 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1758 const.
1759 (symbol_file_add_main): Make args parameter const.
1760
086850b2
UW
17612013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1762 Ulrich Weigand <uweigand@de.ibm.com>
1763
1764 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1765 of c_value member.
1766 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1767
ca08a94c 17682013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1769 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1770
1771 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1772 (gnu_create_inferior)
1773 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1774 (set_sig_thread_cmd): Use the lwpid field of ptids to
1775 store/extract thread ids instead of the tid field.
1776 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1777
e4c6a2c4
AB
17782013-09-18 Andrew Burgess <aburgess@broadcom.com>
1779
1780 * infcmd.c (default_print_one_register_info): Add detection of
1781 optimized out values.
1782 (default_print_registers_info): Switch to using
1783 get_frame_register_value.
1784
58c48e72
MM
17852013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1786
1787 * infrun.c (handle_inferior_event): Check if we know the
1788 function start address before setting a resume breakpoint.
1789
c8d37639
PA
17902013-09-18 Pedro Alves <palves@redhat.com>
1791
1792 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1793 minus_one_ptid instead of looking at the ptid's tid field and
1794 comparing that to -1.
1795
71926e28
AB
17962013-09-18 Andrew Burgess <aburgess@broadcom.com>
1797
1798 * main.h (get_gdb_program_name): Remove extra whitespace.
1799
c88a1531
AB
18002013-09-18 Andrew Burgess <aburgess@broadcom.com>
1801
1802 * main.h (get_gdb_program_name): Add declaration.
1803 * main.c (get_gdb_program_name): Add definition.
1804
4390d890
DE
18052013-09-17 Doug Evans <dje@google.com>
1806
1807 * dwarf2read.c: Move definitions of complaint functions to after
1808 forward declarations of local functions.
1809
49fa26b0
PA
18102013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1811 Pedro Alves <palves@redhat.com>
1812
1813 PR gdb/11568
1814 * breakpoint.c (remove_threaded_breakpoints): New function.
1815 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1816 as thread_exit observer.
1817
08d72866
PA
18182013-09-17 Pedro Alves <palves@redhat.com>
1819
1820 PR gdb/15911
1821 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1822 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1823 * corelow.c (core_open):
1824 * frame.h (print_stack_frame, print_frame_info): New
1825 'set_current_sal' parameter.
1826 * infcmd.c (finish_command, kill_command): Adjust call to
1827 print_stack_frame.
1828 * inferior.c (inferior_command): Likewise.
1829 * infrun.c (normal_stop): Likewise.
1830 * linux-fork.c (linux_fork_context): Likewise.
1831 * record-full.c (record_full_goto_entry, record_full_restore):
1832 Likewise.
1833 * remote-mips.c (common_open): Likewise.
1834 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1835 Use it.
1836 (print_frame_info): New 'set_current_sal' parameter. Set the last
1837 displayed sal depending on the new paremeter instead of looking at
1838 print_what.
1839 (backtrace_command_1, select_and_print_frame, frame_command)
1840 (current_frame_command, up_command, down_command): Adjust call to
1841 print_stack_frame.
1842 * thread.c (print_thread_info, restore_selected_frame)
1843 (do_captured_thread_select): Adjust call to print_stack_frame.
1844 * tracepoint.c (tfind_1): Likewise.
1845 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1846 (mi_cmd_stack_info_frame): Likewise.
1847 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1848 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1849
6bc305f5
SDJ
18502013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1851
1852 * value.c (isvoid_internal_fn): Replace "parameter" with
1853 "argument".
1854
0a7cfe2c
SS
18552013-09-16 Stan Shebs <stan@codesourcery.com>
1856
1857 * README: Update references to writing code for GDB.
1858 * configure.ac (build_warnings): Remove obsolete comment.
1859 * configure: Regenerate.
1860 * gdbarch.sh: Remove references to gdbint.texinfo.
1861 * gdbarch.h: Regenerate.
1862 * gdbtypes.c (objfile_type): Remove comments referencing internals
1863 manual and D10V.
1864
a280dbd1
SDJ
18652013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1866
1867 * NEWS: Mention new convenience function $_isvoid.
1868 * value.c (isvoid_internal_fn): New function.
1869 (_initialize_values): Add new convenience function $_isvoid.
1870
04a83fee
PM
18712013-09-16 Pierre Muller <muller@sourceware.org>
1872
1873 * arm-linux-tdep.c: Add "elf/common.h" header.
1874 Remove AT_HWCAP macro definintion as it is provided in
1875 added include file.
1876 * s390-tdep.c: Remove system header <elf.h>
1877 Add "elf/common.h" header for AT_HWCAP definition.
1878 (s390_core_read_description): Use correct CORE_ADDR
1879 for hwcap local variable used as third parameter
1880 of function target_auxv_search.
1881
88505fac
PM
18822013-09-14 Pierre Muller <muller@sourceware.org>
1883 Tom Tromey <tromey@redhat.com>
1884 Pedro Alves <palves@redhat.com>
1885
1886 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1887 mode if operating system doesn't know O_CLOEXEC.
1888
d3846e71
JK
18892013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 Code cleanup.
1892 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1893 inner block.
1894
4ac33720
UW
18952013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1896
1897 * NEWS: Mention TDB support.
1898 * features/s390-tdb.xml: New file.
1899 * features/s390-te-linux64.xml: New file.
1900 * features/s390x-te-linux64.xml: New file.
1901 * features/Makefile (WHICH): Add new tdescs above.
1902 (s390-te-linux64-expedite): Set.
1903 (s390x-te-linux64-expedite): Set.
1904 * features/s390-te-linux64.c: New file (generated).
1905 * features/s390x-te-linux64.c: New file (generated).
1906 * regformats/s390-te-linux64.dat: New file (generated).
1907 * regformats/s390x-te-linux64.dat: New file (generated).
1908 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1909 (HWCAP_S390_TE): Likewise.
1910 (S390_TDB_DWORD0_REGNUM): Likewise.
1911 (S390_TDB_DWORD0_REGNUM): Likewise.
1912 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1913 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1914 (S390_TDB_ATIA_REGNUM): Likewise.
1915 (S390_TDB_R0_REGNUM): Likewise.
1916 (S390_TDB_R1_REGNUM): Likewise.
1917 (S390_TDB_R2_REGNUM): Likewise.
1918 (S390_TDB_R3_REGNUM): Likewise.
1919 (S390_TDB_R4_REGNUM): Likewise.
1920 (S390_TDB_R5_REGNUM): Likewise.
1921 (S390_TDB_R6_REGNUM): Likewise.
1922 (S390_TDB_R7_REGNUM): Likewise.
1923 (S390_TDB_R8_REGNUM): Likewise.
1924 (S390_TDB_R9_REGNUM): Likewise.
1925 (S390_TDB_R10_REGNUM): Likewise.
1926 (S390_TDB_R11_REGNUM): Likewise.
1927 (S390_TDB_R12_REGNUM): Likewise.
1928 (S390_TDB_R13_REGNUM): Likewise.
1929 (S390_TDB_R14_REGNUM): Likewise.
1930 (S390_TDB_R15_REGNUM): Likewise.
1931 (S390_NUM_REGS): Increase.
1932 (S390_IS_TDBREGSET_REGNUM): New macro.
1933 (s390_regmap_tdb): Declare.
1934 (s390_sizeof_tdbregset): Define.
1935 (tdesc_s390_te_linux64): Declare.
1936 (tdesc_s390x_te_linux64): Likewise.
1937 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1938 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1939 (s390_regmap_tdb): New regmap.
1940 (s390_supply_tdb_regset): New function.
1941 (s390_tdb_regset): New regset.
1942 (s390_linux64v2_regset_sections): Add TDB regset to list.
1943 (s390x_linux64v2_regset_sections): Likewise.
1944 (s390_regset_from_core_section): Recognize TDB core note section.
1945 (s390_core_read_description): If HWCAP indicates TE support,
1946 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1947 (s390_gdbarch_init): Handle TDB regset.
1948 (_initialize_s390_tdep): Initialize new tdescs.
1949 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1950 (have_regset_tdb): New variable.
1951 (s390_native_supply): Support register invalidation.
1952 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1953 (check_regset): Treat ENODATA as "regset exists".
1954 (s390_linux_fetch_inferior_registers): Add TDB.
1955 (s390_read_description): Check for TDB existence and select
1956 appropriate tdesc.
1957 * gdbserver/Makefile.in (clean): Add removal of new makefile
1958 targets.
1959 (s390-te-linux64.c): New makefile target.
1960 (s390x-te-linux64.c): Likewise.
1961 * gdbserver/configure.srv (srv_regobj): Append new objects
1962 s390-te-linux64.o and s390x-te-linux64.o.
1963 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1964 s390x-te-linux64.xml, and s390-tdb.xml.
1965 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1966 declaration.
1967 (tdesc_s390_te_linux64): Likewise.
1968 (init_registers_s390x_te_linux64): Likewise.
1969 (tdesc_s390x_te_linux64): Likewise.
1970 (s390_check_regset): Treat ENODATA as "regset exists".
1971 (s390_arch_setup): Add TDB regset support.
1972 (initialize_low_arch): Initialize registers for new tdescs.
1973
2ccd1468
UW
19742013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1975
1976 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1977 (S390_IS_FPREGSET_REGNUM): New macro.
1978 * s390-tdep.c (s390_dwarf_regmap): Make const.
1979 (regnum_is_gpr_full): New function for replacing repeated code.
1980 (s390_pseudo_register_name): Use it.
1981 (s390_pseudo_register_type): Likewise.
1982 (s390_pseudo_register_read): Likewise.
1983 (s390_pseudo_register_write): Likewise.
1984 (s390_unwind_pseudo_register): Likewise.
1985 (s390_regmap_gregset): New format for regmap.
1986 (s390x_regmap_gregset): Likewise.
1987 (s390_regmap_fpregset): Likewise.
1988 (s390_regmap_upper): Likewise.
1989 (s390_regmap_last_break): Likewise.
1990 (s390_regmap_system_call): Likewise.
1991 (s390_supply_regset): Adjust to new regmap format.
1992 (s390_collect_regset): Likewise.
1993 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1994 (s390_native_collect): Likewise.
1995 (supply_gregset): Likewise.
1996 (fill_gregset): Likewise.
1997 (supply_fpregset): Likewise.
1998 (fill_fpregset): Likewise.
1999 (fetch_regset): Likewise.
2000 (store_regset): Likewise.
2001 (s390_linux_fetch_inferior_registers): Likewise.
2002 (s390_linux_fetch_inferior_registers): Likewise.
2003
1aa4cd77
AP
20042013-09-12 Andrew Pinski <apinski@cavium.com>
2005
2006 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2007
d91fab15
UW
20082013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009
2010 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2011
5a5d8ead
AB
20122013-09-09 Andrew Burgess <aburgess@broadcom.com>
2013
2014 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2015
1385f66c
PA
20162013-09-06 Pedro Alves <palves@redhat.com>
2017
2018 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2019 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2020 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2021 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2022 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2023 gdb_stdlog.
2024
146ec4db
PA
20252013-09-06 Pedro Alves <palves@redhat.com>
2026
2027 * remote-sim.c (dump_mem): Constify buf parameter.
2028 gdbsim_xfer_inferior_memory): Rename to ...
2029 (gdbsim_xfer_memory): ... this. Adjust interface as
2030 target_xfer_partial helper.
2031 (gdbsim_xfer_partial): New function.
2032 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2033 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2034
fcde0081
PA
20352013-09-06 Pedro Alves <palves@redhat.com>
2036
2037 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2038 host_address_to_string, and send debug output to gdb_stdlog.
2039
749c8b38
RW
20402013-09-06 Ricard Wanderlof <ricardw@axis.com>
2041
2042 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2043 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2044 gdb_target_obs for cris target.
2045 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2046 (cris_gdbarch_init): Move calls to
2047 set_gdbarch_fetch_tls_load_module_address and
2048 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2049 Add call to gdbarch_init_osabi.
2050 * cris-linux-tdep.c: New file.
2051 * cris-tdep.h: New file.
2052
43df09d9
AB
20532013-09-06 Andrew Burgess <aburgess@broadcom.com>
2054
2055 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2056 to deprecated_init_ui_hook.
2057
4d09c5b4
AB
20582013-09-06 Andrew Burgess <aburgess@broadcom.com>
2059
2060 * cli/cli-interp.c (_initialize_cli_interp): Add a
2061 command_loop_proc to interp_procs.
2062 * event-top.c (cli_command_loop): Change signature to match
2063 interp_command_loop_ftype.
2064 * event-top.h (cli_command_loop): Same.
2065 * interps.c (interp_new): Require every interpreter to have a
2066 command_loop_proc.
2067 (current_interp_command_loop): Just call the command_loop_proc on
2068 the current interpreter.
2069 * tui/tui-interp.c (_initialize_tui_interp): Add a
2070 command_loop_proc to interp_procs.
2071
8eb3d7b6
RW
20722013-09-06 Ricard Wanderlof <ricardw@axis.com>
2073
2074 * cris-tdep.c (cris_gdbarch_init): Add call to
2075 get_gdbarch_fetch_tls_load_module_address.
2076
18b3c2f5
RW
20772013-09-06 Ricard Wanderlof <ricardw@axis.com>
2078
2079 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2080 (cris_elf_gregset_t): Rename from elf_gregset_t.
2081 (crisv32_elf_gregset_t): Adjust.
2082 (cris_supply_gregset, fetch_core_registers): Adjust.
2083
dc8636ef
RW
20842013-09-06 Ricard Wanderlof <ricardw@axis.com>
2085
2086 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2087
257e6d53
AB
20882013-09-05 Andrew Burgess <aburgess@broadcom.com>
2089
1581d8a7 2090 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2091 references in comments.
1581d8a7 2092 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2093 deprecated_command_loop_hook.
2094 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2095 setup.
1581d8a7 2096 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2097
7c33b57c
PA
20982013-09-05 Pedro Alves <palves@redhat.com>
2099
2100 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2101 local is now int instead of ULONGEST. Print it with %d
2102 instead of paddress.
2103
9f8edbd5
TG
21042013-09-05 Tristan Gingold <gingold@adacore.com>
2105
2106 * MAINTAINERS: Remove avr maintainership.
2107
d5b495b4
PA
21082013-09-05 Pedro Alves <palves@redhat.com>
2109
2110 * findvar.c (value_of_register): Rework in terms of
2111 value_of_register_lazy.
2112
40b91786
MB
21132013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2114
2115 * symfile.c (add_symbol_file_command): Remove trailing
2116 whitespaces and blank line after comment.
2117
6eed1678
PA
21182013-09-05 Pedro Alves <palves@redhat.com>
2119
2120 * tui/tui-regs.c (tui_register_format): Don't look at the
2121 register's name here. Return string representing register
2122 value instead of storing it in the data element.
2123 (tui_get_register): Compare register string representations
2124 instead of register value states and contents.
2125
8eb6bda2
PA
21262013-09-05 Pedro Alves <palves@redhat.com>
2127
2128 PR tui/15933
2129 * tui/tui-regs.c (tui_show_registers): Show registers of the
2130 selected frame, not the current frame.
2131
48b1f08c
RW
21322013-09-05 Ricard Wanderlof <ricardw@axis.com>
2133
2134 * MAINTAINERS (Write After Approval): Add myself to the list.
2135
89e63ee4
DE
21362013-09-04 Doug Evans <dje@google.com>
2137
2138 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2139 (queue_and_load_dwo_tu): New function.
2140 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2141 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2142 Make dependent_cu optional.
2143 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2144 and an older .gdb_index is in use, queue and load all its TUs too.
2145
492c0ab7
JK
21462013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2147
2148 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2149 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2150 variable search_flags.
2151 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2152 (OPF_RETURN_REALPATH): ... here.
2153 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2154 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2155 call. Twice.
2156 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2157 openp call.
2158 * solib.c (solib_find): Likewise. Four times.
2159 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2160 in the function comment and for the realpath_fptr variable.
2161 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2162 (find_and_open_source): Likewise. Twice.
2163 * symfile.c (symfile_bfd_open): Likewise, also twice.
2164
23a44de8
DE
21652013-09-04 Doug Evans <dje@google.com>
2166
2167 * progspace.c (save_current_space_and_thread): Remove unnecessary
2168 call to save_current_inferior.
2169
47061676
AB
21702013-09-04 Andrew Burgess <aburgess@broadcom.com>
2171
2172 * sh64-tdep.c (sh64_do_register): Return after printing message
2173 about unavailable register contents.
2174
41dc8db8
MB
21752013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2176 Pedro Alves <palves@redhat.com>
2177
2178 * symfile.c (add_symbol_file_command): Error out on unknown
2179 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2180 options and collapse into single conditional branch.
2181
07107ca6
LM
21822013-09-03 Luis Machado <lgustavo@codesourcery.com>
2183
a7ea61cf 2184 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2185 detach_fork.
2186 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2187 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2188 * inferior.h (detach_fork): Remove.
2189 * infrun.c (detach_fork): Adjust comment and make it
2190 static.
2191 (follow_fork): Pass detach_fork parameter to
2192 target_follow_fork.
2193 * linux-nat.c (linux_child_follow_fork): New parameter
2194 detach_fork.
2195 * target.c (target_follow_fork): New parameter detach_fork.
2196 Pass detach_fork as parameter and print its value.
2197 * target.h (struct target_ops) <to_follow_fork>: New int
2198 parameter.
2199 (target_follow_fork): New parameter detach_fork.
2200
3bec2768
JB
22012013-09-03 Joel Brobecker <brobecker@adacore.com>
2202
2203 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2204 Replace sec->bfd by sec->the_bfd_section->owner.
2205
c01cbb3d
YQ
22062013-09-03 Yao Qi <yao@codesourcery.com>
2207
2208 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2209 from linux_has_shared_address_space.
2210 (linux_has_shared_address_space): Call linux_is_uclinux.
2211 * linux-tdep.h (linux_is_uclinux): Declare.
2212 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2213 linux_is_uclinux.
2214
7b00db47
YQ
22152013-09-03 Yao Qi <yao@codesourcery.com>
2216
2217 * config/djgpp/fnchange.lst: Remove entry of
2218 i386-interix-nat.c and i386-interix-tdep.c.
2219 * configure.ac: Remove '*-*-interix*'.
2220 * configure: Re-generated.
2221 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2222 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2223 obsolete comments.
2224 * osabi.c (gdb_osabi_names): Remove "Interix".
2225
0f9741f2
YQ
22262013-09-03 Yao Qi <yao@codesourcery.com>
2227
2228 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2229
1e038f67
MM
22302013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2231
2232 * record.h (record_print_flag) <record_print_src_line,
2233 record_print_insn_range>: Rename into ...
2234 (record_print_flag) <record_print_src_line,
2235 record_print_insn_range>: ... this. Update all users.
2236
9e52adf9
PM
22372013-09-02 Pierre Muller <muller@sourceware.org>
2238
2239 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2240 error code.
2241
a2388568
PM
22422013-09-02 Pierre Muller <muller@sourceware.org>
2243
2244 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2245 by use of plongest function.
2246
9058cc3a
TG
22472013-09-02 Tristan Gingold <gingold@adacore.com>
2248
2249 * NEWS: Add entry mentioning support for native Windows x64
2250 SEH data.
2251
2252 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2253 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2254 (struct amd64_windows_frame_cache): New struct.
2255 (amd64_windows_w2gdb_regnum): New global.
2256 (pc_in_range, amd64_windows_frame_decode_epilogue)
2257 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2258 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2259 (amd64_windows_frame_this_id): New functions.
2260 (amd64_windows_frame_unwind): New static global.
2261 (amd64_windows_skip_prologue): New function.
2262 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2263 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2264 with amd64_windows_skip_prologue.
2265
3161820b 22662013-08-30 Joel Brobecker <brobecker@adacore.com>
2267
2268 GDB 7.6.1 released.
2269
02457c76
PA
22702013-08-30 Pedro Alves <palves@redhat.com>
2271
2272 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2273 SRC_AND_LOC.
2274
e0162910
PA
22752013-08-30 Pedro Alves <palves@redhat.com>
2276
2277 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2278 warning text.
2279
6391ce51
PA
22802013-08-30 Pedro Alves <palves@redhat.com>
2281
2282 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2283 Adjust arguments to print_stack_frame.
2284
d1da0587
PA
22852013-08-30 Pedro Alves <palves@redhat.com>
2286
2287 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2288
adfd8245
PA
22892013-08-30 Pedro Alves <palves@redhat.com>
2290
2291 * frame.h (show_and_print_stack_frame): Delete declaration.
2292
96d9056e
PM
22932013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2294
2295 PR python/15461
96d9056e
PM
2296 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2297 (archpy_name): Check for valid architecture.
2298 (archpy_disassemble): Ditto.
2299
11cb8762
JB
23002013-08-29 Joel Brobecker <brobecker@adacore.com>
2301
2302 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2303 instead of "long long" in call to ptrace64.
2304
1af12a7d
AB
23052013-08-29 Andrew Burgess <aburgess@broadcom.com>
2306
2307 * mi/mi-interp.c (mi_command_loop): Change signature to match
2308 interp_command_loop_ftype.
2309 (mi1_command_loop): Remove.
2310 (mi2_command_loop): Remove.
2311 (mi3_command_loop): Remove.
2312 (mi_interpreter_resume): Remove setting of
2313 deprecated_command_loop_hook.
2314 (_initialize_mi_interp): Set mi_command_loop as the command loop
2315 callback.
2316
acc900c2
SA
23172013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2318
2319 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2320 value_type.
2321
548b762d
SA
23222013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2323
2324 * value.c (allocate_value_contents): Make static.
2325 * value.h (allocate_value_contents): Remove prototype.
2326
08039c9e
SA
23272013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2328
2329 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2330 of assembling value via allocate_value_lazy and attribute setter.
2331 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2332 assembling value via allocate_value_lazy and attribute setter.
2333 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2334 assembling value via allocate_value_lazy and attribute setter.
2335
314c7de9
SA
23362013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2337
2338 * value.c (value_from_contents_and_address): Replace allocate_value and
2339 memcpy with value_from_contents.
2340
8f28f522
PM
23412013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2342
2343 * python/py-framefilter.c (py_print_frame): Remove usage of
2344 PyString_AsString. Use python_string_to_host_string instead.
2345 Refactor function to work with a string as a new allocation
2346 instead of a pointer.
2347 (py_print_frame): Ditto.
2348 * python/lib/gdb/frames.py (return_list): Cain iterators together
2349 instead of adding them as a list.
2350 (_sort_list): Call return_list, and remove duplicate code.
2351 (execute_frame_filters): Convert iterator to a list with list().
2352 * python/lib/gdb/command/frame_filters.py
2353 (SetFrameFilterPriority._set_filter_priority): Convert priority
2354 attribute to an integer.
2355 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2356 wrapper function __next__.
2357 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2358 define as "str".
2359
8ee002df
PM
23602013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2361
2362 PR python/15752
8ee002df
PM
2363 * python/py-framefilter.c (apply_frame_filter): Check
2364 gdb_python_initialized. Exit if the Python frame-filter code
2365 cannot be initialized.
2366
af4c453a
PM
23672013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2368
2369 PR cli/15842
af4c453a
PM
2370 * top.c (print_gdb_version): Remove erroneous newline after help
2371 text.
2372
bf8793bb
YQ
23732013-08-29 Yao Qi <yao@codesourcery.com>
2374
2375 * varobj.c (install_dynamic_child): Remove trailing space.
2376 Add one blank line after variable declaration.
2377
1f0c4988
JK
23782013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 PR gdb/15415
2381 * corefile.c (get_exec_file): Use exec_filename.
2382 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2383 * exec.c (exec_close): Free EXEC_FILENAME.
2384 (exec_file_attach): New variable canonical_pathname. Use
2385 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2386 EXEC_FILENAME.
2387 * exec.h (exec_filename): New.
2388 * inferior.c (print_inferior, inferior_command): Use
2389 PSPACE_EXEC_FILENAME.
2390 * mi/mi-main.c (print_one_inferior): Likewise.
2391 * progspace.c (clone_program_space, print_program_space): Likewise.
2392 * progspace.h (struct program_space): New field pspace_exec_filename.
2393 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2394 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2395
59ee9f94
WN
23962013-08-28 Will Newton <will.newton@linaro.org>
2397
2398 * common/linux-ptrace.c: Include stdint.h unconditionally.
2399
c8a2a419
JK
24002013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 Code cleanup.
2403 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2404
ffa4ac95
YQ
24052013-08-28 Yao Qi <yao@codesourcery.com>
2406 Pedro Alves <palves@redhat.com>
2407
2408 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2409 instead of stdio_fileopen.
2410 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2411 .Call stderr_fileopen instead of stdio_fileopen.
2412 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2413 [__MINGW32__] (stderr_file_fputs): New function.
2414 (stderr_fileopen): New function.
2415 * ui-file.h (stderr_fileopen): Declare.
2416
69d751e3
DE
24172013-08-27 Doug Evans <dje@google.com>
2418
2419 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2420 (struct dwarf2_per_cu_data): Ditto.
2421 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2422 (process_imported_unit_die): Ditto.
2423 (follow_die_sig_1): Simplify assert.
2424
44f38867
PA
24252013-08-27 Pedro Alves <palves@redhat.com>
2426
2427 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2428 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2429 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2430 windows_xfer_memory directly.
2431 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2432
d28d46b5
PA
24332013-08-27 Pedro Alves <palves@redhat.com>
2434
2435 * darwin-nat.c (darwin_xfer_memory): Delete.
2436 (_initialize_darwin_inferior): Don't install a
2437 deprecated_xfer_memory method.
2438
6211c335
YQ
24392013-08-27 Pedro Alves <pedro@codesourcery.com>
2440 Yao Qi <yao@codesourcery.com>
2441
2442 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2443 (parse_no_frames_option): Remove.
2444 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2445 (mi_cmd_stack_list_args): Adjust.
2446 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2447 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2448 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2449 Caller update.
2450 (list_args_or_locals): New parameter 'skip_unavailable'.
2451 Handle it.
2452 * valprint.c (scalar_type_p): Rename to ...
2453 (val_print_scalar_type_p): ... this. Make extern.
2454 (val_print, value_check_printable): Adjust.
2455 * valprint.h (val_print_scalar_type_p): Declare.
2456 * value.c (value_entirely_unavailable): New function.
2457 * value.h (value_entirely_unavailable): Declare.
2458
2459 * NEWS: Mention the new option "--skip-unavailable" to MI
2460 commands '-stack-list-locals', '-stack-list-arguments' and
2461 '-stack-list-variables'.
2462
242f1fd7
YQ
24632013-08-27 Yao Qi <yao@codesourcery.com>
2464
2465 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2466 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2467 options.
2468 * mi/mi-getopt.c (mi_getopt): Remove.
2469 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2470 'error_on_unknown'.
2471 (mi_getopt): Call mi_getopt_1.
2472 (mi_getopt_silent): New.
2473 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2474
260b681b
DE
24752013-08-26 Doug Evans <dje@google.com>
2476
779bd270
DE
2477 PR symtab/15885
2478 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2479 .gdb_index is in use.
2480 * symfile.c (reread_symbols): Reset objfile->sf.
2481
52e260a3
DE
2482 * NEWS: Document "mt print objfiles" now takes optional regexp.
2483 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2484 regexp of objfiles to print.
2485 (_initialize_symmisc): Update doc string for "mt print objfiles".
2486
260b681b
DE
2487 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2488 missing debug info checks.
2489
a85c52f2
UW
24902013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2491 Ulrich Weigand <uweigand@de.ibm.com>
2492
2493 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2494 line tables generated by XLC compiled binaries.
2495
4f00dda3
DE
24962013-08-23 Doug Evans <dje@google.com>
2497
db68bbae
DE
2498 * symmisc.c (dump_symtab): Delete prototype.
2499 (dump_msymbols, dump_objfile): Ditto.
2500 (maintenance_info_symtabs): Mark as dont_repeat.
2501 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2502
4f00dda3
DE
2503 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2504 debugging printf to better location.
2505
23d577b0
PA
25062013-08-23 Pedro Alves <palves@redhat.com>
2507
2508 * target.c (target_read_live_memory): Change type of 'ret' local
2509 to LONGEST.
2510
00d84524
PA
25112013-08-23 Pedro Alves <palves@redhat.com>
2512
2513 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2514 (remote_read_bytes): Change return type to LONGEST, and adjust to
2515 return a target_xfer_error on error.
2516 (remote_xfer_memory): Delete.
2517 (remote_flash_write): Change type of 'ret' local to LONGEST.
2518 (remote_xfer_partial, remote_xfer_partial): Adjust.
2519 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2520
1ed3ee94
PM
25212013-08-23 Pierre Muller <muller@sourceware.org>
2522
2523 ARI fix: Push # directives to start of line.
2524 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2525
9eaabc75
MW
25262013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2527
2528 PR gdb/15501
2529 * breakpoint.c (enable_command, disable_command): Iterate over
2530 all specified breakpoint locations.
2531
101158d9
LM
25322013-08-22 Luis Machado <lgustavo@codesourcery.com>
2533
2534 * common/linux-ptrace.c (linux_fork_to_function): Push #
2535 directives to the start of the line.
2536 (linux_check_ptrace_features): Fix warning message to use
2537 the "_" markup.
2538
96d7229d
LM
25392013-08-22 Luis Machado <lgustavo@codesourcery.com>
2540
2541 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2542 nat/linux-waitpid.h.
2543 (linux-waitpid.o): New object file rule.
2544 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2545 (current_ptrace_options): Moved from linux-nat.c.
2546 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2547 parameters.
2548 (linux_fork_to_function): New function.
2549 (linux_grandchild_function): Likewise.
2550 (linux_child_function): Likewise.
2551 (linux_check_ptrace_features): New function, heavily
2552 based on linux-nat.c:linux_test_for_tracefork.
2553 (linux_enable_event_reporting): New function.
2554 (ptrace_supports_feature): Likewise.
2555 (linux_supports_tracefork): Likewise.
2556 (linux_supports_traceclone): Likewise.
2557 (linux_supports_tracevforkdone): Likewise.
2558 (linux_supports_tracesysgood): Likewise.
2559 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2560 gdbserver/linux-low.c.
2561 (linux_enable_event_reporting): New declaration.
2562 (linux_supports_tracefork): Likewise.
2563 (linux_supports_traceclone): Likewise.
2564 (linux_supports_tracevforkdone): Likewise.
2565 (linux_supports_tracesysgood): Likewise.
2566 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2567 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2568 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2569 * config/arm/linux.mh (NATDEPFILES): Likewise.
2570 * config/i386/linux.mh (NATDEPFILES): Likewise.
2571 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2572 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2573 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2574 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2575 * config/mips/linux.mh (NATDEPFILES): Likewise.
2576 * config/pa/linux.mh (NATDEPFILES): Likewise..
2577 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2578 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2579 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2580 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2581 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2582 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2583 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2584 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2585 ptrace's 4th argument's types.
2586 Check the type of PTRACE_TYPE_ARG4.
2587 * configure: Regenerate.
2588 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2589 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2590 (linux_supports_tracefork_flag): Remove.
2591 (linux_supports_tracesysgood_flag): Likewise.
2592 (linux_supports_tracevforkdone_flag): Likewise.
2593 (current_ptrace_options): Moved to
2594 common/linux-ptrace.c.
2595 (linux_tracefork_child): Remove.
2596 (my_waitpid): Remove.
2597 (linux_test_for_tracefork): Renamed to
2598 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2599 (linux_test_for_tracesysgood): Remove.
2600 (linux_supports_tracesysgood): Remove.
2601 (linux_supports_tracefork): Remove.
2602 (linux_supports_tracevforkdone): Remove.
2603 (linux_enable_tracesysgood): Remove.
2604 (linux_enable_event_reporting): Remove.
2605 (linux_init_ptrace): New function.
2606 (linux_child_post_attach): Call linux_init_ptrace.
2607 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2608 (linux_child_follow_fork): Call linux_supports_tracefork
2609 and linux_supports_tracevforkdone.
2610 (linux_child_insert_fork_catchpoint): Call
2611 linux_supports_tracefork.
2612 (linux_child_insert_vfork_catchpoint): Likewise.
2613 (linux_child_set_syscall_catchpoint): Call
2614 linux_supports_tracesysgood.
2615 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2616 * nat/linux-nat.h: New file.
2617 * nat/linux-waitpid.c: New file.
2618 * nat/linux-waitpid.h: New file.
2619
9f948660
SDJ
26202013-08-22 Samuel Bronson <naesten@gmail.com>
2621
2622 ARM Linux support for `catch syscall'.
2623 * syscalls/arm-linux.py: New file.
2624 * syscalls/arm-linux.xml: Likewise.
2625 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2626 (arm_linux_init_abi): Register the new function and syscall xml file.
2627 * data-directory/Makefile.in: Install the new syscall xml file.
2628 * NEWS: Brag about this.
2629
6be7b56e
PA
26302013-08-22 Pedro Alves <palves@redhat.com>
2631
2632 PR gdb/15871
2633 * corefile.c (target_xfer_memory_error): New function.
2634 (memory_error): Defer EIO to target_memory_error.
2635 (read_memory): Use target_xfer_partial, and handle finer-grained
2636 target xfer errors.
2637 * target.c (target_xfer_error_to_string): New function.
2638 (memory_xfer_partial_1): If memory is known to be
2639 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2640 (target_xfer_partial): Make extern.
2641 * target.h (enum target_xfer_error): New enum.
2642 (target_xfer_error_to_string): Declare function.
2643 (target_xfer_partial): Declare function.
2644 (struct target_ops) <xfer_partial>: Adjust describing comment.
2645
bcbec14e
AM
26462013-08-22 Alan Modra <amodra@gmail.com>
2647
2648 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2649 * configure.tgt: Likewise as targets.
2650
fc474241
DE
26512013-08-20 Doug Evans <dje@google.com>
2652
2653 * buildsym.c (subfile_stack): Move here from buildsym.h.
2654 (pending_macros): Ditto.
2655 (get_macro_table): New function.
2656 (buildsym_init): Initialize subfile_stack.
2657 * coffread.c (type_vector,type_vector_length): Moved here from
2658 buildsym.h.
2659 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2660 (coff_symtab_read): Use it.
2661 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2662 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2663 with call to get_macro_table.
2664 * stabsread.c (type_vector,type_vector_length): Moved here from
2665 buildsym.h.
2666 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2667 * buildsym.h (get_macro_table): Declare.
2668
bec71544
TT
26692013-08-20 Tom Tromey <tromey@redhat.com>
2670
2671 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2672 Update.
2673 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2674
0002ad5f
DE
26752013-08-20 Doug Evans <dje@google.com>
2676
2677 * blockframe.c: Remove #include "psymtab.h".
2678 * cp-support.c: Ditto.
2679 * source.c: Ditto.
2680 * stack.c: Ditto.
2681
df302446
TT
26822013-08-20 Tom Tromey <tromey@redhat.com>
2683
2684 PR python/15816:
2685 * exceptions.h (return_mask): Now an enum.
2686 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2687 enum constants.
2688
df6d5441
TT
26892013-08-20 Tom Tromey <tromey@redhat.com>
2690
2691 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2692 get_objfile_arch.
2693 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2694 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2695 * jit.c (jit_object_close_impl): Update.
2696 * jv-lang.c (get_dynamics_objfile): Update.
2697 * linespec.c (add_minsym): Use get_dynamics_objfile.
2698 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2699 (allocate_objfile): Don't initialize 'gdbarch' field.
2700 (get_objfile_arch): Update.
2701 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2702 moved from...
2703 (struct objfile) <gdbarch>: ... here. Remove.
2704 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2705 get_objfile_arch.
2706 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2707
f5aee5ee
AM
27082013-08-20 Alan Modra <amodra@gmail.com>
2709
2710 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2711 for IBM long double nan and inf.
2712 (floatformat_is_negative, floatformat_classify,
2713 floatformat_mantissa): Similarly.
2714 (floatformat_ieee_single, floatformat_ieee_double,
2715 floatformat_ieee_quad, floatformat_arm_ext,
2716 floatformat_ia64_spill): Delete unused vars.
2717 (_initialize_doublest): Delete unused function.
2718 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2719 little-endian variants of floatformat_ibm_long_double.
2720
33b60d58 27212013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2722
33b60d58
LM
2723 * Makefile.in (SFILES): Remove common/target-common.c and
2724 add target/waitstatus.c.
2725 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2726 target/resume.h, target/wait.h and target/waitstatus.h.
2727 (COMMON_OBS): Remove target-common.o and add
2728 waitstatus.o.
2729 (target-common.o): Remove.
2730 (waitstatus.o): New target object file.
2731 * common/target-common.c: Move contents to
2732 target/waitstatus.c and remove.
2733 * common/target-common.h: Move contents to other files and
2734 remove.
2735 (enum resume_kind: Move to target/resume.h.
2736 (TARGET_WNOHANG): Move to target/wait.h.
2737 (enum target_waitkind): Move to target/waitstatus.h.
2738 (struct target_waitstatus): Likewise.
2739 * target.h: Do not include target-common.h and
2740 include target/resume.h, target/wait.h and
2741 target/waitstatus.h.
2742 * target/resume.h: New file.
2743 * target/wait.h: New file.
2744 * target/waitstatus.h: New file.
2745 * target/waitstatus.c: New file.
2746
12696c10
PA
27472013-08-19 Pedro Alves <palves@redhat.com>
2748
2749 * linux-nat.c (linux_test_for_tracefork)
2750 (linux_test_for_tracesysgood, linux_child_follow_fork)
2751 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2752 (linux_nat_wait_1): Extend comment.
2753 (linux_async_pipe): Add comment.
2754
ba89f962
KB
27552013-08-15 Kevin Buettner <kevinb@redhat.com>
2756
2757 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2758 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2759 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2760 Update to account for fact that PC is now a pseudo-register.
2761 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2762 cases for RL78_PC_REGNUM.
2763
35ab155d
MB
27642013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2765
2766 PR cli/15841
2767 * top.c (quit_force): Skip writing history file
2768 if input is not from terminal.
2769
0d031856
TT
27702013-08-14 Tom Tromey <tromey@redhat.com>
2771
2772 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2773 resultthreadlist>: New fields.
2774 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2775 (remote_get_threadlist, remote_threadlist_iterator): Use
2776 new fields. Remove static variables.
2777
ee154bee
TT
27782013-08-14 Tom Tromey <tromey@redhat.com>
2779
2780 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2781 remote_watch_data_address>: New fields.
2782 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2783 (process_stop_reply, remote_wait_as)
2784 (remote_check_watch_resources, remote_stopped_data_address): Update.
2785
88b496c3
TT
27862013-08-14 Tom Tromey <tromey@redhat.com>
2787
2788 * remote.c (struct remote_state) <async_client_callback,
2789 async_client_context>: New fields.
2790 (async_client_callback, async_client_context): Remove.
2791 (remote_async_serial_handler, remote_async): Update.
2792
2f65bcb7
TT
27932013-08-14 Tom Tromey <tromey@redhat.com>
2794
2795 * remote.c (sizeof_pkt): Remove.
2796 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2797
b80fafe3
TT
27982013-08-14 Tom Tromey <tromey@redhat.com>
2799
2800 * remote.c (struct remote_state) <use_threadinfo_query,
2801 use_threadextra_query>: New fields.
2802 (remote_threads_info, remote_threads_extra_info)
2803 (remote_open_1): Update.
2804
8e88304f
TT
28052013-08-14 Tom Tromey <tromey@redhat.com>
2806
2807 * remote.c (struct remote_state) <finished_object,
2808 finished_annex, finished_offset>: New fields.
2809 (remote_read_qxfer): Use remote_state fields; remove static
2810 variables.
2811
280ceea3
TT
28122013-08-14 Tom Tromey <tromey@redhat.com>
2813
2814 * remote.c (struct remote_state) <last_sent_step>:
2815 New field.
2816 (last_sent_step): Remove.
2817 (remote_resume, remote_wait_as): Update.
2818
b73be471
TT
28192013-08-14 Tom Tromey <tromey@redhat.com>
2820
2821 * remote.c (struct remote_state) <last_sent_signal>:
2822 New field.
2823 (last_sent_signal): Remove.
2824 (new_remote_state, remote_resume, remote_wait_as): Update.
2825
5e4a05c4
TT
28262013-08-14 Tom Tromey <tromey@redhat.com>
2827
2828 * remote.c (struct remote_state) <last_program_signals_packet>:
2829 New field.
2830 (last_program_signals_packet): Remove.
2831 (remote_program_signals, remote_open_1): Update.
2832
747dc59d
TT
28332013-08-14 Tom Tromey <tromey@redhat.com>
2834
2835 * remote.c (struct remote_state) <last_pass_packet>:
2836 New field.
2837 (last_pass_packet): Remove.
2838 (remote_pass_signals, remote_open_1): Update.
2839
262e1174
TT
28402013-08-14 Tom Tromey <tromey@redhat.com>
2841
2842 * remote.c (struct remote_state) <remote_traceframe_number>:
2843 New field.
2844 (remote_traceframe_number): Remove.
2845 (new_remote_state, remote_open_1, set_remote_traceframe)
2846 (remote_trace_find): Update.
2847
47f8a51d
TT
28482013-08-14 Tom Tromey <tromey@redhat.com>
2849
2850 * remote.c (struct remote_state) <general_thread, continue_thread>:
2851 New fields.
2852 (general_thread, continue_thread): Remove.
2853 (record_currthread, set_thread, set_general_process)
2854 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2855 (extended_remote_mourn_1): Update.
2856
5d93a237
TT
28572013-08-14 Tom Tromey <tromey@redhat.com>
2858
2859 * remote.c (struct remote_state) <remote_desc>: New field.
2860 (remote_desc): Remove.
2861 (remote_threads_info, remote_threads_extra_info, remote_close)
2862 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2863 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2864 (remote_hostio_send_command, remote_file_put, remote_file_get)
2865 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2866 (remote_async, remote_new_objfile, set_range_stepping): Update.
2867
cf792862
TT
28682013-08-14 Tom Tromey <tromey@redhat.com>
2869
2870 * remote.c (remote_state): Now a pointer.
2871 (get_remote_state_raw): Update.
2872 (new_remote_state): New function.
2873 (_initialize_remote): Use new_remote_state.
2874
dc473cfb
TT
28752013-08-14 Tom Tromey <tromey@redhat.com>
2876
2877 * remote.c (remote_protocol_features): Now const.
2878
85ec6ce7
TT
28792013-08-14 Tom Tromey <tromey@redhat.com>
2880
2881 * remote.c (crc32_table, crc32): Remove.
2882 (remote_verify_memory): Use xcrc32.
2883
73033f12
SDJ
28842013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2885
2886 * value.h (create_internalvar_type_lazy): Adjust prototype
2887 declaration.
2888
5c30d39a
AB
28892013-08-13 Andrew Burgess <aburgess@broadcom.com>
2890
2891 * common/format.c (parse_format_string): Don't allow '#' flag for
2892 pointer arguments in format string.
2893
1a66331e
PM
28942013-08-13 Pierre Muller <muller@sourceware.org>
2895
fde605f3 2896 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2897 if rl_get_screen_size did not return useful values.
2898
b4013987
AA
28992013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2900
2901 PR breakpoints/15117
2902 * linespec.c (linespec_parse_basic): Check for convenience
2903 variable or history value while parsing.
2904
959b6a66
SDJ
29052013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2906
2907 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2908 AVR.
2909 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2910 different signals between the generic Linux kernel implementation
2911 and AVR's.
2912 (avr_linux_gdb_signal_from_target): Delete.
2913 (avr_linux_gdb_signal_to_target): Delete.
2914 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2915
24a55014
DE
29162013-08-09 Doug Evans <dje@google.com>
2917
2918 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2919 entries.
2920
eb14d406
SDJ
29212013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2922
2923 * linux-tdep.c: Define enum with generic signal numbers.
2924 (linux_gdb_signal_from_target): New function.
2925 (linux_gdb_signal_to_target): Likewise.
2926 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2927 methods to the functions above.
2928 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2929 (linux_gdb_signal_to_target): Likewise.
2930 * alpha-linux-tdep.c: Define new enum with signals different
2931 from generic Linux kernel.
2932 (alpha_linux_gdb_signal_from_target): New function.
2933 (alpha_linux_gdb_signal_to_target): Likewise.
2934 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2935 with the functions mentioned above.
2936 * avr-tdep.c: Define enum with differences between Linux kernel
2937 and AVR signals.
2938 (avr_linux_gdb_signal_from_target): New function.
2939 (avr_linux_gdb_signal_to_target): Likewise.
2940 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2941 the functions mentioned above.
2942 * sparc-linux-tdep.c: Define enum with differences between SPARC
2943 and generic Linux kernel signal numbers.
2944 (sparc32_linux_gdb_signal_from_target): New function.
2945 (sparc32_linux_gdb_signal_to_target): Likewise.
2946 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2947 to the functions defined above.
2948 * xtensa-linux-tdep.c: Define enum with differences between
2949 Xtensa and Linux kernel generic signals.
2950 (xtensa_linux_gdb_signal_from_target): New function.
2951 (xtensa_linux_gdb_signal_to_target): Likewise.
2952 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2953 to the functions defined above.
2954 * mips-linux-tdep.c: Define enum with differences between
2955 signals in MIPS and Linux kernel generic ones.
2956 (mips_gdb_signal_to_target): New function.
2957 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2958 only different signals from the Linux kernel generic.
2959 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2960 the functions defined above.
2961 * mips-linux-tdep.h (enum mips_signals): Remove.
2962
156d08c8
PA
29632013-08-09 Pedro Alves <palves@redhat.com>
2964
2965 * avr-tdep.c (XMALLOC): Delete macro.
2966 * cli/cli-dump.c (XMALLOC): Delete macro.
2967
db229724
PA
29682013-08-09 Pedro Alves <palves@redhat.com>
2969
2970 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2971 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2972 (fopen_with_cleanup, add_dump_command): Make static.
2973 * cli/cli-dump.h: Delete file.
2974 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2975 cli/cli-dump.h.
2976
3f12a589
PA
29772013-08-09 Pedro Alves <palves@redhat.com>
2978
2979 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2980 error message.
2981
c718be47
PA
29822013-08-09 Pedro Alves <palves@redhat.com>
2983
156d08c8 2984 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2985 error message.
2986
1e351ed1
PA
29872013-08-09 Pedro Alves <palves@redhat.com>
2988
2989 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2990 (gcore_command): Use tilde_expand here, and when showing the
2991 filename to the user, show the expanded version.
2992
1ed8d800
YQ
29932013-08-09 Yao Qi <yao@codesourcery.com>
2994
2995 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2996 'entryval' is set.
2997
47ecca85
PA
29982013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2999
3000 * gcore.c (create_gcore_bfd): Use tilde_expand.
3001
82a0a75f
YQ
30022013-08-08 Yao Qi <yao@codesourcery.com>
3003
3004 * frame.h (read_frame_local): Declare.
3005 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3006 read_frame_local.
3007 * stack.c (read_frame_local): New.
3008
5c4aa40b
YQ
30092013-08-08 Yao Qi <yao@codesourcery.com>
3010
3011 * mi/mi-cmd-stack.c: Update comments to function
3012 list_args_or_locals.
3013
b93601f3
TT
30142013-08-07 Tom Tromey <tromey@redhat.com>
3015
3016 PR symtab/15028:
3017 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3018 (process_psymtab_comp_unit_reader): Use it.
3019 (process_psymtab_comp_unit): Update. Add "pretend_language"
3020 argument.
3021 (dwarf2_build_psymtabs_hard): Update.
3022 (scan_partial_symbols): Pass CU's language to
3023 process_psymtab_comp_unit.
3024
fa760f46
TT
30252013-08-07 Tom Tromey <tromey@redhat.com>
3026
3027 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3028 (dwarf2_gdb_index_functions): Update.
3029 * psymtab.c (find_symbol_file_from_partial): Remove.
3030 (psym_functions): Update.
3031 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3032 Remove.
3033
bf6d8a91
TT
30342013-08-07 Tom Tromey <tromey@redhat.com>
3035
3036 * symfile.c (set_initial_language): Look up "main" symbol
3037 and use its language.
3038 * symtab.c (find_main_filename): Remove.
3039 * symtab.h (find_main_filename): Remove.
3040
f9125b6c
TT
30412013-08-07 Tom Tromey <tromey@redhat.com>
3042
3043 * dwarf2read.c (recursively_compute_inclusions): Add
3044 "immediate_parent" argument. Set symtab's "user" field
3045 if not set.
3046 (compute_symtab_includes): Update.
3047
fdbb204b
TT
30482013-08-07 Tom Tromey <tromey@redhat.com>
3049
3050 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3051 when adding label symbols.
3052
49de1690
UW
30532013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3054 Ulrich Weigand <uweigand@de.ibm.com>
3055
3056 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3057 * configure.host (powerpc64-*-aix*): Likewise.
3058
b08ee99f
UW
30592013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3060 Ulrich Weigand <uweigand@de.ibm.com>
3061
3062 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3063 is defined.
3064 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3065 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3066 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3067 * configure.ac: Check for ptrace64.
3068 * configure, config.in: Regenerate.
3069
fecf803e
UW
30702013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3071 Ulrich Weigand <uweigand@de.ibm.com>
3072
3073 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3074 Call ptrace64 instead of ptrace if defined.
3075 Add macro addr_ptr to take care of ptrace address argument.
3076 (pdc_read_regs): Likewise.
3077 (pdc_write_regs): Likewise.
3078 (aix_thread_resume): Likewise.
3079 (fetch_regs_kernel_thread): Likewise.
3080 (store_regs_kernel_thread): Likewise.
3081
3bb5e4a8
AB
30822013-08-07 Anton Blanchard <anton@samba.org>
3083
3084 * MAINTAINERS: Add myself to Write After Approval.
3085
12070676
TT
30862013-08-05 Tom Tromey <tromey@redhat.com>
3087
3088 * aix-thread.c (_initialize_aix_thread): Use
3089 complete_target_initialization.
3090 * bsd-uthread.c (_initialize_bsd_uthread): Use
3091 complete_target_initialization.
3092 * dec-thread.c (_initialize_dec_thread): Use
3093 complete_target_initialization.
3094 * ravenscar-thread.c (_initialize_ravenscar): Use
3095 complete_target_initialization.
3096 * sol-thread.c (_initialize_sol_thread): Use
3097 complete_target_initialization.
3098 * spu-multiarch.c (_initialize_spu_multiarch): Use
3099 complete_target_initialization.
3100
7c7b6655
TT
31012013-08-05 Tom Tromey <tromey@redhat.com>
3102
3103 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3104 * ada-lang.c (ada_lookup_simple_minsym): Return
3105 bound_minimal_symbol.
3106 * ada-lang.h (ada_lookup_simple_minsym): Update.
3107 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3108 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3109 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3110 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3111 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3112 * minsyms.c (msymbol_objfile): Remove.
3113 (lookup_minimal_symbol_internal): New function, from
3114 lookup_minimal_symbol.
3115 (lookup_minimal_symbol): Rewrite using
3116 lookup_minimal_symbol_internal.
3117 (lookup_bound_minimal_symbol): New function.
3118 * minsyms.h (msymbol_objfile): Remove.
3119 (lookup_bound_minimal_symbol): Declare.
3120 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3121 * parse.c (write_exp_msymbol): Change parameter to a
3122 bound_minimal_symbol.
3123 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3124 * parser-defs.h (write_exp_msymbol): Update.
3125 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3126 * symfile.c (simple_read_overlay_table): Use
3127 lookup_bound_minimal_symbol.
3128 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3129 (search_symbols): Likewise.
3130 (print_msymbol_info): Take a bound_minimal_symbol argument.
3131 (symtab_symbol_info, rbreak_command): Update.
3132 * symtab.h (struct symbol_search) <msymbol>: Change type
3133 to bound_minimal_symbol.
3134 * valops.c (find_function_in_inferior): Use
3135 lookup_bound_minimal_symbol.
3136 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3137
934b9bac
JK
31382013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 Code cleanup.
3141 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3142 to ...
3143 (async_cleanup_sigint_signal_handler): ... this.
3144 (initialize_sigint_signal_handler): Remove declaration.
3145 (handle_remote_sigint): Rename the declaration to ...
3146 (async_handle_remote_sigint): ... this.
3147 (handle_remote_sigint_twice): Rename the declaration to ...
3148 (async_handle_remote_sigint_twice): ... this.
3149 (async_remote_interrupt, async_remote_interrupt_twice)
3150 (remote_interrupt): Remove the declarations.
3151 (remote_interrupt_twice): Rename the declaration ...
3152 (sync_remote_interrupt_twice): ... this.
3153 (sigint_remote_twice_token): Rename the variable to ...
3154 (async_sigint_remote_twice_token): ... this.
3155 (sigint_remote_token): Rename the variable to ...
3156 (async_sigint_remote_token): ... this.
3157 (initialize_sigint_signal_handler): Rename the function to ...
3158 (async_initialize_sigint_signal_handler): ... this. Update the name
3159 inside.
3160 (handle_remote_sigint): Rename the function to ...
3161 (async_handle_remote_sigint): ... this. Update the names inside.
3162 (handle_remote_sigint_twice): Rename the function to ...
3163 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3164 (cleanup_sigint_signal_handler): Rename the function to ...
3165 (async_cleanup_sigint_signal_handler): ... this.
3166 (remote_interrupt): Rename the function to ...
3167 (sync_remote_interrupt): this. Update the names inside.
3168 (remote_interrupt_twice): Rename the function to ...
3169 (sync_remote_interrupt_twice): this. Update the names inside.
3170 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3171 (_initialize_remote): Update the names inside.
3172
3a1115a0
TT
31732013-08-02 Tom Tromey <tromey@redhat.com>
3174
3175 PR symtab/15719:
3176 * breakpoint.c (update_watchpoint, watchpoint_check)
3177 (watch_command_1): Update.
3178 * eval.c (fetch_subexp_value): Add "preserve_errors"
3179 parameter.
3180 * ppc-linux-nat.c (check_condition): Update.
3181 * value.h (fetch_subexp_value): Update.
3182
58b19776
AB
31832013-08-02 Andrew Burgess <aburgess@broadcom.com>
3184
3185 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3186 add_file_handler.
3187
ec94af83
DE
31882013-08-01 Doug Evans <dje@google.com>
3189
7ee85ab1
DE
3190 PR symtab/15691
3191 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3192 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3193 Add assert of sig_entry->dwo_unit == NULL.
3194 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3195 had already been read.
3196 (read_signatured_type): Set per_cu.tu_read.
3197
b846d303
DE
3198 PR symtab/15695
3199 * valops.c (value_struct_elt): Add missing call to check_typedef.
3200 (value_find_oload_method_list): Ditto.
3201
b52109bc
DE
3202 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3203 effectively, struct symbol_search **.
3204 (make_cleanup_free_search_symbols): Change arg to struct
3205 symbol_search **. All callers updated.
3206 (compare_search_syms): Compare symtab file name and block as well.
3207 (search_symbols_equal): New function.
3208 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3209 New args new_head, new_tail. Result is now void. Remove dups after
3210 sorting the symbols.
3211 (search_symbols): Sort all found symbols once, after all have been
3212 found, and remove duplicates. Simplify cleanup tracking of result.
3213 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3214
ec94af83
DE
3215 Further workarounds for binutils/15021.
3216 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3217 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3218 Watch for duplicate symtabs coming from type units.
3219 (compute_symtab_includes): Update call to
3220 recursively_compute_inclusions. Build vector of included symtabs
3221 instead of per_cus.
3222 * symtab.h (symtab_ptr): New typedef.
3223 (DEF_VEC_P (symtab_ptr)): New VEC type.
3224 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3225 instead.
3226
b2ae85cf
AB
32272013-08-01 Andrew Burgess <aburgess@broadcom.com>
3228
3229 * cli/cli-script.c (script_from_file): Remove use of
3230 error_pre_print.
3231 * main.c (captured_main): Remove use of error_pre_print and
3232 quit_pre_print.
3233 * utils.c (error_pre_print, quit_pre_print): Remove.
3234 * utils.h (error_pre_print, quit_pre_print): Likewise.
3235
645eab03
YQ
32362013-08-01 Yao Qi <yao@codesourcery.com>
3237
3238 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3239 with mi_getopt.
3240 (mi_cmd_stack_list_variables): Likewise.
3241
16f92dd4
AB
32422013-07-31 Andrew Burgess <aburgess@broadcom.com>
3243
3244 * exceptions.c (deprecated_throw_reason): Remove.
3245 * exceptions.h (deprecated_throw_reason): Remove.
3246
13f78033
AB
32472013-07-31 Andrew Burgess <aburgess@broadcom.com>
3248
3249 * remote-mips.c (mips_error): Replace use of
3250 deprecated_throw_reason with throw_verror. Use the error message
3251 passed to mips_error as the error message for throw_verror.
3252
039e3c22
AB
32532013-07-31 Andrew Burgess <aburgess@broadcom.com>
3254
3255 * monitor.c (monitor_interrupt_query): Replace use of
3256 deprecated_throw_reason with quit.
3257 * nto-procfs.c (interrupt_query): Likewise.
3258 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3259 * remote-mips.c (mips_kill): Likewise.
3260 * remote.c (interrupt_query): Likewise.
3261
8150913b
AB
32622013-07-31 Andrew Burgess <aburgess@broadcom.com>
3263
3264 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3265 with call to fatal.
3266
de74e63a
YQ
32672013-07-31 Pedro Alves <pedro@codesourcery.com>
3268 Yao Qi <yao@codesourcery.com>
3269
3270 * tracepoint.c (trace_dump_command): Select the current frame.
3271
247f5c4f
DE
32722013-07-30 Doug Evans <dje@google.com>
3273
3274 * dwarf2read.c (process_queue): Add type signature to debug output.
3275
11b4b7cc
AB
32762013-07-30 Andrew Burgess <aburgess@broadcom.com>
3277
3278 * value.c (value_fetch_lazy): Mark optimized out values as such
3279 rather than raising an error.
3280
b0c54aa5
AB
32812013-07-30 Andrew Burgess <aburgess@broadcom.com>
3282
3283 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3284 before checking which bits of the parent, not the child, value are
3285 valid.
3286
97c85fc6
MB
32872013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3288
3289 PR gdb/15715
3290 * top.c: Include "filenames.h".
3291 (set_history_filename): New function.
3292 (init_main): Install it as set hook of the "set history filename"
3293 command.
3294
ff39bb5e
SA
32952013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3296
3297 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3298 attribute parameter.
3299 (dwarf2_const_value_data): Constify struct attribute parameter.
3300 (dwarf2_const_value): Constify struct attribute parameter.
3301 (dwarf2_const_value_attr): Constify struct attribute parameter.
3302 (lookup_die_type): Constify struct attribute parameter.
3303 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3304 (follow_die_ref_or_sig): Constify struct attribute parameter.
3305 (follow_die_ref): Constify struct attribute parameter.
3306 (follow_die_sig): Constify struct attribute parameter.
3307 (get_DW_AT_signature_type): Constify struct attribute parameter.
3308 (get_type_unit_group): Constify struct attribute parameter.
3309 (fill_in_loclist_baton): Constify struct attribute parameter.
3310 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3311 (type_unit_group): Constify struct attribute parameter.
3312
6e5a29e1
SA
33132013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3314
3315 * dwarf2read.c (attr_form_is_block): Make argument const.
3316 (attr_form_is_section_offset): Make argument const.
3317 (attr_form_is_constant): Make argument const.
3318 (attr_form_is_ref): Make argument const.
3319
7771576e
SA
33202013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3321
3322 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3323 All uses updated.
3324 (attr_form_is_ref): Moved below attr_form_is_constant.
3325
a94e8645
DE
33262013-07-29 Doug Evans <dje@google.com>
3327
bb5291d0
DE
3328 * main.c (captured_command_loop): Tweak comment.
3329
b5419e49
DE
3330 * target.c (target_async_permitted_1): Fix comment.
3331
b2d23133
DE
3332 * symtab.c (iterate_over_some_symtabs): Add comment.
3333
a94e8645
DE
3334 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3335
7a60ad40
YQ
33362013-07-27 Yao Qi <yao@codesourcery.com>
3337
3338 * NEWS: Mention that GDBserver now supports hardware
3339 watchpoints on the MIPS GNU/Linux target.
3340
aaee2056
YQ
33412013-07-27 Yao Qi <yao@codesourcery.com>
3342
3343 * Makefile.in (HFILES_NO_SRCDIR): Add
3344 common/mips-linux-watch.h.
3345 (mips-linux-watch.o): New rule.
3346 * common/mips-linux-watch.c: New.
3347 * common/mips-linux-watch.h: New.
3348 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3349 * mips-linux-nat.c: Include mips-linux-watch.h.
3350 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3351 to common/mips-linux-watch.h.
3352 (MAX_DEBUG_REGISTER): Likewise.
3353 (enum pt_watch_style): Likewise.
3354 (struct mips32_watch_regs): Likewise.
3355 (struct mips64_watch_regs): Likewise.
3356 (struct pt_watch_regs): Likewise.
3357 (struct mips_watchpoint): Likewise.
3358 (mips_linux_watch_get_irw_mask): Move to
3359 common/mips-linux-watch.c.
3360 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3361 (mips_linux_watch_get_watchlo): Likewise.
3362 (mips_linux_watch_set_watchlo): Likewise.
3363 (mips_linux_watch_get_watchhi): Likewise.
3364 (mips_linux_watch_set_watchhi): Likewise.
3365 (mips_linux_read_watch_registers): Likewise.
3366 (mips_linux_watch_type_to_irw): Likewise.
3367 (mips_linux_stopped_data_address, fill_mask): Likewise.
3368 (mips_linux_watch_try_one_watch): Likewise.
3369 (mips_linux_watch_populate_regs): Likewise.
3370
b3436450
YQ
33712013-07-27 Yao Qi <yao@codesourcery.com>
3372
3373 * mips-linux-nat.c (get_irw_mask): Rename to ...
3374 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3375 'set' to 'n'. Update function comment. All callers changed.
3376 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3377 function comment. All callers changed.
3378 (get_num_valid): Rename to ...
3379 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3380 'set' to 'n'. Update function comment. All callers changed.
3381 (get_watchlo): Rename to ...
3382 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3383 'set' to 'n'. Update function comment. All callers changed.
3384 (set_watchlo): Rename to ...
3385 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3386 'set' to 'n'. Update function comment. All callers changed.
3387 (get_watchhi): Rename to ...
3388 (mips_linux_watch_get_watchhi): ... this. Update function
3389 comment. All callers changed.
3390 (set_watchhi): Rename to ...
3391 (mips_linux_watch_set_watchhi): ... this. Update function
3392 comment. All callers changed.
3393 (mips_linux_read_watch_registers): Update function comment.
3394 Add new parameters 'lwpid', 'watch_readback', and
3395 'watch_readback_valid'. Update.
3396 (type_to_irw): Rename to ...
3397 (mips_linux_watch_type_to_irw): ... this. Update function
3398 comment. All callers changed.
3399 (fill_mask): Update function comment.
3400 (try_one_watch): Rename to ...
3401 (mips_linux_watch_try_one_watch): ... this. Change the type
3402 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3403 (populate_regs_from_watches): Rename to ...
3404 (mips_linux_watch_populate_regs): ... this. Add parameter
3405 'current_watches'. All callers changed.
3406
9be14b81
YQ
34072013-07-27 Yao Qi <yao@codesourcery.com>
3408
3409 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3410 the code.
3411 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3412 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3413 (struct pt_watch_regs): Likewise.
3414 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3415 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3416 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3417 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3418 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3419
de6f69ad
YQ
34202013-07-27 Yao Qi <yao@codesourcery.com>
3421
3422 * breakpoint.h: Include break-common.h.
3423 (enum target_hw_bp_type): Move to ...
3424 * common/break-common.h: ... here. New.
3425
6f64ef53
PA
34262013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3427
3428 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3429 process group regardless of having tty on stdin.
3430
6107e809
DE
34312013-07-25 Doug Evans <dje@google.com>
3432
3433 * linux-fork.h (detach_fork): Delete.
3434
7fdc1521
TT
34352013-07-25 Tom Tromey <tromey@redhat.com>
3436
3437 PR remote/15256, PR remote/15266:
3438 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3439 * monitor.c (monitor_detach): Use unpush_target.
3440 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3441 * remote-mips.c (mips_detach): Use unpush_target. Don't
3442 call mips_close.
3443 * remote-sim.c (gdbsim_detach): Use unpush_target.
3444 * target.c (pop_target): Remove.
3445 (pop_all_targets_above): Don't call target_close.
3446 (target_close): Assert that the target is unpushed.
3447 * target.h (pop_target): Don't declare.
3448 * tracepoint.c (tfile_open): Use unpush_target.
3449
c22a2b88
TT
34502013-07-25 Tom Tromey <tromey@redhat.com>
3451
3452 * linux-thread-db.c (init_thread_db_ops): Call
3453 complete_target_initialization.
3454 (_initialize_thread_db): Don't call add_target.
3455 * target.c (complete_target_initialization): New function.
3456 (add_target_with_completer): Call it.
3457 * target.h (complete_target_initialization): Declare.
3458
cbb6aada
MK
34592013-07-25 Mark Kettenis <kettenis@gnu.org>
3460
3461 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3462 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3463 (HPPANBSD_SIZEOF_GREGS): New define.
3464 (hppaobsd_supply_gregset): Handle additional registers.
3465 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3466 we provide more registers now.
3467 (hppabsd_supply_gregset): Supply additional registers.
3468 (hppabsd_collect_gregset): Collect additional registers.
3469
17767988
MK
34702013-07-25 Mark Kettenis <kettenis@gnu.org>
3471
3472 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3473 (hppabsd_dwarf2_frame_init_reg): New function.
3474 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3475
fdc8aae8
AB
34762013-07-25 Andrew Burgess <aburgess@broadcom.com>
3477
3478 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3479 'z' format code. Remove error for optimized out values, standard
3480 code will handle these fine.
3481
6fbe845e
AB
34822013-07-25 Andrew Burgess <aburgess@broadcom.com>
3483
3484 * NEWS: Mention new 'z' formatter.
3485 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3486 (_initialize_printcmd): Mention 'z' formatter in help text of the
3487 'x' command.
3488
3373342d
MR
34892013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3490
3491 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3492 formatting.
3493
25f9533e
SDJ
34942013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3495
3496 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3497 interface can evaluate arguments. Fallback to the old mode if it
3498 cannot.
3499 (create_exception_master_breakpoint): Likewise.
3500 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3501 (struct sym_probe_fns elf_probe_fns): Export function above to the
3502 probe interface.
3503 * probe.c (can_evaluate_probe_arguments): New function.
3504 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3505 function pointer.
3506 (can_evaluate_probe_arguments): New function prototype.
3507 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3508 probe interface can evaluate arguments. Fallback to the old mode
3509 if it cannot.
3510 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3511 interface can evaluate arguments. Warning the user if it cannot.
3512 (stap_can_evaluate_probe_arguments): New function.
3513 (struct probe_ops stap_probe_ops): Export function above to the
3514 probe interface.
3515 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3516 New function pointer.
3517
3360c0bf
LM
35182013-07-24 Luis Machado <lgustavo@codesourcery.com>
3519
3520 * Makefile.in (SFILES): Add common/target-common.c.
3521 Add common/target-common.h to headers.
3522 (COMMON_OBS): Add target-common.o.
3523 (target-common.o): New target.
3524 * linux-nat.h (resume_kind): Move to common/target-common.h.
3525 * target.c (target_waitstatus_to_string): Move to
3526 common/target-common.c.
3527 * target.h: Include target-common.h.
3528 (target_waitkind): Move to common/target-common.h.
3529 (target_waitstatus): Likewise.
3530 (TARGET_WNOHANG): Likewise.
3531 * common/target-common.c: New file.
3532 * common/target-common.h: New file.
3533
6656a72d
DE
35342013-07-24 Doug Evans <dje@google.com>
3535
3536 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3537 a warning.
3538
6df81a63
YQ
35392013-07-23 Yao Qi <yao@codesourcery.com>
3540
3541 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3542 parameter 'gdbarch'.
3543 (i386_stack_tramp_frame_sniffer): Caller update.
3544 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3545 parameter 'gdbarch' and 'target'.
3546 (i386_linux_core_read_description): Caller update.
3547 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3548 Likewise.
3549 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3550 declaration.
3551
365156ad
TT
35522013-07-23 Tom Tromey <tromey@redhat.com>
3553
3554 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3555 2013-07-22.
3556
046ac79f
JK
35572013-07-22 Doug Evans <dje@google.com>
3558
3559 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3560 * exec.c (exec_close): Update call to remove_target_sections.
3561 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3562 * solib.c (update_solib_list): Ditto.
3563 (reload_shared_libraries_1): Ditto.
3564 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3565 * target.h (struct target_section): Rename key to owner.
3566 All uses updated.
046ac79f 3567
29b2cc46
TT
35682013-07-22 Tom Tromey <tromey@redhat.com>
3569
3570 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3571
d1160018
TT
35722013-07-22 Tom Tromey <tromey@redhat.com>
3573
3574 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3575 Simplify cleanup handling.
3576
2f324bf6
TT
35772013-07-22 Tom Tromey <tromey@redhat.com>
3578
3579 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3580 on all return paths.
3581
e23b9d6e
UW
35822013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3583
3584 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3585 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3586 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3587
1cf55f60
PM
35882013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3589
3590 * top.c (print_gdb_version): Add help, apropos description and
3591 url to online documentation.
3592
fa876972
HZ
35932013-07-19 Hui Zhu <hui@codesourcery.com>
3594
3595 PR gdb/15692
3596 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3597
1527aea8
YQ
35982013-07-19 Yao Qi <yao@codesourcery.com>
3599
3600 * target.c (update_current_target): Change the default action
3601 of 'to_traceframe_info' from tcomplain to return_zero.
3602 * target.h (struct target_ops) <to_traceframe_info>: Add more
3603 comments.
3604 * valops.c (read_value_memory): Call
3605 traceframe_available_memory unconditionally.
3606
886f230e
YQ
36072013-07-18 Yao Qi <yao@codesourcery.com>
3608
3609 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3610 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3611 symbol without prefix. If found, set its type to
3612 'mst_solib_trampoline'.
3613
16419bae
DE
36142013-07-17 Doug Evans <dje@google.com>
3615
e7045703
DE
3616 * NEWS: Mention "set print raw frame-arguments".
3617 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3618 * stack.c (print_raw_frame_arguments): New static global.
3619 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3620 (_initialize_stack): New command "set/show print raw frame-arguments".
3621 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3622 (set_print_raw, show_print_raw): New functions.
3623 (_initialize_valprint): New prefix command "set/show print raw".
3624 * valprint.h (value_print_options): Improve comments.
3625
453e48a5
DE
3626 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3627 of all *list variables.
3628
16419bae
DE
3629 * gdbcmd.h (togglelist): Delete.
3630 * cli/cli-cmds.c (togglelist): Delete.
3631 (init_cmd_lists): Update.
3632 * cli/cli-cmds.h (togglelist): Delete.
3633
626f2d1c
TT
36342013-07-17 Tom Tromey <tromey@redhat.com>
3635
3636 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3637 dwarf2_per_objfile.
3638
57e6060e
DE
36392013-07-16 Doug Evans <dje@google.com>
3640
3641 * nto-tdep.c (nto_relocate_section_addresses): Update,
3642 target_section.bfd deleted.
3643 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3644 * s390-tdep.c (s390_load): Ditto.
3645 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3646
5ea5559b
AB
36472013-07-16 Andrew Burgess <aburgess@broadcom.com>
3648
3649 * common/format.c (parse_format_string): Add checks for NULL
3650 character before calling strchr.
3651
2b2848e2
DE
36522013-07-16 Doug Evans <dje@google.com>
3653
2c571006
DE
3654 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3655 temp_pathname argument.
3656 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3657 when opening the file fails.
3658
2b2848e2
DE
3659 * target.h (struct target_section): Delete member bfd.
3660 All users updated to use the_bfd_section->owner instead.
3661 * exec.c (add_to_section_table): Assert bfd is expected value.
3662 Remove initialization of target_section.bfd.
3663 (remove_target_sections): Update.
3664 (section_table_available_memory): Update.
3665 (section_table_xfer_memory_partial): Update.
3666 (print_section_info): Update.
3667 (exec_set_section_address): Update.
3668 * record-full.c (record_full_core_xfer_partial): Update.
3669 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3670 * solib-target.c (solib_target_relocate_section_addresses): Update.
3671 * symfile.c (build_section_addr_info_from_section_table): Update.
3672 * target.c (memory_xfer_live_readonly_partial): Update.
3673 (memory_xfer_partial_1): Update.
3674
926bf92d
UW
36752013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3676
3677 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3678 now available for embedded (BookE) and server (BookS) processors,
3679 correct mentions of 'booke' and adjust comments accordingly in order to
3680 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3681 (have_ptrace_booke_interface): Rename function and variable
3682 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3683 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3684 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3685 'hwdebug_point_cmp'. Update all uses.
3686 (booke_find_thread_points_by_tid): Rename function
3687 'booke_find_thread_points_by_tid' to
3688 'hwdebug_find_thread_points_by_tid'. Update all uses.
3689 (booke_insert_point): Rename function 'booke_insert_point' to
3690 'hwdebug_insert_point'. Update all uses.
3691 (booke_remove_point): Rename function 'booke_remove_point' to
3692 'hwdebug_remove_point'. Update all uses.
3693
d929bc19
MR
36942013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3695
3696 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3697 numbers with enum values.
3698
054e8d9e
AA
36992013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3700
3701 PR threads/13217
3702 * thread.c (thread_apply_all_command): Check for valid threads
3703 and thread count.
3704 (thread_array_cleanup): New struct.
3705 (set_thread_refcount): New function.
3706
cf006359
AB
37072013-07-11 Andrew Burgess <aburgess@broadcom.com>
3708
3709 * infcmd.c (default_print_one_register_info): Reuse function
3710 print_hex_chars.
3711
94e36acc
TT
37122013-07-10 Tom Tromey <tromey@redhat.com>
3713
3714 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3715 (ada-exp.o): New target.
3716
915dd369
SDJ
37172013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3718
3719 * mt-tdep.c (mt_registers_info): Call
3720 get_no_prettyformat_print_options instead of
3721 get_raw_print_options (regression by last patch from Doug
3722 Evans).
3723
eca07816
JB
37242013-07-09 Pedro Alves <palves@redhat.com>
3725
3726 Checked in by Joel Brobecker <brobecker@adacore.com>.
3727 * ada-lang.c (coerce_unspec_val_to_type): Use
3728 value_optimized_out_const.
3729 * value.c (value_optimized_out_const): New function.
3730 * value.h (value_optimized_out_const): New declaration.
3731
2a998fc0
DE
37322013-07-09 Doug Evans <dje@google.com>
3733
3734 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3735 Enum values rename as well. All uses updated.
3736 * valprint.h (value_print_options): Rename member pretty to
3737 pretty format. Rename member prettyprint_arrays to
3738 prettyformat_arrays. Rename member prettyprint_structs to
3739 prettyformat_structs. All uses updated.
3740 (get_no_prettyformat_print_options): Renamed from
3741 get_raw_print_options.
3742 * valprint.c (get_no_prettyformat_print_options): Renamed from
3743 get_raw_print_options. All callers updated.
3744 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3745 All callers updated.
3746 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3747 All callers updated.
3748 (_initialize_valprint): Improve help text for "set print pretty" and
3749 "set print arrays".
3750
466c1fca
AB
37512013-07-09 Andrew Burgess <aburgess@broadcom.com>
3752
3753 * value.c (value_bits_valid): Revert previous change, and change
3754 by Pedro on 2013-07-04, due to regressions in
3755 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3756
ad0f0303
AB
37572013-07-08 Andrew Burgess <aburgess@broadcom.com>
3758 Pedro Alves <palves@redhat.com>
3759
3760 * value.c (value_bits_valid): If the value is not lval_computed
3761 or has no check validity handler then the answer is the
3762 optimized_out flag, otherwise defer to the handler.
3763
b187bec1
EZ
37642013-07-06 Eli Zaretskii <eliz@gnu.org>
3765
48d1d6f5
EZ
3766 * top.c (print_gdb_configuration): Explain in output of
3767 --configuration what does "relocatable" mean.
3768
b187bec1
EZ
3769 * main.c (print_gdb_help): Regroup options in the --help text.
3770 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3771 the relevant discussions.
3772
52d361e1
YQ
37732013-07-06 Yao Qi <yao@codesourcery.com>
3774
3775 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3776 Remove parameter 'lsal'.
3777 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3778 to inner block. Caller update.
3779 (base_breakpoint_create_breakpoints_sal): Update.
3780 (bkpt_create_breakpoints_sal): Likewise.
3781 (tracepoint_create_breakpoints_sal): Likewise.
3782 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3783 element 0 of vector 'canonical->sals'.
3784
e1ec1b42
LM
37852013-07-05 Luis Machado <lgustavo@codesourcery.com>
3786
3787 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3788 register number instead of the pseudo register one.
3789 (rs6000_dwarf2_reg_to_regnum): Likewise.
3790
7195e6f0
PA
37912013-07-04 Pedro Alves <palves@redhat.com>
3792
3793 * findvar.c (value_of_register): Use allocate_optimized_out_value
3794 if the register has been optimized out, instead of
3795 set_value_optimized_out.
3796 * frame-unwind.c (frame_unwind_got_optimized): Use
3797 allocate_optimized_out_value.
3798
58722cac
PA
37992013-07-04 Pedro Alves <palves@redhat.com>
3800
3801 * value.c (value_bits_valid): If the value is not lval_computed,
3802 or doesn't have a check_validity hook, assume the value is entirely
3803 valid.
3804
691a26f5
AB
38052013-07-04 Andrew Burgess <aburgess@broadcom.com>
3806
3807 * stack.c (read_frame_arg): No longer fetch lazy values.
3808 * value.c (value_optimized_out): If the value is not already
3809 marked optimized out, and is lazy then fetch it.
3810 (value_primitive_field): Move optimized out check to later in the
3811 function, after we have loaded any lazy values.
3812 (value_fetch_lazy): Use optimized out flag directly rather than
3813 calling optimized_out method.
3814
a58e2656
AB
38152013-07-04 Andrew Burgess <aburgess@broadcom.com>
3816
3817 * valops.c: Don't include "user-regs.h".
3818 (value_fetch_lazy): Moved to value.c.
3819 * value.c: Include "user-regs.h".
3820 (value_fetch_lazy): Moved from valops.c.
3821
bd885420
YQ
38222013-07-04 Yao Qi <yao@codesourcery.com>
3823
3824 Revert:
3825 2013-06-27 Yao Qi <yao@codesourcery.com>
3826
3827 * common/create-version.sh: Update comments. Handle the case
3828 that TARGET_ALIAS is empty.
3829
17ef446e
PA
38302013-07-03 Pedro Alves <palves@redhat.com>
3831
3832 * Makefile.in (config.status): Depend on development.sh.
3833 (aclocal_m4_deps): Add libmcheck.m4.
3834 * acinclude.m4: Include libmcheck.m4.
3835 * configure.ac: Source development.sh instead of setting
3836 'development' here. --enable-libmcheck/--disable-libmcheck code
3837 factored out to GDB_AC_LIBMCHECK. Run it.
3838 * development.sh: New file.
3839 * libmcheck.m4: New file.
3840 * configure: Regenerate.
3841
ac6dd50f
TT
38422013-07-02 Tom Tromey <tromey@redhat.com>
3843
3844 * contrib/ari/update-web-ari.sh: Update for version.in change.
3845
bd1df410
TT
38462013-07-02 Tom Tromey <tromey@redhat.com>
3847
3848 * common/ptid.h: Comment fixes.
3849
4db1a1dc
TT
38502013-07-01 Tom Tromey <tromey@redhat.com>
3851
3852 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3853 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3854 (dwarf2_read_index, create_all_comp_units): Update.
3855
dd9aa048
TT
38562013-07-01 Tom Tromey <tromey@redhat.com>
3857
3858 * configure.ac (build_warnings): Add -Wold-style-definition.
3859 * configure: Rebuild.
3860 * machoread.c (_initialize_machoread): Use "(void)".
3861 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3862 use "(void)".
3863
44d100c3
TT
38642013-07-01 Tom Tromey <tromey@redhat.com>
3865
3866 * configure.ac (build_warnings): Add -Wold-style-declaration.
3867 * configure: Rebuild.
3868 * dsrec.c (make_srec): Use "static const", not "const static".
3869 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3870 not "const static".
3871 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3872 Use "static const", not "const static".
3873 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3874 not "const static".
3875 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3876 not "const static".
3877 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3878 not "const static".
3879 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3880 not "const static".
3881 (v850_dbtrap_breakpoint_from_pc): Likewise.
3882 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3883 not "const static".
3884
2945b807
TT
38852013-07-01 Tom Tromey <tromey@redhat.com>
3886
3887 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3888 * configure: Rebuild.
3889
d8d2a3ee
PA
38902013-07-01 Pedro Alves <palves@redhat.com>
3891
3892 * defs.h: Include "pathmax.h".
3893 * utils.c: Don't include sys/param.h.
3894 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3895 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3896 instead of MAXPATHLEN.
3897 * solib-sunos.c: Don't include sys/param.h.
3898 * xcoffread.c: Don't include sys/param.h.
3899 * bsd-kvm.c: Don't include sys/param.h.
3900 * darwin-nat.c: Don't include sys/param.h.
3901 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3902 * darwin-nat-info.c: Don't include sys/param.h.
3903 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3904 MAXPATHLEN.
3905 * i386obsd-nat.c: Don't include sys/param.h.
3906 * inf-child.c: Don't include sys/param.h.
3907 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3908 * linux-fork.c: Don't include sys/param.h.
3909 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3910 * linux-nat.c: Don't include sys/param.h.
3911 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3912 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3913 * m68klinux-nat.c: Don't include sys/param.h.
3914 * nbsd-nat.c: Don't include sys/param.h.
3915 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3916 * ppc-linux-nat.c: Don't include sys/param.h.
3917 * rs6000-nat.c: Don't include sys/param.h.
3918 * spu-linux-nat.c. Don't include sys/param.h.
3919 * windows-nat.c: Don't include sys/param.h.
3920 * xtensa-linux-nat.c: Don't include sys/param.h.
3921 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3922
38ec2207
PA
39232013-07-01 Pedro Alves <palves@redhat.com>
3924
3925 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3926 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3927 * gnulib/aclocal.m4: Regenerate.
3928 * gnulib/config.in: Regenerate.
3929 * gnulib/configure: Regenerate.
3930 * gnulib/import/pathmax.h: New file.
3931 * gnulib/import/Makefile.am: Regenerate.
3932 * gnulib/import/Makefile.in: Regenerate.
3933 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3934 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3935 * gnulib/import/m4/pathmax.m4: New file.
3936
e655c1a2
PA
39372013-07-01 Pedro Alves <palves@redhat.com>
3938
3939 * configure.ac (GDBINIT): Define, depending on host.
3940 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3941 * top.c (PATH_MAX): Delete fallback definition.
3942 (GDBINIT_FILENAME): Delete.
3943 (gdbinit): Reimplement as const char array set to the GDBINIT
3944 string constant.
3945 * top.h (gdbinit): Make const.
3946 * configure, config.in: Regenerate.
3947
50dd9793
PA
39482013-07-01 Pedro Alves <palves@redhat.com>
3949
3950 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3951 * cli/cli-cmds.h (source_script): Likewise.
3952 * exceptions.c (catch_command_errors_const): New function.
3953 * exceptions.h (catch_command_errors_const): Declare.
3954 * main.c (get_init_files): Make parameters const, and adjust.
3955 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3956 'local_gdbinit' locals const. Adjust to use
3957 catch_command_errors_const.
3958 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3959 'local_gdbinit' locals const.
3960
bc7dea8d
PA
39612013-07-01 Pedro Alves <palves@redhat.com>
3962
3963 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3964 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3965 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3966 <unistd.h>.
3967
8839a007
PA
39682013-07-01 Pedro Alves <palves@redhat.com>
3969
3970 Import the "unistd" gnulib module.
3971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3972 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3973 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3974 import/m4/unistd_h.m4.
3975 * gnulib/aclocal.m4: Renenerate.
3976 * gnulib/config.in: Renenerate.
3977 * gnulib/configure: Renenerate.
3978 * gnulib/import/Makefile.am: Renenerate.
3979 * gnulib/import/Makefile.in: Renenerate.
3980 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3981 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3982 * gnulib/import/m4/off_t.m4: New file.
3983 * gnulib/import/m4/ssize_t.m4: New file.
3984 * gnulib/import/m4/sys_types_h.m4: New file.
3985 * gnulib/import/m4/unistd_h.m4: New file.
3986 * gnulib/import/sys_types.in.h: New file.
3987 * gnulib/import/unistd.c: New file.
3988 * gnulib/import/unistd.in.h: New file.
3989
8c0da261
PA
39902013-07-01 Pedro Alves <palves@redhat.com>
3991
3992 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3993 defined instead of checking HAVE_UNISTD_H.
3994
3574124b
PA
39952013-07-01 Pedro Alves <palves@redhat.com>
3996
3997 Reimport gnulib from scratch.
3998 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3999 import/m4/onceonly.m4.
4000 * gnulib/aclocal.m4: Renegerate.
4001 * gnulib/config.in: Renegerate.
4002 * gnulib/configure: Renegerate.
4003 * gnulib/import/Makefile.in: Renegerate.
4004 * gnulib/import/extra/update-copyright: Renegerate.
4005 * gnulib/import/m4/onceonly.m4: Delete.
4006
702dc4fd
PA
40072013-07-01 Pedro Alves <palves@redhat.com>
4008
4009 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4010
47e1ce27
JK
40112013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4012
4013 Code cleanup.
4014 * remote.c (async_remote_interrupt_twice): Make it static.
4015 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4016
e82839d4
SDJ
40172013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4018
4019 * ia64-linux-tdep.c: Include <ctype.h>.
4020 (ia64_linux_stap_is_single_operand): New function.
4021 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4022
d6c2da54
TT
40232013-06-28 Tom Tromey <tromey@redhat.com>
4024
4025 * Makefile.in (version.c): Use version.in, not
4026 common/version.in.
4027 * common/create-version.sh: Likewise.
4028 * common/version.in: Move...
4029 * version.in: ...here.
4030
74da6f00
PA
40312013-06-28 Pedro Alves <palves@redhat.com>
4032
4033 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4034 here.
4035 * utils.h (pagination_enabled): Declare.
4036
d32dc48e
PA
40372013-06-28 Pedro Alves <palves@redhat.com>
4038
4039 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4040 Move higher up in file.
4041
0edd9e3b
TT
40422013-06-28 Tom Tromey <tromey@redhat.com>
4043
4044 * tracepoint.c (deprecated_readline_begin_hook)
4045 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4046 declare.
4047
4eb59108
PA
40482013-06-28 Pedro Alves <palves@redhat.com>
4049
4050 PR tui/14880
4051 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4052 checking if they're available.
4053 * value.c (value_available_contents_eq): Change comment.
4054 * value.h (value_available_contents_eq): Expand comment.
4055
97b17156
TT
40562013-06-27 Tom Tromey <tromey@redhat.com>
4057
4058 * target.c (find_run_target): Remove.
4059 * target.h (find_run_target): Remove.
4060
6a3bfc5c
TT
40612013-06-27 Tom Tromey <tromey@redhat.com>
4062
4063 * corelow.c (core_gdbarch): Now static.
4064
c9ef825d
TT
40652013-06-27 Tom Tromey <tromey@redhat.com>
4066
4067 * target.c (target_struct_index): Remove.
4068
e5823f1c
PA
40692013-06-27 Pedro Alves <palves@redhat.com>
4070
4071 * infrun.c: Remove comment describing the 'stepping over runtime
4072 loader dynamic symbol resolution code' mechanism; moved to
4073 gdbint.texinfo.
4074
97f8dd09
PA
40752013-06-27 Pedro Alves <palves@redhat.com>
4076
4077 * exceptions.c (catch_command_errors): Remove spurious space.
4078 * exceptions.h (catch_command_errors): Second parameter is "arg",
4079 not "command".
4080
02b1871e
YQ
40812013-06-27 Yao Qi <yao@codesourcery.com>
4082
4083 * common/create-version.sh: Update comments. Handle the case
4084 that TARGET_ALIAS is empty.
4085
bb1b1cf1
PA
40862013-06-26 Pedro Alves <palves@redhat.com>
4087
4088 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4089 comment.
4090
7b624e71
PA
40912013-06-26 Pedro Alves <palves@redhat.com>
4092
4093 * infrun.c: Update comments on stepping over runtime loader
4094 dynamic symbol resolution code.
4095
74e5a346
SDJ
40962013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4097
4098 * ax-gdb.h (union exp_element): Forward declare.
4099 * parser-defs.h: Include expression.h.
4100
a2fb2cee
MR
41012013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4102
4103 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4104
cdba14e0
DK
41052013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4106
4107 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4108
f30aa5af
DK
41092013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4110
4111 Fix trace-status to output proper start-time and stop-time.
4112 * tracepoint.c (trace_status_command): Fix type of printf arg to
4113 prevent improper type conversion.
4114 (trace_status_mi): Likewise.
4115
1aee363c
MR
41162013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4117
4118 * mips-tdep.c (mips_next_pc): Fix a typo.
4119
3356937a
MR
41202013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4121
4122 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4123
dc673c81
YQ
41242013-06-26 Pedro Alves <pedro@codesourcery.com>
4125 Yao Qi <yao@codesourcery.com>
4126
4127 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4128 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4129 * mi/mi-main.c (print_variable_or_computed): New function.
4130 (mi_cmd_trace_frame_collected): New function.
4131 * tracepoint.c (find_trace_state_variable_by_number): New.
4132 (struct traceframe_info): Move to tracepoint.h
4133 (struct collection_list): Likewise.
4134 (do_collect_symbol): Include locals and arguments in the
4135 collected variables list.
4136 (clear_collection_list): Clear wholly collected variables list
4137 and computed variables list.
4138 (append_exp): New function.
4139 (encode_actions_1): Include variables in the wholly
4140 collected variables list. Include memory ranges and
4141 full-fledged expressions in the computed expressions list.
4142 (encode_actions): Move some code to ...
4143 Return the cleanup chain.
4144 (encode_actions_rsp): ... here. New function.
4145 (get_traceframe_location, get_traceframe_info): Remove static.
4146 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4147 (struct collection_list): Moved from tracepoint.c. Add two
4148 new fields 'wholly_collected' and 'computed'.
4149 (find_trace_state_variable_by_number): Declare.
4150 (encode_actions): Adjust declaration.
4151 (encode_actions_rsp): Declare.
4152 (get_traceframe_info, get_traceframe_location): Declare.
4153
4154 * NEWS: Mention new MI command -trace-frame-collected.
4155
28a93511
YQ
41562013-06-26 Pedro Alves <pedro@codesourcery.com>
4157 Yao Qi <yao@codesourcery.com>
4158
4159 * ctf.c (ctf_traceframe_info): Push trace state variables
4160 present in the trace data into the traceframe info object.
4161 * breakpoint.c (DEF_VEC_I): Remove.
4162 * common/filestuff.c (DEF_VEC_I): Likewise.
4163 * dwarf2loc.c (DEF_VEC_I): Likewise.
4164 * mi/mi-main.c (DEF_VEC_I): Likewise.
4165 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4166 * features/traceframe-info.dtd: Add tvar element and its
4167 attributes.
4168 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4169 (build_traceframe_info): Push trace state variables present in
4170 the trace data into the traceframe info object.
4171 (traceframe_info_start_tvar): New function.
4172 (tvar_attributes): New.
4173 (traceframe_info_children): Add "tvar" element.
4174 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4175
4176 * NEWS: Mention the change in GDB and GDBserver.
4177
ddacd3c8
YQ
41782013-06-26 Pedro Alves <pedro@codesourcery.com>
4179 Yao Qi <yao@codesourcery.com>
4180
4181 * tracepoint.c (trace_dump_command): Move code to ...
4182 (get_traceframe_location): ... here. New.
4183
05796b35
YQ
41842013-06-26 Pedro Alves <pedro@codesourcery.com>
4185 Yao Qi <yao@codesourcery.com>
4186
4187 * tracepoint.c (trace_dump_command): GDB emits an error
4188 instead of a warning when a traceframe is not selected.
4189
cbfa3b61
YQ
41902013-06-26 Pedro Alves <pedro@codesourcery.com>
4191 Yao Qi <yao@codesourcery.com>
4192
4193 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4194 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4195 in collection_list.
4196 (do_clear_collection_list, init_collection_list): New.
4197 (encode_actions): Add local variables 'tracepoint_list' and
4198 'stepping_list'. Call init_collection_list and make cleanup
4199 which calls do_clear_collection_list. Don't call
4200 clear_collection_list.
4201 (_initialize_tracepoint): Delete references to
4202 'tracepoint_list' and 'stepping_list'.
4203
6e2048d3
TT
42042013-06-25 Tom Tromey <tromey@redhat.com>
4205
4206 * common/create-version.sh (date): Use "$", not "$$" in sed
4207 expression.
4208
42059f0e
KB
42092013-06-25 Kevin Buettner <kevinb@redhat.com>
4210
4211 * NEWS (New targets): Add entry for TI MSP430.
4212
a0743c90
YQ
42132013-06-25 Yao Qi <yao@codesourcery.com>
4214
4215 * remote.c (remote_start_remote): Move code to upload tsv
4216 earlier.
4217
9d6e6e84
HZ
42182013-06-25 Yao Qi <yao@codesourcery.com>
4219 Hui Zhu <hui@codesourcery.com>
4220 Pedro Alves <palves@redhat.com>
4221
4222 PR breakpoints/15075
4223 PR breakpoints/15434
4224 * breakpoint.c (bpstat_stop_status): Call
4225 b->ops->after_condition_true.
4226 (update_dprintf_command_list): Don't append "continue" command
4227 to the command list of dprintf breakpoint.
4228 (base_breakpoint_after_condition_true): New function.
4229 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4230 (dprintf_after_condition_true): New function.
4231 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4232 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4233
586cf749
KB
42342013-06-24 Kevin Buettner <kevinb@redhat.com>
4235
4236 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4237 (ALLDEPFILES): Add msp430-tdep.c.
4238 * configure.tgt (msp430*-*-elf): New target.
4239 * msp430-tdep.c: New file.
4240
1bbce132
MR
42412013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4242
4243 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4244 microMIPS synthetic symbols.
4245
3e5d3a5a
MR
42462013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4247
4248 * objfiles.h (pc_in_section): New prototype.
4249 (in_plt_section): Remove name argument, replace prototype with
4250 static inline function.
4251 * mips-tdep.h: Include "objfiles.h".
4252 (in_mips_stubs_section): New function.
4253 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4254 in_solib_call_trampoline member.
4255 (hppa_in_solib_call_trampoline): Remove name argument.
4256 * objfiles.c (pc_in_section): New function.
4257 (in_plt_section): Remove function.
4258 * mips-linux-tdep.c: Include "objfiles.h".
4259 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4260 name argument. Return 1 rather than the low 16-bit halfword of
4261 any instruction examined.
4262 (mips_linux_in_dynsym_resolve_code): Update
4263 mips_linux_in_dynsym_stub call accordingly.
4264 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4265 rather than an equivalent hand-coded sequence.
4266 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4267 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4268 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4269 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4270 in_opd_section.
4271 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4272 on call to tdep->in_solib_call_trampoline.
4273 (hppa_in_solib_call_trampoline): Remove name argument, update
4274 according to in_plt_section change.
4275 (hppa_skip_trampoline_code): Update according to in_plt_section
4276 change.
4277 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4278 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4279 Likewise.
4280 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4281 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4282 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4283 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4284 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4285 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4286 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4287 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4288 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4289 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4290 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4291 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4292 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4293
b9b26a16
JB
42942013-06-24 Joel Brobecker <brobecker@adacore.com>
4295
4296 * common/create-version.sh: Fix expansion of $host_alias
4297 and $target_alias in generation of HOST_NAME and TARGET_NAME
4298 (resp.).
4299
01208463
TT
43002013-06-24 Tom Tromey <tromey@redhat.com>
4301
4302 * common/create-version.sh: New file.
4303 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4304 create-version.sh.
4305 (HFILES_NO_SRCDIR): Use common/version.h.
4306 * version.in: Move to ...
4307 * common/version.in: ... here. Replace date with "DATE".
4308 * version.h: Move to ...
4309 * common/version.h: ... here.
4310
bb6b9a5e
JB
43112013-06-21 Joel Brobecker <brobecker@adacore.com>
4312
4313 * gdb/gnulib/Makefile.in: Update date in copyright header.
4314 * gdb/gnulib/configure.ac: Ditto.
4315 * gdb/gnulib/update-gnulib.sh: Ditto.
4316
c3b18ee7
JB
43172013-06-21 Joel Brobecker <brobecker@adacore.com>
4318
4319 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4320 "gdb/gnulib/import".
4321
85d3b769
WN
43222013-06-21 Will Newton <will.newton@linaro.org>
4323
4324 * doublest.c (ldfrexp): Remove function.
4325 (convert_doublest_to_floatformat): Call frexpl instead of
4326 ldfrexp.
4327
88b48903
WN
43282013-06-21 Will Newton <will.newton@linaro.org>
4329
4330 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4331 * gnulib/aclocal.m4: Regenerate.
4332 * gnulib/config.in: Regenerate.
4333 * gnulib/configure: Regenerate.
4334 * gnulib/import/Makefile.am: Update.
4335 * gnulib/import/Makefile.in: Update.
4336 * gnulib/import/m4/gnulib-cache.m4: Update.
4337 * gnulib/import/m4/gnulib-comp.m4: Update.
4338 * gnulib/import/float+.h: Import.
4339 * gnulib/import/float.c: Import.
4340 * gnulib/import/float.in.h: Import.
4341 * gnulib/import/fpucw.h: Import.
4342 * gnulib/import/frexp.c: Import.
4343 * gnulib/import/frexpl.c: Import.
4344 * gnulib/import/isnan.c: Import.
4345 * gnulib/import/isnand-nolibm.h: Import.
4346 * gnulib/import/isnand.c: Import.
4347 * gnulib/import/isnanl-nolibm.h: Import.
4348 * gnulib/import/isnanl.c: Import.
4349 * gnulib/import/itold.c: Import.
4350 * gnulib/import/m4/exponentd.m4: Import.
4351 * gnulib/import/m4/exponentl.m4: Import.
4352 * gnulib/import/m4/float_h.m4: Import.
4353 * gnulib/import/m4/fpieee.m4: Import.
4354 * gnulib/import/m4/frexp.m4: Import.
4355 * gnulib/import/m4/frexpl.m4: Import.
4356 * gnulib/import/m4/isnand.m4: Import.
4357 * gnulib/import/m4/isnanl.m4: Import.
4358 * gnulib/import/m4/math_h.m4: Import.
4359 * gnulib/import/math.c: Import.
4360 * gnulib/import/math.in.h: Import.
4361
4353c9e6
JK
43622013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4363
4364 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4365 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4366 signature_INTEL_edx comparisons.
4367
e3e06db3
DE
43682013-06-20 Doug Evans <dje@google.com>
4369
6ac97d4c
DE
4370 symtab/15652
4371 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4372 All callers updated.
4373 (open_dwp_file): If we can't find the dwp file, search the basename
4374 in debug-file-directory.
4375
93417882
DE
4376 * dwarf2read.c (struct dwp_file): Fix comment.
4377 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4378
e3e06db3
DE
4379 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4380 better.
4381
0878d0fa
YQ
43822013-06-20 Yao Qi <yao@codesourcery.com>
4383
4384 * breakpoint.c (create_breakpoint): Fix code indentation.
4385
023fa29b
YQ
43862013-06-20 Yao Qi <yao@codesourcery.com>
4387
4388 * breakpoint.c (create_breakpoints_sal_default): Remove
4389 parameter 'lsal'. Update declaration.
4390 (bkpt_create_breakpoints_sal): Caller update.
4391 (tracepoint_create_breakpoints_sal): Likewise.
4392
c898adb7
YQ
43932013-06-20 Pedro Alves <pedro@codesourcery.com>
4394 Yao Qi <yao@codesourcery.com>
4395
4396 * NEWS: Mention the new option '--skip-unavailable' of command
4397 -data-list-register-values.
4398 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4399 --skip-unavailable option. Adjust to use output_register.
4400 (output_register): Add new 'skip_unavailable' parameter.
4401 Handle it.
4402
4d157a3d
MF
44032013-06-19 Mike Frysinger <vapier@gentoo.org>
4404
4405 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4406 common/i386-gcc-cpuid.h.
4407 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4408 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4409 Copy the latest version from upstream gcc.
4410 * common/linux-btrace.c: Include i386-cpuid.h.
4411 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4412 call to i386_cpuid.
4413 (cpu_supports_btrace): Likewise.
4414 * go32-nat.c: Include i386-cpuid.h.
4415 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4416
1ce4db08
DE
44172013-06-19 Doug Evans <dje@google.com>
4418
4419 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4420 (get_section_index): Ditto.
4421
0e4777df
TT
44222013-06-19 Tom Tromey <tromey@redhat.com>
4423
4424 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4425 "dprintf" help.
4426
3190f0c6
DE
44272013-06-18 Doug Evans <dje@google.com>
4428
4429 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4430 before using it.
4431 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4432 Move test of cu_index closer to use. Print complaint if cu_index
4433 is bad.
4434
8b89a20a
JB
44352013-06-18 Joel Brobecker <brobecker@adacore.com>
4436
4437 * machoread.c (oso_vector): Delete this global.
4438 (macho_register_oso): Add new parameter "oso_vector_ptr".
4439 Use it instead of the "oso_vector" global.
4440 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4441 (macho_symfile_read): Use a local oso_vector, to be free'ed
4442 at the end of this function, in place of the old "oso_vector"
4443 global. Update various function calls accordingly. Use one
4444 single cleanup chain for the entire function.
4445
59b0c7c1
JB
44462013-06-18 Joel Brobecker <brobecker@adacore.com>
4447
937c708c 4448 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4449 DWARF2_PER_OBJFILE by uses of DATA instead.
4450
427cd150
TT
44512013-06-18 Tom Tromey <tromey@redhat.com>
4452
4453 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4454 argument.
4455 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4456 Special case signals other than GDB_SIGNAL_TRAP.
4457 (explains_signal_watchpoint): New function.
4458 (base_breakpoint_explains_signal): Add 'sig' argument.
4459 (initialize_breakpoint_ops): Set 'explains_signal' method for
4460 watchpoints.
4461 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4462 signal argument.
4463 (bpstat_explains_signal): Likewise.
4464 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4465
2d57700b
TT
44662013-06-18 Tom Tromey <tromey@redhat.com>
4467
4468 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4469
ac475191
TT
44702013-06-18 Tom Tromey <tromey@redhat.com>
4471
4472 * python/python.c (finish_python_initialization): Decref
4473 'pythondir' on failure path as well.
4474
5bd1ef56
TT
44752013-06-18 Tom Tromey <tromey@redhat.com>
4476
4477 PR symtab/15391:
4478 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4479 after taking bits_to_skip into account. Sign extend byte_offset.
4480 * utils.h (gdb_sign_extend): Declare.
4481 * utils.c (gdb_sign_extend): New function.
4482
92fac807
JK
44832013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4486
2d503272
PM
44872013-06-17 Pierre Muller <muller@sourceware.org>
4488
4489 * corelow.c (core_open): Print GDB signal name instead of target
4490 signal number.
4491
6916fd98
MF
44922013-06-17 Mike Frysinger <vapier@gentoo.org>
4493
4494 * .gitignore: Add /gcore.
4495
9c02c129
DE
44962013-06-13 Doug Evans <dje@google.com>
4497
4498 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4499 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4500
d0548fa2
PM
45012013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4502
4503 * stack.c (backtrace_command_1): Fix indentation.
4504
22128028
JB
45052013-06-11 Joel Brobecker <brobecker@adacore.com>
4506
4507 * window-nat.c (thread_rec): Add missing empty line after
4508 local variable declaration.
4509
2ed3e009
JB
45102013-06-11 Joel Brobecker <brobecker@adacore.com>
4511
4512 * windows-nat.c (thread_rec): Revert format used to print
4513 error code returned by SuspendThread from %d back to %u.
4514
0c3d84be
JB
45152013-06-11 Joel Brobecker <brobecker@adacore.com>
4516
4517 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4518 ID in debug trace.
4519 (get_windows_debug_event): Likewise, for all debug traces.
4520
80e88e1a
JB
45212013-06-11 Joel Brobecker <brobecker@adacore.com>
4522
4523 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4524 warning message.
4525
1edebdbf
YQ
45262013-06-08 Pedro Alves <pedro@codesourcery.com>
4527 Yao Qi <yao@codesourcery.com>
4528
4529 * mi/mi-main.c (get_register): Remove declaration.
4530 (output_register): Declare.
4531 (mi_cmd_data_list_register_values): Remove local variable
4532 'tuple_cleanup'. Move some code into output_register.
4533 (get_register): Renamed to ...
4534 (output_register): ... this. Output the register's
4535 "number" ui_out tuple here.
4536
47d48711
PA
45372013-06-07 Pedro Alves <palves@redhat.com>
4538
4539 * darwin-nat.c: Fix formating in copyright header.
4540 * darwin-nat.h: Likewise.
4541 * gnu-nat.c: Likewise.
4542 * machoread.c: Likewise.
4543
3aee8918
PA
45442013-06-07 Pedro Alves <palves@redhat.com>
4545
5f2b57b5 4546 PR server/14823
3aee8918
PA
4547 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4548 static. Output a global target description pointer.
4549 (init_registers_${name}): Adjust to initialize a
4550 target description structure.
4551
fe8400b4
WN
45522013-06-07 Will Newton <will.newton@linaro.org>
4553
4554 * printcmd.c (build_address_symbolic): Call
4555 gdbarch_addr_bits_remove for text minimal symbols.
4556
20df6206
WN
45572013-06-07 Will Newton <will.newton@linaro.org>
4558
4559 * MAINTAINERS: Add myself to Write After Approval.
4560
aef525cb
YQ
45612013-06-07 Yao Qi <yao@codesourcery.com>
4562
4563 * tracepoint.c (start_tracing): Move code to ...
4564 (trace_reset_local_state): ... here. New.
4565 (disconnect_tracing): Don't call set_current_traceframe,
4566 set_tracepoint_num, and set_traceframe_context. Call
4567 trace_reset_local_state instead.
4568 (tfile_close): Call trace_reset_local_state.
4569 * ctf.c (ctf_close): Likewise.
4570 * remote.c (remote_close): Likewise.
4571 * tracepoint.h (trace_reset_local_state): Declare.
4572
d2415c6c
DE
45732013-06-06 Doug Evans <dje@google.com>
4574
4575 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4576 and fix header docs.
4577
69fc87c2
DE
45782013-06-05 Doug Evans <dje@google.com>
4579 Keith Seitz <keiths@redhat.com>
4580
4581 PR 15519
4582 * cp-namespace.c (find_symbol_in_baseclass): Call
4583 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4584 Check result of call to lookup_symbol_static.
4585 Call lookup_static_symbol_aux unconditionally.
4586 Call check_typedef on base types before accessing them.
4587 (cp_lookup_nested_symbol): Fix comment.
4588
a513d1e8
LM
45892013-06-05 Luis Machado <lgustavo@codesourcery.com>
4590
4591 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4592 minimal symbols pointing to function descriptors.
4593
351a6f02
TT
45942013-06-05 Tom Tromey <tromey@redhat.com>
4595
4596 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4597
5e1b953b 45982013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4599 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4600
4601 * remote.c (remote_wait_as): Restore signal handler before returning
4602 when GDB gets a notification.
4603
f9e14852
GB
46042013-06-04 Gary Benson <gbenson@redhat.com>
4605
8445cbf1 4606 PR 2328
f9e14852
GB
4607 * breakpoint.h (handle_solib_event): Moved function declaration
4608 to solib.h.
4609 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4610 (bpstat_stop_status): Pass new argument to handle_solib_event.
4611 * solib.h (update_solib_breakpoints): New function declaration.
4612 (handle_solib_event): Moved function declaration from
4613 breakpoint.h.
4614 * solib.c (update_solib_breakpoints): New function.
4615 (handle_solib_event): Moved function from breakpoint.c.
4616 Updated to call solib_ops->handle_event if not NULL.
4617 * solist.h (target_so_ops): New fields "update_breakpoints" and
4618 "handle_event".
4619 * infrun.c (set_stop_on_solib_events): New function.
4620 (_initialize_infrun): Use the above for "set
4621 stop-on-solib-events".
4622 (handle_inferior_event): Pass new argument to handle_solib_event.
4623 * solib-svr4.c (probe.h): New include.
4624 (svr4_free_library_list): New forward declaration.
4625 (probe_action): New enum.
4626 (probe_info): New struct.
4627 (probe_info): New static variable.
4628 (NUM_PROBES): New definition.
4629 (svr4_info): New fields "using_xfer", "probes_table" and
4630 "solib_list".
4631 (free_probes_table): New function.
4632 (free_solib_list): New function.
4633 (svr4_pspace_data_cleanup): Free probes table and solib list.
4634 (svr4_copy_library_list): New function.
4635 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4636 (svr4_read_so_list): New parameter "prev_lm".
4637 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4638 (svr4_current_sos): New function.
4639 (probe_and_action): New struct.
4640 (hash_probe_and_action): New function.
4641 (equal_probe_and_action): Likewise.
4642 (register_solib_event_probe): Likewise.
4643 (solib_event_probe_at): Likewise.
4644 (solib_event_probe_action): Likewise.
4645 (solist_update_full): Likewise.
4646 (solist_update_incremental): Likewise.
4647 (disable_probes_interface_cleanup): Likewise.
4648 (svr4_handle_solib_event): Likewise.
4649 (svr4_update_solib_event_breakpoint): Likewise.
4650 (svr4_update_solib_event_breakpoints): Likewise.
4651 (svr4_create_solib_event_breakpoints): Likewise.
4652 (enable_break): Free probes table before creating breakpoints.
4653 Use svr4_create_solib_event_breakpoints to create breakpoints.
4654 (svr4_solib_create_inferior_hook): Free the solib list.
4655 (_initialize_svr4_solib): Initialise
4656 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4657
ced63ec0
GB
46582013-06-04 Gary Benson <gbenson@redhat.com>
4659
4660 * target.h (target_ops): New field
4661 "to_augmented_libraries_svr4_read".
4662 (target_augmented_libraries_svr4_read): New macro.
4663 * target.c (update_current_target): Handle
4664 to_augmented_libraries_svr4_read.
4665 * remote.c (remote_state): New field
4666 "augmented_libraries_svr4_read".
4667 (remote_augmented_libraries_svr4_read_feature): New function.
4668 (remote_protocol_features): Add entry for
4669 "augmented-libraries-svr4-read".
4670 (remote_augmented_libraries_svr4_read): New function.
4671 (init_remote_ops): Initialize
4672 remote_ops.to_augmented_libraries_svr4_read.
4673
7f91dbec
GB
46742013-06-04 Gary Benson <gbenson@redhat.com>
4675
4676 * NEWS: Update.
4677
607ece04
GB
46782013-06-04 Gary Benson <gbenson@redhat.com>
4679
4680 * objfiles.h (inhibit_section_map_updates): New function
4681 declaration.
4682 (resume_section_map_updates): Likewise.
4683 (resume_section_map_updates_cleanup): Likewise.
4684 * objfiles.c (objfile_pspace_info): Removed field
4685 "objfiles_changed_p". New fields "new_objfiles_available",
4686 "section_map_dirty" and "inhibit_updates".
4687 (allocate_objfile): Set new_objfiles_available.
4688 (free_objfile): Set section_map_dirty.
4689 (objfile_relocate1): Likewise.
4690 (in_plt_section): Likewise.
4691 (find_pc_section): Update the conditions under which the
4692 section map will be updated.
4693 (inhibit_section_map_updates): New function.
4694 (resume_section_map_updates): Likewise.
4695 (resume_section_map_updates_cleanup): Likewise.
4696
9ee6a5ac
GB
46972013-06-04 Gary Benson <gbenson@redhat.com>
4698
4699 * probe.h (get_probe_argument_count): New declaration.
4700 (evaluate_probe_argument): Likewise.
4701 * probe.c (get_probe_argument_count): New function.
4702 (evaluate_probe_argument): Likewise.
4703 (probe_safe_evaluate_at_pc): Use the above new functions.
4704
845d4708
AM
47052013-06-04 Alan Modra <amodra@gmail.com>
4706
4707 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4708 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4709 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4710 target mem reads on optional insns.
4711 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4712 ppc_insns_match_pattern calls.
4713 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4714 Add match for power7 thread safety insns, and new order of
4715 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4716 invocation in comment, and update rest of comment.
4717 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4718 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4719 (ppc64_standard_linkage2_target): Update insn offsets.
4720 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4721 stubs first. Update calls.
4722
404e278f
YQ
47232013-06-04 Yao Qi <yao@codesourcery.com>
4724
4725 * solib.c (solib_find): Don't need dir separator if path has
4726 drive spec.
4727
f6aea118
JB
47282013-06-03 Joel Brobecker <brobecker@adacore.com>
4729
4730 Revert (indirectly causes a SIGSEGV):
4731 * machoread.c (macho_symfile_read): Assign first cleanup to
4732 'back_to'.
4733
87967e27
YQ
47342013-06-03 Yao Qi <yao@codesourcery.com>
4735
4736 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4737 mi-parse.c. Make them static.
4738 (mi_all_values): Likewise.
4739 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4740 mi_parse_print_values. Make it external.
4741 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4742 Remove the declarations.
4743 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4744 * mi/mi-parse.h (mi_parse_print_values): Declare.
4745 * mi/mi-cmd-stack.c: Include mi-parse.h.
4746 (parse_print_values): Remove
4747 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4748 of parse_print_values.
4749 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4750
3ca73e0c
YQ
47512013-05-31 Pedro Alves <pedro@codesourcery.com>
4752 Yao Qi <yao@codesourcery.com>
4753
4754 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4755 (encode_actions): Move code to ...
4756 (all_tracepoint_actions_and_cleanup): ... here. New.
4757 (trace_dump_command): Likewise.
4758
4e993a19
TT
47592013-05-30 Tom Tromey <tromey@redhat.com>
4760
4761 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4762
e3b76b4f
TT
47632013-05-30 Tom Tromey <tromey@redhat.com>
4764
4765 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4766 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4767 'old_chain' argument. Add 'parser_result' argument.
4768 (gdb_xml_create_parser_and_cleanup): Remove old version.
4769 (gdb_xml_parse_quick): Update.
4770 (xml_process_xincludes): Update.
4771 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4772 declare.
4773
db26349c
TT
47742013-05-30 Tom Tromey <tromey@redhat.com>
4775
4776 * probe.c (collect_probes): Check arguments for NULL before
4777 calling compile_rx_or_error.
4778 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4779 Remove NULL return.
4780
77f9e713
TT
47812013-05-30 Tom Tromey <tromey@redhat.com>
4782
4783 * infrun.c (adjust_pc_after_break): Introduce an outer null
4784 cleanup.
4785
45475de7
TT
47862013-05-30 Tom Tromey <tromey@redhat.com>
4787
4788 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4789
ac5007fd
TT
47902013-05-30 Tom Tromey <tromey@redhat.com>
4791
4792 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4793 for 'old_chain'. Do not check 'head' before processing
4794 cleanups.
4795
cd82eddc
TT
47962013-05-30 Tom Tromey <tromey@redhat.com>
4797
4798 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4799 "cleanup_tuple".
4800
57cee33a
TT
48012013-05-30 Tom Tromey <tromey@redhat.com>
4802
4803 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4804 inner scope. Unconditionally call do_cleanups.
4805
795d915c
TT
48062013-05-30 Tom Tromey <tromey@redhat.com>
4807
4808 * source.c (find_and_open_source): Call do_cleanups.
4809
1fc3cf4a
TT
48102013-05-30 Tom Tromey <tromey@redhat.com>
4811
4812 * linux-thread-db.c (thread_db_load_search): Unconditionally
4813 call do_cleanups.
4814
e35ac9bf
TT
48152013-05-30 Tom Tromey <tromey@redhat.com>
4816
4817 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4818 for 'cleanup'; instead use a later one.
4819
f3300387
TT
48202013-05-30 Tom Tromey <tromey@redhat.com>
4821
4822 * python/py-breakpoint.c (bppy_get_commands): Use
4823 explicit, unconditional return.
4824 * python/py-frame.c (frapy_read_var): Likewise.
4825 * python/python.c (gdbpy_decode_line): Likewise.
4826
c27e16e3
TT
48272013-05-30 Tom Tromey <tromey@redhat.com>
4828
4829 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4830 do_cleanups on all return paths.
4831
5ae85e44
TT
48322013-05-30 Tom Tromey <tromey@redhat.com>
4833
4834 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4835
73b8d9da
TT
48362013-05-30 Tom Tromey <tromey@redhat.com>
4837
4838 * stabsread.c (read_struct_type): Call do_cleanups along
4839 all return paths.
4840
7d266584
MR
48412013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4842
4843 * mips-linux-tdep.c: Adjust formatting throughout.
4844
0f900f54
TT
48452013-05-30 Tom Tromey <tromey@redhat.com>
4846
4847 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4848 along all return paths.
4849
a991ac28
TT
48502013-05-30 Tom Tromey <tromey@redhat.com>
4851
4852 * symfile.c (find_separate_debug_file): Call do_cleanups
4853 along all return paths.
4854
1abaf042
TT
48552013-05-30 Tom Tromey <tromey@redhat.com>
4856
4857 * symtab.c (search_symbols): Introduce a null cleanup for
4858 'retval_chain'.
4859
edefe1da
TT
48602013-05-30 Tom Tromey <tromey@redhat.com>
4861
4862 * python/py-value.c (valpy_binop): Call do_cleanups before
4863 exiting loop.
4864
54f72dcc
TT
48652013-05-30 Tom Tromey <tromey@redhat.com>
4866
4867 * python/py-prettyprint.c (print_children): Remove extra
4868 do_cleanups call.
4869
af1c6971
TT
48702013-05-30 Tom Tromey <tromey@redhat.com>
4871
4872 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4873 all return paths.
4874
b862ce75
TT
48752013-05-30 Tom Tromey <tromey@redhat.com>
4876
4877 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4878 along all return paths.
4879
e12fefc8
TT
48802013-05-30 Tom Tromey <tromey@redhat.com>
4881
4882 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4883 call do_cleanups.
4884
4867f990
TT
48852013-05-30 Tom Tromey <tromey@redhat.com>
4886
4887 * varobj.c (c_value_of_root): Call do_cleanups along all
4888 return paths.
4889
4fd2d6af
TT
48902013-05-30 Tom Tromey <tromey@redhat.com>
4891
4892 * tracepoint.c (trace_dump_command): Unconditionally call
4893 do_cleanups.
4894
752eb8b4
TT
48952013-05-30 Tom Tromey <tromey@redhat.com>
4896
4897 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4898 do_cleanups earlier.
4899
e42d0aa5
TT
49002013-05-30 Tom Tromey <tromey@redhat.com>
4901
4902 * machoread.c (macho_symfile_read): Assign first cleanup to
4903 'back_to'.
4904
4bbc010a
TT
49052013-05-30 Tom Tromey <tromey@redhat.com>
4906
4907 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4908
b9635925
TT
49092013-05-30 Tom Tromey <tromey@redhat.com>
4910
4911 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4912
25f43500
TT
49132013-05-30 Tom Tromey <tromey@redhat.com>
4914
4915 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4916 call discard_cleanups.
4917 (inf_ptrace_attach): Likewise.
4918
d6a2e54a
TT
49192013-05-30 Tom Tromey <tromey@redhat.com>
4920
4921 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4922 return paths.
4923 (mips_initialize): Likewise.
4924 (common_open): Call do_cleanups.
4925
48be7c1b
TT
49262013-05-30 Tom Tromey <tromey@redhat.com>
4927
4928 * utils.c (internal_vproblem): Call do_cleanups.
4929
e61727ab
TT
49302013-05-30 Tom Tromey <tromey@redhat.com>
4931
4932 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4933
b81b921f
TT
49342013-05-30 Tom Tromey <tromey@redhat.com>
4935
4936 * cli/cli-script.c (setup_user_args): Don't return after error.
4937
fe48dfb1
TT
49382013-05-30 Tom Tromey <tromey@redhat.com>
4939
4940 * somread.c (som_symtab_read): Call do_cleanups.
4941
27833de7
TT
49422013-05-30 Tom Tromey <tromey@redhat.com>
4943
4944 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4945
5b3fca71
TT
49462013-05-30 Tom Tromey <tromey@redhat.com>
4947
4948 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4949 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4950 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4951 * source.c (show_substitute_path_command): Call do_cleanups.
4952 (unset_substitute_path_command, set_substitute_path_command):
4953 Likewise.
4954 * symfile.c (load_command): Call do_cleanups.
4955
af83e3f8
TT
49562013-05-30 Tom Tromey <tromey@redhat.com>
4957
4958 * contrib/cleanup_check.py: New file.
4959 * contrib/gcc-with-excheck: Add option parsing.
4960
564eac42
JB
49612013-05-30 Joel Brobecker <brobecker@adacore.com>
4962
4963 * windows-nat.c (windows_delete_thread): Add missing space
4964 in cast expression.
4965
47902076
HAQ
49662013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4967
4968 * inferior.c (top level): Include tilde.h.
4969 (add_inferior_command): Call tilde_expand on the value of 'exec'
4970 argument.
4971
23da373a
YQ
49722013-05-30 Pedro Alves <pedro@codesourcery.com>
4973 Yao Qi <yao@codesourcery.com>
4974
4975 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4976 Caller update.
4977 (encode_actions): Likewise.
4978 * remote.c (remote_download_tracepoint): Caller update.
4979 * tracepoint.h (encode_actions): Update declaration.
4980
a6e6f791
PA
49812013-05-30 Pedro Alves <palves@redhat.com>
4982
4983 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4984 pointer.
4985
36d25514
YQ
49862013-05-30 Yao Qi <yao@codesourcery.com>
4987
4988 * remote.c (remote_check_symbols): Remove unused parameter
4989 'objfile'.
4990 Declaration update.
4991 (remote_start_remote, remote_new_objfile): Caller update.
4992
62a813cc
YQ
49932013-05-30 Yao Qi <yao@codesourcery.com>
4994
4995 * mi/mi-cmds.c (mi_cmds): Define MI command
4996 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4997 DEF_MI_CMD_CLI.
4998
28439a30
PA
49992013-05-29 Pedro Alves <palves@redhat.com>
5000
5001 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5002 (remote_insert_watchpoint, remote_remove_watchpoint)
5003 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5004 (remote_verify_memory, compare_sections_command)
5005 (remote_search_memory): Set the general process/thread on the
5006 remote side.
5007
6ac1c082
PA
50082013-05-29 Pedro Alves <palves@redhat.com>
5009
5010 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5011 (_initialize_aarch64_tdep): Don't call
5012 initialize_tdesc_aarch64_without_fpu.
5013 * features/Makefile (WHICH): Remove reference to
5014 aarch64-without-fpu.
5015 * features/aarch64-without-fpu.c: Delete file.
5016 * regformats/aarch64-without-fpu.dat: Delete file.
5017
a73e3634
YQ
50182013-05-28 Yao Qi <yao@codesourcery.com>
5019
5020 * tracepoint.c (stringify_collection_list): Remove parameter
5021 'string'.
5022 (encode_actions): Caller update. Remove local variables.
5023
c0ea94eb
YQ
50242013-05-24 Yao Qi <yao@codesourcery.com>
5025
5026 * tracepoint.c (TFILE_PID): Remove.
5027 (tfile_open): Don't add thread and inferior.
5028 (tfile_close): Don't set 'inferior_ptid'. Don't call
5029 exit_inferior_silent.
5030 (tfile_thread_alive): Remove.
5031 (init_tfile_ops): Don't set field 'to_thread_alive' of
5032 tfile_ops.
5033
20d7f211
DE
50342013-05-23 Doug Evans <dje@google.com>
5035
5036 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5037
8658d16d
PA
50382013-05-23 Pedro Alves <palves@redhat.com>
5039
5040 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5041 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5042 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5043 Only define if HAVE_SOCKETS is defined.
5044 * configure.ac: Check for sys/socket.h.
5045 * config.in, configure: Regenerate.
5046
21aa081e
PA
50472013-05-23 Pedro Alves <palves@redhat.com>
5048
5049 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5050 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5051 printing uint32_t variables.
5052
c2d6af84
PA
50532013-05-23 Pedro Alves <palves@redhat.com>
5054
5055 * NEWS: Mention GDBserver range stepping support.
5056
c1e36e3e
PA
50572013-05-23 Yao Qi <yao@codesourcery.com>
5058 Pedro Alves <palves@redhat.com>
5059
5060 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5061 field.
5062 * infcmd.c (step_once, until_next_command): Enable range stepping.
5063 * infrun.c (displaced_step_prepare): Disable range stepping.
5064 (resume): Disable range stepping if stepping over a breakpoint or
5065 we have software watchpoints. If range stepping is enabled,
5066 assert the thread is in the stepping range.
5067 (clear_proceed_status_thread): Clear may_range_step.
5068 (handle_inferior_event): Disable range stepping as soon as we know
5069 the thread that hit the event. Re-enable it whenever we're going
5070 to step with a step range.
5071 * remote.c (struct vCont_action_support) <r>: New field.
5072 (use_range_stepping): New global.
5073 (remote_vcont_probe): Handle 'r' action.
5074 (append_resumption): Append an 'r' action if the thread may range
5075 step.
5076 (show_range_stepping): New function.
5077 (set_range_stepping): New function.
5078 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5079 'set range-stepping' and 'show range-stepping' commands.
5080 * NEWS: Mention range stepping, the new vCont;r action, and the
5081 new "set/show range-stepping" commands.
5082
d458bd84
PA
50832013-05-23 Yao Qi <yao@codesourcery.com>
5084 Pedro Alves <palves@redhat.com>
5085
5086 * remote.c (struct vCont_action_support): New struct.
5087 (struct remote_state) <support_vCont_t>: Remove field.
5088 <vCont_actions_support>: New field.
5089 (remote_vcont_probe, remote_stop_ns): Update.
5090
ce4c476a
PA
50912013-05-23 Yao Qi <yao@codesourcery.com>
5092 Pedro Alves <palves@redhat.com>
5093
5094 * gdbthread.h (pc_in_thread_step_range): New declaration.
5095 * thread.c (pc_in_thread_step_range): New function.
5096 * infrun.c (handle_inferior_event): Use it.
5097
ce70887a
JB
50982013-05-23 Joel Brobecker <brobecker@adacore.com>
5099
5100 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5101 of sprintf.
5102
55b87a52
KS
51032013-05-22 Keith Seitz <keiths@redhat.com>
5104
5105 * ada-lang.c (is_known_support_routine): Add explicit free of
5106 'func_name' from find_frame_funname.
5107 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5108 for func_name from find_frame_funname.
5109 * python/py-frame.c (frapy_name): Add explicit free of
5110 'name' from find_frame_funname.
5111 * stack.c (find_frame_funname): Add comment explaining that
5112 funcp must be freed by the caller.
5113 Return copy of symbol names instead of pointers.
5114 (print_frame): Add a cleanup for 'funname' from
5115 find_frame_funname.
5116 * stack.h (find_frame_funname): Remove "const" from
5117 'funname' parameter.
5118
5f2e6b00
TT
51192013-05-22 Tom Tromey <tromey@redhat.com>
5120
5121 PR c++/15401:
5122 * c-valprint.c (c_value_print): Use value_addr for
5123 references. Convert back to reference type with value_ref.
5124
d85c4847
EZ
51252013-05-22 Eli Zaretskii <eliz@gnu.org>
5126
5127 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5128 unloaded DLL, it will be done by handle_solib_event. See
5129 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5130 details.
5131
54eb231c
PM
51322013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5133
5134 * ui-out.c: Create typedef ui_out_level_p and define vector
5135 operations for that type.
5136 (struct ui_out): Use a vector instead of an array.
5137 (current_level): Return level from a vector.
5138 (push_level): Create a level in a vector.
5139 (pop_level): Delete a level in a vector.
5140 (ui_out_new): Create initial level zero level, and store in a
5141 vector.
5142 (ui_out_destroy): Add vector cleanup.
5143
ac90359c
PA
51442013-05-22 Pedro Alves <palves@redhat.com>
5145
5146 * python/python-internal.h (gdb_Py_DECREF): Tag with
5147 "ARI: editCase function".
5148
6dcc1893
PP
51492013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5150
5151 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5152
c8c735b9
PA
51532013-05-21 Pedro Alves <palves@redhat.com>
5154
5155 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5156 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5157 * python/py-utils.c (py_decref): Don't check for NULL before
5158 calling Py_DECREF.
5159
1915daeb
PA
51602013-05-21 Pedro Alves <palves@redhat.com>
5161
5162 * python/py-utils.c (py_decref): Remove extra braces.
5163 (gdb_pymodule_addobject): Remove extra braces.
5164 * python-internal.h (gdb_Py_DECREF): New static inline function.
5165 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5166
bd9673a4
PW
51672013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5168
5169 * breakpoints.c (detach_breakpoints): Do not
5170 detach breakpoints locations with loc_type bp_loc_other.
5171
ff6009d0
JK
51722013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5173
5174 Workaround Python 2.6.
5175 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5176 a block.
5177
3641da11
JK
51782013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5179
5180 Code cleanup: constification.
5181 * solib.c (solib_ops): Make return type and ops variable type const.
5182 (set_solib_ops): Make the new_ops parameter and ops variable const.
5183 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5184 (solib_add, solib_keep_data_in_core, clear_solib)
5185 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5186 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5187 const.
5188 * solib.h (set_solib_ops): Make the new_ops parameter const.
5189
776af39e
JB
51902013-05-21 Joel Brobecker <brobecker@adacore.com>
5191
5192 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5193 variable.
5194 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5195 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5196 (SYSTEM_GDBINIT_FILES): New variables.
5197 (all): Add stamp-system-gdbinit.
5198 (stamp-system-gdbinit): New rule.
5199 (clean-system-gdbinit, install-system-gdbinit)
5200 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5201 (install-only): Add dependency on install-system-gdbinit.
5202 (uninstall): Add dependency on uninstall-system-gdbinit.
5203 (clean): Add dependency on clean-system-gdbinit.
5204 * system-gdbinit/elinos.py: New file.
5205 * system-gdbinit/wrs-linux.py: New file.
5206
1509e573
JB
52072013-05-21 Joel Brobecker <brobecker@adacore.com>
5208
5209 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5210
c5867ab6
HZ
52112013-05-21 Hui Zhu <hui@codesourcery.com>
5212
5213 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5214 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5215 * mi/mi-cmd-break.c (ctype.h): New include.
5216 (gdb_obstack.h): New include.
5217 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5218 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5219 (mi_cmd_dprintf_insert): New.
5220 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5221 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5222
7d38e38f
TT
52232013-05-20 Tom Tromey <tromey@redhat.com>
5224
5225 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5226
97b77b39
TT
52272013-05-20 Tom Tromey <tromey@redhat.com>
5228
5229 * python/py-value.c (valpy_get_dynamic_type): Simplify
5230 dynamic_type assignment. Use Py_XINCREF.
5231
53e66479
TT
52322013-05-20 Tom Tromey <tromey@redhat.com>
5233
5234 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5235
dcf87832
TT
52362013-05-20 Tom Tromey <tromey@redhat.com>
5237
5238 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5239 (gdbpy_selected_frame): Move object-construction code
5240 out of TRY_CATCH.
5241
aa36459a
TT
52422013-05-20 Tom Tromey <tromey@redhat.com>
5243
5244 * python/py-arch.c (gdbpy_initialize_arch): Use
5245 gdb_pymodule_addobject.
5246 * python/py-block.c (gdbpy_initialize_blocks): Use
5247 gdb_pymodule_addobject.
5248 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5249 gdb_pymodule_addobject.
5250 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5251 gdb_pymodule_addobject.
5252 * python/py-event.c (gdbpy_initialize_event_generic): Use
5253 gdb_pymodule_addobject.
5254 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5255 gdb_pymodule_addobject.
5256 * python/py-evts.c (add_new_registry): Use
5257 gdb_pymodule_addobject.
5258 (gdbpy_initialize_py_events): Likewise.
5259 * python/py-finishbreakpoint.c
5260 (gdbpy_initialize_finishbreakpoints): Use
5261 gdb_pymodule_addobject.
5262 * python/py-frame.c (gdbpy_initialize_frames): Use
5263 gdb_pymodule_addobject.
5264 * python/py-function.c (gdbpy_initialize_functions): Use
5265 gdb_pymodule_addobject.
5266 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5267 gdb_pymodule_addobject.
5268 * python/py-infthread.c (gdbpy_initialize_thread): Use
5269 gdb_pymodule_addobject.
5270 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5271 gdb_pymodule_addobject.
5272 * python/py-param.c (gdbpy_initialize_parameters): Use
5273 gdb_pymodule_addobject.
5274 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5275 gdb_pymodule_addobject.
5276 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5277 gdb_pymodule_addobject.
5278 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5279 gdb_pymodule_addobject.
5280 * python/py-type.c (gdbpy_initialize_types): Use
5281 gdb_pymodule_addobject.
5282 * python/py-utils.c (gdb_pymodule_addobject): New function.
5283 * python/py-value.c (gdbpy_initialize_values): Use
5284 gdb_pymodule_addobject.
5285 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5286 * python/python.c (_initialize_python): Use
5287 gdb_pymodule_addobject.
5288
3d4a3c3e
TT
52892013-05-20 Tom Tromey <tromey@redhat.com>
5290
5291 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5292 * python/py-param.c (get_set_value, get_show_value): Use
5293 explicit decrefs.
5294 * python/python.c (start_type_printers, apply_type_printers):
5295 Use explicit decrefs.
5296
72ff8829
TT
52972013-05-20 Tom Tromey <tromey@redhat.com>
5298
5299 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5300 incref the module.
5301
02146ba5
TT
53022013-05-20 Tom Tromey <tromey@redhat.com>
5303
5304 * python/python.c (gdbpy_run_events): Decref the result
5305 of PyObject_CallObject.
5306
33ee792f
TT
53072013-05-20 Tom Tromey <tromey@redhat.com>
5308
5309 * python/py-symtab.c (set_sal): Use
5310 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5311 (symtab_and_line_to_sal_object): Update.
5312
fcb49fc8
TT
53132013-05-20 Tom Tromey <tromey@redhat.com>
5314
5315 * python/py-param.c (compute_enum_values): Decref 'item'.
5316
0646da15
TT
53172013-05-20 Tom Tromey <tromey@redhat.com>
5318
5319 * mi/mi-main.c: Include python-internal.h.
5320 (mi_cmd_list_features): Check gdb_python_initialized.
5321 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5322 (python_inferior_exit, python_new_objfile, add_thread_object)
5323 (delete_thread_object, py_free_inferior): Check
5324 gdb_python_initialized.
5325 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5326 gdb_python_initialized.
5327 * python/py-type.c (save_objfile_types): Check
5328 gdb_python_initialized.
5329 * python/python-internal.h (gdb_python_initialized): Declare.
5330 * python/python.c (ensure_python_env): Throw exception if
5331 Python not initialized.
5332 (before_prompt_hook, source_python_script_for_objfile)
5333 (start_type_printers, apply_type_printers,
5334 free_type_printers): Check gdb_python_initialized.
5335 * varobj.c (varobj_get_display_hint)
5336 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5337 (install_new_value_visualizer, varobj_set_visualizer)
5338 (value_get_print_value): Check gdb_python_initialized.
5339
999633ed
TT
53402013-05-20 Tom Tromey <tromey@redhat.com>
5341
5342 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5343 Check errors.
5344 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5345 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5346 Check errors.
5347 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5348 Check errors.
5349 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5350 Check errors.
5351 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5352 Check errors.
5353 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5354 init function to return 'int'.
5355 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5356 Return 'int'. Check errors.
5357 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5358 Check errors.
5359 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5360 Return 'int'. Check errors.
5361 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5362 Check errors.
5363 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5364 Check errors.
5365 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5366 Check errors.
5367 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5368 Check errors.
5369 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5370 Check errors.
5371 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5372 Check errors.
5373 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5374 Check errors.
5375 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5376 Check errors.
5377 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5378 Check errors.
5379 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5380 Check errors.
5381 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5382 Check errors.
5383 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5384 Check errors.
5385 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5386 Check errors.
5387 * python/python-internal.h (gdbpy_initialize_auto_load,
5388 gdbpy_initialize_values, gdbpy_initialize_frames,
5389 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5390 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5391 gdbpy_initialize_blocks, gdbpy_initialize_types,
5392 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5393 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5394 gdbpy_initialize_finishbreakpoints,
5395 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5396 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5397 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5398 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5399 gdbpy_initialize_signal_event,
5400 gdbpy_initialize_breakpoint_event,
5401 gdbpy_initialize_continue_event,
5402 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5403 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5404 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5405 * python/python.c (gdb_python_initialized): New global.
5406 (gdbpy_initialize_events): Return 'int'. Check errors.
5407 (_initialize_python): Check errors. Set
5408 gdb_python_initialized.
5409
18868860
TT
54102013-05-20 Tom Tromey <tromey@redhat.com>
5411
5412 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5413 Decref the reslut of PyObject_CallMethod.
5414
9f4ff0c2
TT
54152013-05-20 Tom Tromey <tromey@redhat.com>
5416
5417 * python/py-event.c (gdbpy_initialize_event_generic): Return
5418 early if PyType_Ready fails.
5419
0d3a2e8a
TT
54202013-05-20 Tom Tromey <tromey@redhat.com>
5421
5422 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5423 as 'default' in the switch.
5424
b86af38a
TT
54252013-05-20 Tom Tromey <tromey@redhat.com>
5426
5427 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5428 get_addr_from_python calls out of TRY_CATCH.
5429 (infpy_write_memory, infpy_search_memory): Likewise.
5430 * python/py-utils.c (get_addr_from_python): Return negative
5431 value on error. Use TRY_CATCH.
5432 * python/python-internal.h (get_addr_from_python): Use
5433 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5434
c127ec58
TT
54352013-05-20 Tom Tromey <tromey@redhat.com>
5436
5437 * python/py-event.c (evpy_emit_event): Decref the
5438 result of PyObject_CallFunctionObjArgs.
5439
ba327838
TT
54402013-05-20 Tom Tromey <tromey@redhat.com>
5441
5442 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5443 Correctly decref.
5444
d8191432
TT
54452013-05-20 Tom Tromey <tromey@redhat.com>
5446
5447 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5448
5d153bd1
TT
54492013-05-20 Tom Tromey <tromey@redhat.com>
5450
5451 * python/py-event.h (gdbpy_initialize_event_generic): Use
5452 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5453 * python/py-evts.c (add_new_registry): Use
5454 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5455 * python/python-internal.h
5456 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5457
56cc411c
TT
54582013-05-20 Tom Tromey <tromey@redhat.com>
5459
5460 * python/py-arch.c (archpy_disassemble): Update.
5461 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5462 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5463 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5464 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5465 macro.
5466 (GDB_PY_HANDLE_EXCEPTION): Update.
5467 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5468
8919e174
TT
54692013-05-20 Tom Tromey <tromey@redhat.com>
5470
5471 * python/python-internal.h (events_object_type): Remove.
5472
9b08f225
TT
54732013-05-20 Tom Tromey <tromey@redhat.com>
5474
f5aee5ee
AM
5475 * python/py-event.h (evpy_emit_event): Use
5476 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5477 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5478 New macro.
9b08f225 5479
f04010ff
TT
54802013-05-20 Tom Tromey <tromey@redhat.com>
5481
5482 * py-evtregistry.c (create_event_object): Decref
5483 eventregistry_object if PyList_New fails.
5484
3919fd96
TT
54852013-05-20 Tom Tromey <tromey@redhat.com>
5486
5487 * py-cmd.c (gdbpy_string_to_argv): Check result of
5488 PyList_New.
5489
0430e8cb
TT
54902013-05-20 Tom Tromey <tromey@redhat.com>
5491
5492 * python/python.c (before_prompt_hook): Add cleanup to
5493 decref 'hook'.
5494
764123e4
TT
54952013-05-20 Tom Tromey <tromey@redhat.com>
5496
5497 * python/py-function.c (fnpy_init): Decref result of
5498 PyObject_GetAttrString.
5499
634c58be
TT
55002013-05-20 Tom Tromey <tromey@redhat.com>
5501
5502 * python/py-threadevent.c (get_event_thread): Use
5503 CPYCHECKER_RETURNS_BORROWED_REF.
5504 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5505 New define.
5506 (pspace_to_pspace_object, objfile_to_objfile_object)
5507 (find_thread_object): Use it.
5508
62eec1a5
TT
55092013-05-20 Tom Tromey <tromey@redhat.com>
5510
5511 * python/py-arch.c (arch_object_type): Use
5512 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5513 * python/py-block.c (block_syms_iterator_object_type):
5514 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5515 * python/py-bpevent.c (breakpoint_event_object_type):
5516 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5517 * python/py-cmd.c (cmdpy_object_type): Use
5518 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5519 * python/py-continueevent.c (continue_event_object_type):
5520 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5521 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5522 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5523 * python/py-events.h (thread_event_object_type):
5524 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5525 * python/py-evtregistry.c (eventregistry_object_type): Use
5526 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5527 * python/py-exitedevent.c (exited_event_object_type):
5528 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5529 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5530 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5531 * python/py-function.c (fnpy_object_type): Use
5532 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5533 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5534 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5535 * python/py-infthread.c (thread_object_type): Use
5536 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5537 * python/py-lazy-string.c (lazy_string_object_type):
5538 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5539 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5540 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5541 * python/py-objfile.c (objfile_object_type): Use
5542 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5543 * python/py-param.c (parmpy_object_type):
5544 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5545 * python/py-progspace.c (pspace_object_type):
5546 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5547 * python/py-signalevent.c (signal_event_object_type):
5548 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5549 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5550 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5551 * python/py-type.c (type_object_type, field_object_type)
5552 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5553 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5554 define.
5555 (value_object_type, block_object_type, symbol_object_type)
5556 (event_object_type, stop_event_object_type, breakpoint_object_type)
5557 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5558
81ea8796
AT
55592013-05-20 Andreas Tobler <andreas@fgznet.ch>
5560
5561 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5562 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5563
a2ce51a0
DE
55642013-05-20 Doug Evans <dje@google.com>
5565
5566 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5567 For Fission.
5568 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5569 reading_dwo_directly.
5570 (struct signatured_type): New member dwo_unit.
5571 (struct die_reader_specs): New member comp_dir.
5572 (create_signatured_type_table_from_index): Use malloc for
5573 all_type_units instead of objfile's obstack.
5574 (create_all_type_units): Ditto.
5575 (fill_in_sig_entry_from_dwo_entry): New function.
5576 (add_type_unit): New function.
5577 (lookup_dwo_signatured_type): New function.
5578 (lookup_dwp_signatured_type): New function.
5579 (lookup_signatured_type): New arg cu. All callers updated.
5580 (init_cu_die_reader): Initialize comp_dir.
5581 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5582 Change assert of matching type signatures to call error on mismatch.
5583 (lookup_dwo_unit): Add assert.
5584 (init_tu_and_read_dwo_dies): New function.
5585 (init_cutu_and_read_dies): Call it.
5586 (build_type_unit_groups): Handle case of no type unit groups created.
5587 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5588 (lookup_dwo_cutu): Tweak complaint.
5589 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5590 (dwarf2_per_objfile_free): Free all_type_units.
5591
a25cd31f
JB
55922013-05-20 Joel Brobecker <brobecker@adacore.com>
5593
5594 * windows-nat.c (handle_unload_dll): Add missing empty line.
5595
4d804846
JB
55962013-05-20 Joel Brobecker <brobecker@adacore.com>
5597
5598 * dwarf2read.c (prototyped_function_p): New function.
5599 (read_subroutine_type): Use it.
5600
1c432e72
JB
56012013-05-20 Joel Brobecker <brobecker@adacore.com>
5602
5603 * rs6000-aix-tdep.c: De-indent some example code provided
5604 as a comment.
5605
4feebbdd
EBM
56062013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5607
5608 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5609 region is ok for a hardware watchpoint using the new ptrace interface
5610 on Power servers.
5611
7d0c9981
DE
56122013-05-17 Doug Evans <dje@google.com>
5613
5614 * NEWS: Mention new maintenance commands check-symtabs, and
5615 expand-symtabs, and renamed check-psymtabs.
5616 * psymtab.c (maintenance_check_psymtabs): Renamed from
5617 maintenance_check_symtabs. Only process already-expanded symbol
5618 tables.
5619 (_initialize_psymtab): Update.
5620 * symmisc.c (maintenance_check_symtabs): New function.
5621 (maintenance_expand_name_matcher): New function
5622 (maintenance_expand_file_matcher): New function
5623 (maintenance_expand_symtabs): New function.
5624 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5625 commands.
5626
6cbc7c3d
TT
56272013-05-17 Tom Tromey <tromey@redhat.com>
5628
5629 * python/py-inferior.c (infpy_read_memory): Don't call
5630 PyErr_SetString if PyObject_New fails.
5631 * python/py-frame.c (frame_info_to_frame_object): Don't call
5632 PyErr_SetString if PyObject_New fails.
5633
a48b32c0
L
56342013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5635
5636 * acinclude.m4: Add check for dlopen in libdl.
5637 * configure.ac: Ditto.
5638 * configure: Regenerate.
5639
3de661e6
PM
56402013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5641
5642 * frame.c (frame_stash): Convert to htab.
5643 (frame_addr_hash): New function.
5644 (frame_addr_hash_eq): New function.
5645 (frame_stash_create): Convert function to create
5646 a hash table.
5647 (frame_stash_add): Convert function to add an entry to a hash
5648 table.
5649 (frame_stash_find): Convert function to search the hash table.
5650 (frame_stash_invalidate): Convert function to empty the hash
5651 table.
5652 (get_frame_id): Only add to stash if a frame_id is created.
5653 (_initialize_frame): Call frame_stash_create.
5654
bb4168a9 56552013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5656
5657 * configure.ac: Ensure MIG is available when building for GNU Hurd
5658 hosts.
5659 * configure: Regenerate.
5660
d1be3247
JB
56612013-05-16 Joel Brobecker <brobecker@adacore.com>
5662
5663 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5664
b8fea896
JB
56652013-05-16 Joel Brobecker <brobecker@adacore.com>
5666
5667 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5668 all cleanups are done before returning from this function.
5669
af880d85
JB
56702013-05-15 Joel Brobecker <brobecker@adacore.com>
5671
5672 * utils.h: #include "exceptions.h".
5673 (enum errors): Remove partial declaration.
5674
356a5233
JB
56752013-05-15 Joel Brobecker <brobecker@adacore.com>
5676
5677 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5678 * gdbarch.h, gdbarch.c: Regenerate.
5679 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5680 handling.
5681
5682 * rs6000-aix-tdep.h: New file.
5683 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5684 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5685 "xml-utils.h".
5686 (struct field_info, struct ld_info_desc): New types.
5687 (ld_info32_desc, ld_info64_desc): New static constants.
5688 (struct ld_info): New type.
5689 (rs6000_aix_extract_ld_info): New function.
5690 (rs6000_aix_shared_library_to_xml): Likewise.
5691 (rs6000_aix_ld_info_to_xml): Likewise.
5692 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5693 (rs6000_aix_init_osabi): Add call to
5694 set_gdbarch_core_xfer_shared_libraries_aix.
5695 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5696 Remove "xml-utils.h" include.
5697 (LdInfo): Delete typedef.
5698 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5699 Delete macros.
5700 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5701 Adjust code accordingly.
5702 (rs6000_core_ldinfo): Delete, folded into
5703 rs6000_aix_core_xfer_shared_libraries_aix.
5704 (rs6000_xfer_shared_library): Delete.
5705 (rs6000_xfer_shared_libraries): Reimplement.
5706
742ce053
MM
57072013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5708
5709 * record.c (record_goto_cmdlist): New.
5710 (cmd_record_goto): Split into this ...
5711 (cmd_record_goto_begin): ... this
5712 (cmd_record_goto_end): ... and this.
5713 (_initialize_record): Change "record goto" to prefix command.
5714 Add commands for "record goto begin" and "record goto end".
5715 Add an alias for "record goto start" to "record goto begin".
5716
e93ba630
JK
57172013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5718
5719 * linespec.c (convert_linespec_to_sals): New comment for
5720 SOURCE_FILENAME assignment.
5721
5821aace
JK
57222013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5725 internal_warning.
5726
a1b8c4cc
TT
57272013-05-14 Tom Tromey <tromey@redhat.com>
5728
5729 * eval.c (parse_and_eval_long): Make 'exp' const.
5730 * value.h (parse_and_eval_long): Update.
5731
23b3a2c3
TT
57322013-05-14 Tom Tromey <tromey@redhat.com>
5733
5734 * ui-file.c (gdb_fopen): Make arguments const.
5735 * ui-file.h (gdb_fopen): Make arguments const.
5736
ca623f82
TT
57372013-05-14 Tom Tromey <tromey@redhat.com>
5738
5739 * remote.c (remote_set_trace_notes): Make arguments const.
5740 * target.c (update_current_target): Update cast.
5741 * target.h (to_set_trace_notes): Make arguments const.
5742
503ebb2c
TT
57432013-05-14 Tom Tromey <tromey@redhat.com>
5744
5745 * go32-nat.c (go32_terminal_info): Make 'args' const.
5746 * inferior.h (child_terminal_info): Update.
5747 * inflow.c (child_terminal_info): Make 'args' const.
5748 * target.c (default_terminal_info): Make 'args' const.
5749 (debug_to_terminal_save_ours): Likewise.
5750 * target.h (struct target_ops) <to_terminal_info>: Make argument
5751 const.
5752
85e1311a
TT
57532013-05-13 Tom Tromey <tromey@redhat.com>
5754
5755 * gcore.c (create_gcore_bfd): Make 'filename' const.
5756 * gcore.h (create_gcore_bfd): Make 'filename' const.
5757 * record-full.c (record_full_save): Make 'recfilename' const.
5758 * target.c (target_save_record): Make 'filename' const.
5759 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5760 const.
5761 (target_save_record): Likewise.
5762
d62bfeaf
TT
57632013-05-13 Tom Tromey <tromey@redhat.com>
5764
f5aee5ee 5765 PR gdb/15338:
d62bfeaf
TT
5766 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5767 ranges section has been read.
5768
ac1ca910
TT
57692013-05-13 Tom Tromey <tromey@redhat.com>
5770
5771 PR exp/15364:
5772 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5773 STRUCTOP_PTR>: Return a not_lval value for
5774 EVAL_AVOID_SIDE_EFFECTS.
5775 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5776 for EVAL_AVOID_SIDE_EFFECTS.
5777
36d1c68c
JB
57782013-05-13 Joel Brobecker <brobecker@adacore.com>
5779
5780 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5781 floating point registers to register type before storing
5782 value.
5783 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5784 Likewise.
5785
21ff4686
TT
57862013-05-10 Joel Brobecker <brobecker@adacore.com>
5787 Tom Tromey <tromey@redhat.com>
5788
5789 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5790 New functions.
5791 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5792 Declare.
5793 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5794 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5795 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5796 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5797
d3685d60
TT
57982013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5799 Tom Tromey <tromey@redhat.com>
5800
5801 PR build/15414:
5802 * configure: Rebuild.
5803 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5804 with -Wno-format.
5805
eb9fe518
PA
58062013-05-10 Pedro Alves <palves@redhat.com>
5807
5808 * remote.c (_initialize_remote): Fix spelling of
5809 qXfer:traceframe-info:read packet in packet config command.
5810
9779ab84
PA
58112013-05-10 David Taylor <dtaylor@emc.com>
5812
5813 PR remote/15455
5814
5815 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5816 "QTro" at start of packet.
5817
060cfbef
JB
58182013-05-10 Joel Brobecker <brobecker@adacore.com>
5819
5820 * solib-aix.c (solib_aix_relocate_section_addresses):
5821 For the .bss section action, apply the same offset as
5822 the .data section.
5823
ab1c4e88
JB
58242013-05-10 Joel Brobecker <brobecker@adacore.com>
5825
5826 * solib-aix.c (solib_aix_relocate_section_addresses):
5827 Remove FIXME comment.
5828
c1357578
JB
58292013-05-10 Joel Brobecker <brobecker@adacore.com>
5830
5831 PR tdep/15420:
5832 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5833 New functions, directly copied from sparc-sol-thread.c.
5834 * sparc-sol-thread.c: Delete.
5835 * configure.ac: Remove code handling sparc-solaris-thread.c.
5836 * configure: Regenerate.
5837
1e611234
PM
58382013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5839
5840 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5841 filter logic.
5842 (backtrace_command): Add "no-filters" option parsing.
5843 (_initialize_stack): Alter help to reflect "no-filters" option.
5844 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5845 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5846 (py-frame.o): Add target
5847 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5848 filter files.
5849 * python/python.h: Add new frame filter constants, and flag enum.
5850 (apply_frame_filter): Add definition.
5851 * python/python.c (apply_frame_filter): New non-Python
5852 enabled function.
5853 * python/py-utils.c (py_xdecref): New function.
5854 (make_cleanup_py_xdecref): Ditto.
5855 * python/py-objfile.c: Declare frame_filters dictionary.
5856 (objfpy_dealloc): Add frame_filters dealloc.
5857 (objfpy_new): Initialize frame_filters attribute.
5858 (objfile_to_objfile_object): Ditto.
5859 (objfpy_get_frame_filters): New function.
5860 (objfpy_set_frame_filters): New function.
5861 * python/py-progspace.c: Declare frame_filters dictionary.
5862 (pspy_dealloc): Add frame_filters dealloc.
5863 (pspy_new): Initialize frame_filters attribute.
5864 (pspacee_to_pspace_object): Ditto.
5865 (pspy_get_frame_filters): New function.
5866 (pspy_set_frame_filters): New function.
5867 * python/py-framefilter.c: New file.
5868 * python/lib/gdb/command/frame_filters.py: New file.
5869 * python/lib/gdb/frames.py: New file.
5870 * python/lib/gdb/__init__.py: Initialize global frame_filters
5871 dictionary
5872 * python/lib/gdb/FrameDecorator.py: New file.
5873 * python/lib/gdb/FrameIterator.py: New file.
5874 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5875 * mi/mi-cmds.h: Declare.
5876 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5877 --no-frame-filter logic, and Python frame filter logic.
5878 (stack_enable_frame_filters): New function.
5879 (parse_no_frame_option): Ditto.
5880 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5881 filter logic.
5882 (mi_cmd_stack_list_locals): Ditto.
5883 (mi_cmd_stack_list_args): Ditto.
5884 (mi_cmd_stack_list_variables): Ditto.
5885 * NEWS: Add frame filter note.
5886
2cb9c859
DE
58872013-05-09 Doug Evans <dje@google.com>
5888
6bf667bb
DE
5889 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5890 All callers updated.
5891 (syms_from_objfile): Ditto. Make static.
5892 (symbol_file_add_with_addrs): Renamed from
5893 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5894 num_offsets. All callers updated.
5895 * symfile.h (syms_from_objfile): Delete.
5896
2cb9c859
DE
5897 * symfile.c (decrement_reading_symtab): Add assert.
5898 (increment_reading_symtab): Ditto.
5899
40aea477
JB
59002013-05-09 Joel Brobecker <brobecker@adacore.com>
5901
5902 * source.c (forward_search_command): Replace call to getc
5903 by call to fgetc.
5904 (reverse_search_command): Likewise.
5905
680d1742
DE
59062013-05-08 Doug Evans <dje@google.com>
5907
5908 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5909 matching test.
5910
17e760ae
JB
59112013-05-08 Joel Brobecker <brobecker@adacore.com>
5912
5913 * sol-thread.c (info_cb): Factorize the code a little.
5914
c0f5f490
JB
59152013-05-08 Joel Brobecker <brobecker@adacore.com>
5916
5917 * sol-thread.c (info_cb): Rework the output of the "maintenance
5918 info sol-threads" command a bit.
5919
5d74e061
JB
59202013-05-08 Joel Brobecker <brobecker@adacore.com>
5921
5922 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5923 Replace ti.ti_startfunc by ti.ti_pc.
5924
814a3ff7
JB
59252013-05-08 Joel Brobecker <brobecker@adacore.com>
5926
5927 * solib-aix.c (solib_aix_free_library_list): New function
5928 for the case where HAVE_LIBEXPAT is not defined.
5929
58ce7251
SDJ
59302013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5931
5932 PR breakpoints/15413:
5933 * breakpoint.c (condition_completer): Simplify the code to
5934 disconsider multiple locations of breakpoints when completing the
5935 "condition" command.
5936
be8b1ea6
PM
59372013-05-07 Pierre Muller <muller@sourceware.org>
5938
5939 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5940 instead of <sys/wait.h>.
5941
1e52bda6
PM
59422013-05-07 Pierre Muller <muller@sourceware.org>
5943
5944 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5945 trailing new line from warning message.
5946
27fd0c6b
PM
59472013-05-07 Pierre Muller <muller@sourceware.org>
5948
5949 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5950 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5951
e228ac87
JB
59522013-05-07 Joel Brobecker <brobecker@adacore.com>
5953
5954 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5955 error message (ARI fix).
5956
59572013-05-07 Joel Brobecker <brobecker@adacore.com>
5958
5959 * features/library-list-aix.dtd: Replace library-list by
5960 library-list-aix.
5961 * rs6000-nat.c: Replace library-list by library-list-aix
5962 throughout.
5963 * solib-aix.c: Likewise.
5964
59652013-05-07 Joel Brobecker <brobecker@adacore.com>
5966
5967 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5968 Renames TARGET_OBJECT_AIX_LIBRARIES.
5969 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5970 TARGET_OBJECT_LIBRARIES_AIX throughout.
5971 * solib-aix.c: Likwise.
5972
26a4dda9
YQ
59732013-05-07 Yao Qi <yao@codesourcery.com>
5974
5975 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5976 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5977
3582629f
YQ
59782013-05-07 Yao Qi <yao@codesourcery.com>
5979
5980 * solib-dsbt.c (enable_break): Declare.
5981 (dsbt_current_sos): Remove call to enable_break2.
5982 (enable_break2): Rename to enable_break. Set solib breakpoint
5983 on '_dl_debug_state'.
5984 (enable_break): Remove.
5985
aacbb8a5
LM
59862013-05-07 Luis Machado <lgustavo@codesourcery.com>
5987
5988 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5989 debug state prior to replicating existing hardware watchpoints or
5990 breakpoints.
5991
0c013353
JK
59922013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5993
5994 * gcore.c (gcore_create_callback): Ignore sections with
5995 separate_debug_objfile_backlink != NULL.
5996
a1217d97
SL
59972013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5998 Andrew Jenner <andrew@codesourcery.com>
5999 Chung-Lin Tang <cltang@codesourcery.com>
6000 Julian Brown <julian@codesourcery.com>
6001
6002 Based on the nios2-elf port from Altera Corporation.
6003
6004 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6005 nios2-linux-tdep.o.
6006 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6007 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6008 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6009 * nios2-tdep.h: New.
6010 * nios2-tdep.c: New.
6011 * nios2-linux-tdep.c: New.
6012 * features/Makefile (WHICH): Add nios2-linux.
6013 (nios2-linux-expedite): Set.
6014 * features/nios2-cpu.xml: New.
6015 * features/nios2.xml: New.
6016 * features/nios2-linux.xml: New.
6017 * features/nios2.c: New (autogenerated).
6018 * features/nios2-linux.c: New (autogenerated).
6019 * regformats/nios2-linux.dat: New (autogenerated).
6020 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6021 and commands.
6022
0892cb63
DE
60232013-05-06 Doug Evans <dje@google.com>
6024
3b7bacac
DE
6025 * symfile.c: Whitespace cleanup.
6026
0892cb63
DE
6027 * solist.h (struct target_so_ops): New member clear_so.
6028 * solib-svr4.c (svr4_clear_so): New function.
6029 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6030 * solib.c (clear_so): Renamed from free_so_symbols.
6031 All callers updated. Call target clear_so if it exists.
6032
40501e00
TT
60332013-05-06 Tom Tromey <tromey@redhat.com>
6034
6035 * ada-lang.c (ada_value_primitive_packed_val): Don't
6036 call value_incref.
6037 * value.c (set_value_parent): Incref the new parent and decref
6038 the old parent.
6039 (value_copy, value_primitive_field): Use set_value_parent.
6040
b6807d98
TT
60412013-05-06 Tom Tromey <tromey@redhat.com>
6042
6043 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6044 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6045 if needed.
6046 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6047 * dwarf2read.c (write_constant_as_bytes)
6048 (dwarf2_fetch_constant_bytes): New functions.
6049
3aef2284
TT
60502013-05-06 Tom Tromey <tromey@redhat.com>
6051
6052 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6053 parameters.
6054 (dwarf2_const_value_attr): Update.
6055
66f65e2b
TT
60562013-05-06 Tom Tromey <tromey@redhat.com>
6057
6058 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6059 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6060 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6061 Remove declaration.
6062
7919a973
TT
60632013-05-06 Tom Tromey <tromey@redhat.com>
6064
6065 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6066 objfile's obstack.
6067
a7bfba49
DE
60682013-05-06 Doug Evans <dje@google.com>
6069
3189cb12
DE
6070 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6071 * stabsread.h (process_one_symbol): Update declaration.
6072 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6073 * elfread.c (elf_symfile_relocate_probe): Ditto.
6074 * psymtab.c (relocate_psymtabs): Ditto.
6075 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6076 (objfile_relocate): Ditto.
6077 * objfiles.h (objfile_relocate): Update declaration.
6078 * symfile.c (relative_addr_info_to_section_offsets): Constify
6079 addrs parameter.
6080 (default_symfile_offsets): Ditto.
6081 (syms_from_objfile_1): Constify offsets parameter.
6082 (syms_from_objfile): Ditto.
6083 (symbol_file_add_with_addrs_or_offsets): Ditto.
6084 (symfile_map_offsets_to_segments): Constify data parameter.
6085 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6086 delta parameters of member relocate.
6087 (struct sym_probe_fns): Constify new_offsets,
6088 delta parameters of member sym_relocate_probe.
6089 (struct sym_fns): Constify section_addr_info parameter of member
6090 sym_offsets.
6091 (relative_addr_info_to_section_offsets): Update declaration.
6092 (default_symfile_offsets): Ditto.
6093 (syms_from_objfile): Ditto.
6094 (symfile_map_offsets_to_segments): Ditto.
6095
a7bfba49
DE
6096 * symfile.c (syms_from_objfile_1): Use correct section count when
6097 objfile->sf == NULL.
6098
5f8e0b8f
MF
60992013-05-06 Mike Frysinger <vapier@gentoo.org>
6100
6101 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6102
ea52d893
DE
61032013-05-06 Doug Evans <dje@google.com>
6104
6105 * psympriv.h (struct partial_symtab): Augment comment for member
6106 section_offsets.
6107
4d1eb6b4
JB
61082013-05-06 Joel Brobecker <brobecker@adacore.com>
6109
6110 Reimplement shared library support on ppc-aix...
6111 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6112 * features/library-list-aix.dtd: New file.
6113 * solib-aix.h, solib-aix.c: New file.
6114 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6115 (rs6000_find_toc_address_hook): Delete.
6116 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6117 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6118 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6119 "xml-utils.h".
6120 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6121 (vmap_symtab, fixup_breakpoints): Delete.
6122 (rs6000_xfer_shared_libraries): New function.
6123 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6124 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6125 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6126 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6127 (rs6000_xfer_shared_library): New function.
6128 (find_toc_address): Delete.
6129 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6130 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6131 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6132 before creating minimal symbol. Adjust function description
6133 accordingly.
6134 (scan_xcoff_symtab): Replace call to
6135 prim_record_minimal_symbol_and_info by call to
6136 record_minimal_symbol.
6137 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6138 around default_symfile_offsets.
6139 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6140 powerpc-aix targets.
6141 * config/rs6000/nm-rs6000.h: Delete.
6142 * config/powerpc/aix.mh (NAT_FILE): Delete.
6143 (NATDEPFILES): Remove xcoffsolib.o.
6144 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6145 (ALL_TARGET_OBS): Add solib-aix.o.
6146 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6147 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6148 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6149 * xcoffsolib.h, xcoffsolib.c: Delete.
6150
6151 * solib.c (reload_shared_libraries): Remove reference to
6152 SOLIB_CREATE_INFERIOR_HOOK.
6153 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6154 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6155 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6156 comment.
6157 * corelow.c (deprecated_core_resize_section_table): Delete.
6158 * exec.c: Remove include of xcoffsolib.h".
6159 (map_vmap, vmap): Delete.
6160 (exec_close_1): Remove references to vmap.
6161 (exec_file_attach): Remove vmap handling code, and reference
6162 to DEPRECATED_IBM6000_TARGET.
6163 (bfdsec_to_vmap): Delete.
6164 (exec_files_info): Remove block of code handling VMAP.
6165 * infcmd.c (post_create_inferior): Remove reference to
6166 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6167 * infrun.c (follow_exec): Remove reference to
6168 SOLIB_CREATE_INFERIOR_HOOK.
6169 * stack.c (print_frame): Remove reference to PC_SOLIB.
6170 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6171 (dsbt_relocate_main_executable): Likewise.
6172 * solib-frv.c (frv_current_sos): Likewise.
6173
0c4f667c
JB
61742013-05-06 Joel Brobecker <brobecker@adacore.com>
6175
6176 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6177 to target_write_memory and target_read_memory.
6178
726ce67c
JB
61792013-05-06 Joel Brobecker <brobecker@adacore.com>
6180
6181 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6182 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6183
c8c9911f
JB
61842013-05-06 Joel Brobecker <brobecker@adacore.com>
6185
6186 * darwin-nat.c: Replace all "%x" instances in format strings
6187 into "0x%x" throughout.
6188
fda184b6
JB
61892013-05-06 Joel Brobecker <brobecker@adacore.com>
6190
6191 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6192 gdb_assert by call to MACH_CHECK_ERROR.
6193 (darwin_attach_pid): Raise an error rather than a failed
6194 assertion when various system calls failed. Report a warning
6195 instead of raising a failed assertion when PREV_NOT is not NULL
6196 after call to mach_port_request_notification.
6197 (darwin_ptrace_me): Raise an error rather than a failed
6198 assertion when read returns nonzero.
6199
d1d69afb
JB
62002013-05-06 Joel Brobecker <brobecker@adacore.com>
6201
6202 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6203
dc90b24d
JK
62042013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6205
6206 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6207
faab9922
JK
62082013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6209
6210 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6211 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6212 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6213 a stale cleanup. Fix double free of NAME.
6214
e0ea48a0
EZ
62152013-05-04 Eli Zaretskii <eliz@gnu.org>
6216
6217 * windows-nat.c (windows_delete_thread): Accept an additional
6218 argument, the thread's exit code, and announce thread death when
6219 print_thread_events is non-zero and we are deleting a thread that
6220 is not the main thread.
6221 (get_windows_debug_event): Pass thread exit code to
6222 windows_delete_thread.
6223
83b2706a
KB
62242013-05-03 Kevin Buettner <kevinb@redhat.com>
6225
6226 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6227 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6228 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6229 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6230 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6231 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6232 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6233 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6234 (gdbarch_tdep): New struct.
6235 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6236 E_NUM_REGS.
6237 (v850e3v5_register_name): New function.
6238 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6239 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6240 code handling the struct return conventions for the RH850 ABI.
6241 Update all callers.
6242 (v850_eight_byte_align_p): New function.
6243 (v850_push_call_dummy): Push structs by value, not by reference
6244 for the RH850 ABI. Add support for eight byte alignment.
6245 (v850_dbtrap_breakpoint_from_pc): New function.
6246 (v850_gdbarch_init): Add ABI detection code. Register
6247 v850e3v5_register_name for the v850e3v5 architecture. Set the
6248 number of registers for v850e3v5. Register
6249 v850_dbtrap_breakpoint_from_pc as appropriate.
6250 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6251
d445b2f6
DE
62522013-05-03 Doug Evans <dje@google.com>
6253
6254 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6255 of bfd_count_sections.
6256 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6257 * symfile.c (default_symfile_offsets): Ditto.
6258 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6259 one entry, not bfd_count_sections entries.
6260
b3ce41ea
KB
62612013-05-03 Kevin Buettner <kevinb@redhat.com>
6262
6263 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6264 `save' and `restore' register groups. Don't include SPL
6265 or SPH in these groups.
6266 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6267 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6268 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6269 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6270 dwarf2_append_unwinders().
6271
96f7d3f1
PW
62722013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6273
6274 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6275 ignore SIGINT and SIGTRAP in case these internal signals are
6276 caught explicitely.
6277
b9dd1947
JB
62782013-05-01 Joel Brobecker <brobecker@adacore.com>
6279
6280 * darwin-nat.c (darwin_read_write_inferior): Change types
6281 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6282 of copy_count to "mach_msg_type_number_t".
6283 (darwin_read_dyld_info): Change type of parameter
6284 rdaddr to "gdb_byte *".
6285
4ca18a63
JB
62862013-05-01 Joel Brobecker <brobecker@adacore.com>
6287
6288 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6289 of &info->load_map from "char *" to "gdb_byte *".
6290
2b692d32
JB
62912013-05-01 Joel Brobecker <brobecker@adacore.com>
6292
6293 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6294 from "char *" to "gdb_byte *".
6295 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6296
a98c29a0
DE
62972013-04-30 Doug Evans <dje@google.com>
6298
6a506a2d
DE
6299 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6300 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6301 DWO stub. If DWO isn't found, just use stub.
6302 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6303
a98c29a0
DE
6304 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6305 calling init_cutu_and_read_dies.
6306
f92b06da
WT
63072013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6308
6309 * target-descriptions.c (maint_print_c_tdesc_cmd):
6310 Add case to parse structures as register types and
6311 bitfields.
6312
95eebdcc
WT
63132013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6314
6315 * MAINTAINERS (Write After Approval): Add myself to the list.
6316
019c1128
JB
63172013-04-30 Joel Brobecker <brobecker@adacore.com>
6318
6319 * sol-thread.c (rw_common): Change type of parameter "buf"
6320 to "gdb_byte *".
6321 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6322 rw_common to "gdb_byte *" instead of "char *".
6323
5812197c
JB
63242013-04-30 Joel Brobecker <brobecker@adacore.com>
6325
6326 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6327 of local variable msym to const struct bound_minimal_symbol.
6328 Adjust use accordingly.
6329 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6330
ecccb813
TS
63312013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6332
6333 * i386gnu-nat.c (CREG_OFFSET): New macro.
6334 (creg_offset): New array.
6335 (CREG_ADDR): Use creg_offset instead of reg_offset.
6336
f1d02dd4 63372013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6338
6339 * mep-tdep.c (mep_write_pc): Delete.
6340 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6341 Add call to set_gdbarch_pc_regnum.
6342
f1d02dd4 63432013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6344
6345 * common/filestuff.c: Replace #include <dirent.h> by
6346 #include "gdb_dirent.h".
6347
f1d02dd4 63482013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6349
6350 * common/filestuff.c: Replace #include <sys/stat.h> by
6351 #include "gdb_stat.h".
6352
b385a60d
PM
63532013-04-29 Pierre Muller <muller@sourceware.org>
6354
6355 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6356 editCase function rule.
6357 (get_DW_AT_signature_type): Likewise.
6358
d27b54ad
JB
63592013-04-29 Joel Brobecker <brobecker@adacore.com>
6360
6361 * m32r-tdep.c (m32r_write_pc): Delete.
6362 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6363 Add call to set_gdbarch_pc_regnum.
6364
47d21dc5
PM
63652013-04-29 Pierre Muller <muller@sourceware.org>
6366
6367 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6368
9056882e
JB
63692013-04-29 Joel Brobecker <brobecker@adacore.com>
6370
6371 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6372
7ee4732a
YQ
63732013-04-28 Yao Qi <yao@codesourcery.com>
6374
6375 * solib-dsbt.c (fetch_loadmap): Re-indent.
6376 (displacement_from_map, enable_break2): Likewise.
6377 (dsbt_relocate_section_addresses): Likewise.
6378
2260af53 63792013-04-26 Joel Brobecker <brobecker@adacore.com>
6380
6381 GDB 7.6 released.
6382
ff546935
TT
63832013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6384
6385 PR corefiles/14983:
6386 * dwarf2read.c (process_full_comp_unit): Always create a static
6387 block.
6388
40fb6c5e
HZ
63892013-04-25 Hui Zhu <hui@codesourcery.com>
6390
6391 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6392 to loc->cmd_bytecode.
6393
74e04d1c
DE
63942013-04-24 Doug Evans <dje@google.com>
6395
6396 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6397
3cf62c1d
KS
63982013-04-22 Keith Seitz <keiths@redhat.com>
6399
6400 * tracepoint.c (trace_save): Call the writer's start method.
6401
bf9e4d0c
MB
64022013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6403
6404 PR gdb/10462
6405 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6406 before argument.
6407
5d71132c
TT
64082013-04-23 Tom Tromey <tromey@redhat.com>
6409
6410 * common/filestuff.c: Check USE_WIN32API before including
6411 sys/socket.h.
6412 (HAVE_F_GETFD): New define.
6413 (mark_cloexec): Check HAVE_F_GETFD.
6414 (gdb_open_cloexec): Change 'mode' to unsigned long.
6415 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6416 (gdb_pipe_cloexec): Check HAVE_PIPE.
6417 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6418 long.
6419
a11cfd87
HZ
64202013-04-23 Hui Zhu <hui@codesourcery.com>
6421
6422 PR gdb/15293
a11cfd87
HZ
6423 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6424
2d9442cc
HZ
64252013-04-23 Hui Zhu <hui@codesourcery.com>
6426
6427 PR gdb/15165
2d9442cc
HZ
6428 * breakpoint.c (dprintf_print_recreate): New.
6429 (save_breakpoints): Let it not save dprintf commands.
6430 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6431
614c279d
TT
64322013-04-22 Tom Tromey <tromey@redhat.com>
6433
6434 PR gdb/7912:
6435 * Makefile.in (SFILES): Add filestuff.c
6436 (COMMON_OBS): Add filestuff.o.
6437 (filestuff.o): New target.
6438 * auto-load.c (auto_load_objfile_script_1): Use
6439 gdb_fopen_cloexec.
6440 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6441 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6442 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6443 * common/agent.c (gdb_connect_sync_socket): Use
6444 gdb_socket_cloexec.
6445 * common/filestuff.c: New file.
6446 * common/filestuff.h: New file.
6447 * common/linux-osdata.c (linux_common_core_of_thread)
6448 (command_from_pid, commandline_from_pid, print_source_lines)
6449 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6450 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6451 gdb_fopen_cloexec.
6452 * common/linux-procfs.c (linux_proc_get_int)
6453 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6454 * config.in, configure: Rebuild.
6455 * configure.ac: Don't check for sys/socket.h. Check for
6456 fdwalk, pipe2.
6457 * corelow.c (core_open): Use gdb_open_cloexec.
6458 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6459 * fork-child.c (fork_inferior): Call close_most_fds.
6460 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6461 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6462 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6463 Use gdb_fopen_cloexec.
6464 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6465 gdb_open_cloexec.
6466 (linux_async_pipe): Use gdb_pipe_cloexec.
6467 * remote-fileio.c (remote_fileio_func_open): Use
6468 gdb_open_cloexec.
6469 * remote.c (remote_file_put, remote_file_get): Use
6470 gdb_fopen_cloexec.
6471 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6472 close_most_fds.
6473 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6474 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6475 * solib.c (solib_find): Use gdb_open_cloexec.
6476 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6477 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6478 (tfile_open): Use gdb_open_cloexec.
6479 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6480 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6481 * xml-support.c (xml_fetch_content_from_file): Use
6482 gdb_fopen_cloexec.
6483 * main.c (captured_main): Call notice_open_fds.
6484
5fda2332
EBM
64852013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6486
6487 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6488 'char *' to 'gdb_byte *'.
6489 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6490 'gdb_byte'.
6491
eb6c553b
YQ
64922013-04-22 Yao Qi <yao@codesourcery.com>
6493
6494 * infrun.c: Fix typo in comment.
6495
9991b207
SDJ
64962013-04-22 Andrew Haley <aph@redhat.com>
6497
6498 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6499 instead of "long".
6500
8b4833e3
YQ
65012013-04-20 Yao Qi <yao@codesourcery.com>
6502
6503 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6504 'char *' to 'gdb_byte *'. Cast the return value of
6505 'bt_ctf_get_char_array' to 'gdb_byte *'.
6506
bd3f3b55
PA
65072013-04-19 Pedro Alves <palves@redhat.com>
6508
6509 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6510 -Wpointer-sign.
6511 * configure: Regenerate.
6512
c49e7f76
PA
65132013-04-19 Pedro Alves <palves@redhat.com>
6514
6515 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6516 'void *'.
6517
12ff8552
PA
65182013-04-19 Pedro Alves <palves@redhat.com>
6519
6520 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6521 Change type of 'myaddr' parameter to gdb_byte pointer.
6522 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6523 to 'long long' pointer instead of to 'unsigned long long'.
6524 (monitor_write_memory_block, monitor_read_memory_single)
6525 (monitor_read_memory): Change type of 'myaddr' parameter to
6526 gdb_byte pointer.
6527
9c37696b
PA
65282013-04-19 Pedro Alves <palves@redhat.com>
6529
6530 * record.c (validate_history_size): Make parameter 'setting'
6531 unsigned.
6532
a398505b
PA
65332013-04-19 Pedro Alves <palves@redhat.com>
6534
6535 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6536 to 'gdb_byte *'.
6537
9f8afa72
PA
65382013-04-19 Pedro Alves <palves@redhat.com>
6539
6540 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6541 local to int.
6542
c714b426
PA
65432013-04-19 Pedro Alves <palves@redhat.com>
6544
6545 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6546 * ada-tasks.c (read_fat_string_value): Likewise.
6547
507a579c
PA
65482013-04-19 Pedro Alves <palves@redhat.com>
6549
6550 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6551 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6552 'offset', and adjust.
6553
f9d83a0b
PA
65542013-04-19 Pedro Alves <palves@redhat.com>
6555
6556 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6557 (read_index_from_section): Add cast to 'char *'.
6558
745eb4fd
PA
65592013-04-19 Pedro Alves <palves@redhat.com>
6560
6561 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6562
db5be46f
PA
65632013-04-19 Pedro Alves <palves@redhat.com>
6564
6565 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6566
0f928d68
PA
65672013-04-19 Pedro Alves <palves@redhat.com>
6568
6569 * record-full.c (record_full_get_bookmark): Change local 'ret'
6570 type to char * and add cast to gdb_byte *.
6571 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6572 string.
6573 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6574
89f6d837
PA
65752013-04-19 Pedro Alves <palves@redhat.com>
6576
6577 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6578 * python/py-prettyprint.c (print_string_repr): Change type of
6579 'output' local to char *. Add cast to gdb_byte * in
6580 LA_PRINT_STRING call.
6581 (print_children): Change type of 'output' local to char *.
6582 * python/py-value.c (valpy_string): Add cast to const char * in
6583 PyUnicode_Decode call.
6584
ce6ec7d8
PA
65852013-04-19 Pedro Alves <palves@redhat.com>
6586
6587 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6588 and change its type to 'const char *'. Adjust.
6589 (mips_send_packet): Add cast to 'char *', and remove cast to
6590 'unsigned char *'.
6591 (mips_receive_packet): Remove cast to 'unsigned char *'.
6592 (mips_load_srec): Use bfd_byte.
6593 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6594 (pmon_checkset): Make 'value' parameter unsigned.
6595
fda0389f
PA
65962013-04-19 Pedro Alves <palves@redhat.com>
6597
6598 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6599
bc20a4af
PA
66002013-04-19 Pedro Alves <palves@redhat.com>
6601
6602 * remote.c (remote_write_bytes_aux, compare_sections_command)
6603 (remote_read_qxfer)
6604 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6605 (remote_hostio_readlink, remote_bfd_iovec_pread)
6606 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6607 binary buffer, and char when buffer is used as string.
6608 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6609 (trace_save, tfile_open, traceframe_walk_blocks)
6610 (tfile_fetch_registers): Likewise.
6611
c628b528
PA
66122013-04-19 Pedro Alves <palves@redhat.com>
6613
6614 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6615 buffer and size_t size. Adjust.
6616 * ser-base.h (ser_base_write): Adjust.
6617 * ser-go32.c (cnts): Change type to size_t.
6618 (dos_write): Change prototype -- take 'void *'
6619 buffer and size_t size. Adjust.
6620 (dos_info): Print elements of 'cnts' as unsigned long.
6621 * serial.c (serial_write): Likewise.
6622 * serial.h (serial_write): Adjust.
6623 (struct serial_ops) <write>: Change prototype -- take 'void *'
6624 buffer and size_t size. Adjust.
6625
51a5cd90
PA
66262013-04-19 Pedro Alves <palves@redhat.com>
6627
6628 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6629 gdb_byte *.
6630 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6631
a9933661
PA
66322013-04-19 Pedro Alves <palves@redhat.com>
6633
6634 * alpha-tdep.c (alpha_extract_return_value): Use
6635 regcache_cooked_read_unsigned to read 'v0'.
6636
19afdd07
PA
66372013-04-19 Pedro Alves <palves@redhat.com>
6638
6639 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6640 parameters 'at', 'as' and 'offset' to uint32_t.
6641
96b32e50
PA
66422013-04-19 Pedro Alves <palves@redhat.com>
6643
6644 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6645 'is64' to signed 'int'.
6646
eb1bd1fb
PA
66472013-04-19 Pedro Alves <palves@redhat.com>
6648
6649 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6650 parameter to int *.
6651
463920bf
PA
66522013-04-19 Pedro Alves <palves@redhat.com>
6653
6654 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6655 'insnbuf' buffer type to unsigned int[].
6656
70242eb1
PA
66572013-04-19 Pedro Alves <palves@redhat.com>
6658
6659 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6660
9d1dd0e2
PA
66612013-04-19 Pedro Alves <palves@redhat.com>
6662
6663 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6664 unsigned long *.
6665
44096aee
PA
66662013-04-19 Pedro Alves <palves@redhat.com>
6667
6668 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6669 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6670 UINT_MAX.
6671 * mips-tdep.c (heuristic_fence_post): Change type to int.
6672 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6673
e4286e57
PA
66742013-04-19 Pedro Alves <palves@redhat.com>
6675
6676 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6677 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6678 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6679
001f13d8
PA
66802013-04-19 Pedro Alves <palves@redhat.com>
6681
6682 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6683 it to get a string view of the byte buffer.
6684 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6685 type to gdb_byte *. Adjust.
6686 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6687 Change local to char *.
6688 * solib-darwin.c (find_program_interpreter): Change return type to
6689 char *. Adjust.
6690 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6691 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6692 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6693 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6694 * solib-svr4.c (find_program_interpreter): Change return type to
6695 char *. Adjust.
6696 (enable_break): Change local 'interp_name' to char *.
6697 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6698 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6699 (spu_pseudo_register_write_spu): Use char for string buffer.
6700 Adjust.
6701 (info_spu_event_command, info_spu_signal_command): Add casts to
6702 'char *'.
6703
948f8e3d
PA
67042013-04-19 Pedro Alves <palves@redhat.com>
6705
6706 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6707 gdb_byte[].
6708 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6709 * ada-lang.c (ada_value_assign): Use gdb_byte.
6710 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6711 (alphanbsd_sigtramp_offset): Use gdb_byte.
6712 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6713 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6714 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6715 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6716 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6717 * arm-tdep.c (arm_stub_unwind_sniffer)
6718 (arm_displaced_init_closure): Use gdb_byte.
6719 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6720 (arm_default_thumb_le_breakpoint)
6721 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6722 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6723 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6724 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6725 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6726 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6727 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6728 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6729 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6730 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6731 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6732 (cris_store_return_value, cris_extract_return_value): Use
6733 gdb_byte.
6734 (constraint): Change type of parameter to char * from signed
6735 char*. Use gdb_byte.
6736 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6737 of local buffer to gdb_byte *.
6738 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6739 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6740 (add_address_entry): Change type of local buffer to gdb_byte[].
6741 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6742 (frv_push_dummy_call): Use gdb_byte.
6743 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6744 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6745 (hppa_hpux_supply_save_state): Use gdb_byte.
6746 * hppa-tdep.c (hppa32_push_dummy_call)
6747 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6748 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6749 (slotN_contents, replace_slotN_contents): Change type of parameter
6750 to gdb_byte *.
6751 (fetch_instruction, ia64_pseudo_register_write)
6752 (ia64_register_to_value, ia64_value_to_register)
6753 (ia64_extract_return_value, ia64_store_return_value)
6754 (ia64_push_dummy_call): Use gdb_byte.
6755 * m32c-tdep.c (m32c_return_value): Remove cast.
6756 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6757 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6758 gdb_byte.
6759 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6760 * mn10300-tdep.c (mn10300_store_return_value)
6761 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6762 gdb_byte.
6763 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6764 (moxie_process_record): Remove casts.
6765 * ppc-ravenscar-thread.c (supply_register_at_address)
6766 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6767 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6768 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6769 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6770 * remote.c (compare_sections_command): Use gdb_byte.
6771 * score-tdep.c (score7_free_memblock): Change type of parameter to
6772 gdb_byte *.
6773 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6774 gdb_byte *. Use gdb_byte.
6775 (sh_push_dummy_call_fpu): Use gdb_byte.
6776 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6777 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6778 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6779 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6780 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6781 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6782 (sh64_store_return_value, sh64_register_convert_to_virtual):
6783 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6784 (sh64_pseudo_register_write): Use gdb_byte.
6785 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6786 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6787 buffer.
6788 (irix_current_sos): Use gdb_byte.
6789 * solib-som.c (som_current_sos): Use gdb_byte.
6790 * sparc-ravenscar-thread.c (supply_register_at_address)
6791 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6792 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6793 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6794 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6795 'gdb_byte *'.
6796 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6797 'gdb_byte *'.
6798 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6799 * xstormy16-tdep.c (xstormy16_extract_return_value)
6800 (xstormy16_store_return_value): Change parameter type to
6801 'gdb_byte *'. Adjust.
6802 (xstormy16_push_dummy_call): Use gdb_byte.
6803 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6804 (call0_analyze_prologue, execute_code): Use gdb_byte.
6805
433730c9
PA
68062013-04-19 Vladimir Kargov <kargov@gmail.com>
6807 Pedro Alves <palves@redhat.com>
6808
6809 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6810 value contents.
6811
ac9ec31b
DE
68122013-04-17 Doug Evans <dje@google.com>
6813
6814 * dwarf2read.c (struct signatured_type): New member type.
6815 (struct attribute): Replace member signatured_type with signature.
6816 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6817 (read_call_site_scope): Call follow_die_ref instead of
6818 follow_die_ref_or_sig.
6819 (read_structure_type): Rewrite handling of signatured types.
6820 (read_enumeration_type): Ditto.
6821 (read_attribute_value): Update.
6822 (build_error_marker_type): New function.
6823 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6824 Don't call error for bad types, just build an error marker type.
6825 (dump_die_shallow): Update.
6826 (follow_die_sig_1): Renamed from follow_die_sig.
6827 Don't call error for bad types, instead return NULL.
6828 (follow_die_sig): New function.
6829 (get_signatured_type, get_DW_AT_signature_type): New functions.
6830
e546e8bb
YZ
68312013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6832
6833 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6834 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6835 function.
e546e8bb 6836
ab116149
YQ
68372013-04-17 Yao Qi <yao@codesourcery.com>
6838
6839 * top.c (print_gdb_configuration): Print configure-time
6840 parameter on using libbabeltrace or not.
6841
488a42b8
PA
68422013-04-16 Pedro Alves <palves@redhat.com>
6843
6844 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6845
f5fb825b
PA
68462013-04-16 Pedro Alves <palves@redhat.com>
6847
85d494ea 6848 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6849 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6850
e1154999
PA
68512013-04-16 Pedro Alves <palves@redhat.com>
6852
6853 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6854 * common/glibc_thread_db.h: ... this new file ...
6855 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6856
e3b50a7f
PA
68572013-04-16 Will Newton <will.newton@gmail.com>
6858 Pedro Alves <palves@redhat.com>
6859
6860 PR build/11881
6861
6862 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6863 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6864 HAVE_THREAD_DB_H.
6865
1c2e4450
PA
68662013-04-16 Pedro Alves <palves@redhat.com>
6867 Eli Zaretskii <eliz@gnu.org>
6868
6869 * NEWS: Mention "set foo unlimited".
6870
4031ecc5
DE
68712013-04-15 Doug Evans <dje@google.com>
6872
19c3d4c9
DE
6873 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6874 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6875 (create_dwo_cu_reader): Renamed from
6876 create_dwo_debug_info_hash_table_reader.
6877 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6878 Remove support for multiple CUs in a DWO file.
6879 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6880
4031ecc5
DE
6881 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6882 instead of phex.
6883 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6884 (create_dwo_in_dwp): Ditto.
6885
b340913d
TT
68862013-04-15 Tom Tromey <tromey@redhat.com>
6887
6888 * NEWS: Move recent entries into "since 7.6" section.
6889
cc16e6c9
TT
68902013-04-15 Tom Tromey <tromey@redhat.com>
6891
6892 PR c++/13588:
6893 * NEWS: Update.
6894 * break-catch-throw.c (struct exception_catchpoint)
6895 <exception_rx, pattern>: New fields.
6896 (fetch_probe_arguments, dtor_exception_catchpoint)
6897 (check_status_exception_catchpoint)
6898 (print_one_detail_exception_catchpoint): New functions.
6899 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6900 Compile regular expression if needed.
6901 (extract_exception_regexp): New function.
6902 (catch_exception_command_1): Use extract_exception_regexp.
6903 (compute_exception): Use fetch_probe_arguments.
6904 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6905 and check_status fields.
6906 * cp-abi.c (cplus_typename_from_type_info): New function.
6907 * cp-abi.h (cplus_typename_from_type_info): Declare.
6908 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6909 * gdb_regex.h (compile_rx_or_error): Declare.
6910 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6911 comment.
6912 (init_gnuv3_ops): Set get_type_from_type_info field.
6913 * probe.c (compile_rx_or_error): Move...
6914 * utils.c (compile_rx_or_error): ... here.
6915
72f1fe8a
TT
69162013-04-15 Tom Tromey <tromey@redhat.com>
6917
6918 PR c++/15176:
6919 * NEWS: Update.
6920 * break-catch-throw.c (compute_exception): New function.
6921 (exception_funcs): New global.
6922 (_initialize_break_catch_throw): Create $_exception.
6923 * cp-abi.c (cplus_type_from_type_info): New function.
6924 * cp-abi.h (cplus_type_from_type_info): Declare.
6925 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6926 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6927 (gnuv3_get_type_from_type_info): New functions.
6928 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6929
fc4746a2
TT
69302013-04-15 Tom Tromey <tromey@redhat.com>
6931
6932 * break-catch-throw.c (struct exception_names): New.
6933 (exception_functions): Change type.
6934 (re_set_exception_catchpoint): Look for SDT probes.
6935
15a73f56
TT
69362013-04-15 Tom Tromey <tromey@redhat.com>
6937
6938 PR c++/10119:
6939 * break-catch-throw.c (exception_functions): New global.
6940 (gnu_v3_exception_catchpoint_ops): Move earlier.
6941 (struct exception_catchpoint): New.
6942 (classify_exception_breakpoint): Rewrite.
6943 (re_set_exception_catchpoint): New function.
6944 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6945 Allocate a struct exception_catchpoint.
6946 (catch_exception_command_1): Update.
6947 (initialize_throw_catchpoint_ops): Set 're_set' method.
6948
916703c0
TT
69492013-04-15 Tom Tromey <tromey@redhat.com>
6950
6951 * Makefile.in (SFILES): Add break-catch-throw.c
6952 (COMMON_OBS): Add break-catch-throw.o.
6953 * break-catch-throw.c: New file.
6954 * breakpoint.c: Move exception-catching code to new file.
6955 (ep_parse_optional_if_clause): No longer static.
6956 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6957
6e72ca20
TT
69582013-04-15 Tom Tromey <tromey@redhat.com>
6959
6960 PR c++/9065:
6961 * NEWS: Update.
6962 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6963 * c-exp.y (TYPEID): New token.
6964 (exp): Add new TYPEID productions.
6965 (ident_tokens): Add "typeid".
6966 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6967 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6968 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6969 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6970 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6971 case.
6972 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6973 (build_std_type_info_type, gnuv3_get_typeid_type)
6974 (gnuv3_get_typeid): New functions.
6975 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6976 new fields on ABI object.
6977 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6978 * std-operator.def (OP_TYPEID): New.
6979
715c6909
TT
69802013-04-15 Tom Tromey <tromey@redhat.com>
6981
6982 * elfread.c (elf_symtab_read): Install versioned symbol under
6983 unversioned name as well.
6984
8de20a37
TT
69852013-04-15 Tom Tromey <tromey@redhat.com>
6986
6987 PR c++/11990:
6988 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6989 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6990 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6991 (gdb_demangle): New function.
6992 * cp-support.h (gdb_demangle): Declare.
6993 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6994 (dwarf2_name): Use gdb_demangle.
6995 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6996 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6997 suffixes from name.
6998 (gnuv3_print_method_ptr): Use gdb_demangle.
6999 * jv-lang.c (java_demangle): Use gdb_demangle.
7000 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7001 * language.c (unk_lang_demangle): Use gdb_demangle.
7002 * symtab.c (symbol_find_demangled_name)
7003 (demangle_for_lookup): Use gdb_demangle.
7004
591f19e8
TT
70052013-04-15 Tom Tromey <tromey@redhat.com>
7006
7007 PR c++/12824:
7008 * NEWS: Update.
7009 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7010 New constant.
7011 (classify_exception_breakpoint): New function.
7012 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7013 (print_mention_exception_catchpoint)
7014 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7015 (catch_exception_command_1): Handle "rethrow" catchpoint.
7016 (catch_rethrow_command): New function.
7017 (_initialize_breakpoint): Add "catch rethrow" command.
7018
4d40cad2
PM
70192013-04-15 Pierre Muller <muller@sourceware.org>
7020
7021 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7022 set_gdbarch_write_pc as deprecated anymore.
7023
30bcb456
JB
70242013-04-15 Joel Brobecker <brobecker@adacore.com>
7025
7026 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7027 declarations.
7028
da9160e4
YQ
70292013-04-13 Yao Qi <yao@codesourcery.com>
7030
7031 * ctf.c (_initialize_ctf): Include "completer.h".
7032 Call add_target_with_completer instead of add_target.
7033
39ed5604
JK
70342013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 Fix GDB regression related to PR binutils/14813.
7037 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7038 * minidebug.c (lzma_close): Add return value comment.
7039 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7040 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7041 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7042
70432013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7044
7045 * config.in: Regenerate.
7046
d521ce57
TT
70472013-04-12 Tom Tromey <tromey@redhat.com>
7048
7049 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7050 const.
7051 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7052 (struct die_reader_specs) <buffer>: Likewise.
7053 (die_reader_func_ftype): Make 'info_ptr' const.
7054 (struct line_header) <include_dirs, statement_program_start,
7055 statement_program_end>: Now const.
7056 (struct file_entry) <name>: Likewise.
7057 (struct partial_die_info) <sibling>: Likewise.
7058 (struct dwarf_block) <data>: Likewise.
7059 (dwarf2_read_section): Remove cast.
7060 (dwarf2_get_section_info): Make 'bufp' const.
7061 (read_index_from_section): Constify.
7062 (dw2_get_file_names_reader): Make 'info_ptr' const.
7063 (dw2_get_primary_filename_reader): Likewise.
7064 (read_comp_unit_head): Make 'info_ptr' and return type const.
7065 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7066 Likewise.
7067 (read_abbrev_offset): Constify.
7068 (dwarf2_create_include_psymtab): Make 'name' const.
7069 (create_debug_types_hash_table): Update.
7070 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7071 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7072 Constify.
7073 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7074 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7075 (read_comp_units_from_section): Constify.
7076 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7077 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7078 const.
7079 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7080 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7081 (create_dwp_hash_table, dwarf2_ranges_read)
7082 (dwarf2_record_block_ranges): Constify.
7083 (read_die_and_children, read_die_and_siblings_1)
7084 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7085 const.
7086 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7087 (abbrev_table_read_table): Constify.
7088 (load_partial_dies): Make 'info_ptr' const.
7089 (read_partial_die, read_attribute_value, read_attribute): Make
7090 'info_ptr' and return type const.
7091 (read_address, read_initial_length)
7092 (read_checked_initial_length_and_offset, read_offset)
7093 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7094 const.
7095 (read_direct_string): Make 'buf' and return type const.
7096 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7097 (read_indirect_string): Make return type const.
7098 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7099 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7100 'info_ptr' const.
7101 (read_str_index): Make return type const.
7102 (add_include_dir): Make 'include_dir' const.
7103 (add_file_name): Make 'name' const.
7104 (dwarf_decode_line_header): Constify.
7105 (psymtab_include_file_name): Make return type const.
7106 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7107 (dwarf2_start_subfile): Make 'filename' const.
7108 (dwarf2_const_value_attr): Make 'bytes' const.
7109 (read_signatured_type_reader): Make 'info_ptr' const.
7110 (decode_locdesc): Constify.
7111 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7112 const.
7113 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7114 'mac_end', and return type const.
7115 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7116 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7117 type const.
7118 (per_cu_header_read_in): Constify.
7119 * symfile.h (dwarf2_get_section_info): Update.
7120
d47a1bc1
TT
71212013-04-12 Tom Tromey <tromey@redhat.com>
7122
7123 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7124
6eaaf48b
EZ
71252013-04-12 Eli Zaretskii <eliz@gnu.org>
7126
fc4c25bf 7127 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7128 * top.c (print_gdb_configuration): New function, displays the
7129 details about GDB configure-time parameters.
7130 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7131 * cli/cli-cmds.c (show_configuration): New function.
7132 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7133 * main.c (captured_main) <print_configuration>: New static var.
7134 <long_options>: Use it.
7135 If --configuration was given, call print_gdb_configuration.
7136
b292c783
JK
71372013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 Pedro Alves <palves@redhat.com>
7139
7140 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7141 (generated_files): Add gcore.
7142 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7143 HAVE_NATIVE_GCORE_HOST.
7144 (gcore): New.
7145 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7146 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7147 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7148 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7149 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7150 Add HAVE_NATIVE_GCORE_HOST.
7151 * configure: Regenerate.
7152 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7153 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7154 AC_CONFIG_FILES for gcore.
7155 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7156 gdb_have_gcore.
7157 * gdb_gcore.sh: Rename to ...
7158 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7159 and GCORE_TRANSFORM_NAME substitutions.
7160
c96b3c4f
JK
7161 Fix parsing tabs in ${gdb_target_obs}.
7162 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7163
d6cb50a2
JK
71642013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7165
7166 * remote.c (unpush_and_perror): Add output message final dot.
7167
cf2cb5ec
YQ
71682013-04-11 Yao Qi <yao@codesourcery.com>
7169
7170 * tracepoint.c (tfile_interp_line): Fit parameters line and
7171 utpp in one line.
7172
07293be4
JB
71732013-04-10 Joel Brobecker <brobecker@adacore.com>
7174
7175 * solib.c (solib_map_sections): Remove code overwriting
7176 SO->SO_NAME with the bfd's filename.
7177
f81d1120
PA
71782013-04-10 Pedro Alves <palves@redhat.com>
7179
7180 * cli/cli-decode.c (integer_unlimited_completer): New function.
7181 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7182 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7183 completer.
7184 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7185 (is_unlimited_literal): New function.
7186 (do_set_command): Handle literal "unlimited" arguments.
7187 * frame.c (_initialize_frame) <set backtrace limit>: Document
7188 "unlimited".
7189 * printcmd.c (_initialize_printcmd) <set print
7190 max-symbolic-offset>: Add help text.
7191 * record-full.c (_initialize_record_full) <set record full
7192 insn-number-max>: Likewise.
7193 * record.c (_initialize_record) <set record
7194 instruction-history-size, set record function-call-history-size>:
7195 Add help text.
7196 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7197 help text.
7198 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7199 Likewise.
7200 * source.c (_initialize_source) <set listsize>: Add help text.
7201 * utils.c (initialize_utils) <set height, set width>: Likewise.
7202 <set pagination>: Mention "set height unlimited".
7203 * valprint.c (_initialize_valprint) <set print elements, set print
7204 repeats>: Document "unlimited".
7205
2f9d54cf
PA
72062013-04-10 Pedro Alves <palves@redhat.com>
7207
7208 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7209 instead of disconnect_tracing.
7210 * infcmd.c (detach_command, disconnect_command): Call
7211 query_if_trace_running. Adjust.
7212 * top.c: Include "tracepoint.h".
7213 (quit_target): Delete. Contents moved ...
7214 (quit_force): ... here. Wrap each stage of teardown in
7215 TRY_CATCH. Call disconnect_tracing before detaching.
7216
393fd4c3
YQ
72172013-04-10 Hui Zhu <hui@codesourcery.com>
7218 Yao Qi <yao@codesourcery.com>
7219
7220 * configure.ac: Check libbabeltrace is installed.
7221 * config.in: Regenerate.
7222 * configure: Regenerate.
7223 * Makefile.in (LIBBABELTRACE): New.
7224 (CLIBS): Add LIBBABELTRACE.
7225 * ctf.c: Include "exec.h".
7226 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7227 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7228 (ctf_save_metadata_header): Define new type aliases in
7229 metadata.
7230 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7231 in metadata. Start a new faked packet for trace status.
7232 (ctf_write_status): Write trace status to CTF.
7233 (ctf_write_uploaded_tsv): Write TSV to CTF.
7234 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7235 (ctf_write_definition_end): End the faked packet.
7236
7237 (ctx, ctf_iter, trace_dirname): New.
7238 (start_pos): New variable.
7239 (ctf_destroy, ctf_open_dir, ctf_open): New.
7240 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7241 macros.
7242 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7243 (ctf_fetch_registers, ctf_xfer_partial): New.
7244 (ctf_get_trace_state_variable_value): New.
7245 (ctf_get_tpnum_from_frame_event): New.
7246 (ctf_get_traceframe_address): New.
7247 (ctf_trace_find, ctf_has_stack): New.
7248 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7249 (ctf_get_trace_status, ctf_read_status): New.
7250 (_initialize_ctf): New.
7251 * tracepoint.c (get_tracepoint_number): New
7252 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7253 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7254 * tracepoint.h: ... here.
7255 (get_tracepoint_number): Declare it.
7256 (get_uploaded_tsv): Declare it.
7257
7258 * NEWS: Mention new configure option.
7259
5c2b4418
HZ
72602013-04-10 Pedro Alves <palves@redhat.com>
7261 Hui Zhu <hui@codesourcery.com>
7262
7263 * breakpoint.c (dprintf_re_set): New.
7264 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7265 to dprintf_re_set.
7266
a5c66735
JB
72672013-04-09 Joel Brobecker <brobecker@adacore.com>
7268
7269 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7270 Remove solib-svr4.o from the list.
7271
9e77999c
JB
72722013-04-09 Joel Brobecker <brobecker@adacore.com>
7273
7274 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7275 Use gdb_assert_not_reached instead of invalid boolean expression.
7276
1927e618
PA
72772013-04-09 Pedro Alves <palves@redhat.com>
7278
7279 * remote.c (unpush_and_perror): New function.
7280 (readchar, remote_serial_write): Use it.
7281
10782d74
MM
72822013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7283
7284 * NEWS: Mention new btrace RSP packets.
7285
4c8429ef
TT
72862013-04-08 Tom Tromey <tromey@redhat.com>
7287
7288 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7289 long.
7290
8625fc1b
TT
72912013-04-08 Tom Tromey <tromey@redhat.com>
7292
7293 * maint.c (print_bfd_section_info): Print the section index.
7294 * symmisc.c (dump_msymbols): Print the section index.
7295
e27d198c
TT
72962013-04-08 Tom Tromey <tromey@redhat.com>
7297
7298 PR symtab/8424:
7299 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7300 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7301 * breakpoint.c (resolve_sal_pc): Update.
7302 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7303 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7304 (minsym_lookup_iterator_cb): Use it.
7305 (default_read_var_value): Update.
7306 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7307 Update.
7308 * infcmd.c (jump_command): Update.
7309 * linespec.c (minsym_found): Update.
7310 * maint.c (maintenance_translate_address): Update.
7311 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7312 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7313 * parse.c (write_exp_msymbol): Update.
7314 * printcmd.c (address_info): Update.
7315 * psymtab.c (find_pc_sect_psymbol): Update.
7316 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7317 SYMBOL_OBJ_SECTION.
7318 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7319 Don't initialize SYMBOL_OBJ_SECTION.
7320 * spu-tdep.c (spu_catch_start): Update.
7321 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7322 * symmisc.c (dump_msymbols, print_symbol): Update.
7323 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7324 how fallback section is computed.
7325 (fixup_symbol_section): Update.
7326 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7327 Update.
7328 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7329 Initialize SYMBOL_SECTION.
7330 * symtab.h (struct general_symbol_info) <section>: Update comment.
7331 <obj_section>: Remove.
7332 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7333 (SYMBOL_OBJFILE): New macro.
7334
e6dc44a8
TT
73352013-04-08 Tom Tromey <tromey@redhat.com>
7336
7337 * coffread.c (record_minimal_symbol): Update.
7338 * dbxread.c (record_minimal_symbol): Update.
7339 * elfread.c (record_minimal_symbol): Update.
7340 * machoread.c (macho_symtab_add_minsym): Update.
7341 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7342 Update.
7343 * minsyms.c (prim_record_minimal_symbol): Update.
7344 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7345 argument.
7346 (prim_record_minimal_symbol_and_info): Likewise.
7347 * minsyms.h (prim_record_minimal_symbol_full)
7348 (prim_record_minimal_symbol_and_info): Update.
7349 * symtab.c (allocate_symbol, initialize_symbol)
7350 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7351 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7352 Update.
7353
36192a8d
TT
73542013-04-08 Tom Tromey <tromey@redhat.com>
7355
7356 PR symtab/8423:
7357 * solib-som.c (som_solib_section_offsets): Use BFD section
7358 indices. Set offsets for all sections.
7359 * somread.c (som_symtab_read): Compute BFD section for
7360 symbol. Use prim_record_minimal_symbol_and_info.
7361 (som_symfile_read): Fix comment.
7362 (struct find_section_offset_arg): New.
7363 (find_section_offset, set_section_index): New functions.
7364 (som_symfile_offsets): Use set_section_index to compute
7365 section indices.
7366
65cf3563
TT
73672013-04-08 Tom Tromey <tromey@redhat.com>
7368
7369 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7370 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7371 gdb_bfd_section_index.
7372 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7373 New functions.
7374 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7375 Declare.
7376 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7377 Update.
7378 * objfiles.c (add_to_objfile_sections_full): New function.
7379 (add_to_objfile_sections): Use it.
7380 (build_section_table): Rewrite.
7381 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7382 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7383 (struct objfile) <sections>: Update comment.
7384 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7385 is NULL.
7386 (ALL_OBJSECTIONS): Use it.
7387 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7388 * solib-frv.c (frv_relocate_main_executable): Update.
7389 * solib-target.c (solib_target_relocate_section_addresses):
7390 Use gdb_bfd_section_index.
7391 * symfile.c (build_section_addr_info_from_section_table):
7392 Use gdb_bfd_section_index.
7393 (build_section_addr_info_from_bfd, place_section): Likewise.
7394 * symtab.c (fixup_section): Update.
7395 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7396
7cbd4a93
TT
73972013-04-08 Tom Tromey <tromey@redhat.com>
7398
7399 * minsyms.h (struct bound_minimal_symbol): New.
7400 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7401 Remove objfile argument.
7402 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7403 Return bound_minimal_symbol.
7404 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7405 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7406 Return bound_minimal_symbol.
7407 (in_gnu_ifunc_stub): Update.
7408 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7409 Remove 'objfile_p' argument.
7410 (lookup_solib_trampoline_symbol_by_pc): Update.
7411 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7412 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7413 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7414 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7415 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7416 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7417 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7418 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7419 stack.c, symtab.c, tui/tui-disasm.c: Update.
7420
f85f34ed
TT
74212013-04-08 Tom Tromey <tromey@redhat.com>
7422
7423 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7424 Use symbol's obstack, not an objfile.
7425 * coffread.c (process_coff_symbol): Update.
7426 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7427 * jv-lang.c (add_class_symbol): Update.
7428 * mdebugread.c (new_symbol): Update.
7429 * minsyms.c (prim_record_minimal_symbol_full)
7430 (terminate_minimal_symbol_table): Update.
7431 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7432 * stabsread.c (define_symbol, read_enum_type): Update.
7433 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7434 Handle Ada specially.
7435 (symbol_set_language): Add 'obstack' argument.
7436 (symbol_set_names): Update.
7437 (symbol_natural_name, symbol_demangled_name): Always use
7438 ada_decode_symbol.
7439 * symtab.h (struct general_symbol_info)
7440 <language_specific::obstack>: New field.
7441 <ada_mangled>: New field.
7442 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7443 (symbol_set_language): Update.
7444
ccde22c0
TT
74452013-04-08 Tom Tromey <tromey@redhat.com>
7446
7447 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7448 Take an obstack, not an objfile.
7449 (symbol_set_names): Update.
7450 * symtab.h (symbol_set_demangled_name): Update.
7451
e623cf5d
TT
74522013-04-08 Tom Tromey <tromey@redhat.com>
7453
7454 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7455 allocate_symbol.
7456 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7457 (read_func_scope): Call allocate_template_symbol.
7458 (new_symbol_full): Call allocate_symbol.
7459 * jit.c (finalize_symtab): Call allocate_symbol.
7460 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7461 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7462 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7463 (common_block_end): Call allocate_symbol.
7464 * symtab.c (allocate_symbol, initialize_symbol)
7465 (allocate_template_symbol): New functions.
7466 * symtab.c (allocate_symbol, initialize_symbol)
7467 (allocate_template_symbol): Declare.
7468 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7469
f6de8ec2
PA
74702013-04-08 Pedro Alves <palves@redhat.com>
7471 Keith Seitz <keiths@redhat.com>
7472
7473 * breakpoint.c (create_breakpoint): Rename
7474 "parse_condition_and_thread" parameter to "parse_arg". Update
7475 describing comment. If !PARSE_ARG, then error out if ARG is not
7476 the empty string after extracting the location.
7477 * breakpoint.h (create_breakpoint): Rename
7478 "parse_condition_and_thread" parameter to "parse_arg".
7479
f65ce5fb
AR
74802013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7481
7482 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7483
cc5925ad
YQ
74842013-04-07 Yao Qi <yao@codesourcery.com>
7485
7486 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7487 and 'addr2' to CORE_ADDR.
7488 * target.c (update_current_target): Update.
7489 * target.h (struct target_ops) <to_trace_find>: Change parameter
7490 type to CORE_ADDR.
7491 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7492 'addr2' to CORE_ADDR.
7493 (tfile_trace_find): Likewise.
7494 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7495 Change local variable 'addr' to type CORE_ADDR.
7496 * tracepoint.h (tfind_1): Update declaration.
7497
d9ac0664
EZ
74982013-04-06 Eli Zaretskii <eliz@gnu.org>
7499
7500 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7501 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7502 Include main.h.
7503
7504 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7505 here...
7506 * main.h (windows_get_absolute_argv0): ...to here.
7507
02142a6c
DE
75082013-04-05 Doug Evans <dje@google.com>
7509
7510 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7511 (read_cutu_die_from_dwo): Add comments.
7512 (read_structure_type): Update comment.
7513 (read_enumeration_type, read_namespace_type): Update comment.
7514 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7515
43662968
JK
75162013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7517
7518 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7519 * Makefile.in (gdb.z): Remove.
7520 (install-only): Remove $(man1dir) and gdb.1 installation.
7521 * gdb.1: Remove.
7522
9ead1b84
JK
75232013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7524
7525 Fix compatibility with Linux kernel 3.8.3.
7526 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7527 to more inner block. Remove parsing of NUMBER from outer block.
7528 Parse NUMBER only if KEYWORD has been identified.
7529
d1794952
JK
75302013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7531
7532 Fix variable name shadowing.
7533 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7534 filename to mapsfilename and update its uses.
7535
9025569e
EZ
75362013-04-05 Eli Zaretskii <eliz@gnu.org>
7537
7538 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7539 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7540 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7541 details of the problem.
7542
c9a6ce02
PA
75432013-04-04 Pedro Alves <palves@redhat.com>
7544 Hui Zhu <hui@codesourcery.com>
7545
7546 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7547 tracepoint, reset its STEP_COUNT and call validate_actionline.
7548
5ff888ce
DE
75492013-04-03 Doug Evans <dje@google.com>
7550
bf6af496
DE
7551 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7552 read_die_and_siblings.
7553 (read_die_and_siblings): New function.
7554 (read_cutu_die_from_dwo): Dump die if requested.
7555 (read_die_and_children): Call read_full_die_1 and
7556 read_die_and_siblings_1.
7557 (read_full_die): Dump die if requested.
7558
7559 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7560
0ac5b59e
DE
7561 * dwarf2read.c (struct dwo_file): New member comp_dir.
7562 Rename member name to dwo_name. All uses updated.
7563 (hash_dwo_file): Include comp_dir in computation.
7564 (eq_dwo_file): Ditto.
7565 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7566 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7567
5ff888ce
DE
7568 * psymtab.c (read_psymtabs_with_fullname): Don't call
7569 psymtab_to_fullname if the basenames are different.
7570
ec83d211
JK
75712013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7572
7573 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7574 New entry about "fullname" presence.
7575
4f4352f7
PA
75762013-04-03 Pedro Alves <palves@redhat.com>
7577
7578 * NEWS: Mention x86_64/Cygwin as new native configuration.
7579
3d1d5ea3
DE
75802013-04-02 Doug Evans <dje@google.com>
7581
7582 * dwarf2read.c (read_structure_type): Fix typo in comment.
7583
be9a8770
PA
75842013-04-02 Pedro Alves <palves@redhat.com>
7585
7586 * NEWS: Mention "set/show debug aarch64", "set/show debug
7587 coff-pe-read" and "set/show debug mach-o".
7588
a46c1e42
PA
75892013-04-02 Pedro Alves <palves@redhat.com>
7590
7591 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7592
3ad18b19
EZ
75932013-04-02 Eli Zaretskii <eliz@gnu.org>
7594
7595 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7596 gdb_string.h is now in common/.
7597
e9f1758d
PA
75982013-04-02 Pedro Alves <palves@redhat.com>
7599
7600 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7601 under "New options".
7602
049dc89b
JK
76032013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 Revert this patch:
7606 PR gdb/15275
7607 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7608
c33e31fd
PA
76092013-04-02 Pedro Alves <palves@redhat.com>
7610
7611 PR gdb/15275
7612
7613 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7614 (remote_serial_write): New function.
7615 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7616
ea5f3910
JW
76172013-04-01 Jiong Wang <jiwang@tilera.com>
7618
7619 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7620 "New targets" sections.
ea5f3910 7621
5c6fa7ab
DE
76222013-04-01 Doug Evans <dje@google.com>
7623
c0f78cd4
DE
7624 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7625 (process_enumeration_scope): Simplify.
7626
0186c6a7
DE
7627 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7628 type_unit_group ...
7629 (struct signatured_type): ... to here.
7630 (sig_type_ptr): New typedef.
7631 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7632 out of union 't'. All uses updated.
7633 (dw2_get_file_names_reader): Assert not called for a type unit.
7634 (dw2_get_file_names): Assert not called for a type unit or type
7635 unit group.
7636 (build_type_psymtabs_reader): Assert called for a type unit.
7637 (build_type_psymtab_dependencies): Assert called for a type unit group.
7638
5c6fa7ab
DE
7639 * dwarf2read.c (free_dwo_file): Add comment.
7640 (dwarf2_per_objfile_free): Unref dwp bfd.
7641
b3c0ad67 76422013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7643
7644 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7645 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7646 (read_pe_exported_syms): Remove unused 'exportix'.
7647 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7648 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7649 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7650
e2df1547
AR
76512013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7652
7653 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7654 (print_it_watchpoint): Remove unused 'bl'.
7655 (say_where): Remove unused 'uiout'.
7656 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7657 (bkpt_breakpoint_hit): Remove unused 'b'.
7658 (internal_bkpt_print_it): Remove unused 'uiout'.
7659 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7660
d81e75c0
TD
76612013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7662
7663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7664 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7665
5a8b3f62
DE
76662013-03-29 Doug Evans <dje@google.com>
7667
ab5088bf
DE
7668 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7669 Delete arg is_dwp. All callers updated.
7670 (open_dwp_file): New function.
7671 (open_and_init_dwp_file): Call it.
7672 (get_dwp_file): New function.
7673 (lookup_dwo_cutu): Call it.
7674
a8ad1e57
DE
7675 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7676 unnecessary, cleanup.
7677
6296d8c1
DE
7678 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7679
b0c7bfa9
DE
7680 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7681 (lookup_dwo_unit): New function.
7682 (init_cutu_and_read_dies): Move DWO handling to new functions.
7683
c88ee1f0
DE
7684 * dwarf2read.c (struct signatured_type): Tweak comment.
7685 (struct dwo_unit): Tweak comment.
7686 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7687 (create_dwo_debug_info_hash_table): Tweak comment.
7688 (dwarf2_per_cu_offset_and_type): Tweak comment.
7689
5a8b3f62
DE
7690 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7691 missing .debug_types section.
7692
9852c492
YQ
76932013-03-29 Yao Qi <yao@codesourcery.com>
7694
7695 * corelow.c: Include "completer.h".
7696 (_initialize_corelow): Call add_target_with_completer with
7697 argument 'filename_completer'.
7698 * tracepoint.c: Likewise.
7699 * exec.c (_initialize_exec): Likewise.
7700 * target.c (add_target): Rename to ...
7701 (add_target_with_completer): ... this. Call set_cmd_completer
7702 if parameter completer is not NULL.
7703 (add_target): New.
7704 * target.h: Include "command.h".
7705 (add_target_with_completer): Declare it.
7706
af312be7
JB
77072013-03-28 Joel Brobecker <brobecker@adacore.com>
7708
7709 * coffread.c (is_import_fixup_symbol): New function.
7710 (record_minimal_symbol): Use is_import_fixup_symbol to
7711 detect import fixup symbols, and discard them.
7712
8a0459fd
DE
77132013-03-28 Doug Evans <dje@google.com>
7714
0349ea22
DE
7715 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7716 types hash table until we know we need it.
7717
f652bce2
DE
7718 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7719 index numbers.
7720
e4a48d9d
DE
7721 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7722 All callers updated.
7723 (dw2_print_stats): Print #read CUs too.
7724 (dump_die_shallow): Print signatured types better.
7725
8a0459fd
DE
7726 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7727 info_or_types_section to section. All uses updated.
7728 (struct dwo_unit): Ditto.
7729
bd3eecc3
PA
77302013-03-28 Pedro Alves <palves@redhat.com>
7731
7732 * NEWS (New options): New section.
7733 (New options): Mention set/show remote trace-status-packet.
7734 * remote.c (PACKET_qTStatus): New enumeration value.
7735 (remote_get_trace_status): Skip sending qTStatus if the packet is
7736 disabled. Use packet_ok.
7737 (_initialize_remote): Register a configuration command for
7738 qTStatus packet.
7739
41245087
DE
77402013-03-28 Doug Evans <dje@google.com>
7741
7edbb660
DE
7742 * symfile.c (find_separate_debug_file): Add comment.
7743 (terminate_after_last_dir_separator): Tweak comment.
7744
0018ea6f
DE
7745 * dwarf2read.c (create_partial_symtab): Add forward decl.
7746 (create_partial_symtab): Move to be closer to other psymtab functions.
7747 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7748
ca69b9e6
DE
7749 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7750 (compute_symtab_includes): Remove unnecessary forward declaration.
7751 (die_needs_namespace): Add comment marking group of functions for
7752 dwarf2 name computation.
7753
a9375afe
DE
7754 * typeprint.c (_initialize_typeprint): Improve type help text.
7755
41245087
DE
7756 * python/python.c (finish_python_initialization): Provide suggestion
7757 for how to tell gdb to find its python files.
7758
7f7cc265
PA
77592013-03-28 Pedro Alves <palves@redhat.com>
7760
7761 PR gdb/15294
7762
7763 * source.c (_initialize_source): Change back "set listsize" to an
7764 integer command.
7765
ec21308c
JK
77662013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7767
7768 PR gdb/15275
7769 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7770
840a9a1f
PA
77712013-03-27 Pedro Alves <palves@redhat.com>
7772
7773 * top.c (history_size): Rename to ...
7774 (history_size_setshow_var): ... this. Add comment.
7775 (show_commands): Use readline's 'history_length' instead of
7776 computing the history length by calling history_get in a loop.
7777 (set_history_size_command): Error out for sizes over INT_MAX.
7778 Restore previous history size on invalid size.
7779 (init_history): If HISTSIZE is negative, leave the history size as
7780 zero. Add comments.
7781 (init_main): Adjust.
7782
826ecc4d
PA
77832013-03-27 Pedro Alves <palves@redhat.com>
7784
7785 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7786 coff_pe_read" command to "set debug coff-pe-read".
7787
0ccfeeae
MM
77882013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7789
7790 * record.c (command_size_to_target_size): Fix size comparison.
7791 Change parameter type from pointer to integer to integer.
7792 Update all users.
7793
40653b35
PM
77942013-03-27 Pierre Muller <muller@sourceware.org>
7795
7796 * windows-nat.c (handle_output_debug_string): Avoid typecast
7797 from integer of different size warning.
7798
c62fa0e2
JB
77992013-03-26 Joel Brobecker <brobecker@adacore.com>
7800
7801 * windows-nat.c (handle_output_debug_string): Add empty line
7802 after local block variable definition.
7803
2c619be2
PA
78042013-03-26 Pedro Alves <palves@redhat.com>
7805
7806 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7807 (net_open): Make 'polls' local unsigned.
7808
1b493192
PA
78092013-03-26 Pedro Alves <palves@redhat.com>
7810
7811 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7812 a zuinteger command instead of uinteger.
7813
7ee70bf5
PA
78142013-03-26 Pedro Alves <palves@redhat.com>
7815
7816 * record-full.c (record_full_insn_num): Make it unsigned.
7817 (record_full_check_insn_num, record_full_message)
7818 (record_full_registers_change, record_full_xfer_partial): Remove
7819 record_full_insn_max_num check (it's always != 0).
7820 (record_full_info, record_full_restore): Use %u as format string.
7821 (): Use %u as format string.
7822 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7823 check (it's always != 0).
7824
dfd1f9bb
PA
78252013-03-26 Pedro Alves <palves@redhat.com>
7826
7827 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7828 and "set dcache size" commands zuinteger instead of uinteger.
7829
addb4faf
PA
78302013-03-26 Pedro Alves <palves@redhat.com>
7831
7832 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7833 command zuinteger instead of uinteger.
7834
b75bf488
PA
78352013-03-26 Pedro Alves <palves@redhat.com>
7836
7837 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7838 zuinteger instead of uinteger.
7839
42c634cb
PA
78402013-03-26 Pedro Alves <palves@redhat.com>
7841
7842 * record.c (record_insn_history_size_setshow_var)
7843 (record_call_history_size_setshow_var): New globals.
7844 (command_size_to_target_size): New function.
7845 (cmd_record_insn_history, cmd_record_call_history): Use
7846 command_size_to_target_size instead of cast.
7847 (validate_history_size, set_record_insn_history_size)
7848 (set_record_call_history_size): New functions.
7849 (_initialize_record): Install set_record_insn_history_size and
7850 set_record_call_history_size as "set" hooks of "set record
7851 instruction-history-size" and "set record
7852 function-call-history-size".
7853
1fb2e2b5
PA
78542013-03-26 Pedro Alves <palves@redhat.com>
7855
7856 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7857 use with history_max_entries use. Remove FIXME note.
7858
99c819ee
MM
78592013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7860
7861 * record-btrace.c (record_btrace_close): Call
7862 record_btrace_auto_disable.
7863
9f9e404c
JB
78642013-03-25 Joel Brobecker <brobecker@adacore.com>
7865
7866 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7867
ebcdfe33
DE
78682013-03-25 Doug Evans <dje@google.com>
7869
7870 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7871
24955f63
TT
78722013-03-25 Tom Tromey <tromey@redhat.com>
7873
7874 PR symtab/11462:
7875 * c-exp.y (exp): Add new productions for destructors after '.' and
7876 '->'.
7877 (write_destructor_name): New function.
7878
fce632b6
TT
78792013-03-25 Tom Tromey <tromey@redhat.com>
7880
7881 PR c++/9197:
7882 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7883 value_struct_elt, not lookup_struct_elt_type.
7884 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7885 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7886 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7887
a4341769
YQ
78882013-03-25 Yao Qi <yao@codesourcery.com>
7889
7890 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7891 instead of '_mkdir'.
7892
b5981e5a
EZ
78932013-03-23 Eli Zaretskii <eliz@gnu.org>
7894
7895 * windows-nat.c (windows_get_absolute_argv0): New function.
7896 * windows-nat.h: Add its prototype.
7897
7898 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7899 Use IS_DIR_SEPARATOR instead of looking for a character inside
7900 SLASH_STRING. Include filenames.h.
7901 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7902 relocate_gdb_directory works when passed gdb_program_name.
7903 Include windows-nat.h.
7904
598d3636
JK
79052013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7906
7907 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7908 * remote.c (trace_error): Remove the special handling of '2'.
7909 (readchar) <SERIAL_EOF>
7910 (readchar) <SERIAL_ERROR>
7911 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7912 (remote_get_trace_status): Call throw_exception if EX is
7913 TARGET_CLOSE_ERROR.
7914 * utils.c (perror_with_name): Rename to ...
7915 (throw_perror_with_name): ... here. New parameter errcode, describe it
7916 in the function comment.
7917 (perror_with_name): New function wrapper.
7918 * utils.h (enum errors): New stub declaration.
7919 (throw_perror_with_name): New declaration.
7920
82b821e9
PA
79212013-03-22 Pedro Alves <palves@redhat.com>
7922 Yao Qi <yao@codesourcery.com>
7923 Mark Kettenis <kettenis@gnu.org>
7924
7925 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7926 Don't let the user set the value to UINT_MAX directly.
7927 <var_integer>: Don't let the user set the value to INT_MAX
7928 directly.
7929
78a095c3
JK
79302013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7931
7932 * remote.c (remote_unpush_target): New function.
7933 (remote_open_1): Remove two pop_target calls, update one comment, add
7934 comment to target_preopen call. Replace pop_target call by
7935 remote_unpush_target call.
7936 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7937 pop_target calls by remote_unpush_target calls.
7938
3e74e146
PA
79392013-03-22 Pedro Alves <palves@redhat.com>
7940
7941 * linux-nat.c (linux_child_follow_fork): Don't call
7942 linux_enable_event_reporting.
7943 (linux_handle_extended_wait): Don't call
7944 linux_enable_event_reporting.
7945
a2213dca
PA
79462013-03-22 Pedro Alves <palves@redhat.com>
7947
7948 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7949 use it to rewrite the trampoline buffers with type gdb_byte[], and
7950 undefine the macro. Remove char* cast.
7951
bd712aed
DE
79522013-03-21 Doug Evans <dje@google.com>
7953
7954 New commands "mt set per-command {space,time,symtab} {on,off}".
7955 * NEWS: Add entry.
7956 * event-top.c: #include "maint.h".
7957 * main.c: #include "maint.h".
7958 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7959 timeval-utils.h, maint.h, cli/cli-setshow.h.
7960 (per_command_time, per_command_space): New static globals.
7961 (per_command_symtab): New static global.
7962 (per_command_setlist, per_command_showlist): New static globals.
7963 (struct cmd_stats): Move here from utils.c.
7964 (set_per_command_time): Renamed from set_display_time in utils.c
7965 and moved here. All callers updated.
7966 (set_per_command_space): Renamed from set_display_space in utils.c
7967 and moved here. All callers updated.
7968 (count_symtabs_and_blocks): New function.
7969 (report_command_stats): Moved here from utils.c. Add support for
7970 printing symtab stats. Only print data if enabled before command
7971 executed.
7972 (make_command_stats_cleanup): Ditto.
7973 (sert_per_command_cmd, show_per_command_cmd): New functions.
7974 (_initialize_maint_cmds): Add new commands
7975 mt set per-command {space,time,symtab} {on,off}.
7976 * maint.h: New file.
7977 * top.c: #include "maint.h".
7978 * utils.c (reset_prompt_for_continue_wait_time): New function.
7979 (get_prompt_for_continue_wait_time): New function.
7980 * utils.h (reset_prompt_for_continue_wait_time): Declare
7981 (get_prompt_for_continue_wait_time): Declare.
7982 (make_command_stats_cleanup): Moved to maint.h.
7983 (set_display_time, set_display_space): Moved to maint.h and renamed
7984 to set_per_command_time, set_per_command_space.
7985 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7986 parse_binary_operation and made non-static. Don't call error,
7987 just return an error marker. All callers updated.
7988 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7989
d76488d8
TT
79902013-03-21 Tom Tromey <tromey@redhat.com>
7991
7992 * symfile.c (alloc_section_addr_info): Update header. Don't set
7993 'num_sections' field.
7994 (build_section_addr_info_from_section_table): Set 'num_sections'.
7995 (build_section_addr_info_from_bfd): Likewise.
7996 (build_section_addr_info_from_objfile): Remove dead loop
7997 condition.
7998 (free_section_addr_info): Unconditionally call xfree.
7999 (relative_addr_info_to_section_offsets, addrs_section_sort)
8000 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8001 condition.
8002 (syms_from_objfile_1): Remove dead 'if' condition. Check
8003 'num_sections'.
8004 (add_symbol_file_command): Set 'num_sections'.
8005 * symfile-mem.c (symbol_file_add_from_memory): Set
8006 'num_sections'.
8007 * somread.c (som_symfile_offsets): Remove dead loop condition.
8008 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8009 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8010
a72e5169 80112013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8012
8013 * tracepoint.h (decode_agent_options): Add 'trace_string'
8014 argument.
8015 * tracepoint.c (decode_agent_options): Add 'trace_string'
8016 argument.
8017 (validate_actionline): Update.
8018 (collect_symbol): Add 'trace_string' argument.
8019 (struct add_local_symbols_data) <trace_string>: New field.
8020 (do_collect_symbol): Update.
8021 (add_local_symbols): Add 'trace_string' argument.
8022 (encode_actions_1): Update.
8023 (trace_dump_actions): Update.
8024 * dwarf2loc.c (access_memory): Update.
8025 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8026 * ax-general.c (new_agent_expr): Update.
8027 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8028 (gen_trace_for_return_address): Add argument.
8029 (trace_kludge, trace_string_kludge): Remove.
8030 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8031 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8032 (gen_trace_for_var): Add 'trace_string' argument.
8033 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8034 (gen_printf, agent_eval_command_one): Update.
8035
b2f83c08
TT
80362013-03-21 Tom Tromey <tromey@redhat.com>
8037
8038 PR exp/15109:
8039 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8040 Handle FILENAME token.
8041
9507860e
TT
80422013-03-21 Tom Tromey <tromey@redhat.com>
8043
8044 * c-exp.y (YYPRINT): Define.
8045 (c_print_token): New function.
8046
e403aa4b
TT
80472013-03-21 Tom Tromey <tromey@redhat.com>
8048
8049 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8050
af307d6a
YQ
80512013-03-21 Yao Qi <yao@codesourcery.com>
8052
8053 * ctf.c: Include "gdb_stat.h".
8054 [USE_WIN32API]: New macro 'mkdir'.
8055 (ctf_start): Use permission bits macros if they are defined.
8056
fb81d016
KS
80572013-03-20 Keith Seitz <keiths@redhat.com>
8058
8059 * breakpoint.h (struct breakpoint): Add comment to
8060 extra_string indicating that this member is mallod'd.
8061 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8062
ef0026f0
PA
80632013-03-20 Pedro Alves <palves@redhat.com>
8064
8065 PR gdb/15289
8066
8067 * cli/cli-setshow.c (do_set_command)
8068 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8069 the result of parsing the command argument. Throw error if the
8070 value is greater than UINT_MAX. Print the invalid value with
8071 plongest.
8072 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8073 result of parsing the command argument. Throw error if the value
8074 is greater than INT_MAX, not greater or equal. Also throw error
8075 if the value is less than INT_MIN. Print the invalid value with
8076 plongest.
8077 <var_zuinteger_unlimited>: Throw error if the value is greater
8078 than INT_MAX, not greater or equal.
8079 (do_show_command) <var_integer, var_zinteger,
8080 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8081
24d6c2a0
TT
80822013-03-20 Tom Tromey <tromey@redhat.com>
8083
8084 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8085 if possible.
8086 * dwarf2read.c (read_func_scope): Remove old FIXME.
8087 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8088 not LOC_COMPUTED.
8089 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8090 Unconditionally call via computed ops, if possible.
8091 * printcmd.c (address_info): Unconditionally call via computed ops,
8092 if possible.
8093 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8094 if possible.
8095 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8096 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8097 if possible.
8098
f1e6e072
TT
80992013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8100 Tom Tromey <tromey@redhat.com>
8101
8102 PR symtab/8421:
8103 * coffread.c (coff_register_index): New global.
8104 (process_coff_symbol, coff_read_enum_type): Set
8105 SYMBOL_ACLASS_INDEX.
8106 (_initialize_coffread): Initialize new global.
8107 * dwarf2loc.c (locexpr_find_frame_base_location)
8108 (dwarf2_block_frame_base_locexpr_funcs)
8109 (loclist_find_frame_base_location)
8110 (dwarf2_block_frame_base_loclist_funcs): New.
8111 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8112 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8113 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8114 (dwarf2_block_frame_base_loclist_funcs): New.
8115 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8116 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8117 globals.
8118 (read_func_scope): Update.
8119 (fixup_go_packaging, mark_common_block_symbol_computed)
8120 (var_decode_location, new_symbol_full, dwarf2_const_value):
8121 Set SYMBOL_ACLASS_INDEX.
8122 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8123 (_initialize_dwarf2_read): Initialize new globals.
8124 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8125 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8126 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8127 globals.
8128 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8129 (_initialize_mdebugread): Initialize new globals.
8130 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8131 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8132 (stab_register_index, stab_regparm_index): New globals.
8133 (define_symbol, read_enum_type, common_block_end): Set
8134 SYMBOL_ACLASS_INDEX.
8135 (_initialize_stabsread): Initialize new globals.
8136 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8137 globals.
8138 (MAX_SYMBOL_IMPLS): New define.
8139 (register_symbol_computed_impl, register_symbol_block_impl)
8140 (register_symbol_register_impl)
8141 (initialize_ordinary_address_classes): New functions.
8142 (_initialize_symtab): Call initialize_ordinary_address_classes.
8143 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8144 (struct symbol_impl): New.
8145 (SYMBOL_ACLASS_BITS): New define.
8146 (struct symbol) <aclass, ops>: Remove fields.
8147 <aclass_index>: New field.
8148 (symbol_impls): Declare.
8149 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8150 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8151 (register_symbol_computed_impl, register_symbol_block_impl)
8152 (register_symbol_register_impl): Declare.
8153 (struct symbol_computed_ops): Add location_has_loclist.
8154 (struct symbol_block_ops): New.
8155 (SYMBOL_BLOCK_OPS): New.
8156 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8157
dbccfd4c
TT
81582013-03-20 Tom Tromey <tromey@redhat.com>
8159
8160 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8161 (print_partial_symbols, recursively_search_psymtabs): Use
8162 PSYMBOL_CLASS.
8163
e3f1ad4f
PM
81642013-03-20 Pierre Muller <muller@sourceware.org>
8165
8166 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8167 addtion, subtraction, multiplication and division binary operator.
8168
460014f5
JK
81692013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8170
8171 Code cleanup.
8172 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8173 * bsd-kvm.c (bsd_kvm_close): Likewise.
8174 * bsd-uthread.c (bsd_uthread_close): Likewise.
8175 * corelow.c (core_close): Likewise.
8176 (core_close_cleanup): Remove parameter quitting from a caller.
8177 * event-top.c (async_disconnect): Likewise.
8178 * exec.c (exec_close_1): Remove parameter quitting.
8179 * go32-nat.c (go32_close): Likewise.
8180 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8181 parameter quitting from a caller.
8182 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8183 variable.
8184 (mips_linux_close): Remove parameter quitting. Remove parameter
8185 quitting from a caller.
8186 * monitor.c (monitor_close): Remove parameter quitting.
8187 * monitor.h (monitor_close): Likewise.
8188 * record-btrace.c (record_btrace_close): Likewise.
8189 * record-full.c (record_full_close): Likewise.
8190 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8191 it also from fprintf_unfiltered.
8192 * remote-mips.c (mips_close): Remove parameter quitting.
8193 (mips_detach): Remove parameter quitting from a caller.
8194 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8195 (gdbsim_close): Remove duplicate function comment. Remove parameter
8196 quitting and remove it also from printf_filtered.
8197 * remote.c (remote_close): Remove parameter quitting.
8198 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8199 * target.c (update_current_target): Remove parameter int from to_close
8200 de_fault.
8201 (push_target, unpush_target, pop_target): Remove parameter quitting from
8202 a caller.
8203 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8204 Remove parameter quitting from a caller.
8205 (target_preopen): Remove parameter quitting from a caller.
8206 (target_close): Remove parameter quitting. Remove parameter quitting
8207 from a caller two times. Remove parameter quitting also from
8208 fprintf_unfiltered.
8209 * target.h (struct target_ops): Remove parameter quitting and as int
8210 from fields to_xclose and to_close.
8211 (extern struct target_ops current_target):
8212 (target_close, pop_all_targets): Remove parameter quitting. Update the
8213 comment.
8214 (pop_all_targets_above): Remove parameter quitting.
8215 * top.c (quit_target): Remove parameter quitting from a caller.
8216 * tracepoint.c (tfile_close): Remove parameter quitting.
8217 * windows-nat.c (windows_close): Remove parameter quitting.
8218
35a7120b
CV
82192013-03-20 Corinna Vinschen <vinschen@redhat.com>
8220
8221 * windows-nat.c (handle_output_debug_string): Replace call
8222 to string_to_core_addr with call to strtoull.
8223
8249a5a9
YQ
82242013-03-20 Yao Qi <yao@codesourcery.com>
8225
8226 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8227 and write it to CTF metadata.
8228
2c15ef43
CV
82292013-03-19 Corinna Vinschen <vinschen@redhat.com>
8230
8231 * windows-nat.c (handle_output_debug_string): Change type of n to
8232 SIZE_T to avoid crash on 64 bit systems.
8233
1cdd3232
EZ
82342013-03-17 Eli Zaretskii <eliz@gnu.org>
8235
8236 * python/python-internal.h (HAVE_SNPRINTF)
8237 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8238 about redefinition of snprintf by pyerrors.h.
8239
3cb2ab1a
SE
82402013-03-15 Steve Ellcey <sellcey@mips.com>
8241
8242 * remote-sim.c (sim_command_completer): Make char arguments const.
8243
9ce98649
TT
82442013-03-15 Tom Tromey <tromey@redhat.com>
8245
8246 PR c++/15116:
8247 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8248
dccee2de
TT
82492013-03-14 Tom Tromey <tromey@redhat.com>
8250
8251 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8252 New fields.
8253 (get_file_crc): Move from symfile.c.
8254 (gdb_bfd_crc): New function.
8255 * gdb_bfd.h (gdb_bfd_crc): Declare.
8256 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8257 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8258 (separate_debug_file_exists): Use gdb_bfd_crc.
8259
cc0ea93c
TT
82602013-03-14 Tom Tromey <tromey@redhat.com>
8261
8262 * symfile.c (get_debug_link_info): Remove.
8263 (find_separate_debug_file_by_debuglink): Use
8264 bfd_get_debug_link_info.
8265
08c23b0d
TT
82662013-03-14 Tom Tromey <tromey@redhat.com>
8267
8268 * symtab.c (error_in_psymtab_expansion): New function.
8269 (lookup_symbol_aux_quick)
8270 (basic_lookup_transparent_type_quick): Remove "last resort"
8271 code. Use error_in_psymtab_expansion.
8272
288e77a7
JK
82732013-03-14 Doug Evans <dje@google.com>
8274 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8277 any successful compare_filenames_for_search or FILENAME_CMP.
8278 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8279 * symtab.c (iterate_over_some_symtabs): Likewise.
8280
8f1b8b82
JK
82812013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 * source.c (print_source_lines_base): Make a local copy of
8284 symtab_to_fullname.
8285
23eb71e4
JK
82862013-03-14 Hui Zhu <hui_zhu@mentor.com>
8287 Jan Kratochvil <jan.kratochvil@redhat.com>
8288
8289 * source.c (print_source_lines_base): Suppress "file" for TUI.
8290
bb869963
SDJ
82912013-03-14 Keith Seitz <keiths@redhat.com>
8292 Alan Matsuoka <alanm@redhat.com>
8293
8294 PR c++/15203
8295 PR c++/15210
8296 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8297 TYPE_CODE_METHOD.
8298 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8299 symbols.
8300
d6682f9e
YQ
83012013-03-14 Yao Qi <yao@codesourcery.com>
8302
8303 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8304 status to tfile if trace is stopped by command 'tstop'.
8305
a22fa6e4
YQ
83062013-03-14 Yao Qi <yao@codesourcery.com>
8307
8308 * tracepoint.c (tfile_write_status): Write trace notes and user
8309 name into tfile if they are not NULL.
8310
d0353e76
YQ
83112013-03-14 Hui Zhu <hui@codesourcery.com>
8312 Yao Qi <yao@codesourcery.com>
8313
8314 * Makefile.in (REMOTE_OBS): Add ctf.o.
8315 (SFILES): Add ctf.c.
8316 (HFILES_NO_SRCDIR): Add ctf.h.
8317 * ctf.c, ctf.h: New files.
8318 * tracepoint.c: Include 'ctf.h'.
8319 (collect_pseudocommand): Remove static.
8320 (trace_save_command): Parse option "-ctf".
8321 Produce different trace file writers per option.
8322 Adjust output message.
8323 (trace_save_tfile, trace_save_ctf): New.
8324 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8325 * mi/mi-main.c: Include 'ctf.h'.
8326 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8327 trace_save_tfile or trace_save_ctf.
8328 * NEWS: Mention these changes.
8329
3f43bc09
YQ
83302013-03-14 Yao Qi <yao@codesourcery.com>
8331
8332 * tracepoint.c (trace_file_writer_xfree): New.
8333 (struct tfile_writer_data): New.
8334 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8335 (tfile_write_header, tfile_write_regblock_type): New.
8336 (tfile_write_status, tfile_write_uploaded_tsv): New.
8337 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8338 (tfile_write_raw_data, (tfile_end): New.
8339 (tfile_write_ops): New global variable.
8340 (TRACE_WRITE_R_BLOCK): New macro.
8341 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8342 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8343 (TRACE_WRITE_V_BLOCK): New macro.
8344 (trace_save): Add extra one parameter WRITER. Make it static.
8345 Use WRITER to writer trace.
8346 (tfile_trace_file_writer_new): New.
8347 (trace_save_command): Caller update.
8348 (trace_save_tfile): Write trace data in TFILE format.
8349 * tracepoint.h (struct trace_frame_write_ops): New.
8350 (struct trace_file_write_ops): New.
8351 (struct trace_file_writer): New.
8352 (trace_save): Remove its declaration.
8353 (trace_save_tfile): Declare it.
8354 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8355 instead of trace_save.
8356
58665b40
PA
83572013-03-13 Pedro Alves <palves@redhat.com>
8358
8359 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8360
10217050
PA
83612013-03-13 Pedro Alves <palves@redhat.com>
8362
8363 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8364 commented out code.
8365 * demangle.c (current_demangling_style_string): Make it const.
8366 (set_demangling_command): Assert the demangling style is known.
8367 Remove all handling of unknown styles. Set
8368 'current_demangling_style_string' to an element of the
8369 demangling_style_names array.
8370 (set_demangling_style): Delete.
8371 (_initialize_demangler): Set current_demangling_style_string to the
8372 element of the demangling_style_names array that corresponds to
8373 the default demangling style. Remove FIXME note. Don't call
8374 set_demangling_style.
8375 * gdb-demangle.h (set_demangling_style): Remove declaration.
8376
6f937416
PA
83772013-03-13 Pedro Alves <palves@redhat.com>
8378
8379 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8380 fields const.
8381 (ada_make_symbol_completion_list): Make "text0" parameter const.
8382 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8383 * breakpoint.c (condition_completer): Make "text" and "word"
8384 parameters const. Adjust.
8385 (check_tracepoint_command): Adjust to validate_actionline
8386 prototype change.
8387 (catch_syscall_completer): Make "text" and "word" parameters
8388 const.
8389 * cli/cli-cmds.c (show_user): Make "comname" local const.
8390 (valid_command_p): Make "command" parameter const.
8391 (alias_command): Make "alias_prefix" and "command_prefix" locals
8392 const.
8393 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8394 (add_alias_cmd): Make "name" and "oldname" parameters const.
8395 Adjust. No longer make copy of OLDNAME.
8396 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8397 (add_setshow_cmd_full, add_setshow_enum_cmd)
8398 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8399 (add_setshow_filename_cmd, add_setshow_string_cmd)
8400 (add_setshow_string_noescape_cmd)
8401 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8402 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8403 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8404 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8405 Make "name" parameter const.
8406 (help_cmd): Rename "command" parameter to "arg". New const local
8407 "command".
8408 (find_cmd): Make "command" parameter const.
8409 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8410 deprecated_cmd_warning prototype change.
8411 (undef_cmd_error): Make "cmdtype" parameter const.
8412 (lookup_cmd): Make "line" parameter const.
8413 (deprecated_cmd_warning): Change type of "text" parameter to
8414 pointer to const char, from pointer to pointer to char. Adjust.
8415 (lookup_cmd_composition): Make "text" parameter const.
8416 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8417 parameters const.
8418 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8419 const.
8420 * cli/cli-script.c (validate_comname): Make "tem" local const.
8421 (define_command): New const local "tem_c". Use it in calls to
8422 lookup_cmd.
8423 (document_command): Make "tem" and "comfull" locals const.
8424 (show_user_1): Make "prefix" and "name" parameters const.
8425 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8426 const.
8427 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8428 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8429 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8430 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8431 (complete_on_enum, add_setshow_enum_cmd)
8432 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8433 (add_setshow_filename_cmd, add_setshow_string_cmd)
8434 (add_setshow_string_noescape_cmd)
8435 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8436 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8437 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8438 Change prototypes, constifying strings.
8439 * completer.c (noop_completer, filename_completer): Make "text"
8440 and "prefix" parameters const.
8441 (location_completer, expression_completer)
8442 (complete_line_internal): Make "text" and "prefix" parameters
8443 const and adjust.
8444 (command_completer, signal_completer): Make "text" and "prefix"
8445 parameters const.
8446 * completer.h (noop_completer, filename_completer)
8447 (expression_completer, location_completer, command_completer)
8448 (signal_completer): Change prototypes.
8449 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8450 parameters const.
8451 * cp-abi.c (cp_abi_completer): Likewise.
8452 * expression.h (parse_expression_for_completion): Change
8453 prototype.
8454 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8455 parameters const.
8456 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8457 * infrun.c (handle_completer): Make "text" and "word" parameters
8458 const.
8459 * interps.c (interpreter_completer): Make "text" and "word"
8460 parameters const.
8461 * language.h (struct language_defn)
8462 <la_make_symbol_completion_list>: Make "text" and "word"
8463 parameters const.
8464 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8465 (parse_exp_in_context): Rename to ...
8466 (parse_exp_in_context_1): ... this.
8467 (parse_exp_in_context): Reimplement, with const hack from
8468 parse_exp_1.
8469 (parse_expression_for_completion): Make "string" parameter const.
8470 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8471 to pointer to const char. Adjust.
8472 (print_command_1): Make "exp" parameter const.
8473 (output_command): Rename to ...
8474 (output_command_const): ... this. Make "exp" parameter const.
8475 (output_command): Reimplement.
8476 (x_command): Adjust.
8477 (display_command): Rename "exp" parameter to "arg". New "exp"
8478 local, const version of "arg".
8479 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8480 "cmd_name" local const.
8481 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8482 call.
8483 (cmdpy_completer): Make "text" and "word" parameters const.
8484 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8485 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8486 const.
8487 * remote.c (_initialize_remote): Make "cmd_name" local const.
8488 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8489 parameters const. Adjust.
8490 (completion_list_add_fields): Make "sym_text", "text" and "word"
8491 parameters const.
8492 (struct add_name_data) <sym_text, text, word>: Make fields const.
8493 (default_make_symbol_completion_list_break_on): Make "text" and
8494 "word" parameters const. Adjust locals.
8495 (default_make_symbol_completion_list)
8496 (make_symbol_completion_list, make_symbol_completion_type)
8497 (make_symbol_completion_list_fn): Make "text" and "word"
8498 parameters const.
8499 (make_file_symbol_completion_list): Make "text", "word" and
8500 "srcfile" parameters const. Adjust locals.
8501 (add_filename_to_list): Make "text" and "word" parameters const.
8502 (struct add_partial_filename_data) <text, word>: Make fields
8503 const.
8504 (make_source_files_completion_list): Make "text" and "word"
8505 parameters const.
8506 * symtab.h (default_make_symbol_completion_list_break_on)
8507 (default_make_symbol_completion_list, make_symbol_completion_list)
8508 (make_symbol_completion_type enum type_code)
8509 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8510 (make_source_files_completion_list): Change prototype.
8511 * top.c (execute_command): Adjust to pass pointer to pointer to
8512 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8513 change.
8514 (set_verbose): Make "cmdname" local const.
8515 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8516 and adjust.
8517 (validate_actionline): Make "line" parameter a pointer to const
8518 char, and adjust.
8519 (encode_actions_1): Make "action_exp" local const, and adjust.
8520 (encode_actions): Adjust.
8521 (replace_comma): Delete.
8522 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8523 const, and adjust. Don't frob the action string while splitting
8524 it at commas. Instead, make a copy of each split substring in
8525 turn.
8526 (trace_dump_command): Adjust to validate_actionline prototype
8527 change.
8528 * tracepoint.h (decode_agent_options, decode_agent_options)
8529 (encode_actions, validate_actionline): Change prototypes.
8530 * valprint.h (output_command): Delete declaration.
8531 (output_command_const): Declare.
8532 * value.c (function_destroyer): Cast const away in xfree call.
8533
a0bcdaa7
PA
85342013-03-13 Pedro Alves <palves@redhat.com>
8535
8536 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8537 rather than casting 'const char * const *' to 'const char **'.
8538 * ada-lex.l (processInt): Make "trailer" local const. Remove
8539 'const char **' cast.
8540 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8541 locals, and use those as strtol output pointer, instead than doing
8542 invalid casts to from 'const char **' to 'char **'.
8543 (_initialize_demangle): Remove cast.
8544 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8545 locals, and use those as strtol output pointer, instead than doing
8546 invalid casts to from 'const char **' to 'char **'.
8547 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8548 casts.
8549 * stap-probe.c (stap_parse_register_operand)
8550 (stap_parse_single_operand): Likewise.
8551
8ddb1965
YQ
85522013-03-13 Yao Qi <yao@codesourcery.com>
8553
8554 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8555 the last matched 'V' blcok in trace frame.
8556
2d450646
JB
85572013-03-12 Joel Brobecker <brobecker@adacore.com>
8558
8559 * NEWS: Create a new section for the next release branch.
8560 Rename the section of the current branch, now that it has
8561 been cut.
8562
b4b79973 85632013-03-12 Joel Brobecker <brobecker@adacore.com>
8564
8565 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8566 * version.in: Bump version to 7.6.50.20130312-cvs.
8567
ee047554
KS
85682013-03-12 Keith Seitz <keiths@redhat.com>
8569
8570 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8571 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8572 Remove temporary copy of input string.
8573 (mi_execute_command_wrapper): Make "cmd" const.
8574 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8575 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8576 Use const strings.
8577 (mi_parse): Make "cmd" const.
8578 Use const strings.
8579 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8580
bbc13ae3
KS
85812013-03-12 Keith Seitz <keiths@redhat.com>
8582
8583 * ada-lang.c (ada_read_renaming_var_value): Pass const
8584 pointer to expression string to parse_exp_1.
8585 (create_excep_cond_exprs): Likewise.
8586 * ax-gdb.c (agent_eval_command_one): Likewise.
8587 (maint_agent_printf_command): Likewise.
8588 Constify much of the string handling/parsing.
8589 * breakpoint.c (set_breakpoint_condition): Pass const
8590 pointer to expression string to parse_exp_1.
8591 (update_watchpoint): Likewise.
8592 (parse_cmd_to_aexpr): Constify string handling.
8593 Pass const pointer to parse_exp_1.
8594 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8595 (find_condition_and_thread): Likewise.
8596 Make TOK const.
8597 (watch_command_1): Make "arg" const.
8598 Constify string handling.
8599 Copy the expression string instead of changing the input
8600 string.
8601 (update_breakpoint_location): Pass const pointer to
8602 parse_exp_1.
8603 * eval.c (parse_and_eval_address): Make "exp" const.
8604 (parse_to_comma_and_eval): Make "expp" const.
8605 (parse_and_eval): Make "exp" const.
8606 * expression.h (parse_expression): Make argument const.
8607 (parse_exp_1): Make first argument const.
8608 * findcmd.c (parse_find_args): Treat "args" as const.
8609 * linespec.c (parse_linespec): Pass const pointer to
8610 linespec_expression_to_pc.
8611 (linespec_expression_to_pc): Make "exp_ptr" const.
8612 * parse.c (parse_exp_1): Make "stringptr" const.
8613 Make a copy of the expression to pass to parse_exp_in_context until
8614 this whole interface can be constified.
8615 (parse_expression): Make "string" const.
8616 * printcmd.c (ui_printf): Treat "arg" as const.
8617 Handle const strings.
8618 * tracepoint.c (validate_actionline): Pass const pointer to
8619 all calls to parse_exp_1.
8620 (encode_actions_1): Likewise.
8621 * value.h (parse_to_comma_and_eval): Make argument const.
8622 (parse_and_eval_address): Likewise.
8623 (parse_and_eval): Likewise.
8624 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8625 (varobj_set_value): Likewise.
8626 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8627 constify string handling.
8628 Pass const pointers to parse_and_eval_address and
8629 parse_to_comman_and_eval.
8630 * cli/cli-utils.c (skip_to_space): Rename to ...
8631 (skip_to_space_const): ... this. Handle const strings.
8632 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8633 skip_to_space_const.
8634 (skip_to_space_const): Declare.
8635 * common/format.c (parse_format_string): Make "arg" const.
8636 Handle const strings.
8637 * common/format.h (parse_format_string): Make "arg" const.
8638 * gdbserver/ax.c (ax_printf): Make "format" const.
8639 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8640 of the expression string.
8641
f3cec7e6
HZ
86422013-03-12 Hui Zhu <hui@codesourcery.com>
8643
8644 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8645
9df7235c
HZ
86462013-03-12 Yao Qi <yao@codesourcery.com>
8647 Hui Zhu <hui@codesourcery.com>
8648
8649 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8650 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8651 DW_OP_deref_size.
8652
82d049ab
PH
86532013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8654
5f8e0b8f
MF
8655 * ada-lex.l (rules): Only recognize 'thread' as a
8656 delimiter when followed by numerals, as for c-exp.y.
8657 Use new rewind_to_char function to rewind the input for
8658 expression-delimiting tokens.
8659 (rewind_to_char): New function.
82d049ab 8660
8c1fb155
JK
86612013-03-11 Pedro Alves <palves@redhat.com>
8662 Jan Kratochvil <jan.kratochvil@redhat.com>
8663
8664 * configure: Regenerate.
8665 * configure.ac (check dynamic export flag): Link python test with
8666 $PYTHON_LIBS.
8667
cc81e1c6
DE
86682013-03-11 Doug Evans <dje@google.com>
8669 Keith Seitz <keiths@redhat.com>
8670
8671 * linespec.c (find_linespec_symbols): Call find_function_symbols
8672 first, and then call lookup_prefix_sym/find_method.
8673
39086a0e
PA
86742013-03-11 Pedro Alves <palves@redhat.com>
8675
8676 * charset.c (convert_between_encodings): Don't cast between
8677 different pointer to pointer types. Instead, make the 'inp' local
8678 be of the type iconv expects.
8679 (wchar_iterate): Don't cast between different pointer to pointer
8680 types. Instead, use new pointer local of the type iconv expects.
8681 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8682 Add new local of type char pointer, and use it to get a
8683 char/string view of the byte buffer, instead of casting between
8684 pointer to pointer types.
8685
90585175
HAQ
86862013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8687
8688 * remote.c (remote_set_trace_buffer_size): Move != operator
8689 to the start of next line to fix an ARI warning.
8690
59ea5688
MM
86912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8692
8693 * NEWS: Add record changes.
8694
946287b7
MM
86952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8696
8697 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8698 the instruction history disassembly.
8699 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8700 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8701
afedecd3
MM
87022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8703
8704 * Makefile.in (SFILES): Add record-btrace.c
8705 (COMMON_OBS): Add record-btrace.o
8706 * record-btrace.c: New.
8707 * objfiles.c: Include btrace.h.
8708 (free_objfile): call btrace_free_objfile.
8709
15984c13
MM
87102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8711
8712 * target.c (target_call_history, target_call_history_from,
8713 target_call_history_range): New.
8714 * target.h (target_ops) <to_call_history, to_call_history_from,
8715 to_call_history_range>: New fields.
8716 (target_call_history, target_call_history_from,
8717 target_call_history_range): New declaration.
8718 * record.c (get_call_history_modifiers, cmd_record_call_history,
8719 record_call_history_size): New.
8720 (_initialize_record): Add the "record function-call-history" command.
8721 Add "set/show record function-call-history-size" commands.
8722 * record.h (record_print_flag): New.
8723
67c86d06
MM
87242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8725
8726 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8727 to_insn_history_range>: New fields.
8728 (target_insn_history): New.
8729 (target_insn_history_from): New.
8730 (target_insn_history_range): New.
8731 * target.c (target_insn_history): New.
8732 (target_insn_history_from): New.
8733 (target_insn_history_range): New.
8734 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8735 (record_insn_history_size): New.
8736 (get_insn_number): New.
8737 (get_context_size): New.
8738 (no_chunk): New.
8739 (get_insn_history_modifiers): New.
8740 (cmd_record_insn_history): New.
8741 (_initialize_record): Add "set/show record instruction-history-size"
8742 command. Add "record instruction-history" command.
8743
7c1687a9
MM
87442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8745
8746 * record.h (record_disconnect): New.
8747 (record_detach): New.
8748 (record_mourn_inferior): New.
8749 (record_kill): New.
8750 * record-full.c (record_disconnect, record_detach,
8751 record_mourn_inferior, record_kill): Move to...
8752 * record.c: ...here.
8753 (DEBUG): New.
8754 (record_stop): New.
8755 (record_unpush): New.
8756 (cmd_record_stop): Call record_stop. Replace unpush_target
8757 call with record_unpush call.
8758 (record_disconnect, record_detach): Assert that the target
8759 is of record stratum. Call record_unpush, record_stop, and
8760 DEBUG.
8761 (record_mourn_inferior, record_kill): Assert that the target
8762 is of record stratum. Call record_unpush and DEBUG.
8763
25ea693b
MM
87642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8765
8766 * record-full.h, record-full.c (record_memory_query): Rename
8767 to ...
8768 (record_full_memory_query): ...this. Update all users.
8769 (record_arch_list_add_reg): Rename to ...
8770 (record_full_arch_list_add_reg): ...this. Update all users.
8771 (record_arch_list_add_mem): Rename to ...
8772 (record_full_arch_list_add_mem): ...this. Update all users.
8773 (record_arch_list_add_end): Rename to ...
8774 (record_full_arch_list_add_end): ...this. Update all users.
8775 (record_gdb_operation_disable_set): Rename to ...
8776 (record_full_gdb_operation_disable_set): ...this.
8777 Update all users.
8778
88d1aa9d
MM
87792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8780
8781 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8782 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8783 (RECORD_IS_REPLAY): Renamed to ...
8784 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8785 (RECORD_FILE_MAGIC): Renamed to ...
8786 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8787 (record_mem_entry): Renamed to ...
8788 (record_full_mem_entry): ... this. Updated all users.
8789 (record_reg_entry): Renamed to ...
8790 (record_full_reg_entry): ... this. Updated all users.
8791 (record_end_entry): Renamed to ...
8792 (record_full_end_entry): ... this. Updated all users.
8793 (record_type) <record_end, record_reg, record_mem>: Renamed
8794 to ...
8795 (record_full_type) <record_full_end, record_full_reg,
8796 record_full_mem>: ... this. Updated all users.
8797 (record_entry): Renamed to ...
8798 (record_full_entry): ... this. Updated all users.
8799 (record_core_buf_entry): Renamed to ...
8800 (record_full_core_buf_entry): ... this. Updated all users.
8801 (record_core_regbuf): Renamed to ...
8802 (record_full_core_regbuf): ... this. Updated all users.
8803 (record_core_start): Renamed to ...
8804 (record_full_core_start): ... this. Updated all users.
8805 (record_core_end): Renamed to ...
8806 (record_full_core_end): ... this. Updated all users.
8807 (record_core_buf_list): Renamed to ...
8808 (record_full_core_buf_list): ... this. Updated all users.
8809 (record_first): Renamed to ...
8810 (record_full_first): ... this. Updated all users.
8811 (record_list): Renamed to ...
8812 (record_full_list): ... this. Updated all users.
8813 (record_arch_list_head): Renamed to ...
8814 (record_full_arch_list_head): ... this. Updated all users.
8815 (record_arch_list_tail): Renamed to ...
8816 (record_full_arch_list_tail): ... this. Updated all users.
8817 (record_stop_at_limit): Renamed to ...
8818 (record_full_stop_at_limit): ... this. Updated all users.
8819 (record_insn_max_num): Renamed to ...
8820 (record_full_insn_max_num): ... this. Updated all users.
8821 (record_insn_num): Renamed to ...
8822 (record_full_insn_num): ... this. Updated all users.
8823 (record_insn_count): Renamed to ...
8824 (record_full_insn_count): ... this. Updated all users.
8825 (record_ops): Renamed to ...
8826 (record_full_ops): ... this. Updated all users.
8827 (record_core_ops): Renamed to ...
8828 (record_full_core_ops): ... this. Updated all users.
8829 (set_record_cmdlist): Renamed to ...
8830 (set_record_full_cmdlist): ... this. Updated all users.
8831 (show_record_cmdlist): Renamed to ...
8832 (show_record_full_cmdlist): ... this. Updated all users.
8833 (record_cmdlist): Renamed to ...
8834 (record_full_cmdlist): ... this. Updated all users.
8835 (record_beneath_to_resume_ops): Renamed to ...
8836 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8837 (record_beneath_to_resume): Renamed to ...
8838 (record_full_beneath_to_resume): ... this. Updated all users.
8839 (record_beneath_to_wait_ops): Renamed to ...
8840 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8841 (record_beneath_to_wait): Renamed to ...
8842 (record_full_beneath_to_wait): ... this. Updated all users.
8843 (record_beneath_to_store_registers_ops): Renamed to ...
8844 (record_full_beneath_to_store_registers_ops): ... this.
8845 Updated all users.
8846 (record_beneath_to_store_registers): Renamed to ...
8847 (record_full_beneath_to_store_registers): ... this.
8848 Updated all users.
8849 (record_beneath_to_xfer_partial_ops): Renamed to ...
8850 (record_full_beneath_to_xfer_partial_ops): ... this.
8851 Updated all users.
8852 (record_beneath_to_xfer_partial): Renamed to ...
8853 (record_full_beneath_to_xfer_partial): ... this.
8854 Updated all users.
8855 (record_beneath_to_insert_breakpoint): Renamed to ...
8856 (record_full_beneath_to_insert_breakpoint): ... this.
8857 Updated all users.
8858 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8859 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8860 Updated all users.
8861 (record_beneath_to_stopped_data_address): Renamed to ...
8862 (record_full_beneath_to_stopped_data_address): ... this.
8863 Updated all users.
8864 (record_beneath_to_async): Renamed to ...
8865 (record_full_beneath_to_async): ... this. Updated all users.
8866 (record_goto_insn): Renamed to ...
8867 (record_full_goto_insn): ... this. Updated all users.
8868 (record_save): Renamed to ...
8869 (record_full_save): ... this. Updated all users.
8870 (record_reg_alloc): Renamed to ...
8871 (record_full_reg_alloc): ... this. Updated all users.
8872 (record_reg_release): Renamed to ...
8873 (record_full_reg_release): ... this. Updated all users.
8874 (record_mem_alloc): Renamed to ...
8875 (record_full_mem_alloc): ... this. Updated all users.
8876 (record_mem_release): Renamed to ...
8877 (record_full_mem_release): ... this. Updated all users.
8878 (record_end_alloc): Renamed to ...
8879 (record_full_end_alloc): ... this. Updated all users.
8880 (record_end_release): Renamed to ...
8881 (record_full_end_release): ... this. Updated all users.
8882 (record_entry_release): Renamed to ...
8883 (record_full_entry_release): ... this. Updated all users.
8884 (record_list_release): Renamed to ...
8885 (record_full_list_release): ... this. Updated all users.
8886 (record_list_release_following): Renamed to ...
8887 (record_full_list_release_following): ... this.
8888 Updated all users.
8889 (record_list_release_first): Renamed to ...
8890 (record_full_list_release_first): ... this. Updated all users.
8891 (record_arch_list_add): Renamed to ...
8892 (record_full_arch_list_add): ... this. Updated all users.
8893 (record_get_loc): Renamed to ...
8894 (record_full_get_loc): ... this. Updated all users.
8895 (record_check_insn_num): Renamed to ...
8896 (record_full_check_insn_num): ... this. Updated all users.
8897 (record_arch_list_cleanups): Renamed to ...
8898 (record_full_arch_list_cleanups): ... this. Updated all users.
8899 (record_message): Renamed to ...
8900 (record_full_message): ... this. Updated all users.
8901 (record_message_wrapper): Renamed to ...
8902 (record_full_message_wrapper): ... this. Updated all users.
8903 (record_message_wrapper_safe): Renamed to ...
8904 (record_full_message_wrapper_safe): ... this. Updated all users.
8905 (record_gdb_operation_disable): Renamed to ...
8906 (record_full_gdb_operation_disable): ... this. Updated all users.
8907 (record_hw_watchpoint): Renamed to ...
8908 (record_full_hw_watchpoint): ... this. Updated all users.
8909 (record_exec_insn): Renamed to ...
8910 (record_full_exec_insn): ... this. Updated all users.
8911 (record_restore): Renamed to ...
8912 (record_full_restore): ... this. Updated all users.
8913 (record_async_inferior_event_token): Renamed to ...
8914 (record_full_async_inferior_event_token): ... this.
8915 Updated all users.
8916 (record_async_inferior_event_handler): Renamed to ...
8917 (record_full_async_inferior_event_handler): ... this.
8918 Updated all users.
8919 (record_core_open_1): Renamed to ...
8920 (record_full_core_open_1): ... this. Updated all users.
8921 (record_open_1): Renamed to ...
8922 (record_full_open_1): ... this. Updated all users.
8923 (record_open): Renamed to ...
8924 (record_full_open): ... this. Updated all users.
8925 (record_close): Renamed to ...
8926 (record_full_close): ... this. Updated all users.
8927 (record_resume_step): Renamed to ...
8928 (record_full_resume_step): ... this. Updated all users.
8929 (record_resumed): Renamed to ...
8930 (record_full_resumed): ... this. Updated all users.
8931 (record_execution_dir): Renamed to ...
8932 (record_full_execution_dir): ... this. Updated all users.
8933 (record_resume): Renamed to ...
8934 (record_full_resume): ... this. Updated all users.
8935 (record_get_sig): Renamed to ...
8936 (record_full_get_sig): ... this. Updated all users.
8937 (record_sig_handler): Renamed to ...
8938 (record_full_sig_handler): ... this. Updated all users.
8939 (record_wait_cleanups): Renamed to ...
8940 (record_full_wait_cleanups): ... this. Updated all users.
8941 (record_wait_1): Renamed to ...
8942 (record_full_wait_1): ... this. Updated all users.
8943 (record_wait): Renamed to ...
8944 (record_full_wait): ... this. Updated all users.
8945 (record_stopped_by_watchpoint): Renamed to ...
8946 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8947 (record_disconnect): Renamed to ...
8948 (record_full_disconnect): ... this. Updated all users.
8949 (record_detach): Renamed to ...
8950 (record_full_detach): ... this. Updated all users.
8951 (record_mourn_inferior): Renamed to ...
8952 (record_full_mourn_inferior): ... this. Updated all users.
8953 (record_kill): Renamed to ...
8954 (record_full_kill): ... this. Updated all users.
8955 (record_stopped_data_address): Renamed to ...
8956 (record_full_stopped_data_address): ... this. Updated all users.
8957 (record_registers_change): Renamed to ...
8958 (record_full_registers_change): ... this. Updated all users.
8959 (record_store_registers): Renamed to ...
8960 (record_full_store_registers): ... this. Updated all users.
8961 (record_xfer_partial): Renamed to ...
8962 (record_full_xfer_partial): ... this. Updated all users.
8963 (record_breakpoint): Renamed to ...
8964 (record_full_breakpoint): ... this. Updated all users.
8965 (record_breakpoint_p): Renamed to ...
8966 (record_full_breakpoint_p): ... this. Updated all users.
8967 (record_breakpoints): Renamed to ...
8968 (record_full_breakpoints): ... this. Updated all users.
8969 (record_sync_record_breakpoints): Renamed to ...
8970 (record_full_sync_record_breakpoints): ... this.
8971 Updated all users.
8972 (record_init_record_breakpoints): Renamed to ...
8973 (record_full_init_record_breakpoints): ... this.
8974 Updated all users.
8975 (record_insert_breakpoint): Renamed to ...
8976 (record_full_insert_breakpoint): ... this. Updated all users.
8977 (record_remove_breakpoint): Renamed to ...
8978 (record_full_remove_breakpoint): ... this. Updated all users.
8979 (record_can_execute_reverse): Renamed to ...
8980 (record_full_can_execute_reverse): ... this. Updated all users.
8981 (record_get_bookmark): Renamed to ...
8982 (record_full_get_bookmark): ... this. Updated all users.
8983 (record_goto_bookmark): Renamed to ...
8984 (record_full_goto_bookmark): ... this. Updated all users.
8985 (record_async): Renamed to ...
8986 (record_full_async): ... this. Updated all users.
8987 (record_can_async_p): Renamed to ...
8988 (record_full_can_async_p): ... this. Updated all users.
8989 (record_is_async_p): Renamed to ...
8990 (record_full_is_async_p): ... this. Updated all users.
8991 (record_execution_direction): Renamed to ...
8992 (record_full_execution_direction): ... this. Updated all users.
8993 (record_info): Renamed to ...
8994 (record_full_info): ... this. Updated all users.
8995 (record_delete): Renamed to ...
8996 (record_full_delete): ... this. Updated all users.
8997 (record_is_replaying): Renamed to ...
8998 (record_full_is_replaying): ... this. Updated all users.
8999 (record_goto_entry): Renamed to ...
9000 (record_full_goto_entry): ... this. Updated all users.
9001 (record_goto_begin): Renamed to ...
9002 (record_full_goto_begin): ... this. Updated all users.
9003 (record_goto_end): Renamed to ...
9004 (record_full_goto_end): ... this. Updated all users.
9005 (record_goto): Renamed to ...
9006 (record_full_goto): ... this. Updated all users.
9007 (init_record_ops): Renamed to ...
9008 (init_record_full_ops): ... this. Updated all users.
9009 (record_core_resume): Renamed to ...
9010 (record_full_core_resume): ... this. Updated all users.
9011 (record_core_kill): Renamed to ...
9012 (record_full_core_kill): ... this. Updated all users.
9013 (record_core_fetch_registers): Renamed to ...
9014 (record_full_core_fetch_registers): ... this. Updated all users.
9015 (record_core_prepare_to_store): Renamed to ...
9016 (record_full_core_prepare_to_store): ... this. Updated all users.
9017 (record_core_store_registers): Renamed to ...
9018 (record_full_core_store_registers): ... this. Updated all users.
9019 (record_core_xfer_partial): Renamed to ...
9020 (record_full_core_xfer_partial): ... this. Updated all users.
9021 (record_core_insert_breakpoint): Renamed to ...
9022 (record_full_core_insert_breakpoint): ... this. Updated all users.
9023 (record_core_remove_breakpoint): Renamed to ...
9024 (record_full_core_remove_breakpoint): ... this. Updated all users.
9025 (record_core_has_execution): Renamed to ...
9026 (record_full_core_has_execution): ... this. Updated all users.
9027 (init_record_core_ops): Renamed to ...
9028 (init_record_full_core_ops): ... this. Updated all users.
9029 (cmd_record_restore): Renamed to ...
9030 (cmd_record_full_restore): ... this. Updated all users.
9031 (record_save_cleanups): Renamed to ...
9032 (record_full_save_cleanups): ... this. Updated all users.
9033 (cmd_record_start): Renamed to ...
9034 (cmd_record_full_start): ... this. Updated all users.
9035 (set_record_insn_max_num): Renamed to ...
9036 (set_record_full_insn_max_num): ... this. Updated all users.
9037 (set_record_command): Renamed to ...
9038 (set_record_full_command): ... this. Updated all users.
9039 (show_record_command): Renamed to ...
9040 (show_record_full_command): ... this. Updated all users.
9041 (_initialize_record): Renamed to ...
9042 (_initialize_record_full): ... this. Updated all users.
9043
d02ed0bb
MM
90442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9045
9046 * record.h: Split into this and ...
9047 * record-full.h: ... this.
9048 * record.c: Split into this and ...
9049 * record-full.c: ... this.
9050 * target.h (target_ops): Add new fields to_info_record,
9051 to_save_record, to_delete_record, to_record_is_replaying,
9052 to_goto_record_begin, to_goto_record_end, to_goto_record.
9053 (target_info_record): New.
9054 (target_save_record): New.
9055 (target_supports_delete_record): New.
9056 (target_delete_record): New.
9057 (target_record_is_replaying): New.
9058 (target_goto_record_begin): New.
9059 (target_goto_record_end): New.
9060 (target_goto_record): New.
9061 * target.c (target_info_record): New.
9062 (target_save_record): New.
9063 (target_supports_delete_record): New.
9064 (target_delete_record): New.
9065 (target_record_is_replaying): New.
9066 (target_goto_record_begin): New.
9067 (target_goto_record_end): New.
9068 (target_goto_record): New.
9069 * record.h: Declare struct cmd_list_element.
9070 (record_cmdlist): New declaration.
9071 (set_record_cmdlist): New declaration.
9072 (show_record_cmdlist): New declaration.
9073 (info_record_cmdlist): New declaration.
9074 (cmd_record_goto): New declaration.
9075 * record.c: Remove unnecessary includes.
9076 Include inferior.h.
9077 (cmd_record_goto): Remove declaration.
9078 (record_cmdlist): Now extern. Initialize.
9079 (set_record_cmdlist): Now extern. Initialize.
9080 (show_record_cmdlist): Now extern. Initialize.
9081 (info_record_cmdlist): Now extern. Initialize.
9082 (find_record_target): New.
9083 (require_record_target): New.
9084 (cmd_record_start): Update.
9085 (cmd_record_delete): Remove target-specific code.
9086 Call target_delete_record.
9087 (cmd_record_stop): Unpush any record target.
9088 (set_record_insn_max_num): Move to record-full.c
9089 (set_record_command): Add comment.
9090 (show_record_command): Add comment.
9091 (info_record_command): Update comment.
9092 Remove target-specific code.
9093 Call the record target's to_info_record.
9094 (cmd_record_start): New.
9095 (cmd_record_goto): Now extern.
9096 Remove target-specific code.
9097 Call target_goto_begin, target_goto_end, or target_goto.
9098 (_initialize_record): Move record target ops initialization to
9099 record-full.c.
9100 Change "record" command help text.
9101 Move "record restore", "record set", and "record show" commands to
9102 record-full.c.
9103 * Makefile.in (SFILES): Add record-full.c.
9104 (HFILES_NO_SRCDIR): Add record-full.h.
9105 (COMMON_OBS): Add record-full.o.
9106 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9107 * arm-tdep.c: Include record-full.h.
9108 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9109 * i386-tdep.c: Include record-full.h.
9110 * infrun.c: Include record-full.h.
9111 * linux-record.c: Include record-full.h.
9112 * moxie-tdep.c: Include record-full.h.
9113 * record-full.c: Include record-full.h.
9114 Change module comment.
9115 (set_record_full_cmdlist): New.
9116 (show_record_full_cmdlist): New.
9117 (record_full_cmdlist): New.
9118 (record_goto_insn): New declaration.
9119 (record_save): New declaration.
9120 (record_check_insn_num): Change query string.
9121 (record_info): New.
9122 (record_delete): New.
9123 (record_is_replaying): New.
9124 (record_goto_entry): New.
9125 (record_goto_begin): New.
9126 (record_goto_end): New.
9127 (record_goto): New.
9128 (init_record_ops): Update.
9129 (init_record_core_ops): Update.
9130 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9131 (cmd_record_start): New.
9132 (set_record_insn_max_num): Moved from record.c
9133 (set_record_full_command): New.
9134 (show_record_full_command): New.
9135 (_initialize_record_full): New.
9136
b48d48eb
MM
91372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9138
9139 * target.h (add_deprecated_target_alias): New.
9140 * target.c (add_deprecated_target_alias): New.
9141
a950d57c
MM
91422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9143
9144 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9145 and signal.h.
9146 (linux_supports_btrace): Add kernel and
9147 cpuid check.
9148 (kernel_supports_btrace): New function.
9149 (cpu_supports_btrace): New function.
9150 (intel_supports_btrace): New function.
9151
9accd112
MM
91522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9153
9154 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9155 * remote.c: Include btrace.h.
9156 (struct btrace_target_info): New struct.
9157 (remote_supports_btrace): New function.
9158 (send_Qbtrace): New function.
9159 (remote_enable_btrace): New function.
9160 (remote_disable_btrace): New function.
9161 (remote_teardown_btrace): New function.
9162 (remote_read_btrace): New function.
9163 (init_remote_ops): Add btrace ops.
9164 (enum <unnamed>): Add btrace packets.
9165 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9166 (_initialize_remote): Add packet configuration for branch tracing.
9167
c12a2917
MM
91682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9169
9170 * features/btrace.dtd: New file.
9171 * Makefile.in (XMLFILES): Add btrace.dtd.
9172 * btrace.h (parse_xml_btrace): New declaration.
9173 * btrace.c: Include xml-support.h.
9174 (parse_xml_btrace): New function.
9175 (parse_xml_btrace_block): New function.
9176 (block_attributes): New struct.
9177 (btrace_attributes): New struct.
9178 (btrace_children): New struct.
9179 (btrace_elements): New struct.
9180
3e3aea48
MM
91812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9182
9183 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9184 (amd64_linux_enable_btrace): New.
9185 (amd64_linux_disable_btrace): New.
9186 (amd64_linux_teardown_btrace): New.
9187 (_initialize_amd64_linux_nat): Initialize btrace ops.
9188 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9189 (i386_linux_enable_btrace): New.
9190 (i386_linux_disable_btrace): New.
9191 (i386_linux_teardown_btrace): New.
9192 (_initialize_i386_linux_nat): Initialize btrace ops.
9193 * config/i386/linux.mh: Add linux-btrace.o.
9194 * config/i386/linux64.mh: Add linux-btrace.o.
9195
7c97f91e
MM
91962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9197
9198 * common/linux_btrace.h: New file.
9199 * common/linux_btrace.c: New file.
9200 * Makefile.in (SFILES): Add btrace.c.
9201 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9202 (COMMON_OBS): Add btrace.o.
9203 (linux-btrace.o): New rule.
9204
1999790b 92052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9206
9207 * target.h: Include btrace.h.
9208 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9209 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9210 * target.c (target_supports_btrace): New function.
9211 (target_enable_btrace): New function.
9212 (target_disable_btrace): New function.
9213 (target_teardown_btrace): New function.
9214 (target_read_btrace): New function.
9215 * btrace.h: New file.
9216 * btrace.c: New file.
9217 * Makefile.in: Add btrace.c.
9218 * gdbthread.h: Include btrace.h.
9219 (struct thread_info): Add btrace field.
9220 * thread.c: Include btrace.h.
9221 (clear_thread_inferior_resources): Call target_teardown_btrace.
9222 * common/btrace-common.h: New file.
9223
61a31a67
JK
92242013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9225
9226 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9227 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9228 kill_status to outer block.
9229
05c56a9d
JK
92302013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9231
9232 Fix entry-values if the callee called a noreturn function.
9233 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9234 get_frame_address_in_block. Add new comment.
9235
9112db09
JK
92362013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9237
9238 Fix entry-values in C++ across CUs.
9239 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9240 lookup_minimal_symbol. Add a comment.
9241 * dwarf2read.c
9242 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9243 DW_AT_linkage_name.
9244
9b67fcec
YQ
92452013-03-08 Yao Qi <yao@codesourcery.com>
9246
9247 * tracepoint.c (_initialize_tracepoint): Indent the code.
9248
6221be90
PA
92492013-03-08 Pedro Alves <palves@redhat.com>
9250
9251 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9252 (parse_find_args, find_command): Change type of pattern buffer
9253 locals to 'gdb_byte *'.
9254
be9a119c 92552013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9256 Hafiz Abid Qadeer <abidh@codesourcery.com>
9257
9258 * NEWS: Mention set and show trace-buffer-size commands.
9259 Mention new packet.
9260 * target.h (struct target_ops): New method
9261 to_set_trace_buffer_size.
9262 (target_set_trace_buffer_size): New macro.
9263 * target.c (update_current_target): Set up new method.
9264 * tracepoint.c (trace_buffer_size): New global.
9265 (start_tracing): Send it to the target.
9266 (set_trace_buffer_size): New function.
9267 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9268 * remote.c (remote_set_trace_buffer_size): New function.
9269 (_initialize_remote): Use it.
9270 (QTBuffer:size) New remote command.
9271 (PACKET_QTBuffer_size): New enum.
9272 (remote_protocol_features): Add an entry for
9273 PACKET_QTBuffer_size.
9274
7da3ab79
TT
92752013-03-08 Tom Tromey <tromey@redhat.com>
9276
9277 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9278 variable.
9279
0c1f71e7
PA
92802013-03-07 Pedro Alves <palves@redhat.com>
9281
9282 * target.c (target_read_stralloc, target_fileio_read_alloc):
9283 *Cast pointer to 'gdb_byte *' in target call.
9284
c8af03a2
PA
92852013-03-07 Pedro Alves <palves@redhat.com>
9286
9287 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9288 call.
9289
529480d0
KS
92902013-03-07 Keith Seitz <keiths@redhat.com>
9291
9292 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9293 (trace_pass_command): Likewise.
9294 * cli/cli-cmds.c: Include cli/cli-utils.h.
9295 (source_command): Use skip-spaces.
9296 (disassemble_command): Likewise.
9297 * findcmd.c: Include cli/cli-utils.h.
9298 (parse_find_args): Use skip_spaces.
9299 * go32-nat.c: Include cli/cli-utils.h.
9300 (go32_sldt): Use skip_spaces.
9301 (go32_sgdt): Likewise.
9302 (go32_sidt): Likewise.
9303 (go32_pde): Likewise.
9304 (go32_pte): Likewise.
9305 (go32_pte_for_address): Likewise.
9306 * infcmd.c: Include cli/cli-utils.h.
9307 (registers_info): Use skip_spaces.
9308 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9309 (linux_info_proc): Likewise.
9310 * linux-thread-db.c: Include cli/cli-utils.h.
9311 (info_auto_load_libthread_db): Use skip_spaces_const.
9312 * m32r-rom.c: Include cli/cli-utils.h.
9313 (m32r_upload_command): Use skip_spaces.
9314 * maint.c: Include cli/cli-utils.h.
9315 (maintenance_translate_address): Use skip_spaces.
9316 * mi/mi-parse.c: Include cli/cli-utils.h.
9317 (mi_parse_argv): Use skip_spaces.
9318 (mi_parse): Likewise.
9319 * minsyms.c: Include cli/cli-utils.h.
9320 (msymbol_hash_iw): Use skip_spaces_const.
9321 * objc-lang.c: Include cli/cli-utils.h.
9322 (parse_selector): Use skip_spaces.
9323 (parse_method): Likewise.
9324 * python/python.c: Include cli/cli-utils.h.
9325 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9326 (python_command)[HAVE_PYTHON]: Likewise.
9327 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9328 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9329 (m32r_load): Use skip_spaces.
9330 * serial.c: Include cli/cli-utils.h.
9331 (serial_open): Use skip_spaces_const.
9332 * stack.c: Include cli/cli-utils.h.
9333 (parse_frame_specification_1): Use skip_spaces_const.
9334 * symfile.c: Include cli/cli-utils.h.
9335 (set_ext_lang_command): Use skip_spaces.
9336 * symtab.c: Include cli/cli-utils.h.
9337 (rbreak_command): Use skip_spaces.
9338 * thread.c (thread_name_command): Use skip_spaces.
9339 * tracepoint.c (validate_actionline): Use skip_spaces.
9340 (encode_actions_1): Likewise.
9341 (trace_find_range_command): Likewise.
9342 (trace_find_outside_command): Likewise.
9343 (trace_dump_actions): Likewise.
9344
ac91cd70
PA
93452013-03-07 Pedro Alves <palves@redhat.com>
9346
9347 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9348 * expprint.c (print_subexp_standard): Likewise.
9349 * utils.c (host_char_to_target): Likewise.
9350 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9351 * varobj.c (value_get_print_value): Change type of local to char*.
9352 Cast it gdb_byte * in call to language printer.
9353
2898e560
PA
93542013-03-07 Pedro Alves <palves@redhat.com>
9355
9356 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9357 gdb_byte *'.
9358 (make_wchar_iterator): Remove cast to char*.
9359 (wchar_iterate): Change type of local.
9360
a09b4448
PA
93612013-03-07 Pedro Alves <palves@redhat.com>
9362
9363 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9364 for 'regcache->register_status'.
9365
20ced3e4
PA
93662013-03-07 Pedro Alves <palves@redhat.com>
9367
c2d6a675 9368 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9369 int.
9370
fe106009
PA
93712013-03-07 Pedro Alves <palves@redhat.com>
9372
9373 * stap-probe.c (handle_stap_probe): Add cast to char*.
9374
8ac2c12b
PA
93752013-03-07 Pedro Alves <palves@redhat.com>
9376
9377 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9378 RECORD_MSGRCV>: Pass a signed variable to
9379 regcache_raw_read_signed, instead of an unsigned one.
9380
99f0a309
PA
93812013-03-07 Pedro Alves <palves@redhat.com>
9382
9383 * remote-notif.c (notif_debug): Change type to int.
9384 * remote-notif.h (notif_debug): Likewise.
9385
964b8317
PA
93862013-03-07 Pedro Alves <palves@redhat.com>
9387
9388 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9389
f0cc8ad4
PA
93902013-03-07 Pedro Alves <palves@redhat.com>
9391
9392 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9393 * remote.h (hex2bin, bin2hex): ... here.
9394 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9395
77dec115
EZ
93962013-03-07 Eli Zaretskii <eliz@gnu.org>
9397
9398 * utils.c (initialize_utils): Improve doc strings of "set/show
9399 width", "set/show height", and "set/show pagination".
9400
741d92cf
KS
94012013-03-06 Keith Seitz <keiths@redhat.com>
9402
9403 * ax-gdb.c (gen_printf): Make FORMAT const.
9404 * ax-gdb.h (gen_printf): Likewise.
9405 * ax-general.c (ax_string): Make STR const.
9406 * ax.h (ax_string): Likewise.
9407
7b6c814e
DE
94082013-03-06 Doug Evans <dje@google.com>
9409
9410 * elfread.c (elf_symfile_read): Move debugging printf to more
9411 logical location.
9412
634334ab
PA
94132013-03-06 Pedro Alves <palves@redhat.com>
9414
9415 * python/py-utils.c (target_string_to_unicode): Delete function.
9416 * python/python-internal.h (target_string_to_unicode): Delete
9417 declaration.
9418
e482a1a7
PM
94192013-03-06 Pierre Muller <muller@sourceware.org>
9420
9421 * linespec.c (get_current_search_block): ARI fix, use (void)
9422 for empty parameter list.
9423
4eeaa230
DE
94242013-03-05 Doug Evans <dje@google.com>
9425
9426 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9427 of old ada_lookup_symbol_list. In !full_search case, don't
9428 search superblocks.
9429 (ada_lookup_symbol_list): Delete arg full_search, all callers
9430 updated. Call ada_lookup_symbol_list_worker.
9431 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9432 * ada-lang.h (ada_lookup_symbol_list): Update.
9433 * language.h (language_defn): Update comment for
9434 la_iterate_over_symbols.
9435 * linespec.c (iterate_over_file_blocks): New function.
9436 (iterate_over_all_matching_symtabs): Call it.
9437 (lookup_prefix_sym): Ditto.
9438 (get_current_search_block): New function.
9439 (get_search_block): Delete.
9440 (find_label_symbols): Call get_current_search_block.
9441 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9442 * symtab.c (iterate_over_symbols): Don't search superblocks.
9443
b69b1fb1
YQ
94442013-03-05 Yao Qi <yao@codesourcery.com>
9445
9446 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9447 parameter VAR's type from "unsigned int" to "int".
9448 * command.h (var_zuinteger_unlimited): Update its comments.
9449 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9450
3c095f49
CV
94512013-03-05 Corinna Vinschen <vinschen@redhat.de>
9452
9453 * NEWS: Mention new target x86_64-*-cygwin*.
9454
b5b0b0af
CV
94552013-03-05 Corinna Vinschen <vinschen@redhat.de>
9456
9457 * configure.host: Add x86_64-*-cygwin* as host.
9458 * configure.tgt: Add x86_64-*-cygwin* as target.
9459 * config/i386/cygwin64.mh: New file.
9460
f6f99966
JK
94612013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9462
9463 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9464
33f448b1
JK
94652013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9466
9467 * linespec.c (struct linespec_canonical_name): New.
9468 (struct linespec_state): Change canonical_names type to it.
9469 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9470 xrealloc element size. Initialize the different CANONICAL fields.
9471 (canonical_to_fullform): New.
9472 (filter_results): Use it. Add variables canonical, fullform and
9473 cleanup.
9474 (struct decode_line_2_item, decode_line_2_compare_items): New.
9475 (decode_line_2): Remove variables iter and item_names, add variables
9476 items and items_count. Modify the code for these new variables.
9477
feb14725
CV
94782013-03-04 Corinna Vinschen <vinschen@redhat.com>
9479
9480 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9481 calling do_cleanup.
9482
e83b17ba
HZ
94832013-03-04 Luis Machado <lgustavo@codesourcery.com>
9484
9485 * tracepoint.c (build_traceframe_info): Add code for byte order.
9486
a2d13a0d
KB
94872013-03-02 Kevin Buettner <kevinb@redhat.com>
9488
8dddcae8
KB
9489 * v850-tdep.c: (v850e2_register_name): Revise system register
9490 names to match current V850E2M architecture specifications.
9491 Update register number enum comments too.
f5aee5ee 9492
d79e58d8
JW
94932013-03-01 Jiong Wang <jiwang@tilera.com>
9494 Pedro Alves <palves@redhat.com>
9495
9496 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9497 to END_ADDR.
9498 (tilegx_skip_prologue): Limit prologue analysis to section end.
9499
c4be5165
JK
95002013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9501
9502 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9503 use it.
9504
e362b510
PA
95052013-03-01 Pedro Alves <palves@redhat.com>
9506
9507 Use gdb_byte for bytes from the program being debugged.
9508
9509 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9510 Change type of local 'buf' to gdb_byte.
9511 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9512 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9513 * cris-tdep.c (cris_sigcontext_addr)
9514 (cris_sigtramp_frame_unwind_cache): Likewise.
9515 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9516 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9517 Likewise.
9518 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9519 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9520 (hppa32_hpux_search_dummy_call_sequence)
9521 (hppa_hpux_supply_save_state): Likewise.
9522 * hppa-linux-tdep.c (insns_match_pattern)
9523 (hppa_linux_find_global_pointer): Likewise.
9524 * hppa-tdep.c (hppa_in_function_epilogue_p)
9525 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9526 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9527 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9528 (i386fbsd_collect_uthread): Likewise.
9529 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9530 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9531 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9532 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9533 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9534 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9535 (ia64_libunwind_frame_prev_register)
9536 (ia64_libunwind_sigtramp_frame_this_id)
9537 (ia64_find_global_pointer_from_dynamic_section)
9538 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9539 (ia64_unwind_pc): Likewise.
9540 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9541 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9542 (m68hc11_extract_return_value): Likewise.
9543 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9544 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9545 (mep_get_insn, mep_push_dummy_call): Likewise.
9546 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9547 (mips_linux_in_dynsym_stub): Likewise.
9548 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9549 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9550 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9551 to gdb_byte.
9552 * remote-mips.c (mips_set_register): Likewise.
9553 * remote-sim.c (gdbsim_fetch_register): Likewise.
9554 * score-tdep.c (score7_fetch_inst): Change type of parameter
9555 'memblock' and local 'buf' to gdb_byte.
9556 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9557 Change type of local 'buf' to gdb_byte. Adjust.
9558 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9559 to gdb_byte**.
9560 (score7_analyze_prologue): Change type of 'memblock' and
9561 'memblock_ptr' locals to gdb_byte*.
9562 * sh64-tdep.c (sh64_extract_return_value)
9563 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9564 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9565 * solib-pa64.c (pa64_solib_create_inferior_hook)
9566 (pa64_open_symbol_file_object): Remove local 'buf'.
9567 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9568 (som_open_symbol_file_object): Likewise.
9569 * solib-spu.c (spu_current_sos): Likewise.
9570 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9571 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9572 (spu_store_registers): Likewise.
9573 * target.c (debug_print_register): Likewise.
9574 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9575 * xstormy16-tdep.c (xstormy16_store_return_value)
9576 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9577 (xstormy16_find_jmp_table_entry): Likewise.
9578
75cc61ca 95792013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9580
9581 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9582 (tilegx_gdbarch_init): Install it.
9583
ddb08e9c
TT
95842013-02-28 Tom Tromey <tromey@redhat.com>
9585
9586 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9587 PyLong_Check.
9588
62d7fb51
DE
95892013-02-28 Doug Evans <dje@google.com>
9590
9591 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9592 * python/python.c (gdbpy_find_pc_line): Ditto.
9593
c4a9e8b4
TT
95942013-02-28 Tom Tromey <tromey@redhat.com>
9595
9596 * contrib/excheck.py: New file.
9597 * contrib/exsummary.py: New file.
9598 * contrib/gcc-with-excheck: New file.
9599
7f6a5dde
TT
96002013-02-28 Tom Tromey <tromey@redhat.com>
9601
9602 * python/python.c (gdbpy_print_stack): Call begin_line and
9603 fprintf_filtered inside TRY_CATCH.
9604
9e974e55
TT
96052013-02-28 Tom Tromey <tromey@redhat.com>
9606
9607 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9608 inside TRY_CATCH.
9609
dd5fa3e7
TT
96102013-02-28 Tom Tromey <tromey@redhat.com>
9611
9612 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9613 frame_object_to_frame_info inside TRY_CATCH.
9614
86a3263f
TT
96152013-02-28 Tom Tromey <tromey@redhat.com>
9616
9617 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9618 TRY_CATCH.
9619
81b52a3a
TT
96202013-02-28 Tom Tromey <tromey@redhat.com>
9621
9622 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9623
d50a0ce2
CV
96242013-02-27 Corinna Vinschen <vinschen@redhat.com>
9625
9626 * windows-nat.c: Throughout, fix format strings and casts of
9627 printf-like functions to avoid type related warnings on all
9628 platforms.
9629 (handle_output_debug_string): Fetch context information address
9630 from debug string using string_to_core_addr.
9631
e1f58301
JW
96322013-02-27 Jiong Wang <jiwang@tilera.com>
9633
9634 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9635 * regformats/reg-tilegx32.dat: New.
9636
4fcd89fc
JW
96372013-02-27 Jiong Wang <jiwang@tilera.com>
9638
9639 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9640
748d24e6
JW
96412013-02-27 Jiong Wang <jiwang@tilera.com>
9642
9643 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9644
6c8e944d
YQ
96452013-02-27 Yao Qi <yao@codesourcery.com>
9646 Pedro Alves <palves@redhat.com>
9647
9648 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9649 pc/tp/range/outside, look for the next trace frame instead of
9650 always starting from frame 0.
6c8e944d 9651
acd7db30
AG
96522013-02-26 Anthony Green <green@moxielogic.com>
9653
9654 * configure.tgt: Add support for moxie-*-rtems* target.
9655
025e6dce
PA
96562013-02-25 Pedro Alves <palves@redhat.com>
9657
9658 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9659 warning text.
9660
ca9c94ef
MR
96612013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9662
9663 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9664 if $fp is used as the virtual frame pointer.
9665
24c274a1
AM
96662013-02-23 Alan Modra <amodra@gmail.com>
9667
9668 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9669 symbol size.
9670 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9671 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9672 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9673 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9674
bfada189
JK
96752013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9676
9677 Code cleanup.
9678 * elfread.c (build_id_bfd_get): Make the return type const.
9679 (build_id_verify): Make the check parameter const.
9680 (build_id_to_debug_filename): Make the build_id parameter and variable
9681 data const.
9682 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9683
c0355132
AM
96842013-02-21 Alan Modra <amodra@gmail.com>
9685
9686 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9687
9f44fbc0
SCR
96882013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9689
9690 Add a new method 'disassemble' to gdb.Architecture class.
9691 * python/py-arch.c (archpy_disassmble): Implementation of the
9692 new method gdb.Architecture.disassemble.
9693 (arch_object_methods): Add entry for the new method.
9694
b74ea3eb
JW
96952013-02-20 Jiong Wang <jiwang@tilera.com>
9696
9697 * MAINTAINERS (Write After Approval): Add myself to the list.
9698
61a672f1
PA
96992013-02-19 Pedro Alves <palves@redhat.com>
9700
9701 Garbage collect 'struct monitor_ops'::load_routine.
9702
9703 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9704 * monitor.c (monitor_load): No longer call
9705 current_monitor->load_routine.
9706 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9707 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9708 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9709
40e397df
PA
97102013-02-19 Pedro Alves <palves@redhat.com>
9711
9712 PR gdb/15161
9713
9714 Harmonize with generic_load.
9715
9716 * monitor.c: Include "readline/readline.h".
9717 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9718 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9719 long/strtol for the 'load_offset' local. Error out if no argument
9720 is given or if too many arguments are given. Tilde expand the
9721 passed in file name.
9722
f698ca8e
KT
97232013-02-19 Kai Tietz <ktietz@redhat.com>
9724
9725 PR gdb/15161
9726 * symfile.c (load_section_data): Change type of load_offset
9727 to CORE_ADDR.
9728 (generic_load): User strtoulst instead of strtoul for conversion
9729 of load_offset.
9730
3361b059
WL
97312013-02-19 Jiong Wang <jiwang@tilera.com>
9732
9733 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9734 for return address, "lr" register, saved on stack.
9735 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9736 after we invoke tilegx_analyze_prologue.
9737
3e9d5130
WL
97382013-02-19 Jiong Wang <jiwang@tilera.com>
9739
bb1bcd86
WL
9740 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9741
3361b059 97422013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9743
b74ea3eb 9744 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9745
4aaf2503
WL
97462013-02-19 Jiong Wang <jiwang@tilera.com>
9747
b74ea3eb 9748 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9749 (tilegx_write_pc): New function.
9750 (tilegx_cannot_reference_register): Return zero if REGNO
9751 is TILEGX_FAULTNUM_REGNUM.
9752 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9753 (tilegx_register_name): Add handling of "faultnum" register.
9754 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9755 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9756 handling of TILEGX_FAULTNUM_REGNUM.
9757 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9758
bc23a956
WL
97592013-02-19 Jiong Wang <jiwang@tilera.com>
9760
9761 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9762 should be aligned to 64bit.
bc23a956 9763
42f45f1a
KT
97642013-02-19 Kai Tietz <ktietz@redhat.com>
9765
9766 * windows-nat.c (windows_xfer_memory): Fix debug-output
9767 for LLP64.
9768
6ce4c112
LL
97692013-02-19 Lei Liu <lei.liu2@windriver.com>
9770
9771 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9772 Don't check DSP register number if HAVE_DSP is not set.
9773
30e8ee25
AM
97742013-02-19 Alan Modra <amodra@gmail.com>
9775
9776 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9777 throughout file instead.
9778 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9779 Don't xmalloc return value.
9780 (build_id_verify): Similarly. Don't xfree.
9781 (build_id_to_debug_filename): Update.
9782 (find_separate_debug_file_by_buildid): Update, don't xfree.
9783
4c9ad8c2
TT
97842013-02-18 Tom Tromey <tromey@redhat.com>
9785
9786 PR gdb/15102:
9787 * dwarf2read.c (read_subrange_type): Use result of
9788 'check_typedef'.
9789
983dc440
YQ
97902013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9791
9792 * frame.c: Remove one extra white space after #include
9793 directive.
9794
7fb2b84a
JK
97952013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9796
9797 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9798
edceb2a9
JK
97992013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9800
9801 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9802 and dir commands into an if block.
9803
e81b7af8
TT
98042013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9805
9806 * python/py-breakpoint (struct pybp_code): Use int instead of
9807 enum type_code.
9808
f5911ea1
HAQ
98092013-02-15 Pedro Alves <pedro@codesourcery.com>
9810 Hafiz Abid Qadeer <abidh@codesourcery.com>
9811
9812 * NEWS: Mention new field "trace-file".
9813 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9814 (tfile_open): Record the trace file's filename in the trace
9815 status.
9816 (tfile_files_info): Mention the name of the trace file.
9817 Check the "filename" field explicitely.
9818 (trace_status_command): Explicitely check "filename" field.
9819 (trace_find_command): Ditto.
9820 (trace_find_pc_command): Ditto.
9821 (trace_find_tracepoint_command): Ditto.
9822 (trace_find_line_command): Ditto.
9823 (trace_find_range_command): Ditto.
9824 (trace_find_outside_command): Ditto.
9825 * tracepoint.h (struct trace_status) <from_file>: Rename it
9826 to "filename" and make it hold the trace file's filename
9827 instead of a boolean.
9828 * remote.c (remote_get_trace_status): Initialize "filename"
9829 field with NULL instead of 0.
9830
796cb314
YQ
98312013-02-15 Yao Qi <yao@codesourcery.com>
9832
9833 * remote.c: Fix a typo.
9834
42e79b1d
PM
98352013-02-14 Pierre Muller <muller@sourceware.org>
9836
9837 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9838
baea0dae
PA
98392013-02-14 Pedro Alves <palves@redhat.com>
9840
9841 * utils.c (savestring): Don't #undef it. Move function to
9842 common/common-utils.c.
9843 * common/common-utils.c: Include gdb_string.h.
9844 (savestring): Move here from utils.c.
9845 * common/common-utils.h (savestring): Declare.
9846
57c3b6ed
PA
98472013-02-14 Pedro Alves <palves@redhat.com>
9848
9849 * utils.c (savestring): Rename parameter 'size' to 'len'.
9850
d6c44983
YZ
98512013-02-14 Pedro Alves <palves@redhat.com>
9852 Yufeng Zhang <yufeng.zhang@arm.com>
9853
9854 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9855 (aarch64_inferior_data, struct aarch64_inferior_data):
9856 Delete.
9857 (struct aarch64_process_info): New.
9858 (aarch64_process_list): New global.
9859 (aarch64_find_process_pid, aarch64_add_process)
9860 (aarch64_process_info_get): New functions.
9861 (aarch64_inferior_data_get): Delete.
9862 (aarch64_process_info_get): New function.
9863 (aarch64_forget_process): New function.
9864 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9865 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9866 aarch64_get_debug_reg_state.
9867 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9868 instead of linux_nat_iterate_watchpoint_lwps.
9869 (aarch64_linux_new_fork): New function.
9870 (aarch64_linux_child_post_startup_inferior): Use
9871 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9872 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9873 (aarch64_linux_remove_hw_breakpoint)
9874 (aarch64_handle_aligned_watchpoint)
9875 (aarch64_handle_unaligned_watchpoint)
9876 (aarch64_linux_insert_watchpoint)
9877 (aarch64_linux_remove_watchpoint)
9878 (aarch64_linux_stopped_data_address): Adjust to pass the current
9879 process id to aarch64_debug_reg_state.
9880 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9881 linux_nat_new_fork hook, and aarch64_forget_process as
9882 linux_nat_forget_process hook; remove the call to
9883 register_inferior_data_with_cleanup.
9884
4819b3f8
PA
98852013-02-14 Pedro Alves <palves@redhat.com>
9886
9887 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9888 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9889 lval_memory.
9890
1773c82c
HAQ
98912013-02-14 Pedro Alves <pedro@codesourcery.com>
9892 Hafiz Abid Qadeer <abidh@codesourcery.com>
9893
9894 * tracepoint.h (validate_trace_state_variable_name): Declare.
9895 * tracepoint.c (validate_trace_state_variable_name): New.
9896 (trace_variable_command): Parse the trace state variable's name
9897 without using parse_expression. Do several validations.
9898 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9899 trace state variable's name with parse_expression. Validate it.
9900
53778a97
YQ
99012013-02-14 Yao Qi <yao@codesourcery.com>
9902
9903 * infcmd.c (breakpoint_proceeded): Remove it.
9904
7b3ae3a6
YQ
99052013-02-14 Yao Qi <yao@codesourcery.com>
9906
9907 * tracepoint.c (end_actions_pseudocommand): Make it static.
9908 (while_stepping_pseudocommand): Likewise.
9909 * tracepoint.h (end_actions_pseudocommand): Remove the
9910 declaration.
9911 (while_stepping_pseudocommand): Likewise.
9912
64580925
YQ
99132013-02-14 Yao Qi <yao@codesourcery.com>
9914
9915 * cli/cli-decode.c (help_cmd): Remove the declaration of
9916 "cmdlist".
9917 (help_all): Likewise.
9918
26cb8b7c
PA
99192013-02-13 Pedro Alves <palves@redhat.com>
9920
9921 * amd64-linux-nat.c (update_debug_registers_callback):
9922 Update comment.
9923 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9924 iterate_over_lwps.
9925 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9926 i386_debug_reg_state.
9927 (amd64_linux_new_fork): New function.
9928 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9929 linux_nat_new_fork hook, and i386_forget_process as
9930 linux_nat_forget_process hook.
9931 * i386-linux-nat.c (update_debug_registers_callback):
9932 Update comment.
a8256ea1 9933 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9934 iterate_over_lwps.
9935 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9936 i386_debug_reg_state.
9937 (i386_linux_new_fork): New function.
9938 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9939 linux_nat_new_fork hook, and i386_forget_process as
9940 linux_nat_forget_process hook.
9941 * i386-nat.c (i386_init_dregs): Delete.
9942 (i386_inferior_data, struct i386_inferior_data):
9943 Delete.
9944 (struct i386_process_info): New.
9945 (i386_process_list): New global.
9946 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9947 New functions.
9948 (i386_inferior_data_get): Delete.
9949 (i386_process_info_get): New function.
9950 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9951 (i386_forget_process): New function.
9952 (i386_cleanup_dregs): Rewrite.
9953 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9954 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9955 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9956 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9957 to i386_debug_reg_state.
9958 (i386_use_watchpoints): Don't register inferior data.
9959 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9960 adjust comment.
9961 (i386_forget_process): Declare.
9962 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9963 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9964 New static globals.
9965 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9966 (add_initial_lwp): New, factored out from ...
9967 (add_lwp): ... this. Don't check the number of lwps before
9968 calling linux_nat_new_thread.
9969 (linux_nat_iterate_watchpoint_lwps): Delete.
9970 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9971 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9972 forks and vforks.
9973 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9974 initial lwp.
9975 (linux_nat_kill, linux_nat_mourn_inferior): Call
9976 linux_nat_forget_process.
9977 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9978 (linux_nat_forget_process): New functions.
9979 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9980 type.
9981 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9982 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9983 types.
9984 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9985 (linux_nat_forget_process): New declarations.
9986
9987 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9988 (amd64fbsd_mourn_inferior): New function.
9989 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9990 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9991
5befea72
MS
99922013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9993
55015247
YQ
9994 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9995 Adding _().
5befea72 9996
1d3ffd6b
MS
99972013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9998
9999 * aarch64-linux-nat.c (debug_reg_change_callback)
10000 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10001 %s and phex().
10002
6eb04473
MS
100032013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10004
10005 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10006 with LONGEST.
10007
a016fc87
HAQ
100082013-02-13 Pedro Alves <palves@redhat.com>
10009 Hafiz Abid Qadeer <abidh@codesourcery.com>
10010
10011 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10012
e234dfaf
TT
100132013-02-12 Tom Tromey <tromey@redhat.com>
10014
10015 PR symtab/11464:
10016 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10017 NAME return.
10018 (classify_inner_name): Remove 'first_name' argument, add
10019 'context'. Remove unused variable.
10020 (yylex): Explicitly maintain the context type. Exit loop earlier
10021 if NAME result is seen.
10022
0b1afbb3
PA
100232013-02-12 Pedro Alves <palves@redhat.com>
10024
10025 * amd64-darwin-tdep.c: Add (C) after Copyright.
10026 * cli/cli-cmds.h: Ditto.
10027 * cli/cli-decode.c: Ditto.
10028 * cli/cli-decode.h: Ditto.
10029 * cli/cli-dump.c: Ditto.
10030 * cli/cli-dump.h: Ditto.
10031 * cli/cli-interp.c: Ditto.
10032 * cli/cli-logging.c: Ditto.
10033 * cli/cli-script.c: Ditto.
10034 * cli/cli-script.h: Ditto.
10035 * cli/cli-setshow.c: Ditto.
10036 * cli/cli-setshow.h: Ditto.
10037 * cli/cli-utils.c: Ditto.
10038 * cli/cli-utils.h: Ditto.
10039 * config/alpha/nm-osf3.h: Ditto.
10040 * config/djgpp/djconfig.sh: Ditto.
10041 * config/i386/nm-fbsd.h: Ditto.
10042 * config/i386/nm-i386gnu.h: Ditto.
10043 * config/nm-linux.h: Ditto.
10044 * config/nm-nto.h: Ditto.
10045 * config/rs6000/nm-rs6000.h: Ditto.
10046 * config/sparc/nm-sol2.h: Ditto.
10047 * darwin-nat-info.c: Ditto.
10048 * dfp.c: Ditto.
10049 * dfp.h: Ditto.
10050 * gdb-demangle.h: Ditto.
10051 * i386-darwin-nat.c: Ditto.
10052 * i386-darwin-tdep.c: Ditto.
10053 * linux-fork.h: Ditto.
10054 * m32c-tdep.c: Ditto.
10055 * microblaze-linux-tdep.c: Ditto.
10056 * microblaze-rom.c: Ditto.
10057 * microblaze-tdep.c: Ditto.
10058 * microblaze-tdep.h: Ditto.
10059 * mips-linux-tdep.h: Ditto.
10060 * ppc-ravenscar-thread.c: Ditto.
10061 * ppc-ravenscar-thread.h: Ditto.
10062 * prologue-value.c: Ditto.
10063 * prologue-value.h: Ditto.
10064 * ravenscar-thread.c: Ditto.
10065 * ravenscar-thread.h: Ditto.
10066 * sparc-ravenscar-thread.c: Ditto.
10067 * sparc-ravenscar-thread.h: Ditto.
10068 * tilegx-linux-tdep.c: Ditto.
10069 * unwind_stop_reasons.def: Ditto.
10070 * windows-nat.h: Ditto.
10071 * xtensa-linux-tdep.c: Ditto.
10072 * xtensa-xtregs.c: Ditto.
10073 * regformats/regdat.sh: Ditto.
10074 * regformats/regdef.h: Ditto.
10075
6c01dd94
PA
100762013-02-12 Pedro Alves <palves@redhat.com>
10077
10078 * break-catch-sig.c: Update copyright years.
10079
b65a2bd9
SCR
100802013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10081
10082 Add support for a destructor for ui_out data and use it to
10083 provide a ui_out destructor.
10084 * ui-out.h: Declare the new ui_out destructor.
10085 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10086 * ui-out.c (default_data_destroy): Add a default data destructor
10087 which does nothing.
10088 (default_ui_out_impl): Set the new data_destroy field to
10089 default_data_destroy
10090 (uo_data_destroy): Local function which invokes the data
10091 destructor if present.
10092 (clear_table): Local function which clears the table data of a
10093 ui_out object.
10094 (ui_out_destroy): Public function which frees a ui_out object.
10095 (ui_out_table_end): Use the new clear_table function.
10096 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10097 NULL.
10098 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10099 to NULL.
10100
c2792f5a
DE
101012013-02-11 Doug Evans <dje@google.com>
10102
10103 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10104 (printf_decfloat): New function. Broken out from ui_printf.
10105 Remove unnecessary code to shift the entire format string down.
10106 (printf_pointer): New function.
10107 (ui_printf): Code to print C strings, wide C strings, decfloats,
10108 and pointers moved to separate functions.
10109
d9e98382
SDJ
101102013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10111
10112 * valops.c (value_assign): Handling bitfield offset in
10113 `lval_internalvar_component' case.
10114
4ff3ce77
DE
101152013-02-08 Doug Evans <dje@google.com>
10116
10117 * common/format.c (parse_format_string): Fix whitespace.
10118
901900c4
MGD
101192013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10120
10121 * stack.c (return_command): Work around uninitialized variable
10122 warning.
10123
b5dbc8d4
YZ
101242013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10125
10126 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10127 number of the registers from 36 to 34.
10128
51d66578
MS
101292013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10130
10131 * NEWS: Mention new AArch64 native and target support.
10132
176b1c95
MS
101332013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10134
10135 * MAINTAINERS (Write After Approval): Add myself.
10136
9d19df75
MS
101372013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10138 Marcus Shawcroft <marcus.shawcroft@arm.com>
10139 Nigel Stephens <nigel.stephens@arm.com>
10140 Yufeng Zhang <yufeng.zhang@arm.com>
10141
10142 * aarch64-linux-nat.c: New file.
10143 * config/aarch64/linux.mh: New file.
10144 * configure.host: Add AArch64.
10145 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10146
7e1e0340
DE
101472013-02-07 Doug Evans <dje@google.com>
10148
10149 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10150 disassemble command.
10151
45e25a36
MS
101522013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10153
10154 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10155 set_gdbarch_fetch_tls_load_module_address.
10156
bbfdfe1c
DM
101572013-02-06 David S. Miller <davem@davemloft.net>
10158
10159 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10160 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10161 * value.c (struct_return_convention): New function.
10162 (using_struct_return): Implement in terms of struct_return_convention.
10163 * value.h (struct_return_convention): Declare.
10164 * stack.c (return_command): Allow successful overriding of the return
10165 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10166
bc9abe4a
TT
101672013-02-06 Tom Tromey <tromey@redhat.com>
10168
10169 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10170 outside of TRY_CATCH.
10171
134a2066
YQ
101722013-02-06 Yao Qi <yao@codesourcery.com>
10173
10174 * mi/mi-interp.c: Include "tracepoint.h".
10175 (mi_tsv_modified): Declare.
10176 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10177 (mi_interpreter_init): Call observer_attach_tsv_modified.
10178 (mi_tsv_modified): New.
10179 (mi_tsv_created, mi_tsv_deleted): Update.
10180 * tracepoint.c (trace_variable_command): Call
10181 observer_notify_tsv_modified if the initial value of tsv is
10182 changed.
10183 (delete_trace_state_variable): Call
10184 observer_notify_tsv_deleted earlier.
10185 (trace_variable_command): Caller update.
10186 (create_tsv_from_upload): Likewise.
10187 * observer.sh: Declare "struct trace_state_variable".
10188
10189 * NEWS: Mention the new MI notification "=tsv-modified".
10190
59be2b6a
DE
101912013-02-05 Doug Evans <dje@google.com>
10192
10193 * completer.c (location_completer): Fix typo in comment.
10194
d30113d4
JK
101952013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10196
10197 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10198 ADDRESS sorted.
10199
14ac654f
MS
102002013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10201
10202 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10203 Refactor if statement to avoid trailing || operator.
10204
543bf33d
AT
102052013-02-05 Andreas Tobler <andreast@fgznet.ch>
10206
10207 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10208
dc18f110
AT
102092013-02-04 Andreas Tobler <andreast@fgznet.ch>
10210
10211 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10212 * configure.host: Add powerpc*-*-freebsd* target.
10213 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10214 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10215 * config/powerpc/fbsd.mh: New file.
10216
b3ac9c77
SDJ
102172013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10218 Denys Vlasenko <dvlasenk@redhat.com>
10219 Pedro Alves <palves@redhat.com>
10220
10221 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10222 (struct elf_internal_linux_prpsinfo): Forward declare.
10223 * gdbarch.h, gdbarch.c: Regenerate.
10224 * linux-tdep.c: Include `cli/cli-utils.h'.
10225 (linux_fill_prpsinfo): New function.
10226 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10227 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10228 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10229 depending on gdbarch pointer bitness.
10230 * ppc-linux-tdep.c: Include elf-bfd.h.
10231 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10232 on 32-bit.
10233
176eb98c
MS
102342013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10235 Marcus Shawcroft <marcus.shawcroft@arm.com>
10236 Nigel Stephens <nigel.stephens@arm.com>
10237 Yufeng Zhang <yufeng.zhang@arm.com>
10238
10239 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10240
cf0dbd6f
MS
102412013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10242 Marcus Shawcroft <marcus.shawcroft@arm.com>
10243 Nigel Stephens <nigel.stephens@arm.com>
10244 Yufeng Zhang <yufeng.zhang@arm.com>
10245
10246 * aarch64-newlib-tdep.c: New file.
10247 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10248 aarch64*-*-elf.
10249 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10250 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10251 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10252 * osabi.c (gdb_osabi_names): Add "Newlib".
10253
1ae3db19
MS
102542013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10255 Marcus Shawcroft <marcus.shawcroft@arm.com>
10256 Nigel Stephens <nigel.stephens@arm.com>
10257 Yufeng Zhang <yufeng.zhang@arm.com>
10258
10259 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10260 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10261 * aarch64-linux-tdep.c: New file.
10262 * aarch64-linux-tdep.h: New file.
10263 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10264 * configure.tgt: Add aarch64-none-linux-gnu.
10265
07b287a0
MS
102662013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10267 Marcus Shawcroft <marcus.shawcroft@arm.com>
10268 Nigel Stephens <nigel.stephens@arm.com>
10269 Yufeng Zhang <yufeng.zhang@arm.com>
10270
10271 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10272 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10273 (ALLDEPFILES): Add aarch64-tdep.c.
10274 * aarch64-tdep.c: New file.
10275 * aarch64-tdep.h: New file.
10276 * configure.tgt: Add AArch64.
10277 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10278 (aarch64-expedite): New definition.
10279 * features/aarch64-core.xml: New file.
10280 * features/aarch64-fpu.xml: New file.
10281 * features/aarch64-without-fpu.c: New file (generated).
10282 * features/aarch64-without-fpu.xml: New file.
10283 * features/aarch64.c: New file (generated).
10284 * features/aarch64.xml: New file.
10285 * regformats/aarch64-without-fpu.dat: New file (generated).
10286 * regformats/aarch64.dat: New file (generated).
10287
0f1b18ab
JK
102882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10289
10290 * contrib/expect-read1.c: New file.
10291 * contrib/expect-read1.sh: New file.
10292
233d95b5
JK
102932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10294
10295 * dwarf2read.c (file_file_name): New function with code from
10296 file_full_name.
10297 (file_full_name): Move most of the code to file_file_name.
10298 (macro_start_file): Rename variable full_name to file_name and use
10299 file_file_name for it. Add comp_dir parameter to new_macro_table.
10300 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10301 macro_source_file->filename access by macro_source_fullname call.
10302 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10303 caller.
10304 * macrotab.c (struct macro_table): New field comp_dir.
10305 (macro_include): New variables link_fullname and source_fullname.
10306 Replace any macro_source_file->filename access by macro_source_fullname
10307 call.
10308 (macro_lookup_inclusion): Remove the partial filenames checking code.
10309 (check_for_redefinition): New variables source_fullname and
10310 found_key_fullname. Replace any macro_source_file->filename access by
10311 macro_source_fullname call.
10312 (macro_undef): New variables source_fullname and key_fullname. Replace
10313 any macro_source_file->filename access by macro_source_fullname call.
10314 (macro_lookup_definition): New variables retval and source_fullname.
10315 Replace any macro_source_file->filename access by macro_source_fullname
10316 call.
10317 (foreach_macro): New variable key_fullname. Replace any
10318 macro_source_file->filename access by macro_source_fullname call.
10319 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10320 macro_source_file->filename access by macro_source_fullname call.
10321 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10322 (macro_source_fullname): New function.
10323 * macrotab.h (struct macro_source_file): Extent the filename field
10324 comment.
10325 (new_macro_table): New parameter comp_dir, add a comment for it.
10326 (macro_source_fullname): new declaration.
10327
da235a7c
JK
103282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10331 this_real_name to outer block. Use it also for
10332 compare_filenames_for_search.
10333 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10334 with dw2_get_real_path for file_matcher, considering also
10335 BASENAMES_MAY_DIFFER.
10336 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10337
fbd9ab74
JK
103382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10341 to the file_matcher parameter. Pass 0 to it.
10342 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10343 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10344 NULL psymtab_to_fullname result.
10345 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10346 an expected filename instead.
10347 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10348 file_matcher parameter. Call also psymtab_to_fullname, after newly
10349 considering BASENAMES_MAY_DIFFER.
10350 * source.c (rewrite_source_path): Remove static.
10351 * source.h (rewrite_source_path): New declaration.
10352 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10353 the expand_symtabs_matching field. Comment it.
10354 * symtab.c (file_matches): New function comment. Add parameter
10355 basenames, implement it.
10356 (search_symbols_file_matches): Add basenames parameter. Update the
10357 file_matches caller.
10358 (search_symbols): Match FILES also against symtab_to_fullname.
10359 Optimize it for BASENAMES_MAY_DIFFER.
10360
56d397a3
JK
103612013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10362
10363 * source.c (print_source_lines_base): Print for TUI also "fullname".
10364 * tui/tui-data.c (init_content_element): Change tui_locator_element
10365 field to full_name.
10366 * tui/tui-data.h (struct tui_locator_element): Likewise.
10367 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10368 tui_update_locator_filename calls to tui_update_locator_fullname.
10369 Replace symtab->filename refererence by symtab_to_fullname call.
10370 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10371 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10372 field to full_name. Replace symtab->filename refererence by
10373 symtab_to_fullname call.
10374 (tui_show_symtab_source): Rename parameter to fullname. Change
10375 tui_locator_element field to full_name.
10376 * tui/tui-stack.c: Include source.h.
10377 (tui_set_locator_filename): Rename the declaration to ...
10378 (tui_set_locator_fullname): ... here. Rename its parameter to
10379 fullname, updates its comment.
10380 (tui_set_locator_info): Rename its parameter to fullname.
10381 (tui_set_locator_filename): Rename the definition to ...
10382 (tui_set_locator_fullname): ... here. Rename its parameter to
10383 fullname, updates its comment. Change tui_locator_element field to
10384 full_name.
10385 (tui_set_locator_info): Rename its parameter to fullname.
10386 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10387 (tui_update_locator_filename): Rename to ...
10388 (tui_update_locator_fullname): ... here. Rename callee to
10389 tui_set_locator_fullname.
10390 (tui_show_frame_info): Replace symtab->filename refererence by
10391 symtab_to_fullname call.
10392 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10393 (tui_update_locator_fullname): ... here.
10394 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10395 tui_update_locator_fullname. Replace symtab->filename refererence by
10396 symtab_to_fullname call.
10397 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10398 Rename the callee to tui_update_locator_fullname.
10399 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10400
05cba821
JK
104012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10402
10403 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10404 by symtab_to_filename_for_display calls.
10405 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10406 (clear_command): New variable sal_fullname, initialize it. Replace
10407 compare_filenames_for_search by filename_cmp with sal_fullname.
10408 (say_where, update_static_tracepoint): Replace symtab->filename
10409 refererences by symtab_to_filename_for_display calls.
10410 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10411 Likewise.
10412 * dwarf2read.c: Include source.h.
10413 (fixup_go_packaging): Replace symtab->filename refererences by
10414 symtab_to_filename_for_display calls.
10415 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10416 Replace symtab->filename refererences by symtab_to_filename_for_display
10417 calls.
10418 (create_sals_line_offset, convert_linespec_to_sals): New variable
10419 fullname, initialize it, replace symtab->filename reference by the
10420 variable.
10421 * linux-fork.c: Include source.h.
10422 (info_checkpoints_command): Replace symtab->filename refererences by
10423 symtab_to_filename_for_display calls.
10424 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10425 by symtab_to_filename_for_display calls.
10426 * mdebugread.c: Include source.h.
10427 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10428 symtab_to_filename_for_display calls.
10429 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10430 (mi_cmd_file_list_exec_source_files): Likewise.
10431 * printcmd.c: Include source.h.
10432 (build_address_symbolic): Replace symtab->filename refererences by
10433 symtab_to_filename_for_display calls.
10434 * psymtab.c (partial_map_symtabs_matching_filename)
10435 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10436 with psymtab_to_fullname.
10437 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10438 by symtab_to_filename_for_display calls.
10439 (stpy_get_filename): New variable filename, initialize it, use instead
10440 of symtab->filename refererences.
10441 (salpy_str): Make variable filename const char *. Replace
10442 symtab->filename refererences by symtab_to_filename_for_display calls.
10443 * skip.c: Include source.h and filenames.h.
10444 (skip_file_command): Remove const from the symtab variable. Replace
10445 symtab->filename refererences by symtab_to_fullname call.
10446 (function_name_is_marked_for_skip): New variables searched_for_fullname
10447 and fullname. Use them to search also with symtab's fullname.
10448 * source.c (find_source_lines): Replace symtab->filename refererences
10449 by symtab_to_filename_for_display calls.
10450 (print_source_lines_base): New variable filename, use it instead of
10451 symtab->filename. Replace symtab->filename refererences by
10452 symtab_to_filename_for_display calls.
10453 (line_info, forward_search_command): Replace symtab->filename
10454 refererences by symtab_to_filename_for_display calls.
10455 (reverse_search_command): Replace symtab->filename refererences by
10456 symtab_to_filename_for_display calls. New variable filename for it.
10457 * stack.c (frame_info): Likewise.
10458 * symmisc.c: Include source.h.
10459 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10460 (maintenance_info_symtabs): Replace symtab->filename refererences by
10461 symtab_to_filename_for_display calls.
10462 * symtab.c (iterate_over_some_symtabs): Call
10463 compare_filenames_for_search also with symtab_to_fullname.
10464 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10465 symtab->filename refererences by symtab_to_filename_for_display calls.
10466 (find_line_symtab): Replace symtab->filename refererences by
10467 symtab_to_filename_for_display calls.
10468 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10469 (print_symbol_info): Make the last parameter const char *. New
10470 variable s_filename. Use it in the function.
10471 (symtab_symbol_info): Make the last_filename variable const char *.
10472 Replace symtab->filename refererences by symtab_to_filename_for_display
10473 calls.
10474 (rbreak_command): New variable fullname. Use it. Replace
10475 symtab->filename refererence by symtab_to_filename_for_display call.
10476 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10477 (print_one_static_tracepoint_marker): Replace symtab->filename
10478 refererences by symtab_to_filename_for_display calls.
10479 * tui/tui-source.c (tui_set_source_content): New variables filename and
10480 s_filename. Replace symtab->filename refererences by this variable.
10481 Replace other symtab->filename refererences by
10482 symtab_to_filename_for_display calls.
10483
1b56eb55
JK
104842013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10485 Jan Kratochvil <jan.kratochvil@redhat.com>
10486
10487 Add a new variable that controls a way in which filenames are
10488 displayed.
10489 * NEWS (set filename-display): New entry.
10490 * source.c (filename_display_basename, filename_display_relative)
10491 (filename_display_absolute, filename_display_kind_names)
10492 (filename_display_string, show_filename_display_string)
10493 (symtab_to_filename_for_display): New.
10494 (_initialize_source): Added initialization of 'filename-display'
10495 variable.
10496 * source.h (symtab_to_filename_for_display): Added declaration.
10497 * stack.c (print_frame): Added new variable and calling of a new
10498 function and condition with this variable. Changed third argument of
10499 calling of a function.
10500
aa079c93
JK
105012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10502
10503 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10504 Rename field reference filename to fullname.
10505 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10506 fullname. New comment for it.
10507 * tui/tui-source.c (tui_set_source_content): Rename field reference
10508 filename to fullname. Initialize field by symtab_to_fullname now.
10509 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10510 reference filename to fullname. Use symtab_to_fullname during
10511 comparison.
10512
652a8996
JK
105132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10514
10515 Code cleanup.
10516 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10517 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10518 filename to fullname. Rename variable this_name to this_fullname.
10519 Lowercase FILENAME_CMP call.
10520 (dw2_find_symbol_file): New comment for the returned string.
10521 (dwarf2_gdb_index_functions): Rename the function to
10522 dw2_expand_symtabs_with_fullname.
10523 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10524 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10525 fullname.
10526 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10527 * symfile.h (struct quick_symbol_functions): Rename field
10528 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10529 parameter filename to fullname. Document returned string meaning for
10530 find_symbol_file.
10531 * symtab.c (find_line_symtab): Rename the called function to
10532 expand_symtabs_with_fullname.
10533
af529f8f
JK
105342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 Code cleanup.
10537 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10538 call of filename_cmp with compare_filenames_for_search.
10539 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10540 is_abs, unify the call of FILENAME_CMP with
10541 compare_filenames_for_search. New gdb_asserts for real_path and name.
10542 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10543 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10544 * symfile.h (struct quick_symbol_functions): Extend the comment for
10545 map_symtabs_matching_filename.
10546 * symtab.c (compare_filenames_for_search): Remove the function comment
10547 relative path requirement. Handle absolute filenames, with a comment.
10548 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10549 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10550 real_path and name. Unify the call of compare_filenames_for_search
10551 with FILENAME_CMP.
10552 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10553
2f202fde
JK
105542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10555
10556 Code cleanup.
10557 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10558 source_file references by symtab field references. Remove variables
10559 sal and fullname.
10560 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10561 (clear_command, say_where): Replace bp_location field source_file
10562 references by symtab field references.
10563 (bp_location_dtor): Remove the source_file reference.
10564 (update_static_tracepoint): Replace bp_location field source_file
10565 references by symtab field references.
10566 (breakpoint_free_objfile): New function.
10567 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10568 Replace the field source_file by field symtab, extend its comment.
10569 (breakpoint_free_objfile): New declaration.
10570 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10571 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10572 field source_file references by symtab field references.
10573
f5b95b50
JK
105742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10575
10576 Replace xfullpath calls by gdb_realpath calls.
10577 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10578 function comment.
10579 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10580 Remove it from the iterate_over_some_symtabs call.
10581 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10582 Remove it from the dw2_map_expand_apply calls, remove a block handling
10583 it.
10584 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10585 Remove it from the iterate_over_some_symtabs call.
10586 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10587 Remove it from the partial_map_expand_apply calls, remove a block
10588 handling it. Drop gdb_realpath call and cleanups from the real_path
10589 handling.
10590 * source.c (openp): Drop the comment part about xfullpath. Replace
10591 xfullpath calls by gdb_realpath calls.
10592 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10593 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10594 from method map_symtabs_matching_filename and its comment.
10595 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10596 gdb_realpath call.
10597 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10598 remove it also from the function comment, remove a block handling it.
10599 Drop gdb_realpath call and cleanups from the real_path handling.
10600 (iterate_over_symtabs): Drop variable full_path and its use.
10601 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10602 * utils.c (xfullpath): Remove.
10603 * utils.h (xfullpath): Remove.
10604
d78489bf
AT
106052013-02-01 Andreas Tobler <andreast@fgznet.ch>
10606
10607 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10608 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10609 (ALLDEPFILES): Add ppc64-tdep.c.
10610 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10611 ppc64-tdep.o to gdb_target_obs.
10612 * ppc64-tdep.h: New file.
10613 * ppc64-tdep.c: New file.
10614 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10615 ppc-linux-tdep.c to here.
10616 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10617 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10618 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10619 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10620 from ppc-linux-tdep.c to here.
10621 (ppc64_convert_from_func_ptr_addr): Rename from
10622 ppc64_linux_convert_from_func_ptr_addr to
10623 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10624 here.
10625 * rs6000-tdep.c:
10626 (read_insn): Move from ppc-linux-tdep.c to here.
10627 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10628 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10629 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10630 Removed above functions.
10631 (ppc_linux_init_abi): Adjust.
10632
8db60374
AR
106332013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10634
10635 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10636
f2e5f4ce
AR
106372013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10638
10639 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10640
c1f7d745
PA
106412013-02-01 Pedro Alves <palves@redhat.com>
10642
10643 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10644 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10645
8a92335b
JK
106462013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10647
10648 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10649 files with no separate debug info.
10650 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10651 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10652 only for files with no separate debug info.
10653
8eacb197
TT
106542013-01-31 Tom Tromey <tromey@redhat.com>
10655
10656 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10657 change type.
10658 (struct jit_program_space_data): Rename from jit_inferior_data.
10659 Update comments.
10660 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10661 Change return type. Attach data to program space.
10662 (jit_program_space_data_cleanup): Rename from
10663 jit_inferior_data_cleanup; change argument type.
10664 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10665 change type.
10666 (jit_register_code): Update.
10667 (jit_update_inferior_cache): Remove.
10668 (jit_breakpoint_deleted): Get jit data from the location's program
10669 space.
10670 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10671 'ps_data', change type.
10672 (jit_inferior_init, jit_breakpoint_re_set_internal)
10673 (jit_event_handler): Update.
10674 (free_objfile_data): Get data from objfile's program space.
10675 (_initialize_jit): Update.
10676
f25c0135
TT
106772013-01-31 Tom Tromey <tromey@redhat.com>
10678
10679 PR gdb/13987:
10680 * jit.c (struct jit_inferior_data) <cached_code_address,
10681 jit_breakpoint>: New fields.
10682 (jit_breakpoint_re_set_internal): Fix logging. Only create
10683 breakpoint if cached address has changed.
10684 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10685 functions.
10686 (_initialize_jit): Register breakpoint deleted observer.
10687
974a734b
AR
106882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10689
10690 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10691 (save_infcall_suspend_state): Ifdef out unused inf.
10692 (restore_infcall_suspend_state): Ifdef out unused inf.
10693 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10694 (jit_frame_sniffer): Remove unused inf_data.
10695
df54f8eb
AR
106962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10697
10698 * c-exp.y (classify_inner_name): Remove unused type.
10699 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10700 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10701 need_escape.
10702 (c_get_string): Remove unused kind.
10703 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10704
5799c0b9
AR
107052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10706
10707 * charset.c (intermediate_encoding): Remove unused i.
10708 * completer.c (signal_completer): Remove unused i.
10709 * continuations.c (discard_my_continuations_1): Remove unused
10710 continuation_ptr.
10711 * corelow.c (core_close): Remove unuseD name.
10712 (get_core_siginfo): Remove unused pid.
10713 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10714 i, cps.
10715 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10716 (loclist_describe_location): Remove unused first.
10717 * event-top.c (command_line_handler): Remove unused got_eof.
10718 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10719 (resize_section_table): Remove unused old_value.
10720 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10721 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10722 * i386-tdep.c (i386_process_record): Remove unused rex.
10723 * infcmd.c (get_return_value): Remove unused uiout.
10724 * jv-lang.c (type_from_class): Remove unused is_array.
10725 * jv-valprint.c (java_val_print): Remove unused i.
10726 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10727 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10728 * m2-typeprint.c (m2_print_type): Remove unused code.
10729 * macroexp.c (get_character_constant): Remove unused body_start.
10730 (macro_stringify): Remove unused result.
10731 * objc-lang.c (find_methods): Remove unused gdbarch.
10732 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10733 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10734 * stack.c (print_frame_args): Remove unused summary.
10735 * thread.c (thread_apply_command): Remove unused p.
10736 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10737 * valops.c (search_struct_method): Remove unused skip.
10738 * valprint.c (generic_val_print): Remove unused byte_order.
10739 * varobj.c (varobj_update): Remove unused changed.
10740 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10741 (alias_command): Remove unused c.
10742 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10743 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10744 format.
10745 (mi_cmd_data_write_memory): Remove unused word_format.
10746 (mi_cmd_data_write_memory_bytes): Remove unused r.
10747 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10748 p_start, p_end.
10749 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10750 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10751 line_width.
10752
c656bca5
AR
107532013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10754
10755 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10756 * symtab.c (iterate_over_symtabs): Remove unused s.
10757 (find_pc_sect_symtab): Remove unused pspAce.
10758 (find_pc_sect_line): Remove unused alt_symtab.
10759 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10760 (completion_list_add_name): Remove unused newsize.
10761
7078baeb
TT
107622013-01-31 Tom Tromey <tromey@redhat.com>
10763
10764 PR c++/14998:
10765 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10766 TYPE_CODE_FUNC.
10767
c2e8b827
AR
107682013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10769
10770 * target.c (target_read_string): Remove unused origlen.
10771
0e43993a
AR
107722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10773
10774 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10775 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10776 * ax-general.c (ax_print): Remove unused is_float.
10777 * blockframe.c (block_innermost_frame): Remove unused start, end.
10778 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10779
765a97ab
AR
107802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10781
10782 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10783 (svr4_read_so_list): Remove unused lmo.
10784 * solib-target.c (solib_target_relocate_section_addresses): Remove
10785 unused flags.
10786
a99dad3d
TT
107872013-01-30 Tom Tromey <tromey@redhat.com>
10788
10789 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10790
3bff1ecd
TT
107912013-01-30 Tom Tromey <tromey@redhat.com>
10792
10793 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10794 * utils.c (gnu_debuglink_crc32): Remove.
10795 * utils.h (gnu_debuglink_crc32): Don't declare.
10796
7d455152
TT
107972013-01-30 Tom Tromey <tromey@redhat.com>
10798
10799 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10800 (read_structure_type, read_enumeration_type): Remove cast.
10801
abee88f2
TT
108022013-01-30 Tom Tromey <tromey@redhat.com>
10803
10804 * dwarf2read.c (read_namespace_type): Remove cast.
10805 (read_typedef): Likewise.
10806
8d9878a4
TT
108072013-01-29 Tom Tromey <tromey@redhat.com>
10808
10809 * dwarf2read.c (free_dwo_file): Remove assert.
10810
a543d2a9
TT
108112013-01-29 Tom Tromey <tromey@redhat.com>
10812
10813 * value.c (deprecated_set_value_modifiable): Remove.
10814 * value.h (deprecated_set_value_modifiable): Remove.
10815
bed911e5
DE
108162013-01-28 Doug Evans <dje@google.com>
10817
10818 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10819 to addresses from dwo files.
10820
28c64fc2
SCR
108212013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10822
10823 * valops.c (find_overload_match): Remove unused argument 'lax'.
10824 * value.h: Remove unused argument 'lax' from the declaration of
10825 find_overload_match.
10826 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10827 to find_overload_match.
10828 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10829 argument to find_overload_match.
10830
4d4ec4e5
TT
108312013-01-25 Tom Tromey <tromey@redhat.com>
10832
10833 * dwarf2read.c (processing_has_namespace_info): Remove.
10834 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10835 (process_die, read_func_scope, dwarf2_start_symtab)
10836 (new_symbol_full): Update.
10837
195a3f6c
TT
108382013-01-25 Tom Tromey <tromey@redhat.com>
10839
10840 * cp-namespace.c (cp_set_block_scope): Remove.
10841 * cp-support.h (cp_set_block_scope): Remove.
10842 * dbxread.c: Include block.h.
10843 (cp_set_block_scope): New function.
10844 (process_one_symbol): Update.
10845 * dwarf2read.c (read_func_scope): Use block_set_scope.
10846
8ba0730a
PA
108472013-01-25 Pedro Alves <palves@redhat.com>
10848
10849 * remote.c (add_current_inferior_and_thread): Tweak comment.
10850
12aaed36
TT
108512013-01-25 Tom Tromey <tromey@redhat.com>
10852
10853 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10854 (cp_add_using_directive): Add 'copy_names' argument.
10855 * cp-support.h (cp_add_using_directive): Update.
10856 (struct using_direct) <import_src, import_dest, alias,
10857 declaration>: Now const.
10858 * dwarf2read.c (read_import_statement): Use obconcat.
10859 Don't copy names passed to cp_add_using_directive.
10860
7fc75ca7
TT
108612013-01-25 Tom Tromey <tromey@redhat.com>
10862
10863 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10864
3405876a
PA
108652013-01-25 Pedro Alves <palves@redhat.com>
10866
10867 * remote.c (stop_reply_extract_thread): New.
10868 (add_current_inferior_and_thread): New parameter 'wait_status'.
10869 Handle it.
10870 (remote_start_remote): Pass wait status to
10871 add_current_inferior_and_thread.
10872 (extended_remote_run): Update comment.
10873 (extended_remote_create_inferior_1): Pass wait status to
10874 add_current_inferior_and_thread.
10875
8954db33
AB
108762013-01-25 Andrew Burgess <aburgess@broadcom.com>
10877 Ulrich Weigand <uweigand@de.ibm.com>
10878
10879 * valarith.c (value_vector_widen): New function for replicating a
10880 scalar into a vector.
10881 (value_binop): Use value_vector_widen to widen scalar to vector
10882 rather than casting, this better matches gcc C behaviour.
10883 * valops.c (value_casst): Update logic for casting between vector
10884 types, and for casting from scalar to vector, try to match gcc C
10885 behaviour.
10886 * value.h (value_vector_widen): Declare.
10887 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10888 function, handle special case for casting scalar to vector.
10889 (opencl_relop): Use opencl_value_cast.
10890 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10891 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10892 in order to use opencl_value_cast.
10893
843b20dc
YQ
108942013-01-25 Yao Qi <yao@codesourcery.com>
10895
10896 * event-loop.c: Include "queue.h".
10897 (gdb_event_p): New typedef.
10898 (DECLARE_QUEUE_P): Use.
10899 (DEFINE_QUEUE_P): Use.
10900 (async_queue_event): Remove.
10901 (gdb_event_xfree): New.
10902 (initialize_event_loop): New.
10903 (process_event): Use QUEUE macros.
10904 (event_queue): Remove.
10905 (gdb_wait_for_event): Caller update.
10906 (check_async_event_handlers): Likewise.
10907 (poll_timers): Likewise.
10908 * event-loop.h (initialize_event_loop): Declare.
10909 * event-loop.c (gdb_event_xfree): New.
10910 * top.c (gdb_init): Call initialize_event_loop.
10911
20ad8856
YQ
109122013-01-25 Yao Qi <yao@codesourcery.com>
10913
10914 * event-loop.c (async_queue_event): Remove one parameter
10915 'position'. Remove code handling 'position' == TAIL.
10916 (gdb_wait_for_event): Caller update.
10917 (check_async_event_handlers): Caller update.
10918 (poll_timers): Caller update.
10919 * event-loop.h (enum queue_position): Remove.
10920
3bbbe775
MK
109212013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10922
10923 * MAINTAINERS: Update my email.
10924
a87d9ac4
YQ
109252013-01-25 Yao Qi <yao@codesourcery.com>
10926
10927 * main.c (print_gdb_help): Remove "--epoch" from the help
10928 message.
10929
2077afdd
TD
109302013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10931
10932 * symtab.c (skip_prologue_using_sal): Consider a file
10933 change the same as an increased line number
10934
63da4037
TD
109352013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10936
30e8ee25 10937 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10938
45e6c716
TT
109392013-01-24 Tom Tromey <tromey@redhat.com>
10940
10941 * ada-lang.h (ada_decode_symbol): Make return type const.
10942 * ada-lang.c (ada_decode_symbol): Likewise.
10943
b1ae631a
DE
109442013-01-23 Doug Evans <dje@google.com>
10945
10946 * linespec.c (find_linespec_symbols): Make static.
10947
55a78401
SDJ
109482013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10949
10950 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10951 type on float conversion for complex type.
10952
bea883fd
SCR
109532013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10954
10955 Add a new class gdb.Architecture which exposes GDB's
10956 internal representation of architecture via GDB Python API.
10957 * Makefile.in: Add entries corresponding to the new file
10958 python/py-arch.c.
10959 * NEWS (Python Scripting): Add entries for the new class
10960 gdb.Architecture and the new method gdb.Frame.architecture.
10961 * python/py-arch.c: Implement gdb.Architecture class.
10962 * python/py-frame.c (frapy_arch): Implement the method
10963 gdb.Frame.architecture().
10964 (frame_object_methods): Add 'architecture' to the method table.
10965 * python/python-internal.h: Add declarations of new utility
10966 functions.
10967 * python/python.c (_initialize_python): Initialize
10968 gdb.Architecture class.
10969
796a7ff8
DE
109702013-01-23 Doug Evans <dje@google.com>
10971
10972 Work around binutils/15021.
10973 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10974 type_unit_group out of union s. All uses updated.
10975 (read_index_from_section): Watch for index version 8.
10976 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10977 an imported symtab.
10978 (write_psymtabs_to_index): Increment version number to 8.
10979
0928e93d
PA
109802013-01-22 Pedro Alves <palves@redhat.com>
10981
10982 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10983 user-visible.
10984
9c97429f
PA
109852013-01-22 Pedro Alves <palves@redhat.com>
10986
10987 * annotate.c (annotate_breakpoints_changed): Rename to ...
10988 (annotate_breakpoints_invalid): ... this. Make static.
10989 (breakpoint_changed): Adjust.
10990 (_initialize_annotate): Always install the observers. Install a
10991 "breakpoint_created" observer.
10992 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10993 * breakpoint.c (set_breakpoint_condition)
10994 (breakpoint_set_commands, do_map_commands_command)
10995 (init_raw_breakpoint, clear_command, set_ignore_count)
10996 (enable_breakpoint_disp): No longer call
10997 annotate_breakpoints_changed.
10998
bd00c694
PA
109992013-01-22 Pedro Alves <palves@redhat.com>
11000
11001 * annotate.c: Include "inferior.h".
11002 (frames_invalid_emitted)
11003 (breakpoints_invalid_emitted): New globals.
11004 (async_background_execution_p): New function.
11005 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11006 emitting the annotation if it has already been emitted.
11007 (annotate_display_prompt): New function.
11008 * annotate.h (annotate_display_prompt): New declaration.
11009 * event-top.c: Include annotate.h.
11010 (display_gdb_prompt): Call annotate_display_prompt.
11011
187d10dd
PA
110122013-01-22 Pedro Alves <palves@redhat.com>
11013
11014 * annotate.c (ignore_count_changed): Delete.
11015 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11016 (annotate_ignore_count_change): Delete.
11017 (annotate_stopped): Don't emit a delayed breakpoints-changed
11018 annotation.
11019 * annotate.h (annotate_ignore_count_change): Delete.
11020 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11021 annotate_ignore_count_change.
11022
d84cf7eb
TT
110232013-01-22 Tom Tromey <tromey@redhat.com>
11024
11025 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11026 require_rvalue for a register location.
11027
8f1d5693
MK
110282013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11029
11030 * breakpoint.c (print_one_breakpoint_location): Add MI
11031 field 'thread-groups' when printing a breakpoint.
11032 (output_thread_groups): New function.
11033
aa6199c6
SCR
110342013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11035
11036 * python/lib/gdb/commands/explore.py
11037 (CompoundExplorer.explore_expr): Correct the name of a method
11038 being invoked.
11039 (ExploreTypeCommand.invoke): Add a missing 'return'.
11040
d2afef13
TT
110412013-01-21 Tom Tromey <tromey@redhat.com>
11042
11043 * gdb_obstack.h (obconcat): Move declaration here, from...
11044 * symfile.h (obconcat): ... here.
11045 * gdb_obstack.c: New file.
11046 (obconcat): Move from...
11047 * symfile.c (obconcat): ... here.
11048 * Makefile.in (SFILES): Add gdb_obstack.c.
11049 (COMMON_OBS): Add gdb_obstack.o.
11050
10f0c4bb
TT
110512013-01-21 Tom Tromey <tromey@redhat.com>
11052
11053 * symfile.h (obsavestring): Don't declare.
11054 * symfile.c (obsavestring): Remove.
11055 * ada-exp.y: Use obstack_copy0, not obsavestring.
11056 * ada-lang.c: Use obstack_copy0, not obsavestring.
11057 * coffread.c: Use obstack_copy0, not obsavestring.
11058 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11059 * dbxread.c: Use obstack_copy0, not obsavestring.
11060 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11061 * jit.c: Use obstack_copy0, not obsavestring.
11062 * mdebugread.c: Use obstack_copy0, not obsavestring.
11063 * psymtab.c: Use obstack_copy0, not obsavestring.
11064 * stabsread.c: Use obstack_copy0, not obsavestring.
11065 * xcoffread.c: Use obstack_copy0, not obsavestring.
11066
86f62fd7
TT
110672013-01-21 Tom Tromey <tromey@redhat.com>
11068
11069 * dwarf2read.c (fixup_go_packaging): Save package name
11070 on objfile obstack.
11071 * gdbtypes.c (init_type): Don't copy name.
11072
15d034d0
TT
110732013-01-21 Tom Tromey <tromey@redhat.com>
11074
11075 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11076 const.
11077 (struct attribute) <u.str>: Now const.
11078 (struct fnfieldlist) <name>: Now const.
11079 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11080 (partial_die_parent_scope): Make return type const.
11081 (partial_die_full_name, add_partial_symbol): Update.
11082 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11083 'name' const.
11084 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11085 (read_file_scope, read_func_scope, dwarf2_add_field)
11086 (dwarf2_add_member_fn, read_structure_type)
11087 (process_enumeration_scope, read_array_type, read_module_type)
11088 (read_base_type, read_subrange_type): Update.
11089 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11090 (new_symbol_full, guess_full_die_structure_name): Update.
11091 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11092 (dwarf2_name): Return const type.
11093 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11094 const.
11095
748e18ae
TT
110962013-01-21 Tom Tromey <tromey@redhat.com>
11097
11098 * gdbtypes.c (init_type): Make 'name' const.
11099 * gdbtypes.h (init_type): Update.
11100
46212e0b
TT
111012013-01-21 Tom Tromey <tromey@redhat.com>
11102
11103 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11104 (start_symtab): Make 'name' and 'dirname' const. Use
11105 set_last_source_file.
11106 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11107 (last_source_file): Define. Now static.
11108 (set_last_source_file, get_last_source_file): New functions.
11109 * buildsym.h (last_source_file): Don't declare.
11110 (start_symtab): Update.
11111 (set_last_source_file, get_last_source_file): Declare.
11112 * coffread.c (complete_symtab): Use set_last_source_file.
11113 (coff_end_symtab): Likewise.
11114 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11115 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11116 set_last_source_file.
11117 (process_one_symbol): Use get_last_source_file.
11118 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11119 (psymtab_to_symtab_1): Use get_last_source_file.
11120 * xcoffread.c (process_linenos): Use get_last_source_file.
11121 (complete_symtab): Use set_last_source_file.
11122 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11123 (scan_xcoff_symtab): Use set_last_source_file.
11124
9d2ceabe
TT
111252013-01-21 Tom Tromey <tromey@redhat.com>
11126
11127 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11128 (symbol_set_names): Remove casts. Handle field const-ness.
11129
cfc594ee
TT
111302013-01-21 Tom Tromey <tromey@redhat.com>
11131
11132 * dwarf2read.c (new_symbol_full): Remove cast.
11133 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11134 * symtab.h (symbol_set_demangled_name): Update.
11135
5484b13a
TT
111362013-01-21 Tom Tromey <tromey@redhat.com>
11137
11138 * main.c (captured_main): Call bfd_init.
11139
1605ef26
TT
111402013-01-21 Tom Tromey <tromey@redhat.com>
11141
11142 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11143 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11144 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11145 * NEWS: Update.
11146
3b74cdc3
JK
111472013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11148
11149 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11150
5a352474
JK
111512013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11152
11153 Fix gdb.fortran/common-block.exp crash in PIE mode.
11154 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11155 LOC_COMMON_BLOCK.
11156 * f-valprint.c (info_common_command_for_block): Expect
11157 LOC_COMMON_BLOCK in gdb_assert.
11158 * symtab.h (struct general_symbol_info): Update comment for the
11159 common_block member.
11160 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11161 (enum address_class): New member LOC_COMMON_BLOCK.
11162
c60797fd
DB
111632013-01-18 David Blaikie <dblaikie@gmail.com>
11164
11165 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11166
46f35228
TT
111672013-01-18 Tom Tromey <tromey@redhat.com>
11168
11169 PR c++/14999:
11170 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11171 Call require_rvalue.
11172
257e7a09
YQ
111732013-01-18 Yao Qi <yao@codesourcery.com>
11174
11175 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11176 (dbx_read_symtab): New declaration.
11177 (dbx_psymtab_to_symtab): Delete.
11178 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11179 Rename parameter PST to SELF. Exchanged two parameters.
11180 (start_psymtab): Caller update.
11181 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11182 (dwarf2_read_symtab): New declaration.
11183 (dwarf2_psymtab_to_symtab): Delete.
11184 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11185 Rename parameter PST to SELF. Exchanged two parameters.
11186 (create_partial_symtab): Caller update.
11187 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11188 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11189 Rename parameter PST to SELF. Exchanged two parameters.
11190 (parse_partial_symbols, new_psymtab): Caller update.
11191 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11192 two parameters.
11193 * psymtab.c (psymtab_to_symtab): Caller update.
11194 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11195 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11196 Rename parameter PST to SELF. Exchanged two parameters.
11197 (xcoff_start_psymtab): Caller update.
11198
0de5618e
YQ
111992013-01-18 Yao Qi <yao@codesourcery.com>
11200
11201 * infrun.c (proceed): Rename local variable 'oneproc' to
11202 'force_step'.
11203
5c04624b
DE
112042013-01-17 Doug Evans <dje@google.com>
11205
848e3e78
DE
11206 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11207 (dw2_build_type_unit_groups): Delete. All uses updated.
11208
5c04624b
DE
11209 * symtab.h (struct symbol_search): Add comment.
11210
d84fca2c
JK
112112013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * symtab.c (compare_filenames_for_search): New comment for
11214 HAS_DRIVE_SPEC.
11215
6108433d
TT
112162013-01-17 Tom Tromey <tromey@redhat.com>
11217
11218 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11219
c89ffd86
JK
112202013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11221
11222 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11223 initialize it by existing make_cleanup. Call new do_cleanups.
11224
db2b2972
TT
112252013-01-17 Tom Tromey <tromey@redhat.com>
11226
11227 * cp-abi.c (cp_abi_completer): New function.
11228 (_initialize_cp_abi): Set completer for "set cp-abi".
11229
be7d37a2
TT
112302013-01-17 Tom Tromey <tromey@redhat.com>
11231
11232 * mem-break.c: Remove obsolete comment.
11233 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11234
c9fb1240
SD
112352012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11236
11237 * jit.c (jit_reader_load_command): Interpret the jit reader name
11238 as an absolute path if it begins with a forward slash.
11239
db334a01
SD
112402012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11241
11242 PR gdb/14550
11243
11244 * jit.c (finalize_symtab): Ensure that only the global block has a
11245 NULL superblock.
11246
7d928dac
PA
112472013-01-17 Pedro Alves <palves@redhat.com>
11248
11249 * acinclude.m4: Include ../config/plugins.m4,
11250 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11251 * Makefile.in (aclocal_m4_deps): Update.
11252 * aclocal.m4: Renegerate.
11253
fb8cf7c5
DE
112542013-01-16 Doug Evans <dje@google.com>
11255
11256 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11257
ab04a2af
TT
112582013-01-16 Pedro Alves <palves@redhat.com>
11259 Tom Tromey <tromey@redhat.com>
11260
11261 PR cli/7221:
11262 * NEWS: Add "catch signal".
11263 * breakpoint.c (base_breakpoint_ops): No longer static.
11264 (bpstat_explains_signal): New function.
11265 (init_catchpoint): No longer static.
11266 (base_breakpoint_explains_signal): New function.
11267 (base_breakpoint_ops): Initialize new field.
11268 * breakpoint.h (enum bpstat_signal_value): New.
11269 (struct breakpoint_ops) <explains_signal>: New field.
11270 (bpstat_explains_signal): Remove macro, declare as function.
11271 (base_breakpoint_ops, init_catchpoint): Declare.
11272 * break-catch-sig.c: New file.
11273 * inferior.h (signal_catch_update): Declare.
11274 * infrun.c (signal_catch): New global.
11275 (handle_syscall_event): Update for change to
11276 bpstat_explains_signal.
11277 (handle_inferior_event): Likewise. Always handle random signals
11278 via bpstats.
11279 (signal_cache_update): Check signal_catch.
11280 (signal_catch_update): New function.
11281 (_initialize_infrun): Initialize signal_catch.
11282 * Makefile.in (SFILES): Add break-catch-sig.c.
11283 (COMMON_OBS): Add break-catch-sig.o.
11284
8ac3646f
TT
112852013-01-16 Tom Tromey <tromey@redhat.com>
11286
11287 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11288 (print_one_catch_solib, print_one_catch_syscall)
11289 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11290 "catch-type".
11291
5a18e302
YQ
112922013-01-16 Yao Qi <yao@codesourcery.com>
11293
11294 * printcmd.c (current_display_number): Make it static.
11295
3f01d0d0
YQ
112962013-01-16 Yao Qi <yao@codesourcery.com>
11297
11298 * infcmd.c (step_once): Don't check '!single_inst' as it was
11299 checked before.
11300
1ed59174
JK
113012013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11302
11303 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11304
44478ab3
TT
113052013-01-14 Tom Tromey <tromey@redhat.com>
11306
11307 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11308 set command.
11309 * command.h (add_setshow_string_noescape_cmd): Update.
11310 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11311 (complete_set_gnutarget): New function.
11312 (_initialize_core): Set the "set gnutarget" completer.
11313
06d66ee9
TT
113142013-01-14 Tom Tromey <tromey@redhat.com>
11315
11316 PR symtab/14442:
11317 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11318 (c_type_print_modifier): Likewise.
11319 * dwarf2read.c (read_tag_restrict_type): New function.
11320 (read_type_die_1): Handle DW_TAG_restrict_type.
11321 * gdbtypes.c (make_restrict_type): New function.
11322 (recursive_dump_type): Handle TYPE_RESTRICT.
11323 * gdbtypes.h (enum type_flag_values): Renumber.
11324 (enum type_instance_flag_value): Add
11325 TYPE_INSTANCE_FLAG_RESTRICT.
11326 (TYPE_RESTRICT): New macro.
11327 (make_restrict_type): Declare.
11328
c9bf0622
TT
113292013-01-14 Tom Tromey <tromey@redhat.com>
11330
11331 PR symtab/14931:
11332 * psymtab.c (struct psymtab_state): New.
11333 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11334 functions.
11335 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11336 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11337
44d594fd
PA
113382013-01-14 Richard Sharman <richard_sharman@mitel.com>
11339 Pedro Alves <palves@redhat.com>
11340
11341 PR remote/14786
11342
11343 * remote.c (remote_threads_info): Make a copy of the reply from
11344 qfThreadInfo and use that instead of rs->buf.
11345
442e4d9c
YQ
113462013-01-14 Yao Qi <yao@codesourcery.com>
11347
11348 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11349 (dbx_psymtab_to_symtab): Likewise.
11350 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11351 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11352 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11353
5b12a61c
JK
113542013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11357 make_cleanup_restore_current_language. Call set_language. Move
11358 OLD_CHAIN and INNER_CHAIN cleanups.
11359 * utils.c (do_restore_current_language)
11360 (make_cleanup_restore_current_language): New functions.
11361 * utils.h (make_cleanup_restore_current_language): New declaration.
11362
f0a4b570
JK
113632013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11364
11365 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11366 non-existing files.
11367
57b3c00c
JK
11368 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11369 non-existing files if FILENAME is already absolute.
11370
daefa854
JK
113712013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11372
11373 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11374 fputs_filtered. Append trailing newline.
11375
ca9c6ee2
YQ
113762013-01-11 Yao Qi <yao@codesourcery.com>
11377 Stan Shebs <stan@codesourcery.com>
11378
11379 * psymtab.c (init_psymbol_list): Clarify the comment.
11380
f28045c2
YQ
113812013-01-11 Yao Qi <yao@codesourcery.com>
11382
11383 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11384 (update_dprintf_command_list): Assert that 'printf_line' is
11385 non-null. Remove condition check.
11386
da5132d3
JK
113872013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11388
11389 Code cleanup.
11390 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11391 type const char *.
11392 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11393 const char *.
11394 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11395
843e694d
AG
113962013-01-09 Anthony Green <green@moxielogic.com>
11397
11398 * cp-abi.c (cplus_print_vtable): Don't return value from void
11399 function.
11400 * ada-lang.c (re_set_catch_assert): Ditto.
11401
da51c347
DE
114022013-01-09 Doug Evans <dje@google.com>
11403
11404 * symfile.h (quick_symbol_functions): Delete member
11405 pre_expand_symtabs_matching. All uses removed.
11406 * dwarf2read.c (dw2_lookup_symbol): Implement.
11407 (dw2_do_expand_symtabs_matching): Delete.
11408 (dw2_pre_expand_symtabs_matching): Delete.
11409 (struct dw2_symtab_iterator): New type.
11410 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11411 (dw2_expand_symtabs_for_function): Rewrite.
11412 (dwarf2_gdb_index_functions): Update.
11413 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11414 (psym_functions): Update.
11415
b2259038
TT
114162013-01-09 Tom Tromey <tromey@redhat.com>
11417
11418 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11419 * configure: Rebuild.
11420 * configure.ac: Add somread.o to the build if BFD has SOM
11421 support.
11422 * somread.c: Include som/aout.h, not syms.h.
11423 (som_symtab_read): Use som_external_symbol_dictionary_record.
11424 Unpack records manually.
11425 (_initialize_somread): Declare.
11426
bdad4180
MF
114272012-01-08 Mike Frysinger <vapier@gentoo.org>
11428
11429 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11430 Cast return_address to 64bits.
11431
03cdf680
HZ
114322013-01-08 Hui Zhu <hui_zhu@mentor.com>
11433
11434 * printcmd.c: Remove define of function output_command.
11435 * tracepoint.c: Remove extern of function output_command.
11436 * valprint.h: (output_command): New extern.
11437
8a808554
TT
114382013-01-07 Tom Tromey <tromey@redhat.com>
11439
11440 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11441 Remove.
11442 (objc_language_defn): Use c_printchar, c_printstr,
11443 c_emit_char.
11444
e93a8774
TT
114452013-01-07 Tom Tromey <tromey@redhat.com>
11446
11447 PR cli/7719:
11448 * NEWS: Update.
11449 * ada-valprint.c (printstr, print_field_values): Remove
11450 "inspect_it" code.
11451 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11452 code.
11453 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11454 code.
11455 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11456 * main.c (captured_main): Remove "epoch" argument.
11457 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11458 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11459 * p-valprint.c (pascal_object_print_value_fields): Remove
11460 "inspect_it" code.
11461 * printcmd.c (print_command_1): Remove 'inspect' argument.
11462 (print_command, call_command): Update.
11463 (inspect_command): Remove.
11464 (_initialize_printcmd): Make "inspect" an alias for "print".
11465 * top.c (epoch_interface): Remove.
11466 * top.h (epoch_interface): Remove.
11467 * valprint.c (user_print_options): Update.
11468 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11469 * valprint.h (struct value_print_options) <inspect_it>: Remove
11470 field.
11471
114722013-01-04 Tom Tromey <tromey@redhat.com>
11473
11474 * valprint.h (read_string): Add 'extern'.
11475
b967eb24
JB
114762013-01-07 Joel Brobecker <brobecker@adacore.com>
11477
11478 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11479 used to decide whether to define darwin_read_dyld_info or not.
11480
78a8b30e
PM
114812013-01-03 Pierre Muller <muller@sourceware.org>
11482
11483 * main.c (relocate_gdb_directory): Avoid calling stat function
11484 if DIR is empty.
11485
50da2f25
YQ
114862013-01-03 Yao Qi <yao@codesourcery.com>
11487
11488 * psymtab.c (fixup_psymbol_section): Update declaration.
11489 (fixup_psymbol_section): Remove code returning value.
11490
e7e8980f
YQ
114912013-01-03 Yao Qi <yao@codesourcery.com>
11492
11493 * symtab.h: Remove some out of date comments.
11494 (enum exception_event_kind): Move it ...
11495 * breakpoint.c: ... here.
11496
569283d4
MF
114972013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11498
9f9d9a96 11499 PR gdb/14405
569283d4
MF
11500 * darwin-nat.c (darwin_read_dyld_info): Only build if
11501 TASK_DYLD_INFO_COUNT is defined.
11502 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11503 TASK_DYLD_INFO_COUNT is defined.
11504
2e36fbea
TT
115052013-01-02 Tom Tromey <tromey@redhat.com>
11506
11507 * symfile.h (struct ecoff_debug_hack): Remove.
11508 * objfiles.c: Don't include mdebugread.h.
11509
4f05add4
TT
115102013-01-02 Tom Tromey <tromey@redhat.com>
11511
11512 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11513 * configure.ac: Check for Mach-O support in BFD. Update
11514 CONFIG_OBS.
11515 * configure: Rebuild.
11516
def63ff0
TT
115172013-01-02 Tom Tromey <tromey@redhat.com>
11518
11519 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11520 * configure.ac: Use GDB_AC_CHECK_BFD.
11521 * configure: Rebuild.
11522
60c5dd93
MK
115232013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11524
11525 * MAINTAINERS: Update my email.
11526
6e58437e
JB
115272013-01-01 Joel Brobecker <brobecker@adacore.com>
11528
11529 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11530
627fe805
JB
115312013-01-01 Joel Brobecker <brobecker@adacore.com>
11532
11533 * rs6000-nat.c (bss_data_overlap): New function.
11534 (vmap_symtab): Use it to adjust the .bss section's offset.
11535
28e7fd62
JB
115362013-01-01 Joel Brobecker <brobecker@adacore.com>
11537
11538 Update year range in copyright notice of all files.
11539
e93a8774 115402013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11541
11542 * top.c (print_gdb_version): Update copyright year.
11543
72b20e9c 11544For older changes see ChangeLog-2012.
c906108c
SS
11545\f
11546Local Variables:
11547mode: change-log
11548left-margin: 8
11549fill-column: 74
11550version-control: never
57da7796 11551coding: utf-8
c906108c 11552End:
This page took 2.02517 seconds and 4 git commands to generate.