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