* gdb.python/py-arch.exp: Tweak test name for bad memory access test.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6682d959
AA
12013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * s390-linux-nat.c (s390_read_description): Consider the TE field
4 in the HWCAP for determining 'have_regset_tdb'.
5
b9502d3f
WN
62013-11-06 Will Newton <will.newton@linaro.org>
7
8 PR gdb/12866
9 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
10 values. (read_partial_die): Likewise.
11
840da61a
MB
122013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
13
14 PR cli/16122
15 * top.c (command_line_input): Unify interactivity tests to use
16 input_from_terminal_p.
17 * event-top.c (command_line_handler): Likewise.
18
7636ccf9
YQ
192013-11-06 Yao Qi <yao@codesourcery.com>
20
21 * Makefile.in (check-perf): New target.
22
12b27276
WN
232013-11-05 Will Newton <will.newton@linaro.org>
24
25 PR gdb/7670
26 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
27 (arm_print_float_info): Likewise.
28
67c059c2
AB
292013-11-04 Anton Blanchard <anton@samba.org>
30
31 * target.c (memory_xfer_partial): Cap write to 4KB.
32
0569175e
TSD
332013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
34
35 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
36 probe scan even when the arch provides no get_longjmp_target.
37
b18e90f5
PA
382013-10-31 Pedro Alves <palves@redhat.com>
39
40 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
41 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
42 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
43 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
44 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
45 <bpstat handling>: If the bpstat chain wants the signal to be
46 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
47 GDB_SIGNAL_TRAP.
48
638aa5a1
AB
492013-10-31 Andrew Burgess <aburgess@broadcom.com>
50
51 * breakpoint.c (update_watchpoint): Update error message and add
52 an additional error message.
53
0e5fae36
UW
542013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
55
56 * s390-tdep.h: Rename to...
57 * s390-linux-tdep.h: ...here.
58 * s390-tdep.c: Rename to...
59 * s390-linux-tdep.c: ...here. Adjust #include.
60 * s390-nat.c: Rename to...
61 * s390-linux-nat.c: ...here. Adjust #include.
62 * config/s390/s390.mh: Rename to...
63 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
64 s390-linux-nat.o.
65 * configure.host: Reflect host rename "s390" -> "linux".
66 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
67 * Makefile.in (ALL_TARGET_OBS): Likewise.
68 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
69 s390-linux-tdep.h.
70 (ALLDEPFILES): Reflect rename of .c files.
71
34201ae3
UW
722013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
73
74 * s390-nat.c: Whitespace cleanup.
75 * s390-tdep.c: Likewise.
76 * s390-tdep.h: Remove empty line at end of file.
77
e17aaa33
MR
782013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
79
80 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
81 siginfo_size.
82
aee17e42
TT
832013-10-29 Tom Tromey <tromey@redhat.com>
84
85 * utils.c (reg): Move undefinition...
86 * gdb_curses.h: ... here. Update comment to mention AIX.
87
9ac69859
NB
882013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
89
90 * exec.h (add_target_sections_of_objfile): New declaration.
91 * exec.c (add_target_sections_of_objfile): New function.
92 * symfile.c (add_symbol_file_command): Update current target sections.
93 (remove_symbol_file_command): New command.
94 (symfile_free_objfile): New function.
95 (_initialize_symfile): Register observer for free_objfile events.
96 * NEWS: Add description of the remove-symbol-file command.
97 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
98 * objfiles.c (free_objfile): Notify free_objfile.
99 (is_addr_in_objfile): New function.
100 * objfiles.h (is_addr_in_objfile): New declaration.
101 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
102 events instead of solib_unloaded events.
103 (_initialize_printcmd): Register observer for free_objfile instead
104 of solib_unloaded notifications.
105 * solib.c (remove_user_added_objfile): New function.
106 (_initialize_symfile): Add remove-symbol-file.
107
f69d9aef
AB
1082013-10-29 Andrew Burgess <aburgess@broadcom.com>
109
110 * infcmd.c (default_print_one_register_info): Use val_print to
111 print all values even optimized out or unavailable ones. Don't
112 try to print a raw form of optimized out or unavailable values.
113
487ad57c
YQ
1142013-10-29 Yao Qi <yao@codesourcery.com>
115
116 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
117 parameter 'arg' instead of from program_space_data.
118 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
119 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
120 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
121 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
122 * inflow.c (inflow_inferior_data_cleanup): Get data from
123 parameter 'arg' instead of inferior_data.
124 * registry.h: Add comments.
125
3c4797ba
PA
1262013-10-28 Pedro Alves <palves@redhat.com>
127
128 * breakpoint.c (watchpoints_triggered)
129 <!target_stopped_data_address>: Hardcode return 1.
130
cdaa5b73
PA
1312013-10-28 Pedro Alves <palves@redhat.com>
132
133 * infrun.c (process_event_stop_test): Remove unnecessary scoping
134 level and reindent.
135
94c57d6a
PA
1362013-10-28 Pedro Alves <palves@redhat.com>
137
138 * infrun.c (process_event_stop_test): New function, factored out
139 from handle_inferior_event.
140 (handle_inferior_event): 'process_event_stop_test' is now a
141 function instead of a goto label -- adjust.
142
fcf3daef
PA
1432013-10-28 Pedro Alves <palves@redhat.com>
144
145 * infrun.c (handle_inferior_event): Move process_event_stop_test
146 goto label to the else branch of the ecs->random_signal check,
147 along with FRAME and GDBARCH re-fetching.
148
c447ac0b
PA
1492013-10-28 Pedro Alves <palves@redhat.com>
150
151 * infrun.c (switch_back_to_stepped_thread): New function, factored
152 out from handle_inferior_event.
153 (handle_inferior_event): Adjust to call
154 switch_back_to_stepped_thread. Call it also at the tail of the
155 random signal handling, and return, instead of also handling
156 random signals just before the stepping tests.
157
f05e4c11
PA
1582013-10-28 Pedro Alves <palves@redhat.com>
159
160 * infrun.c (clear_stop_func): Delete.
161 (handle_inferior_event): Don't call clear_stop_func and don't
162 clear 'ecs->random_signal'.
163
ca20d462
YQ
1642013-10-27 Yao Qi <yao@codesourcery.com>
165
166 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
167 (varobj_create, varobj_get_path_expr): Update.
168 (varobj_value_has_mutated, varobj_update): Likewise.
169 (create_child_with_value, new_root_variable): Likewise.
170 (number_of_children, name_of_variable): Likewise.
171 (value_of_child, my_value_of_variable): Likewise.
172 (varobj_value_is_changeable_p): Likewise.
173
a53b64ea
YQ
1742013-10-25 Yao Qi <yao@codesourcery.com>
175
176 * language.h (struct lang_varobj_ops): Declare.
177 (struct language_defn) <la_varobj_ops>: New field.
178 * ada-lang.c: Include "varobj.h"
179 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
180 ada_varobj_ops.
181 * c-lang.c: Include "varobj.h"
182 (c_language_defn): Initialize field 'la_varobj_ops' with
183 c_varobj_ops.
184 (cplus_language_defn): Initialize field 'la_varobj_ops' with
185 cplus_varobj_ops.
186 (asm_language_defn): Initialize field 'la_varobj_ops' with
187 default_varobj_ops.
188 (minimal_language_defn): Likewise.
189 * d-lang.c (d_language_defn): Likewise.
190 * f-lang.c (f_language_defn): Likewise.
191 * go-lang.c (go_language_defn): Likewise.
192 * m2-lang.c (m2_language_defn): Likewise.
193 * objc-lang.c (objc_language_defn): Likewise.
194 * opencl-lang.c (opencl_language_defn): Likewise.
195 * p-lang.c (pascal_language_defn): Likewise.
196 * language.c (unknown_language_defn): Likewise.
197 (auto_language_defn): Likewise.
198 (local_language_defn): Likewise.
199 * jv-lang.c (java_language_defn): Initialize field
200 'la_varobj_ops' with java_varobj_ops.
201 * varobj.c (varobj_create): Update.
202 * varobj.h (default_varobj_ops): Define macro.
203
686d4def
PA
2042013-10-25 Pedro Alves <palves@redhat.com>
205
206 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
207 static field value.
208 (cp_print_static_field): If the value is entirely optimized out,
209 print <optimized out> here.
210 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
211 static field value.
212 * p-valprint.c (pascal_object_print_static_field): If the value is
213 entirely optimized out, print <optimized out> here.
214 * valops.c (do_search_struct_field)
215 (value_struct_elt_for_reference): No longer handle a NULL static
216 field value.
217 * value.c (value_static_field): Return an optimized out value
218 instead of NULL.
219
6c177e28
YQ
2202013-10-25 Yao Qi <yao@codesourcery.com>
221
222 * remote.c (remote_traceframe_info): Return early if
223 traceframe is not selected.
224
98322bfa
YQ
2252013-10-25 Yao Qi <yao@codesourcery.com>
226
227 * tracepoint.c (traceframe_fun): Remove.
228 (traceframe_sal): Remove.
229 (set_traceframe_context): Add local variables.
230
6ba1f115
JB
2312013-10-25 Joel Brobecker <brobecker@adacore.com>
232
233 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
234 and parameter name.
235
bbe769cc
MR
2362013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
237
238 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
239 failure from register information collection.
240
72ee4495 2412013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
242
243 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
244 member.
245 (linux_corefile_thread_callback): Update accordingly.
246 (linux_make_corefile_notes): Likewise.
247
98882a26
PA
2482013-10-24 Pedro Alves <palves@redhat.com>
249
250 * NEWS (New options): Mention set/show startup-with-shell.
251 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
252 instead of 3.
253 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
254 startup-with-shell'.
255 (show_startup_with_shell): New function.
256 (_initialize_fork_child): Register the set/show startup-with-shell
257 commands.
258 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
259 * inf-ttrace.c (inf_ttrace_him): Remove comment.
260 * procfs.c (procfs_init_inferior): Remove comment.
261 * infcmd.c (startup_with_shell): New global.
262 * inferior.h (startup_with_shell): Declare global.
263 (STARTUP_WITH_SHELL): Delete.
264 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
265
c9737c08
PA
2662013-10-23 Pedro Alves <palves@redhat.com>
267
268 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
269 * common/signals.c: Include "gdb_assert.h".
270 (signals): New field 'symbol'.
271 (SET): Use the 'symbol' parameter.
272 (gdb_signal_to_symbol_string): New function.
273 * infrun.c (handle_inferior_event) <random signal>: In debug
274 output, print the random signal enum as string in addition to its
275 number.
276 * target/waitstatus.c (target_waitstatus_to_string): Print the
277 signal's enum value as string instead of the (POSIX) signal name.
278
f60db4f0
GB
2792013-10-23 Gary Benson <gbenson@redhat.com>
280
281 PR 16013
282 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
283 from 32 to 18. Adjusted fscanf format string accordingly.
284 (Avoids leaving cmd unterminated.)
285 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
286 trun, retn or extra. (Avoids leaving extra unterminated.) Check
287 that local_address and remote_address will not overflow.
288 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
289 leaving dependencies unterminated. Parse size as "%u" to match
290 definition.
291
6d3e7a94
PA
2922013-10-22 Pedro Alves <palves@redhat.com>
293
294 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
295 set ecs->random signal.
296
42ec045f
PA
2972013-10-22 Pedro Alves <palves@redhat.com>
298
299 * infrun.c (keep_going): Update comments.
300
3012013-10-22 Pedro Alves <palves@redhat.com>
302
303 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
304 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
305
3062013-10-22 Pedro Alves <palves@redhat.com>
307
308 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
309 GDB_EXC_BAD_ACCESS.
310 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
311 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
312 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
313 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
314 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
315 (GDB_SIGNAL_LAST): Change description string.
316 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
317 Adjust to signal renaming.
318 * darwin-nat.c (darwin_decode_message): Likewise.
319
c8fde1b1
JM
3202013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
321
322 * MAINTAINERS (Write After Approval): Add myself to the list.
323
e8369a73
AB
3242013-10-18 Andrew Burgess <aburgess@broadcom.com>
325
326 * breakpoint.c (update_watchpoint): If hardware watchpoints are
327 forced off, downgrade them to software watchpoints if possible,
328 and error out if not possible.
329 (watch_command_1): Move watchpoint type selection closer to
330 watchpoint creation, and extend the comments.
331
776f04fa
PA
3322013-10-18 Pedro Alves <palves@redhat.com>
333
334 PR gdb/16062
335 * infrun.c (handle_inferior_event): Keep going if we got a random
336 signal we should not stop for, instead of falling through to the
337 step tests.
338
0c6faab5
YQ
3392013-10-18 Yao Qi <yao@codesourcery.com>
340
341 * c-varobj.c (cplus_number_of_children): Fix indentation.
342
50b34a18
TT
3432013-10-17 Tom Tromey <tromey@redhat.com>
344
345 PR gdb/15995:
346 * printcmd.c (printcmd): Call gdb_flush.
347
5c4c8a59
TT
3482013-10-17 Tom Tromey <tromey@redhat.com>
349
350 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
351 (elf_locate_sections): Update.
352
c4124bf1
YQ
3532013-10-17 Yao Qi <yao@codesourcery.com>
354
355 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
356 * ada-varobj.c: Remove the include of ada-varobj.h.
357 (ada_varobj_get_number_of_children): Declare.
358 (ada_varobj_get_name_of_child): Make it static.
359 (ada_varobj_get_path_expr_of_child): Likewise.
360 (ada_varobj_get_value_of_child): Likewise.
361 (ada_varobj_get_type_of_child): Likewise.
362 (ada_varobj_get_value_of_array_variable): Likewise.
363 * ada-varobj.h: Remove.
364
99ad9427
YQ
3652013-10-17 Yao Qi <yao@codesourcery.com>
366
367 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
368 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
369 * ada-varobj.c: Include "varobj.h".
370 (ada_number_of_children): New. Moved from varobj.c.
371 (ada_name_of_variable, ada_name_of_child): Likewise.
372 (ada_path_expr_of_child, ada_value_of_child): Likewise.
373 (ada_type_of_child, ada_value_of_variable): Likewise.
374 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
375 (ada_varobj_ops): New.
376 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
377 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
378 * gdbtypes.h (get_target_type): Declare.
379 * varobj.c: Remove the inclusion of "ada-varobj.h" and
380 "ada-lang.h".
381 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
382 (ANONYMOUS_UNION_NAME): Likewise.
383 (get_type, get_value_type, get_target_type): Remove declarations.
384 (value_get_print_value, varobj_value_get_print_value): Likewise.
385 (c_number_of_children, c_name_of_variable): Likewise.
386 (c_name_of_child, c_path_expr_of_child): Likewise.
387 (c_value_of_child, c_type_of_child): Likewise.
388 (c_value_of_variable, cplus_number_of_children): Likewise.
389 (cplus_class_num_children, cplus_name_of_variable): Likewise.
390 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
391 (cplus_value_of_child, cplus_type_of_child): Likewise.
392 (cplus_value_of_variable, java_number_of_children): Likewise.
393 (java_name_of_variable, java_name_of_child): Likewise.
394 (java_path_expr_of_child, java_value_of_child): Likewise.
395 (java_type_of_child, java_value_of_variable): Likewise.
396 (ada_number_of_children, ada_name_of_variable): Likewise.
397 (ada_name_of_child, ada_path_expr_of_child): Likewise.
398 (ada_value_of_child, ada_type_of_child): Likewise.
399 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
400 (ada_value_has_mutated): Likewise.
401 (struct language_specific): Move it to varobj.h.
402 (CPLUS_FAKE_CHILD): Move it to varobj.h.
403 (restrict_range): Rename it varobj_restrict_range. Make it extern.
404 Callers update.
405 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
406 Make it extern.
407 (is_anonymous_child): Move it to c-varobj.c and rename to
408 varobj_is_anonymous_child. Caller update.
409 (get_type): Move it to c-varobj.c.
410 (get_value_type): Rename it varobj_get_value_type. Make it
411 extern.
412 (get_target_type): Move it gdbtypes.c.
413 (varobj_formatted_print_options): New function.
414 (value_get_print_value): Rename it to
415 varobj_value_get_print_value and make it extern.
416 (varobj_value_is_changeable_p): Make it extern.
417 (adjust_value_for_child_access): Move it to c-varobj.c.
418 (default_value_is_changeable_p): Rename it to
419 varobj_default_value_is_changeable_p. Make it extern.
420 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
421 (c_name_of_child, c_path_expr_of_child): Likewise.
422 (c_value_of_child, c_type_of_child): Likewise.
423 (c_value_of_variable, cplus_number_of_children): Likewise.
424 (cplus_class_num_children, cplus_name_of_variable): Likewise.
425 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
426 (cplus_value_of_child, cplus_type_of_child): Likewise.
427 (cplus_value_of_variable): Likewise.
428 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
429 (java_name_of_child, java_path_expr_of_child): Likewise.
430 (java_value_of_child, java_type_of_child): Likewise.
431 (java_value_of_variable): Likewise.
432 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
433 (ada_name_of_child, ada_path_expr_of_child): Likewise.
434 (ada_value_of_child, ada_type_of_child): Likewise.
435 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
436 (ada_value_has_mutated): Likewise.
437 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
438 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
439 (c_varobj_ops, cplus_varobj_ops): Declare.
440 (java_varobj_ops, ada_varobj_ops): Declare.
441 (varobj_default_value_is_changeable_p): Declare.
442 (varobj_value_is_changeable_p): Declare.
443 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
444 (varobj_get_path_expr_parent): Declare.
445 (varobj_value_get_print_value): Declare.
446 (varobj_formatted_print_options): Declare.
447 (varobj_restrict_range): Declare.
448
c8a62302
LM
4492013-10-17 Luis Machado <lgustavo@codesourcery.com>
450
451 * target/waitstatus.h (target_waitkind): Remove spurious
452 character from the comments.
453
eade6471
JB
4542013-10-17 Joel Brobecker <brobecker@adacore.com>
455
456 * gdbarch.sh (get_longjmp_target): Add method documentation.
457 * gdbarch.h: Regenerate.
458
5411b26c
TT
4592013-10-16 Tom Tromey <tromey@redhat.com>
460
461 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
462 label.
463
87326c87
LM
4642013-10-16 Luis Machado <lgustavo@codesourcery.com>
465
466 * gcore.in: Call GDB using the full path to the gcore script.
467 Error out if the GDB binary is not found.
468
fd0a4d76
SDJ
4692013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
470
471 PR gdb/16014
472 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
473 sizeof.
474
d92f7ee3
SDJ
4752013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
476
477 PR gdb/16042
478 * target.c (target_disable_btrace): Fix invalid return value for
479 void function.
480 (target_teardown_btrace): Likewise.
481
bb5ce47a
YQ
4822013-10-14 Yao Qi <yao@codesourcery.com>
483
484 * varobj.c (struct varobj): Move most of the fields to
485 varobj.h.
486 (struct varobj_dynamic): New struct.
487 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
488 (varobj_has_more): Likewise.
489 (dynamic_varobj_has_child_method): Likewise.
490 (update_dynamic_varobj_children): Likewise.
491 (varobj_get_num_children): Likewise.
492 (varobj_list_children, varobj_pretty_printed_p): Likewise.
493 (install_new_value_visualizer): Likewise.
494 (install_new_value_visualizer, install_new_value): Likewise.
495 (varobj_update, new_variable, free_variable): Likewise.
496 (my_value_of_variable, value_get_print_value): Likewise.
497 (install_visualizer): Change the type of parameter 'var' to
498 'struct varobjd_dynamic *'. Callers update.
499 * varobj.h (struct varobj): Moved from varobj.c.
500 (struct varobj) <dynamic>: New field.
501
0b76b0ce
SL
5022013-10-13 Sandra Loosemore <sandra@codesourcery.com>
503
504 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
505 as the preferred name of r30.
506 * nios2-linux-tdep.c (reg_offsets): Likewise.
507 * features/nios2-cpu.xml: Likewise.
508 * features/nios2-linux.c: Regenerated.
509 * features/nios2.c: Regenerated.
510 * regformats/nios2-linux.dat: Regenerated.
511
4856b6bc
JK
5122013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
513
514 Canonicalize directories for EXEC_FILENAME.
515 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
516 exec_filename.
517 * utils.c (gdb_realpath_keepfile): New function.
518 * utils.h (gdb_realpath_keepfile): New declaration.
519
9b557b58
DE
5202013-10-11 Doug Evans <dje@google.com>
521
522 * Makefile.in (GDBFLAGS): New variable.
523 (run): New rule.
524
ce13fade
JB
5252013-10-11 Joel Brobecker <brobecker@adacore.com>
526
527 * NEWS: Add entry documenting the new "-catch-assert" and
528 "-catch-exception" GDB/MI commands.
529
349774ef
JB
5302013-10-11 Joel Brobecker <brobecker@adacore.com>
531
532 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
533 "enabled".
534 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
535 "enabled". Set B->ENABLE_STATE accordingly.
536 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
537 ada-lang.c.
538 (create_ada_exception_catchpoint): Add declaration.
539 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
540 (create_ada_exception_catchpoint): Make non-static. Add new
541 parameter "disabled". Use it in call to
542 init_ada_exception_breakpoint.
543 (catch_ada_exception_command): Add parameter "enabled" in call
544 to create_ada_exception_catchpoint.
545 (catch_assert_command): Likewise.
546
547 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
548 Add declarations.
549 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
550 "catch-exception" commands.
551 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
552 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
553
761269c8
JB
5542013-10-11 Joel Brobecker <brobecker@adacore.com>
555
556 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
557 "enum exception_catchpoint_kind". Replace the "ex_" prefix
558 of all its enumerates with "ada_". Update the rest of this
559 file throughout.
560
b4a5b78b
JB
5612013-10-11 Joel Brobecker <brobecker@adacore.com>
562
563 * ada-lang.c (ada_decode_exception_location): Delete.
564 (create_ada_exception_catchpoint): Remove arguments "sal",
565 "addr_string" and "ops". Add argument "ex_kind" instead.
566 Adjust implementation accordingly, calling ada_exception_sal
567 to get the entities it no longer gets passed as arguments.
568 Document the function's arguments.
569 (catch_ada_exception_command): Use catch_ada_exception_command_split
570 instead of ada_decode_exception_location, and update call to
571 create_ada_exception_catchpoint.
572 (catch_ada_assert_command_split): Renames
573 ada_decode_assert_location. Remove parameters "addr_string" and
574 "ops", and now returns void. Adjust implementation accordingly.
575 Update the function documentation.
576 (catch_assert_command): Use catch_ada_assert_command_split
577 instead of ada_decode_assert_location. Update call to
578 create_ada_exception_catchpoint.
579
7ad1d32c 5802013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
581
582 * utils.h (perror_warning_with_name): Add declaration.
583 * utils.c (perror_warning_with_name): New function.
584 * cli/cli-cmds.c (source_script_with_search): Add call to
585 perror_warning_with_name if from_tty is nul.
586
7ad1d32c 5872013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
588
589 * utils.c (perror_string): New function, extracted out of
590 throw_perror_with_name.
591 (throw_perror_with_name): Rework to use perror_string.
592
bcc75809
YQ
5932013-10-11 Yao Qi <yao@codesourcery.com>
594
595 * remote.c (discard_pending_stop_replies_in_queue): Update
596 declaration.
597 (struct stop_reply) <rs>: New field.
598 (remove_stop_reply_of_remote_state): New function.
599 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
600 Callers update. Pass remove_stop_reply_of_remote_state to
601 QUEUE_iterate.
602 (remote_parse_stop_reply): Initialize field 'rs'.
603
05feb193
WN
6042013-10-10 Will Newton <will.newton@linaro.org>
605
606 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
607 linux_init_abi.
608
0d12017b
JB
6092013-10-10 Joel Brobecker <brobecker@adacore.com>
610
611 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
612 serial_baud_show_cmd.
613 (_initialize_cli_cmds): Delete the code creating the
614 "set/show remotebaud" commands.
615 * serial.c (baud_rate): Move here from top.c.
616 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
617 (_initialize_serial): Create "set/show serial baud" commands.
618 Add "set/show remotebaud" command aliases.
619 * top.c (baud_rate): Moved to serial.c.
620 * NEWS: Document the new "set/show serial baud" commands,
621 replacing "set/show remotebaud".
622
578d3588
PA
6232013-10-09 Pedro Alves <palves@redhat.com>
624
625 * breakpoint.c (insert_bp_location): Use memory_error_message to
626 build the memory error string.
627 * c-lang.c: Include "gdbcore.h".
628 (c_get_string): Use memory_error to throw error.
629 (target_xfer_memory_error): Delete.
630 (memory_error_message): New, factored out from
631 target_xfer_memory_error.
632 (memory_error): Change parameter type to target_xfer_error.
633 Rewrite.
634 (read_memory): Use memory_error instead of
635 target_xfer_memory_error.
636 * gdbcore.h: Include "target.h".
637 (memory_error): Change parameter type to target_xfer_error.
638 (memory_error_message): Declare function.
639 * target.c (target_read_memory, target_read_stack)
640 (target_write_memory, target_write_raw_memory): Return
641 TARGET_XFER_E_IO on error. Adjust comments.
642 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
643 instead of EIO.
644 * target.h (target_read, target_insert_breakpoint)
645 (target_remove_breakpoint): Adjust comments.
646 * valprint.c (partial_memory_read): Rename parameter, and adjust
647 comment.
648 (val_print_string): Use memory_error_message to build the memory
649 error string.
650
c74e1ccf
JK
6512013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
652
653 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
654 result variable. Rename variable fopen_e_ever_failed to
655 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
656
915215be
PA
6572013-10-09 Pedro Alves <palves@redhat.com>
658
659 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
660 (monitor_write_memory_longlongs, monitor_write_memory_block):
661 Constify 'myaddr' parameter.
662 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
663 helper.
664 (monitor_xfer_partial): New function.
665 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
666 hook. Install a to_xfer_partial hook.
667
acd13123
TT
6682013-10-09 Tom Tromey <tromey@redhat.com>
669
670 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
671 bfd_get_alt_debug_link_info.
672
40135bb1
JK
6732013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 New flag OBJF_NOT_FILENAME.
676 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
677 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
678 allocate_objfile.
679 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
680 symbol_file_add_from_bfd.
681 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
682 allocate_objfile.
683 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
684 NULL.
685 * objfiles.h (OBJF_NOT_FILENAME): New.
686
dc294be5
TT
6872013-10-08 Tom Tromey <tromey@redhat.com>
688
689 * Makefile.in (SFILES): Add build-id.c.
690 (HFILES_NO_SRCDIR): Add build-id.h.
691 * build-id.c: New file, largely from elfread.c. Modified
692 most functions.
693 * build-id.h: New file.
694 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
695 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
696 Search for dwz file using build-id.
697 * elfread.c (build_id_bfd_get, build_id_verify)
698 (build_id_to_debug_filename, find_separate_debug_file): Remove.
699
db230ce3
JB
7002013-10-08 Joel Brobecker <brobecker@adacore.com>
701
702 * ada-lang.c (compare_names_with_case): Renamed from
703 compare_names, adding a new parameter "casing" and its handling.
704 New function documentation.
705 (compare_names): New function, implemented using
706 compare_names_with_case.
707
6501c98a
JB
7082013-10-08 Joel Brobecker <brobecker@adacore.com>
709
710 * ada-lang.c (ada_exception_sal): Remove advance declaration.
711
84a1243b
TT
7122013-10-07 Tom Tromey <tromey@redhat.com>
713
714 * objfiles.c (free_objfile_per_bfd_storage): Delete the
715 demangled_names_hash.
716 (free_objfile): Don't delete the demangled_names_hash.
717 * objfiles.h (struct objfile_per_bfd_storage)
718 <demangled_names_hash>: New field.
719 (struct objfile) <demangled_names_hash>: Move to
720 objfile_per_bfd_storage.
721 * symfile.c (reread_symbols): Don't delete the
722 demangled_names_hash.
723 * symtab.c (create_demangled_names_hash): Update.
724 (symbol_set_names): Update.
725
1da77581
TT
7262013-10-07 Tom Tromey <tromey@redhat.com>
727
728 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
729 needs_relocations>: New fields.
730 (gdb_bfd_requires_relocations): New function.
731 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
732 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
733 the BFD needs relocations applied.
734
46ecd527
PA
7352013-10-07 Pedro Alves <palves@redhat.com>
736
737 PR breakpoints/11568
738 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
739 the thread list" instead of "gone".
740
0c557179
SDJ
7412013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
742
743 * NEWS: Mention new convenience variable $_exitsignal.
744 * corelow.c (core_open): Reset exit convenience variables. Set
745 $_exitsignal to the uncaught signal which generated the corefile.
746 * infrun.c (handle_inferior_event): Reset exit convenience
747 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
748 (clear_exit_convenience_vars): New function.
749 * inferior.h (clear_exit_convenience_vars): New prototype.
750
1cc47d81
YQ
7512013-10-06 Yao Qi <yao@codesourcery.com>
752
753 * varobj.h: Add comments to enum varobj_languages.
754
73869dc2
DE
7552013-10-04 Doug Evans <dje@google.com>
756
757 Add support for DWP file format version 2.
758 * NEWS: Mention support for DWP file format version 2.
759 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
760 union of asection, containing_section. New fields virtual_offset
761 and is_virtual. Change type of readin filed from int to char.
762 (dwo_sections, dwo_file): Tweak comments.
763 (dwp_v2_section_ids): New enum.
764 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
765 str_offsets, types.
766 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
767 All uses updated.
768 (virtual_v2_dwo_sections): New struct.
769 (dwp_hash_table): New fields version, nr_columns. Change type of
770 section_pool field to a union.
771 (dwp_file): New field version.
772 (dwarf2_has_info): Check for virtual sections.
773 (get_containing_section): New function.
774 (get_section_bfd_owner, get_section_bfd_section): Call it.
775 (dwarf2_locate_sections): Update.
776 (dwarf2_section_empty_p): Update.
777 (dwarf2_read_section): Handle virtual sections.
778 (locate_dwz_sections): Update.
779 (create_dwp_hash_table): Document and handle V2 format.
780 (locate_v1_virtual_dwo_sections): Renamed from
781 locate_virtual_dwo_sections and update. All callers updated.
782 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
783 Delete arg htab. Rename arg section_index to unit_index.
784 All callers updated.
785 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
786 All uses updated.
787 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
788 (lookup_dwo_unit_in_dwp): Add V2 support.
789 (dwarf2_locate_dwo_sections): Update.
790 (dwarf2_locate_common_dwp_sections): Renamed from
791 dwarf2_locate_dwp_sections and update. All callers updated.
792 (dwarf2_locate_v2_dwp_sections): New function.
793 (open_and_init_dwp_file): Add V2 support.
794 (read_str_index): New locals str_section, str_offsets_section.
795
9a2c3737
PA
7962013-10-04 Pedro Alves <palves@redhat.com>
797
798 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
799 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
800 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
801 describing comments with references to ptid.h.
802 * common/ptid.h: Remove intro description of constructors,
803 accessors and predicates.
804 (struct ptid): Reformat.
805 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
806 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
807 describing comments.
808
f5371440
JB
8092013-10-04 Joel Brobecker <brobecker@adacore.com>
810
811 * aix-thread.c (sync_threadlists): Add missing ')' in call
812 to ptid_build.
813
793e1c06
JB
8142013-10-04 Joel Brobecker <brobecker@adacore.com>
815
816 * procfs.c (procfs_init_inferior): Fix typo causing the build
817 to fail.
818
26f0edc1
JB
8192013-10-04 Joel Brobecker <brobecker@adacore.com>
820
821 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
822
5713b9b5
JB
8232013-10-04 Joel Brobecker <brobecker@adacore.com>
824
825 * mi/mi-main.c (run_one_inferior): Add function description.
826 Make ARG a pointer to an integer whose value determines whether
827 we should "run" or "start" the program.
828 (mi_cmd_exec_run): Add handling of the "--start" option.
829 Reject all other command-line options.
830 * NEWS: Add entry for "-exec-run"'s new "--start" option.
831
f48ff2a7
YQ
8322013-10-04 Yao Qi <yao@codesourcery.com>
833
834 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
835 (struct notif_client) <pending_event>: Moved
836 to struct remote_notif_state.
837 <id>: New field.
838 (struct remote_notif_state) <pending_event>: New field.
839 (notif_event_xfree): Declare.
840 * remote-notif.c (handle_notification): Adjust.
841 (notif_event_xfree): New function.
842 (do_notif_event_xfree): Call notif_event_xfree.
843 (remote_notif_state_xfree): Call notif_event_xfree to free
844 each element in field pending_event.
845 * remote.c (discard_pending_stop_replies): Remove declaration.
846 (discard_pending_stop_replies_in_queue): Declare.
847 (remote_close): Call discard_pending_stop_replies_in_queue
848 instead of discard_pending_stop_replies.
849 (remote_start_remote): Adjust.
850 (stop_reply_xfree): Call notif_event_xfree.
851 (notif_client_stop): Adjust initialization.
852 (remote_notif_remove_all): Rename it to ...
853 (remove_stop_reply_for_inferior): ... this. Update comments.
854 Don't check INF is NULL.
855 (discard_pending_stop_replies): Return early if notif_state is
856 NULL. Adjust. Don't check INF is NULL.
857 (remote_notif_get_pending_events): Adjust.
858 (discard_pending_stop_replies_in_queue): New function.
859 (remote_wait_ns): Likewise.
860
5965e028
YQ
8612013-10-04 Yao Qi <yao@codesourcery.com>
862
863 * remote-notif.c (DECLARE_QUEUE_P): Remove.
864 (notif_queue): Remove.
865 (remote_notif_process): Add one parameter 'notif_queue'.
866 Update comments. Callers update.
867 (remote_async_get_pending_events_token): Remove.
868 (remote_notif_register_async_event_handler): Remove.
869 (remote_notif_unregister_async_event_handler): Remove.
870 (handle_notification): Add parameter 'notif_queue'. Update
871 comments. Callers update.
872 (notif_xfree): Remove.
873 (remote_notif_state_allocate): New function.
874 (remote_notif_state_xfree): New function.
875 (_initialize_notif): Remove code to allocate queue.
876 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
877 (struct remote_notif_state): New.
878 (handle_notification): Update declaration.
879 (remote_notif_process): Likewise.
880 (remote_notif_register_async_event_handler): Remove.
881 (remote_notif_unregister_async_event_handler): Remove.
882 (remote_notif_state_allocate): Declare.
883 (remote_notif_state_xfree): Declare.
884 * remote.c (struct remote_state) <notif_state>: New field.
885 (remote_close): Don't call
886 remote_notif_unregister_async_event_handler. Call
887 remote_notif_state_xfree.
888 (remote_open_1): Don't call
889 remote_notif_register_async_event_handler. Call
890 remote_notif_state_allocate.
891
5e5ac9a5
YQ
8922013-10-04 Yao Qi <yao@codesourcery.com>
893
894 * varobj.c (create_child_with_value): Remove 'const' from the
895 type of parameter 'name'.
896 (varobj_add_child): Likewise.
897 (install_dynamic_child): Remove 'const' from the type of
898 parameter 'name'.
899 (varobj_add_child): Likewise.
900 (create_child_with_value): Likewise. Update comments. Don't
901 duplicate 'name'.
902 (update_dynamic_varobj_children): Duplicate 'name'
903 and pass it to install_dynamic_child.
904
06ab7b19
PM
9052013-10-03 Phil Muldoon <pmuldoon@redhat.com>
906
907 * python/py-value.c (convert_value_from_python): Move PyInt_Check
908 conversion logic to occur after PyLong_Check. Comment on order
909 change significance.
910 * python/py-arch.c (archpy_disassemble): Comment on order of
911 conversion for integers and longs.
912
8ae377e8
PA
9132013-10-03 Pedro Alves <palves@redhat.com>
914
915 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
916 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
917 functions. Always test for PTRACE_O_TRACESYSGOOD even if
918 PTRACE_O_TRACEFORK is not supported.
919 (linux_test_for_tracesysgood): New function.
920 (linux_test_for_tracefork): New function, factored out from
921 linux_check_ptrace_features, and also don't kill child_pid here.
922
b1328b1b
TG
9232013-10-03 Tristan Gingold <gingold@adacore.com>
924
925 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
926 Remove verbose error reporting. Use detected state to
927 thread_set_state call.
928 (i386_darwin_dr_get): Fix return type. Remove verbose error
929 report.
930 Remove trailing spaces.
931
901461f8
PA
9322013-10-02 Pedro Alves <palves@redhat.com>
933
934 * cp-valprint.c (cp_print_value_fields): Adjust calls to
935 val_print_optimized_out.
936 * jv-valprint.c (java_print_value_fields): Likewise.
937 * p-valprint.c (pascal_object_print_value_fields): Likewise.
938 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
939 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
940 new optimized out value.
941 * findvar.c (address_from_register): Likewise.
942 * frame.c (put_frame_register): Tweak error string to say the
943 register was not saved, rather than optimized out.
944 * infcmd.c (default_print_one_register_info): Adjust call to
945 val_print_optimized_out. Use value_of_register instead of
946 get_frame_register_value.
947 * mi/mi-main.c (output_register): Use value_of_register instead of
948 get_frame_register_value.
949 * valprint.c (valprint_check_validity): Likewise.
950 (val_print_optimized_out): New value parameter. If the value is
951 lval_register, print <not saved> instead.
952 (value_check_printable, val_print_scalar_formatted): Adjust calls
953 to val_print_optimized_out.
954 * valprint.h (val_print_optimized_out): New value parameter.
955 * value.c (struct value) <optimized_out>: Extend comment.
956 (error_value_optimized_out): New function.
957 (require_not_optimized_out): Use it. Use a different string for
958 lval_register values.
959 * value.h (error_value_optimized_out): New declaration.
960 * NEWS: Mention <not saved>.
961
042a84d9
JB
9622013-10-02 Joel Brobecker <brobecker@adacore.com>
963
964 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
965 strcmp to compare two symtab filenames.
966
6b9780fb
JB
9672013-10-02 Joel Brobecker <brobecker@adacore.com>
968
969 * symtab.c (search_symbols_equal): Delete.
970 (sort_search_symbols_remove_dups): Replace call to
971 search_symbols_equal by call to compare_search_syms,
972 adjusting as necessary.
973
751e7549
PM
9742013-10-02 Phil Muldoon <pmuldoon@redhat.com>
975
976 PR python/15579
977
978 * python/python.c: Document gdb.execute command in Python help.
979
1efd7661
PM
9802013-10-02 Phil Muldoon <pmuldoon@redhat.com>
981
982 * python/py-frame.c (frame_info_to_frame_object): Use
983 gdbpy_convert_exception. Clean up Python object on failure.
984
562fc849
PM
9852013-10-02 Phil Muldoon <pmuldoon@redhat.com>
986
987 * python/lib/gdb/command/frame_filters.py
988 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
989 (ShowFrameFilterPriority.invoke): Ditto.
990
d7561cbb
KS
9912013-10-01 Keith Seitz <keiths@redhat.com>
992
993 * linespec.c (struct ls_parser): Make 'saved_arg' const.
994 (parse_linespec): Make 'argptr' const.
995 Remove temporary cast of 'argptr' to const char **.
996 (decode_line_full): Pass const pointer to parse_linespec.
997 (decode_line_1): Likewise.
998 (decode_objc): Make local variable 'new_argptr' const.
999 (find_function_symbols): Remove temporary cast to char *
1000 to find_imps.
1001 * objc-lang.c (find_imps): Make argument 'method' const.
1002 Return const.
1003 * objc-lang.h (find_imps): Likewise.
1004
10052013-10-01 Keith Seitz <keiths@redhat.com>
1006
1007 * completer.c (skip_quoted_chars): Make all arguments const.
1008 Return const.
1009 (skip_quoted): Likewise.
1010 * completer.h (skip_quoted_chars): Likewise.
1011 (skip_quoted): Likewise.
1012 * defs.h (skip_quoted): Remove duplicate declaration.
1013 * jv-exp.y: Include completer.h.
1014 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1015 * p-exp.y: Include completer.h.
1016
10172013-10-01 Keith Seitz <keiths@redhat.com>
1018
1019 * c-exp.y (parse_number): Make first argument const.
1020 Make a copy of the input to manipulate.
1021 (c_parse_escape): Make first argument const.
1022 Make local variable 'tokptr' const.
1023 (parse_string_or_char): Make first two arguments const.
1024 (macro_original_text): Make const.
1025 (lex_one_token): Make local variable 'tokstart' const.
1026 Likewise for local variables named 'p'.
1027 Cast away const for struct stoken (temporary).
1028 * c-lang.h (c_parse_escpae): Make first argument const.
1029 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1030 const.
1031 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1032 var_string case.
1033 * f-exp.y (parse_number): Make first argument const.
1034 (match_string_literal): Make local variable 'tokstart'
1035 const.
1036 (yylex): Make local variable 'p' const.
1037 Cast away const for struct stoken (temporary).
1038 * go-exp.y (parse_number): Make first argument const.
1039 (parse_string_or_char): Likewise.
1040 Make local variable 'tokstart' const.
1041 (lex_one_token): Likewise for numerous locals called 'p'.
1042 Cast away const for struct stoken (temporary).
1043 * jv-exp.y (parse_number): Make first argument const.
1044 Make local variables 'tokstart' and 'tokptr' const.
1045 Cast away const for call to skip_quoted (temporary).
1046 (yylex): Make local variable 'p' const.
1047 Cast away const for struct stoken (temporary).
1048 * m2-exp.y (parse_number): Make local variable 'p' const.
1049 (yylex): Likewise for 'tokstart'.
1050 Cast away const for struct stoken (temporary).
1051 Make local variable 'p' const.
1052 * macroexp.c (get_character_constant): Pass a const string
1053 to c_parse_escape.
1054 (get_string_literal): Likewise.
1055 (macro_expand_next): Make first argument const.
1056 Cast away const for init_shared_buffer.
1057 * macroexp.h (macro_expand_next): Make first argument const.
1058 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1059 Pass a const string to c_parse_escape.
1060 Make local variables 'p' and 'namestart' const.
1061 * parse.c (lexptr): Make const.
1062 (prev_lexptr): Likewise.
1063 (find_template_name_end): Return const.
1064 Make argument const, too.
1065 (parse_exp_in_context): Make first argument const.
1066 Remove the entire const_hack.
1067 (parse_exp_in_context_1): Make first argument const.
1068 * parser-defs.h (find_template_name_end): Return const.
1069 Make argument const, too.
1070 (lexptr): Make const.
1071 (prev_lexptr): Likewise.
1072 * utils.c (parse_escape): Make second argument const.
1073 * utils.h (parse_escape): Likewise.
1074
10752013-10-01 Keith Seitz <keiths@redhat.com>
1076
1077 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1078 is now const.
1079 (block_lookup): Make 'raw_name' and 'name' const.
1080 * ada-lex.l (processString): Update for struct stoken.ptr.
1081 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1082 (operator_stoken): Likewise.
1083 (lex_one_token): Remove temporary cast to char * for
1084 'yylval.sval.ptr'.
1085 * f-exp.y (yylex): Likewise.
1086 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1087 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1088 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1089 'yylval.sval.ptr'.
1090 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1091 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1092 * linespec.c (struct ls_parser): Make 'stream' const.
1093 (find_parameter_list_end): Make argument 'input' and local
1094 variable 'p' const.
1095 (linespec_lexer_lex_string): Make local variables 'start' and
1096 'p' const.
1097 Use skip_spaces_const instead of skip_spaces.
1098 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1099 const.
1100 (parse_linespec): Temporarily cast 'argptr' to const for
1101 'parser->lexer.stream'.
1102 * m2-exp.y (yylex): Remove temporary cast to char * for
1103 'yylval.sval.ptr'.
1104 * objc-lang.c (add_msglist): Make local variable 'p' const.
1105 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1106 (exp : STRING): Make 'sp' const.
1107 (parse_number): Make argument 'p' const.
1108 * parser-defs.h (struct stoken): Make 'ptr' const.
1109
193a8eac
DE
11102013-10-01 Doug Evans <dje@google.com>
1111
1112 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1113
2213e2be
YQ
11142013-10-01 Yao Qi <yao@codesourcery.com>
1115
1116 * varobj.c (c_value_of_root): Remove declaration.
1117 (cplus_value_of_root, java_value_of_root): Likewise.
1118 (ada_value_of_root): Likewise.
1119 (struct language_specific) <value_of_root>: Remove.
1120 (languages): Update initialization.
1121 (check_scope): Move earlier.
1122 (c_value_of_root): Move earlier and rename to ...
1123 (value_of_root_1): ... this.
1124 (value_of_root): Caller update.
1125 (cplus_value_of_root, java_value_of_root): Remove.
1126 (ada_value_of_root): Remove.
1127
c573f273
YQ
11282013-10-01 Yao Qi <yao@codesourcery.com>
1129
1130 * varobj.c (varobj_format_string): Remove "unknown".
1131 (languages): Remove the first element.
1132 * varobj.h (enum varobj_languages): Remove vlang_c.
1133
56250258
YQ
11342013-10-01 Yao Qi <yao@codesourcery.com>
1135
1136 * varobj.c (struct language_specific) <language>: Remove.
1137 (languages): Update the initialization.
1138
29f9ebfa
YQ
11392013-10-01 Yao Qi <yao@codesourcery.com>
1140
1141 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1142 "solib-target.h". Include "windows-tdep.h".
1143 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1144 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1145 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1146 windows-tdep.o to gdb_target_obs.
1147
64870a42
YQ
11482013-10-01 Yao Qi <yao@codesourcery.com>
1149
1150 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1151 "solib-target.h".
1152 (amd64_windows_init_abi): Don't call set_solib_ops and
1153 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1154 windows_init_abi instead.
1155 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1156 "solib-target.h".
1157 (i386_cygwin_init_abi): Don't call set_solib_ops,
1158 set_gdbarch_has_dos_based_file_system and
1159 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1160 windows_init_abi instead.
1161 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1162 (windows_init_abi): New function.
1163 (windows_iterate_over_objfiles_in_search_order): Make it
1164 static.
1165 * windows-tdep.h (windows_init_abi): Declare.
1166 (windows_iterate_over_objfiles_in_search_order): Remove
1167 declaration.
1168
0aebdefa
JB
11692013-10-01 Jerome Guitton <guitton@adacore.com>
1170
1171 Checked in by Joel Brobecker <brobecker@adacore.com>
1172 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1173 incomplete dictionnary instead of None in case of missing
1174 environment variables.
1175 (elinos_init): in case of an incomplete environment, best
1176 effort to load system libraries instead of abort.
1177
1c8e84b0
JB
11782013-10-01 Joel Brobecker <brobecker@adacore.com>
1179
1180 * ada-lang.c (ada_has_this_exception_support): Ignore
1181 mst_solib_trampoline minimal symbols.
1182
61d82a0d
TG
11832013-09-30 Tristan Gingold <gingold@adacore.com>
1184
1185 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1186 hardware watchpoint.
1187 (i386_darwin_dr_set): Support 32 and 64 bit states.
1188 (i386_darwin_dr_get): Likewise.
1189 (i386_darwin_dr_set_control): Make static.
1190 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1191 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1192
dfd4cc63
LM
11932013-09-30 Luis Machado <lgustavo@codesourcery.com>
1194
1195 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1196 Replace TIDGET with ptid_get_lwp.
1197 Replace GET_LWP with ptid_get_lwp.
1198 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1199 Replace BUILD_THREAD with ptid_build.
1200 Replace BUILD_LWP with ptid_build.
1201 Replace PIDGET with ptid_get_pid.
1202 Replace TIDGET with ptid_get_lwp.
1203 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1204 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1205 Replace TIDGET with ptid_get_lwp.
1206 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1207 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1208 Replace TIDGET with ptid_get_lwp.
1209 Replace GET_LWP with ptid_get_lwp.
1210 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1211 * auxv.c: Likewise.
1212 * breakpoint.c: Likewise.
1213 * common/ptid.c (ptid_is_pid): Condense check for
1214 null_ptid and minus_one_ptid.
1215 (ptid_lwp_p): New function.
1216 (ptid_tid_p): New function.
1217 * common/ptid.h: Update comments for accessors.
1218 (ptid_lwp_p): New prototype.
1219 (ptid_tid_p): New prototype.
1220 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1221 * gcore.c: Replace PIDGET with ptid_get_pid.
1222 * gdbthread.h: Likewise.
1223 * gnu-nat.c: Likewise.
1224 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1225 Replace TIDGET with ptid_get_lwp.
1226 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1227 * hppanbsd-nat.c: Likewise.
1228 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1229 Replace TIDGET with ptid_get_lwp.
1230 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1231 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1232 * infcmd.c: Likewise.
1233 * inferior.h: Likewise.
1234 * inflow.c: Likewise.
1235 * infrun.c: Likewise.
1236 * linux-fork.c: Likewise.
1237 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1238 Replace GET_PID with ptid_get_pid.
1239 Replace is_lwp with ptid_lwp_p.
1240 Replace GET_LWP with ptid_get_lwp.
1241 Replace BUILD_LWP with ptid_build.
1242
5b4e221c
MF
12432013-09-28 Mike Frysinger <vapier@gentoo.org>
1244
1245 * common/linux-btrace.c: Move sys/syscall.h out of the
1246 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1247 Also check for SYS_perf_event_open before attempting to buid.
1248
57d63ce2
DE
12492013-09-27 Doug Evans <dje@google.com>
1250
19ac8c2e
DE
1251 * dwarf2read.c (dwarf2_section_info): Add comment.
1252 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1253 All uses updated.
1254 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1255 (dwarf2_read_section): Delete unused local "header". Add section
1256 name to error message.
1257 (create_dwo_in_dwp): Tweak comment.
1258 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1259
a32a8923
DE
1260 * dwarf2read.c (die_reader_specs): Tweak comment.
1261 (get_section_bfd_owner, get_section_bfd_section): New functions.
1262 (get_section_name, get_section_file_name): New functions.
1263 (get_section_id, get_section_flags): New functions.
1264 (*): Use new functions to access section fields.
1265
57d63ce2
DE
1266 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1267 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1268 arg "htab". All callers updated.
1269 (create_debug_types_hash_table): Remove redundant copy of
1270 abbrev_section.
1271 (create_dwo_in_dwp): Tweak comments.
1272 (read_str_index): Tweak comment. Record dwarf form name in static
1273 local.
1274
3736004f
PA
12752013-09-27 Pedro Alves <palves@redhat.com>
1276
1277 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1278 (remote_filename_p): Add comment.
1279 * remote.c (remote_filename_p): Adjust to use
1280 REMOTE_SYSROOT_PREFIX.
1281 * solib.c (solib_find): When deciding whether we need to add a
1282 directory separator, check whether the sysroot is "remote:"
1283 instead of checking whether the patch has a drive spec. Add
1284 comments.
1285
5b5596ff
PA
12862013-09-27 Pedro Alves <palves@redhat.com>
1287
1288 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1289 Delete fields.
1290 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1291 directly.
1292
b5eef7aa
JK
12932013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1294
1295 Fix set debug frame output.
1296 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1297 SENTINEL_FRAME entry lower to match enum frame_type order.
1298
5b856f36
PM
12992013-09-26 Pierre Muller <muller@sourceware.org>
1300
1301 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1302 AMD64_R15_REGNUM when a register index is expected.
1303 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1304 Substitute in array.
1305 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1306 (amd64_push_arguments): Substitute in integer_regnum array.
1307
ade7ed9e
DE
13082013-09-25 Doug Evans <dje@google.com>
1309
d3e81981
DE
1310 * objfiles.c (allocate_objfile): Move comment to better place.
1311
8fb8eb5c
DE
1312 New option "set debug symfile on".
1313 * NEWS: Mention "set debug symfile".
1314 * Makefile.in (SFILES): Add symfile-debug.c.
1315 (COMMON_OBS): Add symfile-debug.o.
1316 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1317 objfile's symbol functions.
1318 * objfiles.h (objfile_set_sym_fns): Declare.
1319 * symfile-debug.c: New file.
1320 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1321 objfile's symbol functions.
1322 (reread_symbols): Ditto.
1323
c256e171
DE
1324 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1325 All uses updated.
1326 (add_symtab_fns): Update prototype.
1327 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1328 (registered_sym_fns): ... this.
1329 (symtab_fns): Update.
1330 (add_symtab_fns): New arg "flavour". All callers updated.
1331 (find_sym_fns): Rewrite to use new sym_fns registry.
1332
f56ce883
DE
1333 * symfile.h (struct sym_fns): Add "objfile" argument to
1334 sym_read_linetable. All uses updated.
1335
20c681d1
DE
1336 * symtab.c (domain_name, search_domain_name): New functions.
1337 * symtab.h (domain_name, search_domain_name): Declare.
1338
ade7ed9e
DE
1339 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1340 map_matching_symbols so objfile is first. All uses updated.
1341 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1342 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1343
7d760051
UW
13442013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345
1346 PR shlibs/8882
1347 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1348 link map entries.
1349
020f7036
DE
13502013-09-24 Doug Evans <dje@google.com>
1351
1352 * objfiles.c (free_objfile): Move comment.
1353
598402f0
JB
13542013-09-24 Joel Brobecker <brobecker@adacore.com>
1355
1356 * ada-exp.y (string_to_operator): Delete.
1357 (dummy_string_to_ada_operator): Delete.
1358
bf4d6c1c
JB
13592013-09-24 Joel Brobecker <brobecker@adacore.com>
1360
1361 Revert:
1362 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1363 amd64-tdep.c.
1364 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1365 call_dummy_integer_regs, and classify.
1366 * amd64-tdep.h (amd64_classify): Add declaration.
1367 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1368 (amd64_reg_class): Delete, moved to i386-tdep.h.
1369 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1370 Replace call to amd64_classify by call to tdep->classify.
1371 (amd64_push_arguments): Get the list of registers to use for
1372 passing integer parameters from the gdbarch tdep structure,
1373 rather than using a hardcoded one. Replace calls to amd64_classify
1374 by calls to tdep->classify.
1375 (amd64_push_dummy_call): Get the register number used for
1376 the "hidden" argument from tdep->call_dummy_integer_regs.
1377 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1378 and tdep->call_dummy_integer_regs. Set tdep->classify.
1379
849e9755
JB
13802013-09-24 Joel Brobecker <brobecker@adacore.com>
1381
1382 Revert:
1383 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1384 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1385 where tdep->memory_args_by_pointer is non-zero.
1386
c1459fd6
JB
13872013-09-24 Joel Brobecker <brobecker@adacore.com>
1388
1389 Revert:
1390 * i386-tdep.h (struct gdbarch_tdep): Add new field
1391 integer_param_regs_saved_in_caller_frame.
1392 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1393 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1394
20c2e3e0
JB
13952013-09-24 Joel Brobecker <brobecker@adacore.com>
1396
874440b8 1397 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1398 (amd64_windows_classify): Delete.
1399 (amd64_windows_passed_by_integer_register)
1400 (amd64_windows_passed_by_xmm_register)
1401 (amd64_windows_passed_by_pointer)
1402 (amd64_windows_adjust_args_passed_by_pointer)
1403 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1404 (amd64_windows_push_dummy_call): New functions.
1405 (amd64_windows_init_abi): Remove setting of
1406 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1407 tdep->classify, tdep->memory_args_by_pointer and
1408 tdep->integer_param_regs_saved_in_caller_frame.
1409 Add call to set_gdbarch_push_dummy_call.
1410
82bf32bc
JK
14112013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1412
1413 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1414 objfile->original_name.
1415
24ba069a
JK
14162013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1417
1418 Pass down original filename for objfile.
1419 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1420 * elfread.c (elf_symfile_read): Likewise.
1421 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1422 longer set ORIGINAL_NAME.
1423 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1424 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1425 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1426 symbol_file_add_from_bfd call.
1427 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1428 (macho_check_dsym): Add parameter filenamep. Change function comment.
1429 Set *filenamep.
1430 (macho_symfile_read): New variable dsym_filename. Update
1431 macho_check_dsym call. Use it for symbol_file_add_separate.
1432 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1433 it. Use it for objfile->original_name.
1434 (objfile_name): Return OBFD's filename, if available.
1435 * objfiles.h (allocate_objfile): Add new parameter name.
1436 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1437 * symfile-mem.c (symbol_file_add_from_memory): Update
1438 symbol_file_add_from_bfd call.
1439 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1440 comment for it.
1441 (symbol_file_add_with_addrs): New parameter name, add function comment
1442 for it. Remove variable name. Update allocate_objfile call.
1443 (symbol_file_add_separate): New parameter name, add function comment
1444 for it. Update symbol_file_add_with_addrs call.
1445 (symbol_file_add_from_bfd): New parameter name. Update
1446 symbol_file_add_with_addrs call.
1447 (symbol_file_add): Update symbol_file_add_from_bfd call.
1448 (reread_symbols): New variable original_name. Save
1449 objfile->original_name by it.
1450 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1451 second parameter.
1452
4262abfb
JK
14532013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 Code cleanup: Add objfile_name accessor function.
1456 * ada-lang.c (is_known_support_routine): Use objfile_name.
1457 * auto-load.c (source_gdb_script_for_objfile)
1458 (auto_load_objfile_script): Likewise.
1459 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1460 * dbxread.c (dbx_symfile_read): Likewise.
1461 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1462 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1463 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1464 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1465 (lookup_dwp_signatured_type, lookup_dwo_unit)
1466 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1467 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1468 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1469 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1470 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1471 (read_subrange_type, load_partial_dies, read_partial_die)
1472 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1473 (die_containing_type, build_error_marker_type, lookup_die_type)
1474 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1475 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1476 (get_DW_AT_signature_type, write_psymtabs_to_index)
1477 (save_gdb_index_command): Likewise.
1478 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1479 Likewise.
1480 * expprint.c (dump_subexp_body_standard): Likewise.
1481 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1482 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1483 original_name.
1484 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1485 obj_name, use objfile_name for it, use the variable.
1486 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1487 Use objfile_name.
1488 * machoread.c (macho_symtab_read, macho_check_dsym)
1489 (macho_symfile_relocate): Likewise.
1490 * maint.c (maintenance_translate_address): Likewise.
1491 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1492 * minsyms.c (install_minimal_symbols): Likewise.
1493 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1494 original_name.
1495 (filter_overlapping_sections): Use objfile_name.
1496 (objfile_name): New function.
1497 * objfiles.h (struct objfile): Rename field name to original_name.
1498 (objfile_name): New prototype.
1499 * printcmd.c (sym_info, address_info): Use objfile_name.
1500 * probe.c (parse_probes, collect_probes, compare_probes)
1501 (info_probes_for_ops): Likewise.
1502 * progspace.c (clone_program_space): Likewise.
1503 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1504 (maintenance_info_psymtabs): Likewise.
1505 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1506 (source_section_scripts): Likewise.
1507 * python/py-objfile.c (objfpy_get_filename): Likewise.
1508 * python/py-progspace.c (pspy_get_filename): Likewise.
1509 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1510 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1511 * solib.c (solib_read_symbols): Likewise.
1512 * stabsread.c (scan_file_globals): Likewise.
1513 * stap-probe.c (handle_stap_probe): Likewise.
1514 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1515 (find_separate_debug_file_by_debuglink): Likewise.
1516 (reread_symbols): Likewise. Use the objfile field name renamed to
1517 original_name.
1518 (allocate_symtab): Use objfile_name.
1519 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1520 (dump_objfile, dump_msymbols, dump_symtab_1)
1521 (maintenance_print_msymbols, maintenance_print_objfiles)
1522 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1523 * target.c (target_translate_tls_address, target_info): Likewise.
1524 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1525 objfile_name.
1526
4721dc18
JK
15272013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 Code cleanup.
1530 * probe.c (parse_probes): Rename variable objfile_name to
1531 objfile_namestr.
1532
a61d6db8
JK
15332013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 Remove solib-sunos.c.
1536 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1537 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1538 * objfiles.c (rt_common_objfile): Remove.
1539 (free_objfile): Remove rt_common_objfile comparison.
1540 * objfiles.h (rt_common_objfile): Remove.
1541 * solib-sunos.c: Remove.
1542 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1543
2659903b
JK
15442013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 Remove a.out NetBSD and OpenBSD hosts.
1547 * NEWS (Removed native configurations): New.
1548 * config/arm/nbsdaout.mh: Remove.
1549 * config/i386/nbsdaout.mh: Remove.
1550 * config/i386/obsdaout.mh: Remove.
1551 * config/m68k/nbsdaout.mh: Remove.
1552 * config/sparc/nbsdaout.mh: Remove.
1553 * config/vax/nbsdaout.mh: Remove.
1554 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1555 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1556 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1557 error.
1558 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1559 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1560 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1561
f60e2d5c
TT
15622013-09-23 Tom Tromey <tromey@redhat.com>
1563
1564 * linespec.c (struct minsym_and_objfile): Remove.
1565 (minsym_and_objfile_d): Remove.
1566 (struct linespec, struct collect_info, linespec_parse_basic)
1567 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1568 (compare_msymbols, find_method, find_function_symbols)
1569 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1570 (add_minsym, search_minsyms_for_name): Update.
1571
d3eaaf66
AB
15722013-09-23 Andrew Burgess <aburgess@broadcom.com>
1573
1574 * regcache.c: Add include of valprint.h.
1575 (dump_endian_bytes): Delete.
1576 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1577
2cc762b5
AB
15782013-09-23 Andrew Burgess <aburgess@broadcom.com>
1579
1580 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1581
96181529
PA
15822013-09-19 Pedro Alves <palves@redhat.com>
1583
1584 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1585 breakpoints.
1586
9b3f3ee6
TS
15872013-09-19 Pedro Alves <palves@redhat.com>
1588 Thomas Schwinge <thomas@codesourcery.com>
1589 Yue Lu <hacklu.newborn@gmail.com>
1590
1591 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1592 Take a gdb_byte pointer instead of a char pointer.
1593
1594 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1595 gnu_xfer_partial helper.
1596 (gnu_xfer_partial): New function.
1597 (gnu_target): Don't install a deprecated_xfer_memory hook.
1598 Install a to_xfer_partial hook.
1599
69150c3d
JK
16002013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 Constification.
1603 * main.c (captured_main): Replace catch_command_errors by
1604 catch_command_errors_const. Twice.
1605 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1606 (symbol_file_add): Make name parameter const.
1607 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1608 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1609 variable name. Change their usage accordingly.
1610 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1611 const.
1612 (symbol_file_add_main): Make args parameter const.
1613
086850b2
UW
16142013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1615 Ulrich Weigand <uweigand@de.ibm.com>
1616
1617 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1618 of c_value member.
1619 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1620
ca08a94c 16212013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1622 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1623
1624 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1625 (gnu_create_inferior)
1626 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1627 (set_sig_thread_cmd): Use the lwpid field of ptids to
1628 store/extract thread ids instead of the tid field.
1629 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1630
e4c6a2c4
AB
16312013-09-18 Andrew Burgess <aburgess@broadcom.com>
1632
1633 * infcmd.c (default_print_one_register_info): Add detection of
1634 optimized out values.
1635 (default_print_registers_info): Switch to using
1636 get_frame_register_value.
1637
58c48e72
MM
16382013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1639
1640 * infrun.c (handle_inferior_event): Check if we know the
1641 function start address before setting a resume breakpoint.
1642
c8d37639
PA
16432013-09-18 Pedro Alves <palves@redhat.com>
1644
1645 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1646 minus_one_ptid instead of looking at the ptid's tid field and
1647 comparing that to -1.
1648
71926e28
AB
16492013-09-18 Andrew Burgess <aburgess@broadcom.com>
1650
1651 * main.h (get_gdb_program_name): Remove extra whitespace.
1652
c88a1531
AB
16532013-09-18 Andrew Burgess <aburgess@broadcom.com>
1654
1655 * main.h (get_gdb_program_name): Add declaration.
1656 * main.c (get_gdb_program_name): Add definition.
1657
4390d890
DE
16582013-09-17 Doug Evans <dje@google.com>
1659
1660 * dwarf2read.c: Move definitions of complaint functions to after
1661 forward declarations of local functions.
1662
49fa26b0
PA
16632013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1664 Pedro Alves <palves@redhat.com>
1665
1666 PR gdb/11568
1667 * breakpoint.c (remove_threaded_breakpoints): New function.
1668 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1669 as thread_exit observer.
1670
08d72866
PA
16712013-09-17 Pedro Alves <palves@redhat.com>
1672
1673 PR gdb/15911
1674 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1675 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1676 * corelow.c (core_open):
1677 * frame.h (print_stack_frame, print_frame_info): New
1678 'set_current_sal' parameter.
1679 * infcmd.c (finish_command, kill_command): Adjust call to
1680 print_stack_frame.
1681 * inferior.c (inferior_command): Likewise.
1682 * infrun.c (normal_stop): Likewise.
1683 * linux-fork.c (linux_fork_context): Likewise.
1684 * record-full.c (record_full_goto_entry, record_full_restore):
1685 Likewise.
1686 * remote-mips.c (common_open): Likewise.
1687 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1688 Use it.
1689 (print_frame_info): New 'set_current_sal' parameter. Set the last
1690 displayed sal depending on the new paremeter instead of looking at
1691 print_what.
1692 (backtrace_command_1, select_and_print_frame, frame_command)
1693 (current_frame_command, up_command, down_command): Adjust call to
1694 print_stack_frame.
1695 * thread.c (print_thread_info, restore_selected_frame)
1696 (do_captured_thread_select): Adjust call to print_stack_frame.
1697 * tracepoint.c (tfind_1): Likewise.
1698 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1699 (mi_cmd_stack_info_frame): Likewise.
1700 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1701 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1702
6bc305f5
SDJ
17032013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1704
1705 * value.c (isvoid_internal_fn): Replace "parameter" with
1706 "argument".
1707
0a7cfe2c
SS
17082013-09-16 Stan Shebs <stan@codesourcery.com>
1709
1710 * README: Update references to writing code for GDB.
1711 * configure.ac (build_warnings): Remove obsolete comment.
1712 * configure: Regenerate.
1713 * gdbarch.sh: Remove references to gdbint.texinfo.
1714 * gdbarch.h: Regenerate.
1715 * gdbtypes.c (objfile_type): Remove comments referencing internals
1716 manual and D10V.
1717
a280dbd1
SDJ
17182013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1719
1720 * NEWS: Mention new convenience function $_isvoid.
1721 * value.c (isvoid_internal_fn): New function.
1722 (_initialize_values): Add new convenience function $_isvoid.
1723
04a83fee
PM
17242013-09-16 Pierre Muller <muller@sourceware.org>
1725
1726 * arm-linux-tdep.c: Add "elf/common.h" header.
1727 Remove AT_HWCAP macro definintion as it is provided in
1728 added include file.
1729 * s390-tdep.c: Remove system header <elf.h>
1730 Add "elf/common.h" header for AT_HWCAP definition.
1731 (s390_core_read_description): Use correct CORE_ADDR
1732 for hwcap local variable used as third parameter
1733 of function target_auxv_search.
1734
88505fac
PM
17352013-09-14 Pierre Muller <muller@sourceware.org>
1736 Tom Tromey <tromey@redhat.com>
1737 Pedro Alves <palves@redhat.com>
1738
1739 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1740 mode if operating system doesn't know O_CLOEXEC.
1741
d3846e71
JK
17422013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 Code cleanup.
1745 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1746 inner block.
1747
4ac33720
UW
17482013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1749
1750 * NEWS: Mention TDB support.
1751 * features/s390-tdb.xml: New file.
1752 * features/s390-te-linux64.xml: New file.
1753 * features/s390x-te-linux64.xml: New file.
1754 * features/Makefile (WHICH): Add new tdescs above.
1755 (s390-te-linux64-expedite): Set.
1756 (s390x-te-linux64-expedite): Set.
1757 * features/s390-te-linux64.c: New file (generated).
1758 * features/s390x-te-linux64.c: New file (generated).
1759 * regformats/s390-te-linux64.dat: New file (generated).
1760 * regformats/s390x-te-linux64.dat: New file (generated).
1761 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1762 (HWCAP_S390_TE): Likewise.
1763 (S390_TDB_DWORD0_REGNUM): Likewise.
1764 (S390_TDB_DWORD0_REGNUM): Likewise.
1765 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1766 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1767 (S390_TDB_ATIA_REGNUM): Likewise.
1768 (S390_TDB_R0_REGNUM): Likewise.
1769 (S390_TDB_R1_REGNUM): Likewise.
1770 (S390_TDB_R2_REGNUM): Likewise.
1771 (S390_TDB_R3_REGNUM): Likewise.
1772 (S390_TDB_R4_REGNUM): Likewise.
1773 (S390_TDB_R5_REGNUM): Likewise.
1774 (S390_TDB_R6_REGNUM): Likewise.
1775 (S390_TDB_R7_REGNUM): Likewise.
1776 (S390_TDB_R8_REGNUM): Likewise.
1777 (S390_TDB_R9_REGNUM): Likewise.
1778 (S390_TDB_R10_REGNUM): Likewise.
1779 (S390_TDB_R11_REGNUM): Likewise.
1780 (S390_TDB_R12_REGNUM): Likewise.
1781 (S390_TDB_R13_REGNUM): Likewise.
1782 (S390_TDB_R14_REGNUM): Likewise.
1783 (S390_TDB_R15_REGNUM): Likewise.
1784 (S390_NUM_REGS): Increase.
1785 (S390_IS_TDBREGSET_REGNUM): New macro.
1786 (s390_regmap_tdb): Declare.
1787 (s390_sizeof_tdbregset): Define.
1788 (tdesc_s390_te_linux64): Declare.
1789 (tdesc_s390x_te_linux64): Likewise.
1790 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1791 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1792 (s390_regmap_tdb): New regmap.
1793 (s390_supply_tdb_regset): New function.
1794 (s390_tdb_regset): New regset.
1795 (s390_linux64v2_regset_sections): Add TDB regset to list.
1796 (s390x_linux64v2_regset_sections): Likewise.
1797 (s390_regset_from_core_section): Recognize TDB core note section.
1798 (s390_core_read_description): If HWCAP indicates TE support,
1799 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1800 (s390_gdbarch_init): Handle TDB regset.
1801 (_initialize_s390_tdep): Initialize new tdescs.
1802 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1803 (have_regset_tdb): New variable.
1804 (s390_native_supply): Support register invalidation.
1805 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1806 (check_regset): Treat ENODATA as "regset exists".
1807 (s390_linux_fetch_inferior_registers): Add TDB.
1808 (s390_read_description): Check for TDB existence and select
1809 appropriate tdesc.
1810 * gdbserver/Makefile.in (clean): Add removal of new makefile
1811 targets.
1812 (s390-te-linux64.c): New makefile target.
1813 (s390x-te-linux64.c): Likewise.
1814 * gdbserver/configure.srv (srv_regobj): Append new objects
1815 s390-te-linux64.o and s390x-te-linux64.o.
1816 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1817 s390x-te-linux64.xml, and s390-tdb.xml.
1818 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1819 declaration.
1820 (tdesc_s390_te_linux64): Likewise.
1821 (init_registers_s390x_te_linux64): Likewise.
1822 (tdesc_s390x_te_linux64): Likewise.
1823 (s390_check_regset): Treat ENODATA as "regset exists".
1824 (s390_arch_setup): Add TDB regset support.
1825 (initialize_low_arch): Initialize registers for new tdescs.
1826
2ccd1468
UW
18272013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1828
1829 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1830 (S390_IS_FPREGSET_REGNUM): New macro.
1831 * s390-tdep.c (s390_dwarf_regmap): Make const.
1832 (regnum_is_gpr_full): New function for replacing repeated code.
1833 (s390_pseudo_register_name): Use it.
1834 (s390_pseudo_register_type): Likewise.
1835 (s390_pseudo_register_read): Likewise.
1836 (s390_pseudo_register_write): Likewise.
1837 (s390_unwind_pseudo_register): Likewise.
1838 (s390_regmap_gregset): New format for regmap.
1839 (s390x_regmap_gregset): Likewise.
1840 (s390_regmap_fpregset): Likewise.
1841 (s390_regmap_upper): Likewise.
1842 (s390_regmap_last_break): Likewise.
1843 (s390_regmap_system_call): Likewise.
1844 (s390_supply_regset): Adjust to new regmap format.
1845 (s390_collect_regset): Likewise.
1846 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1847 (s390_native_collect): Likewise.
1848 (supply_gregset): Likewise.
1849 (fill_gregset): Likewise.
1850 (supply_fpregset): Likewise.
1851 (fill_fpregset): Likewise.
1852 (fetch_regset): Likewise.
1853 (store_regset): Likewise.
1854 (s390_linux_fetch_inferior_registers): Likewise.
1855 (s390_linux_fetch_inferior_registers): Likewise.
1856
1aa4cd77
AP
18572013-09-12 Andrew Pinski <apinski@cavium.com>
1858
1859 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1860
d91fab15
UW
18612013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1862
1863 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1864
5a5d8ead
AB
18652013-09-09 Andrew Burgess <aburgess@broadcom.com>
1866
1867 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1868
1385f66c
PA
18692013-09-06 Pedro Alves <palves@redhat.com>
1870
1871 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1872 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1873 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1874 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1875 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1876 gdb_stdlog.
1877
146ec4db
PA
18782013-09-06 Pedro Alves <palves@redhat.com>
1879
1880 * remote-sim.c (dump_mem): Constify buf parameter.
1881 gdbsim_xfer_inferior_memory): Rename to ...
1882 (gdbsim_xfer_memory): ... this. Adjust interface as
1883 target_xfer_partial helper.
1884 (gdbsim_xfer_partial): New function.
1885 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1886 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1887
fcde0081
PA
18882013-09-06 Pedro Alves <palves@redhat.com>
1889
1890 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1891 host_address_to_string, and send debug output to gdb_stdlog.
1892
749c8b38
RW
18932013-09-06 Ricard Wanderlof <ricardw@axis.com>
1894
1895 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1896 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1897 gdb_target_obs for cris target.
1898 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1899 (cris_gdbarch_init): Move calls to
1900 set_gdbarch_fetch_tls_load_module_address and
1901 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1902 Add call to gdbarch_init_osabi.
1903 * cris-linux-tdep.c: New file.
1904 * cris-tdep.h: New file.
1905
43df09d9
AB
19062013-09-06 Andrew Burgess <aburgess@broadcom.com>
1907
1908 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1909 to deprecated_init_ui_hook.
1910
4d09c5b4
AB
19112013-09-06 Andrew Burgess <aburgess@broadcom.com>
1912
1913 * cli/cli-interp.c (_initialize_cli_interp): Add a
1914 command_loop_proc to interp_procs.
1915 * event-top.c (cli_command_loop): Change signature to match
1916 interp_command_loop_ftype.
1917 * event-top.h (cli_command_loop): Same.
1918 * interps.c (interp_new): Require every interpreter to have a
1919 command_loop_proc.
1920 (current_interp_command_loop): Just call the command_loop_proc on
1921 the current interpreter.
1922 * tui/tui-interp.c (_initialize_tui_interp): Add a
1923 command_loop_proc to interp_procs.
1924
8eb3d7b6
RW
19252013-09-06 Ricard Wanderlof <ricardw@axis.com>
1926
1927 * cris-tdep.c (cris_gdbarch_init): Add call to
1928 get_gdbarch_fetch_tls_load_module_address.
1929
18b3c2f5
RW
19302013-09-06 Ricard Wanderlof <ricardw@axis.com>
1931
1932 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1933 (cris_elf_gregset_t): Rename from elf_gregset_t.
1934 (crisv32_elf_gregset_t): Adjust.
1935 (cris_supply_gregset, fetch_core_registers): Adjust.
1936
dc8636ef
RW
19372013-09-06 Ricard Wanderlof <ricardw@axis.com>
1938
1939 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1940
257e6d53
AB
19412013-09-05 Andrew Burgess <aburgess@broadcom.com>
1942
1581d8a7 1943 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1944 references in comments.
1581d8a7 1945 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1946 deprecated_command_loop_hook.
1947 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1948 setup.
1581d8a7 1949 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1950
7c33b57c
PA
19512013-09-05 Pedro Alves <palves@redhat.com>
1952
1953 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1954 local is now int instead of ULONGEST. Print it with %d
1955 instead of paddress.
1956
9f8edbd5
TG
19572013-09-05 Tristan Gingold <gingold@adacore.com>
1958
1959 * MAINTAINERS: Remove avr maintainership.
1960
d5b495b4
PA
19612013-09-05 Pedro Alves <palves@redhat.com>
1962
1963 * findvar.c (value_of_register): Rework in terms of
1964 value_of_register_lazy.
1965
40b91786
MB
19662013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1967
1968 * symfile.c (add_symbol_file_command): Remove trailing
1969 whitespaces and blank line after comment.
1970
6eed1678
PA
19712013-09-05 Pedro Alves <palves@redhat.com>
1972
1973 * tui/tui-regs.c (tui_register_format): Don't look at the
1974 register's name here. Return string representing register
1975 value instead of storing it in the data element.
1976 (tui_get_register): Compare register string representations
1977 instead of register value states and contents.
1978
8eb6bda2
PA
19792013-09-05 Pedro Alves <palves@redhat.com>
1980
1981 PR tui/15933
1982 * tui/tui-regs.c (tui_show_registers): Show registers of the
1983 selected frame, not the current frame.
1984
48b1f08c
RW
19852013-09-05 Ricard Wanderlof <ricardw@axis.com>
1986
1987 * MAINTAINERS (Write After Approval): Add myself to the list.
1988
89e63ee4
DE
19892013-09-04 Doug Evans <dje@google.com>
1990
1991 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1992 (queue_and_load_dwo_tu): New function.
1993 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1994 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1995 Make dependent_cu optional.
1996 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1997 and an older .gdb_index is in use, queue and load all its TUs too.
1998
492c0ab7
JK
19992013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2002 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2003 variable search_flags.
2004 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2005 (OPF_RETURN_REALPATH): ... here.
2006 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2007 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2008 call. Twice.
2009 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2010 openp call.
2011 * solib.c (solib_find): Likewise. Four times.
2012 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2013 in the function comment and for the realpath_fptr variable.
2014 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2015 (find_and_open_source): Likewise. Twice.
2016 * symfile.c (symfile_bfd_open): Likewise, also twice.
2017
23a44de8
DE
20182013-09-04 Doug Evans <dje@google.com>
2019
2020 * progspace.c (save_current_space_and_thread): Remove unnecessary
2021 call to save_current_inferior.
2022
47061676
AB
20232013-09-04 Andrew Burgess <aburgess@broadcom.com>
2024
2025 * sh64-tdep.c (sh64_do_register): Return after printing message
2026 about unavailable register contents.
2027
41dc8db8
MB
20282013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2029 Pedro Alves <palves@redhat.com>
2030
2031 * symfile.c (add_symbol_file_command): Error out on unknown
2032 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2033 options and collapse into single conditional branch.
2034
07107ca6
LM
20352013-09-03 Luis Machado <lgustavo@codesourcery.com>
2036
a7ea61cf 2037 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2038 detach_fork.
2039 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2040 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2041 * inferior.h (detach_fork): Remove.
2042 * infrun.c (detach_fork): Adjust comment and make it
2043 static.
2044 (follow_fork): Pass detach_fork parameter to
2045 target_follow_fork.
2046 * linux-nat.c (linux_child_follow_fork): New parameter
2047 detach_fork.
2048 * target.c (target_follow_fork): New parameter detach_fork.
2049 Pass detach_fork as parameter and print its value.
2050 * target.h (struct target_ops) <to_follow_fork>: New int
2051 parameter.
2052 (target_follow_fork): New parameter detach_fork.
2053
3bec2768
JB
20542013-09-03 Joel Brobecker <brobecker@adacore.com>
2055
2056 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2057 Replace sec->bfd by sec->the_bfd_section->owner.
2058
c01cbb3d
YQ
20592013-09-03 Yao Qi <yao@codesourcery.com>
2060
2061 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2062 from linux_has_shared_address_space.
2063 (linux_has_shared_address_space): Call linux_is_uclinux.
2064 * linux-tdep.h (linux_is_uclinux): Declare.
2065 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2066 linux_is_uclinux.
2067
7b00db47
YQ
20682013-09-03 Yao Qi <yao@codesourcery.com>
2069
2070 * config/djgpp/fnchange.lst: Remove entry of
2071 i386-interix-nat.c and i386-interix-tdep.c.
2072 * configure.ac: Remove '*-*-interix*'.
2073 * configure: Re-generated.
2074 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2075 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2076 obsolete comments.
2077 * osabi.c (gdb_osabi_names): Remove "Interix".
2078
0f9741f2
YQ
20792013-09-03 Yao Qi <yao@codesourcery.com>
2080
2081 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2082
1e038f67
MM
20832013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2084
2085 * record.h (record_print_flag) <record_print_src_line,
2086 record_print_insn_range>: Rename into ...
2087 (record_print_flag) <record_print_src_line,
2088 record_print_insn_range>: ... this. Update all users.
2089
9e52adf9
PM
20902013-09-02 Pierre Muller <muller@sourceware.org>
2091
2092 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2093 error code.
2094
a2388568
PM
20952013-09-02 Pierre Muller <muller@sourceware.org>
2096
2097 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2098 by use of plongest function.
2099
9058cc3a
TG
21002013-09-02 Tristan Gingold <gingold@adacore.com>
2101
2102 * NEWS: Add entry mentioning support for native Windows x64
2103 SEH data.
2104
2105 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2106 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2107 (struct amd64_windows_frame_cache): New struct.
2108 (amd64_windows_w2gdb_regnum): New global.
2109 (pc_in_range, amd64_windows_frame_decode_epilogue)
2110 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2111 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2112 (amd64_windows_frame_this_id): New functions.
2113 (amd64_windows_frame_unwind): New static global.
2114 (amd64_windows_skip_prologue): New function.
2115 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2116 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2117 with amd64_windows_skip_prologue.
2118
3161820b 21192013-08-30 Joel Brobecker <brobecker@adacore.com>
2120
2121 GDB 7.6.1 released.
2122
02457c76
PA
21232013-08-30 Pedro Alves <palves@redhat.com>
2124
2125 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2126 SRC_AND_LOC.
2127
e0162910
PA
21282013-08-30 Pedro Alves <palves@redhat.com>
2129
2130 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2131 warning text.
2132
6391ce51
PA
21332013-08-30 Pedro Alves <palves@redhat.com>
2134
2135 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2136 Adjust arguments to print_stack_frame.
2137
d1da0587
PA
21382013-08-30 Pedro Alves <palves@redhat.com>
2139
2140 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2141
adfd8245
PA
21422013-08-30 Pedro Alves <palves@redhat.com>
2143
2144 * frame.h (show_and_print_stack_frame): Delete declaration.
2145
96d9056e
PM
21462013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2147
2148 PR python/15461
2149
2150 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2151 (archpy_name): Check for valid architecture.
2152 (archpy_disassemble): Ditto.
2153
11cb8762
JB
21542013-08-29 Joel Brobecker <brobecker@adacore.com>
2155
2156 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2157 instead of "long long" in call to ptrace64.
2158
1af12a7d
AB
21592013-08-29 Andrew Burgess <aburgess@broadcom.com>
2160
2161 * mi/mi-interp.c (mi_command_loop): Change signature to match
2162 interp_command_loop_ftype.
2163 (mi1_command_loop): Remove.
2164 (mi2_command_loop): Remove.
2165 (mi3_command_loop): Remove.
2166 (mi_interpreter_resume): Remove setting of
2167 deprecated_command_loop_hook.
2168 (_initialize_mi_interp): Set mi_command_loop as the command loop
2169 callback.
2170
acc900c2
SA
21712013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2172
2173 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2174 value_type.
2175
548b762d
SA
21762013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2177
2178 * value.c (allocate_value_contents): Make static.
2179 * value.h (allocate_value_contents): Remove prototype.
2180
08039c9e
SA
21812013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2182
2183 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2184 of assembling value via allocate_value_lazy and attribute setter.
2185 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2186 assembling value via allocate_value_lazy and attribute setter.
2187 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2188 assembling value via allocate_value_lazy and attribute setter.
2189
314c7de9
SA
21902013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2191
2192 * value.c (value_from_contents_and_address): Replace allocate_value and
2193 memcpy with value_from_contents.
2194
8f28f522
PM
21952013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2196
2197 * python/py-framefilter.c (py_print_frame): Remove usage of
2198 PyString_AsString. Use python_string_to_host_string instead.
2199 Refactor function to work with a string as a new allocation
2200 instead of a pointer.
2201 (py_print_frame): Ditto.
2202 * python/lib/gdb/frames.py (return_list): Cain iterators together
2203 instead of adding them as a list.
2204 (_sort_list): Call return_list, and remove duplicate code.
2205 (execute_frame_filters): Convert iterator to a list with list().
2206 * python/lib/gdb/command/frame_filters.py
2207 (SetFrameFilterPriority._set_filter_priority): Convert priority
2208 attribute to an integer.
2209 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2210 wrapper function __next__.
2211 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2212 define as "str".
2213
8ee002df
PM
22142013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2215
2216 PR python/15752
8ee002df
PM
2217 * python/py-framefilter.c (apply_frame_filter): Check
2218 gdb_python_initialized. Exit if the Python frame-filter code
2219 cannot be initialized.
2220
af4c453a
PM
22212013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2222
2223 PR cli/15842
af4c453a
PM
2224 * top.c (print_gdb_version): Remove erroneous newline after help
2225 text.
2226
bf8793bb
YQ
22272013-08-29 Yao Qi <yao@codesourcery.com>
2228
2229 * varobj.c (install_dynamic_child): Remove trailing space.
2230 Add one blank line after variable declaration.
2231
1f0c4988
JK
22322013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 PR gdb/15415
2235 * corefile.c (get_exec_file): Use exec_filename.
2236 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2237 * exec.c (exec_close): Free EXEC_FILENAME.
2238 (exec_file_attach): New variable canonical_pathname. Use
2239 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2240 EXEC_FILENAME.
2241 * exec.h (exec_filename): New.
2242 * inferior.c (print_inferior, inferior_command): Use
2243 PSPACE_EXEC_FILENAME.
2244 * mi/mi-main.c (print_one_inferior): Likewise.
2245 * progspace.c (clone_program_space, print_program_space): Likewise.
2246 * progspace.h (struct program_space): New field pspace_exec_filename.
2247 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2248 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2249
59ee9f94
WN
22502013-08-28 Will Newton <will.newton@linaro.org>
2251
2252 * common/linux-ptrace.c: Include stdint.h unconditionally.
2253
c8a2a419
JK
22542013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 Code cleanup.
2257 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2258
ffa4ac95
YQ
22592013-08-28 Yao Qi <yao@codesourcery.com>
2260 Pedro Alves <palves@redhat.com>
2261
2262 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2263 instead of stdio_fileopen.
2264 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2265 .Call stderr_fileopen instead of stdio_fileopen.
2266 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2267 [__MINGW32__] (stderr_file_fputs): New function.
2268 (stderr_fileopen): New function.
2269 * ui-file.h (stderr_fileopen): Declare.
2270
69d751e3
DE
22712013-08-27 Doug Evans <dje@google.com>
2272
2273 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2274 (struct dwarf2_per_cu_data): Ditto.
2275 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2276 (process_imported_unit_die): Ditto.
2277 (follow_die_sig_1): Simplify assert.
2278
44f38867
PA
22792013-08-27 Pedro Alves <palves@redhat.com>
2280
2281 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2282 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2283 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2284 windows_xfer_memory directly.
2285 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2286
d28d46b5
PA
22872013-08-27 Pedro Alves <palves@redhat.com>
2288
2289 * darwin-nat.c (darwin_xfer_memory): Delete.
2290 (_initialize_darwin_inferior): Don't install a
2291 deprecated_xfer_memory method.
2292
6211c335
YQ
22932013-08-27 Pedro Alves <pedro@codesourcery.com>
2294 Yao Qi <yao@codesourcery.com>
2295
2296 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2297 (parse_no_frames_option): Remove.
2298 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2299 (mi_cmd_stack_list_args): Adjust.
2300 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2301 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2302 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2303 Caller update.
2304 (list_args_or_locals): New parameter 'skip_unavailable'.
2305 Handle it.
2306 * valprint.c (scalar_type_p): Rename to ...
2307 (val_print_scalar_type_p): ... this. Make extern.
2308 (val_print, value_check_printable): Adjust.
2309 * valprint.h (val_print_scalar_type_p): Declare.
2310 * value.c (value_entirely_unavailable): New function.
2311 * value.h (value_entirely_unavailable): Declare.
2312
2313 * NEWS: Mention the new option "--skip-unavailable" to MI
2314 commands '-stack-list-locals', '-stack-list-arguments' and
2315 '-stack-list-variables'.
2316
242f1fd7
YQ
23172013-08-27 Yao Qi <yao@codesourcery.com>
2318
2319 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2320 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2321 options.
2322 * mi/mi-getopt.c (mi_getopt): Remove.
2323 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2324 'error_on_unknown'.
2325 (mi_getopt): Call mi_getopt_1.
2326 (mi_getopt_silent): New.
2327 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2328
260b681b
DE
23292013-08-26 Doug Evans <dje@google.com>
2330
779bd270
DE
2331 PR symtab/15885
2332 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2333 .gdb_index is in use.
2334 * symfile.c (reread_symbols): Reset objfile->sf.
2335
52e260a3
DE
2336 * NEWS: Document "mt print objfiles" now takes optional regexp.
2337 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2338 regexp of objfiles to print.
2339 (_initialize_symmisc): Update doc string for "mt print objfiles".
2340
260b681b
DE
2341 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2342 missing debug info checks.
2343
a85c52f2
UW
23442013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2345 Ulrich Weigand <uweigand@de.ibm.com>
2346
2347 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2348 line tables generated by XLC compiled binaries.
2349
4f00dda3
DE
23502013-08-23 Doug Evans <dje@google.com>
2351
db68bbae
DE
2352 * symmisc.c (dump_symtab): Delete prototype.
2353 (dump_msymbols, dump_objfile): Ditto.
2354 (maintenance_info_symtabs): Mark as dont_repeat.
2355 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2356
4f00dda3
DE
2357 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2358 debugging printf to better location.
2359
23d577b0
PA
23602013-08-23 Pedro Alves <palves@redhat.com>
2361
2362 * target.c (target_read_live_memory): Change type of 'ret' local
2363 to LONGEST.
2364
00d84524
PA
23652013-08-23 Pedro Alves <palves@redhat.com>
2366
2367 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2368 (remote_read_bytes): Change return type to LONGEST, and adjust to
2369 return a target_xfer_error on error.
2370 (remote_xfer_memory): Delete.
2371 (remote_flash_write): Change type of 'ret' local to LONGEST.
2372 (remote_xfer_partial, remote_xfer_partial): Adjust.
2373 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2374
1ed3ee94
PM
23752013-08-23 Pierre Muller <muller@sourceware.org>
2376
2377 ARI fix: Push # directives to start of line.
2378 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2379
9eaabc75
MW
23802013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2381
2382 PR gdb/15501
2383 * breakpoint.c (enable_command, disable_command): Iterate over
2384 all specified breakpoint locations.
2385
101158d9
LM
23862013-08-22 Luis Machado <lgustavo@codesourcery.com>
2387
2388 * common/linux-ptrace.c (linux_fork_to_function): Push #
2389 directives to the start of the line.
2390 (linux_check_ptrace_features): Fix warning message to use
2391 the "_" markup.
2392
96d7229d
LM
23932013-08-22 Luis Machado <lgustavo@codesourcery.com>
2394
2395 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2396 nat/linux-waitpid.h.
2397 (linux-waitpid.o): New object file rule.
2398 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2399 (current_ptrace_options): Moved from linux-nat.c.
2400 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2401 parameters.
2402 (linux_fork_to_function): New function.
2403 (linux_grandchild_function): Likewise.
2404 (linux_child_function): Likewise.
2405 (linux_check_ptrace_features): New function, heavily
2406 based on linux-nat.c:linux_test_for_tracefork.
2407 (linux_enable_event_reporting): New function.
2408 (ptrace_supports_feature): Likewise.
2409 (linux_supports_tracefork): Likewise.
2410 (linux_supports_traceclone): Likewise.
2411 (linux_supports_tracevforkdone): Likewise.
2412 (linux_supports_tracesysgood): Likewise.
2413 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2414 gdbserver/linux-low.c.
2415 (linux_enable_event_reporting): New declaration.
2416 (linux_supports_tracefork): Likewise.
2417 (linux_supports_traceclone): Likewise.
2418 (linux_supports_tracevforkdone): Likewise.
2419 (linux_supports_tracesysgood): Likewise.
2420 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2421 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2422 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2423 * config/arm/linux.mh (NATDEPFILES): Likewise.
2424 * config/i386/linux.mh (NATDEPFILES): Likewise.
2425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2426 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2427 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2428 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2429 * config/mips/linux.mh (NATDEPFILES): Likewise.
2430 * config/pa/linux.mh (NATDEPFILES): Likewise..
2431 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2432 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2433 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2434 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2435 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2436 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2437 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2438 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2439 ptrace's 4th argument's types.
2440 Check the type of PTRACE_TYPE_ARG4.
2441 * configure: Regenerate.
2442 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2443 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2444 (linux_supports_tracefork_flag): Remove.
2445 (linux_supports_tracesysgood_flag): Likewise.
2446 (linux_supports_tracevforkdone_flag): Likewise.
2447 (current_ptrace_options): Moved to
2448 common/linux-ptrace.c.
2449 (linux_tracefork_child): Remove.
2450 (my_waitpid): Remove.
2451 (linux_test_for_tracefork): Renamed to
2452 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2453 (linux_test_for_tracesysgood): Remove.
2454 (linux_supports_tracesysgood): Remove.
2455 (linux_supports_tracefork): Remove.
2456 (linux_supports_tracevforkdone): Remove.
2457 (linux_enable_tracesysgood): Remove.
2458 (linux_enable_event_reporting): Remove.
2459 (linux_init_ptrace): New function.
2460 (linux_child_post_attach): Call linux_init_ptrace.
2461 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2462 (linux_child_follow_fork): Call linux_supports_tracefork
2463 and linux_supports_tracevforkdone.
2464 (linux_child_insert_fork_catchpoint): Call
2465 linux_supports_tracefork.
2466 (linux_child_insert_vfork_catchpoint): Likewise.
2467 (linux_child_set_syscall_catchpoint): Call
2468 linux_supports_tracesysgood.
2469 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2470 * nat/linux-nat.h: New file.
2471 * nat/linux-waitpid.c: New file.
2472 * nat/linux-waitpid.h: New file.
2473
9f948660
SDJ
24742013-08-22 Samuel Bronson <naesten@gmail.com>
2475
2476 ARM Linux support for `catch syscall'.
2477 * syscalls/arm-linux.py: New file.
2478 * syscalls/arm-linux.xml: Likewise.
2479 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2480 (arm_linux_init_abi): Register the new function and syscall xml file.
2481 * data-directory/Makefile.in: Install the new syscall xml file.
2482 * NEWS: Brag about this.
2483
6be7b56e
PA
24842013-08-22 Pedro Alves <palves@redhat.com>
2485
2486 PR gdb/15871
2487 * corefile.c (target_xfer_memory_error): New function.
2488 (memory_error): Defer EIO to target_memory_error.
2489 (read_memory): Use target_xfer_partial, and handle finer-grained
2490 target xfer errors.
2491 * target.c (target_xfer_error_to_string): New function.
2492 (memory_xfer_partial_1): If memory is known to be
2493 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2494 (target_xfer_partial): Make extern.
2495 * target.h (enum target_xfer_error): New enum.
2496 (target_xfer_error_to_string): Declare function.
2497 (target_xfer_partial): Declare function.
2498 (struct target_ops) <xfer_partial>: Adjust describing comment.
2499
bcbec14e
AM
25002013-08-22 Alan Modra <amodra@gmail.com>
2501
2502 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2503 * configure.tgt: Likewise as targets.
2504
fc474241
DE
25052013-08-20 Doug Evans <dje@google.com>
2506
2507 * buildsym.c (subfile_stack): Move here from buildsym.h.
2508 (pending_macros): Ditto.
2509 (get_macro_table): New function.
2510 (buildsym_init): Initialize subfile_stack.
2511 * coffread.c (type_vector,type_vector_length): Moved here from
2512 buildsym.h.
2513 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2514 (coff_symtab_read): Use it.
2515 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2516 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2517 with call to get_macro_table.
2518 * stabsread.c (type_vector,type_vector_length): Moved here from
2519 buildsym.h.
2520 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2521 * buildsym.h (get_macro_table): Declare.
2522
bec71544
TT
25232013-08-20 Tom Tromey <tromey@redhat.com>
2524
2525 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2526 Update.
2527 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2528
0002ad5f
DE
25292013-08-20 Doug Evans <dje@google.com>
2530
2531 * blockframe.c: Remove #include "psymtab.h".
2532 * cp-support.c: Ditto.
2533 * source.c: Ditto.
2534 * stack.c: Ditto.
2535
df302446
TT
25362013-08-20 Tom Tromey <tromey@redhat.com>
2537
2538 PR python/15816:
2539 * exceptions.h (return_mask): Now an enum.
2540 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2541 enum constants.
2542
df6d5441
TT
25432013-08-20 Tom Tromey <tromey@redhat.com>
2544
2545 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2546 get_objfile_arch.
2547 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2548 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2549 * jit.c (jit_object_close_impl): Update.
2550 * jv-lang.c (get_dynamics_objfile): Update.
2551 * linespec.c (add_minsym): Use get_dynamics_objfile.
2552 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2553 (allocate_objfile): Don't initialize 'gdbarch' field.
2554 (get_objfile_arch): Update.
2555 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2556 moved from...
2557 (struct objfile) <gdbarch>: ... here. Remove.
2558 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2559 get_objfile_arch.
2560 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2561
f5aee5ee
AM
25622013-08-20 Alan Modra <amodra@gmail.com>
2563
2564 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2565 for IBM long double nan and inf.
2566 (floatformat_is_negative, floatformat_classify,
2567 floatformat_mantissa): Similarly.
2568 (floatformat_ieee_single, floatformat_ieee_double,
2569 floatformat_ieee_quad, floatformat_arm_ext,
2570 floatformat_ia64_spill): Delete unused vars.
2571 (_initialize_doublest): Delete unused function.
2572 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2573 little-endian variants of floatformat_ibm_long_double.
2574
33b60d58 25752013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2576
33b60d58
LM
2577 * Makefile.in (SFILES): Remove common/target-common.c and
2578 add target/waitstatus.c.
2579 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2580 target/resume.h, target/wait.h and target/waitstatus.h.
2581 (COMMON_OBS): Remove target-common.o and add
2582 waitstatus.o.
2583 (target-common.o): Remove.
2584 (waitstatus.o): New target object file.
2585 * common/target-common.c: Move contents to
2586 target/waitstatus.c and remove.
2587 * common/target-common.h: Move contents to other files and
2588 remove.
2589 (enum resume_kind: Move to target/resume.h.
2590 (TARGET_WNOHANG): Move to target/wait.h.
2591 (enum target_waitkind): Move to target/waitstatus.h.
2592 (struct target_waitstatus): Likewise.
2593 * target.h: Do not include target-common.h and
2594 include target/resume.h, target/wait.h and
2595 target/waitstatus.h.
2596 * target/resume.h: New file.
2597 * target/wait.h: New file.
2598 * target/waitstatus.h: New file.
2599 * target/waitstatus.c: New file.
2600
12696c10
PA
26012013-08-19 Pedro Alves <palves@redhat.com>
2602
2603 * linux-nat.c (linux_test_for_tracefork)
2604 (linux_test_for_tracesysgood, linux_child_follow_fork)
2605 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2606 (linux_nat_wait_1): Extend comment.
2607 (linux_async_pipe): Add comment.
2608
ba89f962
KB
26092013-08-15 Kevin Buettner <kevinb@redhat.com>
2610
2611 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2612 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2613 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2614 Update to account for fact that PC is now a pseudo-register.
2615 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2616 cases for RL78_PC_REGNUM.
2617
35ab155d
MB
26182013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2619
2620 PR cli/15841
2621 * top.c (quit_force): Skip writing history file
2622 if input is not from terminal.
2623
0d031856
TT
26242013-08-14 Tom Tromey <tromey@redhat.com>
2625
2626 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2627 resultthreadlist>: New fields.
2628 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2629 (remote_get_threadlist, remote_threadlist_iterator): Use
2630 new fields. Remove static variables.
2631
ee154bee
TT
26322013-08-14 Tom Tromey <tromey@redhat.com>
2633
2634 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2635 remote_watch_data_address>: New fields.
2636 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2637 (process_stop_reply, remote_wait_as)
2638 (remote_check_watch_resources, remote_stopped_data_address): Update.
2639
88b496c3
TT
26402013-08-14 Tom Tromey <tromey@redhat.com>
2641
2642 * remote.c (struct remote_state) <async_client_callback,
2643 async_client_context>: New fields.
2644 (async_client_callback, async_client_context): Remove.
2645 (remote_async_serial_handler, remote_async): Update.
2646
2f65bcb7
TT
26472013-08-14 Tom Tromey <tromey@redhat.com>
2648
2649 * remote.c (sizeof_pkt): Remove.
2650 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2651
b80fafe3
TT
26522013-08-14 Tom Tromey <tromey@redhat.com>
2653
2654 * remote.c (struct remote_state) <use_threadinfo_query,
2655 use_threadextra_query>: New fields.
2656 (remote_threads_info, remote_threads_extra_info)
2657 (remote_open_1): Update.
2658
8e88304f
TT
26592013-08-14 Tom Tromey <tromey@redhat.com>
2660
2661 * remote.c (struct remote_state) <finished_object,
2662 finished_annex, finished_offset>: New fields.
2663 (remote_read_qxfer): Use remote_state fields; remove static
2664 variables.
2665
280ceea3
TT
26662013-08-14 Tom Tromey <tromey@redhat.com>
2667
2668 * remote.c (struct remote_state) <last_sent_step>:
2669 New field.
2670 (last_sent_step): Remove.
2671 (remote_resume, remote_wait_as): Update.
2672
b73be471
TT
26732013-08-14 Tom Tromey <tromey@redhat.com>
2674
2675 * remote.c (struct remote_state) <last_sent_signal>:
2676 New field.
2677 (last_sent_signal): Remove.
2678 (new_remote_state, remote_resume, remote_wait_as): Update.
2679
5e4a05c4
TT
26802013-08-14 Tom Tromey <tromey@redhat.com>
2681
2682 * remote.c (struct remote_state) <last_program_signals_packet>:
2683 New field.
2684 (last_program_signals_packet): Remove.
2685 (remote_program_signals, remote_open_1): Update.
2686
747dc59d
TT
26872013-08-14 Tom Tromey <tromey@redhat.com>
2688
2689 * remote.c (struct remote_state) <last_pass_packet>:
2690 New field.
2691 (last_pass_packet): Remove.
2692 (remote_pass_signals, remote_open_1): Update.
2693
262e1174
TT
26942013-08-14 Tom Tromey <tromey@redhat.com>
2695
2696 * remote.c (struct remote_state) <remote_traceframe_number>:
2697 New field.
2698 (remote_traceframe_number): Remove.
2699 (new_remote_state, remote_open_1, set_remote_traceframe)
2700 (remote_trace_find): Update.
2701
47f8a51d
TT
27022013-08-14 Tom Tromey <tromey@redhat.com>
2703
2704 * remote.c (struct remote_state) <general_thread, continue_thread>:
2705 New fields.
2706 (general_thread, continue_thread): Remove.
2707 (record_currthread, set_thread, set_general_process)
2708 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2709 (extended_remote_mourn_1): Update.
2710
5d93a237
TT
27112013-08-14 Tom Tromey <tromey@redhat.com>
2712
2713 * remote.c (struct remote_state) <remote_desc>: New field.
2714 (remote_desc): Remove.
2715 (remote_threads_info, remote_threads_extra_info, remote_close)
2716 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2717 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2718 (remote_hostio_send_command, remote_file_put, remote_file_get)
2719 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2720 (remote_async, remote_new_objfile, set_range_stepping): Update.
2721
cf792862
TT
27222013-08-14 Tom Tromey <tromey@redhat.com>
2723
2724 * remote.c (remote_state): Now a pointer.
2725 (get_remote_state_raw): Update.
2726 (new_remote_state): New function.
2727 (_initialize_remote): Use new_remote_state.
2728
dc473cfb
TT
27292013-08-14 Tom Tromey <tromey@redhat.com>
2730
2731 * remote.c (remote_protocol_features): Now const.
2732
85ec6ce7
TT
27332013-08-14 Tom Tromey <tromey@redhat.com>
2734
2735 * remote.c (crc32_table, crc32): Remove.
2736 (remote_verify_memory): Use xcrc32.
2737
73033f12
SDJ
27382013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2739
2740 * value.h (create_internalvar_type_lazy): Adjust prototype
2741 declaration.
2742
5c30d39a
AB
27432013-08-13 Andrew Burgess <aburgess@broadcom.com>
2744
2745 * common/format.c (parse_format_string): Don't allow '#' flag for
2746 pointer arguments in format string.
2747
1a66331e
PM
27482013-08-13 Pierre Muller <muller@sourceware.org>
2749
fde605f3 2750 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2751 if rl_get_screen_size did not return useful values.
2752
b4013987
AA
27532013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2754
2755 PR breakpoints/15117
2756 * linespec.c (linespec_parse_basic): Check for convenience
2757 variable or history value while parsing.
2758
959b6a66
SDJ
27592013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2760
2761 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2762 AVR.
2763 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2764 different signals between the generic Linux kernel implementation
2765 and AVR's.
2766 (avr_linux_gdb_signal_from_target): Delete.
2767 (avr_linux_gdb_signal_to_target): Delete.
2768 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2769
24a55014
DE
27702013-08-09 Doug Evans <dje@google.com>
2771
2772 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2773 entries.
2774
eb14d406
SDJ
27752013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2776
2777 * linux-tdep.c: Define enum with generic signal numbers.
2778 (linux_gdb_signal_from_target): New function.
2779 (linux_gdb_signal_to_target): Likewise.
2780 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2781 methods to the functions above.
2782 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2783 (linux_gdb_signal_to_target): Likewise.
2784 * alpha-linux-tdep.c: Define new enum with signals different
2785 from generic Linux kernel.
2786 (alpha_linux_gdb_signal_from_target): New function.
2787 (alpha_linux_gdb_signal_to_target): Likewise.
2788 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2789 with the functions mentioned above.
2790 * avr-tdep.c: Define enum with differences between Linux kernel
2791 and AVR signals.
2792 (avr_linux_gdb_signal_from_target): New function.
2793 (avr_linux_gdb_signal_to_target): Likewise.
2794 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2795 the functions mentioned above.
2796 * sparc-linux-tdep.c: Define enum with differences between SPARC
2797 and generic Linux kernel signal numbers.
2798 (sparc32_linux_gdb_signal_from_target): New function.
2799 (sparc32_linux_gdb_signal_to_target): Likewise.
2800 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2801 to the functions defined above.
2802 * xtensa-linux-tdep.c: Define enum with differences between
2803 Xtensa and Linux kernel generic signals.
2804 (xtensa_linux_gdb_signal_from_target): New function.
2805 (xtensa_linux_gdb_signal_to_target): Likewise.
2806 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2807 to the functions defined above.
2808 * mips-linux-tdep.c: Define enum with differences between
2809 signals in MIPS and Linux kernel generic ones.
2810 (mips_gdb_signal_to_target): New function.
2811 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2812 only different signals from the Linux kernel generic.
2813 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2814 the functions defined above.
2815 * mips-linux-tdep.h (enum mips_signals): Remove.
2816
156d08c8
PA
28172013-08-09 Pedro Alves <palves@redhat.com>
2818
2819 * avr-tdep.c (XMALLOC): Delete macro.
2820 * cli/cli-dump.c (XMALLOC): Delete macro.
2821
db229724
PA
28222013-08-09 Pedro Alves <palves@redhat.com>
2823
2824 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2825 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2826 (fopen_with_cleanup, add_dump_command): Make static.
2827 * cli/cli-dump.h: Delete file.
2828 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2829 cli/cli-dump.h.
2830
3f12a589
PA
28312013-08-09 Pedro Alves <palves@redhat.com>
2832
2833 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2834 error message.
2835
c718be47
PA
28362013-08-09 Pedro Alves <palves@redhat.com>
2837
156d08c8 2838 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2839 error message.
2840
1e351ed1
PA
28412013-08-09 Pedro Alves <palves@redhat.com>
2842
2843 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2844 (gcore_command): Use tilde_expand here, and when showing the
2845 filename to the user, show the expanded version.
2846
1ed8d800
YQ
28472013-08-09 Yao Qi <yao@codesourcery.com>
2848
2849 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2850 'entryval' is set.
2851
47ecca85
PA
28522013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2853
2854 * gcore.c (create_gcore_bfd): Use tilde_expand.
2855
82a0a75f
YQ
28562013-08-08 Yao Qi <yao@codesourcery.com>
2857
2858 * frame.h (read_frame_local): Declare.
2859 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2860 read_frame_local.
2861 * stack.c (read_frame_local): New.
2862
5c4aa40b
YQ
28632013-08-08 Yao Qi <yao@codesourcery.com>
2864
2865 * mi/mi-cmd-stack.c: Update comments to function
2866 list_args_or_locals.
2867
b93601f3
TT
28682013-08-07 Tom Tromey <tromey@redhat.com>
2869
2870 PR symtab/15028:
2871 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2872 (process_psymtab_comp_unit_reader): Use it.
2873 (process_psymtab_comp_unit): Update. Add "pretend_language"
2874 argument.
2875 (dwarf2_build_psymtabs_hard): Update.
2876 (scan_partial_symbols): Pass CU's language to
2877 process_psymtab_comp_unit.
2878
fa760f46
TT
28792013-08-07 Tom Tromey <tromey@redhat.com>
2880
2881 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2882 (dwarf2_gdb_index_functions): Update.
2883 * psymtab.c (find_symbol_file_from_partial): Remove.
2884 (psym_functions): Update.
2885 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2886 Remove.
2887
bf6d8a91
TT
28882013-08-07 Tom Tromey <tromey@redhat.com>
2889
2890 * symfile.c (set_initial_language): Look up "main" symbol
2891 and use its language.
2892 * symtab.c (find_main_filename): Remove.
2893 * symtab.h (find_main_filename): Remove.
2894
f9125b6c
TT
28952013-08-07 Tom Tromey <tromey@redhat.com>
2896
2897 * dwarf2read.c (recursively_compute_inclusions): Add
2898 "immediate_parent" argument. Set symtab's "user" field
2899 if not set.
2900 (compute_symtab_includes): Update.
2901
fdbb204b
TT
29022013-08-07 Tom Tromey <tromey@redhat.com>
2903
2904 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2905 when adding label symbols.
2906
49de1690
UW
29072013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2908 Ulrich Weigand <uweigand@de.ibm.com>
2909
2910 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2911 * configure.host (powerpc64-*-aix*): Likewise.
2912
b08ee99f
UW
29132013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2914 Ulrich Weigand <uweigand@de.ibm.com>
2915
2916 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2917 is defined.
2918 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2919 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2920 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2921 * configure.ac: Check for ptrace64.
2922 * configure, config.in: Regenerate.
2923
fecf803e
UW
29242013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2925 Ulrich Weigand <uweigand@de.ibm.com>
2926
2927 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2928 Call ptrace64 instead of ptrace if defined.
2929 Add macro addr_ptr to take care of ptrace address argument.
2930 (pdc_read_regs): Likewise.
2931 (pdc_write_regs): Likewise.
2932 (aix_thread_resume): Likewise.
2933 (fetch_regs_kernel_thread): Likewise.
2934 (store_regs_kernel_thread): Likewise.
2935
3bb5e4a8
AB
29362013-08-07 Anton Blanchard <anton@samba.org>
2937
2938 * MAINTAINERS: Add myself to Write After Approval.
2939
12070676
TT
29402013-08-05 Tom Tromey <tromey@redhat.com>
2941
2942 * aix-thread.c (_initialize_aix_thread): Use
2943 complete_target_initialization.
2944 * bsd-uthread.c (_initialize_bsd_uthread): Use
2945 complete_target_initialization.
2946 * dec-thread.c (_initialize_dec_thread): Use
2947 complete_target_initialization.
2948 * ravenscar-thread.c (_initialize_ravenscar): Use
2949 complete_target_initialization.
2950 * sol-thread.c (_initialize_sol_thread): Use
2951 complete_target_initialization.
2952 * spu-multiarch.c (_initialize_spu_multiarch): Use
2953 complete_target_initialization.
2954
7c7b6655
TT
29552013-08-05 Tom Tromey <tromey@redhat.com>
2956
2957 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2958 * ada-lang.c (ada_lookup_simple_minsym): Return
2959 bound_minimal_symbol.
2960 * ada-lang.h (ada_lookup_simple_minsym): Update.
2961 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2962 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2963 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2964 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2965 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2966 * minsyms.c (msymbol_objfile): Remove.
2967 (lookup_minimal_symbol_internal): New function, from
2968 lookup_minimal_symbol.
2969 (lookup_minimal_symbol): Rewrite using
2970 lookup_minimal_symbol_internal.
2971 (lookup_bound_minimal_symbol): New function.
2972 * minsyms.h (msymbol_objfile): Remove.
2973 (lookup_bound_minimal_symbol): Declare.
2974 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2975 * parse.c (write_exp_msymbol): Change parameter to a
2976 bound_minimal_symbol.
2977 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2978 * parser-defs.h (write_exp_msymbol): Update.
2979 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2980 * symfile.c (simple_read_overlay_table): Use
2981 lookup_bound_minimal_symbol.
2982 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2983 (search_symbols): Likewise.
2984 (print_msymbol_info): Take a bound_minimal_symbol argument.
2985 (symtab_symbol_info, rbreak_command): Update.
2986 * symtab.h (struct symbol_search) <msymbol>: Change type
2987 to bound_minimal_symbol.
2988 * valops.c (find_function_in_inferior): Use
2989 lookup_bound_minimal_symbol.
2990 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2991
934b9bac
JK
29922013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 Code cleanup.
2995 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2996 to ...
2997 (async_cleanup_sigint_signal_handler): ... this.
2998 (initialize_sigint_signal_handler): Remove declaration.
2999 (handle_remote_sigint): Rename the declaration to ...
3000 (async_handle_remote_sigint): ... this.
3001 (handle_remote_sigint_twice): Rename the declaration to ...
3002 (async_handle_remote_sigint_twice): ... this.
3003 (async_remote_interrupt, async_remote_interrupt_twice)
3004 (remote_interrupt): Remove the declarations.
3005 (remote_interrupt_twice): Rename the declaration ...
3006 (sync_remote_interrupt_twice): ... this.
3007 (sigint_remote_twice_token): Rename the variable to ...
3008 (async_sigint_remote_twice_token): ... this.
3009 (sigint_remote_token): Rename the variable to ...
3010 (async_sigint_remote_token): ... this.
3011 (initialize_sigint_signal_handler): Rename the function to ...
3012 (async_initialize_sigint_signal_handler): ... this. Update the name
3013 inside.
3014 (handle_remote_sigint): Rename the function to ...
3015 (async_handle_remote_sigint): ... this. Update the names inside.
3016 (handle_remote_sigint_twice): Rename the function to ...
3017 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3018 (cleanup_sigint_signal_handler): Rename the function to ...
3019 (async_cleanup_sigint_signal_handler): ... this.
3020 (remote_interrupt): Rename the function to ...
3021 (sync_remote_interrupt): this. Update the names inside.
3022 (remote_interrupt_twice): Rename the function to ...
3023 (sync_remote_interrupt_twice): this. Update the names inside.
3024 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3025 (_initialize_remote): Update the names inside.
3026
3a1115a0
TT
30272013-08-02 Tom Tromey <tromey@redhat.com>
3028
3029 PR symtab/15719:
3030 * breakpoint.c (update_watchpoint, watchpoint_check)
3031 (watch_command_1): Update.
3032 * eval.c (fetch_subexp_value): Add "preserve_errors"
3033 parameter.
3034 * ppc-linux-nat.c (check_condition): Update.
3035 * value.h (fetch_subexp_value): Update.
3036
58b19776
AB
30372013-08-02 Andrew Burgess <aburgess@broadcom.com>
3038
3039 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3040 add_file_handler.
3041
ec94af83
DE
30422013-08-01 Doug Evans <dje@google.com>
3043
7ee85ab1
DE
3044 PR symtab/15691
3045 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3046 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3047 Add assert of sig_entry->dwo_unit == NULL.
3048 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3049 had already been read.
3050 (read_signatured_type): Set per_cu.tu_read.
3051
b846d303
DE
3052 PR symtab/15695
3053 * valops.c (value_struct_elt): Add missing call to check_typedef.
3054 (value_find_oload_method_list): Ditto.
3055
b52109bc
DE
3056 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3057 effectively, struct symbol_search **.
3058 (make_cleanup_free_search_symbols): Change arg to struct
3059 symbol_search **. All callers updated.
3060 (compare_search_syms): Compare symtab file name and block as well.
3061 (search_symbols_equal): New function.
3062 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3063 New args new_head, new_tail. Result is now void. Remove dups after
3064 sorting the symbols.
3065 (search_symbols): Sort all found symbols once, after all have been
3066 found, and remove duplicates. Simplify cleanup tracking of result.
3067 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3068
ec94af83
DE
3069 Further workarounds for binutils/15021.
3070 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3071 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3072 Watch for duplicate symtabs coming from type units.
3073 (compute_symtab_includes): Update call to
3074 recursively_compute_inclusions. Build vector of included symtabs
3075 instead of per_cus.
3076 * symtab.h (symtab_ptr): New typedef.
3077 (DEF_VEC_P (symtab_ptr)): New VEC type.
3078 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3079 instead.
3080
b2ae85cf
AB
30812013-08-01 Andrew Burgess <aburgess@broadcom.com>
3082
3083 * cli/cli-script.c (script_from_file): Remove use of
3084 error_pre_print.
3085 * main.c (captured_main): Remove use of error_pre_print and
3086 quit_pre_print.
3087 * utils.c (error_pre_print, quit_pre_print): Remove.
3088 * utils.h (error_pre_print, quit_pre_print): Likewise.
3089
645eab03
YQ
30902013-08-01 Yao Qi <yao@codesourcery.com>
3091
3092 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3093 with mi_getopt.
3094 (mi_cmd_stack_list_variables): Likewise.
3095
16f92dd4
AB
30962013-07-31 Andrew Burgess <aburgess@broadcom.com>
3097
3098 * exceptions.c (deprecated_throw_reason): Remove.
3099 * exceptions.h (deprecated_throw_reason): Remove.
3100
13f78033
AB
31012013-07-31 Andrew Burgess <aburgess@broadcom.com>
3102
3103 * remote-mips.c (mips_error): Replace use of
3104 deprecated_throw_reason with throw_verror. Use the error message
3105 passed to mips_error as the error message for throw_verror.
3106
039e3c22
AB
31072013-07-31 Andrew Burgess <aburgess@broadcom.com>
3108
3109 * monitor.c (monitor_interrupt_query): Replace use of
3110 deprecated_throw_reason with quit.
3111 * nto-procfs.c (interrupt_query): Likewise.
3112 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3113 * remote-mips.c (mips_kill): Likewise.
3114 * remote.c (interrupt_query): Likewise.
3115
8150913b
AB
31162013-07-31 Andrew Burgess <aburgess@broadcom.com>
3117
3118 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3119 with call to fatal.
3120
de74e63a
YQ
31212013-07-31 Pedro Alves <pedro@codesourcery.com>
3122 Yao Qi <yao@codesourcery.com>
3123
3124 * tracepoint.c (trace_dump_command): Select the current frame.
3125
247f5c4f
DE
31262013-07-30 Doug Evans <dje@google.com>
3127
3128 * dwarf2read.c (process_queue): Add type signature to debug output.
3129
11b4b7cc
AB
31302013-07-30 Andrew Burgess <aburgess@broadcom.com>
3131
3132 * value.c (value_fetch_lazy): Mark optimized out values as such
3133 rather than raising an error.
3134
b0c54aa5
AB
31352013-07-30 Andrew Burgess <aburgess@broadcom.com>
3136
3137 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3138 before checking which bits of the parent, not the child, value are
3139 valid.
3140
97c85fc6
MB
31412013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3142
3143 PR gdb/15715
3144 * top.c: Include "filenames.h".
3145 (set_history_filename): New function.
3146 (init_main): Install it as set hook of the "set history filename"
3147 command.
3148
ff39bb5e
SA
31492013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3150
3151 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3152 attribute parameter.
3153 (dwarf2_const_value_data): Constify struct attribute parameter.
3154 (dwarf2_const_value): Constify struct attribute parameter.
3155 (dwarf2_const_value_attr): Constify struct attribute parameter.
3156 (lookup_die_type): Constify struct attribute parameter.
3157 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3158 (follow_die_ref_or_sig): Constify struct attribute parameter.
3159 (follow_die_ref): Constify struct attribute parameter.
3160 (follow_die_sig): Constify struct attribute parameter.
3161 (get_DW_AT_signature_type): Constify struct attribute parameter.
3162 (get_type_unit_group): Constify struct attribute parameter.
3163 (fill_in_loclist_baton): Constify struct attribute parameter.
3164 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3165 (type_unit_group): Constify struct attribute parameter.
3166
6e5a29e1
SA
31672013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3168
3169 * dwarf2read.c (attr_form_is_block): Make argument const.
3170 (attr_form_is_section_offset): Make argument const.
3171 (attr_form_is_constant): Make argument const.
3172 (attr_form_is_ref): Make argument const.
3173
7771576e
SA
31742013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3175
3176 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3177 All uses updated.
3178 (attr_form_is_ref): Moved below attr_form_is_constant.
3179
a94e8645
DE
31802013-07-29 Doug Evans <dje@google.com>
3181
bb5291d0
DE
3182 * main.c (captured_command_loop): Tweak comment.
3183
b5419e49
DE
3184 * target.c (target_async_permitted_1): Fix comment.
3185
b2d23133
DE
3186 * symtab.c (iterate_over_some_symtabs): Add comment.
3187
a94e8645
DE
3188 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3189
7a60ad40
YQ
31902013-07-27 Yao Qi <yao@codesourcery.com>
3191
3192 * NEWS: Mention that GDBserver now supports hardware
3193 watchpoints on the MIPS GNU/Linux target.
3194
aaee2056
YQ
31952013-07-27 Yao Qi <yao@codesourcery.com>
3196
3197 * Makefile.in (HFILES_NO_SRCDIR): Add
3198 common/mips-linux-watch.h.
3199 (mips-linux-watch.o): New rule.
3200 * common/mips-linux-watch.c: New.
3201 * common/mips-linux-watch.h: New.
3202 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3203 * mips-linux-nat.c: Include mips-linux-watch.h.
3204 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3205 to common/mips-linux-watch.h.
3206 (MAX_DEBUG_REGISTER): Likewise.
3207 (enum pt_watch_style): Likewise.
3208 (struct mips32_watch_regs): Likewise.
3209 (struct mips64_watch_regs): Likewise.
3210 (struct pt_watch_regs): Likewise.
3211 (struct mips_watchpoint): Likewise.
3212 (mips_linux_watch_get_irw_mask): Move to
3213 common/mips-linux-watch.c.
3214 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3215 (mips_linux_watch_get_watchlo): Likewise.
3216 (mips_linux_watch_set_watchlo): Likewise.
3217 (mips_linux_watch_get_watchhi): Likewise.
3218 (mips_linux_watch_set_watchhi): Likewise.
3219 (mips_linux_read_watch_registers): Likewise.
3220 (mips_linux_watch_type_to_irw): Likewise.
3221 (mips_linux_stopped_data_address, fill_mask): Likewise.
3222 (mips_linux_watch_try_one_watch): Likewise.
3223 (mips_linux_watch_populate_regs): Likewise.
3224
b3436450
YQ
32252013-07-27 Yao Qi <yao@codesourcery.com>
3226
3227 * mips-linux-nat.c (get_irw_mask): Rename to ...
3228 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3229 'set' to 'n'. Update function comment. All callers changed.
3230 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3231 function comment. All callers changed.
3232 (get_num_valid): Rename to ...
3233 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3234 'set' to 'n'. Update function comment. All callers changed.
3235 (get_watchlo): Rename to ...
3236 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3237 'set' to 'n'. Update function comment. All callers changed.
3238 (set_watchlo): Rename to ...
3239 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3240 'set' to 'n'. Update function comment. All callers changed.
3241 (get_watchhi): Rename to ...
3242 (mips_linux_watch_get_watchhi): ... this. Update function
3243 comment. All callers changed.
3244 (set_watchhi): Rename to ...
3245 (mips_linux_watch_set_watchhi): ... this. Update function
3246 comment. All callers changed.
3247 (mips_linux_read_watch_registers): Update function comment.
3248 Add new parameters 'lwpid', 'watch_readback', and
3249 'watch_readback_valid'. Update.
3250 (type_to_irw): Rename to ...
3251 (mips_linux_watch_type_to_irw): ... this. Update function
3252 comment. All callers changed.
3253 (fill_mask): Update function comment.
3254 (try_one_watch): Rename to ...
3255 (mips_linux_watch_try_one_watch): ... this. Change the type
3256 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3257 (populate_regs_from_watches): Rename to ...
3258 (mips_linux_watch_populate_regs): ... this. Add parameter
3259 'current_watches'. All callers changed.
3260
9be14b81
YQ
32612013-07-27 Yao Qi <yao@codesourcery.com>
3262
3263 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3264 the code.
3265 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3266 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3267 (struct pt_watch_regs): Likewise.
3268 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3269 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3270 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3271 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3272 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3273
de6f69ad
YQ
32742013-07-27 Yao Qi <yao@codesourcery.com>
3275
3276 * breakpoint.h: Include break-common.h.
3277 (enum target_hw_bp_type): Move to ...
3278 * common/break-common.h: ... here. New.
3279
6f64ef53
PA
32802013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3281
3282 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3283 process group regardless of having tty on stdin.
3284
6107e809
DE
32852013-07-25 Doug Evans <dje@google.com>
3286
3287 * linux-fork.h (detach_fork): Delete.
3288
7fdc1521
TT
32892013-07-25 Tom Tromey <tromey@redhat.com>
3290
3291 PR remote/15256, PR remote/15266:
3292 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3293 * monitor.c (monitor_detach): Use unpush_target.
3294 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3295 * remote-mips.c (mips_detach): Use unpush_target. Don't
3296 call mips_close.
3297 * remote-sim.c (gdbsim_detach): Use unpush_target.
3298 * target.c (pop_target): Remove.
3299 (pop_all_targets_above): Don't call target_close.
3300 (target_close): Assert that the target is unpushed.
3301 * target.h (pop_target): Don't declare.
3302 * tracepoint.c (tfile_open): Use unpush_target.
3303
c22a2b88
TT
33042013-07-25 Tom Tromey <tromey@redhat.com>
3305
3306 * linux-thread-db.c (init_thread_db_ops): Call
3307 complete_target_initialization.
3308 (_initialize_thread_db): Don't call add_target.
3309 * target.c (complete_target_initialization): New function.
3310 (add_target_with_completer): Call it.
3311 * target.h (complete_target_initialization): Declare.
3312
cbb6aada
MK
33132013-07-25 Mark Kettenis <kettenis@gnu.org>
3314
3315 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3316 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3317 (HPPANBSD_SIZEOF_GREGS): New define.
3318 (hppaobsd_supply_gregset): Handle additional registers.
3319 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3320 we provide more registers now.
3321 (hppabsd_supply_gregset): Supply additional registers.
3322 (hppabsd_collect_gregset): Collect additional registers.
3323
17767988
MK
33242013-07-25 Mark Kettenis <kettenis@gnu.org>
3325
3326 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3327 (hppabsd_dwarf2_frame_init_reg): New function.
3328 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3329
fdc8aae8
AB
33302013-07-25 Andrew Burgess <aburgess@broadcom.com>
3331
3332 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3333 'z' format code. Remove error for optimized out values, standard
3334 code will handle these fine.
3335
6fbe845e
AB
33362013-07-25 Andrew Burgess <aburgess@broadcom.com>
3337
3338 * NEWS: Mention new 'z' formatter.
3339 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3340 (_initialize_printcmd): Mention 'z' formatter in help text of the
3341 'x' command.
3342
3373342d
MR
33432013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3344
3345 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3346 formatting.
3347
25f9533e
SDJ
33482013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3349
3350 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3351 interface can evaluate arguments. Fallback to the old mode if it
3352 cannot.
3353 (create_exception_master_breakpoint): Likewise.
3354 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3355 (struct sym_probe_fns elf_probe_fns): Export function above to the
3356 probe interface.
3357 * probe.c (can_evaluate_probe_arguments): New function.
3358 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3359 function pointer.
3360 (can_evaluate_probe_arguments): New function prototype.
3361 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3362 probe interface can evaluate arguments. Fallback to the old mode
3363 if it cannot.
3364 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3365 interface can evaluate arguments. Warning the user if it cannot.
3366 (stap_can_evaluate_probe_arguments): New function.
3367 (struct probe_ops stap_probe_ops): Export function above to the
3368 probe interface.
3369 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3370 New function pointer.
3371
3360c0bf
LM
33722013-07-24 Luis Machado <lgustavo@codesourcery.com>
3373
3374 * Makefile.in (SFILES): Add common/target-common.c.
3375 Add common/target-common.h to headers.
3376 (COMMON_OBS): Add target-common.o.
3377 (target-common.o): New target.
3378 * linux-nat.h (resume_kind): Move to common/target-common.h.
3379 * target.c (target_waitstatus_to_string): Move to
3380 common/target-common.c.
3381 * target.h: Include target-common.h.
3382 (target_waitkind): Move to common/target-common.h.
3383 (target_waitstatus): Likewise.
3384 (TARGET_WNOHANG): Likewise.
3385 * common/target-common.c: New file.
3386 * common/target-common.h: New file.
3387
6656a72d
DE
33882013-07-24 Doug Evans <dje@google.com>
3389
3390 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3391 a warning.
3392
6df81a63
YQ
33932013-07-23 Yao Qi <yao@codesourcery.com>
3394
3395 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3396 parameter 'gdbarch'.
3397 (i386_stack_tramp_frame_sniffer): Caller update.
3398 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3399 parameter 'gdbarch' and 'target'.
3400 (i386_linux_core_read_description): Caller update.
3401 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3402 Likewise.
3403 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3404 declaration.
3405
365156ad
TT
34062013-07-23 Tom Tromey <tromey@redhat.com>
3407
3408 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3409 2013-07-22.
3410
046ac79f
JK
34112013-07-22 Doug Evans <dje@google.com>
3412
3413 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3414 * exec.c (exec_close): Update call to remove_target_sections.
3415 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3416 * solib.c (update_solib_list): Ditto.
3417 (reload_shared_libraries_1): Ditto.
3418 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3419 * target.h (struct target_section): Rename key to owner.
3420 All uses updated.
046ac79f 3421
29b2cc46
TT
34222013-07-22 Tom Tromey <tromey@redhat.com>
3423
3424 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3425
d1160018
TT
34262013-07-22 Tom Tromey <tromey@redhat.com>
3427
3428 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3429 Simplify cleanup handling.
3430
2f324bf6
TT
34312013-07-22 Tom Tromey <tromey@redhat.com>
3432
3433 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3434 on all return paths.
3435
e23b9d6e
UW
34362013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3437
3438 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3439 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3440 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3441
1cf55f60
PM
34422013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3443
3444 * top.c (print_gdb_version): Add help, apropos description and
3445 url to online documentation.
3446
fa876972
HZ
34472013-07-19 Hui Zhu <hui@codesourcery.com>
3448
3449 PR gdb/15692
3450 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3451
1527aea8
YQ
34522013-07-19 Yao Qi <yao@codesourcery.com>
3453
3454 * target.c (update_current_target): Change the default action
3455 of 'to_traceframe_info' from tcomplain to return_zero.
3456 * target.h (struct target_ops) <to_traceframe_info>: Add more
3457 comments.
3458 * valops.c (read_value_memory): Call
3459 traceframe_available_memory unconditionally.
3460
886f230e
YQ
34612013-07-18 Yao Qi <yao@codesourcery.com>
3462
3463 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3464 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3465 symbol without prefix. If found, set its type to
3466 'mst_solib_trampoline'.
3467
16419bae
DE
34682013-07-17 Doug Evans <dje@google.com>
3469
e7045703
DE
3470 * NEWS: Mention "set print raw frame-arguments".
3471 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3472 * stack.c (print_raw_frame_arguments): New static global.
3473 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3474 (_initialize_stack): New command "set/show print raw frame-arguments".
3475 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3476 (set_print_raw, show_print_raw): New functions.
3477 (_initialize_valprint): New prefix command "set/show print raw".
3478 * valprint.h (value_print_options): Improve comments.
3479
453e48a5
DE
3480 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3481 of all *list variables.
3482
16419bae
DE
3483 * gdbcmd.h (togglelist): Delete.
3484 * cli/cli-cmds.c (togglelist): Delete.
3485 (init_cmd_lists): Update.
3486 * cli/cli-cmds.h (togglelist): Delete.
3487
626f2d1c
TT
34882013-07-17 Tom Tromey <tromey@redhat.com>
3489
3490 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3491 dwarf2_per_objfile.
3492
57e6060e
DE
34932013-07-16 Doug Evans <dje@google.com>
3494
3495 * nto-tdep.c (nto_relocate_section_addresses): Update,
3496 target_section.bfd deleted.
3497 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3498 * s390-tdep.c (s390_load): Ditto.
3499 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3500
5ea5559b
AB
35012013-07-16 Andrew Burgess <aburgess@broadcom.com>
3502
3503 * common/format.c (parse_format_string): Add checks for NULL
3504 character before calling strchr.
3505
2b2848e2
DE
35062013-07-16 Doug Evans <dje@google.com>
3507
2c571006
DE
3508 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3509 temp_pathname argument.
3510 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3511 when opening the file fails.
3512
2b2848e2
DE
3513 * target.h (struct target_section): Delete member bfd.
3514 All users updated to use the_bfd_section->owner instead.
3515 * exec.c (add_to_section_table): Assert bfd is expected value.
3516 Remove initialization of target_section.bfd.
3517 (remove_target_sections): Update.
3518 (section_table_available_memory): Update.
3519 (section_table_xfer_memory_partial): Update.
3520 (print_section_info): Update.
3521 (exec_set_section_address): Update.
3522 * record-full.c (record_full_core_xfer_partial): Update.
3523 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3524 * solib-target.c (solib_target_relocate_section_addresses): Update.
3525 * symfile.c (build_section_addr_info_from_section_table): Update.
3526 * target.c (memory_xfer_live_readonly_partial): Update.
3527 (memory_xfer_partial_1): Update.
3528
926bf92d
UW
35292013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3530
3531 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3532 now available for embedded (BookE) and server (BookS) processors,
3533 correct mentions of 'booke' and adjust comments accordingly in order to
3534 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3535 (have_ptrace_booke_interface): Rename function and variable
3536 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3537 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3538 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3539 'hwdebug_point_cmp'. Update all uses.
3540 (booke_find_thread_points_by_tid): Rename function
3541 'booke_find_thread_points_by_tid' to
3542 'hwdebug_find_thread_points_by_tid'. Update all uses.
3543 (booke_insert_point): Rename function 'booke_insert_point' to
3544 'hwdebug_insert_point'. Update all uses.
3545 (booke_remove_point): Rename function 'booke_remove_point' to
3546 'hwdebug_remove_point'. Update all uses.
3547
d929bc19
MR
35482013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3549
3550 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3551 numbers with enum values.
3552
054e8d9e
AA
35532013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3554
3555 PR threads/13217
3556 * thread.c (thread_apply_all_command): Check for valid threads
3557 and thread count.
3558 (thread_array_cleanup): New struct.
3559 (set_thread_refcount): New function.
3560
cf006359
AB
35612013-07-11 Andrew Burgess <aburgess@broadcom.com>
3562
3563 * infcmd.c (default_print_one_register_info): Reuse function
3564 print_hex_chars.
3565
94e36acc
TT
35662013-07-10 Tom Tromey <tromey@redhat.com>
3567
3568 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3569 (ada-exp.o): New target.
3570
915dd369
SDJ
35712013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3572
3573 * mt-tdep.c (mt_registers_info): Call
3574 get_no_prettyformat_print_options instead of
3575 get_raw_print_options (regression by last patch from Doug
3576 Evans).
3577
eca07816
JB
35782013-07-09 Pedro Alves <palves@redhat.com>
3579
3580 Checked in by Joel Brobecker <brobecker@adacore.com>.
3581 * ada-lang.c (coerce_unspec_val_to_type): Use
3582 value_optimized_out_const.
3583 * value.c (value_optimized_out_const): New function.
3584 * value.h (value_optimized_out_const): New declaration.
3585
2a998fc0
DE
35862013-07-09 Doug Evans <dje@google.com>
3587
3588 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3589 Enum values rename as well. All uses updated.
3590 * valprint.h (value_print_options): Rename member pretty to
3591 pretty format. Rename member prettyprint_arrays to
3592 prettyformat_arrays. Rename member prettyprint_structs to
3593 prettyformat_structs. All uses updated.
3594 (get_no_prettyformat_print_options): Renamed from
3595 get_raw_print_options.
3596 * valprint.c (get_no_prettyformat_print_options): Renamed from
3597 get_raw_print_options. All callers updated.
3598 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3599 All callers updated.
3600 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3601 All callers updated.
3602 (_initialize_valprint): Improve help text for "set print pretty" and
3603 "set print arrays".
3604
466c1fca
AB
36052013-07-09 Andrew Burgess <aburgess@broadcom.com>
3606
3607 * value.c (value_bits_valid): Revert previous change, and change
3608 by Pedro on 2013-07-04, due to regressions in
3609 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3610
ad0f0303
AB
36112013-07-08 Andrew Burgess <aburgess@broadcom.com>
3612 Pedro Alves <palves@redhat.com>
3613
3614 * value.c (value_bits_valid): If the value is not lval_computed
3615 or has no check validity handler then the answer is the
3616 optimized_out flag, otherwise defer to the handler.
3617
b187bec1
EZ
36182013-07-06 Eli Zaretskii <eliz@gnu.org>
3619
48d1d6f5
EZ
3620 * top.c (print_gdb_configuration): Explain in output of
3621 --configuration what does "relocatable" mean.
3622
b187bec1
EZ
3623 * main.c (print_gdb_help): Regroup options in the --help text.
3624 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3625 the relevant discussions.
3626
52d361e1
YQ
36272013-07-06 Yao Qi <yao@codesourcery.com>
3628
3629 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3630 Remove parameter 'lsal'.
3631 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3632 to inner block. Caller update.
3633 (base_breakpoint_create_breakpoints_sal): Update.
3634 (bkpt_create_breakpoints_sal): Likewise.
3635 (tracepoint_create_breakpoints_sal): Likewise.
3636 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3637 element 0 of vector 'canonical->sals'.
3638
e1ec1b42
LM
36392013-07-05 Luis Machado <lgustavo@codesourcery.com>
3640
3641 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3642 register number instead of the pseudo register one.
3643 (rs6000_dwarf2_reg_to_regnum): Likewise.
3644
7195e6f0
PA
36452013-07-04 Pedro Alves <palves@redhat.com>
3646
3647 * findvar.c (value_of_register): Use allocate_optimized_out_value
3648 if the register has been optimized out, instead of
3649 set_value_optimized_out.
3650 * frame-unwind.c (frame_unwind_got_optimized): Use
3651 allocate_optimized_out_value.
3652
58722cac
PA
36532013-07-04 Pedro Alves <palves@redhat.com>
3654
3655 * value.c (value_bits_valid): If the value is not lval_computed,
3656 or doesn't have a check_validity hook, assume the value is entirely
3657 valid.
3658
691a26f5
AB
36592013-07-04 Andrew Burgess <aburgess@broadcom.com>
3660
3661 * stack.c (read_frame_arg): No longer fetch lazy values.
3662 * value.c (value_optimized_out): If the value is not already
3663 marked optimized out, and is lazy then fetch it.
3664 (value_primitive_field): Move optimized out check to later in the
3665 function, after we have loaded any lazy values.
3666 (value_fetch_lazy): Use optimized out flag directly rather than
3667 calling optimized_out method.
3668
a58e2656
AB
36692013-07-04 Andrew Burgess <aburgess@broadcom.com>
3670
3671 * valops.c: Don't include "user-regs.h".
3672 (value_fetch_lazy): Moved to value.c.
3673 * value.c: Include "user-regs.h".
3674 (value_fetch_lazy): Moved from valops.c.
3675
bd885420
YQ
36762013-07-04 Yao Qi <yao@codesourcery.com>
3677
3678 Revert:
3679 2013-06-27 Yao Qi <yao@codesourcery.com>
3680
3681 * common/create-version.sh: Update comments. Handle the case
3682 that TARGET_ALIAS is empty.
3683
17ef446e
PA
36842013-07-03 Pedro Alves <palves@redhat.com>
3685
3686 * Makefile.in (config.status): Depend on development.sh.
3687 (aclocal_m4_deps): Add libmcheck.m4.
3688 * acinclude.m4: Include libmcheck.m4.
3689 * configure.ac: Source development.sh instead of setting
3690 'development' here. --enable-libmcheck/--disable-libmcheck code
3691 factored out to GDB_AC_LIBMCHECK. Run it.
3692 * development.sh: New file.
3693 * libmcheck.m4: New file.
3694 * configure: Regenerate.
3695
ac6dd50f
TT
36962013-07-02 Tom Tromey <tromey@redhat.com>
3697
3698 * contrib/ari/update-web-ari.sh: Update for version.in change.
3699
bd1df410
TT
37002013-07-02 Tom Tromey <tromey@redhat.com>
3701
3702 * common/ptid.h: Comment fixes.
3703
4db1a1dc
TT
37042013-07-01 Tom Tromey <tromey@redhat.com>
3705
3706 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3707 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3708 (dwarf2_read_index, create_all_comp_units): Update.
3709
dd9aa048
TT
37102013-07-01 Tom Tromey <tromey@redhat.com>
3711
3712 * configure.ac (build_warnings): Add -Wold-style-definition.
3713 * configure: Rebuild.
3714 * machoread.c (_initialize_machoread): Use "(void)".
3715 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3716 use "(void)".
3717
44d100c3
TT
37182013-07-01 Tom Tromey <tromey@redhat.com>
3719
3720 * configure.ac (build_warnings): Add -Wold-style-declaration.
3721 * configure: Rebuild.
3722 * dsrec.c (make_srec): Use "static const", not "const static".
3723 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3724 not "const static".
3725 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3726 Use "static const", not "const static".
3727 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3728 not "const static".
3729 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3730 not "const static".
3731 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3732 not "const static".
3733 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3734 not "const static".
3735 (v850_dbtrap_breakpoint_from_pc): Likewise.
3736 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3737 not "const static".
3738
2945b807
TT
37392013-07-01 Tom Tromey <tromey@redhat.com>
3740
3741 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3742 * configure: Rebuild.
3743
d8d2a3ee
PA
37442013-07-01 Pedro Alves <palves@redhat.com>
3745
3746 * defs.h: Include "pathmax.h".
3747 * utils.c: Don't include sys/param.h.
3748 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3749 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3750 instead of MAXPATHLEN.
3751 * solib-sunos.c: Don't include sys/param.h.
3752 * xcoffread.c: Don't include sys/param.h.
3753 * bsd-kvm.c: Don't include sys/param.h.
3754 * darwin-nat.c: Don't include sys/param.h.
3755 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3756 * darwin-nat-info.c: Don't include sys/param.h.
3757 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3758 MAXPATHLEN.
3759 * i386obsd-nat.c: Don't include sys/param.h.
3760 * inf-child.c: Don't include sys/param.h.
3761 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3762 * linux-fork.c: Don't include sys/param.h.
3763 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3764 * linux-nat.c: Don't include sys/param.h.
3765 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3766 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3767 * m68klinux-nat.c: Don't include sys/param.h.
3768 * nbsd-nat.c: Don't include sys/param.h.
3769 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3770 * ppc-linux-nat.c: Don't include sys/param.h.
3771 * rs6000-nat.c: Don't include sys/param.h.
3772 * spu-linux-nat.c. Don't include sys/param.h.
3773 * windows-nat.c: Don't include sys/param.h.
3774 * xtensa-linux-nat.c: Don't include sys/param.h.
3775 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3776
38ec2207
PA
37772013-07-01 Pedro Alves <palves@redhat.com>
3778
3779 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3780 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3781 * gnulib/aclocal.m4: Regenerate.
3782 * gnulib/config.in: Regenerate.
3783 * gnulib/configure: Regenerate.
3784 * gnulib/import/pathmax.h: New file.
3785 * gnulib/import/Makefile.am: Regenerate.
3786 * gnulib/import/Makefile.in: Regenerate.
3787 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3788 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3789 * gnulib/import/m4/pathmax.m4: New file.
3790
e655c1a2
PA
37912013-07-01 Pedro Alves <palves@redhat.com>
3792
3793 * configure.ac (GDBINIT): Define, depending on host.
3794 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3795 * top.c (PATH_MAX): Delete fallback definition.
3796 (GDBINIT_FILENAME): Delete.
3797 (gdbinit): Reimplement as const char array set to the GDBINIT
3798 string constant.
3799 * top.h (gdbinit): Make const.
3800 * configure, config.in: Regenerate.
3801
50dd9793
PA
38022013-07-01 Pedro Alves <palves@redhat.com>
3803
3804 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3805 * cli/cli-cmds.h (source_script): Likewise.
3806 * exceptions.c (catch_command_errors_const): New function.
3807 * exceptions.h (catch_command_errors_const): Declare.
3808 * main.c (get_init_files): Make parameters const, and adjust.
3809 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3810 'local_gdbinit' locals const. Adjust to use
3811 catch_command_errors_const.
3812 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3813 'local_gdbinit' locals const.
3814
bc7dea8d
PA
38152013-07-01 Pedro Alves <palves@redhat.com>
3816
3817 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3818 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3819 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3820 <unistd.h>.
3821
8839a007
PA
38222013-07-01 Pedro Alves <palves@redhat.com>
3823
3824 Import the "unistd" gnulib module.
3825 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3826 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3827 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3828 import/m4/unistd_h.m4.
3829 * gnulib/aclocal.m4: Renenerate.
3830 * gnulib/config.in: Renenerate.
3831 * gnulib/configure: Renenerate.
3832 * gnulib/import/Makefile.am: Renenerate.
3833 * gnulib/import/Makefile.in: Renenerate.
3834 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3835 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3836 * gnulib/import/m4/off_t.m4: New file.
3837 * gnulib/import/m4/ssize_t.m4: New file.
3838 * gnulib/import/m4/sys_types_h.m4: New file.
3839 * gnulib/import/m4/unistd_h.m4: New file.
3840 * gnulib/import/sys_types.in.h: New file.
3841 * gnulib/import/unistd.c: New file.
3842 * gnulib/import/unistd.in.h: New file.
3843
8c0da261
PA
38442013-07-01 Pedro Alves <palves@redhat.com>
3845
3846 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3847 defined instead of checking HAVE_UNISTD_H.
3848
3574124b
PA
38492013-07-01 Pedro Alves <palves@redhat.com>
3850
3851 Reimport gnulib from scratch.
3852 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3853 import/m4/onceonly.m4.
3854 * gnulib/aclocal.m4: Renegerate.
3855 * gnulib/config.in: Renegerate.
3856 * gnulib/configure: Renegerate.
3857 * gnulib/import/Makefile.in: Renegerate.
3858 * gnulib/import/extra/update-copyright: Renegerate.
3859 * gnulib/import/m4/onceonly.m4: Delete.
3860
702dc4fd
PA
38612013-07-01 Pedro Alves <palves@redhat.com>
3862
3863 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3864
47e1ce27
JK
38652013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3866
3867 Code cleanup.
3868 * remote.c (async_remote_interrupt_twice): Make it static.
3869 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3870
e82839d4
SDJ
38712013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3872
3873 * ia64-linux-tdep.c: Include <ctype.h>.
3874 (ia64_linux_stap_is_single_operand): New function.
3875 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3876
d6c2da54
TT
38772013-06-28 Tom Tromey <tromey@redhat.com>
3878
3879 * Makefile.in (version.c): Use version.in, not
3880 common/version.in.
3881 * common/create-version.sh: Likewise.
3882 * common/version.in: Move...
3883 * version.in: ...here.
3884
74da6f00
PA
38852013-06-28 Pedro Alves <palves@redhat.com>
3886
3887 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3888 here.
3889 * utils.h (pagination_enabled): Declare.
3890
d32dc48e
PA
38912013-06-28 Pedro Alves <palves@redhat.com>
3892
3893 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3894 Move higher up in file.
3895
0edd9e3b
TT
38962013-06-28 Tom Tromey <tromey@redhat.com>
3897
3898 * tracepoint.c (deprecated_readline_begin_hook)
3899 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3900 declare.
3901
4eb59108
PA
39022013-06-28 Pedro Alves <palves@redhat.com>
3903
3904 PR tui/14880
3905 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3906 checking if they're available.
3907 * value.c (value_available_contents_eq): Change comment.
3908 * value.h (value_available_contents_eq): Expand comment.
3909
97b17156
TT
39102013-06-27 Tom Tromey <tromey@redhat.com>
3911
3912 * target.c (find_run_target): Remove.
3913 * target.h (find_run_target): Remove.
3914
6a3bfc5c
TT
39152013-06-27 Tom Tromey <tromey@redhat.com>
3916
3917 * corelow.c (core_gdbarch): Now static.
3918
c9ef825d
TT
39192013-06-27 Tom Tromey <tromey@redhat.com>
3920
3921 * target.c (target_struct_index): Remove.
3922
e5823f1c
PA
39232013-06-27 Pedro Alves <palves@redhat.com>
3924
3925 * infrun.c: Remove comment describing the 'stepping over runtime
3926 loader dynamic symbol resolution code' mechanism; moved to
3927 gdbint.texinfo.
3928
97f8dd09
PA
39292013-06-27 Pedro Alves <palves@redhat.com>
3930
3931 * exceptions.c (catch_command_errors): Remove spurious space.
3932 * exceptions.h (catch_command_errors): Second parameter is "arg",
3933 not "command".
3934
02b1871e
YQ
39352013-06-27 Yao Qi <yao@codesourcery.com>
3936
3937 * common/create-version.sh: Update comments. Handle the case
3938 that TARGET_ALIAS is empty.
3939
bb1b1cf1
PA
39402013-06-26 Pedro Alves <palves@redhat.com>
3941
3942 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3943 comment.
3944
7b624e71
PA
39452013-06-26 Pedro Alves <palves@redhat.com>
3946
3947 * infrun.c: Update comments on stepping over runtime loader
3948 dynamic symbol resolution code.
3949
74e5a346
SDJ
39502013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3951
3952 * ax-gdb.h (union exp_element): Forward declare.
3953 * parser-defs.h: Include expression.h.
3954
a2fb2cee
MR
39552013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3956
3957 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3958
cdba14e0
DK
39592013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3960
3961 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3962
f30aa5af
DK
39632013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3964
3965 Fix trace-status to output proper start-time and stop-time.
3966 * tracepoint.c (trace_status_command): Fix type of printf arg to
3967 prevent improper type conversion.
3968 (trace_status_mi): Likewise.
3969
1aee363c
MR
39702013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3971
3972 * mips-tdep.c (mips_next_pc): Fix a typo.
3973
3356937a
MR
39742013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3975
3976 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3977
dc673c81
YQ
39782013-06-26 Pedro Alves <pedro@codesourcery.com>
3979 Yao Qi <yao@codesourcery.com>
3980
3981 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3982 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3983 * mi/mi-main.c (print_variable_or_computed): New function.
3984 (mi_cmd_trace_frame_collected): New function.
3985 * tracepoint.c (find_trace_state_variable_by_number): New.
3986 (struct traceframe_info): Move to tracepoint.h
3987 (struct collection_list): Likewise.
3988 (do_collect_symbol): Include locals and arguments in the
3989 collected variables list.
3990 (clear_collection_list): Clear wholly collected variables list
3991 and computed variables list.
3992 (append_exp): New function.
3993 (encode_actions_1): Include variables in the wholly
3994 collected variables list. Include memory ranges and
3995 full-fledged expressions in the computed expressions list.
3996 (encode_actions): Move some code to ...
3997 Return the cleanup chain.
3998 (encode_actions_rsp): ... here. New function.
3999 (get_traceframe_location, get_traceframe_info): Remove static.
4000 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4001 (struct collection_list): Moved from tracepoint.c. Add two
4002 new fields 'wholly_collected' and 'computed'.
4003 (find_trace_state_variable_by_number): Declare.
4004 (encode_actions): Adjust declaration.
4005 (encode_actions_rsp): Declare.
4006 (get_traceframe_info, get_traceframe_location): Declare.
4007
4008 * NEWS: Mention new MI command -trace-frame-collected.
4009
28a93511
YQ
40102013-06-26 Pedro Alves <pedro@codesourcery.com>
4011 Yao Qi <yao@codesourcery.com>
4012
4013 * ctf.c (ctf_traceframe_info): Push trace state variables
4014 present in the trace data into the traceframe info object.
4015 * breakpoint.c (DEF_VEC_I): Remove.
4016 * common/filestuff.c (DEF_VEC_I): Likewise.
4017 * dwarf2loc.c (DEF_VEC_I): Likewise.
4018 * mi/mi-main.c (DEF_VEC_I): Likewise.
4019 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4020 * features/traceframe-info.dtd: Add tvar element and its
4021 attributes.
4022 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4023 (build_traceframe_info): Push trace state variables present in
4024 the trace data into the traceframe info object.
4025 (traceframe_info_start_tvar): New function.
4026 (tvar_attributes): New.
4027 (traceframe_info_children): Add "tvar" element.
4028 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4029
4030 * NEWS: Mention the change in GDB and GDBserver.
4031
ddacd3c8
YQ
40322013-06-26 Pedro Alves <pedro@codesourcery.com>
4033 Yao Qi <yao@codesourcery.com>
4034
4035 * tracepoint.c (trace_dump_command): Move code to ...
4036 (get_traceframe_location): ... here. New.
4037
05796b35
YQ
40382013-06-26 Pedro Alves <pedro@codesourcery.com>
4039 Yao Qi <yao@codesourcery.com>
4040
4041 * tracepoint.c (trace_dump_command): GDB emits an error
4042 instead of a warning when a traceframe is not selected.
4043
cbfa3b61
YQ
40442013-06-26 Pedro Alves <pedro@codesourcery.com>
4045 Yao Qi <yao@codesourcery.com>
4046
4047 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4048 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4049 in collection_list.
4050 (do_clear_collection_list, init_collection_list): New.
4051 (encode_actions): Add local variables 'tracepoint_list' and
4052 'stepping_list'. Call init_collection_list and make cleanup
4053 which calls do_clear_collection_list. Don't call
4054 clear_collection_list.
4055 (_initialize_tracepoint): Delete references to
4056 'tracepoint_list' and 'stepping_list'.
4057
6e2048d3
TT
40582013-06-25 Tom Tromey <tromey@redhat.com>
4059
4060 * common/create-version.sh (date): Use "$", not "$$" in sed
4061 expression.
4062
42059f0e
KB
40632013-06-25 Kevin Buettner <kevinb@redhat.com>
4064
4065 * NEWS (New targets): Add entry for TI MSP430.
4066
a0743c90
YQ
40672013-06-25 Yao Qi <yao@codesourcery.com>
4068
4069 * remote.c (remote_start_remote): Move code to upload tsv
4070 earlier.
4071
9d6e6e84
HZ
40722013-06-25 Yao Qi <yao@codesourcery.com>
4073 Hui Zhu <hui@codesourcery.com>
4074 Pedro Alves <palves@redhat.com>
4075
4076 PR breakpoints/15075
4077 PR breakpoints/15434
4078 * breakpoint.c (bpstat_stop_status): Call
4079 b->ops->after_condition_true.
4080 (update_dprintf_command_list): Don't append "continue" command
4081 to the command list of dprintf breakpoint.
4082 (base_breakpoint_after_condition_true): New function.
4083 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4084 (dprintf_after_condition_true): New function.
4085 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4086 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4087
586cf749
KB
40882013-06-24 Kevin Buettner <kevinb@redhat.com>
4089
4090 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4091 (ALLDEPFILES): Add msp430-tdep.c.
4092 * configure.tgt (msp430*-*-elf): New target.
4093 * msp430-tdep.c: New file.
4094
1bbce132
MR
40952013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4096
4097 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4098 microMIPS synthetic symbols.
4099
3e5d3a5a
MR
41002013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4101
4102 * objfiles.h (pc_in_section): New prototype.
4103 (in_plt_section): Remove name argument, replace prototype with
4104 static inline function.
4105 * mips-tdep.h: Include "objfiles.h".
4106 (in_mips_stubs_section): New function.
4107 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4108 in_solib_call_trampoline member.
4109 (hppa_in_solib_call_trampoline): Remove name argument.
4110 * objfiles.c (pc_in_section): New function.
4111 (in_plt_section): Remove function.
4112 * mips-linux-tdep.c: Include "objfiles.h".
4113 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4114 name argument. Return 1 rather than the low 16-bit halfword of
4115 any instruction examined.
4116 (mips_linux_in_dynsym_resolve_code): Update
4117 mips_linux_in_dynsym_stub call accordingly.
4118 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4119 rather than an equivalent hand-coded sequence.
4120 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4121 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4122 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4123 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4124 in_opd_section.
4125 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4126 on call to tdep->in_solib_call_trampoline.
4127 (hppa_in_solib_call_trampoline): Remove name argument, update
4128 according to in_plt_section change.
4129 (hppa_skip_trampoline_code): Update according to in_plt_section
4130 change.
4131 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4132 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4133 Likewise.
4134 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4135 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4136 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4137 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4138 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4139 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4140 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4141 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4142 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4143 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4144 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4145 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4146 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4147
b9b26a16
JB
41482013-06-24 Joel Brobecker <brobecker@adacore.com>
4149
4150 * common/create-version.sh: Fix expansion of $host_alias
4151 and $target_alias in generation of HOST_NAME and TARGET_NAME
4152 (resp.).
4153
01208463
TT
41542013-06-24 Tom Tromey <tromey@redhat.com>
4155
4156 * common/create-version.sh: New file.
4157 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4158 create-version.sh.
4159 (HFILES_NO_SRCDIR): Use common/version.h.
4160 * version.in: Move to ...
4161 * common/version.in: ... here. Replace date with "DATE".
4162 * version.h: Move to ...
4163 * common/version.h: ... here.
4164
bb6b9a5e
JB
41652013-06-21 Joel Brobecker <brobecker@adacore.com>
4166
4167 * gdb/gnulib/Makefile.in: Update date in copyright header.
4168 * gdb/gnulib/configure.ac: Ditto.
4169 * gdb/gnulib/update-gnulib.sh: Ditto.
4170
c3b18ee7
JB
41712013-06-21 Joel Brobecker <brobecker@adacore.com>
4172
4173 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4174 "gdb/gnulib/import".
4175
85d3b769
WN
41762013-06-21 Will Newton <will.newton@linaro.org>
4177
4178 * doublest.c (ldfrexp): Remove function.
4179 (convert_doublest_to_floatformat): Call frexpl instead of
4180 ldfrexp.
4181
88b48903
WN
41822013-06-21 Will Newton <will.newton@linaro.org>
4183
4184 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4185 * gnulib/aclocal.m4: Regenerate.
4186 * gnulib/config.in: Regenerate.
4187 * gnulib/configure: Regenerate.
4188 * gnulib/import/Makefile.am: Update.
4189 * gnulib/import/Makefile.in: Update.
4190 * gnulib/import/m4/gnulib-cache.m4: Update.
4191 * gnulib/import/m4/gnulib-comp.m4: Update.
4192 * gnulib/import/float+.h: Import.
4193 * gnulib/import/float.c: Import.
4194 * gnulib/import/float.in.h: Import.
4195 * gnulib/import/fpucw.h: Import.
4196 * gnulib/import/frexp.c: Import.
4197 * gnulib/import/frexpl.c: Import.
4198 * gnulib/import/isnan.c: Import.
4199 * gnulib/import/isnand-nolibm.h: Import.
4200 * gnulib/import/isnand.c: Import.
4201 * gnulib/import/isnanl-nolibm.h: Import.
4202 * gnulib/import/isnanl.c: Import.
4203 * gnulib/import/itold.c: Import.
4204 * gnulib/import/m4/exponentd.m4: Import.
4205 * gnulib/import/m4/exponentl.m4: Import.
4206 * gnulib/import/m4/float_h.m4: Import.
4207 * gnulib/import/m4/fpieee.m4: Import.
4208 * gnulib/import/m4/frexp.m4: Import.
4209 * gnulib/import/m4/frexpl.m4: Import.
4210 * gnulib/import/m4/isnand.m4: Import.
4211 * gnulib/import/m4/isnanl.m4: Import.
4212 * gnulib/import/m4/math_h.m4: Import.
4213 * gnulib/import/math.c: Import.
4214 * gnulib/import/math.in.h: Import.
4215
4353c9e6
JK
42162013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4219 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4220 signature_INTEL_edx comparisons.
4221
e3e06db3
DE
42222013-06-20 Doug Evans <dje@google.com>
4223
6ac97d4c
DE
4224 symtab/15652
4225 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4226 All callers updated.
4227 (open_dwp_file): If we can't find the dwp file, search the basename
4228 in debug-file-directory.
4229
93417882
DE
4230 * dwarf2read.c (struct dwp_file): Fix comment.
4231 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4232
e3e06db3
DE
4233 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4234 better.
4235
0878d0fa
YQ
42362013-06-20 Yao Qi <yao@codesourcery.com>
4237
4238 * breakpoint.c (create_breakpoint): Fix code indentation.
4239
023fa29b
YQ
42402013-06-20 Yao Qi <yao@codesourcery.com>
4241
4242 * breakpoint.c (create_breakpoints_sal_default): Remove
4243 parameter 'lsal'. Update declaration.
4244 (bkpt_create_breakpoints_sal): Caller update.
4245 (tracepoint_create_breakpoints_sal): Likewise.
4246
c898adb7
YQ
42472013-06-20 Pedro Alves <pedro@codesourcery.com>
4248 Yao Qi <yao@codesourcery.com>
4249
4250 * NEWS: Mention the new option '--skip-unavailable' of command
4251 -data-list-register-values.
4252 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4253 --skip-unavailable option. Adjust to use output_register.
4254 (output_register): Add new 'skip_unavailable' parameter.
4255 Handle it.
4256
4d157a3d
MF
42572013-06-19 Mike Frysinger <vapier@gentoo.org>
4258
4259 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4260 common/i386-gcc-cpuid.h.
4261 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4262 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4263 Copy the latest version from upstream gcc.
4264 * common/linux-btrace.c: Include i386-cpuid.h.
4265 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4266 call to i386_cpuid.
4267 (cpu_supports_btrace): Likewise.
4268 * go32-nat.c: Include i386-cpuid.h.
4269 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4270
1ce4db08
DE
42712013-06-19 Doug Evans <dje@google.com>
4272
4273 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4274 (get_section_index): Ditto.
4275
0e4777df
TT
42762013-06-19 Tom Tromey <tromey@redhat.com>
4277
4278 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4279 "dprintf" help.
4280
3190f0c6
DE
42812013-06-18 Doug Evans <dje@google.com>
4282
4283 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4284 before using it.
4285 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4286 Move test of cu_index closer to use. Print complaint if cu_index
4287 is bad.
4288
8b89a20a
JB
42892013-06-18 Joel Brobecker <brobecker@adacore.com>
4290
4291 * machoread.c (oso_vector): Delete this global.
4292 (macho_register_oso): Add new parameter "oso_vector_ptr".
4293 Use it instead of the "oso_vector" global.
4294 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4295 (macho_symfile_read): Use a local oso_vector, to be free'ed
4296 at the end of this function, in place of the old "oso_vector"
4297 global. Update various function calls accordingly. Use one
4298 single cleanup chain for the entire function.
4299
59b0c7c1
JB
43002013-06-18 Joel Brobecker <brobecker@adacore.com>
4301
937c708c 4302 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4303 DWARF2_PER_OBJFILE by uses of DATA instead.
4304
427cd150
TT
43052013-06-18 Tom Tromey <tromey@redhat.com>
4306
4307 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4308 argument.
4309 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4310 Special case signals other than GDB_SIGNAL_TRAP.
4311 (explains_signal_watchpoint): New function.
4312 (base_breakpoint_explains_signal): Add 'sig' argument.
4313 (initialize_breakpoint_ops): Set 'explains_signal' method for
4314 watchpoints.
4315 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4316 signal argument.
4317 (bpstat_explains_signal): Likewise.
4318 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4319
2d57700b
TT
43202013-06-18 Tom Tromey <tromey@redhat.com>
4321
4322 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4323
ac475191
TT
43242013-06-18 Tom Tromey <tromey@redhat.com>
4325
4326 * python/python.c (finish_python_initialization): Decref
4327 'pythondir' on failure path as well.
4328
5bd1ef56
TT
43292013-06-18 Tom Tromey <tromey@redhat.com>
4330
4331 PR symtab/15391:
4332 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4333 after taking bits_to_skip into account. Sign extend byte_offset.
4334 * utils.h (gdb_sign_extend): Declare.
4335 * utils.c (gdb_sign_extend): New function.
4336
92fac807
JK
43372013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4338
4339 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4340
2d503272
PM
43412013-06-17 Pierre Muller <muller@sourceware.org>
4342
4343 * corelow.c (core_open): Print GDB signal name instead of target
4344 signal number.
4345
6916fd98
MF
43462013-06-17 Mike Frysinger <vapier@gentoo.org>
4347
4348 * .gitignore: Add /gcore.
4349
9c02c129
DE
43502013-06-13 Doug Evans <dje@google.com>
4351
4352 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4353 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4354
d0548fa2
PM
43552013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4356
4357 * stack.c (backtrace_command_1): Fix indentation.
4358
22128028
JB
43592013-06-11 Joel Brobecker <brobecker@adacore.com>
4360
4361 * window-nat.c (thread_rec): Add missing empty line after
4362 local variable declaration.
4363
2ed3e009
JB
43642013-06-11 Joel Brobecker <brobecker@adacore.com>
4365
4366 * windows-nat.c (thread_rec): Revert format used to print
4367 error code returned by SuspendThread from %d back to %u.
4368
0c3d84be
JB
43692013-06-11 Joel Brobecker <brobecker@adacore.com>
4370
4371 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4372 ID in debug trace.
4373 (get_windows_debug_event): Likewise, for all debug traces.
4374
80e88e1a
JB
43752013-06-11 Joel Brobecker <brobecker@adacore.com>
4376
4377 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4378 warning message.
4379
1edebdbf
YQ
43802013-06-08 Pedro Alves <pedro@codesourcery.com>
4381 Yao Qi <yao@codesourcery.com>
4382
4383 * mi/mi-main.c (get_register): Remove declaration.
4384 (output_register): Declare.
4385 (mi_cmd_data_list_register_values): Remove local variable
4386 'tuple_cleanup'. Move some code into output_register.
4387 (get_register): Renamed to ...
4388 (output_register): ... this. Output the register's
4389 "number" ui_out tuple here.
4390
47d48711
PA
43912013-06-07 Pedro Alves <palves@redhat.com>
4392
4393 * darwin-nat.c: Fix formating in copyright header.
4394 * darwin-nat.h: Likewise.
4395 * gnu-nat.c: Likewise.
4396 * machoread.c: Likewise.
4397
3aee8918
PA
43982013-06-07 Pedro Alves <palves@redhat.com>
4399
5f2b57b5 4400 PR server/14823
3aee8918
PA
4401 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4402 static. Output a global target description pointer.
4403 (init_registers_${name}): Adjust to initialize a
4404 target description structure.
4405
fe8400b4
WN
44062013-06-07 Will Newton <will.newton@linaro.org>
4407
4408 * printcmd.c (build_address_symbolic): Call
4409 gdbarch_addr_bits_remove for text minimal symbols.
4410
20df6206
WN
44112013-06-07 Will Newton <will.newton@linaro.org>
4412
4413 * MAINTAINERS: Add myself to Write After Approval.
4414
aef525cb
YQ
44152013-06-07 Yao Qi <yao@codesourcery.com>
4416
4417 * tracepoint.c (start_tracing): Move code to ...
4418 (trace_reset_local_state): ... here. New.
4419 (disconnect_tracing): Don't call set_current_traceframe,
4420 set_tracepoint_num, and set_traceframe_context. Call
4421 trace_reset_local_state instead.
4422 (tfile_close): Call trace_reset_local_state.
4423 * ctf.c (ctf_close): Likewise.
4424 * remote.c (remote_close): Likewise.
4425 * tracepoint.h (trace_reset_local_state): Declare.
4426
d2415c6c
DE
44272013-06-06 Doug Evans <dje@google.com>
4428
4429 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4430 and fix header docs.
4431
69fc87c2
DE
44322013-06-05 Doug Evans <dje@google.com>
4433 Keith Seitz <keiths@redhat.com>
4434
4435 PR 15519
4436 * cp-namespace.c (find_symbol_in_baseclass): Call
4437 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4438 Check result of call to lookup_symbol_static.
4439 Call lookup_static_symbol_aux unconditionally.
4440 Call check_typedef on base types before accessing them.
4441 (cp_lookup_nested_symbol): Fix comment.
4442
a513d1e8
LM
44432013-06-05 Luis Machado <lgustavo@codesourcery.com>
4444
4445 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4446 minimal symbols pointing to function descriptors.
4447
351a6f02
TT
44482013-06-05 Tom Tromey <tromey@redhat.com>
4449
4450 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4451
5e1b953b 44522013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4453 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4454
4455 * remote.c (remote_wait_as): Restore signal handler before returning
4456 when GDB gets a notification.
4457
f9e14852
GB
44582013-06-04 Gary Benson <gbenson@redhat.com>
4459
8445cbf1 4460 PR 2328
f9e14852
GB
4461 * breakpoint.h (handle_solib_event): Moved function declaration
4462 to solib.h.
4463 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4464 (bpstat_stop_status): Pass new argument to handle_solib_event.
4465 * solib.h (update_solib_breakpoints): New function declaration.
4466 (handle_solib_event): Moved function declaration from
4467 breakpoint.h.
4468 * solib.c (update_solib_breakpoints): New function.
4469 (handle_solib_event): Moved function from breakpoint.c.
4470 Updated to call solib_ops->handle_event if not NULL.
4471 * solist.h (target_so_ops): New fields "update_breakpoints" and
4472 "handle_event".
4473 * infrun.c (set_stop_on_solib_events): New function.
4474 (_initialize_infrun): Use the above for "set
4475 stop-on-solib-events".
4476 (handle_inferior_event): Pass new argument to handle_solib_event.
4477 * solib-svr4.c (probe.h): New include.
4478 (svr4_free_library_list): New forward declaration.
4479 (probe_action): New enum.
4480 (probe_info): New struct.
4481 (probe_info): New static variable.
4482 (NUM_PROBES): New definition.
4483 (svr4_info): New fields "using_xfer", "probes_table" and
4484 "solib_list".
4485 (free_probes_table): New function.
4486 (free_solib_list): New function.
4487 (svr4_pspace_data_cleanup): Free probes table and solib list.
4488 (svr4_copy_library_list): New function.
4489 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4490 (svr4_read_so_list): New parameter "prev_lm".
4491 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4492 (svr4_current_sos): New function.
4493 (probe_and_action): New struct.
4494 (hash_probe_and_action): New function.
4495 (equal_probe_and_action): Likewise.
4496 (register_solib_event_probe): Likewise.
4497 (solib_event_probe_at): Likewise.
4498 (solib_event_probe_action): Likewise.
4499 (solist_update_full): Likewise.
4500 (solist_update_incremental): Likewise.
4501 (disable_probes_interface_cleanup): Likewise.
4502 (svr4_handle_solib_event): Likewise.
4503 (svr4_update_solib_event_breakpoint): Likewise.
4504 (svr4_update_solib_event_breakpoints): Likewise.
4505 (svr4_create_solib_event_breakpoints): Likewise.
4506 (enable_break): Free probes table before creating breakpoints.
4507 Use svr4_create_solib_event_breakpoints to create breakpoints.
4508 (svr4_solib_create_inferior_hook): Free the solib list.
4509 (_initialize_svr4_solib): Initialise
4510 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4511
ced63ec0
GB
45122013-06-04 Gary Benson <gbenson@redhat.com>
4513
4514 * target.h (target_ops): New field
4515 "to_augmented_libraries_svr4_read".
4516 (target_augmented_libraries_svr4_read): New macro.
4517 * target.c (update_current_target): Handle
4518 to_augmented_libraries_svr4_read.
4519 * remote.c (remote_state): New field
4520 "augmented_libraries_svr4_read".
4521 (remote_augmented_libraries_svr4_read_feature): New function.
4522 (remote_protocol_features): Add entry for
4523 "augmented-libraries-svr4-read".
4524 (remote_augmented_libraries_svr4_read): New function.
4525 (init_remote_ops): Initialize
4526 remote_ops.to_augmented_libraries_svr4_read.
4527
7f91dbec
GB
45282013-06-04 Gary Benson <gbenson@redhat.com>
4529
4530 * NEWS: Update.
4531
607ece04
GB
45322013-06-04 Gary Benson <gbenson@redhat.com>
4533
4534 * objfiles.h (inhibit_section_map_updates): New function
4535 declaration.
4536 (resume_section_map_updates): Likewise.
4537 (resume_section_map_updates_cleanup): Likewise.
4538 * objfiles.c (objfile_pspace_info): Removed field
4539 "objfiles_changed_p". New fields "new_objfiles_available",
4540 "section_map_dirty" and "inhibit_updates".
4541 (allocate_objfile): Set new_objfiles_available.
4542 (free_objfile): Set section_map_dirty.
4543 (objfile_relocate1): Likewise.
4544 (in_plt_section): Likewise.
4545 (find_pc_section): Update the conditions under which the
4546 section map will be updated.
4547 (inhibit_section_map_updates): New function.
4548 (resume_section_map_updates): Likewise.
4549 (resume_section_map_updates_cleanup): Likewise.
4550
9ee6a5ac
GB
45512013-06-04 Gary Benson <gbenson@redhat.com>
4552
4553 * probe.h (get_probe_argument_count): New declaration.
4554 (evaluate_probe_argument): Likewise.
4555 * probe.c (get_probe_argument_count): New function.
4556 (evaluate_probe_argument): Likewise.
4557 (probe_safe_evaluate_at_pc): Use the above new functions.
4558
845d4708
AM
45592013-06-04 Alan Modra <amodra@gmail.com>
4560
4561 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4562 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4563 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4564 target mem reads on optional insns.
4565 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4566 ppc_insns_match_pattern calls.
4567 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4568 Add match for power7 thread safety insns, and new order of
4569 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4570 invocation in comment, and update rest of comment.
4571 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4572 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4573 (ppc64_standard_linkage2_target): Update insn offsets.
4574 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4575 stubs first. Update calls.
4576
404e278f
YQ
45772013-06-04 Yao Qi <yao@codesourcery.com>
4578
4579 * solib.c (solib_find): Don't need dir separator if path has
4580 drive spec.
4581
f6aea118
JB
45822013-06-03 Joel Brobecker <brobecker@adacore.com>
4583
4584 Revert (indirectly causes a SIGSEGV):
4585 * machoread.c (macho_symfile_read): Assign first cleanup to
4586 'back_to'.
4587
87967e27
YQ
45882013-06-03 Yao Qi <yao@codesourcery.com>
4589
4590 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4591 mi-parse.c. Make them static.
4592 (mi_all_values): Likewise.
4593 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4594 mi_parse_print_values. Make it external.
4595 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4596 Remove the declarations.
4597 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4598 * mi/mi-parse.h (mi_parse_print_values): Declare.
4599 * mi/mi-cmd-stack.c: Include mi-parse.h.
4600 (parse_print_values): Remove
4601 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4602 of parse_print_values.
4603 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4604
3ca73e0c
YQ
46052013-05-31 Pedro Alves <pedro@codesourcery.com>
4606 Yao Qi <yao@codesourcery.com>
4607
4608 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4609 (encode_actions): Move code to ...
4610 (all_tracepoint_actions_and_cleanup): ... here. New.
4611 (trace_dump_command): Likewise.
4612
4e993a19
TT
46132013-05-30 Tom Tromey <tromey@redhat.com>
4614
4615 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4616
e3b76b4f
TT
46172013-05-30 Tom Tromey <tromey@redhat.com>
4618
4619 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4620 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4621 'old_chain' argument. Add 'parser_result' argument.
4622 (gdb_xml_create_parser_and_cleanup): Remove old version.
4623 (gdb_xml_parse_quick): Update.
4624 (xml_process_xincludes): Update.
4625 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4626 declare.
4627
db26349c
TT
46282013-05-30 Tom Tromey <tromey@redhat.com>
4629
4630 * probe.c (collect_probes): Check arguments for NULL before
4631 calling compile_rx_or_error.
4632 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4633 Remove NULL return.
4634
77f9e713
TT
46352013-05-30 Tom Tromey <tromey@redhat.com>
4636
4637 * infrun.c (adjust_pc_after_break): Introduce an outer null
4638 cleanup.
4639
45475de7
TT
46402013-05-30 Tom Tromey <tromey@redhat.com>
4641
4642 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4643
ac5007fd
TT
46442013-05-30 Tom Tromey <tromey@redhat.com>
4645
4646 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4647 for 'old_chain'. Do not check 'head' before processing
4648 cleanups.
4649
cd82eddc
TT
46502013-05-30 Tom Tromey <tromey@redhat.com>
4651
4652 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4653 "cleanup_tuple".
4654
57cee33a
TT
46552013-05-30 Tom Tromey <tromey@redhat.com>
4656
4657 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4658 inner scope. Unconditionally call do_cleanups.
4659
795d915c
TT
46602013-05-30 Tom Tromey <tromey@redhat.com>
4661
4662 * source.c (find_and_open_source): Call do_cleanups.
4663
1fc3cf4a
TT
46642013-05-30 Tom Tromey <tromey@redhat.com>
4665
4666 * linux-thread-db.c (thread_db_load_search): Unconditionally
4667 call do_cleanups.
4668
e35ac9bf
TT
46692013-05-30 Tom Tromey <tromey@redhat.com>
4670
4671 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4672 for 'cleanup'; instead use a later one.
4673
f3300387
TT
46742013-05-30 Tom Tromey <tromey@redhat.com>
4675
4676 * python/py-breakpoint.c (bppy_get_commands): Use
4677 explicit, unconditional return.
4678 * python/py-frame.c (frapy_read_var): Likewise.
4679 * python/python.c (gdbpy_decode_line): Likewise.
4680
c27e16e3
TT
46812013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4684 do_cleanups on all return paths.
4685
5ae85e44
TT
46862013-05-30 Tom Tromey <tromey@redhat.com>
4687
4688 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4689
73b8d9da
TT
46902013-05-30 Tom Tromey <tromey@redhat.com>
4691
4692 * stabsread.c (read_struct_type): Call do_cleanups along
4693 all return paths.
4694
7d266584
MR
46952013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4696
4697 * mips-linux-tdep.c: Adjust formatting throughout.
4698
0f900f54
TT
46992013-05-30 Tom Tromey <tromey@redhat.com>
4700
4701 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4702 along all return paths.
4703
a991ac28
TT
47042013-05-30 Tom Tromey <tromey@redhat.com>
4705
4706 * symfile.c (find_separate_debug_file): Call do_cleanups
4707 along all return paths.
4708
1abaf042
TT
47092013-05-30 Tom Tromey <tromey@redhat.com>
4710
4711 * symtab.c (search_symbols): Introduce a null cleanup for
4712 'retval_chain'.
4713
edefe1da
TT
47142013-05-30 Tom Tromey <tromey@redhat.com>
4715
4716 * python/py-value.c (valpy_binop): Call do_cleanups before
4717 exiting loop.
4718
54f72dcc
TT
47192013-05-30 Tom Tromey <tromey@redhat.com>
4720
4721 * python/py-prettyprint.c (print_children): Remove extra
4722 do_cleanups call.
4723
af1c6971
TT
47242013-05-30 Tom Tromey <tromey@redhat.com>
4725
4726 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4727 all return paths.
4728
b862ce75
TT
47292013-05-30 Tom Tromey <tromey@redhat.com>
4730
4731 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4732 along all return paths.
4733
e12fefc8
TT
47342013-05-30 Tom Tromey <tromey@redhat.com>
4735
4736 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4737 call do_cleanups.
4738
4867f990
TT
47392013-05-30 Tom Tromey <tromey@redhat.com>
4740
4741 * varobj.c (c_value_of_root): Call do_cleanups along all
4742 return paths.
4743
4fd2d6af
TT
47442013-05-30 Tom Tromey <tromey@redhat.com>
4745
4746 * tracepoint.c (trace_dump_command): Unconditionally call
4747 do_cleanups.
4748
752eb8b4
TT
47492013-05-30 Tom Tromey <tromey@redhat.com>
4750
4751 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4752 do_cleanups earlier.
4753
e42d0aa5
TT
47542013-05-30 Tom Tromey <tromey@redhat.com>
4755
4756 * machoread.c (macho_symfile_read): Assign first cleanup to
4757 'back_to'.
4758
4bbc010a
TT
47592013-05-30 Tom Tromey <tromey@redhat.com>
4760
4761 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4762
b9635925
TT
47632013-05-30 Tom Tromey <tromey@redhat.com>
4764
4765 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4766
25f43500
TT
47672013-05-30 Tom Tromey <tromey@redhat.com>
4768
4769 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4770 call discard_cleanups.
4771 (inf_ptrace_attach): Likewise.
4772
d6a2e54a
TT
47732013-05-30 Tom Tromey <tromey@redhat.com>
4774
4775 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4776 return paths.
4777 (mips_initialize): Likewise.
4778 (common_open): Call do_cleanups.
4779
48be7c1b
TT
47802013-05-30 Tom Tromey <tromey@redhat.com>
4781
4782 * utils.c (internal_vproblem): Call do_cleanups.
4783
e61727ab
TT
47842013-05-30 Tom Tromey <tromey@redhat.com>
4785
4786 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4787
b81b921f
TT
47882013-05-30 Tom Tromey <tromey@redhat.com>
4789
4790 * cli/cli-script.c (setup_user_args): Don't return after error.
4791
fe48dfb1
TT
47922013-05-30 Tom Tromey <tromey@redhat.com>
4793
4794 * somread.c (som_symtab_read): Call do_cleanups.
4795
27833de7
TT
47962013-05-30 Tom Tromey <tromey@redhat.com>
4797
4798 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4799
5b3fca71
TT
48002013-05-30 Tom Tromey <tromey@redhat.com>
4801
4802 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4803 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4804 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4805 * source.c (show_substitute_path_command): Call do_cleanups.
4806 (unset_substitute_path_command, set_substitute_path_command):
4807 Likewise.
4808 * symfile.c (load_command): Call do_cleanups.
4809
af83e3f8
TT
48102013-05-30 Tom Tromey <tromey@redhat.com>
4811
4812 * contrib/cleanup_check.py: New file.
4813 * contrib/gcc-with-excheck: Add option parsing.
4814
564eac42
JB
48152013-05-30 Joel Brobecker <brobecker@adacore.com>
4816
4817 * windows-nat.c (windows_delete_thread): Add missing space
4818 in cast expression.
4819
47902076
HAQ
48202013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4821
4822 * inferior.c (top level): Include tilde.h.
4823 (add_inferior_command): Call tilde_expand on the value of 'exec'
4824 argument.
4825
23da373a
YQ
48262013-05-30 Pedro Alves <pedro@codesourcery.com>
4827 Yao Qi <yao@codesourcery.com>
4828
4829 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4830 Caller update.
4831 (encode_actions): Likewise.
4832 * remote.c (remote_download_tracepoint): Caller update.
4833 * tracepoint.h (encode_actions): Update declaration.
4834
a6e6f791
PA
48352013-05-30 Pedro Alves <palves@redhat.com>
4836
4837 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4838 pointer.
4839
36d25514
YQ
48402013-05-30 Yao Qi <yao@codesourcery.com>
4841
4842 * remote.c (remote_check_symbols): Remove unused parameter
4843 'objfile'.
4844 Declaration update.
4845 (remote_start_remote, remote_new_objfile): Caller update.
4846
62a813cc
YQ
48472013-05-30 Yao Qi <yao@codesourcery.com>
4848
4849 * mi/mi-cmds.c (mi_cmds): Define MI command
4850 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4851 DEF_MI_CMD_CLI.
4852
28439a30
PA
48532013-05-29 Pedro Alves <palves@redhat.com>
4854
4855 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4856 (remote_insert_watchpoint, remote_remove_watchpoint)
4857 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4858 (remote_verify_memory, compare_sections_command)
4859 (remote_search_memory): Set the general process/thread on the
4860 remote side.
4861
6ac1c082
PA
48622013-05-29 Pedro Alves <palves@redhat.com>
4863
4864 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4865 (_initialize_aarch64_tdep): Don't call
4866 initialize_tdesc_aarch64_without_fpu.
4867 * features/Makefile (WHICH): Remove reference to
4868 aarch64-without-fpu.
4869 * features/aarch64-without-fpu.c: Delete file.
4870 * regformats/aarch64-without-fpu.dat: Delete file.
4871
a73e3634
YQ
48722013-05-28 Yao Qi <yao@codesourcery.com>
4873
4874 * tracepoint.c (stringify_collection_list): Remove parameter
4875 'string'.
4876 (encode_actions): Caller update. Remove local variables.
4877
c0ea94eb
YQ
48782013-05-24 Yao Qi <yao@codesourcery.com>
4879
4880 * tracepoint.c (TFILE_PID): Remove.
4881 (tfile_open): Don't add thread and inferior.
4882 (tfile_close): Don't set 'inferior_ptid'. Don't call
4883 exit_inferior_silent.
4884 (tfile_thread_alive): Remove.
4885 (init_tfile_ops): Don't set field 'to_thread_alive' of
4886 tfile_ops.
4887
20d7f211
DE
48882013-05-23 Doug Evans <dje@google.com>
4889
4890 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4891
8658d16d
PA
48922013-05-23 Pedro Alves <palves@redhat.com>
4893
4894 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4895 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4896 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4897 Only define if HAVE_SOCKETS is defined.
4898 * configure.ac: Check for sys/socket.h.
4899 * config.in, configure: Regenerate.
4900
21aa081e
PA
49012013-05-23 Pedro Alves <palves@redhat.com>
4902
4903 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4904 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4905 printing uint32_t variables.
4906
c2d6af84
PA
49072013-05-23 Pedro Alves <palves@redhat.com>
4908
4909 * NEWS: Mention GDBserver range stepping support.
4910
c1e36e3e
PA
49112013-05-23 Yao Qi <yao@codesourcery.com>
4912 Pedro Alves <palves@redhat.com>
4913
4914 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4915 field.
4916 * infcmd.c (step_once, until_next_command): Enable range stepping.
4917 * infrun.c (displaced_step_prepare): Disable range stepping.
4918 (resume): Disable range stepping if stepping over a breakpoint or
4919 we have software watchpoints. If range stepping is enabled,
4920 assert the thread is in the stepping range.
4921 (clear_proceed_status_thread): Clear may_range_step.
4922 (handle_inferior_event): Disable range stepping as soon as we know
4923 the thread that hit the event. Re-enable it whenever we're going
4924 to step with a step range.
4925 * remote.c (struct vCont_action_support) <r>: New field.
4926 (use_range_stepping): New global.
4927 (remote_vcont_probe): Handle 'r' action.
4928 (append_resumption): Append an 'r' action if the thread may range
4929 step.
4930 (show_range_stepping): New function.
4931 (set_range_stepping): New function.
4932 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4933 'set range-stepping' and 'show range-stepping' commands.
4934 * NEWS: Mention range stepping, the new vCont;r action, and the
4935 new "set/show range-stepping" commands.
4936
d458bd84
PA
49372013-05-23 Yao Qi <yao@codesourcery.com>
4938 Pedro Alves <palves@redhat.com>
4939
4940 * remote.c (struct vCont_action_support): New struct.
4941 (struct remote_state) <support_vCont_t>: Remove field.
4942 <vCont_actions_support>: New field.
4943 (remote_vcont_probe, remote_stop_ns): Update.
4944
ce4c476a
PA
49452013-05-23 Yao Qi <yao@codesourcery.com>
4946 Pedro Alves <palves@redhat.com>
4947
4948 * gdbthread.h (pc_in_thread_step_range): New declaration.
4949 * thread.c (pc_in_thread_step_range): New function.
4950 * infrun.c (handle_inferior_event): Use it.
4951
ce70887a
JB
49522013-05-23 Joel Brobecker <brobecker@adacore.com>
4953
4954 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4955 of sprintf.
4956
55b87a52
KS
49572013-05-22 Keith Seitz <keiths@redhat.com>
4958
4959 * ada-lang.c (is_known_support_routine): Add explicit free of
4960 'func_name' from find_frame_funname.
4961 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4962 for func_name from find_frame_funname.
4963 * python/py-frame.c (frapy_name): Add explicit free of
4964 'name' from find_frame_funname.
4965 * stack.c (find_frame_funname): Add comment explaining that
4966 funcp must be freed by the caller.
4967 Return copy of symbol names instead of pointers.
4968 (print_frame): Add a cleanup for 'funname' from
4969 find_frame_funname.
4970 * stack.h (find_frame_funname): Remove "const" from
4971 'funname' parameter.
4972
5f2e6b00
TT
49732013-05-22 Tom Tromey <tromey@redhat.com>
4974
4975 PR c++/15401:
4976 * c-valprint.c (c_value_print): Use value_addr for
4977 references. Convert back to reference type with value_ref.
4978
d85c4847
EZ
49792013-05-22 Eli Zaretskii <eliz@gnu.org>
4980
4981 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4982 unloaded DLL, it will be done by handle_solib_event. See
4983 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4984 details.
4985
54eb231c
PM
49862013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4987
4988 * ui-out.c: Create typedef ui_out_level_p and define vector
4989 operations for that type.
4990 (struct ui_out): Use a vector instead of an array.
4991 (current_level): Return level from a vector.
4992 (push_level): Create a level in a vector.
4993 (pop_level): Delete a level in a vector.
4994 (ui_out_new): Create initial level zero level, and store in a
4995 vector.
4996 (ui_out_destroy): Add vector cleanup.
4997
ac90359c
PA
49982013-05-22 Pedro Alves <palves@redhat.com>
4999
5000 * python/python-internal.h (gdb_Py_DECREF): Tag with
5001 "ARI: editCase function".
5002
6dcc1893
PP
50032013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5004
5005 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5006
c8c735b9
PA
50072013-05-21 Pedro Alves <palves@redhat.com>
5008
5009 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5010 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5011 * python/py-utils.c (py_decref): Don't check for NULL before
5012 calling Py_DECREF.
5013
1915daeb
PA
50142013-05-21 Pedro Alves <palves@redhat.com>
5015
5016 * python/py-utils.c (py_decref): Remove extra braces.
5017 (gdb_pymodule_addobject): Remove extra braces.
5018 * python-internal.h (gdb_Py_DECREF): New static inline function.
5019 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5020
bd9673a4
PW
50212013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5022
5023 * breakpoints.c (detach_breakpoints): Do not
5024 detach breakpoints locations with loc_type bp_loc_other.
5025
ff6009d0
JK
50262013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5027
5028 Workaround Python 2.6.
5029 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5030 a block.
5031
3641da11
JK
50322013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5033
5034 Code cleanup: constification.
5035 * solib.c (solib_ops): Make return type and ops variable type const.
5036 (set_solib_ops): Make the new_ops parameter and ops variable const.
5037 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5038 (solib_add, solib_keep_data_in_core, clear_solib)
5039 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5040 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5041 const.
5042 * solib.h (set_solib_ops): Make the new_ops parameter const.
5043
776af39e
JB
50442013-05-21 Joel Brobecker <brobecker@adacore.com>
5045
5046 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5047 variable.
5048 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5049 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5050 (SYSTEM_GDBINIT_FILES): New variables.
5051 (all): Add stamp-system-gdbinit.
5052 (stamp-system-gdbinit): New rule.
5053 (clean-system-gdbinit, install-system-gdbinit)
5054 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5055 (install-only): Add dependency on install-system-gdbinit.
5056 (uninstall): Add dependency on uninstall-system-gdbinit.
5057 (clean): Add dependency on clean-system-gdbinit.
5058 * system-gdbinit/elinos.py: New file.
5059 * system-gdbinit/wrs-linux.py: New file.
5060
1509e573
JB
50612013-05-21 Joel Brobecker <brobecker@adacore.com>
5062
5063 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5064
c5867ab6
HZ
50652013-05-21 Hui Zhu <hui@codesourcery.com>
5066
5067 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5068 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5069 * mi/mi-cmd-break.c (ctype.h): New include.
5070 (gdb_obstack.h): New include.
5071 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5072 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5073 (mi_cmd_dprintf_insert): New.
5074 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5075 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5076
7d38e38f
TT
50772013-05-20 Tom Tromey <tromey@redhat.com>
5078
5079 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5080
97b77b39
TT
50812013-05-20 Tom Tromey <tromey@redhat.com>
5082
5083 * python/py-value.c (valpy_get_dynamic_type): Simplify
5084 dynamic_type assignment. Use Py_XINCREF.
5085
53e66479
TT
50862013-05-20 Tom Tromey <tromey@redhat.com>
5087
5088 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5089
dcf87832
TT
50902013-05-20 Tom Tromey <tromey@redhat.com>
5091
5092 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5093 (gdbpy_selected_frame): Move object-construction code
5094 out of TRY_CATCH.
5095
aa36459a
TT
50962013-05-20 Tom Tromey <tromey@redhat.com>
5097
5098 * python/py-arch.c (gdbpy_initialize_arch): Use
5099 gdb_pymodule_addobject.
5100 * python/py-block.c (gdbpy_initialize_blocks): Use
5101 gdb_pymodule_addobject.
5102 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5103 gdb_pymodule_addobject.
5104 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5105 gdb_pymodule_addobject.
5106 * python/py-event.c (gdbpy_initialize_event_generic): Use
5107 gdb_pymodule_addobject.
5108 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5109 gdb_pymodule_addobject.
5110 * python/py-evts.c (add_new_registry): Use
5111 gdb_pymodule_addobject.
5112 (gdbpy_initialize_py_events): Likewise.
5113 * python/py-finishbreakpoint.c
5114 (gdbpy_initialize_finishbreakpoints): Use
5115 gdb_pymodule_addobject.
5116 * python/py-frame.c (gdbpy_initialize_frames): Use
5117 gdb_pymodule_addobject.
5118 * python/py-function.c (gdbpy_initialize_functions): Use
5119 gdb_pymodule_addobject.
5120 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5121 gdb_pymodule_addobject.
5122 * python/py-infthread.c (gdbpy_initialize_thread): Use
5123 gdb_pymodule_addobject.
5124 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5125 gdb_pymodule_addobject.
5126 * python/py-param.c (gdbpy_initialize_parameters): Use
5127 gdb_pymodule_addobject.
5128 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5129 gdb_pymodule_addobject.
5130 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5131 gdb_pymodule_addobject.
5132 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5133 gdb_pymodule_addobject.
5134 * python/py-type.c (gdbpy_initialize_types): Use
5135 gdb_pymodule_addobject.
5136 * python/py-utils.c (gdb_pymodule_addobject): New function.
5137 * python/py-value.c (gdbpy_initialize_values): Use
5138 gdb_pymodule_addobject.
5139 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5140 * python/python.c (_initialize_python): Use
5141 gdb_pymodule_addobject.
5142
3d4a3c3e
TT
51432013-05-20 Tom Tromey <tromey@redhat.com>
5144
5145 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5146 * python/py-param.c (get_set_value, get_show_value): Use
5147 explicit decrefs.
5148 * python/python.c (start_type_printers, apply_type_printers):
5149 Use explicit decrefs.
5150
72ff8829
TT
51512013-05-20 Tom Tromey <tromey@redhat.com>
5152
5153 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5154 incref the module.
5155
02146ba5
TT
51562013-05-20 Tom Tromey <tromey@redhat.com>
5157
5158 * python/python.c (gdbpy_run_events): Decref the result
5159 of PyObject_CallObject.
5160
33ee792f
TT
51612013-05-20 Tom Tromey <tromey@redhat.com>
5162
5163 * python/py-symtab.c (set_sal): Use
5164 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5165 (symtab_and_line_to_sal_object): Update.
5166
fcb49fc8
TT
51672013-05-20 Tom Tromey <tromey@redhat.com>
5168
5169 * python/py-param.c (compute_enum_values): Decref 'item'.
5170
0646da15
TT
51712013-05-20 Tom Tromey <tromey@redhat.com>
5172
5173 * mi/mi-main.c: Include python-internal.h.
5174 (mi_cmd_list_features): Check gdb_python_initialized.
5175 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5176 (python_inferior_exit, python_new_objfile, add_thread_object)
5177 (delete_thread_object, py_free_inferior): Check
5178 gdb_python_initialized.
5179 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5180 gdb_python_initialized.
5181 * python/py-type.c (save_objfile_types): Check
5182 gdb_python_initialized.
5183 * python/python-internal.h (gdb_python_initialized): Declare.
5184 * python/python.c (ensure_python_env): Throw exception if
5185 Python not initialized.
5186 (before_prompt_hook, source_python_script_for_objfile)
5187 (start_type_printers, apply_type_printers,
5188 free_type_printers): Check gdb_python_initialized.
5189 * varobj.c (varobj_get_display_hint)
5190 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5191 (install_new_value_visualizer, varobj_set_visualizer)
5192 (value_get_print_value): Check gdb_python_initialized.
5193
999633ed
TT
51942013-05-20 Tom Tromey <tromey@redhat.com>
5195
5196 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5197 Check errors.
5198 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5199 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5200 Check errors.
5201 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5202 Check errors.
5203 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5204 Check errors.
5205 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5206 Check errors.
5207 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5208 init function to return 'int'.
5209 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5210 Return 'int'. Check errors.
5211 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5212 Check errors.
5213 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5214 Return 'int'. Check errors.
5215 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5216 Check errors.
5217 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5218 Check errors.
5219 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5220 Check errors.
5221 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5222 Check errors.
5223 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5224 Check errors.
5225 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5226 Check errors.
5227 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5228 Check errors.
5229 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5230 Check errors.
5231 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5232 Check errors.
5233 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5234 Check errors.
5235 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5236 Check errors.
5237 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5238 Check errors.
5239 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5240 Check errors.
5241 * python/python-internal.h (gdbpy_initialize_auto_load,
5242 gdbpy_initialize_values, gdbpy_initialize_frames,
5243 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5244 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5245 gdbpy_initialize_blocks, gdbpy_initialize_types,
5246 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5247 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5248 gdbpy_initialize_finishbreakpoints,
5249 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5250 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5251 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5252 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5253 gdbpy_initialize_signal_event,
5254 gdbpy_initialize_breakpoint_event,
5255 gdbpy_initialize_continue_event,
5256 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5257 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5258 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5259 * python/python.c (gdb_python_initialized): New global.
5260 (gdbpy_initialize_events): Return 'int'. Check errors.
5261 (_initialize_python): Check errors. Set
5262 gdb_python_initialized.
5263
18868860
TT
52642013-05-20 Tom Tromey <tromey@redhat.com>
5265
5266 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5267 Decref the reslut of PyObject_CallMethod.
5268
9f4ff0c2
TT
52692013-05-20 Tom Tromey <tromey@redhat.com>
5270
5271 * python/py-event.c (gdbpy_initialize_event_generic): Return
5272 early if PyType_Ready fails.
5273
0d3a2e8a
TT
52742013-05-20 Tom Tromey <tromey@redhat.com>
5275
5276 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5277 as 'default' in the switch.
5278
b86af38a
TT
52792013-05-20 Tom Tromey <tromey@redhat.com>
5280
5281 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5282 get_addr_from_python calls out of TRY_CATCH.
5283 (infpy_write_memory, infpy_search_memory): Likewise.
5284 * python/py-utils.c (get_addr_from_python): Return negative
5285 value on error. Use TRY_CATCH.
5286 * python/python-internal.h (get_addr_from_python): Use
5287 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5288
c127ec58
TT
52892013-05-20 Tom Tromey <tromey@redhat.com>
5290
5291 * python/py-event.c (evpy_emit_event): Decref the
5292 result of PyObject_CallFunctionObjArgs.
5293
ba327838
TT
52942013-05-20 Tom Tromey <tromey@redhat.com>
5295
5296 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5297 Correctly decref.
5298
d8191432
TT
52992013-05-20 Tom Tromey <tromey@redhat.com>
5300
5301 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5302
5d153bd1
TT
53032013-05-20 Tom Tromey <tromey@redhat.com>
5304
5305 * python/py-event.h (gdbpy_initialize_event_generic): Use
5306 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5307 * python/py-evts.c (add_new_registry): Use
5308 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5309 * python/python-internal.h
5310 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5311
56cc411c
TT
53122013-05-20 Tom Tromey <tromey@redhat.com>
5313
5314 * python/py-arch.c (archpy_disassemble): Update.
5315 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5316 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5317 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5318 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5319 macro.
5320 (GDB_PY_HANDLE_EXCEPTION): Update.
5321 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5322
8919e174
TT
53232013-05-20 Tom Tromey <tromey@redhat.com>
5324
5325 * python/python-internal.h (events_object_type): Remove.
5326
9b08f225
TT
53272013-05-20 Tom Tromey <tromey@redhat.com>
5328
f5aee5ee
AM
5329 * python/py-event.h (evpy_emit_event): Use
5330 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5331 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5332 New macro.
9b08f225 5333
f04010ff
TT
53342013-05-20 Tom Tromey <tromey@redhat.com>
5335
5336 * py-evtregistry.c (create_event_object): Decref
5337 eventregistry_object if PyList_New fails.
5338
3919fd96
TT
53392013-05-20 Tom Tromey <tromey@redhat.com>
5340
5341 * py-cmd.c (gdbpy_string_to_argv): Check result of
5342 PyList_New.
5343
0430e8cb
TT
53442013-05-20 Tom Tromey <tromey@redhat.com>
5345
5346 * python/python.c (before_prompt_hook): Add cleanup to
5347 decref 'hook'.
5348
764123e4
TT
53492013-05-20 Tom Tromey <tromey@redhat.com>
5350
5351 * python/py-function.c (fnpy_init): Decref result of
5352 PyObject_GetAttrString.
5353
634c58be
TT
53542013-05-20 Tom Tromey <tromey@redhat.com>
5355
5356 * python/py-threadevent.c (get_event_thread): Use
5357 CPYCHECKER_RETURNS_BORROWED_REF.
5358 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5359 New define.
5360 (pspace_to_pspace_object, objfile_to_objfile_object)
5361 (find_thread_object): Use it.
5362
62eec1a5
TT
53632013-05-20 Tom Tromey <tromey@redhat.com>
5364
5365 * python/py-arch.c (arch_object_type): Use
5366 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5367 * python/py-block.c (block_syms_iterator_object_type):
5368 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5369 * python/py-bpevent.c (breakpoint_event_object_type):
5370 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5371 * python/py-cmd.c (cmdpy_object_type): Use
5372 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5373 * python/py-continueevent.c (continue_event_object_type):
5374 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5375 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5376 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5377 * python/py-events.h (thread_event_object_type):
5378 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5379 * python/py-evtregistry.c (eventregistry_object_type): Use
5380 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5381 * python/py-exitedevent.c (exited_event_object_type):
5382 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5383 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5384 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5385 * python/py-function.c (fnpy_object_type): Use
5386 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5387 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5388 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5389 * python/py-infthread.c (thread_object_type): Use
5390 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5391 * python/py-lazy-string.c (lazy_string_object_type):
5392 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5393 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5394 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5395 * python/py-objfile.c (objfile_object_type): Use
5396 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5397 * python/py-param.c (parmpy_object_type):
5398 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5399 * python/py-progspace.c (pspace_object_type):
5400 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5401 * python/py-signalevent.c (signal_event_object_type):
5402 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5403 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5404 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5405 * python/py-type.c (type_object_type, field_object_type)
5406 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5407 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5408 define.
5409 (value_object_type, block_object_type, symbol_object_type)
5410 (event_object_type, stop_event_object_type, breakpoint_object_type)
5411 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5412
81ea8796
AT
54132013-05-20 Andreas Tobler <andreas@fgznet.ch>
5414
5415 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5416 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5417
a2ce51a0
DE
54182013-05-20 Doug Evans <dje@google.com>
5419
5420 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5421 For Fission.
5422 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5423 reading_dwo_directly.
5424 (struct signatured_type): New member dwo_unit.
5425 (struct die_reader_specs): New member comp_dir.
5426 (create_signatured_type_table_from_index): Use malloc for
5427 all_type_units instead of objfile's obstack.
5428 (create_all_type_units): Ditto.
5429 (fill_in_sig_entry_from_dwo_entry): New function.
5430 (add_type_unit): New function.
5431 (lookup_dwo_signatured_type): New function.
5432 (lookup_dwp_signatured_type): New function.
5433 (lookup_signatured_type): New arg cu. All callers updated.
5434 (init_cu_die_reader): Initialize comp_dir.
5435 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5436 Change assert of matching type signatures to call error on mismatch.
5437 (lookup_dwo_unit): Add assert.
5438 (init_tu_and_read_dwo_dies): New function.
5439 (init_cutu_and_read_dies): Call it.
5440 (build_type_unit_groups): Handle case of no type unit groups created.
5441 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5442 (lookup_dwo_cutu): Tweak complaint.
5443 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5444 (dwarf2_per_objfile_free): Free all_type_units.
5445
a25cd31f
JB
54462013-05-20 Joel Brobecker <brobecker@adacore.com>
5447
5448 * windows-nat.c (handle_unload_dll): Add missing empty line.
5449
4d804846
JB
54502013-05-20 Joel Brobecker <brobecker@adacore.com>
5451
5452 * dwarf2read.c (prototyped_function_p): New function.
5453 (read_subroutine_type): Use it.
5454
1c432e72
JB
54552013-05-20 Joel Brobecker <brobecker@adacore.com>
5456
5457 * rs6000-aix-tdep.c: De-indent some example code provided
5458 as a comment.
5459
4feebbdd
EBM
54602013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5461
5462 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5463 region is ok for a hardware watchpoint using the new ptrace interface
5464 on Power servers.
5465
7d0c9981
DE
54662013-05-17 Doug Evans <dje@google.com>
5467
5468 * NEWS: Mention new maintenance commands check-symtabs, and
5469 expand-symtabs, and renamed check-psymtabs.
5470 * psymtab.c (maintenance_check_psymtabs): Renamed from
5471 maintenance_check_symtabs. Only process already-expanded symbol
5472 tables.
5473 (_initialize_psymtab): Update.
5474 * symmisc.c (maintenance_check_symtabs): New function.
5475 (maintenance_expand_name_matcher): New function
5476 (maintenance_expand_file_matcher): New function
5477 (maintenance_expand_symtabs): New function.
5478 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5479 commands.
5480
6cbc7c3d
TT
54812013-05-17 Tom Tromey <tromey@redhat.com>
5482
5483 * python/py-inferior.c (infpy_read_memory): Don't call
5484 PyErr_SetString if PyObject_New fails.
5485 * python/py-frame.c (frame_info_to_frame_object): Don't call
5486 PyErr_SetString if PyObject_New fails.
5487
a48b32c0
L
54882013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5489
5490 * acinclude.m4: Add check for dlopen in libdl.
5491 * configure.ac: Ditto.
5492 * configure: Regenerate.
5493
3de661e6
PM
54942013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5495
5496 * frame.c (frame_stash): Convert to htab.
5497 (frame_addr_hash): New function.
5498 (frame_addr_hash_eq): New function.
5499 (frame_stash_create): Convert function to create
5500 a hash table.
5501 (frame_stash_add): Convert function to add an entry to a hash
5502 table.
5503 (frame_stash_find): Convert function to search the hash table.
5504 (frame_stash_invalidate): Convert function to empty the hash
5505 table.
5506 (get_frame_id): Only add to stash if a frame_id is created.
5507 (_initialize_frame): Call frame_stash_create.
5508
bb4168a9 55092013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5510
5511 * configure.ac: Ensure MIG is available when building for GNU Hurd
5512 hosts.
5513 * configure: Regenerate.
5514
d1be3247
JB
55152013-05-16 Joel Brobecker <brobecker@adacore.com>
5516
5517 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5518
b8fea896
JB
55192013-05-16 Joel Brobecker <brobecker@adacore.com>
5520
5521 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5522 all cleanups are done before returning from this function.
5523
af880d85
JB
55242013-05-15 Joel Brobecker <brobecker@adacore.com>
5525
5526 * utils.h: #include "exceptions.h".
5527 (enum errors): Remove partial declaration.
5528
356a5233
JB
55292013-05-15 Joel Brobecker <brobecker@adacore.com>
5530
5531 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5532 * gdbarch.h, gdbarch.c: Regenerate.
5533 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5534 handling.
5535
5536 * rs6000-aix-tdep.h: New file.
5537 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5538 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5539 "xml-utils.h".
5540 (struct field_info, struct ld_info_desc): New types.
5541 (ld_info32_desc, ld_info64_desc): New static constants.
5542 (struct ld_info): New type.
5543 (rs6000_aix_extract_ld_info): New function.
5544 (rs6000_aix_shared_library_to_xml): Likewise.
5545 (rs6000_aix_ld_info_to_xml): Likewise.
5546 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5547 (rs6000_aix_init_osabi): Add call to
5548 set_gdbarch_core_xfer_shared_libraries_aix.
5549 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5550 Remove "xml-utils.h" include.
5551 (LdInfo): Delete typedef.
5552 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5553 Delete macros.
5554 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5555 Adjust code accordingly.
5556 (rs6000_core_ldinfo): Delete, folded into
5557 rs6000_aix_core_xfer_shared_libraries_aix.
5558 (rs6000_xfer_shared_library): Delete.
5559 (rs6000_xfer_shared_libraries): Reimplement.
5560
742ce053
MM
55612013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5562
5563 * record.c (record_goto_cmdlist): New.
5564 (cmd_record_goto): Split into this ...
5565 (cmd_record_goto_begin): ... this
5566 (cmd_record_goto_end): ... and this.
5567 (_initialize_record): Change "record goto" to prefix command.
5568 Add commands for "record goto begin" and "record goto end".
5569 Add an alias for "record goto start" to "record goto begin".
5570
e93ba630
JK
55712013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5572
5573 * linespec.c (convert_linespec_to_sals): New comment for
5574 SOURCE_FILENAME assignment.
5575
5821aace
JK
55762013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5577
5578 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5579 internal_warning.
5580
a1b8c4cc
TT
55812013-05-14 Tom Tromey <tromey@redhat.com>
5582
5583 * eval.c (parse_and_eval_long): Make 'exp' const.
5584 * value.h (parse_and_eval_long): Update.
5585
23b3a2c3
TT
55862013-05-14 Tom Tromey <tromey@redhat.com>
5587
5588 * ui-file.c (gdb_fopen): Make arguments const.
5589 * ui-file.h (gdb_fopen): Make arguments const.
5590
ca623f82
TT
55912013-05-14 Tom Tromey <tromey@redhat.com>
5592
5593 * remote.c (remote_set_trace_notes): Make arguments const.
5594 * target.c (update_current_target): Update cast.
5595 * target.h (to_set_trace_notes): Make arguments const.
5596
503ebb2c
TT
55972013-05-14 Tom Tromey <tromey@redhat.com>
5598
5599 * go32-nat.c (go32_terminal_info): Make 'args' const.
5600 * inferior.h (child_terminal_info): Update.
5601 * inflow.c (child_terminal_info): Make 'args' const.
5602 * target.c (default_terminal_info): Make 'args' const.
5603 (debug_to_terminal_save_ours): Likewise.
5604 * target.h (struct target_ops) <to_terminal_info>: Make argument
5605 const.
5606
85e1311a
TT
56072013-05-13 Tom Tromey <tromey@redhat.com>
5608
5609 * gcore.c (create_gcore_bfd): Make 'filename' const.
5610 * gcore.h (create_gcore_bfd): Make 'filename' const.
5611 * record-full.c (record_full_save): Make 'recfilename' const.
5612 * target.c (target_save_record): Make 'filename' const.
5613 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5614 const.
5615 (target_save_record): Likewise.
5616
d62bfeaf
TT
56172013-05-13 Tom Tromey <tromey@redhat.com>
5618
f5aee5ee 5619 PR gdb/15338:
d62bfeaf
TT
5620 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5621 ranges section has been read.
5622
ac1ca910
TT
56232013-05-13 Tom Tromey <tromey@redhat.com>
5624
5625 PR exp/15364:
5626 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5627 STRUCTOP_PTR>: Return a not_lval value for
5628 EVAL_AVOID_SIDE_EFFECTS.
5629 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5630 for EVAL_AVOID_SIDE_EFFECTS.
5631
36d1c68c
JB
56322013-05-13 Joel Brobecker <brobecker@adacore.com>
5633
5634 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5635 floating point registers to register type before storing
5636 value.
5637 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5638 Likewise.
5639
21ff4686
TT
56402013-05-10 Joel Brobecker <brobecker@adacore.com>
5641 Tom Tromey <tromey@redhat.com>
5642
5643 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5644 New functions.
5645 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5646 Declare.
5647 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5648 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5649 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5650 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5651
d3685d60
TT
56522013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5653 Tom Tromey <tromey@redhat.com>
5654
5655 PR build/15414:
5656 * configure: Rebuild.
5657 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5658 with -Wno-format.
5659
eb9fe518
PA
56602013-05-10 Pedro Alves <palves@redhat.com>
5661
5662 * remote.c (_initialize_remote): Fix spelling of
5663 qXfer:traceframe-info:read packet in packet config command.
5664
9779ab84
PA
56652013-05-10 David Taylor <dtaylor@emc.com>
5666
5667 PR remote/15455
5668
5669 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5670 "QTro" at start of packet.
5671
060cfbef
JB
56722013-05-10 Joel Brobecker <brobecker@adacore.com>
5673
5674 * solib-aix.c (solib_aix_relocate_section_addresses):
5675 For the .bss section action, apply the same offset as
5676 the .data section.
5677
ab1c4e88
JB
56782013-05-10 Joel Brobecker <brobecker@adacore.com>
5679
5680 * solib-aix.c (solib_aix_relocate_section_addresses):
5681 Remove FIXME comment.
5682
c1357578
JB
56832013-05-10 Joel Brobecker <brobecker@adacore.com>
5684
5685 PR tdep/15420:
5686 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5687 New functions, directly copied from sparc-sol-thread.c.
5688 * sparc-sol-thread.c: Delete.
5689 * configure.ac: Remove code handling sparc-solaris-thread.c.
5690 * configure: Regenerate.
5691
1e611234
PM
56922013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5693
5694 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5695 filter logic.
5696 (backtrace_command): Add "no-filters" option parsing.
5697 (_initialize_stack): Alter help to reflect "no-filters" option.
5698 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5699 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5700 (py-frame.o): Add target
5701 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5702 filter files.
5703 * python/python.h: Add new frame filter constants, and flag enum.
5704 (apply_frame_filter): Add definition.
5705 * python/python.c (apply_frame_filter): New non-Python
5706 enabled function.
5707 * python/py-utils.c (py_xdecref): New function.
5708 (make_cleanup_py_xdecref): Ditto.
5709 * python/py-objfile.c: Declare frame_filters dictionary.
5710 (objfpy_dealloc): Add frame_filters dealloc.
5711 (objfpy_new): Initialize frame_filters attribute.
5712 (objfile_to_objfile_object): Ditto.
5713 (objfpy_get_frame_filters): New function.
5714 (objfpy_set_frame_filters): New function.
5715 * python/py-progspace.c: Declare frame_filters dictionary.
5716 (pspy_dealloc): Add frame_filters dealloc.
5717 (pspy_new): Initialize frame_filters attribute.
5718 (pspacee_to_pspace_object): Ditto.
5719 (pspy_get_frame_filters): New function.
5720 (pspy_set_frame_filters): New function.
5721 * python/py-framefilter.c: New file.
5722 * python/lib/gdb/command/frame_filters.py: New file.
5723 * python/lib/gdb/frames.py: New file.
5724 * python/lib/gdb/__init__.py: Initialize global frame_filters
5725 dictionary
5726 * python/lib/gdb/FrameDecorator.py: New file.
5727 * python/lib/gdb/FrameIterator.py: New file.
5728 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5729 * mi/mi-cmds.h: Declare.
5730 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5731 --no-frame-filter logic, and Python frame filter logic.
5732 (stack_enable_frame_filters): New function.
5733 (parse_no_frame_option): Ditto.
5734 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5735 filter logic.
5736 (mi_cmd_stack_list_locals): Ditto.
5737 (mi_cmd_stack_list_args): Ditto.
5738 (mi_cmd_stack_list_variables): Ditto.
5739 * NEWS: Add frame filter note.
5740
2cb9c859
DE
57412013-05-09 Doug Evans <dje@google.com>
5742
6bf667bb
DE
5743 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5744 All callers updated.
5745 (syms_from_objfile): Ditto. Make static.
5746 (symbol_file_add_with_addrs): Renamed from
5747 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5748 num_offsets. All callers updated.
5749 * symfile.h (syms_from_objfile): Delete.
5750
2cb9c859
DE
5751 * symfile.c (decrement_reading_symtab): Add assert.
5752 (increment_reading_symtab): Ditto.
5753
40aea477
JB
57542013-05-09 Joel Brobecker <brobecker@adacore.com>
5755
5756 * source.c (forward_search_command): Replace call to getc
5757 by call to fgetc.
5758 (reverse_search_command): Likewise.
5759
680d1742
DE
57602013-05-08 Doug Evans <dje@google.com>
5761
5762 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5763 matching test.
5764
17e760ae
JB
57652013-05-08 Joel Brobecker <brobecker@adacore.com>
5766
5767 * sol-thread.c (info_cb): Factorize the code a little.
5768
c0f5f490
JB
57692013-05-08 Joel Brobecker <brobecker@adacore.com>
5770
5771 * sol-thread.c (info_cb): Rework the output of the "maintenance
5772 info sol-threads" command a bit.
5773
5d74e061
JB
57742013-05-08 Joel Brobecker <brobecker@adacore.com>
5775
5776 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5777 Replace ti.ti_startfunc by ti.ti_pc.
5778
814a3ff7
JB
57792013-05-08 Joel Brobecker <brobecker@adacore.com>
5780
5781 * solib-aix.c (solib_aix_free_library_list): New function
5782 for the case where HAVE_LIBEXPAT is not defined.
5783
58ce7251
SDJ
57842013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5785
5786 PR breakpoints/15413:
5787 * breakpoint.c (condition_completer): Simplify the code to
5788 disconsider multiple locations of breakpoints when completing the
5789 "condition" command.
5790
be8b1ea6
PM
57912013-05-07 Pierre Muller <muller@sourceware.org>
5792
5793 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5794 instead of <sys/wait.h>.
5795
1e52bda6
PM
57962013-05-07 Pierre Muller <muller@sourceware.org>
5797
5798 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5799 trailing new line from warning message.
5800
27fd0c6b
PM
58012013-05-07 Pierre Muller <muller@sourceware.org>
5802
5803 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5804 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5805
e228ac87
JB
58062013-05-07 Joel Brobecker <brobecker@adacore.com>
5807
5808 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5809 error message (ARI fix).
5810
58112013-05-07 Joel Brobecker <brobecker@adacore.com>
5812
5813 * features/library-list-aix.dtd: Replace library-list by
5814 library-list-aix.
5815 * rs6000-nat.c: Replace library-list by library-list-aix
5816 throughout.
5817 * solib-aix.c: Likewise.
5818
58192013-05-07 Joel Brobecker <brobecker@adacore.com>
5820
5821 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5822 Renames TARGET_OBJECT_AIX_LIBRARIES.
5823 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5824 TARGET_OBJECT_LIBRARIES_AIX throughout.
5825 * solib-aix.c: Likwise.
5826
26a4dda9
YQ
58272013-05-07 Yao Qi <yao@codesourcery.com>
5828
5829 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5830 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5831
3582629f
YQ
58322013-05-07 Yao Qi <yao@codesourcery.com>
5833
5834 * solib-dsbt.c (enable_break): Declare.
5835 (dsbt_current_sos): Remove call to enable_break2.
5836 (enable_break2): Rename to enable_break. Set solib breakpoint
5837 on '_dl_debug_state'.
5838 (enable_break): Remove.
5839
aacbb8a5
LM
58402013-05-07 Luis Machado <lgustavo@codesourcery.com>
5841
5842 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5843 debug state prior to replicating existing hardware watchpoints or
5844 breakpoints.
5845
0c013353
JK
58462013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5847
5848 * gcore.c (gcore_create_callback): Ignore sections with
5849 separate_debug_objfile_backlink != NULL.
5850
a1217d97
SL
58512013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5852 Andrew Jenner <andrew@codesourcery.com>
5853 Chung-Lin Tang <cltang@codesourcery.com>
5854 Julian Brown <julian@codesourcery.com>
5855
5856 Based on the nios2-elf port from Altera Corporation.
5857
5858 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5859 nios2-linux-tdep.o.
5860 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5861 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5862 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5863 * nios2-tdep.h: New.
5864 * nios2-tdep.c: New.
5865 * nios2-linux-tdep.c: New.
5866 * features/Makefile (WHICH): Add nios2-linux.
5867 (nios2-linux-expedite): Set.
5868 * features/nios2-cpu.xml: New.
5869 * features/nios2.xml: New.
5870 * features/nios2-linux.xml: New.
5871 * features/nios2.c: New (autogenerated).
5872 * features/nios2-linux.c: New (autogenerated).
5873 * regformats/nios2-linux.dat: New (autogenerated).
5874 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5875 and commands.
5876
0892cb63
DE
58772013-05-06 Doug Evans <dje@google.com>
5878
3b7bacac
DE
5879 * symfile.c: Whitespace cleanup.
5880
0892cb63
DE
5881 * solist.h (struct target_so_ops): New member clear_so.
5882 * solib-svr4.c (svr4_clear_so): New function.
5883 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5884 * solib.c (clear_so): Renamed from free_so_symbols.
5885 All callers updated. Call target clear_so if it exists.
5886
40501e00
TT
58872013-05-06 Tom Tromey <tromey@redhat.com>
5888
5889 * ada-lang.c (ada_value_primitive_packed_val): Don't
5890 call value_incref.
5891 * value.c (set_value_parent): Incref the new parent and decref
5892 the old parent.
5893 (value_copy, value_primitive_field): Use set_value_parent.
5894
b6807d98
TT
58952013-05-06 Tom Tromey <tromey@redhat.com>
5896
5897 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5898 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5899 if needed.
5900 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5901 * dwarf2read.c (write_constant_as_bytes)
5902 (dwarf2_fetch_constant_bytes): New functions.
5903
3aef2284
TT
59042013-05-06 Tom Tromey <tromey@redhat.com>
5905
5906 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5907 parameters.
5908 (dwarf2_const_value_attr): Update.
5909
66f65e2b
TT
59102013-05-06 Tom Tromey <tromey@redhat.com>
5911
5912 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5913 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5914 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5915 Remove declaration.
5916
7919a973
TT
59172013-05-06 Tom Tromey <tromey@redhat.com>
5918
5919 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5920 objfile's obstack.
5921
a7bfba49
DE
59222013-05-06 Doug Evans <dje@google.com>
5923
3189cb12
DE
5924 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5925 * stabsread.h (process_one_symbol): Update declaration.
5926 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5927 * elfread.c (elf_symfile_relocate_probe): Ditto.
5928 * psymtab.c (relocate_psymtabs): Ditto.
5929 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5930 (objfile_relocate): Ditto.
5931 * objfiles.h (objfile_relocate): Update declaration.
5932 * symfile.c (relative_addr_info_to_section_offsets): Constify
5933 addrs parameter.
5934 (default_symfile_offsets): Ditto.
5935 (syms_from_objfile_1): Constify offsets parameter.
5936 (syms_from_objfile): Ditto.
5937 (symbol_file_add_with_addrs_or_offsets): Ditto.
5938 (symfile_map_offsets_to_segments): Constify data parameter.
5939 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5940 delta parameters of member relocate.
5941 (struct sym_probe_fns): Constify new_offsets,
5942 delta parameters of member sym_relocate_probe.
5943 (struct sym_fns): Constify section_addr_info parameter of member
5944 sym_offsets.
5945 (relative_addr_info_to_section_offsets): Update declaration.
5946 (default_symfile_offsets): Ditto.
5947 (syms_from_objfile): Ditto.
5948 (symfile_map_offsets_to_segments): Ditto.
5949
a7bfba49
DE
5950 * symfile.c (syms_from_objfile_1): Use correct section count when
5951 objfile->sf == NULL.
5952
5f8e0b8f
MF
59532013-05-06 Mike Frysinger <vapier@gentoo.org>
5954
5955 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5956
ea52d893
DE
59572013-05-06 Doug Evans <dje@google.com>
5958
5959 * psympriv.h (struct partial_symtab): Augment comment for member
5960 section_offsets.
5961
4d1eb6b4
JB
59622013-05-06 Joel Brobecker <brobecker@adacore.com>
5963
5964 Reimplement shared library support on ppc-aix...
5965 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5966 * features/library-list-aix.dtd: New file.
5967 * solib-aix.h, solib-aix.c: New file.
5968 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5969 (rs6000_find_toc_address_hook): Delete.
5970 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5971 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5972 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5973 "xml-utils.h".
5974 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5975 (vmap_symtab, fixup_breakpoints): Delete.
5976 (rs6000_xfer_shared_libraries): New function.
5977 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5978 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5979 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5980 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5981 (rs6000_xfer_shared_library): New function.
5982 (find_toc_address): Delete.
5983 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5984 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5985 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5986 before creating minimal symbol. Adjust function description
5987 accordingly.
5988 (scan_xcoff_symtab): Replace call to
5989 prim_record_minimal_symbol_and_info by call to
5990 record_minimal_symbol.
5991 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5992 around default_symfile_offsets.
5993 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5994 powerpc-aix targets.
5995 * config/rs6000/nm-rs6000.h: Delete.
5996 * config/powerpc/aix.mh (NAT_FILE): Delete.
5997 (NATDEPFILES): Remove xcoffsolib.o.
5998 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5999 (ALL_TARGET_OBS): Add solib-aix.o.
6000 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6001 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6002 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6003 * xcoffsolib.h, xcoffsolib.c: Delete.
6004
6005 * solib.c (reload_shared_libraries): Remove reference to
6006 SOLIB_CREATE_INFERIOR_HOOK.
6007 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6008 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6009 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6010 comment.
6011 * corelow.c (deprecated_core_resize_section_table): Delete.
6012 * exec.c: Remove include of xcoffsolib.h".
6013 (map_vmap, vmap): Delete.
6014 (exec_close_1): Remove references to vmap.
6015 (exec_file_attach): Remove vmap handling code, and reference
6016 to DEPRECATED_IBM6000_TARGET.
6017 (bfdsec_to_vmap): Delete.
6018 (exec_files_info): Remove block of code handling VMAP.
6019 * infcmd.c (post_create_inferior): Remove reference to
6020 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6021 * infrun.c (follow_exec): Remove reference to
6022 SOLIB_CREATE_INFERIOR_HOOK.
6023 * stack.c (print_frame): Remove reference to PC_SOLIB.
6024 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6025 (dsbt_relocate_main_executable): Likewise.
6026 * solib-frv.c (frv_current_sos): Likewise.
6027
0c4f667c
JB
60282013-05-06 Joel Brobecker <brobecker@adacore.com>
6029
6030 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6031 to target_write_memory and target_read_memory.
6032
726ce67c
JB
60332013-05-06 Joel Brobecker <brobecker@adacore.com>
6034
6035 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6036 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6037
c8c9911f
JB
60382013-05-06 Joel Brobecker <brobecker@adacore.com>
6039
6040 * darwin-nat.c: Replace all "%x" instances in format strings
6041 into "0x%x" throughout.
6042
fda184b6
JB
60432013-05-06 Joel Brobecker <brobecker@adacore.com>
6044
6045 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6046 gdb_assert by call to MACH_CHECK_ERROR.
6047 (darwin_attach_pid): Raise an error rather than a failed
6048 assertion when various system calls failed. Report a warning
6049 instead of raising a failed assertion when PREV_NOT is not NULL
6050 after call to mach_port_request_notification.
6051 (darwin_ptrace_me): Raise an error rather than a failed
6052 assertion when read returns nonzero.
6053
d1d69afb
JB
60542013-05-06 Joel Brobecker <brobecker@adacore.com>
6055
6056 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6057
dc90b24d
JK
60582013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6059
6060 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6061
faab9922
JK
60622013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6063
6064 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6065 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6066 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6067 a stale cleanup. Fix double free of NAME.
6068
e0ea48a0
EZ
60692013-05-04 Eli Zaretskii <eliz@gnu.org>
6070
6071 * windows-nat.c (windows_delete_thread): Accept an additional
6072 argument, the thread's exit code, and announce thread death when
6073 print_thread_events is non-zero and we are deleting a thread that
6074 is not the main thread.
6075 (get_windows_debug_event): Pass thread exit code to
6076 windows_delete_thread.
6077
83b2706a
KB
60782013-05-03 Kevin Buettner <kevinb@redhat.com>
6079
6080 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6081 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6082 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6083 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6084 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6085 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6086 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6087 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6088 (gdbarch_tdep): New struct.
6089 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6090 E_NUM_REGS.
6091 (v850e3v5_register_name): New function.
6092 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6093 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6094 code handling the struct return conventions for the RH850 ABI.
6095 Update all callers.
6096 (v850_eight_byte_align_p): New function.
6097 (v850_push_call_dummy): Push structs by value, not by reference
6098 for the RH850 ABI. Add support for eight byte alignment.
6099 (v850_dbtrap_breakpoint_from_pc): New function.
6100 (v850_gdbarch_init): Add ABI detection code. Register
6101 v850e3v5_register_name for the v850e3v5 architecture. Set the
6102 number of registers for v850e3v5. Register
6103 v850_dbtrap_breakpoint_from_pc as appropriate.
6104 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6105
d445b2f6
DE
61062013-05-03 Doug Evans <dje@google.com>
6107
6108 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6109 of bfd_count_sections.
6110 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6111 * symfile.c (default_symfile_offsets): Ditto.
6112 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6113 one entry, not bfd_count_sections entries.
6114
b3ce41ea
KB
61152013-05-03 Kevin Buettner <kevinb@redhat.com>
6116
6117 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6118 `save' and `restore' register groups. Don't include SPL
6119 or SPH in these groups.
6120 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6121 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6122 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6123 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6124 dwarf2_append_unwinders().
6125
96f7d3f1
PW
61262013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6127
6128 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6129 ignore SIGINT and SIGTRAP in case these internal signals are
6130 caught explicitely.
6131
b9dd1947
JB
61322013-05-01 Joel Brobecker <brobecker@adacore.com>
6133
6134 * darwin-nat.c (darwin_read_write_inferior): Change types
6135 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6136 of copy_count to "mach_msg_type_number_t".
6137 (darwin_read_dyld_info): Change type of parameter
6138 rdaddr to "gdb_byte *".
6139
4ca18a63
JB
61402013-05-01 Joel Brobecker <brobecker@adacore.com>
6141
6142 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6143 of &info->load_map from "char *" to "gdb_byte *".
6144
2b692d32
JB
61452013-05-01 Joel Brobecker <brobecker@adacore.com>
6146
6147 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6148 from "char *" to "gdb_byte *".
6149 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6150
a98c29a0
DE
61512013-04-30 Doug Evans <dje@google.com>
6152
6a506a2d
DE
6153 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6154 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6155 DWO stub. If DWO isn't found, just use stub.
6156 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6157
a98c29a0
DE
6158 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6159 calling init_cutu_and_read_dies.
6160
f92b06da
WT
61612013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6162
6163 * target-descriptions.c (maint_print_c_tdesc_cmd):
6164 Add case to parse structures as register types and
6165 bitfields.
6166
95eebdcc
WT
61672013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6168
6169 * MAINTAINERS (Write After Approval): Add myself to the list.
6170
019c1128
JB
61712013-04-30 Joel Brobecker <brobecker@adacore.com>
6172
6173 * sol-thread.c (rw_common): Change type of parameter "buf"
6174 to "gdb_byte *".
6175 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6176 rw_common to "gdb_byte *" instead of "char *".
6177
5812197c
JB
61782013-04-30 Joel Brobecker <brobecker@adacore.com>
6179
6180 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6181 of local variable msym to const struct bound_minimal_symbol.
6182 Adjust use accordingly.
6183 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6184
ecccb813
TS
61852013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6186
6187 * i386gnu-nat.c (CREG_OFFSET): New macro.
6188 (creg_offset): New array.
6189 (CREG_ADDR): Use creg_offset instead of reg_offset.
6190
f1d02dd4 61912013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6192
6193 * mep-tdep.c (mep_write_pc): Delete.
6194 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6195 Add call to set_gdbarch_pc_regnum.
6196
f1d02dd4 61972013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6198
6199 * common/filestuff.c: Replace #include <dirent.h> by
6200 #include "gdb_dirent.h".
6201
f1d02dd4 62022013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6203
6204 * common/filestuff.c: Replace #include <sys/stat.h> by
6205 #include "gdb_stat.h".
6206
b385a60d
PM
62072013-04-29 Pierre Muller <muller@sourceware.org>
6208
6209 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6210 editCase function rule.
6211 (get_DW_AT_signature_type): Likewise.
6212
d27b54ad
JB
62132013-04-29 Joel Brobecker <brobecker@adacore.com>
6214
6215 * m32r-tdep.c (m32r_write_pc): Delete.
6216 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6217 Add call to set_gdbarch_pc_regnum.
6218
47d21dc5
PM
62192013-04-29 Pierre Muller <muller@sourceware.org>
6220
6221 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6222
9056882e
JB
62232013-04-29 Joel Brobecker <brobecker@adacore.com>
6224
6225 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6226
7ee4732a
YQ
62272013-04-28 Yao Qi <yao@codesourcery.com>
6228
6229 * solib-dsbt.c (fetch_loadmap): Re-indent.
6230 (displacement_from_map, enable_break2): Likewise.
6231 (dsbt_relocate_section_addresses): Likewise.
6232
2260af53 62332013-04-26 Joel Brobecker <brobecker@adacore.com>
6234
6235 GDB 7.6 released.
6236
ff546935
TT
62372013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6238
6239 PR corefiles/14983:
6240 * dwarf2read.c (process_full_comp_unit): Always create a static
6241 block.
6242
40fb6c5e
HZ
62432013-04-25 Hui Zhu <hui@codesourcery.com>
6244
6245 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6246 to loc->cmd_bytecode.
6247
74e04d1c
DE
62482013-04-24 Doug Evans <dje@google.com>
6249
6250 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6251
3cf62c1d
KS
62522013-04-22 Keith Seitz <keiths@redhat.com>
6253
6254 * tracepoint.c (trace_save): Call the writer's start method.
6255
bf9e4d0c
MB
62562013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6257
6258 PR gdb/10462
6259 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6260 before argument.
6261
5d71132c
TT
62622013-04-23 Tom Tromey <tromey@redhat.com>
6263
6264 * common/filestuff.c: Check USE_WIN32API before including
6265 sys/socket.h.
6266 (HAVE_F_GETFD): New define.
6267 (mark_cloexec): Check HAVE_F_GETFD.
6268 (gdb_open_cloexec): Change 'mode' to unsigned long.
6269 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6270 (gdb_pipe_cloexec): Check HAVE_PIPE.
6271 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6272 long.
6273
a11cfd87
HZ
62742013-04-23 Hui Zhu <hui@codesourcery.com>
6275
6276 PR gdb/15293
a11cfd87
HZ
6277 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6278
2d9442cc
HZ
62792013-04-23 Hui Zhu <hui@codesourcery.com>
6280
6281 PR gdb/15165
2d9442cc
HZ
6282 * breakpoint.c (dprintf_print_recreate): New.
6283 (save_breakpoints): Let it not save dprintf commands.
6284 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6285
614c279d
TT
62862013-04-22 Tom Tromey <tromey@redhat.com>
6287
6288 PR gdb/7912:
6289 * Makefile.in (SFILES): Add filestuff.c
6290 (COMMON_OBS): Add filestuff.o.
6291 (filestuff.o): New target.
6292 * auto-load.c (auto_load_objfile_script_1): Use
6293 gdb_fopen_cloexec.
6294 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6295 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6296 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6297 * common/agent.c (gdb_connect_sync_socket): Use
6298 gdb_socket_cloexec.
6299 * common/filestuff.c: New file.
6300 * common/filestuff.h: New file.
6301 * common/linux-osdata.c (linux_common_core_of_thread)
6302 (command_from_pid, commandline_from_pid, print_source_lines)
6303 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6304 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6305 gdb_fopen_cloexec.
6306 * common/linux-procfs.c (linux_proc_get_int)
6307 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6308 * config.in, configure: Rebuild.
6309 * configure.ac: Don't check for sys/socket.h. Check for
6310 fdwalk, pipe2.
6311 * corelow.c (core_open): Use gdb_open_cloexec.
6312 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6313 * fork-child.c (fork_inferior): Call close_most_fds.
6314 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6315 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6316 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6317 Use gdb_fopen_cloexec.
6318 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6319 gdb_open_cloexec.
6320 (linux_async_pipe): Use gdb_pipe_cloexec.
6321 * remote-fileio.c (remote_fileio_func_open): Use
6322 gdb_open_cloexec.
6323 * remote.c (remote_file_put, remote_file_get): Use
6324 gdb_fopen_cloexec.
6325 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6326 close_most_fds.
6327 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6328 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6329 * solib.c (solib_find): Use gdb_open_cloexec.
6330 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6331 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6332 (tfile_open): Use gdb_open_cloexec.
6333 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6334 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6335 * xml-support.c (xml_fetch_content_from_file): Use
6336 gdb_fopen_cloexec.
6337 * main.c (captured_main): Call notice_open_fds.
6338
5fda2332
EBM
63392013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6340
6341 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6342 'char *' to 'gdb_byte *'.
6343 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6344 'gdb_byte'.
6345
eb6c553b
YQ
63462013-04-22 Yao Qi <yao@codesourcery.com>
6347
6348 * infrun.c: Fix typo in comment.
6349
9991b207
SDJ
63502013-04-22 Andrew Haley <aph@redhat.com>
6351
6352 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6353 instead of "long".
6354
8b4833e3
YQ
63552013-04-20 Yao Qi <yao@codesourcery.com>
6356
6357 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6358 'char *' to 'gdb_byte *'. Cast the return value of
6359 'bt_ctf_get_char_array' to 'gdb_byte *'.
6360
bd3f3b55
PA
63612013-04-19 Pedro Alves <palves@redhat.com>
6362
6363 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6364 -Wpointer-sign.
6365 * configure: Regenerate.
6366
c49e7f76
PA
63672013-04-19 Pedro Alves <palves@redhat.com>
6368
6369 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6370 'void *'.
6371
12ff8552
PA
63722013-04-19 Pedro Alves <palves@redhat.com>
6373
6374 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6375 Change type of 'myaddr' parameter to gdb_byte pointer.
6376 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6377 to 'long long' pointer instead of to 'unsigned long long'.
6378 (monitor_write_memory_block, monitor_read_memory_single)
6379 (monitor_read_memory): Change type of 'myaddr' parameter to
6380 gdb_byte pointer.
6381
9c37696b
PA
63822013-04-19 Pedro Alves <palves@redhat.com>
6383
6384 * record.c (validate_history_size): Make parameter 'setting'
6385 unsigned.
6386
a398505b
PA
63872013-04-19 Pedro Alves <palves@redhat.com>
6388
6389 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6390 to 'gdb_byte *'.
6391
9f8afa72
PA
63922013-04-19 Pedro Alves <palves@redhat.com>
6393
6394 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6395 local to int.
6396
c714b426
PA
63972013-04-19 Pedro Alves <palves@redhat.com>
6398
6399 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6400 * ada-tasks.c (read_fat_string_value): Likewise.
6401
507a579c
PA
64022013-04-19 Pedro Alves <palves@redhat.com>
6403
6404 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6405 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6406 'offset', and adjust.
6407
f9d83a0b
PA
64082013-04-19 Pedro Alves <palves@redhat.com>
6409
6410 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6411 (read_index_from_section): Add cast to 'char *'.
6412
745eb4fd
PA
64132013-04-19 Pedro Alves <palves@redhat.com>
6414
6415 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6416
db5be46f
PA
64172013-04-19 Pedro Alves <palves@redhat.com>
6418
6419 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6420
0f928d68
PA
64212013-04-19 Pedro Alves <palves@redhat.com>
6422
6423 * record-full.c (record_full_get_bookmark): Change local 'ret'
6424 type to char * and add cast to gdb_byte *.
6425 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6426 string.
6427 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6428
89f6d837
PA
64292013-04-19 Pedro Alves <palves@redhat.com>
6430
6431 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6432 * python/py-prettyprint.c (print_string_repr): Change type of
6433 'output' local to char *. Add cast to gdb_byte * in
6434 LA_PRINT_STRING call.
6435 (print_children): Change type of 'output' local to char *.
6436 * python/py-value.c (valpy_string): Add cast to const char * in
6437 PyUnicode_Decode call.
6438
ce6ec7d8
PA
64392013-04-19 Pedro Alves <palves@redhat.com>
6440
6441 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6442 and change its type to 'const char *'. Adjust.
6443 (mips_send_packet): Add cast to 'char *', and remove cast to
6444 'unsigned char *'.
6445 (mips_receive_packet): Remove cast to 'unsigned char *'.
6446 (mips_load_srec): Use bfd_byte.
6447 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6448 (pmon_checkset): Make 'value' parameter unsigned.
6449
fda0389f
PA
64502013-04-19 Pedro Alves <palves@redhat.com>
6451
6452 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6453
bc20a4af
PA
64542013-04-19 Pedro Alves <palves@redhat.com>
6455
6456 * remote.c (remote_write_bytes_aux, compare_sections_command)
6457 (remote_read_qxfer)
6458 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6459 (remote_hostio_readlink, remote_bfd_iovec_pread)
6460 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6461 binary buffer, and char when buffer is used as string.
6462 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6463 (trace_save, tfile_open, traceframe_walk_blocks)
6464 (tfile_fetch_registers): Likewise.
6465
c628b528
PA
64662013-04-19 Pedro Alves <palves@redhat.com>
6467
6468 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6469 buffer and size_t size. Adjust.
6470 * ser-base.h (ser_base_write): Adjust.
6471 * ser-go32.c (cnts): Change type to size_t.
6472 (dos_write): Change prototype -- take 'void *'
6473 buffer and size_t size. Adjust.
6474 (dos_info): Print elements of 'cnts' as unsigned long.
6475 * serial.c (serial_write): Likewise.
6476 * serial.h (serial_write): Adjust.
6477 (struct serial_ops) <write>: Change prototype -- take 'void *'
6478 buffer and size_t size. Adjust.
6479
51a5cd90
PA
64802013-04-19 Pedro Alves <palves@redhat.com>
6481
6482 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6483 gdb_byte *.
6484 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6485
a9933661
PA
64862013-04-19 Pedro Alves <palves@redhat.com>
6487
6488 * alpha-tdep.c (alpha_extract_return_value): Use
6489 regcache_cooked_read_unsigned to read 'v0'.
6490
19afdd07
PA
64912013-04-19 Pedro Alves <palves@redhat.com>
6492
6493 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6494 parameters 'at', 'as' and 'offset' to uint32_t.
6495
96b32e50
PA
64962013-04-19 Pedro Alves <palves@redhat.com>
6497
6498 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6499 'is64' to signed 'int'.
6500
eb1bd1fb
PA
65012013-04-19 Pedro Alves <palves@redhat.com>
6502
6503 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6504 parameter to int *.
6505
463920bf
PA
65062013-04-19 Pedro Alves <palves@redhat.com>
6507
6508 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6509 'insnbuf' buffer type to unsigned int[].
6510
70242eb1
PA
65112013-04-19 Pedro Alves <palves@redhat.com>
6512
6513 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6514
9d1dd0e2
PA
65152013-04-19 Pedro Alves <palves@redhat.com>
6516
6517 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6518 unsigned long *.
6519
44096aee
PA
65202013-04-19 Pedro Alves <palves@redhat.com>
6521
6522 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6523 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6524 UINT_MAX.
6525 * mips-tdep.c (heuristic_fence_post): Change type to int.
6526 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6527
e4286e57
PA
65282013-04-19 Pedro Alves <palves@redhat.com>
6529
6530 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6531 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6532 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6533
001f13d8
PA
65342013-04-19 Pedro Alves <palves@redhat.com>
6535
6536 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6537 it to get a string view of the byte buffer.
6538 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6539 type to gdb_byte *. Adjust.
6540 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6541 Change local to char *.
6542 * solib-darwin.c (find_program_interpreter): Change return type to
6543 char *. Adjust.
6544 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6545 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6546 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6547 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6548 * solib-svr4.c (find_program_interpreter): Change return type to
6549 char *. Adjust.
6550 (enable_break): Change local 'interp_name' to char *.
6551 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6552 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6553 (spu_pseudo_register_write_spu): Use char for string buffer.
6554 Adjust.
6555 (info_spu_event_command, info_spu_signal_command): Add casts to
6556 'char *'.
6557
948f8e3d
PA
65582013-04-19 Pedro Alves <palves@redhat.com>
6559
6560 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6561 gdb_byte[].
6562 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6563 * ada-lang.c (ada_value_assign): Use gdb_byte.
6564 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6565 (alphanbsd_sigtramp_offset): Use gdb_byte.
6566 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6567 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6568 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6569 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6570 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6571 * arm-tdep.c (arm_stub_unwind_sniffer)
6572 (arm_displaced_init_closure): Use gdb_byte.
6573 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6574 (arm_default_thumb_le_breakpoint)
6575 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6576 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6577 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6578 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6579 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6580 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6581 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6582 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6583 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6584 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6585 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6586 (cris_store_return_value, cris_extract_return_value): Use
6587 gdb_byte.
6588 (constraint): Change type of parameter to char * from signed
6589 char*. Use gdb_byte.
6590 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6591 of local buffer to gdb_byte *.
6592 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6593 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6594 (add_address_entry): Change type of local buffer to gdb_byte[].
6595 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6596 (frv_push_dummy_call): Use gdb_byte.
6597 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6598 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6599 (hppa_hpux_supply_save_state): Use gdb_byte.
6600 * hppa-tdep.c (hppa32_push_dummy_call)
6601 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6602 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6603 (slotN_contents, replace_slotN_contents): Change type of parameter
6604 to gdb_byte *.
6605 (fetch_instruction, ia64_pseudo_register_write)
6606 (ia64_register_to_value, ia64_value_to_register)
6607 (ia64_extract_return_value, ia64_store_return_value)
6608 (ia64_push_dummy_call): Use gdb_byte.
6609 * m32c-tdep.c (m32c_return_value): Remove cast.
6610 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6611 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6612 gdb_byte.
6613 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6614 * mn10300-tdep.c (mn10300_store_return_value)
6615 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6616 gdb_byte.
6617 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6618 (moxie_process_record): Remove casts.
6619 * ppc-ravenscar-thread.c (supply_register_at_address)
6620 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6621 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6622 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6623 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6624 * remote.c (compare_sections_command): Use gdb_byte.
6625 * score-tdep.c (score7_free_memblock): Change type of parameter to
6626 gdb_byte *.
6627 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6628 gdb_byte *. Use gdb_byte.
6629 (sh_push_dummy_call_fpu): Use gdb_byte.
6630 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6631 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6632 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6633 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6634 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6635 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6636 (sh64_store_return_value, sh64_register_convert_to_virtual):
6637 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6638 (sh64_pseudo_register_write): Use gdb_byte.
6639 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6640 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6641 buffer.
6642 (irix_current_sos): Use gdb_byte.
6643 * solib-som.c (som_current_sos): Use gdb_byte.
6644 * sparc-ravenscar-thread.c (supply_register_at_address)
6645 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6646 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6647 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6648 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6649 'gdb_byte *'.
6650 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6651 'gdb_byte *'.
6652 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6653 * xstormy16-tdep.c (xstormy16_extract_return_value)
6654 (xstormy16_store_return_value): Change parameter type to
6655 'gdb_byte *'. Adjust.
6656 (xstormy16_push_dummy_call): Use gdb_byte.
6657 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6658 (call0_analyze_prologue, execute_code): Use gdb_byte.
6659
433730c9
PA
66602013-04-19 Vladimir Kargov <kargov@gmail.com>
6661 Pedro Alves <palves@redhat.com>
6662
6663 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6664 value contents.
6665
ac9ec31b
DE
66662013-04-17 Doug Evans <dje@google.com>
6667
6668 * dwarf2read.c (struct signatured_type): New member type.
6669 (struct attribute): Replace member signatured_type with signature.
6670 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6671 (read_call_site_scope): Call follow_die_ref instead of
6672 follow_die_ref_or_sig.
6673 (read_structure_type): Rewrite handling of signatured types.
6674 (read_enumeration_type): Ditto.
6675 (read_attribute_value): Update.
6676 (build_error_marker_type): New function.
6677 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6678 Don't call error for bad types, just build an error marker type.
6679 (dump_die_shallow): Update.
6680 (follow_die_sig_1): Renamed from follow_die_sig.
6681 Don't call error for bad types, instead return NULL.
6682 (follow_die_sig): New function.
6683 (get_signatured_type, get_DW_AT_signature_type): New functions.
6684
e546e8bb
YZ
66852013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6686
6687 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6688 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6689 function.
e546e8bb 6690
ab116149
YQ
66912013-04-17 Yao Qi <yao@codesourcery.com>
6692
6693 * top.c (print_gdb_configuration): Print configure-time
6694 parameter on using libbabeltrace or not.
6695
488a42b8
PA
66962013-04-16 Pedro Alves <palves@redhat.com>
6697
6698 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6699
f5fb825b
PA
67002013-04-16 Pedro Alves <palves@redhat.com>
6701
85d494ea 6702 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6703 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6704
e1154999
PA
67052013-04-16 Pedro Alves <palves@redhat.com>
6706
6707 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6708 * common/glibc_thread_db.h: ... this new file ...
6709 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6710
e3b50a7f
PA
67112013-04-16 Will Newton <will.newton@gmail.com>
6712 Pedro Alves <palves@redhat.com>
6713
6714 PR build/11881
6715
6716 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6717 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6718 HAVE_THREAD_DB_H.
6719
1c2e4450
PA
67202013-04-16 Pedro Alves <palves@redhat.com>
6721 Eli Zaretskii <eliz@gnu.org>
6722
6723 * NEWS: Mention "set foo unlimited".
6724
4031ecc5
DE
67252013-04-15 Doug Evans <dje@google.com>
6726
19c3d4c9
DE
6727 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6728 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6729 (create_dwo_cu_reader): Renamed from
6730 create_dwo_debug_info_hash_table_reader.
6731 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6732 Remove support for multiple CUs in a DWO file.
6733 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6734
4031ecc5
DE
6735 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6736 instead of phex.
6737 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6738 (create_dwo_in_dwp): Ditto.
6739
b340913d
TT
67402013-04-15 Tom Tromey <tromey@redhat.com>
6741
6742 * NEWS: Move recent entries into "since 7.6" section.
6743
cc16e6c9
TT
67442013-04-15 Tom Tromey <tromey@redhat.com>
6745
6746 PR c++/13588:
6747 * NEWS: Update.
6748 * break-catch-throw.c (struct exception_catchpoint)
6749 <exception_rx, pattern>: New fields.
6750 (fetch_probe_arguments, dtor_exception_catchpoint)
6751 (check_status_exception_catchpoint)
6752 (print_one_detail_exception_catchpoint): New functions.
6753 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6754 Compile regular expression if needed.
6755 (extract_exception_regexp): New function.
6756 (catch_exception_command_1): Use extract_exception_regexp.
6757 (compute_exception): Use fetch_probe_arguments.
6758 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6759 and check_status fields.
6760 * cp-abi.c (cplus_typename_from_type_info): New function.
6761 * cp-abi.h (cplus_typename_from_type_info): Declare.
6762 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6763 * gdb_regex.h (compile_rx_or_error): Declare.
6764 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6765 comment.
6766 (init_gnuv3_ops): Set get_type_from_type_info field.
6767 * probe.c (compile_rx_or_error): Move...
6768 * utils.c (compile_rx_or_error): ... here.
6769
72f1fe8a
TT
67702013-04-15 Tom Tromey <tromey@redhat.com>
6771
6772 PR c++/15176:
6773 * NEWS: Update.
6774 * break-catch-throw.c (compute_exception): New function.
6775 (exception_funcs): New global.
6776 (_initialize_break_catch_throw): Create $_exception.
6777 * cp-abi.c (cplus_type_from_type_info): New function.
6778 * cp-abi.h (cplus_type_from_type_info): Declare.
6779 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6780 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6781 (gnuv3_get_type_from_type_info): New functions.
6782 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6783
fc4746a2
TT
67842013-04-15 Tom Tromey <tromey@redhat.com>
6785
6786 * break-catch-throw.c (struct exception_names): New.
6787 (exception_functions): Change type.
6788 (re_set_exception_catchpoint): Look for SDT probes.
6789
15a73f56
TT
67902013-04-15 Tom Tromey <tromey@redhat.com>
6791
6792 PR c++/10119:
6793 * break-catch-throw.c (exception_functions): New global.
6794 (gnu_v3_exception_catchpoint_ops): Move earlier.
6795 (struct exception_catchpoint): New.
6796 (classify_exception_breakpoint): Rewrite.
6797 (re_set_exception_catchpoint): New function.
6798 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6799 Allocate a struct exception_catchpoint.
6800 (catch_exception_command_1): Update.
6801 (initialize_throw_catchpoint_ops): Set 're_set' method.
6802
916703c0
TT
68032013-04-15 Tom Tromey <tromey@redhat.com>
6804
6805 * Makefile.in (SFILES): Add break-catch-throw.c
6806 (COMMON_OBS): Add break-catch-throw.o.
6807 * break-catch-throw.c: New file.
6808 * breakpoint.c: Move exception-catching code to new file.
6809 (ep_parse_optional_if_clause): No longer static.
6810 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6811
6e72ca20
TT
68122013-04-15 Tom Tromey <tromey@redhat.com>
6813
6814 PR c++/9065:
6815 * NEWS: Update.
6816 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6817 * c-exp.y (TYPEID): New token.
6818 (exp): Add new TYPEID productions.
6819 (ident_tokens): Add "typeid".
6820 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6821 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6822 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6823 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6824 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6825 case.
6826 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6827 (build_std_type_info_type, gnuv3_get_typeid_type)
6828 (gnuv3_get_typeid): New functions.
6829 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6830 new fields on ABI object.
6831 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6832 * std-operator.def (OP_TYPEID): New.
6833
715c6909
TT
68342013-04-15 Tom Tromey <tromey@redhat.com>
6835
6836 * elfread.c (elf_symtab_read): Install versioned symbol under
6837 unversioned name as well.
6838
8de20a37
TT
68392013-04-15 Tom Tromey <tromey@redhat.com>
6840
6841 PR c++/11990:
6842 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6843 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6844 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6845 (gdb_demangle): New function.
6846 * cp-support.h (gdb_demangle): Declare.
6847 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6848 (dwarf2_name): Use gdb_demangle.
6849 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6850 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6851 suffixes from name.
6852 (gnuv3_print_method_ptr): Use gdb_demangle.
6853 * jv-lang.c (java_demangle): Use gdb_demangle.
6854 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6855 * language.c (unk_lang_demangle): Use gdb_demangle.
6856 * symtab.c (symbol_find_demangled_name)
6857 (demangle_for_lookup): Use gdb_demangle.
6858
591f19e8
TT
68592013-04-15 Tom Tromey <tromey@redhat.com>
6860
6861 PR c++/12824:
6862 * NEWS: Update.
6863 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6864 New constant.
6865 (classify_exception_breakpoint): New function.
6866 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6867 (print_mention_exception_catchpoint)
6868 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6869 (catch_exception_command_1): Handle "rethrow" catchpoint.
6870 (catch_rethrow_command): New function.
6871 (_initialize_breakpoint): Add "catch rethrow" command.
6872
4d40cad2
PM
68732013-04-15 Pierre Muller <muller@sourceware.org>
6874
6875 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6876 set_gdbarch_write_pc as deprecated anymore.
6877
30bcb456
JB
68782013-04-15 Joel Brobecker <brobecker@adacore.com>
6879
6880 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6881 declarations.
6882
da9160e4
YQ
68832013-04-13 Yao Qi <yao@codesourcery.com>
6884
6885 * ctf.c (_initialize_ctf): Include "completer.h".
6886 Call add_target_with_completer instead of add_target.
6887
39ed5604
JK
68882013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 Fix GDB regression related to PR binutils/14813.
6891 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6892 * minidebug.c (lzma_close): Add return value comment.
6893 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6894 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6895 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6896
68972013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6898
6899 * config.in: Regenerate.
6900
d521ce57
TT
69012013-04-12 Tom Tromey <tromey@redhat.com>
6902
6903 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6904 const.
6905 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6906 (struct die_reader_specs) <buffer>: Likewise.
6907 (die_reader_func_ftype): Make 'info_ptr' const.
6908 (struct line_header) <include_dirs, statement_program_start,
6909 statement_program_end>: Now const.
6910 (struct file_entry) <name>: Likewise.
6911 (struct partial_die_info) <sibling>: Likewise.
6912 (struct dwarf_block) <data>: Likewise.
6913 (dwarf2_read_section): Remove cast.
6914 (dwarf2_get_section_info): Make 'bufp' const.
6915 (read_index_from_section): Constify.
6916 (dw2_get_file_names_reader): Make 'info_ptr' const.
6917 (dw2_get_primary_filename_reader): Likewise.
6918 (read_comp_unit_head): Make 'info_ptr' and return type const.
6919 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6920 Likewise.
6921 (read_abbrev_offset): Constify.
6922 (dwarf2_create_include_psymtab): Make 'name' const.
6923 (create_debug_types_hash_table): Update.
6924 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6925 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6926 Constify.
6927 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6928 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6929 (read_comp_units_from_section): Constify.
6930 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6931 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6932 const.
6933 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6934 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6935 (create_dwp_hash_table, dwarf2_ranges_read)
6936 (dwarf2_record_block_ranges): Constify.
6937 (read_die_and_children, read_die_and_siblings_1)
6938 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6939 const.
6940 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6941 (abbrev_table_read_table): Constify.
6942 (load_partial_dies): Make 'info_ptr' const.
6943 (read_partial_die, read_attribute_value, read_attribute): Make
6944 'info_ptr' and return type const.
6945 (read_address, read_initial_length)
6946 (read_checked_initial_length_and_offset, read_offset)
6947 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6948 const.
6949 (read_direct_string): Make 'buf' and return type const.
6950 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6951 (read_indirect_string): Make return type const.
6952 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6953 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6954 'info_ptr' const.
6955 (read_str_index): Make return type const.
6956 (add_include_dir): Make 'include_dir' const.
6957 (add_file_name): Make 'name' const.
6958 (dwarf_decode_line_header): Constify.
6959 (psymtab_include_file_name): Make return type const.
6960 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6961 (dwarf2_start_subfile): Make 'filename' const.
6962 (dwarf2_const_value_attr): Make 'bytes' const.
6963 (read_signatured_type_reader): Make 'info_ptr' const.
6964 (decode_locdesc): Constify.
6965 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6966 const.
6967 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6968 'mac_end', and return type const.
6969 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6970 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6971 type const.
6972 (per_cu_header_read_in): Constify.
6973 * symfile.h (dwarf2_get_section_info): Update.
6974
d47a1bc1
TT
69752013-04-12 Tom Tromey <tromey@redhat.com>
6976
6977 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6978
6eaaf48b
EZ
69792013-04-12 Eli Zaretskii <eliz@gnu.org>
6980
fc4c25bf 6981 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6982 * top.c (print_gdb_configuration): New function, displays the
6983 details about GDB configure-time parameters.
6984 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6985 * cli/cli-cmds.c (show_configuration): New function.
6986 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6987 * main.c (captured_main) <print_configuration>: New static var.
6988 <long_options>: Use it.
6989 If --configuration was given, call print_gdb_configuration.
6990
b292c783
JK
69912013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 Pedro Alves <palves@redhat.com>
6993
6994 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6995 (generated_files): Add gcore.
6996 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6997 HAVE_NATIVE_GCORE_HOST.
6998 (gcore): New.
6999 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7000 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7001 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7002 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7003 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7004 Add HAVE_NATIVE_GCORE_HOST.
7005 * configure: Regenerate.
7006 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7007 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7008 AC_CONFIG_FILES for gcore.
7009 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7010 gdb_have_gcore.
7011 * gdb_gcore.sh: Rename to ...
7012 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7013 and GCORE_TRANSFORM_NAME substitutions.
7014
c96b3c4f
JK
7015 Fix parsing tabs in ${gdb_target_obs}.
7016 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7017
d6cb50a2
JK
70182013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7019
7020 * remote.c (unpush_and_perror): Add output message final dot.
7021
cf2cb5ec
YQ
70222013-04-11 Yao Qi <yao@codesourcery.com>
7023
7024 * tracepoint.c (tfile_interp_line): Fit parameters line and
7025 utpp in one line.
7026
07293be4
JB
70272013-04-10 Joel Brobecker <brobecker@adacore.com>
7028
7029 * solib.c (solib_map_sections): Remove code overwriting
7030 SO->SO_NAME with the bfd's filename.
7031
f81d1120
PA
70322013-04-10 Pedro Alves <palves@redhat.com>
7033
7034 * cli/cli-decode.c (integer_unlimited_completer): New function.
7035 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7036 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7037 completer.
7038 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7039 (is_unlimited_literal): New function.
7040 (do_set_command): Handle literal "unlimited" arguments.
7041 * frame.c (_initialize_frame) <set backtrace limit>: Document
7042 "unlimited".
7043 * printcmd.c (_initialize_printcmd) <set print
7044 max-symbolic-offset>: Add help text.
7045 * record-full.c (_initialize_record_full) <set record full
7046 insn-number-max>: Likewise.
7047 * record.c (_initialize_record) <set record
7048 instruction-history-size, set record function-call-history-size>:
7049 Add help text.
7050 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7051 help text.
7052 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7053 Likewise.
7054 * source.c (_initialize_source) <set listsize>: Add help text.
7055 * utils.c (initialize_utils) <set height, set width>: Likewise.
7056 <set pagination>: Mention "set height unlimited".
7057 * valprint.c (_initialize_valprint) <set print elements, set print
7058 repeats>: Document "unlimited".
7059
2f9d54cf
PA
70602013-04-10 Pedro Alves <palves@redhat.com>
7061
7062 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7063 instead of disconnect_tracing.
7064 * infcmd.c (detach_command, disconnect_command): Call
7065 query_if_trace_running. Adjust.
7066 * top.c: Include "tracepoint.h".
7067 (quit_target): Delete. Contents moved ...
7068 (quit_force): ... here. Wrap each stage of teardown in
7069 TRY_CATCH. Call disconnect_tracing before detaching.
7070
393fd4c3
YQ
70712013-04-10 Hui Zhu <hui@codesourcery.com>
7072 Yao Qi <yao@codesourcery.com>
7073
7074 * configure.ac: Check libbabeltrace is installed.
7075 * config.in: Regenerate.
7076 * configure: Regenerate.
7077 * Makefile.in (LIBBABELTRACE): New.
7078 (CLIBS): Add LIBBABELTRACE.
7079 * ctf.c: Include "exec.h".
7080 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7081 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7082 (ctf_save_metadata_header): Define new type aliases in
7083 metadata.
7084 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7085 in metadata. Start a new faked packet for trace status.
7086 (ctf_write_status): Write trace status to CTF.
7087 (ctf_write_uploaded_tsv): Write TSV to CTF.
7088 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7089 (ctf_write_definition_end): End the faked packet.
7090
7091 (ctx, ctf_iter, trace_dirname): New.
7092 (start_pos): New variable.
7093 (ctf_destroy, ctf_open_dir, ctf_open): New.
7094 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7095 macros.
7096 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7097 (ctf_fetch_registers, ctf_xfer_partial): New.
7098 (ctf_get_trace_state_variable_value): New.
7099 (ctf_get_tpnum_from_frame_event): New.
7100 (ctf_get_traceframe_address): New.
7101 (ctf_trace_find, ctf_has_stack): New.
7102 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7103 (ctf_get_trace_status, ctf_read_status): New.
7104 (_initialize_ctf): New.
7105 * tracepoint.c (get_tracepoint_number): New
7106 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7107 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7108 * tracepoint.h: ... here.
7109 (get_tracepoint_number): Declare it.
7110 (get_uploaded_tsv): Declare it.
7111
7112 * NEWS: Mention new configure option.
7113
5c2b4418
HZ
71142013-04-10 Pedro Alves <palves@redhat.com>
7115 Hui Zhu <hui@codesourcery.com>
7116
7117 * breakpoint.c (dprintf_re_set): New.
7118 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7119 to dprintf_re_set.
7120
a5c66735
JB
71212013-04-09 Joel Brobecker <brobecker@adacore.com>
7122
7123 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7124 Remove solib-svr4.o from the list.
7125
9e77999c
JB
71262013-04-09 Joel Brobecker <brobecker@adacore.com>
7127
7128 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7129 Use gdb_assert_not_reached instead of invalid boolean expression.
7130
1927e618
PA
71312013-04-09 Pedro Alves <palves@redhat.com>
7132
7133 * remote.c (unpush_and_perror): New function.
7134 (readchar, remote_serial_write): Use it.
7135
10782d74
MM
71362013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7137
7138 * NEWS: Mention new btrace RSP packets.
7139
4c8429ef
TT
71402013-04-08 Tom Tromey <tromey@redhat.com>
7141
7142 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7143 long.
7144
8625fc1b
TT
71452013-04-08 Tom Tromey <tromey@redhat.com>
7146
7147 * maint.c (print_bfd_section_info): Print the section index.
7148 * symmisc.c (dump_msymbols): Print the section index.
7149
e27d198c
TT
71502013-04-08 Tom Tromey <tromey@redhat.com>
7151
7152 PR symtab/8424:
7153 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7154 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7155 * breakpoint.c (resolve_sal_pc): Update.
7156 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7157 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7158 (minsym_lookup_iterator_cb): Use it.
7159 (default_read_var_value): Update.
7160 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7161 Update.
7162 * infcmd.c (jump_command): Update.
7163 * linespec.c (minsym_found): Update.
7164 * maint.c (maintenance_translate_address): Update.
7165 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7166 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7167 * parse.c (write_exp_msymbol): Update.
7168 * printcmd.c (address_info): Update.
7169 * psymtab.c (find_pc_sect_psymbol): Update.
7170 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7171 SYMBOL_OBJ_SECTION.
7172 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7173 Don't initialize SYMBOL_OBJ_SECTION.
7174 * spu-tdep.c (spu_catch_start): Update.
7175 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7176 * symmisc.c (dump_msymbols, print_symbol): Update.
7177 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7178 how fallback section is computed.
7179 (fixup_symbol_section): Update.
7180 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7181 Update.
7182 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7183 Initialize SYMBOL_SECTION.
7184 * symtab.h (struct general_symbol_info) <section>: Update comment.
7185 <obj_section>: Remove.
7186 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7187 (SYMBOL_OBJFILE): New macro.
7188
e6dc44a8
TT
71892013-04-08 Tom Tromey <tromey@redhat.com>
7190
7191 * coffread.c (record_minimal_symbol): Update.
7192 * dbxread.c (record_minimal_symbol): Update.
7193 * elfread.c (record_minimal_symbol): Update.
7194 * machoread.c (macho_symtab_add_minsym): Update.
7195 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7196 Update.
7197 * minsyms.c (prim_record_minimal_symbol): Update.
7198 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7199 argument.
7200 (prim_record_minimal_symbol_and_info): Likewise.
7201 * minsyms.h (prim_record_minimal_symbol_full)
7202 (prim_record_minimal_symbol_and_info): Update.
7203 * symtab.c (allocate_symbol, initialize_symbol)
7204 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7205 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7206 Update.
7207
36192a8d
TT
72082013-04-08 Tom Tromey <tromey@redhat.com>
7209
7210 PR symtab/8423:
7211 * solib-som.c (som_solib_section_offsets): Use BFD section
7212 indices. Set offsets for all sections.
7213 * somread.c (som_symtab_read): Compute BFD section for
7214 symbol. Use prim_record_minimal_symbol_and_info.
7215 (som_symfile_read): Fix comment.
7216 (struct find_section_offset_arg): New.
7217 (find_section_offset, set_section_index): New functions.
7218 (som_symfile_offsets): Use set_section_index to compute
7219 section indices.
7220
65cf3563
TT
72212013-04-08 Tom Tromey <tromey@redhat.com>
7222
7223 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7224 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7225 gdb_bfd_section_index.
7226 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7227 New functions.
7228 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7229 Declare.
7230 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7231 Update.
7232 * objfiles.c (add_to_objfile_sections_full): New function.
7233 (add_to_objfile_sections): Use it.
7234 (build_section_table): Rewrite.
7235 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7236 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7237 (struct objfile) <sections>: Update comment.
7238 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7239 is NULL.
7240 (ALL_OBJSECTIONS): Use it.
7241 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7242 * solib-frv.c (frv_relocate_main_executable): Update.
7243 * solib-target.c (solib_target_relocate_section_addresses):
7244 Use gdb_bfd_section_index.
7245 * symfile.c (build_section_addr_info_from_section_table):
7246 Use gdb_bfd_section_index.
7247 (build_section_addr_info_from_bfd, place_section): Likewise.
7248 * symtab.c (fixup_section): Update.
7249 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7250
7cbd4a93
TT
72512013-04-08 Tom Tromey <tromey@redhat.com>
7252
7253 * minsyms.h (struct bound_minimal_symbol): New.
7254 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7255 Remove objfile argument.
7256 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7257 Return bound_minimal_symbol.
7258 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7259 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7260 Return bound_minimal_symbol.
7261 (in_gnu_ifunc_stub): Update.
7262 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7263 Remove 'objfile_p' argument.
7264 (lookup_solib_trampoline_symbol_by_pc): Update.
7265 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7266 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7267 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7268 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7269 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7270 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7271 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7272 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7273 stack.c, symtab.c, tui/tui-disasm.c: Update.
7274
f85f34ed
TT
72752013-04-08 Tom Tromey <tromey@redhat.com>
7276
7277 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7278 Use symbol's obstack, not an objfile.
7279 * coffread.c (process_coff_symbol): Update.
7280 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7281 * jv-lang.c (add_class_symbol): Update.
7282 * mdebugread.c (new_symbol): Update.
7283 * minsyms.c (prim_record_minimal_symbol_full)
7284 (terminate_minimal_symbol_table): Update.
7285 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7286 * stabsread.c (define_symbol, read_enum_type): Update.
7287 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7288 Handle Ada specially.
7289 (symbol_set_language): Add 'obstack' argument.
7290 (symbol_set_names): Update.
7291 (symbol_natural_name, symbol_demangled_name): Always use
7292 ada_decode_symbol.
7293 * symtab.h (struct general_symbol_info)
7294 <language_specific::obstack>: New field.
7295 <ada_mangled>: New field.
7296 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7297 (symbol_set_language): Update.
7298
ccde22c0
TT
72992013-04-08 Tom Tromey <tromey@redhat.com>
7300
7301 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7302 Take an obstack, not an objfile.
7303 (symbol_set_names): Update.
7304 * symtab.h (symbol_set_demangled_name): Update.
7305
e623cf5d
TT
73062013-04-08 Tom Tromey <tromey@redhat.com>
7307
7308 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7309 allocate_symbol.
7310 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7311 (read_func_scope): Call allocate_template_symbol.
7312 (new_symbol_full): Call allocate_symbol.
7313 * jit.c (finalize_symtab): Call allocate_symbol.
7314 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7315 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7316 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7317 (common_block_end): Call allocate_symbol.
7318 * symtab.c (allocate_symbol, initialize_symbol)
7319 (allocate_template_symbol): New functions.
7320 * symtab.c (allocate_symbol, initialize_symbol)
7321 (allocate_template_symbol): Declare.
7322 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7323
f6de8ec2
PA
73242013-04-08 Pedro Alves <palves@redhat.com>
7325 Keith Seitz <keiths@redhat.com>
7326
7327 * breakpoint.c (create_breakpoint): Rename
7328 "parse_condition_and_thread" parameter to "parse_arg". Update
7329 describing comment. If !PARSE_ARG, then error out if ARG is not
7330 the empty string after extracting the location.
7331 * breakpoint.h (create_breakpoint): Rename
7332 "parse_condition_and_thread" parameter to "parse_arg".
7333
f65ce5fb
AR
73342013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7335
7336 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7337
cc5925ad
YQ
73382013-04-07 Yao Qi <yao@codesourcery.com>
7339
7340 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7341 and 'addr2' to CORE_ADDR.
7342 * target.c (update_current_target): Update.
7343 * target.h (struct target_ops) <to_trace_find>: Change parameter
7344 type to CORE_ADDR.
7345 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7346 'addr2' to CORE_ADDR.
7347 (tfile_trace_find): Likewise.
7348 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7349 Change local variable 'addr' to type CORE_ADDR.
7350 * tracepoint.h (tfind_1): Update declaration.
7351
d9ac0664
EZ
73522013-04-06 Eli Zaretskii <eliz@gnu.org>
7353
7354 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7355 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7356 Include main.h.
7357
7358 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7359 here...
7360 * main.h (windows_get_absolute_argv0): ...to here.
7361
02142a6c
DE
73622013-04-05 Doug Evans <dje@google.com>
7363
7364 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7365 (read_cutu_die_from_dwo): Add comments.
7366 (read_structure_type): Update comment.
7367 (read_enumeration_type, read_namespace_type): Update comment.
7368 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7369
43662968
JK
73702013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7373 * Makefile.in (gdb.z): Remove.
7374 (install-only): Remove $(man1dir) and gdb.1 installation.
7375 * gdb.1: Remove.
7376
9ead1b84
JK
73772013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7378
7379 Fix compatibility with Linux kernel 3.8.3.
7380 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7381 to more inner block. Remove parsing of NUMBER from outer block.
7382 Parse NUMBER only if KEYWORD has been identified.
7383
d1794952
JK
73842013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7385
7386 Fix variable name shadowing.
7387 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7388 filename to mapsfilename and update its uses.
7389
9025569e
EZ
73902013-04-05 Eli Zaretskii <eliz@gnu.org>
7391
7392 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7393 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7394 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7395 details of the problem.
7396
c9a6ce02
PA
73972013-04-04 Pedro Alves <palves@redhat.com>
7398 Hui Zhu <hui@codesourcery.com>
7399
7400 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7401 tracepoint, reset its STEP_COUNT and call validate_actionline.
7402
5ff888ce
DE
74032013-04-03 Doug Evans <dje@google.com>
7404
bf6af496
DE
7405 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7406 read_die_and_siblings.
7407 (read_die_and_siblings): New function.
7408 (read_cutu_die_from_dwo): Dump die if requested.
7409 (read_die_and_children): Call read_full_die_1 and
7410 read_die_and_siblings_1.
7411 (read_full_die): Dump die if requested.
7412
7413 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7414
0ac5b59e
DE
7415 * dwarf2read.c (struct dwo_file): New member comp_dir.
7416 Rename member name to dwo_name. All uses updated.
7417 (hash_dwo_file): Include comp_dir in computation.
7418 (eq_dwo_file): Ditto.
7419 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7420 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7421
5ff888ce
DE
7422 * psymtab.c (read_psymtabs_with_fullname): Don't call
7423 psymtab_to_fullname if the basenames are different.
7424
ec83d211
JK
74252013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7426
7427 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7428 New entry about "fullname" presence.
7429
4f4352f7
PA
74302013-04-03 Pedro Alves <palves@redhat.com>
7431
7432 * NEWS: Mention x86_64/Cygwin as new native configuration.
7433
3d1d5ea3
DE
74342013-04-02 Doug Evans <dje@google.com>
7435
7436 * dwarf2read.c (read_structure_type): Fix typo in comment.
7437
be9a8770
PA
74382013-04-02 Pedro Alves <palves@redhat.com>
7439
7440 * NEWS: Mention "set/show debug aarch64", "set/show debug
7441 coff-pe-read" and "set/show debug mach-o".
7442
a46c1e42
PA
74432013-04-02 Pedro Alves <palves@redhat.com>
7444
7445 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7446
3ad18b19
EZ
74472013-04-02 Eli Zaretskii <eliz@gnu.org>
7448
7449 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7450 gdb_string.h is now in common/.
7451
e9f1758d
PA
74522013-04-02 Pedro Alves <palves@redhat.com>
7453
7454 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7455 under "New options".
7456
049dc89b
JK
74572013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7458
7459 Revert this patch:
7460 PR gdb/15275
7461 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7462
c33e31fd
PA
74632013-04-02 Pedro Alves <palves@redhat.com>
7464
7465 PR gdb/15275
7466
7467 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7468 (remote_serial_write): New function.
7469 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7470
ea5f3910
JW
74712013-04-01 Jiong Wang <jiwang@tilera.com>
7472
7473 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7474 "New targets" sections.
ea5f3910 7475
5c6fa7ab
DE
74762013-04-01 Doug Evans <dje@google.com>
7477
c0f78cd4
DE
7478 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7479 (process_enumeration_scope): Simplify.
7480
0186c6a7
DE
7481 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7482 type_unit_group ...
7483 (struct signatured_type): ... to here.
7484 (sig_type_ptr): New typedef.
7485 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7486 out of union 't'. All uses updated.
7487 (dw2_get_file_names_reader): Assert not called for a type unit.
7488 (dw2_get_file_names): Assert not called for a type unit or type
7489 unit group.
7490 (build_type_psymtabs_reader): Assert called for a type unit.
7491 (build_type_psymtab_dependencies): Assert called for a type unit group.
7492
5c6fa7ab
DE
7493 * dwarf2read.c (free_dwo_file): Add comment.
7494 (dwarf2_per_objfile_free): Unref dwp bfd.
7495
b3c0ad67 74962013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7497
7498 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7499 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7500 (read_pe_exported_syms): Remove unused 'exportix'.
7501 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7502 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7503 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7504
e2df1547
AR
75052013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7506
7507 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7508 (print_it_watchpoint): Remove unused 'bl'.
7509 (say_where): Remove unused 'uiout'.
7510 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7511 (bkpt_breakpoint_hit): Remove unused 'b'.
7512 (internal_bkpt_print_it): Remove unused 'uiout'.
7513 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7514
d81e75c0
TD
75152013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7516
7517 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7518 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7519
5a8b3f62
DE
75202013-03-29 Doug Evans <dje@google.com>
7521
ab5088bf
DE
7522 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7523 Delete arg is_dwp. All callers updated.
7524 (open_dwp_file): New function.
7525 (open_and_init_dwp_file): Call it.
7526 (get_dwp_file): New function.
7527 (lookup_dwo_cutu): Call it.
7528
a8ad1e57
DE
7529 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7530 unnecessary, cleanup.
7531
6296d8c1
DE
7532 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7533
b0c7bfa9
DE
7534 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7535 (lookup_dwo_unit): New function.
7536 (init_cutu_and_read_dies): Move DWO handling to new functions.
7537
c88ee1f0
DE
7538 * dwarf2read.c (struct signatured_type): Tweak comment.
7539 (struct dwo_unit): Tweak comment.
7540 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7541 (create_dwo_debug_info_hash_table): Tweak comment.
7542 (dwarf2_per_cu_offset_and_type): Tweak comment.
7543
5a8b3f62
DE
7544 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7545 missing .debug_types section.
7546
9852c492
YQ
75472013-03-29 Yao Qi <yao@codesourcery.com>
7548
7549 * corelow.c: Include "completer.h".
7550 (_initialize_corelow): Call add_target_with_completer with
7551 argument 'filename_completer'.
7552 * tracepoint.c: Likewise.
7553 * exec.c (_initialize_exec): Likewise.
7554 * target.c (add_target): Rename to ...
7555 (add_target_with_completer): ... this. Call set_cmd_completer
7556 if parameter completer is not NULL.
7557 (add_target): New.
7558 * target.h: Include "command.h".
7559 (add_target_with_completer): Declare it.
7560
af312be7
JB
75612013-03-28 Joel Brobecker <brobecker@adacore.com>
7562
7563 * coffread.c (is_import_fixup_symbol): New function.
7564 (record_minimal_symbol): Use is_import_fixup_symbol to
7565 detect import fixup symbols, and discard them.
7566
8a0459fd
DE
75672013-03-28 Doug Evans <dje@google.com>
7568
0349ea22
DE
7569 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7570 types hash table until we know we need it.
7571
f652bce2
DE
7572 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7573 index numbers.
7574
e4a48d9d
DE
7575 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7576 All callers updated.
7577 (dw2_print_stats): Print #read CUs too.
7578 (dump_die_shallow): Print signatured types better.
7579
8a0459fd
DE
7580 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7581 info_or_types_section to section. All uses updated.
7582 (struct dwo_unit): Ditto.
7583
bd3eecc3
PA
75842013-03-28 Pedro Alves <palves@redhat.com>
7585
7586 * NEWS (New options): New section.
7587 (New options): Mention set/show remote trace-status-packet.
7588 * remote.c (PACKET_qTStatus): New enumeration value.
7589 (remote_get_trace_status): Skip sending qTStatus if the packet is
7590 disabled. Use packet_ok.
7591 (_initialize_remote): Register a configuration command for
7592 qTStatus packet.
7593
41245087
DE
75942013-03-28 Doug Evans <dje@google.com>
7595
7edbb660
DE
7596 * symfile.c (find_separate_debug_file): Add comment.
7597 (terminate_after_last_dir_separator): Tweak comment.
7598
0018ea6f
DE
7599 * dwarf2read.c (create_partial_symtab): Add forward decl.
7600 (create_partial_symtab): Move to be closer to other psymtab functions.
7601 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7602
ca69b9e6
DE
7603 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7604 (compute_symtab_includes): Remove unnecessary forward declaration.
7605 (die_needs_namespace): Add comment marking group of functions for
7606 dwarf2 name computation.
7607
a9375afe
DE
7608 * typeprint.c (_initialize_typeprint): Improve type help text.
7609
41245087
DE
7610 * python/python.c (finish_python_initialization): Provide suggestion
7611 for how to tell gdb to find its python files.
7612
7f7cc265
PA
76132013-03-28 Pedro Alves <palves@redhat.com>
7614
7615 PR gdb/15294
7616
7617 * source.c (_initialize_source): Change back "set listsize" to an
7618 integer command.
7619
ec21308c
JK
76202013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7621
7622 PR gdb/15275
7623 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7624
840a9a1f
PA
76252013-03-27 Pedro Alves <palves@redhat.com>
7626
7627 * top.c (history_size): Rename to ...
7628 (history_size_setshow_var): ... this. Add comment.
7629 (show_commands): Use readline's 'history_length' instead of
7630 computing the history length by calling history_get in a loop.
7631 (set_history_size_command): Error out for sizes over INT_MAX.
7632 Restore previous history size on invalid size.
7633 (init_history): If HISTSIZE is negative, leave the history size as
7634 zero. Add comments.
7635 (init_main): Adjust.
7636
826ecc4d
PA
76372013-03-27 Pedro Alves <palves@redhat.com>
7638
7639 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7640 coff_pe_read" command to "set debug coff-pe-read".
7641
0ccfeeae
MM
76422013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7643
7644 * record.c (command_size_to_target_size): Fix size comparison.
7645 Change parameter type from pointer to integer to integer.
7646 Update all users.
7647
40653b35
PM
76482013-03-27 Pierre Muller <muller@sourceware.org>
7649
7650 * windows-nat.c (handle_output_debug_string): Avoid typecast
7651 from integer of different size warning.
7652
c62fa0e2
JB
76532013-03-26 Joel Brobecker <brobecker@adacore.com>
7654
7655 * windows-nat.c (handle_output_debug_string): Add empty line
7656 after local block variable definition.
7657
2c619be2
PA
76582013-03-26 Pedro Alves <palves@redhat.com>
7659
7660 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7661 (net_open): Make 'polls' local unsigned.
7662
1b493192
PA
76632013-03-26 Pedro Alves <palves@redhat.com>
7664
7665 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7666 a zuinteger command instead of uinteger.
7667
7ee70bf5
PA
76682013-03-26 Pedro Alves <palves@redhat.com>
7669
7670 * record-full.c (record_full_insn_num): Make it unsigned.
7671 (record_full_check_insn_num, record_full_message)
7672 (record_full_registers_change, record_full_xfer_partial): Remove
7673 record_full_insn_max_num check (it's always != 0).
7674 (record_full_info, record_full_restore): Use %u as format string.
7675 (): Use %u as format string.
7676 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7677 check (it's always != 0).
7678
dfd1f9bb
PA
76792013-03-26 Pedro Alves <palves@redhat.com>
7680
7681 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7682 and "set dcache size" commands zuinteger instead of uinteger.
7683
addb4faf
PA
76842013-03-26 Pedro Alves <palves@redhat.com>
7685
7686 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7687 command zuinteger instead of uinteger.
7688
b75bf488
PA
76892013-03-26 Pedro Alves <palves@redhat.com>
7690
7691 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7692 zuinteger instead of uinteger.
7693
42c634cb
PA
76942013-03-26 Pedro Alves <palves@redhat.com>
7695
7696 * record.c (record_insn_history_size_setshow_var)
7697 (record_call_history_size_setshow_var): New globals.
7698 (command_size_to_target_size): New function.
7699 (cmd_record_insn_history, cmd_record_call_history): Use
7700 command_size_to_target_size instead of cast.
7701 (validate_history_size, set_record_insn_history_size)
7702 (set_record_call_history_size): New functions.
7703 (_initialize_record): Install set_record_insn_history_size and
7704 set_record_call_history_size as "set" hooks of "set record
7705 instruction-history-size" and "set record
7706 function-call-history-size".
7707
1fb2e2b5
PA
77082013-03-26 Pedro Alves <palves@redhat.com>
7709
7710 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7711 use with history_max_entries use. Remove FIXME note.
7712
99c819ee
MM
77132013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7714
7715 * record-btrace.c (record_btrace_close): Call
7716 record_btrace_auto_disable.
7717
9f9e404c
JB
77182013-03-25 Joel Brobecker <brobecker@adacore.com>
7719
7720 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7721
ebcdfe33
DE
77222013-03-25 Doug Evans <dje@google.com>
7723
7724 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7725
24955f63
TT
77262013-03-25 Tom Tromey <tromey@redhat.com>
7727
7728 PR symtab/11462:
7729 * c-exp.y (exp): Add new productions for destructors after '.' and
7730 '->'.
7731 (write_destructor_name): New function.
7732
fce632b6
TT
77332013-03-25 Tom Tromey <tromey@redhat.com>
7734
7735 PR c++/9197:
7736 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7737 value_struct_elt, not lookup_struct_elt_type.
7738 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7739 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7740 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7741
a4341769
YQ
77422013-03-25 Yao Qi <yao@codesourcery.com>
7743
7744 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7745 instead of '_mkdir'.
7746
b5981e5a
EZ
77472013-03-23 Eli Zaretskii <eliz@gnu.org>
7748
7749 * windows-nat.c (windows_get_absolute_argv0): New function.
7750 * windows-nat.h: Add its prototype.
7751
7752 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7753 Use IS_DIR_SEPARATOR instead of looking for a character inside
7754 SLASH_STRING. Include filenames.h.
7755 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7756 relocate_gdb_directory works when passed gdb_program_name.
7757 Include windows-nat.h.
7758
598d3636
JK
77592013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7762 * remote.c (trace_error): Remove the special handling of '2'.
7763 (readchar) <SERIAL_EOF>
7764 (readchar) <SERIAL_ERROR>
7765 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7766 (remote_get_trace_status): Call throw_exception if EX is
7767 TARGET_CLOSE_ERROR.
7768 * utils.c (perror_with_name): Rename to ...
7769 (throw_perror_with_name): ... here. New parameter errcode, describe it
7770 in the function comment.
7771 (perror_with_name): New function wrapper.
7772 * utils.h (enum errors): New stub declaration.
7773 (throw_perror_with_name): New declaration.
7774
82b821e9
PA
77752013-03-22 Pedro Alves <palves@redhat.com>
7776 Yao Qi <yao@codesourcery.com>
7777 Mark Kettenis <kettenis@gnu.org>
7778
7779 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7780 Don't let the user set the value to UINT_MAX directly.
7781 <var_integer>: Don't let the user set the value to INT_MAX
7782 directly.
7783
78a095c3
JK
77842013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7785
7786 * remote.c (remote_unpush_target): New function.
7787 (remote_open_1): Remove two pop_target calls, update one comment, add
7788 comment to target_preopen call. Replace pop_target call by
7789 remote_unpush_target call.
7790 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7791 pop_target calls by remote_unpush_target calls.
7792
3e74e146
PA
77932013-03-22 Pedro Alves <palves@redhat.com>
7794
7795 * linux-nat.c (linux_child_follow_fork): Don't call
7796 linux_enable_event_reporting.
7797 (linux_handle_extended_wait): Don't call
7798 linux_enable_event_reporting.
7799
a2213dca
PA
78002013-03-22 Pedro Alves <palves@redhat.com>
7801
7802 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7803 use it to rewrite the trampoline buffers with type gdb_byte[], and
7804 undefine the macro. Remove char* cast.
7805
bd712aed
DE
78062013-03-21 Doug Evans <dje@google.com>
7807
7808 New commands "mt set per-command {space,time,symtab} {on,off}".
7809 * NEWS: Add entry.
7810 * event-top.c: #include "maint.h".
7811 * main.c: #include "maint.h".
7812 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7813 timeval-utils.h, maint.h, cli/cli-setshow.h.
7814 (per_command_time, per_command_space): New static globals.
7815 (per_command_symtab): New static global.
7816 (per_command_setlist, per_command_showlist): New static globals.
7817 (struct cmd_stats): Move here from utils.c.
7818 (set_per_command_time): Renamed from set_display_time in utils.c
7819 and moved here. All callers updated.
7820 (set_per_command_space): Renamed from set_display_space in utils.c
7821 and moved here. All callers updated.
7822 (count_symtabs_and_blocks): New function.
7823 (report_command_stats): Moved here from utils.c. Add support for
7824 printing symtab stats. Only print data if enabled before command
7825 executed.
7826 (make_command_stats_cleanup): Ditto.
7827 (sert_per_command_cmd, show_per_command_cmd): New functions.
7828 (_initialize_maint_cmds): Add new commands
7829 mt set per-command {space,time,symtab} {on,off}.
7830 * maint.h: New file.
7831 * top.c: #include "maint.h".
7832 * utils.c (reset_prompt_for_continue_wait_time): New function.
7833 (get_prompt_for_continue_wait_time): New function.
7834 * utils.h (reset_prompt_for_continue_wait_time): Declare
7835 (get_prompt_for_continue_wait_time): Declare.
7836 (make_command_stats_cleanup): Moved to maint.h.
7837 (set_display_time, set_display_space): Moved to maint.h and renamed
7838 to set_per_command_time, set_per_command_space.
7839 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7840 parse_binary_operation and made non-static. Don't call error,
7841 just return an error marker. All callers updated.
7842 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7843
d76488d8
TT
78442013-03-21 Tom Tromey <tromey@redhat.com>
7845
7846 * symfile.c (alloc_section_addr_info): Update header. Don't set
7847 'num_sections' field.
7848 (build_section_addr_info_from_section_table): Set 'num_sections'.
7849 (build_section_addr_info_from_bfd): Likewise.
7850 (build_section_addr_info_from_objfile): Remove dead loop
7851 condition.
7852 (free_section_addr_info): Unconditionally call xfree.
7853 (relative_addr_info_to_section_offsets, addrs_section_sort)
7854 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7855 condition.
7856 (syms_from_objfile_1): Remove dead 'if' condition. Check
7857 'num_sections'.
7858 (add_symbol_file_command): Set 'num_sections'.
7859 * symfile-mem.c (symbol_file_add_from_memory): Set
7860 'num_sections'.
7861 * somread.c (som_symfile_offsets): Remove dead loop condition.
7862 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7863 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7864
a72e5169 78652013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7866
7867 * tracepoint.h (decode_agent_options): Add 'trace_string'
7868 argument.
7869 * tracepoint.c (decode_agent_options): Add 'trace_string'
7870 argument.
7871 (validate_actionline): Update.
7872 (collect_symbol): Add 'trace_string' argument.
7873 (struct add_local_symbols_data) <trace_string>: New field.
7874 (do_collect_symbol): Update.
7875 (add_local_symbols): Add 'trace_string' argument.
7876 (encode_actions_1): Update.
7877 (trace_dump_actions): Update.
7878 * dwarf2loc.c (access_memory): Update.
7879 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7880 * ax-general.c (new_agent_expr): Update.
7881 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7882 (gen_trace_for_return_address): Add argument.
7883 (trace_kludge, trace_string_kludge): Remove.
7884 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7885 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7886 (gen_trace_for_var): Add 'trace_string' argument.
7887 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7888 (gen_printf, agent_eval_command_one): Update.
7889
b2f83c08
TT
78902013-03-21 Tom Tromey <tromey@redhat.com>
7891
7892 PR exp/15109:
7893 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7894 Handle FILENAME token.
7895
9507860e
TT
78962013-03-21 Tom Tromey <tromey@redhat.com>
7897
7898 * c-exp.y (YYPRINT): Define.
7899 (c_print_token): New function.
7900
e403aa4b
TT
79012013-03-21 Tom Tromey <tromey@redhat.com>
7902
7903 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7904
af307d6a
YQ
79052013-03-21 Yao Qi <yao@codesourcery.com>
7906
7907 * ctf.c: Include "gdb_stat.h".
7908 [USE_WIN32API]: New macro 'mkdir'.
7909 (ctf_start): Use permission bits macros if they are defined.
7910
fb81d016
KS
79112013-03-20 Keith Seitz <keiths@redhat.com>
7912
7913 * breakpoint.h (struct breakpoint): Add comment to
7914 extra_string indicating that this member is mallod'd.
7915 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7916
ef0026f0
PA
79172013-03-20 Pedro Alves <palves@redhat.com>
7918
7919 PR gdb/15289
7920
7921 * cli/cli-setshow.c (do_set_command)
7922 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7923 the result of parsing the command argument. Throw error if the
7924 value is greater than UINT_MAX. Print the invalid value with
7925 plongest.
7926 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7927 result of parsing the command argument. Throw error if the value
7928 is greater than INT_MAX, not greater or equal. Also throw error
7929 if the value is less than INT_MIN. Print the invalid value with
7930 plongest.
7931 <var_zuinteger_unlimited>: Throw error if the value is greater
7932 than INT_MAX, not greater or equal.
7933 (do_show_command) <var_integer, var_zinteger,
7934 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7935
24d6c2a0
TT
79362013-03-20 Tom Tromey <tromey@redhat.com>
7937
7938 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7939 if possible.
7940 * dwarf2read.c (read_func_scope): Remove old FIXME.
7941 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7942 not LOC_COMPUTED.
7943 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7944 Unconditionally call via computed ops, if possible.
7945 * printcmd.c (address_info): Unconditionally call via computed ops,
7946 if possible.
7947 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7948 if possible.
7949 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7950 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7951 if possible.
7952
f1e6e072
TT
79532013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7954 Tom Tromey <tromey@redhat.com>
7955
7956 PR symtab/8421:
7957 * coffread.c (coff_register_index): New global.
7958 (process_coff_symbol, coff_read_enum_type): Set
7959 SYMBOL_ACLASS_INDEX.
7960 (_initialize_coffread): Initialize new global.
7961 * dwarf2loc.c (locexpr_find_frame_base_location)
7962 (dwarf2_block_frame_base_locexpr_funcs)
7963 (loclist_find_frame_base_location)
7964 (dwarf2_block_frame_base_loclist_funcs): New.
7965 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7966 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7967 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7968 (dwarf2_block_frame_base_loclist_funcs): New.
7969 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7970 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7971 globals.
7972 (read_func_scope): Update.
7973 (fixup_go_packaging, mark_common_block_symbol_computed)
7974 (var_decode_location, new_symbol_full, dwarf2_const_value):
7975 Set SYMBOL_ACLASS_INDEX.
7976 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7977 (_initialize_dwarf2_read): Initialize new globals.
7978 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7979 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7980 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7981 globals.
7982 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7983 (_initialize_mdebugread): Initialize new globals.
7984 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7985 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7986 (stab_register_index, stab_regparm_index): New globals.
7987 (define_symbol, read_enum_type, common_block_end): Set
7988 SYMBOL_ACLASS_INDEX.
7989 (_initialize_stabsread): Initialize new globals.
7990 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7991 globals.
7992 (MAX_SYMBOL_IMPLS): New define.
7993 (register_symbol_computed_impl, register_symbol_block_impl)
7994 (register_symbol_register_impl)
7995 (initialize_ordinary_address_classes): New functions.
7996 (_initialize_symtab): Call initialize_ordinary_address_classes.
7997 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7998 (struct symbol_impl): New.
7999 (SYMBOL_ACLASS_BITS): New define.
8000 (struct symbol) <aclass, ops>: Remove fields.
8001 <aclass_index>: New field.
8002 (symbol_impls): Declare.
8003 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8004 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8005 (register_symbol_computed_impl, register_symbol_block_impl)
8006 (register_symbol_register_impl): Declare.
8007 (struct symbol_computed_ops): Add location_has_loclist.
8008 (struct symbol_block_ops): New.
8009 (SYMBOL_BLOCK_OPS): New.
8010 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8011
dbccfd4c
TT
80122013-03-20 Tom Tromey <tromey@redhat.com>
8013
8014 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8015 (print_partial_symbols, recursively_search_psymtabs): Use
8016 PSYMBOL_CLASS.
8017
e3f1ad4f
PM
80182013-03-20 Pierre Muller <muller@sourceware.org>
8019
8020 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8021 addtion, subtraction, multiplication and division binary operator.
8022
460014f5
JK
80232013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8024
8025 Code cleanup.
8026 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8027 * bsd-kvm.c (bsd_kvm_close): Likewise.
8028 * bsd-uthread.c (bsd_uthread_close): Likewise.
8029 * corelow.c (core_close): Likewise.
8030 (core_close_cleanup): Remove parameter quitting from a caller.
8031 * event-top.c (async_disconnect): Likewise.
8032 * exec.c (exec_close_1): Remove parameter quitting.
8033 * go32-nat.c (go32_close): Likewise.
8034 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8035 parameter quitting from a caller.
8036 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8037 variable.
8038 (mips_linux_close): Remove parameter quitting. Remove parameter
8039 quitting from a caller.
8040 * monitor.c (monitor_close): Remove parameter quitting.
8041 * monitor.h (monitor_close): Likewise.
8042 * record-btrace.c (record_btrace_close): Likewise.
8043 * record-full.c (record_full_close): Likewise.
8044 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8045 it also from fprintf_unfiltered.
8046 * remote-mips.c (mips_close): Remove parameter quitting.
8047 (mips_detach): Remove parameter quitting from a caller.
8048 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8049 (gdbsim_close): Remove duplicate function comment. Remove parameter
8050 quitting and remove it also from printf_filtered.
8051 * remote.c (remote_close): Remove parameter quitting.
8052 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8053 * target.c (update_current_target): Remove parameter int from to_close
8054 de_fault.
8055 (push_target, unpush_target, pop_target): Remove parameter quitting from
8056 a caller.
8057 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8058 Remove parameter quitting from a caller.
8059 (target_preopen): Remove parameter quitting from a caller.
8060 (target_close): Remove parameter quitting. Remove parameter quitting
8061 from a caller two times. Remove parameter quitting also from
8062 fprintf_unfiltered.
8063 * target.h (struct target_ops): Remove parameter quitting and as int
8064 from fields to_xclose and to_close.
8065 (extern struct target_ops current_target):
8066 (target_close, pop_all_targets): Remove parameter quitting. Update the
8067 comment.
8068 (pop_all_targets_above): Remove parameter quitting.
8069 * top.c (quit_target): Remove parameter quitting from a caller.
8070 * tracepoint.c (tfile_close): Remove parameter quitting.
8071 * windows-nat.c (windows_close): Remove parameter quitting.
8072
35a7120b
CV
80732013-03-20 Corinna Vinschen <vinschen@redhat.com>
8074
8075 * windows-nat.c (handle_output_debug_string): Replace call
8076 to string_to_core_addr with call to strtoull.
8077
8249a5a9
YQ
80782013-03-20 Yao Qi <yao@codesourcery.com>
8079
8080 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8081 and write it to CTF metadata.
8082
2c15ef43
CV
80832013-03-19 Corinna Vinschen <vinschen@redhat.com>
8084
8085 * windows-nat.c (handle_output_debug_string): Change type of n to
8086 SIZE_T to avoid crash on 64 bit systems.
8087
1cdd3232
EZ
80882013-03-17 Eli Zaretskii <eliz@gnu.org>
8089
8090 * python/python-internal.h (HAVE_SNPRINTF)
8091 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8092 about redefinition of snprintf by pyerrors.h.
8093
3cb2ab1a
SE
80942013-03-15 Steve Ellcey <sellcey@mips.com>
8095
8096 * remote-sim.c (sim_command_completer): Make char arguments const.
8097
9ce98649
TT
80982013-03-15 Tom Tromey <tromey@redhat.com>
8099
8100 PR c++/15116:
8101 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8102
dccee2de
TT
81032013-03-14 Tom Tromey <tromey@redhat.com>
8104
8105 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8106 New fields.
8107 (get_file_crc): Move from symfile.c.
8108 (gdb_bfd_crc): New function.
8109 * gdb_bfd.h (gdb_bfd_crc): Declare.
8110 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8111 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8112 (separate_debug_file_exists): Use gdb_bfd_crc.
8113
cc0ea93c
TT
81142013-03-14 Tom Tromey <tromey@redhat.com>
8115
8116 * symfile.c (get_debug_link_info): Remove.
8117 (find_separate_debug_file_by_debuglink): Use
8118 bfd_get_debug_link_info.
8119
08c23b0d
TT
81202013-03-14 Tom Tromey <tromey@redhat.com>
8121
8122 * symtab.c (error_in_psymtab_expansion): New function.
8123 (lookup_symbol_aux_quick)
8124 (basic_lookup_transparent_type_quick): Remove "last resort"
8125 code. Use error_in_psymtab_expansion.
8126
288e77a7
JK
81272013-03-14 Doug Evans <dje@google.com>
8128 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8131 any successful compare_filenames_for_search or FILENAME_CMP.
8132 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8133 * symtab.c (iterate_over_some_symtabs): Likewise.
8134
8f1b8b82
JK
81352013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * source.c (print_source_lines_base): Make a local copy of
8138 symtab_to_fullname.
8139
23eb71e4
JK
81402013-03-14 Hui Zhu <hui_zhu@mentor.com>
8141 Jan Kratochvil <jan.kratochvil@redhat.com>
8142
8143 * source.c (print_source_lines_base): Suppress "file" for TUI.
8144
bb869963
SDJ
81452013-03-14 Keith Seitz <keiths@redhat.com>
8146 Alan Matsuoka <alanm@redhat.com>
8147
8148 PR c++/15203
8149 PR c++/15210
8150 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8151 TYPE_CODE_METHOD.
8152 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8153 symbols.
8154
d6682f9e
YQ
81552013-03-14 Yao Qi <yao@codesourcery.com>
8156
8157 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8158 status to tfile if trace is stopped by command 'tstop'.
8159
a22fa6e4
YQ
81602013-03-14 Yao Qi <yao@codesourcery.com>
8161
8162 * tracepoint.c (tfile_write_status): Write trace notes and user
8163 name into tfile if they are not NULL.
8164
d0353e76
YQ
81652013-03-14 Hui Zhu <hui@codesourcery.com>
8166 Yao Qi <yao@codesourcery.com>
8167
8168 * Makefile.in (REMOTE_OBS): Add ctf.o.
8169 (SFILES): Add ctf.c.
8170 (HFILES_NO_SRCDIR): Add ctf.h.
8171 * ctf.c, ctf.h: New files.
8172 * tracepoint.c: Include 'ctf.h'.
8173 (collect_pseudocommand): Remove static.
8174 (trace_save_command): Parse option "-ctf".
8175 Produce different trace file writers per option.
8176 Adjust output message.
8177 (trace_save_tfile, trace_save_ctf): New.
8178 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8179 * mi/mi-main.c: Include 'ctf.h'.
8180 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8181 trace_save_tfile or trace_save_ctf.
8182 * NEWS: Mention these changes.
8183
3f43bc09
YQ
81842013-03-14 Yao Qi <yao@codesourcery.com>
8185
8186 * tracepoint.c (trace_file_writer_xfree): New.
8187 (struct tfile_writer_data): New.
8188 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8189 (tfile_write_header, tfile_write_regblock_type): New.
8190 (tfile_write_status, tfile_write_uploaded_tsv): New.
8191 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8192 (tfile_write_raw_data, (tfile_end): New.
8193 (tfile_write_ops): New global variable.
8194 (TRACE_WRITE_R_BLOCK): New macro.
8195 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8196 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8197 (TRACE_WRITE_V_BLOCK): New macro.
8198 (trace_save): Add extra one parameter WRITER. Make it static.
8199 Use WRITER to writer trace.
8200 (tfile_trace_file_writer_new): New.
8201 (trace_save_command): Caller update.
8202 (trace_save_tfile): Write trace data in TFILE format.
8203 * tracepoint.h (struct trace_frame_write_ops): New.
8204 (struct trace_file_write_ops): New.
8205 (struct trace_file_writer): New.
8206 (trace_save): Remove its declaration.
8207 (trace_save_tfile): Declare it.
8208 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8209 instead of trace_save.
8210
58665b40
PA
82112013-03-13 Pedro Alves <palves@redhat.com>
8212
8213 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8214
10217050
PA
82152013-03-13 Pedro Alves <palves@redhat.com>
8216
8217 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8218 commented out code.
8219 * demangle.c (current_demangling_style_string): Make it const.
8220 (set_demangling_command): Assert the demangling style is known.
8221 Remove all handling of unknown styles. Set
8222 'current_demangling_style_string' to an element of the
8223 demangling_style_names array.
8224 (set_demangling_style): Delete.
8225 (_initialize_demangler): Set current_demangling_style_string to the
8226 element of the demangling_style_names array that corresponds to
8227 the default demangling style. Remove FIXME note. Don't call
8228 set_demangling_style.
8229 * gdb-demangle.h (set_demangling_style): Remove declaration.
8230
6f937416
PA
82312013-03-13 Pedro Alves <palves@redhat.com>
8232
8233 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8234 fields const.
8235 (ada_make_symbol_completion_list): Make "text0" parameter const.
8236 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8237 * breakpoint.c (condition_completer): Make "text" and "word"
8238 parameters const. Adjust.
8239 (check_tracepoint_command): Adjust to validate_actionline
8240 prototype change.
8241 (catch_syscall_completer): Make "text" and "word" parameters
8242 const.
8243 * cli/cli-cmds.c (show_user): Make "comname" local const.
8244 (valid_command_p): Make "command" parameter const.
8245 (alias_command): Make "alias_prefix" and "command_prefix" locals
8246 const.
8247 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8248 (add_alias_cmd): Make "name" and "oldname" parameters const.
8249 Adjust. No longer make copy of OLDNAME.
8250 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8251 (add_setshow_cmd_full, add_setshow_enum_cmd)
8252 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8253 (add_setshow_filename_cmd, add_setshow_string_cmd)
8254 (add_setshow_string_noescape_cmd)
8255 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8256 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8257 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8258 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8259 Make "name" parameter const.
8260 (help_cmd): Rename "command" parameter to "arg". New const local
8261 "command".
8262 (find_cmd): Make "command" parameter const.
8263 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8264 deprecated_cmd_warning prototype change.
8265 (undef_cmd_error): Make "cmdtype" parameter const.
8266 (lookup_cmd): Make "line" parameter const.
8267 (deprecated_cmd_warning): Change type of "text" parameter to
8268 pointer to const char, from pointer to pointer to char. Adjust.
8269 (lookup_cmd_composition): Make "text" parameter const.
8270 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8271 parameters const.
8272 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8273 const.
8274 * cli/cli-script.c (validate_comname): Make "tem" local const.
8275 (define_command): New const local "tem_c". Use it in calls to
8276 lookup_cmd.
8277 (document_command): Make "tem" and "comfull" locals const.
8278 (show_user_1): Make "prefix" and "name" parameters const.
8279 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8280 const.
8281 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8282 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8283 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8284 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8285 (complete_on_enum, add_setshow_enum_cmd)
8286 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8287 (add_setshow_filename_cmd, add_setshow_string_cmd)
8288 (add_setshow_string_noescape_cmd)
8289 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8290 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8291 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8292 Change prototypes, constifying strings.
8293 * completer.c (noop_completer, filename_completer): Make "text"
8294 and "prefix" parameters const.
8295 (location_completer, expression_completer)
8296 (complete_line_internal): Make "text" and "prefix" parameters
8297 const and adjust.
8298 (command_completer, signal_completer): Make "text" and "prefix"
8299 parameters const.
8300 * completer.h (noop_completer, filename_completer)
8301 (expression_completer, location_completer, command_completer)
8302 (signal_completer): Change prototypes.
8303 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8304 parameters const.
8305 * cp-abi.c (cp_abi_completer): Likewise.
8306 * expression.h (parse_expression_for_completion): Change
8307 prototype.
8308 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8309 parameters const.
8310 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8311 * infrun.c (handle_completer): Make "text" and "word" parameters
8312 const.
8313 * interps.c (interpreter_completer): Make "text" and "word"
8314 parameters const.
8315 * language.h (struct language_defn)
8316 <la_make_symbol_completion_list>: Make "text" and "word"
8317 parameters const.
8318 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8319 (parse_exp_in_context): Rename to ...
8320 (parse_exp_in_context_1): ... this.
8321 (parse_exp_in_context): Reimplement, with const hack from
8322 parse_exp_1.
8323 (parse_expression_for_completion): Make "string" parameter const.
8324 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8325 to pointer to const char. Adjust.
8326 (print_command_1): Make "exp" parameter const.
8327 (output_command): Rename to ...
8328 (output_command_const): ... this. Make "exp" parameter const.
8329 (output_command): Reimplement.
8330 (x_command): Adjust.
8331 (display_command): Rename "exp" parameter to "arg". New "exp"
8332 local, const version of "arg".
8333 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8334 "cmd_name" local const.
8335 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8336 call.
8337 (cmdpy_completer): Make "text" and "word" parameters const.
8338 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8339 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8340 const.
8341 * remote.c (_initialize_remote): Make "cmd_name" local const.
8342 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8343 parameters const. Adjust.
8344 (completion_list_add_fields): Make "sym_text", "text" and "word"
8345 parameters const.
8346 (struct add_name_data) <sym_text, text, word>: Make fields const.
8347 (default_make_symbol_completion_list_break_on): Make "text" and
8348 "word" parameters const. Adjust locals.
8349 (default_make_symbol_completion_list)
8350 (make_symbol_completion_list, make_symbol_completion_type)
8351 (make_symbol_completion_list_fn): Make "text" and "word"
8352 parameters const.
8353 (make_file_symbol_completion_list): Make "text", "word" and
8354 "srcfile" parameters const. Adjust locals.
8355 (add_filename_to_list): Make "text" and "word" parameters const.
8356 (struct add_partial_filename_data) <text, word>: Make fields
8357 const.
8358 (make_source_files_completion_list): Make "text" and "word"
8359 parameters const.
8360 * symtab.h (default_make_symbol_completion_list_break_on)
8361 (default_make_symbol_completion_list, make_symbol_completion_list)
8362 (make_symbol_completion_type enum type_code)
8363 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8364 (make_source_files_completion_list): Change prototype.
8365 * top.c (execute_command): Adjust to pass pointer to pointer to
8366 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8367 change.
8368 (set_verbose): Make "cmdname" local const.
8369 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8370 and adjust.
8371 (validate_actionline): Make "line" parameter a pointer to const
8372 char, and adjust.
8373 (encode_actions_1): Make "action_exp" local const, and adjust.
8374 (encode_actions): Adjust.
8375 (replace_comma): Delete.
8376 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8377 const, and adjust. Don't frob the action string while splitting
8378 it at commas. Instead, make a copy of each split substring in
8379 turn.
8380 (trace_dump_command): Adjust to validate_actionline prototype
8381 change.
8382 * tracepoint.h (decode_agent_options, decode_agent_options)
8383 (encode_actions, validate_actionline): Change prototypes.
8384 * valprint.h (output_command): Delete declaration.
8385 (output_command_const): Declare.
8386 * value.c (function_destroyer): Cast const away in xfree call.
8387
a0bcdaa7
PA
83882013-03-13 Pedro Alves <palves@redhat.com>
8389
8390 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8391 rather than casting 'const char * const *' to 'const char **'.
8392 * ada-lex.l (processInt): Make "trailer" local const. Remove
8393 'const char **' cast.
8394 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8395 locals, and use those as strtol output pointer, instead than doing
8396 invalid casts to from 'const char **' to 'char **'.
8397 (_initialize_demangle): Remove cast.
8398 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8399 locals, and use those as strtol output pointer, instead than doing
8400 invalid casts to from 'const char **' to 'char **'.
8401 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8402 casts.
8403 * stap-probe.c (stap_parse_register_operand)
8404 (stap_parse_single_operand): Likewise.
8405
8ddb1965
YQ
84062013-03-13 Yao Qi <yao@codesourcery.com>
8407
8408 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8409 the last matched 'V' blcok in trace frame.
8410
2d450646
JB
84112013-03-12 Joel Brobecker <brobecker@adacore.com>
8412
8413 * NEWS: Create a new section for the next release branch.
8414 Rename the section of the current branch, now that it has
8415 been cut.
8416
b4b79973 84172013-03-12 Joel Brobecker <brobecker@adacore.com>
8418
8419 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8420 * version.in: Bump version to 7.6.50.20130312-cvs.
8421
ee047554
KS
84222013-03-12 Keith Seitz <keiths@redhat.com>
8423
8424 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8425 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8426 Remove temporary copy of input string.
8427 (mi_execute_command_wrapper): Make "cmd" const.
8428 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8429 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8430 Use const strings.
8431 (mi_parse): Make "cmd" const.
8432 Use const strings.
8433 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8434
bbc13ae3
KS
84352013-03-12 Keith Seitz <keiths@redhat.com>
8436
8437 * ada-lang.c (ada_read_renaming_var_value): Pass const
8438 pointer to expression string to parse_exp_1.
8439 (create_excep_cond_exprs): Likewise.
8440 * ax-gdb.c (agent_eval_command_one): Likewise.
8441 (maint_agent_printf_command): Likewise.
8442 Constify much of the string handling/parsing.
8443 * breakpoint.c (set_breakpoint_condition): Pass const
8444 pointer to expression string to parse_exp_1.
8445 (update_watchpoint): Likewise.
8446 (parse_cmd_to_aexpr): Constify string handling.
8447 Pass const pointer to parse_exp_1.
8448 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8449 (find_condition_and_thread): Likewise.
8450 Make TOK const.
8451 (watch_command_1): Make "arg" const.
8452 Constify string handling.
8453 Copy the expression string instead of changing the input
8454 string.
8455 (update_breakpoint_location): Pass const pointer to
8456 parse_exp_1.
8457 * eval.c (parse_and_eval_address): Make "exp" const.
8458 (parse_to_comma_and_eval): Make "expp" const.
8459 (parse_and_eval): Make "exp" const.
8460 * expression.h (parse_expression): Make argument const.
8461 (parse_exp_1): Make first argument const.
8462 * findcmd.c (parse_find_args): Treat "args" as const.
8463 * linespec.c (parse_linespec): Pass const pointer to
8464 linespec_expression_to_pc.
8465 (linespec_expression_to_pc): Make "exp_ptr" const.
8466 * parse.c (parse_exp_1): Make "stringptr" const.
8467 Make a copy of the expression to pass to parse_exp_in_context until
8468 this whole interface can be constified.
8469 (parse_expression): Make "string" const.
8470 * printcmd.c (ui_printf): Treat "arg" as const.
8471 Handle const strings.
8472 * tracepoint.c (validate_actionline): Pass const pointer to
8473 all calls to parse_exp_1.
8474 (encode_actions_1): Likewise.
8475 * value.h (parse_to_comma_and_eval): Make argument const.
8476 (parse_and_eval_address): Likewise.
8477 (parse_and_eval): Likewise.
8478 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8479 (varobj_set_value): Likewise.
8480 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8481 constify string handling.
8482 Pass const pointers to parse_and_eval_address and
8483 parse_to_comman_and_eval.
8484 * cli/cli-utils.c (skip_to_space): Rename to ...
8485 (skip_to_space_const): ... this. Handle const strings.
8486 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8487 skip_to_space_const.
8488 (skip_to_space_const): Declare.
8489 * common/format.c (parse_format_string): Make "arg" const.
8490 Handle const strings.
8491 * common/format.h (parse_format_string): Make "arg" const.
8492 * gdbserver/ax.c (ax_printf): Make "format" const.
8493 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8494 of the expression string.
8495
f3cec7e6
HZ
84962013-03-12 Hui Zhu <hui@codesourcery.com>
8497
8498 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8499
9df7235c
HZ
85002013-03-12 Yao Qi <yao@codesourcery.com>
8501 Hui Zhu <hui@codesourcery.com>
8502
8503 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8504 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8505 DW_OP_deref_size.
8506
82d049ab
PH
85072013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8508
5f8e0b8f
MF
8509 * ada-lex.l (rules): Only recognize 'thread' as a
8510 delimiter when followed by numerals, as for c-exp.y.
8511 Use new rewind_to_char function to rewind the input for
8512 expression-delimiting tokens.
8513 (rewind_to_char): New function.
82d049ab 8514
8c1fb155
JK
85152013-03-11 Pedro Alves <palves@redhat.com>
8516 Jan Kratochvil <jan.kratochvil@redhat.com>
8517
8518 * configure: Regenerate.
8519 * configure.ac (check dynamic export flag): Link python test with
8520 $PYTHON_LIBS.
8521
cc81e1c6
DE
85222013-03-11 Doug Evans <dje@google.com>
8523 Keith Seitz <keiths@redhat.com>
8524
8525 * linespec.c (find_linespec_symbols): Call find_function_symbols
8526 first, and then call lookup_prefix_sym/find_method.
8527
39086a0e
PA
85282013-03-11 Pedro Alves <palves@redhat.com>
8529
8530 * charset.c (convert_between_encodings): Don't cast between
8531 different pointer to pointer types. Instead, make the 'inp' local
8532 be of the type iconv expects.
8533 (wchar_iterate): Don't cast between different pointer to pointer
8534 types. Instead, use new pointer local of the type iconv expects.
8535 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8536 Add new local of type char pointer, and use it to get a
8537 char/string view of the byte buffer, instead of casting between
8538 pointer to pointer types.
8539
90585175
HAQ
85402013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8541
8542 * remote.c (remote_set_trace_buffer_size): Move != operator
8543 to the start of next line to fix an ARI warning.
8544
59ea5688
MM
85452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8546
8547 * NEWS: Add record changes.
8548
946287b7
MM
85492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8550
8551 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8552 the instruction history disassembly.
8553 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8554 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8555
afedecd3
MM
85562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8557
8558 * Makefile.in (SFILES): Add record-btrace.c
8559 (COMMON_OBS): Add record-btrace.o
8560 * record-btrace.c: New.
8561 * objfiles.c: Include btrace.h.
8562 (free_objfile): call btrace_free_objfile.
8563
15984c13
MM
85642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8565
8566 * target.c (target_call_history, target_call_history_from,
8567 target_call_history_range): New.
8568 * target.h (target_ops) <to_call_history, to_call_history_from,
8569 to_call_history_range>: New fields.
8570 (target_call_history, target_call_history_from,
8571 target_call_history_range): New declaration.
8572 * record.c (get_call_history_modifiers, cmd_record_call_history,
8573 record_call_history_size): New.
8574 (_initialize_record): Add the "record function-call-history" command.
8575 Add "set/show record function-call-history-size" commands.
8576 * record.h (record_print_flag): New.
8577
67c86d06
MM
85782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8579
8580 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8581 to_insn_history_range>: New fields.
8582 (target_insn_history): New.
8583 (target_insn_history_from): New.
8584 (target_insn_history_range): New.
8585 * target.c (target_insn_history): New.
8586 (target_insn_history_from): New.
8587 (target_insn_history_range): New.
8588 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8589 (record_insn_history_size): New.
8590 (get_insn_number): New.
8591 (get_context_size): New.
8592 (no_chunk): New.
8593 (get_insn_history_modifiers): New.
8594 (cmd_record_insn_history): New.
8595 (_initialize_record): Add "set/show record instruction-history-size"
8596 command. Add "record instruction-history" command.
8597
7c1687a9
MM
85982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8599
8600 * record.h (record_disconnect): New.
8601 (record_detach): New.
8602 (record_mourn_inferior): New.
8603 (record_kill): New.
8604 * record-full.c (record_disconnect, record_detach,
8605 record_mourn_inferior, record_kill): Move to...
8606 * record.c: ...here.
8607 (DEBUG): New.
8608 (record_stop): New.
8609 (record_unpush): New.
8610 (cmd_record_stop): Call record_stop. Replace unpush_target
8611 call with record_unpush call.
8612 (record_disconnect, record_detach): Assert that the target
8613 is of record stratum. Call record_unpush, record_stop, and
8614 DEBUG.
8615 (record_mourn_inferior, record_kill): Assert that the target
8616 is of record stratum. Call record_unpush and DEBUG.
8617
25ea693b
MM
86182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8619
8620 * record-full.h, record-full.c (record_memory_query): Rename
8621 to ...
8622 (record_full_memory_query): ...this. Update all users.
8623 (record_arch_list_add_reg): Rename to ...
8624 (record_full_arch_list_add_reg): ...this. Update all users.
8625 (record_arch_list_add_mem): Rename to ...
8626 (record_full_arch_list_add_mem): ...this. Update all users.
8627 (record_arch_list_add_end): Rename to ...
8628 (record_full_arch_list_add_end): ...this. Update all users.
8629 (record_gdb_operation_disable_set): Rename to ...
8630 (record_full_gdb_operation_disable_set): ...this.
8631 Update all users.
8632
88d1aa9d
MM
86332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8634
8635 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8636 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8637 (RECORD_IS_REPLAY): Renamed to ...
8638 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8639 (RECORD_FILE_MAGIC): Renamed to ...
8640 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8641 (record_mem_entry): Renamed to ...
8642 (record_full_mem_entry): ... this. Updated all users.
8643 (record_reg_entry): Renamed to ...
8644 (record_full_reg_entry): ... this. Updated all users.
8645 (record_end_entry): Renamed to ...
8646 (record_full_end_entry): ... this. Updated all users.
8647 (record_type) <record_end, record_reg, record_mem>: Renamed
8648 to ...
8649 (record_full_type) <record_full_end, record_full_reg,
8650 record_full_mem>: ... this. Updated all users.
8651 (record_entry): Renamed to ...
8652 (record_full_entry): ... this. Updated all users.
8653 (record_core_buf_entry): Renamed to ...
8654 (record_full_core_buf_entry): ... this. Updated all users.
8655 (record_core_regbuf): Renamed to ...
8656 (record_full_core_regbuf): ... this. Updated all users.
8657 (record_core_start): Renamed to ...
8658 (record_full_core_start): ... this. Updated all users.
8659 (record_core_end): Renamed to ...
8660 (record_full_core_end): ... this. Updated all users.
8661 (record_core_buf_list): Renamed to ...
8662 (record_full_core_buf_list): ... this. Updated all users.
8663 (record_first): Renamed to ...
8664 (record_full_first): ... this. Updated all users.
8665 (record_list): Renamed to ...
8666 (record_full_list): ... this. Updated all users.
8667 (record_arch_list_head): Renamed to ...
8668 (record_full_arch_list_head): ... this. Updated all users.
8669 (record_arch_list_tail): Renamed to ...
8670 (record_full_arch_list_tail): ... this. Updated all users.
8671 (record_stop_at_limit): Renamed to ...
8672 (record_full_stop_at_limit): ... this. Updated all users.
8673 (record_insn_max_num): Renamed to ...
8674 (record_full_insn_max_num): ... this. Updated all users.
8675 (record_insn_num): Renamed to ...
8676 (record_full_insn_num): ... this. Updated all users.
8677 (record_insn_count): Renamed to ...
8678 (record_full_insn_count): ... this. Updated all users.
8679 (record_ops): Renamed to ...
8680 (record_full_ops): ... this. Updated all users.
8681 (record_core_ops): Renamed to ...
8682 (record_full_core_ops): ... this. Updated all users.
8683 (set_record_cmdlist): Renamed to ...
8684 (set_record_full_cmdlist): ... this. Updated all users.
8685 (show_record_cmdlist): Renamed to ...
8686 (show_record_full_cmdlist): ... this. Updated all users.
8687 (record_cmdlist): Renamed to ...
8688 (record_full_cmdlist): ... this. Updated all users.
8689 (record_beneath_to_resume_ops): Renamed to ...
8690 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8691 (record_beneath_to_resume): Renamed to ...
8692 (record_full_beneath_to_resume): ... this. Updated all users.
8693 (record_beneath_to_wait_ops): Renamed to ...
8694 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8695 (record_beneath_to_wait): Renamed to ...
8696 (record_full_beneath_to_wait): ... this. Updated all users.
8697 (record_beneath_to_store_registers_ops): Renamed to ...
8698 (record_full_beneath_to_store_registers_ops): ... this.
8699 Updated all users.
8700 (record_beneath_to_store_registers): Renamed to ...
8701 (record_full_beneath_to_store_registers): ... this.
8702 Updated all users.
8703 (record_beneath_to_xfer_partial_ops): Renamed to ...
8704 (record_full_beneath_to_xfer_partial_ops): ... this.
8705 Updated all users.
8706 (record_beneath_to_xfer_partial): Renamed to ...
8707 (record_full_beneath_to_xfer_partial): ... this.
8708 Updated all users.
8709 (record_beneath_to_insert_breakpoint): Renamed to ...
8710 (record_full_beneath_to_insert_breakpoint): ... this.
8711 Updated all users.
8712 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8713 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8714 Updated all users.
8715 (record_beneath_to_stopped_data_address): Renamed to ...
8716 (record_full_beneath_to_stopped_data_address): ... this.
8717 Updated all users.
8718 (record_beneath_to_async): Renamed to ...
8719 (record_full_beneath_to_async): ... this. Updated all users.
8720 (record_goto_insn): Renamed to ...
8721 (record_full_goto_insn): ... this. Updated all users.
8722 (record_save): Renamed to ...
8723 (record_full_save): ... this. Updated all users.
8724 (record_reg_alloc): Renamed to ...
8725 (record_full_reg_alloc): ... this. Updated all users.
8726 (record_reg_release): Renamed to ...
8727 (record_full_reg_release): ... this. Updated all users.
8728 (record_mem_alloc): Renamed to ...
8729 (record_full_mem_alloc): ... this. Updated all users.
8730 (record_mem_release): Renamed to ...
8731 (record_full_mem_release): ... this. Updated all users.
8732 (record_end_alloc): Renamed to ...
8733 (record_full_end_alloc): ... this. Updated all users.
8734 (record_end_release): Renamed to ...
8735 (record_full_end_release): ... this. Updated all users.
8736 (record_entry_release): Renamed to ...
8737 (record_full_entry_release): ... this. Updated all users.
8738 (record_list_release): Renamed to ...
8739 (record_full_list_release): ... this. Updated all users.
8740 (record_list_release_following): Renamed to ...
8741 (record_full_list_release_following): ... this.
8742 Updated all users.
8743 (record_list_release_first): Renamed to ...
8744 (record_full_list_release_first): ... this. Updated all users.
8745 (record_arch_list_add): Renamed to ...
8746 (record_full_arch_list_add): ... this. Updated all users.
8747 (record_get_loc): Renamed to ...
8748 (record_full_get_loc): ... this. Updated all users.
8749 (record_check_insn_num): Renamed to ...
8750 (record_full_check_insn_num): ... this. Updated all users.
8751 (record_arch_list_cleanups): Renamed to ...
8752 (record_full_arch_list_cleanups): ... this. Updated all users.
8753 (record_message): Renamed to ...
8754 (record_full_message): ... this. Updated all users.
8755 (record_message_wrapper): Renamed to ...
8756 (record_full_message_wrapper): ... this. Updated all users.
8757 (record_message_wrapper_safe): Renamed to ...
8758 (record_full_message_wrapper_safe): ... this. Updated all users.
8759 (record_gdb_operation_disable): Renamed to ...
8760 (record_full_gdb_operation_disable): ... this. Updated all users.
8761 (record_hw_watchpoint): Renamed to ...
8762 (record_full_hw_watchpoint): ... this. Updated all users.
8763 (record_exec_insn): Renamed to ...
8764 (record_full_exec_insn): ... this. Updated all users.
8765 (record_restore): Renamed to ...
8766 (record_full_restore): ... this. Updated all users.
8767 (record_async_inferior_event_token): Renamed to ...
8768 (record_full_async_inferior_event_token): ... this.
8769 Updated all users.
8770 (record_async_inferior_event_handler): Renamed to ...
8771 (record_full_async_inferior_event_handler): ... this.
8772 Updated all users.
8773 (record_core_open_1): Renamed to ...
8774 (record_full_core_open_1): ... this. Updated all users.
8775 (record_open_1): Renamed to ...
8776 (record_full_open_1): ... this. Updated all users.
8777 (record_open): Renamed to ...
8778 (record_full_open): ... this. Updated all users.
8779 (record_close): Renamed to ...
8780 (record_full_close): ... this. Updated all users.
8781 (record_resume_step): Renamed to ...
8782 (record_full_resume_step): ... this. Updated all users.
8783 (record_resumed): Renamed to ...
8784 (record_full_resumed): ... this. Updated all users.
8785 (record_execution_dir): Renamed to ...
8786 (record_full_execution_dir): ... this. Updated all users.
8787 (record_resume): Renamed to ...
8788 (record_full_resume): ... this. Updated all users.
8789 (record_get_sig): Renamed to ...
8790 (record_full_get_sig): ... this. Updated all users.
8791 (record_sig_handler): Renamed to ...
8792 (record_full_sig_handler): ... this. Updated all users.
8793 (record_wait_cleanups): Renamed to ...
8794 (record_full_wait_cleanups): ... this. Updated all users.
8795 (record_wait_1): Renamed to ...
8796 (record_full_wait_1): ... this. Updated all users.
8797 (record_wait): Renamed to ...
8798 (record_full_wait): ... this. Updated all users.
8799 (record_stopped_by_watchpoint): Renamed to ...
8800 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8801 (record_disconnect): Renamed to ...
8802 (record_full_disconnect): ... this. Updated all users.
8803 (record_detach): Renamed to ...
8804 (record_full_detach): ... this. Updated all users.
8805 (record_mourn_inferior): Renamed to ...
8806 (record_full_mourn_inferior): ... this. Updated all users.
8807 (record_kill): Renamed to ...
8808 (record_full_kill): ... this. Updated all users.
8809 (record_stopped_data_address): Renamed to ...
8810 (record_full_stopped_data_address): ... this. Updated all users.
8811 (record_registers_change): Renamed to ...
8812 (record_full_registers_change): ... this. Updated all users.
8813 (record_store_registers): Renamed to ...
8814 (record_full_store_registers): ... this. Updated all users.
8815 (record_xfer_partial): Renamed to ...
8816 (record_full_xfer_partial): ... this. Updated all users.
8817 (record_breakpoint): Renamed to ...
8818 (record_full_breakpoint): ... this. Updated all users.
8819 (record_breakpoint_p): Renamed to ...
8820 (record_full_breakpoint_p): ... this. Updated all users.
8821 (record_breakpoints): Renamed to ...
8822 (record_full_breakpoints): ... this. Updated all users.
8823 (record_sync_record_breakpoints): Renamed to ...
8824 (record_full_sync_record_breakpoints): ... this.
8825 Updated all users.
8826 (record_init_record_breakpoints): Renamed to ...
8827 (record_full_init_record_breakpoints): ... this.
8828 Updated all users.
8829 (record_insert_breakpoint): Renamed to ...
8830 (record_full_insert_breakpoint): ... this. Updated all users.
8831 (record_remove_breakpoint): Renamed to ...
8832 (record_full_remove_breakpoint): ... this. Updated all users.
8833 (record_can_execute_reverse): Renamed to ...
8834 (record_full_can_execute_reverse): ... this. Updated all users.
8835 (record_get_bookmark): Renamed to ...
8836 (record_full_get_bookmark): ... this. Updated all users.
8837 (record_goto_bookmark): Renamed to ...
8838 (record_full_goto_bookmark): ... this. Updated all users.
8839 (record_async): Renamed to ...
8840 (record_full_async): ... this. Updated all users.
8841 (record_can_async_p): Renamed to ...
8842 (record_full_can_async_p): ... this. Updated all users.
8843 (record_is_async_p): Renamed to ...
8844 (record_full_is_async_p): ... this. Updated all users.
8845 (record_execution_direction): Renamed to ...
8846 (record_full_execution_direction): ... this. Updated all users.
8847 (record_info): Renamed to ...
8848 (record_full_info): ... this. Updated all users.
8849 (record_delete): Renamed to ...
8850 (record_full_delete): ... this. Updated all users.
8851 (record_is_replaying): Renamed to ...
8852 (record_full_is_replaying): ... this. Updated all users.
8853 (record_goto_entry): Renamed to ...
8854 (record_full_goto_entry): ... this. Updated all users.
8855 (record_goto_begin): Renamed to ...
8856 (record_full_goto_begin): ... this. Updated all users.
8857 (record_goto_end): Renamed to ...
8858 (record_full_goto_end): ... this. Updated all users.
8859 (record_goto): Renamed to ...
8860 (record_full_goto): ... this. Updated all users.
8861 (init_record_ops): Renamed to ...
8862 (init_record_full_ops): ... this. Updated all users.
8863 (record_core_resume): Renamed to ...
8864 (record_full_core_resume): ... this. Updated all users.
8865 (record_core_kill): Renamed to ...
8866 (record_full_core_kill): ... this. Updated all users.
8867 (record_core_fetch_registers): Renamed to ...
8868 (record_full_core_fetch_registers): ... this. Updated all users.
8869 (record_core_prepare_to_store): Renamed to ...
8870 (record_full_core_prepare_to_store): ... this. Updated all users.
8871 (record_core_store_registers): Renamed to ...
8872 (record_full_core_store_registers): ... this. Updated all users.
8873 (record_core_xfer_partial): Renamed to ...
8874 (record_full_core_xfer_partial): ... this. Updated all users.
8875 (record_core_insert_breakpoint): Renamed to ...
8876 (record_full_core_insert_breakpoint): ... this. Updated all users.
8877 (record_core_remove_breakpoint): Renamed to ...
8878 (record_full_core_remove_breakpoint): ... this. Updated all users.
8879 (record_core_has_execution): Renamed to ...
8880 (record_full_core_has_execution): ... this. Updated all users.
8881 (init_record_core_ops): Renamed to ...
8882 (init_record_full_core_ops): ... this. Updated all users.
8883 (cmd_record_restore): Renamed to ...
8884 (cmd_record_full_restore): ... this. Updated all users.
8885 (record_save_cleanups): Renamed to ...
8886 (record_full_save_cleanups): ... this. Updated all users.
8887 (cmd_record_start): Renamed to ...
8888 (cmd_record_full_start): ... this. Updated all users.
8889 (set_record_insn_max_num): Renamed to ...
8890 (set_record_full_insn_max_num): ... this. Updated all users.
8891 (set_record_command): Renamed to ...
8892 (set_record_full_command): ... this. Updated all users.
8893 (show_record_command): Renamed to ...
8894 (show_record_full_command): ... this. Updated all users.
8895 (_initialize_record): Renamed to ...
8896 (_initialize_record_full): ... this. Updated all users.
8897
d02ed0bb
MM
88982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8899
8900 * record.h: Split into this and ...
8901 * record-full.h: ... this.
8902 * record.c: Split into this and ...
8903 * record-full.c: ... this.
8904 * target.h (target_ops): Add new fields to_info_record,
8905 to_save_record, to_delete_record, to_record_is_replaying,
8906 to_goto_record_begin, to_goto_record_end, to_goto_record.
8907 (target_info_record): New.
8908 (target_save_record): New.
8909 (target_supports_delete_record): New.
8910 (target_delete_record): New.
8911 (target_record_is_replaying): New.
8912 (target_goto_record_begin): New.
8913 (target_goto_record_end): New.
8914 (target_goto_record): New.
8915 * target.c (target_info_record): New.
8916 (target_save_record): New.
8917 (target_supports_delete_record): New.
8918 (target_delete_record): New.
8919 (target_record_is_replaying): New.
8920 (target_goto_record_begin): New.
8921 (target_goto_record_end): New.
8922 (target_goto_record): New.
8923 * record.h: Declare struct cmd_list_element.
8924 (record_cmdlist): New declaration.
8925 (set_record_cmdlist): New declaration.
8926 (show_record_cmdlist): New declaration.
8927 (info_record_cmdlist): New declaration.
8928 (cmd_record_goto): New declaration.
8929 * record.c: Remove unnecessary includes.
8930 Include inferior.h.
8931 (cmd_record_goto): Remove declaration.
8932 (record_cmdlist): Now extern. Initialize.
8933 (set_record_cmdlist): Now extern. Initialize.
8934 (show_record_cmdlist): Now extern. Initialize.
8935 (info_record_cmdlist): Now extern. Initialize.
8936 (find_record_target): New.
8937 (require_record_target): New.
8938 (cmd_record_start): Update.
8939 (cmd_record_delete): Remove target-specific code.
8940 Call target_delete_record.
8941 (cmd_record_stop): Unpush any record target.
8942 (set_record_insn_max_num): Move to record-full.c
8943 (set_record_command): Add comment.
8944 (show_record_command): Add comment.
8945 (info_record_command): Update comment.
8946 Remove target-specific code.
8947 Call the record target's to_info_record.
8948 (cmd_record_start): New.
8949 (cmd_record_goto): Now extern.
8950 Remove target-specific code.
8951 Call target_goto_begin, target_goto_end, or target_goto.
8952 (_initialize_record): Move record target ops initialization to
8953 record-full.c.
8954 Change "record" command help text.
8955 Move "record restore", "record set", and "record show" commands to
8956 record-full.c.
8957 * Makefile.in (SFILES): Add record-full.c.
8958 (HFILES_NO_SRCDIR): Add record-full.h.
8959 (COMMON_OBS): Add record-full.o.
8960 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8961 * arm-tdep.c: Include record-full.h.
8962 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8963 * i386-tdep.c: Include record-full.h.
8964 * infrun.c: Include record-full.h.
8965 * linux-record.c: Include record-full.h.
8966 * moxie-tdep.c: Include record-full.h.
8967 * record-full.c: Include record-full.h.
8968 Change module comment.
8969 (set_record_full_cmdlist): New.
8970 (show_record_full_cmdlist): New.
8971 (record_full_cmdlist): New.
8972 (record_goto_insn): New declaration.
8973 (record_save): New declaration.
8974 (record_check_insn_num): Change query string.
8975 (record_info): New.
8976 (record_delete): New.
8977 (record_is_replaying): New.
8978 (record_goto_entry): New.
8979 (record_goto_begin): New.
8980 (record_goto_end): New.
8981 (record_goto): New.
8982 (init_record_ops): Update.
8983 (init_record_core_ops): Update.
8984 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8985 (cmd_record_start): New.
8986 (set_record_insn_max_num): Moved from record.c
8987 (set_record_full_command): New.
8988 (show_record_full_command): New.
8989 (_initialize_record_full): New.
8990
b48d48eb
MM
89912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8992
8993 * target.h (add_deprecated_target_alias): New.
8994 * target.c (add_deprecated_target_alias): New.
8995
a950d57c
MM
89962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8997
8998 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8999 and signal.h.
9000 (linux_supports_btrace): Add kernel and
9001 cpuid check.
9002 (kernel_supports_btrace): New function.
9003 (cpu_supports_btrace): New function.
9004 (intel_supports_btrace): New function.
9005
9accd112
MM
90062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9007
9008 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9009 * remote.c: Include btrace.h.
9010 (struct btrace_target_info): New struct.
9011 (remote_supports_btrace): New function.
9012 (send_Qbtrace): New function.
9013 (remote_enable_btrace): New function.
9014 (remote_disable_btrace): New function.
9015 (remote_teardown_btrace): New function.
9016 (remote_read_btrace): New function.
9017 (init_remote_ops): Add btrace ops.
9018 (enum <unnamed>): Add btrace packets.
9019 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9020 (_initialize_remote): Add packet configuration for branch tracing.
9021
c12a2917
MM
90222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9023
9024 * features/btrace.dtd: New file.
9025 * Makefile.in (XMLFILES): Add btrace.dtd.
9026 * btrace.h (parse_xml_btrace): New declaration.
9027 * btrace.c: Include xml-support.h.
9028 (parse_xml_btrace): New function.
9029 (parse_xml_btrace_block): New function.
9030 (block_attributes): New struct.
9031 (btrace_attributes): New struct.
9032 (btrace_children): New struct.
9033 (btrace_elements): New struct.
9034
3e3aea48
MM
90352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9036
9037 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9038 (amd64_linux_enable_btrace): New.
9039 (amd64_linux_disable_btrace): New.
9040 (amd64_linux_teardown_btrace): New.
9041 (_initialize_amd64_linux_nat): Initialize btrace ops.
9042 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9043 (i386_linux_enable_btrace): New.
9044 (i386_linux_disable_btrace): New.
9045 (i386_linux_teardown_btrace): New.
9046 (_initialize_i386_linux_nat): Initialize btrace ops.
9047 * config/i386/linux.mh: Add linux-btrace.o.
9048 * config/i386/linux64.mh: Add linux-btrace.o.
9049
7c97f91e
MM
90502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9051
9052 * common/linux_btrace.h: New file.
9053 * common/linux_btrace.c: New file.
9054 * Makefile.in (SFILES): Add btrace.c.
9055 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9056 (COMMON_OBS): Add btrace.o.
9057 (linux-btrace.o): New rule.
9058
1999790b 90592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9060
9061 * target.h: Include btrace.h.
9062 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9063 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9064 * target.c (target_supports_btrace): New function.
9065 (target_enable_btrace): New function.
9066 (target_disable_btrace): New function.
9067 (target_teardown_btrace): New function.
9068 (target_read_btrace): New function.
9069 * btrace.h: New file.
9070 * btrace.c: New file.
9071 * Makefile.in: Add btrace.c.
9072 * gdbthread.h: Include btrace.h.
9073 (struct thread_info): Add btrace field.
9074 * thread.c: Include btrace.h.
9075 (clear_thread_inferior_resources): Call target_teardown_btrace.
9076 * common/btrace-common.h: New file.
9077
61a31a67
JK
90782013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9079
9080 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9081 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9082 kill_status to outer block.
9083
05c56a9d
JK
90842013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9085
9086 Fix entry-values if the callee called a noreturn function.
9087 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9088 get_frame_address_in_block. Add new comment.
9089
9112db09
JK
90902013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9091
9092 Fix entry-values in C++ across CUs.
9093 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9094 lookup_minimal_symbol. Add a comment.
9095 * dwarf2read.c
9096 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9097 DW_AT_linkage_name.
9098
9b67fcec
YQ
90992013-03-08 Yao Qi <yao@codesourcery.com>
9100
9101 * tracepoint.c (_initialize_tracepoint): Indent the code.
9102
6221be90
PA
91032013-03-08 Pedro Alves <palves@redhat.com>
9104
9105 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9106 (parse_find_args, find_command): Change type of pattern buffer
9107 locals to 'gdb_byte *'.
9108
be9a119c 91092013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9110 Hafiz Abid Qadeer <abidh@codesourcery.com>
9111
9112 * NEWS: Mention set and show trace-buffer-size commands.
9113 Mention new packet.
9114 * target.h (struct target_ops): New method
9115 to_set_trace_buffer_size.
9116 (target_set_trace_buffer_size): New macro.
9117 * target.c (update_current_target): Set up new method.
9118 * tracepoint.c (trace_buffer_size): New global.
9119 (start_tracing): Send it to the target.
9120 (set_trace_buffer_size): New function.
9121 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9122 * remote.c (remote_set_trace_buffer_size): New function.
9123 (_initialize_remote): Use it.
9124 (QTBuffer:size) New remote command.
9125 (PACKET_QTBuffer_size): New enum.
9126 (remote_protocol_features): Add an entry for
9127 PACKET_QTBuffer_size.
9128
7da3ab79
TT
91292013-03-08 Tom Tromey <tromey@redhat.com>
9130
9131 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9132 variable.
9133
0c1f71e7
PA
91342013-03-07 Pedro Alves <palves@redhat.com>
9135
9136 * target.c (target_read_stralloc, target_fileio_read_alloc):
9137 *Cast pointer to 'gdb_byte *' in target call.
9138
c8af03a2
PA
91392013-03-07 Pedro Alves <palves@redhat.com>
9140
9141 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9142 call.
9143
529480d0
KS
91442013-03-07 Keith Seitz <keiths@redhat.com>
9145
9146 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9147 (trace_pass_command): Likewise.
9148 * cli/cli-cmds.c: Include cli/cli-utils.h.
9149 (source_command): Use skip-spaces.
9150 (disassemble_command): Likewise.
9151 * findcmd.c: Include cli/cli-utils.h.
9152 (parse_find_args): Use skip_spaces.
9153 * go32-nat.c: Include cli/cli-utils.h.
9154 (go32_sldt): Use skip_spaces.
9155 (go32_sgdt): Likewise.
9156 (go32_sidt): Likewise.
9157 (go32_pde): Likewise.
9158 (go32_pte): Likewise.
9159 (go32_pte_for_address): Likewise.
9160 * infcmd.c: Include cli/cli-utils.h.
9161 (registers_info): Use skip_spaces.
9162 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9163 (linux_info_proc): Likewise.
9164 * linux-thread-db.c: Include cli/cli-utils.h.
9165 (info_auto_load_libthread_db): Use skip_spaces_const.
9166 * m32r-rom.c: Include cli/cli-utils.h.
9167 (m32r_upload_command): Use skip_spaces.
9168 * maint.c: Include cli/cli-utils.h.
9169 (maintenance_translate_address): Use skip_spaces.
9170 * mi/mi-parse.c: Include cli/cli-utils.h.
9171 (mi_parse_argv): Use skip_spaces.
9172 (mi_parse): Likewise.
9173 * minsyms.c: Include cli/cli-utils.h.
9174 (msymbol_hash_iw): Use skip_spaces_const.
9175 * objc-lang.c: Include cli/cli-utils.h.
9176 (parse_selector): Use skip_spaces.
9177 (parse_method): Likewise.
9178 * python/python.c: Include cli/cli-utils.h.
9179 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9180 (python_command)[HAVE_PYTHON]: Likewise.
9181 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9182 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9183 (m32r_load): Use skip_spaces.
9184 * serial.c: Include cli/cli-utils.h.
9185 (serial_open): Use skip_spaces_const.
9186 * stack.c: Include cli/cli-utils.h.
9187 (parse_frame_specification_1): Use skip_spaces_const.
9188 * symfile.c: Include cli/cli-utils.h.
9189 (set_ext_lang_command): Use skip_spaces.
9190 * symtab.c: Include cli/cli-utils.h.
9191 (rbreak_command): Use skip_spaces.
9192 * thread.c (thread_name_command): Use skip_spaces.
9193 * tracepoint.c (validate_actionline): Use skip_spaces.
9194 (encode_actions_1): Likewise.
9195 (trace_find_range_command): Likewise.
9196 (trace_find_outside_command): Likewise.
9197 (trace_dump_actions): Likewise.
9198
ac91cd70
PA
91992013-03-07 Pedro Alves <palves@redhat.com>
9200
9201 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9202 * expprint.c (print_subexp_standard): Likewise.
9203 * utils.c (host_char_to_target): Likewise.
9204 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9205 * varobj.c (value_get_print_value): Change type of local to char*.
9206 Cast it gdb_byte * in call to language printer.
9207
2898e560
PA
92082013-03-07 Pedro Alves <palves@redhat.com>
9209
9210 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9211 gdb_byte *'.
9212 (make_wchar_iterator): Remove cast to char*.
9213 (wchar_iterate): Change type of local.
9214
a09b4448
PA
92152013-03-07 Pedro Alves <palves@redhat.com>
9216
9217 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9218 for 'regcache->register_status'.
9219
20ced3e4
PA
92202013-03-07 Pedro Alves <palves@redhat.com>
9221
c2d6a675 9222 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9223 int.
9224
fe106009
PA
92252013-03-07 Pedro Alves <palves@redhat.com>
9226
9227 * stap-probe.c (handle_stap_probe): Add cast to char*.
9228
8ac2c12b
PA
92292013-03-07 Pedro Alves <palves@redhat.com>
9230
9231 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9232 RECORD_MSGRCV>: Pass a signed variable to
9233 regcache_raw_read_signed, instead of an unsigned one.
9234
99f0a309
PA
92352013-03-07 Pedro Alves <palves@redhat.com>
9236
9237 * remote-notif.c (notif_debug): Change type to int.
9238 * remote-notif.h (notif_debug): Likewise.
9239
964b8317
PA
92402013-03-07 Pedro Alves <palves@redhat.com>
9241
9242 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9243
f0cc8ad4
PA
92442013-03-07 Pedro Alves <palves@redhat.com>
9245
9246 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9247 * remote.h (hex2bin, bin2hex): ... here.
9248 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9249
77dec115
EZ
92502013-03-07 Eli Zaretskii <eliz@gnu.org>
9251
9252 * utils.c (initialize_utils): Improve doc strings of "set/show
9253 width", "set/show height", and "set/show pagination".
9254
741d92cf
KS
92552013-03-06 Keith Seitz <keiths@redhat.com>
9256
9257 * ax-gdb.c (gen_printf): Make FORMAT const.
9258 * ax-gdb.h (gen_printf): Likewise.
9259 * ax-general.c (ax_string): Make STR const.
9260 * ax.h (ax_string): Likewise.
9261
7b6c814e
DE
92622013-03-06 Doug Evans <dje@google.com>
9263
9264 * elfread.c (elf_symfile_read): Move debugging printf to more
9265 logical location.
9266
634334ab
PA
92672013-03-06 Pedro Alves <palves@redhat.com>
9268
9269 * python/py-utils.c (target_string_to_unicode): Delete function.
9270 * python/python-internal.h (target_string_to_unicode): Delete
9271 declaration.
9272
e482a1a7
PM
92732013-03-06 Pierre Muller <muller@sourceware.org>
9274
9275 * linespec.c (get_current_search_block): ARI fix, use (void)
9276 for empty parameter list.
9277
4eeaa230
DE
92782013-03-05 Doug Evans <dje@google.com>
9279
9280 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9281 of old ada_lookup_symbol_list. In !full_search case, don't
9282 search superblocks.
9283 (ada_lookup_symbol_list): Delete arg full_search, all callers
9284 updated. Call ada_lookup_symbol_list_worker.
9285 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9286 * ada-lang.h (ada_lookup_symbol_list): Update.
9287 * language.h (language_defn): Update comment for
9288 la_iterate_over_symbols.
9289 * linespec.c (iterate_over_file_blocks): New function.
9290 (iterate_over_all_matching_symtabs): Call it.
9291 (lookup_prefix_sym): Ditto.
9292 (get_current_search_block): New function.
9293 (get_search_block): Delete.
9294 (find_label_symbols): Call get_current_search_block.
9295 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9296 * symtab.c (iterate_over_symbols): Don't search superblocks.
9297
b69b1fb1
YQ
92982013-03-05 Yao Qi <yao@codesourcery.com>
9299
9300 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9301 parameter VAR's type from "unsigned int" to "int".
9302 * command.h (var_zuinteger_unlimited): Update its comments.
9303 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9304
3c095f49
CV
93052013-03-05 Corinna Vinschen <vinschen@redhat.de>
9306
9307 * NEWS: Mention new target x86_64-*-cygwin*.
9308
b5b0b0af
CV
93092013-03-05 Corinna Vinschen <vinschen@redhat.de>
9310
9311 * configure.host: Add x86_64-*-cygwin* as host.
9312 * configure.tgt: Add x86_64-*-cygwin* as target.
9313 * config/i386/cygwin64.mh: New file.
9314
f6f99966
JK
93152013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9316
9317 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9318
33f448b1
JK
93192013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9320
9321 * linespec.c (struct linespec_canonical_name): New.
9322 (struct linespec_state): Change canonical_names type to it.
9323 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9324 xrealloc element size. Initialize the different CANONICAL fields.
9325 (canonical_to_fullform): New.
9326 (filter_results): Use it. Add variables canonical, fullform and
9327 cleanup.
9328 (struct decode_line_2_item, decode_line_2_compare_items): New.
9329 (decode_line_2): Remove variables iter and item_names, add variables
9330 items and items_count. Modify the code for these new variables.
9331
feb14725
CV
93322013-03-04 Corinna Vinschen <vinschen@redhat.com>
9333
9334 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9335 calling do_cleanup.
9336
e83b17ba
HZ
93372013-03-04 Luis Machado <lgustavo@codesourcery.com>
9338
9339 * tracepoint.c (build_traceframe_info): Add code for byte order.
9340
a2d13a0d
KB
93412013-03-02 Kevin Buettner <kevinb@redhat.com>
9342
8dddcae8
KB
9343 * v850-tdep.c: (v850e2_register_name): Revise system register
9344 names to match current V850E2M architecture specifications.
9345 Update register number enum comments too.
f5aee5ee 9346
d79e58d8
JW
93472013-03-01 Jiong Wang <jiwang@tilera.com>
9348 Pedro Alves <palves@redhat.com>
9349
9350 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9351 to END_ADDR.
9352 (tilegx_skip_prologue): Limit prologue analysis to section end.
9353
c4be5165
JK
93542013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9357 use it.
9358
e362b510
PA
93592013-03-01 Pedro Alves <palves@redhat.com>
9360
9361 Use gdb_byte for bytes from the program being debugged.
9362
9363 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9364 Change type of local 'buf' to gdb_byte.
9365 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9366 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9367 * cris-tdep.c (cris_sigcontext_addr)
9368 (cris_sigtramp_frame_unwind_cache): Likewise.
9369 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9370 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9371 Likewise.
9372 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9373 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9374 (hppa32_hpux_search_dummy_call_sequence)
9375 (hppa_hpux_supply_save_state): Likewise.
9376 * hppa-linux-tdep.c (insns_match_pattern)
9377 (hppa_linux_find_global_pointer): Likewise.
9378 * hppa-tdep.c (hppa_in_function_epilogue_p)
9379 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9380 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9381 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9382 (i386fbsd_collect_uthread): Likewise.
9383 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9384 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9385 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9386 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9387 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9388 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9389 (ia64_libunwind_frame_prev_register)
9390 (ia64_libunwind_sigtramp_frame_this_id)
9391 (ia64_find_global_pointer_from_dynamic_section)
9392 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9393 (ia64_unwind_pc): Likewise.
9394 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9395 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9396 (m68hc11_extract_return_value): Likewise.
9397 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9398 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9399 (mep_get_insn, mep_push_dummy_call): Likewise.
9400 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9401 (mips_linux_in_dynsym_stub): Likewise.
9402 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9403 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9404 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9405 to gdb_byte.
9406 * remote-mips.c (mips_set_register): Likewise.
9407 * remote-sim.c (gdbsim_fetch_register): Likewise.
9408 * score-tdep.c (score7_fetch_inst): Change type of parameter
9409 'memblock' and local 'buf' to gdb_byte.
9410 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9411 Change type of local 'buf' to gdb_byte. Adjust.
9412 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9413 to gdb_byte**.
9414 (score7_analyze_prologue): Change type of 'memblock' and
9415 'memblock_ptr' locals to gdb_byte*.
9416 * sh64-tdep.c (sh64_extract_return_value)
9417 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9418 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9419 * solib-pa64.c (pa64_solib_create_inferior_hook)
9420 (pa64_open_symbol_file_object): Remove local 'buf'.
9421 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9422 (som_open_symbol_file_object): Likewise.
9423 * solib-spu.c (spu_current_sos): Likewise.
9424 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9425 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9426 (spu_store_registers): Likewise.
9427 * target.c (debug_print_register): Likewise.
9428 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9429 * xstormy16-tdep.c (xstormy16_store_return_value)
9430 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9431 (xstormy16_find_jmp_table_entry): Likewise.
9432
75cc61ca 94332013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9434
9435 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9436 (tilegx_gdbarch_init): Install it.
9437
ddb08e9c
TT
94382013-02-28 Tom Tromey <tromey@redhat.com>
9439
9440 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9441 PyLong_Check.
9442
62d7fb51
DE
94432013-02-28 Doug Evans <dje@google.com>
9444
9445 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9446 * python/python.c (gdbpy_find_pc_line): Ditto.
9447
c4a9e8b4
TT
94482013-02-28 Tom Tromey <tromey@redhat.com>
9449
9450 * contrib/excheck.py: New file.
9451 * contrib/exsummary.py: New file.
9452 * contrib/gcc-with-excheck: New file.
9453
7f6a5dde
TT
94542013-02-28 Tom Tromey <tromey@redhat.com>
9455
9456 * python/python.c (gdbpy_print_stack): Call begin_line and
9457 fprintf_filtered inside TRY_CATCH.
9458
9e974e55
TT
94592013-02-28 Tom Tromey <tromey@redhat.com>
9460
9461 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9462 inside TRY_CATCH.
9463
dd5fa3e7
TT
94642013-02-28 Tom Tromey <tromey@redhat.com>
9465
9466 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9467 frame_object_to_frame_info inside TRY_CATCH.
9468
86a3263f
TT
94692013-02-28 Tom Tromey <tromey@redhat.com>
9470
9471 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9472 TRY_CATCH.
9473
81b52a3a
TT
94742013-02-28 Tom Tromey <tromey@redhat.com>
9475
9476 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9477
d50a0ce2
CV
94782013-02-27 Corinna Vinschen <vinschen@redhat.com>
9479
9480 * windows-nat.c: Throughout, fix format strings and casts of
9481 printf-like functions to avoid type related warnings on all
9482 platforms.
9483 (handle_output_debug_string): Fetch context information address
9484 from debug string using string_to_core_addr.
9485
e1f58301
JW
94862013-02-27 Jiong Wang <jiwang@tilera.com>
9487
9488 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9489 * regformats/reg-tilegx32.dat: New.
9490
4fcd89fc
JW
94912013-02-27 Jiong Wang <jiwang@tilera.com>
9492
9493 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9494
748d24e6
JW
94952013-02-27 Jiong Wang <jiwang@tilera.com>
9496
9497 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9498
6c8e944d
YQ
94992013-02-27 Yao Qi <yao@codesourcery.com>
9500 Pedro Alves <palves@redhat.com>
9501
9502 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9503 pc/tp/range/outside, look for the next trace frame instead of
9504 always starting from frame 0.
6c8e944d 9505
acd7db30
AG
95062013-02-26 Anthony Green <green@moxielogic.com>
9507
9508 * configure.tgt: Add support for moxie-*-rtems* target.
9509
025e6dce
PA
95102013-02-25 Pedro Alves <palves@redhat.com>
9511
9512 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9513 warning text.
9514
ca9c94ef
MR
95152013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9516
9517 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9518 if $fp is used as the virtual frame pointer.
9519
24c274a1
AM
95202013-02-23 Alan Modra <amodra@gmail.com>
9521
9522 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9523 symbol size.
9524 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9525 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9526 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9527 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9528
bfada189
JK
95292013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9530
9531 Code cleanup.
9532 * elfread.c (build_id_bfd_get): Make the return type const.
9533 (build_id_verify): Make the check parameter const.
9534 (build_id_to_debug_filename): Make the build_id parameter and variable
9535 data const.
9536 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9537
c0355132
AM
95382013-02-21 Alan Modra <amodra@gmail.com>
9539
9540 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9541
9f44fbc0
SCR
95422013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9543
9544 Add a new method 'disassemble' to gdb.Architecture class.
9545 * python/py-arch.c (archpy_disassmble): Implementation of the
9546 new method gdb.Architecture.disassemble.
9547 (arch_object_methods): Add entry for the new method.
9548
b74ea3eb
JW
95492013-02-20 Jiong Wang <jiwang@tilera.com>
9550
9551 * MAINTAINERS (Write After Approval): Add myself to the list.
9552
61a672f1
PA
95532013-02-19 Pedro Alves <palves@redhat.com>
9554
9555 Garbage collect 'struct monitor_ops'::load_routine.
9556
9557 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9558 * monitor.c (monitor_load): No longer call
9559 current_monitor->load_routine.
9560 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9561 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9562 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9563
40e397df
PA
95642013-02-19 Pedro Alves <palves@redhat.com>
9565
9566 PR gdb/15161
9567
9568 Harmonize with generic_load.
9569
9570 * monitor.c: Include "readline/readline.h".
9571 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9572 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9573 long/strtol for the 'load_offset' local. Error out if no argument
9574 is given or if too many arguments are given. Tilde expand the
9575 passed in file name.
9576
f698ca8e
KT
95772013-02-19 Kai Tietz <ktietz@redhat.com>
9578
9579 PR gdb/15161
9580 * symfile.c (load_section_data): Change type of load_offset
9581 to CORE_ADDR.
9582 (generic_load): User strtoulst instead of strtoul for conversion
9583 of load_offset.
9584
3361b059
WL
95852013-02-19 Jiong Wang <jiwang@tilera.com>
9586
9587 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9588 for return address, "lr" register, saved on stack.
9589 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9590 after we invoke tilegx_analyze_prologue.
9591
3e9d5130
WL
95922013-02-19 Jiong Wang <jiwang@tilera.com>
9593
bb1bcd86
WL
9594 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9595
3361b059 95962013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9597
b74ea3eb 9598 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9599
4aaf2503
WL
96002013-02-19 Jiong Wang <jiwang@tilera.com>
9601
b74ea3eb 9602 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9603 (tilegx_write_pc): New function.
9604 (tilegx_cannot_reference_register): Return zero if REGNO
9605 is TILEGX_FAULTNUM_REGNUM.
9606 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9607 (tilegx_register_name): Add handling of "faultnum" register.
9608 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9609 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9610 handling of TILEGX_FAULTNUM_REGNUM.
9611 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9612
bc23a956
WL
96132013-02-19 Jiong Wang <jiwang@tilera.com>
9614
9615 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9616 should be aligned to 64bit.
bc23a956 9617
42f45f1a
KT
96182013-02-19 Kai Tietz <ktietz@redhat.com>
9619
9620 * windows-nat.c (windows_xfer_memory): Fix debug-output
9621 for LLP64.
9622
6ce4c112
LL
96232013-02-19 Lei Liu <lei.liu2@windriver.com>
9624
9625 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9626 Don't check DSP register number if HAVE_DSP is not set.
9627
30e8ee25
AM
96282013-02-19 Alan Modra <amodra@gmail.com>
9629
9630 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9631 throughout file instead.
9632 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9633 Don't xmalloc return value.
9634 (build_id_verify): Similarly. Don't xfree.
9635 (build_id_to_debug_filename): Update.
9636 (find_separate_debug_file_by_buildid): Update, don't xfree.
9637
4c9ad8c2
TT
96382013-02-18 Tom Tromey <tromey@redhat.com>
9639
9640 PR gdb/15102:
9641 * dwarf2read.c (read_subrange_type): Use result of
9642 'check_typedef'.
9643
983dc440
YQ
96442013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9645
9646 * frame.c: Remove one extra white space after #include
9647 directive.
9648
7fb2b84a
JK
96492013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9650
9651 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9652
edceb2a9
JK
96532013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9654
9655 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9656 and dir commands into an if block.
9657
e81b7af8
TT
96582013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9659
9660 * python/py-breakpoint (struct pybp_code): Use int instead of
9661 enum type_code.
9662
f5911ea1
HAQ
96632013-02-15 Pedro Alves <pedro@codesourcery.com>
9664 Hafiz Abid Qadeer <abidh@codesourcery.com>
9665
9666 * NEWS: Mention new field "trace-file".
9667 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9668 (tfile_open): Record the trace file's filename in the trace
9669 status.
9670 (tfile_files_info): Mention the name of the trace file.
9671 Check the "filename" field explicitely.
9672 (trace_status_command): Explicitely check "filename" field.
9673 (trace_find_command): Ditto.
9674 (trace_find_pc_command): Ditto.
9675 (trace_find_tracepoint_command): Ditto.
9676 (trace_find_line_command): Ditto.
9677 (trace_find_range_command): Ditto.
9678 (trace_find_outside_command): Ditto.
9679 * tracepoint.h (struct trace_status) <from_file>: Rename it
9680 to "filename" and make it hold the trace file's filename
9681 instead of a boolean.
9682 * remote.c (remote_get_trace_status): Initialize "filename"
9683 field with NULL instead of 0.
9684
796cb314
YQ
96852013-02-15 Yao Qi <yao@codesourcery.com>
9686
9687 * remote.c: Fix a typo.
9688
42e79b1d
PM
96892013-02-14 Pierre Muller <muller@sourceware.org>
9690
9691 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9692
baea0dae
PA
96932013-02-14 Pedro Alves <palves@redhat.com>
9694
9695 * utils.c (savestring): Don't #undef it. Move function to
9696 common/common-utils.c.
9697 * common/common-utils.c: Include gdb_string.h.
9698 (savestring): Move here from utils.c.
9699 * common/common-utils.h (savestring): Declare.
9700
57c3b6ed
PA
97012013-02-14 Pedro Alves <palves@redhat.com>
9702
9703 * utils.c (savestring): Rename parameter 'size' to 'len'.
9704
d6c44983
YZ
97052013-02-14 Pedro Alves <palves@redhat.com>
9706 Yufeng Zhang <yufeng.zhang@arm.com>
9707
9708 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9709 (aarch64_inferior_data, struct aarch64_inferior_data):
9710 Delete.
9711 (struct aarch64_process_info): New.
9712 (aarch64_process_list): New global.
9713 (aarch64_find_process_pid, aarch64_add_process)
9714 (aarch64_process_info_get): New functions.
9715 (aarch64_inferior_data_get): Delete.
9716 (aarch64_process_info_get): New function.
9717 (aarch64_forget_process): New function.
9718 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9719 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9720 aarch64_get_debug_reg_state.
9721 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9722 instead of linux_nat_iterate_watchpoint_lwps.
9723 (aarch64_linux_new_fork): New function.
9724 (aarch64_linux_child_post_startup_inferior): Use
9725 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9726 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9727 (aarch64_linux_remove_hw_breakpoint)
9728 (aarch64_handle_aligned_watchpoint)
9729 (aarch64_handle_unaligned_watchpoint)
9730 (aarch64_linux_insert_watchpoint)
9731 (aarch64_linux_remove_watchpoint)
9732 (aarch64_linux_stopped_data_address): Adjust to pass the current
9733 process id to aarch64_debug_reg_state.
9734 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9735 linux_nat_new_fork hook, and aarch64_forget_process as
9736 linux_nat_forget_process hook; remove the call to
9737 register_inferior_data_with_cleanup.
9738
4819b3f8
PA
97392013-02-14 Pedro Alves <palves@redhat.com>
9740
9741 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9742 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9743 lval_memory.
9744
1773c82c
HAQ
97452013-02-14 Pedro Alves <pedro@codesourcery.com>
9746 Hafiz Abid Qadeer <abidh@codesourcery.com>
9747
9748 * tracepoint.h (validate_trace_state_variable_name): Declare.
9749 * tracepoint.c (validate_trace_state_variable_name): New.
9750 (trace_variable_command): Parse the trace state variable's name
9751 without using parse_expression. Do several validations.
9752 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9753 trace state variable's name with parse_expression. Validate it.
9754
53778a97
YQ
97552013-02-14 Yao Qi <yao@codesourcery.com>
9756
9757 * infcmd.c (breakpoint_proceeded): Remove it.
9758
7b3ae3a6
YQ
97592013-02-14 Yao Qi <yao@codesourcery.com>
9760
9761 * tracepoint.c (end_actions_pseudocommand): Make it static.
9762 (while_stepping_pseudocommand): Likewise.
9763 * tracepoint.h (end_actions_pseudocommand): Remove the
9764 declaration.
9765 (while_stepping_pseudocommand): Likewise.
9766
64580925
YQ
97672013-02-14 Yao Qi <yao@codesourcery.com>
9768
9769 * cli/cli-decode.c (help_cmd): Remove the declaration of
9770 "cmdlist".
9771 (help_all): Likewise.
9772
26cb8b7c
PA
97732013-02-13 Pedro Alves <palves@redhat.com>
9774
9775 * amd64-linux-nat.c (update_debug_registers_callback):
9776 Update comment.
9777 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9778 iterate_over_lwps.
9779 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9780 i386_debug_reg_state.
9781 (amd64_linux_new_fork): New function.
9782 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9783 linux_nat_new_fork hook, and i386_forget_process as
9784 linux_nat_forget_process hook.
9785 * i386-linux-nat.c (update_debug_registers_callback):
9786 Update comment.
a8256ea1 9787 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9788 iterate_over_lwps.
9789 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9790 i386_debug_reg_state.
9791 (i386_linux_new_fork): New function.
9792 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9793 linux_nat_new_fork hook, and i386_forget_process as
9794 linux_nat_forget_process hook.
9795 * i386-nat.c (i386_init_dregs): Delete.
9796 (i386_inferior_data, struct i386_inferior_data):
9797 Delete.
9798 (struct i386_process_info): New.
9799 (i386_process_list): New global.
9800 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9801 New functions.
9802 (i386_inferior_data_get): Delete.
9803 (i386_process_info_get): New function.
9804 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9805 (i386_forget_process): New function.
9806 (i386_cleanup_dregs): Rewrite.
9807 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9808 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9809 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9810 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9811 to i386_debug_reg_state.
9812 (i386_use_watchpoints): Don't register inferior data.
9813 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9814 adjust comment.
9815 (i386_forget_process): Declare.
9816 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9817 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9818 New static globals.
9819 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9820 (add_initial_lwp): New, factored out from ...
9821 (add_lwp): ... this. Don't check the number of lwps before
9822 calling linux_nat_new_thread.
9823 (linux_nat_iterate_watchpoint_lwps): Delete.
9824 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9825 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9826 forks and vforks.
9827 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9828 initial lwp.
9829 (linux_nat_kill, linux_nat_mourn_inferior): Call
9830 linux_nat_forget_process.
9831 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9832 (linux_nat_forget_process): New functions.
9833 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9834 type.
9835 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9836 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9837 types.
9838 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9839 (linux_nat_forget_process): New declarations.
9840
9841 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9842 (amd64fbsd_mourn_inferior): New function.
9843 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9844 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9845
5befea72
MS
98462013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9847
55015247
YQ
9848 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9849 Adding _().
5befea72 9850
1d3ffd6b
MS
98512013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9852
9853 * aarch64-linux-nat.c (debug_reg_change_callback)
9854 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9855 %s and phex().
9856
6eb04473
MS
98572013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9858
9859 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9860 with LONGEST.
9861
a016fc87
HAQ
98622013-02-13 Pedro Alves <palves@redhat.com>
9863 Hafiz Abid Qadeer <abidh@codesourcery.com>
9864
9865 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9866
e234dfaf
TT
98672013-02-12 Tom Tromey <tromey@redhat.com>
9868
9869 PR symtab/11464:
9870 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9871 NAME return.
9872 (classify_inner_name): Remove 'first_name' argument, add
9873 'context'. Remove unused variable.
9874 (yylex): Explicitly maintain the context type. Exit loop earlier
9875 if NAME result is seen.
9876
0b1afbb3
PA
98772013-02-12 Pedro Alves <palves@redhat.com>
9878
9879 * amd64-darwin-tdep.c: Add (C) after Copyright.
9880 * cli/cli-cmds.h: Ditto.
9881 * cli/cli-decode.c: Ditto.
9882 * cli/cli-decode.h: Ditto.
9883 * cli/cli-dump.c: Ditto.
9884 * cli/cli-dump.h: Ditto.
9885 * cli/cli-interp.c: Ditto.
9886 * cli/cli-logging.c: Ditto.
9887 * cli/cli-script.c: Ditto.
9888 * cli/cli-script.h: Ditto.
9889 * cli/cli-setshow.c: Ditto.
9890 * cli/cli-setshow.h: Ditto.
9891 * cli/cli-utils.c: Ditto.
9892 * cli/cli-utils.h: Ditto.
9893 * config/alpha/nm-osf3.h: Ditto.
9894 * config/djgpp/djconfig.sh: Ditto.
9895 * config/i386/nm-fbsd.h: Ditto.
9896 * config/i386/nm-i386gnu.h: Ditto.
9897 * config/nm-linux.h: Ditto.
9898 * config/nm-nto.h: Ditto.
9899 * config/rs6000/nm-rs6000.h: Ditto.
9900 * config/sparc/nm-sol2.h: Ditto.
9901 * darwin-nat-info.c: Ditto.
9902 * dfp.c: Ditto.
9903 * dfp.h: Ditto.
9904 * gdb-demangle.h: Ditto.
9905 * i386-darwin-nat.c: Ditto.
9906 * i386-darwin-tdep.c: Ditto.
9907 * linux-fork.h: Ditto.
9908 * m32c-tdep.c: Ditto.
9909 * microblaze-linux-tdep.c: Ditto.
9910 * microblaze-rom.c: Ditto.
9911 * microblaze-tdep.c: Ditto.
9912 * microblaze-tdep.h: Ditto.
9913 * mips-linux-tdep.h: Ditto.
9914 * ppc-ravenscar-thread.c: Ditto.
9915 * ppc-ravenscar-thread.h: Ditto.
9916 * prologue-value.c: Ditto.
9917 * prologue-value.h: Ditto.
9918 * ravenscar-thread.c: Ditto.
9919 * ravenscar-thread.h: Ditto.
9920 * sparc-ravenscar-thread.c: Ditto.
9921 * sparc-ravenscar-thread.h: Ditto.
9922 * tilegx-linux-tdep.c: Ditto.
9923 * unwind_stop_reasons.def: Ditto.
9924 * windows-nat.h: Ditto.
9925 * xtensa-linux-tdep.c: Ditto.
9926 * xtensa-xtregs.c: Ditto.
9927 * regformats/regdat.sh: Ditto.
9928 * regformats/regdef.h: Ditto.
9929
6c01dd94
PA
99302013-02-12 Pedro Alves <palves@redhat.com>
9931
9932 * break-catch-sig.c: Update copyright years.
9933
b65a2bd9
SCR
99342013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9935
9936 Add support for a destructor for ui_out data and use it to
9937 provide a ui_out destructor.
9938 * ui-out.h: Declare the new ui_out destructor.
9939 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9940 * ui-out.c (default_data_destroy): Add a default data destructor
9941 which does nothing.
9942 (default_ui_out_impl): Set the new data_destroy field to
9943 default_data_destroy
9944 (uo_data_destroy): Local function which invokes the data
9945 destructor if present.
9946 (clear_table): Local function which clears the table data of a
9947 ui_out object.
9948 (ui_out_destroy): Public function which frees a ui_out object.
9949 (ui_out_table_end): Use the new clear_table function.
9950 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9951 NULL.
9952 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9953 to NULL.
9954
c2792f5a
DE
99552013-02-11 Doug Evans <dje@google.com>
9956
9957 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9958 (printf_decfloat): New function. Broken out from ui_printf.
9959 Remove unnecessary code to shift the entire format string down.
9960 (printf_pointer): New function.
9961 (ui_printf): Code to print C strings, wide C strings, decfloats,
9962 and pointers moved to separate functions.
9963
d9e98382
SDJ
99642013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 * valops.c (value_assign): Handling bitfield offset in
9967 `lval_internalvar_component' case.
9968
4ff3ce77
DE
99692013-02-08 Doug Evans <dje@google.com>
9970
9971 * common/format.c (parse_format_string): Fix whitespace.
9972
901900c4
MGD
99732013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9974
9975 * stack.c (return_command): Work around uninitialized variable
9976 warning.
9977
b5dbc8d4
YZ
99782013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9979
9980 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9981 number of the registers from 36 to 34.
9982
51d66578
MS
99832013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9984
9985 * NEWS: Mention new AArch64 native and target support.
9986
176b1c95
MS
99872013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9988
9989 * MAINTAINERS (Write After Approval): Add myself.
9990
9d19df75
MS
99912013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9992 Marcus Shawcroft <marcus.shawcroft@arm.com>
9993 Nigel Stephens <nigel.stephens@arm.com>
9994 Yufeng Zhang <yufeng.zhang@arm.com>
9995
9996 * aarch64-linux-nat.c: New file.
9997 * config/aarch64/linux.mh: New file.
9998 * configure.host: Add AArch64.
9999 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10000
7e1e0340
DE
100012013-02-07 Doug Evans <dje@google.com>
10002
10003 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10004 disassemble command.
10005
45e25a36
MS
100062013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10007
10008 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10009 set_gdbarch_fetch_tls_load_module_address.
10010
bbfdfe1c
DM
100112013-02-06 David S. Miller <davem@davemloft.net>
10012
10013 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10014 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10015 * value.c (struct_return_convention): New function.
10016 (using_struct_return): Implement in terms of struct_return_convention.
10017 * value.h (struct_return_convention): Declare.
10018 * stack.c (return_command): Allow successful overriding of the return
10019 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10020
bc9abe4a
TT
100212013-02-06 Tom Tromey <tromey@redhat.com>
10022
10023 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10024 outside of TRY_CATCH.
10025
134a2066
YQ
100262013-02-06 Yao Qi <yao@codesourcery.com>
10027
10028 * mi/mi-interp.c: Include "tracepoint.h".
10029 (mi_tsv_modified): Declare.
10030 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10031 (mi_interpreter_init): Call observer_attach_tsv_modified.
10032 (mi_tsv_modified): New.
10033 (mi_tsv_created, mi_tsv_deleted): Update.
10034 * tracepoint.c (trace_variable_command): Call
10035 observer_notify_tsv_modified if the initial value of tsv is
10036 changed.
10037 (delete_trace_state_variable): Call
10038 observer_notify_tsv_deleted earlier.
10039 (trace_variable_command): Caller update.
10040 (create_tsv_from_upload): Likewise.
10041 * observer.sh: Declare "struct trace_state_variable".
10042
10043 * NEWS: Mention the new MI notification "=tsv-modified".
10044
59be2b6a
DE
100452013-02-05 Doug Evans <dje@google.com>
10046
10047 * completer.c (location_completer): Fix typo in comment.
10048
d30113d4
JK
100492013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10052 ADDRESS sorted.
10053
14ac654f
MS
100542013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10055
10056 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10057 Refactor if statement to avoid trailing || operator.
10058
543bf33d
AT
100592013-02-05 Andreas Tobler <andreast@fgznet.ch>
10060
10061 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10062
dc18f110
AT
100632013-02-04 Andreas Tobler <andreast@fgznet.ch>
10064
10065 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10066 * configure.host: Add powerpc*-*-freebsd* target.
10067 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10068 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10069 * config/powerpc/fbsd.mh: New file.
10070
b3ac9c77
SDJ
100712013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10072 Denys Vlasenko <dvlasenk@redhat.com>
10073 Pedro Alves <palves@redhat.com>
10074
10075 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10076 (struct elf_internal_linux_prpsinfo): Forward declare.
10077 * gdbarch.h, gdbarch.c: Regenerate.
10078 * linux-tdep.c: Include `cli/cli-utils.h'.
10079 (linux_fill_prpsinfo): New function.
10080 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10081 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10082 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10083 depending on gdbarch pointer bitness.
10084 * ppc-linux-tdep.c: Include elf-bfd.h.
10085 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10086 on 32-bit.
10087
176eb98c
MS
100882013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10089 Marcus Shawcroft <marcus.shawcroft@arm.com>
10090 Nigel Stephens <nigel.stephens@arm.com>
10091 Yufeng Zhang <yufeng.zhang@arm.com>
10092
10093 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10094
cf0dbd6f
MS
100952013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10096 Marcus Shawcroft <marcus.shawcroft@arm.com>
10097 Nigel Stephens <nigel.stephens@arm.com>
10098 Yufeng Zhang <yufeng.zhang@arm.com>
10099
10100 * aarch64-newlib-tdep.c: New file.
10101 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10102 aarch64*-*-elf.
10103 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10104 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10105 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10106 * osabi.c (gdb_osabi_names): Add "Newlib".
10107
1ae3db19
MS
101082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10109 Marcus Shawcroft <marcus.shawcroft@arm.com>
10110 Nigel Stephens <nigel.stephens@arm.com>
10111 Yufeng Zhang <yufeng.zhang@arm.com>
10112
10113 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10114 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10115 * aarch64-linux-tdep.c: New file.
10116 * aarch64-linux-tdep.h: New file.
10117 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10118 * configure.tgt: Add aarch64-none-linux-gnu.
10119
07b287a0
MS
101202013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10121 Marcus Shawcroft <marcus.shawcroft@arm.com>
10122 Nigel Stephens <nigel.stephens@arm.com>
10123 Yufeng Zhang <yufeng.zhang@arm.com>
10124
10125 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10126 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10127 (ALLDEPFILES): Add aarch64-tdep.c.
10128 * aarch64-tdep.c: New file.
10129 * aarch64-tdep.h: New file.
10130 * configure.tgt: Add AArch64.
10131 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10132 (aarch64-expedite): New definition.
10133 * features/aarch64-core.xml: New file.
10134 * features/aarch64-fpu.xml: New file.
10135 * features/aarch64-without-fpu.c: New file (generated).
10136 * features/aarch64-without-fpu.xml: New file.
10137 * features/aarch64.c: New file (generated).
10138 * features/aarch64.xml: New file.
10139 * regformats/aarch64-without-fpu.dat: New file (generated).
10140 * regformats/aarch64.dat: New file (generated).
10141
0f1b18ab
JK
101422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10143
10144 * contrib/expect-read1.c: New file.
10145 * contrib/expect-read1.sh: New file.
10146
233d95b5
JK
101472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10148
10149 * dwarf2read.c (file_file_name): New function with code from
10150 file_full_name.
10151 (file_full_name): Move most of the code to file_file_name.
10152 (macro_start_file): Rename variable full_name to file_name and use
10153 file_file_name for it. Add comp_dir parameter to new_macro_table.
10154 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10155 macro_source_file->filename access by macro_source_fullname call.
10156 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10157 caller.
10158 * macrotab.c (struct macro_table): New field comp_dir.
10159 (macro_include): New variables link_fullname and source_fullname.
10160 Replace any macro_source_file->filename access by macro_source_fullname
10161 call.
10162 (macro_lookup_inclusion): Remove the partial filenames checking code.
10163 (check_for_redefinition): New variables source_fullname and
10164 found_key_fullname. Replace any macro_source_file->filename access by
10165 macro_source_fullname call.
10166 (macro_undef): New variables source_fullname and key_fullname. Replace
10167 any macro_source_file->filename access by macro_source_fullname call.
10168 (macro_lookup_definition): New variables retval and source_fullname.
10169 Replace any macro_source_file->filename access by macro_source_fullname
10170 call.
10171 (foreach_macro): New variable key_fullname. Replace any
10172 macro_source_file->filename access by macro_source_fullname call.
10173 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10174 macro_source_file->filename access by macro_source_fullname call.
10175 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10176 (macro_source_fullname): New function.
10177 * macrotab.h (struct macro_source_file): Extent the filename field
10178 comment.
10179 (new_macro_table): New parameter comp_dir, add a comment for it.
10180 (macro_source_fullname): new declaration.
10181
da235a7c
JK
101822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10183
10184 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10185 this_real_name to outer block. Use it also for
10186 compare_filenames_for_search.
10187 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10188 with dw2_get_real_path for file_matcher, considering also
10189 BASENAMES_MAY_DIFFER.
10190 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10191
fbd9ab74
JK
101922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10195 to the file_matcher parameter. Pass 0 to it.
10196 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10197 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10198 NULL psymtab_to_fullname result.
10199 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10200 an expected filename instead.
10201 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10202 file_matcher parameter. Call also psymtab_to_fullname, after newly
10203 considering BASENAMES_MAY_DIFFER.
10204 * source.c (rewrite_source_path): Remove static.
10205 * source.h (rewrite_source_path): New declaration.
10206 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10207 the expand_symtabs_matching field. Comment it.
10208 * symtab.c (file_matches): New function comment. Add parameter
10209 basenames, implement it.
10210 (search_symbols_file_matches): Add basenames parameter. Update the
10211 file_matches caller.
10212 (search_symbols): Match FILES also against symtab_to_fullname.
10213 Optimize it for BASENAMES_MAY_DIFFER.
10214
56d397a3
JK
102152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10216
10217 * source.c (print_source_lines_base): Print for TUI also "fullname".
10218 * tui/tui-data.c (init_content_element): Change tui_locator_element
10219 field to full_name.
10220 * tui/tui-data.h (struct tui_locator_element): Likewise.
10221 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10222 tui_update_locator_filename calls to tui_update_locator_fullname.
10223 Replace symtab->filename refererence by symtab_to_fullname call.
10224 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10225 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10226 field to full_name. Replace symtab->filename refererence by
10227 symtab_to_fullname call.
10228 (tui_show_symtab_source): Rename parameter to fullname. Change
10229 tui_locator_element field to full_name.
10230 * tui/tui-stack.c: Include source.h.
10231 (tui_set_locator_filename): Rename the declaration to ...
10232 (tui_set_locator_fullname): ... here. Rename its parameter to
10233 fullname, updates its comment.
10234 (tui_set_locator_info): Rename its parameter to fullname.
10235 (tui_set_locator_filename): Rename the definition to ...
10236 (tui_set_locator_fullname): ... here. Rename its parameter to
10237 fullname, updates its comment. Change tui_locator_element field to
10238 full_name.
10239 (tui_set_locator_info): Rename its parameter to fullname.
10240 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10241 (tui_update_locator_filename): Rename to ...
10242 (tui_update_locator_fullname): ... here. Rename callee to
10243 tui_set_locator_fullname.
10244 (tui_show_frame_info): Replace symtab->filename refererence by
10245 symtab_to_fullname call.
10246 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10247 (tui_update_locator_fullname): ... here.
10248 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10249 tui_update_locator_fullname. Replace symtab->filename refererence by
10250 symtab_to_fullname call.
10251 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10252 Rename the callee to tui_update_locator_fullname.
10253 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10254
05cba821
JK
102552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10256
10257 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10258 by symtab_to_filename_for_display calls.
10259 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10260 (clear_command): New variable sal_fullname, initialize it. Replace
10261 compare_filenames_for_search by filename_cmp with sal_fullname.
10262 (say_where, update_static_tracepoint): Replace symtab->filename
10263 refererences by symtab_to_filename_for_display calls.
10264 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10265 Likewise.
10266 * dwarf2read.c: Include source.h.
10267 (fixup_go_packaging): Replace symtab->filename refererences by
10268 symtab_to_filename_for_display calls.
10269 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10270 Replace symtab->filename refererences by symtab_to_filename_for_display
10271 calls.
10272 (create_sals_line_offset, convert_linespec_to_sals): New variable
10273 fullname, initialize it, replace symtab->filename reference by the
10274 variable.
10275 * linux-fork.c: Include source.h.
10276 (info_checkpoints_command): Replace symtab->filename refererences by
10277 symtab_to_filename_for_display calls.
10278 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10279 by symtab_to_filename_for_display calls.
10280 * mdebugread.c: Include source.h.
10281 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10282 symtab_to_filename_for_display calls.
10283 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10284 (mi_cmd_file_list_exec_source_files): Likewise.
10285 * printcmd.c: Include source.h.
10286 (build_address_symbolic): Replace symtab->filename refererences by
10287 symtab_to_filename_for_display calls.
10288 * psymtab.c (partial_map_symtabs_matching_filename)
10289 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10290 with psymtab_to_fullname.
10291 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10292 by symtab_to_filename_for_display calls.
10293 (stpy_get_filename): New variable filename, initialize it, use instead
10294 of symtab->filename refererences.
10295 (salpy_str): Make variable filename const char *. Replace
10296 symtab->filename refererences by symtab_to_filename_for_display calls.
10297 * skip.c: Include source.h and filenames.h.
10298 (skip_file_command): Remove const from the symtab variable. Replace
10299 symtab->filename refererences by symtab_to_fullname call.
10300 (function_name_is_marked_for_skip): New variables searched_for_fullname
10301 and fullname. Use them to search also with symtab's fullname.
10302 * source.c (find_source_lines): Replace symtab->filename refererences
10303 by symtab_to_filename_for_display calls.
10304 (print_source_lines_base): New variable filename, use it instead of
10305 symtab->filename. Replace symtab->filename refererences by
10306 symtab_to_filename_for_display calls.
10307 (line_info, forward_search_command): Replace symtab->filename
10308 refererences by symtab_to_filename_for_display calls.
10309 (reverse_search_command): Replace symtab->filename refererences by
10310 symtab_to_filename_for_display calls. New variable filename for it.
10311 * stack.c (frame_info): Likewise.
10312 * symmisc.c: Include source.h.
10313 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10314 (maintenance_info_symtabs): Replace symtab->filename refererences by
10315 symtab_to_filename_for_display calls.
10316 * symtab.c (iterate_over_some_symtabs): Call
10317 compare_filenames_for_search also with symtab_to_fullname.
10318 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10319 symtab->filename refererences by symtab_to_filename_for_display calls.
10320 (find_line_symtab): Replace symtab->filename refererences by
10321 symtab_to_filename_for_display calls.
10322 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10323 (print_symbol_info): Make the last parameter const char *. New
10324 variable s_filename. Use it in the function.
10325 (symtab_symbol_info): Make the last_filename variable const char *.
10326 Replace symtab->filename refererences by symtab_to_filename_for_display
10327 calls.
10328 (rbreak_command): New variable fullname. Use it. Replace
10329 symtab->filename refererence by symtab_to_filename_for_display call.
10330 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10331 (print_one_static_tracepoint_marker): Replace symtab->filename
10332 refererences by symtab_to_filename_for_display calls.
10333 * tui/tui-source.c (tui_set_source_content): New variables filename and
10334 s_filename. Replace symtab->filename refererences by this variable.
10335 Replace other symtab->filename refererences by
10336 symtab_to_filename_for_display calls.
10337
1b56eb55
JK
103382013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10339 Jan Kratochvil <jan.kratochvil@redhat.com>
10340
10341 Add a new variable that controls a way in which filenames are
10342 displayed.
10343 * NEWS (set filename-display): New entry.
10344 * source.c (filename_display_basename, filename_display_relative)
10345 (filename_display_absolute, filename_display_kind_names)
10346 (filename_display_string, show_filename_display_string)
10347 (symtab_to_filename_for_display): New.
10348 (_initialize_source): Added initialization of 'filename-display'
10349 variable.
10350 * source.h (symtab_to_filename_for_display): Added declaration.
10351 * stack.c (print_frame): Added new variable and calling of a new
10352 function and condition with this variable. Changed third argument of
10353 calling of a function.
10354
aa079c93
JK
103552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10356
10357 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10358 Rename field reference filename to fullname.
10359 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10360 fullname. New comment for it.
10361 * tui/tui-source.c (tui_set_source_content): Rename field reference
10362 filename to fullname. Initialize field by symtab_to_fullname now.
10363 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10364 reference filename to fullname. Use symtab_to_fullname during
10365 comparison.
10366
652a8996
JK
103672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10368
10369 Code cleanup.
10370 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10371 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10372 filename to fullname. Rename variable this_name to this_fullname.
10373 Lowercase FILENAME_CMP call.
10374 (dw2_find_symbol_file): New comment for the returned string.
10375 (dwarf2_gdb_index_functions): Rename the function to
10376 dw2_expand_symtabs_with_fullname.
10377 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10378 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10379 fullname.
10380 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10381 * symfile.h (struct quick_symbol_functions): Rename field
10382 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10383 parameter filename to fullname. Document returned string meaning for
10384 find_symbol_file.
10385 * symtab.c (find_line_symtab): Rename the called function to
10386 expand_symtabs_with_fullname.
10387
af529f8f
JK
103882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10389
10390 Code cleanup.
10391 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10392 call of filename_cmp with compare_filenames_for_search.
10393 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10394 is_abs, unify the call of FILENAME_CMP with
10395 compare_filenames_for_search. New gdb_asserts for real_path and name.
10396 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10397 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10398 * symfile.h (struct quick_symbol_functions): Extend the comment for
10399 map_symtabs_matching_filename.
10400 * symtab.c (compare_filenames_for_search): Remove the function comment
10401 relative path requirement. Handle absolute filenames, with a comment.
10402 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10403 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10404 real_path and name. Unify the call of compare_filenames_for_search
10405 with FILENAME_CMP.
10406 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10407
2f202fde
JK
104082013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10409
10410 Code cleanup.
10411 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10412 source_file references by symtab field references. Remove variables
10413 sal and fullname.
10414 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10415 (clear_command, say_where): Replace bp_location field source_file
10416 references by symtab field references.
10417 (bp_location_dtor): Remove the source_file reference.
10418 (update_static_tracepoint): Replace bp_location field source_file
10419 references by symtab field references.
10420 (breakpoint_free_objfile): New function.
10421 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10422 Replace the field source_file by field symtab, extend its comment.
10423 (breakpoint_free_objfile): New declaration.
10424 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10425 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10426 field source_file references by symtab field references.
10427
f5b95b50
JK
104282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10429
10430 Replace xfullpath calls by gdb_realpath calls.
10431 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10432 function comment.
10433 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10434 Remove it from the iterate_over_some_symtabs call.
10435 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10436 Remove it from the dw2_map_expand_apply calls, remove a block handling
10437 it.
10438 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10439 Remove it from the iterate_over_some_symtabs call.
10440 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10441 Remove it from the partial_map_expand_apply calls, remove a block
10442 handling it. Drop gdb_realpath call and cleanups from the real_path
10443 handling.
10444 * source.c (openp): Drop the comment part about xfullpath. Replace
10445 xfullpath calls by gdb_realpath calls.
10446 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10447 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10448 from method map_symtabs_matching_filename and its comment.
10449 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10450 gdb_realpath call.
10451 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10452 remove it also from the function comment, remove a block handling it.
10453 Drop gdb_realpath call and cleanups from the real_path handling.
10454 (iterate_over_symtabs): Drop variable full_path and its use.
10455 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10456 * utils.c (xfullpath): Remove.
10457 * utils.h (xfullpath): Remove.
10458
d78489bf
AT
104592013-02-01 Andreas Tobler <andreast@fgznet.ch>
10460
10461 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10462 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10463 (ALLDEPFILES): Add ppc64-tdep.c.
10464 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10465 ppc64-tdep.o to gdb_target_obs.
10466 * ppc64-tdep.h: New file.
10467 * ppc64-tdep.c: New file.
10468 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10469 ppc-linux-tdep.c to here.
10470 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10471 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10472 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10473 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10474 from ppc-linux-tdep.c to here.
10475 (ppc64_convert_from_func_ptr_addr): Rename from
10476 ppc64_linux_convert_from_func_ptr_addr to
10477 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10478 here.
10479 * rs6000-tdep.c:
10480 (read_insn): Move from ppc-linux-tdep.c to here.
10481 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10482 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10483 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10484 Removed above functions.
10485 (ppc_linux_init_abi): Adjust.
10486
8db60374
AR
104872013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10488
10489 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10490
f2e5f4ce
AR
104912013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10492
10493 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10494
c1f7d745
PA
104952013-02-01 Pedro Alves <palves@redhat.com>
10496
10497 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10498 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10499
8a92335b
JK
105002013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10501
10502 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10503 files with no separate debug info.
10504 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10505 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10506 only for files with no separate debug info.
10507
8eacb197
TT
105082013-01-31 Tom Tromey <tromey@redhat.com>
10509
10510 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10511 change type.
10512 (struct jit_program_space_data): Rename from jit_inferior_data.
10513 Update comments.
10514 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10515 Change return type. Attach data to program space.
10516 (jit_program_space_data_cleanup): Rename from
10517 jit_inferior_data_cleanup; change argument type.
10518 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10519 change type.
10520 (jit_register_code): Update.
10521 (jit_update_inferior_cache): Remove.
10522 (jit_breakpoint_deleted): Get jit data from the location's program
10523 space.
10524 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10525 'ps_data', change type.
10526 (jit_inferior_init, jit_breakpoint_re_set_internal)
10527 (jit_event_handler): Update.
10528 (free_objfile_data): Get data from objfile's program space.
10529 (_initialize_jit): Update.
10530
f25c0135
TT
105312013-01-31 Tom Tromey <tromey@redhat.com>
10532
10533 PR gdb/13987:
10534 * jit.c (struct jit_inferior_data) <cached_code_address,
10535 jit_breakpoint>: New fields.
10536 (jit_breakpoint_re_set_internal): Fix logging. Only create
10537 breakpoint if cached address has changed.
10538 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10539 functions.
10540 (_initialize_jit): Register breakpoint deleted observer.
10541
974a734b
AR
105422013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10543
10544 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10545 (save_infcall_suspend_state): Ifdef out unused inf.
10546 (restore_infcall_suspend_state): Ifdef out unused inf.
10547 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10548 (jit_frame_sniffer): Remove unused inf_data.
10549
df54f8eb
AR
105502013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10551
10552 * c-exp.y (classify_inner_name): Remove unused type.
10553 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10554 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10555 need_escape.
10556 (c_get_string): Remove unused kind.
10557 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10558
5799c0b9
AR
105592013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10560
10561 * charset.c (intermediate_encoding): Remove unused i.
10562 * completer.c (signal_completer): Remove unused i.
10563 * continuations.c (discard_my_continuations_1): Remove unused
10564 continuation_ptr.
10565 * corelow.c (core_close): Remove unuseD name.
10566 (get_core_siginfo): Remove unused pid.
10567 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10568 i, cps.
10569 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10570 (loclist_describe_location): Remove unused first.
10571 * event-top.c (command_line_handler): Remove unused got_eof.
10572 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10573 (resize_section_table): Remove unused old_value.
10574 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10575 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10576 * i386-tdep.c (i386_process_record): Remove unused rex.
10577 * infcmd.c (get_return_value): Remove unused uiout.
10578 * jv-lang.c (type_from_class): Remove unused is_array.
10579 * jv-valprint.c (java_val_print): Remove unused i.
10580 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10581 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10582 * m2-typeprint.c (m2_print_type): Remove unused code.
10583 * macroexp.c (get_character_constant): Remove unused body_start.
10584 (macro_stringify): Remove unused result.
10585 * objc-lang.c (find_methods): Remove unused gdbarch.
10586 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10587 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10588 * stack.c (print_frame_args): Remove unused summary.
10589 * thread.c (thread_apply_command): Remove unused p.
10590 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10591 * valops.c (search_struct_method): Remove unused skip.
10592 * valprint.c (generic_val_print): Remove unused byte_order.
10593 * varobj.c (varobj_update): Remove unused changed.
10594 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10595 (alias_command): Remove unused c.
10596 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10597 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10598 format.
10599 (mi_cmd_data_write_memory): Remove unused word_format.
10600 (mi_cmd_data_write_memory_bytes): Remove unused r.
10601 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10602 p_start, p_end.
10603 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10604 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10605 line_width.
10606
c656bca5
AR
106072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10608
10609 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10610 * symtab.c (iterate_over_symtabs): Remove unused s.
10611 (find_pc_sect_symtab): Remove unused pspAce.
10612 (find_pc_sect_line): Remove unused alt_symtab.
10613 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10614 (completion_list_add_name): Remove unused newsize.
10615
7078baeb
TT
106162013-01-31 Tom Tromey <tromey@redhat.com>
10617
10618 PR c++/14998:
10619 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10620 TYPE_CODE_FUNC.
10621
c2e8b827
AR
106222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10623
10624 * target.c (target_read_string): Remove unused origlen.
10625
0e43993a
AR
106262013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10627
10628 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10629 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10630 * ax-general.c (ax_print): Remove unused is_float.
10631 * blockframe.c (block_innermost_frame): Remove unused start, end.
10632 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10633
765a97ab
AR
106342013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10635
10636 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10637 (svr4_read_so_list): Remove unused lmo.
10638 * solib-target.c (solib_target_relocate_section_addresses): Remove
10639 unused flags.
10640
a99dad3d
TT
106412013-01-30 Tom Tromey <tromey@redhat.com>
10642
10643 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10644
3bff1ecd
TT
106452013-01-30 Tom Tromey <tromey@redhat.com>
10646
10647 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10648 * utils.c (gnu_debuglink_crc32): Remove.
10649 * utils.h (gnu_debuglink_crc32): Don't declare.
10650
7d455152
TT
106512013-01-30 Tom Tromey <tromey@redhat.com>
10652
10653 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10654 (read_structure_type, read_enumeration_type): Remove cast.
10655
abee88f2
TT
106562013-01-30 Tom Tromey <tromey@redhat.com>
10657
10658 * dwarf2read.c (read_namespace_type): Remove cast.
10659 (read_typedef): Likewise.
10660
8d9878a4
TT
106612013-01-29 Tom Tromey <tromey@redhat.com>
10662
10663 * dwarf2read.c (free_dwo_file): Remove assert.
10664
a543d2a9
TT
106652013-01-29 Tom Tromey <tromey@redhat.com>
10666
10667 * value.c (deprecated_set_value_modifiable): Remove.
10668 * value.h (deprecated_set_value_modifiable): Remove.
10669
bed911e5
DE
106702013-01-28 Doug Evans <dje@google.com>
10671
10672 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10673 to addresses from dwo files.
10674
28c64fc2
SCR
106752013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10676
10677 * valops.c (find_overload_match): Remove unused argument 'lax'.
10678 * value.h: Remove unused argument 'lax' from the declaration of
10679 find_overload_match.
10680 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10681 to find_overload_match.
10682 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10683 argument to find_overload_match.
10684
4d4ec4e5
TT
106852013-01-25 Tom Tromey <tromey@redhat.com>
10686
10687 * dwarf2read.c (processing_has_namespace_info): Remove.
10688 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10689 (process_die, read_func_scope, dwarf2_start_symtab)
10690 (new_symbol_full): Update.
10691
195a3f6c
TT
106922013-01-25 Tom Tromey <tromey@redhat.com>
10693
10694 * cp-namespace.c (cp_set_block_scope): Remove.
10695 * cp-support.h (cp_set_block_scope): Remove.
10696 * dbxread.c: Include block.h.
10697 (cp_set_block_scope): New function.
10698 (process_one_symbol): Update.
10699 * dwarf2read.c (read_func_scope): Use block_set_scope.
10700
8ba0730a
PA
107012013-01-25 Pedro Alves <palves@redhat.com>
10702
10703 * remote.c (add_current_inferior_and_thread): Tweak comment.
10704
12aaed36
TT
107052013-01-25 Tom Tromey <tromey@redhat.com>
10706
10707 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10708 (cp_add_using_directive): Add 'copy_names' argument.
10709 * cp-support.h (cp_add_using_directive): Update.
10710 (struct using_direct) <import_src, import_dest, alias,
10711 declaration>: Now const.
10712 * dwarf2read.c (read_import_statement): Use obconcat.
10713 Don't copy names passed to cp_add_using_directive.
10714
7fc75ca7
TT
107152013-01-25 Tom Tromey <tromey@redhat.com>
10716
10717 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10718
3405876a
PA
107192013-01-25 Pedro Alves <palves@redhat.com>
10720
10721 * remote.c (stop_reply_extract_thread): New.
10722 (add_current_inferior_and_thread): New parameter 'wait_status'.
10723 Handle it.
10724 (remote_start_remote): Pass wait status to
10725 add_current_inferior_and_thread.
10726 (extended_remote_run): Update comment.
10727 (extended_remote_create_inferior_1): Pass wait status to
10728 add_current_inferior_and_thread.
10729
8954db33
AB
107302013-01-25 Andrew Burgess <aburgess@broadcom.com>
10731 Ulrich Weigand <uweigand@de.ibm.com>
10732
10733 * valarith.c (value_vector_widen): New function for replicating a
10734 scalar into a vector.
10735 (value_binop): Use value_vector_widen to widen scalar to vector
10736 rather than casting, this better matches gcc C behaviour.
10737 * valops.c (value_casst): Update logic for casting between vector
10738 types, and for casting from scalar to vector, try to match gcc C
10739 behaviour.
10740 * value.h (value_vector_widen): Declare.
10741 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10742 function, handle special case for casting scalar to vector.
10743 (opencl_relop): Use opencl_value_cast.
10744 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10745 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10746 in order to use opencl_value_cast.
10747
843b20dc
YQ
107482013-01-25 Yao Qi <yao@codesourcery.com>
10749
10750 * event-loop.c: Include "queue.h".
10751 (gdb_event_p): New typedef.
10752 (DECLARE_QUEUE_P): Use.
10753 (DEFINE_QUEUE_P): Use.
10754 (async_queue_event): Remove.
10755 (gdb_event_xfree): New.
10756 (initialize_event_loop): New.
10757 (process_event): Use QUEUE macros.
10758 (event_queue): Remove.
10759 (gdb_wait_for_event): Caller update.
10760 (check_async_event_handlers): Likewise.
10761 (poll_timers): Likewise.
10762 * event-loop.h (initialize_event_loop): Declare.
10763 * event-loop.c (gdb_event_xfree): New.
10764 * top.c (gdb_init): Call initialize_event_loop.
10765
20ad8856
YQ
107662013-01-25 Yao Qi <yao@codesourcery.com>
10767
10768 * event-loop.c (async_queue_event): Remove one parameter
10769 'position'. Remove code handling 'position' == TAIL.
10770 (gdb_wait_for_event): Caller update.
10771 (check_async_event_handlers): Caller update.
10772 (poll_timers): Caller update.
10773 * event-loop.h (enum queue_position): Remove.
10774
3bbbe775
MK
107752013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10776
10777 * MAINTAINERS: Update my email.
10778
a87d9ac4
YQ
107792013-01-25 Yao Qi <yao@codesourcery.com>
10780
10781 * main.c (print_gdb_help): Remove "--epoch" from the help
10782 message.
10783
2077afdd
TD
107842013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10785
10786 * symtab.c (skip_prologue_using_sal): Consider a file
10787 change the same as an increased line number
10788
63da4037
TD
107892013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10790
30e8ee25 10791 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10792
45e6c716
TT
107932013-01-24 Tom Tromey <tromey@redhat.com>
10794
10795 * ada-lang.h (ada_decode_symbol): Make return type const.
10796 * ada-lang.c (ada_decode_symbol): Likewise.
10797
b1ae631a
DE
107982013-01-23 Doug Evans <dje@google.com>
10799
10800 * linespec.c (find_linespec_symbols): Make static.
10801
55a78401
SDJ
108022013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10803
10804 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10805 type on float conversion for complex type.
10806
bea883fd
SCR
108072013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10808
10809 Add a new class gdb.Architecture which exposes GDB's
10810 internal representation of architecture via GDB Python API.
10811 * Makefile.in: Add entries corresponding to the new file
10812 python/py-arch.c.
10813 * NEWS (Python Scripting): Add entries for the new class
10814 gdb.Architecture and the new method gdb.Frame.architecture.
10815 * python/py-arch.c: Implement gdb.Architecture class.
10816 * python/py-frame.c (frapy_arch): Implement the method
10817 gdb.Frame.architecture().
10818 (frame_object_methods): Add 'architecture' to the method table.
10819 * python/python-internal.h: Add declarations of new utility
10820 functions.
10821 * python/python.c (_initialize_python): Initialize
10822 gdb.Architecture class.
10823
796a7ff8
DE
108242013-01-23 Doug Evans <dje@google.com>
10825
10826 Work around binutils/15021.
10827 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10828 type_unit_group out of union s. All uses updated.
10829 (read_index_from_section): Watch for index version 8.
10830 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10831 an imported symtab.
10832 (write_psymtabs_to_index): Increment version number to 8.
10833
0928e93d
PA
108342013-01-22 Pedro Alves <palves@redhat.com>
10835
10836 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10837 user-visible.
10838
9c97429f
PA
108392013-01-22 Pedro Alves <palves@redhat.com>
10840
10841 * annotate.c (annotate_breakpoints_changed): Rename to ...
10842 (annotate_breakpoints_invalid): ... this. Make static.
10843 (breakpoint_changed): Adjust.
10844 (_initialize_annotate): Always install the observers. Install a
10845 "breakpoint_created" observer.
10846 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10847 * breakpoint.c (set_breakpoint_condition)
10848 (breakpoint_set_commands, do_map_commands_command)
10849 (init_raw_breakpoint, clear_command, set_ignore_count)
10850 (enable_breakpoint_disp): No longer call
10851 annotate_breakpoints_changed.
10852
bd00c694
PA
108532013-01-22 Pedro Alves <palves@redhat.com>
10854
10855 * annotate.c: Include "inferior.h".
10856 (frames_invalid_emitted)
10857 (breakpoints_invalid_emitted): New globals.
10858 (async_background_execution_p): New function.
10859 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10860 emitting the annotation if it has already been emitted.
10861 (annotate_display_prompt): New function.
10862 * annotate.h (annotate_display_prompt): New declaration.
10863 * event-top.c: Include annotate.h.
10864 (display_gdb_prompt): Call annotate_display_prompt.
10865
187d10dd
PA
108662013-01-22 Pedro Alves <palves@redhat.com>
10867
10868 * annotate.c (ignore_count_changed): Delete.
10869 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10870 (annotate_ignore_count_change): Delete.
10871 (annotate_stopped): Don't emit a delayed breakpoints-changed
10872 annotation.
10873 * annotate.h (annotate_ignore_count_change): Delete.
10874 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10875 annotate_ignore_count_change.
10876
d84cf7eb
TT
108772013-01-22 Tom Tromey <tromey@redhat.com>
10878
10879 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10880 require_rvalue for a register location.
10881
8f1d5693
MK
108822013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10883
10884 * breakpoint.c (print_one_breakpoint_location): Add MI
10885 field 'thread-groups' when printing a breakpoint.
10886 (output_thread_groups): New function.
10887
aa6199c6
SCR
108882013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10889
10890 * python/lib/gdb/commands/explore.py
10891 (CompoundExplorer.explore_expr): Correct the name of a method
10892 being invoked.
10893 (ExploreTypeCommand.invoke): Add a missing 'return'.
10894
d2afef13
TT
108952013-01-21 Tom Tromey <tromey@redhat.com>
10896
10897 * gdb_obstack.h (obconcat): Move declaration here, from...
10898 * symfile.h (obconcat): ... here.
10899 * gdb_obstack.c: New file.
10900 (obconcat): Move from...
10901 * symfile.c (obconcat): ... here.
10902 * Makefile.in (SFILES): Add gdb_obstack.c.
10903 (COMMON_OBS): Add gdb_obstack.o.
10904
10f0c4bb
TT
109052013-01-21 Tom Tromey <tromey@redhat.com>
10906
10907 * symfile.h (obsavestring): Don't declare.
10908 * symfile.c (obsavestring): Remove.
10909 * ada-exp.y: Use obstack_copy0, not obsavestring.
10910 * ada-lang.c: Use obstack_copy0, not obsavestring.
10911 * coffread.c: Use obstack_copy0, not obsavestring.
10912 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10913 * dbxread.c: Use obstack_copy0, not obsavestring.
10914 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10915 * jit.c: Use obstack_copy0, not obsavestring.
10916 * mdebugread.c: Use obstack_copy0, not obsavestring.
10917 * psymtab.c: Use obstack_copy0, not obsavestring.
10918 * stabsread.c: Use obstack_copy0, not obsavestring.
10919 * xcoffread.c: Use obstack_copy0, not obsavestring.
10920
86f62fd7
TT
109212013-01-21 Tom Tromey <tromey@redhat.com>
10922
10923 * dwarf2read.c (fixup_go_packaging): Save package name
10924 on objfile obstack.
10925 * gdbtypes.c (init_type): Don't copy name.
10926
15d034d0
TT
109272013-01-21 Tom Tromey <tromey@redhat.com>
10928
10929 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10930 const.
10931 (struct attribute) <u.str>: Now const.
10932 (struct fnfieldlist) <name>: Now const.
10933 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10934 (partial_die_parent_scope): Make return type const.
10935 (partial_die_full_name, add_partial_symbol): Update.
10936 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10937 'name' const.
10938 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10939 (read_file_scope, read_func_scope, dwarf2_add_field)
10940 (dwarf2_add_member_fn, read_structure_type)
10941 (process_enumeration_scope, read_array_type, read_module_type)
10942 (read_base_type, read_subrange_type): Update.
10943 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10944 (new_symbol_full, guess_full_die_structure_name): Update.
10945 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10946 (dwarf2_name): Return const type.
10947 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10948 const.
10949
748e18ae
TT
109502013-01-21 Tom Tromey <tromey@redhat.com>
10951
10952 * gdbtypes.c (init_type): Make 'name' const.
10953 * gdbtypes.h (init_type): Update.
10954
46212e0b
TT
109552013-01-21 Tom Tromey <tromey@redhat.com>
10956
10957 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10958 (start_symtab): Make 'name' and 'dirname' const. Use
10959 set_last_source_file.
10960 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10961 (last_source_file): Define. Now static.
10962 (set_last_source_file, get_last_source_file): New functions.
10963 * buildsym.h (last_source_file): Don't declare.
10964 (start_symtab): Update.
10965 (set_last_source_file, get_last_source_file): Declare.
10966 * coffread.c (complete_symtab): Use set_last_source_file.
10967 (coff_end_symtab): Likewise.
10968 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10969 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10970 set_last_source_file.
10971 (process_one_symbol): Use get_last_source_file.
10972 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10973 (psymtab_to_symtab_1): Use get_last_source_file.
10974 * xcoffread.c (process_linenos): Use get_last_source_file.
10975 (complete_symtab): Use set_last_source_file.
10976 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10977 (scan_xcoff_symtab): Use set_last_source_file.
10978
9d2ceabe
TT
109792013-01-21 Tom Tromey <tromey@redhat.com>
10980
10981 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10982 (symbol_set_names): Remove casts. Handle field const-ness.
10983
cfc594ee
TT
109842013-01-21 Tom Tromey <tromey@redhat.com>
10985
10986 * dwarf2read.c (new_symbol_full): Remove cast.
10987 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10988 * symtab.h (symbol_set_demangled_name): Update.
10989
5484b13a
TT
109902013-01-21 Tom Tromey <tromey@redhat.com>
10991
10992 * main.c (captured_main): Call bfd_init.
10993
1605ef26
TT
109942013-01-21 Tom Tromey <tromey@redhat.com>
10995
10996 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10997 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10998 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10999 * NEWS: Update.
11000
3b74cdc3
JK
110012013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11002
11003 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11004
5a352474
JK
110052013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11006
11007 Fix gdb.fortran/common-block.exp crash in PIE mode.
11008 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11009 LOC_COMMON_BLOCK.
11010 * f-valprint.c (info_common_command_for_block): Expect
11011 LOC_COMMON_BLOCK in gdb_assert.
11012 * symtab.h (struct general_symbol_info): Update comment for the
11013 common_block member.
11014 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11015 (enum address_class): New member LOC_COMMON_BLOCK.
11016
c60797fd
DB
110172013-01-18 David Blaikie <dblaikie@gmail.com>
11018
11019 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11020
46f35228
TT
110212013-01-18 Tom Tromey <tromey@redhat.com>
11022
11023 PR c++/14999:
11024 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11025 Call require_rvalue.
11026
257e7a09
YQ
110272013-01-18 Yao Qi <yao@codesourcery.com>
11028
11029 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11030 (dbx_read_symtab): New declaration.
11031 (dbx_psymtab_to_symtab): Delete.
11032 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11033 Rename parameter PST to SELF. Exchanged two parameters.
11034 (start_psymtab): Caller update.
11035 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11036 (dwarf2_read_symtab): New declaration.
11037 (dwarf2_psymtab_to_symtab): Delete.
11038 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11039 Rename parameter PST to SELF. Exchanged two parameters.
11040 (create_partial_symtab): Caller update.
11041 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11042 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11043 Rename parameter PST to SELF. Exchanged two parameters.
11044 (parse_partial_symbols, new_psymtab): Caller update.
11045 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11046 two parameters.
11047 * psymtab.c (psymtab_to_symtab): Caller update.
11048 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11049 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11050 Rename parameter PST to SELF. Exchanged two parameters.
11051 (xcoff_start_psymtab): Caller update.
11052
0de5618e
YQ
110532013-01-18 Yao Qi <yao@codesourcery.com>
11054
11055 * infrun.c (proceed): Rename local variable 'oneproc' to
11056 'force_step'.
11057
5c04624b
DE
110582013-01-17 Doug Evans <dje@google.com>
11059
848e3e78
DE
11060 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11061 (dw2_build_type_unit_groups): Delete. All uses updated.
11062
5c04624b
DE
11063 * symtab.h (struct symbol_search): Add comment.
11064
d84fca2c
JK
110652013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 * symtab.c (compare_filenames_for_search): New comment for
11068 HAS_DRIVE_SPEC.
11069
6108433d
TT
110702013-01-17 Tom Tromey <tromey@redhat.com>
11071
11072 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11073
c89ffd86
JK
110742013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11075
11076 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11077 initialize it by existing make_cleanup. Call new do_cleanups.
11078
db2b2972
TT
110792013-01-17 Tom Tromey <tromey@redhat.com>
11080
11081 * cp-abi.c (cp_abi_completer): New function.
11082 (_initialize_cp_abi): Set completer for "set cp-abi".
11083
be7d37a2
TT
110842013-01-17 Tom Tromey <tromey@redhat.com>
11085
11086 * mem-break.c: Remove obsolete comment.
11087 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11088
c9fb1240
SD
110892012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11090
11091 * jit.c (jit_reader_load_command): Interpret the jit reader name
11092 as an absolute path if it begins with a forward slash.
11093
db334a01
SD
110942012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11095
11096 PR gdb/14550
11097
11098 * jit.c (finalize_symtab): Ensure that only the global block has a
11099 NULL superblock.
11100
7d928dac
PA
111012013-01-17 Pedro Alves <palves@redhat.com>
11102
11103 * acinclude.m4: Include ../config/plugins.m4,
11104 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11105 * Makefile.in (aclocal_m4_deps): Update.
11106 * aclocal.m4: Renegerate.
11107
fb8cf7c5
DE
111082013-01-16 Doug Evans <dje@google.com>
11109
11110 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11111
ab04a2af
TT
111122013-01-16 Pedro Alves <palves@redhat.com>
11113 Tom Tromey <tromey@redhat.com>
11114
11115 PR cli/7221:
11116 * NEWS: Add "catch signal".
11117 * breakpoint.c (base_breakpoint_ops): No longer static.
11118 (bpstat_explains_signal): New function.
11119 (init_catchpoint): No longer static.
11120 (base_breakpoint_explains_signal): New function.
11121 (base_breakpoint_ops): Initialize new field.
11122 * breakpoint.h (enum bpstat_signal_value): New.
11123 (struct breakpoint_ops) <explains_signal>: New field.
11124 (bpstat_explains_signal): Remove macro, declare as function.
11125 (base_breakpoint_ops, init_catchpoint): Declare.
11126 * break-catch-sig.c: New file.
11127 * inferior.h (signal_catch_update): Declare.
11128 * infrun.c (signal_catch): New global.
11129 (handle_syscall_event): Update for change to
11130 bpstat_explains_signal.
11131 (handle_inferior_event): Likewise. Always handle random signals
11132 via bpstats.
11133 (signal_cache_update): Check signal_catch.
11134 (signal_catch_update): New function.
11135 (_initialize_infrun): Initialize signal_catch.
11136 * Makefile.in (SFILES): Add break-catch-sig.c.
11137 (COMMON_OBS): Add break-catch-sig.o.
11138
8ac3646f
TT
111392013-01-16 Tom Tromey <tromey@redhat.com>
11140
11141 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11142 (print_one_catch_solib, print_one_catch_syscall)
11143 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11144 "catch-type".
11145
5a18e302
YQ
111462013-01-16 Yao Qi <yao@codesourcery.com>
11147
11148 * printcmd.c (current_display_number): Make it static.
11149
3f01d0d0
YQ
111502013-01-16 Yao Qi <yao@codesourcery.com>
11151
11152 * infcmd.c (step_once): Don't check '!single_inst' as it was
11153 checked before.
11154
1ed59174
JK
111552013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11156
11157 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11158
44478ab3
TT
111592013-01-14 Tom Tromey <tromey@redhat.com>
11160
11161 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11162 set command.
11163 * command.h (add_setshow_string_noescape_cmd): Update.
11164 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11165 (complete_set_gnutarget): New function.
11166 (_initialize_core): Set the "set gnutarget" completer.
11167
06d66ee9
TT
111682013-01-14 Tom Tromey <tromey@redhat.com>
11169
11170 PR symtab/14442:
11171 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11172 (c_type_print_modifier): Likewise.
11173 * dwarf2read.c (read_tag_restrict_type): New function.
11174 (read_type_die_1): Handle DW_TAG_restrict_type.
11175 * gdbtypes.c (make_restrict_type): New function.
11176 (recursive_dump_type): Handle TYPE_RESTRICT.
11177 * gdbtypes.h (enum type_flag_values): Renumber.
11178 (enum type_instance_flag_value): Add
11179 TYPE_INSTANCE_FLAG_RESTRICT.
11180 (TYPE_RESTRICT): New macro.
11181 (make_restrict_type): Declare.
11182
c9bf0622
TT
111832013-01-14 Tom Tromey <tromey@redhat.com>
11184
11185 PR symtab/14931:
11186 * psymtab.c (struct psymtab_state): New.
11187 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11188 functions.
11189 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11190 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11191
44d594fd
PA
111922013-01-14 Richard Sharman <richard_sharman@mitel.com>
11193 Pedro Alves <palves@redhat.com>
11194
11195 PR remote/14786
11196
11197 * remote.c (remote_threads_info): Make a copy of the reply from
11198 qfThreadInfo and use that instead of rs->buf.
11199
442e4d9c
YQ
112002013-01-14 Yao Qi <yao@codesourcery.com>
11201
11202 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11203 (dbx_psymtab_to_symtab): Likewise.
11204 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11205 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11206 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11207
5b12a61c
JK
112082013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11209
11210 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11211 make_cleanup_restore_current_language. Call set_language. Move
11212 OLD_CHAIN and INNER_CHAIN cleanups.
11213 * utils.c (do_restore_current_language)
11214 (make_cleanup_restore_current_language): New functions.
11215 * utils.h (make_cleanup_restore_current_language): New declaration.
11216
f0a4b570
JK
112172013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11220 non-existing files.
11221
57b3c00c
JK
11222 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11223 non-existing files if FILENAME is already absolute.
11224
daefa854
JK
112252013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11226
11227 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11228 fputs_filtered. Append trailing newline.
11229
ca9c6ee2
YQ
112302013-01-11 Yao Qi <yao@codesourcery.com>
11231 Stan Shebs <stan@codesourcery.com>
11232
11233 * psymtab.c (init_psymbol_list): Clarify the comment.
11234
f28045c2
YQ
112352013-01-11 Yao Qi <yao@codesourcery.com>
11236
11237 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11238 (update_dprintf_command_list): Assert that 'printf_line' is
11239 non-null. Remove condition check.
11240
da5132d3
JK
112412013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11242
11243 Code cleanup.
11244 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11245 type const char *.
11246 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11247 const char *.
11248 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11249
843e694d
AG
112502013-01-09 Anthony Green <green@moxielogic.com>
11251
11252 * cp-abi.c (cplus_print_vtable): Don't return value from void
11253 function.
11254 * ada-lang.c (re_set_catch_assert): Ditto.
11255
da51c347
DE
112562013-01-09 Doug Evans <dje@google.com>
11257
11258 * symfile.h (quick_symbol_functions): Delete member
11259 pre_expand_symtabs_matching. All uses removed.
11260 * dwarf2read.c (dw2_lookup_symbol): Implement.
11261 (dw2_do_expand_symtabs_matching): Delete.
11262 (dw2_pre_expand_symtabs_matching): Delete.
11263 (struct dw2_symtab_iterator): New type.
11264 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11265 (dw2_expand_symtabs_for_function): Rewrite.
11266 (dwarf2_gdb_index_functions): Update.
11267 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11268 (psym_functions): Update.
11269
b2259038
TT
112702013-01-09 Tom Tromey <tromey@redhat.com>
11271
11272 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11273 * configure: Rebuild.
11274 * configure.ac: Add somread.o to the build if BFD has SOM
11275 support.
11276 * somread.c: Include som/aout.h, not syms.h.
11277 (som_symtab_read): Use som_external_symbol_dictionary_record.
11278 Unpack records manually.
11279 (_initialize_somread): Declare.
11280
bdad4180
MF
112812012-01-08 Mike Frysinger <vapier@gentoo.org>
11282
11283 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11284 Cast return_address to 64bits.
11285
03cdf680
HZ
112862013-01-08 Hui Zhu <hui_zhu@mentor.com>
11287
11288 * printcmd.c: Remove define of function output_command.
11289 * tracepoint.c: Remove extern of function output_command.
11290 * valprint.h: (output_command): New extern.
11291
8a808554
TT
112922013-01-07 Tom Tromey <tromey@redhat.com>
11293
11294 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11295 Remove.
11296 (objc_language_defn): Use c_printchar, c_printstr,
11297 c_emit_char.
11298
e93a8774
TT
112992013-01-07 Tom Tromey <tromey@redhat.com>
11300
11301 PR cli/7719:
11302 * NEWS: Update.
11303 * ada-valprint.c (printstr, print_field_values): Remove
11304 "inspect_it" code.
11305 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11306 code.
11307 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11308 code.
11309 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11310 * main.c (captured_main): Remove "epoch" argument.
11311 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11312 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11313 * p-valprint.c (pascal_object_print_value_fields): Remove
11314 "inspect_it" code.
11315 * printcmd.c (print_command_1): Remove 'inspect' argument.
11316 (print_command, call_command): Update.
11317 (inspect_command): Remove.
11318 (_initialize_printcmd): Make "inspect" an alias for "print".
11319 * top.c (epoch_interface): Remove.
11320 * top.h (epoch_interface): Remove.
11321 * valprint.c (user_print_options): Update.
11322 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11323 * valprint.h (struct value_print_options) <inspect_it>: Remove
11324 field.
11325
113262013-01-04 Tom Tromey <tromey@redhat.com>
11327
11328 * valprint.h (read_string): Add 'extern'.
11329
b967eb24
JB
113302013-01-07 Joel Brobecker <brobecker@adacore.com>
11331
11332 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11333 used to decide whether to define darwin_read_dyld_info or not.
11334
78a8b30e
PM
113352013-01-03 Pierre Muller <muller@sourceware.org>
11336
11337 * main.c (relocate_gdb_directory): Avoid calling stat function
11338 if DIR is empty.
11339
50da2f25
YQ
113402013-01-03 Yao Qi <yao@codesourcery.com>
11341
11342 * psymtab.c (fixup_psymbol_section): Update declaration.
11343 (fixup_psymbol_section): Remove code returning value.
11344
e7e8980f
YQ
113452013-01-03 Yao Qi <yao@codesourcery.com>
11346
11347 * symtab.h: Remove some out of date comments.
11348 (enum exception_event_kind): Move it ...
11349 * breakpoint.c: ... here.
11350
569283d4
MF
113512013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11352
9f9d9a96 11353 PR gdb/14405
569283d4
MF
11354 * darwin-nat.c (darwin_read_dyld_info): Only build if
11355 TASK_DYLD_INFO_COUNT is defined.
11356 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11357 TASK_DYLD_INFO_COUNT is defined.
11358
2e36fbea
TT
113592013-01-02 Tom Tromey <tromey@redhat.com>
11360
11361 * symfile.h (struct ecoff_debug_hack): Remove.
11362 * objfiles.c: Don't include mdebugread.h.
11363
4f05add4
TT
113642013-01-02 Tom Tromey <tromey@redhat.com>
11365
11366 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11367 * configure.ac: Check for Mach-O support in BFD. Update
11368 CONFIG_OBS.
11369 * configure: Rebuild.
11370
def63ff0
TT
113712013-01-02 Tom Tromey <tromey@redhat.com>
11372
11373 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11374 * configure.ac: Use GDB_AC_CHECK_BFD.
11375 * configure: Rebuild.
11376
60c5dd93
MK
113772013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11378
11379 * MAINTAINERS: Update my email.
11380
6e58437e
JB
113812013-01-01 Joel Brobecker <brobecker@adacore.com>
11382
11383 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11384
627fe805
JB
113852013-01-01 Joel Brobecker <brobecker@adacore.com>
11386
11387 * rs6000-nat.c (bss_data_overlap): New function.
11388 (vmap_symtab): Use it to adjust the .bss section's offset.
11389
28e7fd62
JB
113902013-01-01 Joel Brobecker <brobecker@adacore.com>
11391
11392 Update year range in copyright notice of all files.
11393
e93a8774 113942013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11395
11396 * top.c (print_gdb_version): Update copyright year.
11397
72b20e9c 11398For older changes see ChangeLog-2012.
c906108c
SS
11399\f
11400Local Variables:
11401mode: change-log
11402left-margin: 8
11403fill-column: 74
11404version-control: never
57da7796 11405coding: utf-8
c906108c 11406End:
This page took 2.072876 seconds and 4 git commands to generate.