Rename "set/show remotebaud" command into "set/show serial baud"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0d12017b
JB
12013-10-10 Joel Brobecker <brobecker@adacore.com>
2
3 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
4 serial_baud_show_cmd.
5 (_initialize_cli_cmds): Delete the code creating the
6 "set/show remotebaud" commands.
7 * serial.c (baud_rate): Move here from top.c.
8 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
9 (_initialize_serial): Create "set/show serial baud" commands.
10 Add "set/show remotebaud" command aliases.
11 * top.c (baud_rate): Moved to serial.c.
12 * NEWS: Document the new "set/show serial baud" commands,
13 replacing "set/show remotebaud".
14
578d3588
PA
152013-10-09 Pedro Alves <palves@redhat.com>
16
17 * breakpoint.c (insert_bp_location): Use memory_error_message to
18 build the memory error string.
19 * c-lang.c: Include "gdbcore.h".
20 (c_get_string): Use memory_error to throw error.
21 (target_xfer_memory_error): Delete.
22 (memory_error_message): New, factored out from
23 target_xfer_memory_error.
24 (memory_error): Change parameter type to target_xfer_error.
25 Rewrite.
26 (read_memory): Use memory_error instead of
27 target_xfer_memory_error.
28 * gdbcore.h: Include "target.h".
29 (memory_error): Change parameter type to target_xfer_error.
30 (memory_error_message): Declare function.
31 * target.c (target_read_memory, target_read_stack)
32 (target_write_memory, target_write_raw_memory): Return
33 TARGET_XFER_E_IO on error. Adjust comments.
34 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
35 instead of EIO.
36 * target.h (target_read, target_insert_breakpoint)
37 (target_remove_breakpoint): Adjust comments.
38 * valprint.c (partial_memory_read): Rename parameter, and adjust
39 comment.
40 (val_print_string): Use memory_error_message to build the memory
41 error string.
42
c74e1ccf
JK
432013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
46 result variable. Rename variable fopen_e_ever_failed to
47 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
48
915215be
PA
492013-10-09 Pedro Alves <palves@redhat.com>
50
51 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
52 (monitor_write_memory_longlongs, monitor_write_memory_block):
53 Constify 'myaddr' parameter.
54 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
55 helper.
56 (monitor_xfer_partial): New function.
57 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
58 hook. Install a to_xfer_partial hook.
59
acd13123
TT
602013-10-09 Tom Tromey <tromey@redhat.com>
61
62 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
63 bfd_get_alt_debug_link_info.
64
40135bb1
JK
652013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
66
67 New flag OBJF_NOT_FILENAME.
68 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
69 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
70 allocate_objfile.
71 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
72 symbol_file_add_from_bfd.
73 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
74 allocate_objfile.
75 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
76 NULL.
77 * objfiles.h (OBJF_NOT_FILENAME): New.
78
dc294be5
TT
792013-10-08 Tom Tromey <tromey@redhat.com>
80
81 * Makefile.in (SFILES): Add build-id.c.
82 (HFILES_NO_SRCDIR): Add build-id.h.
83 * build-id.c: New file, largely from elfread.c. Modified
84 most functions.
85 * build-id.h: New file.
86 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
87 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
88 Search for dwz file using build-id.
89 * elfread.c (build_id_bfd_get, build_id_verify)
90 (build_id_to_debug_filename, find_separate_debug_file): Remove.
91
db230ce3
JB
922013-10-08 Joel Brobecker <brobecker@adacore.com>
93
94 * ada-lang.c (compare_names_with_case): Renamed from
95 compare_names, adding a new parameter "casing" and its handling.
96 New function documentation.
97 (compare_names): New function, implemented using
98 compare_names_with_case.
99
6501c98a
JB
1002013-10-08 Joel Brobecker <brobecker@adacore.com>
101
102 * ada-lang.c (ada_exception_sal): Remove advance declaration.
103
84a1243b
TT
1042013-10-07 Tom Tromey <tromey@redhat.com>
105
106 * objfiles.c (free_objfile_per_bfd_storage): Delete the
107 demangled_names_hash.
108 (free_objfile): Don't delete the demangled_names_hash.
109 * objfiles.h (struct objfile_per_bfd_storage)
110 <demangled_names_hash>: New field.
111 (struct objfile) <demangled_names_hash>: Move to
112 objfile_per_bfd_storage.
113 * symfile.c (reread_symbols): Don't delete the
114 demangled_names_hash.
115 * symtab.c (create_demangled_names_hash): Update.
116 (symbol_set_names): Update.
117
1da77581
TT
1182013-10-07 Tom Tromey <tromey@redhat.com>
119
120 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
121 needs_relocations>: New fields.
122 (gdb_bfd_requires_relocations): New function.
123 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
124 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
125 the BFD needs relocations applied.
126
46ecd527
PA
1272013-10-07 Pedro Alves <palves@redhat.com>
128
129 PR breakpoints/11568
130 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
131 the thread list" instead of "gone".
132
0c557179
SDJ
1332013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
134
135 * NEWS: Mention new convenience variable $_exitsignal.
136 * corelow.c (core_open): Reset exit convenience variables. Set
137 $_exitsignal to the uncaught signal which generated the corefile.
138 * infrun.c (handle_inferior_event): Reset exit convenience
139 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
140 (clear_exit_convenience_vars): New function.
141 * inferior.h (clear_exit_convenience_vars): New prototype.
142
1cc47d81
YQ
1432013-10-06 Yao Qi <yao@codesourcery.com>
144
145 * varobj.h: Add comments to enum varobj_languages.
146
73869dc2
DE
1472013-10-04 Doug Evans <dje@google.com>
148
149 Add support for DWP file format version 2.
150 * NEWS: Mention support for DWP file format version 2.
151 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
152 union of asection, containing_section. New fields virtual_offset
153 and is_virtual. Change type of readin filed from int to char.
154 (dwo_sections, dwo_file): Tweak comments.
155 (dwp_v2_section_ids): New enum.
156 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
157 str_offsets, types.
158 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
159 All uses updated.
160 (virtual_v2_dwo_sections): New struct.
161 (dwp_hash_table): New fields version, nr_columns. Change type of
162 section_pool field to a union.
163 (dwp_file): New field version.
164 (dwarf2_has_info): Check for virtual sections.
165 (get_containing_section): New function.
166 (get_section_bfd_owner, get_section_bfd_section): Call it.
167 (dwarf2_locate_sections): Update.
168 (dwarf2_section_empty_p): Update.
169 (dwarf2_read_section): Handle virtual sections.
170 (locate_dwz_sections): Update.
171 (create_dwp_hash_table): Document and handle V2 format.
172 (locate_v1_virtual_dwo_sections): Renamed from
173 locate_virtual_dwo_sections and update. All callers updated.
174 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
175 Delete arg htab. Rename arg section_index to unit_index.
176 All callers updated.
177 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
178 All uses updated.
179 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
180 (lookup_dwo_unit_in_dwp): Add V2 support.
181 (dwarf2_locate_dwo_sections): Update.
182 (dwarf2_locate_common_dwp_sections): Renamed from
183 dwarf2_locate_dwp_sections and update. All callers updated.
184 (dwarf2_locate_v2_dwp_sections): New function.
185 (open_and_init_dwp_file): Add V2 support.
186 (read_str_index): New locals str_section, str_offsets_section.
187
9a2c3737
PA
1882013-10-04 Pedro Alves <palves@redhat.com>
189
190 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
191 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
192 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
193 describing comments with references to ptid.h.
194 * common/ptid.h: Remove intro description of constructors,
195 accessors and predicates.
196 (struct ptid): Reformat.
197 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
198 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
199 describing comments.
200
f5371440
JB
2012013-10-04 Joel Brobecker <brobecker@adacore.com>
202
203 * aix-thread.c (sync_threadlists): Add missing ')' in call
204 to ptid_build.
205
793e1c06
JB
2062013-10-04 Joel Brobecker <brobecker@adacore.com>
207
208 * procfs.c (procfs_init_inferior): Fix typo causing the build
209 to fail.
210
26f0edc1
JB
2112013-10-04 Joel Brobecker <brobecker@adacore.com>
212
213 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
214
5713b9b5
JB
2152013-10-04 Joel Brobecker <brobecker@adacore.com>
216
217 * mi/mi-main.c (run_one_inferior): Add function description.
218 Make ARG a pointer to an integer whose value determines whether
219 we should "run" or "start" the program.
220 (mi_cmd_exec_run): Add handling of the "--start" option.
221 Reject all other command-line options.
222 * NEWS: Add entry for "-exec-run"'s new "--start" option.
223
f48ff2a7
YQ
2242013-10-04 Yao Qi <yao@codesourcery.com>
225
226 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
227 (struct notif_client) <pending_event>: Moved
228 to struct remote_notif_state.
229 <id>: New field.
230 (struct remote_notif_state) <pending_event>: New field.
231 (notif_event_xfree): Declare.
232 * remote-notif.c (handle_notification): Adjust.
233 (notif_event_xfree): New function.
234 (do_notif_event_xfree): Call notif_event_xfree.
235 (remote_notif_state_xfree): Call notif_event_xfree to free
236 each element in field pending_event.
237 * remote.c (discard_pending_stop_replies): Remove declaration.
238 (discard_pending_stop_replies_in_queue): Declare.
239 (remote_close): Call discard_pending_stop_replies_in_queue
240 instead of discard_pending_stop_replies.
241 (remote_start_remote): Adjust.
242 (stop_reply_xfree): Call notif_event_xfree.
243 (notif_client_stop): Adjust initialization.
244 (remote_notif_remove_all): Rename it to ...
245 (remove_stop_reply_for_inferior): ... this. Update comments.
246 Don't check INF is NULL.
247 (discard_pending_stop_replies): Return early if notif_state is
248 NULL. Adjust. Don't check INF is NULL.
249 (remote_notif_get_pending_events): Adjust.
250 (discard_pending_stop_replies_in_queue): New function.
251 (remote_wait_ns): Likewise.
252
5965e028
YQ
2532013-10-04 Yao Qi <yao@codesourcery.com>
254
255 * remote-notif.c (DECLARE_QUEUE_P): Remove.
256 (notif_queue): Remove.
257 (remote_notif_process): Add one parameter 'notif_queue'.
258 Update comments. Callers update.
259 (remote_async_get_pending_events_token): Remove.
260 (remote_notif_register_async_event_handler): Remove.
261 (remote_notif_unregister_async_event_handler): Remove.
262 (handle_notification): Add parameter 'notif_queue'. Update
263 comments. Callers update.
264 (notif_xfree): Remove.
265 (remote_notif_state_allocate): New function.
266 (remote_notif_state_xfree): New function.
267 (_initialize_notif): Remove code to allocate queue.
268 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
269 (struct remote_notif_state): New.
270 (handle_notification): Update declaration.
271 (remote_notif_process): Likewise.
272 (remote_notif_register_async_event_handler): Remove.
273 (remote_notif_unregister_async_event_handler): Remove.
274 (remote_notif_state_allocate): Declare.
275 (remote_notif_state_xfree): Declare.
276 * remote.c (struct remote_state) <notif_state>: New field.
277 (remote_close): Don't call
278 remote_notif_unregister_async_event_handler. Call
279 remote_notif_state_xfree.
280 (remote_open_1): Don't call
281 remote_notif_register_async_event_handler. Call
282 remote_notif_state_allocate.
283
5e5ac9a5
YQ
2842013-10-04 Yao Qi <yao@codesourcery.com>
285
286 * varobj.c (create_child_with_value): Remove 'const' from the
287 type of parameter 'name'.
288 (varobj_add_child): Likewise.
289 (install_dynamic_child): Remove 'const' from the type of
290 parameter 'name'.
291 (varobj_add_child): Likewise.
292 (create_child_with_value): Likewise. Update comments. Don't
293 duplicate 'name'.
294 (update_dynamic_varobj_children): Duplicate 'name'
295 and pass it to install_dynamic_child.
296
06ab7b19
PM
2972013-10-03 Phil Muldoon <pmuldoon@redhat.com>
298
299 * python/py-value.c (convert_value_from_python): Move PyInt_Check
300 conversion logic to occur after PyLong_Check. Comment on order
301 change significance.
302 * python/py-arch.c (archpy_disassemble): Comment on order of
303 conversion for integers and longs.
304
8ae377e8
PA
3052013-10-03 Pedro Alves <palves@redhat.com>
306
307 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
308 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
309 functions. Always test for PTRACE_O_TRACESYSGOOD even if
310 PTRACE_O_TRACEFORK is not supported.
311 (linux_test_for_tracesysgood): New function.
312 (linux_test_for_tracefork): New function, factored out from
313 linux_check_ptrace_features, and also don't kill child_pid here.
314
b1328b1b
TG
3152013-10-03 Tristan Gingold <gingold@adacore.com>
316
317 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
318 Remove verbose error reporting. Use detected state to
319 thread_set_state call.
320 (i386_darwin_dr_get): Fix return type. Remove verbose error
321 report.
322 Remove trailing spaces.
323
901461f8
PA
3242013-10-02 Pedro Alves <palves@redhat.com>
325
326 * cp-valprint.c (cp_print_value_fields): Adjust calls to
327 val_print_optimized_out.
328 * jv-valprint.c (java_print_value_fields): Likewise.
329 * p-valprint.c (pascal_object_print_value_fields): Likewise.
330 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
331 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
332 new optimized out value.
333 * findvar.c (address_from_register): Likewise.
334 * frame.c (put_frame_register): Tweak error string to say the
335 register was not saved, rather than optimized out.
336 * infcmd.c (default_print_one_register_info): Adjust call to
337 val_print_optimized_out. Use value_of_register instead of
338 get_frame_register_value.
339 * mi/mi-main.c (output_register): Use value_of_register instead of
340 get_frame_register_value.
341 * valprint.c (valprint_check_validity): Likewise.
342 (val_print_optimized_out): New value parameter. If the value is
343 lval_register, print <not saved> instead.
344 (value_check_printable, val_print_scalar_formatted): Adjust calls
345 to val_print_optimized_out.
346 * valprint.h (val_print_optimized_out): New value parameter.
347 * value.c (struct value) <optimized_out>: Extend comment.
348 (error_value_optimized_out): New function.
349 (require_not_optimized_out): Use it. Use a different string for
350 lval_register values.
351 * value.h (error_value_optimized_out): New declaration.
352 * NEWS: Mention <not saved>.
353
042a84d9
JB
3542013-10-02 Joel Brobecker <brobecker@adacore.com>
355
356 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
357 strcmp to compare two symtab filenames.
358
6b9780fb
JB
3592013-10-02 Joel Brobecker <brobecker@adacore.com>
360
361 * symtab.c (search_symbols_equal): Delete.
362 (sort_search_symbols_remove_dups): Replace call to
363 search_symbols_equal by call to compare_search_syms,
364 adjusting as necessary.
365
751e7549
PM
3662013-10-02 Phil Muldoon <pmuldoon@redhat.com>
367
368 PR python/15579
369
370 * python/python.c: Document gdb.execute command in Python help.
371
1efd7661
PM
3722013-10-02 Phil Muldoon <pmuldoon@redhat.com>
373
374 * python/py-frame.c (frame_info_to_frame_object): Use
375 gdbpy_convert_exception. Clean up Python object on failure.
376
562fc849
PM
3772013-10-02 Phil Muldoon <pmuldoon@redhat.com>
378
379 * python/lib/gdb/command/frame_filters.py
380 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
381 (ShowFrameFilterPriority.invoke): Ditto.
382
d7561cbb
KS
3832013-10-01 Keith Seitz <keiths@redhat.com>
384
385 * linespec.c (struct ls_parser): Make 'saved_arg' const.
386 (parse_linespec): Make 'argptr' const.
387 Remove temporary cast of 'argptr' to const char **.
388 (decode_line_full): Pass const pointer to parse_linespec.
389 (decode_line_1): Likewise.
390 (decode_objc): Make local variable 'new_argptr' const.
391 (find_function_symbols): Remove temporary cast to char *
392 to find_imps.
393 * objc-lang.c (find_imps): Make argument 'method' const.
394 Return const.
395 * objc-lang.h (find_imps): Likewise.
396
3972013-10-01 Keith Seitz <keiths@redhat.com>
398
399 * completer.c (skip_quoted_chars): Make all arguments const.
400 Return const.
401 (skip_quoted): Likewise.
402 * completer.h (skip_quoted_chars): Likewise.
403 (skip_quoted): Likewise.
404 * defs.h (skip_quoted): Remove duplicate declaration.
405 * jv-exp.y: Include completer.h.
406 (yylex): Remove unneccessary cast to char * fro skip_quoted.
407 * p-exp.y: Include completer.h.
408
4092013-10-01 Keith Seitz <keiths@redhat.com>
410
411 * c-exp.y (parse_number): Make first argument const.
412 Make a copy of the input to manipulate.
413 (c_parse_escape): Make first argument const.
414 Make local variable 'tokptr' const.
415 (parse_string_or_char): Make first two arguments const.
416 (macro_original_text): Make const.
417 (lex_one_token): Make local variable 'tokstart' const.
418 Likewise for local variables named 'p'.
419 Cast away const for struct stoken (temporary).
420 * c-lang.h (c_parse_escpae): Make first argument const.
421 * cli/cli-cmds.c (echo_command): Make local variable 'p'
422 const.
423 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
424 var_string case.
425 * f-exp.y (parse_number): Make first argument const.
426 (match_string_literal): Make local variable 'tokstart'
427 const.
428 (yylex): Make local variable 'p' const.
429 Cast away const for struct stoken (temporary).
430 * go-exp.y (parse_number): Make first argument const.
431 (parse_string_or_char): Likewise.
432 Make local variable 'tokstart' const.
433 (lex_one_token): Likewise for numerous locals called 'p'.
434 Cast away const for struct stoken (temporary).
435 * jv-exp.y (parse_number): Make first argument const.
436 Make local variables 'tokstart' and 'tokptr' const.
437 Cast away const for call to skip_quoted (temporary).
438 (yylex): Make local variable 'p' const.
439 Cast away const for struct stoken (temporary).
440 * m2-exp.y (parse_number): Make local variable 'p' const.
441 (yylex): Likewise for 'tokstart'.
442 Cast away const for struct stoken (temporary).
443 Make local variable 'p' const.
444 * macroexp.c (get_character_constant): Pass a const string
445 to c_parse_escape.
446 (get_string_literal): Likewise.
447 (macro_expand_next): Make first argument const.
448 Cast away const for init_shared_buffer.
449 * macroexp.h (macro_expand_next): Make first argument const.
450 * p-exp.y (yylex): Make a local copy of 'lexptr'.
451 Pass a const string to c_parse_escape.
452 Make local variables 'p' and 'namestart' const.
453 * parse.c (lexptr): Make const.
454 (prev_lexptr): Likewise.
455 (find_template_name_end): Return const.
456 Make argument const, too.
457 (parse_exp_in_context): Make first argument const.
458 Remove the entire const_hack.
459 (parse_exp_in_context_1): Make first argument const.
460 * parser-defs.h (find_template_name_end): Return const.
461 Make argument const, too.
462 (lexptr): Make const.
463 (prev_lexptr): Likewise.
464 * utils.c (parse_escape): Make second argument const.
465 * utils.h (parse_escape): Likewise.
466
4672013-10-01 Keith Seitz <keiths@redhat.com>
468
469 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
470 is now const.
471 (block_lookup): Make 'raw_name' and 'name' const.
472 * ada-lex.l (processString): Update for struct stoken.ptr.
473 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
474 (operator_stoken): Likewise.
475 (lex_one_token): Remove temporary cast to char * for
476 'yylval.sval.ptr'.
477 * f-exp.y (yylex): Likewise.
478 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
479 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
480 * go-exp.y (lex_one_token): Remove temporary cast to char * for
481 'yylval.sval.ptr'.
482 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
483 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
484 * linespec.c (struct ls_parser): Make 'stream' const.
485 (find_parameter_list_end): Make argument 'input' and local
486 variable 'p' const.
487 (linespec_lexer_lex_string): Make local variables 'start' and
488 'p' const.
489 Use skip_spaces_const instead of skip_spaces.
490 (linespec_lexer_peek_token): Make local variable 'saved_stream'
491 const.
492 (parse_linespec): Temporarily cast 'argptr' to const for
493 'parser->lexer.stream'.
494 * m2-exp.y (yylex): Remove temporary cast to char * for
495 'yylval.sval.ptr'.
496 * objc-lang.c (add_msglist): Make local variable 'p' const.
497 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
498 (exp : STRING): Make 'sp' const.
499 (parse_number): Make argument 'p' const.
500 * parser-defs.h (struct stoken): Make 'ptr' const.
501
193a8eac
DE
5022013-10-01 Doug Evans <dje@google.com>
503
504 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
505
2213e2be
YQ
5062013-10-01 Yao Qi <yao@codesourcery.com>
507
508 * varobj.c (c_value_of_root): Remove declaration.
509 (cplus_value_of_root, java_value_of_root): Likewise.
510 (ada_value_of_root): Likewise.
511 (struct language_specific) <value_of_root>: Remove.
512 (languages): Update initialization.
513 (check_scope): Move earlier.
514 (c_value_of_root): Move earlier and rename to ...
515 (value_of_root_1): ... this.
516 (value_of_root): Caller update.
517 (cplus_value_of_root, java_value_of_root): Remove.
518 (ada_value_of_root): Remove.
519
c573f273
YQ
5202013-10-01 Yao Qi <yao@codesourcery.com>
521
522 * varobj.c (varobj_format_string): Remove "unknown".
523 (languages): Remove the first element.
524 * varobj.h (enum varobj_languages): Remove vlang_c.
525
56250258
YQ
5262013-10-01 Yao Qi <yao@codesourcery.com>
527
528 * varobj.c (struct language_specific) <language>: Remove.
529 (languages): Update the initialization.
530
29f9ebfa
YQ
5312013-10-01 Yao Qi <yao@codesourcery.com>
532
533 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
534 "solib-target.h". Include "windows-tdep.h".
535 (arm_wince_init_abi): Call windows_init_abi. Remove call to
536 set_solib_ops and set_gdbarch_has_dos_based_file_system.
537 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
538 windows-tdep.o to gdb_target_obs.
539
64870a42
YQ
5402013-10-01 Yao Qi <yao@codesourcery.com>
541
542 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
543 "solib-target.h".
544 (amd64_windows_init_abi): Don't call set_solib_ops and
545 set_gdbarch_iterate_over_objfiles_in_search_order. Call
546 windows_init_abi instead.
547 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
548 "solib-target.h".
549 (i386_cygwin_init_abi): Don't call set_solib_ops,
550 set_gdbarch_has_dos_based_file_system and
551 set_gdbarch_iterate_over_objfiles_in_search_order. Call
552 windows_init_abi instead.
553 * windows-tdep.c: Include "solib.h" and "solib-target.h".
554 (windows_init_abi): New function.
555 (windows_iterate_over_objfiles_in_search_order): Make it
556 static.
557 * windows-tdep.h (windows_init_abi): Declare.
558 (windows_iterate_over_objfiles_in_search_order): Remove
559 declaration.
560
0aebdefa
JB
5612013-10-01 Jerome Guitton <guitton@adacore.com>
562
563 Checked in by Joel Brobecker <brobecker@adacore.com>
564 * system-gdbinit/elinos.py (get_elinos_environment): Return an
565 incomplete dictionnary instead of None in case of missing
566 environment variables.
567 (elinos_init): in case of an incomplete environment, best
568 effort to load system libraries instead of abort.
569
1c8e84b0
JB
5702013-10-01 Joel Brobecker <brobecker@adacore.com>
571
572 * ada-lang.c (ada_has_this_exception_support): Ignore
573 mst_solib_trampoline minimal symbols.
574
61d82a0d
TG
5752013-09-30 Tristan Gingold <gingold@adacore.com>
576
577 * i386-darwin-nat.c (darwin_complete_target): Install methods for
578 hardware watchpoint.
579 (i386_darwin_dr_set): Support 32 and 64 bit states.
580 (i386_darwin_dr_get): Likewise.
581 (i386_darwin_dr_set_control): Make static.
582 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
583 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
584
dfd4cc63
LM
5852013-09-30 Luis Machado <lgustavo@codesourcery.com>
586
587 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
588 Replace TIDGET with ptid_get_lwp.
589 Replace GET_LWP with ptid_get_lwp.
590 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
591 Replace BUILD_THREAD with ptid_build.
592 Replace BUILD_LWP with ptid_build.
593 Replace PIDGET with ptid_get_pid.
594 Replace TIDGET with ptid_get_lwp.
595 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
596 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
597 Replace TIDGET with ptid_get_lwp.
598 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
599 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
600 Replace TIDGET with ptid_get_lwp.
601 Replace GET_LWP with ptid_get_lwp.
602 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
603 * auxv.c: Likewise.
604 * breakpoint.c: Likewise.
605 * common/ptid.c (ptid_is_pid): Condense check for
606 null_ptid and minus_one_ptid.
607 (ptid_lwp_p): New function.
608 (ptid_tid_p): New function.
609 * common/ptid.h: Update comments for accessors.
610 (ptid_lwp_p): New prototype.
611 (ptid_tid_p): New prototype.
612 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
613 * gcore.c: Replace PIDGET with ptid_get_pid.
614 * gdbthread.h: Likewise.
615 * gnu-nat.c: Likewise.
616 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
617 Replace TIDGET with ptid_get_lwp.
618 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
619 * hppanbsd-nat.c: Likewise.
620 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
621 Replace TIDGET with ptid_get_lwp.
622 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
623 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
624 * infcmd.c: Likewise.
625 * inferior.h: Likewise.
626 * inflow.c: Likewise.
627 * infrun.c: Likewise.
628 * linux-fork.c: Likewise.
629 * linux-nat.c: Replace PIDGET with ptid_get_pid.
630 Replace GET_PID with ptid_get_pid.
631 Replace is_lwp with ptid_lwp_p.
632 Replace GET_LWP with ptid_get_lwp.
633 Replace BUILD_LWP with ptid_build.
634
5b4e221c
MF
6352013-09-28 Mike Frysinger <vapier@gentoo.org>
636
637 * common/linux-btrace.c: Move sys/syscall.h out of the
638 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
639 Also check for SYS_perf_event_open before attempting to buid.
640
57d63ce2
DE
6412013-09-27 Doug Evans <dje@google.com>
642
19ac8c2e
DE
643 * dwarf2read.c (dwarf2_section_info): Add comment.
644 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
645 All uses updated.
646 (dwarf2_section_empty_p): Rename arg from "info" to "section".
647 (dwarf2_read_section): Delete unused local "header". Add section
648 name to error message.
649 (create_dwo_in_dwp): Tweak comment.
650 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
651
a32a8923
DE
652 * dwarf2read.c (die_reader_specs): Tweak comment.
653 (get_section_bfd_owner, get_section_bfd_section): New functions.
654 (get_section_name, get_section_file_name): New functions.
655 (get_section_id, get_section_flags): New functions.
656 (*): Use new functions to access section fields.
657
57d63ce2
DE
658 * dwarf2read.c (struct dwo_file): Add/tweak comments.
659 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
660 arg "htab". All callers updated.
661 (create_debug_types_hash_table): Remove redundant copy of
662 abbrev_section.
663 (create_dwo_in_dwp): Tweak comments.
664 (read_str_index): Tweak comment. Record dwarf form name in static
665 local.
666
3736004f
PA
6672013-09-27 Pedro Alves <palves@redhat.com>
668
669 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
670 (remote_filename_p): Add comment.
671 * remote.c (remote_filename_p): Adjust to use
672 REMOTE_SYSROOT_PREFIX.
673 * solib.c (solib_find): When deciding whether we need to add a
674 directory separator, check whether the sysroot is "remote:"
675 instead of checking whether the patch has a drive spec. Add
676 comments.
677
5b5596ff
PA
6782013-09-27 Pedro Alves <palves@redhat.com>
679
680 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
681 Delete fields.
682 (remote_parse_stop_reply): Adjust, setting event->ws.kind
683 directly.
684
b5eef7aa
JK
6852013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 Fix set debug frame output.
688 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
689 SENTINEL_FRAME entry lower to match enum frame_type order.
690
5b856f36
PM
6912013-09-26 Pierre Muller <muller@sourceware.org>
692
693 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
694 AMD64_R15_REGNUM when a register index is expected.
695 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
696 Substitute in array.
697 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
698 (amd64_push_arguments): Substitute in integer_regnum array.
699
ade7ed9e
DE
7002013-09-25 Doug Evans <dje@google.com>
701
d3e81981
DE
702 * objfiles.c (allocate_objfile): Move comment to better place.
703
8fb8eb5c
DE
704 New option "set debug symfile on".
705 * NEWS: Mention "set debug symfile".
706 * Makefile.in (SFILES): Add symfile-debug.c.
707 (COMMON_OBS): Add symfile-debug.o.
708 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
709 objfile's symbol functions.
710 * objfiles.h (objfile_set_sym_fns): Declare.
711 * symfile-debug.c: New file.
712 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
713 objfile's symbol functions.
714 (reread_symbols): Ditto.
715
c256e171
DE
716 * symfile.h (struct sym_fns): Delete member "sym_flavour".
717 All uses updated.
718 (add_symtab_fns): Update prototype.
719 * symfile.c (sym_fns_ptr): Delete. Replace with ...
720 (registered_sym_fns): ... this.
721 (symtab_fns): Update.
722 (add_symtab_fns): New arg "flavour". All callers updated.
723 (find_sym_fns): Rewrite to use new sym_fns registry.
724
f56ce883
DE
725 * symfile.h (struct sym_fns): Add "objfile" argument to
726 sym_read_linetable. All uses updated.
727
20c681d1
DE
728 * symtab.c (domain_name, search_domain_name): New functions.
729 * symtab.h (domain_name, search_domain_name): Declare.
730
ade7ed9e
DE
731 * symfile.h (struct quick_symbol_functions): Reorg arg list of
732 map_matching_symbols so objfile is first. All uses updated.
733 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
734 * psymtab.c (map_matching_symbols_psymtab): Update signature.
735
7d760051
UW
7362013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 PR shlibs/8882
739 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
740 link map entries.
741
020f7036
DE
7422013-09-24 Doug Evans <dje@google.com>
743
744 * objfiles.c (free_objfile): Move comment.
745
598402f0
JB
7462013-09-24 Joel Brobecker <brobecker@adacore.com>
747
748 * ada-exp.y (string_to_operator): Delete.
749 (dummy_string_to_ada_operator): Delete.
750
bf4d6c1c
JB
7512013-09-24 Joel Brobecker <brobecker@adacore.com>
752
753 Revert:
754 * i386-tdep.h (enum amd64_reg_class): New, moved here from
755 amd64-tdep.c.
756 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
757 call_dummy_integer_regs, and classify.
758 * amd64-tdep.h (amd64_classify): Add declaration.
759 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
760 (amd64_reg_class): Delete, moved to i386-tdep.h.
761 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
762 Replace call to amd64_classify by call to tdep->classify.
763 (amd64_push_arguments): Get the list of registers to use for
764 passing integer parameters from the gdbarch tdep structure,
765 rather than using a hardcoded one. Replace calls to amd64_classify
766 by calls to tdep->classify.
767 (amd64_push_dummy_call): Get the register number used for
768 the "hidden" argument from tdep->call_dummy_integer_regs.
769 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
770 and tdep->call_dummy_integer_regs. Set tdep->classify.
771
849e9755
JB
7722013-09-24 Joel Brobecker <brobecker@adacore.com>
773
774 Revert:
775 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
776 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
777 where tdep->memory_args_by_pointer is non-zero.
778
c1459fd6
JB
7792013-09-24 Joel Brobecker <brobecker@adacore.com>
780
781 Revert:
782 * i386-tdep.h (struct gdbarch_tdep): Add new field
783 integer_param_regs_saved_in_caller_frame.
784 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
785 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
786
20c2e3e0
JB
7872013-09-24 Joel Brobecker <brobecker@adacore.com>
788
874440b8 789 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
790 (amd64_windows_classify): Delete.
791 (amd64_windows_passed_by_integer_register)
792 (amd64_windows_passed_by_xmm_register)
793 (amd64_windows_passed_by_pointer)
794 (amd64_windows_adjust_args_passed_by_pointer)
795 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
796 (amd64_windows_push_dummy_call): New functions.
797 (amd64_windows_init_abi): Remove setting of
798 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
799 tdep->classify, tdep->memory_args_by_pointer and
800 tdep->integer_param_regs_saved_in_caller_frame.
801 Add call to set_gdbarch_push_dummy_call.
802
82bf32bc
JK
8032013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
804
805 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
806 objfile->original_name.
807
24ba069a
JK
8082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 Pass down original filename for objfile.
811 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
812 * elfread.c (elf_symfile_read): Likewise.
813 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
814 longer set ORIGINAL_NAME.
815 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
816 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
817 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
818 symbol_file_add_from_bfd call.
819 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
820 (macho_check_dsym): Add parameter filenamep. Change function comment.
821 Set *filenamep.
822 (macho_symfile_read): New variable dsym_filename. Update
823 macho_check_dsym call. Use it for symbol_file_add_separate.
824 * objfiles.c (allocate_objfile): Add parameter name. New comment for
825 it. Use it for objfile->original_name.
826 (objfile_name): Return OBFD's filename, if available.
827 * objfiles.h (allocate_objfile): Add new parameter name.
828 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
829 * symfile-mem.c (symbol_file_add_from_memory): Update
830 symbol_file_add_from_bfd call.
831 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
832 comment for it.
833 (symbol_file_add_with_addrs): New parameter name, add function comment
834 for it. Remove variable name. Update allocate_objfile call.
835 (symbol_file_add_separate): New parameter name, add function comment
836 for it. Update symbol_file_add_with_addrs call.
837 (symbol_file_add_from_bfd): New parameter name. Update
838 symbol_file_add_with_addrs call.
839 (symbol_file_add): Update symbol_file_add_from_bfd call.
840 (reread_symbols): New variable original_name. Save
841 objfile->original_name by it.
842 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
843 second parameter.
844
4262abfb
JK
8452013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
846
847 Code cleanup: Add objfile_name accessor function.
848 * ada-lang.c (is_known_support_routine): Use objfile_name.
849 * auto-load.c (source_gdb_script_for_objfile)
850 (auto_load_objfile_script): Likewise.
851 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
852 * dbxread.c (dbx_symfile_read): Likewise.
853 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
854 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
855 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
856 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
857 (lookup_dwp_signatured_type, lookup_dwo_unit)
858 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
859 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
860 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
861 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
862 (dwarf2_record_block_ranges, read_common_block, read_typedef)
863 (read_subrange_type, load_partial_dies, read_partial_die)
864 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
865 (die_containing_type, build_error_marker_type, lookup_die_type)
866 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
867 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
868 (get_DW_AT_signature_type, write_psymtabs_to_index)
869 (save_gdb_index_command): Likewise.
870 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
871 Likewise.
872 * expprint.c (dump_subexp_body_standard): Likewise.
873 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
874 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
875 original_name.
876 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
877 obj_name, use objfile_name for it, use the variable.
878 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
879 Use objfile_name.
880 * machoread.c (macho_symtab_read, macho_check_dsym)
881 (macho_symfile_relocate): Likewise.
882 * maint.c (maintenance_translate_address): Likewise.
883 * minidebug.c (find_separate_debug_file_in_section): Likewise.
884 * minsyms.c (install_minimal_symbols): Likewise.
885 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
886 original_name.
887 (filter_overlapping_sections): Use objfile_name.
888 (objfile_name): New function.
889 * objfiles.h (struct objfile): Rename field name to original_name.
890 (objfile_name): New prototype.
891 * printcmd.c (sym_info, address_info): Use objfile_name.
892 * probe.c (parse_probes, collect_probes, compare_probes)
893 (info_probes_for_ops): Likewise.
894 * progspace.c (clone_program_space): Likewise.
895 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
896 (maintenance_info_psymtabs): Likewise.
897 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
898 (source_section_scripts): Likewise.
899 * python/py-objfile.c (objfpy_get_filename): Likewise.
900 * python/py-progspace.c (pspy_get_filename): Likewise.
901 * solib-aix.c (solib_aix_get_toc_value): Likewise.
902 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
903 * solib.c (solib_read_symbols): Likewise.
904 * stabsread.c (scan_file_globals): Likewise.
905 * stap-probe.c (handle_stap_probe): Likewise.
906 * symfile.c (symbol_file_clear, separate_debug_file_exists)
907 (find_separate_debug_file_by_debuglink): Likewise.
908 (reread_symbols): Likewise. Use the objfile field name renamed to
909 original_name.
910 (allocate_symtab): Use objfile_name.
911 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
912 (dump_objfile, dump_msymbols, dump_symtab_1)
913 (maintenance_print_msymbols, maintenance_print_objfiles)
914 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
915 * target.c (target_translate_tls_address, target_info): Likewise.
916 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
917 objfile_name.
918
4721dc18
JK
9192013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
920
921 Code cleanup.
922 * probe.c (parse_probes): Rename variable objfile_name to
923 objfile_namestr.
924
a61d6db8
JK
9252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 Remove solib-sunos.c.
928 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
929 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
930 * objfiles.c (rt_common_objfile): Remove.
931 (free_objfile): Remove rt_common_objfile comparison.
932 * objfiles.h (rt_common_objfile): Remove.
933 * solib-sunos.c: Remove.
934 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
935
2659903b
JK
9362013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
937
938 Remove a.out NetBSD and OpenBSD hosts.
939 * NEWS (Removed native configurations): New.
940 * config/arm/nbsdaout.mh: Remove.
941 * config/i386/nbsdaout.mh: Remove.
942 * config/i386/obsdaout.mh: Remove.
943 * config/m68k/nbsdaout.mh: Remove.
944 * config/sparc/nbsdaout.mh: Remove.
945 * config/vax/nbsdaout.mh: Remove.
946 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
947 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
948 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
949 error.
950 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
951 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
952 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
953
f60e2d5c
TT
9542013-09-23 Tom Tromey <tromey@redhat.com>
955
956 * linespec.c (struct minsym_and_objfile): Remove.
957 (minsym_and_objfile_d): Remove.
958 (struct linespec, struct collect_info, linespec_parse_basic)
959 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
960 (compare_msymbols, find_method, find_function_symbols)
961 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
962 (add_minsym, search_minsyms_for_name): Update.
963
d3eaaf66
AB
9642013-09-23 Andrew Burgess <aburgess@broadcom.com>
965
966 * regcache.c: Add include of valprint.h.
967 (dump_endian_bytes): Delete.
968 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
969
2cc762b5
AB
9702013-09-23 Andrew Burgess <aburgess@broadcom.com>
971
972 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
973
96181529
PA
9742013-09-19 Pedro Alves <palves@redhat.com>
975
976 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
977 breakpoints.
978
9b3f3ee6
TS
9792013-09-19 Pedro Alves <palves@redhat.com>
980 Thomas Schwinge <thomas@codesourcery.com>
981 Yue Lu <hacklu.newborn@gmail.com>
982
983 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
984 Take a gdb_byte pointer instead of a char pointer.
985
986 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
987 gnu_xfer_partial helper.
988 (gnu_xfer_partial): New function.
989 (gnu_target): Don't install a deprecated_xfer_memory hook.
990 Install a to_xfer_partial hook.
991
69150c3d
JK
9922013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 Constification.
995 * main.c (captured_main): Replace catch_command_errors by
996 catch_command_errors_const. Twice.
997 * symfile.c (symbol_file_add_main_1): Make args parameter const.
998 (symbol_file_add): Make name parameter const.
999 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1000 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1001 variable name. Change their usage accordingly.
1002 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1003 const.
1004 (symbol_file_add_main): Make args parameter const.
1005
086850b2
UW
10062013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1007 Ulrich Weigand <uweigand@de.ibm.com>
1008
1009 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1010 of c_value member.
1011 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1012
ca08a94c 10132013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1014 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1015
1016 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1017 (gnu_create_inferior)
1018 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1019 (set_sig_thread_cmd): Use the lwpid field of ptids to
1020 store/extract thread ids instead of the tid field.
1021 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1022
e4c6a2c4
AB
10232013-09-18 Andrew Burgess <aburgess@broadcom.com>
1024
1025 * infcmd.c (default_print_one_register_info): Add detection of
1026 optimized out values.
1027 (default_print_registers_info): Switch to using
1028 get_frame_register_value.
1029
58c48e72
MM
10302013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1031
1032 * infrun.c (handle_inferior_event): Check if we know the
1033 function start address before setting a resume breakpoint.
1034
c8d37639
PA
10352013-09-18 Pedro Alves <palves@redhat.com>
1036
1037 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1038 minus_one_ptid instead of looking at the ptid's tid field and
1039 comparing that to -1.
1040
71926e28
AB
10412013-09-18 Andrew Burgess <aburgess@broadcom.com>
1042
1043 * main.h (get_gdb_program_name): Remove extra whitespace.
1044
c88a1531
AB
10452013-09-18 Andrew Burgess <aburgess@broadcom.com>
1046
1047 * main.h (get_gdb_program_name): Add declaration.
1048 * main.c (get_gdb_program_name): Add definition.
1049
4390d890
DE
10502013-09-17 Doug Evans <dje@google.com>
1051
1052 * dwarf2read.c: Move definitions of complaint functions to after
1053 forward declarations of local functions.
1054
49fa26b0
PA
10552013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1056 Pedro Alves <palves@redhat.com>
1057
1058 PR gdb/11568
1059 * breakpoint.c (remove_threaded_breakpoints): New function.
1060 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1061 as thread_exit observer.
1062
08d72866
PA
10632013-09-17 Pedro Alves <palves@redhat.com>
1064
1065 PR gdb/15911
1066 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1067 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1068 * corelow.c (core_open):
1069 * frame.h (print_stack_frame, print_frame_info): New
1070 'set_current_sal' parameter.
1071 * infcmd.c (finish_command, kill_command): Adjust call to
1072 print_stack_frame.
1073 * inferior.c (inferior_command): Likewise.
1074 * infrun.c (normal_stop): Likewise.
1075 * linux-fork.c (linux_fork_context): Likewise.
1076 * record-full.c (record_full_goto_entry, record_full_restore):
1077 Likewise.
1078 * remote-mips.c (common_open): Likewise.
1079 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1080 Use it.
1081 (print_frame_info): New 'set_current_sal' parameter. Set the last
1082 displayed sal depending on the new paremeter instead of looking at
1083 print_what.
1084 (backtrace_command_1, select_and_print_frame, frame_command)
1085 (current_frame_command, up_command, down_command): Adjust call to
1086 print_stack_frame.
1087 * thread.c (print_thread_info, restore_selected_frame)
1088 (do_captured_thread_select): Adjust call to print_stack_frame.
1089 * tracepoint.c (tfind_1): Likewise.
1090 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1091 (mi_cmd_stack_info_frame): Likewise.
1092 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1093 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1094
6bc305f5
SDJ
10952013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1096
1097 * value.c (isvoid_internal_fn): Replace "parameter" with
1098 "argument".
1099
0a7cfe2c
SS
11002013-09-16 Stan Shebs <stan@codesourcery.com>
1101
1102 * README: Update references to writing code for GDB.
1103 * configure.ac (build_warnings): Remove obsolete comment.
1104 * configure: Regenerate.
1105 * gdbarch.sh: Remove references to gdbint.texinfo.
1106 * gdbarch.h: Regenerate.
1107 * gdbtypes.c (objfile_type): Remove comments referencing internals
1108 manual and D10V.
1109
a280dbd1
SDJ
11102013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1111
1112 * NEWS: Mention new convenience function $_isvoid.
1113 * value.c (isvoid_internal_fn): New function.
1114 (_initialize_values): Add new convenience function $_isvoid.
1115
04a83fee
PM
11162013-09-16 Pierre Muller <muller@sourceware.org>
1117
1118 * arm-linux-tdep.c: Add "elf/common.h" header.
1119 Remove AT_HWCAP macro definintion as it is provided in
1120 added include file.
1121 * s390-tdep.c: Remove system header <elf.h>
1122 Add "elf/common.h" header for AT_HWCAP definition.
1123 (s390_core_read_description): Use correct CORE_ADDR
1124 for hwcap local variable used as third parameter
1125 of function target_auxv_search.
1126
88505fac
PM
11272013-09-14 Pierre Muller <muller@sourceware.org>
1128 Tom Tromey <tromey@redhat.com>
1129 Pedro Alves <palves@redhat.com>
1130
1131 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1132 mode if operating system doesn't know O_CLOEXEC.
1133
d3846e71
JK
11342013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 Code cleanup.
1137 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1138 inner block.
1139
4ac33720
UW
11402013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1141
1142 * NEWS: Mention TDB support.
1143 * features/s390-tdb.xml: New file.
1144 * features/s390-te-linux64.xml: New file.
1145 * features/s390x-te-linux64.xml: New file.
1146 * features/Makefile (WHICH): Add new tdescs above.
1147 (s390-te-linux64-expedite): Set.
1148 (s390x-te-linux64-expedite): Set.
1149 * features/s390-te-linux64.c: New file (generated).
1150 * features/s390x-te-linux64.c: New file (generated).
1151 * regformats/s390-te-linux64.dat: New file (generated).
1152 * regformats/s390x-te-linux64.dat: New file (generated).
1153 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1154 (HWCAP_S390_TE): Likewise.
1155 (S390_TDB_DWORD0_REGNUM): Likewise.
1156 (S390_TDB_DWORD0_REGNUM): Likewise.
1157 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1158 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1159 (S390_TDB_ATIA_REGNUM): Likewise.
1160 (S390_TDB_R0_REGNUM): Likewise.
1161 (S390_TDB_R1_REGNUM): Likewise.
1162 (S390_TDB_R2_REGNUM): Likewise.
1163 (S390_TDB_R3_REGNUM): Likewise.
1164 (S390_TDB_R4_REGNUM): Likewise.
1165 (S390_TDB_R5_REGNUM): Likewise.
1166 (S390_TDB_R6_REGNUM): Likewise.
1167 (S390_TDB_R7_REGNUM): Likewise.
1168 (S390_TDB_R8_REGNUM): Likewise.
1169 (S390_TDB_R9_REGNUM): Likewise.
1170 (S390_TDB_R10_REGNUM): Likewise.
1171 (S390_TDB_R11_REGNUM): Likewise.
1172 (S390_TDB_R12_REGNUM): Likewise.
1173 (S390_TDB_R13_REGNUM): Likewise.
1174 (S390_TDB_R14_REGNUM): Likewise.
1175 (S390_TDB_R15_REGNUM): Likewise.
1176 (S390_NUM_REGS): Increase.
1177 (S390_IS_TDBREGSET_REGNUM): New macro.
1178 (s390_regmap_tdb): Declare.
1179 (s390_sizeof_tdbregset): Define.
1180 (tdesc_s390_te_linux64): Declare.
1181 (tdesc_s390x_te_linux64): Likewise.
1182 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1183 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1184 (s390_regmap_tdb): New regmap.
1185 (s390_supply_tdb_regset): New function.
1186 (s390_tdb_regset): New regset.
1187 (s390_linux64v2_regset_sections): Add TDB regset to list.
1188 (s390x_linux64v2_regset_sections): Likewise.
1189 (s390_regset_from_core_section): Recognize TDB core note section.
1190 (s390_core_read_description): If HWCAP indicates TE support,
1191 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1192 (s390_gdbarch_init): Handle TDB regset.
1193 (_initialize_s390_tdep): Initialize new tdescs.
1194 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1195 (have_regset_tdb): New variable.
1196 (s390_native_supply): Support register invalidation.
1197 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1198 (check_regset): Treat ENODATA as "regset exists".
1199 (s390_linux_fetch_inferior_registers): Add TDB.
1200 (s390_read_description): Check for TDB existence and select
1201 appropriate tdesc.
1202 * gdbserver/Makefile.in (clean): Add removal of new makefile
1203 targets.
1204 (s390-te-linux64.c): New makefile target.
1205 (s390x-te-linux64.c): Likewise.
1206 * gdbserver/configure.srv (srv_regobj): Append new objects
1207 s390-te-linux64.o and s390x-te-linux64.o.
1208 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1209 s390x-te-linux64.xml, and s390-tdb.xml.
1210 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1211 declaration.
1212 (tdesc_s390_te_linux64): Likewise.
1213 (init_registers_s390x_te_linux64): Likewise.
1214 (tdesc_s390x_te_linux64): Likewise.
1215 (s390_check_regset): Treat ENODATA as "regset exists".
1216 (s390_arch_setup): Add TDB regset support.
1217 (initialize_low_arch): Initialize registers for new tdescs.
1218
2ccd1468
UW
12192013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1220
1221 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1222 (S390_IS_FPREGSET_REGNUM): New macro.
1223 * s390-tdep.c (s390_dwarf_regmap): Make const.
1224 (regnum_is_gpr_full): New function for replacing repeated code.
1225 (s390_pseudo_register_name): Use it.
1226 (s390_pseudo_register_type): Likewise.
1227 (s390_pseudo_register_read): Likewise.
1228 (s390_pseudo_register_write): Likewise.
1229 (s390_unwind_pseudo_register): Likewise.
1230 (s390_regmap_gregset): New format for regmap.
1231 (s390x_regmap_gregset): Likewise.
1232 (s390_regmap_fpregset): Likewise.
1233 (s390_regmap_upper): Likewise.
1234 (s390_regmap_last_break): Likewise.
1235 (s390_regmap_system_call): Likewise.
1236 (s390_supply_regset): Adjust to new regmap format.
1237 (s390_collect_regset): Likewise.
1238 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1239 (s390_native_collect): Likewise.
1240 (supply_gregset): Likewise.
1241 (fill_gregset): Likewise.
1242 (supply_fpregset): Likewise.
1243 (fill_fpregset): Likewise.
1244 (fetch_regset): Likewise.
1245 (store_regset): Likewise.
1246 (s390_linux_fetch_inferior_registers): Likewise.
1247 (s390_linux_fetch_inferior_registers): Likewise.
1248
1aa4cd77
AP
12492013-09-12 Andrew Pinski <apinski@cavium.com>
1250
1251 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1252
d91fab15
UW
12532013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254
1255 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1256
5a5d8ead
AB
12572013-09-09 Andrew Burgess <aburgess@broadcom.com>
1258
1259 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1260
1385f66c
PA
12612013-09-06 Pedro Alves <palves@redhat.com>
1262
1263 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1264 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1265 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1266 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1267 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1268 gdb_stdlog.
1269
146ec4db
PA
12702013-09-06 Pedro Alves <palves@redhat.com>
1271
1272 * remote-sim.c (dump_mem): Constify buf parameter.
1273 gdbsim_xfer_inferior_memory): Rename to ...
1274 (gdbsim_xfer_memory): ... this. Adjust interface as
1275 target_xfer_partial helper.
1276 (gdbsim_xfer_partial): New function.
1277 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1278 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1279
fcde0081
PA
12802013-09-06 Pedro Alves <palves@redhat.com>
1281
1282 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1283 host_address_to_string, and send debug output to gdb_stdlog.
1284
749c8b38
RW
12852013-09-06 Ricard Wanderlof <ricardw@axis.com>
1286
1287 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1288 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1289 gdb_target_obs for cris target.
1290 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1291 (cris_gdbarch_init): Move calls to
1292 set_gdbarch_fetch_tls_load_module_address and
1293 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1294 Add call to gdbarch_init_osabi.
1295 * cris-linux-tdep.c: New file.
1296 * cris-tdep.h: New file.
1297
43df09d9
AB
12982013-09-06 Andrew Burgess <aburgess@broadcom.com>
1299
1300 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1301 to deprecated_init_ui_hook.
1302
4d09c5b4
AB
13032013-09-06 Andrew Burgess <aburgess@broadcom.com>
1304
1305 * cli/cli-interp.c (_initialize_cli_interp): Add a
1306 command_loop_proc to interp_procs.
1307 * event-top.c (cli_command_loop): Change signature to match
1308 interp_command_loop_ftype.
1309 * event-top.h (cli_command_loop): Same.
1310 * interps.c (interp_new): Require every interpreter to have a
1311 command_loop_proc.
1312 (current_interp_command_loop): Just call the command_loop_proc on
1313 the current interpreter.
1314 * tui/tui-interp.c (_initialize_tui_interp): Add a
1315 command_loop_proc to interp_procs.
1316
8eb3d7b6
RW
13172013-09-06 Ricard Wanderlof <ricardw@axis.com>
1318
1319 * cris-tdep.c (cris_gdbarch_init): Add call to
1320 get_gdbarch_fetch_tls_load_module_address.
1321
18b3c2f5
RW
13222013-09-06 Ricard Wanderlof <ricardw@axis.com>
1323
1324 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1325 (cris_elf_gregset_t): Rename from elf_gregset_t.
1326 (crisv32_elf_gregset_t): Adjust.
1327 (cris_supply_gregset, fetch_core_registers): Adjust.
1328
dc8636ef
RW
13292013-09-06 Ricard Wanderlof <ricardw@axis.com>
1330
1331 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1332
257e6d53
AB
13332013-09-05 Andrew Burgess <aburgess@broadcom.com>
1334
1581d8a7 1335 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1336 references in comments.
1581d8a7 1337 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1338 deprecated_command_loop_hook.
1339 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1340 setup.
1581d8a7 1341 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1342
7c33b57c
PA
13432013-09-05 Pedro Alves <palves@redhat.com>
1344
1345 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1346 local is now int instead of ULONGEST. Print it with %d
1347 instead of paddress.
1348
9f8edbd5
TG
13492013-09-05 Tristan Gingold <gingold@adacore.com>
1350
1351 * MAINTAINERS: Remove avr maintainership.
1352
d5b495b4
PA
13532013-09-05 Pedro Alves <palves@redhat.com>
1354
1355 * findvar.c (value_of_register): Rework in terms of
1356 value_of_register_lazy.
1357
40b91786
MB
13582013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1359
1360 * symfile.c (add_symbol_file_command): Remove trailing
1361 whitespaces and blank line after comment.
1362
6eed1678
PA
13632013-09-05 Pedro Alves <palves@redhat.com>
1364
1365 * tui/tui-regs.c (tui_register_format): Don't look at the
1366 register's name here. Return string representing register
1367 value instead of storing it in the data element.
1368 (tui_get_register): Compare register string representations
1369 instead of register value states and contents.
1370
8eb6bda2
PA
13712013-09-05 Pedro Alves <palves@redhat.com>
1372
1373 PR tui/15933
1374 * tui/tui-regs.c (tui_show_registers): Show registers of the
1375 selected frame, not the current frame.
1376
48b1f08c
RW
13772013-09-05 Ricard Wanderlof <ricardw@axis.com>
1378
1379 * MAINTAINERS (Write After Approval): Add myself to the list.
1380
89e63ee4
DE
13812013-09-04 Doug Evans <dje@google.com>
1382
1383 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1384 (queue_and_load_dwo_tu): New function.
1385 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1386 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1387 Make dependent_cu optional.
1388 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1389 and an older .gdb_index is in use, queue and load all its TUs too.
1390
492c0ab7
JK
13912013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1394 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1395 variable search_flags.
1396 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1397 (OPF_RETURN_REALPATH): ... here.
1398 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1399 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1400 call. Twice.
1401 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1402 openp call.
1403 * solib.c (solib_find): Likewise. Four times.
1404 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1405 in the function comment and for the realpath_fptr variable.
1406 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1407 (find_and_open_source): Likewise. Twice.
1408 * symfile.c (symfile_bfd_open): Likewise, also twice.
1409
23a44de8
DE
14102013-09-04 Doug Evans <dje@google.com>
1411
1412 * progspace.c (save_current_space_and_thread): Remove unnecessary
1413 call to save_current_inferior.
1414
47061676
AB
14152013-09-04 Andrew Burgess <aburgess@broadcom.com>
1416
1417 * sh64-tdep.c (sh64_do_register): Return after printing message
1418 about unavailable register contents.
1419
41dc8db8
MB
14202013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1421 Pedro Alves <palves@redhat.com>
1422
1423 * symfile.c (add_symbol_file_command): Error out on unknown
1424 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1425 options and collapse into single conditional branch.
1426
07107ca6
LM
14272013-09-03 Luis Machado <lgustavo@codesourcery.com>
1428
a7ea61cf 1429 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1430 detach_fork.
1431 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1432 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1433 * inferior.h (detach_fork): Remove.
1434 * infrun.c (detach_fork): Adjust comment and make it
1435 static.
1436 (follow_fork): Pass detach_fork parameter to
1437 target_follow_fork.
1438 * linux-nat.c (linux_child_follow_fork): New parameter
1439 detach_fork.
1440 * target.c (target_follow_fork): New parameter detach_fork.
1441 Pass detach_fork as parameter and print its value.
1442 * target.h (struct target_ops) <to_follow_fork>: New int
1443 parameter.
1444 (target_follow_fork): New parameter detach_fork.
1445
3bec2768
JB
14462013-09-03 Joel Brobecker <brobecker@adacore.com>
1447
1448 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1449 Replace sec->bfd by sec->the_bfd_section->owner.
1450
c01cbb3d
YQ
14512013-09-03 Yao Qi <yao@codesourcery.com>
1452
1453 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1454 from linux_has_shared_address_space.
1455 (linux_has_shared_address_space): Call linux_is_uclinux.
1456 * linux-tdep.h (linux_is_uclinux): Declare.
1457 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1458 linux_is_uclinux.
1459
7b00db47
YQ
14602013-09-03 Yao Qi <yao@codesourcery.com>
1461
1462 * config/djgpp/fnchange.lst: Remove entry of
1463 i386-interix-nat.c and i386-interix-tdep.c.
1464 * configure.ac: Remove '*-*-interix*'.
1465 * configure: Re-generated.
1466 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1467 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1468 obsolete comments.
1469 * osabi.c (gdb_osabi_names): Remove "Interix".
1470
0f9741f2
YQ
14712013-09-03 Yao Qi <yao@codesourcery.com>
1472
1473 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1474
1e038f67
MM
14752013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1476
1477 * record.h (record_print_flag) <record_print_src_line,
1478 record_print_insn_range>: Rename into ...
1479 (record_print_flag) <record_print_src_line,
1480 record_print_insn_range>: ... this. Update all users.
1481
9e52adf9
PM
14822013-09-02 Pierre Muller <muller@sourceware.org>
1483
1484 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1485 error code.
1486
a2388568
PM
14872013-09-02 Pierre Muller <muller@sourceware.org>
1488
1489 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1490 by use of plongest function.
1491
9058cc3a
TG
14922013-09-02 Tristan Gingold <gingold@adacore.com>
1493
1494 * NEWS: Add entry mentioning support for native Windows x64
1495 SEH data.
1496
1497 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1498 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1499 (struct amd64_windows_frame_cache): New struct.
1500 (amd64_windows_w2gdb_regnum): New global.
1501 (pc_in_range, amd64_windows_frame_decode_epilogue)
1502 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1503 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1504 (amd64_windows_frame_this_id): New functions.
1505 (amd64_windows_frame_unwind): New static global.
1506 (amd64_windows_skip_prologue): New function.
1507 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1508 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1509 with amd64_windows_skip_prologue.
1510
3161820b 15112013-08-30 Joel Brobecker <brobecker@adacore.com>
1512
1513 GDB 7.6.1 released.
1514
02457c76
PA
15152013-08-30 Pedro Alves <palves@redhat.com>
1516
1517 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1518 SRC_AND_LOC.
1519
e0162910
PA
15202013-08-30 Pedro Alves <palves@redhat.com>
1521
1522 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1523 warning text.
1524
6391ce51
PA
15252013-08-30 Pedro Alves <palves@redhat.com>
1526
1527 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1528 Adjust arguments to print_stack_frame.
1529
d1da0587
PA
15302013-08-30 Pedro Alves <palves@redhat.com>
1531
1532 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1533
adfd8245
PA
15342013-08-30 Pedro Alves <palves@redhat.com>
1535
1536 * frame.h (show_and_print_stack_frame): Delete declaration.
1537
96d9056e
PM
15382013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1539
1540 PR python/15461
1541
1542 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1543 (archpy_name): Check for valid architecture.
1544 (archpy_disassemble): Ditto.
1545
11cb8762
JB
15462013-08-29 Joel Brobecker <brobecker@adacore.com>
1547
1548 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1549 instead of "long long" in call to ptrace64.
1550
1af12a7d
AB
15512013-08-29 Andrew Burgess <aburgess@broadcom.com>
1552
1553 * mi/mi-interp.c (mi_command_loop): Change signature to match
1554 interp_command_loop_ftype.
1555 (mi1_command_loop): Remove.
1556 (mi2_command_loop): Remove.
1557 (mi3_command_loop): Remove.
1558 (mi_interpreter_resume): Remove setting of
1559 deprecated_command_loop_hook.
1560 (_initialize_mi_interp): Set mi_command_loop as the command loop
1561 callback.
1562
acc900c2
SA
15632013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1564
1565 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1566 value_type.
1567
548b762d
SA
15682013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1569
1570 * value.c (allocate_value_contents): Make static.
1571 * value.h (allocate_value_contents): Remove prototype.
1572
08039c9e
SA
15732013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1574
1575 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1576 of assembling value via allocate_value_lazy and attribute setter.
1577 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1578 assembling value via allocate_value_lazy and attribute setter.
1579 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1580 assembling value via allocate_value_lazy and attribute setter.
1581
314c7de9
SA
15822013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1583
1584 * value.c (value_from_contents_and_address): Replace allocate_value and
1585 memcpy with value_from_contents.
1586
8f28f522
PM
15872013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1588
1589 * python/py-framefilter.c (py_print_frame): Remove usage of
1590 PyString_AsString. Use python_string_to_host_string instead.
1591 Refactor function to work with a string as a new allocation
1592 instead of a pointer.
1593 (py_print_frame): Ditto.
1594 * python/lib/gdb/frames.py (return_list): Cain iterators together
1595 instead of adding them as a list.
1596 (_sort_list): Call return_list, and remove duplicate code.
1597 (execute_frame_filters): Convert iterator to a list with list().
1598 * python/lib/gdb/command/frame_filters.py
1599 (SetFrameFilterPriority._set_filter_priority): Convert priority
1600 attribute to an integer.
1601 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1602 wrapper function __next__.
1603 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1604 define as "str".
1605
8ee002df
PM
16062013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1607
1608 PR python/15752
8ee002df
PM
1609 * python/py-framefilter.c (apply_frame_filter): Check
1610 gdb_python_initialized. Exit if the Python frame-filter code
1611 cannot be initialized.
1612
af4c453a
PM
16132013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1614
1615 PR cli/15842
af4c453a
PM
1616 * top.c (print_gdb_version): Remove erroneous newline after help
1617 text.
1618
bf8793bb
YQ
16192013-08-29 Yao Qi <yao@codesourcery.com>
1620
1621 * varobj.c (install_dynamic_child): Remove trailing space.
1622 Add one blank line after variable declaration.
1623
1f0c4988
JK
16242013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1625
1626 PR gdb/15415
1627 * corefile.c (get_exec_file): Use exec_filename.
1628 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1629 * exec.c (exec_close): Free EXEC_FILENAME.
1630 (exec_file_attach): New variable canonical_pathname. Use
1631 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1632 EXEC_FILENAME.
1633 * exec.h (exec_filename): New.
1634 * inferior.c (print_inferior, inferior_command): Use
1635 PSPACE_EXEC_FILENAME.
1636 * mi/mi-main.c (print_one_inferior): Likewise.
1637 * progspace.c (clone_program_space, print_program_space): Likewise.
1638 * progspace.h (struct program_space): New field pspace_exec_filename.
1639 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1640 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1641
59ee9f94
WN
16422013-08-28 Will Newton <will.newton@linaro.org>
1643
1644 * common/linux-ptrace.c: Include stdint.h unconditionally.
1645
c8a2a419
JK
16462013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 Code cleanup.
1649 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1650
ffa4ac95
YQ
16512013-08-28 Yao Qi <yao@codesourcery.com>
1652 Pedro Alves <palves@redhat.com>
1653
1654 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1655 instead of stdio_fileopen.
1656 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1657 .Call stderr_fileopen instead of stdio_fileopen.
1658 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1659 [__MINGW32__] (stderr_file_fputs): New function.
1660 (stderr_fileopen): New function.
1661 * ui-file.h (stderr_fileopen): Declare.
1662
69d751e3
DE
16632013-08-27 Doug Evans <dje@google.com>
1664
1665 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1666 (struct dwarf2_per_cu_data): Ditto.
1667 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1668 (process_imported_unit_die): Ditto.
1669 (follow_die_sig_1): Simplify assert.
1670
44f38867
PA
16712013-08-27 Pedro Alves <palves@redhat.com>
1672
1673 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1674 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1675 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1676 windows_xfer_memory directly.
1677 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1678
d28d46b5
PA
16792013-08-27 Pedro Alves <palves@redhat.com>
1680
1681 * darwin-nat.c (darwin_xfer_memory): Delete.
1682 (_initialize_darwin_inferior): Don't install a
1683 deprecated_xfer_memory method.
1684
6211c335
YQ
16852013-08-27 Pedro Alves <pedro@codesourcery.com>
1686 Yao Qi <yao@codesourcery.com>
1687
1688 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1689 (parse_no_frames_option): Remove.
1690 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1691 (mi_cmd_stack_list_args): Adjust.
1692 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1693 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1694 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1695 Caller update.
1696 (list_args_or_locals): New parameter 'skip_unavailable'.
1697 Handle it.
1698 * valprint.c (scalar_type_p): Rename to ...
1699 (val_print_scalar_type_p): ... this. Make extern.
1700 (val_print, value_check_printable): Adjust.
1701 * valprint.h (val_print_scalar_type_p): Declare.
1702 * value.c (value_entirely_unavailable): New function.
1703 * value.h (value_entirely_unavailable): Declare.
1704
1705 * NEWS: Mention the new option "--skip-unavailable" to MI
1706 commands '-stack-list-locals', '-stack-list-arguments' and
1707 '-stack-list-variables'.
1708
242f1fd7
YQ
17092013-08-27 Yao Qi <yao@codesourcery.com>
1710
1711 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1712 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1713 options.
1714 * mi/mi-getopt.c (mi_getopt): Remove.
1715 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1716 'error_on_unknown'.
1717 (mi_getopt): Call mi_getopt_1.
1718 (mi_getopt_silent): New.
1719 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1720
260b681b
DE
17212013-08-26 Doug Evans <dje@google.com>
1722
779bd270
DE
1723 PR symtab/15885
1724 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1725 .gdb_index is in use.
1726 * symfile.c (reread_symbols): Reset objfile->sf.
1727
52e260a3
DE
1728 * NEWS: Document "mt print objfiles" now takes optional regexp.
1729 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1730 regexp of objfiles to print.
1731 (_initialize_symmisc): Update doc string for "mt print objfiles".
1732
260b681b
DE
1733 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1734 missing debug info checks.
1735
a85c52f2
UW
17362013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1737 Ulrich Weigand <uweigand@de.ibm.com>
1738
1739 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1740 line tables generated by XLC compiled binaries.
1741
4f00dda3
DE
17422013-08-23 Doug Evans <dje@google.com>
1743
db68bbae
DE
1744 * symmisc.c (dump_symtab): Delete prototype.
1745 (dump_msymbols, dump_objfile): Ditto.
1746 (maintenance_info_symtabs): Mark as dont_repeat.
1747 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1748
4f00dda3
DE
1749 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1750 debugging printf to better location.
1751
23d577b0
PA
17522013-08-23 Pedro Alves <palves@redhat.com>
1753
1754 * target.c (target_read_live_memory): Change type of 'ret' local
1755 to LONGEST.
1756
00d84524
PA
17572013-08-23 Pedro Alves <palves@redhat.com>
1758
1759 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1760 (remote_read_bytes): Change return type to LONGEST, and adjust to
1761 return a target_xfer_error on error.
1762 (remote_xfer_memory): Delete.
1763 (remote_flash_write): Change type of 'ret' local to LONGEST.
1764 (remote_xfer_partial, remote_xfer_partial): Adjust.
1765 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1766
1ed3ee94
PM
17672013-08-23 Pierre Muller <muller@sourceware.org>
1768
1769 ARI fix: Push # directives to start of line.
1770 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1771
9eaabc75
MW
17722013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1773
1774 PR gdb/15501
1775 * breakpoint.c (enable_command, disable_command): Iterate over
1776 all specified breakpoint locations.
1777
101158d9
LM
17782013-08-22 Luis Machado <lgustavo@codesourcery.com>
1779
1780 * common/linux-ptrace.c (linux_fork_to_function): Push #
1781 directives to the start of the line.
1782 (linux_check_ptrace_features): Fix warning message to use
1783 the "_" markup.
1784
96d7229d
LM
17852013-08-22 Luis Machado <lgustavo@codesourcery.com>
1786
1787 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1788 nat/linux-waitpid.h.
1789 (linux-waitpid.o): New object file rule.
1790 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1791 (current_ptrace_options): Moved from linux-nat.c.
1792 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1793 parameters.
1794 (linux_fork_to_function): New function.
1795 (linux_grandchild_function): Likewise.
1796 (linux_child_function): Likewise.
1797 (linux_check_ptrace_features): New function, heavily
1798 based on linux-nat.c:linux_test_for_tracefork.
1799 (linux_enable_event_reporting): New function.
1800 (ptrace_supports_feature): Likewise.
1801 (linux_supports_tracefork): Likewise.
1802 (linux_supports_traceclone): Likewise.
1803 (linux_supports_tracevforkdone): Likewise.
1804 (linux_supports_tracesysgood): Likewise.
1805 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1806 gdbserver/linux-low.c.
1807 (linux_enable_event_reporting): New declaration.
1808 (linux_supports_tracefork): Likewise.
1809 (linux_supports_traceclone): Likewise.
1810 (linux_supports_tracevforkdone): Likewise.
1811 (linux_supports_tracesysgood): Likewise.
1812 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1813 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1814 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1815 * config/arm/linux.mh (NATDEPFILES): Likewise.
1816 * config/i386/linux.mh (NATDEPFILES): Likewise.
1817 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1818 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1819 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1820 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1821 * config/mips/linux.mh (NATDEPFILES): Likewise.
1822 * config/pa/linux.mh (NATDEPFILES): Likewise..
1823 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1824 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1825 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1826 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1827 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1828 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1829 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1830 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1831 ptrace's 4th argument's types.
1832 Check the type of PTRACE_TYPE_ARG4.
1833 * configure: Regenerate.
1834 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1835 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1836 (linux_supports_tracefork_flag): Remove.
1837 (linux_supports_tracesysgood_flag): Likewise.
1838 (linux_supports_tracevforkdone_flag): Likewise.
1839 (current_ptrace_options): Moved to
1840 common/linux-ptrace.c.
1841 (linux_tracefork_child): Remove.
1842 (my_waitpid): Remove.
1843 (linux_test_for_tracefork): Renamed to
1844 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1845 (linux_test_for_tracesysgood): Remove.
1846 (linux_supports_tracesysgood): Remove.
1847 (linux_supports_tracefork): Remove.
1848 (linux_supports_tracevforkdone): Remove.
1849 (linux_enable_tracesysgood): Remove.
1850 (linux_enable_event_reporting): Remove.
1851 (linux_init_ptrace): New function.
1852 (linux_child_post_attach): Call linux_init_ptrace.
1853 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1854 (linux_child_follow_fork): Call linux_supports_tracefork
1855 and linux_supports_tracevforkdone.
1856 (linux_child_insert_fork_catchpoint): Call
1857 linux_supports_tracefork.
1858 (linux_child_insert_vfork_catchpoint): Likewise.
1859 (linux_child_set_syscall_catchpoint): Call
1860 linux_supports_tracesysgood.
1861 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1862 * nat/linux-nat.h: New file.
1863 * nat/linux-waitpid.c: New file.
1864 * nat/linux-waitpid.h: New file.
1865
9f948660
SDJ
18662013-08-22 Samuel Bronson <naesten@gmail.com>
1867
1868 ARM Linux support for `catch syscall'.
1869 * syscalls/arm-linux.py: New file.
1870 * syscalls/arm-linux.xml: Likewise.
1871 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1872 (arm_linux_init_abi): Register the new function and syscall xml file.
1873 * data-directory/Makefile.in: Install the new syscall xml file.
1874 * NEWS: Brag about this.
1875
6be7b56e
PA
18762013-08-22 Pedro Alves <palves@redhat.com>
1877
1878 PR gdb/15871
1879 * corefile.c (target_xfer_memory_error): New function.
1880 (memory_error): Defer EIO to target_memory_error.
1881 (read_memory): Use target_xfer_partial, and handle finer-grained
1882 target xfer errors.
1883 * target.c (target_xfer_error_to_string): New function.
1884 (memory_xfer_partial_1): If memory is known to be
1885 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1886 (target_xfer_partial): Make extern.
1887 * target.h (enum target_xfer_error): New enum.
1888 (target_xfer_error_to_string): Declare function.
1889 (target_xfer_partial): Declare function.
1890 (struct target_ops) <xfer_partial>: Adjust describing comment.
1891
bcbec14e
AM
18922013-08-22 Alan Modra <amodra@gmail.com>
1893
1894 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1895 * configure.tgt: Likewise as targets.
1896
fc474241
DE
18972013-08-20 Doug Evans <dje@google.com>
1898
1899 * buildsym.c (subfile_stack): Move here from buildsym.h.
1900 (pending_macros): Ditto.
1901 (get_macro_table): New function.
1902 (buildsym_init): Initialize subfile_stack.
1903 * coffread.c (type_vector,type_vector_length): Moved here from
1904 buildsym.h.
1905 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1906 (coff_symtab_read): Use it.
1907 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1908 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1909 with call to get_macro_table.
1910 * stabsread.c (type_vector,type_vector_length): Moved here from
1911 buildsym.h.
1912 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1913 * buildsym.h (get_macro_table): Declare.
1914
bec71544
TT
19152013-08-20 Tom Tromey <tromey@redhat.com>
1916
1917 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1918 Update.
1919 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1920
0002ad5f
DE
19212013-08-20 Doug Evans <dje@google.com>
1922
1923 * blockframe.c: Remove #include "psymtab.h".
1924 * cp-support.c: Ditto.
1925 * source.c: Ditto.
1926 * stack.c: Ditto.
1927
df302446
TT
19282013-08-20 Tom Tromey <tromey@redhat.com>
1929
1930 PR python/15816:
1931 * exceptions.h (return_mask): Now an enum.
1932 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1933 enum constants.
1934
df6d5441
TT
19352013-08-20 Tom Tromey <tromey@redhat.com>
1936
1937 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1938 get_objfile_arch.
1939 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1940 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1941 * jit.c (jit_object_close_impl): Update.
1942 * jv-lang.c (get_dynamics_objfile): Update.
1943 * linespec.c (add_minsym): Use get_dynamics_objfile.
1944 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1945 (allocate_objfile): Don't initialize 'gdbarch' field.
1946 (get_objfile_arch): Update.
1947 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1948 moved from...
1949 (struct objfile) <gdbarch>: ... here. Remove.
1950 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1951 get_objfile_arch.
1952 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1953
f5aee5ee
AM
19542013-08-20 Alan Modra <amodra@gmail.com>
1955
1956 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1957 for IBM long double nan and inf.
1958 (floatformat_is_negative, floatformat_classify,
1959 floatformat_mantissa): Similarly.
1960 (floatformat_ieee_single, floatformat_ieee_double,
1961 floatformat_ieee_quad, floatformat_arm_ext,
1962 floatformat_ia64_spill): Delete unused vars.
1963 (_initialize_doublest): Delete unused function.
1964 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1965 little-endian variants of floatformat_ibm_long_double.
1966
33b60d58 19672013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 1968
33b60d58
LM
1969 * Makefile.in (SFILES): Remove common/target-common.c and
1970 add target/waitstatus.c.
1971 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1972 target/resume.h, target/wait.h and target/waitstatus.h.
1973 (COMMON_OBS): Remove target-common.o and add
1974 waitstatus.o.
1975 (target-common.o): Remove.
1976 (waitstatus.o): New target object file.
1977 * common/target-common.c: Move contents to
1978 target/waitstatus.c and remove.
1979 * common/target-common.h: Move contents to other files and
1980 remove.
1981 (enum resume_kind: Move to target/resume.h.
1982 (TARGET_WNOHANG): Move to target/wait.h.
1983 (enum target_waitkind): Move to target/waitstatus.h.
1984 (struct target_waitstatus): Likewise.
1985 * target.h: Do not include target-common.h and
1986 include target/resume.h, target/wait.h and
1987 target/waitstatus.h.
1988 * target/resume.h: New file.
1989 * target/wait.h: New file.
1990 * target/waitstatus.h: New file.
1991 * target/waitstatus.c: New file.
1992
12696c10
PA
19932013-08-19 Pedro Alves <palves@redhat.com>
1994
1995 * linux-nat.c (linux_test_for_tracefork)
1996 (linux_test_for_tracesysgood, linux_child_follow_fork)
1997 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1998 (linux_nat_wait_1): Extend comment.
1999 (linux_async_pipe): Add comment.
2000
ba89f962
KB
20012013-08-15 Kevin Buettner <kevinb@redhat.com>
2002
2003 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2004 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2005 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2006 Update to account for fact that PC is now a pseudo-register.
2007 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2008 cases for RL78_PC_REGNUM.
2009
35ab155d
MB
20102013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2011
2012 PR cli/15841
2013 * top.c (quit_force): Skip writing history file
2014 if input is not from terminal.
2015
0d031856
TT
20162013-08-14 Tom Tromey <tromey@redhat.com>
2017
2018 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2019 resultthreadlist>: New fields.
2020 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2021 (remote_get_threadlist, remote_threadlist_iterator): Use
2022 new fields. Remove static variables.
2023
ee154bee
TT
20242013-08-14 Tom Tromey <tromey@redhat.com>
2025
2026 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2027 remote_watch_data_address>: New fields.
2028 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2029 (process_stop_reply, remote_wait_as)
2030 (remote_check_watch_resources, remote_stopped_data_address): Update.
2031
88b496c3
TT
20322013-08-14 Tom Tromey <tromey@redhat.com>
2033
2034 * remote.c (struct remote_state) <async_client_callback,
2035 async_client_context>: New fields.
2036 (async_client_callback, async_client_context): Remove.
2037 (remote_async_serial_handler, remote_async): Update.
2038
2f65bcb7
TT
20392013-08-14 Tom Tromey <tromey@redhat.com>
2040
2041 * remote.c (sizeof_pkt): Remove.
2042 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2043
b80fafe3
TT
20442013-08-14 Tom Tromey <tromey@redhat.com>
2045
2046 * remote.c (struct remote_state) <use_threadinfo_query,
2047 use_threadextra_query>: New fields.
2048 (remote_threads_info, remote_threads_extra_info)
2049 (remote_open_1): Update.
2050
8e88304f
TT
20512013-08-14 Tom Tromey <tromey@redhat.com>
2052
2053 * remote.c (struct remote_state) <finished_object,
2054 finished_annex, finished_offset>: New fields.
2055 (remote_read_qxfer): Use remote_state fields; remove static
2056 variables.
2057
280ceea3
TT
20582013-08-14 Tom Tromey <tromey@redhat.com>
2059
2060 * remote.c (struct remote_state) <last_sent_step>:
2061 New field.
2062 (last_sent_step): Remove.
2063 (remote_resume, remote_wait_as): Update.
2064
b73be471
TT
20652013-08-14 Tom Tromey <tromey@redhat.com>
2066
2067 * remote.c (struct remote_state) <last_sent_signal>:
2068 New field.
2069 (last_sent_signal): Remove.
2070 (new_remote_state, remote_resume, remote_wait_as): Update.
2071
5e4a05c4
TT
20722013-08-14 Tom Tromey <tromey@redhat.com>
2073
2074 * remote.c (struct remote_state) <last_program_signals_packet>:
2075 New field.
2076 (last_program_signals_packet): Remove.
2077 (remote_program_signals, remote_open_1): Update.
2078
747dc59d
TT
20792013-08-14 Tom Tromey <tromey@redhat.com>
2080
2081 * remote.c (struct remote_state) <last_pass_packet>:
2082 New field.
2083 (last_pass_packet): Remove.
2084 (remote_pass_signals, remote_open_1): Update.
2085
262e1174
TT
20862013-08-14 Tom Tromey <tromey@redhat.com>
2087
2088 * remote.c (struct remote_state) <remote_traceframe_number>:
2089 New field.
2090 (remote_traceframe_number): Remove.
2091 (new_remote_state, remote_open_1, set_remote_traceframe)
2092 (remote_trace_find): Update.
2093
47f8a51d
TT
20942013-08-14 Tom Tromey <tromey@redhat.com>
2095
2096 * remote.c (struct remote_state) <general_thread, continue_thread>:
2097 New fields.
2098 (general_thread, continue_thread): Remove.
2099 (record_currthread, set_thread, set_general_process)
2100 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2101 (extended_remote_mourn_1): Update.
2102
5d93a237
TT
21032013-08-14 Tom Tromey <tromey@redhat.com>
2104
2105 * remote.c (struct remote_state) <remote_desc>: New field.
2106 (remote_desc): Remove.
2107 (remote_threads_info, remote_threads_extra_info, remote_close)
2108 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2109 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2110 (remote_hostio_send_command, remote_file_put, remote_file_get)
2111 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2112 (remote_async, remote_new_objfile, set_range_stepping): Update.
2113
cf792862
TT
21142013-08-14 Tom Tromey <tromey@redhat.com>
2115
2116 * remote.c (remote_state): Now a pointer.
2117 (get_remote_state_raw): Update.
2118 (new_remote_state): New function.
2119 (_initialize_remote): Use new_remote_state.
2120
dc473cfb
TT
21212013-08-14 Tom Tromey <tromey@redhat.com>
2122
2123 * remote.c (remote_protocol_features): Now const.
2124
85ec6ce7
TT
21252013-08-14 Tom Tromey <tromey@redhat.com>
2126
2127 * remote.c (crc32_table, crc32): Remove.
2128 (remote_verify_memory): Use xcrc32.
2129
73033f12
SDJ
21302013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2131
2132 * value.h (create_internalvar_type_lazy): Adjust prototype
2133 declaration.
2134
5c30d39a
AB
21352013-08-13 Andrew Burgess <aburgess@broadcom.com>
2136
2137 * common/format.c (parse_format_string): Don't allow '#' flag for
2138 pointer arguments in format string.
2139
1a66331e
PM
21402013-08-13 Pierre Muller <muller@sourceware.org>
2141
fde605f3 2142 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2143 if rl_get_screen_size did not return useful values.
2144
b4013987
AA
21452013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2146
2147 PR breakpoints/15117
2148 * linespec.c (linespec_parse_basic): Check for convenience
2149 variable or history value while parsing.
2150
959b6a66
SDJ
21512013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2152
2153 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2154 AVR.
2155 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2156 different signals between the generic Linux kernel implementation
2157 and AVR's.
2158 (avr_linux_gdb_signal_from_target): Delete.
2159 (avr_linux_gdb_signal_to_target): Delete.
2160 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2161
24a55014
DE
21622013-08-09 Doug Evans <dje@google.com>
2163
2164 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2165 entries.
2166
eb14d406
SDJ
21672013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2168
2169 * linux-tdep.c: Define enum with generic signal numbers.
2170 (linux_gdb_signal_from_target): New function.
2171 (linux_gdb_signal_to_target): Likewise.
2172 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2173 methods to the functions above.
2174 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2175 (linux_gdb_signal_to_target): Likewise.
2176 * alpha-linux-tdep.c: Define new enum with signals different
2177 from generic Linux kernel.
2178 (alpha_linux_gdb_signal_from_target): New function.
2179 (alpha_linux_gdb_signal_to_target): Likewise.
2180 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2181 with the functions mentioned above.
2182 * avr-tdep.c: Define enum with differences between Linux kernel
2183 and AVR signals.
2184 (avr_linux_gdb_signal_from_target): New function.
2185 (avr_linux_gdb_signal_to_target): Likewise.
2186 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2187 the functions mentioned above.
2188 * sparc-linux-tdep.c: Define enum with differences between SPARC
2189 and generic Linux kernel signal numbers.
2190 (sparc32_linux_gdb_signal_from_target): New function.
2191 (sparc32_linux_gdb_signal_to_target): Likewise.
2192 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2193 to the functions defined above.
2194 * xtensa-linux-tdep.c: Define enum with differences between
2195 Xtensa and Linux kernel generic signals.
2196 (xtensa_linux_gdb_signal_from_target): New function.
2197 (xtensa_linux_gdb_signal_to_target): Likewise.
2198 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2199 to the functions defined above.
2200 * mips-linux-tdep.c: Define enum with differences between
2201 signals in MIPS and Linux kernel generic ones.
2202 (mips_gdb_signal_to_target): New function.
2203 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2204 only different signals from the Linux kernel generic.
2205 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2206 the functions defined above.
2207 * mips-linux-tdep.h (enum mips_signals): Remove.
2208
156d08c8
PA
22092013-08-09 Pedro Alves <palves@redhat.com>
2210
2211 * avr-tdep.c (XMALLOC): Delete macro.
2212 * cli/cli-dump.c (XMALLOC): Delete macro.
2213
db229724
PA
22142013-08-09 Pedro Alves <palves@redhat.com>
2215
2216 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2217 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2218 (fopen_with_cleanup, add_dump_command): Make static.
2219 * cli/cli-dump.h: Delete file.
2220 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2221 cli/cli-dump.h.
2222
3f12a589
PA
22232013-08-09 Pedro Alves <palves@redhat.com>
2224
2225 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2226 error message.
2227
c718be47
PA
22282013-08-09 Pedro Alves <palves@redhat.com>
2229
156d08c8 2230 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2231 error message.
2232
1e351ed1
PA
22332013-08-09 Pedro Alves <palves@redhat.com>
2234
2235 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2236 (gcore_command): Use tilde_expand here, and when showing the
2237 filename to the user, show the expanded version.
2238
1ed8d800
YQ
22392013-08-09 Yao Qi <yao@codesourcery.com>
2240
2241 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2242 'entryval' is set.
2243
47ecca85
PA
22442013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2245
2246 * gcore.c (create_gcore_bfd): Use tilde_expand.
2247
82a0a75f
YQ
22482013-08-08 Yao Qi <yao@codesourcery.com>
2249
2250 * frame.h (read_frame_local): Declare.
2251 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2252 read_frame_local.
2253 * stack.c (read_frame_local): New.
2254
5c4aa40b
YQ
22552013-08-08 Yao Qi <yao@codesourcery.com>
2256
2257 * mi/mi-cmd-stack.c: Update comments to function
2258 list_args_or_locals.
2259
b93601f3
TT
22602013-08-07 Tom Tromey <tromey@redhat.com>
2261
2262 PR symtab/15028:
2263 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2264 (process_psymtab_comp_unit_reader): Use it.
2265 (process_psymtab_comp_unit): Update. Add "pretend_language"
2266 argument.
2267 (dwarf2_build_psymtabs_hard): Update.
2268 (scan_partial_symbols): Pass CU's language to
2269 process_psymtab_comp_unit.
2270
fa760f46
TT
22712013-08-07 Tom Tromey <tromey@redhat.com>
2272
2273 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2274 (dwarf2_gdb_index_functions): Update.
2275 * psymtab.c (find_symbol_file_from_partial): Remove.
2276 (psym_functions): Update.
2277 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2278 Remove.
2279
bf6d8a91
TT
22802013-08-07 Tom Tromey <tromey@redhat.com>
2281
2282 * symfile.c (set_initial_language): Look up "main" symbol
2283 and use its language.
2284 * symtab.c (find_main_filename): Remove.
2285 * symtab.h (find_main_filename): Remove.
2286
f9125b6c
TT
22872013-08-07 Tom Tromey <tromey@redhat.com>
2288
2289 * dwarf2read.c (recursively_compute_inclusions): Add
2290 "immediate_parent" argument. Set symtab's "user" field
2291 if not set.
2292 (compute_symtab_includes): Update.
2293
fdbb204b
TT
22942013-08-07 Tom Tromey <tromey@redhat.com>
2295
2296 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2297 when adding label symbols.
2298
49de1690
UW
22992013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2300 Ulrich Weigand <uweigand@de.ibm.com>
2301
2302 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2303 * configure.host (powerpc64-*-aix*): Likewise.
2304
b08ee99f
UW
23052013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2306 Ulrich Weigand <uweigand@de.ibm.com>
2307
2308 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2309 is defined.
2310 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2311 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2312 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2313 * configure.ac: Check for ptrace64.
2314 * configure, config.in: Regenerate.
2315
fecf803e
UW
23162013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2317 Ulrich Weigand <uweigand@de.ibm.com>
2318
2319 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2320 Call ptrace64 instead of ptrace if defined.
2321 Add macro addr_ptr to take care of ptrace address argument.
2322 (pdc_read_regs): Likewise.
2323 (pdc_write_regs): Likewise.
2324 (aix_thread_resume): Likewise.
2325 (fetch_regs_kernel_thread): Likewise.
2326 (store_regs_kernel_thread): Likewise.
2327
3bb5e4a8
AB
23282013-08-07 Anton Blanchard <anton@samba.org>
2329
2330 * MAINTAINERS: Add myself to Write After Approval.
2331
12070676
TT
23322013-08-05 Tom Tromey <tromey@redhat.com>
2333
2334 * aix-thread.c (_initialize_aix_thread): Use
2335 complete_target_initialization.
2336 * bsd-uthread.c (_initialize_bsd_uthread): Use
2337 complete_target_initialization.
2338 * dec-thread.c (_initialize_dec_thread): Use
2339 complete_target_initialization.
2340 * ravenscar-thread.c (_initialize_ravenscar): Use
2341 complete_target_initialization.
2342 * sol-thread.c (_initialize_sol_thread): Use
2343 complete_target_initialization.
2344 * spu-multiarch.c (_initialize_spu_multiarch): Use
2345 complete_target_initialization.
2346
7c7b6655
TT
23472013-08-05 Tom Tromey <tromey@redhat.com>
2348
2349 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2350 * ada-lang.c (ada_lookup_simple_minsym): Return
2351 bound_minimal_symbol.
2352 * ada-lang.h (ada_lookup_simple_minsym): Update.
2353 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2354 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2355 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2356 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2357 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2358 * minsyms.c (msymbol_objfile): Remove.
2359 (lookup_minimal_symbol_internal): New function, from
2360 lookup_minimal_symbol.
2361 (lookup_minimal_symbol): Rewrite using
2362 lookup_minimal_symbol_internal.
2363 (lookup_bound_minimal_symbol): New function.
2364 * minsyms.h (msymbol_objfile): Remove.
2365 (lookup_bound_minimal_symbol): Declare.
2366 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2367 * parse.c (write_exp_msymbol): Change parameter to a
2368 bound_minimal_symbol.
2369 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2370 * parser-defs.h (write_exp_msymbol): Update.
2371 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2372 * symfile.c (simple_read_overlay_table): Use
2373 lookup_bound_minimal_symbol.
2374 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2375 (search_symbols): Likewise.
2376 (print_msymbol_info): Take a bound_minimal_symbol argument.
2377 (symtab_symbol_info, rbreak_command): Update.
2378 * symtab.h (struct symbol_search) <msymbol>: Change type
2379 to bound_minimal_symbol.
2380 * valops.c (find_function_in_inferior): Use
2381 lookup_bound_minimal_symbol.
2382 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2383
934b9bac
JK
23842013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Code cleanup.
2387 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2388 to ...
2389 (async_cleanup_sigint_signal_handler): ... this.
2390 (initialize_sigint_signal_handler): Remove declaration.
2391 (handle_remote_sigint): Rename the declaration to ...
2392 (async_handle_remote_sigint): ... this.
2393 (handle_remote_sigint_twice): Rename the declaration to ...
2394 (async_handle_remote_sigint_twice): ... this.
2395 (async_remote_interrupt, async_remote_interrupt_twice)
2396 (remote_interrupt): Remove the declarations.
2397 (remote_interrupt_twice): Rename the declaration ...
2398 (sync_remote_interrupt_twice): ... this.
2399 (sigint_remote_twice_token): Rename the variable to ...
2400 (async_sigint_remote_twice_token): ... this.
2401 (sigint_remote_token): Rename the variable to ...
2402 (async_sigint_remote_token): ... this.
2403 (initialize_sigint_signal_handler): Rename the function to ...
2404 (async_initialize_sigint_signal_handler): ... this. Update the name
2405 inside.
2406 (handle_remote_sigint): Rename the function to ...
2407 (async_handle_remote_sigint): ... this. Update the names inside.
2408 (handle_remote_sigint_twice): Rename the function to ...
2409 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2410 (cleanup_sigint_signal_handler): Rename the function to ...
2411 (async_cleanup_sigint_signal_handler): ... this.
2412 (remote_interrupt): Rename the function to ...
2413 (sync_remote_interrupt): this. Update the names inside.
2414 (remote_interrupt_twice): Rename the function to ...
2415 (sync_remote_interrupt_twice): this. Update the names inside.
2416 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2417 (_initialize_remote): Update the names inside.
2418
3a1115a0
TT
24192013-08-02 Tom Tromey <tromey@redhat.com>
2420
2421 PR symtab/15719:
2422 * breakpoint.c (update_watchpoint, watchpoint_check)
2423 (watch_command_1): Update.
2424 * eval.c (fetch_subexp_value): Add "preserve_errors"
2425 parameter.
2426 * ppc-linux-nat.c (check_condition): Update.
2427 * value.h (fetch_subexp_value): Update.
2428
58b19776
AB
24292013-08-02 Andrew Burgess <aburgess@broadcom.com>
2430
2431 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2432 add_file_handler.
2433
ec94af83
DE
24342013-08-01 Doug Evans <dje@google.com>
2435
7ee85ab1
DE
2436 PR symtab/15691
2437 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2438 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2439 Add assert of sig_entry->dwo_unit == NULL.
2440 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2441 had already been read.
2442 (read_signatured_type): Set per_cu.tu_read.
2443
b846d303
DE
2444 PR symtab/15695
2445 * valops.c (value_struct_elt): Add missing call to check_typedef.
2446 (value_find_oload_method_list): Ditto.
2447
b52109bc
DE
2448 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2449 effectively, struct symbol_search **.
2450 (make_cleanup_free_search_symbols): Change arg to struct
2451 symbol_search **. All callers updated.
2452 (compare_search_syms): Compare symtab file name and block as well.
2453 (search_symbols_equal): New function.
2454 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2455 New args new_head, new_tail. Result is now void. Remove dups after
2456 sorting the symbols.
2457 (search_symbols): Sort all found symbols once, after all have been
2458 found, and remove duplicates. Simplify cleanup tracking of result.
2459 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2460
ec94af83
DE
2461 Further workarounds for binutils/15021.
2462 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2463 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2464 Watch for duplicate symtabs coming from type units.
2465 (compute_symtab_includes): Update call to
2466 recursively_compute_inclusions. Build vector of included symtabs
2467 instead of per_cus.
2468 * symtab.h (symtab_ptr): New typedef.
2469 (DEF_VEC_P (symtab_ptr)): New VEC type.
2470 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2471 instead.
2472
b2ae85cf
AB
24732013-08-01 Andrew Burgess <aburgess@broadcom.com>
2474
2475 * cli/cli-script.c (script_from_file): Remove use of
2476 error_pre_print.
2477 * main.c (captured_main): Remove use of error_pre_print and
2478 quit_pre_print.
2479 * utils.c (error_pre_print, quit_pre_print): Remove.
2480 * utils.h (error_pre_print, quit_pre_print): Likewise.
2481
645eab03
YQ
24822013-08-01 Yao Qi <yao@codesourcery.com>
2483
2484 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2485 with mi_getopt.
2486 (mi_cmd_stack_list_variables): Likewise.
2487
16f92dd4
AB
24882013-07-31 Andrew Burgess <aburgess@broadcom.com>
2489
2490 * exceptions.c (deprecated_throw_reason): Remove.
2491 * exceptions.h (deprecated_throw_reason): Remove.
2492
13f78033
AB
24932013-07-31 Andrew Burgess <aburgess@broadcom.com>
2494
2495 * remote-mips.c (mips_error): Replace use of
2496 deprecated_throw_reason with throw_verror. Use the error message
2497 passed to mips_error as the error message for throw_verror.
2498
039e3c22
AB
24992013-07-31 Andrew Burgess <aburgess@broadcom.com>
2500
2501 * monitor.c (monitor_interrupt_query): Replace use of
2502 deprecated_throw_reason with quit.
2503 * nto-procfs.c (interrupt_query): Likewise.
2504 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2505 * remote-mips.c (mips_kill): Likewise.
2506 * remote.c (interrupt_query): Likewise.
2507
8150913b
AB
25082013-07-31 Andrew Burgess <aburgess@broadcom.com>
2509
2510 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2511 with call to fatal.
2512
de74e63a
YQ
25132013-07-31 Pedro Alves <pedro@codesourcery.com>
2514 Yao Qi <yao@codesourcery.com>
2515
2516 * tracepoint.c (trace_dump_command): Select the current frame.
2517
247f5c4f
DE
25182013-07-30 Doug Evans <dje@google.com>
2519
2520 * dwarf2read.c (process_queue): Add type signature to debug output.
2521
11b4b7cc
AB
25222013-07-30 Andrew Burgess <aburgess@broadcom.com>
2523
2524 * value.c (value_fetch_lazy): Mark optimized out values as such
2525 rather than raising an error.
2526
b0c54aa5
AB
25272013-07-30 Andrew Burgess <aburgess@broadcom.com>
2528
2529 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2530 before checking which bits of the parent, not the child, value are
2531 valid.
2532
97c85fc6
MB
25332013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2534
2535 PR gdb/15715
2536 * top.c: Include "filenames.h".
2537 (set_history_filename): New function.
2538 (init_main): Install it as set hook of the "set history filename"
2539 command.
2540
ff39bb5e
SA
25412013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2542
2543 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2544 attribute parameter.
2545 (dwarf2_const_value_data): Constify struct attribute parameter.
2546 (dwarf2_const_value): Constify struct attribute parameter.
2547 (dwarf2_const_value_attr): Constify struct attribute parameter.
2548 (lookup_die_type): Constify struct attribute parameter.
2549 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2550 (follow_die_ref_or_sig): Constify struct attribute parameter.
2551 (follow_die_ref): Constify struct attribute parameter.
2552 (follow_die_sig): Constify struct attribute parameter.
2553 (get_DW_AT_signature_type): Constify struct attribute parameter.
2554 (get_type_unit_group): Constify struct attribute parameter.
2555 (fill_in_loclist_baton): Constify struct attribute parameter.
2556 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2557 (type_unit_group): Constify struct attribute parameter.
2558
6e5a29e1
SA
25592013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2560
2561 * dwarf2read.c (attr_form_is_block): Make argument const.
2562 (attr_form_is_section_offset): Make argument const.
2563 (attr_form_is_constant): Make argument const.
2564 (attr_form_is_ref): Make argument const.
2565
7771576e
SA
25662013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2567
2568 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2569 All uses updated.
2570 (attr_form_is_ref): Moved below attr_form_is_constant.
2571
a94e8645
DE
25722013-07-29 Doug Evans <dje@google.com>
2573
bb5291d0
DE
2574 * main.c (captured_command_loop): Tweak comment.
2575
b5419e49
DE
2576 * target.c (target_async_permitted_1): Fix comment.
2577
b2d23133
DE
2578 * symtab.c (iterate_over_some_symtabs): Add comment.
2579
a94e8645
DE
2580 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2581
7a60ad40
YQ
25822013-07-27 Yao Qi <yao@codesourcery.com>
2583
2584 * NEWS: Mention that GDBserver now supports hardware
2585 watchpoints on the MIPS GNU/Linux target.
2586
aaee2056
YQ
25872013-07-27 Yao Qi <yao@codesourcery.com>
2588
2589 * Makefile.in (HFILES_NO_SRCDIR): Add
2590 common/mips-linux-watch.h.
2591 (mips-linux-watch.o): New rule.
2592 * common/mips-linux-watch.c: New.
2593 * common/mips-linux-watch.h: New.
2594 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2595 * mips-linux-nat.c: Include mips-linux-watch.h.
2596 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2597 to common/mips-linux-watch.h.
2598 (MAX_DEBUG_REGISTER): Likewise.
2599 (enum pt_watch_style): Likewise.
2600 (struct mips32_watch_regs): Likewise.
2601 (struct mips64_watch_regs): Likewise.
2602 (struct pt_watch_regs): Likewise.
2603 (struct mips_watchpoint): Likewise.
2604 (mips_linux_watch_get_irw_mask): Move to
2605 common/mips-linux-watch.c.
2606 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2607 (mips_linux_watch_get_watchlo): Likewise.
2608 (mips_linux_watch_set_watchlo): Likewise.
2609 (mips_linux_watch_get_watchhi): Likewise.
2610 (mips_linux_watch_set_watchhi): Likewise.
2611 (mips_linux_read_watch_registers): Likewise.
2612 (mips_linux_watch_type_to_irw): Likewise.
2613 (mips_linux_stopped_data_address, fill_mask): Likewise.
2614 (mips_linux_watch_try_one_watch): Likewise.
2615 (mips_linux_watch_populate_regs): Likewise.
2616
b3436450
YQ
26172013-07-27 Yao Qi <yao@codesourcery.com>
2618
2619 * mips-linux-nat.c (get_irw_mask): Rename to ...
2620 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2621 'set' to 'n'. Update function comment. All callers changed.
2622 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2623 function comment. All callers changed.
2624 (get_num_valid): Rename to ...
2625 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2626 'set' to 'n'. Update function comment. All callers changed.
2627 (get_watchlo): Rename to ...
2628 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2629 'set' to 'n'. Update function comment. All callers changed.
2630 (set_watchlo): Rename to ...
2631 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2632 'set' to 'n'. Update function comment. All callers changed.
2633 (get_watchhi): Rename to ...
2634 (mips_linux_watch_get_watchhi): ... this. Update function
2635 comment. All callers changed.
2636 (set_watchhi): Rename to ...
2637 (mips_linux_watch_set_watchhi): ... this. Update function
2638 comment. All callers changed.
2639 (mips_linux_read_watch_registers): Update function comment.
2640 Add new parameters 'lwpid', 'watch_readback', and
2641 'watch_readback_valid'. Update.
2642 (type_to_irw): Rename to ...
2643 (mips_linux_watch_type_to_irw): ... this. Update function
2644 comment. All callers changed.
2645 (fill_mask): Update function comment.
2646 (try_one_watch): Rename to ...
2647 (mips_linux_watch_try_one_watch): ... this. Change the type
2648 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2649 (populate_regs_from_watches): Rename to ...
2650 (mips_linux_watch_populate_regs): ... this. Add parameter
2651 'current_watches'. All callers changed.
2652
9be14b81
YQ
26532013-07-27 Yao Qi <yao@codesourcery.com>
2654
2655 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2656 the code.
2657 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2658 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2659 (struct pt_watch_regs): Likewise.
2660 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2661 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2662 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2663 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2664 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2665
de6f69ad
YQ
26662013-07-27 Yao Qi <yao@codesourcery.com>
2667
2668 * breakpoint.h: Include break-common.h.
2669 (enum target_hw_bp_type): Move to ...
2670 * common/break-common.h: ... here. New.
2671
6f64ef53
PA
26722013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2673
2674 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2675 process group regardless of having tty on stdin.
2676
6107e809
DE
26772013-07-25 Doug Evans <dje@google.com>
2678
2679 * linux-fork.h (detach_fork): Delete.
2680
7fdc1521
TT
26812013-07-25 Tom Tromey <tromey@redhat.com>
2682
2683 PR remote/15256, PR remote/15266:
2684 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2685 * monitor.c (monitor_detach): Use unpush_target.
2686 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2687 * remote-mips.c (mips_detach): Use unpush_target. Don't
2688 call mips_close.
2689 * remote-sim.c (gdbsim_detach): Use unpush_target.
2690 * target.c (pop_target): Remove.
2691 (pop_all_targets_above): Don't call target_close.
2692 (target_close): Assert that the target is unpushed.
2693 * target.h (pop_target): Don't declare.
2694 * tracepoint.c (tfile_open): Use unpush_target.
2695
c22a2b88
TT
26962013-07-25 Tom Tromey <tromey@redhat.com>
2697
2698 * linux-thread-db.c (init_thread_db_ops): Call
2699 complete_target_initialization.
2700 (_initialize_thread_db): Don't call add_target.
2701 * target.c (complete_target_initialization): New function.
2702 (add_target_with_completer): Call it.
2703 * target.h (complete_target_initialization): Declare.
2704
cbb6aada
MK
27052013-07-25 Mark Kettenis <kettenis@gnu.org>
2706
2707 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2708 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2709 (HPPANBSD_SIZEOF_GREGS): New define.
2710 (hppaobsd_supply_gregset): Handle additional registers.
2711 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2712 we provide more registers now.
2713 (hppabsd_supply_gregset): Supply additional registers.
2714 (hppabsd_collect_gregset): Collect additional registers.
2715
17767988
MK
27162013-07-25 Mark Kettenis <kettenis@gnu.org>
2717
2718 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2719 (hppabsd_dwarf2_frame_init_reg): New function.
2720 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2721
fdc8aae8
AB
27222013-07-25 Andrew Burgess <aburgess@broadcom.com>
2723
2724 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2725 'z' format code. Remove error for optimized out values, standard
2726 code will handle these fine.
2727
6fbe845e
AB
27282013-07-25 Andrew Burgess <aburgess@broadcom.com>
2729
2730 * NEWS: Mention new 'z' formatter.
2731 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2732 (_initialize_printcmd): Mention 'z' formatter in help text of the
2733 'x' command.
2734
3373342d
MR
27352013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2736
2737 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2738 formatting.
2739
25f9533e
SDJ
27402013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2741
2742 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2743 interface can evaluate arguments. Fallback to the old mode if it
2744 cannot.
2745 (create_exception_master_breakpoint): Likewise.
2746 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2747 (struct sym_probe_fns elf_probe_fns): Export function above to the
2748 probe interface.
2749 * probe.c (can_evaluate_probe_arguments): New function.
2750 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2751 function pointer.
2752 (can_evaluate_probe_arguments): New function prototype.
2753 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2754 probe interface can evaluate arguments. Fallback to the old mode
2755 if it cannot.
2756 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2757 interface can evaluate arguments. Warning the user if it cannot.
2758 (stap_can_evaluate_probe_arguments): New function.
2759 (struct probe_ops stap_probe_ops): Export function above to the
2760 probe interface.
2761 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2762 New function pointer.
2763
3360c0bf
LM
27642013-07-24 Luis Machado <lgustavo@codesourcery.com>
2765
2766 * Makefile.in (SFILES): Add common/target-common.c.
2767 Add common/target-common.h to headers.
2768 (COMMON_OBS): Add target-common.o.
2769 (target-common.o): New target.
2770 * linux-nat.h (resume_kind): Move to common/target-common.h.
2771 * target.c (target_waitstatus_to_string): Move to
2772 common/target-common.c.
2773 * target.h: Include target-common.h.
2774 (target_waitkind): Move to common/target-common.h.
2775 (target_waitstatus): Likewise.
2776 (TARGET_WNOHANG): Likewise.
2777 * common/target-common.c: New file.
2778 * common/target-common.h: New file.
2779
6656a72d
DE
27802013-07-24 Doug Evans <dje@google.com>
2781
2782 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2783 a warning.
2784
6df81a63
YQ
27852013-07-23 Yao Qi <yao@codesourcery.com>
2786
2787 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2788 parameter 'gdbarch'.
2789 (i386_stack_tramp_frame_sniffer): Caller update.
2790 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2791 parameter 'gdbarch' and 'target'.
2792 (i386_linux_core_read_description): Caller update.
2793 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2794 Likewise.
2795 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2796 declaration.
2797
365156ad
TT
27982013-07-23 Tom Tromey <tromey@redhat.com>
2799
2800 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2801 2013-07-22.
2802
046ac79f
JK
28032013-07-22 Doug Evans <dje@google.com>
2804
2805 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2806 * exec.c (exec_close): Update call to remove_target_sections.
2807 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2808 * solib.c (update_solib_list): Ditto.
2809 (reload_shared_libraries_1): Ditto.
2810 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2811 * target.h (struct target_section): Rename key to owner.
2812 All uses updated.
046ac79f 2813
29b2cc46
TT
28142013-07-22 Tom Tromey <tromey@redhat.com>
2815
2816 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2817
d1160018
TT
28182013-07-22 Tom Tromey <tromey@redhat.com>
2819
2820 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2821 Simplify cleanup handling.
2822
2f324bf6
TT
28232013-07-22 Tom Tromey <tromey@redhat.com>
2824
2825 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2826 on all return paths.
2827
e23b9d6e
UW
28282013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2829
2830 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2831 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2832 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2833
1cf55f60
PM
28342013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2835
2836 * top.c (print_gdb_version): Add help, apropos description and
2837 url to online documentation.
2838
fa876972
HZ
28392013-07-19 Hui Zhu <hui@codesourcery.com>
2840
2841 PR gdb/15692
2842 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2843
1527aea8
YQ
28442013-07-19 Yao Qi <yao@codesourcery.com>
2845
2846 * target.c (update_current_target): Change the default action
2847 of 'to_traceframe_info' from tcomplain to return_zero.
2848 * target.h (struct target_ops) <to_traceframe_info>: Add more
2849 comments.
2850 * valops.c (read_value_memory): Call
2851 traceframe_available_memory unconditionally.
2852
886f230e
YQ
28532013-07-18 Yao Qi <yao@codesourcery.com>
2854
2855 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2856 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2857 symbol without prefix. If found, set its type to
2858 'mst_solib_trampoline'.
2859
16419bae
DE
28602013-07-17 Doug Evans <dje@google.com>
2861
e7045703
DE
2862 * NEWS: Mention "set print raw frame-arguments".
2863 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2864 * stack.c (print_raw_frame_arguments): New static global.
2865 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2866 (_initialize_stack): New command "set/show print raw frame-arguments".
2867 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2868 (set_print_raw, show_print_raw): New functions.
2869 (_initialize_valprint): New prefix command "set/show print raw".
2870 * valprint.h (value_print_options): Improve comments.
2871
453e48a5
DE
2872 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2873 of all *list variables.
2874
16419bae
DE
2875 * gdbcmd.h (togglelist): Delete.
2876 * cli/cli-cmds.c (togglelist): Delete.
2877 (init_cmd_lists): Update.
2878 * cli/cli-cmds.h (togglelist): Delete.
2879
626f2d1c
TT
28802013-07-17 Tom Tromey <tromey@redhat.com>
2881
2882 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2883 dwarf2_per_objfile.
2884
57e6060e
DE
28852013-07-16 Doug Evans <dje@google.com>
2886
2887 * nto-tdep.c (nto_relocate_section_addresses): Update,
2888 target_section.bfd deleted.
2889 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2890 * s390-tdep.c (s390_load): Ditto.
2891 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2892
5ea5559b
AB
28932013-07-16 Andrew Burgess <aburgess@broadcom.com>
2894
2895 * common/format.c (parse_format_string): Add checks for NULL
2896 character before calling strchr.
2897
2b2848e2
DE
28982013-07-16 Doug Evans <dje@google.com>
2899
2c571006
DE
2900 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2901 temp_pathname argument.
2902 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2903 when opening the file fails.
2904
2b2848e2
DE
2905 * target.h (struct target_section): Delete member bfd.
2906 All users updated to use the_bfd_section->owner instead.
2907 * exec.c (add_to_section_table): Assert bfd is expected value.
2908 Remove initialization of target_section.bfd.
2909 (remove_target_sections): Update.
2910 (section_table_available_memory): Update.
2911 (section_table_xfer_memory_partial): Update.
2912 (print_section_info): Update.
2913 (exec_set_section_address): Update.
2914 * record-full.c (record_full_core_xfer_partial): Update.
2915 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2916 * solib-target.c (solib_target_relocate_section_addresses): Update.
2917 * symfile.c (build_section_addr_info_from_section_table): Update.
2918 * target.c (memory_xfer_live_readonly_partial): Update.
2919 (memory_xfer_partial_1): Update.
2920
926bf92d
UW
29212013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2922
2923 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2924 now available for embedded (BookE) and server (BookS) processors,
2925 correct mentions of 'booke' and adjust comments accordingly in order to
2926 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2927 (have_ptrace_booke_interface): Rename function and variable
2928 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2929 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2930 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2931 'hwdebug_point_cmp'. Update all uses.
2932 (booke_find_thread_points_by_tid): Rename function
2933 'booke_find_thread_points_by_tid' to
2934 'hwdebug_find_thread_points_by_tid'. Update all uses.
2935 (booke_insert_point): Rename function 'booke_insert_point' to
2936 'hwdebug_insert_point'. Update all uses.
2937 (booke_remove_point): Rename function 'booke_remove_point' to
2938 'hwdebug_remove_point'. Update all uses.
2939
d929bc19
MR
29402013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2941
2942 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2943 numbers with enum values.
2944
054e8d9e
AA
29452013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2946
2947 PR threads/13217
2948 * thread.c (thread_apply_all_command): Check for valid threads
2949 and thread count.
2950 (thread_array_cleanup): New struct.
2951 (set_thread_refcount): New function.
2952
cf006359
AB
29532013-07-11 Andrew Burgess <aburgess@broadcom.com>
2954
2955 * infcmd.c (default_print_one_register_info): Reuse function
2956 print_hex_chars.
2957
94e36acc
TT
29582013-07-10 Tom Tromey <tromey@redhat.com>
2959
2960 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2961 (ada-exp.o): New target.
2962
915dd369
SDJ
29632013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2964
2965 * mt-tdep.c (mt_registers_info): Call
2966 get_no_prettyformat_print_options instead of
2967 get_raw_print_options (regression by last patch from Doug
2968 Evans).
2969
eca07816
JB
29702013-07-09 Pedro Alves <palves@redhat.com>
2971
2972 Checked in by Joel Brobecker <brobecker@adacore.com>.
2973 * ada-lang.c (coerce_unspec_val_to_type): Use
2974 value_optimized_out_const.
2975 * value.c (value_optimized_out_const): New function.
2976 * value.h (value_optimized_out_const): New declaration.
2977
2a998fc0
DE
29782013-07-09 Doug Evans <dje@google.com>
2979
2980 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2981 Enum values rename as well. All uses updated.
2982 * valprint.h (value_print_options): Rename member pretty to
2983 pretty format. Rename member prettyprint_arrays to
2984 prettyformat_arrays. Rename member prettyprint_structs to
2985 prettyformat_structs. All uses updated.
2986 (get_no_prettyformat_print_options): Renamed from
2987 get_raw_print_options.
2988 * valprint.c (get_no_prettyformat_print_options): Renamed from
2989 get_raw_print_options. All callers updated.
2990 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2991 All callers updated.
2992 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2993 All callers updated.
2994 (_initialize_valprint): Improve help text for "set print pretty" and
2995 "set print arrays".
2996
466c1fca
AB
29972013-07-09 Andrew Burgess <aburgess@broadcom.com>
2998
2999 * value.c (value_bits_valid): Revert previous change, and change
3000 by Pedro on 2013-07-04, due to regressions in
3001 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3002
ad0f0303
AB
30032013-07-08 Andrew Burgess <aburgess@broadcom.com>
3004 Pedro Alves <palves@redhat.com>
3005
3006 * value.c (value_bits_valid): If the value is not lval_computed
3007 or has no check validity handler then the answer is the
3008 optimized_out flag, otherwise defer to the handler.
3009
b187bec1
EZ
30102013-07-06 Eli Zaretskii <eliz@gnu.org>
3011
48d1d6f5
EZ
3012 * top.c (print_gdb_configuration): Explain in output of
3013 --configuration what does "relocatable" mean.
3014
b187bec1
EZ
3015 * main.c (print_gdb_help): Regroup options in the --help text.
3016 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3017 the relevant discussions.
3018
52d361e1
YQ
30192013-07-06 Yao Qi <yao@codesourcery.com>
3020
3021 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3022 Remove parameter 'lsal'.
3023 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3024 to inner block. Caller update.
3025 (base_breakpoint_create_breakpoints_sal): Update.
3026 (bkpt_create_breakpoints_sal): Likewise.
3027 (tracepoint_create_breakpoints_sal): Likewise.
3028 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3029 element 0 of vector 'canonical->sals'.
3030
e1ec1b42
LM
30312013-07-05 Luis Machado <lgustavo@codesourcery.com>
3032
3033 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3034 register number instead of the pseudo register one.
3035 (rs6000_dwarf2_reg_to_regnum): Likewise.
3036
7195e6f0
PA
30372013-07-04 Pedro Alves <palves@redhat.com>
3038
3039 * findvar.c (value_of_register): Use allocate_optimized_out_value
3040 if the register has been optimized out, instead of
3041 set_value_optimized_out.
3042 * frame-unwind.c (frame_unwind_got_optimized): Use
3043 allocate_optimized_out_value.
3044
58722cac
PA
30452013-07-04 Pedro Alves <palves@redhat.com>
3046
3047 * value.c (value_bits_valid): If the value is not lval_computed,
3048 or doesn't have a check_validity hook, assume the value is entirely
3049 valid.
3050
691a26f5
AB
30512013-07-04 Andrew Burgess <aburgess@broadcom.com>
3052
3053 * stack.c (read_frame_arg): No longer fetch lazy values.
3054 * value.c (value_optimized_out): If the value is not already
3055 marked optimized out, and is lazy then fetch it.
3056 (value_primitive_field): Move optimized out check to later in the
3057 function, after we have loaded any lazy values.
3058 (value_fetch_lazy): Use optimized out flag directly rather than
3059 calling optimized_out method.
3060
a58e2656
AB
30612013-07-04 Andrew Burgess <aburgess@broadcom.com>
3062
3063 * valops.c: Don't include "user-regs.h".
3064 (value_fetch_lazy): Moved to value.c.
3065 * value.c: Include "user-regs.h".
3066 (value_fetch_lazy): Moved from valops.c.
3067
bd885420
YQ
30682013-07-04 Yao Qi <yao@codesourcery.com>
3069
3070 Revert:
3071 2013-06-27 Yao Qi <yao@codesourcery.com>
3072
3073 * common/create-version.sh: Update comments. Handle the case
3074 that TARGET_ALIAS is empty.
3075
17ef446e
PA
30762013-07-03 Pedro Alves <palves@redhat.com>
3077
3078 * Makefile.in (config.status): Depend on development.sh.
3079 (aclocal_m4_deps): Add libmcheck.m4.
3080 * acinclude.m4: Include libmcheck.m4.
3081 * configure.ac: Source development.sh instead of setting
3082 'development' here. --enable-libmcheck/--disable-libmcheck code
3083 factored out to GDB_AC_LIBMCHECK. Run it.
3084 * development.sh: New file.
3085 * libmcheck.m4: New file.
3086 * configure: Regenerate.
3087
ac6dd50f
TT
30882013-07-02 Tom Tromey <tromey@redhat.com>
3089
3090 * contrib/ari/update-web-ari.sh: Update for version.in change.
3091
bd1df410
TT
30922013-07-02 Tom Tromey <tromey@redhat.com>
3093
3094 * common/ptid.h: Comment fixes.
3095
4db1a1dc
TT
30962013-07-01 Tom Tromey <tromey@redhat.com>
3097
3098 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3099 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3100 (dwarf2_read_index, create_all_comp_units): Update.
3101
dd9aa048
TT
31022013-07-01 Tom Tromey <tromey@redhat.com>
3103
3104 * configure.ac (build_warnings): Add -Wold-style-definition.
3105 * configure: Rebuild.
3106 * machoread.c (_initialize_machoread): Use "(void)".
3107 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3108 use "(void)".
3109
44d100c3
TT
31102013-07-01 Tom Tromey <tromey@redhat.com>
3111
3112 * configure.ac (build_warnings): Add -Wold-style-declaration.
3113 * configure: Rebuild.
3114 * dsrec.c (make_srec): Use "static const", not "const static".
3115 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3116 not "const static".
3117 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3118 Use "static const", not "const static".
3119 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3120 not "const static".
3121 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3122 not "const static".
3123 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3124 not "const static".
3125 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3126 not "const static".
3127 (v850_dbtrap_breakpoint_from_pc): Likewise.
3128 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3129 not "const static".
3130
2945b807
TT
31312013-07-01 Tom Tromey <tromey@redhat.com>
3132
3133 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3134 * configure: Rebuild.
3135
d8d2a3ee
PA
31362013-07-01 Pedro Alves <palves@redhat.com>
3137
3138 * defs.h: Include "pathmax.h".
3139 * utils.c: Don't include sys/param.h.
3140 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3141 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3142 instead of MAXPATHLEN.
3143 * solib-sunos.c: Don't include sys/param.h.
3144 * xcoffread.c: Don't include sys/param.h.
3145 * bsd-kvm.c: Don't include sys/param.h.
3146 * darwin-nat.c: Don't include sys/param.h.
3147 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3148 * darwin-nat-info.c: Don't include sys/param.h.
3149 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3150 MAXPATHLEN.
3151 * i386obsd-nat.c: Don't include sys/param.h.
3152 * inf-child.c: Don't include sys/param.h.
3153 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3154 * linux-fork.c: Don't include sys/param.h.
3155 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3156 * linux-nat.c: Don't include sys/param.h.
3157 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3158 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3159 * m68klinux-nat.c: Don't include sys/param.h.
3160 * nbsd-nat.c: Don't include sys/param.h.
3161 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3162 * ppc-linux-nat.c: Don't include sys/param.h.
3163 * rs6000-nat.c: Don't include sys/param.h.
3164 * spu-linux-nat.c. Don't include sys/param.h.
3165 * windows-nat.c: Don't include sys/param.h.
3166 * xtensa-linux-nat.c: Don't include sys/param.h.
3167 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3168
38ec2207
PA
31692013-07-01 Pedro Alves <palves@redhat.com>
3170
3171 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3172 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3173 * gnulib/aclocal.m4: Regenerate.
3174 * gnulib/config.in: Regenerate.
3175 * gnulib/configure: Regenerate.
3176 * gnulib/import/pathmax.h: New file.
3177 * gnulib/import/Makefile.am: Regenerate.
3178 * gnulib/import/Makefile.in: Regenerate.
3179 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3180 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3181 * gnulib/import/m4/pathmax.m4: New file.
3182
e655c1a2
PA
31832013-07-01 Pedro Alves <palves@redhat.com>
3184
3185 * configure.ac (GDBINIT): Define, depending on host.
3186 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3187 * top.c (PATH_MAX): Delete fallback definition.
3188 (GDBINIT_FILENAME): Delete.
3189 (gdbinit): Reimplement as const char array set to the GDBINIT
3190 string constant.
3191 * top.h (gdbinit): Make const.
3192 * configure, config.in: Regenerate.
3193
50dd9793
PA
31942013-07-01 Pedro Alves <palves@redhat.com>
3195
3196 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3197 * cli/cli-cmds.h (source_script): Likewise.
3198 * exceptions.c (catch_command_errors_const): New function.
3199 * exceptions.h (catch_command_errors_const): Declare.
3200 * main.c (get_init_files): Make parameters const, and adjust.
3201 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3202 'local_gdbinit' locals const. Adjust to use
3203 catch_command_errors_const.
3204 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3205 'local_gdbinit' locals const.
3206
bc7dea8d
PA
32072013-07-01 Pedro Alves <palves@redhat.com>
3208
3209 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3210 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3211 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3212 <unistd.h>.
3213
8839a007
PA
32142013-07-01 Pedro Alves <palves@redhat.com>
3215
3216 Import the "unistd" gnulib module.
3217 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3218 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3219 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3220 import/m4/unistd_h.m4.
3221 * gnulib/aclocal.m4: Renenerate.
3222 * gnulib/config.in: Renenerate.
3223 * gnulib/configure: Renenerate.
3224 * gnulib/import/Makefile.am: Renenerate.
3225 * gnulib/import/Makefile.in: Renenerate.
3226 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3227 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3228 * gnulib/import/m4/off_t.m4: New file.
3229 * gnulib/import/m4/ssize_t.m4: New file.
3230 * gnulib/import/m4/sys_types_h.m4: New file.
3231 * gnulib/import/m4/unistd_h.m4: New file.
3232 * gnulib/import/sys_types.in.h: New file.
3233 * gnulib/import/unistd.c: New file.
3234 * gnulib/import/unistd.in.h: New file.
3235
8c0da261
PA
32362013-07-01 Pedro Alves <palves@redhat.com>
3237
3238 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3239 defined instead of checking HAVE_UNISTD_H.
3240
3574124b
PA
32412013-07-01 Pedro Alves <palves@redhat.com>
3242
3243 Reimport gnulib from scratch.
3244 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3245 import/m4/onceonly.m4.
3246 * gnulib/aclocal.m4: Renegerate.
3247 * gnulib/config.in: Renegerate.
3248 * gnulib/configure: Renegerate.
3249 * gnulib/import/Makefile.in: Renegerate.
3250 * gnulib/import/extra/update-copyright: Renegerate.
3251 * gnulib/import/m4/onceonly.m4: Delete.
3252
702dc4fd
PA
32532013-07-01 Pedro Alves <palves@redhat.com>
3254
3255 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3256
47e1ce27
JK
32572013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3258
3259 Code cleanup.
3260 * remote.c (async_remote_interrupt_twice): Make it static.
3261 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3262
e82839d4
SDJ
32632013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3264
3265 * ia64-linux-tdep.c: Include <ctype.h>.
3266 (ia64_linux_stap_is_single_operand): New function.
3267 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3268
d6c2da54
TT
32692013-06-28 Tom Tromey <tromey@redhat.com>
3270
3271 * Makefile.in (version.c): Use version.in, not
3272 common/version.in.
3273 * common/create-version.sh: Likewise.
3274 * common/version.in: Move...
3275 * version.in: ...here.
3276
74da6f00
PA
32772013-06-28 Pedro Alves <palves@redhat.com>
3278
3279 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3280 here.
3281 * utils.h (pagination_enabled): Declare.
3282
d32dc48e
PA
32832013-06-28 Pedro Alves <palves@redhat.com>
3284
3285 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3286 Move higher up in file.
3287
0edd9e3b
TT
32882013-06-28 Tom Tromey <tromey@redhat.com>
3289
3290 * tracepoint.c (deprecated_readline_begin_hook)
3291 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3292 declare.
3293
4eb59108
PA
32942013-06-28 Pedro Alves <palves@redhat.com>
3295
3296 PR tui/14880
3297 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3298 checking if they're available.
3299 * value.c (value_available_contents_eq): Change comment.
3300 * value.h (value_available_contents_eq): Expand comment.
3301
97b17156
TT
33022013-06-27 Tom Tromey <tromey@redhat.com>
3303
3304 * target.c (find_run_target): Remove.
3305 * target.h (find_run_target): Remove.
3306
6a3bfc5c
TT
33072013-06-27 Tom Tromey <tromey@redhat.com>
3308
3309 * corelow.c (core_gdbarch): Now static.
3310
c9ef825d
TT
33112013-06-27 Tom Tromey <tromey@redhat.com>
3312
3313 * target.c (target_struct_index): Remove.
3314
e5823f1c
PA
33152013-06-27 Pedro Alves <palves@redhat.com>
3316
3317 * infrun.c: Remove comment describing the 'stepping over runtime
3318 loader dynamic symbol resolution code' mechanism; moved to
3319 gdbint.texinfo.
3320
97f8dd09
PA
33212013-06-27 Pedro Alves <palves@redhat.com>
3322
3323 * exceptions.c (catch_command_errors): Remove spurious space.
3324 * exceptions.h (catch_command_errors): Second parameter is "arg",
3325 not "command".
3326
02b1871e
YQ
33272013-06-27 Yao Qi <yao@codesourcery.com>
3328
3329 * common/create-version.sh: Update comments. Handle the case
3330 that TARGET_ALIAS is empty.
3331
bb1b1cf1
PA
33322013-06-26 Pedro Alves <palves@redhat.com>
3333
3334 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3335 comment.
3336
7b624e71
PA
33372013-06-26 Pedro Alves <palves@redhat.com>
3338
3339 * infrun.c: Update comments on stepping over runtime loader
3340 dynamic symbol resolution code.
3341
74e5a346
SDJ
33422013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3343
3344 * ax-gdb.h (union exp_element): Forward declare.
3345 * parser-defs.h: Include expression.h.
3346
a2fb2cee
MR
33472013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3348
3349 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3350
cdba14e0
DK
33512013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3352
3353 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3354
f30aa5af
DK
33552013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3356
3357 Fix trace-status to output proper start-time and stop-time.
3358 * tracepoint.c (trace_status_command): Fix type of printf arg to
3359 prevent improper type conversion.
3360 (trace_status_mi): Likewise.
3361
1aee363c
MR
33622013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3363
3364 * mips-tdep.c (mips_next_pc): Fix a typo.
3365
3356937a
MR
33662013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3367
3368 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3369
dc673c81
YQ
33702013-06-26 Pedro Alves <pedro@codesourcery.com>
3371 Yao Qi <yao@codesourcery.com>
3372
3373 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3374 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3375 * mi/mi-main.c (print_variable_or_computed): New function.
3376 (mi_cmd_trace_frame_collected): New function.
3377 * tracepoint.c (find_trace_state_variable_by_number): New.
3378 (struct traceframe_info): Move to tracepoint.h
3379 (struct collection_list): Likewise.
3380 (do_collect_symbol): Include locals and arguments in the
3381 collected variables list.
3382 (clear_collection_list): Clear wholly collected variables list
3383 and computed variables list.
3384 (append_exp): New function.
3385 (encode_actions_1): Include variables in the wholly
3386 collected variables list. Include memory ranges and
3387 full-fledged expressions in the computed expressions list.
3388 (encode_actions): Move some code to ...
3389 Return the cleanup chain.
3390 (encode_actions_rsp): ... here. New function.
3391 (get_traceframe_location, get_traceframe_info): Remove static.
3392 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3393 (struct collection_list): Moved from tracepoint.c. Add two
3394 new fields 'wholly_collected' and 'computed'.
3395 (find_trace_state_variable_by_number): Declare.
3396 (encode_actions): Adjust declaration.
3397 (encode_actions_rsp): Declare.
3398 (get_traceframe_info, get_traceframe_location): Declare.
3399
3400 * NEWS: Mention new MI command -trace-frame-collected.
3401
28a93511
YQ
34022013-06-26 Pedro Alves <pedro@codesourcery.com>
3403 Yao Qi <yao@codesourcery.com>
3404
3405 * ctf.c (ctf_traceframe_info): Push trace state variables
3406 present in the trace data into the traceframe info object.
3407 * breakpoint.c (DEF_VEC_I): Remove.
3408 * common/filestuff.c (DEF_VEC_I): Likewise.
3409 * dwarf2loc.c (DEF_VEC_I): Likewise.
3410 * mi/mi-main.c (DEF_VEC_I): Likewise.
3411 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3412 * features/traceframe-info.dtd: Add tvar element and its
3413 attributes.
3414 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3415 (build_traceframe_info): Push trace state variables present in
3416 the trace data into the traceframe info object.
3417 (traceframe_info_start_tvar): New function.
3418 (tvar_attributes): New.
3419 (traceframe_info_children): Add "tvar" element.
3420 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3421
3422 * NEWS: Mention the change in GDB and GDBserver.
3423
ddacd3c8
YQ
34242013-06-26 Pedro Alves <pedro@codesourcery.com>
3425 Yao Qi <yao@codesourcery.com>
3426
3427 * tracepoint.c (trace_dump_command): Move code to ...
3428 (get_traceframe_location): ... here. New.
3429
05796b35
YQ
34302013-06-26 Pedro Alves <pedro@codesourcery.com>
3431 Yao Qi <yao@codesourcery.com>
3432
3433 * tracepoint.c (trace_dump_command): GDB emits an error
3434 instead of a warning when a traceframe is not selected.
3435
cbfa3b61
YQ
34362013-06-26 Pedro Alves <pedro@codesourcery.com>
3437 Yao Qi <yao@codesourcery.com>
3438
3439 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3440 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3441 in collection_list.
3442 (do_clear_collection_list, init_collection_list): New.
3443 (encode_actions): Add local variables 'tracepoint_list' and
3444 'stepping_list'. Call init_collection_list and make cleanup
3445 which calls do_clear_collection_list. Don't call
3446 clear_collection_list.
3447 (_initialize_tracepoint): Delete references to
3448 'tracepoint_list' and 'stepping_list'.
3449
6e2048d3
TT
34502013-06-25 Tom Tromey <tromey@redhat.com>
3451
3452 * common/create-version.sh (date): Use "$", not "$$" in sed
3453 expression.
3454
42059f0e
KB
34552013-06-25 Kevin Buettner <kevinb@redhat.com>
3456
3457 * NEWS (New targets): Add entry for TI MSP430.
3458
a0743c90
YQ
34592013-06-25 Yao Qi <yao@codesourcery.com>
3460
3461 * remote.c (remote_start_remote): Move code to upload tsv
3462 earlier.
3463
9d6e6e84
HZ
34642013-06-25 Yao Qi <yao@codesourcery.com>
3465 Hui Zhu <hui@codesourcery.com>
3466 Pedro Alves <palves@redhat.com>
3467
3468 PR breakpoints/15075
3469 PR breakpoints/15434
3470 * breakpoint.c (bpstat_stop_status): Call
3471 b->ops->after_condition_true.
3472 (update_dprintf_command_list): Don't append "continue" command
3473 to the command list of dprintf breakpoint.
3474 (base_breakpoint_after_condition_true): New function.
3475 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3476 (dprintf_after_condition_true): New function.
3477 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3478 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3479
586cf749
KB
34802013-06-24 Kevin Buettner <kevinb@redhat.com>
3481
3482 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3483 (ALLDEPFILES): Add msp430-tdep.c.
3484 * configure.tgt (msp430*-*-elf): New target.
3485 * msp430-tdep.c: New file.
3486
1bbce132
MR
34872013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3488
3489 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3490 microMIPS synthetic symbols.
3491
3e5d3a5a
MR
34922013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3493
3494 * objfiles.h (pc_in_section): New prototype.
3495 (in_plt_section): Remove name argument, replace prototype with
3496 static inline function.
3497 * mips-tdep.h: Include "objfiles.h".
3498 (in_mips_stubs_section): New function.
3499 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3500 in_solib_call_trampoline member.
3501 (hppa_in_solib_call_trampoline): Remove name argument.
3502 * objfiles.c (pc_in_section): New function.
3503 (in_plt_section): Remove function.
3504 * mips-linux-tdep.c: Include "objfiles.h".
3505 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3506 name argument. Return 1 rather than the low 16-bit halfword of
3507 any instruction examined.
3508 (mips_linux_in_dynsym_resolve_code): Update
3509 mips_linux_in_dynsym_stub call accordingly.
3510 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3511 rather than an equivalent hand-coded sequence.
3512 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3513 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3514 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3515 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3516 in_opd_section.
3517 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3518 on call to tdep->in_solib_call_trampoline.
3519 (hppa_in_solib_call_trampoline): Remove name argument, update
3520 according to in_plt_section change.
3521 (hppa_skip_trampoline_code): Update according to in_plt_section
3522 change.
3523 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3524 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3525 Likewise.
3526 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3527 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3528 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3529 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3530 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3531 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3532 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3533 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3534 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3535 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3536 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3537 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3538 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3539
b9b26a16
JB
35402013-06-24 Joel Brobecker <brobecker@adacore.com>
3541
3542 * common/create-version.sh: Fix expansion of $host_alias
3543 and $target_alias in generation of HOST_NAME and TARGET_NAME
3544 (resp.).
3545
01208463
TT
35462013-06-24 Tom Tromey <tromey@redhat.com>
3547
3548 * common/create-version.sh: New file.
3549 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3550 create-version.sh.
3551 (HFILES_NO_SRCDIR): Use common/version.h.
3552 * version.in: Move to ...
3553 * common/version.in: ... here. Replace date with "DATE".
3554 * version.h: Move to ...
3555 * common/version.h: ... here.
3556
bb6b9a5e
JB
35572013-06-21 Joel Brobecker <brobecker@adacore.com>
3558
3559 * gdb/gnulib/Makefile.in: Update date in copyright header.
3560 * gdb/gnulib/configure.ac: Ditto.
3561 * gdb/gnulib/update-gnulib.sh: Ditto.
3562
c3b18ee7
JB
35632013-06-21 Joel Brobecker <brobecker@adacore.com>
3564
3565 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3566 "gdb/gnulib/import".
3567
85d3b769
WN
35682013-06-21 Will Newton <will.newton@linaro.org>
3569
3570 * doublest.c (ldfrexp): Remove function.
3571 (convert_doublest_to_floatformat): Call frexpl instead of
3572 ldfrexp.
3573
88b48903
WN
35742013-06-21 Will Newton <will.newton@linaro.org>
3575
3576 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3577 * gnulib/aclocal.m4: Regenerate.
3578 * gnulib/config.in: Regenerate.
3579 * gnulib/configure: Regenerate.
3580 * gnulib/import/Makefile.am: Update.
3581 * gnulib/import/Makefile.in: Update.
3582 * gnulib/import/m4/gnulib-cache.m4: Update.
3583 * gnulib/import/m4/gnulib-comp.m4: Update.
3584 * gnulib/import/float+.h: Import.
3585 * gnulib/import/float.c: Import.
3586 * gnulib/import/float.in.h: Import.
3587 * gnulib/import/fpucw.h: Import.
3588 * gnulib/import/frexp.c: Import.
3589 * gnulib/import/frexpl.c: Import.
3590 * gnulib/import/isnan.c: Import.
3591 * gnulib/import/isnand-nolibm.h: Import.
3592 * gnulib/import/isnand.c: Import.
3593 * gnulib/import/isnanl-nolibm.h: Import.
3594 * gnulib/import/isnanl.c: Import.
3595 * gnulib/import/itold.c: Import.
3596 * gnulib/import/m4/exponentd.m4: Import.
3597 * gnulib/import/m4/exponentl.m4: Import.
3598 * gnulib/import/m4/float_h.m4: Import.
3599 * gnulib/import/m4/fpieee.m4: Import.
3600 * gnulib/import/m4/frexp.m4: Import.
3601 * gnulib/import/m4/frexpl.m4: Import.
3602 * gnulib/import/m4/isnand.m4: Import.
3603 * gnulib/import/m4/isnanl.m4: Import.
3604 * gnulib/import/m4/math_h.m4: Import.
3605 * gnulib/import/math.c: Import.
3606 * gnulib/import/math.in.h: Import.
3607
4353c9e6
JK
36082013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3611 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3612 signature_INTEL_edx comparisons.
3613
e3e06db3
DE
36142013-06-20 Doug Evans <dje@google.com>
3615
6ac97d4c
DE
3616 symtab/15652
3617 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3618 All callers updated.
3619 (open_dwp_file): If we can't find the dwp file, search the basename
3620 in debug-file-directory.
3621
93417882
DE
3622 * dwarf2read.c (struct dwp_file): Fix comment.
3623 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3624
e3e06db3
DE
3625 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3626 better.
3627
0878d0fa
YQ
36282013-06-20 Yao Qi <yao@codesourcery.com>
3629
3630 * breakpoint.c (create_breakpoint): Fix code indentation.
3631
023fa29b
YQ
36322013-06-20 Yao Qi <yao@codesourcery.com>
3633
3634 * breakpoint.c (create_breakpoints_sal_default): Remove
3635 parameter 'lsal'. Update declaration.
3636 (bkpt_create_breakpoints_sal): Caller update.
3637 (tracepoint_create_breakpoints_sal): Likewise.
3638
c898adb7
YQ
36392013-06-20 Pedro Alves <pedro@codesourcery.com>
3640 Yao Qi <yao@codesourcery.com>
3641
3642 * NEWS: Mention the new option '--skip-unavailable' of command
3643 -data-list-register-values.
3644 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3645 --skip-unavailable option. Adjust to use output_register.
3646 (output_register): Add new 'skip_unavailable' parameter.
3647 Handle it.
3648
4d157a3d
MF
36492013-06-19 Mike Frysinger <vapier@gentoo.org>
3650
3651 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3652 common/i386-gcc-cpuid.h.
3653 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3654 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3655 Copy the latest version from upstream gcc.
3656 * common/linux-btrace.c: Include i386-cpuid.h.
3657 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3658 call to i386_cpuid.
3659 (cpu_supports_btrace): Likewise.
3660 * go32-nat.c: Include i386-cpuid.h.
3661 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3662
1ce4db08
DE
36632013-06-19 Doug Evans <dje@google.com>
3664
3665 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3666 (get_section_index): Ditto.
3667
0e4777df
TT
36682013-06-19 Tom Tromey <tromey@redhat.com>
3669
3670 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3671 "dprintf" help.
3672
3190f0c6
DE
36732013-06-18 Doug Evans <dje@google.com>
3674
3675 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3676 before using it.
3677 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3678 Move test of cu_index closer to use. Print complaint if cu_index
3679 is bad.
3680
8b89a20a
JB
36812013-06-18 Joel Brobecker <brobecker@adacore.com>
3682
3683 * machoread.c (oso_vector): Delete this global.
3684 (macho_register_oso): Add new parameter "oso_vector_ptr".
3685 Use it instead of the "oso_vector" global.
3686 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3687 (macho_symfile_read): Use a local oso_vector, to be free'ed
3688 at the end of this function, in place of the old "oso_vector"
3689 global. Update various function calls accordingly. Use one
3690 single cleanup chain for the entire function.
3691
59b0c7c1
JB
36922013-06-18 Joel Brobecker <brobecker@adacore.com>
3693
937c708c 3694 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3695 DWARF2_PER_OBJFILE by uses of DATA instead.
3696
427cd150
TT
36972013-06-18 Tom Tromey <tromey@redhat.com>
3698
3699 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3700 argument.
3701 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3702 Special case signals other than GDB_SIGNAL_TRAP.
3703 (explains_signal_watchpoint): New function.
3704 (base_breakpoint_explains_signal): Add 'sig' argument.
3705 (initialize_breakpoint_ops): Set 'explains_signal' method for
3706 watchpoints.
3707 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3708 signal argument.
3709 (bpstat_explains_signal): Likewise.
3710 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3711
2d57700b
TT
37122013-06-18 Tom Tromey <tromey@redhat.com>
3713
3714 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3715
ac475191
TT
37162013-06-18 Tom Tromey <tromey@redhat.com>
3717
3718 * python/python.c (finish_python_initialization): Decref
3719 'pythondir' on failure path as well.
3720
5bd1ef56
TT
37212013-06-18 Tom Tromey <tromey@redhat.com>
3722
3723 PR symtab/15391:
3724 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3725 after taking bits_to_skip into account. Sign extend byte_offset.
3726 * utils.h (gdb_sign_extend): Declare.
3727 * utils.c (gdb_sign_extend): New function.
3728
92fac807
JK
37292013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3730
3731 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3732
2d503272
PM
37332013-06-17 Pierre Muller <muller@sourceware.org>
3734
3735 * corelow.c (core_open): Print GDB signal name instead of target
3736 signal number.
3737
6916fd98
MF
37382013-06-17 Mike Frysinger <vapier@gentoo.org>
3739
3740 * .gitignore: Add /gcore.
3741
9c02c129
DE
37422013-06-13 Doug Evans <dje@google.com>
3743
3744 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3745 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3746
d0548fa2
PM
37472013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3748
3749 * stack.c (backtrace_command_1): Fix indentation.
3750
22128028
JB
37512013-06-11 Joel Brobecker <brobecker@adacore.com>
3752
3753 * window-nat.c (thread_rec): Add missing empty line after
3754 local variable declaration.
3755
2ed3e009
JB
37562013-06-11 Joel Brobecker <brobecker@adacore.com>
3757
3758 * windows-nat.c (thread_rec): Revert format used to print
3759 error code returned by SuspendThread from %d back to %u.
3760
0c3d84be
JB
37612013-06-11 Joel Brobecker <brobecker@adacore.com>
3762
3763 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3764 ID in debug trace.
3765 (get_windows_debug_event): Likewise, for all debug traces.
3766
80e88e1a
JB
37672013-06-11 Joel Brobecker <brobecker@adacore.com>
3768
3769 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3770 warning message.
3771
1edebdbf
YQ
37722013-06-08 Pedro Alves <pedro@codesourcery.com>
3773 Yao Qi <yao@codesourcery.com>
3774
3775 * mi/mi-main.c (get_register): Remove declaration.
3776 (output_register): Declare.
3777 (mi_cmd_data_list_register_values): Remove local variable
3778 'tuple_cleanup'. Move some code into output_register.
3779 (get_register): Renamed to ...
3780 (output_register): ... this. Output the register's
3781 "number" ui_out tuple here.
3782
47d48711
PA
37832013-06-07 Pedro Alves <palves@redhat.com>
3784
3785 * darwin-nat.c: Fix formating in copyright header.
3786 * darwin-nat.h: Likewise.
3787 * gnu-nat.c: Likewise.
3788 * machoread.c: Likewise.
3789
3aee8918
PA
37902013-06-07 Pedro Alves <palves@redhat.com>
3791
5f2b57b5 3792 PR server/14823
3aee8918
PA
3793 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3794 static. Output a global target description pointer.
3795 (init_registers_${name}): Adjust to initialize a
3796 target description structure.
3797
fe8400b4
WN
37982013-06-07 Will Newton <will.newton@linaro.org>
3799
3800 * printcmd.c (build_address_symbolic): Call
3801 gdbarch_addr_bits_remove for text minimal symbols.
3802
20df6206
WN
38032013-06-07 Will Newton <will.newton@linaro.org>
3804
3805 * MAINTAINERS: Add myself to Write After Approval.
3806
aef525cb
YQ
38072013-06-07 Yao Qi <yao@codesourcery.com>
3808
3809 * tracepoint.c (start_tracing): Move code to ...
3810 (trace_reset_local_state): ... here. New.
3811 (disconnect_tracing): Don't call set_current_traceframe,
3812 set_tracepoint_num, and set_traceframe_context. Call
3813 trace_reset_local_state instead.
3814 (tfile_close): Call trace_reset_local_state.
3815 * ctf.c (ctf_close): Likewise.
3816 * remote.c (remote_close): Likewise.
3817 * tracepoint.h (trace_reset_local_state): Declare.
3818
d2415c6c
DE
38192013-06-06 Doug Evans <dje@google.com>
3820
3821 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3822 and fix header docs.
3823
69fc87c2
DE
38242013-06-05 Doug Evans <dje@google.com>
3825 Keith Seitz <keiths@redhat.com>
3826
3827 PR 15519
3828 * cp-namespace.c (find_symbol_in_baseclass): Call
3829 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3830 Check result of call to lookup_symbol_static.
3831 Call lookup_static_symbol_aux unconditionally.
3832 Call check_typedef on base types before accessing them.
3833 (cp_lookup_nested_symbol): Fix comment.
3834
a513d1e8
LM
38352013-06-05 Luis Machado <lgustavo@codesourcery.com>
3836
3837 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3838 minimal symbols pointing to function descriptors.
3839
351a6f02
TT
38402013-06-05 Tom Tromey <tromey@redhat.com>
3841
3842 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3843
5e1b953b 38442013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3845 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3846
3847 * remote.c (remote_wait_as): Restore signal handler before returning
3848 when GDB gets a notification.
3849
f9e14852
GB
38502013-06-04 Gary Benson <gbenson@redhat.com>
3851
8445cbf1 3852 PR 2328
f9e14852
GB
3853 * breakpoint.h (handle_solib_event): Moved function declaration
3854 to solib.h.
3855 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3856 (bpstat_stop_status): Pass new argument to handle_solib_event.
3857 * solib.h (update_solib_breakpoints): New function declaration.
3858 (handle_solib_event): Moved function declaration from
3859 breakpoint.h.
3860 * solib.c (update_solib_breakpoints): New function.
3861 (handle_solib_event): Moved function from breakpoint.c.
3862 Updated to call solib_ops->handle_event if not NULL.
3863 * solist.h (target_so_ops): New fields "update_breakpoints" and
3864 "handle_event".
3865 * infrun.c (set_stop_on_solib_events): New function.
3866 (_initialize_infrun): Use the above for "set
3867 stop-on-solib-events".
3868 (handle_inferior_event): Pass new argument to handle_solib_event.
3869 * solib-svr4.c (probe.h): New include.
3870 (svr4_free_library_list): New forward declaration.
3871 (probe_action): New enum.
3872 (probe_info): New struct.
3873 (probe_info): New static variable.
3874 (NUM_PROBES): New definition.
3875 (svr4_info): New fields "using_xfer", "probes_table" and
3876 "solib_list".
3877 (free_probes_table): New function.
3878 (free_solib_list): New function.
3879 (svr4_pspace_data_cleanup): Free probes table and solib list.
3880 (svr4_copy_library_list): New function.
3881 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3882 (svr4_read_so_list): New parameter "prev_lm".
3883 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3884 (svr4_current_sos): New function.
3885 (probe_and_action): New struct.
3886 (hash_probe_and_action): New function.
3887 (equal_probe_and_action): Likewise.
3888 (register_solib_event_probe): Likewise.
3889 (solib_event_probe_at): Likewise.
3890 (solib_event_probe_action): Likewise.
3891 (solist_update_full): Likewise.
3892 (solist_update_incremental): Likewise.
3893 (disable_probes_interface_cleanup): Likewise.
3894 (svr4_handle_solib_event): Likewise.
3895 (svr4_update_solib_event_breakpoint): Likewise.
3896 (svr4_update_solib_event_breakpoints): Likewise.
3897 (svr4_create_solib_event_breakpoints): Likewise.
3898 (enable_break): Free probes table before creating breakpoints.
3899 Use svr4_create_solib_event_breakpoints to create breakpoints.
3900 (svr4_solib_create_inferior_hook): Free the solib list.
3901 (_initialize_svr4_solib): Initialise
3902 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3903
ced63ec0
GB
39042013-06-04 Gary Benson <gbenson@redhat.com>
3905
3906 * target.h (target_ops): New field
3907 "to_augmented_libraries_svr4_read".
3908 (target_augmented_libraries_svr4_read): New macro.
3909 * target.c (update_current_target): Handle
3910 to_augmented_libraries_svr4_read.
3911 * remote.c (remote_state): New field
3912 "augmented_libraries_svr4_read".
3913 (remote_augmented_libraries_svr4_read_feature): New function.
3914 (remote_protocol_features): Add entry for
3915 "augmented-libraries-svr4-read".
3916 (remote_augmented_libraries_svr4_read): New function.
3917 (init_remote_ops): Initialize
3918 remote_ops.to_augmented_libraries_svr4_read.
3919
7f91dbec
GB
39202013-06-04 Gary Benson <gbenson@redhat.com>
3921
3922 * NEWS: Update.
3923
607ece04
GB
39242013-06-04 Gary Benson <gbenson@redhat.com>
3925
3926 * objfiles.h (inhibit_section_map_updates): New function
3927 declaration.
3928 (resume_section_map_updates): Likewise.
3929 (resume_section_map_updates_cleanup): Likewise.
3930 * objfiles.c (objfile_pspace_info): Removed field
3931 "objfiles_changed_p". New fields "new_objfiles_available",
3932 "section_map_dirty" and "inhibit_updates".
3933 (allocate_objfile): Set new_objfiles_available.
3934 (free_objfile): Set section_map_dirty.
3935 (objfile_relocate1): Likewise.
3936 (in_plt_section): Likewise.
3937 (find_pc_section): Update the conditions under which the
3938 section map will be updated.
3939 (inhibit_section_map_updates): New function.
3940 (resume_section_map_updates): Likewise.
3941 (resume_section_map_updates_cleanup): Likewise.
3942
9ee6a5ac
GB
39432013-06-04 Gary Benson <gbenson@redhat.com>
3944
3945 * probe.h (get_probe_argument_count): New declaration.
3946 (evaluate_probe_argument): Likewise.
3947 * probe.c (get_probe_argument_count): New function.
3948 (evaluate_probe_argument): Likewise.
3949 (probe_safe_evaluate_at_pc): Use the above new functions.
3950
845d4708
AM
39512013-06-04 Alan Modra <amodra@gmail.com>
3952
3953 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3954 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3955 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3956 target mem reads on optional insns.
3957 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3958 ppc_insns_match_pattern calls.
3959 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3960 Add match for power7 thread safety insns, and new order of
3961 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3962 invocation in comment, and update rest of comment.
3963 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3964 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3965 (ppc64_standard_linkage2_target): Update insn offsets.
3966 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3967 stubs first. Update calls.
3968
404e278f
YQ
39692013-06-04 Yao Qi <yao@codesourcery.com>
3970
3971 * solib.c (solib_find): Don't need dir separator if path has
3972 drive spec.
3973
f6aea118
JB
39742013-06-03 Joel Brobecker <brobecker@adacore.com>
3975
3976 Revert (indirectly causes a SIGSEGV):
3977 * machoread.c (macho_symfile_read): Assign first cleanup to
3978 'back_to'.
3979
87967e27
YQ
39802013-06-03 Yao Qi <yao@codesourcery.com>
3981
3982 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3983 mi-parse.c. Make them static.
3984 (mi_all_values): Likewise.
3985 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3986 mi_parse_print_values. Make it external.
3987 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3988 Remove the declarations.
3989 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3990 * mi/mi-parse.h (mi_parse_print_values): Declare.
3991 * mi/mi-cmd-stack.c: Include mi-parse.h.
3992 (parse_print_values): Remove
3993 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3994 of parse_print_values.
3995 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3996
3ca73e0c
YQ
39972013-05-31 Pedro Alves <pedro@codesourcery.com>
3998 Yao Qi <yao@codesourcery.com>
3999
4000 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4001 (encode_actions): Move code to ...
4002 (all_tracepoint_actions_and_cleanup): ... here. New.
4003 (trace_dump_command): Likewise.
4004
4e993a19
TT
40052013-05-30 Tom Tromey <tromey@redhat.com>
4006
4007 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4008
e3b76b4f
TT
40092013-05-30 Tom Tromey <tromey@redhat.com>
4010
4011 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4012 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4013 'old_chain' argument. Add 'parser_result' argument.
4014 (gdb_xml_create_parser_and_cleanup): Remove old version.
4015 (gdb_xml_parse_quick): Update.
4016 (xml_process_xincludes): Update.
4017 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4018 declare.
4019
db26349c
TT
40202013-05-30 Tom Tromey <tromey@redhat.com>
4021
4022 * probe.c (collect_probes): Check arguments for NULL before
4023 calling compile_rx_or_error.
4024 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4025 Remove NULL return.
4026
77f9e713
TT
40272013-05-30 Tom Tromey <tromey@redhat.com>
4028
4029 * infrun.c (adjust_pc_after_break): Introduce an outer null
4030 cleanup.
4031
45475de7
TT
40322013-05-30 Tom Tromey <tromey@redhat.com>
4033
4034 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4035
ac5007fd
TT
40362013-05-30 Tom Tromey <tromey@redhat.com>
4037
4038 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4039 for 'old_chain'. Do not check 'head' before processing
4040 cleanups.
4041
cd82eddc
TT
40422013-05-30 Tom Tromey <tromey@redhat.com>
4043
4044 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4045 "cleanup_tuple".
4046
57cee33a
TT
40472013-05-30 Tom Tromey <tromey@redhat.com>
4048
4049 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4050 inner scope. Unconditionally call do_cleanups.
4051
795d915c
TT
40522013-05-30 Tom Tromey <tromey@redhat.com>
4053
4054 * source.c (find_and_open_source): Call do_cleanups.
4055
1fc3cf4a
TT
40562013-05-30 Tom Tromey <tromey@redhat.com>
4057
4058 * linux-thread-db.c (thread_db_load_search): Unconditionally
4059 call do_cleanups.
4060
e35ac9bf
TT
40612013-05-30 Tom Tromey <tromey@redhat.com>
4062
4063 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4064 for 'cleanup'; instead use a later one.
4065
f3300387
TT
40662013-05-30 Tom Tromey <tromey@redhat.com>
4067
4068 * python/py-breakpoint.c (bppy_get_commands): Use
4069 explicit, unconditional return.
4070 * python/py-frame.c (frapy_read_var): Likewise.
4071 * python/python.c (gdbpy_decode_line): Likewise.
4072
c27e16e3
TT
40732013-05-30 Tom Tromey <tromey@redhat.com>
4074
4075 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4076 do_cleanups on all return paths.
4077
5ae85e44
TT
40782013-05-30 Tom Tromey <tromey@redhat.com>
4079
4080 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4081
73b8d9da
TT
40822013-05-30 Tom Tromey <tromey@redhat.com>
4083
4084 * stabsread.c (read_struct_type): Call do_cleanups along
4085 all return paths.
4086
7d266584
MR
40872013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4088
4089 * mips-linux-tdep.c: Adjust formatting throughout.
4090
0f900f54
TT
40912013-05-30 Tom Tromey <tromey@redhat.com>
4092
4093 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4094 along all return paths.
4095
a991ac28
TT
40962013-05-30 Tom Tromey <tromey@redhat.com>
4097
4098 * symfile.c (find_separate_debug_file): Call do_cleanups
4099 along all return paths.
4100
1abaf042
TT
41012013-05-30 Tom Tromey <tromey@redhat.com>
4102
4103 * symtab.c (search_symbols): Introduce a null cleanup for
4104 'retval_chain'.
4105
edefe1da
TT
41062013-05-30 Tom Tromey <tromey@redhat.com>
4107
4108 * python/py-value.c (valpy_binop): Call do_cleanups before
4109 exiting loop.
4110
54f72dcc
TT
41112013-05-30 Tom Tromey <tromey@redhat.com>
4112
4113 * python/py-prettyprint.c (print_children): Remove extra
4114 do_cleanups call.
4115
af1c6971
TT
41162013-05-30 Tom Tromey <tromey@redhat.com>
4117
4118 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4119 all return paths.
4120
b862ce75
TT
41212013-05-30 Tom Tromey <tromey@redhat.com>
4122
4123 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4124 along all return paths.
4125
e12fefc8
TT
41262013-05-30 Tom Tromey <tromey@redhat.com>
4127
4128 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4129 call do_cleanups.
4130
4867f990
TT
41312013-05-30 Tom Tromey <tromey@redhat.com>
4132
4133 * varobj.c (c_value_of_root): Call do_cleanups along all
4134 return paths.
4135
4fd2d6af
TT
41362013-05-30 Tom Tromey <tromey@redhat.com>
4137
4138 * tracepoint.c (trace_dump_command): Unconditionally call
4139 do_cleanups.
4140
752eb8b4
TT
41412013-05-30 Tom Tromey <tromey@redhat.com>
4142
4143 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4144 do_cleanups earlier.
4145
e42d0aa5
TT
41462013-05-30 Tom Tromey <tromey@redhat.com>
4147
4148 * machoread.c (macho_symfile_read): Assign first cleanup to
4149 'back_to'.
4150
4bbc010a
TT
41512013-05-30 Tom Tromey <tromey@redhat.com>
4152
4153 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4154
b9635925
TT
41552013-05-30 Tom Tromey <tromey@redhat.com>
4156
4157 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4158
25f43500
TT
41592013-05-30 Tom Tromey <tromey@redhat.com>
4160
4161 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4162 call discard_cleanups.
4163 (inf_ptrace_attach): Likewise.
4164
d6a2e54a
TT
41652013-05-30 Tom Tromey <tromey@redhat.com>
4166
4167 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4168 return paths.
4169 (mips_initialize): Likewise.
4170 (common_open): Call do_cleanups.
4171
48be7c1b
TT
41722013-05-30 Tom Tromey <tromey@redhat.com>
4173
4174 * utils.c (internal_vproblem): Call do_cleanups.
4175
e61727ab
TT
41762013-05-30 Tom Tromey <tromey@redhat.com>
4177
4178 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4179
b81b921f
TT
41802013-05-30 Tom Tromey <tromey@redhat.com>
4181
4182 * cli/cli-script.c (setup_user_args): Don't return after error.
4183
fe48dfb1
TT
41842013-05-30 Tom Tromey <tromey@redhat.com>
4185
4186 * somread.c (som_symtab_read): Call do_cleanups.
4187
27833de7
TT
41882013-05-30 Tom Tromey <tromey@redhat.com>
4189
4190 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4191
5b3fca71
TT
41922013-05-30 Tom Tromey <tromey@redhat.com>
4193
4194 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4195 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4196 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4197 * source.c (show_substitute_path_command): Call do_cleanups.
4198 (unset_substitute_path_command, set_substitute_path_command):
4199 Likewise.
4200 * symfile.c (load_command): Call do_cleanups.
4201
af83e3f8
TT
42022013-05-30 Tom Tromey <tromey@redhat.com>
4203
4204 * contrib/cleanup_check.py: New file.
4205 * contrib/gcc-with-excheck: Add option parsing.
4206
564eac42
JB
42072013-05-30 Joel Brobecker <brobecker@adacore.com>
4208
4209 * windows-nat.c (windows_delete_thread): Add missing space
4210 in cast expression.
4211
47902076
HAQ
42122013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4213
4214 * inferior.c (top level): Include tilde.h.
4215 (add_inferior_command): Call tilde_expand on the value of 'exec'
4216 argument.
4217
23da373a
YQ
42182013-05-30 Pedro Alves <pedro@codesourcery.com>
4219 Yao Qi <yao@codesourcery.com>
4220
4221 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4222 Caller update.
4223 (encode_actions): Likewise.
4224 * remote.c (remote_download_tracepoint): Caller update.
4225 * tracepoint.h (encode_actions): Update declaration.
4226
a6e6f791
PA
42272013-05-30 Pedro Alves <palves@redhat.com>
4228
4229 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4230 pointer.
4231
36d25514
YQ
42322013-05-30 Yao Qi <yao@codesourcery.com>
4233
4234 * remote.c (remote_check_symbols): Remove unused parameter
4235 'objfile'.
4236 Declaration update.
4237 (remote_start_remote, remote_new_objfile): Caller update.
4238
62a813cc
YQ
42392013-05-30 Yao Qi <yao@codesourcery.com>
4240
4241 * mi/mi-cmds.c (mi_cmds): Define MI command
4242 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4243 DEF_MI_CMD_CLI.
4244
28439a30
PA
42452013-05-29 Pedro Alves <palves@redhat.com>
4246
4247 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4248 (remote_insert_watchpoint, remote_remove_watchpoint)
4249 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4250 (remote_verify_memory, compare_sections_command)
4251 (remote_search_memory): Set the general process/thread on the
4252 remote side.
4253
6ac1c082
PA
42542013-05-29 Pedro Alves <palves@redhat.com>
4255
4256 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4257 (_initialize_aarch64_tdep): Don't call
4258 initialize_tdesc_aarch64_without_fpu.
4259 * features/Makefile (WHICH): Remove reference to
4260 aarch64-without-fpu.
4261 * features/aarch64-without-fpu.c: Delete file.
4262 * regformats/aarch64-without-fpu.dat: Delete file.
4263
a73e3634
YQ
42642013-05-28 Yao Qi <yao@codesourcery.com>
4265
4266 * tracepoint.c (stringify_collection_list): Remove parameter
4267 'string'.
4268 (encode_actions): Caller update. Remove local variables.
4269
c0ea94eb
YQ
42702013-05-24 Yao Qi <yao@codesourcery.com>
4271
4272 * tracepoint.c (TFILE_PID): Remove.
4273 (tfile_open): Don't add thread and inferior.
4274 (tfile_close): Don't set 'inferior_ptid'. Don't call
4275 exit_inferior_silent.
4276 (tfile_thread_alive): Remove.
4277 (init_tfile_ops): Don't set field 'to_thread_alive' of
4278 tfile_ops.
4279
20d7f211
DE
42802013-05-23 Doug Evans <dje@google.com>
4281
4282 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4283
8658d16d
PA
42842013-05-23 Pedro Alves <palves@redhat.com>
4285
4286 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4287 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4288 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4289 Only define if HAVE_SOCKETS is defined.
4290 * configure.ac: Check for sys/socket.h.
4291 * config.in, configure: Regenerate.
4292
21aa081e
PA
42932013-05-23 Pedro Alves <palves@redhat.com>
4294
4295 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4296 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4297 printing uint32_t variables.
4298
c2d6af84
PA
42992013-05-23 Pedro Alves <palves@redhat.com>
4300
4301 * NEWS: Mention GDBserver range stepping support.
4302
c1e36e3e
PA
43032013-05-23 Yao Qi <yao@codesourcery.com>
4304 Pedro Alves <palves@redhat.com>
4305
4306 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4307 field.
4308 * infcmd.c (step_once, until_next_command): Enable range stepping.
4309 * infrun.c (displaced_step_prepare): Disable range stepping.
4310 (resume): Disable range stepping if stepping over a breakpoint or
4311 we have software watchpoints. If range stepping is enabled,
4312 assert the thread is in the stepping range.
4313 (clear_proceed_status_thread): Clear may_range_step.
4314 (handle_inferior_event): Disable range stepping as soon as we know
4315 the thread that hit the event. Re-enable it whenever we're going
4316 to step with a step range.
4317 * remote.c (struct vCont_action_support) <r>: New field.
4318 (use_range_stepping): New global.
4319 (remote_vcont_probe): Handle 'r' action.
4320 (append_resumption): Append an 'r' action if the thread may range
4321 step.
4322 (show_range_stepping): New function.
4323 (set_range_stepping): New function.
4324 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4325 'set range-stepping' and 'show range-stepping' commands.
4326 * NEWS: Mention range stepping, the new vCont;r action, and the
4327 new "set/show range-stepping" commands.
4328
d458bd84
PA
43292013-05-23 Yao Qi <yao@codesourcery.com>
4330 Pedro Alves <palves@redhat.com>
4331
4332 * remote.c (struct vCont_action_support): New struct.
4333 (struct remote_state) <support_vCont_t>: Remove field.
4334 <vCont_actions_support>: New field.
4335 (remote_vcont_probe, remote_stop_ns): Update.
4336
ce4c476a
PA
43372013-05-23 Yao Qi <yao@codesourcery.com>
4338 Pedro Alves <palves@redhat.com>
4339
4340 * gdbthread.h (pc_in_thread_step_range): New declaration.
4341 * thread.c (pc_in_thread_step_range): New function.
4342 * infrun.c (handle_inferior_event): Use it.
4343
ce70887a
JB
43442013-05-23 Joel Brobecker <brobecker@adacore.com>
4345
4346 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4347 of sprintf.
4348
55b87a52
KS
43492013-05-22 Keith Seitz <keiths@redhat.com>
4350
4351 * ada-lang.c (is_known_support_routine): Add explicit free of
4352 'func_name' from find_frame_funname.
4353 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4354 for func_name from find_frame_funname.
4355 * python/py-frame.c (frapy_name): Add explicit free of
4356 'name' from find_frame_funname.
4357 * stack.c (find_frame_funname): Add comment explaining that
4358 funcp must be freed by the caller.
4359 Return copy of symbol names instead of pointers.
4360 (print_frame): Add a cleanup for 'funname' from
4361 find_frame_funname.
4362 * stack.h (find_frame_funname): Remove "const" from
4363 'funname' parameter.
4364
5f2e6b00
TT
43652013-05-22 Tom Tromey <tromey@redhat.com>
4366
4367 PR c++/15401:
4368 * c-valprint.c (c_value_print): Use value_addr for
4369 references. Convert back to reference type with value_ref.
4370
d85c4847
EZ
43712013-05-22 Eli Zaretskii <eliz@gnu.org>
4372
4373 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4374 unloaded DLL, it will be done by handle_solib_event. See
4375 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4376 details.
4377
54eb231c
PM
43782013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4379
4380 * ui-out.c: Create typedef ui_out_level_p and define vector
4381 operations for that type.
4382 (struct ui_out): Use a vector instead of an array.
4383 (current_level): Return level from a vector.
4384 (push_level): Create a level in a vector.
4385 (pop_level): Delete a level in a vector.
4386 (ui_out_new): Create initial level zero level, and store in a
4387 vector.
4388 (ui_out_destroy): Add vector cleanup.
4389
ac90359c
PA
43902013-05-22 Pedro Alves <palves@redhat.com>
4391
4392 * python/python-internal.h (gdb_Py_DECREF): Tag with
4393 "ARI: editCase function".
4394
6dcc1893
PP
43952013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4396
4397 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4398
c8c735b9
PA
43992013-05-21 Pedro Alves <palves@redhat.com>
4400
4401 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4402 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4403 * python/py-utils.c (py_decref): Don't check for NULL before
4404 calling Py_DECREF.
4405
1915daeb
PA
44062013-05-21 Pedro Alves <palves@redhat.com>
4407
4408 * python/py-utils.c (py_decref): Remove extra braces.
4409 (gdb_pymodule_addobject): Remove extra braces.
4410 * python-internal.h (gdb_Py_DECREF): New static inline function.
4411 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4412
bd9673a4
PW
44132013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4414
4415 * breakpoints.c (detach_breakpoints): Do not
4416 detach breakpoints locations with loc_type bp_loc_other.
4417
ff6009d0
JK
44182013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4419
4420 Workaround Python 2.6.
4421 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4422 a block.
4423
3641da11
JK
44242013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4425
4426 Code cleanup: constification.
4427 * solib.c (solib_ops): Make return type and ops variable type const.
4428 (set_solib_ops): Make the new_ops parameter and ops variable const.
4429 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4430 (solib_add, solib_keep_data_in_core, clear_solib)
4431 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4432 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4433 const.
4434 * solib.h (set_solib_ops): Make the new_ops parameter const.
4435
776af39e
JB
44362013-05-21 Joel Brobecker <brobecker@adacore.com>
4437
4438 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4439 variable.
4440 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4441 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4442 (SYSTEM_GDBINIT_FILES): New variables.
4443 (all): Add stamp-system-gdbinit.
4444 (stamp-system-gdbinit): New rule.
4445 (clean-system-gdbinit, install-system-gdbinit)
4446 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4447 (install-only): Add dependency on install-system-gdbinit.
4448 (uninstall): Add dependency on uninstall-system-gdbinit.
4449 (clean): Add dependency on clean-system-gdbinit.
4450 * system-gdbinit/elinos.py: New file.
4451 * system-gdbinit/wrs-linux.py: New file.
4452
1509e573
JB
44532013-05-21 Joel Brobecker <brobecker@adacore.com>
4454
4455 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4456
c5867ab6
HZ
44572013-05-21 Hui Zhu <hui@codesourcery.com>
4458
4459 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4460 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4461 * mi/mi-cmd-break.c (ctype.h): New include.
4462 (gdb_obstack.h): New include.
4463 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4464 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4465 (mi_cmd_dprintf_insert): New.
4466 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4467 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4468
7d38e38f
TT
44692013-05-20 Tom Tromey <tromey@redhat.com>
4470
4471 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4472
97b77b39
TT
44732013-05-20 Tom Tromey <tromey@redhat.com>
4474
4475 * python/py-value.c (valpy_get_dynamic_type): Simplify
4476 dynamic_type assignment. Use Py_XINCREF.
4477
53e66479
TT
44782013-05-20 Tom Tromey <tromey@redhat.com>
4479
4480 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4481
dcf87832
TT
44822013-05-20 Tom Tromey <tromey@redhat.com>
4483
4484 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4485 (gdbpy_selected_frame): Move object-construction code
4486 out of TRY_CATCH.
4487
aa36459a
TT
44882013-05-20 Tom Tromey <tromey@redhat.com>
4489
4490 * python/py-arch.c (gdbpy_initialize_arch): Use
4491 gdb_pymodule_addobject.
4492 * python/py-block.c (gdbpy_initialize_blocks): Use
4493 gdb_pymodule_addobject.
4494 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4495 gdb_pymodule_addobject.
4496 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4497 gdb_pymodule_addobject.
4498 * python/py-event.c (gdbpy_initialize_event_generic): Use
4499 gdb_pymodule_addobject.
4500 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4501 gdb_pymodule_addobject.
4502 * python/py-evts.c (add_new_registry): Use
4503 gdb_pymodule_addobject.
4504 (gdbpy_initialize_py_events): Likewise.
4505 * python/py-finishbreakpoint.c
4506 (gdbpy_initialize_finishbreakpoints): Use
4507 gdb_pymodule_addobject.
4508 * python/py-frame.c (gdbpy_initialize_frames): Use
4509 gdb_pymodule_addobject.
4510 * python/py-function.c (gdbpy_initialize_functions): Use
4511 gdb_pymodule_addobject.
4512 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4513 gdb_pymodule_addobject.
4514 * python/py-infthread.c (gdbpy_initialize_thread): Use
4515 gdb_pymodule_addobject.
4516 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4517 gdb_pymodule_addobject.
4518 * python/py-param.c (gdbpy_initialize_parameters): Use
4519 gdb_pymodule_addobject.
4520 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4521 gdb_pymodule_addobject.
4522 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4523 gdb_pymodule_addobject.
4524 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4525 gdb_pymodule_addobject.
4526 * python/py-type.c (gdbpy_initialize_types): Use
4527 gdb_pymodule_addobject.
4528 * python/py-utils.c (gdb_pymodule_addobject): New function.
4529 * python/py-value.c (gdbpy_initialize_values): Use
4530 gdb_pymodule_addobject.
4531 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4532 * python/python.c (_initialize_python): Use
4533 gdb_pymodule_addobject.
4534
3d4a3c3e
TT
45352013-05-20 Tom Tromey <tromey@redhat.com>
4536
4537 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4538 * python/py-param.c (get_set_value, get_show_value): Use
4539 explicit decrefs.
4540 * python/python.c (start_type_printers, apply_type_printers):
4541 Use explicit decrefs.
4542
72ff8829
TT
45432013-05-20 Tom Tromey <tromey@redhat.com>
4544
4545 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4546 incref the module.
4547
02146ba5
TT
45482013-05-20 Tom Tromey <tromey@redhat.com>
4549
4550 * python/python.c (gdbpy_run_events): Decref the result
4551 of PyObject_CallObject.
4552
33ee792f
TT
45532013-05-20 Tom Tromey <tromey@redhat.com>
4554
4555 * python/py-symtab.c (set_sal): Use
4556 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4557 (symtab_and_line_to_sal_object): Update.
4558
fcb49fc8
TT
45592013-05-20 Tom Tromey <tromey@redhat.com>
4560
4561 * python/py-param.c (compute_enum_values): Decref 'item'.
4562
0646da15
TT
45632013-05-20 Tom Tromey <tromey@redhat.com>
4564
4565 * mi/mi-main.c: Include python-internal.h.
4566 (mi_cmd_list_features): Check gdb_python_initialized.
4567 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4568 (python_inferior_exit, python_new_objfile, add_thread_object)
4569 (delete_thread_object, py_free_inferior): Check
4570 gdb_python_initialized.
4571 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4572 gdb_python_initialized.
4573 * python/py-type.c (save_objfile_types): Check
4574 gdb_python_initialized.
4575 * python/python-internal.h (gdb_python_initialized): Declare.
4576 * python/python.c (ensure_python_env): Throw exception if
4577 Python not initialized.
4578 (before_prompt_hook, source_python_script_for_objfile)
4579 (start_type_printers, apply_type_printers,
4580 free_type_printers): Check gdb_python_initialized.
4581 * varobj.c (varobj_get_display_hint)
4582 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4583 (install_new_value_visualizer, varobj_set_visualizer)
4584 (value_get_print_value): Check gdb_python_initialized.
4585
999633ed
TT
45862013-05-20 Tom Tromey <tromey@redhat.com>
4587
4588 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4589 Check errors.
4590 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4591 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4592 Check errors.
4593 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4594 Check errors.
4595 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4596 Check errors.
4597 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4598 Check errors.
4599 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4600 init function to return 'int'.
4601 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4602 Return 'int'. Check errors.
4603 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4604 Check errors.
4605 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4606 Return 'int'. Check errors.
4607 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4608 Check errors.
4609 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4610 Check errors.
4611 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4612 Check errors.
4613 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4614 Check errors.
4615 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4616 Check errors.
4617 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4618 Check errors.
4619 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4620 Check errors.
4621 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4622 Check errors.
4623 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4624 Check errors.
4625 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4626 Check errors.
4627 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4628 Check errors.
4629 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4630 Check errors.
4631 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4632 Check errors.
4633 * python/python-internal.h (gdbpy_initialize_auto_load,
4634 gdbpy_initialize_values, gdbpy_initialize_frames,
4635 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4636 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4637 gdbpy_initialize_blocks, gdbpy_initialize_types,
4638 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4639 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4640 gdbpy_initialize_finishbreakpoints,
4641 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4642 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4643 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4644 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4645 gdbpy_initialize_signal_event,
4646 gdbpy_initialize_breakpoint_event,
4647 gdbpy_initialize_continue_event,
4648 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4649 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4650 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4651 * python/python.c (gdb_python_initialized): New global.
4652 (gdbpy_initialize_events): Return 'int'. Check errors.
4653 (_initialize_python): Check errors. Set
4654 gdb_python_initialized.
4655
18868860
TT
46562013-05-20 Tom Tromey <tromey@redhat.com>
4657
4658 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4659 Decref the reslut of PyObject_CallMethod.
4660
9f4ff0c2
TT
46612013-05-20 Tom Tromey <tromey@redhat.com>
4662
4663 * python/py-event.c (gdbpy_initialize_event_generic): Return
4664 early if PyType_Ready fails.
4665
0d3a2e8a
TT
46662013-05-20 Tom Tromey <tromey@redhat.com>
4667
4668 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4669 as 'default' in the switch.
4670
b86af38a
TT
46712013-05-20 Tom Tromey <tromey@redhat.com>
4672
4673 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4674 get_addr_from_python calls out of TRY_CATCH.
4675 (infpy_write_memory, infpy_search_memory): Likewise.
4676 * python/py-utils.c (get_addr_from_python): Return negative
4677 value on error. Use TRY_CATCH.
4678 * python/python-internal.h (get_addr_from_python): Use
4679 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4680
c127ec58
TT
46812013-05-20 Tom Tromey <tromey@redhat.com>
4682
4683 * python/py-event.c (evpy_emit_event): Decref the
4684 result of PyObject_CallFunctionObjArgs.
4685
ba327838
TT
46862013-05-20 Tom Tromey <tromey@redhat.com>
4687
4688 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4689 Correctly decref.
4690
d8191432
TT
46912013-05-20 Tom Tromey <tromey@redhat.com>
4692
4693 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4694
5d153bd1
TT
46952013-05-20 Tom Tromey <tromey@redhat.com>
4696
4697 * python/py-event.h (gdbpy_initialize_event_generic): Use
4698 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4699 * python/py-evts.c (add_new_registry): Use
4700 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4701 * python/python-internal.h
4702 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4703
56cc411c
TT
47042013-05-20 Tom Tromey <tromey@redhat.com>
4705
4706 * python/py-arch.c (archpy_disassemble): Update.
4707 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4708 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4709 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4710 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4711 macro.
4712 (GDB_PY_HANDLE_EXCEPTION): Update.
4713 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4714
8919e174
TT
47152013-05-20 Tom Tromey <tromey@redhat.com>
4716
4717 * python/python-internal.h (events_object_type): Remove.
4718
9b08f225
TT
47192013-05-20 Tom Tromey <tromey@redhat.com>
4720
f5aee5ee
AM
4721 * python/py-event.h (evpy_emit_event): Use
4722 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4723 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4724 New macro.
9b08f225 4725
f04010ff
TT
47262013-05-20 Tom Tromey <tromey@redhat.com>
4727
4728 * py-evtregistry.c (create_event_object): Decref
4729 eventregistry_object if PyList_New fails.
4730
3919fd96
TT
47312013-05-20 Tom Tromey <tromey@redhat.com>
4732
4733 * py-cmd.c (gdbpy_string_to_argv): Check result of
4734 PyList_New.
4735
0430e8cb
TT
47362013-05-20 Tom Tromey <tromey@redhat.com>
4737
4738 * python/python.c (before_prompt_hook): Add cleanup to
4739 decref 'hook'.
4740
764123e4
TT
47412013-05-20 Tom Tromey <tromey@redhat.com>
4742
4743 * python/py-function.c (fnpy_init): Decref result of
4744 PyObject_GetAttrString.
4745
634c58be
TT
47462013-05-20 Tom Tromey <tromey@redhat.com>
4747
4748 * python/py-threadevent.c (get_event_thread): Use
4749 CPYCHECKER_RETURNS_BORROWED_REF.
4750 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4751 New define.
4752 (pspace_to_pspace_object, objfile_to_objfile_object)
4753 (find_thread_object): Use it.
4754
62eec1a5
TT
47552013-05-20 Tom Tromey <tromey@redhat.com>
4756
4757 * python/py-arch.c (arch_object_type): Use
4758 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4759 * python/py-block.c (block_syms_iterator_object_type):
4760 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4761 * python/py-bpevent.c (breakpoint_event_object_type):
4762 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4763 * python/py-cmd.c (cmdpy_object_type): Use
4764 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4765 * python/py-continueevent.c (continue_event_object_type):
4766 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4767 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4768 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4769 * python/py-events.h (thread_event_object_type):
4770 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4771 * python/py-evtregistry.c (eventregistry_object_type): Use
4772 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4773 * python/py-exitedevent.c (exited_event_object_type):
4774 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4775 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4776 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4777 * python/py-function.c (fnpy_object_type): Use
4778 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4779 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4780 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4781 * python/py-infthread.c (thread_object_type): Use
4782 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4783 * python/py-lazy-string.c (lazy_string_object_type):
4784 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4785 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4786 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4787 * python/py-objfile.c (objfile_object_type): Use
4788 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4789 * python/py-param.c (parmpy_object_type):
4790 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4791 * python/py-progspace.c (pspace_object_type):
4792 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4793 * python/py-signalevent.c (signal_event_object_type):
4794 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4795 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4796 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4797 * python/py-type.c (type_object_type, field_object_type)
4798 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4799 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4800 define.
4801 (value_object_type, block_object_type, symbol_object_type)
4802 (event_object_type, stop_event_object_type, breakpoint_object_type)
4803 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4804
81ea8796
AT
48052013-05-20 Andreas Tobler <andreas@fgznet.ch>
4806
4807 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4808 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4809
a2ce51a0
DE
48102013-05-20 Doug Evans <dje@google.com>
4811
4812 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4813 For Fission.
4814 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4815 reading_dwo_directly.
4816 (struct signatured_type): New member dwo_unit.
4817 (struct die_reader_specs): New member comp_dir.
4818 (create_signatured_type_table_from_index): Use malloc for
4819 all_type_units instead of objfile's obstack.
4820 (create_all_type_units): Ditto.
4821 (fill_in_sig_entry_from_dwo_entry): New function.
4822 (add_type_unit): New function.
4823 (lookup_dwo_signatured_type): New function.
4824 (lookup_dwp_signatured_type): New function.
4825 (lookup_signatured_type): New arg cu. All callers updated.
4826 (init_cu_die_reader): Initialize comp_dir.
4827 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4828 Change assert of matching type signatures to call error on mismatch.
4829 (lookup_dwo_unit): Add assert.
4830 (init_tu_and_read_dwo_dies): New function.
4831 (init_cutu_and_read_dies): Call it.
4832 (build_type_unit_groups): Handle case of no type unit groups created.
4833 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4834 (lookup_dwo_cutu): Tweak complaint.
4835 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4836 (dwarf2_per_objfile_free): Free all_type_units.
4837
a25cd31f
JB
48382013-05-20 Joel Brobecker <brobecker@adacore.com>
4839
4840 * windows-nat.c (handle_unload_dll): Add missing empty line.
4841
4d804846
JB
48422013-05-20 Joel Brobecker <brobecker@adacore.com>
4843
4844 * dwarf2read.c (prototyped_function_p): New function.
4845 (read_subroutine_type): Use it.
4846
1c432e72
JB
48472013-05-20 Joel Brobecker <brobecker@adacore.com>
4848
4849 * rs6000-aix-tdep.c: De-indent some example code provided
4850 as a comment.
4851
4feebbdd
EBM
48522013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4853
4854 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4855 region is ok for a hardware watchpoint using the new ptrace interface
4856 on Power servers.
4857
7d0c9981
DE
48582013-05-17 Doug Evans <dje@google.com>
4859
4860 * NEWS: Mention new maintenance commands check-symtabs, and
4861 expand-symtabs, and renamed check-psymtabs.
4862 * psymtab.c (maintenance_check_psymtabs): Renamed from
4863 maintenance_check_symtabs. Only process already-expanded symbol
4864 tables.
4865 (_initialize_psymtab): Update.
4866 * symmisc.c (maintenance_check_symtabs): New function.
4867 (maintenance_expand_name_matcher): New function
4868 (maintenance_expand_file_matcher): New function
4869 (maintenance_expand_symtabs): New function.
4870 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4871 commands.
4872
6cbc7c3d
TT
48732013-05-17 Tom Tromey <tromey@redhat.com>
4874
4875 * python/py-inferior.c (infpy_read_memory): Don't call
4876 PyErr_SetString if PyObject_New fails.
4877 * python/py-frame.c (frame_info_to_frame_object): Don't call
4878 PyErr_SetString if PyObject_New fails.
4879
a48b32c0
L
48802013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4881
4882 * acinclude.m4: Add check for dlopen in libdl.
4883 * configure.ac: Ditto.
4884 * configure: Regenerate.
4885
3de661e6
PM
48862013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4887
4888 * frame.c (frame_stash): Convert to htab.
4889 (frame_addr_hash): New function.
4890 (frame_addr_hash_eq): New function.
4891 (frame_stash_create): Convert function to create
4892 a hash table.
4893 (frame_stash_add): Convert function to add an entry to a hash
4894 table.
4895 (frame_stash_find): Convert function to search the hash table.
4896 (frame_stash_invalidate): Convert function to empty the hash
4897 table.
4898 (get_frame_id): Only add to stash if a frame_id is created.
4899 (_initialize_frame): Call frame_stash_create.
4900
bb4168a9 49012013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
4902
4903 * configure.ac: Ensure MIG is available when building for GNU Hurd
4904 hosts.
4905 * configure: Regenerate.
4906
d1be3247
JB
49072013-05-16 Joel Brobecker <brobecker@adacore.com>
4908
4909 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4910
b8fea896
JB
49112013-05-16 Joel Brobecker <brobecker@adacore.com>
4912
4913 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4914 all cleanups are done before returning from this function.
4915
af880d85
JB
49162013-05-15 Joel Brobecker <brobecker@adacore.com>
4917
4918 * utils.h: #include "exceptions.h".
4919 (enum errors): Remove partial declaration.
4920
356a5233
JB
49212013-05-15 Joel Brobecker <brobecker@adacore.com>
4922
4923 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4924 * gdbarch.h, gdbarch.c: Regenerate.
4925 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4926 handling.
4927
4928 * rs6000-aix-tdep.h: New file.
4929 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4930 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4931 "xml-utils.h".
4932 (struct field_info, struct ld_info_desc): New types.
4933 (ld_info32_desc, ld_info64_desc): New static constants.
4934 (struct ld_info): New type.
4935 (rs6000_aix_extract_ld_info): New function.
4936 (rs6000_aix_shared_library_to_xml): Likewise.
4937 (rs6000_aix_ld_info_to_xml): Likewise.
4938 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4939 (rs6000_aix_init_osabi): Add call to
4940 set_gdbarch_core_xfer_shared_libraries_aix.
4941 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4942 Remove "xml-utils.h" include.
4943 (LdInfo): Delete typedef.
4944 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4945 Delete macros.
4946 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4947 Adjust code accordingly.
4948 (rs6000_core_ldinfo): Delete, folded into
4949 rs6000_aix_core_xfer_shared_libraries_aix.
4950 (rs6000_xfer_shared_library): Delete.
4951 (rs6000_xfer_shared_libraries): Reimplement.
4952
742ce053
MM
49532013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4954
4955 * record.c (record_goto_cmdlist): New.
4956 (cmd_record_goto): Split into this ...
4957 (cmd_record_goto_begin): ... this
4958 (cmd_record_goto_end): ... and this.
4959 (_initialize_record): Change "record goto" to prefix command.
4960 Add commands for "record goto begin" and "record goto end".
4961 Add an alias for "record goto start" to "record goto begin".
4962
e93ba630
JK
49632013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 * linespec.c (convert_linespec_to_sals): New comment for
4966 SOURCE_FILENAME assignment.
4967
5821aace
JK
49682013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4969
4970 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4971 internal_warning.
4972
a1b8c4cc
TT
49732013-05-14 Tom Tromey <tromey@redhat.com>
4974
4975 * eval.c (parse_and_eval_long): Make 'exp' const.
4976 * value.h (parse_and_eval_long): Update.
4977
23b3a2c3
TT
49782013-05-14 Tom Tromey <tromey@redhat.com>
4979
4980 * ui-file.c (gdb_fopen): Make arguments const.
4981 * ui-file.h (gdb_fopen): Make arguments const.
4982
ca623f82
TT
49832013-05-14 Tom Tromey <tromey@redhat.com>
4984
4985 * remote.c (remote_set_trace_notes): Make arguments const.
4986 * target.c (update_current_target): Update cast.
4987 * target.h (to_set_trace_notes): Make arguments const.
4988
503ebb2c
TT
49892013-05-14 Tom Tromey <tromey@redhat.com>
4990
4991 * go32-nat.c (go32_terminal_info): Make 'args' const.
4992 * inferior.h (child_terminal_info): Update.
4993 * inflow.c (child_terminal_info): Make 'args' const.
4994 * target.c (default_terminal_info): Make 'args' const.
4995 (debug_to_terminal_save_ours): Likewise.
4996 * target.h (struct target_ops) <to_terminal_info>: Make argument
4997 const.
4998
85e1311a
TT
49992013-05-13 Tom Tromey <tromey@redhat.com>
5000
5001 * gcore.c (create_gcore_bfd): Make 'filename' const.
5002 * gcore.h (create_gcore_bfd): Make 'filename' const.
5003 * record-full.c (record_full_save): Make 'recfilename' const.
5004 * target.c (target_save_record): Make 'filename' const.
5005 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5006 const.
5007 (target_save_record): Likewise.
5008
d62bfeaf
TT
50092013-05-13 Tom Tromey <tromey@redhat.com>
5010
f5aee5ee 5011 PR gdb/15338:
d62bfeaf
TT
5012 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5013 ranges section has been read.
5014
ac1ca910
TT
50152013-05-13 Tom Tromey <tromey@redhat.com>
5016
5017 PR exp/15364:
5018 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5019 STRUCTOP_PTR>: Return a not_lval value for
5020 EVAL_AVOID_SIDE_EFFECTS.
5021 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5022 for EVAL_AVOID_SIDE_EFFECTS.
5023
36d1c68c
JB
50242013-05-13 Joel Brobecker <brobecker@adacore.com>
5025
5026 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5027 floating point registers to register type before storing
5028 value.
5029 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5030 Likewise.
5031
21ff4686
TT
50322013-05-10 Joel Brobecker <brobecker@adacore.com>
5033 Tom Tromey <tromey@redhat.com>
5034
5035 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5036 New functions.
5037 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5038 Declare.
5039 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5040 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5041 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5042 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5043
d3685d60
TT
50442013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5045 Tom Tromey <tromey@redhat.com>
5046
5047 PR build/15414:
5048 * configure: Rebuild.
5049 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5050 with -Wno-format.
5051
eb9fe518
PA
50522013-05-10 Pedro Alves <palves@redhat.com>
5053
5054 * remote.c (_initialize_remote): Fix spelling of
5055 qXfer:traceframe-info:read packet in packet config command.
5056
9779ab84
PA
50572013-05-10 David Taylor <dtaylor@emc.com>
5058
5059 PR remote/15455
5060
5061 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5062 "QTro" at start of packet.
5063
060cfbef
JB
50642013-05-10 Joel Brobecker <brobecker@adacore.com>
5065
5066 * solib-aix.c (solib_aix_relocate_section_addresses):
5067 For the .bss section action, apply the same offset as
5068 the .data section.
5069
ab1c4e88
JB
50702013-05-10 Joel Brobecker <brobecker@adacore.com>
5071
5072 * solib-aix.c (solib_aix_relocate_section_addresses):
5073 Remove FIXME comment.
5074
c1357578
JB
50752013-05-10 Joel Brobecker <brobecker@adacore.com>
5076
5077 PR tdep/15420:
5078 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5079 New functions, directly copied from sparc-sol-thread.c.
5080 * sparc-sol-thread.c: Delete.
5081 * configure.ac: Remove code handling sparc-solaris-thread.c.
5082 * configure: Regenerate.
5083
1e611234
PM
50842013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5085
5086 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5087 filter logic.
5088 (backtrace_command): Add "no-filters" option parsing.
5089 (_initialize_stack): Alter help to reflect "no-filters" option.
5090 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5091 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5092 (py-frame.o): Add target
5093 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5094 filter files.
5095 * python/python.h: Add new frame filter constants, and flag enum.
5096 (apply_frame_filter): Add definition.
5097 * python/python.c (apply_frame_filter): New non-Python
5098 enabled function.
5099 * python/py-utils.c (py_xdecref): New function.
5100 (make_cleanup_py_xdecref): Ditto.
5101 * python/py-objfile.c: Declare frame_filters dictionary.
5102 (objfpy_dealloc): Add frame_filters dealloc.
5103 (objfpy_new): Initialize frame_filters attribute.
5104 (objfile_to_objfile_object): Ditto.
5105 (objfpy_get_frame_filters): New function.
5106 (objfpy_set_frame_filters): New function.
5107 * python/py-progspace.c: Declare frame_filters dictionary.
5108 (pspy_dealloc): Add frame_filters dealloc.
5109 (pspy_new): Initialize frame_filters attribute.
5110 (pspacee_to_pspace_object): Ditto.
5111 (pspy_get_frame_filters): New function.
5112 (pspy_set_frame_filters): New function.
5113 * python/py-framefilter.c: New file.
5114 * python/lib/gdb/command/frame_filters.py: New file.
5115 * python/lib/gdb/frames.py: New file.
5116 * python/lib/gdb/__init__.py: Initialize global frame_filters
5117 dictionary
5118 * python/lib/gdb/FrameDecorator.py: New file.
5119 * python/lib/gdb/FrameIterator.py: New file.
5120 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5121 * mi/mi-cmds.h: Declare.
5122 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5123 --no-frame-filter logic, and Python frame filter logic.
5124 (stack_enable_frame_filters): New function.
5125 (parse_no_frame_option): Ditto.
5126 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5127 filter logic.
5128 (mi_cmd_stack_list_locals): Ditto.
5129 (mi_cmd_stack_list_args): Ditto.
5130 (mi_cmd_stack_list_variables): Ditto.
5131 * NEWS: Add frame filter note.
5132
2cb9c859
DE
51332013-05-09 Doug Evans <dje@google.com>
5134
6bf667bb
DE
5135 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5136 All callers updated.
5137 (syms_from_objfile): Ditto. Make static.
5138 (symbol_file_add_with_addrs): Renamed from
5139 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5140 num_offsets. All callers updated.
5141 * symfile.h (syms_from_objfile): Delete.
5142
2cb9c859
DE
5143 * symfile.c (decrement_reading_symtab): Add assert.
5144 (increment_reading_symtab): Ditto.
5145
40aea477
JB
51462013-05-09 Joel Brobecker <brobecker@adacore.com>
5147
5148 * source.c (forward_search_command): Replace call to getc
5149 by call to fgetc.
5150 (reverse_search_command): Likewise.
5151
680d1742
DE
51522013-05-08 Doug Evans <dje@google.com>
5153
5154 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5155 matching test.
5156
17e760ae
JB
51572013-05-08 Joel Brobecker <brobecker@adacore.com>
5158
5159 * sol-thread.c (info_cb): Factorize the code a little.
5160
c0f5f490
JB
51612013-05-08 Joel Brobecker <brobecker@adacore.com>
5162
5163 * sol-thread.c (info_cb): Rework the output of the "maintenance
5164 info sol-threads" command a bit.
5165
5d74e061
JB
51662013-05-08 Joel Brobecker <brobecker@adacore.com>
5167
5168 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5169 Replace ti.ti_startfunc by ti.ti_pc.
5170
814a3ff7
JB
51712013-05-08 Joel Brobecker <brobecker@adacore.com>
5172
5173 * solib-aix.c (solib_aix_free_library_list): New function
5174 for the case where HAVE_LIBEXPAT is not defined.
5175
58ce7251
SDJ
51762013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5177
5178 PR breakpoints/15413:
5179 * breakpoint.c (condition_completer): Simplify the code to
5180 disconsider multiple locations of breakpoints when completing the
5181 "condition" command.
5182
be8b1ea6
PM
51832013-05-07 Pierre Muller <muller@sourceware.org>
5184
5185 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5186 instead of <sys/wait.h>.
5187
1e52bda6
PM
51882013-05-07 Pierre Muller <muller@sourceware.org>
5189
5190 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5191 trailing new line from warning message.
5192
27fd0c6b
PM
51932013-05-07 Pierre Muller <muller@sourceware.org>
5194
5195 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5196 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5197
e228ac87
JB
51982013-05-07 Joel Brobecker <brobecker@adacore.com>
5199
5200 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5201 error message (ARI fix).
5202
52032013-05-07 Joel Brobecker <brobecker@adacore.com>
5204
5205 * features/library-list-aix.dtd: Replace library-list by
5206 library-list-aix.
5207 * rs6000-nat.c: Replace library-list by library-list-aix
5208 throughout.
5209 * solib-aix.c: Likewise.
5210
52112013-05-07 Joel Brobecker <brobecker@adacore.com>
5212
5213 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5214 Renames TARGET_OBJECT_AIX_LIBRARIES.
5215 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5216 TARGET_OBJECT_LIBRARIES_AIX throughout.
5217 * solib-aix.c: Likwise.
5218
26a4dda9
YQ
52192013-05-07 Yao Qi <yao@codesourcery.com>
5220
5221 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5222 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5223
3582629f
YQ
52242013-05-07 Yao Qi <yao@codesourcery.com>
5225
5226 * solib-dsbt.c (enable_break): Declare.
5227 (dsbt_current_sos): Remove call to enable_break2.
5228 (enable_break2): Rename to enable_break. Set solib breakpoint
5229 on '_dl_debug_state'.
5230 (enable_break): Remove.
5231
aacbb8a5
LM
52322013-05-07 Luis Machado <lgustavo@codesourcery.com>
5233
5234 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5235 debug state prior to replicating existing hardware watchpoints or
5236 breakpoints.
5237
0c013353
JK
52382013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5239
5240 * gcore.c (gcore_create_callback): Ignore sections with
5241 separate_debug_objfile_backlink != NULL.
5242
a1217d97
SL
52432013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5244 Andrew Jenner <andrew@codesourcery.com>
5245 Chung-Lin Tang <cltang@codesourcery.com>
5246 Julian Brown <julian@codesourcery.com>
5247
5248 Based on the nios2-elf port from Altera Corporation.
5249
5250 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5251 nios2-linux-tdep.o.
5252 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5253 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5254 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5255 * nios2-tdep.h: New.
5256 * nios2-tdep.c: New.
5257 * nios2-linux-tdep.c: New.
5258 * features/Makefile (WHICH): Add nios2-linux.
5259 (nios2-linux-expedite): Set.
5260 * features/nios2-cpu.xml: New.
5261 * features/nios2.xml: New.
5262 * features/nios2-linux.xml: New.
5263 * features/nios2.c: New (autogenerated).
5264 * features/nios2-linux.c: New (autogenerated).
5265 * regformats/nios2-linux.dat: New (autogenerated).
5266 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5267 and commands.
5268
0892cb63
DE
52692013-05-06 Doug Evans <dje@google.com>
5270
3b7bacac
DE
5271 * symfile.c: Whitespace cleanup.
5272
0892cb63
DE
5273 * solist.h (struct target_so_ops): New member clear_so.
5274 * solib-svr4.c (svr4_clear_so): New function.
5275 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5276 * solib.c (clear_so): Renamed from free_so_symbols.
5277 All callers updated. Call target clear_so if it exists.
5278
40501e00
TT
52792013-05-06 Tom Tromey <tromey@redhat.com>
5280
5281 * ada-lang.c (ada_value_primitive_packed_val): Don't
5282 call value_incref.
5283 * value.c (set_value_parent): Incref the new parent and decref
5284 the old parent.
5285 (value_copy, value_primitive_field): Use set_value_parent.
5286
b6807d98
TT
52872013-05-06 Tom Tromey <tromey@redhat.com>
5288
5289 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5290 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5291 if needed.
5292 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5293 * dwarf2read.c (write_constant_as_bytes)
5294 (dwarf2_fetch_constant_bytes): New functions.
5295
3aef2284
TT
52962013-05-06 Tom Tromey <tromey@redhat.com>
5297
5298 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5299 parameters.
5300 (dwarf2_const_value_attr): Update.
5301
66f65e2b
TT
53022013-05-06 Tom Tromey <tromey@redhat.com>
5303
5304 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5305 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5306 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5307 Remove declaration.
5308
7919a973
TT
53092013-05-06 Tom Tromey <tromey@redhat.com>
5310
5311 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5312 objfile's obstack.
5313
a7bfba49
DE
53142013-05-06 Doug Evans <dje@google.com>
5315
3189cb12
DE
5316 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5317 * stabsread.h (process_one_symbol): Update declaration.
5318 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5319 * elfread.c (elf_symfile_relocate_probe): Ditto.
5320 * psymtab.c (relocate_psymtabs): Ditto.
5321 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5322 (objfile_relocate): Ditto.
5323 * objfiles.h (objfile_relocate): Update declaration.
5324 * symfile.c (relative_addr_info_to_section_offsets): Constify
5325 addrs parameter.
5326 (default_symfile_offsets): Ditto.
5327 (syms_from_objfile_1): Constify offsets parameter.
5328 (syms_from_objfile): Ditto.
5329 (symbol_file_add_with_addrs_or_offsets): Ditto.
5330 (symfile_map_offsets_to_segments): Constify data parameter.
5331 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5332 delta parameters of member relocate.
5333 (struct sym_probe_fns): Constify new_offsets,
5334 delta parameters of member sym_relocate_probe.
5335 (struct sym_fns): Constify section_addr_info parameter of member
5336 sym_offsets.
5337 (relative_addr_info_to_section_offsets): Update declaration.
5338 (default_symfile_offsets): Ditto.
5339 (syms_from_objfile): Ditto.
5340 (symfile_map_offsets_to_segments): Ditto.
5341
a7bfba49
DE
5342 * symfile.c (syms_from_objfile_1): Use correct section count when
5343 objfile->sf == NULL.
5344
5f8e0b8f
MF
53452013-05-06 Mike Frysinger <vapier@gentoo.org>
5346
5347 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5348
ea52d893
DE
53492013-05-06 Doug Evans <dje@google.com>
5350
5351 * psympriv.h (struct partial_symtab): Augment comment for member
5352 section_offsets.
5353
4d1eb6b4
JB
53542013-05-06 Joel Brobecker <brobecker@adacore.com>
5355
5356 Reimplement shared library support on ppc-aix...
5357 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5358 * features/library-list-aix.dtd: New file.
5359 * solib-aix.h, solib-aix.c: New file.
5360 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5361 (rs6000_find_toc_address_hook): Delete.
5362 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5363 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5364 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5365 "xml-utils.h".
5366 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5367 (vmap_symtab, fixup_breakpoints): Delete.
5368 (rs6000_xfer_shared_libraries): New function.
5369 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5370 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5371 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5372 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5373 (rs6000_xfer_shared_library): New function.
5374 (find_toc_address): Delete.
5375 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5376 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5377 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5378 before creating minimal symbol. Adjust function description
5379 accordingly.
5380 (scan_xcoff_symtab): Replace call to
5381 prim_record_minimal_symbol_and_info by call to
5382 record_minimal_symbol.
5383 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5384 around default_symfile_offsets.
5385 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5386 powerpc-aix targets.
5387 * config/rs6000/nm-rs6000.h: Delete.
5388 * config/powerpc/aix.mh (NAT_FILE): Delete.
5389 (NATDEPFILES): Remove xcoffsolib.o.
5390 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5391 (ALL_TARGET_OBS): Add solib-aix.o.
5392 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5393 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5394 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5395 * xcoffsolib.h, xcoffsolib.c: Delete.
5396
5397 * solib.c (reload_shared_libraries): Remove reference to
5398 SOLIB_CREATE_INFERIOR_HOOK.
5399 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5400 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5401 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5402 comment.
5403 * corelow.c (deprecated_core_resize_section_table): Delete.
5404 * exec.c: Remove include of xcoffsolib.h".
5405 (map_vmap, vmap): Delete.
5406 (exec_close_1): Remove references to vmap.
5407 (exec_file_attach): Remove vmap handling code, and reference
5408 to DEPRECATED_IBM6000_TARGET.
5409 (bfdsec_to_vmap): Delete.
5410 (exec_files_info): Remove block of code handling VMAP.
5411 * infcmd.c (post_create_inferior): Remove reference to
5412 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5413 * infrun.c (follow_exec): Remove reference to
5414 SOLIB_CREATE_INFERIOR_HOOK.
5415 * stack.c (print_frame): Remove reference to PC_SOLIB.
5416 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5417 (dsbt_relocate_main_executable): Likewise.
5418 * solib-frv.c (frv_current_sos): Likewise.
5419
0c4f667c
JB
54202013-05-06 Joel Brobecker <brobecker@adacore.com>
5421
5422 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5423 to target_write_memory and target_read_memory.
5424
726ce67c
JB
54252013-05-06 Joel Brobecker <brobecker@adacore.com>
5426
5427 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5428 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5429
c8c9911f
JB
54302013-05-06 Joel Brobecker <brobecker@adacore.com>
5431
5432 * darwin-nat.c: Replace all "%x" instances in format strings
5433 into "0x%x" throughout.
5434
fda184b6
JB
54352013-05-06 Joel Brobecker <brobecker@adacore.com>
5436
5437 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5438 gdb_assert by call to MACH_CHECK_ERROR.
5439 (darwin_attach_pid): Raise an error rather than a failed
5440 assertion when various system calls failed. Report a warning
5441 instead of raising a failed assertion when PREV_NOT is not NULL
5442 after call to mach_port_request_notification.
5443 (darwin_ptrace_me): Raise an error rather than a failed
5444 assertion when read returns nonzero.
5445
d1d69afb
JB
54462013-05-06 Joel Brobecker <brobecker@adacore.com>
5447
5448 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5449
dc90b24d
JK
54502013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5451
5452 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5453
faab9922
JK
54542013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5455
5456 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5457 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5458 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5459 a stale cleanup. Fix double free of NAME.
5460
e0ea48a0
EZ
54612013-05-04 Eli Zaretskii <eliz@gnu.org>
5462
5463 * windows-nat.c (windows_delete_thread): Accept an additional
5464 argument, the thread's exit code, and announce thread death when
5465 print_thread_events is non-zero and we are deleting a thread that
5466 is not the main thread.
5467 (get_windows_debug_event): Pass thread exit code to
5468 windows_delete_thread.
5469
83b2706a
KB
54702013-05-03 Kevin Buettner <kevinb@redhat.com>
5471
5472 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5473 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5474 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5475 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5476 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5477 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5478 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5479 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5480 (gdbarch_tdep): New struct.
5481 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5482 E_NUM_REGS.
5483 (v850e3v5_register_name): New function.
5484 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5485 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5486 code handling the struct return conventions for the RH850 ABI.
5487 Update all callers.
5488 (v850_eight_byte_align_p): New function.
5489 (v850_push_call_dummy): Push structs by value, not by reference
5490 for the RH850 ABI. Add support for eight byte alignment.
5491 (v850_dbtrap_breakpoint_from_pc): New function.
5492 (v850_gdbarch_init): Add ABI detection code. Register
5493 v850e3v5_register_name for the v850e3v5 architecture. Set the
5494 number of registers for v850e3v5. Register
5495 v850_dbtrap_breakpoint_from_pc as appropriate.
5496 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5497
d445b2f6
DE
54982013-05-03 Doug Evans <dje@google.com>
5499
5500 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5501 of bfd_count_sections.
5502 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5503 * symfile.c (default_symfile_offsets): Ditto.
5504 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5505 one entry, not bfd_count_sections entries.
5506
b3ce41ea
KB
55072013-05-03 Kevin Buettner <kevinb@redhat.com>
5508
5509 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5510 `save' and `restore' register groups. Don't include SPL
5511 or SPH in these groups.
5512 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5513 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5514 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5515 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5516 dwarf2_append_unwinders().
5517
96f7d3f1
PW
55182013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5519
5520 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5521 ignore SIGINT and SIGTRAP in case these internal signals are
5522 caught explicitely.
5523
b9dd1947
JB
55242013-05-01 Joel Brobecker <brobecker@adacore.com>
5525
5526 * darwin-nat.c (darwin_read_write_inferior): Change types
5527 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5528 of copy_count to "mach_msg_type_number_t".
5529 (darwin_read_dyld_info): Change type of parameter
5530 rdaddr to "gdb_byte *".
5531
4ca18a63
JB
55322013-05-01 Joel Brobecker <brobecker@adacore.com>
5533
5534 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5535 of &info->load_map from "char *" to "gdb_byte *".
5536
2b692d32
JB
55372013-05-01 Joel Brobecker <brobecker@adacore.com>
5538
5539 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5540 from "char *" to "gdb_byte *".
5541 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5542
a98c29a0
DE
55432013-04-30 Doug Evans <dje@google.com>
5544
6a506a2d
DE
5545 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5546 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5547 DWO stub. If DWO isn't found, just use stub.
5548 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5549
a98c29a0
DE
5550 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5551 calling init_cutu_and_read_dies.
5552
f92b06da
WT
55532013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5554
5555 * target-descriptions.c (maint_print_c_tdesc_cmd):
5556 Add case to parse structures as register types and
5557 bitfields.
5558
95eebdcc
WT
55592013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5560
5561 * MAINTAINERS (Write After Approval): Add myself to the list.
5562
019c1128
JB
55632013-04-30 Joel Brobecker <brobecker@adacore.com>
5564
5565 * sol-thread.c (rw_common): Change type of parameter "buf"
5566 to "gdb_byte *".
5567 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5568 rw_common to "gdb_byte *" instead of "char *".
5569
5812197c
JB
55702013-04-30 Joel Brobecker <brobecker@adacore.com>
5571
5572 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5573 of local variable msym to const struct bound_minimal_symbol.
5574 Adjust use accordingly.
5575 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5576
ecccb813
TS
55772013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5578
5579 * i386gnu-nat.c (CREG_OFFSET): New macro.
5580 (creg_offset): New array.
5581 (CREG_ADDR): Use creg_offset instead of reg_offset.
5582
f1d02dd4 55832013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5584
5585 * mep-tdep.c (mep_write_pc): Delete.
5586 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5587 Add call to set_gdbarch_pc_regnum.
5588
f1d02dd4 55892013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5590
5591 * common/filestuff.c: Replace #include <dirent.h> by
5592 #include "gdb_dirent.h".
5593
f1d02dd4 55942013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5595
5596 * common/filestuff.c: Replace #include <sys/stat.h> by
5597 #include "gdb_stat.h".
5598
b385a60d
PM
55992013-04-29 Pierre Muller <muller@sourceware.org>
5600
5601 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5602 editCase function rule.
5603 (get_DW_AT_signature_type): Likewise.
5604
d27b54ad
JB
56052013-04-29 Joel Brobecker <brobecker@adacore.com>
5606
5607 * m32r-tdep.c (m32r_write_pc): Delete.
5608 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5609 Add call to set_gdbarch_pc_regnum.
5610
47d21dc5
PM
56112013-04-29 Pierre Muller <muller@sourceware.org>
5612
5613 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5614
9056882e
JB
56152013-04-29 Joel Brobecker <brobecker@adacore.com>
5616
5617 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5618
7ee4732a
YQ
56192013-04-28 Yao Qi <yao@codesourcery.com>
5620
5621 * solib-dsbt.c (fetch_loadmap): Re-indent.
5622 (displacement_from_map, enable_break2): Likewise.
5623 (dsbt_relocate_section_addresses): Likewise.
5624
2260af53 56252013-04-26 Joel Brobecker <brobecker@adacore.com>
5626
5627 GDB 7.6 released.
5628
ff546935
TT
56292013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5630
5631 PR corefiles/14983:
5632 * dwarf2read.c (process_full_comp_unit): Always create a static
5633 block.
5634
40fb6c5e
HZ
56352013-04-25 Hui Zhu <hui@codesourcery.com>
5636
5637 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5638 to loc->cmd_bytecode.
5639
74e04d1c
DE
56402013-04-24 Doug Evans <dje@google.com>
5641
5642 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5643
3cf62c1d
KS
56442013-04-22 Keith Seitz <keiths@redhat.com>
5645
5646 * tracepoint.c (trace_save): Call the writer's start method.
5647
bf9e4d0c
MB
56482013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5649
5650 PR gdb/10462
5651 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5652 before argument.
5653
5d71132c
TT
56542013-04-23 Tom Tromey <tromey@redhat.com>
5655
5656 * common/filestuff.c: Check USE_WIN32API before including
5657 sys/socket.h.
5658 (HAVE_F_GETFD): New define.
5659 (mark_cloexec): Check HAVE_F_GETFD.
5660 (gdb_open_cloexec): Change 'mode' to unsigned long.
5661 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5662 (gdb_pipe_cloexec): Check HAVE_PIPE.
5663 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5664 long.
5665
a11cfd87
HZ
56662013-04-23 Hui Zhu <hui@codesourcery.com>
5667
5668 PR gdb/15293
a11cfd87
HZ
5669 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5670
2d9442cc
HZ
56712013-04-23 Hui Zhu <hui@codesourcery.com>
5672
5673 PR gdb/15165
2d9442cc
HZ
5674 * breakpoint.c (dprintf_print_recreate): New.
5675 (save_breakpoints): Let it not save dprintf commands.
5676 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5677
614c279d
TT
56782013-04-22 Tom Tromey <tromey@redhat.com>
5679
5680 PR gdb/7912:
5681 * Makefile.in (SFILES): Add filestuff.c
5682 (COMMON_OBS): Add filestuff.o.
5683 (filestuff.o): New target.
5684 * auto-load.c (auto_load_objfile_script_1): Use
5685 gdb_fopen_cloexec.
5686 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5687 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5688 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5689 * common/agent.c (gdb_connect_sync_socket): Use
5690 gdb_socket_cloexec.
5691 * common/filestuff.c: New file.
5692 * common/filestuff.h: New file.
5693 * common/linux-osdata.c (linux_common_core_of_thread)
5694 (command_from_pid, commandline_from_pid, print_source_lines)
5695 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5696 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5697 gdb_fopen_cloexec.
5698 * common/linux-procfs.c (linux_proc_get_int)
5699 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5700 * config.in, configure: Rebuild.
5701 * configure.ac: Don't check for sys/socket.h. Check for
5702 fdwalk, pipe2.
5703 * corelow.c (core_open): Use gdb_open_cloexec.
5704 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5705 * fork-child.c (fork_inferior): Call close_most_fds.
5706 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5707 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5708 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5709 Use gdb_fopen_cloexec.
5710 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5711 gdb_open_cloexec.
5712 (linux_async_pipe): Use gdb_pipe_cloexec.
5713 * remote-fileio.c (remote_fileio_func_open): Use
5714 gdb_open_cloexec.
5715 * remote.c (remote_file_put, remote_file_get): Use
5716 gdb_fopen_cloexec.
5717 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5718 close_most_fds.
5719 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5720 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5721 * solib.c (solib_find): Use gdb_open_cloexec.
5722 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5723 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5724 (tfile_open): Use gdb_open_cloexec.
5725 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5726 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5727 * xml-support.c (xml_fetch_content_from_file): Use
5728 gdb_fopen_cloexec.
5729 * main.c (captured_main): Call notice_open_fds.
5730
5fda2332
EBM
57312013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5732
5733 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5734 'char *' to 'gdb_byte *'.
5735 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5736 'gdb_byte'.
5737
eb6c553b
YQ
57382013-04-22 Yao Qi <yao@codesourcery.com>
5739
5740 * infrun.c: Fix typo in comment.
5741
9991b207
SDJ
57422013-04-22 Andrew Haley <aph@redhat.com>
5743
5744 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5745 instead of "long".
5746
8b4833e3
YQ
57472013-04-20 Yao Qi <yao@codesourcery.com>
5748
5749 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5750 'char *' to 'gdb_byte *'. Cast the return value of
5751 'bt_ctf_get_char_array' to 'gdb_byte *'.
5752
bd3f3b55
PA
57532013-04-19 Pedro Alves <palves@redhat.com>
5754
5755 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5756 -Wpointer-sign.
5757 * configure: Regenerate.
5758
c49e7f76
PA
57592013-04-19 Pedro Alves <palves@redhat.com>
5760
5761 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5762 'void *'.
5763
12ff8552
PA
57642013-04-19 Pedro Alves <palves@redhat.com>
5765
5766 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5767 Change type of 'myaddr' parameter to gdb_byte pointer.
5768 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5769 to 'long long' pointer instead of to 'unsigned long long'.
5770 (monitor_write_memory_block, monitor_read_memory_single)
5771 (monitor_read_memory): Change type of 'myaddr' parameter to
5772 gdb_byte pointer.
5773
9c37696b
PA
57742013-04-19 Pedro Alves <palves@redhat.com>
5775
5776 * record.c (validate_history_size): Make parameter 'setting'
5777 unsigned.
5778
a398505b
PA
57792013-04-19 Pedro Alves <palves@redhat.com>
5780
5781 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5782 to 'gdb_byte *'.
5783
9f8afa72
PA
57842013-04-19 Pedro Alves <palves@redhat.com>
5785
5786 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5787 local to int.
5788
c714b426
PA
57892013-04-19 Pedro Alves <palves@redhat.com>
5790
5791 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5792 * ada-tasks.c (read_fat_string_value): Likewise.
5793
507a579c
PA
57942013-04-19 Pedro Alves <palves@redhat.com>
5795
5796 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5797 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5798 'offset', and adjust.
5799
f9d83a0b
PA
58002013-04-19 Pedro Alves <palves@redhat.com>
5801
5802 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5803 (read_index_from_section): Add cast to 'char *'.
5804
745eb4fd
PA
58052013-04-19 Pedro Alves <palves@redhat.com>
5806
5807 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5808
db5be46f
PA
58092013-04-19 Pedro Alves <palves@redhat.com>
5810
5811 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5812
0f928d68
PA
58132013-04-19 Pedro Alves <palves@redhat.com>
5814
5815 * record-full.c (record_full_get_bookmark): Change local 'ret'
5816 type to char * and add cast to gdb_byte *.
5817 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5818 string.
5819 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5820
89f6d837
PA
58212013-04-19 Pedro Alves <palves@redhat.com>
5822
5823 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5824 * python/py-prettyprint.c (print_string_repr): Change type of
5825 'output' local to char *. Add cast to gdb_byte * in
5826 LA_PRINT_STRING call.
5827 (print_children): Change type of 'output' local to char *.
5828 * python/py-value.c (valpy_string): Add cast to const char * in
5829 PyUnicode_Decode call.
5830
ce6ec7d8
PA
58312013-04-19 Pedro Alves <palves@redhat.com>
5832
5833 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5834 and change its type to 'const char *'. Adjust.
5835 (mips_send_packet): Add cast to 'char *', and remove cast to
5836 'unsigned char *'.
5837 (mips_receive_packet): Remove cast to 'unsigned char *'.
5838 (mips_load_srec): Use bfd_byte.
5839 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5840 (pmon_checkset): Make 'value' parameter unsigned.
5841
fda0389f
PA
58422013-04-19 Pedro Alves <palves@redhat.com>
5843
5844 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5845
bc20a4af
PA
58462013-04-19 Pedro Alves <palves@redhat.com>
5847
5848 * remote.c (remote_write_bytes_aux, compare_sections_command)
5849 (remote_read_qxfer)
5850 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5851 (remote_hostio_readlink, remote_bfd_iovec_pread)
5852 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5853 binary buffer, and char when buffer is used as string.
5854 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5855 (trace_save, tfile_open, traceframe_walk_blocks)
5856 (tfile_fetch_registers): Likewise.
5857
c628b528
PA
58582013-04-19 Pedro Alves <palves@redhat.com>
5859
5860 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5861 buffer and size_t size. Adjust.
5862 * ser-base.h (ser_base_write): Adjust.
5863 * ser-go32.c (cnts): Change type to size_t.
5864 (dos_write): Change prototype -- take 'void *'
5865 buffer and size_t size. Adjust.
5866 (dos_info): Print elements of 'cnts' as unsigned long.
5867 * serial.c (serial_write): Likewise.
5868 * serial.h (serial_write): Adjust.
5869 (struct serial_ops) <write>: Change prototype -- take 'void *'
5870 buffer and size_t size. Adjust.
5871
51a5cd90
PA
58722013-04-19 Pedro Alves <palves@redhat.com>
5873
5874 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5875 gdb_byte *.
5876 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5877
a9933661
PA
58782013-04-19 Pedro Alves <palves@redhat.com>
5879
5880 * alpha-tdep.c (alpha_extract_return_value): Use
5881 regcache_cooked_read_unsigned to read 'v0'.
5882
19afdd07
PA
58832013-04-19 Pedro Alves <palves@redhat.com>
5884
5885 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5886 parameters 'at', 'as' and 'offset' to uint32_t.
5887
96b32e50
PA
58882013-04-19 Pedro Alves <palves@redhat.com>
5889
5890 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5891 'is64' to signed 'int'.
5892
eb1bd1fb
PA
58932013-04-19 Pedro Alves <palves@redhat.com>
5894
5895 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5896 parameter to int *.
5897
463920bf
PA
58982013-04-19 Pedro Alves <palves@redhat.com>
5899
5900 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5901 'insnbuf' buffer type to unsigned int[].
5902
70242eb1
PA
59032013-04-19 Pedro Alves <palves@redhat.com>
5904
5905 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5906
9d1dd0e2
PA
59072013-04-19 Pedro Alves <palves@redhat.com>
5908
5909 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5910 unsigned long *.
5911
44096aee
PA
59122013-04-19 Pedro Alves <palves@redhat.com>
5913
5914 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5915 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5916 UINT_MAX.
5917 * mips-tdep.c (heuristic_fence_post): Change type to int.
5918 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5919
e4286e57
PA
59202013-04-19 Pedro Alves <palves@redhat.com>
5921
5922 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5923 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5924 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5925
001f13d8
PA
59262013-04-19 Pedro Alves <palves@redhat.com>
5927
5928 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5929 it to get a string view of the byte buffer.
5930 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5931 type to gdb_byte *. Adjust.
5932 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5933 Change local to char *.
5934 * solib-darwin.c (find_program_interpreter): Change return type to
5935 char *. Adjust.
5936 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5937 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5938 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5939 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5940 * solib-svr4.c (find_program_interpreter): Change return type to
5941 char *. Adjust.
5942 (enable_break): Change local 'interp_name' to char *.
5943 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5944 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5945 (spu_pseudo_register_write_spu): Use char for string buffer.
5946 Adjust.
5947 (info_spu_event_command, info_spu_signal_command): Add casts to
5948 'char *'.
5949
948f8e3d
PA
59502013-04-19 Pedro Alves <palves@redhat.com>
5951
5952 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5953 gdb_byte[].
5954 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5955 * ada-lang.c (ada_value_assign): Use gdb_byte.
5956 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5957 (alphanbsd_sigtramp_offset): Use gdb_byte.
5958 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5959 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5960 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5961 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5962 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5963 * arm-tdep.c (arm_stub_unwind_sniffer)
5964 (arm_displaced_init_closure): Use gdb_byte.
5965 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5966 (arm_default_thumb_le_breakpoint)
5967 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5968 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5969 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5970 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5971 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5972 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5973 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5974 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5975 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5976 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5977 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5978 (cris_store_return_value, cris_extract_return_value): Use
5979 gdb_byte.
5980 (constraint): Change type of parameter to char * from signed
5981 char*. Use gdb_byte.
5982 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5983 of local buffer to gdb_byte *.
5984 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5985 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5986 (add_address_entry): Change type of local buffer to gdb_byte[].
5987 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5988 (frv_push_dummy_call): Use gdb_byte.
5989 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5990 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5991 (hppa_hpux_supply_save_state): Use gdb_byte.
5992 * hppa-tdep.c (hppa32_push_dummy_call)
5993 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5994 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5995 (slotN_contents, replace_slotN_contents): Change type of parameter
5996 to gdb_byte *.
5997 (fetch_instruction, ia64_pseudo_register_write)
5998 (ia64_register_to_value, ia64_value_to_register)
5999 (ia64_extract_return_value, ia64_store_return_value)
6000 (ia64_push_dummy_call): Use gdb_byte.
6001 * m32c-tdep.c (m32c_return_value): Remove cast.
6002 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6003 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6004 gdb_byte.
6005 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6006 * mn10300-tdep.c (mn10300_store_return_value)
6007 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6008 gdb_byte.
6009 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6010 (moxie_process_record): Remove casts.
6011 * ppc-ravenscar-thread.c (supply_register_at_address)
6012 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6013 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6014 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6015 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6016 * remote.c (compare_sections_command): Use gdb_byte.
6017 * score-tdep.c (score7_free_memblock): Change type of parameter to
6018 gdb_byte *.
6019 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6020 gdb_byte *. Use gdb_byte.
6021 (sh_push_dummy_call_fpu): Use gdb_byte.
6022 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6023 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6024 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6025 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6026 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6027 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6028 (sh64_store_return_value, sh64_register_convert_to_virtual):
6029 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6030 (sh64_pseudo_register_write): Use gdb_byte.
6031 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6032 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6033 buffer.
6034 (irix_current_sos): Use gdb_byte.
6035 * solib-som.c (som_current_sos): Use gdb_byte.
6036 * sparc-ravenscar-thread.c (supply_register_at_address)
6037 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6038 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6039 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6040 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6041 'gdb_byte *'.
6042 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6043 'gdb_byte *'.
6044 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6045 * xstormy16-tdep.c (xstormy16_extract_return_value)
6046 (xstormy16_store_return_value): Change parameter type to
6047 'gdb_byte *'. Adjust.
6048 (xstormy16_push_dummy_call): Use gdb_byte.
6049 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6050 (call0_analyze_prologue, execute_code): Use gdb_byte.
6051
433730c9
PA
60522013-04-19 Vladimir Kargov <kargov@gmail.com>
6053 Pedro Alves <palves@redhat.com>
6054
6055 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6056 value contents.
6057
ac9ec31b
DE
60582013-04-17 Doug Evans <dje@google.com>
6059
6060 * dwarf2read.c (struct signatured_type): New member type.
6061 (struct attribute): Replace member signatured_type with signature.
6062 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6063 (read_call_site_scope): Call follow_die_ref instead of
6064 follow_die_ref_or_sig.
6065 (read_structure_type): Rewrite handling of signatured types.
6066 (read_enumeration_type): Ditto.
6067 (read_attribute_value): Update.
6068 (build_error_marker_type): New function.
6069 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6070 Don't call error for bad types, just build an error marker type.
6071 (dump_die_shallow): Update.
6072 (follow_die_sig_1): Renamed from follow_die_sig.
6073 Don't call error for bad types, instead return NULL.
6074 (follow_die_sig): New function.
6075 (get_signatured_type, get_DW_AT_signature_type): New functions.
6076
e546e8bb
YZ
60772013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6078
6079 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6080 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6081 function.
e546e8bb 6082
ab116149
YQ
60832013-04-17 Yao Qi <yao@codesourcery.com>
6084
6085 * top.c (print_gdb_configuration): Print configure-time
6086 parameter on using libbabeltrace or not.
6087
488a42b8
PA
60882013-04-16 Pedro Alves <palves@redhat.com>
6089
6090 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6091
f5fb825b
PA
60922013-04-16 Pedro Alves <palves@redhat.com>
6093
85d494ea 6094 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6095 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6096
e1154999
PA
60972013-04-16 Pedro Alves <palves@redhat.com>
6098
6099 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6100 * common/glibc_thread_db.h: ... this new file ...
6101 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6102
e3b50a7f
PA
61032013-04-16 Will Newton <will.newton@gmail.com>
6104 Pedro Alves <palves@redhat.com>
6105
6106 PR build/11881
6107
6108 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6109 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6110 HAVE_THREAD_DB_H.
6111
1c2e4450
PA
61122013-04-16 Pedro Alves <palves@redhat.com>
6113 Eli Zaretskii <eliz@gnu.org>
6114
6115 * NEWS: Mention "set foo unlimited".
6116
4031ecc5
DE
61172013-04-15 Doug Evans <dje@google.com>
6118
19c3d4c9
DE
6119 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6120 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6121 (create_dwo_cu_reader): Renamed from
6122 create_dwo_debug_info_hash_table_reader.
6123 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6124 Remove support for multiple CUs in a DWO file.
6125 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6126
4031ecc5
DE
6127 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6128 instead of phex.
6129 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6130 (create_dwo_in_dwp): Ditto.
6131
b340913d
TT
61322013-04-15 Tom Tromey <tromey@redhat.com>
6133
6134 * NEWS: Move recent entries into "since 7.6" section.
6135
cc16e6c9
TT
61362013-04-15 Tom Tromey <tromey@redhat.com>
6137
6138 PR c++/13588:
6139 * NEWS: Update.
6140 * break-catch-throw.c (struct exception_catchpoint)
6141 <exception_rx, pattern>: New fields.
6142 (fetch_probe_arguments, dtor_exception_catchpoint)
6143 (check_status_exception_catchpoint)
6144 (print_one_detail_exception_catchpoint): New functions.
6145 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6146 Compile regular expression if needed.
6147 (extract_exception_regexp): New function.
6148 (catch_exception_command_1): Use extract_exception_regexp.
6149 (compute_exception): Use fetch_probe_arguments.
6150 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6151 and check_status fields.
6152 * cp-abi.c (cplus_typename_from_type_info): New function.
6153 * cp-abi.h (cplus_typename_from_type_info): Declare.
6154 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6155 * gdb_regex.h (compile_rx_or_error): Declare.
6156 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6157 comment.
6158 (init_gnuv3_ops): Set get_type_from_type_info field.
6159 * probe.c (compile_rx_or_error): Move...
6160 * utils.c (compile_rx_or_error): ... here.
6161
72f1fe8a
TT
61622013-04-15 Tom Tromey <tromey@redhat.com>
6163
6164 PR c++/15176:
6165 * NEWS: Update.
6166 * break-catch-throw.c (compute_exception): New function.
6167 (exception_funcs): New global.
6168 (_initialize_break_catch_throw): Create $_exception.
6169 * cp-abi.c (cplus_type_from_type_info): New function.
6170 * cp-abi.h (cplus_type_from_type_info): Declare.
6171 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6172 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6173 (gnuv3_get_type_from_type_info): New functions.
6174 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6175
fc4746a2
TT
61762013-04-15 Tom Tromey <tromey@redhat.com>
6177
6178 * break-catch-throw.c (struct exception_names): New.
6179 (exception_functions): Change type.
6180 (re_set_exception_catchpoint): Look for SDT probes.
6181
15a73f56
TT
61822013-04-15 Tom Tromey <tromey@redhat.com>
6183
6184 PR c++/10119:
6185 * break-catch-throw.c (exception_functions): New global.
6186 (gnu_v3_exception_catchpoint_ops): Move earlier.
6187 (struct exception_catchpoint): New.
6188 (classify_exception_breakpoint): Rewrite.
6189 (re_set_exception_catchpoint): New function.
6190 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6191 Allocate a struct exception_catchpoint.
6192 (catch_exception_command_1): Update.
6193 (initialize_throw_catchpoint_ops): Set 're_set' method.
6194
916703c0
TT
61952013-04-15 Tom Tromey <tromey@redhat.com>
6196
6197 * Makefile.in (SFILES): Add break-catch-throw.c
6198 (COMMON_OBS): Add break-catch-throw.o.
6199 * break-catch-throw.c: New file.
6200 * breakpoint.c: Move exception-catching code to new file.
6201 (ep_parse_optional_if_clause): No longer static.
6202 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6203
6e72ca20
TT
62042013-04-15 Tom Tromey <tromey@redhat.com>
6205
6206 PR c++/9065:
6207 * NEWS: Update.
6208 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6209 * c-exp.y (TYPEID): New token.
6210 (exp): Add new TYPEID productions.
6211 (ident_tokens): Add "typeid".
6212 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6213 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6214 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6215 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6216 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6217 case.
6218 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6219 (build_std_type_info_type, gnuv3_get_typeid_type)
6220 (gnuv3_get_typeid): New functions.
6221 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6222 new fields on ABI object.
6223 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6224 * std-operator.def (OP_TYPEID): New.
6225
715c6909
TT
62262013-04-15 Tom Tromey <tromey@redhat.com>
6227
6228 * elfread.c (elf_symtab_read): Install versioned symbol under
6229 unversioned name as well.
6230
8de20a37
TT
62312013-04-15 Tom Tromey <tromey@redhat.com>
6232
6233 PR c++/11990:
6234 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6235 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6236 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6237 (gdb_demangle): New function.
6238 * cp-support.h (gdb_demangle): Declare.
6239 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6240 (dwarf2_name): Use gdb_demangle.
6241 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6242 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6243 suffixes from name.
6244 (gnuv3_print_method_ptr): Use gdb_demangle.
6245 * jv-lang.c (java_demangle): Use gdb_demangle.
6246 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6247 * language.c (unk_lang_demangle): Use gdb_demangle.
6248 * symtab.c (symbol_find_demangled_name)
6249 (demangle_for_lookup): Use gdb_demangle.
6250
591f19e8
TT
62512013-04-15 Tom Tromey <tromey@redhat.com>
6252
6253 PR c++/12824:
6254 * NEWS: Update.
6255 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6256 New constant.
6257 (classify_exception_breakpoint): New function.
6258 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6259 (print_mention_exception_catchpoint)
6260 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6261 (catch_exception_command_1): Handle "rethrow" catchpoint.
6262 (catch_rethrow_command): New function.
6263 (_initialize_breakpoint): Add "catch rethrow" command.
6264
4d40cad2
PM
62652013-04-15 Pierre Muller <muller@sourceware.org>
6266
6267 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6268 set_gdbarch_write_pc as deprecated anymore.
6269
30bcb456
JB
62702013-04-15 Joel Brobecker <brobecker@adacore.com>
6271
6272 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6273 declarations.
6274
da9160e4
YQ
62752013-04-13 Yao Qi <yao@codesourcery.com>
6276
6277 * ctf.c (_initialize_ctf): Include "completer.h".
6278 Call add_target_with_completer instead of add_target.
6279
39ed5604
JK
62802013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 Fix GDB regression related to PR binutils/14813.
6283 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6284 * minidebug.c (lzma_close): Add return value comment.
6285 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6286 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6287 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6288
62892013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6290
6291 * config.in: Regenerate.
6292
d521ce57
TT
62932013-04-12 Tom Tromey <tromey@redhat.com>
6294
6295 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6296 const.
6297 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6298 (struct die_reader_specs) <buffer>: Likewise.
6299 (die_reader_func_ftype): Make 'info_ptr' const.
6300 (struct line_header) <include_dirs, statement_program_start,
6301 statement_program_end>: Now const.
6302 (struct file_entry) <name>: Likewise.
6303 (struct partial_die_info) <sibling>: Likewise.
6304 (struct dwarf_block) <data>: Likewise.
6305 (dwarf2_read_section): Remove cast.
6306 (dwarf2_get_section_info): Make 'bufp' const.
6307 (read_index_from_section): Constify.
6308 (dw2_get_file_names_reader): Make 'info_ptr' const.
6309 (dw2_get_primary_filename_reader): Likewise.
6310 (read_comp_unit_head): Make 'info_ptr' and return type const.
6311 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6312 Likewise.
6313 (read_abbrev_offset): Constify.
6314 (dwarf2_create_include_psymtab): Make 'name' const.
6315 (create_debug_types_hash_table): Update.
6316 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6317 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6318 Constify.
6319 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6320 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6321 (read_comp_units_from_section): Constify.
6322 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6323 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6324 const.
6325 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6326 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6327 (create_dwp_hash_table, dwarf2_ranges_read)
6328 (dwarf2_record_block_ranges): Constify.
6329 (read_die_and_children, read_die_and_siblings_1)
6330 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6331 const.
6332 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6333 (abbrev_table_read_table): Constify.
6334 (load_partial_dies): Make 'info_ptr' const.
6335 (read_partial_die, read_attribute_value, read_attribute): Make
6336 'info_ptr' and return type const.
6337 (read_address, read_initial_length)
6338 (read_checked_initial_length_and_offset, read_offset)
6339 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6340 const.
6341 (read_direct_string): Make 'buf' and return type const.
6342 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6343 (read_indirect_string): Make return type const.
6344 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6345 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6346 'info_ptr' const.
6347 (read_str_index): Make return type const.
6348 (add_include_dir): Make 'include_dir' const.
6349 (add_file_name): Make 'name' const.
6350 (dwarf_decode_line_header): Constify.
6351 (psymtab_include_file_name): Make return type const.
6352 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6353 (dwarf2_start_subfile): Make 'filename' const.
6354 (dwarf2_const_value_attr): Make 'bytes' const.
6355 (read_signatured_type_reader): Make 'info_ptr' const.
6356 (decode_locdesc): Constify.
6357 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6358 const.
6359 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6360 'mac_end', and return type const.
6361 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6362 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6363 type const.
6364 (per_cu_header_read_in): Constify.
6365 * symfile.h (dwarf2_get_section_info): Update.
6366
d47a1bc1
TT
63672013-04-12 Tom Tromey <tromey@redhat.com>
6368
6369 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6370
6eaaf48b
EZ
63712013-04-12 Eli Zaretskii <eliz@gnu.org>
6372
fc4c25bf 6373 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6374 * top.c (print_gdb_configuration): New function, displays the
6375 details about GDB configure-time parameters.
6376 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6377 * cli/cli-cmds.c (show_configuration): New function.
6378 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6379 * main.c (captured_main) <print_configuration>: New static var.
6380 <long_options>: Use it.
6381 If --configuration was given, call print_gdb_configuration.
6382
b292c783
JK
63832013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6384 Pedro Alves <palves@redhat.com>
6385
6386 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6387 (generated_files): Add gcore.
6388 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6389 HAVE_NATIVE_GCORE_HOST.
6390 (gcore): New.
6391 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6392 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6393 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6394 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6395 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6396 Add HAVE_NATIVE_GCORE_HOST.
6397 * configure: Regenerate.
6398 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6399 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6400 AC_CONFIG_FILES for gcore.
6401 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6402 gdb_have_gcore.
6403 * gdb_gcore.sh: Rename to ...
6404 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6405 and GCORE_TRANSFORM_NAME substitutions.
6406
c96b3c4f
JK
6407 Fix parsing tabs in ${gdb_target_obs}.
6408 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6409
d6cb50a2
JK
64102013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6411
6412 * remote.c (unpush_and_perror): Add output message final dot.
6413
cf2cb5ec
YQ
64142013-04-11 Yao Qi <yao@codesourcery.com>
6415
6416 * tracepoint.c (tfile_interp_line): Fit parameters line and
6417 utpp in one line.
6418
07293be4
JB
64192013-04-10 Joel Brobecker <brobecker@adacore.com>
6420
6421 * solib.c (solib_map_sections): Remove code overwriting
6422 SO->SO_NAME with the bfd's filename.
6423
f81d1120
PA
64242013-04-10 Pedro Alves <palves@redhat.com>
6425
6426 * cli/cli-decode.c (integer_unlimited_completer): New function.
6427 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6428 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6429 completer.
6430 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6431 (is_unlimited_literal): New function.
6432 (do_set_command): Handle literal "unlimited" arguments.
6433 * frame.c (_initialize_frame) <set backtrace limit>: Document
6434 "unlimited".
6435 * printcmd.c (_initialize_printcmd) <set print
6436 max-symbolic-offset>: Add help text.
6437 * record-full.c (_initialize_record_full) <set record full
6438 insn-number-max>: Likewise.
6439 * record.c (_initialize_record) <set record
6440 instruction-history-size, set record function-call-history-size>:
6441 Add help text.
6442 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6443 help text.
6444 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6445 Likewise.
6446 * source.c (_initialize_source) <set listsize>: Add help text.
6447 * utils.c (initialize_utils) <set height, set width>: Likewise.
6448 <set pagination>: Mention "set height unlimited".
6449 * valprint.c (_initialize_valprint) <set print elements, set print
6450 repeats>: Document "unlimited".
6451
2f9d54cf
PA
64522013-04-10 Pedro Alves <palves@redhat.com>
6453
6454 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6455 instead of disconnect_tracing.
6456 * infcmd.c (detach_command, disconnect_command): Call
6457 query_if_trace_running. Adjust.
6458 * top.c: Include "tracepoint.h".
6459 (quit_target): Delete. Contents moved ...
6460 (quit_force): ... here. Wrap each stage of teardown in
6461 TRY_CATCH. Call disconnect_tracing before detaching.
6462
393fd4c3
YQ
64632013-04-10 Hui Zhu <hui@codesourcery.com>
6464 Yao Qi <yao@codesourcery.com>
6465
6466 * configure.ac: Check libbabeltrace is installed.
6467 * config.in: Regenerate.
6468 * configure: Regenerate.
6469 * Makefile.in (LIBBABELTRACE): New.
6470 (CLIBS): Add LIBBABELTRACE.
6471 * ctf.c: Include "exec.h".
6472 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6473 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6474 (ctf_save_metadata_header): Define new type aliases in
6475 metadata.
6476 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6477 in metadata. Start a new faked packet for trace status.
6478 (ctf_write_status): Write trace status to CTF.
6479 (ctf_write_uploaded_tsv): Write TSV to CTF.
6480 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6481 (ctf_write_definition_end): End the faked packet.
6482
6483 (ctx, ctf_iter, trace_dirname): New.
6484 (start_pos): New variable.
6485 (ctf_destroy, ctf_open_dir, ctf_open): New.
6486 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6487 macros.
6488 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6489 (ctf_fetch_registers, ctf_xfer_partial): New.
6490 (ctf_get_trace_state_variable_value): New.
6491 (ctf_get_tpnum_from_frame_event): New.
6492 (ctf_get_traceframe_address): New.
6493 (ctf_trace_find, ctf_has_stack): New.
6494 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6495 (ctf_get_trace_status, ctf_read_status): New.
6496 (_initialize_ctf): New.
6497 * tracepoint.c (get_tracepoint_number): New
6498 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6499 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6500 * tracepoint.h: ... here.
6501 (get_tracepoint_number): Declare it.
6502 (get_uploaded_tsv): Declare it.
6503
6504 * NEWS: Mention new configure option.
6505
5c2b4418
HZ
65062013-04-10 Pedro Alves <palves@redhat.com>
6507 Hui Zhu <hui@codesourcery.com>
6508
6509 * breakpoint.c (dprintf_re_set): New.
6510 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6511 to dprintf_re_set.
6512
a5c66735
JB
65132013-04-09 Joel Brobecker <brobecker@adacore.com>
6514
6515 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6516 Remove solib-svr4.o from the list.
6517
9e77999c
JB
65182013-04-09 Joel Brobecker <brobecker@adacore.com>
6519
6520 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6521 Use gdb_assert_not_reached instead of invalid boolean expression.
6522
1927e618
PA
65232013-04-09 Pedro Alves <palves@redhat.com>
6524
6525 * remote.c (unpush_and_perror): New function.
6526 (readchar, remote_serial_write): Use it.
6527
10782d74
MM
65282013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6529
6530 * NEWS: Mention new btrace RSP packets.
6531
4c8429ef
TT
65322013-04-08 Tom Tromey <tromey@redhat.com>
6533
6534 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6535 long.
6536
8625fc1b
TT
65372013-04-08 Tom Tromey <tromey@redhat.com>
6538
6539 * maint.c (print_bfd_section_info): Print the section index.
6540 * symmisc.c (dump_msymbols): Print the section index.
6541
e27d198c
TT
65422013-04-08 Tom Tromey <tromey@redhat.com>
6543
6544 PR symtab/8424:
6545 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6546 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6547 * breakpoint.c (resolve_sal_pc): Update.
6548 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6549 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6550 (minsym_lookup_iterator_cb): Use it.
6551 (default_read_var_value): Update.
6552 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6553 Update.
6554 * infcmd.c (jump_command): Update.
6555 * linespec.c (minsym_found): Update.
6556 * maint.c (maintenance_translate_address): Update.
6557 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6558 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6559 * parse.c (write_exp_msymbol): Update.
6560 * printcmd.c (address_info): Update.
6561 * psymtab.c (find_pc_sect_psymbol): Update.
6562 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6563 SYMBOL_OBJ_SECTION.
6564 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6565 Don't initialize SYMBOL_OBJ_SECTION.
6566 * spu-tdep.c (spu_catch_start): Update.
6567 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6568 * symmisc.c (dump_msymbols, print_symbol): Update.
6569 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6570 how fallback section is computed.
6571 (fixup_symbol_section): Update.
6572 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6573 Update.
6574 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6575 Initialize SYMBOL_SECTION.
6576 * symtab.h (struct general_symbol_info) <section>: Update comment.
6577 <obj_section>: Remove.
6578 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6579 (SYMBOL_OBJFILE): New macro.
6580
e6dc44a8
TT
65812013-04-08 Tom Tromey <tromey@redhat.com>
6582
6583 * coffread.c (record_minimal_symbol): Update.
6584 * dbxread.c (record_minimal_symbol): Update.
6585 * elfread.c (record_minimal_symbol): Update.
6586 * machoread.c (macho_symtab_add_minsym): Update.
6587 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6588 Update.
6589 * minsyms.c (prim_record_minimal_symbol): Update.
6590 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6591 argument.
6592 (prim_record_minimal_symbol_and_info): Likewise.
6593 * minsyms.h (prim_record_minimal_symbol_full)
6594 (prim_record_minimal_symbol_and_info): Update.
6595 * symtab.c (allocate_symbol, initialize_symbol)
6596 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6597 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6598 Update.
6599
36192a8d
TT
66002013-04-08 Tom Tromey <tromey@redhat.com>
6601
6602 PR symtab/8423:
6603 * solib-som.c (som_solib_section_offsets): Use BFD section
6604 indices. Set offsets for all sections.
6605 * somread.c (som_symtab_read): Compute BFD section for
6606 symbol. Use prim_record_minimal_symbol_and_info.
6607 (som_symfile_read): Fix comment.
6608 (struct find_section_offset_arg): New.
6609 (find_section_offset, set_section_index): New functions.
6610 (som_symfile_offsets): Use set_section_index to compute
6611 section indices.
6612
65cf3563
TT
66132013-04-08 Tom Tromey <tromey@redhat.com>
6614
6615 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6616 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6617 gdb_bfd_section_index.
6618 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6619 New functions.
6620 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6621 Declare.
6622 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6623 Update.
6624 * objfiles.c (add_to_objfile_sections_full): New function.
6625 (add_to_objfile_sections): Use it.
6626 (build_section_table): Rewrite.
6627 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6628 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6629 (struct objfile) <sections>: Update comment.
6630 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6631 is NULL.
6632 (ALL_OBJSECTIONS): Use it.
6633 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6634 * solib-frv.c (frv_relocate_main_executable): Update.
6635 * solib-target.c (solib_target_relocate_section_addresses):
6636 Use gdb_bfd_section_index.
6637 * symfile.c (build_section_addr_info_from_section_table):
6638 Use gdb_bfd_section_index.
6639 (build_section_addr_info_from_bfd, place_section): Likewise.
6640 * symtab.c (fixup_section): Update.
6641 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6642
7cbd4a93
TT
66432013-04-08 Tom Tromey <tromey@redhat.com>
6644
6645 * minsyms.h (struct bound_minimal_symbol): New.
6646 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6647 Remove objfile argument.
6648 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6649 Return bound_minimal_symbol.
6650 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6651 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6652 Return bound_minimal_symbol.
6653 (in_gnu_ifunc_stub): Update.
6654 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6655 Remove 'objfile_p' argument.
6656 (lookup_solib_trampoline_symbol_by_pc): Update.
6657 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6658 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6659 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6660 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6661 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6662 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6663 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6664 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6665 stack.c, symtab.c, tui/tui-disasm.c: Update.
6666
f85f34ed
TT
66672013-04-08 Tom Tromey <tromey@redhat.com>
6668
6669 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6670 Use symbol's obstack, not an objfile.
6671 * coffread.c (process_coff_symbol): Update.
6672 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6673 * jv-lang.c (add_class_symbol): Update.
6674 * mdebugread.c (new_symbol): Update.
6675 * minsyms.c (prim_record_minimal_symbol_full)
6676 (terminate_minimal_symbol_table): Update.
6677 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6678 * stabsread.c (define_symbol, read_enum_type): Update.
6679 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6680 Handle Ada specially.
6681 (symbol_set_language): Add 'obstack' argument.
6682 (symbol_set_names): Update.
6683 (symbol_natural_name, symbol_demangled_name): Always use
6684 ada_decode_symbol.
6685 * symtab.h (struct general_symbol_info)
6686 <language_specific::obstack>: New field.
6687 <ada_mangled>: New field.
6688 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6689 (symbol_set_language): Update.
6690
ccde22c0
TT
66912013-04-08 Tom Tromey <tromey@redhat.com>
6692
6693 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6694 Take an obstack, not an objfile.
6695 (symbol_set_names): Update.
6696 * symtab.h (symbol_set_demangled_name): Update.
6697
e623cf5d
TT
66982013-04-08 Tom Tromey <tromey@redhat.com>
6699
6700 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6701 allocate_symbol.
6702 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6703 (read_func_scope): Call allocate_template_symbol.
6704 (new_symbol_full): Call allocate_symbol.
6705 * jit.c (finalize_symtab): Call allocate_symbol.
6706 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6707 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6708 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6709 (common_block_end): Call allocate_symbol.
6710 * symtab.c (allocate_symbol, initialize_symbol)
6711 (allocate_template_symbol): New functions.
6712 * symtab.c (allocate_symbol, initialize_symbol)
6713 (allocate_template_symbol): Declare.
6714 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6715
f6de8ec2
PA
67162013-04-08 Pedro Alves <palves@redhat.com>
6717 Keith Seitz <keiths@redhat.com>
6718
6719 * breakpoint.c (create_breakpoint): Rename
6720 "parse_condition_and_thread" parameter to "parse_arg". Update
6721 describing comment. If !PARSE_ARG, then error out if ARG is not
6722 the empty string after extracting the location.
6723 * breakpoint.h (create_breakpoint): Rename
6724 "parse_condition_and_thread" parameter to "parse_arg".
6725
f65ce5fb
AR
67262013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6727
6728 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6729
cc5925ad
YQ
67302013-04-07 Yao Qi <yao@codesourcery.com>
6731
6732 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6733 and 'addr2' to CORE_ADDR.
6734 * target.c (update_current_target): Update.
6735 * target.h (struct target_ops) <to_trace_find>: Change parameter
6736 type to CORE_ADDR.
6737 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6738 'addr2' to CORE_ADDR.
6739 (tfile_trace_find): Likewise.
6740 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6741 Change local variable 'addr' to type CORE_ADDR.
6742 * tracepoint.h (tfind_1): Update declaration.
6743
d9ac0664
EZ
67442013-04-06 Eli Zaretskii <eliz@gnu.org>
6745
6746 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6747 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6748 Include main.h.
6749
6750 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6751 here...
6752 * main.h (windows_get_absolute_argv0): ...to here.
6753
02142a6c
DE
67542013-04-05 Doug Evans <dje@google.com>
6755
6756 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6757 (read_cutu_die_from_dwo): Add comments.
6758 (read_structure_type): Update comment.
6759 (read_enumeration_type, read_namespace_type): Update comment.
6760 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6761
43662968
JK
67622013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6765 * Makefile.in (gdb.z): Remove.
6766 (install-only): Remove $(man1dir) and gdb.1 installation.
6767 * gdb.1: Remove.
6768
9ead1b84
JK
67692013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6770
6771 Fix compatibility with Linux kernel 3.8.3.
6772 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6773 to more inner block. Remove parsing of NUMBER from outer block.
6774 Parse NUMBER only if KEYWORD has been identified.
6775
d1794952
JK
67762013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6777
6778 Fix variable name shadowing.
6779 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6780 filename to mapsfilename and update its uses.
6781
9025569e
EZ
67822013-04-05 Eli Zaretskii <eliz@gnu.org>
6783
6784 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6785 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6786 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6787 details of the problem.
6788
c9a6ce02
PA
67892013-04-04 Pedro Alves <palves@redhat.com>
6790 Hui Zhu <hui@codesourcery.com>
6791
6792 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6793 tracepoint, reset its STEP_COUNT and call validate_actionline.
6794
5ff888ce
DE
67952013-04-03 Doug Evans <dje@google.com>
6796
bf6af496
DE
6797 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6798 read_die_and_siblings.
6799 (read_die_and_siblings): New function.
6800 (read_cutu_die_from_dwo): Dump die if requested.
6801 (read_die_and_children): Call read_full_die_1 and
6802 read_die_and_siblings_1.
6803 (read_full_die): Dump die if requested.
6804
6805 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6806
0ac5b59e
DE
6807 * dwarf2read.c (struct dwo_file): New member comp_dir.
6808 Rename member name to dwo_name. All uses updated.
6809 (hash_dwo_file): Include comp_dir in computation.
6810 (eq_dwo_file): Ditto.
6811 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6812 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6813
5ff888ce
DE
6814 * psymtab.c (read_psymtabs_with_fullname): Don't call
6815 psymtab_to_fullname if the basenames are different.
6816
ec83d211
JK
68172013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6818
6819 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6820 New entry about "fullname" presence.
6821
4f4352f7
PA
68222013-04-03 Pedro Alves <palves@redhat.com>
6823
6824 * NEWS: Mention x86_64/Cygwin as new native configuration.
6825
3d1d5ea3
DE
68262013-04-02 Doug Evans <dje@google.com>
6827
6828 * dwarf2read.c (read_structure_type): Fix typo in comment.
6829
be9a8770
PA
68302013-04-02 Pedro Alves <palves@redhat.com>
6831
6832 * NEWS: Mention "set/show debug aarch64", "set/show debug
6833 coff-pe-read" and "set/show debug mach-o".
6834
a46c1e42
PA
68352013-04-02 Pedro Alves <palves@redhat.com>
6836
6837 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6838
3ad18b19
EZ
68392013-04-02 Eli Zaretskii <eliz@gnu.org>
6840
6841 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6842 gdb_string.h is now in common/.
6843
e9f1758d
PA
68442013-04-02 Pedro Alves <palves@redhat.com>
6845
6846 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6847 under "New options".
6848
049dc89b
JK
68492013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6850
6851 Revert this patch:
6852 PR gdb/15275
6853 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6854
c33e31fd
PA
68552013-04-02 Pedro Alves <palves@redhat.com>
6856
6857 PR gdb/15275
6858
6859 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6860 (remote_serial_write): New function.
6861 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6862
ea5f3910
JW
68632013-04-01 Jiong Wang <jiwang@tilera.com>
6864
6865 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6866 "New targets" sections.
ea5f3910 6867
5c6fa7ab
DE
68682013-04-01 Doug Evans <dje@google.com>
6869
c0f78cd4
DE
6870 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6871 (process_enumeration_scope): Simplify.
6872
0186c6a7
DE
6873 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6874 type_unit_group ...
6875 (struct signatured_type): ... to here.
6876 (sig_type_ptr): New typedef.
6877 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6878 out of union 't'. All uses updated.
6879 (dw2_get_file_names_reader): Assert not called for a type unit.
6880 (dw2_get_file_names): Assert not called for a type unit or type
6881 unit group.
6882 (build_type_psymtabs_reader): Assert called for a type unit.
6883 (build_type_psymtab_dependencies): Assert called for a type unit group.
6884
5c6fa7ab
DE
6885 * dwarf2read.c (free_dwo_file): Add comment.
6886 (dwarf2_per_objfile_free): Unref dwp bfd.
6887
b3c0ad67 68882013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
6889
6890 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6891 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6892 (read_pe_exported_syms): Remove unused 'exportix'.
6893 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6894 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6895 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6896
e2df1547
AR
68972013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6898
6899 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6900 (print_it_watchpoint): Remove unused 'bl'.
6901 (say_where): Remove unused 'uiout'.
6902 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6903 (bkpt_breakpoint_hit): Remove unused 'b'.
6904 (internal_bkpt_print_it): Remove unused 'uiout'.
6905 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6906
d81e75c0
TD
69072013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6908
6909 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6910 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6911
5a8b3f62
DE
69122013-03-29 Doug Evans <dje@google.com>
6913
ab5088bf
DE
6914 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6915 Delete arg is_dwp. All callers updated.
6916 (open_dwp_file): New function.
6917 (open_and_init_dwp_file): Call it.
6918 (get_dwp_file): New function.
6919 (lookup_dwo_cutu): Call it.
6920
a8ad1e57
DE
6921 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6922 unnecessary, cleanup.
6923
6296d8c1
DE
6924 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6925
b0c7bfa9
DE
6926 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6927 (lookup_dwo_unit): New function.
6928 (init_cutu_and_read_dies): Move DWO handling to new functions.
6929
c88ee1f0
DE
6930 * dwarf2read.c (struct signatured_type): Tweak comment.
6931 (struct dwo_unit): Tweak comment.
6932 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6933 (create_dwo_debug_info_hash_table): Tweak comment.
6934 (dwarf2_per_cu_offset_and_type): Tweak comment.
6935
5a8b3f62
DE
6936 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6937 missing .debug_types section.
6938
9852c492
YQ
69392013-03-29 Yao Qi <yao@codesourcery.com>
6940
6941 * corelow.c: Include "completer.h".
6942 (_initialize_corelow): Call add_target_with_completer with
6943 argument 'filename_completer'.
6944 * tracepoint.c: Likewise.
6945 * exec.c (_initialize_exec): Likewise.
6946 * target.c (add_target): Rename to ...
6947 (add_target_with_completer): ... this. Call set_cmd_completer
6948 if parameter completer is not NULL.
6949 (add_target): New.
6950 * target.h: Include "command.h".
6951 (add_target_with_completer): Declare it.
6952
af312be7
JB
69532013-03-28 Joel Brobecker <brobecker@adacore.com>
6954
6955 * coffread.c (is_import_fixup_symbol): New function.
6956 (record_minimal_symbol): Use is_import_fixup_symbol to
6957 detect import fixup symbols, and discard them.
6958
8a0459fd
DE
69592013-03-28 Doug Evans <dje@google.com>
6960
0349ea22
DE
6961 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6962 types hash table until we know we need it.
6963
f652bce2
DE
6964 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6965 index numbers.
6966
e4a48d9d
DE
6967 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6968 All callers updated.
6969 (dw2_print_stats): Print #read CUs too.
6970 (dump_die_shallow): Print signatured types better.
6971
8a0459fd
DE
6972 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6973 info_or_types_section to section. All uses updated.
6974 (struct dwo_unit): Ditto.
6975
bd3eecc3
PA
69762013-03-28 Pedro Alves <palves@redhat.com>
6977
6978 * NEWS (New options): New section.
6979 (New options): Mention set/show remote trace-status-packet.
6980 * remote.c (PACKET_qTStatus): New enumeration value.
6981 (remote_get_trace_status): Skip sending qTStatus if the packet is
6982 disabled. Use packet_ok.
6983 (_initialize_remote): Register a configuration command for
6984 qTStatus packet.
6985
41245087
DE
69862013-03-28 Doug Evans <dje@google.com>
6987
7edbb660
DE
6988 * symfile.c (find_separate_debug_file): Add comment.
6989 (terminate_after_last_dir_separator): Tweak comment.
6990
0018ea6f
DE
6991 * dwarf2read.c (create_partial_symtab): Add forward decl.
6992 (create_partial_symtab): Move to be closer to other psymtab functions.
6993 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6994
ca69b9e6
DE
6995 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6996 (compute_symtab_includes): Remove unnecessary forward declaration.
6997 (die_needs_namespace): Add comment marking group of functions for
6998 dwarf2 name computation.
6999
a9375afe
DE
7000 * typeprint.c (_initialize_typeprint): Improve type help text.
7001
41245087
DE
7002 * python/python.c (finish_python_initialization): Provide suggestion
7003 for how to tell gdb to find its python files.
7004
7f7cc265
PA
70052013-03-28 Pedro Alves <palves@redhat.com>
7006
7007 PR gdb/15294
7008
7009 * source.c (_initialize_source): Change back "set listsize" to an
7010 integer command.
7011
ec21308c
JK
70122013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7013
7014 PR gdb/15275
7015 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7016
840a9a1f
PA
70172013-03-27 Pedro Alves <palves@redhat.com>
7018
7019 * top.c (history_size): Rename to ...
7020 (history_size_setshow_var): ... this. Add comment.
7021 (show_commands): Use readline's 'history_length' instead of
7022 computing the history length by calling history_get in a loop.
7023 (set_history_size_command): Error out for sizes over INT_MAX.
7024 Restore previous history size on invalid size.
7025 (init_history): If HISTSIZE is negative, leave the history size as
7026 zero. Add comments.
7027 (init_main): Adjust.
7028
826ecc4d
PA
70292013-03-27 Pedro Alves <palves@redhat.com>
7030
7031 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7032 coff_pe_read" command to "set debug coff-pe-read".
7033
0ccfeeae
MM
70342013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7035
7036 * record.c (command_size_to_target_size): Fix size comparison.
7037 Change parameter type from pointer to integer to integer.
7038 Update all users.
7039
40653b35
PM
70402013-03-27 Pierre Muller <muller@sourceware.org>
7041
7042 * windows-nat.c (handle_output_debug_string): Avoid typecast
7043 from integer of different size warning.
7044
c62fa0e2
JB
70452013-03-26 Joel Brobecker <brobecker@adacore.com>
7046
7047 * windows-nat.c (handle_output_debug_string): Add empty line
7048 after local block variable definition.
7049
2c619be2
PA
70502013-03-26 Pedro Alves <palves@redhat.com>
7051
7052 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7053 (net_open): Make 'polls' local unsigned.
7054
1b493192
PA
70552013-03-26 Pedro Alves <palves@redhat.com>
7056
7057 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7058 a zuinteger command instead of uinteger.
7059
7ee70bf5
PA
70602013-03-26 Pedro Alves <palves@redhat.com>
7061
7062 * record-full.c (record_full_insn_num): Make it unsigned.
7063 (record_full_check_insn_num, record_full_message)
7064 (record_full_registers_change, record_full_xfer_partial): Remove
7065 record_full_insn_max_num check (it's always != 0).
7066 (record_full_info, record_full_restore): Use %u as format string.
7067 (): Use %u as format string.
7068 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7069 check (it's always != 0).
7070
dfd1f9bb
PA
70712013-03-26 Pedro Alves <palves@redhat.com>
7072
7073 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7074 and "set dcache size" commands zuinteger instead of uinteger.
7075
addb4faf
PA
70762013-03-26 Pedro Alves <palves@redhat.com>
7077
7078 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7079 command zuinteger instead of uinteger.
7080
b75bf488
PA
70812013-03-26 Pedro Alves <palves@redhat.com>
7082
7083 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7084 zuinteger instead of uinteger.
7085
42c634cb
PA
70862013-03-26 Pedro Alves <palves@redhat.com>
7087
7088 * record.c (record_insn_history_size_setshow_var)
7089 (record_call_history_size_setshow_var): New globals.
7090 (command_size_to_target_size): New function.
7091 (cmd_record_insn_history, cmd_record_call_history): Use
7092 command_size_to_target_size instead of cast.
7093 (validate_history_size, set_record_insn_history_size)
7094 (set_record_call_history_size): New functions.
7095 (_initialize_record): Install set_record_insn_history_size and
7096 set_record_call_history_size as "set" hooks of "set record
7097 instruction-history-size" and "set record
7098 function-call-history-size".
7099
1fb2e2b5
PA
71002013-03-26 Pedro Alves <palves@redhat.com>
7101
7102 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7103 use with history_max_entries use. Remove FIXME note.
7104
99c819ee
MM
71052013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7106
7107 * record-btrace.c (record_btrace_close): Call
7108 record_btrace_auto_disable.
7109
9f9e404c
JB
71102013-03-25 Joel Brobecker <brobecker@adacore.com>
7111
7112 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7113
ebcdfe33
DE
71142013-03-25 Doug Evans <dje@google.com>
7115
7116 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7117
24955f63
TT
71182013-03-25 Tom Tromey <tromey@redhat.com>
7119
7120 PR symtab/11462:
7121 * c-exp.y (exp): Add new productions for destructors after '.' and
7122 '->'.
7123 (write_destructor_name): New function.
7124
fce632b6
TT
71252013-03-25 Tom Tromey <tromey@redhat.com>
7126
7127 PR c++/9197:
7128 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7129 value_struct_elt, not lookup_struct_elt_type.
7130 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7131 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7132 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7133
a4341769
YQ
71342013-03-25 Yao Qi <yao@codesourcery.com>
7135
7136 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7137 instead of '_mkdir'.
7138
b5981e5a
EZ
71392013-03-23 Eli Zaretskii <eliz@gnu.org>
7140
7141 * windows-nat.c (windows_get_absolute_argv0): New function.
7142 * windows-nat.h: Add its prototype.
7143
7144 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7145 Use IS_DIR_SEPARATOR instead of looking for a character inside
7146 SLASH_STRING. Include filenames.h.
7147 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7148 relocate_gdb_directory works when passed gdb_program_name.
7149 Include windows-nat.h.
7150
598d3636
JK
71512013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7152
7153 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7154 * remote.c (trace_error): Remove the special handling of '2'.
7155 (readchar) <SERIAL_EOF>
7156 (readchar) <SERIAL_ERROR>
7157 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7158 (remote_get_trace_status): Call throw_exception if EX is
7159 TARGET_CLOSE_ERROR.
7160 * utils.c (perror_with_name): Rename to ...
7161 (throw_perror_with_name): ... here. New parameter errcode, describe it
7162 in the function comment.
7163 (perror_with_name): New function wrapper.
7164 * utils.h (enum errors): New stub declaration.
7165 (throw_perror_with_name): New declaration.
7166
82b821e9
PA
71672013-03-22 Pedro Alves <palves@redhat.com>
7168 Yao Qi <yao@codesourcery.com>
7169 Mark Kettenis <kettenis@gnu.org>
7170
7171 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7172 Don't let the user set the value to UINT_MAX directly.
7173 <var_integer>: Don't let the user set the value to INT_MAX
7174 directly.
7175
78a095c3
JK
71762013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 * remote.c (remote_unpush_target): New function.
7179 (remote_open_1): Remove two pop_target calls, update one comment, add
7180 comment to target_preopen call. Replace pop_target call by
7181 remote_unpush_target call.
7182 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7183 pop_target calls by remote_unpush_target calls.
7184
3e74e146
PA
71852013-03-22 Pedro Alves <palves@redhat.com>
7186
7187 * linux-nat.c (linux_child_follow_fork): Don't call
7188 linux_enable_event_reporting.
7189 (linux_handle_extended_wait): Don't call
7190 linux_enable_event_reporting.
7191
a2213dca
PA
71922013-03-22 Pedro Alves <palves@redhat.com>
7193
7194 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7195 use it to rewrite the trampoline buffers with type gdb_byte[], and
7196 undefine the macro. Remove char* cast.
7197
bd712aed
DE
71982013-03-21 Doug Evans <dje@google.com>
7199
7200 New commands "mt set per-command {space,time,symtab} {on,off}".
7201 * NEWS: Add entry.
7202 * event-top.c: #include "maint.h".
7203 * main.c: #include "maint.h".
7204 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7205 timeval-utils.h, maint.h, cli/cli-setshow.h.
7206 (per_command_time, per_command_space): New static globals.
7207 (per_command_symtab): New static global.
7208 (per_command_setlist, per_command_showlist): New static globals.
7209 (struct cmd_stats): Move here from utils.c.
7210 (set_per_command_time): Renamed from set_display_time in utils.c
7211 and moved here. All callers updated.
7212 (set_per_command_space): Renamed from set_display_space in utils.c
7213 and moved here. All callers updated.
7214 (count_symtabs_and_blocks): New function.
7215 (report_command_stats): Moved here from utils.c. Add support for
7216 printing symtab stats. Only print data if enabled before command
7217 executed.
7218 (make_command_stats_cleanup): Ditto.
7219 (sert_per_command_cmd, show_per_command_cmd): New functions.
7220 (_initialize_maint_cmds): Add new commands
7221 mt set per-command {space,time,symtab} {on,off}.
7222 * maint.h: New file.
7223 * top.c: #include "maint.h".
7224 * utils.c (reset_prompt_for_continue_wait_time): New function.
7225 (get_prompt_for_continue_wait_time): New function.
7226 * utils.h (reset_prompt_for_continue_wait_time): Declare
7227 (get_prompt_for_continue_wait_time): Declare.
7228 (make_command_stats_cleanup): Moved to maint.h.
7229 (set_display_time, set_display_space): Moved to maint.h and renamed
7230 to set_per_command_time, set_per_command_space.
7231 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7232 parse_binary_operation and made non-static. Don't call error,
7233 just return an error marker. All callers updated.
7234 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7235
d76488d8
TT
72362013-03-21 Tom Tromey <tromey@redhat.com>
7237
7238 * symfile.c (alloc_section_addr_info): Update header. Don't set
7239 'num_sections' field.
7240 (build_section_addr_info_from_section_table): Set 'num_sections'.
7241 (build_section_addr_info_from_bfd): Likewise.
7242 (build_section_addr_info_from_objfile): Remove dead loop
7243 condition.
7244 (free_section_addr_info): Unconditionally call xfree.
7245 (relative_addr_info_to_section_offsets, addrs_section_sort)
7246 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7247 condition.
7248 (syms_from_objfile_1): Remove dead 'if' condition. Check
7249 'num_sections'.
7250 (add_symbol_file_command): Set 'num_sections'.
7251 * symfile-mem.c (symbol_file_add_from_memory): Set
7252 'num_sections'.
7253 * somread.c (som_symfile_offsets): Remove dead loop condition.
7254 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7255 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7256
a72e5169 72572013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7258
7259 * tracepoint.h (decode_agent_options): Add 'trace_string'
7260 argument.
7261 * tracepoint.c (decode_agent_options): Add 'trace_string'
7262 argument.
7263 (validate_actionline): Update.
7264 (collect_symbol): Add 'trace_string' argument.
7265 (struct add_local_symbols_data) <trace_string>: New field.
7266 (do_collect_symbol): Update.
7267 (add_local_symbols): Add 'trace_string' argument.
7268 (encode_actions_1): Update.
7269 (trace_dump_actions): Update.
7270 * dwarf2loc.c (access_memory): Update.
7271 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7272 * ax-general.c (new_agent_expr): Update.
7273 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7274 (gen_trace_for_return_address): Add argument.
7275 (trace_kludge, trace_string_kludge): Remove.
7276 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7277 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7278 (gen_trace_for_var): Add 'trace_string' argument.
7279 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7280 (gen_printf, agent_eval_command_one): Update.
7281
b2f83c08
TT
72822013-03-21 Tom Tromey <tromey@redhat.com>
7283
7284 PR exp/15109:
7285 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7286 Handle FILENAME token.
7287
9507860e
TT
72882013-03-21 Tom Tromey <tromey@redhat.com>
7289
7290 * c-exp.y (YYPRINT): Define.
7291 (c_print_token): New function.
7292
e403aa4b
TT
72932013-03-21 Tom Tromey <tromey@redhat.com>
7294
7295 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7296
af307d6a
YQ
72972013-03-21 Yao Qi <yao@codesourcery.com>
7298
7299 * ctf.c: Include "gdb_stat.h".
7300 [USE_WIN32API]: New macro 'mkdir'.
7301 (ctf_start): Use permission bits macros if they are defined.
7302
fb81d016
KS
73032013-03-20 Keith Seitz <keiths@redhat.com>
7304
7305 * breakpoint.h (struct breakpoint): Add comment to
7306 extra_string indicating that this member is mallod'd.
7307 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7308
ef0026f0
PA
73092013-03-20 Pedro Alves <palves@redhat.com>
7310
7311 PR gdb/15289
7312
7313 * cli/cli-setshow.c (do_set_command)
7314 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7315 the result of parsing the command argument. Throw error if the
7316 value is greater than UINT_MAX. Print the invalid value with
7317 plongest.
7318 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7319 result of parsing the command argument. Throw error if the value
7320 is greater than INT_MAX, not greater or equal. Also throw error
7321 if the value is less than INT_MIN. Print the invalid value with
7322 plongest.
7323 <var_zuinteger_unlimited>: Throw error if the value is greater
7324 than INT_MAX, not greater or equal.
7325 (do_show_command) <var_integer, var_zinteger,
7326 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7327
24d6c2a0
TT
73282013-03-20 Tom Tromey <tromey@redhat.com>
7329
7330 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7331 if possible.
7332 * dwarf2read.c (read_func_scope): Remove old FIXME.
7333 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7334 not LOC_COMPUTED.
7335 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7336 Unconditionally call via computed ops, if possible.
7337 * printcmd.c (address_info): Unconditionally call via computed ops,
7338 if possible.
7339 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7340 if possible.
7341 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7342 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7343 if possible.
7344
f1e6e072
TT
73452013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7346 Tom Tromey <tromey@redhat.com>
7347
7348 PR symtab/8421:
7349 * coffread.c (coff_register_index): New global.
7350 (process_coff_symbol, coff_read_enum_type): Set
7351 SYMBOL_ACLASS_INDEX.
7352 (_initialize_coffread): Initialize new global.
7353 * dwarf2loc.c (locexpr_find_frame_base_location)
7354 (dwarf2_block_frame_base_locexpr_funcs)
7355 (loclist_find_frame_base_location)
7356 (dwarf2_block_frame_base_loclist_funcs): New.
7357 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7358 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7359 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7360 (dwarf2_block_frame_base_loclist_funcs): New.
7361 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7362 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7363 globals.
7364 (read_func_scope): Update.
7365 (fixup_go_packaging, mark_common_block_symbol_computed)
7366 (var_decode_location, new_symbol_full, dwarf2_const_value):
7367 Set SYMBOL_ACLASS_INDEX.
7368 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7369 (_initialize_dwarf2_read): Initialize new globals.
7370 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7371 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7372 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7373 globals.
7374 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7375 (_initialize_mdebugread): Initialize new globals.
7376 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7377 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7378 (stab_register_index, stab_regparm_index): New globals.
7379 (define_symbol, read_enum_type, common_block_end): Set
7380 SYMBOL_ACLASS_INDEX.
7381 (_initialize_stabsread): Initialize new globals.
7382 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7383 globals.
7384 (MAX_SYMBOL_IMPLS): New define.
7385 (register_symbol_computed_impl, register_symbol_block_impl)
7386 (register_symbol_register_impl)
7387 (initialize_ordinary_address_classes): New functions.
7388 (_initialize_symtab): Call initialize_ordinary_address_classes.
7389 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7390 (struct symbol_impl): New.
7391 (SYMBOL_ACLASS_BITS): New define.
7392 (struct symbol) <aclass, ops>: Remove fields.
7393 <aclass_index>: New field.
7394 (symbol_impls): Declare.
7395 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7396 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7397 (register_symbol_computed_impl, register_symbol_block_impl)
7398 (register_symbol_register_impl): Declare.
7399 (struct symbol_computed_ops): Add location_has_loclist.
7400 (struct symbol_block_ops): New.
7401 (SYMBOL_BLOCK_OPS): New.
7402 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7403
dbccfd4c
TT
74042013-03-20 Tom Tromey <tromey@redhat.com>
7405
7406 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7407 (print_partial_symbols, recursively_search_psymtabs): Use
7408 PSYMBOL_CLASS.
7409
e3f1ad4f
PM
74102013-03-20 Pierre Muller <muller@sourceware.org>
7411
7412 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7413 addtion, subtraction, multiplication and division binary operator.
7414
460014f5
JK
74152013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 Code cleanup.
7418 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7419 * bsd-kvm.c (bsd_kvm_close): Likewise.
7420 * bsd-uthread.c (bsd_uthread_close): Likewise.
7421 * corelow.c (core_close): Likewise.
7422 (core_close_cleanup): Remove parameter quitting from a caller.
7423 * event-top.c (async_disconnect): Likewise.
7424 * exec.c (exec_close_1): Remove parameter quitting.
7425 * go32-nat.c (go32_close): Likewise.
7426 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7427 parameter quitting from a caller.
7428 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7429 variable.
7430 (mips_linux_close): Remove parameter quitting. Remove parameter
7431 quitting from a caller.
7432 * monitor.c (monitor_close): Remove parameter quitting.
7433 * monitor.h (monitor_close): Likewise.
7434 * record-btrace.c (record_btrace_close): Likewise.
7435 * record-full.c (record_full_close): Likewise.
7436 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7437 it also from fprintf_unfiltered.
7438 * remote-mips.c (mips_close): Remove parameter quitting.
7439 (mips_detach): Remove parameter quitting from a caller.
7440 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7441 (gdbsim_close): Remove duplicate function comment. Remove parameter
7442 quitting and remove it also from printf_filtered.
7443 * remote.c (remote_close): Remove parameter quitting.
7444 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7445 * target.c (update_current_target): Remove parameter int from to_close
7446 de_fault.
7447 (push_target, unpush_target, pop_target): Remove parameter quitting from
7448 a caller.
7449 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7450 Remove parameter quitting from a caller.
7451 (target_preopen): Remove parameter quitting from a caller.
7452 (target_close): Remove parameter quitting. Remove parameter quitting
7453 from a caller two times. Remove parameter quitting also from
7454 fprintf_unfiltered.
7455 * target.h (struct target_ops): Remove parameter quitting and as int
7456 from fields to_xclose and to_close.
7457 (extern struct target_ops current_target):
7458 (target_close, pop_all_targets): Remove parameter quitting. Update the
7459 comment.
7460 (pop_all_targets_above): Remove parameter quitting.
7461 * top.c (quit_target): Remove parameter quitting from a caller.
7462 * tracepoint.c (tfile_close): Remove parameter quitting.
7463 * windows-nat.c (windows_close): Remove parameter quitting.
7464
35a7120b
CV
74652013-03-20 Corinna Vinschen <vinschen@redhat.com>
7466
7467 * windows-nat.c (handle_output_debug_string): Replace call
7468 to string_to_core_addr with call to strtoull.
7469
8249a5a9
YQ
74702013-03-20 Yao Qi <yao@codesourcery.com>
7471
7472 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7473 and write it to CTF metadata.
7474
2c15ef43
CV
74752013-03-19 Corinna Vinschen <vinschen@redhat.com>
7476
7477 * windows-nat.c (handle_output_debug_string): Change type of n to
7478 SIZE_T to avoid crash on 64 bit systems.
7479
1cdd3232
EZ
74802013-03-17 Eli Zaretskii <eliz@gnu.org>
7481
7482 * python/python-internal.h (HAVE_SNPRINTF)
7483 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7484 about redefinition of snprintf by pyerrors.h.
7485
3cb2ab1a
SE
74862013-03-15 Steve Ellcey <sellcey@mips.com>
7487
7488 * remote-sim.c (sim_command_completer): Make char arguments const.
7489
9ce98649
TT
74902013-03-15 Tom Tromey <tromey@redhat.com>
7491
7492 PR c++/15116:
7493 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7494
dccee2de
TT
74952013-03-14 Tom Tromey <tromey@redhat.com>
7496
7497 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7498 New fields.
7499 (get_file_crc): Move from symfile.c.
7500 (gdb_bfd_crc): New function.
7501 * gdb_bfd.h (gdb_bfd_crc): Declare.
7502 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7503 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7504 (separate_debug_file_exists): Use gdb_bfd_crc.
7505
cc0ea93c
TT
75062013-03-14 Tom Tromey <tromey@redhat.com>
7507
7508 * symfile.c (get_debug_link_info): Remove.
7509 (find_separate_debug_file_by_debuglink): Use
7510 bfd_get_debug_link_info.
7511
08c23b0d
TT
75122013-03-14 Tom Tromey <tromey@redhat.com>
7513
7514 * symtab.c (error_in_psymtab_expansion): New function.
7515 (lookup_symbol_aux_quick)
7516 (basic_lookup_transparent_type_quick): Remove "last resort"
7517 code. Use error_in_psymtab_expansion.
7518
288e77a7
JK
75192013-03-14 Doug Evans <dje@google.com>
7520 Jan Kratochvil <jan.kratochvil@redhat.com>
7521
7522 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7523 any successful compare_filenames_for_search or FILENAME_CMP.
7524 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7525 * symtab.c (iterate_over_some_symtabs): Likewise.
7526
8f1b8b82
JK
75272013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * source.c (print_source_lines_base): Make a local copy of
7530 symtab_to_fullname.
7531
23eb71e4
JK
75322013-03-14 Hui Zhu <hui_zhu@mentor.com>
7533 Jan Kratochvil <jan.kratochvil@redhat.com>
7534
7535 * source.c (print_source_lines_base): Suppress "file" for TUI.
7536
bb869963
SDJ
75372013-03-14 Keith Seitz <keiths@redhat.com>
7538 Alan Matsuoka <alanm@redhat.com>
7539
7540 PR c++/15203
7541 PR c++/15210
7542 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7543 TYPE_CODE_METHOD.
7544 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7545 symbols.
7546
d6682f9e
YQ
75472013-03-14 Yao Qi <yao@codesourcery.com>
7548
7549 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7550 status to tfile if trace is stopped by command 'tstop'.
7551
a22fa6e4
YQ
75522013-03-14 Yao Qi <yao@codesourcery.com>
7553
7554 * tracepoint.c (tfile_write_status): Write trace notes and user
7555 name into tfile if they are not NULL.
7556
d0353e76
YQ
75572013-03-14 Hui Zhu <hui@codesourcery.com>
7558 Yao Qi <yao@codesourcery.com>
7559
7560 * Makefile.in (REMOTE_OBS): Add ctf.o.
7561 (SFILES): Add ctf.c.
7562 (HFILES_NO_SRCDIR): Add ctf.h.
7563 * ctf.c, ctf.h: New files.
7564 * tracepoint.c: Include 'ctf.h'.
7565 (collect_pseudocommand): Remove static.
7566 (trace_save_command): Parse option "-ctf".
7567 Produce different trace file writers per option.
7568 Adjust output message.
7569 (trace_save_tfile, trace_save_ctf): New.
7570 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7571 * mi/mi-main.c: Include 'ctf.h'.
7572 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7573 trace_save_tfile or trace_save_ctf.
7574 * NEWS: Mention these changes.
7575
3f43bc09
YQ
75762013-03-14 Yao Qi <yao@codesourcery.com>
7577
7578 * tracepoint.c (trace_file_writer_xfree): New.
7579 (struct tfile_writer_data): New.
7580 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7581 (tfile_write_header, tfile_write_regblock_type): New.
7582 (tfile_write_status, tfile_write_uploaded_tsv): New.
7583 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7584 (tfile_write_raw_data, (tfile_end): New.
7585 (tfile_write_ops): New global variable.
7586 (TRACE_WRITE_R_BLOCK): New macro.
7587 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7588 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7589 (TRACE_WRITE_V_BLOCK): New macro.
7590 (trace_save): Add extra one parameter WRITER. Make it static.
7591 Use WRITER to writer trace.
7592 (tfile_trace_file_writer_new): New.
7593 (trace_save_command): Caller update.
7594 (trace_save_tfile): Write trace data in TFILE format.
7595 * tracepoint.h (struct trace_frame_write_ops): New.
7596 (struct trace_file_write_ops): New.
7597 (struct trace_file_writer): New.
7598 (trace_save): Remove its declaration.
7599 (trace_save_tfile): Declare it.
7600 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7601 instead of trace_save.
7602
58665b40
PA
76032013-03-13 Pedro Alves <palves@redhat.com>
7604
7605 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7606
10217050
PA
76072013-03-13 Pedro Alves <palves@redhat.com>
7608
7609 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7610 commented out code.
7611 * demangle.c (current_demangling_style_string): Make it const.
7612 (set_demangling_command): Assert the demangling style is known.
7613 Remove all handling of unknown styles. Set
7614 'current_demangling_style_string' to an element of the
7615 demangling_style_names array.
7616 (set_demangling_style): Delete.
7617 (_initialize_demangler): Set current_demangling_style_string to the
7618 element of the demangling_style_names array that corresponds to
7619 the default demangling style. Remove FIXME note. Don't call
7620 set_demangling_style.
7621 * gdb-demangle.h (set_demangling_style): Remove declaration.
7622
6f937416
PA
76232013-03-13 Pedro Alves <palves@redhat.com>
7624
7625 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7626 fields const.
7627 (ada_make_symbol_completion_list): Make "text0" parameter const.
7628 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7629 * breakpoint.c (condition_completer): Make "text" and "word"
7630 parameters const. Adjust.
7631 (check_tracepoint_command): Adjust to validate_actionline
7632 prototype change.
7633 (catch_syscall_completer): Make "text" and "word" parameters
7634 const.
7635 * cli/cli-cmds.c (show_user): Make "comname" local const.
7636 (valid_command_p): Make "command" parameter const.
7637 (alias_command): Make "alias_prefix" and "command_prefix" locals
7638 const.
7639 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7640 (add_alias_cmd): Make "name" and "oldname" parameters const.
7641 Adjust. No longer make copy of OLDNAME.
7642 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7643 (add_setshow_cmd_full, add_setshow_enum_cmd)
7644 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7645 (add_setshow_filename_cmd, add_setshow_string_cmd)
7646 (add_setshow_string_noescape_cmd)
7647 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7648 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7649 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7650 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7651 Make "name" parameter const.
7652 (help_cmd): Rename "command" parameter to "arg". New const local
7653 "command".
7654 (find_cmd): Make "command" parameter const.
7655 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7656 deprecated_cmd_warning prototype change.
7657 (undef_cmd_error): Make "cmdtype" parameter const.
7658 (lookup_cmd): Make "line" parameter const.
7659 (deprecated_cmd_warning): Change type of "text" parameter to
7660 pointer to const char, from pointer to pointer to char. Adjust.
7661 (lookup_cmd_composition): Make "text" parameter const.
7662 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7663 parameters const.
7664 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7665 const.
7666 * cli/cli-script.c (validate_comname): Make "tem" local const.
7667 (define_command): New const local "tem_c". Use it in calls to
7668 lookup_cmd.
7669 (document_command): Make "tem" and "comfull" locals const.
7670 (show_user_1): Make "prefix" and "name" parameters const.
7671 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7672 const.
7673 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7674 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7675 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7676 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7677 (complete_on_enum, add_setshow_enum_cmd)
7678 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7679 (add_setshow_filename_cmd, add_setshow_string_cmd)
7680 (add_setshow_string_noescape_cmd)
7681 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7682 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7683 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7684 Change prototypes, constifying strings.
7685 * completer.c (noop_completer, filename_completer): Make "text"
7686 and "prefix" parameters const.
7687 (location_completer, expression_completer)
7688 (complete_line_internal): Make "text" and "prefix" parameters
7689 const and adjust.
7690 (command_completer, signal_completer): Make "text" and "prefix"
7691 parameters const.
7692 * completer.h (noop_completer, filename_completer)
7693 (expression_completer, location_completer, command_completer)
7694 (signal_completer): Change prototypes.
7695 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7696 parameters const.
7697 * cp-abi.c (cp_abi_completer): Likewise.
7698 * expression.h (parse_expression_for_completion): Change
7699 prototype.
7700 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7701 parameters const.
7702 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7703 * infrun.c (handle_completer): Make "text" and "word" parameters
7704 const.
7705 * interps.c (interpreter_completer): Make "text" and "word"
7706 parameters const.
7707 * language.h (struct language_defn)
7708 <la_make_symbol_completion_list>: Make "text" and "word"
7709 parameters const.
7710 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7711 (parse_exp_in_context): Rename to ...
7712 (parse_exp_in_context_1): ... this.
7713 (parse_exp_in_context): Reimplement, with const hack from
7714 parse_exp_1.
7715 (parse_expression_for_completion): Make "string" parameter const.
7716 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7717 to pointer to const char. Adjust.
7718 (print_command_1): Make "exp" parameter const.
7719 (output_command): Rename to ...
7720 (output_command_const): ... this. Make "exp" parameter const.
7721 (output_command): Reimplement.
7722 (x_command): Adjust.
7723 (display_command): Rename "exp" parameter to "arg". New "exp"
7724 local, const version of "arg".
7725 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7726 "cmd_name" local const.
7727 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7728 call.
7729 (cmdpy_completer): Make "text" and "word" parameters const.
7730 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7731 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7732 const.
7733 * remote.c (_initialize_remote): Make "cmd_name" local const.
7734 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7735 parameters const. Adjust.
7736 (completion_list_add_fields): Make "sym_text", "text" and "word"
7737 parameters const.
7738 (struct add_name_data) <sym_text, text, word>: Make fields const.
7739 (default_make_symbol_completion_list_break_on): Make "text" and
7740 "word" parameters const. Adjust locals.
7741 (default_make_symbol_completion_list)
7742 (make_symbol_completion_list, make_symbol_completion_type)
7743 (make_symbol_completion_list_fn): Make "text" and "word"
7744 parameters const.
7745 (make_file_symbol_completion_list): Make "text", "word" and
7746 "srcfile" parameters const. Adjust locals.
7747 (add_filename_to_list): Make "text" and "word" parameters const.
7748 (struct add_partial_filename_data) <text, word>: Make fields
7749 const.
7750 (make_source_files_completion_list): Make "text" and "word"
7751 parameters const.
7752 * symtab.h (default_make_symbol_completion_list_break_on)
7753 (default_make_symbol_completion_list, make_symbol_completion_list)
7754 (make_symbol_completion_type enum type_code)
7755 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7756 (make_source_files_completion_list): Change prototype.
7757 * top.c (execute_command): Adjust to pass pointer to pointer to
7758 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7759 change.
7760 (set_verbose): Make "cmdname" local const.
7761 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7762 and adjust.
7763 (validate_actionline): Make "line" parameter a pointer to const
7764 char, and adjust.
7765 (encode_actions_1): Make "action_exp" local const, and adjust.
7766 (encode_actions): Adjust.
7767 (replace_comma): Delete.
7768 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7769 const, and adjust. Don't frob the action string while splitting
7770 it at commas. Instead, make a copy of each split substring in
7771 turn.
7772 (trace_dump_command): Adjust to validate_actionline prototype
7773 change.
7774 * tracepoint.h (decode_agent_options, decode_agent_options)
7775 (encode_actions, validate_actionline): Change prototypes.
7776 * valprint.h (output_command): Delete declaration.
7777 (output_command_const): Declare.
7778 * value.c (function_destroyer): Cast const away in xfree call.
7779
a0bcdaa7
PA
77802013-03-13 Pedro Alves <palves@redhat.com>
7781
7782 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7783 rather than casting 'const char * const *' to 'const char **'.
7784 * ada-lex.l (processInt): Make "trailer" local const. Remove
7785 'const char **' cast.
7786 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7787 locals, and use those as strtol output pointer, instead than doing
7788 invalid casts to from 'const char **' to 'char **'.
7789 (_initialize_demangle): Remove cast.
7790 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7791 locals, and use those as strtol output pointer, instead than doing
7792 invalid casts to from 'const char **' to 'char **'.
7793 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7794 casts.
7795 * stap-probe.c (stap_parse_register_operand)
7796 (stap_parse_single_operand): Likewise.
7797
8ddb1965
YQ
77982013-03-13 Yao Qi <yao@codesourcery.com>
7799
7800 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7801 the last matched 'V' blcok in trace frame.
7802
2d450646
JB
78032013-03-12 Joel Brobecker <brobecker@adacore.com>
7804
7805 * NEWS: Create a new section for the next release branch.
7806 Rename the section of the current branch, now that it has
7807 been cut.
7808
b4b79973 78092013-03-12 Joel Brobecker <brobecker@adacore.com>
7810
7811 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7812 * version.in: Bump version to 7.6.50.20130312-cvs.
7813
ee047554
KS
78142013-03-12 Keith Seitz <keiths@redhat.com>
7815
7816 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7817 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7818 Remove temporary copy of input string.
7819 (mi_execute_command_wrapper): Make "cmd" const.
7820 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7821 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7822 Use const strings.
7823 (mi_parse): Make "cmd" const.
7824 Use const strings.
7825 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7826
bbc13ae3
KS
78272013-03-12 Keith Seitz <keiths@redhat.com>
7828
7829 * ada-lang.c (ada_read_renaming_var_value): Pass const
7830 pointer to expression string to parse_exp_1.
7831 (create_excep_cond_exprs): Likewise.
7832 * ax-gdb.c (agent_eval_command_one): Likewise.
7833 (maint_agent_printf_command): Likewise.
7834 Constify much of the string handling/parsing.
7835 * breakpoint.c (set_breakpoint_condition): Pass const
7836 pointer to expression string to parse_exp_1.
7837 (update_watchpoint): Likewise.
7838 (parse_cmd_to_aexpr): Constify string handling.
7839 Pass const pointer to parse_exp_1.
7840 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7841 (find_condition_and_thread): Likewise.
7842 Make TOK const.
7843 (watch_command_1): Make "arg" const.
7844 Constify string handling.
7845 Copy the expression string instead of changing the input
7846 string.
7847 (update_breakpoint_location): Pass const pointer to
7848 parse_exp_1.
7849 * eval.c (parse_and_eval_address): Make "exp" const.
7850 (parse_to_comma_and_eval): Make "expp" const.
7851 (parse_and_eval): Make "exp" const.
7852 * expression.h (parse_expression): Make argument const.
7853 (parse_exp_1): Make first argument const.
7854 * findcmd.c (parse_find_args): Treat "args" as const.
7855 * linespec.c (parse_linespec): Pass const pointer to
7856 linespec_expression_to_pc.
7857 (linespec_expression_to_pc): Make "exp_ptr" const.
7858 * parse.c (parse_exp_1): Make "stringptr" const.
7859 Make a copy of the expression to pass to parse_exp_in_context until
7860 this whole interface can be constified.
7861 (parse_expression): Make "string" const.
7862 * printcmd.c (ui_printf): Treat "arg" as const.
7863 Handle const strings.
7864 * tracepoint.c (validate_actionline): Pass const pointer to
7865 all calls to parse_exp_1.
7866 (encode_actions_1): Likewise.
7867 * value.h (parse_to_comma_and_eval): Make argument const.
7868 (parse_and_eval_address): Likewise.
7869 (parse_and_eval): Likewise.
7870 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7871 (varobj_set_value): Likewise.
7872 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7873 constify string handling.
7874 Pass const pointers to parse_and_eval_address and
7875 parse_to_comman_and_eval.
7876 * cli/cli-utils.c (skip_to_space): Rename to ...
7877 (skip_to_space_const): ... this. Handle const strings.
7878 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7879 skip_to_space_const.
7880 (skip_to_space_const): Declare.
7881 * common/format.c (parse_format_string): Make "arg" const.
7882 Handle const strings.
7883 * common/format.h (parse_format_string): Make "arg" const.
7884 * gdbserver/ax.c (ax_printf): Make "format" const.
7885 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7886 of the expression string.
7887
f3cec7e6
HZ
78882013-03-12 Hui Zhu <hui@codesourcery.com>
7889
7890 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7891
9df7235c
HZ
78922013-03-12 Yao Qi <yao@codesourcery.com>
7893 Hui Zhu <hui@codesourcery.com>
7894
7895 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7896 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7897 DW_OP_deref_size.
7898
82d049ab
PH
78992013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7900
5f8e0b8f
MF
7901 * ada-lex.l (rules): Only recognize 'thread' as a
7902 delimiter when followed by numerals, as for c-exp.y.
7903 Use new rewind_to_char function to rewind the input for
7904 expression-delimiting tokens.
7905 (rewind_to_char): New function.
82d049ab 7906
8c1fb155
JK
79072013-03-11 Pedro Alves <palves@redhat.com>
7908 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 * configure: Regenerate.
7911 * configure.ac (check dynamic export flag): Link python test with
7912 $PYTHON_LIBS.
7913
cc81e1c6
DE
79142013-03-11 Doug Evans <dje@google.com>
7915 Keith Seitz <keiths@redhat.com>
7916
7917 * linespec.c (find_linespec_symbols): Call find_function_symbols
7918 first, and then call lookup_prefix_sym/find_method.
7919
39086a0e
PA
79202013-03-11 Pedro Alves <palves@redhat.com>
7921
7922 * charset.c (convert_between_encodings): Don't cast between
7923 different pointer to pointer types. Instead, make the 'inp' local
7924 be of the type iconv expects.
7925 (wchar_iterate): Don't cast between different pointer to pointer
7926 types. Instead, use new pointer local of the type iconv expects.
7927 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7928 Add new local of type char pointer, and use it to get a
7929 char/string view of the byte buffer, instead of casting between
7930 pointer to pointer types.
7931
90585175
HAQ
79322013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7933
7934 * remote.c (remote_set_trace_buffer_size): Move != operator
7935 to the start of next line to fix an ARI warning.
7936
59ea5688
MM
79372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7938
7939 * NEWS: Add record changes.
7940
946287b7
MM
79412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7942
7943 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7944 the instruction history disassembly.
7945 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7946 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7947
afedecd3
MM
79482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7949
7950 * Makefile.in (SFILES): Add record-btrace.c
7951 (COMMON_OBS): Add record-btrace.o
7952 * record-btrace.c: New.
7953 * objfiles.c: Include btrace.h.
7954 (free_objfile): call btrace_free_objfile.
7955
15984c13
MM
79562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7957
7958 * target.c (target_call_history, target_call_history_from,
7959 target_call_history_range): New.
7960 * target.h (target_ops) <to_call_history, to_call_history_from,
7961 to_call_history_range>: New fields.
7962 (target_call_history, target_call_history_from,
7963 target_call_history_range): New declaration.
7964 * record.c (get_call_history_modifiers, cmd_record_call_history,
7965 record_call_history_size): New.
7966 (_initialize_record): Add the "record function-call-history" command.
7967 Add "set/show record function-call-history-size" commands.
7968 * record.h (record_print_flag): New.
7969
67c86d06
MM
79702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7971
7972 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7973 to_insn_history_range>: New fields.
7974 (target_insn_history): New.
7975 (target_insn_history_from): New.
7976 (target_insn_history_range): New.
7977 * target.c (target_insn_history): New.
7978 (target_insn_history_from): New.
7979 (target_insn_history_range): New.
7980 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7981 (record_insn_history_size): New.
7982 (get_insn_number): New.
7983 (get_context_size): New.
7984 (no_chunk): New.
7985 (get_insn_history_modifiers): New.
7986 (cmd_record_insn_history): New.
7987 (_initialize_record): Add "set/show record instruction-history-size"
7988 command. Add "record instruction-history" command.
7989
7c1687a9
MM
79902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7991
7992 * record.h (record_disconnect): New.
7993 (record_detach): New.
7994 (record_mourn_inferior): New.
7995 (record_kill): New.
7996 * record-full.c (record_disconnect, record_detach,
7997 record_mourn_inferior, record_kill): Move to...
7998 * record.c: ...here.
7999 (DEBUG): New.
8000 (record_stop): New.
8001 (record_unpush): New.
8002 (cmd_record_stop): Call record_stop. Replace unpush_target
8003 call with record_unpush call.
8004 (record_disconnect, record_detach): Assert that the target
8005 is of record stratum. Call record_unpush, record_stop, and
8006 DEBUG.
8007 (record_mourn_inferior, record_kill): Assert that the target
8008 is of record stratum. Call record_unpush and DEBUG.
8009
25ea693b
MM
80102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8011
8012 * record-full.h, record-full.c (record_memory_query): Rename
8013 to ...
8014 (record_full_memory_query): ...this. Update all users.
8015 (record_arch_list_add_reg): Rename to ...
8016 (record_full_arch_list_add_reg): ...this. Update all users.
8017 (record_arch_list_add_mem): Rename to ...
8018 (record_full_arch_list_add_mem): ...this. Update all users.
8019 (record_arch_list_add_end): Rename to ...
8020 (record_full_arch_list_add_end): ...this. Update all users.
8021 (record_gdb_operation_disable_set): Rename to ...
8022 (record_full_gdb_operation_disable_set): ...this.
8023 Update all users.
8024
88d1aa9d
MM
80252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8026
8027 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8028 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8029 (RECORD_IS_REPLAY): Renamed to ...
8030 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8031 (RECORD_FILE_MAGIC): Renamed to ...
8032 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8033 (record_mem_entry): Renamed to ...
8034 (record_full_mem_entry): ... this. Updated all users.
8035 (record_reg_entry): Renamed to ...
8036 (record_full_reg_entry): ... this. Updated all users.
8037 (record_end_entry): Renamed to ...
8038 (record_full_end_entry): ... this. Updated all users.
8039 (record_type) <record_end, record_reg, record_mem>: Renamed
8040 to ...
8041 (record_full_type) <record_full_end, record_full_reg,
8042 record_full_mem>: ... this. Updated all users.
8043 (record_entry): Renamed to ...
8044 (record_full_entry): ... this. Updated all users.
8045 (record_core_buf_entry): Renamed to ...
8046 (record_full_core_buf_entry): ... this. Updated all users.
8047 (record_core_regbuf): Renamed to ...
8048 (record_full_core_regbuf): ... this. Updated all users.
8049 (record_core_start): Renamed to ...
8050 (record_full_core_start): ... this. Updated all users.
8051 (record_core_end): Renamed to ...
8052 (record_full_core_end): ... this. Updated all users.
8053 (record_core_buf_list): Renamed to ...
8054 (record_full_core_buf_list): ... this. Updated all users.
8055 (record_first): Renamed to ...
8056 (record_full_first): ... this. Updated all users.
8057 (record_list): Renamed to ...
8058 (record_full_list): ... this. Updated all users.
8059 (record_arch_list_head): Renamed to ...
8060 (record_full_arch_list_head): ... this. Updated all users.
8061 (record_arch_list_tail): Renamed to ...
8062 (record_full_arch_list_tail): ... this. Updated all users.
8063 (record_stop_at_limit): Renamed to ...
8064 (record_full_stop_at_limit): ... this. Updated all users.
8065 (record_insn_max_num): Renamed to ...
8066 (record_full_insn_max_num): ... this. Updated all users.
8067 (record_insn_num): Renamed to ...
8068 (record_full_insn_num): ... this. Updated all users.
8069 (record_insn_count): Renamed to ...
8070 (record_full_insn_count): ... this. Updated all users.
8071 (record_ops): Renamed to ...
8072 (record_full_ops): ... this. Updated all users.
8073 (record_core_ops): Renamed to ...
8074 (record_full_core_ops): ... this. Updated all users.
8075 (set_record_cmdlist): Renamed to ...
8076 (set_record_full_cmdlist): ... this. Updated all users.
8077 (show_record_cmdlist): Renamed to ...
8078 (show_record_full_cmdlist): ... this. Updated all users.
8079 (record_cmdlist): Renamed to ...
8080 (record_full_cmdlist): ... this. Updated all users.
8081 (record_beneath_to_resume_ops): Renamed to ...
8082 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8083 (record_beneath_to_resume): Renamed to ...
8084 (record_full_beneath_to_resume): ... this. Updated all users.
8085 (record_beneath_to_wait_ops): Renamed to ...
8086 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8087 (record_beneath_to_wait): Renamed to ...
8088 (record_full_beneath_to_wait): ... this. Updated all users.
8089 (record_beneath_to_store_registers_ops): Renamed to ...
8090 (record_full_beneath_to_store_registers_ops): ... this.
8091 Updated all users.
8092 (record_beneath_to_store_registers): Renamed to ...
8093 (record_full_beneath_to_store_registers): ... this.
8094 Updated all users.
8095 (record_beneath_to_xfer_partial_ops): Renamed to ...
8096 (record_full_beneath_to_xfer_partial_ops): ... this.
8097 Updated all users.
8098 (record_beneath_to_xfer_partial): Renamed to ...
8099 (record_full_beneath_to_xfer_partial): ... this.
8100 Updated all users.
8101 (record_beneath_to_insert_breakpoint): Renamed to ...
8102 (record_full_beneath_to_insert_breakpoint): ... this.
8103 Updated all users.
8104 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8105 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8106 Updated all users.
8107 (record_beneath_to_stopped_data_address): Renamed to ...
8108 (record_full_beneath_to_stopped_data_address): ... this.
8109 Updated all users.
8110 (record_beneath_to_async): Renamed to ...
8111 (record_full_beneath_to_async): ... this. Updated all users.
8112 (record_goto_insn): Renamed to ...
8113 (record_full_goto_insn): ... this. Updated all users.
8114 (record_save): Renamed to ...
8115 (record_full_save): ... this. Updated all users.
8116 (record_reg_alloc): Renamed to ...
8117 (record_full_reg_alloc): ... this. Updated all users.
8118 (record_reg_release): Renamed to ...
8119 (record_full_reg_release): ... this. Updated all users.
8120 (record_mem_alloc): Renamed to ...
8121 (record_full_mem_alloc): ... this. Updated all users.
8122 (record_mem_release): Renamed to ...
8123 (record_full_mem_release): ... this. Updated all users.
8124 (record_end_alloc): Renamed to ...
8125 (record_full_end_alloc): ... this. Updated all users.
8126 (record_end_release): Renamed to ...
8127 (record_full_end_release): ... this. Updated all users.
8128 (record_entry_release): Renamed to ...
8129 (record_full_entry_release): ... this. Updated all users.
8130 (record_list_release): Renamed to ...
8131 (record_full_list_release): ... this. Updated all users.
8132 (record_list_release_following): Renamed to ...
8133 (record_full_list_release_following): ... this.
8134 Updated all users.
8135 (record_list_release_first): Renamed to ...
8136 (record_full_list_release_first): ... this. Updated all users.
8137 (record_arch_list_add): Renamed to ...
8138 (record_full_arch_list_add): ... this. Updated all users.
8139 (record_get_loc): Renamed to ...
8140 (record_full_get_loc): ... this. Updated all users.
8141 (record_check_insn_num): Renamed to ...
8142 (record_full_check_insn_num): ... this. Updated all users.
8143 (record_arch_list_cleanups): Renamed to ...
8144 (record_full_arch_list_cleanups): ... this. Updated all users.
8145 (record_message): Renamed to ...
8146 (record_full_message): ... this. Updated all users.
8147 (record_message_wrapper): Renamed to ...
8148 (record_full_message_wrapper): ... this. Updated all users.
8149 (record_message_wrapper_safe): Renamed to ...
8150 (record_full_message_wrapper_safe): ... this. Updated all users.
8151 (record_gdb_operation_disable): Renamed to ...
8152 (record_full_gdb_operation_disable): ... this. Updated all users.
8153 (record_hw_watchpoint): Renamed to ...
8154 (record_full_hw_watchpoint): ... this. Updated all users.
8155 (record_exec_insn): Renamed to ...
8156 (record_full_exec_insn): ... this. Updated all users.
8157 (record_restore): Renamed to ...
8158 (record_full_restore): ... this. Updated all users.
8159 (record_async_inferior_event_token): Renamed to ...
8160 (record_full_async_inferior_event_token): ... this.
8161 Updated all users.
8162 (record_async_inferior_event_handler): Renamed to ...
8163 (record_full_async_inferior_event_handler): ... this.
8164 Updated all users.
8165 (record_core_open_1): Renamed to ...
8166 (record_full_core_open_1): ... this. Updated all users.
8167 (record_open_1): Renamed to ...
8168 (record_full_open_1): ... this. Updated all users.
8169 (record_open): Renamed to ...
8170 (record_full_open): ... this. Updated all users.
8171 (record_close): Renamed to ...
8172 (record_full_close): ... this. Updated all users.
8173 (record_resume_step): Renamed to ...
8174 (record_full_resume_step): ... this. Updated all users.
8175 (record_resumed): Renamed to ...
8176 (record_full_resumed): ... this. Updated all users.
8177 (record_execution_dir): Renamed to ...
8178 (record_full_execution_dir): ... this. Updated all users.
8179 (record_resume): Renamed to ...
8180 (record_full_resume): ... this. Updated all users.
8181 (record_get_sig): Renamed to ...
8182 (record_full_get_sig): ... this. Updated all users.
8183 (record_sig_handler): Renamed to ...
8184 (record_full_sig_handler): ... this. Updated all users.
8185 (record_wait_cleanups): Renamed to ...
8186 (record_full_wait_cleanups): ... this. Updated all users.
8187 (record_wait_1): Renamed to ...
8188 (record_full_wait_1): ... this. Updated all users.
8189 (record_wait): Renamed to ...
8190 (record_full_wait): ... this. Updated all users.
8191 (record_stopped_by_watchpoint): Renamed to ...
8192 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8193 (record_disconnect): Renamed to ...
8194 (record_full_disconnect): ... this. Updated all users.
8195 (record_detach): Renamed to ...
8196 (record_full_detach): ... this. Updated all users.
8197 (record_mourn_inferior): Renamed to ...
8198 (record_full_mourn_inferior): ... this. Updated all users.
8199 (record_kill): Renamed to ...
8200 (record_full_kill): ... this. Updated all users.
8201 (record_stopped_data_address): Renamed to ...
8202 (record_full_stopped_data_address): ... this. Updated all users.
8203 (record_registers_change): Renamed to ...
8204 (record_full_registers_change): ... this. Updated all users.
8205 (record_store_registers): Renamed to ...
8206 (record_full_store_registers): ... this. Updated all users.
8207 (record_xfer_partial): Renamed to ...
8208 (record_full_xfer_partial): ... this. Updated all users.
8209 (record_breakpoint): Renamed to ...
8210 (record_full_breakpoint): ... this. Updated all users.
8211 (record_breakpoint_p): Renamed to ...
8212 (record_full_breakpoint_p): ... this. Updated all users.
8213 (record_breakpoints): Renamed to ...
8214 (record_full_breakpoints): ... this. Updated all users.
8215 (record_sync_record_breakpoints): Renamed to ...
8216 (record_full_sync_record_breakpoints): ... this.
8217 Updated all users.
8218 (record_init_record_breakpoints): Renamed to ...
8219 (record_full_init_record_breakpoints): ... this.
8220 Updated all users.
8221 (record_insert_breakpoint): Renamed to ...
8222 (record_full_insert_breakpoint): ... this. Updated all users.
8223 (record_remove_breakpoint): Renamed to ...
8224 (record_full_remove_breakpoint): ... this. Updated all users.
8225 (record_can_execute_reverse): Renamed to ...
8226 (record_full_can_execute_reverse): ... this. Updated all users.
8227 (record_get_bookmark): Renamed to ...
8228 (record_full_get_bookmark): ... this. Updated all users.
8229 (record_goto_bookmark): Renamed to ...
8230 (record_full_goto_bookmark): ... this. Updated all users.
8231 (record_async): Renamed to ...
8232 (record_full_async): ... this. Updated all users.
8233 (record_can_async_p): Renamed to ...
8234 (record_full_can_async_p): ... this. Updated all users.
8235 (record_is_async_p): Renamed to ...
8236 (record_full_is_async_p): ... this. Updated all users.
8237 (record_execution_direction): Renamed to ...
8238 (record_full_execution_direction): ... this. Updated all users.
8239 (record_info): Renamed to ...
8240 (record_full_info): ... this. Updated all users.
8241 (record_delete): Renamed to ...
8242 (record_full_delete): ... this. Updated all users.
8243 (record_is_replaying): Renamed to ...
8244 (record_full_is_replaying): ... this. Updated all users.
8245 (record_goto_entry): Renamed to ...
8246 (record_full_goto_entry): ... this. Updated all users.
8247 (record_goto_begin): Renamed to ...
8248 (record_full_goto_begin): ... this. Updated all users.
8249 (record_goto_end): Renamed to ...
8250 (record_full_goto_end): ... this. Updated all users.
8251 (record_goto): Renamed to ...
8252 (record_full_goto): ... this. Updated all users.
8253 (init_record_ops): Renamed to ...
8254 (init_record_full_ops): ... this. Updated all users.
8255 (record_core_resume): Renamed to ...
8256 (record_full_core_resume): ... this. Updated all users.
8257 (record_core_kill): Renamed to ...
8258 (record_full_core_kill): ... this. Updated all users.
8259 (record_core_fetch_registers): Renamed to ...
8260 (record_full_core_fetch_registers): ... this. Updated all users.
8261 (record_core_prepare_to_store): Renamed to ...
8262 (record_full_core_prepare_to_store): ... this. Updated all users.
8263 (record_core_store_registers): Renamed to ...
8264 (record_full_core_store_registers): ... this. Updated all users.
8265 (record_core_xfer_partial): Renamed to ...
8266 (record_full_core_xfer_partial): ... this. Updated all users.
8267 (record_core_insert_breakpoint): Renamed to ...
8268 (record_full_core_insert_breakpoint): ... this. Updated all users.
8269 (record_core_remove_breakpoint): Renamed to ...
8270 (record_full_core_remove_breakpoint): ... this. Updated all users.
8271 (record_core_has_execution): Renamed to ...
8272 (record_full_core_has_execution): ... this. Updated all users.
8273 (init_record_core_ops): Renamed to ...
8274 (init_record_full_core_ops): ... this. Updated all users.
8275 (cmd_record_restore): Renamed to ...
8276 (cmd_record_full_restore): ... this. Updated all users.
8277 (record_save_cleanups): Renamed to ...
8278 (record_full_save_cleanups): ... this. Updated all users.
8279 (cmd_record_start): Renamed to ...
8280 (cmd_record_full_start): ... this. Updated all users.
8281 (set_record_insn_max_num): Renamed to ...
8282 (set_record_full_insn_max_num): ... this. Updated all users.
8283 (set_record_command): Renamed to ...
8284 (set_record_full_command): ... this. Updated all users.
8285 (show_record_command): Renamed to ...
8286 (show_record_full_command): ... this. Updated all users.
8287 (_initialize_record): Renamed to ...
8288 (_initialize_record_full): ... this. Updated all users.
8289
d02ed0bb
MM
82902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8291
8292 * record.h: Split into this and ...
8293 * record-full.h: ... this.
8294 * record.c: Split into this and ...
8295 * record-full.c: ... this.
8296 * target.h (target_ops): Add new fields to_info_record,
8297 to_save_record, to_delete_record, to_record_is_replaying,
8298 to_goto_record_begin, to_goto_record_end, to_goto_record.
8299 (target_info_record): New.
8300 (target_save_record): New.
8301 (target_supports_delete_record): New.
8302 (target_delete_record): New.
8303 (target_record_is_replaying): New.
8304 (target_goto_record_begin): New.
8305 (target_goto_record_end): New.
8306 (target_goto_record): New.
8307 * target.c (target_info_record): New.
8308 (target_save_record): New.
8309 (target_supports_delete_record): New.
8310 (target_delete_record): New.
8311 (target_record_is_replaying): New.
8312 (target_goto_record_begin): New.
8313 (target_goto_record_end): New.
8314 (target_goto_record): New.
8315 * record.h: Declare struct cmd_list_element.
8316 (record_cmdlist): New declaration.
8317 (set_record_cmdlist): New declaration.
8318 (show_record_cmdlist): New declaration.
8319 (info_record_cmdlist): New declaration.
8320 (cmd_record_goto): New declaration.
8321 * record.c: Remove unnecessary includes.
8322 Include inferior.h.
8323 (cmd_record_goto): Remove declaration.
8324 (record_cmdlist): Now extern. Initialize.
8325 (set_record_cmdlist): Now extern. Initialize.
8326 (show_record_cmdlist): Now extern. Initialize.
8327 (info_record_cmdlist): Now extern. Initialize.
8328 (find_record_target): New.
8329 (require_record_target): New.
8330 (cmd_record_start): Update.
8331 (cmd_record_delete): Remove target-specific code.
8332 Call target_delete_record.
8333 (cmd_record_stop): Unpush any record target.
8334 (set_record_insn_max_num): Move to record-full.c
8335 (set_record_command): Add comment.
8336 (show_record_command): Add comment.
8337 (info_record_command): Update comment.
8338 Remove target-specific code.
8339 Call the record target's to_info_record.
8340 (cmd_record_start): New.
8341 (cmd_record_goto): Now extern.
8342 Remove target-specific code.
8343 Call target_goto_begin, target_goto_end, or target_goto.
8344 (_initialize_record): Move record target ops initialization to
8345 record-full.c.
8346 Change "record" command help text.
8347 Move "record restore", "record set", and "record show" commands to
8348 record-full.c.
8349 * Makefile.in (SFILES): Add record-full.c.
8350 (HFILES_NO_SRCDIR): Add record-full.h.
8351 (COMMON_OBS): Add record-full.o.
8352 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8353 * arm-tdep.c: Include record-full.h.
8354 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8355 * i386-tdep.c: Include record-full.h.
8356 * infrun.c: Include record-full.h.
8357 * linux-record.c: Include record-full.h.
8358 * moxie-tdep.c: Include record-full.h.
8359 * record-full.c: Include record-full.h.
8360 Change module comment.
8361 (set_record_full_cmdlist): New.
8362 (show_record_full_cmdlist): New.
8363 (record_full_cmdlist): New.
8364 (record_goto_insn): New declaration.
8365 (record_save): New declaration.
8366 (record_check_insn_num): Change query string.
8367 (record_info): New.
8368 (record_delete): New.
8369 (record_is_replaying): New.
8370 (record_goto_entry): New.
8371 (record_goto_begin): New.
8372 (record_goto_end): New.
8373 (record_goto): New.
8374 (init_record_ops): Update.
8375 (init_record_core_ops): Update.
8376 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8377 (cmd_record_start): New.
8378 (set_record_insn_max_num): Moved from record.c
8379 (set_record_full_command): New.
8380 (show_record_full_command): New.
8381 (_initialize_record_full): New.
8382
b48d48eb
MM
83832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8384
8385 * target.h (add_deprecated_target_alias): New.
8386 * target.c (add_deprecated_target_alias): New.
8387
a950d57c
MM
83882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8389
8390 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8391 and signal.h.
8392 (linux_supports_btrace): Add kernel and
8393 cpuid check.
8394 (kernel_supports_btrace): New function.
8395 (cpu_supports_btrace): New function.
8396 (intel_supports_btrace): New function.
8397
9accd112
MM
83982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8399
8400 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8401 * remote.c: Include btrace.h.
8402 (struct btrace_target_info): New struct.
8403 (remote_supports_btrace): New function.
8404 (send_Qbtrace): New function.
8405 (remote_enable_btrace): New function.
8406 (remote_disable_btrace): New function.
8407 (remote_teardown_btrace): New function.
8408 (remote_read_btrace): New function.
8409 (init_remote_ops): Add btrace ops.
8410 (enum <unnamed>): Add btrace packets.
8411 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8412 (_initialize_remote): Add packet configuration for branch tracing.
8413
c12a2917
MM
84142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8415
8416 * features/btrace.dtd: New file.
8417 * Makefile.in (XMLFILES): Add btrace.dtd.
8418 * btrace.h (parse_xml_btrace): New declaration.
8419 * btrace.c: Include xml-support.h.
8420 (parse_xml_btrace): New function.
8421 (parse_xml_btrace_block): New function.
8422 (block_attributes): New struct.
8423 (btrace_attributes): New struct.
8424 (btrace_children): New struct.
8425 (btrace_elements): New struct.
8426
3e3aea48
MM
84272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8428
8429 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8430 (amd64_linux_enable_btrace): New.
8431 (amd64_linux_disable_btrace): New.
8432 (amd64_linux_teardown_btrace): New.
8433 (_initialize_amd64_linux_nat): Initialize btrace ops.
8434 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8435 (i386_linux_enable_btrace): New.
8436 (i386_linux_disable_btrace): New.
8437 (i386_linux_teardown_btrace): New.
8438 (_initialize_i386_linux_nat): Initialize btrace ops.
8439 * config/i386/linux.mh: Add linux-btrace.o.
8440 * config/i386/linux64.mh: Add linux-btrace.o.
8441
7c97f91e
MM
84422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8443
8444 * common/linux_btrace.h: New file.
8445 * common/linux_btrace.c: New file.
8446 * Makefile.in (SFILES): Add btrace.c.
8447 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8448 (COMMON_OBS): Add btrace.o.
8449 (linux-btrace.o): New rule.
8450
1999790b 84512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8452
8453 * target.h: Include btrace.h.
8454 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8455 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8456 * target.c (target_supports_btrace): New function.
8457 (target_enable_btrace): New function.
8458 (target_disable_btrace): New function.
8459 (target_teardown_btrace): New function.
8460 (target_read_btrace): New function.
8461 * btrace.h: New file.
8462 * btrace.c: New file.
8463 * Makefile.in: Add btrace.c.
8464 * gdbthread.h: Include btrace.h.
8465 (struct thread_info): Add btrace field.
8466 * thread.c: Include btrace.h.
8467 (clear_thread_inferior_resources): Call target_teardown_btrace.
8468 * common/btrace-common.h: New file.
8469
61a31a67
JK
84702013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8471
8472 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8473 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8474 kill_status to outer block.
8475
05c56a9d
JK
84762013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8477
8478 Fix entry-values if the callee called a noreturn function.
8479 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8480 get_frame_address_in_block. Add new comment.
8481
9112db09
JK
84822013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8483
8484 Fix entry-values in C++ across CUs.
8485 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8486 lookup_minimal_symbol. Add a comment.
8487 * dwarf2read.c
8488 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8489 DW_AT_linkage_name.
8490
9b67fcec
YQ
84912013-03-08 Yao Qi <yao@codesourcery.com>
8492
8493 * tracepoint.c (_initialize_tracepoint): Indent the code.
8494
6221be90
PA
84952013-03-08 Pedro Alves <palves@redhat.com>
8496
8497 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8498 (parse_find_args, find_command): Change type of pattern buffer
8499 locals to 'gdb_byte *'.
8500
be9a119c 85012013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8502 Hafiz Abid Qadeer <abidh@codesourcery.com>
8503
8504 * NEWS: Mention set and show trace-buffer-size commands.
8505 Mention new packet.
8506 * target.h (struct target_ops): New method
8507 to_set_trace_buffer_size.
8508 (target_set_trace_buffer_size): New macro.
8509 * target.c (update_current_target): Set up new method.
8510 * tracepoint.c (trace_buffer_size): New global.
8511 (start_tracing): Send it to the target.
8512 (set_trace_buffer_size): New function.
8513 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8514 * remote.c (remote_set_trace_buffer_size): New function.
8515 (_initialize_remote): Use it.
8516 (QTBuffer:size) New remote command.
8517 (PACKET_QTBuffer_size): New enum.
8518 (remote_protocol_features): Add an entry for
8519 PACKET_QTBuffer_size.
8520
7da3ab79
TT
85212013-03-08 Tom Tromey <tromey@redhat.com>
8522
8523 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8524 variable.
8525
0c1f71e7
PA
85262013-03-07 Pedro Alves <palves@redhat.com>
8527
8528 * target.c (target_read_stralloc, target_fileio_read_alloc):
8529 *Cast pointer to 'gdb_byte *' in target call.
8530
c8af03a2
PA
85312013-03-07 Pedro Alves <palves@redhat.com>
8532
8533 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8534 call.
8535
529480d0
KS
85362013-03-07 Keith Seitz <keiths@redhat.com>
8537
8538 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8539 (trace_pass_command): Likewise.
8540 * cli/cli-cmds.c: Include cli/cli-utils.h.
8541 (source_command): Use skip-spaces.
8542 (disassemble_command): Likewise.
8543 * findcmd.c: Include cli/cli-utils.h.
8544 (parse_find_args): Use skip_spaces.
8545 * go32-nat.c: Include cli/cli-utils.h.
8546 (go32_sldt): Use skip_spaces.
8547 (go32_sgdt): Likewise.
8548 (go32_sidt): Likewise.
8549 (go32_pde): Likewise.
8550 (go32_pte): Likewise.
8551 (go32_pte_for_address): Likewise.
8552 * infcmd.c: Include cli/cli-utils.h.
8553 (registers_info): Use skip_spaces.
8554 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8555 (linux_info_proc): Likewise.
8556 * linux-thread-db.c: Include cli/cli-utils.h.
8557 (info_auto_load_libthread_db): Use skip_spaces_const.
8558 * m32r-rom.c: Include cli/cli-utils.h.
8559 (m32r_upload_command): Use skip_spaces.
8560 * maint.c: Include cli/cli-utils.h.
8561 (maintenance_translate_address): Use skip_spaces.
8562 * mi/mi-parse.c: Include cli/cli-utils.h.
8563 (mi_parse_argv): Use skip_spaces.
8564 (mi_parse): Likewise.
8565 * minsyms.c: Include cli/cli-utils.h.
8566 (msymbol_hash_iw): Use skip_spaces_const.
8567 * objc-lang.c: Include cli/cli-utils.h.
8568 (parse_selector): Use skip_spaces.
8569 (parse_method): Likewise.
8570 * python/python.c: Include cli/cli-utils.h.
8571 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8572 (python_command)[HAVE_PYTHON]: Likewise.
8573 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8574 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8575 (m32r_load): Use skip_spaces.
8576 * serial.c: Include cli/cli-utils.h.
8577 (serial_open): Use skip_spaces_const.
8578 * stack.c: Include cli/cli-utils.h.
8579 (parse_frame_specification_1): Use skip_spaces_const.
8580 * symfile.c: Include cli/cli-utils.h.
8581 (set_ext_lang_command): Use skip_spaces.
8582 * symtab.c: Include cli/cli-utils.h.
8583 (rbreak_command): Use skip_spaces.
8584 * thread.c (thread_name_command): Use skip_spaces.
8585 * tracepoint.c (validate_actionline): Use skip_spaces.
8586 (encode_actions_1): Likewise.
8587 (trace_find_range_command): Likewise.
8588 (trace_find_outside_command): Likewise.
8589 (trace_dump_actions): Likewise.
8590
ac91cd70
PA
85912013-03-07 Pedro Alves <palves@redhat.com>
8592
8593 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8594 * expprint.c (print_subexp_standard): Likewise.
8595 * utils.c (host_char_to_target): Likewise.
8596 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8597 * varobj.c (value_get_print_value): Change type of local to char*.
8598 Cast it gdb_byte * in call to language printer.
8599
2898e560
PA
86002013-03-07 Pedro Alves <palves@redhat.com>
8601
8602 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8603 gdb_byte *'.
8604 (make_wchar_iterator): Remove cast to char*.
8605 (wchar_iterate): Change type of local.
8606
a09b4448
PA
86072013-03-07 Pedro Alves <palves@redhat.com>
8608
8609 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8610 for 'regcache->register_status'.
8611
20ced3e4
PA
86122013-03-07 Pedro Alves <palves@redhat.com>
8613
c2d6a675 8614 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8615 int.
8616
fe106009
PA
86172013-03-07 Pedro Alves <palves@redhat.com>
8618
8619 * stap-probe.c (handle_stap_probe): Add cast to char*.
8620
8ac2c12b
PA
86212013-03-07 Pedro Alves <palves@redhat.com>
8622
8623 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8624 RECORD_MSGRCV>: Pass a signed variable to
8625 regcache_raw_read_signed, instead of an unsigned one.
8626
99f0a309
PA
86272013-03-07 Pedro Alves <palves@redhat.com>
8628
8629 * remote-notif.c (notif_debug): Change type to int.
8630 * remote-notif.h (notif_debug): Likewise.
8631
964b8317
PA
86322013-03-07 Pedro Alves <palves@redhat.com>
8633
8634 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8635
f0cc8ad4
PA
86362013-03-07 Pedro Alves <palves@redhat.com>
8637
8638 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8639 * remote.h (hex2bin, bin2hex): ... here.
8640 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8641
77dec115
EZ
86422013-03-07 Eli Zaretskii <eliz@gnu.org>
8643
8644 * utils.c (initialize_utils): Improve doc strings of "set/show
8645 width", "set/show height", and "set/show pagination".
8646
741d92cf
KS
86472013-03-06 Keith Seitz <keiths@redhat.com>
8648
8649 * ax-gdb.c (gen_printf): Make FORMAT const.
8650 * ax-gdb.h (gen_printf): Likewise.
8651 * ax-general.c (ax_string): Make STR const.
8652 * ax.h (ax_string): Likewise.
8653
7b6c814e
DE
86542013-03-06 Doug Evans <dje@google.com>
8655
8656 * elfread.c (elf_symfile_read): Move debugging printf to more
8657 logical location.
8658
634334ab
PA
86592013-03-06 Pedro Alves <palves@redhat.com>
8660
8661 * python/py-utils.c (target_string_to_unicode): Delete function.
8662 * python/python-internal.h (target_string_to_unicode): Delete
8663 declaration.
8664
e482a1a7
PM
86652013-03-06 Pierre Muller <muller@sourceware.org>
8666
8667 * linespec.c (get_current_search_block): ARI fix, use (void)
8668 for empty parameter list.
8669
4eeaa230
DE
86702013-03-05 Doug Evans <dje@google.com>
8671
8672 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8673 of old ada_lookup_symbol_list. In !full_search case, don't
8674 search superblocks.
8675 (ada_lookup_symbol_list): Delete arg full_search, all callers
8676 updated. Call ada_lookup_symbol_list_worker.
8677 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8678 * ada-lang.h (ada_lookup_symbol_list): Update.
8679 * language.h (language_defn): Update comment for
8680 la_iterate_over_symbols.
8681 * linespec.c (iterate_over_file_blocks): New function.
8682 (iterate_over_all_matching_symtabs): Call it.
8683 (lookup_prefix_sym): Ditto.
8684 (get_current_search_block): New function.
8685 (get_search_block): Delete.
8686 (find_label_symbols): Call get_current_search_block.
8687 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8688 * symtab.c (iterate_over_symbols): Don't search superblocks.
8689
b69b1fb1
YQ
86902013-03-05 Yao Qi <yao@codesourcery.com>
8691
8692 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8693 parameter VAR's type from "unsigned int" to "int".
8694 * command.h (var_zuinteger_unlimited): Update its comments.
8695 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8696
3c095f49
CV
86972013-03-05 Corinna Vinschen <vinschen@redhat.de>
8698
8699 * NEWS: Mention new target x86_64-*-cygwin*.
8700
b5b0b0af
CV
87012013-03-05 Corinna Vinschen <vinschen@redhat.de>
8702
8703 * configure.host: Add x86_64-*-cygwin* as host.
8704 * configure.tgt: Add x86_64-*-cygwin* as target.
8705 * config/i386/cygwin64.mh: New file.
8706
f6f99966
JK
87072013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8708
8709 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8710
33f448b1
JK
87112013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8712
8713 * linespec.c (struct linespec_canonical_name): New.
8714 (struct linespec_state): Change canonical_names type to it.
8715 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8716 xrealloc element size. Initialize the different CANONICAL fields.
8717 (canonical_to_fullform): New.
8718 (filter_results): Use it. Add variables canonical, fullform and
8719 cleanup.
8720 (struct decode_line_2_item, decode_line_2_compare_items): New.
8721 (decode_line_2): Remove variables iter and item_names, add variables
8722 items and items_count. Modify the code for these new variables.
8723
feb14725
CV
87242013-03-04 Corinna Vinschen <vinschen@redhat.com>
8725
8726 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8727 calling do_cleanup.
8728
e83b17ba
HZ
87292013-03-04 Luis Machado <lgustavo@codesourcery.com>
8730
8731 * tracepoint.c (build_traceframe_info): Add code for byte order.
8732
a2d13a0d
KB
87332013-03-02 Kevin Buettner <kevinb@redhat.com>
8734
8dddcae8
KB
8735 * v850-tdep.c: (v850e2_register_name): Revise system register
8736 names to match current V850E2M architecture specifications.
8737 Update register number enum comments too.
f5aee5ee 8738
d79e58d8
JW
87392013-03-01 Jiong Wang <jiwang@tilera.com>
8740 Pedro Alves <palves@redhat.com>
8741
8742 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8743 to END_ADDR.
8744 (tilegx_skip_prologue): Limit prologue analysis to section end.
8745
c4be5165
JK
87462013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8749 use it.
8750
e362b510
PA
87512013-03-01 Pedro Alves <palves@redhat.com>
8752
8753 Use gdb_byte for bytes from the program being debugged.
8754
8755 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8756 Change type of local 'buf' to gdb_byte.
8757 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8758 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8759 * cris-tdep.c (cris_sigcontext_addr)
8760 (cris_sigtramp_frame_unwind_cache): Likewise.
8761 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8762 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8763 Likewise.
8764 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8765 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8766 (hppa32_hpux_search_dummy_call_sequence)
8767 (hppa_hpux_supply_save_state): Likewise.
8768 * hppa-linux-tdep.c (insns_match_pattern)
8769 (hppa_linux_find_global_pointer): Likewise.
8770 * hppa-tdep.c (hppa_in_function_epilogue_p)
8771 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8772 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8773 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8774 (i386fbsd_collect_uthread): Likewise.
8775 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8776 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8777 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8778 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8779 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8780 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8781 (ia64_libunwind_frame_prev_register)
8782 (ia64_libunwind_sigtramp_frame_this_id)
8783 (ia64_find_global_pointer_from_dynamic_section)
8784 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8785 (ia64_unwind_pc): Likewise.
8786 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8787 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8788 (m68hc11_extract_return_value): Likewise.
8789 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8790 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8791 (mep_get_insn, mep_push_dummy_call): Likewise.
8792 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8793 (mips_linux_in_dynsym_stub): Likewise.
8794 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8795 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8796 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8797 to gdb_byte.
8798 * remote-mips.c (mips_set_register): Likewise.
8799 * remote-sim.c (gdbsim_fetch_register): Likewise.
8800 * score-tdep.c (score7_fetch_inst): Change type of parameter
8801 'memblock' and local 'buf' to gdb_byte.
8802 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8803 Change type of local 'buf' to gdb_byte. Adjust.
8804 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8805 to gdb_byte**.
8806 (score7_analyze_prologue): Change type of 'memblock' and
8807 'memblock_ptr' locals to gdb_byte*.
8808 * sh64-tdep.c (sh64_extract_return_value)
8809 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8810 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8811 * solib-pa64.c (pa64_solib_create_inferior_hook)
8812 (pa64_open_symbol_file_object): Remove local 'buf'.
8813 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8814 (som_open_symbol_file_object): Likewise.
8815 * solib-spu.c (spu_current_sos): Likewise.
8816 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8817 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8818 (spu_store_registers): Likewise.
8819 * target.c (debug_print_register): Likewise.
8820 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8821 * xstormy16-tdep.c (xstormy16_store_return_value)
8822 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8823 (xstormy16_find_jmp_table_entry): Likewise.
8824
75cc61ca 88252013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8826
8827 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8828 (tilegx_gdbarch_init): Install it.
8829
ddb08e9c
TT
88302013-02-28 Tom Tromey <tromey@redhat.com>
8831
8832 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8833 PyLong_Check.
8834
62d7fb51
DE
88352013-02-28 Doug Evans <dje@google.com>
8836
8837 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8838 * python/python.c (gdbpy_find_pc_line): Ditto.
8839
c4a9e8b4
TT
88402013-02-28 Tom Tromey <tromey@redhat.com>
8841
8842 * contrib/excheck.py: New file.
8843 * contrib/exsummary.py: New file.
8844 * contrib/gcc-with-excheck: New file.
8845
7f6a5dde
TT
88462013-02-28 Tom Tromey <tromey@redhat.com>
8847
8848 * python/python.c (gdbpy_print_stack): Call begin_line and
8849 fprintf_filtered inside TRY_CATCH.
8850
9e974e55
TT
88512013-02-28 Tom Tromey <tromey@redhat.com>
8852
8853 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8854 inside TRY_CATCH.
8855
dd5fa3e7
TT
88562013-02-28 Tom Tromey <tromey@redhat.com>
8857
8858 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8859 frame_object_to_frame_info inside TRY_CATCH.
8860
86a3263f
TT
88612013-02-28 Tom Tromey <tromey@redhat.com>
8862
8863 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8864 TRY_CATCH.
8865
81b52a3a
TT
88662013-02-28 Tom Tromey <tromey@redhat.com>
8867
8868 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8869
d50a0ce2
CV
88702013-02-27 Corinna Vinschen <vinschen@redhat.com>
8871
8872 * windows-nat.c: Throughout, fix format strings and casts of
8873 printf-like functions to avoid type related warnings on all
8874 platforms.
8875 (handle_output_debug_string): Fetch context information address
8876 from debug string using string_to_core_addr.
8877
e1f58301
JW
88782013-02-27 Jiong Wang <jiwang@tilera.com>
8879
8880 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8881 * regformats/reg-tilegx32.dat: New.
8882
4fcd89fc
JW
88832013-02-27 Jiong Wang <jiwang@tilera.com>
8884
8885 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8886
748d24e6
JW
88872013-02-27 Jiong Wang <jiwang@tilera.com>
8888
8889 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8890
6c8e944d
YQ
88912013-02-27 Yao Qi <yao@codesourcery.com>
8892 Pedro Alves <palves@redhat.com>
8893
8894 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
8895 pc/tp/range/outside, look for the next trace frame instead of
8896 always starting from frame 0.
6c8e944d 8897
acd7db30
AG
88982013-02-26 Anthony Green <green@moxielogic.com>
8899
8900 * configure.tgt: Add support for moxie-*-rtems* target.
8901
025e6dce
PA
89022013-02-25 Pedro Alves <palves@redhat.com>
8903
8904 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8905 warning text.
8906
ca9c94ef
MR
89072013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8908
8909 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8910 if $fp is used as the virtual frame pointer.
8911
24c274a1
AM
89122013-02-23 Alan Modra <amodra@gmail.com>
8913
8914 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8915 symbol size.
8916 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8917 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8918 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8919 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8920
bfada189
JK
89212013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8922
8923 Code cleanup.
8924 * elfread.c (build_id_bfd_get): Make the return type const.
8925 (build_id_verify): Make the check parameter const.
8926 (build_id_to_debug_filename): Make the build_id parameter and variable
8927 data const.
8928 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8929
c0355132
AM
89302013-02-21 Alan Modra <amodra@gmail.com>
8931
8932 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8933
9f44fbc0
SCR
89342013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8935
8936 Add a new method 'disassemble' to gdb.Architecture class.
8937 * python/py-arch.c (archpy_disassmble): Implementation of the
8938 new method gdb.Architecture.disassemble.
8939 (arch_object_methods): Add entry for the new method.
8940
b74ea3eb
JW
89412013-02-20 Jiong Wang <jiwang@tilera.com>
8942
8943 * MAINTAINERS (Write After Approval): Add myself to the list.
8944
61a672f1
PA
89452013-02-19 Pedro Alves <palves@redhat.com>
8946
8947 Garbage collect 'struct monitor_ops'::load_routine.
8948
8949 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8950 * monitor.c (monitor_load): No longer call
8951 current_monitor->load_routine.
8952 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8953 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8954 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8955
40e397df
PA
89562013-02-19 Pedro Alves <palves@redhat.com>
8957
8958 PR gdb/15161
8959
8960 Harmonize with generic_load.
8961
8962 * monitor.c: Include "readline/readline.h".
8963 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8964 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8965 long/strtol for the 'load_offset' local. Error out if no argument
8966 is given or if too many arguments are given. Tilde expand the
8967 passed in file name.
8968
f698ca8e
KT
89692013-02-19 Kai Tietz <ktietz@redhat.com>
8970
8971 PR gdb/15161
8972 * symfile.c (load_section_data): Change type of load_offset
8973 to CORE_ADDR.
8974 (generic_load): User strtoulst instead of strtoul for conversion
8975 of load_offset.
8976
3361b059
WL
89772013-02-19 Jiong Wang <jiwang@tilera.com>
8978
8979 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8980 for return address, "lr" register, saved on stack.
8981 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8982 after we invoke tilegx_analyze_prologue.
8983
3e9d5130
WL
89842013-02-19 Jiong Wang <jiwang@tilera.com>
8985
bb1bcd86
WL
8986 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8987
3361b059 89882013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 8989
b74ea3eb 8990 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 8991
4aaf2503
WL
89922013-02-19 Jiong Wang <jiwang@tilera.com>
8993
b74ea3eb 8994 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
8995 (tilegx_write_pc): New function.
8996 (tilegx_cannot_reference_register): Return zero if REGNO
8997 is TILEGX_FAULTNUM_REGNUM.
8998 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8999 (tilegx_register_name): Add handling of "faultnum" register.
9000 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9001 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9002 handling of TILEGX_FAULTNUM_REGNUM.
9003 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9004
bc23a956
WL
90052013-02-19 Jiong Wang <jiwang@tilera.com>
9006
9007 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9008 should be aligned to 64bit.
bc23a956 9009
42f45f1a
KT
90102013-02-19 Kai Tietz <ktietz@redhat.com>
9011
9012 * windows-nat.c (windows_xfer_memory): Fix debug-output
9013 for LLP64.
9014
6ce4c112
LL
90152013-02-19 Lei Liu <lei.liu2@windriver.com>
9016
9017 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9018 Don't check DSP register number if HAVE_DSP is not set.
9019
30e8ee25
AM
90202013-02-19 Alan Modra <amodra@gmail.com>
9021
9022 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9023 throughout file instead.
9024 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9025 Don't xmalloc return value.
9026 (build_id_verify): Similarly. Don't xfree.
9027 (build_id_to_debug_filename): Update.
9028 (find_separate_debug_file_by_buildid): Update, don't xfree.
9029
4c9ad8c2
TT
90302013-02-18 Tom Tromey <tromey@redhat.com>
9031
9032 PR gdb/15102:
9033 * dwarf2read.c (read_subrange_type): Use result of
9034 'check_typedef'.
9035
983dc440
YQ
90362013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9037
9038 * frame.c: Remove one extra white space after #include
9039 directive.
9040
7fb2b84a
JK
90412013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9042
9043 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9044
edceb2a9
JK
90452013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9046
9047 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9048 and dir commands into an if block.
9049
e81b7af8
TT
90502013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9051
9052 * python/py-breakpoint (struct pybp_code): Use int instead of
9053 enum type_code.
9054
f5911ea1
HAQ
90552013-02-15 Pedro Alves <pedro@codesourcery.com>
9056 Hafiz Abid Qadeer <abidh@codesourcery.com>
9057
9058 * NEWS: Mention new field "trace-file".
9059 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9060 (tfile_open): Record the trace file's filename in the trace
9061 status.
9062 (tfile_files_info): Mention the name of the trace file.
9063 Check the "filename" field explicitely.
9064 (trace_status_command): Explicitely check "filename" field.
9065 (trace_find_command): Ditto.
9066 (trace_find_pc_command): Ditto.
9067 (trace_find_tracepoint_command): Ditto.
9068 (trace_find_line_command): Ditto.
9069 (trace_find_range_command): Ditto.
9070 (trace_find_outside_command): Ditto.
9071 * tracepoint.h (struct trace_status) <from_file>: Rename it
9072 to "filename" and make it hold the trace file's filename
9073 instead of a boolean.
9074 * remote.c (remote_get_trace_status): Initialize "filename"
9075 field with NULL instead of 0.
9076
796cb314
YQ
90772013-02-15 Yao Qi <yao@codesourcery.com>
9078
9079 * remote.c: Fix a typo.
9080
42e79b1d
PM
90812013-02-14 Pierre Muller <muller@sourceware.org>
9082
9083 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9084
baea0dae
PA
90852013-02-14 Pedro Alves <palves@redhat.com>
9086
9087 * utils.c (savestring): Don't #undef it. Move function to
9088 common/common-utils.c.
9089 * common/common-utils.c: Include gdb_string.h.
9090 (savestring): Move here from utils.c.
9091 * common/common-utils.h (savestring): Declare.
9092
57c3b6ed
PA
90932013-02-14 Pedro Alves <palves@redhat.com>
9094
9095 * utils.c (savestring): Rename parameter 'size' to 'len'.
9096
d6c44983
YZ
90972013-02-14 Pedro Alves <palves@redhat.com>
9098 Yufeng Zhang <yufeng.zhang@arm.com>
9099
9100 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9101 (aarch64_inferior_data, struct aarch64_inferior_data):
9102 Delete.
9103 (struct aarch64_process_info): New.
9104 (aarch64_process_list): New global.
9105 (aarch64_find_process_pid, aarch64_add_process)
9106 (aarch64_process_info_get): New functions.
9107 (aarch64_inferior_data_get): Delete.
9108 (aarch64_process_info_get): New function.
9109 (aarch64_forget_process): New function.
9110 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9111 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9112 aarch64_get_debug_reg_state.
9113 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9114 instead of linux_nat_iterate_watchpoint_lwps.
9115 (aarch64_linux_new_fork): New function.
9116 (aarch64_linux_child_post_startup_inferior): Use
9117 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9118 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9119 (aarch64_linux_remove_hw_breakpoint)
9120 (aarch64_handle_aligned_watchpoint)
9121 (aarch64_handle_unaligned_watchpoint)
9122 (aarch64_linux_insert_watchpoint)
9123 (aarch64_linux_remove_watchpoint)
9124 (aarch64_linux_stopped_data_address): Adjust to pass the current
9125 process id to aarch64_debug_reg_state.
9126 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9127 linux_nat_new_fork hook, and aarch64_forget_process as
9128 linux_nat_forget_process hook; remove the call to
9129 register_inferior_data_with_cleanup.
9130
4819b3f8
PA
91312013-02-14 Pedro Alves <palves@redhat.com>
9132
9133 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9134 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9135 lval_memory.
9136
1773c82c
HAQ
91372013-02-14 Pedro Alves <pedro@codesourcery.com>
9138 Hafiz Abid Qadeer <abidh@codesourcery.com>
9139
9140 * tracepoint.h (validate_trace_state_variable_name): Declare.
9141 * tracepoint.c (validate_trace_state_variable_name): New.
9142 (trace_variable_command): Parse the trace state variable's name
9143 without using parse_expression. Do several validations.
9144 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9145 trace state variable's name with parse_expression. Validate it.
9146
53778a97
YQ
91472013-02-14 Yao Qi <yao@codesourcery.com>
9148
9149 * infcmd.c (breakpoint_proceeded): Remove it.
9150
7b3ae3a6
YQ
91512013-02-14 Yao Qi <yao@codesourcery.com>
9152
9153 * tracepoint.c (end_actions_pseudocommand): Make it static.
9154 (while_stepping_pseudocommand): Likewise.
9155 * tracepoint.h (end_actions_pseudocommand): Remove the
9156 declaration.
9157 (while_stepping_pseudocommand): Likewise.
9158
64580925
YQ
91592013-02-14 Yao Qi <yao@codesourcery.com>
9160
9161 * cli/cli-decode.c (help_cmd): Remove the declaration of
9162 "cmdlist".
9163 (help_all): Likewise.
9164
26cb8b7c
PA
91652013-02-13 Pedro Alves <palves@redhat.com>
9166
9167 * amd64-linux-nat.c (update_debug_registers_callback):
9168 Update comment.
9169 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9170 iterate_over_lwps.
9171 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9172 i386_debug_reg_state.
9173 (amd64_linux_new_fork): New function.
9174 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9175 linux_nat_new_fork hook, and i386_forget_process as
9176 linux_nat_forget_process hook.
9177 * i386-linux-nat.c (update_debug_registers_callback):
9178 Update comment.
a8256ea1 9179 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9180 iterate_over_lwps.
9181 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9182 i386_debug_reg_state.
9183 (i386_linux_new_fork): New function.
9184 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9185 linux_nat_new_fork hook, and i386_forget_process as
9186 linux_nat_forget_process hook.
9187 * i386-nat.c (i386_init_dregs): Delete.
9188 (i386_inferior_data, struct i386_inferior_data):
9189 Delete.
9190 (struct i386_process_info): New.
9191 (i386_process_list): New global.
9192 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9193 New functions.
9194 (i386_inferior_data_get): Delete.
9195 (i386_process_info_get): New function.
9196 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9197 (i386_forget_process): New function.
9198 (i386_cleanup_dregs): Rewrite.
9199 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9200 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9201 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9202 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9203 to i386_debug_reg_state.
9204 (i386_use_watchpoints): Don't register inferior data.
9205 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9206 adjust comment.
9207 (i386_forget_process): Declare.
9208 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9209 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9210 New static globals.
9211 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9212 (add_initial_lwp): New, factored out from ...
9213 (add_lwp): ... this. Don't check the number of lwps before
9214 calling linux_nat_new_thread.
9215 (linux_nat_iterate_watchpoint_lwps): Delete.
9216 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9217 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9218 forks and vforks.
9219 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9220 initial lwp.
9221 (linux_nat_kill, linux_nat_mourn_inferior): Call
9222 linux_nat_forget_process.
9223 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9224 (linux_nat_forget_process): New functions.
9225 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9226 type.
9227 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9228 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9229 types.
9230 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9231 (linux_nat_forget_process): New declarations.
9232
9233 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9234 (amd64fbsd_mourn_inferior): New function.
9235 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9236 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9237
5befea72
MS
92382013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9239
55015247
YQ
9240 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9241 Adding _().
5befea72 9242
1d3ffd6b
MS
92432013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9244
9245 * aarch64-linux-nat.c (debug_reg_change_callback)
9246 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9247 %s and phex().
9248
6eb04473
MS
92492013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9250
9251 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9252 with LONGEST.
9253
a016fc87
HAQ
92542013-02-13 Pedro Alves <palves@redhat.com>
9255 Hafiz Abid Qadeer <abidh@codesourcery.com>
9256
9257 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9258
e234dfaf
TT
92592013-02-12 Tom Tromey <tromey@redhat.com>
9260
9261 PR symtab/11464:
9262 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9263 NAME return.
9264 (classify_inner_name): Remove 'first_name' argument, add
9265 'context'. Remove unused variable.
9266 (yylex): Explicitly maintain the context type. Exit loop earlier
9267 if NAME result is seen.
9268
0b1afbb3
PA
92692013-02-12 Pedro Alves <palves@redhat.com>
9270
9271 * amd64-darwin-tdep.c: Add (C) after Copyright.
9272 * cli/cli-cmds.h: Ditto.
9273 * cli/cli-decode.c: Ditto.
9274 * cli/cli-decode.h: Ditto.
9275 * cli/cli-dump.c: Ditto.
9276 * cli/cli-dump.h: Ditto.
9277 * cli/cli-interp.c: Ditto.
9278 * cli/cli-logging.c: Ditto.
9279 * cli/cli-script.c: Ditto.
9280 * cli/cli-script.h: Ditto.
9281 * cli/cli-setshow.c: Ditto.
9282 * cli/cli-setshow.h: Ditto.
9283 * cli/cli-utils.c: Ditto.
9284 * cli/cli-utils.h: Ditto.
9285 * config/alpha/nm-osf3.h: Ditto.
9286 * config/djgpp/djconfig.sh: Ditto.
9287 * config/i386/nm-fbsd.h: Ditto.
9288 * config/i386/nm-i386gnu.h: Ditto.
9289 * config/nm-linux.h: Ditto.
9290 * config/nm-nto.h: Ditto.
9291 * config/rs6000/nm-rs6000.h: Ditto.
9292 * config/sparc/nm-sol2.h: Ditto.
9293 * darwin-nat-info.c: Ditto.
9294 * dfp.c: Ditto.
9295 * dfp.h: Ditto.
9296 * gdb-demangle.h: Ditto.
9297 * i386-darwin-nat.c: Ditto.
9298 * i386-darwin-tdep.c: Ditto.
9299 * linux-fork.h: Ditto.
9300 * m32c-tdep.c: Ditto.
9301 * microblaze-linux-tdep.c: Ditto.
9302 * microblaze-rom.c: Ditto.
9303 * microblaze-tdep.c: Ditto.
9304 * microblaze-tdep.h: Ditto.
9305 * mips-linux-tdep.h: Ditto.
9306 * ppc-ravenscar-thread.c: Ditto.
9307 * ppc-ravenscar-thread.h: Ditto.
9308 * prologue-value.c: Ditto.
9309 * prologue-value.h: Ditto.
9310 * ravenscar-thread.c: Ditto.
9311 * ravenscar-thread.h: Ditto.
9312 * sparc-ravenscar-thread.c: Ditto.
9313 * sparc-ravenscar-thread.h: Ditto.
9314 * tilegx-linux-tdep.c: Ditto.
9315 * unwind_stop_reasons.def: Ditto.
9316 * windows-nat.h: Ditto.
9317 * xtensa-linux-tdep.c: Ditto.
9318 * xtensa-xtregs.c: Ditto.
9319 * regformats/regdat.sh: Ditto.
9320 * regformats/regdef.h: Ditto.
9321
6c01dd94
PA
93222013-02-12 Pedro Alves <palves@redhat.com>
9323
9324 * break-catch-sig.c: Update copyright years.
9325
b65a2bd9
SCR
93262013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9327
9328 Add support for a destructor for ui_out data and use it to
9329 provide a ui_out destructor.
9330 * ui-out.h: Declare the new ui_out destructor.
9331 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9332 * ui-out.c (default_data_destroy): Add a default data destructor
9333 which does nothing.
9334 (default_ui_out_impl): Set the new data_destroy field to
9335 default_data_destroy
9336 (uo_data_destroy): Local function which invokes the data
9337 destructor if present.
9338 (clear_table): Local function which clears the table data of a
9339 ui_out object.
9340 (ui_out_destroy): Public function which frees a ui_out object.
9341 (ui_out_table_end): Use the new clear_table function.
9342 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9343 NULL.
9344 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9345 to NULL.
9346
c2792f5a
DE
93472013-02-11 Doug Evans <dje@google.com>
9348
9349 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9350 (printf_decfloat): New function. Broken out from ui_printf.
9351 Remove unnecessary code to shift the entire format string down.
9352 (printf_pointer): New function.
9353 (ui_printf): Code to print C strings, wide C strings, decfloats,
9354 and pointers moved to separate functions.
9355
d9e98382
SDJ
93562013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9357
9358 * valops.c (value_assign): Handling bitfield offset in
9359 `lval_internalvar_component' case.
9360
4ff3ce77
DE
93612013-02-08 Doug Evans <dje@google.com>
9362
9363 * common/format.c (parse_format_string): Fix whitespace.
9364
901900c4
MGD
93652013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9366
9367 * stack.c (return_command): Work around uninitialized variable
9368 warning.
9369
b5dbc8d4
YZ
93702013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9371
9372 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9373 number of the registers from 36 to 34.
9374
51d66578
MS
93752013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9376
9377 * NEWS: Mention new AArch64 native and target support.
9378
176b1c95
MS
93792013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9380
9381 * MAINTAINERS (Write After Approval): Add myself.
9382
9d19df75
MS
93832013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9384 Marcus Shawcroft <marcus.shawcroft@arm.com>
9385 Nigel Stephens <nigel.stephens@arm.com>
9386 Yufeng Zhang <yufeng.zhang@arm.com>
9387
9388 * aarch64-linux-nat.c: New file.
9389 * config/aarch64/linux.mh: New file.
9390 * configure.host: Add AArch64.
9391 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9392
7e1e0340
DE
93932013-02-07 Doug Evans <dje@google.com>
9394
9395 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9396 disassemble command.
9397
45e25a36
MS
93982013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9399
9400 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9401 set_gdbarch_fetch_tls_load_module_address.
9402
bbfdfe1c
DM
94032013-02-06 David S. Miller <davem@davemloft.net>
9404
9405 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9406 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9407 * value.c (struct_return_convention): New function.
9408 (using_struct_return): Implement in terms of struct_return_convention.
9409 * value.h (struct_return_convention): Declare.
9410 * stack.c (return_command): Allow successful overriding of the return
9411 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9412
bc9abe4a
TT
94132013-02-06 Tom Tromey <tromey@redhat.com>
9414
9415 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9416 outside of TRY_CATCH.
9417
134a2066
YQ
94182013-02-06 Yao Qi <yao@codesourcery.com>
9419
9420 * mi/mi-interp.c: Include "tracepoint.h".
9421 (mi_tsv_modified): Declare.
9422 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9423 (mi_interpreter_init): Call observer_attach_tsv_modified.
9424 (mi_tsv_modified): New.
9425 (mi_tsv_created, mi_tsv_deleted): Update.
9426 * tracepoint.c (trace_variable_command): Call
9427 observer_notify_tsv_modified if the initial value of tsv is
9428 changed.
9429 (delete_trace_state_variable): Call
9430 observer_notify_tsv_deleted earlier.
9431 (trace_variable_command): Caller update.
9432 (create_tsv_from_upload): Likewise.
9433 * observer.sh: Declare "struct trace_state_variable".
9434
9435 * NEWS: Mention the new MI notification "=tsv-modified".
9436
59be2b6a
DE
94372013-02-05 Doug Evans <dje@google.com>
9438
9439 * completer.c (location_completer): Fix typo in comment.
9440
d30113d4
JK
94412013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9442
9443 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9444 ADDRESS sorted.
9445
14ac654f
MS
94462013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9447
9448 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9449 Refactor if statement to avoid trailing || operator.
9450
543bf33d
AT
94512013-02-05 Andreas Tobler <andreast@fgznet.ch>
9452
9453 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9454
dc18f110
AT
94552013-02-04 Andreas Tobler <andreast@fgznet.ch>
9456
9457 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9458 * configure.host: Add powerpc*-*-freebsd* target.
9459 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9460 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9461 * config/powerpc/fbsd.mh: New file.
9462
b3ac9c77
SDJ
94632013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9464 Denys Vlasenko <dvlasenk@redhat.com>
9465 Pedro Alves <palves@redhat.com>
9466
9467 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9468 (struct elf_internal_linux_prpsinfo): Forward declare.
9469 * gdbarch.h, gdbarch.c: Regenerate.
9470 * linux-tdep.c: Include `cli/cli-utils.h'.
9471 (linux_fill_prpsinfo): New function.
9472 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9473 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9474 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9475 depending on gdbarch pointer bitness.
9476 * ppc-linux-tdep.c: Include elf-bfd.h.
9477 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9478 on 32-bit.
9479
176eb98c
MS
94802013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9481 Marcus Shawcroft <marcus.shawcroft@arm.com>
9482 Nigel Stephens <nigel.stephens@arm.com>
9483 Yufeng Zhang <yufeng.zhang@arm.com>
9484
9485 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9486
cf0dbd6f
MS
94872013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9488 Marcus Shawcroft <marcus.shawcroft@arm.com>
9489 Nigel Stephens <nigel.stephens@arm.com>
9490 Yufeng Zhang <yufeng.zhang@arm.com>
9491
9492 * aarch64-newlib-tdep.c: New file.
9493 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9494 aarch64*-*-elf.
9495 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9496 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9497 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9498 * osabi.c (gdb_osabi_names): Add "Newlib".
9499
1ae3db19
MS
95002013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9501 Marcus Shawcroft <marcus.shawcroft@arm.com>
9502 Nigel Stephens <nigel.stephens@arm.com>
9503 Yufeng Zhang <yufeng.zhang@arm.com>
9504
9505 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9506 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9507 * aarch64-linux-tdep.c: New file.
9508 * aarch64-linux-tdep.h: New file.
9509 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9510 * configure.tgt: Add aarch64-none-linux-gnu.
9511
07b287a0
MS
95122013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9513 Marcus Shawcroft <marcus.shawcroft@arm.com>
9514 Nigel Stephens <nigel.stephens@arm.com>
9515 Yufeng Zhang <yufeng.zhang@arm.com>
9516
9517 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9518 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9519 (ALLDEPFILES): Add aarch64-tdep.c.
9520 * aarch64-tdep.c: New file.
9521 * aarch64-tdep.h: New file.
9522 * configure.tgt: Add AArch64.
9523 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9524 (aarch64-expedite): New definition.
9525 * features/aarch64-core.xml: New file.
9526 * features/aarch64-fpu.xml: New file.
9527 * features/aarch64-without-fpu.c: New file (generated).
9528 * features/aarch64-without-fpu.xml: New file.
9529 * features/aarch64.c: New file (generated).
9530 * features/aarch64.xml: New file.
9531 * regformats/aarch64-without-fpu.dat: New file (generated).
9532 * regformats/aarch64.dat: New file (generated).
9533
0f1b18ab
JK
95342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9535
9536 * contrib/expect-read1.c: New file.
9537 * contrib/expect-read1.sh: New file.
9538
233d95b5
JK
95392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9540
9541 * dwarf2read.c (file_file_name): New function with code from
9542 file_full_name.
9543 (file_full_name): Move most of the code to file_file_name.
9544 (macro_start_file): Rename variable full_name to file_name and use
9545 file_file_name for it. Add comp_dir parameter to new_macro_table.
9546 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9547 macro_source_file->filename access by macro_source_fullname call.
9548 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9549 caller.
9550 * macrotab.c (struct macro_table): New field comp_dir.
9551 (macro_include): New variables link_fullname and source_fullname.
9552 Replace any macro_source_file->filename access by macro_source_fullname
9553 call.
9554 (macro_lookup_inclusion): Remove the partial filenames checking code.
9555 (check_for_redefinition): New variables source_fullname and
9556 found_key_fullname. Replace any macro_source_file->filename access by
9557 macro_source_fullname call.
9558 (macro_undef): New variables source_fullname and key_fullname. Replace
9559 any macro_source_file->filename access by macro_source_fullname call.
9560 (macro_lookup_definition): New variables retval and source_fullname.
9561 Replace any macro_source_file->filename access by macro_source_fullname
9562 call.
9563 (foreach_macro): New variable key_fullname. Replace any
9564 macro_source_file->filename access by macro_source_fullname call.
9565 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9566 macro_source_file->filename access by macro_source_fullname call.
9567 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9568 (macro_source_fullname): New function.
9569 * macrotab.h (struct macro_source_file): Extent the filename field
9570 comment.
9571 (new_macro_table): New parameter comp_dir, add a comment for it.
9572 (macro_source_fullname): new declaration.
9573
da235a7c
JK
95742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9577 this_real_name to outer block. Use it also for
9578 compare_filenames_for_search.
9579 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9580 with dw2_get_real_path for file_matcher, considering also
9581 BASENAMES_MAY_DIFFER.
9582 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9583
fbd9ab74
JK
95842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9587 to the file_matcher parameter. Pass 0 to it.
9588 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9589 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9590 NULL psymtab_to_fullname result.
9591 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9592 an expected filename instead.
9593 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9594 file_matcher parameter. Call also psymtab_to_fullname, after newly
9595 considering BASENAMES_MAY_DIFFER.
9596 * source.c (rewrite_source_path): Remove static.
9597 * source.h (rewrite_source_path): New declaration.
9598 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9599 the expand_symtabs_matching field. Comment it.
9600 * symtab.c (file_matches): New function comment. Add parameter
9601 basenames, implement it.
9602 (search_symbols_file_matches): Add basenames parameter. Update the
9603 file_matches caller.
9604 (search_symbols): Match FILES also against symtab_to_fullname.
9605 Optimize it for BASENAMES_MAY_DIFFER.
9606
56d397a3
JK
96072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9608
9609 * source.c (print_source_lines_base): Print for TUI also "fullname".
9610 * tui/tui-data.c (init_content_element): Change tui_locator_element
9611 field to full_name.
9612 * tui/tui-data.h (struct tui_locator_element): Likewise.
9613 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9614 tui_update_locator_filename calls to tui_update_locator_fullname.
9615 Replace symtab->filename refererence by symtab_to_fullname call.
9616 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9617 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9618 field to full_name. Replace symtab->filename refererence by
9619 symtab_to_fullname call.
9620 (tui_show_symtab_source): Rename parameter to fullname. Change
9621 tui_locator_element field to full_name.
9622 * tui/tui-stack.c: Include source.h.
9623 (tui_set_locator_filename): Rename the declaration to ...
9624 (tui_set_locator_fullname): ... here. Rename its parameter to
9625 fullname, updates its comment.
9626 (tui_set_locator_info): Rename its parameter to fullname.
9627 (tui_set_locator_filename): Rename the definition to ...
9628 (tui_set_locator_fullname): ... here. Rename its parameter to
9629 fullname, updates its comment. Change tui_locator_element field to
9630 full_name.
9631 (tui_set_locator_info): Rename its parameter to fullname.
9632 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9633 (tui_update_locator_filename): Rename to ...
9634 (tui_update_locator_fullname): ... here. Rename callee to
9635 tui_set_locator_fullname.
9636 (tui_show_frame_info): Replace symtab->filename refererence by
9637 symtab_to_fullname call.
9638 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9639 (tui_update_locator_fullname): ... here.
9640 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9641 tui_update_locator_fullname. Replace symtab->filename refererence by
9642 symtab_to_fullname call.
9643 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9644 Rename the callee to tui_update_locator_fullname.
9645 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9646
05cba821
JK
96472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9648
9649 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9650 by symtab_to_filename_for_display calls.
9651 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9652 (clear_command): New variable sal_fullname, initialize it. Replace
9653 compare_filenames_for_search by filename_cmp with sal_fullname.
9654 (say_where, update_static_tracepoint): Replace symtab->filename
9655 refererences by symtab_to_filename_for_display calls.
9656 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9657 Likewise.
9658 * dwarf2read.c: Include source.h.
9659 (fixup_go_packaging): Replace symtab->filename refererences by
9660 symtab_to_filename_for_display calls.
9661 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9662 Replace symtab->filename refererences by symtab_to_filename_for_display
9663 calls.
9664 (create_sals_line_offset, convert_linespec_to_sals): New variable
9665 fullname, initialize it, replace symtab->filename reference by the
9666 variable.
9667 * linux-fork.c: Include source.h.
9668 (info_checkpoints_command): Replace symtab->filename refererences by
9669 symtab_to_filename_for_display calls.
9670 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9671 by symtab_to_filename_for_display calls.
9672 * mdebugread.c: Include source.h.
9673 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9674 symtab_to_filename_for_display calls.
9675 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9676 (mi_cmd_file_list_exec_source_files): Likewise.
9677 * printcmd.c: Include source.h.
9678 (build_address_symbolic): Replace symtab->filename refererences by
9679 symtab_to_filename_for_display calls.
9680 * psymtab.c (partial_map_symtabs_matching_filename)
9681 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9682 with psymtab_to_fullname.
9683 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9684 by symtab_to_filename_for_display calls.
9685 (stpy_get_filename): New variable filename, initialize it, use instead
9686 of symtab->filename refererences.
9687 (salpy_str): Make variable filename const char *. Replace
9688 symtab->filename refererences by symtab_to_filename_for_display calls.
9689 * skip.c: Include source.h and filenames.h.
9690 (skip_file_command): Remove const from the symtab variable. Replace
9691 symtab->filename refererences by symtab_to_fullname call.
9692 (function_name_is_marked_for_skip): New variables searched_for_fullname
9693 and fullname. Use them to search also with symtab's fullname.
9694 * source.c (find_source_lines): Replace symtab->filename refererences
9695 by symtab_to_filename_for_display calls.
9696 (print_source_lines_base): New variable filename, use it instead of
9697 symtab->filename. Replace symtab->filename refererences by
9698 symtab_to_filename_for_display calls.
9699 (line_info, forward_search_command): Replace symtab->filename
9700 refererences by symtab_to_filename_for_display calls.
9701 (reverse_search_command): Replace symtab->filename refererences by
9702 symtab_to_filename_for_display calls. New variable filename for it.
9703 * stack.c (frame_info): Likewise.
9704 * symmisc.c: Include source.h.
9705 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9706 (maintenance_info_symtabs): Replace symtab->filename refererences by
9707 symtab_to_filename_for_display calls.
9708 * symtab.c (iterate_over_some_symtabs): Call
9709 compare_filenames_for_search also with symtab_to_fullname.
9710 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9711 symtab->filename refererences by symtab_to_filename_for_display calls.
9712 (find_line_symtab): Replace symtab->filename refererences by
9713 symtab_to_filename_for_display calls.
9714 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9715 (print_symbol_info): Make the last parameter const char *. New
9716 variable s_filename. Use it in the function.
9717 (symtab_symbol_info): Make the last_filename variable const char *.
9718 Replace symtab->filename refererences by symtab_to_filename_for_display
9719 calls.
9720 (rbreak_command): New variable fullname. Use it. Replace
9721 symtab->filename refererence by symtab_to_filename_for_display call.
9722 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9723 (print_one_static_tracepoint_marker): Replace symtab->filename
9724 refererences by symtab_to_filename_for_display calls.
9725 * tui/tui-source.c (tui_set_source_content): New variables filename and
9726 s_filename. Replace symtab->filename refererences by this variable.
9727 Replace other symtab->filename refererences by
9728 symtab_to_filename_for_display calls.
9729
1b56eb55
JK
97302013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9731 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 Add a new variable that controls a way in which filenames are
9734 displayed.
9735 * NEWS (set filename-display): New entry.
9736 * source.c (filename_display_basename, filename_display_relative)
9737 (filename_display_absolute, filename_display_kind_names)
9738 (filename_display_string, show_filename_display_string)
9739 (symtab_to_filename_for_display): New.
9740 (_initialize_source): Added initialization of 'filename-display'
9741 variable.
9742 * source.h (symtab_to_filename_for_display): Added declaration.
9743 * stack.c (print_frame): Added new variable and calling of a new
9744 function and condition with this variable. Changed third argument of
9745 calling of a function.
9746
aa079c93
JK
97472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9748
9749 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9750 Rename field reference filename to fullname.
9751 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9752 fullname. New comment for it.
9753 * tui/tui-source.c (tui_set_source_content): Rename field reference
9754 filename to fullname. Initialize field by symtab_to_fullname now.
9755 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9756 reference filename to fullname. Use symtab_to_fullname during
9757 comparison.
9758
652a8996
JK
97592013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 Code cleanup.
9762 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9763 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9764 filename to fullname. Rename variable this_name to this_fullname.
9765 Lowercase FILENAME_CMP call.
9766 (dw2_find_symbol_file): New comment for the returned string.
9767 (dwarf2_gdb_index_functions): Rename the function to
9768 dw2_expand_symtabs_with_fullname.
9769 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9770 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9771 fullname.
9772 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9773 * symfile.h (struct quick_symbol_functions): Rename field
9774 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9775 parameter filename to fullname. Document returned string meaning for
9776 find_symbol_file.
9777 * symtab.c (find_line_symtab): Rename the called function to
9778 expand_symtabs_with_fullname.
9779
af529f8f
JK
97802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9781
9782 Code cleanup.
9783 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9784 call of filename_cmp with compare_filenames_for_search.
9785 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9786 is_abs, unify the call of FILENAME_CMP with
9787 compare_filenames_for_search. New gdb_asserts for real_path and name.
9788 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9789 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9790 * symfile.h (struct quick_symbol_functions): Extend the comment for
9791 map_symtabs_matching_filename.
9792 * symtab.c (compare_filenames_for_search): Remove the function comment
9793 relative path requirement. Handle absolute filenames, with a comment.
9794 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9795 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9796 real_path and name. Unify the call of compare_filenames_for_search
9797 with FILENAME_CMP.
9798 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9799
2f202fde
JK
98002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9801
9802 Code cleanup.
9803 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9804 source_file references by symtab field references. Remove variables
9805 sal and fullname.
9806 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9807 (clear_command, say_where): Replace bp_location field source_file
9808 references by symtab field references.
9809 (bp_location_dtor): Remove the source_file reference.
9810 (update_static_tracepoint): Replace bp_location field source_file
9811 references by symtab field references.
9812 (breakpoint_free_objfile): New function.
9813 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9814 Replace the field source_file by field symtab, extend its comment.
9815 (breakpoint_free_objfile): New declaration.
9816 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9817 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9818 field source_file references by symtab field references.
9819
f5b95b50
JK
98202013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9821
9822 Replace xfullpath calls by gdb_realpath calls.
9823 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9824 function comment.
9825 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9826 Remove it from the iterate_over_some_symtabs call.
9827 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9828 Remove it from the dw2_map_expand_apply calls, remove a block handling
9829 it.
9830 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9831 Remove it from the iterate_over_some_symtabs call.
9832 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9833 Remove it from the partial_map_expand_apply calls, remove a block
9834 handling it. Drop gdb_realpath call and cleanups from the real_path
9835 handling.
9836 * source.c (openp): Drop the comment part about xfullpath. Replace
9837 xfullpath calls by gdb_realpath calls.
9838 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9839 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9840 from method map_symtabs_matching_filename and its comment.
9841 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9842 gdb_realpath call.
9843 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9844 remove it also from the function comment, remove a block handling it.
9845 Drop gdb_realpath call and cleanups from the real_path handling.
9846 (iterate_over_symtabs): Drop variable full_path and its use.
9847 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9848 * utils.c (xfullpath): Remove.
9849 * utils.h (xfullpath): Remove.
9850
d78489bf
AT
98512013-02-01 Andreas Tobler <andreast@fgznet.ch>
9852
9853 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9854 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9855 (ALLDEPFILES): Add ppc64-tdep.c.
9856 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9857 ppc64-tdep.o to gdb_target_obs.
9858 * ppc64-tdep.h: New file.
9859 * ppc64-tdep.c: New file.
9860 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9861 ppc-linux-tdep.c to here.
9862 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9863 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9864 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9865 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9866 from ppc-linux-tdep.c to here.
9867 (ppc64_convert_from_func_ptr_addr): Rename from
9868 ppc64_linux_convert_from_func_ptr_addr to
9869 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9870 here.
9871 * rs6000-tdep.c:
9872 (read_insn): Move from ppc-linux-tdep.c to here.
9873 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9874 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9875 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9876 Removed above functions.
9877 (ppc_linux_init_abi): Adjust.
9878
8db60374
AR
98792013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9880
9881 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9882
f2e5f4ce
AR
98832013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9884
9885 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9886
c1f7d745
PA
98872013-02-01 Pedro Alves <palves@redhat.com>
9888
9889 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9890 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9891
8a92335b
JK
98922013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9893
9894 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9895 files with no separate debug info.
9896 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9897 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9898 only for files with no separate debug info.
9899
8eacb197
TT
99002013-01-31 Tom Tromey <tromey@redhat.com>
9901
9902 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9903 change type.
9904 (struct jit_program_space_data): Rename from jit_inferior_data.
9905 Update comments.
9906 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9907 Change return type. Attach data to program space.
9908 (jit_program_space_data_cleanup): Rename from
9909 jit_inferior_data_cleanup; change argument type.
9910 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9911 change type.
9912 (jit_register_code): Update.
9913 (jit_update_inferior_cache): Remove.
9914 (jit_breakpoint_deleted): Get jit data from the location's program
9915 space.
9916 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9917 'ps_data', change type.
9918 (jit_inferior_init, jit_breakpoint_re_set_internal)
9919 (jit_event_handler): Update.
9920 (free_objfile_data): Get data from objfile's program space.
9921 (_initialize_jit): Update.
9922
f25c0135
TT
99232013-01-31 Tom Tromey <tromey@redhat.com>
9924
9925 PR gdb/13987:
9926 * jit.c (struct jit_inferior_data) <cached_code_address,
9927 jit_breakpoint>: New fields.
9928 (jit_breakpoint_re_set_internal): Fix logging. Only create
9929 breakpoint if cached address has changed.
9930 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9931 functions.
9932 (_initialize_jit): Register breakpoint deleted observer.
9933
974a734b
AR
99342013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9935
9936 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9937 (save_infcall_suspend_state): Ifdef out unused inf.
9938 (restore_infcall_suspend_state): Ifdef out unused inf.
9939 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9940 (jit_frame_sniffer): Remove unused inf_data.
9941
df54f8eb
AR
99422013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9943
9944 * c-exp.y (classify_inner_name): Remove unused type.
9945 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9946 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9947 need_escape.
9948 (c_get_string): Remove unused kind.
9949 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9950
5799c0b9
AR
99512013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9952
9953 * charset.c (intermediate_encoding): Remove unused i.
9954 * completer.c (signal_completer): Remove unused i.
9955 * continuations.c (discard_my_continuations_1): Remove unused
9956 continuation_ptr.
9957 * corelow.c (core_close): Remove unuseD name.
9958 (get_core_siginfo): Remove unused pid.
9959 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9960 i, cps.
9961 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9962 (loclist_describe_location): Remove unused first.
9963 * event-top.c (command_line_handler): Remove unused got_eof.
9964 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9965 (resize_section_table): Remove unused old_value.
9966 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9967 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9968 * i386-tdep.c (i386_process_record): Remove unused rex.
9969 * infcmd.c (get_return_value): Remove unused uiout.
9970 * jv-lang.c (type_from_class): Remove unused is_array.
9971 * jv-valprint.c (java_val_print): Remove unused i.
9972 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9973 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9974 * m2-typeprint.c (m2_print_type): Remove unused code.
9975 * macroexp.c (get_character_constant): Remove unused body_start.
9976 (macro_stringify): Remove unused result.
9977 * objc-lang.c (find_methods): Remove unused gdbarch.
9978 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9979 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9980 * stack.c (print_frame_args): Remove unused summary.
9981 * thread.c (thread_apply_command): Remove unused p.
9982 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9983 * valops.c (search_struct_method): Remove unused skip.
9984 * valprint.c (generic_val_print): Remove unused byte_order.
9985 * varobj.c (varobj_update): Remove unused changed.
9986 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9987 (alias_command): Remove unused c.
9988 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9989 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9990 format.
9991 (mi_cmd_data_write_memory): Remove unused word_format.
9992 (mi_cmd_data_write_memory_bytes): Remove unused r.
9993 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9994 p_start, p_end.
9995 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9996 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9997 line_width.
9998
c656bca5
AR
99992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10000
10001 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10002 * symtab.c (iterate_over_symtabs): Remove unused s.
10003 (find_pc_sect_symtab): Remove unused pspAce.
10004 (find_pc_sect_line): Remove unused alt_symtab.
10005 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10006 (completion_list_add_name): Remove unused newsize.
10007
7078baeb
TT
100082013-01-31 Tom Tromey <tromey@redhat.com>
10009
10010 PR c++/14998:
10011 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10012 TYPE_CODE_FUNC.
10013
c2e8b827
AR
100142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10015
10016 * target.c (target_read_string): Remove unused origlen.
10017
0e43993a
AR
100182013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10019
10020 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10021 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10022 * ax-general.c (ax_print): Remove unused is_float.
10023 * blockframe.c (block_innermost_frame): Remove unused start, end.
10024 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10025
765a97ab
AR
100262013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10027
10028 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10029 (svr4_read_so_list): Remove unused lmo.
10030 * solib-target.c (solib_target_relocate_section_addresses): Remove
10031 unused flags.
10032
a99dad3d
TT
100332013-01-30 Tom Tromey <tromey@redhat.com>
10034
10035 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10036
3bff1ecd
TT
100372013-01-30 Tom Tromey <tromey@redhat.com>
10038
10039 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10040 * utils.c (gnu_debuglink_crc32): Remove.
10041 * utils.h (gnu_debuglink_crc32): Don't declare.
10042
7d455152
TT
100432013-01-30 Tom Tromey <tromey@redhat.com>
10044
10045 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10046 (read_structure_type, read_enumeration_type): Remove cast.
10047
abee88f2
TT
100482013-01-30 Tom Tromey <tromey@redhat.com>
10049
10050 * dwarf2read.c (read_namespace_type): Remove cast.
10051 (read_typedef): Likewise.
10052
8d9878a4
TT
100532013-01-29 Tom Tromey <tromey@redhat.com>
10054
10055 * dwarf2read.c (free_dwo_file): Remove assert.
10056
a543d2a9
TT
100572013-01-29 Tom Tromey <tromey@redhat.com>
10058
10059 * value.c (deprecated_set_value_modifiable): Remove.
10060 * value.h (deprecated_set_value_modifiable): Remove.
10061
bed911e5
DE
100622013-01-28 Doug Evans <dje@google.com>
10063
10064 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10065 to addresses from dwo files.
10066
28c64fc2
SCR
100672013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10068
10069 * valops.c (find_overload_match): Remove unused argument 'lax'.
10070 * value.h: Remove unused argument 'lax' from the declaration of
10071 find_overload_match.
10072 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10073 to find_overload_match.
10074 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10075 argument to find_overload_match.
10076
4d4ec4e5
TT
100772013-01-25 Tom Tromey <tromey@redhat.com>
10078
10079 * dwarf2read.c (processing_has_namespace_info): Remove.
10080 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10081 (process_die, read_func_scope, dwarf2_start_symtab)
10082 (new_symbol_full): Update.
10083
195a3f6c
TT
100842013-01-25 Tom Tromey <tromey@redhat.com>
10085
10086 * cp-namespace.c (cp_set_block_scope): Remove.
10087 * cp-support.h (cp_set_block_scope): Remove.
10088 * dbxread.c: Include block.h.
10089 (cp_set_block_scope): New function.
10090 (process_one_symbol): Update.
10091 * dwarf2read.c (read_func_scope): Use block_set_scope.
10092
8ba0730a
PA
100932013-01-25 Pedro Alves <palves@redhat.com>
10094
10095 * remote.c (add_current_inferior_and_thread): Tweak comment.
10096
12aaed36
TT
100972013-01-25 Tom Tromey <tromey@redhat.com>
10098
10099 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10100 (cp_add_using_directive): Add 'copy_names' argument.
10101 * cp-support.h (cp_add_using_directive): Update.
10102 (struct using_direct) <import_src, import_dest, alias,
10103 declaration>: Now const.
10104 * dwarf2read.c (read_import_statement): Use obconcat.
10105 Don't copy names passed to cp_add_using_directive.
10106
7fc75ca7
TT
101072013-01-25 Tom Tromey <tromey@redhat.com>
10108
10109 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10110
3405876a
PA
101112013-01-25 Pedro Alves <palves@redhat.com>
10112
10113 * remote.c (stop_reply_extract_thread): New.
10114 (add_current_inferior_and_thread): New parameter 'wait_status'.
10115 Handle it.
10116 (remote_start_remote): Pass wait status to
10117 add_current_inferior_and_thread.
10118 (extended_remote_run): Update comment.
10119 (extended_remote_create_inferior_1): Pass wait status to
10120 add_current_inferior_and_thread.
10121
8954db33
AB
101222013-01-25 Andrew Burgess <aburgess@broadcom.com>
10123 Ulrich Weigand <uweigand@de.ibm.com>
10124
10125 * valarith.c (value_vector_widen): New function for replicating a
10126 scalar into a vector.
10127 (value_binop): Use value_vector_widen to widen scalar to vector
10128 rather than casting, this better matches gcc C behaviour.
10129 * valops.c (value_casst): Update logic for casting between vector
10130 types, and for casting from scalar to vector, try to match gcc C
10131 behaviour.
10132 * value.h (value_vector_widen): Declare.
10133 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10134 function, handle special case for casting scalar to vector.
10135 (opencl_relop): Use opencl_value_cast.
10136 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10137 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10138 in order to use opencl_value_cast.
10139
843b20dc
YQ
101402013-01-25 Yao Qi <yao@codesourcery.com>
10141
10142 * event-loop.c: Include "queue.h".
10143 (gdb_event_p): New typedef.
10144 (DECLARE_QUEUE_P): Use.
10145 (DEFINE_QUEUE_P): Use.
10146 (async_queue_event): Remove.
10147 (gdb_event_xfree): New.
10148 (initialize_event_loop): New.
10149 (process_event): Use QUEUE macros.
10150 (event_queue): Remove.
10151 (gdb_wait_for_event): Caller update.
10152 (check_async_event_handlers): Likewise.
10153 (poll_timers): Likewise.
10154 * event-loop.h (initialize_event_loop): Declare.
10155 * event-loop.c (gdb_event_xfree): New.
10156 * top.c (gdb_init): Call initialize_event_loop.
10157
20ad8856
YQ
101582013-01-25 Yao Qi <yao@codesourcery.com>
10159
10160 * event-loop.c (async_queue_event): Remove one parameter
10161 'position'. Remove code handling 'position' == TAIL.
10162 (gdb_wait_for_event): Caller update.
10163 (check_async_event_handlers): Caller update.
10164 (poll_timers): Caller update.
10165 * event-loop.h (enum queue_position): Remove.
10166
3bbbe775
MK
101672013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10168
10169 * MAINTAINERS: Update my email.
10170
a87d9ac4
YQ
101712013-01-25 Yao Qi <yao@codesourcery.com>
10172
10173 * main.c (print_gdb_help): Remove "--epoch" from the help
10174 message.
10175
2077afdd
TD
101762013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10177
10178 * symtab.c (skip_prologue_using_sal): Consider a file
10179 change the same as an increased line number
10180
63da4037
TD
101812013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10182
30e8ee25 10183 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10184
45e6c716
TT
101852013-01-24 Tom Tromey <tromey@redhat.com>
10186
10187 * ada-lang.h (ada_decode_symbol): Make return type const.
10188 * ada-lang.c (ada_decode_symbol): Likewise.
10189
b1ae631a
DE
101902013-01-23 Doug Evans <dje@google.com>
10191
10192 * linespec.c (find_linespec_symbols): Make static.
10193
55a78401
SDJ
101942013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10195
10196 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10197 type on float conversion for complex type.
10198
bea883fd
SCR
101992013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10200
10201 Add a new class gdb.Architecture which exposes GDB's
10202 internal representation of architecture via GDB Python API.
10203 * Makefile.in: Add entries corresponding to the new file
10204 python/py-arch.c.
10205 * NEWS (Python Scripting): Add entries for the new class
10206 gdb.Architecture and the new method gdb.Frame.architecture.
10207 * python/py-arch.c: Implement gdb.Architecture class.
10208 * python/py-frame.c (frapy_arch): Implement the method
10209 gdb.Frame.architecture().
10210 (frame_object_methods): Add 'architecture' to the method table.
10211 * python/python-internal.h: Add declarations of new utility
10212 functions.
10213 * python/python.c (_initialize_python): Initialize
10214 gdb.Architecture class.
10215
796a7ff8
DE
102162013-01-23 Doug Evans <dje@google.com>
10217
10218 Work around binutils/15021.
10219 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10220 type_unit_group out of union s. All uses updated.
10221 (read_index_from_section): Watch for index version 8.
10222 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10223 an imported symtab.
10224 (write_psymtabs_to_index): Increment version number to 8.
10225
0928e93d
PA
102262013-01-22 Pedro Alves <palves@redhat.com>
10227
10228 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10229 user-visible.
10230
9c97429f
PA
102312013-01-22 Pedro Alves <palves@redhat.com>
10232
10233 * annotate.c (annotate_breakpoints_changed): Rename to ...
10234 (annotate_breakpoints_invalid): ... this. Make static.
10235 (breakpoint_changed): Adjust.
10236 (_initialize_annotate): Always install the observers. Install a
10237 "breakpoint_created" observer.
10238 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10239 * breakpoint.c (set_breakpoint_condition)
10240 (breakpoint_set_commands, do_map_commands_command)
10241 (init_raw_breakpoint, clear_command, set_ignore_count)
10242 (enable_breakpoint_disp): No longer call
10243 annotate_breakpoints_changed.
10244
bd00c694
PA
102452013-01-22 Pedro Alves <palves@redhat.com>
10246
10247 * annotate.c: Include "inferior.h".
10248 (frames_invalid_emitted)
10249 (breakpoints_invalid_emitted): New globals.
10250 (async_background_execution_p): New function.
10251 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10252 emitting the annotation if it has already been emitted.
10253 (annotate_display_prompt): New function.
10254 * annotate.h (annotate_display_prompt): New declaration.
10255 * event-top.c: Include annotate.h.
10256 (display_gdb_prompt): Call annotate_display_prompt.
10257
187d10dd
PA
102582013-01-22 Pedro Alves <palves@redhat.com>
10259
10260 * annotate.c (ignore_count_changed): Delete.
10261 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10262 (annotate_ignore_count_change): Delete.
10263 (annotate_stopped): Don't emit a delayed breakpoints-changed
10264 annotation.
10265 * annotate.h (annotate_ignore_count_change): Delete.
10266 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10267 annotate_ignore_count_change.
10268
d84cf7eb
TT
102692013-01-22 Tom Tromey <tromey@redhat.com>
10270
10271 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10272 require_rvalue for a register location.
10273
8f1d5693
MK
102742013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10275
10276 * breakpoint.c (print_one_breakpoint_location): Add MI
10277 field 'thread-groups' when printing a breakpoint.
10278 (output_thread_groups): New function.
10279
aa6199c6
SCR
102802013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10281
10282 * python/lib/gdb/commands/explore.py
10283 (CompoundExplorer.explore_expr): Correct the name of a method
10284 being invoked.
10285 (ExploreTypeCommand.invoke): Add a missing 'return'.
10286
d2afef13
TT
102872013-01-21 Tom Tromey <tromey@redhat.com>
10288
10289 * gdb_obstack.h (obconcat): Move declaration here, from...
10290 * symfile.h (obconcat): ... here.
10291 * gdb_obstack.c: New file.
10292 (obconcat): Move from...
10293 * symfile.c (obconcat): ... here.
10294 * Makefile.in (SFILES): Add gdb_obstack.c.
10295 (COMMON_OBS): Add gdb_obstack.o.
10296
10f0c4bb
TT
102972013-01-21 Tom Tromey <tromey@redhat.com>
10298
10299 * symfile.h (obsavestring): Don't declare.
10300 * symfile.c (obsavestring): Remove.
10301 * ada-exp.y: Use obstack_copy0, not obsavestring.
10302 * ada-lang.c: Use obstack_copy0, not obsavestring.
10303 * coffread.c: Use obstack_copy0, not obsavestring.
10304 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10305 * dbxread.c: Use obstack_copy0, not obsavestring.
10306 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10307 * jit.c: Use obstack_copy0, not obsavestring.
10308 * mdebugread.c: Use obstack_copy0, not obsavestring.
10309 * psymtab.c: Use obstack_copy0, not obsavestring.
10310 * stabsread.c: Use obstack_copy0, not obsavestring.
10311 * xcoffread.c: Use obstack_copy0, not obsavestring.
10312
86f62fd7
TT
103132013-01-21 Tom Tromey <tromey@redhat.com>
10314
10315 * dwarf2read.c (fixup_go_packaging): Save package name
10316 on objfile obstack.
10317 * gdbtypes.c (init_type): Don't copy name.
10318
15d034d0
TT
103192013-01-21 Tom Tromey <tromey@redhat.com>
10320
10321 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10322 const.
10323 (struct attribute) <u.str>: Now const.
10324 (struct fnfieldlist) <name>: Now const.
10325 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10326 (partial_die_parent_scope): Make return type const.
10327 (partial_die_full_name, add_partial_symbol): Update.
10328 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10329 'name' const.
10330 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10331 (read_file_scope, read_func_scope, dwarf2_add_field)
10332 (dwarf2_add_member_fn, read_structure_type)
10333 (process_enumeration_scope, read_array_type, read_module_type)
10334 (read_base_type, read_subrange_type): Update.
10335 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10336 (new_symbol_full, guess_full_die_structure_name): Update.
10337 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10338 (dwarf2_name): Return const type.
10339 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10340 const.
10341
748e18ae
TT
103422013-01-21 Tom Tromey <tromey@redhat.com>
10343
10344 * gdbtypes.c (init_type): Make 'name' const.
10345 * gdbtypes.h (init_type): Update.
10346
46212e0b
TT
103472013-01-21 Tom Tromey <tromey@redhat.com>
10348
10349 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10350 (start_symtab): Make 'name' and 'dirname' const. Use
10351 set_last_source_file.
10352 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10353 (last_source_file): Define. Now static.
10354 (set_last_source_file, get_last_source_file): New functions.
10355 * buildsym.h (last_source_file): Don't declare.
10356 (start_symtab): Update.
10357 (set_last_source_file, get_last_source_file): Declare.
10358 * coffread.c (complete_symtab): Use set_last_source_file.
10359 (coff_end_symtab): Likewise.
10360 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10361 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10362 set_last_source_file.
10363 (process_one_symbol): Use get_last_source_file.
10364 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10365 (psymtab_to_symtab_1): Use get_last_source_file.
10366 * xcoffread.c (process_linenos): Use get_last_source_file.
10367 (complete_symtab): Use set_last_source_file.
10368 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10369 (scan_xcoff_symtab): Use set_last_source_file.
10370
9d2ceabe
TT
103712013-01-21 Tom Tromey <tromey@redhat.com>
10372
10373 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10374 (symbol_set_names): Remove casts. Handle field const-ness.
10375
cfc594ee
TT
103762013-01-21 Tom Tromey <tromey@redhat.com>
10377
10378 * dwarf2read.c (new_symbol_full): Remove cast.
10379 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10380 * symtab.h (symbol_set_demangled_name): Update.
10381
5484b13a
TT
103822013-01-21 Tom Tromey <tromey@redhat.com>
10383
10384 * main.c (captured_main): Call bfd_init.
10385
1605ef26
TT
103862013-01-21 Tom Tromey <tromey@redhat.com>
10387
10388 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10389 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10390 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10391 * NEWS: Update.
10392
3b74cdc3
JK
103932013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10396
5a352474
JK
103972013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10398
10399 Fix gdb.fortran/common-block.exp crash in PIE mode.
10400 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10401 LOC_COMMON_BLOCK.
10402 * f-valprint.c (info_common_command_for_block): Expect
10403 LOC_COMMON_BLOCK in gdb_assert.
10404 * symtab.h (struct general_symbol_info): Update comment for the
10405 common_block member.
10406 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10407 (enum address_class): New member LOC_COMMON_BLOCK.
10408
c60797fd
DB
104092013-01-18 David Blaikie <dblaikie@gmail.com>
10410
10411 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10412
46f35228
TT
104132013-01-18 Tom Tromey <tromey@redhat.com>
10414
10415 PR c++/14999:
10416 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10417 Call require_rvalue.
10418
257e7a09
YQ
104192013-01-18 Yao Qi <yao@codesourcery.com>
10420
10421 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10422 (dbx_read_symtab): New declaration.
10423 (dbx_psymtab_to_symtab): Delete.
10424 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10425 Rename parameter PST to SELF. Exchanged two parameters.
10426 (start_psymtab): Caller update.
10427 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10428 (dwarf2_read_symtab): New declaration.
10429 (dwarf2_psymtab_to_symtab): Delete.
10430 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10431 Rename parameter PST to SELF. Exchanged two parameters.
10432 (create_partial_symtab): Caller update.
10433 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10434 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10435 Rename parameter PST to SELF. Exchanged two parameters.
10436 (parse_partial_symbols, new_psymtab): Caller update.
10437 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10438 two parameters.
10439 * psymtab.c (psymtab_to_symtab): Caller update.
10440 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10441 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10442 Rename parameter PST to SELF. Exchanged two parameters.
10443 (xcoff_start_psymtab): Caller update.
10444
0de5618e
YQ
104452013-01-18 Yao Qi <yao@codesourcery.com>
10446
10447 * infrun.c (proceed): Rename local variable 'oneproc' to
10448 'force_step'.
10449
5c04624b
DE
104502013-01-17 Doug Evans <dje@google.com>
10451
848e3e78
DE
10452 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10453 (dw2_build_type_unit_groups): Delete. All uses updated.
10454
5c04624b
DE
10455 * symtab.h (struct symbol_search): Add comment.
10456
d84fca2c
JK
104572013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 * symtab.c (compare_filenames_for_search): New comment for
10460 HAS_DRIVE_SPEC.
10461
6108433d
TT
104622013-01-17 Tom Tromey <tromey@redhat.com>
10463
10464 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10465
c89ffd86
JK
104662013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10467
10468 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10469 initialize it by existing make_cleanup. Call new do_cleanups.
10470
db2b2972
TT
104712013-01-17 Tom Tromey <tromey@redhat.com>
10472
10473 * cp-abi.c (cp_abi_completer): New function.
10474 (_initialize_cp_abi): Set completer for "set cp-abi".
10475
be7d37a2
TT
104762013-01-17 Tom Tromey <tromey@redhat.com>
10477
10478 * mem-break.c: Remove obsolete comment.
10479 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10480
c9fb1240
SD
104812012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10482
10483 * jit.c (jit_reader_load_command): Interpret the jit reader name
10484 as an absolute path if it begins with a forward slash.
10485
db334a01
SD
104862012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10487
10488 PR gdb/14550
10489
10490 * jit.c (finalize_symtab): Ensure that only the global block has a
10491 NULL superblock.
10492
7d928dac
PA
104932013-01-17 Pedro Alves <palves@redhat.com>
10494
10495 * acinclude.m4: Include ../config/plugins.m4,
10496 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10497 * Makefile.in (aclocal_m4_deps): Update.
10498 * aclocal.m4: Renegerate.
10499
fb8cf7c5
DE
105002013-01-16 Doug Evans <dje@google.com>
10501
10502 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10503
ab04a2af
TT
105042013-01-16 Pedro Alves <palves@redhat.com>
10505 Tom Tromey <tromey@redhat.com>
10506
10507 PR cli/7221:
10508 * NEWS: Add "catch signal".
10509 * breakpoint.c (base_breakpoint_ops): No longer static.
10510 (bpstat_explains_signal): New function.
10511 (init_catchpoint): No longer static.
10512 (base_breakpoint_explains_signal): New function.
10513 (base_breakpoint_ops): Initialize new field.
10514 * breakpoint.h (enum bpstat_signal_value): New.
10515 (struct breakpoint_ops) <explains_signal>: New field.
10516 (bpstat_explains_signal): Remove macro, declare as function.
10517 (base_breakpoint_ops, init_catchpoint): Declare.
10518 * break-catch-sig.c: New file.
10519 * inferior.h (signal_catch_update): Declare.
10520 * infrun.c (signal_catch): New global.
10521 (handle_syscall_event): Update for change to
10522 bpstat_explains_signal.
10523 (handle_inferior_event): Likewise. Always handle random signals
10524 via bpstats.
10525 (signal_cache_update): Check signal_catch.
10526 (signal_catch_update): New function.
10527 (_initialize_infrun): Initialize signal_catch.
10528 * Makefile.in (SFILES): Add break-catch-sig.c.
10529 (COMMON_OBS): Add break-catch-sig.o.
10530
8ac3646f
TT
105312013-01-16 Tom Tromey <tromey@redhat.com>
10532
10533 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10534 (print_one_catch_solib, print_one_catch_syscall)
10535 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10536 "catch-type".
10537
5a18e302
YQ
105382013-01-16 Yao Qi <yao@codesourcery.com>
10539
10540 * printcmd.c (current_display_number): Make it static.
10541
3f01d0d0
YQ
105422013-01-16 Yao Qi <yao@codesourcery.com>
10543
10544 * infcmd.c (step_once): Don't check '!single_inst' as it was
10545 checked before.
10546
1ed59174
JK
105472013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10548
10549 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10550
44478ab3
TT
105512013-01-14 Tom Tromey <tromey@redhat.com>
10552
10553 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10554 set command.
10555 * command.h (add_setshow_string_noescape_cmd): Update.
10556 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10557 (complete_set_gnutarget): New function.
10558 (_initialize_core): Set the "set gnutarget" completer.
10559
06d66ee9
TT
105602013-01-14 Tom Tromey <tromey@redhat.com>
10561
10562 PR symtab/14442:
10563 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10564 (c_type_print_modifier): Likewise.
10565 * dwarf2read.c (read_tag_restrict_type): New function.
10566 (read_type_die_1): Handle DW_TAG_restrict_type.
10567 * gdbtypes.c (make_restrict_type): New function.
10568 (recursive_dump_type): Handle TYPE_RESTRICT.
10569 * gdbtypes.h (enum type_flag_values): Renumber.
10570 (enum type_instance_flag_value): Add
10571 TYPE_INSTANCE_FLAG_RESTRICT.
10572 (TYPE_RESTRICT): New macro.
10573 (make_restrict_type): Declare.
10574
c9bf0622
TT
105752013-01-14 Tom Tromey <tromey@redhat.com>
10576
10577 PR symtab/14931:
10578 * psymtab.c (struct psymtab_state): New.
10579 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10580 functions.
10581 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10582 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10583
44d594fd
PA
105842013-01-14 Richard Sharman <richard_sharman@mitel.com>
10585 Pedro Alves <palves@redhat.com>
10586
10587 PR remote/14786
10588
10589 * remote.c (remote_threads_info): Make a copy of the reply from
10590 qfThreadInfo and use that instead of rs->buf.
10591
442e4d9c
YQ
105922013-01-14 Yao Qi <yao@codesourcery.com>
10593
10594 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10595 (dbx_psymtab_to_symtab): Likewise.
10596 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10597 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10598 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10599
5b12a61c
JK
106002013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10603 make_cleanup_restore_current_language. Call set_language. Move
10604 OLD_CHAIN and INNER_CHAIN cleanups.
10605 * utils.c (do_restore_current_language)
10606 (make_cleanup_restore_current_language): New functions.
10607 * utils.h (make_cleanup_restore_current_language): New declaration.
10608
f0a4b570
JK
106092013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10612 non-existing files.
10613
57b3c00c
JK
10614 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10615 non-existing files if FILENAME is already absolute.
10616
daefa854
JK
106172013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10620 fputs_filtered. Append trailing newline.
10621
ca9c6ee2
YQ
106222013-01-11 Yao Qi <yao@codesourcery.com>
10623 Stan Shebs <stan@codesourcery.com>
10624
10625 * psymtab.c (init_psymbol_list): Clarify the comment.
10626
f28045c2
YQ
106272013-01-11 Yao Qi <yao@codesourcery.com>
10628
10629 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10630 (update_dprintf_command_list): Assert that 'printf_line' is
10631 non-null. Remove condition check.
10632
da5132d3
JK
106332013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10634
10635 Code cleanup.
10636 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10637 type const char *.
10638 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10639 const char *.
10640 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10641
843e694d
AG
106422013-01-09 Anthony Green <green@moxielogic.com>
10643
10644 * cp-abi.c (cplus_print_vtable): Don't return value from void
10645 function.
10646 * ada-lang.c (re_set_catch_assert): Ditto.
10647
da51c347
DE
106482013-01-09 Doug Evans <dje@google.com>
10649
10650 * symfile.h (quick_symbol_functions): Delete member
10651 pre_expand_symtabs_matching. All uses removed.
10652 * dwarf2read.c (dw2_lookup_symbol): Implement.
10653 (dw2_do_expand_symtabs_matching): Delete.
10654 (dw2_pre_expand_symtabs_matching): Delete.
10655 (struct dw2_symtab_iterator): New type.
10656 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10657 (dw2_expand_symtabs_for_function): Rewrite.
10658 (dwarf2_gdb_index_functions): Update.
10659 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10660 (psym_functions): Update.
10661
b2259038
TT
106622013-01-09 Tom Tromey <tromey@redhat.com>
10663
10664 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10665 * configure: Rebuild.
10666 * configure.ac: Add somread.o to the build if BFD has SOM
10667 support.
10668 * somread.c: Include som/aout.h, not syms.h.
10669 (som_symtab_read): Use som_external_symbol_dictionary_record.
10670 Unpack records manually.
10671 (_initialize_somread): Declare.
10672
bdad4180
MF
106732012-01-08 Mike Frysinger <vapier@gentoo.org>
10674
10675 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10676 Cast return_address to 64bits.
10677
03cdf680
HZ
106782013-01-08 Hui Zhu <hui_zhu@mentor.com>
10679
10680 * printcmd.c: Remove define of function output_command.
10681 * tracepoint.c: Remove extern of function output_command.
10682 * valprint.h: (output_command): New extern.
10683
8a808554
TT
106842013-01-07 Tom Tromey <tromey@redhat.com>
10685
10686 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10687 Remove.
10688 (objc_language_defn): Use c_printchar, c_printstr,
10689 c_emit_char.
10690
e93a8774
TT
106912013-01-07 Tom Tromey <tromey@redhat.com>
10692
10693 PR cli/7719:
10694 * NEWS: Update.
10695 * ada-valprint.c (printstr, print_field_values): Remove
10696 "inspect_it" code.
10697 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10698 code.
10699 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10700 code.
10701 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10702 * main.c (captured_main): Remove "epoch" argument.
10703 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10704 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10705 * p-valprint.c (pascal_object_print_value_fields): Remove
10706 "inspect_it" code.
10707 * printcmd.c (print_command_1): Remove 'inspect' argument.
10708 (print_command, call_command): Update.
10709 (inspect_command): Remove.
10710 (_initialize_printcmd): Make "inspect" an alias for "print".
10711 * top.c (epoch_interface): Remove.
10712 * top.h (epoch_interface): Remove.
10713 * valprint.c (user_print_options): Update.
10714 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10715 * valprint.h (struct value_print_options) <inspect_it>: Remove
10716 field.
10717
107182013-01-04 Tom Tromey <tromey@redhat.com>
10719
10720 * valprint.h (read_string): Add 'extern'.
10721
b967eb24
JB
107222013-01-07 Joel Brobecker <brobecker@adacore.com>
10723
10724 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10725 used to decide whether to define darwin_read_dyld_info or not.
10726
78a8b30e
PM
107272013-01-03 Pierre Muller <muller@sourceware.org>
10728
10729 * main.c (relocate_gdb_directory): Avoid calling stat function
10730 if DIR is empty.
10731
50da2f25
YQ
107322013-01-03 Yao Qi <yao@codesourcery.com>
10733
10734 * psymtab.c (fixup_psymbol_section): Update declaration.
10735 (fixup_psymbol_section): Remove code returning value.
10736
e7e8980f
YQ
107372013-01-03 Yao Qi <yao@codesourcery.com>
10738
10739 * symtab.h: Remove some out of date comments.
10740 (enum exception_event_kind): Move it ...
10741 * breakpoint.c: ... here.
10742
569283d4
MF
107432013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10744
9f9d9a96 10745 PR gdb/14405
569283d4
MF
10746 * darwin-nat.c (darwin_read_dyld_info): Only build if
10747 TASK_DYLD_INFO_COUNT is defined.
10748 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10749 TASK_DYLD_INFO_COUNT is defined.
10750
2e36fbea
TT
107512013-01-02 Tom Tromey <tromey@redhat.com>
10752
10753 * symfile.h (struct ecoff_debug_hack): Remove.
10754 * objfiles.c: Don't include mdebugread.h.
10755
4f05add4
TT
107562013-01-02 Tom Tromey <tromey@redhat.com>
10757
10758 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10759 * configure.ac: Check for Mach-O support in BFD. Update
10760 CONFIG_OBS.
10761 * configure: Rebuild.
10762
def63ff0
TT
107632013-01-02 Tom Tromey <tromey@redhat.com>
10764
10765 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10766 * configure.ac: Use GDB_AC_CHECK_BFD.
10767 * configure: Rebuild.
10768
60c5dd93
MK
107692013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10770
10771 * MAINTAINERS: Update my email.
10772
6e58437e
JB
107732013-01-01 Joel Brobecker <brobecker@adacore.com>
10774
10775 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10776
627fe805
JB
107772013-01-01 Joel Brobecker <brobecker@adacore.com>
10778
10779 * rs6000-nat.c (bss_data_overlap): New function.
10780 (vmap_symtab): Use it to adjust the .bss section's offset.
10781
28e7fd62
JB
107822013-01-01 Joel Brobecker <brobecker@adacore.com>
10783
10784 Update year range in copyright notice of all files.
10785
e93a8774 107862013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10787
10788 * top.c (print_gdb_version): Update copyright year.
10789
72b20e9c 10790For older changes see ChangeLog-2012.
c906108c
SS
10791\f
10792Local Variables:
10793mode: change-log
10794left-margin: 8
10795fill-column: 74
10796version-control: never
57da7796 10797coding: utf-8
c906108c 10798End:
This page took 2.000511 seconds and 4 git commands to generate.