2013-06-04 Gary Benson <gbenson@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f9e14852
GB
12013-06-04 Gary Benson <gbenson@redhat.com>
2
3 * breakpoint.h (handle_solib_event): Moved function declaration
4 to solib.h.
5 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6 (bpstat_stop_status): Pass new argument to handle_solib_event.
7 * solib.h (update_solib_breakpoints): New function declaration.
8 (handle_solib_event): Moved function declaration from
9 breakpoint.h.
10 * solib.c (update_solib_breakpoints): New function.
11 (handle_solib_event): Moved function from breakpoint.c.
12 Updated to call solib_ops->handle_event if not NULL.
13 * solist.h (target_so_ops): New fields "update_breakpoints" and
14 "handle_event".
15 * infrun.c (set_stop_on_solib_events): New function.
16 (_initialize_infrun): Use the above for "set
17 stop-on-solib-events".
18 (handle_inferior_event): Pass new argument to handle_solib_event.
19 * solib-svr4.c (probe.h): New include.
20 (svr4_free_library_list): New forward declaration.
21 (probe_action): New enum.
22 (probe_info): New struct.
23 (probe_info): New static variable.
24 (NUM_PROBES): New definition.
25 (svr4_info): New fields "using_xfer", "probes_table" and
26 "solib_list".
27 (free_probes_table): New function.
28 (free_solib_list): New function.
29 (svr4_pspace_data_cleanup): Free probes table and solib list.
30 (svr4_copy_library_list): New function.
31 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
32 (svr4_read_so_list): New parameter "prev_lm".
33 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
34 (svr4_current_sos): New function.
35 (probe_and_action): New struct.
36 (hash_probe_and_action): New function.
37 (equal_probe_and_action): Likewise.
38 (register_solib_event_probe): Likewise.
39 (solib_event_probe_at): Likewise.
40 (solib_event_probe_action): Likewise.
41 (solist_update_full): Likewise.
42 (solist_update_incremental): Likewise.
43 (disable_probes_interface_cleanup): Likewise.
44 (svr4_handle_solib_event): Likewise.
45 (svr4_update_solib_event_breakpoint): Likewise.
46 (svr4_update_solib_event_breakpoints): Likewise.
47 (svr4_create_solib_event_breakpoints): Likewise.
48 (enable_break): Free probes table before creating breakpoints.
49 Use svr4_create_solib_event_breakpoints to create breakpoints.
50 (svr4_solib_create_inferior_hook): Free the solib list.
51 (_initialize_svr4_solib): Initialise
52 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
53
ced63ec0
GB
542013-06-04 Gary Benson <gbenson@redhat.com>
55
56 * target.h (target_ops): New field
57 "to_augmented_libraries_svr4_read".
58 (target_augmented_libraries_svr4_read): New macro.
59 * target.c (update_current_target): Handle
60 to_augmented_libraries_svr4_read.
61 * remote.c (remote_state): New field
62 "augmented_libraries_svr4_read".
63 (remote_augmented_libraries_svr4_read_feature): New function.
64 (remote_protocol_features): Add entry for
65 "augmented-libraries-svr4-read".
66 (remote_augmented_libraries_svr4_read): New function.
67 (init_remote_ops): Initialize
68 remote_ops.to_augmented_libraries_svr4_read.
69
7f91dbec
GB
702013-06-04 Gary Benson <gbenson@redhat.com>
71
72 * NEWS: Update.
73
607ece04
GB
742013-06-04 Gary Benson <gbenson@redhat.com>
75
76 * objfiles.h (inhibit_section_map_updates): New function
77 declaration.
78 (resume_section_map_updates): Likewise.
79 (resume_section_map_updates_cleanup): Likewise.
80 * objfiles.c (objfile_pspace_info): Removed field
81 "objfiles_changed_p". New fields "new_objfiles_available",
82 "section_map_dirty" and "inhibit_updates".
83 (allocate_objfile): Set new_objfiles_available.
84 (free_objfile): Set section_map_dirty.
85 (objfile_relocate1): Likewise.
86 (in_plt_section): Likewise.
87 (find_pc_section): Update the conditions under which the
88 section map will be updated.
89 (inhibit_section_map_updates): New function.
90 (resume_section_map_updates): Likewise.
91 (resume_section_map_updates_cleanup): Likewise.
92
9ee6a5ac
GB
932013-06-04 Gary Benson <gbenson@redhat.com>
94
95 * probe.h (get_probe_argument_count): New declaration.
96 (evaluate_probe_argument): Likewise.
97 * probe.c (get_probe_argument_count): New function.
98 (evaluate_probe_argument): Likewise.
99 (probe_safe_evaluate_at_pc): Use the above new functions.
100
845d4708
AM
1012013-06-04 Alan Modra <amodra@gmail.com>
102
103 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
104 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
105 (ppc_insns_match_pattern): Add frame param. Avoid multiple
106 target mem reads on optional insns.
107 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
108 ppc_insns_match_pattern calls.
109 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
110 Add match for power7 thread safety insns, and new order of
111 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
112 invocation in comment, and update rest of comment.
113 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
114 PPC64_STANDARD_LINKAGE3_LEN): Delete.
115 (ppc64_standard_linkage2_target): Update insn offsets.
116 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
117 stubs first. Update calls.
118
404e278f
YQ
1192013-06-04 Yao Qi <yao@codesourcery.com>
120
121 * solib.c (solib_find): Don't need dir separator if path has
122 drive spec.
123
f6aea118
JB
1242013-06-03 Joel Brobecker <brobecker@adacore.com>
125
126 Revert (indirectly causes a SIGSEGV):
127 * machoread.c (macho_symfile_read): Assign first cleanup to
128 'back_to'.
129
87967e27
YQ
1302013-06-03 Yao Qi <yao@codesourcery.com>
131
132 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
133 mi-parse.c. Make them static.
134 (mi_all_values): Likewise.
135 (mi_parse_values_option): Move to mi-parse.c. Rename it to
136 mi_parse_print_values. Make it external.
137 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
138 Remove the declarations.
139 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
140 * mi/mi-parse.h (mi_parse_print_values): Declare.
141 * mi/mi-cmd-stack.c: Include mi-parse.h.
142 (parse_print_values): Remove
143 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
144 of parse_print_values.
145 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
146
3ca73e0c
YQ
1472013-05-31 Pedro Alves <pedro@codesourcery.com>
148 Yao Qi <yao@codesourcery.com>
149
150 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
151 (encode_actions): Move code to ...
152 (all_tracepoint_actions_and_cleanup): ... here. New.
153 (trace_dump_command): Likewise.
154
4e993a19
TT
1552013-05-30 Tom Tromey <tromey@redhat.com>
156
157 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
158
e3b76b4f
TT
1592013-05-30 Tom Tromey <tromey@redhat.com>
160
161 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
162 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
163 'old_chain' argument. Add 'parser_result' argument.
164 (gdb_xml_create_parser_and_cleanup): Remove old version.
165 (gdb_xml_parse_quick): Update.
166 (xml_process_xincludes): Update.
167 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
168 declare.
169
db26349c
TT
1702013-05-30 Tom Tromey <tromey@redhat.com>
171
172 * probe.c (collect_probes): Check arguments for NULL before
173 calling compile_rx_or_error.
174 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
175 Remove NULL return.
176
77f9e713
TT
1772013-05-30 Tom Tromey <tromey@redhat.com>
178
179 * infrun.c (adjust_pc_after_break): Introduce an outer null
180 cleanup.
181
45475de7
TT
1822013-05-30 Tom Tromey <tromey@redhat.com>
183
184 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
185
ac5007fd
TT
1862013-05-30 Tom Tromey <tromey@redhat.com>
187
188 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
189 for 'old_chain'. Do not check 'head' before processing
190 cleanups.
191
cd82eddc
TT
1922013-05-30 Tom Tromey <tromey@redhat.com>
193
194 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
195 "cleanup_tuple".
196
57cee33a
TT
1972013-05-30 Tom Tromey <tromey@redhat.com>
198
199 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
200 inner scope. Unconditionally call do_cleanups.
201
795d915c
TT
2022013-05-30 Tom Tromey <tromey@redhat.com>
203
204 * source.c (find_and_open_source): Call do_cleanups.
205
1fc3cf4a
TT
2062013-05-30 Tom Tromey <tromey@redhat.com>
207
208 * linux-thread-db.c (thread_db_load_search): Unconditionally
209 call do_cleanups.
210
e35ac9bf
TT
2112013-05-30 Tom Tromey <tromey@redhat.com>
212
213 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
214 for 'cleanup'; instead use a later one.
215
f3300387
TT
2162013-05-30 Tom Tromey <tromey@redhat.com>
217
218 * python/py-breakpoint.c (bppy_get_commands): Use
219 explicit, unconditional return.
220 * python/py-frame.c (frapy_read_var): Likewise.
221 * python/python.c (gdbpy_decode_line): Likewise.
222
c27e16e3
TT
2232013-05-30 Tom Tromey <tromey@redhat.com>
224
225 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
226 do_cleanups on all return paths.
227
5ae85e44
TT
2282013-05-30 Tom Tromey <tromey@redhat.com>
229
230 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
231
73b8d9da
TT
2322013-05-30 Tom Tromey <tromey@redhat.com>
233
234 * stabsread.c (read_struct_type): Call do_cleanups along
235 all return paths.
236
7d266584
MR
2372013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
238
239 * mips-linux-tdep.c: Adjust formatting throughout.
240
0f900f54
TT
2412013-05-30 Tom Tromey <tromey@redhat.com>
242
243 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
244 along all return paths.
245
a991ac28
TT
2462013-05-30 Tom Tromey <tromey@redhat.com>
247
248 * symfile.c (find_separate_debug_file): Call do_cleanups
249 along all return paths.
250
1abaf042
TT
2512013-05-30 Tom Tromey <tromey@redhat.com>
252
253 * symtab.c (search_symbols): Introduce a null cleanup for
254 'retval_chain'.
255
edefe1da
TT
2562013-05-30 Tom Tromey <tromey@redhat.com>
257
258 * python/py-value.c (valpy_binop): Call do_cleanups before
259 exiting loop.
260
54f72dcc
TT
2612013-05-30 Tom Tromey <tromey@redhat.com>
262
263 * python/py-prettyprint.c (print_children): Remove extra
264 do_cleanups call.
265
af1c6971
TT
2662013-05-30 Tom Tromey <tromey@redhat.com>
267
268 * python/py-frame.c (frapy_read_var): Call do_cleanups along
269 all return paths.
270
b862ce75
TT
2712013-05-30 Tom Tromey <tromey@redhat.com>
272
273 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
274 along all return paths.
275
e12fefc8
TT
2762013-05-30 Tom Tromey <tromey@redhat.com>
277
278 * cli/cli-logging.c (set_logging_redirect): Unconditionally
279 call do_cleanups.
280
4867f990
TT
2812013-05-30 Tom Tromey <tromey@redhat.com>
282
283 * varobj.c (c_value_of_root): Call do_cleanups along all
284 return paths.
285
4fd2d6af
TT
2862013-05-30 Tom Tromey <tromey@redhat.com>
287
288 * tracepoint.c (trace_dump_command): Unconditionally call
289 do_cleanups.
290
752eb8b4
TT
2912013-05-30 Tom Tromey <tromey@redhat.com>
292
293 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
294 do_cleanups earlier.
295
e42d0aa5
TT
2962013-05-30 Tom Tromey <tromey@redhat.com>
297
298 * machoread.c (macho_symfile_read): Assign first cleanup to
299 'back_to'.
300
4bbc010a
TT
3012013-05-30 Tom Tromey <tromey@redhat.com>
302
303 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
304
b9635925
TT
3052013-05-30 Tom Tromey <tromey@redhat.com>
306
307 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
308
25f43500
TT
3092013-05-30 Tom Tromey <tromey@redhat.com>
310
311 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
312 call discard_cleanups.
313 (inf_ptrace_attach): Likewise.
314
d6a2e54a
TT
3152013-05-30 Tom Tromey <tromey@redhat.com>
316
317 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
318 return paths.
319 (mips_initialize): Likewise.
320 (common_open): Call do_cleanups.
321
48be7c1b
TT
3222013-05-30 Tom Tromey <tromey@redhat.com>
323
324 * utils.c (internal_vproblem): Call do_cleanups.
325
e61727ab
TT
3262013-05-30 Tom Tromey <tromey@redhat.com>
327
328 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
329
b81b921f
TT
3302013-05-30 Tom Tromey <tromey@redhat.com>
331
332 * cli/cli-script.c (setup_user_args): Don't return after error.
333
fe48dfb1
TT
3342013-05-30 Tom Tromey <tromey@redhat.com>
335
336 * somread.c (som_symtab_read): Call do_cleanups.
337
27833de7
TT
3382013-05-30 Tom Tromey <tromey@redhat.com>
339
340 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
341
5b3fca71
TT
3422013-05-30 Tom Tromey <tromey@redhat.com>
343
344 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
345 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
346 * interps.c (interpreter_exec_cmd): Call do_cleanups.
347 * source.c (show_substitute_path_command): Call do_cleanups.
348 (unset_substitute_path_command, set_substitute_path_command):
349 Likewise.
350 * symfile.c (load_command): Call do_cleanups.
351
af83e3f8
TT
3522013-05-30 Tom Tromey <tromey@redhat.com>
353
354 * contrib/cleanup_check.py: New file.
355 * contrib/gcc-with-excheck: Add option parsing.
356
564eac42
JB
3572013-05-30 Joel Brobecker <brobecker@adacore.com>
358
359 * windows-nat.c (windows_delete_thread): Add missing space
360 in cast expression.
361
47902076
HAQ
3622013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
363
364 * inferior.c (top level): Include tilde.h.
365 (add_inferior_command): Call tilde_expand on the value of 'exec'
366 argument.
367
23da373a
YQ
3682013-05-30 Pedro Alves <pedro@codesourcery.com>
369 Yao Qi <yao@codesourcery.com>
370
371 * tracepoint.c (encode_actions_1): Remove parameter 't'.
372 Caller update.
373 (encode_actions): Likewise.
374 * remote.c (remote_download_tracepoint): Caller update.
375 * tracepoint.h (encode_actions): Update declaration.
376
a6e6f791
PA
3772013-05-30 Pedro Alves <palves@redhat.com>
378
379 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
380 pointer.
381
36d25514
YQ
3822013-05-30 Yao Qi <yao@codesourcery.com>
383
384 * remote.c (remote_check_symbols): Remove unused parameter
385 'objfile'.
386 Declaration update.
387 (remote_start_remote, remote_new_objfile): Caller update.
388
62a813cc
YQ
3892013-05-30 Yao Qi <yao@codesourcery.com>
390
391 * mi/mi-cmds.c (mi_cmds): Define MI command
392 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
393 DEF_MI_CMD_CLI.
394
28439a30
PA
3952013-05-29 Pedro Alves <palves@redhat.com>
396
397 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
398 (remote_insert_watchpoint, remote_remove_watchpoint)
399 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
400 (remote_verify_memory, compare_sections_command)
401 (remote_search_memory): Set the general process/thread on the
402 remote side.
403
6ac1c082
PA
4042013-05-29 Pedro Alves <palves@redhat.com>
405
406 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
407 (_initialize_aarch64_tdep): Don't call
408 initialize_tdesc_aarch64_without_fpu.
409 * features/Makefile (WHICH): Remove reference to
410 aarch64-without-fpu.
411 * features/aarch64-without-fpu.c: Delete file.
412 * regformats/aarch64-without-fpu.dat: Delete file.
413
a73e3634
YQ
4142013-05-28 Yao Qi <yao@codesourcery.com>
415
416 * tracepoint.c (stringify_collection_list): Remove parameter
417 'string'.
418 (encode_actions): Caller update. Remove local variables.
419
c0ea94eb
YQ
4202013-05-24 Yao Qi <yao@codesourcery.com>
421
422 * tracepoint.c (TFILE_PID): Remove.
423 (tfile_open): Don't add thread and inferior.
424 (tfile_close): Don't set 'inferior_ptid'. Don't call
425 exit_inferior_silent.
426 (tfile_thread_alive): Remove.
427 (init_tfile_ops): Don't set field 'to_thread_alive' of
428 tfile_ops.
429
20d7f211
DE
4302013-05-23 Doug Evans <dje@google.com>
431
432 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
433
8658d16d
PA
4342013-05-23 Pedro Alves <palves@redhat.com>
435
436 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
437 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
438 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
439 Only define if HAVE_SOCKETS is defined.
440 * configure.ac: Check for sys/socket.h.
441 * config.in, configure: Regenerate.
442
21aa081e
PA
4432013-05-23 Pedro Alves <palves@redhat.com>
444
445 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
446 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
447 printing uint32_t variables.
448
c2d6af84
PA
4492013-05-23 Pedro Alves <palves@redhat.com>
450
451 * NEWS: Mention GDBserver range stepping support.
452
c1e36e3e
PA
4532013-05-23 Yao Qi <yao@codesourcery.com>
454 Pedro Alves <palves@redhat.com>
455
456 * gdbthread.h (struct thread_control_state) <may_range_step>: New
457 field.
458 * infcmd.c (step_once, until_next_command): Enable range stepping.
459 * infrun.c (displaced_step_prepare): Disable range stepping.
460 (resume): Disable range stepping if stepping over a breakpoint or
461 we have software watchpoints. If range stepping is enabled,
462 assert the thread is in the stepping range.
463 (clear_proceed_status_thread): Clear may_range_step.
464 (handle_inferior_event): Disable range stepping as soon as we know
465 the thread that hit the event. Re-enable it whenever we're going
466 to step with a step range.
467 * remote.c (struct vCont_action_support) <r>: New field.
468 (use_range_stepping): New global.
469 (remote_vcont_probe): Handle 'r' action.
470 (append_resumption): Append an 'r' action if the thread may range
471 step.
472 (show_range_stepping): New function.
473 (set_range_stepping): New function.
474 (_initialize_remote): Call add_setshow_boolean_cmd to register the
475 'set range-stepping' and 'show range-stepping' commands.
476 * NEWS: Mention range stepping, the new vCont;r action, and the
477 new "set/show range-stepping" commands.
478
d458bd84
PA
4792013-05-23 Yao Qi <yao@codesourcery.com>
480 Pedro Alves <palves@redhat.com>
481
482 * remote.c (struct vCont_action_support): New struct.
483 (struct remote_state) <support_vCont_t>: Remove field.
484 <vCont_actions_support>: New field.
485 (remote_vcont_probe, remote_stop_ns): Update.
486
ce4c476a
PA
4872013-05-23 Yao Qi <yao@codesourcery.com>
488 Pedro Alves <palves@redhat.com>
489
490 * gdbthread.h (pc_in_thread_step_range): New declaration.
491 * thread.c (pc_in_thread_step_range): New function.
492 * infrun.c (handle_inferior_event): Use it.
493
ce70887a
JB
4942013-05-23 Joel Brobecker <brobecker@adacore.com>
495
496 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
497 of sprintf.
498
55b87a52
KS
4992013-05-22 Keith Seitz <keiths@redhat.com>
500
501 * ada-lang.c (is_known_support_routine): Add explicit free of
502 'func_name' from find_frame_funname.
503 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
504 for func_name from find_frame_funname.
505 * python/py-frame.c (frapy_name): Add explicit free of
506 'name' from find_frame_funname.
507 * stack.c (find_frame_funname): Add comment explaining that
508 funcp must be freed by the caller.
509 Return copy of symbol names instead of pointers.
510 (print_frame): Add a cleanup for 'funname' from
511 find_frame_funname.
512 * stack.h (find_frame_funname): Remove "const" from
513 'funname' parameter.
514
5f2e6b00
TT
5152013-05-22 Tom Tromey <tromey@redhat.com>
516
517 PR c++/15401:
518 * c-valprint.c (c_value_print): Use value_addr for
519 references. Convert back to reference type with value_ref.
520
d85c4847
EZ
5212013-05-22 Eli Zaretskii <eliz@gnu.org>
522
523 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
524 unloaded DLL, it will be done by handle_solib_event. See
525 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
526 details.
527
54eb231c
PM
5282013-05-22 Phil Muldoon <pmuldoon@redhat.com>
529
530 * ui-out.c: Create typedef ui_out_level_p and define vector
531 operations for that type.
532 (struct ui_out): Use a vector instead of an array.
533 (current_level): Return level from a vector.
534 (push_level): Create a level in a vector.
535 (pop_level): Delete a level in a vector.
536 (ui_out_new): Create initial level zero level, and store in a
537 vector.
538 (ui_out_destroy): Add vector cleanup.
539
ac90359c
PA
5402013-05-22 Pedro Alves <palves@redhat.com>
541
542 * python/python-internal.h (gdb_Py_DECREF): Tag with
543 "ARI: editCase function".
544
6dcc1893
PP
5452013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
546
547 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
548
c8c735b9
PA
5492013-05-21 Pedro Alves <palves@redhat.com>
550
551 * python/py-prettyprint.c (apply_val_pretty_printer): Check
552 whether PRINTER is NULL before installing a Py_DECREF cleanup.
553 * python/py-utils.c (py_decref): Don't check for NULL before
554 calling Py_DECREF.
555
1915daeb
PA
5562013-05-21 Pedro Alves <palves@redhat.com>
557
558 * python/py-utils.c (py_decref): Remove extra braces.
559 (gdb_pymodule_addobject): Remove extra braces.
560 * python-internal.h (gdb_Py_DECREF): New static inline function.
561 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
562
bd9673a4
PW
5632013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
564
565 * breakpoints.c (detach_breakpoints): Do not
566 detach breakpoints locations with loc_type bp_loc_other.
567
ff6009d0
JK
5682013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 Workaround Python 2.6.
571 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
572 a block.
573
3641da11
JK
5742013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Code cleanup: constification.
577 * solib.c (solib_ops): Make return type and ops variable type const.
578 (set_solib_ops): Make the new_ops parameter and ops variable const.
579 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
580 (solib_add, solib_keep_data_in_core, clear_solib)
581 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
582 (reload_shared_libraries, solib_global_lookup): Make the ops variable
583 const.
584 * solib.h (set_solib_ops): Make the new_ops parameter const.
585
776af39e
JB
5862013-05-21 Joel Brobecker <brobecker@adacore.com>
587
588 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
589 variable.
590 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
591 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
592 (SYSTEM_GDBINIT_FILES): New variables.
593 (all): Add stamp-system-gdbinit.
594 (stamp-system-gdbinit): New rule.
595 (clean-system-gdbinit, install-system-gdbinit)
596 (uninstall-system-gdbinit): New rules. Make them .PHONY.
597 (install-only): Add dependency on install-system-gdbinit.
598 (uninstall): Add dependency on uninstall-system-gdbinit.
599 (clean): Add dependency on clean-system-gdbinit.
600 * system-gdbinit/elinos.py: New file.
601 * system-gdbinit/wrs-linux.py: New file.
602
1509e573
JB
6032013-05-21 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
606
c5867ab6
HZ
6072013-05-21 Hui Zhu <hui@codesourcery.com>
608
609 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
610 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
611 * mi/mi-cmd-break.c (ctype.h): New include.
612 (gdb_obstack.h): New include.
613 (mi_argv_to_format, mi_cmd_break_insert_1): New.
614 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
615 (mi_cmd_dprintf_insert): New.
616 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
617 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
618
7d38e38f
TT
6192013-05-20 Tom Tromey <tromey@redhat.com>
620
621 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
622
97b77b39
TT
6232013-05-20 Tom Tromey <tromey@redhat.com>
624
625 * python/py-value.c (valpy_get_dynamic_type): Simplify
626 dynamic_type assignment. Use Py_XINCREF.
627
53e66479
TT
6282013-05-20 Tom Tromey <tromey@redhat.com>
629
630 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
631
dcf87832
TT
6322013-05-20 Tom Tromey <tromey@redhat.com>
633
634 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
635 (gdbpy_selected_frame): Move object-construction code
636 out of TRY_CATCH.
637
aa36459a
TT
6382013-05-20 Tom Tromey <tromey@redhat.com>
639
640 * python/py-arch.c (gdbpy_initialize_arch): Use
641 gdb_pymodule_addobject.
642 * python/py-block.c (gdbpy_initialize_blocks): Use
643 gdb_pymodule_addobject.
644 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
645 gdb_pymodule_addobject.
646 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
647 gdb_pymodule_addobject.
648 * python/py-event.c (gdbpy_initialize_event_generic): Use
649 gdb_pymodule_addobject.
650 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
651 gdb_pymodule_addobject.
652 * python/py-evts.c (add_new_registry): Use
653 gdb_pymodule_addobject.
654 (gdbpy_initialize_py_events): Likewise.
655 * python/py-finishbreakpoint.c
656 (gdbpy_initialize_finishbreakpoints): Use
657 gdb_pymodule_addobject.
658 * python/py-frame.c (gdbpy_initialize_frames): Use
659 gdb_pymodule_addobject.
660 * python/py-function.c (gdbpy_initialize_functions): Use
661 gdb_pymodule_addobject.
662 * python/py-inferior.c (gdbpy_initialize_inferior): Use
663 gdb_pymodule_addobject.
664 * python/py-infthread.c (gdbpy_initialize_thread): Use
665 gdb_pymodule_addobject.
666 * python/py-objfile.c (gdbpy_initialize_objfile): Use
667 gdb_pymodule_addobject.
668 * python/py-param.c (gdbpy_initialize_parameters): Use
669 gdb_pymodule_addobject.
670 * python/py-progspace.c (gdbpy_initialize_pspace): Use
671 gdb_pymodule_addobject.
672 * python/py-symbol.c (gdbpy_initialize_symbols): Use
673 gdb_pymodule_addobject.
674 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
675 gdb_pymodule_addobject.
676 * python/py-type.c (gdbpy_initialize_types): Use
677 gdb_pymodule_addobject.
678 * python/py-utils.c (gdb_pymodule_addobject): New function.
679 * python/py-value.c (gdbpy_initialize_values): Use
680 gdb_pymodule_addobject.
681 * python/python-internal.h (gdb_pymodule_addobject): Declare.
682 * python/python.c (_initialize_python): Use
683 gdb_pymodule_addobject.
684
3d4a3c3e
TT
6852013-05-20 Tom Tromey <tromey@redhat.com>
686
687 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
688 * python/py-param.c (get_set_value, get_show_value): Use
689 explicit decrefs.
690 * python/python.c (start_type_printers, apply_type_printers):
691 Use explicit decrefs.
692
72ff8829
TT
6932013-05-20 Tom Tromey <tromey@redhat.com>
694
695 * python/py-evts.c (gdbpy_initialize_py_events): Don't
696 incref the module.
697
02146ba5
TT
6982013-05-20 Tom Tromey <tromey@redhat.com>
699
700 * python/python.c (gdbpy_run_events): Decref the result
701 of PyObject_CallObject.
702
33ee792f
TT
7032013-05-20 Tom Tromey <tromey@redhat.com>
704
705 * python/py-symtab.c (set_sal): Use
706 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
707 (symtab_and_line_to_sal_object): Update.
708
fcb49fc8
TT
7092013-05-20 Tom Tromey <tromey@redhat.com>
710
711 * python/py-param.c (compute_enum_values): Decref 'item'.
712
0646da15
TT
7132013-05-20 Tom Tromey <tromey@redhat.com>
714
715 * mi/mi-main.c: Include python-internal.h.
716 (mi_cmd_list_features): Check gdb_python_initialized.
717 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
718 (python_inferior_exit, python_new_objfile, add_thread_object)
719 (delete_thread_object, py_free_inferior): Check
720 gdb_python_initialized.
721 * python/py-prettyprint.c (apply_val_pretty_printer): Check
722 gdb_python_initialized.
723 * python/py-type.c (save_objfile_types): Check
724 gdb_python_initialized.
725 * python/python-internal.h (gdb_python_initialized): Declare.
726 * python/python.c (ensure_python_env): Throw exception if
727 Python not initialized.
728 (before_prompt_hook, source_python_script_for_objfile)
729 (start_type_printers, apply_type_printers,
730 free_type_printers): Check gdb_python_initialized.
731 * varobj.c (varobj_get_display_hint)
732 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
733 (install_new_value_visualizer, varobj_set_visualizer)
734 (value_get_print_value): Check gdb_python_initialized.
735
999633ed
TT
7362013-05-20 Tom Tromey <tromey@redhat.com>
737
738 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
739 Check errors.
740 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
741 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
742 Check errors.
743 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
744 Check errors.
745 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
746 Check errors.
747 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
748 Check errors.
749 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
750 init function to return 'int'.
751 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
752 Return 'int'. Check errors.
753 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
754 Check errors.
755 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
756 Return 'int'. Check errors.
757 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
758 Check errors.
759 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
760 Check errors.
761 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
762 Check errors.
763 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
764 Check errors.
765 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
766 Check errors.
767 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
768 Check errors.
769 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
770 Check errors.
771 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
772 Check errors.
773 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
774 Check errors.
775 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
776 Check errors.
777 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
778 Check errors.
779 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
780 Check errors.
781 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
782 Check errors.
783 * python/python-internal.h (gdbpy_initialize_auto_load,
784 gdbpy_initialize_values, gdbpy_initialize_frames,
785 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
786 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
787 gdbpy_initialize_blocks, gdbpy_initialize_types,
788 gdbpy_initialize_functions, gdbpy_initialize_pspace,
789 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
790 gdbpy_initialize_finishbreakpoints,
791 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
792 gdbpy_initialize_thread, gdbpy_initialize_inferior,
793 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
794 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
795 gdbpy_initialize_signal_event,
796 gdbpy_initialize_breakpoint_event,
797 gdbpy_initialize_continue_event,
798 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
799 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
800 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
801 * python/python.c (gdb_python_initialized): New global.
802 (gdbpy_initialize_events): Return 'int'. Check errors.
803 (_initialize_python): Check errors. Set
804 gdb_python_initialized.
805
18868860
TT
8062013-05-20 Tom Tromey <tromey@redhat.com>
807
808 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
809 Decref the reslut of PyObject_CallMethod.
810
9f4ff0c2
TT
8112013-05-20 Tom Tromey <tromey@redhat.com>
812
813 * python/py-event.c (gdbpy_initialize_event_generic): Return
814 early if PyType_Ready fails.
815
0d3a2e8a
TT
8162013-05-20 Tom Tromey <tromey@redhat.com>
817
818 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
819 as 'default' in the switch.
820
b86af38a
TT
8212013-05-20 Tom Tromey <tromey@redhat.com>
822
823 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
824 get_addr_from_python calls out of TRY_CATCH.
825 (infpy_write_memory, infpy_search_memory): Likewise.
826 * python/py-utils.c (get_addr_from_python): Return negative
827 value on error. Use TRY_CATCH.
828 * python/python-internal.h (get_addr_from_python): Use
829 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
830
c127ec58
TT
8312013-05-20 Tom Tromey <tromey@redhat.com>
832
833 * python/py-event.c (evpy_emit_event): Decref the
834 result of PyObject_CallFunctionObjArgs.
835
ba327838
TT
8362013-05-20 Tom Tromey <tromey@redhat.com>
837
838 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
839 Correctly decref.
840
d8191432
TT
8412013-05-20 Tom Tromey <tromey@redhat.com>
842
843 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
844
5d153bd1
TT
8452013-05-20 Tom Tromey <tromey@redhat.com>
846
847 * python/py-event.h (gdbpy_initialize_event_generic): Use
848 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
849 * python/py-evts.c (add_new_registry): Use
850 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
851 * python/python-internal.h
852 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
853
56cc411c
TT
8542013-05-20 Tom Tromey <tromey@redhat.com>
855
856 * python/py-arch.c (archpy_disassemble): Update.
857 * python/py-type.c (typy_get_composite, typy_lookup_typename)
858 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
859 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
860 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
861 macro.
862 (GDB_PY_HANDLE_EXCEPTION): Update.
863 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
864
8919e174
TT
8652013-05-20 Tom Tromey <tromey@redhat.com>
866
867 * python/python-internal.h (events_object_type): Remove.
868
9b08f225
TT
8692013-05-20 Tom Tromey <tromey@redhat.com>
870
871 * python/py-event.h (evpy_emit_event): Use
872 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
873 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
874 New macro.
875
f04010ff
TT
8762013-05-20 Tom Tromey <tromey@redhat.com>
877
878 * py-evtregistry.c (create_event_object): Decref
879 eventregistry_object if PyList_New fails.
880
3919fd96
TT
8812013-05-20 Tom Tromey <tromey@redhat.com>
882
883 * py-cmd.c (gdbpy_string_to_argv): Check result of
884 PyList_New.
885
0430e8cb
TT
8862013-05-20 Tom Tromey <tromey@redhat.com>
887
888 * python/python.c (before_prompt_hook): Add cleanup to
889 decref 'hook'.
890
764123e4
TT
8912013-05-20 Tom Tromey <tromey@redhat.com>
892
893 * python/py-function.c (fnpy_init): Decref result of
894 PyObject_GetAttrString.
895
634c58be
TT
8962013-05-20 Tom Tromey <tromey@redhat.com>
897
898 * python/py-threadevent.c (get_event_thread): Use
899 CPYCHECKER_RETURNS_BORROWED_REF.
900 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
901 New define.
902 (pspace_to_pspace_object, objfile_to_objfile_object)
903 (find_thread_object): Use it.
904
62eec1a5
TT
9052013-05-20 Tom Tromey <tromey@redhat.com>
906
907 * python/py-arch.c (arch_object_type): Use
908 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
909 * python/py-block.c (block_syms_iterator_object_type):
910 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
911 * python/py-bpevent.c (breakpoint_event_object_type):
912 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
913 * python/py-cmd.c (cmdpy_object_type): Use
914 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
915 * python/py-continueevent.c (continue_event_object_type):
916 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
917 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
918 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
919 * python/py-events.h (thread_event_object_type):
920 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
921 * python/py-evtregistry.c (eventregistry_object_type): Use
922 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
923 * python/py-exitedevent.c (exited_event_object_type):
924 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
925 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
926 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
927 * python/py-function.c (fnpy_object_type): Use
928 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
929 * python/py-inferior.c (inferior_object_type, membuf_object_type):
930 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
931 * python/py-infthread.c (thread_object_type): Use
932 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
933 * python/py-lazy-string.c (lazy_string_object_type):
934 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
935 * python/py-newobjfileevent.c (new_objfile_event_object_type):
936 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
937 * python/py-objfile.c (objfile_object_type): Use
938 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
939 * python/py-param.c (parmpy_object_type):
940 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
941 * python/py-progspace.c (pspace_object_type):
942 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
943 * python/py-signalevent.c (signal_event_object_type):
944 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
945 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
946 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
947 * python/py-type.c (type_object_type, field_object_type)
948 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
949 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
950 define.
951 (value_object_type, block_object_type, symbol_object_type)
952 (event_object_type, stop_event_object_type, breakpoint_object_type)
953 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
954
81ea8796
AT
9552013-05-20 Andreas Tobler <andreas@fgznet.ch>
956
957 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
958 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
959
a2ce51a0
DE
9602013-05-20 Doug Evans <dje@google.com>
961
962 When reading CU, stay in DWO. Be more tolerent of bad debug info.
963 For Fission.
964 * dwarf2read.c (struct dwarf2_per_cu_data): New member
965 reading_dwo_directly.
966 (struct signatured_type): New member dwo_unit.
967 (struct die_reader_specs): New member comp_dir.
968 (create_signatured_type_table_from_index): Use malloc for
969 all_type_units instead of objfile's obstack.
970 (create_all_type_units): Ditto.
971 (fill_in_sig_entry_from_dwo_entry): New function.
972 (add_type_unit): New function.
973 (lookup_dwo_signatured_type): New function.
974 (lookup_dwp_signatured_type): New function.
975 (lookup_signatured_type): New arg cu. All callers updated.
976 (init_cu_die_reader): Initialize comp_dir.
977 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
978 Change assert of matching type signatures to call error on mismatch.
979 (lookup_dwo_unit): Add assert.
980 (init_tu_and_read_dwo_dies): New function.
981 (init_cutu_and_read_dies): Call it.
982 (build_type_unit_groups): Handle case of no type unit groups created.
983 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
984 (lookup_dwo_cutu): Tweak complaint.
985 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
986 (dwarf2_per_objfile_free): Free all_type_units.
987
a25cd31f
JB
9882013-05-20 Joel Brobecker <brobecker@adacore.com>
989
990 * windows-nat.c (handle_unload_dll): Add missing empty line.
991
4d804846
JB
9922013-05-20 Joel Brobecker <brobecker@adacore.com>
993
994 * dwarf2read.c (prototyped_function_p): New function.
995 (read_subroutine_type): Use it.
996
1c432e72
JB
9972013-05-20 Joel Brobecker <brobecker@adacore.com>
998
999 * rs6000-aix-tdep.c: De-indent some example code provided
1000 as a comment.
1001
4feebbdd
EBM
10022013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
1003
1004 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1005 region is ok for a hardware watchpoint using the new ptrace interface
1006 on Power servers.
1007
7d0c9981
DE
10082013-05-17 Doug Evans <dje@google.com>
1009
1010 * NEWS: Mention new maintenance commands check-symtabs, and
1011 expand-symtabs, and renamed check-psymtabs.
1012 * psymtab.c (maintenance_check_psymtabs): Renamed from
1013 maintenance_check_symtabs. Only process already-expanded symbol
1014 tables.
1015 (_initialize_psymtab): Update.
1016 * symmisc.c (maintenance_check_symtabs): New function.
1017 (maintenance_expand_name_matcher): New function
1018 (maintenance_expand_file_matcher): New function
1019 (maintenance_expand_symtabs): New function.
1020 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1021 commands.
1022
6cbc7c3d
TT
10232013-05-17 Tom Tromey <tromey@redhat.com>
1024
1025 * python/py-inferior.c (infpy_read_memory): Don't call
1026 PyErr_SetString if PyObject_New fails.
1027 * python/py-frame.c (frame_info_to_frame_object): Don't call
1028 PyErr_SetString if PyObject_New fails.
1029
a48b32c0
L
10302013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
1031
1032 * acinclude.m4: Add check for dlopen in libdl.
1033 * configure.ac: Ditto.
1034 * configure: Regenerate.
1035
3de661e6
PM
10362013-05-17 Phil Muldoon <pmuldoon@redhat.com>
1037
1038 * frame.c (frame_stash): Convert to htab.
1039 (frame_addr_hash): New function.
1040 (frame_addr_hash_eq): New function.
1041 (frame_stash_create): Convert function to create
1042 a hash table.
1043 (frame_stash_add): Convert function to add an entry to a hash
1044 table.
1045 (frame_stash_find): Convert function to search the hash table.
1046 (frame_stash_invalidate): Convert function to empty the hash
1047 table.
1048 (get_frame_id): Only add to stash if a frame_id is created.
1049 (_initialize_frame): Call frame_stash_create.
1050
bb4168a9 10512013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
1052
1053 * configure.ac: Ensure MIG is available when building for GNU Hurd
1054 hosts.
1055 * configure: Regenerate.
1056
d1be3247
JB
10572013-05-16 Joel Brobecker <brobecker@adacore.com>
1058
1059 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1060
b8fea896
JB
10612013-05-16 Joel Brobecker <brobecker@adacore.com>
1062
1063 * ada-lang.c (ada_make_symbol_completion_list): Make sure
1064 all cleanups are done before returning from this function.
1065
af880d85
JB
10662013-05-15 Joel Brobecker <brobecker@adacore.com>
1067
1068 * utils.h: #include "exceptions.h".
1069 (enum errors): Remove partial declaration.
1070
356a5233
JB
10712013-05-15 Joel Brobecker <brobecker@adacore.com>
1072
1073 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1074 * gdbarch.h, gdbarch.c: Regenerate.
1075 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1076 handling.
1077
1078 * rs6000-aix-tdep.h: New file.
1079 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1080 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1081 "xml-utils.h".
1082 (struct field_info, struct ld_info_desc): New types.
1083 (ld_info32_desc, ld_info64_desc): New static constants.
1084 (struct ld_info): New type.
1085 (rs6000_aix_extract_ld_info): New function.
1086 (rs6000_aix_shared_library_to_xml): Likewise.
1087 (rs6000_aix_ld_info_to_xml): Likewise.
1088 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1089 (rs6000_aix_init_osabi): Add call to
1090 set_gdbarch_core_xfer_shared_libraries_aix.
1091 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1092 Remove "xml-utils.h" include.
1093 (LdInfo): Delete typedef.
1094 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1095 Delete macros.
1096 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1097 Adjust code accordingly.
1098 (rs6000_core_ldinfo): Delete, folded into
1099 rs6000_aix_core_xfer_shared_libraries_aix.
1100 (rs6000_xfer_shared_library): Delete.
1101 (rs6000_xfer_shared_libraries): Reimplement.
1102
742ce053
MM
11032013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1104
1105 * record.c (record_goto_cmdlist): New.
1106 (cmd_record_goto): Split into this ...
1107 (cmd_record_goto_begin): ... this
1108 (cmd_record_goto_end): ... and this.
1109 (_initialize_record): Change "record goto" to prefix command.
1110 Add commands for "record goto begin" and "record goto end".
1111 Add an alias for "record goto start" to "record goto begin".
1112
e93ba630
JK
11132013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * linespec.c (convert_linespec_to_sals): New comment for
1116 SOURCE_FILENAME assignment.
1117
5821aace
JK
11182013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1121 internal_warning.
1122
a1b8c4cc
TT
11232013-05-14 Tom Tromey <tromey@redhat.com>
1124
1125 * eval.c (parse_and_eval_long): Make 'exp' const.
1126 * value.h (parse_and_eval_long): Update.
1127
23b3a2c3
TT
11282013-05-14 Tom Tromey <tromey@redhat.com>
1129
1130 * ui-file.c (gdb_fopen): Make arguments const.
1131 * ui-file.h (gdb_fopen): Make arguments const.
1132
ca623f82
TT
11332013-05-14 Tom Tromey <tromey@redhat.com>
1134
1135 * remote.c (remote_set_trace_notes): Make arguments const.
1136 * target.c (update_current_target): Update cast.
1137 * target.h (to_set_trace_notes): Make arguments const.
1138
503ebb2c
TT
11392013-05-14 Tom Tromey <tromey@redhat.com>
1140
1141 * go32-nat.c (go32_terminal_info): Make 'args' const.
1142 * inferior.h (child_terminal_info): Update.
1143 * inflow.c (child_terminal_info): Make 'args' const.
1144 * target.c (default_terminal_info): Make 'args' const.
1145 (debug_to_terminal_save_ours): Likewise.
1146 * target.h (struct target_ops) <to_terminal_info>: Make argument
1147 const.
1148
85e1311a
TT
11492013-05-13 Tom Tromey <tromey@redhat.com>
1150
1151 * gcore.c (create_gcore_bfd): Make 'filename' const.
1152 * gcore.h (create_gcore_bfd): Make 'filename' const.
1153 * record-full.c (record_full_save): Make 'recfilename' const.
1154 * target.c (target_save_record): Make 'filename' const.
1155 * target.h (struct target_ops) <to_save_record>: Make 'filename'
1156 const.
1157 (target_save_record): Likewise.
1158
d62bfeaf
TT
11592013-05-13 Tom Tromey <tromey@redhat.com>
1160
92ce080b 1161 PR gdb/15338:
d62bfeaf
TT
1162 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1163 ranges section has been read.
1164
ac1ca910
TT
11652013-05-13 Tom Tromey <tromey@redhat.com>
1166
1167 PR exp/15364:
1168 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1169 STRUCTOP_PTR>: Return a not_lval value for
1170 EVAL_AVOID_SIDE_EFFECTS.
1171 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1172 for EVAL_AVOID_SIDE_EFFECTS.
1173
36d1c68c
JB
11742013-05-13 Joel Brobecker <brobecker@adacore.com>
1175
1176 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1177 floating point registers to register type before storing
1178 value.
1179 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1180 Likewise.
1181
21ff4686
TT
11822013-05-10 Joel Brobecker <brobecker@adacore.com>
1183 Tom Tromey <tromey@redhat.com>
1184
1185 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1186 New functions.
1187 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1188 Declare.
1189 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1190 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1191 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1192 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1193
d3685d60
TT
11942013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1195 Tom Tromey <tromey@redhat.com>
1196
1197 PR build/15414:
1198 * configure: Rebuild.
1199 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1200 with -Wno-format.
1201
eb9fe518
PA
12022013-05-10 Pedro Alves <palves@redhat.com>
1203
1204 * remote.c (_initialize_remote): Fix spelling of
1205 qXfer:traceframe-info:read packet in packet config command.
1206
9779ab84
PA
12072013-05-10 David Taylor <dtaylor@emc.com>
1208
1209 PR remote/15455
1210
1211 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1212 "QTro" at start of packet.
1213
060cfbef
JB
12142013-05-10 Joel Brobecker <brobecker@adacore.com>
1215
1216 * solib-aix.c (solib_aix_relocate_section_addresses):
1217 For the .bss section action, apply the same offset as
1218 the .data section.
1219
ab1c4e88
JB
12202013-05-10 Joel Brobecker <brobecker@adacore.com>
1221
1222 * solib-aix.c (solib_aix_relocate_section_addresses):
1223 Remove FIXME comment.
1224
c1357578
JB
12252013-05-10 Joel Brobecker <brobecker@adacore.com>
1226
1227 PR tdep/15420:
1228 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1229 New functions, directly copied from sparc-sol-thread.c.
1230 * sparc-sol-thread.c: Delete.
1231 * configure.ac: Remove code handling sparc-solaris-thread.c.
1232 * configure: Regenerate.
1233
1e611234
PM
12342013-05-10 Phil Muldoon <pmuldoon@redhat.com>
1235
1236 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1237 filter logic.
1238 (backtrace_command): Add "no-filters" option parsing.
1239 (_initialize_stack): Alter help to reflect "no-filters" option.
1240 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1241 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1242 (py-frame.o): Add target
1243 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1244 filter files.
1245 * python/python.h: Add new frame filter constants, and flag enum.
1246 (apply_frame_filter): Add definition.
1247 * python/python.c (apply_frame_filter): New non-Python
1248 enabled function.
1249 * python/py-utils.c (py_xdecref): New function.
1250 (make_cleanup_py_xdecref): Ditto.
1251 * python/py-objfile.c: Declare frame_filters dictionary.
1252 (objfpy_dealloc): Add frame_filters dealloc.
1253 (objfpy_new): Initialize frame_filters attribute.
1254 (objfile_to_objfile_object): Ditto.
1255 (objfpy_get_frame_filters): New function.
1256 (objfpy_set_frame_filters): New function.
1257 * python/py-progspace.c: Declare frame_filters dictionary.
1258 (pspy_dealloc): Add frame_filters dealloc.
1259 (pspy_new): Initialize frame_filters attribute.
1260 (pspacee_to_pspace_object): Ditto.
1261 (pspy_get_frame_filters): New function.
1262 (pspy_set_frame_filters): New function.
1263 * python/py-framefilter.c: New file.
1264 * python/lib/gdb/command/frame_filters.py: New file.
1265 * python/lib/gdb/frames.py: New file.
1266 * python/lib/gdb/__init__.py: Initialize global frame_filters
1267 dictionary
1268 * python/lib/gdb/FrameDecorator.py: New file.
1269 * python/lib/gdb/FrameIterator.py: New file.
1270 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1271 * mi/mi-cmds.h: Declare.
1272 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1273 --no-frame-filter logic, and Python frame filter logic.
1274 (stack_enable_frame_filters): New function.
1275 (parse_no_frame_option): Ditto.
1276 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1277 filter logic.
1278 (mi_cmd_stack_list_locals): Ditto.
1279 (mi_cmd_stack_list_args): Ditto.
1280 (mi_cmd_stack_list_variables): Ditto.
1281 * NEWS: Add frame filter note.
1282
2cb9c859
DE
12832013-05-09 Doug Evans <dje@google.com>
1284
6bf667bb
DE
1285 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1286 All callers updated.
1287 (syms_from_objfile): Ditto. Make static.
1288 (symbol_file_add_with_addrs): Renamed from
1289 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
1290 num_offsets. All callers updated.
1291 * symfile.h (syms_from_objfile): Delete.
1292
2cb9c859
DE
1293 * symfile.c (decrement_reading_symtab): Add assert.
1294 (increment_reading_symtab): Ditto.
1295
40aea477
JB
12962013-05-09 Joel Brobecker <brobecker@adacore.com>
1297
1298 * source.c (forward_search_command): Replace call to getc
1299 by call to fgetc.
1300 (reverse_search_command): Likewise.
1301
680d1742
DE
13022013-05-08 Doug Evans <dje@google.com>
1303
1304 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1305 matching test.
1306
17e760ae
JB
13072013-05-08 Joel Brobecker <brobecker@adacore.com>
1308
1309 * sol-thread.c (info_cb): Factorize the code a little.
1310
c0f5f490
JB
13112013-05-08 Joel Brobecker <brobecker@adacore.com>
1312
1313 * sol-thread.c (info_cb): Rework the output of the "maintenance
1314 info sol-threads" command a bit.
1315
5d74e061
JB
13162013-05-08 Joel Brobecker <brobecker@adacore.com>
1317
1318 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1319 Replace ti.ti_startfunc by ti.ti_pc.
1320
814a3ff7
JB
13212013-05-08 Joel Brobecker <brobecker@adacore.com>
1322
1323 * solib-aix.c (solib_aix_free_library_list): New function
1324 for the case where HAVE_LIBEXPAT is not defined.
1325
58ce7251
SDJ
13262013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1327
1328 PR breakpoints/15413:
1329 * breakpoint.c (condition_completer): Simplify the code to
1330 disconsider multiple locations of breakpoints when completing the
1331 "condition" command.
1332
be8b1ea6
PM
13332013-05-07 Pierre Muller <muller@sourceware.org>
1334
1335 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1336 instead of <sys/wait.h>.
1337
1e52bda6
PM
13382013-05-07 Pierre Muller <muller@sourceware.org>
1339
1340 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1341 trailing new line from warning message.
1342
27fd0c6b
PM
13432013-05-07 Pierre Muller <muller@sourceware.org>
1344
1345 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1346 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1347
e228ac87
JB
13482013-05-07 Joel Brobecker <brobecker@adacore.com>
1349
1350 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1351 error message (ARI fix).
1352
13532013-05-07 Joel Brobecker <brobecker@adacore.com>
1354
1355 * features/library-list-aix.dtd: Replace library-list by
1356 library-list-aix.
1357 * rs6000-nat.c: Replace library-list by library-list-aix
1358 throughout.
1359 * solib-aix.c: Likewise.
1360
13612013-05-07 Joel Brobecker <brobecker@adacore.com>
1362
1363 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1364 Renames TARGET_OBJECT_AIX_LIBRARIES.
1365 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1366 TARGET_OBJECT_LIBRARIES_AIX throughout.
1367 * solib-aix.c: Likwise.
1368
26a4dda9
YQ
13692013-05-07 Yao Qi <yao@codesourcery.com>
1370
1371 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1372 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1373
3582629f
YQ
13742013-05-07 Yao Qi <yao@codesourcery.com>
1375
1376 * solib-dsbt.c (enable_break): Declare.
1377 (dsbt_current_sos): Remove call to enable_break2.
1378 (enable_break2): Rename to enable_break. Set solib breakpoint
1379 on '_dl_debug_state'.
1380 (enable_break): Remove.
1381
aacbb8a5
LM
13822013-05-07 Luis Machado <lgustavo@codesourcery.com>
1383
1384 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1385 debug state prior to replicating existing hardware watchpoints or
1386 breakpoints.
1387
0c013353
JK
13882013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1389
1390 * gcore.c (gcore_create_callback): Ignore sections with
1391 separate_debug_objfile_backlink != NULL.
1392
a1217d97
SL
13932013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1394 Andrew Jenner <andrew@codesourcery.com>
1395 Chung-Lin Tang <cltang@codesourcery.com>
1396 Julian Brown <julian@codesourcery.com>
1397
1398 Based on the nios2-elf port from Altera Corporation.
1399
1400 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1401 nios2-linux-tdep.o.
1402 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1403 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1404 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1405 * nios2-tdep.h: New.
1406 * nios2-tdep.c: New.
1407 * nios2-linux-tdep.c: New.
1408 * features/Makefile (WHICH): Add nios2-linux.
1409 (nios2-linux-expedite): Set.
1410 * features/nios2-cpu.xml: New.
1411 * features/nios2.xml: New.
1412 * features/nios2-linux.xml: New.
1413 * features/nios2.c: New (autogenerated).
1414 * features/nios2-linux.c: New (autogenerated).
1415 * regformats/nios2-linux.dat: New (autogenerated).
1416 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1417 and commands.
1418
0892cb63
DE
14192013-05-06 Doug Evans <dje@google.com>
1420
3b7bacac
DE
1421 * symfile.c: Whitespace cleanup.
1422
0892cb63
DE
1423 * solist.h (struct target_so_ops): New member clear_so.
1424 * solib-svr4.c (svr4_clear_so): New function.
1425 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1426 * solib.c (clear_so): Renamed from free_so_symbols.
1427 All callers updated. Call target clear_so if it exists.
1428
40501e00
TT
14292013-05-06 Tom Tromey <tromey@redhat.com>
1430
1431 * ada-lang.c (ada_value_primitive_packed_val): Don't
1432 call value_incref.
1433 * value.c (set_value_parent): Incref the new parent and decref
1434 the old parent.
1435 (value_copy, value_primitive_field): Use set_value_parent.
1436
b6807d98
TT
14372013-05-06 Tom Tromey <tromey@redhat.com>
1438
1439 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1440 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1441 if needed.
1442 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1443 * dwarf2read.c (write_constant_as_bytes)
1444 (dwarf2_fetch_constant_bytes): New functions.
1445
3aef2284
TT
14462013-05-06 Tom Tromey <tromey@redhat.com>
1447
1448 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1449 parameters.
1450 (dwarf2_const_value_attr): Update.
1451
66f65e2b
TT
14522013-05-06 Tom Tromey <tromey@redhat.com>
1453
1454 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1455 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1456 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1457 Remove declaration.
1458
7919a973
TT
14592013-05-06 Tom Tromey <tromey@redhat.com>
1460
1461 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1462 objfile's obstack.
1463
a7bfba49
DE
14642013-05-06 Doug Evans <dje@google.com>
1465
3189cb12
DE
1466 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1467 * stabsread.h (process_one_symbol): Update declaration.
1468 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1469 * elfread.c (elf_symfile_relocate_probe): Ditto.
1470 * psymtab.c (relocate_psymtabs): Ditto.
1471 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1472 (objfile_relocate): Ditto.
1473 * objfiles.h (objfile_relocate): Update declaration.
1474 * symfile.c (relative_addr_info_to_section_offsets): Constify
1475 addrs parameter.
1476 (default_symfile_offsets): Ditto.
1477 (syms_from_objfile_1): Constify offsets parameter.
1478 (syms_from_objfile): Ditto.
1479 (symbol_file_add_with_addrs_or_offsets): Ditto.
1480 (symfile_map_offsets_to_segments): Constify data parameter.
1481 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1482 delta parameters of member relocate.
1483 (struct sym_probe_fns): Constify new_offsets,
1484 delta parameters of member sym_relocate_probe.
1485 (struct sym_fns): Constify section_addr_info parameter of member
1486 sym_offsets.
1487 (relative_addr_info_to_section_offsets): Update declaration.
1488 (default_symfile_offsets): Ditto.
1489 (syms_from_objfile): Ditto.
1490 (symfile_map_offsets_to_segments): Ditto.
1491
a7bfba49
DE
1492 * symfile.c (syms_from_objfile_1): Use correct section count when
1493 objfile->sf == NULL.
1494
5f8e0b8f
MF
14952013-05-06 Mike Frysinger <vapier@gentoo.org>
1496
1497 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1498
ea52d893
DE
14992013-05-06 Doug Evans <dje@google.com>
1500
1501 * psympriv.h (struct partial_symtab): Augment comment for member
1502 section_offsets.
1503
4d1eb6b4
JB
15042013-05-06 Joel Brobecker <brobecker@adacore.com>
1505
1506 Reimplement shared library support on ppc-aix...
1507 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1508 * features/library-list-aix.dtd: New file.
1509 * solib-aix.h, solib-aix.c: New file.
1510 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1511 (rs6000_find_toc_address_hook): Delete.
1512 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1513 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1514 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1515 "xml-utils.h".
1516 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1517 (vmap_symtab, fixup_breakpoints): Delete.
1518 (rs6000_xfer_shared_libraries): New function.
1519 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1520 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1521 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1522 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1523 (rs6000_xfer_shared_library): New function.
1524 (find_toc_address): Delete.
1525 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1526 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1527 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1528 before creating minimal symbol. Adjust function description
1529 accordingly.
1530 (scan_xcoff_symtab): Replace call to
1531 prim_record_minimal_symbol_and_info by call to
1532 record_minimal_symbol.
1533 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1534 around default_symfile_offsets.
1535 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1536 powerpc-aix targets.
1537 * config/rs6000/nm-rs6000.h: Delete.
1538 * config/powerpc/aix.mh (NAT_FILE): Delete.
1539 (NATDEPFILES): Remove xcoffsolib.o.
1540 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1541 (ALL_TARGET_OBS): Add solib-aix.o.
1542 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1543 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1544 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1545 * xcoffsolib.h, xcoffsolib.c: Delete.
1546
1547 * solib.c (reload_shared_libraries): Remove reference to
1548 SOLIB_CREATE_INFERIOR_HOOK.
1549 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1550 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1551 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1552 comment.
1553 * corelow.c (deprecated_core_resize_section_table): Delete.
1554 * exec.c: Remove include of xcoffsolib.h".
1555 (map_vmap, vmap): Delete.
1556 (exec_close_1): Remove references to vmap.
1557 (exec_file_attach): Remove vmap handling code, and reference
1558 to DEPRECATED_IBM6000_TARGET.
1559 (bfdsec_to_vmap): Delete.
1560 (exec_files_info): Remove block of code handling VMAP.
1561 * infcmd.c (post_create_inferior): Remove reference to
1562 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1563 * infrun.c (follow_exec): Remove reference to
1564 SOLIB_CREATE_INFERIOR_HOOK.
1565 * stack.c (print_frame): Remove reference to PC_SOLIB.
1566 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1567 (dsbt_relocate_main_executable): Likewise.
1568 * solib-frv.c (frv_current_sos): Likewise.
1569
0c4f667c
JB
15702013-05-06 Joel Brobecker <brobecker@adacore.com>
1571
1572 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1573 to target_write_memory and target_read_memory.
1574
726ce67c
JB
15752013-05-06 Joel Brobecker <brobecker@adacore.com>
1576
1577 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1578 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1579
c8c9911f
JB
15802013-05-06 Joel Brobecker <brobecker@adacore.com>
1581
1582 * darwin-nat.c: Replace all "%x" instances in format strings
1583 into "0x%x" throughout.
1584
fda184b6
JB
15852013-05-06 Joel Brobecker <brobecker@adacore.com>
1586
1587 * darwin-nat.c (darwin_mourn_inferior): Replace call to
1588 gdb_assert by call to MACH_CHECK_ERROR.
1589 (darwin_attach_pid): Raise an error rather than a failed
1590 assertion when various system calls failed. Report a warning
1591 instead of raising a failed assertion when PREV_NOT is not NULL
1592 after call to mach_port_request_notification.
1593 (darwin_ptrace_me): Raise an error rather than a failed
1594 assertion when read returns nonzero.
1595
d1d69afb
JB
15962013-05-06 Joel Brobecker <brobecker@adacore.com>
1597
1598 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1599
dc90b24d
JK
16002013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1603
faab9922
JK
16042013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1605
1606 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1607 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1608 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
1609 a stale cleanup. Fix double free of NAME.
1610
e0ea48a0
EZ
16112013-05-04 Eli Zaretskii <eliz@gnu.org>
1612
1613 * windows-nat.c (windows_delete_thread): Accept an additional
1614 argument, the thread's exit code, and announce thread death when
1615 print_thread_events is non-zero and we are deleting a thread that
1616 is not the main thread.
1617 (get_windows_debug_event): Pass thread exit code to
1618 windows_delete_thread.
1619
83b2706a
KB
16202013-05-03 Kevin Buettner <kevinb@redhat.com>
1621
1622 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1623 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1624 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1625 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1626 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1627 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1628 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1629 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1630 (gdbarch_tdep): New struct.
1631 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1632 E_NUM_REGS.
1633 (v850e3v5_register_name): New function.
1634 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1635 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
1636 code handling the struct return conventions for the RH850 ABI.
1637 Update all callers.
1638 (v850_eight_byte_align_p): New function.
1639 (v850_push_call_dummy): Push structs by value, not by reference
1640 for the RH850 ABI. Add support for eight byte alignment.
1641 (v850_dbtrap_breakpoint_from_pc): New function.
1642 (v850_gdbarch_init): Add ABI detection code. Register
1643 v850e3v5_register_name for the v850e3v5 architecture. Set the
1644 number of registers for v850e3v5. Register
1645 v850_dbtrap_breakpoint_from_pc as appropriate.
1646 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1647
d445b2f6
DE
16482013-05-03 Doug Evans <dje@google.com>
1649
1650 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1651 of bfd_count_sections.
1652 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1653 * symfile.c (default_symfile_offsets): Ditto.
1654 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
1655 one entry, not bfd_count_sections entries.
1656
b3ce41ea
KB
16572013-05-03 Kevin Buettner <kevinb@redhat.com>
1658
1659 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1660 `save' and `restore' register groups. Don't include SPL
1661 or SPH in these groups.
1662 (rl78_dwarf_reg_to_regnum): Adjust mapping for
1663 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
1664 RL78_ES_REGNUM, and RL78_CS_REGNUM.
1665 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
1666 dwarf2_append_unwinders().
1667
96f7d3f1
PW
16682013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669
1670 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1671 ignore SIGINT and SIGTRAP in case these internal signals are
1672 caught explicitely.
1673
b9dd1947
JB
16742013-05-01 Joel Brobecker <brobecker@adacore.com>
1675
1676 * darwin-nat.c (darwin_read_write_inferior): Change types
1677 of parameters rdaddr and wraddr to "gdb_byte *". Change type
1678 of copy_count to "mach_msg_type_number_t".
1679 (darwin_read_dyld_info): Change type of parameter
1680 rdaddr to "gdb_byte *".
1681
4ca18a63
JB
16822013-05-01 Joel Brobecker <brobecker@adacore.com>
1683
1684 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1685 of &info->load_map from "char *" to "gdb_byte *".
1686
2b692d32
JB
16872013-05-01 Joel Brobecker <brobecker@adacore.com>
1688
1689 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1690 from "char *" to "gdb_byte *".
1691 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1692
a98c29a0
DE
16932013-04-30 Doug Evans <dje@google.com>
1694
6a506a2d
DE
1695 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1696 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1697 DWO stub. If DWO isn't found, just use stub.
1698 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1699
a98c29a0
DE
1700 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1701 calling init_cutu_and_read_dies.
1702
f92b06da
WT
17032013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1704
1705 * target-descriptions.c (maint_print_c_tdesc_cmd):
1706 Add case to parse structures as register types and
1707 bitfields.
1708
95eebdcc
WT
17092013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
1710
1711 * MAINTAINERS (Write After Approval): Add myself to the list.
1712
019c1128
JB
17132013-04-30 Joel Brobecker <brobecker@adacore.com>
1714
1715 * sol-thread.c (rw_common): Change type of parameter "buf"
1716 to "gdb_byte *".
1717 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1718 rw_common to "gdb_byte *" instead of "char *".
1719
5812197c
JB
17202013-04-30 Joel Brobecker <brobecker@adacore.com>
1721
1722 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1723 of local variable msym to const struct bound_minimal_symbol.
1724 Adjust use accordingly.
1725 [ti.ti_state == TD_THR_SLEEP]: Likewise.
1726
ecccb813
TS
17272013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
1728
1729 * i386gnu-nat.c (CREG_OFFSET): New macro.
1730 (creg_offset): New array.
1731 (CREG_ADDR): Use creg_offset instead of reg_offset.
1732
f1d02dd4 17332013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
1734
1735 * mep-tdep.c (mep_write_pc): Delete.
1736 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1737 Add call to set_gdbarch_pc_regnum.
1738
f1d02dd4 17392013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
1740
1741 * common/filestuff.c: Replace #include <dirent.h> by
1742 #include "gdb_dirent.h".
1743
f1d02dd4 17442013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
1745
1746 * common/filestuff.c: Replace #include <sys/stat.h> by
1747 #include "gdb_stat.h".
1748
b385a60d
PM
17492013-04-29 Pierre Muller <muller@sourceware.org>
1750
1751 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1752 editCase function rule.
1753 (get_DW_AT_signature_type): Likewise.
1754
d27b54ad
JB
17552013-04-29 Joel Brobecker <brobecker@adacore.com>
1756
1757 * m32r-tdep.c (m32r_write_pc): Delete.
1758 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1759 Add call to set_gdbarch_pc_regnum.
1760
47d21dc5
PM
17612013-04-29 Pierre Muller <muller@sourceware.org>
1762
1763 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1764
9056882e
JB
17652013-04-29 Joel Brobecker <brobecker@adacore.com>
1766
1767 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1768
7ee4732a
YQ
17692013-04-28 Yao Qi <yao@codesourcery.com>
1770
1771 * solib-dsbt.c (fetch_loadmap): Re-indent.
1772 (displacement_from_map, enable_break2): Likewise.
1773 (dsbt_relocate_section_addresses): Likewise.
1774
2260af53 17752013-04-26 Joel Brobecker <brobecker@adacore.com>
1776
1777 GDB 7.6 released.
1778
ff546935
TT
17792013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
1780
1781 PR corefiles/14983:
1782 * dwarf2read.c (process_full_comp_unit): Always create a static
1783 block.
1784
40fb6c5e
HZ
17852013-04-25 Hui Zhu <hui@codesourcery.com>
1786
1787 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1788 to loc->cmd_bytecode.
1789
74e04d1c
DE
17902013-04-24 Doug Evans <dje@google.com>
1791
1792 * dwarf2read.c (setup_type_unit_groups): Fix comment.
1793
3cf62c1d
KS
17942013-04-22 Keith Seitz <keiths@redhat.com>
1795
1796 * tracepoint.c (trace_save): Call the writer's start method.
1797
bf9e4d0c
MB
17982013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
1799
1800 PR gdb/10462
1801 * cli/cli-decode.c (lookup_command): Show an error if there is no space
1802 before argument.
1803
5d71132c
TT
18042013-04-23 Tom Tromey <tromey@redhat.com>
1805
1806 * common/filestuff.c: Check USE_WIN32API before including
1807 sys/socket.h.
1808 (HAVE_F_GETFD): New define.
1809 (mark_cloexec): Check HAVE_F_GETFD.
1810 (gdb_open_cloexec): Change 'mode' to unsigned long.
1811 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1812 (gdb_pipe_cloexec): Check HAVE_PIPE.
1813 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1814 long.
1815
a11cfd87
HZ
18162013-04-23 Hui Zhu <hui@codesourcery.com>
1817
1818 PR gdb/15293
a11cfd87
HZ
1819 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1820
2d9442cc
HZ
18212013-04-23 Hui Zhu <hui@codesourcery.com>
1822
1823 PR gdb/15165
2d9442cc
HZ
1824 * breakpoint.c (dprintf_print_recreate): New.
1825 (save_breakpoints): Let it not save dprintf commands.
1826 (initialize_breakpoint_ops): Set dprintf_print_recreate.
1827
614c279d
TT
18282013-04-22 Tom Tromey <tromey@redhat.com>
1829
1830 PR gdb/7912:
1831 * Makefile.in (SFILES): Add filestuff.c
1832 (COMMON_OBS): Add filestuff.o.
1833 (filestuff.o): New target.
1834 * auto-load.c (auto_load_objfile_script_1): Use
1835 gdb_fopen_cloexec.
1836 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1837 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1838 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1839 * common/agent.c (gdb_connect_sync_socket): Use
1840 gdb_socket_cloexec.
1841 * common/filestuff.c: New file.
1842 * common/filestuff.h: New file.
1843 * common/linux-osdata.c (linux_common_core_of_thread)
1844 (command_from_pid, commandline_from_pid, print_source_lines)
1845 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1846 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1847 gdb_fopen_cloexec.
1848 * common/linux-procfs.c (linux_proc_get_int)
1849 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1850 * config.in, configure: Rebuild.
1851 * configure.ac: Don't check for sys/socket.h. Check for
1852 fdwalk, pipe2.
1853 * corelow.c (core_open): Use gdb_open_cloexec.
1854 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1855 * fork-child.c (fork_inferior): Call close_most_fds.
1856 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1857 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1858 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1859 Use gdb_fopen_cloexec.
1860 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1861 gdb_open_cloexec.
1862 (linux_async_pipe): Use gdb_pipe_cloexec.
1863 * remote-fileio.c (remote_fileio_func_open): Use
1864 gdb_open_cloexec.
1865 * remote.c (remote_file_put, remote_file_get): Use
1866 gdb_fopen_cloexec.
1867 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1868 close_most_fds.
1869 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1870 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1871 * solib.c (solib_find): Use gdb_open_cloexec.
1872 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1873 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1874 (tfile_open): Use gdb_open_cloexec.
1875 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1876 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1877 * xml-support.c (xml_fetch_content_from_file): Use
1878 gdb_fopen_cloexec.
1879 * main.c (captured_main): Call notice_open_fds.
1880
5fda2332
EBM
18812013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
1882
1883 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
1884 'char *' to 'gdb_byte *'.
1885 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
1886 'gdb_byte'.
1887
eb6c553b
YQ
18882013-04-22 Yao Qi <yao@codesourcery.com>
1889
1890 * infrun.c: Fix typo in comment.
1891
9991b207
SDJ
18922013-04-22 Andrew Haley <aph@redhat.com>
1893
1894 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
1895 instead of "long".
1896
8b4833e3
YQ
18972013-04-20 Yao Qi <yao@codesourcery.com>
1898
1899 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
1900 'char *' to 'gdb_byte *'. Cast the return value of
1901 'bt_ctf_get_char_array' to 'gdb_byte *'.
1902
bd3f3b55
PA
19032013-04-19 Pedro Alves <palves@redhat.com>
1904
1905 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
1906 -Wpointer-sign.
1907 * configure: Regenerate.
1908
c49e7f76
PA
19092013-04-19 Pedro Alves <palves@redhat.com>
1910
1911 * ser-tcp.c (net_read_prim): Cast second argument to recv to
1912 'void *'.
1913
12ff8552
PA
19142013-04-19 Pedro Alves <palves@redhat.com>
1915
1916 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
1917 Change type of 'myaddr' parameter to gdb_byte pointer.
1918 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
1919 to 'long long' pointer instead of to 'unsigned long long'.
1920 (monitor_write_memory_block, monitor_read_memory_single)
1921 (monitor_read_memory): Change type of 'myaddr' parameter to
1922 gdb_byte pointer.
1923
9c37696b
PA
19242013-04-19 Pedro Alves <palves@redhat.com>
1925
1926 * record.c (validate_history_size): Make parameter 'setting'
1927 unsigned.
1928
a398505b
PA
19292013-04-19 Pedro Alves <palves@redhat.com>
1930
1931 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
1932 to 'gdb_byte *'.
1933
9f8afa72
PA
19342013-04-19 Pedro Alves <palves@redhat.com>
1935
1936 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
1937 local to int.
1938
c714b426
PA
19392013-04-19 Pedro Alves <palves@redhat.com>
1940
1941 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
1942 * ada-tasks.c (read_fat_string_value): Likewise.
1943
507a579c
PA
19442013-04-19 Pedro Alves <palves@redhat.com>
1945
1946 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
1947 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
1948 'offset', and adjust.
1949
f9d83a0b
PA
19502013-04-19 Pedro Alves <palves@redhat.com>
1951
1952 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
1953 (read_index_from_section): Add cast to 'char *'.
1954
745eb4fd
PA
19552013-04-19 Pedro Alves <palves@redhat.com>
1956
1957 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
1958
db5be46f
PA
19592013-04-19 Pedro Alves <palves@redhat.com>
1960
1961 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
1962
0f928d68
PA
19632013-04-19 Pedro Alves <palves@redhat.com>
1964
1965 * record-full.c (record_full_get_bookmark): Change local 'ret'
1966 type to char * and add cast to gdb_byte *.
1967 (record_full_goto_bookmark): Handle 'bookmark' argument as a
1968 string.
1969 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
1970
89f6d837
PA
19712013-04-19 Pedro Alves <palves@redhat.com>
1972
1973 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
1974 * python/py-prettyprint.c (print_string_repr): Change type of
1975 'output' local to char *. Add cast to gdb_byte * in
1976 LA_PRINT_STRING call.
1977 (print_children): Change type of 'output' local to char *.
1978 * python/py-value.c (valpy_string): Add cast to const char * in
1979 PyUnicode_Decode call.
1980
ce6ec7d8
PA
19812013-04-19 Pedro Alves <palves@redhat.com>
1982
1983 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
1984 and change its type to 'const char *'. Adjust.
1985 (mips_send_packet): Add cast to 'char *', and remove cast to
1986 'unsigned char *'.
1987 (mips_receive_packet): Remove cast to 'unsigned char *'.
1988 (mips_load_srec): Use bfd_byte.
1989 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
1990 (pmon_checkset): Make 'value' parameter unsigned.
1991
fda0389f
PA
19922013-04-19 Pedro Alves <palves@redhat.com>
1993
1994 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
1995
bc20a4af
PA
19962013-04-19 Pedro Alves <palves@redhat.com>
1997
1998 * remote.c (remote_write_bytes_aux, compare_sections_command)
1999 (remote_read_qxfer)
2000 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2001 (remote_hostio_readlink, remote_bfd_iovec_pread)
2002 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2003 binary buffer, and char when buffer is used as string.
2004 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2005 (trace_save, tfile_open, traceframe_walk_blocks)
2006 (tfile_fetch_registers): Likewise.
2007
c628b528
PA
20082013-04-19 Pedro Alves <palves@redhat.com>
2009
2010 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2011 buffer and size_t size. Adjust.
2012 * ser-base.h (ser_base_write): Adjust.
2013 * ser-go32.c (cnts): Change type to size_t.
2014 (dos_write): Change prototype -- take 'void *'
2015 buffer and size_t size. Adjust.
2016 (dos_info): Print elements of 'cnts' as unsigned long.
2017 * serial.c (serial_write): Likewise.
2018 * serial.h (serial_write): Adjust.
2019 (struct serial_ops) <write>: Change prototype -- take 'void *'
2020 buffer and size_t size. Adjust.
2021
51a5cd90
PA
20222013-04-19 Pedro Alves <palves@redhat.com>
2023
2024 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2025 gdb_byte *.
2026 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2027
a9933661
PA
20282013-04-19 Pedro Alves <palves@redhat.com>
2029
2030 * alpha-tdep.c (alpha_extract_return_value): Use
2031 regcache_cooked_read_unsigned to read 'v0'.
2032
19afdd07
PA
20332013-04-19 Pedro Alves <palves@redhat.com>
2034
2035 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2036 parameters 'at', 'as' and 'offset' to uint32_t.
2037
96b32e50
PA
20382013-04-19 Pedro Alves <palves@redhat.com>
2039
2040 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2041 'is64' to signed 'int'.
2042
eb1bd1fb
PA
20432013-04-19 Pedro Alves <palves@redhat.com>
2044
2045 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2046 parameter to int *.
2047
463920bf
PA
20482013-04-19 Pedro Alves <palves@redhat.com>
2049
2050 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2051 'insnbuf' buffer type to unsigned int[].
2052
70242eb1
PA
20532013-04-19 Pedro Alves <palves@redhat.com>
2054
2055 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2056
9d1dd0e2
PA
20572013-04-19 Pedro Alves <palves@redhat.com>
2058
2059 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2060 unsigned long *.
2061
44096aee
PA
20622013-04-19 Pedro Alves <palves@redhat.com>
2063
2064 * alpha-tdep.c (heuristic_fence_post): Change type to int.
2065 (alpha_heuristic_proc_start): Adjust to check -1 instead of
2066 UINT_MAX.
2067 * mips-tdep.c (heuristic_fence_post): Change type to int.
2068 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2069
e4286e57
PA
20702013-04-19 Pedro Alves <palves@redhat.com>
2071
2072 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2073 (struct gdbarch_tdep) <cris_version>: Make unsigned.
2074 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2075
001f13d8
PA
20762013-04-19 Pedro Alves <palves@redhat.com>
2077
2078 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
2079 it to get a string view of the byte buffer.
2080 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2081 type to gdb_byte *. Adjust.
2082 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2083 Change local to char *.
2084 * solib-darwin.c (find_program_interpreter): Change return type to
2085 char *. Adjust.
2086 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2087 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2088 * solib-frv.c (enable_break2): Change local 'buf' to char *.
2089 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2090 * solib-svr4.c (find_program_interpreter): Change return type to
2091 char *. Adjust.
2092 (enable_break): Change local 'interp_name' to char *.
2093 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2094 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2095 (spu_pseudo_register_write_spu): Use char for string buffer.
2096 Adjust.
2097 (info_spu_event_command, info_spu_signal_command): Add casts to
2098 'char *'.
2099
948f8e3d
PA
21002013-04-19 Pedro Alves <palves@redhat.com>
2101
2102 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2103 gdb_byte[].
2104 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2105 * ada-lang.c (ada_value_assign): Use gdb_byte.
2106 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2107 (alphanbsd_sigtramp_offset): Use gdb_byte.
2108 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2109 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2110 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2111 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2112 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2113 * arm-tdep.c (arm_stub_unwind_sniffer)
2114 (arm_displaced_init_closure): Use gdb_byte.
2115 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2116 (arm_default_thumb_le_breakpoint)
2117 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2118 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2119 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2120 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2121 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2122 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2123 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2124 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2125 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2126 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2127 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2128 (cris_store_return_value, cris_extract_return_value): Use
2129 gdb_byte.
2130 (constraint): Change type of parameter to char * from signed
2131 char*. Use gdb_byte.
2132 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2133 of local buffer to gdb_byte *.
2134 * dwarf2read.c (read_index_from_section): Use gdb_byte.
2135 (create_dwp_hash_table): Change type of locals to gdb_byte *.
2136 (add_address_entry): Change type of local buffer to gdb_byte[].
2137 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2138 (frv_push_dummy_call): Use gdb_byte.
2139 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2140 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2141 (hppa_hpux_supply_save_state): Use gdb_byte.
2142 * hppa-tdep.c (hppa32_push_dummy_call)
2143 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2144 * ia64-tdep.c (extract_bit_field, replace_bit_field)
2145 (slotN_contents, replace_slotN_contents): Change type of parameter
2146 to gdb_byte *.
2147 (fetch_instruction, ia64_pseudo_register_write)
2148 (ia64_register_to_value, ia64_value_to_register)
2149 (ia64_extract_return_value, ia64_store_return_value)
2150 (ia64_push_dummy_call): Use gdb_byte.
2151 * m32c-tdep.c (m32c_return_value): Remove cast.
2152 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2153 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2154 gdb_byte.
2155 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2156 * mn10300-tdep.c (mn10300_store_return_value)
2157 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2158 gdb_byte.
2159 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2160 (moxie_process_record): Remove casts.
2161 * ppc-ravenscar-thread.c (supply_register_at_address)
2162 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2163 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2164 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2165 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2166 * remote.c (compare_sections_command): Use gdb_byte.
2167 * score-tdep.c (score7_free_memblock): Change type of parameter to
2168 gdb_byte *.
2169 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2170 gdb_byte *. Use gdb_byte.
2171 (sh_push_dummy_call_fpu): Use gdb_byte.
2172 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2173 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2174 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2175 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2176 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2177 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2178 (sh64_store_return_value, sh64_register_convert_to_virtual):
2179 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2180 (sh64_pseudo_register_write): Use gdb_byte.
2181 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2182 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
2183 buffer.
2184 (irix_current_sos): Use gdb_byte.
2185 * solib-som.c (som_current_sos): Use gdb_byte.
2186 * sparc-ravenscar-thread.c (supply_register_at_address)
2187 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2188 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2189 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2190 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2191 'gdb_byte *'.
2192 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2193 'gdb_byte *'.
2194 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2195 * xstormy16-tdep.c (xstormy16_extract_return_value)
2196 (xstormy16_store_return_value): Change parameter type to
2197 'gdb_byte *'. Adjust.
2198 (xstormy16_push_dummy_call): Use gdb_byte.
2199 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2200 (call0_analyze_prologue, execute_code): Use gdb_byte.
2201
433730c9
PA
22022013-04-19 Vladimir Kargov <kargov@gmail.com>
2203 Pedro Alves <palves@redhat.com>
2204
2205 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2206 value contents.
2207
ac9ec31b
DE
22082013-04-17 Doug Evans <dje@google.com>
2209
2210 * dwarf2read.c (struct signatured_type): New member type.
2211 (struct attribute): Replace member signatured_type with signature.
2212 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2213 (read_call_site_scope): Call follow_die_ref instead of
2214 follow_die_ref_or_sig.
2215 (read_structure_type): Rewrite handling of signatured types.
2216 (read_enumeration_type): Ditto.
2217 (read_attribute_value): Update.
2218 (build_error_marker_type): New function.
2219 (lookup_die_type): Add assert. Rewrite handling of signatured types.
2220 Don't call error for bad types, just build an error marker type.
2221 (dump_die_shallow): Update.
2222 (follow_die_sig_1): Renamed from follow_die_sig.
2223 Don't call error for bad types, instead return NULL.
2224 (follow_die_sig): New function.
2225 (get_signatured_type, get_DW_AT_signature_type): New functions.
2226
e546e8bb
YZ
22272013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
2228
2229 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
2230 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2231 function.
e546e8bb 2232
ab116149
YQ
22332013-04-17 Yao Qi <yao@codesourcery.com>
2234
2235 * top.c (print_gdb_configuration): Print configure-time
2236 parameter on using libbabeltrace or not.
2237
488a42b8
PA
22382013-04-16 Pedro Alves <palves@redhat.com>
2239
2240 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2241
f5fb825b
PA
22422013-04-16 Pedro Alves <palves@redhat.com>
2243
85d494ea 2244 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
2245 (git 568035b7874a099087b77f7bba3e36a1173787b0).
2246
e1154999
PA
22472013-04-16 Pedro Alves <palves@redhat.com>
2248
2249 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2250 * common/glibc_thread_db.h: ... this new file ...
2251 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2252
e3b50a7f
PA
22532013-04-16 Will Newton <will.newton@gmail.com>
2254 Pedro Alves <palves@redhat.com>
2255
2256 PR build/11881
2257
2258 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2259 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2260 HAVE_THREAD_DB_H.
2261
1c2e4450
PA
22622013-04-16 Pedro Alves <palves@redhat.com>
2263 Eli Zaretskii <eliz@gnu.org>
2264
2265 * NEWS: Mention "set foo unlimited".
2266
4031ecc5
DE
22672013-04-15 Doug Evans <dje@google.com>
2268
19c3d4c9
DE
2269 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2270 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2271 (create_dwo_cu_reader): Renamed from
2272 create_dwo_debug_info_hash_table_reader.
2273 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2274 Remove support for multiple CUs in a DWO file.
2275 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2276
4031ecc5
DE
2277 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2278 instead of phex.
2279 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2280 (create_dwo_in_dwp): Ditto.
2281
b340913d
TT
22822013-04-15 Tom Tromey <tromey@redhat.com>
2283
2284 * NEWS: Move recent entries into "since 7.6" section.
2285
cc16e6c9
TT
22862013-04-15 Tom Tromey <tromey@redhat.com>
2287
2288 PR c++/13588:
2289 * NEWS: Update.
2290 * break-catch-throw.c (struct exception_catchpoint)
2291 <exception_rx, pattern>: New fields.
2292 (fetch_probe_arguments, dtor_exception_catchpoint)
2293 (check_status_exception_catchpoint)
2294 (print_one_detail_exception_catchpoint): New functions.
2295 (handle_gnu_v3_exceptions): Add "except_rx" argument.
2296 Compile regular expression if needed.
2297 (extract_exception_regexp): New function.
2298 (catch_exception_command_1): Use extract_exception_regexp.
2299 (compute_exception): Use fetch_probe_arguments.
2300 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2301 and check_status fields.
2302 * cp-abi.c (cplus_typename_from_type_info): New function.
2303 * cp-abi.h (cplus_typename_from_type_info): Declare.
2304 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2305 * gdb_regex.h (compile_rx_or_error): Declare.
2306 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2307 comment.
2308 (init_gnuv3_ops): Set get_type_from_type_info field.
2309 * probe.c (compile_rx_or_error): Move...
2310 * utils.c (compile_rx_or_error): ... here.
2311
72f1fe8a
TT
23122013-04-15 Tom Tromey <tromey@redhat.com>
2313
2314 PR c++/15176:
2315 * NEWS: Update.
2316 * break-catch-throw.c (compute_exception): New function.
2317 (exception_funcs): New global.
2318 (_initialize_break_catch_throw): Create $_exception.
2319 * cp-abi.c (cplus_type_from_type_info): New function.
2320 * cp-abi.h (cplus_type_from_type_info): Declare.
2321 (struct cp_abi_ops) <get_type_from_type_info>: New field.
2322 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2323 (gnuv3_get_type_from_type_info): New functions.
2324 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2325
fc4746a2
TT
23262013-04-15 Tom Tromey <tromey@redhat.com>
2327
2328 * break-catch-throw.c (struct exception_names): New.
2329 (exception_functions): Change type.
2330 (re_set_exception_catchpoint): Look for SDT probes.
2331
15a73f56
TT
23322013-04-15 Tom Tromey <tromey@redhat.com>
2333
2334 PR c++/10119:
2335 * break-catch-throw.c (exception_functions): New global.
2336 (gnu_v3_exception_catchpoint_ops): Move earlier.
2337 (struct exception_catchpoint): New.
2338 (classify_exception_breakpoint): Rewrite.
2339 (re_set_exception_catchpoint): New function.
2340 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
2341 Allocate a struct exception_catchpoint.
2342 (catch_exception_command_1): Update.
2343 (initialize_throw_catchpoint_ops): Set 're_set' method.
2344
916703c0
TT
23452013-04-15 Tom Tromey <tromey@redhat.com>
2346
2347 * Makefile.in (SFILES): Add break-catch-throw.c
2348 (COMMON_OBS): Add break-catch-throw.o.
2349 * break-catch-throw.c: New file.
2350 * breakpoint.c: Move exception-catching code to new file.
2351 (ep_parse_optional_if_clause): No longer static.
2352 * breakpoint.h (ep_parse_optional_if_clause): Declare.
2353
6e72ca20
TT
23542013-04-15 Tom Tromey <tromey@redhat.com>
2355
2356 PR c++/9065:
2357 * NEWS: Update.
2358 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2359 * c-exp.y (TYPEID): New token.
2360 (exp): Add new TYPEID productions.
2361 (ident_tokens): Add "typeid".
2362 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2363 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2364 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2365 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2366 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2367 case.
2368 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2369 (build_std_type_info_type, gnuv3_get_typeid_type)
2370 (gnuv3_get_typeid): New functions.
2371 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2372 new fields on ABI object.
2373 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2374 * std-operator.def (OP_TYPEID): New.
2375
715c6909
TT
23762013-04-15 Tom Tromey <tromey@redhat.com>
2377
2378 * elfread.c (elf_symtab_read): Install versioned symbol under
2379 unversioned name as well.
2380
8de20a37
TT
23812013-04-15 Tom Tromey <tromey@redhat.com>
2382
2383 PR c++/11990:
2384 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2385 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2386 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2387 (gdb_demangle): New function.
2388 * cp-support.h (gdb_demangle): Declare.
2389 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2390 (dwarf2_name): Use gdb_demangle.
2391 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2392 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2393 suffixes from name.
2394 (gnuv3_print_method_ptr): Use gdb_demangle.
2395 * jv-lang.c (java_demangle): Use gdb_demangle.
2396 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2397 * language.c (unk_lang_demangle): Use gdb_demangle.
2398 * symtab.c (symbol_find_demangled_name)
2399 (demangle_for_lookup): Use gdb_demangle.
2400
591f19e8
TT
24012013-04-15 Tom Tromey <tromey@redhat.com>
2402
2403 PR c++/12824:
2404 * NEWS: Update.
2405 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2406 New constant.
2407 (classify_exception_breakpoint): New function.
2408 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2409 (print_mention_exception_catchpoint)
2410 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2411 (catch_exception_command_1): Handle "rethrow" catchpoint.
2412 (catch_rethrow_command): New function.
2413 (_initialize_breakpoint): Add "catch rethrow" command.
2414
4d40cad2
PM
24152013-04-15 Pierre Muller <muller@sourceware.org>
2416
2417 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2418 set_gdbarch_write_pc as deprecated anymore.
2419
30bcb456
JB
24202013-04-15 Joel Brobecker <brobecker@adacore.com>
2421
2422 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2423 declarations.
2424
da9160e4
YQ
24252013-04-13 Yao Qi <yao@codesourcery.com>
2426
2427 * ctf.c (_initialize_ctf): Include "completer.h".
2428 Call add_target_with_completer instead of add_target.
2429
39ed5604
JK
24302013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 Fix GDB regression related to PR binutils/14813.
2433 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2434 * minidebug.c (lzma_close): Add return value comment.
2435 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2436 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2437 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2438
24392013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
2440
2441 * config.in: Regenerate.
2442
d521ce57
TT
24432013-04-12 Tom Tromey <tromey@redhat.com>
2444
2445 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2446 const.
2447 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2448 (struct die_reader_specs) <buffer>: Likewise.
2449 (die_reader_func_ftype): Make 'info_ptr' const.
2450 (struct line_header) <include_dirs, statement_program_start,
2451 statement_program_end>: Now const.
2452 (struct file_entry) <name>: Likewise.
2453 (struct partial_die_info) <sibling>: Likewise.
2454 (struct dwarf_block) <data>: Likewise.
2455 (dwarf2_read_section): Remove cast.
2456 (dwarf2_get_section_info): Make 'bufp' const.
2457 (read_index_from_section): Constify.
2458 (dw2_get_file_names_reader): Make 'info_ptr' const.
2459 (dw2_get_primary_filename_reader): Likewise.
2460 (read_comp_unit_head): Make 'info_ptr' and return type const.
2461 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2462 Likewise.
2463 (read_abbrev_offset): Constify.
2464 (dwarf2_create_include_psymtab): Make 'name' const.
2465 (create_debug_types_hash_table): Update.
2466 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2467 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2468 Constify.
2469 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2470 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2471 (read_comp_units_from_section): Constify.
2472 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2473 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2474 const.
2475 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2476 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2477 (create_dwp_hash_table, dwarf2_ranges_read)
2478 (dwarf2_record_block_ranges): Constify.
2479 (read_die_and_children, read_die_and_siblings_1)
2480 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2481 const.
2482 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2483 (abbrev_table_read_table): Constify.
2484 (load_partial_dies): Make 'info_ptr' const.
2485 (read_partial_die, read_attribute_value, read_attribute): Make
2486 'info_ptr' and return type const.
2487 (read_address, read_initial_length)
2488 (read_checked_initial_length_and_offset, read_offset)
2489 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2490 const.
2491 (read_direct_string): Make 'buf' and return type const.
2492 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2493 (read_indirect_string): Make return type const.
2494 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2495 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2496 'info_ptr' const.
2497 (read_str_index): Make return type const.
2498 (add_include_dir): Make 'include_dir' const.
2499 (add_file_name): Make 'name' const.
2500 (dwarf_decode_line_header): Constify.
2501 (psymtab_include_file_name): Make return type const.
2502 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2503 (dwarf2_start_subfile): Make 'filename' const.
2504 (dwarf2_const_value_attr): Make 'bytes' const.
2505 (read_signatured_type_reader): Make 'info_ptr' const.
2506 (decode_locdesc): Constify.
2507 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2508 const.
2509 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2510 'mac_end', and return type const.
2511 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2512 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2513 type const.
2514 (per_cu_header_read_in): Constify.
2515 * symfile.h (dwarf2_get_section_info): Update.
2516
d47a1bc1
TT
25172013-04-12 Tom Tromey <tromey@redhat.com>
2518
2519 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2520
6eaaf48b
EZ
25212013-04-12 Eli Zaretskii <eliz@gnu.org>
2522
fc4c25bf 2523 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
2524 * top.c (print_gdb_configuration): New function, displays the
2525 details about GDB configure-time parameters.
2526 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
2527 * cli/cli-cmds.c (show_configuration): New function.
2528 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
2529 * main.c (captured_main) <print_configuration>: New static var.
2530 <long_options>: Use it.
2531 If --configuration was given, call print_gdb_configuration.
2532
b292c783
JK
25332013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2534 Pedro Alves <palves@redhat.com>
2535
2536 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2537 (generated_files): Add gcore.
2538 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2539 HAVE_NATIVE_GCORE_HOST.
2540 (gcore): New.
2541 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2542 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2543 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2544 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2545 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2546 Add HAVE_NATIVE_GCORE_HOST.
2547 * configure: Regenerate.
2548 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2549 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2550 AC_CONFIG_FILES for gcore.
2551 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2552 gdb_have_gcore.
2553 * gdb_gcore.sh: Rename to ...
2554 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2555 and GCORE_TRANSFORM_NAME substitutions.
2556
c96b3c4f
JK
2557 Fix parsing tabs in ${gdb_target_obs}.
2558 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2559
d6cb50a2
JK
25602013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 * remote.c (unpush_and_perror): Add output message final dot.
2563
cf2cb5ec
YQ
25642013-04-11 Yao Qi <yao@codesourcery.com>
2565
2566 * tracepoint.c (tfile_interp_line): Fit parameters line and
2567 utpp in one line.
2568
07293be4
JB
25692013-04-10 Joel Brobecker <brobecker@adacore.com>
2570
2571 * solib.c (solib_map_sections): Remove code overwriting
2572 SO->SO_NAME with the bfd's filename.
2573
f81d1120
PA
25742013-04-10 Pedro Alves <palves@redhat.com>
2575
2576 * cli/cli-decode.c (integer_unlimited_completer): New function.
2577 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2578 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2579 completer.
2580 * cli/cli-setshow.c: Include "cli/cli-utils.h".
2581 (is_unlimited_literal): New function.
2582 (do_set_command): Handle literal "unlimited" arguments.
2583 * frame.c (_initialize_frame) <set backtrace limit>: Document
2584 "unlimited".
2585 * printcmd.c (_initialize_printcmd) <set print
2586 max-symbolic-offset>: Add help text.
2587 * record-full.c (_initialize_record_full) <set record full
2588 insn-number-max>: Likewise.
2589 * record.c (_initialize_record) <set record
2590 instruction-history-size, set record function-call-history-size>:
2591 Add help text.
2592 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2593 help text.
2594 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2595 Likewise.
2596 * source.c (_initialize_source) <set listsize>: Add help text.
2597 * utils.c (initialize_utils) <set height, set width>: Likewise.
2598 <set pagination>: Mention "set height unlimited".
2599 * valprint.c (_initialize_valprint) <set print elements, set print
2600 repeats>: Document "unlimited".
2601
2f9d54cf
PA
26022013-04-10 Pedro Alves <palves@redhat.com>
2603
2604 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2605 instead of disconnect_tracing.
2606 * infcmd.c (detach_command, disconnect_command): Call
2607 query_if_trace_running. Adjust.
2608 * top.c: Include "tracepoint.h".
2609 (quit_target): Delete. Contents moved ...
2610 (quit_force): ... here. Wrap each stage of teardown in
2611 TRY_CATCH. Call disconnect_tracing before detaching.
2612
393fd4c3
YQ
26132013-04-10 Hui Zhu <hui@codesourcery.com>
2614 Yao Qi <yao@codesourcery.com>
2615
2616 * configure.ac: Check libbabeltrace is installed.
2617 * config.in: Regenerate.
2618 * configure: Regenerate.
2619 * Makefile.in (LIBBABELTRACE): New.
2620 (CLIBS): Add LIBBABELTRACE.
2621 * ctf.c: Include "exec.h".
2622 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2623 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2624 (ctf_save_metadata_header): Define new type aliases in
2625 metadata.
2626 (ctf_write_header): Define event type "tsv_def" and "tp_def"
2627 in metadata. Start a new faked packet for trace status.
2628 (ctf_write_status): Write trace status to CTF.
2629 (ctf_write_uploaded_tsv): Write TSV to CTF.
2630 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2631 (ctf_write_definition_end): End the faked packet.
2632
2633 (ctx, ctf_iter, trace_dirname): New.
2634 (start_pos): New variable.
2635 (ctf_destroy, ctf_open_dir, ctf_open): New.
2636 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2637 macros.
2638 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2639 (ctf_fetch_registers, ctf_xfer_partial): New.
2640 (ctf_get_trace_state_variable_value): New.
2641 (ctf_get_tpnum_from_frame_event): New.
2642 (ctf_get_traceframe_address): New.
2643 (ctf_trace_find, ctf_has_stack): New.
2644 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2645 (ctf_get_trace_status, ctf_read_status): New.
2646 (_initialize_ctf): New.
2647 * tracepoint.c (get_tracepoint_number): New
2648 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 2649 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
2650 * tracepoint.h: ... here.
2651 (get_tracepoint_number): Declare it.
2652 (get_uploaded_tsv): Declare it.
2653
2654 * NEWS: Mention new configure option.
2655
5c2b4418
HZ
26562013-04-10 Pedro Alves <palves@redhat.com>
2657 Hui Zhu <hui@codesourcery.com>
2658
2659 * breakpoint.c (dprintf_re_set): New.
2660 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2661 to dprintf_re_set.
2662
a5c66735
JB
26632013-04-09 Joel Brobecker <brobecker@adacore.com>
2664
2665 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2666 Remove solib-svr4.o from the list.
2667
9e77999c
JB
26682013-04-09 Joel Brobecker <brobecker@adacore.com>
2669
2670 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2671 Use gdb_assert_not_reached instead of invalid boolean expression.
2672
1927e618
PA
26732013-04-09 Pedro Alves <palves@redhat.com>
2674
2675 * remote.c (unpush_and_perror): New function.
2676 (readchar, remote_serial_write): Use it.
2677
10782d74
MM
26782013-04-09 Markus Metzger <markus.t.metzger@intel.com>
2679
2680 * NEWS: Mention new btrace RSP packets.
2681
4c8429ef
TT
26822013-04-08 Tom Tromey <tromey@redhat.com>
2683
2684 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2685 long.
2686
8625fc1b
TT
26872013-04-08 Tom Tromey <tromey@redhat.com>
2688
2689 * maint.c (print_bfd_section_info): Print the section index.
2690 * symmisc.c (dump_msymbols): Print the section index.
2691
e27d198c
TT
26922013-04-08 Tom Tromey <tromey@redhat.com>
2693
2694 PR symtab/8424:
2695 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2696 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2697 * breakpoint.c (resolve_sal_pc): Update.
2698 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2699 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2700 (minsym_lookup_iterator_cb): Use it.
2701 (default_read_var_value): Update.
2702 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2703 Update.
2704 * infcmd.c (jump_command): Update.
2705 * linespec.c (minsym_found): Update.
2706 * maint.c (maintenance_translate_address): Update.
2707 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2708 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2709 * parse.c (write_exp_msymbol): Update.
2710 * printcmd.c (address_info): Update.
2711 * psymtab.c (find_pc_sect_psymbol): Update.
2712 (fixup_psymbol_section): Check SYMBOL_SECTION, not
2713 SYMBOL_OBJ_SECTION.
2714 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2715 Don't initialize SYMBOL_OBJ_SECTION.
2716 * spu-tdep.c (spu_catch_start): Update.
2717 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2718 * symmisc.c (dump_msymbols, print_symbol): Update.
2719 * symtab.c (fixup_section): Don't set 'obj_section'. Change
2720 how fallback section is computed.
2721 (fixup_symbol_section): Update.
2722 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2723 Update.
2724 (allocate_symbol, initialize_symbol, allocate_template_symbol):
2725 Initialize SYMBOL_SECTION.
2726 * symtab.h (struct general_symbol_info) <section>: Update comment.
2727 <obj_section>: Remove.
2728 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
2729 (SYMBOL_OBJFILE): New macro.
2730
e6dc44a8
TT
27312013-04-08 Tom Tromey <tromey@redhat.com>
2732
2733 * coffread.c (record_minimal_symbol): Update.
2734 * dbxread.c (record_minimal_symbol): Update.
2735 * elfread.c (record_minimal_symbol): Update.
2736 * machoread.c (macho_symtab_add_minsym): Update.
2737 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2738 Update.
2739 * minsyms.c (prim_record_minimal_symbol): Update.
2740 (prim_record_minimal_symbol_full): Remove 'bfd_section'
2741 argument.
2742 (prim_record_minimal_symbol_and_info): Likewise.
2743 * minsyms.h (prim_record_minimal_symbol_full)
2744 (prim_record_minimal_symbol_and_info): Update.
2745 * symtab.c (allocate_symbol, initialize_symbol)
2746 (allocate_template_symbol): Initialize SYMBOL_SECTION.
2747 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2748 Update.
2749
36192a8d
TT
27502013-04-08 Tom Tromey <tromey@redhat.com>
2751
2752 PR symtab/8423:
2753 * solib-som.c (som_solib_section_offsets): Use BFD section
2754 indices. Set offsets for all sections.
2755 * somread.c (som_symtab_read): Compute BFD section for
2756 symbol. Use prim_record_minimal_symbol_and_info.
2757 (som_symfile_read): Fix comment.
2758 (struct find_section_offset_arg): New.
2759 (find_section_offset, set_section_index): New functions.
2760 (som_symfile_offsets): Use set_section_index to compute
2761 section indices.
2762
65cf3563
TT
27632013-04-08 Tom Tromey <tromey@redhat.com>
2764
2765 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2766 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2767 gdb_bfd_section_index.
2768 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2769 New functions.
2770 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2771 Declare.
2772 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2773 Update.
2774 * objfiles.c (add_to_objfile_sections_full): New function.
2775 (add_to_objfile_sections): Use it.
2776 (build_section_table): Rewrite.
2777 (objfile_relocate1): Use gdb_bfd_section_index. Update.
2778 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2779 (struct objfile) <sections>: Update comment.
2780 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2781 is NULL.
2782 (ALL_OBJSECTIONS): Use it.
2783 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2784 * solib-frv.c (frv_relocate_main_executable): Update.
2785 * solib-target.c (solib_target_relocate_section_addresses):
2786 Use gdb_bfd_section_index.
2787 * symfile.c (build_section_addr_info_from_section_table):
2788 Use gdb_bfd_section_index.
2789 (build_section_addr_info_from_bfd, place_section): Likewise.
2790 * symtab.c (fixup_section): Update.
2791 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2792
7cbd4a93
TT
27932013-04-08 Tom Tromey <tromey@redhat.com>
2794
2795 * minsyms.h (struct bound_minimal_symbol): New.
2796 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2797 Remove objfile argument.
2798 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2799 Return bound_minimal_symbol.
2800 * minsyms.c (lookup_minimal_symbol_by_pc_1)
2801 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2802 Return bound_minimal_symbol.
2803 (in_gnu_ifunc_stub): Update.
2804 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2805 Remove 'objfile_p' argument.
2806 (lookup_solib_trampoline_symbol_by_pc): Update.
2807 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2808 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2809 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2810 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2811 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2812 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2813 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2814 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2815 stack.c, symtab.c, tui/tui-disasm.c: Update.
2816
f85f34ed
TT
28172013-04-08 Tom Tromey <tromey@redhat.com>
2818
2819 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2820 Use symbol's obstack, not an objfile.
2821 * coffread.c (process_coff_symbol): Update.
2822 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2823 * jv-lang.c (add_class_symbol): Update.
2824 * mdebugread.c (new_symbol): Update.
2825 * minsyms.c (prim_record_minimal_symbol_full)
2826 (terminate_minimal_symbol_table): Update.
2827 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
2828 * stabsread.c (define_symbol, read_enum_type): Update.
2829 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2830 Handle Ada specially.
2831 (symbol_set_language): Add 'obstack' argument.
2832 (symbol_set_names): Update.
2833 (symbol_natural_name, symbol_demangled_name): Always use
2834 ada_decode_symbol.
2835 * symtab.h (struct general_symbol_info)
2836 <language_specific::obstack>: New field.
2837 <ada_mangled>: New field.
2838 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2839 (symbol_set_language): Update.
2840
ccde22c0
TT
28412013-04-08 Tom Tromey <tromey@redhat.com>
2842
2843 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2844 Take an obstack, not an objfile.
2845 (symbol_set_names): Update.
2846 * symtab.h (symbol_set_demangled_name): Update.
2847
e623cf5d
TT
28482013-04-08 Tom Tromey <tromey@redhat.com>
2849
2850 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2851 allocate_symbol.
2852 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2853 (read_func_scope): Call allocate_template_symbol.
2854 (new_symbol_full): Call allocate_symbol.
2855 * jit.c (finalize_symtab): Call allocate_symbol.
2856 * jv-lang.c (add_class_symbol): Call allocate_symbol.
2857 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2858 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2859 (common_block_end): Call allocate_symbol.
2860 * symtab.c (allocate_symbol, initialize_symbol)
2861 (allocate_template_symbol): New functions.
2862 * symtab.c (allocate_symbol, initialize_symbol)
2863 (allocate_template_symbol): Declare.
2864 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2865
f6de8ec2
PA
28662013-04-08 Pedro Alves <palves@redhat.com>
2867 Keith Seitz <keiths@redhat.com>
2868
2869 * breakpoint.c (create_breakpoint): Rename
2870 "parse_condition_and_thread" parameter to "parse_arg". Update
2871 describing comment. If !PARSE_ARG, then error out if ARG is not
2872 the empty string after extracting the location.
2873 * breakpoint.h (create_breakpoint): Rename
2874 "parse_condition_and_thread" parameter to "parse_arg".
2875
f65ce5fb
AR
28762013-04-08 Aleksandar Ristovski <aristovski@qnx.com
2877
2878 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2879
cc5925ad
YQ
28802013-04-07 Yao Qi <yao@codesourcery.com>
2881
2882 * remote.c (remote_trace_find): Change type of parameters 'addr1'
2883 and 'addr2' to CORE_ADDR.
2884 * target.c (update_current_target): Update.
2885 * target.h (struct target_ops) <to_trace_find>: Change parameter
2886 type to CORE_ADDR.
2887 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
2888 'addr2' to CORE_ADDR.
2889 (tfile_trace_find): Likewise.
2890 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
2891 Change local variable 'addr' to type CORE_ADDR.
2892 * tracepoint.h (tfind_1): Update declaration.
2893
d9ac0664
EZ
28942013-04-06 Eli Zaretskii <eliz@gnu.org>
2895
2896 * windows-nat.c (windows_get_absolute_argv0): Move from here...
2897 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
2898 Include main.h.
2899
2900 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
2901 here...
2902 * main.h (windows_get_absolute_argv0): ...to here.
2903
02142a6c
DE
29042013-04-05 Doug Evans <dje@google.com>
2905
2906 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
2907 (read_cutu_die_from_dwo): Add comments.
2908 (read_structure_type): Update comment.
2909 (read_enumeration_type, read_namespace_type): Update comment.
2910 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
2911
43662968
JK
29122013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 Convert man pages to texinfo, new gdbinit.5 texinfo page.
2915 * Makefile.in (gdb.z): Remove.
2916 (install-only): Remove $(man1dir) and gdb.1 installation.
2917 * gdb.1: Remove.
2918
9ead1b84
JK
29192013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2920
2921 Fix compatibility with Linux kernel 3.8.3.
2922 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
2923 to more inner block. Remove parsing of NUMBER from outer block.
2924 Parse NUMBER only if KEYWORD has been identified.
2925
d1794952
JK
29262013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 Fix variable name shadowing.
2929 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
2930 filename to mapsfilename and update its uses.
2931
9025569e
EZ
29322013-04-05 Eli Zaretskii <eliz@gnu.org>
2933
2934 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
2935 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
2936 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
2937 details of the problem.
2938
c9a6ce02
PA
29392013-04-04 Pedro Alves <palves@redhat.com>
2940 Hui Zhu <hui@codesourcery.com>
2941
2942 * breakpoint.c (validate_commands_for_breakpoint): If validating a
2943 tracepoint, reset its STEP_COUNT and call validate_actionline.
2944
5ff888ce
DE
29452013-04-03 Doug Evans <dje@google.com>
2946
bf6af496
DE
2947 * dwarf2read.c (read_die_and_siblings_1): Renamed from
2948 read_die_and_siblings.
2949 (read_die_and_siblings): New function.
2950 (read_cutu_die_from_dwo): Dump die if requested.
2951 (read_die_and_children): Call read_full_die_1 and
2952 read_die_and_siblings_1.
2953 (read_full_die): Dump die if requested.
2954
2955 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
2956
0ac5b59e
DE
2957 * dwarf2read.c (struct dwo_file): New member comp_dir.
2958 Rename member name to dwo_name. All uses updated.
2959 (hash_dwo_file): Include comp_dir in computation.
2960 (eq_dwo_file): Ditto.
2961 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
2962 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
2963
5ff888ce
DE
2964 * psymtab.c (read_psymtabs_with_fullname): Don't call
2965 psymtab_to_fullname if the basenames are different.
2966
ec83d211
JK
29672013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2968
2969 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
2970 New entry about "fullname" presence.
2971
4f4352f7
PA
29722013-04-03 Pedro Alves <palves@redhat.com>
2973
2974 * NEWS: Mention x86_64/Cygwin as new native configuration.
2975
3d1d5ea3
DE
29762013-04-02 Doug Evans <dje@google.com>
2977
2978 * dwarf2read.c (read_structure_type): Fix typo in comment.
2979
be9a8770
PA
29802013-04-02 Pedro Alves <palves@redhat.com>
2981
2982 * NEWS: Mention "set/show debug aarch64", "set/show debug
2983 coff-pe-read" and "set/show debug mach-o".
2984
a46c1e42
PA
29852013-04-02 Pedro Alves <palves@redhat.com>
2986
2987 * NEWS: Mention "set/show remote trace-buffer-size-packet".
2988
3ad18b19
EZ
29892013-04-02 Eli Zaretskii <eliz@gnu.org>
2990
2991 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
2992 gdb_string.h is now in common/.
2993
e9f1758d
PA
29942013-04-02 Pedro Alves <palves@redhat.com>
2995
2996 * NEWS: Move "set debug notification" and "set trace-buffer-size"
2997 under "New options".
2998
049dc89b
JK
29992013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3000
3001 Revert this patch:
3002 PR gdb/15275
3003 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3004
c33e31fd
PA
30052013-04-02 Pedro Alves <palves@redhat.com>
3006
3007 PR gdb/15275
3008
3009 * remote.c (send_interrupt_sequence): Use remote_serial_write.
3010 (remote_serial_write): New function.
3011 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3012
ea5f3910
JW
30132013-04-01 Jiong Wang <jiwang@tilera.com>
3014
3015 * NEWS: Mention TILE-Gx in "New native configurations" and
3016 "New targets" sections.
3017
5c6fa7ab
DE
30182013-04-01 Doug Evans <dje@google.com>
3019
c0f78cd4
DE
3020 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3021 (process_enumeration_scope): Simplify.
3022
0186c6a7
DE
3023 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3024 type_unit_group ...
3025 (struct signatured_type): ... to here.
3026 (sig_type_ptr): New typedef.
3027 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
3028 out of union 't'. All uses updated.
3029 (dw2_get_file_names_reader): Assert not called for a type unit.
3030 (dw2_get_file_names): Assert not called for a type unit or type
3031 unit group.
3032 (build_type_psymtabs_reader): Assert called for a type unit.
3033 (build_type_psymtab_dependencies): Assert called for a type unit group.
3034
5c6fa7ab
DE
3035 * dwarf2read.c (free_dwo_file): Add comment.
3036 (dwarf2_per_objfile_free): Unref dwp bfd.
3037
b3c0ad67 30382013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
3039
3040 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3041 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3042 (read_pe_exported_syms): Remove unused 'exportix'.
3043 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3044 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3045 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3046
e2df1547
AR
30472013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3048
3049 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3050 (print_it_watchpoint): Remove unused 'bl'.
3051 (say_where): Remove unused 'uiout'.
3052 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3053 (bkpt_breakpoint_hit): Remove unused 'b'.
3054 (internal_bkpt_print_it): Remove unused 'uiout'.
3055 * buildsym.c (augment_type_symtab): Remove unused 'i'.
3056
d81e75c0
TD
30572013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3058
3059 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3060 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3061
5a8b3f62
DE
30622013-03-29 Doug Evans <dje@google.com>
3063
ab5088bf
DE
3064 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3065 Delete arg is_dwp. All callers updated.
3066 (open_dwp_file): New function.
3067 (open_and_init_dwp_file): Call it.
3068 (get_dwp_file): New function.
3069 (lookup_dwo_cutu): Call it.
3070
a8ad1e57
DE
3071 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3072 unnecessary, cleanup.
3073
6296d8c1
DE
3074 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3075
b0c7bfa9
DE
3076 * dwarf2read.c (read_cutu_die_from_dwo): New function.
3077 (lookup_dwo_unit): New function.
3078 (init_cutu_and_read_dies): Move DWO handling to new functions.
3079
c88ee1f0
DE
3080 * dwarf2read.c (struct signatured_type): Tweak comment.
3081 (struct dwo_unit): Tweak comment.
3082 (create_debug_types_hash_table): Tweak comment. Reformat long line.
3083 (create_dwo_debug_info_hash_table): Tweak comment.
3084 (dwarf2_per_cu_offset_and_type): Tweak comment.
3085
5a8b3f62
DE
3086 * dwarf2read.c (lookup_signatured_type): Remove complaint about
3087 missing .debug_types section.
3088
9852c492
YQ
30892013-03-29 Yao Qi <yao@codesourcery.com>
3090
3091 * corelow.c: Include "completer.h".
3092 (_initialize_corelow): Call add_target_with_completer with
3093 argument 'filename_completer'.
3094 * tracepoint.c: Likewise.
3095 * exec.c (_initialize_exec): Likewise.
3096 * target.c (add_target): Rename to ...
3097 (add_target_with_completer): ... this. Call set_cmd_completer
3098 if parameter completer is not NULL.
3099 (add_target): New.
3100 * target.h: Include "command.h".
3101 (add_target_with_completer): Declare it.
3102
af312be7
JB
31032013-03-28 Joel Brobecker <brobecker@adacore.com>
3104
3105 * coffread.c (is_import_fixup_symbol): New function.
3106 (record_minimal_symbol): Use is_import_fixup_symbol to
3107 detect import fixup symbols, and discard them.
3108
8a0459fd
DE
31092013-03-28 Doug Evans <dje@google.com>
3110
0349ea22
DE
3111 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3112 types hash table until we know we need it.
3113
f652bce2
DE
3114 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3115 index numbers.
3116
e4a48d9d
DE
3117 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3118 All callers updated.
3119 (dw2_print_stats): Print #read CUs too.
3120 (dump_die_shallow): Print signatured types better.
3121
8a0459fd
DE
3122 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3123 info_or_types_section to section. All uses updated.
3124 (struct dwo_unit): Ditto.
3125
bd3eecc3
PA
31262013-03-28 Pedro Alves <palves@redhat.com>
3127
3128 * NEWS (New options): New section.
3129 (New options): Mention set/show remote trace-status-packet.
3130 * remote.c (PACKET_qTStatus): New enumeration value.
3131 (remote_get_trace_status): Skip sending qTStatus if the packet is
3132 disabled. Use packet_ok.
3133 (_initialize_remote): Register a configuration command for
3134 qTStatus packet.
3135
41245087
DE
31362013-03-28 Doug Evans <dje@google.com>
3137
7edbb660
DE
3138 * symfile.c (find_separate_debug_file): Add comment.
3139 (terminate_after_last_dir_separator): Tweak comment.
3140
0018ea6f
DE
3141 * dwarf2read.c (create_partial_symtab): Add forward decl.
3142 (create_partial_symtab): Move to be closer to other psymtab functions.
3143 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3144
ca69b9e6
DE
3145 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3146 (compute_symtab_includes): Remove unnecessary forward declaration.
3147 (die_needs_namespace): Add comment marking group of functions for
3148 dwarf2 name computation.
3149
a9375afe
DE
3150 * typeprint.c (_initialize_typeprint): Improve type help text.
3151
41245087
DE
3152 * python/python.c (finish_python_initialization): Provide suggestion
3153 for how to tell gdb to find its python files.
3154
7f7cc265
PA
31552013-03-28 Pedro Alves <palves@redhat.com>
3156
3157 PR gdb/15294
3158
3159 * source.c (_initialize_source): Change back "set listsize" to an
3160 integer command.
3161
ec21308c
JK
31622013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
3163
3164 PR gdb/15275
3165 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3166
840a9a1f
PA
31672013-03-27 Pedro Alves <palves@redhat.com>
3168
3169 * top.c (history_size): Rename to ...
3170 (history_size_setshow_var): ... this. Add comment.
3171 (show_commands): Use readline's 'history_length' instead of
3172 computing the history length by calling history_get in a loop.
3173 (set_history_size_command): Error out for sizes over INT_MAX.
3174 Restore previous history size on invalid size.
3175 (init_history): If HISTSIZE is negative, leave the history size as
3176 zero. Add comments.
3177 (init_main): Adjust.
3178
826ecc4d
PA
31792013-03-27 Pedro Alves <palves@redhat.com>
3180
3181 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3182 coff_pe_read" command to "set debug coff-pe-read".
3183
0ccfeeae
MM
31842013-03-27 Markus Metzger <markus.t.metzger@intel.com>
3185
3186 * record.c (command_size_to_target_size): Fix size comparison.
3187 Change parameter type from pointer to integer to integer.
3188 Update all users.
3189
40653b35
PM
31902013-03-27 Pierre Muller <muller@sourceware.org>
3191
3192 * windows-nat.c (handle_output_debug_string): Avoid typecast
3193 from integer of different size warning.
3194
c62fa0e2
JB
31952013-03-26 Joel Brobecker <brobecker@adacore.com>
3196
3197 * windows-nat.c (handle_output_debug_string): Add empty line
3198 after local block variable definition.
3199
2c619be2
PA
32002013-03-26 Pedro Alves <palves@redhat.com>
3201
3202 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3203 (net_open): Make 'polls' local unsigned.
3204
1b493192
PA
32052013-03-26 Pedro Alves <palves@redhat.com>
3206
3207 * remote.c (_initialize_remote): Make "set remoteaddresssize"
3208 a zuinteger command instead of uinteger.
3209
7ee70bf5
PA
32102013-03-26 Pedro Alves <palves@redhat.com>
3211
3212 * record-full.c (record_full_insn_num): Make it unsigned.
3213 (record_full_check_insn_num, record_full_message)
3214 (record_full_registers_change, record_full_xfer_partial): Remove
3215 record_full_insn_max_num check (it's always != 0).
3216 (record_full_info, record_full_restore): Use %u as format string.
3217 (): Use %u as format string.
3218 (set_record_full_insn_max_num): Remove record_full_insn_max_num
3219 check (it's always != 0).
3220
dfd1f9bb
PA
32212013-03-26 Pedro Alves <palves@redhat.com>
3222
3223 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3224 and "set dcache size" commands zuinteger instead of uinteger.
3225
addb4faf
PA
32262013-03-26 Pedro Alves <palves@redhat.com>
3227
3228 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3229 command zuinteger instead of uinteger.
3230
b75bf488
PA
32312013-03-26 Pedro Alves <palves@redhat.com>
3232
3233 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3234 zuinteger instead of uinteger.
3235
42c634cb
PA
32362013-03-26 Pedro Alves <palves@redhat.com>
3237
3238 * record.c (record_insn_history_size_setshow_var)
3239 (record_call_history_size_setshow_var): New globals.
3240 (command_size_to_target_size): New function.
3241 (cmd_record_insn_history, cmd_record_call_history): Use
3242 command_size_to_target_size instead of cast.
3243 (validate_history_size, set_record_insn_history_size)
3244 (set_record_call_history_size): New functions.
3245 (_initialize_record): Install set_record_insn_history_size and
3246 set_record_call_history_size as "set" hooks of "set record
3247 instruction-history-size" and "set record
3248 function-call-history-size".
3249
1fb2e2b5
PA
32502013-03-26 Pedro Alves <palves@redhat.com>
3251
3252 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3253 use with history_max_entries use. Remove FIXME note.
3254
99c819ee
MM
32552013-03-26 Markus Metzger <markus.t.metzger@intel.com>
3256
3257 * record-btrace.c (record_btrace_close): Call
3258 record_btrace_auto_disable.
3259
9f9e404c
JB
32602013-03-25 Joel Brobecker <brobecker@adacore.com>
3261
3262 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3263
ebcdfe33
DE
32642013-03-25 Doug Evans <dje@google.com>
3265
3266 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3267
24955f63
TT
32682013-03-25 Tom Tromey <tromey@redhat.com>
3269
3270 PR symtab/11462:
3271 * c-exp.y (exp): Add new productions for destructors after '.' and
3272 '->'.
3273 (write_destructor_name): New function.
3274
fce632b6
TT
32752013-03-25 Tom Tromey <tromey@redhat.com>
3276
3277 PR c++/9197:
3278 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3279 value_struct_elt, not lookup_struct_elt_type.
3280 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3281 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3282 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3283
a4341769
YQ
32842013-03-25 Yao Qi <yao@codesourcery.com>
3285
3286 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3287 instead of '_mkdir'.
3288
b5981e5a
EZ
32892013-03-23 Eli Zaretskii <eliz@gnu.org>
3290
3291 * windows-nat.c (windows_get_absolute_argv0): New function.
3292 * windows-nat.h: Add its prototype.
3293
3294 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3295 Use IS_DIR_SEPARATOR instead of looking for a character inside
3296 SLASH_STRING. Include filenames.h.
3297 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3298 relocate_gdb_directory works when passed gdb_program_name.
3299 Include windows-nat.h.
3300
598d3636
JK
33012013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3304 * remote.c (trace_error): Remove the special handling of '2'.
3305 (readchar) <SERIAL_EOF>
3306 (readchar) <SERIAL_ERROR>
3307 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3308 (remote_get_trace_status): Call throw_exception if EX is
3309 TARGET_CLOSE_ERROR.
3310 * utils.c (perror_with_name): Rename to ...
3311 (throw_perror_with_name): ... here. New parameter errcode, describe it
3312 in the function comment.
3313 (perror_with_name): New function wrapper.
3314 * utils.h (enum errors): New stub declaration.
3315 (throw_perror_with_name): New declaration.
3316
82b821e9
PA
33172013-03-22 Pedro Alves <palves@redhat.com>
3318 Yao Qi <yao@codesourcery.com>
3319 Mark Kettenis <kettenis@gnu.org>
3320
3321 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3322 Don't let the user set the value to UINT_MAX directly.
3323 <var_integer>: Don't let the user set the value to INT_MAX
3324 directly.
3325
78a095c3
JK
33262013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 * remote.c (remote_unpush_target): New function.
3329 (remote_open_1): Remove two pop_target calls, update one comment, add
3330 comment to target_preopen call. Replace pop_target call by
3331 remote_unpush_target call.
3332 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3333 pop_target calls by remote_unpush_target calls.
3334
3e74e146
PA
33352013-03-22 Pedro Alves <palves@redhat.com>
3336
3337 * linux-nat.c (linux_child_follow_fork): Don't call
3338 linux_enable_event_reporting.
3339 (linux_handle_extended_wait): Don't call
3340 linux_enable_event_reporting.
3341
a2213dca
PA
33422013-03-22 Pedro Alves <palves@redhat.com>
3343
3344 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3345 use it to rewrite the trampoline buffers with type gdb_byte[], and
3346 undefine the macro. Remove char* cast.
3347
bd712aed
DE
33482013-03-21 Doug Evans <dje@google.com>
3349
3350 New commands "mt set per-command {space,time,symtab} {on,off}".
3351 * NEWS: Add entry.
3352 * event-top.c: #include "maint.h".
3353 * main.c: #include "maint.h".
3354 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3355 timeval-utils.h, maint.h, cli/cli-setshow.h.
3356 (per_command_time, per_command_space): New static globals.
3357 (per_command_symtab): New static global.
3358 (per_command_setlist, per_command_showlist): New static globals.
3359 (struct cmd_stats): Move here from utils.c.
3360 (set_per_command_time): Renamed from set_display_time in utils.c
3361 and moved here. All callers updated.
3362 (set_per_command_space): Renamed from set_display_space in utils.c
3363 and moved here. All callers updated.
3364 (count_symtabs_and_blocks): New function.
3365 (report_command_stats): Moved here from utils.c. Add support for
3366 printing symtab stats. Only print data if enabled before command
3367 executed.
3368 (make_command_stats_cleanup): Ditto.
3369 (sert_per_command_cmd, show_per_command_cmd): New functions.
3370 (_initialize_maint_cmds): Add new commands
3371 mt set per-command {space,time,symtab} {on,off}.
3372 * maint.h: New file.
3373 * top.c: #include "maint.h".
3374 * utils.c (reset_prompt_for_continue_wait_time): New function.
3375 (get_prompt_for_continue_wait_time): New function.
3376 * utils.h (reset_prompt_for_continue_wait_time): Declare
3377 (get_prompt_for_continue_wait_time): Declare.
3378 (make_command_stats_cleanup): Moved to maint.h.
3379 (set_display_time, set_display_space): Moved to maint.h and renamed
3380 to set_per_command_time, set_per_command_space.
3381 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3382 parse_binary_operation and made non-static. Don't call error,
3383 just return an error marker. All callers updated.
3384 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3385
d76488d8
TT
33862013-03-21 Tom Tromey <tromey@redhat.com>
3387
3388 * symfile.c (alloc_section_addr_info): Update header. Don't set
3389 'num_sections' field.
3390 (build_section_addr_info_from_section_table): Set 'num_sections'.
3391 (build_section_addr_info_from_bfd): Likewise.
3392 (build_section_addr_info_from_objfile): Remove dead loop
3393 condition.
3394 (free_section_addr_info): Unconditionally call xfree.
3395 (relative_addr_info_to_section_offsets, addrs_section_sort)
3396 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3397 condition.
3398 (syms_from_objfile_1): Remove dead 'if' condition. Check
3399 'num_sections'.
3400 (add_symbol_file_command): Set 'num_sections'.
3401 * symfile-mem.c (symbol_file_add_from_memory): Set
3402 'num_sections'.
3403 * somread.c (som_symfile_offsets): Remove dead loop condition.
3404 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3405 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3406
a72e5169 34072013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
3408
3409 * tracepoint.h (decode_agent_options): Add 'trace_string'
3410 argument.
3411 * tracepoint.c (decode_agent_options): Add 'trace_string'
3412 argument.
3413 (validate_actionline): Update.
3414 (collect_symbol): Add 'trace_string' argument.
3415 (struct add_local_symbols_data) <trace_string>: New field.
3416 (do_collect_symbol): Update.
3417 (add_local_symbols): Add 'trace_string' argument.
3418 (encode_actions_1): Update.
3419 (trace_dump_actions): Update.
3420 * dwarf2loc.c (access_memory): Update.
3421 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3422 * ax-general.c (new_agent_expr): Update.
3423 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3424 (gen_trace_for_return_address): Add argument.
3425 (trace_kludge, trace_string_kludge): Remove.
3426 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3427 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3428 (gen_trace_for_var): Add 'trace_string' argument.
3429 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3430 (gen_printf, agent_eval_command_one): Update.
3431
b2f83c08
TT
34322013-03-21 Tom Tromey <tromey@redhat.com>
3433
3434 PR exp/15109:
3435 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3436 Handle FILENAME token.
3437
9507860e
TT
34382013-03-21 Tom Tromey <tromey@redhat.com>
3439
3440 * c-exp.y (YYPRINT): Define.
3441 (c_print_token): New function.
3442
e403aa4b
TT
34432013-03-21 Tom Tromey <tromey@redhat.com>
3444
3445 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3446
af307d6a
YQ
34472013-03-21 Yao Qi <yao@codesourcery.com>
3448
3449 * ctf.c: Include "gdb_stat.h".
3450 [USE_WIN32API]: New macro 'mkdir'.
3451 (ctf_start): Use permission bits macros if they are defined.
3452
fb81d016
KS
34532013-03-20 Keith Seitz <keiths@redhat.com>
3454
3455 * breakpoint.h (struct breakpoint): Add comment to
3456 extra_string indicating that this member is mallod'd.
3457 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3458
ef0026f0
PA
34592013-03-20 Pedro Alves <palves@redhat.com>
3460
3461 PR gdb/15289
3462
3463 * cli/cli-setshow.c (do_set_command)
3464 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3465 the result of parsing the command argument. Throw error if the
3466 value is greater than UINT_MAX. Print the invalid value with
3467 plongest.
3468 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3469 result of parsing the command argument. Throw error if the value
3470 is greater than INT_MAX, not greater or equal. Also throw error
3471 if the value is less than INT_MIN. Print the invalid value with
3472 plongest.
3473 <var_zuinteger_unlimited>: Throw error if the value is greater
3474 than INT_MAX, not greater or equal.
3475 (do_show_command) <var_integer, var_zinteger,
3476 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3477
24d6c2a0
TT
34782013-03-20 Tom Tromey <tromey@redhat.com>
3479
3480 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3481 if possible.
3482 * dwarf2read.c (read_func_scope): Remove old FIXME.
3483 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3484 not LOC_COMPUTED.
3485 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3486 Unconditionally call via computed ops, if possible.
3487 * printcmd.c (address_info): Unconditionally call via computed ops,
3488 if possible.
3489 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3490 if possible.
3491 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3492 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3493 if possible.
3494
f1e6e072
TT
34952013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3496 Tom Tromey <tromey@redhat.com>
3497
3498 PR symtab/8421:
3499 * coffread.c (coff_register_index): New global.
3500 (process_coff_symbol, coff_read_enum_type): Set
3501 SYMBOL_ACLASS_INDEX.
3502 (_initialize_coffread): Initialize new global.
3503 * dwarf2loc.c (locexpr_find_frame_base_location)
3504 (dwarf2_block_frame_base_locexpr_funcs)
3505 (loclist_find_frame_base_location)
3506 (dwarf2_block_frame_base_loclist_funcs): New.
3507 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3508 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3509 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3510 (dwarf2_block_frame_base_loclist_funcs): New.
3511 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3512 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3513 globals.
3514 (read_func_scope): Update.
3515 (fixup_go_packaging, mark_common_block_symbol_computed)
3516 (var_decode_location, new_symbol_full, dwarf2_const_value):
3517 Set SYMBOL_ACLASS_INDEX.
3518 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3519 (_initialize_dwarf2_read): Initialize new globals.
3520 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3521 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3522 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3523 globals.
3524 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3525 (_initialize_mdebugread): Initialize new globals.
3526 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3527 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3528 (stab_register_index, stab_regparm_index): New globals.
3529 (define_symbol, read_enum_type, common_block_end): Set
3530 SYMBOL_ACLASS_INDEX.
3531 (_initialize_stabsread): Initialize new globals.
3532 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3533 globals.
3534 (MAX_SYMBOL_IMPLS): New define.
3535 (register_symbol_computed_impl, register_symbol_block_impl)
3536 (register_symbol_register_impl)
3537 (initialize_ordinary_address_classes): New functions.
3538 (_initialize_symtab): Call initialize_ordinary_address_classes.
3539 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3540 (struct symbol_impl): New.
3541 (SYMBOL_ACLASS_BITS): New define.
3542 (struct symbol) <aclass, ops>: Remove fields.
3543 <aclass_index>: New field.
3544 (symbol_impls): Declare.
3545 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3546 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3547 (register_symbol_computed_impl, register_symbol_block_impl)
3548 (register_symbol_register_impl): Declare.
3549 (struct symbol_computed_ops): Add location_has_loclist.
3550 (struct symbol_block_ops): New.
3551 (SYMBOL_BLOCK_OPS): New.
3552 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3553
dbccfd4c
TT
35542013-03-20 Tom Tromey <tromey@redhat.com>
3555
3556 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3557 (print_partial_symbols, recursively_search_psymtabs): Use
3558 PSYMBOL_CLASS.
3559
e3f1ad4f
PM
35602013-03-20 Pierre Muller <muller@sourceware.org>
3561
3562 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3563 addtion, subtraction, multiplication and division binary operator.
3564
460014f5
JK
35652013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 Code cleanup.
3568 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3569 * bsd-kvm.c (bsd_kvm_close): Likewise.
3570 * bsd-uthread.c (bsd_uthread_close): Likewise.
3571 * corelow.c (core_close): Likewise.
3572 (core_close_cleanup): Remove parameter quitting from a caller.
3573 * event-top.c (async_disconnect): Likewise.
3574 * exec.c (exec_close_1): Remove parameter quitting.
3575 * go32-nat.c (go32_close): Likewise.
3576 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
3577 parameter quitting from a caller.
3578 * mips-linux-nat.c (super_close): Remove parameter quitting from the
3579 variable.
3580 (mips_linux_close): Remove parameter quitting. Remove parameter
3581 quitting from a caller.
3582 * monitor.c (monitor_close): Remove parameter quitting.
3583 * monitor.h (monitor_close): Likewise.
3584 * record-btrace.c (record_btrace_close): Likewise.
3585 * record-full.c (record_full_close): Likewise.
3586 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3587 it also from fprintf_unfiltered.
3588 * remote-mips.c (mips_close): Remove parameter quitting.
3589 (mips_detach): Remove parameter quitting from a caller.
3590 * remote-sim.c (gdbsim_close): Remove parameter quitting.
3591 (gdbsim_close): Remove duplicate function comment. Remove parameter
3592 quitting and remove it also from printf_filtered.
3593 * remote.c (remote_close): Remove parameter quitting.
3594 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3595 * target.c (update_current_target): Remove parameter int from to_close
3596 de_fault.
3597 (push_target, unpush_target, pop_target): Remove parameter quitting from
3598 a caller.
3599 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3600 Remove parameter quitting from a caller.
3601 (target_preopen): Remove parameter quitting from a caller.
3602 (target_close): Remove parameter quitting. Remove parameter quitting
3603 from a caller two times. Remove parameter quitting also from
3604 fprintf_unfiltered.
3605 * target.h (struct target_ops): Remove parameter quitting and as int
3606 from fields to_xclose and to_close.
3607 (extern struct target_ops current_target):
3608 (target_close, pop_all_targets): Remove parameter quitting. Update the
3609 comment.
3610 (pop_all_targets_above): Remove parameter quitting.
3611 * top.c (quit_target): Remove parameter quitting from a caller.
3612 * tracepoint.c (tfile_close): Remove parameter quitting.
3613 * windows-nat.c (windows_close): Remove parameter quitting.
3614
35a7120b
CV
36152013-03-20 Corinna Vinschen <vinschen@redhat.com>
3616
3617 * windows-nat.c (handle_output_debug_string): Replace call
3618 to string_to_core_addr with call to strtoull.
3619
8249a5a9
YQ
36202013-03-20 Yao Qi <yao@codesourcery.com>
3621
3622 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3623 and write it to CTF metadata.
3624
2c15ef43
CV
36252013-03-19 Corinna Vinschen <vinschen@redhat.com>
3626
3627 * windows-nat.c (handle_output_debug_string): Change type of n to
3628 SIZE_T to avoid crash on 64 bit systems.
3629
1cdd3232
EZ
36302013-03-17 Eli Zaretskii <eliz@gnu.org>
3631
3632 * python/python-internal.h (HAVE_SNPRINTF)
3633 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3634 about redefinition of snprintf by pyerrors.h.
3635
3cb2ab1a
SE
36362013-03-15 Steve Ellcey <sellcey@mips.com>
3637
3638 * remote-sim.c (sim_command_completer): Make char arguments const.
3639
9ce98649
TT
36402013-03-15 Tom Tromey <tromey@redhat.com>
3641
3642 PR c++/15116:
3643 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3644
dccee2de
TT
36452013-03-14 Tom Tromey <tromey@redhat.com>
3646
3647 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3648 New fields.
3649 (get_file_crc): Move from symfile.c.
3650 (gdb_bfd_crc): New function.
3651 * gdb_bfd.h (gdb_bfd_crc): Declare.
3652 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3653 * symfile.c (get_file_crc): Move to gdb_bfd.c.
3654 (separate_debug_file_exists): Use gdb_bfd_crc.
3655
cc0ea93c
TT
36562013-03-14 Tom Tromey <tromey@redhat.com>
3657
3658 * symfile.c (get_debug_link_info): Remove.
3659 (find_separate_debug_file_by_debuglink): Use
3660 bfd_get_debug_link_info.
3661
08c23b0d
TT
36622013-03-14 Tom Tromey <tromey@redhat.com>
3663
3664 * symtab.c (error_in_psymtab_expansion): New function.
3665 (lookup_symbol_aux_quick)
3666 (basic_lookup_transparent_type_quick): Remove "last resort"
3667 code. Use error_in_psymtab_expansion.
3668
288e77a7
JK
36692013-03-14 Doug Evans <dje@google.com>
3670 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3673 any successful compare_filenames_for_search or FILENAME_CMP.
3674 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3675 * symtab.c (iterate_over_some_symtabs): Likewise.
3676
8f1b8b82
JK
36772013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3678
3679 * source.c (print_source_lines_base): Make a local copy of
3680 symtab_to_fullname.
3681
23eb71e4
JK
36822013-03-14 Hui Zhu <hui_zhu@mentor.com>
3683 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 * source.c (print_source_lines_base): Suppress "file" for TUI.
3686
bb869963
SDJ
36872013-03-14 Keith Seitz <keiths@redhat.com>
3688 Alan Matsuoka <alanm@redhat.com>
3689
3690 PR c++/15203
3691 PR c++/15210
3692 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3693 TYPE_CODE_METHOD.
3694 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3695 symbols.
3696
d6682f9e
YQ
36972013-03-14 Yao Qi <yao@codesourcery.com>
3698
3699 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3700 status to tfile if trace is stopped by command 'tstop'.
3701
a22fa6e4
YQ
37022013-03-14 Yao Qi <yao@codesourcery.com>
3703
3704 * tracepoint.c (tfile_write_status): Write trace notes and user
3705 name into tfile if they are not NULL.
3706
d0353e76
YQ
37072013-03-14 Hui Zhu <hui@codesourcery.com>
3708 Yao Qi <yao@codesourcery.com>
3709
3710 * Makefile.in (REMOTE_OBS): Add ctf.o.
3711 (SFILES): Add ctf.c.
3712 (HFILES_NO_SRCDIR): Add ctf.h.
3713 * ctf.c, ctf.h: New files.
3714 * tracepoint.c: Include 'ctf.h'.
3715 (collect_pseudocommand): Remove static.
3716 (trace_save_command): Parse option "-ctf".
3717 Produce different trace file writers per option.
3718 Adjust output message.
3719 (trace_save_tfile, trace_save_ctf): New.
3720 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3721 * mi/mi-main.c: Include 'ctf.h'.
3722 (mi_cmd_trace_save): Handle option '-ctf'. Call either
3723 trace_save_tfile or trace_save_ctf.
3724 * NEWS: Mention these changes.
3725
3f43bc09
YQ
37262013-03-14 Yao Qi <yao@codesourcery.com>
3727
3728 * tracepoint.c (trace_file_writer_xfree): New.
3729 (struct tfile_writer_data): New.
3730 (tfile_dtor, tfile_can_target_save, tfile_start): New.
3731 (tfile_write_header, tfile_write_regblock_type): New.
3732 (tfile_write_status, tfile_write_uploaded_tsv): New.
3733 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3734 (tfile_write_raw_data, (tfile_end): New.
3735 (tfile_write_ops): New global variable.
3736 (TRACE_WRITE_R_BLOCK): New macro.
3737 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3738 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3739 (TRACE_WRITE_V_BLOCK): New macro.
3740 (trace_save): Add extra one parameter WRITER. Make it static.
3741 Use WRITER to writer trace.
3742 (tfile_trace_file_writer_new): New.
3743 (trace_save_command): Caller update.
3744 (trace_save_tfile): Write trace data in TFILE format.
3745 * tracepoint.h (struct trace_frame_write_ops): New.
3746 (struct trace_file_write_ops): New.
3747 (struct trace_file_writer): New.
3748 (trace_save): Remove its declaration.
3749 (trace_save_tfile): Declare it.
3750 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3751 instead of trace_save.
3752
58665b40
PA
37532013-03-13 Pedro Alves <palves@redhat.com>
3754
3755 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3756
10217050
PA
37572013-03-13 Pedro Alves <palves@redhat.com>
3758
3759 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3760 commented out code.
3761 * demangle.c (current_demangling_style_string): Make it const.
3762 (set_demangling_command): Assert the demangling style is known.
3763 Remove all handling of unknown styles. Set
3764 'current_demangling_style_string' to an element of the
3765 demangling_style_names array.
3766 (set_demangling_style): Delete.
3767 (_initialize_demangler): Set current_demangling_style_string to the
3768 element of the demangling_style_names array that corresponds to
3769 the default demangling style. Remove FIXME note. Don't call
3770 set_demangling_style.
3771 * gdb-demangle.h (set_demangling_style): Remove declaration.
3772
6f937416
PA
37732013-03-13 Pedro Alves <palves@redhat.com>
3774
3775 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3776 fields const.
3777 (ada_make_symbol_completion_list): Make "text0" parameter const.
3778 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3779 * breakpoint.c (condition_completer): Make "text" and "word"
3780 parameters const. Adjust.
3781 (check_tracepoint_command): Adjust to validate_actionline
3782 prototype change.
3783 (catch_syscall_completer): Make "text" and "word" parameters
3784 const.
3785 * cli/cli-cmds.c (show_user): Make "comname" local const.
3786 (valid_command_p): Make "command" parameter const.
3787 (alias_command): Make "alias_prefix" and "command_prefix" locals
3788 const.
3789 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3790 (add_alias_cmd): Make "name" and "oldname" parameters const.
3791 Adjust. No longer make copy of OLDNAME.
3792 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3793 (add_setshow_cmd_full, add_setshow_enum_cmd)
3794 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3795 (add_setshow_filename_cmd, add_setshow_string_cmd)
3796 (add_setshow_string_noescape_cmd)
3797 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3798 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3799 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3800 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3801 Make "name" parameter const.
3802 (help_cmd): Rename "command" parameter to "arg". New const local
3803 "command".
3804 (find_cmd): Make "command" parameter const.
3805 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
3806 deprecated_cmd_warning prototype change.
3807 (undef_cmd_error): Make "cmdtype" parameter const.
3808 (lookup_cmd): Make "line" parameter const.
3809 (deprecated_cmd_warning): Change type of "text" parameter to
3810 pointer to const char, from pointer to pointer to char. Adjust.
3811 (lookup_cmd_composition): Make "text" parameter const.
3812 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3813 parameters const.
3814 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3815 const.
3816 * cli/cli-script.c (validate_comname): Make "tem" local const.
3817 (define_command): New const local "tem_c". Use it in calls to
3818 lookup_cmd.
3819 (document_command): Make "tem" and "comfull" locals const.
3820 (show_user_1): Make "prefix" and "name" parameters const.
3821 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3822 const.
3823 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3824 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3825 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3826 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3827 (complete_on_enum, add_setshow_enum_cmd)
3828 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3829 (add_setshow_filename_cmd, add_setshow_string_cmd)
3830 (add_setshow_string_noescape_cmd)
3831 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3832 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3833 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3834 Change prototypes, constifying strings.
3835 * completer.c (noop_completer, filename_completer): Make "text"
3836 and "prefix" parameters const.
3837 (location_completer, expression_completer)
3838 (complete_line_internal): Make "text" and "prefix" parameters
3839 const and adjust.
3840 (command_completer, signal_completer): Make "text" and "prefix"
3841 parameters const.
3842 * completer.h (noop_completer, filename_completer)
3843 (expression_completer, location_completer, command_completer)
3844 (signal_completer): Change prototypes.
3845 * corefile.c (complete_set_gnutarget): Make "text" and "word"
3846 parameters const.
3847 * cp-abi.c (cp_abi_completer): Likewise.
3848 * expression.h (parse_expression_for_completion): Change
3849 prototype.
3850 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3851 parameters const.
3852 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3853 * infrun.c (handle_completer): Make "text" and "word" parameters
3854 const.
3855 * interps.c (interpreter_completer): Make "text" and "word"
3856 parameters const.
3857 * language.h (struct language_defn)
3858 <la_make_symbol_completion_list>: Make "text" and "word"
3859 parameters const.
3860 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3861 (parse_exp_in_context): Rename to ...
3862 (parse_exp_in_context_1): ... this.
3863 (parse_exp_in_context): Reimplement, with const hack from
3864 parse_exp_1.
3865 (parse_expression_for_completion): Make "string" parameter const.
3866 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3867 to pointer to const char. Adjust.
3868 (print_command_1): Make "exp" parameter const.
3869 (output_command): Rename to ...
3870 (output_command_const): ... this. Make "exp" parameter const.
3871 (output_command): Reimplement.
3872 (x_command): Adjust.
3873 (display_command): Rename "exp" parameter to "arg". New "exp"
3874 local, const version of "arg".
3875 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3876 "cmd_name" local const.
3877 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3878 call.
3879 (cmdpy_completer): Make "text" and "word" parameters const.
3880 (gdbpy_parse_command_name): Make "prefix_text2" local const.
3881 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
3882 const.
3883 * remote.c (_initialize_remote): Make "cmd_name" local const.
3884 * symtab.c (language_search_unquoted_string): Make "text" and "p"
3885 parameters const. Adjust.
3886 (completion_list_add_fields): Make "sym_text", "text" and "word"
3887 parameters const.
3888 (struct add_name_data) <sym_text, text, word>: Make fields const.
3889 (default_make_symbol_completion_list_break_on): Make "text" and
3890 "word" parameters const. Adjust locals.
3891 (default_make_symbol_completion_list)
3892 (make_symbol_completion_list, make_symbol_completion_type)
3893 (make_symbol_completion_list_fn): Make "text" and "word"
3894 parameters const.
3895 (make_file_symbol_completion_list): Make "text", "word" and
3896 "srcfile" parameters const. Adjust locals.
3897 (add_filename_to_list): Make "text" and "word" parameters const.
3898 (struct add_partial_filename_data) <text, word>: Make fields
3899 const.
3900 (make_source_files_completion_list): Make "text" and "word"
3901 parameters const.
3902 * symtab.h (default_make_symbol_completion_list_break_on)
3903 (default_make_symbol_completion_list, make_symbol_completion_list)
3904 (make_symbol_completion_type enum type_code)
3905 (make_symbol_completion_list_fn make_file_symbol_completion_list)
3906 (make_source_files_completion_list): Change prototype.
3907 * top.c (execute_command): Adjust to pass pointer to pointer to
3908 const char to lookup_cmd, and to deprecated_cmd_warning prototype
3909 change.
3910 (set_verbose): Make "cmdname" local const.
3911 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
3912 and adjust.
3913 (validate_actionline): Make "line" parameter a pointer to const
3914 char, and adjust.
3915 (encode_actions_1): Make "action_exp" local const, and adjust.
3916 (encode_actions): Adjust.
3917 (replace_comma): Delete.
3918 (trace_dump_actions): Make "action_exp" and "next_comma" locals
3919 const, and adjust. Don't frob the action string while splitting
3920 it at commas. Instead, make a copy of each split substring in
3921 turn.
3922 (trace_dump_command): Adjust to validate_actionline prototype
3923 change.
3924 * tracepoint.h (decode_agent_options, decode_agent_options)
3925 (encode_actions, validate_actionline): Change prototypes.
3926 * valprint.h (output_command): Delete declaration.
3927 (output_command_const): Declare.
3928 * value.c (function_destroyer): Cast const away in xfree call.
3929
a0bcdaa7
PA
39302013-03-13 Pedro Alves <palves@redhat.com>
3931
3932 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
3933 rather than casting 'const char * const *' to 'const char **'.
3934 * ada-lex.l (processInt): Make "trailer" local const. Remove
3935 'const char **' cast.
3936 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
3937 locals, and use those as strtol output pointer, instead than doing
3938 invalid casts to from 'const char **' to 'char **'.
3939 (_initialize_demangle): Remove cast.
3940 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
3941 locals, and use those as strtol output pointer, instead than doing
3942 invalid casts to from 'const char **' to 'char **'.
3943 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
3944 casts.
3945 * stap-probe.c (stap_parse_register_operand)
3946 (stap_parse_single_operand): Likewise.
3947
8ddb1965
YQ
39482013-03-13 Yao Qi <yao@codesourcery.com>
3949
3950 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
3951 the last matched 'V' blcok in trace frame.
3952
2d450646
JB
39532013-03-12 Joel Brobecker <brobecker@adacore.com>
3954
3955 * NEWS: Create a new section for the next release branch.
3956 Rename the section of the current branch, now that it has
3957 been cut.
3958
b4b79973 39592013-03-12 Joel Brobecker <brobecker@adacore.com>
3960
3961 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
3962 * version.in: Bump version to 7.6.50.20130312-cvs.
3963
ee047554
KS
39642013-03-12 Keith Seitz <keiths@redhat.com>
3965
3966 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
3967 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
3968 Remove temporary copy of input string.
3969 (mi_execute_command_wrapper): Make "cmd" const.
3970 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
3971 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
3972 Use const strings.
3973 (mi_parse): Make "cmd" const.
3974 Use const strings.
3975 * mi/mi-parse.h (mi_parse): Make "cmd" const.
3976
bbc13ae3
KS
39772013-03-12 Keith Seitz <keiths@redhat.com>
3978
3979 * ada-lang.c (ada_read_renaming_var_value): Pass const
3980 pointer to expression string to parse_exp_1.
3981 (create_excep_cond_exprs): Likewise.
3982 * ax-gdb.c (agent_eval_command_one): Likewise.
3983 (maint_agent_printf_command): Likewise.
3984 Constify much of the string handling/parsing.
3985 * breakpoint.c (set_breakpoint_condition): Pass const
3986 pointer to expression string to parse_exp_1.
3987 (update_watchpoint): Likewise.
3988 (parse_cmd_to_aexpr): Constify string handling.
3989 Pass const pointer to parse_exp_1.
3990 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
3991 (find_condition_and_thread): Likewise.
3992 Make TOK const.
3993 (watch_command_1): Make "arg" const.
3994 Constify string handling.
3995 Copy the expression string instead of changing the input
3996 string.
3997 (update_breakpoint_location): Pass const pointer to
3998 parse_exp_1.
3999 * eval.c (parse_and_eval_address): Make "exp" const.
4000 (parse_to_comma_and_eval): Make "expp" const.
4001 (parse_and_eval): Make "exp" const.
4002 * expression.h (parse_expression): Make argument const.
4003 (parse_exp_1): Make first argument const.
4004 * findcmd.c (parse_find_args): Treat "args" as const.
4005 * linespec.c (parse_linespec): Pass const pointer to
4006 linespec_expression_to_pc.
4007 (linespec_expression_to_pc): Make "exp_ptr" const.
4008 * parse.c (parse_exp_1): Make "stringptr" const.
4009 Make a copy of the expression to pass to parse_exp_in_context until
4010 this whole interface can be constified.
4011 (parse_expression): Make "string" const.
4012 * printcmd.c (ui_printf): Treat "arg" as const.
4013 Handle const strings.
4014 * tracepoint.c (validate_actionline): Pass const pointer to
4015 all calls to parse_exp_1.
4016 (encode_actions_1): Likewise.
4017 * value.h (parse_to_comma_and_eval): Make argument const.
4018 (parse_and_eval_address): Likewise.
4019 (parse_and_eval): Likewise.
4020 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4021 (varobj_set_value): Likewise.
4022 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4023 constify string handling.
4024 Pass const pointers to parse_and_eval_address and
4025 parse_to_comman_and_eval.
4026 * cli/cli-utils.c (skip_to_space): Rename to ...
4027 (skip_to_space_const): ... this. Handle const strings.
4028 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4029 skip_to_space_const.
4030 (skip_to_space_const): Declare.
4031 * common/format.c (parse_format_string): Make "arg" const.
4032 Handle const strings.
4033 * common/format.h (parse_format_string): Make "arg" const.
4034 * gdbserver/ax.c (ax_printf): Make "format" const.
4035 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4036 of the expression string.
4037
f3cec7e6
HZ
40382013-03-12 Hui Zhu <hui@codesourcery.com>
4039
4040 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4041
9df7235c
HZ
40422013-03-12 Yao Qi <yao@codesourcery.com>
4043 Hui Zhu <hui@codesourcery.com>
4044
4045 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4046 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4047 DW_OP_deref_size.
4048
82d049ab
PH
40492013-03-12 Paul Hilfinger <hilfingr@adacore.com>
4050
5f8e0b8f
MF
4051 * ada-lex.l (rules): Only recognize 'thread' as a
4052 delimiter when followed by numerals, as for c-exp.y.
4053 Use new rewind_to_char function to rewind the input for
4054 expression-delimiting tokens.
4055 (rewind_to_char): New function.
82d049ab 4056
8c1fb155
JK
40572013-03-11 Pedro Alves <palves@redhat.com>
4058 Jan Kratochvil <jan.kratochvil@redhat.com>
4059
4060 * configure: Regenerate.
4061 * configure.ac (check dynamic export flag): Link python test with
4062 $PYTHON_LIBS.
4063
cc81e1c6
DE
40642013-03-11 Doug Evans <dje@google.com>
4065 Keith Seitz <keiths@redhat.com>
4066
4067 * linespec.c (find_linespec_symbols): Call find_function_symbols
4068 first, and then call lookup_prefix_sym/find_method.
4069
39086a0e
PA
40702013-03-11 Pedro Alves <palves@redhat.com>
4071
4072 * charset.c (convert_between_encodings): Don't cast between
4073 different pointer to pointer types. Instead, make the 'inp' local
4074 be of the type iconv expects.
4075 (wchar_iterate): Don't cast between different pointer to pointer
4076 types. Instead, use new pointer local of the type iconv expects.
4077 * target.c (target_read_stralloc, target_fileio_read_stralloc):
4078 Add new local of type char pointer, and use it to get a
4079 char/string view of the byte buffer, instead of casting between
4080 pointer to pointer types.
4081
90585175
HAQ
40822013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4083
4084 * remote.c (remote_set_trace_buffer_size): Move != operator
4085 to the start of next line to fix an ARI warning.
4086
59ea5688
MM
40872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4088
4089 * NEWS: Add record changes.
4090
946287b7
MM
40912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4092
4093 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4094 the instruction history disassembly.
4095 * disasm.c (dump_insns): Omit the pc prefix, if requested.
4096 * disasm.h (DISASSEMBLY_OMIT_PC): New.
4097
afedecd3
MM
40982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4099
4100 * Makefile.in (SFILES): Add record-btrace.c
4101 (COMMON_OBS): Add record-btrace.o
4102 * record-btrace.c: New.
4103 * objfiles.c: Include btrace.h.
4104 (free_objfile): call btrace_free_objfile.
4105
15984c13
MM
41062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4107
4108 * target.c (target_call_history, target_call_history_from,
4109 target_call_history_range): New.
4110 * target.h (target_ops) <to_call_history, to_call_history_from,
4111 to_call_history_range>: New fields.
4112 (target_call_history, target_call_history_from,
4113 target_call_history_range): New declaration.
4114 * record.c (get_call_history_modifiers, cmd_record_call_history,
4115 record_call_history_size): New.
4116 (_initialize_record): Add the "record function-call-history" command.
4117 Add "set/show record function-call-history-size" commands.
4118 * record.h (record_print_flag): New.
4119
67c86d06
MM
41202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4121
4122 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4123 to_insn_history_range>: New fields.
4124 (target_insn_history): New.
4125 (target_insn_history_from): New.
4126 (target_insn_history_range): New.
4127 * target.c (target_insn_history): New.
4128 (target_insn_history_from): New.
4129 (target_insn_history_range): New.
4130 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4131 (record_insn_history_size): New.
4132 (get_insn_number): New.
4133 (get_context_size): New.
4134 (no_chunk): New.
4135 (get_insn_history_modifiers): New.
4136 (cmd_record_insn_history): New.
4137 (_initialize_record): Add "set/show record instruction-history-size"
4138 command. Add "record instruction-history" command.
4139
7c1687a9
MM
41402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4141
4142 * record.h (record_disconnect): New.
4143 (record_detach): New.
4144 (record_mourn_inferior): New.
4145 (record_kill): New.
4146 * record-full.c (record_disconnect, record_detach,
4147 record_mourn_inferior, record_kill): Move to...
4148 * record.c: ...here.
4149 (DEBUG): New.
4150 (record_stop): New.
4151 (record_unpush): New.
4152 (cmd_record_stop): Call record_stop. Replace unpush_target
4153 call with record_unpush call.
4154 (record_disconnect, record_detach): Assert that the target
4155 is of record stratum. Call record_unpush, record_stop, and
4156 DEBUG.
4157 (record_mourn_inferior, record_kill): Assert that the target
4158 is of record stratum. Call record_unpush and DEBUG.
4159
25ea693b
MM
41602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4161
4162 * record-full.h, record-full.c (record_memory_query): Rename
4163 to ...
4164 (record_full_memory_query): ...this. Update all users.
4165 (record_arch_list_add_reg): Rename to ...
4166 (record_full_arch_list_add_reg): ...this. Update all users.
4167 (record_arch_list_add_mem): Rename to ...
4168 (record_full_arch_list_add_mem): ...this. Update all users.
4169 (record_arch_list_add_end): Rename to ...
4170 (record_full_arch_list_add_end): ...this. Update all users.
4171 (record_gdb_operation_disable_set): Rename to ...
4172 (record_full_gdb_operation_disable_set): ...this.
4173 Update all users.
4174
88d1aa9d
MM
41752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4176
4177 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4178 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4179 (RECORD_IS_REPLAY): Renamed to ...
4180 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4181 (RECORD_FILE_MAGIC): Renamed to ...
4182 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4183 (record_mem_entry): Renamed to ...
4184 (record_full_mem_entry): ... this. Updated all users.
4185 (record_reg_entry): Renamed to ...
4186 (record_full_reg_entry): ... this. Updated all users.
4187 (record_end_entry): Renamed to ...
4188 (record_full_end_entry): ... this. Updated all users.
4189 (record_type) <record_end, record_reg, record_mem>: Renamed
4190 to ...
4191 (record_full_type) <record_full_end, record_full_reg,
4192 record_full_mem>: ... this. Updated all users.
4193 (record_entry): Renamed to ...
4194 (record_full_entry): ... this. Updated all users.
4195 (record_core_buf_entry): Renamed to ...
4196 (record_full_core_buf_entry): ... this. Updated all users.
4197 (record_core_regbuf): Renamed to ...
4198 (record_full_core_regbuf): ... this. Updated all users.
4199 (record_core_start): Renamed to ...
4200 (record_full_core_start): ... this. Updated all users.
4201 (record_core_end): Renamed to ...
4202 (record_full_core_end): ... this. Updated all users.
4203 (record_core_buf_list): Renamed to ...
4204 (record_full_core_buf_list): ... this. Updated all users.
4205 (record_first): Renamed to ...
4206 (record_full_first): ... this. Updated all users.
4207 (record_list): Renamed to ...
4208 (record_full_list): ... this. Updated all users.
4209 (record_arch_list_head): Renamed to ...
4210 (record_full_arch_list_head): ... this. Updated all users.
4211 (record_arch_list_tail): Renamed to ...
4212 (record_full_arch_list_tail): ... this. Updated all users.
4213 (record_stop_at_limit): Renamed to ...
4214 (record_full_stop_at_limit): ... this. Updated all users.
4215 (record_insn_max_num): Renamed to ...
4216 (record_full_insn_max_num): ... this. Updated all users.
4217 (record_insn_num): Renamed to ...
4218 (record_full_insn_num): ... this. Updated all users.
4219 (record_insn_count): Renamed to ...
4220 (record_full_insn_count): ... this. Updated all users.
4221 (record_ops): Renamed to ...
4222 (record_full_ops): ... this. Updated all users.
4223 (record_core_ops): Renamed to ...
4224 (record_full_core_ops): ... this. Updated all users.
4225 (set_record_cmdlist): Renamed to ...
4226 (set_record_full_cmdlist): ... this. Updated all users.
4227 (show_record_cmdlist): Renamed to ...
4228 (show_record_full_cmdlist): ... this. Updated all users.
4229 (record_cmdlist): Renamed to ...
4230 (record_full_cmdlist): ... this. Updated all users.
4231 (record_beneath_to_resume_ops): Renamed to ...
4232 (record_full_beneath_to_resume_ops): ... this. Updated all users.
4233 (record_beneath_to_resume): Renamed to ...
4234 (record_full_beneath_to_resume): ... this. Updated all users.
4235 (record_beneath_to_wait_ops): Renamed to ...
4236 (record_full_beneath_to_wait_ops): ... this. Updated all users.
4237 (record_beneath_to_wait): Renamed to ...
4238 (record_full_beneath_to_wait): ... this. Updated all users.
4239 (record_beneath_to_store_registers_ops): Renamed to ...
4240 (record_full_beneath_to_store_registers_ops): ... this.
4241 Updated all users.
4242 (record_beneath_to_store_registers): Renamed to ...
4243 (record_full_beneath_to_store_registers): ... this.
4244 Updated all users.
4245 (record_beneath_to_xfer_partial_ops): Renamed to ...
4246 (record_full_beneath_to_xfer_partial_ops): ... this.
4247 Updated all users.
4248 (record_beneath_to_xfer_partial): Renamed to ...
4249 (record_full_beneath_to_xfer_partial): ... this.
4250 Updated all users.
4251 (record_beneath_to_insert_breakpoint): Renamed to ...
4252 (record_full_beneath_to_insert_breakpoint): ... this.
4253 Updated all users.
4254 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4255 (record_full_beneath_to_stopped_by_watchpoint): ... this.
4256 Updated all users.
4257 (record_beneath_to_stopped_data_address): Renamed to ...
4258 (record_full_beneath_to_stopped_data_address): ... this.
4259 Updated all users.
4260 (record_beneath_to_async): Renamed to ...
4261 (record_full_beneath_to_async): ... this. Updated all users.
4262 (record_goto_insn): Renamed to ...
4263 (record_full_goto_insn): ... this. Updated all users.
4264 (record_save): Renamed to ...
4265 (record_full_save): ... this. Updated all users.
4266 (record_reg_alloc): Renamed to ...
4267 (record_full_reg_alloc): ... this. Updated all users.
4268 (record_reg_release): Renamed to ...
4269 (record_full_reg_release): ... this. Updated all users.
4270 (record_mem_alloc): Renamed to ...
4271 (record_full_mem_alloc): ... this. Updated all users.
4272 (record_mem_release): Renamed to ...
4273 (record_full_mem_release): ... this. Updated all users.
4274 (record_end_alloc): Renamed to ...
4275 (record_full_end_alloc): ... this. Updated all users.
4276 (record_end_release): Renamed to ...
4277 (record_full_end_release): ... this. Updated all users.
4278 (record_entry_release): Renamed to ...
4279 (record_full_entry_release): ... this. Updated all users.
4280 (record_list_release): Renamed to ...
4281 (record_full_list_release): ... this. Updated all users.
4282 (record_list_release_following): Renamed to ...
4283 (record_full_list_release_following): ... this.
4284 Updated all users.
4285 (record_list_release_first): Renamed to ...
4286 (record_full_list_release_first): ... this. Updated all users.
4287 (record_arch_list_add): Renamed to ...
4288 (record_full_arch_list_add): ... this. Updated all users.
4289 (record_get_loc): Renamed to ...
4290 (record_full_get_loc): ... this. Updated all users.
4291 (record_check_insn_num): Renamed to ...
4292 (record_full_check_insn_num): ... this. Updated all users.
4293 (record_arch_list_cleanups): Renamed to ...
4294 (record_full_arch_list_cleanups): ... this. Updated all users.
4295 (record_message): Renamed to ...
4296 (record_full_message): ... this. Updated all users.
4297 (record_message_wrapper): Renamed to ...
4298 (record_full_message_wrapper): ... this. Updated all users.
4299 (record_message_wrapper_safe): Renamed to ...
4300 (record_full_message_wrapper_safe): ... this. Updated all users.
4301 (record_gdb_operation_disable): Renamed to ...
4302 (record_full_gdb_operation_disable): ... this. Updated all users.
4303 (record_hw_watchpoint): Renamed to ...
4304 (record_full_hw_watchpoint): ... this. Updated all users.
4305 (record_exec_insn): Renamed to ...
4306 (record_full_exec_insn): ... this. Updated all users.
4307 (record_restore): Renamed to ...
4308 (record_full_restore): ... this. Updated all users.
4309 (record_async_inferior_event_token): Renamed to ...
4310 (record_full_async_inferior_event_token): ... this.
4311 Updated all users.
4312 (record_async_inferior_event_handler): Renamed to ...
4313 (record_full_async_inferior_event_handler): ... this.
4314 Updated all users.
4315 (record_core_open_1): Renamed to ...
4316 (record_full_core_open_1): ... this. Updated all users.
4317 (record_open_1): Renamed to ...
4318 (record_full_open_1): ... this. Updated all users.
4319 (record_open): Renamed to ...
4320 (record_full_open): ... this. Updated all users.
4321 (record_close): Renamed to ...
4322 (record_full_close): ... this. Updated all users.
4323 (record_resume_step): Renamed to ...
4324 (record_full_resume_step): ... this. Updated all users.
4325 (record_resumed): Renamed to ...
4326 (record_full_resumed): ... this. Updated all users.
4327 (record_execution_dir): Renamed to ...
4328 (record_full_execution_dir): ... this. Updated all users.
4329 (record_resume): Renamed to ...
4330 (record_full_resume): ... this. Updated all users.
4331 (record_get_sig): Renamed to ...
4332 (record_full_get_sig): ... this. Updated all users.
4333 (record_sig_handler): Renamed to ...
4334 (record_full_sig_handler): ... this. Updated all users.
4335 (record_wait_cleanups): Renamed to ...
4336 (record_full_wait_cleanups): ... this. Updated all users.
4337 (record_wait_1): Renamed to ...
4338 (record_full_wait_1): ... this. Updated all users.
4339 (record_wait): Renamed to ...
4340 (record_full_wait): ... this. Updated all users.
4341 (record_stopped_by_watchpoint): Renamed to ...
4342 (record_full_stopped_by_watchpoint): ... this. Updated all users.
4343 (record_disconnect): Renamed to ...
4344 (record_full_disconnect): ... this. Updated all users.
4345 (record_detach): Renamed to ...
4346 (record_full_detach): ... this. Updated all users.
4347 (record_mourn_inferior): Renamed to ...
4348 (record_full_mourn_inferior): ... this. Updated all users.
4349 (record_kill): Renamed to ...
4350 (record_full_kill): ... this. Updated all users.
4351 (record_stopped_data_address): Renamed to ...
4352 (record_full_stopped_data_address): ... this. Updated all users.
4353 (record_registers_change): Renamed to ...
4354 (record_full_registers_change): ... this. Updated all users.
4355 (record_store_registers): Renamed to ...
4356 (record_full_store_registers): ... this. Updated all users.
4357 (record_xfer_partial): Renamed to ...
4358 (record_full_xfer_partial): ... this. Updated all users.
4359 (record_breakpoint): Renamed to ...
4360 (record_full_breakpoint): ... this. Updated all users.
4361 (record_breakpoint_p): Renamed to ...
4362 (record_full_breakpoint_p): ... this. Updated all users.
4363 (record_breakpoints): Renamed to ...
4364 (record_full_breakpoints): ... this. Updated all users.
4365 (record_sync_record_breakpoints): Renamed to ...
4366 (record_full_sync_record_breakpoints): ... this.
4367 Updated all users.
4368 (record_init_record_breakpoints): Renamed to ...
4369 (record_full_init_record_breakpoints): ... this.
4370 Updated all users.
4371 (record_insert_breakpoint): Renamed to ...
4372 (record_full_insert_breakpoint): ... this. Updated all users.
4373 (record_remove_breakpoint): Renamed to ...
4374 (record_full_remove_breakpoint): ... this. Updated all users.
4375 (record_can_execute_reverse): Renamed to ...
4376 (record_full_can_execute_reverse): ... this. Updated all users.
4377 (record_get_bookmark): Renamed to ...
4378 (record_full_get_bookmark): ... this. Updated all users.
4379 (record_goto_bookmark): Renamed to ...
4380 (record_full_goto_bookmark): ... this. Updated all users.
4381 (record_async): Renamed to ...
4382 (record_full_async): ... this. Updated all users.
4383 (record_can_async_p): Renamed to ...
4384 (record_full_can_async_p): ... this. Updated all users.
4385 (record_is_async_p): Renamed to ...
4386 (record_full_is_async_p): ... this. Updated all users.
4387 (record_execution_direction): Renamed to ...
4388 (record_full_execution_direction): ... this. Updated all users.
4389 (record_info): Renamed to ...
4390 (record_full_info): ... this. Updated all users.
4391 (record_delete): Renamed to ...
4392 (record_full_delete): ... this. Updated all users.
4393 (record_is_replaying): Renamed to ...
4394 (record_full_is_replaying): ... this. Updated all users.
4395 (record_goto_entry): Renamed to ...
4396 (record_full_goto_entry): ... this. Updated all users.
4397 (record_goto_begin): Renamed to ...
4398 (record_full_goto_begin): ... this. Updated all users.
4399 (record_goto_end): Renamed to ...
4400 (record_full_goto_end): ... this. Updated all users.
4401 (record_goto): Renamed to ...
4402 (record_full_goto): ... this. Updated all users.
4403 (init_record_ops): Renamed to ...
4404 (init_record_full_ops): ... this. Updated all users.
4405 (record_core_resume): Renamed to ...
4406 (record_full_core_resume): ... this. Updated all users.
4407 (record_core_kill): Renamed to ...
4408 (record_full_core_kill): ... this. Updated all users.
4409 (record_core_fetch_registers): Renamed to ...
4410 (record_full_core_fetch_registers): ... this. Updated all users.
4411 (record_core_prepare_to_store): Renamed to ...
4412 (record_full_core_prepare_to_store): ... this. Updated all users.
4413 (record_core_store_registers): Renamed to ...
4414 (record_full_core_store_registers): ... this. Updated all users.
4415 (record_core_xfer_partial): Renamed to ...
4416 (record_full_core_xfer_partial): ... this. Updated all users.
4417 (record_core_insert_breakpoint): Renamed to ...
4418 (record_full_core_insert_breakpoint): ... this. Updated all users.
4419 (record_core_remove_breakpoint): Renamed to ...
4420 (record_full_core_remove_breakpoint): ... this. Updated all users.
4421 (record_core_has_execution): Renamed to ...
4422 (record_full_core_has_execution): ... this. Updated all users.
4423 (init_record_core_ops): Renamed to ...
4424 (init_record_full_core_ops): ... this. Updated all users.
4425 (cmd_record_restore): Renamed to ...
4426 (cmd_record_full_restore): ... this. Updated all users.
4427 (record_save_cleanups): Renamed to ...
4428 (record_full_save_cleanups): ... this. Updated all users.
4429 (cmd_record_start): Renamed to ...
4430 (cmd_record_full_start): ... this. Updated all users.
4431 (set_record_insn_max_num): Renamed to ...
4432 (set_record_full_insn_max_num): ... this. Updated all users.
4433 (set_record_command): Renamed to ...
4434 (set_record_full_command): ... this. Updated all users.
4435 (show_record_command): Renamed to ...
4436 (show_record_full_command): ... this. Updated all users.
4437 (_initialize_record): Renamed to ...
4438 (_initialize_record_full): ... this. Updated all users.
4439
d02ed0bb
MM
44402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4441
4442 * record.h: Split into this and ...
4443 * record-full.h: ... this.
4444 * record.c: Split into this and ...
4445 * record-full.c: ... this.
4446 * target.h (target_ops): Add new fields to_info_record,
4447 to_save_record, to_delete_record, to_record_is_replaying,
4448 to_goto_record_begin, to_goto_record_end, to_goto_record.
4449 (target_info_record): New.
4450 (target_save_record): New.
4451 (target_supports_delete_record): New.
4452 (target_delete_record): New.
4453 (target_record_is_replaying): New.
4454 (target_goto_record_begin): New.
4455 (target_goto_record_end): New.
4456 (target_goto_record): New.
4457 * target.c (target_info_record): New.
4458 (target_save_record): New.
4459 (target_supports_delete_record): New.
4460 (target_delete_record): New.
4461 (target_record_is_replaying): New.
4462 (target_goto_record_begin): New.
4463 (target_goto_record_end): New.
4464 (target_goto_record): New.
4465 * record.h: Declare struct cmd_list_element.
4466 (record_cmdlist): New declaration.
4467 (set_record_cmdlist): New declaration.
4468 (show_record_cmdlist): New declaration.
4469 (info_record_cmdlist): New declaration.
4470 (cmd_record_goto): New declaration.
4471 * record.c: Remove unnecessary includes.
4472 Include inferior.h.
4473 (cmd_record_goto): Remove declaration.
4474 (record_cmdlist): Now extern. Initialize.
4475 (set_record_cmdlist): Now extern. Initialize.
4476 (show_record_cmdlist): Now extern. Initialize.
4477 (info_record_cmdlist): Now extern. Initialize.
4478 (find_record_target): New.
4479 (require_record_target): New.
4480 (cmd_record_start): Update.
4481 (cmd_record_delete): Remove target-specific code.
4482 Call target_delete_record.
4483 (cmd_record_stop): Unpush any record target.
4484 (set_record_insn_max_num): Move to record-full.c
4485 (set_record_command): Add comment.
4486 (show_record_command): Add comment.
4487 (info_record_command): Update comment.
4488 Remove target-specific code.
4489 Call the record target's to_info_record.
4490 (cmd_record_start): New.
4491 (cmd_record_goto): Now extern.
4492 Remove target-specific code.
4493 Call target_goto_begin, target_goto_end, or target_goto.
4494 (_initialize_record): Move record target ops initialization to
4495 record-full.c.
4496 Change "record" command help text.
4497 Move "record restore", "record set", and "record show" commands to
4498 record-full.c.
4499 * Makefile.in (SFILES): Add record-full.c.
4500 (HFILES_NO_SRCDIR): Add record-full.h.
4501 (COMMON_OBS): Add record-full.o.
4502 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4503 * arm-tdep.c: Include record-full.h.
4504 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4505 * i386-tdep.c: Include record-full.h.
4506 * infrun.c: Include record-full.h.
4507 * linux-record.c: Include record-full.h.
4508 * moxie-tdep.c: Include record-full.h.
4509 * record-full.c: Include record-full.h.
4510 Change module comment.
4511 (set_record_full_cmdlist): New.
4512 (show_record_full_cmdlist): New.
4513 (record_full_cmdlist): New.
4514 (record_goto_insn): New declaration.
4515 (record_save): New declaration.
4516 (record_check_insn_num): Change query string.
4517 (record_info): New.
4518 (record_delete): New.
4519 (record_is_replaying): New.
4520 (record_goto_entry): New.
4521 (record_goto_begin): New.
4522 (record_goto_end): New.
4523 (record_goto): New.
4524 (init_record_ops): Update.
4525 (init_record_core_ops): Update.
4526 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4527 (cmd_record_start): New.
4528 (set_record_insn_max_num): Moved from record.c
4529 (set_record_full_command): New.
4530 (show_record_full_command): New.
4531 (_initialize_record_full): New.
4532
b48d48eb
MM
45332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4534
4535 * target.h (add_deprecated_target_alias): New.
4536 * target.c (add_deprecated_target_alias): New.
4537
a950d57c
MM
45382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4539
4540 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4541 and signal.h.
4542 (linux_supports_btrace): Add kernel and
4543 cpuid check.
4544 (kernel_supports_btrace): New function.
4545 (cpu_supports_btrace): New function.
4546 (intel_supports_btrace): New function.
4547
9accd112
MM
45482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4549
4550 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4551 * remote.c: Include btrace.h.
4552 (struct btrace_target_info): New struct.
4553 (remote_supports_btrace): New function.
4554 (send_Qbtrace): New function.
4555 (remote_enable_btrace): New function.
4556 (remote_disable_btrace): New function.
4557 (remote_teardown_btrace): New function.
4558 (remote_read_btrace): New function.
4559 (init_remote_ops): Add btrace ops.
4560 (enum <unnamed>): Add btrace packets.
4561 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4562 (_initialize_remote): Add packet configuration for branch tracing.
4563
c12a2917
MM
45642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4565
4566 * features/btrace.dtd: New file.
4567 * Makefile.in (XMLFILES): Add btrace.dtd.
4568 * btrace.h (parse_xml_btrace): New declaration.
4569 * btrace.c: Include xml-support.h.
4570 (parse_xml_btrace): New function.
4571 (parse_xml_btrace_block): New function.
4572 (block_attributes): New struct.
4573 (btrace_attributes): New struct.
4574 (btrace_children): New struct.
4575 (btrace_elements): New struct.
4576
3e3aea48
MM
45772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4578
4579 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4580 (amd64_linux_enable_btrace): New.
4581 (amd64_linux_disable_btrace): New.
4582 (amd64_linux_teardown_btrace): New.
4583 (_initialize_amd64_linux_nat): Initialize btrace ops.
4584 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4585 (i386_linux_enable_btrace): New.
4586 (i386_linux_disable_btrace): New.
4587 (i386_linux_teardown_btrace): New.
4588 (_initialize_i386_linux_nat): Initialize btrace ops.
4589 * config/i386/linux.mh: Add linux-btrace.o.
4590 * config/i386/linux64.mh: Add linux-btrace.o.
4591
7c97f91e
MM
45922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4593
4594 * common/linux_btrace.h: New file.
4595 * common/linux_btrace.c: New file.
4596 * Makefile.in (SFILES): Add btrace.c.
4597 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4598 (COMMON_OBS): Add btrace.o.
4599 (linux-btrace.o): New rule.
4600
1999790b 46012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
4602
4603 * target.h: Include btrace.h.
4604 (struct target_ops) <to_supports_btrace, to_enable_btrace,
4605 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4606 * target.c (target_supports_btrace): New function.
4607 (target_enable_btrace): New function.
4608 (target_disable_btrace): New function.
4609 (target_teardown_btrace): New function.
4610 (target_read_btrace): New function.
4611 * btrace.h: New file.
4612 * btrace.c: New file.
4613 * Makefile.in: Add btrace.c.
4614 * gdbthread.h: Include btrace.h.
4615 (struct thread_info): Add btrace field.
4616 * thread.c: Include btrace.h.
4617 (clear_thread_inferior_resources): Call target_teardown_btrace.
4618 * common/btrace-common.h: New file.
4619
61a31a67
JK
46202013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4621
4622 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4623 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4624 kill_status to outer block.
4625
05c56a9d
JK
46262013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4627
4628 Fix entry-values if the callee called a noreturn function.
4629 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4630 get_frame_address_in_block. Add new comment.
4631
9112db09
JK
46322013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4633
4634 Fix entry-values in C++ across CUs.
4635 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4636 lookup_minimal_symbol. Add a comment.
4637 * dwarf2read.c
4638 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4639 DW_AT_linkage_name.
4640
9b67fcec
YQ
46412013-03-08 Yao Qi <yao@codesourcery.com>
4642
4643 * tracepoint.c (_initialize_tracepoint): Indent the code.
4644
6221be90
PA
46452013-03-08 Pedro Alves <palves@redhat.com>
4646
4647 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4648 (parse_find_args, find_command): Change type of pattern buffer
4649 locals to 'gdb_byte *'.
4650
be9a119c 46512013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
4652 Hafiz Abid Qadeer <abidh@codesourcery.com>
4653
4654 * NEWS: Mention set and show trace-buffer-size commands.
4655 Mention new packet.
4656 * target.h (struct target_ops): New method
4657 to_set_trace_buffer_size.
4658 (target_set_trace_buffer_size): New macro.
4659 * target.c (update_current_target): Set up new method.
4660 * tracepoint.c (trace_buffer_size): New global.
4661 (start_tracing): Send it to the target.
4662 (set_trace_buffer_size): New function.
4663 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4664 * remote.c (remote_set_trace_buffer_size): New function.
4665 (_initialize_remote): Use it.
4666 (QTBuffer:size) New remote command.
4667 (PACKET_QTBuffer_size): New enum.
4668 (remote_protocol_features): Add an entry for
4669 PACKET_QTBuffer_size.
4670
7da3ab79
TT
46712013-03-08 Tom Tromey <tromey@redhat.com>
4672
4673 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4674 variable.
4675
0c1f71e7
PA
46762013-03-07 Pedro Alves <palves@redhat.com>
4677
4678 * target.c (target_read_stralloc, target_fileio_read_alloc):
4679 *Cast pointer to 'gdb_byte *' in target call.
4680
c8af03a2
PA
46812013-03-07 Pedro Alves <palves@redhat.com>
4682
4683 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4684 call.
4685
529480d0
KS
46862013-03-07 Keith Seitz <keiths@redhat.com>
4687
4688 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4689 (trace_pass_command): Likewise.
4690 * cli/cli-cmds.c: Include cli/cli-utils.h.
4691 (source_command): Use skip-spaces.
4692 (disassemble_command): Likewise.
4693 * findcmd.c: Include cli/cli-utils.h.
4694 (parse_find_args): Use skip_spaces.
4695 * go32-nat.c: Include cli/cli-utils.h.
4696 (go32_sldt): Use skip_spaces.
4697 (go32_sgdt): Likewise.
4698 (go32_sidt): Likewise.
4699 (go32_pde): Likewise.
4700 (go32_pte): Likewise.
4701 (go32_pte_for_address): Likewise.
4702 * infcmd.c: Include cli/cli-utils.h.
4703 (registers_info): Use skip_spaces.
4704 * linux-tdep.c (read_mapping): Use skip_spaces_const.
4705 (linux_info_proc): Likewise.
4706 * linux-thread-db.c: Include cli/cli-utils.h.
4707 (info_auto_load_libthread_db): Use skip_spaces_const.
4708 * m32r-rom.c: Include cli/cli-utils.h.
4709 (m32r_upload_command): Use skip_spaces.
4710 * maint.c: Include cli/cli-utils.h.
4711 (maintenance_translate_address): Use skip_spaces.
4712 * mi/mi-parse.c: Include cli/cli-utils.h.
4713 (mi_parse_argv): Use skip_spaces.
4714 (mi_parse): Likewise.
4715 * minsyms.c: Include cli/cli-utils.h.
4716 (msymbol_hash_iw): Use skip_spaces_const.
4717 * objc-lang.c: Include cli/cli-utils.h.
4718 (parse_selector): Use skip_spaces.
4719 (parse_method): Likewise.
4720 * python/python.c: Include cli/cli-utils.h.
4721 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4722 (python_command)[HAVE_PYTHON]: Likewise.
4723 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4724 * remote-m32r-sdi.c: Include cli/cli-utils.h.
4725 (m32r_load): Use skip_spaces.
4726 * serial.c: Include cli/cli-utils.h.
4727 (serial_open): Use skip_spaces_const.
4728 * stack.c: Include cli/cli-utils.h.
4729 (parse_frame_specification_1): Use skip_spaces_const.
4730 * symfile.c: Include cli/cli-utils.h.
4731 (set_ext_lang_command): Use skip_spaces.
4732 * symtab.c: Include cli/cli-utils.h.
4733 (rbreak_command): Use skip_spaces.
4734 * thread.c (thread_name_command): Use skip_spaces.
4735 * tracepoint.c (validate_actionline): Use skip_spaces.
4736 (encode_actions_1): Likewise.
4737 (trace_find_range_command): Likewise.
4738 (trace_find_outside_command): Likewise.
4739 (trace_dump_actions): Likewise.
4740
ac91cd70
PA
47412013-03-07 Pedro Alves <palves@redhat.com>
4742
4743 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4744 * expprint.c (print_subexp_standard): Likewise.
4745 * utils.c (host_char_to_target): Likewise.
4746 * valprint.c (generic_emit_char, generic_printstr): Likewise.
4747 * varobj.c (value_get_print_value): Change type of local to char*.
4748 Cast it gdb_byte * in call to language printer.
4749
2898e560
PA
47502013-03-07 Pedro Alves <palves@redhat.com>
4751
4752 * charset.c (struct wchar_iterator) <input>: Change type to 'const
4753 gdb_byte *'.
4754 (make_wchar_iterator): Remove cast to char*.
4755 (wchar_iterate): Change type of local.
4756
a09b4448
PA
47572013-03-07 Pedro Alves <palves@redhat.com>
4758
4759 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4760 for 'regcache->register_status'.
4761
20ced3e4
PA
47622013-03-07 Pedro Alves <palves@redhat.com>
4763
c2d6a675 4764 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
4765 int.
4766
fe106009
PA
47672013-03-07 Pedro Alves <palves@redhat.com>
4768
4769 * stap-probe.c (handle_stap_probe): Add cast to char*.
4770
8ac2c12b
PA
47712013-03-07 Pedro Alves <palves@redhat.com>
4772
4773 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4774 RECORD_MSGRCV>: Pass a signed variable to
4775 regcache_raw_read_signed, instead of an unsigned one.
4776
99f0a309
PA
47772013-03-07 Pedro Alves <palves@redhat.com>
4778
4779 * remote-notif.c (notif_debug): Change type to int.
4780 * remote-notif.h (notif_debug): Likewise.
4781
964b8317
PA
47822013-03-07 Pedro Alves <palves@redhat.com>
4783
4784 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4785
f0cc8ad4
PA
47862013-03-07 Pedro Alves <palves@redhat.com>
4787
4788 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4789 * remote.h (hex2bin, bin2hex): ... here.
4790 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4791
77dec115
EZ
47922013-03-07 Eli Zaretskii <eliz@gnu.org>
4793
4794 * utils.c (initialize_utils): Improve doc strings of "set/show
4795 width", "set/show height", and "set/show pagination".
4796
741d92cf
KS
47972013-03-06 Keith Seitz <keiths@redhat.com>
4798
4799 * ax-gdb.c (gen_printf): Make FORMAT const.
4800 * ax-gdb.h (gen_printf): Likewise.
4801 * ax-general.c (ax_string): Make STR const.
4802 * ax.h (ax_string): Likewise.
4803
7b6c814e
DE
48042013-03-06 Doug Evans <dje@google.com>
4805
4806 * elfread.c (elf_symfile_read): Move debugging printf to more
4807 logical location.
4808
634334ab
PA
48092013-03-06 Pedro Alves <palves@redhat.com>
4810
4811 * python/py-utils.c (target_string_to_unicode): Delete function.
4812 * python/python-internal.h (target_string_to_unicode): Delete
4813 declaration.
4814
e482a1a7
PM
48152013-03-06 Pierre Muller <muller@sourceware.org>
4816
4817 * linespec.c (get_current_search_block): ARI fix, use (void)
4818 for empty parameter list.
4819
4eeaa230
DE
48202013-03-05 Doug Evans <dje@google.com>
4821
4822 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4823 of old ada_lookup_symbol_list. In !full_search case, don't
4824 search superblocks.
4825 (ada_lookup_symbol_list): Delete arg full_search, all callers
4826 updated. Call ada_lookup_symbol_list_worker.
4827 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4828 * ada-lang.h (ada_lookup_symbol_list): Update.
4829 * language.h (language_defn): Update comment for
4830 la_iterate_over_symbols.
4831 * linespec.c (iterate_over_file_blocks): New function.
4832 (iterate_over_all_matching_symtabs): Call it.
4833 (lookup_prefix_sym): Ditto.
4834 (get_current_search_block): New function.
4835 (get_search_block): Delete.
4836 (find_label_symbols): Call get_current_search_block.
4837 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4838 * symtab.c (iterate_over_symbols): Don't search superblocks.
4839
b69b1fb1
YQ
48402013-03-05 Yao Qi <yao@codesourcery.com>
4841
4842 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4843 parameter VAR's type from "unsigned int" to "int".
4844 * command.h (var_zuinteger_unlimited): Update its comments.
4845 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4846
3c095f49
CV
48472013-03-05 Corinna Vinschen <vinschen@redhat.de>
4848
4849 * NEWS: Mention new target x86_64-*-cygwin*.
4850
b5b0b0af
CV
48512013-03-05 Corinna Vinschen <vinschen@redhat.de>
4852
4853 * configure.host: Add x86_64-*-cygwin* as host.
4854 * configure.tgt: Add x86_64-*-cygwin* as target.
4855 * config/i386/cygwin64.mh: New file.
4856
f6f99966
JK
48572013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4858
4859 * linespec.c (decode_line_2): Fix duplicate request off by two message.
4860
33f448b1
JK
48612013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4862
4863 * linespec.c (struct linespec_canonical_name): New.
4864 (struct linespec_state): Change canonical_names type to it.
4865 (add_sal_to_sals): Change variable canonical_name to canonical. Change
4866 xrealloc element size. Initialize the different CANONICAL fields.
4867 (canonical_to_fullform): New.
4868 (filter_results): Use it. Add variables canonical, fullform and
4869 cleanup.
4870 (struct decode_line_2_item, decode_line_2_compare_items): New.
4871 (decode_line_2): Remove variables iter and item_names, add variables
4872 items and items_count. Modify the code for these new variables.
4873
feb14725
CV
48742013-03-04 Corinna Vinschen <vinschen@redhat.com>
4875
4876 * coff-pe-read.c (read_pe_exported_syms): Don't return without
4877 calling do_cleanup.
4878
e83b17ba
HZ
48792013-03-04 Luis Machado <lgustavo@codesourcery.com>
4880
4881 * tracepoint.c (build_traceframe_info): Add code for byte order.
4882
a2d13a0d
KB
48832013-03-02 Kevin Buettner <kevinb@redhat.com>
4884
8dddcae8
KB
4885 * v850-tdep.c: (v850e2_register_name): Revise system register
4886 names to match current V850E2M architecture specifications.
4887 Update register number enum comments too.
a2d13a0d 4888
d79e58d8
JW
48892013-03-01 Jiong Wang <jiwang@tilera.com>
4890 Pedro Alves <palves@redhat.com>
4891
4892 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
4893 to END_ADDR.
4894 (tilegx_skip_prologue): Limit prologue analysis to section end.
4895
c4be5165
JK
48962013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
4899 use it.
4900
e362b510
PA
49012013-03-01 Pedro Alves <palves@redhat.com>
4902
4903 Use gdb_byte for bytes from the program being debugged.
4904
4905 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
4906 Change type of local 'buf' to gdb_byte.
4907 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
4908 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
4909 * cris-tdep.c (cris_sigcontext_addr)
4910 (cris_sigtramp_frame_unwind_cache): Likewise.
4911 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
4912 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4913 Likewise.
4914 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
4915 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
4916 (hppa32_hpux_search_dummy_call_sequence)
4917 (hppa_hpux_supply_save_state): Likewise.
4918 * hppa-linux-tdep.c (insns_match_pattern)
4919 (hppa_linux_find_global_pointer): Likewise.
4920 * hppa-tdep.c (hppa_in_function_epilogue_p)
4921 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4922 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
4923 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
4924 (i386fbsd_collect_uthread): Likewise.
4925 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
4926 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
4927 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
4928 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
4929 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
4930 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
4931 (ia64_libunwind_frame_prev_register)
4932 (ia64_libunwind_sigtramp_frame_this_id)
4933 (ia64_find_global_pointer_from_dynamic_section)
4934 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
4935 (ia64_unwind_pc): Likewise.
4936 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
4937 * m68hc11-tdep.c (m68hc11_push_dummy_call)
4938 (m68hc11_extract_return_value): Likewise.
4939 * m68klinux-nat.c (fetch_register, store_register): Likewise.
4940 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
4941 (mep_get_insn, mep_push_dummy_call): Likewise.
4942 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4943 (mips_linux_in_dynsym_stub): Likewise.
4944 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
4945 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4946 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
4947 to gdb_byte.
4948 * remote-mips.c (mips_set_register): Likewise.
4949 * remote-sim.c (gdbsim_fetch_register): Likewise.
4950 * score-tdep.c (score7_fetch_inst): Change type of parameter
4951 'memblock' and local 'buf' to gdb_byte.
4952 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
4953 Change type of local 'buf' to gdb_byte. Adjust.
4954 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
4955 to gdb_byte**.
4956 (score7_analyze_prologue): Change type of 'memblock' and
4957 'memblock_ptr' locals to gdb_byte*.
4958 * sh64-tdep.c (sh64_extract_return_value)
4959 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
4960 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
4961 * solib-pa64.c (pa64_solib_create_inferior_hook)
4962 (pa64_open_symbol_file_object): Remove local 'buf'.
4963 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
4964 (som_open_symbol_file_object): Likewise.
4965 * solib-spu.c (spu_current_sos): Likewise.
4966 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4967 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
4968 (spu_store_registers): Likewise.
4969 * target.c (debug_print_register): Likewise.
4970 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
4971 * xstormy16-tdep.c (xstormy16_store_return_value)
4972 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
4973 (xstormy16_find_jmp_table_entry): Likewise.
4974
75cc61ca 49752013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
4976
4977 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
4978 (tilegx_gdbarch_init): Install it.
4979
ddb08e9c
TT
49802013-02-28 Tom Tromey <tromey@redhat.com>
4981
4982 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
4983 PyLong_Check.
4984
62d7fb51
DE
49852013-02-28 Doug Evans <dje@google.com>
4986
4987 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
4988 * python/python.c (gdbpy_find_pc_line): Ditto.
4989
c4a9e8b4
TT
49902013-02-28 Tom Tromey <tromey@redhat.com>
4991
4992 * contrib/excheck.py: New file.
4993 * contrib/exsummary.py: New file.
4994 * contrib/gcc-with-excheck: New file.
4995
7f6a5dde
TT
49962013-02-28 Tom Tromey <tromey@redhat.com>
4997
4998 * python/python.c (gdbpy_print_stack): Call begin_line and
4999 fprintf_filtered inside TRY_CATCH.
5000
9e974e55
TT
50012013-02-28 Tom Tromey <tromey@redhat.com>
5002
5003 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5004 inside TRY_CATCH.
5005
dd5fa3e7
TT
50062013-02-28 Tom Tromey <tromey@redhat.com>
5007
5008 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5009 frame_object_to_frame_info inside TRY_CATCH.
5010
86a3263f
TT
50112013-02-28 Tom Tromey <tromey@redhat.com>
5012
5013 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5014 TRY_CATCH.
5015
81b52a3a
TT
50162013-02-28 Tom Tromey <tromey@redhat.com>
5017
5018 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5019
d50a0ce2
CV
50202013-02-27 Corinna Vinschen <vinschen@redhat.com>
5021
5022 * windows-nat.c: Throughout, fix format strings and casts of
5023 printf-like functions to avoid type related warnings on all
5024 platforms.
5025 (handle_output_debug_string): Fetch context information address
5026 from debug string using string_to_core_addr.
5027
e1f58301
JW
50282013-02-27 Jiong Wang <jiwang@tilera.com>
5029
5030 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5031 * regformats/reg-tilegx32.dat: New.
5032
4fcd89fc
JW
50332013-02-27 Jiong Wang <jiwang@tilera.com>
5034
5035 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5036
748d24e6
JW
50372013-02-27 Jiong Wang <jiwang@tilera.com>
5038
5039 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5040
6c8e944d
YQ
50412013-02-27 Yao Qi <yao@codesourcery.com>
5042 Pedro Alves <palves@redhat.com>
5043
5044 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
5045 pc/tp/range/outside, look for the next trace frame instead of
5046 always starting from frame 0.
6c8e944d 5047
acd7db30
AG
50482013-02-26 Anthony Green <green@moxielogic.com>
5049
5050 * configure.tgt: Add support for moxie-*-rtems* target.
5051
025e6dce
PA
50522013-02-25 Pedro Alves <palves@redhat.com>
5053
5054 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5055 warning text.
5056
ca9c94ef
MR
50572013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5058
5059 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5060 if $fp is used as the virtual frame pointer.
5061
24c274a1
AM
50622013-02-23 Alan Modra <amodra@gmail.com>
5063
5064 * elfread.c (elf_symtab_read): Do not use udata.p here to find
5065 symbol size.
5066 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5067 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5068 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5069 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5070
bfada189
JK
50712013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 Code cleanup.
5074 * elfread.c (build_id_bfd_get): Make the return type const.
5075 (build_id_verify): Make the check parameter const.
5076 (build_id_to_debug_filename): Make the build_id parameter and variable
5077 data const.
5078 (find_separate_debug_file_by_buildid): Make the variable build_id const.
5079
c0355132
AM
50802013-02-21 Alan Modra <amodra@gmail.com>
5081
5082 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5083
9f44fbc0
SCR
50842013-02-20 Siva Chandra Reddy <sivachandra@google.com>
5085
5086 Add a new method 'disassemble' to gdb.Architecture class.
5087 * python/py-arch.c (archpy_disassmble): Implementation of the
5088 new method gdb.Architecture.disassemble.
5089 (arch_object_methods): Add entry for the new method.
5090
b74ea3eb
JW
50912013-02-20 Jiong Wang <jiwang@tilera.com>
5092
5093 * MAINTAINERS (Write After Approval): Add myself to the list.
5094
61a672f1
PA
50952013-02-19 Pedro Alves <palves@redhat.com>
5096
5097 Garbage collect 'struct monitor_ops'::load_routine.
5098
5099 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5100 * monitor.c (monitor_load): No longer call
5101 current_monitor->load_routine.
5102 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5103 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5104 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5105
40e397df
PA
51062013-02-19 Pedro Alves <palves@redhat.com>
5107
5108 PR gdb/15161
5109
5110 Harmonize with generic_load.
5111
5112 * monitor.c: Include "readline/readline.h".
5113 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5114 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5115 long/strtol for the 'load_offset' local. Error out if no argument
5116 is given or if too many arguments are given. Tilde expand the
5117 passed in file name.
5118
f698ca8e
KT
51192013-02-19 Kai Tietz <ktietz@redhat.com>
5120
5121 PR gdb/15161
5122 * symfile.c (load_section_data): Change type of load_offset
5123 to CORE_ADDR.
5124 (generic_load): User strtoulst instead of strtoul for conversion
5125 of load_offset.
5126
3361b059
WL
51272013-02-19 Jiong Wang <jiwang@tilera.com>
5128
5129 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5130 for return address, "lr" register, saved on stack.
5131 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5132 after we invoke tilegx_analyze_prologue.
5133
3e9d5130
WL
51342013-02-19 Jiong Wang <jiwang@tilera.com>
5135
bb1bcd86
WL
5136 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5137
3361b059 51382013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 5139
b74ea3eb 5140 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 5141
4aaf2503
WL
51422013-02-19 Jiong Wang <jiwang@tilera.com>
5143
b74ea3eb 5144 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
5145 (tilegx_write_pc): New function.
5146 (tilegx_cannot_reference_register): Return zero if REGNO
5147 is TILEGX_FAULTNUM_REGNUM.
5148 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5149 (tilegx_register_name): Add handling of "faultnum" register.
5150 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5151 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5152 handling of TILEGX_FAULTNUM_REGNUM.
5153 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5154
bc23a956
WL
51552013-02-19 Jiong Wang <jiwang@tilera.com>
5156
5157 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 5158 should be aligned to 64bit.
bc23a956 5159
42f45f1a
KT
51602013-02-19 Kai Tietz <ktietz@redhat.com>
5161
5162 * windows-nat.c (windows_xfer_memory): Fix debug-output
5163 for LLP64.
5164
6ce4c112
LL
51652013-02-19 Lei Liu <lei.liu2@windriver.com>
5166
5167 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5168 Don't check DSP register number if HAVE_DSP is not set.
5169
30e8ee25
AM
51702013-02-19 Alan Modra <amodra@gmail.com>
5171
5172 * elfread.c (struct build_id): Delete. Use struct elf_build_id
5173 throughout file instead.
5174 (build_id_bfd_get): Update to use new elf_tdata build_id field.
5175 Don't xmalloc return value.
5176 (build_id_verify): Similarly. Don't xfree.
5177 (build_id_to_debug_filename): Update.
5178 (find_separate_debug_file_by_buildid): Update, don't xfree.
5179
4c9ad8c2
TT
51802013-02-18 Tom Tromey <tromey@redhat.com>
5181
5182 PR gdb/15102:
5183 * dwarf2read.c (read_subrange_type): Use result of
5184 'check_typedef'.
5185
983dc440
YQ
51862013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
5187
5188 * frame.c: Remove one extra white space after #include
5189 directive.
5190
7fb2b84a
JK
51912013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5192
5193 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5194
edceb2a9
JK
51952013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5196
5197 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5198 and dir commands into an if block.
5199
e81b7af8
TT
52002013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
5201
5202 * python/py-breakpoint (struct pybp_code): Use int instead of
5203 enum type_code.
5204
f5911ea1
HAQ
52052013-02-15 Pedro Alves <pedro@codesourcery.com>
5206 Hafiz Abid Qadeer <abidh@codesourcery.com>
5207
5208 * NEWS: Mention new field "trace-file".
5209 * tracepoint.c (trace_status_mi): Output "trace-file" field.
5210 (tfile_open): Record the trace file's filename in the trace
5211 status.
5212 (tfile_files_info): Mention the name of the trace file.
5213 Check the "filename" field explicitely.
5214 (trace_status_command): Explicitely check "filename" field.
5215 (trace_find_command): Ditto.
5216 (trace_find_pc_command): Ditto.
5217 (trace_find_tracepoint_command): Ditto.
5218 (trace_find_line_command): Ditto.
5219 (trace_find_range_command): Ditto.
5220 (trace_find_outside_command): Ditto.
5221 * tracepoint.h (struct trace_status) <from_file>: Rename it
5222 to "filename" and make it hold the trace file's filename
5223 instead of a boolean.
5224 * remote.c (remote_get_trace_status): Initialize "filename"
5225 field with NULL instead of 0.
5226
796cb314
YQ
52272013-02-15 Yao Qi <yao@codesourcery.com>
5228
5229 * remote.c: Fix a typo.
5230
42e79b1d
PM
52312013-02-14 Pierre Muller <muller@sourceware.org>
5232
5233 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5234
baea0dae
PA
52352013-02-14 Pedro Alves <palves@redhat.com>
5236
5237 * utils.c (savestring): Don't #undef it. Move function to
5238 common/common-utils.c.
5239 * common/common-utils.c: Include gdb_string.h.
5240 (savestring): Move here from utils.c.
5241 * common/common-utils.h (savestring): Declare.
5242
57c3b6ed
PA
52432013-02-14 Pedro Alves <palves@redhat.com>
5244
5245 * utils.c (savestring): Rename parameter 'size' to 'len'.
5246
d6c44983
YZ
52472013-02-14 Pedro Alves <palves@redhat.com>
5248 Yufeng Zhang <yufeng.zhang@arm.com>
5249
5250 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5251 (aarch64_inferior_data, struct aarch64_inferior_data):
5252 Delete.
5253 (struct aarch64_process_info): New.
5254 (aarch64_process_list): New global.
5255 (aarch64_find_process_pid, aarch64_add_process)
5256 (aarch64_process_info_get): New functions.
5257 (aarch64_inferior_data_get): Delete.
5258 (aarch64_process_info_get): New function.
5259 (aarch64_forget_process): New function.
5260 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
5261 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5262 aarch64_get_debug_reg_state.
5263 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5264 instead of linux_nat_iterate_watchpoint_lwps.
5265 (aarch64_linux_new_fork): New function.
5266 (aarch64_linux_child_post_startup_inferior): Use
5267 aarch64_forget_process instead of aarch64_init_debug_reg_state.
5268 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5269 (aarch64_linux_remove_hw_breakpoint)
5270 (aarch64_handle_aligned_watchpoint)
5271 (aarch64_handle_unaligned_watchpoint)
5272 (aarch64_linux_insert_watchpoint)
5273 (aarch64_linux_remove_watchpoint)
5274 (aarch64_linux_stopped_data_address): Adjust to pass the current
5275 process id to aarch64_debug_reg_state.
5276 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5277 linux_nat_new_fork hook, and aarch64_forget_process as
5278 linux_nat_forget_process hook; remove the call to
5279 register_inferior_data_with_cleanup.
5280
4819b3f8
PA
52812013-02-14 Pedro Alves <palves@redhat.com>
5282
5283 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5284 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5285 lval_memory.
5286
1773c82c
HAQ
52872013-02-14 Pedro Alves <pedro@codesourcery.com>
5288 Hafiz Abid Qadeer <abidh@codesourcery.com>
5289
5290 * tracepoint.h (validate_trace_state_variable_name): Declare.
5291 * tracepoint.c (validate_trace_state_variable_name): New.
5292 (trace_variable_command): Parse the trace state variable's name
5293 without using parse_expression. Do several validations.
5294 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5295 trace state variable's name with parse_expression. Validate it.
5296
53778a97
YQ
52972013-02-14 Yao Qi <yao@codesourcery.com>
5298
5299 * infcmd.c (breakpoint_proceeded): Remove it.
5300
7b3ae3a6
YQ
53012013-02-14 Yao Qi <yao@codesourcery.com>
5302
5303 * tracepoint.c (end_actions_pseudocommand): Make it static.
5304 (while_stepping_pseudocommand): Likewise.
5305 * tracepoint.h (end_actions_pseudocommand): Remove the
5306 declaration.
5307 (while_stepping_pseudocommand): Likewise.
5308
64580925
YQ
53092013-02-14 Yao Qi <yao@codesourcery.com>
5310
5311 * cli/cli-decode.c (help_cmd): Remove the declaration of
5312 "cmdlist".
5313 (help_all): Likewise.
5314
26cb8b7c
PA
53152013-02-13 Pedro Alves <palves@redhat.com>
5316
5317 * amd64-linux-nat.c (update_debug_registers_callback):
5318 Update comment.
5319 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5320 iterate_over_lwps.
5321 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5322 i386_debug_reg_state.
5323 (amd64_linux_new_fork): New function.
5324 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5325 linux_nat_new_fork hook, and i386_forget_process as
5326 linux_nat_forget_process hook.
5327 * i386-linux-nat.c (update_debug_registers_callback):
5328 Update comment.
a8256ea1 5329 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
5330 iterate_over_lwps.
5331 (i386_linux_prepare_to_resume): Pass the lwp's pid to
5332 i386_debug_reg_state.
5333 (i386_linux_new_fork): New function.
5334 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5335 linux_nat_new_fork hook, and i386_forget_process as
5336 linux_nat_forget_process hook.
5337 * i386-nat.c (i386_init_dregs): Delete.
5338 (i386_inferior_data, struct i386_inferior_data):
5339 Delete.
5340 (struct i386_process_info): New.
5341 (i386_process_list): New global.
5342 (i386_find_process_pid, i386_add_process, i386_process_info_get):
5343 New functions.
5344 (i386_inferior_data_get): Delete.
5345 (i386_process_info_get): New function.
5346 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
5347 (i386_forget_process): New function.
5348 (i386_cleanup_dregs): Rewrite.
5349 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5350 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5351 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5352 (i386_remove_hw_breakpoint): Adjust to pass the current process id
5353 to i386_debug_reg_state.
5354 (i386_use_watchpoints): Don't register inferior data.
5355 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5356 adjust comment.
5357 (i386_forget_process): Declare.
5358 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5359 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5360 New static globals.
5361 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5362 (add_initial_lwp): New, factored out from ...
5363 (add_lwp): ... this. Don't check the number of lwps before
5364 calling linux_nat_new_thread.
5365 (linux_nat_iterate_watchpoint_lwps): Delete.
5366 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5367 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5368 forks and vforks.
5369 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5370 initial lwp.
5371 (linux_nat_kill, linux_nat_mourn_inferior): Call
5372 linux_nat_forget_process.
5373 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5374 (linux_nat_forget_process): New functions.
5375 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5376 type.
5377 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5378 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5379 types.
5380 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5381 (linux_nat_forget_process): New declarations.
5382
5383 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5384 (amd64fbsd_mourn_inferior): New function.
5385 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5386 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5387
5befea72
MS
53882013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5389
55015247
YQ
5390 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5391 Adding _().
5befea72 5392
1d3ffd6b
MS
53932013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5394
5395 * aarch64-linux-nat.c (debug_reg_change_callback)
5396 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5397 %s and phex().
5398
6eb04473
MS
53992013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5400
5401 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5402 with LONGEST.
5403
a016fc87
HAQ
54042013-02-13 Pedro Alves <palves@redhat.com>
5405 Hafiz Abid Qadeer <abidh@codesourcery.com>
5406
5407 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5408
e234dfaf
TT
54092013-02-12 Tom Tromey <tromey@redhat.com>
5410
5411 PR symtab/11464:
5412 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5413 NAME return.
5414 (classify_inner_name): Remove 'first_name' argument, add
5415 'context'. Remove unused variable.
5416 (yylex): Explicitly maintain the context type. Exit loop earlier
5417 if NAME result is seen.
5418
0b1afbb3
PA
54192013-02-12 Pedro Alves <palves@redhat.com>
5420
5421 * amd64-darwin-tdep.c: Add (C) after Copyright.
5422 * cli/cli-cmds.h: Ditto.
5423 * cli/cli-decode.c: Ditto.
5424 * cli/cli-decode.h: Ditto.
5425 * cli/cli-dump.c: Ditto.
5426 * cli/cli-dump.h: Ditto.
5427 * cli/cli-interp.c: Ditto.
5428 * cli/cli-logging.c: Ditto.
5429 * cli/cli-script.c: Ditto.
5430 * cli/cli-script.h: Ditto.
5431 * cli/cli-setshow.c: Ditto.
5432 * cli/cli-setshow.h: Ditto.
5433 * cli/cli-utils.c: Ditto.
5434 * cli/cli-utils.h: Ditto.
5435 * config/alpha/nm-osf3.h: Ditto.
5436 * config/djgpp/djconfig.sh: Ditto.
5437 * config/i386/nm-fbsd.h: Ditto.
5438 * config/i386/nm-i386gnu.h: Ditto.
5439 * config/nm-linux.h: Ditto.
5440 * config/nm-nto.h: Ditto.
5441 * config/rs6000/nm-rs6000.h: Ditto.
5442 * config/sparc/nm-sol2.h: Ditto.
5443 * darwin-nat-info.c: Ditto.
5444 * dfp.c: Ditto.
5445 * dfp.h: Ditto.
5446 * gdb-demangle.h: Ditto.
5447 * i386-darwin-nat.c: Ditto.
5448 * i386-darwin-tdep.c: Ditto.
5449 * linux-fork.h: Ditto.
5450 * m32c-tdep.c: Ditto.
5451 * microblaze-linux-tdep.c: Ditto.
5452 * microblaze-rom.c: Ditto.
5453 * microblaze-tdep.c: Ditto.
5454 * microblaze-tdep.h: Ditto.
5455 * mips-linux-tdep.h: Ditto.
5456 * ppc-ravenscar-thread.c: Ditto.
5457 * ppc-ravenscar-thread.h: Ditto.
5458 * prologue-value.c: Ditto.
5459 * prologue-value.h: Ditto.
5460 * ravenscar-thread.c: Ditto.
5461 * ravenscar-thread.h: Ditto.
5462 * sparc-ravenscar-thread.c: Ditto.
5463 * sparc-ravenscar-thread.h: Ditto.
5464 * tilegx-linux-tdep.c: Ditto.
5465 * unwind_stop_reasons.def: Ditto.
5466 * windows-nat.h: Ditto.
5467 * xtensa-linux-tdep.c: Ditto.
5468 * xtensa-xtregs.c: Ditto.
5469 * regformats/regdat.sh: Ditto.
5470 * regformats/regdef.h: Ditto.
5471
6c01dd94
PA
54722013-02-12 Pedro Alves <palves@redhat.com>
5473
5474 * break-catch-sig.c: Update copyright years.
5475
b65a2bd9
SCR
54762013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5477
5478 Add support for a destructor for ui_out data and use it to
5479 provide a ui_out destructor.
5480 * ui-out.h: Declare the new ui_out destructor.
5481 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5482 * ui-out.c (default_data_destroy): Add a default data destructor
5483 which does nothing.
5484 (default_ui_out_impl): Set the new data_destroy field to
5485 default_data_destroy
5486 (uo_data_destroy): Local function which invokes the data
5487 destructor if present.
5488 (clear_table): Local function which clears the table data of a
5489 ui_out object.
5490 (ui_out_destroy): Public function which frees a ui_out object.
5491 (ui_out_table_end): Use the new clear_table function.
5492 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5493 NULL.
5494 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5495 to NULL.
5496
c2792f5a
DE
54972013-02-11 Doug Evans <dje@google.com>
5498
5499 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5500 (printf_decfloat): New function. Broken out from ui_printf.
5501 Remove unnecessary code to shift the entire format string down.
5502 (printf_pointer): New function.
5503 (ui_printf): Code to print C strings, wide C strings, decfloats,
5504 and pointers moved to separate functions.
5505
d9e98382
SDJ
55062013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5507
5508 * valops.c (value_assign): Handling bitfield offset in
5509 `lval_internalvar_component' case.
5510
4ff3ce77
DE
55112013-02-08 Doug Evans <dje@google.com>
5512
5513 * common/format.c (parse_format_string): Fix whitespace.
5514
901900c4
MGD
55152013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5516
5517 * stack.c (return_command): Work around uninitialized variable
5518 warning.
5519
b5dbc8d4
YZ
55202013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5521
5522 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5523 number of the registers from 36 to 34.
5524
51d66578
MS
55252013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5526
5527 * NEWS: Mention new AArch64 native and target support.
5528
176b1c95
MS
55292013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5530
5531 * MAINTAINERS (Write After Approval): Add myself.
5532
9d19df75
MS
55332013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5534 Marcus Shawcroft <marcus.shawcroft@arm.com>
5535 Nigel Stephens <nigel.stephens@arm.com>
5536 Yufeng Zhang <yufeng.zhang@arm.com>
5537
5538 * aarch64-linux-nat.c: New file.
5539 * config/aarch64/linux.mh: New file.
5540 * configure.host: Add AArch64.
5541 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5542
7e1e0340
DE
55432013-02-07 Doug Evans <dje@google.com>
5544
5545 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5546 disassemble command.
5547
45e25a36
MS
55482013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5549
5550 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5551 set_gdbarch_fetch_tls_load_module_address.
5552
bbfdfe1c
DM
55532013-02-06 David S. Miller <davem@davemloft.net>
5554
5555 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5556 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5557 * value.c (struct_return_convention): New function.
5558 (using_struct_return): Implement in terms of struct_return_convention.
5559 * value.h (struct_return_convention): Declare.
5560 * stack.c (return_command): Allow successful overriding of the return
5561 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5562
bc9abe4a
TT
55632013-02-06 Tom Tromey <tromey@redhat.com>
5564
5565 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5566 outside of TRY_CATCH.
5567
134a2066
YQ
55682013-02-06 Yao Qi <yao@codesourcery.com>
5569
5570 * mi/mi-interp.c: Include "tracepoint.h".
5571 (mi_tsv_modified): Declare.
5572 (mi_tsv_created, mi_tsv_deleted): Update declaration.
5573 (mi_interpreter_init): Call observer_attach_tsv_modified.
5574 (mi_tsv_modified): New.
5575 (mi_tsv_created, mi_tsv_deleted): Update.
5576 * tracepoint.c (trace_variable_command): Call
5577 observer_notify_tsv_modified if the initial value of tsv is
5578 changed.
5579 (delete_trace_state_variable): Call
5580 observer_notify_tsv_deleted earlier.
5581 (trace_variable_command): Caller update.
5582 (create_tsv_from_upload): Likewise.
5583 * observer.sh: Declare "struct trace_state_variable".
5584
5585 * NEWS: Mention the new MI notification "=tsv-modified".
5586
59be2b6a
DE
55872013-02-05 Doug Evans <dje@google.com>
5588
5589 * completer.c (location_completer): Fix typo in comment.
5590
d30113d4
JK
55912013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5592
5593 * breakpoint.c (add_location_to_breakpoint): Insert the location with
5594 ADDRESS sorted.
5595
14ac654f
MS
55962013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5597
5598 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5599 Refactor if statement to avoid trailing || operator.
5600
543bf33d
AT
56012013-02-05 Andreas Tobler <andreast@fgznet.ch>
5602
5603 * NEWS: Add PowerPC FreeBSD as a new native configuration.
5604
dc18f110
AT
56052013-02-04 Andreas Tobler <andreast@fgznet.ch>
5606
5607 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5608 * configure.host: Add powerpc*-*-freebsd* target.
5609 * configure.tgt: Add target info for powerpc*-*-freebsd*.
5610 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5611 * config/powerpc/fbsd.mh: New file.
5612
b3ac9c77
SDJ
56132013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
5614 Denys Vlasenko <dvlasenk@redhat.com>
5615 Pedro Alves <palves@redhat.com>
5616
5617 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5618 (struct elf_internal_linux_prpsinfo): Forward declare.
5619 * gdbarch.h, gdbarch.c: Regenerate.
5620 * linux-tdep.c: Include `cli/cli-utils.h'.
5621 (linux_fill_prpsinfo): New function.
5622 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
5623 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5624 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5625 depending on gdbarch pointer bitness.
5626 * ppc-linux-tdep.c: Include elf-bfd.h.
5627 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5628 on 32-bit.
5629
176eb98c
MS
56302013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5631 Marcus Shawcroft <marcus.shawcroft@arm.com>
5632 Nigel Stephens <nigel.stephens@arm.com>
5633 Yufeng Zhang <yufeng.zhang@arm.com>
5634
5635 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5636
cf0dbd6f
MS
56372013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5638 Marcus Shawcroft <marcus.shawcroft@arm.com>
5639 Nigel Stephens <nigel.stephens@arm.com>
5640 Yufeng Zhang <yufeng.zhang@arm.com>
5641
5642 * aarch64-newlib-tdep.c: New file.
5643 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5644 aarch64*-*-elf.
5645 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5646 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5647 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5648 * osabi.c (gdb_osabi_names): Add "Newlib".
5649
1ae3db19
MS
56502013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5651 Marcus Shawcroft <marcus.shawcroft@arm.com>
5652 Nigel Stephens <nigel.stephens@arm.com>
5653 Yufeng Zhang <yufeng.zhang@arm.com>
5654
5655 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5656 (ALLDEPFILES): Add aarch64-linux-tdep.c.
5657 * aarch64-linux-tdep.c: New file.
5658 * aarch64-linux-tdep.h: New file.
5659 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5660 * configure.tgt: Add aarch64-none-linux-gnu.
5661
07b287a0
MS
56622013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5663 Marcus Shawcroft <marcus.shawcroft@arm.com>
5664 Nigel Stephens <nigel.stephens@arm.com>
5665 Yufeng Zhang <yufeng.zhang@arm.com>
5666
5667 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5668 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5669 (ALLDEPFILES): Add aarch64-tdep.c.
5670 * aarch64-tdep.c: New file.
5671 * aarch64-tdep.h: New file.
5672 * configure.tgt: Add AArch64.
5673 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5674 (aarch64-expedite): New definition.
5675 * features/aarch64-core.xml: New file.
5676 * features/aarch64-fpu.xml: New file.
5677 * features/aarch64-without-fpu.c: New file (generated).
5678 * features/aarch64-without-fpu.xml: New file.
5679 * features/aarch64.c: New file (generated).
5680 * features/aarch64.xml: New file.
5681 * regformats/aarch64-without-fpu.dat: New file (generated).
5682 * regformats/aarch64.dat: New file (generated).
5683
0f1b18ab
JK
56842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5685
5686 * contrib/expect-read1.c: New file.
5687 * contrib/expect-read1.sh: New file.
5688
233d95b5
JK
56892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5690
5691 * dwarf2read.c (file_file_name): New function with code from
5692 file_full_name.
5693 (file_full_name): Move most of the code to file_file_name.
5694 (macro_start_file): Rename variable full_name to file_name and use
5695 file_file_name for it. Add comp_dir parameter to new_macro_table.
5696 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
5697 macro_source_file->filename access by macro_source_fullname call.
5698 * macroscope.c (_initialize_macroscope): Update the new_macro_table
5699 caller.
5700 * macrotab.c (struct macro_table): New field comp_dir.
5701 (macro_include): New variables link_fullname and source_fullname.
5702 Replace any macro_source_file->filename access by macro_source_fullname
5703 call.
5704 (macro_lookup_inclusion): Remove the partial filenames checking code.
5705 (check_for_redefinition): New variables source_fullname and
5706 found_key_fullname. Replace any macro_source_file->filename access by
5707 macro_source_fullname call.
5708 (macro_undef): New variables source_fullname and key_fullname. Replace
5709 any macro_source_file->filename access by macro_source_fullname call.
5710 (macro_lookup_definition): New variables retval and source_fullname.
5711 Replace any macro_source_file->filename access by macro_source_fullname
5712 call.
5713 (foreach_macro): New variable key_fullname. Replace any
5714 macro_source_file->filename access by macro_source_fullname call.
5715 (foreach_macro_in_scope): New variable datum_fullname. Replace any
5716 macro_source_file->filename access by macro_source_fullname call.
5717 (new_macro_table): Add parameter comp_dir. Initialize T with it.
5718 (macro_source_fullname): New function.
5719 * macrotab.h (struct macro_source_file): Extent the filename field
5720 comment.
5721 (new_macro_table): New parameter comp_dir, add a comment for it.
5722 (macro_source_fullname): new declaration.
5723
da235a7c
JK
57242013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5725
5726 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5727 this_real_name to outer block. Use it also for
5728 compare_filenames_for_search.
5729 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
5730 with dw2_get_real_path for file_matcher, considering also
5731 BASENAMES_MAY_DIFFER.
5732 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5733
fbd9ab74
JK
57342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5737 to the file_matcher parameter. Pass 0 to it.
5738 (dwarf2_create_include_psymtab): Copy also DIRNAME.
5739 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5740 NULL psymtab_to_fullname result.
5741 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
5742 an expected filename instead.
5743 (expand_symtabs_matching_via_partial): Add basenames parameter to the
5744 file_matcher parameter. Call also psymtab_to_fullname, after newly
5745 considering BASENAMES_MAY_DIFFER.
5746 * source.c (rewrite_source_path): Remove static.
5747 * source.h (rewrite_source_path): New declaration.
5748 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5749 the expand_symtabs_matching field. Comment it.
5750 * symtab.c (file_matches): New function comment. Add parameter
5751 basenames, implement it.
5752 (search_symbols_file_matches): Add basenames parameter. Update the
5753 file_matches caller.
5754 (search_symbols): Match FILES also against symtab_to_fullname.
5755 Optimize it for BASENAMES_MAY_DIFFER.
5756
56d397a3
JK
57572013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5758
5759 * source.c (print_source_lines_base): Print for TUI also "fullname".
5760 * tui/tui-data.c (init_content_element): Change tui_locator_element
5761 field to full_name.
5762 * tui/tui-data.h (struct tui_locator_element): Likewise.
5763 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5764 tui_update_locator_filename calls to tui_update_locator_fullname.
5765 Replace symtab->filename refererence by symtab_to_fullname call.
5766 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5767 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5768 field to full_name. Replace symtab->filename refererence by
5769 symtab_to_fullname call.
5770 (tui_show_symtab_source): Rename parameter to fullname. Change
5771 tui_locator_element field to full_name.
5772 * tui/tui-stack.c: Include source.h.
5773 (tui_set_locator_filename): Rename the declaration to ...
5774 (tui_set_locator_fullname): ... here. Rename its parameter to
5775 fullname, updates its comment.
5776 (tui_set_locator_info): Rename its parameter to fullname.
5777 (tui_set_locator_filename): Rename the definition to ...
5778 (tui_set_locator_fullname): ... here. Rename its parameter to
5779 fullname, updates its comment. Change tui_locator_element field to
5780 full_name.
5781 (tui_set_locator_info): Rename its parameter to fullname.
5782 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5783 (tui_update_locator_filename): Rename to ...
5784 (tui_update_locator_fullname): ... here. Rename callee to
5785 tui_set_locator_fullname.
5786 (tui_show_frame_info): Replace symtab->filename refererence by
5787 symtab_to_fullname call.
5788 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5789 (tui_update_locator_fullname): ... here.
5790 * tui/tui-winsource.c (tui_display_main): Rename the callee to
5791 tui_update_locator_fullname. Replace symtab->filename refererence by
5792 symtab_to_fullname call.
5793 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5794 Rename the callee to tui_update_locator_fullname.
5795 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5796
05cba821
JK
57972013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5798
5799 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5800 by symtab_to_filename_for_display calls.
5801 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5802 (clear_command): New variable sal_fullname, initialize it. Replace
5803 compare_filenames_for_search by filename_cmp with sal_fullname.
5804 (say_where, update_static_tracepoint): Replace symtab->filename
5805 refererences by symtab_to_filename_for_display calls.
5806 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5807 Likewise.
5808 * dwarf2read.c: Include source.h.
5809 (fixup_go_packaging): Replace symtab->filename refererences by
5810 symtab_to_filename_for_display calls.
5811 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5812 Replace symtab->filename refererences by symtab_to_filename_for_display
5813 calls.
5814 (create_sals_line_offset, convert_linespec_to_sals): New variable
5815 fullname, initialize it, replace symtab->filename reference by the
5816 variable.
5817 * linux-fork.c: Include source.h.
5818 (info_checkpoints_command): Replace symtab->filename refererences by
5819 symtab_to_filename_for_display calls.
5820 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5821 by symtab_to_filename_for_display calls.
5822 * mdebugread.c: Include source.h.
5823 (psymtab_to_symtab_1): Replace symtab->filename refererences by
5824 symtab_to_filename_for_display calls.
5825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5826 (mi_cmd_file_list_exec_source_files): Likewise.
5827 * printcmd.c: Include source.h.
5828 (build_address_symbolic): Replace symtab->filename refererences by
5829 symtab_to_filename_for_display calls.
5830 * psymtab.c (partial_map_symtabs_matching_filename)
5831 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5832 with psymtab_to_fullname.
5833 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5834 by symtab_to_filename_for_display calls.
5835 (stpy_get_filename): New variable filename, initialize it, use instead
5836 of symtab->filename refererences.
5837 (salpy_str): Make variable filename const char *. Replace
5838 symtab->filename refererences by symtab_to_filename_for_display calls.
5839 * skip.c: Include source.h and filenames.h.
5840 (skip_file_command): Remove const from the symtab variable. Replace
5841 symtab->filename refererences by symtab_to_fullname call.
5842 (function_name_is_marked_for_skip): New variables searched_for_fullname
5843 and fullname. Use them to search also with symtab's fullname.
5844 * source.c (find_source_lines): Replace symtab->filename refererences
5845 by symtab_to_filename_for_display calls.
5846 (print_source_lines_base): New variable filename, use it instead of
5847 symtab->filename. Replace symtab->filename refererences by
5848 symtab_to_filename_for_display calls.
5849 (line_info, forward_search_command): Replace symtab->filename
5850 refererences by symtab_to_filename_for_display calls.
5851 (reverse_search_command): Replace symtab->filename refererences by
5852 symtab_to_filename_for_display calls. New variable filename for it.
5853 * stack.c (frame_info): Likewise.
5854 * symmisc.c: Include source.h.
5855 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5856 (maintenance_info_symtabs): Replace symtab->filename refererences by
5857 symtab_to_filename_for_display calls.
5858 * symtab.c (iterate_over_some_symtabs): Call
5859 compare_filenames_for_search also with symtab_to_fullname.
5860 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5861 symtab->filename refererences by symtab_to_filename_for_display calls.
5862 (find_line_symtab): Replace symtab->filename refererences by
5863 symtab_to_filename_for_display calls.
5864 (file_matches): Replace filename_cmp by compare_filenames_for_search.
5865 (print_symbol_info): Make the last parameter const char *. New
5866 variable s_filename. Use it in the function.
5867 (symtab_symbol_info): Make the last_filename variable const char *.
5868 Replace symtab->filename refererences by symtab_to_filename_for_display
5869 calls.
5870 (rbreak_command): New variable fullname. Use it. Replace
5871 symtab->filename refererence by symtab_to_filename_for_display call.
5872 * tracepoint.c (set_traceframe_context, trace_find_line_command)
5873 (print_one_static_tracepoint_marker): Replace symtab->filename
5874 refererences by symtab_to_filename_for_display calls.
5875 * tui/tui-source.c (tui_set_source_content): New variables filename and
5876 s_filename. Replace symtab->filename refererences by this variable.
5877 Replace other symtab->filename refererences by
5878 symtab_to_filename_for_display calls.
5879
1b56eb55
JK
58802013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5881 Jan Kratochvil <jan.kratochvil@redhat.com>
5882
5883 Add a new variable that controls a way in which filenames are
5884 displayed.
5885 * NEWS (set filename-display): New entry.
5886 * source.c (filename_display_basename, filename_display_relative)
5887 (filename_display_absolute, filename_display_kind_names)
5888 (filename_display_string, show_filename_display_string)
5889 (symtab_to_filename_for_display): New.
5890 (_initialize_source): Added initialization of 'filename-display'
5891 variable.
5892 * source.h (symtab_to_filename_for_display): Added declaration.
5893 * stack.c (print_frame): Added new variable and calling of a new
5894 function and condition with this variable. Changed third argument of
5895 calling of a function.
5896
aa079c93
JK
58972013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
5900 Rename field reference filename to fullname.
5901 * tui/tui-data.h (struct tui_source_info): Rename field filename to
5902 fullname. New comment for it.
5903 * tui/tui-source.c (tui_set_source_content): Rename field reference
5904 filename to fullname. Initialize field by symtab_to_fullname now.
5905 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
5906 reference filename to fullname. Use symtab_to_fullname during
5907 comparison.
5908
652a8996
JK
59092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5910
5911 Code cleanup.
5912 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
5913 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
5914 filename to fullname. Rename variable this_name to this_fullname.
5915 Lowercase FILENAME_CMP call.
5916 (dw2_find_symbol_file): New comment for the returned string.
5917 (dwarf2_gdb_index_functions): Rename the function to
5918 dw2_expand_symtabs_with_fullname.
5919 * psymtab.c (read_psymtabs_with_filename): Rename to ...
5920 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
5921 fullname.
5922 (psym_functions): Rename the function to read_psymtabs_with_fullname.
5923 * symfile.h (struct quick_symbol_functions): Rename field
5924 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
5925 parameter filename to fullname. Document returned string meaning for
5926 find_symbol_file.
5927 * symtab.c (find_line_symtab): Rename the called function to
5928 expand_symtabs_with_fullname.
5929
af529f8f
JK
59302013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 Code cleanup.
5933 * breakpoint.c (clear_command): Remove variable is_abs, unify the
5934 call of filename_cmp with compare_filenames_for_search.
5935 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
5936 is_abs, unify the call of FILENAME_CMP with
5937 compare_filenames_for_search. New gdb_asserts for real_path and name.
5938 Unify the call of compare_filenames_for_search with FILENAME_CMP.
5939 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5940 * symfile.h (struct quick_symbol_functions): Extend the comment for
5941 map_symtabs_matching_filename.
5942 * symtab.c (compare_filenames_for_search): Remove the function comment
5943 relative path requirement. Handle absolute filenames, with a comment.
5944 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
5945 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
5946 real_path and name. Unify the call of compare_filenames_for_search
5947 with FILENAME_CMP.
5948 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
5949
2f202fde
JK
59502013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5951
5952 Code cleanup.
5953 * breakpoint.c (print_breakpoint_location): Replace bp_location field
5954 source_file references by symtab field references. Remove variables
5955 sal and fullname.
5956 (momentary_breakpoint_from_master, add_location_to_breakpoint):
5957 (clear_command, say_where): Replace bp_location field source_file
5958 references by symtab field references.
5959 (bp_location_dtor): Remove the source_file reference.
5960 (update_static_tracepoint): Replace bp_location field source_file
5961 references by symtab field references.
5962 (breakpoint_free_objfile): New function.
5963 * breakpoint.h (struct bp_location): Extend the comment for line_number.
5964 Replace the field source_file by field symtab, extend its comment.
5965 (breakpoint_free_objfile): New declaration.
5966 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
5967 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
5968 field source_file references by symtab field references.
5969
f5b95b50
JK
59702013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 Replace xfullpath calls by gdb_realpath calls.
5973 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
5974 function comment.
5975 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
5976 Remove it from the iterate_over_some_symtabs call.
5977 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
5978 Remove it from the dw2_map_expand_apply calls, remove a block handling
5979 it.
5980 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
5981 Remove it from the iterate_over_some_symtabs call.
5982 (partial_map_symtabs_matching_filename): Remove parameter full_path.
5983 Remove it from the partial_map_expand_apply calls, remove a block
5984 handling it. Drop gdb_realpath call and cleanups from the real_path
5985 handling.
5986 * source.c (openp): Drop the comment part about xfullpath. Replace
5987 xfullpath calls by gdb_realpath calls.
5988 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
5989 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
5990 from method map_symtabs_matching_filename and its comment.
5991 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
5992 gdb_realpath call.
5993 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
5994 remove it also from the function comment, remove a block handling it.
5995 Drop gdb_realpath call and cleanups from the real_path handling.
5996 (iterate_over_symtabs): Drop variable full_path and its use.
5997 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
5998 * utils.c (xfullpath): Remove.
5999 * utils.h (xfullpath): Remove.
6000
d78489bf
AT
60012013-02-01 Andreas Tobler <andreast@fgznet.ch>
6002
6003 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6004 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6005 (ALLDEPFILES): Add ppc64-tdep.c.
6006 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6007 ppc64-tdep.o to gdb_target_obs.
6008 * ppc64-tdep.h: New file.
6009 * ppc64-tdep.c: New file.
6010 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6011 ppc-linux-tdep.c to here.
6012 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6013 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6014 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6015 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6016 from ppc-linux-tdep.c to here.
6017 (ppc64_convert_from_func_ptr_addr): Rename from
6018 ppc64_linux_convert_from_func_ptr_addr to
6019 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6020 here.
6021 * rs6000-tdep.c:
6022 (read_insn): Move from ppc-linux-tdep.c to here.
6023 (insns_match_pattern, insn_d_field, insn_ds_field): Move
6024 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6025 * ppc-linux-tdep.c: Include ppc64-tdep.h.
6026 Removed above functions.
6027 (ppc_linux_init_abi): Adjust.
6028
8db60374
AR
60292013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6030
6031 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6032
f2e5f4ce
AR
60332013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6034
6035 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6036
c1f7d745
PA
60372013-02-01 Pedro Alves <palves@redhat.com>
6038
6039 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6040 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6041
8a92335b
JK
60422013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6043
6044 * elfread.c (elf_symfile_read): Limit separate debug info additions to
6045 files with no separate debug info.
6046 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6047 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6048 only for files with no separate debug info.
6049
8eacb197
TT
60502013-01-31 Tom Tromey <tromey@redhat.com>
6051
6052 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6053 change type.
6054 (struct jit_program_space_data): Rename from jit_inferior_data.
6055 Update comments.
6056 (get_jit_program_space_data): Rename from get_jit_inferior_data.
6057 Change return type. Attach data to program space.
6058 (jit_program_space_data_cleanup): Rename from
6059 jit_inferior_data_cleanup; change argument type.
6060 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6061 change type.
6062 (jit_register_code): Update.
6063 (jit_update_inferior_cache): Remove.
6064 (jit_breakpoint_deleted): Get jit data from the location's program
6065 space.
6066 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6067 'ps_data', change type.
6068 (jit_inferior_init, jit_breakpoint_re_set_internal)
6069 (jit_event_handler): Update.
6070 (free_objfile_data): Get data from objfile's program space.
6071 (_initialize_jit): Update.
6072
f25c0135
TT
60732013-01-31 Tom Tromey <tromey@redhat.com>
6074
6075 PR gdb/13987:
6076 * jit.c (struct jit_inferior_data) <cached_code_address,
6077 jit_breakpoint>: New fields.
6078 (jit_breakpoint_re_set_internal): Fix logging. Only create
6079 breakpoint if cached address has changed.
6080 (jit_update_inferior_cache, jit_breakpoint_deleted): New
6081 functions.
6082 (_initialize_jit): Register breakpoint deleted observer.
6083
974a734b
AR
60842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6085
6086 * infrun.c (handle_syscall_event): Remove unused gdbarch.
6087 (save_infcall_suspend_state): Ifdef out unused inf.
6088 (restore_infcall_suspend_state): Ifdef out unused inf.
6089 * jit.c (jit_register_code): Remove unused i, b, inf_data.
6090 (jit_frame_sniffer): Remove unused inf_data.
6091
df54f8eb
AR
60922013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6093
6094 * c-exp.y (classify_inner_name): Remove unused type.
6095 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6096 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6097 need_escape.
6098 (c_get_string): Remove unused kind.
6099 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6100
5799c0b9
AR
61012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6102
6103 * charset.c (intermediate_encoding): Remove unused i.
6104 * completer.c (signal_completer): Remove unused i.
6105 * continuations.c (discard_my_continuations_1): Remove unused
6106 continuation_ptr.
6107 * corelow.c (core_close): Remove unuseD name.
6108 (get_core_siginfo): Remove unused pid.
6109 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6110 i, cps.
6111 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6112 (loclist_describe_location): Remove unused first.
6113 * event-top.c (command_line_handler): Remove unused got_eof.
6114 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6115 (resize_section_table): Remove unused old_value.
6116 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6117 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6118 * i386-tdep.c (i386_process_record): Remove unused rex.
6119 * infcmd.c (get_return_value): Remove unused uiout.
6120 * jv-lang.c (type_from_class): Remove unused is_array.
6121 * jv-valprint.c (java_val_print): Remove unused i.
6122 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6123 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6124 * m2-typeprint.c (m2_print_type): Remove unused code.
6125 * macroexp.c (get_character_constant): Remove unused body_start.
6126 (macro_stringify): Remove unused result.
6127 * objc-lang.c (find_methods): Remove unused gdbarch.
6128 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6129 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6130 * stack.c (print_frame_args): Remove unused summary.
6131 * thread.c (thread_apply_command): Remove unused p.
6132 * valarith.c (value_x_unop): Remove unused mangle_ptr.
6133 * valops.c (search_struct_method): Remove unused skip.
6134 * valprint.c (generic_val_print): Remove unused byte_order.
6135 * varobj.c (varobj_update): Remove unused changed.
6136 * cli/cli-cmds.c (complete_command): Remove unused next_item.
6137 (alias_command): Remove unused c.
6138 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6139 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6140 format.
6141 (mi_cmd_data_write_memory): Remove unused word_format.
6142 (mi_cmd_data_write_memory_bytes): Remove unused r.
6143 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6144 p_start, p_end.
6145 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6146 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6147 line_width.
6148
c656bca5
AR
61492013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6150
6151 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6152 * symtab.c (iterate_over_symtabs): Remove unused s.
6153 (find_pc_sect_symtab): Remove unused pspAce.
6154 (find_pc_sect_line): Remove unused alt_symtab.
6155 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6156 (completion_list_add_name): Remove unused newsize.
6157
7078baeb
TT
61582013-01-31 Tom Tromey <tromey@redhat.com>
6159
6160 PR c++/14998:
6161 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6162 TYPE_CODE_FUNC.
6163
c2e8b827
AR
61642013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6165
6166 * target.c (target_read_string): Remove unused origlen.
6167
0e43993a
AR
61682013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6169
6170 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6171 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6172 * ax-general.c (ax_print): Remove unused is_float.
6173 * blockframe.c (block_innermost_frame): Remove unused start, end.
6174 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6175
765a97ab
AR
61762013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6177
6178 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6179 (svr4_read_so_list): Remove unused lmo.
6180 * solib-target.c (solib_target_relocate_section_addresses): Remove
6181 unused flags.
6182
a99dad3d
TT
61832013-01-30 Tom Tromey <tromey@redhat.com>
6184
6185 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6186
3bff1ecd
TT
61872013-01-30 Tom Tromey <tromey@redhat.com>
6188
6189 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6190 * utils.c (gnu_debuglink_crc32): Remove.
6191 * utils.h (gnu_debuglink_crc32): Don't declare.
6192
7d455152
TT
61932013-01-30 Tom Tromey <tromey@redhat.com>
6194
6195 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6196 (read_structure_type, read_enumeration_type): Remove cast.
6197
abee88f2
TT
61982013-01-30 Tom Tromey <tromey@redhat.com>
6199
6200 * dwarf2read.c (read_namespace_type): Remove cast.
6201 (read_typedef): Likewise.
6202
8d9878a4
TT
62032013-01-29 Tom Tromey <tromey@redhat.com>
6204
6205 * dwarf2read.c (free_dwo_file): Remove assert.
6206
a543d2a9
TT
62072013-01-29 Tom Tromey <tromey@redhat.com>
6208
6209 * value.c (deprecated_set_value_modifiable): Remove.
6210 * value.h (deprecated_set_value_modifiable): Remove.
6211
bed911e5
DE
62122013-01-28 Doug Evans <dje@google.com>
6213
6214 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6215 to addresses from dwo files.
6216
28c64fc2
SCR
62172013-01-25 Siva Chandra Reddy <sivachandra@google.com>
6218
6219 * valops.c (find_overload_match): Remove unused argument 'lax'.
6220 * value.h: Remove unused argument 'lax' from the declaration of
6221 find_overload_match.
6222 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6223 to find_overload_match.
6224 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6225 argument to find_overload_match.
6226
4d4ec4e5
TT
62272013-01-25 Tom Tromey <tromey@redhat.com>
6228
6229 * dwarf2read.c (processing_has_namespace_info): Remove.
6230 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6231 (process_die, read_func_scope, dwarf2_start_symtab)
6232 (new_symbol_full): Update.
6233
195a3f6c
TT
62342013-01-25 Tom Tromey <tromey@redhat.com>
6235
6236 * cp-namespace.c (cp_set_block_scope): Remove.
6237 * cp-support.h (cp_set_block_scope): Remove.
6238 * dbxread.c: Include block.h.
6239 (cp_set_block_scope): New function.
6240 (process_one_symbol): Update.
6241 * dwarf2read.c (read_func_scope): Use block_set_scope.
6242
8ba0730a
PA
62432013-01-25 Pedro Alves <palves@redhat.com>
6244
6245 * remote.c (add_current_inferior_and_thread): Tweak comment.
6246
12aaed36
TT
62472013-01-25 Tom Tromey <tromey@redhat.com>
6248
6249 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6250 (cp_add_using_directive): Add 'copy_names' argument.
6251 * cp-support.h (cp_add_using_directive): Update.
6252 (struct using_direct) <import_src, import_dest, alias,
6253 declaration>: Now const.
6254 * dwarf2read.c (read_import_statement): Use obconcat.
6255 Don't copy names passed to cp_add_using_directive.
6256
7fc75ca7
TT
62572013-01-25 Tom Tromey <tromey@redhat.com>
6258
6259 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6260
3405876a
PA
62612013-01-25 Pedro Alves <palves@redhat.com>
6262
6263 * remote.c (stop_reply_extract_thread): New.
6264 (add_current_inferior_and_thread): New parameter 'wait_status'.
6265 Handle it.
6266 (remote_start_remote): Pass wait status to
6267 add_current_inferior_and_thread.
6268 (extended_remote_run): Update comment.
6269 (extended_remote_create_inferior_1): Pass wait status to
6270 add_current_inferior_and_thread.
6271
8954db33
AB
62722013-01-25 Andrew Burgess <aburgess@broadcom.com>
6273 Ulrich Weigand <uweigand@de.ibm.com>
6274
6275 * valarith.c (value_vector_widen): New function for replicating a
6276 scalar into a vector.
6277 (value_binop): Use value_vector_widen to widen scalar to vector
6278 rather than casting, this better matches gcc C behaviour.
6279 * valops.c (value_casst): Update logic for casting between vector
6280 types, and for casting from scalar to vector, try to match gcc C
6281 behaviour.
6282 * value.h (value_vector_widen): Declare.
6283 * opencl-lang.c (opencl_value_cast): New opencl specific casting
6284 function, handle special case for casting scalar to vector.
6285 (opencl_relop): Use opencl_value_cast.
6286 (evaluate_subexp_opencl): Use opencl_value_cast instead of
6287 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6288 in order to use opencl_value_cast.
6289
843b20dc
YQ
62902013-01-25 Yao Qi <yao@codesourcery.com>
6291
6292 * event-loop.c: Include "queue.h".
6293 (gdb_event_p): New typedef.
6294 (DECLARE_QUEUE_P): Use.
6295 (DEFINE_QUEUE_P): Use.
6296 (async_queue_event): Remove.
6297 (gdb_event_xfree): New.
6298 (initialize_event_loop): New.
6299 (process_event): Use QUEUE macros.
6300 (event_queue): Remove.
6301 (gdb_wait_for_event): Caller update.
6302 (check_async_event_handlers): Likewise.
6303 (poll_timers): Likewise.
6304 * event-loop.h (initialize_event_loop): Declare.
6305 * event-loop.c (gdb_event_xfree): New.
6306 * top.c (gdb_init): Call initialize_event_loop.
6307
20ad8856
YQ
63082013-01-25 Yao Qi <yao@codesourcery.com>
6309
6310 * event-loop.c (async_queue_event): Remove one parameter
6311 'position'. Remove code handling 'position' == TAIL.
6312 (gdb_wait_for_event): Caller update.
6313 (check_async_event_handlers): Caller update.
6314 (poll_timers): Caller update.
6315 * event-loop.h (enum queue_position): Remove.
6316
3bbbe775
MK
63172013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
6318
6319 * MAINTAINERS: Update my email.
6320
a87d9ac4
YQ
63212013-01-25 Yao Qi <yao@codesourcery.com>
6322
6323 * main.c (print_gdb_help): Remove "--epoch" from the help
6324 message.
6325
2077afdd
TD
63262013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
6327
6328 * symtab.c (skip_prologue_using_sal): Consider a file
6329 change the same as an increased line number
6330
63da4037
TD
63312013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6332
30e8ee25 6333 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 6334
45e6c716
TT
63352013-01-24 Tom Tromey <tromey@redhat.com>
6336
6337 * ada-lang.h (ada_decode_symbol): Make return type const.
6338 * ada-lang.c (ada_decode_symbol): Likewise.
6339
b1ae631a
DE
63402013-01-23 Doug Evans <dje@google.com>
6341
6342 * linespec.c (find_linespec_symbols): Make static.
6343
55a78401
SDJ
63442013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6345
6346 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6347 type on float conversion for complex type.
6348
bea883fd
SCR
63492013-01-23 Siva Chandra Reddy <sivachandra@google.com>
6350
6351 Add a new class gdb.Architecture which exposes GDB's
6352 internal representation of architecture via GDB Python API.
6353 * Makefile.in: Add entries corresponding to the new file
6354 python/py-arch.c.
6355 * NEWS (Python Scripting): Add entries for the new class
6356 gdb.Architecture and the new method gdb.Frame.architecture.
6357 * python/py-arch.c: Implement gdb.Architecture class.
6358 * python/py-frame.c (frapy_arch): Implement the method
6359 gdb.Frame.architecture().
6360 (frame_object_methods): Add 'architecture' to the method table.
6361 * python/python-internal.h: Add declarations of new utility
6362 functions.
6363 * python/python.c (_initialize_python): Initialize
6364 gdb.Architecture class.
6365
796a7ff8
DE
63662013-01-23 Doug Evans <dje@google.com>
6367
6368 Work around binutils/15021.
6369 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6370 type_unit_group out of union s. All uses updated.
6371 (read_index_from_section): Watch for index version 8.
6372 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6373 an imported symtab.
6374 (write_psymtabs_to_index): Increment version number to 8.
6375
0928e93d
PA
63762013-01-22 Pedro Alves <palves@redhat.com>
6377
6378 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6379 user-visible.
6380
9c97429f
PA
63812013-01-22 Pedro Alves <palves@redhat.com>
6382
6383 * annotate.c (annotate_breakpoints_changed): Rename to ...
6384 (annotate_breakpoints_invalid): ... this. Make static.
6385 (breakpoint_changed): Adjust.
6386 (_initialize_annotate): Always install the observers. Install a
6387 "breakpoint_created" observer.
6388 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6389 * breakpoint.c (set_breakpoint_condition)
6390 (breakpoint_set_commands, do_map_commands_command)
6391 (init_raw_breakpoint, clear_command, set_ignore_count)
6392 (enable_breakpoint_disp): No longer call
6393 annotate_breakpoints_changed.
6394
bd00c694
PA
63952013-01-22 Pedro Alves <palves@redhat.com>
6396
6397 * annotate.c: Include "inferior.h".
6398 (frames_invalid_emitted)
6399 (breakpoints_invalid_emitted): New globals.
6400 (async_background_execution_p): New function.
6401 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6402 emitting the annotation if it has already been emitted.
6403 (annotate_display_prompt): New function.
6404 * annotate.h (annotate_display_prompt): New declaration.
6405 * event-top.c: Include annotate.h.
6406 (display_gdb_prompt): Call annotate_display_prompt.
6407
187d10dd
PA
64082013-01-22 Pedro Alves <palves@redhat.com>
6409
6410 * annotate.c (ignore_count_changed): Delete.
6411 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6412 (annotate_ignore_count_change): Delete.
6413 (annotate_stopped): Don't emit a delayed breakpoints-changed
6414 annotation.
6415 * annotate.h (annotate_ignore_count_change): Delete.
6416 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6417 annotate_ignore_count_change.
6418
d84cf7eb
TT
64192013-01-22 Tom Tromey <tromey@redhat.com>
6420
6421 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6422 require_rvalue for a register location.
6423
8f1d5693
MK
64242013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6425
6426 * breakpoint.c (print_one_breakpoint_location): Add MI
6427 field 'thread-groups' when printing a breakpoint.
6428 (output_thread_groups): New function.
6429
aa6199c6
SCR
64302013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6431
6432 * python/lib/gdb/commands/explore.py
6433 (CompoundExplorer.explore_expr): Correct the name of a method
6434 being invoked.
6435 (ExploreTypeCommand.invoke): Add a missing 'return'.
6436
d2afef13
TT
64372013-01-21 Tom Tromey <tromey@redhat.com>
6438
6439 * gdb_obstack.h (obconcat): Move declaration here, from...
6440 * symfile.h (obconcat): ... here.
6441 * gdb_obstack.c: New file.
6442 (obconcat): Move from...
6443 * symfile.c (obconcat): ... here.
6444 * Makefile.in (SFILES): Add gdb_obstack.c.
6445 (COMMON_OBS): Add gdb_obstack.o.
6446
10f0c4bb
TT
64472013-01-21 Tom Tromey <tromey@redhat.com>
6448
6449 * symfile.h (obsavestring): Don't declare.
6450 * symfile.c (obsavestring): Remove.
6451 * ada-exp.y: Use obstack_copy0, not obsavestring.
6452 * ada-lang.c: Use obstack_copy0, not obsavestring.
6453 * coffread.c: Use obstack_copy0, not obsavestring.
6454 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6455 * dbxread.c: Use obstack_copy0, not obsavestring.
6456 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6457 * jit.c: Use obstack_copy0, not obsavestring.
6458 * mdebugread.c: Use obstack_copy0, not obsavestring.
6459 * psymtab.c: Use obstack_copy0, not obsavestring.
6460 * stabsread.c: Use obstack_copy0, not obsavestring.
6461 * xcoffread.c: Use obstack_copy0, not obsavestring.
6462
86f62fd7
TT
64632013-01-21 Tom Tromey <tromey@redhat.com>
6464
6465 * dwarf2read.c (fixup_go_packaging): Save package name
6466 on objfile obstack.
6467 * gdbtypes.c (init_type): Don't copy name.
6468
15d034d0
TT
64692013-01-21 Tom Tromey <tromey@redhat.com>
6470
6471 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6472 const.
6473 (struct attribute) <u.str>: Now const.
6474 (struct fnfieldlist) <name>: Now const.
6475 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6476 (partial_die_parent_scope): Make return type const.
6477 (partial_die_full_name, add_partial_symbol): Update.
6478 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6479 'name' const.
6480 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6481 (read_file_scope, read_func_scope, dwarf2_add_field)
6482 (dwarf2_add_member_fn, read_structure_type)
6483 (process_enumeration_scope, read_array_type, read_module_type)
6484 (read_base_type, read_subrange_type): Update.
6485 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6486 (new_symbol_full, guess_full_die_structure_name): Update.
6487 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6488 (dwarf2_name): Return const type.
6489 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6490 const.
6491
748e18ae
TT
64922013-01-21 Tom Tromey <tromey@redhat.com>
6493
6494 * gdbtypes.c (init_type): Make 'name' const.
6495 * gdbtypes.h (init_type): Update.
6496
46212e0b
TT
64972013-01-21 Tom Tromey <tromey@redhat.com>
6498
6499 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6500 (start_symtab): Make 'name' and 'dirname' const. Use
6501 set_last_source_file.
6502 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6503 (last_source_file): Define. Now static.
6504 (set_last_source_file, get_last_source_file): New functions.
6505 * buildsym.h (last_source_file): Don't declare.
6506 (start_symtab): Update.
6507 (set_last_source_file, get_last_source_file): Declare.
6508 * coffread.c (complete_symtab): Use set_last_source_file.
6509 (coff_end_symtab): Likewise.
6510 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6511 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6512 set_last_source_file.
6513 (process_one_symbol): Use get_last_source_file.
6514 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6515 (psymtab_to_symtab_1): Use get_last_source_file.
6516 * xcoffread.c (process_linenos): Use get_last_source_file.
6517 (complete_symtab): Use set_last_source_file.
6518 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6519 (scan_xcoff_symtab): Use set_last_source_file.
6520
9d2ceabe
TT
65212013-01-21 Tom Tromey <tromey@redhat.com>
6522
6523 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6524 (symbol_set_names): Remove casts. Handle field const-ness.
6525
cfc594ee
TT
65262013-01-21 Tom Tromey <tromey@redhat.com>
6527
6528 * dwarf2read.c (new_symbol_full): Remove cast.
6529 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6530 * symtab.h (symbol_set_demangled_name): Update.
6531
5484b13a
TT
65322013-01-21 Tom Tromey <tromey@redhat.com>
6533
6534 * main.c (captured_main): Call bfd_init.
6535
1605ef26
TT
65362013-01-21 Tom Tromey <tromey@redhat.com>
6537
6538 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6539 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6540 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6541 * NEWS: Update.
6542
3b74cdc3
JK
65432013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6546
5a352474
JK
65472013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6548
6549 Fix gdb.fortran/common-block.exp crash in PIE mode.
6550 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6551 LOC_COMMON_BLOCK.
6552 * f-valprint.c (info_common_command_for_block): Expect
6553 LOC_COMMON_BLOCK in gdb_assert.
6554 * symtab.h (struct general_symbol_info): Update comment for the
6555 common_block member.
6556 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6557 (enum address_class): New member LOC_COMMON_BLOCK.
6558
c60797fd
DB
65592013-01-18 David Blaikie <dblaikie@gmail.com>
6560
6561 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 6562
46f35228
TT
65632013-01-18 Tom Tromey <tromey@redhat.com>
6564
6565 PR c++/14999:
6566 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6567 Call require_rvalue.
6568
257e7a09
YQ
65692013-01-18 Yao Qi <yao@codesourcery.com>
6570
6571 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6572 (dbx_read_symtab): New declaration.
6573 (dbx_psymtab_to_symtab): Delete.
6574 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6575 Rename parameter PST to SELF. Exchanged two parameters.
6576 (start_psymtab): Caller update.
6577 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6578 (dwarf2_read_symtab): New declaration.
6579 (dwarf2_psymtab_to_symtab): Delete.
6580 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6581 Rename parameter PST to SELF. Exchanged two parameters.
6582 (create_partial_symtab): Caller update.
6583 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6584 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6585 Rename parameter PST to SELF. Exchanged two parameters.
6586 (parse_partial_symbols, new_psymtab): Caller update.
6587 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6588 two parameters.
6589 * psymtab.c (psymtab_to_symtab): Caller update.
6590 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6591 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6592 Rename parameter PST to SELF. Exchanged two parameters.
6593 (xcoff_start_psymtab): Caller update.
6594
0de5618e
YQ
65952013-01-18 Yao Qi <yao@codesourcery.com>
6596
6597 * infrun.c (proceed): Rename local variable 'oneproc' to
6598 'force_step'.
6599
5c04624b
DE
66002013-01-17 Doug Evans <dje@google.com>
6601
848e3e78
DE
6602 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6603 (dw2_build_type_unit_groups): Delete. All uses updated.
6604
5c04624b
DE
6605 * symtab.h (struct symbol_search): Add comment.
6606
d84fca2c
JK
66072013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6608
6609 * symtab.c (compare_filenames_for_search): New comment for
6610 HAS_DRIVE_SPEC.
6611
6108433d
TT
66122013-01-17 Tom Tromey <tromey@redhat.com>
6613
6614 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6615
c89ffd86
JK
66162013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6617
6618 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6619 initialize it by existing make_cleanup. Call new do_cleanups.
6620
db2b2972
TT
66212013-01-17 Tom Tromey <tromey@redhat.com>
6622
6623 * cp-abi.c (cp_abi_completer): New function.
6624 (_initialize_cp_abi): Set completer for "set cp-abi".
6625
be7d37a2
TT
66262013-01-17 Tom Tromey <tromey@redhat.com>
6627
6628 * mem-break.c: Remove obsolete comment.
6629 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6630
c9fb1240
SD
66312012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6632
6633 * jit.c (jit_reader_load_command): Interpret the jit reader name
6634 as an absolute path if it begins with a forward slash.
6635
db334a01
SD
66362012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6637
6638 PR gdb/14550
6639
6640 * jit.c (finalize_symtab): Ensure that only the global block has a
6641 NULL superblock.
6642
7d928dac
PA
66432013-01-17 Pedro Alves <palves@redhat.com>
6644
6645 * acinclude.m4: Include ../config/plugins.m4,
6646 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
6647 * Makefile.in (aclocal_m4_deps): Update.
6648 * aclocal.m4: Renegerate.
6649
fb8cf7c5
DE
66502013-01-16 Doug Evans <dje@google.com>
6651
6652 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6653
ab04a2af
TT
66542013-01-16 Pedro Alves <palves@redhat.com>
6655 Tom Tromey <tromey@redhat.com>
6656
6657 PR cli/7221:
6658 * NEWS: Add "catch signal".
6659 * breakpoint.c (base_breakpoint_ops): No longer static.
6660 (bpstat_explains_signal): New function.
6661 (init_catchpoint): No longer static.
6662 (base_breakpoint_explains_signal): New function.
6663 (base_breakpoint_ops): Initialize new field.
6664 * breakpoint.h (enum bpstat_signal_value): New.
6665 (struct breakpoint_ops) <explains_signal>: New field.
6666 (bpstat_explains_signal): Remove macro, declare as function.
6667 (base_breakpoint_ops, init_catchpoint): Declare.
6668 * break-catch-sig.c: New file.
6669 * inferior.h (signal_catch_update): Declare.
6670 * infrun.c (signal_catch): New global.
6671 (handle_syscall_event): Update for change to
6672 bpstat_explains_signal.
6673 (handle_inferior_event): Likewise. Always handle random signals
6674 via bpstats.
6675 (signal_cache_update): Check signal_catch.
6676 (signal_catch_update): New function.
6677 (_initialize_infrun): Initialize signal_catch.
6678 * Makefile.in (SFILES): Add break-catch-sig.c.
6679 (COMMON_OBS): Add break-catch-sig.o.
6680
8ac3646f
TT
66812013-01-16 Tom Tromey <tromey@redhat.com>
6682
6683 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6684 (print_one_catch_solib, print_one_catch_syscall)
6685 (print_one_catch_exec, print_one_exception_catchpoint): Emit
6686 "catch-type".
6687
5a18e302
YQ
66882013-01-16 Yao Qi <yao@codesourcery.com>
6689
6690 * printcmd.c (current_display_number): Make it static.
6691
3f01d0d0
YQ
66922013-01-16 Yao Qi <yao@codesourcery.com>
6693
6694 * infcmd.c (step_once): Don't check '!single_inst' as it was
6695 checked before.
6696
1ed59174
JK
66972013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6700
44478ab3
TT
67012013-01-14 Tom Tromey <tromey@redhat.com>
6702
6703 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6704 set command.
6705 * command.h (add_setshow_string_noescape_cmd): Update.
6706 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6707 (complete_set_gnutarget): New function.
6708 (_initialize_core): Set the "set gnutarget" completer.
6709
06d66ee9
TT
67102013-01-14 Tom Tromey <tromey@redhat.com>
6711
6712 PR symtab/14442:
6713 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6714 (c_type_print_modifier): Likewise.
6715 * dwarf2read.c (read_tag_restrict_type): New function.
6716 (read_type_die_1): Handle DW_TAG_restrict_type.
6717 * gdbtypes.c (make_restrict_type): New function.
6718 (recursive_dump_type): Handle TYPE_RESTRICT.
6719 * gdbtypes.h (enum type_flag_values): Renumber.
6720 (enum type_instance_flag_value): Add
6721 TYPE_INSTANCE_FLAG_RESTRICT.
6722 (TYPE_RESTRICT): New macro.
6723 (make_restrict_type): Declare.
6724
c9bf0622
TT
67252013-01-14 Tom Tromey <tromey@redhat.com>
6726
6727 PR symtab/14931:
6728 * psymtab.c (struct psymtab_state): New.
6729 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6730 functions.
6731 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6732 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6733
44d594fd
PA
67342013-01-14 Richard Sharman <richard_sharman@mitel.com>
6735 Pedro Alves <palves@redhat.com>
6736
6737 PR remote/14786
6738
6739 * remote.c (remote_threads_info): Make a copy of the reply from
6740 qfThreadInfo and use that instead of rs->buf.
6741
442e4d9c
YQ
67422013-01-14 Yao Qi <yao@codesourcery.com>
6743
6744 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6745 (dbx_psymtab_to_symtab): Likewise.
6746 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6747 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6749
5b12a61c
JK
67502013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6751
6752 * parse.c (parse_exp_in_context): New variable inner_chain. Call
6753 make_cleanup_restore_current_language. Call set_language. Move
6754 OLD_CHAIN and INNER_CHAIN cleanups.
6755 * utils.c (do_restore_current_language)
6756 (make_cleanup_restore_current_language): New functions.
6757 * utils.h (make_cleanup_restore_current_language): New declaration.
6758
f0a4b570
JK
67592013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6760
6761 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6762 non-existing files.
6763
57b3c00c
JK
6764 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6765 non-existing files if FILENAME is already absolute.
6766
daefa854
JK
67672013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6768
6769 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6770 fputs_filtered. Append trailing newline.
6771
ca9c6ee2
YQ
67722013-01-11 Yao Qi <yao@codesourcery.com>
6773 Stan Shebs <stan@codesourcery.com>
6774
6775 * psymtab.c (init_psymbol_list): Clarify the comment.
6776
f28045c2
YQ
67772013-01-11 Yao Qi <yao@codesourcery.com>
6778
6779 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6780 (update_dprintf_command_list): Assert that 'printf_line' is
6781 non-null. Remove condition check.
6782
da5132d3
JK
67832013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6784
6785 Code cleanup.
6786 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6787 type const char *.
6788 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6789 const char *.
6790 * tui/tui-source.h (tui_source_is_displayed): Likewise.
6791
843e694d
AG
67922013-01-09 Anthony Green <green@moxielogic.com>
6793
6794 * cp-abi.c (cplus_print_vtable): Don't return value from void
6795 function.
6796 * ada-lang.c (re_set_catch_assert): Ditto.
6797
da51c347
DE
67982013-01-09 Doug Evans <dje@google.com>
6799
6800 * symfile.h (quick_symbol_functions): Delete member
6801 pre_expand_symtabs_matching. All uses removed.
6802 * dwarf2read.c (dw2_lookup_symbol): Implement.
6803 (dw2_do_expand_symtabs_matching): Delete.
6804 (dw2_pre_expand_symtabs_matching): Delete.
6805 (struct dw2_symtab_iterator): New type.
6806 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6807 (dw2_expand_symtabs_for_function): Rewrite.
6808 (dwarf2_gdb_index_functions): Update.
6809 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6810 (psym_functions): Update.
6811
b2259038
TT
68122013-01-09 Tom Tromey <tromey@redhat.com>
6813
6814 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6815 * configure: Rebuild.
6816 * configure.ac: Add somread.o to the build if BFD has SOM
6817 support.
6818 * somread.c: Include som/aout.h, not syms.h.
6819 (som_symtab_read): Use som_external_symbol_dictionary_record.
6820 Unpack records manually.
6821 (_initialize_somread): Declare.
6822
bdad4180
MF
68232012-01-08 Mike Frysinger <vapier@gentoo.org>
6824
6825 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6826 Cast return_address to 64bits.
6827
03cdf680
HZ
68282013-01-08 Hui Zhu <hui_zhu@mentor.com>
6829
6830 * printcmd.c: Remove define of function output_command.
6831 * tracepoint.c: Remove extern of function output_command.
6832 * valprint.h: (output_command): New extern.
6833
8a808554
TT
68342013-01-07 Tom Tromey <tromey@redhat.com>
6835
6836 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6837 Remove.
6838 (objc_language_defn): Use c_printchar, c_printstr,
6839 c_emit_char.
6840
e93a8774
TT
68412013-01-07 Tom Tromey <tromey@redhat.com>
6842
6843 PR cli/7719:
6844 * NEWS: Update.
6845 * ada-valprint.c (printstr, print_field_values): Remove
6846 "inspect_it" code.
6847 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6848 code.
6849 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6850 code.
6851 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6852 * main.c (captured_main): Remove "epoch" argument.
6853 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6854 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6855 * p-valprint.c (pascal_object_print_value_fields): Remove
6856 "inspect_it" code.
6857 * printcmd.c (print_command_1): Remove 'inspect' argument.
6858 (print_command, call_command): Update.
6859 (inspect_command): Remove.
6860 (_initialize_printcmd): Make "inspect" an alias for "print".
6861 * top.c (epoch_interface): Remove.
6862 * top.h (epoch_interface): Remove.
6863 * valprint.c (user_print_options): Update.
6864 (print_converted_chars_to_obstack): Remove "inspect_it" code.
6865 * valprint.h (struct value_print_options) <inspect_it>: Remove
6866 field.
6867
68682013-01-04 Tom Tromey <tromey@redhat.com>
6869
6870 * valprint.h (read_string): Add 'extern'.
6871
b967eb24
JB
68722013-01-07 Joel Brobecker <brobecker@adacore.com>
6873
6874 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6875 used to decide whether to define darwin_read_dyld_info or not.
6876
78a8b30e
PM
68772013-01-03 Pierre Muller <muller@sourceware.org>
6878
6879 * main.c (relocate_gdb_directory): Avoid calling stat function
6880 if DIR is empty.
6881
50da2f25
YQ
68822013-01-03 Yao Qi <yao@codesourcery.com>
6883
6884 * psymtab.c (fixup_psymbol_section): Update declaration.
6885 (fixup_psymbol_section): Remove code returning value.
6886
e7e8980f
YQ
68872013-01-03 Yao Qi <yao@codesourcery.com>
6888
6889 * symtab.h: Remove some out of date comments.
6890 (enum exception_event_kind): Move it ...
6891 * breakpoint.c: ... here.
6892
569283d4
MF
68932013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6894
9f9d9a96 6895 PR gdb/14405
569283d4
MF
6896 * darwin-nat.c (darwin_read_dyld_info): Only build if
6897 TASK_DYLD_INFO_COUNT is defined.
6898 (darwin_xfer_partial): Call darwin_read_dyld_info only if
6899 TASK_DYLD_INFO_COUNT is defined.
6900
2e36fbea
TT
69012013-01-02 Tom Tromey <tromey@redhat.com>
6902
6903 * symfile.h (struct ecoff_debug_hack): Remove.
6904 * objfiles.c: Don't include mdebugread.h.
6905
4f05add4
TT
69062013-01-02 Tom Tromey <tromey@redhat.com>
6907
6908 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
6909 * configure.ac: Check for Mach-O support in BFD. Update
6910 CONFIG_OBS.
6911 * configure: Rebuild.
6912
def63ff0
TT
69132013-01-02 Tom Tromey <tromey@redhat.com>
6914
6915 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
6916 * configure.ac: Use GDB_AC_CHECK_BFD.
6917 * configure: Rebuild.
6918
60c5dd93
MK
69192013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6920
6921 * MAINTAINERS: Update my email.
6922
6e58437e
JB
69232013-01-01 Joel Brobecker <brobecker@adacore.com>
6924
6925 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
6926
627fe805
JB
69272013-01-01 Joel Brobecker <brobecker@adacore.com>
6928
6929 * rs6000-nat.c (bss_data_overlap): New function.
6930 (vmap_symtab): Use it to adjust the .bss section's offset.
6931
28e7fd62
JB
69322013-01-01 Joel Brobecker <brobecker@adacore.com>
6933
6934 Update year range in copyright notice of all files.
6935
e93a8774 69362013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
6937
6938 * top.c (print_gdb_version): Update copyright year.
6939
72b20e9c 6940For older changes see ChangeLog-2012.
c906108c
SS
6941\f
6942Local Variables:
6943mode: change-log
6944left-margin: 8
6945fill-column: 74
6946version-control: never
57da7796 6947coding: utf-8
c906108c 6948End:
This page took 1.776724 seconds and 4 git commands to generate.