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