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