Fix dates (wrong month) in the last 2 ChangeLog entries.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7ad1d32c 12013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2
3 * utils.h (perror_warning_with_name): Add declaration.
4 * utils.c (perror_warning_with_name): New function.
5 * cli/cli-cmds.c (source_script_with_search): Add call to
6 perror_warning_with_name if from_tty is nul.
7
7ad1d32c 82013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
9
10 * utils.c (perror_string): New function, extracted out of
11 throw_perror_with_name.
12 (throw_perror_with_name): Rework to use perror_string.
13
bcc75809
YQ
142013-10-11 Yao Qi <yao@codesourcery.com>
15
16 * remote.c (discard_pending_stop_replies_in_queue): Update
17 declaration.
18 (struct stop_reply) <rs>: New field.
19 (remove_stop_reply_of_remote_state): New function.
20 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
21 Callers update. Pass remove_stop_reply_of_remote_state to
22 QUEUE_iterate.
23 (remote_parse_stop_reply): Initialize field 'rs'.
24
05feb193
WN
252013-10-10 Will Newton <will.newton@linaro.org>
26
27 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
28 linux_init_abi.
29
0d12017b
JB
302013-10-10 Joel Brobecker <brobecker@adacore.com>
31
32 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
33 serial_baud_show_cmd.
34 (_initialize_cli_cmds): Delete the code creating the
35 "set/show remotebaud" commands.
36 * serial.c (baud_rate): Move here from top.c.
37 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
38 (_initialize_serial): Create "set/show serial baud" commands.
39 Add "set/show remotebaud" command aliases.
40 * top.c (baud_rate): Moved to serial.c.
41 * NEWS: Document the new "set/show serial baud" commands,
42 replacing "set/show remotebaud".
43
578d3588
PA
442013-10-09 Pedro Alves <palves@redhat.com>
45
46 * breakpoint.c (insert_bp_location): Use memory_error_message to
47 build the memory error string.
48 * c-lang.c: Include "gdbcore.h".
49 (c_get_string): Use memory_error to throw error.
50 (target_xfer_memory_error): Delete.
51 (memory_error_message): New, factored out from
52 target_xfer_memory_error.
53 (memory_error): Change parameter type to target_xfer_error.
54 Rewrite.
55 (read_memory): Use memory_error instead of
56 target_xfer_memory_error.
57 * gdbcore.h: Include "target.h".
58 (memory_error): Change parameter type to target_xfer_error.
59 (memory_error_message): Declare function.
60 * target.c (target_read_memory, target_read_stack)
61 (target_write_memory, target_write_raw_memory): Return
62 TARGET_XFER_E_IO on error. Adjust comments.
63 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
64 instead of EIO.
65 * target.h (target_read, target_insert_breakpoint)
66 (target_remove_breakpoint): Adjust comments.
67 * valprint.c (partial_memory_read): Rename parameter, and adjust
68 comment.
69 (val_print_string): Use memory_error_message to build the memory
70 error string.
71
c74e1ccf
JK
722013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
73
74 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
75 result variable. Rename variable fopen_e_ever_failed to
76 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
77
915215be
PA
782013-10-09 Pedro Alves <palves@redhat.com>
79
80 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
81 (monitor_write_memory_longlongs, monitor_write_memory_block):
82 Constify 'myaddr' parameter.
83 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
84 helper.
85 (monitor_xfer_partial): New function.
86 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
87 hook. Install a to_xfer_partial hook.
88
acd13123
TT
892013-10-09 Tom Tromey <tromey@redhat.com>
90
91 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
92 bfd_get_alt_debug_link_info.
93
40135bb1
JK
942013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 New flag OBJF_NOT_FILENAME.
97 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
98 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
99 allocate_objfile.
100 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
101 symbol_file_add_from_bfd.
102 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
103 allocate_objfile.
104 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
105 NULL.
106 * objfiles.h (OBJF_NOT_FILENAME): New.
107
dc294be5
TT
1082013-10-08 Tom Tromey <tromey@redhat.com>
109
110 * Makefile.in (SFILES): Add build-id.c.
111 (HFILES_NO_SRCDIR): Add build-id.h.
112 * build-id.c: New file, largely from elfread.c. Modified
113 most functions.
114 * build-id.h: New file.
115 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
116 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
117 Search for dwz file using build-id.
118 * elfread.c (build_id_bfd_get, build_id_verify)
119 (build_id_to_debug_filename, find_separate_debug_file): Remove.
120
db230ce3
JB
1212013-10-08 Joel Brobecker <brobecker@adacore.com>
122
123 * ada-lang.c (compare_names_with_case): Renamed from
124 compare_names, adding a new parameter "casing" and its handling.
125 New function documentation.
126 (compare_names): New function, implemented using
127 compare_names_with_case.
128
6501c98a
JB
1292013-10-08 Joel Brobecker <brobecker@adacore.com>
130
131 * ada-lang.c (ada_exception_sal): Remove advance declaration.
132
84a1243b
TT
1332013-10-07 Tom Tromey <tromey@redhat.com>
134
135 * objfiles.c (free_objfile_per_bfd_storage): Delete the
136 demangled_names_hash.
137 (free_objfile): Don't delete the demangled_names_hash.
138 * objfiles.h (struct objfile_per_bfd_storage)
139 <demangled_names_hash>: New field.
140 (struct objfile) <demangled_names_hash>: Move to
141 objfile_per_bfd_storage.
142 * symfile.c (reread_symbols): Don't delete the
143 demangled_names_hash.
144 * symtab.c (create_demangled_names_hash): Update.
145 (symbol_set_names): Update.
146
1da77581
TT
1472013-10-07 Tom Tromey <tromey@redhat.com>
148
149 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
150 needs_relocations>: New fields.
151 (gdb_bfd_requires_relocations): New function.
152 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
153 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
154 the BFD needs relocations applied.
155
46ecd527
PA
1562013-10-07 Pedro Alves <palves@redhat.com>
157
158 PR breakpoints/11568
159 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
160 the thread list" instead of "gone".
161
0c557179
SDJ
1622013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
163
164 * NEWS: Mention new convenience variable $_exitsignal.
165 * corelow.c (core_open): Reset exit convenience variables. Set
166 $_exitsignal to the uncaught signal which generated the corefile.
167 * infrun.c (handle_inferior_event): Reset exit convenience
168 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
169 (clear_exit_convenience_vars): New function.
170 * inferior.h (clear_exit_convenience_vars): New prototype.
171
1cc47d81
YQ
1722013-10-06 Yao Qi <yao@codesourcery.com>
173
174 * varobj.h: Add comments to enum varobj_languages.
175
73869dc2
DE
1762013-10-04 Doug Evans <dje@google.com>
177
178 Add support for DWP file format version 2.
179 * NEWS: Mention support for DWP file format version 2.
180 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
181 union of asection, containing_section. New fields virtual_offset
182 and is_virtual. Change type of readin filed from int to char.
183 (dwo_sections, dwo_file): Tweak comments.
184 (dwp_v2_section_ids): New enum.
185 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
186 str_offsets, types.
187 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
188 All uses updated.
189 (virtual_v2_dwo_sections): New struct.
190 (dwp_hash_table): New fields version, nr_columns. Change type of
191 section_pool field to a union.
192 (dwp_file): New field version.
193 (dwarf2_has_info): Check for virtual sections.
194 (get_containing_section): New function.
195 (get_section_bfd_owner, get_section_bfd_section): Call it.
196 (dwarf2_locate_sections): Update.
197 (dwarf2_section_empty_p): Update.
198 (dwarf2_read_section): Handle virtual sections.
199 (locate_dwz_sections): Update.
200 (create_dwp_hash_table): Document and handle V2 format.
201 (locate_v1_virtual_dwo_sections): Renamed from
202 locate_virtual_dwo_sections and update. All callers updated.
203 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
204 Delete arg htab. Rename arg section_index to unit_index.
205 All callers updated.
206 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
207 All uses updated.
208 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
209 (lookup_dwo_unit_in_dwp): Add V2 support.
210 (dwarf2_locate_dwo_sections): Update.
211 (dwarf2_locate_common_dwp_sections): Renamed from
212 dwarf2_locate_dwp_sections and update. All callers updated.
213 (dwarf2_locate_v2_dwp_sections): New function.
214 (open_and_init_dwp_file): Add V2 support.
215 (read_str_index): New locals str_section, str_offsets_section.
216
9a2c3737
PA
2172013-10-04 Pedro Alves <palves@redhat.com>
218
219 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
220 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
221 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
222 describing comments with references to ptid.h.
223 * common/ptid.h: Remove intro description of constructors,
224 accessors and predicates.
225 (struct ptid): Reformat.
226 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
227 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
228 describing comments.
229
f5371440
JB
2302013-10-04 Joel Brobecker <brobecker@adacore.com>
231
232 * aix-thread.c (sync_threadlists): Add missing ')' in call
233 to ptid_build.
234
793e1c06
JB
2352013-10-04 Joel Brobecker <brobecker@adacore.com>
236
237 * procfs.c (procfs_init_inferior): Fix typo causing the build
238 to fail.
239
26f0edc1
JB
2402013-10-04 Joel Brobecker <brobecker@adacore.com>
241
242 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
243
5713b9b5
JB
2442013-10-04 Joel Brobecker <brobecker@adacore.com>
245
246 * mi/mi-main.c (run_one_inferior): Add function description.
247 Make ARG a pointer to an integer whose value determines whether
248 we should "run" or "start" the program.
249 (mi_cmd_exec_run): Add handling of the "--start" option.
250 Reject all other command-line options.
251 * NEWS: Add entry for "-exec-run"'s new "--start" option.
252
f48ff2a7
YQ
2532013-10-04 Yao Qi <yao@codesourcery.com>
254
255 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
256 (struct notif_client) <pending_event>: Moved
257 to struct remote_notif_state.
258 <id>: New field.
259 (struct remote_notif_state) <pending_event>: New field.
260 (notif_event_xfree): Declare.
261 * remote-notif.c (handle_notification): Adjust.
262 (notif_event_xfree): New function.
263 (do_notif_event_xfree): Call notif_event_xfree.
264 (remote_notif_state_xfree): Call notif_event_xfree to free
265 each element in field pending_event.
266 * remote.c (discard_pending_stop_replies): Remove declaration.
267 (discard_pending_stop_replies_in_queue): Declare.
268 (remote_close): Call discard_pending_stop_replies_in_queue
269 instead of discard_pending_stop_replies.
270 (remote_start_remote): Adjust.
271 (stop_reply_xfree): Call notif_event_xfree.
272 (notif_client_stop): Adjust initialization.
273 (remote_notif_remove_all): Rename it to ...
274 (remove_stop_reply_for_inferior): ... this. Update comments.
275 Don't check INF is NULL.
276 (discard_pending_stop_replies): Return early if notif_state is
277 NULL. Adjust. Don't check INF is NULL.
278 (remote_notif_get_pending_events): Adjust.
279 (discard_pending_stop_replies_in_queue): New function.
280 (remote_wait_ns): Likewise.
281
5965e028
YQ
2822013-10-04 Yao Qi <yao@codesourcery.com>
283
284 * remote-notif.c (DECLARE_QUEUE_P): Remove.
285 (notif_queue): Remove.
286 (remote_notif_process): Add one parameter 'notif_queue'.
287 Update comments. Callers update.
288 (remote_async_get_pending_events_token): Remove.
289 (remote_notif_register_async_event_handler): Remove.
290 (remote_notif_unregister_async_event_handler): Remove.
291 (handle_notification): Add parameter 'notif_queue'. Update
292 comments. Callers update.
293 (notif_xfree): Remove.
294 (remote_notif_state_allocate): New function.
295 (remote_notif_state_xfree): New function.
296 (_initialize_notif): Remove code to allocate queue.
297 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
298 (struct remote_notif_state): New.
299 (handle_notification): Update declaration.
300 (remote_notif_process): Likewise.
301 (remote_notif_register_async_event_handler): Remove.
302 (remote_notif_unregister_async_event_handler): Remove.
303 (remote_notif_state_allocate): Declare.
304 (remote_notif_state_xfree): Declare.
305 * remote.c (struct remote_state) <notif_state>: New field.
306 (remote_close): Don't call
307 remote_notif_unregister_async_event_handler. Call
308 remote_notif_state_xfree.
309 (remote_open_1): Don't call
310 remote_notif_register_async_event_handler. Call
311 remote_notif_state_allocate.
312
5e5ac9a5
YQ
3132013-10-04 Yao Qi <yao@codesourcery.com>
314
315 * varobj.c (create_child_with_value): Remove 'const' from the
316 type of parameter 'name'.
317 (varobj_add_child): Likewise.
318 (install_dynamic_child): Remove 'const' from the type of
319 parameter 'name'.
320 (varobj_add_child): Likewise.
321 (create_child_with_value): Likewise. Update comments. Don't
322 duplicate 'name'.
323 (update_dynamic_varobj_children): Duplicate 'name'
324 and pass it to install_dynamic_child.
325
06ab7b19
PM
3262013-10-03 Phil Muldoon <pmuldoon@redhat.com>
327
328 * python/py-value.c (convert_value_from_python): Move PyInt_Check
329 conversion logic to occur after PyLong_Check. Comment on order
330 change significance.
331 * python/py-arch.c (archpy_disassemble): Comment on order of
332 conversion for integers and longs.
333
8ae377e8
PA
3342013-10-03 Pedro Alves <palves@redhat.com>
335
336 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
337 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
338 functions. Always test for PTRACE_O_TRACESYSGOOD even if
339 PTRACE_O_TRACEFORK is not supported.
340 (linux_test_for_tracesysgood): New function.
341 (linux_test_for_tracefork): New function, factored out from
342 linux_check_ptrace_features, and also don't kill child_pid here.
343
b1328b1b
TG
3442013-10-03 Tristan Gingold <gingold@adacore.com>
345
346 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
347 Remove verbose error reporting. Use detected state to
348 thread_set_state call.
349 (i386_darwin_dr_get): Fix return type. Remove verbose error
350 report.
351 Remove trailing spaces.
352
901461f8
PA
3532013-10-02 Pedro Alves <palves@redhat.com>
354
355 * cp-valprint.c (cp_print_value_fields): Adjust calls to
356 val_print_optimized_out.
357 * jv-valprint.c (java_print_value_fields): Likewise.
358 * p-valprint.c (pascal_object_print_value_fields): Likewise.
359 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
360 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
361 new optimized out value.
362 * findvar.c (address_from_register): Likewise.
363 * frame.c (put_frame_register): Tweak error string to say the
364 register was not saved, rather than optimized out.
365 * infcmd.c (default_print_one_register_info): Adjust call to
366 val_print_optimized_out. Use value_of_register instead of
367 get_frame_register_value.
368 * mi/mi-main.c (output_register): Use value_of_register instead of
369 get_frame_register_value.
370 * valprint.c (valprint_check_validity): Likewise.
371 (val_print_optimized_out): New value parameter. If the value is
372 lval_register, print <not saved> instead.
373 (value_check_printable, val_print_scalar_formatted): Adjust calls
374 to val_print_optimized_out.
375 * valprint.h (val_print_optimized_out): New value parameter.
376 * value.c (struct value) <optimized_out>: Extend comment.
377 (error_value_optimized_out): New function.
378 (require_not_optimized_out): Use it. Use a different string for
379 lval_register values.
380 * value.h (error_value_optimized_out): New declaration.
381 * NEWS: Mention <not saved>.
382
042a84d9
JB
3832013-10-02 Joel Brobecker <brobecker@adacore.com>
384
385 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
386 strcmp to compare two symtab filenames.
387
6b9780fb
JB
3882013-10-02 Joel Brobecker <brobecker@adacore.com>
389
390 * symtab.c (search_symbols_equal): Delete.
391 (sort_search_symbols_remove_dups): Replace call to
392 search_symbols_equal by call to compare_search_syms,
393 adjusting as necessary.
394
751e7549
PM
3952013-10-02 Phil Muldoon <pmuldoon@redhat.com>
396
397 PR python/15579
398
399 * python/python.c: Document gdb.execute command in Python help.
400
1efd7661
PM
4012013-10-02 Phil Muldoon <pmuldoon@redhat.com>
402
403 * python/py-frame.c (frame_info_to_frame_object): Use
404 gdbpy_convert_exception. Clean up Python object on failure.
405
562fc849
PM
4062013-10-02 Phil Muldoon <pmuldoon@redhat.com>
407
408 * python/lib/gdb/command/frame_filters.py
409 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
410 (ShowFrameFilterPriority.invoke): Ditto.
411
d7561cbb
KS
4122013-10-01 Keith Seitz <keiths@redhat.com>
413
414 * linespec.c (struct ls_parser): Make 'saved_arg' const.
415 (parse_linespec): Make 'argptr' const.
416 Remove temporary cast of 'argptr' to const char **.
417 (decode_line_full): Pass const pointer to parse_linespec.
418 (decode_line_1): Likewise.
419 (decode_objc): Make local variable 'new_argptr' const.
420 (find_function_symbols): Remove temporary cast to char *
421 to find_imps.
422 * objc-lang.c (find_imps): Make argument 'method' const.
423 Return const.
424 * objc-lang.h (find_imps): Likewise.
425
4262013-10-01 Keith Seitz <keiths@redhat.com>
427
428 * completer.c (skip_quoted_chars): Make all arguments const.
429 Return const.
430 (skip_quoted): Likewise.
431 * completer.h (skip_quoted_chars): Likewise.
432 (skip_quoted): Likewise.
433 * defs.h (skip_quoted): Remove duplicate declaration.
434 * jv-exp.y: Include completer.h.
435 (yylex): Remove unneccessary cast to char * fro skip_quoted.
436 * p-exp.y: Include completer.h.
437
4382013-10-01 Keith Seitz <keiths@redhat.com>
439
440 * c-exp.y (parse_number): Make first argument const.
441 Make a copy of the input to manipulate.
442 (c_parse_escape): Make first argument const.
443 Make local variable 'tokptr' const.
444 (parse_string_or_char): Make first two arguments const.
445 (macro_original_text): Make const.
446 (lex_one_token): Make local variable 'tokstart' const.
447 Likewise for local variables named 'p'.
448 Cast away const for struct stoken (temporary).
449 * c-lang.h (c_parse_escpae): Make first argument const.
450 * cli/cli-cmds.c (echo_command): Make local variable 'p'
451 const.
452 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
453 var_string case.
454 * f-exp.y (parse_number): Make first argument const.
455 (match_string_literal): Make local variable 'tokstart'
456 const.
457 (yylex): Make local variable 'p' const.
458 Cast away const for struct stoken (temporary).
459 * go-exp.y (parse_number): Make first argument const.
460 (parse_string_or_char): Likewise.
461 Make local variable 'tokstart' const.
462 (lex_one_token): Likewise for numerous locals called 'p'.
463 Cast away const for struct stoken (temporary).
464 * jv-exp.y (parse_number): Make first argument const.
465 Make local variables 'tokstart' and 'tokptr' const.
466 Cast away const for call to skip_quoted (temporary).
467 (yylex): Make local variable 'p' const.
468 Cast away const for struct stoken (temporary).
469 * m2-exp.y (parse_number): Make local variable 'p' const.
470 (yylex): Likewise for 'tokstart'.
471 Cast away const for struct stoken (temporary).
472 Make local variable 'p' const.
473 * macroexp.c (get_character_constant): Pass a const string
474 to c_parse_escape.
475 (get_string_literal): Likewise.
476 (macro_expand_next): Make first argument const.
477 Cast away const for init_shared_buffer.
478 * macroexp.h (macro_expand_next): Make first argument const.
479 * p-exp.y (yylex): Make a local copy of 'lexptr'.
480 Pass a const string to c_parse_escape.
481 Make local variables 'p' and 'namestart' const.
482 * parse.c (lexptr): Make const.
483 (prev_lexptr): Likewise.
484 (find_template_name_end): Return const.
485 Make argument const, too.
486 (parse_exp_in_context): Make first argument const.
487 Remove the entire const_hack.
488 (parse_exp_in_context_1): Make first argument const.
489 * parser-defs.h (find_template_name_end): Return const.
490 Make argument const, too.
491 (lexptr): Make const.
492 (prev_lexptr): Likewise.
493 * utils.c (parse_escape): Make second argument const.
494 * utils.h (parse_escape): Likewise.
495
4962013-10-01 Keith Seitz <keiths@redhat.com>
497
498 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
499 is now const.
500 (block_lookup): Make 'raw_name' and 'name' const.
501 * ada-lex.l (processString): Update for struct stoken.ptr.
502 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
503 (operator_stoken): Likewise.
504 (lex_one_token): Remove temporary cast to char * for
505 'yylval.sval.ptr'.
506 * f-exp.y (yylex): Likewise.
507 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
508 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
509 * go-exp.y (lex_one_token): Remove temporary cast to char * for
510 'yylval.sval.ptr'.
511 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
512 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
513 * linespec.c (struct ls_parser): Make 'stream' const.
514 (find_parameter_list_end): Make argument 'input' and local
515 variable 'p' const.
516 (linespec_lexer_lex_string): Make local variables 'start' and
517 'p' const.
518 Use skip_spaces_const instead of skip_spaces.
519 (linespec_lexer_peek_token): Make local variable 'saved_stream'
520 const.
521 (parse_linespec): Temporarily cast 'argptr' to const for
522 'parser->lexer.stream'.
523 * m2-exp.y (yylex): Remove temporary cast to char * for
524 'yylval.sval.ptr'.
525 * objc-lang.c (add_msglist): Make local variable 'p' const.
526 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
527 (exp : STRING): Make 'sp' const.
528 (parse_number): Make argument 'p' const.
529 * parser-defs.h (struct stoken): Make 'ptr' const.
530
193a8eac
DE
5312013-10-01 Doug Evans <dje@google.com>
532
533 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
534
2213e2be
YQ
5352013-10-01 Yao Qi <yao@codesourcery.com>
536
537 * varobj.c (c_value_of_root): Remove declaration.
538 (cplus_value_of_root, java_value_of_root): Likewise.
539 (ada_value_of_root): Likewise.
540 (struct language_specific) <value_of_root>: Remove.
541 (languages): Update initialization.
542 (check_scope): Move earlier.
543 (c_value_of_root): Move earlier and rename to ...
544 (value_of_root_1): ... this.
545 (value_of_root): Caller update.
546 (cplus_value_of_root, java_value_of_root): Remove.
547 (ada_value_of_root): Remove.
548
c573f273
YQ
5492013-10-01 Yao Qi <yao@codesourcery.com>
550
551 * varobj.c (varobj_format_string): Remove "unknown".
552 (languages): Remove the first element.
553 * varobj.h (enum varobj_languages): Remove vlang_c.
554
56250258
YQ
5552013-10-01 Yao Qi <yao@codesourcery.com>
556
557 * varobj.c (struct language_specific) <language>: Remove.
558 (languages): Update the initialization.
559
29f9ebfa
YQ
5602013-10-01 Yao Qi <yao@codesourcery.com>
561
562 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
563 "solib-target.h". Include "windows-tdep.h".
564 (arm_wince_init_abi): Call windows_init_abi. Remove call to
565 set_solib_ops and set_gdbarch_has_dos_based_file_system.
566 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
567 windows-tdep.o to gdb_target_obs.
568
64870a42
YQ
5692013-10-01 Yao Qi <yao@codesourcery.com>
570
571 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
572 "solib-target.h".
573 (amd64_windows_init_abi): Don't call set_solib_ops and
574 set_gdbarch_iterate_over_objfiles_in_search_order. Call
575 windows_init_abi instead.
576 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
577 "solib-target.h".
578 (i386_cygwin_init_abi): Don't call set_solib_ops,
579 set_gdbarch_has_dos_based_file_system and
580 set_gdbarch_iterate_over_objfiles_in_search_order. Call
581 windows_init_abi instead.
582 * windows-tdep.c: Include "solib.h" and "solib-target.h".
583 (windows_init_abi): New function.
584 (windows_iterate_over_objfiles_in_search_order): Make it
585 static.
586 * windows-tdep.h (windows_init_abi): Declare.
587 (windows_iterate_over_objfiles_in_search_order): Remove
588 declaration.
589
0aebdefa
JB
5902013-10-01 Jerome Guitton <guitton@adacore.com>
591
592 Checked in by Joel Brobecker <brobecker@adacore.com>
593 * system-gdbinit/elinos.py (get_elinos_environment): Return an
594 incomplete dictionnary instead of None in case of missing
595 environment variables.
596 (elinos_init): in case of an incomplete environment, best
597 effort to load system libraries instead of abort.
598
1c8e84b0
JB
5992013-10-01 Joel Brobecker <brobecker@adacore.com>
600
601 * ada-lang.c (ada_has_this_exception_support): Ignore
602 mst_solib_trampoline minimal symbols.
603
61d82a0d
TG
6042013-09-30 Tristan Gingold <gingold@adacore.com>
605
606 * i386-darwin-nat.c (darwin_complete_target): Install methods for
607 hardware watchpoint.
608 (i386_darwin_dr_set): Support 32 and 64 bit states.
609 (i386_darwin_dr_get): Likewise.
610 (i386_darwin_dr_set_control): Make static.
611 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
612 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
613
dfd4cc63
LM
6142013-09-30 Luis Machado <lgustavo@codesourcery.com>
615
616 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
617 Replace TIDGET with ptid_get_lwp.
618 Replace GET_LWP with ptid_get_lwp.
619 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
620 Replace BUILD_THREAD with ptid_build.
621 Replace BUILD_LWP with ptid_build.
622 Replace PIDGET with ptid_get_pid.
623 Replace TIDGET with ptid_get_lwp.
624 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
625 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
626 Replace TIDGET with ptid_get_lwp.
627 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
628 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
629 Replace TIDGET with ptid_get_lwp.
630 Replace GET_LWP with ptid_get_lwp.
631 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
632 * auxv.c: Likewise.
633 * breakpoint.c: Likewise.
634 * common/ptid.c (ptid_is_pid): Condense check for
635 null_ptid and minus_one_ptid.
636 (ptid_lwp_p): New function.
637 (ptid_tid_p): New function.
638 * common/ptid.h: Update comments for accessors.
639 (ptid_lwp_p): New prototype.
640 (ptid_tid_p): New prototype.
641 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
642 * gcore.c: Replace PIDGET with ptid_get_pid.
643 * gdbthread.h: Likewise.
644 * gnu-nat.c: Likewise.
645 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
646 Replace TIDGET with ptid_get_lwp.
647 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
648 * hppanbsd-nat.c: Likewise.
649 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
650 Replace TIDGET with ptid_get_lwp.
651 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
652 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
653 * infcmd.c: Likewise.
654 * inferior.h: Likewise.
655 * inflow.c: Likewise.
656 * infrun.c: Likewise.
657 * linux-fork.c: Likewise.
658 * linux-nat.c: Replace PIDGET with ptid_get_pid.
659 Replace GET_PID with ptid_get_pid.
660 Replace is_lwp with ptid_lwp_p.
661 Replace GET_LWP with ptid_get_lwp.
662 Replace BUILD_LWP with ptid_build.
663
5b4e221c
MF
6642013-09-28 Mike Frysinger <vapier@gentoo.org>
665
666 * common/linux-btrace.c: Move sys/syscall.h out of the
667 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
668 Also check for SYS_perf_event_open before attempting to buid.
669
57d63ce2
DE
6702013-09-27 Doug Evans <dje@google.com>
671
19ac8c2e
DE
672 * dwarf2read.c (dwarf2_section_info): Add comment.
673 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
674 All uses updated.
675 (dwarf2_section_empty_p): Rename arg from "info" to "section".
676 (dwarf2_read_section): Delete unused local "header". Add section
677 name to error message.
678 (create_dwo_in_dwp): Tweak comment.
679 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
680
a32a8923
DE
681 * dwarf2read.c (die_reader_specs): Tweak comment.
682 (get_section_bfd_owner, get_section_bfd_section): New functions.
683 (get_section_name, get_section_file_name): New functions.
684 (get_section_id, get_section_flags): New functions.
685 (*): Use new functions to access section fields.
686
57d63ce2
DE
687 * dwarf2read.c (struct dwo_file): Add/tweak comments.
688 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
689 arg "htab". All callers updated.
690 (create_debug_types_hash_table): Remove redundant copy of
691 abbrev_section.
692 (create_dwo_in_dwp): Tweak comments.
693 (read_str_index): Tweak comment. Record dwarf form name in static
694 local.
695
3736004f
PA
6962013-09-27 Pedro Alves <palves@redhat.com>
697
698 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
699 (remote_filename_p): Add comment.
700 * remote.c (remote_filename_p): Adjust to use
701 REMOTE_SYSROOT_PREFIX.
702 * solib.c (solib_find): When deciding whether we need to add a
703 directory separator, check whether the sysroot is "remote:"
704 instead of checking whether the patch has a drive spec. Add
705 comments.
706
5b5596ff
PA
7072013-09-27 Pedro Alves <palves@redhat.com>
708
709 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
710 Delete fields.
711 (remote_parse_stop_reply): Adjust, setting event->ws.kind
712 directly.
713
b5eef7aa
JK
7142013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
715
716 Fix set debug frame output.
717 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
718 SENTINEL_FRAME entry lower to match enum frame_type order.
719
5b856f36
PM
7202013-09-26 Pierre Muller <muller@sourceware.org>
721
722 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
723 AMD64_R15_REGNUM when a register index is expected.
724 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
725 Substitute in array.
726 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
727 (amd64_push_arguments): Substitute in integer_regnum array.
728
ade7ed9e
DE
7292013-09-25 Doug Evans <dje@google.com>
730
d3e81981
DE
731 * objfiles.c (allocate_objfile): Move comment to better place.
732
8fb8eb5c
DE
733 New option "set debug symfile on".
734 * NEWS: Mention "set debug symfile".
735 * Makefile.in (SFILES): Add symfile-debug.c.
736 (COMMON_OBS): Add symfile-debug.o.
737 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
738 objfile's symbol functions.
739 * objfiles.h (objfile_set_sym_fns): Declare.
740 * symfile-debug.c: New file.
741 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
742 objfile's symbol functions.
743 (reread_symbols): Ditto.
744
c256e171
DE
745 * symfile.h (struct sym_fns): Delete member "sym_flavour".
746 All uses updated.
747 (add_symtab_fns): Update prototype.
748 * symfile.c (sym_fns_ptr): Delete. Replace with ...
749 (registered_sym_fns): ... this.
750 (symtab_fns): Update.
751 (add_symtab_fns): New arg "flavour". All callers updated.
752 (find_sym_fns): Rewrite to use new sym_fns registry.
753
f56ce883
DE
754 * symfile.h (struct sym_fns): Add "objfile" argument to
755 sym_read_linetable. All uses updated.
756
20c681d1
DE
757 * symtab.c (domain_name, search_domain_name): New functions.
758 * symtab.h (domain_name, search_domain_name): Declare.
759
ade7ed9e
DE
760 * symfile.h (struct quick_symbol_functions): Reorg arg list of
761 map_matching_symbols so objfile is first. All uses updated.
762 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
763 * psymtab.c (map_matching_symbols_psymtab): Update signature.
764
7d760051
UW
7652013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
766
767 PR shlibs/8882
768 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
769 link map entries.
770
020f7036
DE
7712013-09-24 Doug Evans <dje@google.com>
772
773 * objfiles.c (free_objfile): Move comment.
774
598402f0
JB
7752013-09-24 Joel Brobecker <brobecker@adacore.com>
776
777 * ada-exp.y (string_to_operator): Delete.
778 (dummy_string_to_ada_operator): Delete.
779
bf4d6c1c
JB
7802013-09-24 Joel Brobecker <brobecker@adacore.com>
781
782 Revert:
783 * i386-tdep.h (enum amd64_reg_class): New, moved here from
784 amd64-tdep.c.
785 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
786 call_dummy_integer_regs, and classify.
787 * amd64-tdep.h (amd64_classify): Add declaration.
788 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
789 (amd64_reg_class): Delete, moved to i386-tdep.h.
790 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
791 Replace call to amd64_classify by call to tdep->classify.
792 (amd64_push_arguments): Get the list of registers to use for
793 passing integer parameters from the gdbarch tdep structure,
794 rather than using a hardcoded one. Replace calls to amd64_classify
795 by calls to tdep->classify.
796 (amd64_push_dummy_call): Get the register number used for
797 the "hidden" argument from tdep->call_dummy_integer_regs.
798 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
799 and tdep->call_dummy_integer_regs. Set tdep->classify.
800
849e9755
JB
8012013-09-24 Joel Brobecker <brobecker@adacore.com>
802
803 Revert:
804 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
805 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
806 where tdep->memory_args_by_pointer is non-zero.
807
c1459fd6
JB
8082013-09-24 Joel Brobecker <brobecker@adacore.com>
809
810 Revert:
811 * i386-tdep.h (struct gdbarch_tdep): Add new field
812 integer_param_regs_saved_in_caller_frame.
813 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
814 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
815
20c2e3e0
JB
8162013-09-24 Joel Brobecker <brobecker@adacore.com>
817
874440b8 818 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
819 (amd64_windows_classify): Delete.
820 (amd64_windows_passed_by_integer_register)
821 (amd64_windows_passed_by_xmm_register)
822 (amd64_windows_passed_by_pointer)
823 (amd64_windows_adjust_args_passed_by_pointer)
824 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
825 (amd64_windows_push_dummy_call): New functions.
826 (amd64_windows_init_abi): Remove setting of
827 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
828 tdep->classify, tdep->memory_args_by_pointer and
829 tdep->integer_param_regs_saved_in_caller_frame.
830 Add call to set_gdbarch_push_dummy_call.
831
82bf32bc
JK
8322013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
835 objfile->original_name.
836
24ba069a
JK
8372013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
838
839 Pass down original filename for objfile.
840 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
841 * elfread.c (elf_symfile_read): Likewise.
842 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
843 longer set ORIGINAL_NAME.
844 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
845 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
846 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
847 symbol_file_add_from_bfd call.
848 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
849 (macho_check_dsym): Add parameter filenamep. Change function comment.
850 Set *filenamep.
851 (macho_symfile_read): New variable dsym_filename. Update
852 macho_check_dsym call. Use it for symbol_file_add_separate.
853 * objfiles.c (allocate_objfile): Add parameter name. New comment for
854 it. Use it for objfile->original_name.
855 (objfile_name): Return OBFD's filename, if available.
856 * objfiles.h (allocate_objfile): Add new parameter name.
857 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
858 * symfile-mem.c (symbol_file_add_from_memory): Update
859 symbol_file_add_from_bfd call.
860 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
861 comment for it.
862 (symbol_file_add_with_addrs): New parameter name, add function comment
863 for it. Remove variable name. Update allocate_objfile call.
864 (symbol_file_add_separate): New parameter name, add function comment
865 for it. Update symbol_file_add_with_addrs call.
866 (symbol_file_add_from_bfd): New parameter name. Update
867 symbol_file_add_with_addrs call.
868 (symbol_file_add): Update symbol_file_add_from_bfd call.
869 (reread_symbols): New variable original_name. Save
870 objfile->original_name by it.
871 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
872 second parameter.
873
4262abfb
JK
8742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 Code cleanup: Add objfile_name accessor function.
877 * ada-lang.c (is_known_support_routine): Use objfile_name.
878 * auto-load.c (source_gdb_script_for_objfile)
879 (auto_load_objfile_script): Likewise.
880 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
881 * dbxread.c (dbx_symfile_read): Likewise.
882 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
883 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
884 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
885 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
886 (lookup_dwp_signatured_type, lookup_dwo_unit)
887 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
888 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
889 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
890 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
891 (dwarf2_record_block_ranges, read_common_block, read_typedef)
892 (read_subrange_type, load_partial_dies, read_partial_die)
893 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
894 (die_containing_type, build_error_marker_type, lookup_die_type)
895 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
896 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
897 (get_DW_AT_signature_type, write_psymtabs_to_index)
898 (save_gdb_index_command): Likewise.
899 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
900 Likewise.
901 * expprint.c (dump_subexp_body_standard): Likewise.
902 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
903 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
904 original_name.
905 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
906 obj_name, use objfile_name for it, use the variable.
907 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
908 Use objfile_name.
909 * machoread.c (macho_symtab_read, macho_check_dsym)
910 (macho_symfile_relocate): Likewise.
911 * maint.c (maintenance_translate_address): Likewise.
912 * minidebug.c (find_separate_debug_file_in_section): Likewise.
913 * minsyms.c (install_minimal_symbols): Likewise.
914 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
915 original_name.
916 (filter_overlapping_sections): Use objfile_name.
917 (objfile_name): New function.
918 * objfiles.h (struct objfile): Rename field name to original_name.
919 (objfile_name): New prototype.
920 * printcmd.c (sym_info, address_info): Use objfile_name.
921 * probe.c (parse_probes, collect_probes, compare_probes)
922 (info_probes_for_ops): Likewise.
923 * progspace.c (clone_program_space): Likewise.
924 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
925 (maintenance_info_psymtabs): Likewise.
926 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
927 (source_section_scripts): Likewise.
928 * python/py-objfile.c (objfpy_get_filename): Likewise.
929 * python/py-progspace.c (pspy_get_filename): Likewise.
930 * solib-aix.c (solib_aix_get_toc_value): Likewise.
931 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
932 * solib.c (solib_read_symbols): Likewise.
933 * stabsread.c (scan_file_globals): Likewise.
934 * stap-probe.c (handle_stap_probe): Likewise.
935 * symfile.c (symbol_file_clear, separate_debug_file_exists)
936 (find_separate_debug_file_by_debuglink): Likewise.
937 (reread_symbols): Likewise. Use the objfile field name renamed to
938 original_name.
939 (allocate_symtab): Use objfile_name.
940 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
941 (dump_objfile, dump_msymbols, dump_symtab_1)
942 (maintenance_print_msymbols, maintenance_print_objfiles)
943 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
944 * target.c (target_translate_tls_address, target_info): Likewise.
945 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
946 objfile_name.
947
4721dc18
JK
9482013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 Code cleanup.
951 * probe.c (parse_probes): Rename variable objfile_name to
952 objfile_namestr.
953
a61d6db8
JK
9542013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 Remove solib-sunos.c.
957 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
958 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
959 * objfiles.c (rt_common_objfile): Remove.
960 (free_objfile): Remove rt_common_objfile comparison.
961 * objfiles.h (rt_common_objfile): Remove.
962 * solib-sunos.c: Remove.
963 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
964
2659903b
JK
9652013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 Remove a.out NetBSD and OpenBSD hosts.
968 * NEWS (Removed native configurations): New.
969 * config/arm/nbsdaout.mh: Remove.
970 * config/i386/nbsdaout.mh: Remove.
971 * config/i386/obsdaout.mh: Remove.
972 * config/m68k/nbsdaout.mh: Remove.
973 * config/sparc/nbsdaout.mh: Remove.
974 * config/vax/nbsdaout.mh: Remove.
975 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
976 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
977 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
978 error.
979 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
980 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
981 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
982
f60e2d5c
TT
9832013-09-23 Tom Tromey <tromey@redhat.com>
984
985 * linespec.c (struct minsym_and_objfile): Remove.
986 (minsym_and_objfile_d): Remove.
987 (struct linespec, struct collect_info, linespec_parse_basic)
988 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
989 (compare_msymbols, find_method, find_function_symbols)
990 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
991 (add_minsym, search_minsyms_for_name): Update.
992
d3eaaf66
AB
9932013-09-23 Andrew Burgess <aburgess@broadcom.com>
994
995 * regcache.c: Add include of valprint.h.
996 (dump_endian_bytes): Delete.
997 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
998
2cc762b5
AB
9992013-09-23 Andrew Burgess <aburgess@broadcom.com>
1000
1001 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1002
96181529
PA
10032013-09-19 Pedro Alves <palves@redhat.com>
1004
1005 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1006 breakpoints.
1007
9b3f3ee6
TS
10082013-09-19 Pedro Alves <palves@redhat.com>
1009 Thomas Schwinge <thomas@codesourcery.com>
1010 Yue Lu <hacklu.newborn@gmail.com>
1011
1012 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1013 Take a gdb_byte pointer instead of a char pointer.
1014
1015 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1016 gnu_xfer_partial helper.
1017 (gnu_xfer_partial): New function.
1018 (gnu_target): Don't install a deprecated_xfer_memory hook.
1019 Install a to_xfer_partial hook.
1020
69150c3d
JK
10212013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 Constification.
1024 * main.c (captured_main): Replace catch_command_errors by
1025 catch_command_errors_const. Twice.
1026 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1027 (symbol_file_add): Make name parameter const.
1028 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1029 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1030 variable name. Change their usage accordingly.
1031 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1032 const.
1033 (symbol_file_add_main): Make args parameter const.
1034
086850b2
UW
10352013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1036 Ulrich Weigand <uweigand@de.ibm.com>
1037
1038 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1039 of c_value member.
1040 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1041
ca08a94c 10422013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1043 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1044
1045 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1046 (gnu_create_inferior)
1047 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1048 (set_sig_thread_cmd): Use the lwpid field of ptids to
1049 store/extract thread ids instead of the tid field.
1050 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1051
e4c6a2c4
AB
10522013-09-18 Andrew Burgess <aburgess@broadcom.com>
1053
1054 * infcmd.c (default_print_one_register_info): Add detection of
1055 optimized out values.
1056 (default_print_registers_info): Switch to using
1057 get_frame_register_value.
1058
58c48e72
MM
10592013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1060
1061 * infrun.c (handle_inferior_event): Check if we know the
1062 function start address before setting a resume breakpoint.
1063
c8d37639
PA
10642013-09-18 Pedro Alves <palves@redhat.com>
1065
1066 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1067 minus_one_ptid instead of looking at the ptid's tid field and
1068 comparing that to -1.
1069
71926e28
AB
10702013-09-18 Andrew Burgess <aburgess@broadcom.com>
1071
1072 * main.h (get_gdb_program_name): Remove extra whitespace.
1073
c88a1531
AB
10742013-09-18 Andrew Burgess <aburgess@broadcom.com>
1075
1076 * main.h (get_gdb_program_name): Add declaration.
1077 * main.c (get_gdb_program_name): Add definition.
1078
4390d890
DE
10792013-09-17 Doug Evans <dje@google.com>
1080
1081 * dwarf2read.c: Move definitions of complaint functions to after
1082 forward declarations of local functions.
1083
49fa26b0
PA
10842013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1085 Pedro Alves <palves@redhat.com>
1086
1087 PR gdb/11568
1088 * breakpoint.c (remove_threaded_breakpoints): New function.
1089 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1090 as thread_exit observer.
1091
08d72866
PA
10922013-09-17 Pedro Alves <palves@redhat.com>
1093
1094 PR gdb/15911
1095 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1096 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1097 * corelow.c (core_open):
1098 * frame.h (print_stack_frame, print_frame_info): New
1099 'set_current_sal' parameter.
1100 * infcmd.c (finish_command, kill_command): Adjust call to
1101 print_stack_frame.
1102 * inferior.c (inferior_command): Likewise.
1103 * infrun.c (normal_stop): Likewise.
1104 * linux-fork.c (linux_fork_context): Likewise.
1105 * record-full.c (record_full_goto_entry, record_full_restore):
1106 Likewise.
1107 * remote-mips.c (common_open): Likewise.
1108 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1109 Use it.
1110 (print_frame_info): New 'set_current_sal' parameter. Set the last
1111 displayed sal depending on the new paremeter instead of looking at
1112 print_what.
1113 (backtrace_command_1, select_and_print_frame, frame_command)
1114 (current_frame_command, up_command, down_command): Adjust call to
1115 print_stack_frame.
1116 * thread.c (print_thread_info, restore_selected_frame)
1117 (do_captured_thread_select): Adjust call to print_stack_frame.
1118 * tracepoint.c (tfind_1): Likewise.
1119 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1120 (mi_cmd_stack_info_frame): Likewise.
1121 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1122 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1123
6bc305f5
SDJ
11242013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1125
1126 * value.c (isvoid_internal_fn): Replace "parameter" with
1127 "argument".
1128
0a7cfe2c
SS
11292013-09-16 Stan Shebs <stan@codesourcery.com>
1130
1131 * README: Update references to writing code for GDB.
1132 * configure.ac (build_warnings): Remove obsolete comment.
1133 * configure: Regenerate.
1134 * gdbarch.sh: Remove references to gdbint.texinfo.
1135 * gdbarch.h: Regenerate.
1136 * gdbtypes.c (objfile_type): Remove comments referencing internals
1137 manual and D10V.
1138
a280dbd1
SDJ
11392013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1140
1141 * NEWS: Mention new convenience function $_isvoid.
1142 * value.c (isvoid_internal_fn): New function.
1143 (_initialize_values): Add new convenience function $_isvoid.
1144
04a83fee
PM
11452013-09-16 Pierre Muller <muller@sourceware.org>
1146
1147 * arm-linux-tdep.c: Add "elf/common.h" header.
1148 Remove AT_HWCAP macro definintion as it is provided in
1149 added include file.
1150 * s390-tdep.c: Remove system header <elf.h>
1151 Add "elf/common.h" header for AT_HWCAP definition.
1152 (s390_core_read_description): Use correct CORE_ADDR
1153 for hwcap local variable used as third parameter
1154 of function target_auxv_search.
1155
88505fac
PM
11562013-09-14 Pierre Muller <muller@sourceware.org>
1157 Tom Tromey <tromey@redhat.com>
1158 Pedro Alves <palves@redhat.com>
1159
1160 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1161 mode if operating system doesn't know O_CLOEXEC.
1162
d3846e71
JK
11632013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1164
1165 Code cleanup.
1166 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1167 inner block.
1168
4ac33720
UW
11692013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1170
1171 * NEWS: Mention TDB support.
1172 * features/s390-tdb.xml: New file.
1173 * features/s390-te-linux64.xml: New file.
1174 * features/s390x-te-linux64.xml: New file.
1175 * features/Makefile (WHICH): Add new tdescs above.
1176 (s390-te-linux64-expedite): Set.
1177 (s390x-te-linux64-expedite): Set.
1178 * features/s390-te-linux64.c: New file (generated).
1179 * features/s390x-te-linux64.c: New file (generated).
1180 * regformats/s390-te-linux64.dat: New file (generated).
1181 * regformats/s390x-te-linux64.dat: New file (generated).
1182 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1183 (HWCAP_S390_TE): Likewise.
1184 (S390_TDB_DWORD0_REGNUM): Likewise.
1185 (S390_TDB_DWORD0_REGNUM): Likewise.
1186 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1187 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1188 (S390_TDB_ATIA_REGNUM): Likewise.
1189 (S390_TDB_R0_REGNUM): Likewise.
1190 (S390_TDB_R1_REGNUM): Likewise.
1191 (S390_TDB_R2_REGNUM): Likewise.
1192 (S390_TDB_R3_REGNUM): Likewise.
1193 (S390_TDB_R4_REGNUM): Likewise.
1194 (S390_TDB_R5_REGNUM): Likewise.
1195 (S390_TDB_R6_REGNUM): Likewise.
1196 (S390_TDB_R7_REGNUM): Likewise.
1197 (S390_TDB_R8_REGNUM): Likewise.
1198 (S390_TDB_R9_REGNUM): Likewise.
1199 (S390_TDB_R10_REGNUM): Likewise.
1200 (S390_TDB_R11_REGNUM): Likewise.
1201 (S390_TDB_R12_REGNUM): Likewise.
1202 (S390_TDB_R13_REGNUM): Likewise.
1203 (S390_TDB_R14_REGNUM): Likewise.
1204 (S390_TDB_R15_REGNUM): Likewise.
1205 (S390_NUM_REGS): Increase.
1206 (S390_IS_TDBREGSET_REGNUM): New macro.
1207 (s390_regmap_tdb): Declare.
1208 (s390_sizeof_tdbregset): Define.
1209 (tdesc_s390_te_linux64): Declare.
1210 (tdesc_s390x_te_linux64): Likewise.
1211 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1212 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1213 (s390_regmap_tdb): New regmap.
1214 (s390_supply_tdb_regset): New function.
1215 (s390_tdb_regset): New regset.
1216 (s390_linux64v2_regset_sections): Add TDB regset to list.
1217 (s390x_linux64v2_regset_sections): Likewise.
1218 (s390_regset_from_core_section): Recognize TDB core note section.
1219 (s390_core_read_description): If HWCAP indicates TE support,
1220 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1221 (s390_gdbarch_init): Handle TDB regset.
1222 (_initialize_s390_tdep): Initialize new tdescs.
1223 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1224 (have_regset_tdb): New variable.
1225 (s390_native_supply): Support register invalidation.
1226 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1227 (check_regset): Treat ENODATA as "regset exists".
1228 (s390_linux_fetch_inferior_registers): Add TDB.
1229 (s390_read_description): Check for TDB existence and select
1230 appropriate tdesc.
1231 * gdbserver/Makefile.in (clean): Add removal of new makefile
1232 targets.
1233 (s390-te-linux64.c): New makefile target.
1234 (s390x-te-linux64.c): Likewise.
1235 * gdbserver/configure.srv (srv_regobj): Append new objects
1236 s390-te-linux64.o and s390x-te-linux64.o.
1237 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1238 s390x-te-linux64.xml, and s390-tdb.xml.
1239 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1240 declaration.
1241 (tdesc_s390_te_linux64): Likewise.
1242 (init_registers_s390x_te_linux64): Likewise.
1243 (tdesc_s390x_te_linux64): Likewise.
1244 (s390_check_regset): Treat ENODATA as "regset exists".
1245 (s390_arch_setup): Add TDB regset support.
1246 (initialize_low_arch): Initialize registers for new tdescs.
1247
2ccd1468
UW
12482013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1249
1250 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1251 (S390_IS_FPREGSET_REGNUM): New macro.
1252 * s390-tdep.c (s390_dwarf_regmap): Make const.
1253 (regnum_is_gpr_full): New function for replacing repeated code.
1254 (s390_pseudo_register_name): Use it.
1255 (s390_pseudo_register_type): Likewise.
1256 (s390_pseudo_register_read): Likewise.
1257 (s390_pseudo_register_write): Likewise.
1258 (s390_unwind_pseudo_register): Likewise.
1259 (s390_regmap_gregset): New format for regmap.
1260 (s390x_regmap_gregset): Likewise.
1261 (s390_regmap_fpregset): Likewise.
1262 (s390_regmap_upper): Likewise.
1263 (s390_regmap_last_break): Likewise.
1264 (s390_regmap_system_call): Likewise.
1265 (s390_supply_regset): Adjust to new regmap format.
1266 (s390_collect_regset): Likewise.
1267 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1268 (s390_native_collect): Likewise.
1269 (supply_gregset): Likewise.
1270 (fill_gregset): Likewise.
1271 (supply_fpregset): Likewise.
1272 (fill_fpregset): Likewise.
1273 (fetch_regset): Likewise.
1274 (store_regset): Likewise.
1275 (s390_linux_fetch_inferior_registers): Likewise.
1276 (s390_linux_fetch_inferior_registers): Likewise.
1277
1aa4cd77
AP
12782013-09-12 Andrew Pinski <apinski@cavium.com>
1279
1280 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1281
d91fab15
UW
12822013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1283
1284 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1285
5a5d8ead
AB
12862013-09-09 Andrew Burgess <aburgess@broadcom.com>
1287
1288 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1289
1385f66c
PA
12902013-09-06 Pedro Alves <palves@redhat.com>
1291
1292 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1293 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1294 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1295 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1296 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1297 gdb_stdlog.
1298
146ec4db
PA
12992013-09-06 Pedro Alves <palves@redhat.com>
1300
1301 * remote-sim.c (dump_mem): Constify buf parameter.
1302 gdbsim_xfer_inferior_memory): Rename to ...
1303 (gdbsim_xfer_memory): ... this. Adjust interface as
1304 target_xfer_partial helper.
1305 (gdbsim_xfer_partial): New function.
1306 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1307 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1308
fcde0081
PA
13092013-09-06 Pedro Alves <palves@redhat.com>
1310
1311 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1312 host_address_to_string, and send debug output to gdb_stdlog.
1313
749c8b38
RW
13142013-09-06 Ricard Wanderlof <ricardw@axis.com>
1315
1316 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1317 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1318 gdb_target_obs for cris target.
1319 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1320 (cris_gdbarch_init): Move calls to
1321 set_gdbarch_fetch_tls_load_module_address and
1322 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1323 Add call to gdbarch_init_osabi.
1324 * cris-linux-tdep.c: New file.
1325 * cris-tdep.h: New file.
1326
43df09d9
AB
13272013-09-06 Andrew Burgess <aburgess@broadcom.com>
1328
1329 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1330 to deprecated_init_ui_hook.
1331
4d09c5b4
AB
13322013-09-06 Andrew Burgess <aburgess@broadcom.com>
1333
1334 * cli/cli-interp.c (_initialize_cli_interp): Add a
1335 command_loop_proc to interp_procs.
1336 * event-top.c (cli_command_loop): Change signature to match
1337 interp_command_loop_ftype.
1338 * event-top.h (cli_command_loop): Same.
1339 * interps.c (interp_new): Require every interpreter to have a
1340 command_loop_proc.
1341 (current_interp_command_loop): Just call the command_loop_proc on
1342 the current interpreter.
1343 * tui/tui-interp.c (_initialize_tui_interp): Add a
1344 command_loop_proc to interp_procs.
1345
8eb3d7b6
RW
13462013-09-06 Ricard Wanderlof <ricardw@axis.com>
1347
1348 * cris-tdep.c (cris_gdbarch_init): Add call to
1349 get_gdbarch_fetch_tls_load_module_address.
1350
18b3c2f5
RW
13512013-09-06 Ricard Wanderlof <ricardw@axis.com>
1352
1353 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1354 (cris_elf_gregset_t): Rename from elf_gregset_t.
1355 (crisv32_elf_gregset_t): Adjust.
1356 (cris_supply_gregset, fetch_core_registers): Adjust.
1357
dc8636ef
RW
13582013-09-06 Ricard Wanderlof <ricardw@axis.com>
1359
1360 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1361
257e6d53
AB
13622013-09-05 Andrew Burgess <aburgess@broadcom.com>
1363
1581d8a7 1364 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1365 references in comments.
1581d8a7 1366 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1367 deprecated_command_loop_hook.
1368 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1369 setup.
1581d8a7 1370 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1371
7c33b57c
PA
13722013-09-05 Pedro Alves <palves@redhat.com>
1373
1374 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1375 local is now int instead of ULONGEST. Print it with %d
1376 instead of paddress.
1377
9f8edbd5
TG
13782013-09-05 Tristan Gingold <gingold@adacore.com>
1379
1380 * MAINTAINERS: Remove avr maintainership.
1381
d5b495b4
PA
13822013-09-05 Pedro Alves <palves@redhat.com>
1383
1384 * findvar.c (value_of_register): Rework in terms of
1385 value_of_register_lazy.
1386
40b91786
MB
13872013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1388
1389 * symfile.c (add_symbol_file_command): Remove trailing
1390 whitespaces and blank line after comment.
1391
6eed1678
PA
13922013-09-05 Pedro Alves <palves@redhat.com>
1393
1394 * tui/tui-regs.c (tui_register_format): Don't look at the
1395 register's name here. Return string representing register
1396 value instead of storing it in the data element.
1397 (tui_get_register): Compare register string representations
1398 instead of register value states and contents.
1399
8eb6bda2
PA
14002013-09-05 Pedro Alves <palves@redhat.com>
1401
1402 PR tui/15933
1403 * tui/tui-regs.c (tui_show_registers): Show registers of the
1404 selected frame, not the current frame.
1405
48b1f08c
RW
14062013-09-05 Ricard Wanderlof <ricardw@axis.com>
1407
1408 * MAINTAINERS (Write After Approval): Add myself to the list.
1409
89e63ee4
DE
14102013-09-04 Doug Evans <dje@google.com>
1411
1412 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1413 (queue_and_load_dwo_tu): New function.
1414 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1415 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1416 Make dependent_cu optional.
1417 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1418 and an older .gdb_index is in use, queue and load all its TUs too.
1419
492c0ab7
JK
14202013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1421
1422 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1423 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1424 variable search_flags.
1425 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1426 (OPF_RETURN_REALPATH): ... here.
1427 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1428 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1429 call. Twice.
1430 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1431 openp call.
1432 * solib.c (solib_find): Likewise. Four times.
1433 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1434 in the function comment and for the realpath_fptr variable.
1435 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1436 (find_and_open_source): Likewise. Twice.
1437 * symfile.c (symfile_bfd_open): Likewise, also twice.
1438
23a44de8
DE
14392013-09-04 Doug Evans <dje@google.com>
1440
1441 * progspace.c (save_current_space_and_thread): Remove unnecessary
1442 call to save_current_inferior.
1443
47061676
AB
14442013-09-04 Andrew Burgess <aburgess@broadcom.com>
1445
1446 * sh64-tdep.c (sh64_do_register): Return after printing message
1447 about unavailable register contents.
1448
41dc8db8
MB
14492013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1450 Pedro Alves <palves@redhat.com>
1451
1452 * symfile.c (add_symbol_file_command): Error out on unknown
1453 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1454 options and collapse into single conditional branch.
1455
07107ca6
LM
14562013-09-03 Luis Machado <lgustavo@codesourcery.com>
1457
a7ea61cf 1458 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1459 detach_fork.
1460 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1461 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1462 * inferior.h (detach_fork): Remove.
1463 * infrun.c (detach_fork): Adjust comment and make it
1464 static.
1465 (follow_fork): Pass detach_fork parameter to
1466 target_follow_fork.
1467 * linux-nat.c (linux_child_follow_fork): New parameter
1468 detach_fork.
1469 * target.c (target_follow_fork): New parameter detach_fork.
1470 Pass detach_fork as parameter and print its value.
1471 * target.h (struct target_ops) <to_follow_fork>: New int
1472 parameter.
1473 (target_follow_fork): New parameter detach_fork.
1474
3bec2768
JB
14752013-09-03 Joel Brobecker <brobecker@adacore.com>
1476
1477 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1478 Replace sec->bfd by sec->the_bfd_section->owner.
1479
c01cbb3d
YQ
14802013-09-03 Yao Qi <yao@codesourcery.com>
1481
1482 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1483 from linux_has_shared_address_space.
1484 (linux_has_shared_address_space): Call linux_is_uclinux.
1485 * linux-tdep.h (linux_is_uclinux): Declare.
1486 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1487 linux_is_uclinux.
1488
7b00db47
YQ
14892013-09-03 Yao Qi <yao@codesourcery.com>
1490
1491 * config/djgpp/fnchange.lst: Remove entry of
1492 i386-interix-nat.c and i386-interix-tdep.c.
1493 * configure.ac: Remove '*-*-interix*'.
1494 * configure: Re-generated.
1495 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1496 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1497 obsolete comments.
1498 * osabi.c (gdb_osabi_names): Remove "Interix".
1499
0f9741f2
YQ
15002013-09-03 Yao Qi <yao@codesourcery.com>
1501
1502 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1503
1e038f67
MM
15042013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1505
1506 * record.h (record_print_flag) <record_print_src_line,
1507 record_print_insn_range>: Rename into ...
1508 (record_print_flag) <record_print_src_line,
1509 record_print_insn_range>: ... this. Update all users.
1510
9e52adf9
PM
15112013-09-02 Pierre Muller <muller@sourceware.org>
1512
1513 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1514 error code.
1515
a2388568
PM
15162013-09-02 Pierre Muller <muller@sourceware.org>
1517
1518 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1519 by use of plongest function.
1520
9058cc3a
TG
15212013-09-02 Tristan Gingold <gingold@adacore.com>
1522
1523 * NEWS: Add entry mentioning support for native Windows x64
1524 SEH data.
1525
1526 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1527 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1528 (struct amd64_windows_frame_cache): New struct.
1529 (amd64_windows_w2gdb_regnum): New global.
1530 (pc_in_range, amd64_windows_frame_decode_epilogue)
1531 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1532 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1533 (amd64_windows_frame_this_id): New functions.
1534 (amd64_windows_frame_unwind): New static global.
1535 (amd64_windows_skip_prologue): New function.
1536 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1537 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1538 with amd64_windows_skip_prologue.
1539
3161820b 15402013-08-30 Joel Brobecker <brobecker@adacore.com>
1541
1542 GDB 7.6.1 released.
1543
02457c76
PA
15442013-08-30 Pedro Alves <palves@redhat.com>
1545
1546 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1547 SRC_AND_LOC.
1548
e0162910
PA
15492013-08-30 Pedro Alves <palves@redhat.com>
1550
1551 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1552 warning text.
1553
6391ce51
PA
15542013-08-30 Pedro Alves <palves@redhat.com>
1555
1556 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1557 Adjust arguments to print_stack_frame.
1558
d1da0587
PA
15592013-08-30 Pedro Alves <palves@redhat.com>
1560
1561 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1562
adfd8245
PA
15632013-08-30 Pedro Alves <palves@redhat.com>
1564
1565 * frame.h (show_and_print_stack_frame): Delete declaration.
1566
96d9056e
PM
15672013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1568
1569 PR python/15461
1570
1571 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1572 (archpy_name): Check for valid architecture.
1573 (archpy_disassemble): Ditto.
1574
11cb8762
JB
15752013-08-29 Joel Brobecker <brobecker@adacore.com>
1576
1577 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1578 instead of "long long" in call to ptrace64.
1579
1af12a7d
AB
15802013-08-29 Andrew Burgess <aburgess@broadcom.com>
1581
1582 * mi/mi-interp.c (mi_command_loop): Change signature to match
1583 interp_command_loop_ftype.
1584 (mi1_command_loop): Remove.
1585 (mi2_command_loop): Remove.
1586 (mi3_command_loop): Remove.
1587 (mi_interpreter_resume): Remove setting of
1588 deprecated_command_loop_hook.
1589 (_initialize_mi_interp): Set mi_command_loop as the command loop
1590 callback.
1591
acc900c2
SA
15922013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1593
1594 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1595 value_type.
1596
548b762d
SA
15972013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1598
1599 * value.c (allocate_value_contents): Make static.
1600 * value.h (allocate_value_contents): Remove prototype.
1601
08039c9e
SA
16022013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1603
1604 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1605 of assembling value via allocate_value_lazy and attribute setter.
1606 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1607 assembling value via allocate_value_lazy and attribute setter.
1608 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1609 assembling value via allocate_value_lazy and attribute setter.
1610
314c7de9
SA
16112013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1612
1613 * value.c (value_from_contents_and_address): Replace allocate_value and
1614 memcpy with value_from_contents.
1615
8f28f522
PM
16162013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1617
1618 * python/py-framefilter.c (py_print_frame): Remove usage of
1619 PyString_AsString. Use python_string_to_host_string instead.
1620 Refactor function to work with a string as a new allocation
1621 instead of a pointer.
1622 (py_print_frame): Ditto.
1623 * python/lib/gdb/frames.py (return_list): Cain iterators together
1624 instead of adding them as a list.
1625 (_sort_list): Call return_list, and remove duplicate code.
1626 (execute_frame_filters): Convert iterator to a list with list().
1627 * python/lib/gdb/command/frame_filters.py
1628 (SetFrameFilterPriority._set_filter_priority): Convert priority
1629 attribute to an integer.
1630 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1631 wrapper function __next__.
1632 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1633 define as "str".
1634
8ee002df
PM
16352013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1636
1637 PR python/15752
8ee002df
PM
1638 * python/py-framefilter.c (apply_frame_filter): Check
1639 gdb_python_initialized. Exit if the Python frame-filter code
1640 cannot be initialized.
1641
af4c453a
PM
16422013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1643
1644 PR cli/15842
af4c453a
PM
1645 * top.c (print_gdb_version): Remove erroneous newline after help
1646 text.
1647
bf8793bb
YQ
16482013-08-29 Yao Qi <yao@codesourcery.com>
1649
1650 * varobj.c (install_dynamic_child): Remove trailing space.
1651 Add one blank line after variable declaration.
1652
1f0c4988
JK
16532013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1654
1655 PR gdb/15415
1656 * corefile.c (get_exec_file): Use exec_filename.
1657 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1658 * exec.c (exec_close): Free EXEC_FILENAME.
1659 (exec_file_attach): New variable canonical_pathname. Use
1660 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1661 EXEC_FILENAME.
1662 * exec.h (exec_filename): New.
1663 * inferior.c (print_inferior, inferior_command): Use
1664 PSPACE_EXEC_FILENAME.
1665 * mi/mi-main.c (print_one_inferior): Likewise.
1666 * progspace.c (clone_program_space, print_program_space): Likewise.
1667 * progspace.h (struct program_space): New field pspace_exec_filename.
1668 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1669 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1670
59ee9f94
WN
16712013-08-28 Will Newton <will.newton@linaro.org>
1672
1673 * common/linux-ptrace.c: Include stdint.h unconditionally.
1674
c8a2a419
JK
16752013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1676
1677 Code cleanup.
1678 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1679
ffa4ac95
YQ
16802013-08-28 Yao Qi <yao@codesourcery.com>
1681 Pedro Alves <palves@redhat.com>
1682
1683 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1684 instead of stdio_fileopen.
1685 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1686 .Call stderr_fileopen instead of stdio_fileopen.
1687 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1688 [__MINGW32__] (stderr_file_fputs): New function.
1689 (stderr_fileopen): New function.
1690 * ui-file.h (stderr_fileopen): Declare.
1691
69d751e3
DE
16922013-08-27 Doug Evans <dje@google.com>
1693
1694 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1695 (struct dwarf2_per_cu_data): Ditto.
1696 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1697 (process_imported_unit_die): Ditto.
1698 (follow_die_sig_1): Simplify assert.
1699
44f38867
PA
17002013-08-27 Pedro Alves <palves@redhat.com>
1701
1702 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1703 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1704 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1705 windows_xfer_memory directly.
1706 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1707
d28d46b5
PA
17082013-08-27 Pedro Alves <palves@redhat.com>
1709
1710 * darwin-nat.c (darwin_xfer_memory): Delete.
1711 (_initialize_darwin_inferior): Don't install a
1712 deprecated_xfer_memory method.
1713
6211c335
YQ
17142013-08-27 Pedro Alves <pedro@codesourcery.com>
1715 Yao Qi <yao@codesourcery.com>
1716
1717 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1718 (parse_no_frames_option): Remove.
1719 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1720 (mi_cmd_stack_list_args): Adjust.
1721 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1722 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1723 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1724 Caller update.
1725 (list_args_or_locals): New parameter 'skip_unavailable'.
1726 Handle it.
1727 * valprint.c (scalar_type_p): Rename to ...
1728 (val_print_scalar_type_p): ... this. Make extern.
1729 (val_print, value_check_printable): Adjust.
1730 * valprint.h (val_print_scalar_type_p): Declare.
1731 * value.c (value_entirely_unavailable): New function.
1732 * value.h (value_entirely_unavailable): Declare.
1733
1734 * NEWS: Mention the new option "--skip-unavailable" to MI
1735 commands '-stack-list-locals', '-stack-list-arguments' and
1736 '-stack-list-variables'.
1737
242f1fd7
YQ
17382013-08-27 Yao Qi <yao@codesourcery.com>
1739
1740 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1741 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1742 options.
1743 * mi/mi-getopt.c (mi_getopt): Remove.
1744 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1745 'error_on_unknown'.
1746 (mi_getopt): Call mi_getopt_1.
1747 (mi_getopt_silent): New.
1748 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1749
260b681b
DE
17502013-08-26 Doug Evans <dje@google.com>
1751
779bd270
DE
1752 PR symtab/15885
1753 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1754 .gdb_index is in use.
1755 * symfile.c (reread_symbols): Reset objfile->sf.
1756
52e260a3
DE
1757 * NEWS: Document "mt print objfiles" now takes optional regexp.
1758 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1759 regexp of objfiles to print.
1760 (_initialize_symmisc): Update doc string for "mt print objfiles".
1761
260b681b
DE
1762 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1763 missing debug info checks.
1764
a85c52f2
UW
17652013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1766 Ulrich Weigand <uweigand@de.ibm.com>
1767
1768 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1769 line tables generated by XLC compiled binaries.
1770
4f00dda3
DE
17712013-08-23 Doug Evans <dje@google.com>
1772
db68bbae
DE
1773 * symmisc.c (dump_symtab): Delete prototype.
1774 (dump_msymbols, dump_objfile): Ditto.
1775 (maintenance_info_symtabs): Mark as dont_repeat.
1776 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1777
4f00dda3
DE
1778 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1779 debugging printf to better location.
1780
23d577b0
PA
17812013-08-23 Pedro Alves <palves@redhat.com>
1782
1783 * target.c (target_read_live_memory): Change type of 'ret' local
1784 to LONGEST.
1785
00d84524
PA
17862013-08-23 Pedro Alves <palves@redhat.com>
1787
1788 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1789 (remote_read_bytes): Change return type to LONGEST, and adjust to
1790 return a target_xfer_error on error.
1791 (remote_xfer_memory): Delete.
1792 (remote_flash_write): Change type of 'ret' local to LONGEST.
1793 (remote_xfer_partial, remote_xfer_partial): Adjust.
1794 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1795
1ed3ee94
PM
17962013-08-23 Pierre Muller <muller@sourceware.org>
1797
1798 ARI fix: Push # directives to start of line.
1799 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1800
9eaabc75
MW
18012013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1802
1803 PR gdb/15501
1804 * breakpoint.c (enable_command, disable_command): Iterate over
1805 all specified breakpoint locations.
1806
101158d9
LM
18072013-08-22 Luis Machado <lgustavo@codesourcery.com>
1808
1809 * common/linux-ptrace.c (linux_fork_to_function): Push #
1810 directives to the start of the line.
1811 (linux_check_ptrace_features): Fix warning message to use
1812 the "_" markup.
1813
96d7229d
LM
18142013-08-22 Luis Machado <lgustavo@codesourcery.com>
1815
1816 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1817 nat/linux-waitpid.h.
1818 (linux-waitpid.o): New object file rule.
1819 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1820 (current_ptrace_options): Moved from linux-nat.c.
1821 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1822 parameters.
1823 (linux_fork_to_function): New function.
1824 (linux_grandchild_function): Likewise.
1825 (linux_child_function): Likewise.
1826 (linux_check_ptrace_features): New function, heavily
1827 based on linux-nat.c:linux_test_for_tracefork.
1828 (linux_enable_event_reporting): New function.
1829 (ptrace_supports_feature): Likewise.
1830 (linux_supports_tracefork): Likewise.
1831 (linux_supports_traceclone): Likewise.
1832 (linux_supports_tracevforkdone): Likewise.
1833 (linux_supports_tracesysgood): Likewise.
1834 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1835 gdbserver/linux-low.c.
1836 (linux_enable_event_reporting): New declaration.
1837 (linux_supports_tracefork): Likewise.
1838 (linux_supports_traceclone): Likewise.
1839 (linux_supports_tracevforkdone): Likewise.
1840 (linux_supports_tracesysgood): Likewise.
1841 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1842 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1843 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1844 * config/arm/linux.mh (NATDEPFILES): Likewise.
1845 * config/i386/linux.mh (NATDEPFILES): Likewise.
1846 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1847 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1848 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1849 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1850 * config/mips/linux.mh (NATDEPFILES): Likewise.
1851 * config/pa/linux.mh (NATDEPFILES): Likewise..
1852 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1853 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1854 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1855 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1856 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1857 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1858 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1859 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1860 ptrace's 4th argument's types.
1861 Check the type of PTRACE_TYPE_ARG4.
1862 * configure: Regenerate.
1863 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1864 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1865 (linux_supports_tracefork_flag): Remove.
1866 (linux_supports_tracesysgood_flag): Likewise.
1867 (linux_supports_tracevforkdone_flag): Likewise.
1868 (current_ptrace_options): Moved to
1869 common/linux-ptrace.c.
1870 (linux_tracefork_child): Remove.
1871 (my_waitpid): Remove.
1872 (linux_test_for_tracefork): Renamed to
1873 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1874 (linux_test_for_tracesysgood): Remove.
1875 (linux_supports_tracesysgood): Remove.
1876 (linux_supports_tracefork): Remove.
1877 (linux_supports_tracevforkdone): Remove.
1878 (linux_enable_tracesysgood): Remove.
1879 (linux_enable_event_reporting): Remove.
1880 (linux_init_ptrace): New function.
1881 (linux_child_post_attach): Call linux_init_ptrace.
1882 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1883 (linux_child_follow_fork): Call linux_supports_tracefork
1884 and linux_supports_tracevforkdone.
1885 (linux_child_insert_fork_catchpoint): Call
1886 linux_supports_tracefork.
1887 (linux_child_insert_vfork_catchpoint): Likewise.
1888 (linux_child_set_syscall_catchpoint): Call
1889 linux_supports_tracesysgood.
1890 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1891 * nat/linux-nat.h: New file.
1892 * nat/linux-waitpid.c: New file.
1893 * nat/linux-waitpid.h: New file.
1894
9f948660
SDJ
18952013-08-22 Samuel Bronson <naesten@gmail.com>
1896
1897 ARM Linux support for `catch syscall'.
1898 * syscalls/arm-linux.py: New file.
1899 * syscalls/arm-linux.xml: Likewise.
1900 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1901 (arm_linux_init_abi): Register the new function and syscall xml file.
1902 * data-directory/Makefile.in: Install the new syscall xml file.
1903 * NEWS: Brag about this.
1904
6be7b56e
PA
19052013-08-22 Pedro Alves <palves@redhat.com>
1906
1907 PR gdb/15871
1908 * corefile.c (target_xfer_memory_error): New function.
1909 (memory_error): Defer EIO to target_memory_error.
1910 (read_memory): Use target_xfer_partial, and handle finer-grained
1911 target xfer errors.
1912 * target.c (target_xfer_error_to_string): New function.
1913 (memory_xfer_partial_1): If memory is known to be
1914 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1915 (target_xfer_partial): Make extern.
1916 * target.h (enum target_xfer_error): New enum.
1917 (target_xfer_error_to_string): Declare function.
1918 (target_xfer_partial): Declare function.
1919 (struct target_ops) <xfer_partial>: Adjust describing comment.
1920
bcbec14e
AM
19212013-08-22 Alan Modra <amodra@gmail.com>
1922
1923 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1924 * configure.tgt: Likewise as targets.
1925
fc474241
DE
19262013-08-20 Doug Evans <dje@google.com>
1927
1928 * buildsym.c (subfile_stack): Move here from buildsym.h.
1929 (pending_macros): Ditto.
1930 (get_macro_table): New function.
1931 (buildsym_init): Initialize subfile_stack.
1932 * coffread.c (type_vector,type_vector_length): Moved here from
1933 buildsym.h.
1934 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1935 (coff_symtab_read): Use it.
1936 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1937 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1938 with call to get_macro_table.
1939 * stabsread.c (type_vector,type_vector_length): Moved here from
1940 buildsym.h.
1941 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1942 * buildsym.h (get_macro_table): Declare.
1943
bec71544
TT
19442013-08-20 Tom Tromey <tromey@redhat.com>
1945
1946 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1947 Update.
1948 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1949
0002ad5f
DE
19502013-08-20 Doug Evans <dje@google.com>
1951
1952 * blockframe.c: Remove #include "psymtab.h".
1953 * cp-support.c: Ditto.
1954 * source.c: Ditto.
1955 * stack.c: Ditto.
1956
df302446
TT
19572013-08-20 Tom Tromey <tromey@redhat.com>
1958
1959 PR python/15816:
1960 * exceptions.h (return_mask): Now an enum.
1961 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1962 enum constants.
1963
df6d5441
TT
19642013-08-20 Tom Tromey <tromey@redhat.com>
1965
1966 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1967 get_objfile_arch.
1968 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1969 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1970 * jit.c (jit_object_close_impl): Update.
1971 * jv-lang.c (get_dynamics_objfile): Update.
1972 * linespec.c (add_minsym): Use get_dynamics_objfile.
1973 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1974 (allocate_objfile): Don't initialize 'gdbarch' field.
1975 (get_objfile_arch): Update.
1976 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1977 moved from...
1978 (struct objfile) <gdbarch>: ... here. Remove.
1979 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1980 get_objfile_arch.
1981 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1982
f5aee5ee
AM
19832013-08-20 Alan Modra <amodra@gmail.com>
1984
1985 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1986 for IBM long double nan and inf.
1987 (floatformat_is_negative, floatformat_classify,
1988 floatformat_mantissa): Similarly.
1989 (floatformat_ieee_single, floatformat_ieee_double,
1990 floatformat_ieee_quad, floatformat_arm_ext,
1991 floatformat_ia64_spill): Delete unused vars.
1992 (_initialize_doublest): Delete unused function.
1993 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1994 little-endian variants of floatformat_ibm_long_double.
1995
33b60d58 19962013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 1997
33b60d58
LM
1998 * Makefile.in (SFILES): Remove common/target-common.c and
1999 add target/waitstatus.c.
2000 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2001 target/resume.h, target/wait.h and target/waitstatus.h.
2002 (COMMON_OBS): Remove target-common.o and add
2003 waitstatus.o.
2004 (target-common.o): Remove.
2005 (waitstatus.o): New target object file.
2006 * common/target-common.c: Move contents to
2007 target/waitstatus.c and remove.
2008 * common/target-common.h: Move contents to other files and
2009 remove.
2010 (enum resume_kind: Move to target/resume.h.
2011 (TARGET_WNOHANG): Move to target/wait.h.
2012 (enum target_waitkind): Move to target/waitstatus.h.
2013 (struct target_waitstatus): Likewise.
2014 * target.h: Do not include target-common.h and
2015 include target/resume.h, target/wait.h and
2016 target/waitstatus.h.
2017 * target/resume.h: New file.
2018 * target/wait.h: New file.
2019 * target/waitstatus.h: New file.
2020 * target/waitstatus.c: New file.
2021
12696c10
PA
20222013-08-19 Pedro Alves <palves@redhat.com>
2023
2024 * linux-nat.c (linux_test_for_tracefork)
2025 (linux_test_for_tracesysgood, linux_child_follow_fork)
2026 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2027 (linux_nat_wait_1): Extend comment.
2028 (linux_async_pipe): Add comment.
2029
ba89f962
KB
20302013-08-15 Kevin Buettner <kevinb@redhat.com>
2031
2032 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2033 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2034 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2035 Update to account for fact that PC is now a pseudo-register.
2036 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2037 cases for RL78_PC_REGNUM.
2038
35ab155d
MB
20392013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2040
2041 PR cli/15841
2042 * top.c (quit_force): Skip writing history file
2043 if input is not from terminal.
2044
0d031856
TT
20452013-08-14 Tom Tromey <tromey@redhat.com>
2046
2047 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2048 resultthreadlist>: New fields.
2049 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2050 (remote_get_threadlist, remote_threadlist_iterator): Use
2051 new fields. Remove static variables.
2052
ee154bee
TT
20532013-08-14 Tom Tromey <tromey@redhat.com>
2054
2055 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2056 remote_watch_data_address>: New fields.
2057 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2058 (process_stop_reply, remote_wait_as)
2059 (remote_check_watch_resources, remote_stopped_data_address): Update.
2060
88b496c3
TT
20612013-08-14 Tom Tromey <tromey@redhat.com>
2062
2063 * remote.c (struct remote_state) <async_client_callback,
2064 async_client_context>: New fields.
2065 (async_client_callback, async_client_context): Remove.
2066 (remote_async_serial_handler, remote_async): Update.
2067
2f65bcb7
TT
20682013-08-14 Tom Tromey <tromey@redhat.com>
2069
2070 * remote.c (sizeof_pkt): Remove.
2071 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2072
b80fafe3
TT
20732013-08-14 Tom Tromey <tromey@redhat.com>
2074
2075 * remote.c (struct remote_state) <use_threadinfo_query,
2076 use_threadextra_query>: New fields.
2077 (remote_threads_info, remote_threads_extra_info)
2078 (remote_open_1): Update.
2079
8e88304f
TT
20802013-08-14 Tom Tromey <tromey@redhat.com>
2081
2082 * remote.c (struct remote_state) <finished_object,
2083 finished_annex, finished_offset>: New fields.
2084 (remote_read_qxfer): Use remote_state fields; remove static
2085 variables.
2086
280ceea3
TT
20872013-08-14 Tom Tromey <tromey@redhat.com>
2088
2089 * remote.c (struct remote_state) <last_sent_step>:
2090 New field.
2091 (last_sent_step): Remove.
2092 (remote_resume, remote_wait_as): Update.
2093
b73be471
TT
20942013-08-14 Tom Tromey <tromey@redhat.com>
2095
2096 * remote.c (struct remote_state) <last_sent_signal>:
2097 New field.
2098 (last_sent_signal): Remove.
2099 (new_remote_state, remote_resume, remote_wait_as): Update.
2100
5e4a05c4
TT
21012013-08-14 Tom Tromey <tromey@redhat.com>
2102
2103 * remote.c (struct remote_state) <last_program_signals_packet>:
2104 New field.
2105 (last_program_signals_packet): Remove.
2106 (remote_program_signals, remote_open_1): Update.
2107
747dc59d
TT
21082013-08-14 Tom Tromey <tromey@redhat.com>
2109
2110 * remote.c (struct remote_state) <last_pass_packet>:
2111 New field.
2112 (last_pass_packet): Remove.
2113 (remote_pass_signals, remote_open_1): Update.
2114
262e1174
TT
21152013-08-14 Tom Tromey <tromey@redhat.com>
2116
2117 * remote.c (struct remote_state) <remote_traceframe_number>:
2118 New field.
2119 (remote_traceframe_number): Remove.
2120 (new_remote_state, remote_open_1, set_remote_traceframe)
2121 (remote_trace_find): Update.
2122
47f8a51d
TT
21232013-08-14 Tom Tromey <tromey@redhat.com>
2124
2125 * remote.c (struct remote_state) <general_thread, continue_thread>:
2126 New fields.
2127 (general_thread, continue_thread): Remove.
2128 (record_currthread, set_thread, set_general_process)
2129 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2130 (extended_remote_mourn_1): Update.
2131
5d93a237
TT
21322013-08-14 Tom Tromey <tromey@redhat.com>
2133
2134 * remote.c (struct remote_state) <remote_desc>: New field.
2135 (remote_desc): Remove.
2136 (remote_threads_info, remote_threads_extra_info, remote_close)
2137 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2138 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2139 (remote_hostio_send_command, remote_file_put, remote_file_get)
2140 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2141 (remote_async, remote_new_objfile, set_range_stepping): Update.
2142
cf792862
TT
21432013-08-14 Tom Tromey <tromey@redhat.com>
2144
2145 * remote.c (remote_state): Now a pointer.
2146 (get_remote_state_raw): Update.
2147 (new_remote_state): New function.
2148 (_initialize_remote): Use new_remote_state.
2149
dc473cfb
TT
21502013-08-14 Tom Tromey <tromey@redhat.com>
2151
2152 * remote.c (remote_protocol_features): Now const.
2153
85ec6ce7
TT
21542013-08-14 Tom Tromey <tromey@redhat.com>
2155
2156 * remote.c (crc32_table, crc32): Remove.
2157 (remote_verify_memory): Use xcrc32.
2158
73033f12
SDJ
21592013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2160
2161 * value.h (create_internalvar_type_lazy): Adjust prototype
2162 declaration.
2163
5c30d39a
AB
21642013-08-13 Andrew Burgess <aburgess@broadcom.com>
2165
2166 * common/format.c (parse_format_string): Don't allow '#' flag for
2167 pointer arguments in format string.
2168
1a66331e
PM
21692013-08-13 Pierre Muller <muller@sourceware.org>
2170
fde605f3 2171 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2172 if rl_get_screen_size did not return useful values.
2173
b4013987
AA
21742013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2175
2176 PR breakpoints/15117
2177 * linespec.c (linespec_parse_basic): Check for convenience
2178 variable or history value while parsing.
2179
959b6a66
SDJ
21802013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2181
2182 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2183 AVR.
2184 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2185 different signals between the generic Linux kernel implementation
2186 and AVR's.
2187 (avr_linux_gdb_signal_from_target): Delete.
2188 (avr_linux_gdb_signal_to_target): Delete.
2189 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2190
24a55014
DE
21912013-08-09 Doug Evans <dje@google.com>
2192
2193 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2194 entries.
2195
eb14d406
SDJ
21962013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2197
2198 * linux-tdep.c: Define enum with generic signal numbers.
2199 (linux_gdb_signal_from_target): New function.
2200 (linux_gdb_signal_to_target): Likewise.
2201 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2202 methods to the functions above.
2203 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2204 (linux_gdb_signal_to_target): Likewise.
2205 * alpha-linux-tdep.c: Define new enum with signals different
2206 from generic Linux kernel.
2207 (alpha_linux_gdb_signal_from_target): New function.
2208 (alpha_linux_gdb_signal_to_target): Likewise.
2209 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2210 with the functions mentioned above.
2211 * avr-tdep.c: Define enum with differences between Linux kernel
2212 and AVR signals.
2213 (avr_linux_gdb_signal_from_target): New function.
2214 (avr_linux_gdb_signal_to_target): Likewise.
2215 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2216 the functions mentioned above.
2217 * sparc-linux-tdep.c: Define enum with differences between SPARC
2218 and generic Linux kernel signal numbers.
2219 (sparc32_linux_gdb_signal_from_target): New function.
2220 (sparc32_linux_gdb_signal_to_target): Likewise.
2221 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2222 to the functions defined above.
2223 * xtensa-linux-tdep.c: Define enum with differences between
2224 Xtensa and Linux kernel generic signals.
2225 (xtensa_linux_gdb_signal_from_target): New function.
2226 (xtensa_linux_gdb_signal_to_target): Likewise.
2227 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2228 to the functions defined above.
2229 * mips-linux-tdep.c: Define enum with differences between
2230 signals in MIPS and Linux kernel generic ones.
2231 (mips_gdb_signal_to_target): New function.
2232 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2233 only different signals from the Linux kernel generic.
2234 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2235 the functions defined above.
2236 * mips-linux-tdep.h (enum mips_signals): Remove.
2237
156d08c8
PA
22382013-08-09 Pedro Alves <palves@redhat.com>
2239
2240 * avr-tdep.c (XMALLOC): Delete macro.
2241 * cli/cli-dump.c (XMALLOC): Delete macro.
2242
db229724
PA
22432013-08-09 Pedro Alves <palves@redhat.com>
2244
2245 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2246 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2247 (fopen_with_cleanup, add_dump_command): Make static.
2248 * cli/cli-dump.h: Delete file.
2249 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2250 cli/cli-dump.h.
2251
3f12a589
PA
22522013-08-09 Pedro Alves <palves@redhat.com>
2253
2254 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2255 error message.
2256
c718be47
PA
22572013-08-09 Pedro Alves <palves@redhat.com>
2258
156d08c8 2259 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2260 error message.
2261
1e351ed1
PA
22622013-08-09 Pedro Alves <palves@redhat.com>
2263
2264 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2265 (gcore_command): Use tilde_expand here, and when showing the
2266 filename to the user, show the expanded version.
2267
1ed8d800
YQ
22682013-08-09 Yao Qi <yao@codesourcery.com>
2269
2270 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2271 'entryval' is set.
2272
47ecca85
PA
22732013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2274
2275 * gcore.c (create_gcore_bfd): Use tilde_expand.
2276
82a0a75f
YQ
22772013-08-08 Yao Qi <yao@codesourcery.com>
2278
2279 * frame.h (read_frame_local): Declare.
2280 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2281 read_frame_local.
2282 * stack.c (read_frame_local): New.
2283
5c4aa40b
YQ
22842013-08-08 Yao Qi <yao@codesourcery.com>
2285
2286 * mi/mi-cmd-stack.c: Update comments to function
2287 list_args_or_locals.
2288
b93601f3
TT
22892013-08-07 Tom Tromey <tromey@redhat.com>
2290
2291 PR symtab/15028:
2292 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2293 (process_psymtab_comp_unit_reader): Use it.
2294 (process_psymtab_comp_unit): Update. Add "pretend_language"
2295 argument.
2296 (dwarf2_build_psymtabs_hard): Update.
2297 (scan_partial_symbols): Pass CU's language to
2298 process_psymtab_comp_unit.
2299
fa760f46
TT
23002013-08-07 Tom Tromey <tromey@redhat.com>
2301
2302 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2303 (dwarf2_gdb_index_functions): Update.
2304 * psymtab.c (find_symbol_file_from_partial): Remove.
2305 (psym_functions): Update.
2306 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2307 Remove.
2308
bf6d8a91
TT
23092013-08-07 Tom Tromey <tromey@redhat.com>
2310
2311 * symfile.c (set_initial_language): Look up "main" symbol
2312 and use its language.
2313 * symtab.c (find_main_filename): Remove.
2314 * symtab.h (find_main_filename): Remove.
2315
f9125b6c
TT
23162013-08-07 Tom Tromey <tromey@redhat.com>
2317
2318 * dwarf2read.c (recursively_compute_inclusions): Add
2319 "immediate_parent" argument. Set symtab's "user" field
2320 if not set.
2321 (compute_symtab_includes): Update.
2322
fdbb204b
TT
23232013-08-07 Tom Tromey <tromey@redhat.com>
2324
2325 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2326 when adding label symbols.
2327
49de1690
UW
23282013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2329 Ulrich Weigand <uweigand@de.ibm.com>
2330
2331 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2332 * configure.host (powerpc64-*-aix*): Likewise.
2333
b08ee99f
UW
23342013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2335 Ulrich Weigand <uweigand@de.ibm.com>
2336
2337 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2338 is defined.
2339 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2340 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2341 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2342 * configure.ac: Check for ptrace64.
2343 * configure, config.in: Regenerate.
2344
fecf803e
UW
23452013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2346 Ulrich Weigand <uweigand@de.ibm.com>
2347
2348 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2349 Call ptrace64 instead of ptrace if defined.
2350 Add macro addr_ptr to take care of ptrace address argument.
2351 (pdc_read_regs): Likewise.
2352 (pdc_write_regs): Likewise.
2353 (aix_thread_resume): Likewise.
2354 (fetch_regs_kernel_thread): Likewise.
2355 (store_regs_kernel_thread): Likewise.
2356
3bb5e4a8
AB
23572013-08-07 Anton Blanchard <anton@samba.org>
2358
2359 * MAINTAINERS: Add myself to Write After Approval.
2360
12070676
TT
23612013-08-05 Tom Tromey <tromey@redhat.com>
2362
2363 * aix-thread.c (_initialize_aix_thread): Use
2364 complete_target_initialization.
2365 * bsd-uthread.c (_initialize_bsd_uthread): Use
2366 complete_target_initialization.
2367 * dec-thread.c (_initialize_dec_thread): Use
2368 complete_target_initialization.
2369 * ravenscar-thread.c (_initialize_ravenscar): Use
2370 complete_target_initialization.
2371 * sol-thread.c (_initialize_sol_thread): Use
2372 complete_target_initialization.
2373 * spu-multiarch.c (_initialize_spu_multiarch): Use
2374 complete_target_initialization.
2375
7c7b6655
TT
23762013-08-05 Tom Tromey <tromey@redhat.com>
2377
2378 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2379 * ada-lang.c (ada_lookup_simple_minsym): Return
2380 bound_minimal_symbol.
2381 * ada-lang.h (ada_lookup_simple_minsym): Update.
2382 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2383 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2384 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2385 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2386 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2387 * minsyms.c (msymbol_objfile): Remove.
2388 (lookup_minimal_symbol_internal): New function, from
2389 lookup_minimal_symbol.
2390 (lookup_minimal_symbol): Rewrite using
2391 lookup_minimal_symbol_internal.
2392 (lookup_bound_minimal_symbol): New function.
2393 * minsyms.h (msymbol_objfile): Remove.
2394 (lookup_bound_minimal_symbol): Declare.
2395 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2396 * parse.c (write_exp_msymbol): Change parameter to a
2397 bound_minimal_symbol.
2398 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2399 * parser-defs.h (write_exp_msymbol): Update.
2400 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2401 * symfile.c (simple_read_overlay_table): Use
2402 lookup_bound_minimal_symbol.
2403 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2404 (search_symbols): Likewise.
2405 (print_msymbol_info): Take a bound_minimal_symbol argument.
2406 (symtab_symbol_info, rbreak_command): Update.
2407 * symtab.h (struct symbol_search) <msymbol>: Change type
2408 to bound_minimal_symbol.
2409 * valops.c (find_function_in_inferior): Use
2410 lookup_bound_minimal_symbol.
2411 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2412
934b9bac
JK
24132013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2414
2415 Code cleanup.
2416 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2417 to ...
2418 (async_cleanup_sigint_signal_handler): ... this.
2419 (initialize_sigint_signal_handler): Remove declaration.
2420 (handle_remote_sigint): Rename the declaration to ...
2421 (async_handle_remote_sigint): ... this.
2422 (handle_remote_sigint_twice): Rename the declaration to ...
2423 (async_handle_remote_sigint_twice): ... this.
2424 (async_remote_interrupt, async_remote_interrupt_twice)
2425 (remote_interrupt): Remove the declarations.
2426 (remote_interrupt_twice): Rename the declaration ...
2427 (sync_remote_interrupt_twice): ... this.
2428 (sigint_remote_twice_token): Rename the variable to ...
2429 (async_sigint_remote_twice_token): ... this.
2430 (sigint_remote_token): Rename the variable to ...
2431 (async_sigint_remote_token): ... this.
2432 (initialize_sigint_signal_handler): Rename the function to ...
2433 (async_initialize_sigint_signal_handler): ... this. Update the name
2434 inside.
2435 (handle_remote_sigint): Rename the function to ...
2436 (async_handle_remote_sigint): ... this. Update the names inside.
2437 (handle_remote_sigint_twice): Rename the function to ...
2438 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2439 (cleanup_sigint_signal_handler): Rename the function to ...
2440 (async_cleanup_sigint_signal_handler): ... this.
2441 (remote_interrupt): Rename the function to ...
2442 (sync_remote_interrupt): this. Update the names inside.
2443 (remote_interrupt_twice): Rename the function to ...
2444 (sync_remote_interrupt_twice): this. Update the names inside.
2445 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2446 (_initialize_remote): Update the names inside.
2447
3a1115a0
TT
24482013-08-02 Tom Tromey <tromey@redhat.com>
2449
2450 PR symtab/15719:
2451 * breakpoint.c (update_watchpoint, watchpoint_check)
2452 (watch_command_1): Update.
2453 * eval.c (fetch_subexp_value): Add "preserve_errors"
2454 parameter.
2455 * ppc-linux-nat.c (check_condition): Update.
2456 * value.h (fetch_subexp_value): Update.
2457
58b19776
AB
24582013-08-02 Andrew Burgess <aburgess@broadcom.com>
2459
2460 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2461 add_file_handler.
2462
ec94af83
DE
24632013-08-01 Doug Evans <dje@google.com>
2464
7ee85ab1
DE
2465 PR symtab/15691
2466 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2467 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2468 Add assert of sig_entry->dwo_unit == NULL.
2469 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2470 had already been read.
2471 (read_signatured_type): Set per_cu.tu_read.
2472
b846d303
DE
2473 PR symtab/15695
2474 * valops.c (value_struct_elt): Add missing call to check_typedef.
2475 (value_find_oload_method_list): Ditto.
2476
b52109bc
DE
2477 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2478 effectively, struct symbol_search **.
2479 (make_cleanup_free_search_symbols): Change arg to struct
2480 symbol_search **. All callers updated.
2481 (compare_search_syms): Compare symtab file name and block as well.
2482 (search_symbols_equal): New function.
2483 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2484 New args new_head, new_tail. Result is now void. Remove dups after
2485 sorting the symbols.
2486 (search_symbols): Sort all found symbols once, after all have been
2487 found, and remove duplicates. Simplify cleanup tracking of result.
2488 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2489
ec94af83
DE
2490 Further workarounds for binutils/15021.
2491 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2492 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2493 Watch for duplicate symtabs coming from type units.
2494 (compute_symtab_includes): Update call to
2495 recursively_compute_inclusions. Build vector of included symtabs
2496 instead of per_cus.
2497 * symtab.h (symtab_ptr): New typedef.
2498 (DEF_VEC_P (symtab_ptr)): New VEC type.
2499 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2500 instead.
2501
b2ae85cf
AB
25022013-08-01 Andrew Burgess <aburgess@broadcom.com>
2503
2504 * cli/cli-script.c (script_from_file): Remove use of
2505 error_pre_print.
2506 * main.c (captured_main): Remove use of error_pre_print and
2507 quit_pre_print.
2508 * utils.c (error_pre_print, quit_pre_print): Remove.
2509 * utils.h (error_pre_print, quit_pre_print): Likewise.
2510
645eab03
YQ
25112013-08-01 Yao Qi <yao@codesourcery.com>
2512
2513 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2514 with mi_getopt.
2515 (mi_cmd_stack_list_variables): Likewise.
2516
16f92dd4
AB
25172013-07-31 Andrew Burgess <aburgess@broadcom.com>
2518
2519 * exceptions.c (deprecated_throw_reason): Remove.
2520 * exceptions.h (deprecated_throw_reason): Remove.
2521
13f78033
AB
25222013-07-31 Andrew Burgess <aburgess@broadcom.com>
2523
2524 * remote-mips.c (mips_error): Replace use of
2525 deprecated_throw_reason with throw_verror. Use the error message
2526 passed to mips_error as the error message for throw_verror.
2527
039e3c22
AB
25282013-07-31 Andrew Burgess <aburgess@broadcom.com>
2529
2530 * monitor.c (monitor_interrupt_query): Replace use of
2531 deprecated_throw_reason with quit.
2532 * nto-procfs.c (interrupt_query): Likewise.
2533 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2534 * remote-mips.c (mips_kill): Likewise.
2535 * remote.c (interrupt_query): Likewise.
2536
8150913b
AB
25372013-07-31 Andrew Burgess <aburgess@broadcom.com>
2538
2539 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2540 with call to fatal.
2541
de74e63a
YQ
25422013-07-31 Pedro Alves <pedro@codesourcery.com>
2543 Yao Qi <yao@codesourcery.com>
2544
2545 * tracepoint.c (trace_dump_command): Select the current frame.
2546
247f5c4f
DE
25472013-07-30 Doug Evans <dje@google.com>
2548
2549 * dwarf2read.c (process_queue): Add type signature to debug output.
2550
11b4b7cc
AB
25512013-07-30 Andrew Burgess <aburgess@broadcom.com>
2552
2553 * value.c (value_fetch_lazy): Mark optimized out values as such
2554 rather than raising an error.
2555
b0c54aa5
AB
25562013-07-30 Andrew Burgess <aburgess@broadcom.com>
2557
2558 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2559 before checking which bits of the parent, not the child, value are
2560 valid.
2561
97c85fc6
MB
25622013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2563
2564 PR gdb/15715
2565 * top.c: Include "filenames.h".
2566 (set_history_filename): New function.
2567 (init_main): Install it as set hook of the "set history filename"
2568 command.
2569
ff39bb5e
SA
25702013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2571
2572 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2573 attribute parameter.
2574 (dwarf2_const_value_data): Constify struct attribute parameter.
2575 (dwarf2_const_value): Constify struct attribute parameter.
2576 (dwarf2_const_value_attr): Constify struct attribute parameter.
2577 (lookup_die_type): Constify struct attribute parameter.
2578 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2579 (follow_die_ref_or_sig): Constify struct attribute parameter.
2580 (follow_die_ref): Constify struct attribute parameter.
2581 (follow_die_sig): Constify struct attribute parameter.
2582 (get_DW_AT_signature_type): Constify struct attribute parameter.
2583 (get_type_unit_group): Constify struct attribute parameter.
2584 (fill_in_loclist_baton): Constify struct attribute parameter.
2585 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2586 (type_unit_group): Constify struct attribute parameter.
2587
6e5a29e1
SA
25882013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2589
2590 * dwarf2read.c (attr_form_is_block): Make argument const.
2591 (attr_form_is_section_offset): Make argument const.
2592 (attr_form_is_constant): Make argument const.
2593 (attr_form_is_ref): Make argument const.
2594
7771576e
SA
25952013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2596
2597 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2598 All uses updated.
2599 (attr_form_is_ref): Moved below attr_form_is_constant.
2600
a94e8645
DE
26012013-07-29 Doug Evans <dje@google.com>
2602
bb5291d0
DE
2603 * main.c (captured_command_loop): Tweak comment.
2604
b5419e49
DE
2605 * target.c (target_async_permitted_1): Fix comment.
2606
b2d23133
DE
2607 * symtab.c (iterate_over_some_symtabs): Add comment.
2608
a94e8645
DE
2609 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2610
7a60ad40
YQ
26112013-07-27 Yao Qi <yao@codesourcery.com>
2612
2613 * NEWS: Mention that GDBserver now supports hardware
2614 watchpoints on the MIPS GNU/Linux target.
2615
aaee2056
YQ
26162013-07-27 Yao Qi <yao@codesourcery.com>
2617
2618 * Makefile.in (HFILES_NO_SRCDIR): Add
2619 common/mips-linux-watch.h.
2620 (mips-linux-watch.o): New rule.
2621 * common/mips-linux-watch.c: New.
2622 * common/mips-linux-watch.h: New.
2623 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2624 * mips-linux-nat.c: Include mips-linux-watch.h.
2625 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2626 to common/mips-linux-watch.h.
2627 (MAX_DEBUG_REGISTER): Likewise.
2628 (enum pt_watch_style): Likewise.
2629 (struct mips32_watch_regs): Likewise.
2630 (struct mips64_watch_regs): Likewise.
2631 (struct pt_watch_regs): Likewise.
2632 (struct mips_watchpoint): Likewise.
2633 (mips_linux_watch_get_irw_mask): Move to
2634 common/mips-linux-watch.c.
2635 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2636 (mips_linux_watch_get_watchlo): Likewise.
2637 (mips_linux_watch_set_watchlo): Likewise.
2638 (mips_linux_watch_get_watchhi): Likewise.
2639 (mips_linux_watch_set_watchhi): Likewise.
2640 (mips_linux_read_watch_registers): Likewise.
2641 (mips_linux_watch_type_to_irw): Likewise.
2642 (mips_linux_stopped_data_address, fill_mask): Likewise.
2643 (mips_linux_watch_try_one_watch): Likewise.
2644 (mips_linux_watch_populate_regs): Likewise.
2645
b3436450
YQ
26462013-07-27 Yao Qi <yao@codesourcery.com>
2647
2648 * mips-linux-nat.c (get_irw_mask): Rename to ...
2649 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2650 'set' to 'n'. Update function comment. All callers changed.
2651 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2652 function comment. All callers changed.
2653 (get_num_valid): Rename to ...
2654 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2655 'set' to 'n'. Update function comment. All callers changed.
2656 (get_watchlo): Rename to ...
2657 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2658 'set' to 'n'. Update function comment. All callers changed.
2659 (set_watchlo): Rename to ...
2660 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2661 'set' to 'n'. Update function comment. All callers changed.
2662 (get_watchhi): Rename to ...
2663 (mips_linux_watch_get_watchhi): ... this. Update function
2664 comment. All callers changed.
2665 (set_watchhi): Rename to ...
2666 (mips_linux_watch_set_watchhi): ... this. Update function
2667 comment. All callers changed.
2668 (mips_linux_read_watch_registers): Update function comment.
2669 Add new parameters 'lwpid', 'watch_readback', and
2670 'watch_readback_valid'. Update.
2671 (type_to_irw): Rename to ...
2672 (mips_linux_watch_type_to_irw): ... this. Update function
2673 comment. All callers changed.
2674 (fill_mask): Update function comment.
2675 (try_one_watch): Rename to ...
2676 (mips_linux_watch_try_one_watch): ... this. Change the type
2677 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2678 (populate_regs_from_watches): Rename to ...
2679 (mips_linux_watch_populate_regs): ... this. Add parameter
2680 'current_watches'. All callers changed.
2681
9be14b81
YQ
26822013-07-27 Yao Qi <yao@codesourcery.com>
2683
2684 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2685 the code.
2686 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2687 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2688 (struct pt_watch_regs): Likewise.
2689 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2690 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2691 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2692 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2693 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2694
de6f69ad
YQ
26952013-07-27 Yao Qi <yao@codesourcery.com>
2696
2697 * breakpoint.h: Include break-common.h.
2698 (enum target_hw_bp_type): Move to ...
2699 * common/break-common.h: ... here. New.
2700
6f64ef53
PA
27012013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2702
2703 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2704 process group regardless of having tty on stdin.
2705
6107e809
DE
27062013-07-25 Doug Evans <dje@google.com>
2707
2708 * linux-fork.h (detach_fork): Delete.
2709
7fdc1521
TT
27102013-07-25 Tom Tromey <tromey@redhat.com>
2711
2712 PR remote/15256, PR remote/15266:
2713 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2714 * monitor.c (monitor_detach): Use unpush_target.
2715 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2716 * remote-mips.c (mips_detach): Use unpush_target. Don't
2717 call mips_close.
2718 * remote-sim.c (gdbsim_detach): Use unpush_target.
2719 * target.c (pop_target): Remove.
2720 (pop_all_targets_above): Don't call target_close.
2721 (target_close): Assert that the target is unpushed.
2722 * target.h (pop_target): Don't declare.
2723 * tracepoint.c (tfile_open): Use unpush_target.
2724
c22a2b88
TT
27252013-07-25 Tom Tromey <tromey@redhat.com>
2726
2727 * linux-thread-db.c (init_thread_db_ops): Call
2728 complete_target_initialization.
2729 (_initialize_thread_db): Don't call add_target.
2730 * target.c (complete_target_initialization): New function.
2731 (add_target_with_completer): Call it.
2732 * target.h (complete_target_initialization): Declare.
2733
cbb6aada
MK
27342013-07-25 Mark Kettenis <kettenis@gnu.org>
2735
2736 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2737 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2738 (HPPANBSD_SIZEOF_GREGS): New define.
2739 (hppaobsd_supply_gregset): Handle additional registers.
2740 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2741 we provide more registers now.
2742 (hppabsd_supply_gregset): Supply additional registers.
2743 (hppabsd_collect_gregset): Collect additional registers.
2744
17767988
MK
27452013-07-25 Mark Kettenis <kettenis@gnu.org>
2746
2747 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2748 (hppabsd_dwarf2_frame_init_reg): New function.
2749 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2750
fdc8aae8
AB
27512013-07-25 Andrew Burgess <aburgess@broadcom.com>
2752
2753 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2754 'z' format code. Remove error for optimized out values, standard
2755 code will handle these fine.
2756
6fbe845e
AB
27572013-07-25 Andrew Burgess <aburgess@broadcom.com>
2758
2759 * NEWS: Mention new 'z' formatter.
2760 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2761 (_initialize_printcmd): Mention 'z' formatter in help text of the
2762 'x' command.
2763
3373342d
MR
27642013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2765
2766 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2767 formatting.
2768
25f9533e
SDJ
27692013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2770
2771 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2772 interface can evaluate arguments. Fallback to the old mode if it
2773 cannot.
2774 (create_exception_master_breakpoint): Likewise.
2775 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2776 (struct sym_probe_fns elf_probe_fns): Export function above to the
2777 probe interface.
2778 * probe.c (can_evaluate_probe_arguments): New function.
2779 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2780 function pointer.
2781 (can_evaluate_probe_arguments): New function prototype.
2782 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2783 probe interface can evaluate arguments. Fallback to the old mode
2784 if it cannot.
2785 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2786 interface can evaluate arguments. Warning the user if it cannot.
2787 (stap_can_evaluate_probe_arguments): New function.
2788 (struct probe_ops stap_probe_ops): Export function above to the
2789 probe interface.
2790 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2791 New function pointer.
2792
3360c0bf
LM
27932013-07-24 Luis Machado <lgustavo@codesourcery.com>
2794
2795 * Makefile.in (SFILES): Add common/target-common.c.
2796 Add common/target-common.h to headers.
2797 (COMMON_OBS): Add target-common.o.
2798 (target-common.o): New target.
2799 * linux-nat.h (resume_kind): Move to common/target-common.h.
2800 * target.c (target_waitstatus_to_string): Move to
2801 common/target-common.c.
2802 * target.h: Include target-common.h.
2803 (target_waitkind): Move to common/target-common.h.
2804 (target_waitstatus): Likewise.
2805 (TARGET_WNOHANG): Likewise.
2806 * common/target-common.c: New file.
2807 * common/target-common.h: New file.
2808
6656a72d
DE
28092013-07-24 Doug Evans <dje@google.com>
2810
2811 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2812 a warning.
2813
6df81a63
YQ
28142013-07-23 Yao Qi <yao@codesourcery.com>
2815
2816 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2817 parameter 'gdbarch'.
2818 (i386_stack_tramp_frame_sniffer): Caller update.
2819 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2820 parameter 'gdbarch' and 'target'.
2821 (i386_linux_core_read_description): Caller update.
2822 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2823 Likewise.
2824 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2825 declaration.
2826
365156ad
TT
28272013-07-23 Tom Tromey <tromey@redhat.com>
2828
2829 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2830 2013-07-22.
2831
046ac79f
JK
28322013-07-22 Doug Evans <dje@google.com>
2833
2834 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2835 * exec.c (exec_close): Update call to remove_target_sections.
2836 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2837 * solib.c (update_solib_list): Ditto.
2838 (reload_shared_libraries_1): Ditto.
2839 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2840 * target.h (struct target_section): Rename key to owner.
2841 All uses updated.
046ac79f 2842
29b2cc46
TT
28432013-07-22 Tom Tromey <tromey@redhat.com>
2844
2845 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2846
d1160018
TT
28472013-07-22 Tom Tromey <tromey@redhat.com>
2848
2849 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2850 Simplify cleanup handling.
2851
2f324bf6
TT
28522013-07-22 Tom Tromey <tromey@redhat.com>
2853
2854 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2855 on all return paths.
2856
e23b9d6e
UW
28572013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2858
2859 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2860 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2861 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2862
1cf55f60
PM
28632013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2864
2865 * top.c (print_gdb_version): Add help, apropos description and
2866 url to online documentation.
2867
fa876972
HZ
28682013-07-19 Hui Zhu <hui@codesourcery.com>
2869
2870 PR gdb/15692
2871 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2872
1527aea8
YQ
28732013-07-19 Yao Qi <yao@codesourcery.com>
2874
2875 * target.c (update_current_target): Change the default action
2876 of 'to_traceframe_info' from tcomplain to return_zero.
2877 * target.h (struct target_ops) <to_traceframe_info>: Add more
2878 comments.
2879 * valops.c (read_value_memory): Call
2880 traceframe_available_memory unconditionally.
2881
886f230e
YQ
28822013-07-18 Yao Qi <yao@codesourcery.com>
2883
2884 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2885 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2886 symbol without prefix. If found, set its type to
2887 'mst_solib_trampoline'.
2888
16419bae
DE
28892013-07-17 Doug Evans <dje@google.com>
2890
e7045703
DE
2891 * NEWS: Mention "set print raw frame-arguments".
2892 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2893 * stack.c (print_raw_frame_arguments): New static global.
2894 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2895 (_initialize_stack): New command "set/show print raw frame-arguments".
2896 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2897 (set_print_raw, show_print_raw): New functions.
2898 (_initialize_valprint): New prefix command "set/show print raw".
2899 * valprint.h (value_print_options): Improve comments.
2900
453e48a5
DE
2901 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2902 of all *list variables.
2903
16419bae
DE
2904 * gdbcmd.h (togglelist): Delete.
2905 * cli/cli-cmds.c (togglelist): Delete.
2906 (init_cmd_lists): Update.
2907 * cli/cli-cmds.h (togglelist): Delete.
2908
626f2d1c
TT
29092013-07-17 Tom Tromey <tromey@redhat.com>
2910
2911 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2912 dwarf2_per_objfile.
2913
57e6060e
DE
29142013-07-16 Doug Evans <dje@google.com>
2915
2916 * nto-tdep.c (nto_relocate_section_addresses): Update,
2917 target_section.bfd deleted.
2918 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2919 * s390-tdep.c (s390_load): Ditto.
2920 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2921
5ea5559b
AB
29222013-07-16 Andrew Burgess <aburgess@broadcom.com>
2923
2924 * common/format.c (parse_format_string): Add checks for NULL
2925 character before calling strchr.
2926
2b2848e2
DE
29272013-07-16 Doug Evans <dje@google.com>
2928
2c571006
DE
2929 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2930 temp_pathname argument.
2931 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2932 when opening the file fails.
2933
2b2848e2
DE
2934 * target.h (struct target_section): Delete member bfd.
2935 All users updated to use the_bfd_section->owner instead.
2936 * exec.c (add_to_section_table): Assert bfd is expected value.
2937 Remove initialization of target_section.bfd.
2938 (remove_target_sections): Update.
2939 (section_table_available_memory): Update.
2940 (section_table_xfer_memory_partial): Update.
2941 (print_section_info): Update.
2942 (exec_set_section_address): Update.
2943 * record-full.c (record_full_core_xfer_partial): Update.
2944 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2945 * solib-target.c (solib_target_relocate_section_addresses): Update.
2946 * symfile.c (build_section_addr_info_from_section_table): Update.
2947 * target.c (memory_xfer_live_readonly_partial): Update.
2948 (memory_xfer_partial_1): Update.
2949
926bf92d
UW
29502013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2951
2952 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2953 now available for embedded (BookE) and server (BookS) processors,
2954 correct mentions of 'booke' and adjust comments accordingly in order to
2955 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2956 (have_ptrace_booke_interface): Rename function and variable
2957 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2958 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2959 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2960 'hwdebug_point_cmp'. Update all uses.
2961 (booke_find_thread_points_by_tid): Rename function
2962 'booke_find_thread_points_by_tid' to
2963 'hwdebug_find_thread_points_by_tid'. Update all uses.
2964 (booke_insert_point): Rename function 'booke_insert_point' to
2965 'hwdebug_insert_point'. Update all uses.
2966 (booke_remove_point): Rename function 'booke_remove_point' to
2967 'hwdebug_remove_point'. Update all uses.
2968
d929bc19
MR
29692013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2970
2971 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2972 numbers with enum values.
2973
054e8d9e
AA
29742013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2975
2976 PR threads/13217
2977 * thread.c (thread_apply_all_command): Check for valid threads
2978 and thread count.
2979 (thread_array_cleanup): New struct.
2980 (set_thread_refcount): New function.
2981
cf006359
AB
29822013-07-11 Andrew Burgess <aburgess@broadcom.com>
2983
2984 * infcmd.c (default_print_one_register_info): Reuse function
2985 print_hex_chars.
2986
94e36acc
TT
29872013-07-10 Tom Tromey <tromey@redhat.com>
2988
2989 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2990 (ada-exp.o): New target.
2991
915dd369
SDJ
29922013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2993
2994 * mt-tdep.c (mt_registers_info): Call
2995 get_no_prettyformat_print_options instead of
2996 get_raw_print_options (regression by last patch from Doug
2997 Evans).
2998
eca07816
JB
29992013-07-09 Pedro Alves <palves@redhat.com>
3000
3001 Checked in by Joel Brobecker <brobecker@adacore.com>.
3002 * ada-lang.c (coerce_unspec_val_to_type): Use
3003 value_optimized_out_const.
3004 * value.c (value_optimized_out_const): New function.
3005 * value.h (value_optimized_out_const): New declaration.
3006
2a998fc0
DE
30072013-07-09 Doug Evans <dje@google.com>
3008
3009 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3010 Enum values rename as well. All uses updated.
3011 * valprint.h (value_print_options): Rename member pretty to
3012 pretty format. Rename member prettyprint_arrays to
3013 prettyformat_arrays. Rename member prettyprint_structs to
3014 prettyformat_structs. All uses updated.
3015 (get_no_prettyformat_print_options): Renamed from
3016 get_raw_print_options.
3017 * valprint.c (get_no_prettyformat_print_options): Renamed from
3018 get_raw_print_options. All callers updated.
3019 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3020 All callers updated.
3021 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3022 All callers updated.
3023 (_initialize_valprint): Improve help text for "set print pretty" and
3024 "set print arrays".
3025
466c1fca
AB
30262013-07-09 Andrew Burgess <aburgess@broadcom.com>
3027
3028 * value.c (value_bits_valid): Revert previous change, and change
3029 by Pedro on 2013-07-04, due to regressions in
3030 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3031
ad0f0303
AB
30322013-07-08 Andrew Burgess <aburgess@broadcom.com>
3033 Pedro Alves <palves@redhat.com>
3034
3035 * value.c (value_bits_valid): If the value is not lval_computed
3036 or has no check validity handler then the answer is the
3037 optimized_out flag, otherwise defer to the handler.
3038
b187bec1
EZ
30392013-07-06 Eli Zaretskii <eliz@gnu.org>
3040
48d1d6f5
EZ
3041 * top.c (print_gdb_configuration): Explain in output of
3042 --configuration what does "relocatable" mean.
3043
b187bec1
EZ
3044 * main.c (print_gdb_help): Regroup options in the --help text.
3045 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3046 the relevant discussions.
3047
52d361e1
YQ
30482013-07-06 Yao Qi <yao@codesourcery.com>
3049
3050 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3051 Remove parameter 'lsal'.
3052 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3053 to inner block. Caller update.
3054 (base_breakpoint_create_breakpoints_sal): Update.
3055 (bkpt_create_breakpoints_sal): Likewise.
3056 (tracepoint_create_breakpoints_sal): Likewise.
3057 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3058 element 0 of vector 'canonical->sals'.
3059
e1ec1b42
LM
30602013-07-05 Luis Machado <lgustavo@codesourcery.com>
3061
3062 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3063 register number instead of the pseudo register one.
3064 (rs6000_dwarf2_reg_to_regnum): Likewise.
3065
7195e6f0
PA
30662013-07-04 Pedro Alves <palves@redhat.com>
3067
3068 * findvar.c (value_of_register): Use allocate_optimized_out_value
3069 if the register has been optimized out, instead of
3070 set_value_optimized_out.
3071 * frame-unwind.c (frame_unwind_got_optimized): Use
3072 allocate_optimized_out_value.
3073
58722cac
PA
30742013-07-04 Pedro Alves <palves@redhat.com>
3075
3076 * value.c (value_bits_valid): If the value is not lval_computed,
3077 or doesn't have a check_validity hook, assume the value is entirely
3078 valid.
3079
691a26f5
AB
30802013-07-04 Andrew Burgess <aburgess@broadcom.com>
3081
3082 * stack.c (read_frame_arg): No longer fetch lazy values.
3083 * value.c (value_optimized_out): If the value is not already
3084 marked optimized out, and is lazy then fetch it.
3085 (value_primitive_field): Move optimized out check to later in the
3086 function, after we have loaded any lazy values.
3087 (value_fetch_lazy): Use optimized out flag directly rather than
3088 calling optimized_out method.
3089
a58e2656
AB
30902013-07-04 Andrew Burgess <aburgess@broadcom.com>
3091
3092 * valops.c: Don't include "user-regs.h".
3093 (value_fetch_lazy): Moved to value.c.
3094 * value.c: Include "user-regs.h".
3095 (value_fetch_lazy): Moved from valops.c.
3096
bd885420
YQ
30972013-07-04 Yao Qi <yao@codesourcery.com>
3098
3099 Revert:
3100 2013-06-27 Yao Qi <yao@codesourcery.com>
3101
3102 * common/create-version.sh: Update comments. Handle the case
3103 that TARGET_ALIAS is empty.
3104
17ef446e
PA
31052013-07-03 Pedro Alves <palves@redhat.com>
3106
3107 * Makefile.in (config.status): Depend on development.sh.
3108 (aclocal_m4_deps): Add libmcheck.m4.
3109 * acinclude.m4: Include libmcheck.m4.
3110 * configure.ac: Source development.sh instead of setting
3111 'development' here. --enable-libmcheck/--disable-libmcheck code
3112 factored out to GDB_AC_LIBMCHECK. Run it.
3113 * development.sh: New file.
3114 * libmcheck.m4: New file.
3115 * configure: Regenerate.
3116
ac6dd50f
TT
31172013-07-02 Tom Tromey <tromey@redhat.com>
3118
3119 * contrib/ari/update-web-ari.sh: Update for version.in change.
3120
bd1df410
TT
31212013-07-02 Tom Tromey <tromey@redhat.com>
3122
3123 * common/ptid.h: Comment fixes.
3124
4db1a1dc
TT
31252013-07-01 Tom Tromey <tromey@redhat.com>
3126
3127 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3128 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3129 (dwarf2_read_index, create_all_comp_units): Update.
3130
dd9aa048
TT
31312013-07-01 Tom Tromey <tromey@redhat.com>
3132
3133 * configure.ac (build_warnings): Add -Wold-style-definition.
3134 * configure: Rebuild.
3135 * machoread.c (_initialize_machoread): Use "(void)".
3136 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3137 use "(void)".
3138
44d100c3
TT
31392013-07-01 Tom Tromey <tromey@redhat.com>
3140
3141 * configure.ac (build_warnings): Add -Wold-style-declaration.
3142 * configure: Rebuild.
3143 * dsrec.c (make_srec): Use "static const", not "const static".
3144 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3145 not "const static".
3146 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3147 Use "static const", not "const static".
3148 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3149 not "const static".
3150 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3151 not "const static".
3152 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3153 not "const static".
3154 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3155 not "const static".
3156 (v850_dbtrap_breakpoint_from_pc): Likewise.
3157 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3158 not "const static".
3159
2945b807
TT
31602013-07-01 Tom Tromey <tromey@redhat.com>
3161
3162 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3163 * configure: Rebuild.
3164
d8d2a3ee
PA
31652013-07-01 Pedro Alves <palves@redhat.com>
3166
3167 * defs.h: Include "pathmax.h".
3168 * utils.c: Don't include sys/param.h.
3169 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3170 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3171 instead of MAXPATHLEN.
3172 * solib-sunos.c: Don't include sys/param.h.
3173 * xcoffread.c: Don't include sys/param.h.
3174 * bsd-kvm.c: Don't include sys/param.h.
3175 * darwin-nat.c: Don't include sys/param.h.
3176 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3177 * darwin-nat-info.c: Don't include sys/param.h.
3178 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3179 MAXPATHLEN.
3180 * i386obsd-nat.c: Don't include sys/param.h.
3181 * inf-child.c: Don't include sys/param.h.
3182 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3183 * linux-fork.c: Don't include sys/param.h.
3184 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3185 * linux-nat.c: Don't include sys/param.h.
3186 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3187 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3188 * m68klinux-nat.c: Don't include sys/param.h.
3189 * nbsd-nat.c: Don't include sys/param.h.
3190 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3191 * ppc-linux-nat.c: Don't include sys/param.h.
3192 * rs6000-nat.c: Don't include sys/param.h.
3193 * spu-linux-nat.c. Don't include sys/param.h.
3194 * windows-nat.c: Don't include sys/param.h.
3195 * xtensa-linux-nat.c: Don't include sys/param.h.
3196 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3197
38ec2207
PA
31982013-07-01 Pedro Alves <palves@redhat.com>
3199
3200 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3201 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3202 * gnulib/aclocal.m4: Regenerate.
3203 * gnulib/config.in: Regenerate.
3204 * gnulib/configure: Regenerate.
3205 * gnulib/import/pathmax.h: New file.
3206 * gnulib/import/Makefile.am: Regenerate.
3207 * gnulib/import/Makefile.in: Regenerate.
3208 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3209 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3210 * gnulib/import/m4/pathmax.m4: New file.
3211
e655c1a2
PA
32122013-07-01 Pedro Alves <palves@redhat.com>
3213
3214 * configure.ac (GDBINIT): Define, depending on host.
3215 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3216 * top.c (PATH_MAX): Delete fallback definition.
3217 (GDBINIT_FILENAME): Delete.
3218 (gdbinit): Reimplement as const char array set to the GDBINIT
3219 string constant.
3220 * top.h (gdbinit): Make const.
3221 * configure, config.in: Regenerate.
3222
50dd9793
PA
32232013-07-01 Pedro Alves <palves@redhat.com>
3224
3225 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3226 * cli/cli-cmds.h (source_script): Likewise.
3227 * exceptions.c (catch_command_errors_const): New function.
3228 * exceptions.h (catch_command_errors_const): Declare.
3229 * main.c (get_init_files): Make parameters const, and adjust.
3230 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3231 'local_gdbinit' locals const. Adjust to use
3232 catch_command_errors_const.
3233 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3234 'local_gdbinit' locals const.
3235
bc7dea8d
PA
32362013-07-01 Pedro Alves <palves@redhat.com>
3237
3238 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3239 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3240 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3241 <unistd.h>.
3242
8839a007
PA
32432013-07-01 Pedro Alves <palves@redhat.com>
3244
3245 Import the "unistd" gnulib module.
3246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3247 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3248 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3249 import/m4/unistd_h.m4.
3250 * gnulib/aclocal.m4: Renenerate.
3251 * gnulib/config.in: Renenerate.
3252 * gnulib/configure: Renenerate.
3253 * gnulib/import/Makefile.am: Renenerate.
3254 * gnulib/import/Makefile.in: Renenerate.
3255 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3256 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3257 * gnulib/import/m4/off_t.m4: New file.
3258 * gnulib/import/m4/ssize_t.m4: New file.
3259 * gnulib/import/m4/sys_types_h.m4: New file.
3260 * gnulib/import/m4/unistd_h.m4: New file.
3261 * gnulib/import/sys_types.in.h: New file.
3262 * gnulib/import/unistd.c: New file.
3263 * gnulib/import/unistd.in.h: New file.
3264
8c0da261
PA
32652013-07-01 Pedro Alves <palves@redhat.com>
3266
3267 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3268 defined instead of checking HAVE_UNISTD_H.
3269
3574124b
PA
32702013-07-01 Pedro Alves <palves@redhat.com>
3271
3272 Reimport gnulib from scratch.
3273 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3274 import/m4/onceonly.m4.
3275 * gnulib/aclocal.m4: Renegerate.
3276 * gnulib/config.in: Renegerate.
3277 * gnulib/configure: Renegerate.
3278 * gnulib/import/Makefile.in: Renegerate.
3279 * gnulib/import/extra/update-copyright: Renegerate.
3280 * gnulib/import/m4/onceonly.m4: Delete.
3281
702dc4fd
PA
32822013-07-01 Pedro Alves <palves@redhat.com>
3283
3284 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3285
47e1ce27
JK
32862013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3287
3288 Code cleanup.
3289 * remote.c (async_remote_interrupt_twice): Make it static.
3290 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3291
e82839d4
SDJ
32922013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3293
3294 * ia64-linux-tdep.c: Include <ctype.h>.
3295 (ia64_linux_stap_is_single_operand): New function.
3296 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3297
d6c2da54
TT
32982013-06-28 Tom Tromey <tromey@redhat.com>
3299
3300 * Makefile.in (version.c): Use version.in, not
3301 common/version.in.
3302 * common/create-version.sh: Likewise.
3303 * common/version.in: Move...
3304 * version.in: ...here.
3305
74da6f00
PA
33062013-06-28 Pedro Alves <palves@redhat.com>
3307
3308 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3309 here.
3310 * utils.h (pagination_enabled): Declare.
3311
d32dc48e
PA
33122013-06-28 Pedro Alves <palves@redhat.com>
3313
3314 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3315 Move higher up in file.
3316
0edd9e3b
TT
33172013-06-28 Tom Tromey <tromey@redhat.com>
3318
3319 * tracepoint.c (deprecated_readline_begin_hook)
3320 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3321 declare.
3322
4eb59108
PA
33232013-06-28 Pedro Alves <palves@redhat.com>
3324
3325 PR tui/14880
3326 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3327 checking if they're available.
3328 * value.c (value_available_contents_eq): Change comment.
3329 * value.h (value_available_contents_eq): Expand comment.
3330
97b17156
TT
33312013-06-27 Tom Tromey <tromey@redhat.com>
3332
3333 * target.c (find_run_target): Remove.
3334 * target.h (find_run_target): Remove.
3335
6a3bfc5c
TT
33362013-06-27 Tom Tromey <tromey@redhat.com>
3337
3338 * corelow.c (core_gdbarch): Now static.
3339
c9ef825d
TT
33402013-06-27 Tom Tromey <tromey@redhat.com>
3341
3342 * target.c (target_struct_index): Remove.
3343
e5823f1c
PA
33442013-06-27 Pedro Alves <palves@redhat.com>
3345
3346 * infrun.c: Remove comment describing the 'stepping over runtime
3347 loader dynamic symbol resolution code' mechanism; moved to
3348 gdbint.texinfo.
3349
97f8dd09
PA
33502013-06-27 Pedro Alves <palves@redhat.com>
3351
3352 * exceptions.c (catch_command_errors): Remove spurious space.
3353 * exceptions.h (catch_command_errors): Second parameter is "arg",
3354 not "command".
3355
02b1871e
YQ
33562013-06-27 Yao Qi <yao@codesourcery.com>
3357
3358 * common/create-version.sh: Update comments. Handle the case
3359 that TARGET_ALIAS is empty.
3360
bb1b1cf1
PA
33612013-06-26 Pedro Alves <palves@redhat.com>
3362
3363 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3364 comment.
3365
7b624e71
PA
33662013-06-26 Pedro Alves <palves@redhat.com>
3367
3368 * infrun.c: Update comments on stepping over runtime loader
3369 dynamic symbol resolution code.
3370
74e5a346
SDJ
33712013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3372
3373 * ax-gdb.h (union exp_element): Forward declare.
3374 * parser-defs.h: Include expression.h.
3375
a2fb2cee
MR
33762013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3377
3378 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3379
cdba14e0
DK
33802013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3381
3382 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3383
f30aa5af
DK
33842013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3385
3386 Fix trace-status to output proper start-time and stop-time.
3387 * tracepoint.c (trace_status_command): Fix type of printf arg to
3388 prevent improper type conversion.
3389 (trace_status_mi): Likewise.
3390
1aee363c
MR
33912013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3392
3393 * mips-tdep.c (mips_next_pc): Fix a typo.
3394
3356937a
MR
33952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3396
3397 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3398
dc673c81
YQ
33992013-06-26 Pedro Alves <pedro@codesourcery.com>
3400 Yao Qi <yao@codesourcery.com>
3401
3402 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3403 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3404 * mi/mi-main.c (print_variable_or_computed): New function.
3405 (mi_cmd_trace_frame_collected): New function.
3406 * tracepoint.c (find_trace_state_variable_by_number): New.
3407 (struct traceframe_info): Move to tracepoint.h
3408 (struct collection_list): Likewise.
3409 (do_collect_symbol): Include locals and arguments in the
3410 collected variables list.
3411 (clear_collection_list): Clear wholly collected variables list
3412 and computed variables list.
3413 (append_exp): New function.
3414 (encode_actions_1): Include variables in the wholly
3415 collected variables list. Include memory ranges and
3416 full-fledged expressions in the computed expressions list.
3417 (encode_actions): Move some code to ...
3418 Return the cleanup chain.
3419 (encode_actions_rsp): ... here. New function.
3420 (get_traceframe_location, get_traceframe_info): Remove static.
3421 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3422 (struct collection_list): Moved from tracepoint.c. Add two
3423 new fields 'wholly_collected' and 'computed'.
3424 (find_trace_state_variable_by_number): Declare.
3425 (encode_actions): Adjust declaration.
3426 (encode_actions_rsp): Declare.
3427 (get_traceframe_info, get_traceframe_location): Declare.
3428
3429 * NEWS: Mention new MI command -trace-frame-collected.
3430
28a93511
YQ
34312013-06-26 Pedro Alves <pedro@codesourcery.com>
3432 Yao Qi <yao@codesourcery.com>
3433
3434 * ctf.c (ctf_traceframe_info): Push trace state variables
3435 present in the trace data into the traceframe info object.
3436 * breakpoint.c (DEF_VEC_I): Remove.
3437 * common/filestuff.c (DEF_VEC_I): Likewise.
3438 * dwarf2loc.c (DEF_VEC_I): Likewise.
3439 * mi/mi-main.c (DEF_VEC_I): Likewise.
3440 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3441 * features/traceframe-info.dtd: Add tvar element and its
3442 attributes.
3443 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3444 (build_traceframe_info): Push trace state variables present in
3445 the trace data into the traceframe info object.
3446 (traceframe_info_start_tvar): New function.
3447 (tvar_attributes): New.
3448 (traceframe_info_children): Add "tvar" element.
3449 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3450
3451 * NEWS: Mention the change in GDB and GDBserver.
3452
ddacd3c8
YQ
34532013-06-26 Pedro Alves <pedro@codesourcery.com>
3454 Yao Qi <yao@codesourcery.com>
3455
3456 * tracepoint.c (trace_dump_command): Move code to ...
3457 (get_traceframe_location): ... here. New.
3458
05796b35
YQ
34592013-06-26 Pedro Alves <pedro@codesourcery.com>
3460 Yao Qi <yao@codesourcery.com>
3461
3462 * tracepoint.c (trace_dump_command): GDB emits an error
3463 instead of a warning when a traceframe is not selected.
3464
cbfa3b61
YQ
34652013-06-26 Pedro Alves <pedro@codesourcery.com>
3466 Yao Qi <yao@codesourcery.com>
3467
3468 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3469 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3470 in collection_list.
3471 (do_clear_collection_list, init_collection_list): New.
3472 (encode_actions): Add local variables 'tracepoint_list' and
3473 'stepping_list'. Call init_collection_list and make cleanup
3474 which calls do_clear_collection_list. Don't call
3475 clear_collection_list.
3476 (_initialize_tracepoint): Delete references to
3477 'tracepoint_list' and 'stepping_list'.
3478
6e2048d3
TT
34792013-06-25 Tom Tromey <tromey@redhat.com>
3480
3481 * common/create-version.sh (date): Use "$", not "$$" in sed
3482 expression.
3483
42059f0e
KB
34842013-06-25 Kevin Buettner <kevinb@redhat.com>
3485
3486 * NEWS (New targets): Add entry for TI MSP430.
3487
a0743c90
YQ
34882013-06-25 Yao Qi <yao@codesourcery.com>
3489
3490 * remote.c (remote_start_remote): Move code to upload tsv
3491 earlier.
3492
9d6e6e84
HZ
34932013-06-25 Yao Qi <yao@codesourcery.com>
3494 Hui Zhu <hui@codesourcery.com>
3495 Pedro Alves <palves@redhat.com>
3496
3497 PR breakpoints/15075
3498 PR breakpoints/15434
3499 * breakpoint.c (bpstat_stop_status): Call
3500 b->ops->after_condition_true.
3501 (update_dprintf_command_list): Don't append "continue" command
3502 to the command list of dprintf breakpoint.
3503 (base_breakpoint_after_condition_true): New function.
3504 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3505 (dprintf_after_condition_true): New function.
3506 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3507 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3508
586cf749
KB
35092013-06-24 Kevin Buettner <kevinb@redhat.com>
3510
3511 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3512 (ALLDEPFILES): Add msp430-tdep.c.
3513 * configure.tgt (msp430*-*-elf): New target.
3514 * msp430-tdep.c: New file.
3515
1bbce132
MR
35162013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3517
3518 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3519 microMIPS synthetic symbols.
3520
3e5d3a5a
MR
35212013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3522
3523 * objfiles.h (pc_in_section): New prototype.
3524 (in_plt_section): Remove name argument, replace prototype with
3525 static inline function.
3526 * mips-tdep.h: Include "objfiles.h".
3527 (in_mips_stubs_section): New function.
3528 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3529 in_solib_call_trampoline member.
3530 (hppa_in_solib_call_trampoline): Remove name argument.
3531 * objfiles.c (pc_in_section): New function.
3532 (in_plt_section): Remove function.
3533 * mips-linux-tdep.c: Include "objfiles.h".
3534 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3535 name argument. Return 1 rather than the low 16-bit halfword of
3536 any instruction examined.
3537 (mips_linux_in_dynsym_resolve_code): Update
3538 mips_linux_in_dynsym_stub call accordingly.
3539 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3540 rather than an equivalent hand-coded sequence.
3541 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3542 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3543 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3544 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3545 in_opd_section.
3546 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3547 on call to tdep->in_solib_call_trampoline.
3548 (hppa_in_solib_call_trampoline): Remove name argument, update
3549 according to in_plt_section change.
3550 (hppa_skip_trampoline_code): Update according to in_plt_section
3551 change.
3552 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3553 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3554 Likewise.
3555 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3556 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3557 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3558 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3559 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3560 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3561 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3562 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3563 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3564 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3565 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3566 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3567 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3568
b9b26a16
JB
35692013-06-24 Joel Brobecker <brobecker@adacore.com>
3570
3571 * common/create-version.sh: Fix expansion of $host_alias
3572 and $target_alias in generation of HOST_NAME and TARGET_NAME
3573 (resp.).
3574
01208463
TT
35752013-06-24 Tom Tromey <tromey@redhat.com>
3576
3577 * common/create-version.sh: New file.
3578 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3579 create-version.sh.
3580 (HFILES_NO_SRCDIR): Use common/version.h.
3581 * version.in: Move to ...
3582 * common/version.in: ... here. Replace date with "DATE".
3583 * version.h: Move to ...
3584 * common/version.h: ... here.
3585
bb6b9a5e
JB
35862013-06-21 Joel Brobecker <brobecker@adacore.com>
3587
3588 * gdb/gnulib/Makefile.in: Update date in copyright header.
3589 * gdb/gnulib/configure.ac: Ditto.
3590 * gdb/gnulib/update-gnulib.sh: Ditto.
3591
c3b18ee7
JB
35922013-06-21 Joel Brobecker <brobecker@adacore.com>
3593
3594 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3595 "gdb/gnulib/import".
3596
85d3b769
WN
35972013-06-21 Will Newton <will.newton@linaro.org>
3598
3599 * doublest.c (ldfrexp): Remove function.
3600 (convert_doublest_to_floatformat): Call frexpl instead of
3601 ldfrexp.
3602
88b48903
WN
36032013-06-21 Will Newton <will.newton@linaro.org>
3604
3605 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3606 * gnulib/aclocal.m4: Regenerate.
3607 * gnulib/config.in: Regenerate.
3608 * gnulib/configure: Regenerate.
3609 * gnulib/import/Makefile.am: Update.
3610 * gnulib/import/Makefile.in: Update.
3611 * gnulib/import/m4/gnulib-cache.m4: Update.
3612 * gnulib/import/m4/gnulib-comp.m4: Update.
3613 * gnulib/import/float+.h: Import.
3614 * gnulib/import/float.c: Import.
3615 * gnulib/import/float.in.h: Import.
3616 * gnulib/import/fpucw.h: Import.
3617 * gnulib/import/frexp.c: Import.
3618 * gnulib/import/frexpl.c: Import.
3619 * gnulib/import/isnan.c: Import.
3620 * gnulib/import/isnand-nolibm.h: Import.
3621 * gnulib/import/isnand.c: Import.
3622 * gnulib/import/isnanl-nolibm.h: Import.
3623 * gnulib/import/isnanl.c: Import.
3624 * gnulib/import/itold.c: Import.
3625 * gnulib/import/m4/exponentd.m4: Import.
3626 * gnulib/import/m4/exponentl.m4: Import.
3627 * gnulib/import/m4/float_h.m4: Import.
3628 * gnulib/import/m4/fpieee.m4: Import.
3629 * gnulib/import/m4/frexp.m4: Import.
3630 * gnulib/import/m4/frexpl.m4: Import.
3631 * gnulib/import/m4/isnand.m4: Import.
3632 * gnulib/import/m4/isnanl.m4: Import.
3633 * gnulib/import/m4/math_h.m4: Import.
3634 * gnulib/import/math.c: Import.
3635 * gnulib/import/math.in.h: Import.
3636
4353c9e6
JK
36372013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3640 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3641 signature_INTEL_edx comparisons.
3642
e3e06db3
DE
36432013-06-20 Doug Evans <dje@google.com>
3644
6ac97d4c
DE
3645 symtab/15652
3646 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3647 All callers updated.
3648 (open_dwp_file): If we can't find the dwp file, search the basename
3649 in debug-file-directory.
3650
93417882
DE
3651 * dwarf2read.c (struct dwp_file): Fix comment.
3652 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3653
e3e06db3
DE
3654 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3655 better.
3656
0878d0fa
YQ
36572013-06-20 Yao Qi <yao@codesourcery.com>
3658
3659 * breakpoint.c (create_breakpoint): Fix code indentation.
3660
023fa29b
YQ
36612013-06-20 Yao Qi <yao@codesourcery.com>
3662
3663 * breakpoint.c (create_breakpoints_sal_default): Remove
3664 parameter 'lsal'. Update declaration.
3665 (bkpt_create_breakpoints_sal): Caller update.
3666 (tracepoint_create_breakpoints_sal): Likewise.
3667
c898adb7
YQ
36682013-06-20 Pedro Alves <pedro@codesourcery.com>
3669 Yao Qi <yao@codesourcery.com>
3670
3671 * NEWS: Mention the new option '--skip-unavailable' of command
3672 -data-list-register-values.
3673 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3674 --skip-unavailable option. Adjust to use output_register.
3675 (output_register): Add new 'skip_unavailable' parameter.
3676 Handle it.
3677
4d157a3d
MF
36782013-06-19 Mike Frysinger <vapier@gentoo.org>
3679
3680 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3681 common/i386-gcc-cpuid.h.
3682 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3683 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3684 Copy the latest version from upstream gcc.
3685 * common/linux-btrace.c: Include i386-cpuid.h.
3686 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3687 call to i386_cpuid.
3688 (cpu_supports_btrace): Likewise.
3689 * go32-nat.c: Include i386-cpuid.h.
3690 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3691
1ce4db08
DE
36922013-06-19 Doug Evans <dje@google.com>
3693
3694 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3695 (get_section_index): Ditto.
3696
0e4777df
TT
36972013-06-19 Tom Tromey <tromey@redhat.com>
3698
3699 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3700 "dprintf" help.
3701
3190f0c6
DE
37022013-06-18 Doug Evans <dje@google.com>
3703
3704 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3705 before using it.
3706 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3707 Move test of cu_index closer to use. Print complaint if cu_index
3708 is bad.
3709
8b89a20a
JB
37102013-06-18 Joel Brobecker <brobecker@adacore.com>
3711
3712 * machoread.c (oso_vector): Delete this global.
3713 (macho_register_oso): Add new parameter "oso_vector_ptr".
3714 Use it instead of the "oso_vector" global.
3715 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3716 (macho_symfile_read): Use a local oso_vector, to be free'ed
3717 at the end of this function, in place of the old "oso_vector"
3718 global. Update various function calls accordingly. Use one
3719 single cleanup chain for the entire function.
3720
59b0c7c1
JB
37212013-06-18 Joel Brobecker <brobecker@adacore.com>
3722
937c708c 3723 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3724 DWARF2_PER_OBJFILE by uses of DATA instead.
3725
427cd150
TT
37262013-06-18 Tom Tromey <tromey@redhat.com>
3727
3728 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3729 argument.
3730 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3731 Special case signals other than GDB_SIGNAL_TRAP.
3732 (explains_signal_watchpoint): New function.
3733 (base_breakpoint_explains_signal): Add 'sig' argument.
3734 (initialize_breakpoint_ops): Set 'explains_signal' method for
3735 watchpoints.
3736 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3737 signal argument.
3738 (bpstat_explains_signal): Likewise.
3739 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3740
2d57700b
TT
37412013-06-18 Tom Tromey <tromey@redhat.com>
3742
3743 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3744
ac475191
TT
37452013-06-18 Tom Tromey <tromey@redhat.com>
3746
3747 * python/python.c (finish_python_initialization): Decref
3748 'pythondir' on failure path as well.
3749
5bd1ef56
TT
37502013-06-18 Tom Tromey <tromey@redhat.com>
3751
3752 PR symtab/15391:
3753 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3754 after taking bits_to_skip into account. Sign extend byte_offset.
3755 * utils.h (gdb_sign_extend): Declare.
3756 * utils.c (gdb_sign_extend): New function.
3757
92fac807
JK
37582013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3761
2d503272
PM
37622013-06-17 Pierre Muller <muller@sourceware.org>
3763
3764 * corelow.c (core_open): Print GDB signal name instead of target
3765 signal number.
3766
6916fd98
MF
37672013-06-17 Mike Frysinger <vapier@gentoo.org>
3768
3769 * .gitignore: Add /gcore.
3770
9c02c129
DE
37712013-06-13 Doug Evans <dje@google.com>
3772
3773 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3774 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3775
d0548fa2
PM
37762013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3777
3778 * stack.c (backtrace_command_1): Fix indentation.
3779
22128028
JB
37802013-06-11 Joel Brobecker <brobecker@adacore.com>
3781
3782 * window-nat.c (thread_rec): Add missing empty line after
3783 local variable declaration.
3784
2ed3e009
JB
37852013-06-11 Joel Brobecker <brobecker@adacore.com>
3786
3787 * windows-nat.c (thread_rec): Revert format used to print
3788 error code returned by SuspendThread from %d back to %u.
3789
0c3d84be
JB
37902013-06-11 Joel Brobecker <brobecker@adacore.com>
3791
3792 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3793 ID in debug trace.
3794 (get_windows_debug_event): Likewise, for all debug traces.
3795
80e88e1a
JB
37962013-06-11 Joel Brobecker <brobecker@adacore.com>
3797
3798 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3799 warning message.
3800
1edebdbf
YQ
38012013-06-08 Pedro Alves <pedro@codesourcery.com>
3802 Yao Qi <yao@codesourcery.com>
3803
3804 * mi/mi-main.c (get_register): Remove declaration.
3805 (output_register): Declare.
3806 (mi_cmd_data_list_register_values): Remove local variable
3807 'tuple_cleanup'. Move some code into output_register.
3808 (get_register): Renamed to ...
3809 (output_register): ... this. Output the register's
3810 "number" ui_out tuple here.
3811
47d48711
PA
38122013-06-07 Pedro Alves <palves@redhat.com>
3813
3814 * darwin-nat.c: Fix formating in copyright header.
3815 * darwin-nat.h: Likewise.
3816 * gnu-nat.c: Likewise.
3817 * machoread.c: Likewise.
3818
3aee8918
PA
38192013-06-07 Pedro Alves <palves@redhat.com>
3820
5f2b57b5 3821 PR server/14823
3aee8918
PA
3822 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3823 static. Output a global target description pointer.
3824 (init_registers_${name}): Adjust to initialize a
3825 target description structure.
3826
fe8400b4
WN
38272013-06-07 Will Newton <will.newton@linaro.org>
3828
3829 * printcmd.c (build_address_symbolic): Call
3830 gdbarch_addr_bits_remove for text minimal symbols.
3831
20df6206
WN
38322013-06-07 Will Newton <will.newton@linaro.org>
3833
3834 * MAINTAINERS: Add myself to Write After Approval.
3835
aef525cb
YQ
38362013-06-07 Yao Qi <yao@codesourcery.com>
3837
3838 * tracepoint.c (start_tracing): Move code to ...
3839 (trace_reset_local_state): ... here. New.
3840 (disconnect_tracing): Don't call set_current_traceframe,
3841 set_tracepoint_num, and set_traceframe_context. Call
3842 trace_reset_local_state instead.
3843 (tfile_close): Call trace_reset_local_state.
3844 * ctf.c (ctf_close): Likewise.
3845 * remote.c (remote_close): Likewise.
3846 * tracepoint.h (trace_reset_local_state): Declare.
3847
d2415c6c
DE
38482013-06-06 Doug Evans <dje@google.com>
3849
3850 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3851 and fix header docs.
3852
69fc87c2
DE
38532013-06-05 Doug Evans <dje@google.com>
3854 Keith Seitz <keiths@redhat.com>
3855
3856 PR 15519
3857 * cp-namespace.c (find_symbol_in_baseclass): Call
3858 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3859 Check result of call to lookup_symbol_static.
3860 Call lookup_static_symbol_aux unconditionally.
3861 Call check_typedef on base types before accessing them.
3862 (cp_lookup_nested_symbol): Fix comment.
3863
a513d1e8
LM
38642013-06-05 Luis Machado <lgustavo@codesourcery.com>
3865
3866 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3867 minimal symbols pointing to function descriptors.
3868
351a6f02
TT
38692013-06-05 Tom Tromey <tromey@redhat.com>
3870
3871 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3872
5e1b953b 38732013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3874 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3875
3876 * remote.c (remote_wait_as): Restore signal handler before returning
3877 when GDB gets a notification.
3878
f9e14852
GB
38792013-06-04 Gary Benson <gbenson@redhat.com>
3880
8445cbf1 3881 PR 2328
f9e14852
GB
3882 * breakpoint.h (handle_solib_event): Moved function declaration
3883 to solib.h.
3884 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3885 (bpstat_stop_status): Pass new argument to handle_solib_event.
3886 * solib.h (update_solib_breakpoints): New function declaration.
3887 (handle_solib_event): Moved function declaration from
3888 breakpoint.h.
3889 * solib.c (update_solib_breakpoints): New function.
3890 (handle_solib_event): Moved function from breakpoint.c.
3891 Updated to call solib_ops->handle_event if not NULL.
3892 * solist.h (target_so_ops): New fields "update_breakpoints" and
3893 "handle_event".
3894 * infrun.c (set_stop_on_solib_events): New function.
3895 (_initialize_infrun): Use the above for "set
3896 stop-on-solib-events".
3897 (handle_inferior_event): Pass new argument to handle_solib_event.
3898 * solib-svr4.c (probe.h): New include.
3899 (svr4_free_library_list): New forward declaration.
3900 (probe_action): New enum.
3901 (probe_info): New struct.
3902 (probe_info): New static variable.
3903 (NUM_PROBES): New definition.
3904 (svr4_info): New fields "using_xfer", "probes_table" and
3905 "solib_list".
3906 (free_probes_table): New function.
3907 (free_solib_list): New function.
3908 (svr4_pspace_data_cleanup): Free probes table and solib list.
3909 (svr4_copy_library_list): New function.
3910 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3911 (svr4_read_so_list): New parameter "prev_lm".
3912 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3913 (svr4_current_sos): New function.
3914 (probe_and_action): New struct.
3915 (hash_probe_and_action): New function.
3916 (equal_probe_and_action): Likewise.
3917 (register_solib_event_probe): Likewise.
3918 (solib_event_probe_at): Likewise.
3919 (solib_event_probe_action): Likewise.
3920 (solist_update_full): Likewise.
3921 (solist_update_incremental): Likewise.
3922 (disable_probes_interface_cleanup): Likewise.
3923 (svr4_handle_solib_event): Likewise.
3924 (svr4_update_solib_event_breakpoint): Likewise.
3925 (svr4_update_solib_event_breakpoints): Likewise.
3926 (svr4_create_solib_event_breakpoints): Likewise.
3927 (enable_break): Free probes table before creating breakpoints.
3928 Use svr4_create_solib_event_breakpoints to create breakpoints.
3929 (svr4_solib_create_inferior_hook): Free the solib list.
3930 (_initialize_svr4_solib): Initialise
3931 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3932
ced63ec0
GB
39332013-06-04 Gary Benson <gbenson@redhat.com>
3934
3935 * target.h (target_ops): New field
3936 "to_augmented_libraries_svr4_read".
3937 (target_augmented_libraries_svr4_read): New macro.
3938 * target.c (update_current_target): Handle
3939 to_augmented_libraries_svr4_read.
3940 * remote.c (remote_state): New field
3941 "augmented_libraries_svr4_read".
3942 (remote_augmented_libraries_svr4_read_feature): New function.
3943 (remote_protocol_features): Add entry for
3944 "augmented-libraries-svr4-read".
3945 (remote_augmented_libraries_svr4_read): New function.
3946 (init_remote_ops): Initialize
3947 remote_ops.to_augmented_libraries_svr4_read.
3948
7f91dbec
GB
39492013-06-04 Gary Benson <gbenson@redhat.com>
3950
3951 * NEWS: Update.
3952
607ece04
GB
39532013-06-04 Gary Benson <gbenson@redhat.com>
3954
3955 * objfiles.h (inhibit_section_map_updates): New function
3956 declaration.
3957 (resume_section_map_updates): Likewise.
3958 (resume_section_map_updates_cleanup): Likewise.
3959 * objfiles.c (objfile_pspace_info): Removed field
3960 "objfiles_changed_p". New fields "new_objfiles_available",
3961 "section_map_dirty" and "inhibit_updates".
3962 (allocate_objfile): Set new_objfiles_available.
3963 (free_objfile): Set section_map_dirty.
3964 (objfile_relocate1): Likewise.
3965 (in_plt_section): Likewise.
3966 (find_pc_section): Update the conditions under which the
3967 section map will be updated.
3968 (inhibit_section_map_updates): New function.
3969 (resume_section_map_updates): Likewise.
3970 (resume_section_map_updates_cleanup): Likewise.
3971
9ee6a5ac
GB
39722013-06-04 Gary Benson <gbenson@redhat.com>
3973
3974 * probe.h (get_probe_argument_count): New declaration.
3975 (evaluate_probe_argument): Likewise.
3976 * probe.c (get_probe_argument_count): New function.
3977 (evaluate_probe_argument): Likewise.
3978 (probe_safe_evaluate_at_pc): Use the above new functions.
3979
845d4708
AM
39802013-06-04 Alan Modra <amodra@gmail.com>
3981
3982 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3983 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3984 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3985 target mem reads on optional insns.
3986 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3987 ppc_insns_match_pattern calls.
3988 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3989 Add match for power7 thread safety insns, and new order of
3990 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3991 invocation in comment, and update rest of comment.
3992 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3993 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3994 (ppc64_standard_linkage2_target): Update insn offsets.
3995 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3996 stubs first. Update calls.
3997
404e278f
YQ
39982013-06-04 Yao Qi <yao@codesourcery.com>
3999
4000 * solib.c (solib_find): Don't need dir separator if path has
4001 drive spec.
4002
f6aea118
JB
40032013-06-03 Joel Brobecker <brobecker@adacore.com>
4004
4005 Revert (indirectly causes a SIGSEGV):
4006 * machoread.c (macho_symfile_read): Assign first cleanup to
4007 'back_to'.
4008
87967e27
YQ
40092013-06-03 Yao Qi <yao@codesourcery.com>
4010
4011 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4012 mi-parse.c. Make them static.
4013 (mi_all_values): Likewise.
4014 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4015 mi_parse_print_values. Make it external.
4016 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4017 Remove the declarations.
4018 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4019 * mi/mi-parse.h (mi_parse_print_values): Declare.
4020 * mi/mi-cmd-stack.c: Include mi-parse.h.
4021 (parse_print_values): Remove
4022 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4023 of parse_print_values.
4024 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4025
3ca73e0c
YQ
40262013-05-31 Pedro Alves <pedro@codesourcery.com>
4027 Yao Qi <yao@codesourcery.com>
4028
4029 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4030 (encode_actions): Move code to ...
4031 (all_tracepoint_actions_and_cleanup): ... here. New.
4032 (trace_dump_command): Likewise.
4033
4e993a19
TT
40342013-05-30 Tom Tromey <tromey@redhat.com>
4035
4036 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4037
e3b76b4f
TT
40382013-05-30 Tom Tromey <tromey@redhat.com>
4039
4040 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4041 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4042 'old_chain' argument. Add 'parser_result' argument.
4043 (gdb_xml_create_parser_and_cleanup): Remove old version.
4044 (gdb_xml_parse_quick): Update.
4045 (xml_process_xincludes): Update.
4046 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4047 declare.
4048
db26349c
TT
40492013-05-30 Tom Tromey <tromey@redhat.com>
4050
4051 * probe.c (collect_probes): Check arguments for NULL before
4052 calling compile_rx_or_error.
4053 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4054 Remove NULL return.
4055
77f9e713
TT
40562013-05-30 Tom Tromey <tromey@redhat.com>
4057
4058 * infrun.c (adjust_pc_after_break): Introduce an outer null
4059 cleanup.
4060
45475de7
TT
40612013-05-30 Tom Tromey <tromey@redhat.com>
4062
4063 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4064
ac5007fd
TT
40652013-05-30 Tom Tromey <tromey@redhat.com>
4066
4067 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4068 for 'old_chain'. Do not check 'head' before processing
4069 cleanups.
4070
cd82eddc
TT
40712013-05-30 Tom Tromey <tromey@redhat.com>
4072
4073 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4074 "cleanup_tuple".
4075
57cee33a
TT
40762013-05-30 Tom Tromey <tromey@redhat.com>
4077
4078 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4079 inner scope. Unconditionally call do_cleanups.
4080
795d915c
TT
40812013-05-30 Tom Tromey <tromey@redhat.com>
4082
4083 * source.c (find_and_open_source): Call do_cleanups.
4084
1fc3cf4a
TT
40852013-05-30 Tom Tromey <tromey@redhat.com>
4086
4087 * linux-thread-db.c (thread_db_load_search): Unconditionally
4088 call do_cleanups.
4089
e35ac9bf
TT
40902013-05-30 Tom Tromey <tromey@redhat.com>
4091
4092 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4093 for 'cleanup'; instead use a later one.
4094
f3300387
TT
40952013-05-30 Tom Tromey <tromey@redhat.com>
4096
4097 * python/py-breakpoint.c (bppy_get_commands): Use
4098 explicit, unconditional return.
4099 * python/py-frame.c (frapy_read_var): Likewise.
4100 * python/python.c (gdbpy_decode_line): Likewise.
4101
c27e16e3
TT
41022013-05-30 Tom Tromey <tromey@redhat.com>
4103
4104 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4105 do_cleanups on all return paths.
4106
5ae85e44
TT
41072013-05-30 Tom Tromey <tromey@redhat.com>
4108
4109 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4110
73b8d9da
TT
41112013-05-30 Tom Tromey <tromey@redhat.com>
4112
4113 * stabsread.c (read_struct_type): Call do_cleanups along
4114 all return paths.
4115
7d266584
MR
41162013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4117
4118 * mips-linux-tdep.c: Adjust formatting throughout.
4119
0f900f54
TT
41202013-05-30 Tom Tromey <tromey@redhat.com>
4121
4122 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4123 along all return paths.
4124
a991ac28
TT
41252013-05-30 Tom Tromey <tromey@redhat.com>
4126
4127 * symfile.c (find_separate_debug_file): Call do_cleanups
4128 along all return paths.
4129
1abaf042
TT
41302013-05-30 Tom Tromey <tromey@redhat.com>
4131
4132 * symtab.c (search_symbols): Introduce a null cleanup for
4133 'retval_chain'.
4134
edefe1da
TT
41352013-05-30 Tom Tromey <tromey@redhat.com>
4136
4137 * python/py-value.c (valpy_binop): Call do_cleanups before
4138 exiting loop.
4139
54f72dcc
TT
41402013-05-30 Tom Tromey <tromey@redhat.com>
4141
4142 * python/py-prettyprint.c (print_children): Remove extra
4143 do_cleanups call.
4144
af1c6971
TT
41452013-05-30 Tom Tromey <tromey@redhat.com>
4146
4147 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4148 all return paths.
4149
b862ce75
TT
41502013-05-30 Tom Tromey <tromey@redhat.com>
4151
4152 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4153 along all return paths.
4154
e12fefc8
TT
41552013-05-30 Tom Tromey <tromey@redhat.com>
4156
4157 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4158 call do_cleanups.
4159
4867f990
TT
41602013-05-30 Tom Tromey <tromey@redhat.com>
4161
4162 * varobj.c (c_value_of_root): Call do_cleanups along all
4163 return paths.
4164
4fd2d6af
TT
41652013-05-30 Tom Tromey <tromey@redhat.com>
4166
4167 * tracepoint.c (trace_dump_command): Unconditionally call
4168 do_cleanups.
4169
752eb8b4
TT
41702013-05-30 Tom Tromey <tromey@redhat.com>
4171
4172 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4173 do_cleanups earlier.
4174
e42d0aa5
TT
41752013-05-30 Tom Tromey <tromey@redhat.com>
4176
4177 * machoread.c (macho_symfile_read): Assign first cleanup to
4178 'back_to'.
4179
4bbc010a
TT
41802013-05-30 Tom Tromey <tromey@redhat.com>
4181
4182 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4183
b9635925
TT
41842013-05-30 Tom Tromey <tromey@redhat.com>
4185
4186 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4187
25f43500
TT
41882013-05-30 Tom Tromey <tromey@redhat.com>
4189
4190 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4191 call discard_cleanups.
4192 (inf_ptrace_attach): Likewise.
4193
d6a2e54a
TT
41942013-05-30 Tom Tromey <tromey@redhat.com>
4195
4196 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4197 return paths.
4198 (mips_initialize): Likewise.
4199 (common_open): Call do_cleanups.
4200
48be7c1b
TT
42012013-05-30 Tom Tromey <tromey@redhat.com>
4202
4203 * utils.c (internal_vproblem): Call do_cleanups.
4204
e61727ab
TT
42052013-05-30 Tom Tromey <tromey@redhat.com>
4206
4207 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4208
b81b921f
TT
42092013-05-30 Tom Tromey <tromey@redhat.com>
4210
4211 * cli/cli-script.c (setup_user_args): Don't return after error.
4212
fe48dfb1
TT
42132013-05-30 Tom Tromey <tromey@redhat.com>
4214
4215 * somread.c (som_symtab_read): Call do_cleanups.
4216
27833de7
TT
42172013-05-30 Tom Tromey <tromey@redhat.com>
4218
4219 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4220
5b3fca71
TT
42212013-05-30 Tom Tromey <tromey@redhat.com>
4222
4223 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4224 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4225 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4226 * source.c (show_substitute_path_command): Call do_cleanups.
4227 (unset_substitute_path_command, set_substitute_path_command):
4228 Likewise.
4229 * symfile.c (load_command): Call do_cleanups.
4230
af83e3f8
TT
42312013-05-30 Tom Tromey <tromey@redhat.com>
4232
4233 * contrib/cleanup_check.py: New file.
4234 * contrib/gcc-with-excheck: Add option parsing.
4235
564eac42
JB
42362013-05-30 Joel Brobecker <brobecker@adacore.com>
4237
4238 * windows-nat.c (windows_delete_thread): Add missing space
4239 in cast expression.
4240
47902076
HAQ
42412013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4242
4243 * inferior.c (top level): Include tilde.h.
4244 (add_inferior_command): Call tilde_expand on the value of 'exec'
4245 argument.
4246
23da373a
YQ
42472013-05-30 Pedro Alves <pedro@codesourcery.com>
4248 Yao Qi <yao@codesourcery.com>
4249
4250 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4251 Caller update.
4252 (encode_actions): Likewise.
4253 * remote.c (remote_download_tracepoint): Caller update.
4254 * tracepoint.h (encode_actions): Update declaration.
4255
a6e6f791
PA
42562013-05-30 Pedro Alves <palves@redhat.com>
4257
4258 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4259 pointer.
4260
36d25514
YQ
42612013-05-30 Yao Qi <yao@codesourcery.com>
4262
4263 * remote.c (remote_check_symbols): Remove unused parameter
4264 'objfile'.
4265 Declaration update.
4266 (remote_start_remote, remote_new_objfile): Caller update.
4267
62a813cc
YQ
42682013-05-30 Yao Qi <yao@codesourcery.com>
4269
4270 * mi/mi-cmds.c (mi_cmds): Define MI command
4271 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4272 DEF_MI_CMD_CLI.
4273
28439a30
PA
42742013-05-29 Pedro Alves <palves@redhat.com>
4275
4276 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4277 (remote_insert_watchpoint, remote_remove_watchpoint)
4278 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4279 (remote_verify_memory, compare_sections_command)
4280 (remote_search_memory): Set the general process/thread on the
4281 remote side.
4282
6ac1c082
PA
42832013-05-29 Pedro Alves <palves@redhat.com>
4284
4285 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4286 (_initialize_aarch64_tdep): Don't call
4287 initialize_tdesc_aarch64_without_fpu.
4288 * features/Makefile (WHICH): Remove reference to
4289 aarch64-without-fpu.
4290 * features/aarch64-without-fpu.c: Delete file.
4291 * regformats/aarch64-without-fpu.dat: Delete file.
4292
a73e3634
YQ
42932013-05-28 Yao Qi <yao@codesourcery.com>
4294
4295 * tracepoint.c (stringify_collection_list): Remove parameter
4296 'string'.
4297 (encode_actions): Caller update. Remove local variables.
4298
c0ea94eb
YQ
42992013-05-24 Yao Qi <yao@codesourcery.com>
4300
4301 * tracepoint.c (TFILE_PID): Remove.
4302 (tfile_open): Don't add thread and inferior.
4303 (tfile_close): Don't set 'inferior_ptid'. Don't call
4304 exit_inferior_silent.
4305 (tfile_thread_alive): Remove.
4306 (init_tfile_ops): Don't set field 'to_thread_alive' of
4307 tfile_ops.
4308
20d7f211
DE
43092013-05-23 Doug Evans <dje@google.com>
4310
4311 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4312
8658d16d
PA
43132013-05-23 Pedro Alves <palves@redhat.com>
4314
4315 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4316 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4317 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4318 Only define if HAVE_SOCKETS is defined.
4319 * configure.ac: Check for sys/socket.h.
4320 * config.in, configure: Regenerate.
4321
21aa081e
PA
43222013-05-23 Pedro Alves <palves@redhat.com>
4323
4324 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4325 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4326 printing uint32_t variables.
4327
c2d6af84
PA
43282013-05-23 Pedro Alves <palves@redhat.com>
4329
4330 * NEWS: Mention GDBserver range stepping support.
4331
c1e36e3e
PA
43322013-05-23 Yao Qi <yao@codesourcery.com>
4333 Pedro Alves <palves@redhat.com>
4334
4335 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4336 field.
4337 * infcmd.c (step_once, until_next_command): Enable range stepping.
4338 * infrun.c (displaced_step_prepare): Disable range stepping.
4339 (resume): Disable range stepping if stepping over a breakpoint or
4340 we have software watchpoints. If range stepping is enabled,
4341 assert the thread is in the stepping range.
4342 (clear_proceed_status_thread): Clear may_range_step.
4343 (handle_inferior_event): Disable range stepping as soon as we know
4344 the thread that hit the event. Re-enable it whenever we're going
4345 to step with a step range.
4346 * remote.c (struct vCont_action_support) <r>: New field.
4347 (use_range_stepping): New global.
4348 (remote_vcont_probe): Handle 'r' action.
4349 (append_resumption): Append an 'r' action if the thread may range
4350 step.
4351 (show_range_stepping): New function.
4352 (set_range_stepping): New function.
4353 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4354 'set range-stepping' and 'show range-stepping' commands.
4355 * NEWS: Mention range stepping, the new vCont;r action, and the
4356 new "set/show range-stepping" commands.
4357
d458bd84
PA
43582013-05-23 Yao Qi <yao@codesourcery.com>
4359 Pedro Alves <palves@redhat.com>
4360
4361 * remote.c (struct vCont_action_support): New struct.
4362 (struct remote_state) <support_vCont_t>: Remove field.
4363 <vCont_actions_support>: New field.
4364 (remote_vcont_probe, remote_stop_ns): Update.
4365
ce4c476a
PA
43662013-05-23 Yao Qi <yao@codesourcery.com>
4367 Pedro Alves <palves@redhat.com>
4368
4369 * gdbthread.h (pc_in_thread_step_range): New declaration.
4370 * thread.c (pc_in_thread_step_range): New function.
4371 * infrun.c (handle_inferior_event): Use it.
4372
ce70887a
JB
43732013-05-23 Joel Brobecker <brobecker@adacore.com>
4374
4375 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4376 of sprintf.
4377
55b87a52
KS
43782013-05-22 Keith Seitz <keiths@redhat.com>
4379
4380 * ada-lang.c (is_known_support_routine): Add explicit free of
4381 'func_name' from find_frame_funname.
4382 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4383 for func_name from find_frame_funname.
4384 * python/py-frame.c (frapy_name): Add explicit free of
4385 'name' from find_frame_funname.
4386 * stack.c (find_frame_funname): Add comment explaining that
4387 funcp must be freed by the caller.
4388 Return copy of symbol names instead of pointers.
4389 (print_frame): Add a cleanup for 'funname' from
4390 find_frame_funname.
4391 * stack.h (find_frame_funname): Remove "const" from
4392 'funname' parameter.
4393
5f2e6b00
TT
43942013-05-22 Tom Tromey <tromey@redhat.com>
4395
4396 PR c++/15401:
4397 * c-valprint.c (c_value_print): Use value_addr for
4398 references. Convert back to reference type with value_ref.
4399
d85c4847
EZ
44002013-05-22 Eli Zaretskii <eliz@gnu.org>
4401
4402 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4403 unloaded DLL, it will be done by handle_solib_event. See
4404 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4405 details.
4406
54eb231c
PM
44072013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4408
4409 * ui-out.c: Create typedef ui_out_level_p and define vector
4410 operations for that type.
4411 (struct ui_out): Use a vector instead of an array.
4412 (current_level): Return level from a vector.
4413 (push_level): Create a level in a vector.
4414 (pop_level): Delete a level in a vector.
4415 (ui_out_new): Create initial level zero level, and store in a
4416 vector.
4417 (ui_out_destroy): Add vector cleanup.
4418
ac90359c
PA
44192013-05-22 Pedro Alves <palves@redhat.com>
4420
4421 * python/python-internal.h (gdb_Py_DECREF): Tag with
4422 "ARI: editCase function".
4423
6dcc1893
PP
44242013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4425
4426 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4427
c8c735b9
PA
44282013-05-21 Pedro Alves <palves@redhat.com>
4429
4430 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4431 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4432 * python/py-utils.c (py_decref): Don't check for NULL before
4433 calling Py_DECREF.
4434
1915daeb
PA
44352013-05-21 Pedro Alves <palves@redhat.com>
4436
4437 * python/py-utils.c (py_decref): Remove extra braces.
4438 (gdb_pymodule_addobject): Remove extra braces.
4439 * python-internal.h (gdb_Py_DECREF): New static inline function.
4440 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4441
bd9673a4
PW
44422013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443
4444 * breakpoints.c (detach_breakpoints): Do not
4445 detach breakpoints locations with loc_type bp_loc_other.
4446
ff6009d0
JK
44472013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4448
4449 Workaround Python 2.6.
4450 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4451 a block.
4452
3641da11
JK
44532013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 Code cleanup: constification.
4456 * solib.c (solib_ops): Make return type and ops variable type const.
4457 (set_solib_ops): Make the new_ops parameter and ops variable const.
4458 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4459 (solib_add, solib_keep_data_in_core, clear_solib)
4460 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4461 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4462 const.
4463 * solib.h (set_solib_ops): Make the new_ops parameter const.
4464
776af39e
JB
44652013-05-21 Joel Brobecker <brobecker@adacore.com>
4466
4467 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4468 variable.
4469 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4470 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4471 (SYSTEM_GDBINIT_FILES): New variables.
4472 (all): Add stamp-system-gdbinit.
4473 (stamp-system-gdbinit): New rule.
4474 (clean-system-gdbinit, install-system-gdbinit)
4475 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4476 (install-only): Add dependency on install-system-gdbinit.
4477 (uninstall): Add dependency on uninstall-system-gdbinit.
4478 (clean): Add dependency on clean-system-gdbinit.
4479 * system-gdbinit/elinos.py: New file.
4480 * system-gdbinit/wrs-linux.py: New file.
4481
1509e573
JB
44822013-05-21 Joel Brobecker <brobecker@adacore.com>
4483
4484 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4485
c5867ab6
HZ
44862013-05-21 Hui Zhu <hui@codesourcery.com>
4487
4488 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4489 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4490 * mi/mi-cmd-break.c (ctype.h): New include.
4491 (gdb_obstack.h): New include.
4492 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4493 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4494 (mi_cmd_dprintf_insert): New.
4495 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4496 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4497
7d38e38f
TT
44982013-05-20 Tom Tromey <tromey@redhat.com>
4499
4500 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4501
97b77b39
TT
45022013-05-20 Tom Tromey <tromey@redhat.com>
4503
4504 * python/py-value.c (valpy_get_dynamic_type): Simplify
4505 dynamic_type assignment. Use Py_XINCREF.
4506
53e66479
TT
45072013-05-20 Tom Tromey <tromey@redhat.com>
4508
4509 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4510
dcf87832
TT
45112013-05-20 Tom Tromey <tromey@redhat.com>
4512
4513 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4514 (gdbpy_selected_frame): Move object-construction code
4515 out of TRY_CATCH.
4516
aa36459a
TT
45172013-05-20 Tom Tromey <tromey@redhat.com>
4518
4519 * python/py-arch.c (gdbpy_initialize_arch): Use
4520 gdb_pymodule_addobject.
4521 * python/py-block.c (gdbpy_initialize_blocks): Use
4522 gdb_pymodule_addobject.
4523 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4524 gdb_pymodule_addobject.
4525 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4526 gdb_pymodule_addobject.
4527 * python/py-event.c (gdbpy_initialize_event_generic): Use
4528 gdb_pymodule_addobject.
4529 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4530 gdb_pymodule_addobject.
4531 * python/py-evts.c (add_new_registry): Use
4532 gdb_pymodule_addobject.
4533 (gdbpy_initialize_py_events): Likewise.
4534 * python/py-finishbreakpoint.c
4535 (gdbpy_initialize_finishbreakpoints): Use
4536 gdb_pymodule_addobject.
4537 * python/py-frame.c (gdbpy_initialize_frames): Use
4538 gdb_pymodule_addobject.
4539 * python/py-function.c (gdbpy_initialize_functions): Use
4540 gdb_pymodule_addobject.
4541 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4542 gdb_pymodule_addobject.
4543 * python/py-infthread.c (gdbpy_initialize_thread): Use
4544 gdb_pymodule_addobject.
4545 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4546 gdb_pymodule_addobject.
4547 * python/py-param.c (gdbpy_initialize_parameters): Use
4548 gdb_pymodule_addobject.
4549 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4550 gdb_pymodule_addobject.
4551 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4552 gdb_pymodule_addobject.
4553 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4554 gdb_pymodule_addobject.
4555 * python/py-type.c (gdbpy_initialize_types): Use
4556 gdb_pymodule_addobject.
4557 * python/py-utils.c (gdb_pymodule_addobject): New function.
4558 * python/py-value.c (gdbpy_initialize_values): Use
4559 gdb_pymodule_addobject.
4560 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4561 * python/python.c (_initialize_python): Use
4562 gdb_pymodule_addobject.
4563
3d4a3c3e
TT
45642013-05-20 Tom Tromey <tromey@redhat.com>
4565
4566 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4567 * python/py-param.c (get_set_value, get_show_value): Use
4568 explicit decrefs.
4569 * python/python.c (start_type_printers, apply_type_printers):
4570 Use explicit decrefs.
4571
72ff8829
TT
45722013-05-20 Tom Tromey <tromey@redhat.com>
4573
4574 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4575 incref the module.
4576
02146ba5
TT
45772013-05-20 Tom Tromey <tromey@redhat.com>
4578
4579 * python/python.c (gdbpy_run_events): Decref the result
4580 of PyObject_CallObject.
4581
33ee792f
TT
45822013-05-20 Tom Tromey <tromey@redhat.com>
4583
4584 * python/py-symtab.c (set_sal): Use
4585 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4586 (symtab_and_line_to_sal_object): Update.
4587
fcb49fc8
TT
45882013-05-20 Tom Tromey <tromey@redhat.com>
4589
4590 * python/py-param.c (compute_enum_values): Decref 'item'.
4591
0646da15
TT
45922013-05-20 Tom Tromey <tromey@redhat.com>
4593
4594 * mi/mi-main.c: Include python-internal.h.
4595 (mi_cmd_list_features): Check gdb_python_initialized.
4596 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4597 (python_inferior_exit, python_new_objfile, add_thread_object)
4598 (delete_thread_object, py_free_inferior): Check
4599 gdb_python_initialized.
4600 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4601 gdb_python_initialized.
4602 * python/py-type.c (save_objfile_types): Check
4603 gdb_python_initialized.
4604 * python/python-internal.h (gdb_python_initialized): Declare.
4605 * python/python.c (ensure_python_env): Throw exception if
4606 Python not initialized.
4607 (before_prompt_hook, source_python_script_for_objfile)
4608 (start_type_printers, apply_type_printers,
4609 free_type_printers): Check gdb_python_initialized.
4610 * varobj.c (varobj_get_display_hint)
4611 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4612 (install_new_value_visualizer, varobj_set_visualizer)
4613 (value_get_print_value): Check gdb_python_initialized.
4614
999633ed
TT
46152013-05-20 Tom Tromey <tromey@redhat.com>
4616
4617 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4618 Check errors.
4619 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4620 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4621 Check errors.
4622 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4623 Check errors.
4624 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4625 Check errors.
4626 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4627 Check errors.
4628 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4629 init function to return 'int'.
4630 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4631 Return 'int'. Check errors.
4632 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4633 Check errors.
4634 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4635 Return 'int'. Check errors.
4636 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4637 Check errors.
4638 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4639 Check errors.
4640 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4641 Check errors.
4642 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4643 Check errors.
4644 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4645 Check errors.
4646 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4647 Check errors.
4648 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4649 Check errors.
4650 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4651 Check errors.
4652 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4653 Check errors.
4654 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4655 Check errors.
4656 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4657 Check errors.
4658 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4659 Check errors.
4660 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4661 Check errors.
4662 * python/python-internal.h (gdbpy_initialize_auto_load,
4663 gdbpy_initialize_values, gdbpy_initialize_frames,
4664 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4665 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4666 gdbpy_initialize_blocks, gdbpy_initialize_types,
4667 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4668 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4669 gdbpy_initialize_finishbreakpoints,
4670 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4671 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4672 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4673 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4674 gdbpy_initialize_signal_event,
4675 gdbpy_initialize_breakpoint_event,
4676 gdbpy_initialize_continue_event,
4677 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4678 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4679 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4680 * python/python.c (gdb_python_initialized): New global.
4681 (gdbpy_initialize_events): Return 'int'. Check errors.
4682 (_initialize_python): Check errors. Set
4683 gdb_python_initialized.
4684
18868860
TT
46852013-05-20 Tom Tromey <tromey@redhat.com>
4686
4687 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4688 Decref the reslut of PyObject_CallMethod.
4689
9f4ff0c2
TT
46902013-05-20 Tom Tromey <tromey@redhat.com>
4691
4692 * python/py-event.c (gdbpy_initialize_event_generic): Return
4693 early if PyType_Ready fails.
4694
0d3a2e8a
TT
46952013-05-20 Tom Tromey <tromey@redhat.com>
4696
4697 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4698 as 'default' in the switch.
4699
b86af38a
TT
47002013-05-20 Tom Tromey <tromey@redhat.com>
4701
4702 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4703 get_addr_from_python calls out of TRY_CATCH.
4704 (infpy_write_memory, infpy_search_memory): Likewise.
4705 * python/py-utils.c (get_addr_from_python): Return negative
4706 value on error. Use TRY_CATCH.
4707 * python/python-internal.h (get_addr_from_python): Use
4708 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4709
c127ec58
TT
47102013-05-20 Tom Tromey <tromey@redhat.com>
4711
4712 * python/py-event.c (evpy_emit_event): Decref the
4713 result of PyObject_CallFunctionObjArgs.
4714
ba327838
TT
47152013-05-20 Tom Tromey <tromey@redhat.com>
4716
4717 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4718 Correctly decref.
4719
d8191432
TT
47202013-05-20 Tom Tromey <tromey@redhat.com>
4721
4722 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4723
5d153bd1
TT
47242013-05-20 Tom Tromey <tromey@redhat.com>
4725
4726 * python/py-event.h (gdbpy_initialize_event_generic): Use
4727 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4728 * python/py-evts.c (add_new_registry): Use
4729 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4730 * python/python-internal.h
4731 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4732
56cc411c
TT
47332013-05-20 Tom Tromey <tromey@redhat.com>
4734
4735 * python/py-arch.c (archpy_disassemble): Update.
4736 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4737 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4738 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4739 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4740 macro.
4741 (GDB_PY_HANDLE_EXCEPTION): Update.
4742 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4743
8919e174
TT
47442013-05-20 Tom Tromey <tromey@redhat.com>
4745
4746 * python/python-internal.h (events_object_type): Remove.
4747
9b08f225
TT
47482013-05-20 Tom Tromey <tromey@redhat.com>
4749
f5aee5ee
AM
4750 * python/py-event.h (evpy_emit_event): Use
4751 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4752 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4753 New macro.
9b08f225 4754
f04010ff
TT
47552013-05-20 Tom Tromey <tromey@redhat.com>
4756
4757 * py-evtregistry.c (create_event_object): Decref
4758 eventregistry_object if PyList_New fails.
4759
3919fd96
TT
47602013-05-20 Tom Tromey <tromey@redhat.com>
4761
4762 * py-cmd.c (gdbpy_string_to_argv): Check result of
4763 PyList_New.
4764
0430e8cb
TT
47652013-05-20 Tom Tromey <tromey@redhat.com>
4766
4767 * python/python.c (before_prompt_hook): Add cleanup to
4768 decref 'hook'.
4769
764123e4
TT
47702013-05-20 Tom Tromey <tromey@redhat.com>
4771
4772 * python/py-function.c (fnpy_init): Decref result of
4773 PyObject_GetAttrString.
4774
634c58be
TT
47752013-05-20 Tom Tromey <tromey@redhat.com>
4776
4777 * python/py-threadevent.c (get_event_thread): Use
4778 CPYCHECKER_RETURNS_BORROWED_REF.
4779 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4780 New define.
4781 (pspace_to_pspace_object, objfile_to_objfile_object)
4782 (find_thread_object): Use it.
4783
62eec1a5
TT
47842013-05-20 Tom Tromey <tromey@redhat.com>
4785
4786 * python/py-arch.c (arch_object_type): Use
4787 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4788 * python/py-block.c (block_syms_iterator_object_type):
4789 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4790 * python/py-bpevent.c (breakpoint_event_object_type):
4791 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4792 * python/py-cmd.c (cmdpy_object_type): Use
4793 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4794 * python/py-continueevent.c (continue_event_object_type):
4795 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4796 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4797 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4798 * python/py-events.h (thread_event_object_type):
4799 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4800 * python/py-evtregistry.c (eventregistry_object_type): Use
4801 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4802 * python/py-exitedevent.c (exited_event_object_type):
4803 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4804 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4805 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4806 * python/py-function.c (fnpy_object_type): Use
4807 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4808 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4809 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4810 * python/py-infthread.c (thread_object_type): Use
4811 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4812 * python/py-lazy-string.c (lazy_string_object_type):
4813 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4814 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4815 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4816 * python/py-objfile.c (objfile_object_type): Use
4817 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4818 * python/py-param.c (parmpy_object_type):
4819 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4820 * python/py-progspace.c (pspace_object_type):
4821 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4822 * python/py-signalevent.c (signal_event_object_type):
4823 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4824 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4825 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4826 * python/py-type.c (type_object_type, field_object_type)
4827 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4828 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4829 define.
4830 (value_object_type, block_object_type, symbol_object_type)
4831 (event_object_type, stop_event_object_type, breakpoint_object_type)
4832 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4833
81ea8796
AT
48342013-05-20 Andreas Tobler <andreas@fgznet.ch>
4835
4836 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4837 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4838
a2ce51a0
DE
48392013-05-20 Doug Evans <dje@google.com>
4840
4841 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4842 For Fission.
4843 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4844 reading_dwo_directly.
4845 (struct signatured_type): New member dwo_unit.
4846 (struct die_reader_specs): New member comp_dir.
4847 (create_signatured_type_table_from_index): Use malloc for
4848 all_type_units instead of objfile's obstack.
4849 (create_all_type_units): Ditto.
4850 (fill_in_sig_entry_from_dwo_entry): New function.
4851 (add_type_unit): New function.
4852 (lookup_dwo_signatured_type): New function.
4853 (lookup_dwp_signatured_type): New function.
4854 (lookup_signatured_type): New arg cu. All callers updated.
4855 (init_cu_die_reader): Initialize comp_dir.
4856 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4857 Change assert of matching type signatures to call error on mismatch.
4858 (lookup_dwo_unit): Add assert.
4859 (init_tu_and_read_dwo_dies): New function.
4860 (init_cutu_and_read_dies): Call it.
4861 (build_type_unit_groups): Handle case of no type unit groups created.
4862 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4863 (lookup_dwo_cutu): Tweak complaint.
4864 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4865 (dwarf2_per_objfile_free): Free all_type_units.
4866
a25cd31f
JB
48672013-05-20 Joel Brobecker <brobecker@adacore.com>
4868
4869 * windows-nat.c (handle_unload_dll): Add missing empty line.
4870
4d804846
JB
48712013-05-20 Joel Brobecker <brobecker@adacore.com>
4872
4873 * dwarf2read.c (prototyped_function_p): New function.
4874 (read_subroutine_type): Use it.
4875
1c432e72
JB
48762013-05-20 Joel Brobecker <brobecker@adacore.com>
4877
4878 * rs6000-aix-tdep.c: De-indent some example code provided
4879 as a comment.
4880
4feebbdd
EBM
48812013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4882
4883 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4884 region is ok for a hardware watchpoint using the new ptrace interface
4885 on Power servers.
4886
7d0c9981
DE
48872013-05-17 Doug Evans <dje@google.com>
4888
4889 * NEWS: Mention new maintenance commands check-symtabs, and
4890 expand-symtabs, and renamed check-psymtabs.
4891 * psymtab.c (maintenance_check_psymtabs): Renamed from
4892 maintenance_check_symtabs. Only process already-expanded symbol
4893 tables.
4894 (_initialize_psymtab): Update.
4895 * symmisc.c (maintenance_check_symtabs): New function.
4896 (maintenance_expand_name_matcher): New function
4897 (maintenance_expand_file_matcher): New function
4898 (maintenance_expand_symtabs): New function.
4899 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4900 commands.
4901
6cbc7c3d
TT
49022013-05-17 Tom Tromey <tromey@redhat.com>
4903
4904 * python/py-inferior.c (infpy_read_memory): Don't call
4905 PyErr_SetString if PyObject_New fails.
4906 * python/py-frame.c (frame_info_to_frame_object): Don't call
4907 PyErr_SetString if PyObject_New fails.
4908
a48b32c0
L
49092013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4910
4911 * acinclude.m4: Add check for dlopen in libdl.
4912 * configure.ac: Ditto.
4913 * configure: Regenerate.
4914
3de661e6
PM
49152013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4916
4917 * frame.c (frame_stash): Convert to htab.
4918 (frame_addr_hash): New function.
4919 (frame_addr_hash_eq): New function.
4920 (frame_stash_create): Convert function to create
4921 a hash table.
4922 (frame_stash_add): Convert function to add an entry to a hash
4923 table.
4924 (frame_stash_find): Convert function to search the hash table.
4925 (frame_stash_invalidate): Convert function to empty the hash
4926 table.
4927 (get_frame_id): Only add to stash if a frame_id is created.
4928 (_initialize_frame): Call frame_stash_create.
4929
bb4168a9 49302013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
4931
4932 * configure.ac: Ensure MIG is available when building for GNU Hurd
4933 hosts.
4934 * configure: Regenerate.
4935
d1be3247
JB
49362013-05-16 Joel Brobecker <brobecker@adacore.com>
4937
4938 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4939
b8fea896
JB
49402013-05-16 Joel Brobecker <brobecker@adacore.com>
4941
4942 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4943 all cleanups are done before returning from this function.
4944
af880d85
JB
49452013-05-15 Joel Brobecker <brobecker@adacore.com>
4946
4947 * utils.h: #include "exceptions.h".
4948 (enum errors): Remove partial declaration.
4949
356a5233
JB
49502013-05-15 Joel Brobecker <brobecker@adacore.com>
4951
4952 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4953 * gdbarch.h, gdbarch.c: Regenerate.
4954 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4955 handling.
4956
4957 * rs6000-aix-tdep.h: New file.
4958 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4959 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4960 "xml-utils.h".
4961 (struct field_info, struct ld_info_desc): New types.
4962 (ld_info32_desc, ld_info64_desc): New static constants.
4963 (struct ld_info): New type.
4964 (rs6000_aix_extract_ld_info): New function.
4965 (rs6000_aix_shared_library_to_xml): Likewise.
4966 (rs6000_aix_ld_info_to_xml): Likewise.
4967 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4968 (rs6000_aix_init_osabi): Add call to
4969 set_gdbarch_core_xfer_shared_libraries_aix.
4970 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4971 Remove "xml-utils.h" include.
4972 (LdInfo): Delete typedef.
4973 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4974 Delete macros.
4975 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4976 Adjust code accordingly.
4977 (rs6000_core_ldinfo): Delete, folded into
4978 rs6000_aix_core_xfer_shared_libraries_aix.
4979 (rs6000_xfer_shared_library): Delete.
4980 (rs6000_xfer_shared_libraries): Reimplement.
4981
742ce053
MM
49822013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4983
4984 * record.c (record_goto_cmdlist): New.
4985 (cmd_record_goto): Split into this ...
4986 (cmd_record_goto_begin): ... this
4987 (cmd_record_goto_end): ... and this.
4988 (_initialize_record): Change "record goto" to prefix command.
4989 Add commands for "record goto begin" and "record goto end".
4990 Add an alias for "record goto start" to "record goto begin".
4991
e93ba630
JK
49922013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4993
4994 * linespec.c (convert_linespec_to_sals): New comment for
4995 SOURCE_FILENAME assignment.
4996
5821aace
JK
49972013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4998
4999 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5000 internal_warning.
5001
a1b8c4cc
TT
50022013-05-14 Tom Tromey <tromey@redhat.com>
5003
5004 * eval.c (parse_and_eval_long): Make 'exp' const.
5005 * value.h (parse_and_eval_long): Update.
5006
23b3a2c3
TT
50072013-05-14 Tom Tromey <tromey@redhat.com>
5008
5009 * ui-file.c (gdb_fopen): Make arguments const.
5010 * ui-file.h (gdb_fopen): Make arguments const.
5011
ca623f82
TT
50122013-05-14 Tom Tromey <tromey@redhat.com>
5013
5014 * remote.c (remote_set_trace_notes): Make arguments const.
5015 * target.c (update_current_target): Update cast.
5016 * target.h (to_set_trace_notes): Make arguments const.
5017
503ebb2c
TT
50182013-05-14 Tom Tromey <tromey@redhat.com>
5019
5020 * go32-nat.c (go32_terminal_info): Make 'args' const.
5021 * inferior.h (child_terminal_info): Update.
5022 * inflow.c (child_terminal_info): Make 'args' const.
5023 * target.c (default_terminal_info): Make 'args' const.
5024 (debug_to_terminal_save_ours): Likewise.
5025 * target.h (struct target_ops) <to_terminal_info>: Make argument
5026 const.
5027
85e1311a
TT
50282013-05-13 Tom Tromey <tromey@redhat.com>
5029
5030 * gcore.c (create_gcore_bfd): Make 'filename' const.
5031 * gcore.h (create_gcore_bfd): Make 'filename' const.
5032 * record-full.c (record_full_save): Make 'recfilename' const.
5033 * target.c (target_save_record): Make 'filename' const.
5034 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5035 const.
5036 (target_save_record): Likewise.
5037
d62bfeaf
TT
50382013-05-13 Tom Tromey <tromey@redhat.com>
5039
f5aee5ee 5040 PR gdb/15338:
d62bfeaf
TT
5041 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5042 ranges section has been read.
5043
ac1ca910
TT
50442013-05-13 Tom Tromey <tromey@redhat.com>
5045
5046 PR exp/15364:
5047 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5048 STRUCTOP_PTR>: Return a not_lval value for
5049 EVAL_AVOID_SIDE_EFFECTS.
5050 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5051 for EVAL_AVOID_SIDE_EFFECTS.
5052
36d1c68c
JB
50532013-05-13 Joel Brobecker <brobecker@adacore.com>
5054
5055 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5056 floating point registers to register type before storing
5057 value.
5058 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5059 Likewise.
5060
21ff4686
TT
50612013-05-10 Joel Brobecker <brobecker@adacore.com>
5062 Tom Tromey <tromey@redhat.com>
5063
5064 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5065 New functions.
5066 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5067 Declare.
5068 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5069 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5070 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5071 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5072
d3685d60
TT
50732013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5074 Tom Tromey <tromey@redhat.com>
5075
5076 PR build/15414:
5077 * configure: Rebuild.
5078 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5079 with -Wno-format.
5080
eb9fe518
PA
50812013-05-10 Pedro Alves <palves@redhat.com>
5082
5083 * remote.c (_initialize_remote): Fix spelling of
5084 qXfer:traceframe-info:read packet in packet config command.
5085
9779ab84
PA
50862013-05-10 David Taylor <dtaylor@emc.com>
5087
5088 PR remote/15455
5089
5090 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5091 "QTro" at start of packet.
5092
060cfbef
JB
50932013-05-10 Joel Brobecker <brobecker@adacore.com>
5094
5095 * solib-aix.c (solib_aix_relocate_section_addresses):
5096 For the .bss section action, apply the same offset as
5097 the .data section.
5098
ab1c4e88
JB
50992013-05-10 Joel Brobecker <brobecker@adacore.com>
5100
5101 * solib-aix.c (solib_aix_relocate_section_addresses):
5102 Remove FIXME comment.
5103
c1357578
JB
51042013-05-10 Joel Brobecker <brobecker@adacore.com>
5105
5106 PR tdep/15420:
5107 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5108 New functions, directly copied from sparc-sol-thread.c.
5109 * sparc-sol-thread.c: Delete.
5110 * configure.ac: Remove code handling sparc-solaris-thread.c.
5111 * configure: Regenerate.
5112
1e611234
PM
51132013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5114
5115 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5116 filter logic.
5117 (backtrace_command): Add "no-filters" option parsing.
5118 (_initialize_stack): Alter help to reflect "no-filters" option.
5119 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5120 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5121 (py-frame.o): Add target
5122 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5123 filter files.
5124 * python/python.h: Add new frame filter constants, and flag enum.
5125 (apply_frame_filter): Add definition.
5126 * python/python.c (apply_frame_filter): New non-Python
5127 enabled function.
5128 * python/py-utils.c (py_xdecref): New function.
5129 (make_cleanup_py_xdecref): Ditto.
5130 * python/py-objfile.c: Declare frame_filters dictionary.
5131 (objfpy_dealloc): Add frame_filters dealloc.
5132 (objfpy_new): Initialize frame_filters attribute.
5133 (objfile_to_objfile_object): Ditto.
5134 (objfpy_get_frame_filters): New function.
5135 (objfpy_set_frame_filters): New function.
5136 * python/py-progspace.c: Declare frame_filters dictionary.
5137 (pspy_dealloc): Add frame_filters dealloc.
5138 (pspy_new): Initialize frame_filters attribute.
5139 (pspacee_to_pspace_object): Ditto.
5140 (pspy_get_frame_filters): New function.
5141 (pspy_set_frame_filters): New function.
5142 * python/py-framefilter.c: New file.
5143 * python/lib/gdb/command/frame_filters.py: New file.
5144 * python/lib/gdb/frames.py: New file.
5145 * python/lib/gdb/__init__.py: Initialize global frame_filters
5146 dictionary
5147 * python/lib/gdb/FrameDecorator.py: New file.
5148 * python/lib/gdb/FrameIterator.py: New file.
5149 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5150 * mi/mi-cmds.h: Declare.
5151 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5152 --no-frame-filter logic, and Python frame filter logic.
5153 (stack_enable_frame_filters): New function.
5154 (parse_no_frame_option): Ditto.
5155 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5156 filter logic.
5157 (mi_cmd_stack_list_locals): Ditto.
5158 (mi_cmd_stack_list_args): Ditto.
5159 (mi_cmd_stack_list_variables): Ditto.
5160 * NEWS: Add frame filter note.
5161
2cb9c859
DE
51622013-05-09 Doug Evans <dje@google.com>
5163
6bf667bb
DE
5164 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5165 All callers updated.
5166 (syms_from_objfile): Ditto. Make static.
5167 (symbol_file_add_with_addrs): Renamed from
5168 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5169 num_offsets. All callers updated.
5170 * symfile.h (syms_from_objfile): Delete.
5171
2cb9c859
DE
5172 * symfile.c (decrement_reading_symtab): Add assert.
5173 (increment_reading_symtab): Ditto.
5174
40aea477
JB
51752013-05-09 Joel Brobecker <brobecker@adacore.com>
5176
5177 * source.c (forward_search_command): Replace call to getc
5178 by call to fgetc.
5179 (reverse_search_command): Likewise.
5180
680d1742
DE
51812013-05-08 Doug Evans <dje@google.com>
5182
5183 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5184 matching test.
5185
17e760ae
JB
51862013-05-08 Joel Brobecker <brobecker@adacore.com>
5187
5188 * sol-thread.c (info_cb): Factorize the code a little.
5189
c0f5f490
JB
51902013-05-08 Joel Brobecker <brobecker@adacore.com>
5191
5192 * sol-thread.c (info_cb): Rework the output of the "maintenance
5193 info sol-threads" command a bit.
5194
5d74e061
JB
51952013-05-08 Joel Brobecker <brobecker@adacore.com>
5196
5197 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5198 Replace ti.ti_startfunc by ti.ti_pc.
5199
814a3ff7
JB
52002013-05-08 Joel Brobecker <brobecker@adacore.com>
5201
5202 * solib-aix.c (solib_aix_free_library_list): New function
5203 for the case where HAVE_LIBEXPAT is not defined.
5204
58ce7251
SDJ
52052013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5206
5207 PR breakpoints/15413:
5208 * breakpoint.c (condition_completer): Simplify the code to
5209 disconsider multiple locations of breakpoints when completing the
5210 "condition" command.
5211
be8b1ea6
PM
52122013-05-07 Pierre Muller <muller@sourceware.org>
5213
5214 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5215 instead of <sys/wait.h>.
5216
1e52bda6
PM
52172013-05-07 Pierre Muller <muller@sourceware.org>
5218
5219 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5220 trailing new line from warning message.
5221
27fd0c6b
PM
52222013-05-07 Pierre Muller <muller@sourceware.org>
5223
5224 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5225 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5226
e228ac87
JB
52272013-05-07 Joel Brobecker <brobecker@adacore.com>
5228
5229 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5230 error message (ARI fix).
5231
52322013-05-07 Joel Brobecker <brobecker@adacore.com>
5233
5234 * features/library-list-aix.dtd: Replace library-list by
5235 library-list-aix.
5236 * rs6000-nat.c: Replace library-list by library-list-aix
5237 throughout.
5238 * solib-aix.c: Likewise.
5239
52402013-05-07 Joel Brobecker <brobecker@adacore.com>
5241
5242 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5243 Renames TARGET_OBJECT_AIX_LIBRARIES.
5244 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5245 TARGET_OBJECT_LIBRARIES_AIX throughout.
5246 * solib-aix.c: Likwise.
5247
26a4dda9
YQ
52482013-05-07 Yao Qi <yao@codesourcery.com>
5249
5250 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5251 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5252
3582629f
YQ
52532013-05-07 Yao Qi <yao@codesourcery.com>
5254
5255 * solib-dsbt.c (enable_break): Declare.
5256 (dsbt_current_sos): Remove call to enable_break2.
5257 (enable_break2): Rename to enable_break. Set solib breakpoint
5258 on '_dl_debug_state'.
5259 (enable_break): Remove.
5260
aacbb8a5
LM
52612013-05-07 Luis Machado <lgustavo@codesourcery.com>
5262
5263 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5264 debug state prior to replicating existing hardware watchpoints or
5265 breakpoints.
5266
0c013353
JK
52672013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5268
5269 * gcore.c (gcore_create_callback): Ignore sections with
5270 separate_debug_objfile_backlink != NULL.
5271
a1217d97
SL
52722013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5273 Andrew Jenner <andrew@codesourcery.com>
5274 Chung-Lin Tang <cltang@codesourcery.com>
5275 Julian Brown <julian@codesourcery.com>
5276
5277 Based on the nios2-elf port from Altera Corporation.
5278
5279 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5280 nios2-linux-tdep.o.
5281 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5282 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5283 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5284 * nios2-tdep.h: New.
5285 * nios2-tdep.c: New.
5286 * nios2-linux-tdep.c: New.
5287 * features/Makefile (WHICH): Add nios2-linux.
5288 (nios2-linux-expedite): Set.
5289 * features/nios2-cpu.xml: New.
5290 * features/nios2.xml: New.
5291 * features/nios2-linux.xml: New.
5292 * features/nios2.c: New (autogenerated).
5293 * features/nios2-linux.c: New (autogenerated).
5294 * regformats/nios2-linux.dat: New (autogenerated).
5295 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5296 and commands.
5297
0892cb63
DE
52982013-05-06 Doug Evans <dje@google.com>
5299
3b7bacac
DE
5300 * symfile.c: Whitespace cleanup.
5301
0892cb63
DE
5302 * solist.h (struct target_so_ops): New member clear_so.
5303 * solib-svr4.c (svr4_clear_so): New function.
5304 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5305 * solib.c (clear_so): Renamed from free_so_symbols.
5306 All callers updated. Call target clear_so if it exists.
5307
40501e00
TT
53082013-05-06 Tom Tromey <tromey@redhat.com>
5309
5310 * ada-lang.c (ada_value_primitive_packed_val): Don't
5311 call value_incref.
5312 * value.c (set_value_parent): Incref the new parent and decref
5313 the old parent.
5314 (value_copy, value_primitive_field): Use set_value_parent.
5315
b6807d98
TT
53162013-05-06 Tom Tromey <tromey@redhat.com>
5317
5318 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5319 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5320 if needed.
5321 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5322 * dwarf2read.c (write_constant_as_bytes)
5323 (dwarf2_fetch_constant_bytes): New functions.
5324
3aef2284
TT
53252013-05-06 Tom Tromey <tromey@redhat.com>
5326
5327 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5328 parameters.
5329 (dwarf2_const_value_attr): Update.
5330
66f65e2b
TT
53312013-05-06 Tom Tromey <tromey@redhat.com>
5332
5333 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5334 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5335 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5336 Remove declaration.
5337
7919a973
TT
53382013-05-06 Tom Tromey <tromey@redhat.com>
5339
5340 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5341 objfile's obstack.
5342
a7bfba49
DE
53432013-05-06 Doug Evans <dje@google.com>
5344
3189cb12
DE
5345 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5346 * stabsread.h (process_one_symbol): Update declaration.
5347 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5348 * elfread.c (elf_symfile_relocate_probe): Ditto.
5349 * psymtab.c (relocate_psymtabs): Ditto.
5350 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5351 (objfile_relocate): Ditto.
5352 * objfiles.h (objfile_relocate): Update declaration.
5353 * symfile.c (relative_addr_info_to_section_offsets): Constify
5354 addrs parameter.
5355 (default_symfile_offsets): Ditto.
5356 (syms_from_objfile_1): Constify offsets parameter.
5357 (syms_from_objfile): Ditto.
5358 (symbol_file_add_with_addrs_or_offsets): Ditto.
5359 (symfile_map_offsets_to_segments): Constify data parameter.
5360 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5361 delta parameters of member relocate.
5362 (struct sym_probe_fns): Constify new_offsets,
5363 delta parameters of member sym_relocate_probe.
5364 (struct sym_fns): Constify section_addr_info parameter of member
5365 sym_offsets.
5366 (relative_addr_info_to_section_offsets): Update declaration.
5367 (default_symfile_offsets): Ditto.
5368 (syms_from_objfile): Ditto.
5369 (symfile_map_offsets_to_segments): Ditto.
5370
a7bfba49
DE
5371 * symfile.c (syms_from_objfile_1): Use correct section count when
5372 objfile->sf == NULL.
5373
5f8e0b8f
MF
53742013-05-06 Mike Frysinger <vapier@gentoo.org>
5375
5376 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5377
ea52d893
DE
53782013-05-06 Doug Evans <dje@google.com>
5379
5380 * psympriv.h (struct partial_symtab): Augment comment for member
5381 section_offsets.
5382
4d1eb6b4
JB
53832013-05-06 Joel Brobecker <brobecker@adacore.com>
5384
5385 Reimplement shared library support on ppc-aix...
5386 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5387 * features/library-list-aix.dtd: New file.
5388 * solib-aix.h, solib-aix.c: New file.
5389 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5390 (rs6000_find_toc_address_hook): Delete.
5391 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5392 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5393 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5394 "xml-utils.h".
5395 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5396 (vmap_symtab, fixup_breakpoints): Delete.
5397 (rs6000_xfer_shared_libraries): New function.
5398 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5399 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5400 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5401 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5402 (rs6000_xfer_shared_library): New function.
5403 (find_toc_address): Delete.
5404 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5405 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5406 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5407 before creating minimal symbol. Adjust function description
5408 accordingly.
5409 (scan_xcoff_symtab): Replace call to
5410 prim_record_minimal_symbol_and_info by call to
5411 record_minimal_symbol.
5412 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5413 around default_symfile_offsets.
5414 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5415 powerpc-aix targets.
5416 * config/rs6000/nm-rs6000.h: Delete.
5417 * config/powerpc/aix.mh (NAT_FILE): Delete.
5418 (NATDEPFILES): Remove xcoffsolib.o.
5419 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5420 (ALL_TARGET_OBS): Add solib-aix.o.
5421 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5422 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5423 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5424 * xcoffsolib.h, xcoffsolib.c: Delete.
5425
5426 * solib.c (reload_shared_libraries): Remove reference to
5427 SOLIB_CREATE_INFERIOR_HOOK.
5428 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5429 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5430 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5431 comment.
5432 * corelow.c (deprecated_core_resize_section_table): Delete.
5433 * exec.c: Remove include of xcoffsolib.h".
5434 (map_vmap, vmap): Delete.
5435 (exec_close_1): Remove references to vmap.
5436 (exec_file_attach): Remove vmap handling code, and reference
5437 to DEPRECATED_IBM6000_TARGET.
5438 (bfdsec_to_vmap): Delete.
5439 (exec_files_info): Remove block of code handling VMAP.
5440 * infcmd.c (post_create_inferior): Remove reference to
5441 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5442 * infrun.c (follow_exec): Remove reference to
5443 SOLIB_CREATE_INFERIOR_HOOK.
5444 * stack.c (print_frame): Remove reference to PC_SOLIB.
5445 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5446 (dsbt_relocate_main_executable): Likewise.
5447 * solib-frv.c (frv_current_sos): Likewise.
5448
0c4f667c
JB
54492013-05-06 Joel Brobecker <brobecker@adacore.com>
5450
5451 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5452 to target_write_memory and target_read_memory.
5453
726ce67c
JB
54542013-05-06 Joel Brobecker <brobecker@adacore.com>
5455
5456 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5457 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5458
c8c9911f
JB
54592013-05-06 Joel Brobecker <brobecker@adacore.com>
5460
5461 * darwin-nat.c: Replace all "%x" instances in format strings
5462 into "0x%x" throughout.
5463
fda184b6
JB
54642013-05-06 Joel Brobecker <brobecker@adacore.com>
5465
5466 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5467 gdb_assert by call to MACH_CHECK_ERROR.
5468 (darwin_attach_pid): Raise an error rather than a failed
5469 assertion when various system calls failed. Report a warning
5470 instead of raising a failed assertion when PREV_NOT is not NULL
5471 after call to mach_port_request_notification.
5472 (darwin_ptrace_me): Raise an error rather than a failed
5473 assertion when read returns nonzero.
5474
d1d69afb
JB
54752013-05-06 Joel Brobecker <brobecker@adacore.com>
5476
5477 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5478
dc90b24d
JK
54792013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5482
faab9922
JK
54832013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5484
5485 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5486 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5487 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5488 a stale cleanup. Fix double free of NAME.
5489
e0ea48a0
EZ
54902013-05-04 Eli Zaretskii <eliz@gnu.org>
5491
5492 * windows-nat.c (windows_delete_thread): Accept an additional
5493 argument, the thread's exit code, and announce thread death when
5494 print_thread_events is non-zero and we are deleting a thread that
5495 is not the main thread.
5496 (get_windows_debug_event): Pass thread exit code to
5497 windows_delete_thread.
5498
83b2706a
KB
54992013-05-03 Kevin Buettner <kevinb@redhat.com>
5500
5501 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5502 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5503 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5504 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5505 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5506 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5507 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5508 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5509 (gdbarch_tdep): New struct.
5510 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5511 E_NUM_REGS.
5512 (v850e3v5_register_name): New function.
5513 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5514 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5515 code handling the struct return conventions for the RH850 ABI.
5516 Update all callers.
5517 (v850_eight_byte_align_p): New function.
5518 (v850_push_call_dummy): Push structs by value, not by reference
5519 for the RH850 ABI. Add support for eight byte alignment.
5520 (v850_dbtrap_breakpoint_from_pc): New function.
5521 (v850_gdbarch_init): Add ABI detection code. Register
5522 v850e3v5_register_name for the v850e3v5 architecture. Set the
5523 number of registers for v850e3v5. Register
5524 v850_dbtrap_breakpoint_from_pc as appropriate.
5525 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5526
d445b2f6
DE
55272013-05-03 Doug Evans <dje@google.com>
5528
5529 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5530 of bfd_count_sections.
5531 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5532 * symfile.c (default_symfile_offsets): Ditto.
5533 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5534 one entry, not bfd_count_sections entries.
5535
b3ce41ea
KB
55362013-05-03 Kevin Buettner <kevinb@redhat.com>
5537
5538 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5539 `save' and `restore' register groups. Don't include SPL
5540 or SPH in these groups.
5541 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5542 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5543 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5544 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5545 dwarf2_append_unwinders().
5546
96f7d3f1
PW
55472013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5548
5549 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5550 ignore SIGINT and SIGTRAP in case these internal signals are
5551 caught explicitely.
5552
b9dd1947
JB
55532013-05-01 Joel Brobecker <brobecker@adacore.com>
5554
5555 * darwin-nat.c (darwin_read_write_inferior): Change types
5556 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5557 of copy_count to "mach_msg_type_number_t".
5558 (darwin_read_dyld_info): Change type of parameter
5559 rdaddr to "gdb_byte *".
5560
4ca18a63
JB
55612013-05-01 Joel Brobecker <brobecker@adacore.com>
5562
5563 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5564 of &info->load_map from "char *" to "gdb_byte *".
5565
2b692d32
JB
55662013-05-01 Joel Brobecker <brobecker@adacore.com>
5567
5568 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5569 from "char *" to "gdb_byte *".
5570 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5571
a98c29a0
DE
55722013-04-30 Doug Evans <dje@google.com>
5573
6a506a2d
DE
5574 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5575 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5576 DWO stub. If DWO isn't found, just use stub.
5577 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5578
a98c29a0
DE
5579 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5580 calling init_cutu_and_read_dies.
5581
f92b06da
WT
55822013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5583
5584 * target-descriptions.c (maint_print_c_tdesc_cmd):
5585 Add case to parse structures as register types and
5586 bitfields.
5587
95eebdcc
WT
55882013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5589
5590 * MAINTAINERS (Write After Approval): Add myself to the list.
5591
019c1128
JB
55922013-04-30 Joel Brobecker <brobecker@adacore.com>
5593
5594 * sol-thread.c (rw_common): Change type of parameter "buf"
5595 to "gdb_byte *".
5596 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5597 rw_common to "gdb_byte *" instead of "char *".
5598
5812197c
JB
55992013-04-30 Joel Brobecker <brobecker@adacore.com>
5600
5601 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5602 of local variable msym to const struct bound_minimal_symbol.
5603 Adjust use accordingly.
5604 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5605
ecccb813
TS
56062013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5607
5608 * i386gnu-nat.c (CREG_OFFSET): New macro.
5609 (creg_offset): New array.
5610 (CREG_ADDR): Use creg_offset instead of reg_offset.
5611
f1d02dd4 56122013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5613
5614 * mep-tdep.c (mep_write_pc): Delete.
5615 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5616 Add call to set_gdbarch_pc_regnum.
5617
f1d02dd4 56182013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5619
5620 * common/filestuff.c: Replace #include <dirent.h> by
5621 #include "gdb_dirent.h".
5622
f1d02dd4 56232013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5624
5625 * common/filestuff.c: Replace #include <sys/stat.h> by
5626 #include "gdb_stat.h".
5627
b385a60d
PM
56282013-04-29 Pierre Muller <muller@sourceware.org>
5629
5630 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5631 editCase function rule.
5632 (get_DW_AT_signature_type): Likewise.
5633
d27b54ad
JB
56342013-04-29 Joel Brobecker <brobecker@adacore.com>
5635
5636 * m32r-tdep.c (m32r_write_pc): Delete.
5637 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5638 Add call to set_gdbarch_pc_regnum.
5639
47d21dc5
PM
56402013-04-29 Pierre Muller <muller@sourceware.org>
5641
5642 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5643
9056882e
JB
56442013-04-29 Joel Brobecker <brobecker@adacore.com>
5645
5646 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5647
7ee4732a
YQ
56482013-04-28 Yao Qi <yao@codesourcery.com>
5649
5650 * solib-dsbt.c (fetch_loadmap): Re-indent.
5651 (displacement_from_map, enable_break2): Likewise.
5652 (dsbt_relocate_section_addresses): Likewise.
5653
2260af53 56542013-04-26 Joel Brobecker <brobecker@adacore.com>
5655
5656 GDB 7.6 released.
5657
ff546935
TT
56582013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5659
5660 PR corefiles/14983:
5661 * dwarf2read.c (process_full_comp_unit): Always create a static
5662 block.
5663
40fb6c5e
HZ
56642013-04-25 Hui Zhu <hui@codesourcery.com>
5665
5666 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5667 to loc->cmd_bytecode.
5668
74e04d1c
DE
56692013-04-24 Doug Evans <dje@google.com>
5670
5671 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5672
3cf62c1d
KS
56732013-04-22 Keith Seitz <keiths@redhat.com>
5674
5675 * tracepoint.c (trace_save): Call the writer's start method.
5676
bf9e4d0c
MB
56772013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5678
5679 PR gdb/10462
5680 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5681 before argument.
5682
5d71132c
TT
56832013-04-23 Tom Tromey <tromey@redhat.com>
5684
5685 * common/filestuff.c: Check USE_WIN32API before including
5686 sys/socket.h.
5687 (HAVE_F_GETFD): New define.
5688 (mark_cloexec): Check HAVE_F_GETFD.
5689 (gdb_open_cloexec): Change 'mode' to unsigned long.
5690 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5691 (gdb_pipe_cloexec): Check HAVE_PIPE.
5692 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5693 long.
5694
a11cfd87
HZ
56952013-04-23 Hui Zhu <hui@codesourcery.com>
5696
5697 PR gdb/15293
a11cfd87
HZ
5698 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5699
2d9442cc
HZ
57002013-04-23 Hui Zhu <hui@codesourcery.com>
5701
5702 PR gdb/15165
2d9442cc
HZ
5703 * breakpoint.c (dprintf_print_recreate): New.
5704 (save_breakpoints): Let it not save dprintf commands.
5705 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5706
614c279d
TT
57072013-04-22 Tom Tromey <tromey@redhat.com>
5708
5709 PR gdb/7912:
5710 * Makefile.in (SFILES): Add filestuff.c
5711 (COMMON_OBS): Add filestuff.o.
5712 (filestuff.o): New target.
5713 * auto-load.c (auto_load_objfile_script_1): Use
5714 gdb_fopen_cloexec.
5715 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5716 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5717 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5718 * common/agent.c (gdb_connect_sync_socket): Use
5719 gdb_socket_cloexec.
5720 * common/filestuff.c: New file.
5721 * common/filestuff.h: New file.
5722 * common/linux-osdata.c (linux_common_core_of_thread)
5723 (command_from_pid, commandline_from_pid, print_source_lines)
5724 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5725 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5726 gdb_fopen_cloexec.
5727 * common/linux-procfs.c (linux_proc_get_int)
5728 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5729 * config.in, configure: Rebuild.
5730 * configure.ac: Don't check for sys/socket.h. Check for
5731 fdwalk, pipe2.
5732 * corelow.c (core_open): Use gdb_open_cloexec.
5733 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5734 * fork-child.c (fork_inferior): Call close_most_fds.
5735 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5736 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5737 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5738 Use gdb_fopen_cloexec.
5739 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5740 gdb_open_cloexec.
5741 (linux_async_pipe): Use gdb_pipe_cloexec.
5742 * remote-fileio.c (remote_fileio_func_open): Use
5743 gdb_open_cloexec.
5744 * remote.c (remote_file_put, remote_file_get): Use
5745 gdb_fopen_cloexec.
5746 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5747 close_most_fds.
5748 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5749 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5750 * solib.c (solib_find): Use gdb_open_cloexec.
5751 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5752 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5753 (tfile_open): Use gdb_open_cloexec.
5754 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5755 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5756 * xml-support.c (xml_fetch_content_from_file): Use
5757 gdb_fopen_cloexec.
5758 * main.c (captured_main): Call notice_open_fds.
5759
5fda2332
EBM
57602013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5761
5762 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5763 'char *' to 'gdb_byte *'.
5764 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5765 'gdb_byte'.
5766
eb6c553b
YQ
57672013-04-22 Yao Qi <yao@codesourcery.com>
5768
5769 * infrun.c: Fix typo in comment.
5770
9991b207
SDJ
57712013-04-22 Andrew Haley <aph@redhat.com>
5772
5773 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5774 instead of "long".
5775
8b4833e3
YQ
57762013-04-20 Yao Qi <yao@codesourcery.com>
5777
5778 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5779 'char *' to 'gdb_byte *'. Cast the return value of
5780 'bt_ctf_get_char_array' to 'gdb_byte *'.
5781
bd3f3b55
PA
57822013-04-19 Pedro Alves <palves@redhat.com>
5783
5784 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5785 -Wpointer-sign.
5786 * configure: Regenerate.
5787
c49e7f76
PA
57882013-04-19 Pedro Alves <palves@redhat.com>
5789
5790 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5791 'void *'.
5792
12ff8552
PA
57932013-04-19 Pedro Alves <palves@redhat.com>
5794
5795 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5796 Change type of 'myaddr' parameter to gdb_byte pointer.
5797 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5798 to 'long long' pointer instead of to 'unsigned long long'.
5799 (monitor_write_memory_block, monitor_read_memory_single)
5800 (monitor_read_memory): Change type of 'myaddr' parameter to
5801 gdb_byte pointer.
5802
9c37696b
PA
58032013-04-19 Pedro Alves <palves@redhat.com>
5804
5805 * record.c (validate_history_size): Make parameter 'setting'
5806 unsigned.
5807
a398505b
PA
58082013-04-19 Pedro Alves <palves@redhat.com>
5809
5810 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5811 to 'gdb_byte *'.
5812
9f8afa72
PA
58132013-04-19 Pedro Alves <palves@redhat.com>
5814
5815 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5816 local to int.
5817
c714b426
PA
58182013-04-19 Pedro Alves <palves@redhat.com>
5819
5820 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5821 * ada-tasks.c (read_fat_string_value): Likewise.
5822
507a579c
PA
58232013-04-19 Pedro Alves <palves@redhat.com>
5824
5825 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5826 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5827 'offset', and adjust.
5828
f9d83a0b
PA
58292013-04-19 Pedro Alves <palves@redhat.com>
5830
5831 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5832 (read_index_from_section): Add cast to 'char *'.
5833
745eb4fd
PA
58342013-04-19 Pedro Alves <palves@redhat.com>
5835
5836 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5837
db5be46f
PA
58382013-04-19 Pedro Alves <palves@redhat.com>
5839
5840 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5841
0f928d68
PA
58422013-04-19 Pedro Alves <palves@redhat.com>
5843
5844 * record-full.c (record_full_get_bookmark): Change local 'ret'
5845 type to char * and add cast to gdb_byte *.
5846 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5847 string.
5848 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5849
89f6d837
PA
58502013-04-19 Pedro Alves <palves@redhat.com>
5851
5852 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5853 * python/py-prettyprint.c (print_string_repr): Change type of
5854 'output' local to char *. Add cast to gdb_byte * in
5855 LA_PRINT_STRING call.
5856 (print_children): Change type of 'output' local to char *.
5857 * python/py-value.c (valpy_string): Add cast to const char * in
5858 PyUnicode_Decode call.
5859
ce6ec7d8
PA
58602013-04-19 Pedro Alves <palves@redhat.com>
5861
5862 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5863 and change its type to 'const char *'. Adjust.
5864 (mips_send_packet): Add cast to 'char *', and remove cast to
5865 'unsigned char *'.
5866 (mips_receive_packet): Remove cast to 'unsigned char *'.
5867 (mips_load_srec): Use bfd_byte.
5868 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5869 (pmon_checkset): Make 'value' parameter unsigned.
5870
fda0389f
PA
58712013-04-19 Pedro Alves <palves@redhat.com>
5872
5873 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5874
bc20a4af
PA
58752013-04-19 Pedro Alves <palves@redhat.com>
5876
5877 * remote.c (remote_write_bytes_aux, compare_sections_command)
5878 (remote_read_qxfer)
5879 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5880 (remote_hostio_readlink, remote_bfd_iovec_pread)
5881 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5882 binary buffer, and char when buffer is used as string.
5883 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5884 (trace_save, tfile_open, traceframe_walk_blocks)
5885 (tfile_fetch_registers): Likewise.
5886
c628b528
PA
58872013-04-19 Pedro Alves <palves@redhat.com>
5888
5889 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5890 buffer and size_t size. Adjust.
5891 * ser-base.h (ser_base_write): Adjust.
5892 * ser-go32.c (cnts): Change type to size_t.
5893 (dos_write): Change prototype -- take 'void *'
5894 buffer and size_t size. Adjust.
5895 (dos_info): Print elements of 'cnts' as unsigned long.
5896 * serial.c (serial_write): Likewise.
5897 * serial.h (serial_write): Adjust.
5898 (struct serial_ops) <write>: Change prototype -- take 'void *'
5899 buffer and size_t size. Adjust.
5900
51a5cd90
PA
59012013-04-19 Pedro Alves <palves@redhat.com>
5902
5903 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5904 gdb_byte *.
5905 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5906
a9933661
PA
59072013-04-19 Pedro Alves <palves@redhat.com>
5908
5909 * alpha-tdep.c (alpha_extract_return_value): Use
5910 regcache_cooked_read_unsigned to read 'v0'.
5911
19afdd07
PA
59122013-04-19 Pedro Alves <palves@redhat.com>
5913
5914 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5915 parameters 'at', 'as' and 'offset' to uint32_t.
5916
96b32e50
PA
59172013-04-19 Pedro Alves <palves@redhat.com>
5918
5919 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5920 'is64' to signed 'int'.
5921
eb1bd1fb
PA
59222013-04-19 Pedro Alves <palves@redhat.com>
5923
5924 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5925 parameter to int *.
5926
463920bf
PA
59272013-04-19 Pedro Alves <palves@redhat.com>
5928
5929 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5930 'insnbuf' buffer type to unsigned int[].
5931
70242eb1
PA
59322013-04-19 Pedro Alves <palves@redhat.com>
5933
5934 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5935
9d1dd0e2
PA
59362013-04-19 Pedro Alves <palves@redhat.com>
5937
5938 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5939 unsigned long *.
5940
44096aee
PA
59412013-04-19 Pedro Alves <palves@redhat.com>
5942
5943 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5944 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5945 UINT_MAX.
5946 * mips-tdep.c (heuristic_fence_post): Change type to int.
5947 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5948
e4286e57
PA
59492013-04-19 Pedro Alves <palves@redhat.com>
5950
5951 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5952 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5953 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5954
001f13d8
PA
59552013-04-19 Pedro Alves <palves@redhat.com>
5956
5957 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5958 it to get a string view of the byte buffer.
5959 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5960 type to gdb_byte *. Adjust.
5961 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5962 Change local to char *.
5963 * solib-darwin.c (find_program_interpreter): Change return type to
5964 char *. Adjust.
5965 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5966 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5967 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5968 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5969 * solib-svr4.c (find_program_interpreter): Change return type to
5970 char *. Adjust.
5971 (enable_break): Change local 'interp_name' to char *.
5972 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5973 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5974 (spu_pseudo_register_write_spu): Use char for string buffer.
5975 Adjust.
5976 (info_spu_event_command, info_spu_signal_command): Add casts to
5977 'char *'.
5978
948f8e3d
PA
59792013-04-19 Pedro Alves <palves@redhat.com>
5980
5981 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5982 gdb_byte[].
5983 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5984 * ada-lang.c (ada_value_assign): Use gdb_byte.
5985 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5986 (alphanbsd_sigtramp_offset): Use gdb_byte.
5987 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5988 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5989 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5990 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5991 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5992 * arm-tdep.c (arm_stub_unwind_sniffer)
5993 (arm_displaced_init_closure): Use gdb_byte.
5994 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5995 (arm_default_thumb_le_breakpoint)
5996 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5997 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5998 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5999 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6000 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6001 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6002 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6003 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6004 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6005 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6006 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6007 (cris_store_return_value, cris_extract_return_value): Use
6008 gdb_byte.
6009 (constraint): Change type of parameter to char * from signed
6010 char*. Use gdb_byte.
6011 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6012 of local buffer to gdb_byte *.
6013 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6014 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6015 (add_address_entry): Change type of local buffer to gdb_byte[].
6016 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6017 (frv_push_dummy_call): Use gdb_byte.
6018 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6019 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6020 (hppa_hpux_supply_save_state): Use gdb_byte.
6021 * hppa-tdep.c (hppa32_push_dummy_call)
6022 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6023 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6024 (slotN_contents, replace_slotN_contents): Change type of parameter
6025 to gdb_byte *.
6026 (fetch_instruction, ia64_pseudo_register_write)
6027 (ia64_register_to_value, ia64_value_to_register)
6028 (ia64_extract_return_value, ia64_store_return_value)
6029 (ia64_push_dummy_call): Use gdb_byte.
6030 * m32c-tdep.c (m32c_return_value): Remove cast.
6031 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6032 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6033 gdb_byte.
6034 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6035 * mn10300-tdep.c (mn10300_store_return_value)
6036 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6037 gdb_byte.
6038 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6039 (moxie_process_record): Remove casts.
6040 * ppc-ravenscar-thread.c (supply_register_at_address)
6041 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6042 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6043 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6044 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6045 * remote.c (compare_sections_command): Use gdb_byte.
6046 * score-tdep.c (score7_free_memblock): Change type of parameter to
6047 gdb_byte *.
6048 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6049 gdb_byte *. Use gdb_byte.
6050 (sh_push_dummy_call_fpu): Use gdb_byte.
6051 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6052 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6053 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6054 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6055 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6056 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6057 (sh64_store_return_value, sh64_register_convert_to_virtual):
6058 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6059 (sh64_pseudo_register_write): Use gdb_byte.
6060 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6061 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6062 buffer.
6063 (irix_current_sos): Use gdb_byte.
6064 * solib-som.c (som_current_sos): Use gdb_byte.
6065 * sparc-ravenscar-thread.c (supply_register_at_address)
6066 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6067 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6068 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6069 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6070 'gdb_byte *'.
6071 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6072 'gdb_byte *'.
6073 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6074 * xstormy16-tdep.c (xstormy16_extract_return_value)
6075 (xstormy16_store_return_value): Change parameter type to
6076 'gdb_byte *'. Adjust.
6077 (xstormy16_push_dummy_call): Use gdb_byte.
6078 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6079 (call0_analyze_prologue, execute_code): Use gdb_byte.
6080
433730c9
PA
60812013-04-19 Vladimir Kargov <kargov@gmail.com>
6082 Pedro Alves <palves@redhat.com>
6083
6084 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6085 value contents.
6086
ac9ec31b
DE
60872013-04-17 Doug Evans <dje@google.com>
6088
6089 * dwarf2read.c (struct signatured_type): New member type.
6090 (struct attribute): Replace member signatured_type with signature.
6091 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6092 (read_call_site_scope): Call follow_die_ref instead of
6093 follow_die_ref_or_sig.
6094 (read_structure_type): Rewrite handling of signatured types.
6095 (read_enumeration_type): Ditto.
6096 (read_attribute_value): Update.
6097 (build_error_marker_type): New function.
6098 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6099 Don't call error for bad types, just build an error marker type.
6100 (dump_die_shallow): Update.
6101 (follow_die_sig_1): Renamed from follow_die_sig.
6102 Don't call error for bad types, instead return NULL.
6103 (follow_die_sig): New function.
6104 (get_signatured_type, get_DW_AT_signature_type): New functions.
6105
e546e8bb
YZ
61062013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6107
6108 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6109 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6110 function.
e546e8bb 6111
ab116149
YQ
61122013-04-17 Yao Qi <yao@codesourcery.com>
6113
6114 * top.c (print_gdb_configuration): Print configure-time
6115 parameter on using libbabeltrace or not.
6116
488a42b8
PA
61172013-04-16 Pedro Alves <palves@redhat.com>
6118
6119 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6120
f5fb825b
PA
61212013-04-16 Pedro Alves <palves@redhat.com>
6122
85d494ea 6123 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6124 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6125
e1154999
PA
61262013-04-16 Pedro Alves <palves@redhat.com>
6127
6128 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6129 * common/glibc_thread_db.h: ... this new file ...
6130 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6131
e3b50a7f
PA
61322013-04-16 Will Newton <will.newton@gmail.com>
6133 Pedro Alves <palves@redhat.com>
6134
6135 PR build/11881
6136
6137 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6138 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6139 HAVE_THREAD_DB_H.
6140
1c2e4450
PA
61412013-04-16 Pedro Alves <palves@redhat.com>
6142 Eli Zaretskii <eliz@gnu.org>
6143
6144 * NEWS: Mention "set foo unlimited".
6145
4031ecc5
DE
61462013-04-15 Doug Evans <dje@google.com>
6147
19c3d4c9
DE
6148 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6149 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6150 (create_dwo_cu_reader): Renamed from
6151 create_dwo_debug_info_hash_table_reader.
6152 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6153 Remove support for multiple CUs in a DWO file.
6154 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6155
4031ecc5
DE
6156 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6157 instead of phex.
6158 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6159 (create_dwo_in_dwp): Ditto.
6160
b340913d
TT
61612013-04-15 Tom Tromey <tromey@redhat.com>
6162
6163 * NEWS: Move recent entries into "since 7.6" section.
6164
cc16e6c9
TT
61652013-04-15 Tom Tromey <tromey@redhat.com>
6166
6167 PR c++/13588:
6168 * NEWS: Update.
6169 * break-catch-throw.c (struct exception_catchpoint)
6170 <exception_rx, pattern>: New fields.
6171 (fetch_probe_arguments, dtor_exception_catchpoint)
6172 (check_status_exception_catchpoint)
6173 (print_one_detail_exception_catchpoint): New functions.
6174 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6175 Compile regular expression if needed.
6176 (extract_exception_regexp): New function.
6177 (catch_exception_command_1): Use extract_exception_regexp.
6178 (compute_exception): Use fetch_probe_arguments.
6179 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6180 and check_status fields.
6181 * cp-abi.c (cplus_typename_from_type_info): New function.
6182 * cp-abi.h (cplus_typename_from_type_info): Declare.
6183 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6184 * gdb_regex.h (compile_rx_or_error): Declare.
6185 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6186 comment.
6187 (init_gnuv3_ops): Set get_type_from_type_info field.
6188 * probe.c (compile_rx_or_error): Move...
6189 * utils.c (compile_rx_or_error): ... here.
6190
72f1fe8a
TT
61912013-04-15 Tom Tromey <tromey@redhat.com>
6192
6193 PR c++/15176:
6194 * NEWS: Update.
6195 * break-catch-throw.c (compute_exception): New function.
6196 (exception_funcs): New global.
6197 (_initialize_break_catch_throw): Create $_exception.
6198 * cp-abi.c (cplus_type_from_type_info): New function.
6199 * cp-abi.h (cplus_type_from_type_info): Declare.
6200 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6201 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6202 (gnuv3_get_type_from_type_info): New functions.
6203 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6204
fc4746a2
TT
62052013-04-15 Tom Tromey <tromey@redhat.com>
6206
6207 * break-catch-throw.c (struct exception_names): New.
6208 (exception_functions): Change type.
6209 (re_set_exception_catchpoint): Look for SDT probes.
6210
15a73f56
TT
62112013-04-15 Tom Tromey <tromey@redhat.com>
6212
6213 PR c++/10119:
6214 * break-catch-throw.c (exception_functions): New global.
6215 (gnu_v3_exception_catchpoint_ops): Move earlier.
6216 (struct exception_catchpoint): New.
6217 (classify_exception_breakpoint): Rewrite.
6218 (re_set_exception_catchpoint): New function.
6219 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6220 Allocate a struct exception_catchpoint.
6221 (catch_exception_command_1): Update.
6222 (initialize_throw_catchpoint_ops): Set 're_set' method.
6223
916703c0
TT
62242013-04-15 Tom Tromey <tromey@redhat.com>
6225
6226 * Makefile.in (SFILES): Add break-catch-throw.c
6227 (COMMON_OBS): Add break-catch-throw.o.
6228 * break-catch-throw.c: New file.
6229 * breakpoint.c: Move exception-catching code to new file.
6230 (ep_parse_optional_if_clause): No longer static.
6231 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6232
6e72ca20
TT
62332013-04-15 Tom Tromey <tromey@redhat.com>
6234
6235 PR c++/9065:
6236 * NEWS: Update.
6237 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6238 * c-exp.y (TYPEID): New token.
6239 (exp): Add new TYPEID productions.
6240 (ident_tokens): Add "typeid".
6241 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6242 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6243 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6244 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6245 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6246 case.
6247 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6248 (build_std_type_info_type, gnuv3_get_typeid_type)
6249 (gnuv3_get_typeid): New functions.
6250 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6251 new fields on ABI object.
6252 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6253 * std-operator.def (OP_TYPEID): New.
6254
715c6909
TT
62552013-04-15 Tom Tromey <tromey@redhat.com>
6256
6257 * elfread.c (elf_symtab_read): Install versioned symbol under
6258 unversioned name as well.
6259
8de20a37
TT
62602013-04-15 Tom Tromey <tromey@redhat.com>
6261
6262 PR c++/11990:
6263 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6264 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6265 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6266 (gdb_demangle): New function.
6267 * cp-support.h (gdb_demangle): Declare.
6268 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6269 (dwarf2_name): Use gdb_demangle.
6270 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6271 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6272 suffixes from name.
6273 (gnuv3_print_method_ptr): Use gdb_demangle.
6274 * jv-lang.c (java_demangle): Use gdb_demangle.
6275 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6276 * language.c (unk_lang_demangle): Use gdb_demangle.
6277 * symtab.c (symbol_find_demangled_name)
6278 (demangle_for_lookup): Use gdb_demangle.
6279
591f19e8
TT
62802013-04-15 Tom Tromey <tromey@redhat.com>
6281
6282 PR c++/12824:
6283 * NEWS: Update.
6284 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6285 New constant.
6286 (classify_exception_breakpoint): New function.
6287 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6288 (print_mention_exception_catchpoint)
6289 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6290 (catch_exception_command_1): Handle "rethrow" catchpoint.
6291 (catch_rethrow_command): New function.
6292 (_initialize_breakpoint): Add "catch rethrow" command.
6293
4d40cad2
PM
62942013-04-15 Pierre Muller <muller@sourceware.org>
6295
6296 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6297 set_gdbarch_write_pc as deprecated anymore.
6298
30bcb456
JB
62992013-04-15 Joel Brobecker <brobecker@adacore.com>
6300
6301 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6302 declarations.
6303
da9160e4
YQ
63042013-04-13 Yao Qi <yao@codesourcery.com>
6305
6306 * ctf.c (_initialize_ctf): Include "completer.h".
6307 Call add_target_with_completer instead of add_target.
6308
39ed5604
JK
63092013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6310
6311 Fix GDB regression related to PR binutils/14813.
6312 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6313 * minidebug.c (lzma_close): Add return value comment.
6314 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6315 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6316 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6317
63182013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6319
6320 * config.in: Regenerate.
6321
d521ce57
TT
63222013-04-12 Tom Tromey <tromey@redhat.com>
6323
6324 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6325 const.
6326 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6327 (struct die_reader_specs) <buffer>: Likewise.
6328 (die_reader_func_ftype): Make 'info_ptr' const.
6329 (struct line_header) <include_dirs, statement_program_start,
6330 statement_program_end>: Now const.
6331 (struct file_entry) <name>: Likewise.
6332 (struct partial_die_info) <sibling>: Likewise.
6333 (struct dwarf_block) <data>: Likewise.
6334 (dwarf2_read_section): Remove cast.
6335 (dwarf2_get_section_info): Make 'bufp' const.
6336 (read_index_from_section): Constify.
6337 (dw2_get_file_names_reader): Make 'info_ptr' const.
6338 (dw2_get_primary_filename_reader): Likewise.
6339 (read_comp_unit_head): Make 'info_ptr' and return type const.
6340 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6341 Likewise.
6342 (read_abbrev_offset): Constify.
6343 (dwarf2_create_include_psymtab): Make 'name' const.
6344 (create_debug_types_hash_table): Update.
6345 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6346 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6347 Constify.
6348 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6349 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6350 (read_comp_units_from_section): Constify.
6351 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6352 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6353 const.
6354 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6355 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6356 (create_dwp_hash_table, dwarf2_ranges_read)
6357 (dwarf2_record_block_ranges): Constify.
6358 (read_die_and_children, read_die_and_siblings_1)
6359 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6360 const.
6361 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6362 (abbrev_table_read_table): Constify.
6363 (load_partial_dies): Make 'info_ptr' const.
6364 (read_partial_die, read_attribute_value, read_attribute): Make
6365 'info_ptr' and return type const.
6366 (read_address, read_initial_length)
6367 (read_checked_initial_length_and_offset, read_offset)
6368 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6369 const.
6370 (read_direct_string): Make 'buf' and return type const.
6371 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6372 (read_indirect_string): Make return type const.
6373 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6374 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6375 'info_ptr' const.
6376 (read_str_index): Make return type const.
6377 (add_include_dir): Make 'include_dir' const.
6378 (add_file_name): Make 'name' const.
6379 (dwarf_decode_line_header): Constify.
6380 (psymtab_include_file_name): Make return type const.
6381 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6382 (dwarf2_start_subfile): Make 'filename' const.
6383 (dwarf2_const_value_attr): Make 'bytes' const.
6384 (read_signatured_type_reader): Make 'info_ptr' const.
6385 (decode_locdesc): Constify.
6386 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6387 const.
6388 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6389 'mac_end', and return type const.
6390 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6391 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6392 type const.
6393 (per_cu_header_read_in): Constify.
6394 * symfile.h (dwarf2_get_section_info): Update.
6395
d47a1bc1
TT
63962013-04-12 Tom Tromey <tromey@redhat.com>
6397
6398 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6399
6eaaf48b
EZ
64002013-04-12 Eli Zaretskii <eliz@gnu.org>
6401
fc4c25bf 6402 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6403 * top.c (print_gdb_configuration): New function, displays the
6404 details about GDB configure-time parameters.
6405 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6406 * cli/cli-cmds.c (show_configuration): New function.
6407 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6408 * main.c (captured_main) <print_configuration>: New static var.
6409 <long_options>: Use it.
6410 If --configuration was given, call print_gdb_configuration.
6411
b292c783
JK
64122013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 Pedro Alves <palves@redhat.com>
6414
6415 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6416 (generated_files): Add gcore.
6417 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6418 HAVE_NATIVE_GCORE_HOST.
6419 (gcore): New.
6420 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6421 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6422 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6423 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6424 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6425 Add HAVE_NATIVE_GCORE_HOST.
6426 * configure: Regenerate.
6427 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6428 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6429 AC_CONFIG_FILES for gcore.
6430 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6431 gdb_have_gcore.
6432 * gdb_gcore.sh: Rename to ...
6433 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6434 and GCORE_TRANSFORM_NAME substitutions.
6435
c96b3c4f
JK
6436 Fix parsing tabs in ${gdb_target_obs}.
6437 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6438
d6cb50a2
JK
64392013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6440
6441 * remote.c (unpush_and_perror): Add output message final dot.
6442
cf2cb5ec
YQ
64432013-04-11 Yao Qi <yao@codesourcery.com>
6444
6445 * tracepoint.c (tfile_interp_line): Fit parameters line and
6446 utpp in one line.
6447
07293be4
JB
64482013-04-10 Joel Brobecker <brobecker@adacore.com>
6449
6450 * solib.c (solib_map_sections): Remove code overwriting
6451 SO->SO_NAME with the bfd's filename.
6452
f81d1120
PA
64532013-04-10 Pedro Alves <palves@redhat.com>
6454
6455 * cli/cli-decode.c (integer_unlimited_completer): New function.
6456 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6457 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6458 completer.
6459 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6460 (is_unlimited_literal): New function.
6461 (do_set_command): Handle literal "unlimited" arguments.
6462 * frame.c (_initialize_frame) <set backtrace limit>: Document
6463 "unlimited".
6464 * printcmd.c (_initialize_printcmd) <set print
6465 max-symbolic-offset>: Add help text.
6466 * record-full.c (_initialize_record_full) <set record full
6467 insn-number-max>: Likewise.
6468 * record.c (_initialize_record) <set record
6469 instruction-history-size, set record function-call-history-size>:
6470 Add help text.
6471 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6472 help text.
6473 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6474 Likewise.
6475 * source.c (_initialize_source) <set listsize>: Add help text.
6476 * utils.c (initialize_utils) <set height, set width>: Likewise.
6477 <set pagination>: Mention "set height unlimited".
6478 * valprint.c (_initialize_valprint) <set print elements, set print
6479 repeats>: Document "unlimited".
6480
2f9d54cf
PA
64812013-04-10 Pedro Alves <palves@redhat.com>
6482
6483 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6484 instead of disconnect_tracing.
6485 * infcmd.c (detach_command, disconnect_command): Call
6486 query_if_trace_running. Adjust.
6487 * top.c: Include "tracepoint.h".
6488 (quit_target): Delete. Contents moved ...
6489 (quit_force): ... here. Wrap each stage of teardown in
6490 TRY_CATCH. Call disconnect_tracing before detaching.
6491
393fd4c3
YQ
64922013-04-10 Hui Zhu <hui@codesourcery.com>
6493 Yao Qi <yao@codesourcery.com>
6494
6495 * configure.ac: Check libbabeltrace is installed.
6496 * config.in: Regenerate.
6497 * configure: Regenerate.
6498 * Makefile.in (LIBBABELTRACE): New.
6499 (CLIBS): Add LIBBABELTRACE.
6500 * ctf.c: Include "exec.h".
6501 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6502 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6503 (ctf_save_metadata_header): Define new type aliases in
6504 metadata.
6505 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6506 in metadata. Start a new faked packet for trace status.
6507 (ctf_write_status): Write trace status to CTF.
6508 (ctf_write_uploaded_tsv): Write TSV to CTF.
6509 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6510 (ctf_write_definition_end): End the faked packet.
6511
6512 (ctx, ctf_iter, trace_dirname): New.
6513 (start_pos): New variable.
6514 (ctf_destroy, ctf_open_dir, ctf_open): New.
6515 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6516 macros.
6517 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6518 (ctf_fetch_registers, ctf_xfer_partial): New.
6519 (ctf_get_trace_state_variable_value): New.
6520 (ctf_get_tpnum_from_frame_event): New.
6521 (ctf_get_traceframe_address): New.
6522 (ctf_trace_find, ctf_has_stack): New.
6523 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6524 (ctf_get_trace_status, ctf_read_status): New.
6525 (_initialize_ctf): New.
6526 * tracepoint.c (get_tracepoint_number): New
6527 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6528 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6529 * tracepoint.h: ... here.
6530 (get_tracepoint_number): Declare it.
6531 (get_uploaded_tsv): Declare it.
6532
6533 * NEWS: Mention new configure option.
6534
5c2b4418
HZ
65352013-04-10 Pedro Alves <palves@redhat.com>
6536 Hui Zhu <hui@codesourcery.com>
6537
6538 * breakpoint.c (dprintf_re_set): New.
6539 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6540 to dprintf_re_set.
6541
a5c66735
JB
65422013-04-09 Joel Brobecker <brobecker@adacore.com>
6543
6544 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6545 Remove solib-svr4.o from the list.
6546
9e77999c
JB
65472013-04-09 Joel Brobecker <brobecker@adacore.com>
6548
6549 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6550 Use gdb_assert_not_reached instead of invalid boolean expression.
6551
1927e618
PA
65522013-04-09 Pedro Alves <palves@redhat.com>
6553
6554 * remote.c (unpush_and_perror): New function.
6555 (readchar, remote_serial_write): Use it.
6556
10782d74
MM
65572013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6558
6559 * NEWS: Mention new btrace RSP packets.
6560
4c8429ef
TT
65612013-04-08 Tom Tromey <tromey@redhat.com>
6562
6563 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6564 long.
6565
8625fc1b
TT
65662013-04-08 Tom Tromey <tromey@redhat.com>
6567
6568 * maint.c (print_bfd_section_info): Print the section index.
6569 * symmisc.c (dump_msymbols): Print the section index.
6570
e27d198c
TT
65712013-04-08 Tom Tromey <tromey@redhat.com>
6572
6573 PR symtab/8424:
6574 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6575 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6576 * breakpoint.c (resolve_sal_pc): Update.
6577 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6578 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6579 (minsym_lookup_iterator_cb): Use it.
6580 (default_read_var_value): Update.
6581 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6582 Update.
6583 * infcmd.c (jump_command): Update.
6584 * linespec.c (minsym_found): Update.
6585 * maint.c (maintenance_translate_address): Update.
6586 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6587 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6588 * parse.c (write_exp_msymbol): Update.
6589 * printcmd.c (address_info): Update.
6590 * psymtab.c (find_pc_sect_psymbol): Update.
6591 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6592 SYMBOL_OBJ_SECTION.
6593 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6594 Don't initialize SYMBOL_OBJ_SECTION.
6595 * spu-tdep.c (spu_catch_start): Update.
6596 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6597 * symmisc.c (dump_msymbols, print_symbol): Update.
6598 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6599 how fallback section is computed.
6600 (fixup_symbol_section): Update.
6601 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6602 Update.
6603 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6604 Initialize SYMBOL_SECTION.
6605 * symtab.h (struct general_symbol_info) <section>: Update comment.
6606 <obj_section>: Remove.
6607 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6608 (SYMBOL_OBJFILE): New macro.
6609
e6dc44a8
TT
66102013-04-08 Tom Tromey <tromey@redhat.com>
6611
6612 * coffread.c (record_minimal_symbol): Update.
6613 * dbxread.c (record_minimal_symbol): Update.
6614 * elfread.c (record_minimal_symbol): Update.
6615 * machoread.c (macho_symtab_add_minsym): Update.
6616 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6617 Update.
6618 * minsyms.c (prim_record_minimal_symbol): Update.
6619 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6620 argument.
6621 (prim_record_minimal_symbol_and_info): Likewise.
6622 * minsyms.h (prim_record_minimal_symbol_full)
6623 (prim_record_minimal_symbol_and_info): Update.
6624 * symtab.c (allocate_symbol, initialize_symbol)
6625 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6626 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6627 Update.
6628
36192a8d
TT
66292013-04-08 Tom Tromey <tromey@redhat.com>
6630
6631 PR symtab/8423:
6632 * solib-som.c (som_solib_section_offsets): Use BFD section
6633 indices. Set offsets for all sections.
6634 * somread.c (som_symtab_read): Compute BFD section for
6635 symbol. Use prim_record_minimal_symbol_and_info.
6636 (som_symfile_read): Fix comment.
6637 (struct find_section_offset_arg): New.
6638 (find_section_offset, set_section_index): New functions.
6639 (som_symfile_offsets): Use set_section_index to compute
6640 section indices.
6641
65cf3563
TT
66422013-04-08 Tom Tromey <tromey@redhat.com>
6643
6644 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6645 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6646 gdb_bfd_section_index.
6647 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6648 New functions.
6649 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6650 Declare.
6651 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6652 Update.
6653 * objfiles.c (add_to_objfile_sections_full): New function.
6654 (add_to_objfile_sections): Use it.
6655 (build_section_table): Rewrite.
6656 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6657 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6658 (struct objfile) <sections>: Update comment.
6659 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6660 is NULL.
6661 (ALL_OBJSECTIONS): Use it.
6662 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6663 * solib-frv.c (frv_relocate_main_executable): Update.
6664 * solib-target.c (solib_target_relocate_section_addresses):
6665 Use gdb_bfd_section_index.
6666 * symfile.c (build_section_addr_info_from_section_table):
6667 Use gdb_bfd_section_index.
6668 (build_section_addr_info_from_bfd, place_section): Likewise.
6669 * symtab.c (fixup_section): Update.
6670 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6671
7cbd4a93
TT
66722013-04-08 Tom Tromey <tromey@redhat.com>
6673
6674 * minsyms.h (struct bound_minimal_symbol): New.
6675 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6676 Remove objfile argument.
6677 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6678 Return bound_minimal_symbol.
6679 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6680 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6681 Return bound_minimal_symbol.
6682 (in_gnu_ifunc_stub): Update.
6683 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6684 Remove 'objfile_p' argument.
6685 (lookup_solib_trampoline_symbol_by_pc): Update.
6686 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6687 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6688 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6689 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6690 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6691 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6692 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6693 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6694 stack.c, symtab.c, tui/tui-disasm.c: Update.
6695
f85f34ed
TT
66962013-04-08 Tom Tromey <tromey@redhat.com>
6697
6698 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6699 Use symbol's obstack, not an objfile.
6700 * coffread.c (process_coff_symbol): Update.
6701 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6702 * jv-lang.c (add_class_symbol): Update.
6703 * mdebugread.c (new_symbol): Update.
6704 * minsyms.c (prim_record_minimal_symbol_full)
6705 (terminate_minimal_symbol_table): Update.
6706 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6707 * stabsread.c (define_symbol, read_enum_type): Update.
6708 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6709 Handle Ada specially.
6710 (symbol_set_language): Add 'obstack' argument.
6711 (symbol_set_names): Update.
6712 (symbol_natural_name, symbol_demangled_name): Always use
6713 ada_decode_symbol.
6714 * symtab.h (struct general_symbol_info)
6715 <language_specific::obstack>: New field.
6716 <ada_mangled>: New field.
6717 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6718 (symbol_set_language): Update.
6719
ccde22c0
TT
67202013-04-08 Tom Tromey <tromey@redhat.com>
6721
6722 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6723 Take an obstack, not an objfile.
6724 (symbol_set_names): Update.
6725 * symtab.h (symbol_set_demangled_name): Update.
6726
e623cf5d
TT
67272013-04-08 Tom Tromey <tromey@redhat.com>
6728
6729 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6730 allocate_symbol.
6731 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6732 (read_func_scope): Call allocate_template_symbol.
6733 (new_symbol_full): Call allocate_symbol.
6734 * jit.c (finalize_symtab): Call allocate_symbol.
6735 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6736 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6737 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6738 (common_block_end): Call allocate_symbol.
6739 * symtab.c (allocate_symbol, initialize_symbol)
6740 (allocate_template_symbol): New functions.
6741 * symtab.c (allocate_symbol, initialize_symbol)
6742 (allocate_template_symbol): Declare.
6743 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6744
f6de8ec2
PA
67452013-04-08 Pedro Alves <palves@redhat.com>
6746 Keith Seitz <keiths@redhat.com>
6747
6748 * breakpoint.c (create_breakpoint): Rename
6749 "parse_condition_and_thread" parameter to "parse_arg". Update
6750 describing comment. If !PARSE_ARG, then error out if ARG is not
6751 the empty string after extracting the location.
6752 * breakpoint.h (create_breakpoint): Rename
6753 "parse_condition_and_thread" parameter to "parse_arg".
6754
f65ce5fb
AR
67552013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6756
6757 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6758
cc5925ad
YQ
67592013-04-07 Yao Qi <yao@codesourcery.com>
6760
6761 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6762 and 'addr2' to CORE_ADDR.
6763 * target.c (update_current_target): Update.
6764 * target.h (struct target_ops) <to_trace_find>: Change parameter
6765 type to CORE_ADDR.
6766 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6767 'addr2' to CORE_ADDR.
6768 (tfile_trace_find): Likewise.
6769 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6770 Change local variable 'addr' to type CORE_ADDR.
6771 * tracepoint.h (tfind_1): Update declaration.
6772
d9ac0664
EZ
67732013-04-06 Eli Zaretskii <eliz@gnu.org>
6774
6775 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6776 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6777 Include main.h.
6778
6779 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6780 here...
6781 * main.h (windows_get_absolute_argv0): ...to here.
6782
02142a6c
DE
67832013-04-05 Doug Evans <dje@google.com>
6784
6785 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6786 (read_cutu_die_from_dwo): Add comments.
6787 (read_structure_type): Update comment.
6788 (read_enumeration_type, read_namespace_type): Update comment.
6789 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6790
43662968
JK
67912013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6792
6793 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6794 * Makefile.in (gdb.z): Remove.
6795 (install-only): Remove $(man1dir) and gdb.1 installation.
6796 * gdb.1: Remove.
6797
9ead1b84
JK
67982013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6799
6800 Fix compatibility with Linux kernel 3.8.3.
6801 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6802 to more inner block. Remove parsing of NUMBER from outer block.
6803 Parse NUMBER only if KEYWORD has been identified.
6804
d1794952
JK
68052013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6806
6807 Fix variable name shadowing.
6808 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6809 filename to mapsfilename and update its uses.
6810
9025569e
EZ
68112013-04-05 Eli Zaretskii <eliz@gnu.org>
6812
6813 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6814 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6815 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6816 details of the problem.
6817
c9a6ce02
PA
68182013-04-04 Pedro Alves <palves@redhat.com>
6819 Hui Zhu <hui@codesourcery.com>
6820
6821 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6822 tracepoint, reset its STEP_COUNT and call validate_actionline.
6823
5ff888ce
DE
68242013-04-03 Doug Evans <dje@google.com>
6825
bf6af496
DE
6826 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6827 read_die_and_siblings.
6828 (read_die_and_siblings): New function.
6829 (read_cutu_die_from_dwo): Dump die if requested.
6830 (read_die_and_children): Call read_full_die_1 and
6831 read_die_and_siblings_1.
6832 (read_full_die): Dump die if requested.
6833
6834 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6835
0ac5b59e
DE
6836 * dwarf2read.c (struct dwo_file): New member comp_dir.
6837 Rename member name to dwo_name. All uses updated.
6838 (hash_dwo_file): Include comp_dir in computation.
6839 (eq_dwo_file): Ditto.
6840 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6841 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6842
5ff888ce
DE
6843 * psymtab.c (read_psymtabs_with_fullname): Don't call
6844 psymtab_to_fullname if the basenames are different.
6845
ec83d211
JK
68462013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6849 New entry about "fullname" presence.
6850
4f4352f7
PA
68512013-04-03 Pedro Alves <palves@redhat.com>
6852
6853 * NEWS: Mention x86_64/Cygwin as new native configuration.
6854
3d1d5ea3
DE
68552013-04-02 Doug Evans <dje@google.com>
6856
6857 * dwarf2read.c (read_structure_type): Fix typo in comment.
6858
be9a8770
PA
68592013-04-02 Pedro Alves <palves@redhat.com>
6860
6861 * NEWS: Mention "set/show debug aarch64", "set/show debug
6862 coff-pe-read" and "set/show debug mach-o".
6863
a46c1e42
PA
68642013-04-02 Pedro Alves <palves@redhat.com>
6865
6866 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6867
3ad18b19
EZ
68682013-04-02 Eli Zaretskii <eliz@gnu.org>
6869
6870 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6871 gdb_string.h is now in common/.
6872
e9f1758d
PA
68732013-04-02 Pedro Alves <palves@redhat.com>
6874
6875 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6876 under "New options".
6877
049dc89b
JK
68782013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6879
6880 Revert this patch:
6881 PR gdb/15275
6882 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6883
c33e31fd
PA
68842013-04-02 Pedro Alves <palves@redhat.com>
6885
6886 PR gdb/15275
6887
6888 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6889 (remote_serial_write): New function.
6890 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6891
ea5f3910
JW
68922013-04-01 Jiong Wang <jiwang@tilera.com>
6893
6894 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6895 "New targets" sections.
ea5f3910 6896
5c6fa7ab
DE
68972013-04-01 Doug Evans <dje@google.com>
6898
c0f78cd4
DE
6899 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6900 (process_enumeration_scope): Simplify.
6901
0186c6a7
DE
6902 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6903 type_unit_group ...
6904 (struct signatured_type): ... to here.
6905 (sig_type_ptr): New typedef.
6906 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6907 out of union 't'. All uses updated.
6908 (dw2_get_file_names_reader): Assert not called for a type unit.
6909 (dw2_get_file_names): Assert not called for a type unit or type
6910 unit group.
6911 (build_type_psymtabs_reader): Assert called for a type unit.
6912 (build_type_psymtab_dependencies): Assert called for a type unit group.
6913
5c6fa7ab
DE
6914 * dwarf2read.c (free_dwo_file): Add comment.
6915 (dwarf2_per_objfile_free): Unref dwp bfd.
6916
b3c0ad67 69172013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
6918
6919 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6920 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6921 (read_pe_exported_syms): Remove unused 'exportix'.
6922 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6923 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6924 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6925
e2df1547
AR
69262013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6927
6928 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6929 (print_it_watchpoint): Remove unused 'bl'.
6930 (say_where): Remove unused 'uiout'.
6931 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6932 (bkpt_breakpoint_hit): Remove unused 'b'.
6933 (internal_bkpt_print_it): Remove unused 'uiout'.
6934 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6935
d81e75c0
TD
69362013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6937
6938 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6939 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6940
5a8b3f62
DE
69412013-03-29 Doug Evans <dje@google.com>
6942
ab5088bf
DE
6943 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6944 Delete arg is_dwp. All callers updated.
6945 (open_dwp_file): New function.
6946 (open_and_init_dwp_file): Call it.
6947 (get_dwp_file): New function.
6948 (lookup_dwo_cutu): Call it.
6949
a8ad1e57
DE
6950 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6951 unnecessary, cleanup.
6952
6296d8c1
DE
6953 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6954
b0c7bfa9
DE
6955 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6956 (lookup_dwo_unit): New function.
6957 (init_cutu_and_read_dies): Move DWO handling to new functions.
6958
c88ee1f0
DE
6959 * dwarf2read.c (struct signatured_type): Tweak comment.
6960 (struct dwo_unit): Tweak comment.
6961 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6962 (create_dwo_debug_info_hash_table): Tweak comment.
6963 (dwarf2_per_cu_offset_and_type): Tweak comment.
6964
5a8b3f62
DE
6965 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6966 missing .debug_types section.
6967
9852c492
YQ
69682013-03-29 Yao Qi <yao@codesourcery.com>
6969
6970 * corelow.c: Include "completer.h".
6971 (_initialize_corelow): Call add_target_with_completer with
6972 argument 'filename_completer'.
6973 * tracepoint.c: Likewise.
6974 * exec.c (_initialize_exec): Likewise.
6975 * target.c (add_target): Rename to ...
6976 (add_target_with_completer): ... this. Call set_cmd_completer
6977 if parameter completer is not NULL.
6978 (add_target): New.
6979 * target.h: Include "command.h".
6980 (add_target_with_completer): Declare it.
6981
af312be7
JB
69822013-03-28 Joel Brobecker <brobecker@adacore.com>
6983
6984 * coffread.c (is_import_fixup_symbol): New function.
6985 (record_minimal_symbol): Use is_import_fixup_symbol to
6986 detect import fixup symbols, and discard them.
6987
8a0459fd
DE
69882013-03-28 Doug Evans <dje@google.com>
6989
0349ea22
DE
6990 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6991 types hash table until we know we need it.
6992
f652bce2
DE
6993 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6994 index numbers.
6995
e4a48d9d
DE
6996 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6997 All callers updated.
6998 (dw2_print_stats): Print #read CUs too.
6999 (dump_die_shallow): Print signatured types better.
7000
8a0459fd
DE
7001 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7002 info_or_types_section to section. All uses updated.
7003 (struct dwo_unit): Ditto.
7004
bd3eecc3
PA
70052013-03-28 Pedro Alves <palves@redhat.com>
7006
7007 * NEWS (New options): New section.
7008 (New options): Mention set/show remote trace-status-packet.
7009 * remote.c (PACKET_qTStatus): New enumeration value.
7010 (remote_get_trace_status): Skip sending qTStatus if the packet is
7011 disabled. Use packet_ok.
7012 (_initialize_remote): Register a configuration command for
7013 qTStatus packet.
7014
41245087
DE
70152013-03-28 Doug Evans <dje@google.com>
7016
7edbb660
DE
7017 * symfile.c (find_separate_debug_file): Add comment.
7018 (terminate_after_last_dir_separator): Tweak comment.
7019
0018ea6f
DE
7020 * dwarf2read.c (create_partial_symtab): Add forward decl.
7021 (create_partial_symtab): Move to be closer to other psymtab functions.
7022 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7023
ca69b9e6
DE
7024 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7025 (compute_symtab_includes): Remove unnecessary forward declaration.
7026 (die_needs_namespace): Add comment marking group of functions for
7027 dwarf2 name computation.
7028
a9375afe
DE
7029 * typeprint.c (_initialize_typeprint): Improve type help text.
7030
41245087
DE
7031 * python/python.c (finish_python_initialization): Provide suggestion
7032 for how to tell gdb to find its python files.
7033
7f7cc265
PA
70342013-03-28 Pedro Alves <palves@redhat.com>
7035
7036 PR gdb/15294
7037
7038 * source.c (_initialize_source): Change back "set listsize" to an
7039 integer command.
7040
ec21308c
JK
70412013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7042
7043 PR gdb/15275
7044 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7045
840a9a1f
PA
70462013-03-27 Pedro Alves <palves@redhat.com>
7047
7048 * top.c (history_size): Rename to ...
7049 (history_size_setshow_var): ... this. Add comment.
7050 (show_commands): Use readline's 'history_length' instead of
7051 computing the history length by calling history_get in a loop.
7052 (set_history_size_command): Error out for sizes over INT_MAX.
7053 Restore previous history size on invalid size.
7054 (init_history): If HISTSIZE is negative, leave the history size as
7055 zero. Add comments.
7056 (init_main): Adjust.
7057
826ecc4d
PA
70582013-03-27 Pedro Alves <palves@redhat.com>
7059
7060 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7061 coff_pe_read" command to "set debug coff-pe-read".
7062
0ccfeeae
MM
70632013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7064
7065 * record.c (command_size_to_target_size): Fix size comparison.
7066 Change parameter type from pointer to integer to integer.
7067 Update all users.
7068
40653b35
PM
70692013-03-27 Pierre Muller <muller@sourceware.org>
7070
7071 * windows-nat.c (handle_output_debug_string): Avoid typecast
7072 from integer of different size warning.
7073
c62fa0e2
JB
70742013-03-26 Joel Brobecker <brobecker@adacore.com>
7075
7076 * windows-nat.c (handle_output_debug_string): Add empty line
7077 after local block variable definition.
7078
2c619be2
PA
70792013-03-26 Pedro Alves <palves@redhat.com>
7080
7081 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7082 (net_open): Make 'polls' local unsigned.
7083
1b493192
PA
70842013-03-26 Pedro Alves <palves@redhat.com>
7085
7086 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7087 a zuinteger command instead of uinteger.
7088
7ee70bf5
PA
70892013-03-26 Pedro Alves <palves@redhat.com>
7090
7091 * record-full.c (record_full_insn_num): Make it unsigned.
7092 (record_full_check_insn_num, record_full_message)
7093 (record_full_registers_change, record_full_xfer_partial): Remove
7094 record_full_insn_max_num check (it's always != 0).
7095 (record_full_info, record_full_restore): Use %u as format string.
7096 (): Use %u as format string.
7097 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7098 check (it's always != 0).
7099
dfd1f9bb
PA
71002013-03-26 Pedro Alves <palves@redhat.com>
7101
7102 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7103 and "set dcache size" commands zuinteger instead of uinteger.
7104
addb4faf
PA
71052013-03-26 Pedro Alves <palves@redhat.com>
7106
7107 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7108 command zuinteger instead of uinteger.
7109
b75bf488
PA
71102013-03-26 Pedro Alves <palves@redhat.com>
7111
7112 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7113 zuinteger instead of uinteger.
7114
42c634cb
PA
71152013-03-26 Pedro Alves <palves@redhat.com>
7116
7117 * record.c (record_insn_history_size_setshow_var)
7118 (record_call_history_size_setshow_var): New globals.
7119 (command_size_to_target_size): New function.
7120 (cmd_record_insn_history, cmd_record_call_history): Use
7121 command_size_to_target_size instead of cast.
7122 (validate_history_size, set_record_insn_history_size)
7123 (set_record_call_history_size): New functions.
7124 (_initialize_record): Install set_record_insn_history_size and
7125 set_record_call_history_size as "set" hooks of "set record
7126 instruction-history-size" and "set record
7127 function-call-history-size".
7128
1fb2e2b5
PA
71292013-03-26 Pedro Alves <palves@redhat.com>
7130
7131 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7132 use with history_max_entries use. Remove FIXME note.
7133
99c819ee
MM
71342013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7135
7136 * record-btrace.c (record_btrace_close): Call
7137 record_btrace_auto_disable.
7138
9f9e404c
JB
71392013-03-25 Joel Brobecker <brobecker@adacore.com>
7140
7141 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7142
ebcdfe33
DE
71432013-03-25 Doug Evans <dje@google.com>
7144
7145 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7146
24955f63
TT
71472013-03-25 Tom Tromey <tromey@redhat.com>
7148
7149 PR symtab/11462:
7150 * c-exp.y (exp): Add new productions for destructors after '.' and
7151 '->'.
7152 (write_destructor_name): New function.
7153
fce632b6
TT
71542013-03-25 Tom Tromey <tromey@redhat.com>
7155
7156 PR c++/9197:
7157 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7158 value_struct_elt, not lookup_struct_elt_type.
7159 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7160 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7161 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7162
a4341769
YQ
71632013-03-25 Yao Qi <yao@codesourcery.com>
7164
7165 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7166 instead of '_mkdir'.
7167
b5981e5a
EZ
71682013-03-23 Eli Zaretskii <eliz@gnu.org>
7169
7170 * windows-nat.c (windows_get_absolute_argv0): New function.
7171 * windows-nat.h: Add its prototype.
7172
7173 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7174 Use IS_DIR_SEPARATOR instead of looking for a character inside
7175 SLASH_STRING. Include filenames.h.
7176 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7177 relocate_gdb_directory works when passed gdb_program_name.
7178 Include windows-nat.h.
7179
598d3636
JK
71802013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7181
7182 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7183 * remote.c (trace_error): Remove the special handling of '2'.
7184 (readchar) <SERIAL_EOF>
7185 (readchar) <SERIAL_ERROR>
7186 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7187 (remote_get_trace_status): Call throw_exception if EX is
7188 TARGET_CLOSE_ERROR.
7189 * utils.c (perror_with_name): Rename to ...
7190 (throw_perror_with_name): ... here. New parameter errcode, describe it
7191 in the function comment.
7192 (perror_with_name): New function wrapper.
7193 * utils.h (enum errors): New stub declaration.
7194 (throw_perror_with_name): New declaration.
7195
82b821e9
PA
71962013-03-22 Pedro Alves <palves@redhat.com>
7197 Yao Qi <yao@codesourcery.com>
7198 Mark Kettenis <kettenis@gnu.org>
7199
7200 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7201 Don't let the user set the value to UINT_MAX directly.
7202 <var_integer>: Don't let the user set the value to INT_MAX
7203 directly.
7204
78a095c3
JK
72052013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7206
7207 * remote.c (remote_unpush_target): New function.
7208 (remote_open_1): Remove two pop_target calls, update one comment, add
7209 comment to target_preopen call. Replace pop_target call by
7210 remote_unpush_target call.
7211 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7212 pop_target calls by remote_unpush_target calls.
7213
3e74e146
PA
72142013-03-22 Pedro Alves <palves@redhat.com>
7215
7216 * linux-nat.c (linux_child_follow_fork): Don't call
7217 linux_enable_event_reporting.
7218 (linux_handle_extended_wait): Don't call
7219 linux_enable_event_reporting.
7220
a2213dca
PA
72212013-03-22 Pedro Alves <palves@redhat.com>
7222
7223 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7224 use it to rewrite the trampoline buffers with type gdb_byte[], and
7225 undefine the macro. Remove char* cast.
7226
bd712aed
DE
72272013-03-21 Doug Evans <dje@google.com>
7228
7229 New commands "mt set per-command {space,time,symtab} {on,off}".
7230 * NEWS: Add entry.
7231 * event-top.c: #include "maint.h".
7232 * main.c: #include "maint.h".
7233 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7234 timeval-utils.h, maint.h, cli/cli-setshow.h.
7235 (per_command_time, per_command_space): New static globals.
7236 (per_command_symtab): New static global.
7237 (per_command_setlist, per_command_showlist): New static globals.
7238 (struct cmd_stats): Move here from utils.c.
7239 (set_per_command_time): Renamed from set_display_time in utils.c
7240 and moved here. All callers updated.
7241 (set_per_command_space): Renamed from set_display_space in utils.c
7242 and moved here. All callers updated.
7243 (count_symtabs_and_blocks): New function.
7244 (report_command_stats): Moved here from utils.c. Add support for
7245 printing symtab stats. Only print data if enabled before command
7246 executed.
7247 (make_command_stats_cleanup): Ditto.
7248 (sert_per_command_cmd, show_per_command_cmd): New functions.
7249 (_initialize_maint_cmds): Add new commands
7250 mt set per-command {space,time,symtab} {on,off}.
7251 * maint.h: New file.
7252 * top.c: #include "maint.h".
7253 * utils.c (reset_prompt_for_continue_wait_time): New function.
7254 (get_prompt_for_continue_wait_time): New function.
7255 * utils.h (reset_prompt_for_continue_wait_time): Declare
7256 (get_prompt_for_continue_wait_time): Declare.
7257 (make_command_stats_cleanup): Moved to maint.h.
7258 (set_display_time, set_display_space): Moved to maint.h and renamed
7259 to set_per_command_time, set_per_command_space.
7260 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7261 parse_binary_operation and made non-static. Don't call error,
7262 just return an error marker. All callers updated.
7263 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7264
d76488d8
TT
72652013-03-21 Tom Tromey <tromey@redhat.com>
7266
7267 * symfile.c (alloc_section_addr_info): Update header. Don't set
7268 'num_sections' field.
7269 (build_section_addr_info_from_section_table): Set 'num_sections'.
7270 (build_section_addr_info_from_bfd): Likewise.
7271 (build_section_addr_info_from_objfile): Remove dead loop
7272 condition.
7273 (free_section_addr_info): Unconditionally call xfree.
7274 (relative_addr_info_to_section_offsets, addrs_section_sort)
7275 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7276 condition.
7277 (syms_from_objfile_1): Remove dead 'if' condition. Check
7278 'num_sections'.
7279 (add_symbol_file_command): Set 'num_sections'.
7280 * symfile-mem.c (symbol_file_add_from_memory): Set
7281 'num_sections'.
7282 * somread.c (som_symfile_offsets): Remove dead loop condition.
7283 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7284 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7285
a72e5169 72862013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7287
7288 * tracepoint.h (decode_agent_options): Add 'trace_string'
7289 argument.
7290 * tracepoint.c (decode_agent_options): Add 'trace_string'
7291 argument.
7292 (validate_actionline): Update.
7293 (collect_symbol): Add 'trace_string' argument.
7294 (struct add_local_symbols_data) <trace_string>: New field.
7295 (do_collect_symbol): Update.
7296 (add_local_symbols): Add 'trace_string' argument.
7297 (encode_actions_1): Update.
7298 (trace_dump_actions): Update.
7299 * dwarf2loc.c (access_memory): Update.
7300 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7301 * ax-general.c (new_agent_expr): Update.
7302 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7303 (gen_trace_for_return_address): Add argument.
7304 (trace_kludge, trace_string_kludge): Remove.
7305 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7306 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7307 (gen_trace_for_var): Add 'trace_string' argument.
7308 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7309 (gen_printf, agent_eval_command_one): Update.
7310
b2f83c08
TT
73112013-03-21 Tom Tromey <tromey@redhat.com>
7312
7313 PR exp/15109:
7314 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7315 Handle FILENAME token.
7316
9507860e
TT
73172013-03-21 Tom Tromey <tromey@redhat.com>
7318
7319 * c-exp.y (YYPRINT): Define.
7320 (c_print_token): New function.
7321
e403aa4b
TT
73222013-03-21 Tom Tromey <tromey@redhat.com>
7323
7324 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7325
af307d6a
YQ
73262013-03-21 Yao Qi <yao@codesourcery.com>
7327
7328 * ctf.c: Include "gdb_stat.h".
7329 [USE_WIN32API]: New macro 'mkdir'.
7330 (ctf_start): Use permission bits macros if they are defined.
7331
fb81d016
KS
73322013-03-20 Keith Seitz <keiths@redhat.com>
7333
7334 * breakpoint.h (struct breakpoint): Add comment to
7335 extra_string indicating that this member is mallod'd.
7336 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7337
ef0026f0
PA
73382013-03-20 Pedro Alves <palves@redhat.com>
7339
7340 PR gdb/15289
7341
7342 * cli/cli-setshow.c (do_set_command)
7343 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7344 the result of parsing the command argument. Throw error if the
7345 value is greater than UINT_MAX. Print the invalid value with
7346 plongest.
7347 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7348 result of parsing the command argument. Throw error if the value
7349 is greater than INT_MAX, not greater or equal. Also throw error
7350 if the value is less than INT_MIN. Print the invalid value with
7351 plongest.
7352 <var_zuinteger_unlimited>: Throw error if the value is greater
7353 than INT_MAX, not greater or equal.
7354 (do_show_command) <var_integer, var_zinteger,
7355 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7356
24d6c2a0
TT
73572013-03-20 Tom Tromey <tromey@redhat.com>
7358
7359 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7360 if possible.
7361 * dwarf2read.c (read_func_scope): Remove old FIXME.
7362 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7363 not LOC_COMPUTED.
7364 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7365 Unconditionally call via computed ops, if possible.
7366 * printcmd.c (address_info): Unconditionally call via computed ops,
7367 if possible.
7368 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7369 if possible.
7370 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7371 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7372 if possible.
7373
f1e6e072
TT
73742013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7375 Tom Tromey <tromey@redhat.com>
7376
7377 PR symtab/8421:
7378 * coffread.c (coff_register_index): New global.
7379 (process_coff_symbol, coff_read_enum_type): Set
7380 SYMBOL_ACLASS_INDEX.
7381 (_initialize_coffread): Initialize new global.
7382 * dwarf2loc.c (locexpr_find_frame_base_location)
7383 (dwarf2_block_frame_base_locexpr_funcs)
7384 (loclist_find_frame_base_location)
7385 (dwarf2_block_frame_base_loclist_funcs): New.
7386 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7387 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7388 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7389 (dwarf2_block_frame_base_loclist_funcs): New.
7390 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7391 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7392 globals.
7393 (read_func_scope): Update.
7394 (fixup_go_packaging, mark_common_block_symbol_computed)
7395 (var_decode_location, new_symbol_full, dwarf2_const_value):
7396 Set SYMBOL_ACLASS_INDEX.
7397 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7398 (_initialize_dwarf2_read): Initialize new globals.
7399 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7400 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7401 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7402 globals.
7403 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7404 (_initialize_mdebugread): Initialize new globals.
7405 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7406 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7407 (stab_register_index, stab_regparm_index): New globals.
7408 (define_symbol, read_enum_type, common_block_end): Set
7409 SYMBOL_ACLASS_INDEX.
7410 (_initialize_stabsread): Initialize new globals.
7411 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7412 globals.
7413 (MAX_SYMBOL_IMPLS): New define.
7414 (register_symbol_computed_impl, register_symbol_block_impl)
7415 (register_symbol_register_impl)
7416 (initialize_ordinary_address_classes): New functions.
7417 (_initialize_symtab): Call initialize_ordinary_address_classes.
7418 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7419 (struct symbol_impl): New.
7420 (SYMBOL_ACLASS_BITS): New define.
7421 (struct symbol) <aclass, ops>: Remove fields.
7422 <aclass_index>: New field.
7423 (symbol_impls): Declare.
7424 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7425 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7426 (register_symbol_computed_impl, register_symbol_block_impl)
7427 (register_symbol_register_impl): Declare.
7428 (struct symbol_computed_ops): Add location_has_loclist.
7429 (struct symbol_block_ops): New.
7430 (SYMBOL_BLOCK_OPS): New.
7431 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7432
dbccfd4c
TT
74332013-03-20 Tom Tromey <tromey@redhat.com>
7434
7435 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7436 (print_partial_symbols, recursively_search_psymtabs): Use
7437 PSYMBOL_CLASS.
7438
e3f1ad4f
PM
74392013-03-20 Pierre Muller <muller@sourceware.org>
7440
7441 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7442 addtion, subtraction, multiplication and division binary operator.
7443
460014f5
JK
74442013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7445
7446 Code cleanup.
7447 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7448 * bsd-kvm.c (bsd_kvm_close): Likewise.
7449 * bsd-uthread.c (bsd_uthread_close): Likewise.
7450 * corelow.c (core_close): Likewise.
7451 (core_close_cleanup): Remove parameter quitting from a caller.
7452 * event-top.c (async_disconnect): Likewise.
7453 * exec.c (exec_close_1): Remove parameter quitting.
7454 * go32-nat.c (go32_close): Likewise.
7455 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7456 parameter quitting from a caller.
7457 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7458 variable.
7459 (mips_linux_close): Remove parameter quitting. Remove parameter
7460 quitting from a caller.
7461 * monitor.c (monitor_close): Remove parameter quitting.
7462 * monitor.h (monitor_close): Likewise.
7463 * record-btrace.c (record_btrace_close): Likewise.
7464 * record-full.c (record_full_close): Likewise.
7465 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7466 it also from fprintf_unfiltered.
7467 * remote-mips.c (mips_close): Remove parameter quitting.
7468 (mips_detach): Remove parameter quitting from a caller.
7469 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7470 (gdbsim_close): Remove duplicate function comment. Remove parameter
7471 quitting and remove it also from printf_filtered.
7472 * remote.c (remote_close): Remove parameter quitting.
7473 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7474 * target.c (update_current_target): Remove parameter int from to_close
7475 de_fault.
7476 (push_target, unpush_target, pop_target): Remove parameter quitting from
7477 a caller.
7478 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7479 Remove parameter quitting from a caller.
7480 (target_preopen): Remove parameter quitting from a caller.
7481 (target_close): Remove parameter quitting. Remove parameter quitting
7482 from a caller two times. Remove parameter quitting also from
7483 fprintf_unfiltered.
7484 * target.h (struct target_ops): Remove parameter quitting and as int
7485 from fields to_xclose and to_close.
7486 (extern struct target_ops current_target):
7487 (target_close, pop_all_targets): Remove parameter quitting. Update the
7488 comment.
7489 (pop_all_targets_above): Remove parameter quitting.
7490 * top.c (quit_target): Remove parameter quitting from a caller.
7491 * tracepoint.c (tfile_close): Remove parameter quitting.
7492 * windows-nat.c (windows_close): Remove parameter quitting.
7493
35a7120b
CV
74942013-03-20 Corinna Vinschen <vinschen@redhat.com>
7495
7496 * windows-nat.c (handle_output_debug_string): Replace call
7497 to string_to_core_addr with call to strtoull.
7498
8249a5a9
YQ
74992013-03-20 Yao Qi <yao@codesourcery.com>
7500
7501 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7502 and write it to CTF metadata.
7503
2c15ef43
CV
75042013-03-19 Corinna Vinschen <vinschen@redhat.com>
7505
7506 * windows-nat.c (handle_output_debug_string): Change type of n to
7507 SIZE_T to avoid crash on 64 bit systems.
7508
1cdd3232
EZ
75092013-03-17 Eli Zaretskii <eliz@gnu.org>
7510
7511 * python/python-internal.h (HAVE_SNPRINTF)
7512 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7513 about redefinition of snprintf by pyerrors.h.
7514
3cb2ab1a
SE
75152013-03-15 Steve Ellcey <sellcey@mips.com>
7516
7517 * remote-sim.c (sim_command_completer): Make char arguments const.
7518
9ce98649
TT
75192013-03-15 Tom Tromey <tromey@redhat.com>
7520
7521 PR c++/15116:
7522 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7523
dccee2de
TT
75242013-03-14 Tom Tromey <tromey@redhat.com>
7525
7526 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7527 New fields.
7528 (get_file_crc): Move from symfile.c.
7529 (gdb_bfd_crc): New function.
7530 * gdb_bfd.h (gdb_bfd_crc): Declare.
7531 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7532 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7533 (separate_debug_file_exists): Use gdb_bfd_crc.
7534
cc0ea93c
TT
75352013-03-14 Tom Tromey <tromey@redhat.com>
7536
7537 * symfile.c (get_debug_link_info): Remove.
7538 (find_separate_debug_file_by_debuglink): Use
7539 bfd_get_debug_link_info.
7540
08c23b0d
TT
75412013-03-14 Tom Tromey <tromey@redhat.com>
7542
7543 * symtab.c (error_in_psymtab_expansion): New function.
7544 (lookup_symbol_aux_quick)
7545 (basic_lookup_transparent_type_quick): Remove "last resort"
7546 code. Use error_in_psymtab_expansion.
7547
288e77a7
JK
75482013-03-14 Doug Evans <dje@google.com>
7549 Jan Kratochvil <jan.kratochvil@redhat.com>
7550
7551 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7552 any successful compare_filenames_for_search or FILENAME_CMP.
7553 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7554 * symtab.c (iterate_over_some_symtabs): Likewise.
7555
8f1b8b82
JK
75562013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7557
7558 * source.c (print_source_lines_base): Make a local copy of
7559 symtab_to_fullname.
7560
23eb71e4
JK
75612013-03-14 Hui Zhu <hui_zhu@mentor.com>
7562 Jan Kratochvil <jan.kratochvil@redhat.com>
7563
7564 * source.c (print_source_lines_base): Suppress "file" for TUI.
7565
bb869963
SDJ
75662013-03-14 Keith Seitz <keiths@redhat.com>
7567 Alan Matsuoka <alanm@redhat.com>
7568
7569 PR c++/15203
7570 PR c++/15210
7571 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7572 TYPE_CODE_METHOD.
7573 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7574 symbols.
7575
d6682f9e
YQ
75762013-03-14 Yao Qi <yao@codesourcery.com>
7577
7578 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7579 status to tfile if trace is stopped by command 'tstop'.
7580
a22fa6e4
YQ
75812013-03-14 Yao Qi <yao@codesourcery.com>
7582
7583 * tracepoint.c (tfile_write_status): Write trace notes and user
7584 name into tfile if they are not NULL.
7585
d0353e76
YQ
75862013-03-14 Hui Zhu <hui@codesourcery.com>
7587 Yao Qi <yao@codesourcery.com>
7588
7589 * Makefile.in (REMOTE_OBS): Add ctf.o.
7590 (SFILES): Add ctf.c.
7591 (HFILES_NO_SRCDIR): Add ctf.h.
7592 * ctf.c, ctf.h: New files.
7593 * tracepoint.c: Include 'ctf.h'.
7594 (collect_pseudocommand): Remove static.
7595 (trace_save_command): Parse option "-ctf".
7596 Produce different trace file writers per option.
7597 Adjust output message.
7598 (trace_save_tfile, trace_save_ctf): New.
7599 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7600 * mi/mi-main.c: Include 'ctf.h'.
7601 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7602 trace_save_tfile or trace_save_ctf.
7603 * NEWS: Mention these changes.
7604
3f43bc09
YQ
76052013-03-14 Yao Qi <yao@codesourcery.com>
7606
7607 * tracepoint.c (trace_file_writer_xfree): New.
7608 (struct tfile_writer_data): New.
7609 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7610 (tfile_write_header, tfile_write_regblock_type): New.
7611 (tfile_write_status, tfile_write_uploaded_tsv): New.
7612 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7613 (tfile_write_raw_data, (tfile_end): New.
7614 (tfile_write_ops): New global variable.
7615 (TRACE_WRITE_R_BLOCK): New macro.
7616 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7617 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7618 (TRACE_WRITE_V_BLOCK): New macro.
7619 (trace_save): Add extra one parameter WRITER. Make it static.
7620 Use WRITER to writer trace.
7621 (tfile_trace_file_writer_new): New.
7622 (trace_save_command): Caller update.
7623 (trace_save_tfile): Write trace data in TFILE format.
7624 * tracepoint.h (struct trace_frame_write_ops): New.
7625 (struct trace_file_write_ops): New.
7626 (struct trace_file_writer): New.
7627 (trace_save): Remove its declaration.
7628 (trace_save_tfile): Declare it.
7629 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7630 instead of trace_save.
7631
58665b40
PA
76322013-03-13 Pedro Alves <palves@redhat.com>
7633
7634 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7635
10217050
PA
76362013-03-13 Pedro Alves <palves@redhat.com>
7637
7638 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7639 commented out code.
7640 * demangle.c (current_demangling_style_string): Make it const.
7641 (set_demangling_command): Assert the demangling style is known.
7642 Remove all handling of unknown styles. Set
7643 'current_demangling_style_string' to an element of the
7644 demangling_style_names array.
7645 (set_demangling_style): Delete.
7646 (_initialize_demangler): Set current_demangling_style_string to the
7647 element of the demangling_style_names array that corresponds to
7648 the default demangling style. Remove FIXME note. Don't call
7649 set_demangling_style.
7650 * gdb-demangle.h (set_demangling_style): Remove declaration.
7651
6f937416
PA
76522013-03-13 Pedro Alves <palves@redhat.com>
7653
7654 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7655 fields const.
7656 (ada_make_symbol_completion_list): Make "text0" parameter const.
7657 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7658 * breakpoint.c (condition_completer): Make "text" and "word"
7659 parameters const. Adjust.
7660 (check_tracepoint_command): Adjust to validate_actionline
7661 prototype change.
7662 (catch_syscall_completer): Make "text" and "word" parameters
7663 const.
7664 * cli/cli-cmds.c (show_user): Make "comname" local const.
7665 (valid_command_p): Make "command" parameter const.
7666 (alias_command): Make "alias_prefix" and "command_prefix" locals
7667 const.
7668 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7669 (add_alias_cmd): Make "name" and "oldname" parameters const.
7670 Adjust. No longer make copy of OLDNAME.
7671 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7672 (add_setshow_cmd_full, add_setshow_enum_cmd)
7673 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7674 (add_setshow_filename_cmd, add_setshow_string_cmd)
7675 (add_setshow_string_noescape_cmd)
7676 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7677 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7678 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7679 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7680 Make "name" parameter const.
7681 (help_cmd): Rename "command" parameter to "arg". New const local
7682 "command".
7683 (find_cmd): Make "command" parameter const.
7684 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7685 deprecated_cmd_warning prototype change.
7686 (undef_cmd_error): Make "cmdtype" parameter const.
7687 (lookup_cmd): Make "line" parameter const.
7688 (deprecated_cmd_warning): Change type of "text" parameter to
7689 pointer to const char, from pointer to pointer to char. Adjust.
7690 (lookup_cmd_composition): Make "text" parameter const.
7691 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7692 parameters const.
7693 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7694 const.
7695 * cli/cli-script.c (validate_comname): Make "tem" local const.
7696 (define_command): New const local "tem_c". Use it in calls to
7697 lookup_cmd.
7698 (document_command): Make "tem" and "comfull" locals const.
7699 (show_user_1): Make "prefix" and "name" parameters const.
7700 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7701 const.
7702 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7703 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7704 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7705 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7706 (complete_on_enum, add_setshow_enum_cmd)
7707 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7708 (add_setshow_filename_cmd, add_setshow_string_cmd)
7709 (add_setshow_string_noescape_cmd)
7710 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7711 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7712 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7713 Change prototypes, constifying strings.
7714 * completer.c (noop_completer, filename_completer): Make "text"
7715 and "prefix" parameters const.
7716 (location_completer, expression_completer)
7717 (complete_line_internal): Make "text" and "prefix" parameters
7718 const and adjust.
7719 (command_completer, signal_completer): Make "text" and "prefix"
7720 parameters const.
7721 * completer.h (noop_completer, filename_completer)
7722 (expression_completer, location_completer, command_completer)
7723 (signal_completer): Change prototypes.
7724 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7725 parameters const.
7726 * cp-abi.c (cp_abi_completer): Likewise.
7727 * expression.h (parse_expression_for_completion): Change
7728 prototype.
7729 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7730 parameters const.
7731 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7732 * infrun.c (handle_completer): Make "text" and "word" parameters
7733 const.
7734 * interps.c (interpreter_completer): Make "text" and "word"
7735 parameters const.
7736 * language.h (struct language_defn)
7737 <la_make_symbol_completion_list>: Make "text" and "word"
7738 parameters const.
7739 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7740 (parse_exp_in_context): Rename to ...
7741 (parse_exp_in_context_1): ... this.
7742 (parse_exp_in_context): Reimplement, with const hack from
7743 parse_exp_1.
7744 (parse_expression_for_completion): Make "string" parameter const.
7745 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7746 to pointer to const char. Adjust.
7747 (print_command_1): Make "exp" parameter const.
7748 (output_command): Rename to ...
7749 (output_command_const): ... this. Make "exp" parameter const.
7750 (output_command): Reimplement.
7751 (x_command): Adjust.
7752 (display_command): Rename "exp" parameter to "arg". New "exp"
7753 local, const version of "arg".
7754 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7755 "cmd_name" local const.
7756 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7757 call.
7758 (cmdpy_completer): Make "text" and "word" parameters const.
7759 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7760 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7761 const.
7762 * remote.c (_initialize_remote): Make "cmd_name" local const.
7763 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7764 parameters const. Adjust.
7765 (completion_list_add_fields): Make "sym_text", "text" and "word"
7766 parameters const.
7767 (struct add_name_data) <sym_text, text, word>: Make fields const.
7768 (default_make_symbol_completion_list_break_on): Make "text" and
7769 "word" parameters const. Adjust locals.
7770 (default_make_symbol_completion_list)
7771 (make_symbol_completion_list, make_symbol_completion_type)
7772 (make_symbol_completion_list_fn): Make "text" and "word"
7773 parameters const.
7774 (make_file_symbol_completion_list): Make "text", "word" and
7775 "srcfile" parameters const. Adjust locals.
7776 (add_filename_to_list): Make "text" and "word" parameters const.
7777 (struct add_partial_filename_data) <text, word>: Make fields
7778 const.
7779 (make_source_files_completion_list): Make "text" and "word"
7780 parameters const.
7781 * symtab.h (default_make_symbol_completion_list_break_on)
7782 (default_make_symbol_completion_list, make_symbol_completion_list)
7783 (make_symbol_completion_type enum type_code)
7784 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7785 (make_source_files_completion_list): Change prototype.
7786 * top.c (execute_command): Adjust to pass pointer to pointer to
7787 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7788 change.
7789 (set_verbose): Make "cmdname" local const.
7790 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7791 and adjust.
7792 (validate_actionline): Make "line" parameter a pointer to const
7793 char, and adjust.
7794 (encode_actions_1): Make "action_exp" local const, and adjust.
7795 (encode_actions): Adjust.
7796 (replace_comma): Delete.
7797 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7798 const, and adjust. Don't frob the action string while splitting
7799 it at commas. Instead, make a copy of each split substring in
7800 turn.
7801 (trace_dump_command): Adjust to validate_actionline prototype
7802 change.
7803 * tracepoint.h (decode_agent_options, decode_agent_options)
7804 (encode_actions, validate_actionline): Change prototypes.
7805 * valprint.h (output_command): Delete declaration.
7806 (output_command_const): Declare.
7807 * value.c (function_destroyer): Cast const away in xfree call.
7808
a0bcdaa7
PA
78092013-03-13 Pedro Alves <palves@redhat.com>
7810
7811 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7812 rather than casting 'const char * const *' to 'const char **'.
7813 * ada-lex.l (processInt): Make "trailer" local const. Remove
7814 'const char **' cast.
7815 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7816 locals, and use those as strtol output pointer, instead than doing
7817 invalid casts to from 'const char **' to 'char **'.
7818 (_initialize_demangle): Remove cast.
7819 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7820 locals, and use those as strtol output pointer, instead than doing
7821 invalid casts to from 'const char **' to 'char **'.
7822 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7823 casts.
7824 * stap-probe.c (stap_parse_register_operand)
7825 (stap_parse_single_operand): Likewise.
7826
8ddb1965
YQ
78272013-03-13 Yao Qi <yao@codesourcery.com>
7828
7829 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7830 the last matched 'V' blcok in trace frame.
7831
2d450646
JB
78322013-03-12 Joel Brobecker <brobecker@adacore.com>
7833
7834 * NEWS: Create a new section for the next release branch.
7835 Rename the section of the current branch, now that it has
7836 been cut.
7837
b4b79973 78382013-03-12 Joel Brobecker <brobecker@adacore.com>
7839
7840 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7841 * version.in: Bump version to 7.6.50.20130312-cvs.
7842
ee047554
KS
78432013-03-12 Keith Seitz <keiths@redhat.com>
7844
7845 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7846 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7847 Remove temporary copy of input string.
7848 (mi_execute_command_wrapper): Make "cmd" const.
7849 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7850 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7851 Use const strings.
7852 (mi_parse): Make "cmd" const.
7853 Use const strings.
7854 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7855
bbc13ae3
KS
78562013-03-12 Keith Seitz <keiths@redhat.com>
7857
7858 * ada-lang.c (ada_read_renaming_var_value): Pass const
7859 pointer to expression string to parse_exp_1.
7860 (create_excep_cond_exprs): Likewise.
7861 * ax-gdb.c (agent_eval_command_one): Likewise.
7862 (maint_agent_printf_command): Likewise.
7863 Constify much of the string handling/parsing.
7864 * breakpoint.c (set_breakpoint_condition): Pass const
7865 pointer to expression string to parse_exp_1.
7866 (update_watchpoint): Likewise.
7867 (parse_cmd_to_aexpr): Constify string handling.
7868 Pass const pointer to parse_exp_1.
7869 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7870 (find_condition_and_thread): Likewise.
7871 Make TOK const.
7872 (watch_command_1): Make "arg" const.
7873 Constify string handling.
7874 Copy the expression string instead of changing the input
7875 string.
7876 (update_breakpoint_location): Pass const pointer to
7877 parse_exp_1.
7878 * eval.c (parse_and_eval_address): Make "exp" const.
7879 (parse_to_comma_and_eval): Make "expp" const.
7880 (parse_and_eval): Make "exp" const.
7881 * expression.h (parse_expression): Make argument const.
7882 (parse_exp_1): Make first argument const.
7883 * findcmd.c (parse_find_args): Treat "args" as const.
7884 * linespec.c (parse_linespec): Pass const pointer to
7885 linespec_expression_to_pc.
7886 (linespec_expression_to_pc): Make "exp_ptr" const.
7887 * parse.c (parse_exp_1): Make "stringptr" const.
7888 Make a copy of the expression to pass to parse_exp_in_context until
7889 this whole interface can be constified.
7890 (parse_expression): Make "string" const.
7891 * printcmd.c (ui_printf): Treat "arg" as const.
7892 Handle const strings.
7893 * tracepoint.c (validate_actionline): Pass const pointer to
7894 all calls to parse_exp_1.
7895 (encode_actions_1): Likewise.
7896 * value.h (parse_to_comma_and_eval): Make argument const.
7897 (parse_and_eval_address): Likewise.
7898 (parse_and_eval): Likewise.
7899 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7900 (varobj_set_value): Likewise.
7901 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7902 constify string handling.
7903 Pass const pointers to parse_and_eval_address and
7904 parse_to_comman_and_eval.
7905 * cli/cli-utils.c (skip_to_space): Rename to ...
7906 (skip_to_space_const): ... this. Handle const strings.
7907 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7908 skip_to_space_const.
7909 (skip_to_space_const): Declare.
7910 * common/format.c (parse_format_string): Make "arg" const.
7911 Handle const strings.
7912 * common/format.h (parse_format_string): Make "arg" const.
7913 * gdbserver/ax.c (ax_printf): Make "format" const.
7914 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7915 of the expression string.
7916
f3cec7e6
HZ
79172013-03-12 Hui Zhu <hui@codesourcery.com>
7918
7919 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7920
9df7235c
HZ
79212013-03-12 Yao Qi <yao@codesourcery.com>
7922 Hui Zhu <hui@codesourcery.com>
7923
7924 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7925 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7926 DW_OP_deref_size.
7927
82d049ab
PH
79282013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7929
5f8e0b8f
MF
7930 * ada-lex.l (rules): Only recognize 'thread' as a
7931 delimiter when followed by numerals, as for c-exp.y.
7932 Use new rewind_to_char function to rewind the input for
7933 expression-delimiting tokens.
7934 (rewind_to_char): New function.
82d049ab 7935
8c1fb155
JK
79362013-03-11 Pedro Alves <palves@redhat.com>
7937 Jan Kratochvil <jan.kratochvil@redhat.com>
7938
7939 * configure: Regenerate.
7940 * configure.ac (check dynamic export flag): Link python test with
7941 $PYTHON_LIBS.
7942
cc81e1c6
DE
79432013-03-11 Doug Evans <dje@google.com>
7944 Keith Seitz <keiths@redhat.com>
7945
7946 * linespec.c (find_linespec_symbols): Call find_function_symbols
7947 first, and then call lookup_prefix_sym/find_method.
7948
39086a0e
PA
79492013-03-11 Pedro Alves <palves@redhat.com>
7950
7951 * charset.c (convert_between_encodings): Don't cast between
7952 different pointer to pointer types. Instead, make the 'inp' local
7953 be of the type iconv expects.
7954 (wchar_iterate): Don't cast between different pointer to pointer
7955 types. Instead, use new pointer local of the type iconv expects.
7956 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7957 Add new local of type char pointer, and use it to get a
7958 char/string view of the byte buffer, instead of casting between
7959 pointer to pointer types.
7960
90585175
HAQ
79612013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7962
7963 * remote.c (remote_set_trace_buffer_size): Move != operator
7964 to the start of next line to fix an ARI warning.
7965
59ea5688
MM
79662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7967
7968 * NEWS: Add record changes.
7969
946287b7
MM
79702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7971
7972 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7973 the instruction history disassembly.
7974 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7975 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7976
afedecd3
MM
79772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7978
7979 * Makefile.in (SFILES): Add record-btrace.c
7980 (COMMON_OBS): Add record-btrace.o
7981 * record-btrace.c: New.
7982 * objfiles.c: Include btrace.h.
7983 (free_objfile): call btrace_free_objfile.
7984
15984c13
MM
79852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7986
7987 * target.c (target_call_history, target_call_history_from,
7988 target_call_history_range): New.
7989 * target.h (target_ops) <to_call_history, to_call_history_from,
7990 to_call_history_range>: New fields.
7991 (target_call_history, target_call_history_from,
7992 target_call_history_range): New declaration.
7993 * record.c (get_call_history_modifiers, cmd_record_call_history,
7994 record_call_history_size): New.
7995 (_initialize_record): Add the "record function-call-history" command.
7996 Add "set/show record function-call-history-size" commands.
7997 * record.h (record_print_flag): New.
7998
67c86d06
MM
79992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8000
8001 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8002 to_insn_history_range>: New fields.
8003 (target_insn_history): New.
8004 (target_insn_history_from): New.
8005 (target_insn_history_range): New.
8006 * target.c (target_insn_history): New.
8007 (target_insn_history_from): New.
8008 (target_insn_history_range): New.
8009 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8010 (record_insn_history_size): New.
8011 (get_insn_number): New.
8012 (get_context_size): New.
8013 (no_chunk): New.
8014 (get_insn_history_modifiers): New.
8015 (cmd_record_insn_history): New.
8016 (_initialize_record): Add "set/show record instruction-history-size"
8017 command. Add "record instruction-history" command.
8018
7c1687a9
MM
80192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8020
8021 * record.h (record_disconnect): New.
8022 (record_detach): New.
8023 (record_mourn_inferior): New.
8024 (record_kill): New.
8025 * record-full.c (record_disconnect, record_detach,
8026 record_mourn_inferior, record_kill): Move to...
8027 * record.c: ...here.
8028 (DEBUG): New.
8029 (record_stop): New.
8030 (record_unpush): New.
8031 (cmd_record_stop): Call record_stop. Replace unpush_target
8032 call with record_unpush call.
8033 (record_disconnect, record_detach): Assert that the target
8034 is of record stratum. Call record_unpush, record_stop, and
8035 DEBUG.
8036 (record_mourn_inferior, record_kill): Assert that the target
8037 is of record stratum. Call record_unpush and DEBUG.
8038
25ea693b
MM
80392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8040
8041 * record-full.h, record-full.c (record_memory_query): Rename
8042 to ...
8043 (record_full_memory_query): ...this. Update all users.
8044 (record_arch_list_add_reg): Rename to ...
8045 (record_full_arch_list_add_reg): ...this. Update all users.
8046 (record_arch_list_add_mem): Rename to ...
8047 (record_full_arch_list_add_mem): ...this. Update all users.
8048 (record_arch_list_add_end): Rename to ...
8049 (record_full_arch_list_add_end): ...this. Update all users.
8050 (record_gdb_operation_disable_set): Rename to ...
8051 (record_full_gdb_operation_disable_set): ...this.
8052 Update all users.
8053
88d1aa9d
MM
80542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8055
8056 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8057 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8058 (RECORD_IS_REPLAY): Renamed to ...
8059 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8060 (RECORD_FILE_MAGIC): Renamed to ...
8061 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8062 (record_mem_entry): Renamed to ...
8063 (record_full_mem_entry): ... this. Updated all users.
8064 (record_reg_entry): Renamed to ...
8065 (record_full_reg_entry): ... this. Updated all users.
8066 (record_end_entry): Renamed to ...
8067 (record_full_end_entry): ... this. Updated all users.
8068 (record_type) <record_end, record_reg, record_mem>: Renamed
8069 to ...
8070 (record_full_type) <record_full_end, record_full_reg,
8071 record_full_mem>: ... this. Updated all users.
8072 (record_entry): Renamed to ...
8073 (record_full_entry): ... this. Updated all users.
8074 (record_core_buf_entry): Renamed to ...
8075 (record_full_core_buf_entry): ... this. Updated all users.
8076 (record_core_regbuf): Renamed to ...
8077 (record_full_core_regbuf): ... this. Updated all users.
8078 (record_core_start): Renamed to ...
8079 (record_full_core_start): ... this. Updated all users.
8080 (record_core_end): Renamed to ...
8081 (record_full_core_end): ... this. Updated all users.
8082 (record_core_buf_list): Renamed to ...
8083 (record_full_core_buf_list): ... this. Updated all users.
8084 (record_first): Renamed to ...
8085 (record_full_first): ... this. Updated all users.
8086 (record_list): Renamed to ...
8087 (record_full_list): ... this. Updated all users.
8088 (record_arch_list_head): Renamed to ...
8089 (record_full_arch_list_head): ... this. Updated all users.
8090 (record_arch_list_tail): Renamed to ...
8091 (record_full_arch_list_tail): ... this. Updated all users.
8092 (record_stop_at_limit): Renamed to ...
8093 (record_full_stop_at_limit): ... this. Updated all users.
8094 (record_insn_max_num): Renamed to ...
8095 (record_full_insn_max_num): ... this. Updated all users.
8096 (record_insn_num): Renamed to ...
8097 (record_full_insn_num): ... this. Updated all users.
8098 (record_insn_count): Renamed to ...
8099 (record_full_insn_count): ... this. Updated all users.
8100 (record_ops): Renamed to ...
8101 (record_full_ops): ... this. Updated all users.
8102 (record_core_ops): Renamed to ...
8103 (record_full_core_ops): ... this. Updated all users.
8104 (set_record_cmdlist): Renamed to ...
8105 (set_record_full_cmdlist): ... this. Updated all users.
8106 (show_record_cmdlist): Renamed to ...
8107 (show_record_full_cmdlist): ... this. Updated all users.
8108 (record_cmdlist): Renamed to ...
8109 (record_full_cmdlist): ... this. Updated all users.
8110 (record_beneath_to_resume_ops): Renamed to ...
8111 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8112 (record_beneath_to_resume): Renamed to ...
8113 (record_full_beneath_to_resume): ... this. Updated all users.
8114 (record_beneath_to_wait_ops): Renamed to ...
8115 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8116 (record_beneath_to_wait): Renamed to ...
8117 (record_full_beneath_to_wait): ... this. Updated all users.
8118 (record_beneath_to_store_registers_ops): Renamed to ...
8119 (record_full_beneath_to_store_registers_ops): ... this.
8120 Updated all users.
8121 (record_beneath_to_store_registers): Renamed to ...
8122 (record_full_beneath_to_store_registers): ... this.
8123 Updated all users.
8124 (record_beneath_to_xfer_partial_ops): Renamed to ...
8125 (record_full_beneath_to_xfer_partial_ops): ... this.
8126 Updated all users.
8127 (record_beneath_to_xfer_partial): Renamed to ...
8128 (record_full_beneath_to_xfer_partial): ... this.
8129 Updated all users.
8130 (record_beneath_to_insert_breakpoint): Renamed to ...
8131 (record_full_beneath_to_insert_breakpoint): ... this.
8132 Updated all users.
8133 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8134 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8135 Updated all users.
8136 (record_beneath_to_stopped_data_address): Renamed to ...
8137 (record_full_beneath_to_stopped_data_address): ... this.
8138 Updated all users.
8139 (record_beneath_to_async): Renamed to ...
8140 (record_full_beneath_to_async): ... this. Updated all users.
8141 (record_goto_insn): Renamed to ...
8142 (record_full_goto_insn): ... this. Updated all users.
8143 (record_save): Renamed to ...
8144 (record_full_save): ... this. Updated all users.
8145 (record_reg_alloc): Renamed to ...
8146 (record_full_reg_alloc): ... this. Updated all users.
8147 (record_reg_release): Renamed to ...
8148 (record_full_reg_release): ... this. Updated all users.
8149 (record_mem_alloc): Renamed to ...
8150 (record_full_mem_alloc): ... this. Updated all users.
8151 (record_mem_release): Renamed to ...
8152 (record_full_mem_release): ... this. Updated all users.
8153 (record_end_alloc): Renamed to ...
8154 (record_full_end_alloc): ... this. Updated all users.
8155 (record_end_release): Renamed to ...
8156 (record_full_end_release): ... this. Updated all users.
8157 (record_entry_release): Renamed to ...
8158 (record_full_entry_release): ... this. Updated all users.
8159 (record_list_release): Renamed to ...
8160 (record_full_list_release): ... this. Updated all users.
8161 (record_list_release_following): Renamed to ...
8162 (record_full_list_release_following): ... this.
8163 Updated all users.
8164 (record_list_release_first): Renamed to ...
8165 (record_full_list_release_first): ... this. Updated all users.
8166 (record_arch_list_add): Renamed to ...
8167 (record_full_arch_list_add): ... this. Updated all users.
8168 (record_get_loc): Renamed to ...
8169 (record_full_get_loc): ... this. Updated all users.
8170 (record_check_insn_num): Renamed to ...
8171 (record_full_check_insn_num): ... this. Updated all users.
8172 (record_arch_list_cleanups): Renamed to ...
8173 (record_full_arch_list_cleanups): ... this. Updated all users.
8174 (record_message): Renamed to ...
8175 (record_full_message): ... this. Updated all users.
8176 (record_message_wrapper): Renamed to ...
8177 (record_full_message_wrapper): ... this. Updated all users.
8178 (record_message_wrapper_safe): Renamed to ...
8179 (record_full_message_wrapper_safe): ... this. Updated all users.
8180 (record_gdb_operation_disable): Renamed to ...
8181 (record_full_gdb_operation_disable): ... this. Updated all users.
8182 (record_hw_watchpoint): Renamed to ...
8183 (record_full_hw_watchpoint): ... this. Updated all users.
8184 (record_exec_insn): Renamed to ...
8185 (record_full_exec_insn): ... this. Updated all users.
8186 (record_restore): Renamed to ...
8187 (record_full_restore): ... this. Updated all users.
8188 (record_async_inferior_event_token): Renamed to ...
8189 (record_full_async_inferior_event_token): ... this.
8190 Updated all users.
8191 (record_async_inferior_event_handler): Renamed to ...
8192 (record_full_async_inferior_event_handler): ... this.
8193 Updated all users.
8194 (record_core_open_1): Renamed to ...
8195 (record_full_core_open_1): ... this. Updated all users.
8196 (record_open_1): Renamed to ...
8197 (record_full_open_1): ... this. Updated all users.
8198 (record_open): Renamed to ...
8199 (record_full_open): ... this. Updated all users.
8200 (record_close): Renamed to ...
8201 (record_full_close): ... this. Updated all users.
8202 (record_resume_step): Renamed to ...
8203 (record_full_resume_step): ... this. Updated all users.
8204 (record_resumed): Renamed to ...
8205 (record_full_resumed): ... this. Updated all users.
8206 (record_execution_dir): Renamed to ...
8207 (record_full_execution_dir): ... this. Updated all users.
8208 (record_resume): Renamed to ...
8209 (record_full_resume): ... this. Updated all users.
8210 (record_get_sig): Renamed to ...
8211 (record_full_get_sig): ... this. Updated all users.
8212 (record_sig_handler): Renamed to ...
8213 (record_full_sig_handler): ... this. Updated all users.
8214 (record_wait_cleanups): Renamed to ...
8215 (record_full_wait_cleanups): ... this. Updated all users.
8216 (record_wait_1): Renamed to ...
8217 (record_full_wait_1): ... this. Updated all users.
8218 (record_wait): Renamed to ...
8219 (record_full_wait): ... this. Updated all users.
8220 (record_stopped_by_watchpoint): Renamed to ...
8221 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8222 (record_disconnect): Renamed to ...
8223 (record_full_disconnect): ... this. Updated all users.
8224 (record_detach): Renamed to ...
8225 (record_full_detach): ... this. Updated all users.
8226 (record_mourn_inferior): Renamed to ...
8227 (record_full_mourn_inferior): ... this. Updated all users.
8228 (record_kill): Renamed to ...
8229 (record_full_kill): ... this. Updated all users.
8230 (record_stopped_data_address): Renamed to ...
8231 (record_full_stopped_data_address): ... this. Updated all users.
8232 (record_registers_change): Renamed to ...
8233 (record_full_registers_change): ... this. Updated all users.
8234 (record_store_registers): Renamed to ...
8235 (record_full_store_registers): ... this. Updated all users.
8236 (record_xfer_partial): Renamed to ...
8237 (record_full_xfer_partial): ... this. Updated all users.
8238 (record_breakpoint): Renamed to ...
8239 (record_full_breakpoint): ... this. Updated all users.
8240 (record_breakpoint_p): Renamed to ...
8241 (record_full_breakpoint_p): ... this. Updated all users.
8242 (record_breakpoints): Renamed to ...
8243 (record_full_breakpoints): ... this. Updated all users.
8244 (record_sync_record_breakpoints): Renamed to ...
8245 (record_full_sync_record_breakpoints): ... this.
8246 Updated all users.
8247 (record_init_record_breakpoints): Renamed to ...
8248 (record_full_init_record_breakpoints): ... this.
8249 Updated all users.
8250 (record_insert_breakpoint): Renamed to ...
8251 (record_full_insert_breakpoint): ... this. Updated all users.
8252 (record_remove_breakpoint): Renamed to ...
8253 (record_full_remove_breakpoint): ... this. Updated all users.
8254 (record_can_execute_reverse): Renamed to ...
8255 (record_full_can_execute_reverse): ... this. Updated all users.
8256 (record_get_bookmark): Renamed to ...
8257 (record_full_get_bookmark): ... this. Updated all users.
8258 (record_goto_bookmark): Renamed to ...
8259 (record_full_goto_bookmark): ... this. Updated all users.
8260 (record_async): Renamed to ...
8261 (record_full_async): ... this. Updated all users.
8262 (record_can_async_p): Renamed to ...
8263 (record_full_can_async_p): ... this. Updated all users.
8264 (record_is_async_p): Renamed to ...
8265 (record_full_is_async_p): ... this. Updated all users.
8266 (record_execution_direction): Renamed to ...
8267 (record_full_execution_direction): ... this. Updated all users.
8268 (record_info): Renamed to ...
8269 (record_full_info): ... this. Updated all users.
8270 (record_delete): Renamed to ...
8271 (record_full_delete): ... this. Updated all users.
8272 (record_is_replaying): Renamed to ...
8273 (record_full_is_replaying): ... this. Updated all users.
8274 (record_goto_entry): Renamed to ...
8275 (record_full_goto_entry): ... this. Updated all users.
8276 (record_goto_begin): Renamed to ...
8277 (record_full_goto_begin): ... this. Updated all users.
8278 (record_goto_end): Renamed to ...
8279 (record_full_goto_end): ... this. Updated all users.
8280 (record_goto): Renamed to ...
8281 (record_full_goto): ... this. Updated all users.
8282 (init_record_ops): Renamed to ...
8283 (init_record_full_ops): ... this. Updated all users.
8284 (record_core_resume): Renamed to ...
8285 (record_full_core_resume): ... this. Updated all users.
8286 (record_core_kill): Renamed to ...
8287 (record_full_core_kill): ... this. Updated all users.
8288 (record_core_fetch_registers): Renamed to ...
8289 (record_full_core_fetch_registers): ... this. Updated all users.
8290 (record_core_prepare_to_store): Renamed to ...
8291 (record_full_core_prepare_to_store): ... this. Updated all users.
8292 (record_core_store_registers): Renamed to ...
8293 (record_full_core_store_registers): ... this. Updated all users.
8294 (record_core_xfer_partial): Renamed to ...
8295 (record_full_core_xfer_partial): ... this. Updated all users.
8296 (record_core_insert_breakpoint): Renamed to ...
8297 (record_full_core_insert_breakpoint): ... this. Updated all users.
8298 (record_core_remove_breakpoint): Renamed to ...
8299 (record_full_core_remove_breakpoint): ... this. Updated all users.
8300 (record_core_has_execution): Renamed to ...
8301 (record_full_core_has_execution): ... this. Updated all users.
8302 (init_record_core_ops): Renamed to ...
8303 (init_record_full_core_ops): ... this. Updated all users.
8304 (cmd_record_restore): Renamed to ...
8305 (cmd_record_full_restore): ... this. Updated all users.
8306 (record_save_cleanups): Renamed to ...
8307 (record_full_save_cleanups): ... this. Updated all users.
8308 (cmd_record_start): Renamed to ...
8309 (cmd_record_full_start): ... this. Updated all users.
8310 (set_record_insn_max_num): Renamed to ...
8311 (set_record_full_insn_max_num): ... this. Updated all users.
8312 (set_record_command): Renamed to ...
8313 (set_record_full_command): ... this. Updated all users.
8314 (show_record_command): Renamed to ...
8315 (show_record_full_command): ... this. Updated all users.
8316 (_initialize_record): Renamed to ...
8317 (_initialize_record_full): ... this. Updated all users.
8318
d02ed0bb
MM
83192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8320
8321 * record.h: Split into this and ...
8322 * record-full.h: ... this.
8323 * record.c: Split into this and ...
8324 * record-full.c: ... this.
8325 * target.h (target_ops): Add new fields to_info_record,
8326 to_save_record, to_delete_record, to_record_is_replaying,
8327 to_goto_record_begin, to_goto_record_end, to_goto_record.
8328 (target_info_record): New.
8329 (target_save_record): New.
8330 (target_supports_delete_record): New.
8331 (target_delete_record): New.
8332 (target_record_is_replaying): New.
8333 (target_goto_record_begin): New.
8334 (target_goto_record_end): New.
8335 (target_goto_record): New.
8336 * target.c (target_info_record): New.
8337 (target_save_record): New.
8338 (target_supports_delete_record): New.
8339 (target_delete_record): New.
8340 (target_record_is_replaying): New.
8341 (target_goto_record_begin): New.
8342 (target_goto_record_end): New.
8343 (target_goto_record): New.
8344 * record.h: Declare struct cmd_list_element.
8345 (record_cmdlist): New declaration.
8346 (set_record_cmdlist): New declaration.
8347 (show_record_cmdlist): New declaration.
8348 (info_record_cmdlist): New declaration.
8349 (cmd_record_goto): New declaration.
8350 * record.c: Remove unnecessary includes.
8351 Include inferior.h.
8352 (cmd_record_goto): Remove declaration.
8353 (record_cmdlist): Now extern. Initialize.
8354 (set_record_cmdlist): Now extern. Initialize.
8355 (show_record_cmdlist): Now extern. Initialize.
8356 (info_record_cmdlist): Now extern. Initialize.
8357 (find_record_target): New.
8358 (require_record_target): New.
8359 (cmd_record_start): Update.
8360 (cmd_record_delete): Remove target-specific code.
8361 Call target_delete_record.
8362 (cmd_record_stop): Unpush any record target.
8363 (set_record_insn_max_num): Move to record-full.c
8364 (set_record_command): Add comment.
8365 (show_record_command): Add comment.
8366 (info_record_command): Update comment.
8367 Remove target-specific code.
8368 Call the record target's to_info_record.
8369 (cmd_record_start): New.
8370 (cmd_record_goto): Now extern.
8371 Remove target-specific code.
8372 Call target_goto_begin, target_goto_end, or target_goto.
8373 (_initialize_record): Move record target ops initialization to
8374 record-full.c.
8375 Change "record" command help text.
8376 Move "record restore", "record set", and "record show" commands to
8377 record-full.c.
8378 * Makefile.in (SFILES): Add record-full.c.
8379 (HFILES_NO_SRCDIR): Add record-full.h.
8380 (COMMON_OBS): Add record-full.o.
8381 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8382 * arm-tdep.c: Include record-full.h.
8383 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8384 * i386-tdep.c: Include record-full.h.
8385 * infrun.c: Include record-full.h.
8386 * linux-record.c: Include record-full.h.
8387 * moxie-tdep.c: Include record-full.h.
8388 * record-full.c: Include record-full.h.
8389 Change module comment.
8390 (set_record_full_cmdlist): New.
8391 (show_record_full_cmdlist): New.
8392 (record_full_cmdlist): New.
8393 (record_goto_insn): New declaration.
8394 (record_save): New declaration.
8395 (record_check_insn_num): Change query string.
8396 (record_info): New.
8397 (record_delete): New.
8398 (record_is_replaying): New.
8399 (record_goto_entry): New.
8400 (record_goto_begin): New.
8401 (record_goto_end): New.
8402 (record_goto): New.
8403 (init_record_ops): Update.
8404 (init_record_core_ops): Update.
8405 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8406 (cmd_record_start): New.
8407 (set_record_insn_max_num): Moved from record.c
8408 (set_record_full_command): New.
8409 (show_record_full_command): New.
8410 (_initialize_record_full): New.
8411
b48d48eb
MM
84122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8413
8414 * target.h (add_deprecated_target_alias): New.
8415 * target.c (add_deprecated_target_alias): New.
8416
a950d57c
MM
84172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8418
8419 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8420 and signal.h.
8421 (linux_supports_btrace): Add kernel and
8422 cpuid check.
8423 (kernel_supports_btrace): New function.
8424 (cpu_supports_btrace): New function.
8425 (intel_supports_btrace): New function.
8426
9accd112
MM
84272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8428
8429 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8430 * remote.c: Include btrace.h.
8431 (struct btrace_target_info): New struct.
8432 (remote_supports_btrace): New function.
8433 (send_Qbtrace): New function.
8434 (remote_enable_btrace): New function.
8435 (remote_disable_btrace): New function.
8436 (remote_teardown_btrace): New function.
8437 (remote_read_btrace): New function.
8438 (init_remote_ops): Add btrace ops.
8439 (enum <unnamed>): Add btrace packets.
8440 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8441 (_initialize_remote): Add packet configuration for branch tracing.
8442
c12a2917
MM
84432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8444
8445 * features/btrace.dtd: New file.
8446 * Makefile.in (XMLFILES): Add btrace.dtd.
8447 * btrace.h (parse_xml_btrace): New declaration.
8448 * btrace.c: Include xml-support.h.
8449 (parse_xml_btrace): New function.
8450 (parse_xml_btrace_block): New function.
8451 (block_attributes): New struct.
8452 (btrace_attributes): New struct.
8453 (btrace_children): New struct.
8454 (btrace_elements): New struct.
8455
3e3aea48
MM
84562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8457
8458 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8459 (amd64_linux_enable_btrace): New.
8460 (amd64_linux_disable_btrace): New.
8461 (amd64_linux_teardown_btrace): New.
8462 (_initialize_amd64_linux_nat): Initialize btrace ops.
8463 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8464 (i386_linux_enable_btrace): New.
8465 (i386_linux_disable_btrace): New.
8466 (i386_linux_teardown_btrace): New.
8467 (_initialize_i386_linux_nat): Initialize btrace ops.
8468 * config/i386/linux.mh: Add linux-btrace.o.
8469 * config/i386/linux64.mh: Add linux-btrace.o.
8470
7c97f91e
MM
84712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8472
8473 * common/linux_btrace.h: New file.
8474 * common/linux_btrace.c: New file.
8475 * Makefile.in (SFILES): Add btrace.c.
8476 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8477 (COMMON_OBS): Add btrace.o.
8478 (linux-btrace.o): New rule.
8479
1999790b 84802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8481
8482 * target.h: Include btrace.h.
8483 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8484 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8485 * target.c (target_supports_btrace): New function.
8486 (target_enable_btrace): New function.
8487 (target_disable_btrace): New function.
8488 (target_teardown_btrace): New function.
8489 (target_read_btrace): New function.
8490 * btrace.h: New file.
8491 * btrace.c: New file.
8492 * Makefile.in: Add btrace.c.
8493 * gdbthread.h: Include btrace.h.
8494 (struct thread_info): Add btrace field.
8495 * thread.c: Include btrace.h.
8496 (clear_thread_inferior_resources): Call target_teardown_btrace.
8497 * common/btrace-common.h: New file.
8498
61a31a67
JK
84992013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8500
8501 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8502 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8503 kill_status to outer block.
8504
05c56a9d
JK
85052013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8506
8507 Fix entry-values if the callee called a noreturn function.
8508 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8509 get_frame_address_in_block. Add new comment.
8510
9112db09
JK
85112013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8512
8513 Fix entry-values in C++ across CUs.
8514 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8515 lookup_minimal_symbol. Add a comment.
8516 * dwarf2read.c
8517 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8518 DW_AT_linkage_name.
8519
9b67fcec
YQ
85202013-03-08 Yao Qi <yao@codesourcery.com>
8521
8522 * tracepoint.c (_initialize_tracepoint): Indent the code.
8523
6221be90
PA
85242013-03-08 Pedro Alves <palves@redhat.com>
8525
8526 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8527 (parse_find_args, find_command): Change type of pattern buffer
8528 locals to 'gdb_byte *'.
8529
be9a119c 85302013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8531 Hafiz Abid Qadeer <abidh@codesourcery.com>
8532
8533 * NEWS: Mention set and show trace-buffer-size commands.
8534 Mention new packet.
8535 * target.h (struct target_ops): New method
8536 to_set_trace_buffer_size.
8537 (target_set_trace_buffer_size): New macro.
8538 * target.c (update_current_target): Set up new method.
8539 * tracepoint.c (trace_buffer_size): New global.
8540 (start_tracing): Send it to the target.
8541 (set_trace_buffer_size): New function.
8542 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8543 * remote.c (remote_set_trace_buffer_size): New function.
8544 (_initialize_remote): Use it.
8545 (QTBuffer:size) New remote command.
8546 (PACKET_QTBuffer_size): New enum.
8547 (remote_protocol_features): Add an entry for
8548 PACKET_QTBuffer_size.
8549
7da3ab79
TT
85502013-03-08 Tom Tromey <tromey@redhat.com>
8551
8552 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8553 variable.
8554
0c1f71e7
PA
85552013-03-07 Pedro Alves <palves@redhat.com>
8556
8557 * target.c (target_read_stralloc, target_fileio_read_alloc):
8558 *Cast pointer to 'gdb_byte *' in target call.
8559
c8af03a2
PA
85602013-03-07 Pedro Alves <palves@redhat.com>
8561
8562 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8563 call.
8564
529480d0
KS
85652013-03-07 Keith Seitz <keiths@redhat.com>
8566
8567 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8568 (trace_pass_command): Likewise.
8569 * cli/cli-cmds.c: Include cli/cli-utils.h.
8570 (source_command): Use skip-spaces.
8571 (disassemble_command): Likewise.
8572 * findcmd.c: Include cli/cli-utils.h.
8573 (parse_find_args): Use skip_spaces.
8574 * go32-nat.c: Include cli/cli-utils.h.
8575 (go32_sldt): Use skip_spaces.
8576 (go32_sgdt): Likewise.
8577 (go32_sidt): Likewise.
8578 (go32_pde): Likewise.
8579 (go32_pte): Likewise.
8580 (go32_pte_for_address): Likewise.
8581 * infcmd.c: Include cli/cli-utils.h.
8582 (registers_info): Use skip_spaces.
8583 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8584 (linux_info_proc): Likewise.
8585 * linux-thread-db.c: Include cli/cli-utils.h.
8586 (info_auto_load_libthread_db): Use skip_spaces_const.
8587 * m32r-rom.c: Include cli/cli-utils.h.
8588 (m32r_upload_command): Use skip_spaces.
8589 * maint.c: Include cli/cli-utils.h.
8590 (maintenance_translate_address): Use skip_spaces.
8591 * mi/mi-parse.c: Include cli/cli-utils.h.
8592 (mi_parse_argv): Use skip_spaces.
8593 (mi_parse): Likewise.
8594 * minsyms.c: Include cli/cli-utils.h.
8595 (msymbol_hash_iw): Use skip_spaces_const.
8596 * objc-lang.c: Include cli/cli-utils.h.
8597 (parse_selector): Use skip_spaces.
8598 (parse_method): Likewise.
8599 * python/python.c: Include cli/cli-utils.h.
8600 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8601 (python_command)[HAVE_PYTHON]: Likewise.
8602 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8603 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8604 (m32r_load): Use skip_spaces.
8605 * serial.c: Include cli/cli-utils.h.
8606 (serial_open): Use skip_spaces_const.
8607 * stack.c: Include cli/cli-utils.h.
8608 (parse_frame_specification_1): Use skip_spaces_const.
8609 * symfile.c: Include cli/cli-utils.h.
8610 (set_ext_lang_command): Use skip_spaces.
8611 * symtab.c: Include cli/cli-utils.h.
8612 (rbreak_command): Use skip_spaces.
8613 * thread.c (thread_name_command): Use skip_spaces.
8614 * tracepoint.c (validate_actionline): Use skip_spaces.
8615 (encode_actions_1): Likewise.
8616 (trace_find_range_command): Likewise.
8617 (trace_find_outside_command): Likewise.
8618 (trace_dump_actions): Likewise.
8619
ac91cd70
PA
86202013-03-07 Pedro Alves <palves@redhat.com>
8621
8622 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8623 * expprint.c (print_subexp_standard): Likewise.
8624 * utils.c (host_char_to_target): Likewise.
8625 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8626 * varobj.c (value_get_print_value): Change type of local to char*.
8627 Cast it gdb_byte * in call to language printer.
8628
2898e560
PA
86292013-03-07 Pedro Alves <palves@redhat.com>
8630
8631 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8632 gdb_byte *'.
8633 (make_wchar_iterator): Remove cast to char*.
8634 (wchar_iterate): Change type of local.
8635
a09b4448
PA
86362013-03-07 Pedro Alves <palves@redhat.com>
8637
8638 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8639 for 'regcache->register_status'.
8640
20ced3e4
PA
86412013-03-07 Pedro Alves <palves@redhat.com>
8642
c2d6a675 8643 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8644 int.
8645
fe106009
PA
86462013-03-07 Pedro Alves <palves@redhat.com>
8647
8648 * stap-probe.c (handle_stap_probe): Add cast to char*.
8649
8ac2c12b
PA
86502013-03-07 Pedro Alves <palves@redhat.com>
8651
8652 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8653 RECORD_MSGRCV>: Pass a signed variable to
8654 regcache_raw_read_signed, instead of an unsigned one.
8655
99f0a309
PA
86562013-03-07 Pedro Alves <palves@redhat.com>
8657
8658 * remote-notif.c (notif_debug): Change type to int.
8659 * remote-notif.h (notif_debug): Likewise.
8660
964b8317
PA
86612013-03-07 Pedro Alves <palves@redhat.com>
8662
8663 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8664
f0cc8ad4
PA
86652013-03-07 Pedro Alves <palves@redhat.com>
8666
8667 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8668 * remote.h (hex2bin, bin2hex): ... here.
8669 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8670
77dec115
EZ
86712013-03-07 Eli Zaretskii <eliz@gnu.org>
8672
8673 * utils.c (initialize_utils): Improve doc strings of "set/show
8674 width", "set/show height", and "set/show pagination".
8675
741d92cf
KS
86762013-03-06 Keith Seitz <keiths@redhat.com>
8677
8678 * ax-gdb.c (gen_printf): Make FORMAT const.
8679 * ax-gdb.h (gen_printf): Likewise.
8680 * ax-general.c (ax_string): Make STR const.
8681 * ax.h (ax_string): Likewise.
8682
7b6c814e
DE
86832013-03-06 Doug Evans <dje@google.com>
8684
8685 * elfread.c (elf_symfile_read): Move debugging printf to more
8686 logical location.
8687
634334ab
PA
86882013-03-06 Pedro Alves <palves@redhat.com>
8689
8690 * python/py-utils.c (target_string_to_unicode): Delete function.
8691 * python/python-internal.h (target_string_to_unicode): Delete
8692 declaration.
8693
e482a1a7
PM
86942013-03-06 Pierre Muller <muller@sourceware.org>
8695
8696 * linespec.c (get_current_search_block): ARI fix, use (void)
8697 for empty parameter list.
8698
4eeaa230
DE
86992013-03-05 Doug Evans <dje@google.com>
8700
8701 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8702 of old ada_lookup_symbol_list. In !full_search case, don't
8703 search superblocks.
8704 (ada_lookup_symbol_list): Delete arg full_search, all callers
8705 updated. Call ada_lookup_symbol_list_worker.
8706 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8707 * ada-lang.h (ada_lookup_symbol_list): Update.
8708 * language.h (language_defn): Update comment for
8709 la_iterate_over_symbols.
8710 * linespec.c (iterate_over_file_blocks): New function.
8711 (iterate_over_all_matching_symtabs): Call it.
8712 (lookup_prefix_sym): Ditto.
8713 (get_current_search_block): New function.
8714 (get_search_block): Delete.
8715 (find_label_symbols): Call get_current_search_block.
8716 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8717 * symtab.c (iterate_over_symbols): Don't search superblocks.
8718
b69b1fb1
YQ
87192013-03-05 Yao Qi <yao@codesourcery.com>
8720
8721 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8722 parameter VAR's type from "unsigned int" to "int".
8723 * command.h (var_zuinteger_unlimited): Update its comments.
8724 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8725
3c095f49
CV
87262013-03-05 Corinna Vinschen <vinschen@redhat.de>
8727
8728 * NEWS: Mention new target x86_64-*-cygwin*.
8729
b5b0b0af
CV
87302013-03-05 Corinna Vinschen <vinschen@redhat.de>
8731
8732 * configure.host: Add x86_64-*-cygwin* as host.
8733 * configure.tgt: Add x86_64-*-cygwin* as target.
8734 * config/i386/cygwin64.mh: New file.
8735
f6f99966
JK
87362013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8737
8738 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8739
33f448b1
JK
87402013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 * linespec.c (struct linespec_canonical_name): New.
8743 (struct linespec_state): Change canonical_names type to it.
8744 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8745 xrealloc element size. Initialize the different CANONICAL fields.
8746 (canonical_to_fullform): New.
8747 (filter_results): Use it. Add variables canonical, fullform and
8748 cleanup.
8749 (struct decode_line_2_item, decode_line_2_compare_items): New.
8750 (decode_line_2): Remove variables iter and item_names, add variables
8751 items and items_count. Modify the code for these new variables.
8752
feb14725
CV
87532013-03-04 Corinna Vinschen <vinschen@redhat.com>
8754
8755 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8756 calling do_cleanup.
8757
e83b17ba
HZ
87582013-03-04 Luis Machado <lgustavo@codesourcery.com>
8759
8760 * tracepoint.c (build_traceframe_info): Add code for byte order.
8761
a2d13a0d
KB
87622013-03-02 Kevin Buettner <kevinb@redhat.com>
8763
8dddcae8
KB
8764 * v850-tdep.c: (v850e2_register_name): Revise system register
8765 names to match current V850E2M architecture specifications.
8766 Update register number enum comments too.
f5aee5ee 8767
d79e58d8
JW
87682013-03-01 Jiong Wang <jiwang@tilera.com>
8769 Pedro Alves <palves@redhat.com>
8770
8771 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8772 to END_ADDR.
8773 (tilegx_skip_prologue): Limit prologue analysis to section end.
8774
c4be5165
JK
87752013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8776
8777 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8778 use it.
8779
e362b510
PA
87802013-03-01 Pedro Alves <palves@redhat.com>
8781
8782 Use gdb_byte for bytes from the program being debugged.
8783
8784 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8785 Change type of local 'buf' to gdb_byte.
8786 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8787 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8788 * cris-tdep.c (cris_sigcontext_addr)
8789 (cris_sigtramp_frame_unwind_cache): Likewise.
8790 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8791 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8792 Likewise.
8793 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8794 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8795 (hppa32_hpux_search_dummy_call_sequence)
8796 (hppa_hpux_supply_save_state): Likewise.
8797 * hppa-linux-tdep.c (insns_match_pattern)
8798 (hppa_linux_find_global_pointer): Likewise.
8799 * hppa-tdep.c (hppa_in_function_epilogue_p)
8800 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8801 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8802 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8803 (i386fbsd_collect_uthread): Likewise.
8804 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8805 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8806 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8807 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8808 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8809 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8810 (ia64_libunwind_frame_prev_register)
8811 (ia64_libunwind_sigtramp_frame_this_id)
8812 (ia64_find_global_pointer_from_dynamic_section)
8813 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8814 (ia64_unwind_pc): Likewise.
8815 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8816 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8817 (m68hc11_extract_return_value): Likewise.
8818 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8819 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8820 (mep_get_insn, mep_push_dummy_call): Likewise.
8821 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8822 (mips_linux_in_dynsym_stub): Likewise.
8823 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8824 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8825 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8826 to gdb_byte.
8827 * remote-mips.c (mips_set_register): Likewise.
8828 * remote-sim.c (gdbsim_fetch_register): Likewise.
8829 * score-tdep.c (score7_fetch_inst): Change type of parameter
8830 'memblock' and local 'buf' to gdb_byte.
8831 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8832 Change type of local 'buf' to gdb_byte. Adjust.
8833 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8834 to gdb_byte**.
8835 (score7_analyze_prologue): Change type of 'memblock' and
8836 'memblock_ptr' locals to gdb_byte*.
8837 * sh64-tdep.c (sh64_extract_return_value)
8838 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8839 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8840 * solib-pa64.c (pa64_solib_create_inferior_hook)
8841 (pa64_open_symbol_file_object): Remove local 'buf'.
8842 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8843 (som_open_symbol_file_object): Likewise.
8844 * solib-spu.c (spu_current_sos): Likewise.
8845 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8846 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8847 (spu_store_registers): Likewise.
8848 * target.c (debug_print_register): Likewise.
8849 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8850 * xstormy16-tdep.c (xstormy16_store_return_value)
8851 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8852 (xstormy16_find_jmp_table_entry): Likewise.
8853
75cc61ca 88542013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8855
8856 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8857 (tilegx_gdbarch_init): Install it.
8858
ddb08e9c
TT
88592013-02-28 Tom Tromey <tromey@redhat.com>
8860
8861 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8862 PyLong_Check.
8863
62d7fb51
DE
88642013-02-28 Doug Evans <dje@google.com>
8865
8866 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8867 * python/python.c (gdbpy_find_pc_line): Ditto.
8868
c4a9e8b4
TT
88692013-02-28 Tom Tromey <tromey@redhat.com>
8870
8871 * contrib/excheck.py: New file.
8872 * contrib/exsummary.py: New file.
8873 * contrib/gcc-with-excheck: New file.
8874
7f6a5dde
TT
88752013-02-28 Tom Tromey <tromey@redhat.com>
8876
8877 * python/python.c (gdbpy_print_stack): Call begin_line and
8878 fprintf_filtered inside TRY_CATCH.
8879
9e974e55
TT
88802013-02-28 Tom Tromey <tromey@redhat.com>
8881
8882 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8883 inside TRY_CATCH.
8884
dd5fa3e7
TT
88852013-02-28 Tom Tromey <tromey@redhat.com>
8886
8887 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8888 frame_object_to_frame_info inside TRY_CATCH.
8889
86a3263f
TT
88902013-02-28 Tom Tromey <tromey@redhat.com>
8891
8892 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8893 TRY_CATCH.
8894
81b52a3a
TT
88952013-02-28 Tom Tromey <tromey@redhat.com>
8896
8897 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8898
d50a0ce2
CV
88992013-02-27 Corinna Vinschen <vinschen@redhat.com>
8900
8901 * windows-nat.c: Throughout, fix format strings and casts of
8902 printf-like functions to avoid type related warnings on all
8903 platforms.
8904 (handle_output_debug_string): Fetch context information address
8905 from debug string using string_to_core_addr.
8906
e1f58301
JW
89072013-02-27 Jiong Wang <jiwang@tilera.com>
8908
8909 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8910 * regformats/reg-tilegx32.dat: New.
8911
4fcd89fc
JW
89122013-02-27 Jiong Wang <jiwang@tilera.com>
8913
8914 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8915
748d24e6
JW
89162013-02-27 Jiong Wang <jiwang@tilera.com>
8917
8918 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8919
6c8e944d
YQ
89202013-02-27 Yao Qi <yao@codesourcery.com>
8921 Pedro Alves <palves@redhat.com>
8922
8923 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
8924 pc/tp/range/outside, look for the next trace frame instead of
8925 always starting from frame 0.
6c8e944d 8926
acd7db30
AG
89272013-02-26 Anthony Green <green@moxielogic.com>
8928
8929 * configure.tgt: Add support for moxie-*-rtems* target.
8930
025e6dce
PA
89312013-02-25 Pedro Alves <palves@redhat.com>
8932
8933 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8934 warning text.
8935
ca9c94ef
MR
89362013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8937
8938 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8939 if $fp is used as the virtual frame pointer.
8940
24c274a1
AM
89412013-02-23 Alan Modra <amodra@gmail.com>
8942
8943 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8944 symbol size.
8945 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8946 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8947 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8948 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8949
bfada189
JK
89502013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8951
8952 Code cleanup.
8953 * elfread.c (build_id_bfd_get): Make the return type const.
8954 (build_id_verify): Make the check parameter const.
8955 (build_id_to_debug_filename): Make the build_id parameter and variable
8956 data const.
8957 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8958
c0355132
AM
89592013-02-21 Alan Modra <amodra@gmail.com>
8960
8961 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8962
9f44fbc0
SCR
89632013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8964
8965 Add a new method 'disassemble' to gdb.Architecture class.
8966 * python/py-arch.c (archpy_disassmble): Implementation of the
8967 new method gdb.Architecture.disassemble.
8968 (arch_object_methods): Add entry for the new method.
8969
b74ea3eb
JW
89702013-02-20 Jiong Wang <jiwang@tilera.com>
8971
8972 * MAINTAINERS (Write After Approval): Add myself to the list.
8973
61a672f1
PA
89742013-02-19 Pedro Alves <palves@redhat.com>
8975
8976 Garbage collect 'struct monitor_ops'::load_routine.
8977
8978 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8979 * monitor.c (monitor_load): No longer call
8980 current_monitor->load_routine.
8981 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8982 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8983 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8984
40e397df
PA
89852013-02-19 Pedro Alves <palves@redhat.com>
8986
8987 PR gdb/15161
8988
8989 Harmonize with generic_load.
8990
8991 * monitor.c: Include "readline/readline.h".
8992 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8993 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8994 long/strtol for the 'load_offset' local. Error out if no argument
8995 is given or if too many arguments are given. Tilde expand the
8996 passed in file name.
8997
f698ca8e
KT
89982013-02-19 Kai Tietz <ktietz@redhat.com>
8999
9000 PR gdb/15161
9001 * symfile.c (load_section_data): Change type of load_offset
9002 to CORE_ADDR.
9003 (generic_load): User strtoulst instead of strtoul for conversion
9004 of load_offset.
9005
3361b059
WL
90062013-02-19 Jiong Wang <jiwang@tilera.com>
9007
9008 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9009 for return address, "lr" register, saved on stack.
9010 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9011 after we invoke tilegx_analyze_prologue.
9012
3e9d5130
WL
90132013-02-19 Jiong Wang <jiwang@tilera.com>
9014
bb1bcd86
WL
9015 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9016
3361b059 90172013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9018
b74ea3eb 9019 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9020
4aaf2503
WL
90212013-02-19 Jiong Wang <jiwang@tilera.com>
9022
b74ea3eb 9023 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9024 (tilegx_write_pc): New function.
9025 (tilegx_cannot_reference_register): Return zero if REGNO
9026 is TILEGX_FAULTNUM_REGNUM.
9027 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9028 (tilegx_register_name): Add handling of "faultnum" register.
9029 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9030 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9031 handling of TILEGX_FAULTNUM_REGNUM.
9032 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9033
bc23a956
WL
90342013-02-19 Jiong Wang <jiwang@tilera.com>
9035
9036 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9037 should be aligned to 64bit.
bc23a956 9038
42f45f1a
KT
90392013-02-19 Kai Tietz <ktietz@redhat.com>
9040
9041 * windows-nat.c (windows_xfer_memory): Fix debug-output
9042 for LLP64.
9043
6ce4c112
LL
90442013-02-19 Lei Liu <lei.liu2@windriver.com>
9045
9046 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9047 Don't check DSP register number if HAVE_DSP is not set.
9048
30e8ee25
AM
90492013-02-19 Alan Modra <amodra@gmail.com>
9050
9051 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9052 throughout file instead.
9053 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9054 Don't xmalloc return value.
9055 (build_id_verify): Similarly. Don't xfree.
9056 (build_id_to_debug_filename): Update.
9057 (find_separate_debug_file_by_buildid): Update, don't xfree.
9058
4c9ad8c2
TT
90592013-02-18 Tom Tromey <tromey@redhat.com>
9060
9061 PR gdb/15102:
9062 * dwarf2read.c (read_subrange_type): Use result of
9063 'check_typedef'.
9064
983dc440
YQ
90652013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9066
9067 * frame.c: Remove one extra white space after #include
9068 directive.
9069
7fb2b84a
JK
90702013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9071
9072 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9073
edceb2a9
JK
90742013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9075
9076 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9077 and dir commands into an if block.
9078
e81b7af8
TT
90792013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9080
9081 * python/py-breakpoint (struct pybp_code): Use int instead of
9082 enum type_code.
9083
f5911ea1
HAQ
90842013-02-15 Pedro Alves <pedro@codesourcery.com>
9085 Hafiz Abid Qadeer <abidh@codesourcery.com>
9086
9087 * NEWS: Mention new field "trace-file".
9088 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9089 (tfile_open): Record the trace file's filename in the trace
9090 status.
9091 (tfile_files_info): Mention the name of the trace file.
9092 Check the "filename" field explicitely.
9093 (trace_status_command): Explicitely check "filename" field.
9094 (trace_find_command): Ditto.
9095 (trace_find_pc_command): Ditto.
9096 (trace_find_tracepoint_command): Ditto.
9097 (trace_find_line_command): Ditto.
9098 (trace_find_range_command): Ditto.
9099 (trace_find_outside_command): Ditto.
9100 * tracepoint.h (struct trace_status) <from_file>: Rename it
9101 to "filename" and make it hold the trace file's filename
9102 instead of a boolean.
9103 * remote.c (remote_get_trace_status): Initialize "filename"
9104 field with NULL instead of 0.
9105
796cb314
YQ
91062013-02-15 Yao Qi <yao@codesourcery.com>
9107
9108 * remote.c: Fix a typo.
9109
42e79b1d
PM
91102013-02-14 Pierre Muller <muller@sourceware.org>
9111
9112 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9113
baea0dae
PA
91142013-02-14 Pedro Alves <palves@redhat.com>
9115
9116 * utils.c (savestring): Don't #undef it. Move function to
9117 common/common-utils.c.
9118 * common/common-utils.c: Include gdb_string.h.
9119 (savestring): Move here from utils.c.
9120 * common/common-utils.h (savestring): Declare.
9121
57c3b6ed
PA
91222013-02-14 Pedro Alves <palves@redhat.com>
9123
9124 * utils.c (savestring): Rename parameter 'size' to 'len'.
9125
d6c44983
YZ
91262013-02-14 Pedro Alves <palves@redhat.com>
9127 Yufeng Zhang <yufeng.zhang@arm.com>
9128
9129 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9130 (aarch64_inferior_data, struct aarch64_inferior_data):
9131 Delete.
9132 (struct aarch64_process_info): New.
9133 (aarch64_process_list): New global.
9134 (aarch64_find_process_pid, aarch64_add_process)
9135 (aarch64_process_info_get): New functions.
9136 (aarch64_inferior_data_get): Delete.
9137 (aarch64_process_info_get): New function.
9138 (aarch64_forget_process): New function.
9139 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9140 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9141 aarch64_get_debug_reg_state.
9142 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9143 instead of linux_nat_iterate_watchpoint_lwps.
9144 (aarch64_linux_new_fork): New function.
9145 (aarch64_linux_child_post_startup_inferior): Use
9146 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9147 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9148 (aarch64_linux_remove_hw_breakpoint)
9149 (aarch64_handle_aligned_watchpoint)
9150 (aarch64_handle_unaligned_watchpoint)
9151 (aarch64_linux_insert_watchpoint)
9152 (aarch64_linux_remove_watchpoint)
9153 (aarch64_linux_stopped_data_address): Adjust to pass the current
9154 process id to aarch64_debug_reg_state.
9155 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9156 linux_nat_new_fork hook, and aarch64_forget_process as
9157 linux_nat_forget_process hook; remove the call to
9158 register_inferior_data_with_cleanup.
9159
4819b3f8
PA
91602013-02-14 Pedro Alves <palves@redhat.com>
9161
9162 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9163 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9164 lval_memory.
9165
1773c82c
HAQ
91662013-02-14 Pedro Alves <pedro@codesourcery.com>
9167 Hafiz Abid Qadeer <abidh@codesourcery.com>
9168
9169 * tracepoint.h (validate_trace_state_variable_name): Declare.
9170 * tracepoint.c (validate_trace_state_variable_name): New.
9171 (trace_variable_command): Parse the trace state variable's name
9172 without using parse_expression. Do several validations.
9173 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9174 trace state variable's name with parse_expression. Validate it.
9175
53778a97
YQ
91762013-02-14 Yao Qi <yao@codesourcery.com>
9177
9178 * infcmd.c (breakpoint_proceeded): Remove it.
9179
7b3ae3a6
YQ
91802013-02-14 Yao Qi <yao@codesourcery.com>
9181
9182 * tracepoint.c (end_actions_pseudocommand): Make it static.
9183 (while_stepping_pseudocommand): Likewise.
9184 * tracepoint.h (end_actions_pseudocommand): Remove the
9185 declaration.
9186 (while_stepping_pseudocommand): Likewise.
9187
64580925
YQ
91882013-02-14 Yao Qi <yao@codesourcery.com>
9189
9190 * cli/cli-decode.c (help_cmd): Remove the declaration of
9191 "cmdlist".
9192 (help_all): Likewise.
9193
26cb8b7c
PA
91942013-02-13 Pedro Alves <palves@redhat.com>
9195
9196 * amd64-linux-nat.c (update_debug_registers_callback):
9197 Update comment.
9198 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9199 iterate_over_lwps.
9200 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9201 i386_debug_reg_state.
9202 (amd64_linux_new_fork): New function.
9203 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9204 linux_nat_new_fork hook, and i386_forget_process as
9205 linux_nat_forget_process hook.
9206 * i386-linux-nat.c (update_debug_registers_callback):
9207 Update comment.
a8256ea1 9208 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9209 iterate_over_lwps.
9210 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9211 i386_debug_reg_state.
9212 (i386_linux_new_fork): New function.
9213 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9214 linux_nat_new_fork hook, and i386_forget_process as
9215 linux_nat_forget_process hook.
9216 * i386-nat.c (i386_init_dregs): Delete.
9217 (i386_inferior_data, struct i386_inferior_data):
9218 Delete.
9219 (struct i386_process_info): New.
9220 (i386_process_list): New global.
9221 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9222 New functions.
9223 (i386_inferior_data_get): Delete.
9224 (i386_process_info_get): New function.
9225 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9226 (i386_forget_process): New function.
9227 (i386_cleanup_dregs): Rewrite.
9228 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9229 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9230 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9231 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9232 to i386_debug_reg_state.
9233 (i386_use_watchpoints): Don't register inferior data.
9234 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9235 adjust comment.
9236 (i386_forget_process): Declare.
9237 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9238 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9239 New static globals.
9240 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9241 (add_initial_lwp): New, factored out from ...
9242 (add_lwp): ... this. Don't check the number of lwps before
9243 calling linux_nat_new_thread.
9244 (linux_nat_iterate_watchpoint_lwps): Delete.
9245 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9246 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9247 forks and vforks.
9248 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9249 initial lwp.
9250 (linux_nat_kill, linux_nat_mourn_inferior): Call
9251 linux_nat_forget_process.
9252 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9253 (linux_nat_forget_process): New functions.
9254 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9255 type.
9256 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9257 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9258 types.
9259 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9260 (linux_nat_forget_process): New declarations.
9261
9262 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9263 (amd64fbsd_mourn_inferior): New function.
9264 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9265 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9266
5befea72
MS
92672013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9268
55015247
YQ
9269 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9270 Adding _().
5befea72 9271
1d3ffd6b
MS
92722013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9273
9274 * aarch64-linux-nat.c (debug_reg_change_callback)
9275 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9276 %s and phex().
9277
6eb04473
MS
92782013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9279
9280 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9281 with LONGEST.
9282
a016fc87
HAQ
92832013-02-13 Pedro Alves <palves@redhat.com>
9284 Hafiz Abid Qadeer <abidh@codesourcery.com>
9285
9286 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9287
e234dfaf
TT
92882013-02-12 Tom Tromey <tromey@redhat.com>
9289
9290 PR symtab/11464:
9291 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9292 NAME return.
9293 (classify_inner_name): Remove 'first_name' argument, add
9294 'context'. Remove unused variable.
9295 (yylex): Explicitly maintain the context type. Exit loop earlier
9296 if NAME result is seen.
9297
0b1afbb3
PA
92982013-02-12 Pedro Alves <palves@redhat.com>
9299
9300 * amd64-darwin-tdep.c: Add (C) after Copyright.
9301 * cli/cli-cmds.h: Ditto.
9302 * cli/cli-decode.c: Ditto.
9303 * cli/cli-decode.h: Ditto.
9304 * cli/cli-dump.c: Ditto.
9305 * cli/cli-dump.h: Ditto.
9306 * cli/cli-interp.c: Ditto.
9307 * cli/cli-logging.c: Ditto.
9308 * cli/cli-script.c: Ditto.
9309 * cli/cli-script.h: Ditto.
9310 * cli/cli-setshow.c: Ditto.
9311 * cli/cli-setshow.h: Ditto.
9312 * cli/cli-utils.c: Ditto.
9313 * cli/cli-utils.h: Ditto.
9314 * config/alpha/nm-osf3.h: Ditto.
9315 * config/djgpp/djconfig.sh: Ditto.
9316 * config/i386/nm-fbsd.h: Ditto.
9317 * config/i386/nm-i386gnu.h: Ditto.
9318 * config/nm-linux.h: Ditto.
9319 * config/nm-nto.h: Ditto.
9320 * config/rs6000/nm-rs6000.h: Ditto.
9321 * config/sparc/nm-sol2.h: Ditto.
9322 * darwin-nat-info.c: Ditto.
9323 * dfp.c: Ditto.
9324 * dfp.h: Ditto.
9325 * gdb-demangle.h: Ditto.
9326 * i386-darwin-nat.c: Ditto.
9327 * i386-darwin-tdep.c: Ditto.
9328 * linux-fork.h: Ditto.
9329 * m32c-tdep.c: Ditto.
9330 * microblaze-linux-tdep.c: Ditto.
9331 * microblaze-rom.c: Ditto.
9332 * microblaze-tdep.c: Ditto.
9333 * microblaze-tdep.h: Ditto.
9334 * mips-linux-tdep.h: Ditto.
9335 * ppc-ravenscar-thread.c: Ditto.
9336 * ppc-ravenscar-thread.h: Ditto.
9337 * prologue-value.c: Ditto.
9338 * prologue-value.h: Ditto.
9339 * ravenscar-thread.c: Ditto.
9340 * ravenscar-thread.h: Ditto.
9341 * sparc-ravenscar-thread.c: Ditto.
9342 * sparc-ravenscar-thread.h: Ditto.
9343 * tilegx-linux-tdep.c: Ditto.
9344 * unwind_stop_reasons.def: Ditto.
9345 * windows-nat.h: Ditto.
9346 * xtensa-linux-tdep.c: Ditto.
9347 * xtensa-xtregs.c: Ditto.
9348 * regformats/regdat.sh: Ditto.
9349 * regformats/regdef.h: Ditto.
9350
6c01dd94
PA
93512013-02-12 Pedro Alves <palves@redhat.com>
9352
9353 * break-catch-sig.c: Update copyright years.
9354
b65a2bd9
SCR
93552013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9356
9357 Add support for a destructor for ui_out data and use it to
9358 provide a ui_out destructor.
9359 * ui-out.h: Declare the new ui_out destructor.
9360 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9361 * ui-out.c (default_data_destroy): Add a default data destructor
9362 which does nothing.
9363 (default_ui_out_impl): Set the new data_destroy field to
9364 default_data_destroy
9365 (uo_data_destroy): Local function which invokes the data
9366 destructor if present.
9367 (clear_table): Local function which clears the table data of a
9368 ui_out object.
9369 (ui_out_destroy): Public function which frees a ui_out object.
9370 (ui_out_table_end): Use the new clear_table function.
9371 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9372 NULL.
9373 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9374 to NULL.
9375
c2792f5a
DE
93762013-02-11 Doug Evans <dje@google.com>
9377
9378 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9379 (printf_decfloat): New function. Broken out from ui_printf.
9380 Remove unnecessary code to shift the entire format string down.
9381 (printf_pointer): New function.
9382 (ui_printf): Code to print C strings, wide C strings, decfloats,
9383 and pointers moved to separate functions.
9384
d9e98382
SDJ
93852013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9386
9387 * valops.c (value_assign): Handling bitfield offset in
9388 `lval_internalvar_component' case.
9389
4ff3ce77
DE
93902013-02-08 Doug Evans <dje@google.com>
9391
9392 * common/format.c (parse_format_string): Fix whitespace.
9393
901900c4
MGD
93942013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9395
9396 * stack.c (return_command): Work around uninitialized variable
9397 warning.
9398
b5dbc8d4
YZ
93992013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9400
9401 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9402 number of the registers from 36 to 34.
9403
51d66578
MS
94042013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9405
9406 * NEWS: Mention new AArch64 native and target support.
9407
176b1c95
MS
94082013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9409
9410 * MAINTAINERS (Write After Approval): Add myself.
9411
9d19df75
MS
94122013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9413 Marcus Shawcroft <marcus.shawcroft@arm.com>
9414 Nigel Stephens <nigel.stephens@arm.com>
9415 Yufeng Zhang <yufeng.zhang@arm.com>
9416
9417 * aarch64-linux-nat.c: New file.
9418 * config/aarch64/linux.mh: New file.
9419 * configure.host: Add AArch64.
9420 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9421
7e1e0340
DE
94222013-02-07 Doug Evans <dje@google.com>
9423
9424 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9425 disassemble command.
9426
45e25a36
MS
94272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9428
9429 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9430 set_gdbarch_fetch_tls_load_module_address.
9431
bbfdfe1c
DM
94322013-02-06 David S. Miller <davem@davemloft.net>
9433
9434 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9435 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9436 * value.c (struct_return_convention): New function.
9437 (using_struct_return): Implement in terms of struct_return_convention.
9438 * value.h (struct_return_convention): Declare.
9439 * stack.c (return_command): Allow successful overriding of the return
9440 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9441
bc9abe4a
TT
94422013-02-06 Tom Tromey <tromey@redhat.com>
9443
9444 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9445 outside of TRY_CATCH.
9446
134a2066
YQ
94472013-02-06 Yao Qi <yao@codesourcery.com>
9448
9449 * mi/mi-interp.c: Include "tracepoint.h".
9450 (mi_tsv_modified): Declare.
9451 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9452 (mi_interpreter_init): Call observer_attach_tsv_modified.
9453 (mi_tsv_modified): New.
9454 (mi_tsv_created, mi_tsv_deleted): Update.
9455 * tracepoint.c (trace_variable_command): Call
9456 observer_notify_tsv_modified if the initial value of tsv is
9457 changed.
9458 (delete_trace_state_variable): Call
9459 observer_notify_tsv_deleted earlier.
9460 (trace_variable_command): Caller update.
9461 (create_tsv_from_upload): Likewise.
9462 * observer.sh: Declare "struct trace_state_variable".
9463
9464 * NEWS: Mention the new MI notification "=tsv-modified".
9465
59be2b6a
DE
94662013-02-05 Doug Evans <dje@google.com>
9467
9468 * completer.c (location_completer): Fix typo in comment.
9469
d30113d4
JK
94702013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9471
9472 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9473 ADDRESS sorted.
9474
14ac654f
MS
94752013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9476
9477 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9478 Refactor if statement to avoid trailing || operator.
9479
543bf33d
AT
94802013-02-05 Andreas Tobler <andreast@fgznet.ch>
9481
9482 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9483
dc18f110
AT
94842013-02-04 Andreas Tobler <andreast@fgznet.ch>
9485
9486 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9487 * configure.host: Add powerpc*-*-freebsd* target.
9488 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9489 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9490 * config/powerpc/fbsd.mh: New file.
9491
b3ac9c77
SDJ
94922013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9493 Denys Vlasenko <dvlasenk@redhat.com>
9494 Pedro Alves <palves@redhat.com>
9495
9496 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9497 (struct elf_internal_linux_prpsinfo): Forward declare.
9498 * gdbarch.h, gdbarch.c: Regenerate.
9499 * linux-tdep.c: Include `cli/cli-utils.h'.
9500 (linux_fill_prpsinfo): New function.
9501 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9502 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9503 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9504 depending on gdbarch pointer bitness.
9505 * ppc-linux-tdep.c: Include elf-bfd.h.
9506 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9507 on 32-bit.
9508
176eb98c
MS
95092013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9510 Marcus Shawcroft <marcus.shawcroft@arm.com>
9511 Nigel Stephens <nigel.stephens@arm.com>
9512 Yufeng Zhang <yufeng.zhang@arm.com>
9513
9514 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9515
cf0dbd6f
MS
95162013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9517 Marcus Shawcroft <marcus.shawcroft@arm.com>
9518 Nigel Stephens <nigel.stephens@arm.com>
9519 Yufeng Zhang <yufeng.zhang@arm.com>
9520
9521 * aarch64-newlib-tdep.c: New file.
9522 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9523 aarch64*-*-elf.
9524 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9525 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9526 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9527 * osabi.c (gdb_osabi_names): Add "Newlib".
9528
1ae3db19
MS
95292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9530 Marcus Shawcroft <marcus.shawcroft@arm.com>
9531 Nigel Stephens <nigel.stephens@arm.com>
9532 Yufeng Zhang <yufeng.zhang@arm.com>
9533
9534 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9535 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9536 * aarch64-linux-tdep.c: New file.
9537 * aarch64-linux-tdep.h: New file.
9538 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9539 * configure.tgt: Add aarch64-none-linux-gnu.
9540
07b287a0
MS
95412013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9542 Marcus Shawcroft <marcus.shawcroft@arm.com>
9543 Nigel Stephens <nigel.stephens@arm.com>
9544 Yufeng Zhang <yufeng.zhang@arm.com>
9545
9546 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9547 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9548 (ALLDEPFILES): Add aarch64-tdep.c.
9549 * aarch64-tdep.c: New file.
9550 * aarch64-tdep.h: New file.
9551 * configure.tgt: Add AArch64.
9552 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9553 (aarch64-expedite): New definition.
9554 * features/aarch64-core.xml: New file.
9555 * features/aarch64-fpu.xml: New file.
9556 * features/aarch64-without-fpu.c: New file (generated).
9557 * features/aarch64-without-fpu.xml: New file.
9558 * features/aarch64.c: New file (generated).
9559 * features/aarch64.xml: New file.
9560 * regformats/aarch64-without-fpu.dat: New file (generated).
9561 * regformats/aarch64.dat: New file (generated).
9562
0f1b18ab
JK
95632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9564
9565 * contrib/expect-read1.c: New file.
9566 * contrib/expect-read1.sh: New file.
9567
233d95b5
JK
95682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9569
9570 * dwarf2read.c (file_file_name): New function with code from
9571 file_full_name.
9572 (file_full_name): Move most of the code to file_file_name.
9573 (macro_start_file): Rename variable full_name to file_name and use
9574 file_file_name for it. Add comp_dir parameter to new_macro_table.
9575 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9576 macro_source_file->filename access by macro_source_fullname call.
9577 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9578 caller.
9579 * macrotab.c (struct macro_table): New field comp_dir.
9580 (macro_include): New variables link_fullname and source_fullname.
9581 Replace any macro_source_file->filename access by macro_source_fullname
9582 call.
9583 (macro_lookup_inclusion): Remove the partial filenames checking code.
9584 (check_for_redefinition): New variables source_fullname and
9585 found_key_fullname. Replace any macro_source_file->filename access by
9586 macro_source_fullname call.
9587 (macro_undef): New variables source_fullname and key_fullname. Replace
9588 any macro_source_file->filename access by macro_source_fullname call.
9589 (macro_lookup_definition): New variables retval and source_fullname.
9590 Replace any macro_source_file->filename access by macro_source_fullname
9591 call.
9592 (foreach_macro): New variable key_fullname. Replace any
9593 macro_source_file->filename access by macro_source_fullname call.
9594 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9595 macro_source_file->filename access by macro_source_fullname call.
9596 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9597 (macro_source_fullname): New function.
9598 * macrotab.h (struct macro_source_file): Extent the filename field
9599 comment.
9600 (new_macro_table): New parameter comp_dir, add a comment for it.
9601 (macro_source_fullname): new declaration.
9602
da235a7c
JK
96032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9606 this_real_name to outer block. Use it also for
9607 compare_filenames_for_search.
9608 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9609 with dw2_get_real_path for file_matcher, considering also
9610 BASENAMES_MAY_DIFFER.
9611 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9612
fbd9ab74
JK
96132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9614
9615 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9616 to the file_matcher parameter. Pass 0 to it.
9617 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9618 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9619 NULL psymtab_to_fullname result.
9620 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9621 an expected filename instead.
9622 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9623 file_matcher parameter. Call also psymtab_to_fullname, after newly
9624 considering BASENAMES_MAY_DIFFER.
9625 * source.c (rewrite_source_path): Remove static.
9626 * source.h (rewrite_source_path): New declaration.
9627 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9628 the expand_symtabs_matching field. Comment it.
9629 * symtab.c (file_matches): New function comment. Add parameter
9630 basenames, implement it.
9631 (search_symbols_file_matches): Add basenames parameter. Update the
9632 file_matches caller.
9633 (search_symbols): Match FILES also against symtab_to_fullname.
9634 Optimize it for BASENAMES_MAY_DIFFER.
9635
56d397a3
JK
96362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9637
9638 * source.c (print_source_lines_base): Print for TUI also "fullname".
9639 * tui/tui-data.c (init_content_element): Change tui_locator_element
9640 field to full_name.
9641 * tui/tui-data.h (struct tui_locator_element): Likewise.
9642 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9643 tui_update_locator_filename calls to tui_update_locator_fullname.
9644 Replace symtab->filename refererence by symtab_to_fullname call.
9645 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9646 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9647 field to full_name. Replace symtab->filename refererence by
9648 symtab_to_fullname call.
9649 (tui_show_symtab_source): Rename parameter to fullname. Change
9650 tui_locator_element field to full_name.
9651 * tui/tui-stack.c: Include source.h.
9652 (tui_set_locator_filename): Rename the declaration to ...
9653 (tui_set_locator_fullname): ... here. Rename its parameter to
9654 fullname, updates its comment.
9655 (tui_set_locator_info): Rename its parameter to fullname.
9656 (tui_set_locator_filename): Rename the definition to ...
9657 (tui_set_locator_fullname): ... here. Rename its parameter to
9658 fullname, updates its comment. Change tui_locator_element field to
9659 full_name.
9660 (tui_set_locator_info): Rename its parameter to fullname.
9661 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9662 (tui_update_locator_filename): Rename to ...
9663 (tui_update_locator_fullname): ... here. Rename callee to
9664 tui_set_locator_fullname.
9665 (tui_show_frame_info): Replace symtab->filename refererence by
9666 symtab_to_fullname call.
9667 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9668 (tui_update_locator_fullname): ... here.
9669 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9670 tui_update_locator_fullname. Replace symtab->filename refererence by
9671 symtab_to_fullname call.
9672 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9673 Rename the callee to tui_update_locator_fullname.
9674 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9675
05cba821
JK
96762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9677
9678 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9679 by symtab_to_filename_for_display calls.
9680 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9681 (clear_command): New variable sal_fullname, initialize it. Replace
9682 compare_filenames_for_search by filename_cmp with sal_fullname.
9683 (say_where, update_static_tracepoint): Replace symtab->filename
9684 refererences by symtab_to_filename_for_display calls.
9685 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9686 Likewise.
9687 * dwarf2read.c: Include source.h.
9688 (fixup_go_packaging): Replace symtab->filename refererences by
9689 symtab_to_filename_for_display calls.
9690 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9691 Replace symtab->filename refererences by symtab_to_filename_for_display
9692 calls.
9693 (create_sals_line_offset, convert_linespec_to_sals): New variable
9694 fullname, initialize it, replace symtab->filename reference by the
9695 variable.
9696 * linux-fork.c: Include source.h.
9697 (info_checkpoints_command): Replace symtab->filename refererences by
9698 symtab_to_filename_for_display calls.
9699 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9700 by symtab_to_filename_for_display calls.
9701 * mdebugread.c: Include source.h.
9702 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9703 symtab_to_filename_for_display calls.
9704 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9705 (mi_cmd_file_list_exec_source_files): Likewise.
9706 * printcmd.c: Include source.h.
9707 (build_address_symbolic): Replace symtab->filename refererences by
9708 symtab_to_filename_for_display calls.
9709 * psymtab.c (partial_map_symtabs_matching_filename)
9710 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9711 with psymtab_to_fullname.
9712 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9713 by symtab_to_filename_for_display calls.
9714 (stpy_get_filename): New variable filename, initialize it, use instead
9715 of symtab->filename refererences.
9716 (salpy_str): Make variable filename const char *. Replace
9717 symtab->filename refererences by symtab_to_filename_for_display calls.
9718 * skip.c: Include source.h and filenames.h.
9719 (skip_file_command): Remove const from the symtab variable. Replace
9720 symtab->filename refererences by symtab_to_fullname call.
9721 (function_name_is_marked_for_skip): New variables searched_for_fullname
9722 and fullname. Use them to search also with symtab's fullname.
9723 * source.c (find_source_lines): Replace symtab->filename refererences
9724 by symtab_to_filename_for_display calls.
9725 (print_source_lines_base): New variable filename, use it instead of
9726 symtab->filename. Replace symtab->filename refererences by
9727 symtab_to_filename_for_display calls.
9728 (line_info, forward_search_command): Replace symtab->filename
9729 refererences by symtab_to_filename_for_display calls.
9730 (reverse_search_command): Replace symtab->filename refererences by
9731 symtab_to_filename_for_display calls. New variable filename for it.
9732 * stack.c (frame_info): Likewise.
9733 * symmisc.c: Include source.h.
9734 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9735 (maintenance_info_symtabs): Replace symtab->filename refererences by
9736 symtab_to_filename_for_display calls.
9737 * symtab.c (iterate_over_some_symtabs): Call
9738 compare_filenames_for_search also with symtab_to_fullname.
9739 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9740 symtab->filename refererences by symtab_to_filename_for_display calls.
9741 (find_line_symtab): Replace symtab->filename refererences by
9742 symtab_to_filename_for_display calls.
9743 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9744 (print_symbol_info): Make the last parameter const char *. New
9745 variable s_filename. Use it in the function.
9746 (symtab_symbol_info): Make the last_filename variable const char *.
9747 Replace symtab->filename refererences by symtab_to_filename_for_display
9748 calls.
9749 (rbreak_command): New variable fullname. Use it. Replace
9750 symtab->filename refererence by symtab_to_filename_for_display call.
9751 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9752 (print_one_static_tracepoint_marker): Replace symtab->filename
9753 refererences by symtab_to_filename_for_display calls.
9754 * tui/tui-source.c (tui_set_source_content): New variables filename and
9755 s_filename. Replace symtab->filename refererences by this variable.
9756 Replace other symtab->filename refererences by
9757 symtab_to_filename_for_display calls.
9758
1b56eb55
JK
97592013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9760 Jan Kratochvil <jan.kratochvil@redhat.com>
9761
9762 Add a new variable that controls a way in which filenames are
9763 displayed.
9764 * NEWS (set filename-display): New entry.
9765 * source.c (filename_display_basename, filename_display_relative)
9766 (filename_display_absolute, filename_display_kind_names)
9767 (filename_display_string, show_filename_display_string)
9768 (symtab_to_filename_for_display): New.
9769 (_initialize_source): Added initialization of 'filename-display'
9770 variable.
9771 * source.h (symtab_to_filename_for_display): Added declaration.
9772 * stack.c (print_frame): Added new variable and calling of a new
9773 function and condition with this variable. Changed third argument of
9774 calling of a function.
9775
aa079c93
JK
97762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9777
9778 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9779 Rename field reference filename to fullname.
9780 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9781 fullname. New comment for it.
9782 * tui/tui-source.c (tui_set_source_content): Rename field reference
9783 filename to fullname. Initialize field by symtab_to_fullname now.
9784 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9785 reference filename to fullname. Use symtab_to_fullname during
9786 comparison.
9787
652a8996
JK
97882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 Code cleanup.
9791 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9792 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9793 filename to fullname. Rename variable this_name to this_fullname.
9794 Lowercase FILENAME_CMP call.
9795 (dw2_find_symbol_file): New comment for the returned string.
9796 (dwarf2_gdb_index_functions): Rename the function to
9797 dw2_expand_symtabs_with_fullname.
9798 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9799 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9800 fullname.
9801 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9802 * symfile.h (struct quick_symbol_functions): Rename field
9803 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9804 parameter filename to fullname. Document returned string meaning for
9805 find_symbol_file.
9806 * symtab.c (find_line_symtab): Rename the called function to
9807 expand_symtabs_with_fullname.
9808
af529f8f
JK
98092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 Code cleanup.
9812 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9813 call of filename_cmp with compare_filenames_for_search.
9814 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9815 is_abs, unify the call of FILENAME_CMP with
9816 compare_filenames_for_search. New gdb_asserts for real_path and name.
9817 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9818 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9819 * symfile.h (struct quick_symbol_functions): Extend the comment for
9820 map_symtabs_matching_filename.
9821 * symtab.c (compare_filenames_for_search): Remove the function comment
9822 relative path requirement. Handle absolute filenames, with a comment.
9823 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9824 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9825 real_path and name. Unify the call of compare_filenames_for_search
9826 with FILENAME_CMP.
9827 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9828
2f202fde
JK
98292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 Code cleanup.
9832 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9833 source_file references by symtab field references. Remove variables
9834 sal and fullname.
9835 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9836 (clear_command, say_where): Replace bp_location field source_file
9837 references by symtab field references.
9838 (bp_location_dtor): Remove the source_file reference.
9839 (update_static_tracepoint): Replace bp_location field source_file
9840 references by symtab field references.
9841 (breakpoint_free_objfile): New function.
9842 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9843 Replace the field source_file by field symtab, extend its comment.
9844 (breakpoint_free_objfile): New declaration.
9845 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9846 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9847 field source_file references by symtab field references.
9848
f5b95b50
JK
98492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9850
9851 Replace xfullpath calls by gdb_realpath calls.
9852 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9853 function comment.
9854 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9855 Remove it from the iterate_over_some_symtabs call.
9856 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9857 Remove it from the dw2_map_expand_apply calls, remove a block handling
9858 it.
9859 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9860 Remove it from the iterate_over_some_symtabs call.
9861 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9862 Remove it from the partial_map_expand_apply calls, remove a block
9863 handling it. Drop gdb_realpath call and cleanups from the real_path
9864 handling.
9865 * source.c (openp): Drop the comment part about xfullpath. Replace
9866 xfullpath calls by gdb_realpath calls.
9867 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9868 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9869 from method map_symtabs_matching_filename and its comment.
9870 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9871 gdb_realpath call.
9872 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9873 remove it also from the function comment, remove a block handling it.
9874 Drop gdb_realpath call and cleanups from the real_path handling.
9875 (iterate_over_symtabs): Drop variable full_path and its use.
9876 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9877 * utils.c (xfullpath): Remove.
9878 * utils.h (xfullpath): Remove.
9879
d78489bf
AT
98802013-02-01 Andreas Tobler <andreast@fgznet.ch>
9881
9882 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9883 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9884 (ALLDEPFILES): Add ppc64-tdep.c.
9885 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9886 ppc64-tdep.o to gdb_target_obs.
9887 * ppc64-tdep.h: New file.
9888 * ppc64-tdep.c: New file.
9889 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9890 ppc-linux-tdep.c to here.
9891 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9892 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9893 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9894 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9895 from ppc-linux-tdep.c to here.
9896 (ppc64_convert_from_func_ptr_addr): Rename from
9897 ppc64_linux_convert_from_func_ptr_addr to
9898 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9899 here.
9900 * rs6000-tdep.c:
9901 (read_insn): Move from ppc-linux-tdep.c to here.
9902 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9903 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9904 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9905 Removed above functions.
9906 (ppc_linux_init_abi): Adjust.
9907
8db60374
AR
99082013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9909
9910 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9911
f2e5f4ce
AR
99122013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9913
9914 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9915
c1f7d745
PA
99162013-02-01 Pedro Alves <palves@redhat.com>
9917
9918 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9919 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9920
8a92335b
JK
99212013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9924 files with no separate debug info.
9925 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9926 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9927 only for files with no separate debug info.
9928
8eacb197
TT
99292013-01-31 Tom Tromey <tromey@redhat.com>
9930
9931 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9932 change type.
9933 (struct jit_program_space_data): Rename from jit_inferior_data.
9934 Update comments.
9935 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9936 Change return type. Attach data to program space.
9937 (jit_program_space_data_cleanup): Rename from
9938 jit_inferior_data_cleanup; change argument type.
9939 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9940 change type.
9941 (jit_register_code): Update.
9942 (jit_update_inferior_cache): Remove.
9943 (jit_breakpoint_deleted): Get jit data from the location's program
9944 space.
9945 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9946 'ps_data', change type.
9947 (jit_inferior_init, jit_breakpoint_re_set_internal)
9948 (jit_event_handler): Update.
9949 (free_objfile_data): Get data from objfile's program space.
9950 (_initialize_jit): Update.
9951
f25c0135
TT
99522013-01-31 Tom Tromey <tromey@redhat.com>
9953
9954 PR gdb/13987:
9955 * jit.c (struct jit_inferior_data) <cached_code_address,
9956 jit_breakpoint>: New fields.
9957 (jit_breakpoint_re_set_internal): Fix logging. Only create
9958 breakpoint if cached address has changed.
9959 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9960 functions.
9961 (_initialize_jit): Register breakpoint deleted observer.
9962
974a734b
AR
99632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9964
9965 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9966 (save_infcall_suspend_state): Ifdef out unused inf.
9967 (restore_infcall_suspend_state): Ifdef out unused inf.
9968 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9969 (jit_frame_sniffer): Remove unused inf_data.
9970
df54f8eb
AR
99712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9972
9973 * c-exp.y (classify_inner_name): Remove unused type.
9974 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9975 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9976 need_escape.
9977 (c_get_string): Remove unused kind.
9978 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9979
5799c0b9
AR
99802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9981
9982 * charset.c (intermediate_encoding): Remove unused i.
9983 * completer.c (signal_completer): Remove unused i.
9984 * continuations.c (discard_my_continuations_1): Remove unused
9985 continuation_ptr.
9986 * corelow.c (core_close): Remove unuseD name.
9987 (get_core_siginfo): Remove unused pid.
9988 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9989 i, cps.
9990 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9991 (loclist_describe_location): Remove unused first.
9992 * event-top.c (command_line_handler): Remove unused got_eof.
9993 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9994 (resize_section_table): Remove unused old_value.
9995 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9996 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9997 * i386-tdep.c (i386_process_record): Remove unused rex.
9998 * infcmd.c (get_return_value): Remove unused uiout.
9999 * jv-lang.c (type_from_class): Remove unused is_array.
10000 * jv-valprint.c (java_val_print): Remove unused i.
10001 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10002 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10003 * m2-typeprint.c (m2_print_type): Remove unused code.
10004 * macroexp.c (get_character_constant): Remove unused body_start.
10005 (macro_stringify): Remove unused result.
10006 * objc-lang.c (find_methods): Remove unused gdbarch.
10007 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10008 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10009 * stack.c (print_frame_args): Remove unused summary.
10010 * thread.c (thread_apply_command): Remove unused p.
10011 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10012 * valops.c (search_struct_method): Remove unused skip.
10013 * valprint.c (generic_val_print): Remove unused byte_order.
10014 * varobj.c (varobj_update): Remove unused changed.
10015 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10016 (alias_command): Remove unused c.
10017 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10018 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10019 format.
10020 (mi_cmd_data_write_memory): Remove unused word_format.
10021 (mi_cmd_data_write_memory_bytes): Remove unused r.
10022 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10023 p_start, p_end.
10024 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10025 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10026 line_width.
10027
c656bca5
AR
100282013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10029
10030 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10031 * symtab.c (iterate_over_symtabs): Remove unused s.
10032 (find_pc_sect_symtab): Remove unused pspAce.
10033 (find_pc_sect_line): Remove unused alt_symtab.
10034 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10035 (completion_list_add_name): Remove unused newsize.
10036
7078baeb
TT
100372013-01-31 Tom Tromey <tromey@redhat.com>
10038
10039 PR c++/14998:
10040 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10041 TYPE_CODE_FUNC.
10042
c2e8b827
AR
100432013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10044
10045 * target.c (target_read_string): Remove unused origlen.
10046
0e43993a
AR
100472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10048
10049 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10050 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10051 * ax-general.c (ax_print): Remove unused is_float.
10052 * blockframe.c (block_innermost_frame): Remove unused start, end.
10053 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10054
765a97ab
AR
100552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10056
10057 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10058 (svr4_read_so_list): Remove unused lmo.
10059 * solib-target.c (solib_target_relocate_section_addresses): Remove
10060 unused flags.
10061
a99dad3d
TT
100622013-01-30 Tom Tromey <tromey@redhat.com>
10063
10064 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10065
3bff1ecd
TT
100662013-01-30 Tom Tromey <tromey@redhat.com>
10067
10068 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10069 * utils.c (gnu_debuglink_crc32): Remove.
10070 * utils.h (gnu_debuglink_crc32): Don't declare.
10071
7d455152
TT
100722013-01-30 Tom Tromey <tromey@redhat.com>
10073
10074 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10075 (read_structure_type, read_enumeration_type): Remove cast.
10076
abee88f2
TT
100772013-01-30 Tom Tromey <tromey@redhat.com>
10078
10079 * dwarf2read.c (read_namespace_type): Remove cast.
10080 (read_typedef): Likewise.
10081
8d9878a4
TT
100822013-01-29 Tom Tromey <tromey@redhat.com>
10083
10084 * dwarf2read.c (free_dwo_file): Remove assert.
10085
a543d2a9
TT
100862013-01-29 Tom Tromey <tromey@redhat.com>
10087
10088 * value.c (deprecated_set_value_modifiable): Remove.
10089 * value.h (deprecated_set_value_modifiable): Remove.
10090
bed911e5
DE
100912013-01-28 Doug Evans <dje@google.com>
10092
10093 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10094 to addresses from dwo files.
10095
28c64fc2
SCR
100962013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10097
10098 * valops.c (find_overload_match): Remove unused argument 'lax'.
10099 * value.h: Remove unused argument 'lax' from the declaration of
10100 find_overload_match.
10101 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10102 to find_overload_match.
10103 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10104 argument to find_overload_match.
10105
4d4ec4e5
TT
101062013-01-25 Tom Tromey <tromey@redhat.com>
10107
10108 * dwarf2read.c (processing_has_namespace_info): Remove.
10109 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10110 (process_die, read_func_scope, dwarf2_start_symtab)
10111 (new_symbol_full): Update.
10112
195a3f6c
TT
101132013-01-25 Tom Tromey <tromey@redhat.com>
10114
10115 * cp-namespace.c (cp_set_block_scope): Remove.
10116 * cp-support.h (cp_set_block_scope): Remove.
10117 * dbxread.c: Include block.h.
10118 (cp_set_block_scope): New function.
10119 (process_one_symbol): Update.
10120 * dwarf2read.c (read_func_scope): Use block_set_scope.
10121
8ba0730a
PA
101222013-01-25 Pedro Alves <palves@redhat.com>
10123
10124 * remote.c (add_current_inferior_and_thread): Tweak comment.
10125
12aaed36
TT
101262013-01-25 Tom Tromey <tromey@redhat.com>
10127
10128 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10129 (cp_add_using_directive): Add 'copy_names' argument.
10130 * cp-support.h (cp_add_using_directive): Update.
10131 (struct using_direct) <import_src, import_dest, alias,
10132 declaration>: Now const.
10133 * dwarf2read.c (read_import_statement): Use obconcat.
10134 Don't copy names passed to cp_add_using_directive.
10135
7fc75ca7
TT
101362013-01-25 Tom Tromey <tromey@redhat.com>
10137
10138 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10139
3405876a
PA
101402013-01-25 Pedro Alves <palves@redhat.com>
10141
10142 * remote.c (stop_reply_extract_thread): New.
10143 (add_current_inferior_and_thread): New parameter 'wait_status'.
10144 Handle it.
10145 (remote_start_remote): Pass wait status to
10146 add_current_inferior_and_thread.
10147 (extended_remote_run): Update comment.
10148 (extended_remote_create_inferior_1): Pass wait status to
10149 add_current_inferior_and_thread.
10150
8954db33
AB
101512013-01-25 Andrew Burgess <aburgess@broadcom.com>
10152 Ulrich Weigand <uweigand@de.ibm.com>
10153
10154 * valarith.c (value_vector_widen): New function for replicating a
10155 scalar into a vector.
10156 (value_binop): Use value_vector_widen to widen scalar to vector
10157 rather than casting, this better matches gcc C behaviour.
10158 * valops.c (value_casst): Update logic for casting between vector
10159 types, and for casting from scalar to vector, try to match gcc C
10160 behaviour.
10161 * value.h (value_vector_widen): Declare.
10162 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10163 function, handle special case for casting scalar to vector.
10164 (opencl_relop): Use opencl_value_cast.
10165 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10166 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10167 in order to use opencl_value_cast.
10168
843b20dc
YQ
101692013-01-25 Yao Qi <yao@codesourcery.com>
10170
10171 * event-loop.c: Include "queue.h".
10172 (gdb_event_p): New typedef.
10173 (DECLARE_QUEUE_P): Use.
10174 (DEFINE_QUEUE_P): Use.
10175 (async_queue_event): Remove.
10176 (gdb_event_xfree): New.
10177 (initialize_event_loop): New.
10178 (process_event): Use QUEUE macros.
10179 (event_queue): Remove.
10180 (gdb_wait_for_event): Caller update.
10181 (check_async_event_handlers): Likewise.
10182 (poll_timers): Likewise.
10183 * event-loop.h (initialize_event_loop): Declare.
10184 * event-loop.c (gdb_event_xfree): New.
10185 * top.c (gdb_init): Call initialize_event_loop.
10186
20ad8856
YQ
101872013-01-25 Yao Qi <yao@codesourcery.com>
10188
10189 * event-loop.c (async_queue_event): Remove one parameter
10190 'position'. Remove code handling 'position' == TAIL.
10191 (gdb_wait_for_event): Caller update.
10192 (check_async_event_handlers): Caller update.
10193 (poll_timers): Caller update.
10194 * event-loop.h (enum queue_position): Remove.
10195
3bbbe775
MK
101962013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10197
10198 * MAINTAINERS: Update my email.
10199
a87d9ac4
YQ
102002013-01-25 Yao Qi <yao@codesourcery.com>
10201
10202 * main.c (print_gdb_help): Remove "--epoch" from the help
10203 message.
10204
2077afdd
TD
102052013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10206
10207 * symtab.c (skip_prologue_using_sal): Consider a file
10208 change the same as an increased line number
10209
63da4037
TD
102102013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10211
30e8ee25 10212 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10213
45e6c716
TT
102142013-01-24 Tom Tromey <tromey@redhat.com>
10215
10216 * ada-lang.h (ada_decode_symbol): Make return type const.
10217 * ada-lang.c (ada_decode_symbol): Likewise.
10218
b1ae631a
DE
102192013-01-23 Doug Evans <dje@google.com>
10220
10221 * linespec.c (find_linespec_symbols): Make static.
10222
55a78401
SDJ
102232013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10224
10225 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10226 type on float conversion for complex type.
10227
bea883fd
SCR
102282013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10229
10230 Add a new class gdb.Architecture which exposes GDB's
10231 internal representation of architecture via GDB Python API.
10232 * Makefile.in: Add entries corresponding to the new file
10233 python/py-arch.c.
10234 * NEWS (Python Scripting): Add entries for the new class
10235 gdb.Architecture and the new method gdb.Frame.architecture.
10236 * python/py-arch.c: Implement gdb.Architecture class.
10237 * python/py-frame.c (frapy_arch): Implement the method
10238 gdb.Frame.architecture().
10239 (frame_object_methods): Add 'architecture' to the method table.
10240 * python/python-internal.h: Add declarations of new utility
10241 functions.
10242 * python/python.c (_initialize_python): Initialize
10243 gdb.Architecture class.
10244
796a7ff8
DE
102452013-01-23 Doug Evans <dje@google.com>
10246
10247 Work around binutils/15021.
10248 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10249 type_unit_group out of union s. All uses updated.
10250 (read_index_from_section): Watch for index version 8.
10251 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10252 an imported symtab.
10253 (write_psymtabs_to_index): Increment version number to 8.
10254
0928e93d
PA
102552013-01-22 Pedro Alves <palves@redhat.com>
10256
10257 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10258 user-visible.
10259
9c97429f
PA
102602013-01-22 Pedro Alves <palves@redhat.com>
10261
10262 * annotate.c (annotate_breakpoints_changed): Rename to ...
10263 (annotate_breakpoints_invalid): ... this. Make static.
10264 (breakpoint_changed): Adjust.
10265 (_initialize_annotate): Always install the observers. Install a
10266 "breakpoint_created" observer.
10267 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10268 * breakpoint.c (set_breakpoint_condition)
10269 (breakpoint_set_commands, do_map_commands_command)
10270 (init_raw_breakpoint, clear_command, set_ignore_count)
10271 (enable_breakpoint_disp): No longer call
10272 annotate_breakpoints_changed.
10273
bd00c694
PA
102742013-01-22 Pedro Alves <palves@redhat.com>
10275
10276 * annotate.c: Include "inferior.h".
10277 (frames_invalid_emitted)
10278 (breakpoints_invalid_emitted): New globals.
10279 (async_background_execution_p): New function.
10280 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10281 emitting the annotation if it has already been emitted.
10282 (annotate_display_prompt): New function.
10283 * annotate.h (annotate_display_prompt): New declaration.
10284 * event-top.c: Include annotate.h.
10285 (display_gdb_prompt): Call annotate_display_prompt.
10286
187d10dd
PA
102872013-01-22 Pedro Alves <palves@redhat.com>
10288
10289 * annotate.c (ignore_count_changed): Delete.
10290 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10291 (annotate_ignore_count_change): Delete.
10292 (annotate_stopped): Don't emit a delayed breakpoints-changed
10293 annotation.
10294 * annotate.h (annotate_ignore_count_change): Delete.
10295 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10296 annotate_ignore_count_change.
10297
d84cf7eb
TT
102982013-01-22 Tom Tromey <tromey@redhat.com>
10299
10300 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10301 require_rvalue for a register location.
10302
8f1d5693
MK
103032013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10304
10305 * breakpoint.c (print_one_breakpoint_location): Add MI
10306 field 'thread-groups' when printing a breakpoint.
10307 (output_thread_groups): New function.
10308
aa6199c6
SCR
103092013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10310
10311 * python/lib/gdb/commands/explore.py
10312 (CompoundExplorer.explore_expr): Correct the name of a method
10313 being invoked.
10314 (ExploreTypeCommand.invoke): Add a missing 'return'.
10315
d2afef13
TT
103162013-01-21 Tom Tromey <tromey@redhat.com>
10317
10318 * gdb_obstack.h (obconcat): Move declaration here, from...
10319 * symfile.h (obconcat): ... here.
10320 * gdb_obstack.c: New file.
10321 (obconcat): Move from...
10322 * symfile.c (obconcat): ... here.
10323 * Makefile.in (SFILES): Add gdb_obstack.c.
10324 (COMMON_OBS): Add gdb_obstack.o.
10325
10f0c4bb
TT
103262013-01-21 Tom Tromey <tromey@redhat.com>
10327
10328 * symfile.h (obsavestring): Don't declare.
10329 * symfile.c (obsavestring): Remove.
10330 * ada-exp.y: Use obstack_copy0, not obsavestring.
10331 * ada-lang.c: Use obstack_copy0, not obsavestring.
10332 * coffread.c: Use obstack_copy0, not obsavestring.
10333 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10334 * dbxread.c: Use obstack_copy0, not obsavestring.
10335 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10336 * jit.c: Use obstack_copy0, not obsavestring.
10337 * mdebugread.c: Use obstack_copy0, not obsavestring.
10338 * psymtab.c: Use obstack_copy0, not obsavestring.
10339 * stabsread.c: Use obstack_copy0, not obsavestring.
10340 * xcoffread.c: Use obstack_copy0, not obsavestring.
10341
86f62fd7
TT
103422013-01-21 Tom Tromey <tromey@redhat.com>
10343
10344 * dwarf2read.c (fixup_go_packaging): Save package name
10345 on objfile obstack.
10346 * gdbtypes.c (init_type): Don't copy name.
10347
15d034d0
TT
103482013-01-21 Tom Tromey <tromey@redhat.com>
10349
10350 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10351 const.
10352 (struct attribute) <u.str>: Now const.
10353 (struct fnfieldlist) <name>: Now const.
10354 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10355 (partial_die_parent_scope): Make return type const.
10356 (partial_die_full_name, add_partial_symbol): Update.
10357 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10358 'name' const.
10359 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10360 (read_file_scope, read_func_scope, dwarf2_add_field)
10361 (dwarf2_add_member_fn, read_structure_type)
10362 (process_enumeration_scope, read_array_type, read_module_type)
10363 (read_base_type, read_subrange_type): Update.
10364 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10365 (new_symbol_full, guess_full_die_structure_name): Update.
10366 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10367 (dwarf2_name): Return const type.
10368 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10369 const.
10370
748e18ae
TT
103712013-01-21 Tom Tromey <tromey@redhat.com>
10372
10373 * gdbtypes.c (init_type): Make 'name' const.
10374 * gdbtypes.h (init_type): Update.
10375
46212e0b
TT
103762013-01-21 Tom Tromey <tromey@redhat.com>
10377
10378 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10379 (start_symtab): Make 'name' and 'dirname' const. Use
10380 set_last_source_file.
10381 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10382 (last_source_file): Define. Now static.
10383 (set_last_source_file, get_last_source_file): New functions.
10384 * buildsym.h (last_source_file): Don't declare.
10385 (start_symtab): Update.
10386 (set_last_source_file, get_last_source_file): Declare.
10387 * coffread.c (complete_symtab): Use set_last_source_file.
10388 (coff_end_symtab): Likewise.
10389 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10390 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10391 set_last_source_file.
10392 (process_one_symbol): Use get_last_source_file.
10393 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10394 (psymtab_to_symtab_1): Use get_last_source_file.
10395 * xcoffread.c (process_linenos): Use get_last_source_file.
10396 (complete_symtab): Use set_last_source_file.
10397 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10398 (scan_xcoff_symtab): Use set_last_source_file.
10399
9d2ceabe
TT
104002013-01-21 Tom Tromey <tromey@redhat.com>
10401
10402 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10403 (symbol_set_names): Remove casts. Handle field const-ness.
10404
cfc594ee
TT
104052013-01-21 Tom Tromey <tromey@redhat.com>
10406
10407 * dwarf2read.c (new_symbol_full): Remove cast.
10408 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10409 * symtab.h (symbol_set_demangled_name): Update.
10410
5484b13a
TT
104112013-01-21 Tom Tromey <tromey@redhat.com>
10412
10413 * main.c (captured_main): Call bfd_init.
10414
1605ef26
TT
104152013-01-21 Tom Tromey <tromey@redhat.com>
10416
10417 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10418 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10419 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10420 * NEWS: Update.
10421
3b74cdc3
JK
104222013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10423
10424 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10425
5a352474
JK
104262013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 Fix gdb.fortran/common-block.exp crash in PIE mode.
10429 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10430 LOC_COMMON_BLOCK.
10431 * f-valprint.c (info_common_command_for_block): Expect
10432 LOC_COMMON_BLOCK in gdb_assert.
10433 * symtab.h (struct general_symbol_info): Update comment for the
10434 common_block member.
10435 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10436 (enum address_class): New member LOC_COMMON_BLOCK.
10437
c60797fd
DB
104382013-01-18 David Blaikie <dblaikie@gmail.com>
10439
10440 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10441
46f35228
TT
104422013-01-18 Tom Tromey <tromey@redhat.com>
10443
10444 PR c++/14999:
10445 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10446 Call require_rvalue.
10447
257e7a09
YQ
104482013-01-18 Yao Qi <yao@codesourcery.com>
10449
10450 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10451 (dbx_read_symtab): New declaration.
10452 (dbx_psymtab_to_symtab): Delete.
10453 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10454 Rename parameter PST to SELF. Exchanged two parameters.
10455 (start_psymtab): Caller update.
10456 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10457 (dwarf2_read_symtab): New declaration.
10458 (dwarf2_psymtab_to_symtab): Delete.
10459 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10460 Rename parameter PST to SELF. Exchanged two parameters.
10461 (create_partial_symtab): Caller update.
10462 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10463 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10464 Rename parameter PST to SELF. Exchanged two parameters.
10465 (parse_partial_symbols, new_psymtab): Caller update.
10466 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10467 two parameters.
10468 * psymtab.c (psymtab_to_symtab): Caller update.
10469 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10470 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10471 Rename parameter PST to SELF. Exchanged two parameters.
10472 (xcoff_start_psymtab): Caller update.
10473
0de5618e
YQ
104742013-01-18 Yao Qi <yao@codesourcery.com>
10475
10476 * infrun.c (proceed): Rename local variable 'oneproc' to
10477 'force_step'.
10478
5c04624b
DE
104792013-01-17 Doug Evans <dje@google.com>
10480
848e3e78
DE
10481 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10482 (dw2_build_type_unit_groups): Delete. All uses updated.
10483
5c04624b
DE
10484 * symtab.h (struct symbol_search): Add comment.
10485
d84fca2c
JK
104862013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10487
10488 * symtab.c (compare_filenames_for_search): New comment for
10489 HAS_DRIVE_SPEC.
10490
6108433d
TT
104912013-01-17 Tom Tromey <tromey@redhat.com>
10492
10493 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10494
c89ffd86
JK
104952013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10496
10497 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10498 initialize it by existing make_cleanup. Call new do_cleanups.
10499
db2b2972
TT
105002013-01-17 Tom Tromey <tromey@redhat.com>
10501
10502 * cp-abi.c (cp_abi_completer): New function.
10503 (_initialize_cp_abi): Set completer for "set cp-abi".
10504
be7d37a2
TT
105052013-01-17 Tom Tromey <tromey@redhat.com>
10506
10507 * mem-break.c: Remove obsolete comment.
10508 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10509
c9fb1240
SD
105102012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10511
10512 * jit.c (jit_reader_load_command): Interpret the jit reader name
10513 as an absolute path if it begins with a forward slash.
10514
db334a01
SD
105152012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10516
10517 PR gdb/14550
10518
10519 * jit.c (finalize_symtab): Ensure that only the global block has a
10520 NULL superblock.
10521
7d928dac
PA
105222013-01-17 Pedro Alves <palves@redhat.com>
10523
10524 * acinclude.m4: Include ../config/plugins.m4,
10525 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10526 * Makefile.in (aclocal_m4_deps): Update.
10527 * aclocal.m4: Renegerate.
10528
fb8cf7c5
DE
105292013-01-16 Doug Evans <dje@google.com>
10530
10531 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10532
ab04a2af
TT
105332013-01-16 Pedro Alves <palves@redhat.com>
10534 Tom Tromey <tromey@redhat.com>
10535
10536 PR cli/7221:
10537 * NEWS: Add "catch signal".
10538 * breakpoint.c (base_breakpoint_ops): No longer static.
10539 (bpstat_explains_signal): New function.
10540 (init_catchpoint): No longer static.
10541 (base_breakpoint_explains_signal): New function.
10542 (base_breakpoint_ops): Initialize new field.
10543 * breakpoint.h (enum bpstat_signal_value): New.
10544 (struct breakpoint_ops) <explains_signal>: New field.
10545 (bpstat_explains_signal): Remove macro, declare as function.
10546 (base_breakpoint_ops, init_catchpoint): Declare.
10547 * break-catch-sig.c: New file.
10548 * inferior.h (signal_catch_update): Declare.
10549 * infrun.c (signal_catch): New global.
10550 (handle_syscall_event): Update for change to
10551 bpstat_explains_signal.
10552 (handle_inferior_event): Likewise. Always handle random signals
10553 via bpstats.
10554 (signal_cache_update): Check signal_catch.
10555 (signal_catch_update): New function.
10556 (_initialize_infrun): Initialize signal_catch.
10557 * Makefile.in (SFILES): Add break-catch-sig.c.
10558 (COMMON_OBS): Add break-catch-sig.o.
10559
8ac3646f
TT
105602013-01-16 Tom Tromey <tromey@redhat.com>
10561
10562 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10563 (print_one_catch_solib, print_one_catch_syscall)
10564 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10565 "catch-type".
10566
5a18e302
YQ
105672013-01-16 Yao Qi <yao@codesourcery.com>
10568
10569 * printcmd.c (current_display_number): Make it static.
10570
3f01d0d0
YQ
105712013-01-16 Yao Qi <yao@codesourcery.com>
10572
10573 * infcmd.c (step_once): Don't check '!single_inst' as it was
10574 checked before.
10575
1ed59174
JK
105762013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10579
44478ab3
TT
105802013-01-14 Tom Tromey <tromey@redhat.com>
10581
10582 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10583 set command.
10584 * command.h (add_setshow_string_noescape_cmd): Update.
10585 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10586 (complete_set_gnutarget): New function.
10587 (_initialize_core): Set the "set gnutarget" completer.
10588
06d66ee9
TT
105892013-01-14 Tom Tromey <tromey@redhat.com>
10590
10591 PR symtab/14442:
10592 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10593 (c_type_print_modifier): Likewise.
10594 * dwarf2read.c (read_tag_restrict_type): New function.
10595 (read_type_die_1): Handle DW_TAG_restrict_type.
10596 * gdbtypes.c (make_restrict_type): New function.
10597 (recursive_dump_type): Handle TYPE_RESTRICT.
10598 * gdbtypes.h (enum type_flag_values): Renumber.
10599 (enum type_instance_flag_value): Add
10600 TYPE_INSTANCE_FLAG_RESTRICT.
10601 (TYPE_RESTRICT): New macro.
10602 (make_restrict_type): Declare.
10603
c9bf0622
TT
106042013-01-14 Tom Tromey <tromey@redhat.com>
10605
10606 PR symtab/14931:
10607 * psymtab.c (struct psymtab_state): New.
10608 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10609 functions.
10610 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10611 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10612
44d594fd
PA
106132013-01-14 Richard Sharman <richard_sharman@mitel.com>
10614 Pedro Alves <palves@redhat.com>
10615
10616 PR remote/14786
10617
10618 * remote.c (remote_threads_info): Make a copy of the reply from
10619 qfThreadInfo and use that instead of rs->buf.
10620
442e4d9c
YQ
106212013-01-14 Yao Qi <yao@codesourcery.com>
10622
10623 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10624 (dbx_psymtab_to_symtab): Likewise.
10625 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10626 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10627 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10628
5b12a61c
JK
106292013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10632 make_cleanup_restore_current_language. Call set_language. Move
10633 OLD_CHAIN and INNER_CHAIN cleanups.
10634 * utils.c (do_restore_current_language)
10635 (make_cleanup_restore_current_language): New functions.
10636 * utils.h (make_cleanup_restore_current_language): New declaration.
10637
f0a4b570
JK
106382013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10639
10640 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10641 non-existing files.
10642
57b3c00c
JK
10643 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10644 non-existing files if FILENAME is already absolute.
10645
daefa854
JK
106462013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10647
10648 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10649 fputs_filtered. Append trailing newline.
10650
ca9c6ee2
YQ
106512013-01-11 Yao Qi <yao@codesourcery.com>
10652 Stan Shebs <stan@codesourcery.com>
10653
10654 * psymtab.c (init_psymbol_list): Clarify the comment.
10655
f28045c2
YQ
106562013-01-11 Yao Qi <yao@codesourcery.com>
10657
10658 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10659 (update_dprintf_command_list): Assert that 'printf_line' is
10660 non-null. Remove condition check.
10661
da5132d3
JK
106622013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10663
10664 Code cleanup.
10665 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10666 type const char *.
10667 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10668 const char *.
10669 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10670
843e694d
AG
106712013-01-09 Anthony Green <green@moxielogic.com>
10672
10673 * cp-abi.c (cplus_print_vtable): Don't return value from void
10674 function.
10675 * ada-lang.c (re_set_catch_assert): Ditto.
10676
da51c347
DE
106772013-01-09 Doug Evans <dje@google.com>
10678
10679 * symfile.h (quick_symbol_functions): Delete member
10680 pre_expand_symtabs_matching. All uses removed.
10681 * dwarf2read.c (dw2_lookup_symbol): Implement.
10682 (dw2_do_expand_symtabs_matching): Delete.
10683 (dw2_pre_expand_symtabs_matching): Delete.
10684 (struct dw2_symtab_iterator): New type.
10685 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10686 (dw2_expand_symtabs_for_function): Rewrite.
10687 (dwarf2_gdb_index_functions): Update.
10688 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10689 (psym_functions): Update.
10690
b2259038
TT
106912013-01-09 Tom Tromey <tromey@redhat.com>
10692
10693 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10694 * configure: Rebuild.
10695 * configure.ac: Add somread.o to the build if BFD has SOM
10696 support.
10697 * somread.c: Include som/aout.h, not syms.h.
10698 (som_symtab_read): Use som_external_symbol_dictionary_record.
10699 Unpack records manually.
10700 (_initialize_somread): Declare.
10701
bdad4180
MF
107022012-01-08 Mike Frysinger <vapier@gentoo.org>
10703
10704 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10705 Cast return_address to 64bits.
10706
03cdf680
HZ
107072013-01-08 Hui Zhu <hui_zhu@mentor.com>
10708
10709 * printcmd.c: Remove define of function output_command.
10710 * tracepoint.c: Remove extern of function output_command.
10711 * valprint.h: (output_command): New extern.
10712
8a808554
TT
107132013-01-07 Tom Tromey <tromey@redhat.com>
10714
10715 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10716 Remove.
10717 (objc_language_defn): Use c_printchar, c_printstr,
10718 c_emit_char.
10719
e93a8774
TT
107202013-01-07 Tom Tromey <tromey@redhat.com>
10721
10722 PR cli/7719:
10723 * NEWS: Update.
10724 * ada-valprint.c (printstr, print_field_values): Remove
10725 "inspect_it" code.
10726 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10727 code.
10728 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10729 code.
10730 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10731 * main.c (captured_main): Remove "epoch" argument.
10732 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10733 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10734 * p-valprint.c (pascal_object_print_value_fields): Remove
10735 "inspect_it" code.
10736 * printcmd.c (print_command_1): Remove 'inspect' argument.
10737 (print_command, call_command): Update.
10738 (inspect_command): Remove.
10739 (_initialize_printcmd): Make "inspect" an alias for "print".
10740 * top.c (epoch_interface): Remove.
10741 * top.h (epoch_interface): Remove.
10742 * valprint.c (user_print_options): Update.
10743 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10744 * valprint.h (struct value_print_options) <inspect_it>: Remove
10745 field.
10746
107472013-01-04 Tom Tromey <tromey@redhat.com>
10748
10749 * valprint.h (read_string): Add 'extern'.
10750
b967eb24
JB
107512013-01-07 Joel Brobecker <brobecker@adacore.com>
10752
10753 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10754 used to decide whether to define darwin_read_dyld_info or not.
10755
78a8b30e
PM
107562013-01-03 Pierre Muller <muller@sourceware.org>
10757
10758 * main.c (relocate_gdb_directory): Avoid calling stat function
10759 if DIR is empty.
10760
50da2f25
YQ
107612013-01-03 Yao Qi <yao@codesourcery.com>
10762
10763 * psymtab.c (fixup_psymbol_section): Update declaration.
10764 (fixup_psymbol_section): Remove code returning value.
10765
e7e8980f
YQ
107662013-01-03 Yao Qi <yao@codesourcery.com>
10767
10768 * symtab.h: Remove some out of date comments.
10769 (enum exception_event_kind): Move it ...
10770 * breakpoint.c: ... here.
10771
569283d4
MF
107722013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10773
9f9d9a96 10774 PR gdb/14405
569283d4
MF
10775 * darwin-nat.c (darwin_read_dyld_info): Only build if
10776 TASK_DYLD_INFO_COUNT is defined.
10777 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10778 TASK_DYLD_INFO_COUNT is defined.
10779
2e36fbea
TT
107802013-01-02 Tom Tromey <tromey@redhat.com>
10781
10782 * symfile.h (struct ecoff_debug_hack): Remove.
10783 * objfiles.c: Don't include mdebugread.h.
10784
4f05add4
TT
107852013-01-02 Tom Tromey <tromey@redhat.com>
10786
10787 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10788 * configure.ac: Check for Mach-O support in BFD. Update
10789 CONFIG_OBS.
10790 * configure: Rebuild.
10791
def63ff0
TT
107922013-01-02 Tom Tromey <tromey@redhat.com>
10793
10794 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10795 * configure.ac: Use GDB_AC_CHECK_BFD.
10796 * configure: Rebuild.
10797
60c5dd93
MK
107982013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10799
10800 * MAINTAINERS: Update my email.
10801
6e58437e
JB
108022013-01-01 Joel Brobecker <brobecker@adacore.com>
10803
10804 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10805
627fe805
JB
108062013-01-01 Joel Brobecker <brobecker@adacore.com>
10807
10808 * rs6000-nat.c (bss_data_overlap): New function.
10809 (vmap_symtab): Use it to adjust the .bss section's offset.
10810
28e7fd62
JB
108112013-01-01 Joel Brobecker <brobecker@adacore.com>
10812
10813 Update year range in copyright notice of all files.
10814
e93a8774 108152013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10816
10817 * top.c (print_gdb_version): Update copyright year.
10818
72b20e9c 10819For older changes see ChangeLog-2012.
c906108c
SS
10820\f
10821Local Variables:
10822mode: change-log
10823left-margin: 8
10824fill-column: 74
10825version-control: never
57da7796 10826coding: utf-8
c906108c 10827End:
This page took 2.023282 seconds and 4 git commands to generate.