Rework a bit Ada exception catchpoint support (in prep for GDB/MI)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b4a5b78b
JB
12013-10-11 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_decode_exception_location): Delete.
4 (create_ada_exception_catchpoint): Remove arguments "sal",
5 "addr_string" and "ops". Add argument "ex_kind" instead.
6 Adjust implementation accordingly, calling ada_exception_sal
7 to get the entities it no longer gets passed as arguments.
8 Document the function's arguments.
9 (catch_ada_exception_command): Use catch_ada_exception_command_split
10 instead of ada_decode_exception_location, and update call to
11 create_ada_exception_catchpoint.
12 (catch_ada_assert_command_split): Renames
13 ada_decode_assert_location. Remove parameters "addr_string" and
14 "ops", and now returns void. Adjust implementation accordingly.
15 Update the function documentation.
16 (catch_assert_command): Use catch_ada_assert_command_split
17 instead of ada_decode_assert_location. Update call to
18 create_ada_exception_catchpoint.
19
7ad1d32c 202013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
21
22 * utils.h (perror_warning_with_name): Add declaration.
23 * utils.c (perror_warning_with_name): New function.
24 * cli/cli-cmds.c (source_script_with_search): Add call to
25 perror_warning_with_name if from_tty is nul.
26
7ad1d32c 272013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
28
29 * utils.c (perror_string): New function, extracted out of
30 throw_perror_with_name.
31 (throw_perror_with_name): Rework to use perror_string.
32
bcc75809
YQ
332013-10-11 Yao Qi <yao@codesourcery.com>
34
35 * remote.c (discard_pending_stop_replies_in_queue): Update
36 declaration.
37 (struct stop_reply) <rs>: New field.
38 (remove_stop_reply_of_remote_state): New function.
39 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
40 Callers update. Pass remove_stop_reply_of_remote_state to
41 QUEUE_iterate.
42 (remote_parse_stop_reply): Initialize field 'rs'.
43
05feb193
WN
442013-10-10 Will Newton <will.newton@linaro.org>
45
46 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
47 linux_init_abi.
48
0d12017b
JB
492013-10-10 Joel Brobecker <brobecker@adacore.com>
50
51 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
52 serial_baud_show_cmd.
53 (_initialize_cli_cmds): Delete the code creating the
54 "set/show remotebaud" commands.
55 * serial.c (baud_rate): Move here from top.c.
56 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
57 (_initialize_serial): Create "set/show serial baud" commands.
58 Add "set/show remotebaud" command aliases.
59 * top.c (baud_rate): Moved to serial.c.
60 * NEWS: Document the new "set/show serial baud" commands,
61 replacing "set/show remotebaud".
62
578d3588
PA
632013-10-09 Pedro Alves <palves@redhat.com>
64
65 * breakpoint.c (insert_bp_location): Use memory_error_message to
66 build the memory error string.
67 * c-lang.c: Include "gdbcore.h".
68 (c_get_string): Use memory_error to throw error.
69 (target_xfer_memory_error): Delete.
70 (memory_error_message): New, factored out from
71 target_xfer_memory_error.
72 (memory_error): Change parameter type to target_xfer_error.
73 Rewrite.
74 (read_memory): Use memory_error instead of
75 target_xfer_memory_error.
76 * gdbcore.h: Include "target.h".
77 (memory_error): Change parameter type to target_xfer_error.
78 (memory_error_message): Declare function.
79 * target.c (target_read_memory, target_read_stack)
80 (target_write_memory, target_write_raw_memory): Return
81 TARGET_XFER_E_IO on error. Adjust comments.
82 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
83 instead of EIO.
84 * target.h (target_read, target_insert_breakpoint)
85 (target_remove_breakpoint): Adjust comments.
86 * valprint.c (partial_memory_read): Rename parameter, and adjust
87 comment.
88 (val_print_string): Use memory_error_message to build the memory
89 error string.
90
c74e1ccf
JK
912013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
94 result variable. Rename variable fopen_e_ever_failed to
95 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
96
915215be
PA
972013-10-09 Pedro Alves <palves@redhat.com>
98
99 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
100 (monitor_write_memory_longlongs, monitor_write_memory_block):
101 Constify 'myaddr' parameter.
102 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
103 helper.
104 (monitor_xfer_partial): New function.
105 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
106 hook. Install a to_xfer_partial hook.
107
acd13123
TT
1082013-10-09 Tom Tromey <tromey@redhat.com>
109
110 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
111 bfd_get_alt_debug_link_info.
112
40135bb1
JK
1132013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
114
115 New flag OBJF_NOT_FILENAME.
116 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
117 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
118 allocate_objfile.
119 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
120 symbol_file_add_from_bfd.
121 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
122 allocate_objfile.
123 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
124 NULL.
125 * objfiles.h (OBJF_NOT_FILENAME): New.
126
dc294be5
TT
1272013-10-08 Tom Tromey <tromey@redhat.com>
128
129 * Makefile.in (SFILES): Add build-id.c.
130 (HFILES_NO_SRCDIR): Add build-id.h.
131 * build-id.c: New file, largely from elfread.c. Modified
132 most functions.
133 * build-id.h: New file.
134 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
135 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
136 Search for dwz file using build-id.
137 * elfread.c (build_id_bfd_get, build_id_verify)
138 (build_id_to_debug_filename, find_separate_debug_file): Remove.
139
db230ce3
JB
1402013-10-08 Joel Brobecker <brobecker@adacore.com>
141
142 * ada-lang.c (compare_names_with_case): Renamed from
143 compare_names, adding a new parameter "casing" and its handling.
144 New function documentation.
145 (compare_names): New function, implemented using
146 compare_names_with_case.
147
6501c98a
JB
1482013-10-08 Joel Brobecker <brobecker@adacore.com>
149
150 * ada-lang.c (ada_exception_sal): Remove advance declaration.
151
84a1243b
TT
1522013-10-07 Tom Tromey <tromey@redhat.com>
153
154 * objfiles.c (free_objfile_per_bfd_storage): Delete the
155 demangled_names_hash.
156 (free_objfile): Don't delete the demangled_names_hash.
157 * objfiles.h (struct objfile_per_bfd_storage)
158 <demangled_names_hash>: New field.
159 (struct objfile) <demangled_names_hash>: Move to
160 objfile_per_bfd_storage.
161 * symfile.c (reread_symbols): Don't delete the
162 demangled_names_hash.
163 * symtab.c (create_demangled_names_hash): Update.
164 (symbol_set_names): Update.
165
1da77581
TT
1662013-10-07 Tom Tromey <tromey@redhat.com>
167
168 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
169 needs_relocations>: New fields.
170 (gdb_bfd_requires_relocations): New function.
171 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
172 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
173 the BFD needs relocations applied.
174
46ecd527
PA
1752013-10-07 Pedro Alves <palves@redhat.com>
176
177 PR breakpoints/11568
178 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
179 the thread list" instead of "gone".
180
0c557179
SDJ
1812013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
182
183 * NEWS: Mention new convenience variable $_exitsignal.
184 * corelow.c (core_open): Reset exit convenience variables. Set
185 $_exitsignal to the uncaught signal which generated the corefile.
186 * infrun.c (handle_inferior_event): Reset exit convenience
187 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
188 (clear_exit_convenience_vars): New function.
189 * inferior.h (clear_exit_convenience_vars): New prototype.
190
1cc47d81
YQ
1912013-10-06 Yao Qi <yao@codesourcery.com>
192
193 * varobj.h: Add comments to enum varobj_languages.
194
73869dc2
DE
1952013-10-04 Doug Evans <dje@google.com>
196
197 Add support for DWP file format version 2.
198 * NEWS: Mention support for DWP file format version 2.
199 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
200 union of asection, containing_section. New fields virtual_offset
201 and is_virtual. Change type of readin filed from int to char.
202 (dwo_sections, dwo_file): Tweak comments.
203 (dwp_v2_section_ids): New enum.
204 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
205 str_offsets, types.
206 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
207 All uses updated.
208 (virtual_v2_dwo_sections): New struct.
209 (dwp_hash_table): New fields version, nr_columns. Change type of
210 section_pool field to a union.
211 (dwp_file): New field version.
212 (dwarf2_has_info): Check for virtual sections.
213 (get_containing_section): New function.
214 (get_section_bfd_owner, get_section_bfd_section): Call it.
215 (dwarf2_locate_sections): Update.
216 (dwarf2_section_empty_p): Update.
217 (dwarf2_read_section): Handle virtual sections.
218 (locate_dwz_sections): Update.
219 (create_dwp_hash_table): Document and handle V2 format.
220 (locate_v1_virtual_dwo_sections): Renamed from
221 locate_virtual_dwo_sections and update. All callers updated.
222 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
223 Delete arg htab. Rename arg section_index to unit_index.
224 All callers updated.
225 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
226 All uses updated.
227 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
228 (lookup_dwo_unit_in_dwp): Add V2 support.
229 (dwarf2_locate_dwo_sections): Update.
230 (dwarf2_locate_common_dwp_sections): Renamed from
231 dwarf2_locate_dwp_sections and update. All callers updated.
232 (dwarf2_locate_v2_dwp_sections): New function.
233 (open_and_init_dwp_file): Add V2 support.
234 (read_str_index): New locals str_section, str_offsets_section.
235
9a2c3737
PA
2362013-10-04 Pedro Alves <palves@redhat.com>
237
238 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
239 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
240 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
241 describing comments with references to ptid.h.
242 * common/ptid.h: Remove intro description of constructors,
243 accessors and predicates.
244 (struct ptid): Reformat.
245 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
246 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
247 describing comments.
248
f5371440
JB
2492013-10-04 Joel Brobecker <brobecker@adacore.com>
250
251 * aix-thread.c (sync_threadlists): Add missing ')' in call
252 to ptid_build.
253
793e1c06
JB
2542013-10-04 Joel Brobecker <brobecker@adacore.com>
255
256 * procfs.c (procfs_init_inferior): Fix typo causing the build
257 to fail.
258
26f0edc1
JB
2592013-10-04 Joel Brobecker <brobecker@adacore.com>
260
261 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
262
5713b9b5
JB
2632013-10-04 Joel Brobecker <brobecker@adacore.com>
264
265 * mi/mi-main.c (run_one_inferior): Add function description.
266 Make ARG a pointer to an integer whose value determines whether
267 we should "run" or "start" the program.
268 (mi_cmd_exec_run): Add handling of the "--start" option.
269 Reject all other command-line options.
270 * NEWS: Add entry for "-exec-run"'s new "--start" option.
271
f48ff2a7
YQ
2722013-10-04 Yao Qi <yao@codesourcery.com>
273
274 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
275 (struct notif_client) <pending_event>: Moved
276 to struct remote_notif_state.
277 <id>: New field.
278 (struct remote_notif_state) <pending_event>: New field.
279 (notif_event_xfree): Declare.
280 * remote-notif.c (handle_notification): Adjust.
281 (notif_event_xfree): New function.
282 (do_notif_event_xfree): Call notif_event_xfree.
283 (remote_notif_state_xfree): Call notif_event_xfree to free
284 each element in field pending_event.
285 * remote.c (discard_pending_stop_replies): Remove declaration.
286 (discard_pending_stop_replies_in_queue): Declare.
287 (remote_close): Call discard_pending_stop_replies_in_queue
288 instead of discard_pending_stop_replies.
289 (remote_start_remote): Adjust.
290 (stop_reply_xfree): Call notif_event_xfree.
291 (notif_client_stop): Adjust initialization.
292 (remote_notif_remove_all): Rename it to ...
293 (remove_stop_reply_for_inferior): ... this. Update comments.
294 Don't check INF is NULL.
295 (discard_pending_stop_replies): Return early if notif_state is
296 NULL. Adjust. Don't check INF is NULL.
297 (remote_notif_get_pending_events): Adjust.
298 (discard_pending_stop_replies_in_queue): New function.
299 (remote_wait_ns): Likewise.
300
5965e028
YQ
3012013-10-04 Yao Qi <yao@codesourcery.com>
302
303 * remote-notif.c (DECLARE_QUEUE_P): Remove.
304 (notif_queue): Remove.
305 (remote_notif_process): Add one parameter 'notif_queue'.
306 Update comments. Callers update.
307 (remote_async_get_pending_events_token): Remove.
308 (remote_notif_register_async_event_handler): Remove.
309 (remote_notif_unregister_async_event_handler): Remove.
310 (handle_notification): Add parameter 'notif_queue'. Update
311 comments. Callers update.
312 (notif_xfree): Remove.
313 (remote_notif_state_allocate): New function.
314 (remote_notif_state_xfree): New function.
315 (_initialize_notif): Remove code to allocate queue.
316 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
317 (struct remote_notif_state): New.
318 (handle_notification): Update declaration.
319 (remote_notif_process): Likewise.
320 (remote_notif_register_async_event_handler): Remove.
321 (remote_notif_unregister_async_event_handler): Remove.
322 (remote_notif_state_allocate): Declare.
323 (remote_notif_state_xfree): Declare.
324 * remote.c (struct remote_state) <notif_state>: New field.
325 (remote_close): Don't call
326 remote_notif_unregister_async_event_handler. Call
327 remote_notif_state_xfree.
328 (remote_open_1): Don't call
329 remote_notif_register_async_event_handler. Call
330 remote_notif_state_allocate.
331
5e5ac9a5
YQ
3322013-10-04 Yao Qi <yao@codesourcery.com>
333
334 * varobj.c (create_child_with_value): Remove 'const' from the
335 type of parameter 'name'.
336 (varobj_add_child): Likewise.
337 (install_dynamic_child): Remove 'const' from the type of
338 parameter 'name'.
339 (varobj_add_child): Likewise.
340 (create_child_with_value): Likewise. Update comments. Don't
341 duplicate 'name'.
342 (update_dynamic_varobj_children): Duplicate 'name'
343 and pass it to install_dynamic_child.
344
06ab7b19
PM
3452013-10-03 Phil Muldoon <pmuldoon@redhat.com>
346
347 * python/py-value.c (convert_value_from_python): Move PyInt_Check
348 conversion logic to occur after PyLong_Check. Comment on order
349 change significance.
350 * python/py-arch.c (archpy_disassemble): Comment on order of
351 conversion for integers and longs.
352
8ae377e8
PA
3532013-10-03 Pedro Alves <palves@redhat.com>
354
355 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
356 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
357 functions. Always test for PTRACE_O_TRACESYSGOOD even if
358 PTRACE_O_TRACEFORK is not supported.
359 (linux_test_for_tracesysgood): New function.
360 (linux_test_for_tracefork): New function, factored out from
361 linux_check_ptrace_features, and also don't kill child_pid here.
362
b1328b1b
TG
3632013-10-03 Tristan Gingold <gingold@adacore.com>
364
365 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
366 Remove verbose error reporting. Use detected state to
367 thread_set_state call.
368 (i386_darwin_dr_get): Fix return type. Remove verbose error
369 report.
370 Remove trailing spaces.
371
901461f8
PA
3722013-10-02 Pedro Alves <palves@redhat.com>
373
374 * cp-valprint.c (cp_print_value_fields): Adjust calls to
375 val_print_optimized_out.
376 * jv-valprint.c (java_print_value_fields): Likewise.
377 * p-valprint.c (pascal_object_print_value_fields): Likewise.
378 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
379 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
380 new optimized out value.
381 * findvar.c (address_from_register): Likewise.
382 * frame.c (put_frame_register): Tweak error string to say the
383 register was not saved, rather than optimized out.
384 * infcmd.c (default_print_one_register_info): Adjust call to
385 val_print_optimized_out. Use value_of_register instead of
386 get_frame_register_value.
387 * mi/mi-main.c (output_register): Use value_of_register instead of
388 get_frame_register_value.
389 * valprint.c (valprint_check_validity): Likewise.
390 (val_print_optimized_out): New value parameter. If the value is
391 lval_register, print <not saved> instead.
392 (value_check_printable, val_print_scalar_formatted): Adjust calls
393 to val_print_optimized_out.
394 * valprint.h (val_print_optimized_out): New value parameter.
395 * value.c (struct value) <optimized_out>: Extend comment.
396 (error_value_optimized_out): New function.
397 (require_not_optimized_out): Use it. Use a different string for
398 lval_register values.
399 * value.h (error_value_optimized_out): New declaration.
400 * NEWS: Mention <not saved>.
401
042a84d9
JB
4022013-10-02 Joel Brobecker <brobecker@adacore.com>
403
404 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
405 strcmp to compare two symtab filenames.
406
6b9780fb
JB
4072013-10-02 Joel Brobecker <brobecker@adacore.com>
408
409 * symtab.c (search_symbols_equal): Delete.
410 (sort_search_symbols_remove_dups): Replace call to
411 search_symbols_equal by call to compare_search_syms,
412 adjusting as necessary.
413
751e7549
PM
4142013-10-02 Phil Muldoon <pmuldoon@redhat.com>
415
416 PR python/15579
417
418 * python/python.c: Document gdb.execute command in Python help.
419
1efd7661
PM
4202013-10-02 Phil Muldoon <pmuldoon@redhat.com>
421
422 * python/py-frame.c (frame_info_to_frame_object): Use
423 gdbpy_convert_exception. Clean up Python object on failure.
424
562fc849
PM
4252013-10-02 Phil Muldoon <pmuldoon@redhat.com>
426
427 * python/lib/gdb/command/frame_filters.py
428 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
429 (ShowFrameFilterPriority.invoke): Ditto.
430
d7561cbb
KS
4312013-10-01 Keith Seitz <keiths@redhat.com>
432
433 * linespec.c (struct ls_parser): Make 'saved_arg' const.
434 (parse_linespec): Make 'argptr' const.
435 Remove temporary cast of 'argptr' to const char **.
436 (decode_line_full): Pass const pointer to parse_linespec.
437 (decode_line_1): Likewise.
438 (decode_objc): Make local variable 'new_argptr' const.
439 (find_function_symbols): Remove temporary cast to char *
440 to find_imps.
441 * objc-lang.c (find_imps): Make argument 'method' const.
442 Return const.
443 * objc-lang.h (find_imps): Likewise.
444
4452013-10-01 Keith Seitz <keiths@redhat.com>
446
447 * completer.c (skip_quoted_chars): Make all arguments const.
448 Return const.
449 (skip_quoted): Likewise.
450 * completer.h (skip_quoted_chars): Likewise.
451 (skip_quoted): Likewise.
452 * defs.h (skip_quoted): Remove duplicate declaration.
453 * jv-exp.y: Include completer.h.
454 (yylex): Remove unneccessary cast to char * fro skip_quoted.
455 * p-exp.y: Include completer.h.
456
4572013-10-01 Keith Seitz <keiths@redhat.com>
458
459 * c-exp.y (parse_number): Make first argument const.
460 Make a copy of the input to manipulate.
461 (c_parse_escape): Make first argument const.
462 Make local variable 'tokptr' const.
463 (parse_string_or_char): Make first two arguments const.
464 (macro_original_text): Make const.
465 (lex_one_token): Make local variable 'tokstart' const.
466 Likewise for local variables named 'p'.
467 Cast away const for struct stoken (temporary).
468 * c-lang.h (c_parse_escpae): Make first argument const.
469 * cli/cli-cmds.c (echo_command): Make local variable 'p'
470 const.
471 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
472 var_string case.
473 * f-exp.y (parse_number): Make first argument const.
474 (match_string_literal): Make local variable 'tokstart'
475 const.
476 (yylex): Make local variable 'p' const.
477 Cast away const for struct stoken (temporary).
478 * go-exp.y (parse_number): Make first argument const.
479 (parse_string_or_char): Likewise.
480 Make local variable 'tokstart' const.
481 (lex_one_token): Likewise for numerous locals called 'p'.
482 Cast away const for struct stoken (temporary).
483 * jv-exp.y (parse_number): Make first argument const.
484 Make local variables 'tokstart' and 'tokptr' const.
485 Cast away const for call to skip_quoted (temporary).
486 (yylex): Make local variable 'p' const.
487 Cast away const for struct stoken (temporary).
488 * m2-exp.y (parse_number): Make local variable 'p' const.
489 (yylex): Likewise for 'tokstart'.
490 Cast away const for struct stoken (temporary).
491 Make local variable 'p' const.
492 * macroexp.c (get_character_constant): Pass a const string
493 to c_parse_escape.
494 (get_string_literal): Likewise.
495 (macro_expand_next): Make first argument const.
496 Cast away const for init_shared_buffer.
497 * macroexp.h (macro_expand_next): Make first argument const.
498 * p-exp.y (yylex): Make a local copy of 'lexptr'.
499 Pass a const string to c_parse_escape.
500 Make local variables 'p' and 'namestart' const.
501 * parse.c (lexptr): Make const.
502 (prev_lexptr): Likewise.
503 (find_template_name_end): Return const.
504 Make argument const, too.
505 (parse_exp_in_context): Make first argument const.
506 Remove the entire const_hack.
507 (parse_exp_in_context_1): Make first argument const.
508 * parser-defs.h (find_template_name_end): Return const.
509 Make argument const, too.
510 (lexptr): Make const.
511 (prev_lexptr): Likewise.
512 * utils.c (parse_escape): Make second argument const.
513 * utils.h (parse_escape): Likewise.
514
5152013-10-01 Keith Seitz <keiths@redhat.com>
516
517 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
518 is now const.
519 (block_lookup): Make 'raw_name' and 'name' const.
520 * ada-lex.l (processString): Update for struct stoken.ptr.
521 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
522 (operator_stoken): Likewise.
523 (lex_one_token): Remove temporary cast to char * for
524 'yylval.sval.ptr'.
525 * f-exp.y (yylex): Likewise.
526 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
527 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
528 * go-exp.y (lex_one_token): Remove temporary cast to char * for
529 'yylval.sval.ptr'.
530 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
531 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
532 * linespec.c (struct ls_parser): Make 'stream' const.
533 (find_parameter_list_end): Make argument 'input' and local
534 variable 'p' const.
535 (linespec_lexer_lex_string): Make local variables 'start' and
536 'p' const.
537 Use skip_spaces_const instead of skip_spaces.
538 (linespec_lexer_peek_token): Make local variable 'saved_stream'
539 const.
540 (parse_linespec): Temporarily cast 'argptr' to const for
541 'parser->lexer.stream'.
542 * m2-exp.y (yylex): Remove temporary cast to char * for
543 'yylval.sval.ptr'.
544 * objc-lang.c (add_msglist): Make local variable 'p' const.
545 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
546 (exp : STRING): Make 'sp' const.
547 (parse_number): Make argument 'p' const.
548 * parser-defs.h (struct stoken): Make 'ptr' const.
549
193a8eac
DE
5502013-10-01 Doug Evans <dje@google.com>
551
552 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
553
2213e2be
YQ
5542013-10-01 Yao Qi <yao@codesourcery.com>
555
556 * varobj.c (c_value_of_root): Remove declaration.
557 (cplus_value_of_root, java_value_of_root): Likewise.
558 (ada_value_of_root): Likewise.
559 (struct language_specific) <value_of_root>: Remove.
560 (languages): Update initialization.
561 (check_scope): Move earlier.
562 (c_value_of_root): Move earlier and rename to ...
563 (value_of_root_1): ... this.
564 (value_of_root): Caller update.
565 (cplus_value_of_root, java_value_of_root): Remove.
566 (ada_value_of_root): Remove.
567
c573f273
YQ
5682013-10-01 Yao Qi <yao@codesourcery.com>
569
570 * varobj.c (varobj_format_string): Remove "unknown".
571 (languages): Remove the first element.
572 * varobj.h (enum varobj_languages): Remove vlang_c.
573
56250258
YQ
5742013-10-01 Yao Qi <yao@codesourcery.com>
575
576 * varobj.c (struct language_specific) <language>: Remove.
577 (languages): Update the initialization.
578
29f9ebfa
YQ
5792013-10-01 Yao Qi <yao@codesourcery.com>
580
581 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
582 "solib-target.h". Include "windows-tdep.h".
583 (arm_wince_init_abi): Call windows_init_abi. Remove call to
584 set_solib_ops and set_gdbarch_has_dos_based_file_system.
585 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
586 windows-tdep.o to gdb_target_obs.
587
64870a42
YQ
5882013-10-01 Yao Qi <yao@codesourcery.com>
589
590 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
591 "solib-target.h".
592 (amd64_windows_init_abi): Don't call set_solib_ops and
593 set_gdbarch_iterate_over_objfiles_in_search_order. Call
594 windows_init_abi instead.
595 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
596 "solib-target.h".
597 (i386_cygwin_init_abi): Don't call set_solib_ops,
598 set_gdbarch_has_dos_based_file_system and
599 set_gdbarch_iterate_over_objfiles_in_search_order. Call
600 windows_init_abi instead.
601 * windows-tdep.c: Include "solib.h" and "solib-target.h".
602 (windows_init_abi): New function.
603 (windows_iterate_over_objfiles_in_search_order): Make it
604 static.
605 * windows-tdep.h (windows_init_abi): Declare.
606 (windows_iterate_over_objfiles_in_search_order): Remove
607 declaration.
608
0aebdefa
JB
6092013-10-01 Jerome Guitton <guitton@adacore.com>
610
611 Checked in by Joel Brobecker <brobecker@adacore.com>
612 * system-gdbinit/elinos.py (get_elinos_environment): Return an
613 incomplete dictionnary instead of None in case of missing
614 environment variables.
615 (elinos_init): in case of an incomplete environment, best
616 effort to load system libraries instead of abort.
617
1c8e84b0
JB
6182013-10-01 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (ada_has_this_exception_support): Ignore
621 mst_solib_trampoline minimal symbols.
622
61d82a0d
TG
6232013-09-30 Tristan Gingold <gingold@adacore.com>
624
625 * i386-darwin-nat.c (darwin_complete_target): Install methods for
626 hardware watchpoint.
627 (i386_darwin_dr_set): Support 32 and 64 bit states.
628 (i386_darwin_dr_get): Likewise.
629 (i386_darwin_dr_set_control): Make static.
630 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
631 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
632
dfd4cc63
LM
6332013-09-30 Luis Machado <lgustavo@codesourcery.com>
634
635 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
636 Replace TIDGET with ptid_get_lwp.
637 Replace GET_LWP with ptid_get_lwp.
638 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
639 Replace BUILD_THREAD with ptid_build.
640 Replace BUILD_LWP with ptid_build.
641 Replace PIDGET with ptid_get_pid.
642 Replace TIDGET with ptid_get_lwp.
643 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
644 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
645 Replace TIDGET with ptid_get_lwp.
646 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
647 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
648 Replace TIDGET with ptid_get_lwp.
649 Replace GET_LWP with ptid_get_lwp.
650 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
651 * auxv.c: Likewise.
652 * breakpoint.c: Likewise.
653 * common/ptid.c (ptid_is_pid): Condense check for
654 null_ptid and minus_one_ptid.
655 (ptid_lwp_p): New function.
656 (ptid_tid_p): New function.
657 * common/ptid.h: Update comments for accessors.
658 (ptid_lwp_p): New prototype.
659 (ptid_tid_p): New prototype.
660 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
661 * gcore.c: Replace PIDGET with ptid_get_pid.
662 * gdbthread.h: Likewise.
663 * gnu-nat.c: Likewise.
664 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
665 Replace TIDGET with ptid_get_lwp.
666 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
667 * hppanbsd-nat.c: Likewise.
668 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
669 Replace TIDGET with ptid_get_lwp.
670 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
671 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
672 * infcmd.c: Likewise.
673 * inferior.h: Likewise.
674 * inflow.c: Likewise.
675 * infrun.c: Likewise.
676 * linux-fork.c: Likewise.
677 * linux-nat.c: Replace PIDGET with ptid_get_pid.
678 Replace GET_PID with ptid_get_pid.
679 Replace is_lwp with ptid_lwp_p.
680 Replace GET_LWP with ptid_get_lwp.
681 Replace BUILD_LWP with ptid_build.
682
5b4e221c
MF
6832013-09-28 Mike Frysinger <vapier@gentoo.org>
684
685 * common/linux-btrace.c: Move sys/syscall.h out of the
686 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
687 Also check for SYS_perf_event_open before attempting to buid.
688
57d63ce2
DE
6892013-09-27 Doug Evans <dje@google.com>
690
19ac8c2e
DE
691 * dwarf2read.c (dwarf2_section_info): Add comment.
692 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
693 All uses updated.
694 (dwarf2_section_empty_p): Rename arg from "info" to "section".
695 (dwarf2_read_section): Delete unused local "header". Add section
696 name to error message.
697 (create_dwo_in_dwp): Tweak comment.
698 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
699
a32a8923
DE
700 * dwarf2read.c (die_reader_specs): Tweak comment.
701 (get_section_bfd_owner, get_section_bfd_section): New functions.
702 (get_section_name, get_section_file_name): New functions.
703 (get_section_id, get_section_flags): New functions.
704 (*): Use new functions to access section fields.
705
57d63ce2
DE
706 * dwarf2read.c (struct dwo_file): Add/tweak comments.
707 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
708 arg "htab". All callers updated.
709 (create_debug_types_hash_table): Remove redundant copy of
710 abbrev_section.
711 (create_dwo_in_dwp): Tweak comments.
712 (read_str_index): Tweak comment. Record dwarf form name in static
713 local.
714
3736004f
PA
7152013-09-27 Pedro Alves <palves@redhat.com>
716
717 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
718 (remote_filename_p): Add comment.
719 * remote.c (remote_filename_p): Adjust to use
720 REMOTE_SYSROOT_PREFIX.
721 * solib.c (solib_find): When deciding whether we need to add a
722 directory separator, check whether the sysroot is "remote:"
723 instead of checking whether the patch has a drive spec. Add
724 comments.
725
5b5596ff
PA
7262013-09-27 Pedro Alves <palves@redhat.com>
727
728 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
729 Delete fields.
730 (remote_parse_stop_reply): Adjust, setting event->ws.kind
731 directly.
732
b5eef7aa
JK
7332013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
734
735 Fix set debug frame output.
736 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
737 SENTINEL_FRAME entry lower to match enum frame_type order.
738
5b856f36
PM
7392013-09-26 Pierre Muller <muller@sourceware.org>
740
741 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
742 AMD64_R15_REGNUM when a register index is expected.
743 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
744 Substitute in array.
745 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
746 (amd64_push_arguments): Substitute in integer_regnum array.
747
ade7ed9e
DE
7482013-09-25 Doug Evans <dje@google.com>
749
d3e81981
DE
750 * objfiles.c (allocate_objfile): Move comment to better place.
751
8fb8eb5c
DE
752 New option "set debug symfile on".
753 * NEWS: Mention "set debug symfile".
754 * Makefile.in (SFILES): Add symfile-debug.c.
755 (COMMON_OBS): Add symfile-debug.o.
756 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
757 objfile's symbol functions.
758 * objfiles.h (objfile_set_sym_fns): Declare.
759 * symfile-debug.c: New file.
760 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
761 objfile's symbol functions.
762 (reread_symbols): Ditto.
763
c256e171
DE
764 * symfile.h (struct sym_fns): Delete member "sym_flavour".
765 All uses updated.
766 (add_symtab_fns): Update prototype.
767 * symfile.c (sym_fns_ptr): Delete. Replace with ...
768 (registered_sym_fns): ... this.
769 (symtab_fns): Update.
770 (add_symtab_fns): New arg "flavour". All callers updated.
771 (find_sym_fns): Rewrite to use new sym_fns registry.
772
f56ce883
DE
773 * symfile.h (struct sym_fns): Add "objfile" argument to
774 sym_read_linetable. All uses updated.
775
20c681d1
DE
776 * symtab.c (domain_name, search_domain_name): New functions.
777 * symtab.h (domain_name, search_domain_name): Declare.
778
ade7ed9e
DE
779 * symfile.h (struct quick_symbol_functions): Reorg arg list of
780 map_matching_symbols so objfile is first. All uses updated.
781 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
782 * psymtab.c (map_matching_symbols_psymtab): Update signature.
783
7d760051
UW
7842013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
785
786 PR shlibs/8882
787 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
788 link map entries.
789
020f7036
DE
7902013-09-24 Doug Evans <dje@google.com>
791
792 * objfiles.c (free_objfile): Move comment.
793
598402f0
JB
7942013-09-24 Joel Brobecker <brobecker@adacore.com>
795
796 * ada-exp.y (string_to_operator): Delete.
797 (dummy_string_to_ada_operator): Delete.
798
bf4d6c1c
JB
7992013-09-24 Joel Brobecker <brobecker@adacore.com>
800
801 Revert:
802 * i386-tdep.h (enum amd64_reg_class): New, moved here from
803 amd64-tdep.c.
804 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
805 call_dummy_integer_regs, and classify.
806 * amd64-tdep.h (amd64_classify): Add declaration.
807 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
808 (amd64_reg_class): Delete, moved to i386-tdep.h.
809 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
810 Replace call to amd64_classify by call to tdep->classify.
811 (amd64_push_arguments): Get the list of registers to use for
812 passing integer parameters from the gdbarch tdep structure,
813 rather than using a hardcoded one. Replace calls to amd64_classify
814 by calls to tdep->classify.
815 (amd64_push_dummy_call): Get the register number used for
816 the "hidden" argument from tdep->call_dummy_integer_regs.
817 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
818 and tdep->call_dummy_integer_regs. Set tdep->classify.
819
849e9755
JB
8202013-09-24 Joel Brobecker <brobecker@adacore.com>
821
822 Revert:
823 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
824 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
825 where tdep->memory_args_by_pointer is non-zero.
826
c1459fd6
JB
8272013-09-24 Joel Brobecker <brobecker@adacore.com>
828
829 Revert:
830 * i386-tdep.h (struct gdbarch_tdep): Add new field
831 integer_param_regs_saved_in_caller_frame.
832 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
833 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
834
20c2e3e0
JB
8352013-09-24 Joel Brobecker <brobecker@adacore.com>
836
874440b8 837 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
838 (amd64_windows_classify): Delete.
839 (amd64_windows_passed_by_integer_register)
840 (amd64_windows_passed_by_xmm_register)
841 (amd64_windows_passed_by_pointer)
842 (amd64_windows_adjust_args_passed_by_pointer)
843 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
844 (amd64_windows_push_dummy_call): New functions.
845 (amd64_windows_init_abi): Remove setting of
846 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
847 tdep->classify, tdep->memory_args_by_pointer and
848 tdep->integer_param_regs_saved_in_caller_frame.
849 Add call to set_gdbarch_push_dummy_call.
850
82bf32bc
JK
8512013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
852
853 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
854 objfile->original_name.
855
24ba069a
JK
8562013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
857
858 Pass down original filename for objfile.
859 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
860 * elfread.c (elf_symfile_read): Likewise.
861 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
862 longer set ORIGINAL_NAME.
863 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
864 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
865 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
866 symbol_file_add_from_bfd call.
867 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
868 (macho_check_dsym): Add parameter filenamep. Change function comment.
869 Set *filenamep.
870 (macho_symfile_read): New variable dsym_filename. Update
871 macho_check_dsym call. Use it for symbol_file_add_separate.
872 * objfiles.c (allocate_objfile): Add parameter name. New comment for
873 it. Use it for objfile->original_name.
874 (objfile_name): Return OBFD's filename, if available.
875 * objfiles.h (allocate_objfile): Add new parameter name.
876 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
877 * symfile-mem.c (symbol_file_add_from_memory): Update
878 symbol_file_add_from_bfd call.
879 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
880 comment for it.
881 (symbol_file_add_with_addrs): New parameter name, add function comment
882 for it. Remove variable name. Update allocate_objfile call.
883 (symbol_file_add_separate): New parameter name, add function comment
884 for it. Update symbol_file_add_with_addrs call.
885 (symbol_file_add_from_bfd): New parameter name. Update
886 symbol_file_add_with_addrs call.
887 (symbol_file_add): Update symbol_file_add_from_bfd call.
888 (reread_symbols): New variable original_name. Save
889 objfile->original_name by it.
890 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
891 second parameter.
892
4262abfb
JK
8932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
894
895 Code cleanup: Add objfile_name accessor function.
896 * ada-lang.c (is_known_support_routine): Use objfile_name.
897 * auto-load.c (source_gdb_script_for_objfile)
898 (auto_load_objfile_script): Likewise.
899 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
900 * dbxread.c (dbx_symfile_read): Likewise.
901 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
902 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
903 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
904 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
905 (lookup_dwp_signatured_type, lookup_dwo_unit)
906 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
907 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
908 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
909 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
910 (dwarf2_record_block_ranges, read_common_block, read_typedef)
911 (read_subrange_type, load_partial_dies, read_partial_die)
912 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
913 (die_containing_type, build_error_marker_type, lookup_die_type)
914 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
915 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
916 (get_DW_AT_signature_type, write_psymtabs_to_index)
917 (save_gdb_index_command): Likewise.
918 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
919 Likewise.
920 * expprint.c (dump_subexp_body_standard): Likewise.
921 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
922 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
923 original_name.
924 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
925 obj_name, use objfile_name for it, use the variable.
926 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
927 Use objfile_name.
928 * machoread.c (macho_symtab_read, macho_check_dsym)
929 (macho_symfile_relocate): Likewise.
930 * maint.c (maintenance_translate_address): Likewise.
931 * minidebug.c (find_separate_debug_file_in_section): Likewise.
932 * minsyms.c (install_minimal_symbols): Likewise.
933 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
934 original_name.
935 (filter_overlapping_sections): Use objfile_name.
936 (objfile_name): New function.
937 * objfiles.h (struct objfile): Rename field name to original_name.
938 (objfile_name): New prototype.
939 * printcmd.c (sym_info, address_info): Use objfile_name.
940 * probe.c (parse_probes, collect_probes, compare_probes)
941 (info_probes_for_ops): Likewise.
942 * progspace.c (clone_program_space): Likewise.
943 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
944 (maintenance_info_psymtabs): Likewise.
945 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
946 (source_section_scripts): Likewise.
947 * python/py-objfile.c (objfpy_get_filename): Likewise.
948 * python/py-progspace.c (pspy_get_filename): Likewise.
949 * solib-aix.c (solib_aix_get_toc_value): Likewise.
950 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
951 * solib.c (solib_read_symbols): Likewise.
952 * stabsread.c (scan_file_globals): Likewise.
953 * stap-probe.c (handle_stap_probe): Likewise.
954 * symfile.c (symbol_file_clear, separate_debug_file_exists)
955 (find_separate_debug_file_by_debuglink): Likewise.
956 (reread_symbols): Likewise. Use the objfile field name renamed to
957 original_name.
958 (allocate_symtab): Use objfile_name.
959 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
960 (dump_objfile, dump_msymbols, dump_symtab_1)
961 (maintenance_print_msymbols, maintenance_print_objfiles)
962 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
963 * target.c (target_translate_tls_address, target_info): Likewise.
964 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
965 objfile_name.
966
4721dc18
JK
9672013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 Code cleanup.
970 * probe.c (parse_probes): Rename variable objfile_name to
971 objfile_namestr.
972
a61d6db8
JK
9732013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
974
975 Remove solib-sunos.c.
976 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
977 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
978 * objfiles.c (rt_common_objfile): Remove.
979 (free_objfile): Remove rt_common_objfile comparison.
980 * objfiles.h (rt_common_objfile): Remove.
981 * solib-sunos.c: Remove.
982 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
983
2659903b
JK
9842013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
985
986 Remove a.out NetBSD and OpenBSD hosts.
987 * NEWS (Removed native configurations): New.
988 * config/arm/nbsdaout.mh: Remove.
989 * config/i386/nbsdaout.mh: Remove.
990 * config/i386/obsdaout.mh: Remove.
991 * config/m68k/nbsdaout.mh: Remove.
992 * config/sparc/nbsdaout.mh: Remove.
993 * config/vax/nbsdaout.mh: Remove.
994 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
995 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
996 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
997 error.
998 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
999 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1000 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1001
f60e2d5c
TT
10022013-09-23 Tom Tromey <tromey@redhat.com>
1003
1004 * linespec.c (struct minsym_and_objfile): Remove.
1005 (minsym_and_objfile_d): Remove.
1006 (struct linespec, struct collect_info, linespec_parse_basic)
1007 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1008 (compare_msymbols, find_method, find_function_symbols)
1009 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1010 (add_minsym, search_minsyms_for_name): Update.
1011
d3eaaf66
AB
10122013-09-23 Andrew Burgess <aburgess@broadcom.com>
1013
1014 * regcache.c: Add include of valprint.h.
1015 (dump_endian_bytes): Delete.
1016 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1017
2cc762b5
AB
10182013-09-23 Andrew Burgess <aburgess@broadcom.com>
1019
1020 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1021
96181529
PA
10222013-09-19 Pedro Alves <palves@redhat.com>
1023
1024 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1025 breakpoints.
1026
9b3f3ee6
TS
10272013-09-19 Pedro Alves <palves@redhat.com>
1028 Thomas Schwinge <thomas@codesourcery.com>
1029 Yue Lu <hacklu.newborn@gmail.com>
1030
1031 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1032 Take a gdb_byte pointer instead of a char pointer.
1033
1034 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1035 gnu_xfer_partial helper.
1036 (gnu_xfer_partial): New function.
1037 (gnu_target): Don't install a deprecated_xfer_memory hook.
1038 Install a to_xfer_partial hook.
1039
69150c3d
JK
10402013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1041
1042 Constification.
1043 * main.c (captured_main): Replace catch_command_errors by
1044 catch_command_errors_const. Twice.
1045 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1046 (symbol_file_add): Make name parameter const.
1047 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1048 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1049 variable name. Change their usage accordingly.
1050 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1051 const.
1052 (symbol_file_add_main): Make args parameter const.
1053
086850b2
UW
10542013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1055 Ulrich Weigand <uweigand@de.ibm.com>
1056
1057 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1058 of c_value member.
1059 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1060
ca08a94c 10612013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1062 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1063
1064 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1065 (gnu_create_inferior)
1066 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1067 (set_sig_thread_cmd): Use the lwpid field of ptids to
1068 store/extract thread ids instead of the tid field.
1069 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1070
e4c6a2c4
AB
10712013-09-18 Andrew Burgess <aburgess@broadcom.com>
1072
1073 * infcmd.c (default_print_one_register_info): Add detection of
1074 optimized out values.
1075 (default_print_registers_info): Switch to using
1076 get_frame_register_value.
1077
58c48e72
MM
10782013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1079
1080 * infrun.c (handle_inferior_event): Check if we know the
1081 function start address before setting a resume breakpoint.
1082
c8d37639
PA
10832013-09-18 Pedro Alves <palves@redhat.com>
1084
1085 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1086 minus_one_ptid instead of looking at the ptid's tid field and
1087 comparing that to -1.
1088
71926e28
AB
10892013-09-18 Andrew Burgess <aburgess@broadcom.com>
1090
1091 * main.h (get_gdb_program_name): Remove extra whitespace.
1092
c88a1531
AB
10932013-09-18 Andrew Burgess <aburgess@broadcom.com>
1094
1095 * main.h (get_gdb_program_name): Add declaration.
1096 * main.c (get_gdb_program_name): Add definition.
1097
4390d890
DE
10982013-09-17 Doug Evans <dje@google.com>
1099
1100 * dwarf2read.c: Move definitions of complaint functions to after
1101 forward declarations of local functions.
1102
49fa26b0
PA
11032013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1104 Pedro Alves <palves@redhat.com>
1105
1106 PR gdb/11568
1107 * breakpoint.c (remove_threaded_breakpoints): New function.
1108 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1109 as thread_exit observer.
1110
08d72866
PA
11112013-09-17 Pedro Alves <palves@redhat.com>
1112
1113 PR gdb/15911
1114 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1115 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1116 * corelow.c (core_open):
1117 * frame.h (print_stack_frame, print_frame_info): New
1118 'set_current_sal' parameter.
1119 * infcmd.c (finish_command, kill_command): Adjust call to
1120 print_stack_frame.
1121 * inferior.c (inferior_command): Likewise.
1122 * infrun.c (normal_stop): Likewise.
1123 * linux-fork.c (linux_fork_context): Likewise.
1124 * record-full.c (record_full_goto_entry, record_full_restore):
1125 Likewise.
1126 * remote-mips.c (common_open): Likewise.
1127 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1128 Use it.
1129 (print_frame_info): New 'set_current_sal' parameter. Set the last
1130 displayed sal depending on the new paremeter instead of looking at
1131 print_what.
1132 (backtrace_command_1, select_and_print_frame, frame_command)
1133 (current_frame_command, up_command, down_command): Adjust call to
1134 print_stack_frame.
1135 * thread.c (print_thread_info, restore_selected_frame)
1136 (do_captured_thread_select): Adjust call to print_stack_frame.
1137 * tracepoint.c (tfind_1): Likewise.
1138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1139 (mi_cmd_stack_info_frame): Likewise.
1140 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1141 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1142
6bc305f5
SDJ
11432013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1144
1145 * value.c (isvoid_internal_fn): Replace "parameter" with
1146 "argument".
1147
0a7cfe2c
SS
11482013-09-16 Stan Shebs <stan@codesourcery.com>
1149
1150 * README: Update references to writing code for GDB.
1151 * configure.ac (build_warnings): Remove obsolete comment.
1152 * configure: Regenerate.
1153 * gdbarch.sh: Remove references to gdbint.texinfo.
1154 * gdbarch.h: Regenerate.
1155 * gdbtypes.c (objfile_type): Remove comments referencing internals
1156 manual and D10V.
1157
a280dbd1
SDJ
11582013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1159
1160 * NEWS: Mention new convenience function $_isvoid.
1161 * value.c (isvoid_internal_fn): New function.
1162 (_initialize_values): Add new convenience function $_isvoid.
1163
04a83fee
PM
11642013-09-16 Pierre Muller <muller@sourceware.org>
1165
1166 * arm-linux-tdep.c: Add "elf/common.h" header.
1167 Remove AT_HWCAP macro definintion as it is provided in
1168 added include file.
1169 * s390-tdep.c: Remove system header <elf.h>
1170 Add "elf/common.h" header for AT_HWCAP definition.
1171 (s390_core_read_description): Use correct CORE_ADDR
1172 for hwcap local variable used as third parameter
1173 of function target_auxv_search.
1174
88505fac
PM
11752013-09-14 Pierre Muller <muller@sourceware.org>
1176 Tom Tromey <tromey@redhat.com>
1177 Pedro Alves <palves@redhat.com>
1178
1179 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1180 mode if operating system doesn't know O_CLOEXEC.
1181
d3846e71
JK
11822013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1183
1184 Code cleanup.
1185 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1186 inner block.
1187
4ac33720
UW
11882013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1189
1190 * NEWS: Mention TDB support.
1191 * features/s390-tdb.xml: New file.
1192 * features/s390-te-linux64.xml: New file.
1193 * features/s390x-te-linux64.xml: New file.
1194 * features/Makefile (WHICH): Add new tdescs above.
1195 (s390-te-linux64-expedite): Set.
1196 (s390x-te-linux64-expedite): Set.
1197 * features/s390-te-linux64.c: New file (generated).
1198 * features/s390x-te-linux64.c: New file (generated).
1199 * regformats/s390-te-linux64.dat: New file (generated).
1200 * regformats/s390x-te-linux64.dat: New file (generated).
1201 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1202 (HWCAP_S390_TE): Likewise.
1203 (S390_TDB_DWORD0_REGNUM): Likewise.
1204 (S390_TDB_DWORD0_REGNUM): Likewise.
1205 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1206 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1207 (S390_TDB_ATIA_REGNUM): Likewise.
1208 (S390_TDB_R0_REGNUM): Likewise.
1209 (S390_TDB_R1_REGNUM): Likewise.
1210 (S390_TDB_R2_REGNUM): Likewise.
1211 (S390_TDB_R3_REGNUM): Likewise.
1212 (S390_TDB_R4_REGNUM): Likewise.
1213 (S390_TDB_R5_REGNUM): Likewise.
1214 (S390_TDB_R6_REGNUM): Likewise.
1215 (S390_TDB_R7_REGNUM): Likewise.
1216 (S390_TDB_R8_REGNUM): Likewise.
1217 (S390_TDB_R9_REGNUM): Likewise.
1218 (S390_TDB_R10_REGNUM): Likewise.
1219 (S390_TDB_R11_REGNUM): Likewise.
1220 (S390_TDB_R12_REGNUM): Likewise.
1221 (S390_TDB_R13_REGNUM): Likewise.
1222 (S390_TDB_R14_REGNUM): Likewise.
1223 (S390_TDB_R15_REGNUM): Likewise.
1224 (S390_NUM_REGS): Increase.
1225 (S390_IS_TDBREGSET_REGNUM): New macro.
1226 (s390_regmap_tdb): Declare.
1227 (s390_sizeof_tdbregset): Define.
1228 (tdesc_s390_te_linux64): Declare.
1229 (tdesc_s390x_te_linux64): Likewise.
1230 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1231 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1232 (s390_regmap_tdb): New regmap.
1233 (s390_supply_tdb_regset): New function.
1234 (s390_tdb_regset): New regset.
1235 (s390_linux64v2_regset_sections): Add TDB regset to list.
1236 (s390x_linux64v2_regset_sections): Likewise.
1237 (s390_regset_from_core_section): Recognize TDB core note section.
1238 (s390_core_read_description): If HWCAP indicates TE support,
1239 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1240 (s390_gdbarch_init): Handle TDB regset.
1241 (_initialize_s390_tdep): Initialize new tdescs.
1242 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1243 (have_regset_tdb): New variable.
1244 (s390_native_supply): Support register invalidation.
1245 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1246 (check_regset): Treat ENODATA as "regset exists".
1247 (s390_linux_fetch_inferior_registers): Add TDB.
1248 (s390_read_description): Check for TDB existence and select
1249 appropriate tdesc.
1250 * gdbserver/Makefile.in (clean): Add removal of new makefile
1251 targets.
1252 (s390-te-linux64.c): New makefile target.
1253 (s390x-te-linux64.c): Likewise.
1254 * gdbserver/configure.srv (srv_regobj): Append new objects
1255 s390-te-linux64.o and s390x-te-linux64.o.
1256 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1257 s390x-te-linux64.xml, and s390-tdb.xml.
1258 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1259 declaration.
1260 (tdesc_s390_te_linux64): Likewise.
1261 (init_registers_s390x_te_linux64): Likewise.
1262 (tdesc_s390x_te_linux64): Likewise.
1263 (s390_check_regset): Treat ENODATA as "regset exists".
1264 (s390_arch_setup): Add TDB regset support.
1265 (initialize_low_arch): Initialize registers for new tdescs.
1266
2ccd1468
UW
12672013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268
1269 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1270 (S390_IS_FPREGSET_REGNUM): New macro.
1271 * s390-tdep.c (s390_dwarf_regmap): Make const.
1272 (regnum_is_gpr_full): New function for replacing repeated code.
1273 (s390_pseudo_register_name): Use it.
1274 (s390_pseudo_register_type): Likewise.
1275 (s390_pseudo_register_read): Likewise.
1276 (s390_pseudo_register_write): Likewise.
1277 (s390_unwind_pseudo_register): Likewise.
1278 (s390_regmap_gregset): New format for regmap.
1279 (s390x_regmap_gregset): Likewise.
1280 (s390_regmap_fpregset): Likewise.
1281 (s390_regmap_upper): Likewise.
1282 (s390_regmap_last_break): Likewise.
1283 (s390_regmap_system_call): Likewise.
1284 (s390_supply_regset): Adjust to new regmap format.
1285 (s390_collect_regset): Likewise.
1286 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1287 (s390_native_collect): Likewise.
1288 (supply_gregset): Likewise.
1289 (fill_gregset): Likewise.
1290 (supply_fpregset): Likewise.
1291 (fill_fpregset): Likewise.
1292 (fetch_regset): Likewise.
1293 (store_regset): Likewise.
1294 (s390_linux_fetch_inferior_registers): Likewise.
1295 (s390_linux_fetch_inferior_registers): Likewise.
1296
1aa4cd77
AP
12972013-09-12 Andrew Pinski <apinski@cavium.com>
1298
1299 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1300
d91fab15
UW
13012013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1302
1303 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1304
5a5d8ead
AB
13052013-09-09 Andrew Burgess <aburgess@broadcom.com>
1306
1307 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1308
1385f66c
PA
13092013-09-06 Pedro Alves <palves@redhat.com>
1310
1311 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1312 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1313 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1314 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1315 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1316 gdb_stdlog.
1317
146ec4db
PA
13182013-09-06 Pedro Alves <palves@redhat.com>
1319
1320 * remote-sim.c (dump_mem): Constify buf parameter.
1321 gdbsim_xfer_inferior_memory): Rename to ...
1322 (gdbsim_xfer_memory): ... this. Adjust interface as
1323 target_xfer_partial helper.
1324 (gdbsim_xfer_partial): New function.
1325 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1326 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1327
fcde0081
PA
13282013-09-06 Pedro Alves <palves@redhat.com>
1329
1330 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1331 host_address_to_string, and send debug output to gdb_stdlog.
1332
749c8b38
RW
13332013-09-06 Ricard Wanderlof <ricardw@axis.com>
1334
1335 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1336 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1337 gdb_target_obs for cris target.
1338 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1339 (cris_gdbarch_init): Move calls to
1340 set_gdbarch_fetch_tls_load_module_address and
1341 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1342 Add call to gdbarch_init_osabi.
1343 * cris-linux-tdep.c: New file.
1344 * cris-tdep.h: New file.
1345
43df09d9
AB
13462013-09-06 Andrew Burgess <aburgess@broadcom.com>
1347
1348 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1349 to deprecated_init_ui_hook.
1350
4d09c5b4
AB
13512013-09-06 Andrew Burgess <aburgess@broadcom.com>
1352
1353 * cli/cli-interp.c (_initialize_cli_interp): Add a
1354 command_loop_proc to interp_procs.
1355 * event-top.c (cli_command_loop): Change signature to match
1356 interp_command_loop_ftype.
1357 * event-top.h (cli_command_loop): Same.
1358 * interps.c (interp_new): Require every interpreter to have a
1359 command_loop_proc.
1360 (current_interp_command_loop): Just call the command_loop_proc on
1361 the current interpreter.
1362 * tui/tui-interp.c (_initialize_tui_interp): Add a
1363 command_loop_proc to interp_procs.
1364
8eb3d7b6
RW
13652013-09-06 Ricard Wanderlof <ricardw@axis.com>
1366
1367 * cris-tdep.c (cris_gdbarch_init): Add call to
1368 get_gdbarch_fetch_tls_load_module_address.
1369
18b3c2f5
RW
13702013-09-06 Ricard Wanderlof <ricardw@axis.com>
1371
1372 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1373 (cris_elf_gregset_t): Rename from elf_gregset_t.
1374 (crisv32_elf_gregset_t): Adjust.
1375 (cris_supply_gregset, fetch_core_registers): Adjust.
1376
dc8636ef
RW
13772013-09-06 Ricard Wanderlof <ricardw@axis.com>
1378
1379 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1380
257e6d53
AB
13812013-09-05 Andrew Burgess <aburgess@broadcom.com>
1382
1581d8a7 1383 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1384 references in comments.
1581d8a7 1385 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1386 deprecated_command_loop_hook.
1387 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1388 setup.
1581d8a7 1389 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1390
7c33b57c
PA
13912013-09-05 Pedro Alves <palves@redhat.com>
1392
1393 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1394 local is now int instead of ULONGEST. Print it with %d
1395 instead of paddress.
1396
9f8edbd5
TG
13972013-09-05 Tristan Gingold <gingold@adacore.com>
1398
1399 * MAINTAINERS: Remove avr maintainership.
1400
d5b495b4
PA
14012013-09-05 Pedro Alves <palves@redhat.com>
1402
1403 * findvar.c (value_of_register): Rework in terms of
1404 value_of_register_lazy.
1405
40b91786
MB
14062013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1407
1408 * symfile.c (add_symbol_file_command): Remove trailing
1409 whitespaces and blank line after comment.
1410
6eed1678
PA
14112013-09-05 Pedro Alves <palves@redhat.com>
1412
1413 * tui/tui-regs.c (tui_register_format): Don't look at the
1414 register's name here. Return string representing register
1415 value instead of storing it in the data element.
1416 (tui_get_register): Compare register string representations
1417 instead of register value states and contents.
1418
8eb6bda2
PA
14192013-09-05 Pedro Alves <palves@redhat.com>
1420
1421 PR tui/15933
1422 * tui/tui-regs.c (tui_show_registers): Show registers of the
1423 selected frame, not the current frame.
1424
48b1f08c
RW
14252013-09-05 Ricard Wanderlof <ricardw@axis.com>
1426
1427 * MAINTAINERS (Write After Approval): Add myself to the list.
1428
89e63ee4
DE
14292013-09-04 Doug Evans <dje@google.com>
1430
1431 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1432 (queue_and_load_dwo_tu): New function.
1433 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1434 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1435 Make dependent_cu optional.
1436 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1437 and an older .gdb_index is in use, queue and load all its TUs too.
1438
492c0ab7
JK
14392013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1440
1441 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1442 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1443 variable search_flags.
1444 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1445 (OPF_RETURN_REALPATH): ... here.
1446 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1447 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1448 call. Twice.
1449 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1450 openp call.
1451 * solib.c (solib_find): Likewise. Four times.
1452 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1453 in the function comment and for the realpath_fptr variable.
1454 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1455 (find_and_open_source): Likewise. Twice.
1456 * symfile.c (symfile_bfd_open): Likewise, also twice.
1457
23a44de8
DE
14582013-09-04 Doug Evans <dje@google.com>
1459
1460 * progspace.c (save_current_space_and_thread): Remove unnecessary
1461 call to save_current_inferior.
1462
47061676
AB
14632013-09-04 Andrew Burgess <aburgess@broadcom.com>
1464
1465 * sh64-tdep.c (sh64_do_register): Return after printing message
1466 about unavailable register contents.
1467
41dc8db8
MB
14682013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1469 Pedro Alves <palves@redhat.com>
1470
1471 * symfile.c (add_symbol_file_command): Error out on unknown
1472 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1473 options and collapse into single conditional branch.
1474
07107ca6
LM
14752013-09-03 Luis Machado <lgustavo@codesourcery.com>
1476
a7ea61cf 1477 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1478 detach_fork.
1479 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1480 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1481 * inferior.h (detach_fork): Remove.
1482 * infrun.c (detach_fork): Adjust comment and make it
1483 static.
1484 (follow_fork): Pass detach_fork parameter to
1485 target_follow_fork.
1486 * linux-nat.c (linux_child_follow_fork): New parameter
1487 detach_fork.
1488 * target.c (target_follow_fork): New parameter detach_fork.
1489 Pass detach_fork as parameter and print its value.
1490 * target.h (struct target_ops) <to_follow_fork>: New int
1491 parameter.
1492 (target_follow_fork): New parameter detach_fork.
1493
3bec2768
JB
14942013-09-03 Joel Brobecker <brobecker@adacore.com>
1495
1496 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1497 Replace sec->bfd by sec->the_bfd_section->owner.
1498
c01cbb3d
YQ
14992013-09-03 Yao Qi <yao@codesourcery.com>
1500
1501 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1502 from linux_has_shared_address_space.
1503 (linux_has_shared_address_space): Call linux_is_uclinux.
1504 * linux-tdep.h (linux_is_uclinux): Declare.
1505 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1506 linux_is_uclinux.
1507
7b00db47
YQ
15082013-09-03 Yao Qi <yao@codesourcery.com>
1509
1510 * config/djgpp/fnchange.lst: Remove entry of
1511 i386-interix-nat.c and i386-interix-tdep.c.
1512 * configure.ac: Remove '*-*-interix*'.
1513 * configure: Re-generated.
1514 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1515 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1516 obsolete comments.
1517 * osabi.c (gdb_osabi_names): Remove "Interix".
1518
0f9741f2
YQ
15192013-09-03 Yao Qi <yao@codesourcery.com>
1520
1521 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1522
1e038f67
MM
15232013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1524
1525 * record.h (record_print_flag) <record_print_src_line,
1526 record_print_insn_range>: Rename into ...
1527 (record_print_flag) <record_print_src_line,
1528 record_print_insn_range>: ... this. Update all users.
1529
9e52adf9
PM
15302013-09-02 Pierre Muller <muller@sourceware.org>
1531
1532 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1533 error code.
1534
a2388568
PM
15352013-09-02 Pierre Muller <muller@sourceware.org>
1536
1537 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1538 by use of plongest function.
1539
9058cc3a
TG
15402013-09-02 Tristan Gingold <gingold@adacore.com>
1541
1542 * NEWS: Add entry mentioning support for native Windows x64
1543 SEH data.
1544
1545 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1546 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1547 (struct amd64_windows_frame_cache): New struct.
1548 (amd64_windows_w2gdb_regnum): New global.
1549 (pc_in_range, amd64_windows_frame_decode_epilogue)
1550 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1551 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1552 (amd64_windows_frame_this_id): New functions.
1553 (amd64_windows_frame_unwind): New static global.
1554 (amd64_windows_skip_prologue): New function.
1555 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1556 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1557 with amd64_windows_skip_prologue.
1558
3161820b 15592013-08-30 Joel Brobecker <brobecker@adacore.com>
1560
1561 GDB 7.6.1 released.
1562
02457c76
PA
15632013-08-30 Pedro Alves <palves@redhat.com>
1564
1565 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1566 SRC_AND_LOC.
1567
e0162910
PA
15682013-08-30 Pedro Alves <palves@redhat.com>
1569
1570 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1571 warning text.
1572
6391ce51
PA
15732013-08-30 Pedro Alves <palves@redhat.com>
1574
1575 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1576 Adjust arguments to print_stack_frame.
1577
d1da0587
PA
15782013-08-30 Pedro Alves <palves@redhat.com>
1579
1580 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1581
adfd8245
PA
15822013-08-30 Pedro Alves <palves@redhat.com>
1583
1584 * frame.h (show_and_print_stack_frame): Delete declaration.
1585
96d9056e
PM
15862013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1587
1588 PR python/15461
1589
1590 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1591 (archpy_name): Check for valid architecture.
1592 (archpy_disassemble): Ditto.
1593
11cb8762
JB
15942013-08-29 Joel Brobecker <brobecker@adacore.com>
1595
1596 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1597 instead of "long long" in call to ptrace64.
1598
1af12a7d
AB
15992013-08-29 Andrew Burgess <aburgess@broadcom.com>
1600
1601 * mi/mi-interp.c (mi_command_loop): Change signature to match
1602 interp_command_loop_ftype.
1603 (mi1_command_loop): Remove.
1604 (mi2_command_loop): Remove.
1605 (mi3_command_loop): Remove.
1606 (mi_interpreter_resume): Remove setting of
1607 deprecated_command_loop_hook.
1608 (_initialize_mi_interp): Set mi_command_loop as the command loop
1609 callback.
1610
acc900c2
SA
16112013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1612
1613 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1614 value_type.
1615
548b762d
SA
16162013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1617
1618 * value.c (allocate_value_contents): Make static.
1619 * value.h (allocate_value_contents): Remove prototype.
1620
08039c9e
SA
16212013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1622
1623 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1624 of assembling value via allocate_value_lazy and attribute setter.
1625 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1626 assembling value via allocate_value_lazy and attribute setter.
1627 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1628 assembling value via allocate_value_lazy and attribute setter.
1629
314c7de9
SA
16302013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1631
1632 * value.c (value_from_contents_and_address): Replace allocate_value and
1633 memcpy with value_from_contents.
1634
8f28f522
PM
16352013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1636
1637 * python/py-framefilter.c (py_print_frame): Remove usage of
1638 PyString_AsString. Use python_string_to_host_string instead.
1639 Refactor function to work with a string as a new allocation
1640 instead of a pointer.
1641 (py_print_frame): Ditto.
1642 * python/lib/gdb/frames.py (return_list): Cain iterators together
1643 instead of adding them as a list.
1644 (_sort_list): Call return_list, and remove duplicate code.
1645 (execute_frame_filters): Convert iterator to a list with list().
1646 * python/lib/gdb/command/frame_filters.py
1647 (SetFrameFilterPriority._set_filter_priority): Convert priority
1648 attribute to an integer.
1649 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1650 wrapper function __next__.
1651 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1652 define as "str".
1653
8ee002df
PM
16542013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1655
1656 PR python/15752
8ee002df
PM
1657 * python/py-framefilter.c (apply_frame_filter): Check
1658 gdb_python_initialized. Exit if the Python frame-filter code
1659 cannot be initialized.
1660
af4c453a
PM
16612013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1662
1663 PR cli/15842
af4c453a
PM
1664 * top.c (print_gdb_version): Remove erroneous newline after help
1665 text.
1666
bf8793bb
YQ
16672013-08-29 Yao Qi <yao@codesourcery.com>
1668
1669 * varobj.c (install_dynamic_child): Remove trailing space.
1670 Add one blank line after variable declaration.
1671
1f0c4988
JK
16722013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 PR gdb/15415
1675 * corefile.c (get_exec_file): Use exec_filename.
1676 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1677 * exec.c (exec_close): Free EXEC_FILENAME.
1678 (exec_file_attach): New variable canonical_pathname. Use
1679 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1680 EXEC_FILENAME.
1681 * exec.h (exec_filename): New.
1682 * inferior.c (print_inferior, inferior_command): Use
1683 PSPACE_EXEC_FILENAME.
1684 * mi/mi-main.c (print_one_inferior): Likewise.
1685 * progspace.c (clone_program_space, print_program_space): Likewise.
1686 * progspace.h (struct program_space): New field pspace_exec_filename.
1687 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1688 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1689
59ee9f94
WN
16902013-08-28 Will Newton <will.newton@linaro.org>
1691
1692 * common/linux-ptrace.c: Include stdint.h unconditionally.
1693
c8a2a419
JK
16942013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 Code cleanup.
1697 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1698
ffa4ac95
YQ
16992013-08-28 Yao Qi <yao@codesourcery.com>
1700 Pedro Alves <palves@redhat.com>
1701
1702 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1703 instead of stdio_fileopen.
1704 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1705 .Call stderr_fileopen instead of stdio_fileopen.
1706 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1707 [__MINGW32__] (stderr_file_fputs): New function.
1708 (stderr_fileopen): New function.
1709 * ui-file.h (stderr_fileopen): Declare.
1710
69d751e3
DE
17112013-08-27 Doug Evans <dje@google.com>
1712
1713 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1714 (struct dwarf2_per_cu_data): Ditto.
1715 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1716 (process_imported_unit_die): Ditto.
1717 (follow_die_sig_1): Simplify assert.
1718
44f38867
PA
17192013-08-27 Pedro Alves <palves@redhat.com>
1720
1721 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1722 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1723 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1724 windows_xfer_memory directly.
1725 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1726
d28d46b5
PA
17272013-08-27 Pedro Alves <palves@redhat.com>
1728
1729 * darwin-nat.c (darwin_xfer_memory): Delete.
1730 (_initialize_darwin_inferior): Don't install a
1731 deprecated_xfer_memory method.
1732
6211c335
YQ
17332013-08-27 Pedro Alves <pedro@codesourcery.com>
1734 Yao Qi <yao@codesourcery.com>
1735
1736 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1737 (parse_no_frames_option): Remove.
1738 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1739 (mi_cmd_stack_list_args): Adjust.
1740 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1741 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1742 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1743 Caller update.
1744 (list_args_or_locals): New parameter 'skip_unavailable'.
1745 Handle it.
1746 * valprint.c (scalar_type_p): Rename to ...
1747 (val_print_scalar_type_p): ... this. Make extern.
1748 (val_print, value_check_printable): Adjust.
1749 * valprint.h (val_print_scalar_type_p): Declare.
1750 * value.c (value_entirely_unavailable): New function.
1751 * value.h (value_entirely_unavailable): Declare.
1752
1753 * NEWS: Mention the new option "--skip-unavailable" to MI
1754 commands '-stack-list-locals', '-stack-list-arguments' and
1755 '-stack-list-variables'.
1756
242f1fd7
YQ
17572013-08-27 Yao Qi <yao@codesourcery.com>
1758
1759 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1760 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1761 options.
1762 * mi/mi-getopt.c (mi_getopt): Remove.
1763 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1764 'error_on_unknown'.
1765 (mi_getopt): Call mi_getopt_1.
1766 (mi_getopt_silent): New.
1767 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1768
260b681b
DE
17692013-08-26 Doug Evans <dje@google.com>
1770
779bd270
DE
1771 PR symtab/15885
1772 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1773 .gdb_index is in use.
1774 * symfile.c (reread_symbols): Reset objfile->sf.
1775
52e260a3
DE
1776 * NEWS: Document "mt print objfiles" now takes optional regexp.
1777 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1778 regexp of objfiles to print.
1779 (_initialize_symmisc): Update doc string for "mt print objfiles".
1780
260b681b
DE
1781 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1782 missing debug info checks.
1783
a85c52f2
UW
17842013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1785 Ulrich Weigand <uweigand@de.ibm.com>
1786
1787 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1788 line tables generated by XLC compiled binaries.
1789
4f00dda3
DE
17902013-08-23 Doug Evans <dje@google.com>
1791
db68bbae
DE
1792 * symmisc.c (dump_symtab): Delete prototype.
1793 (dump_msymbols, dump_objfile): Ditto.
1794 (maintenance_info_symtabs): Mark as dont_repeat.
1795 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1796
4f00dda3
DE
1797 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1798 debugging printf to better location.
1799
23d577b0
PA
18002013-08-23 Pedro Alves <palves@redhat.com>
1801
1802 * target.c (target_read_live_memory): Change type of 'ret' local
1803 to LONGEST.
1804
00d84524
PA
18052013-08-23 Pedro Alves <palves@redhat.com>
1806
1807 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1808 (remote_read_bytes): Change return type to LONGEST, and adjust to
1809 return a target_xfer_error on error.
1810 (remote_xfer_memory): Delete.
1811 (remote_flash_write): Change type of 'ret' local to LONGEST.
1812 (remote_xfer_partial, remote_xfer_partial): Adjust.
1813 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1814
1ed3ee94
PM
18152013-08-23 Pierre Muller <muller@sourceware.org>
1816
1817 ARI fix: Push # directives to start of line.
1818 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1819
9eaabc75
MW
18202013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1821
1822 PR gdb/15501
1823 * breakpoint.c (enable_command, disable_command): Iterate over
1824 all specified breakpoint locations.
1825
101158d9
LM
18262013-08-22 Luis Machado <lgustavo@codesourcery.com>
1827
1828 * common/linux-ptrace.c (linux_fork_to_function): Push #
1829 directives to the start of the line.
1830 (linux_check_ptrace_features): Fix warning message to use
1831 the "_" markup.
1832
96d7229d
LM
18332013-08-22 Luis Machado <lgustavo@codesourcery.com>
1834
1835 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1836 nat/linux-waitpid.h.
1837 (linux-waitpid.o): New object file rule.
1838 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1839 (current_ptrace_options): Moved from linux-nat.c.
1840 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1841 parameters.
1842 (linux_fork_to_function): New function.
1843 (linux_grandchild_function): Likewise.
1844 (linux_child_function): Likewise.
1845 (linux_check_ptrace_features): New function, heavily
1846 based on linux-nat.c:linux_test_for_tracefork.
1847 (linux_enable_event_reporting): New function.
1848 (ptrace_supports_feature): Likewise.
1849 (linux_supports_tracefork): Likewise.
1850 (linux_supports_traceclone): Likewise.
1851 (linux_supports_tracevforkdone): Likewise.
1852 (linux_supports_tracesysgood): Likewise.
1853 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1854 gdbserver/linux-low.c.
1855 (linux_enable_event_reporting): New declaration.
1856 (linux_supports_tracefork): Likewise.
1857 (linux_supports_traceclone): Likewise.
1858 (linux_supports_tracevforkdone): Likewise.
1859 (linux_supports_tracesysgood): Likewise.
1860 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1861 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1862 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1863 * config/arm/linux.mh (NATDEPFILES): Likewise.
1864 * config/i386/linux.mh (NATDEPFILES): Likewise.
1865 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1866 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1867 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1868 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1869 * config/mips/linux.mh (NATDEPFILES): Likewise.
1870 * config/pa/linux.mh (NATDEPFILES): Likewise..
1871 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1872 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1873 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1874 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1875 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1876 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1877 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1878 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1879 ptrace's 4th argument's types.
1880 Check the type of PTRACE_TYPE_ARG4.
1881 * configure: Regenerate.
1882 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1883 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1884 (linux_supports_tracefork_flag): Remove.
1885 (linux_supports_tracesysgood_flag): Likewise.
1886 (linux_supports_tracevforkdone_flag): Likewise.
1887 (current_ptrace_options): Moved to
1888 common/linux-ptrace.c.
1889 (linux_tracefork_child): Remove.
1890 (my_waitpid): Remove.
1891 (linux_test_for_tracefork): Renamed to
1892 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1893 (linux_test_for_tracesysgood): Remove.
1894 (linux_supports_tracesysgood): Remove.
1895 (linux_supports_tracefork): Remove.
1896 (linux_supports_tracevforkdone): Remove.
1897 (linux_enable_tracesysgood): Remove.
1898 (linux_enable_event_reporting): Remove.
1899 (linux_init_ptrace): New function.
1900 (linux_child_post_attach): Call linux_init_ptrace.
1901 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1902 (linux_child_follow_fork): Call linux_supports_tracefork
1903 and linux_supports_tracevforkdone.
1904 (linux_child_insert_fork_catchpoint): Call
1905 linux_supports_tracefork.
1906 (linux_child_insert_vfork_catchpoint): Likewise.
1907 (linux_child_set_syscall_catchpoint): Call
1908 linux_supports_tracesysgood.
1909 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1910 * nat/linux-nat.h: New file.
1911 * nat/linux-waitpid.c: New file.
1912 * nat/linux-waitpid.h: New file.
1913
9f948660
SDJ
19142013-08-22 Samuel Bronson <naesten@gmail.com>
1915
1916 ARM Linux support for `catch syscall'.
1917 * syscalls/arm-linux.py: New file.
1918 * syscalls/arm-linux.xml: Likewise.
1919 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1920 (arm_linux_init_abi): Register the new function and syscall xml file.
1921 * data-directory/Makefile.in: Install the new syscall xml file.
1922 * NEWS: Brag about this.
1923
6be7b56e
PA
19242013-08-22 Pedro Alves <palves@redhat.com>
1925
1926 PR gdb/15871
1927 * corefile.c (target_xfer_memory_error): New function.
1928 (memory_error): Defer EIO to target_memory_error.
1929 (read_memory): Use target_xfer_partial, and handle finer-grained
1930 target xfer errors.
1931 * target.c (target_xfer_error_to_string): New function.
1932 (memory_xfer_partial_1): If memory is known to be
1933 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1934 (target_xfer_partial): Make extern.
1935 * target.h (enum target_xfer_error): New enum.
1936 (target_xfer_error_to_string): Declare function.
1937 (target_xfer_partial): Declare function.
1938 (struct target_ops) <xfer_partial>: Adjust describing comment.
1939
bcbec14e
AM
19402013-08-22 Alan Modra <amodra@gmail.com>
1941
1942 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1943 * configure.tgt: Likewise as targets.
1944
fc474241
DE
19452013-08-20 Doug Evans <dje@google.com>
1946
1947 * buildsym.c (subfile_stack): Move here from buildsym.h.
1948 (pending_macros): Ditto.
1949 (get_macro_table): New function.
1950 (buildsym_init): Initialize subfile_stack.
1951 * coffread.c (type_vector,type_vector_length): Moved here from
1952 buildsym.h.
1953 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1954 (coff_symtab_read): Use it.
1955 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1956 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1957 with call to get_macro_table.
1958 * stabsread.c (type_vector,type_vector_length): Moved here from
1959 buildsym.h.
1960 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1961 * buildsym.h (get_macro_table): Declare.
1962
bec71544
TT
19632013-08-20 Tom Tromey <tromey@redhat.com>
1964
1965 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1966 Update.
1967 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1968
0002ad5f
DE
19692013-08-20 Doug Evans <dje@google.com>
1970
1971 * blockframe.c: Remove #include "psymtab.h".
1972 * cp-support.c: Ditto.
1973 * source.c: Ditto.
1974 * stack.c: Ditto.
1975
df302446
TT
19762013-08-20 Tom Tromey <tromey@redhat.com>
1977
1978 PR python/15816:
1979 * exceptions.h (return_mask): Now an enum.
1980 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1981 enum constants.
1982
df6d5441
TT
19832013-08-20 Tom Tromey <tromey@redhat.com>
1984
1985 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1986 get_objfile_arch.
1987 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1988 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1989 * jit.c (jit_object_close_impl): Update.
1990 * jv-lang.c (get_dynamics_objfile): Update.
1991 * linespec.c (add_minsym): Use get_dynamics_objfile.
1992 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1993 (allocate_objfile): Don't initialize 'gdbarch' field.
1994 (get_objfile_arch): Update.
1995 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1996 moved from...
1997 (struct objfile) <gdbarch>: ... here. Remove.
1998 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1999 get_objfile_arch.
2000 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2001
f5aee5ee
AM
20022013-08-20 Alan Modra <amodra@gmail.com>
2003
2004 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2005 for IBM long double nan and inf.
2006 (floatformat_is_negative, floatformat_classify,
2007 floatformat_mantissa): Similarly.
2008 (floatformat_ieee_single, floatformat_ieee_double,
2009 floatformat_ieee_quad, floatformat_arm_ext,
2010 floatformat_ia64_spill): Delete unused vars.
2011 (_initialize_doublest): Delete unused function.
2012 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2013 little-endian variants of floatformat_ibm_long_double.
2014
33b60d58 20152013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2016
33b60d58
LM
2017 * Makefile.in (SFILES): Remove common/target-common.c and
2018 add target/waitstatus.c.
2019 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2020 target/resume.h, target/wait.h and target/waitstatus.h.
2021 (COMMON_OBS): Remove target-common.o and add
2022 waitstatus.o.
2023 (target-common.o): Remove.
2024 (waitstatus.o): New target object file.
2025 * common/target-common.c: Move contents to
2026 target/waitstatus.c and remove.
2027 * common/target-common.h: Move contents to other files and
2028 remove.
2029 (enum resume_kind: Move to target/resume.h.
2030 (TARGET_WNOHANG): Move to target/wait.h.
2031 (enum target_waitkind): Move to target/waitstatus.h.
2032 (struct target_waitstatus): Likewise.
2033 * target.h: Do not include target-common.h and
2034 include target/resume.h, target/wait.h and
2035 target/waitstatus.h.
2036 * target/resume.h: New file.
2037 * target/wait.h: New file.
2038 * target/waitstatus.h: New file.
2039 * target/waitstatus.c: New file.
2040
12696c10
PA
20412013-08-19 Pedro Alves <palves@redhat.com>
2042
2043 * linux-nat.c (linux_test_for_tracefork)
2044 (linux_test_for_tracesysgood, linux_child_follow_fork)
2045 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2046 (linux_nat_wait_1): Extend comment.
2047 (linux_async_pipe): Add comment.
2048
ba89f962
KB
20492013-08-15 Kevin Buettner <kevinb@redhat.com>
2050
2051 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2052 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2053 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2054 Update to account for fact that PC is now a pseudo-register.
2055 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2056 cases for RL78_PC_REGNUM.
2057
35ab155d
MB
20582013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2059
2060 PR cli/15841
2061 * top.c (quit_force): Skip writing history file
2062 if input is not from terminal.
2063
0d031856
TT
20642013-08-14 Tom Tromey <tromey@redhat.com>
2065
2066 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2067 resultthreadlist>: New fields.
2068 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2069 (remote_get_threadlist, remote_threadlist_iterator): Use
2070 new fields. Remove static variables.
2071
ee154bee
TT
20722013-08-14 Tom Tromey <tromey@redhat.com>
2073
2074 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2075 remote_watch_data_address>: New fields.
2076 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2077 (process_stop_reply, remote_wait_as)
2078 (remote_check_watch_resources, remote_stopped_data_address): Update.
2079
88b496c3
TT
20802013-08-14 Tom Tromey <tromey@redhat.com>
2081
2082 * remote.c (struct remote_state) <async_client_callback,
2083 async_client_context>: New fields.
2084 (async_client_callback, async_client_context): Remove.
2085 (remote_async_serial_handler, remote_async): Update.
2086
2f65bcb7
TT
20872013-08-14 Tom Tromey <tromey@redhat.com>
2088
2089 * remote.c (sizeof_pkt): Remove.
2090 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2091
b80fafe3
TT
20922013-08-14 Tom Tromey <tromey@redhat.com>
2093
2094 * remote.c (struct remote_state) <use_threadinfo_query,
2095 use_threadextra_query>: New fields.
2096 (remote_threads_info, remote_threads_extra_info)
2097 (remote_open_1): Update.
2098
8e88304f
TT
20992013-08-14 Tom Tromey <tromey@redhat.com>
2100
2101 * remote.c (struct remote_state) <finished_object,
2102 finished_annex, finished_offset>: New fields.
2103 (remote_read_qxfer): Use remote_state fields; remove static
2104 variables.
2105
280ceea3
TT
21062013-08-14 Tom Tromey <tromey@redhat.com>
2107
2108 * remote.c (struct remote_state) <last_sent_step>:
2109 New field.
2110 (last_sent_step): Remove.
2111 (remote_resume, remote_wait_as): Update.
2112
b73be471
TT
21132013-08-14 Tom Tromey <tromey@redhat.com>
2114
2115 * remote.c (struct remote_state) <last_sent_signal>:
2116 New field.
2117 (last_sent_signal): Remove.
2118 (new_remote_state, remote_resume, remote_wait_as): Update.
2119
5e4a05c4
TT
21202013-08-14 Tom Tromey <tromey@redhat.com>
2121
2122 * remote.c (struct remote_state) <last_program_signals_packet>:
2123 New field.
2124 (last_program_signals_packet): Remove.
2125 (remote_program_signals, remote_open_1): Update.
2126
747dc59d
TT
21272013-08-14 Tom Tromey <tromey@redhat.com>
2128
2129 * remote.c (struct remote_state) <last_pass_packet>:
2130 New field.
2131 (last_pass_packet): Remove.
2132 (remote_pass_signals, remote_open_1): Update.
2133
262e1174
TT
21342013-08-14 Tom Tromey <tromey@redhat.com>
2135
2136 * remote.c (struct remote_state) <remote_traceframe_number>:
2137 New field.
2138 (remote_traceframe_number): Remove.
2139 (new_remote_state, remote_open_1, set_remote_traceframe)
2140 (remote_trace_find): Update.
2141
47f8a51d
TT
21422013-08-14 Tom Tromey <tromey@redhat.com>
2143
2144 * remote.c (struct remote_state) <general_thread, continue_thread>:
2145 New fields.
2146 (general_thread, continue_thread): Remove.
2147 (record_currthread, set_thread, set_general_process)
2148 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2149 (extended_remote_mourn_1): Update.
2150
5d93a237
TT
21512013-08-14 Tom Tromey <tromey@redhat.com>
2152
2153 * remote.c (struct remote_state) <remote_desc>: New field.
2154 (remote_desc): Remove.
2155 (remote_threads_info, remote_threads_extra_info, remote_close)
2156 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2157 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2158 (remote_hostio_send_command, remote_file_put, remote_file_get)
2159 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2160 (remote_async, remote_new_objfile, set_range_stepping): Update.
2161
cf792862
TT
21622013-08-14 Tom Tromey <tromey@redhat.com>
2163
2164 * remote.c (remote_state): Now a pointer.
2165 (get_remote_state_raw): Update.
2166 (new_remote_state): New function.
2167 (_initialize_remote): Use new_remote_state.
2168
dc473cfb
TT
21692013-08-14 Tom Tromey <tromey@redhat.com>
2170
2171 * remote.c (remote_protocol_features): Now const.
2172
85ec6ce7
TT
21732013-08-14 Tom Tromey <tromey@redhat.com>
2174
2175 * remote.c (crc32_table, crc32): Remove.
2176 (remote_verify_memory): Use xcrc32.
2177
73033f12
SDJ
21782013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2179
2180 * value.h (create_internalvar_type_lazy): Adjust prototype
2181 declaration.
2182
5c30d39a
AB
21832013-08-13 Andrew Burgess <aburgess@broadcom.com>
2184
2185 * common/format.c (parse_format_string): Don't allow '#' flag for
2186 pointer arguments in format string.
2187
1a66331e
PM
21882013-08-13 Pierre Muller <muller@sourceware.org>
2189
fde605f3 2190 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2191 if rl_get_screen_size did not return useful values.
2192
b4013987
AA
21932013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2194
2195 PR breakpoints/15117
2196 * linespec.c (linespec_parse_basic): Check for convenience
2197 variable or history value while parsing.
2198
959b6a66
SDJ
21992013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2200
2201 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2202 AVR.
2203 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2204 different signals between the generic Linux kernel implementation
2205 and AVR's.
2206 (avr_linux_gdb_signal_from_target): Delete.
2207 (avr_linux_gdb_signal_to_target): Delete.
2208 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2209
24a55014
DE
22102013-08-09 Doug Evans <dje@google.com>
2211
2212 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2213 entries.
2214
eb14d406
SDJ
22152013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2216
2217 * linux-tdep.c: Define enum with generic signal numbers.
2218 (linux_gdb_signal_from_target): New function.
2219 (linux_gdb_signal_to_target): Likewise.
2220 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2221 methods to the functions above.
2222 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2223 (linux_gdb_signal_to_target): Likewise.
2224 * alpha-linux-tdep.c: Define new enum with signals different
2225 from generic Linux kernel.
2226 (alpha_linux_gdb_signal_from_target): New function.
2227 (alpha_linux_gdb_signal_to_target): Likewise.
2228 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2229 with the functions mentioned above.
2230 * avr-tdep.c: Define enum with differences between Linux kernel
2231 and AVR signals.
2232 (avr_linux_gdb_signal_from_target): New function.
2233 (avr_linux_gdb_signal_to_target): Likewise.
2234 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2235 the functions mentioned above.
2236 * sparc-linux-tdep.c: Define enum with differences between SPARC
2237 and generic Linux kernel signal numbers.
2238 (sparc32_linux_gdb_signal_from_target): New function.
2239 (sparc32_linux_gdb_signal_to_target): Likewise.
2240 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2241 to the functions defined above.
2242 * xtensa-linux-tdep.c: Define enum with differences between
2243 Xtensa and Linux kernel generic signals.
2244 (xtensa_linux_gdb_signal_from_target): New function.
2245 (xtensa_linux_gdb_signal_to_target): Likewise.
2246 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2247 to the functions defined above.
2248 * mips-linux-tdep.c: Define enum with differences between
2249 signals in MIPS and Linux kernel generic ones.
2250 (mips_gdb_signal_to_target): New function.
2251 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2252 only different signals from the Linux kernel generic.
2253 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2254 the functions defined above.
2255 * mips-linux-tdep.h (enum mips_signals): Remove.
2256
156d08c8
PA
22572013-08-09 Pedro Alves <palves@redhat.com>
2258
2259 * avr-tdep.c (XMALLOC): Delete macro.
2260 * cli/cli-dump.c (XMALLOC): Delete macro.
2261
db229724
PA
22622013-08-09 Pedro Alves <palves@redhat.com>
2263
2264 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2265 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2266 (fopen_with_cleanup, add_dump_command): Make static.
2267 * cli/cli-dump.h: Delete file.
2268 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2269 cli/cli-dump.h.
2270
3f12a589
PA
22712013-08-09 Pedro Alves <palves@redhat.com>
2272
2273 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2274 error message.
2275
c718be47
PA
22762013-08-09 Pedro Alves <palves@redhat.com>
2277
156d08c8 2278 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2279 error message.
2280
1e351ed1
PA
22812013-08-09 Pedro Alves <palves@redhat.com>
2282
2283 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2284 (gcore_command): Use tilde_expand here, and when showing the
2285 filename to the user, show the expanded version.
2286
1ed8d800
YQ
22872013-08-09 Yao Qi <yao@codesourcery.com>
2288
2289 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2290 'entryval' is set.
2291
47ecca85
PA
22922013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2293
2294 * gcore.c (create_gcore_bfd): Use tilde_expand.
2295
82a0a75f
YQ
22962013-08-08 Yao Qi <yao@codesourcery.com>
2297
2298 * frame.h (read_frame_local): Declare.
2299 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2300 read_frame_local.
2301 * stack.c (read_frame_local): New.
2302
5c4aa40b
YQ
23032013-08-08 Yao Qi <yao@codesourcery.com>
2304
2305 * mi/mi-cmd-stack.c: Update comments to function
2306 list_args_or_locals.
2307
b93601f3
TT
23082013-08-07 Tom Tromey <tromey@redhat.com>
2309
2310 PR symtab/15028:
2311 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2312 (process_psymtab_comp_unit_reader): Use it.
2313 (process_psymtab_comp_unit): Update. Add "pretend_language"
2314 argument.
2315 (dwarf2_build_psymtabs_hard): Update.
2316 (scan_partial_symbols): Pass CU's language to
2317 process_psymtab_comp_unit.
2318
fa760f46
TT
23192013-08-07 Tom Tromey <tromey@redhat.com>
2320
2321 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2322 (dwarf2_gdb_index_functions): Update.
2323 * psymtab.c (find_symbol_file_from_partial): Remove.
2324 (psym_functions): Update.
2325 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2326 Remove.
2327
bf6d8a91
TT
23282013-08-07 Tom Tromey <tromey@redhat.com>
2329
2330 * symfile.c (set_initial_language): Look up "main" symbol
2331 and use its language.
2332 * symtab.c (find_main_filename): Remove.
2333 * symtab.h (find_main_filename): Remove.
2334
f9125b6c
TT
23352013-08-07 Tom Tromey <tromey@redhat.com>
2336
2337 * dwarf2read.c (recursively_compute_inclusions): Add
2338 "immediate_parent" argument. Set symtab's "user" field
2339 if not set.
2340 (compute_symtab_includes): Update.
2341
fdbb204b
TT
23422013-08-07 Tom Tromey <tromey@redhat.com>
2343
2344 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2345 when adding label symbols.
2346
49de1690
UW
23472013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2348 Ulrich Weigand <uweigand@de.ibm.com>
2349
2350 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2351 * configure.host (powerpc64-*-aix*): Likewise.
2352
b08ee99f
UW
23532013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2354 Ulrich Weigand <uweigand@de.ibm.com>
2355
2356 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2357 is defined.
2358 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2359 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2360 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2361 * configure.ac: Check for ptrace64.
2362 * configure, config.in: Regenerate.
2363
fecf803e
UW
23642013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2365 Ulrich Weigand <uweigand@de.ibm.com>
2366
2367 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2368 Call ptrace64 instead of ptrace if defined.
2369 Add macro addr_ptr to take care of ptrace address argument.
2370 (pdc_read_regs): Likewise.
2371 (pdc_write_regs): Likewise.
2372 (aix_thread_resume): Likewise.
2373 (fetch_regs_kernel_thread): Likewise.
2374 (store_regs_kernel_thread): Likewise.
2375
3bb5e4a8
AB
23762013-08-07 Anton Blanchard <anton@samba.org>
2377
2378 * MAINTAINERS: Add myself to Write After Approval.
2379
12070676
TT
23802013-08-05 Tom Tromey <tromey@redhat.com>
2381
2382 * aix-thread.c (_initialize_aix_thread): Use
2383 complete_target_initialization.
2384 * bsd-uthread.c (_initialize_bsd_uthread): Use
2385 complete_target_initialization.
2386 * dec-thread.c (_initialize_dec_thread): Use
2387 complete_target_initialization.
2388 * ravenscar-thread.c (_initialize_ravenscar): Use
2389 complete_target_initialization.
2390 * sol-thread.c (_initialize_sol_thread): Use
2391 complete_target_initialization.
2392 * spu-multiarch.c (_initialize_spu_multiarch): Use
2393 complete_target_initialization.
2394
7c7b6655
TT
23952013-08-05 Tom Tromey <tromey@redhat.com>
2396
2397 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2398 * ada-lang.c (ada_lookup_simple_minsym): Return
2399 bound_minimal_symbol.
2400 * ada-lang.h (ada_lookup_simple_minsym): Update.
2401 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2402 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2403 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2404 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2405 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2406 * minsyms.c (msymbol_objfile): Remove.
2407 (lookup_minimal_symbol_internal): New function, from
2408 lookup_minimal_symbol.
2409 (lookup_minimal_symbol): Rewrite using
2410 lookup_minimal_symbol_internal.
2411 (lookup_bound_minimal_symbol): New function.
2412 * minsyms.h (msymbol_objfile): Remove.
2413 (lookup_bound_minimal_symbol): Declare.
2414 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2415 * parse.c (write_exp_msymbol): Change parameter to a
2416 bound_minimal_symbol.
2417 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2418 * parser-defs.h (write_exp_msymbol): Update.
2419 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2420 * symfile.c (simple_read_overlay_table): Use
2421 lookup_bound_minimal_symbol.
2422 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2423 (search_symbols): Likewise.
2424 (print_msymbol_info): Take a bound_minimal_symbol argument.
2425 (symtab_symbol_info, rbreak_command): Update.
2426 * symtab.h (struct symbol_search) <msymbol>: Change type
2427 to bound_minimal_symbol.
2428 * valops.c (find_function_in_inferior): Use
2429 lookup_bound_minimal_symbol.
2430 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2431
934b9bac
JK
24322013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2433
2434 Code cleanup.
2435 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2436 to ...
2437 (async_cleanup_sigint_signal_handler): ... this.
2438 (initialize_sigint_signal_handler): Remove declaration.
2439 (handle_remote_sigint): Rename the declaration to ...
2440 (async_handle_remote_sigint): ... this.
2441 (handle_remote_sigint_twice): Rename the declaration to ...
2442 (async_handle_remote_sigint_twice): ... this.
2443 (async_remote_interrupt, async_remote_interrupt_twice)
2444 (remote_interrupt): Remove the declarations.
2445 (remote_interrupt_twice): Rename the declaration ...
2446 (sync_remote_interrupt_twice): ... this.
2447 (sigint_remote_twice_token): Rename the variable to ...
2448 (async_sigint_remote_twice_token): ... this.
2449 (sigint_remote_token): Rename the variable to ...
2450 (async_sigint_remote_token): ... this.
2451 (initialize_sigint_signal_handler): Rename the function to ...
2452 (async_initialize_sigint_signal_handler): ... this. Update the name
2453 inside.
2454 (handle_remote_sigint): Rename the function to ...
2455 (async_handle_remote_sigint): ... this. Update the names inside.
2456 (handle_remote_sigint_twice): Rename the function to ...
2457 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2458 (cleanup_sigint_signal_handler): Rename the function to ...
2459 (async_cleanup_sigint_signal_handler): ... this.
2460 (remote_interrupt): Rename the function to ...
2461 (sync_remote_interrupt): this. Update the names inside.
2462 (remote_interrupt_twice): Rename the function to ...
2463 (sync_remote_interrupt_twice): this. Update the names inside.
2464 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2465 (_initialize_remote): Update the names inside.
2466
3a1115a0
TT
24672013-08-02 Tom Tromey <tromey@redhat.com>
2468
2469 PR symtab/15719:
2470 * breakpoint.c (update_watchpoint, watchpoint_check)
2471 (watch_command_1): Update.
2472 * eval.c (fetch_subexp_value): Add "preserve_errors"
2473 parameter.
2474 * ppc-linux-nat.c (check_condition): Update.
2475 * value.h (fetch_subexp_value): Update.
2476
58b19776
AB
24772013-08-02 Andrew Burgess <aburgess@broadcom.com>
2478
2479 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2480 add_file_handler.
2481
ec94af83
DE
24822013-08-01 Doug Evans <dje@google.com>
2483
7ee85ab1
DE
2484 PR symtab/15691
2485 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2486 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2487 Add assert of sig_entry->dwo_unit == NULL.
2488 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2489 had already been read.
2490 (read_signatured_type): Set per_cu.tu_read.
2491
b846d303
DE
2492 PR symtab/15695
2493 * valops.c (value_struct_elt): Add missing call to check_typedef.
2494 (value_find_oload_method_list): Ditto.
2495
b52109bc
DE
2496 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2497 effectively, struct symbol_search **.
2498 (make_cleanup_free_search_symbols): Change arg to struct
2499 symbol_search **. All callers updated.
2500 (compare_search_syms): Compare symtab file name and block as well.
2501 (search_symbols_equal): New function.
2502 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2503 New args new_head, new_tail. Result is now void. Remove dups after
2504 sorting the symbols.
2505 (search_symbols): Sort all found symbols once, after all have been
2506 found, and remove duplicates. Simplify cleanup tracking of result.
2507 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2508
ec94af83
DE
2509 Further workarounds for binutils/15021.
2510 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2511 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2512 Watch for duplicate symtabs coming from type units.
2513 (compute_symtab_includes): Update call to
2514 recursively_compute_inclusions. Build vector of included symtabs
2515 instead of per_cus.
2516 * symtab.h (symtab_ptr): New typedef.
2517 (DEF_VEC_P (symtab_ptr)): New VEC type.
2518 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2519 instead.
2520
b2ae85cf
AB
25212013-08-01 Andrew Burgess <aburgess@broadcom.com>
2522
2523 * cli/cli-script.c (script_from_file): Remove use of
2524 error_pre_print.
2525 * main.c (captured_main): Remove use of error_pre_print and
2526 quit_pre_print.
2527 * utils.c (error_pre_print, quit_pre_print): Remove.
2528 * utils.h (error_pre_print, quit_pre_print): Likewise.
2529
645eab03
YQ
25302013-08-01 Yao Qi <yao@codesourcery.com>
2531
2532 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2533 with mi_getopt.
2534 (mi_cmd_stack_list_variables): Likewise.
2535
16f92dd4
AB
25362013-07-31 Andrew Burgess <aburgess@broadcom.com>
2537
2538 * exceptions.c (deprecated_throw_reason): Remove.
2539 * exceptions.h (deprecated_throw_reason): Remove.
2540
13f78033
AB
25412013-07-31 Andrew Burgess <aburgess@broadcom.com>
2542
2543 * remote-mips.c (mips_error): Replace use of
2544 deprecated_throw_reason with throw_verror. Use the error message
2545 passed to mips_error as the error message for throw_verror.
2546
039e3c22
AB
25472013-07-31 Andrew Burgess <aburgess@broadcom.com>
2548
2549 * monitor.c (monitor_interrupt_query): Replace use of
2550 deprecated_throw_reason with quit.
2551 * nto-procfs.c (interrupt_query): Likewise.
2552 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2553 * remote-mips.c (mips_kill): Likewise.
2554 * remote.c (interrupt_query): Likewise.
2555
8150913b
AB
25562013-07-31 Andrew Burgess <aburgess@broadcom.com>
2557
2558 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2559 with call to fatal.
2560
de74e63a
YQ
25612013-07-31 Pedro Alves <pedro@codesourcery.com>
2562 Yao Qi <yao@codesourcery.com>
2563
2564 * tracepoint.c (trace_dump_command): Select the current frame.
2565
247f5c4f
DE
25662013-07-30 Doug Evans <dje@google.com>
2567
2568 * dwarf2read.c (process_queue): Add type signature to debug output.
2569
11b4b7cc
AB
25702013-07-30 Andrew Burgess <aburgess@broadcom.com>
2571
2572 * value.c (value_fetch_lazy): Mark optimized out values as such
2573 rather than raising an error.
2574
b0c54aa5
AB
25752013-07-30 Andrew Burgess <aburgess@broadcom.com>
2576
2577 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2578 before checking which bits of the parent, not the child, value are
2579 valid.
2580
97c85fc6
MB
25812013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2582
2583 PR gdb/15715
2584 * top.c: Include "filenames.h".
2585 (set_history_filename): New function.
2586 (init_main): Install it as set hook of the "set history filename"
2587 command.
2588
ff39bb5e
SA
25892013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2590
2591 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2592 attribute parameter.
2593 (dwarf2_const_value_data): Constify struct attribute parameter.
2594 (dwarf2_const_value): Constify struct attribute parameter.
2595 (dwarf2_const_value_attr): Constify struct attribute parameter.
2596 (lookup_die_type): Constify struct attribute parameter.
2597 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2598 (follow_die_ref_or_sig): Constify struct attribute parameter.
2599 (follow_die_ref): Constify struct attribute parameter.
2600 (follow_die_sig): Constify struct attribute parameter.
2601 (get_DW_AT_signature_type): Constify struct attribute parameter.
2602 (get_type_unit_group): Constify struct attribute parameter.
2603 (fill_in_loclist_baton): Constify struct attribute parameter.
2604 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2605 (type_unit_group): Constify struct attribute parameter.
2606
6e5a29e1
SA
26072013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2608
2609 * dwarf2read.c (attr_form_is_block): Make argument const.
2610 (attr_form_is_section_offset): Make argument const.
2611 (attr_form_is_constant): Make argument const.
2612 (attr_form_is_ref): Make argument const.
2613
7771576e
SA
26142013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2615
2616 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2617 All uses updated.
2618 (attr_form_is_ref): Moved below attr_form_is_constant.
2619
a94e8645
DE
26202013-07-29 Doug Evans <dje@google.com>
2621
bb5291d0
DE
2622 * main.c (captured_command_loop): Tweak comment.
2623
b5419e49
DE
2624 * target.c (target_async_permitted_1): Fix comment.
2625
b2d23133
DE
2626 * symtab.c (iterate_over_some_symtabs): Add comment.
2627
a94e8645
DE
2628 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2629
7a60ad40
YQ
26302013-07-27 Yao Qi <yao@codesourcery.com>
2631
2632 * NEWS: Mention that GDBserver now supports hardware
2633 watchpoints on the MIPS GNU/Linux target.
2634
aaee2056
YQ
26352013-07-27 Yao Qi <yao@codesourcery.com>
2636
2637 * Makefile.in (HFILES_NO_SRCDIR): Add
2638 common/mips-linux-watch.h.
2639 (mips-linux-watch.o): New rule.
2640 * common/mips-linux-watch.c: New.
2641 * common/mips-linux-watch.h: New.
2642 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2643 * mips-linux-nat.c: Include mips-linux-watch.h.
2644 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2645 to common/mips-linux-watch.h.
2646 (MAX_DEBUG_REGISTER): Likewise.
2647 (enum pt_watch_style): Likewise.
2648 (struct mips32_watch_regs): Likewise.
2649 (struct mips64_watch_regs): Likewise.
2650 (struct pt_watch_regs): Likewise.
2651 (struct mips_watchpoint): Likewise.
2652 (mips_linux_watch_get_irw_mask): Move to
2653 common/mips-linux-watch.c.
2654 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2655 (mips_linux_watch_get_watchlo): Likewise.
2656 (mips_linux_watch_set_watchlo): Likewise.
2657 (mips_linux_watch_get_watchhi): Likewise.
2658 (mips_linux_watch_set_watchhi): Likewise.
2659 (mips_linux_read_watch_registers): Likewise.
2660 (mips_linux_watch_type_to_irw): Likewise.
2661 (mips_linux_stopped_data_address, fill_mask): Likewise.
2662 (mips_linux_watch_try_one_watch): Likewise.
2663 (mips_linux_watch_populate_regs): Likewise.
2664
b3436450
YQ
26652013-07-27 Yao Qi <yao@codesourcery.com>
2666
2667 * mips-linux-nat.c (get_irw_mask): Rename to ...
2668 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2669 'set' to 'n'. Update function comment. All callers changed.
2670 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2671 function comment. All callers changed.
2672 (get_num_valid): Rename to ...
2673 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2674 'set' to 'n'. Update function comment. All callers changed.
2675 (get_watchlo): Rename to ...
2676 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2677 'set' to 'n'. Update function comment. All callers changed.
2678 (set_watchlo): Rename to ...
2679 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2680 'set' to 'n'. Update function comment. All callers changed.
2681 (get_watchhi): Rename to ...
2682 (mips_linux_watch_get_watchhi): ... this. Update function
2683 comment. All callers changed.
2684 (set_watchhi): Rename to ...
2685 (mips_linux_watch_set_watchhi): ... this. Update function
2686 comment. All callers changed.
2687 (mips_linux_read_watch_registers): Update function comment.
2688 Add new parameters 'lwpid', 'watch_readback', and
2689 'watch_readback_valid'. Update.
2690 (type_to_irw): Rename to ...
2691 (mips_linux_watch_type_to_irw): ... this. Update function
2692 comment. All callers changed.
2693 (fill_mask): Update function comment.
2694 (try_one_watch): Rename to ...
2695 (mips_linux_watch_try_one_watch): ... this. Change the type
2696 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2697 (populate_regs_from_watches): Rename to ...
2698 (mips_linux_watch_populate_regs): ... this. Add parameter
2699 'current_watches'. All callers changed.
2700
9be14b81
YQ
27012013-07-27 Yao Qi <yao@codesourcery.com>
2702
2703 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2704 the code.
2705 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2706 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2707 (struct pt_watch_regs): Likewise.
2708 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2709 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2710 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2711 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2712 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2713
de6f69ad
YQ
27142013-07-27 Yao Qi <yao@codesourcery.com>
2715
2716 * breakpoint.h: Include break-common.h.
2717 (enum target_hw_bp_type): Move to ...
2718 * common/break-common.h: ... here. New.
2719
6f64ef53
PA
27202013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2721
2722 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2723 process group regardless of having tty on stdin.
2724
6107e809
DE
27252013-07-25 Doug Evans <dje@google.com>
2726
2727 * linux-fork.h (detach_fork): Delete.
2728
7fdc1521
TT
27292013-07-25 Tom Tromey <tromey@redhat.com>
2730
2731 PR remote/15256, PR remote/15266:
2732 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2733 * monitor.c (monitor_detach): Use unpush_target.
2734 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2735 * remote-mips.c (mips_detach): Use unpush_target. Don't
2736 call mips_close.
2737 * remote-sim.c (gdbsim_detach): Use unpush_target.
2738 * target.c (pop_target): Remove.
2739 (pop_all_targets_above): Don't call target_close.
2740 (target_close): Assert that the target is unpushed.
2741 * target.h (pop_target): Don't declare.
2742 * tracepoint.c (tfile_open): Use unpush_target.
2743
c22a2b88
TT
27442013-07-25 Tom Tromey <tromey@redhat.com>
2745
2746 * linux-thread-db.c (init_thread_db_ops): Call
2747 complete_target_initialization.
2748 (_initialize_thread_db): Don't call add_target.
2749 * target.c (complete_target_initialization): New function.
2750 (add_target_with_completer): Call it.
2751 * target.h (complete_target_initialization): Declare.
2752
cbb6aada
MK
27532013-07-25 Mark Kettenis <kettenis@gnu.org>
2754
2755 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2756 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2757 (HPPANBSD_SIZEOF_GREGS): New define.
2758 (hppaobsd_supply_gregset): Handle additional registers.
2759 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2760 we provide more registers now.
2761 (hppabsd_supply_gregset): Supply additional registers.
2762 (hppabsd_collect_gregset): Collect additional registers.
2763
17767988
MK
27642013-07-25 Mark Kettenis <kettenis@gnu.org>
2765
2766 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2767 (hppabsd_dwarf2_frame_init_reg): New function.
2768 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2769
fdc8aae8
AB
27702013-07-25 Andrew Burgess <aburgess@broadcom.com>
2771
2772 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2773 'z' format code. Remove error for optimized out values, standard
2774 code will handle these fine.
2775
6fbe845e
AB
27762013-07-25 Andrew Burgess <aburgess@broadcom.com>
2777
2778 * NEWS: Mention new 'z' formatter.
2779 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2780 (_initialize_printcmd): Mention 'z' formatter in help text of the
2781 'x' command.
2782
3373342d
MR
27832013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2784
2785 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2786 formatting.
2787
25f9533e
SDJ
27882013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2789
2790 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2791 interface can evaluate arguments. Fallback to the old mode if it
2792 cannot.
2793 (create_exception_master_breakpoint): Likewise.
2794 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2795 (struct sym_probe_fns elf_probe_fns): Export function above to the
2796 probe interface.
2797 * probe.c (can_evaluate_probe_arguments): New function.
2798 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2799 function pointer.
2800 (can_evaluate_probe_arguments): New function prototype.
2801 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2802 probe interface can evaluate arguments. Fallback to the old mode
2803 if it cannot.
2804 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2805 interface can evaluate arguments. Warning the user if it cannot.
2806 (stap_can_evaluate_probe_arguments): New function.
2807 (struct probe_ops stap_probe_ops): Export function above to the
2808 probe interface.
2809 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2810 New function pointer.
2811
3360c0bf
LM
28122013-07-24 Luis Machado <lgustavo@codesourcery.com>
2813
2814 * Makefile.in (SFILES): Add common/target-common.c.
2815 Add common/target-common.h to headers.
2816 (COMMON_OBS): Add target-common.o.
2817 (target-common.o): New target.
2818 * linux-nat.h (resume_kind): Move to common/target-common.h.
2819 * target.c (target_waitstatus_to_string): Move to
2820 common/target-common.c.
2821 * target.h: Include target-common.h.
2822 (target_waitkind): Move to common/target-common.h.
2823 (target_waitstatus): Likewise.
2824 (TARGET_WNOHANG): Likewise.
2825 * common/target-common.c: New file.
2826 * common/target-common.h: New file.
2827
6656a72d
DE
28282013-07-24 Doug Evans <dje@google.com>
2829
2830 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2831 a warning.
2832
6df81a63
YQ
28332013-07-23 Yao Qi <yao@codesourcery.com>
2834
2835 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2836 parameter 'gdbarch'.
2837 (i386_stack_tramp_frame_sniffer): Caller update.
2838 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2839 parameter 'gdbarch' and 'target'.
2840 (i386_linux_core_read_description): Caller update.
2841 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2842 Likewise.
2843 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2844 declaration.
2845
365156ad
TT
28462013-07-23 Tom Tromey <tromey@redhat.com>
2847
2848 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2849 2013-07-22.
2850
046ac79f
JK
28512013-07-22 Doug Evans <dje@google.com>
2852
2853 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2854 * exec.c (exec_close): Update call to remove_target_sections.
2855 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2856 * solib.c (update_solib_list): Ditto.
2857 (reload_shared_libraries_1): Ditto.
2858 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2859 * target.h (struct target_section): Rename key to owner.
2860 All uses updated.
046ac79f 2861
29b2cc46
TT
28622013-07-22 Tom Tromey <tromey@redhat.com>
2863
2864 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2865
d1160018
TT
28662013-07-22 Tom Tromey <tromey@redhat.com>
2867
2868 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2869 Simplify cleanup handling.
2870
2f324bf6
TT
28712013-07-22 Tom Tromey <tromey@redhat.com>
2872
2873 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2874 on all return paths.
2875
e23b9d6e
UW
28762013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2877
2878 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2879 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2880 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2881
1cf55f60
PM
28822013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2883
2884 * top.c (print_gdb_version): Add help, apropos description and
2885 url to online documentation.
2886
fa876972
HZ
28872013-07-19 Hui Zhu <hui@codesourcery.com>
2888
2889 PR gdb/15692
2890 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2891
1527aea8
YQ
28922013-07-19 Yao Qi <yao@codesourcery.com>
2893
2894 * target.c (update_current_target): Change the default action
2895 of 'to_traceframe_info' from tcomplain to return_zero.
2896 * target.h (struct target_ops) <to_traceframe_info>: Add more
2897 comments.
2898 * valops.c (read_value_memory): Call
2899 traceframe_available_memory unconditionally.
2900
886f230e
YQ
29012013-07-18 Yao Qi <yao@codesourcery.com>
2902
2903 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2904 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2905 symbol without prefix. If found, set its type to
2906 'mst_solib_trampoline'.
2907
16419bae
DE
29082013-07-17 Doug Evans <dje@google.com>
2909
e7045703
DE
2910 * NEWS: Mention "set print raw frame-arguments".
2911 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2912 * stack.c (print_raw_frame_arguments): New static global.
2913 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2914 (_initialize_stack): New command "set/show print raw frame-arguments".
2915 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2916 (set_print_raw, show_print_raw): New functions.
2917 (_initialize_valprint): New prefix command "set/show print raw".
2918 * valprint.h (value_print_options): Improve comments.
2919
453e48a5
DE
2920 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2921 of all *list variables.
2922
16419bae
DE
2923 * gdbcmd.h (togglelist): Delete.
2924 * cli/cli-cmds.c (togglelist): Delete.
2925 (init_cmd_lists): Update.
2926 * cli/cli-cmds.h (togglelist): Delete.
2927
626f2d1c
TT
29282013-07-17 Tom Tromey <tromey@redhat.com>
2929
2930 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2931 dwarf2_per_objfile.
2932
57e6060e
DE
29332013-07-16 Doug Evans <dje@google.com>
2934
2935 * nto-tdep.c (nto_relocate_section_addresses): Update,
2936 target_section.bfd deleted.
2937 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2938 * s390-tdep.c (s390_load): Ditto.
2939 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2940
5ea5559b
AB
29412013-07-16 Andrew Burgess <aburgess@broadcom.com>
2942
2943 * common/format.c (parse_format_string): Add checks for NULL
2944 character before calling strchr.
2945
2b2848e2
DE
29462013-07-16 Doug Evans <dje@google.com>
2947
2c571006
DE
2948 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2949 temp_pathname argument.
2950 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2951 when opening the file fails.
2952
2b2848e2
DE
2953 * target.h (struct target_section): Delete member bfd.
2954 All users updated to use the_bfd_section->owner instead.
2955 * exec.c (add_to_section_table): Assert bfd is expected value.
2956 Remove initialization of target_section.bfd.
2957 (remove_target_sections): Update.
2958 (section_table_available_memory): Update.
2959 (section_table_xfer_memory_partial): Update.
2960 (print_section_info): Update.
2961 (exec_set_section_address): Update.
2962 * record-full.c (record_full_core_xfer_partial): Update.
2963 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2964 * solib-target.c (solib_target_relocate_section_addresses): Update.
2965 * symfile.c (build_section_addr_info_from_section_table): Update.
2966 * target.c (memory_xfer_live_readonly_partial): Update.
2967 (memory_xfer_partial_1): Update.
2968
926bf92d
UW
29692013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2970
2971 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2972 now available for embedded (BookE) and server (BookS) processors,
2973 correct mentions of 'booke' and adjust comments accordingly in order to
2974 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2975 (have_ptrace_booke_interface): Rename function and variable
2976 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2977 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2978 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2979 'hwdebug_point_cmp'. Update all uses.
2980 (booke_find_thread_points_by_tid): Rename function
2981 'booke_find_thread_points_by_tid' to
2982 'hwdebug_find_thread_points_by_tid'. Update all uses.
2983 (booke_insert_point): Rename function 'booke_insert_point' to
2984 'hwdebug_insert_point'. Update all uses.
2985 (booke_remove_point): Rename function 'booke_remove_point' to
2986 'hwdebug_remove_point'. Update all uses.
2987
d929bc19
MR
29882013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2989
2990 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2991 numbers with enum values.
2992
054e8d9e
AA
29932013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2994
2995 PR threads/13217
2996 * thread.c (thread_apply_all_command): Check for valid threads
2997 and thread count.
2998 (thread_array_cleanup): New struct.
2999 (set_thread_refcount): New function.
3000
cf006359
AB
30012013-07-11 Andrew Burgess <aburgess@broadcom.com>
3002
3003 * infcmd.c (default_print_one_register_info): Reuse function
3004 print_hex_chars.
3005
94e36acc
TT
30062013-07-10 Tom Tromey <tromey@redhat.com>
3007
3008 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3009 (ada-exp.o): New target.
3010
915dd369
SDJ
30112013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3012
3013 * mt-tdep.c (mt_registers_info): Call
3014 get_no_prettyformat_print_options instead of
3015 get_raw_print_options (regression by last patch from Doug
3016 Evans).
3017
eca07816
JB
30182013-07-09 Pedro Alves <palves@redhat.com>
3019
3020 Checked in by Joel Brobecker <brobecker@adacore.com>.
3021 * ada-lang.c (coerce_unspec_val_to_type): Use
3022 value_optimized_out_const.
3023 * value.c (value_optimized_out_const): New function.
3024 * value.h (value_optimized_out_const): New declaration.
3025
2a998fc0
DE
30262013-07-09 Doug Evans <dje@google.com>
3027
3028 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3029 Enum values rename as well. All uses updated.
3030 * valprint.h (value_print_options): Rename member pretty to
3031 pretty format. Rename member prettyprint_arrays to
3032 prettyformat_arrays. Rename member prettyprint_structs to
3033 prettyformat_structs. All uses updated.
3034 (get_no_prettyformat_print_options): Renamed from
3035 get_raw_print_options.
3036 * valprint.c (get_no_prettyformat_print_options): Renamed from
3037 get_raw_print_options. All callers updated.
3038 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3039 All callers updated.
3040 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3041 All callers updated.
3042 (_initialize_valprint): Improve help text for "set print pretty" and
3043 "set print arrays".
3044
466c1fca
AB
30452013-07-09 Andrew Burgess <aburgess@broadcom.com>
3046
3047 * value.c (value_bits_valid): Revert previous change, and change
3048 by Pedro on 2013-07-04, due to regressions in
3049 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3050
ad0f0303
AB
30512013-07-08 Andrew Burgess <aburgess@broadcom.com>
3052 Pedro Alves <palves@redhat.com>
3053
3054 * value.c (value_bits_valid): If the value is not lval_computed
3055 or has no check validity handler then the answer is the
3056 optimized_out flag, otherwise defer to the handler.
3057
b187bec1
EZ
30582013-07-06 Eli Zaretskii <eliz@gnu.org>
3059
48d1d6f5
EZ
3060 * top.c (print_gdb_configuration): Explain in output of
3061 --configuration what does "relocatable" mean.
3062
b187bec1
EZ
3063 * main.c (print_gdb_help): Regroup options in the --help text.
3064 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3065 the relevant discussions.
3066
52d361e1
YQ
30672013-07-06 Yao Qi <yao@codesourcery.com>
3068
3069 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3070 Remove parameter 'lsal'.
3071 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3072 to inner block. Caller update.
3073 (base_breakpoint_create_breakpoints_sal): Update.
3074 (bkpt_create_breakpoints_sal): Likewise.
3075 (tracepoint_create_breakpoints_sal): Likewise.
3076 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3077 element 0 of vector 'canonical->sals'.
3078
e1ec1b42
LM
30792013-07-05 Luis Machado <lgustavo@codesourcery.com>
3080
3081 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3082 register number instead of the pseudo register one.
3083 (rs6000_dwarf2_reg_to_regnum): Likewise.
3084
7195e6f0
PA
30852013-07-04 Pedro Alves <palves@redhat.com>
3086
3087 * findvar.c (value_of_register): Use allocate_optimized_out_value
3088 if the register has been optimized out, instead of
3089 set_value_optimized_out.
3090 * frame-unwind.c (frame_unwind_got_optimized): Use
3091 allocate_optimized_out_value.
3092
58722cac
PA
30932013-07-04 Pedro Alves <palves@redhat.com>
3094
3095 * value.c (value_bits_valid): If the value is not lval_computed,
3096 or doesn't have a check_validity hook, assume the value is entirely
3097 valid.
3098
691a26f5
AB
30992013-07-04 Andrew Burgess <aburgess@broadcom.com>
3100
3101 * stack.c (read_frame_arg): No longer fetch lazy values.
3102 * value.c (value_optimized_out): If the value is not already
3103 marked optimized out, and is lazy then fetch it.
3104 (value_primitive_field): Move optimized out check to later in the
3105 function, after we have loaded any lazy values.
3106 (value_fetch_lazy): Use optimized out flag directly rather than
3107 calling optimized_out method.
3108
a58e2656
AB
31092013-07-04 Andrew Burgess <aburgess@broadcom.com>
3110
3111 * valops.c: Don't include "user-regs.h".
3112 (value_fetch_lazy): Moved to value.c.
3113 * value.c: Include "user-regs.h".
3114 (value_fetch_lazy): Moved from valops.c.
3115
bd885420
YQ
31162013-07-04 Yao Qi <yao@codesourcery.com>
3117
3118 Revert:
3119 2013-06-27 Yao Qi <yao@codesourcery.com>
3120
3121 * common/create-version.sh: Update comments. Handle the case
3122 that TARGET_ALIAS is empty.
3123
17ef446e
PA
31242013-07-03 Pedro Alves <palves@redhat.com>
3125
3126 * Makefile.in (config.status): Depend on development.sh.
3127 (aclocal_m4_deps): Add libmcheck.m4.
3128 * acinclude.m4: Include libmcheck.m4.
3129 * configure.ac: Source development.sh instead of setting
3130 'development' here. --enable-libmcheck/--disable-libmcheck code
3131 factored out to GDB_AC_LIBMCHECK. Run it.
3132 * development.sh: New file.
3133 * libmcheck.m4: New file.
3134 * configure: Regenerate.
3135
ac6dd50f
TT
31362013-07-02 Tom Tromey <tromey@redhat.com>
3137
3138 * contrib/ari/update-web-ari.sh: Update for version.in change.
3139
bd1df410
TT
31402013-07-02 Tom Tromey <tromey@redhat.com>
3141
3142 * common/ptid.h: Comment fixes.
3143
4db1a1dc
TT
31442013-07-01 Tom Tromey <tromey@redhat.com>
3145
3146 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3147 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3148 (dwarf2_read_index, create_all_comp_units): Update.
3149
dd9aa048
TT
31502013-07-01 Tom Tromey <tromey@redhat.com>
3151
3152 * configure.ac (build_warnings): Add -Wold-style-definition.
3153 * configure: Rebuild.
3154 * machoread.c (_initialize_machoread): Use "(void)".
3155 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3156 use "(void)".
3157
44d100c3
TT
31582013-07-01 Tom Tromey <tromey@redhat.com>
3159
3160 * configure.ac (build_warnings): Add -Wold-style-declaration.
3161 * configure: Rebuild.
3162 * dsrec.c (make_srec): Use "static const", not "const static".
3163 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3164 not "const static".
3165 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3166 Use "static const", not "const static".
3167 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3168 not "const static".
3169 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3170 not "const static".
3171 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3172 not "const static".
3173 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3174 not "const static".
3175 (v850_dbtrap_breakpoint_from_pc): Likewise.
3176 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3177 not "const static".
3178
2945b807
TT
31792013-07-01 Tom Tromey <tromey@redhat.com>
3180
3181 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3182 * configure: Rebuild.
3183
d8d2a3ee
PA
31842013-07-01 Pedro Alves <palves@redhat.com>
3185
3186 * defs.h: Include "pathmax.h".
3187 * utils.c: Don't include sys/param.h.
3188 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3189 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3190 instead of MAXPATHLEN.
3191 * solib-sunos.c: Don't include sys/param.h.
3192 * xcoffread.c: Don't include sys/param.h.
3193 * bsd-kvm.c: Don't include sys/param.h.
3194 * darwin-nat.c: Don't include sys/param.h.
3195 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3196 * darwin-nat-info.c: Don't include sys/param.h.
3197 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3198 MAXPATHLEN.
3199 * i386obsd-nat.c: Don't include sys/param.h.
3200 * inf-child.c: Don't include sys/param.h.
3201 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3202 * linux-fork.c: Don't include sys/param.h.
3203 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3204 * linux-nat.c: Don't include sys/param.h.
3205 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3206 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3207 * m68klinux-nat.c: Don't include sys/param.h.
3208 * nbsd-nat.c: Don't include sys/param.h.
3209 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3210 * ppc-linux-nat.c: Don't include sys/param.h.
3211 * rs6000-nat.c: Don't include sys/param.h.
3212 * spu-linux-nat.c. Don't include sys/param.h.
3213 * windows-nat.c: Don't include sys/param.h.
3214 * xtensa-linux-nat.c: Don't include sys/param.h.
3215 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3216
38ec2207
PA
32172013-07-01 Pedro Alves <palves@redhat.com>
3218
3219 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3220 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3221 * gnulib/aclocal.m4: Regenerate.
3222 * gnulib/config.in: Regenerate.
3223 * gnulib/configure: Regenerate.
3224 * gnulib/import/pathmax.h: New file.
3225 * gnulib/import/Makefile.am: Regenerate.
3226 * gnulib/import/Makefile.in: Regenerate.
3227 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3228 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3229 * gnulib/import/m4/pathmax.m4: New file.
3230
e655c1a2
PA
32312013-07-01 Pedro Alves <palves@redhat.com>
3232
3233 * configure.ac (GDBINIT): Define, depending on host.
3234 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3235 * top.c (PATH_MAX): Delete fallback definition.
3236 (GDBINIT_FILENAME): Delete.
3237 (gdbinit): Reimplement as const char array set to the GDBINIT
3238 string constant.
3239 * top.h (gdbinit): Make const.
3240 * configure, config.in: Regenerate.
3241
50dd9793
PA
32422013-07-01 Pedro Alves <palves@redhat.com>
3243
3244 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3245 * cli/cli-cmds.h (source_script): Likewise.
3246 * exceptions.c (catch_command_errors_const): New function.
3247 * exceptions.h (catch_command_errors_const): Declare.
3248 * main.c (get_init_files): Make parameters const, and adjust.
3249 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3250 'local_gdbinit' locals const. Adjust to use
3251 catch_command_errors_const.
3252 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3253 'local_gdbinit' locals const.
3254
bc7dea8d
PA
32552013-07-01 Pedro Alves <palves@redhat.com>
3256
3257 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3258 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3259 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3260 <unistd.h>.
3261
8839a007
PA
32622013-07-01 Pedro Alves <palves@redhat.com>
3263
3264 Import the "unistd" gnulib module.
3265 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3266 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3267 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3268 import/m4/unistd_h.m4.
3269 * gnulib/aclocal.m4: Renenerate.
3270 * gnulib/config.in: Renenerate.
3271 * gnulib/configure: Renenerate.
3272 * gnulib/import/Makefile.am: Renenerate.
3273 * gnulib/import/Makefile.in: Renenerate.
3274 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3275 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3276 * gnulib/import/m4/off_t.m4: New file.
3277 * gnulib/import/m4/ssize_t.m4: New file.
3278 * gnulib/import/m4/sys_types_h.m4: New file.
3279 * gnulib/import/m4/unistd_h.m4: New file.
3280 * gnulib/import/sys_types.in.h: New file.
3281 * gnulib/import/unistd.c: New file.
3282 * gnulib/import/unistd.in.h: New file.
3283
8c0da261
PA
32842013-07-01 Pedro Alves <palves@redhat.com>
3285
3286 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3287 defined instead of checking HAVE_UNISTD_H.
3288
3574124b
PA
32892013-07-01 Pedro Alves <palves@redhat.com>
3290
3291 Reimport gnulib from scratch.
3292 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3293 import/m4/onceonly.m4.
3294 * gnulib/aclocal.m4: Renegerate.
3295 * gnulib/config.in: Renegerate.
3296 * gnulib/configure: Renegerate.
3297 * gnulib/import/Makefile.in: Renegerate.
3298 * gnulib/import/extra/update-copyright: Renegerate.
3299 * gnulib/import/m4/onceonly.m4: Delete.
3300
702dc4fd
PA
33012013-07-01 Pedro Alves <palves@redhat.com>
3302
3303 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3304
47e1ce27
JK
33052013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3306
3307 Code cleanup.
3308 * remote.c (async_remote_interrupt_twice): Make it static.
3309 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3310
e82839d4
SDJ
33112013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3312
3313 * ia64-linux-tdep.c: Include <ctype.h>.
3314 (ia64_linux_stap_is_single_operand): New function.
3315 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3316
d6c2da54
TT
33172013-06-28 Tom Tromey <tromey@redhat.com>
3318
3319 * Makefile.in (version.c): Use version.in, not
3320 common/version.in.
3321 * common/create-version.sh: Likewise.
3322 * common/version.in: Move...
3323 * version.in: ...here.
3324
74da6f00
PA
33252013-06-28 Pedro Alves <palves@redhat.com>
3326
3327 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3328 here.
3329 * utils.h (pagination_enabled): Declare.
3330
d32dc48e
PA
33312013-06-28 Pedro Alves <palves@redhat.com>
3332
3333 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3334 Move higher up in file.
3335
0edd9e3b
TT
33362013-06-28 Tom Tromey <tromey@redhat.com>
3337
3338 * tracepoint.c (deprecated_readline_begin_hook)
3339 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3340 declare.
3341
4eb59108
PA
33422013-06-28 Pedro Alves <palves@redhat.com>
3343
3344 PR tui/14880
3345 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3346 checking if they're available.
3347 * value.c (value_available_contents_eq): Change comment.
3348 * value.h (value_available_contents_eq): Expand comment.
3349
97b17156
TT
33502013-06-27 Tom Tromey <tromey@redhat.com>
3351
3352 * target.c (find_run_target): Remove.
3353 * target.h (find_run_target): Remove.
3354
6a3bfc5c
TT
33552013-06-27 Tom Tromey <tromey@redhat.com>
3356
3357 * corelow.c (core_gdbarch): Now static.
3358
c9ef825d
TT
33592013-06-27 Tom Tromey <tromey@redhat.com>
3360
3361 * target.c (target_struct_index): Remove.
3362
e5823f1c
PA
33632013-06-27 Pedro Alves <palves@redhat.com>
3364
3365 * infrun.c: Remove comment describing the 'stepping over runtime
3366 loader dynamic symbol resolution code' mechanism; moved to
3367 gdbint.texinfo.
3368
97f8dd09
PA
33692013-06-27 Pedro Alves <palves@redhat.com>
3370
3371 * exceptions.c (catch_command_errors): Remove spurious space.
3372 * exceptions.h (catch_command_errors): Second parameter is "arg",
3373 not "command".
3374
02b1871e
YQ
33752013-06-27 Yao Qi <yao@codesourcery.com>
3376
3377 * common/create-version.sh: Update comments. Handle the case
3378 that TARGET_ALIAS is empty.
3379
bb1b1cf1
PA
33802013-06-26 Pedro Alves <palves@redhat.com>
3381
3382 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3383 comment.
3384
7b624e71
PA
33852013-06-26 Pedro Alves <palves@redhat.com>
3386
3387 * infrun.c: Update comments on stepping over runtime loader
3388 dynamic symbol resolution code.
3389
74e5a346
SDJ
33902013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3391
3392 * ax-gdb.h (union exp_element): Forward declare.
3393 * parser-defs.h: Include expression.h.
3394
a2fb2cee
MR
33952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3396
3397 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3398
cdba14e0
DK
33992013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3400
3401 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3402
f30aa5af
DK
34032013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3404
3405 Fix trace-status to output proper start-time and stop-time.
3406 * tracepoint.c (trace_status_command): Fix type of printf arg to
3407 prevent improper type conversion.
3408 (trace_status_mi): Likewise.
3409
1aee363c
MR
34102013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3411
3412 * mips-tdep.c (mips_next_pc): Fix a typo.
3413
3356937a
MR
34142013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3415
3416 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3417
dc673c81
YQ
34182013-06-26 Pedro Alves <pedro@codesourcery.com>
3419 Yao Qi <yao@codesourcery.com>
3420
3421 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3422 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3423 * mi/mi-main.c (print_variable_or_computed): New function.
3424 (mi_cmd_trace_frame_collected): New function.
3425 * tracepoint.c (find_trace_state_variable_by_number): New.
3426 (struct traceframe_info): Move to tracepoint.h
3427 (struct collection_list): Likewise.
3428 (do_collect_symbol): Include locals and arguments in the
3429 collected variables list.
3430 (clear_collection_list): Clear wholly collected variables list
3431 and computed variables list.
3432 (append_exp): New function.
3433 (encode_actions_1): Include variables in the wholly
3434 collected variables list. Include memory ranges and
3435 full-fledged expressions in the computed expressions list.
3436 (encode_actions): Move some code to ...
3437 Return the cleanup chain.
3438 (encode_actions_rsp): ... here. New function.
3439 (get_traceframe_location, get_traceframe_info): Remove static.
3440 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3441 (struct collection_list): Moved from tracepoint.c. Add two
3442 new fields 'wholly_collected' and 'computed'.
3443 (find_trace_state_variable_by_number): Declare.
3444 (encode_actions): Adjust declaration.
3445 (encode_actions_rsp): Declare.
3446 (get_traceframe_info, get_traceframe_location): Declare.
3447
3448 * NEWS: Mention new MI command -trace-frame-collected.
3449
28a93511
YQ
34502013-06-26 Pedro Alves <pedro@codesourcery.com>
3451 Yao Qi <yao@codesourcery.com>
3452
3453 * ctf.c (ctf_traceframe_info): Push trace state variables
3454 present in the trace data into the traceframe info object.
3455 * breakpoint.c (DEF_VEC_I): Remove.
3456 * common/filestuff.c (DEF_VEC_I): Likewise.
3457 * dwarf2loc.c (DEF_VEC_I): Likewise.
3458 * mi/mi-main.c (DEF_VEC_I): Likewise.
3459 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3460 * features/traceframe-info.dtd: Add tvar element and its
3461 attributes.
3462 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3463 (build_traceframe_info): Push trace state variables present in
3464 the trace data into the traceframe info object.
3465 (traceframe_info_start_tvar): New function.
3466 (tvar_attributes): New.
3467 (traceframe_info_children): Add "tvar" element.
3468 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3469
3470 * NEWS: Mention the change in GDB and GDBserver.
3471
ddacd3c8
YQ
34722013-06-26 Pedro Alves <pedro@codesourcery.com>
3473 Yao Qi <yao@codesourcery.com>
3474
3475 * tracepoint.c (trace_dump_command): Move code to ...
3476 (get_traceframe_location): ... here. New.
3477
05796b35
YQ
34782013-06-26 Pedro Alves <pedro@codesourcery.com>
3479 Yao Qi <yao@codesourcery.com>
3480
3481 * tracepoint.c (trace_dump_command): GDB emits an error
3482 instead of a warning when a traceframe is not selected.
3483
cbfa3b61
YQ
34842013-06-26 Pedro Alves <pedro@codesourcery.com>
3485 Yao Qi <yao@codesourcery.com>
3486
3487 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3488 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3489 in collection_list.
3490 (do_clear_collection_list, init_collection_list): New.
3491 (encode_actions): Add local variables 'tracepoint_list' and
3492 'stepping_list'. Call init_collection_list and make cleanup
3493 which calls do_clear_collection_list. Don't call
3494 clear_collection_list.
3495 (_initialize_tracepoint): Delete references to
3496 'tracepoint_list' and 'stepping_list'.
3497
6e2048d3
TT
34982013-06-25 Tom Tromey <tromey@redhat.com>
3499
3500 * common/create-version.sh (date): Use "$", not "$$" in sed
3501 expression.
3502
42059f0e
KB
35032013-06-25 Kevin Buettner <kevinb@redhat.com>
3504
3505 * NEWS (New targets): Add entry for TI MSP430.
3506
a0743c90
YQ
35072013-06-25 Yao Qi <yao@codesourcery.com>
3508
3509 * remote.c (remote_start_remote): Move code to upload tsv
3510 earlier.
3511
9d6e6e84
HZ
35122013-06-25 Yao Qi <yao@codesourcery.com>
3513 Hui Zhu <hui@codesourcery.com>
3514 Pedro Alves <palves@redhat.com>
3515
3516 PR breakpoints/15075
3517 PR breakpoints/15434
3518 * breakpoint.c (bpstat_stop_status): Call
3519 b->ops->after_condition_true.
3520 (update_dprintf_command_list): Don't append "continue" command
3521 to the command list of dprintf breakpoint.
3522 (base_breakpoint_after_condition_true): New function.
3523 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3524 (dprintf_after_condition_true): New function.
3525 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3526 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3527
586cf749
KB
35282013-06-24 Kevin Buettner <kevinb@redhat.com>
3529
3530 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3531 (ALLDEPFILES): Add msp430-tdep.c.
3532 * configure.tgt (msp430*-*-elf): New target.
3533 * msp430-tdep.c: New file.
3534
1bbce132
MR
35352013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3536
3537 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3538 microMIPS synthetic symbols.
3539
3e5d3a5a
MR
35402013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3541
3542 * objfiles.h (pc_in_section): New prototype.
3543 (in_plt_section): Remove name argument, replace prototype with
3544 static inline function.
3545 * mips-tdep.h: Include "objfiles.h".
3546 (in_mips_stubs_section): New function.
3547 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3548 in_solib_call_trampoline member.
3549 (hppa_in_solib_call_trampoline): Remove name argument.
3550 * objfiles.c (pc_in_section): New function.
3551 (in_plt_section): Remove function.
3552 * mips-linux-tdep.c: Include "objfiles.h".
3553 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3554 name argument. Return 1 rather than the low 16-bit halfword of
3555 any instruction examined.
3556 (mips_linux_in_dynsym_resolve_code): Update
3557 mips_linux_in_dynsym_stub call accordingly.
3558 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3559 rather than an equivalent hand-coded sequence.
3560 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3561 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3562 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3563 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3564 in_opd_section.
3565 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3566 on call to tdep->in_solib_call_trampoline.
3567 (hppa_in_solib_call_trampoline): Remove name argument, update
3568 according to in_plt_section change.
3569 (hppa_skip_trampoline_code): Update according to in_plt_section
3570 change.
3571 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3572 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3573 Likewise.
3574 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3575 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3576 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3577 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3578 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3579 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3580 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3581 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3582 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3583 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3584 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3585 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3586 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3587
b9b26a16
JB
35882013-06-24 Joel Brobecker <brobecker@adacore.com>
3589
3590 * common/create-version.sh: Fix expansion of $host_alias
3591 and $target_alias in generation of HOST_NAME and TARGET_NAME
3592 (resp.).
3593
01208463
TT
35942013-06-24 Tom Tromey <tromey@redhat.com>
3595
3596 * common/create-version.sh: New file.
3597 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3598 create-version.sh.
3599 (HFILES_NO_SRCDIR): Use common/version.h.
3600 * version.in: Move to ...
3601 * common/version.in: ... here. Replace date with "DATE".
3602 * version.h: Move to ...
3603 * common/version.h: ... here.
3604
bb6b9a5e
JB
36052013-06-21 Joel Brobecker <brobecker@adacore.com>
3606
3607 * gdb/gnulib/Makefile.in: Update date in copyright header.
3608 * gdb/gnulib/configure.ac: Ditto.
3609 * gdb/gnulib/update-gnulib.sh: Ditto.
3610
c3b18ee7
JB
36112013-06-21 Joel Brobecker <brobecker@adacore.com>
3612
3613 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3614 "gdb/gnulib/import".
3615
85d3b769
WN
36162013-06-21 Will Newton <will.newton@linaro.org>
3617
3618 * doublest.c (ldfrexp): Remove function.
3619 (convert_doublest_to_floatformat): Call frexpl instead of
3620 ldfrexp.
3621
88b48903
WN
36222013-06-21 Will Newton <will.newton@linaro.org>
3623
3624 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3625 * gnulib/aclocal.m4: Regenerate.
3626 * gnulib/config.in: Regenerate.
3627 * gnulib/configure: Regenerate.
3628 * gnulib/import/Makefile.am: Update.
3629 * gnulib/import/Makefile.in: Update.
3630 * gnulib/import/m4/gnulib-cache.m4: Update.
3631 * gnulib/import/m4/gnulib-comp.m4: Update.
3632 * gnulib/import/float+.h: Import.
3633 * gnulib/import/float.c: Import.
3634 * gnulib/import/float.in.h: Import.
3635 * gnulib/import/fpucw.h: Import.
3636 * gnulib/import/frexp.c: Import.
3637 * gnulib/import/frexpl.c: Import.
3638 * gnulib/import/isnan.c: Import.
3639 * gnulib/import/isnand-nolibm.h: Import.
3640 * gnulib/import/isnand.c: Import.
3641 * gnulib/import/isnanl-nolibm.h: Import.
3642 * gnulib/import/isnanl.c: Import.
3643 * gnulib/import/itold.c: Import.
3644 * gnulib/import/m4/exponentd.m4: Import.
3645 * gnulib/import/m4/exponentl.m4: Import.
3646 * gnulib/import/m4/float_h.m4: Import.
3647 * gnulib/import/m4/fpieee.m4: Import.
3648 * gnulib/import/m4/frexp.m4: Import.
3649 * gnulib/import/m4/frexpl.m4: Import.
3650 * gnulib/import/m4/isnand.m4: Import.
3651 * gnulib/import/m4/isnanl.m4: Import.
3652 * gnulib/import/m4/math_h.m4: Import.
3653 * gnulib/import/math.c: Import.
3654 * gnulib/import/math.in.h: Import.
3655
4353c9e6
JK
36562013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3657
3658 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3659 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3660 signature_INTEL_edx comparisons.
3661
e3e06db3
DE
36622013-06-20 Doug Evans <dje@google.com>
3663
6ac97d4c
DE
3664 symtab/15652
3665 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3666 All callers updated.
3667 (open_dwp_file): If we can't find the dwp file, search the basename
3668 in debug-file-directory.
3669
93417882
DE
3670 * dwarf2read.c (struct dwp_file): Fix comment.
3671 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3672
e3e06db3
DE
3673 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3674 better.
3675
0878d0fa
YQ
36762013-06-20 Yao Qi <yao@codesourcery.com>
3677
3678 * breakpoint.c (create_breakpoint): Fix code indentation.
3679
023fa29b
YQ
36802013-06-20 Yao Qi <yao@codesourcery.com>
3681
3682 * breakpoint.c (create_breakpoints_sal_default): Remove
3683 parameter 'lsal'. Update declaration.
3684 (bkpt_create_breakpoints_sal): Caller update.
3685 (tracepoint_create_breakpoints_sal): Likewise.
3686
c898adb7
YQ
36872013-06-20 Pedro Alves <pedro@codesourcery.com>
3688 Yao Qi <yao@codesourcery.com>
3689
3690 * NEWS: Mention the new option '--skip-unavailable' of command
3691 -data-list-register-values.
3692 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3693 --skip-unavailable option. Adjust to use output_register.
3694 (output_register): Add new 'skip_unavailable' parameter.
3695 Handle it.
3696
4d157a3d
MF
36972013-06-19 Mike Frysinger <vapier@gentoo.org>
3698
3699 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3700 common/i386-gcc-cpuid.h.
3701 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3702 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3703 Copy the latest version from upstream gcc.
3704 * common/linux-btrace.c: Include i386-cpuid.h.
3705 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3706 call to i386_cpuid.
3707 (cpu_supports_btrace): Likewise.
3708 * go32-nat.c: Include i386-cpuid.h.
3709 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3710
1ce4db08
DE
37112013-06-19 Doug Evans <dje@google.com>
3712
3713 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3714 (get_section_index): Ditto.
3715
0e4777df
TT
37162013-06-19 Tom Tromey <tromey@redhat.com>
3717
3718 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3719 "dprintf" help.
3720
3190f0c6
DE
37212013-06-18 Doug Evans <dje@google.com>
3722
3723 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3724 before using it.
3725 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3726 Move test of cu_index closer to use. Print complaint if cu_index
3727 is bad.
3728
8b89a20a
JB
37292013-06-18 Joel Brobecker <brobecker@adacore.com>
3730
3731 * machoread.c (oso_vector): Delete this global.
3732 (macho_register_oso): Add new parameter "oso_vector_ptr".
3733 Use it instead of the "oso_vector" global.
3734 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3735 (macho_symfile_read): Use a local oso_vector, to be free'ed
3736 at the end of this function, in place of the old "oso_vector"
3737 global. Update various function calls accordingly. Use one
3738 single cleanup chain for the entire function.
3739
59b0c7c1
JB
37402013-06-18 Joel Brobecker <brobecker@adacore.com>
3741
937c708c 3742 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3743 DWARF2_PER_OBJFILE by uses of DATA instead.
3744
427cd150
TT
37452013-06-18 Tom Tromey <tromey@redhat.com>
3746
3747 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3748 argument.
3749 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3750 Special case signals other than GDB_SIGNAL_TRAP.
3751 (explains_signal_watchpoint): New function.
3752 (base_breakpoint_explains_signal): Add 'sig' argument.
3753 (initialize_breakpoint_ops): Set 'explains_signal' method for
3754 watchpoints.
3755 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3756 signal argument.
3757 (bpstat_explains_signal): Likewise.
3758 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3759
2d57700b
TT
37602013-06-18 Tom Tromey <tromey@redhat.com>
3761
3762 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3763
ac475191
TT
37642013-06-18 Tom Tromey <tromey@redhat.com>
3765
3766 * python/python.c (finish_python_initialization): Decref
3767 'pythondir' on failure path as well.
3768
5bd1ef56
TT
37692013-06-18 Tom Tromey <tromey@redhat.com>
3770
3771 PR symtab/15391:
3772 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3773 after taking bits_to_skip into account. Sign extend byte_offset.
3774 * utils.h (gdb_sign_extend): Declare.
3775 * utils.c (gdb_sign_extend): New function.
3776
92fac807
JK
37772013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3778
3779 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3780
2d503272
PM
37812013-06-17 Pierre Muller <muller@sourceware.org>
3782
3783 * corelow.c (core_open): Print GDB signal name instead of target
3784 signal number.
3785
6916fd98
MF
37862013-06-17 Mike Frysinger <vapier@gentoo.org>
3787
3788 * .gitignore: Add /gcore.
3789
9c02c129
DE
37902013-06-13 Doug Evans <dje@google.com>
3791
3792 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3793 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3794
d0548fa2
PM
37952013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3796
3797 * stack.c (backtrace_command_1): Fix indentation.
3798
22128028
JB
37992013-06-11 Joel Brobecker <brobecker@adacore.com>
3800
3801 * window-nat.c (thread_rec): Add missing empty line after
3802 local variable declaration.
3803
2ed3e009
JB
38042013-06-11 Joel Brobecker <brobecker@adacore.com>
3805
3806 * windows-nat.c (thread_rec): Revert format used to print
3807 error code returned by SuspendThread from %d back to %u.
3808
0c3d84be
JB
38092013-06-11 Joel Brobecker <brobecker@adacore.com>
3810
3811 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3812 ID in debug trace.
3813 (get_windows_debug_event): Likewise, for all debug traces.
3814
80e88e1a
JB
38152013-06-11 Joel Brobecker <brobecker@adacore.com>
3816
3817 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3818 warning message.
3819
1edebdbf
YQ
38202013-06-08 Pedro Alves <pedro@codesourcery.com>
3821 Yao Qi <yao@codesourcery.com>
3822
3823 * mi/mi-main.c (get_register): Remove declaration.
3824 (output_register): Declare.
3825 (mi_cmd_data_list_register_values): Remove local variable
3826 'tuple_cleanup'. Move some code into output_register.
3827 (get_register): Renamed to ...
3828 (output_register): ... this. Output the register's
3829 "number" ui_out tuple here.
3830
47d48711
PA
38312013-06-07 Pedro Alves <palves@redhat.com>
3832
3833 * darwin-nat.c: Fix formating in copyright header.
3834 * darwin-nat.h: Likewise.
3835 * gnu-nat.c: Likewise.
3836 * machoread.c: Likewise.
3837
3aee8918
PA
38382013-06-07 Pedro Alves <palves@redhat.com>
3839
5f2b57b5 3840 PR server/14823
3aee8918
PA
3841 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3842 static. Output a global target description pointer.
3843 (init_registers_${name}): Adjust to initialize a
3844 target description structure.
3845
fe8400b4
WN
38462013-06-07 Will Newton <will.newton@linaro.org>
3847
3848 * printcmd.c (build_address_symbolic): Call
3849 gdbarch_addr_bits_remove for text minimal symbols.
3850
20df6206
WN
38512013-06-07 Will Newton <will.newton@linaro.org>
3852
3853 * MAINTAINERS: Add myself to Write After Approval.
3854
aef525cb
YQ
38552013-06-07 Yao Qi <yao@codesourcery.com>
3856
3857 * tracepoint.c (start_tracing): Move code to ...
3858 (trace_reset_local_state): ... here. New.
3859 (disconnect_tracing): Don't call set_current_traceframe,
3860 set_tracepoint_num, and set_traceframe_context. Call
3861 trace_reset_local_state instead.
3862 (tfile_close): Call trace_reset_local_state.
3863 * ctf.c (ctf_close): Likewise.
3864 * remote.c (remote_close): Likewise.
3865 * tracepoint.h (trace_reset_local_state): Declare.
3866
d2415c6c
DE
38672013-06-06 Doug Evans <dje@google.com>
3868
3869 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3870 and fix header docs.
3871
69fc87c2
DE
38722013-06-05 Doug Evans <dje@google.com>
3873 Keith Seitz <keiths@redhat.com>
3874
3875 PR 15519
3876 * cp-namespace.c (find_symbol_in_baseclass): Call
3877 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3878 Check result of call to lookup_symbol_static.
3879 Call lookup_static_symbol_aux unconditionally.
3880 Call check_typedef on base types before accessing them.
3881 (cp_lookup_nested_symbol): Fix comment.
3882
a513d1e8
LM
38832013-06-05 Luis Machado <lgustavo@codesourcery.com>
3884
3885 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3886 minimal symbols pointing to function descriptors.
3887
351a6f02
TT
38882013-06-05 Tom Tromey <tromey@redhat.com>
3889
3890 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3891
5e1b953b 38922013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3893 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3894
3895 * remote.c (remote_wait_as): Restore signal handler before returning
3896 when GDB gets a notification.
3897
f9e14852
GB
38982013-06-04 Gary Benson <gbenson@redhat.com>
3899
8445cbf1 3900 PR 2328
f9e14852
GB
3901 * breakpoint.h (handle_solib_event): Moved function declaration
3902 to solib.h.
3903 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3904 (bpstat_stop_status): Pass new argument to handle_solib_event.
3905 * solib.h (update_solib_breakpoints): New function declaration.
3906 (handle_solib_event): Moved function declaration from
3907 breakpoint.h.
3908 * solib.c (update_solib_breakpoints): New function.
3909 (handle_solib_event): Moved function from breakpoint.c.
3910 Updated to call solib_ops->handle_event if not NULL.
3911 * solist.h (target_so_ops): New fields "update_breakpoints" and
3912 "handle_event".
3913 * infrun.c (set_stop_on_solib_events): New function.
3914 (_initialize_infrun): Use the above for "set
3915 stop-on-solib-events".
3916 (handle_inferior_event): Pass new argument to handle_solib_event.
3917 * solib-svr4.c (probe.h): New include.
3918 (svr4_free_library_list): New forward declaration.
3919 (probe_action): New enum.
3920 (probe_info): New struct.
3921 (probe_info): New static variable.
3922 (NUM_PROBES): New definition.
3923 (svr4_info): New fields "using_xfer", "probes_table" and
3924 "solib_list".
3925 (free_probes_table): New function.
3926 (free_solib_list): New function.
3927 (svr4_pspace_data_cleanup): Free probes table and solib list.
3928 (svr4_copy_library_list): New function.
3929 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3930 (svr4_read_so_list): New parameter "prev_lm".
3931 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3932 (svr4_current_sos): New function.
3933 (probe_and_action): New struct.
3934 (hash_probe_and_action): New function.
3935 (equal_probe_and_action): Likewise.
3936 (register_solib_event_probe): Likewise.
3937 (solib_event_probe_at): Likewise.
3938 (solib_event_probe_action): Likewise.
3939 (solist_update_full): Likewise.
3940 (solist_update_incremental): Likewise.
3941 (disable_probes_interface_cleanup): Likewise.
3942 (svr4_handle_solib_event): Likewise.
3943 (svr4_update_solib_event_breakpoint): Likewise.
3944 (svr4_update_solib_event_breakpoints): Likewise.
3945 (svr4_create_solib_event_breakpoints): Likewise.
3946 (enable_break): Free probes table before creating breakpoints.
3947 Use svr4_create_solib_event_breakpoints to create breakpoints.
3948 (svr4_solib_create_inferior_hook): Free the solib list.
3949 (_initialize_svr4_solib): Initialise
3950 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3951
ced63ec0
GB
39522013-06-04 Gary Benson <gbenson@redhat.com>
3953
3954 * target.h (target_ops): New field
3955 "to_augmented_libraries_svr4_read".
3956 (target_augmented_libraries_svr4_read): New macro.
3957 * target.c (update_current_target): Handle
3958 to_augmented_libraries_svr4_read.
3959 * remote.c (remote_state): New field
3960 "augmented_libraries_svr4_read".
3961 (remote_augmented_libraries_svr4_read_feature): New function.
3962 (remote_protocol_features): Add entry for
3963 "augmented-libraries-svr4-read".
3964 (remote_augmented_libraries_svr4_read): New function.
3965 (init_remote_ops): Initialize
3966 remote_ops.to_augmented_libraries_svr4_read.
3967
7f91dbec
GB
39682013-06-04 Gary Benson <gbenson@redhat.com>
3969
3970 * NEWS: Update.
3971
607ece04
GB
39722013-06-04 Gary Benson <gbenson@redhat.com>
3973
3974 * objfiles.h (inhibit_section_map_updates): New function
3975 declaration.
3976 (resume_section_map_updates): Likewise.
3977 (resume_section_map_updates_cleanup): Likewise.
3978 * objfiles.c (objfile_pspace_info): Removed field
3979 "objfiles_changed_p". New fields "new_objfiles_available",
3980 "section_map_dirty" and "inhibit_updates".
3981 (allocate_objfile): Set new_objfiles_available.
3982 (free_objfile): Set section_map_dirty.
3983 (objfile_relocate1): Likewise.
3984 (in_plt_section): Likewise.
3985 (find_pc_section): Update the conditions under which the
3986 section map will be updated.
3987 (inhibit_section_map_updates): New function.
3988 (resume_section_map_updates): Likewise.
3989 (resume_section_map_updates_cleanup): Likewise.
3990
9ee6a5ac
GB
39912013-06-04 Gary Benson <gbenson@redhat.com>
3992
3993 * probe.h (get_probe_argument_count): New declaration.
3994 (evaluate_probe_argument): Likewise.
3995 * probe.c (get_probe_argument_count): New function.
3996 (evaluate_probe_argument): Likewise.
3997 (probe_safe_evaluate_at_pc): Use the above new functions.
3998
845d4708
AM
39992013-06-04 Alan Modra <amodra@gmail.com>
4000
4001 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4002 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4003 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4004 target mem reads on optional insns.
4005 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4006 ppc_insns_match_pattern calls.
4007 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4008 Add match for power7 thread safety insns, and new order of
4009 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4010 invocation in comment, and update rest of comment.
4011 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4012 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4013 (ppc64_standard_linkage2_target): Update insn offsets.
4014 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4015 stubs first. Update calls.
4016
404e278f
YQ
40172013-06-04 Yao Qi <yao@codesourcery.com>
4018
4019 * solib.c (solib_find): Don't need dir separator if path has
4020 drive spec.
4021
f6aea118
JB
40222013-06-03 Joel Brobecker <brobecker@adacore.com>
4023
4024 Revert (indirectly causes a SIGSEGV):
4025 * machoread.c (macho_symfile_read): Assign first cleanup to
4026 'back_to'.
4027
87967e27
YQ
40282013-06-03 Yao Qi <yao@codesourcery.com>
4029
4030 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4031 mi-parse.c. Make them static.
4032 (mi_all_values): Likewise.
4033 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4034 mi_parse_print_values. Make it external.
4035 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4036 Remove the declarations.
4037 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4038 * mi/mi-parse.h (mi_parse_print_values): Declare.
4039 * mi/mi-cmd-stack.c: Include mi-parse.h.
4040 (parse_print_values): Remove
4041 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4042 of parse_print_values.
4043 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4044
3ca73e0c
YQ
40452013-05-31 Pedro Alves <pedro@codesourcery.com>
4046 Yao Qi <yao@codesourcery.com>
4047
4048 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4049 (encode_actions): Move code to ...
4050 (all_tracepoint_actions_and_cleanup): ... here. New.
4051 (trace_dump_command): Likewise.
4052
4e993a19
TT
40532013-05-30 Tom Tromey <tromey@redhat.com>
4054
4055 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4056
e3b76b4f
TT
40572013-05-30 Tom Tromey <tromey@redhat.com>
4058
4059 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4060 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4061 'old_chain' argument. Add 'parser_result' argument.
4062 (gdb_xml_create_parser_and_cleanup): Remove old version.
4063 (gdb_xml_parse_quick): Update.
4064 (xml_process_xincludes): Update.
4065 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4066 declare.
4067
db26349c
TT
40682013-05-30 Tom Tromey <tromey@redhat.com>
4069
4070 * probe.c (collect_probes): Check arguments for NULL before
4071 calling compile_rx_or_error.
4072 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4073 Remove NULL return.
4074
77f9e713
TT
40752013-05-30 Tom Tromey <tromey@redhat.com>
4076
4077 * infrun.c (adjust_pc_after_break): Introduce an outer null
4078 cleanup.
4079
45475de7
TT
40802013-05-30 Tom Tromey <tromey@redhat.com>
4081
4082 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4083
ac5007fd
TT
40842013-05-30 Tom Tromey <tromey@redhat.com>
4085
4086 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4087 for 'old_chain'. Do not check 'head' before processing
4088 cleanups.
4089
cd82eddc
TT
40902013-05-30 Tom Tromey <tromey@redhat.com>
4091
4092 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4093 "cleanup_tuple".
4094
57cee33a
TT
40952013-05-30 Tom Tromey <tromey@redhat.com>
4096
4097 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4098 inner scope. Unconditionally call do_cleanups.
4099
795d915c
TT
41002013-05-30 Tom Tromey <tromey@redhat.com>
4101
4102 * source.c (find_and_open_source): Call do_cleanups.
4103
1fc3cf4a
TT
41042013-05-30 Tom Tromey <tromey@redhat.com>
4105
4106 * linux-thread-db.c (thread_db_load_search): Unconditionally
4107 call do_cleanups.
4108
e35ac9bf
TT
41092013-05-30 Tom Tromey <tromey@redhat.com>
4110
4111 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4112 for 'cleanup'; instead use a later one.
4113
f3300387
TT
41142013-05-30 Tom Tromey <tromey@redhat.com>
4115
4116 * python/py-breakpoint.c (bppy_get_commands): Use
4117 explicit, unconditional return.
4118 * python/py-frame.c (frapy_read_var): Likewise.
4119 * python/python.c (gdbpy_decode_line): Likewise.
4120
c27e16e3
TT
41212013-05-30 Tom Tromey <tromey@redhat.com>
4122
4123 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4124 do_cleanups on all return paths.
4125
5ae85e44
TT
41262013-05-30 Tom Tromey <tromey@redhat.com>
4127
4128 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4129
73b8d9da
TT
41302013-05-30 Tom Tromey <tromey@redhat.com>
4131
4132 * stabsread.c (read_struct_type): Call do_cleanups along
4133 all return paths.
4134
7d266584
MR
41352013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4136
4137 * mips-linux-tdep.c: Adjust formatting throughout.
4138
0f900f54
TT
41392013-05-30 Tom Tromey <tromey@redhat.com>
4140
4141 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4142 along all return paths.
4143
a991ac28
TT
41442013-05-30 Tom Tromey <tromey@redhat.com>
4145
4146 * symfile.c (find_separate_debug_file): Call do_cleanups
4147 along all return paths.
4148
1abaf042
TT
41492013-05-30 Tom Tromey <tromey@redhat.com>
4150
4151 * symtab.c (search_symbols): Introduce a null cleanup for
4152 'retval_chain'.
4153
edefe1da
TT
41542013-05-30 Tom Tromey <tromey@redhat.com>
4155
4156 * python/py-value.c (valpy_binop): Call do_cleanups before
4157 exiting loop.
4158
54f72dcc
TT
41592013-05-30 Tom Tromey <tromey@redhat.com>
4160
4161 * python/py-prettyprint.c (print_children): Remove extra
4162 do_cleanups call.
4163
af1c6971
TT
41642013-05-30 Tom Tromey <tromey@redhat.com>
4165
4166 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4167 all return paths.
4168
b862ce75
TT
41692013-05-30 Tom Tromey <tromey@redhat.com>
4170
4171 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4172 along all return paths.
4173
e12fefc8
TT
41742013-05-30 Tom Tromey <tromey@redhat.com>
4175
4176 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4177 call do_cleanups.
4178
4867f990
TT
41792013-05-30 Tom Tromey <tromey@redhat.com>
4180
4181 * varobj.c (c_value_of_root): Call do_cleanups along all
4182 return paths.
4183
4fd2d6af
TT
41842013-05-30 Tom Tromey <tromey@redhat.com>
4185
4186 * tracepoint.c (trace_dump_command): Unconditionally call
4187 do_cleanups.
4188
752eb8b4
TT
41892013-05-30 Tom Tromey <tromey@redhat.com>
4190
4191 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4192 do_cleanups earlier.
4193
e42d0aa5
TT
41942013-05-30 Tom Tromey <tromey@redhat.com>
4195
4196 * machoread.c (macho_symfile_read): Assign first cleanup to
4197 'back_to'.
4198
4bbc010a
TT
41992013-05-30 Tom Tromey <tromey@redhat.com>
4200
4201 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4202
b9635925
TT
42032013-05-30 Tom Tromey <tromey@redhat.com>
4204
4205 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4206
25f43500
TT
42072013-05-30 Tom Tromey <tromey@redhat.com>
4208
4209 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4210 call discard_cleanups.
4211 (inf_ptrace_attach): Likewise.
4212
d6a2e54a
TT
42132013-05-30 Tom Tromey <tromey@redhat.com>
4214
4215 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4216 return paths.
4217 (mips_initialize): Likewise.
4218 (common_open): Call do_cleanups.
4219
48be7c1b
TT
42202013-05-30 Tom Tromey <tromey@redhat.com>
4221
4222 * utils.c (internal_vproblem): Call do_cleanups.
4223
e61727ab
TT
42242013-05-30 Tom Tromey <tromey@redhat.com>
4225
4226 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4227
b81b921f
TT
42282013-05-30 Tom Tromey <tromey@redhat.com>
4229
4230 * cli/cli-script.c (setup_user_args): Don't return after error.
4231
fe48dfb1
TT
42322013-05-30 Tom Tromey <tromey@redhat.com>
4233
4234 * somread.c (som_symtab_read): Call do_cleanups.
4235
27833de7
TT
42362013-05-30 Tom Tromey <tromey@redhat.com>
4237
4238 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4239
5b3fca71
TT
42402013-05-30 Tom Tromey <tromey@redhat.com>
4241
4242 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4243 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4244 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4245 * source.c (show_substitute_path_command): Call do_cleanups.
4246 (unset_substitute_path_command, set_substitute_path_command):
4247 Likewise.
4248 * symfile.c (load_command): Call do_cleanups.
4249
af83e3f8
TT
42502013-05-30 Tom Tromey <tromey@redhat.com>
4251
4252 * contrib/cleanup_check.py: New file.
4253 * contrib/gcc-with-excheck: Add option parsing.
4254
564eac42
JB
42552013-05-30 Joel Brobecker <brobecker@adacore.com>
4256
4257 * windows-nat.c (windows_delete_thread): Add missing space
4258 in cast expression.
4259
47902076
HAQ
42602013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4261
4262 * inferior.c (top level): Include tilde.h.
4263 (add_inferior_command): Call tilde_expand on the value of 'exec'
4264 argument.
4265
23da373a
YQ
42662013-05-30 Pedro Alves <pedro@codesourcery.com>
4267 Yao Qi <yao@codesourcery.com>
4268
4269 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4270 Caller update.
4271 (encode_actions): Likewise.
4272 * remote.c (remote_download_tracepoint): Caller update.
4273 * tracepoint.h (encode_actions): Update declaration.
4274
a6e6f791
PA
42752013-05-30 Pedro Alves <palves@redhat.com>
4276
4277 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4278 pointer.
4279
36d25514
YQ
42802013-05-30 Yao Qi <yao@codesourcery.com>
4281
4282 * remote.c (remote_check_symbols): Remove unused parameter
4283 'objfile'.
4284 Declaration update.
4285 (remote_start_remote, remote_new_objfile): Caller update.
4286
62a813cc
YQ
42872013-05-30 Yao Qi <yao@codesourcery.com>
4288
4289 * mi/mi-cmds.c (mi_cmds): Define MI command
4290 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4291 DEF_MI_CMD_CLI.
4292
28439a30
PA
42932013-05-29 Pedro Alves <palves@redhat.com>
4294
4295 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4296 (remote_insert_watchpoint, remote_remove_watchpoint)
4297 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4298 (remote_verify_memory, compare_sections_command)
4299 (remote_search_memory): Set the general process/thread on the
4300 remote side.
4301
6ac1c082
PA
43022013-05-29 Pedro Alves <palves@redhat.com>
4303
4304 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4305 (_initialize_aarch64_tdep): Don't call
4306 initialize_tdesc_aarch64_without_fpu.
4307 * features/Makefile (WHICH): Remove reference to
4308 aarch64-without-fpu.
4309 * features/aarch64-without-fpu.c: Delete file.
4310 * regformats/aarch64-without-fpu.dat: Delete file.
4311
a73e3634
YQ
43122013-05-28 Yao Qi <yao@codesourcery.com>
4313
4314 * tracepoint.c (stringify_collection_list): Remove parameter
4315 'string'.
4316 (encode_actions): Caller update. Remove local variables.
4317
c0ea94eb
YQ
43182013-05-24 Yao Qi <yao@codesourcery.com>
4319
4320 * tracepoint.c (TFILE_PID): Remove.
4321 (tfile_open): Don't add thread and inferior.
4322 (tfile_close): Don't set 'inferior_ptid'. Don't call
4323 exit_inferior_silent.
4324 (tfile_thread_alive): Remove.
4325 (init_tfile_ops): Don't set field 'to_thread_alive' of
4326 tfile_ops.
4327
20d7f211
DE
43282013-05-23 Doug Evans <dje@google.com>
4329
4330 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4331
8658d16d
PA
43322013-05-23 Pedro Alves <palves@redhat.com>
4333
4334 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4335 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4336 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4337 Only define if HAVE_SOCKETS is defined.
4338 * configure.ac: Check for sys/socket.h.
4339 * config.in, configure: Regenerate.
4340
21aa081e
PA
43412013-05-23 Pedro Alves <palves@redhat.com>
4342
4343 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4344 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4345 printing uint32_t variables.
4346
c2d6af84
PA
43472013-05-23 Pedro Alves <palves@redhat.com>
4348
4349 * NEWS: Mention GDBserver range stepping support.
4350
c1e36e3e
PA
43512013-05-23 Yao Qi <yao@codesourcery.com>
4352 Pedro Alves <palves@redhat.com>
4353
4354 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4355 field.
4356 * infcmd.c (step_once, until_next_command): Enable range stepping.
4357 * infrun.c (displaced_step_prepare): Disable range stepping.
4358 (resume): Disable range stepping if stepping over a breakpoint or
4359 we have software watchpoints. If range stepping is enabled,
4360 assert the thread is in the stepping range.
4361 (clear_proceed_status_thread): Clear may_range_step.
4362 (handle_inferior_event): Disable range stepping as soon as we know
4363 the thread that hit the event. Re-enable it whenever we're going
4364 to step with a step range.
4365 * remote.c (struct vCont_action_support) <r>: New field.
4366 (use_range_stepping): New global.
4367 (remote_vcont_probe): Handle 'r' action.
4368 (append_resumption): Append an 'r' action if the thread may range
4369 step.
4370 (show_range_stepping): New function.
4371 (set_range_stepping): New function.
4372 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4373 'set range-stepping' and 'show range-stepping' commands.
4374 * NEWS: Mention range stepping, the new vCont;r action, and the
4375 new "set/show range-stepping" commands.
4376
d458bd84
PA
43772013-05-23 Yao Qi <yao@codesourcery.com>
4378 Pedro Alves <palves@redhat.com>
4379
4380 * remote.c (struct vCont_action_support): New struct.
4381 (struct remote_state) <support_vCont_t>: Remove field.
4382 <vCont_actions_support>: New field.
4383 (remote_vcont_probe, remote_stop_ns): Update.
4384
ce4c476a
PA
43852013-05-23 Yao Qi <yao@codesourcery.com>
4386 Pedro Alves <palves@redhat.com>
4387
4388 * gdbthread.h (pc_in_thread_step_range): New declaration.
4389 * thread.c (pc_in_thread_step_range): New function.
4390 * infrun.c (handle_inferior_event): Use it.
4391
ce70887a
JB
43922013-05-23 Joel Brobecker <brobecker@adacore.com>
4393
4394 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4395 of sprintf.
4396
55b87a52
KS
43972013-05-22 Keith Seitz <keiths@redhat.com>
4398
4399 * ada-lang.c (is_known_support_routine): Add explicit free of
4400 'func_name' from find_frame_funname.
4401 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4402 for func_name from find_frame_funname.
4403 * python/py-frame.c (frapy_name): Add explicit free of
4404 'name' from find_frame_funname.
4405 * stack.c (find_frame_funname): Add comment explaining that
4406 funcp must be freed by the caller.
4407 Return copy of symbol names instead of pointers.
4408 (print_frame): Add a cleanup for 'funname' from
4409 find_frame_funname.
4410 * stack.h (find_frame_funname): Remove "const" from
4411 'funname' parameter.
4412
5f2e6b00
TT
44132013-05-22 Tom Tromey <tromey@redhat.com>
4414
4415 PR c++/15401:
4416 * c-valprint.c (c_value_print): Use value_addr for
4417 references. Convert back to reference type with value_ref.
4418
d85c4847
EZ
44192013-05-22 Eli Zaretskii <eliz@gnu.org>
4420
4421 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4422 unloaded DLL, it will be done by handle_solib_event. See
4423 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4424 details.
4425
54eb231c
PM
44262013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4427
4428 * ui-out.c: Create typedef ui_out_level_p and define vector
4429 operations for that type.
4430 (struct ui_out): Use a vector instead of an array.
4431 (current_level): Return level from a vector.
4432 (push_level): Create a level in a vector.
4433 (pop_level): Delete a level in a vector.
4434 (ui_out_new): Create initial level zero level, and store in a
4435 vector.
4436 (ui_out_destroy): Add vector cleanup.
4437
ac90359c
PA
44382013-05-22 Pedro Alves <palves@redhat.com>
4439
4440 * python/python-internal.h (gdb_Py_DECREF): Tag with
4441 "ARI: editCase function".
4442
6dcc1893
PP
44432013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4444
4445 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4446
c8c735b9
PA
44472013-05-21 Pedro Alves <palves@redhat.com>
4448
4449 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4450 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4451 * python/py-utils.c (py_decref): Don't check for NULL before
4452 calling Py_DECREF.
4453
1915daeb
PA
44542013-05-21 Pedro Alves <palves@redhat.com>
4455
4456 * python/py-utils.c (py_decref): Remove extra braces.
4457 (gdb_pymodule_addobject): Remove extra braces.
4458 * python-internal.h (gdb_Py_DECREF): New static inline function.
4459 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4460
bd9673a4
PW
44612013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4462
4463 * breakpoints.c (detach_breakpoints): Do not
4464 detach breakpoints locations with loc_type bp_loc_other.
4465
ff6009d0
JK
44662013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4467
4468 Workaround Python 2.6.
4469 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4470 a block.
4471
3641da11
JK
44722013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4473
4474 Code cleanup: constification.
4475 * solib.c (solib_ops): Make return type and ops variable type const.
4476 (set_solib_ops): Make the new_ops parameter and ops variable const.
4477 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4478 (solib_add, solib_keep_data_in_core, clear_solib)
4479 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4480 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4481 const.
4482 * solib.h (set_solib_ops): Make the new_ops parameter const.
4483
776af39e
JB
44842013-05-21 Joel Brobecker <brobecker@adacore.com>
4485
4486 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4487 variable.
4488 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4489 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4490 (SYSTEM_GDBINIT_FILES): New variables.
4491 (all): Add stamp-system-gdbinit.
4492 (stamp-system-gdbinit): New rule.
4493 (clean-system-gdbinit, install-system-gdbinit)
4494 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4495 (install-only): Add dependency on install-system-gdbinit.
4496 (uninstall): Add dependency on uninstall-system-gdbinit.
4497 (clean): Add dependency on clean-system-gdbinit.
4498 * system-gdbinit/elinos.py: New file.
4499 * system-gdbinit/wrs-linux.py: New file.
4500
1509e573
JB
45012013-05-21 Joel Brobecker <brobecker@adacore.com>
4502
4503 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4504
c5867ab6
HZ
45052013-05-21 Hui Zhu <hui@codesourcery.com>
4506
4507 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4508 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4509 * mi/mi-cmd-break.c (ctype.h): New include.
4510 (gdb_obstack.h): New include.
4511 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4512 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4513 (mi_cmd_dprintf_insert): New.
4514 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4515 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4516
7d38e38f
TT
45172013-05-20 Tom Tromey <tromey@redhat.com>
4518
4519 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4520
97b77b39
TT
45212013-05-20 Tom Tromey <tromey@redhat.com>
4522
4523 * python/py-value.c (valpy_get_dynamic_type): Simplify
4524 dynamic_type assignment. Use Py_XINCREF.
4525
53e66479
TT
45262013-05-20 Tom Tromey <tromey@redhat.com>
4527
4528 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4529
dcf87832
TT
45302013-05-20 Tom Tromey <tromey@redhat.com>
4531
4532 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4533 (gdbpy_selected_frame): Move object-construction code
4534 out of TRY_CATCH.
4535
aa36459a
TT
45362013-05-20 Tom Tromey <tromey@redhat.com>
4537
4538 * python/py-arch.c (gdbpy_initialize_arch): Use
4539 gdb_pymodule_addobject.
4540 * python/py-block.c (gdbpy_initialize_blocks): Use
4541 gdb_pymodule_addobject.
4542 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4543 gdb_pymodule_addobject.
4544 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4545 gdb_pymodule_addobject.
4546 * python/py-event.c (gdbpy_initialize_event_generic): Use
4547 gdb_pymodule_addobject.
4548 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4549 gdb_pymodule_addobject.
4550 * python/py-evts.c (add_new_registry): Use
4551 gdb_pymodule_addobject.
4552 (gdbpy_initialize_py_events): Likewise.
4553 * python/py-finishbreakpoint.c
4554 (gdbpy_initialize_finishbreakpoints): Use
4555 gdb_pymodule_addobject.
4556 * python/py-frame.c (gdbpy_initialize_frames): Use
4557 gdb_pymodule_addobject.
4558 * python/py-function.c (gdbpy_initialize_functions): Use
4559 gdb_pymodule_addobject.
4560 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4561 gdb_pymodule_addobject.
4562 * python/py-infthread.c (gdbpy_initialize_thread): Use
4563 gdb_pymodule_addobject.
4564 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4565 gdb_pymodule_addobject.
4566 * python/py-param.c (gdbpy_initialize_parameters): Use
4567 gdb_pymodule_addobject.
4568 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4569 gdb_pymodule_addobject.
4570 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4571 gdb_pymodule_addobject.
4572 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4573 gdb_pymodule_addobject.
4574 * python/py-type.c (gdbpy_initialize_types): Use
4575 gdb_pymodule_addobject.
4576 * python/py-utils.c (gdb_pymodule_addobject): New function.
4577 * python/py-value.c (gdbpy_initialize_values): Use
4578 gdb_pymodule_addobject.
4579 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4580 * python/python.c (_initialize_python): Use
4581 gdb_pymodule_addobject.
4582
3d4a3c3e
TT
45832013-05-20 Tom Tromey <tromey@redhat.com>
4584
4585 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4586 * python/py-param.c (get_set_value, get_show_value): Use
4587 explicit decrefs.
4588 * python/python.c (start_type_printers, apply_type_printers):
4589 Use explicit decrefs.
4590
72ff8829
TT
45912013-05-20 Tom Tromey <tromey@redhat.com>
4592
4593 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4594 incref the module.
4595
02146ba5
TT
45962013-05-20 Tom Tromey <tromey@redhat.com>
4597
4598 * python/python.c (gdbpy_run_events): Decref the result
4599 of PyObject_CallObject.
4600
33ee792f
TT
46012013-05-20 Tom Tromey <tromey@redhat.com>
4602
4603 * python/py-symtab.c (set_sal): Use
4604 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4605 (symtab_and_line_to_sal_object): Update.
4606
fcb49fc8
TT
46072013-05-20 Tom Tromey <tromey@redhat.com>
4608
4609 * python/py-param.c (compute_enum_values): Decref 'item'.
4610
0646da15
TT
46112013-05-20 Tom Tromey <tromey@redhat.com>
4612
4613 * mi/mi-main.c: Include python-internal.h.
4614 (mi_cmd_list_features): Check gdb_python_initialized.
4615 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4616 (python_inferior_exit, python_new_objfile, add_thread_object)
4617 (delete_thread_object, py_free_inferior): Check
4618 gdb_python_initialized.
4619 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4620 gdb_python_initialized.
4621 * python/py-type.c (save_objfile_types): Check
4622 gdb_python_initialized.
4623 * python/python-internal.h (gdb_python_initialized): Declare.
4624 * python/python.c (ensure_python_env): Throw exception if
4625 Python not initialized.
4626 (before_prompt_hook, source_python_script_for_objfile)
4627 (start_type_printers, apply_type_printers,
4628 free_type_printers): Check gdb_python_initialized.
4629 * varobj.c (varobj_get_display_hint)
4630 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4631 (install_new_value_visualizer, varobj_set_visualizer)
4632 (value_get_print_value): Check gdb_python_initialized.
4633
999633ed
TT
46342013-05-20 Tom Tromey <tromey@redhat.com>
4635
4636 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4637 Check errors.
4638 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4639 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4640 Check errors.
4641 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4642 Check errors.
4643 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4644 Check errors.
4645 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4646 Check errors.
4647 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4648 init function to return 'int'.
4649 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4650 Return 'int'. Check errors.
4651 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4652 Check errors.
4653 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4654 Return 'int'. Check errors.
4655 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4656 Check errors.
4657 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4658 Check errors.
4659 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4660 Check errors.
4661 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4662 Check errors.
4663 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4664 Check errors.
4665 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4666 Check errors.
4667 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4668 Check errors.
4669 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4670 Check errors.
4671 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4672 Check errors.
4673 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4674 Check errors.
4675 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4676 Check errors.
4677 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4678 Check errors.
4679 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4680 Check errors.
4681 * python/python-internal.h (gdbpy_initialize_auto_load,
4682 gdbpy_initialize_values, gdbpy_initialize_frames,
4683 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4684 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4685 gdbpy_initialize_blocks, gdbpy_initialize_types,
4686 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4687 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4688 gdbpy_initialize_finishbreakpoints,
4689 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4690 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4691 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4692 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4693 gdbpy_initialize_signal_event,
4694 gdbpy_initialize_breakpoint_event,
4695 gdbpy_initialize_continue_event,
4696 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4697 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4698 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4699 * python/python.c (gdb_python_initialized): New global.
4700 (gdbpy_initialize_events): Return 'int'. Check errors.
4701 (_initialize_python): Check errors. Set
4702 gdb_python_initialized.
4703
18868860
TT
47042013-05-20 Tom Tromey <tromey@redhat.com>
4705
4706 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4707 Decref the reslut of PyObject_CallMethod.
4708
9f4ff0c2
TT
47092013-05-20 Tom Tromey <tromey@redhat.com>
4710
4711 * python/py-event.c (gdbpy_initialize_event_generic): Return
4712 early if PyType_Ready fails.
4713
0d3a2e8a
TT
47142013-05-20 Tom Tromey <tromey@redhat.com>
4715
4716 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4717 as 'default' in the switch.
4718
b86af38a
TT
47192013-05-20 Tom Tromey <tromey@redhat.com>
4720
4721 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4722 get_addr_from_python calls out of TRY_CATCH.
4723 (infpy_write_memory, infpy_search_memory): Likewise.
4724 * python/py-utils.c (get_addr_from_python): Return negative
4725 value on error. Use TRY_CATCH.
4726 * python/python-internal.h (get_addr_from_python): Use
4727 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4728
c127ec58
TT
47292013-05-20 Tom Tromey <tromey@redhat.com>
4730
4731 * python/py-event.c (evpy_emit_event): Decref the
4732 result of PyObject_CallFunctionObjArgs.
4733
ba327838
TT
47342013-05-20 Tom Tromey <tromey@redhat.com>
4735
4736 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4737 Correctly decref.
4738
d8191432
TT
47392013-05-20 Tom Tromey <tromey@redhat.com>
4740
4741 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4742
5d153bd1
TT
47432013-05-20 Tom Tromey <tromey@redhat.com>
4744
4745 * python/py-event.h (gdbpy_initialize_event_generic): Use
4746 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4747 * python/py-evts.c (add_new_registry): Use
4748 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4749 * python/python-internal.h
4750 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4751
56cc411c
TT
47522013-05-20 Tom Tromey <tromey@redhat.com>
4753
4754 * python/py-arch.c (archpy_disassemble): Update.
4755 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4756 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4757 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4758 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4759 macro.
4760 (GDB_PY_HANDLE_EXCEPTION): Update.
4761 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4762
8919e174
TT
47632013-05-20 Tom Tromey <tromey@redhat.com>
4764
4765 * python/python-internal.h (events_object_type): Remove.
4766
9b08f225
TT
47672013-05-20 Tom Tromey <tromey@redhat.com>
4768
f5aee5ee
AM
4769 * python/py-event.h (evpy_emit_event): Use
4770 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4771 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4772 New macro.
9b08f225 4773
f04010ff
TT
47742013-05-20 Tom Tromey <tromey@redhat.com>
4775
4776 * py-evtregistry.c (create_event_object): Decref
4777 eventregistry_object if PyList_New fails.
4778
3919fd96
TT
47792013-05-20 Tom Tromey <tromey@redhat.com>
4780
4781 * py-cmd.c (gdbpy_string_to_argv): Check result of
4782 PyList_New.
4783
0430e8cb
TT
47842013-05-20 Tom Tromey <tromey@redhat.com>
4785
4786 * python/python.c (before_prompt_hook): Add cleanup to
4787 decref 'hook'.
4788
764123e4
TT
47892013-05-20 Tom Tromey <tromey@redhat.com>
4790
4791 * python/py-function.c (fnpy_init): Decref result of
4792 PyObject_GetAttrString.
4793
634c58be
TT
47942013-05-20 Tom Tromey <tromey@redhat.com>
4795
4796 * python/py-threadevent.c (get_event_thread): Use
4797 CPYCHECKER_RETURNS_BORROWED_REF.
4798 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4799 New define.
4800 (pspace_to_pspace_object, objfile_to_objfile_object)
4801 (find_thread_object): Use it.
4802
62eec1a5
TT
48032013-05-20 Tom Tromey <tromey@redhat.com>
4804
4805 * python/py-arch.c (arch_object_type): Use
4806 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4807 * python/py-block.c (block_syms_iterator_object_type):
4808 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4809 * python/py-bpevent.c (breakpoint_event_object_type):
4810 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4811 * python/py-cmd.c (cmdpy_object_type): Use
4812 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4813 * python/py-continueevent.c (continue_event_object_type):
4814 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4815 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4816 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4817 * python/py-events.h (thread_event_object_type):
4818 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4819 * python/py-evtregistry.c (eventregistry_object_type): Use
4820 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4821 * python/py-exitedevent.c (exited_event_object_type):
4822 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4823 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4824 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4825 * python/py-function.c (fnpy_object_type): Use
4826 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4827 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4828 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4829 * python/py-infthread.c (thread_object_type): Use
4830 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4831 * python/py-lazy-string.c (lazy_string_object_type):
4832 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4833 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4834 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4835 * python/py-objfile.c (objfile_object_type): Use
4836 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4837 * python/py-param.c (parmpy_object_type):
4838 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4839 * python/py-progspace.c (pspace_object_type):
4840 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4841 * python/py-signalevent.c (signal_event_object_type):
4842 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4843 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4844 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4845 * python/py-type.c (type_object_type, field_object_type)
4846 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4847 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4848 define.
4849 (value_object_type, block_object_type, symbol_object_type)
4850 (event_object_type, stop_event_object_type, breakpoint_object_type)
4851 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4852
81ea8796
AT
48532013-05-20 Andreas Tobler <andreas@fgznet.ch>
4854
4855 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4856 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4857
a2ce51a0
DE
48582013-05-20 Doug Evans <dje@google.com>
4859
4860 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4861 For Fission.
4862 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4863 reading_dwo_directly.
4864 (struct signatured_type): New member dwo_unit.
4865 (struct die_reader_specs): New member comp_dir.
4866 (create_signatured_type_table_from_index): Use malloc for
4867 all_type_units instead of objfile's obstack.
4868 (create_all_type_units): Ditto.
4869 (fill_in_sig_entry_from_dwo_entry): New function.
4870 (add_type_unit): New function.
4871 (lookup_dwo_signatured_type): New function.
4872 (lookup_dwp_signatured_type): New function.
4873 (lookup_signatured_type): New arg cu. All callers updated.
4874 (init_cu_die_reader): Initialize comp_dir.
4875 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4876 Change assert of matching type signatures to call error on mismatch.
4877 (lookup_dwo_unit): Add assert.
4878 (init_tu_and_read_dwo_dies): New function.
4879 (init_cutu_and_read_dies): Call it.
4880 (build_type_unit_groups): Handle case of no type unit groups created.
4881 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4882 (lookup_dwo_cutu): Tweak complaint.
4883 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4884 (dwarf2_per_objfile_free): Free all_type_units.
4885
a25cd31f
JB
48862013-05-20 Joel Brobecker <brobecker@adacore.com>
4887
4888 * windows-nat.c (handle_unload_dll): Add missing empty line.
4889
4d804846
JB
48902013-05-20 Joel Brobecker <brobecker@adacore.com>
4891
4892 * dwarf2read.c (prototyped_function_p): New function.
4893 (read_subroutine_type): Use it.
4894
1c432e72
JB
48952013-05-20 Joel Brobecker <brobecker@adacore.com>
4896
4897 * rs6000-aix-tdep.c: De-indent some example code provided
4898 as a comment.
4899
4feebbdd
EBM
49002013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4901
4902 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4903 region is ok for a hardware watchpoint using the new ptrace interface
4904 on Power servers.
4905
7d0c9981
DE
49062013-05-17 Doug Evans <dje@google.com>
4907
4908 * NEWS: Mention new maintenance commands check-symtabs, and
4909 expand-symtabs, and renamed check-psymtabs.
4910 * psymtab.c (maintenance_check_psymtabs): Renamed from
4911 maintenance_check_symtabs. Only process already-expanded symbol
4912 tables.
4913 (_initialize_psymtab): Update.
4914 * symmisc.c (maintenance_check_symtabs): New function.
4915 (maintenance_expand_name_matcher): New function
4916 (maintenance_expand_file_matcher): New function
4917 (maintenance_expand_symtabs): New function.
4918 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4919 commands.
4920
6cbc7c3d
TT
49212013-05-17 Tom Tromey <tromey@redhat.com>
4922
4923 * python/py-inferior.c (infpy_read_memory): Don't call
4924 PyErr_SetString if PyObject_New fails.
4925 * python/py-frame.c (frame_info_to_frame_object): Don't call
4926 PyErr_SetString if PyObject_New fails.
4927
a48b32c0
L
49282013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4929
4930 * acinclude.m4: Add check for dlopen in libdl.
4931 * configure.ac: Ditto.
4932 * configure: Regenerate.
4933
3de661e6
PM
49342013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4935
4936 * frame.c (frame_stash): Convert to htab.
4937 (frame_addr_hash): New function.
4938 (frame_addr_hash_eq): New function.
4939 (frame_stash_create): Convert function to create
4940 a hash table.
4941 (frame_stash_add): Convert function to add an entry to a hash
4942 table.
4943 (frame_stash_find): Convert function to search the hash table.
4944 (frame_stash_invalidate): Convert function to empty the hash
4945 table.
4946 (get_frame_id): Only add to stash if a frame_id is created.
4947 (_initialize_frame): Call frame_stash_create.
4948
bb4168a9 49492013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
4950
4951 * configure.ac: Ensure MIG is available when building for GNU Hurd
4952 hosts.
4953 * configure: Regenerate.
4954
d1be3247
JB
49552013-05-16 Joel Brobecker <brobecker@adacore.com>
4956
4957 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4958
b8fea896
JB
49592013-05-16 Joel Brobecker <brobecker@adacore.com>
4960
4961 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4962 all cleanups are done before returning from this function.
4963
af880d85
JB
49642013-05-15 Joel Brobecker <brobecker@adacore.com>
4965
4966 * utils.h: #include "exceptions.h".
4967 (enum errors): Remove partial declaration.
4968
356a5233
JB
49692013-05-15 Joel Brobecker <brobecker@adacore.com>
4970
4971 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4972 * gdbarch.h, gdbarch.c: Regenerate.
4973 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4974 handling.
4975
4976 * rs6000-aix-tdep.h: New file.
4977 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4978 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4979 "xml-utils.h".
4980 (struct field_info, struct ld_info_desc): New types.
4981 (ld_info32_desc, ld_info64_desc): New static constants.
4982 (struct ld_info): New type.
4983 (rs6000_aix_extract_ld_info): New function.
4984 (rs6000_aix_shared_library_to_xml): Likewise.
4985 (rs6000_aix_ld_info_to_xml): Likewise.
4986 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4987 (rs6000_aix_init_osabi): Add call to
4988 set_gdbarch_core_xfer_shared_libraries_aix.
4989 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4990 Remove "xml-utils.h" include.
4991 (LdInfo): Delete typedef.
4992 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4993 Delete macros.
4994 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4995 Adjust code accordingly.
4996 (rs6000_core_ldinfo): Delete, folded into
4997 rs6000_aix_core_xfer_shared_libraries_aix.
4998 (rs6000_xfer_shared_library): Delete.
4999 (rs6000_xfer_shared_libraries): Reimplement.
5000
742ce053
MM
50012013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5002
5003 * record.c (record_goto_cmdlist): New.
5004 (cmd_record_goto): Split into this ...
5005 (cmd_record_goto_begin): ... this
5006 (cmd_record_goto_end): ... and this.
5007 (_initialize_record): Change "record goto" to prefix command.
5008 Add commands for "record goto begin" and "record goto end".
5009 Add an alias for "record goto start" to "record goto begin".
5010
e93ba630
JK
50112013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5012
5013 * linespec.c (convert_linespec_to_sals): New comment for
5014 SOURCE_FILENAME assignment.
5015
5821aace
JK
50162013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5017
5018 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5019 internal_warning.
5020
a1b8c4cc
TT
50212013-05-14 Tom Tromey <tromey@redhat.com>
5022
5023 * eval.c (parse_and_eval_long): Make 'exp' const.
5024 * value.h (parse_and_eval_long): Update.
5025
23b3a2c3
TT
50262013-05-14 Tom Tromey <tromey@redhat.com>
5027
5028 * ui-file.c (gdb_fopen): Make arguments const.
5029 * ui-file.h (gdb_fopen): Make arguments const.
5030
ca623f82
TT
50312013-05-14 Tom Tromey <tromey@redhat.com>
5032
5033 * remote.c (remote_set_trace_notes): Make arguments const.
5034 * target.c (update_current_target): Update cast.
5035 * target.h (to_set_trace_notes): Make arguments const.
5036
503ebb2c
TT
50372013-05-14 Tom Tromey <tromey@redhat.com>
5038
5039 * go32-nat.c (go32_terminal_info): Make 'args' const.
5040 * inferior.h (child_terminal_info): Update.
5041 * inflow.c (child_terminal_info): Make 'args' const.
5042 * target.c (default_terminal_info): Make 'args' const.
5043 (debug_to_terminal_save_ours): Likewise.
5044 * target.h (struct target_ops) <to_terminal_info>: Make argument
5045 const.
5046
85e1311a
TT
50472013-05-13 Tom Tromey <tromey@redhat.com>
5048
5049 * gcore.c (create_gcore_bfd): Make 'filename' const.
5050 * gcore.h (create_gcore_bfd): Make 'filename' const.
5051 * record-full.c (record_full_save): Make 'recfilename' const.
5052 * target.c (target_save_record): Make 'filename' const.
5053 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5054 const.
5055 (target_save_record): Likewise.
5056
d62bfeaf
TT
50572013-05-13 Tom Tromey <tromey@redhat.com>
5058
f5aee5ee 5059 PR gdb/15338:
d62bfeaf
TT
5060 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5061 ranges section has been read.
5062
ac1ca910
TT
50632013-05-13 Tom Tromey <tromey@redhat.com>
5064
5065 PR exp/15364:
5066 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5067 STRUCTOP_PTR>: Return a not_lval value for
5068 EVAL_AVOID_SIDE_EFFECTS.
5069 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5070 for EVAL_AVOID_SIDE_EFFECTS.
5071
36d1c68c
JB
50722013-05-13 Joel Brobecker <brobecker@adacore.com>
5073
5074 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5075 floating point registers to register type before storing
5076 value.
5077 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5078 Likewise.
5079
21ff4686
TT
50802013-05-10 Joel Brobecker <brobecker@adacore.com>
5081 Tom Tromey <tromey@redhat.com>
5082
5083 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5084 New functions.
5085 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5086 Declare.
5087 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5088 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5089 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5090 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5091
d3685d60
TT
50922013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5093 Tom Tromey <tromey@redhat.com>
5094
5095 PR build/15414:
5096 * configure: Rebuild.
5097 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5098 with -Wno-format.
5099
eb9fe518
PA
51002013-05-10 Pedro Alves <palves@redhat.com>
5101
5102 * remote.c (_initialize_remote): Fix spelling of
5103 qXfer:traceframe-info:read packet in packet config command.
5104
9779ab84
PA
51052013-05-10 David Taylor <dtaylor@emc.com>
5106
5107 PR remote/15455
5108
5109 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5110 "QTro" at start of packet.
5111
060cfbef
JB
51122013-05-10 Joel Brobecker <brobecker@adacore.com>
5113
5114 * solib-aix.c (solib_aix_relocate_section_addresses):
5115 For the .bss section action, apply the same offset as
5116 the .data section.
5117
ab1c4e88
JB
51182013-05-10 Joel Brobecker <brobecker@adacore.com>
5119
5120 * solib-aix.c (solib_aix_relocate_section_addresses):
5121 Remove FIXME comment.
5122
c1357578
JB
51232013-05-10 Joel Brobecker <brobecker@adacore.com>
5124
5125 PR tdep/15420:
5126 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5127 New functions, directly copied from sparc-sol-thread.c.
5128 * sparc-sol-thread.c: Delete.
5129 * configure.ac: Remove code handling sparc-solaris-thread.c.
5130 * configure: Regenerate.
5131
1e611234
PM
51322013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5133
5134 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5135 filter logic.
5136 (backtrace_command): Add "no-filters" option parsing.
5137 (_initialize_stack): Alter help to reflect "no-filters" option.
5138 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5139 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5140 (py-frame.o): Add target
5141 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5142 filter files.
5143 * python/python.h: Add new frame filter constants, and flag enum.
5144 (apply_frame_filter): Add definition.
5145 * python/python.c (apply_frame_filter): New non-Python
5146 enabled function.
5147 * python/py-utils.c (py_xdecref): New function.
5148 (make_cleanup_py_xdecref): Ditto.
5149 * python/py-objfile.c: Declare frame_filters dictionary.
5150 (objfpy_dealloc): Add frame_filters dealloc.
5151 (objfpy_new): Initialize frame_filters attribute.
5152 (objfile_to_objfile_object): Ditto.
5153 (objfpy_get_frame_filters): New function.
5154 (objfpy_set_frame_filters): New function.
5155 * python/py-progspace.c: Declare frame_filters dictionary.
5156 (pspy_dealloc): Add frame_filters dealloc.
5157 (pspy_new): Initialize frame_filters attribute.
5158 (pspacee_to_pspace_object): Ditto.
5159 (pspy_get_frame_filters): New function.
5160 (pspy_set_frame_filters): New function.
5161 * python/py-framefilter.c: New file.
5162 * python/lib/gdb/command/frame_filters.py: New file.
5163 * python/lib/gdb/frames.py: New file.
5164 * python/lib/gdb/__init__.py: Initialize global frame_filters
5165 dictionary
5166 * python/lib/gdb/FrameDecorator.py: New file.
5167 * python/lib/gdb/FrameIterator.py: New file.
5168 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5169 * mi/mi-cmds.h: Declare.
5170 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5171 --no-frame-filter logic, and Python frame filter logic.
5172 (stack_enable_frame_filters): New function.
5173 (parse_no_frame_option): Ditto.
5174 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5175 filter logic.
5176 (mi_cmd_stack_list_locals): Ditto.
5177 (mi_cmd_stack_list_args): Ditto.
5178 (mi_cmd_stack_list_variables): Ditto.
5179 * NEWS: Add frame filter note.
5180
2cb9c859
DE
51812013-05-09 Doug Evans <dje@google.com>
5182
6bf667bb
DE
5183 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5184 All callers updated.
5185 (syms_from_objfile): Ditto. Make static.
5186 (symbol_file_add_with_addrs): Renamed from
5187 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5188 num_offsets. All callers updated.
5189 * symfile.h (syms_from_objfile): Delete.
5190
2cb9c859
DE
5191 * symfile.c (decrement_reading_symtab): Add assert.
5192 (increment_reading_symtab): Ditto.
5193
40aea477
JB
51942013-05-09 Joel Brobecker <brobecker@adacore.com>
5195
5196 * source.c (forward_search_command): Replace call to getc
5197 by call to fgetc.
5198 (reverse_search_command): Likewise.
5199
680d1742
DE
52002013-05-08 Doug Evans <dje@google.com>
5201
5202 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5203 matching test.
5204
17e760ae
JB
52052013-05-08 Joel Brobecker <brobecker@adacore.com>
5206
5207 * sol-thread.c (info_cb): Factorize the code a little.
5208
c0f5f490
JB
52092013-05-08 Joel Brobecker <brobecker@adacore.com>
5210
5211 * sol-thread.c (info_cb): Rework the output of the "maintenance
5212 info sol-threads" command a bit.
5213
5d74e061
JB
52142013-05-08 Joel Brobecker <brobecker@adacore.com>
5215
5216 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5217 Replace ti.ti_startfunc by ti.ti_pc.
5218
814a3ff7
JB
52192013-05-08 Joel Brobecker <brobecker@adacore.com>
5220
5221 * solib-aix.c (solib_aix_free_library_list): New function
5222 for the case where HAVE_LIBEXPAT is not defined.
5223
58ce7251
SDJ
52242013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5225
5226 PR breakpoints/15413:
5227 * breakpoint.c (condition_completer): Simplify the code to
5228 disconsider multiple locations of breakpoints when completing the
5229 "condition" command.
5230
be8b1ea6
PM
52312013-05-07 Pierre Muller <muller@sourceware.org>
5232
5233 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5234 instead of <sys/wait.h>.
5235
1e52bda6
PM
52362013-05-07 Pierre Muller <muller@sourceware.org>
5237
5238 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5239 trailing new line from warning message.
5240
27fd0c6b
PM
52412013-05-07 Pierre Muller <muller@sourceware.org>
5242
5243 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5244 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5245
e228ac87
JB
52462013-05-07 Joel Brobecker <brobecker@adacore.com>
5247
5248 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5249 error message (ARI fix).
5250
52512013-05-07 Joel Brobecker <brobecker@adacore.com>
5252
5253 * features/library-list-aix.dtd: Replace library-list by
5254 library-list-aix.
5255 * rs6000-nat.c: Replace library-list by library-list-aix
5256 throughout.
5257 * solib-aix.c: Likewise.
5258
52592013-05-07 Joel Brobecker <brobecker@adacore.com>
5260
5261 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5262 Renames TARGET_OBJECT_AIX_LIBRARIES.
5263 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5264 TARGET_OBJECT_LIBRARIES_AIX throughout.
5265 * solib-aix.c: Likwise.
5266
26a4dda9
YQ
52672013-05-07 Yao Qi <yao@codesourcery.com>
5268
5269 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5270 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5271
3582629f
YQ
52722013-05-07 Yao Qi <yao@codesourcery.com>
5273
5274 * solib-dsbt.c (enable_break): Declare.
5275 (dsbt_current_sos): Remove call to enable_break2.
5276 (enable_break2): Rename to enable_break. Set solib breakpoint
5277 on '_dl_debug_state'.
5278 (enable_break): Remove.
5279
aacbb8a5
LM
52802013-05-07 Luis Machado <lgustavo@codesourcery.com>
5281
5282 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5283 debug state prior to replicating existing hardware watchpoints or
5284 breakpoints.
5285
0c013353
JK
52862013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5287
5288 * gcore.c (gcore_create_callback): Ignore sections with
5289 separate_debug_objfile_backlink != NULL.
5290
a1217d97
SL
52912013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5292 Andrew Jenner <andrew@codesourcery.com>
5293 Chung-Lin Tang <cltang@codesourcery.com>
5294 Julian Brown <julian@codesourcery.com>
5295
5296 Based on the nios2-elf port from Altera Corporation.
5297
5298 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5299 nios2-linux-tdep.o.
5300 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5301 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5302 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5303 * nios2-tdep.h: New.
5304 * nios2-tdep.c: New.
5305 * nios2-linux-tdep.c: New.
5306 * features/Makefile (WHICH): Add nios2-linux.
5307 (nios2-linux-expedite): Set.
5308 * features/nios2-cpu.xml: New.
5309 * features/nios2.xml: New.
5310 * features/nios2-linux.xml: New.
5311 * features/nios2.c: New (autogenerated).
5312 * features/nios2-linux.c: New (autogenerated).
5313 * regformats/nios2-linux.dat: New (autogenerated).
5314 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5315 and commands.
5316
0892cb63
DE
53172013-05-06 Doug Evans <dje@google.com>
5318
3b7bacac
DE
5319 * symfile.c: Whitespace cleanup.
5320
0892cb63
DE
5321 * solist.h (struct target_so_ops): New member clear_so.
5322 * solib-svr4.c (svr4_clear_so): New function.
5323 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5324 * solib.c (clear_so): Renamed from free_so_symbols.
5325 All callers updated. Call target clear_so if it exists.
5326
40501e00
TT
53272013-05-06 Tom Tromey <tromey@redhat.com>
5328
5329 * ada-lang.c (ada_value_primitive_packed_val): Don't
5330 call value_incref.
5331 * value.c (set_value_parent): Incref the new parent and decref
5332 the old parent.
5333 (value_copy, value_primitive_field): Use set_value_parent.
5334
b6807d98
TT
53352013-05-06 Tom Tromey <tromey@redhat.com>
5336
5337 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5338 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5339 if needed.
5340 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5341 * dwarf2read.c (write_constant_as_bytes)
5342 (dwarf2_fetch_constant_bytes): New functions.
5343
3aef2284
TT
53442013-05-06 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5347 parameters.
5348 (dwarf2_const_value_attr): Update.
5349
66f65e2b
TT
53502013-05-06 Tom Tromey <tromey@redhat.com>
5351
5352 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5353 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5354 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5355 Remove declaration.
5356
7919a973
TT
53572013-05-06 Tom Tromey <tromey@redhat.com>
5358
5359 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5360 objfile's obstack.
5361
a7bfba49
DE
53622013-05-06 Doug Evans <dje@google.com>
5363
3189cb12
DE
5364 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5365 * stabsread.h (process_one_symbol): Update declaration.
5366 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5367 * elfread.c (elf_symfile_relocate_probe): Ditto.
5368 * psymtab.c (relocate_psymtabs): Ditto.
5369 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5370 (objfile_relocate): Ditto.
5371 * objfiles.h (objfile_relocate): Update declaration.
5372 * symfile.c (relative_addr_info_to_section_offsets): Constify
5373 addrs parameter.
5374 (default_symfile_offsets): Ditto.
5375 (syms_from_objfile_1): Constify offsets parameter.
5376 (syms_from_objfile): Ditto.
5377 (symbol_file_add_with_addrs_or_offsets): Ditto.
5378 (symfile_map_offsets_to_segments): Constify data parameter.
5379 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5380 delta parameters of member relocate.
5381 (struct sym_probe_fns): Constify new_offsets,
5382 delta parameters of member sym_relocate_probe.
5383 (struct sym_fns): Constify section_addr_info parameter of member
5384 sym_offsets.
5385 (relative_addr_info_to_section_offsets): Update declaration.
5386 (default_symfile_offsets): Ditto.
5387 (syms_from_objfile): Ditto.
5388 (symfile_map_offsets_to_segments): Ditto.
5389
a7bfba49
DE
5390 * symfile.c (syms_from_objfile_1): Use correct section count when
5391 objfile->sf == NULL.
5392
5f8e0b8f
MF
53932013-05-06 Mike Frysinger <vapier@gentoo.org>
5394
5395 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5396
ea52d893
DE
53972013-05-06 Doug Evans <dje@google.com>
5398
5399 * psympriv.h (struct partial_symtab): Augment comment for member
5400 section_offsets.
5401
4d1eb6b4
JB
54022013-05-06 Joel Brobecker <brobecker@adacore.com>
5403
5404 Reimplement shared library support on ppc-aix...
5405 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5406 * features/library-list-aix.dtd: New file.
5407 * solib-aix.h, solib-aix.c: New file.
5408 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5409 (rs6000_find_toc_address_hook): Delete.
5410 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5411 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5412 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5413 "xml-utils.h".
5414 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5415 (vmap_symtab, fixup_breakpoints): Delete.
5416 (rs6000_xfer_shared_libraries): New function.
5417 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5418 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5419 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5420 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5421 (rs6000_xfer_shared_library): New function.
5422 (find_toc_address): Delete.
5423 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5424 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5425 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5426 before creating minimal symbol. Adjust function description
5427 accordingly.
5428 (scan_xcoff_symtab): Replace call to
5429 prim_record_minimal_symbol_and_info by call to
5430 record_minimal_symbol.
5431 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5432 around default_symfile_offsets.
5433 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5434 powerpc-aix targets.
5435 * config/rs6000/nm-rs6000.h: Delete.
5436 * config/powerpc/aix.mh (NAT_FILE): Delete.
5437 (NATDEPFILES): Remove xcoffsolib.o.
5438 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5439 (ALL_TARGET_OBS): Add solib-aix.o.
5440 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5441 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5442 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5443 * xcoffsolib.h, xcoffsolib.c: Delete.
5444
5445 * solib.c (reload_shared_libraries): Remove reference to
5446 SOLIB_CREATE_INFERIOR_HOOK.
5447 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5448 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5449 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5450 comment.
5451 * corelow.c (deprecated_core_resize_section_table): Delete.
5452 * exec.c: Remove include of xcoffsolib.h".
5453 (map_vmap, vmap): Delete.
5454 (exec_close_1): Remove references to vmap.
5455 (exec_file_attach): Remove vmap handling code, and reference
5456 to DEPRECATED_IBM6000_TARGET.
5457 (bfdsec_to_vmap): Delete.
5458 (exec_files_info): Remove block of code handling VMAP.
5459 * infcmd.c (post_create_inferior): Remove reference to
5460 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5461 * infrun.c (follow_exec): Remove reference to
5462 SOLIB_CREATE_INFERIOR_HOOK.
5463 * stack.c (print_frame): Remove reference to PC_SOLIB.
5464 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5465 (dsbt_relocate_main_executable): Likewise.
5466 * solib-frv.c (frv_current_sos): Likewise.
5467
0c4f667c
JB
54682013-05-06 Joel Brobecker <brobecker@adacore.com>
5469
5470 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5471 to target_write_memory and target_read_memory.
5472
726ce67c
JB
54732013-05-06 Joel Brobecker <brobecker@adacore.com>
5474
5475 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5476 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5477
c8c9911f
JB
54782013-05-06 Joel Brobecker <brobecker@adacore.com>
5479
5480 * darwin-nat.c: Replace all "%x" instances in format strings
5481 into "0x%x" throughout.
5482
fda184b6
JB
54832013-05-06 Joel Brobecker <brobecker@adacore.com>
5484
5485 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5486 gdb_assert by call to MACH_CHECK_ERROR.
5487 (darwin_attach_pid): Raise an error rather than a failed
5488 assertion when various system calls failed. Report a warning
5489 instead of raising a failed assertion when PREV_NOT is not NULL
5490 after call to mach_port_request_notification.
5491 (darwin_ptrace_me): Raise an error rather than a failed
5492 assertion when read returns nonzero.
5493
d1d69afb
JB
54942013-05-06 Joel Brobecker <brobecker@adacore.com>
5495
5496 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5497
dc90b24d
JK
54982013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5501
faab9922
JK
55022013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5503
5504 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5505 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5506 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5507 a stale cleanup. Fix double free of NAME.
5508
e0ea48a0
EZ
55092013-05-04 Eli Zaretskii <eliz@gnu.org>
5510
5511 * windows-nat.c (windows_delete_thread): Accept an additional
5512 argument, the thread's exit code, and announce thread death when
5513 print_thread_events is non-zero and we are deleting a thread that
5514 is not the main thread.
5515 (get_windows_debug_event): Pass thread exit code to
5516 windows_delete_thread.
5517
83b2706a
KB
55182013-05-03 Kevin Buettner <kevinb@redhat.com>
5519
5520 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5521 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5522 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5523 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5524 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5525 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5526 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5527 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5528 (gdbarch_tdep): New struct.
5529 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5530 E_NUM_REGS.
5531 (v850e3v5_register_name): New function.
5532 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5533 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5534 code handling the struct return conventions for the RH850 ABI.
5535 Update all callers.
5536 (v850_eight_byte_align_p): New function.
5537 (v850_push_call_dummy): Push structs by value, not by reference
5538 for the RH850 ABI. Add support for eight byte alignment.
5539 (v850_dbtrap_breakpoint_from_pc): New function.
5540 (v850_gdbarch_init): Add ABI detection code. Register
5541 v850e3v5_register_name for the v850e3v5 architecture. Set the
5542 number of registers for v850e3v5. Register
5543 v850_dbtrap_breakpoint_from_pc as appropriate.
5544 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5545
d445b2f6
DE
55462013-05-03 Doug Evans <dje@google.com>
5547
5548 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5549 of bfd_count_sections.
5550 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5551 * symfile.c (default_symfile_offsets): Ditto.
5552 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5553 one entry, not bfd_count_sections entries.
5554
b3ce41ea
KB
55552013-05-03 Kevin Buettner <kevinb@redhat.com>
5556
5557 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5558 `save' and `restore' register groups. Don't include SPL
5559 or SPH in these groups.
5560 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5561 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5562 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5563 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5564 dwarf2_append_unwinders().
5565
96f7d3f1
PW
55662013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5567
5568 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5569 ignore SIGINT and SIGTRAP in case these internal signals are
5570 caught explicitely.
5571
b9dd1947
JB
55722013-05-01 Joel Brobecker <brobecker@adacore.com>
5573
5574 * darwin-nat.c (darwin_read_write_inferior): Change types
5575 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5576 of copy_count to "mach_msg_type_number_t".
5577 (darwin_read_dyld_info): Change type of parameter
5578 rdaddr to "gdb_byte *".
5579
4ca18a63
JB
55802013-05-01 Joel Brobecker <brobecker@adacore.com>
5581
5582 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5583 of &info->load_map from "char *" to "gdb_byte *".
5584
2b692d32
JB
55852013-05-01 Joel Brobecker <brobecker@adacore.com>
5586
5587 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5588 from "char *" to "gdb_byte *".
5589 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5590
a98c29a0
DE
55912013-04-30 Doug Evans <dje@google.com>
5592
6a506a2d
DE
5593 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5594 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5595 DWO stub. If DWO isn't found, just use stub.
5596 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5597
a98c29a0
DE
5598 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5599 calling init_cutu_and_read_dies.
5600
f92b06da
WT
56012013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5602
5603 * target-descriptions.c (maint_print_c_tdesc_cmd):
5604 Add case to parse structures as register types and
5605 bitfields.
5606
95eebdcc
WT
56072013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5608
5609 * MAINTAINERS (Write After Approval): Add myself to the list.
5610
019c1128
JB
56112013-04-30 Joel Brobecker <brobecker@adacore.com>
5612
5613 * sol-thread.c (rw_common): Change type of parameter "buf"
5614 to "gdb_byte *".
5615 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5616 rw_common to "gdb_byte *" instead of "char *".
5617
5812197c
JB
56182013-04-30 Joel Brobecker <brobecker@adacore.com>
5619
5620 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5621 of local variable msym to const struct bound_minimal_symbol.
5622 Adjust use accordingly.
5623 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5624
ecccb813
TS
56252013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5626
5627 * i386gnu-nat.c (CREG_OFFSET): New macro.
5628 (creg_offset): New array.
5629 (CREG_ADDR): Use creg_offset instead of reg_offset.
5630
f1d02dd4 56312013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5632
5633 * mep-tdep.c (mep_write_pc): Delete.
5634 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5635 Add call to set_gdbarch_pc_regnum.
5636
f1d02dd4 56372013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5638
5639 * common/filestuff.c: Replace #include <dirent.h> by
5640 #include "gdb_dirent.h".
5641
f1d02dd4 56422013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5643
5644 * common/filestuff.c: Replace #include <sys/stat.h> by
5645 #include "gdb_stat.h".
5646
b385a60d
PM
56472013-04-29 Pierre Muller <muller@sourceware.org>
5648
5649 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5650 editCase function rule.
5651 (get_DW_AT_signature_type): Likewise.
5652
d27b54ad
JB
56532013-04-29 Joel Brobecker <brobecker@adacore.com>
5654
5655 * m32r-tdep.c (m32r_write_pc): Delete.
5656 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5657 Add call to set_gdbarch_pc_regnum.
5658
47d21dc5
PM
56592013-04-29 Pierre Muller <muller@sourceware.org>
5660
5661 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5662
9056882e
JB
56632013-04-29 Joel Brobecker <brobecker@adacore.com>
5664
5665 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5666
7ee4732a
YQ
56672013-04-28 Yao Qi <yao@codesourcery.com>
5668
5669 * solib-dsbt.c (fetch_loadmap): Re-indent.
5670 (displacement_from_map, enable_break2): Likewise.
5671 (dsbt_relocate_section_addresses): Likewise.
5672
2260af53 56732013-04-26 Joel Brobecker <brobecker@adacore.com>
5674
5675 GDB 7.6 released.
5676
ff546935
TT
56772013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5678
5679 PR corefiles/14983:
5680 * dwarf2read.c (process_full_comp_unit): Always create a static
5681 block.
5682
40fb6c5e
HZ
56832013-04-25 Hui Zhu <hui@codesourcery.com>
5684
5685 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5686 to loc->cmd_bytecode.
5687
74e04d1c
DE
56882013-04-24 Doug Evans <dje@google.com>
5689
5690 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5691
3cf62c1d
KS
56922013-04-22 Keith Seitz <keiths@redhat.com>
5693
5694 * tracepoint.c (trace_save): Call the writer's start method.
5695
bf9e4d0c
MB
56962013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5697
5698 PR gdb/10462
5699 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5700 before argument.
5701
5d71132c
TT
57022013-04-23 Tom Tromey <tromey@redhat.com>
5703
5704 * common/filestuff.c: Check USE_WIN32API before including
5705 sys/socket.h.
5706 (HAVE_F_GETFD): New define.
5707 (mark_cloexec): Check HAVE_F_GETFD.
5708 (gdb_open_cloexec): Change 'mode' to unsigned long.
5709 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5710 (gdb_pipe_cloexec): Check HAVE_PIPE.
5711 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5712 long.
5713
a11cfd87
HZ
57142013-04-23 Hui Zhu <hui@codesourcery.com>
5715
5716 PR gdb/15293
a11cfd87
HZ
5717 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5718
2d9442cc
HZ
57192013-04-23 Hui Zhu <hui@codesourcery.com>
5720
5721 PR gdb/15165
2d9442cc
HZ
5722 * breakpoint.c (dprintf_print_recreate): New.
5723 (save_breakpoints): Let it not save dprintf commands.
5724 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5725
614c279d
TT
57262013-04-22 Tom Tromey <tromey@redhat.com>
5727
5728 PR gdb/7912:
5729 * Makefile.in (SFILES): Add filestuff.c
5730 (COMMON_OBS): Add filestuff.o.
5731 (filestuff.o): New target.
5732 * auto-load.c (auto_load_objfile_script_1): Use
5733 gdb_fopen_cloexec.
5734 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5735 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5736 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5737 * common/agent.c (gdb_connect_sync_socket): Use
5738 gdb_socket_cloexec.
5739 * common/filestuff.c: New file.
5740 * common/filestuff.h: New file.
5741 * common/linux-osdata.c (linux_common_core_of_thread)
5742 (command_from_pid, commandline_from_pid, print_source_lines)
5743 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5744 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5745 gdb_fopen_cloexec.
5746 * common/linux-procfs.c (linux_proc_get_int)
5747 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5748 * config.in, configure: Rebuild.
5749 * configure.ac: Don't check for sys/socket.h. Check for
5750 fdwalk, pipe2.
5751 * corelow.c (core_open): Use gdb_open_cloexec.
5752 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5753 * fork-child.c (fork_inferior): Call close_most_fds.
5754 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5755 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5756 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5757 Use gdb_fopen_cloexec.
5758 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5759 gdb_open_cloexec.
5760 (linux_async_pipe): Use gdb_pipe_cloexec.
5761 * remote-fileio.c (remote_fileio_func_open): Use
5762 gdb_open_cloexec.
5763 * remote.c (remote_file_put, remote_file_get): Use
5764 gdb_fopen_cloexec.
5765 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5766 close_most_fds.
5767 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5768 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5769 * solib.c (solib_find): Use gdb_open_cloexec.
5770 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5771 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5772 (tfile_open): Use gdb_open_cloexec.
5773 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5774 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5775 * xml-support.c (xml_fetch_content_from_file): Use
5776 gdb_fopen_cloexec.
5777 * main.c (captured_main): Call notice_open_fds.
5778
5fda2332
EBM
57792013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5780
5781 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5782 'char *' to 'gdb_byte *'.
5783 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5784 'gdb_byte'.
5785
eb6c553b
YQ
57862013-04-22 Yao Qi <yao@codesourcery.com>
5787
5788 * infrun.c: Fix typo in comment.
5789
9991b207
SDJ
57902013-04-22 Andrew Haley <aph@redhat.com>
5791
5792 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5793 instead of "long".
5794
8b4833e3
YQ
57952013-04-20 Yao Qi <yao@codesourcery.com>
5796
5797 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5798 'char *' to 'gdb_byte *'. Cast the return value of
5799 'bt_ctf_get_char_array' to 'gdb_byte *'.
5800
bd3f3b55
PA
58012013-04-19 Pedro Alves <palves@redhat.com>
5802
5803 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5804 -Wpointer-sign.
5805 * configure: Regenerate.
5806
c49e7f76
PA
58072013-04-19 Pedro Alves <palves@redhat.com>
5808
5809 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5810 'void *'.
5811
12ff8552
PA
58122013-04-19 Pedro Alves <palves@redhat.com>
5813
5814 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5815 Change type of 'myaddr' parameter to gdb_byte pointer.
5816 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5817 to 'long long' pointer instead of to 'unsigned long long'.
5818 (monitor_write_memory_block, monitor_read_memory_single)
5819 (monitor_read_memory): Change type of 'myaddr' parameter to
5820 gdb_byte pointer.
5821
9c37696b
PA
58222013-04-19 Pedro Alves <palves@redhat.com>
5823
5824 * record.c (validate_history_size): Make parameter 'setting'
5825 unsigned.
5826
a398505b
PA
58272013-04-19 Pedro Alves <palves@redhat.com>
5828
5829 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5830 to 'gdb_byte *'.
5831
9f8afa72
PA
58322013-04-19 Pedro Alves <palves@redhat.com>
5833
5834 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5835 local to int.
5836
c714b426
PA
58372013-04-19 Pedro Alves <palves@redhat.com>
5838
5839 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5840 * ada-tasks.c (read_fat_string_value): Likewise.
5841
507a579c
PA
58422013-04-19 Pedro Alves <palves@redhat.com>
5843
5844 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5845 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5846 'offset', and adjust.
5847
f9d83a0b
PA
58482013-04-19 Pedro Alves <palves@redhat.com>
5849
5850 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5851 (read_index_from_section): Add cast to 'char *'.
5852
745eb4fd
PA
58532013-04-19 Pedro Alves <palves@redhat.com>
5854
5855 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5856
db5be46f
PA
58572013-04-19 Pedro Alves <palves@redhat.com>
5858
5859 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5860
0f928d68
PA
58612013-04-19 Pedro Alves <palves@redhat.com>
5862
5863 * record-full.c (record_full_get_bookmark): Change local 'ret'
5864 type to char * and add cast to gdb_byte *.
5865 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5866 string.
5867 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5868
89f6d837
PA
58692013-04-19 Pedro Alves <palves@redhat.com>
5870
5871 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5872 * python/py-prettyprint.c (print_string_repr): Change type of
5873 'output' local to char *. Add cast to gdb_byte * in
5874 LA_PRINT_STRING call.
5875 (print_children): Change type of 'output' local to char *.
5876 * python/py-value.c (valpy_string): Add cast to const char * in
5877 PyUnicode_Decode call.
5878
ce6ec7d8
PA
58792013-04-19 Pedro Alves <palves@redhat.com>
5880
5881 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5882 and change its type to 'const char *'. Adjust.
5883 (mips_send_packet): Add cast to 'char *', and remove cast to
5884 'unsigned char *'.
5885 (mips_receive_packet): Remove cast to 'unsigned char *'.
5886 (mips_load_srec): Use bfd_byte.
5887 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5888 (pmon_checkset): Make 'value' parameter unsigned.
5889
fda0389f
PA
58902013-04-19 Pedro Alves <palves@redhat.com>
5891
5892 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5893
bc20a4af
PA
58942013-04-19 Pedro Alves <palves@redhat.com>
5895
5896 * remote.c (remote_write_bytes_aux, compare_sections_command)
5897 (remote_read_qxfer)
5898 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5899 (remote_hostio_readlink, remote_bfd_iovec_pread)
5900 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5901 binary buffer, and char when buffer is used as string.
5902 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5903 (trace_save, tfile_open, traceframe_walk_blocks)
5904 (tfile_fetch_registers): Likewise.
5905
c628b528
PA
59062013-04-19 Pedro Alves <palves@redhat.com>
5907
5908 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5909 buffer and size_t size. Adjust.
5910 * ser-base.h (ser_base_write): Adjust.
5911 * ser-go32.c (cnts): Change type to size_t.
5912 (dos_write): Change prototype -- take 'void *'
5913 buffer and size_t size. Adjust.
5914 (dos_info): Print elements of 'cnts' as unsigned long.
5915 * serial.c (serial_write): Likewise.
5916 * serial.h (serial_write): Adjust.
5917 (struct serial_ops) <write>: Change prototype -- take 'void *'
5918 buffer and size_t size. Adjust.
5919
51a5cd90
PA
59202013-04-19 Pedro Alves <palves@redhat.com>
5921
5922 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5923 gdb_byte *.
5924 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5925
a9933661
PA
59262013-04-19 Pedro Alves <palves@redhat.com>
5927
5928 * alpha-tdep.c (alpha_extract_return_value): Use
5929 regcache_cooked_read_unsigned to read 'v0'.
5930
19afdd07
PA
59312013-04-19 Pedro Alves <palves@redhat.com>
5932
5933 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5934 parameters 'at', 'as' and 'offset' to uint32_t.
5935
96b32e50
PA
59362013-04-19 Pedro Alves <palves@redhat.com>
5937
5938 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5939 'is64' to signed 'int'.
5940
eb1bd1fb
PA
59412013-04-19 Pedro Alves <palves@redhat.com>
5942
5943 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5944 parameter to int *.
5945
463920bf
PA
59462013-04-19 Pedro Alves <palves@redhat.com>
5947
5948 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5949 'insnbuf' buffer type to unsigned int[].
5950
70242eb1
PA
59512013-04-19 Pedro Alves <palves@redhat.com>
5952
5953 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5954
9d1dd0e2
PA
59552013-04-19 Pedro Alves <palves@redhat.com>
5956
5957 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5958 unsigned long *.
5959
44096aee
PA
59602013-04-19 Pedro Alves <palves@redhat.com>
5961
5962 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5963 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5964 UINT_MAX.
5965 * mips-tdep.c (heuristic_fence_post): Change type to int.
5966 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5967
e4286e57
PA
59682013-04-19 Pedro Alves <palves@redhat.com>
5969
5970 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5971 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5972 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5973
001f13d8
PA
59742013-04-19 Pedro Alves <palves@redhat.com>
5975
5976 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5977 it to get a string view of the byte buffer.
5978 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5979 type to gdb_byte *. Adjust.
5980 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5981 Change local to char *.
5982 * solib-darwin.c (find_program_interpreter): Change return type to
5983 char *. Adjust.
5984 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5985 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5986 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5987 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5988 * solib-svr4.c (find_program_interpreter): Change return type to
5989 char *. Adjust.
5990 (enable_break): Change local 'interp_name' to char *.
5991 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5992 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5993 (spu_pseudo_register_write_spu): Use char for string buffer.
5994 Adjust.
5995 (info_spu_event_command, info_spu_signal_command): Add casts to
5996 'char *'.
5997
948f8e3d
PA
59982013-04-19 Pedro Alves <palves@redhat.com>
5999
6000 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6001 gdb_byte[].
6002 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6003 * ada-lang.c (ada_value_assign): Use gdb_byte.
6004 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6005 (alphanbsd_sigtramp_offset): Use gdb_byte.
6006 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6007 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6008 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6009 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6010 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6011 * arm-tdep.c (arm_stub_unwind_sniffer)
6012 (arm_displaced_init_closure): Use gdb_byte.
6013 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6014 (arm_default_thumb_le_breakpoint)
6015 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6016 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6017 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6018 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6019 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6020 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6021 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6022 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6023 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6024 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6025 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6026 (cris_store_return_value, cris_extract_return_value): Use
6027 gdb_byte.
6028 (constraint): Change type of parameter to char * from signed
6029 char*. Use gdb_byte.
6030 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6031 of local buffer to gdb_byte *.
6032 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6033 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6034 (add_address_entry): Change type of local buffer to gdb_byte[].
6035 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6036 (frv_push_dummy_call): Use gdb_byte.
6037 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6038 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6039 (hppa_hpux_supply_save_state): Use gdb_byte.
6040 * hppa-tdep.c (hppa32_push_dummy_call)
6041 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6042 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6043 (slotN_contents, replace_slotN_contents): Change type of parameter
6044 to gdb_byte *.
6045 (fetch_instruction, ia64_pseudo_register_write)
6046 (ia64_register_to_value, ia64_value_to_register)
6047 (ia64_extract_return_value, ia64_store_return_value)
6048 (ia64_push_dummy_call): Use gdb_byte.
6049 * m32c-tdep.c (m32c_return_value): Remove cast.
6050 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6051 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6052 gdb_byte.
6053 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6054 * mn10300-tdep.c (mn10300_store_return_value)
6055 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6056 gdb_byte.
6057 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6058 (moxie_process_record): Remove casts.
6059 * ppc-ravenscar-thread.c (supply_register_at_address)
6060 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6061 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6062 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6063 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6064 * remote.c (compare_sections_command): Use gdb_byte.
6065 * score-tdep.c (score7_free_memblock): Change type of parameter to
6066 gdb_byte *.
6067 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6068 gdb_byte *. Use gdb_byte.
6069 (sh_push_dummy_call_fpu): Use gdb_byte.
6070 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6071 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6072 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6073 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6074 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6075 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6076 (sh64_store_return_value, sh64_register_convert_to_virtual):
6077 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6078 (sh64_pseudo_register_write): Use gdb_byte.
6079 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6080 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6081 buffer.
6082 (irix_current_sos): Use gdb_byte.
6083 * solib-som.c (som_current_sos): Use gdb_byte.
6084 * sparc-ravenscar-thread.c (supply_register_at_address)
6085 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6086 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6087 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6088 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6089 'gdb_byte *'.
6090 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6091 'gdb_byte *'.
6092 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6093 * xstormy16-tdep.c (xstormy16_extract_return_value)
6094 (xstormy16_store_return_value): Change parameter type to
6095 'gdb_byte *'. Adjust.
6096 (xstormy16_push_dummy_call): Use gdb_byte.
6097 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6098 (call0_analyze_prologue, execute_code): Use gdb_byte.
6099
433730c9
PA
61002013-04-19 Vladimir Kargov <kargov@gmail.com>
6101 Pedro Alves <palves@redhat.com>
6102
6103 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6104 value contents.
6105
ac9ec31b
DE
61062013-04-17 Doug Evans <dje@google.com>
6107
6108 * dwarf2read.c (struct signatured_type): New member type.
6109 (struct attribute): Replace member signatured_type with signature.
6110 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6111 (read_call_site_scope): Call follow_die_ref instead of
6112 follow_die_ref_or_sig.
6113 (read_structure_type): Rewrite handling of signatured types.
6114 (read_enumeration_type): Ditto.
6115 (read_attribute_value): Update.
6116 (build_error_marker_type): New function.
6117 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6118 Don't call error for bad types, just build an error marker type.
6119 (dump_die_shallow): Update.
6120 (follow_die_sig_1): Renamed from follow_die_sig.
6121 Don't call error for bad types, instead return NULL.
6122 (follow_die_sig): New function.
6123 (get_signatured_type, get_DW_AT_signature_type): New functions.
6124
e546e8bb
YZ
61252013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6126
6127 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6128 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6129 function.
e546e8bb 6130
ab116149
YQ
61312013-04-17 Yao Qi <yao@codesourcery.com>
6132
6133 * top.c (print_gdb_configuration): Print configure-time
6134 parameter on using libbabeltrace or not.
6135
488a42b8
PA
61362013-04-16 Pedro Alves <palves@redhat.com>
6137
6138 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6139
f5fb825b
PA
61402013-04-16 Pedro Alves <palves@redhat.com>
6141
85d494ea 6142 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6143 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6144
e1154999
PA
61452013-04-16 Pedro Alves <palves@redhat.com>
6146
6147 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6148 * common/glibc_thread_db.h: ... this new file ...
6149 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6150
e3b50a7f
PA
61512013-04-16 Will Newton <will.newton@gmail.com>
6152 Pedro Alves <palves@redhat.com>
6153
6154 PR build/11881
6155
6156 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6157 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6158 HAVE_THREAD_DB_H.
6159
1c2e4450
PA
61602013-04-16 Pedro Alves <palves@redhat.com>
6161 Eli Zaretskii <eliz@gnu.org>
6162
6163 * NEWS: Mention "set foo unlimited".
6164
4031ecc5
DE
61652013-04-15 Doug Evans <dje@google.com>
6166
19c3d4c9
DE
6167 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6168 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6169 (create_dwo_cu_reader): Renamed from
6170 create_dwo_debug_info_hash_table_reader.
6171 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6172 Remove support for multiple CUs in a DWO file.
6173 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6174
4031ecc5
DE
6175 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6176 instead of phex.
6177 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6178 (create_dwo_in_dwp): Ditto.
6179
b340913d
TT
61802013-04-15 Tom Tromey <tromey@redhat.com>
6181
6182 * NEWS: Move recent entries into "since 7.6" section.
6183
cc16e6c9
TT
61842013-04-15 Tom Tromey <tromey@redhat.com>
6185
6186 PR c++/13588:
6187 * NEWS: Update.
6188 * break-catch-throw.c (struct exception_catchpoint)
6189 <exception_rx, pattern>: New fields.
6190 (fetch_probe_arguments, dtor_exception_catchpoint)
6191 (check_status_exception_catchpoint)
6192 (print_one_detail_exception_catchpoint): New functions.
6193 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6194 Compile regular expression if needed.
6195 (extract_exception_regexp): New function.
6196 (catch_exception_command_1): Use extract_exception_regexp.
6197 (compute_exception): Use fetch_probe_arguments.
6198 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6199 and check_status fields.
6200 * cp-abi.c (cplus_typename_from_type_info): New function.
6201 * cp-abi.h (cplus_typename_from_type_info): Declare.
6202 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6203 * gdb_regex.h (compile_rx_or_error): Declare.
6204 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6205 comment.
6206 (init_gnuv3_ops): Set get_type_from_type_info field.
6207 * probe.c (compile_rx_or_error): Move...
6208 * utils.c (compile_rx_or_error): ... here.
6209
72f1fe8a
TT
62102013-04-15 Tom Tromey <tromey@redhat.com>
6211
6212 PR c++/15176:
6213 * NEWS: Update.
6214 * break-catch-throw.c (compute_exception): New function.
6215 (exception_funcs): New global.
6216 (_initialize_break_catch_throw): Create $_exception.
6217 * cp-abi.c (cplus_type_from_type_info): New function.
6218 * cp-abi.h (cplus_type_from_type_info): Declare.
6219 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6220 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6221 (gnuv3_get_type_from_type_info): New functions.
6222 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6223
fc4746a2
TT
62242013-04-15 Tom Tromey <tromey@redhat.com>
6225
6226 * break-catch-throw.c (struct exception_names): New.
6227 (exception_functions): Change type.
6228 (re_set_exception_catchpoint): Look for SDT probes.
6229
15a73f56
TT
62302013-04-15 Tom Tromey <tromey@redhat.com>
6231
6232 PR c++/10119:
6233 * break-catch-throw.c (exception_functions): New global.
6234 (gnu_v3_exception_catchpoint_ops): Move earlier.
6235 (struct exception_catchpoint): New.
6236 (classify_exception_breakpoint): Rewrite.
6237 (re_set_exception_catchpoint): New function.
6238 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6239 Allocate a struct exception_catchpoint.
6240 (catch_exception_command_1): Update.
6241 (initialize_throw_catchpoint_ops): Set 're_set' method.
6242
916703c0
TT
62432013-04-15 Tom Tromey <tromey@redhat.com>
6244
6245 * Makefile.in (SFILES): Add break-catch-throw.c
6246 (COMMON_OBS): Add break-catch-throw.o.
6247 * break-catch-throw.c: New file.
6248 * breakpoint.c: Move exception-catching code to new file.
6249 (ep_parse_optional_if_clause): No longer static.
6250 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6251
6e72ca20
TT
62522013-04-15 Tom Tromey <tromey@redhat.com>
6253
6254 PR c++/9065:
6255 * NEWS: Update.
6256 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6257 * c-exp.y (TYPEID): New token.
6258 (exp): Add new TYPEID productions.
6259 (ident_tokens): Add "typeid".
6260 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6261 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6262 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6263 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6264 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6265 case.
6266 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6267 (build_std_type_info_type, gnuv3_get_typeid_type)
6268 (gnuv3_get_typeid): New functions.
6269 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6270 new fields on ABI object.
6271 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6272 * std-operator.def (OP_TYPEID): New.
6273
715c6909
TT
62742013-04-15 Tom Tromey <tromey@redhat.com>
6275
6276 * elfread.c (elf_symtab_read): Install versioned symbol under
6277 unversioned name as well.
6278
8de20a37
TT
62792013-04-15 Tom Tromey <tromey@redhat.com>
6280
6281 PR c++/11990:
6282 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6283 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6284 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6285 (gdb_demangle): New function.
6286 * cp-support.h (gdb_demangle): Declare.
6287 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6288 (dwarf2_name): Use gdb_demangle.
6289 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6290 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6291 suffixes from name.
6292 (gnuv3_print_method_ptr): Use gdb_demangle.
6293 * jv-lang.c (java_demangle): Use gdb_demangle.
6294 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6295 * language.c (unk_lang_demangle): Use gdb_demangle.
6296 * symtab.c (symbol_find_demangled_name)
6297 (demangle_for_lookup): Use gdb_demangle.
6298
591f19e8
TT
62992013-04-15 Tom Tromey <tromey@redhat.com>
6300
6301 PR c++/12824:
6302 * NEWS: Update.
6303 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6304 New constant.
6305 (classify_exception_breakpoint): New function.
6306 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6307 (print_mention_exception_catchpoint)
6308 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6309 (catch_exception_command_1): Handle "rethrow" catchpoint.
6310 (catch_rethrow_command): New function.
6311 (_initialize_breakpoint): Add "catch rethrow" command.
6312
4d40cad2
PM
63132013-04-15 Pierre Muller <muller@sourceware.org>
6314
6315 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6316 set_gdbarch_write_pc as deprecated anymore.
6317
30bcb456
JB
63182013-04-15 Joel Brobecker <brobecker@adacore.com>
6319
6320 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6321 declarations.
6322
da9160e4
YQ
63232013-04-13 Yao Qi <yao@codesourcery.com>
6324
6325 * ctf.c (_initialize_ctf): Include "completer.h".
6326 Call add_target_with_completer instead of add_target.
6327
39ed5604
JK
63282013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6329
6330 Fix GDB regression related to PR binutils/14813.
6331 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6332 * minidebug.c (lzma_close): Add return value comment.
6333 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6334 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6335 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6336
63372013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6338
6339 * config.in: Regenerate.
6340
d521ce57
TT
63412013-04-12 Tom Tromey <tromey@redhat.com>
6342
6343 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6344 const.
6345 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6346 (struct die_reader_specs) <buffer>: Likewise.
6347 (die_reader_func_ftype): Make 'info_ptr' const.
6348 (struct line_header) <include_dirs, statement_program_start,
6349 statement_program_end>: Now const.
6350 (struct file_entry) <name>: Likewise.
6351 (struct partial_die_info) <sibling>: Likewise.
6352 (struct dwarf_block) <data>: Likewise.
6353 (dwarf2_read_section): Remove cast.
6354 (dwarf2_get_section_info): Make 'bufp' const.
6355 (read_index_from_section): Constify.
6356 (dw2_get_file_names_reader): Make 'info_ptr' const.
6357 (dw2_get_primary_filename_reader): Likewise.
6358 (read_comp_unit_head): Make 'info_ptr' and return type const.
6359 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6360 Likewise.
6361 (read_abbrev_offset): Constify.
6362 (dwarf2_create_include_psymtab): Make 'name' const.
6363 (create_debug_types_hash_table): Update.
6364 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6365 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6366 Constify.
6367 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6368 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6369 (read_comp_units_from_section): Constify.
6370 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6371 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6372 const.
6373 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6374 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6375 (create_dwp_hash_table, dwarf2_ranges_read)
6376 (dwarf2_record_block_ranges): Constify.
6377 (read_die_and_children, read_die_and_siblings_1)
6378 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6379 const.
6380 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6381 (abbrev_table_read_table): Constify.
6382 (load_partial_dies): Make 'info_ptr' const.
6383 (read_partial_die, read_attribute_value, read_attribute): Make
6384 'info_ptr' and return type const.
6385 (read_address, read_initial_length)
6386 (read_checked_initial_length_and_offset, read_offset)
6387 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6388 const.
6389 (read_direct_string): Make 'buf' and return type const.
6390 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6391 (read_indirect_string): Make return type const.
6392 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6393 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6394 'info_ptr' const.
6395 (read_str_index): Make return type const.
6396 (add_include_dir): Make 'include_dir' const.
6397 (add_file_name): Make 'name' const.
6398 (dwarf_decode_line_header): Constify.
6399 (psymtab_include_file_name): Make return type const.
6400 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6401 (dwarf2_start_subfile): Make 'filename' const.
6402 (dwarf2_const_value_attr): Make 'bytes' const.
6403 (read_signatured_type_reader): Make 'info_ptr' const.
6404 (decode_locdesc): Constify.
6405 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6406 const.
6407 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6408 'mac_end', and return type const.
6409 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6410 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6411 type const.
6412 (per_cu_header_read_in): Constify.
6413 * symfile.h (dwarf2_get_section_info): Update.
6414
d47a1bc1
TT
64152013-04-12 Tom Tromey <tromey@redhat.com>
6416
6417 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6418
6eaaf48b
EZ
64192013-04-12 Eli Zaretskii <eliz@gnu.org>
6420
fc4c25bf 6421 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6422 * top.c (print_gdb_configuration): New function, displays the
6423 details about GDB configure-time parameters.
6424 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6425 * cli/cli-cmds.c (show_configuration): New function.
6426 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6427 * main.c (captured_main) <print_configuration>: New static var.
6428 <long_options>: Use it.
6429 If --configuration was given, call print_gdb_configuration.
6430
b292c783
JK
64312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6432 Pedro Alves <palves@redhat.com>
6433
6434 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6435 (generated_files): Add gcore.
6436 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6437 HAVE_NATIVE_GCORE_HOST.
6438 (gcore): New.
6439 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6440 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6441 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6442 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6443 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6444 Add HAVE_NATIVE_GCORE_HOST.
6445 * configure: Regenerate.
6446 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6447 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6448 AC_CONFIG_FILES for gcore.
6449 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6450 gdb_have_gcore.
6451 * gdb_gcore.sh: Rename to ...
6452 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6453 and GCORE_TRANSFORM_NAME substitutions.
6454
c96b3c4f
JK
6455 Fix parsing tabs in ${gdb_target_obs}.
6456 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6457
d6cb50a2
JK
64582013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6459
6460 * remote.c (unpush_and_perror): Add output message final dot.
6461
cf2cb5ec
YQ
64622013-04-11 Yao Qi <yao@codesourcery.com>
6463
6464 * tracepoint.c (tfile_interp_line): Fit parameters line and
6465 utpp in one line.
6466
07293be4
JB
64672013-04-10 Joel Brobecker <brobecker@adacore.com>
6468
6469 * solib.c (solib_map_sections): Remove code overwriting
6470 SO->SO_NAME with the bfd's filename.
6471
f81d1120
PA
64722013-04-10 Pedro Alves <palves@redhat.com>
6473
6474 * cli/cli-decode.c (integer_unlimited_completer): New function.
6475 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6476 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6477 completer.
6478 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6479 (is_unlimited_literal): New function.
6480 (do_set_command): Handle literal "unlimited" arguments.
6481 * frame.c (_initialize_frame) <set backtrace limit>: Document
6482 "unlimited".
6483 * printcmd.c (_initialize_printcmd) <set print
6484 max-symbolic-offset>: Add help text.
6485 * record-full.c (_initialize_record_full) <set record full
6486 insn-number-max>: Likewise.
6487 * record.c (_initialize_record) <set record
6488 instruction-history-size, set record function-call-history-size>:
6489 Add help text.
6490 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6491 help text.
6492 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6493 Likewise.
6494 * source.c (_initialize_source) <set listsize>: Add help text.
6495 * utils.c (initialize_utils) <set height, set width>: Likewise.
6496 <set pagination>: Mention "set height unlimited".
6497 * valprint.c (_initialize_valprint) <set print elements, set print
6498 repeats>: Document "unlimited".
6499
2f9d54cf
PA
65002013-04-10 Pedro Alves <palves@redhat.com>
6501
6502 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6503 instead of disconnect_tracing.
6504 * infcmd.c (detach_command, disconnect_command): Call
6505 query_if_trace_running. Adjust.
6506 * top.c: Include "tracepoint.h".
6507 (quit_target): Delete. Contents moved ...
6508 (quit_force): ... here. Wrap each stage of teardown in
6509 TRY_CATCH. Call disconnect_tracing before detaching.
6510
393fd4c3
YQ
65112013-04-10 Hui Zhu <hui@codesourcery.com>
6512 Yao Qi <yao@codesourcery.com>
6513
6514 * configure.ac: Check libbabeltrace is installed.
6515 * config.in: Regenerate.
6516 * configure: Regenerate.
6517 * Makefile.in (LIBBABELTRACE): New.
6518 (CLIBS): Add LIBBABELTRACE.
6519 * ctf.c: Include "exec.h".
6520 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6521 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6522 (ctf_save_metadata_header): Define new type aliases in
6523 metadata.
6524 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6525 in metadata. Start a new faked packet for trace status.
6526 (ctf_write_status): Write trace status to CTF.
6527 (ctf_write_uploaded_tsv): Write TSV to CTF.
6528 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6529 (ctf_write_definition_end): End the faked packet.
6530
6531 (ctx, ctf_iter, trace_dirname): New.
6532 (start_pos): New variable.
6533 (ctf_destroy, ctf_open_dir, ctf_open): New.
6534 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6535 macros.
6536 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6537 (ctf_fetch_registers, ctf_xfer_partial): New.
6538 (ctf_get_trace_state_variable_value): New.
6539 (ctf_get_tpnum_from_frame_event): New.
6540 (ctf_get_traceframe_address): New.
6541 (ctf_trace_find, ctf_has_stack): New.
6542 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6543 (ctf_get_trace_status, ctf_read_status): New.
6544 (_initialize_ctf): New.
6545 * tracepoint.c (get_tracepoint_number): New
6546 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6547 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6548 * tracepoint.h: ... here.
6549 (get_tracepoint_number): Declare it.
6550 (get_uploaded_tsv): Declare it.
6551
6552 * NEWS: Mention new configure option.
6553
5c2b4418
HZ
65542013-04-10 Pedro Alves <palves@redhat.com>
6555 Hui Zhu <hui@codesourcery.com>
6556
6557 * breakpoint.c (dprintf_re_set): New.
6558 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6559 to dprintf_re_set.
6560
a5c66735
JB
65612013-04-09 Joel Brobecker <brobecker@adacore.com>
6562
6563 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6564 Remove solib-svr4.o from the list.
6565
9e77999c
JB
65662013-04-09 Joel Brobecker <brobecker@adacore.com>
6567
6568 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6569 Use gdb_assert_not_reached instead of invalid boolean expression.
6570
1927e618
PA
65712013-04-09 Pedro Alves <palves@redhat.com>
6572
6573 * remote.c (unpush_and_perror): New function.
6574 (readchar, remote_serial_write): Use it.
6575
10782d74
MM
65762013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6577
6578 * NEWS: Mention new btrace RSP packets.
6579
4c8429ef
TT
65802013-04-08 Tom Tromey <tromey@redhat.com>
6581
6582 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6583 long.
6584
8625fc1b
TT
65852013-04-08 Tom Tromey <tromey@redhat.com>
6586
6587 * maint.c (print_bfd_section_info): Print the section index.
6588 * symmisc.c (dump_msymbols): Print the section index.
6589
e27d198c
TT
65902013-04-08 Tom Tromey <tromey@redhat.com>
6591
6592 PR symtab/8424:
6593 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6594 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6595 * breakpoint.c (resolve_sal_pc): Update.
6596 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6597 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6598 (minsym_lookup_iterator_cb): Use it.
6599 (default_read_var_value): Update.
6600 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6601 Update.
6602 * infcmd.c (jump_command): Update.
6603 * linespec.c (minsym_found): Update.
6604 * maint.c (maintenance_translate_address): Update.
6605 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6606 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6607 * parse.c (write_exp_msymbol): Update.
6608 * printcmd.c (address_info): Update.
6609 * psymtab.c (find_pc_sect_psymbol): Update.
6610 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6611 SYMBOL_OBJ_SECTION.
6612 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6613 Don't initialize SYMBOL_OBJ_SECTION.
6614 * spu-tdep.c (spu_catch_start): Update.
6615 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6616 * symmisc.c (dump_msymbols, print_symbol): Update.
6617 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6618 how fallback section is computed.
6619 (fixup_symbol_section): Update.
6620 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6621 Update.
6622 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6623 Initialize SYMBOL_SECTION.
6624 * symtab.h (struct general_symbol_info) <section>: Update comment.
6625 <obj_section>: Remove.
6626 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6627 (SYMBOL_OBJFILE): New macro.
6628
e6dc44a8
TT
66292013-04-08 Tom Tromey <tromey@redhat.com>
6630
6631 * coffread.c (record_minimal_symbol): Update.
6632 * dbxread.c (record_minimal_symbol): Update.
6633 * elfread.c (record_minimal_symbol): Update.
6634 * machoread.c (macho_symtab_add_minsym): Update.
6635 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6636 Update.
6637 * minsyms.c (prim_record_minimal_symbol): Update.
6638 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6639 argument.
6640 (prim_record_minimal_symbol_and_info): Likewise.
6641 * minsyms.h (prim_record_minimal_symbol_full)
6642 (prim_record_minimal_symbol_and_info): Update.
6643 * symtab.c (allocate_symbol, initialize_symbol)
6644 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6645 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6646 Update.
6647
36192a8d
TT
66482013-04-08 Tom Tromey <tromey@redhat.com>
6649
6650 PR symtab/8423:
6651 * solib-som.c (som_solib_section_offsets): Use BFD section
6652 indices. Set offsets for all sections.
6653 * somread.c (som_symtab_read): Compute BFD section for
6654 symbol. Use prim_record_minimal_symbol_and_info.
6655 (som_symfile_read): Fix comment.
6656 (struct find_section_offset_arg): New.
6657 (find_section_offset, set_section_index): New functions.
6658 (som_symfile_offsets): Use set_section_index to compute
6659 section indices.
6660
65cf3563
TT
66612013-04-08 Tom Tromey <tromey@redhat.com>
6662
6663 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6664 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6665 gdb_bfd_section_index.
6666 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6667 New functions.
6668 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6669 Declare.
6670 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6671 Update.
6672 * objfiles.c (add_to_objfile_sections_full): New function.
6673 (add_to_objfile_sections): Use it.
6674 (build_section_table): Rewrite.
6675 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6676 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6677 (struct objfile) <sections>: Update comment.
6678 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6679 is NULL.
6680 (ALL_OBJSECTIONS): Use it.
6681 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6682 * solib-frv.c (frv_relocate_main_executable): Update.
6683 * solib-target.c (solib_target_relocate_section_addresses):
6684 Use gdb_bfd_section_index.
6685 * symfile.c (build_section_addr_info_from_section_table):
6686 Use gdb_bfd_section_index.
6687 (build_section_addr_info_from_bfd, place_section): Likewise.
6688 * symtab.c (fixup_section): Update.
6689 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6690
7cbd4a93
TT
66912013-04-08 Tom Tromey <tromey@redhat.com>
6692
6693 * minsyms.h (struct bound_minimal_symbol): New.
6694 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6695 Remove objfile argument.
6696 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6697 Return bound_minimal_symbol.
6698 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6699 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6700 Return bound_minimal_symbol.
6701 (in_gnu_ifunc_stub): Update.
6702 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6703 Remove 'objfile_p' argument.
6704 (lookup_solib_trampoline_symbol_by_pc): Update.
6705 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6706 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6707 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6708 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6709 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6710 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6711 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6712 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6713 stack.c, symtab.c, tui/tui-disasm.c: Update.
6714
f85f34ed
TT
67152013-04-08 Tom Tromey <tromey@redhat.com>
6716
6717 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6718 Use symbol's obstack, not an objfile.
6719 * coffread.c (process_coff_symbol): Update.
6720 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6721 * jv-lang.c (add_class_symbol): Update.
6722 * mdebugread.c (new_symbol): Update.
6723 * minsyms.c (prim_record_minimal_symbol_full)
6724 (terminate_minimal_symbol_table): Update.
6725 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6726 * stabsread.c (define_symbol, read_enum_type): Update.
6727 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6728 Handle Ada specially.
6729 (symbol_set_language): Add 'obstack' argument.
6730 (symbol_set_names): Update.
6731 (symbol_natural_name, symbol_demangled_name): Always use
6732 ada_decode_symbol.
6733 * symtab.h (struct general_symbol_info)
6734 <language_specific::obstack>: New field.
6735 <ada_mangled>: New field.
6736 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6737 (symbol_set_language): Update.
6738
ccde22c0
TT
67392013-04-08 Tom Tromey <tromey@redhat.com>
6740
6741 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6742 Take an obstack, not an objfile.
6743 (symbol_set_names): Update.
6744 * symtab.h (symbol_set_demangled_name): Update.
6745
e623cf5d
TT
67462013-04-08 Tom Tromey <tromey@redhat.com>
6747
6748 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6749 allocate_symbol.
6750 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6751 (read_func_scope): Call allocate_template_symbol.
6752 (new_symbol_full): Call allocate_symbol.
6753 * jit.c (finalize_symtab): Call allocate_symbol.
6754 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6755 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6756 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6757 (common_block_end): Call allocate_symbol.
6758 * symtab.c (allocate_symbol, initialize_symbol)
6759 (allocate_template_symbol): New functions.
6760 * symtab.c (allocate_symbol, initialize_symbol)
6761 (allocate_template_symbol): Declare.
6762 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6763
f6de8ec2
PA
67642013-04-08 Pedro Alves <palves@redhat.com>
6765 Keith Seitz <keiths@redhat.com>
6766
6767 * breakpoint.c (create_breakpoint): Rename
6768 "parse_condition_and_thread" parameter to "parse_arg". Update
6769 describing comment. If !PARSE_ARG, then error out if ARG is not
6770 the empty string after extracting the location.
6771 * breakpoint.h (create_breakpoint): Rename
6772 "parse_condition_and_thread" parameter to "parse_arg".
6773
f65ce5fb
AR
67742013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6775
6776 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6777
cc5925ad
YQ
67782013-04-07 Yao Qi <yao@codesourcery.com>
6779
6780 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6781 and 'addr2' to CORE_ADDR.
6782 * target.c (update_current_target): Update.
6783 * target.h (struct target_ops) <to_trace_find>: Change parameter
6784 type to CORE_ADDR.
6785 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6786 'addr2' to CORE_ADDR.
6787 (tfile_trace_find): Likewise.
6788 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6789 Change local variable 'addr' to type CORE_ADDR.
6790 * tracepoint.h (tfind_1): Update declaration.
6791
d9ac0664
EZ
67922013-04-06 Eli Zaretskii <eliz@gnu.org>
6793
6794 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6795 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6796 Include main.h.
6797
6798 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6799 here...
6800 * main.h (windows_get_absolute_argv0): ...to here.
6801
02142a6c
DE
68022013-04-05 Doug Evans <dje@google.com>
6803
6804 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6805 (read_cutu_die_from_dwo): Add comments.
6806 (read_structure_type): Update comment.
6807 (read_enumeration_type, read_namespace_type): Update comment.
6808 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6809
43662968
JK
68102013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6811
6812 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6813 * Makefile.in (gdb.z): Remove.
6814 (install-only): Remove $(man1dir) and gdb.1 installation.
6815 * gdb.1: Remove.
6816
9ead1b84
JK
68172013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6818
6819 Fix compatibility with Linux kernel 3.8.3.
6820 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6821 to more inner block. Remove parsing of NUMBER from outer block.
6822 Parse NUMBER only if KEYWORD has been identified.
6823
d1794952
JK
68242013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6825
6826 Fix variable name shadowing.
6827 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6828 filename to mapsfilename and update its uses.
6829
9025569e
EZ
68302013-04-05 Eli Zaretskii <eliz@gnu.org>
6831
6832 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6833 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6834 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6835 details of the problem.
6836
c9a6ce02
PA
68372013-04-04 Pedro Alves <palves@redhat.com>
6838 Hui Zhu <hui@codesourcery.com>
6839
6840 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6841 tracepoint, reset its STEP_COUNT and call validate_actionline.
6842
5ff888ce
DE
68432013-04-03 Doug Evans <dje@google.com>
6844
bf6af496
DE
6845 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6846 read_die_and_siblings.
6847 (read_die_and_siblings): New function.
6848 (read_cutu_die_from_dwo): Dump die if requested.
6849 (read_die_and_children): Call read_full_die_1 and
6850 read_die_and_siblings_1.
6851 (read_full_die): Dump die if requested.
6852
6853 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6854
0ac5b59e
DE
6855 * dwarf2read.c (struct dwo_file): New member comp_dir.
6856 Rename member name to dwo_name. All uses updated.
6857 (hash_dwo_file): Include comp_dir in computation.
6858 (eq_dwo_file): Ditto.
6859 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6860 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6861
5ff888ce
DE
6862 * psymtab.c (read_psymtabs_with_fullname): Don't call
6863 psymtab_to_fullname if the basenames are different.
6864
ec83d211
JK
68652013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6868 New entry about "fullname" presence.
6869
4f4352f7
PA
68702013-04-03 Pedro Alves <palves@redhat.com>
6871
6872 * NEWS: Mention x86_64/Cygwin as new native configuration.
6873
3d1d5ea3
DE
68742013-04-02 Doug Evans <dje@google.com>
6875
6876 * dwarf2read.c (read_structure_type): Fix typo in comment.
6877
be9a8770
PA
68782013-04-02 Pedro Alves <palves@redhat.com>
6879
6880 * NEWS: Mention "set/show debug aarch64", "set/show debug
6881 coff-pe-read" and "set/show debug mach-o".
6882
a46c1e42
PA
68832013-04-02 Pedro Alves <palves@redhat.com>
6884
6885 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6886
3ad18b19
EZ
68872013-04-02 Eli Zaretskii <eliz@gnu.org>
6888
6889 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6890 gdb_string.h is now in common/.
6891
e9f1758d
PA
68922013-04-02 Pedro Alves <palves@redhat.com>
6893
6894 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6895 under "New options".
6896
049dc89b
JK
68972013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6898
6899 Revert this patch:
6900 PR gdb/15275
6901 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6902
c33e31fd
PA
69032013-04-02 Pedro Alves <palves@redhat.com>
6904
6905 PR gdb/15275
6906
6907 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6908 (remote_serial_write): New function.
6909 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6910
ea5f3910
JW
69112013-04-01 Jiong Wang <jiwang@tilera.com>
6912
6913 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6914 "New targets" sections.
ea5f3910 6915
5c6fa7ab
DE
69162013-04-01 Doug Evans <dje@google.com>
6917
c0f78cd4
DE
6918 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6919 (process_enumeration_scope): Simplify.
6920
0186c6a7
DE
6921 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6922 type_unit_group ...
6923 (struct signatured_type): ... to here.
6924 (sig_type_ptr): New typedef.
6925 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6926 out of union 't'. All uses updated.
6927 (dw2_get_file_names_reader): Assert not called for a type unit.
6928 (dw2_get_file_names): Assert not called for a type unit or type
6929 unit group.
6930 (build_type_psymtabs_reader): Assert called for a type unit.
6931 (build_type_psymtab_dependencies): Assert called for a type unit group.
6932
5c6fa7ab
DE
6933 * dwarf2read.c (free_dwo_file): Add comment.
6934 (dwarf2_per_objfile_free): Unref dwp bfd.
6935
b3c0ad67 69362013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
6937
6938 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6939 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6940 (read_pe_exported_syms): Remove unused 'exportix'.
6941 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6942 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6943 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6944
e2df1547
AR
69452013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6946
6947 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6948 (print_it_watchpoint): Remove unused 'bl'.
6949 (say_where): Remove unused 'uiout'.
6950 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6951 (bkpt_breakpoint_hit): Remove unused 'b'.
6952 (internal_bkpt_print_it): Remove unused 'uiout'.
6953 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6954
d81e75c0
TD
69552013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6956
6957 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6958 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6959
5a8b3f62
DE
69602013-03-29 Doug Evans <dje@google.com>
6961
ab5088bf
DE
6962 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6963 Delete arg is_dwp. All callers updated.
6964 (open_dwp_file): New function.
6965 (open_and_init_dwp_file): Call it.
6966 (get_dwp_file): New function.
6967 (lookup_dwo_cutu): Call it.
6968
a8ad1e57
DE
6969 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6970 unnecessary, cleanup.
6971
6296d8c1
DE
6972 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6973
b0c7bfa9
DE
6974 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6975 (lookup_dwo_unit): New function.
6976 (init_cutu_and_read_dies): Move DWO handling to new functions.
6977
c88ee1f0
DE
6978 * dwarf2read.c (struct signatured_type): Tweak comment.
6979 (struct dwo_unit): Tweak comment.
6980 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6981 (create_dwo_debug_info_hash_table): Tweak comment.
6982 (dwarf2_per_cu_offset_and_type): Tweak comment.
6983
5a8b3f62
DE
6984 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6985 missing .debug_types section.
6986
9852c492
YQ
69872013-03-29 Yao Qi <yao@codesourcery.com>
6988
6989 * corelow.c: Include "completer.h".
6990 (_initialize_corelow): Call add_target_with_completer with
6991 argument 'filename_completer'.
6992 * tracepoint.c: Likewise.
6993 * exec.c (_initialize_exec): Likewise.
6994 * target.c (add_target): Rename to ...
6995 (add_target_with_completer): ... this. Call set_cmd_completer
6996 if parameter completer is not NULL.
6997 (add_target): New.
6998 * target.h: Include "command.h".
6999 (add_target_with_completer): Declare it.
7000
af312be7
JB
70012013-03-28 Joel Brobecker <brobecker@adacore.com>
7002
7003 * coffread.c (is_import_fixup_symbol): New function.
7004 (record_minimal_symbol): Use is_import_fixup_symbol to
7005 detect import fixup symbols, and discard them.
7006
8a0459fd
DE
70072013-03-28 Doug Evans <dje@google.com>
7008
0349ea22
DE
7009 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7010 types hash table until we know we need it.
7011
f652bce2
DE
7012 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7013 index numbers.
7014
e4a48d9d
DE
7015 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7016 All callers updated.
7017 (dw2_print_stats): Print #read CUs too.
7018 (dump_die_shallow): Print signatured types better.
7019
8a0459fd
DE
7020 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7021 info_or_types_section to section. All uses updated.
7022 (struct dwo_unit): Ditto.
7023
bd3eecc3
PA
70242013-03-28 Pedro Alves <palves@redhat.com>
7025
7026 * NEWS (New options): New section.
7027 (New options): Mention set/show remote trace-status-packet.
7028 * remote.c (PACKET_qTStatus): New enumeration value.
7029 (remote_get_trace_status): Skip sending qTStatus if the packet is
7030 disabled. Use packet_ok.
7031 (_initialize_remote): Register a configuration command for
7032 qTStatus packet.
7033
41245087
DE
70342013-03-28 Doug Evans <dje@google.com>
7035
7edbb660
DE
7036 * symfile.c (find_separate_debug_file): Add comment.
7037 (terminate_after_last_dir_separator): Tweak comment.
7038
0018ea6f
DE
7039 * dwarf2read.c (create_partial_symtab): Add forward decl.
7040 (create_partial_symtab): Move to be closer to other psymtab functions.
7041 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7042
ca69b9e6
DE
7043 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7044 (compute_symtab_includes): Remove unnecessary forward declaration.
7045 (die_needs_namespace): Add comment marking group of functions for
7046 dwarf2 name computation.
7047
a9375afe
DE
7048 * typeprint.c (_initialize_typeprint): Improve type help text.
7049
41245087
DE
7050 * python/python.c (finish_python_initialization): Provide suggestion
7051 for how to tell gdb to find its python files.
7052
7f7cc265
PA
70532013-03-28 Pedro Alves <palves@redhat.com>
7054
7055 PR gdb/15294
7056
7057 * source.c (_initialize_source): Change back "set listsize" to an
7058 integer command.
7059
ec21308c
JK
70602013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7061
7062 PR gdb/15275
7063 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7064
840a9a1f
PA
70652013-03-27 Pedro Alves <palves@redhat.com>
7066
7067 * top.c (history_size): Rename to ...
7068 (history_size_setshow_var): ... this. Add comment.
7069 (show_commands): Use readline's 'history_length' instead of
7070 computing the history length by calling history_get in a loop.
7071 (set_history_size_command): Error out for sizes over INT_MAX.
7072 Restore previous history size on invalid size.
7073 (init_history): If HISTSIZE is negative, leave the history size as
7074 zero. Add comments.
7075 (init_main): Adjust.
7076
826ecc4d
PA
70772013-03-27 Pedro Alves <palves@redhat.com>
7078
7079 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7080 coff_pe_read" command to "set debug coff-pe-read".
7081
0ccfeeae
MM
70822013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7083
7084 * record.c (command_size_to_target_size): Fix size comparison.
7085 Change parameter type from pointer to integer to integer.
7086 Update all users.
7087
40653b35
PM
70882013-03-27 Pierre Muller <muller@sourceware.org>
7089
7090 * windows-nat.c (handle_output_debug_string): Avoid typecast
7091 from integer of different size warning.
7092
c62fa0e2
JB
70932013-03-26 Joel Brobecker <brobecker@adacore.com>
7094
7095 * windows-nat.c (handle_output_debug_string): Add empty line
7096 after local block variable definition.
7097
2c619be2
PA
70982013-03-26 Pedro Alves <palves@redhat.com>
7099
7100 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7101 (net_open): Make 'polls' local unsigned.
7102
1b493192
PA
71032013-03-26 Pedro Alves <palves@redhat.com>
7104
7105 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7106 a zuinteger command instead of uinteger.
7107
7ee70bf5
PA
71082013-03-26 Pedro Alves <palves@redhat.com>
7109
7110 * record-full.c (record_full_insn_num): Make it unsigned.
7111 (record_full_check_insn_num, record_full_message)
7112 (record_full_registers_change, record_full_xfer_partial): Remove
7113 record_full_insn_max_num check (it's always != 0).
7114 (record_full_info, record_full_restore): Use %u as format string.
7115 (): Use %u as format string.
7116 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7117 check (it's always != 0).
7118
dfd1f9bb
PA
71192013-03-26 Pedro Alves <palves@redhat.com>
7120
7121 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7122 and "set dcache size" commands zuinteger instead of uinteger.
7123
addb4faf
PA
71242013-03-26 Pedro Alves <palves@redhat.com>
7125
7126 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7127 command zuinteger instead of uinteger.
7128
b75bf488
PA
71292013-03-26 Pedro Alves <palves@redhat.com>
7130
7131 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7132 zuinteger instead of uinteger.
7133
42c634cb
PA
71342013-03-26 Pedro Alves <palves@redhat.com>
7135
7136 * record.c (record_insn_history_size_setshow_var)
7137 (record_call_history_size_setshow_var): New globals.
7138 (command_size_to_target_size): New function.
7139 (cmd_record_insn_history, cmd_record_call_history): Use
7140 command_size_to_target_size instead of cast.
7141 (validate_history_size, set_record_insn_history_size)
7142 (set_record_call_history_size): New functions.
7143 (_initialize_record): Install set_record_insn_history_size and
7144 set_record_call_history_size as "set" hooks of "set record
7145 instruction-history-size" and "set record
7146 function-call-history-size".
7147
1fb2e2b5
PA
71482013-03-26 Pedro Alves <palves@redhat.com>
7149
7150 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7151 use with history_max_entries use. Remove FIXME note.
7152
99c819ee
MM
71532013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7154
7155 * record-btrace.c (record_btrace_close): Call
7156 record_btrace_auto_disable.
7157
9f9e404c
JB
71582013-03-25 Joel Brobecker <brobecker@adacore.com>
7159
7160 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7161
ebcdfe33
DE
71622013-03-25 Doug Evans <dje@google.com>
7163
7164 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7165
24955f63
TT
71662013-03-25 Tom Tromey <tromey@redhat.com>
7167
7168 PR symtab/11462:
7169 * c-exp.y (exp): Add new productions for destructors after '.' and
7170 '->'.
7171 (write_destructor_name): New function.
7172
fce632b6
TT
71732013-03-25 Tom Tromey <tromey@redhat.com>
7174
7175 PR c++/9197:
7176 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7177 value_struct_elt, not lookup_struct_elt_type.
7178 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7179 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7180 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7181
a4341769
YQ
71822013-03-25 Yao Qi <yao@codesourcery.com>
7183
7184 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7185 instead of '_mkdir'.
7186
b5981e5a
EZ
71872013-03-23 Eli Zaretskii <eliz@gnu.org>
7188
7189 * windows-nat.c (windows_get_absolute_argv0): New function.
7190 * windows-nat.h: Add its prototype.
7191
7192 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7193 Use IS_DIR_SEPARATOR instead of looking for a character inside
7194 SLASH_STRING. Include filenames.h.
7195 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7196 relocate_gdb_directory works when passed gdb_program_name.
7197 Include windows-nat.h.
7198
598d3636
JK
71992013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7202 * remote.c (trace_error): Remove the special handling of '2'.
7203 (readchar) <SERIAL_EOF>
7204 (readchar) <SERIAL_ERROR>
7205 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7206 (remote_get_trace_status): Call throw_exception if EX is
7207 TARGET_CLOSE_ERROR.
7208 * utils.c (perror_with_name): Rename to ...
7209 (throw_perror_with_name): ... here. New parameter errcode, describe it
7210 in the function comment.
7211 (perror_with_name): New function wrapper.
7212 * utils.h (enum errors): New stub declaration.
7213 (throw_perror_with_name): New declaration.
7214
82b821e9
PA
72152013-03-22 Pedro Alves <palves@redhat.com>
7216 Yao Qi <yao@codesourcery.com>
7217 Mark Kettenis <kettenis@gnu.org>
7218
7219 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7220 Don't let the user set the value to UINT_MAX directly.
7221 <var_integer>: Don't let the user set the value to INT_MAX
7222 directly.
7223
78a095c3
JK
72242013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7225
7226 * remote.c (remote_unpush_target): New function.
7227 (remote_open_1): Remove two pop_target calls, update one comment, add
7228 comment to target_preopen call. Replace pop_target call by
7229 remote_unpush_target call.
7230 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7231 pop_target calls by remote_unpush_target calls.
7232
3e74e146
PA
72332013-03-22 Pedro Alves <palves@redhat.com>
7234
7235 * linux-nat.c (linux_child_follow_fork): Don't call
7236 linux_enable_event_reporting.
7237 (linux_handle_extended_wait): Don't call
7238 linux_enable_event_reporting.
7239
a2213dca
PA
72402013-03-22 Pedro Alves <palves@redhat.com>
7241
7242 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7243 use it to rewrite the trampoline buffers with type gdb_byte[], and
7244 undefine the macro. Remove char* cast.
7245
bd712aed
DE
72462013-03-21 Doug Evans <dje@google.com>
7247
7248 New commands "mt set per-command {space,time,symtab} {on,off}".
7249 * NEWS: Add entry.
7250 * event-top.c: #include "maint.h".
7251 * main.c: #include "maint.h".
7252 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7253 timeval-utils.h, maint.h, cli/cli-setshow.h.
7254 (per_command_time, per_command_space): New static globals.
7255 (per_command_symtab): New static global.
7256 (per_command_setlist, per_command_showlist): New static globals.
7257 (struct cmd_stats): Move here from utils.c.
7258 (set_per_command_time): Renamed from set_display_time in utils.c
7259 and moved here. All callers updated.
7260 (set_per_command_space): Renamed from set_display_space in utils.c
7261 and moved here. All callers updated.
7262 (count_symtabs_and_blocks): New function.
7263 (report_command_stats): Moved here from utils.c. Add support for
7264 printing symtab stats. Only print data if enabled before command
7265 executed.
7266 (make_command_stats_cleanup): Ditto.
7267 (sert_per_command_cmd, show_per_command_cmd): New functions.
7268 (_initialize_maint_cmds): Add new commands
7269 mt set per-command {space,time,symtab} {on,off}.
7270 * maint.h: New file.
7271 * top.c: #include "maint.h".
7272 * utils.c (reset_prompt_for_continue_wait_time): New function.
7273 (get_prompt_for_continue_wait_time): New function.
7274 * utils.h (reset_prompt_for_continue_wait_time): Declare
7275 (get_prompt_for_continue_wait_time): Declare.
7276 (make_command_stats_cleanup): Moved to maint.h.
7277 (set_display_time, set_display_space): Moved to maint.h and renamed
7278 to set_per_command_time, set_per_command_space.
7279 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7280 parse_binary_operation and made non-static. Don't call error,
7281 just return an error marker. All callers updated.
7282 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7283
d76488d8
TT
72842013-03-21 Tom Tromey <tromey@redhat.com>
7285
7286 * symfile.c (alloc_section_addr_info): Update header. Don't set
7287 'num_sections' field.
7288 (build_section_addr_info_from_section_table): Set 'num_sections'.
7289 (build_section_addr_info_from_bfd): Likewise.
7290 (build_section_addr_info_from_objfile): Remove dead loop
7291 condition.
7292 (free_section_addr_info): Unconditionally call xfree.
7293 (relative_addr_info_to_section_offsets, addrs_section_sort)
7294 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7295 condition.
7296 (syms_from_objfile_1): Remove dead 'if' condition. Check
7297 'num_sections'.
7298 (add_symbol_file_command): Set 'num_sections'.
7299 * symfile-mem.c (symbol_file_add_from_memory): Set
7300 'num_sections'.
7301 * somread.c (som_symfile_offsets): Remove dead loop condition.
7302 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7303 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7304
a72e5169 73052013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7306
7307 * tracepoint.h (decode_agent_options): Add 'trace_string'
7308 argument.
7309 * tracepoint.c (decode_agent_options): Add 'trace_string'
7310 argument.
7311 (validate_actionline): Update.
7312 (collect_symbol): Add 'trace_string' argument.
7313 (struct add_local_symbols_data) <trace_string>: New field.
7314 (do_collect_symbol): Update.
7315 (add_local_symbols): Add 'trace_string' argument.
7316 (encode_actions_1): Update.
7317 (trace_dump_actions): Update.
7318 * dwarf2loc.c (access_memory): Update.
7319 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7320 * ax-general.c (new_agent_expr): Update.
7321 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7322 (gen_trace_for_return_address): Add argument.
7323 (trace_kludge, trace_string_kludge): Remove.
7324 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7325 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7326 (gen_trace_for_var): Add 'trace_string' argument.
7327 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7328 (gen_printf, agent_eval_command_one): Update.
7329
b2f83c08
TT
73302013-03-21 Tom Tromey <tromey@redhat.com>
7331
7332 PR exp/15109:
7333 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7334 Handle FILENAME token.
7335
9507860e
TT
73362013-03-21 Tom Tromey <tromey@redhat.com>
7337
7338 * c-exp.y (YYPRINT): Define.
7339 (c_print_token): New function.
7340
e403aa4b
TT
73412013-03-21 Tom Tromey <tromey@redhat.com>
7342
7343 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7344
af307d6a
YQ
73452013-03-21 Yao Qi <yao@codesourcery.com>
7346
7347 * ctf.c: Include "gdb_stat.h".
7348 [USE_WIN32API]: New macro 'mkdir'.
7349 (ctf_start): Use permission bits macros if they are defined.
7350
fb81d016
KS
73512013-03-20 Keith Seitz <keiths@redhat.com>
7352
7353 * breakpoint.h (struct breakpoint): Add comment to
7354 extra_string indicating that this member is mallod'd.
7355 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7356
ef0026f0
PA
73572013-03-20 Pedro Alves <palves@redhat.com>
7358
7359 PR gdb/15289
7360
7361 * cli/cli-setshow.c (do_set_command)
7362 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7363 the result of parsing the command argument. Throw error if the
7364 value is greater than UINT_MAX. Print the invalid value with
7365 plongest.
7366 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7367 result of parsing the command argument. Throw error if the value
7368 is greater than INT_MAX, not greater or equal. Also throw error
7369 if the value is less than INT_MIN. Print the invalid value with
7370 plongest.
7371 <var_zuinteger_unlimited>: Throw error if the value is greater
7372 than INT_MAX, not greater or equal.
7373 (do_show_command) <var_integer, var_zinteger,
7374 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7375
24d6c2a0
TT
73762013-03-20 Tom Tromey <tromey@redhat.com>
7377
7378 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7379 if possible.
7380 * dwarf2read.c (read_func_scope): Remove old FIXME.
7381 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7382 not LOC_COMPUTED.
7383 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7384 Unconditionally call via computed ops, if possible.
7385 * printcmd.c (address_info): Unconditionally call via computed ops,
7386 if possible.
7387 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7388 if possible.
7389 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7390 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7391 if possible.
7392
f1e6e072
TT
73932013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7394 Tom Tromey <tromey@redhat.com>
7395
7396 PR symtab/8421:
7397 * coffread.c (coff_register_index): New global.
7398 (process_coff_symbol, coff_read_enum_type): Set
7399 SYMBOL_ACLASS_INDEX.
7400 (_initialize_coffread): Initialize new global.
7401 * dwarf2loc.c (locexpr_find_frame_base_location)
7402 (dwarf2_block_frame_base_locexpr_funcs)
7403 (loclist_find_frame_base_location)
7404 (dwarf2_block_frame_base_loclist_funcs): New.
7405 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7406 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7407 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7408 (dwarf2_block_frame_base_loclist_funcs): New.
7409 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7410 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7411 globals.
7412 (read_func_scope): Update.
7413 (fixup_go_packaging, mark_common_block_symbol_computed)
7414 (var_decode_location, new_symbol_full, dwarf2_const_value):
7415 Set SYMBOL_ACLASS_INDEX.
7416 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7417 (_initialize_dwarf2_read): Initialize new globals.
7418 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7419 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7420 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7421 globals.
7422 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7423 (_initialize_mdebugread): Initialize new globals.
7424 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7425 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7426 (stab_register_index, stab_regparm_index): New globals.
7427 (define_symbol, read_enum_type, common_block_end): Set
7428 SYMBOL_ACLASS_INDEX.
7429 (_initialize_stabsread): Initialize new globals.
7430 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7431 globals.
7432 (MAX_SYMBOL_IMPLS): New define.
7433 (register_symbol_computed_impl, register_symbol_block_impl)
7434 (register_symbol_register_impl)
7435 (initialize_ordinary_address_classes): New functions.
7436 (_initialize_symtab): Call initialize_ordinary_address_classes.
7437 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7438 (struct symbol_impl): New.
7439 (SYMBOL_ACLASS_BITS): New define.
7440 (struct symbol) <aclass, ops>: Remove fields.
7441 <aclass_index>: New field.
7442 (symbol_impls): Declare.
7443 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7444 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7445 (register_symbol_computed_impl, register_symbol_block_impl)
7446 (register_symbol_register_impl): Declare.
7447 (struct symbol_computed_ops): Add location_has_loclist.
7448 (struct symbol_block_ops): New.
7449 (SYMBOL_BLOCK_OPS): New.
7450 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7451
dbccfd4c
TT
74522013-03-20 Tom Tromey <tromey@redhat.com>
7453
7454 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7455 (print_partial_symbols, recursively_search_psymtabs): Use
7456 PSYMBOL_CLASS.
7457
e3f1ad4f
PM
74582013-03-20 Pierre Muller <muller@sourceware.org>
7459
7460 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7461 addtion, subtraction, multiplication and division binary operator.
7462
460014f5
JK
74632013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 Code cleanup.
7466 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7467 * bsd-kvm.c (bsd_kvm_close): Likewise.
7468 * bsd-uthread.c (bsd_uthread_close): Likewise.
7469 * corelow.c (core_close): Likewise.
7470 (core_close_cleanup): Remove parameter quitting from a caller.
7471 * event-top.c (async_disconnect): Likewise.
7472 * exec.c (exec_close_1): Remove parameter quitting.
7473 * go32-nat.c (go32_close): Likewise.
7474 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7475 parameter quitting from a caller.
7476 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7477 variable.
7478 (mips_linux_close): Remove parameter quitting. Remove parameter
7479 quitting from a caller.
7480 * monitor.c (monitor_close): Remove parameter quitting.
7481 * monitor.h (monitor_close): Likewise.
7482 * record-btrace.c (record_btrace_close): Likewise.
7483 * record-full.c (record_full_close): Likewise.
7484 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7485 it also from fprintf_unfiltered.
7486 * remote-mips.c (mips_close): Remove parameter quitting.
7487 (mips_detach): Remove parameter quitting from a caller.
7488 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7489 (gdbsim_close): Remove duplicate function comment. Remove parameter
7490 quitting and remove it also from printf_filtered.
7491 * remote.c (remote_close): Remove parameter quitting.
7492 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7493 * target.c (update_current_target): Remove parameter int from to_close
7494 de_fault.
7495 (push_target, unpush_target, pop_target): Remove parameter quitting from
7496 a caller.
7497 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7498 Remove parameter quitting from a caller.
7499 (target_preopen): Remove parameter quitting from a caller.
7500 (target_close): Remove parameter quitting. Remove parameter quitting
7501 from a caller two times. Remove parameter quitting also from
7502 fprintf_unfiltered.
7503 * target.h (struct target_ops): Remove parameter quitting and as int
7504 from fields to_xclose and to_close.
7505 (extern struct target_ops current_target):
7506 (target_close, pop_all_targets): Remove parameter quitting. Update the
7507 comment.
7508 (pop_all_targets_above): Remove parameter quitting.
7509 * top.c (quit_target): Remove parameter quitting from a caller.
7510 * tracepoint.c (tfile_close): Remove parameter quitting.
7511 * windows-nat.c (windows_close): Remove parameter quitting.
7512
35a7120b
CV
75132013-03-20 Corinna Vinschen <vinschen@redhat.com>
7514
7515 * windows-nat.c (handle_output_debug_string): Replace call
7516 to string_to_core_addr with call to strtoull.
7517
8249a5a9
YQ
75182013-03-20 Yao Qi <yao@codesourcery.com>
7519
7520 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7521 and write it to CTF metadata.
7522
2c15ef43
CV
75232013-03-19 Corinna Vinschen <vinschen@redhat.com>
7524
7525 * windows-nat.c (handle_output_debug_string): Change type of n to
7526 SIZE_T to avoid crash on 64 bit systems.
7527
1cdd3232
EZ
75282013-03-17 Eli Zaretskii <eliz@gnu.org>
7529
7530 * python/python-internal.h (HAVE_SNPRINTF)
7531 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7532 about redefinition of snprintf by pyerrors.h.
7533
3cb2ab1a
SE
75342013-03-15 Steve Ellcey <sellcey@mips.com>
7535
7536 * remote-sim.c (sim_command_completer): Make char arguments const.
7537
9ce98649
TT
75382013-03-15 Tom Tromey <tromey@redhat.com>
7539
7540 PR c++/15116:
7541 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7542
dccee2de
TT
75432013-03-14 Tom Tromey <tromey@redhat.com>
7544
7545 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7546 New fields.
7547 (get_file_crc): Move from symfile.c.
7548 (gdb_bfd_crc): New function.
7549 * gdb_bfd.h (gdb_bfd_crc): Declare.
7550 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7551 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7552 (separate_debug_file_exists): Use gdb_bfd_crc.
7553
cc0ea93c
TT
75542013-03-14 Tom Tromey <tromey@redhat.com>
7555
7556 * symfile.c (get_debug_link_info): Remove.
7557 (find_separate_debug_file_by_debuglink): Use
7558 bfd_get_debug_link_info.
7559
08c23b0d
TT
75602013-03-14 Tom Tromey <tromey@redhat.com>
7561
7562 * symtab.c (error_in_psymtab_expansion): New function.
7563 (lookup_symbol_aux_quick)
7564 (basic_lookup_transparent_type_quick): Remove "last resort"
7565 code. Use error_in_psymtab_expansion.
7566
288e77a7
JK
75672013-03-14 Doug Evans <dje@google.com>
7568 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7571 any successful compare_filenames_for_search or FILENAME_CMP.
7572 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7573 * symtab.c (iterate_over_some_symtabs): Likewise.
7574
8f1b8b82
JK
75752013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7576
7577 * source.c (print_source_lines_base): Make a local copy of
7578 symtab_to_fullname.
7579
23eb71e4
JK
75802013-03-14 Hui Zhu <hui_zhu@mentor.com>
7581 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 * source.c (print_source_lines_base): Suppress "file" for TUI.
7584
bb869963
SDJ
75852013-03-14 Keith Seitz <keiths@redhat.com>
7586 Alan Matsuoka <alanm@redhat.com>
7587
7588 PR c++/15203
7589 PR c++/15210
7590 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7591 TYPE_CODE_METHOD.
7592 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7593 symbols.
7594
d6682f9e
YQ
75952013-03-14 Yao Qi <yao@codesourcery.com>
7596
7597 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7598 status to tfile if trace is stopped by command 'tstop'.
7599
a22fa6e4
YQ
76002013-03-14 Yao Qi <yao@codesourcery.com>
7601
7602 * tracepoint.c (tfile_write_status): Write trace notes and user
7603 name into tfile if they are not NULL.
7604
d0353e76
YQ
76052013-03-14 Hui Zhu <hui@codesourcery.com>
7606 Yao Qi <yao@codesourcery.com>
7607
7608 * Makefile.in (REMOTE_OBS): Add ctf.o.
7609 (SFILES): Add ctf.c.
7610 (HFILES_NO_SRCDIR): Add ctf.h.
7611 * ctf.c, ctf.h: New files.
7612 * tracepoint.c: Include 'ctf.h'.
7613 (collect_pseudocommand): Remove static.
7614 (trace_save_command): Parse option "-ctf".
7615 Produce different trace file writers per option.
7616 Adjust output message.
7617 (trace_save_tfile, trace_save_ctf): New.
7618 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7619 * mi/mi-main.c: Include 'ctf.h'.
7620 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7621 trace_save_tfile or trace_save_ctf.
7622 * NEWS: Mention these changes.
7623
3f43bc09
YQ
76242013-03-14 Yao Qi <yao@codesourcery.com>
7625
7626 * tracepoint.c (trace_file_writer_xfree): New.
7627 (struct tfile_writer_data): New.
7628 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7629 (tfile_write_header, tfile_write_regblock_type): New.
7630 (tfile_write_status, tfile_write_uploaded_tsv): New.
7631 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7632 (tfile_write_raw_data, (tfile_end): New.
7633 (tfile_write_ops): New global variable.
7634 (TRACE_WRITE_R_BLOCK): New macro.
7635 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7636 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7637 (TRACE_WRITE_V_BLOCK): New macro.
7638 (trace_save): Add extra one parameter WRITER. Make it static.
7639 Use WRITER to writer trace.
7640 (tfile_trace_file_writer_new): New.
7641 (trace_save_command): Caller update.
7642 (trace_save_tfile): Write trace data in TFILE format.
7643 * tracepoint.h (struct trace_frame_write_ops): New.
7644 (struct trace_file_write_ops): New.
7645 (struct trace_file_writer): New.
7646 (trace_save): Remove its declaration.
7647 (trace_save_tfile): Declare it.
7648 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7649 instead of trace_save.
7650
58665b40
PA
76512013-03-13 Pedro Alves <palves@redhat.com>
7652
7653 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7654
10217050
PA
76552013-03-13 Pedro Alves <palves@redhat.com>
7656
7657 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7658 commented out code.
7659 * demangle.c (current_demangling_style_string): Make it const.
7660 (set_demangling_command): Assert the demangling style is known.
7661 Remove all handling of unknown styles. Set
7662 'current_demangling_style_string' to an element of the
7663 demangling_style_names array.
7664 (set_demangling_style): Delete.
7665 (_initialize_demangler): Set current_demangling_style_string to the
7666 element of the demangling_style_names array that corresponds to
7667 the default demangling style. Remove FIXME note. Don't call
7668 set_demangling_style.
7669 * gdb-demangle.h (set_demangling_style): Remove declaration.
7670
6f937416
PA
76712013-03-13 Pedro Alves <palves@redhat.com>
7672
7673 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7674 fields const.
7675 (ada_make_symbol_completion_list): Make "text0" parameter const.
7676 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7677 * breakpoint.c (condition_completer): Make "text" and "word"
7678 parameters const. Adjust.
7679 (check_tracepoint_command): Adjust to validate_actionline
7680 prototype change.
7681 (catch_syscall_completer): Make "text" and "word" parameters
7682 const.
7683 * cli/cli-cmds.c (show_user): Make "comname" local const.
7684 (valid_command_p): Make "command" parameter const.
7685 (alias_command): Make "alias_prefix" and "command_prefix" locals
7686 const.
7687 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7688 (add_alias_cmd): Make "name" and "oldname" parameters const.
7689 Adjust. No longer make copy of OLDNAME.
7690 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7691 (add_setshow_cmd_full, add_setshow_enum_cmd)
7692 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7693 (add_setshow_filename_cmd, add_setshow_string_cmd)
7694 (add_setshow_string_noescape_cmd)
7695 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7696 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7697 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7698 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7699 Make "name" parameter const.
7700 (help_cmd): Rename "command" parameter to "arg". New const local
7701 "command".
7702 (find_cmd): Make "command" parameter const.
7703 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7704 deprecated_cmd_warning prototype change.
7705 (undef_cmd_error): Make "cmdtype" parameter const.
7706 (lookup_cmd): Make "line" parameter const.
7707 (deprecated_cmd_warning): Change type of "text" parameter to
7708 pointer to const char, from pointer to pointer to char. Adjust.
7709 (lookup_cmd_composition): Make "text" parameter const.
7710 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7711 parameters const.
7712 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7713 const.
7714 * cli/cli-script.c (validate_comname): Make "tem" local const.
7715 (define_command): New const local "tem_c". Use it in calls to
7716 lookup_cmd.
7717 (document_command): Make "tem" and "comfull" locals const.
7718 (show_user_1): Make "prefix" and "name" parameters const.
7719 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7720 const.
7721 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7722 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7723 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7724 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7725 (complete_on_enum, add_setshow_enum_cmd)
7726 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7727 (add_setshow_filename_cmd, add_setshow_string_cmd)
7728 (add_setshow_string_noescape_cmd)
7729 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7730 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7731 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7732 Change prototypes, constifying strings.
7733 * completer.c (noop_completer, filename_completer): Make "text"
7734 and "prefix" parameters const.
7735 (location_completer, expression_completer)
7736 (complete_line_internal): Make "text" and "prefix" parameters
7737 const and adjust.
7738 (command_completer, signal_completer): Make "text" and "prefix"
7739 parameters const.
7740 * completer.h (noop_completer, filename_completer)
7741 (expression_completer, location_completer, command_completer)
7742 (signal_completer): Change prototypes.
7743 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7744 parameters const.
7745 * cp-abi.c (cp_abi_completer): Likewise.
7746 * expression.h (parse_expression_for_completion): Change
7747 prototype.
7748 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7749 parameters const.
7750 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7751 * infrun.c (handle_completer): Make "text" and "word" parameters
7752 const.
7753 * interps.c (interpreter_completer): Make "text" and "word"
7754 parameters const.
7755 * language.h (struct language_defn)
7756 <la_make_symbol_completion_list>: Make "text" and "word"
7757 parameters const.
7758 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7759 (parse_exp_in_context): Rename to ...
7760 (parse_exp_in_context_1): ... this.
7761 (parse_exp_in_context): Reimplement, with const hack from
7762 parse_exp_1.
7763 (parse_expression_for_completion): Make "string" parameter const.
7764 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7765 to pointer to const char. Adjust.
7766 (print_command_1): Make "exp" parameter const.
7767 (output_command): Rename to ...
7768 (output_command_const): ... this. Make "exp" parameter const.
7769 (output_command): Reimplement.
7770 (x_command): Adjust.
7771 (display_command): Rename "exp" parameter to "arg". New "exp"
7772 local, const version of "arg".
7773 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7774 "cmd_name" local const.
7775 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7776 call.
7777 (cmdpy_completer): Make "text" and "word" parameters const.
7778 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7779 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7780 const.
7781 * remote.c (_initialize_remote): Make "cmd_name" local const.
7782 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7783 parameters const. Adjust.
7784 (completion_list_add_fields): Make "sym_text", "text" and "word"
7785 parameters const.
7786 (struct add_name_data) <sym_text, text, word>: Make fields const.
7787 (default_make_symbol_completion_list_break_on): Make "text" and
7788 "word" parameters const. Adjust locals.
7789 (default_make_symbol_completion_list)
7790 (make_symbol_completion_list, make_symbol_completion_type)
7791 (make_symbol_completion_list_fn): Make "text" and "word"
7792 parameters const.
7793 (make_file_symbol_completion_list): Make "text", "word" and
7794 "srcfile" parameters const. Adjust locals.
7795 (add_filename_to_list): Make "text" and "word" parameters const.
7796 (struct add_partial_filename_data) <text, word>: Make fields
7797 const.
7798 (make_source_files_completion_list): Make "text" and "word"
7799 parameters const.
7800 * symtab.h (default_make_symbol_completion_list_break_on)
7801 (default_make_symbol_completion_list, make_symbol_completion_list)
7802 (make_symbol_completion_type enum type_code)
7803 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7804 (make_source_files_completion_list): Change prototype.
7805 * top.c (execute_command): Adjust to pass pointer to pointer to
7806 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7807 change.
7808 (set_verbose): Make "cmdname" local const.
7809 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7810 and adjust.
7811 (validate_actionline): Make "line" parameter a pointer to const
7812 char, and adjust.
7813 (encode_actions_1): Make "action_exp" local const, and adjust.
7814 (encode_actions): Adjust.
7815 (replace_comma): Delete.
7816 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7817 const, and adjust. Don't frob the action string while splitting
7818 it at commas. Instead, make a copy of each split substring in
7819 turn.
7820 (trace_dump_command): Adjust to validate_actionline prototype
7821 change.
7822 * tracepoint.h (decode_agent_options, decode_agent_options)
7823 (encode_actions, validate_actionline): Change prototypes.
7824 * valprint.h (output_command): Delete declaration.
7825 (output_command_const): Declare.
7826 * value.c (function_destroyer): Cast const away in xfree call.
7827
a0bcdaa7
PA
78282013-03-13 Pedro Alves <palves@redhat.com>
7829
7830 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7831 rather than casting 'const char * const *' to 'const char **'.
7832 * ada-lex.l (processInt): Make "trailer" local const. Remove
7833 'const char **' cast.
7834 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7835 locals, and use those as strtol output pointer, instead than doing
7836 invalid casts to from 'const char **' to 'char **'.
7837 (_initialize_demangle): Remove cast.
7838 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7839 locals, and use those as strtol output pointer, instead than doing
7840 invalid casts to from 'const char **' to 'char **'.
7841 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7842 casts.
7843 * stap-probe.c (stap_parse_register_operand)
7844 (stap_parse_single_operand): Likewise.
7845
8ddb1965
YQ
78462013-03-13 Yao Qi <yao@codesourcery.com>
7847
7848 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7849 the last matched 'V' blcok in trace frame.
7850
2d450646
JB
78512013-03-12 Joel Brobecker <brobecker@adacore.com>
7852
7853 * NEWS: Create a new section for the next release branch.
7854 Rename the section of the current branch, now that it has
7855 been cut.
7856
b4b79973 78572013-03-12 Joel Brobecker <brobecker@adacore.com>
7858
7859 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7860 * version.in: Bump version to 7.6.50.20130312-cvs.
7861
ee047554
KS
78622013-03-12 Keith Seitz <keiths@redhat.com>
7863
7864 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7865 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7866 Remove temporary copy of input string.
7867 (mi_execute_command_wrapper): Make "cmd" const.
7868 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7869 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7870 Use const strings.
7871 (mi_parse): Make "cmd" const.
7872 Use const strings.
7873 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7874
bbc13ae3
KS
78752013-03-12 Keith Seitz <keiths@redhat.com>
7876
7877 * ada-lang.c (ada_read_renaming_var_value): Pass const
7878 pointer to expression string to parse_exp_1.
7879 (create_excep_cond_exprs): Likewise.
7880 * ax-gdb.c (agent_eval_command_one): Likewise.
7881 (maint_agent_printf_command): Likewise.
7882 Constify much of the string handling/parsing.
7883 * breakpoint.c (set_breakpoint_condition): Pass const
7884 pointer to expression string to parse_exp_1.
7885 (update_watchpoint): Likewise.
7886 (parse_cmd_to_aexpr): Constify string handling.
7887 Pass const pointer to parse_exp_1.
7888 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7889 (find_condition_and_thread): Likewise.
7890 Make TOK const.
7891 (watch_command_1): Make "arg" const.
7892 Constify string handling.
7893 Copy the expression string instead of changing the input
7894 string.
7895 (update_breakpoint_location): Pass const pointer to
7896 parse_exp_1.
7897 * eval.c (parse_and_eval_address): Make "exp" const.
7898 (parse_to_comma_and_eval): Make "expp" const.
7899 (parse_and_eval): Make "exp" const.
7900 * expression.h (parse_expression): Make argument const.
7901 (parse_exp_1): Make first argument const.
7902 * findcmd.c (parse_find_args): Treat "args" as const.
7903 * linespec.c (parse_linespec): Pass const pointer to
7904 linespec_expression_to_pc.
7905 (linespec_expression_to_pc): Make "exp_ptr" const.
7906 * parse.c (parse_exp_1): Make "stringptr" const.
7907 Make a copy of the expression to pass to parse_exp_in_context until
7908 this whole interface can be constified.
7909 (parse_expression): Make "string" const.
7910 * printcmd.c (ui_printf): Treat "arg" as const.
7911 Handle const strings.
7912 * tracepoint.c (validate_actionline): Pass const pointer to
7913 all calls to parse_exp_1.
7914 (encode_actions_1): Likewise.
7915 * value.h (parse_to_comma_and_eval): Make argument const.
7916 (parse_and_eval_address): Likewise.
7917 (parse_and_eval): Likewise.
7918 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7919 (varobj_set_value): Likewise.
7920 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7921 constify string handling.
7922 Pass const pointers to parse_and_eval_address and
7923 parse_to_comman_and_eval.
7924 * cli/cli-utils.c (skip_to_space): Rename to ...
7925 (skip_to_space_const): ... this. Handle const strings.
7926 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7927 skip_to_space_const.
7928 (skip_to_space_const): Declare.
7929 * common/format.c (parse_format_string): Make "arg" const.
7930 Handle const strings.
7931 * common/format.h (parse_format_string): Make "arg" const.
7932 * gdbserver/ax.c (ax_printf): Make "format" const.
7933 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7934 of the expression string.
7935
f3cec7e6
HZ
79362013-03-12 Hui Zhu <hui@codesourcery.com>
7937
7938 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7939
9df7235c
HZ
79402013-03-12 Yao Qi <yao@codesourcery.com>
7941 Hui Zhu <hui@codesourcery.com>
7942
7943 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7944 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7945 DW_OP_deref_size.
7946
82d049ab
PH
79472013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7948
5f8e0b8f
MF
7949 * ada-lex.l (rules): Only recognize 'thread' as a
7950 delimiter when followed by numerals, as for c-exp.y.
7951 Use new rewind_to_char function to rewind the input for
7952 expression-delimiting tokens.
7953 (rewind_to_char): New function.
82d049ab 7954
8c1fb155
JK
79552013-03-11 Pedro Alves <palves@redhat.com>
7956 Jan Kratochvil <jan.kratochvil@redhat.com>
7957
7958 * configure: Regenerate.
7959 * configure.ac (check dynamic export flag): Link python test with
7960 $PYTHON_LIBS.
7961
cc81e1c6
DE
79622013-03-11 Doug Evans <dje@google.com>
7963 Keith Seitz <keiths@redhat.com>
7964
7965 * linespec.c (find_linespec_symbols): Call find_function_symbols
7966 first, and then call lookup_prefix_sym/find_method.
7967
39086a0e
PA
79682013-03-11 Pedro Alves <palves@redhat.com>
7969
7970 * charset.c (convert_between_encodings): Don't cast between
7971 different pointer to pointer types. Instead, make the 'inp' local
7972 be of the type iconv expects.
7973 (wchar_iterate): Don't cast between different pointer to pointer
7974 types. Instead, use new pointer local of the type iconv expects.
7975 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7976 Add new local of type char pointer, and use it to get a
7977 char/string view of the byte buffer, instead of casting between
7978 pointer to pointer types.
7979
90585175
HAQ
79802013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7981
7982 * remote.c (remote_set_trace_buffer_size): Move != operator
7983 to the start of next line to fix an ARI warning.
7984
59ea5688
MM
79852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7986
7987 * NEWS: Add record changes.
7988
946287b7
MM
79892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7990
7991 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7992 the instruction history disassembly.
7993 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7994 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7995
afedecd3
MM
79962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7997
7998 * Makefile.in (SFILES): Add record-btrace.c
7999 (COMMON_OBS): Add record-btrace.o
8000 * record-btrace.c: New.
8001 * objfiles.c: Include btrace.h.
8002 (free_objfile): call btrace_free_objfile.
8003
15984c13
MM
80042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8005
8006 * target.c (target_call_history, target_call_history_from,
8007 target_call_history_range): New.
8008 * target.h (target_ops) <to_call_history, to_call_history_from,
8009 to_call_history_range>: New fields.
8010 (target_call_history, target_call_history_from,
8011 target_call_history_range): New declaration.
8012 * record.c (get_call_history_modifiers, cmd_record_call_history,
8013 record_call_history_size): New.
8014 (_initialize_record): Add the "record function-call-history" command.
8015 Add "set/show record function-call-history-size" commands.
8016 * record.h (record_print_flag): New.
8017
67c86d06
MM
80182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8019
8020 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8021 to_insn_history_range>: New fields.
8022 (target_insn_history): New.
8023 (target_insn_history_from): New.
8024 (target_insn_history_range): New.
8025 * target.c (target_insn_history): New.
8026 (target_insn_history_from): New.
8027 (target_insn_history_range): New.
8028 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8029 (record_insn_history_size): New.
8030 (get_insn_number): New.
8031 (get_context_size): New.
8032 (no_chunk): New.
8033 (get_insn_history_modifiers): New.
8034 (cmd_record_insn_history): New.
8035 (_initialize_record): Add "set/show record instruction-history-size"
8036 command. Add "record instruction-history" command.
8037
7c1687a9
MM
80382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8039
8040 * record.h (record_disconnect): New.
8041 (record_detach): New.
8042 (record_mourn_inferior): New.
8043 (record_kill): New.
8044 * record-full.c (record_disconnect, record_detach,
8045 record_mourn_inferior, record_kill): Move to...
8046 * record.c: ...here.
8047 (DEBUG): New.
8048 (record_stop): New.
8049 (record_unpush): New.
8050 (cmd_record_stop): Call record_stop. Replace unpush_target
8051 call with record_unpush call.
8052 (record_disconnect, record_detach): Assert that the target
8053 is of record stratum. Call record_unpush, record_stop, and
8054 DEBUG.
8055 (record_mourn_inferior, record_kill): Assert that the target
8056 is of record stratum. Call record_unpush and DEBUG.
8057
25ea693b
MM
80582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8059
8060 * record-full.h, record-full.c (record_memory_query): Rename
8061 to ...
8062 (record_full_memory_query): ...this. Update all users.
8063 (record_arch_list_add_reg): Rename to ...
8064 (record_full_arch_list_add_reg): ...this. Update all users.
8065 (record_arch_list_add_mem): Rename to ...
8066 (record_full_arch_list_add_mem): ...this. Update all users.
8067 (record_arch_list_add_end): Rename to ...
8068 (record_full_arch_list_add_end): ...this. Update all users.
8069 (record_gdb_operation_disable_set): Rename to ...
8070 (record_full_gdb_operation_disable_set): ...this.
8071 Update all users.
8072
88d1aa9d
MM
80732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8074
8075 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8076 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8077 (RECORD_IS_REPLAY): Renamed to ...
8078 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8079 (RECORD_FILE_MAGIC): Renamed to ...
8080 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8081 (record_mem_entry): Renamed to ...
8082 (record_full_mem_entry): ... this. Updated all users.
8083 (record_reg_entry): Renamed to ...
8084 (record_full_reg_entry): ... this. Updated all users.
8085 (record_end_entry): Renamed to ...
8086 (record_full_end_entry): ... this. Updated all users.
8087 (record_type) <record_end, record_reg, record_mem>: Renamed
8088 to ...
8089 (record_full_type) <record_full_end, record_full_reg,
8090 record_full_mem>: ... this. Updated all users.
8091 (record_entry): Renamed to ...
8092 (record_full_entry): ... this. Updated all users.
8093 (record_core_buf_entry): Renamed to ...
8094 (record_full_core_buf_entry): ... this. Updated all users.
8095 (record_core_regbuf): Renamed to ...
8096 (record_full_core_regbuf): ... this. Updated all users.
8097 (record_core_start): Renamed to ...
8098 (record_full_core_start): ... this. Updated all users.
8099 (record_core_end): Renamed to ...
8100 (record_full_core_end): ... this. Updated all users.
8101 (record_core_buf_list): Renamed to ...
8102 (record_full_core_buf_list): ... this. Updated all users.
8103 (record_first): Renamed to ...
8104 (record_full_first): ... this. Updated all users.
8105 (record_list): Renamed to ...
8106 (record_full_list): ... this. Updated all users.
8107 (record_arch_list_head): Renamed to ...
8108 (record_full_arch_list_head): ... this. Updated all users.
8109 (record_arch_list_tail): Renamed to ...
8110 (record_full_arch_list_tail): ... this. Updated all users.
8111 (record_stop_at_limit): Renamed to ...
8112 (record_full_stop_at_limit): ... this. Updated all users.
8113 (record_insn_max_num): Renamed to ...
8114 (record_full_insn_max_num): ... this. Updated all users.
8115 (record_insn_num): Renamed to ...
8116 (record_full_insn_num): ... this. Updated all users.
8117 (record_insn_count): Renamed to ...
8118 (record_full_insn_count): ... this. Updated all users.
8119 (record_ops): Renamed to ...
8120 (record_full_ops): ... this. Updated all users.
8121 (record_core_ops): Renamed to ...
8122 (record_full_core_ops): ... this. Updated all users.
8123 (set_record_cmdlist): Renamed to ...
8124 (set_record_full_cmdlist): ... this. Updated all users.
8125 (show_record_cmdlist): Renamed to ...
8126 (show_record_full_cmdlist): ... this. Updated all users.
8127 (record_cmdlist): Renamed to ...
8128 (record_full_cmdlist): ... this. Updated all users.
8129 (record_beneath_to_resume_ops): Renamed to ...
8130 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8131 (record_beneath_to_resume): Renamed to ...
8132 (record_full_beneath_to_resume): ... this. Updated all users.
8133 (record_beneath_to_wait_ops): Renamed to ...
8134 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8135 (record_beneath_to_wait): Renamed to ...
8136 (record_full_beneath_to_wait): ... this. Updated all users.
8137 (record_beneath_to_store_registers_ops): Renamed to ...
8138 (record_full_beneath_to_store_registers_ops): ... this.
8139 Updated all users.
8140 (record_beneath_to_store_registers): Renamed to ...
8141 (record_full_beneath_to_store_registers): ... this.
8142 Updated all users.
8143 (record_beneath_to_xfer_partial_ops): Renamed to ...
8144 (record_full_beneath_to_xfer_partial_ops): ... this.
8145 Updated all users.
8146 (record_beneath_to_xfer_partial): Renamed to ...
8147 (record_full_beneath_to_xfer_partial): ... this.
8148 Updated all users.
8149 (record_beneath_to_insert_breakpoint): Renamed to ...
8150 (record_full_beneath_to_insert_breakpoint): ... this.
8151 Updated all users.
8152 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8153 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8154 Updated all users.
8155 (record_beneath_to_stopped_data_address): Renamed to ...
8156 (record_full_beneath_to_stopped_data_address): ... this.
8157 Updated all users.
8158 (record_beneath_to_async): Renamed to ...
8159 (record_full_beneath_to_async): ... this. Updated all users.
8160 (record_goto_insn): Renamed to ...
8161 (record_full_goto_insn): ... this. Updated all users.
8162 (record_save): Renamed to ...
8163 (record_full_save): ... this. Updated all users.
8164 (record_reg_alloc): Renamed to ...
8165 (record_full_reg_alloc): ... this. Updated all users.
8166 (record_reg_release): Renamed to ...
8167 (record_full_reg_release): ... this. Updated all users.
8168 (record_mem_alloc): Renamed to ...
8169 (record_full_mem_alloc): ... this. Updated all users.
8170 (record_mem_release): Renamed to ...
8171 (record_full_mem_release): ... this. Updated all users.
8172 (record_end_alloc): Renamed to ...
8173 (record_full_end_alloc): ... this. Updated all users.
8174 (record_end_release): Renamed to ...
8175 (record_full_end_release): ... this. Updated all users.
8176 (record_entry_release): Renamed to ...
8177 (record_full_entry_release): ... this. Updated all users.
8178 (record_list_release): Renamed to ...
8179 (record_full_list_release): ... this. Updated all users.
8180 (record_list_release_following): Renamed to ...
8181 (record_full_list_release_following): ... this.
8182 Updated all users.
8183 (record_list_release_first): Renamed to ...
8184 (record_full_list_release_first): ... this. Updated all users.
8185 (record_arch_list_add): Renamed to ...
8186 (record_full_arch_list_add): ... this. Updated all users.
8187 (record_get_loc): Renamed to ...
8188 (record_full_get_loc): ... this. Updated all users.
8189 (record_check_insn_num): Renamed to ...
8190 (record_full_check_insn_num): ... this. Updated all users.
8191 (record_arch_list_cleanups): Renamed to ...
8192 (record_full_arch_list_cleanups): ... this. Updated all users.
8193 (record_message): Renamed to ...
8194 (record_full_message): ... this. Updated all users.
8195 (record_message_wrapper): Renamed to ...
8196 (record_full_message_wrapper): ... this. Updated all users.
8197 (record_message_wrapper_safe): Renamed to ...
8198 (record_full_message_wrapper_safe): ... this. Updated all users.
8199 (record_gdb_operation_disable): Renamed to ...
8200 (record_full_gdb_operation_disable): ... this. Updated all users.
8201 (record_hw_watchpoint): Renamed to ...
8202 (record_full_hw_watchpoint): ... this. Updated all users.
8203 (record_exec_insn): Renamed to ...
8204 (record_full_exec_insn): ... this. Updated all users.
8205 (record_restore): Renamed to ...
8206 (record_full_restore): ... this. Updated all users.
8207 (record_async_inferior_event_token): Renamed to ...
8208 (record_full_async_inferior_event_token): ... this.
8209 Updated all users.
8210 (record_async_inferior_event_handler): Renamed to ...
8211 (record_full_async_inferior_event_handler): ... this.
8212 Updated all users.
8213 (record_core_open_1): Renamed to ...
8214 (record_full_core_open_1): ... this. Updated all users.
8215 (record_open_1): Renamed to ...
8216 (record_full_open_1): ... this. Updated all users.
8217 (record_open): Renamed to ...
8218 (record_full_open): ... this. Updated all users.
8219 (record_close): Renamed to ...
8220 (record_full_close): ... this. Updated all users.
8221 (record_resume_step): Renamed to ...
8222 (record_full_resume_step): ... this. Updated all users.
8223 (record_resumed): Renamed to ...
8224 (record_full_resumed): ... this. Updated all users.
8225 (record_execution_dir): Renamed to ...
8226 (record_full_execution_dir): ... this. Updated all users.
8227 (record_resume): Renamed to ...
8228 (record_full_resume): ... this. Updated all users.
8229 (record_get_sig): Renamed to ...
8230 (record_full_get_sig): ... this. Updated all users.
8231 (record_sig_handler): Renamed to ...
8232 (record_full_sig_handler): ... this. Updated all users.
8233 (record_wait_cleanups): Renamed to ...
8234 (record_full_wait_cleanups): ... this. Updated all users.
8235 (record_wait_1): Renamed to ...
8236 (record_full_wait_1): ... this. Updated all users.
8237 (record_wait): Renamed to ...
8238 (record_full_wait): ... this. Updated all users.
8239 (record_stopped_by_watchpoint): Renamed to ...
8240 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8241 (record_disconnect): Renamed to ...
8242 (record_full_disconnect): ... this. Updated all users.
8243 (record_detach): Renamed to ...
8244 (record_full_detach): ... this. Updated all users.
8245 (record_mourn_inferior): Renamed to ...
8246 (record_full_mourn_inferior): ... this. Updated all users.
8247 (record_kill): Renamed to ...
8248 (record_full_kill): ... this. Updated all users.
8249 (record_stopped_data_address): Renamed to ...
8250 (record_full_stopped_data_address): ... this. Updated all users.
8251 (record_registers_change): Renamed to ...
8252 (record_full_registers_change): ... this. Updated all users.
8253 (record_store_registers): Renamed to ...
8254 (record_full_store_registers): ... this. Updated all users.
8255 (record_xfer_partial): Renamed to ...
8256 (record_full_xfer_partial): ... this. Updated all users.
8257 (record_breakpoint): Renamed to ...
8258 (record_full_breakpoint): ... this. Updated all users.
8259 (record_breakpoint_p): Renamed to ...
8260 (record_full_breakpoint_p): ... this. Updated all users.
8261 (record_breakpoints): Renamed to ...
8262 (record_full_breakpoints): ... this. Updated all users.
8263 (record_sync_record_breakpoints): Renamed to ...
8264 (record_full_sync_record_breakpoints): ... this.
8265 Updated all users.
8266 (record_init_record_breakpoints): Renamed to ...
8267 (record_full_init_record_breakpoints): ... this.
8268 Updated all users.
8269 (record_insert_breakpoint): Renamed to ...
8270 (record_full_insert_breakpoint): ... this. Updated all users.
8271 (record_remove_breakpoint): Renamed to ...
8272 (record_full_remove_breakpoint): ... this. Updated all users.
8273 (record_can_execute_reverse): Renamed to ...
8274 (record_full_can_execute_reverse): ... this. Updated all users.
8275 (record_get_bookmark): Renamed to ...
8276 (record_full_get_bookmark): ... this. Updated all users.
8277 (record_goto_bookmark): Renamed to ...
8278 (record_full_goto_bookmark): ... this. Updated all users.
8279 (record_async): Renamed to ...
8280 (record_full_async): ... this. Updated all users.
8281 (record_can_async_p): Renamed to ...
8282 (record_full_can_async_p): ... this. Updated all users.
8283 (record_is_async_p): Renamed to ...
8284 (record_full_is_async_p): ... this. Updated all users.
8285 (record_execution_direction): Renamed to ...
8286 (record_full_execution_direction): ... this. Updated all users.
8287 (record_info): Renamed to ...
8288 (record_full_info): ... this. Updated all users.
8289 (record_delete): Renamed to ...
8290 (record_full_delete): ... this. Updated all users.
8291 (record_is_replaying): Renamed to ...
8292 (record_full_is_replaying): ... this. Updated all users.
8293 (record_goto_entry): Renamed to ...
8294 (record_full_goto_entry): ... this. Updated all users.
8295 (record_goto_begin): Renamed to ...
8296 (record_full_goto_begin): ... this. Updated all users.
8297 (record_goto_end): Renamed to ...
8298 (record_full_goto_end): ... this. Updated all users.
8299 (record_goto): Renamed to ...
8300 (record_full_goto): ... this. Updated all users.
8301 (init_record_ops): Renamed to ...
8302 (init_record_full_ops): ... this. Updated all users.
8303 (record_core_resume): Renamed to ...
8304 (record_full_core_resume): ... this. Updated all users.
8305 (record_core_kill): Renamed to ...
8306 (record_full_core_kill): ... this. Updated all users.
8307 (record_core_fetch_registers): Renamed to ...
8308 (record_full_core_fetch_registers): ... this. Updated all users.
8309 (record_core_prepare_to_store): Renamed to ...
8310 (record_full_core_prepare_to_store): ... this. Updated all users.
8311 (record_core_store_registers): Renamed to ...
8312 (record_full_core_store_registers): ... this. Updated all users.
8313 (record_core_xfer_partial): Renamed to ...
8314 (record_full_core_xfer_partial): ... this. Updated all users.
8315 (record_core_insert_breakpoint): Renamed to ...
8316 (record_full_core_insert_breakpoint): ... this. Updated all users.
8317 (record_core_remove_breakpoint): Renamed to ...
8318 (record_full_core_remove_breakpoint): ... this. Updated all users.
8319 (record_core_has_execution): Renamed to ...
8320 (record_full_core_has_execution): ... this. Updated all users.
8321 (init_record_core_ops): Renamed to ...
8322 (init_record_full_core_ops): ... this. Updated all users.
8323 (cmd_record_restore): Renamed to ...
8324 (cmd_record_full_restore): ... this. Updated all users.
8325 (record_save_cleanups): Renamed to ...
8326 (record_full_save_cleanups): ... this. Updated all users.
8327 (cmd_record_start): Renamed to ...
8328 (cmd_record_full_start): ... this. Updated all users.
8329 (set_record_insn_max_num): Renamed to ...
8330 (set_record_full_insn_max_num): ... this. Updated all users.
8331 (set_record_command): Renamed to ...
8332 (set_record_full_command): ... this. Updated all users.
8333 (show_record_command): Renamed to ...
8334 (show_record_full_command): ... this. Updated all users.
8335 (_initialize_record): Renamed to ...
8336 (_initialize_record_full): ... this. Updated all users.
8337
d02ed0bb
MM
83382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8339
8340 * record.h: Split into this and ...
8341 * record-full.h: ... this.
8342 * record.c: Split into this and ...
8343 * record-full.c: ... this.
8344 * target.h (target_ops): Add new fields to_info_record,
8345 to_save_record, to_delete_record, to_record_is_replaying,
8346 to_goto_record_begin, to_goto_record_end, to_goto_record.
8347 (target_info_record): New.
8348 (target_save_record): New.
8349 (target_supports_delete_record): New.
8350 (target_delete_record): New.
8351 (target_record_is_replaying): New.
8352 (target_goto_record_begin): New.
8353 (target_goto_record_end): New.
8354 (target_goto_record): New.
8355 * target.c (target_info_record): New.
8356 (target_save_record): New.
8357 (target_supports_delete_record): New.
8358 (target_delete_record): New.
8359 (target_record_is_replaying): New.
8360 (target_goto_record_begin): New.
8361 (target_goto_record_end): New.
8362 (target_goto_record): New.
8363 * record.h: Declare struct cmd_list_element.
8364 (record_cmdlist): New declaration.
8365 (set_record_cmdlist): New declaration.
8366 (show_record_cmdlist): New declaration.
8367 (info_record_cmdlist): New declaration.
8368 (cmd_record_goto): New declaration.
8369 * record.c: Remove unnecessary includes.
8370 Include inferior.h.
8371 (cmd_record_goto): Remove declaration.
8372 (record_cmdlist): Now extern. Initialize.
8373 (set_record_cmdlist): Now extern. Initialize.
8374 (show_record_cmdlist): Now extern. Initialize.
8375 (info_record_cmdlist): Now extern. Initialize.
8376 (find_record_target): New.
8377 (require_record_target): New.
8378 (cmd_record_start): Update.
8379 (cmd_record_delete): Remove target-specific code.
8380 Call target_delete_record.
8381 (cmd_record_stop): Unpush any record target.
8382 (set_record_insn_max_num): Move to record-full.c
8383 (set_record_command): Add comment.
8384 (show_record_command): Add comment.
8385 (info_record_command): Update comment.
8386 Remove target-specific code.
8387 Call the record target's to_info_record.
8388 (cmd_record_start): New.
8389 (cmd_record_goto): Now extern.
8390 Remove target-specific code.
8391 Call target_goto_begin, target_goto_end, or target_goto.
8392 (_initialize_record): Move record target ops initialization to
8393 record-full.c.
8394 Change "record" command help text.
8395 Move "record restore", "record set", and "record show" commands to
8396 record-full.c.
8397 * Makefile.in (SFILES): Add record-full.c.
8398 (HFILES_NO_SRCDIR): Add record-full.h.
8399 (COMMON_OBS): Add record-full.o.
8400 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8401 * arm-tdep.c: Include record-full.h.
8402 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8403 * i386-tdep.c: Include record-full.h.
8404 * infrun.c: Include record-full.h.
8405 * linux-record.c: Include record-full.h.
8406 * moxie-tdep.c: Include record-full.h.
8407 * record-full.c: Include record-full.h.
8408 Change module comment.
8409 (set_record_full_cmdlist): New.
8410 (show_record_full_cmdlist): New.
8411 (record_full_cmdlist): New.
8412 (record_goto_insn): New declaration.
8413 (record_save): New declaration.
8414 (record_check_insn_num): Change query string.
8415 (record_info): New.
8416 (record_delete): New.
8417 (record_is_replaying): New.
8418 (record_goto_entry): New.
8419 (record_goto_begin): New.
8420 (record_goto_end): New.
8421 (record_goto): New.
8422 (init_record_ops): Update.
8423 (init_record_core_ops): Update.
8424 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8425 (cmd_record_start): New.
8426 (set_record_insn_max_num): Moved from record.c
8427 (set_record_full_command): New.
8428 (show_record_full_command): New.
8429 (_initialize_record_full): New.
8430
b48d48eb
MM
84312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8432
8433 * target.h (add_deprecated_target_alias): New.
8434 * target.c (add_deprecated_target_alias): New.
8435
a950d57c
MM
84362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8437
8438 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8439 and signal.h.
8440 (linux_supports_btrace): Add kernel and
8441 cpuid check.
8442 (kernel_supports_btrace): New function.
8443 (cpu_supports_btrace): New function.
8444 (intel_supports_btrace): New function.
8445
9accd112
MM
84462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8447
8448 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8449 * remote.c: Include btrace.h.
8450 (struct btrace_target_info): New struct.
8451 (remote_supports_btrace): New function.
8452 (send_Qbtrace): New function.
8453 (remote_enable_btrace): New function.
8454 (remote_disable_btrace): New function.
8455 (remote_teardown_btrace): New function.
8456 (remote_read_btrace): New function.
8457 (init_remote_ops): Add btrace ops.
8458 (enum <unnamed>): Add btrace packets.
8459 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8460 (_initialize_remote): Add packet configuration for branch tracing.
8461
c12a2917
MM
84622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * features/btrace.dtd: New file.
8465 * Makefile.in (XMLFILES): Add btrace.dtd.
8466 * btrace.h (parse_xml_btrace): New declaration.
8467 * btrace.c: Include xml-support.h.
8468 (parse_xml_btrace): New function.
8469 (parse_xml_btrace_block): New function.
8470 (block_attributes): New struct.
8471 (btrace_attributes): New struct.
8472 (btrace_children): New struct.
8473 (btrace_elements): New struct.
8474
3e3aea48
MM
84752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8476
8477 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8478 (amd64_linux_enable_btrace): New.
8479 (amd64_linux_disable_btrace): New.
8480 (amd64_linux_teardown_btrace): New.
8481 (_initialize_amd64_linux_nat): Initialize btrace ops.
8482 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8483 (i386_linux_enable_btrace): New.
8484 (i386_linux_disable_btrace): New.
8485 (i386_linux_teardown_btrace): New.
8486 (_initialize_i386_linux_nat): Initialize btrace ops.
8487 * config/i386/linux.mh: Add linux-btrace.o.
8488 * config/i386/linux64.mh: Add linux-btrace.o.
8489
7c97f91e
MM
84902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8491
8492 * common/linux_btrace.h: New file.
8493 * common/linux_btrace.c: New file.
8494 * Makefile.in (SFILES): Add btrace.c.
8495 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8496 (COMMON_OBS): Add btrace.o.
8497 (linux-btrace.o): New rule.
8498
1999790b 84992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8500
8501 * target.h: Include btrace.h.
8502 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8503 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8504 * target.c (target_supports_btrace): New function.
8505 (target_enable_btrace): New function.
8506 (target_disable_btrace): New function.
8507 (target_teardown_btrace): New function.
8508 (target_read_btrace): New function.
8509 * btrace.h: New file.
8510 * btrace.c: New file.
8511 * Makefile.in: Add btrace.c.
8512 * gdbthread.h: Include btrace.h.
8513 (struct thread_info): Add btrace field.
8514 * thread.c: Include btrace.h.
8515 (clear_thread_inferior_resources): Call target_teardown_btrace.
8516 * common/btrace-common.h: New file.
8517
61a31a67
JK
85182013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8519
8520 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8521 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8522 kill_status to outer block.
8523
05c56a9d
JK
85242013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8525
8526 Fix entry-values if the callee called a noreturn function.
8527 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8528 get_frame_address_in_block. Add new comment.
8529
9112db09
JK
85302013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 Fix entry-values in C++ across CUs.
8533 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8534 lookup_minimal_symbol. Add a comment.
8535 * dwarf2read.c
8536 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8537 DW_AT_linkage_name.
8538
9b67fcec
YQ
85392013-03-08 Yao Qi <yao@codesourcery.com>
8540
8541 * tracepoint.c (_initialize_tracepoint): Indent the code.
8542
6221be90
PA
85432013-03-08 Pedro Alves <palves@redhat.com>
8544
8545 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8546 (parse_find_args, find_command): Change type of pattern buffer
8547 locals to 'gdb_byte *'.
8548
be9a119c 85492013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8550 Hafiz Abid Qadeer <abidh@codesourcery.com>
8551
8552 * NEWS: Mention set and show trace-buffer-size commands.
8553 Mention new packet.
8554 * target.h (struct target_ops): New method
8555 to_set_trace_buffer_size.
8556 (target_set_trace_buffer_size): New macro.
8557 * target.c (update_current_target): Set up new method.
8558 * tracepoint.c (trace_buffer_size): New global.
8559 (start_tracing): Send it to the target.
8560 (set_trace_buffer_size): New function.
8561 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8562 * remote.c (remote_set_trace_buffer_size): New function.
8563 (_initialize_remote): Use it.
8564 (QTBuffer:size) New remote command.
8565 (PACKET_QTBuffer_size): New enum.
8566 (remote_protocol_features): Add an entry for
8567 PACKET_QTBuffer_size.
8568
7da3ab79
TT
85692013-03-08 Tom Tromey <tromey@redhat.com>
8570
8571 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8572 variable.
8573
0c1f71e7
PA
85742013-03-07 Pedro Alves <palves@redhat.com>
8575
8576 * target.c (target_read_stralloc, target_fileio_read_alloc):
8577 *Cast pointer to 'gdb_byte *' in target call.
8578
c8af03a2
PA
85792013-03-07 Pedro Alves <palves@redhat.com>
8580
8581 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8582 call.
8583
529480d0
KS
85842013-03-07 Keith Seitz <keiths@redhat.com>
8585
8586 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8587 (trace_pass_command): Likewise.
8588 * cli/cli-cmds.c: Include cli/cli-utils.h.
8589 (source_command): Use skip-spaces.
8590 (disassemble_command): Likewise.
8591 * findcmd.c: Include cli/cli-utils.h.
8592 (parse_find_args): Use skip_spaces.
8593 * go32-nat.c: Include cli/cli-utils.h.
8594 (go32_sldt): Use skip_spaces.
8595 (go32_sgdt): Likewise.
8596 (go32_sidt): Likewise.
8597 (go32_pde): Likewise.
8598 (go32_pte): Likewise.
8599 (go32_pte_for_address): Likewise.
8600 * infcmd.c: Include cli/cli-utils.h.
8601 (registers_info): Use skip_spaces.
8602 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8603 (linux_info_proc): Likewise.
8604 * linux-thread-db.c: Include cli/cli-utils.h.
8605 (info_auto_load_libthread_db): Use skip_spaces_const.
8606 * m32r-rom.c: Include cli/cli-utils.h.
8607 (m32r_upload_command): Use skip_spaces.
8608 * maint.c: Include cli/cli-utils.h.
8609 (maintenance_translate_address): Use skip_spaces.
8610 * mi/mi-parse.c: Include cli/cli-utils.h.
8611 (mi_parse_argv): Use skip_spaces.
8612 (mi_parse): Likewise.
8613 * minsyms.c: Include cli/cli-utils.h.
8614 (msymbol_hash_iw): Use skip_spaces_const.
8615 * objc-lang.c: Include cli/cli-utils.h.
8616 (parse_selector): Use skip_spaces.
8617 (parse_method): Likewise.
8618 * python/python.c: Include cli/cli-utils.h.
8619 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8620 (python_command)[HAVE_PYTHON]: Likewise.
8621 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8622 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8623 (m32r_load): Use skip_spaces.
8624 * serial.c: Include cli/cli-utils.h.
8625 (serial_open): Use skip_spaces_const.
8626 * stack.c: Include cli/cli-utils.h.
8627 (parse_frame_specification_1): Use skip_spaces_const.
8628 * symfile.c: Include cli/cli-utils.h.
8629 (set_ext_lang_command): Use skip_spaces.
8630 * symtab.c: Include cli/cli-utils.h.
8631 (rbreak_command): Use skip_spaces.
8632 * thread.c (thread_name_command): Use skip_spaces.
8633 * tracepoint.c (validate_actionline): Use skip_spaces.
8634 (encode_actions_1): Likewise.
8635 (trace_find_range_command): Likewise.
8636 (trace_find_outside_command): Likewise.
8637 (trace_dump_actions): Likewise.
8638
ac91cd70
PA
86392013-03-07 Pedro Alves <palves@redhat.com>
8640
8641 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8642 * expprint.c (print_subexp_standard): Likewise.
8643 * utils.c (host_char_to_target): Likewise.
8644 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8645 * varobj.c (value_get_print_value): Change type of local to char*.
8646 Cast it gdb_byte * in call to language printer.
8647
2898e560
PA
86482013-03-07 Pedro Alves <palves@redhat.com>
8649
8650 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8651 gdb_byte *'.
8652 (make_wchar_iterator): Remove cast to char*.
8653 (wchar_iterate): Change type of local.
8654
a09b4448
PA
86552013-03-07 Pedro Alves <palves@redhat.com>
8656
8657 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8658 for 'regcache->register_status'.
8659
20ced3e4
PA
86602013-03-07 Pedro Alves <palves@redhat.com>
8661
c2d6a675 8662 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8663 int.
8664
fe106009
PA
86652013-03-07 Pedro Alves <palves@redhat.com>
8666
8667 * stap-probe.c (handle_stap_probe): Add cast to char*.
8668
8ac2c12b
PA
86692013-03-07 Pedro Alves <palves@redhat.com>
8670
8671 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8672 RECORD_MSGRCV>: Pass a signed variable to
8673 regcache_raw_read_signed, instead of an unsigned one.
8674
99f0a309
PA
86752013-03-07 Pedro Alves <palves@redhat.com>
8676
8677 * remote-notif.c (notif_debug): Change type to int.
8678 * remote-notif.h (notif_debug): Likewise.
8679
964b8317
PA
86802013-03-07 Pedro Alves <palves@redhat.com>
8681
8682 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8683
f0cc8ad4
PA
86842013-03-07 Pedro Alves <palves@redhat.com>
8685
8686 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8687 * remote.h (hex2bin, bin2hex): ... here.
8688 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8689
77dec115
EZ
86902013-03-07 Eli Zaretskii <eliz@gnu.org>
8691
8692 * utils.c (initialize_utils): Improve doc strings of "set/show
8693 width", "set/show height", and "set/show pagination".
8694
741d92cf
KS
86952013-03-06 Keith Seitz <keiths@redhat.com>
8696
8697 * ax-gdb.c (gen_printf): Make FORMAT const.
8698 * ax-gdb.h (gen_printf): Likewise.
8699 * ax-general.c (ax_string): Make STR const.
8700 * ax.h (ax_string): Likewise.
8701
7b6c814e
DE
87022013-03-06 Doug Evans <dje@google.com>
8703
8704 * elfread.c (elf_symfile_read): Move debugging printf to more
8705 logical location.
8706
634334ab
PA
87072013-03-06 Pedro Alves <palves@redhat.com>
8708
8709 * python/py-utils.c (target_string_to_unicode): Delete function.
8710 * python/python-internal.h (target_string_to_unicode): Delete
8711 declaration.
8712
e482a1a7
PM
87132013-03-06 Pierre Muller <muller@sourceware.org>
8714
8715 * linespec.c (get_current_search_block): ARI fix, use (void)
8716 for empty parameter list.
8717
4eeaa230
DE
87182013-03-05 Doug Evans <dje@google.com>
8719
8720 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8721 of old ada_lookup_symbol_list. In !full_search case, don't
8722 search superblocks.
8723 (ada_lookup_symbol_list): Delete arg full_search, all callers
8724 updated. Call ada_lookup_symbol_list_worker.
8725 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8726 * ada-lang.h (ada_lookup_symbol_list): Update.
8727 * language.h (language_defn): Update comment for
8728 la_iterate_over_symbols.
8729 * linespec.c (iterate_over_file_blocks): New function.
8730 (iterate_over_all_matching_symtabs): Call it.
8731 (lookup_prefix_sym): Ditto.
8732 (get_current_search_block): New function.
8733 (get_search_block): Delete.
8734 (find_label_symbols): Call get_current_search_block.
8735 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8736 * symtab.c (iterate_over_symbols): Don't search superblocks.
8737
b69b1fb1
YQ
87382013-03-05 Yao Qi <yao@codesourcery.com>
8739
8740 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8741 parameter VAR's type from "unsigned int" to "int".
8742 * command.h (var_zuinteger_unlimited): Update its comments.
8743 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8744
3c095f49
CV
87452013-03-05 Corinna Vinschen <vinschen@redhat.de>
8746
8747 * NEWS: Mention new target x86_64-*-cygwin*.
8748
b5b0b0af
CV
87492013-03-05 Corinna Vinschen <vinschen@redhat.de>
8750
8751 * configure.host: Add x86_64-*-cygwin* as host.
8752 * configure.tgt: Add x86_64-*-cygwin* as target.
8753 * config/i386/cygwin64.mh: New file.
8754
f6f99966
JK
87552013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8756
8757 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8758
33f448b1
JK
87592013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 * linespec.c (struct linespec_canonical_name): New.
8762 (struct linespec_state): Change canonical_names type to it.
8763 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8764 xrealloc element size. Initialize the different CANONICAL fields.
8765 (canonical_to_fullform): New.
8766 (filter_results): Use it. Add variables canonical, fullform and
8767 cleanup.
8768 (struct decode_line_2_item, decode_line_2_compare_items): New.
8769 (decode_line_2): Remove variables iter and item_names, add variables
8770 items and items_count. Modify the code for these new variables.
8771
feb14725
CV
87722013-03-04 Corinna Vinschen <vinschen@redhat.com>
8773
8774 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8775 calling do_cleanup.
8776
e83b17ba
HZ
87772013-03-04 Luis Machado <lgustavo@codesourcery.com>
8778
8779 * tracepoint.c (build_traceframe_info): Add code for byte order.
8780
a2d13a0d
KB
87812013-03-02 Kevin Buettner <kevinb@redhat.com>
8782
8dddcae8
KB
8783 * v850-tdep.c: (v850e2_register_name): Revise system register
8784 names to match current V850E2M architecture specifications.
8785 Update register number enum comments too.
f5aee5ee 8786
d79e58d8
JW
87872013-03-01 Jiong Wang <jiwang@tilera.com>
8788 Pedro Alves <palves@redhat.com>
8789
8790 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8791 to END_ADDR.
8792 (tilegx_skip_prologue): Limit prologue analysis to section end.
8793
c4be5165
JK
87942013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8795
8796 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8797 use it.
8798
e362b510
PA
87992013-03-01 Pedro Alves <palves@redhat.com>
8800
8801 Use gdb_byte for bytes from the program being debugged.
8802
8803 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8804 Change type of local 'buf' to gdb_byte.
8805 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8806 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8807 * cris-tdep.c (cris_sigcontext_addr)
8808 (cris_sigtramp_frame_unwind_cache): Likewise.
8809 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8810 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8811 Likewise.
8812 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8813 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8814 (hppa32_hpux_search_dummy_call_sequence)
8815 (hppa_hpux_supply_save_state): Likewise.
8816 * hppa-linux-tdep.c (insns_match_pattern)
8817 (hppa_linux_find_global_pointer): Likewise.
8818 * hppa-tdep.c (hppa_in_function_epilogue_p)
8819 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8820 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8821 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8822 (i386fbsd_collect_uthread): Likewise.
8823 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8824 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8825 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8826 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8827 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8828 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8829 (ia64_libunwind_frame_prev_register)
8830 (ia64_libunwind_sigtramp_frame_this_id)
8831 (ia64_find_global_pointer_from_dynamic_section)
8832 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8833 (ia64_unwind_pc): Likewise.
8834 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8835 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8836 (m68hc11_extract_return_value): Likewise.
8837 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8838 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8839 (mep_get_insn, mep_push_dummy_call): Likewise.
8840 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8841 (mips_linux_in_dynsym_stub): Likewise.
8842 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8843 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8844 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8845 to gdb_byte.
8846 * remote-mips.c (mips_set_register): Likewise.
8847 * remote-sim.c (gdbsim_fetch_register): Likewise.
8848 * score-tdep.c (score7_fetch_inst): Change type of parameter
8849 'memblock' and local 'buf' to gdb_byte.
8850 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8851 Change type of local 'buf' to gdb_byte. Adjust.
8852 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8853 to gdb_byte**.
8854 (score7_analyze_prologue): Change type of 'memblock' and
8855 'memblock_ptr' locals to gdb_byte*.
8856 * sh64-tdep.c (sh64_extract_return_value)
8857 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8858 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8859 * solib-pa64.c (pa64_solib_create_inferior_hook)
8860 (pa64_open_symbol_file_object): Remove local 'buf'.
8861 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8862 (som_open_symbol_file_object): Likewise.
8863 * solib-spu.c (spu_current_sos): Likewise.
8864 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8865 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8866 (spu_store_registers): Likewise.
8867 * target.c (debug_print_register): Likewise.
8868 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8869 * xstormy16-tdep.c (xstormy16_store_return_value)
8870 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8871 (xstormy16_find_jmp_table_entry): Likewise.
8872
75cc61ca 88732013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8874
8875 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8876 (tilegx_gdbarch_init): Install it.
8877
ddb08e9c
TT
88782013-02-28 Tom Tromey <tromey@redhat.com>
8879
8880 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8881 PyLong_Check.
8882
62d7fb51
DE
88832013-02-28 Doug Evans <dje@google.com>
8884
8885 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8886 * python/python.c (gdbpy_find_pc_line): Ditto.
8887
c4a9e8b4
TT
88882013-02-28 Tom Tromey <tromey@redhat.com>
8889
8890 * contrib/excheck.py: New file.
8891 * contrib/exsummary.py: New file.
8892 * contrib/gcc-with-excheck: New file.
8893
7f6a5dde
TT
88942013-02-28 Tom Tromey <tromey@redhat.com>
8895
8896 * python/python.c (gdbpy_print_stack): Call begin_line and
8897 fprintf_filtered inside TRY_CATCH.
8898
9e974e55
TT
88992013-02-28 Tom Tromey <tromey@redhat.com>
8900
8901 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8902 inside TRY_CATCH.
8903
dd5fa3e7
TT
89042013-02-28 Tom Tromey <tromey@redhat.com>
8905
8906 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8907 frame_object_to_frame_info inside TRY_CATCH.
8908
86a3263f
TT
89092013-02-28 Tom Tromey <tromey@redhat.com>
8910
8911 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8912 TRY_CATCH.
8913
81b52a3a
TT
89142013-02-28 Tom Tromey <tromey@redhat.com>
8915
8916 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8917
d50a0ce2
CV
89182013-02-27 Corinna Vinschen <vinschen@redhat.com>
8919
8920 * windows-nat.c: Throughout, fix format strings and casts of
8921 printf-like functions to avoid type related warnings on all
8922 platforms.
8923 (handle_output_debug_string): Fetch context information address
8924 from debug string using string_to_core_addr.
8925
e1f58301
JW
89262013-02-27 Jiong Wang <jiwang@tilera.com>
8927
8928 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8929 * regformats/reg-tilegx32.dat: New.
8930
4fcd89fc
JW
89312013-02-27 Jiong Wang <jiwang@tilera.com>
8932
8933 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8934
748d24e6
JW
89352013-02-27 Jiong Wang <jiwang@tilera.com>
8936
8937 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8938
6c8e944d
YQ
89392013-02-27 Yao Qi <yao@codesourcery.com>
8940 Pedro Alves <palves@redhat.com>
8941
8942 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
8943 pc/tp/range/outside, look for the next trace frame instead of
8944 always starting from frame 0.
6c8e944d 8945
acd7db30
AG
89462013-02-26 Anthony Green <green@moxielogic.com>
8947
8948 * configure.tgt: Add support for moxie-*-rtems* target.
8949
025e6dce
PA
89502013-02-25 Pedro Alves <palves@redhat.com>
8951
8952 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8953 warning text.
8954
ca9c94ef
MR
89552013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8956
8957 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8958 if $fp is used as the virtual frame pointer.
8959
24c274a1
AM
89602013-02-23 Alan Modra <amodra@gmail.com>
8961
8962 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8963 symbol size.
8964 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8965 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8966 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8967 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8968
bfada189
JK
89692013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8970
8971 Code cleanup.
8972 * elfread.c (build_id_bfd_get): Make the return type const.
8973 (build_id_verify): Make the check parameter const.
8974 (build_id_to_debug_filename): Make the build_id parameter and variable
8975 data const.
8976 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8977
c0355132
AM
89782013-02-21 Alan Modra <amodra@gmail.com>
8979
8980 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8981
9f44fbc0
SCR
89822013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8983
8984 Add a new method 'disassemble' to gdb.Architecture class.
8985 * python/py-arch.c (archpy_disassmble): Implementation of the
8986 new method gdb.Architecture.disassemble.
8987 (arch_object_methods): Add entry for the new method.
8988
b74ea3eb
JW
89892013-02-20 Jiong Wang <jiwang@tilera.com>
8990
8991 * MAINTAINERS (Write After Approval): Add myself to the list.
8992
61a672f1
PA
89932013-02-19 Pedro Alves <palves@redhat.com>
8994
8995 Garbage collect 'struct monitor_ops'::load_routine.
8996
8997 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8998 * monitor.c (monitor_load): No longer call
8999 current_monitor->load_routine.
9000 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9001 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9002 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9003
40e397df
PA
90042013-02-19 Pedro Alves <palves@redhat.com>
9005
9006 PR gdb/15161
9007
9008 Harmonize with generic_load.
9009
9010 * monitor.c: Include "readline/readline.h".
9011 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9012 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9013 long/strtol for the 'load_offset' local. Error out if no argument
9014 is given or if too many arguments are given. Tilde expand the
9015 passed in file name.
9016
f698ca8e
KT
90172013-02-19 Kai Tietz <ktietz@redhat.com>
9018
9019 PR gdb/15161
9020 * symfile.c (load_section_data): Change type of load_offset
9021 to CORE_ADDR.
9022 (generic_load): User strtoulst instead of strtoul for conversion
9023 of load_offset.
9024
3361b059
WL
90252013-02-19 Jiong Wang <jiwang@tilera.com>
9026
9027 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9028 for return address, "lr" register, saved on stack.
9029 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9030 after we invoke tilegx_analyze_prologue.
9031
3e9d5130
WL
90322013-02-19 Jiong Wang <jiwang@tilera.com>
9033
bb1bcd86
WL
9034 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9035
3361b059 90362013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9037
b74ea3eb 9038 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9039
4aaf2503
WL
90402013-02-19 Jiong Wang <jiwang@tilera.com>
9041
b74ea3eb 9042 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9043 (tilegx_write_pc): New function.
9044 (tilegx_cannot_reference_register): Return zero if REGNO
9045 is TILEGX_FAULTNUM_REGNUM.
9046 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9047 (tilegx_register_name): Add handling of "faultnum" register.
9048 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9049 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9050 handling of TILEGX_FAULTNUM_REGNUM.
9051 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9052
bc23a956
WL
90532013-02-19 Jiong Wang <jiwang@tilera.com>
9054
9055 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9056 should be aligned to 64bit.
bc23a956 9057
42f45f1a
KT
90582013-02-19 Kai Tietz <ktietz@redhat.com>
9059
9060 * windows-nat.c (windows_xfer_memory): Fix debug-output
9061 for LLP64.
9062
6ce4c112
LL
90632013-02-19 Lei Liu <lei.liu2@windriver.com>
9064
9065 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9066 Don't check DSP register number if HAVE_DSP is not set.
9067
30e8ee25
AM
90682013-02-19 Alan Modra <amodra@gmail.com>
9069
9070 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9071 throughout file instead.
9072 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9073 Don't xmalloc return value.
9074 (build_id_verify): Similarly. Don't xfree.
9075 (build_id_to_debug_filename): Update.
9076 (find_separate_debug_file_by_buildid): Update, don't xfree.
9077
4c9ad8c2
TT
90782013-02-18 Tom Tromey <tromey@redhat.com>
9079
9080 PR gdb/15102:
9081 * dwarf2read.c (read_subrange_type): Use result of
9082 'check_typedef'.
9083
983dc440
YQ
90842013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9085
9086 * frame.c: Remove one extra white space after #include
9087 directive.
9088
7fb2b84a
JK
90892013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9090
9091 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9092
edceb2a9
JK
90932013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9094
9095 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9096 and dir commands into an if block.
9097
e81b7af8
TT
90982013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9099
9100 * python/py-breakpoint (struct pybp_code): Use int instead of
9101 enum type_code.
9102
f5911ea1
HAQ
91032013-02-15 Pedro Alves <pedro@codesourcery.com>
9104 Hafiz Abid Qadeer <abidh@codesourcery.com>
9105
9106 * NEWS: Mention new field "trace-file".
9107 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9108 (tfile_open): Record the trace file's filename in the trace
9109 status.
9110 (tfile_files_info): Mention the name of the trace file.
9111 Check the "filename" field explicitely.
9112 (trace_status_command): Explicitely check "filename" field.
9113 (trace_find_command): Ditto.
9114 (trace_find_pc_command): Ditto.
9115 (trace_find_tracepoint_command): Ditto.
9116 (trace_find_line_command): Ditto.
9117 (trace_find_range_command): Ditto.
9118 (trace_find_outside_command): Ditto.
9119 * tracepoint.h (struct trace_status) <from_file>: Rename it
9120 to "filename" and make it hold the trace file's filename
9121 instead of a boolean.
9122 * remote.c (remote_get_trace_status): Initialize "filename"
9123 field with NULL instead of 0.
9124
796cb314
YQ
91252013-02-15 Yao Qi <yao@codesourcery.com>
9126
9127 * remote.c: Fix a typo.
9128
42e79b1d
PM
91292013-02-14 Pierre Muller <muller@sourceware.org>
9130
9131 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9132
baea0dae
PA
91332013-02-14 Pedro Alves <palves@redhat.com>
9134
9135 * utils.c (savestring): Don't #undef it. Move function to
9136 common/common-utils.c.
9137 * common/common-utils.c: Include gdb_string.h.
9138 (savestring): Move here from utils.c.
9139 * common/common-utils.h (savestring): Declare.
9140
57c3b6ed
PA
91412013-02-14 Pedro Alves <palves@redhat.com>
9142
9143 * utils.c (savestring): Rename parameter 'size' to 'len'.
9144
d6c44983
YZ
91452013-02-14 Pedro Alves <palves@redhat.com>
9146 Yufeng Zhang <yufeng.zhang@arm.com>
9147
9148 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9149 (aarch64_inferior_data, struct aarch64_inferior_data):
9150 Delete.
9151 (struct aarch64_process_info): New.
9152 (aarch64_process_list): New global.
9153 (aarch64_find_process_pid, aarch64_add_process)
9154 (aarch64_process_info_get): New functions.
9155 (aarch64_inferior_data_get): Delete.
9156 (aarch64_process_info_get): New function.
9157 (aarch64_forget_process): New function.
9158 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9159 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9160 aarch64_get_debug_reg_state.
9161 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9162 instead of linux_nat_iterate_watchpoint_lwps.
9163 (aarch64_linux_new_fork): New function.
9164 (aarch64_linux_child_post_startup_inferior): Use
9165 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9166 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9167 (aarch64_linux_remove_hw_breakpoint)
9168 (aarch64_handle_aligned_watchpoint)
9169 (aarch64_handle_unaligned_watchpoint)
9170 (aarch64_linux_insert_watchpoint)
9171 (aarch64_linux_remove_watchpoint)
9172 (aarch64_linux_stopped_data_address): Adjust to pass the current
9173 process id to aarch64_debug_reg_state.
9174 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9175 linux_nat_new_fork hook, and aarch64_forget_process as
9176 linux_nat_forget_process hook; remove the call to
9177 register_inferior_data_with_cleanup.
9178
4819b3f8
PA
91792013-02-14 Pedro Alves <palves@redhat.com>
9180
9181 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9182 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9183 lval_memory.
9184
1773c82c
HAQ
91852013-02-14 Pedro Alves <pedro@codesourcery.com>
9186 Hafiz Abid Qadeer <abidh@codesourcery.com>
9187
9188 * tracepoint.h (validate_trace_state_variable_name): Declare.
9189 * tracepoint.c (validate_trace_state_variable_name): New.
9190 (trace_variable_command): Parse the trace state variable's name
9191 without using parse_expression. Do several validations.
9192 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9193 trace state variable's name with parse_expression. Validate it.
9194
53778a97
YQ
91952013-02-14 Yao Qi <yao@codesourcery.com>
9196
9197 * infcmd.c (breakpoint_proceeded): Remove it.
9198
7b3ae3a6
YQ
91992013-02-14 Yao Qi <yao@codesourcery.com>
9200
9201 * tracepoint.c (end_actions_pseudocommand): Make it static.
9202 (while_stepping_pseudocommand): Likewise.
9203 * tracepoint.h (end_actions_pseudocommand): Remove the
9204 declaration.
9205 (while_stepping_pseudocommand): Likewise.
9206
64580925
YQ
92072013-02-14 Yao Qi <yao@codesourcery.com>
9208
9209 * cli/cli-decode.c (help_cmd): Remove the declaration of
9210 "cmdlist".
9211 (help_all): Likewise.
9212
26cb8b7c
PA
92132013-02-13 Pedro Alves <palves@redhat.com>
9214
9215 * amd64-linux-nat.c (update_debug_registers_callback):
9216 Update comment.
9217 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9218 iterate_over_lwps.
9219 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9220 i386_debug_reg_state.
9221 (amd64_linux_new_fork): New function.
9222 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9223 linux_nat_new_fork hook, and i386_forget_process as
9224 linux_nat_forget_process hook.
9225 * i386-linux-nat.c (update_debug_registers_callback):
9226 Update comment.
a8256ea1 9227 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9228 iterate_over_lwps.
9229 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9230 i386_debug_reg_state.
9231 (i386_linux_new_fork): New function.
9232 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9233 linux_nat_new_fork hook, and i386_forget_process as
9234 linux_nat_forget_process hook.
9235 * i386-nat.c (i386_init_dregs): Delete.
9236 (i386_inferior_data, struct i386_inferior_data):
9237 Delete.
9238 (struct i386_process_info): New.
9239 (i386_process_list): New global.
9240 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9241 New functions.
9242 (i386_inferior_data_get): Delete.
9243 (i386_process_info_get): New function.
9244 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9245 (i386_forget_process): New function.
9246 (i386_cleanup_dregs): Rewrite.
9247 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9248 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9249 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9250 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9251 to i386_debug_reg_state.
9252 (i386_use_watchpoints): Don't register inferior data.
9253 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9254 adjust comment.
9255 (i386_forget_process): Declare.
9256 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9257 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9258 New static globals.
9259 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9260 (add_initial_lwp): New, factored out from ...
9261 (add_lwp): ... this. Don't check the number of lwps before
9262 calling linux_nat_new_thread.
9263 (linux_nat_iterate_watchpoint_lwps): Delete.
9264 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9265 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9266 forks and vforks.
9267 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9268 initial lwp.
9269 (linux_nat_kill, linux_nat_mourn_inferior): Call
9270 linux_nat_forget_process.
9271 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9272 (linux_nat_forget_process): New functions.
9273 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9274 type.
9275 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9276 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9277 types.
9278 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9279 (linux_nat_forget_process): New declarations.
9280
9281 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9282 (amd64fbsd_mourn_inferior): New function.
9283 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9284 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9285
5befea72
MS
92862013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9287
55015247
YQ
9288 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9289 Adding _().
5befea72 9290
1d3ffd6b
MS
92912013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9292
9293 * aarch64-linux-nat.c (debug_reg_change_callback)
9294 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9295 %s and phex().
9296
6eb04473
MS
92972013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9298
9299 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9300 with LONGEST.
9301
a016fc87
HAQ
93022013-02-13 Pedro Alves <palves@redhat.com>
9303 Hafiz Abid Qadeer <abidh@codesourcery.com>
9304
9305 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9306
e234dfaf
TT
93072013-02-12 Tom Tromey <tromey@redhat.com>
9308
9309 PR symtab/11464:
9310 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9311 NAME return.
9312 (classify_inner_name): Remove 'first_name' argument, add
9313 'context'. Remove unused variable.
9314 (yylex): Explicitly maintain the context type. Exit loop earlier
9315 if NAME result is seen.
9316
0b1afbb3
PA
93172013-02-12 Pedro Alves <palves@redhat.com>
9318
9319 * amd64-darwin-tdep.c: Add (C) after Copyright.
9320 * cli/cli-cmds.h: Ditto.
9321 * cli/cli-decode.c: Ditto.
9322 * cli/cli-decode.h: Ditto.
9323 * cli/cli-dump.c: Ditto.
9324 * cli/cli-dump.h: Ditto.
9325 * cli/cli-interp.c: Ditto.
9326 * cli/cli-logging.c: Ditto.
9327 * cli/cli-script.c: Ditto.
9328 * cli/cli-script.h: Ditto.
9329 * cli/cli-setshow.c: Ditto.
9330 * cli/cli-setshow.h: Ditto.
9331 * cli/cli-utils.c: Ditto.
9332 * cli/cli-utils.h: Ditto.
9333 * config/alpha/nm-osf3.h: Ditto.
9334 * config/djgpp/djconfig.sh: Ditto.
9335 * config/i386/nm-fbsd.h: Ditto.
9336 * config/i386/nm-i386gnu.h: Ditto.
9337 * config/nm-linux.h: Ditto.
9338 * config/nm-nto.h: Ditto.
9339 * config/rs6000/nm-rs6000.h: Ditto.
9340 * config/sparc/nm-sol2.h: Ditto.
9341 * darwin-nat-info.c: Ditto.
9342 * dfp.c: Ditto.
9343 * dfp.h: Ditto.
9344 * gdb-demangle.h: Ditto.
9345 * i386-darwin-nat.c: Ditto.
9346 * i386-darwin-tdep.c: Ditto.
9347 * linux-fork.h: Ditto.
9348 * m32c-tdep.c: Ditto.
9349 * microblaze-linux-tdep.c: Ditto.
9350 * microblaze-rom.c: Ditto.
9351 * microblaze-tdep.c: Ditto.
9352 * microblaze-tdep.h: Ditto.
9353 * mips-linux-tdep.h: Ditto.
9354 * ppc-ravenscar-thread.c: Ditto.
9355 * ppc-ravenscar-thread.h: Ditto.
9356 * prologue-value.c: Ditto.
9357 * prologue-value.h: Ditto.
9358 * ravenscar-thread.c: Ditto.
9359 * ravenscar-thread.h: Ditto.
9360 * sparc-ravenscar-thread.c: Ditto.
9361 * sparc-ravenscar-thread.h: Ditto.
9362 * tilegx-linux-tdep.c: Ditto.
9363 * unwind_stop_reasons.def: Ditto.
9364 * windows-nat.h: Ditto.
9365 * xtensa-linux-tdep.c: Ditto.
9366 * xtensa-xtregs.c: Ditto.
9367 * regformats/regdat.sh: Ditto.
9368 * regformats/regdef.h: Ditto.
9369
6c01dd94
PA
93702013-02-12 Pedro Alves <palves@redhat.com>
9371
9372 * break-catch-sig.c: Update copyright years.
9373
b65a2bd9
SCR
93742013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9375
9376 Add support for a destructor for ui_out data and use it to
9377 provide a ui_out destructor.
9378 * ui-out.h: Declare the new ui_out destructor.
9379 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9380 * ui-out.c (default_data_destroy): Add a default data destructor
9381 which does nothing.
9382 (default_ui_out_impl): Set the new data_destroy field to
9383 default_data_destroy
9384 (uo_data_destroy): Local function which invokes the data
9385 destructor if present.
9386 (clear_table): Local function which clears the table data of a
9387 ui_out object.
9388 (ui_out_destroy): Public function which frees a ui_out object.
9389 (ui_out_table_end): Use the new clear_table function.
9390 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9391 NULL.
9392 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9393 to NULL.
9394
c2792f5a
DE
93952013-02-11 Doug Evans <dje@google.com>
9396
9397 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9398 (printf_decfloat): New function. Broken out from ui_printf.
9399 Remove unnecessary code to shift the entire format string down.
9400 (printf_pointer): New function.
9401 (ui_printf): Code to print C strings, wide C strings, decfloats,
9402 and pointers moved to separate functions.
9403
d9e98382
SDJ
94042013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9405
9406 * valops.c (value_assign): Handling bitfield offset in
9407 `lval_internalvar_component' case.
9408
4ff3ce77
DE
94092013-02-08 Doug Evans <dje@google.com>
9410
9411 * common/format.c (parse_format_string): Fix whitespace.
9412
901900c4
MGD
94132013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9414
9415 * stack.c (return_command): Work around uninitialized variable
9416 warning.
9417
b5dbc8d4
YZ
94182013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9419
9420 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9421 number of the registers from 36 to 34.
9422
51d66578
MS
94232013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9424
9425 * NEWS: Mention new AArch64 native and target support.
9426
176b1c95
MS
94272013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9428
9429 * MAINTAINERS (Write After Approval): Add myself.
9430
9d19df75
MS
94312013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9432 Marcus Shawcroft <marcus.shawcroft@arm.com>
9433 Nigel Stephens <nigel.stephens@arm.com>
9434 Yufeng Zhang <yufeng.zhang@arm.com>
9435
9436 * aarch64-linux-nat.c: New file.
9437 * config/aarch64/linux.mh: New file.
9438 * configure.host: Add AArch64.
9439 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9440
7e1e0340
DE
94412013-02-07 Doug Evans <dje@google.com>
9442
9443 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9444 disassemble command.
9445
45e25a36
MS
94462013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9447
9448 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9449 set_gdbarch_fetch_tls_load_module_address.
9450
bbfdfe1c
DM
94512013-02-06 David S. Miller <davem@davemloft.net>
9452
9453 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9454 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9455 * value.c (struct_return_convention): New function.
9456 (using_struct_return): Implement in terms of struct_return_convention.
9457 * value.h (struct_return_convention): Declare.
9458 * stack.c (return_command): Allow successful overriding of the return
9459 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9460
bc9abe4a
TT
94612013-02-06 Tom Tromey <tromey@redhat.com>
9462
9463 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9464 outside of TRY_CATCH.
9465
134a2066
YQ
94662013-02-06 Yao Qi <yao@codesourcery.com>
9467
9468 * mi/mi-interp.c: Include "tracepoint.h".
9469 (mi_tsv_modified): Declare.
9470 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9471 (mi_interpreter_init): Call observer_attach_tsv_modified.
9472 (mi_tsv_modified): New.
9473 (mi_tsv_created, mi_tsv_deleted): Update.
9474 * tracepoint.c (trace_variable_command): Call
9475 observer_notify_tsv_modified if the initial value of tsv is
9476 changed.
9477 (delete_trace_state_variable): Call
9478 observer_notify_tsv_deleted earlier.
9479 (trace_variable_command): Caller update.
9480 (create_tsv_from_upload): Likewise.
9481 * observer.sh: Declare "struct trace_state_variable".
9482
9483 * NEWS: Mention the new MI notification "=tsv-modified".
9484
59be2b6a
DE
94852013-02-05 Doug Evans <dje@google.com>
9486
9487 * completer.c (location_completer): Fix typo in comment.
9488
d30113d4
JK
94892013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9490
9491 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9492 ADDRESS sorted.
9493
14ac654f
MS
94942013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9495
9496 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9497 Refactor if statement to avoid trailing || operator.
9498
543bf33d
AT
94992013-02-05 Andreas Tobler <andreast@fgznet.ch>
9500
9501 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9502
dc18f110
AT
95032013-02-04 Andreas Tobler <andreast@fgznet.ch>
9504
9505 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9506 * configure.host: Add powerpc*-*-freebsd* target.
9507 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9508 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9509 * config/powerpc/fbsd.mh: New file.
9510
b3ac9c77
SDJ
95112013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9512 Denys Vlasenko <dvlasenk@redhat.com>
9513 Pedro Alves <palves@redhat.com>
9514
9515 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9516 (struct elf_internal_linux_prpsinfo): Forward declare.
9517 * gdbarch.h, gdbarch.c: Regenerate.
9518 * linux-tdep.c: Include `cli/cli-utils.h'.
9519 (linux_fill_prpsinfo): New function.
9520 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9521 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9522 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9523 depending on gdbarch pointer bitness.
9524 * ppc-linux-tdep.c: Include elf-bfd.h.
9525 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9526 on 32-bit.
9527
176eb98c
MS
95282013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9529 Marcus Shawcroft <marcus.shawcroft@arm.com>
9530 Nigel Stephens <nigel.stephens@arm.com>
9531 Yufeng Zhang <yufeng.zhang@arm.com>
9532
9533 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9534
cf0dbd6f
MS
95352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9536 Marcus Shawcroft <marcus.shawcroft@arm.com>
9537 Nigel Stephens <nigel.stephens@arm.com>
9538 Yufeng Zhang <yufeng.zhang@arm.com>
9539
9540 * aarch64-newlib-tdep.c: New file.
9541 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9542 aarch64*-*-elf.
9543 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9544 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9545 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9546 * osabi.c (gdb_osabi_names): Add "Newlib".
9547
1ae3db19
MS
95482013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9549 Marcus Shawcroft <marcus.shawcroft@arm.com>
9550 Nigel Stephens <nigel.stephens@arm.com>
9551 Yufeng Zhang <yufeng.zhang@arm.com>
9552
9553 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9554 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9555 * aarch64-linux-tdep.c: New file.
9556 * aarch64-linux-tdep.h: New file.
9557 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9558 * configure.tgt: Add aarch64-none-linux-gnu.
9559
07b287a0
MS
95602013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9561 Marcus Shawcroft <marcus.shawcroft@arm.com>
9562 Nigel Stephens <nigel.stephens@arm.com>
9563 Yufeng Zhang <yufeng.zhang@arm.com>
9564
9565 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9566 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9567 (ALLDEPFILES): Add aarch64-tdep.c.
9568 * aarch64-tdep.c: New file.
9569 * aarch64-tdep.h: New file.
9570 * configure.tgt: Add AArch64.
9571 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9572 (aarch64-expedite): New definition.
9573 * features/aarch64-core.xml: New file.
9574 * features/aarch64-fpu.xml: New file.
9575 * features/aarch64-without-fpu.c: New file (generated).
9576 * features/aarch64-without-fpu.xml: New file.
9577 * features/aarch64.c: New file (generated).
9578 * features/aarch64.xml: New file.
9579 * regformats/aarch64-without-fpu.dat: New file (generated).
9580 * regformats/aarch64.dat: New file (generated).
9581
0f1b18ab
JK
95822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 * contrib/expect-read1.c: New file.
9585 * contrib/expect-read1.sh: New file.
9586
233d95b5
JK
95872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 * dwarf2read.c (file_file_name): New function with code from
9590 file_full_name.
9591 (file_full_name): Move most of the code to file_file_name.
9592 (macro_start_file): Rename variable full_name to file_name and use
9593 file_file_name for it. Add comp_dir parameter to new_macro_table.
9594 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9595 macro_source_file->filename access by macro_source_fullname call.
9596 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9597 caller.
9598 * macrotab.c (struct macro_table): New field comp_dir.
9599 (macro_include): New variables link_fullname and source_fullname.
9600 Replace any macro_source_file->filename access by macro_source_fullname
9601 call.
9602 (macro_lookup_inclusion): Remove the partial filenames checking code.
9603 (check_for_redefinition): New variables source_fullname and
9604 found_key_fullname. Replace any macro_source_file->filename access by
9605 macro_source_fullname call.
9606 (macro_undef): New variables source_fullname and key_fullname. Replace
9607 any macro_source_file->filename access by macro_source_fullname call.
9608 (macro_lookup_definition): New variables retval and source_fullname.
9609 Replace any macro_source_file->filename access by macro_source_fullname
9610 call.
9611 (foreach_macro): New variable key_fullname. Replace any
9612 macro_source_file->filename access by macro_source_fullname call.
9613 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9614 macro_source_file->filename access by macro_source_fullname call.
9615 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9616 (macro_source_fullname): New function.
9617 * macrotab.h (struct macro_source_file): Extent the filename field
9618 comment.
9619 (new_macro_table): New parameter comp_dir, add a comment for it.
9620 (macro_source_fullname): new declaration.
9621
da235a7c
JK
96222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9623
9624 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9625 this_real_name to outer block. Use it also for
9626 compare_filenames_for_search.
9627 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9628 with dw2_get_real_path for file_matcher, considering also
9629 BASENAMES_MAY_DIFFER.
9630 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9631
fbd9ab74
JK
96322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9633
9634 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9635 to the file_matcher parameter. Pass 0 to it.
9636 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9637 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9638 NULL psymtab_to_fullname result.
9639 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9640 an expected filename instead.
9641 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9642 file_matcher parameter. Call also psymtab_to_fullname, after newly
9643 considering BASENAMES_MAY_DIFFER.
9644 * source.c (rewrite_source_path): Remove static.
9645 * source.h (rewrite_source_path): New declaration.
9646 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9647 the expand_symtabs_matching field. Comment it.
9648 * symtab.c (file_matches): New function comment. Add parameter
9649 basenames, implement it.
9650 (search_symbols_file_matches): Add basenames parameter. Update the
9651 file_matches caller.
9652 (search_symbols): Match FILES also against symtab_to_fullname.
9653 Optimize it for BASENAMES_MAY_DIFFER.
9654
56d397a3
JK
96552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9656
9657 * source.c (print_source_lines_base): Print for TUI also "fullname".
9658 * tui/tui-data.c (init_content_element): Change tui_locator_element
9659 field to full_name.
9660 * tui/tui-data.h (struct tui_locator_element): Likewise.
9661 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9662 tui_update_locator_filename calls to tui_update_locator_fullname.
9663 Replace symtab->filename refererence by symtab_to_fullname call.
9664 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9665 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9666 field to full_name. Replace symtab->filename refererence by
9667 symtab_to_fullname call.
9668 (tui_show_symtab_source): Rename parameter to fullname. Change
9669 tui_locator_element field to full_name.
9670 * tui/tui-stack.c: Include source.h.
9671 (tui_set_locator_filename): Rename the declaration to ...
9672 (tui_set_locator_fullname): ... here. Rename its parameter to
9673 fullname, updates its comment.
9674 (tui_set_locator_info): Rename its parameter to fullname.
9675 (tui_set_locator_filename): Rename the definition to ...
9676 (tui_set_locator_fullname): ... here. Rename its parameter to
9677 fullname, updates its comment. Change tui_locator_element field to
9678 full_name.
9679 (tui_set_locator_info): Rename its parameter to fullname.
9680 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9681 (tui_update_locator_filename): Rename to ...
9682 (tui_update_locator_fullname): ... here. Rename callee to
9683 tui_set_locator_fullname.
9684 (tui_show_frame_info): Replace symtab->filename refererence by
9685 symtab_to_fullname call.
9686 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9687 (tui_update_locator_fullname): ... here.
9688 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9689 tui_update_locator_fullname. Replace symtab->filename refererence by
9690 symtab_to_fullname call.
9691 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9692 Rename the callee to tui_update_locator_fullname.
9693 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9694
05cba821
JK
96952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9698 by symtab_to_filename_for_display calls.
9699 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9700 (clear_command): New variable sal_fullname, initialize it. Replace
9701 compare_filenames_for_search by filename_cmp with sal_fullname.
9702 (say_where, update_static_tracepoint): Replace symtab->filename
9703 refererences by symtab_to_filename_for_display calls.
9704 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9705 Likewise.
9706 * dwarf2read.c: Include source.h.
9707 (fixup_go_packaging): Replace symtab->filename refererences by
9708 symtab_to_filename_for_display calls.
9709 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9710 Replace symtab->filename refererences by symtab_to_filename_for_display
9711 calls.
9712 (create_sals_line_offset, convert_linespec_to_sals): New variable
9713 fullname, initialize it, replace symtab->filename reference by the
9714 variable.
9715 * linux-fork.c: Include source.h.
9716 (info_checkpoints_command): Replace symtab->filename refererences by
9717 symtab_to_filename_for_display calls.
9718 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9719 by symtab_to_filename_for_display calls.
9720 * mdebugread.c: Include source.h.
9721 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9722 symtab_to_filename_for_display calls.
9723 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9724 (mi_cmd_file_list_exec_source_files): Likewise.
9725 * printcmd.c: Include source.h.
9726 (build_address_symbolic): Replace symtab->filename refererences by
9727 symtab_to_filename_for_display calls.
9728 * psymtab.c (partial_map_symtabs_matching_filename)
9729 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9730 with psymtab_to_fullname.
9731 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9732 by symtab_to_filename_for_display calls.
9733 (stpy_get_filename): New variable filename, initialize it, use instead
9734 of symtab->filename refererences.
9735 (salpy_str): Make variable filename const char *. Replace
9736 symtab->filename refererences by symtab_to_filename_for_display calls.
9737 * skip.c: Include source.h and filenames.h.
9738 (skip_file_command): Remove const from the symtab variable. Replace
9739 symtab->filename refererences by symtab_to_fullname call.
9740 (function_name_is_marked_for_skip): New variables searched_for_fullname
9741 and fullname. Use them to search also with symtab's fullname.
9742 * source.c (find_source_lines): Replace symtab->filename refererences
9743 by symtab_to_filename_for_display calls.
9744 (print_source_lines_base): New variable filename, use it instead of
9745 symtab->filename. Replace symtab->filename refererences by
9746 symtab_to_filename_for_display calls.
9747 (line_info, forward_search_command): Replace symtab->filename
9748 refererences by symtab_to_filename_for_display calls.
9749 (reverse_search_command): Replace symtab->filename refererences by
9750 symtab_to_filename_for_display calls. New variable filename for it.
9751 * stack.c (frame_info): Likewise.
9752 * symmisc.c: Include source.h.
9753 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9754 (maintenance_info_symtabs): Replace symtab->filename refererences by
9755 symtab_to_filename_for_display calls.
9756 * symtab.c (iterate_over_some_symtabs): Call
9757 compare_filenames_for_search also with symtab_to_fullname.
9758 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9759 symtab->filename refererences by symtab_to_filename_for_display calls.
9760 (find_line_symtab): Replace symtab->filename refererences by
9761 symtab_to_filename_for_display calls.
9762 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9763 (print_symbol_info): Make the last parameter const char *. New
9764 variable s_filename. Use it in the function.
9765 (symtab_symbol_info): Make the last_filename variable const char *.
9766 Replace symtab->filename refererences by symtab_to_filename_for_display
9767 calls.
9768 (rbreak_command): New variable fullname. Use it. Replace
9769 symtab->filename refererence by symtab_to_filename_for_display call.
9770 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9771 (print_one_static_tracepoint_marker): Replace symtab->filename
9772 refererences by symtab_to_filename_for_display calls.
9773 * tui/tui-source.c (tui_set_source_content): New variables filename and
9774 s_filename. Replace symtab->filename refererences by this variable.
9775 Replace other symtab->filename refererences by
9776 symtab_to_filename_for_display calls.
9777
1b56eb55
JK
97782013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9779 Jan Kratochvil <jan.kratochvil@redhat.com>
9780
9781 Add a new variable that controls a way in which filenames are
9782 displayed.
9783 * NEWS (set filename-display): New entry.
9784 * source.c (filename_display_basename, filename_display_relative)
9785 (filename_display_absolute, filename_display_kind_names)
9786 (filename_display_string, show_filename_display_string)
9787 (symtab_to_filename_for_display): New.
9788 (_initialize_source): Added initialization of 'filename-display'
9789 variable.
9790 * source.h (symtab_to_filename_for_display): Added declaration.
9791 * stack.c (print_frame): Added new variable and calling of a new
9792 function and condition with this variable. Changed third argument of
9793 calling of a function.
9794
aa079c93
JK
97952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9796
9797 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9798 Rename field reference filename to fullname.
9799 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9800 fullname. New comment for it.
9801 * tui/tui-source.c (tui_set_source_content): Rename field reference
9802 filename to fullname. Initialize field by symtab_to_fullname now.
9803 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9804 reference filename to fullname. Use symtab_to_fullname during
9805 comparison.
9806
652a8996
JK
98072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9808
9809 Code cleanup.
9810 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9811 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9812 filename to fullname. Rename variable this_name to this_fullname.
9813 Lowercase FILENAME_CMP call.
9814 (dw2_find_symbol_file): New comment for the returned string.
9815 (dwarf2_gdb_index_functions): Rename the function to
9816 dw2_expand_symtabs_with_fullname.
9817 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9818 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9819 fullname.
9820 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9821 * symfile.h (struct quick_symbol_functions): Rename field
9822 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9823 parameter filename to fullname. Document returned string meaning for
9824 find_symbol_file.
9825 * symtab.c (find_line_symtab): Rename the called function to
9826 expand_symtabs_with_fullname.
9827
af529f8f
JK
98282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9829
9830 Code cleanup.
9831 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9832 call of filename_cmp with compare_filenames_for_search.
9833 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9834 is_abs, unify the call of FILENAME_CMP with
9835 compare_filenames_for_search. New gdb_asserts for real_path and name.
9836 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9837 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9838 * symfile.h (struct quick_symbol_functions): Extend the comment for
9839 map_symtabs_matching_filename.
9840 * symtab.c (compare_filenames_for_search): Remove the function comment
9841 relative path requirement. Handle absolute filenames, with a comment.
9842 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9843 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9844 real_path and name. Unify the call of compare_filenames_for_search
9845 with FILENAME_CMP.
9846 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9847
2f202fde
JK
98482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 Code cleanup.
9851 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9852 source_file references by symtab field references. Remove variables
9853 sal and fullname.
9854 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9855 (clear_command, say_where): Replace bp_location field source_file
9856 references by symtab field references.
9857 (bp_location_dtor): Remove the source_file reference.
9858 (update_static_tracepoint): Replace bp_location field source_file
9859 references by symtab field references.
9860 (breakpoint_free_objfile): New function.
9861 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9862 Replace the field source_file by field symtab, extend its comment.
9863 (breakpoint_free_objfile): New declaration.
9864 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9865 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9866 field source_file references by symtab field references.
9867
f5b95b50
JK
98682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9869
9870 Replace xfullpath calls by gdb_realpath calls.
9871 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9872 function comment.
9873 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9874 Remove it from the iterate_over_some_symtabs call.
9875 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9876 Remove it from the dw2_map_expand_apply calls, remove a block handling
9877 it.
9878 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9879 Remove it from the iterate_over_some_symtabs call.
9880 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9881 Remove it from the partial_map_expand_apply calls, remove a block
9882 handling it. Drop gdb_realpath call and cleanups from the real_path
9883 handling.
9884 * source.c (openp): Drop the comment part about xfullpath. Replace
9885 xfullpath calls by gdb_realpath calls.
9886 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9887 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9888 from method map_symtabs_matching_filename and its comment.
9889 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9890 gdb_realpath call.
9891 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9892 remove it also from the function comment, remove a block handling it.
9893 Drop gdb_realpath call and cleanups from the real_path handling.
9894 (iterate_over_symtabs): Drop variable full_path and its use.
9895 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9896 * utils.c (xfullpath): Remove.
9897 * utils.h (xfullpath): Remove.
9898
d78489bf
AT
98992013-02-01 Andreas Tobler <andreast@fgznet.ch>
9900
9901 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9902 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9903 (ALLDEPFILES): Add ppc64-tdep.c.
9904 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9905 ppc64-tdep.o to gdb_target_obs.
9906 * ppc64-tdep.h: New file.
9907 * ppc64-tdep.c: New file.
9908 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9909 ppc-linux-tdep.c to here.
9910 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9911 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9912 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9913 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9914 from ppc-linux-tdep.c to here.
9915 (ppc64_convert_from_func_ptr_addr): Rename from
9916 ppc64_linux_convert_from_func_ptr_addr to
9917 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9918 here.
9919 * rs6000-tdep.c:
9920 (read_insn): Move from ppc-linux-tdep.c to here.
9921 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9922 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9923 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9924 Removed above functions.
9925 (ppc_linux_init_abi): Adjust.
9926
8db60374
AR
99272013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9928
9929 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9930
f2e5f4ce
AR
99312013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9932
9933 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9934
c1f7d745
PA
99352013-02-01 Pedro Alves <palves@redhat.com>
9936
9937 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9938 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9939
8a92335b
JK
99402013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9941
9942 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9943 files with no separate debug info.
9944 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9945 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9946 only for files with no separate debug info.
9947
8eacb197
TT
99482013-01-31 Tom Tromey <tromey@redhat.com>
9949
9950 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9951 change type.
9952 (struct jit_program_space_data): Rename from jit_inferior_data.
9953 Update comments.
9954 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9955 Change return type. Attach data to program space.
9956 (jit_program_space_data_cleanup): Rename from
9957 jit_inferior_data_cleanup; change argument type.
9958 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9959 change type.
9960 (jit_register_code): Update.
9961 (jit_update_inferior_cache): Remove.
9962 (jit_breakpoint_deleted): Get jit data from the location's program
9963 space.
9964 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9965 'ps_data', change type.
9966 (jit_inferior_init, jit_breakpoint_re_set_internal)
9967 (jit_event_handler): Update.
9968 (free_objfile_data): Get data from objfile's program space.
9969 (_initialize_jit): Update.
9970
f25c0135
TT
99712013-01-31 Tom Tromey <tromey@redhat.com>
9972
9973 PR gdb/13987:
9974 * jit.c (struct jit_inferior_data) <cached_code_address,
9975 jit_breakpoint>: New fields.
9976 (jit_breakpoint_re_set_internal): Fix logging. Only create
9977 breakpoint if cached address has changed.
9978 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9979 functions.
9980 (_initialize_jit): Register breakpoint deleted observer.
9981
974a734b
AR
99822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9983
9984 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9985 (save_infcall_suspend_state): Ifdef out unused inf.
9986 (restore_infcall_suspend_state): Ifdef out unused inf.
9987 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9988 (jit_frame_sniffer): Remove unused inf_data.
9989
df54f8eb
AR
99902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9991
9992 * c-exp.y (classify_inner_name): Remove unused type.
9993 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9994 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9995 need_escape.
9996 (c_get_string): Remove unused kind.
9997 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9998
5799c0b9
AR
99992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10000
10001 * charset.c (intermediate_encoding): Remove unused i.
10002 * completer.c (signal_completer): Remove unused i.
10003 * continuations.c (discard_my_continuations_1): Remove unused
10004 continuation_ptr.
10005 * corelow.c (core_close): Remove unuseD name.
10006 (get_core_siginfo): Remove unused pid.
10007 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10008 i, cps.
10009 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10010 (loclist_describe_location): Remove unused first.
10011 * event-top.c (command_line_handler): Remove unused got_eof.
10012 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10013 (resize_section_table): Remove unused old_value.
10014 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10015 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10016 * i386-tdep.c (i386_process_record): Remove unused rex.
10017 * infcmd.c (get_return_value): Remove unused uiout.
10018 * jv-lang.c (type_from_class): Remove unused is_array.
10019 * jv-valprint.c (java_val_print): Remove unused i.
10020 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10021 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10022 * m2-typeprint.c (m2_print_type): Remove unused code.
10023 * macroexp.c (get_character_constant): Remove unused body_start.
10024 (macro_stringify): Remove unused result.
10025 * objc-lang.c (find_methods): Remove unused gdbarch.
10026 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10027 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10028 * stack.c (print_frame_args): Remove unused summary.
10029 * thread.c (thread_apply_command): Remove unused p.
10030 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10031 * valops.c (search_struct_method): Remove unused skip.
10032 * valprint.c (generic_val_print): Remove unused byte_order.
10033 * varobj.c (varobj_update): Remove unused changed.
10034 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10035 (alias_command): Remove unused c.
10036 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10037 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10038 format.
10039 (mi_cmd_data_write_memory): Remove unused word_format.
10040 (mi_cmd_data_write_memory_bytes): Remove unused r.
10041 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10042 p_start, p_end.
10043 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10044 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10045 line_width.
10046
c656bca5
AR
100472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10048
10049 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10050 * symtab.c (iterate_over_symtabs): Remove unused s.
10051 (find_pc_sect_symtab): Remove unused pspAce.
10052 (find_pc_sect_line): Remove unused alt_symtab.
10053 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10054 (completion_list_add_name): Remove unused newsize.
10055
7078baeb
TT
100562013-01-31 Tom Tromey <tromey@redhat.com>
10057
10058 PR c++/14998:
10059 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10060 TYPE_CODE_FUNC.
10061
c2e8b827
AR
100622013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10063
10064 * target.c (target_read_string): Remove unused origlen.
10065
0e43993a
AR
100662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10067
10068 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10069 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10070 * ax-general.c (ax_print): Remove unused is_float.
10071 * blockframe.c (block_innermost_frame): Remove unused start, end.
10072 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10073
765a97ab
AR
100742013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10075
10076 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10077 (svr4_read_so_list): Remove unused lmo.
10078 * solib-target.c (solib_target_relocate_section_addresses): Remove
10079 unused flags.
10080
a99dad3d
TT
100812013-01-30 Tom Tromey <tromey@redhat.com>
10082
10083 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10084
3bff1ecd
TT
100852013-01-30 Tom Tromey <tromey@redhat.com>
10086
10087 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10088 * utils.c (gnu_debuglink_crc32): Remove.
10089 * utils.h (gnu_debuglink_crc32): Don't declare.
10090
7d455152
TT
100912013-01-30 Tom Tromey <tromey@redhat.com>
10092
10093 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10094 (read_structure_type, read_enumeration_type): Remove cast.
10095
abee88f2
TT
100962013-01-30 Tom Tromey <tromey@redhat.com>
10097
10098 * dwarf2read.c (read_namespace_type): Remove cast.
10099 (read_typedef): Likewise.
10100
8d9878a4
TT
101012013-01-29 Tom Tromey <tromey@redhat.com>
10102
10103 * dwarf2read.c (free_dwo_file): Remove assert.
10104
a543d2a9
TT
101052013-01-29 Tom Tromey <tromey@redhat.com>
10106
10107 * value.c (deprecated_set_value_modifiable): Remove.
10108 * value.h (deprecated_set_value_modifiable): Remove.
10109
bed911e5
DE
101102013-01-28 Doug Evans <dje@google.com>
10111
10112 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10113 to addresses from dwo files.
10114
28c64fc2
SCR
101152013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10116
10117 * valops.c (find_overload_match): Remove unused argument 'lax'.
10118 * value.h: Remove unused argument 'lax' from the declaration of
10119 find_overload_match.
10120 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10121 to find_overload_match.
10122 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10123 argument to find_overload_match.
10124
4d4ec4e5
TT
101252013-01-25 Tom Tromey <tromey@redhat.com>
10126
10127 * dwarf2read.c (processing_has_namespace_info): Remove.
10128 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10129 (process_die, read_func_scope, dwarf2_start_symtab)
10130 (new_symbol_full): Update.
10131
195a3f6c
TT
101322013-01-25 Tom Tromey <tromey@redhat.com>
10133
10134 * cp-namespace.c (cp_set_block_scope): Remove.
10135 * cp-support.h (cp_set_block_scope): Remove.
10136 * dbxread.c: Include block.h.
10137 (cp_set_block_scope): New function.
10138 (process_one_symbol): Update.
10139 * dwarf2read.c (read_func_scope): Use block_set_scope.
10140
8ba0730a
PA
101412013-01-25 Pedro Alves <palves@redhat.com>
10142
10143 * remote.c (add_current_inferior_and_thread): Tweak comment.
10144
12aaed36
TT
101452013-01-25 Tom Tromey <tromey@redhat.com>
10146
10147 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10148 (cp_add_using_directive): Add 'copy_names' argument.
10149 * cp-support.h (cp_add_using_directive): Update.
10150 (struct using_direct) <import_src, import_dest, alias,
10151 declaration>: Now const.
10152 * dwarf2read.c (read_import_statement): Use obconcat.
10153 Don't copy names passed to cp_add_using_directive.
10154
7fc75ca7
TT
101552013-01-25 Tom Tromey <tromey@redhat.com>
10156
10157 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10158
3405876a
PA
101592013-01-25 Pedro Alves <palves@redhat.com>
10160
10161 * remote.c (stop_reply_extract_thread): New.
10162 (add_current_inferior_and_thread): New parameter 'wait_status'.
10163 Handle it.
10164 (remote_start_remote): Pass wait status to
10165 add_current_inferior_and_thread.
10166 (extended_remote_run): Update comment.
10167 (extended_remote_create_inferior_1): Pass wait status to
10168 add_current_inferior_and_thread.
10169
8954db33
AB
101702013-01-25 Andrew Burgess <aburgess@broadcom.com>
10171 Ulrich Weigand <uweigand@de.ibm.com>
10172
10173 * valarith.c (value_vector_widen): New function for replicating a
10174 scalar into a vector.
10175 (value_binop): Use value_vector_widen to widen scalar to vector
10176 rather than casting, this better matches gcc C behaviour.
10177 * valops.c (value_casst): Update logic for casting between vector
10178 types, and for casting from scalar to vector, try to match gcc C
10179 behaviour.
10180 * value.h (value_vector_widen): Declare.
10181 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10182 function, handle special case for casting scalar to vector.
10183 (opencl_relop): Use opencl_value_cast.
10184 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10185 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10186 in order to use opencl_value_cast.
10187
843b20dc
YQ
101882013-01-25 Yao Qi <yao@codesourcery.com>
10189
10190 * event-loop.c: Include "queue.h".
10191 (gdb_event_p): New typedef.
10192 (DECLARE_QUEUE_P): Use.
10193 (DEFINE_QUEUE_P): Use.
10194 (async_queue_event): Remove.
10195 (gdb_event_xfree): New.
10196 (initialize_event_loop): New.
10197 (process_event): Use QUEUE macros.
10198 (event_queue): Remove.
10199 (gdb_wait_for_event): Caller update.
10200 (check_async_event_handlers): Likewise.
10201 (poll_timers): Likewise.
10202 * event-loop.h (initialize_event_loop): Declare.
10203 * event-loop.c (gdb_event_xfree): New.
10204 * top.c (gdb_init): Call initialize_event_loop.
10205
20ad8856
YQ
102062013-01-25 Yao Qi <yao@codesourcery.com>
10207
10208 * event-loop.c (async_queue_event): Remove one parameter
10209 'position'. Remove code handling 'position' == TAIL.
10210 (gdb_wait_for_event): Caller update.
10211 (check_async_event_handlers): Caller update.
10212 (poll_timers): Caller update.
10213 * event-loop.h (enum queue_position): Remove.
10214
3bbbe775
MK
102152013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10216
10217 * MAINTAINERS: Update my email.
10218
a87d9ac4
YQ
102192013-01-25 Yao Qi <yao@codesourcery.com>
10220
10221 * main.c (print_gdb_help): Remove "--epoch" from the help
10222 message.
10223
2077afdd
TD
102242013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10225
10226 * symtab.c (skip_prologue_using_sal): Consider a file
10227 change the same as an increased line number
10228
63da4037
TD
102292013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10230
30e8ee25 10231 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10232
45e6c716
TT
102332013-01-24 Tom Tromey <tromey@redhat.com>
10234
10235 * ada-lang.h (ada_decode_symbol): Make return type const.
10236 * ada-lang.c (ada_decode_symbol): Likewise.
10237
b1ae631a
DE
102382013-01-23 Doug Evans <dje@google.com>
10239
10240 * linespec.c (find_linespec_symbols): Make static.
10241
55a78401
SDJ
102422013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10243
10244 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10245 type on float conversion for complex type.
10246
bea883fd
SCR
102472013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10248
10249 Add a new class gdb.Architecture which exposes GDB's
10250 internal representation of architecture via GDB Python API.
10251 * Makefile.in: Add entries corresponding to the new file
10252 python/py-arch.c.
10253 * NEWS (Python Scripting): Add entries for the new class
10254 gdb.Architecture and the new method gdb.Frame.architecture.
10255 * python/py-arch.c: Implement gdb.Architecture class.
10256 * python/py-frame.c (frapy_arch): Implement the method
10257 gdb.Frame.architecture().
10258 (frame_object_methods): Add 'architecture' to the method table.
10259 * python/python-internal.h: Add declarations of new utility
10260 functions.
10261 * python/python.c (_initialize_python): Initialize
10262 gdb.Architecture class.
10263
796a7ff8
DE
102642013-01-23 Doug Evans <dje@google.com>
10265
10266 Work around binutils/15021.
10267 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10268 type_unit_group out of union s. All uses updated.
10269 (read_index_from_section): Watch for index version 8.
10270 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10271 an imported symtab.
10272 (write_psymtabs_to_index): Increment version number to 8.
10273
0928e93d
PA
102742013-01-22 Pedro Alves <palves@redhat.com>
10275
10276 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10277 user-visible.
10278
9c97429f
PA
102792013-01-22 Pedro Alves <palves@redhat.com>
10280
10281 * annotate.c (annotate_breakpoints_changed): Rename to ...
10282 (annotate_breakpoints_invalid): ... this. Make static.
10283 (breakpoint_changed): Adjust.
10284 (_initialize_annotate): Always install the observers. Install a
10285 "breakpoint_created" observer.
10286 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10287 * breakpoint.c (set_breakpoint_condition)
10288 (breakpoint_set_commands, do_map_commands_command)
10289 (init_raw_breakpoint, clear_command, set_ignore_count)
10290 (enable_breakpoint_disp): No longer call
10291 annotate_breakpoints_changed.
10292
bd00c694
PA
102932013-01-22 Pedro Alves <palves@redhat.com>
10294
10295 * annotate.c: Include "inferior.h".
10296 (frames_invalid_emitted)
10297 (breakpoints_invalid_emitted): New globals.
10298 (async_background_execution_p): New function.
10299 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10300 emitting the annotation if it has already been emitted.
10301 (annotate_display_prompt): New function.
10302 * annotate.h (annotate_display_prompt): New declaration.
10303 * event-top.c: Include annotate.h.
10304 (display_gdb_prompt): Call annotate_display_prompt.
10305
187d10dd
PA
103062013-01-22 Pedro Alves <palves@redhat.com>
10307
10308 * annotate.c (ignore_count_changed): Delete.
10309 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10310 (annotate_ignore_count_change): Delete.
10311 (annotate_stopped): Don't emit a delayed breakpoints-changed
10312 annotation.
10313 * annotate.h (annotate_ignore_count_change): Delete.
10314 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10315 annotate_ignore_count_change.
10316
d84cf7eb
TT
103172013-01-22 Tom Tromey <tromey@redhat.com>
10318
10319 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10320 require_rvalue for a register location.
10321
8f1d5693
MK
103222013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10323
10324 * breakpoint.c (print_one_breakpoint_location): Add MI
10325 field 'thread-groups' when printing a breakpoint.
10326 (output_thread_groups): New function.
10327
aa6199c6
SCR
103282013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10329
10330 * python/lib/gdb/commands/explore.py
10331 (CompoundExplorer.explore_expr): Correct the name of a method
10332 being invoked.
10333 (ExploreTypeCommand.invoke): Add a missing 'return'.
10334
d2afef13
TT
103352013-01-21 Tom Tromey <tromey@redhat.com>
10336
10337 * gdb_obstack.h (obconcat): Move declaration here, from...
10338 * symfile.h (obconcat): ... here.
10339 * gdb_obstack.c: New file.
10340 (obconcat): Move from...
10341 * symfile.c (obconcat): ... here.
10342 * Makefile.in (SFILES): Add gdb_obstack.c.
10343 (COMMON_OBS): Add gdb_obstack.o.
10344
10f0c4bb
TT
103452013-01-21 Tom Tromey <tromey@redhat.com>
10346
10347 * symfile.h (obsavestring): Don't declare.
10348 * symfile.c (obsavestring): Remove.
10349 * ada-exp.y: Use obstack_copy0, not obsavestring.
10350 * ada-lang.c: Use obstack_copy0, not obsavestring.
10351 * coffread.c: Use obstack_copy0, not obsavestring.
10352 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10353 * dbxread.c: Use obstack_copy0, not obsavestring.
10354 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10355 * jit.c: Use obstack_copy0, not obsavestring.
10356 * mdebugread.c: Use obstack_copy0, not obsavestring.
10357 * psymtab.c: Use obstack_copy0, not obsavestring.
10358 * stabsread.c: Use obstack_copy0, not obsavestring.
10359 * xcoffread.c: Use obstack_copy0, not obsavestring.
10360
86f62fd7
TT
103612013-01-21 Tom Tromey <tromey@redhat.com>
10362
10363 * dwarf2read.c (fixup_go_packaging): Save package name
10364 on objfile obstack.
10365 * gdbtypes.c (init_type): Don't copy name.
10366
15d034d0
TT
103672013-01-21 Tom Tromey <tromey@redhat.com>
10368
10369 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10370 const.
10371 (struct attribute) <u.str>: Now const.
10372 (struct fnfieldlist) <name>: Now const.
10373 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10374 (partial_die_parent_scope): Make return type const.
10375 (partial_die_full_name, add_partial_symbol): Update.
10376 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10377 'name' const.
10378 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10379 (read_file_scope, read_func_scope, dwarf2_add_field)
10380 (dwarf2_add_member_fn, read_structure_type)
10381 (process_enumeration_scope, read_array_type, read_module_type)
10382 (read_base_type, read_subrange_type): Update.
10383 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10384 (new_symbol_full, guess_full_die_structure_name): Update.
10385 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10386 (dwarf2_name): Return const type.
10387 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10388 const.
10389
748e18ae
TT
103902013-01-21 Tom Tromey <tromey@redhat.com>
10391
10392 * gdbtypes.c (init_type): Make 'name' const.
10393 * gdbtypes.h (init_type): Update.
10394
46212e0b
TT
103952013-01-21 Tom Tromey <tromey@redhat.com>
10396
10397 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10398 (start_symtab): Make 'name' and 'dirname' const. Use
10399 set_last_source_file.
10400 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10401 (last_source_file): Define. Now static.
10402 (set_last_source_file, get_last_source_file): New functions.
10403 * buildsym.h (last_source_file): Don't declare.
10404 (start_symtab): Update.
10405 (set_last_source_file, get_last_source_file): Declare.
10406 * coffread.c (complete_symtab): Use set_last_source_file.
10407 (coff_end_symtab): Likewise.
10408 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10409 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10410 set_last_source_file.
10411 (process_one_symbol): Use get_last_source_file.
10412 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10413 (psymtab_to_symtab_1): Use get_last_source_file.
10414 * xcoffread.c (process_linenos): Use get_last_source_file.
10415 (complete_symtab): Use set_last_source_file.
10416 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10417 (scan_xcoff_symtab): Use set_last_source_file.
10418
9d2ceabe
TT
104192013-01-21 Tom Tromey <tromey@redhat.com>
10420
10421 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10422 (symbol_set_names): Remove casts. Handle field const-ness.
10423
cfc594ee
TT
104242013-01-21 Tom Tromey <tromey@redhat.com>
10425
10426 * dwarf2read.c (new_symbol_full): Remove cast.
10427 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10428 * symtab.h (symbol_set_demangled_name): Update.
10429
5484b13a
TT
104302013-01-21 Tom Tromey <tromey@redhat.com>
10431
10432 * main.c (captured_main): Call bfd_init.
10433
1605ef26
TT
104342013-01-21 Tom Tromey <tromey@redhat.com>
10435
10436 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10437 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10438 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10439 * NEWS: Update.
10440
3b74cdc3
JK
104412013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10442
10443 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10444
5a352474
JK
104452013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10446
10447 Fix gdb.fortran/common-block.exp crash in PIE mode.
10448 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10449 LOC_COMMON_BLOCK.
10450 * f-valprint.c (info_common_command_for_block): Expect
10451 LOC_COMMON_BLOCK in gdb_assert.
10452 * symtab.h (struct general_symbol_info): Update comment for the
10453 common_block member.
10454 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10455 (enum address_class): New member LOC_COMMON_BLOCK.
10456
c60797fd
DB
104572013-01-18 David Blaikie <dblaikie@gmail.com>
10458
10459 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10460
46f35228
TT
104612013-01-18 Tom Tromey <tromey@redhat.com>
10462
10463 PR c++/14999:
10464 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10465 Call require_rvalue.
10466
257e7a09
YQ
104672013-01-18 Yao Qi <yao@codesourcery.com>
10468
10469 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10470 (dbx_read_symtab): New declaration.
10471 (dbx_psymtab_to_symtab): Delete.
10472 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10473 Rename parameter PST to SELF. Exchanged two parameters.
10474 (start_psymtab): Caller update.
10475 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10476 (dwarf2_read_symtab): New declaration.
10477 (dwarf2_psymtab_to_symtab): Delete.
10478 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10479 Rename parameter PST to SELF. Exchanged two parameters.
10480 (create_partial_symtab): Caller update.
10481 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10482 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10483 Rename parameter PST to SELF. Exchanged two parameters.
10484 (parse_partial_symbols, new_psymtab): Caller update.
10485 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10486 two parameters.
10487 * psymtab.c (psymtab_to_symtab): Caller update.
10488 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10489 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10490 Rename parameter PST to SELF. Exchanged two parameters.
10491 (xcoff_start_psymtab): Caller update.
10492
0de5618e
YQ
104932013-01-18 Yao Qi <yao@codesourcery.com>
10494
10495 * infrun.c (proceed): Rename local variable 'oneproc' to
10496 'force_step'.
10497
5c04624b
DE
104982013-01-17 Doug Evans <dje@google.com>
10499
848e3e78
DE
10500 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10501 (dw2_build_type_unit_groups): Delete. All uses updated.
10502
5c04624b
DE
10503 * symtab.h (struct symbol_search): Add comment.
10504
d84fca2c
JK
105052013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10506
10507 * symtab.c (compare_filenames_for_search): New comment for
10508 HAS_DRIVE_SPEC.
10509
6108433d
TT
105102013-01-17 Tom Tromey <tromey@redhat.com>
10511
10512 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10513
c89ffd86
JK
105142013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10515
10516 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10517 initialize it by existing make_cleanup. Call new do_cleanups.
10518
db2b2972
TT
105192013-01-17 Tom Tromey <tromey@redhat.com>
10520
10521 * cp-abi.c (cp_abi_completer): New function.
10522 (_initialize_cp_abi): Set completer for "set cp-abi".
10523
be7d37a2
TT
105242013-01-17 Tom Tromey <tromey@redhat.com>
10525
10526 * mem-break.c: Remove obsolete comment.
10527 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10528
c9fb1240
SD
105292012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10530
10531 * jit.c (jit_reader_load_command): Interpret the jit reader name
10532 as an absolute path if it begins with a forward slash.
10533
db334a01
SD
105342012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10535
10536 PR gdb/14550
10537
10538 * jit.c (finalize_symtab): Ensure that only the global block has a
10539 NULL superblock.
10540
7d928dac
PA
105412013-01-17 Pedro Alves <palves@redhat.com>
10542
10543 * acinclude.m4: Include ../config/plugins.m4,
10544 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10545 * Makefile.in (aclocal_m4_deps): Update.
10546 * aclocal.m4: Renegerate.
10547
fb8cf7c5
DE
105482013-01-16 Doug Evans <dje@google.com>
10549
10550 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10551
ab04a2af
TT
105522013-01-16 Pedro Alves <palves@redhat.com>
10553 Tom Tromey <tromey@redhat.com>
10554
10555 PR cli/7221:
10556 * NEWS: Add "catch signal".
10557 * breakpoint.c (base_breakpoint_ops): No longer static.
10558 (bpstat_explains_signal): New function.
10559 (init_catchpoint): No longer static.
10560 (base_breakpoint_explains_signal): New function.
10561 (base_breakpoint_ops): Initialize new field.
10562 * breakpoint.h (enum bpstat_signal_value): New.
10563 (struct breakpoint_ops) <explains_signal>: New field.
10564 (bpstat_explains_signal): Remove macro, declare as function.
10565 (base_breakpoint_ops, init_catchpoint): Declare.
10566 * break-catch-sig.c: New file.
10567 * inferior.h (signal_catch_update): Declare.
10568 * infrun.c (signal_catch): New global.
10569 (handle_syscall_event): Update for change to
10570 bpstat_explains_signal.
10571 (handle_inferior_event): Likewise. Always handle random signals
10572 via bpstats.
10573 (signal_cache_update): Check signal_catch.
10574 (signal_catch_update): New function.
10575 (_initialize_infrun): Initialize signal_catch.
10576 * Makefile.in (SFILES): Add break-catch-sig.c.
10577 (COMMON_OBS): Add break-catch-sig.o.
10578
8ac3646f
TT
105792013-01-16 Tom Tromey <tromey@redhat.com>
10580
10581 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10582 (print_one_catch_solib, print_one_catch_syscall)
10583 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10584 "catch-type".
10585
5a18e302
YQ
105862013-01-16 Yao Qi <yao@codesourcery.com>
10587
10588 * printcmd.c (current_display_number): Make it static.
10589
3f01d0d0
YQ
105902013-01-16 Yao Qi <yao@codesourcery.com>
10591
10592 * infcmd.c (step_once): Don't check '!single_inst' as it was
10593 checked before.
10594
1ed59174
JK
105952013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10598
44478ab3
TT
105992013-01-14 Tom Tromey <tromey@redhat.com>
10600
10601 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10602 set command.
10603 * command.h (add_setshow_string_noescape_cmd): Update.
10604 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10605 (complete_set_gnutarget): New function.
10606 (_initialize_core): Set the "set gnutarget" completer.
10607
06d66ee9
TT
106082013-01-14 Tom Tromey <tromey@redhat.com>
10609
10610 PR symtab/14442:
10611 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10612 (c_type_print_modifier): Likewise.
10613 * dwarf2read.c (read_tag_restrict_type): New function.
10614 (read_type_die_1): Handle DW_TAG_restrict_type.
10615 * gdbtypes.c (make_restrict_type): New function.
10616 (recursive_dump_type): Handle TYPE_RESTRICT.
10617 * gdbtypes.h (enum type_flag_values): Renumber.
10618 (enum type_instance_flag_value): Add
10619 TYPE_INSTANCE_FLAG_RESTRICT.
10620 (TYPE_RESTRICT): New macro.
10621 (make_restrict_type): Declare.
10622
c9bf0622
TT
106232013-01-14 Tom Tromey <tromey@redhat.com>
10624
10625 PR symtab/14931:
10626 * psymtab.c (struct psymtab_state): New.
10627 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10628 functions.
10629 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10630 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10631
44d594fd
PA
106322013-01-14 Richard Sharman <richard_sharman@mitel.com>
10633 Pedro Alves <palves@redhat.com>
10634
10635 PR remote/14786
10636
10637 * remote.c (remote_threads_info): Make a copy of the reply from
10638 qfThreadInfo and use that instead of rs->buf.
10639
442e4d9c
YQ
106402013-01-14 Yao Qi <yao@codesourcery.com>
10641
10642 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10643 (dbx_psymtab_to_symtab): Likewise.
10644 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10645 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10646 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10647
5b12a61c
JK
106482013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10649
10650 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10651 make_cleanup_restore_current_language. Call set_language. Move
10652 OLD_CHAIN and INNER_CHAIN cleanups.
10653 * utils.c (do_restore_current_language)
10654 (make_cleanup_restore_current_language): New functions.
10655 * utils.h (make_cleanup_restore_current_language): New declaration.
10656
f0a4b570
JK
106572013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10658
10659 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10660 non-existing files.
10661
57b3c00c
JK
10662 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10663 non-existing files if FILENAME is already absolute.
10664
daefa854
JK
106652013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10668 fputs_filtered. Append trailing newline.
10669
ca9c6ee2
YQ
106702013-01-11 Yao Qi <yao@codesourcery.com>
10671 Stan Shebs <stan@codesourcery.com>
10672
10673 * psymtab.c (init_psymbol_list): Clarify the comment.
10674
f28045c2
YQ
106752013-01-11 Yao Qi <yao@codesourcery.com>
10676
10677 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10678 (update_dprintf_command_list): Assert that 'printf_line' is
10679 non-null. Remove condition check.
10680
da5132d3
JK
106812013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10682
10683 Code cleanup.
10684 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10685 type const char *.
10686 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10687 const char *.
10688 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10689
843e694d
AG
106902013-01-09 Anthony Green <green@moxielogic.com>
10691
10692 * cp-abi.c (cplus_print_vtable): Don't return value from void
10693 function.
10694 * ada-lang.c (re_set_catch_assert): Ditto.
10695
da51c347
DE
106962013-01-09 Doug Evans <dje@google.com>
10697
10698 * symfile.h (quick_symbol_functions): Delete member
10699 pre_expand_symtabs_matching. All uses removed.
10700 * dwarf2read.c (dw2_lookup_symbol): Implement.
10701 (dw2_do_expand_symtabs_matching): Delete.
10702 (dw2_pre_expand_symtabs_matching): Delete.
10703 (struct dw2_symtab_iterator): New type.
10704 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10705 (dw2_expand_symtabs_for_function): Rewrite.
10706 (dwarf2_gdb_index_functions): Update.
10707 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10708 (psym_functions): Update.
10709
b2259038
TT
107102013-01-09 Tom Tromey <tromey@redhat.com>
10711
10712 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10713 * configure: Rebuild.
10714 * configure.ac: Add somread.o to the build if BFD has SOM
10715 support.
10716 * somread.c: Include som/aout.h, not syms.h.
10717 (som_symtab_read): Use som_external_symbol_dictionary_record.
10718 Unpack records manually.
10719 (_initialize_somread): Declare.
10720
bdad4180
MF
107212012-01-08 Mike Frysinger <vapier@gentoo.org>
10722
10723 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10724 Cast return_address to 64bits.
10725
03cdf680
HZ
107262013-01-08 Hui Zhu <hui_zhu@mentor.com>
10727
10728 * printcmd.c: Remove define of function output_command.
10729 * tracepoint.c: Remove extern of function output_command.
10730 * valprint.h: (output_command): New extern.
10731
8a808554
TT
107322013-01-07 Tom Tromey <tromey@redhat.com>
10733
10734 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10735 Remove.
10736 (objc_language_defn): Use c_printchar, c_printstr,
10737 c_emit_char.
10738
e93a8774
TT
107392013-01-07 Tom Tromey <tromey@redhat.com>
10740
10741 PR cli/7719:
10742 * NEWS: Update.
10743 * ada-valprint.c (printstr, print_field_values): Remove
10744 "inspect_it" code.
10745 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10746 code.
10747 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10748 code.
10749 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10750 * main.c (captured_main): Remove "epoch" argument.
10751 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10752 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10753 * p-valprint.c (pascal_object_print_value_fields): Remove
10754 "inspect_it" code.
10755 * printcmd.c (print_command_1): Remove 'inspect' argument.
10756 (print_command, call_command): Update.
10757 (inspect_command): Remove.
10758 (_initialize_printcmd): Make "inspect" an alias for "print".
10759 * top.c (epoch_interface): Remove.
10760 * top.h (epoch_interface): Remove.
10761 * valprint.c (user_print_options): Update.
10762 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10763 * valprint.h (struct value_print_options) <inspect_it>: Remove
10764 field.
10765
107662013-01-04 Tom Tromey <tromey@redhat.com>
10767
10768 * valprint.h (read_string): Add 'extern'.
10769
b967eb24
JB
107702013-01-07 Joel Brobecker <brobecker@adacore.com>
10771
10772 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10773 used to decide whether to define darwin_read_dyld_info or not.
10774
78a8b30e
PM
107752013-01-03 Pierre Muller <muller@sourceware.org>
10776
10777 * main.c (relocate_gdb_directory): Avoid calling stat function
10778 if DIR is empty.
10779
50da2f25
YQ
107802013-01-03 Yao Qi <yao@codesourcery.com>
10781
10782 * psymtab.c (fixup_psymbol_section): Update declaration.
10783 (fixup_psymbol_section): Remove code returning value.
10784
e7e8980f
YQ
107852013-01-03 Yao Qi <yao@codesourcery.com>
10786
10787 * symtab.h: Remove some out of date comments.
10788 (enum exception_event_kind): Move it ...
10789 * breakpoint.c: ... here.
10790
569283d4
MF
107912013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10792
9f9d9a96 10793 PR gdb/14405
569283d4
MF
10794 * darwin-nat.c (darwin_read_dyld_info): Only build if
10795 TASK_DYLD_INFO_COUNT is defined.
10796 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10797 TASK_DYLD_INFO_COUNT is defined.
10798
2e36fbea
TT
107992013-01-02 Tom Tromey <tromey@redhat.com>
10800
10801 * symfile.h (struct ecoff_debug_hack): Remove.
10802 * objfiles.c: Don't include mdebugread.h.
10803
4f05add4
TT
108042013-01-02 Tom Tromey <tromey@redhat.com>
10805
10806 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10807 * configure.ac: Check for Mach-O support in BFD. Update
10808 CONFIG_OBS.
10809 * configure: Rebuild.
10810
def63ff0
TT
108112013-01-02 Tom Tromey <tromey@redhat.com>
10812
10813 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10814 * configure.ac: Use GDB_AC_CHECK_BFD.
10815 * configure: Rebuild.
10816
60c5dd93
MK
108172013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10818
10819 * MAINTAINERS: Update my email.
10820
6e58437e
JB
108212013-01-01 Joel Brobecker <brobecker@adacore.com>
10822
10823 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10824
627fe805
JB
108252013-01-01 Joel Brobecker <brobecker@adacore.com>
10826
10827 * rs6000-nat.c (bss_data_overlap): New function.
10828 (vmap_symtab): Use it to adjust the .bss section's offset.
10829
28e7fd62
JB
108302013-01-01 Joel Brobecker <brobecker@adacore.com>
10831
10832 Update year range in copyright notice of all files.
10833
e93a8774 108342013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10835
10836 * top.c (print_gdb_version): Update copyright year.
10837
72b20e9c 10838For older changes see ChangeLog-2012.
c906108c
SS
10839\f
10840Local Variables:
10841mode: change-log
10842left-margin: 8
10843fill-column: 74
10844version-control: never
57da7796 10845coding: utf-8
c906108c 10846End:
This page took 2.185893 seconds and 4 git commands to generate.