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