b8f01c2547c4675cf42077f8fd73d72b7845e033
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2
3 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
4 "enabled".
5 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
6 "enabled". Set B->ENABLE_STATE accordingly.
7 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
8 ada-lang.c.
9 (create_ada_exception_catchpoint): Add declaration.
10 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
11 (create_ada_exception_catchpoint): Make non-static. Add new
12 parameter "disabled". Use it in call to
13 init_ada_exception_breakpoint.
14 (catch_ada_exception_command): Add parameter "enabled" in call
15 to create_ada_exception_catchpoint.
16 (catch_assert_command): Likewise.
17
18 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
19 Add declarations.
20 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
21 "catch-exception" commands.
22 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
23 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
24
25 2013-10-11 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
28 "enum exception_catchpoint_kind". Replace the "ex_" prefix
29 of all its enumerates with "ada_". Update the rest of this
30 file throughout.
31
32 2013-10-11 Joel Brobecker <brobecker@adacore.com>
33
34 * ada-lang.c (ada_decode_exception_location): Delete.
35 (create_ada_exception_catchpoint): Remove arguments "sal",
36 "addr_string" and "ops". Add argument "ex_kind" instead.
37 Adjust implementation accordingly, calling ada_exception_sal
38 to get the entities it no longer gets passed as arguments.
39 Document the function's arguments.
40 (catch_ada_exception_command): Use catch_ada_exception_command_split
41 instead of ada_decode_exception_location, and update call to
42 create_ada_exception_catchpoint.
43 (catch_ada_assert_command_split): Renames
44 ada_decode_assert_location. Remove parameters "addr_string" and
45 "ops", and now returns void. Adjust implementation accordingly.
46 Update the function documentation.
47 (catch_assert_command): Use catch_ada_assert_command_split
48 instead of ada_decode_assert_location. Update call to
49 create_ada_exception_catchpoint.
50
51 2013-10-11 Joel Brobecker <brobecker@adacore.com>
52
53 * utils.h (perror_warning_with_name): Add declaration.
54 * utils.c (perror_warning_with_name): New function.
55 * cli/cli-cmds.c (source_script_with_search): Add call to
56 perror_warning_with_name if from_tty is nul.
57
58 2013-10-11 Joel Brobecker <brobecker@adacore.com>
59
60 * utils.c (perror_string): New function, extracted out of
61 throw_perror_with_name.
62 (throw_perror_with_name): Rework to use perror_string.
63
64 2013-10-11 Yao Qi <yao@codesourcery.com>
65
66 * remote.c (discard_pending_stop_replies_in_queue): Update
67 declaration.
68 (struct stop_reply) <rs>: New field.
69 (remove_stop_reply_of_remote_state): New function.
70 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
71 Callers update. Pass remove_stop_reply_of_remote_state to
72 QUEUE_iterate.
73 (remote_parse_stop_reply): Initialize field 'rs'.
74
75 2013-10-10 Will Newton <will.newton@linaro.org>
76
77 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
78 linux_init_abi.
79
80 2013-10-10 Joel Brobecker <brobecker@adacore.com>
81
82 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
83 serial_baud_show_cmd.
84 (_initialize_cli_cmds): Delete the code creating the
85 "set/show remotebaud" commands.
86 * serial.c (baud_rate): Move here from top.c.
87 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
88 (_initialize_serial): Create "set/show serial baud" commands.
89 Add "set/show remotebaud" command aliases.
90 * top.c (baud_rate): Moved to serial.c.
91 * NEWS: Document the new "set/show serial baud" commands,
92 replacing "set/show remotebaud".
93
94 2013-10-09 Pedro Alves <palves@redhat.com>
95
96 * breakpoint.c (insert_bp_location): Use memory_error_message to
97 build the memory error string.
98 * c-lang.c: Include "gdbcore.h".
99 (c_get_string): Use memory_error to throw error.
100 (target_xfer_memory_error): Delete.
101 (memory_error_message): New, factored out from
102 target_xfer_memory_error.
103 (memory_error): Change parameter type to target_xfer_error.
104 Rewrite.
105 (read_memory): Use memory_error instead of
106 target_xfer_memory_error.
107 * gdbcore.h: Include "target.h".
108 (memory_error): Change parameter type to target_xfer_error.
109 (memory_error_message): Declare function.
110 * target.c (target_read_memory, target_read_stack)
111 (target_write_memory, target_write_raw_memory): Return
112 TARGET_XFER_E_IO on error. Adjust comments.
113 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
114 instead of EIO.
115 * target.h (target_read, target_insert_breakpoint)
116 (target_remove_breakpoint): Adjust comments.
117 * valprint.c (partial_memory_read): Rename parameter, and adjust
118 comment.
119 (val_print_string): Use memory_error_message to build the memory
120 error string.
121
122 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
125 result variable. Rename variable fopen_e_ever_failed to
126 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
127
128 2013-10-09 Pedro Alves <palves@redhat.com>
129
130 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
131 (monitor_write_memory_longlongs, monitor_write_memory_block):
132 Constify 'myaddr' parameter.
133 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
134 helper.
135 (monitor_xfer_partial): New function.
136 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
137 hook. Install a to_xfer_partial hook.
138
139 2013-10-09 Tom Tromey <tromey@redhat.com>
140
141 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
142 bfd_get_alt_debug_link_info.
143
144 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 New flag OBJF_NOT_FILENAME.
147 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
148 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
149 allocate_objfile.
150 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
151 symbol_file_add_from_bfd.
152 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
153 allocate_objfile.
154 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
155 NULL.
156 * objfiles.h (OBJF_NOT_FILENAME): New.
157
158 2013-10-08 Tom Tromey <tromey@redhat.com>
159
160 * Makefile.in (SFILES): Add build-id.c.
161 (HFILES_NO_SRCDIR): Add build-id.h.
162 * build-id.c: New file, largely from elfread.c. Modified
163 most functions.
164 * build-id.h: New file.
165 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
166 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
167 Search for dwz file using build-id.
168 * elfread.c (build_id_bfd_get, build_id_verify)
169 (build_id_to_debug_filename, find_separate_debug_file): Remove.
170
171 2013-10-08 Joel Brobecker <brobecker@adacore.com>
172
173 * ada-lang.c (compare_names_with_case): Renamed from
174 compare_names, adding a new parameter "casing" and its handling.
175 New function documentation.
176 (compare_names): New function, implemented using
177 compare_names_with_case.
178
179 2013-10-08 Joel Brobecker <brobecker@adacore.com>
180
181 * ada-lang.c (ada_exception_sal): Remove advance declaration.
182
183 2013-10-07 Tom Tromey <tromey@redhat.com>
184
185 * objfiles.c (free_objfile_per_bfd_storage): Delete the
186 demangled_names_hash.
187 (free_objfile): Don't delete the demangled_names_hash.
188 * objfiles.h (struct objfile_per_bfd_storage)
189 <demangled_names_hash>: New field.
190 (struct objfile) <demangled_names_hash>: Move to
191 objfile_per_bfd_storage.
192 * symfile.c (reread_symbols): Don't delete the
193 demangled_names_hash.
194 * symtab.c (create_demangled_names_hash): Update.
195 (symbol_set_names): Update.
196
197 2013-10-07 Tom Tromey <tromey@redhat.com>
198
199 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
200 needs_relocations>: New fields.
201 (gdb_bfd_requires_relocations): New function.
202 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
203 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
204 the BFD needs relocations applied.
205
206 2013-10-07 Pedro Alves <palves@redhat.com>
207
208 PR breakpoints/11568
209 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
210 the thread list" instead of "gone".
211
212 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
213
214 * NEWS: Mention new convenience variable $_exitsignal.
215 * corelow.c (core_open): Reset exit convenience variables. Set
216 $_exitsignal to the uncaught signal which generated the corefile.
217 * infrun.c (handle_inferior_event): Reset exit convenience
218 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
219 (clear_exit_convenience_vars): New function.
220 * inferior.h (clear_exit_convenience_vars): New prototype.
221
222 2013-10-06 Yao Qi <yao@codesourcery.com>
223
224 * varobj.h: Add comments to enum varobj_languages.
225
226 2013-10-04 Doug Evans <dje@google.com>
227
228 Add support for DWP file format version 2.
229 * NEWS: Mention support for DWP file format version 2.
230 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
231 union of asection, containing_section. New fields virtual_offset
232 and is_virtual. Change type of readin filed from int to char.
233 (dwo_sections, dwo_file): Tweak comments.
234 (dwp_v2_section_ids): New enum.
235 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
236 str_offsets, types.
237 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
238 All uses updated.
239 (virtual_v2_dwo_sections): New struct.
240 (dwp_hash_table): New fields version, nr_columns. Change type of
241 section_pool field to a union.
242 (dwp_file): New field version.
243 (dwarf2_has_info): Check for virtual sections.
244 (get_containing_section): New function.
245 (get_section_bfd_owner, get_section_bfd_section): Call it.
246 (dwarf2_locate_sections): Update.
247 (dwarf2_section_empty_p): Update.
248 (dwarf2_read_section): Handle virtual sections.
249 (locate_dwz_sections): Update.
250 (create_dwp_hash_table): Document and handle V2 format.
251 (locate_v1_virtual_dwo_sections): Renamed from
252 locate_virtual_dwo_sections and update. All callers updated.
253 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
254 Delete arg htab. Rename arg section_index to unit_index.
255 All callers updated.
256 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
257 All uses updated.
258 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
259 (lookup_dwo_unit_in_dwp): Add V2 support.
260 (dwarf2_locate_dwo_sections): Update.
261 (dwarf2_locate_common_dwp_sections): Renamed from
262 dwarf2_locate_dwp_sections and update. All callers updated.
263 (dwarf2_locate_v2_dwp_sections): New function.
264 (open_and_init_dwp_file): Add V2 support.
265 (read_str_index): New locals str_section, str_offsets_section.
266
267 2013-10-04 Pedro Alves <palves@redhat.com>
268
269 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
270 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
271 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
272 describing comments with references to ptid.h.
273 * common/ptid.h: Remove intro description of constructors,
274 accessors and predicates.
275 (struct ptid): Reformat.
276 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
277 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
278 describing comments.
279
280 2013-10-04 Joel Brobecker <brobecker@adacore.com>
281
282 * aix-thread.c (sync_threadlists): Add missing ')' in call
283 to ptid_build.
284
285 2013-10-04 Joel Brobecker <brobecker@adacore.com>
286
287 * procfs.c (procfs_init_inferior): Fix typo causing the build
288 to fail.
289
290 2013-10-04 Joel Brobecker <brobecker@adacore.com>
291
292 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
293
294 2013-10-04 Joel Brobecker <brobecker@adacore.com>
295
296 * mi/mi-main.c (run_one_inferior): Add function description.
297 Make ARG a pointer to an integer whose value determines whether
298 we should "run" or "start" the program.
299 (mi_cmd_exec_run): Add handling of the "--start" option.
300 Reject all other command-line options.
301 * NEWS: Add entry for "-exec-run"'s new "--start" option.
302
303 2013-10-04 Yao Qi <yao@codesourcery.com>
304
305 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
306 (struct notif_client) <pending_event>: Moved
307 to struct remote_notif_state.
308 <id>: New field.
309 (struct remote_notif_state) <pending_event>: New field.
310 (notif_event_xfree): Declare.
311 * remote-notif.c (handle_notification): Adjust.
312 (notif_event_xfree): New function.
313 (do_notif_event_xfree): Call notif_event_xfree.
314 (remote_notif_state_xfree): Call notif_event_xfree to free
315 each element in field pending_event.
316 * remote.c (discard_pending_stop_replies): Remove declaration.
317 (discard_pending_stop_replies_in_queue): Declare.
318 (remote_close): Call discard_pending_stop_replies_in_queue
319 instead of discard_pending_stop_replies.
320 (remote_start_remote): Adjust.
321 (stop_reply_xfree): Call notif_event_xfree.
322 (notif_client_stop): Adjust initialization.
323 (remote_notif_remove_all): Rename it to ...
324 (remove_stop_reply_for_inferior): ... this. Update comments.
325 Don't check INF is NULL.
326 (discard_pending_stop_replies): Return early if notif_state is
327 NULL. Adjust. Don't check INF is NULL.
328 (remote_notif_get_pending_events): Adjust.
329 (discard_pending_stop_replies_in_queue): New function.
330 (remote_wait_ns): Likewise.
331
332 2013-10-04 Yao Qi <yao@codesourcery.com>
333
334 * remote-notif.c (DECLARE_QUEUE_P): Remove.
335 (notif_queue): Remove.
336 (remote_notif_process): Add one parameter 'notif_queue'.
337 Update comments. Callers update.
338 (remote_async_get_pending_events_token): Remove.
339 (remote_notif_register_async_event_handler): Remove.
340 (remote_notif_unregister_async_event_handler): Remove.
341 (handle_notification): Add parameter 'notif_queue'. Update
342 comments. Callers update.
343 (notif_xfree): Remove.
344 (remote_notif_state_allocate): New function.
345 (remote_notif_state_xfree): New function.
346 (_initialize_notif): Remove code to allocate queue.
347 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
348 (struct remote_notif_state): New.
349 (handle_notification): Update declaration.
350 (remote_notif_process): Likewise.
351 (remote_notif_register_async_event_handler): Remove.
352 (remote_notif_unregister_async_event_handler): Remove.
353 (remote_notif_state_allocate): Declare.
354 (remote_notif_state_xfree): Declare.
355 * remote.c (struct remote_state) <notif_state>: New field.
356 (remote_close): Don't call
357 remote_notif_unregister_async_event_handler. Call
358 remote_notif_state_xfree.
359 (remote_open_1): Don't call
360 remote_notif_register_async_event_handler. Call
361 remote_notif_state_allocate.
362
363 2013-10-04 Yao Qi <yao@codesourcery.com>
364
365 * varobj.c (create_child_with_value): Remove 'const' from the
366 type of parameter 'name'.
367 (varobj_add_child): Likewise.
368 (install_dynamic_child): Remove 'const' from the type of
369 parameter 'name'.
370 (varobj_add_child): Likewise.
371 (create_child_with_value): Likewise. Update comments. Don't
372 duplicate 'name'.
373 (update_dynamic_varobj_children): Duplicate 'name'
374 and pass it to install_dynamic_child.
375
376 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
377
378 * python/py-value.c (convert_value_from_python): Move PyInt_Check
379 conversion logic to occur after PyLong_Check. Comment on order
380 change significance.
381 * python/py-arch.c (archpy_disassemble): Comment on order of
382 conversion for integers and longs.
383
384 2013-10-03 Pedro Alves <palves@redhat.com>
385
386 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
387 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
388 functions. Always test for PTRACE_O_TRACESYSGOOD even if
389 PTRACE_O_TRACEFORK is not supported.
390 (linux_test_for_tracesysgood): New function.
391 (linux_test_for_tracefork): New function, factored out from
392 linux_check_ptrace_features, and also don't kill child_pid here.
393
394 2013-10-03 Tristan Gingold <gingold@adacore.com>
395
396 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
397 Remove verbose error reporting. Use detected state to
398 thread_set_state call.
399 (i386_darwin_dr_get): Fix return type. Remove verbose error
400 report.
401 Remove trailing spaces.
402
403 2013-10-02 Pedro Alves <palves@redhat.com>
404
405 * cp-valprint.c (cp_print_value_fields): Adjust calls to
406 val_print_optimized_out.
407 * jv-valprint.c (java_print_value_fields): Likewise.
408 * p-valprint.c (pascal_object_print_value_fields): Likewise.
409 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
410 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
411 new optimized out value.
412 * findvar.c (address_from_register): Likewise.
413 * frame.c (put_frame_register): Tweak error string to say the
414 register was not saved, rather than optimized out.
415 * infcmd.c (default_print_one_register_info): Adjust call to
416 val_print_optimized_out. Use value_of_register instead of
417 get_frame_register_value.
418 * mi/mi-main.c (output_register): Use value_of_register instead of
419 get_frame_register_value.
420 * valprint.c (valprint_check_validity): Likewise.
421 (val_print_optimized_out): New value parameter. If the value is
422 lval_register, print <not saved> instead.
423 (value_check_printable, val_print_scalar_formatted): Adjust calls
424 to val_print_optimized_out.
425 * valprint.h (val_print_optimized_out): New value parameter.
426 * value.c (struct value) <optimized_out>: Extend comment.
427 (error_value_optimized_out): New function.
428 (require_not_optimized_out): Use it. Use a different string for
429 lval_register values.
430 * value.h (error_value_optimized_out): New declaration.
431 * NEWS: Mention <not saved>.
432
433 2013-10-02 Joel Brobecker <brobecker@adacore.com>
434
435 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
436 strcmp to compare two symtab filenames.
437
438 2013-10-02 Joel Brobecker <brobecker@adacore.com>
439
440 * symtab.c (search_symbols_equal): Delete.
441 (sort_search_symbols_remove_dups): Replace call to
442 search_symbols_equal by call to compare_search_syms,
443 adjusting as necessary.
444
445 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
446
447 PR python/15579
448
449 * python/python.c: Document gdb.execute command in Python help.
450
451 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
452
453 * python/py-frame.c (frame_info_to_frame_object): Use
454 gdbpy_convert_exception. Clean up Python object on failure.
455
456 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
457
458 * python/lib/gdb/command/frame_filters.py
459 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
460 (ShowFrameFilterPriority.invoke): Ditto.
461
462 2013-10-01 Keith Seitz <keiths@redhat.com>
463
464 * linespec.c (struct ls_parser): Make 'saved_arg' const.
465 (parse_linespec): Make 'argptr' const.
466 Remove temporary cast of 'argptr' to const char **.
467 (decode_line_full): Pass const pointer to parse_linespec.
468 (decode_line_1): Likewise.
469 (decode_objc): Make local variable 'new_argptr' const.
470 (find_function_symbols): Remove temporary cast to char *
471 to find_imps.
472 * objc-lang.c (find_imps): Make argument 'method' const.
473 Return const.
474 * objc-lang.h (find_imps): Likewise.
475
476 2013-10-01 Keith Seitz <keiths@redhat.com>
477
478 * completer.c (skip_quoted_chars): Make all arguments const.
479 Return const.
480 (skip_quoted): Likewise.
481 * completer.h (skip_quoted_chars): Likewise.
482 (skip_quoted): Likewise.
483 * defs.h (skip_quoted): Remove duplicate declaration.
484 * jv-exp.y: Include completer.h.
485 (yylex): Remove unneccessary cast to char * fro skip_quoted.
486 * p-exp.y: Include completer.h.
487
488 2013-10-01 Keith Seitz <keiths@redhat.com>
489
490 * c-exp.y (parse_number): Make first argument const.
491 Make a copy of the input to manipulate.
492 (c_parse_escape): Make first argument const.
493 Make local variable 'tokptr' const.
494 (parse_string_or_char): Make first two arguments const.
495 (macro_original_text): Make const.
496 (lex_one_token): Make local variable 'tokstart' const.
497 Likewise for local variables named 'p'.
498 Cast away const for struct stoken (temporary).
499 * c-lang.h (c_parse_escpae): Make first argument const.
500 * cli/cli-cmds.c (echo_command): Make local variable 'p'
501 const.
502 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
503 var_string case.
504 * f-exp.y (parse_number): Make first argument const.
505 (match_string_literal): Make local variable 'tokstart'
506 const.
507 (yylex): Make local variable 'p' const.
508 Cast away const for struct stoken (temporary).
509 * go-exp.y (parse_number): Make first argument const.
510 (parse_string_or_char): Likewise.
511 Make local variable 'tokstart' const.
512 (lex_one_token): Likewise for numerous locals called 'p'.
513 Cast away const for struct stoken (temporary).
514 * jv-exp.y (parse_number): Make first argument const.
515 Make local variables 'tokstart' and 'tokptr' const.
516 Cast away const for call to skip_quoted (temporary).
517 (yylex): Make local variable 'p' const.
518 Cast away const for struct stoken (temporary).
519 * m2-exp.y (parse_number): Make local variable 'p' const.
520 (yylex): Likewise for 'tokstart'.
521 Cast away const for struct stoken (temporary).
522 Make local variable 'p' const.
523 * macroexp.c (get_character_constant): Pass a const string
524 to c_parse_escape.
525 (get_string_literal): Likewise.
526 (macro_expand_next): Make first argument const.
527 Cast away const for init_shared_buffer.
528 * macroexp.h (macro_expand_next): Make first argument const.
529 * p-exp.y (yylex): Make a local copy of 'lexptr'.
530 Pass a const string to c_parse_escape.
531 Make local variables 'p' and 'namestart' const.
532 * parse.c (lexptr): Make const.
533 (prev_lexptr): Likewise.
534 (find_template_name_end): Return const.
535 Make argument const, too.
536 (parse_exp_in_context): Make first argument const.
537 Remove the entire const_hack.
538 (parse_exp_in_context_1): Make first argument const.
539 * parser-defs.h (find_template_name_end): Return const.
540 Make argument const, too.
541 (lexptr): Make const.
542 (prev_lexptr): Likewise.
543 * utils.c (parse_escape): Make second argument const.
544 * utils.h (parse_escape): Likewise.
545
546 2013-10-01 Keith Seitz <keiths@redhat.com>
547
548 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
549 is now const.
550 (block_lookup): Make 'raw_name' and 'name' const.
551 * ada-lex.l (processString): Update for struct stoken.ptr.
552 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
553 (operator_stoken): Likewise.
554 (lex_one_token): Remove temporary cast to char * for
555 'yylval.sval.ptr'.
556 * f-exp.y (yylex): Likewise.
557 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
558 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
559 * go-exp.y (lex_one_token): Remove temporary cast to char * for
560 'yylval.sval.ptr'.
561 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
562 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
563 * linespec.c (struct ls_parser): Make 'stream' const.
564 (find_parameter_list_end): Make argument 'input' and local
565 variable 'p' const.
566 (linespec_lexer_lex_string): Make local variables 'start' and
567 'p' const.
568 Use skip_spaces_const instead of skip_spaces.
569 (linespec_lexer_peek_token): Make local variable 'saved_stream'
570 const.
571 (parse_linespec): Temporarily cast 'argptr' to const for
572 'parser->lexer.stream'.
573 * m2-exp.y (yylex): Remove temporary cast to char * for
574 'yylval.sval.ptr'.
575 * objc-lang.c (add_msglist): Make local variable 'p' const.
576 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
577 (exp : STRING): Make 'sp' const.
578 (parse_number): Make argument 'p' const.
579 * parser-defs.h (struct stoken): Make 'ptr' const.
580
581 2013-10-01 Doug Evans <dje@google.com>
582
583 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
584
585 2013-10-01 Yao Qi <yao@codesourcery.com>
586
587 * varobj.c (c_value_of_root): Remove declaration.
588 (cplus_value_of_root, java_value_of_root): Likewise.
589 (ada_value_of_root): Likewise.
590 (struct language_specific) <value_of_root>: Remove.
591 (languages): Update initialization.
592 (check_scope): Move earlier.
593 (c_value_of_root): Move earlier and rename to ...
594 (value_of_root_1): ... this.
595 (value_of_root): Caller update.
596 (cplus_value_of_root, java_value_of_root): Remove.
597 (ada_value_of_root): Remove.
598
599 2013-10-01 Yao Qi <yao@codesourcery.com>
600
601 * varobj.c (varobj_format_string): Remove "unknown".
602 (languages): Remove the first element.
603 * varobj.h (enum varobj_languages): Remove vlang_c.
604
605 2013-10-01 Yao Qi <yao@codesourcery.com>
606
607 * varobj.c (struct language_specific) <language>: Remove.
608 (languages): Update the initialization.
609
610 2013-10-01 Yao Qi <yao@codesourcery.com>
611
612 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
613 "solib-target.h". Include "windows-tdep.h".
614 (arm_wince_init_abi): Call windows_init_abi. Remove call to
615 set_solib_ops and set_gdbarch_has_dos_based_file_system.
616 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
617 windows-tdep.o to gdb_target_obs.
618
619 2013-10-01 Yao Qi <yao@codesourcery.com>
620
621 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
622 "solib-target.h".
623 (amd64_windows_init_abi): Don't call set_solib_ops and
624 set_gdbarch_iterate_over_objfiles_in_search_order. Call
625 windows_init_abi instead.
626 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
627 "solib-target.h".
628 (i386_cygwin_init_abi): Don't call set_solib_ops,
629 set_gdbarch_has_dos_based_file_system and
630 set_gdbarch_iterate_over_objfiles_in_search_order. Call
631 windows_init_abi instead.
632 * windows-tdep.c: Include "solib.h" and "solib-target.h".
633 (windows_init_abi): New function.
634 (windows_iterate_over_objfiles_in_search_order): Make it
635 static.
636 * windows-tdep.h (windows_init_abi): Declare.
637 (windows_iterate_over_objfiles_in_search_order): Remove
638 declaration.
639
640 2013-10-01 Jerome Guitton <guitton@adacore.com>
641
642 Checked in by Joel Brobecker <brobecker@adacore.com>
643 * system-gdbinit/elinos.py (get_elinos_environment): Return an
644 incomplete dictionnary instead of None in case of missing
645 environment variables.
646 (elinos_init): in case of an incomplete environment, best
647 effort to load system libraries instead of abort.
648
649 2013-10-01 Joel Brobecker <brobecker@adacore.com>
650
651 * ada-lang.c (ada_has_this_exception_support): Ignore
652 mst_solib_trampoline minimal symbols.
653
654 2013-09-30 Tristan Gingold <gingold@adacore.com>
655
656 * i386-darwin-nat.c (darwin_complete_target): Install methods for
657 hardware watchpoint.
658 (i386_darwin_dr_set): Support 32 and 64 bit states.
659 (i386_darwin_dr_get): Likewise.
660 (i386_darwin_dr_set_control): Make static.
661 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
662 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
663
664 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
665
666 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
667 Replace TIDGET with ptid_get_lwp.
668 Replace GET_LWP with ptid_get_lwp.
669 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
670 Replace BUILD_THREAD with ptid_build.
671 Replace BUILD_LWP with ptid_build.
672 Replace PIDGET with ptid_get_pid.
673 Replace TIDGET with ptid_get_lwp.
674 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
675 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
676 Replace TIDGET with ptid_get_lwp.
677 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
678 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
679 Replace TIDGET with ptid_get_lwp.
680 Replace GET_LWP with ptid_get_lwp.
681 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
682 * auxv.c: Likewise.
683 * breakpoint.c: Likewise.
684 * common/ptid.c (ptid_is_pid): Condense check for
685 null_ptid and minus_one_ptid.
686 (ptid_lwp_p): New function.
687 (ptid_tid_p): New function.
688 * common/ptid.h: Update comments for accessors.
689 (ptid_lwp_p): New prototype.
690 (ptid_tid_p): New prototype.
691 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
692 * gcore.c: Replace PIDGET with ptid_get_pid.
693 * gdbthread.h: Likewise.
694 * gnu-nat.c: Likewise.
695 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
696 Replace TIDGET with ptid_get_lwp.
697 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
698 * hppanbsd-nat.c: Likewise.
699 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
700 Replace TIDGET with ptid_get_lwp.
701 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
702 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
703 * infcmd.c: Likewise.
704 * inferior.h: Likewise.
705 * inflow.c: Likewise.
706 * infrun.c: Likewise.
707 * linux-fork.c: Likewise.
708 * linux-nat.c: Replace PIDGET with ptid_get_pid.
709 Replace GET_PID with ptid_get_pid.
710 Replace is_lwp with ptid_lwp_p.
711 Replace GET_LWP with ptid_get_lwp.
712 Replace BUILD_LWP with ptid_build.
713
714 2013-09-28 Mike Frysinger <vapier@gentoo.org>
715
716 * common/linux-btrace.c: Move sys/syscall.h out of the
717 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
718 Also check for SYS_perf_event_open before attempting to buid.
719
720 2013-09-27 Doug Evans <dje@google.com>
721
722 * dwarf2read.c (dwarf2_section_info): Add comment.
723 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
724 All uses updated.
725 (dwarf2_section_empty_p): Rename arg from "info" to "section".
726 (dwarf2_read_section): Delete unused local "header". Add section
727 name to error message.
728 (create_dwo_in_dwp): Tweak comment.
729 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
730
731 * dwarf2read.c (die_reader_specs): Tweak comment.
732 (get_section_bfd_owner, get_section_bfd_section): New functions.
733 (get_section_name, get_section_file_name): New functions.
734 (get_section_id, get_section_flags): New functions.
735 (*): Use new functions to access section fields.
736
737 * dwarf2read.c (struct dwo_file): Add/tweak comments.
738 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
739 arg "htab". All callers updated.
740 (create_debug_types_hash_table): Remove redundant copy of
741 abbrev_section.
742 (create_dwo_in_dwp): Tweak comments.
743 (read_str_index): Tweak comment. Record dwarf form name in static
744 local.
745
746 2013-09-27 Pedro Alves <palves@redhat.com>
747
748 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
749 (remote_filename_p): Add comment.
750 * remote.c (remote_filename_p): Adjust to use
751 REMOTE_SYSROOT_PREFIX.
752 * solib.c (solib_find): When deciding whether we need to add a
753 directory separator, check whether the sysroot is "remote:"
754 instead of checking whether the patch has a drive spec. Add
755 comments.
756
757 2013-09-27 Pedro Alves <palves@redhat.com>
758
759 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
760 Delete fields.
761 (remote_parse_stop_reply): Adjust, setting event->ws.kind
762 directly.
763
764 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
765
766 Fix set debug frame output.
767 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
768 SENTINEL_FRAME entry lower to match enum frame_type order.
769
770 2013-09-26 Pierre Muller <muller@sourceware.org>
771
772 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
773 AMD64_R15_REGNUM when a register index is expected.
774 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
775 Substitute in array.
776 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
777 (amd64_push_arguments): Substitute in integer_regnum array.
778
779 2013-09-25 Doug Evans <dje@google.com>
780
781 * objfiles.c (allocate_objfile): Move comment to better place.
782
783 New option "set debug symfile on".
784 * NEWS: Mention "set debug symfile".
785 * Makefile.in (SFILES): Add symfile-debug.c.
786 (COMMON_OBS): Add symfile-debug.o.
787 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
788 objfile's symbol functions.
789 * objfiles.h (objfile_set_sym_fns): Declare.
790 * symfile-debug.c: New file.
791 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
792 objfile's symbol functions.
793 (reread_symbols): Ditto.
794
795 * symfile.h (struct sym_fns): Delete member "sym_flavour".
796 All uses updated.
797 (add_symtab_fns): Update prototype.
798 * symfile.c (sym_fns_ptr): Delete. Replace with ...
799 (registered_sym_fns): ... this.
800 (symtab_fns): Update.
801 (add_symtab_fns): New arg "flavour". All callers updated.
802 (find_sym_fns): Rewrite to use new sym_fns registry.
803
804 * symfile.h (struct sym_fns): Add "objfile" argument to
805 sym_read_linetable. All uses updated.
806
807 * symtab.c (domain_name, search_domain_name): New functions.
808 * symtab.h (domain_name, search_domain_name): Declare.
809
810 * symfile.h (struct quick_symbol_functions): Reorg arg list of
811 map_matching_symbols so objfile is first. All uses updated.
812 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
813 * psymtab.c (map_matching_symbols_psymtab): Update signature.
814
815 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
816
817 PR shlibs/8882
818 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
819 link map entries.
820
821 2013-09-24 Doug Evans <dje@google.com>
822
823 * objfiles.c (free_objfile): Move comment.
824
825 2013-09-24 Joel Brobecker <brobecker@adacore.com>
826
827 * ada-exp.y (string_to_operator): Delete.
828 (dummy_string_to_ada_operator): Delete.
829
830 2013-09-24 Joel Brobecker <brobecker@adacore.com>
831
832 Revert:
833 * i386-tdep.h (enum amd64_reg_class): New, moved here from
834 amd64-tdep.c.
835 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
836 call_dummy_integer_regs, and classify.
837 * amd64-tdep.h (amd64_classify): Add declaration.
838 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
839 (amd64_reg_class): Delete, moved to i386-tdep.h.
840 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
841 Replace call to amd64_classify by call to tdep->classify.
842 (amd64_push_arguments): Get the list of registers to use for
843 passing integer parameters from the gdbarch tdep structure,
844 rather than using a hardcoded one. Replace calls to amd64_classify
845 by calls to tdep->classify.
846 (amd64_push_dummy_call): Get the register number used for
847 the "hidden" argument from tdep->call_dummy_integer_regs.
848 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
849 and tdep->call_dummy_integer_regs. Set tdep->classify.
850
851 2013-09-24 Joel Brobecker <brobecker@adacore.com>
852
853 Revert:
854 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
855 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
856 where tdep->memory_args_by_pointer is non-zero.
857
858 2013-09-24 Joel Brobecker <brobecker@adacore.com>
859
860 Revert:
861 * i386-tdep.h (struct gdbarch_tdep): Add new field
862 integer_param_regs_saved_in_caller_frame.
863 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
864 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
865
866 2013-09-24 Joel Brobecker <brobecker@adacore.com>
867
868 * amd64-windows-tdep.c: #include "value.h"
869 (amd64_windows_classify): Delete.
870 (amd64_windows_passed_by_integer_register)
871 (amd64_windows_passed_by_xmm_register)
872 (amd64_windows_passed_by_pointer)
873 (amd64_windows_adjust_args_passed_by_pointer)
874 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
875 (amd64_windows_push_dummy_call): New functions.
876 (amd64_windows_init_abi): Remove setting of
877 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
878 tdep->classify, tdep->memory_args_by_pointer and
879 tdep->integer_param_regs_saved_in_caller_frame.
880 Add call to set_gdbarch_push_dummy_call.
881
882 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
883
884 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
885 objfile->original_name.
886
887 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 Pass down original filename for objfile.
890 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
891 * elfread.c (elf_symfile_read): Likewise.
892 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
893 longer set ORIGINAL_NAME.
894 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
895 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
896 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
897 symbol_file_add_from_bfd call.
898 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
899 (macho_check_dsym): Add parameter filenamep. Change function comment.
900 Set *filenamep.
901 (macho_symfile_read): New variable dsym_filename. Update
902 macho_check_dsym call. Use it for symbol_file_add_separate.
903 * objfiles.c (allocate_objfile): Add parameter name. New comment for
904 it. Use it for objfile->original_name.
905 (objfile_name): Return OBFD's filename, if available.
906 * objfiles.h (allocate_objfile): Add new parameter name.
907 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
908 * symfile-mem.c (symbol_file_add_from_memory): Update
909 symbol_file_add_from_bfd call.
910 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
911 comment for it.
912 (symbol_file_add_with_addrs): New parameter name, add function comment
913 for it. Remove variable name. Update allocate_objfile call.
914 (symbol_file_add_separate): New parameter name, add function comment
915 for it. Update symbol_file_add_with_addrs call.
916 (symbol_file_add_from_bfd): New parameter name. Update
917 symbol_file_add_with_addrs call.
918 (symbol_file_add): Update symbol_file_add_from_bfd call.
919 (reread_symbols): New variable original_name. Save
920 objfile->original_name by it.
921 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
922 second parameter.
923
924 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
925
926 Code cleanup: Add objfile_name accessor function.
927 * ada-lang.c (is_known_support_routine): Use objfile_name.
928 * auto-load.c (source_gdb_script_for_objfile)
929 (auto_load_objfile_script): Likewise.
930 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
931 * dbxread.c (dbx_symfile_read): Likewise.
932 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
933 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
934 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
935 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
936 (lookup_dwp_signatured_type, lookup_dwo_unit)
937 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
938 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
939 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
940 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
941 (dwarf2_record_block_ranges, read_common_block, read_typedef)
942 (read_subrange_type, load_partial_dies, read_partial_die)
943 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
944 (die_containing_type, build_error_marker_type, lookup_die_type)
945 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
946 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
947 (get_DW_AT_signature_type, write_psymtabs_to_index)
948 (save_gdb_index_command): Likewise.
949 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
950 Likewise.
951 * expprint.c (dump_subexp_body_standard): Likewise.
952 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
953 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
954 original_name.
955 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
956 obj_name, use objfile_name for it, use the variable.
957 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
958 Use objfile_name.
959 * machoread.c (macho_symtab_read, macho_check_dsym)
960 (macho_symfile_relocate): Likewise.
961 * maint.c (maintenance_translate_address): Likewise.
962 * minidebug.c (find_separate_debug_file_in_section): Likewise.
963 * minsyms.c (install_minimal_symbols): Likewise.
964 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
965 original_name.
966 (filter_overlapping_sections): Use objfile_name.
967 (objfile_name): New function.
968 * objfiles.h (struct objfile): Rename field name to original_name.
969 (objfile_name): New prototype.
970 * printcmd.c (sym_info, address_info): Use objfile_name.
971 * probe.c (parse_probes, collect_probes, compare_probes)
972 (info_probes_for_ops): Likewise.
973 * progspace.c (clone_program_space): Likewise.
974 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
975 (maintenance_info_psymtabs): Likewise.
976 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
977 (source_section_scripts): Likewise.
978 * python/py-objfile.c (objfpy_get_filename): Likewise.
979 * python/py-progspace.c (pspy_get_filename): Likewise.
980 * solib-aix.c (solib_aix_get_toc_value): Likewise.
981 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
982 * solib.c (solib_read_symbols): Likewise.
983 * stabsread.c (scan_file_globals): Likewise.
984 * stap-probe.c (handle_stap_probe): Likewise.
985 * symfile.c (symbol_file_clear, separate_debug_file_exists)
986 (find_separate_debug_file_by_debuglink): Likewise.
987 (reread_symbols): Likewise. Use the objfile field name renamed to
988 original_name.
989 (allocate_symtab): Use objfile_name.
990 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
991 (dump_objfile, dump_msymbols, dump_symtab_1)
992 (maintenance_print_msymbols, maintenance_print_objfiles)
993 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
994 * target.c (target_translate_tls_address, target_info): Likewise.
995 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
996 objfile_name.
997
998 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
999
1000 Code cleanup.
1001 * probe.c (parse_probes): Rename variable objfile_name to
1002 objfile_namestr.
1003
1004 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1005
1006 Remove solib-sunos.c.
1007 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1008 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1009 * objfiles.c (rt_common_objfile): Remove.
1010 (free_objfile): Remove rt_common_objfile comparison.
1011 * objfiles.h (rt_common_objfile): Remove.
1012 * solib-sunos.c: Remove.
1013 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1014
1015 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1016
1017 Remove a.out NetBSD and OpenBSD hosts.
1018 * NEWS (Removed native configurations): New.
1019 * config/arm/nbsdaout.mh: Remove.
1020 * config/i386/nbsdaout.mh: Remove.
1021 * config/i386/obsdaout.mh: Remove.
1022 * config/m68k/nbsdaout.mh: Remove.
1023 * config/sparc/nbsdaout.mh: Remove.
1024 * config/vax/nbsdaout.mh: Remove.
1025 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1026 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1027 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1028 error.
1029 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1030 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1031 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1032
1033 2013-09-23 Tom Tromey <tromey@redhat.com>
1034
1035 * linespec.c (struct minsym_and_objfile): Remove.
1036 (minsym_and_objfile_d): Remove.
1037 (struct linespec, struct collect_info, linespec_parse_basic)
1038 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1039 (compare_msymbols, find_method, find_function_symbols)
1040 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1041 (add_minsym, search_minsyms_for_name): Update.
1042
1043 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1044
1045 * regcache.c: Add include of valprint.h.
1046 (dump_endian_bytes): Delete.
1047 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1048
1049 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1050
1051 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1052
1053 2013-09-19 Pedro Alves <palves@redhat.com>
1054
1055 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1056 breakpoints.
1057
1058 2013-09-19 Pedro Alves <palves@redhat.com>
1059 Thomas Schwinge <thomas@codesourcery.com>
1060 Yue Lu <hacklu.newborn@gmail.com>
1061
1062 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1063 Take a gdb_byte pointer instead of a char pointer.
1064
1065 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1066 gnu_xfer_partial helper.
1067 (gnu_xfer_partial): New function.
1068 (gnu_target): Don't install a deprecated_xfer_memory hook.
1069 Install a to_xfer_partial hook.
1070
1071 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 Constification.
1074 * main.c (captured_main): Replace catch_command_errors by
1075 catch_command_errors_const. Twice.
1076 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1077 (symbol_file_add): Make name parameter const.
1078 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1079 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1080 variable name. Change their usage accordingly.
1081 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1082 const.
1083 (symbol_file_add_main): Make args parameter const.
1084
1085 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1086 Ulrich Weigand <uweigand@de.ibm.com>
1087
1088 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1089 of c_value member.
1090 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1091
1092 2013-09-18 Pedro Alves <palves@redhat.com>
1093 Yue Lu <hacklu.newborn@gmail.com>
1094
1095 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1096 (gnu_create_inferior)
1097 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1098 (set_sig_thread_cmd): Use the lwpid field of ptids to
1099 store/extract thread ids instead of the tid field.
1100 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1101
1102 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1103
1104 * infcmd.c (default_print_one_register_info): Add detection of
1105 optimized out values.
1106 (default_print_registers_info): Switch to using
1107 get_frame_register_value.
1108
1109 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1110
1111 * infrun.c (handle_inferior_event): Check if we know the
1112 function start address before setting a resume breakpoint.
1113
1114 2013-09-18 Pedro Alves <palves@redhat.com>
1115
1116 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1117 minus_one_ptid instead of looking at the ptid's tid field and
1118 comparing that to -1.
1119
1120 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1121
1122 * main.h (get_gdb_program_name): Remove extra whitespace.
1123
1124 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1125
1126 * main.h (get_gdb_program_name): Add declaration.
1127 * main.c (get_gdb_program_name): Add definition.
1128
1129 2013-09-17 Doug Evans <dje@google.com>
1130
1131 * dwarf2read.c: Move definitions of complaint functions to after
1132 forward declarations of local functions.
1133
1134 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1135 Pedro Alves <palves@redhat.com>
1136
1137 PR gdb/11568
1138 * breakpoint.c (remove_threaded_breakpoints): New function.
1139 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1140 as thread_exit observer.
1141
1142 2013-09-17 Pedro Alves <palves@redhat.com>
1143
1144 PR gdb/15911
1145 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1146 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1147 * corelow.c (core_open):
1148 * frame.h (print_stack_frame, print_frame_info): New
1149 'set_current_sal' parameter.
1150 * infcmd.c (finish_command, kill_command): Adjust call to
1151 print_stack_frame.
1152 * inferior.c (inferior_command): Likewise.
1153 * infrun.c (normal_stop): Likewise.
1154 * linux-fork.c (linux_fork_context): Likewise.
1155 * record-full.c (record_full_goto_entry, record_full_restore):
1156 Likewise.
1157 * remote-mips.c (common_open): Likewise.
1158 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1159 Use it.
1160 (print_frame_info): New 'set_current_sal' parameter. Set the last
1161 displayed sal depending on the new paremeter instead of looking at
1162 print_what.
1163 (backtrace_command_1, select_and_print_frame, frame_command)
1164 (current_frame_command, up_command, down_command): Adjust call to
1165 print_stack_frame.
1166 * thread.c (print_thread_info, restore_selected_frame)
1167 (do_captured_thread_select): Adjust call to print_stack_frame.
1168 * tracepoint.c (tfind_1): Likewise.
1169 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1170 (mi_cmd_stack_info_frame): Likewise.
1171 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1172 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1173
1174 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1175
1176 * value.c (isvoid_internal_fn): Replace "parameter" with
1177 "argument".
1178
1179 2013-09-16 Stan Shebs <stan@codesourcery.com>
1180
1181 * README: Update references to writing code for GDB.
1182 * configure.ac (build_warnings): Remove obsolete comment.
1183 * configure: Regenerate.
1184 * gdbarch.sh: Remove references to gdbint.texinfo.
1185 * gdbarch.h: Regenerate.
1186 * gdbtypes.c (objfile_type): Remove comments referencing internals
1187 manual and D10V.
1188
1189 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1190
1191 * NEWS: Mention new convenience function $_isvoid.
1192 * value.c (isvoid_internal_fn): New function.
1193 (_initialize_values): Add new convenience function $_isvoid.
1194
1195 2013-09-16 Pierre Muller <muller@sourceware.org>
1196
1197 * arm-linux-tdep.c: Add "elf/common.h" header.
1198 Remove AT_HWCAP macro definintion as it is provided in
1199 added include file.
1200 * s390-tdep.c: Remove system header <elf.h>
1201 Add "elf/common.h" header for AT_HWCAP definition.
1202 (s390_core_read_description): Use correct CORE_ADDR
1203 for hwcap local variable used as third parameter
1204 of function target_auxv_search.
1205
1206 2013-09-14 Pierre Muller <muller@sourceware.org>
1207 Tom Tromey <tromey@redhat.com>
1208 Pedro Alves <palves@redhat.com>
1209
1210 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1211 mode if operating system doesn't know O_CLOEXEC.
1212
1213 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 Code cleanup.
1216 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1217 inner block.
1218
1219 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1220
1221 * NEWS: Mention TDB support.
1222 * features/s390-tdb.xml: New file.
1223 * features/s390-te-linux64.xml: New file.
1224 * features/s390x-te-linux64.xml: New file.
1225 * features/Makefile (WHICH): Add new tdescs above.
1226 (s390-te-linux64-expedite): Set.
1227 (s390x-te-linux64-expedite): Set.
1228 * features/s390-te-linux64.c: New file (generated).
1229 * features/s390x-te-linux64.c: New file (generated).
1230 * regformats/s390-te-linux64.dat: New file (generated).
1231 * regformats/s390x-te-linux64.dat: New file (generated).
1232 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1233 (HWCAP_S390_TE): Likewise.
1234 (S390_TDB_DWORD0_REGNUM): Likewise.
1235 (S390_TDB_DWORD0_REGNUM): Likewise.
1236 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1237 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1238 (S390_TDB_ATIA_REGNUM): Likewise.
1239 (S390_TDB_R0_REGNUM): Likewise.
1240 (S390_TDB_R1_REGNUM): Likewise.
1241 (S390_TDB_R2_REGNUM): Likewise.
1242 (S390_TDB_R3_REGNUM): Likewise.
1243 (S390_TDB_R4_REGNUM): Likewise.
1244 (S390_TDB_R5_REGNUM): Likewise.
1245 (S390_TDB_R6_REGNUM): Likewise.
1246 (S390_TDB_R7_REGNUM): Likewise.
1247 (S390_TDB_R8_REGNUM): Likewise.
1248 (S390_TDB_R9_REGNUM): Likewise.
1249 (S390_TDB_R10_REGNUM): Likewise.
1250 (S390_TDB_R11_REGNUM): Likewise.
1251 (S390_TDB_R12_REGNUM): Likewise.
1252 (S390_TDB_R13_REGNUM): Likewise.
1253 (S390_TDB_R14_REGNUM): Likewise.
1254 (S390_TDB_R15_REGNUM): Likewise.
1255 (S390_NUM_REGS): Increase.
1256 (S390_IS_TDBREGSET_REGNUM): New macro.
1257 (s390_regmap_tdb): Declare.
1258 (s390_sizeof_tdbregset): Define.
1259 (tdesc_s390_te_linux64): Declare.
1260 (tdesc_s390x_te_linux64): Likewise.
1261 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1262 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1263 (s390_regmap_tdb): New regmap.
1264 (s390_supply_tdb_regset): New function.
1265 (s390_tdb_regset): New regset.
1266 (s390_linux64v2_regset_sections): Add TDB regset to list.
1267 (s390x_linux64v2_regset_sections): Likewise.
1268 (s390_regset_from_core_section): Recognize TDB core note section.
1269 (s390_core_read_description): If HWCAP indicates TE support,
1270 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1271 (s390_gdbarch_init): Handle TDB regset.
1272 (_initialize_s390_tdep): Initialize new tdescs.
1273 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1274 (have_regset_tdb): New variable.
1275 (s390_native_supply): Support register invalidation.
1276 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1277 (check_regset): Treat ENODATA as "regset exists".
1278 (s390_linux_fetch_inferior_registers): Add TDB.
1279 (s390_read_description): Check for TDB existence and select
1280 appropriate tdesc.
1281 * gdbserver/Makefile.in (clean): Add removal of new makefile
1282 targets.
1283 (s390-te-linux64.c): New makefile target.
1284 (s390x-te-linux64.c): Likewise.
1285 * gdbserver/configure.srv (srv_regobj): Append new objects
1286 s390-te-linux64.o and s390x-te-linux64.o.
1287 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1288 s390x-te-linux64.xml, and s390-tdb.xml.
1289 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1290 declaration.
1291 (tdesc_s390_te_linux64): Likewise.
1292 (init_registers_s390x_te_linux64): Likewise.
1293 (tdesc_s390x_te_linux64): Likewise.
1294 (s390_check_regset): Treat ENODATA as "regset exists".
1295 (s390_arch_setup): Add TDB regset support.
1296 (initialize_low_arch): Initialize registers for new tdescs.
1297
1298 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299
1300 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1301 (S390_IS_FPREGSET_REGNUM): New macro.
1302 * s390-tdep.c (s390_dwarf_regmap): Make const.
1303 (regnum_is_gpr_full): New function for replacing repeated code.
1304 (s390_pseudo_register_name): Use it.
1305 (s390_pseudo_register_type): Likewise.
1306 (s390_pseudo_register_read): Likewise.
1307 (s390_pseudo_register_write): Likewise.
1308 (s390_unwind_pseudo_register): Likewise.
1309 (s390_regmap_gregset): New format for regmap.
1310 (s390x_regmap_gregset): Likewise.
1311 (s390_regmap_fpregset): Likewise.
1312 (s390_regmap_upper): Likewise.
1313 (s390_regmap_last_break): Likewise.
1314 (s390_regmap_system_call): Likewise.
1315 (s390_supply_regset): Adjust to new regmap format.
1316 (s390_collect_regset): Likewise.
1317 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1318 (s390_native_collect): Likewise.
1319 (supply_gregset): Likewise.
1320 (fill_gregset): Likewise.
1321 (supply_fpregset): Likewise.
1322 (fill_fpregset): Likewise.
1323 (fetch_regset): Likewise.
1324 (store_regset): Likewise.
1325 (s390_linux_fetch_inferior_registers): Likewise.
1326 (s390_linux_fetch_inferior_registers): Likewise.
1327
1328 2013-09-12 Andrew Pinski <apinski@cavium.com>
1329
1330 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1331
1332 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333
1334 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1335
1336 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1337
1338 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1339
1340 2013-09-06 Pedro Alves <palves@redhat.com>
1341
1342 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1343 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1344 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1345 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1346 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1347 gdb_stdlog.
1348
1349 2013-09-06 Pedro Alves <palves@redhat.com>
1350
1351 * remote-sim.c (dump_mem): Constify buf parameter.
1352 gdbsim_xfer_inferior_memory): Rename to ...
1353 (gdbsim_xfer_memory): ... this. Adjust interface as
1354 target_xfer_partial helper.
1355 (gdbsim_xfer_partial): New function.
1356 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1357 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1358
1359 2013-09-06 Pedro Alves <palves@redhat.com>
1360
1361 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1362 host_address_to_string, and send debug output to gdb_stdlog.
1363
1364 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1365
1366 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1367 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1368 gdb_target_obs for cris target.
1369 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1370 (cris_gdbarch_init): Move calls to
1371 set_gdbarch_fetch_tls_load_module_address and
1372 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1373 Add call to gdbarch_init_osabi.
1374 * cris-linux-tdep.c: New file.
1375 * cris-tdep.h: New file.
1376
1377 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1378
1379 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1380 to deprecated_init_ui_hook.
1381
1382 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1383
1384 * cli/cli-interp.c (_initialize_cli_interp): Add a
1385 command_loop_proc to interp_procs.
1386 * event-top.c (cli_command_loop): Change signature to match
1387 interp_command_loop_ftype.
1388 * event-top.h (cli_command_loop): Same.
1389 * interps.c (interp_new): Require every interpreter to have a
1390 command_loop_proc.
1391 (current_interp_command_loop): Just call the command_loop_proc on
1392 the current interpreter.
1393 * tui/tui-interp.c (_initialize_tui_interp): Add a
1394 command_loop_proc to interp_procs.
1395
1396 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1397
1398 * cris-tdep.c (cris_gdbarch_init): Add call to
1399 get_gdbarch_fetch_tls_load_module_address.
1400
1401 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1402
1403 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1404 (cris_elf_gregset_t): Rename from elf_gregset_t.
1405 (crisv32_elf_gregset_t): Adjust.
1406 (cris_supply_gregset, fetch_core_registers): Adjust.
1407
1408 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1409
1410 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1411
1412 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1413
1414 * defs.h (deprecated_command_loop_hook): Remove, including
1415 references in comments.
1416 * interps.c (current_interp_command_loop): No longer use
1417 deprecated_command_loop_hook.
1418 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1419 setup.
1420 * top.c (deprecated_command_loop_hook): Remove.
1421
1422 2013-09-05 Pedro Alves <palves@redhat.com>
1423
1424 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1425 local is now int instead of ULONGEST. Print it with %d
1426 instead of paddress.
1427
1428 2013-09-05 Tristan Gingold <gingold@adacore.com>
1429
1430 * MAINTAINERS: Remove avr maintainership.
1431
1432 2013-09-05 Pedro Alves <palves@redhat.com>
1433
1434 * findvar.c (value_of_register): Rework in terms of
1435 value_of_register_lazy.
1436
1437 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1438
1439 * symfile.c (add_symbol_file_command): Remove trailing
1440 whitespaces and blank line after comment.
1441
1442 2013-09-05 Pedro Alves <palves@redhat.com>
1443
1444 * tui/tui-regs.c (tui_register_format): Don't look at the
1445 register's name here. Return string representing register
1446 value instead of storing it in the data element.
1447 (tui_get_register): Compare register string representations
1448 instead of register value states and contents.
1449
1450 2013-09-05 Pedro Alves <palves@redhat.com>
1451
1452 PR tui/15933
1453 * tui/tui-regs.c (tui_show_registers): Show registers of the
1454 selected frame, not the current frame.
1455
1456 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1457
1458 * MAINTAINERS (Write After Approval): Add myself to the list.
1459
1460 2013-09-04 Doug Evans <dje@google.com>
1461
1462 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1463 (queue_and_load_dwo_tu): New function.
1464 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1465 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1466 Make dependent_cu optional.
1467 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1468 and an older .gdb_index is in use, queue and load all its TUs too.
1469
1470 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1473 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1474 variable search_flags.
1475 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1476 (OPF_RETURN_REALPATH): ... here.
1477 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1478 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1479 call. Twice.
1480 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1481 openp call.
1482 * solib.c (solib_find): Likewise. Four times.
1483 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1484 in the function comment and for the realpath_fptr variable.
1485 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1486 (find_and_open_source): Likewise. Twice.
1487 * symfile.c (symfile_bfd_open): Likewise, also twice.
1488
1489 2013-09-04 Doug Evans <dje@google.com>
1490
1491 * progspace.c (save_current_space_and_thread): Remove unnecessary
1492 call to save_current_inferior.
1493
1494 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1495
1496 * sh64-tdep.c (sh64_do_register): Return after printing message
1497 about unavailable register contents.
1498
1499 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1500 Pedro Alves <palves@redhat.com>
1501
1502 * symfile.c (add_symbol_file_command): Error out on unknown
1503 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1504 options and collapse into single conditional branch.
1505
1506 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1507
1508 * inf-child.c (inf_child_follow_fork): New parameter
1509 detach_fork.
1510 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1511 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1512 * inferior.h (detach_fork): Remove.
1513 * infrun.c (detach_fork): Adjust comment and make it
1514 static.
1515 (follow_fork): Pass detach_fork parameter to
1516 target_follow_fork.
1517 * linux-nat.c (linux_child_follow_fork): New parameter
1518 detach_fork.
1519 * target.c (target_follow_fork): New parameter detach_fork.
1520 Pass detach_fork as parameter and print its value.
1521 * target.h (struct target_ops) <to_follow_fork>: New int
1522 parameter.
1523 (target_follow_fork): New parameter detach_fork.
1524
1525 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1526
1527 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1528 Replace sec->bfd by sec->the_bfd_section->owner.
1529
1530 2013-09-03 Yao Qi <yao@codesourcery.com>
1531
1532 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1533 from linux_has_shared_address_space.
1534 (linux_has_shared_address_space): Call linux_is_uclinux.
1535 * linux-tdep.h (linux_is_uclinux): Declare.
1536 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1537 linux_is_uclinux.
1538
1539 2013-09-03 Yao Qi <yao@codesourcery.com>
1540
1541 * config/djgpp/fnchange.lst: Remove entry of
1542 i386-interix-nat.c and i386-interix-tdep.c.
1543 * configure.ac: Remove '*-*-interix*'.
1544 * configure: Re-generated.
1545 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1546 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1547 obsolete comments.
1548 * osabi.c (gdb_osabi_names): Remove "Interix".
1549
1550 2013-09-03 Yao Qi <yao@codesourcery.com>
1551
1552 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1553
1554 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1555
1556 * record.h (record_print_flag) <record_print_src_line,
1557 record_print_insn_range>: Rename into ...
1558 (record_print_flag) <record_print_src_line,
1559 record_print_insn_range>: ... this. Update all users.
1560
1561 2013-09-02 Pierre Muller <muller@sourceware.org>
1562
1563 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1564 error code.
1565
1566 2013-09-02 Pierre Muller <muller@sourceware.org>
1567
1568 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1569 by use of plongest function.
1570
1571 2013-09-02 Tristan Gingold <gingold@adacore.com>
1572
1573 * NEWS: Add entry mentioning support for native Windows x64
1574 SEH data.
1575
1576 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1577 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1578 (struct amd64_windows_frame_cache): New struct.
1579 (amd64_windows_w2gdb_regnum): New global.
1580 (pc_in_range, amd64_windows_frame_decode_epilogue)
1581 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1582 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1583 (amd64_windows_frame_this_id): New functions.
1584 (amd64_windows_frame_unwind): New static global.
1585 (amd64_windows_skip_prologue): New function.
1586 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1587 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1588 with amd64_windows_skip_prologue.
1589
1590 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1591
1592 GDB 7.6.1 released.
1593
1594 2013-08-30 Pedro Alves <palves@redhat.com>
1595
1596 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1597 SRC_AND_LOC.
1598
1599 2013-08-30 Pedro Alves <palves@redhat.com>
1600
1601 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1602 warning text.
1603
1604 2013-08-30 Pedro Alves <palves@redhat.com>
1605
1606 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1607 Adjust arguments to print_stack_frame.
1608
1609 2013-08-30 Pedro Alves <palves@redhat.com>
1610
1611 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1612
1613 2013-08-30 Pedro Alves <palves@redhat.com>
1614
1615 * frame.h (show_and_print_stack_frame): Delete declaration.
1616
1617 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1618
1619 PR python/15461
1620
1621 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1622 (archpy_name): Check for valid architecture.
1623 (archpy_disassemble): Ditto.
1624
1625 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1626
1627 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1628 instead of "long long" in call to ptrace64.
1629
1630 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1631
1632 * mi/mi-interp.c (mi_command_loop): Change signature to match
1633 interp_command_loop_ftype.
1634 (mi1_command_loop): Remove.
1635 (mi2_command_loop): Remove.
1636 (mi3_command_loop): Remove.
1637 (mi_interpreter_resume): Remove setting of
1638 deprecated_command_loop_hook.
1639 (_initialize_mi_interp): Set mi_command_loop as the command loop
1640 callback.
1641
1642 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1643
1644 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1645 value_type.
1646
1647 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1648
1649 * value.c (allocate_value_contents): Make static.
1650 * value.h (allocate_value_contents): Remove prototype.
1651
1652 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1653
1654 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1655 of assembling value via allocate_value_lazy and attribute setter.
1656 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1657 assembling value via allocate_value_lazy and attribute setter.
1658 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1659 assembling value via allocate_value_lazy and attribute setter.
1660
1661 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1662
1663 * value.c (value_from_contents_and_address): Replace allocate_value and
1664 memcpy with value_from_contents.
1665
1666 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1667
1668 * python/py-framefilter.c (py_print_frame): Remove usage of
1669 PyString_AsString. Use python_string_to_host_string instead.
1670 Refactor function to work with a string as a new allocation
1671 instead of a pointer.
1672 (py_print_frame): Ditto.
1673 * python/lib/gdb/frames.py (return_list): Cain iterators together
1674 instead of adding them as a list.
1675 (_sort_list): Call return_list, and remove duplicate code.
1676 (execute_frame_filters): Convert iterator to a list with list().
1677 * python/lib/gdb/command/frame_filters.py
1678 (SetFrameFilterPriority._set_filter_priority): Convert priority
1679 attribute to an integer.
1680 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1681 wrapper function __next__.
1682 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1683 define as "str".
1684
1685 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1686
1687 PR python/15752
1688 * python/py-framefilter.c (apply_frame_filter): Check
1689 gdb_python_initialized. Exit if the Python frame-filter code
1690 cannot be initialized.
1691
1692 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1693
1694 PR cli/15842
1695 * top.c (print_gdb_version): Remove erroneous newline after help
1696 text.
1697
1698 2013-08-29 Yao Qi <yao@codesourcery.com>
1699
1700 * varobj.c (install_dynamic_child): Remove trailing space.
1701 Add one blank line after variable declaration.
1702
1703 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 PR gdb/15415
1706 * corefile.c (get_exec_file): Use exec_filename.
1707 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1708 * exec.c (exec_close): Free EXEC_FILENAME.
1709 (exec_file_attach): New variable canonical_pathname. Use
1710 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1711 EXEC_FILENAME.
1712 * exec.h (exec_filename): New.
1713 * inferior.c (print_inferior, inferior_command): Use
1714 PSPACE_EXEC_FILENAME.
1715 * mi/mi-main.c (print_one_inferior): Likewise.
1716 * progspace.c (clone_program_space, print_program_space): Likewise.
1717 * progspace.h (struct program_space): New field pspace_exec_filename.
1718 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1719 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1720
1721 2013-08-28 Will Newton <will.newton@linaro.org>
1722
1723 * common/linux-ptrace.c: Include stdint.h unconditionally.
1724
1725 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1726
1727 Code cleanup.
1728 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1729
1730 2013-08-28 Yao Qi <yao@codesourcery.com>
1731 Pedro Alves <palves@redhat.com>
1732
1733 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1734 instead of stdio_fileopen.
1735 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1736 .Call stderr_fileopen instead of stdio_fileopen.
1737 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1738 [__MINGW32__] (stderr_file_fputs): New function.
1739 (stderr_fileopen): New function.
1740 * ui-file.h (stderr_fileopen): Declare.
1741
1742 2013-08-27 Doug Evans <dje@google.com>
1743
1744 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1745 (struct dwarf2_per_cu_data): Ditto.
1746 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1747 (process_imported_unit_die): Ditto.
1748 (follow_die_sig_1): Simplify assert.
1749
1750 2013-08-27 Pedro Alves <palves@redhat.com>
1751
1752 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1753 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1754 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1755 windows_xfer_memory directly.
1756 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1757
1758 2013-08-27 Pedro Alves <palves@redhat.com>
1759
1760 * darwin-nat.c (darwin_xfer_memory): Delete.
1761 (_initialize_darwin_inferior): Don't install a
1762 deprecated_xfer_memory method.
1763
1764 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1765 Yao Qi <yao@codesourcery.com>
1766
1767 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1768 (parse_no_frames_option): Remove.
1769 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1770 (mi_cmd_stack_list_args): Adjust.
1771 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1772 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1773 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1774 Caller update.
1775 (list_args_or_locals): New parameter 'skip_unavailable'.
1776 Handle it.
1777 * valprint.c (scalar_type_p): Rename to ...
1778 (val_print_scalar_type_p): ... this. Make extern.
1779 (val_print, value_check_printable): Adjust.
1780 * valprint.h (val_print_scalar_type_p): Declare.
1781 * value.c (value_entirely_unavailable): New function.
1782 * value.h (value_entirely_unavailable): Declare.
1783
1784 * NEWS: Mention the new option "--skip-unavailable" to MI
1785 commands '-stack-list-locals', '-stack-list-arguments' and
1786 '-stack-list-variables'.
1787
1788 2013-08-27 Yao Qi <yao@codesourcery.com>
1789
1790 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1791 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1792 options.
1793 * mi/mi-getopt.c (mi_getopt): Remove.
1794 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1795 'error_on_unknown'.
1796 (mi_getopt): Call mi_getopt_1.
1797 (mi_getopt_silent): New.
1798 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1799
1800 2013-08-26 Doug Evans <dje@google.com>
1801
1802 PR symtab/15885
1803 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1804 .gdb_index is in use.
1805 * symfile.c (reread_symbols): Reset objfile->sf.
1806
1807 * NEWS: Document "mt print objfiles" now takes optional regexp.
1808 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1809 regexp of objfiles to print.
1810 (_initialize_symmisc): Update doc string for "mt print objfiles".
1811
1812 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1813 missing debug info checks.
1814
1815 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1816 Ulrich Weigand <uweigand@de.ibm.com>
1817
1818 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1819 line tables generated by XLC compiled binaries.
1820
1821 2013-08-23 Doug Evans <dje@google.com>
1822
1823 * symmisc.c (dump_symtab): Delete prototype.
1824 (dump_msymbols, dump_objfile): Ditto.
1825 (maintenance_info_symtabs): Mark as dont_repeat.
1826 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1827
1828 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1829 debugging printf to better location.
1830
1831 2013-08-23 Pedro Alves <palves@redhat.com>
1832
1833 * target.c (target_read_live_memory): Change type of 'ret' local
1834 to LONGEST.
1835
1836 2013-08-23 Pedro Alves <palves@redhat.com>
1837
1838 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1839 (remote_read_bytes): Change return type to LONGEST, and adjust to
1840 return a target_xfer_error on error.
1841 (remote_xfer_memory): Delete.
1842 (remote_flash_write): Change type of 'ret' local to LONGEST.
1843 (remote_xfer_partial, remote_xfer_partial): Adjust.
1844 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1845
1846 2013-08-23 Pierre Muller <muller@sourceware.org>
1847
1848 ARI fix: Push # directives to start of line.
1849 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1850
1851 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1852
1853 PR gdb/15501
1854 * breakpoint.c (enable_command, disable_command): Iterate over
1855 all specified breakpoint locations.
1856
1857 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1858
1859 * common/linux-ptrace.c (linux_fork_to_function): Push #
1860 directives to the start of the line.
1861 (linux_check_ptrace_features): Fix warning message to use
1862 the "_" markup.
1863
1864 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1865
1866 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1867 nat/linux-waitpid.h.
1868 (linux-waitpid.o): New object file rule.
1869 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1870 (current_ptrace_options): Moved from linux-nat.c.
1871 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1872 parameters.
1873 (linux_fork_to_function): New function.
1874 (linux_grandchild_function): Likewise.
1875 (linux_child_function): Likewise.
1876 (linux_check_ptrace_features): New function, heavily
1877 based on linux-nat.c:linux_test_for_tracefork.
1878 (linux_enable_event_reporting): New function.
1879 (ptrace_supports_feature): Likewise.
1880 (linux_supports_tracefork): Likewise.
1881 (linux_supports_traceclone): Likewise.
1882 (linux_supports_tracevforkdone): Likewise.
1883 (linux_supports_tracesysgood): Likewise.
1884 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1885 gdbserver/linux-low.c.
1886 (linux_enable_event_reporting): New declaration.
1887 (linux_supports_tracefork): Likewise.
1888 (linux_supports_traceclone): Likewise.
1889 (linux_supports_tracevforkdone): Likewise.
1890 (linux_supports_tracesysgood): Likewise.
1891 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1892 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1893 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1894 * config/arm/linux.mh (NATDEPFILES): Likewise.
1895 * config/i386/linux.mh (NATDEPFILES): Likewise.
1896 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1897 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1898 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1899 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1900 * config/mips/linux.mh (NATDEPFILES): Likewise.
1901 * config/pa/linux.mh (NATDEPFILES): Likewise..
1902 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1903 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1904 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1905 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1906 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1907 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1908 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1909 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1910 ptrace's 4th argument's types.
1911 Check the type of PTRACE_TYPE_ARG4.
1912 * configure: Regenerate.
1913 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1914 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1915 (linux_supports_tracefork_flag): Remove.
1916 (linux_supports_tracesysgood_flag): Likewise.
1917 (linux_supports_tracevforkdone_flag): Likewise.
1918 (current_ptrace_options): Moved to
1919 common/linux-ptrace.c.
1920 (linux_tracefork_child): Remove.
1921 (my_waitpid): Remove.
1922 (linux_test_for_tracefork): Renamed to
1923 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1924 (linux_test_for_tracesysgood): Remove.
1925 (linux_supports_tracesysgood): Remove.
1926 (linux_supports_tracefork): Remove.
1927 (linux_supports_tracevforkdone): Remove.
1928 (linux_enable_tracesysgood): Remove.
1929 (linux_enable_event_reporting): Remove.
1930 (linux_init_ptrace): New function.
1931 (linux_child_post_attach): Call linux_init_ptrace.
1932 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1933 (linux_child_follow_fork): Call linux_supports_tracefork
1934 and linux_supports_tracevforkdone.
1935 (linux_child_insert_fork_catchpoint): Call
1936 linux_supports_tracefork.
1937 (linux_child_insert_vfork_catchpoint): Likewise.
1938 (linux_child_set_syscall_catchpoint): Call
1939 linux_supports_tracesysgood.
1940 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1941 * nat/linux-nat.h: New file.
1942 * nat/linux-waitpid.c: New file.
1943 * nat/linux-waitpid.h: New file.
1944
1945 2013-08-22 Samuel Bronson <naesten@gmail.com>
1946
1947 ARM Linux support for `catch syscall'.
1948 * syscalls/arm-linux.py: New file.
1949 * syscalls/arm-linux.xml: Likewise.
1950 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1951 (arm_linux_init_abi): Register the new function and syscall xml file.
1952 * data-directory/Makefile.in: Install the new syscall xml file.
1953 * NEWS: Brag about this.
1954
1955 2013-08-22 Pedro Alves <palves@redhat.com>
1956
1957 PR gdb/15871
1958 * corefile.c (target_xfer_memory_error): New function.
1959 (memory_error): Defer EIO to target_memory_error.
1960 (read_memory): Use target_xfer_partial, and handle finer-grained
1961 target xfer errors.
1962 * target.c (target_xfer_error_to_string): New function.
1963 (memory_xfer_partial_1): If memory is known to be
1964 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1965 (target_xfer_partial): Make extern.
1966 * target.h (enum target_xfer_error): New enum.
1967 (target_xfer_error_to_string): Declare function.
1968 (target_xfer_partial): Declare function.
1969 (struct target_ops) <xfer_partial>: Adjust describing comment.
1970
1971 2013-08-22 Alan Modra <amodra@gmail.com>
1972
1973 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1974 * configure.tgt: Likewise as targets.
1975
1976 2013-08-20 Doug Evans <dje@google.com>
1977
1978 * buildsym.c (subfile_stack): Move here from buildsym.h.
1979 (pending_macros): Ditto.
1980 (get_macro_table): New function.
1981 (buildsym_init): Initialize subfile_stack.
1982 * coffread.c (type_vector,type_vector_length): Moved here from
1983 buildsym.h.
1984 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1985 (coff_symtab_read): Use it.
1986 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1987 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1988 with call to get_macro_table.
1989 * stabsread.c (type_vector,type_vector_length): Moved here from
1990 buildsym.h.
1991 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1992 * buildsym.h (get_macro_table): Declare.
1993
1994 2013-08-20 Tom Tromey <tromey@redhat.com>
1995
1996 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1997 Update.
1998 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1999
2000 2013-08-20 Doug Evans <dje@google.com>
2001
2002 * blockframe.c: Remove #include "psymtab.h".
2003 * cp-support.c: Ditto.
2004 * source.c: Ditto.
2005 * stack.c: Ditto.
2006
2007 2013-08-20 Tom Tromey <tromey@redhat.com>
2008
2009 PR python/15816:
2010 * exceptions.h (return_mask): Now an enum.
2011 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2012 enum constants.
2013
2014 2013-08-20 Tom Tromey <tromey@redhat.com>
2015
2016 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2017 get_objfile_arch.
2018 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2019 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2020 * jit.c (jit_object_close_impl): Update.
2021 * jv-lang.c (get_dynamics_objfile): Update.
2022 * linespec.c (add_minsym): Use get_dynamics_objfile.
2023 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2024 (allocate_objfile): Don't initialize 'gdbarch' field.
2025 (get_objfile_arch): Update.
2026 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2027 moved from...
2028 (struct objfile) <gdbarch>: ... here. Remove.
2029 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2030 get_objfile_arch.
2031 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2032
2033 2013-08-20 Alan Modra <amodra@gmail.com>
2034
2035 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2036 for IBM long double nan and inf.
2037 (floatformat_is_negative, floatformat_classify,
2038 floatformat_mantissa): Similarly.
2039 (floatformat_ieee_single, floatformat_ieee_double,
2040 floatformat_ieee_quad, floatformat_arm_ext,
2041 floatformat_ia64_spill): Delete unused vars.
2042 (_initialize_doublest): Delete unused function.
2043 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2044 little-endian variants of floatformat_ibm_long_double.
2045
2046 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2047
2048 * Makefile.in (SFILES): Remove common/target-common.c and
2049 add target/waitstatus.c.
2050 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2051 target/resume.h, target/wait.h and target/waitstatus.h.
2052 (COMMON_OBS): Remove target-common.o and add
2053 waitstatus.o.
2054 (target-common.o): Remove.
2055 (waitstatus.o): New target object file.
2056 * common/target-common.c: Move contents to
2057 target/waitstatus.c and remove.
2058 * common/target-common.h: Move contents to other files and
2059 remove.
2060 (enum resume_kind: Move to target/resume.h.
2061 (TARGET_WNOHANG): Move to target/wait.h.
2062 (enum target_waitkind): Move to target/waitstatus.h.
2063 (struct target_waitstatus): Likewise.
2064 * target.h: Do not include target-common.h and
2065 include target/resume.h, target/wait.h and
2066 target/waitstatus.h.
2067 * target/resume.h: New file.
2068 * target/wait.h: New file.
2069 * target/waitstatus.h: New file.
2070 * target/waitstatus.c: New file.
2071
2072 2013-08-19 Pedro Alves <palves@redhat.com>
2073
2074 * linux-nat.c (linux_test_for_tracefork)
2075 (linux_test_for_tracesysgood, linux_child_follow_fork)
2076 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2077 (linux_nat_wait_1): Extend comment.
2078 (linux_async_pipe): Add comment.
2079
2080 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2081
2082 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2083 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2084 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2085 Update to account for fact that PC is now a pseudo-register.
2086 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2087 cases for RL78_PC_REGNUM.
2088
2089 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2090
2091 PR cli/15841
2092 * top.c (quit_force): Skip writing history file
2093 if input is not from terminal.
2094
2095 2013-08-14 Tom Tromey <tromey@redhat.com>
2096
2097 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2098 resultthreadlist>: New fields.
2099 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2100 (remote_get_threadlist, remote_threadlist_iterator): Use
2101 new fields. Remove static variables.
2102
2103 2013-08-14 Tom Tromey <tromey@redhat.com>
2104
2105 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2106 remote_watch_data_address>: New fields.
2107 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2108 (process_stop_reply, remote_wait_as)
2109 (remote_check_watch_resources, remote_stopped_data_address): Update.
2110
2111 2013-08-14 Tom Tromey <tromey@redhat.com>
2112
2113 * remote.c (struct remote_state) <async_client_callback,
2114 async_client_context>: New fields.
2115 (async_client_callback, async_client_context): Remove.
2116 (remote_async_serial_handler, remote_async): Update.
2117
2118 2013-08-14 Tom Tromey <tromey@redhat.com>
2119
2120 * remote.c (sizeof_pkt): Remove.
2121 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2122
2123 2013-08-14 Tom Tromey <tromey@redhat.com>
2124
2125 * remote.c (struct remote_state) <use_threadinfo_query,
2126 use_threadextra_query>: New fields.
2127 (remote_threads_info, remote_threads_extra_info)
2128 (remote_open_1): Update.
2129
2130 2013-08-14 Tom Tromey <tromey@redhat.com>
2131
2132 * remote.c (struct remote_state) <finished_object,
2133 finished_annex, finished_offset>: New fields.
2134 (remote_read_qxfer): Use remote_state fields; remove static
2135 variables.
2136
2137 2013-08-14 Tom Tromey <tromey@redhat.com>
2138
2139 * remote.c (struct remote_state) <last_sent_step>:
2140 New field.
2141 (last_sent_step): Remove.
2142 (remote_resume, remote_wait_as): Update.
2143
2144 2013-08-14 Tom Tromey <tromey@redhat.com>
2145
2146 * remote.c (struct remote_state) <last_sent_signal>:
2147 New field.
2148 (last_sent_signal): Remove.
2149 (new_remote_state, remote_resume, remote_wait_as): Update.
2150
2151 2013-08-14 Tom Tromey <tromey@redhat.com>
2152
2153 * remote.c (struct remote_state) <last_program_signals_packet>:
2154 New field.
2155 (last_program_signals_packet): Remove.
2156 (remote_program_signals, remote_open_1): Update.
2157
2158 2013-08-14 Tom Tromey <tromey@redhat.com>
2159
2160 * remote.c (struct remote_state) <last_pass_packet>:
2161 New field.
2162 (last_pass_packet): Remove.
2163 (remote_pass_signals, remote_open_1): Update.
2164
2165 2013-08-14 Tom Tromey <tromey@redhat.com>
2166
2167 * remote.c (struct remote_state) <remote_traceframe_number>:
2168 New field.
2169 (remote_traceframe_number): Remove.
2170 (new_remote_state, remote_open_1, set_remote_traceframe)
2171 (remote_trace_find): Update.
2172
2173 2013-08-14 Tom Tromey <tromey@redhat.com>
2174
2175 * remote.c (struct remote_state) <general_thread, continue_thread>:
2176 New fields.
2177 (general_thread, continue_thread): Remove.
2178 (record_currthread, set_thread, set_general_process)
2179 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2180 (extended_remote_mourn_1): Update.
2181
2182 2013-08-14 Tom Tromey <tromey@redhat.com>
2183
2184 * remote.c (struct remote_state) <remote_desc>: New field.
2185 (remote_desc): Remove.
2186 (remote_threads_info, remote_threads_extra_info, remote_close)
2187 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2188 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2189 (remote_hostio_send_command, remote_file_put, remote_file_get)
2190 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2191 (remote_async, remote_new_objfile, set_range_stepping): Update.
2192
2193 2013-08-14 Tom Tromey <tromey@redhat.com>
2194
2195 * remote.c (remote_state): Now a pointer.
2196 (get_remote_state_raw): Update.
2197 (new_remote_state): New function.
2198 (_initialize_remote): Use new_remote_state.
2199
2200 2013-08-14 Tom Tromey <tromey@redhat.com>
2201
2202 * remote.c (remote_protocol_features): Now const.
2203
2204 2013-08-14 Tom Tromey <tromey@redhat.com>
2205
2206 * remote.c (crc32_table, crc32): Remove.
2207 (remote_verify_memory): Use xcrc32.
2208
2209 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2210
2211 * value.h (create_internalvar_type_lazy): Adjust prototype
2212 declaration.
2213
2214 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2215
2216 * common/format.c (parse_format_string): Don't allow '#' flag for
2217 pointer arguments in format string.
2218
2219 2013-08-13 Pierre Muller <muller@sourceware.org>
2220
2221 * utils.c (init_page_info): Only call tgetnum function
2222 if rl_get_screen_size did not return useful values.
2223
2224 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2225
2226 PR breakpoints/15117
2227 * linespec.c (linespec_parse_basic): Check for convenience
2228 variable or history value while parsing.
2229
2230 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2231
2232 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2233 AVR.
2234 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2235 different signals between the generic Linux kernel implementation
2236 and AVR's.
2237 (avr_linux_gdb_signal_from_target): Delete.
2238 (avr_linux_gdb_signal_to_target): Delete.
2239 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2240
2241 2013-08-09 Doug Evans <dje@google.com>
2242
2243 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2244 entries.
2245
2246 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2247
2248 * linux-tdep.c: Define enum with generic signal numbers.
2249 (linux_gdb_signal_from_target): New function.
2250 (linux_gdb_signal_to_target): Likewise.
2251 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2252 methods to the functions above.
2253 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2254 (linux_gdb_signal_to_target): Likewise.
2255 * alpha-linux-tdep.c: Define new enum with signals different
2256 from generic Linux kernel.
2257 (alpha_linux_gdb_signal_from_target): New function.
2258 (alpha_linux_gdb_signal_to_target): Likewise.
2259 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2260 with the functions mentioned above.
2261 * avr-tdep.c: Define enum with differences between Linux kernel
2262 and AVR signals.
2263 (avr_linux_gdb_signal_from_target): New function.
2264 (avr_linux_gdb_signal_to_target): Likewise.
2265 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2266 the functions mentioned above.
2267 * sparc-linux-tdep.c: Define enum with differences between SPARC
2268 and generic Linux kernel signal numbers.
2269 (sparc32_linux_gdb_signal_from_target): New function.
2270 (sparc32_linux_gdb_signal_to_target): Likewise.
2271 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2272 to the functions defined above.
2273 * xtensa-linux-tdep.c: Define enum with differences between
2274 Xtensa and Linux kernel generic signals.
2275 (xtensa_linux_gdb_signal_from_target): New function.
2276 (xtensa_linux_gdb_signal_to_target): Likewise.
2277 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2278 to the functions defined above.
2279 * mips-linux-tdep.c: Define enum with differences between
2280 signals in MIPS and Linux kernel generic ones.
2281 (mips_gdb_signal_to_target): New function.
2282 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2283 only different signals from the Linux kernel generic.
2284 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2285 the functions defined above.
2286 * mips-linux-tdep.h (enum mips_signals): Remove.
2287
2288 2013-08-09 Pedro Alves <palves@redhat.com>
2289
2290 * avr-tdep.c (XMALLOC): Delete macro.
2291 * cli/cli-dump.c (XMALLOC): Delete macro.
2292
2293 2013-08-09 Pedro Alves <palves@redhat.com>
2294
2295 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2296 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2297 (fopen_with_cleanup, add_dump_command): Make static.
2298 * cli/cli-dump.h: Delete file.
2299 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2300 cli/cli-dump.h.
2301
2302 2013-08-09 Pedro Alves <palves@redhat.com>
2303
2304 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2305 error message.
2306
2307 2013-08-09 Pedro Alves <palves@redhat.com>
2308
2309 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2310 error message.
2311
2312 2013-08-09 Pedro Alves <palves@redhat.com>
2313
2314 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2315 (gcore_command): Use tilde_expand here, and when showing the
2316 filename to the user, show the expanded version.
2317
2318 2013-08-09 Yao Qi <yao@codesourcery.com>
2319
2320 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2321 'entryval' is set.
2322
2323 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2324
2325 * gcore.c (create_gcore_bfd): Use tilde_expand.
2326
2327 2013-08-08 Yao Qi <yao@codesourcery.com>
2328
2329 * frame.h (read_frame_local): Declare.
2330 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2331 read_frame_local.
2332 * stack.c (read_frame_local): New.
2333
2334 2013-08-08 Yao Qi <yao@codesourcery.com>
2335
2336 * mi/mi-cmd-stack.c: Update comments to function
2337 list_args_or_locals.
2338
2339 2013-08-07 Tom Tromey <tromey@redhat.com>
2340
2341 PR symtab/15028:
2342 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2343 (process_psymtab_comp_unit_reader): Use it.
2344 (process_psymtab_comp_unit): Update. Add "pretend_language"
2345 argument.
2346 (dwarf2_build_psymtabs_hard): Update.
2347 (scan_partial_symbols): Pass CU's language to
2348 process_psymtab_comp_unit.
2349
2350 2013-08-07 Tom Tromey <tromey@redhat.com>
2351
2352 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2353 (dwarf2_gdb_index_functions): Update.
2354 * psymtab.c (find_symbol_file_from_partial): Remove.
2355 (psym_functions): Update.
2356 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2357 Remove.
2358
2359 2013-08-07 Tom Tromey <tromey@redhat.com>
2360
2361 * symfile.c (set_initial_language): Look up "main" symbol
2362 and use its language.
2363 * symtab.c (find_main_filename): Remove.
2364 * symtab.h (find_main_filename): Remove.
2365
2366 2013-08-07 Tom Tromey <tromey@redhat.com>
2367
2368 * dwarf2read.c (recursively_compute_inclusions): Add
2369 "immediate_parent" argument. Set symtab's "user" field
2370 if not set.
2371 (compute_symtab_includes): Update.
2372
2373 2013-08-07 Tom Tromey <tromey@redhat.com>
2374
2375 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2376 when adding label symbols.
2377
2378 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2379 Ulrich Weigand <uweigand@de.ibm.com>
2380
2381 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2382 * configure.host (powerpc64-*-aix*): Likewise.
2383
2384 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2385 Ulrich Weigand <uweigand@de.ibm.com>
2386
2387 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2388 is defined.
2389 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2390 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2391 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2392 * configure.ac: Check for ptrace64.
2393 * configure, config.in: Regenerate.
2394
2395 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2396 Ulrich Weigand <uweigand@de.ibm.com>
2397
2398 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2399 Call ptrace64 instead of ptrace if defined.
2400 Add macro addr_ptr to take care of ptrace address argument.
2401 (pdc_read_regs): Likewise.
2402 (pdc_write_regs): Likewise.
2403 (aix_thread_resume): Likewise.
2404 (fetch_regs_kernel_thread): Likewise.
2405 (store_regs_kernel_thread): Likewise.
2406
2407 2013-08-07 Anton Blanchard <anton@samba.org>
2408
2409 * MAINTAINERS: Add myself to Write After Approval.
2410
2411 2013-08-05 Tom Tromey <tromey@redhat.com>
2412
2413 * aix-thread.c (_initialize_aix_thread): Use
2414 complete_target_initialization.
2415 * bsd-uthread.c (_initialize_bsd_uthread): Use
2416 complete_target_initialization.
2417 * dec-thread.c (_initialize_dec_thread): Use
2418 complete_target_initialization.
2419 * ravenscar-thread.c (_initialize_ravenscar): Use
2420 complete_target_initialization.
2421 * sol-thread.c (_initialize_sol_thread): Use
2422 complete_target_initialization.
2423 * spu-multiarch.c (_initialize_spu_multiarch): Use
2424 complete_target_initialization.
2425
2426 2013-08-05 Tom Tromey <tromey@redhat.com>
2427
2428 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2429 * ada-lang.c (ada_lookup_simple_minsym): Return
2430 bound_minimal_symbol.
2431 * ada-lang.h (ada_lookup_simple_minsym): Update.
2432 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2433 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2434 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2435 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2436 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2437 * minsyms.c (msymbol_objfile): Remove.
2438 (lookup_minimal_symbol_internal): New function, from
2439 lookup_minimal_symbol.
2440 (lookup_minimal_symbol): Rewrite using
2441 lookup_minimal_symbol_internal.
2442 (lookup_bound_minimal_symbol): New function.
2443 * minsyms.h (msymbol_objfile): Remove.
2444 (lookup_bound_minimal_symbol): Declare.
2445 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2446 * parse.c (write_exp_msymbol): Change parameter to a
2447 bound_minimal_symbol.
2448 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2449 * parser-defs.h (write_exp_msymbol): Update.
2450 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2451 * symfile.c (simple_read_overlay_table): Use
2452 lookup_bound_minimal_symbol.
2453 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2454 (search_symbols): Likewise.
2455 (print_msymbol_info): Take a bound_minimal_symbol argument.
2456 (symtab_symbol_info, rbreak_command): Update.
2457 * symtab.h (struct symbol_search) <msymbol>: Change type
2458 to bound_minimal_symbol.
2459 * valops.c (find_function_in_inferior): Use
2460 lookup_bound_minimal_symbol.
2461 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2462
2463 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 Code cleanup.
2466 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2467 to ...
2468 (async_cleanup_sigint_signal_handler): ... this.
2469 (initialize_sigint_signal_handler): Remove declaration.
2470 (handle_remote_sigint): Rename the declaration to ...
2471 (async_handle_remote_sigint): ... this.
2472 (handle_remote_sigint_twice): Rename the declaration to ...
2473 (async_handle_remote_sigint_twice): ... this.
2474 (async_remote_interrupt, async_remote_interrupt_twice)
2475 (remote_interrupt): Remove the declarations.
2476 (remote_interrupt_twice): Rename the declaration ...
2477 (sync_remote_interrupt_twice): ... this.
2478 (sigint_remote_twice_token): Rename the variable to ...
2479 (async_sigint_remote_twice_token): ... this.
2480 (sigint_remote_token): Rename the variable to ...
2481 (async_sigint_remote_token): ... this.
2482 (initialize_sigint_signal_handler): Rename the function to ...
2483 (async_initialize_sigint_signal_handler): ... this. Update the name
2484 inside.
2485 (handle_remote_sigint): Rename the function to ...
2486 (async_handle_remote_sigint): ... this. Update the names inside.
2487 (handle_remote_sigint_twice): Rename the function to ...
2488 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2489 (cleanup_sigint_signal_handler): Rename the function to ...
2490 (async_cleanup_sigint_signal_handler): ... this.
2491 (remote_interrupt): Rename the function to ...
2492 (sync_remote_interrupt): this. Update the names inside.
2493 (remote_interrupt_twice): Rename the function to ...
2494 (sync_remote_interrupt_twice): this. Update the names inside.
2495 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2496 (_initialize_remote): Update the names inside.
2497
2498 2013-08-02 Tom Tromey <tromey@redhat.com>
2499
2500 PR symtab/15719:
2501 * breakpoint.c (update_watchpoint, watchpoint_check)
2502 (watch_command_1): Update.
2503 * eval.c (fetch_subexp_value): Add "preserve_errors"
2504 parameter.
2505 * ppc-linux-nat.c (check_condition): Update.
2506 * value.h (fetch_subexp_value): Update.
2507
2508 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2509
2510 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2511 add_file_handler.
2512
2513 2013-08-01 Doug Evans <dje@google.com>
2514
2515 PR symtab/15691
2516 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2517 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2518 Add assert of sig_entry->dwo_unit == NULL.
2519 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2520 had already been read.
2521 (read_signatured_type): Set per_cu.tu_read.
2522
2523 PR symtab/15695
2524 * valops.c (value_struct_elt): Add missing call to check_typedef.
2525 (value_find_oload_method_list): Ditto.
2526
2527 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2528 effectively, struct symbol_search **.
2529 (make_cleanup_free_search_symbols): Change arg to struct
2530 symbol_search **. All callers updated.
2531 (compare_search_syms): Compare symtab file name and block as well.
2532 (search_symbols_equal): New function.
2533 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2534 New args new_head, new_tail. Result is now void. Remove dups after
2535 sorting the symbols.
2536 (search_symbols): Sort all found symbols once, after all have been
2537 found, and remove duplicates. Simplify cleanup tracking of result.
2538 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2539
2540 Further workarounds for binutils/15021.
2541 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2542 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2543 Watch for duplicate symtabs coming from type units.
2544 (compute_symtab_includes): Update call to
2545 recursively_compute_inclusions. Build vector of included symtabs
2546 instead of per_cus.
2547 * symtab.h (symtab_ptr): New typedef.
2548 (DEF_VEC_P (symtab_ptr)): New VEC type.
2549 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2550 instead.
2551
2552 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2553
2554 * cli/cli-script.c (script_from_file): Remove use of
2555 error_pre_print.
2556 * main.c (captured_main): Remove use of error_pre_print and
2557 quit_pre_print.
2558 * utils.c (error_pre_print, quit_pre_print): Remove.
2559 * utils.h (error_pre_print, quit_pre_print): Likewise.
2560
2561 2013-08-01 Yao Qi <yao@codesourcery.com>
2562
2563 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2564 with mi_getopt.
2565 (mi_cmd_stack_list_variables): Likewise.
2566
2567 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2568
2569 * exceptions.c (deprecated_throw_reason): Remove.
2570 * exceptions.h (deprecated_throw_reason): Remove.
2571
2572 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2573
2574 * remote-mips.c (mips_error): Replace use of
2575 deprecated_throw_reason with throw_verror. Use the error message
2576 passed to mips_error as the error message for throw_verror.
2577
2578 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2579
2580 * monitor.c (monitor_interrupt_query): Replace use of
2581 deprecated_throw_reason with quit.
2582 * nto-procfs.c (interrupt_query): Likewise.
2583 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2584 * remote-mips.c (mips_kill): Likewise.
2585 * remote.c (interrupt_query): Likewise.
2586
2587 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2588
2589 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2590 with call to fatal.
2591
2592 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2593 Yao Qi <yao@codesourcery.com>
2594
2595 * tracepoint.c (trace_dump_command): Select the current frame.
2596
2597 2013-07-30 Doug Evans <dje@google.com>
2598
2599 * dwarf2read.c (process_queue): Add type signature to debug output.
2600
2601 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2602
2603 * value.c (value_fetch_lazy): Mark optimized out values as such
2604 rather than raising an error.
2605
2606 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2607
2608 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2609 before checking which bits of the parent, not the child, value are
2610 valid.
2611
2612 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2613
2614 PR gdb/15715
2615 * top.c: Include "filenames.h".
2616 (set_history_filename): New function.
2617 (init_main): Install it as set hook of the "set history filename"
2618 command.
2619
2620 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2621
2622 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2623 attribute parameter.
2624 (dwarf2_const_value_data): Constify struct attribute parameter.
2625 (dwarf2_const_value): Constify struct attribute parameter.
2626 (dwarf2_const_value_attr): Constify struct attribute parameter.
2627 (lookup_die_type): Constify struct attribute parameter.
2628 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2629 (follow_die_ref_or_sig): Constify struct attribute parameter.
2630 (follow_die_ref): Constify struct attribute parameter.
2631 (follow_die_sig): Constify struct attribute parameter.
2632 (get_DW_AT_signature_type): Constify struct attribute parameter.
2633 (get_type_unit_group): Constify struct attribute parameter.
2634 (fill_in_loclist_baton): Constify struct attribute parameter.
2635 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2636 (type_unit_group): Constify struct attribute parameter.
2637
2638 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2639
2640 * dwarf2read.c (attr_form_is_block): Make argument const.
2641 (attr_form_is_section_offset): Make argument const.
2642 (attr_form_is_constant): Make argument const.
2643 (attr_form_is_ref): Make argument const.
2644
2645 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2646
2647 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2648 All uses updated.
2649 (attr_form_is_ref): Moved below attr_form_is_constant.
2650
2651 2013-07-29 Doug Evans <dje@google.com>
2652
2653 * main.c (captured_command_loop): Tweak comment.
2654
2655 * target.c (target_async_permitted_1): Fix comment.
2656
2657 * symtab.c (iterate_over_some_symtabs): Add comment.
2658
2659 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2660
2661 2013-07-27 Yao Qi <yao@codesourcery.com>
2662
2663 * NEWS: Mention that GDBserver now supports hardware
2664 watchpoints on the MIPS GNU/Linux target.
2665
2666 2013-07-27 Yao Qi <yao@codesourcery.com>
2667
2668 * Makefile.in (HFILES_NO_SRCDIR): Add
2669 common/mips-linux-watch.h.
2670 (mips-linux-watch.o): New rule.
2671 * common/mips-linux-watch.c: New.
2672 * common/mips-linux-watch.h: New.
2673 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2674 * mips-linux-nat.c: Include mips-linux-watch.h.
2675 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2676 to common/mips-linux-watch.h.
2677 (MAX_DEBUG_REGISTER): Likewise.
2678 (enum pt_watch_style): Likewise.
2679 (struct mips32_watch_regs): Likewise.
2680 (struct mips64_watch_regs): Likewise.
2681 (struct pt_watch_regs): Likewise.
2682 (struct mips_watchpoint): Likewise.
2683 (mips_linux_watch_get_irw_mask): Move to
2684 common/mips-linux-watch.c.
2685 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2686 (mips_linux_watch_get_watchlo): Likewise.
2687 (mips_linux_watch_set_watchlo): Likewise.
2688 (mips_linux_watch_get_watchhi): Likewise.
2689 (mips_linux_watch_set_watchhi): Likewise.
2690 (mips_linux_read_watch_registers): Likewise.
2691 (mips_linux_watch_type_to_irw): Likewise.
2692 (mips_linux_stopped_data_address, fill_mask): Likewise.
2693 (mips_linux_watch_try_one_watch): Likewise.
2694 (mips_linux_watch_populate_regs): Likewise.
2695
2696 2013-07-27 Yao Qi <yao@codesourcery.com>
2697
2698 * mips-linux-nat.c (get_irw_mask): Rename to ...
2699 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2700 'set' to 'n'. Update function comment. All callers changed.
2701 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2702 function comment. All callers changed.
2703 (get_num_valid): Rename to ...
2704 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2705 'set' to 'n'. Update function comment. All callers changed.
2706 (get_watchlo): Rename to ...
2707 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2708 'set' to 'n'. Update function comment. All callers changed.
2709 (set_watchlo): Rename to ...
2710 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2711 'set' to 'n'. Update function comment. All callers changed.
2712 (get_watchhi): Rename to ...
2713 (mips_linux_watch_get_watchhi): ... this. Update function
2714 comment. All callers changed.
2715 (set_watchhi): Rename to ...
2716 (mips_linux_watch_set_watchhi): ... this. Update function
2717 comment. All callers changed.
2718 (mips_linux_read_watch_registers): Update function comment.
2719 Add new parameters 'lwpid', 'watch_readback', and
2720 'watch_readback_valid'. Update.
2721 (type_to_irw): Rename to ...
2722 (mips_linux_watch_type_to_irw): ... this. Update function
2723 comment. All callers changed.
2724 (fill_mask): Update function comment.
2725 (try_one_watch): Rename to ...
2726 (mips_linux_watch_try_one_watch): ... this. Change the type
2727 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2728 (populate_regs_from_watches): Rename to ...
2729 (mips_linux_watch_populate_regs): ... this. Add parameter
2730 'current_watches'. All callers changed.
2731
2732 2013-07-27 Yao Qi <yao@codesourcery.com>
2733
2734 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2735 the code.
2736 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2737 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2738 (struct pt_watch_regs): Likewise.
2739 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2740 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2741 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2742 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2743 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2744
2745 2013-07-27 Yao Qi <yao@codesourcery.com>
2746
2747 * breakpoint.h: Include break-common.h.
2748 (enum target_hw_bp_type): Move to ...
2749 * common/break-common.h: ... here. New.
2750
2751 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2752
2753 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2754 process group regardless of having tty on stdin.
2755
2756 2013-07-25 Doug Evans <dje@google.com>
2757
2758 * linux-fork.h (detach_fork): Delete.
2759
2760 2013-07-25 Tom Tromey <tromey@redhat.com>
2761
2762 PR remote/15256, PR remote/15266:
2763 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2764 * monitor.c (monitor_detach): Use unpush_target.
2765 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2766 * remote-mips.c (mips_detach): Use unpush_target. Don't
2767 call mips_close.
2768 * remote-sim.c (gdbsim_detach): Use unpush_target.
2769 * target.c (pop_target): Remove.
2770 (pop_all_targets_above): Don't call target_close.
2771 (target_close): Assert that the target is unpushed.
2772 * target.h (pop_target): Don't declare.
2773 * tracepoint.c (tfile_open): Use unpush_target.
2774
2775 2013-07-25 Tom Tromey <tromey@redhat.com>
2776
2777 * linux-thread-db.c (init_thread_db_ops): Call
2778 complete_target_initialization.
2779 (_initialize_thread_db): Don't call add_target.
2780 * target.c (complete_target_initialization): New function.
2781 (add_target_with_completer): Call it.
2782 * target.h (complete_target_initialization): Declare.
2783
2784 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2785
2786 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2787 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2788 (HPPANBSD_SIZEOF_GREGS): New define.
2789 (hppaobsd_supply_gregset): Handle additional registers.
2790 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2791 we provide more registers now.
2792 (hppabsd_supply_gregset): Supply additional registers.
2793 (hppabsd_collect_gregset): Collect additional registers.
2794
2795 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2796
2797 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2798 (hppabsd_dwarf2_frame_init_reg): New function.
2799 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2800
2801 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2802
2803 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2804 'z' format code. Remove error for optimized out values, standard
2805 code will handle these fine.
2806
2807 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2808
2809 * NEWS: Mention new 'z' formatter.
2810 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2811 (_initialize_printcmd): Mention 'z' formatter in help text of the
2812 'x' command.
2813
2814 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2815
2816 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2817 formatting.
2818
2819 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2820
2821 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2822 interface can evaluate arguments. Fallback to the old mode if it
2823 cannot.
2824 (create_exception_master_breakpoint): Likewise.
2825 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2826 (struct sym_probe_fns elf_probe_fns): Export function above to the
2827 probe interface.
2828 * probe.c (can_evaluate_probe_arguments): New function.
2829 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2830 function pointer.
2831 (can_evaluate_probe_arguments): New function prototype.
2832 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2833 probe interface can evaluate arguments. Fallback to the old mode
2834 if it cannot.
2835 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2836 interface can evaluate arguments. Warning the user if it cannot.
2837 (stap_can_evaluate_probe_arguments): New function.
2838 (struct probe_ops stap_probe_ops): Export function above to the
2839 probe interface.
2840 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2841 New function pointer.
2842
2843 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
2844
2845 * Makefile.in (SFILES): Add common/target-common.c.
2846 Add common/target-common.h to headers.
2847 (COMMON_OBS): Add target-common.o.
2848 (target-common.o): New target.
2849 * linux-nat.h (resume_kind): Move to common/target-common.h.
2850 * target.c (target_waitstatus_to_string): Move to
2851 common/target-common.c.
2852 * target.h: Include target-common.h.
2853 (target_waitkind): Move to common/target-common.h.
2854 (target_waitstatus): Likewise.
2855 (TARGET_WNOHANG): Likewise.
2856 * common/target-common.c: New file.
2857 * common/target-common.h: New file.
2858
2859 2013-07-24 Doug Evans <dje@google.com>
2860
2861 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2862 a warning.
2863
2864 2013-07-23 Yao Qi <yao@codesourcery.com>
2865
2866 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2867 parameter 'gdbarch'.
2868 (i386_stack_tramp_frame_sniffer): Caller update.
2869 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2870 parameter 'gdbarch' and 'target'.
2871 (i386_linux_core_read_description): Caller update.
2872 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2873 Likewise.
2874 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2875 declaration.
2876
2877 2013-07-23 Tom Tromey <tromey@redhat.com>
2878
2879 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2880 2013-07-22.
2881
2882 2013-07-22 Doug Evans <dje@google.com>
2883
2884 * exec.h (remove_target_sections): Delete arg abfd.
2885 * exec.c (exec_close): Update call to remove_target_sections.
2886 (remove_target_sections): Delete arg abfd.
2887 * solib.c (update_solib_list): Ditto.
2888 (reload_shared_libraries_1): Ditto.
2889 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2890 * target.h (struct target_section): Rename key to owner.
2891 All uses updated.
2892
2893 2013-07-22 Tom Tromey <tromey@redhat.com>
2894
2895 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2896
2897 2013-07-22 Tom Tromey <tromey@redhat.com>
2898
2899 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2900 Simplify cleanup handling.
2901
2902 2013-07-22 Tom Tromey <tromey@redhat.com>
2903
2904 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2905 on all return paths.
2906
2907 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2908
2909 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2910 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2911 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2912
2913 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2914
2915 * top.c (print_gdb_version): Add help, apropos description and
2916 url to online documentation.
2917
2918 2013-07-19 Hui Zhu <hui@codesourcery.com>
2919
2920 PR gdb/15692
2921 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2922
2923 2013-07-19 Yao Qi <yao@codesourcery.com>
2924
2925 * target.c (update_current_target): Change the default action
2926 of 'to_traceframe_info' from tcomplain to return_zero.
2927 * target.h (struct target_ops) <to_traceframe_info>: Add more
2928 comments.
2929 * valops.c (read_value_memory): Call
2930 traceframe_available_memory unconditionally.
2931
2932 2013-07-18 Yao Qi <yao@codesourcery.com>
2933
2934 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2935 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2936 symbol without prefix. If found, set its type to
2937 'mst_solib_trampoline'.
2938
2939 2013-07-17 Doug Evans <dje@google.com>
2940
2941 * NEWS: Mention "set print raw frame-arguments".
2942 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2943 * stack.c (print_raw_frame_arguments): New static global.
2944 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2945 (_initialize_stack): New command "set/show print raw frame-arguments".
2946 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2947 (set_print_raw, show_print_raw): New functions.
2948 (_initialize_valprint): New prefix command "set/show print raw".
2949 * valprint.h (value_print_options): Improve comments.
2950
2951 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2952 of all *list variables.
2953
2954 * gdbcmd.h (togglelist): Delete.
2955 * cli/cli-cmds.c (togglelist): Delete.
2956 (init_cmd_lists): Update.
2957 * cli/cli-cmds.h (togglelist): Delete.
2958
2959 2013-07-17 Tom Tromey <tromey@redhat.com>
2960
2961 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2962 dwarf2_per_objfile.
2963
2964 2013-07-16 Doug Evans <dje@google.com>
2965
2966 * nto-tdep.c (nto_relocate_section_addresses): Update,
2967 target_section.bfd deleted.
2968 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2969 * s390-tdep.c (s390_load): Ditto.
2970 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2971
2972 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
2973
2974 * common/format.c (parse_format_string): Add checks for NULL
2975 character before calling strchr.
2976
2977 2013-07-16 Doug Evans <dje@google.com>
2978
2979 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2980 temp_pathname argument.
2981 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2982 when opening the file fails.
2983
2984 * target.h (struct target_section): Delete member bfd.
2985 All users updated to use the_bfd_section->owner instead.
2986 * exec.c (add_to_section_table): Assert bfd is expected value.
2987 Remove initialization of target_section.bfd.
2988 (remove_target_sections): Update.
2989 (section_table_available_memory): Update.
2990 (section_table_xfer_memory_partial): Update.
2991 (print_section_info): Update.
2992 (exec_set_section_address): Update.
2993 * record-full.c (record_full_core_xfer_partial): Update.
2994 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2995 * solib-target.c (solib_target_relocate_section_addresses): Update.
2996 * symfile.c (build_section_addr_info_from_section_table): Update.
2997 * target.c (memory_xfer_live_readonly_partial): Update.
2998 (memory_xfer_partial_1): Update.
2999
3000 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3001
3002 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3003 now available for embedded (BookE) and server (BookS) processors,
3004 correct mentions of 'booke' and adjust comments accordingly in order to
3005 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3006 (have_ptrace_booke_interface): Rename function and variable
3007 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3008 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3009 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3010 'hwdebug_point_cmp'. Update all uses.
3011 (booke_find_thread_points_by_tid): Rename function
3012 'booke_find_thread_points_by_tid' to
3013 'hwdebug_find_thread_points_by_tid'. Update all uses.
3014 (booke_insert_point): Rename function 'booke_insert_point' to
3015 'hwdebug_insert_point'. Update all uses.
3016 (booke_remove_point): Rename function 'booke_remove_point' to
3017 'hwdebug_remove_point'. Update all uses.
3018
3019 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3020
3021 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3022 numbers with enum values.
3023
3024 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3025
3026 PR threads/13217
3027 * thread.c (thread_apply_all_command): Check for valid threads
3028 and thread count.
3029 (thread_array_cleanup): New struct.
3030 (set_thread_refcount): New function.
3031
3032 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3033
3034 * infcmd.c (default_print_one_register_info): Reuse function
3035 print_hex_chars.
3036
3037 2013-07-10 Tom Tromey <tromey@redhat.com>
3038
3039 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3040 (ada-exp.o): New target.
3041
3042 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3043
3044 * mt-tdep.c (mt_registers_info): Call
3045 get_no_prettyformat_print_options instead of
3046 get_raw_print_options (regression by last patch from Doug
3047 Evans).
3048
3049 2013-07-09 Pedro Alves <palves@redhat.com>
3050
3051 Checked in by Joel Brobecker <brobecker@adacore.com>.
3052 * ada-lang.c (coerce_unspec_val_to_type): Use
3053 value_optimized_out_const.
3054 * value.c (value_optimized_out_const): New function.
3055 * value.h (value_optimized_out_const): New declaration.
3056
3057 2013-07-09 Doug Evans <dje@google.com>
3058
3059 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3060 Enum values rename as well. All uses updated.
3061 * valprint.h (value_print_options): Rename member pretty to
3062 pretty format. Rename member prettyprint_arrays to
3063 prettyformat_arrays. Rename member prettyprint_structs to
3064 prettyformat_structs. All uses updated.
3065 (get_no_prettyformat_print_options): Renamed from
3066 get_raw_print_options.
3067 * valprint.c (get_no_prettyformat_print_options): Renamed from
3068 get_raw_print_options. All callers updated.
3069 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3070 All callers updated.
3071 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3072 All callers updated.
3073 (_initialize_valprint): Improve help text for "set print pretty" and
3074 "set print arrays".
3075
3076 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3077
3078 * value.c (value_bits_valid): Revert previous change, and change
3079 by Pedro on 2013-07-04, due to regressions in
3080 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3081
3082 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3083 Pedro Alves <palves@redhat.com>
3084
3085 * value.c (value_bits_valid): If the value is not lval_computed
3086 or has no check validity handler then the answer is the
3087 optimized_out flag, otherwise defer to the handler.
3088
3089 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3090
3091 * top.c (print_gdb_configuration): Explain in output of
3092 --configuration what does "relocatable" mean.
3093
3094 * main.c (print_gdb_help): Regroup options in the --help text.
3095 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3096 the relevant discussions.
3097
3098 2013-07-06 Yao Qi <yao@codesourcery.com>
3099
3100 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3101 Remove parameter 'lsal'.
3102 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3103 to inner block. Caller update.
3104 (base_breakpoint_create_breakpoints_sal): Update.
3105 (bkpt_create_breakpoints_sal): Likewise.
3106 (tracepoint_create_breakpoints_sal): Likewise.
3107 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3108 element 0 of vector 'canonical->sals'.
3109
3110 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3111
3112 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3113 register number instead of the pseudo register one.
3114 (rs6000_dwarf2_reg_to_regnum): Likewise.
3115
3116 2013-07-04 Pedro Alves <palves@redhat.com>
3117
3118 * findvar.c (value_of_register): Use allocate_optimized_out_value
3119 if the register has been optimized out, instead of
3120 set_value_optimized_out.
3121 * frame-unwind.c (frame_unwind_got_optimized): Use
3122 allocate_optimized_out_value.
3123
3124 2013-07-04 Pedro Alves <palves@redhat.com>
3125
3126 * value.c (value_bits_valid): If the value is not lval_computed,
3127 or doesn't have a check_validity hook, assume the value is entirely
3128 valid.
3129
3130 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3131
3132 * stack.c (read_frame_arg): No longer fetch lazy values.
3133 * value.c (value_optimized_out): If the value is not already
3134 marked optimized out, and is lazy then fetch it.
3135 (value_primitive_field): Move optimized out check to later in the
3136 function, after we have loaded any lazy values.
3137 (value_fetch_lazy): Use optimized out flag directly rather than
3138 calling optimized_out method.
3139
3140 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3141
3142 * valops.c: Don't include "user-regs.h".
3143 (value_fetch_lazy): Moved to value.c.
3144 * value.c: Include "user-regs.h".
3145 (value_fetch_lazy): Moved from valops.c.
3146
3147 2013-07-04 Yao Qi <yao@codesourcery.com>
3148
3149 Revert:
3150 2013-06-27 Yao Qi <yao@codesourcery.com>
3151
3152 * common/create-version.sh: Update comments. Handle the case
3153 that TARGET_ALIAS is empty.
3154
3155 2013-07-03 Pedro Alves <palves@redhat.com>
3156
3157 * Makefile.in (config.status): Depend on development.sh.
3158 (aclocal_m4_deps): Add libmcheck.m4.
3159 * acinclude.m4: Include libmcheck.m4.
3160 * configure.ac: Source development.sh instead of setting
3161 'development' here. --enable-libmcheck/--disable-libmcheck code
3162 factored out to GDB_AC_LIBMCHECK. Run it.
3163 * development.sh: New file.
3164 * libmcheck.m4: New file.
3165 * configure: Regenerate.
3166
3167 2013-07-02 Tom Tromey <tromey@redhat.com>
3168
3169 * contrib/ari/update-web-ari.sh: Update for version.in change.
3170
3171 2013-07-02 Tom Tromey <tromey@redhat.com>
3172
3173 * common/ptid.h: Comment fixes.
3174
3175 2013-07-01 Tom Tromey <tromey@redhat.com>
3176
3177 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3178 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3179 (dwarf2_read_index, create_all_comp_units): Update.
3180
3181 2013-07-01 Tom Tromey <tromey@redhat.com>
3182
3183 * configure.ac (build_warnings): Add -Wold-style-definition.
3184 * configure: Rebuild.
3185 * machoread.c (_initialize_machoread): Use "(void)".
3186 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3187 use "(void)".
3188
3189 2013-07-01 Tom Tromey <tromey@redhat.com>
3190
3191 * configure.ac (build_warnings): Add -Wold-style-declaration.
3192 * configure: Rebuild.
3193 * dsrec.c (make_srec): Use "static const", not "const static".
3194 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3195 not "const static".
3196 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3197 Use "static const", not "const static".
3198 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3199 not "const static".
3200 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3201 not "const static".
3202 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3203 not "const static".
3204 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3205 not "const static".
3206 (v850_dbtrap_breakpoint_from_pc): Likewise.
3207 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3208 not "const static".
3209
3210 2013-07-01 Tom Tromey <tromey@redhat.com>
3211
3212 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3213 * configure: Rebuild.
3214
3215 2013-07-01 Pedro Alves <palves@redhat.com>
3216
3217 * defs.h: Include "pathmax.h".
3218 * utils.c: Don't include sys/param.h.
3219 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3220 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3221 instead of MAXPATHLEN.
3222 * solib-sunos.c: Don't include sys/param.h.
3223 * xcoffread.c: Don't include sys/param.h.
3224 * bsd-kvm.c: Don't include sys/param.h.
3225 * darwin-nat.c: Don't include sys/param.h.
3226 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3227 * darwin-nat-info.c: Don't include sys/param.h.
3228 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3229 MAXPATHLEN.
3230 * i386obsd-nat.c: Don't include sys/param.h.
3231 * inf-child.c: Don't include sys/param.h.
3232 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3233 * linux-fork.c: Don't include sys/param.h.
3234 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3235 * linux-nat.c: Don't include sys/param.h.
3236 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3237 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3238 * m68klinux-nat.c: Don't include sys/param.h.
3239 * nbsd-nat.c: Don't include sys/param.h.
3240 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3241 * ppc-linux-nat.c: Don't include sys/param.h.
3242 * rs6000-nat.c: Don't include sys/param.h.
3243 * spu-linux-nat.c. Don't include sys/param.h.
3244 * windows-nat.c: Don't include sys/param.h.
3245 * xtensa-linux-nat.c: Don't include sys/param.h.
3246 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3247
3248 2013-07-01 Pedro Alves <palves@redhat.com>
3249
3250 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3251 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3252 * gnulib/aclocal.m4: Regenerate.
3253 * gnulib/config.in: Regenerate.
3254 * gnulib/configure: Regenerate.
3255 * gnulib/import/pathmax.h: New file.
3256 * gnulib/import/Makefile.am: Regenerate.
3257 * gnulib/import/Makefile.in: Regenerate.
3258 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3259 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3260 * gnulib/import/m4/pathmax.m4: New file.
3261
3262 2013-07-01 Pedro Alves <palves@redhat.com>
3263
3264 * configure.ac (GDBINIT): Define, depending on host.
3265 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3266 * top.c (PATH_MAX): Delete fallback definition.
3267 (GDBINIT_FILENAME): Delete.
3268 (gdbinit): Reimplement as const char array set to the GDBINIT
3269 string constant.
3270 * top.h (gdbinit): Make const.
3271 * configure, config.in: Regenerate.
3272
3273 2013-07-01 Pedro Alves <palves@redhat.com>
3274
3275 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3276 * cli/cli-cmds.h (source_script): Likewise.
3277 * exceptions.c (catch_command_errors_const): New function.
3278 * exceptions.h (catch_command_errors_const): Declare.
3279 * main.c (get_init_files): Make parameters const, and adjust.
3280 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3281 'local_gdbinit' locals const. Adjust to use
3282 catch_command_errors_const.
3283 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3284 'local_gdbinit' locals const.
3285
3286 2013-07-01 Pedro Alves <palves@redhat.com>
3287
3288 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3289 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3290 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3291 <unistd.h>.
3292
3293 2013-07-01 Pedro Alves <palves@redhat.com>
3294
3295 Import the "unistd" gnulib module.
3296 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3297 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3298 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3299 import/m4/unistd_h.m4.
3300 * gnulib/aclocal.m4: Renenerate.
3301 * gnulib/config.in: Renenerate.
3302 * gnulib/configure: Renenerate.
3303 * gnulib/import/Makefile.am: Renenerate.
3304 * gnulib/import/Makefile.in: Renenerate.
3305 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3306 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3307 * gnulib/import/m4/off_t.m4: New file.
3308 * gnulib/import/m4/ssize_t.m4: New file.
3309 * gnulib/import/m4/sys_types_h.m4: New file.
3310 * gnulib/import/m4/unistd_h.m4: New file.
3311 * gnulib/import/sys_types.in.h: New file.
3312 * gnulib/import/unistd.c: New file.
3313 * gnulib/import/unistd.in.h: New file.
3314
3315 2013-07-01 Pedro Alves <palves@redhat.com>
3316
3317 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3318 defined instead of checking HAVE_UNISTD_H.
3319
3320 2013-07-01 Pedro Alves <palves@redhat.com>
3321
3322 Reimport gnulib from scratch.
3323 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3324 import/m4/onceonly.m4.
3325 * gnulib/aclocal.m4: Renegerate.
3326 * gnulib/config.in: Renegerate.
3327 * gnulib/configure: Renegerate.
3328 * gnulib/import/Makefile.in: Renegerate.
3329 * gnulib/import/extra/update-copyright: Renegerate.
3330 * gnulib/import/m4/onceonly.m4: Delete.
3331
3332 2013-07-01 Pedro Alves <palves@redhat.com>
3333
3334 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3335
3336 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 Code cleanup.
3339 * remote.c (async_remote_interrupt_twice): Make it static.
3340 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3341
3342 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3343
3344 * ia64-linux-tdep.c: Include <ctype.h>.
3345 (ia64_linux_stap_is_single_operand): New function.
3346 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3347
3348 2013-06-28 Tom Tromey <tromey@redhat.com>
3349
3350 * Makefile.in (version.c): Use version.in, not
3351 common/version.in.
3352 * common/create-version.sh: Likewise.
3353 * common/version.in: Move...
3354 * version.in: ...here.
3355
3356 2013-06-28 Pedro Alves <palves@redhat.com>
3357
3358 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3359 here.
3360 * utils.h (pagination_enabled): Declare.
3361
3362 2013-06-28 Pedro Alves <palves@redhat.com>
3363
3364 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3365 Move higher up in file.
3366
3367 2013-06-28 Tom Tromey <tromey@redhat.com>
3368
3369 * tracepoint.c (deprecated_readline_begin_hook)
3370 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3371 declare.
3372
3373 2013-06-28 Pedro Alves <palves@redhat.com>
3374
3375 PR tui/14880
3376 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3377 checking if they're available.
3378 * value.c (value_available_contents_eq): Change comment.
3379 * value.h (value_available_contents_eq): Expand comment.
3380
3381 2013-06-27 Tom Tromey <tromey@redhat.com>
3382
3383 * target.c (find_run_target): Remove.
3384 * target.h (find_run_target): Remove.
3385
3386 2013-06-27 Tom Tromey <tromey@redhat.com>
3387
3388 * corelow.c (core_gdbarch): Now static.
3389
3390 2013-06-27 Tom Tromey <tromey@redhat.com>
3391
3392 * target.c (target_struct_index): Remove.
3393
3394 2013-06-27 Pedro Alves <palves@redhat.com>
3395
3396 * infrun.c: Remove comment describing the 'stepping over runtime
3397 loader dynamic symbol resolution code' mechanism; moved to
3398 gdbint.texinfo.
3399
3400 2013-06-27 Pedro Alves <palves@redhat.com>
3401
3402 * exceptions.c (catch_command_errors): Remove spurious space.
3403 * exceptions.h (catch_command_errors): Second parameter is "arg",
3404 not "command".
3405
3406 2013-06-27 Yao Qi <yao@codesourcery.com>
3407
3408 * common/create-version.sh: Update comments. Handle the case
3409 that TARGET_ALIAS is empty.
3410
3411 2013-06-26 Pedro Alves <palves@redhat.com>
3412
3413 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3414 comment.
3415
3416 2013-06-26 Pedro Alves <palves@redhat.com>
3417
3418 * infrun.c: Update comments on stepping over runtime loader
3419 dynamic symbol resolution code.
3420
3421 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3422
3423 * ax-gdb.h (union exp_element): Forward declare.
3424 * parser-defs.h: Include expression.h.
3425
3426 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3427
3428 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3429
3430 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3431
3432 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3433
3434 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3435
3436 Fix trace-status to output proper start-time and stop-time.
3437 * tracepoint.c (trace_status_command): Fix type of printf arg to
3438 prevent improper type conversion.
3439 (trace_status_mi): Likewise.
3440
3441 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3442
3443 * mips-tdep.c (mips_next_pc): Fix a typo.
3444
3445 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3446
3447 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3448
3449 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3450 Yao Qi <yao@codesourcery.com>
3451
3452 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3453 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3454 * mi/mi-main.c (print_variable_or_computed): New function.
3455 (mi_cmd_trace_frame_collected): New function.
3456 * tracepoint.c (find_trace_state_variable_by_number): New.
3457 (struct traceframe_info): Move to tracepoint.h
3458 (struct collection_list): Likewise.
3459 (do_collect_symbol): Include locals and arguments in the
3460 collected variables list.
3461 (clear_collection_list): Clear wholly collected variables list
3462 and computed variables list.
3463 (append_exp): New function.
3464 (encode_actions_1): Include variables in the wholly
3465 collected variables list. Include memory ranges and
3466 full-fledged expressions in the computed expressions list.
3467 (encode_actions): Move some code to ...
3468 Return the cleanup chain.
3469 (encode_actions_rsp): ... here. New function.
3470 (get_traceframe_location, get_traceframe_info): Remove static.
3471 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3472 (struct collection_list): Moved from tracepoint.c. Add two
3473 new fields 'wholly_collected' and 'computed'.
3474 (find_trace_state_variable_by_number): Declare.
3475 (encode_actions): Adjust declaration.
3476 (encode_actions_rsp): Declare.
3477 (get_traceframe_info, get_traceframe_location): Declare.
3478
3479 * NEWS: Mention new MI command -trace-frame-collected.
3480
3481 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3482 Yao Qi <yao@codesourcery.com>
3483
3484 * ctf.c (ctf_traceframe_info): Push trace state variables
3485 present in the trace data into the traceframe info object.
3486 * breakpoint.c (DEF_VEC_I): Remove.
3487 * common/filestuff.c (DEF_VEC_I): Likewise.
3488 * dwarf2loc.c (DEF_VEC_I): Likewise.
3489 * mi/mi-main.c (DEF_VEC_I): Likewise.
3490 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3491 * features/traceframe-info.dtd: Add tvar element and its
3492 attributes.
3493 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3494 (build_traceframe_info): Push trace state variables present in
3495 the trace data into the traceframe info object.
3496 (traceframe_info_start_tvar): New function.
3497 (tvar_attributes): New.
3498 (traceframe_info_children): Add "tvar" element.
3499 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3500
3501 * NEWS: Mention the change in GDB and GDBserver.
3502
3503 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3504 Yao Qi <yao@codesourcery.com>
3505
3506 * tracepoint.c (trace_dump_command): Move code to ...
3507 (get_traceframe_location): ... here. New.
3508
3509 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3510 Yao Qi <yao@codesourcery.com>
3511
3512 * tracepoint.c (trace_dump_command): GDB emits an error
3513 instead of a warning when a traceframe is not selected.
3514
3515 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3516 Yao Qi <yao@codesourcery.com>
3517
3518 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3519 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3520 in collection_list.
3521 (do_clear_collection_list, init_collection_list): New.
3522 (encode_actions): Add local variables 'tracepoint_list' and
3523 'stepping_list'. Call init_collection_list and make cleanup
3524 which calls do_clear_collection_list. Don't call
3525 clear_collection_list.
3526 (_initialize_tracepoint): Delete references to
3527 'tracepoint_list' and 'stepping_list'.
3528
3529 2013-06-25 Tom Tromey <tromey@redhat.com>
3530
3531 * common/create-version.sh (date): Use "$", not "$$" in sed
3532 expression.
3533
3534 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3535
3536 * NEWS (New targets): Add entry for TI MSP430.
3537
3538 2013-06-25 Yao Qi <yao@codesourcery.com>
3539
3540 * remote.c (remote_start_remote): Move code to upload tsv
3541 earlier.
3542
3543 2013-06-25 Yao Qi <yao@codesourcery.com>
3544 Hui Zhu <hui@codesourcery.com>
3545 Pedro Alves <palves@redhat.com>
3546
3547 PR breakpoints/15075
3548 PR breakpoints/15434
3549 * breakpoint.c (bpstat_stop_status): Call
3550 b->ops->after_condition_true.
3551 (update_dprintf_command_list): Don't append "continue" command
3552 to the command list of dprintf breakpoint.
3553 (base_breakpoint_after_condition_true): New function.
3554 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3555 (dprintf_after_condition_true): New function.
3556 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3557 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3558
3559 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3560
3561 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3562 (ALLDEPFILES): Add msp430-tdep.c.
3563 * configure.tgt (msp430*-*-elf): New target.
3564 * msp430-tdep.c: New file.
3565
3566 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3567
3568 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3569 microMIPS synthetic symbols.
3570
3571 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3572
3573 * objfiles.h (pc_in_section): New prototype.
3574 (in_plt_section): Remove name argument, replace prototype with
3575 static inline function.
3576 * mips-tdep.h: Include "objfiles.h".
3577 (in_mips_stubs_section): New function.
3578 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3579 in_solib_call_trampoline member.
3580 (hppa_in_solib_call_trampoline): Remove name argument.
3581 * objfiles.c (pc_in_section): New function.
3582 (in_plt_section): Remove function.
3583 * mips-linux-tdep.c: Include "objfiles.h".
3584 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3585 name argument. Return 1 rather than the low 16-bit halfword of
3586 any instruction examined.
3587 (mips_linux_in_dynsym_resolve_code): Update
3588 mips_linux_in_dynsym_stub call accordingly.
3589 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3590 rather than an equivalent hand-coded sequence.
3591 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3592 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3593 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3594 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3595 in_opd_section.
3596 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3597 on call to tdep->in_solib_call_trampoline.
3598 (hppa_in_solib_call_trampoline): Remove name argument, update
3599 according to in_plt_section change.
3600 (hppa_skip_trampoline_code): Update according to in_plt_section
3601 change.
3602 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3603 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3604 Likewise.
3605 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3606 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3607 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3608 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3609 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3610 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3611 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3612 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3613 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3614 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3615 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3616 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3617 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3618
3619 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3620
3621 * common/create-version.sh: Fix expansion of $host_alias
3622 and $target_alias in generation of HOST_NAME and TARGET_NAME
3623 (resp.).
3624
3625 2013-06-24 Tom Tromey <tromey@redhat.com>
3626
3627 * common/create-version.sh: New file.
3628 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3629 create-version.sh.
3630 (HFILES_NO_SRCDIR): Use common/version.h.
3631 * version.in: Move to ...
3632 * common/version.in: ... here. Replace date with "DATE".
3633 * version.h: Move to ...
3634 * common/version.h: ... here.
3635
3636 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3637
3638 * gdb/gnulib/Makefile.in: Update date in copyright header.
3639 * gdb/gnulib/configure.ac: Ditto.
3640 * gdb/gnulib/update-gnulib.sh: Ditto.
3641
3642 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3643
3644 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3645 "gdb/gnulib/import".
3646
3647 2013-06-21 Will Newton <will.newton@linaro.org>
3648
3649 * doublest.c (ldfrexp): Remove function.
3650 (convert_doublest_to_floatformat): Call frexpl instead of
3651 ldfrexp.
3652
3653 2013-06-21 Will Newton <will.newton@linaro.org>
3654
3655 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3656 * gnulib/aclocal.m4: Regenerate.
3657 * gnulib/config.in: Regenerate.
3658 * gnulib/configure: Regenerate.
3659 * gnulib/import/Makefile.am: Update.
3660 * gnulib/import/Makefile.in: Update.
3661 * gnulib/import/m4/gnulib-cache.m4: Update.
3662 * gnulib/import/m4/gnulib-comp.m4: Update.
3663 * gnulib/import/float+.h: Import.
3664 * gnulib/import/float.c: Import.
3665 * gnulib/import/float.in.h: Import.
3666 * gnulib/import/fpucw.h: Import.
3667 * gnulib/import/frexp.c: Import.
3668 * gnulib/import/frexpl.c: Import.
3669 * gnulib/import/isnan.c: Import.
3670 * gnulib/import/isnand-nolibm.h: Import.
3671 * gnulib/import/isnand.c: Import.
3672 * gnulib/import/isnanl-nolibm.h: Import.
3673 * gnulib/import/isnanl.c: Import.
3674 * gnulib/import/itold.c: Import.
3675 * gnulib/import/m4/exponentd.m4: Import.
3676 * gnulib/import/m4/exponentl.m4: Import.
3677 * gnulib/import/m4/float_h.m4: Import.
3678 * gnulib/import/m4/fpieee.m4: Import.
3679 * gnulib/import/m4/frexp.m4: Import.
3680 * gnulib/import/m4/frexpl.m4: Import.
3681 * gnulib/import/m4/isnand.m4: Import.
3682 * gnulib/import/m4/isnanl.m4: Import.
3683 * gnulib/import/m4/math_h.m4: Import.
3684 * gnulib/import/math.c: Import.
3685 * gnulib/import/math.in.h: Import.
3686
3687 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3690 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3691 signature_INTEL_edx comparisons.
3692
3693 2013-06-20 Doug Evans <dje@google.com>
3694
3695 symtab/15652
3696 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3697 All callers updated.
3698 (open_dwp_file): If we can't find the dwp file, search the basename
3699 in debug-file-directory.
3700
3701 * dwarf2read.c (struct dwp_file): Fix comment.
3702 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3703
3704 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3705 better.
3706
3707 2013-06-20 Yao Qi <yao@codesourcery.com>
3708
3709 * breakpoint.c (create_breakpoint): Fix code indentation.
3710
3711 2013-06-20 Yao Qi <yao@codesourcery.com>
3712
3713 * breakpoint.c (create_breakpoints_sal_default): Remove
3714 parameter 'lsal'. Update declaration.
3715 (bkpt_create_breakpoints_sal): Caller update.
3716 (tracepoint_create_breakpoints_sal): Likewise.
3717
3718 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3719 Yao Qi <yao@codesourcery.com>
3720
3721 * NEWS: Mention the new option '--skip-unavailable' of command
3722 -data-list-register-values.
3723 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3724 --skip-unavailable option. Adjust to use output_register.
3725 (output_register): Add new 'skip_unavailable' parameter.
3726 Handle it.
3727
3728 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3729
3730 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3731 common/i386-gcc-cpuid.h.
3732 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3733 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3734 Copy the latest version from upstream gcc.
3735 * common/linux-btrace.c: Include i386-cpuid.h.
3736 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3737 call to i386_cpuid.
3738 (cpu_supports_btrace): Likewise.
3739 * go32-nat.c: Include i386-cpuid.h.
3740 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3741
3742 2013-06-19 Doug Evans <dje@google.com>
3743
3744 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3745 (get_section_index): Ditto.
3746
3747 2013-06-19 Tom Tromey <tromey@redhat.com>
3748
3749 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3750 "dprintf" help.
3751
3752 2013-06-18 Doug Evans <dje@google.com>
3753
3754 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3755 before using it.
3756 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3757 Move test of cu_index closer to use. Print complaint if cu_index
3758 is bad.
3759
3760 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3761
3762 * machoread.c (oso_vector): Delete this global.
3763 (macho_register_oso): Add new parameter "oso_vector_ptr".
3764 Use it instead of the "oso_vector" global.
3765 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3766 (macho_symfile_read): Use a local oso_vector, to be free'ed
3767 at the end of this function, in place of the old "oso_vector"
3768 global. Update various function calls accordingly. Use one
3769 single cleanup chain for the entire function.
3770
3771 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3772
3773 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3774 DWARF2_PER_OBJFILE by uses of DATA instead.
3775
3776 2013-06-18 Tom Tromey <tromey@redhat.com>
3777
3778 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3779 argument.
3780 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3781 Special case signals other than GDB_SIGNAL_TRAP.
3782 (explains_signal_watchpoint): New function.
3783 (base_breakpoint_explains_signal): Add 'sig' argument.
3784 (initialize_breakpoint_ops): Set 'explains_signal' method for
3785 watchpoints.
3786 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3787 signal argument.
3788 (bpstat_explains_signal): Likewise.
3789 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3790
3791 2013-06-18 Tom Tromey <tromey@redhat.com>
3792
3793 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3794
3795 2013-06-18 Tom Tromey <tromey@redhat.com>
3796
3797 * python/python.c (finish_python_initialization): Decref
3798 'pythondir' on failure path as well.
3799
3800 2013-06-18 Tom Tromey <tromey@redhat.com>
3801
3802 PR symtab/15391:
3803 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3804 after taking bits_to_skip into account. Sign extend byte_offset.
3805 * utils.h (gdb_sign_extend): Declare.
3806 * utils.c (gdb_sign_extend): New function.
3807
3808 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3809
3810 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3811
3812 2013-06-17 Pierre Muller <muller@sourceware.org>
3813
3814 * corelow.c (core_open): Print GDB signal name instead of target
3815 signal number.
3816
3817 2013-06-17 Mike Frysinger <vapier@gentoo.org>
3818
3819 * .gitignore: Add /gcore.
3820
3821 2013-06-13 Doug Evans <dje@google.com>
3822
3823 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3824 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3825
3826 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3827
3828 * stack.c (backtrace_command_1): Fix indentation.
3829
3830 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3831
3832 * window-nat.c (thread_rec): Add missing empty line after
3833 local variable declaration.
3834
3835 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3836
3837 * windows-nat.c (thread_rec): Revert format used to print
3838 error code returned by SuspendThread from %d back to %u.
3839
3840 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3841
3842 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3843 ID in debug trace.
3844 (get_windows_debug_event): Likewise, for all debug traces.
3845
3846 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3847
3848 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3849 warning message.
3850
3851 2013-06-08 Pedro Alves <pedro@codesourcery.com>
3852 Yao Qi <yao@codesourcery.com>
3853
3854 * mi/mi-main.c (get_register): Remove declaration.
3855 (output_register): Declare.
3856 (mi_cmd_data_list_register_values): Remove local variable
3857 'tuple_cleanup'. Move some code into output_register.
3858 (get_register): Renamed to ...
3859 (output_register): ... this. Output the register's
3860 "number" ui_out tuple here.
3861
3862 2013-06-07 Pedro Alves <palves@redhat.com>
3863
3864 * darwin-nat.c: Fix formating in copyright header.
3865 * darwin-nat.h: Likewise.
3866 * gnu-nat.c: Likewise.
3867 * machoread.c: Likewise.
3868
3869 2013-06-07 Pedro Alves <palves@redhat.com>
3870
3871 PR server/14823
3872 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3873 static. Output a global target description pointer.
3874 (init_registers_${name}): Adjust to initialize a
3875 target description structure.
3876
3877 2013-06-07 Will Newton <will.newton@linaro.org>
3878
3879 * printcmd.c (build_address_symbolic): Call
3880 gdbarch_addr_bits_remove for text minimal symbols.
3881
3882 2013-06-07 Will Newton <will.newton@linaro.org>
3883
3884 * MAINTAINERS: Add myself to Write After Approval.
3885
3886 2013-06-07 Yao Qi <yao@codesourcery.com>
3887
3888 * tracepoint.c (start_tracing): Move code to ...
3889 (trace_reset_local_state): ... here. New.
3890 (disconnect_tracing): Don't call set_current_traceframe,
3891 set_tracepoint_num, and set_traceframe_context. Call
3892 trace_reset_local_state instead.
3893 (tfile_close): Call trace_reset_local_state.
3894 * ctf.c (ctf_close): Likewise.
3895 * remote.c (remote_close): Likewise.
3896 * tracepoint.h (trace_reset_local_state): Declare.
3897
3898 2013-06-06 Doug Evans <dje@google.com>
3899
3900 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3901 and fix header docs.
3902
3903 2013-06-05 Doug Evans <dje@google.com>
3904 Keith Seitz <keiths@redhat.com>
3905
3906 PR 15519
3907 * cp-namespace.c (find_symbol_in_baseclass): Call
3908 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3909 Check result of call to lookup_symbol_static.
3910 Call lookup_static_symbol_aux unconditionally.
3911 Call check_typedef on base types before accessing them.
3912 (cp_lookup_nested_symbol): Fix comment.
3913
3914 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
3915
3916 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3917 minimal symbols pointing to function descriptors.
3918
3919 2013-06-05 Tom Tromey <tromey@redhat.com>
3920
3921 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3922
3923 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3924 Pedro Alves <palves@redhat.com>
3925
3926 * remote.c (remote_wait_as): Restore signal handler before returning
3927 when GDB gets a notification.
3928
3929 2013-06-04 Gary Benson <gbenson@redhat.com>
3930
3931 PR 2328
3932 * breakpoint.h (handle_solib_event): Moved function declaration
3933 to solib.h.
3934 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3935 (bpstat_stop_status): Pass new argument to handle_solib_event.
3936 * solib.h (update_solib_breakpoints): New function declaration.
3937 (handle_solib_event): Moved function declaration from
3938 breakpoint.h.
3939 * solib.c (update_solib_breakpoints): New function.
3940 (handle_solib_event): Moved function from breakpoint.c.
3941 Updated to call solib_ops->handle_event if not NULL.
3942 * solist.h (target_so_ops): New fields "update_breakpoints" and
3943 "handle_event".
3944 * infrun.c (set_stop_on_solib_events): New function.
3945 (_initialize_infrun): Use the above for "set
3946 stop-on-solib-events".
3947 (handle_inferior_event): Pass new argument to handle_solib_event.
3948 * solib-svr4.c (probe.h): New include.
3949 (svr4_free_library_list): New forward declaration.
3950 (probe_action): New enum.
3951 (probe_info): New struct.
3952 (probe_info): New static variable.
3953 (NUM_PROBES): New definition.
3954 (svr4_info): New fields "using_xfer", "probes_table" and
3955 "solib_list".
3956 (free_probes_table): New function.
3957 (free_solib_list): New function.
3958 (svr4_pspace_data_cleanup): Free probes table and solib list.
3959 (svr4_copy_library_list): New function.
3960 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3961 (svr4_read_so_list): New parameter "prev_lm".
3962 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3963 (svr4_current_sos): New function.
3964 (probe_and_action): New struct.
3965 (hash_probe_and_action): New function.
3966 (equal_probe_and_action): Likewise.
3967 (register_solib_event_probe): Likewise.
3968 (solib_event_probe_at): Likewise.
3969 (solib_event_probe_action): Likewise.
3970 (solist_update_full): Likewise.
3971 (solist_update_incremental): Likewise.
3972 (disable_probes_interface_cleanup): Likewise.
3973 (svr4_handle_solib_event): Likewise.
3974 (svr4_update_solib_event_breakpoint): Likewise.
3975 (svr4_update_solib_event_breakpoints): Likewise.
3976 (svr4_create_solib_event_breakpoints): Likewise.
3977 (enable_break): Free probes table before creating breakpoints.
3978 Use svr4_create_solib_event_breakpoints to create breakpoints.
3979 (svr4_solib_create_inferior_hook): Free the solib list.
3980 (_initialize_svr4_solib): Initialise
3981 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3982
3983 2013-06-04 Gary Benson <gbenson@redhat.com>
3984
3985 * target.h (target_ops): New field
3986 "to_augmented_libraries_svr4_read".
3987 (target_augmented_libraries_svr4_read): New macro.
3988 * target.c (update_current_target): Handle
3989 to_augmented_libraries_svr4_read.
3990 * remote.c (remote_state): New field
3991 "augmented_libraries_svr4_read".
3992 (remote_augmented_libraries_svr4_read_feature): New function.
3993 (remote_protocol_features): Add entry for
3994 "augmented-libraries-svr4-read".
3995 (remote_augmented_libraries_svr4_read): New function.
3996 (init_remote_ops): Initialize
3997 remote_ops.to_augmented_libraries_svr4_read.
3998
3999 2013-06-04 Gary Benson <gbenson@redhat.com>
4000
4001 * NEWS: Update.
4002
4003 2013-06-04 Gary Benson <gbenson@redhat.com>
4004
4005 * objfiles.h (inhibit_section_map_updates): New function
4006 declaration.
4007 (resume_section_map_updates): Likewise.
4008 (resume_section_map_updates_cleanup): Likewise.
4009 * objfiles.c (objfile_pspace_info): Removed field
4010 "objfiles_changed_p". New fields "new_objfiles_available",
4011 "section_map_dirty" and "inhibit_updates".
4012 (allocate_objfile): Set new_objfiles_available.
4013 (free_objfile): Set section_map_dirty.
4014 (objfile_relocate1): Likewise.
4015 (in_plt_section): Likewise.
4016 (find_pc_section): Update the conditions under which the
4017 section map will be updated.
4018 (inhibit_section_map_updates): New function.
4019 (resume_section_map_updates): Likewise.
4020 (resume_section_map_updates_cleanup): Likewise.
4021
4022 2013-06-04 Gary Benson <gbenson@redhat.com>
4023
4024 * probe.h (get_probe_argument_count): New declaration.
4025 (evaluate_probe_argument): Likewise.
4026 * probe.c (get_probe_argument_count): New function.
4027 (evaluate_probe_argument): Likewise.
4028 (probe_safe_evaluate_at_pc): Use the above new functions.
4029
4030 2013-06-04 Alan Modra <amodra@gmail.com>
4031
4032 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4033 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4034 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4035 target mem reads on optional insns.
4036 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4037 ppc_insns_match_pattern calls.
4038 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4039 Add match for power7 thread safety insns, and new order of
4040 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4041 invocation in comment, and update rest of comment.
4042 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4043 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4044 (ppc64_standard_linkage2_target): Update insn offsets.
4045 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4046 stubs first. Update calls.
4047
4048 2013-06-04 Yao Qi <yao@codesourcery.com>
4049
4050 * solib.c (solib_find): Don't need dir separator if path has
4051 drive spec.
4052
4053 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4054
4055 Revert (indirectly causes a SIGSEGV):
4056 * machoread.c (macho_symfile_read): Assign first cleanup to
4057 'back_to'.
4058
4059 2013-06-03 Yao Qi <yao@codesourcery.com>
4060
4061 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4062 mi-parse.c. Make them static.
4063 (mi_all_values): Likewise.
4064 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4065 mi_parse_print_values. Make it external.
4066 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4067 Remove the declarations.
4068 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4069 * mi/mi-parse.h (mi_parse_print_values): Declare.
4070 * mi/mi-cmd-stack.c: Include mi-parse.h.
4071 (parse_print_values): Remove
4072 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4073 of parse_print_values.
4074 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4075
4076 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4077 Yao Qi <yao@codesourcery.com>
4078
4079 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4080 (encode_actions): Move code to ...
4081 (all_tracepoint_actions_and_cleanup): ... here. New.
4082 (trace_dump_command): Likewise.
4083
4084 2013-05-30 Tom Tromey <tromey@redhat.com>
4085
4086 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4087
4088 2013-05-30 Tom Tromey <tromey@redhat.com>
4089
4090 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4091 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4092 'old_chain' argument. Add 'parser_result' argument.
4093 (gdb_xml_create_parser_and_cleanup): Remove old version.
4094 (gdb_xml_parse_quick): Update.
4095 (xml_process_xincludes): Update.
4096 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4097 declare.
4098
4099 2013-05-30 Tom Tromey <tromey@redhat.com>
4100
4101 * probe.c (collect_probes): Check arguments for NULL before
4102 calling compile_rx_or_error.
4103 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4104 Remove NULL return.
4105
4106 2013-05-30 Tom Tromey <tromey@redhat.com>
4107
4108 * infrun.c (adjust_pc_after_break): Introduce an outer null
4109 cleanup.
4110
4111 2013-05-30 Tom Tromey <tromey@redhat.com>
4112
4113 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4114
4115 2013-05-30 Tom Tromey <tromey@redhat.com>
4116
4117 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4118 for 'old_chain'. Do not check 'head' before processing
4119 cleanups.
4120
4121 2013-05-30 Tom Tromey <tromey@redhat.com>
4122
4123 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4124 "cleanup_tuple".
4125
4126 2013-05-30 Tom Tromey <tromey@redhat.com>
4127
4128 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4129 inner scope. Unconditionally call do_cleanups.
4130
4131 2013-05-30 Tom Tromey <tromey@redhat.com>
4132
4133 * source.c (find_and_open_source): Call do_cleanups.
4134
4135 2013-05-30 Tom Tromey <tromey@redhat.com>
4136
4137 * linux-thread-db.c (thread_db_load_search): Unconditionally
4138 call do_cleanups.
4139
4140 2013-05-30 Tom Tromey <tromey@redhat.com>
4141
4142 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4143 for 'cleanup'; instead use a later one.
4144
4145 2013-05-30 Tom Tromey <tromey@redhat.com>
4146
4147 * python/py-breakpoint.c (bppy_get_commands): Use
4148 explicit, unconditional return.
4149 * python/py-frame.c (frapy_read_var): Likewise.
4150 * python/python.c (gdbpy_decode_line): Likewise.
4151
4152 2013-05-30 Tom Tromey <tromey@redhat.com>
4153
4154 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4155 do_cleanups on all return paths.
4156
4157 2013-05-30 Tom Tromey <tromey@redhat.com>
4158
4159 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4160
4161 2013-05-30 Tom Tromey <tromey@redhat.com>
4162
4163 * stabsread.c (read_struct_type): Call do_cleanups along
4164 all return paths.
4165
4166 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4167
4168 * mips-linux-tdep.c: Adjust formatting throughout.
4169
4170 2013-05-30 Tom Tromey <tromey@redhat.com>
4171
4172 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4173 along all return paths.
4174
4175 2013-05-30 Tom Tromey <tromey@redhat.com>
4176
4177 * symfile.c (find_separate_debug_file): Call do_cleanups
4178 along all return paths.
4179
4180 2013-05-30 Tom Tromey <tromey@redhat.com>
4181
4182 * symtab.c (search_symbols): Introduce a null cleanup for
4183 'retval_chain'.
4184
4185 2013-05-30 Tom Tromey <tromey@redhat.com>
4186
4187 * python/py-value.c (valpy_binop): Call do_cleanups before
4188 exiting loop.
4189
4190 2013-05-30 Tom Tromey <tromey@redhat.com>
4191
4192 * python/py-prettyprint.c (print_children): Remove extra
4193 do_cleanups call.
4194
4195 2013-05-30 Tom Tromey <tromey@redhat.com>
4196
4197 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4198 all return paths.
4199
4200 2013-05-30 Tom Tromey <tromey@redhat.com>
4201
4202 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4203 along all return paths.
4204
4205 2013-05-30 Tom Tromey <tromey@redhat.com>
4206
4207 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4208 call do_cleanups.
4209
4210 2013-05-30 Tom Tromey <tromey@redhat.com>
4211
4212 * varobj.c (c_value_of_root): Call do_cleanups along all
4213 return paths.
4214
4215 2013-05-30 Tom Tromey <tromey@redhat.com>
4216
4217 * tracepoint.c (trace_dump_command): Unconditionally call
4218 do_cleanups.
4219
4220 2013-05-30 Tom Tromey <tromey@redhat.com>
4221
4222 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4223 do_cleanups earlier.
4224
4225 2013-05-30 Tom Tromey <tromey@redhat.com>
4226
4227 * machoread.c (macho_symfile_read): Assign first cleanup to
4228 'back_to'.
4229
4230 2013-05-30 Tom Tromey <tromey@redhat.com>
4231
4232 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4233
4234 2013-05-30 Tom Tromey <tromey@redhat.com>
4235
4236 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4237
4238 2013-05-30 Tom Tromey <tromey@redhat.com>
4239
4240 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4241 call discard_cleanups.
4242 (inf_ptrace_attach): Likewise.
4243
4244 2013-05-30 Tom Tromey <tromey@redhat.com>
4245
4246 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4247 return paths.
4248 (mips_initialize): Likewise.
4249 (common_open): Call do_cleanups.
4250
4251 2013-05-30 Tom Tromey <tromey@redhat.com>
4252
4253 * utils.c (internal_vproblem): Call do_cleanups.
4254
4255 2013-05-30 Tom Tromey <tromey@redhat.com>
4256
4257 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4258
4259 2013-05-30 Tom Tromey <tromey@redhat.com>
4260
4261 * cli/cli-script.c (setup_user_args): Don't return after error.
4262
4263 2013-05-30 Tom Tromey <tromey@redhat.com>
4264
4265 * somread.c (som_symtab_read): Call do_cleanups.
4266
4267 2013-05-30 Tom Tromey <tromey@redhat.com>
4268
4269 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4270
4271 2013-05-30 Tom Tromey <tromey@redhat.com>
4272
4273 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4274 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4275 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4276 * source.c (show_substitute_path_command): Call do_cleanups.
4277 (unset_substitute_path_command, set_substitute_path_command):
4278 Likewise.
4279 * symfile.c (load_command): Call do_cleanups.
4280
4281 2013-05-30 Tom Tromey <tromey@redhat.com>
4282
4283 * contrib/cleanup_check.py: New file.
4284 * contrib/gcc-with-excheck: Add option parsing.
4285
4286 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4287
4288 * windows-nat.c (windows_delete_thread): Add missing space
4289 in cast expression.
4290
4291 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4292
4293 * inferior.c (top level): Include tilde.h.
4294 (add_inferior_command): Call tilde_expand on the value of 'exec'
4295 argument.
4296
4297 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4298 Yao Qi <yao@codesourcery.com>
4299
4300 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4301 Caller update.
4302 (encode_actions): Likewise.
4303 * remote.c (remote_download_tracepoint): Caller update.
4304 * tracepoint.h (encode_actions): Update declaration.
4305
4306 2013-05-30 Pedro Alves <palves@redhat.com>
4307
4308 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4309 pointer.
4310
4311 2013-05-30 Yao Qi <yao@codesourcery.com>
4312
4313 * remote.c (remote_check_symbols): Remove unused parameter
4314 'objfile'.
4315 Declaration update.
4316 (remote_start_remote, remote_new_objfile): Caller update.
4317
4318 2013-05-30 Yao Qi <yao@codesourcery.com>
4319
4320 * mi/mi-cmds.c (mi_cmds): Define MI command
4321 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4322 DEF_MI_CMD_CLI.
4323
4324 2013-05-29 Pedro Alves <palves@redhat.com>
4325
4326 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4327 (remote_insert_watchpoint, remote_remove_watchpoint)
4328 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4329 (remote_verify_memory, compare_sections_command)
4330 (remote_search_memory): Set the general process/thread on the
4331 remote side.
4332
4333 2013-05-29 Pedro Alves <palves@redhat.com>
4334
4335 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4336 (_initialize_aarch64_tdep): Don't call
4337 initialize_tdesc_aarch64_without_fpu.
4338 * features/Makefile (WHICH): Remove reference to
4339 aarch64-without-fpu.
4340 * features/aarch64-without-fpu.c: Delete file.
4341 * regformats/aarch64-without-fpu.dat: Delete file.
4342
4343 2013-05-28 Yao Qi <yao@codesourcery.com>
4344
4345 * tracepoint.c (stringify_collection_list): Remove parameter
4346 'string'.
4347 (encode_actions): Caller update. Remove local variables.
4348
4349 2013-05-24 Yao Qi <yao@codesourcery.com>
4350
4351 * tracepoint.c (TFILE_PID): Remove.
4352 (tfile_open): Don't add thread and inferior.
4353 (tfile_close): Don't set 'inferior_ptid'. Don't call
4354 exit_inferior_silent.
4355 (tfile_thread_alive): Remove.
4356 (init_tfile_ops): Don't set field 'to_thread_alive' of
4357 tfile_ops.
4358
4359 2013-05-23 Doug Evans <dje@google.com>
4360
4361 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4362
4363 2013-05-23 Pedro Alves <palves@redhat.com>
4364
4365 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4366 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4367 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4368 Only define if HAVE_SOCKETS is defined.
4369 * configure.ac: Check for sys/socket.h.
4370 * config.in, configure: Regenerate.
4371
4372 2013-05-23 Pedro Alves <palves@redhat.com>
4373
4374 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4375 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4376 printing uint32_t variables.
4377
4378 2013-05-23 Pedro Alves <palves@redhat.com>
4379
4380 * NEWS: Mention GDBserver range stepping support.
4381
4382 2013-05-23 Yao Qi <yao@codesourcery.com>
4383 Pedro Alves <palves@redhat.com>
4384
4385 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4386 field.
4387 * infcmd.c (step_once, until_next_command): Enable range stepping.
4388 * infrun.c (displaced_step_prepare): Disable range stepping.
4389 (resume): Disable range stepping if stepping over a breakpoint or
4390 we have software watchpoints. If range stepping is enabled,
4391 assert the thread is in the stepping range.
4392 (clear_proceed_status_thread): Clear may_range_step.
4393 (handle_inferior_event): Disable range stepping as soon as we know
4394 the thread that hit the event. Re-enable it whenever we're going
4395 to step with a step range.
4396 * remote.c (struct vCont_action_support) <r>: New field.
4397 (use_range_stepping): New global.
4398 (remote_vcont_probe): Handle 'r' action.
4399 (append_resumption): Append an 'r' action if the thread may range
4400 step.
4401 (show_range_stepping): New function.
4402 (set_range_stepping): New function.
4403 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4404 'set range-stepping' and 'show range-stepping' commands.
4405 * NEWS: Mention range stepping, the new vCont;r action, and the
4406 new "set/show range-stepping" commands.
4407
4408 2013-05-23 Yao Qi <yao@codesourcery.com>
4409 Pedro Alves <palves@redhat.com>
4410
4411 * remote.c (struct vCont_action_support): New struct.
4412 (struct remote_state) <support_vCont_t>: Remove field.
4413 <vCont_actions_support>: New field.
4414 (remote_vcont_probe, remote_stop_ns): Update.
4415
4416 2013-05-23 Yao Qi <yao@codesourcery.com>
4417 Pedro Alves <palves@redhat.com>
4418
4419 * gdbthread.h (pc_in_thread_step_range): New declaration.
4420 * thread.c (pc_in_thread_step_range): New function.
4421 * infrun.c (handle_inferior_event): Use it.
4422
4423 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4424
4425 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4426 of sprintf.
4427
4428 2013-05-22 Keith Seitz <keiths@redhat.com>
4429
4430 * ada-lang.c (is_known_support_routine): Add explicit free of
4431 'func_name' from find_frame_funname.
4432 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4433 for func_name from find_frame_funname.
4434 * python/py-frame.c (frapy_name): Add explicit free of
4435 'name' from find_frame_funname.
4436 * stack.c (find_frame_funname): Add comment explaining that
4437 funcp must be freed by the caller.
4438 Return copy of symbol names instead of pointers.
4439 (print_frame): Add a cleanup for 'funname' from
4440 find_frame_funname.
4441 * stack.h (find_frame_funname): Remove "const" from
4442 'funname' parameter.
4443
4444 2013-05-22 Tom Tromey <tromey@redhat.com>
4445
4446 PR c++/15401:
4447 * c-valprint.c (c_value_print): Use value_addr for
4448 references. Convert back to reference type with value_ref.
4449
4450 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4451
4452 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4453 unloaded DLL, it will be done by handle_solib_event. See
4454 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4455 details.
4456
4457 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4458
4459 * ui-out.c: Create typedef ui_out_level_p and define vector
4460 operations for that type.
4461 (struct ui_out): Use a vector instead of an array.
4462 (current_level): Return level from a vector.
4463 (push_level): Create a level in a vector.
4464 (pop_level): Delete a level in a vector.
4465 (ui_out_new): Create initial level zero level, and store in a
4466 vector.
4467 (ui_out_destroy): Add vector cleanup.
4468
4469 2013-05-22 Pedro Alves <palves@redhat.com>
4470
4471 * python/python-internal.h (gdb_Py_DECREF): Tag with
4472 "ARI: editCase function".
4473
4474 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4475
4476 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4477
4478 2013-05-21 Pedro Alves <palves@redhat.com>
4479
4480 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4481 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4482 * python/py-utils.c (py_decref): Don't check for NULL before
4483 calling Py_DECREF.
4484
4485 2013-05-21 Pedro Alves <palves@redhat.com>
4486
4487 * python/py-utils.c (py_decref): Remove extra braces.
4488 (gdb_pymodule_addobject): Remove extra braces.
4489 * python-internal.h (gdb_Py_DECREF): New static inline function.
4490 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4491
4492 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4493
4494 * breakpoints.c (detach_breakpoints): Do not
4495 detach breakpoints locations with loc_type bp_loc_other.
4496
4497 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 Workaround Python 2.6.
4500 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4501 a block.
4502
4503 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4504
4505 Code cleanup: constification.
4506 * solib.c (solib_ops): Make return type and ops variable type const.
4507 (set_solib_ops): Make the new_ops parameter and ops variable const.
4508 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4509 (solib_add, solib_keep_data_in_core, clear_solib)
4510 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4511 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4512 const.
4513 * solib.h (set_solib_ops): Make the new_ops parameter const.
4514
4515 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4516
4517 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4518 variable.
4519 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4520 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4521 (SYSTEM_GDBINIT_FILES): New variables.
4522 (all): Add stamp-system-gdbinit.
4523 (stamp-system-gdbinit): New rule.
4524 (clean-system-gdbinit, install-system-gdbinit)
4525 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4526 (install-only): Add dependency on install-system-gdbinit.
4527 (uninstall): Add dependency on uninstall-system-gdbinit.
4528 (clean): Add dependency on clean-system-gdbinit.
4529 * system-gdbinit/elinos.py: New file.
4530 * system-gdbinit/wrs-linux.py: New file.
4531
4532 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4533
4534 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4535
4536 2013-05-21 Hui Zhu <hui@codesourcery.com>
4537
4538 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4539 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4540 * mi/mi-cmd-break.c (ctype.h): New include.
4541 (gdb_obstack.h): New include.
4542 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4543 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4544 (mi_cmd_dprintf_insert): New.
4545 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4546 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4547
4548 2013-05-20 Tom Tromey <tromey@redhat.com>
4549
4550 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4551
4552 2013-05-20 Tom Tromey <tromey@redhat.com>
4553
4554 * python/py-value.c (valpy_get_dynamic_type): Simplify
4555 dynamic_type assignment. Use Py_XINCREF.
4556
4557 2013-05-20 Tom Tromey <tromey@redhat.com>
4558
4559 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4560
4561 2013-05-20 Tom Tromey <tromey@redhat.com>
4562
4563 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4564 (gdbpy_selected_frame): Move object-construction code
4565 out of TRY_CATCH.
4566
4567 2013-05-20 Tom Tromey <tromey@redhat.com>
4568
4569 * python/py-arch.c (gdbpy_initialize_arch): Use
4570 gdb_pymodule_addobject.
4571 * python/py-block.c (gdbpy_initialize_blocks): Use
4572 gdb_pymodule_addobject.
4573 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4574 gdb_pymodule_addobject.
4575 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4576 gdb_pymodule_addobject.
4577 * python/py-event.c (gdbpy_initialize_event_generic): Use
4578 gdb_pymodule_addobject.
4579 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4580 gdb_pymodule_addobject.
4581 * python/py-evts.c (add_new_registry): Use
4582 gdb_pymodule_addobject.
4583 (gdbpy_initialize_py_events): Likewise.
4584 * python/py-finishbreakpoint.c
4585 (gdbpy_initialize_finishbreakpoints): Use
4586 gdb_pymodule_addobject.
4587 * python/py-frame.c (gdbpy_initialize_frames): Use
4588 gdb_pymodule_addobject.
4589 * python/py-function.c (gdbpy_initialize_functions): Use
4590 gdb_pymodule_addobject.
4591 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4592 gdb_pymodule_addobject.
4593 * python/py-infthread.c (gdbpy_initialize_thread): Use
4594 gdb_pymodule_addobject.
4595 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4596 gdb_pymodule_addobject.
4597 * python/py-param.c (gdbpy_initialize_parameters): Use
4598 gdb_pymodule_addobject.
4599 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4600 gdb_pymodule_addobject.
4601 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4602 gdb_pymodule_addobject.
4603 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4604 gdb_pymodule_addobject.
4605 * python/py-type.c (gdbpy_initialize_types): Use
4606 gdb_pymodule_addobject.
4607 * python/py-utils.c (gdb_pymodule_addobject): New function.
4608 * python/py-value.c (gdbpy_initialize_values): Use
4609 gdb_pymodule_addobject.
4610 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4611 * python/python.c (_initialize_python): Use
4612 gdb_pymodule_addobject.
4613
4614 2013-05-20 Tom Tromey <tromey@redhat.com>
4615
4616 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4617 * python/py-param.c (get_set_value, get_show_value): Use
4618 explicit decrefs.
4619 * python/python.c (start_type_printers, apply_type_printers):
4620 Use explicit decrefs.
4621
4622 2013-05-20 Tom Tromey <tromey@redhat.com>
4623
4624 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4625 incref the module.
4626
4627 2013-05-20 Tom Tromey <tromey@redhat.com>
4628
4629 * python/python.c (gdbpy_run_events): Decref the result
4630 of PyObject_CallObject.
4631
4632 2013-05-20 Tom Tromey <tromey@redhat.com>
4633
4634 * python/py-symtab.c (set_sal): Use
4635 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4636 (symtab_and_line_to_sal_object): Update.
4637
4638 2013-05-20 Tom Tromey <tromey@redhat.com>
4639
4640 * python/py-param.c (compute_enum_values): Decref 'item'.
4641
4642 2013-05-20 Tom Tromey <tromey@redhat.com>
4643
4644 * mi/mi-main.c: Include python-internal.h.
4645 (mi_cmd_list_features): Check gdb_python_initialized.
4646 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4647 (python_inferior_exit, python_new_objfile, add_thread_object)
4648 (delete_thread_object, py_free_inferior): Check
4649 gdb_python_initialized.
4650 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4651 gdb_python_initialized.
4652 * python/py-type.c (save_objfile_types): Check
4653 gdb_python_initialized.
4654 * python/python-internal.h (gdb_python_initialized): Declare.
4655 * python/python.c (ensure_python_env): Throw exception if
4656 Python not initialized.
4657 (before_prompt_hook, source_python_script_for_objfile)
4658 (start_type_printers, apply_type_printers,
4659 free_type_printers): Check gdb_python_initialized.
4660 * varobj.c (varobj_get_display_hint)
4661 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4662 (install_new_value_visualizer, varobj_set_visualizer)
4663 (value_get_print_value): Check gdb_python_initialized.
4664
4665 2013-05-20 Tom Tromey <tromey@redhat.com>
4666
4667 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4668 Check errors.
4669 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4670 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4671 Check errors.
4672 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4673 Check errors.
4674 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4675 Check errors.
4676 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4677 Check errors.
4678 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4679 init function to return 'int'.
4680 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4681 Return 'int'. Check errors.
4682 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4683 Check errors.
4684 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4685 Return 'int'. Check errors.
4686 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4687 Check errors.
4688 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4689 Check errors.
4690 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4691 Check errors.
4692 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4693 Check errors.
4694 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4695 Check errors.
4696 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4697 Check errors.
4698 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4699 Check errors.
4700 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4701 Check errors.
4702 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4703 Check errors.
4704 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4705 Check errors.
4706 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4707 Check errors.
4708 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4709 Check errors.
4710 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4711 Check errors.
4712 * python/python-internal.h (gdbpy_initialize_auto_load,
4713 gdbpy_initialize_values, gdbpy_initialize_frames,
4714 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4715 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4716 gdbpy_initialize_blocks, gdbpy_initialize_types,
4717 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4718 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4719 gdbpy_initialize_finishbreakpoints,
4720 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4721 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4722 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4723 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4724 gdbpy_initialize_signal_event,
4725 gdbpy_initialize_breakpoint_event,
4726 gdbpy_initialize_continue_event,
4727 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4728 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4729 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4730 * python/python.c (gdb_python_initialized): New global.
4731 (gdbpy_initialize_events): Return 'int'. Check errors.
4732 (_initialize_python): Check errors. Set
4733 gdb_python_initialized.
4734
4735 2013-05-20 Tom Tromey <tromey@redhat.com>
4736
4737 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4738 Decref the reslut of PyObject_CallMethod.
4739
4740 2013-05-20 Tom Tromey <tromey@redhat.com>
4741
4742 * python/py-event.c (gdbpy_initialize_event_generic): Return
4743 early if PyType_Ready fails.
4744
4745 2013-05-20 Tom Tromey <tromey@redhat.com>
4746
4747 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4748 as 'default' in the switch.
4749
4750 2013-05-20 Tom Tromey <tromey@redhat.com>
4751
4752 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4753 get_addr_from_python calls out of TRY_CATCH.
4754 (infpy_write_memory, infpy_search_memory): Likewise.
4755 * python/py-utils.c (get_addr_from_python): Return negative
4756 value on error. Use TRY_CATCH.
4757 * python/python-internal.h (get_addr_from_python): Use
4758 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4759
4760 2013-05-20 Tom Tromey <tromey@redhat.com>
4761
4762 * python/py-event.c (evpy_emit_event): Decref the
4763 result of PyObject_CallFunctionObjArgs.
4764
4765 2013-05-20 Tom Tromey <tromey@redhat.com>
4766
4767 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4768 Correctly decref.
4769
4770 2013-05-20 Tom Tromey <tromey@redhat.com>
4771
4772 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4773
4774 2013-05-20 Tom Tromey <tromey@redhat.com>
4775
4776 * python/py-event.h (gdbpy_initialize_event_generic): Use
4777 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4778 * python/py-evts.c (add_new_registry): Use
4779 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4780 * python/python-internal.h
4781 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4782
4783 2013-05-20 Tom Tromey <tromey@redhat.com>
4784
4785 * python/py-arch.c (archpy_disassemble): Update.
4786 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4787 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4788 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4789 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4790 macro.
4791 (GDB_PY_HANDLE_EXCEPTION): Update.
4792 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4793
4794 2013-05-20 Tom Tromey <tromey@redhat.com>
4795
4796 * python/python-internal.h (events_object_type): Remove.
4797
4798 2013-05-20 Tom Tromey <tromey@redhat.com>
4799
4800 * python/py-event.h (evpy_emit_event): Use
4801 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4802 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4803 New macro.
4804
4805 2013-05-20 Tom Tromey <tromey@redhat.com>
4806
4807 * py-evtregistry.c (create_event_object): Decref
4808 eventregistry_object if PyList_New fails.
4809
4810 2013-05-20 Tom Tromey <tromey@redhat.com>
4811
4812 * py-cmd.c (gdbpy_string_to_argv): Check result of
4813 PyList_New.
4814
4815 2013-05-20 Tom Tromey <tromey@redhat.com>
4816
4817 * python/python.c (before_prompt_hook): Add cleanup to
4818 decref 'hook'.
4819
4820 2013-05-20 Tom Tromey <tromey@redhat.com>
4821
4822 * python/py-function.c (fnpy_init): Decref result of
4823 PyObject_GetAttrString.
4824
4825 2013-05-20 Tom Tromey <tromey@redhat.com>
4826
4827 * python/py-threadevent.c (get_event_thread): Use
4828 CPYCHECKER_RETURNS_BORROWED_REF.
4829 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4830 New define.
4831 (pspace_to_pspace_object, objfile_to_objfile_object)
4832 (find_thread_object): Use it.
4833
4834 2013-05-20 Tom Tromey <tromey@redhat.com>
4835
4836 * python/py-arch.c (arch_object_type): Use
4837 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4838 * python/py-block.c (block_syms_iterator_object_type):
4839 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4840 * python/py-bpevent.c (breakpoint_event_object_type):
4841 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4842 * python/py-cmd.c (cmdpy_object_type): Use
4843 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4844 * python/py-continueevent.c (continue_event_object_type):
4845 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4846 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4847 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4848 * python/py-events.h (thread_event_object_type):
4849 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4850 * python/py-evtregistry.c (eventregistry_object_type): Use
4851 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4852 * python/py-exitedevent.c (exited_event_object_type):
4853 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4854 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4855 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4856 * python/py-function.c (fnpy_object_type): Use
4857 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4858 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4859 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4860 * python/py-infthread.c (thread_object_type): Use
4861 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4862 * python/py-lazy-string.c (lazy_string_object_type):
4863 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4864 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4865 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4866 * python/py-objfile.c (objfile_object_type): Use
4867 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4868 * python/py-param.c (parmpy_object_type):
4869 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4870 * python/py-progspace.c (pspace_object_type):
4871 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4872 * python/py-signalevent.c (signal_event_object_type):
4873 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4874 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4875 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4876 * python/py-type.c (type_object_type, field_object_type)
4877 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4878 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4879 define.
4880 (value_object_type, block_object_type, symbol_object_type)
4881 (event_object_type, stop_event_object_type, breakpoint_object_type)
4882 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4883
4884 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
4885
4886 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4887 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4888
4889 2013-05-20 Doug Evans <dje@google.com>
4890
4891 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4892 For Fission.
4893 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4894 reading_dwo_directly.
4895 (struct signatured_type): New member dwo_unit.
4896 (struct die_reader_specs): New member comp_dir.
4897 (create_signatured_type_table_from_index): Use malloc for
4898 all_type_units instead of objfile's obstack.
4899 (create_all_type_units): Ditto.
4900 (fill_in_sig_entry_from_dwo_entry): New function.
4901 (add_type_unit): New function.
4902 (lookup_dwo_signatured_type): New function.
4903 (lookup_dwp_signatured_type): New function.
4904 (lookup_signatured_type): New arg cu. All callers updated.
4905 (init_cu_die_reader): Initialize comp_dir.
4906 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4907 Change assert of matching type signatures to call error on mismatch.
4908 (lookup_dwo_unit): Add assert.
4909 (init_tu_and_read_dwo_dies): New function.
4910 (init_cutu_and_read_dies): Call it.
4911 (build_type_unit_groups): Handle case of no type unit groups created.
4912 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4913 (lookup_dwo_cutu): Tweak complaint.
4914 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4915 (dwarf2_per_objfile_free): Free all_type_units.
4916
4917 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4918
4919 * windows-nat.c (handle_unload_dll): Add missing empty line.
4920
4921 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4922
4923 * dwarf2read.c (prototyped_function_p): New function.
4924 (read_subroutine_type): Use it.
4925
4926 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4927
4928 * rs6000-aix-tdep.c: De-indent some example code provided
4929 as a comment.
4930
4931 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4932
4933 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4934 region is ok for a hardware watchpoint using the new ptrace interface
4935 on Power servers.
4936
4937 2013-05-17 Doug Evans <dje@google.com>
4938
4939 * NEWS: Mention new maintenance commands check-symtabs, and
4940 expand-symtabs, and renamed check-psymtabs.
4941 * psymtab.c (maintenance_check_psymtabs): Renamed from
4942 maintenance_check_symtabs. Only process already-expanded symbol
4943 tables.
4944 (_initialize_psymtab): Update.
4945 * symmisc.c (maintenance_check_symtabs): New function.
4946 (maintenance_expand_name_matcher): New function
4947 (maintenance_expand_file_matcher): New function
4948 (maintenance_expand_symtabs): New function.
4949 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4950 commands.
4951
4952 2013-05-17 Tom Tromey <tromey@redhat.com>
4953
4954 * python/py-inferior.c (infpy_read_memory): Don't call
4955 PyErr_SetString if PyObject_New fails.
4956 * python/py-frame.c (frame_info_to_frame_object): Don't call
4957 PyErr_SetString if PyObject_New fails.
4958
4959 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4960
4961 * acinclude.m4: Add check for dlopen in libdl.
4962 * configure.ac: Ditto.
4963 * configure: Regenerate.
4964
4965 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4966
4967 * frame.c (frame_stash): Convert to htab.
4968 (frame_addr_hash): New function.
4969 (frame_addr_hash_eq): New function.
4970 (frame_stash_create): Convert function to create
4971 a hash table.
4972 (frame_stash_add): Convert function to add an entry to a hash
4973 table.
4974 (frame_stash_find): Convert function to search the hash table.
4975 (frame_stash_invalidate): Convert function to empty the hash
4976 table.
4977 (get_frame_id): Only add to stash if a frame_id is created.
4978 (_initialize_frame): Call frame_stash_create.
4979
4980 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
4981
4982 * configure.ac: Ensure MIG is available when building for GNU Hurd
4983 hosts.
4984 * configure: Regenerate.
4985
4986 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4987
4988 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4989
4990 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4991
4992 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4993 all cleanups are done before returning from this function.
4994
4995 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4996
4997 * utils.h: #include "exceptions.h".
4998 (enum errors): Remove partial declaration.
4999
5000 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5001
5002 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5003 * gdbarch.h, gdbarch.c: Regenerate.
5004 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5005 handling.
5006
5007 * rs6000-aix-tdep.h: New file.
5008 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5009 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5010 "xml-utils.h".
5011 (struct field_info, struct ld_info_desc): New types.
5012 (ld_info32_desc, ld_info64_desc): New static constants.
5013 (struct ld_info): New type.
5014 (rs6000_aix_extract_ld_info): New function.
5015 (rs6000_aix_shared_library_to_xml): Likewise.
5016 (rs6000_aix_ld_info_to_xml): Likewise.
5017 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5018 (rs6000_aix_init_osabi): Add call to
5019 set_gdbarch_core_xfer_shared_libraries_aix.
5020 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5021 Remove "xml-utils.h" include.
5022 (LdInfo): Delete typedef.
5023 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5024 Delete macros.
5025 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5026 Adjust code accordingly.
5027 (rs6000_core_ldinfo): Delete, folded into
5028 rs6000_aix_core_xfer_shared_libraries_aix.
5029 (rs6000_xfer_shared_library): Delete.
5030 (rs6000_xfer_shared_libraries): Reimplement.
5031
5032 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5033
5034 * record.c (record_goto_cmdlist): New.
5035 (cmd_record_goto): Split into this ...
5036 (cmd_record_goto_begin): ... this
5037 (cmd_record_goto_end): ... and this.
5038 (_initialize_record): Change "record goto" to prefix command.
5039 Add commands for "record goto begin" and "record goto end".
5040 Add an alias for "record goto start" to "record goto begin".
5041
5042 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5043
5044 * linespec.c (convert_linespec_to_sals): New comment for
5045 SOURCE_FILENAME assignment.
5046
5047 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5050 internal_warning.
5051
5052 2013-05-14 Tom Tromey <tromey@redhat.com>
5053
5054 * eval.c (parse_and_eval_long): Make 'exp' const.
5055 * value.h (parse_and_eval_long): Update.
5056
5057 2013-05-14 Tom Tromey <tromey@redhat.com>
5058
5059 * ui-file.c (gdb_fopen): Make arguments const.
5060 * ui-file.h (gdb_fopen): Make arguments const.
5061
5062 2013-05-14 Tom Tromey <tromey@redhat.com>
5063
5064 * remote.c (remote_set_trace_notes): Make arguments const.
5065 * target.c (update_current_target): Update cast.
5066 * target.h (to_set_trace_notes): Make arguments const.
5067
5068 2013-05-14 Tom Tromey <tromey@redhat.com>
5069
5070 * go32-nat.c (go32_terminal_info): Make 'args' const.
5071 * inferior.h (child_terminal_info): Update.
5072 * inflow.c (child_terminal_info): Make 'args' const.
5073 * target.c (default_terminal_info): Make 'args' const.
5074 (debug_to_terminal_save_ours): Likewise.
5075 * target.h (struct target_ops) <to_terminal_info>: Make argument
5076 const.
5077
5078 2013-05-13 Tom Tromey <tromey@redhat.com>
5079
5080 * gcore.c (create_gcore_bfd): Make 'filename' const.
5081 * gcore.h (create_gcore_bfd): Make 'filename' const.
5082 * record-full.c (record_full_save): Make 'recfilename' const.
5083 * target.c (target_save_record): Make 'filename' const.
5084 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5085 const.
5086 (target_save_record): Likewise.
5087
5088 2013-05-13 Tom Tromey <tromey@redhat.com>
5089
5090 PR gdb/15338:
5091 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5092 ranges section has been read.
5093
5094 2013-05-13 Tom Tromey <tromey@redhat.com>
5095
5096 PR exp/15364:
5097 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5098 STRUCTOP_PTR>: Return a not_lval value for
5099 EVAL_AVOID_SIDE_EFFECTS.
5100 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5101 for EVAL_AVOID_SIDE_EFFECTS.
5102
5103 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5104
5105 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5106 floating point registers to register type before storing
5107 value.
5108 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5109 Likewise.
5110
5111 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5112 Tom Tromey <tromey@redhat.com>
5113
5114 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5115 New functions.
5116 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5117 Declare.
5118 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5119 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5120 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5121 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5122
5123 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5124 Tom Tromey <tromey@redhat.com>
5125
5126 PR build/15414:
5127 * configure: Rebuild.
5128 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5129 with -Wno-format.
5130
5131 2013-05-10 Pedro Alves <palves@redhat.com>
5132
5133 * remote.c (_initialize_remote): Fix spelling of
5134 qXfer:traceframe-info:read packet in packet config command.
5135
5136 2013-05-10 David Taylor <dtaylor@emc.com>
5137
5138 PR remote/15455
5139
5140 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5141 "QTro" at start of packet.
5142
5143 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5144
5145 * solib-aix.c (solib_aix_relocate_section_addresses):
5146 For the .bss section action, apply the same offset as
5147 the .data section.
5148
5149 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5150
5151 * solib-aix.c (solib_aix_relocate_section_addresses):
5152 Remove FIXME comment.
5153
5154 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5155
5156 PR tdep/15420:
5157 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5158 New functions, directly copied from sparc-sol-thread.c.
5159 * sparc-sol-thread.c: Delete.
5160 * configure.ac: Remove code handling sparc-solaris-thread.c.
5161 * configure: Regenerate.
5162
5163 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5164
5165 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5166 filter logic.
5167 (backtrace_command): Add "no-filters" option parsing.
5168 (_initialize_stack): Alter help to reflect "no-filters" option.
5169 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5170 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5171 (py-frame.o): Add target
5172 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5173 filter files.
5174 * python/python.h: Add new frame filter constants, and flag enum.
5175 (apply_frame_filter): Add definition.
5176 * python/python.c (apply_frame_filter): New non-Python
5177 enabled function.
5178 * python/py-utils.c (py_xdecref): New function.
5179 (make_cleanup_py_xdecref): Ditto.
5180 * python/py-objfile.c: Declare frame_filters dictionary.
5181 (objfpy_dealloc): Add frame_filters dealloc.
5182 (objfpy_new): Initialize frame_filters attribute.
5183 (objfile_to_objfile_object): Ditto.
5184 (objfpy_get_frame_filters): New function.
5185 (objfpy_set_frame_filters): New function.
5186 * python/py-progspace.c: Declare frame_filters dictionary.
5187 (pspy_dealloc): Add frame_filters dealloc.
5188 (pspy_new): Initialize frame_filters attribute.
5189 (pspacee_to_pspace_object): Ditto.
5190 (pspy_get_frame_filters): New function.
5191 (pspy_set_frame_filters): New function.
5192 * python/py-framefilter.c: New file.
5193 * python/lib/gdb/command/frame_filters.py: New file.
5194 * python/lib/gdb/frames.py: New file.
5195 * python/lib/gdb/__init__.py: Initialize global frame_filters
5196 dictionary
5197 * python/lib/gdb/FrameDecorator.py: New file.
5198 * python/lib/gdb/FrameIterator.py: New file.
5199 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5200 * mi/mi-cmds.h: Declare.
5201 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5202 --no-frame-filter logic, and Python frame filter logic.
5203 (stack_enable_frame_filters): New function.
5204 (parse_no_frame_option): Ditto.
5205 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5206 filter logic.
5207 (mi_cmd_stack_list_locals): Ditto.
5208 (mi_cmd_stack_list_args): Ditto.
5209 (mi_cmd_stack_list_variables): Ditto.
5210 * NEWS: Add frame filter note.
5211
5212 2013-05-09 Doug Evans <dje@google.com>
5213
5214 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5215 All callers updated.
5216 (syms_from_objfile): Ditto. Make static.
5217 (symbol_file_add_with_addrs): Renamed from
5218 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5219 num_offsets. All callers updated.
5220 * symfile.h (syms_from_objfile): Delete.
5221
5222 * symfile.c (decrement_reading_symtab): Add assert.
5223 (increment_reading_symtab): Ditto.
5224
5225 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5226
5227 * source.c (forward_search_command): Replace call to getc
5228 by call to fgetc.
5229 (reverse_search_command): Likewise.
5230
5231 2013-05-08 Doug Evans <dje@google.com>
5232
5233 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5234 matching test.
5235
5236 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5237
5238 * sol-thread.c (info_cb): Factorize the code a little.
5239
5240 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5241
5242 * sol-thread.c (info_cb): Rework the output of the "maintenance
5243 info sol-threads" command a bit.
5244
5245 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5246
5247 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5248 Replace ti.ti_startfunc by ti.ti_pc.
5249
5250 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5251
5252 * solib-aix.c (solib_aix_free_library_list): New function
5253 for the case where HAVE_LIBEXPAT is not defined.
5254
5255 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5256
5257 PR breakpoints/15413:
5258 * breakpoint.c (condition_completer): Simplify the code to
5259 disconsider multiple locations of breakpoints when completing the
5260 "condition" command.
5261
5262 2013-05-07 Pierre Muller <muller@sourceware.org>
5263
5264 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5265 instead of <sys/wait.h>.
5266
5267 2013-05-07 Pierre Muller <muller@sourceware.org>
5268
5269 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5270 trailing new line from warning message.
5271
5272 2013-05-07 Pierre Muller <muller@sourceware.org>
5273
5274 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5275 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5276
5277 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5278
5279 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5280 error message (ARI fix).
5281
5282 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5283
5284 * features/library-list-aix.dtd: Replace library-list by
5285 library-list-aix.
5286 * rs6000-nat.c: Replace library-list by library-list-aix
5287 throughout.
5288 * solib-aix.c: Likewise.
5289
5290 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5291
5292 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5293 Renames TARGET_OBJECT_AIX_LIBRARIES.
5294 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5295 TARGET_OBJECT_LIBRARIES_AIX throughout.
5296 * solib-aix.c: Likwise.
5297
5298 2013-05-07 Yao Qi <yao@codesourcery.com>
5299
5300 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5301 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5302
5303 2013-05-07 Yao Qi <yao@codesourcery.com>
5304
5305 * solib-dsbt.c (enable_break): Declare.
5306 (dsbt_current_sos): Remove call to enable_break2.
5307 (enable_break2): Rename to enable_break. Set solib breakpoint
5308 on '_dl_debug_state'.
5309 (enable_break): Remove.
5310
5311 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5312
5313 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5314 debug state prior to replicating existing hardware watchpoints or
5315 breakpoints.
5316
5317 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5318
5319 * gcore.c (gcore_create_callback): Ignore sections with
5320 separate_debug_objfile_backlink != NULL.
5321
5322 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5323 Andrew Jenner <andrew@codesourcery.com>
5324 Chung-Lin Tang <cltang@codesourcery.com>
5325 Julian Brown <julian@codesourcery.com>
5326
5327 Based on the nios2-elf port from Altera Corporation.
5328
5329 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5330 nios2-linux-tdep.o.
5331 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5332 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5333 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5334 * nios2-tdep.h: New.
5335 * nios2-tdep.c: New.
5336 * nios2-linux-tdep.c: New.
5337 * features/Makefile (WHICH): Add nios2-linux.
5338 (nios2-linux-expedite): Set.
5339 * features/nios2-cpu.xml: New.
5340 * features/nios2.xml: New.
5341 * features/nios2-linux.xml: New.
5342 * features/nios2.c: New (autogenerated).
5343 * features/nios2-linux.c: New (autogenerated).
5344 * regformats/nios2-linux.dat: New (autogenerated).
5345 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5346 and commands.
5347
5348 2013-05-06 Doug Evans <dje@google.com>
5349
5350 * symfile.c: Whitespace cleanup.
5351
5352 * solist.h (struct target_so_ops): New member clear_so.
5353 * solib-svr4.c (svr4_clear_so): New function.
5354 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5355 * solib.c (clear_so): Renamed from free_so_symbols.
5356 All callers updated. Call target clear_so if it exists.
5357
5358 2013-05-06 Tom Tromey <tromey@redhat.com>
5359
5360 * ada-lang.c (ada_value_primitive_packed_val): Don't
5361 call value_incref.
5362 * value.c (set_value_parent): Incref the new parent and decref
5363 the old parent.
5364 (value_copy, value_primitive_field): Use set_value_parent.
5365
5366 2013-05-06 Tom Tromey <tromey@redhat.com>
5367
5368 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5369 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5370 if needed.
5371 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5372 * dwarf2read.c (write_constant_as_bytes)
5373 (dwarf2_fetch_constant_bytes): New functions.
5374
5375 2013-05-06 Tom Tromey <tromey@redhat.com>
5376
5377 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5378 parameters.
5379 (dwarf2_const_value_attr): Update.
5380
5381 2013-05-06 Tom Tromey <tromey@redhat.com>
5382
5383 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5384 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5385 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5386 Remove declaration.
5387
5388 2013-05-06 Tom Tromey <tromey@redhat.com>
5389
5390 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5391 objfile's obstack.
5392
5393 2013-05-06 Doug Evans <dje@google.com>
5394
5395 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5396 * stabsread.h (process_one_symbol): Update declaration.
5397 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5398 * elfread.c (elf_symfile_relocate_probe): Ditto.
5399 * psymtab.c (relocate_psymtabs): Ditto.
5400 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5401 (objfile_relocate): Ditto.
5402 * objfiles.h (objfile_relocate): Update declaration.
5403 * symfile.c (relative_addr_info_to_section_offsets): Constify
5404 addrs parameter.
5405 (default_symfile_offsets): Ditto.
5406 (syms_from_objfile_1): Constify offsets parameter.
5407 (syms_from_objfile): Ditto.
5408 (symbol_file_add_with_addrs_or_offsets): Ditto.
5409 (symfile_map_offsets_to_segments): Constify data parameter.
5410 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5411 delta parameters of member relocate.
5412 (struct sym_probe_fns): Constify new_offsets,
5413 delta parameters of member sym_relocate_probe.
5414 (struct sym_fns): Constify section_addr_info parameter of member
5415 sym_offsets.
5416 (relative_addr_info_to_section_offsets): Update declaration.
5417 (default_symfile_offsets): Ditto.
5418 (syms_from_objfile): Ditto.
5419 (symfile_map_offsets_to_segments): Ditto.
5420
5421 * symfile.c (syms_from_objfile_1): Use correct section count when
5422 objfile->sf == NULL.
5423
5424 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5425
5426 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5427
5428 2013-05-06 Doug Evans <dje@google.com>
5429
5430 * psympriv.h (struct partial_symtab): Augment comment for member
5431 section_offsets.
5432
5433 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5434
5435 Reimplement shared library support on ppc-aix...
5436 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5437 * features/library-list-aix.dtd: New file.
5438 * solib-aix.h, solib-aix.c: New file.
5439 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5440 (rs6000_find_toc_address_hook): Delete.
5441 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5442 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5443 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5444 "xml-utils.h".
5445 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5446 (vmap_symtab, fixup_breakpoints): Delete.
5447 (rs6000_xfer_shared_libraries): New function.
5448 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5449 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5450 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5451 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5452 (rs6000_xfer_shared_library): New function.
5453 (find_toc_address): Delete.
5454 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5455 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5456 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5457 before creating minimal symbol. Adjust function description
5458 accordingly.
5459 (scan_xcoff_symtab): Replace call to
5460 prim_record_minimal_symbol_and_info by call to
5461 record_minimal_symbol.
5462 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5463 around default_symfile_offsets.
5464 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5465 powerpc-aix targets.
5466 * config/rs6000/nm-rs6000.h: Delete.
5467 * config/powerpc/aix.mh (NAT_FILE): Delete.
5468 (NATDEPFILES): Remove xcoffsolib.o.
5469 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5470 (ALL_TARGET_OBS): Add solib-aix.o.
5471 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5472 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5473 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5474 * xcoffsolib.h, xcoffsolib.c: Delete.
5475
5476 * solib.c (reload_shared_libraries): Remove reference to
5477 SOLIB_CREATE_INFERIOR_HOOK.
5478 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5479 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5480 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5481 comment.
5482 * corelow.c (deprecated_core_resize_section_table): Delete.
5483 * exec.c: Remove include of xcoffsolib.h".
5484 (map_vmap, vmap): Delete.
5485 (exec_close_1): Remove references to vmap.
5486 (exec_file_attach): Remove vmap handling code, and reference
5487 to DEPRECATED_IBM6000_TARGET.
5488 (bfdsec_to_vmap): Delete.
5489 (exec_files_info): Remove block of code handling VMAP.
5490 * infcmd.c (post_create_inferior): Remove reference to
5491 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5492 * infrun.c (follow_exec): Remove reference to
5493 SOLIB_CREATE_INFERIOR_HOOK.
5494 * stack.c (print_frame): Remove reference to PC_SOLIB.
5495 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5496 (dsbt_relocate_main_executable): Likewise.
5497 * solib-frv.c (frv_current_sos): Likewise.
5498
5499 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5500
5501 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5502 to target_write_memory and target_read_memory.
5503
5504 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5505
5506 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5507 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5508
5509 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5510
5511 * darwin-nat.c: Replace all "%x" instances in format strings
5512 into "0x%x" throughout.
5513
5514 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5515
5516 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5517 gdb_assert by call to MACH_CHECK_ERROR.
5518 (darwin_attach_pid): Raise an error rather than a failed
5519 assertion when various system calls failed. Report a warning
5520 instead of raising a failed assertion when PREV_NOT is not NULL
5521 after call to mach_port_request_notification.
5522 (darwin_ptrace_me): Raise an error rather than a failed
5523 assertion when read returns nonzero.
5524
5525 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5526
5527 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5528
5529 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5530
5531 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5532
5533 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5534
5535 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5536 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5537 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5538 a stale cleanup. Fix double free of NAME.
5539
5540 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5541
5542 * windows-nat.c (windows_delete_thread): Accept an additional
5543 argument, the thread's exit code, and announce thread death when
5544 print_thread_events is non-zero and we are deleting a thread that
5545 is not the main thread.
5546 (get_windows_debug_event): Pass thread exit code to
5547 windows_delete_thread.
5548
5549 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5550
5551 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5552 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5553 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5554 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5555 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5556 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5557 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5558 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5559 (gdbarch_tdep): New struct.
5560 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5561 E_NUM_REGS.
5562 (v850e3v5_register_name): New function.
5563 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5564 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5565 code handling the struct return conventions for the RH850 ABI.
5566 Update all callers.
5567 (v850_eight_byte_align_p): New function.
5568 (v850_push_call_dummy): Push structs by value, not by reference
5569 for the RH850 ABI. Add support for eight byte alignment.
5570 (v850_dbtrap_breakpoint_from_pc): New function.
5571 (v850_gdbarch_init): Add ABI detection code. Register
5572 v850e3v5_register_name for the v850e3v5 architecture. Set the
5573 number of registers for v850e3v5. Register
5574 v850_dbtrap_breakpoint_from_pc as appropriate.
5575 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5576
5577 2013-05-03 Doug Evans <dje@google.com>
5578
5579 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5580 of bfd_count_sections.
5581 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5582 * symfile.c (default_symfile_offsets): Ditto.
5583 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5584 one entry, not bfd_count_sections entries.
5585
5586 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5587
5588 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5589 `save' and `restore' register groups. Don't include SPL
5590 or SPH in these groups.
5591 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5592 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5593 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5594 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5595 dwarf2_append_unwinders().
5596
5597 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5598
5599 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5600 ignore SIGINT and SIGTRAP in case these internal signals are
5601 caught explicitely.
5602
5603 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5604
5605 * darwin-nat.c (darwin_read_write_inferior): Change types
5606 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5607 of copy_count to "mach_msg_type_number_t".
5608 (darwin_read_dyld_info): Change type of parameter
5609 rdaddr to "gdb_byte *".
5610
5611 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5612
5613 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5614 of &info->load_map from "char *" to "gdb_byte *".
5615
5616 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5617
5618 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5619 from "char *" to "gdb_byte *".
5620 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5621
5622 2013-04-30 Doug Evans <dje@google.com>
5623
5624 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5625 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5626 DWO stub. If DWO isn't found, just use stub.
5627 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5628
5629 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5630 calling init_cutu_and_read_dies.
5631
5632 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5633
5634 * target-descriptions.c (maint_print_c_tdesc_cmd):
5635 Add case to parse structures as register types and
5636 bitfields.
5637
5638 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5639
5640 * MAINTAINERS (Write After Approval): Add myself to the list.
5641
5642 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5643
5644 * sol-thread.c (rw_common): Change type of parameter "buf"
5645 to "gdb_byte *".
5646 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5647 rw_common to "gdb_byte *" instead of "char *".
5648
5649 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5650
5651 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5652 of local variable msym to const struct bound_minimal_symbol.
5653 Adjust use accordingly.
5654 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5655
5656 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5657
5658 * i386gnu-nat.c (CREG_OFFSET): New macro.
5659 (creg_offset): New array.
5660 (CREG_ADDR): Use creg_offset instead of reg_offset.
5661
5662 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5663
5664 * mep-tdep.c (mep_write_pc): Delete.
5665 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5666 Add call to set_gdbarch_pc_regnum.
5667
5668 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5669
5670 * common/filestuff.c: Replace #include <dirent.h> by
5671 #include "gdb_dirent.h".
5672
5673 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5674
5675 * common/filestuff.c: Replace #include <sys/stat.h> by
5676 #include "gdb_stat.h".
5677
5678 2013-04-29 Pierre Muller <muller@sourceware.org>
5679
5680 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5681 editCase function rule.
5682 (get_DW_AT_signature_type): Likewise.
5683
5684 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5685
5686 * m32r-tdep.c (m32r_write_pc): Delete.
5687 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5688 Add call to set_gdbarch_pc_regnum.
5689
5690 2013-04-29 Pierre Muller <muller@sourceware.org>
5691
5692 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5693
5694 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5695
5696 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5697
5698 2013-04-28 Yao Qi <yao@codesourcery.com>
5699
5700 * solib-dsbt.c (fetch_loadmap): Re-indent.
5701 (displacement_from_map, enable_break2): Likewise.
5702 (dsbt_relocate_section_addresses): Likewise.
5703
5704 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5705
5706 GDB 7.6 released.
5707
5708 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5709
5710 PR corefiles/14983:
5711 * dwarf2read.c (process_full_comp_unit): Always create a static
5712 block.
5713
5714 2013-04-25 Hui Zhu <hui@codesourcery.com>
5715
5716 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5717 to loc->cmd_bytecode.
5718
5719 2013-04-24 Doug Evans <dje@google.com>
5720
5721 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5722
5723 2013-04-22 Keith Seitz <keiths@redhat.com>
5724
5725 * tracepoint.c (trace_save): Call the writer's start method.
5726
5727 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5728
5729 PR gdb/10462
5730 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5731 before argument.
5732
5733 2013-04-23 Tom Tromey <tromey@redhat.com>
5734
5735 * common/filestuff.c: Check USE_WIN32API before including
5736 sys/socket.h.
5737 (HAVE_F_GETFD): New define.
5738 (mark_cloexec): Check HAVE_F_GETFD.
5739 (gdb_open_cloexec): Change 'mode' to unsigned long.
5740 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5741 (gdb_pipe_cloexec): Check HAVE_PIPE.
5742 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5743 long.
5744
5745 2013-04-23 Hui Zhu <hui@codesourcery.com>
5746
5747 PR gdb/15293
5748 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5749
5750 2013-04-23 Hui Zhu <hui@codesourcery.com>
5751
5752 PR gdb/15165
5753 * breakpoint.c (dprintf_print_recreate): New.
5754 (save_breakpoints): Let it not save dprintf commands.
5755 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5756
5757 2013-04-22 Tom Tromey <tromey@redhat.com>
5758
5759 PR gdb/7912:
5760 * Makefile.in (SFILES): Add filestuff.c
5761 (COMMON_OBS): Add filestuff.o.
5762 (filestuff.o): New target.
5763 * auto-load.c (auto_load_objfile_script_1): Use
5764 gdb_fopen_cloexec.
5765 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5766 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5767 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5768 * common/agent.c (gdb_connect_sync_socket): Use
5769 gdb_socket_cloexec.
5770 * common/filestuff.c: New file.
5771 * common/filestuff.h: New file.
5772 * common/linux-osdata.c (linux_common_core_of_thread)
5773 (command_from_pid, commandline_from_pid, print_source_lines)
5774 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5775 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5776 gdb_fopen_cloexec.
5777 * common/linux-procfs.c (linux_proc_get_int)
5778 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5779 * config.in, configure: Rebuild.
5780 * configure.ac: Don't check for sys/socket.h. Check for
5781 fdwalk, pipe2.
5782 * corelow.c (core_open): Use gdb_open_cloexec.
5783 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5784 * fork-child.c (fork_inferior): Call close_most_fds.
5785 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5786 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5787 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5788 Use gdb_fopen_cloexec.
5789 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5790 gdb_open_cloexec.
5791 (linux_async_pipe): Use gdb_pipe_cloexec.
5792 * remote-fileio.c (remote_fileio_func_open): Use
5793 gdb_open_cloexec.
5794 * remote.c (remote_file_put, remote_file_get): Use
5795 gdb_fopen_cloexec.
5796 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5797 close_most_fds.
5798 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5799 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5800 * solib.c (solib_find): Use gdb_open_cloexec.
5801 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5802 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5803 (tfile_open): Use gdb_open_cloexec.
5804 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5805 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5806 * xml-support.c (xml_fetch_content_from_file): Use
5807 gdb_fopen_cloexec.
5808 * main.c (captured_main): Call notice_open_fds.
5809
5810 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5811
5812 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5813 'char *' to 'gdb_byte *'.
5814 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5815 'gdb_byte'.
5816
5817 2013-04-22 Yao Qi <yao@codesourcery.com>
5818
5819 * infrun.c: Fix typo in comment.
5820
5821 2013-04-22 Andrew Haley <aph@redhat.com>
5822
5823 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5824 instead of "long".
5825
5826 2013-04-20 Yao Qi <yao@codesourcery.com>
5827
5828 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5829 'char *' to 'gdb_byte *'. Cast the return value of
5830 'bt_ctf_get_char_array' to 'gdb_byte *'.
5831
5832 2013-04-19 Pedro Alves <palves@redhat.com>
5833
5834 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5835 -Wpointer-sign.
5836 * configure: Regenerate.
5837
5838 2013-04-19 Pedro Alves <palves@redhat.com>
5839
5840 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5841 'void *'.
5842
5843 2013-04-19 Pedro Alves <palves@redhat.com>
5844
5845 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5846 Change type of 'myaddr' parameter to gdb_byte pointer.
5847 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5848 to 'long long' pointer instead of to 'unsigned long long'.
5849 (monitor_write_memory_block, monitor_read_memory_single)
5850 (monitor_read_memory): Change type of 'myaddr' parameter to
5851 gdb_byte pointer.
5852
5853 2013-04-19 Pedro Alves <palves@redhat.com>
5854
5855 * record.c (validate_history_size): Make parameter 'setting'
5856 unsigned.
5857
5858 2013-04-19 Pedro Alves <palves@redhat.com>
5859
5860 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5861 to 'gdb_byte *'.
5862
5863 2013-04-19 Pedro Alves <palves@redhat.com>
5864
5865 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5866 local to int.
5867
5868 2013-04-19 Pedro Alves <palves@redhat.com>
5869
5870 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5871 * ada-tasks.c (read_fat_string_value): Likewise.
5872
5873 2013-04-19 Pedro Alves <palves@redhat.com>
5874
5875 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5876 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5877 'offset', and adjust.
5878
5879 2013-04-19 Pedro Alves <palves@redhat.com>
5880
5881 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5882 (read_index_from_section): Add cast to 'char *'.
5883
5884 2013-04-19 Pedro Alves <palves@redhat.com>
5885
5886 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5887
5888 2013-04-19 Pedro Alves <palves@redhat.com>
5889
5890 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5891
5892 2013-04-19 Pedro Alves <palves@redhat.com>
5893
5894 * record-full.c (record_full_get_bookmark): Change local 'ret'
5895 type to char * and add cast to gdb_byte *.
5896 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5897 string.
5898 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5899
5900 2013-04-19 Pedro Alves <palves@redhat.com>
5901
5902 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5903 * python/py-prettyprint.c (print_string_repr): Change type of
5904 'output' local to char *. Add cast to gdb_byte * in
5905 LA_PRINT_STRING call.
5906 (print_children): Change type of 'output' local to char *.
5907 * python/py-value.c (valpy_string): Add cast to const char * in
5908 PyUnicode_Decode call.
5909
5910 2013-04-19 Pedro Alves <palves@redhat.com>
5911
5912 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5913 and change its type to 'const char *'. Adjust.
5914 (mips_send_packet): Add cast to 'char *', and remove cast to
5915 'unsigned char *'.
5916 (mips_receive_packet): Remove cast to 'unsigned char *'.
5917 (mips_load_srec): Use bfd_byte.
5918 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5919 (pmon_checkset): Make 'value' parameter unsigned.
5920
5921 2013-04-19 Pedro Alves <palves@redhat.com>
5922
5923 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5924
5925 2013-04-19 Pedro Alves <palves@redhat.com>
5926
5927 * remote.c (remote_write_bytes_aux, compare_sections_command)
5928 (remote_read_qxfer)
5929 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5930 (remote_hostio_readlink, remote_bfd_iovec_pread)
5931 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5932 binary buffer, and char when buffer is used as string.
5933 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5934 (trace_save, tfile_open, traceframe_walk_blocks)
5935 (tfile_fetch_registers): Likewise.
5936
5937 2013-04-19 Pedro Alves <palves@redhat.com>
5938
5939 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5940 buffer and size_t size. Adjust.
5941 * ser-base.h (ser_base_write): Adjust.
5942 * ser-go32.c (cnts): Change type to size_t.
5943 (dos_write): Change prototype -- take 'void *'
5944 buffer and size_t size. Adjust.
5945 (dos_info): Print elements of 'cnts' as unsigned long.
5946 * serial.c (serial_write): Likewise.
5947 * serial.h (serial_write): Adjust.
5948 (struct serial_ops) <write>: Change prototype -- take 'void *'
5949 buffer and size_t size. Adjust.
5950
5951 2013-04-19 Pedro Alves <palves@redhat.com>
5952
5953 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5954 gdb_byte *.
5955 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5956
5957 2013-04-19 Pedro Alves <palves@redhat.com>
5958
5959 * alpha-tdep.c (alpha_extract_return_value): Use
5960 regcache_cooked_read_unsigned to read 'v0'.
5961
5962 2013-04-19 Pedro Alves <palves@redhat.com>
5963
5964 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5965 parameters 'at', 'as' and 'offset' to uint32_t.
5966
5967 2013-04-19 Pedro Alves <palves@redhat.com>
5968
5969 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5970 'is64' to signed 'int'.
5971
5972 2013-04-19 Pedro Alves <palves@redhat.com>
5973
5974 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5975 parameter to int *.
5976
5977 2013-04-19 Pedro Alves <palves@redhat.com>
5978
5979 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5980 'insnbuf' buffer type to unsigned int[].
5981
5982 2013-04-19 Pedro Alves <palves@redhat.com>
5983
5984 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5985
5986 2013-04-19 Pedro Alves <palves@redhat.com>
5987
5988 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5989 unsigned long *.
5990
5991 2013-04-19 Pedro Alves <palves@redhat.com>
5992
5993 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5994 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5995 UINT_MAX.
5996 * mips-tdep.c (heuristic_fence_post): Change type to int.
5997 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5998
5999 2013-04-19 Pedro Alves <palves@redhat.com>
6000
6001 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6002 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6003 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6004
6005 2013-04-19 Pedro Alves <palves@redhat.com>
6006
6007 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6008 it to get a string view of the byte buffer.
6009 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6010 type to gdb_byte *. Adjust.
6011 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6012 Change local to char *.
6013 * solib-darwin.c (find_program_interpreter): Change return type to
6014 char *. Adjust.
6015 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6016 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6017 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6018 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6019 * solib-svr4.c (find_program_interpreter): Change return type to
6020 char *. Adjust.
6021 (enable_break): Change local 'interp_name' to char *.
6022 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6023 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6024 (spu_pseudo_register_write_spu): Use char for string buffer.
6025 Adjust.
6026 (info_spu_event_command, info_spu_signal_command): Add casts to
6027 'char *'.
6028
6029 2013-04-19 Pedro Alves <palves@redhat.com>
6030
6031 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6032 gdb_byte[].
6033 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6034 * ada-lang.c (ada_value_assign): Use gdb_byte.
6035 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6036 (alphanbsd_sigtramp_offset): Use gdb_byte.
6037 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6038 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6039 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6040 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6041 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6042 * arm-tdep.c (arm_stub_unwind_sniffer)
6043 (arm_displaced_init_closure): Use gdb_byte.
6044 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6045 (arm_default_thumb_le_breakpoint)
6046 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6047 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6048 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6049 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6050 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6051 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6052 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6053 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6054 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6055 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6056 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6057 (cris_store_return_value, cris_extract_return_value): Use
6058 gdb_byte.
6059 (constraint): Change type of parameter to char * from signed
6060 char*. Use gdb_byte.
6061 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6062 of local buffer to gdb_byte *.
6063 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6064 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6065 (add_address_entry): Change type of local buffer to gdb_byte[].
6066 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6067 (frv_push_dummy_call): Use gdb_byte.
6068 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6069 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6070 (hppa_hpux_supply_save_state): Use gdb_byte.
6071 * hppa-tdep.c (hppa32_push_dummy_call)
6072 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6073 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6074 (slotN_contents, replace_slotN_contents): Change type of parameter
6075 to gdb_byte *.
6076 (fetch_instruction, ia64_pseudo_register_write)
6077 (ia64_register_to_value, ia64_value_to_register)
6078 (ia64_extract_return_value, ia64_store_return_value)
6079 (ia64_push_dummy_call): Use gdb_byte.
6080 * m32c-tdep.c (m32c_return_value): Remove cast.
6081 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6082 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6083 gdb_byte.
6084 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6085 * mn10300-tdep.c (mn10300_store_return_value)
6086 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6087 gdb_byte.
6088 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6089 (moxie_process_record): Remove casts.
6090 * ppc-ravenscar-thread.c (supply_register_at_address)
6091 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6092 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6093 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6094 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6095 * remote.c (compare_sections_command): Use gdb_byte.
6096 * score-tdep.c (score7_free_memblock): Change type of parameter to
6097 gdb_byte *.
6098 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6099 gdb_byte *. Use gdb_byte.
6100 (sh_push_dummy_call_fpu): Use gdb_byte.
6101 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6102 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6103 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6104 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6105 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6106 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6107 (sh64_store_return_value, sh64_register_convert_to_virtual):
6108 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6109 (sh64_pseudo_register_write): Use gdb_byte.
6110 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6111 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6112 buffer.
6113 (irix_current_sos): Use gdb_byte.
6114 * solib-som.c (som_current_sos): Use gdb_byte.
6115 * sparc-ravenscar-thread.c (supply_register_at_address)
6116 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6117 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6118 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6119 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6120 'gdb_byte *'.
6121 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6122 'gdb_byte *'.
6123 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6124 * xstormy16-tdep.c (xstormy16_extract_return_value)
6125 (xstormy16_store_return_value): Change parameter type to
6126 'gdb_byte *'. Adjust.
6127 (xstormy16_push_dummy_call): Use gdb_byte.
6128 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6129 (call0_analyze_prologue, execute_code): Use gdb_byte.
6130
6131 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6132 Pedro Alves <palves@redhat.com>
6133
6134 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6135 value contents.
6136
6137 2013-04-17 Doug Evans <dje@google.com>
6138
6139 * dwarf2read.c (struct signatured_type): New member type.
6140 (struct attribute): Replace member signatured_type with signature.
6141 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6142 (read_call_site_scope): Call follow_die_ref instead of
6143 follow_die_ref_or_sig.
6144 (read_structure_type): Rewrite handling of signatured types.
6145 (read_enumeration_type): Ditto.
6146 (read_attribute_value): Update.
6147 (build_error_marker_type): New function.
6148 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6149 Don't call error for bad types, just build an error marker type.
6150 (dump_die_shallow): Update.
6151 (follow_die_sig_1): Renamed from follow_die_sig.
6152 Don't call error for bad types, instead return NULL.
6153 (follow_die_sig): New function.
6154 (get_signatured_type, get_DW_AT_signature_type): New functions.
6155
6156 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6157
6158 * aarch64-tdep.c (aarch64_write_pc): Removed.
6159 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6160 function.
6161
6162 2013-04-17 Yao Qi <yao@codesourcery.com>
6163
6164 * top.c (print_gdb_configuration): Print configure-time
6165 parameter on using libbabeltrace or not.
6166
6167 2013-04-16 Pedro Alves <palves@redhat.com>
6168
6169 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6170
6171 2013-04-16 Pedro Alves <palves@redhat.com>
6172
6173 * common/glibc_thread_db.h: Update from upstream glibc
6174 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6175
6176 2013-04-16 Pedro Alves <palves@redhat.com>
6177
6178 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6179 * common/glibc_thread_db.h: ... this new file ...
6180 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6181
6182 2013-04-16 Will Newton <will.newton@gmail.com>
6183 Pedro Alves <palves@redhat.com>
6184
6185 PR build/11881
6186
6187 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6188 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6189 HAVE_THREAD_DB_H.
6190
6191 2013-04-16 Pedro Alves <palves@redhat.com>
6192 Eli Zaretskii <eliz@gnu.org>
6193
6194 * NEWS: Mention "set foo unlimited".
6195
6196 2013-04-15 Doug Evans <dje@google.com>
6197
6198 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6199 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6200 (create_dwo_cu_reader): Renamed from
6201 create_dwo_debug_info_hash_table_reader.
6202 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6203 Remove support for multiple CUs in a DWO file.
6204 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6205
6206 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6207 instead of phex.
6208 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6209 (create_dwo_in_dwp): Ditto.
6210
6211 2013-04-15 Tom Tromey <tromey@redhat.com>
6212
6213 * NEWS: Move recent entries into "since 7.6" section.
6214
6215 2013-04-15 Tom Tromey <tromey@redhat.com>
6216
6217 PR c++/13588:
6218 * NEWS: Update.
6219 * break-catch-throw.c (struct exception_catchpoint)
6220 <exception_rx, pattern>: New fields.
6221 (fetch_probe_arguments, dtor_exception_catchpoint)
6222 (check_status_exception_catchpoint)
6223 (print_one_detail_exception_catchpoint): New functions.
6224 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6225 Compile regular expression if needed.
6226 (extract_exception_regexp): New function.
6227 (catch_exception_command_1): Use extract_exception_regexp.
6228 (compute_exception): Use fetch_probe_arguments.
6229 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6230 and check_status fields.
6231 * cp-abi.c (cplus_typename_from_type_info): New function.
6232 * cp-abi.h (cplus_typename_from_type_info): Declare.
6233 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6234 * gdb_regex.h (compile_rx_or_error): Declare.
6235 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6236 comment.
6237 (init_gnuv3_ops): Set get_type_from_type_info field.
6238 * probe.c (compile_rx_or_error): Move...
6239 * utils.c (compile_rx_or_error): ... here.
6240
6241 2013-04-15 Tom Tromey <tromey@redhat.com>
6242
6243 PR c++/15176:
6244 * NEWS: Update.
6245 * break-catch-throw.c (compute_exception): New function.
6246 (exception_funcs): New global.
6247 (_initialize_break_catch_throw): Create $_exception.
6248 * cp-abi.c (cplus_type_from_type_info): New function.
6249 * cp-abi.h (cplus_type_from_type_info): Declare.
6250 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6251 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6252 (gnuv3_get_type_from_type_info): New functions.
6253 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6254
6255 2013-04-15 Tom Tromey <tromey@redhat.com>
6256
6257 * break-catch-throw.c (struct exception_names): New.
6258 (exception_functions): Change type.
6259 (re_set_exception_catchpoint): Look for SDT probes.
6260
6261 2013-04-15 Tom Tromey <tromey@redhat.com>
6262
6263 PR c++/10119:
6264 * break-catch-throw.c (exception_functions): New global.
6265 (gnu_v3_exception_catchpoint_ops): Move earlier.
6266 (struct exception_catchpoint): New.
6267 (classify_exception_breakpoint): Rewrite.
6268 (re_set_exception_catchpoint): New function.
6269 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6270 Allocate a struct exception_catchpoint.
6271 (catch_exception_command_1): Update.
6272 (initialize_throw_catchpoint_ops): Set 're_set' method.
6273
6274 2013-04-15 Tom Tromey <tromey@redhat.com>
6275
6276 * Makefile.in (SFILES): Add break-catch-throw.c
6277 (COMMON_OBS): Add break-catch-throw.o.
6278 * break-catch-throw.c: New file.
6279 * breakpoint.c: Move exception-catching code to new file.
6280 (ep_parse_optional_if_clause): No longer static.
6281 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6282
6283 2013-04-15 Tom Tromey <tromey@redhat.com>
6284
6285 PR c++/9065:
6286 * NEWS: Update.
6287 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6288 * c-exp.y (TYPEID): New token.
6289 (exp): Add new TYPEID productions.
6290 (ident_tokens): Add "typeid".
6291 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6292 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6293 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6294 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6295 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6296 case.
6297 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6298 (build_std_type_info_type, gnuv3_get_typeid_type)
6299 (gnuv3_get_typeid): New functions.
6300 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6301 new fields on ABI object.
6302 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6303 * std-operator.def (OP_TYPEID): New.
6304
6305 2013-04-15 Tom Tromey <tromey@redhat.com>
6306
6307 * elfread.c (elf_symtab_read): Install versioned symbol under
6308 unversioned name as well.
6309
6310 2013-04-15 Tom Tromey <tromey@redhat.com>
6311
6312 PR c++/11990:
6313 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6314 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6315 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6316 (gdb_demangle): New function.
6317 * cp-support.h (gdb_demangle): Declare.
6318 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6319 (dwarf2_name): Use gdb_demangle.
6320 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6321 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6322 suffixes from name.
6323 (gnuv3_print_method_ptr): Use gdb_demangle.
6324 * jv-lang.c (java_demangle): Use gdb_demangle.
6325 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6326 * language.c (unk_lang_demangle): Use gdb_demangle.
6327 * symtab.c (symbol_find_demangled_name)
6328 (demangle_for_lookup): Use gdb_demangle.
6329
6330 2013-04-15 Tom Tromey <tromey@redhat.com>
6331
6332 PR c++/12824:
6333 * NEWS: Update.
6334 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6335 New constant.
6336 (classify_exception_breakpoint): New function.
6337 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6338 (print_mention_exception_catchpoint)
6339 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6340 (catch_exception_command_1): Handle "rethrow" catchpoint.
6341 (catch_rethrow_command): New function.
6342 (_initialize_breakpoint): Add "catch rethrow" command.
6343
6344 2013-04-15 Pierre Muller <muller@sourceware.org>
6345
6346 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6347 set_gdbarch_write_pc as deprecated anymore.
6348
6349 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6350
6351 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6352 declarations.
6353
6354 2013-04-13 Yao Qi <yao@codesourcery.com>
6355
6356 * ctf.c (_initialize_ctf): Include "completer.h".
6357 Call add_target_with_completer instead of add_target.
6358
6359 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6360
6361 Fix GDB regression related to PR binutils/14813.
6362 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6363 * minidebug.c (lzma_close): Add return value comment.
6364 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6365 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6366 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6367
6368 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6369
6370 * config.in: Regenerate.
6371
6372 2013-04-12 Tom Tromey <tromey@redhat.com>
6373
6374 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6375 const.
6376 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6377 (struct die_reader_specs) <buffer>: Likewise.
6378 (die_reader_func_ftype): Make 'info_ptr' const.
6379 (struct line_header) <include_dirs, statement_program_start,
6380 statement_program_end>: Now const.
6381 (struct file_entry) <name>: Likewise.
6382 (struct partial_die_info) <sibling>: Likewise.
6383 (struct dwarf_block) <data>: Likewise.
6384 (dwarf2_read_section): Remove cast.
6385 (dwarf2_get_section_info): Make 'bufp' const.
6386 (read_index_from_section): Constify.
6387 (dw2_get_file_names_reader): Make 'info_ptr' const.
6388 (dw2_get_primary_filename_reader): Likewise.
6389 (read_comp_unit_head): Make 'info_ptr' and return type const.
6390 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6391 Likewise.
6392 (read_abbrev_offset): Constify.
6393 (dwarf2_create_include_psymtab): Make 'name' const.
6394 (create_debug_types_hash_table): Update.
6395 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6396 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6397 Constify.
6398 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6399 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6400 (read_comp_units_from_section): Constify.
6401 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6402 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6403 const.
6404 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6405 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6406 (create_dwp_hash_table, dwarf2_ranges_read)
6407 (dwarf2_record_block_ranges): Constify.
6408 (read_die_and_children, read_die_and_siblings_1)
6409 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6410 const.
6411 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6412 (abbrev_table_read_table): Constify.
6413 (load_partial_dies): Make 'info_ptr' const.
6414 (read_partial_die, read_attribute_value, read_attribute): Make
6415 'info_ptr' and return type const.
6416 (read_address, read_initial_length)
6417 (read_checked_initial_length_and_offset, read_offset)
6418 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6419 const.
6420 (read_direct_string): Make 'buf' and return type const.
6421 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6422 (read_indirect_string): Make return type const.
6423 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6424 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6425 'info_ptr' const.
6426 (read_str_index): Make return type const.
6427 (add_include_dir): Make 'include_dir' const.
6428 (add_file_name): Make 'name' const.
6429 (dwarf_decode_line_header): Constify.
6430 (psymtab_include_file_name): Make return type const.
6431 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6432 (dwarf2_start_subfile): Make 'filename' const.
6433 (dwarf2_const_value_attr): Make 'bytes' const.
6434 (read_signatured_type_reader): Make 'info_ptr' const.
6435 (decode_locdesc): Constify.
6436 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6437 const.
6438 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6439 'mac_end', and return type const.
6440 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6441 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6442 type const.
6443 (per_cu_header_read_in): Constify.
6444 * symfile.h (dwarf2_get_section_info): Update.
6445
6446 2013-04-12 Tom Tromey <tromey@redhat.com>
6447
6448 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6449
6450 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6451
6452 * NEWS: Mention "show configuration", --configuration.
6453 * top.c (print_gdb_configuration): New function, displays the
6454 details about GDB configure-time parameters.
6455 (print_gdb_version): Mention "show configuration".
6456 * cli/cli-cmds.c (show_configuration): New function.
6457 (_initialize_cli_cmds): Add the "show configuration" command.
6458 * main.c (captured_main) <print_configuration>: New static var.
6459 <long_options>: Use it.
6460 If --configuration was given, call print_gdb_configuration.
6461
6462 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6463 Pedro Alves <palves@redhat.com>
6464
6465 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6466 (generated_files): Add gcore.
6467 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6468 HAVE_NATIVE_GCORE_HOST.
6469 (gcore): New.
6470 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6471 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6472 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6473 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6474 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6475 Add HAVE_NATIVE_GCORE_HOST.
6476 * configure: Regenerate.
6477 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6478 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6479 AC_CONFIG_FILES for gcore.
6480 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6481 gdb_have_gcore.
6482 * gdb_gcore.sh: Rename to ...
6483 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6484 and GCORE_TRANSFORM_NAME substitutions.
6485
6486 Fix parsing tabs in ${gdb_target_obs}.
6487 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6488
6489 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6490
6491 * remote.c (unpush_and_perror): Add output message final dot.
6492
6493 2013-04-11 Yao Qi <yao@codesourcery.com>
6494
6495 * tracepoint.c (tfile_interp_line): Fit parameters line and
6496 utpp in one line.
6497
6498 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6499
6500 * solib.c (solib_map_sections): Remove code overwriting
6501 SO->SO_NAME with the bfd's filename.
6502
6503 2013-04-10 Pedro Alves <palves@redhat.com>
6504
6505 * cli/cli-decode.c (integer_unlimited_completer): New function.
6506 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6507 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6508 completer.
6509 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6510 (is_unlimited_literal): New function.
6511 (do_set_command): Handle literal "unlimited" arguments.
6512 * frame.c (_initialize_frame) <set backtrace limit>: Document
6513 "unlimited".
6514 * printcmd.c (_initialize_printcmd) <set print
6515 max-symbolic-offset>: Add help text.
6516 * record-full.c (_initialize_record_full) <set record full
6517 insn-number-max>: Likewise.
6518 * record.c (_initialize_record) <set record
6519 instruction-history-size, set record function-call-history-size>:
6520 Add help text.
6521 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6522 help text.
6523 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6524 Likewise.
6525 * source.c (_initialize_source) <set listsize>: Add help text.
6526 * utils.c (initialize_utils) <set height, set width>: Likewise.
6527 <set pagination>: Mention "set height unlimited".
6528 * valprint.c (_initialize_valprint) <set print elements, set print
6529 repeats>: Document "unlimited".
6530
6531 2013-04-10 Pedro Alves <palves@redhat.com>
6532
6533 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6534 instead of disconnect_tracing.
6535 * infcmd.c (detach_command, disconnect_command): Call
6536 query_if_trace_running. Adjust.
6537 * top.c: Include "tracepoint.h".
6538 (quit_target): Delete. Contents moved ...
6539 (quit_force): ... here. Wrap each stage of teardown in
6540 TRY_CATCH. Call disconnect_tracing before detaching.
6541
6542 2013-04-10 Hui Zhu <hui@codesourcery.com>
6543 Yao Qi <yao@codesourcery.com>
6544
6545 * configure.ac: Check libbabeltrace is installed.
6546 * config.in: Regenerate.
6547 * configure: Regenerate.
6548 * Makefile.in (LIBBABELTRACE): New.
6549 (CLIBS): Add LIBBABELTRACE.
6550 * ctf.c: Include "exec.h".
6551 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6552 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6553 (ctf_save_metadata_header): Define new type aliases in
6554 metadata.
6555 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6556 in metadata. Start a new faked packet for trace status.
6557 (ctf_write_status): Write trace status to CTF.
6558 (ctf_write_uploaded_tsv): Write TSV to CTF.
6559 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6560 (ctf_write_definition_end): End the faked packet.
6561
6562 (ctx, ctf_iter, trace_dirname): New.
6563 (start_pos): New variable.
6564 (ctf_destroy, ctf_open_dir, ctf_open): New.
6565 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6566 macros.
6567 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6568 (ctf_fetch_registers, ctf_xfer_partial): New.
6569 (ctf_get_trace_state_variable_value): New.
6570 (ctf_get_tpnum_from_frame_event): New.
6571 (ctf_get_traceframe_address): New.
6572 (ctf_trace_find, ctf_has_stack): New.
6573 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6574 (ctf_get_trace_status, ctf_read_status): New.
6575 (_initialize_ctf): New.
6576 * tracepoint.c (get_tracepoint_number): New
6577 (get_uploaded_tsv): Remove 'static'.
6578 (struct traceframe_info, trace_regblock_size): Move it to ...
6579 * tracepoint.h: ... here.
6580 (get_tracepoint_number): Declare it.
6581 (get_uploaded_tsv): Declare it.
6582
6583 * NEWS: Mention new configure option.
6584
6585 2013-04-10 Pedro Alves <palves@redhat.com>
6586 Hui Zhu <hui@codesourcery.com>
6587
6588 * breakpoint.c (dprintf_re_set): New.
6589 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6590 to dprintf_re_set.
6591
6592 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6593
6594 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6595 Remove solib-svr4.o from the list.
6596
6597 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6598
6599 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6600 Use gdb_assert_not_reached instead of invalid boolean expression.
6601
6602 2013-04-09 Pedro Alves <palves@redhat.com>
6603
6604 * remote.c (unpush_and_perror): New function.
6605 (readchar, remote_serial_write): Use it.
6606
6607 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6608
6609 * NEWS: Mention new btrace RSP packets.
6610
6611 2013-04-08 Tom Tromey <tromey@redhat.com>
6612
6613 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6614 long.
6615
6616 2013-04-08 Tom Tromey <tromey@redhat.com>
6617
6618 * maint.c (print_bfd_section_info): Print the section index.
6619 * symmisc.c (dump_msymbols): Print the section index.
6620
6621 2013-04-08 Tom Tromey <tromey@redhat.com>
6622
6623 PR symtab/8424:
6624 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6625 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6626 * breakpoint.c (resolve_sal_pc): Update.
6627 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6628 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6629 (minsym_lookup_iterator_cb): Use it.
6630 (default_read_var_value): Update.
6631 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6632 Update.
6633 * infcmd.c (jump_command): Update.
6634 * linespec.c (minsym_found): Update.
6635 * maint.c (maintenance_translate_address): Update.
6636 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6637 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6638 * parse.c (write_exp_msymbol): Update.
6639 * printcmd.c (address_info): Update.
6640 * psymtab.c (find_pc_sect_psymbol): Update.
6641 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6642 SYMBOL_OBJ_SECTION.
6643 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6644 Don't initialize SYMBOL_OBJ_SECTION.
6645 * spu-tdep.c (spu_catch_start): Update.
6646 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6647 * symmisc.c (dump_msymbols, print_symbol): Update.
6648 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6649 how fallback section is computed.
6650 (fixup_symbol_section): Update.
6651 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6652 Update.
6653 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6654 Initialize SYMBOL_SECTION.
6655 * symtab.h (struct general_symbol_info) <section>: Update comment.
6656 <obj_section>: Remove.
6657 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6658 (SYMBOL_OBJFILE): New macro.
6659
6660 2013-04-08 Tom Tromey <tromey@redhat.com>
6661
6662 * coffread.c (record_minimal_symbol): Update.
6663 * dbxread.c (record_minimal_symbol): Update.
6664 * elfread.c (record_minimal_symbol): Update.
6665 * machoread.c (macho_symtab_add_minsym): Update.
6666 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6667 Update.
6668 * minsyms.c (prim_record_minimal_symbol): Update.
6669 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6670 argument.
6671 (prim_record_minimal_symbol_and_info): Likewise.
6672 * minsyms.h (prim_record_minimal_symbol_full)
6673 (prim_record_minimal_symbol_and_info): Update.
6674 * symtab.c (allocate_symbol, initialize_symbol)
6675 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6676 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6677 Update.
6678
6679 2013-04-08 Tom Tromey <tromey@redhat.com>
6680
6681 PR symtab/8423:
6682 * solib-som.c (som_solib_section_offsets): Use BFD section
6683 indices. Set offsets for all sections.
6684 * somread.c (som_symtab_read): Compute BFD section for
6685 symbol. Use prim_record_minimal_symbol_and_info.
6686 (som_symfile_read): Fix comment.
6687 (struct find_section_offset_arg): New.
6688 (find_section_offset, set_section_index): New functions.
6689 (som_symfile_offsets): Use set_section_index to compute
6690 section indices.
6691
6692 2013-04-08 Tom Tromey <tromey@redhat.com>
6693
6694 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6695 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6696 gdb_bfd_section_index.
6697 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6698 New functions.
6699 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6700 Declare.
6701 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6702 Update.
6703 * objfiles.c (add_to_objfile_sections_full): New function.
6704 (add_to_objfile_sections): Use it.
6705 (build_section_table): Rewrite.
6706 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6707 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6708 (struct objfile) <sections>: Update comment.
6709 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6710 is NULL.
6711 (ALL_OBJSECTIONS): Use it.
6712 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6713 * solib-frv.c (frv_relocate_main_executable): Update.
6714 * solib-target.c (solib_target_relocate_section_addresses):
6715 Use gdb_bfd_section_index.
6716 * symfile.c (build_section_addr_info_from_section_table):
6717 Use gdb_bfd_section_index.
6718 (build_section_addr_info_from_bfd, place_section): Likewise.
6719 * symtab.c (fixup_section): Update.
6720 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6721
6722 2013-04-08 Tom Tromey <tromey@redhat.com>
6723
6724 * minsyms.h (struct bound_minimal_symbol): New.
6725 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6726 Remove objfile argument.
6727 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6728 Return bound_minimal_symbol.
6729 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6730 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6731 Return bound_minimal_symbol.
6732 (in_gnu_ifunc_stub): Update.
6733 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6734 Remove 'objfile_p' argument.
6735 (lookup_solib_trampoline_symbol_by_pc): Update.
6736 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6737 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6738 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6739 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6740 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6741 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6742 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6743 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6744 stack.c, symtab.c, tui/tui-disasm.c: Update.
6745
6746 2013-04-08 Tom Tromey <tromey@redhat.com>
6747
6748 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6749 Use symbol's obstack, not an objfile.
6750 * coffread.c (process_coff_symbol): Update.
6751 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6752 * jv-lang.c (add_class_symbol): Update.
6753 * mdebugread.c (new_symbol): Update.
6754 * minsyms.c (prim_record_minimal_symbol_full)
6755 (terminate_minimal_symbol_table): Update.
6756 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6757 * stabsread.c (define_symbol, read_enum_type): Update.
6758 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6759 Handle Ada specially.
6760 (symbol_set_language): Add 'obstack' argument.
6761 (symbol_set_names): Update.
6762 (symbol_natural_name, symbol_demangled_name): Always use
6763 ada_decode_symbol.
6764 * symtab.h (struct general_symbol_info)
6765 <language_specific::obstack>: New field.
6766 <ada_mangled>: New field.
6767 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6768 (symbol_set_language): Update.
6769
6770 2013-04-08 Tom Tromey <tromey@redhat.com>
6771
6772 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6773 Take an obstack, not an objfile.
6774 (symbol_set_names): Update.
6775 * symtab.h (symbol_set_demangled_name): Update.
6776
6777 2013-04-08 Tom Tromey <tromey@redhat.com>
6778
6779 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6780 allocate_symbol.
6781 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6782 (read_func_scope): Call allocate_template_symbol.
6783 (new_symbol_full): Call allocate_symbol.
6784 * jit.c (finalize_symtab): Call allocate_symbol.
6785 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6786 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6787 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6788 (common_block_end): Call allocate_symbol.
6789 * symtab.c (allocate_symbol, initialize_symbol)
6790 (allocate_template_symbol): New functions.
6791 * symtab.c (allocate_symbol, initialize_symbol)
6792 (allocate_template_symbol): Declare.
6793 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6794
6795 2013-04-08 Pedro Alves <palves@redhat.com>
6796 Keith Seitz <keiths@redhat.com>
6797
6798 * breakpoint.c (create_breakpoint): Rename
6799 "parse_condition_and_thread" parameter to "parse_arg". Update
6800 describing comment. If !PARSE_ARG, then error out if ARG is not
6801 the empty string after extracting the location.
6802 * breakpoint.h (create_breakpoint): Rename
6803 "parse_condition_and_thread" parameter to "parse_arg".
6804
6805 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6806
6807 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6808
6809 2013-04-07 Yao Qi <yao@codesourcery.com>
6810
6811 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6812 and 'addr2' to CORE_ADDR.
6813 * target.c (update_current_target): Update.
6814 * target.h (struct target_ops) <to_trace_find>: Change parameter
6815 type to CORE_ADDR.
6816 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6817 'addr2' to CORE_ADDR.
6818 (tfile_trace_find): Likewise.
6819 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6820 Change local variable 'addr' to type CORE_ADDR.
6821 * tracepoint.h (tfind_1): Update declaration.
6822
6823 2013-04-06 Eli Zaretskii <eliz@gnu.org>
6824
6825 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6826 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6827 Include main.h.
6828
6829 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6830 here...
6831 * main.h (windows_get_absolute_argv0): ...to here.
6832
6833 2013-04-05 Doug Evans <dje@google.com>
6834
6835 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6836 (read_cutu_die_from_dwo): Add comments.
6837 (read_structure_type): Update comment.
6838 (read_enumeration_type, read_namespace_type): Update comment.
6839 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6840
6841 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6842
6843 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6844 * Makefile.in (gdb.z): Remove.
6845 (install-only): Remove $(man1dir) and gdb.1 installation.
6846 * gdb.1: Remove.
6847
6848 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 Fix compatibility with Linux kernel 3.8.3.
6851 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6852 to more inner block. Remove parsing of NUMBER from outer block.
6853 Parse NUMBER only if KEYWORD has been identified.
6854
6855 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 Fix variable name shadowing.
6858 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6859 filename to mapsfilename and update its uses.
6860
6861 2013-04-05 Eli Zaretskii <eliz@gnu.org>
6862
6863 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6864 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6865 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6866 details of the problem.
6867
6868 2013-04-04 Pedro Alves <palves@redhat.com>
6869 Hui Zhu <hui@codesourcery.com>
6870
6871 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6872 tracepoint, reset its STEP_COUNT and call validate_actionline.
6873
6874 2013-04-03 Doug Evans <dje@google.com>
6875
6876 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6877 read_die_and_siblings.
6878 (read_die_and_siblings): New function.
6879 (read_cutu_die_from_dwo): Dump die if requested.
6880 (read_die_and_children): Call read_full_die_1 and
6881 read_die_and_siblings_1.
6882 (read_full_die): Dump die if requested.
6883
6884 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6885
6886 * dwarf2read.c (struct dwo_file): New member comp_dir.
6887 Rename member name to dwo_name. All uses updated.
6888 (hash_dwo_file): Include comp_dir in computation.
6889 (eq_dwo_file): Ditto.
6890 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6891 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6892
6893 * psymtab.c (read_psymtabs_with_fullname): Don't call
6894 psymtab_to_fullname if the basenames are different.
6895
6896 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6897
6898 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6899 New entry about "fullname" presence.
6900
6901 2013-04-03 Pedro Alves <palves@redhat.com>
6902
6903 * NEWS: Mention x86_64/Cygwin as new native configuration.
6904
6905 2013-04-02 Doug Evans <dje@google.com>
6906
6907 * dwarf2read.c (read_structure_type): Fix typo in comment.
6908
6909 2013-04-02 Pedro Alves <palves@redhat.com>
6910
6911 * NEWS: Mention "set/show debug aarch64", "set/show debug
6912 coff-pe-read" and "set/show debug mach-o".
6913
6914 2013-04-02 Pedro Alves <palves@redhat.com>
6915
6916 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6917
6918 2013-04-02 Eli Zaretskii <eliz@gnu.org>
6919
6920 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6921 gdb_string.h is now in common/.
6922
6923 2013-04-02 Pedro Alves <palves@redhat.com>
6924
6925 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6926 under "New options".
6927
6928 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6929
6930 Revert this patch:
6931 PR gdb/15275
6932 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6933
6934 2013-04-02 Pedro Alves <palves@redhat.com>
6935
6936 PR gdb/15275
6937
6938 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6939 (remote_serial_write): New function.
6940 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6941
6942 2013-04-01 Jiong Wang <jiwang@tilera.com>
6943
6944 * NEWS: Mention TILE-Gx in "New native configurations" and
6945 "New targets" sections.
6946
6947 2013-04-01 Doug Evans <dje@google.com>
6948
6949 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6950 (process_enumeration_scope): Simplify.
6951
6952 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6953 type_unit_group ...
6954 (struct signatured_type): ... to here.
6955 (sig_type_ptr): New typedef.
6956 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6957 out of union 't'. All uses updated.
6958 (dw2_get_file_names_reader): Assert not called for a type unit.
6959 (dw2_get_file_names): Assert not called for a type unit or type
6960 unit group.
6961 (build_type_psymtabs_reader): Assert called for a type unit.
6962 (build_type_psymtab_dependencies): Assert called for a type unit group.
6963
6964 * dwarf2read.c (free_dwo_file): Add comment.
6965 (dwarf2_per_objfile_free): Unref dwp bfd.
6966
6967 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6968
6969 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6970 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6971 (read_pe_exported_syms): Remove unused 'exportix'.
6972 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6973 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6974 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6975
6976 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6977
6978 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6979 (print_it_watchpoint): Remove unused 'bl'.
6980 (say_where): Remove unused 'uiout'.
6981 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6982 (bkpt_breakpoint_hit): Remove unused 'b'.
6983 (internal_bkpt_print_it): Remove unused 'uiout'.
6984 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6985
6986 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6987
6988 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6989 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6990
6991 2013-03-29 Doug Evans <dje@google.com>
6992
6993 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6994 Delete arg is_dwp. All callers updated.
6995 (open_dwp_file): New function.
6996 (open_and_init_dwp_file): Call it.
6997 (get_dwp_file): New function.
6998 (lookup_dwo_cutu): Call it.
6999
7000 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7001 unnecessary, cleanup.
7002
7003 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7004
7005 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7006 (lookup_dwo_unit): New function.
7007 (init_cutu_and_read_dies): Move DWO handling to new functions.
7008
7009 * dwarf2read.c (struct signatured_type): Tweak comment.
7010 (struct dwo_unit): Tweak comment.
7011 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7012 (create_dwo_debug_info_hash_table): Tweak comment.
7013 (dwarf2_per_cu_offset_and_type): Tweak comment.
7014
7015 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7016 missing .debug_types section.
7017
7018 2013-03-29 Yao Qi <yao@codesourcery.com>
7019
7020 * corelow.c: Include "completer.h".
7021 (_initialize_corelow): Call add_target_with_completer with
7022 argument 'filename_completer'.
7023 * tracepoint.c: Likewise.
7024 * exec.c (_initialize_exec): Likewise.
7025 * target.c (add_target): Rename to ...
7026 (add_target_with_completer): ... this. Call set_cmd_completer
7027 if parameter completer is not NULL.
7028 (add_target): New.
7029 * target.h: Include "command.h".
7030 (add_target_with_completer): Declare it.
7031
7032 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7033
7034 * coffread.c (is_import_fixup_symbol): New function.
7035 (record_minimal_symbol): Use is_import_fixup_symbol to
7036 detect import fixup symbols, and discard them.
7037
7038 2013-03-28 Doug Evans <dje@google.com>
7039
7040 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7041 types hash table until we know we need it.
7042
7043 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7044 index numbers.
7045
7046 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7047 All callers updated.
7048 (dw2_print_stats): Print #read CUs too.
7049 (dump_die_shallow): Print signatured types better.
7050
7051 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7052 info_or_types_section to section. All uses updated.
7053 (struct dwo_unit): Ditto.
7054
7055 2013-03-28 Pedro Alves <palves@redhat.com>
7056
7057 * NEWS (New options): New section.
7058 (New options): Mention set/show remote trace-status-packet.
7059 * remote.c (PACKET_qTStatus): New enumeration value.
7060 (remote_get_trace_status): Skip sending qTStatus if the packet is
7061 disabled. Use packet_ok.
7062 (_initialize_remote): Register a configuration command for
7063 qTStatus packet.
7064
7065 2013-03-28 Doug Evans <dje@google.com>
7066
7067 * symfile.c (find_separate_debug_file): Add comment.
7068 (terminate_after_last_dir_separator): Tweak comment.
7069
7070 * dwarf2read.c (create_partial_symtab): Add forward decl.
7071 (create_partial_symtab): Move to be closer to other psymtab functions.
7072 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7073
7074 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7075 (compute_symtab_includes): Remove unnecessary forward declaration.
7076 (die_needs_namespace): Add comment marking group of functions for
7077 dwarf2 name computation.
7078
7079 * typeprint.c (_initialize_typeprint): Improve type help text.
7080
7081 * python/python.c (finish_python_initialization): Provide suggestion
7082 for how to tell gdb to find its python files.
7083
7084 2013-03-28 Pedro Alves <palves@redhat.com>
7085
7086 PR gdb/15294
7087
7088 * source.c (_initialize_source): Change back "set listsize" to an
7089 integer command.
7090
7091 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7092
7093 PR gdb/15275
7094 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7095
7096 2013-03-27 Pedro Alves <palves@redhat.com>
7097
7098 * top.c (history_size): Rename to ...
7099 (history_size_setshow_var): ... this. Add comment.
7100 (show_commands): Use readline's 'history_length' instead of
7101 computing the history length by calling history_get in a loop.
7102 (set_history_size_command): Error out for sizes over INT_MAX.
7103 Restore previous history size on invalid size.
7104 (init_history): If HISTSIZE is negative, leave the history size as
7105 zero. Add comments.
7106 (init_main): Adjust.
7107
7108 2013-03-27 Pedro Alves <palves@redhat.com>
7109
7110 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7111 coff_pe_read" command to "set debug coff-pe-read".
7112
7113 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7114
7115 * record.c (command_size_to_target_size): Fix size comparison.
7116 Change parameter type from pointer to integer to integer.
7117 Update all users.
7118
7119 2013-03-27 Pierre Muller <muller@sourceware.org>
7120
7121 * windows-nat.c (handle_output_debug_string): Avoid typecast
7122 from integer of different size warning.
7123
7124 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7125
7126 * windows-nat.c (handle_output_debug_string): Add empty line
7127 after local block variable definition.
7128
7129 2013-03-26 Pedro Alves <palves@redhat.com>
7130
7131 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7132 (net_open): Make 'polls' local unsigned.
7133
7134 2013-03-26 Pedro Alves <palves@redhat.com>
7135
7136 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7137 a zuinteger command instead of uinteger.
7138
7139 2013-03-26 Pedro Alves <palves@redhat.com>
7140
7141 * record-full.c (record_full_insn_num): Make it unsigned.
7142 (record_full_check_insn_num, record_full_message)
7143 (record_full_registers_change, record_full_xfer_partial): Remove
7144 record_full_insn_max_num check (it's always != 0).
7145 (record_full_info, record_full_restore): Use %u as format string.
7146 (): Use %u as format string.
7147 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7148 check (it's always != 0).
7149
7150 2013-03-26 Pedro Alves <palves@redhat.com>
7151
7152 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7153 and "set dcache size" commands zuinteger instead of uinteger.
7154
7155 2013-03-26 Pedro Alves <palves@redhat.com>
7156
7157 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7158 command zuinteger instead of uinteger.
7159
7160 2013-03-26 Pedro Alves <palves@redhat.com>
7161
7162 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7163 zuinteger instead of uinteger.
7164
7165 2013-03-26 Pedro Alves <palves@redhat.com>
7166
7167 * record.c (record_insn_history_size_setshow_var)
7168 (record_call_history_size_setshow_var): New globals.
7169 (command_size_to_target_size): New function.
7170 (cmd_record_insn_history, cmd_record_call_history): Use
7171 command_size_to_target_size instead of cast.
7172 (validate_history_size, set_record_insn_history_size)
7173 (set_record_call_history_size): New functions.
7174 (_initialize_record): Install set_record_insn_history_size and
7175 set_record_call_history_size as "set" hooks of "set record
7176 instruction-history-size" and "set record
7177 function-call-history-size".
7178
7179 2013-03-26 Pedro Alves <palves@redhat.com>
7180
7181 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7182 use with history_max_entries use. Remove FIXME note.
7183
7184 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7185
7186 * record-btrace.c (record_btrace_close): Call
7187 record_btrace_auto_disable.
7188
7189 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7190
7191 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7192
7193 2013-03-25 Doug Evans <dje@google.com>
7194
7195 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7196
7197 2013-03-25 Tom Tromey <tromey@redhat.com>
7198
7199 PR symtab/11462:
7200 * c-exp.y (exp): Add new productions for destructors after '.' and
7201 '->'.
7202 (write_destructor_name): New function.
7203
7204 2013-03-25 Tom Tromey <tromey@redhat.com>
7205
7206 PR c++/9197:
7207 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7208 value_struct_elt, not lookup_struct_elt_type.
7209 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7210 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7211 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7212
7213 2013-03-25 Yao Qi <yao@codesourcery.com>
7214
7215 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7216 instead of '_mkdir'.
7217
7218 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7219
7220 * windows-nat.c (windows_get_absolute_argv0): New function.
7221 * windows-nat.h: Add its prototype.
7222
7223 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7224 Use IS_DIR_SEPARATOR instead of looking for a character inside
7225 SLASH_STRING. Include filenames.h.
7226 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7227 relocate_gdb_directory works when passed gdb_program_name.
7228 Include windows-nat.h.
7229
7230 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7231
7232 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7233 * remote.c (trace_error): Remove the special handling of '2'.
7234 (readchar) <SERIAL_EOF>
7235 (readchar) <SERIAL_ERROR>
7236 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7237 (remote_get_trace_status): Call throw_exception if EX is
7238 TARGET_CLOSE_ERROR.
7239 * utils.c (perror_with_name): Rename to ...
7240 (throw_perror_with_name): ... here. New parameter errcode, describe it
7241 in the function comment.
7242 (perror_with_name): New function wrapper.
7243 * utils.h (enum errors): New stub declaration.
7244 (throw_perror_with_name): New declaration.
7245
7246 2013-03-22 Pedro Alves <palves@redhat.com>
7247 Yao Qi <yao@codesourcery.com>
7248 Mark Kettenis <kettenis@gnu.org>
7249
7250 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7251 Don't let the user set the value to UINT_MAX directly.
7252 <var_integer>: Don't let the user set the value to INT_MAX
7253 directly.
7254
7255 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7256
7257 * remote.c (remote_unpush_target): New function.
7258 (remote_open_1): Remove two pop_target calls, update one comment, add
7259 comment to target_preopen call. Replace pop_target call by
7260 remote_unpush_target call.
7261 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7262 pop_target calls by remote_unpush_target calls.
7263
7264 2013-03-22 Pedro Alves <palves@redhat.com>
7265
7266 * linux-nat.c (linux_child_follow_fork): Don't call
7267 linux_enable_event_reporting.
7268 (linux_handle_extended_wait): Don't call
7269 linux_enable_event_reporting.
7270
7271 2013-03-22 Pedro Alves <palves@redhat.com>
7272
7273 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7274 use it to rewrite the trampoline buffers with type gdb_byte[], and
7275 undefine the macro. Remove char* cast.
7276
7277 2013-03-21 Doug Evans <dje@google.com>
7278
7279 New commands "mt set per-command {space,time,symtab} {on,off}".
7280 * NEWS: Add entry.
7281 * event-top.c: #include "maint.h".
7282 * main.c: #include "maint.h".
7283 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7284 timeval-utils.h, maint.h, cli/cli-setshow.h.
7285 (per_command_time, per_command_space): New static globals.
7286 (per_command_symtab): New static global.
7287 (per_command_setlist, per_command_showlist): New static globals.
7288 (struct cmd_stats): Move here from utils.c.
7289 (set_per_command_time): Renamed from set_display_time in utils.c
7290 and moved here. All callers updated.
7291 (set_per_command_space): Renamed from set_display_space in utils.c
7292 and moved here. All callers updated.
7293 (count_symtabs_and_blocks): New function.
7294 (report_command_stats): Moved here from utils.c. Add support for
7295 printing symtab stats. Only print data if enabled before command
7296 executed.
7297 (make_command_stats_cleanup): Ditto.
7298 (sert_per_command_cmd, show_per_command_cmd): New functions.
7299 (_initialize_maint_cmds): Add new commands
7300 mt set per-command {space,time,symtab} {on,off}.
7301 * maint.h: New file.
7302 * top.c: #include "maint.h".
7303 * utils.c (reset_prompt_for_continue_wait_time): New function.
7304 (get_prompt_for_continue_wait_time): New function.
7305 * utils.h (reset_prompt_for_continue_wait_time): Declare
7306 (get_prompt_for_continue_wait_time): Declare.
7307 (make_command_stats_cleanup): Moved to maint.h.
7308 (set_display_time, set_display_space): Moved to maint.h and renamed
7309 to set_per_command_time, set_per_command_space.
7310 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7311 parse_binary_operation and made non-static. Don't call error,
7312 just return an error marker. All callers updated.
7313 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7314
7315 2013-03-21 Tom Tromey <tromey@redhat.com>
7316
7317 * symfile.c (alloc_section_addr_info): Update header. Don't set
7318 'num_sections' field.
7319 (build_section_addr_info_from_section_table): Set 'num_sections'.
7320 (build_section_addr_info_from_bfd): Likewise.
7321 (build_section_addr_info_from_objfile): Remove dead loop
7322 condition.
7323 (free_section_addr_info): Unconditionally call xfree.
7324 (relative_addr_info_to_section_offsets, addrs_section_sort)
7325 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7326 condition.
7327 (syms_from_objfile_1): Remove dead 'if' condition. Check
7328 'num_sections'.
7329 (add_symbol_file_command): Set 'num_sections'.
7330 * symfile-mem.c (symbol_file_add_from_memory): Set
7331 'num_sections'.
7332 * somread.c (som_symfile_offsets): Remove dead loop condition.
7333 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7334 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7335
7336 2013-03-21 Tom Tromey <tromey@redhat.com>
7337
7338 * tracepoint.h (decode_agent_options): Add 'trace_string'
7339 argument.
7340 * tracepoint.c (decode_agent_options): Add 'trace_string'
7341 argument.
7342 (validate_actionline): Update.
7343 (collect_symbol): Add 'trace_string' argument.
7344 (struct add_local_symbols_data) <trace_string>: New field.
7345 (do_collect_symbol): Update.
7346 (add_local_symbols): Add 'trace_string' argument.
7347 (encode_actions_1): Update.
7348 (trace_dump_actions): Update.
7349 * dwarf2loc.c (access_memory): Update.
7350 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7351 * ax-general.c (new_agent_expr): Update.
7352 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7353 (gen_trace_for_return_address): Add argument.
7354 (trace_kludge, trace_string_kludge): Remove.
7355 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7356 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7357 (gen_trace_for_var): Add 'trace_string' argument.
7358 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7359 (gen_printf, agent_eval_command_one): Update.
7360
7361 2013-03-21 Tom Tromey <tromey@redhat.com>
7362
7363 PR exp/15109:
7364 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7365 Handle FILENAME token.
7366
7367 2013-03-21 Tom Tromey <tromey@redhat.com>
7368
7369 * c-exp.y (YYPRINT): Define.
7370 (c_print_token): New function.
7371
7372 2013-03-21 Tom Tromey <tromey@redhat.com>
7373
7374 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7375
7376 2013-03-21 Yao Qi <yao@codesourcery.com>
7377
7378 * ctf.c: Include "gdb_stat.h".
7379 [USE_WIN32API]: New macro 'mkdir'.
7380 (ctf_start): Use permission bits macros if they are defined.
7381
7382 2013-03-20 Keith Seitz <keiths@redhat.com>
7383
7384 * breakpoint.h (struct breakpoint): Add comment to
7385 extra_string indicating that this member is mallod'd.
7386 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7387
7388 2013-03-20 Pedro Alves <palves@redhat.com>
7389
7390 PR gdb/15289
7391
7392 * cli/cli-setshow.c (do_set_command)
7393 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7394 the result of parsing the command argument. Throw error if the
7395 value is greater than UINT_MAX. Print the invalid value with
7396 plongest.
7397 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7398 result of parsing the command argument. Throw error if the value
7399 is greater than INT_MAX, not greater or equal. Also throw error
7400 if the value is less than INT_MIN. Print the invalid value with
7401 plongest.
7402 <var_zuinteger_unlimited>: Throw error if the value is greater
7403 than INT_MAX, not greater or equal.
7404 (do_show_command) <var_integer, var_zinteger,
7405 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7406
7407 2013-03-20 Tom Tromey <tromey@redhat.com>
7408
7409 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7410 if possible.
7411 * dwarf2read.c (read_func_scope): Remove old FIXME.
7412 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7413 not LOC_COMPUTED.
7414 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7415 Unconditionally call via computed ops, if possible.
7416 * printcmd.c (address_info): Unconditionally call via computed ops,
7417 if possible.
7418 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7419 if possible.
7420 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7421 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7422 if possible.
7423
7424 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7425 Tom Tromey <tromey@redhat.com>
7426
7427 PR symtab/8421:
7428 * coffread.c (coff_register_index): New global.
7429 (process_coff_symbol, coff_read_enum_type): Set
7430 SYMBOL_ACLASS_INDEX.
7431 (_initialize_coffread): Initialize new global.
7432 * dwarf2loc.c (locexpr_find_frame_base_location)
7433 (dwarf2_block_frame_base_locexpr_funcs)
7434 (loclist_find_frame_base_location)
7435 (dwarf2_block_frame_base_loclist_funcs): New.
7436 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7437 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7438 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7439 (dwarf2_block_frame_base_loclist_funcs): New.
7440 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7441 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7442 globals.
7443 (read_func_scope): Update.
7444 (fixup_go_packaging, mark_common_block_symbol_computed)
7445 (var_decode_location, new_symbol_full, dwarf2_const_value):
7446 Set SYMBOL_ACLASS_INDEX.
7447 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7448 (_initialize_dwarf2_read): Initialize new globals.
7449 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7450 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7451 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7452 globals.
7453 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7454 (_initialize_mdebugread): Initialize new globals.
7455 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7456 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7457 (stab_register_index, stab_regparm_index): New globals.
7458 (define_symbol, read_enum_type, common_block_end): Set
7459 SYMBOL_ACLASS_INDEX.
7460 (_initialize_stabsread): Initialize new globals.
7461 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7462 globals.
7463 (MAX_SYMBOL_IMPLS): New define.
7464 (register_symbol_computed_impl, register_symbol_block_impl)
7465 (register_symbol_register_impl)
7466 (initialize_ordinary_address_classes): New functions.
7467 (_initialize_symtab): Call initialize_ordinary_address_classes.
7468 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7469 (struct symbol_impl): New.
7470 (SYMBOL_ACLASS_BITS): New define.
7471 (struct symbol) <aclass, ops>: Remove fields.
7472 <aclass_index>: New field.
7473 (symbol_impls): Declare.
7474 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7475 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7476 (register_symbol_computed_impl, register_symbol_block_impl)
7477 (register_symbol_register_impl): Declare.
7478 (struct symbol_computed_ops): Add location_has_loclist.
7479 (struct symbol_block_ops): New.
7480 (SYMBOL_BLOCK_OPS): New.
7481 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7482
7483 2013-03-20 Tom Tromey <tromey@redhat.com>
7484
7485 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7486 (print_partial_symbols, recursively_search_psymtabs): Use
7487 PSYMBOL_CLASS.
7488
7489 2013-03-20 Pierre Muller <muller@sourceware.org>
7490
7491 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7492 addtion, subtraction, multiplication and division binary operator.
7493
7494 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7495
7496 Code cleanup.
7497 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7498 * bsd-kvm.c (bsd_kvm_close): Likewise.
7499 * bsd-uthread.c (bsd_uthread_close): Likewise.
7500 * corelow.c (core_close): Likewise.
7501 (core_close_cleanup): Remove parameter quitting from a caller.
7502 * event-top.c (async_disconnect): Likewise.
7503 * exec.c (exec_close_1): Remove parameter quitting.
7504 * go32-nat.c (go32_close): Likewise.
7505 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7506 parameter quitting from a caller.
7507 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7508 variable.
7509 (mips_linux_close): Remove parameter quitting. Remove parameter
7510 quitting from a caller.
7511 * monitor.c (monitor_close): Remove parameter quitting.
7512 * monitor.h (monitor_close): Likewise.
7513 * record-btrace.c (record_btrace_close): Likewise.
7514 * record-full.c (record_full_close): Likewise.
7515 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7516 it also from fprintf_unfiltered.
7517 * remote-mips.c (mips_close): Remove parameter quitting.
7518 (mips_detach): Remove parameter quitting from a caller.
7519 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7520 (gdbsim_close): Remove duplicate function comment. Remove parameter
7521 quitting and remove it also from printf_filtered.
7522 * remote.c (remote_close): Remove parameter quitting.
7523 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7524 * target.c (update_current_target): Remove parameter int from to_close
7525 de_fault.
7526 (push_target, unpush_target, pop_target): Remove parameter quitting from
7527 a caller.
7528 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7529 Remove parameter quitting from a caller.
7530 (target_preopen): Remove parameter quitting from a caller.
7531 (target_close): Remove parameter quitting. Remove parameter quitting
7532 from a caller two times. Remove parameter quitting also from
7533 fprintf_unfiltered.
7534 * target.h (struct target_ops): Remove parameter quitting and as int
7535 from fields to_xclose and to_close.
7536 (extern struct target_ops current_target):
7537 (target_close, pop_all_targets): Remove parameter quitting. Update the
7538 comment.
7539 (pop_all_targets_above): Remove parameter quitting.
7540 * top.c (quit_target): Remove parameter quitting from a caller.
7541 * tracepoint.c (tfile_close): Remove parameter quitting.
7542 * windows-nat.c (windows_close): Remove parameter quitting.
7543
7544 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7545
7546 * windows-nat.c (handle_output_debug_string): Replace call
7547 to string_to_core_addr with call to strtoull.
7548
7549 2013-03-20 Yao Qi <yao@codesourcery.com>
7550
7551 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7552 and write it to CTF metadata.
7553
7554 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7555
7556 * windows-nat.c (handle_output_debug_string): Change type of n to
7557 SIZE_T to avoid crash on 64 bit systems.
7558
7559 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7560
7561 * python/python-internal.h (HAVE_SNPRINTF)
7562 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7563 about redefinition of snprintf by pyerrors.h.
7564
7565 2013-03-15 Steve Ellcey <sellcey@mips.com>
7566
7567 * remote-sim.c (sim_command_completer): Make char arguments const.
7568
7569 2013-03-15 Tom Tromey <tromey@redhat.com>
7570
7571 PR c++/15116:
7572 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7573
7574 2013-03-14 Tom Tromey <tromey@redhat.com>
7575
7576 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7577 New fields.
7578 (get_file_crc): Move from symfile.c.
7579 (gdb_bfd_crc): New function.
7580 * gdb_bfd.h (gdb_bfd_crc): Declare.
7581 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7582 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7583 (separate_debug_file_exists): Use gdb_bfd_crc.
7584
7585 2013-03-14 Tom Tromey <tromey@redhat.com>
7586
7587 * symfile.c (get_debug_link_info): Remove.
7588 (find_separate_debug_file_by_debuglink): Use
7589 bfd_get_debug_link_info.
7590
7591 2013-03-14 Tom Tromey <tromey@redhat.com>
7592
7593 * symtab.c (error_in_psymtab_expansion): New function.
7594 (lookup_symbol_aux_quick)
7595 (basic_lookup_transparent_type_quick): Remove "last resort"
7596 code. Use error_in_psymtab_expansion.
7597
7598 2013-03-14 Doug Evans <dje@google.com>
7599 Jan Kratochvil <jan.kratochvil@redhat.com>
7600
7601 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7602 any successful compare_filenames_for_search or FILENAME_CMP.
7603 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7604 * symtab.c (iterate_over_some_symtabs): Likewise.
7605
7606 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7607
7608 * source.c (print_source_lines_base): Make a local copy of
7609 symtab_to_fullname.
7610
7611 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7612 Jan Kratochvil <jan.kratochvil@redhat.com>
7613
7614 * source.c (print_source_lines_base): Suppress "file" for TUI.
7615
7616 2013-03-14 Keith Seitz <keiths@redhat.com>
7617 Alan Matsuoka <alanm@redhat.com>
7618
7619 PR c++/15203
7620 PR c++/15210
7621 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7622 TYPE_CODE_METHOD.
7623 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7624 symbols.
7625
7626 2013-03-14 Yao Qi <yao@codesourcery.com>
7627
7628 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7629 status to tfile if trace is stopped by command 'tstop'.
7630
7631 2013-03-14 Yao Qi <yao@codesourcery.com>
7632
7633 * tracepoint.c (tfile_write_status): Write trace notes and user
7634 name into tfile if they are not NULL.
7635
7636 2013-03-14 Hui Zhu <hui@codesourcery.com>
7637 Yao Qi <yao@codesourcery.com>
7638
7639 * Makefile.in (REMOTE_OBS): Add ctf.o.
7640 (SFILES): Add ctf.c.
7641 (HFILES_NO_SRCDIR): Add ctf.h.
7642 * ctf.c, ctf.h: New files.
7643 * tracepoint.c: Include 'ctf.h'.
7644 (collect_pseudocommand): Remove static.
7645 (trace_save_command): Parse option "-ctf".
7646 Produce different trace file writers per option.
7647 Adjust output message.
7648 (trace_save_tfile, trace_save_ctf): New.
7649 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7650 * mi/mi-main.c: Include 'ctf.h'.
7651 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7652 trace_save_tfile or trace_save_ctf.
7653 * NEWS: Mention these changes.
7654
7655 2013-03-14 Yao Qi <yao@codesourcery.com>
7656
7657 * tracepoint.c (trace_file_writer_xfree): New.
7658 (struct tfile_writer_data): New.
7659 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7660 (tfile_write_header, tfile_write_regblock_type): New.
7661 (tfile_write_status, tfile_write_uploaded_tsv): New.
7662 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7663 (tfile_write_raw_data, (tfile_end): New.
7664 (tfile_write_ops): New global variable.
7665 (TRACE_WRITE_R_BLOCK): New macro.
7666 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7667 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7668 (TRACE_WRITE_V_BLOCK): New macro.
7669 (trace_save): Add extra one parameter WRITER. Make it static.
7670 Use WRITER to writer trace.
7671 (tfile_trace_file_writer_new): New.
7672 (trace_save_command): Caller update.
7673 (trace_save_tfile): Write trace data in TFILE format.
7674 * tracepoint.h (struct trace_frame_write_ops): New.
7675 (struct trace_file_write_ops): New.
7676 (struct trace_file_writer): New.
7677 (trace_save): Remove its declaration.
7678 (trace_save_tfile): Declare it.
7679 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7680 instead of trace_save.
7681
7682 2013-03-13 Pedro Alves <palves@redhat.com>
7683
7684 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7685
7686 2013-03-13 Pedro Alves <palves@redhat.com>
7687
7688 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7689 commented out code.
7690 * demangle.c (current_demangling_style_string): Make it const.
7691 (set_demangling_command): Assert the demangling style is known.
7692 Remove all handling of unknown styles. Set
7693 'current_demangling_style_string' to an element of the
7694 demangling_style_names array.
7695 (set_demangling_style): Delete.
7696 (_initialize_demangler): Set current_demangling_style_string to the
7697 element of the demangling_style_names array that corresponds to
7698 the default demangling style. Remove FIXME note. Don't call
7699 set_demangling_style.
7700 * gdb-demangle.h (set_demangling_style): Remove declaration.
7701
7702 2013-03-13 Pedro Alves <palves@redhat.com>
7703
7704 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7705 fields const.
7706 (ada_make_symbol_completion_list): Make "text0" parameter const.
7707 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7708 * breakpoint.c (condition_completer): Make "text" and "word"
7709 parameters const. Adjust.
7710 (check_tracepoint_command): Adjust to validate_actionline
7711 prototype change.
7712 (catch_syscall_completer): Make "text" and "word" parameters
7713 const.
7714 * cli/cli-cmds.c (show_user): Make "comname" local const.
7715 (valid_command_p): Make "command" parameter const.
7716 (alias_command): Make "alias_prefix" and "command_prefix" locals
7717 const.
7718 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7719 (add_alias_cmd): Make "name" and "oldname" parameters const.
7720 Adjust. No longer make copy of OLDNAME.
7721 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7722 (add_setshow_cmd_full, add_setshow_enum_cmd)
7723 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7724 (add_setshow_filename_cmd, add_setshow_string_cmd)
7725 (add_setshow_string_noescape_cmd)
7726 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7727 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7728 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7729 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7730 Make "name" parameter const.
7731 (help_cmd): Rename "command" parameter to "arg". New const local
7732 "command".
7733 (find_cmd): Make "command" parameter const.
7734 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7735 deprecated_cmd_warning prototype change.
7736 (undef_cmd_error): Make "cmdtype" parameter const.
7737 (lookup_cmd): Make "line" parameter const.
7738 (deprecated_cmd_warning): Change type of "text" parameter to
7739 pointer to const char, from pointer to pointer to char. Adjust.
7740 (lookup_cmd_composition): Make "text" parameter const.
7741 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7742 parameters const.
7743 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7744 const.
7745 * cli/cli-script.c (validate_comname): Make "tem" local const.
7746 (define_command): New const local "tem_c". Use it in calls to
7747 lookup_cmd.
7748 (document_command): Make "tem" and "comfull" locals const.
7749 (show_user_1): Make "prefix" and "name" parameters const.
7750 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7751 const.
7752 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7753 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7754 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7755 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7756 (complete_on_enum, add_setshow_enum_cmd)
7757 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7758 (add_setshow_filename_cmd, add_setshow_string_cmd)
7759 (add_setshow_string_noescape_cmd)
7760 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7761 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7762 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7763 Change prototypes, constifying strings.
7764 * completer.c (noop_completer, filename_completer): Make "text"
7765 and "prefix" parameters const.
7766 (location_completer, expression_completer)
7767 (complete_line_internal): Make "text" and "prefix" parameters
7768 const and adjust.
7769 (command_completer, signal_completer): Make "text" and "prefix"
7770 parameters const.
7771 * completer.h (noop_completer, filename_completer)
7772 (expression_completer, location_completer, command_completer)
7773 (signal_completer): Change prototypes.
7774 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7775 parameters const.
7776 * cp-abi.c (cp_abi_completer): Likewise.
7777 * expression.h (parse_expression_for_completion): Change
7778 prototype.
7779 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7780 parameters const.
7781 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7782 * infrun.c (handle_completer): Make "text" and "word" parameters
7783 const.
7784 * interps.c (interpreter_completer): Make "text" and "word"
7785 parameters const.
7786 * language.h (struct language_defn)
7787 <la_make_symbol_completion_list>: Make "text" and "word"
7788 parameters const.
7789 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7790 (parse_exp_in_context): Rename to ...
7791 (parse_exp_in_context_1): ... this.
7792 (parse_exp_in_context): Reimplement, with const hack from
7793 parse_exp_1.
7794 (parse_expression_for_completion): Make "string" parameter const.
7795 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7796 to pointer to const char. Adjust.
7797 (print_command_1): Make "exp" parameter const.
7798 (output_command): Rename to ...
7799 (output_command_const): ... this. Make "exp" parameter const.
7800 (output_command): Reimplement.
7801 (x_command): Adjust.
7802 (display_command): Rename "exp" parameter to "arg". New "exp"
7803 local, const version of "arg".
7804 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7805 "cmd_name" local const.
7806 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7807 call.
7808 (cmdpy_completer): Make "text" and "word" parameters const.
7809 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7810 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7811 const.
7812 * remote.c (_initialize_remote): Make "cmd_name" local const.
7813 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7814 parameters const. Adjust.
7815 (completion_list_add_fields): Make "sym_text", "text" and "word"
7816 parameters const.
7817 (struct add_name_data) <sym_text, text, word>: Make fields const.
7818 (default_make_symbol_completion_list_break_on): Make "text" and
7819 "word" parameters const. Adjust locals.
7820 (default_make_symbol_completion_list)
7821 (make_symbol_completion_list, make_symbol_completion_type)
7822 (make_symbol_completion_list_fn): Make "text" and "word"
7823 parameters const.
7824 (make_file_symbol_completion_list): Make "text", "word" and
7825 "srcfile" parameters const. Adjust locals.
7826 (add_filename_to_list): Make "text" and "word" parameters const.
7827 (struct add_partial_filename_data) <text, word>: Make fields
7828 const.
7829 (make_source_files_completion_list): Make "text" and "word"
7830 parameters const.
7831 * symtab.h (default_make_symbol_completion_list_break_on)
7832 (default_make_symbol_completion_list, make_symbol_completion_list)
7833 (make_symbol_completion_type enum type_code)
7834 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7835 (make_source_files_completion_list): Change prototype.
7836 * top.c (execute_command): Adjust to pass pointer to pointer to
7837 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7838 change.
7839 (set_verbose): Make "cmdname" local const.
7840 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7841 and adjust.
7842 (validate_actionline): Make "line" parameter a pointer to const
7843 char, and adjust.
7844 (encode_actions_1): Make "action_exp" local const, and adjust.
7845 (encode_actions): Adjust.
7846 (replace_comma): Delete.
7847 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7848 const, and adjust. Don't frob the action string while splitting
7849 it at commas. Instead, make a copy of each split substring in
7850 turn.
7851 (trace_dump_command): Adjust to validate_actionline prototype
7852 change.
7853 * tracepoint.h (decode_agent_options, decode_agent_options)
7854 (encode_actions, validate_actionline): Change prototypes.
7855 * valprint.h (output_command): Delete declaration.
7856 (output_command_const): Declare.
7857 * value.c (function_destroyer): Cast const away in xfree call.
7858
7859 2013-03-13 Pedro Alves <palves@redhat.com>
7860
7861 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7862 rather than casting 'const char * const *' to 'const char **'.
7863 * ada-lex.l (processInt): Make "trailer" local const. Remove
7864 'const char **' cast.
7865 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7866 locals, and use those as strtol output pointer, instead than doing
7867 invalid casts to from 'const char **' to 'char **'.
7868 (_initialize_demangle): Remove cast.
7869 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7870 locals, and use those as strtol output pointer, instead than doing
7871 invalid casts to from 'const char **' to 'char **'.
7872 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7873 casts.
7874 * stap-probe.c (stap_parse_register_operand)
7875 (stap_parse_single_operand): Likewise.
7876
7877 2013-03-13 Yao Qi <yao@codesourcery.com>
7878
7879 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7880 the last matched 'V' blcok in trace frame.
7881
7882 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7883
7884 * NEWS: Create a new section for the next release branch.
7885 Rename the section of the current branch, now that it has
7886 been cut.
7887
7888 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7889
7890 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7891 * version.in: Bump version to 7.6.50.20130312-cvs.
7892
7893 2013-03-12 Keith Seitz <keiths@redhat.com>
7894
7895 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7896 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7897 Remove temporary copy of input string.
7898 (mi_execute_command_wrapper): Make "cmd" const.
7899 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7900 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7901 Use const strings.
7902 (mi_parse): Make "cmd" const.
7903 Use const strings.
7904 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7905
7906 2013-03-12 Keith Seitz <keiths@redhat.com>
7907
7908 * ada-lang.c (ada_read_renaming_var_value): Pass const
7909 pointer to expression string to parse_exp_1.
7910 (create_excep_cond_exprs): Likewise.
7911 * ax-gdb.c (agent_eval_command_one): Likewise.
7912 (maint_agent_printf_command): Likewise.
7913 Constify much of the string handling/parsing.
7914 * breakpoint.c (set_breakpoint_condition): Pass const
7915 pointer to expression string to parse_exp_1.
7916 (update_watchpoint): Likewise.
7917 (parse_cmd_to_aexpr): Constify string handling.
7918 Pass const pointer to parse_exp_1.
7919 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7920 (find_condition_and_thread): Likewise.
7921 Make TOK const.
7922 (watch_command_1): Make "arg" const.
7923 Constify string handling.
7924 Copy the expression string instead of changing the input
7925 string.
7926 (update_breakpoint_location): Pass const pointer to
7927 parse_exp_1.
7928 * eval.c (parse_and_eval_address): Make "exp" const.
7929 (parse_to_comma_and_eval): Make "expp" const.
7930 (parse_and_eval): Make "exp" const.
7931 * expression.h (parse_expression): Make argument const.
7932 (parse_exp_1): Make first argument const.
7933 * findcmd.c (parse_find_args): Treat "args" as const.
7934 * linespec.c (parse_linespec): Pass const pointer to
7935 linespec_expression_to_pc.
7936 (linespec_expression_to_pc): Make "exp_ptr" const.
7937 * parse.c (parse_exp_1): Make "stringptr" const.
7938 Make a copy of the expression to pass to parse_exp_in_context until
7939 this whole interface can be constified.
7940 (parse_expression): Make "string" const.
7941 * printcmd.c (ui_printf): Treat "arg" as const.
7942 Handle const strings.
7943 * tracepoint.c (validate_actionline): Pass const pointer to
7944 all calls to parse_exp_1.
7945 (encode_actions_1): Likewise.
7946 * value.h (parse_to_comma_and_eval): Make argument const.
7947 (parse_and_eval_address): Likewise.
7948 (parse_and_eval): Likewise.
7949 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7950 (varobj_set_value): Likewise.
7951 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7952 constify string handling.
7953 Pass const pointers to parse_and_eval_address and
7954 parse_to_comman_and_eval.
7955 * cli/cli-utils.c (skip_to_space): Rename to ...
7956 (skip_to_space_const): ... this. Handle const strings.
7957 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7958 skip_to_space_const.
7959 (skip_to_space_const): Declare.
7960 * common/format.c (parse_format_string): Make "arg" const.
7961 Handle const strings.
7962 * common/format.h (parse_format_string): Make "arg" const.
7963 * gdbserver/ax.c (ax_printf): Make "format" const.
7964 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7965 of the expression string.
7966
7967 2013-03-12 Hui Zhu <hui@codesourcery.com>
7968
7969 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7970
7971 2013-03-12 Yao Qi <yao@codesourcery.com>
7972 Hui Zhu <hui@codesourcery.com>
7973
7974 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7975 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7976 DW_OP_deref_size.
7977
7978 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7979
7980 * ada-lex.l (rules): Only recognize 'thread' as a
7981 delimiter when followed by numerals, as for c-exp.y.
7982 Use new rewind_to_char function to rewind the input for
7983 expression-delimiting tokens.
7984 (rewind_to_char): New function.
7985
7986 2013-03-11 Pedro Alves <palves@redhat.com>
7987 Jan Kratochvil <jan.kratochvil@redhat.com>
7988
7989 * configure: Regenerate.
7990 * configure.ac (check dynamic export flag): Link python test with
7991 $PYTHON_LIBS.
7992
7993 2013-03-11 Doug Evans <dje@google.com>
7994 Keith Seitz <keiths@redhat.com>
7995
7996 * linespec.c (find_linespec_symbols): Call find_function_symbols
7997 first, and then call lookup_prefix_sym/find_method.
7998
7999 2013-03-11 Pedro Alves <palves@redhat.com>
8000
8001 * charset.c (convert_between_encodings): Don't cast between
8002 different pointer to pointer types. Instead, make the 'inp' local
8003 be of the type iconv expects.
8004 (wchar_iterate): Don't cast between different pointer to pointer
8005 types. Instead, use new pointer local of the type iconv expects.
8006 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8007 Add new local of type char pointer, and use it to get a
8008 char/string view of the byte buffer, instead of casting between
8009 pointer to pointer types.
8010
8011 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8012
8013 * remote.c (remote_set_trace_buffer_size): Move != operator
8014 to the start of next line to fix an ARI warning.
8015
8016 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8017
8018 * NEWS: Add record changes.
8019
8020 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8021
8022 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8023 the instruction history disassembly.
8024 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8025 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8026
8027 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8028
8029 * Makefile.in (SFILES): Add record-btrace.c
8030 (COMMON_OBS): Add record-btrace.o
8031 * record-btrace.c: New.
8032 * objfiles.c: Include btrace.h.
8033 (free_objfile): call btrace_free_objfile.
8034
8035 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8036
8037 * target.c (target_call_history, target_call_history_from,
8038 target_call_history_range): New.
8039 * target.h (target_ops) <to_call_history, to_call_history_from,
8040 to_call_history_range>: New fields.
8041 (target_call_history, target_call_history_from,
8042 target_call_history_range): New declaration.
8043 * record.c (get_call_history_modifiers, cmd_record_call_history,
8044 record_call_history_size): New.
8045 (_initialize_record): Add the "record function-call-history" command.
8046 Add "set/show record function-call-history-size" commands.
8047 * record.h (record_print_flag): New.
8048
8049 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8050
8051 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8052 to_insn_history_range>: New fields.
8053 (target_insn_history): New.
8054 (target_insn_history_from): New.
8055 (target_insn_history_range): New.
8056 * target.c (target_insn_history): New.
8057 (target_insn_history_from): New.
8058 (target_insn_history_range): New.
8059 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8060 (record_insn_history_size): New.
8061 (get_insn_number): New.
8062 (get_context_size): New.
8063 (no_chunk): New.
8064 (get_insn_history_modifiers): New.
8065 (cmd_record_insn_history): New.
8066 (_initialize_record): Add "set/show record instruction-history-size"
8067 command. Add "record instruction-history" command.
8068
8069 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8070
8071 * record.h (record_disconnect): New.
8072 (record_detach): New.
8073 (record_mourn_inferior): New.
8074 (record_kill): New.
8075 * record-full.c (record_disconnect, record_detach,
8076 record_mourn_inferior, record_kill): Move to...
8077 * record.c: ...here.
8078 (DEBUG): New.
8079 (record_stop): New.
8080 (record_unpush): New.
8081 (cmd_record_stop): Call record_stop. Replace unpush_target
8082 call with record_unpush call.
8083 (record_disconnect, record_detach): Assert that the target
8084 is of record stratum. Call record_unpush, record_stop, and
8085 DEBUG.
8086 (record_mourn_inferior, record_kill): Assert that the target
8087 is of record stratum. Call record_unpush and DEBUG.
8088
8089 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8090
8091 * record-full.h, record-full.c (record_memory_query): Rename
8092 to ...
8093 (record_full_memory_query): ...this. Update all users.
8094 (record_arch_list_add_reg): Rename to ...
8095 (record_full_arch_list_add_reg): ...this. Update all users.
8096 (record_arch_list_add_mem): Rename to ...
8097 (record_full_arch_list_add_mem): ...this. Update all users.
8098 (record_arch_list_add_end): Rename to ...
8099 (record_full_arch_list_add_end): ...this. Update all users.
8100 (record_gdb_operation_disable_set): Rename to ...
8101 (record_full_gdb_operation_disable_set): ...this.
8102 Update all users.
8103
8104 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8105
8106 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8107 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8108 (RECORD_IS_REPLAY): Renamed to ...
8109 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8110 (RECORD_FILE_MAGIC): Renamed to ...
8111 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8112 (record_mem_entry): Renamed to ...
8113 (record_full_mem_entry): ... this. Updated all users.
8114 (record_reg_entry): Renamed to ...
8115 (record_full_reg_entry): ... this. Updated all users.
8116 (record_end_entry): Renamed to ...
8117 (record_full_end_entry): ... this. Updated all users.
8118 (record_type) <record_end, record_reg, record_mem>: Renamed
8119 to ...
8120 (record_full_type) <record_full_end, record_full_reg,
8121 record_full_mem>: ... this. Updated all users.
8122 (record_entry): Renamed to ...
8123 (record_full_entry): ... this. Updated all users.
8124 (record_core_buf_entry): Renamed to ...
8125 (record_full_core_buf_entry): ... this. Updated all users.
8126 (record_core_regbuf): Renamed to ...
8127 (record_full_core_regbuf): ... this. Updated all users.
8128 (record_core_start): Renamed to ...
8129 (record_full_core_start): ... this. Updated all users.
8130 (record_core_end): Renamed to ...
8131 (record_full_core_end): ... this. Updated all users.
8132 (record_core_buf_list): Renamed to ...
8133 (record_full_core_buf_list): ... this. Updated all users.
8134 (record_first): Renamed to ...
8135 (record_full_first): ... this. Updated all users.
8136 (record_list): Renamed to ...
8137 (record_full_list): ... this. Updated all users.
8138 (record_arch_list_head): Renamed to ...
8139 (record_full_arch_list_head): ... this. Updated all users.
8140 (record_arch_list_tail): Renamed to ...
8141 (record_full_arch_list_tail): ... this. Updated all users.
8142 (record_stop_at_limit): Renamed to ...
8143 (record_full_stop_at_limit): ... this. Updated all users.
8144 (record_insn_max_num): Renamed to ...
8145 (record_full_insn_max_num): ... this. Updated all users.
8146 (record_insn_num): Renamed to ...
8147 (record_full_insn_num): ... this. Updated all users.
8148 (record_insn_count): Renamed to ...
8149 (record_full_insn_count): ... this. Updated all users.
8150 (record_ops): Renamed to ...
8151 (record_full_ops): ... this. Updated all users.
8152 (record_core_ops): Renamed to ...
8153 (record_full_core_ops): ... this. Updated all users.
8154 (set_record_cmdlist): Renamed to ...
8155 (set_record_full_cmdlist): ... this. Updated all users.
8156 (show_record_cmdlist): Renamed to ...
8157 (show_record_full_cmdlist): ... this. Updated all users.
8158 (record_cmdlist): Renamed to ...
8159 (record_full_cmdlist): ... this. Updated all users.
8160 (record_beneath_to_resume_ops): Renamed to ...
8161 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8162 (record_beneath_to_resume): Renamed to ...
8163 (record_full_beneath_to_resume): ... this. Updated all users.
8164 (record_beneath_to_wait_ops): Renamed to ...
8165 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8166 (record_beneath_to_wait): Renamed to ...
8167 (record_full_beneath_to_wait): ... this. Updated all users.
8168 (record_beneath_to_store_registers_ops): Renamed to ...
8169 (record_full_beneath_to_store_registers_ops): ... this.
8170 Updated all users.
8171 (record_beneath_to_store_registers): Renamed to ...
8172 (record_full_beneath_to_store_registers): ... this.
8173 Updated all users.
8174 (record_beneath_to_xfer_partial_ops): Renamed to ...
8175 (record_full_beneath_to_xfer_partial_ops): ... this.
8176 Updated all users.
8177 (record_beneath_to_xfer_partial): Renamed to ...
8178 (record_full_beneath_to_xfer_partial): ... this.
8179 Updated all users.
8180 (record_beneath_to_insert_breakpoint): Renamed to ...
8181 (record_full_beneath_to_insert_breakpoint): ... this.
8182 Updated all users.
8183 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8184 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8185 Updated all users.
8186 (record_beneath_to_stopped_data_address): Renamed to ...
8187 (record_full_beneath_to_stopped_data_address): ... this.
8188 Updated all users.
8189 (record_beneath_to_async): Renamed to ...
8190 (record_full_beneath_to_async): ... this. Updated all users.
8191 (record_goto_insn): Renamed to ...
8192 (record_full_goto_insn): ... this. Updated all users.
8193 (record_save): Renamed to ...
8194 (record_full_save): ... this. Updated all users.
8195 (record_reg_alloc): Renamed to ...
8196 (record_full_reg_alloc): ... this. Updated all users.
8197 (record_reg_release): Renamed to ...
8198 (record_full_reg_release): ... this. Updated all users.
8199 (record_mem_alloc): Renamed to ...
8200 (record_full_mem_alloc): ... this. Updated all users.
8201 (record_mem_release): Renamed to ...
8202 (record_full_mem_release): ... this. Updated all users.
8203 (record_end_alloc): Renamed to ...
8204 (record_full_end_alloc): ... this. Updated all users.
8205 (record_end_release): Renamed to ...
8206 (record_full_end_release): ... this. Updated all users.
8207 (record_entry_release): Renamed to ...
8208 (record_full_entry_release): ... this. Updated all users.
8209 (record_list_release): Renamed to ...
8210 (record_full_list_release): ... this. Updated all users.
8211 (record_list_release_following): Renamed to ...
8212 (record_full_list_release_following): ... this.
8213 Updated all users.
8214 (record_list_release_first): Renamed to ...
8215 (record_full_list_release_first): ... this. Updated all users.
8216 (record_arch_list_add): Renamed to ...
8217 (record_full_arch_list_add): ... this. Updated all users.
8218 (record_get_loc): Renamed to ...
8219 (record_full_get_loc): ... this. Updated all users.
8220 (record_check_insn_num): Renamed to ...
8221 (record_full_check_insn_num): ... this. Updated all users.
8222 (record_arch_list_cleanups): Renamed to ...
8223 (record_full_arch_list_cleanups): ... this. Updated all users.
8224 (record_message): Renamed to ...
8225 (record_full_message): ... this. Updated all users.
8226 (record_message_wrapper): Renamed to ...
8227 (record_full_message_wrapper): ... this. Updated all users.
8228 (record_message_wrapper_safe): Renamed to ...
8229 (record_full_message_wrapper_safe): ... this. Updated all users.
8230 (record_gdb_operation_disable): Renamed to ...
8231 (record_full_gdb_operation_disable): ... this. Updated all users.
8232 (record_hw_watchpoint): Renamed to ...
8233 (record_full_hw_watchpoint): ... this. Updated all users.
8234 (record_exec_insn): Renamed to ...
8235 (record_full_exec_insn): ... this. Updated all users.
8236 (record_restore): Renamed to ...
8237 (record_full_restore): ... this. Updated all users.
8238 (record_async_inferior_event_token): Renamed to ...
8239 (record_full_async_inferior_event_token): ... this.
8240 Updated all users.
8241 (record_async_inferior_event_handler): Renamed to ...
8242 (record_full_async_inferior_event_handler): ... this.
8243 Updated all users.
8244 (record_core_open_1): Renamed to ...
8245 (record_full_core_open_1): ... this. Updated all users.
8246 (record_open_1): Renamed to ...
8247 (record_full_open_1): ... this. Updated all users.
8248 (record_open): Renamed to ...
8249 (record_full_open): ... this. Updated all users.
8250 (record_close): Renamed to ...
8251 (record_full_close): ... this. Updated all users.
8252 (record_resume_step): Renamed to ...
8253 (record_full_resume_step): ... this. Updated all users.
8254 (record_resumed): Renamed to ...
8255 (record_full_resumed): ... this. Updated all users.
8256 (record_execution_dir): Renamed to ...
8257 (record_full_execution_dir): ... this. Updated all users.
8258 (record_resume): Renamed to ...
8259 (record_full_resume): ... this. Updated all users.
8260 (record_get_sig): Renamed to ...
8261 (record_full_get_sig): ... this. Updated all users.
8262 (record_sig_handler): Renamed to ...
8263 (record_full_sig_handler): ... this. Updated all users.
8264 (record_wait_cleanups): Renamed to ...
8265 (record_full_wait_cleanups): ... this. Updated all users.
8266 (record_wait_1): Renamed to ...
8267 (record_full_wait_1): ... this. Updated all users.
8268 (record_wait): Renamed to ...
8269 (record_full_wait): ... this. Updated all users.
8270 (record_stopped_by_watchpoint): Renamed to ...
8271 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8272 (record_disconnect): Renamed to ...
8273 (record_full_disconnect): ... this. Updated all users.
8274 (record_detach): Renamed to ...
8275 (record_full_detach): ... this. Updated all users.
8276 (record_mourn_inferior): Renamed to ...
8277 (record_full_mourn_inferior): ... this. Updated all users.
8278 (record_kill): Renamed to ...
8279 (record_full_kill): ... this. Updated all users.
8280 (record_stopped_data_address): Renamed to ...
8281 (record_full_stopped_data_address): ... this. Updated all users.
8282 (record_registers_change): Renamed to ...
8283 (record_full_registers_change): ... this. Updated all users.
8284 (record_store_registers): Renamed to ...
8285 (record_full_store_registers): ... this. Updated all users.
8286 (record_xfer_partial): Renamed to ...
8287 (record_full_xfer_partial): ... this. Updated all users.
8288 (record_breakpoint): Renamed to ...
8289 (record_full_breakpoint): ... this. Updated all users.
8290 (record_breakpoint_p): Renamed to ...
8291 (record_full_breakpoint_p): ... this. Updated all users.
8292 (record_breakpoints): Renamed to ...
8293 (record_full_breakpoints): ... this. Updated all users.
8294 (record_sync_record_breakpoints): Renamed to ...
8295 (record_full_sync_record_breakpoints): ... this.
8296 Updated all users.
8297 (record_init_record_breakpoints): Renamed to ...
8298 (record_full_init_record_breakpoints): ... this.
8299 Updated all users.
8300 (record_insert_breakpoint): Renamed to ...
8301 (record_full_insert_breakpoint): ... this. Updated all users.
8302 (record_remove_breakpoint): Renamed to ...
8303 (record_full_remove_breakpoint): ... this. Updated all users.
8304 (record_can_execute_reverse): Renamed to ...
8305 (record_full_can_execute_reverse): ... this. Updated all users.
8306 (record_get_bookmark): Renamed to ...
8307 (record_full_get_bookmark): ... this. Updated all users.
8308 (record_goto_bookmark): Renamed to ...
8309 (record_full_goto_bookmark): ... this. Updated all users.
8310 (record_async): Renamed to ...
8311 (record_full_async): ... this. Updated all users.
8312 (record_can_async_p): Renamed to ...
8313 (record_full_can_async_p): ... this. Updated all users.
8314 (record_is_async_p): Renamed to ...
8315 (record_full_is_async_p): ... this. Updated all users.
8316 (record_execution_direction): Renamed to ...
8317 (record_full_execution_direction): ... this. Updated all users.
8318 (record_info): Renamed to ...
8319 (record_full_info): ... this. Updated all users.
8320 (record_delete): Renamed to ...
8321 (record_full_delete): ... this. Updated all users.
8322 (record_is_replaying): Renamed to ...
8323 (record_full_is_replaying): ... this. Updated all users.
8324 (record_goto_entry): Renamed to ...
8325 (record_full_goto_entry): ... this. Updated all users.
8326 (record_goto_begin): Renamed to ...
8327 (record_full_goto_begin): ... this. Updated all users.
8328 (record_goto_end): Renamed to ...
8329 (record_full_goto_end): ... this. Updated all users.
8330 (record_goto): Renamed to ...
8331 (record_full_goto): ... this. Updated all users.
8332 (init_record_ops): Renamed to ...
8333 (init_record_full_ops): ... this. Updated all users.
8334 (record_core_resume): Renamed to ...
8335 (record_full_core_resume): ... this. Updated all users.
8336 (record_core_kill): Renamed to ...
8337 (record_full_core_kill): ... this. Updated all users.
8338 (record_core_fetch_registers): Renamed to ...
8339 (record_full_core_fetch_registers): ... this. Updated all users.
8340 (record_core_prepare_to_store): Renamed to ...
8341 (record_full_core_prepare_to_store): ... this. Updated all users.
8342 (record_core_store_registers): Renamed to ...
8343 (record_full_core_store_registers): ... this. Updated all users.
8344 (record_core_xfer_partial): Renamed to ...
8345 (record_full_core_xfer_partial): ... this. Updated all users.
8346 (record_core_insert_breakpoint): Renamed to ...
8347 (record_full_core_insert_breakpoint): ... this. Updated all users.
8348 (record_core_remove_breakpoint): Renamed to ...
8349 (record_full_core_remove_breakpoint): ... this. Updated all users.
8350 (record_core_has_execution): Renamed to ...
8351 (record_full_core_has_execution): ... this. Updated all users.
8352 (init_record_core_ops): Renamed to ...
8353 (init_record_full_core_ops): ... this. Updated all users.
8354 (cmd_record_restore): Renamed to ...
8355 (cmd_record_full_restore): ... this. Updated all users.
8356 (record_save_cleanups): Renamed to ...
8357 (record_full_save_cleanups): ... this. Updated all users.
8358 (cmd_record_start): Renamed to ...
8359 (cmd_record_full_start): ... this. Updated all users.
8360 (set_record_insn_max_num): Renamed to ...
8361 (set_record_full_insn_max_num): ... this. Updated all users.
8362 (set_record_command): Renamed to ...
8363 (set_record_full_command): ... this. Updated all users.
8364 (show_record_command): Renamed to ...
8365 (show_record_full_command): ... this. Updated all users.
8366 (_initialize_record): Renamed to ...
8367 (_initialize_record_full): ... this. Updated all users.
8368
8369 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8370
8371 * record.h: Split into this and ...
8372 * record-full.h: ... this.
8373 * record.c: Split into this and ...
8374 * record-full.c: ... this.
8375 * target.h (target_ops): Add new fields to_info_record,
8376 to_save_record, to_delete_record, to_record_is_replaying,
8377 to_goto_record_begin, to_goto_record_end, to_goto_record.
8378 (target_info_record): New.
8379 (target_save_record): New.
8380 (target_supports_delete_record): New.
8381 (target_delete_record): New.
8382 (target_record_is_replaying): New.
8383 (target_goto_record_begin): New.
8384 (target_goto_record_end): New.
8385 (target_goto_record): New.
8386 * target.c (target_info_record): New.
8387 (target_save_record): New.
8388 (target_supports_delete_record): New.
8389 (target_delete_record): New.
8390 (target_record_is_replaying): New.
8391 (target_goto_record_begin): New.
8392 (target_goto_record_end): New.
8393 (target_goto_record): New.
8394 * record.h: Declare struct cmd_list_element.
8395 (record_cmdlist): New declaration.
8396 (set_record_cmdlist): New declaration.
8397 (show_record_cmdlist): New declaration.
8398 (info_record_cmdlist): New declaration.
8399 (cmd_record_goto): New declaration.
8400 * record.c: Remove unnecessary includes.
8401 Include inferior.h.
8402 (cmd_record_goto): Remove declaration.
8403 (record_cmdlist): Now extern. Initialize.
8404 (set_record_cmdlist): Now extern. Initialize.
8405 (show_record_cmdlist): Now extern. Initialize.
8406 (info_record_cmdlist): Now extern. Initialize.
8407 (find_record_target): New.
8408 (require_record_target): New.
8409 (cmd_record_start): Update.
8410 (cmd_record_delete): Remove target-specific code.
8411 Call target_delete_record.
8412 (cmd_record_stop): Unpush any record target.
8413 (set_record_insn_max_num): Move to record-full.c
8414 (set_record_command): Add comment.
8415 (show_record_command): Add comment.
8416 (info_record_command): Update comment.
8417 Remove target-specific code.
8418 Call the record target's to_info_record.
8419 (cmd_record_start): New.
8420 (cmd_record_goto): Now extern.
8421 Remove target-specific code.
8422 Call target_goto_begin, target_goto_end, or target_goto.
8423 (_initialize_record): Move record target ops initialization to
8424 record-full.c.
8425 Change "record" command help text.
8426 Move "record restore", "record set", and "record show" commands to
8427 record-full.c.
8428 * Makefile.in (SFILES): Add record-full.c.
8429 (HFILES_NO_SRCDIR): Add record-full.h.
8430 (COMMON_OBS): Add record-full.o.
8431 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8432 * arm-tdep.c: Include record-full.h.
8433 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8434 * i386-tdep.c: Include record-full.h.
8435 * infrun.c: Include record-full.h.
8436 * linux-record.c: Include record-full.h.
8437 * moxie-tdep.c: Include record-full.h.
8438 * record-full.c: Include record-full.h.
8439 Change module comment.
8440 (set_record_full_cmdlist): New.
8441 (show_record_full_cmdlist): New.
8442 (record_full_cmdlist): New.
8443 (record_goto_insn): New declaration.
8444 (record_save): New declaration.
8445 (record_check_insn_num): Change query string.
8446 (record_info): New.
8447 (record_delete): New.
8448 (record_is_replaying): New.
8449 (record_goto_entry): New.
8450 (record_goto_begin): New.
8451 (record_goto_end): New.
8452 (record_goto): New.
8453 (init_record_ops): Update.
8454 (init_record_core_ops): Update.
8455 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8456 (cmd_record_start): New.
8457 (set_record_insn_max_num): Moved from record.c
8458 (set_record_full_command): New.
8459 (show_record_full_command): New.
8460 (_initialize_record_full): New.
8461
8462 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * target.h (add_deprecated_target_alias): New.
8465 * target.c (add_deprecated_target_alias): New.
8466
8467 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8468
8469 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8470 and signal.h.
8471 (linux_supports_btrace): Add kernel and
8472 cpuid check.
8473 (kernel_supports_btrace): New function.
8474 (cpu_supports_btrace): New function.
8475 (intel_supports_btrace): New function.
8476
8477 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8478
8479 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8480 * remote.c: Include btrace.h.
8481 (struct btrace_target_info): New struct.
8482 (remote_supports_btrace): New function.
8483 (send_Qbtrace): New function.
8484 (remote_enable_btrace): New function.
8485 (remote_disable_btrace): New function.
8486 (remote_teardown_btrace): New function.
8487 (remote_read_btrace): New function.
8488 (init_remote_ops): Add btrace ops.
8489 (enum <unnamed>): Add btrace packets.
8490 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8491 (_initialize_remote): Add packet configuration for branch tracing.
8492
8493 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8494
8495 * features/btrace.dtd: New file.
8496 * Makefile.in (XMLFILES): Add btrace.dtd.
8497 * btrace.h (parse_xml_btrace): New declaration.
8498 * btrace.c: Include xml-support.h.
8499 (parse_xml_btrace): New function.
8500 (parse_xml_btrace_block): New function.
8501 (block_attributes): New struct.
8502 (btrace_attributes): New struct.
8503 (btrace_children): New struct.
8504 (btrace_elements): New struct.
8505
8506 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8507
8508 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8509 (amd64_linux_enable_btrace): New.
8510 (amd64_linux_disable_btrace): New.
8511 (amd64_linux_teardown_btrace): New.
8512 (_initialize_amd64_linux_nat): Initialize btrace ops.
8513 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8514 (i386_linux_enable_btrace): New.
8515 (i386_linux_disable_btrace): New.
8516 (i386_linux_teardown_btrace): New.
8517 (_initialize_i386_linux_nat): Initialize btrace ops.
8518 * config/i386/linux.mh: Add linux-btrace.o.
8519 * config/i386/linux64.mh: Add linux-btrace.o.
8520
8521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8522
8523 * common/linux_btrace.h: New file.
8524 * common/linux_btrace.c: New file.
8525 * Makefile.in (SFILES): Add btrace.c.
8526 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8527 (COMMON_OBS): Add btrace.o.
8528 (linux-btrace.o): New rule.
8529
8530 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8531
8532 * target.h: Include btrace.h.
8533 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8534 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8535 * target.c (target_supports_btrace): New function.
8536 (target_enable_btrace): New function.
8537 (target_disable_btrace): New function.
8538 (target_teardown_btrace): New function.
8539 (target_read_btrace): New function.
8540 * btrace.h: New file.
8541 * btrace.c: New file.
8542 * Makefile.in: Add btrace.c.
8543 * gdbthread.h: Include btrace.h.
8544 (struct thread_info): Add btrace field.
8545 * thread.c: Include btrace.h.
8546 (clear_thread_inferior_resources): Call target_teardown_btrace.
8547 * common/btrace-common.h: New file.
8548
8549 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8550
8551 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8552 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8553 kill_status to outer block.
8554
8555 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8556
8557 Fix entry-values if the callee called a noreturn function.
8558 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8559 get_frame_address_in_block. Add new comment.
8560
8561 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8562
8563 Fix entry-values in C++ across CUs.
8564 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8565 lookup_minimal_symbol. Add a comment.
8566 * dwarf2read.c
8567 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8568 DW_AT_linkage_name.
8569
8570 2013-03-08 Yao Qi <yao@codesourcery.com>
8571
8572 * tracepoint.c (_initialize_tracepoint): Indent the code.
8573
8574 2013-03-08 Pedro Alves <palves@redhat.com>
8575
8576 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8577 (parse_find_args, find_command): Change type of pattern buffer
8578 locals to 'gdb_byte *'.
8579
8580 2013-03-08 Stan Shebs <stan@codesourcery.com>
8581 Hafiz Abid Qadeer <abidh@codesourcery.com>
8582
8583 * NEWS: Mention set and show trace-buffer-size commands.
8584 Mention new packet.
8585 * target.h (struct target_ops): New method
8586 to_set_trace_buffer_size.
8587 (target_set_trace_buffer_size): New macro.
8588 * target.c (update_current_target): Set up new method.
8589 * tracepoint.c (trace_buffer_size): New global.
8590 (start_tracing): Send it to the target.
8591 (set_trace_buffer_size): New function.
8592 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8593 * remote.c (remote_set_trace_buffer_size): New function.
8594 (_initialize_remote): Use it.
8595 (QTBuffer:size) New remote command.
8596 (PACKET_QTBuffer_size): New enum.
8597 (remote_protocol_features): Add an entry for
8598 PACKET_QTBuffer_size.
8599
8600 2013-03-08 Tom Tromey <tromey@redhat.com>
8601
8602 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8603 variable.
8604
8605 2013-03-07 Pedro Alves <palves@redhat.com>
8606
8607 * target.c (target_read_stralloc, target_fileio_read_alloc):
8608 *Cast pointer to 'gdb_byte *' in target call.
8609
8610 2013-03-07 Pedro Alves <palves@redhat.com>
8611
8612 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8613 call.
8614
8615 2013-03-07 Keith Seitz <keiths@redhat.com>
8616
8617 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8618 (trace_pass_command): Likewise.
8619 * cli/cli-cmds.c: Include cli/cli-utils.h.
8620 (source_command): Use skip-spaces.
8621 (disassemble_command): Likewise.
8622 * findcmd.c: Include cli/cli-utils.h.
8623 (parse_find_args): Use skip_spaces.
8624 * go32-nat.c: Include cli/cli-utils.h.
8625 (go32_sldt): Use skip_spaces.
8626 (go32_sgdt): Likewise.
8627 (go32_sidt): Likewise.
8628 (go32_pde): Likewise.
8629 (go32_pte): Likewise.
8630 (go32_pte_for_address): Likewise.
8631 * infcmd.c: Include cli/cli-utils.h.
8632 (registers_info): Use skip_spaces.
8633 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8634 (linux_info_proc): Likewise.
8635 * linux-thread-db.c: Include cli/cli-utils.h.
8636 (info_auto_load_libthread_db): Use skip_spaces_const.
8637 * m32r-rom.c: Include cli/cli-utils.h.
8638 (m32r_upload_command): Use skip_spaces.
8639 * maint.c: Include cli/cli-utils.h.
8640 (maintenance_translate_address): Use skip_spaces.
8641 * mi/mi-parse.c: Include cli/cli-utils.h.
8642 (mi_parse_argv): Use skip_spaces.
8643 (mi_parse): Likewise.
8644 * minsyms.c: Include cli/cli-utils.h.
8645 (msymbol_hash_iw): Use skip_spaces_const.
8646 * objc-lang.c: Include cli/cli-utils.h.
8647 (parse_selector): Use skip_spaces.
8648 (parse_method): Likewise.
8649 * python/python.c: Include cli/cli-utils.h.
8650 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8651 (python_command)[HAVE_PYTHON]: Likewise.
8652 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8653 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8654 (m32r_load): Use skip_spaces.
8655 * serial.c: Include cli/cli-utils.h.
8656 (serial_open): Use skip_spaces_const.
8657 * stack.c: Include cli/cli-utils.h.
8658 (parse_frame_specification_1): Use skip_spaces_const.
8659 * symfile.c: Include cli/cli-utils.h.
8660 (set_ext_lang_command): Use skip_spaces.
8661 * symtab.c: Include cli/cli-utils.h.
8662 (rbreak_command): Use skip_spaces.
8663 * thread.c (thread_name_command): Use skip_spaces.
8664 * tracepoint.c (validate_actionline): Use skip_spaces.
8665 (encode_actions_1): Likewise.
8666 (trace_find_range_command): Likewise.
8667 (trace_find_outside_command): Likewise.
8668 (trace_dump_actions): Likewise.
8669
8670 2013-03-07 Pedro Alves <palves@redhat.com>
8671
8672 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8673 * expprint.c (print_subexp_standard): Likewise.
8674 * utils.c (host_char_to_target): Likewise.
8675 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8676 * varobj.c (value_get_print_value): Change type of local to char*.
8677 Cast it gdb_byte * in call to language printer.
8678
8679 2013-03-07 Pedro Alves <palves@redhat.com>
8680
8681 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8682 gdb_byte *'.
8683 (make_wchar_iterator): Remove cast to char*.
8684 (wchar_iterate): Change type of local.
8685
8686 2013-03-07 Pedro Alves <palves@redhat.com>
8687
8688 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8689 for 'regcache->register_status'.
8690
8691 2013-03-07 Pedro Alves <palves@redhat.com>
8692
8693 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8694 int.
8695
8696 2013-03-07 Pedro Alves <palves@redhat.com>
8697
8698 * stap-probe.c (handle_stap_probe): Add cast to char*.
8699
8700 2013-03-07 Pedro Alves <palves@redhat.com>
8701
8702 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8703 RECORD_MSGRCV>: Pass a signed variable to
8704 regcache_raw_read_signed, instead of an unsigned one.
8705
8706 2013-03-07 Pedro Alves <palves@redhat.com>
8707
8708 * remote-notif.c (notif_debug): Change type to int.
8709 * remote-notif.h (notif_debug): Likewise.
8710
8711 2013-03-07 Pedro Alves <palves@redhat.com>
8712
8713 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8714
8715 2013-03-07 Pedro Alves <palves@redhat.com>
8716
8717 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8718 * remote.h (hex2bin, bin2hex): ... here.
8719 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8720
8721 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8722
8723 * utils.c (initialize_utils): Improve doc strings of "set/show
8724 width", "set/show height", and "set/show pagination".
8725
8726 2013-03-06 Keith Seitz <keiths@redhat.com>
8727
8728 * ax-gdb.c (gen_printf): Make FORMAT const.
8729 * ax-gdb.h (gen_printf): Likewise.
8730 * ax-general.c (ax_string): Make STR const.
8731 * ax.h (ax_string): Likewise.
8732
8733 2013-03-06 Doug Evans <dje@google.com>
8734
8735 * elfread.c (elf_symfile_read): Move debugging printf to more
8736 logical location.
8737
8738 2013-03-06 Pedro Alves <palves@redhat.com>
8739
8740 * python/py-utils.c (target_string_to_unicode): Delete function.
8741 * python/python-internal.h (target_string_to_unicode): Delete
8742 declaration.
8743
8744 2013-03-06 Pierre Muller <muller@sourceware.org>
8745
8746 * linespec.c (get_current_search_block): ARI fix, use (void)
8747 for empty parameter list.
8748
8749 2013-03-05 Doug Evans <dje@google.com>
8750
8751 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8752 of old ada_lookup_symbol_list. In !full_search case, don't
8753 search superblocks.
8754 (ada_lookup_symbol_list): Delete arg full_search, all callers
8755 updated. Call ada_lookup_symbol_list_worker.
8756 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8757 * ada-lang.h (ada_lookup_symbol_list): Update.
8758 * language.h (language_defn): Update comment for
8759 la_iterate_over_symbols.
8760 * linespec.c (iterate_over_file_blocks): New function.
8761 (iterate_over_all_matching_symtabs): Call it.
8762 (lookup_prefix_sym): Ditto.
8763 (get_current_search_block): New function.
8764 (get_search_block): Delete.
8765 (find_label_symbols): Call get_current_search_block.
8766 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8767 * symtab.c (iterate_over_symbols): Don't search superblocks.
8768
8769 2013-03-05 Yao Qi <yao@codesourcery.com>
8770
8771 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8772 parameter VAR's type from "unsigned int" to "int".
8773 * command.h (var_zuinteger_unlimited): Update its comments.
8774 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8775
8776 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8777
8778 * NEWS: Mention new target x86_64-*-cygwin*.
8779
8780 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8781
8782 * configure.host: Add x86_64-*-cygwin* as host.
8783 * configure.tgt: Add x86_64-*-cygwin* as target.
8784 * config/i386/cygwin64.mh: New file.
8785
8786 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8787
8788 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8789
8790 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8791
8792 * linespec.c (struct linespec_canonical_name): New.
8793 (struct linespec_state): Change canonical_names type to it.
8794 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8795 xrealloc element size. Initialize the different CANONICAL fields.
8796 (canonical_to_fullform): New.
8797 (filter_results): Use it. Add variables canonical, fullform and
8798 cleanup.
8799 (struct decode_line_2_item, decode_line_2_compare_items): New.
8800 (decode_line_2): Remove variables iter and item_names, add variables
8801 items and items_count. Modify the code for these new variables.
8802
8803 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
8804
8805 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8806 calling do_cleanup.
8807
8808 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
8809
8810 * tracepoint.c (build_traceframe_info): Add code for byte order.
8811
8812 2013-03-02 Kevin Buettner <kevinb@redhat.com>
8813
8814 * v850-tdep.c: (v850e2_register_name): Revise system register
8815 names to match current V850E2M architecture specifications.
8816 Update register number enum comments too.
8817
8818 2013-03-01 Jiong Wang <jiwang@tilera.com>
8819 Pedro Alves <palves@redhat.com>
8820
8821 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8822 to END_ADDR.
8823 (tilegx_skip_prologue): Limit prologue analysis to section end.
8824
8825 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8826
8827 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8828 use it.
8829
8830 2013-03-01 Pedro Alves <palves@redhat.com>
8831
8832 Use gdb_byte for bytes from the program being debugged.
8833
8834 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8835 Change type of local 'buf' to gdb_byte.
8836 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8837 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8838 * cris-tdep.c (cris_sigcontext_addr)
8839 (cris_sigtramp_frame_unwind_cache): Likewise.
8840 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8841 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8842 Likewise.
8843 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8844 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8845 (hppa32_hpux_search_dummy_call_sequence)
8846 (hppa_hpux_supply_save_state): Likewise.
8847 * hppa-linux-tdep.c (insns_match_pattern)
8848 (hppa_linux_find_global_pointer): Likewise.
8849 * hppa-tdep.c (hppa_in_function_epilogue_p)
8850 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8851 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8852 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8853 (i386fbsd_collect_uthread): Likewise.
8854 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8855 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8856 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8857 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8858 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8859 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8860 (ia64_libunwind_frame_prev_register)
8861 (ia64_libunwind_sigtramp_frame_this_id)
8862 (ia64_find_global_pointer_from_dynamic_section)
8863 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8864 (ia64_unwind_pc): Likewise.
8865 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8866 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8867 (m68hc11_extract_return_value): Likewise.
8868 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8869 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8870 (mep_get_insn, mep_push_dummy_call): Likewise.
8871 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8872 (mips_linux_in_dynsym_stub): Likewise.
8873 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8874 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8875 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8876 to gdb_byte.
8877 * remote-mips.c (mips_set_register): Likewise.
8878 * remote-sim.c (gdbsim_fetch_register): Likewise.
8879 * score-tdep.c (score7_fetch_inst): Change type of parameter
8880 'memblock' and local 'buf' to gdb_byte.
8881 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8882 Change type of local 'buf' to gdb_byte. Adjust.
8883 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8884 to gdb_byte**.
8885 (score7_analyze_prologue): Change type of 'memblock' and
8886 'memblock_ptr' locals to gdb_byte*.
8887 * sh64-tdep.c (sh64_extract_return_value)
8888 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8889 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8890 * solib-pa64.c (pa64_solib_create_inferior_hook)
8891 (pa64_open_symbol_file_object): Remove local 'buf'.
8892 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8893 (som_open_symbol_file_object): Likewise.
8894 * solib-spu.c (spu_current_sos): Likewise.
8895 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8896 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8897 (spu_store_registers): Likewise.
8898 * target.c (debug_print_register): Likewise.
8899 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8900 * xstormy16-tdep.c (xstormy16_store_return_value)
8901 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8902 (xstormy16_find_jmp_table_entry): Likewise.
8903
8904 2013-03-01 Jiong Wang <jiwang@tilera.com>
8905
8906 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8907 (tilegx_gdbarch_init): Install it.
8908
8909 2013-02-28 Tom Tromey <tromey@redhat.com>
8910
8911 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8912 PyLong_Check.
8913
8914 2013-02-28 Doug Evans <dje@google.com>
8915
8916 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8917 * python/python.c (gdbpy_find_pc_line): Ditto.
8918
8919 2013-02-28 Tom Tromey <tromey@redhat.com>
8920
8921 * contrib/excheck.py: New file.
8922 * contrib/exsummary.py: New file.
8923 * contrib/gcc-with-excheck: New file.
8924
8925 2013-02-28 Tom Tromey <tromey@redhat.com>
8926
8927 * python/python.c (gdbpy_print_stack): Call begin_line and
8928 fprintf_filtered inside TRY_CATCH.
8929
8930 2013-02-28 Tom Tromey <tromey@redhat.com>
8931
8932 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8933 inside TRY_CATCH.
8934
8935 2013-02-28 Tom Tromey <tromey@redhat.com>
8936
8937 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8938 frame_object_to_frame_info inside TRY_CATCH.
8939
8940 2013-02-28 Tom Tromey <tromey@redhat.com>
8941
8942 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8943 TRY_CATCH.
8944
8945 2013-02-28 Tom Tromey <tromey@redhat.com>
8946
8947 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8948
8949 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
8950
8951 * windows-nat.c: Throughout, fix format strings and casts of
8952 printf-like functions to avoid type related warnings on all
8953 platforms.
8954 (handle_output_debug_string): Fetch context information address
8955 from debug string using string_to_core_addr.
8956
8957 2013-02-27 Jiong Wang <jiwang@tilera.com>
8958
8959 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8960 * regformats/reg-tilegx32.dat: New.
8961
8962 2013-02-27 Jiong Wang <jiwang@tilera.com>
8963
8964 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8965
8966 2013-02-27 Jiong Wang <jiwang@tilera.com>
8967
8968 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8969
8970 2013-02-27 Yao Qi <yao@codesourcery.com>
8971 Pedro Alves <palves@redhat.com>
8972
8973 * tracepoint.c (tfile_trace_find): For tfind
8974 pc/tp/range/outside, look for the next trace frame instead of
8975 always starting from frame 0.
8976
8977 2013-02-26 Anthony Green <green@moxielogic.com>
8978
8979 * configure.tgt: Add support for moxie-*-rtems* target.
8980
8981 2013-02-25 Pedro Alves <palves@redhat.com>
8982
8983 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8984 warning text.
8985
8986 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8987
8988 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8989 if $fp is used as the virtual frame pointer.
8990
8991 2013-02-23 Alan Modra <amodra@gmail.com>
8992
8993 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8994 symbol size.
8995 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8996 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8997 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8998 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8999
9000 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9001
9002 Code cleanup.
9003 * elfread.c (build_id_bfd_get): Make the return type const.
9004 (build_id_verify): Make the check parameter const.
9005 (build_id_to_debug_filename): Make the build_id parameter and variable
9006 data const.
9007 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9008
9009 2013-02-21 Alan Modra <amodra@gmail.com>
9010
9011 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9012
9013 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9014
9015 Add a new method 'disassemble' to gdb.Architecture class.
9016 * python/py-arch.c (archpy_disassmble): Implementation of the
9017 new method gdb.Architecture.disassemble.
9018 (arch_object_methods): Add entry for the new method.
9019
9020 2013-02-20 Jiong Wang <jiwang@tilera.com>
9021
9022 * MAINTAINERS (Write After Approval): Add myself to the list.
9023
9024 2013-02-19 Pedro Alves <palves@redhat.com>
9025
9026 Garbage collect 'struct monitor_ops'::load_routine.
9027
9028 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9029 * monitor.c (monitor_load): No longer call
9030 current_monitor->load_routine.
9031 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9032 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9033 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9034
9035 2013-02-19 Pedro Alves <palves@redhat.com>
9036
9037 PR gdb/15161
9038
9039 Harmonize with generic_load.
9040
9041 * monitor.c: Include "readline/readline.h".
9042 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9043 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9044 long/strtol for the 'load_offset' local. Error out if no argument
9045 is given or if too many arguments are given. Tilde expand the
9046 passed in file name.
9047
9048 2013-02-19 Kai Tietz <ktietz@redhat.com>
9049
9050 PR gdb/15161
9051 * symfile.c (load_section_data): Change type of load_offset
9052 to CORE_ADDR.
9053 (generic_load): User strtoulst instead of strtoul for conversion
9054 of load_offset.
9055
9056 2013-02-19 Jiong Wang <jiwang@tilera.com>
9057
9058 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9059 for return address, "lr" register, saved on stack.
9060 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9061 after we invoke tilegx_analyze_prologue.
9062
9063 2013-02-19 Jiong Wang <jiwang@tilera.com>
9064
9065 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9066
9067 2013-02-19 Jiong Wang <jiwang@tilera.com>
9068
9069 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9070
9071 2013-02-19 Jiong Wang <jiwang@tilera.com>
9072
9073 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9074 (tilegx_write_pc): New function.
9075 (tilegx_cannot_reference_register): Return zero if REGNO
9076 is TILEGX_FAULTNUM_REGNUM.
9077 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9078 (tilegx_register_name): Add handling of "faultnum" register.
9079 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9080 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9081 handling of TILEGX_FAULTNUM_REGNUM.
9082 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9083
9084 2013-02-19 Jiong Wang <jiwang@tilera.com>
9085
9086 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9087 should be aligned to 64bit.
9088
9089 2013-02-19 Kai Tietz <ktietz@redhat.com>
9090
9091 * windows-nat.c (windows_xfer_memory): Fix debug-output
9092 for LLP64.
9093
9094 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9095
9096 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9097 Don't check DSP register number if HAVE_DSP is not set.
9098
9099 2013-02-19 Alan Modra <amodra@gmail.com>
9100
9101 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9102 throughout file instead.
9103 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9104 Don't xmalloc return value.
9105 (build_id_verify): Similarly. Don't xfree.
9106 (build_id_to_debug_filename): Update.
9107 (find_separate_debug_file_by_buildid): Update, don't xfree.
9108
9109 2013-02-18 Tom Tromey <tromey@redhat.com>
9110
9111 PR gdb/15102:
9112 * dwarf2read.c (read_subrange_type): Use result of
9113 'check_typedef'.
9114
9115 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9116
9117 * frame.c: Remove one extra white space after #include
9118 directive.
9119
9120 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9123
9124 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9127 and dir commands into an if block.
9128
9129 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9130
9131 * python/py-breakpoint (struct pybp_code): Use int instead of
9132 enum type_code.
9133
9134 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9135 Hafiz Abid Qadeer <abidh@codesourcery.com>
9136
9137 * NEWS: Mention new field "trace-file".
9138 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9139 (tfile_open): Record the trace file's filename in the trace
9140 status.
9141 (tfile_files_info): Mention the name of the trace file.
9142 Check the "filename" field explicitely.
9143 (trace_status_command): Explicitely check "filename" field.
9144 (trace_find_command): Ditto.
9145 (trace_find_pc_command): Ditto.
9146 (trace_find_tracepoint_command): Ditto.
9147 (trace_find_line_command): Ditto.
9148 (trace_find_range_command): Ditto.
9149 (trace_find_outside_command): Ditto.
9150 * tracepoint.h (struct trace_status) <from_file>: Rename it
9151 to "filename" and make it hold the trace file's filename
9152 instead of a boolean.
9153 * remote.c (remote_get_trace_status): Initialize "filename"
9154 field with NULL instead of 0.
9155
9156 2013-02-15 Yao Qi <yao@codesourcery.com>
9157
9158 * remote.c: Fix a typo.
9159
9160 2013-02-14 Pierre Muller <muller@sourceware.org>
9161
9162 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9163
9164 2013-02-14 Pedro Alves <palves@redhat.com>
9165
9166 * utils.c (savestring): Don't #undef it. Move function to
9167 common/common-utils.c.
9168 * common/common-utils.c: Include gdb_string.h.
9169 (savestring): Move here from utils.c.
9170 * common/common-utils.h (savestring): Declare.
9171
9172 2013-02-14 Pedro Alves <palves@redhat.com>
9173
9174 * utils.c (savestring): Rename parameter 'size' to 'len'.
9175
9176 2013-02-14 Pedro Alves <palves@redhat.com>
9177 Yufeng Zhang <yufeng.zhang@arm.com>
9178
9179 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9180 (aarch64_inferior_data, struct aarch64_inferior_data):
9181 Delete.
9182 (struct aarch64_process_info): New.
9183 (aarch64_process_list): New global.
9184 (aarch64_find_process_pid, aarch64_add_process)
9185 (aarch64_process_info_get): New functions.
9186 (aarch64_inferior_data_get): Delete.
9187 (aarch64_process_info_get): New function.
9188 (aarch64_forget_process): New function.
9189 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9190 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9191 aarch64_get_debug_reg_state.
9192 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9193 instead of linux_nat_iterate_watchpoint_lwps.
9194 (aarch64_linux_new_fork): New function.
9195 (aarch64_linux_child_post_startup_inferior): Use
9196 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9197 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9198 (aarch64_linux_remove_hw_breakpoint)
9199 (aarch64_handle_aligned_watchpoint)
9200 (aarch64_handle_unaligned_watchpoint)
9201 (aarch64_linux_insert_watchpoint)
9202 (aarch64_linux_remove_watchpoint)
9203 (aarch64_linux_stopped_data_address): Adjust to pass the current
9204 process id to aarch64_debug_reg_state.
9205 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9206 linux_nat_new_fork hook, and aarch64_forget_process as
9207 linux_nat_forget_process hook; remove the call to
9208 register_inferior_data_with_cleanup.
9209
9210 2013-02-14 Pedro Alves <palves@redhat.com>
9211
9212 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9213 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9214 lval_memory.
9215
9216 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9217 Hafiz Abid Qadeer <abidh@codesourcery.com>
9218
9219 * tracepoint.h (validate_trace_state_variable_name): Declare.
9220 * tracepoint.c (validate_trace_state_variable_name): New.
9221 (trace_variable_command): Parse the trace state variable's name
9222 without using parse_expression. Do several validations.
9223 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9224 trace state variable's name with parse_expression. Validate it.
9225
9226 2013-02-14 Yao Qi <yao@codesourcery.com>
9227
9228 * infcmd.c (breakpoint_proceeded): Remove it.
9229
9230 2013-02-14 Yao Qi <yao@codesourcery.com>
9231
9232 * tracepoint.c (end_actions_pseudocommand): Make it static.
9233 (while_stepping_pseudocommand): Likewise.
9234 * tracepoint.h (end_actions_pseudocommand): Remove the
9235 declaration.
9236 (while_stepping_pseudocommand): Likewise.
9237
9238 2013-02-14 Yao Qi <yao@codesourcery.com>
9239
9240 * cli/cli-decode.c (help_cmd): Remove the declaration of
9241 "cmdlist".
9242 (help_all): Likewise.
9243
9244 2013-02-13 Pedro Alves <palves@redhat.com>
9245
9246 * amd64-linux-nat.c (update_debug_registers_callback):
9247 Update comment.
9248 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9249 iterate_over_lwps.
9250 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9251 i386_debug_reg_state.
9252 (amd64_linux_new_fork): New function.
9253 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9254 linux_nat_new_fork hook, and i386_forget_process as
9255 linux_nat_forget_process hook.
9256 * i386-linux-nat.c (update_debug_registers_callback):
9257 Update comment.
9258 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9259 iterate_over_lwps.
9260 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9261 i386_debug_reg_state.
9262 (i386_linux_new_fork): New function.
9263 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9264 linux_nat_new_fork hook, and i386_forget_process as
9265 linux_nat_forget_process hook.
9266 * i386-nat.c (i386_init_dregs): Delete.
9267 (i386_inferior_data, struct i386_inferior_data):
9268 Delete.
9269 (struct i386_process_info): New.
9270 (i386_process_list): New global.
9271 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9272 New functions.
9273 (i386_inferior_data_get): Delete.
9274 (i386_process_info_get): New function.
9275 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9276 (i386_forget_process): New function.
9277 (i386_cleanup_dregs): Rewrite.
9278 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9279 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9280 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9281 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9282 to i386_debug_reg_state.
9283 (i386_use_watchpoints): Don't register inferior data.
9284 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9285 adjust comment.
9286 (i386_forget_process): Declare.
9287 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9288 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9289 New static globals.
9290 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9291 (add_initial_lwp): New, factored out from ...
9292 (add_lwp): ... this. Don't check the number of lwps before
9293 calling linux_nat_new_thread.
9294 (linux_nat_iterate_watchpoint_lwps): Delete.
9295 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9296 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9297 forks and vforks.
9298 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9299 initial lwp.
9300 (linux_nat_kill, linux_nat_mourn_inferior): Call
9301 linux_nat_forget_process.
9302 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9303 (linux_nat_forget_process): New functions.
9304 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9305 type.
9306 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9307 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9308 types.
9309 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9310 (linux_nat_forget_process): New declarations.
9311
9312 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9313 (amd64fbsd_mourn_inferior): New function.
9314 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9315 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9316
9317 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9318
9319 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9320 Adding _().
9321
9322 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9323
9324 * aarch64-linux-nat.c (debug_reg_change_callback)
9325 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9326 %s and phex().
9327
9328 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9329
9330 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9331 with LONGEST.
9332
9333 2013-02-13 Pedro Alves <palves@redhat.com>
9334 Hafiz Abid Qadeer <abidh@codesourcery.com>
9335
9336 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9337
9338 2013-02-12 Tom Tromey <tromey@redhat.com>
9339
9340 PR symtab/11464:
9341 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9342 NAME return.
9343 (classify_inner_name): Remove 'first_name' argument, add
9344 'context'. Remove unused variable.
9345 (yylex): Explicitly maintain the context type. Exit loop earlier
9346 if NAME result is seen.
9347
9348 2013-02-12 Pedro Alves <palves@redhat.com>
9349
9350 * amd64-darwin-tdep.c: Add (C) after Copyright.
9351 * cli/cli-cmds.h: Ditto.
9352 * cli/cli-decode.c: Ditto.
9353 * cli/cli-decode.h: Ditto.
9354 * cli/cli-dump.c: Ditto.
9355 * cli/cli-dump.h: Ditto.
9356 * cli/cli-interp.c: Ditto.
9357 * cli/cli-logging.c: Ditto.
9358 * cli/cli-script.c: Ditto.
9359 * cli/cli-script.h: Ditto.
9360 * cli/cli-setshow.c: Ditto.
9361 * cli/cli-setshow.h: Ditto.
9362 * cli/cli-utils.c: Ditto.
9363 * cli/cli-utils.h: Ditto.
9364 * config/alpha/nm-osf3.h: Ditto.
9365 * config/djgpp/djconfig.sh: Ditto.
9366 * config/i386/nm-fbsd.h: Ditto.
9367 * config/i386/nm-i386gnu.h: Ditto.
9368 * config/nm-linux.h: Ditto.
9369 * config/nm-nto.h: Ditto.
9370 * config/rs6000/nm-rs6000.h: Ditto.
9371 * config/sparc/nm-sol2.h: Ditto.
9372 * darwin-nat-info.c: Ditto.
9373 * dfp.c: Ditto.
9374 * dfp.h: Ditto.
9375 * gdb-demangle.h: Ditto.
9376 * i386-darwin-nat.c: Ditto.
9377 * i386-darwin-tdep.c: Ditto.
9378 * linux-fork.h: Ditto.
9379 * m32c-tdep.c: Ditto.
9380 * microblaze-linux-tdep.c: Ditto.
9381 * microblaze-rom.c: Ditto.
9382 * microblaze-tdep.c: Ditto.
9383 * microblaze-tdep.h: Ditto.
9384 * mips-linux-tdep.h: Ditto.
9385 * ppc-ravenscar-thread.c: Ditto.
9386 * ppc-ravenscar-thread.h: Ditto.
9387 * prologue-value.c: Ditto.
9388 * prologue-value.h: Ditto.
9389 * ravenscar-thread.c: Ditto.
9390 * ravenscar-thread.h: Ditto.
9391 * sparc-ravenscar-thread.c: Ditto.
9392 * sparc-ravenscar-thread.h: Ditto.
9393 * tilegx-linux-tdep.c: Ditto.
9394 * unwind_stop_reasons.def: Ditto.
9395 * windows-nat.h: Ditto.
9396 * xtensa-linux-tdep.c: Ditto.
9397 * xtensa-xtregs.c: Ditto.
9398 * regformats/regdat.sh: Ditto.
9399 * regformats/regdef.h: Ditto.
9400
9401 2013-02-12 Pedro Alves <palves@redhat.com>
9402
9403 * break-catch-sig.c: Update copyright years.
9404
9405 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9406
9407 Add support for a destructor for ui_out data and use it to
9408 provide a ui_out destructor.
9409 * ui-out.h: Declare the new ui_out destructor.
9410 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9411 * ui-out.c (default_data_destroy): Add a default data destructor
9412 which does nothing.
9413 (default_ui_out_impl): Set the new data_destroy field to
9414 default_data_destroy
9415 (uo_data_destroy): Local function which invokes the data
9416 destructor if present.
9417 (clear_table): Local function which clears the table data of a
9418 ui_out object.
9419 (ui_out_destroy): Public function which frees a ui_out object.
9420 (ui_out_table_end): Use the new clear_table function.
9421 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9422 NULL.
9423 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9424 to NULL.
9425
9426 2013-02-11 Doug Evans <dje@google.com>
9427
9428 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9429 (printf_decfloat): New function. Broken out from ui_printf.
9430 Remove unnecessary code to shift the entire format string down.
9431 (printf_pointer): New function.
9432 (ui_printf): Code to print C strings, wide C strings, decfloats,
9433 and pointers moved to separate functions.
9434
9435 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9436
9437 * valops.c (value_assign): Handling bitfield offset in
9438 `lval_internalvar_component' case.
9439
9440 2013-02-08 Doug Evans <dje@google.com>
9441
9442 * common/format.c (parse_format_string): Fix whitespace.
9443
9444 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9445
9446 * stack.c (return_command): Work around uninitialized variable
9447 warning.
9448
9449 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9450
9451 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9452 number of the registers from 36 to 34.
9453
9454 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9455
9456 * NEWS: Mention new AArch64 native and target support.
9457
9458 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9459
9460 * MAINTAINERS (Write After Approval): Add myself.
9461
9462 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9463 Marcus Shawcroft <marcus.shawcroft@arm.com>
9464 Nigel Stephens <nigel.stephens@arm.com>
9465 Yufeng Zhang <yufeng.zhang@arm.com>
9466
9467 * aarch64-linux-nat.c: New file.
9468 * config/aarch64/linux.mh: New file.
9469 * configure.host: Add AArch64.
9470 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9471
9472 2013-02-07 Doug Evans <dje@google.com>
9473
9474 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9475 disassemble command.
9476
9477 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9478
9479 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9480 set_gdbarch_fetch_tls_load_module_address.
9481
9482 2013-02-06 David S. Miller <davem@davemloft.net>
9483
9484 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9485 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9486 * value.c (struct_return_convention): New function.
9487 (using_struct_return): Implement in terms of struct_return_convention.
9488 * value.h (struct_return_convention): Declare.
9489 * stack.c (return_command): Allow successful overriding of the return
9490 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9491
9492 2013-02-06 Tom Tromey <tromey@redhat.com>
9493
9494 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9495 outside of TRY_CATCH.
9496
9497 2013-02-06 Yao Qi <yao@codesourcery.com>
9498
9499 * mi/mi-interp.c: Include "tracepoint.h".
9500 (mi_tsv_modified): Declare.
9501 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9502 (mi_interpreter_init): Call observer_attach_tsv_modified.
9503 (mi_tsv_modified): New.
9504 (mi_tsv_created, mi_tsv_deleted): Update.
9505 * tracepoint.c (trace_variable_command): Call
9506 observer_notify_tsv_modified if the initial value of tsv is
9507 changed.
9508 (delete_trace_state_variable): Call
9509 observer_notify_tsv_deleted earlier.
9510 (trace_variable_command): Caller update.
9511 (create_tsv_from_upload): Likewise.
9512 * observer.sh: Declare "struct trace_state_variable".
9513
9514 * NEWS: Mention the new MI notification "=tsv-modified".
9515
9516 2013-02-05 Doug Evans <dje@google.com>
9517
9518 * completer.c (location_completer): Fix typo in comment.
9519
9520 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9521
9522 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9523 ADDRESS sorted.
9524
9525 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9526
9527 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9528 Refactor if statement to avoid trailing || operator.
9529
9530 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9531
9532 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9533
9534 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9535
9536 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9537 * configure.host: Add powerpc*-*-freebsd* target.
9538 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9539 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9540 * config/powerpc/fbsd.mh: New file.
9541
9542 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9543 Denys Vlasenko <dvlasenk@redhat.com>
9544 Pedro Alves <palves@redhat.com>
9545
9546 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9547 (struct elf_internal_linux_prpsinfo): Forward declare.
9548 * gdbarch.h, gdbarch.c: Regenerate.
9549 * linux-tdep.c: Include `cli/cli-utils.h'.
9550 (linux_fill_prpsinfo): New function.
9551 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9552 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9553 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9554 depending on gdbarch pointer bitness.
9555 * ppc-linux-tdep.c: Include elf-bfd.h.
9556 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9557 on 32-bit.
9558
9559 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9560 Marcus Shawcroft <marcus.shawcroft@arm.com>
9561 Nigel Stephens <nigel.stephens@arm.com>
9562 Yufeng Zhang <yufeng.zhang@arm.com>
9563
9564 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9565
9566 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9567 Marcus Shawcroft <marcus.shawcroft@arm.com>
9568 Nigel Stephens <nigel.stephens@arm.com>
9569 Yufeng Zhang <yufeng.zhang@arm.com>
9570
9571 * aarch64-newlib-tdep.c: New file.
9572 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9573 aarch64*-*-elf.
9574 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9575 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9576 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9577 * osabi.c (gdb_osabi_names): Add "Newlib".
9578
9579 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9580 Marcus Shawcroft <marcus.shawcroft@arm.com>
9581 Nigel Stephens <nigel.stephens@arm.com>
9582 Yufeng Zhang <yufeng.zhang@arm.com>
9583
9584 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9585 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9586 * aarch64-linux-tdep.c: New file.
9587 * aarch64-linux-tdep.h: New file.
9588 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9589 * configure.tgt: Add aarch64-none-linux-gnu.
9590
9591 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9592 Marcus Shawcroft <marcus.shawcroft@arm.com>
9593 Nigel Stephens <nigel.stephens@arm.com>
9594 Yufeng Zhang <yufeng.zhang@arm.com>
9595
9596 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9597 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9598 (ALLDEPFILES): Add aarch64-tdep.c.
9599 * aarch64-tdep.c: New file.
9600 * aarch64-tdep.h: New file.
9601 * configure.tgt: Add AArch64.
9602 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9603 (aarch64-expedite): New definition.
9604 * features/aarch64-core.xml: New file.
9605 * features/aarch64-fpu.xml: New file.
9606 * features/aarch64-without-fpu.c: New file (generated).
9607 * features/aarch64-without-fpu.xml: New file.
9608 * features/aarch64.c: New file (generated).
9609 * features/aarch64.xml: New file.
9610 * regformats/aarch64-without-fpu.dat: New file (generated).
9611 * regformats/aarch64.dat: New file (generated).
9612
9613 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9614
9615 * contrib/expect-read1.c: New file.
9616 * contrib/expect-read1.sh: New file.
9617
9618 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * dwarf2read.c (file_file_name): New function with code from
9621 file_full_name.
9622 (file_full_name): Move most of the code to file_file_name.
9623 (macro_start_file): Rename variable full_name to file_name and use
9624 file_file_name for it. Add comp_dir parameter to new_macro_table.
9625 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9626 macro_source_file->filename access by macro_source_fullname call.
9627 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9628 caller.
9629 * macrotab.c (struct macro_table): New field comp_dir.
9630 (macro_include): New variables link_fullname and source_fullname.
9631 Replace any macro_source_file->filename access by macro_source_fullname
9632 call.
9633 (macro_lookup_inclusion): Remove the partial filenames checking code.
9634 (check_for_redefinition): New variables source_fullname and
9635 found_key_fullname. Replace any macro_source_file->filename access by
9636 macro_source_fullname call.
9637 (macro_undef): New variables source_fullname and key_fullname. Replace
9638 any macro_source_file->filename access by macro_source_fullname call.
9639 (macro_lookup_definition): New variables retval and source_fullname.
9640 Replace any macro_source_file->filename access by macro_source_fullname
9641 call.
9642 (foreach_macro): New variable key_fullname. Replace any
9643 macro_source_file->filename access by macro_source_fullname call.
9644 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9645 macro_source_file->filename access by macro_source_fullname call.
9646 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9647 (macro_source_fullname): New function.
9648 * macrotab.h (struct macro_source_file): Extent the filename field
9649 comment.
9650 (new_macro_table): New parameter comp_dir, add a comment for it.
9651 (macro_source_fullname): new declaration.
9652
9653 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9654
9655 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9656 this_real_name to outer block. Use it also for
9657 compare_filenames_for_search.
9658 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9659 with dw2_get_real_path for file_matcher, considering also
9660 BASENAMES_MAY_DIFFER.
9661 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9662
9663 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9664
9665 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9666 to the file_matcher parameter. Pass 0 to it.
9667 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9668 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9669 NULL psymtab_to_fullname result.
9670 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9671 an expected filename instead.
9672 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9673 file_matcher parameter. Call also psymtab_to_fullname, after newly
9674 considering BASENAMES_MAY_DIFFER.
9675 * source.c (rewrite_source_path): Remove static.
9676 * source.h (rewrite_source_path): New declaration.
9677 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9678 the expand_symtabs_matching field. Comment it.
9679 * symtab.c (file_matches): New function comment. Add parameter
9680 basenames, implement it.
9681 (search_symbols_file_matches): Add basenames parameter. Update the
9682 file_matches caller.
9683 (search_symbols): Match FILES also against symtab_to_fullname.
9684 Optimize it for BASENAMES_MAY_DIFFER.
9685
9686 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9687
9688 * source.c (print_source_lines_base): Print for TUI also "fullname".
9689 * tui/tui-data.c (init_content_element): Change tui_locator_element
9690 field to full_name.
9691 * tui/tui-data.h (struct tui_locator_element): Likewise.
9692 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9693 tui_update_locator_filename calls to tui_update_locator_fullname.
9694 Replace symtab->filename refererence by symtab_to_fullname call.
9695 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9696 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9697 field to full_name. Replace symtab->filename refererence by
9698 symtab_to_fullname call.
9699 (tui_show_symtab_source): Rename parameter to fullname. Change
9700 tui_locator_element field to full_name.
9701 * tui/tui-stack.c: Include source.h.
9702 (tui_set_locator_filename): Rename the declaration to ...
9703 (tui_set_locator_fullname): ... here. Rename its parameter to
9704 fullname, updates its comment.
9705 (tui_set_locator_info): Rename its parameter to fullname.
9706 (tui_set_locator_filename): Rename the definition to ...
9707 (tui_set_locator_fullname): ... here. Rename its parameter to
9708 fullname, updates its comment. Change tui_locator_element field to
9709 full_name.
9710 (tui_set_locator_info): Rename its parameter to fullname.
9711 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9712 (tui_update_locator_filename): Rename to ...
9713 (tui_update_locator_fullname): ... here. Rename callee to
9714 tui_set_locator_fullname.
9715 (tui_show_frame_info): Replace symtab->filename refererence by
9716 symtab_to_fullname call.
9717 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9718 (tui_update_locator_fullname): ... here.
9719 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9720 tui_update_locator_fullname. Replace symtab->filename refererence by
9721 symtab_to_fullname call.
9722 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9723 Rename the callee to tui_update_locator_fullname.
9724 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9725
9726 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9729 by symtab_to_filename_for_display calls.
9730 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9731 (clear_command): New variable sal_fullname, initialize it. Replace
9732 compare_filenames_for_search by filename_cmp with sal_fullname.
9733 (say_where, update_static_tracepoint): Replace symtab->filename
9734 refererences by symtab_to_filename_for_display calls.
9735 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9736 Likewise.
9737 * dwarf2read.c: Include source.h.
9738 (fixup_go_packaging): Replace symtab->filename refererences by
9739 symtab_to_filename_for_display calls.
9740 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9741 Replace symtab->filename refererences by symtab_to_filename_for_display
9742 calls.
9743 (create_sals_line_offset, convert_linespec_to_sals): New variable
9744 fullname, initialize it, replace symtab->filename reference by the
9745 variable.
9746 * linux-fork.c: Include source.h.
9747 (info_checkpoints_command): Replace symtab->filename refererences by
9748 symtab_to_filename_for_display calls.
9749 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9750 by symtab_to_filename_for_display calls.
9751 * mdebugread.c: Include source.h.
9752 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9753 symtab_to_filename_for_display calls.
9754 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9755 (mi_cmd_file_list_exec_source_files): Likewise.
9756 * printcmd.c: Include source.h.
9757 (build_address_symbolic): Replace symtab->filename refererences by
9758 symtab_to_filename_for_display calls.
9759 * psymtab.c (partial_map_symtabs_matching_filename)
9760 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9761 with psymtab_to_fullname.
9762 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9763 by symtab_to_filename_for_display calls.
9764 (stpy_get_filename): New variable filename, initialize it, use instead
9765 of symtab->filename refererences.
9766 (salpy_str): Make variable filename const char *. Replace
9767 symtab->filename refererences by symtab_to_filename_for_display calls.
9768 * skip.c: Include source.h and filenames.h.
9769 (skip_file_command): Remove const from the symtab variable. Replace
9770 symtab->filename refererences by symtab_to_fullname call.
9771 (function_name_is_marked_for_skip): New variables searched_for_fullname
9772 and fullname. Use them to search also with symtab's fullname.
9773 * source.c (find_source_lines): Replace symtab->filename refererences
9774 by symtab_to_filename_for_display calls.
9775 (print_source_lines_base): New variable filename, use it instead of
9776 symtab->filename. Replace symtab->filename refererences by
9777 symtab_to_filename_for_display calls.
9778 (line_info, forward_search_command): Replace symtab->filename
9779 refererences by symtab_to_filename_for_display calls.
9780 (reverse_search_command): Replace symtab->filename refererences by
9781 symtab_to_filename_for_display calls. New variable filename for it.
9782 * stack.c (frame_info): Likewise.
9783 * symmisc.c: Include source.h.
9784 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9785 (maintenance_info_symtabs): Replace symtab->filename refererences by
9786 symtab_to_filename_for_display calls.
9787 * symtab.c (iterate_over_some_symtabs): Call
9788 compare_filenames_for_search also with symtab_to_fullname.
9789 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9790 symtab->filename refererences by symtab_to_filename_for_display calls.
9791 (find_line_symtab): Replace symtab->filename refererences by
9792 symtab_to_filename_for_display calls.
9793 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9794 (print_symbol_info): Make the last parameter const char *. New
9795 variable s_filename. Use it in the function.
9796 (symtab_symbol_info): Make the last_filename variable const char *.
9797 Replace symtab->filename refererences by symtab_to_filename_for_display
9798 calls.
9799 (rbreak_command): New variable fullname. Use it. Replace
9800 symtab->filename refererence by symtab_to_filename_for_display call.
9801 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9802 (print_one_static_tracepoint_marker): Replace symtab->filename
9803 refererences by symtab_to_filename_for_display calls.
9804 * tui/tui-source.c (tui_set_source_content): New variables filename and
9805 s_filename. Replace symtab->filename refererences by this variable.
9806 Replace other symtab->filename refererences by
9807 symtab_to_filename_for_display calls.
9808
9809 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9810 Jan Kratochvil <jan.kratochvil@redhat.com>
9811
9812 Add a new variable that controls a way in which filenames are
9813 displayed.
9814 * NEWS (set filename-display): New entry.
9815 * source.c (filename_display_basename, filename_display_relative)
9816 (filename_display_absolute, filename_display_kind_names)
9817 (filename_display_string, show_filename_display_string)
9818 (symtab_to_filename_for_display): New.
9819 (_initialize_source): Added initialization of 'filename-display'
9820 variable.
9821 * source.h (symtab_to_filename_for_display): Added declaration.
9822 * stack.c (print_frame): Added new variable and calling of a new
9823 function and condition with this variable. Changed third argument of
9824 calling of a function.
9825
9826 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9827
9828 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9829 Rename field reference filename to fullname.
9830 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9831 fullname. New comment for it.
9832 * tui/tui-source.c (tui_set_source_content): Rename field reference
9833 filename to fullname. Initialize field by symtab_to_fullname now.
9834 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9835 reference filename to fullname. Use symtab_to_fullname during
9836 comparison.
9837
9838 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9839
9840 Code cleanup.
9841 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9842 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9843 filename to fullname. Rename variable this_name to this_fullname.
9844 Lowercase FILENAME_CMP call.
9845 (dw2_find_symbol_file): New comment for the returned string.
9846 (dwarf2_gdb_index_functions): Rename the function to
9847 dw2_expand_symtabs_with_fullname.
9848 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9849 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9850 fullname.
9851 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9852 * symfile.h (struct quick_symbol_functions): Rename field
9853 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9854 parameter filename to fullname. Document returned string meaning for
9855 find_symbol_file.
9856 * symtab.c (find_line_symtab): Rename the called function to
9857 expand_symtabs_with_fullname.
9858
9859 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9860
9861 Code cleanup.
9862 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9863 call of filename_cmp with compare_filenames_for_search.
9864 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9865 is_abs, unify the call of FILENAME_CMP with
9866 compare_filenames_for_search. New gdb_asserts for real_path and name.
9867 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9868 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9869 * symfile.h (struct quick_symbol_functions): Extend the comment for
9870 map_symtabs_matching_filename.
9871 * symtab.c (compare_filenames_for_search): Remove the function comment
9872 relative path requirement. Handle absolute filenames, with a comment.
9873 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9874 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9875 real_path and name. Unify the call of compare_filenames_for_search
9876 with FILENAME_CMP.
9877 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9878
9879 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9880
9881 Code cleanup.
9882 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9883 source_file references by symtab field references. Remove variables
9884 sal and fullname.
9885 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9886 (clear_command, say_where): Replace bp_location field source_file
9887 references by symtab field references.
9888 (bp_location_dtor): Remove the source_file reference.
9889 (update_static_tracepoint): Replace bp_location field source_file
9890 references by symtab field references.
9891 (breakpoint_free_objfile): New function.
9892 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9893 Replace the field source_file by field symtab, extend its comment.
9894 (breakpoint_free_objfile): New declaration.
9895 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9896 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9897 field source_file references by symtab field references.
9898
9899 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 Replace xfullpath calls by gdb_realpath calls.
9902 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9903 function comment.
9904 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9905 Remove it from the iterate_over_some_symtabs call.
9906 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9907 Remove it from the dw2_map_expand_apply calls, remove a block handling
9908 it.
9909 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9910 Remove it from the iterate_over_some_symtabs call.
9911 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9912 Remove it from the partial_map_expand_apply calls, remove a block
9913 handling it. Drop gdb_realpath call and cleanups from the real_path
9914 handling.
9915 * source.c (openp): Drop the comment part about xfullpath. Replace
9916 xfullpath calls by gdb_realpath calls.
9917 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9918 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9919 from method map_symtabs_matching_filename and its comment.
9920 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9921 gdb_realpath call.
9922 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9923 remove it also from the function comment, remove a block handling it.
9924 Drop gdb_realpath call and cleanups from the real_path handling.
9925 (iterate_over_symtabs): Drop variable full_path and its use.
9926 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9927 * utils.c (xfullpath): Remove.
9928 * utils.h (xfullpath): Remove.
9929
9930 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
9931
9932 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9933 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9934 (ALLDEPFILES): Add ppc64-tdep.c.
9935 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9936 ppc64-tdep.o to gdb_target_obs.
9937 * ppc64-tdep.h: New file.
9938 * ppc64-tdep.c: New file.
9939 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9940 ppc-linux-tdep.c to here.
9941 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9942 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9943 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9944 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9945 from ppc-linux-tdep.c to here.
9946 (ppc64_convert_from_func_ptr_addr): Rename from
9947 ppc64_linux_convert_from_func_ptr_addr to
9948 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9949 here.
9950 * rs6000-tdep.c:
9951 (read_insn): Move from ppc-linux-tdep.c to here.
9952 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9953 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9954 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9955 Removed above functions.
9956 (ppc_linux_init_abi): Adjust.
9957
9958 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9959
9960 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9961
9962 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9963
9964 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9965
9966 2013-02-01 Pedro Alves <palves@redhat.com>
9967
9968 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9969 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9970
9971 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9972
9973 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9974 files with no separate debug info.
9975 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9976 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9977 only for files with no separate debug info.
9978
9979 2013-01-31 Tom Tromey <tromey@redhat.com>
9980
9981 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9982 change type.
9983 (struct jit_program_space_data): Rename from jit_inferior_data.
9984 Update comments.
9985 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9986 Change return type. Attach data to program space.
9987 (jit_program_space_data_cleanup): Rename from
9988 jit_inferior_data_cleanup; change argument type.
9989 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9990 change type.
9991 (jit_register_code): Update.
9992 (jit_update_inferior_cache): Remove.
9993 (jit_breakpoint_deleted): Get jit data from the location's program
9994 space.
9995 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9996 'ps_data', change type.
9997 (jit_inferior_init, jit_breakpoint_re_set_internal)
9998 (jit_event_handler): Update.
9999 (free_objfile_data): Get data from objfile's program space.
10000 (_initialize_jit): Update.
10001
10002 2013-01-31 Tom Tromey <tromey@redhat.com>
10003
10004 PR gdb/13987:
10005 * jit.c (struct jit_inferior_data) <cached_code_address,
10006 jit_breakpoint>: New fields.
10007 (jit_breakpoint_re_set_internal): Fix logging. Only create
10008 breakpoint if cached address has changed.
10009 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10010 functions.
10011 (_initialize_jit): Register breakpoint deleted observer.
10012
10013 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10014
10015 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10016 (save_infcall_suspend_state): Ifdef out unused inf.
10017 (restore_infcall_suspend_state): Ifdef out unused inf.
10018 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10019 (jit_frame_sniffer): Remove unused inf_data.
10020
10021 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10022
10023 * c-exp.y (classify_inner_name): Remove unused type.
10024 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10025 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10026 need_escape.
10027 (c_get_string): Remove unused kind.
10028 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10029
10030 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10031
10032 * charset.c (intermediate_encoding): Remove unused i.
10033 * completer.c (signal_completer): Remove unused i.
10034 * continuations.c (discard_my_continuations_1): Remove unused
10035 continuation_ptr.
10036 * corelow.c (core_close): Remove unuseD name.
10037 (get_core_siginfo): Remove unused pid.
10038 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10039 i, cps.
10040 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10041 (loclist_describe_location): Remove unused first.
10042 * event-top.c (command_line_handler): Remove unused got_eof.
10043 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10044 (resize_section_table): Remove unused old_value.
10045 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10046 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10047 * i386-tdep.c (i386_process_record): Remove unused rex.
10048 * infcmd.c (get_return_value): Remove unused uiout.
10049 * jv-lang.c (type_from_class): Remove unused is_array.
10050 * jv-valprint.c (java_val_print): Remove unused i.
10051 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10052 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10053 * m2-typeprint.c (m2_print_type): Remove unused code.
10054 * macroexp.c (get_character_constant): Remove unused body_start.
10055 (macro_stringify): Remove unused result.
10056 * objc-lang.c (find_methods): Remove unused gdbarch.
10057 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10058 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10059 * stack.c (print_frame_args): Remove unused summary.
10060 * thread.c (thread_apply_command): Remove unused p.
10061 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10062 * valops.c (search_struct_method): Remove unused skip.
10063 * valprint.c (generic_val_print): Remove unused byte_order.
10064 * varobj.c (varobj_update): Remove unused changed.
10065 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10066 (alias_command): Remove unused c.
10067 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10068 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10069 format.
10070 (mi_cmd_data_write_memory): Remove unused word_format.
10071 (mi_cmd_data_write_memory_bytes): Remove unused r.
10072 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10073 p_start, p_end.
10074 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10075 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10076 line_width.
10077
10078 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10079
10080 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10081 * symtab.c (iterate_over_symtabs): Remove unused s.
10082 (find_pc_sect_symtab): Remove unused pspAce.
10083 (find_pc_sect_line): Remove unused alt_symtab.
10084 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10085 (completion_list_add_name): Remove unused newsize.
10086
10087 2013-01-31 Tom Tromey <tromey@redhat.com>
10088
10089 PR c++/14998:
10090 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10091 TYPE_CODE_FUNC.
10092
10093 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10094
10095 * target.c (target_read_string): Remove unused origlen.
10096
10097 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10098
10099 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10100 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10101 * ax-general.c (ax_print): Remove unused is_float.
10102 * blockframe.c (block_innermost_frame): Remove unused start, end.
10103 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10104
10105 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10106
10107 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10108 (svr4_read_so_list): Remove unused lmo.
10109 * solib-target.c (solib_target_relocate_section_addresses): Remove
10110 unused flags.
10111
10112 2013-01-30 Tom Tromey <tromey@redhat.com>
10113
10114 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10115
10116 2013-01-30 Tom Tromey <tromey@redhat.com>
10117
10118 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10119 * utils.c (gnu_debuglink_crc32): Remove.
10120 * utils.h (gnu_debuglink_crc32): Don't declare.
10121
10122 2013-01-30 Tom Tromey <tromey@redhat.com>
10123
10124 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10125 (read_structure_type, read_enumeration_type): Remove cast.
10126
10127 2013-01-30 Tom Tromey <tromey@redhat.com>
10128
10129 * dwarf2read.c (read_namespace_type): Remove cast.
10130 (read_typedef): Likewise.
10131
10132 2013-01-29 Tom Tromey <tromey@redhat.com>
10133
10134 * dwarf2read.c (free_dwo_file): Remove assert.
10135
10136 2013-01-29 Tom Tromey <tromey@redhat.com>
10137
10138 * value.c (deprecated_set_value_modifiable): Remove.
10139 * value.h (deprecated_set_value_modifiable): Remove.
10140
10141 2013-01-28 Doug Evans <dje@google.com>
10142
10143 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10144 to addresses from dwo files.
10145
10146 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10147
10148 * valops.c (find_overload_match): Remove unused argument 'lax'.
10149 * value.h: Remove unused argument 'lax' from the declaration of
10150 find_overload_match.
10151 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10152 to find_overload_match.
10153 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10154 argument to find_overload_match.
10155
10156 2013-01-25 Tom Tromey <tromey@redhat.com>
10157
10158 * dwarf2read.c (processing_has_namespace_info): Remove.
10159 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10160 (process_die, read_func_scope, dwarf2_start_symtab)
10161 (new_symbol_full): Update.
10162
10163 2013-01-25 Tom Tromey <tromey@redhat.com>
10164
10165 * cp-namespace.c (cp_set_block_scope): Remove.
10166 * cp-support.h (cp_set_block_scope): Remove.
10167 * dbxread.c: Include block.h.
10168 (cp_set_block_scope): New function.
10169 (process_one_symbol): Update.
10170 * dwarf2read.c (read_func_scope): Use block_set_scope.
10171
10172 2013-01-25 Pedro Alves <palves@redhat.com>
10173
10174 * remote.c (add_current_inferior_and_thread): Tweak comment.
10175
10176 2013-01-25 Tom Tromey <tromey@redhat.com>
10177
10178 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10179 (cp_add_using_directive): Add 'copy_names' argument.
10180 * cp-support.h (cp_add_using_directive): Update.
10181 (struct using_direct) <import_src, import_dest, alias,
10182 declaration>: Now const.
10183 * dwarf2read.c (read_import_statement): Use obconcat.
10184 Don't copy names passed to cp_add_using_directive.
10185
10186 2013-01-25 Tom Tromey <tromey@redhat.com>
10187
10188 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10189
10190 2013-01-25 Pedro Alves <palves@redhat.com>
10191
10192 * remote.c (stop_reply_extract_thread): New.
10193 (add_current_inferior_and_thread): New parameter 'wait_status'.
10194 Handle it.
10195 (remote_start_remote): Pass wait status to
10196 add_current_inferior_and_thread.
10197 (extended_remote_run): Update comment.
10198 (extended_remote_create_inferior_1): Pass wait status to
10199 add_current_inferior_and_thread.
10200
10201 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10202 Ulrich Weigand <uweigand@de.ibm.com>
10203
10204 * valarith.c (value_vector_widen): New function for replicating a
10205 scalar into a vector.
10206 (value_binop): Use value_vector_widen to widen scalar to vector
10207 rather than casting, this better matches gcc C behaviour.
10208 * valops.c (value_casst): Update logic for casting between vector
10209 types, and for casting from scalar to vector, try to match gcc C
10210 behaviour.
10211 * value.h (value_vector_widen): Declare.
10212 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10213 function, handle special case for casting scalar to vector.
10214 (opencl_relop): Use opencl_value_cast.
10215 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10216 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10217 in order to use opencl_value_cast.
10218
10219 2013-01-25 Yao Qi <yao@codesourcery.com>
10220
10221 * event-loop.c: Include "queue.h".
10222 (gdb_event_p): New typedef.
10223 (DECLARE_QUEUE_P): Use.
10224 (DEFINE_QUEUE_P): Use.
10225 (async_queue_event): Remove.
10226 (gdb_event_xfree): New.
10227 (initialize_event_loop): New.
10228 (process_event): Use QUEUE macros.
10229 (event_queue): Remove.
10230 (gdb_wait_for_event): Caller update.
10231 (check_async_event_handlers): Likewise.
10232 (poll_timers): Likewise.
10233 * event-loop.h (initialize_event_loop): Declare.
10234 * event-loop.c (gdb_event_xfree): New.
10235 * top.c (gdb_init): Call initialize_event_loop.
10236
10237 2013-01-25 Yao Qi <yao@codesourcery.com>
10238
10239 * event-loop.c (async_queue_event): Remove one parameter
10240 'position'. Remove code handling 'position' == TAIL.
10241 (gdb_wait_for_event): Caller update.
10242 (check_async_event_handlers): Caller update.
10243 (poll_timers): Caller update.
10244 * event-loop.h (enum queue_position): Remove.
10245
10246 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10247
10248 * MAINTAINERS: Update my email.
10249
10250 2013-01-25 Yao Qi <yao@codesourcery.com>
10251
10252 * main.c (print_gdb_help): Remove "--epoch" from the help
10253 message.
10254
10255 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10256
10257 * symtab.c (skip_prologue_using_sal): Consider a file
10258 change the same as an increased line number
10259
10260 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10261
10262 * MAINTAINERS (Write After Approval): Add myself to the list.
10263
10264 2013-01-24 Tom Tromey <tromey@redhat.com>
10265
10266 * ada-lang.h (ada_decode_symbol): Make return type const.
10267 * ada-lang.c (ada_decode_symbol): Likewise.
10268
10269 2013-01-23 Doug Evans <dje@google.com>
10270
10271 * linespec.c (find_linespec_symbols): Make static.
10272
10273 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10274
10275 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10276 type on float conversion for complex type.
10277
10278 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10279
10280 Add a new class gdb.Architecture which exposes GDB's
10281 internal representation of architecture via GDB Python API.
10282 * Makefile.in: Add entries corresponding to the new file
10283 python/py-arch.c.
10284 * NEWS (Python Scripting): Add entries for the new class
10285 gdb.Architecture and the new method gdb.Frame.architecture.
10286 * python/py-arch.c: Implement gdb.Architecture class.
10287 * python/py-frame.c (frapy_arch): Implement the method
10288 gdb.Frame.architecture().
10289 (frame_object_methods): Add 'architecture' to the method table.
10290 * python/python-internal.h: Add declarations of new utility
10291 functions.
10292 * python/python.c (_initialize_python): Initialize
10293 gdb.Architecture class.
10294
10295 2013-01-23 Doug Evans <dje@google.com>
10296
10297 Work around binutils/15021.
10298 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10299 type_unit_group out of union s. All uses updated.
10300 (read_index_from_section): Watch for index version 8.
10301 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10302 an imported symtab.
10303 (write_psymtabs_to_index): Increment version number to 8.
10304
10305 2013-01-22 Pedro Alves <palves@redhat.com>
10306
10307 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10308 user-visible.
10309
10310 2013-01-22 Pedro Alves <palves@redhat.com>
10311
10312 * annotate.c (annotate_breakpoints_changed): Rename to ...
10313 (annotate_breakpoints_invalid): ... this. Make static.
10314 (breakpoint_changed): Adjust.
10315 (_initialize_annotate): Always install the observers. Install a
10316 "breakpoint_created" observer.
10317 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10318 * breakpoint.c (set_breakpoint_condition)
10319 (breakpoint_set_commands, do_map_commands_command)
10320 (init_raw_breakpoint, clear_command, set_ignore_count)
10321 (enable_breakpoint_disp): No longer call
10322 annotate_breakpoints_changed.
10323
10324 2013-01-22 Pedro Alves <palves@redhat.com>
10325
10326 * annotate.c: Include "inferior.h".
10327 (frames_invalid_emitted)
10328 (breakpoints_invalid_emitted): New globals.
10329 (async_background_execution_p): New function.
10330 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10331 emitting the annotation if it has already been emitted.
10332 (annotate_display_prompt): New function.
10333 * annotate.h (annotate_display_prompt): New declaration.
10334 * event-top.c: Include annotate.h.
10335 (display_gdb_prompt): Call annotate_display_prompt.
10336
10337 2013-01-22 Pedro Alves <palves@redhat.com>
10338
10339 * annotate.c (ignore_count_changed): Delete.
10340 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10341 (annotate_ignore_count_change): Delete.
10342 (annotate_stopped): Don't emit a delayed breakpoints-changed
10343 annotation.
10344 * annotate.h (annotate_ignore_count_change): Delete.
10345 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10346 annotate_ignore_count_change.
10347
10348 2013-01-22 Tom Tromey <tromey@redhat.com>
10349
10350 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10351 require_rvalue for a register location.
10352
10353 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10354
10355 * breakpoint.c (print_one_breakpoint_location): Add MI
10356 field 'thread-groups' when printing a breakpoint.
10357 (output_thread_groups): New function.
10358
10359 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10360
10361 * python/lib/gdb/commands/explore.py
10362 (CompoundExplorer.explore_expr): Correct the name of a method
10363 being invoked.
10364 (ExploreTypeCommand.invoke): Add a missing 'return'.
10365
10366 2013-01-21 Tom Tromey <tromey@redhat.com>
10367
10368 * gdb_obstack.h (obconcat): Move declaration here, from...
10369 * symfile.h (obconcat): ... here.
10370 * gdb_obstack.c: New file.
10371 (obconcat): Move from...
10372 * symfile.c (obconcat): ... here.
10373 * Makefile.in (SFILES): Add gdb_obstack.c.
10374 (COMMON_OBS): Add gdb_obstack.o.
10375
10376 2013-01-21 Tom Tromey <tromey@redhat.com>
10377
10378 * symfile.h (obsavestring): Don't declare.
10379 * symfile.c (obsavestring): Remove.
10380 * ada-exp.y: Use obstack_copy0, not obsavestring.
10381 * ada-lang.c: Use obstack_copy0, not obsavestring.
10382 * coffread.c: Use obstack_copy0, not obsavestring.
10383 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10384 * dbxread.c: Use obstack_copy0, not obsavestring.
10385 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10386 * jit.c: Use obstack_copy0, not obsavestring.
10387 * mdebugread.c: Use obstack_copy0, not obsavestring.
10388 * psymtab.c: Use obstack_copy0, not obsavestring.
10389 * stabsread.c: Use obstack_copy0, not obsavestring.
10390 * xcoffread.c: Use obstack_copy0, not obsavestring.
10391
10392 2013-01-21 Tom Tromey <tromey@redhat.com>
10393
10394 * dwarf2read.c (fixup_go_packaging): Save package name
10395 on objfile obstack.
10396 * gdbtypes.c (init_type): Don't copy name.
10397
10398 2013-01-21 Tom Tromey <tromey@redhat.com>
10399
10400 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10401 const.
10402 (struct attribute) <u.str>: Now const.
10403 (struct fnfieldlist) <name>: Now const.
10404 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10405 (partial_die_parent_scope): Make return type const.
10406 (partial_die_full_name, add_partial_symbol): Update.
10407 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10408 'name' const.
10409 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10410 (read_file_scope, read_func_scope, dwarf2_add_field)
10411 (dwarf2_add_member_fn, read_structure_type)
10412 (process_enumeration_scope, read_array_type, read_module_type)
10413 (read_base_type, read_subrange_type): Update.
10414 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10415 (new_symbol_full, guess_full_die_structure_name): Update.
10416 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10417 (dwarf2_name): Return const type.
10418 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10419 const.
10420
10421 2013-01-21 Tom Tromey <tromey@redhat.com>
10422
10423 * gdbtypes.c (init_type): Make 'name' const.
10424 * gdbtypes.h (init_type): Update.
10425
10426 2013-01-21 Tom Tromey <tromey@redhat.com>
10427
10428 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10429 (start_symtab): Make 'name' and 'dirname' const. Use
10430 set_last_source_file.
10431 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10432 (last_source_file): Define. Now static.
10433 (set_last_source_file, get_last_source_file): New functions.
10434 * buildsym.h (last_source_file): Don't declare.
10435 (start_symtab): Update.
10436 (set_last_source_file, get_last_source_file): Declare.
10437 * coffread.c (complete_symtab): Use set_last_source_file.
10438 (coff_end_symtab): Likewise.
10439 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10440 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10441 set_last_source_file.
10442 (process_one_symbol): Use get_last_source_file.
10443 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10444 (psymtab_to_symtab_1): Use get_last_source_file.
10445 * xcoffread.c (process_linenos): Use get_last_source_file.
10446 (complete_symtab): Use set_last_source_file.
10447 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10448 (scan_xcoff_symtab): Use set_last_source_file.
10449
10450 2013-01-21 Tom Tromey <tromey@redhat.com>
10451
10452 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10453 (symbol_set_names): Remove casts. Handle field const-ness.
10454
10455 2013-01-21 Tom Tromey <tromey@redhat.com>
10456
10457 * dwarf2read.c (new_symbol_full): Remove cast.
10458 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10459 * symtab.h (symbol_set_demangled_name): Update.
10460
10461 2013-01-21 Tom Tromey <tromey@redhat.com>
10462
10463 * main.c (captured_main): Call bfd_init.
10464
10465 2013-01-21 Tom Tromey <tromey@redhat.com>
10466
10467 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10468 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10469 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10470 * NEWS: Update.
10471
10472 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10475
10476 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 Fix gdb.fortran/common-block.exp crash in PIE mode.
10479 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10480 LOC_COMMON_BLOCK.
10481 * f-valprint.c (info_common_command_for_block): Expect
10482 LOC_COMMON_BLOCK in gdb_assert.
10483 * symtab.h (struct general_symbol_info): Update comment for the
10484 common_block member.
10485 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10486 (enum address_class): New member LOC_COMMON_BLOCK.
10487
10488 2013-01-18 David Blaikie <dblaikie@gmail.com>
10489
10490 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10491
10492 2013-01-18 Tom Tromey <tromey@redhat.com>
10493
10494 PR c++/14999:
10495 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10496 Call require_rvalue.
10497
10498 2013-01-18 Yao Qi <yao@codesourcery.com>
10499
10500 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10501 (dbx_read_symtab): New declaration.
10502 (dbx_psymtab_to_symtab): Delete.
10503 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10504 Rename parameter PST to SELF. Exchanged two parameters.
10505 (start_psymtab): Caller update.
10506 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10507 (dwarf2_read_symtab): New declaration.
10508 (dwarf2_psymtab_to_symtab): Delete.
10509 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10510 Rename parameter PST to SELF. Exchanged two parameters.
10511 (create_partial_symtab): Caller update.
10512 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10513 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10514 Rename parameter PST to SELF. Exchanged two parameters.
10515 (parse_partial_symbols, new_psymtab): Caller update.
10516 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10517 two parameters.
10518 * psymtab.c (psymtab_to_symtab): Caller update.
10519 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10520 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10521 Rename parameter PST to SELF. Exchanged two parameters.
10522 (xcoff_start_psymtab): Caller update.
10523
10524 2013-01-18 Yao Qi <yao@codesourcery.com>
10525
10526 * infrun.c (proceed): Rename local variable 'oneproc' to
10527 'force_step'.
10528
10529 2013-01-17 Doug Evans <dje@google.com>
10530
10531 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10532 (dw2_build_type_unit_groups): Delete. All uses updated.
10533
10534 * symtab.h (struct symbol_search): Add comment.
10535
10536 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10537
10538 * symtab.c (compare_filenames_for_search): New comment for
10539 HAS_DRIVE_SPEC.
10540
10541 2013-01-17 Tom Tromey <tromey@redhat.com>
10542
10543 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10544
10545 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10548 initialize it by existing make_cleanup. Call new do_cleanups.
10549
10550 2013-01-17 Tom Tromey <tromey@redhat.com>
10551
10552 * cp-abi.c (cp_abi_completer): New function.
10553 (_initialize_cp_abi): Set completer for "set cp-abi".
10554
10555 2013-01-17 Tom Tromey <tromey@redhat.com>
10556
10557 * mem-break.c: Remove obsolete comment.
10558 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10559
10560 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10561
10562 * jit.c (jit_reader_load_command): Interpret the jit reader name
10563 as an absolute path if it begins with a forward slash.
10564
10565 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10566
10567 PR gdb/14550
10568
10569 * jit.c (finalize_symtab): Ensure that only the global block has a
10570 NULL superblock.
10571
10572 2013-01-17 Pedro Alves <palves@redhat.com>
10573
10574 * acinclude.m4: Include ../config/plugins.m4,
10575 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10576 * Makefile.in (aclocal_m4_deps): Update.
10577 * aclocal.m4: Renegerate.
10578
10579 2013-01-16 Doug Evans <dje@google.com>
10580
10581 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10582
10583 2013-01-16 Pedro Alves <palves@redhat.com>
10584 Tom Tromey <tromey@redhat.com>
10585
10586 PR cli/7221:
10587 * NEWS: Add "catch signal".
10588 * breakpoint.c (base_breakpoint_ops): No longer static.
10589 (bpstat_explains_signal): New function.
10590 (init_catchpoint): No longer static.
10591 (base_breakpoint_explains_signal): New function.
10592 (base_breakpoint_ops): Initialize new field.
10593 * breakpoint.h (enum bpstat_signal_value): New.
10594 (struct breakpoint_ops) <explains_signal>: New field.
10595 (bpstat_explains_signal): Remove macro, declare as function.
10596 (base_breakpoint_ops, init_catchpoint): Declare.
10597 * break-catch-sig.c: New file.
10598 * inferior.h (signal_catch_update): Declare.
10599 * infrun.c (signal_catch): New global.
10600 (handle_syscall_event): Update for change to
10601 bpstat_explains_signal.
10602 (handle_inferior_event): Likewise. Always handle random signals
10603 via bpstats.
10604 (signal_cache_update): Check signal_catch.
10605 (signal_catch_update): New function.
10606 (_initialize_infrun): Initialize signal_catch.
10607 * Makefile.in (SFILES): Add break-catch-sig.c.
10608 (COMMON_OBS): Add break-catch-sig.o.
10609
10610 2013-01-16 Tom Tromey <tromey@redhat.com>
10611
10612 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10613 (print_one_catch_solib, print_one_catch_syscall)
10614 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10615 "catch-type".
10616
10617 2013-01-16 Yao Qi <yao@codesourcery.com>
10618
10619 * printcmd.c (current_display_number): Make it static.
10620
10621 2013-01-16 Yao Qi <yao@codesourcery.com>
10622
10623 * infcmd.c (step_once): Don't check '!single_inst' as it was
10624 checked before.
10625
10626 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10627
10628 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10629
10630 2013-01-14 Tom Tromey <tromey@redhat.com>
10631
10632 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10633 set command.
10634 * command.h (add_setshow_string_noescape_cmd): Update.
10635 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10636 (complete_set_gnutarget): New function.
10637 (_initialize_core): Set the "set gnutarget" completer.
10638
10639 2013-01-14 Tom Tromey <tromey@redhat.com>
10640
10641 PR symtab/14442:
10642 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10643 (c_type_print_modifier): Likewise.
10644 * dwarf2read.c (read_tag_restrict_type): New function.
10645 (read_type_die_1): Handle DW_TAG_restrict_type.
10646 * gdbtypes.c (make_restrict_type): New function.
10647 (recursive_dump_type): Handle TYPE_RESTRICT.
10648 * gdbtypes.h (enum type_flag_values): Renumber.
10649 (enum type_instance_flag_value): Add
10650 TYPE_INSTANCE_FLAG_RESTRICT.
10651 (TYPE_RESTRICT): New macro.
10652 (make_restrict_type): Declare.
10653
10654 2013-01-14 Tom Tromey <tromey@redhat.com>
10655
10656 PR symtab/14931:
10657 * psymtab.c (struct psymtab_state): New.
10658 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10659 functions.
10660 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10661 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10662
10663 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10664 Pedro Alves <palves@redhat.com>
10665
10666 PR remote/14786
10667
10668 * remote.c (remote_threads_info): Make a copy of the reply from
10669 qfThreadInfo and use that instead of rs->buf.
10670
10671 2013-01-14 Yao Qi <yao@codesourcery.com>
10672
10673 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10674 (dbx_psymtab_to_symtab): Likewise.
10675 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10676 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10678
10679 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10682 make_cleanup_restore_current_language. Call set_language. Move
10683 OLD_CHAIN and INNER_CHAIN cleanups.
10684 * utils.c (do_restore_current_language)
10685 (make_cleanup_restore_current_language): New functions.
10686 * utils.h (make_cleanup_restore_current_language): New declaration.
10687
10688 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10689
10690 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10691 non-existing files.
10692
10693 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10694 non-existing files if FILENAME is already absolute.
10695
10696 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10699 fputs_filtered. Append trailing newline.
10700
10701 2013-01-11 Yao Qi <yao@codesourcery.com>
10702 Stan Shebs <stan@codesourcery.com>
10703
10704 * psymtab.c (init_psymbol_list): Clarify the comment.
10705
10706 2013-01-11 Yao Qi <yao@codesourcery.com>
10707
10708 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10709 (update_dprintf_command_list): Assert that 'printf_line' is
10710 non-null. Remove condition check.
10711
10712 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 Code cleanup.
10715 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10716 type const char *.
10717 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10718 const char *.
10719 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10720
10721 2013-01-09 Anthony Green <green@moxielogic.com>
10722
10723 * cp-abi.c (cplus_print_vtable): Don't return value from void
10724 function.
10725 * ada-lang.c (re_set_catch_assert): Ditto.
10726
10727 2013-01-09 Doug Evans <dje@google.com>
10728
10729 * symfile.h (quick_symbol_functions): Delete member
10730 pre_expand_symtabs_matching. All uses removed.
10731 * dwarf2read.c (dw2_lookup_symbol): Implement.
10732 (dw2_do_expand_symtabs_matching): Delete.
10733 (dw2_pre_expand_symtabs_matching): Delete.
10734 (struct dw2_symtab_iterator): New type.
10735 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10736 (dw2_expand_symtabs_for_function): Rewrite.
10737 (dwarf2_gdb_index_functions): Update.
10738 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10739 (psym_functions): Update.
10740
10741 2013-01-09 Tom Tromey <tromey@redhat.com>
10742
10743 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10744 * configure: Rebuild.
10745 * configure.ac: Add somread.o to the build if BFD has SOM
10746 support.
10747 * somread.c: Include som/aout.h, not syms.h.
10748 (som_symtab_read): Use som_external_symbol_dictionary_record.
10749 Unpack records manually.
10750 (_initialize_somread): Declare.
10751
10752 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10753
10754 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10755 Cast return_address to 64bits.
10756
10757 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10758
10759 * printcmd.c: Remove define of function output_command.
10760 * tracepoint.c: Remove extern of function output_command.
10761 * valprint.h: (output_command): New extern.
10762
10763 2013-01-07 Tom Tromey <tromey@redhat.com>
10764
10765 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10766 Remove.
10767 (objc_language_defn): Use c_printchar, c_printstr,
10768 c_emit_char.
10769
10770 2013-01-07 Tom Tromey <tromey@redhat.com>
10771
10772 PR cli/7719:
10773 * NEWS: Update.
10774 * ada-valprint.c (printstr, print_field_values): Remove
10775 "inspect_it" code.
10776 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10777 code.
10778 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10779 code.
10780 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10781 * main.c (captured_main): Remove "epoch" argument.
10782 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10783 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10784 * p-valprint.c (pascal_object_print_value_fields): Remove
10785 "inspect_it" code.
10786 * printcmd.c (print_command_1): Remove 'inspect' argument.
10787 (print_command, call_command): Update.
10788 (inspect_command): Remove.
10789 (_initialize_printcmd): Make "inspect" an alias for "print".
10790 * top.c (epoch_interface): Remove.
10791 * top.h (epoch_interface): Remove.
10792 * valprint.c (user_print_options): Update.
10793 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10794 * valprint.h (struct value_print_options) <inspect_it>: Remove
10795 field.
10796
10797 2013-01-04 Tom Tromey <tromey@redhat.com>
10798
10799 * valprint.h (read_string): Add 'extern'.
10800
10801 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10802
10803 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10804 used to decide whether to define darwin_read_dyld_info or not.
10805
10806 2013-01-03 Pierre Muller <muller@sourceware.org>
10807
10808 * main.c (relocate_gdb_directory): Avoid calling stat function
10809 if DIR is empty.
10810
10811 2013-01-03 Yao Qi <yao@codesourcery.com>
10812
10813 * psymtab.c (fixup_psymbol_section): Update declaration.
10814 (fixup_psymbol_section): Remove code returning value.
10815
10816 2013-01-03 Yao Qi <yao@codesourcery.com>
10817
10818 * symtab.h: Remove some out of date comments.
10819 (enum exception_event_kind): Move it ...
10820 * breakpoint.c: ... here.
10821
10822 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10823
10824 PR gdb/14405
10825 * darwin-nat.c (darwin_read_dyld_info): Only build if
10826 TASK_DYLD_INFO_COUNT is defined.
10827 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10828 TASK_DYLD_INFO_COUNT is defined.
10829
10830 2013-01-02 Tom Tromey <tromey@redhat.com>
10831
10832 * symfile.h (struct ecoff_debug_hack): Remove.
10833 * objfiles.c: Don't include mdebugread.h.
10834
10835 2013-01-02 Tom Tromey <tromey@redhat.com>
10836
10837 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10838 * configure.ac: Check for Mach-O support in BFD. Update
10839 CONFIG_OBS.
10840 * configure: Rebuild.
10841
10842 2013-01-02 Tom Tromey <tromey@redhat.com>
10843
10844 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10845 * configure.ac: Use GDB_AC_CHECK_BFD.
10846 * configure: Rebuild.
10847
10848 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10849
10850 * MAINTAINERS: Update my email.
10851
10852 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10853
10854 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10855
10856 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10857
10858 * rs6000-nat.c (bss_data_overlap): New function.
10859 (vmap_symtab): Use it to adjust the .bss section's offset.
10860
10861 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10862
10863 Update year range in copyright notice of all files.
10864
10865 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
10866
10867 * top.c (print_gdb_version): Update copyright year.
10868
10869 For older changes see ChangeLog-2012.
10870 \f
10871 Local Variables:
10872 mode: change-log
10873 left-margin: 8
10874 fill-column: 74
10875 version-control: never
10876 coding: utf-8
10877 End:
This page took 0.474396 seconds and 4 git commands to generate.