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