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