Mention PRs in ChangeLog entries for LTO tests
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab39020b
JB
12012-12-07 Joel Brobecker <brobecker@adacore.com>
2
3 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
4 "sim/common/cgen-fpu.h". Remove invalid entries
5 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
6 which actually have an FSF copyright header.
7
2cb50f9d
JB
82012-12-07 Joel Brobecker <brobecker@adacore.com>
9
10 * osf-share/AT386/cma_thread_io.h: Delete.
11 * osf-share/HP800/cma_thread_io.h: Delete.
12 * osf-share/README: Delete.
13 * osf-share/RIOS/cma_thread_io.h: Delete.
14 * osf-share/cma_attr.h: Delete.
15 * osf-share/cma_deb_core.h: Delete.
16 * osf-share/cma_debug_client.h: Delete.
17 * osf-share/cma_errors.h: Delete.
18 * osf-share/cma_handle.h: Delete.
19 * osf-share/cma_init.h: Delete.
20 * osf-share/cma_list.h: Delete.
21 * osf-share/cma_mutex.h: Delete.
22 * osf-share/cma_sched.h: Delete.
23 * osf-share/cma_semaphore_defs.h: Delete.
24 * osf-share/cma_sequence.h: Delete.
25 * osf-share/cma_stack.h: Delete.
26 * osf-share/cma_stack_int.h: Delete.
27 * osf-share/cma_tcb_defs.h: Delete.
28 * osf-share/cma_util.h: Delete.
29 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
30 in osf-share.
31 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
32 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
33 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
34
0ba2eb0f
TT
352012-12-06 Pedro Alves <palves@redhat.com>
36 Tom Tromey <tromey@redhat.com>
37
38 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
39
731145cb
TT
402012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
41
42 PR mi/14741:
43 * mi/mi-cmd-var.c (varobj_update_one): Take value of
44 attribute "dynamic" and "displayhint" from printed child,
45 not the root variable.
46
eff44fea
JB
472012-12-06 Joel Brobecker <brobecker@adacore.com>
48
49 * aix-thread.c (getthrds): Fix type of 4th parameter.
50 (get_signaled_thread): Change type of variable ktid to tid_t.
51
c90a0773
HZ
522012-12-06 Hui Zhu <hui_zhu@mentor.com>
53
54 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
55 value of get_frame_block.
56
5bc81a00
PM
572012-12-05 Pierre Muller <muller@sourceware.org>
58
59 Avoid memory leaks on struct cmd_list_element.doc field.
60 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
61 if flags contains DOC_ALLOCATED.
62 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
63 flags.
64 (delete_cmd): Handle DOC_ALLOCATED flag.
65 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
66 in flags filed of struct cmd_list_element.
67 (struct cmd_list_element): Document new flag item.
68
b5ebcee6
DE
692012-12-04 Doug Evans <dje@google.com>
70
71 * symmisc.c: Whitespace fixes.
72
56bf0743
KB
732012-12-04 Karthik Bhat <kv.bhat@samsung.com>
74
75 * i386-tdep.c (i386_skip_prologue): Using symbol table
76 to find the end of prologue for clang compiled binaries.
77 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
78 to find the end of prologue for clang compiled binaries.
79
56e64610
DE
802012-12-03 Doug Evans <dje@google.com>
81
82 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
83 (dw2_find_symbol_file): Delete unused local file_data.
84
270140bd
TT
852012-12-03 Tom Tromey <tromey@redhat.com>
86
87 * ada-exp.y (write_object_renaming, write_var_or_type)
88 (write_ambiguous_var, write_var_from_sym): Make blocks const.
89 * ada-lang.c (replace_operator_with_call)
90 (find_old_style_renaming_symbol): Make blocks const.
91 * ada-lang.h (ada_find_renaming_symbol): Update.
92 (struct ada_symbol_info) <block>: Now const.
93 * breakpoint.c (watch_command_1): Update.
94 * breakpoint.h (struct watchpoint) <exp_valid_block,
95 cond_exp_valid_block>: Now const.
96 * c-exp.y (classify_inner_name, classify_name): Make block
97 argument const.
98 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
99 const.
100 * expression.h (innermost_block, parse_exp_1): Update.
101 (union exp_element) <block>: Now const.
102 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
103 (lookup_struct): Make block argument const.
104 * gdbtypes.h (lookup_template_type): Update.
105 * go-exp.y (classify_name, classify_packaged_name)
106 (package_name_p): Make block argument const.
107 * objc-lang.c (lookup_struct_typedef): Make block argument const.
108 * objc-lang.h (lookup_struct_typedef): Update.
109 * parse.c (parse_exp_in_context, parse_exp_1)
110 (write_exp_elt_block): Make block arguments const.
111 (expression_context_block, innermost_block): Now const.
112 * parser-defs.h (write_exp_elt_block): Update.
113 (expression_context_block, innermost_block, block_found): Now
114 const.
115 * printcmd.c (struct display) <block>: Now const.
116 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
117 * valops.c (address_of_variable): Make block argument const.
118 * value.h (value_of_variable): Update.
119 * varobj.c (struct varobj_root) <valid_block>: Now const.
120
31f56a27
YQ
1212012-11-30 Yao Qi <yao@codesourcery.com>
122
123 * breakpoint.c (print_one_breakpoint_location): Indent code.
124
556ec64d
YQ
1252012-11-30 Yao Qi <yao@codesourcery.com>
126
127 * breakpoint.c (print_one_breakpoint_location): Combine two
128 blocks handling 'hit count' together.
129
3d3fef6b
YQ
1302012-11-30 Yao Qi <yao@codesourcery.com>
131
132 * infrun.c (error_is_running, ensure_not_running): Move them
133 to ...
134 * infcmd.c (error_is_running, ensure_not_running): ... here.
135 Make them 'static'.
136 * inferior.h: Remove declarations of error_is_running and
137 ensure_not_running.
138
7cd12a76
YQ
1392012-11-30 Yao Qi <yao@codesourcery.com>
140
141 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
142 check REGNUM >= 0.
143
7a76f5b8
YQ
1442012-11-30 Yao Qi <yao@codesourcery.com>
145
146 * infrun.c: Make the declaration of 'init_infwait_state'
147 static.
148 (init_infwait_state): Make it 'static'.
149
b1209b03
UW
1502012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
151
152 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
153 return value to void to avoid compiler warning.
154
ea5e6b0e
UW
1552012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
156
157 * opencl-lang.c (opencl_print_type): New function.
158 (opencl_language_arch_info): Install it.
159
a93478ea
TT
1602012-11-29 Tom Tromey <tromey@redhat.com>
161
162 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
163 xvasprintf.
164 * common/common-utils.c (xasprintf, xvasprintf): Remove.
165 * common/common-utils.h (xasprintf, xvasprintf): Remove.
166
ac4a2da4
JG
1672012-11-29 Jerome Guitton <guitton@adacore.com>
168
169 * ada-lang.c (ada_is_interface_tag): New function.
170 (ada_is_ignored_field): Add interface tags to the list
171 of ignored fields.
172
b50d69b5
JG
1732012-11-29 Jerome Guitton <guitton@adacore.com>
174
175 * ada-lang.h (ada_tag_value_at_base_address): New function
176 declaration.
177 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
178 New functions.
179 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
180 relocate the class-wide value if need be.
181 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
182 Let ada_tag_value_at_base_address relocate the class-wide access/ref
183 before dereferencing it.
184 * ada-valprint.c (ada_val_print_1): Relocate to base address
185 before displaying the content of an interface-wide ref.
186
ca1f964d
JG
1872012-11-29 Jerome Guitton <guitton@adacore.com>
188
189 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
190
38d03cf1 1912012-11-29 Joel Brobecker <brobecker@adacore.com>
192
193 GDB 7.5.1 released.
194
f5682501
YQ
1952012-11-29 Yao Qi <yao@codesourcery.com>
196 Tom Tromey <tromey@redhat.com>
197
198 * eval.c (evaluate_subexp_standard): Get the correct pointer
199 type for TYPE_CODE_MEMBERPTR.
200
f359d716
EBM
2012012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
202
203 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
204 since now it is being done by binutils' powerpc_init_dialect().
205
0cd61f44
TT
2062012-11-28 Tom Tromey <tromey@redhat.com>
207
208 PR gdb/14290:
209 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
210 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
211 Use it.
212 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
213 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
214 (gdb_bfd_openr_next_archived_file): Use it.
215
945bf713
MM
2162012-11-28 Markus Metzger <markus.t.metzger@intel.com>
217
218 * configure.ac: Check for linux/perf_event.h.
219 * config.in: Regenerated.
220 * configure: Regenerated.
221
7e20dfcd
YQ
2222012-11-28 Yao Qi <yao@codesourcery.com>
223
224 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
225 abbreviate 'delete tracepoints' to 'delete tr'.
226 * corefile.c (_initialize_core): Call add_alias_cmd to
227 abbreviate 'set gnutarget' to 'set g'.
228 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
229 'show convenience' to 'show conv'.
230
b8293cc8
JB
2312012-11-27 Joel Brobecker <brobecker@adacore.com>
232
233 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
234 call to sparc_supply_fpregset.
235 (fill_fpregset): Fix first parameter in call to
236 sparc_collect_fpregset.
237
8c2b9656
YQ
2382012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
239 Kazu Hirata <kazu@codesourcery.com>
240 Yao Qi <yao@codesourcery.com>
241
242 * objfiles.c (init_entry_point_info): Call
243 gdbarch_convert_from_func_ptr_addr and
244 gdbarch_addr_bits_remove here ...
245 (entry_point_address_query): ... instead of here.
246 * solib-svr4.c (exec_entry_point): Call
247 gdbarch_addr_bits_remove.
248 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
249 the entry address.
250
5edf51fe
YQ
2512012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
252 Yao Qi <yao@codesourcery.com>
253
254 * eval.c (evaluate_subexp_standard): Add handling of
255 TYPE_CODE_MEMBERPTR when calling functions. Correct the
256 result of ptype for calling a TYPE_CODE_METHODPTR.
257
ca242aad
YQ
2582012-11-27 Yao Qi <yao@codesourcery.com>
259
260 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
261 warning.
262 Add i18n markup.
263
608e2dbb
TT
2642012-11-26 Alexander Larsson <alexl@redhat.com>
265 Jan Kratochvil <jan.kratochvil@redhat.com>
266 Tom Tromey <tromey@redhat.com>
267
268 * NEWS: Mention mini debuginfo feature.
269 * minidebug.c: New file.
270 * configure.ac: Check for lzma.
271 * configure, config.in: Rebuild.
272 * Makefile.in (LIBLZMA): New variable.
273 (CLIBS): Include LIBLZMA.
274 (SFILES): Mention minidebug.c.
275 (COMMON_OBS): Mention minidebug.o.
276 * symfile.c (read_symbols): New function.
277 (syms_from_objfile, reread_symbols): Call it.
278 * symfile.h (find_separate_debug_file_in_section): Declare.
279
17d6efc4
JB
2802012-11-26 Keith Seitz <keiths@redhat.com>
281
282 * exec.c (exec_file_attach): Move cleanup after verifying that
283 memory has in fact been allocated.
284
210bbc17
TT
2852012-11-26 Tom Tromey <tromey@redhat.com>
286
287 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
288 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
289 SYMBOL_SYMTAB.
290 * skip.c (skip_info): Use SYMBOL_SYMTAB.
291
0270a750
PA
2922012-11-26 Maxime Villard <rustyBSD@gmx.fr>
293 Pedro Alves <palves@redhat.com>
294
295 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
296 size parameter passed to readlink by one byte.
297 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
298 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
299 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
300 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
301 size by one byte.
302
9c16be9a
YQ
3032012-11-26 Yao Qi <yao@codesourcery.com>
304
305 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
306 extraneous parentheses.
307
e6f3fa52
YQ
3082012-11-26 Yao Qi <yao@codesourcery.com>
309
310 * remote.c (remote_start_remote): Typo fix.
311
db75c717
DM
3122012-11-23 David S. Miller <davem@davemloft.net>
313
314 * sparc-tdep.h (struct sparc_fpregset): New data structure.
315 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
316 sparc32_sol2_fpregset): Declare new globals.
317 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
318 'fpregset' argument.
319 * sparc64-tdep.h (sparc64_supply_fpregset,
320 sparc64_collect_fpregset): Likewise.
321 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
322 globals.
323 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
324 (sparc_fpregset): Declare new global.
325 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
326 'fpregset' argument.
327 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
328 into handler.
329 (fill_fpregset): Likewise.
330 (_initialize_sparc_linux_nat): Set sparc_fpregset to
331 sparc32_bsd_fpregset.
332 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
333 sparc32_bsd_fpregset down into handler.
334 (sparc32_linux_collect_core_fpregset): Likewise.
335 * sparc-nat.c (sparc_fpregset): Define.
336 (sparc_supply_fpregset): Add 'fpregset' argument.
337 (sparc_collect_fpregset): Likewise.
338 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
339 into fpregset handler.
340 (sparc_store_inferior_registers): Likewise.
341 (_initialize_sparc_nat): Set sparc_fpregset to
342 sparc32_sunos4_fpregset if NULL.
343 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
344 down into handler.
345 (fill_fpregset): Likewise.
346 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
347 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
348 use it to compute offsets.
349 (sparc32_collect_fpregset): Likewise.
350 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
351 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
352 down into handler.
353 (fill_fpregset): Likewise.
354 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
355 Likewise.
356 (sparc64_linux_collect_core_fpregset): Likewise.
357 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
358 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
359 use it to compute offsets.
360 (sparc64_collect_fpregset): Likewise.
361 (sparc64_bsd_fpregset): Define.
362 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
363 sparc64_bsd_fpregset down into handler.
364 (sparc64fbsd_collect_fpregset): Likewise.
365 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
366 and pass sparc{32,64}_bsd_fpregset down into handler.
367 (sparc64nbsd_collect_fpregset): Likewise.
368 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
369 sparc64_bsd_fpregset down into handler.
370 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
371 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
372 to sparc32_bsd_fpregset.
373 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
374 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
375 (sparc32nbsd_supply_fpregset): Likewise.
376
cfcad218
TT
3772012-11-21 Tom Tromey <tromey@redhat.com>
378
379 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
380 field.
381 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
382 Remove.
383 * c-typeprint.c (c_type_print_base): Update.
384
85ddcc70
YQ
3852012-11-21 Yao Qi <yao@codesourcery.com>
386
387 PR tdep/7438
388 * gdbarch.sh (smash_text_address): Remove.
389 * gdbarch.c, gdbarch.h: Regenerate.
390 * arm-tdep.c (arm_smash_text_address): Remove.
391 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
392 * hppa-tdep.c (hppa_smash_text_address): Remove.
393 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
394 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
395 Caller update.
396 * coffread.c (coff_symtab_read): Caller update.
397 * dbxread.c (process_one_symbol): Likewise.
398 * elfread.c (record_minimal_symbol): Likewise.
399 * somread.c (som_symtab_read): Likewise.
400
11522069
PM
4012012-11-20 Pierre Muller <muller@sourceware.org>
402
403 ARI fixes: sprintf rule.
404 Replace sprintf function calls for char arrays by
405 calls to xsnprintf calls.
406 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
407 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
408 (arm_neon_quad_read, arm_pseudo_read): Ditto.
409 (arm_neon_quad_write, arm_pseudo_write): Ditto.
410 * breakpoint.c (condition_completer): Ditto.
411 (create_tracepoint_from_upload): Ditto.
412 * dwarf2read.c (file_full_name): Ditto.
413 * gcore.c (gcore_command): Ditto.
414 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
415 * go32-nat.c (go32_sysinfo): Ditto.
416 * interps.c (interp_set): Ditto.
417 * m32c-tdep.c (make_types): Ditto.
418 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
419 * remote-m32r-sdi.c (m32r_open): Ditto.
420 * sol-thread.c (td_err_string): Ditto.
421 (td_state_string, solaris_pid_to_str): Ditto.
422 * symtab.c (gdb_mangle_name): Ditto.
423 * cli/cli-script.c (execute_control_command): Ditto.
424 (define_command, document_command): Ditto.
425 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
426 * tui/tui-stack.c (tui_make_status_line): Ditto.
427 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
428
ace21957
MF
4292012-11-20 Mike Frysinger <vapier@gentoo.org>
430
431 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
432 it when looking at ptr->func.
433 * command.h (complete_on_cmdlist): Add a fourth arg.
434 * completer.c (complete_line_internal): Add local ignore_help_classes,
435 and set it to 1 when reason is not handle_help. Pass this down to
436 lookup_cmd_1 and complete_on_cmdlist.
437
ec6632d7
TT
4382012-11-20 Tom Tromey <tromey@redhat.com>
439
440 * completer.c (count_struct_fields): Remove.
441 (expression_completer): Don't call count_struct_fields.
442
ef37bb07
PA
4432012-11-20 Pedro Alves <palves@redhat.com>
444
445 * annotate.c (breakpoints_changed): Rename to ...
446 (annotate_breakpoints_changed): ... this.
447 (annotate_stopped, breakpoint_changed): Adjust caller.
448 * annotate.h (breakpoints_changed): Rename to ...
449 (annotate_breakpoints_changed): ... this.
450 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
451 (do_map_commands_command, init_raw_breakpoint, clear_command)
452 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
453
b245bdfc
DM
4542012-11-20 David S. Miller <davem@davemloft.net>
455
456 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
457 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
458 sysconf.
459 (get_cores_used_by_process): Update comment.
460
bd0cfc4d
YQ
4612012-11-20 Yao Qi <yao@codesourcery.com>
462
463 * objfiles.c (init_entry_point_info): Remove trailing spaces.
464
de9f1b68
YQ
4652012-11-20 Yao Qi <yao@codesourcery.com>
466
467 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
468 to deprecated_context_hook.
469
8870954f
YQ
4702012-11-19 Yao Qi <yao@codesourcery.com>
471
472 * infrun.c (infwait_state): Add static.
473
8dea366b
KS
4742012-11-16 Keith Seitz <keiths@redhat.com>
475
476 PR c++/13615
477 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
478 parameter and pass it to lookup_symbol_file.
479 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
480 to search base classes.
481 (cp_lookup_symbol_namespace): Likewise.
482 (lookup_namespace_scope): Likewise.
483 (lookup_symbol_file): Add SEARCH parameter.
484 If SEARCH is non-zero and no symbol is found, lookup the class
485 and call cp_lookup_nested_symbol.
486 (find_symbol_in_baseclass): New function.
487 (cp_lookup_nested_symbol): Do not let
488 cp_lookup_symbol_in_namespace search through base classes.
489 Do that later when there is no global symbol match.
490
e64e0392
DE
4912012-11-16 Doug Evans <dje@google.com>
492
493 * main.c (gdb_datadir_provided): New static global.
494 (get_init_files): If --data-directory is provided,
495 and SYSTEM_GDBINIT lives in data-directory, look for it there.
496 * NEWS: Mention it.
497
8bdce1ff
PM
4982012-11-15 Pierre Muller <muller@sourceware.org>
499
500 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
501 * gdb_stat.h: Delete. Moved to common directory.
502 * common/gdb_stat.h: New file.
503 * gdb_wait.h: Delete. Moved to common directory.
504 * common/gdb_wait.h: New file.
505 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
506 location.
507 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
508 location.
509 (stat.h rule): Adapt to new gdb_stat.h location.
510 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
511 <sys/stat.h> header.
512 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
513 <sys/wait.h> header.
514
3a731e0f
PM
5152012-11-15 Pierre Muller <muller@sourceware.org>
516
517 * configure.ac (AC_HEADER_STAT): Remove.
518 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
519 and corresponding code.
520 * configure: Regenerate.
521 * config.in: Regenerate.
522
2792b94d
PM
5232012-11-15 Pierre Muller <muller@sourceware.org>
524
525 ARI xasprintf rule fixes.
526 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
527 instead of xasprintf.
528 (open_and_init_dwp_file): Ditto.
529
5e34c6c3
LM
5302012-11-14 Luis Machado <lgustavo@codesourcery.com>
531
532 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
533 target types.
534
e68227b9
TT
5352012-11-14 Tom Tromey <tromey@redhat.com>
536
537 * configure, config.in: Rebuild.
538 * configure.ac: Don't check for ctype.h, time.h.
539 * expprint.c: Don't use HAVE_CTYPE_H.
540
aff68abb
TT
5412012-11-13 Tom Tromey <tromey@redhat.com>
542
543 * gdbarch.h, gdbarch.c: Rebuild.
544 * gdbarch.sh (set_target_gdbarch): Rename from
545 deprecated_target_gdbarch_select_hack.
546 * arch-utils.c (gdbarch_update_p): Update.
547 (set_gdbarch_from_file): Update.
548
84277139 5492012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
550
551 * MAINTAINERS (Responsible Maintainers/misc): Add myself
552 as responsible of contrib/ari directory.
553
2ae28aa9
YQ
5542012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
555 Yao Qi <yao@codesourcery.com>
556
557 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
558 bit of EXC_RETURN.
559 (arm_m_exception_cache, arm_m_exception_this_id)
560 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
561 (arm_m_exception_unwind): New.
562 (arm_gdbarch_init): Register arm_m_exception_unwind.
563
62747a60
TT
5642012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
565
566 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
567 parameter COUNT, for pattern filling of memory regions.
568 * NEWS: Mention it.
569
4cd29721
MM
5702012-11-13 Markus Metzger <markus.t.metzger@intel.com>
571
572 * disasm.h (DISASSEMBLY_FILENAME): New macro.
573 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
574 to print_source_lines ().
575 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
576 flag.
577 * source.c (print_source_lines_base): Prefix source line with
578 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
579
dfaae886
MM
5802012-11-13 Markus Metzger <markus.t.metzger@intel.com>
581
582 * symtab.h (print_source_lines_flags): New enum.
583 * source.c (print_source_lines_base): Change noerror to flags.
584 (print_source_lines): Change noerror to flags.
585
08850b56
PM
5862012-11-13 Pierre Muller <muller@sourceware.org>
587
588 ARI fixes: Avoid sprintf function use rule.
589 * charset.c (convert_between_encodings): Use xsnprintf.
590 * cli-out.c (cli_field_int): Likewise.
591 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
592 * expprint.c (op_name_standard): Likewise.
593 * frv-tdep.c (set_variant_num_gprs): Likewise.
594 (set_variant_num_fprs): Likewise.
595 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
596 * nto-tdep.c (nto_find_and_open_solib): Likewise.
597 (nto_init_solib_absolute_prefix): Likewise.
598 * source.c (init_source_path): Likewise.
599 (print_source_lines_base): Likewise.
600 * valprint.c (print_wchar): Likewise.
601 * mi/mi-out.c (mi_field_int): Likewise.
602 windows-nat.c (windows_pid_to_exec_file): Likewise.
603 (windows_create_inferior): Likewise.
604 (_initialize_check_for_gdb_ini): Likewise.
605
ca9d61b9
JB
6062012-11-12 Joel Brobecker <brobecker@adacore.com>
607
608 * frame.h (deprecated_frame_register_read): Renames
609 frame_register_read.
610 * frame.c (deprecated_frame_register_read): Renames
611 frame_register_read. Update all callers.
612 * i386-tdep.c: Update all callers of frame_register_read.
613 * infcmd.c: Likewise.
614 * jit.c: Likewise.
615 * mips-tdep.c: Likewise.
616 * mt-tdep.c: Likewise.
617 * sh64-tdep.c: Likewise.
618
b2c7d45a
JB
6192012-11-12 Joel Brobecker <brobecker@adacore.com>
620
621 * frame.h (frame_register_read): Remove FIXME comment.
622 * frame.c (frame_register_read): Add suggestion explaining
623 which function to use in place of this one.
624
31594462
TT
6252012-11-12 Tom Tromey <tromey@redhat.com>
626
627 * python/python.c (start_type_printers): Initialize 'result_obj'.
628
18a9fc12
TT
6292012-11-12 Tom Tromey <tromey@redhat.com>
630
631 * NEWS: Update.
632 * data-directory/Makefile.in (PYTHON_FILES): Add
633 type_printers.py.
634 * python/lib/gdb/command/type_printers.py: New file.
635 * python/lib/gdb/command/types.py (TypePrinter): New class.
636 (_get_some_type_recognizers, get_type_recognizers,
637 apply_type_recognizers, register_type_printer): New
638 functions.
639 * python/py-objfile.c (objfile_object) <type_printers>: New
640 field.
641 (objfpy_dealloc): Decref new field.
642 (objfpy_new): Set new field.
643 (objfpy_get_type_printers, objfpy_set_type_printers): New
644 functions.
645 (objfile_to_objfile_object): Set new field.
646 (objfile_getset): Add "type_printers".
647 * python/py-progspace.c (pspace_object) <type_printers>: New
648 field.
649 (pspy_dealloc): Decref new field.
650 (pspy_new): Set new field.
651 (pspy_get_type_printers, pspy_set_type_printers): New functions.
652 (pspace_to_pspace_object): Set new field.
653 (pspace_getset): Add "type_printers".
654 * python/python.c (start_type_printers, apply_type_printers,
655 free_type_printers): New functions.
656 (_initialize_python): Set gdb.type_printers.
657 * python/python.h (start_type_printers, apply_type_printers,
658 free_type_printers): Declare.
659 * typeprint.c (type_print_raw_options, default_ptype_flags):
660 Update for new fields.
661 (do_free_global_table, create_global_typedef_table,
662 find_global_typedef): New functions.
663 (find_typedef_in_hash): Use find_global_typedef.
664 (whatis_exp): Use create_global_typedef_table. Change cleanup
665 handling.
666 * typeprint.h (struct type_print_options) <global_typedefs,
667 global_printers>: New fields.
668
bd69fc68
TT
6692012-11-12 Tom Tromey <tromey@redhat.com>
670
671 * c-typeprint.c (find_typedef_for_canonicalize,
672 print_name_maybe_canonical): New functions.
673 (c_print_type): Look up type name.
674 (cp_type_print_derivation_info): Add flags argument. Use
675 print_name_maybe_canonical.
676 (cp_type_print_method_args): Add wrapping.
677 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
678 (c_type_print_template_args): New function.
679 (c_type_print_base): Change wrapping. Use
680 print_name_maybe_canonical.
681 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
682 type name lookups.
683 * gdbtypes.c (types_equal): No longer static.
684 * gdbtypes.h (types_equal): Declare.
685 * typeprint.c (type_print_raw_options, default_ptype_flags):
686 Update.
687 (struct typedef_hash_table): New.
688 (hash_typedef_field, eq_typedef_field,
689 recursively_update_typedef_hash, add_template_parameters,
690 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
691 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
692 copy_typedef_hash, find_typedef_in_hash): New functions.
693 * typeprint.h (struct type_print_options) <local_typedefs>:
694 New field.
695 (recursively_update_typedef_hash, add_template_parameters,
696 create_typedef_hash, free_typedef_hash,
697 make_cleanup_free_typedef_hash, copy_typedef_hash,
698 find_typedef_in_hash): Declare.
699
2621e0fd
TT
7002012-11-12 Tom Tromey <tromey@redhat.com>
701
702 * cp-support.c (inspect_type,
703 replace_typedefs_qualified_name, replace_typedefs): Add
704 finder, data arguments. Call as needed.
705 (cp_canonicalize_string_full): New function.
706 (cp_canonicalize_string_no_typedefs): Rewrite.
707 * cp-support.h (canonicalization_ftype): New typedef.
708 (cp_canonicalize_string_full): Declare.
709
53342f27
TT
7102012-11-12 Tom Tromey <tromey@redhat.com>
711
712 * NEWS: Update.
713 * c-typeprint.c (c_type_print_base): Handle print_method and
714 print_typedefs flags.
715 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
716 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
717 options.
718 * typeprint.c (type_print_raw_options, default_ptype_flags):
719 Update for new field.s
720 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
721 (setprinttypelist, showprinttypelist, print_methods,
722 print_typedefs): New globals.
723 (set_print_type, show_print_type, set_print_type_methods,
724 show_print_type_methods, set_print_type_typedefs,
725 show_print_type_typedefs): New functions.
726 (_initialize_typeprint): Update documentation. Add "print
727 type methods" and "print type typedefs" parameters.
728 * typeprint.h (struct type_print_options) <print_methods,
729 print_typedefs>: New fields.
730
6c8702eb
TT
7312012-11-12 Tom Tromey <tromey@redhat.com>
732
733 * c-typeprint.c (cp_type_print_method_args): Add flags
734 argument. Call c_print_type, not type_print.
735 (c_type_print_base): Call c_print_type, not type_print.
736 Update.
737
79d43c61
TT
7382012-11-12 Tom Tromey <tromey@redhat.com>
739
740 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
741 to type-printing functions.
742 * ada-lang.h (ada_print_type): Add argument.
743 * ada-typeprint.c (print_array_type, print_variant_clauses,
744 print_variant_part, print_selected_record_field_types,
745 print_record_field_types, print_unchecked_union_type,
746 print_func_type, ada_print_type): Add flags argument.
747 (ada_print_typedef): Update.
748 * c-exp.y (OPERATOR conversion_type_id): Update.
749 * c-lang.h (c_print_type, c_type_print_base): Update.
750 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
751 c_type_print_modifier, c_type_print_args,
752 c_type_print_varspec_suffix, c_type_print_base): Add flags
753 argument.
754 * cp-valprint.c (cp_print_class_member): Update.
755 * dwarf2read.c (dwarf2_compute_name): Update.
756 * f-lang.h (f_print_type): Add argument.
757 * f-typeprint.c (f_print_type): Add flags argument.
758 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
759 * go-lang.h (go_print_type): Add argument.
760 * go-typeprint.c (go_print_type): Add flags argument.
761 * jv-lang.h (java_print_type): Add argument.
762 * jv-typeprint.c (java_type_print_base, java_print_type): Add
763 flags argument.
764 * language.c (unk_lang_print_type): Add flags argument.
765 * language.h (struct language_defn) <la_print_type>: Add flags
766 argument.
767 (LA_PRINT_TYPE): Likewise.
768 * m2-lang.h (m2_print_type): Add argument.
769 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
770 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
771 m2_unbounded_array, m2_record_fields): Add flags argument.
772 * p-lang.h (pascal_print_type, pascal_type_print_base,
773 pascal_type_print_varspec_prefix): Add argument.
774 * p-typeprint.c (pascal_print_type,
775 pascal_type_print_varspec_prefix, pascal_print_func_args,
776 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
777 flags argument.
778 * symmisc.c (print_symbol): Update.
779 * typeprint.c (type_print_raw_options, default_ptype_flags):
780 New globals.
781 (type_print): Update.
782 * typeprint.h (struct type_print_options): New.
783 (type_print_raw_options): Declare.
784 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
785
cf4ded82
KS
7862012-11-10 Keith Seitz <keiths@redhat.com>
787
788 * breakpoint.c (clear_command): Add cleanup for
789 sals.sals if an argument is given.
790
791 * linespec.c (parse_linespec): Do cleanups after
792 parsing a convenience variable.
793
0d63ecda
KS
7942012-11-10 Keith Seitz <keiths@redhat.com>
795
796 PR gdb/14288
797 * c-valprint.c (c_val_print): For character arrays
798 with "print null" option on, print ellipses if
799 the output is truncated and the next character is not \000.
800 * valprint.c (MAX_WCHARS): Define.
801 (WCHAR_BUFLEN): Likewise.
802 (WCHAR_BUFLEN_MAX): Likewise.
803 (struct converted_character): New structure.
804 (count_next_character): New function.
805 (print_converted_chars_to_obstack): New function.
806 (generic_printstr): Rewrite using count_next_character
807 and print_converted_chars_to_obstack.
808
9b8d6827
SC
8092012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
810
811 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
812 while executing the gdb command.
813 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
814 are called from prompt_for_continue.
815 * tui/tui-io.c (tui_redisplay_readline): Likewise.
816
e840f632
SC
8172012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
818
819 PR tui/9584
820
821 * tui/tui.c (tui_rl_command_key): Do not call execute_command
822 but insert the command to execute in readline's buffer.
823
f5656ead
TT
8242012-11-09 Tom Tromey <tromey@redhat.com>
825
826 * gdbarch.sh (target_gdbarch): Remove macro.
827 (get_target_gdbarch): Rename to target_gdbarch.
828 * gdbarch.c, gdbarch.h: Rebuild.
829 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
830 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
831 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
832 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
833 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
834 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
835 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
836 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
837 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
838 procfs.c, progspace.c, ravenscar-thread.c, record.c,
839 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
840 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
841 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
842 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
843 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
844 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
845 target-descriptions.c, target.c, target.h, tracepoint.c,
846 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
847 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
848 python/py-inferior.c, python/python.c: Update.
849
ed8a1c2d
AB
8502012-11-09 Andrew Burgess <aburgess@broadcom.com>
851
852 * source.c (print_source_lines_base): Add fullname field giving
853 full path to file in mi output.
854 * NEWS: Mention the new fullname field.
855
504b36fd
YQ
8562012-11-09 Yao Qi <yao@codesourcery.com>
857
858 * NEWS: Mention the fix to the ambiguity of 'fo' command.
859
9107fc8d
PA
8602012-11-09 Pedro Alves <palves@redhat.com>
861
862 PR gdb/14306
863
864 * infrun.c: Include target-descriptions.h.
865 (follow_exec): Fetch new target description.
866
30f8135b
YQ
8672012-11-09 Yao Qi <yao@codesourcery.com>
868
869 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
870 0x8d (lea).
871
558a9d82
YQ
8722012-11-09 Yao Qi <yao@codesourcery.com>
873
874 * breakpoint.c: Declare set_tracepoint_count.
875 (install_breakpoint): Call set_tracepoint_count if B is a
876 tracepoint.
877 (trace_command): Don't call set_tracepoint_count. Re-indent.
878 (strace_command, ftrace_command):
879 (create_tracepoint_from_upload): Likewise.
880
6ecd4729
PA
8812012-11-09 Pedro Alves <palves@redhat.com>
882
883 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
884 (get_target_gdbarch) <gdbarch.h>: New function.
885 (startup_gdbarch) <gdbarch.h>: Declare.
886 <gdbarch.c> (target_gdbarch): Delete.
887 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
888 current inferior's gdbarch.
889 <gdbarch.c> (get_target_gdbarch): New function.
890 * inferior.c: Include target-descriptions.h.
891 (free_inferior): Free target description info.
892 (add_inferior_with_spaces): Set the inferior's initial
893 architecture.
894 (clone_inferior_command): Copy the original inferior's target
895 description if it was user specified.
896 (initialize_inferiors): Add comment.
897 * inferior.h (struct target_desc_info): Forward declare.
898 (struct inferior) <gdbarch>: New field.
899 * linux-nat.c: Include target-descriptions.h.
900 (linux_child_follow_fork): Copy the parent's architecture and
901 target description to the child.
902 * target-descriptions.c: Include inferior.h.
903 (struct target_desc_info): New structure, holding the equivalents
904 of ...
905 (target_desc_fetched, current_target_desc)
906 (target_description_filename): ... these removed globals.
907 (get_tdesc_info, target_desc_info_from_user_p)
908 (copy_inferior_target_desc_info, target_desc_info_free): New.
909 (target_desc_fetched, current_target_desc)
910 (target_description_filename): Reimplemented as convenience
911 macros.
912 (tdesc_filename_cmd_string): New global.
913 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
914 tdescs filename ..." commands to the per-inferior equivalent.
915 (show_tdesc_filename_cmd): Get the value to show from the
916 per-inferior description filename.
917 (_initilize_target_descriptions): Change the "set/show tdesc
918 filename" commands' variable.
919 * target-descriptions.h (struct target_desc, struct target_desc_info)
920 (struct inferior): Forward declare.
921 (target_find_description, target_clear_description)
922 (target_current_description): Adjust comments.
923 (copy_inferior_target_desc_info, target_desc_info_free)
924 (target_desc_info_from_user_p). Declare.
925
4ca4d161
SC
9262012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
927
928 * tui/tui-hooks.c (tui_about_to_proceed): New function.
929 (tui_target_wait_hook): Remove.
930 (tui_install_hooks): Install the about_to_proceed observer.
931 (tui_remove_hooks): And remove it here.
932
9015683b
TT
9332012-11-08 Tom Tromey <tromey@redhat.com>
934
935 * linux-tdep.c (linux_make_siginfo_note): New function.
936 (linux_make_corefile_notes): Use it.
937 * corelow.c (get_core_siginfo): New function.
938 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
939
ea9f10bb
TT
9402012-11-08 Tom Tromey <tromey@redhat.com>
941
942 PR gdb/14704:
943 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
944 (zlib_decompress_section): Remove.
945 (gdb_bfd_map_section): Only check for compressed section
946 in mmap case. Use bfd_get_full_section_contents.
947 * osabi.c (check_note): Add 'sectsize' argument. Read
948 section data.
949 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
950 section data. Update for check_note change.
951 * xcoffread.c (xcoff_initial_scan): Use
952 bfd_get_full_section_contents.
953 * py-auto-load.c (auto_load_section_scripts): Use
954 bfd_get_full_section_contents.
955 * contrib/cc-with-tweaks.sh: Add -Z option.
956
d071a26b
TT
9572012-11-08 Tom Tromey <tromey@redhat.com>
958
959 * python/py-bpevent.c: Include defs.h.
960 * python/py-continueevent.c: Include defs.h.
961 * python/py-event.c: Include defs.h.
962 * python/py-event.h: Don't include defs.h.
963 * python/py-events.h: Don't include defs.h.
964 * python/py-evts.c: Include defs.h.
965 * python/py-exitedevent.c: Include defs.h.
966 * python/py-newobjfileevent.c: Include defs.h.
967 * python/py-signalevent.c: Include defs.h.
968 * python/py-stopevent.c: Include defs.h.
969 * python/py-threadevent.c: Include defs.h.
970
4574b35a
PM
9712012-11-08 Pierre Muller <muller@sourceware.org>
972
973 * update-web-ari.sh (print_heading): Add number of files
974 checked.
975 (nb_files): New variable counting the number of sources
976 files found by gdb_find.sh script.
977 (debug_awk): New variable to allow extra debug output.
978 (indexes): Add more information if DEBUG_AWK is set.
979
2834ab42
EBM
9802012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
981
982 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
983 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
984 following the change in PLT call stubs on linker.
985
84f13595
PM
9862012-11-08 Pierre Muller <muller@sourceware.org>
987
988 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
989 as default language.
990 (AWK): Use = instead of == for sh test to avoid warning.
991 (Linux rule): Correct [:digit] into [[:digit:]].
992 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
993 (vasprintf rule): Adapt to common subdirectory moves.
994 (xasprintf rule): Idem.
995 (xvasprintf rule): Idem.
996 (var_boolean rule): Accept occurence in == or != test.
997
998 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
999
d69e6a33
SC
10002012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1001
1002 * tui/tui-hooks.c (tui_inferior_exit): New function.
1003 (tui_detach_hook): Remove.
1004 (tui_install_hooks): Install the inferior exit observer.
1005 (tui_remove_hooks): Remove it.
1006
1e96de83
YQ
10072012-11-08 Yao Qi <yao@codesourcery.com>
1008
1009 PR gdb/14777.
1010 * source.c (_initialize_source): Call add_com_alias to abbreviate
1011 'forward-search' as 'fo'.
1012
0baeab03
PA
10132012-11-07 Pedro Alves <palves@redhat.com>
1014
1015 * arm-tdep.c: Make defs.h be the first include.
1016 * coff-pe-read.c: Ditto.
1017 * gnu-nat.c: Ditto.
1018 * go32-nat.c: Ditto.
1019 * i386-nat.c: Ditto.
1020 * ppcnbsd-nat.c: Ditto.
1021 * ada-varobj.h: Don't include defs.h.
1022 * i386-darwin-tdep.h: Ditto.
1023 * i386-nat.h: Ditto.
1024
892a8570
PA
10252012-11-07 Pedro Alves <palves@redhat.com>
1026
1027 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1028 Committee.
1029
719502e9
PM
10302012-11-07 Pierre Muller <muller@sourceware.org>
1031
1032 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1033 File already uses "gdb_dirent.h" header.
1034
ed86b350
YQ
10352012-11-07 Yao Qi <yao@codesourcery.com>
1036
1037 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1038 tracepoint_count'.
1039
9a4f1e4f
TT
10402012-11-06 Tom Tromey <tromey@redhat.com>
1041
1042 * target.h (inferior_has_forked, inferior_has_vforked)
1043 (inferior_has_execd, inferior_has_called_syscall): Remove
1044 declarations.
1045
0316657e
PM
10462012-11-06 Pierre Muller <muller@sourceware.org>
1047
1048 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1049 add missing internalization markup.
1050
f6592439
PA
10512012-11-06 Pedro Alves <palves@redhat.com>
1052
1053 PR gdb/14810
1054
1055 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1056
01f2564a
PM
10572012-11-06 Pierre Muller <muller@sourceware.org>
1058
1059 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1060 is not executable.
1061
f37c4431
JB
10622012-11-05 Joel Brobecker <brobecker@adacore.com>
1063
1064 * gnulib/update-gnulib.sh: New script.
1065
550889c3
JB
10662012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1067
1068 * MAINTAINERS: Update my email address.
1069
954b50b3
TT
10702012-11-05 Tom Tromey <tromey@redhat.com>
1071
1072 * frame.c (put_frame_register): Don't use temporary buffer.
1073
68c9da30
PA
10742012-11-05 Pedro Alves <palves@redhat.com>
1075
1076 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1077 child. Clear 'pending_detach'.
1078 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1079 'pending_detach' in the vfork parent.
1080
80626a55
DE
10812012-11-05 Doug Evans <dje@google.com>
1082
1083 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1084 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1085 * dwarf2read.c: #include "elf-bfd.h".
1086 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1087 (dwop_section_names): Renamed from dwo_section names. All uses
1088 updated. Add entries for .debug_cu_index, .debug_tu_index.
1089 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1090 All uses updated.
1091 (struct dwp_sections): New type.
1092 (struct virtual_dwo_sections): New type.
1093 (struct dwp_hash_table): New type.
1094 (struct dwp_file): New type.
1095 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1096 read in. Handle DWOs coming from DWP files.
1097 (lookup_dwo_file_slot): New function.
1098 (dwarf2_locate_dwo_sections): Move definition closer to use.
1099 (create_dwo_debug_info_hash_table_reader): Renamed from
1100 create_debug_info_hash_table_reader. All callers updated.
1101 (create_dwo_debug_info_hash_table): Renamed from
1102 create_debug_info_hash_table. All callers updated.
1103 (create_dwp_hash_table): New function.
1104 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1105 (lookup_dwo_in_dwp): New function.
1106 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1107 is_dwp. All callers updated.
1108 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1109 (open_and_init_dwo_file): Renamed from init_dwo_file.
1110 All callers updated.
1111 (lookup_dwo_file): Delete.
1112 (dwarf2_locate_dwp_sections): New function.
1113 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1114 (allocate_dwp_loaded_cutus_table): New function.
1115 (open_and_init_dwp_file): New function.
1116 (lookup_dwo_cutu): New function.
1117 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1118
6f6484cd
YQ
11192012-11-03 Yao Qi <yao@codesourcery.com>
1120
1121 Fix PR gdb/14617.
1122 * breakpoint.c (trace_pass_set_count): Call
1123 observer_notify_breakpoint_modified instead of
1124 observer_notify_tracepoint_modified.
1125 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1126
b45627a0
TT
11272012-11-02 Tom Tromey <tromey@redhat.com>
1128
1129 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1130 argument to complete_on_enum.
1131
d4fb63e1
TT
11322012-11-02 Tom Tromey <tromey@redhat.com>
1133
1134 * configure: Rebuild.
1135 * configure.ac (build_warnings): Add -Wempty-body.
1136 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1137 * remote.c (handle_notification): Use braces for empty 'else' body.
1138 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1139 'else' body.
1140 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1141 'else' body.
1142 * solib-som.c (som_relocate_section_addresses): Use braces
1143 for empty 'else' body.
1144 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1145 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1146
f50f4e56
PA
11472012-11-02 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/14766
1150
1151 * infrun.c (handle_inferior_event)
1152 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1153 null_ptid before handling a vfork child exec or exit. Switch to
1154 the event ptid afterwards.
1155
f0559fff
YQ
11562012-11-02 Yao Qi <yao@codesourcery.com>
1157
1158 * std-operator.def: Remove OP_LABELED.
1159 * eval.c: Remove the declaration of 'get_label'.
1160 (get_label): Remove.
1161 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1162 Update comment.
1163 Remove local variable 'variantno' and related code.
1164 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1165 with 'fieldno'.
1166 * expprint.c (print_subexp_standard): Likewise.
1167 (dump_subexp_body_standard): Likewise.
1168 * parse.c (operator_length_standard): Likewise.
1169
e5496e3e
PM
11702012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1171
1172 Incorporate ARI web page generator into GDB sources.
1173 * contrib/ari/create-web-ari-in-src.sh: New file.
1174 * contrib/ari/gdb_ari.sh: New file.
1175 * contrib/ari/gdb_find.sh: New file.
1176 * contrib/ari/update-web-ari.sh: New file.
1177
c66fb220
TT
11782012-10-31 Tom Tromey <tromey@redhat.com>
1179
1180 * gdbarch.c: Rebuild.
1181 * gdbarch.sh: Remove references to gdbarch_swap.
1182 * corelow.c (core_open): Remove obsolete comment.
1183
2f27adfe
AB
11842012-10-31 Andrew Burgess <aburgess@broadcom.com>
1185
1186 PR cli/14772
1187 * c-typeprint.c (c_print_type): Don't print a space for vector
1188 types, this is handled within the suffix.
1189 (c_type_print_varspec_suffix): Add a space to vector suffix.
1190
144db827
PA
11912012-10-26 Pedro Alves <palves@redhat.com>
1192
1193 * amd64-tdep.c (amd64_relocate_instruction): Use
1194 store_unsigned_integer instead of memcpy.
1195 * i386-tdep.c (i386_relocate_instruction): Ditto.
1196
940c3c06
PA
11972012-10-26 Pedro Alves <palves@redhat.com>
1198
1199 * infrun.c (handle_inferior_event): Merge handling of
1200 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1201 switch case.
1202
47b19065
PA
12032012-10-26 Pedro Alves <palves@redhat.com>
1204
1205 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1206 Remove comment.
1207
87d2d2a4
PA
12082012-10-26 Pedro Alves <palves@redhat.com>
1209
1210 * target.c (target_waitstatus_to_string): Handle
1211 TARGET_WAITKIND_VFORK_DONE.
1212
fed708ed
PA
12132012-10-26 Pedro Alves <palves@redhat.com>
1214
1215 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1216 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1217
2590b645
JB
12182012-10-24 Tristan Gingold <gingold@adacore.com>
1219
1220 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1221 Add comments.
1222
bed0c243
JB
12232012-10-24 Joel Brobecker <brobecker@adacore.com>
1224
1225 * ravenscar-thread.c (ravenscar_wait): Only update the list
1226 of threads and inferior_ptid if the inferior is still alive.
1227
f69c91ad
JB
12282012-10-24 Joel Brobecker <brobecker@adacore.com>
1229
1230 * ada-lang.c (is_known_support_routine): Use lbasename when
1231 matching the symtab's filename against
1232 known_runtime_file_name_patterns.
1233
d99dcf51
JB
12342012-10-24 Joel Brobecker <brobecker@adacore.com>
1235
1236 * ada-lang.c (ada_same_array_size_p): New function.
1237 (ada_promote_array_of_integrals): New function.
1238 (coerce_for_assign): Add handling of arrays where the elements
1239 are integrals of a smaller size than the size of the target
1240 array element type.
1241
32560274
JB
12422012-10-24 Joel Brobecker <brobecker@adacore.com>
1243
1244 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1245 against maximum exponent value.
1246
5a04cc98
JB
12472012-10-24 Joel Brobecker <brobecker@adacore.com>
1248
1249 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1250 "unwind-seh.c".
1251
5ded5331
JB
12522012-10-24 Joel Brobecker <brobecker@adacore.com>
1253
1254 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1255 strip typedef layer when computing the fixed type's field type,
1256 only when computing its size.
1257
2445fd7b
MK
12582012-10-24 Mark Kettenis <kettenis@gnu.org>
1259
1260 PR gdb/12783
1261 * i386-tdep.c (i386_return_value): Handle complex double and long
1262 double.
1263
8f205f9c
JB
12642012-10-24 Joel Brobecker <brobecker@adacore.com>
1265
1266 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1267 New local variable args_len.
1268 Quote the name of the executable when computing the command line.
1269
7f7930dd
MK
12702012-10-23 Mark Kettenis <kettenis@gnu.org>
1271
1272 PR gdb/12796
1273 PR gdb/12798
1274 PR gdb/12800
1275 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1276 AMD64_FTAG_REGNUM.
1277 * amd64-tdep.c (amd64_classify): Classify complex types.
1278 (amd64_return_value): Handle the COMPLEX_X87 class.
1279
38a69d0a
JB
12802012-10-23 Joel Brobecker <brobecker@adacore.com>
1281
1282 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1283 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1284
83ab93c6
JB
12852012-10-23 Joel Brobecker <brobecker@adacore.com>
1286
1287 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1288 function.
1289 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1290 to amd64_windows_auto_wide_charset.
1291
f6fbab7d
YQ
12922012-10-23 Yao Qi <yao@codesourcery.com>
1293
1294 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1295 * event-top.h: Remove its declaration.
1296 (async_request_quit): Call mark_async_signal_handler instead of
1297 mark_async_signal_handler_wrapper.
1298 (async_do_nothing, async_disconnect): Likewise.
1299 (async_stop_sig): Likewise.
1300 * remote.c (handle_remote_sigint): Likewise.
1301 (handle_remote_sigint_twice): Likewise.
1302
05fa9251
YQ
13032012-10-23 Yao Qi <yao@codesourcery.com>
1304
1305 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1306 with 'static struct async_signal_handler *'.
1307 (sighup_token, sigquit_token, sigstp_token): Likewise.
1308
08af7a40
AA
13092012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1310
1311 * gdbarch.sh (function_list): Use 'pstring' when printing
1312 a variable which could return NULL.
1313 * gdbarch.c: Regenerate.
1314
beb4b03c
JB
13152012-10-10 Joel Brobecker <brobecker@adacore.com>
1316 Tom Tromey <tromey@redhat.com>
1317
1318 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1319 inneffective if condition by gdb assertion. Add function
1320 description comment.
1321
a5b12627
JB
13222012-10-19 Joel Brobecker <brobecker@adacore.com>
1323
1324 * parser-defs.h (struct exp_descriptor): Document constraint
1325 on return value for "op_name" callbacks.
1326
0b0865da
TT
13272012-10-18 Tom Tromey <tromey@redhat.com>
1328
1329 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1330 * symtab.c (iterate_over_some_symtabs): Constify.
1331 * source.h (symtab_to_fullname): Return 'const char *'.
1332 * source.c (symtab_to_fullname): Return 'const char *'.
1333 * python/py-symtab.c (stpy_fullname): Constify.
1334 * cli/cli-cmds.c (edit_command): Constify.
1335 * breakpoint.c (print_breakpoint_location)
1336 (update_static_tracepoint): Constify.
1337
94b0e70d
TT
13382012-10-18 Tom Tromey <tromey@redhat.com>
1339
1340 * breakpoint.c (compare_breakpoints): Fix comparison.
1341
fff10684
TT
13422012-10-18 Tom Tromey <tromey@redhat.com>
1343
1344 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1345 gdb_wchar_t to convert_between_encodings.
1346
8de0566d
YQ
13472012-10-17 Yao Qi <yao@codesourcery.com>
1348
1349 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1350 more parameter 'inferior'.
1351 * corefile.c (write_memory_with_notification): Caller update.
1352
1353 * mi/mi-cmd-var.c: Include "mi-main.h".
1354 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1355 to 1 and restore it later.
1356 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1357 and "data-write-memory-bytes.
1358 * mi/mi-interp.c: Include objfiles.h.
1359 (mi_interpreter_init): Call observer_attach_memory_changed.
1360 (mi_memory_changed): New.
1361 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1362 New field.
1363
1364 * NEWS: Mention new MI notification "memory-changed".
1365
6235cdd1
JK
13662012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1367
1368 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1369
07540c15
DE
13702012-10-15 Doug Evans <dje@google.com>
1371
1372 New option -nh: inhibit loading of ~/.gdbinit.
1373 * NEWS: Mention -nh.
1374 * main.c (captured_main): Recognize and process -nh.
1375 (print_gdb_help): Mention -nh.
1376 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1377
eab09350
L
13782012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1379
1380 PR backtrace/14646
1381 PR gdb/14647
1382 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1383 pc_regnum_from_eax.
1384 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1385 nor pc_regnum_from_eax.
1386 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1387 nor pc_regnum_from_eax.
1388
9e3a7d65
JK
13892012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1390
1391 Fix entry values resolving in inlined frames.
1392 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1393 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1394 entries of FRAME.
1395
c83393b9
JB
13962012-10-15 Joel Brobecker <brobecker@adacore.com>
1397
1398 * configure.ac: Build with -DMS_WIN64 if building with Python
1399 enabled using GCC on amd64-windows.
1400 * configure: Regenerate.
1401
801e4185
TT
14022012-10-15 Tom Tromey <tromey@redhat.com>
1403
1404 PR python/14635:
1405 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1406 to Py_None.
1407
74f910c8
TT
14082012-10-15 Tom Tromey <tromey@redhat.com>
1409
1410 PR python/14634:
1411 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1412
2a7c8fd5
AB
14132012-10-11 Andrew Burgess <aburgess@broadcom.com>
1414
1415 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1416 reset thread numbering back to 1.
1417
7c09e5a0
DE
14182012-10-11 Doug Evans <dje@google.com>
1419
1420 PR breakpoints/14643.
1421 * linespec.c (struct ls_parser): New member keyword_ok.
1422 (linespec_lexer_lex_string): Add comment.
1423 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1424 for one.
1425 (parse_linespec): Set keyword_ok.
1426
a1855c1d
DE
14272012-10-10 Doug Evans <dje@google.com>
1428
844226d6
DE
1429 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1430 "0x" prefix on address in log message.
1431
a1855c1d
DE
1432 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1433 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1434 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1435 (lookup_dwo_file): Add const to dwo_name parameter.
1436 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1437
2e24f4aa
JK
14382012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1439
1440 Fix crash during stepping on ppc32.
1441 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1442 SYM.
1443
aa14df25
DE
14442012-10-03 Doug Evans <dje@google.com>
1445
1446 PR symtab/14601
1447 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1448
3d468296
AB
14492012-10-02 Andrew Burgess <aburgess@broadcom.com>
1450
1451 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1452 output and use uint32_t not long to ensure 4 byte size.
1453
8f0ee2eb
JB
14542012-10-02 Joel Brobecker <brobecker@adacore.com>
1455
1456 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1457 unref'ed it.
1458
b3dc46ff
AB
14592012-10-01 Andrew Burgess <aburgess@broadcom.com>
1460
1461 * target.c (simple_search_memory): Include access length in
1462 warning message.
1463
f712f01f
EBM
14642012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1465 Edjunior Machado <emachado@linux.vnet.ibm.com>
1466
1467 PR gdb/13989
1468 * solib.c (solib_find): Prevent GDB from loading native libraries when
1469 debugging a cross-target corefile.
1470
39181896
PA
14712012-09-28 selven <pcthegreat@gmail.com>
1472
1473 Make definition match declaration.
1474
1475 * regcache.c (regcache_register_status): Change return type to
1476 enum register_status.
1477
4c2786ba
YQ
14782012-09-28 Yao Qi <yao@codesourcery.com>
1479
1480 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1481 write_memory_with_notification instead of write_memory.
1482 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1483 instead of target_write_memory.
1484
1ae0c35e
YQ
14852012-09-28 Yao Qi <yao@codesourcery.com>
1486
1487 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1488 when the length of content is not an even number.
1489
7977e5d2
TT
14902012-09-27 Tom Tromey <tromey@redhat.com>
1491
1492 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1493 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1494
807160da
JB
14952012-09-27 Joel Brobecker <brobecker@adacore.com>
1496
1497 * sol-thread.c (sol_thread_fetch_registers)
1498 (sol_thread_store_registers): Delete commented out code.
1499
43c75337
JB
15002012-09-27 Joel Brobecker <brobecker@adacore.com>
1501
1502 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1503 Move these functions to sparc-sol-thread.c.
1504 * sparc-sol-thread.c: New file.
1505 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1506 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1507 configurations.
1508 * configure: Regenerate.
1509
d292a972
JB
15102012-09-27 Joel Brobecker <brobecker@adacore.com>
1511
1512 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1513 Remove commented-out code.
1514
8c3da003
JB
15152012-09-27 Joel Brobecker <brobecker@adacore.com>
1516
1517 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1518 Enable this code for sparc hosts only.
1519
f00482b6
JB
15202012-09-27 Joel Brobecker <brobecker@adacore.com>
1521
1522 * procfs.h (procfs_find_LDT_entry): Add declaration.
1523 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1524 function procfs_find_LDT_entry.
1525
337c776f
JB
15262012-09-27 Joel Brobecker <brobecker@adacore.com>
1527
1528 * procfs.c (proc_get_LDT_entry): Make static.
1529
1a04d88f
JB
15302012-09-27 Joel Brobecker <brobecker@adacore.com>
1531
1532 * procfs.c (proc_find_memory_regions): Fix declaration.
1533
bad43aa5
SP
15342012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1535
1536 * amd64-tdep.c (amd64_return_value): Revert previous change
1537 that used TYPE_LENGTH directly.
1538 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1539 (bfin_store_return_value): Likewise.
1540 * cris-tdep.c (cris_store_return_value): Likewise.
1541 (cris_extract_return_value): Likewise.
1542 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1543 * hppa-tdep.c (hppa64_return_value): Likewise.
1544 * lm32-tdep.c (lm32_store_return_value): Likewise.
1545 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1546 * spu-tdep.c (spu_value_from_register): Likewise.
1547 * vax-tdep.c (vax_return_value): Likewise.
1548
63375b74
SP
15492012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1550
1551 * gdbtypes.c (lookup_array_range_type): Expand parameters
1552 LOW_BOUND and HIGH_BOUND to LONGEST.
1553 (lookup_string_range_type): Likewise.
1554 * gdbtypes.h (lookup_array_range_type): Likewise.
1555 (lookup_string_range_type): Likewise.
1556 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1557 Expand HIGHBOUND to ssize_t.
1558 (value_string): Likewise.
1559 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1560 (value_string): Likewise.
1561
19ca11c5
YQ
15622012-09-27 Yao Qi <yao@codesourcery.com>
1563
1564 PR breakpoints/13898
1565 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1566 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1567 per breakpoint type.
1568
92107356
PM
15692012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1570
1571 * procfs.c: Add gdb_bfd header.
1572 * rs6000-nat.c: Likewise.
1573 * solib-pa64.c: Likewise.
1574 * spu-linux-nat.c: Likewise.
1575 * windows-nat.c: Likewise.
1576
9742094a
TT
15772012-09-26 Tom Tromey <tromey@redhat.com>
1578
1579 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1580
0971de02
TT
15812012-09-26 Tom Tromey <tromey@redhat.com>
1582
1583 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1584 (read_common_block): Handle child DIEs with
1585 DW_AT_data_member_location.
1586 (new_symbol_full): Add special case for common blocks.
1587
4357ac6c
TT
15882012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 Tom Tromey <tromey@redhat.com>
1590
1591 * dwarf2read.c (read_common_block): Rewrite.
1592 (new_symbol_full): Handle DW_TAG_common_block.
1593 * f-lang.c (head_common_list, find_common_for_function):
1594 Remove.
1595 * f-lang.h (struct common_entry, struct saved_f77_common,
1596 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1597 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1598 BLANK_COMMON_NAME_LOCAL): Remove.
1599 (struct common_block): New.
1600 * f-valprint.c (list_all_visible_commons): Remove.
1601 (info_common_command_for_block): New function.
1602 (info_common_command): Use it.
1603 * stack.c (iterate_over_block_locals): Special case for
1604 COMMON_BLOCK_DOMAIN.
1605 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1606 constant.
1607 (struct general_symbol_info) <value.common_block>: New field.
1608 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1609
965f07a8
TT
16102012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 Tom Tromey <tromey@redhat.com>
1612
1613 * f-lang.c (allocate_saved_bf_node,
1614 allocate_saved_function_node, allocate_saved_f77_common_node,
1615 allocate_common_entry_node, tail_common_list, current_common,
1616 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1617 tmp_bf_ptr, add_common_block, add_common_entry,
1618 find_first_common_named, patch_common_entries,
1619 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1620 global_remote_debug, get_bf_for_fcn, saved_function_list,
1621 saved_function_list_end, clear_function_list, struct saved_fcn,
1622 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1623 SAVED_BF, SAVED_BF_PTR): Remove.
1624 * f-lang.h (tail_common_list, current_common,
1625 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1626 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1627 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1628 real_main_c_value): Remove.
1629 * f-valprint.c (there_is_a_visible_common_named): Remove.
1630
6f380991
AB
16312012-09-26 Andrew Burgess <aburgess@broadcom.com>
1632
1633 * breakpoint.c (update_global_location_list): Ignore previous
1634 duplicate status of a breakpoint when starting a new scan for
1635 duplicate breakpoints.
1636
9ead7ae4 16372012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1638 PR breakpoints/14419
2536b51c
YQ
1639 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1640 support LLVM compiler.
9ead7ae4 1641
8f8a23a2
SP
16422012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1643
1644 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1645 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1646 (bfin_store_return_value): Likewise.
1647 * cris-tdep.c (cris_store_return_value): Likewise.
1648 (cris_extract_return_value): Likewise.
1649 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1650 * hppa-tdep.c (hppa64_return_value): Likewise.
1651 * lm32-tdep.c (lm32_store_return_value): Likewise.
1652 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1653 * spu-tdep.c (spu_value_from_register): Likewise.
1654 * vax-tdep.c (vax_return_value): Likewise.
1655
d7019589
SP
16562012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1657
1658 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1659 parameter LEN to ssize_t.
1660
744a8059
SP
16612012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1662
1663 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1664 variable LEN.
1665 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1666 directly.
1667 (alpha_store_return_value): Likewise.
1668 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1669 (amd64_push_arguments): Likewise.
1670 * ax-gdb.c (gen_trace_static_fields): Likewise.
1671 (gen_traced_pop): Likewise.
1672 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1673 * breakpoint.c (update_watchpoint): Likewise.
1674 * findcmd.c (parse_find_args): Use local variable for type
1675 instead of length.
1676 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1677 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1678 (h8300_store_return_value): Likewise.
1679 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1680 Use i386_darwin_arg_type_alignment directly.
1681 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1682 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1683 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1684 (m68hc11_extract_return_value): Likewise.
1685 * mep-tdep.c (mep_push_dummy_call): Likewise.
1686 * printcmd.c (float_type_from_length): Likewise.
1687 * s390-tdep.c (s390_value_from_register): Likewise.
1688 * stack.c (read_frame_arg): Likewise.
1689 * tracepoint.c (encode_actions_1): Likewise.
1690 * valops.c (value_fetch_lazy): Use local variable for type
1691 instead of length. Use TYPE_LENGTH directly.
1692 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1693
a4b411d6
JB
16942012-09-25 Joel Brobecker <brobecker@adacore.com>
1695
1696 * symtab.c (skip_prologue_sal): Fix typo in comment.
1697
11dba07a
JB
16982012-09-25 Joel Brobecker <brobecker@adacore.com>
1699
1700 * linespec.c (create_sals_line_offset): Fix typo in comment.
1701
318102b9
SP
17022012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1703
1704 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1705 use plongest to print the array size.
1706
b4aa388a
SP
17072012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1708
1709 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1710 * p-valprint.c (pascal_type_print_base): Likewise.
1711
84cebc4a
YQ
17122012-09-22 Yao Qi <yao@codesourcery.com>
1713
1714 * remote.c (remote_get_trace_status): Remove setting default
1715 values of fields of 'ts'.
1716
04e7407c
JK
17172012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Fix internal error on canonicalization of clang types.
1720 * cp-name-parser.y (operator): New comment at make_operator call for
1721 new, delete, new[] and delete[].
1722 (exp): Use "sizeof ". Add new comment at make_operator call.
1723
9bf4bce9
JK
17242012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1725
1726 Fix disassemble without parameters in tailcall frame.
1727 * cli/cli-cmds.c (disassemble_current_function): Use
1728 get_frame_address_in_block.
1729
1c5b7826
TT
17302012-09-21 Tom Tromey <tromey@redhat.com>
1731
1732 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1733 TYPE_CODE_UNION>: Unify, removing a goto.
1734
62a49610
TT
17352012-09-21 Tom Tromey <tromey@redhat.com>
1736
1737 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1738
2603f7ee
AB
17392012-09-21 Andrew Burgess <aburgess@broadcom.com>
1740
1741 * findvar.c (read_frame_register_value): Mark the result value as
1742 optimized out if any of the input registers have been optimized out.
1743
810849a3
AS
17442012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1745
1746 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1747
0953dec1
SP
17482012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1749
1750 * eval.c (evaluate_subexp_standard): Eliminate single-use
1751 variable LOWER.
1752
82a90ccf
YQ
17532012-09-21 Yao Qi <yao@codesourcery.com>
1754
1755 * mi/mi-interp.c: Declare mi_record_changed.
1756 (mi_interpreter_init): Call observer_attach_record_changed.
1757 (mi_record_changed): New.
1758 * record.c (record_open): Call observer_notify_record_changed.
1759 (cmd_record_stop): Call observer_notify_record_changed.
1760 * NEWS: Mention it.
1761
d7de8e3c
TT
17622012-09-20 Tom Tromey <tromey@redhat.com>
1763
1764 * NEWS: Update.
1765 * python/python.c (finalize_python): New function.
1766 (_initialize_python): Make a final cleanup.
1767
43c7c83d
DE
17682012-09-19 Doug Evans <dje@google.com>
1769
1770 * buildsym.h (param_symbols): Delete, unused.
1771 (context_stack): Delete member "params", unused.
1772 * buildsym.c (push_context): Update.
1773 * dwarf2read.c (read_func_scope): Update.
1774
aa9259cc
TS
17752012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1776
a6521d9a
TS
1777 * sh-tdep.c (sh_register_convert_to_virtual)
1778 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1779 all callers. Just do a memcpy if not the little-endian case.
1780
f92589cb
TS
1781 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1782 set_gdbarch_double_format and set_gdbarch_long_double_format.
1783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1784 set_gdbarch_double_format.
1785 * sh-tdep.c (sh_gdbarch_init): Likewise.
1786
aa9259cc
TS
1787 * NEWS: Document the removal of SH's 'regs' command.
1788 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1789 command.
1790
c1d780c2
SDJ
17912012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1792
1793 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1794 `jump'.
1795
4ae24af0
JB
17962012-09-18 Joel Brobecker <brobecker@adacore.com>
1797
1798 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1799 language when iterating over symbols.
1800
bb25a15c
YQ
18012012-09-18 Yao Qi <yao@codesourcery.com>
1802
1803 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1804 (mi_interpreter_init): Call observer_attach_tsv_created and
1805 observer_attach_tsv_deleted.
1806 (mi_tsv_created, mi_tsv_deleted): New.
1807 * tracepoint.c (delete_trace_state_variable): Call
1808 observer_notify_tsv_deleted.
1809 (trace_variable_command): Call observer_notify_tsv_created.
1810 (delete_trace_variable_command): Call
1811 observer_notify_tsv_deleted.
1812 (create_tsv_from_upload): Call observer_notify_tsv_created.
1813 * NEWS: Mention it.
1814
201b4506
YQ
18152012-09-18 Yao Qi <yao@codesourcery.com>
1816
1817 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1818 if traceframe changed.
1819 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1820 "trace-find".
1821 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1822 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1823 'traceframe_changed'.
1824 (mi_traceframe_changed): New.
1825 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1826 New field.
1827 * NEWS: Mention the new MI notification.
1828
eaeb12db
MW
18292012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1830
1831 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1832
6e3c039e
JK
18332012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1834
1835 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1836 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1837 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1838 Extend code also for PaX support. Convert all gdb_assert to warning
1839 calls.
1840
9a950c7c
JK
18412012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1842
1843 Implement auto-load user conveniences suggested by Doug Evans.
1844 * auto-load.c: Include top.h.
1845 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1846 (_initialize_auto_load): New variable scripts_directory_help. Mention
1847 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1848 scripts-directory. Document in online help one can use also files for
1849 set auto-load safe-path.
1850 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1851 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1852
deec9a9d
SP
18532012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1854
1855 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1856 of LEN.
1857
354ecfd5
SP
18582012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1859
1860 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1861 ELTLEN and use TYPE_LENGTH directly.
1862 (m2_val_print): Likewise.
1863 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1864 variable LEN and use TYPE_LENGTH directly.
1865 (m68k_svr4_store_return_value): Likewise.
1866 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1867 ARGLEN and use TYPE_LENGTH directly.
1868 (mips_o64_push_dummy_call): Likewise.
1869 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1870 variable LENGTH and use TYPE_LENGTH directly.
1871 (s390_function_arg_float): Likewise.
1872 (s390_function_arg_integer): Likewise.
1873 (s390_push_dummy_call): Likewise.
1874 (s390_return_value_convention): Likewise.
1875 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1876 TYPE_LENGTH directly.
1877
6fc1c773
YQ
18782012-09-17 Yao Qi <yao@codesourcery.com>
1879
1880 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1881 Update comment to add_setshow_integer_cmd.
1882 * cli/cli-setshow.c (do_set_command): Handle case
1883 'var_zuinteger_unlimited'.
1884 (do_show_command): Likewise.
1885 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1886 for command 'remotetimeout'.
1887 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1888 to var_integer.
1889 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1890 for command 'set listsize'.
1891
6acef6cd
SP
18922012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1893
1894 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1895 variable LEN.
1896
1ab3b62c
JK
18972012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 PR 14119
1900 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1901 (frame_pop): Drop also TAILCALL_FRAME frames.
1902 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1903
acf9414f
JK
19042012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1905 Pedro Alves <palves@redhat.com>
1906
1907 PR 14548
1908 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1909 function start if we are already at function start. Both for
1910 reverse-next and for reverse-step into function without line number
1911 info.
1912
193facb3
JK
19132012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1914
1915 Code cleanup - rename 'inline' depth to 'artificial' depth.
1916 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1917 frame_id_artificial_p, extend the comment.
1918 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1919 * frame.c (fprint_frame_id): Rename at a user, change debug output
1920 text to "artificial=".
1921 (skip_inlined_frames): Rename to ...
1922 (skip_artificial_frames): ... here. Extend the comment.
1923 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1924 (frame_id_inlined_p): Rename to ...
1925 (frame_id_artificial_p): ... here. Rename at a user.
1926 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1927 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1928 at a user.
1929 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1930 Extend the comment.
1931 (frame_id_inlined_p): Rename to ...
1932 (frame_id_artificial_p): ... here.
1933 * inline-frame.c (inline_frame_this_id): Rename at a user.
1934
42056501
AB
19352012-09-14 Andrew Burgess <aburgess@broadcom.com>
1936
1937 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1938 vector variables using vector_size syntax rather than array
1939 syntax.
1940
84c47588
SP
19412012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1942
1943 * valarith.c (value_concat): Replace unsafe ALLOCA with
1944 XMALLOC/XFREE.
1945
f4045bcb
PA
19462012-09-14 Pedro Alves <palves@redhat.com>
1947
1948 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1949
63b46266
YPK
19502012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1951
1952 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1953 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1954 data-directory as appropriate.
1955
ddd7a8e7
SP
19562012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1957
1958 * printcmd.c (ui_printf): Eliminate single-use variable
1959 PARAM_LEN.
1960
d649a38e
YQ
19612012-09-14 Yao Qi <yao@codesourcery.com>
1962 Pedro Alves <palves@redhat.com>
1963
1964 * valops.c (value_assign): Move observer_notify_target_changed
1965 below to replace reinit_frame_cache.
1966
b9516fa1
YPK
19672012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1968
1969 Refactor Python "gdb" module into a proper Python package, by
1970 introducing a new "_gdb" module for code implemented in C, and
1971 using reload/__import__ instead of exec.
1972 * python/lib/gdb/__init__.py: Import * from _gdb.
1973 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1974 prompt_hook, sys.argv): Moved from finish_python_initialization.
1975 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1976 (packages, auto_load_packages): New list and function replacing
1977 module_dict and auto-loading code, using __file__ instead of
1978 gdb.PYTHONDIR and reload/__import__ instead of exec.
1979 (GdbSetPythonDirectory): Replacing function of the same name
1980 from finish_python_initialization, using reload/__import__ instead
1981 of exec, as well as call auto_load_packages.
1982 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1983 gdb_python_module and not gdb_module.
1984 * python/python-internal.h (gdb_python_module): Declare.
1985 * python/python.c (gdb_python_module): New global.
1986 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1987 (_initialize_python): Rename gdb module to _gdb.
1988 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1989 (finish_python_initialization): Move Python code to
1990 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1991 __main__.
1992
aa0fbdd8
PA
19932012-09-13 Pedro Alves <palves@redhat.com>
1994
1995 * Makefile.in (COMMON_OBS): Add registry.o.
1996 * registry.c: New file.
1997 * registry.h (struct registry_container): Declare.
1998 (registry_data_callback): New typedef.
1999 (struct registry_data, struct registry_data_registration, struct
2000 registry_data_registry): New type.
2001 (register_data_with_cleanup, registry_alloc_data)
2002 (registry_callback_adaptor, registry_clear_data)
2003 (registry_container_free_data, registry_set_data, registry_data):
2004 Declare.
2005 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2006 the new common structures and functions.
2007 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2008 callback typedefs.
2009
42b5c53d
MW
20102012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2011
2012 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2013 there is an error inserting hardware breakpoints and use the
2014 error message from the target.
2015
2016 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2017 Catch this exception and print the error message contained within. Do not
2018 print the default hardware error breakpoint message in this case.
2019
a1b64ce1
DE
20202012-09-12 Doug Evans <dje@google.com>
2021
2022 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2023 cu == NULL.
2024
83a788b8
DE
20252012-09-11 Doug Evans <dje@google.com>
2026
2027 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2028 .gdb_index symbol attributes if there are none.
2029
d9eaeb59
JB
20302012-09-11 Joel Brobecker <brobecker@adacore.com>
2031
2032 * symtab.h (struct minimal_symbol) [has_size]: New field.
2033 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2034 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2035 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2036 minimal symbols if the symbol's size is actually known.
2037 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2038 of msymbol's size field. Add comment.
2039 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2040 SET_MSYMBOL_SIZE to set the minimal symbol size.
2041
a83e9154
JB
20422012-09-11 Joel Brobecker <brobecker@adacore.com>
2043
2044 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2045 minimal_symbol struct object, rather than setting some of its
2046 fields one by one.
2047
350b1b26
AB
20482012-09-11 Andrew Burgess <aburgess@broadcom.com>
2049
2050 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2051 passed_a_ptr flag when displaying typedef types.
2052
2fa15f23
JB
20532012-09-10 Joel Brobecker <brobecker@adacore.com>
2054
2055 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2056 the optimized_out flag is preserved.
2057
5152ff90
AG
20582012-09-10 Anthony Green <green@moxielogic.com>
2059
2060 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2061 prologue changes in GCC.
2062
5b4f6e25
KS
20632012-09-10 Keith Seitz <keiths@redhat.com>
2064
2065 PR gdb/13483
2066 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2067 (BOOL_CONVERSION_BADNESS): ... this.
2068 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2069 (rank_one_type): Allow all boolean conversions
2070 permitted by the standard.
2071
f1070426
TT
20722012-09-06 Tom Tromey <tromey@redhat.com>
2073
2074 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2075 Don't decref py_objfile.
2076
a8db4212
YPK
20772012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2078
2079 Do not enable -lmcheck by default when Python is enabled with
2080 threading support.
2081 * configure.ac: (python_has_threads) New variable, by testing
2082 if WITH_THREAD is defined in Python.h.
2083 Move --enable-lmcheck after --with-python.
2084 Do not enable -lmcheck by default if python_has_threads=yes.
2085 Warn if --enable-lmcheck and python_has_threads=yes.
2086 * configure: Regenerate.
2087
648beb2b
YQ
20882012-08-31 Yao Qi <yao@codesourcery.com>
2089
2090 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2091 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2092 Update some commands.
2093 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2094 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2095 to 1.
2096
ef07a9f7
YQ
20972012-08-31 Yao Qi <yao@codesourcery.com>
2098
2099 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2100
fda395cf
YPK
21012012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2102
2103 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2104
8efd8e78
DE
21052012-08-29 Doug Evans <dje@google.com>
2106
2107 * main.c (print_gdb_help): Remove reference to
2108 --use-deprecated-index-sections.
2109
883b9c6c
YQ
21102012-08-28 Yao Qi <yao@codesourcery.com>
2111
2112 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2113 (init_cmds): Call add_setshow_uinteger_cmd for command
2114 'max-user-call-depth'.
2115 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2116 declaration of 'max_user_call_depth'.
2117 * frame.c (backtrace_limit): Add 'unsigned'.
2118 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2119 'limit'.
2120 * remote.c (remoteaddresssize): Add 'unsigned'.
2121 (remote_address_masked): Change local var 'address_size' to
2122 'unsigned'.
2123 (_initialize_remote): Call add_setshow_uinteger_cmd for
2124 'remoteaddresssize'.
2125 * top.c (history_size): Add 'unsigned'.
2126 (show_commands): Change local variables to 'unsigned'.
2127 (set_history_size_command): Don't check history_size is negative.
2128 Adjust the condition to call unstifle_history and set history_size
2129 to UNIT_MAX.
2130
1292279a
PA
21312012-08-28 Pedro Alves <palves@redhat.com>
2132
2133 PR gdb/14428
2134
2135 * infcmd.c (default_print_one_register_info): New, factored out
2136 from default_print_registers_info.
2137 (default_print_registers_info): Use it. Mark value unavailable if
2138 necessary.
2139 (registers_info): Print user registers with
2140 default_print_one_register_info.
2141
f629cd75
L
21422010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2143
2144 PR tui/14486
2145 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2146 is not NULL before referencing it.
2147
1c8cdcb1
JK
21482012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2151 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2152 original PC for it.
2153
e9687799
JK
21542012-08-27 Eli Zaretskii <eliz@gnu.org>
2155 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 * auto-load.c (auto_load_objfile_script): Rename to ...
2158 (auto_load_objfile_script_1): ... here, change variable realname to
2159 parameter realname, document it, add return value, add variable retval.
2160 (auto_load_objfile_script): New function.
2161
7afa1642
JK
21622012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2163
2164 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2165 followed by a whitespace.
2166
dc7650b8
JK
21672012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2168
28e66c70 2169 PR gdb/14494.
dc7650b8
JK
2170 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2171 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2172 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2173 here.
2174
1591a1e8
PA
21752012-08-27 Wei-cheng Wang <cole945@gmail.com>
2176
2177 * memattr.c (create_mem_region): Fix memory region overlapping
2178 checking.
2179
ecfb0d68
SP
21802012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2181
2182 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2183 with xmalloc/cleanup.
2184 * mt-tdep.c (mt_push_dummy_call): Likewise.
2185 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2186 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2187
8c56c1b9
YQ
21882012-08-24 Yao Qi <yao@codesourcery.com>
2189
2190 * jv-exp.y (push_expression_name): Add "." at the end of error
2191 message.
2192
e3480f4a
YPK
21932012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2194
2195 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2196 * python/python.c (_initialize_python): Update documentation.
2197
dfbd5e7b
PA
21982012-08-23 Pedro Alves <palves@redhat.com>
2199
2200 * infrun.c (_initialize_infrun) <handle command help text>:
2201 Mention that multiple signals are supported.
2202
2edda2ff
PA
22032012-08-23 Pedro Alves <palves@redhat.com>
2204
2205 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2206 string.
2207
8d735b87
YQ
22082012-08-23 Yao Qi <yao@codesourcery.com>
2209
2210 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2211 (tfind_1): Don't call registers_changed, set_traceframe_num,
2212 and clear_traceframe_info.
2213 Call set_current_traceframe.
2214 (set_current_traceframe): call set_traceframe_num.
2215
c5d9b215
SDJ
22162012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2217
2218 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2219 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2220
037bbc8e
YPK
22212012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2222
2223 Enable readline in Python in a GDB-specific way and block the
2224 standard Python readline module to prevent conflicts with GDB.
2225 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2226 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2227 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2228 * python/py-gdb-readline.c: New file.
2229 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2230 prototype.
2231 * python/python.c (_initialize_python): Call
2232 gdbpy_initialize_gdb_readline.
2233
406b1477
KS
22342012-08-22 Keith Seitz <keiths@redhat.com>
2235
2236 * defs.h: Include build-gnulib/config.h
2237
6ca1b147
JM
22382012-08-22 Joseph Myers <joseph@codesourcery.com>
2239
2240 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2241 and blx pc.
2242
8315665e
YPK
22432012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2244
2245 Add a new "python-interactive" command that starts a standard
2246 Python interactive prompt with "pi" as alias, and add "py" as
2247 an alias to "python".
2248 * NEWS: Mention the new commands.
8315665e
YPK
2249 * python/python.c (eval_python_command): New function.
2250 (python_interactive_command): For "python-interactive" with
2251 arguments, call eval_python_command. For "python-interactive"
2252 without arguments, call PyRun_InteractiveLoop.
2253 (_initialize_python): Add "python-interactive" command with
2254 "pi" as alias, and add "py" as an alias to "python".
2255
522002f9
TT
22562012-08-22 Tom Tromey <tromey@redhat.com>
2257
2258 * defs.h (quit_flag): Don't declare.
2259 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2260 (QUIT): Use new functions.
2261 * event-top.c (command_handler): Use clear_quit_flag.
2262 (handle_sigint): Use set_quit_flag.
2263 (async_request_quit): Use check_quit_flag. Don't check
2264 immediate_quit.
2265 * exceptions.c (throw_exception): Use clear_quit_flag.
2266 * main.c (captured_main): Use clear_quit_flag.
2267 * python/python.c (clear_quit_flag, set_quit_flag)
2268 (check_quit_flag): New functions.
2269 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2270 clear_quit_flag.
2271 * remote.c (remote_wait_as): Use check_quit_flag,
2272 clear_quit_flag.
2273 (remote_start_remote): Call QUIT.
2274 * symfile.c (load_progress): Use check_quit_flag.
2275 * top.c (command_loop): Use clear_quit_flag.
2276 (command_line_input): Call QUIT.
2277 * utils.c (quit_flag): Conditionally define.
2278 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2279 functions.
2280 (prompt_for_continue): Call QUIT. Use quit, not
2281 async_request_quit.
2282 * remote-mips.c (mips_expect_timeout): Call QUIT.
2283 * monitor.c (monitor_expect): Call QUIT.
2284
b583003e
TT
22852012-08-22 Tom Tromey <tromey@redhat.com>
2286
2287 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2288 (async_init_signals): Update.
2289 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2290 (SIGWINCH_HANDLER_BODY): Remove.
2291
e1507e95
TT
22922012-08-22 Tom Tromey <tromey@redhat.com>
2293
2294 * jit.c (jit_object_close_impl): Don't malloc the objfile
2295 name.
2296 * objfiles.c (allocate_objfile): Don't malloc the objfile
2297 name.
2298 (free_objfile): Don't free the objfile name.
2299 * objfiles.h (struct objfile) <name>: Update comment.
2300 * symfile.c (reread_symbols): Fix reference counting. Don't
2301 malloc objfile name.
2302
1c00ec6b
TT
23032012-08-22 Tom Tromey <tromey@redhat.com>
2304
2305 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2306 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2307 (symfile_bfd_open): Likewise.
2308 (generic_load): Likewise.
2309 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2310 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2311 gdb_bfd_open.
2312 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2313 Use gdb_bfd_open.
2314 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2315 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2316 (pmon_load_fast): Likewise.
2317 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2318 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2319 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2320 (macho_check_dsym): Likewise.
2321 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2322 (m32r_upload_command): Likewise.
2323 * gdb_bfd.h (gdb_bfd_cache): Declare.
2324 * gdb_bfd.c (struct gdb_bfd_data): New.
2325 (gdb_bfd_cache): New global.
2326 (struct gdb_bfd_cache_search): New.
2327 (hash_bfd): New function.
2328 (eq_bfd): Likewise.
2329 (gdb_bfd_open): Likewise.
2330 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2331 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2332 gdb_bfd_data.
2333 * exec.c (exec_file_attach): Use gdb_bfd_open.
2334 * dsrec.c (load_srec): Use gdb_bfd_open.
2335
6532ff36
TT
23362012-08-22 Tom Tromey <tromey@redhat.com>
2337
2338 * dwarf2read.c (macro_start_file): Update.
2339 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2340 (free_objfile_per_bfd_storage): Destroy macro_cache.
2341 (allocate_objfile, free_objfile): Update.
2342 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2343 New field.
2344 (struct objfile) <macro_cache>: Remove.
2345 * symfile.c (reread_symbols): Update.
2346 * symmisc.c (print_symbol_bcache_statistics): Update.
2347 (print_objfile_statistics): Update.
2348
706e3705
TT
23492012-08-22 Tom Tromey <tromey@redhat.com>
2350
2351 * elfread.c (elf_symtab_read): Update.
2352 * objfiles.c (objfiles_bfd_data): New global.
2353 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2354 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2355 (allocate_objfile, free_objfile): Update.
2356 (_initialize_objfiles): Initialize objfiles_bfd_data.
2357 * objfiles.h (struct objfile_per_bfd_storage): New.
2358 (struct objfile) <per_bfd>: New field.
2359 <filename_cache>: Remove.
2360 (set_objfile_per_bfd): Declare.
2361 * symfile.c (reread_symbols): Update. Call
2362 set_objfile_per_bfd.
2363 (allocate_symtab): Update.
2364 * symmisc.c (print_symbol_bcache_statistics): Update.
2365 (print_objfile_statistics): Print the size of the BFD obstack.
2366
e992eda4
TT
23672012-08-22 Tom Tromey <tromey@redhat.com>
2368
2369 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2370 * gdb_bfd.c: Use DEFINE_REGISTRY.
2371 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2372 (gdb_bfd_ref): Call bfd_alloc_data.
2373 (gdb_bfd_unref): Call bfd_free_data.
2374
6b81941e
TT
23752012-08-22 Tom Tromey <tromey@redhat.com>
2376
2377 * registry.h (struct registry_fields): New.
2378 (REGISTRY_FIELDS): Redefine.
2379 (REGISTRY_ACCESS_FIELD): New macro.
2380 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2381 functions.
2382
8e260fc0
TT
23832012-08-22 Tom Tromey <tromey@redhat.com>
2384
2385 * auto-load.c (_initialize_auto_load): Update.
2386 * solib-svr4.c (_initialize_svr4_solib): Update
2387 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2388 * solib-darwin.c (_initialize_darwin_solib): Update.
2389 * registry.h: New file.
2390 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2391 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2392 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2393 (register_program_space_data_with_cleanup)
2394 (register_program_space_data, program_space_alloc_data)
2395 (clear_program_space_data, set_program_space_data)
2396 (program_space_data): Don't declare.
2397 * progspace.c: Use DEFINE_REGISTRY.
2398 (struct program_space_data, struct
2399 program_space_data_registration, struct
2400 program_space_data_registry, program_space_data_registry)
2401 (register_program_space_data_with_cleanup)
2402 (register_program_space_data, program_space_alloc_data)
2403 (program_space_free_data, clear_program_space_data)
2404 (set_program_space_data, program_space_data): Remove.
2405 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2406 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2407 (register_objfile_data_with_cleanup, register_objfile_data)
2408 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2409 declare.
2410 * objfiles.c: Use DEFINE_REGISTRY.
2411 (struct objfile_data, struct objfile_data_registration, struct
2412 objfile_data_registry, objfile_data_registry)
2413 (register_objfile_data_with_cleanup, register_objfile_data)
2414 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2415 (set_objfile_data, objfile_data): Remove.
2416 (_initialize_objfiles): Update.
2417 * jit.c (_initialize_jit): Update.
2418 * inflow.c (_initialize_inflow): Update.
2419 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2420 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2421 (register_inferior_data_with_cleanup, register_inferior_data)
2422 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2423 declare.
2424 * inferior.c: Use DEFINE_REGISTRY.
2425 (struct inferior_data, struct inferior_data_registration, struct
2426 inferior_data_registry, inferior_data_registry)
2427 (register_inferior_data_with_cleanup, register_inferior_data)
2428 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2429 (set_inferior_data, inferior_data): Remove.
2430 * auxv.c (_initialize_auxv): Update.
2431 * ada-lang.c (_initialize_ada_language): Update.
2432 * breakpoint.c (_initialize_breakpoint): Update.
2433 * i386-nat.c (i386_use_watchpoints): Update.
2434
ed9eebaf
TT
24352012-08-22 Tom Tromey <tromey@redhat.com>
2436
2437 * exec.c (exec_close, exec_file_attach): Update.
2438 (add_to_section_table): Initialize 'key' field.
2439 (add_target_sections, remove_target_sections): Add 'key' argument.
2440 * exec.h (add_target_sections, remove_target_sections): Add
2441 'key' argument.
2442 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2443 (reload_shared_libraries_1): Update.
2444 * target.h (struct target_section) <key>: New field.
2445
2f2e97fa
TT
24462012-08-22 Tom Tromey <tromey@redhat.com>
2447
2448 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2449
b3dbbd6f
PM
24502012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2451
2452 * symfile.c (allocate_symtab): Use host_address_to_string
2453 function instead of cast of pointer to long which is not
2454 compatible with x86_64-w64-mingw32 build.
2455
f94363d7
AP
24562012-08-19 Andrew Pinski <apinski@cavium.com>
2457
2458 * mips-tdep.c (is_octeon): New function.
2459 (is_octeon_bbit_op): New function.
2460 (mips32_next_pc): Handle Octeon's bbit instructions.
2461 (mips32_instruction_has_delay_slot): Likewise.
2462
78a59c2f
AP
24632012-08-19 Andrew Pinski <apinski@cavium.com>
2464
2465 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2466 before the function.
2467
4f5bcb50
AP
24682012-08-19 Andrew Pinski <apinski@cavium.com>
2469
2470 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2471
e5afdbd7
KS
24722012-08-19 Keith Seitz <keiths@redhat.com>
2473
2474 PR c++/14365
2475 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2476 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2477
13c9750e
EZ
24782012-08-18 Eli Zaretskii <eliz@gnu.org>
2479
2480 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2481 The typo broke "make TAGS".
2482
db761810 24832012-08-17 Joel Brobecker <brobecker@adacore.com>
2484
2485 GDB 7.5 released.
2486
a451cb65
KS
24872012-08-17 Keith Seitz <keiths@redhat.com>
2488
2489 PR c++/13356
2490 * gdbtypes.c (strict_type_checking): New variable.
2491 (show_strict_type_checking): New function.
2492 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2493 if strict type checking is disabled.
2494 (_initialize_gdbtypes): Add "check type" subcommand.
2495 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2496
24972012-08-17 Keith Seitz <keiths@redhat.com>
2498
2499 * language.h (type_mode): Remove.
2500 (type_check): Remove.
2501 (struct language_defn): Remove la_type_check.
2502 (STRICT_TYPE): Remove unused macro.
2503 (type_error): Remove.
2504 * language.c (set_type_range_case): Renamed to ...
2505 (set_range_case): ... this. Update all callers.
2506 Remove type_mode/type_check.
2507 (type_mode): Remove.
2508 (type_check): Remove.
2509 (show_type_command): Remove.
2510 (set_type_command): Remove.
2511 (language_info): Remove type checking output.
2512 (type_error): Remove unused function.
2513 (range_error): Update comment.
2514 (unknown_language_defn): Remove la_type_check.
2515 (auto_language_defn): Likewise.
2516 (local_language_defn): Likewise.
2517 (_initialize_language): Remove "check type" subcommand.
2518 * ada-lang.c (ada_language_defn): Remove la_type_check.
2519 * c-lang.c (c_language_defn): Likewise.
2520 (cplus_language_defn): Likewise.
2521 (asm_language_defn): Likewise.
2522 (minimal_language_defn): Likewise.
2523 * d-lang.c (d_language_defn): Likewise.
2524 * f-lang.c (f_language_defn): Likewise.
2525 * go-lang.c (go_language_defn): Likewise.
2526 * jv-lang.c (java_language_defn): Likewise.
2527 * m2-lang.c (m2_language_defn): Likewise.
2528 * objc-lang.c (objc_language_defn): Likewise.
2529 * opencl-lang.c (opencl_language_defn): Likewise.
2530 * p-lang.c (pascal_language_defn): Likewise.
2531
dbf6a605
MF
25322012-08-16 Mike Frysinger <vapier@gentoo.org>
2533
2534 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2535
973e3cf7
JB
25362012-08-16 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2539 New function.
2540 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2541 using the regache. Use ia64_hpux_get_register_from_save_state_t
2542 to access the bsp and bspstore registers if not.
2543
d80ee84f
JB
25442012-08-16 Joel Brobecker <brobecker@adacore.com>
2545
2546 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2547 * breakpoint.c (detach_breakpoints): Change pid parameter into
2548 a ptid. Adjust code accordingly.
2549 * infrun.c (handle_inferior_event): Delete variable child_pid.
2550 Update call to detach_breakpoints to pass the child ptid for
2551 fork events.
2552 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2553 assert that inferior_ptid's lwp is zero.
2554 (linux_handle_extended_wait): Update call to detach_breakpoints.
2555 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2556 detach_breakpoints.
2557
2dcc6086
JB
25582012-08-16 Joel Brobecker <brobecker@adacore.com>
2559
2560 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2561 parent, only call detach_breakpoints if tts.tts_event ==
2562 TTEVT_VFORK.
2563
0c92d8c1
JB
25642012-08-16 Joel Brobecker <brobecker@adacore.com>
2565
2566 * dwarf2-frame.c (dwarf2_frame_cache): Use
2567 get_frame_address_in_block instead of get_frame_pc as
2568 the bound for executing the frame's FDE.
2569
6b1755ce
YQ
25702012-08-16 Yao Qi <yao@codesourcery.com>
2571
2572 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2573 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2574 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2575 (c_type_print_varspec_suffix): Likewise.
2576 * eval.c (evaluate_subexp_standard): Likewise.
2577 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2578 (f_type_print_varspec_suffix): Likewise.
2579 * gdbtypes.c (is_scalar_type): Likewise.
2580 (recursive_dump_type): Likewise.
2581 * infcall.c (value_arg_coerce): Likewise.
2582 * m2-valprint.c (m2_val_print): Likewise.
2583 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2584 (pascal_type_print_varspec_suffix): Likewise.
2585 (pascal_type_print_base): Likewise.
2586 * p-valprint.c (pascal_val_print): Likewise.
2587 (pascal_val_print): Likewise.
2588 * valops.c (value_slice): Likewise.
2589 * valprint.c (scalar_type_p): Likewise.
2590 * valarith.c (value_bitstring_subscript): Remove.
2591 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2592 Remove comment on TYPE_CODE_BITSTRING.
2593
2594 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2595 TYPE_CODE_BITSTRING.
2596
2597 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2598 slot 0.
2599
8acc4065
YQ
26002012-08-16 Yao Qi <yao@codesourcery.com>
2601
2602 * tracepoint.c (trace_find_none_command): Remove.
2603 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2604
8128fd8e
YQ
26052012-08-16 Yao Qi <yao@codesourcery.com>
2606
2607 * remote.c (handle_notification): Remove parameter 'length'.
2608 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2609
2873700e
KS
26102012-08-15 Keith Seitz <keiths@redhat.com>
2611
2612 * gdbtypes.c (opaque_type_resolution): Make static.
2613 Add missing comment.
2614 (overload_debug): Add missing comment.
2615 (show_opaque_type_resolution): Likewise.
2616 (show_overload_debug): Likewise.
2617 (print_bit_vector): Remove unnecessary forward declaration.
2618 (print_arg_types): Likewise.
2619 (dump_fn_fieldlists): Likewise.
2620 (print_cplus_stuff): Likewise.
2621
b82d08cd
TT
26222012-08-15 Tom Tromey <tromey@redhat.com>
2623
2624 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2625 (gdb_bfd_ref): Initialize new field.
2626 (gdb_bfd_unref): Unref the archive BFD.
2627 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2628 parent archive.
2629
db6573d6
TT
26302012-08-15 Tom Tromey <tromey@redhat.com>
2631
2632 PR python/14387:
2633 * python/py-bpevent.c (create_breakpoint_event_object): Update
2634 comment.
2635 * python/py-event.c (evpy_add_attribute): Update comment.
2636 * python/py-exitedevent.c (create_exited_event_object): Fix
2637 reference counting and error handling.
2638 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2639 Fix reference counting.
2640 * python/py-signalevent.c (create_signal_event_object): Fix
2641 reference counting and error handling.
2642 * python/py-stopevent.c (emit_stop_event): Fix reference
2643 counting.
2644 * python/py-threadevent.c (get_event_thread): Return a
2645 borrowed reference.
2646 * python/py-type.c (convert_field): Fix reference counting.
2647
a036ba48
TT
26482012-08-15 Tom Tromey <tromey@redhat.com>
2649
2650 * dwarf2read.c (dwarf_decode_macro_bytes)
2651 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2652 as hash key.
2653
486c7739
MF
26542012-08-14 Mike Frysinger <vapier@gentoo.org>
2655
2656 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2657 stepi, nexti, finish, next, step, jump, and continue commands.
2658 * infrun.c (_initialize_infrun): Update help text for the handle
2659 command.
2660
4cf93a03
DE
26612012-08-14 Doug Evans <dje@google.com>
2662
70b099cf
DE
2663 * gdbtypes.c (struct extra): Delete, unused.
2664
5212577a
DE
2665 * gdbtypes.c: Whitespace cleanup.
2666 (address_space_name_to_int): Remove "extern" from definition.
2667 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2668
4cf93a03
DE
2669 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2670 TYPE_POINTER_TYPE (type).
2671
3756ef7e
GB
26722012-08-14 Gary Benson <gbenson@redhat.com>
2673
2674 * solib-svr4.c (svr4_free_library_list): Use free_so.
2675
40d72643
MF
26762012-08-13 Mike Frysinger <vapier@gentoo.org>
2677
2678 * .gitignore: Add go-exp.c.
2679
f47f77df
DE
26802012-08-13 Doug Evans <dje@google.com>
2681
2682 * value.c (show_convenience): Tweak comment.
2683 (_initialize_values): Mention convenience functions in the help text
2684 for "show convenience".
2685
7507c54a
YQ
26862012-08-13 Yao Qi <yao@codesourcery.com>
2687
2688 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2689 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2690 TERNOP_SLICE_COUNT.
2691 * eval.c (evaluate_subexp_standard): Likewise.
2692 * expprint.c (print_subexp_standard): Likewise.
2693 (dump_subexp_body_standard): Likewise.
2694 * parse.c (operator_length_standard): Likewise.
2695
5cad9736
YQ
26962012-08-13 Yao Qi <yao@codesourcery.com>
2697
2698 * std-operator.def: Remove OP_BITSTRING.
2699 * breakpoint.c (watchpoint_exp_is_const): Update.
2700 * eval.c (evaluate_subexp_standard): Remove handling to
2701 OP_BITSTRING.
2702 * expprint.c (print_subexp_standard): Likewise.
2703 (dump_subexp_body_standard): Likewise.
2704 * parse.c (operator_length_standard): Likewise.
2705 * valops.c (value_bitstring): Remove.
2706 * value.h: Remove the declaration of 'value_bitstring'.
2707
bad7670a
SDJ
27082012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2709
2710 * linespec.c (find_methods): Remove unused variables `i1' and
2711 `name_len'.
2712 (decode_line_full): Likewise for `arg_start'.
2713
d9dce7fa
SDJ
27142012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2715
2716 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2717 (zlib_decompress_section): Likewise for `section_data'.
2718 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2719
a72c3253
DE
27202012-08-10 Doug Evans <dje@google.com>
2721
2722 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2723 * NEWS: Document them.
2724 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2725 function/strfns.py.
2726 * python/py-type.c (typy_array_1): New function.
2727 (typy_array): Call it.
2728 (typy_vector): New function.
2729 (type_object_methods): Add "vector".
2730 * python/lib/gdb/function/__init__.py: New file.
2731 * python/lib/gdb/function/strfns.py: New file.
2732
200bc880
SP
27332012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2734
2735 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2736 for TYPE_FIELD_BITPOS.
2737 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2738
de0bea00
MF
27392012-08-10 Mike Frysinger <vapier@gentoo.org>
2740
2741 PR cli/10436:
2742 * common/vec.h (VEC_merge): Define.
2743 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2744 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2745 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2746 * completer.c: Include gdb_signals.h.
2747 (signal_completer): Define.
2748 * completer.h (signal_completer): Add prototype.
2749 * infcmd.c (_initialize_infcmd): Assign the command
2750 completer for "signal" to handle_completer.
2751 * infrun.c: Include completer.h.
2752 (handle_completer): Define.
2753 (_initialize_infrun): Declare a new local variable c. Store the
2754 result of add_com("handle") to it. Assign the command
2755 completer for "handle" to handle_completer.
2756
5b9afe8a
YQ
27572012-08-09 Yao Qi <yao@codesourcery.com>
2758
2759 * cli/cli-decode.c (set_cmd_prefix): New.
2760 (lookup_cmd_for_prefixlist): New.
2761 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2762 of each cmd_list_element in *prefixlist.
2763 (add_setshow_cmd_full): set_cmd_prefix.
2764 (add_alias_cmd): Likewise.
2765 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2766 Declare 'auto_boolean_enums'.
2767 * cli/cli-setshow.c: Include "observer.h".
2768 (notify_command_param_changed_p): New.
2769 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2770 Remove 'static'.
2771 (do_setshow_command): Split it to ...
2772 (do_set_command, do_show_command): ... them. New.
2773 (do_set_command): Call observer_notify_command_param_changed if
2774 notify_command_param_changed_p returns true.
2775 (cmd_show_list): Caller update.
2776 * auto-load.c (set_auto_load_cmd): Likewise.
2777 * remote.c (show_remote_cmd): Likewise.
2778 * cli/cli-setshow.h: Update declarations.
2779 * top.c (execute_command): Call do_set_command and do_show_command.
2780
2781 * NEWS: Mention new MI notification.
2782 * mi/mi-interp.c: Declare mi_command_param_changed.
2783 (mi_interpreter_init): Attach mi_command_param_changed to
2784 observer command_param_changed.
2785 (mi_command_param_changed): New.
2786 Remove mi_suppress_breakpoint_notifications.
2787 Define global variable mi_suppress_notification.
2788 (mi_breakpoint_created): Update.
2789 (mi_breakpoint_deleted): Likewise.
2790 (mi_breakpoint_modified): Likewise.
2791 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2792 'gdb-set' and set mi_suppress_notification.
2793 * mi/mi-main.h: (mi_suppress_notification): New struct.
2794
1969df89
JK
27952012-08-09 Andreas Tobler <andreast@fgznet.ch>
2796 Jan Kratochvil <jan.kratochvil@redhat.com>
2797
2798 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2799
8bfd80db
YQ
28002012-08-09 Yao Qi <yao@codesourcery.com>
2801
2802 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2803 (skiplist): Move it to skip.c.
2804 (init_cmd_lists): Remove code setting enablebreaklist and
2805 skiplist to NULL.
2806 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2807 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2808 skiplist.
2809 * gdbcmd.h: Likewise.
2810 * skip.c (_initialize_step_skip): Move 'skiplist' from
2811 cli/cli-cmds.c.
2812
28578e6b
YQ
28132012-08-09 Yao Qi <yao@codesourcery.com>
2814
2815 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2816 * gnu-nat.c, symfile.c: Likewise.
2817
260c0b2a
DE
28182012-08-08 Aaron Gamble <agamble@google.com>
2819
2820 * utils.c (prompt_for_continue_wait_time): New static global.
2821 (make_command_stats_cleanup): Initialize it.
2822 (report_command_stats): Subtract time waiting for user.
2823 (prompt_for_continue): Track time waiting for user.
2824 (defaulted_query): Track time waiting for user.
2825
4f485ebc
DE
28262012-08-08 Doug Evans <dje@google.com>
2827
2828 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2829 UNOP_MEMVAL_TYPE.
2830 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2831 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2832 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2833 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2834 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2835 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2836 elt.
2837 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2838 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2839 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2840 (dump_prefix_expression): Handle OP_TYPE.
2841
2acf2b39
KS
28422012-08-08 Keith Seitz <keiths@redhat.com>
2843
2844 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2845 addr_start.
2846
e6712ff1
DE
28472012-08-08 Doug Evans <dje@google.com>
2848
2849 * linux-thread-db.c: #include "gdb_vecs.h".
2850 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2851 updated.
2852 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2853 (thread_db_load_search): Use a vector to iterate over path elements.
2854 Handle text appearing after "$pdir".
2855
2856 * gdb_string.h: Moved to ...
2857 * common/gdb_string.h: ... here.
2858 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2859 gdb_string.h and gdb_assert.h.
2860
ab854e54
YQ
28612012-08-08 Yao Qi <yao@codesourcery.com>
2862
2863 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2864 (tic6x_value_to_register): Likewise.
2865 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2866 and set_gdbarch_value_to_register.
2867
4f69f4c2
JK
28682012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2869 Jean-Marc Saffroy <saffroy@gmail.com>
2870
2871 PR 11804
2872 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2873 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2874 * gcore.c (gcore_create_callback): New function comment. Add modified
2875 parameter. Only write modified regions. Set SEC_READONLY exactly
2876 according to MODIFIED.
2877 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2878 the passed modified value to FUNC.
2879 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2880 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2881 first. New variables modified and has_anonymous. Parse the lines of
2882 smaps file. Add the passed MODIFIED value to FUNC.
2883 * procfs.c (find_memory_regions_callback): Add the passed modified
2884 value.
2885
78ac5f83
TT
28862012-08-06 Tom Tromey <tromey@redhat.com>
2887
2888 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2889 (dwarf2_frame_cache): Use it.
2890 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2891 cache initialization constraint.
2892
2c12abee
TT
28932012-08-06 Tom Tromey <tromey@redhat.com>
2894
2895 PR python/14386:
2896 * varobj.c (update_dynamic_varobj_children): Don't call
2897 PyIter_Check.
2898
4979d7f0
TT
28992012-08-06 Tom Tromey <tromey@redhat.com>
2900
2901 PR cli/14392:
2902 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2903
f3c8a52a
JK
29042012-08-06 Nathaniel Flath <flat0103@gmail.com>
2905
2906 * NEWS: New entry for 'cd' default parameters.
2907 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2908
5a1cf4d6
TT
29092012-08-03 Tom Tromey <tromey@redhat.com>
2910
2911 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2912 return.
2913
7c3270ae
UW
29142012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2915
2916 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2917 to attempting lseek/write.
2918 (inf_child_fileio_pread): Likewise for pread.
2919
ccce17b0
YQ
29202012-08-02 Yao Qi <yao@codesourcery.com>
2921
2922 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2923 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2924 add_setshow_zinteger_cmd.
2925 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2926 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2927 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2928 instead of add_setshow_zinteger_cmd.
2929 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2930 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2931 instead of add_setshow_zinteger_cmd.
2932 * frame.c (frame_debug): Add 'unsigned'.
2933 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2934 add_setshow_zinteger_cmd.
2935 * frame.h: Update the declaration of 'frame_debug'.
2936 * gdbtypes.c (overload_debug): Add 'unsigned'.
2937 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2938 add_setshow_zinteger_cmd.
2939 * inferior.h: Update declaration of 'debug_infrun'.
2940 * infrun.c (debug_infrun): Add 'unsigned'.
2941 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2942 add_setshow_zinteger_cmd.
2943 * jit.c (jit_debug): Add 'unsigned'.
2944 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2945 add_setshow_zinteger_cmd.
2946 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2947 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2948 instead of add_setshow_zinteger_cmd.
2949 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2950 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2951 add_setshow_zinteger_cmd.
2952 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2953 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2954 instead of add_setshow_zinteger_cmd.
2955 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2956 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2957 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2958 intead of add_setshow_zinteger_cmd.
2959 * mips-tdep.c (mips_debug): Add 'unsigned'.
2960 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2961 instead of add_setshow_zinteger_cmd.
2962 * monitor.c (monitor_debug): Add 'unsigned'.
2963 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2964 add_setshow_zinteger_cmd.
2965 * observer.c (observer_debug): Add 'unsigned'.
2966 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2967 add_setshow_zinteger_cmd.
2968 * parse.c (expressiondebug): Add 'unsigned'.
2969 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2970 add_setshow_zinteger_cmd.
2971 * record.c (record_debug): Add 'unsigned'.
2972 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2973 add_setshow_zinteger_cmd.
2974 * record.h: Update the declaration of 'record_debug'.
2975 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2976 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2977 add_setshow_zinteger_cmd.
2978 * serial.c (global_serial_debug_p): Add 'unsigned'.
2979 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2980 add_setshow_zinteger_cmd.
2981 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2982 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2983 add_setshow_zinteger_cmd.
2984 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2985 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2986 add_setshow_zinteger_cmd.
2987 * target.c (targetdebug): Add 'unsigned'.
2988 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2989 add_setshow_zinteger_cmd.
2990 * valops.c (overload_debug): Add 'unsigned'.
2991 * varobj.c (varobjdebug): Add 'unsigned'.
2992 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2993 add_setshow_zinteger_cmd.
2994 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2995 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2996 instead of add_setshow_zinteger_cmd.
2997
2998 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2999 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3000 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3001 instead of add_setshow_zinteger_cmd.
3002 * gdbarch.c, gdbarch.h: Re-generated.
3003
95b07c96
YQ
30042012-08-02 Yao Qi <yao@codesourcery.com>
3005
3006 * nto-tdep.c: Don't include cli/cli-decode.h and
3007 cli/cli-cmds.h.
3008 (_initialize_nto_tdep): Remove.
3009 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3010 Remove field.
3011 Remove macro nto_internal_debugging.
3012
57295b0b
RH
30132012-08-01 Richard Henderson <rth@redhat.com>
3014
3015 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3016 (mep-*-*) [gdb_target_obs]: Likewise.
3017
f782ad9b
AS
30182012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3019
3020 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3021 linux_get_siginfo_type.
3022
a14dd77e
JK
30232012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3026 AT_ENTRY_POINT.
3027 (call_function_by_hand) <ON_STACK>: Call write_memory with
3028 gdbarch_breakpoint_from_pc, if possible.
3029 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3030 here.
3031
1467929f
YQ
30322012-07-31 Yao Qi <yao@codesourcery.com>
3033
3034 * tracepoint.c: Add 'static' for some variables.
3035
70976b65
YQ
30362012-07-31 Yao Qi <yao@codesourcery.com>
3037
3038 * go32-nat.c: Declare _initialize_go32_nat.
3039 * ser-go32.c: Declare _initialize_ser_dos.
3040 * top.c (do_chdir_cleanup): Add 'static'.
3041
eff9c3e6
KS
30422012-07-30 Keith Seitz <keiths@redhat.com>
3043
3044 * linespec.c (linespec_lex_number): A number followed
3045 by quotes is a valid number, too.
3046
728400d7
TT
30472012-07-30 Tom Tromey <tromey@redhat.com>
3048
3049 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3050
fcf303ab
UW
30512012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3052
3053 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3054 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3055
4e969b4f
AB
30562012-07-30 Andrew Burgess <aburgess@broadcom.com>
3057
3058 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3059 invalid or reevaluated to prevent prevent references to possibly
3060 delete'd type objects being left in the varobj.
3061
c4bfde41
JK
30622012-07-27 Tom Tromey <tromey@redhat.com>
3063 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 * copying.awk: Print buffer-read-only and vi ro markers.
3066 * copying.c: Rebuild.
3067 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3068 * gdbarch.c, gdbarch.h: Rebuild.
3069 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3070 buffer-read-only and vi ro markers.
3071 * features/arm-with-iwmmxt.c: Rebuild.
3072 * features/arm-with-m-fpa-layout.c: Rebuild.
3073 * features/arm-with-m-vfp-d16.c: Rebuild.
3074 * features/arm-with-m.c: Rebuild.
3075 * features/arm-with-neon.c: Rebuild.
3076 * features/arm-with-vfpv2.c: Rebuild.
3077 * features/arm-with-vfpv3.c: Rebuild.
3078 * features/i386/amd64-avx-linux.c: Rebuild.
3079 * features/i386/amd64-avx.c: Rebuild.
3080 * features/i386/amd64-linux.c: Rebuild.
3081 * features/i386/amd64.c: Rebuild.
3082 * features/i386/i386-avx-linux.c: Rebuild.
3083 * features/i386/i386-avx.c: Rebuild.
3084 * features/i386/i386-linux.c: Rebuild.
3085 * features/i386/i386-mmx-linux.c: Rebuild.
3086 * features/i386/i386-mmx.c: Rebuild.
3087 * features/i386/i386.c: Rebuild.
3088 * features/i386/x32-avx-linux.c: Rebuild.
3089 * features/i386/x32-avx.c: Rebuild.
3090 * features/i386/x32-linux.c: Rebuild.
3091 * features/i386/x32.c: Rebuild.
3092 * features/mips-dsp-linux.c: Rebuild.
3093 * features/mips-linux.c: Rebuild.
3094 * features/mips64-dsp-linux.c: Rebuild.
3095 * features/mips64-linux.c: Rebuild.
3096 * features/rs6000/powerpc-32.c: Rebuild.
3097 * features/rs6000/powerpc-32l.c: Rebuild.
3098 * features/rs6000/powerpc-403.c: Rebuild.
3099 * features/rs6000/powerpc-403gc.c: Rebuild.
3100 * features/rs6000/powerpc-405.c: Rebuild.
3101 * features/rs6000/powerpc-505.c: Rebuild.
3102 * features/rs6000/powerpc-601.c: Rebuild.
3103 * features/rs6000/powerpc-602.c: Rebuild.
3104 * features/rs6000/powerpc-603.c: Rebuild.
3105 * features/rs6000/powerpc-604.c: Rebuild.
3106 * features/rs6000/powerpc-64.c: Rebuild.
3107 * features/rs6000/powerpc-64l.c: Rebuild.
3108 * features/rs6000/powerpc-7400.c: Rebuild.
3109 * features/rs6000/powerpc-750.c: Rebuild.
3110 * features/rs6000/powerpc-860.c: Rebuild.
3111 * features/rs6000/powerpc-altivec32.c: Rebuild.
3112 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3113 * features/rs6000/powerpc-altivec64.c: Rebuild.
3114 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3115 * features/rs6000/powerpc-cell32l.c: Rebuild.
3116 * features/rs6000/powerpc-cell64l.c: Rebuild.
3117 * features/rs6000/powerpc-e500.c: Rebuild.
3118 * features/rs6000/powerpc-e500l.c: Rebuild.
3119 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3120 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3121 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3122 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3123 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3124 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3125 * features/rs6000/powerpc-vsx32.c: Rebuild.
3126 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3127 * features/rs6000/powerpc-vsx64.c: Rebuild.
3128 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3129 * features/rs6000/rs6000.c: Rebuild.
3130 * features/s390-linux32.c: Rebuild.
3131 * features/s390-linux32v1.c: Rebuild.
3132 * features/s390-linux32v2.c: Rebuild.
3133 * features/s390-linux64.c: Rebuild.
3134 * features/s390-linux64v1.c: Rebuild.
3135 * features/s390-linux64v2.c: Rebuild.
3136 * features/s390x-linux64.c: Rebuild.
3137 * features/s390x-linux64v1.c: Rebuild.
3138 * features/s390x-linux64v2.c: Rebuild.
3139 * features/tic6x-c62x-linux.c: Rebuild.
3140 * features/tic6x-c62x.c: Rebuild.
3141 * features/tic6x-c64x-linux.c: Rebuild.
3142 * features/tic6x-c64x.c: Rebuild.
3143 * features/tic6x-c64xp-linux.c: Rebuild.
3144 * features/tic6x-c64xp.c: Rebuild.
3145
826f0041
TT
31462012-07-27 Tom Tromey <tromey@redhat.com>
3147
3148 * c-exp.y (classify_name): Avoid assignment in condition.
3149
84552b16
PA
31502012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3151
3152 * amd64-windows-tdep.c: Include "frame.h".
3153 (amd64_windows_skip_trampoline_code): New function.
3154 (amd64_windows_init_abi): Add trampoline registration.
3155
a8a64aa8
YQ
31562012-07-27 Yao Qi <yao@codesourcery.com>
3157
3158 * tracepoint.c (cur_traceframe_number): Remove.
3159 (set_tfile_traceframe): Remove.
3160 (tfile_trace_find, tfile_fetch_registers): Update callers.
3161 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3162 (tfile_open, tfile_trace_find): Likewise.
3163
d99067cb
YQ
31642012-07-27 Yao Qi <yao@codesourcery.com>
3165
3166 * thread.c (switch_to_thread): Don't call registers_changed.
3167
f2e8016f
TT
31682012-07-26 Tom Tromey <tromey@redhat.com>
3169
f782ad9b
AS
3170 * Makefile.in (SFILES): Remove objc-exp.y.
3171 (YYFILES): Remove objc-exp.c.
3172 (YYOBJ): Remove objc-exp.o.
3173 (local-maintainer-clean): Don't mention objc-exp.c.
3174 * c-exp.y: Include objc-lang.h.
3175 (%union) <class>: New field.
3176 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3177 (exp): Clone subscript production for OBJC_LBRAC. Add various
3178 Objective C productions.
3179 (msglist, msgarglist, msgarg): New productions.
3180 (array_mod, func_mod, operator): Clone productions for
3181 OBJC_LBRAC.
3182 (parse_string_or_char): Handle '@' strings.
3183 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3184 (classify_name): Check la_name_of_this. Recognize ObjC class
3185 names.
3186 * objc-exp.y: Remove.
3187 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3188 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3189
f66713d2
JK
31902012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3191
3192 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3193
7cfe01b4
JK
31942012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3195
3196 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3197 and decrement.
3198
5ba19b4c
TT
31992012-07-26 Tom Tromey <tromey@redhat.com>
3200
3201 * copying.c: Rebuild.
3202 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3203 'no_class'.
3204
27618ce4
TT
32052012-07-26 Tom Tromey <tromey@redhat.com>
3206
3207 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3208 immediate_quit.
3209 (print_objfile_statistics): Likewise.
3210 (maintenance_print_symbols): Likewise.
3211 (maintenance_print_msymbols): Likewise.
3212 (maintenance_print_objfiles): Likewise.
3213 * psymtab.c (print_partial_symbols): Call QUIT.
3214 (maintenance_print_psymbols): Likewise. Don't modify
3215 immediate_quit.
3216 * copying.c (show_copying_command): Don't modify immediate_quit.
3217 (show_warranty_command): Likewise.
3218 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3219
dd3818c8
KS
32202012-07-26 Keith Seitz <keiths@redhat.com>
3221
3222 * linespec.c (linespec_lexer_lex_number): The input
3223 is also a valid number if the next character is a comma
3224 or colon.
3225
23a80689
JB
32262012-07-26 Joel Brobecker <brobecker@adacore.com>
3227
3228 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3229 configure options.
3230
29f77997
TG
32312012-07-26 Tristan Gingold <gingold@adacore.com>
3232
3233 * machoread.c: Include gdb_bfd.h.
3234
a55c1f32
TG
32352012-07-26 Tristan Gingold <gingold@adacore.com>
3236
3237 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3238 offset.
3239
56eb65bd
SP
32402012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3241
3242 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3243 SIZE to size_t.
3244 (dwarf2_evaluate_loc_desc): Likewise.
3245 (dwarf2_loc_desc_needs_frame): Likewise.
3246 (locexpr_describe_location_1): Likewise.
3247 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3248 size_t.
3249 (struct dwarf2_loclist_baton): Likewise.
3250 * dwarf2read.c (struct dwarf_block): Likewise.
3251 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3252 (decode_locdesc): Expand SIZE and I to size_t.
3253
aec8845c
JK
32542012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3255
3256 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3257
33d7655b
JB
32582012-07-25 Joel Brobecker <brobecker@adacore.com>
3259
3260 * doublest.c (convert_doublest_to_floatformat): If the exponent
3261 is too small, treat the value as zero. If the exponent is too
3262 large, treat the value as infinity.
3263
a22d44ff
JB
32642012-07-25 Joel Brobecker <brobecker@adacore.com>
3265
3266 * configure.ac: Add --enable-lmcheck configure option.
3267 * configure: Regenerate.
3268
d6b28940
TT
32692012-07-25 Tom Tromey <tromey@redhat.com>
3270
f782ad9b
AS
3271 * NEWS: Mention maint info bfds.
3272 * gdb_bfd.c (all_bfds): New global.
3273 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3274 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3275 New functions.
d6b28940 3276
6e73ba20
RC
32772012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3278
3279 * configure.tgt: Add v850*-*-rtems*.
3280
d560eebd
TT
32812012-07-25 Tom Tromey <tromey@redhat.com>
3282
3283 * macrotab.c (macro_bcache_str): Remove cast.
3284
d7cbec71
HZ
32852012-07-25 Hui Zhu <hui_zhu@mentor.com>
3286
3287 * linespec.c (linespec_lexer_lex_number): Update comments,
3288 change the return and add check to make sure the input is
3289 the decimal numbers.
3290 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3291 false, call linespec_lexer_lex_string.
3292
882f447f
TT
32932012-07-24 Tom Tromey <tromey@redhat.com>
3294
3295 * symfile.c (symbol_file_add): Don't open BFD twice.
3296
53ab4066 32972012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3298
3299 * breakpoint.c (create_breakpoint): Store condition for pending
3300 breakpoints.
3301
108fb0f7
AS
33022012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3303
3304 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3305 (m68k_return_value): Handle complex types like structures.
3306 (m68k_svr4_return_value): Likewise.
3307
1634dcbe
JK
33082012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3309
3310 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3311 parameters to bfd_get_section_name.
3312
e2d12c21
YQ
33132012-07-24 Yao Qi <yao@codesourcery.com>
3314
3315 * cli/cli-setshow.c: Handle case 'var_uinteger'
3316 and 'var_zuninteger' together. Handle case 'var_integer' and
3317 'var_zinteger' together.
3318
64b92e45
KS
33192012-07-23 Keith Seitz <keiths@redhat.com>
3320
3321 * linespec.c (convert_linespec_to_sal): Don't add
3322 any symbols to the result vector if symbol_to_sal
3323 returns zero.
3324
0f5f4ffe
KS
33252012-07-23 Keith Seitz <keiths@redhat.com>
3326
3327 * linespec.c (decode_objc): Record the function name
3328 in the linespec.
3329
da1cc82f
TT
33302012-07-23 Tom Tromey <tromey@redhat.com>
3331
3332 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3333 counting.
3334 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3335 (map_vmap): Acquire a reference to the BFD.
3336
6c18f3e0
SP
33372012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3338
3339 * p-valprint.c (pascal_object_print_value): Replace potentially
3340 unsafe alloca with xmalloc/xfree.
3341 * valops.c (search_struct_method): Likewise.
3342
695c3173
TT
33432012-07-23 Tom Tromey <tromey@redhat.com>
3344
3345 * solib-svr4.c (enable_break): Update.
3346 * bfd-target.h (target_bfd_reopen): Update documentation.
3347
08d2cd74
TT
33482012-07-23 Tom Tromey <tromey@redhat.com>
3349
3350 * symfile.c (separate_debug_file_exists): Update.
3351 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3352 (reread_symbols): Update.
3353 * elfread.c (build_id_verify): Update.
3354 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3355 bfd_open_maybe_remote.
3356
596f7d67
TT
33572012-07-23 Tom Tromey <tromey@redhat.com>
3358
3359 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3360
8ac244b4
TT
33612012-07-23 Tom Tromey <tromey@redhat.com>
3362
3363 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3364 and 'abfd'.
3365 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3366 and 'abfd'.
3367 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3368 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3369 'abfd'.
3370 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3371 * objfiles.c (allocate_objfile): Acquire a new reference.
3372 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3373 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3374 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3375 a cleanup for 'nbfd'.
3376 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3377 for 'nbfd'.
3378 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3379 make a cleanup for 'abfd'.
3380 (symbol_file_add): Make a BFD cleanup.
3381
64c31149
TT
33822012-07-23 Tom Tromey <tromey@redhat.com>
3383
3384 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3385 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3386 * corelow.c (core_open): Use gdb_bfd_fopen.
3387 * dsrec.c (load_srec): Use gdb_bfd_openr.
3388 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3389 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3390 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3391 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3392 (gdb_bfd_fdopenr): New functions.
3393 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3394 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3395 (gdb_bfd_fdopenr): Declare.
3396 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3397 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3398 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3399 gdb_bfd_openr_next_archived_file.
3400 (macho_check_dsym): Use gdb_bfd_openr.
3401 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3402 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3403 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3404 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3405 gdb_bfd_openr.
3406 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3407 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3408 gdb_bfd_openr_next_archived_file.
3409 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3410 Use gdb_bfd_openr.
3411 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3412 gdb_bfd_openr.
3413 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3414 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3415 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3416 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3417 (symfile_bfd_open): Use gdb_bfd_fopen.
3418 (generic_load): Use gdb_bfd_openr.
3419 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3420
520b0001
TT
34212012-07-23 Tom Tromey <tromey@redhat.com>
3422
3423 * bfd-target.c (target_bfd_reopen): Update.
3424 * cli/cli-dump.c (bfd_openr_with_cleanup)
3425 (bfd_openw_with_cleanup): Update.
3426 * corelow.c (core_open): Update.
3427 * dsrec.c (load_srec): Update.
3428 * exec.c (exec_file_attach): Update.
3429 * gcore.c (create_gcore_bfd): Update.
3430 * gdb_bfd.c (gdb_bfd_ref): Return void.
3431 (gdb_bfd_open): Update.
3432 * gdb_bfd.h (gdb_bfd_ref): Return void.
3433 Update comments.
3434 * jit.c (jit_bfd_try_read_symtab): Update.
3435 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3436 * machoread.c (macho_symfile_read_all_oso): Update.
3437 (macho_check_dsym): Update.
3438 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3439 * remote-m32r-sdi.c (m32r_load): Update.
3440 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3441 * rs6000-nat.c (add_vmap): Update.
3442 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3443 Update.
3444 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3445 * solib-spu.c (spu_bfd_open): Update.
3446 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3447 * spu-linux-nat.c (spu_bfd_open): Update.
3448 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3449 (generic_load): Update.
3450 * windows-nat.c (windows_make_so): Update.
3451
2322ff16
SP
34522012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3453
3454 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3455
3def0b36
PA
34562012-07-20 Jeff Kenton <jkenton@tilera.com>
3457
3458 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3459 SIGTRAMP_FRAME unwinding.
3460
e615022a
DE
34612012-07-20 Doug Evans <dje@google.com>
3462
3463 * NEWS: Document new options "set/show use-deprecated-index-sections",
3464 and delete reference to --use-deprecated-index-sections.
3465 * symfile.h (use_deprecated_index_sections): Delete.
3466 * dwarf2read.c (use_deprecated_index_sections): Make static.
3467 (read_index_from_section): Update wording of how to load
3468 deprecated index sections.
3469 (_initialize_dwarf2_read): New options
3470 "set/show use-deprecated-index-sections".
3471 * main.c (captured_main): Delete --use-deprecated-index-sections.
3472
64776a0b
PA
34732012-07-20 Pedro Alves <palves@redhat.com>
3474
3475 PR threads/11692
3476 PR gdb/12203
3477
3478 * infrun.c (handle_inferior_event) <new thread>: Don't special
3479 case minus_one_ptid.
3480 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3481 * linux-thread-db.c (thread_get_info_callback): Don't return early
3482 if the thread is zombie.
3483 (thread_from_lwp): Change return type to void. Rewrite stale
3484 comment.
3485 (attach_thread): Don't return early if the thread is zombie,
3486 instead set its "dying" flag.
3487 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3488 (find_new_threads_callback): Don't return early if the thread is
3489 zombie.
3490
09826ec5
PA
34912012-07-20 Pedro Alves <palves@redhat.com>
3492
3493 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3494 * target.c (target_wait): Likewise.
3495 (str_comma_list_concat_elem, do_option, target_options_to_string):
3496 New functions.
3497 * target.h (target_options_to_string): Declare.
3498
f7a35f02
TT
34992012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 Tom Tromey <tromey@redhat.com>
3501
3502 * dwarf2read.c (dwarf_decode_macros)
3503 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3504 DW_MACRO_GNU_transparent_include_alt>: New cases.
3505 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3506 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3507
b81e1ee0
TT
35082012-07-20 Tom Tromey <tromey@redhat.com>
3509
3510 * dwarf2read.c (try_open_dwo_file): Don't call
3511 gdb_bfd_stash_filename.
3512
99c1624c
PA
35132012-07-20 Pedro Alves <palves@redhat.com>
3514
3515 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3516 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3517 (i386_process_record): Tweak description comments.
3518
4ffa4fc7
PA
35192012-07-20 Pedro Alves <palves@redhat.com>
3520
3521 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3522 (i386_process_record): Use record_read_memory.
3523 * record.c (record_read_memory): New function.
3524 (record_arch_list_add_mem, record_exec_insn): Use
3525 record_read_memory.
3526 * record.h (record_read_memory): Declare.
3527
c24343e2
YQ
35282012-07-20 Yao Qi <yao@codesourcery.com>
3529
3530 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3531 NULL for xfree.
3532
90f47860
PA
35332012-07-19 Pedro Alves <palves@redhat.com>
3534
3535 * record.c (record_resume): Ask the target beneath to report all
3536 signals.
3537
01093045
DE
35382012-07-19 Doug Evans <dje@google.com>
3539
3540 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3541 there's no section at address zero.
3542 (dwarf2_record_block_ranges): Ditto.
3543
a7c3d162
YQ
35442012-07-19 Yao Qi <yao@codesourcery.com>
3545
3546 * command.h, remote.c: Fix a typo in comment.
3547
608b4967
TT
35482012-07-19 Tom Tromey <tromey@redhat.com>
3549
3550 PR exp/13206:
3551 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3552 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3553 OP_DECLTYPE>: New cases.
3554 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3555 (type_exp): Add new productions.
3556 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3557 and decltype.
3558 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3559 New case.
3560 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3561 OP_DECLTYPE>: New case.
3562 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3563 New case.
3564 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3565 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3566
274b54d7
TT
35672012-07-19 Tom Tromey <tromey@redhat.com>
3568
3569 * c-exp.y (enum token_flags): New.
3570 (struct token) <cxx_only>: Remove.
3571 <flags>: New field.
3572 (tokentab3, tokentab2, ident_tokens): Update.
3573 (lex_one_token): Update. Handle FLAG_SHADOW.
3574
9eaf6705
TT
35752012-07-19 Tom Tromey <tromey@redhat.com>
3576
3577 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3578 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3579 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3580 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3581 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3582 type_exp production where appropriate.
3583 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3584 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3585 <UNOP_MEMVAL_TYPE>: New case.
3586 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3587 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3588 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3589 <UNOP_MEMVAL_TYPE>: New case.
3590 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3591 UNOP_REINTERPRET_CAST>: Update.
3592 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3593 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3594 UNOP_REINTERPRET_CAST>: Update.
3595 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3596 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3597 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3598 constants.
3599
6ace3df1
YQ
36002012-07-19 Yao Qi <yao@codesourcery.com>
3601 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3604 and case 'var_optional_filename' together.
3605 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3606 instead of add_setshow_optional_filename_cmd for setshow command
3607 'args'. Set completer for 'set args'.
3608
48faced0
DE
36092012-07-18 Doug Evans <dje@google.com>
3610
3611 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3612 * common/gdb_vecs.c: New file, contents from utils.c.
3613 * common/host-defs.h: New file, contents from defs.h.
3614 * utils.h: New file, contents from defs.h.
3615 * defs.h: Move all declarations of objects defined in utils.c
3616 to utils.h (except QUIT() and related).
3617 #include "utils.h", "host-defs.h".
3618 * probe.h (probe_p): Move here from gdb_vecs.h.
3619 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3620 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3621 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3622 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3623 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3624 (COMMON_OBS): Add gdb_vecs.o.
3625 (gdb_vecs.o): New rule.
3626
66f1999b
KS
36272012-07-18 Keith Seitz <keiths@redhat.com>
3628
3629 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3630 parameter. If non-zero, use SYMNAME as the canonical name
3631 for the SaL.
3632 Update all callers.
3633 (convert_linespec_to_sals): Use add_sal_to_sals for
3634 expressions, too.
3635 (decode_line_full): No need to "fill in missing canonical names"
3636 anymore. Simply make cleanups for the allocated names.
3637
5d94e27b
KS
36382012-07-18 Keith Seitz <keiths@redhat.com>
3639
3640 * linespec.c (struct linespec): Constify expression,
3641 source_filename, function_name, and label_name.
3642 (symbol_not_found_error): Make all parameters const.
3643 (linespec_parser_delete): No need to check for NULL
3644 when using xfree. Cast const char * to char * for xfree.
3645
af4908ba
KS
36462012-07-18 Keith Seitz <keiths@redhat.com>
3647
3648 * breakpoint.c (invalid_thread_id_error): New function.
3649 (find_condition_and_thread): Use invalid_thread_id_error.
3650 (watch_command_1): Likewise.
3651
853254db
TT
36522012-07-18 Tom Tromey <tromey@redhat.com>
3653
3654 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3655 * contrib/cc-with-tweaks.sh: New file.
3656
2ec9a5e0
TT
36572012-07-18 Tom Tromey <tromey@redhat.com>
3658
3659 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3660 (locate_dwz_sections): Recognize .gdb_index.
3661 (create_cus_from_index_list): New function.
3662 (create_cus_from_index): Use it. Handle .dwz data.
3663 (read_index_from_section): New function, extracted from
3664 dwarf2_read_index.
3665 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3666 if needed.
3667
36586728
TT
36682012-07-18 Tom Tromey <tromey@redhat.com>
3669
3670 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3671 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3672 <is_dwz>: New field.
3673 (struct dwz_file): New.
3674 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3675 (locate_dwz_sections, dwarf2_get_dwz_file)
3676 (get_abbrev_section_for_cu): New functions.
3677 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3678 (read_and_check_type_unit_head): Add abbrev_section argument.
3679 (create_debug_types_hash_table): Update.
3680 (init_cutu_and_read_dies): Use proper abbrev section.
3681 (init_cutu_and_read_dies_no_follow): Likewise.
3682 (set_partial_user): Do nothing if PST==NULL.
3683 (read_comp_units_from_section): New function.
3684 (create_all_comp_units): Use it.
3685 (scan_partial_symbols, partial_die_parent_scope): Update.
3686 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3687 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3688 (find_partial_die): Add offset_in_dwz argument. Update.
3689 (guess_partial_die_structure_name, fixup_partial_die): Update.
3690 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3691 DW_FORM_GNU_strp_alt.
3692 (read_indirect_string_from_dwz): New function.
3693 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3694 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3695 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3696 (follow_die_offset): Add offset_in_dwz argument.
3697 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3698 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3699 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3700 Handle new macro forms.
3701 (dwarf_decode_macros): Update.
3702 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3703 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3704 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3705 (create_debug_types_hash_table): Use correct abbrev section.
3706 (get_debug_line_section): New function.
3707 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3708 (process_full_comp_unit): Pass 'required' argument to
3709 end_symtab_get_static_block.
3710 * buildsym.h (end_symtab_get_static_block): Update.
3711 * buildsym.c (end_symtab_get_static_block): Add 'required'
3712 argument.
3713 (end_symtab, end_expandable_symtab): Update.
3714
4bf44c1c
TT
37152012-07-18 Tom Tromey <tromey@redhat.com>
3716
3717 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3718 (pagesize): Remove.
3719 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3720 (zlib_decompress_section): Remove.
3721 (dwarf2_read_section): Use gdb_bfd_map_section.
3722 (munmap_section_buffer): Remove.
3723 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3724 munmap_section_buffer.
3725 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3726 (struct gdb_bfd_section_data): New.
3727 (free_one_bfd_section): New function.
3728 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3729 (get_section_descriptor, zlib_decompress_section)
3730 (gdb_bfd_map_section): New functions.
3731 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3732
bb397797
TT
37332012-07-18 Tom Tromey <tromey@redhat.com>
3734
3735 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3736
6ec53d05
TT
37372012-07-18 Tom Tromey <tromey@redhat.com>
3738
3739 * gdb_bfd.c (struct gdb_bfd_data): New.
3740 (gdb_bfd_cache): New global.
3741 (struct gdb_bfd_cache_search): New.
3742 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3743 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3744 * gdb_bfd.h (gdb_bfd_open): Declare.
3745
f9a062ff
TT
37462012-07-18 Tom Tromey <tromey@redhat.com>
3747
3748 * utils.c (make_cleanup_bfd_unref): Rename from
3749 make_cleanup_bfd_close.
3750 * defs.h (make_cleanup_bfd_unref): Rename from
3751 make_cleanup_bfd_close.
3752 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3753 (bfd_openw_with_cleanup): Update.
3754 * corelow.c (core_open): Update.
3755 * dsrec.c (load_srec): Update.
3756 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3757 * remote-m32r-sdi.c (m32r_load): Update.
3758 * remote-mips.c (mips_load_srec): Update.
3759 (pmon_load_fast): Update.
3760 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3761 Update.
3762 (darwin_bfd_open): Update.
3763 * solib.c (solib_bfd_fopen): Update.
3764 * symfile-mem.c (symbol_file_add_from_memory): Update.
3765 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3766 (symfile_bfd_open): Update.
3767 (generic_load): Update.
3768
d6ad71ba
TT
37692012-07-18 Tom Tromey <tromey@redhat.com>
3770
3771 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3772 (pmon_load_fast): Likewise.
3773 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3774 (m32r_upload_command): Likewise.
3775 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3776 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3777 Use make_cleanup_bfd_close.
3778
a4453b7e
TT
37792012-07-18 Tom Tromey <tromey@redhat.com>
3780
3781 * symfile.c (symfile_bfd_open): Don't copy name. Call
3782 gdb_bfd_stash_filename.
3783 (load_command): Open the new BFD before freeing the old.
3784 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3785 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3786 Call gdb_bfd_stash_filename.
3787 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3788 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3789 gdb_bfd_stash_filename.
3790 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3791 Free found_pathname.
3792 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3793 gdb_bfd_stash_filename.
3794 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3795 * machoread.c (macho_add_oso_symfile): Call
3796 gdb_bfd_stash_filename.
3797 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3798 gdb_bfd_stash_filename.
3799 (macho_check_dsym): Don't copy filename. Call
3800 gdb_bfd_stash_filename.
3801 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3802 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3803 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3804 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3805 * exec.c (exec_close): Don't free the BFD's filename.
3806 (exec_file_attach): Don't copy the filename. Call
3807 gdb_bfd_stash_filename.
3808 * corelow.c (core_close): Don't free the BFD's filename.
3809 (core_open): Call gdb_bfd_stash_filename.
3810 * corefile.c (reopen_exec_file): Remove #if 0 code.
3811 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3812 pathname.
3813 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3814
cbb099e8
TT
38152012-07-18 Tom Tromey <tromey@redhat.com>
3816
3817 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3818 gdb_bfd_unref.
3819 (free_dwo_file): Use gdb_bfd_unref.
3820 * cli/cli-dump.c: Include gdb_bfd.h.
3821 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3822 (bfd_openr_with_cleanup): Likewise.
3823 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3824 gdb_bfd_unref.
3825 * utils.c: Include gdb_bfd.h.
3826 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3827 * symfile.c: Include gdb_bfd.h.
3828 (separate_debug_file_exists): Use gdb_bfd_unref.
3829 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3830 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3831 (generic_load): Use gdb_bfd_ref.
3832 (reread_symbols): Use gdb_bfd_unref.
3833 * symfile-mem.c: Include gdb_bfd.h.
3834 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3835 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3836 * solib.c: Include gdb_bfd.h.
3837 (solib_bfd_fopen): Use gdb_bfd_ref.
3838 (solib_bfd_open): Use gdb_bfd_unref.
3839 (free_so_symbols): Use gdb_bfd_unref.
3840 (reload_shared_libraries_1): Use gdb_bfd_unref.
3841 * solib-spu.c: Include gdb_bfd.h.
3842 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3843 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3844 gdb_bfd_unref.
3845 * solib-frv.c: Include gdb_bfd.h.
3846 (enable_break2): Use gdb_bfd_unref.
3847 * solib-dsbt.c: Include gdb_bfd.h.
3848 (enable_break2): Use gdb_bfd_unref.
3849 * solib-darwin.c: Include gdb_bfd.h.
3850 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3851 gdb_bfd_unref.
3852 (darwin_bfd_open): Use gdb_bfd_unref.
3853 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3854 * remote-mips.c: Include gdb_bfd.h.
3855 (mips_load_srec): Use gdb_bfd_ref.
3856 (pmon_load_fast): Use gdb_bfd_ref.
3857 * remote-m32r-sdi.c: Include gdb_bfd.h.
3858 (m32r_load): Use gdb_bfd_ref.
3859 * record.c: Include gdb_bfd.h.
3860 (record_save_cleanups): Use gdb_bfd_unref.
3861 (cmd_record_save): Use gdb_bfd_unref.
3862 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3863 gdb_bfd_unref.
3864 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3865 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3866 * objfiles.c: Include gdb_bfd.h.
3867 (free_objfile): Use gdb_bfd_unref.
3868 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3869 gdb_bfd.c.
3870 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3871 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3872 (macho_check_dsym): Likewise.
3873 * m32r-rom.c: Include gdb_bfd.h.
3874 (m32r_load): Use gdb_bfd_ref.
3875 (m32r_upload_command): Use gdb_bfd_ref.
3876 * jit.c: Include gdb_bfd.h.
3877 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3878 * gdb_bfd.h: New file.
3879 * gdb_bfd.c: New file.
3880 * gcore.c: Include gdb_bfd.h.
3881 (create_gcore_bfd): Use gdb_bfd_ref.
3882 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3883 (gcore_command): Use gdb_bfd_unref.
3884 * exec.c: Include gdb_bfd.h.
3885 (exec_close): Use gdb_bfd_unref.
3886 (exec_close_1): Use gdb_bfd_unref.
3887 (exec_file_attach): Use gdb_bfd_ref.
3888 * elfread.c: Include gdb_bfd.h.
3889 (build_id_verify): Use gdb_bfd_unref.
3890 * dsrec.c: Include gdb_bfd.h.
3891 (load_srec): Use gdb_bfd_ref.
3892 * corelow.c: Include gdb_bfd.h.
3893 (core_close): Use gdb_bfd_unref.
3894 (core_open): Use gdb_bfd_ref.
3895 * bfd-target.c: Include gdb_bfd.h.
3896 (target_bfd_xclose): Use gdb_bfd_unref.
3897 (target_bfd_reopen): Use gdb_bfd_ref.
3898 * Makefile.in (SFILES): Add gdb_bfd.c.
3899 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3900 (COMMON_OBS): Add gdb_bfd.o.
3901
ed1d1739
KS
39022012-07-18 Keith Seitz <keiths@redhat.com>
3903
3904 * breakpoint.c (find_condition_and_thread): Initialize
3905 TASK and REST.
3906 (create_breakpiont): find_condition_and_thread will now
3907 initialize COND_STRING, THREAD, and REST (and TASK).
3908 (addr_string_to_sals): Likewise.
3909
eab402df
PA
39102012-07-18 Pedro Alves <palves@redhat.com>
3911
3912 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3913 Pull the single step breakpoints out of the target.
3914
2b963b68
SDJ
39152012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3916
3917 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3918 * stap-probe.c (compile_probe_arg): Likewise.
3919
6bac7473
SDJ
39202012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3921
3922 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3923 (elf_compile_to_ax): Likewise.
3924 * infrun.c (insert_exception_resume_from_probe): Likewise.
3925 (check_exception_resume): Remove `objfile' variable.
3926 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3927 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3928 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3929 (compare_entries): Rename to...
3930 (compare_probes): ...this. Adjust function to work with
3931 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3932 respectively.
3933 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3934 `VEC (probe_p) *'.
3935 (print_ui_out_info): Adjust argument to be `struct probe *'.
3936 (info_probes_for_ops): Adjust internal computations to use
3937 `VEC (probe_p) *'.
3938 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3939 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3940 gen_info_probes_table_values>: Remove `objfile' argument.
3941 (struct probe) <objfile>: New field.
3942 (find_probe_by_pc): Remove `objfile' argument.
3943 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3944 (stap_get_probe_argument_count): Likewise.
3945 (stap_get_arg): Likewise.
3946 (stap_evaluate_probe_argument): Likewise.
3947 (stap_compile_to_ax): Likewise.
3948 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3949 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3950 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3951 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3952 sym_compile_to_ax>: Likewise.
3953
3347eb1a 39542012-07-18 Terry Guo <terry.guo@arm.com>
3955
3956 PR 14329
3957 * defs.h (GDB_MI_MSG_WIDTH): New.
3958 * ser_base (ser_base_read_error_fd): New function.
3959 (do_ser_base_readchar): Poll error file descriptor as well as
3960 standard output.
f782ad9b 3961 (generic_readchar): Refactor error handling.
3347eb1a 3962
80c8d323
JB
39632012-07-18 Joel Brobecker <brobecker@adacore.com>
3964
3965 * NEWS: Create a new section for the next release branch.
3966 Rename the section of the current branch, now that it has
3967 been cut.
3968
b45a0664 39692012-07-18 Joel Brobecker <brobecker@adacore.com>
3970
3971 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3972 * version.in: Bump version to 7.5.50.20120718-cvs.
3973
09cf2b22
KS
39742012-07-17 Keith Seitz <keiths@redhat.com>
3975
3976 * linespec.c (linespec_parse_line_offset): Make parameter
3977 const.
3978
8f043999
JK
39792012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 PR 11914
3982 * f-valprint.c (info_common_command): New variable frame_id.
3983 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3984 * printcmd.c (print_variable_and_value): Extend function comment.
3985 Add comment for invalidated FRAME.
3986 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3987 FI form FRAME_ID after each print_frame_local_vars.
3988 (struct print_variable_and_value_data): Change frame to frame_id.
3989 (do_print_variable_and_value): New variable frame, initialize it from
3990 p->frame_id. Add comment for invalidated FRAME.
3991 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3992 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3993 for invalidated FRAME.
3994
ae5e0686
MK
39952012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3996 Pedro Alves <palves@redhat.com>
3997
3998 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3999 loop.
4000
5049c5be
TT
40012012-07-16 Tom Tromey <tromey@redhat.com>
4002
4003 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4004
2908cac6
DE
40052012-07-15 Doug Evans <dje@google.com>
4006
094b34ac
DE
4007 * dwarf2read.c (stmt_list_hash): New struct.
4008 (type_unit_group): Embed "per_cu" member, remove pointer.
4009 New union member "t", move member "tus" into it, all uses updated.
4010 New member "hash", replaces member "line_offset, all uses updated.
4011 (quick_file_names): Replace member "offset" with "hash", all uses
4012 updated.
4013 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4014 (hash_file_name_entry, eq_file_name_entry): Call them.
4015 (hash_type_unit_group, eq_type_unit_group): Ditto.
4016 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4017 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4018 (dw2_get_file_names): Update.
4019 (create_type_unit_group): Replace "per_cu" arg with "cu".
4020 All callers updated. Fix "quick" (.gdb_index) handling.
4021 (get_type_unit_group): Replace "per_cu" arg with "cu".
4022 All callers updated.
4023 (build_type_unit_groups): Don't reset tu_stats.
4024
2908cac6
DE
4025 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4026 "tab_cur_size". Change member "tab" to be a htab_t.
4027 (create_filename_seen_cache): Update.
4028 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4029 (filename_seen): Update.
4030
a2b6eff5
DE
40312012-07-13 Doug Evans <dje@google.com>
4032
4033 * symtab.c (filename_seen): Update comment.
4034
4359dff1
JK
40352012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4036 Doug Evans <dje@google.com>
4037
4038 * buildsym.c (end_symtab_1): Split it to ...
4039 (end_symtab_get_static_block): ... this ...
4040 (end_symtab_from_static_block): ... and this function.
4041 (end_symtab, end_expandable_symtab): Call them.
4042 * buildsym.h (end_symtab_get_static_block)
4043 (end_symtab_from_static_block): New declarations.
4044 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4045 Set its valid CU ranges.
4046
a24f71ab
JK
40472012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4048
4049 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4050 DW_OP_GNU_parameter_ref.
4051
d76b7dbc
JK
40522012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4053
4054 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4055 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4056
9fdc877b
DE
40572012-07-13 Doug Evans <dje@google.com>
4058
4059 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4060 (filename_seen_cache): New struct.
4061 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4062 (create_filename_seen_cache): New function.
4063 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4064 (filename_seen): Delete arg "first". New arg "cache". All callers
4065 updated.
4066 (output_source_filename_data): New struct.
4067 (output_source_filename): Delete arg "first". New arg "data".
4068 All callers updated.
4069 (sources_info): Delete local "first". New locals "data", "cleanups".
4070 Rewrite to use filename_seen_cache.
4071 (add_partial_filename_data): Delete member "first". New member
4072 "filename_seen_cache". All uses updated.
4073 (make_source_files_completion_list): Rewrite to use
4074 filename_seen_cache.
4075
f80c6f3f
DE
40762012-07-12 Doug Evans <dje@google.com>
4077
4078 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4079
0bfa869d
DE
40802012-07-10 Doug Evans <dje@google.com>
4081
f4dc4d17
DE
4082 PR gdb/13498
4083 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4084 all_type_unit_groups, type_unit_groups, tu_stats.
4085 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4086 All uses updated. Add type_unit_group to union "s".
4087 (type_unit_group): New struct.
4088 (IS_TYPE_UNIT_GROUP): New macro.
4089 (abbrev_table): Delete unused member "section".
4090 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4091 (dw2_get_cu): Assert not used with type_unit_group.
4092 (dw2_get_primary_cu): New function.
4093 (dw2_build_type_unit_groups_reader): New function.
4094 (dw2_build_type_unit_groups): New function.
4095 (dw2_get_file_names): Assert not called on type units.
4096 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4097 Redo loop to iterate over type unit groups instead of type units.
4098 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4099 (read_abbrev_offset): New function.
4100 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4101 updated.
4102 (create_partial_symtab): New function.
4103 (process_psymtab_comp_unit_reader): Assert not used with type units.
4104 Call create_partial_symtab.
4105 (process_psymtab_type_unit): Delete.
4106 (hash_type_unit_group, eq_type_unit_group): New functions.
4107 (allocate_type_unit_groups_table): New function.
4108 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4109 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4110 (create_type_unit_group, get_type_unit_group): New functions.
4111 (tu_abbrev_offset): New struct.
4112 (sort_tu_by_abbrev_offset): New function.
4113 (add_type_unit_group_to_table): New function.
4114 (build_type_unit_groups): New function.
4115 (build_type_psymtabs_reader): New function.
4116 (build_type_psymtab_dependencies): New function.
4117 (build_type_psymtabs): Rewrite.
4118 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4119 is seen in a type unit.
4120 (process_queue): Move symtab expansion debugging printfs here.
4121 Call process_full_type_unit for type units.
4122 (compute_symtab_includes): Assert not called for type units.
4123 (process_cu_includes): Don't call compute_symtab_includes for
4124 type units.
4125 (process_full_type_unit): New function.
4126 (process_imported_unit_die): Flag an error if called for type units.
4127 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4128 updated. Assert not called for type units.
4129 (read_file_scope): Call dwarf2_start_symtab.
4130 (setup_type_unit_groups): New function.
4131 (read_type_unit_scope): Rewrite.
4132 (abbrev_table_read_table): Initialize abbrev_table->offset.
4133 (abbrev_table_free_cleanup): New function.
4134 (dwarf2_start_symtab): New function.
4135 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4136 * buildsym.c (finish_block_internal): New arg "expandable".
4137 All callers updated.
4138 (start_symtab): Move most contents to ...
4139 (restart_symtab): ... here. New function.
4140 (reset_symtab_globals): New function.
4141 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4142 Call reset_symtab_globals.
4143 (end_symtab, end_expandable_symtab): New functions.
4144 (set_missing_symtab, augment_type_symtab): New functions.
4145 * buildsym.h (end_expandable_symtab): Declare.
4146 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4147 * psympriv.h (struct partial_symtab): New member "anonymous".
4148 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4149 anonymous psymtabs.
4150 (read_psymtabs_with_filename): Ditto.
4151 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4152 (expand_symtabs_matching_via_partial): Ditto.
4153 (dump_psymtab): Update.
0bfa869d
DE
4154 * dictionary.c (dict_add_pending): New function.
4155 * dictionary.h (dict_add_pending): Declare.
4156
45e58e77
DE
41572012-07-09 Doug Evans <dje@google.com>
4158
b74db436
DE
4159 * buildsym.c (start_subfile): Remove unnecessary check for
4160 name == NULL.
4161
fd55216c
DE
4162 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4163
6721b2ec
DE
4164 * dwarf2read.c (load_full_type_unit): Simplify.
4165
b4dd5633
DE
4166 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4167 to struct signatured_type **. All uses updated.
4168
45e58e77
DE
4169 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4170 All callers updated.
4171
e314d629
TT
41722012-07-09 Tom Tromey <tromey@redhat.com>
4173
4174 * c-exp.y (check_parameter_typelist): New function.
4175 (parameter_typelist): Call it.
4176 * eval.c (make_params): Handle '(void)' case.
4177 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4178 '(void)' case.
4179
aa7c7447
JK
41802012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 * common/linux-ptrace.c: Include gdb_assert.h.
4183 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4184 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4185 stdint.h.
4186 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4187 functions.
4188 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4189 * linux-nat.c (linux_child_post_attach)
4190 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4191
889003ed
JK
41922012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4193
4194 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4195 nptl <2.7 bug workaround for core files.
4196
da559b09
JK
41972012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4198
4199 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4200 clearing.
4201 (save_siginfo): Remove.
4202 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4203 call.
4204 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4205 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4206 * linux-nat.h (struct lwp_info): Remove field siginfo.
4207
f865ee35
JK
42082012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4209
4210 Code cleanup for the next patch.
4211 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4212 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4213 call for it.
4214 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4215 (ia64_linux_stopped_data_address):
4216 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4217 the return value.
4218 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4219 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4220 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4221 call for it.
4222
76b83c51
JK
42232012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4224
4225 PR 14321
4226 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4227 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4228
a6fb9c08
TT
42292012-07-06 Tom Tromey <tromey@redhat.com>
4230
4231 * c-exp.y (DOTDOTDOT): New token.
4232 (func_mod, exp): Use parameter_typelist.
4233 (parameter_typelist): New production.
4234 (tokentab3): Add "..." token.
4235 * eval.c (make_params): Handle varargs.
4236 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4237 varargs.
4238
71918a86
TT
42392012-07-06 Tom Tromey <tromey@redhat.com>
4240
4241 PR exp/9608:
4242 * c-exp.y (%union) <tvec>: Change type.
4243 (func_mod): Now uses <tvec> type.
4244 (exp): Update for tvec change.
4245 (direct_abs_decl): Push the typelist.
4246 (func_mod): Return a typelist.
4247 (nonempty_typelist): Update for tvec change.
4248 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4249 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4250 * parse.c (pop_type_list): New function.
4251 (push_typelist): New function.
4252 (follow_types): Handle tp_function_with_arguments.
4253 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4254 (enum type_pieces) <tp_function_with_arguments>: New constant.
4255 (union type_stack_elt) <typelist_val>: New field.
4256 (push_typelist): Declare.
4257
fcde5961
TT
42582012-07-06 Tom Tromey <tromey@redhat.com>
4259
4260 * c-exp.y (%union) <type_stack>: New field.
4261 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4262 (ptr_operator_ts): New production.
4263 (ptype): Update.
4264 * parse.c (type_stack_reserve): New function.
4265 (check_type_stack_depth): Use it.
4266 (pop_type_stack, append_type_stack, push_type_stack)
4267 (get_type_stack, type_stack_cleanup): New functions.
4268 (follow_types): Handle tp_type_stack.
4269 (_initialize_parse): Simplify initialization.
4270 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4271 constant.
4272 (union type_stack_elt) <stack_val>: New field.
4273 (get_type_stack, append_type_stack, push_type_stack)
4274 (type_stack_cleanup): Declare.
4275
1a7d0ce4
TT
42762012-07-06 Tom Tromey <tromey@redhat.com>
4277
4278 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4279 Remove.
4280 (struct type_stack): New.
4281 * parse.c (type_stack, type_stack_size, type_stack_depth):
4282 Remove.
4283 (type_stack): New global.
4284 (parse_exp_in_context, check_type_stack_depth)
4285 (insert_into_type_stack, insert_type, push_type, push_type_int)
4286 (insert_type_address_space, pop_type, pop_type_int)
4287 (_initialize_parse): Update.
4288
16d01384
TT
42892012-07-06 Tom Tromey <tromey@redhat.com>
4290
4291 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4292 Remove %type.
4293
9bfc60bf
SP
42942012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4295
4296 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4297
d5161074
SP
42982012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4299 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4302 alloca with xmalloc/xfree.
4303
a74bc576
SP
43042012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4305
4306 * MAINTAINERS (Write After Approval): Add myself to the list.
4307
667e0a4b
DE
43082012-07-05 Doug Evans <dje@google.com>
4309
4310 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4311
34b536a8
HZ
43122012-07-05 Hui Zhu <hui_zhu@mentor.com>
4313
4314 * ax-gdb.c (cli/cli-utils.h): New include.
4315 (linespec.h): Ditto.
4316 (agent_eval_command_one): New function.
4317 (agent_command_1): Ditto.
4318 (agent_command): Call function agent_command_1.
4319 (agent_eval_command): Ditto.
4320 (_initialize_ax_gdb): Change help for "maint agent"
4321 and "maint agent-eval".
4322
e6f0bce7
HZ
43232012-07-05 Hui Zhu <hui_zhu@mentor.com>
4324
4325 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4326 * cli/cli-utils.c (check_for_argument): New function.
4327 * cli/cli-utils.h (check_for_argument): Ditto.
4328
1b3371b1
L
43292012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4330
4331 * NEWS: Mention x32 ABI support.
4332
23e2d720
L
43332012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4334
4335 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4336 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4337
4338 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4339 and pc_regnum_from_eax to -1. Update SP regnum from
4340 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4341 needed.
4342
4343 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4344 pc_regnum_from_eax.
4345
836bf454
JK
43462012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4347
4348 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4349 * dwarf2expr.h: Include gdbtypes.h.
4350 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4351 these forward declarations.
4352 (cu_offset, sect_offset): Move these ...
4353 * gdbtypes.h: Remove include dwarf2expr.h.
4354 (cu_offset, sect_offset): ... here.
4355
1e55e04f
L
43562012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4357
4358 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4359 (amd64_linux_sigtramp_code): This.
4360 (amd64_x32_linux_sigtramp_code): New.
4361 (LINUX_SIGTRAMP_LEN): Updated.
4362 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4363
7d0e21ad
JK
43642012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4367
8775fd2d
JK
43682012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4369
4370 * config.in: Regenerate.
4371 * configure: Regenerate.
4372 * configure.ac: Remove check for gnu/libc-version.h.
4373 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4374 gnu/libc-version.h.
4375 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4376 variables libc_version, libc_major and libc_minor. Replace sscanf by
4377 inferior_has_bug. Extend the comment.
4378
fcb44371
JK
43792012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4380
4381 * linux-thread-db.c (inferior_has_bug): New function.
4382 (thread_db_find_new_threads_silently): Return boolean as checked by
4383 inferior_has_bug, describe it in the comments.
4384 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4385 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4386 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4387 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4388 if UNTIL_NO_NEW,
4389
09406207
DE
43902012-07-02 Doug Evans <dje@google.com>
4391
0907af0c
DE
4392 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4393 related to queue management.
4394
09406207
DE
4395 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4396 instead of "debug dwarf2-die" in debugging printfs.
4397 (create_debug_info_hash_table_reader): Ditto.
4398 (create_debug_info_hash_table): Ditto.
4399 (init_dwo_file): Ditto.
4400 (init_cutu_and_read_dies): Add debugging printf.
4401 (init_cutu_and_read_dies_no_follow): Ditto.
4402 (process_psymtab_comp_unit_reader): Ditto.
4403
d3ce09f5
SS
44042012-07-02 Stan Shebs <stan@codesourcery.com>
4405
4406 Add target-side support for dynamic printf.
4407 * NEWS: Mention the additional style.
4408 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4409 (struct bp_location): New field cmd_bytecode.
4410 * breakpoint.c: Include format.h.
4411 (disconnected_dprintf): New global.
4412 (parse_cmd_to_aexpr): New function.
4413 (build_target_command_list): New function.
4414 (insert_bp_location): Call it.
4415 (remove_breakpoints_pid): Skip dprintf breakpoints.
4416 (print_one_breakpoint_location): Ditto.
4417 (dprintf_style_agent): New global.
4418 (dprintf_style_enums): Add dprintf_style_agent.
4419 (update_dprintf_command_list): Add agent case.
4420 (agent_printf_command): New function.
4421 (_initialize_breakpoint): Add new commands.
4422 * common/ax.def (printf): New bytecode.
4423 * ax.h (ax_string): Declare.
4424 * ax-gdb.h (gen_printf): Declare.
4425 * ax-gdb.c: Include cli-utils.h, format.h.
4426 (gen_printf): New function.
4427 (maint_agent_print_command): New function.
4428 (_initialize_ax_gdb): Add maint agent-printf command.
4429 * ax-general.c (ax_string): New function.
4430 (ax_print): Add printf disassembly.
4431 * Makefile.in (SFILES): Add format.c
4432 (COMMON_OBS): Add format.o.
4433 * common/format.h: New file.
4434 * common/format.c: New file.
4435 * printcmd.c: Include format.h.
4436 (ui_printf): Call parse_format_string.
4437 * remote.c (remote_state): New field breakpoint_commands.
4438 (PACKET_BreakpointCommands): New enum.
4439 (remote_breakpoint_commands_feature): New function.
4440 (remote_protocol_features): Add new BreakpointCommands entry.
4441 (remote_can_run_breakpoint_commands): New function.
4442 (remote_add_target_side_commands): New function.
4443 (remote_insert_breakpoint): Call it.
4444 (remote_insert_hw_breakpoint): Ditto.
4445 (_initialize_remote): Add new packet configuration for
4446 target-side breakpoint commands.
4447 * target.h (struct target_ops): New field
4448 to_can_run_breakpoint_commands.
4449 (target_can_run_breakpoint_commands): New macro.
4450 * target.c (update_current_target): Handle
4451 to_can_run_breakpoint_commands.
4452
2d7b58e8
JK
44532012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 Execute -ix and -iex only after system and user gdbinit files.
4456 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4457 processing down after gdbinit files.
4458
8690e634
JK
44592012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 Add fnmatch-gnu module.
4462 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4463 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4464 * gnulib/aclocal.m4: Regenerate.
4465 * gnulib/config.in: Regenerate.
4466 * gnulib/configure: Regenerate.
4467 * gnulib/import/dummy.c: Remove.
4468 * gnulib/import/Makefile.am: Regenerate.
4469 * gnulib/import/Makefile.in: Likewise.
4470 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4471 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4472 * gnulib/import/alloca.c: New file.
4473 * gnulib/import/alloca.in.h: Likewise.
4474 * gnulib/import/config.charset: Likewise.
4475 * gnulib/import/fnmatch.c: Likewise.
4476 * gnulib/import/fnmatch.in.h: Likewise.
4477 * gnulib/import/fnmatch_loop.c: Likewise.
4478 * gnulib/import/localcharset.c: Likewise.
4479 * gnulib/import/localcharset.h: Likewise.
4480 * gnulib/import/m4/alloca.m4: Likewise.
4481 * gnulib/import/m4/codeset.m4: Likewise.
4482 * gnulib/import/m4/configmake.m4: Likewise.
4483 * gnulib/import/m4/fcntl-o.m4: Likewise.
4484 * gnulib/import/m4/fnmatch.m4: Likewise.
4485 * gnulib/import/m4/glibc21.m4: Likewise.
4486 * gnulib/import/m4/localcharset.m4: Likewise.
4487 * gnulib/import/m4/locale-fr.m4: Likewise.
4488 * gnulib/import/m4/locale-ja.m4: Likewise.
4489 * gnulib/import/m4/locale-zh.m4: Likewise.
4490 * gnulib/import/m4/mbrtowc.m4: Likewise.
4491 * gnulib/import/m4/mbsinit.m4: Likewise.
4492 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4493 * gnulib/import/m4/mbstate_t.m4: Likewise.
4494 * gnulib/import/m4/stdbool.m4: Likewise.
4495 * gnulib/import/m4/wchar_h.m4: Likewise.
4496 * gnulib/import/m4/wctype_h.m4: Likewise.
4497 * gnulib/import/m4/wint_t.m4: Likewise.
4498 * gnulib/import/mbrtowc.c: Likewise.
4499 * gnulib/import/mbsinit.c: Likewise.
4500 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4501 * gnulib/import/mbsrtowcs-state.c: Likewise.
4502 * gnulib/import/mbsrtowcs.c: Likewise.
4503 * gnulib/import/ref-add.sin: Likewise.
4504 * gnulib/import/ref-del.sin: Likewise.
4505 * gnulib/import/stdbool.in.h: Likewise.
4506 * gnulib/import/streq.h: Likewise.
4507 * gnulib/import/strnlen1.c: Likewise.
4508 * gnulib/import/strnlen1.h: Likewise.
4509 * gnulib/import/verify.h: Likewise.
4510 * gnulib/import/wchar.in.h: Likewise.
4511 * gnulib/import/wctype.in.h: Likewise.
4512
202cbf1c
JK
45132012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 Support shell wildcards for 'set auto-load safe-path'.
4516 * auto-load.c: Include fnmatch.h.
4517 (filename_is_in_dir): Rename to ...
4518 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4519 it. Update function comment. Rename dir_len to pattern_len. New
4520 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4521 messages. Use gdb_filename_fnmatch.
4522 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4523 pattern.
4524 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4525 * defs.h (gdb_filename_fnmatch): New declaration.
4526 * utils.c: Include fnmatch.h.
4527 (gdb_filename_fnmatch): New function.
4528
fb7b5af4
SDJ
45292012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4530
4531 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4532 `-probe' and `-probe-stap' options.
4533
72d0e2c5
YQ
45342012-07-01 Yao Qi <yao@codesourcery.com>
4535
4536 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4537 always_inserted_off, and always_inserted_enums.
4538 Change always_inserted_mode's type to 'enum auto_boolean'.
4539 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4540 callers.
4541 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4542 of add_setshow_enum_cmd.
4543 * infrun.c: Remove can_use_displaced_stepping_auto,
4544 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4545 can_use_displaced_stepping_enum.
4546 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4547 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4548 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4549 add_setshow_enum_cmd.
4550
42e7ad6c
DE
45512012-06-30 Doug Evans <dje@google.com>
4552
4553 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4554 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4555 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4556
39cf75f7
DE
45572012-06-29 Doug Evans <dje@google.com>
4558
4559 * linespec.c: #include "stack.h".
4560 (decode_line_with_current_source): Moved here from symtab.c and
4561 renamed from decode_line_spec. All callers updated.
4562 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4563 renamed from decode_line_spec_1. All callers updated.
4564 * linespec.h (decode_line_with_current_source): Move declaration here
4565 from symtab.h and renamed from decode_line_spec.
4566 (decode_line_with_last_displayed): Move declaration here from symtab.h
4567 and renamed from decode_line_spec_1.
4568 * macrocmd.c: #include "linespec.h".
4569 * symtab.c: Remove #include "linespec.h".
4570
433df2d4
DE
45712012-06-28 Doug Evans <dje@google.com>
4572
1ce1cefd
DE
4573 * dwarf2read.c (get_cu_length): New function.
4574 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4575 (create_debug_types_hash_table): Ditto.
4576 (init_cutu_and_read_dies): Ditto.
4577 (init_cutu_and_read_dies_no_follow): Ditto.
4578
3b80fe9b
DE
4579 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4580
433df2d4
DE
4581 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4582 (struct abbrev_table): Define.
4583 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4584 abbrev_table.
4585 (init_cutu_and_read_dies): Update.
4586 (abbrev_table_alloc_abbrev): New function. Replaces
4587 dwarf_alloc_abbrev. All callers updated.
4588 (abbrev_table_add_abbrev): New function.
4589 (abbrev_table_lookup_abbrev): New function. Replaces
4590 dwarf2_lookup_abbrev. All callers updated.
4591 (abbrev_table_read_table): New function. Contents moved here from
4592 dwarf2_read_abbrevs.
4593 (dwarf2_read_abbrevs): Call it.
4594 (abbrev_table_free): New function.
4595 (dwarf2_free_abbrev_table): Call it.
4596
71caed83
SS
45972012-06-28 Stan Shebs <stan@codesourcery.com>
4598
4599 * osdata.c (info_osdata_command): Filter out "Title" columns
4600 from non-MI uses.
4601 * common/linux-osdata.c (struct osdata_type): Add title field.
4602 (osdata_table): Add titles to each entry.
4603 (linux_command_xfer_osdata): Add a column for title data.
4604
37ce89eb
SS
46052012-06-28 Stan Shebs <stan@codesourcery.com>
4606
4607 Make logging work for MI.
4608 * NEWS: Mention it.
4609 * interps.h (interp_set_logging_ftype): New typedef.
4610 (struct interp_procs): New field set_logging_proc.
4611 (current_interp_set_logging): Declare.
4612 * interps.c (current_interp_set_logging): New function.
4613 * cli/cli-logging.c: Include interps.h.
4614 (set_logging_redirect): Call current_interp_set_logging.
4615 (pop_output_files): Ditto.
4616 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4617 * mi/mi-console.h (mi_console_set_raw): Declare.
4618 * mi/mi-console.c (mi_console_set_raw): New function.
4619 * mi/mi-interp.c (saved_raw_stdout): New global.
4620 (mi_set_logging): New function.
4621 (_initialize_mi_interp): Add it to interp procs.
4622
659c9f3a
DE
46232012-06-28 Doug Evans <dje@google.com>
4624
a743abeb
DE
4625 * symtab.c (lookup_symbol_aux_objfile): Use
4626 ALL_OBJFILE_PRIMARY_SYMTABS.
4627
659c9f3a
DE
4628 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4629
da2d6d3d
JK
46302012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4631
4632 * common/buffer.c: Include inttypes.h and stdint.h.
4633 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4634
e5ef252a
PA
46352012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 Pedro Alves <palves@redhat.com>
4637
4638 * gdbthread.h (ALL_THREADS): New macro.
4639 (thread_list): Declare.
4640 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4641 going, but instead fall through to the stepping handling.
4642 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4643 the passed in signal. Adjust debug output.
4644 (resume_callback): Rename to ...
4645 (linux_nat_resume_callback): ... this. Pass the thread's last
4646 stop signal, if in "pass" state.
4647 (linux_nat_resume): Adjust to rename.
4648 (stop_wait_callback): New assertion. Don't respawn signals;
4649 instead let the LWP remain with SIGNALLED set.
4650 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4651 * remote.c (append_pending_thread_resumptions): New.
4652 (remote_vcont_resume): Call it.
4653 * target.h (target_resume): Extend comment.
4654
1d7975eb
IS
46552012-06-28 Iain Sandoe <iain@codesourcery.com>
4656
4657 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4658
2e3cf129
DE
46592012-06-27 Doug Evans <dje@google.com>
4660
4661 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4662 Delete have_addr_base, unused. All uses updated.
4663 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4664 (dwarf2_get_pc_bounds): Add ranges_base.
4665 (dwarf2_record_block_ranges): Ditto.
4666
1bb9788d
TT
46672012-06-27 Tom Tromey <tromey@redhat.com>
4668
4669 PR macros/7961:
4670 * varobj.c (varobj_create): Update.
4671 (varobj_set_value): Update.
4672 * tracepoint.c (validate_actionline): Update.
4673 (encode_actions_1): Update.
4674 * parse.c (parse_exp_1): Add 'pc' argument.
4675 (parse_exp_in_context): Add 'pc' argument. Change how
4676 expression_context_pc is set.
4677 (parse_expression): Update.
4678 (parse_field_expression): Update.
4679 * expression.h (parse_exp_1): Update.
4680 * eval.c (parse_to_comma_and_eval): Update.
4681 * breakpoint.c (set_breakpoint_condition): Update.
4682 (update_watchpoint): Update.
4683 (init_breakpoint_sal): Update
4684 (find_condition_and_thread): Update.
4685 (watch_command_1): Update.
4686 (update_breakpoint_locations): Update.
4687 * ada-lang.c (ada_read_renaming_var_value): Update.
4688 (create_excep_cond_exprs): Update.
4689
0bc3a05c
DE
46902012-06-27 Doug Evans <dje@google.com>
4691
4692 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4693 type units.
4694
4bdcc0c1
DE
46952012-06-26 Doug Evans <dje@google.com>
4696
4697 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4698 prototype.
4699 (error_check_comp_unit_head): New arg abbrev_section. All callers
4700 updated.
4701 (read_and_check_comp_unit_head): Ditto.
4702 (read_and_check_type_unit_head): Ditto.
4703
ee0bf529
SCR
47042012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4705
4706 New attribute 'last' for gdb.Symtab_and_line.
4707 * NEWS (Python Scripting): Add entry about the new attribute.
4708 * python/py-symtab.c (salpy_get_last): New function which
4709 implements the get method for the 'last' attribute of
4710 gdb.Symtab_and_line.
4711 (sal_object_getset): Add entry for the 'last' attribute.
4712
1c658ad5
DE
47132012-06-26 Doug Evans <dje@google.com>
4714
09262596
DE
4715 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4716 (dwo_sections): Add macinfo, macro.
4717 (dwarf2_locate_dwo_sections): Watch for macro sections.
4718 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4719 All callers updated. Handle DWO files.
4720
45cfd468
DE
4721 * NEWS: Mention new options "set debug dwarf2-read" and
4722 "set debug symtab-create".
4723 * dwarf2read.c (dwarf2_read_debug): New static global.
4724 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4725 (process_queue): Ditto.
4726 (process_full_comp_unit): Ditto.
4727 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4728 * elfread.c (elf_symfile_read): Add debugging printf.
4729 * minsyms.c (install_minimal_symbols): Ditto.
4730 * psymtab.c (allocate_psymtab): Ditto.
4731 * symfile.c (allocate_symtab): Ditto.
4732 * symtab.c (symtab_create_debug): New global.
4733 (_initialize_symtab): Add new option "set debug symtab-create".
4734 * symtab.h (symtab_create_debug): Declare.
4735
1c658ad5
DE
4736 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4737 (lookup_dwo_type_unit): Ditto.
4738
6fea9e18
L
47392012-06-26 Roland McGrath <roland@hack.frob.com>
4740 H.J. Lu <hongjiu.lu@intel.com>
4741
4742 * amd64-linux-nat.c: Include <sys/user.h>.
4743 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4744 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4745 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4746
4747 * configure.ac: Check if the fs_base and gs_base members of
4748 `struct user_regs_struct' exist.
4749 * config.in: Regenerated.
4750 * configure: Likewise.
4751
adb4fe3b
ME
47522012-06-25 Michael Eager <eager@eagercon.com>
4753
4754 PR python/14291
f782ad9b 4755 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4756
fc51cce1
MGD
47572012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4758
4759 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4760 register as a stack alignment in ARM mode.
4761
40a73391
JK
47622012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4765 * gnulib/config.in: Regenerate.
4766 * gnulib/configure: Likewise.
4767 * gnulib/import/m4/extensions.m4: Update it.
4768 * gnulib/import/m4/gnulib-common.m4: Likewise.
4769 * gnulib/import/m4/memmem.m4: Likewise.
4770 * gnulib/import/m4/mmap-anon.m4: Likewise.
4771 * gnulib/import/m4/multiarch.m4: Likewise.
4772 * gnulib/import/stdint.in.h: Likewise.
4773
972daa01
YQ
47742012-06-24 Yao Qi <yao@codesourcery.com>
4775
4776 * corefile.c (write_memory_with_notification): New.
4777 * gdbcore.h: Declare write_memory_with_notification.
4778 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4779 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4780 * valops.c (value_assign): Likewise.
4781 * python/py-inferior.c (infpy_write_memory): Call
4782 'write_memory_with_notification'.
4783
8d6e0714
JK
47842012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4785
4786 * cc-with-index.sh: Use also -ex "set auto-load no".
4787
156942c7
DE
47882012-06-23 Doug Evans <dje@google.com>
4789
4790 PR 14125
4791 * NEWS: Document additions to .gdb_index.
4792 * dwarf2read.c: #include "gdb/gdb-index.h".
4793 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4794 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4795 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4796 (dwarf2_read_index): Recognize version 7.
4797 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4798 block_kind, domain): All callers updated.
4799 (dw2_find_symbol_file): Handle new index CU values.
4800 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4801 (add_index_entry): New args is_static, kind. All callers updated.
4802 (offset_type_compare, uniquify_cu_indices): New functions
4803 (symbol_kind): New function.
4804 (write_psymtabs_to_index): Remove duplicate CU values.
4805 (write_psymtabs_to_index): Write .gdb_index version 7.
4806
352b3eda
JB
48072012-06-22 Joel Brobecker <brobecker@adacore.com>
4808
4809 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4810 * configure: Regenerate.
4811
2678e2af
YQ
48122012-06-20 Yao Qi <yao@codesourcery.com>
4813
4814 * python/py-inferior.c: Update comments of infpy_read_memory
4815 and infpy_write_memory.
4816
95c391b6
TT
48172012-06-19 Tom Tromey <tromey@redhat.com>
4818
4819 PR exp/9514:
4820 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4821 (push_type_address_space): Remove.
4822 * parse.c (insert_into_type_stack): New function.
4823 (insert_type): Likewise.
4824 (insert_type_address_space): Rename from push_type_address_space.
4825 Insert tp_space_identifier.
4826 * c-exp.y (ptr_operator): New production.
4827 (abs_decl): Use ptr_operator.
4828 (space_identifier): Call insert_type_address_space.
4829 (ptype): Don't use const_or_volatile_or_space_identifier.
4830 (const_or_volatile_noopt): Call insert_type.
4831 (conversion_type_id, conversion_declarator): New productions.
4832 (operator): Use conversion_type_id.
4833
6ac9ef80
DE
48342012-06-18 Doug Evans <dje@google.com>
4835
422d65e7
DE
4836 * symtab.h (minimal_symbol): New member created_by_gdb.
4837 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4838 created by gdb.
4839 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4840 (search_symbols): Call it instead of lookup_symbol.
4841 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4842
49f6c839
DE
4843 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4844 Adjust address for DW_OP_GNU_addr_index.
4845 * dwarf2expr.h (dwarf_expr_context): Update comment.
4846 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4847 all callers updated. Handle TLS vars described with
4848 DW_OP_GNU_const_index.
4849 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4850 and DW_OP_GNU_const_index.
4851 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4852
6ac9ef80
DE
4853 * block.c (find_block_in_blockvector): Make explicit the fact that we
4854 ignore GLOBAL_BLOCK.
4855
4cd18215
TT
48562012-06-18 Tom Tromey <tromey@redhat.com>
4857
4858 * c-exp.y (operator): Remove trailing space after "delete" and
4859 "delete[]".
4860
a9b8d892
JK
48612012-06-18 Mark Kettenis <kettenis@gnu.org>
4862 Jan Kratochvil <jan.kratochvil@redhat.com>
4863
4864 Switch i386 and derived targets to ON_STACK.
4865 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4866 (amd64_dicos_init_abi): Remove its installment.
4867 * dicos-tdep.c (dicos_init_abi): Remove the
4868 set_gdbarch_call_dummy_location call. Update the comment here.
4869 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4870 (i386_dicos_init_abi): Remove its installment.
4871 * i386-tdep.c (i386_push_dummy_code): New function.
4872 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4873 i386_push_dummy_code.
4874
e2e4d78b
JK
48752012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4876
4877 Remove stale dummy frames.
4878 * breakpoint.c: Include dummy-frame.h.
4879 (longjmp_breakpoint_ops): New variable.
4880 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4881 bp_longjmp_call_dummy.
4882 (bpstat_what, bptype_string, print_one_breakpoint_location)
4883 (init_bp_location): Support bp_longjmp_call_dummy.
4884 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4885 (set_longjmp_breakpoint_for_call_dummy)
4886 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4887 functions.
4888 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4889 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4890 FIXME comment and extend the other comment for bp_call_dummy.
4891 (set_longjmp_breakpoint_for_call_dummy)
4892 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4893 * dummy-frame.c: Include gdbthread.h.
4894 (pop_dummy_frame_bpt): New function.
4895 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4896 (dummy_frame_discard): New function.
4897 (cleanup_dummy_frames): Update the comment about longjmps.
4898 * dummy-frame.h (dummy_frame_discard): New declaration.
4899 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4900 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4901 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4902 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4903 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4904 keep_going if IS_LONGJMP and there is no other reason to stop.
4905
09d5912c
TT
49062012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4907
4908 * remote-sim.c (sim_command_completer): Initialize
4909 variable 'result'.
4910
1788b2d3
JK
49112012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4914 * dwarf2loc.c (call_site_parameter_matches): Support
4915 CALL_SITE_PARAMETER_PARAM_OFFSET.
4916 (needs_dwarf_reg_entry_value): Push stub value.
4917 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4918 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4919 * gdbtypes.h (enum call_site_parameter_kind): New item
4920 CALL_SITE_PARAMETER_PARAM_OFFSET.
4921 (struct call_site.parameter.u): New field param_offset.
4922
24c5c679
JK
49232012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4924
4925 Code cleanup: Generalize call_site.parameter key.
4926 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4927 variable dwarf_reg. New variable kind_u. Update parameters to
4928 push_dwarf_reg_entry_value.
4929 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4930 * dwarf2expr.h (enum call_site_parameter_kind)
4931 (union call_site_parameter_u): Forward declarations.
4932 (struct dwarf_expr_context_funcs): Update parameters and their
4933 description for push_dwarf_reg_entry_value.
4934 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4935 * dwarf2loc.c (call_site_parameter_matches): New function.
4936 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4937 description. Use call_site_parameter_matches.
4938 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4939 Update parameters and their description.
4940 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4941 New variable kind_u. Adjust the caller for updated parameters.
4942 (needs_dwarf_reg_entry_value): Update parameters.
4943 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4944 instead of attr. Update for the changed fields of struct
4945 call_site_parameter.
4946 * gdbtypes.h: Include dwarf2expr.h.
4947 (enum call_site_parameter_kind): New.
4948 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4949 fb_offset into new union u.
4950
ac142d96
L
49512012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4952
4953 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4954 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4955 for x32.
4956
ba224c70
L
49572012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4958
4959 * amd64-linux-nat.c (compat_x32_clock_t): New.
4960 (compat_x32_siginfo_t): Likewise.
4961 (compat_x32_siginfo_from_siginfo): Likewise.
4962 (siginfo_from_compat_x32_siginfo): Likewise.
4963 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4964 and siginfo_from_compat_x32_siginfo for x32.
4965
7ecbc825
HZ
49662012-06-15 Hui Zhu <hui_zhu@mentor.com>
4967
4968 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4969
233dfcf0
L
49702012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4971
4972 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4973 instead of gdbarch_ptr_bit.
4974 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4975 (amd64_supply_native_gregset): Likewise.
4976 (amd64_collect_native_gregset): Likewise.
4977 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4978 (amd64_supply_xsave): Likewise.
4979 (amd64_collect_fxsave): Likewise.
4980 (amd64_collect_xsave): Likewise.
4981
6da38f42
L
49822012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4983
4984 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4985 (amd64_linux_read_description): Check DS segment register for
4986 x32 process.
4987
663b969e
TT
49882012-06-15 Tom Tromey <tromey@redhat.com>
4989
4990 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4991 init_cutu_and_read_dies.
4992
d6f05027
IS
49932012-06-15 Iain Sandoe <iain@codesourcery.com>
4994
4995 * MAINTAINERS (Write After Approval): Add myself to the list.
4996
6598ed07
TT
49972012-06-15 Tom Tromey <tromey@redhat.com>
4998
4999 * valops.c (value_find_oload_method_list): Now static.
5000 * value.h (value_find_oload_method_list): Don't declare.
5001
2b214ea6
TT
50022012-06-15 Tom Tromey <tromey@redhat.com>
5003
5004 * valops.c (find_overload_match): Use value_ind.
5005
a210c238
MR
50062012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5007
5008 * infrun.c (handle_inferior_event): Correct indentation.
5009
3771a44c
DE
50102012-06-14 Doug Evans <dje@google.com>
5011
5012 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5013 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5014 All uses updated.
5015 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5016 updated. Handle DEBUG_LOC_START_LENGTH.
5017 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5018 (loclist_describe_location): Ditto.
5019
1c5a993e
MR
50202012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5021
5022 PR backtrace/13866
5023 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5024 after hiding inline functions.
5025
0b155465
JB
50262012-06-13 Joel Brobecker <brobecker@adacore.com>
5027
5028 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5029 _initialize_inf_ttrace.
5030
45717bac
JB
50312012-06-13 Joel Brobecker <brobecker@adacore.com>
5032
5033 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5034 _initialize_hppa_hpux_nat.
5035
34370865
JB
50362012-06-13 Joel Brobecker <brobecker@adacore.com>
5037
5038 * remote-sim.c (sim_command_completer): Change type of return
5039 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5040
284c5a60
MK
50412012-06-13 Mark Kettenis <kettenis@gnu.org>
5042 Jan Kratochvil <jan.kratochvil@redhat.com>
5043
5044 PR tdep/14222
5045 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5046 stack on a 16-byte boundary.
5047
2535757a
TT
50482012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5049
5050 * jit.c (finalize_symtab): Set function's return type to 'void' by
5051 default.
5052
fff4548b
MK
50532012-06-13 Mark Kettenis <kettenis@gnu.org>
5054 H.J. Lu <hongjiu.lu@intel.com>
5055
5a83521a
MK
5056 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5057 Move bits common to both the classic LP64 and the new x32 ILP32
5058 ABI here.
5059 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5060 (amd64_x32_linux_init_abi): New function.
5061 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5062 subtype.
5063
fff4548b
MK
5064 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5065 * i386-tdep.c (i386_pseudo_register_name): Make public.
5066 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5067 * amd64-tdep.c (amd64_dword_names): Add "eip".
5068 (amd64_x32_pseudo_register_type): New function
5069 (amd64_x32_init_abi): New function.
5070
dd80ea3c
JK
50712012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 PR build/14003
5074 * inferior.h (struct inferior_suspend_state): Comment out.
5075 (struct inferior): Comment out the field suspend.
5076 * infrun.c (struct infcall_suspend_state): Comment out the field
5077 inferior_suspend.
5078 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5079 out its assignment.
5080
50af5481
JK
50812012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5082
5083 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5084 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5085 function comment. Return ERROR for unresolved cases. Implement
5086 returning proper NAME.
5087 (yylex): Accept also NAME from classify_inner_name.
5088 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5089 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5090 LOC_TYPEDEF type.
5091 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5092
d55637df
TT
50932012-06-13 Tom Tromey <tromey@redhat.com>
5094
5095 * breakpoint.c (condition_completer): New function.
5096 (_initialize_breakpoint): Use it.
5097 * value.c (complete_internalvar): New function.
5098 * value.h (complete_internalvar): Declare.
5099
49c4e619
TT
51002012-06-13 Tom Tromey <tromey@redhat.com>
5101
5102 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5103 * breakpoint.c (catch_syscall_completer): Return a VEC.
5104 * cli/cli-cmds.c (complete_command): Update.
5105 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5106 (complete_on_enum): Likewise.
5107 * command.h: Include gdb_vecs.h.
5108 (completer_ftype): Change return type.
5109 (complete_on_cmdlist, complete_on_enum): Likewise.
5110 * completer.c (noop_completer, filename_completer)
5111 (location_completer): Return a VEC.
5112 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5113 to a VEC.
5114 (expression_completer, complete_line_internal, complete_line)
5115 (command_completer): Return a VEC.
5116 (gdb_completion_word_break_characters, line_completion_function):
5117 Update.
5118 * completer.h: Include gdb_vecs.h.
5119 (complete_line, noop_completer, filename_completer)
5120 (expression_completer, location_completer, command_completer):
5121 Update.
5122 * f-lang.c (f_word_break_characters): Return a VEC.
5123 * interps.c (interpreter_completer): Return a VEC.
5124 * language.h (struct language_defn)
5125 <la_make_symbol_completion_list>: Return a VEC.
5126 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5127 * symtab.c (free_completion_list): Take a VEC.
5128 (return_val_size, return_val_index): Remove.
5129 (return_val): Now a VEC.
5130 (completion_list_add_name): Update.
5131 (default_make_symbol_completion_list_break_on)
5132 (default_make_symbol_completion_list, make_symbol_completion_list)
5133 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5134 Return a VEC.
5135 (add_filename_to_list): Update.
5136 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5137 <list>: Now a VEC.
5138 (maybe_add_partial_symtab_filename): Update.
5139 (make_source_files_completion_list): Return a VEC.
5140 * symtab.h (default_make_symbol_completion_list_break_on)
5141 (default_make_symbol_completion_list, make_symbol_completion_list)
5142 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5143 (make_source_files_completion_list): Update.
5144
625e8578
TT
51452012-06-13 Tom Tromey <tromey@redhat.com>
5146
5147 * breakpoint.c (add_catch_command): Use completer_ftype.
5148 * breakpoint.h: Include command.h.
5149 (add_catch_command): Use completer_ftype.
5150 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5151 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5152 Use completer_ftype.
5153 * command.h (completer_ftype): New typedef.
5154 (set_cmd_completer): Use it.
5155 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5156 completer_ftype.
5157
5eb3b062
PA
51582012-06-13 Pedro Alves <palves@redhat.com>
5159
5160 Partial revert of previous change.
5161
5162 * serial.c (scb_base): New global.
5163 (serial_for_fd): New.
5164 (serial_open, serial_fdopen_ops): Link new serial in open serials
5165 chain.
5166 (do_serial_close): Unlink serial from the open serials chain.
5167
8b3ee56d
PA
51682012-06-12 Pedro Alves <palves@redhat.com>
5169
5170 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5171 threads here.
5172 (prepare_for_detach): No longer context switch here in non-stop
5173 mode.
5174 (fetch_inferior_event): Ditto.
5175 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5176 to the event thread before removing breakpoints. Switch to the
5177 event thread before inserting breakpoints and resuming.
5178 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5179 event thread before resuming.
5180 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5181 Switch to the event thread before removing breakpoints.
5182
5d60742e
EZ
51832012-06-12 Eli Zaretskii <eliz@gnu.org>
5184
5185 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5186 special characters correctly for the Windows shells. See
5187 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5188 report.
5189 [!__MINGW32__]: Remove extra double quote character from special
5190 characters.
5191
a6feecf7
SS
51922012-06-11 Stan Shebs <stan@codesourcery.com>
5193
5194 * ui-out.h: Remove #if 0 declarations.
5195 * ui-out.c: Remove #if 0 functions.
5196
ddefb60f
PA
51972012-06-11 Pedro Alves <palves@redhat.com>
5198
5199 * ser-base.c (run_async_handler_and_reschedule): New.
5200 (fd_event, push_event): Use it.
5201 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5202 reference count to 1.
5203 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5204 instead of xfree.
5205 (serial_is_open, serial_ref, serial_unref): New.
5206 * serial.h (serial_open): Adjust comment.
5207 (serial_is_open): Declare.
5208 (serial_close): Adjust comment.
5209 (serial_ref, serial_unref) Declare.
5210 (struct serial): New field 'refcnt'.
5211
d5ad6aa5
PA
52122012-06-11 Pedro Alves <palves@redhat.com>
5213
5214 Remove #if 0'd "connect" command, and unnecessary associated
5215 refcounting and serial reuse bits.
5216
5217 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5218 * serial.c (last_serial_opened): Delete.
5219 (scb_base): Delete.
5220 (serial_open): Adjust.
5221 (serial_for_fd): Delete.
5222 (serial_fdopen_ops, do_serial_close): Adjust.
5223 (serial_fdopen_ops): Adjust.
5224
318aa544
PA
52252012-06-11 Pedro Alves <palves@redhat.com>
5226
5227 * serial.c (do_serial_close): Remove early return when SCB is
5228 null.
5229
07261596
TT
52302012-06-11 Tom Tromey <tromey@redhat.com>
5231
5232 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5233
cc80f267
JK
52342012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5235
5236 Fix regression by the "ambiguous linespec" series.
5237 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5238 get_last_displayed_symtab and get_last_displayed_line and depending
5239 on CURSAL.
5240
356d9f9d
TT
52412012-06-11 Tom Tromey <tromey@redhat.com>
5242
5243 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5244 (dw2_find_symbol_file): Use it.
5245
232b8704
ME
52462012-06-11 Michael Eager <eager@eagercon.com>
5247
5248 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5249 * mips-linux-tdep.h (mips_signals): New
5250
e81a37f7
TT
52512012-06-11 Tom Tromey <tromey@redhat.com>
5252
5253 * infrun.c (handle_inferior_event)
5254 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5255 breakpoint.
5256 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5257 exception logic in all cases. Update comments.
5258 (insert_longjmp_resume_breakpoint): Set the exception resume
5259 breakpoint.
5260
2e81047f
MR
52612012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5262
5263 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5264
4e32eda7
SCR
52652012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5266
5267 * valarith.c (binop_types_user_defined_p): Fix a typo.
5268
18648a37 52692012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5270 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5271
5272 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5273 * arch-utils.h: Declare.
5274 * gdbarch.sh: Add return_in_first_hidden_param_p.
5275 * gdbarch.c, gdbarch.h: Regenerated.
5276 * infcall.c (call_function_by_hand): Call
5277 gdbarch_return_in_first_hidden_param_p instead of
5278 language_pass_by_reference.
5279
5280 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5281 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5282 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5283 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5284 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5285 `cplus_return_struct_by_reference'.
5286 (tic6x_return_value): Handle language cplusplus.
5287 (tic6x_return_in_first_hidden_param_p): New.
5288 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5289
034e5797
DE
52902012-06-07 Doug Evans <dje@google.com>
5291
5292 * dwarf2read.c (dwarf2_cu): Add comment.
5293
6a00aa1e
MR
52942012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5295
5296 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5297 variable.
5298 (mips_eabi_push_dummy_call): Likewise.
5299 (mips_n32n64_push_dummy_call): Likewise.
5300 (mips_o32_push_dummy_call): Likewise.
5301 (mips_o64_push_dummy_call): Likewise.
5302
eaa05d59
MR
53032012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5304
5305 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5306
de13fcf2
MR
53072012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5308
5309 * mips-tdep.c (mips_pseudo_register_type): Use
5310 mips_float_register_p.
5311
c3a01a22
PA
53122012-06-06 Pedro Alves <palves@redhat.com>
5313
5314 * infrun.c (handle_inferior_event): Remove calls to
5315 reinit_frame_cache that follow a context_switch call.
5316
d25f45d9
PA
53172012-06-06 Pedro Alves <palves@redhat.com>
5318
5319 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5320 context_switch and remove stale comment.
5321
359f5fe6
PA
53222012-06-06 Pedro Alves <palves@redhat.com>
5323
5324 * infrun.c (struct execution_control_state): Remove
5325 `new_thread_event' field.
5326 (handle_inferior_event): Simplify new threads handling; don't
5327 resume the inferior if we find a new thread.
5328
2d4c29c5
TS
53292012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5330
5331 * NEWS: Document the deprecation of SH's 'regs' command.
5332 * inferior.h (all_registers_info): Add function declaration.
5333 * sh-tdep.c (sh_show_regs): Remove variable.
5334 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5335 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5336 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5337 (sh_show_regs_command): Remove functions.
5338 (sh_gdbarch_init): Don't set sh_show_regs.
5339 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5340 'info all-registers'.
5341 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5342 (sh64_show_regs): Remove functions.
5343 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5344
f5f1cdb6
JK
53452012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * configure.ac: Move development=true below AC_INIT.
5348 * configure: Regenerate.
5349
bf6309af
SS
53502012-06-05 Stan Shebs <stan@codesourcery.com>
5351
5352 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5353 gdb_stdout.
5354
45aa4659
JK
53552012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5356
5357 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5358 argument as ssize_t.
5359 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5360 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5361 * target.c (target_read_stack, target_write_memory)
5362 (target_write_raw_memory): Likewise.
5363 * target.h (target_read_stack, target_write_memory)
5364 (target_write_raw_memory): Likewise.
5365
1b162304
JK
53662012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5367
5368 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5369 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5370 * target.c (target_read_memory): Change LEN to ssize_t.
5371 * target.h (target_read_memory): Change LEN to ssize_t.
5372
8556afb4
PA
53732012-06-05 Pedro Alves <palves@redhat.com>
5374
5375 PR backtrace/13866
5376
5377 * breakpoint.c (until_break_command): Only fetch the selected
5378 frame after decode_line_1.
5379
fb139f32
PA
53802012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5381
5382 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5383 event breakpoint at _start, __start or main if a program
5384 interpreter is not found.
5385
a8e1bb34
JB
53862012-06-05 Joel Brobecker <brobecker@adacore.com>
5387
5388 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5389 Add declaration.
5390 * windows-tdep.c: #include "objfiles.h".
5391 (windows_iterate_over_objfiles_in_search_order): New function.
5392 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5393 iterate_over_objfiles_in_search_order gdbarch method to
5394 windows_iterate_over_objfiles_in_search_order.
5395 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5396
19630284
JB
53972012-06-05 Joel Brobecker <brobecker@adacore.com>
5398
5399 * gdbarch.sh: Add generation of
5400 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5401 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5402 (iterate_over_objfiles_in_search_order): New gdbarch method.
5403 * gdbarch.h, gdbarch.c: Regenerate.
5404 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5405 Add declaration.
5406 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5407 New function.
5408 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5409 out of lookup_symbol_aux_symtabs.
5410 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5411 call to lookup_symbol_aux_objfile.
5412 (struct global_sym_lookup_data): New type.
5413 (lookup_symbol_global_iterator_cb): New function.
5414 (lookup_symbol_global): Search for symbol using
5415 gdbarch_iterate_over_objfiles_in_search_order and
5416 lookup_symbol_global_iterator_cb.
5417 * findvar.c (struct minsym_lookup_data): New type.
5418 (minsym_lookup_iterator_cb): New function.
5419 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5420 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5421 and minsym_lookup_iterator_cb.
5422
67ff19f7
JB
54232012-06-05 Joel Brobecker <brobecker@adacore.com>
5424
5425 Revert the following patch:
5426 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5427 try locating the symbol in the symbol's own objfile first, before
5428 extending the search to all objfiles.
5429 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5430 out of lookup_symbol_aux_symtabs.
5431 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5432 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5433 Do not search EXCLUDE_OBJFILE.
5434 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5435 (lookup_symbol_global): Search for matches in the block's objfile
5436 first, before searching all other objfiles.
5437
ccab2054
JB
54382012-06-05 Joel Brobecker <brobecker@adacore.com>
5439
5440 * breakpoint.c (find_condition_and_thread): Stop parsing
5441 as soon as the first invalid keyword is found.
5442
e23d4a9c
JB
54432012-06-05 Joel Brobecker <brobecker@adacore.com>
5444
5445 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5446
70160166
JB
54472012-06-05 Joel Brobecker <brobecker@adacore.com>
5448
5449 * config/djgpp/djcheck.sh: Add copyright header.
5450
399501a5
JB
54512012-06-05 Joel Brobecker <brobecker@adacore.com>
5452
5453 * copyright.py (update_files, main): Fix path to update-copyright
5454 script.
5455
3770a159
JB
54562012-06-05 Joel Brobecker <brobecker@adacore.com>
5457
5458 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5459 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5460 for which a reminder to update by hand is printed.
5461
4aad0dfc
DE
54622012-06-04 Doug Evans <dje@google.com>
5463
5464 * buildsym.c (make_blockvector): Add comment.
5465
1f8cf220
PA
54662012-06-04 Pedro Alves <palves@redhat.com>
5467
5468 * arch-utils.c (default_gdb_signal_from_target): Delete.
5469 * arch-utils.h (default_gdb_signal_from_target): Delete.
5470 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5471 gdbarch_gdb_signal_from_target_p.
5472 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5473 predicate).
5474 * gdbarch.h: Regenerate.
5475 * gdbarch.c: Regenerate.
5476
86b49880
PA
54772012-06-04 Pedro Alves <palves@redhat.com>
5478
5479 * gdbarch.sh (gdb_signal_from_target): Mention that the
5480 implementation of the method must be host independent.
5481 * gdbarch.h: Regenerate.
5482
fe78531d
JK
54832012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5484
5485 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5486 parameters.
5487 (target_read_memory_bfd): New function.
5488 (symbol_file_add_from_memory): Use it.
5489
d790cf0a
DE
54902012-06-03 Doug Evans <dje@google.com>
5491
78e5175a
DE
5492 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5493 of primary symtab.
5494 (basic_lookup_transparent_type): Ditto.
5495
d790cf0a
DE
5496 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5497 (ALL_PRIMARY_SYMTABS): Use it.
5498 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5499 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5500 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5501 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5502 (basic_lookup_transparent_type): Ditto.
5503
c6e5ee5e
SDJ
55042012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5505
5506 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5507 it to optimize resolution of demangled name.
5508
a68ffae9
JK
55092012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 * configure.ac (development): Define new variable.
5512 Call AC_CHECK_LIB for mcheck if $development.
5513 (ERROR_ON_WARNING): Enable it by default only if $development.
5514 * config.in: Regenerate.
5515 * configure: Regenerate.
5516
5299c1c4
JK
55172012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5518
5519 * target.c (target_read_memory): Make LEN argument as size_t.
5520 * target.h (target_read_memory): Likewise.
5521
55222012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5523
5524 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5525
0c56f59b
EBM
55262012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5527
5528 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5529 BookE interface for PowerPC server processors if not available
5530 in the Linux Kernel.
5531
71bdabee
KS
55322012-05-31 Keith Seitz <keiths@redhat.com>
5533
5534 * linespec.c (decode_objc): Add cleanup to free
5535 INFO.FILE_SYMTABS.
5536 (find_linespec_symbols): Add cleanup to free CLASSES.
5537 * symfile.c (find_separate_debug_file_by_debuglink): Add
5538 cleanup to free DEBUGLINK.
5539 * ui-out.c (clear_header_list): No need to check if
5540 HEADER_NEXT.COLHDR is NULL.
5541 Free HEADER_NEXT.COL_NAME.
5542
acbd605d
MGD
55432012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5544
5545 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5546 warning.
5547
65662cde
PA
55482012-05-30 Jeff Kenton <jkenton@tilera.com>
5549
5550 * configure.host (gdb_host_cpu): Handle tilegx*.
5551 (gdb_host): Handle tilegx-*-linux*.
5552 * tilegx-linux-nat.c: New file.
5553 * config/tilegx/linux.mh: New file.
5554
ade64f0e
PA
55552012-05-30 Jeff Kenton <jkenton@tilera.com>
5556
5557 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5558 tilegx-linux-tdep.o.
5559 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5560 tilegx-linux-tdep.c.
5561 * configure.tgt: Handle tilegx-*-linux*.
5562 * tilegx-tdep.h: New file.
5563 * tilegx-tdep.c: New file.
5564 * tilegx-linux-tdep.c: New file.
5565 * regformats/reg-tilegx.dat: New file.
5566
bb08bdbd
EBM
55672012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5568
5569 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5570 accounting of hw watchpoints on ppc.
5571
ebd86fb5
TJB
55722012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5573
5574 * source.c (openp): Expand tilde in path entries.
5575
0a0edcd5
DE
55762012-05-29 Doug Evans <dje@google.com>
5577
98cc87bd
DE
5578 * buildsym.c (block_compar): Fix comment.
5579 (end_symtab): Fix and clarify some comments.
5580
0a0edcd5
DE
5581 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5582 cleanup_undefined_types.
5583 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5584 All callers updated.
5585
6f0c7050
TT
55862012-05-29 Tom Tromey <tromey@redhat.com>
5587
5588 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5589 fails.
5590 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5591 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5592 fails.
5593 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5594 fails.
5595
ec95993c
TG
55962012-05-29 Tristan Gingold <gingold@adacore.com>
5597
5598 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5599 (struct darwin_info): ... New struct.
5600 (solib_darwin_pspace_data): New variable.
5601 (darwin_pspace_data_cleanup): New function.
5602 (get_darwin_info): Likewise.
5603 (darwin_dyld_version_ok, darwin_load_image_infos)
5604 (darwin_solib_get_all_image_info_addr_at_init)
5605 (darwin_solib_read_all_image_info_addr): Add info argument.
5606 Adjust code.
5607 (darwin_current_sos): Use per pspace structure.
5608 (darwin_solib_create_inferior_hook): Likewise.
5609 (darwin_clear_solib): Likewise.
5610 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5611
ae25568b
PA
56122012-05-28 Pedro Alves <palves@redhat.com>
5613
5614 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5615 block that uses them. Clear ecss before handling each event.
5616
0c5bf5a9
JK
56172012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5618
5619 * solib-svr4.c (svr4_current_sos): New comment on
5620 svr4_current_sos_via_xfer_libraries fall back.
5621
bfb05775
JK
56222012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5625 it as a fallback for TYPE_IS_OPAQUE.
5626 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5627 symbols for lookup_symbol.
5628
685b1105
JK
56292012-05-24 John Steele Scott <toojays@toojays.net>
5630
5631 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5632 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5633 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5634 (check_producer): ... this new function, which also checks for ICC
5635 and caches the result.
5636 (producer_is_icc): New function.
5637 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5638 producer was ICC.
5639
22203bbf
PA
56402012-05-24 Pedro Alves <palves@redhat.com>
5641
5642 PR gdb/7205
5643
5644 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5645 (default_gdb_signal_to_target): ... this. Add comment.
5646 (default_gdb_signal_from_host): Rename to ...
5647 (default_gdb_signal_from_target): ... this. Add comment.
5648 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5649 (default_gdb_signal_to_target): ... this.
5650 (default_gdb_signal_from_host): Rename to ...
5651 (default_gdb_signal_from_target): ... this.
5652 * corelow.c (core_open): Adjust to naming change. Replace comment.
5653 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5654 (gdb_signal_from_target): ... this. Adjust to
5655 default_gdb_signal_from_host naming change. Extend comment.
5656 (gdb_signal_to_host): Rename to ...
5657 (gdb_signal_to_target): ... this. Adjust to
5658 default_gdb_signal_to_host naming change.
5659 * gdbarch.h, gdbarch.c: Renegerate.
5660
a493e3e2
PA
56612012-05-24 Pedro Alves <palves@redhat.com>
5662
5663 PR gdb/7205
5664
f782ad9b 5665 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5666
2ea28649
PA
56672012-05-24 Pedro Alves <palves@redhat.com>
5668
5669 PR gdb/7205
5670
5671 Replace target_signal with gdb_signal throughout.
5672
b09846a9
PA
56732012-05-24 Pedro Alves <palves@redhat.com>
5674
5675 PR tui/14159
5676
5677 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5678 string, instead of reusing the va_list argument.
5679
e77c107e
TT
56802012-05-24 Tom Tromey <tromey@redhat.com>
5681
5682 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5683 Remove.
5684
9fccedf7
DE
56852012-05-23 Doug Evans <dje@google.com>
5686
d50bd42b
DE
5687 * symtab.c (search_symbols): Formatting fixes.
5688 (print_symbol_info): Formatting fixes.
5689
9fccedf7
DE
5690 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5691 int64_t change to leb128 API.
5692 (read_encoded_value, decode_frame_entry_1): Ditto.
5693 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5694 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5695 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5696 (execute_stack_op): Ditto.
5697 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5698 (safe_read_uleb128, safe_read_sleb128): Ditto.
5699 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5700 (dwarf2_compile_expr_to_ax): Ditto.
5701 (locexpr_describe_location_piece): Ditto.
5702 (disassemble_dwarf_expression): Ditto.
5703 (locexpr_describe_location_1): Ditto.
5704
f3e0e960
SS
57052012-05-23 Stan Shebs <stan@codesourcery.com>
5706 Kwok Cheung Yeung <kcy@codesourcery.com>
5707
5708 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5709 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5710 (mi-cmd-info.o): New rule.
5711 * osdata.h (info_osdata_command): New declaration.
5712 * osdata.c (info_osdata_command): Change to non-static.
5713 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5714 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5715 * mi/mi-cmd-info.c: New file.
5716
c51fe631
DE
57172012-05-23 Doug Evans <dje@google.com>
5718
71cddcc1
DE
5719 * symtab.c (search_symbols): Pass NULL for file_matcher to
5720 expand_symtabs_matching if there are no files to match.
5721
c51fe631
DE
5722 * gdbtypes.c (lookup_typename): Simplify.
5723
a79378d4
PA
57242012-05-23 Pedro Alves <palves@redhat.com>
5725
5726 * arch-utils.h (default_target_signal_to_host): Delete.
5727 * arch-utils.c (default_target_signal_to_host): Delete.
5728 * gdbarch.sh (target_signal_to_host): Remove.
5729 * gdbarch.h, gdbarch.c: Regenerate.
5730
f664829e
DE
57312012-05-22 Doug Evans <dje@google.com>
5732
5733 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5734 "const gdb_byte *".
5735 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5736 (execute_cfa_program): Update to match API of leb128 functions.
5737 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5738 "const gdb_byte *".
5739 (read_unsigned_leb128, read_signed_leb128): Delete.
5740 (read_initial_length): Change type of buf argument to
5741 "const gdb_byte *".
5742 (read_encoded_value): Update to match API of leb128 functions.
5743 (decode_frame_entry): Change result to "const gdb_byte *", and
5744 similarly for "start" parameter.
5745 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5746 (dwarf2_build_frame_info): Change local frame_ptr to
5747 "const gdb_byte *".
5748 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5749 read_uleb128, read_sleb128. All callers updated.
5750 (safe_skip_leb128): New function.
5751 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5752 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5753 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5754 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5755 read_uleb128, read_sleb128.
5756 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5757 (execute_stack_op): Update to match API of leb128 functions.
5758 * dwarf2expr.h: #include "leb128.h".
5759 (read_uleb128, read_sleb128): Delete.
5760 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5761 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5762 * dwarf2loc.c (debug_loc_kind): New enum.
5763 (decode_debug_loc_addresses): New function.
5764 (decode_debug_loc_dwo_addresses): New function.
5765 (dwarf2_find_location_expression): Rewrite.
5766 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5767 (locexpr_describe_location_piece): Ditto.
5768 (disassemble_dwarf_expression): Ditto.
5769 (locexpr_describe_location_1): Ditto.
5770 (loclist_describe_location): Rewrite.
5771 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5772 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5773 (dwarf2_section_buffer_overflow_complaint): Renamed from
5774 dwarf2_macros_too_long_complaint. All callers updated.
5775 (skip_leb128): Delete.
5776 (init_cu_die_reader): Initialize reader->buffer_end.
5777 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5778 (skip_form_bytes): New arg buffer_end. All callers updated.
5779 Replace call to skip_leb128 with gdb_skip_leb128.
5780 (skip_unknown_opcode): New arg mac_end. All callers updated.
5781 (fill_in_loclist_baton): Initialize baton->from_dwo.
5782
837a1b32
MR
57832012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5784
5785 * mips-linux-nat.c (mips_linux_read_description): Use a more
5786 verbose error message.
5787
d0e64392
MR
57882012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5789
5790 * NEWS: Add MIPS/Linux DSP support.
5791 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5792 (SIGCONTEXT_DSPCTL): New macro.
5793 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5794 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5795 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5796 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5797 (N64_SIGCONTEXT_HI3): Likewise.
5798 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5799 (N64_SIGCONTEXT_LO3): Likewise.
5800 (N64_SIGCONTEXT_DSPCTL): Likewise.
5801 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5802 (mips_linux_o32_sigframe_init): Handle DSP registers.
5803 (mips_linux_n32n64_sigframe_init): Likewise.
5804
8bea7ed1
PM
58052012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5806
5807 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5808 call to abort.
5809
dab06dbe
PA
58102012-05-22 Pedro Alves <palves@redhat.com>
5811
5812 * target.h (store_waitstatus): Move declaration ...
5813 * inf-child.h (store_waitstatus): ... here.
5814 * target.c: Move inclusion of gdb_wait.h, and ...
5815 (store_waitstatus): ... this ...
5816 * inf-child.c: ... here.
5817 * linux-nat.c: Include inf-child.h.
5818 * rs6000-nat.c: Include inf-child.h.
5819 * spu-linux-nat.c: Include inf-child.h.
5820
43011e52
PM
58212012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5822
5823 * tracepoint.c (start_tracing): Add missing i18n markup.
5824 (stop_tracing, set_trace_user): Ditto.
5825 (set_trace_notes, set_trace_stop_notes): Ditto.
5826
b1af9e97
TT
58272012-05-21 Tom Tromey <tromey@redhat.com>
5828
5829 PR c++/7173:
5830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5831 types.
5832 * value.h (value_cast_pointers): Update.
5833 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5834 (value_cast): Update.
5835 (update_search_result): New function.
5836 (do_search_struct_field): New, from search_struct_field. Check
5837 for ambiguous results.
5838 (search_struct_field): Rewrite.
5839 * infcall.c (value_arg_coerce): Update.
5840 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5841 value_cast_pointers.
5842 * ada-lang.c (ada_convert_actual): Update.
5843
e9e5e6b3
TT
58442012-05-21 Tom Tromey <tromey@redhat.com>
5845
5846 * macroexp.c (macro_stringify): Terminate the string.
5847
1564a261
JK
58482012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5849
5850 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5851 Describe it.
5852 * auto-load.c (auto_load_expand_dir_vars): New function.
5853 (auto_load_safe_path_vec_update): Use it, remove the
5854 substitute_path_component call thanks to it.
5855 (auto_load_objfile_script): Remove the debug_file_directory processing.
5856 Use auto_load_expand_dir_vars, remove the substitute_path_component
5857 call thanks to it.
5858 * configure: Regenerate.
5859 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5860 path. Escape $ also for $debugdir.
5861 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5862 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5863
a3ec0bb1
DE
58642012-05-20 Doug Evans <dje@google.com>
5865
5866 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5867 before use. Check for symtab->includes == NULL before scanning it.
5868
d467df4e
MR
58692012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5870
5871 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5872
4cc0665f
MR
58732012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5874
5875 * NEWS: Add microMIPS support and "set mips compression",
5876 "show mips compression" commands.
5877 * mips-tdep.h (mips_isa): New enum.
5878 (gdbarch_tdep): Add mips_isa.
5879 (mips_pc_is_mips16): Update prototype.
5880 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5881 * mips-tdep.c (mips_compression_mips16): New variable.
5882 (mips_compression_micromips): Likewise.
5883 (mips_compression_strings): Likewise.
5884 (mips_compression_string): Likewise.
5885 (is_mips16_isa, is_micromips_isa): New functions.
5886 (is_mips16_addr): Rename to...
5887 (is_compact_addr): ... this.
5888 (unmake_mips16_addr): Likewise to...
5889 (unmake_compact_addr): ... this.
5890 (make_mips16_addr): Likewise to...
5891 (make_compact_addr): ... this.
5892 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5893 functions.
5894 (mips_elf_make_msymbol_special): Handle microMIPS code.
5895 (msymbol_is_special): Rename to...
5896 (msymbol_is_mips16): ... this.
5897 (mips_make_symbol_special, mips_pc_is_mips16): Update
5898 accordingly.
5899 (msymbol_is_mips, msymbol_is_micromips): New functions.
5900 (mips16_to_32_reg): Rename to...
5901 (mips_reg3_to_reg): ... this.
5902 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5903 (mips_pc_isa): Likewise.
5904 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5905 code.
5906 (mips_fetch_instruction): Pass return status instead of printing
5907 an error message if requested. Handle microMIPS code. Bail out
5908 on an invalid ISA.
5909 (micromips_op): New macro.
5910 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5911 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5912 (b6s4_op, b7s3_reg): Likewise.
5913 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5914 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5915 (mips_insn_size): New function.
5916 (mips32_next_pc): Update mips_fetch_instruction call.
5917 (micromips_relative_offset7): New function.
5918 (micromips_relative_offset10): Likewise.
5919 (micromips_relative_offset16): Likewise.
5920 (micromips_pc_insn_size): Likewise.
5921 (micromips_bc1_pc): Likewise.
5922 (micromips_next_pc): Likewise.
5923 (unpack_mips16): Update mips_fetch_instruction call.
5924 (extended_mips16_next_pc): Update according to change to
5925 mips16_to_32_reg.
5926 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5927 code.
5928 (mips16_scan_prologue): Update mips_fetch_instruction call.
5929 Update according to change to mips16_to_32_reg.
5930 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5931 (mips_insn16_frame_base_sniffer): Likewise.
5932 (micromips_decode_imm9): New function.
5933 (micromips_scan_prologue): Likewise.
5934 (mips_micro_frame_cache): Likewise.
5935 (mips_micro_frame_this_id): Likewise.
5936 (mips_micro_frame_prev_register): Likewise.
5937 (mips_micro_frame_sniffer): Likewise.
5938 (mips_micro_frame_unwind): New variable.
5939 (mips_micro_frame_base_address): New function.
5940 (mips_micro_frame_base): New variable.
5941 (mips_micro_frame_base_sniffer): New function.
5942 (mips32_scan_prologue): Update mips_fetch_instruction call.
5943 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5944 rather than for MIPS16.
5945 (mips_insn32_frame_base_sniffer): Likewise.
5946 (mips_addr_bits_remove): Handle microMIPS code.
5947 (deal_with_atomic_sequence): Rename to...
5948 (mips_deal_with_atomic_sequence): ... this. Update the type
5949 of the variable used to hold an instruction. Remove the ISA bit
5950 check. Update mips_fetch_instruction call.
5951 (micromips_deal_with_atomic_sequence): New function.
5952 (deal_with_atomic_sequence): Likewise.
5953 (mips_about_to_return): Handle microMIPS code. Update
5954 mips_fetch_instruction call.
5955 (heuristic_proc_start): Check for the standard MIPS ISA rather
5956 than for MIPS16. Update mips_pc_is_mips16 and
5957 mips_fetch_instruction calls. Handle microMIPS code.
5958 (mips_push_dummy_code): Handle microMIPS code.
5959 (mips_eabi_push_dummy_call): Likewise.
5960 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5961 (mips_o64_push_dummy_call): Handle microMIPS code.
5962 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5963 (is_delayed): Remove function.
5964 (mips_single_step_through_delay): Replace the call to is_delayed
5965 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5966 Handle microMIPS code.
5967 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5968 microMIPS code.
5969 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5970 call.
5971 (micromips_in_function_epilogue_p): New function.
5972 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5973 call.
5974 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5975 Handle microMIPS.
5976 (gdb_print_insn_mips): Likewise.
5977 (mips_breakpoint_from_pc): Likewise.
5978 (mips_remote_breakpoint_from_pc): New function.
5979 (mips32_instruction_has_delay_slot): Simplify making use of the
5980 updated mips_fetch_instruction interface.
5981 (micromips_instruction_has_delay_slot): New function.
5982 (mips16_instruction_has_delay_slot): Simplify making use of the
5983 updated mips_fetch_instruction interface.
5984 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5985 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5986 calls. Handle microMIPS code.
5987 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5988 (mips_skip_trampoline_code): Handle microMIPS code.
5989 (global_mips_compression): New function.
5990 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5991 file flags. Register the microMIPS remote breakpoint handler
5992 and heuristic frame unwinder.
5993 (show_mips_compression): New function.
5994 (_initialize_mips_tdep): Add the "set mips compression" and
5995 "show mips compression" commands.
5996
22e048c9
SDJ
59972012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5998
5999 * ada-lang.c:
6000 * ada-tasks.c:
6001 * ada-varobj.c:
6002 * amd64-darwin-tdep.c:
6003 * arm-symbian-tdep.c:
6004 * arm-tdep.c:
6005 * avr-tdep.c:
6006 * ax-gdb.c:
6007 * bfin-linux-tdep.c:
6008 * breakpoint.c:
6009 * c-valprint.c:
6010 * cli/cli-cmds.c:
6011 * coffread.c:
6012 * cp-support.c:
6013 * cris-tdep.c:
6014 * dwarf2-frame-tailcall.c:
6015 * dwarf2-frame.c:
6016 * dwarf2expr.c:
6017 * dwarf2loc.c:
6018 * dwarf2read.c:
6019 * elfread.c:
6020 * eval.c:
6021 * expprint.c:
6022 * f-valprint.c:
6023 * frv-tdep.c:
6024 * h8300-tdep.c:
6025 * hppa-hpux-tdep.c:
6026 * hppa-tdep.c:
6027 * hppanbsd-tdep.c:
6028 * i386-nto-tdep.c:
6029 * i386-tdep.c:
6030 * i387-tdep.c:
6031 * ia64-tdep.c:
6032 * jit.c:
6033 * linespec.c:
6034 * linux-tdep.c:
6035 * lm32-tdep.c:
6036 * m2-valprint.c:
6037 * m32c-tdep.c:
6038 * m32r-rom.c:
6039 * m32r-tdep.c:
6040 * m68k-tdep.c:
6041 * m68klinux-tdep.c:
6042 * mi/mi-main.c:
6043 * microblaze-tdep.c:
6044 * mips-linux-tdep.c:
6045 * mips-tdep.c:
6046 * mn10300-tdep.c:
6047 * p-valprint.c:
6048 * parse.c:
6049 * ppc-linux-tdep.c:
6050 * ppc-sysv-tdep.c:
6051 * printcmd.c:
6052 * python/py-finishbreakpoint.c:
6053 * python/py-inferior.c:
6054 * python/py-infthread.c:
6055 * python/py-type.c:
6056 * python/python.c:
6057 * remote-fileio.c:
6058 * remote-m32r-sdi.c:
6059 * remote-mips.c:
6060 * reverse.c:
6061 * rl78-tdep.c:
6062 * rs6000-aix-tdep.c:
6063 * rs6000-tdep.c:
6064 * s390-tdep.c:
6065 * score-tdep.c:
6066 * sh64-tdep.c:
6067 * skip.c:
6068 * solib-darwin.c:
6069 * solib-dsbt.c:
6070 * solib-frv.c:
6071 * sparc-tdep.c:
6072 * spu-multiarch.c:
6073 * spu-tdep.c:
6074 * stack.c:
6075 * symfile.c:
6076 * symtab.c:
6077 * tic6x-tdep.c:
6078 * tracepoint.c:
6079 * v850-tdep.c:
6080 * valarith.c:
6081 * valprint.c:
6082 * value.c:
6083 * xcoffread.c:
6084 * xtensa-tdep.c:
6085 * ada-lang.c:
6086 * ada-tasks.c:
6087 * ada-varobj.c:
6088 * amd64-darwin-tdep.c:
6089 * arm-symbian-tdep.c:
6090 * arm-tdep.c: Delete unused variables.
6091
aff139ff
JK
60922012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6093
6094 Rename $ddir to $datadir.
6095 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6096 * auto-load.c (auto_load_safe_path_vec_update)
6097 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6098 * configure: Regenerate.
6099 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6100 Likewise. Remove the 'use $ddir' help string.
6101
f7bfa992
JK
61022012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6103
6104 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6105 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6106
9cb709b6
TT
61072012-05-18 Tom Tromey <tromey@redhat.com>
6108
6109 PR exp/13907:
6110 * valprint.h (struct value_print_options) <symbol_print>: New
6111 field.
6112 * valprint.c (user_print_options): Add default for symbol_print.
6113 (show_symbol_print): New function.
6114 (generic_val_print): Respect symbol_print.
6115 (_initialize_valprint): Add "print symbol" setting.
6116 * f-valprint.c (f_val_print): Respect symbol_print.
6117 * c-valprint.c (c_val_print): Respect symbol_print.
6118 * NEWS: Update.
6119 * printcmd.c (print_address_symbolic): Return int. Ignore some
6120 zero-size symbols.
6121 (print_address_demangle): Return int.
6122 * defs.h: (print_address_symbolic): Return int.
6123 * value.h (print_address_demangle): Return int.
6124
b012acdd
TT
61252012-05-18 Tom Tromey <tromey@redhat.com>
6126
6127 * valprint.c (val_print_string): Don't print leading space.
6128 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6129 print space before string or vtbl.
6130 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6131 before string.
6132 * jv-valprint.c (java_value_print): Print space before string.
6133 * go-valprint.c (print_go_string): Print space before string.
6134 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6135 space before string.
6136 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6137 space before string or vtbl.
6138 * auxv.c (fprint_target_auxv): Print space after address.
6139
1d51a733
TT
61402012-05-18 Tom Tromey <tromey@redhat.com>
6141
6142 * printcmd.c (print_address_demangle): Remove special case for 0.
6143
edf0c1b7
TT
61442012-05-18 Tom Tromey <tromey@redhat.com>
6145
6146 * printcmd.c (print_address_demangle): Add 'opts' argument.
6147 * p-valprint.c (pascal_val_print): Update.
6148 * jv-valprint.c (java_val_print): Update.
6149 * value.h: Update.
6150 * valprint.c (generic_val_print): Update.
6151 (print_function_pointer_address): Add 'options' argument. Remove
6152 'addressprint' argument. Update.
6153 * m2-valprint.c (print_unpacked_pointer): Update.
6154 * gnu-v3-abi.c (print_one_vtable): Update.
6155 (gnuv3_print_method_ptr): Update.
6156 * f-valprint.c (f_val_print): Update.
6157 * cp-valprint.c (cp_print_value_fields): Update.
6158 * valprint.h (print_function_pointer_address): Update.
6159 * c-valprint.c (c_val_print): Update.
6160
9703b513
TT
61612012-05-18 Tom Tromey <tromey@redhat.com>
6162
6163 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6164 directly corresponding to the found psymtab.
6165 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6166 (dw2_find_pc_sect_symtab): Use it.
6167 * block.h (blockvector_contains_pc): Declare.
6168 * block.c (find_block_in_blockvector): New function.
6169 (blockvector_for_pc_sect): Use it.
6170 (blockvector_contains_pc): New function.
6171
5a439849
MR
61722012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6173
6174 * mips-tdep.h (mips_write_pc): New prototype.
6175 * mips-tdep.c (mips_write_pc): Make external, add description.
6176 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6177 add description.
6178
8376de04
MR
61792012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6180
6181 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6182 mips_regnum->pc.
6183 (mips_unwind_pc, mips_write_pc): Likewise.
6184 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6185 gdbarch_read_pc.
6186
d3581e61
JB
61872012-05-17 Joel Brobecker <brobecker@adacore.com>
6188
6189 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6190 proc_warn, proc_error, proc_get_status, proc_flags,
6191 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6192 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6193 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6194 proc_stop_process, proc_wait_for_stop, proc_run_process,
6195 proc_set_traced_signals, proc_set_traced_faults,
6196 proc_set_traced_sysentry, proc_set_traced_sysexit,
6197 proc_set_held_signals, proc_get_held_signals,
6198 proc_get_traced_signals, proc_get_traced_faults,
6199 proc_get_traced_sysentry, proc_get_traced_sysexit,
6200 proc_clear_current_fault, proc_set_current_signal,
6201 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6202 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6203 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6204 proc_get_current_thread, proc_get_current_thread,
6205 proc_get_current_thread, proc_update_threads,
6206 proc_update_threads, proc_update_threads, proc_update_threads,
6207 proc_iterate_over_threads, procfs_find_new_threads,
6208 procfs_pid_to_str): Make static. Remove advance declaration.
6209 (proc_cursig): Make static. Conditionalized defintion on
6210 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6211 (proc_syscall, proc_set_kill_on_last_close,
6212 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6213 proc_get_pending_signals, proc_get_signal_actions,
6214 proc_trace_signal, proc_ignore_signal): Delete.
6215
81b9b86e
SDJ
62162012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6217
6218 * coffread.c (cs_section_address): Passing proper argument for
6219 `bfd_get_section_vma'.
6220 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6221 `bfd_get_section_flags'.
6222 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6223 `bfd_get_section_vma'.
6224
abc9d0dc
TT
62252012-05-16 Tom Tromey <tromey@redhat.com>
6226
6227 PR macros/13205:
6228 * macrotab.h: (macro_define_special): Declare.
6229 (enum macro_special_kind): New.
6230 (struct macro_definition) <argc, replacement>: Update comments.
6231 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6232 (macro_define_object_internal): New function.
6233 (macro_define_object): Use it.
6234 (macro_define_special): New function.
6235 (fixup_definition): New function.
6236 (macro_lookup_definition, foreach_macro_in_scope)
6237 (foreach_macro): Use fixup_definition.
6238 * macroexp.h (macro_stringify): Declare.
6239 * macroexp.c (free_buffer_return_text): New function.
6240 (stringify): Constify "arg".
6241 (macro_stringify): New function.
6242 * dwarf2read.c (macro_start_file): Call macro_define_special.
6243
6a3a010b 62442012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6245 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6246
6247 * breakpoint.h (bp_location): Add related_address member.
6248 * inferior.h (get_return_value): Take a pointer to struct value
6249 instead of struct type for the function requested.
6250 * value.h (using_struct_return): Likewise.
6251 * gdbarch.sh (return_value): Take a pointer to struct value
6252 instead of struct type for the function requested.
6253 * breakpoint.c (set_breakpoint_location_function): Initialize
6254 related_address for bp_gnu_ifunc_resolver breakpoints.
6255 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6256 requested function's address to gdbarch_return_value.
6257 * eval.c (evaluate_subexp_standard): Pass the requested
6258 function's address to using_struct_return.
6259 * infcall.c (call_function_by_hand): Pass the requested
6260 function's address to using_struct_return and
6261 gdbarch_return_value.
6262 * infcmd.c (get_return_value): Take a pointer to struct value
6263 instead of struct type for the function requested.
6264 (print_return_value): Update accordingly.
6265 (finish_command_continuation): Likewise.
6266 * stack.c (return_command): Pass the requested function's
6267 address to using_struct_return and gdbarch_return_value.
6268 * value.c (using_struct_return): Take a pointer to struct value
6269 instead of struct type for the function requested. Pass the
6270 requested function's address to gdbarch_return_value.
6271 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6272 New function_value member, replacing function_type.
6273 (bpfinishpy_dealloc): Update accordingly.
6274 (bpfinishpy_pre_stop_hook): Likewise.
6275 (bpfinishpy_init): Likewise. Record the requested function's
6276 address.
6277 * mips-tdep.c (mips_fval_reg): New enum.
6278 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6279 words put in GP registers.
6280 (mips_o64_push_dummy_call): Update a comment.
6281 (mips_o32_return_value): Take a pointer to struct value instead
6282 of struct type for the function requested and use it to check if
6283 using the MIPS16 calling convention. Return the designated
6284 general purpose registers for floating-point values returned in
6285 MIPS16 mode.
6286 (mips_o64_return_value): Likewise.
6287 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6288 (ppc_sysv_abi_broken_return_value): Likewise.
6289 (ppc64_sysv_abi_return_value): Likewise.
6290 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6291 value instead of struct type for the function requested.
6292 * amd64-tdep.c (amd64_return_value): Likewise.
6293 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6294 * arm-tdep.c (arm_return_value): Likewise.
6295 * avr-tdep.c (avr_return_value): Likewise.
6296 * bfin-tdep.c (bfin_return_value): Likewise.
6297 * cris-tdep.c (cris_return_value): Likewise.
6298 * frv-tdep.c (frv_return_value): Likewise.
6299 * h8300-tdep.c (h8300_return_value): Likewise.
6300 (h8300h_return_value): Likewise.
6301 * hppa-tdep.c (hppa32_return_value): Likewise.
6302 (hppa64_return_value): Likewise.
6303 * i386-tdep.c (i386_return_value): Likewise.
6304 * ia64-tdep.c (ia64_return_value): Likewise.
6305 * iq2000-tdep.c (iq2000_return_value): Likewise.
6306 * lm32-tdep.c (lm32_return_value): Likewise.
6307 * m32c-tdep.c (m32c_return_value): Likewise.
6308 * m32r-tdep.c (m32r_return_value): Likewise.
6309 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6310 * m68k-tdep.c (m68k_return_value): Likewise.
6311 (m68k_svr4_return_value): Likewise.
6312 * m88k-tdep.c (m88k_return_value): Likewise.
6313 * mep-tdep.c (mep_return_value): Likewise.
6314 * microblaze-tdep.c (microblaze_return_value): Likewise.
6315 * mn10300-tdep.c (mn10300_return_value): Likewise.
6316 * moxie-tdep.c (moxie_return_value): Likewise.
6317 * mt-tdep.c (mt_return_value): Likewise.
6318 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6319 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6320 (ppc_sysv_abi_broken_return_value): Likewise.
6321 (ppc64_sysv_abi_return_value): Likewise.
6322 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6323 * rl78-tdep.c (rl78_return_value): Likewise.
6324 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6325 * rx-tdep.c (rx_return_value): Likewise.
6326 * s390-tdep.c (s390_return_value): Likewise.
6327 * score-tdep.c (score_return_value): Likewise.
6328 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6329 (sh_return_value_fpu): Likewise.
6330 * sh64-tdep.c (sh64_return_value): Likewise.
6331 * sparc-tdep.c (sparc32_return_value): Likewise.
6332 * sparc64-tdep.c (sparc64_return_value): Likewise.
6333 * spu-tdep.c (spu_return_value): Likewise.
6334 * tic6x-tdep.c (tic6x_return_value): Likewise.
6335 * v850-tdep.c (v850_return_value): Likewise.
6336 * vax-tdep.c (vax_return_value): Likewise.
6337 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6338 * xtensa-tdep.c (xtensa_return_value): Likewise.
6339 * gdbarch.c: Regenerate.
6340 * gdbarch.h: Regenerate.
6341
29ca12b3
TT
63422012-05-15 Tom Tromey <tromey@redhat.com>
6343
6344 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6345
588ae58c
JB
63462012-05-15 Joel Brobecker <brobecker@adacore.com>
6347
6348 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6349 of command in two error message.
6350
855a6e68
JB
63512012-05-15 Joel Brobecker <brobecker@adacore.com>
6352
6353 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6354
d634f2de
JB
63552012-05-15 Joel Brobecker <brobecker@adacore.com>
6356
6357 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6358
9cc815f5
JK
63592012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6360
6361 * NEWS (show auto-load scripts-directory): Add forgotten command.
6362
6a609e58
JK
63632012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6366 parameters.
6367
ac1438b5
L
63682012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6369
6370 * amd64-tdep.c: Include features/i386/x32.c and
6371 features/i386/x32-avx.c.
6372 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6373 initialize_tdesc_x32_avx.
6374
e7e0cddf
SS
63752012-05-14 Stan Shebs <stan@codesourcery.com>
6376
6377 Add dynamic printf.
6378 * breakpoint.h (enum bptype): New type bp_dprintf.
6379 (struct breakpoint): New field extra_string.
6380 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6381 (create_breakpoint): Add extra_string arg.
6382 * breakpoint.c (dprintf_breakpoint_ops): New.
6383 (is_breakpoint): Add bp_dprintf.
6384 (bpstat_what): Add dprintf case.
6385 (bptype_string): Ditto.
6386 (print_one_breakpoint_location): Ditto.
6387 (init_bp_location): Ditto.
6388 (bkpt_print_mention): Ditto.
6389 (dprintf_style_enums): New array.
6390 (dprintf_style): New global.
6391 (dprintf_function): New global.
6392 (dprintf_channel): New global.
6393 (update_dprintf_command_list): New function.
6394 (update_dprintf_commands): New function.
6395 (init_breakpoint_sal): Add extra_string argument, handle it.
6396 (create_breakpoint_sal): Add extra_string argument.
6397 (create_breakpoints_sal): Add extra_string argument, update callers.
6398 (find_condition_and_thread): Add extra argument.
6399 (create_breakpoint): Add extra_string argument, record it.
6400 (dprintf_command): New function.
6401 (break_command_1): Add arg to create_breakpoint call.
6402 (handle_gnu_v3_exceptions): Ditto.
6403 (trace_command): Ditto.
6404 (ftrace_command): Ditto.
6405 (strace_command): Ditto.
6406 (bkpt_print_mention): Add dprintf case.
6407 (create_breakpoint_sal_default): Add extra_string argument.
6408 (_initialize_breakpoint): Add new commands.
6409 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6410 * python/py-breakpoint.c (bppy_init): Ditto.
6411 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6412
8ae38c14
MR
64132012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6414
6415 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6416
9f676e66
SCR
64172012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6418
6419 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6420 unsigned long long.
6421
7efc75aa
SCR
64222012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6423
6424 Add a new function gdb.find_pc_line to the Python API.
6425 * NEWS (Python Scripting): Add entry about the new function.
6426 * python/python.c (gdbpy_find_pc_line): New function which
6427 implements gdb.find_pc_line.
6428 (GdbMethods): Add entry for the new function.
6429
70af3797
PA
64302012-05-12 Pedro Alves <palves@redhat.com>
6431
6432 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6433 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6434
06da564e
EZ
64352012-05-12 Eli Zaretskii <eliz@gnu.org>
6436
6437 * inferior.c: Include completer.h
6438 (initialize_inferiors): Set completer of add-inferior to
6439 filename_completer.
6440
0288cee2
L
64412012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6442
6443 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6444 gdbarch_ptr_bit for x32 core dump.
6445
f6537a2c
L
64462012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6447
6448 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6449 and features/i386/x32-avx-linux.c.
6450
85d4a676
SS
64512012-05-11 Stan Shebs <stan@codesourcery.com>
6452 Kwok Cheung Yeung <kcy@codesourcery.com>
6453
6454 * NEWS: Describe new info os commands.
6455 * common/linux-osdata.c (PID_T, TIME_T): Define.
6456 (MAX_PID_T_STRLEN): New.
6457 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6458 MAX_PID_T_STRLEN.
6459 (command_from_pid): Add comment. Change to use PID_T.
6460 (commandline_from_pid): Change to use PID_T.
6461 (user_from_pid): Add comment.
6462 (get_process_owner): Add comment. Change to use PID_T and
6463 MAX_PID_T_STRLEN.
6464 (get_number_of_cpu_cores): Add comment.
6465 (get_cores_used_by_process): Add comment. Change to use PID_T and
6466 MAX_PID_T_STRLEN.
6467 (linux_xfer_osdata_processes): Change to use PID_T and
6468 MAX_PID_T_STRLEN.
6469 (compare_processes): New function.
6470 (linux_xfer_osdata_processgroups): New function.
6471 (linux_xfer_osdata_threads): Change to use PID_T.
6472 (linux_xfer_osdata_fds): New function.
6473 (format_socket_state, print_sockets): New functions.
6474 (union socket_addr): New union.
6475 (linux_xfer_osdata_isockets): New function.
6476 (time_from_time_t, group_from_gid): New functions.
6477 (linux_xfer_osdata_shm): New function.
6478 (linux_xfer_osdata_sem): New function.
6479 (linux_xfer_osdata_msg): New function.
6480 (linux_xfer_osdata_modules): New function.
6481 (osdata_table): Add new entries.
6482 * common/buffer.c (buffer_xml_printf): Add support for long and
6483 long long format specifiers.
6484
f24afd6d
L
64852012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6486
6487 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6488 (tdesc_x32_avx_linux): Likewise.
6489
7349ff92
JK
64902012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6491
6492 Implement multi-component --with-auto-load-dir.
6493 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6494 entries.
6495 (--with-auto-load-safe-path): Update the default value description.
6496 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6497 New.
6498 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6499 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6500 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6501 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6502 "set auto-load scripts-directory".
6503 * config.in: Regenerate.
6504 * configure: Regenerate.
6505 * configure.ac (--with-auto-load-dir): New configure option.
6506 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6507
6dea1fbd
JK
65082012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6509
6510 Provide $ddir substitution for --with-auto-load-safe-path.
6511 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6512 entries.
6513 * auto-load.c: Include observer.h.
6514 (auto_load_safe_path_vec_update): Call substitute_path_component for
6515 each component. New variable ddir_subst.
6516 (auto_load_gdb_datadir_changed): New function.
6517 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6518 AUTO_LOAD_SAFE_PATH. New comment.
6519 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6520 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6521 * config.in: Regenerate.
6522 * configure: Regenerate.
6523 * configure.ac (--auto-load-safe-path): Rename
6524 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6525 GDB_DATADIR/auto-load.
6526 * defs.h (substitute_path_component): New declaration.
6527 * top.c: Include observer.h.
6528 (set_gdb_datadir): New function.
6529 (init_main): Install it for "set data-directory".
6530 * utils.c (substitute_path_component): New function.
6531
b09aca3a
JK
65322012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6533
6534 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6535 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6536 DEBUG_FILE_DIRECTORY. Handle multiple components of
6537 DEBUG_FILE_DIRECTORY.
6538
95554aad
TT
65392012-05-10 Tom Tromey <tromey@redhat.com>
6540
6541 * dwarf2read.c (recursively_write_psymbols): New function.
6542 (write_psymtabs_to_index): Use it.
6543
6544 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6545 field.
6546 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6547 (load_partial_comp_unit): Update.
6548 (queue_comp_unit): Add argument 'pretend_language'.
6549 (process_queue): Update.
6550 (psymtab_to_symtab_1): Skip dependencies that have a user.
6551 (load_partial_comp_unit_reader): Give meaning to the 'data'
6552 argument.
6553 (load_full_comp_unit): Add 'pretend_language' argument.
6554 (process_full_comp_unit): Add 'pretend_language' argument. Set
6555 language on CU.
6556 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6557 Update.
6558 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6559 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6560 Update.
6561 (prepare_one_comp_unit): Add 'pretend_language' argument.
6562
6563 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6564 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6565 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6566 (dw2_do_instantiate_symtab): Check whether symtab was read in
6567 before queueing.
6568 (dw2_instantiate_symtab): Add assertion. Call
6569 process_cu_includes.
6570 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6571 (partial_symtab_p): New typedef.
6572 (set_partial_user): New function.
6573 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6574 (scan_partial_symbols): Add imported CU to imported_symtabs.
6575 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6576 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6577 (get_symtab, recursively_compute_inclusions)
6578 (compute_symtab_includes, process_cu_includes)
6579 (process_imported_unit_die): New functions.
6580 (process_die) <DW_TAG_imported_unit>: New case.
6581 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6582
6583 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6584 comment.
6585 (struct partial_die_info) <locdesc>: Remove.
6586 <d>: New field.
6587 (process_psymtab_comp_unit): Add 'read_partial' argument.
6588 Update.
6589 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6590 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6591 (add_partial_symbol): Update.
6592 (process_die): Handle DW_TAG_partial_unit.
6593 (read_file_scope): Update comment.
6594 (load_partial_dies): Handle DW_TAG_imported_unit.
6595 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6596 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6597
e871fbb9
TT
65982012-05-10 Tom Tromey <tromey@redhat.com>
6599
6600 * cc-with-dwz.sh: New file.
6601
b5b04b5b
TT
66022012-05-10 Tom Tromey <tromey@redhat.com>
6603
6604 * symtab.h (struct symtab) <includes, user>: New fields.
6605 * block.h (struct block_iterator) <d, idx, which>: New fields.
6606 * block.c (initialize_block_iterator, find_iterator_symtab)
6607 (block_iterator_step, block_iter_name_step)
6608 (block_iter_match_step): New functions.
6609 (block_iterator_first, block_iterator_next)
6610 (block_iter_name_first, block_iter_name_next)
6611 (block_iter_match_first, block_iter_match_next): Rewrite.
6612 (get_block_symtab): New function.
6613
84a146c9
TT
66142012-05-10 Tom Tromey <tromey@redhat.com>
6615
6616 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6617 set_block_symtab.
6618 * jit.c (finalize_symtab): Use allocate_global_block,
6619 set_block_symtab.
6620 * buildsym.c (finish_block_internal): New function, from old
6621 finish_block.
6622 (finish_block): Rewrite.
6623 (end_symtab): Use finish_block_internal, set_block_symtab.
6624 * block.h (struct global_block): New.
6625 (allocate_global_block, set_block_symtab): Declare.
6626 * block.c (allocate_global_block, set_block_symtab): New
6627 functions.
6628
9439a077
TT
66292012-05-10 Tom Tromey <tromey@redhat.com>
6630
6631 * psymtab.c (partial_map_expand_apply): Add assertion.
6632 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6633 (psymtab_to_symtab): Find unshared psymtab.
6634 (dump_psymtab): Print including psymtabs.
6635 (recursively_search_psymtabs): New function.
6636 (expand_symtabs_matching_via_partial): Use it.
6637 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6638 fields.
6639 (enum psymtab_search_status): New.
6640
8157b174
TT
66412012-05-10 Tom Tromey <tromey@redhat.com>
6642
6643 * tracepoint.c (scope_info): Update.
6644 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6645 (find_pc_sect_symtab, search_symbols)
6646 (default_make_symbol_completion_list_break_on)
6647 (make_file_symbol_completion_list): Update.
6648 * symmisc.c (dump_symtab_1): Update.
6649 * stack.c (print_frame_args, iterate_over_block_locals)
6650 (print_frame_labels, iterate_over_block_arg_vars): Update.
6651 * python/py-block.c (block_object) <dict>: Remove.
6652 <block>: New field.
6653 <iter>: Change type.
6654 (blpy_iter): Update.
6655 (blpy_block_syms_iternext): Update.
6656 * psymtab.c (map_block): Use block iterators.
6657 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6658 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6659 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6660 * infrun.c (check_exception_resume): Update.
6661 * cp-support.c (make_symbol_overload_list_block): Update.
6662 * coffread.c (patch_opaque_types): Update.
6663 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6664 * block.h (struct block_iterator): New.
6665 (block_iterator_first, block_iterator_next, block_iter_name_first)
6666 (block_iter_name_next, block_iter_match_first)
6667 (block_iter_match_next): Declare.
6668 (ALL_BLOCK_SYMBOLS): Redefine.
6669 * block.c (block_iterator_first, block_iterator_next)
6670 (block_iter_name_first, block_iter_name_next)
6671 (block_iter_match_first, block_iter_match_next): New functions.
6672 * ada-lang.c (ada_add_block_symbols)
6673 (ada_make_symbol_completion_list): Use block iterator.
6674
a2ca7a52
TT
66752012-05-10 Tom Tromey <tromey@redhat.com>
6676
6677 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6678 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6679 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6680 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6681 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6682 Update.
6683
64ea88dc
JB
66842012-05-10 Joel Brobecker <brobecker@adacore.com>
6685
6686 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6687 print-file-var-lib2.c, print-file-var-main.c and
6688 print-file-var.exp (located in gdb/testsuite/gdb.base).
6689
99a547d6
JB
66902012-05-10 Joel Brobecker <brobecker@adacore.com>
6691
6692 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6693 try locating the symbol in the symbol's own objfile first, before
6694 extending the search to all objfiles.
6695 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6696 out of lookup_symbol_aux_symtabs.
6697 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6698 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6699 Do not search EXCLUDE_OBJFILE.
6700 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6701 (lookup_symbol_global): Search for matches in the block's objfile
6702 first, before searching all other objfiles.
6703
0ece64fd
TG
67042012-05-10 Tristan Gingold <gingold@adacore.com>
6705
6706 * printcmd.c (set_command): Add pre/post inc/dec.
6707
3d16a105
FCE
67082012-05-09 Frank Ch. Eigler <fche@redhat.com>
6709
6710 * gdb.1: Document -ex option.
6711
2efbc0f7
JB
67122012-05-09 Joel Brobecker <brobecker@adacore.com>
6713
6714 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6715 * inferior.h (AT_SYMBOL): Delete.
6716
2c76a0c7
JB
67172012-05-09 Joel Brobecker <brobecker@adacore.com>
6718
6719 * mips-tdep.c (mips_push_dummy_code): New function.
6720 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6721 ON_STACK and install mips_push_dummy_code as our gdbarch
6722 push_dummy_code routine.
6723
9401a810
PA
67242012-05-09 Pedro Alves <palves@redhat.com>
6725
6726 * target.c (set_maintenance_target_async_permitted): Rename to ...
6727 (set_target_async_command): ... this.
6728 (show_maintenance_target_async_permitted): Rename to ...
6729 (show_target_async_command): ... this.
6730 (initialize_targets): Adjust.
6731
3929b321
DE
67322012-05-08 Doug Evans <dje@google.com>
6733
6734 * go-exp.y (classify_name): Add missing assignment of fields of
6735 yylval.ssym.
6736
c41535fd
EZ
67372012-05-08 Eli Zaretskii <eliz@gnu.org>
6738
6739 Display the ">" prompt in interactive mode while reading canned
6740 commands, even when the current interpreter is MI.
6741
6742 * interps.c (interp_set_temp): New function.
6743
6744 * interps.h (interp_set_temp): Add prototype.
6745
6746 * cli/cli-script.c (restore_interp): New cleanup function.
6747 (read_command_lines): Temporarily override the current interpreter
6748 with CLI and arrange for restoring the original one.
6749
c0749c4d
JS
67502012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6751
6752 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6753
d7333987
SDJ
67542012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6755
6756 * probe.c (parse_probes): Move conditional to check for
6757 debuginfo files from here...
6758 * stap-probe.c (stap_get_probes): ... to here.
6759
649e6d92
MK
67602012-05-07 Mark Kettenis <kettenis@gnu.org>
6761 H.J. Lu <hongjiu.lu@intel.com>
6762
6763 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6764 `movl %esp, %ebp' for the X32 ABI.
6765
f39c6ffd
TT
67662012-05-07 Tom Tromey <tromey@redhat.com>
6767
6768 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6769 get_DW_TAG_name.
6770 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6771 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6772 (dwarf_stack_op_name): Remove.
6773 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6774 (decode_locdesc): Use get_DW_OP_name.
6775 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6776 (dwarf2_compile_expr_to_ax): Likewise.
6777 (disassemble_dwarf_expression): Likewise.
6778 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6779
1e1f6591
CLT
67802012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6781
6782 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6783 (sh_linux_sigtramp_cache): New function.
6784 (sh_linux_sigreturn_init): New function.
6785 (sh_linux_rt_sigreturn_init): New function.
6786 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6787 patterns.
6788 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6789 syscall codes.
6790 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6791 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6792 (sh_linux_init_abi): Add init calls to register new tramp_frame
6793 definitions under 32-bit SH, update comments.
6794
545c08b4
PA
67952012-05-07 Pedro Alves <palves@redhat.com>
6796
daac165e
PA
6797 PR gdb/10952
6798
545c08b4
PA
6799 * amd64-linux-tdep.c: Include glibc-tdep.h.
6800 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6801 gdbarch_skip_solib_resolver callback.
6802
af2c1515
JK
68032012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6804
6805 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6806 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6807 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6808 (add_auto_load_safe_path): Change the error message.
6809 (_initialize_auto_load): Change the "safe-path" help text.
6810 * configure: Regenerate
6811 * configure.ac (--without-auto-load-safe-path): Set
6812 WITH_AUTO_LOAD_SAFE_PATH to /.
6813
1067f998
SDJ
68142012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6815
6816 * stap-probe.h: Do not include unecessary `probe.h'.
6817
45dfa85a
AM
68182012-05-05 Alan Modra <amodra@gmail.com>
6819
6820 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6821 bfd_und_section_ptr.
6822 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6823 and bfd_com_section_ptr.
6824
cf093994
JB
68252012-05-04 Joel Brobecker <brobecker@adacore.com>
6826
762ebb75 6827 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6828
d40dc7a8
JB
68292012-05-04 Joel Brobecker <brobecker@adacore.com>
6830
6831 * windows-nat.h (segment_register_p_ftype): New typedef.
6832 (windows_set_segment_register_p): Add declaration.
6833 * windows-nat.c (segment_register_p): New static global.
6834 (windows_set_segment_register_p): New function.
6835 (do_windows_fetch_inferior_registers): Add special handling
6836 for segment registers.
6837 * amd64-windows-nat.c: #include "amd64-tdep.h".
6838 (amd64_windows_segment_register_p): New function.
6839 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6840 * i386-windows-nat.c: #include "i386-tdep.h".
6841 (i386_windows_segment_register_p): New function.
6842 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6843
52b3699b
TG
68442012-05-04 Tristan Gingold <gingold@adacore.com>
6845
6846 * printcmd.c (set_command): Emit a warning if the expression is not
6847 an assignment.
6848
94c74239
JB
68492012-05-03 Joel Brobecker <brobecker@adacore.com>
6850
6851 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6852 Make static.
6853
fcf57f19
SDJ
68542012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6855
6856 * stap-probe.c (stap_is_operator): Change declaration.
6857 (stap_get_opcode): Change return value.
6858 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6859 `stap_parse_argument_1'.
6860
27d2932e
PA
68612012-05-03 Pedro Alves <pedro@codesourcery.com>
6862
6863 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6864 debug log.
6865
a20ee7a4
SCR
68662012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6867
6868 Add two new methods global_block and static_block to gdb.Symtab
6869 objects.
6870 * NEWS (Python scripting): Add entry about the new methods.
6871 * python/py-symtab.c (stpy_global_block): New function which
6872 implements the gdb.Symtab.global_block() method.
6873 (stpy_static_block): New function which implements the
6874 gdb.Symtab.static_block() method.
6875 (symtab_object_methods): Add entries for the two new methods.
6876
943cb756
DE
68772012-05-03 Doug Evans <dje@google.com>
6878
6879 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6880 files.
6881
f4644a3f
YQ
68822012-05-03 Yao Qi <yao@codesourcery.com>
6883
6884 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6885 space.
6886 (i386_process_record): Ditto.
6887
ef61f180
JB
68882012-05-02 Joel Brobecker <brobecker@adacore.com>
6889
6890 * infcall.c (unwind_on_signal_p): Make static.
6891
02f1df11
JB
68922012-05-02 Joel Brobecker <brobecker@adacore.com>
6893
6894 * sol-thread.c (solaris_pid_to_str): Make static.
6895 (_initialize_sol_thread): Add prototype.
6896
39023530
JB
68972012-05-02 Joel Brobecker <brobecker@adacore.com>
6898
6899 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6900
c6b0c501
CF
69012012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6902
6903 * MAINTAINERS: Remove myself.
6904
1ef71717
JK
69052012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Fix --without-auto-load-safe-path for MS-Windows host platform.
6908 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6909
b31b86a7
EZ
69102012-05-02 Eli Zaretskii <eliz@gnu.org>
6911
6912 * gdb_curses.h: Undefine KEY_EVENT before including curses
6913 headers. Move "#undef MOUSE_MOVED" before any curses header
6914 inclusion.
6915
777532fc
SDJ
69162012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6917
6918 * features/i386/i386-mmx-linux.c: Regenerate.
6919 * features/rs6000/powerpc-32.c: Likewise.
6920 * features/rs6000/powerpc-32l.c: Likewise.
6921 * features/rs6000/powerpc-403.c: Likewise.
6922 * features/rs6000/powerpc-403gc.c: Likewise.
6923 * features/rs6000/powerpc-405.c: Likewise.
6924 * features/rs6000/powerpc-505.c: Likewise.
6925 * features/rs6000/powerpc-601.c: Likewise.
6926 * features/rs6000/powerpc-602.c: Likewise.
6927 * features/rs6000/powerpc-603.c: Likewise.
6928 * features/rs6000/powerpc-604.c: Likewise.
6929 * features/rs6000/powerpc-64.c: Likewise.
6930 * features/rs6000/powerpc-64l.c: Likewise.
6931 * features/rs6000/powerpc-750.c: Likewise.
6932 * features/rs6000/powerpc-860.c: Likewise.
6933 * features/rs6000/powerpc-e500.c: Likewise.
6934 * features/rs6000/powerpc-e500l.c: Likewise.
6935 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6936 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6937 * features/rs6000/rs6000.c: Likewise.
6938
d71871bc
SDJ
69392012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6940
6941 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6942 variable.
6943 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6944 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6945 (stap_parse_argument) <e>: Likewise.
6946 (handle_stap_probe) <byte_order>: Likewise.
6947
fd820528
DE
69482012-04-30 Doug Evans <dje@google.com>
6949
6950 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6951 init_and_read_dies_worker. All callers updated.
6952 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6953 replaced with init_cutu_and_read_dies.
6954 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6955 (find_partial_die): Remove FIXME. Don't free current CU.
6956
ec3f619d 69572012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6958
6959 * contrib: New directory.
6960 * contrib/test_pubnames_and_indexes.py: New file.
6961
fceca515
DE
69622012-04-30 Doug Evans <dje@google.com>
6963
6964 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6965 All callers updated.
6966 (init_cu_die_reader): Verify the section is non-empty.
6967 (dwarf_decode_line_header): Don't dereference section->asection
6968 until we know the section is present.
6969
311fe7e1
SDJ
69702012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6971
6972 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6973 probes.
6974
5977971a
YQ
69752012-04-29 Yao Qi <yao@codesourcery.com>
6976
6977 * gdb-code-style.el: New hook gdb-markup-hook
6978 and gdb-comment-hook.
6979
dee91e82
DE
69802012-04-28 Doug Evans <dje@google.com>
6981
3019eac3
DE
6982 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6983 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6984 objfile->obfd.
6985 * symfile.h (dwarf2_debug_sections): New member addr.
6986 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6987 (ctx_no_get_addr_index): New function.
6988 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6989 (ctx_no_get_addr_index): Declare.
6990 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6991 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6992 (dwarf_expr_ctx_funcs): Update.
6993 (needs_get_addr_index): New function.
6994 (needs_frame_ctx_funcs): Update.
6995 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6996 * dwarf2read.c: #include "gdbcore.h".
6997 (dwarf2_per_objfile): New members addr, dwo_files.
6998 (dwarf2_elf_names): Add entry for addr.
6999 (struct dwo_section_names): New type.
7000 (dwo_section_names): New static global.
7001 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7002 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7003 old debug_types_section member updated to use this.
7004 Rename member debug_types_section to info_or_types_section,
7005 all uses updated.
7006 (signatured_type): Rename member type_offset to type_offset_in_tu,
7007 all uses updated. New member type_offset_in_section.
7008 (struct dwo_sections): New type.
7009 (struct dwo_unit): New type.
7010 (struct dwo_file): New type.
7011 (die_reader_specs): New member dwo_file.
7012 (dwarf2_locate_sections): Watch for .debug_addr.
7013 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7014 (dwarf2_read_section): Get bfd of section from bfd's asection,
7015 instead of objfile.
7016 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7017 (create_signatured_type_table_from_index): Initialize
7018 sig_type->info_or_types_section.
7019 (dw2_get_file_names): Statement lists for type units with DWO files
7020 live in the DWO file.
7021 (create_debug_types_hash_table): New function.
7022 (create_all_type_units): Rewrite.
7023 (init_cu_die_reader): New arg dwo_file, all callers updated.
7024 (init_and_read_dies_worker): Get section from
7025 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7026 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7027 continue reading the CU/TU from there.
7028 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7029 updated. Get section from this_cu->info_or_types_section.
7030 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7031 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7032 DW_FORM_GNU_str_index.
7033 (hash_dwo_file, eq_dwo_file): New functions.
7034 (allocate_dwo_file_hash_table): New function.
7035 (hash_dwo_unit, eq_dwo_unit): New functions.
7036 (allocate_dwo_unit_table): New function.
7037 (dwarf2_locate_dwo_sections): New function.
7038 (struct create_dwo_info_table_data): New type.
7039 (create_debug_info_hash_table_reader): New function.
7040 (create_debug_info_hash_table): New function.
7041 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7042 (lookup_dwo_file): New function.
7043 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7044 (free_dwo_file, free_dwo_file_cleanup): New functions.
7045 (free_dwo_file_from_slot, free_dwo_files): New functions.
7046 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7047 (dwarf2_record_block_ranges): Ditto.
7048 (read_partial_die): Ditto.
7049 (process_enumeration_scope): Update to use type_offset_in_section.
7050 (read_full_die_1): New function.
7051 (read_full_die): Rewrite.
7052 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7053 DW_FORM_GNU_str_index.
7054 (read_addr_index_1, read_addr_index): New functions.
7055 (read_addr_index_from_leb128): New function.
7056 (struct dwarf2_read_addr_index_data): New type.
7057 (dwarf2_read_addr_index_reader): New function.
7058 (dwarf2_read_addr_index): New function.
7059 (read_str_index): New function.
7060 (leb128_size): New function.
7061 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7062 If processing a type unit from a DWO file, get the line section
7063 from the DWO file.
7064 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7065 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7066 DW_FORM_GNU_str_index.
7067 (lookup_die_type): Check whether section offset of type's die is
7068 known before looking it up. Remove assert. Condition can
7069 legimately happen for inter-cu type references.
7070 (dwarf_attr_name): Handle Fission attributes.
7071 (dwarf_form_name): Handle Fission forms.
7072 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7073 DW_FORM_GNU_str_index.
7074 (follow_die_sig): Update to use type_offset_in_section.
7075 (decode_locdesc): New case DW_OP_GNU_addr_index.
7076 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7077 DW_FORM_GNU_str_index.
7078 (cu_debug_loc_section): New function.
7079 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7080 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7081 Free DWO files if present.
7082 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7083
dee91e82
DE
7084 Refactor DIE reading.
7085 * dwarf2read.c (dwarf2_per_objfile): Replace members
7086 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7087 (die_reader_specs): New member "die_section". Temporarily make
7088 member "buffer" non-const, pending constifying all info_ptr uses.
7089 (die_reader_func_ftype): New typedef.
7090 (dw2_get_file_names_reader): New function.
7091 (dw2_get_file_names): Rewrite.
7092 (read_and_check_type_unit_head): Rename arg type_offset to
7093 type_offset_in_tu.
7094 (create_all_type_units): Improve debugging message.
7095 Improve dummy type unit check.
7096 (init_cu_die_reader): New arg "section". All callers updated.
7097 (init_and_read_dies_worker): New function.
7098 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7099 (init_cutu_and_read_dies_no_follow): New function.
7100 (init_cutu_and_read_dies_simple): New function.
7101 (process_psymtab_comp_unit_reader): New function.
7102 (process_psymtab_comp_unit): Delete args section,
7103 is_debug_types_section. Rewrite. All callers updated.
7104 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7105 All callers updated. Rewrite.
7106 (load_partial_comp_unit_reader): New function.
7107 (load_partial_comp_unit): Rewrite.
7108 (skip_children): New arg reader. Delete args buffer, cu.
7109 All callers updated.
7110 (skip_one_die): New arg reader. Delete args buffer, cu.
7111 All callers updated.
7112 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7113 All callers updated.
7114 (load_full_comp_unit_reader): New function.
7115 (load_full_comp_unit): Rewrite.
7116 (read_comp_unit): Delete.
7117 (read_die_and_children_1): Delete, contents moved ...
7118 (read_die_and_children): ... here.
7119 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7120 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7121 All callers updated.
7122 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7123 All callers updated.
7124 (find_partial_die): Rewrite load_all_dies support.
7125 (read_attribute_value): New arg reader. Delete args abfd, cu.
7126 All callers updated.
7127 (read_attribute): New arg reader. Delete args abfd, cu.
7128 All callers updated.
7129 (load_full_type_unit): Add assert.
7130 (read_signatured_type_reader): New function.
7131 (read_signatured_type): Rewrite.
7132 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7133 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7134 All callers updated. Set per_cu->cu = NULL after freeing it.
7135 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7136 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7137 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7138 (set_die_type): Update.
7139 (get_die_type_at_offset): Update.
7140 (read_file_scope): Call prepare_one_comp_unit.
7141 (read_type_unit_scope): Ditto.
7142 (prepare_one_comp_unit): Set producer if present.
7143
72d59e0d
SDJ
71442012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7147 gettext function on `error'.
7148
0fefef59
DE
71492012-04-27 Doug Evans <dje@google.com>
7150
7151 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7152 is empty.
7153
28106bc2
SDJ
71542012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7155 Tom Tromey <tromey@redhat.com>
7156
7157 * breakpoint.c (struct breakpoint_objfile_data)
7158 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7159 <exception_probes>: New fields.
7160 (free_breakpoint_probes): New function.
7161 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7162 `_Unwind_DebugHook'.
7163 (create_exception_master_breakpoint): Likewise.
7164 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7165 * infrun.c: Including necessary header files for handling SystemTap
7166 probes.
7167 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7168 via SystemTap probes.
7169 (check_exception_resume): Remove `func' argument. Handle exception
7170 unwinding breakpoint set via a SystemTap probe.
7171 (insert_exception_resume_from_probe): New function.
7172
55aa24fb
SDJ
71732012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7174 Tom Tromey <tromey@redhat.com>
7175 Jan Kratochvil <jan.kratochvil@redhat.com>
7176
7177 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7178 (COMMON_OBS): Likewise.
7179 (HFILES_NO_SRCDIR): Add `probe'.
7180 * NEWS: Mention support for static and SystemTap probes.
7181 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7182 SystemTap probes' arguments parser.
7183 * arm-linux-tdep.c: Including headers needed to perform the parsing
7184 of SystemTap probes' arguments.
7185 (arm_stap_is_single_operand): New function.
7186 (arm_stap_parse_special_token): Likewise.
7187 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7188 probes' arguments parser.
7189 * ax-gdb.c (require_rvalue): Removing static declaration.
7190 (gen_expr): Likewise.
7191 * ax-gdb.h (gen_expr): Declaring function.
7192 (require_rvalue): Likewise.
7193 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7194 (bkpt_probe_breakpoint_ops): New variable.
7195 (momentary_breakpoint_from_master): Set the `probe' value.
7196 (add_location_to_breakpoint): Likewise.
7197 (break_command_1): Using proper breakpoint_ops according to the
7198 argument passed by the user in the command line.
7199 (bkpt_probe_insert_location): New function.
7200 (bkpt_probe_remove_location): Likewise.
7201 (bkpt_probe_create_sals_from_address): Likewise.
7202 (bkpt_probe_decode_linespec): Likewise.
7203 (tracepoint_probe_create_sals_from_address): Likewise.
7204 (tracepoint_probe_decode_linespec): Likewise.
7205 (tracepoint_probe_breakpoint_ops): New variable.
7206 (trace_command): Using proper breakpoint_ops according to the
7207 argument passed by the user in the command line.
7208 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7209 static probes on breakpoints and tracepoints.
7210 * breakpoint.h (struct bp_location) <probe>: New field.
7211 * cli-utils.c (skip_spaces_const): New function.
7212 (extract_arg): Likewise.
7213 * cli-utils.h (skip_spaces_const): Likewise.
7214 (extract_arg): Likewise.
7215 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7216 * configure.ac: Append `stap-probe.o' to be generated when ELF
7217 support is present.
7218 * configure: Regenerate.
7219 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7220 * elfread.c: Include `probe.h' and `arch-utils.h'.
7221 (probe_key): New variable.
7222 (elf_get_probes): New function.
7223 (elf_get_probe_argument_count): Likewise.
7224 (elf_evaluate_probe_argument): Likewise.
7225 (elf_compile_to_ax): Likewise.
7226 (elf_symfile_relocate_probe): Likewise.
7227 (stap_probe_key_free): Likewise.
7228 (elf_probe_fns): New variable.
7229 (elf_sym_fns): Add `sym_probe_fns' value.
7230 (elf_sym_fns_lazy_psyms): Likewise.
7231 (elf_sym_fns_gdb_index): Likewise.
7232 (_initialize_elfread): Initialize objfile cache for static
7233 probes.
7234 * gdb_vecs.h (struct probe): New forward declaration.
7235 (probe_p): New VEC declaration.
7236 * gdbarch.c: Regenerate.
7237 * gdbarch.h: Regenerate.
7238 * gdbarch.sh (stap_integer_prefix): New variable.
7239 (stap_integer_suffix): Likewise.
7240 (stap_register_prefix): Likewise.
7241 (stap_register_suffix): Likewise.
7242 (stap_register_indirection_prefix): Likewise.
7243 (stap_register_indirection_suffix): Likewise.
7244 (stap_gdb_register_prefix): Likewise.
7245 (stap_gdb_register_suffix): Likewise.
7246 (stap_is_single_operand): New function.
7247 (stap_parse_special_token): Likewise.
7248 (struct stap_parse_info): Forward declaration.
7249 * i386-tdep.c: Including headers needed to perform the parsing
7250 of SystemTap probes' arguments.
7251 (i386_stap_is_single_operand): New function.
7252 (i386_stap_parse_special_token): Likewise.
7253 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7254 probes' arguments parser.
7255 * i386-tdep.h (i386_stap_is_single_operand): New function.
7256 (i386_stap_parse_special_token): Likewise.
7257 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7258 * mipsread.c (ecoff_sym_fns): Likewise.
7259 * objfiles.c (objfile_relocate1): Support relocation for static
7260 probes.
7261 * parse.c (prefixify_expression): Remove static declaration.
7262 (initialize_expout): Likewise.
7263 (reallocate_expout): Likewise.
7264 * parser-defs.h (initialize_expout): Declare function.
7265 (reallocate_expout): Likewise.
7266 (prefixify_expression): Likewise.
7267 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7268 of SystemTap probes' arguments.
7269 (ppc_stap_is_single_operand): New function.
7270 (ppc_stap_parse_special_token): Likewise.
7271 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7272 probes' arguments parser.
7273 * probe.c: New file, for generic statically defined probe support.
7274 * probe.h: Likewise.
7275 * s390-tdep.c: Including headers needed to perform the parsing of
7276 SystemTap probes' arguments.
7277 (s390_stap_is_single_operand): New function.
7278 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7279 probes' arguments parser.
7280 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7281 * stap-probe.c: New file, for SystemTap probe support.
7282 * stap-probe.h: Likewise.
7283 * symfile.h: Include `gdb_vecs.h'.
7284 (struct sym_probe_fns): New struct.
7285 (struct sym_fns) <sym_probe_fns>: New field.
7286 * symtab.c (init_sal): Initialize `probe' field.
7287 * symtab.h (struct probe): Forward declaration.
7288 (struct symtab_and_line) <probe>: New field.
7289 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7290 locations.
7291 (stop_tracing): Likewise.
7292 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7293
22d2b532
SDJ
72942012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7295 Tom Tromey <tromey@redhat.com>
7296
7297 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7298 and to compile agent expressions.
7299 * infrun.c (siginfo_make_value): New argument `ignore'.
7300 (siginfo_funcs): New struct.
7301 (_initialize_infrun): New argument when calling
7302 `create_internalvar_type_lazy'.
7303 * thread.c (thread_id_make_value): New argument `ignore'.
7304 (thread_funcs): New struct.
7305 (_initialize_thread): New argument when calling
7306 `create_internalvar_type_lazy'.
7307 * tracepoint.c (sdata_make_value): New argument `ignore'.
7308 (sdata_funcs): New struct.
7309 (_initialize_tracepoint): New argument when calling
7310 `create_internalvar_type_lazy'.
7311 * value.c (make_value): New struct.
7312 (create_internalvar_type_lazy): New argument `data'.
7313 (compile_internalvar_to_ax): New function.
7314 (value_of_internalvar): Properly handling `make_value' case.
7315 (clear_internalvar): Likewise.
7316 (show_convenience): Adding `TRY_CATCH' block.
7317 * value.h (internalvar_make_value): Delete, replace by...
7318 (struct internalvar_funcs): ... this.
7319 (create_internalvar_type_lazy) <fun>: Delete argument.
7320 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7321 (compile_internalvar_to_ax): New function.
7322 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7323 (tlb_funcs): New struct.
7324 (_initialize_windows_tdep): New argument when calling
7325 `create_internalvar_type_lazy'.
7326
91da1414
MW
73272012-04-27 Mark Wielaard <mjw@redhat.com>
7328
7329 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7330 see whether it is an address or a constant offset from DW_AT_low_pc.
7331 (dwarf2_record_block_ranges): Likewise.
7332 (read_partial_die): Likewise.
7333
4ab9d8ec
MW
73342012-04-26 Mark Wielaard <mjw@redhat.com>
7335
7336 * MAINTAINERS (Write After Approval): Add myself to the list.
7337
a0911fd0
MR
73382012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7339
7340 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7341 (proc_prettyprint_signal): Likewise.
7342 (proc_prettyprint_faultset): Likewise.
7343 (proc_prettyprint_fault): Likewise.
7344 (proc_prettyprint_actionset): Likewise.
7345 (proc_prettyprint_flags): Move to new proc-flags.c section.
7346 (proc_prettyfprint_flags): New prototype.
7347 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7348 (proc_syscall, proc_cursig): Likewise.
7349 (proc_set_kill_on_last_close): Likewise.
7350 (proc_unset_kill_on_last_close): Likewise.
7351 (proc_set_watchpoint): Make static.
7352 (proc_delete_dead_threads): Likewise.
7353 (procfs_set_watchpoint): Likewise.
7354 (_initialize_procfs): Add prototype.
7355 * proc-events.c: Include proc-utils.h.
7356 (init_syscall_table): Make static.
7357 * proc-api.c (_initialize_proc_api): Add prototype.
7358 * proc-flags.c: Include proc-utils.h.
7359
9009e1ae
MR
73602012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7361
7362 * configure.ac: Add AC_ARG_PROGRAM.
7363 * configure: Regenerate.
7364
4fae6e18
JK
73652012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 Fix DW_AT_lower_bound defaults for DWARF-4+.
7368 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7369 high. New variable low_default_is_valid. Implement DWARF-4+
7370 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7371 no default by the DWARF standard.
7372
14132e89 73732012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7374 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7375
7376 * infrun.c (handle_inferior_event): Move the check for return
7377 trampolines ahead of the check for function trampolines.
7378 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7379 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7380 (mips_str_mips16_ret_stub): Likewise.
7381 (mips_str_call_fp_stub): Likewise.
7382 (mips_str_call_stub): Likewise.
7383 (mips_str_fn_stub): Likewise.
7384 (mips_str_pic): Likewise.
7385 (mips_in_frame_stub): New function.
7386 (mips_unwind_pc): Return the return address rather than the PC
7387 if the PC of an intermediate frame is inside a call thunk.
7388 (mips_is_stub_suffix): New function.
7389 (mips_is_stub_mode): Likewise.
7390 (mips_get_mips16_fn_stub_pc): Likewise.
7391 (mips_skip_mips16_trampoline_code): Update to handle all the
7392 currently generated stub types. Don't recurse into __fn_stub
7393 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7394 Use cooked register accesses.
7395 (mips_in_return_stub): Reintroduce function.
7396 (mips_skip_trampoline_code): Traverse trampolines recursively.
7397 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7398
518f0db5 73992012-04-26 Joel Brobecker <brobecker@adacore.com>
7400
7401 GDB 7.4.1 released.
7402
3184d3f9
JL
74032012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7404
7405 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7406 * features/arm-with-m-vfp-d16.xml: New file. Describes
7407 Cortex-M with VFPv4-sp-d16 FPU register layout.
7408 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7409 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7410 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7411 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7412 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7413
b6201d44
DE
74142012-04-25 Doug Evans <dje@google.com>
7415
7416 * cli/cli-decode.c (print_doc_line): Use stream instead of
7417 current_uiout.
7418
4e2f8df6
SDJ
74192012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7420
7421 * features/arm-with-iwmmxt.c: Regenerate.
7422 * features/arm-with-m-fpa-layout.c: Likewise.
7423 * features/arm-with-m.c: Likewise.
7424 * features/arm-with-neon.c: Likewise.
7425 * features/arm-with-vfpv2.c: Likewise.
7426 * features/arm-with-vfpv3.c: Likewise.
7427 * features/mips-dsp-linux.c: Likewise.
7428 * features/mips-linux.c: Likewise.
7429 * features/mips64-dsp-linux.c: Likewise.
7430 * features/mips64-linux.c: Likewise.
7431 * features/s390-linux32.c: Likewise.
7432 * features/s390-linux32v1.c: Likewise.
7433 * features/s390-linux32v2.c: Likewise.
7434 * features/s390-linux64.c: Likewise.
7435 * features/s390-linux64v1.c: Likewise.
7436 * features/s390-linux64v2.c: Likewise.
7437 * features/s390x-linux64.c: Likewise.
7438 * features/s390x-linux64v1.c: Likewise.
7439 * features/s390x-linux64v2.c: Likewise.
7440 * features/tic6x-c62x-linux.c: Likewise.
7441 * features/tic6x-c62x.c: Likewise.
7442 * features/tic6x-c64x-linux.c: Likewise.
7443 * features/tic6x-c64x.c: Likewise.
7444 * features/tic6x-c64xp-linux.c: Likewise.
7445 * features/tic6x-c64xp.c: Likewise.
7446 * target-descriptions.c: Only generate `field_type' and `type'
7447 variables when needed.
7448
2def3e66
JB
74492012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7450
7451 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7452
a766d390
DE
74532012-04-25 Doug Evans <dje@google.com>
7454
7455 Initial pass at Go language support.
7456 * NEWS: Mention Go.
7457 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7458 go-valprint.c.
7459 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7460 (YYFILES): Add go-exp.c.
7461 (YYOBJ): Add go-exp.o.
7462 (local-maintainer-clean): Delete go-exp.c.
7463 * defs.h (enum language): Add language_go.
7464 * dwarf2read.c: #include "go-lang.h".
7465 (fixup_go_packaging): New function.
7466 (process_full_comp_unit): Call it when processing Go CUs.
7467 (dwarf2_physname): Add Go support.
7468 (read_file_scope): Handle missing language spec for GNU Go.
7469 (set_cu_language): Handle DW_LANG_Go.
7470 * go-exp.y: New file.
7471 * go-lang.h: New file.
7472 * go-lang.c: New file.
7473 * go-typeprint.c: New file.
7474 * go-valprint.c: New file.
7475 * symtab.c: #include "go-lang.h".
7476 (symbol_set_language): Handle language_go.
7477 (symbol_find_demangled_name, symbol_set_names): Ditto.
7478 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7479
4e2af517
JM
74802012-04-24 Jim Meyering <meyering@redhat.com>
7481
7482 avoid a few strncpy-induced buffer overruns
7483 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7484 fname and psargs before trying to concatenate.
7485 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7486 "name" before applying strchr.
7487
b77b7f52
SCR
74882012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7489
7490 * CONTRIBUTE: Use unified diff instead of context diff when
7491 generating patches.
7492
6321c22a
MR
74932012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7494
7495 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7496 code. Handle JR.HB correctly.
7497
742c84f6
MR
74982012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7499
7500 * mips-tdep.c
7501 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7502 with the other MIPS16 helpers.
7503
7fc7e0c3
SDJ
75042012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7505
7506 * observer.sh: Conditionally declare `args', thus cleaning up
7507 unused instances of this variable.
7508
20388dd6
YQ
75092012-04-24 Yao Qi <yao@codesourcery.com>
7510
7511 Revert this patch to allow breakpoint always-inserted
7512 in record target.
7513 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7514 * breakpoint.c: Include record.h.
7515 (breakpoints_always_inserted_mode): Return false when the record
7516 target is in use.
20388dd6
YQ
7517
7518 * breakpoint.c (iterate_over_bp_locations): New.
7519 * breakpoint.h: Declare.
7520 New typedef walk_bp_location_callback.
7521 * record.c (record_open): Call record_init_record_breakpoints.
7522 (record_sync_record_breakpoints): New.
7523 (record_init_record_breakpoints): New.
7524 * NEWS: Mention supporting breakpoint always-inserted mode in
7525 record target.
7526
4734f50e
MK
75272012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7528
7529 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7530 any thread.
7531
c326b90e
YQ
75322012-04-24 Yao Qi <yao@codesourcery.com>
7533
7534 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7535 (is_catchpoint): ... it.
7536 (print_one_breakpoint_location): Caller update.
7537 * breakpoint.h: Update declaration.
7538
d8fb5a1e
DM
75392012-04-23 David S. Miller <davem@davemloft.net>
7540
7541 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7542
34431a2a
TT
75432012-04-23 Tom Tromey <tromey@redhat.com>
7544
7545 * buildsym.c (add_free_pendings): Remove.
7546 * buildsym.h (add_free_pendings): Remove.
7547
4568ecf9
DE
75482012-04-23 Doug Evans <dje@google.com>
7549
7550 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7551 attr.u.unsnd instead of attr.u.addr.
7552 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7553 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7554 DW_FORM_ref_udata.
7555 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7556 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7557 DW_FORM_ref_udata.
7558 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7559
dca9aa3a
MR
75602012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7561
7562 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7563 (mips_o32_return_value): Likewise.
7564 (mips_o64_return_value): Likewise.
7565
c8ea1972
PH
75662012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7567
7568 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7569 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7570 their treatment in eval.c.
c8ea1972 7571
8d1b3521
DM
75722012-04-21 David S. Miller <davem@davemloft.net>
7573
7574 * sparc-tdep.c (X_DISP10): Define.
7575 (sparc_analyze_control_transfer): Handle compare-and-branch.
7576
03145bf4
JL
75772012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7578
7579 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7580 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7581
004159a2 75822012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7583 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7584
7585 * mips-tdep.c (mips_float_register_p): New function.
7586 (mips_convert_register_float_case_p): Use mips_float_register_p.
7587 (mips_register_type): Likewise.
7588 (mips_print_register): Likewise.
7589 (print_gp_register_row): Likewise.
7590 (mips_print_registers_info): Likewise.
7591
7f0e6aae
MR
75922012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7593
7594 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7595 of mips16 symbols.
7596
bc17beea
AP
75972012-04-20 Andrew Pinski <apinski@cavium.com>
7598
7599 * MAINTAINERS (Write After Approval): Add myself to the list.
7600
1730a5a5
SDJ
76012012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7602
7603 * MAINTAINERS: Update my e-mail address.
7604
38ea300a
PA
76052012-04-20 Pedro Alves <palves@redhat.com>
7606
7607 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7608 $srcdir.
7609 * configure: Regenerate.
7610
111dfaae
SDJ
76112012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7612
7613 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7614 declaration.
7615 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7616
4fb2c64a
JK
76172012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 Fix compilation compatibility with python-2.4
7620 * python/py-type.c (convert_field): Cast ADDRSTRING for
7621 PyObject_SetAttrString as non-const. New comment.
7622
6328eb38
TT
76232012-04-19 Tom Tromey <tromey@redhat.com>
7624
7625 * top.c (quit_target): Use all_cleanups.
7626 * main.c (captured_command_loop): Use all_cleanups.
7627 * exceptions.c (throw_exception): Use all_cleanups.
7628
c971b7fa
PA
76292012-04-19 Pedro Alves <palves@redhat.com>
7630
7631 * Makefile.in (GNULIB_BUILDDIR): New.
7632 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7633 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7634 (CLEANDIRS). Remove gnulib/import.
7635 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7636 (all-lib): Ditto.
7637 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7638 (gnulib/import/Makefile): Replace gnulib/import with
7639 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7640 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7641 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7642 acx_configure_dir.m4.
7643 * acinclude.m4: Include acx_configure_dir.m4.
7644 * acx_configure_dir.m4: New file.
7645 * aclocal.m4: Regenerate.
a09130f9
PA
7646 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7647 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7648 (GNULIB): New variable.
7649 (GNULIB_STDINT_H): Adjust.
7650 (AC_OUTPUT): Don't output gnulib/Makefile.
7651 * gdb/defs.h: Include build-gnulib/config.h.
7652 * aclocal.m4: Regenerate.
7653 * config.in: Regenerate.
7654 * configure: Regenerate.
7655
7656 * gnulib/Makefile.in: New file.
7657 * gnulib/configure.ac: New file.
7658 * gnulib/aclocal.m4: New file.
7659 * gnulib/config.in: New file.
7660 * gnulib/configure: New file.
c971b7fa
PA
7661 * gnulib/: Re-run gnulib-tool to adjust.
7662
b10faa68
DE
76632012-04-19 Doug Evans <dje@google.com>
7664
7665 * cleanups.h (struct cleanup): Move to cleanups.c.
7666 (make_cleanup_dtor_ftype): New typedef.
7667 (make_cleanup_dtor): Use it.
7668 (ALL_CLEANUPS): Replace with ...
7669 (all_cleanups): ... this. Declare. All uses updated.
7670 * cleanups.c: #include "gdb_assert.h".
7671 (sentinel_cleanup): New static global.
7672 (SENTINEL_CLEANUP): Define.
7673 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7674 (make_my_cleanup2): Assert result is non-NULL.
7675 (all_cleanups): New function.
7676 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7677 of NULL.
7678
d8c267cc
PA
76792012-04-19 Pedro Alves <palves@redhat.com>
7680
7681 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7682 Adjust paths to gnulib imported files.
7683
809277f8
PA
76842012-04-19 Pedro Alves <palves@redhat.com>
7685
7686 * gnulib/: Move whole directory ...
7687 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7688 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7689 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7690 (aclocal_m4_deps): Adjust.
7691 * aclocal.m4: Regenerate.
7692 * configure: Regenerate.
7693 * configure.ac: Adjust AC_OUTPUT output.
7694
aad9eab9
YQ
76952012-04-19 Yao Qi <yao@codesourcery.com>
7696
7697 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7698 (vec.o): New rule.
7699 * vec.c: Move it ...
7700 * common/vec.c: ... here.
7701 * vec.h: Move it ...
7702 * common/vec.h: ... here.
7703
48fe4669
YQ
77042012-04-19 Yao Qi <yao@codesourcery.com>
7705
7706 * gdb-code-style.el: New.
7707
770d76d7
PA
77082012-04-18 Pedro Alves <palves@redhat.com>
7709
7710 Update gnulib from latest git.
7711 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7712
7713 * gnulib/Makefile.am: Update.
7714 * gnulib/dummy.c: Update.
7715 * gnulib/extra/arg-nonnull.h: Update.
7716 * gnulib/extra/c++defs.h: Update.
7717 * gnulib/extra/update-copyright: Update.
7718 * gnulib/extra/warn-on-use.h: Update.
7719 * gnulib/inttypes.in.h: Update.
7720 * gnulib/m4/00gnulib.m4: Update.
7721 * gnulib/m4/extensions.m4: Update.
7722 * gnulib/m4/gnulib-cache.m4: Update.
7723 * gnulib/m4/gnulib-common.m4: Update.
7724 * gnulib/m4/gnulib-comp.m4: Update.
7725 * gnulib/m4/gnulib-tool.m4: Update.
7726 * gnulib/m4/include_next.m4: Update.
7727 * gnulib/m4/inttypes-pri.m4: Update.
7728 * gnulib/m4/inttypes.m4: Update.
7729 * gnulib/m4/longlong.m4: Update.
7730 * gnulib/m4/memchr.m4: Update.
7731 * gnulib/m4/memmem.m4: Update.
7732 * gnulib/m4/mmap-anon.m4: Update.
7733 * gnulib/m4/multiarch.m4: Update.
7734 * gnulib/m4/onceonly.m4: Update.
7735 * gnulib/m4/stddef_h.m4: Update.
7736 * gnulib/m4/stdint.m4: Update.
7737 * gnulib/m4/string_h.m4: Update.
7738 * gnulib/m4/warn-on-use.m4: Update.
7739 * gnulib/m4/wchar_h.m4: Update.
7740 * gnulib/m4/wchar_t.m4: Update.
7741 * gnulib/m4/wint_t.m4: Update.
7742 * gnulib/memchr.c: Update.
7743 * gnulib/memmem.c: Update.
7744 * gnulib/stddef.in.h: Update.
7745 * gnulib/stdint.in.h: Update.
7746 * gnulib/str-two-way.h: Update.
7747 * gnulib/string.in.h: Update.
7748 * gnulib/wchar.in.h: Update.
7749
7750 * gnulib/extra/arg-nonnull.h: Delete.
7751 * gnulib/extra/c++defs.h: Delete.
7752 * gnulib/extra/warn-on-use.h: Delete.
7753 * gnulib/m4/wchar_h.m4: Delete.
7754 * gnulib/m4/wint_t.m4: Delete.
7755 * gnulib/wchar.in.h: Delete.
7756
7757 * gnulib/extra/snippets/arg-nonnull.h: New.
7758 * gnulib/extra/snippets/c++defs.h: New.
7759 * gnulib/extra/snippets/warn-on-use.h: New.
7760
7761 * aclocal.m4: Regenerate.
7762 * config.in: Regenerate.
7763 * configure: Regenerate.
7764 * gnulib/Makefile.in: Regenerate.
7765
174e088e
PA
77662012-04-18 Pedro Alves <palves@redhat.com>
7767
7768 Reimport the update-copyright module from gnulib
7769 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7770
7771 * configure: Regenerate.
7772 * gnulib/Makefile.am: Update.
7773 * gnulib/Makefile.in: Regenerate.
7774 * gnulib/extra/update-copyright: Update.
7775 * gnulib/m4/gnulib-cache.m4: Update.
7776 * gnulib/m4/gnulib-comp.m4: Update.
7777
7f533142
JB
77782012-04-18 Tristan Gingold <gingold@adacore.com>
7779
7780 * configure.ac (aix): Put -lpthread into libs.
7781 * configure: Regenerate.
7782
001822aa
TT
77832012-04-18 Tom Tromey <tromey@redhat.com>
7784
7785 * linespec.c (convert_linespec_to_sals): Don't use
7786 SYMBOL_OBJ_SECTION.
7787 (compare_msymbols): Arguments are minsym_and_objfile, not
7788 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7789
db026a31
PA
77902012-04-18 Pedro Alves <palves@redhat.com>
7791
7792 Revert gnulib/ part of:
7793 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7794 Copyright year update in most files (performed by copyright.sh).
7795
12df843f
JK
77962012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 Fix 64-bit constants on 32-bit hosts.
7799 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7800 from unsigned long to ULONGEST.
7801 (read_signed_leb128): Change declaration return type from long to
7802 LONGEST.
7803 (dwarf2_const_value_attr): Change declaration parameter value from long
7804 to LONGEST.
7805 (dwarf2_compute_name): Change variable value from long to LONGEST.
7806 (read_unsigned_leb128): Change return type, variable result and some
7807 casts from unsigned long to ULONGEST.
7808 (read_signed_leb128): Change return type, variable result and some
7809 casts from long to LONGEST.
7810 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7811 value from long to LONGEST.
7812 (dwarf2_const_value): Change variable value from long to LONGEST.
7813 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7814 plongest and hex_string.
7815 * symtab.h (struct general_symbol_info): Change ivalue from long to
7816 LONGEST, remove the comment.
7817 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7818 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7819
14e75d8e
JK
78202012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7821
7822 PR symtab/7259:
7823 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7824 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7825 (ada_discrete_type_low_bound): Fix function comment. Use
7826 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7827 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7828 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7829 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7830 Use TYPE_FIELD_ENUMVAL.
7831 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7832 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7833 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7834 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7835 TYPE_CODE_ENUM.
7836 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7837 * dwarf2read.c (process_enumeration_scope): Likewise.
7838 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7839 field.bitpos.
7840 (class StructMainTypePrettyPrinter): Support also
7841 FIELD_LOC_KIND_ENUMVAL.
7842 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7843 TYPE_CODE_ENUM.
7844 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7845 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7846 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7847 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7848 field enumval.
7849 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7850 accommodate enumval.
7851 (struct call_site): Adjust loc_kind to accommodate enumval.
7852 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7853 (TYPE_FIELD_ENUMVAL): New macros.
7854 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7855 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7856 TYPE_CODE_ENUM.
7857 * p-typeprint.c (pascal_type_print_base): Likewise.
7858 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7859 enumval.
7860 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7861 * python/py-type.c (convert_field): New variable addrstring. Use
7862 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7863 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7864 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7865 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7866 TYPE_CODE_ENUM.
7867 * valprint.c (generic_val_print): Likewise.
7868
380bca97
DE
78692012-04-17 Doug Evans <dje@google.com>
7870
dcc07052
DE
7871 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7872
380bca97
DE
7873 * dwarf2read.c: Whitespace fixes.
7874 (lookup_signatured_type): Tweak comment.
7875 (get_die_type_at_offset): Fix comment.
7876
ec92004f
JB
78772012-04-17 Joel Brobecker <brobecker@adacore.com>
7878
7879 * xcoffread.c (xcoff_secnum_to_sections): New function.
7880 (secnum_to_section, secnum_to_bfd_section): Reimplement
7881 using xcoff_secnum_to_sections. Rename "secnum" parameter
7882 into "n_scnum".
7883 (RECORD_MINIMAL_SYMBOL): Delete.
7884 (record_minimal_symbol): New function.
7885 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7886 by call to record_minimal_symbol and set misc_func_recorded
7887 to 1. Set last_csect_sec to the XCOFF section index instead
7888 of GDB's section_offset index. Update calls to
7889 prim_record_minimal_symbol_and_info to pass the BFD section
7890 as well.
7891
40301fb7
JB
78922012-04-17 Joel Brobecker <brobecker@adacore.com>
7893
7894 * xcoffread.c (read_xcoff_symtab): Delete variables
7895 last_csect_val and last_csect_sec and associated code.
7896
e0088cfd
DE
78972012-04-17 Doug Evans <dje@google.com>
7898
58d5e2c3
DE
7899 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7900 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7901 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7902 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7903
c27f5738
DE
7904 * cleanups.h: New file.
7905 * cleanups.c: New file.
7906 * Makefile.in (SFILES): Add cleanups.c.
7907 (HFILES_NO_SRCDIR): Add cleanups.h.
7908 (COMMON_OBS): Add cleanups.o.
7909 * defs.h (struct cleanup): Moved to cleanups.h.
7910 (do_cleanups,do_final_cleanups): Ditto.
7911 (discard_cleanups,discard_final_cleanups): Ditto
7912 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7913 (save_cleanups,save_final_cleanups): Ditto.
7914 (restore_cleanups,restore_final_cleanups): Ditto.
7915 (null_cleanup): Ditto.
7916 (make_my_cleanup,make_my_cleanup2): Ditto.
7917 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7918 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7919 (do_cleanups,do_final_cleanups): Ditto.
7920 (discard_cleanups,discard_final_cleanups): Ditto
7921 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7922 (save_cleanups,save_final_cleanups): Ditto.
7923 (restore_cleanups,restore_final_cleanups): Ditto.
7924 (null_cleanup): Ditto.
7925 (make_my_cleanup,make_my_cleanup2): Ditto.
7926 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7927
e0088cfd
DE
7928 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7929 make_my_cleanup.
7930 (make_cleanup_dyn_string_delete): Ditto.
7931 (make_cleanup_ui_file_delete): Ditto.
7932 (make_cleanup_ui_out_redirect_pop): Ditto.
7933 (make_cleanup_free_section_addr_info): Ditto.
7934 (make_cleanup_restore_integer): Ditto.
7935 (make_cleanup_unpush_target): Ditto.
7936 (make_cleanup_value_free_to_mark): Ditto.
7937 (make_cleanup_value_free): Ditto.
7938 (make_cleanup_free_so): Ditto.
7939
4dc84fd1
JK
79402012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 New option "set debug auto-load".
7943 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7944 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7945 (auto_load_safe_path_vec_update)
7946 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7947 if DEBUG_AUTO_LOAD.
7948 (file_is_auto_load_safe): New parameters debug_fmt and ....
7949 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7950 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7951 caller by explanatory string.
7952 (_initialize_auto_load): Register "set debug auto-load".
7953 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7954 and ....
7955 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7956 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7957 by explanatory string.
7958 * main.c (captured_main): Likewise.
7959 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7960 (source_section_scripts): Likewise.
7961
bccbefd2
JK
79622012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 New option "set auto-load safe-path".
7965 * NEWS: New commands "set auto-load safe-path"
7966 and "show auto-load safe-path".
7967 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7968 (auto_load_safe_path, auto_load_safe_path_vec)
7969 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7970 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7971 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7972 (source_gdb_script_for_objfile): New variable is_safe. Call
7973 file_is_auto_load_safe. Return if it is not.
7974 (struct loaded_script): New field loaded.
7975 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7976 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7977 output "Missing" to "No".
7978 (_initialize_auto_load): New variable cmd. Initialize
7979 auto_load_safe_path. Register "set auto-load safe-path",
7980 "show auto-load safe-path" and "add-auto-load-safe-path".
7981 * auto-load.h (maybe_add_script): Add parameter loaded.
7982 (file_is_auto_load_safe): New declaration.
7983 * config.in: Regenerate.
7984 * configure: Regenerate.
7985 * configure.ac: New parameters --with-auto-load-safe-path
7986 and --without-auto-load-safe-path.
7987 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7988 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7989 * main.c (captured_main): Check file_is_auto_load_safe for
7990 LOCAL_GDBINIT.
7991 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7992 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7993 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7994 not.
7995
bf88dd68
JK
79962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 auto-load: Implementation.
7999 * NEWS: New descriptions for "info auto-load",
8000 "info auto-load gdb-scripts", "info auto-load python-scripts",
8001 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8002 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8003 and "show auto-load-scripts". New description for "set auto-load",
8004 "show auto-load", "set auto-load gdb-scripts",
8005 "show auto-load gdb-scripts", "set auto-load python-scripts",
8006 "show auto-load python-scripts", "set auto-load local-gdbinit",
8007 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8008 "show auto-load libthread-db".
8009 * auto-load.c: Remove include python/python-internal.h. Add includes
8010 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8011 cli/cli-setshow.h.
8012 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8013 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8014 (gdbpy_global_auto_load): Rename to ...
8015 (global_auto_load): ... here.
8016 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8017 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8018 (script_language_gdb, source_gdb_script_for_objfile): New.
8019 (struct loaded_script): New field language.
8020 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8021 LANGUAGE.
8022 (maybe_add_script): Add parameter language. Drop redundant
8023 entry.full_path initialization. Initialize entry.language and
8024 (*slot)->language.
8025 (auto_load_objfile_script): Change parameter suffix to language.
8026 Remove the call of maybe_add_script.
8027 Call language->source_script_for_objfile.
8028 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8029 New.
8030 (collect_matching_scripts): Adjust it for
8031 struct collect_matching_scripts_data.
8032 (auto_load_info_scripts_pattern_nl): New variable.
8033 (info_auto_load_scripts): Rename to ...
8034 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8035 for struct collect_matching_scripts_data.
8036 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8037 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8038 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8039 (auto_load_info_cmdlist_get): New.
8040 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8041 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8042 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8043 "info auto-load local-gdbinit".
8044 * auto-load.h (struct script_language): New.
8045 (gdbpy_global_auto_load): Rename to ...
8046 (global_auto_load): ... here.
8047 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8048 (auto_load_local_gdbinit_loaded): New declarations.
8049 (maybe_add_script): New parameter language.
8050 (auto_load_objfile_script): Change parameter suffix to language.
8051 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8052 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8053 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8054 declarations.
8055 * linux-thread-db.c: Include auto-load.h and ctype.h.
8056 (auto_load_thread_db, show_auto_load_thread_db): New.
8057 (struct thread_db_info): New field filename.
8058 (delete_thread_db_info): Call xfree for FILENAME.
8059 (try_thread_db_load): Initialize FILENAME.
8060 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8061 if !AUTO_LOAD_THREAD_DB.
8062 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8063 (_initialize_thread_db): Install auto_load_thread_db
8064 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8065 as "info auto-load libthread-db".
8066 * main.c (captured_main): Rename gdbpy_global_auto_load to
8067 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8068 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8069 (print_gdb_help): Extend the help for 'local init file'.
8070 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8071 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8072 (auto_load_scripts): Rename to ...
8073 (auto_load_python_scripts): ... here, update the comment.
8074 (gdbpy_load_auto_script_for_objfile): New declaration.
8075 (show_auto_load_python_scripts, script_language_python)
8076 (gdbpy_load_auto_script_for_objfile): New.
8077 (source_section_scripts): Refactor the code.
8078 (load_auto_scripts_for_objfile): Rename to ...
8079 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8080 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8081 (info_auto_load_python_scripts): New.
8082 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8083 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8084 Register "set auto-load-scripts" as its deprecated alias. Register
8085 "info auto-load python-scripts". Register "info auto-load-scripts" as
8086 its deprecated alias.
8087 (load_auto_scripts_for_objfile): Rename to ...
8088 (gdbpy_load_auto_scripts_for_objfile): ... here.
8089 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8090 (gdbpy_load_auto_scripts_for_objfile): ... here.
8091
e2207b9a
JK
80922012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 auto-load: Move files.
8095 * Makefile.in (SFILES): Add auto-load.c.
8096 (HFILES_NO_SRCDIR): Add auto-load.h.
8097 (COMMON_OBS): Add auto-load.o.
8098 (distclean): Change .gdbinit for gdb-gdb.gdb.
8099 * auto-load.c: New file, with parts from python/py-auto-load.c.
8100 * auto-load.h: New file, with parts from python/python.h.
8101 * configure: Regenerate.
8102 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8103 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8104 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8105 * main.c: Include auto-load.h.
8106 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8107 command.h, observer.h and progspace.h to auto-load.c. Add include
8108 auto-load.h.
8109 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8110 (struct loaded_script, auto_load_pspace_data)
8111 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8112 (hash_loaded_script_entry, eq_loaded_script_entry)
8113 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8114 (maybe_add_script): Move to auto-load.c.
8115 (source_section_scripts): Change maybe_add_script parameters passing,
8116 use script_not_found_warning_print.
8117 (clear_section_scripts, auto_load_objfile_script)
8118 (auto_load_new_objfile, loaded_script_ptr)
8119 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8120 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8121 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8122 auto_load_new_objfile and info_auto_load_scripts initizations to
8123 auto-load.c.
8124 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8125
e4ab2fad
JK
81262012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8127
8128 Code cleanup.
8129 * charset.c (find_charset_names): Remove variables ix and elt.
8130 Use free_char_ptr_vec.
8131 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8132 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8133 debugdir_end. New variable debugdir_len.
8134 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8135 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8136 declarations.
8137 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8138 and elt. Use free_char_ptr_vec.
8139 * source.c (add_path): Remove variables argv, arg and argv_index.
8140 New variables dir_vec, back_to, ix and name.
8141 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8142 make_cleanup_freeargv. Remove variable separator. Simplify the code
8143 no longer expecting DIRNAME_SEPARATOR.
8144 (openp): Remove variable p, p1 and len. New variables dir_vec,
8145 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8146 no longer expecting DIRNAME_SEPARATOR.
8147 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8148 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8149 debugdir_end.
8150 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8151 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8152 (dirnames_to_char_ptr_vec): New functions.
8153
5ee4ed9f
JK
81542012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8155
8156 Code cleanup.
8157 * source.c (add_path): Remove always true conditional 'p == 0' and
8158 unindent its code block.
8159
f41f5e61
PA
81602012-04-17 Pedro Alves <palves@redhat.com>
8161
8162 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8163 (FIELD_BITPOS_LVAL): ... this.
8164 (FIELD_BITPOS): New.
8165 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8166 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8167 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8168 SET_FIELD_BITPOS.
8169 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8170 SET_FIELD_BITPOS.
8171 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8172 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8173 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8174 SET_FIELD_BITPOS.
8175
945b3a32
JK
81762012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8177
8178 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8179 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8180 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8181 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8182 * jv-lang.c (java_link_class_type): Likewise, once.
8183 * stabsread.c (read_enum_type): Likewise.
8184
42476b70
YQ
81852012-04-16 Yao Qi <yao@codesourcery.com>
8186
8187 * common/agent.c (agent_run_command): Add one more parameter `len'.
8188 Update callers.
8189 * common/agent.h: Update declaration.
8190 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8191 Update.
8192 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8193
8264ba82
AG
81942012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8195
8196 PR mi/13393
8197 * value.c (value_actual_type): New function.
8198 * value.h (value_actual_type): New declaration.
8199 * varobj.c (update_type_if_necessary): New function.
8200 (varobj_create): Call value_actual_type instead of
8201 value_type.
8202 (install_dynamic_child): distinct changed and type changed MI variable
8203 objects.
8204 (update_dynamic_varobj_children): Updated for install_dynamic_child
8205 change. All callers updated.
a09130f9 8206 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8207 the value changed and RTTI is used to determine the type.
8208 (create_child_with_value): Call value_actual_type instead of
8209 value_type.
a09130f9 8210 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8211 specify whether the given value should be casted to enclosing type.
8212 All callers updated.
8213
55a8c076
YQ
82142012-04-14 Yao Qi <yao@codesourcery.com>
8215
8216 Import gnulib module inttypes from git
8217 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8218 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8219 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8220 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8221 * aclocal.m4, config.in, configure: Regenerated.
8222 * gnulib/Makefile.am: Update.
8223 * gnulib/Makefile.in: Update.
8224 * gnulib/m4/gnulib-cache.m4: Update.
8225 * gnulib/m4/gnulib-comp.m4: Update.
8226 * gnulib/inttypes.in.h: New.
8227 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8228 * gnulib/m4/inttypes.m4: New.
55a8c076 8229
ca7781d2
LM
82302012-04-13 Luis Machado <lgustavo@codesourcery.com>
8231
8232 * infrun.c (resume): Update PC address to the real PC after
8233 preparing to do displaced stepping.
8234
e319fa28
DE
82352012-04-12 Doug Evans <dje@google.com>
8236
8237 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8238 All callers updated.
8239
15add3f5
MK
82402012-04-12 Mark Kettenis <kettenis@gnu.org>
8241
8242 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8243
52dc124a
DE
82442012-04-12 Doug Evans <dje@google.com>
8245
0e50663e
DE
8246 * dwarf2read.c (create_all_type_units): Renamed from
8247 create_debug_types_hash_table. All callers updated.
8248
52dc124a
DE
8249 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8250 local type_sig to sig_type, type_offset to type_offset_in_tu.
8251 (hash_signatured_type): Renamed from hash_type_signature,
8252 all callers updated.
8253 (eq_signatured_type): Renamed from eq_type_signature,
8254 all callers updated.
8255 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8256 (process_enumeration_scope): Ditto.
8257 (lookup_signatured_type_at_offset): Ditto.
8258 (load_full_type_unit, read_signatured_type): Ditto.
8259
248fd3bf
YQ
82602012-04-12 Yao Qi <yao@codesourcery.com>
8261
8262 * remote.c (async_remote_interrupt): Correct function name in
8263 debug message.
8264 (async_remote_interrupt_twice): Ditto.
8265
bc3aa6c3
DE
82662012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8267
8268 * source.c (find_and_open_source): Consistently pass resulting
8269 full path through xfullpath.
8270
9e529e1d
JK
82712012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 Provide more specific displaced-stepping memory error message.
8274 * infrun.c (displaced_step_prepare): New variable status. Call
8275 target_read_memory instead of read_memory, provide more specific
8276 error message.
8277
82e0cec1
TG
82782012-04-11 Tristan Gingold <gingold@adacore.com>
8279
8280 PR gdb/13901
8281 * darwin-nat.c (darwin_execvp): Revert previous patch.
8282
d987a266
TG
82832012-04-11 Tristan Gingold <gingold@adacore.com>
8284
8285 PR gdb/13901
8286 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8287 in case of change.
8288
016b7430
TG
82892012-04-11 Tristan Gingold <gingold@adacore.com>
8290
8291 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8292 warning.
8293
06fc020f
SCR
82942012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8295
8296 New command 'explore' which helps explore values and types in
8297 scope.
8298 * NEWS: Add an entry about the new 'explore' command.
8299 * data-directory/Makefile.in: Add gdb/command/explore.py
8300 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8301 command using the GDB Python API.
06fc020f 8302
de0919f8 83032012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8304
8305 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8306 extension in jump target calculation.
8307
de0919f8 83082012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8309
8310 * mips-tdep.c (mips32_next_pc): Handle JALX.
8311
2f26ef89
YQ
83122012-04-10 Yao Qi <yao@codesourcery.com>
8313
8314 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8315
2e505b66
YQ
83162012-04-10 Yao Qi <yao@codesourcery.com>
8317
8318 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8319 and gnulib/m4/gnulib-tool.m4.
8320
0d99eb77
DE
83212012-04-10 Doug Evans <dje@google.com>
8322
8323 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8324 (load_partial_dies): Clarify comment.
8325 (find_partial_die): Support rereading type units.
8326 Clarify CU handling, if we know offset is in CU, don't search for the
8327 containing CU. Add comment regarding memory waste.
8328
9a82b8ff
L
83292012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8330
8331 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8332 i386/x32-avx and i386/x32-avx-linux.
8333 (i386/x32-expedite): New.
8334 (i386/x32-linux-expedite): Likewise.
8335 (i386/x32-avx-expedite): Likewise.
8336 (i386/x32-avx-linux-expedite): Likewise.
8337 ($(outdir)/i386/x32.dat): Likewise.
8338 ($(outdir)/i386/x32-linux.dat): Likewise.
8339 ($(outdir)/i386/x32-avx.dat): Likewise.
8340 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8341
8342 * features/i386/x32-avx-linux.xml: New file.
8343 * features/i386/x32-avx.xml: Likewise.
8344 * features/i386/x32-core.xml: Likewise.
8345 * features/i386/x32-linux.xml: Likewise.
8346 * features/i386/x32.xml: Likewise.
8347
8348 * features/i386/x32-avx-linux.c: New. Generated.
8349 * features/i386/x32-avx.c: Likewise.
8350 * features/i386/x32-linux.c: Likewise.
8351 * features/i386/x32.c: Likewise.
8352 * regformats/i386/x32-avx-linux.dat: Likewise.
8353 * regformats/i386/x32-avx.dat: Likewise.
8354 * regformats/i386/x32-linux.dat: Likewise.
8355 * regformats/i386/x32.dat: Likewise.
8356
ee41036f
TG
83572012-04-10 Tristan Gingold <gingold@adacore.com>
8358
8359 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8360 code to kill the inferior.
8361
a7aa5b8a
MK
83622012-04-09 Mark Kettenis <kettenis@gnu.org>
8363
8364 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8365 defines.
8366 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8367 defines.
a09130f9 8368 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8369 (yyvsp): New defines.
8370 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8371 defines.
8372 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8373 defines.
8374 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8375 defines.
8376 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8377 defines.
8378 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8379 defines.
8380
fb57d452
MK
83812012-04-09 Mark Kettenis <kettenis@gnu.org>
8382
a09130f9 8383 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8384 (sparc64_store_arguments): Fix coding style.
8385
cdc7b32f
MK
83862012-04-07 Mark Kettenis <kettenis@gnu.org>
8387
8388 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8389 complex floats, adjust some related comments and tighten a related
8390 assertion.
8391 (sparc64_extract_return_value): Handle complex floats.
8392
7adf1e79
DE
83932012-04-07 Doug Evans <dje@google.com>
8394
8395 * dwarf2read.c (load_partial_dies): Change condition to assert.
8396
50f1ae7b
DE
83972012-04-06 Doug Evans <dje@google.com>
8398
8399 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8400 "mov %rsp,%rbp".
8401
55fa75c3
KB
84022012-04-05 Kevin Buettner <kevinb@redhat.com>
8403
8404 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8405 fencepost error.
8406 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8407 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8408 architecture.
8409
40e084e1
KS
84102012-04-05 Keith Seitz <keiths@redhat.com>
8411
8412 * linespec.c (decode_compound): Remove.
8413 (enum offset_relative_sign): New enum.
8414 (struct line_offset): New struct.
8415 (struct linespec): New struct.
8416 (struct linespec_state): Move file_symtabs,
8417 user_filename, and user_function into struct linespec.
8418 Make result an anonymous struct holding vectors of
8419 symbolp and minsym_and_objfile_d.
8420 Add language member.
8421 (enum ls_token_type): New enum.
8422 (linespec_keywords): New array.
8423 (struct ls_token): New struct.
8424 (struct ls_parser): New struct.
8425 (linespec_lexer_lex_number): New function.
8426 (linespec_lexer_lex_keyword): New function.
8427 (is_ada_operator): New function.
8428 (skip_quote_char): New function.
8429 (copy_token_string): New function.
8430 (is_closing_quote_enclosed): New function.
8431 (find_parameter_list_end): New function.
8432 (linespec_lexer_lex_string): New function.
8433 (linespec_lexer_lex_one): New function.
8434 (linespec_lexer_consume_token): New function.
8435 (linespec_lexer_peek_token): New function.
8436 (cplusplus_error): Remove unused function.
8437 (find_methods): Update comment.
8438 (find_toplevel_char): Return const.
8439 (is_objc_method_format): Remove unused function.
8440 (find_toplevel_string): New function.
8441 (is_linespec_boundary): Remove.
8442 (symbol_not_found_error): New function.
8443 (find_method_overload_end): Remove function.
8444 (unexpected_linespec_error): New function.
8445 (keep_name_info): Remove.
8446 (linespec_parse_line_offset): New function.
8447 (linespec_parse_basic): New function.
8448 (canonicalize_linespec): New function.
8449 (decode_line_internal): Remove.
8450 (create_sals_line_offset): New function adapted from
8451 decode_all_digits.
8452 (convert_linespec_to_sals): New function.
8453 (parse_linespec): New function.
8454 (linespec_parser_new): New function.
8455 (linespec_state_destructor): Change parameter type to
8456 struct linespec_state *.
8457 Add language parameter.
8458 Remove freeing of moved members.
8459 (linespec_parser_delete): New function.
8460 (decode_line_full): Use parse_linespec and linespec_parser_new.
8461 (decode_line_1): Likewise.
8462 (decode_indirect): Rename to ...
8463 (linespec_expression_to_pc): ... this and rewrite
8464 to simply find CORE_ADDR, storing this result for later
8465 conversion to SALs.
8466 (locate_first_half): Remove.
8467 (deocde_objc): Add parameter LS.
8468 Initialize new struct collect_info members.
8469 Handle minimal symbols, too.
8470 (decode_compound): Delete.
8471 (lookup_prefix_sym): Rewrite.
8472 (compare_msymbols): New function.
8473 (find_method): Rewrite.
8474 Do not call cplusplus_error.
8475 (symtabs_from_filename): Rewrite.
8476 (collect_function_symbols): Delete.
8477 (find_function_symbols): Rewrite without ARGPTR-style
8478 processing.
8479 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8480 (decode_dollar): Adapted and renamed to ...
8481 (linespec_parse_variable): ... this.
8482 (find_linespec_symbols): New function.
8483 (decode_label): Adapted and renamed to ...
8484 (find_label_symbols): ... this.
8485 (decode_digits_list_mode): Add and use LS argument.
8486 (decode_digits_ordinary): Likewise.
8487 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8488 If in list mode, allow any symbol class. Otherwise, only
8489 permit LOC_BLOCK symbols.
8490 (minsym_found): Update comments.
8491 (search_minsyms_for_name): Do not convert the matching symbol
8492 into a SAL. Simply push the symbol and objfile into the
8493 result vector.
8494 (decode_variable): Delete. Contents adapted into
8495 find_linespec_symbols.
8496
8497 * cp-support.c (SKIP_SPACE): Remove.
8498 (operator_tokens): Remove unused global.
8499 (cp_validate_operator): Remove.
8500 * cp-support.h (cp_validate_operator): Remove declaration.
8501
a72c8f6a
JK
85022012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8503
8504 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8505 for TYPE_VPTR_FIELDNO.
8506 * valprint.c (valprint_check_validity): Make it global, move the
8507 function comment ...
8508 * value.h (valprint_check_validity): ... to this new declaration.
8509
cf9bb588
TG
85102012-04-02 Tristan Gingold <gingold@adacore.com>
8511
8512 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8513 the STATE32 api for i386 state.
8514 (i386_darwin_store_inferior_registers): Likewise.
8515
17092398
TG
85162012-04-02 Tristan Gingold <gingold@adacore.com>
8517
8518 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8519 SS offset.
8520 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8521 format_string.
8522
ece0061f
TG
85232012-04-02 Tristan Gingold <gingold@adacore.com>
8524
8525 PR gdb/13901
d987a266 8526 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8527
cf65ecd3
JK
85282012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8529
8530 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8531
9bc3523d
TT
85322012-03-30 Tom Tromey <tromey@redhat.com>
8533
8534 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8535 of TRY_CATCH. Fix error handling.
8536 * python/py-value.c (convert_value_from_python): Move 'old'
8537 declaration to innermost scope.
8538
b1ed564a
JB
85392012-03-29 Joel Brobecker <brobecker@adacore.com>
8540 Andrey Smirnov <andrew.smirnov@gmail.com>
8541
8542 -Wshadow warning fix.
8543 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8544 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8545 Adjust code accordingly.
8546
cb8e9b97
JB
85472012-03-29 Joel Brobecker <brobecker@adacore.com>
8548
8549 * ada-lang.c (symbol_completion_add): Rename parameter
8550 "encoded" into "encoded_p". Ajust code and documentation
8551 accordingly.
8552
c0af1706
JB
85532012-03-29 Joel Brobecker <brobecker@adacore.com>
8554 Andrey Smirnov <andrew.smirnov@gmail.com>
8555
8556 -Wshadow warning fix.
8557 * ada-lang.c (symbol_completion_add): Rename parameter
8558 "wild_match" into wild_match_p. Update code and documentation
8559 accordingly.
8560
6ea35997
JB
85612012-03-29 Joel Brobecker <brobecker@adacore.com>
8562
8563 * ada-lang.c (symbol_completion_match): Rename parameter
8564 "encoded" into "encoded_p". Ajust code and documentation
8565 accordingly.
8566
e701b3c0
JB
85672012-03-29 Joel Brobecker <brobecker@adacore.com>
8568 Andrey Smirnov <andrew.smirnov@gmail.com>
8569
8570 -Wshadow warning fix.
8571 * ada-lang.c (symbol_completion_match): Rename parameter
8572 "wild_match" into "wild_match_p". Adjust code and function
8573 documentation accordingly.
8574
5e2336be
JB
85752012-03-29 Joel Brobecker <brobecker@adacore.com>
8576 Andrey Smirnov <andrew.smirnov@gmail.com>
8577
8578 -Wshadow warning fix.
8579 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8580 "symbol_info" into "info". Adjust code accordingly.
8581 (ada_lookup_symbol): Likewise.
8582
9f88c959
JB
85832012-03-29 Joel Brobecker <brobecker@adacore.com>
8584
8585 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8586 of this function's documentation.
8587
82ccd55e
JB
85882012-03-29 Joel Brobecker <brobecker@adacore.com>
8589 Andrey Smirnov <andrew.smirnov@gmail.com>
8590
8591 -Wshadow warning fix.
8592 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8593 variable into "wild_match_p". Adjust code accordingly.
8594
d0a8ab18
JB
85952012-03-29 Joel Brobecker <brobecker@adacore.com>
8596 Andrey Smirnov <andrew.smirnov@gmail.com>
8597
8598 -Wshadow warning fix.
8599 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8600 parameter into "wild_match_p". Adjust code accordingly.
8601 Document this parameter in the function description.
8602
48b78332
JB
86032012-03-29 Joel Brobecker <brobecker@adacore.com>
8604 Andrey Smirnov <andrew.smirnov@gmail.com>
8605
8606 -Wshadow warning fix.
8607 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8608 "wild_match" parameter to "wild_match_p" (-Wshadow).
8609
2e6e0353
JB
86102012-03-29 Joel Brobecker <brobecker@adacore.com>
8611
8612 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8613 in function documentation.
8614
dc4024cd
JB
86152012-03-29 Joel Brobecker <brobecker@adacore.com>
8616 Andrey Smirnov <andrew.smirnov@gmail.com>
8617
8618 -Wshadow warning fix.
8619 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8620 variable into wild_match_p. Adjust code accordingly.
8621
6c88661c
JB
86222012-03-29 Joel Brobecker <brobecker@adacore.com>
8623 Andrey Smirnov <andrew.smirnov@gmail.com>
8624
8625 * ada-valprint.c (ada_val_print_1): Move the code handling
8626 TYPE_CODE_ENUM inside its own lexical block. Declare
8627 variables len and val there, instead of in the function's
8628 top level block. Avoid declaring deref_val again in a way
8629 that shadows another variable of the same name declared
8630 in one of the up-level blocks. Just re-use the up-level
8631 variable instead.
8632
4e5c77fe
JB
86332012-03-29 Joel Brobecker <brobecker@adacore.com>
8634
8635 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8636 Replace block_found argument by symbol_info. Adjust
8637 implementation accordingly. Add function documentation.
8638 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8639 Fix documentation.
8640 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8641 * ada-exp.y (write_object_renaming): Adjust to new
8642 ada_lookup_encoded_symbol API.
8643
1c0ac8c7
JB
86442012-03-29 Joel Brobecker <brobecker@adacore.com>
8645
8646 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8647 documentation.
8648
2aaed979
KB
86492012-03-28 Rathish C <rathish.c@kpitcummins.com>
8650
8651 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8652 (v850_register_name): Add the mpu and fpu register names.
8653 (v850e_register_name): Add the mpu and fpu register names.
8654 (v850e2_register_name): New function.
a09130f9 8655 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8656 bfd_mach_v850e2v3.
8657
927fbba6
JB
86582012-03-28 Joel Brobecker <brobecker@adacore.com>
8659
8660 * NEWS: Add entry for Ada varobj support.
8661
d32cafc7
JB
86622012-03-28 Joel Brobecker <brobecker@adacore.com>
8663
8664 * varobj.c (default_value_is_changeable_p): New function,
8665 extracted from varobj_value_is_changeable_p. Add declaration.
8666 (ada_value_is_changeable_p): New function, extracted from
8667 varobj_value_is_changeable_p. Add declaration.
8668 (struct language_specific): New field "value_is_changeable_p".
8669 (languages): Add entries for new field.
8670 (varobj_create): Set language before calling install_new_value.
8671 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8672 "value_is_changeable_p" language callback.
8673
181875a4
JB
86742012-03-28 Joel Brobecker <brobecker@adacore.com>
8675
8676 * ada-varobj.h, ada-varobj.c: New files.
8677 * Makefile.in (SFILES): Add ada-varobj.c.
8678 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8679 (COMMON_OBS): Add ada-varobj.o.
8680
7a290c40
JB
86812012-03-28 Joel Brobecker <brobecker@adacore.com>
8682
8683 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8684 (struct language_specific): New field "value_has_mutated".
8685 (languages): Set field "value_has_mutated" in each entry of array.
8686 (varobj_value_has_mutated): New function.
8687 (varobj_udpdate): Add handling of type mutation.
8688 (value_of_root): Add handling of type mutation.
8689 (ada_value_has_mutated): New function.
8690
ca9b8b9c
PA
86912012-03-28 Pedro Alves <palves@redhat.com>
8692
8693 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8694 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8695
cc0265cd
TT
86962012-03-28 Tom Tromey <tromey@redhat.com>
8697
8698 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8699 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8700 before returning.
8701
3ad2ec6f
TT
87022012-03-28 Tom Tromey <tromey@redhat.com>
8703
8704 * .dir-locals.el: New file.
8705
4a6510ba
PA
87062012-03-28 Pedro Alves <palves@redhat.com>
8707
8708 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8709
5a75128f
JB
87102012-03-28 Joel Brobecker <brobecker@adacore.com>
8711
8712 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8713 handling for r0.
8714
f99d8bf4
PA
87152012-03-27 Pedro Alves <palves@redhat.com>
8716
8717 Eliminate struct ui_stream.
8718
8719 * ui-out.h (struct ui_stream): Delete.
8720 (ui_out_field_stream): Adjust prototype.
8721 (ui_out_stream_new, ui_out_stream_delete)
8722 (make_cleanup_ui_out_stream_delete): Delete declarations.
8723 * ui-out.c (ui_out_field_stream): Change prototype to take a
8724 ui_file instead of a ui_stream. Adjust.
8725 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8726 (make_cleanup_ui_out_stream_delete): Delete.
8727 * breakpoint.c (print_breakpoint_location)
8728 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8729 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8730 * disasm.c (dump_insns): Ditto.
8731 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8732 prototype.
8733 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8734 ui_stream/ui_out_stream_new.
8735 * infcmd.c (print_return_value): Ditto.
8736 * osdata.c (info_osdata_command): Don't allocate a local
8737 ui_stream.
8738 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8739 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8740 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8741 allocate a local ui_stream.
8742 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8743 instead of ui_stream/ui_out_stream_new.
8744 (list_args_or_locals): Don't allocate a local ui_stream.
8745 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8746 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8747 ui_stream/ui_out_stream_new.
8748 * cli/cli-setshow.c (do_setshow_command): Ditto.
8749
6350a066 87502012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8751
6350a066
PA
8752 * arm-linux-tdep.c (arm_linux_init_abi): Call
8753 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8754 * arm-tdep.c (arm_process_record): New function.
8755 (deallocate_reg_mem): New function.
8756 (decode_insn): New function.
8757 (thumb_record_branch): New function.
8758 (thumb_record_ldm_stm_swi(): New function.
8759 (thumb_record_misc): New function.
8760 (thumb_record_ld_st_stack): New function.
8761 (thumb_record_ld_st_imm_offset): New function.
8762 (thumb_record_ld_st_reg_offset(): New function.
8763 (thumb_record_add_sub_cmp_mov): New function.
8764 (thumb_record_shift_add_sub): New function.
8765 (arm_record_coproc_data_proc): New function.
8766 (arm_record_coproc): New function.
8767 (arm_record_b_bl): New function.
8768 (arm_record_ld_st_multiple): New function.
8769 (arm_record_ld_st_reg_offset): New function.
8770 (arm_record_ld_st_imm_offset): New function.
8771 (arm_record_data_proc_imm): New function.
8772 (arm_record_data_proc_misc_ld_str): New function.
8773 (arm_record_extension_space): New function.
8774 (arm_record_strx): New function.
8775 (sbo_sbz): New function.
8776 (struct insn_decode_record): New structure for arm insn record.
8777 (REG_ALLOC): New macro for reg allocations.
8778 (MEM_ALLOC): New macro for memory allocations.
8779 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8780
89e028e2
AS
87812012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8782
8783 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8784 (store_register): Likewise.
8785
6350a066 87862012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8787
6350a066 8788 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8789
5b43fab2
JK
87902012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8791
8792 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8793 Describe also the option "auto".
8794
b5453b95
RH
87952012-03-22 Richard Henderson <rth@redhat.com>
8796
8797 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8798 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8799
227ee7fc
RH
88002012-03-22 Richard Henderson <rth@redhat.com>
8801
8802 * jit.c (jit_read_code_entry): Compute alignment and offset of
8803 int64_t member before computing entry_size.
8804
7b282c5a
SCR
88052012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8806
8807 Python scripting: Add new method Value.referenced_value to
8808 gdb.Value which can dereference pointer as well as reference
8809 values.
8810 * NEWS: Add entry under 'Python scripting' about the new method
8811 Value.referenced_value on gdb.Value objects.
8812 * python/py-value.c (valpy_referenced_value): New function
8813 defining a new method on gdb.Value objects which can dereference
8814 pointer and reference values.
8815
0c83539f
SCR
88162012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8817
8818 * MAINTAINERS (Write After Approval): Add myself to the list.
8819
7ccffd7c
KB
88202012-03-21 Kevin Buettner <kevinb@redhat.com>
8821
8822 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8823 in addition to "main".
8824
bd0b9f9e
JB
88252012-03-21 Joel Brobecker <brobecker@adacore.com>
8826
8827 * expression.h (op_name): Add declaration.
8828 * expprint.c (op_name): Remove declaration. Make non-static.
8829 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8830
a5362b9a
TS
88312012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8832
8833 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8834 of struct siginfo.
8835 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8836 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8837 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8838 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8839 (linux_nat_get_siginfo): Likewise.
8840 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8841 (linux_nat_get_siginfo): Likewise.
8842 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8843 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8844 * procfs.c (gdb_siginfo_t): Likewise.
8845
adcadaab
MF
88462012-03-21 Mike Frysinger <vapier@gentoo.org>
8847
8848 * .gitignore: Ignore more files.
8849
e278ad5b
PA
88502012-03-20 Pedro Alves <palves@redhat.com>
8851
8852 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8853 returns.
8854
741e63d7
YQ
88552012-03-20 Yao Qi <yao@codesourcery.com>
8856
8857 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8858 comment.
8859
b64f50a1
JK
88602012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8861
8862 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8863 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8864 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8865 sect_offset.
8866 * dwarf2expr.h (cu_offset, sect_offset): New types.
8867 (struct dwarf_expr_context_funcs) <dwarf_call>
8868 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8869 sect_offset.
8870 (struct dwarf_expr_context) <len>: Improve the comment.
8871 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8872 cu_offset and sect_offset.
8873 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8874 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8875 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8876 * dwarf2loc.h: Include dwarf2expr.h.
8877 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8878 and sect_offset.
8879 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8880 Improve the comment.
8881 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8882 (struct signatured_type, struct line_header, struct partial_die_info)
8883 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8884 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8885 (get_die_type_at_offset, create_cus_from_index)
8886 (create_signatured_type_table_from_index, dw2_get_file_names)
8887 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8888 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8889 (create_debug_types_hash_table, process_psymtab_comp_unit)
8890 (load_partial_comp_unit, create_all_comp_units)
8891 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8892 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8893 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8894 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8895 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8896 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8897 (find_partial_die, read_attribute_value, lookup_die_type)
8898 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8899 (is_ref_attr): New function comment.
8900 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8901 Use cu_offset and sect_offset.
8902 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8903 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8904 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8905 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8906 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8907 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8908 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8909 sect_offset.
8910
e97a38f7
JK
89112012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8912
8913 Code cleanup.
8914 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8915 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8916 with xfree.
8917 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8918
8320cc4f
JK
89192012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8920
8921 * NEWS: Describe new options --init-command=FILE, -ix and
8922 --init-eval-command=COMMAND, -iex.
8923 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8924 CMDARG_INIT_COMMAND.
8925 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8926 "init-command", "init-eval-command", "ix" and "iex" to the variable
8927 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8928 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8929 (print_gdb_help): Describe --init-command=FILE, -ix and
8930 --init-eval-command=COMMAND, -iex.
8931
26743505
JK
89322012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 Code cleanup.
8935 * main.c (struct cmdarg): Move it here from main. Add more comments.
8936 (cmdarg_s, VEC (cmdarg_s)): New.
8937 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8938 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8939 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8940 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8941 of CMDARG.
8942
5ff5c7b4
TT
89432012-03-19 Tom Tromey <tromey@redhat.com>
8944
8945 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8946
ab260dad
JK
89472012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8948
8949 PR symtab/13777
8950 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8951 GCC >=4.5.
8952
c366c1f0
TT
89532012-03-16 Chris January <chris.january@allinea.com>
8954
8955 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8956 of clear.
8957
e16edb45
TT
89582012-03-16 Chris January <chris.january@allinea.com>
8959
8960 * source.c (add_path): Use memmove instead of strcpy because the
8961 strings overlap.
8962
53ba8333
JB
89632012-03-16 Joel Brobecker <brobecker@adacore.com>
8964
8965 * value.h (set_value_parent): Add declaration.
8966 * value.c (set_value_parent): New function.
8967 (value_address): If VALUE->PARENT is not NULL, then use it as
8968 the base address instead of VALUE->LOCATION.address.
8969 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8970 the same as OBJ's address. Adjust V's offset accordingly.
8971 Set V's parent.
8972
481860b3
GB
89732012-03-16 Gary Benson <gbenson@redhat.com>
8974
8975 PR breakpoints/10738
8976 * dwarf2read.c (use_deprecated_index_sections): New global.
8977 (struct partial_die_info): New member may_be_inlined.
8978 (read_partial_die): Set may_be_inlined where appropriate.
8979 (add_partial_subprogram): Add partial symbols for partial
8980 DIEs that may be inlined.
8981 (new_symbol_full): Add inlined subroutines to the current
8982 scope.
8983 (write_psymtabs_to_index): Bump version number.
8984 (dwarf2_read_index): Read only version 6 indices unless
8985 use_deprecated_index_sections is set.
8986 * linespec.c (symbol_and_data_callback): New structure.
8987 (iterate_inline_only): New function.
8988 (iterate_over_all_matching_symtabs): New argument
8989 "include_inline". If nonzero, also call the callback for
8990 symbols representing inlined subroutines.
8991 (lookup_prefix_sym): Pass extra argument to the above.
8992 (find_function_symbols): Likewise.
8993 (add_matching_symbols_to_info): Likewise.
8994 * NEWS: Mention that GDB can now set breakpoints on inlined
8995 functions.
8996
d0e7e15a
PM
89972012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8998
8999 * p-typeprint.c (pascal_type_print_method_args):
9000 Fix display of parameter of methods.
9001
3d354654
PM
90022012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9003
9004 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9005 Add missing prototype.
9006
cafe75b0
JK
90072012-03-16 Yao Qi <yao@codesourcery.com>
9008 Jan Kratochvil <jan.kratochvil@redhat.com>
9009
9010 Fix false compilation warning.
9011 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9012
25f8c692
JL
90132012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9014 Pedro Alves <pedro@codesourcery.com>
9015
9016 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9017 (arm_register_g_packet_guesses): New function.
9018 (arm_gdbarch_init): Don't force a target description with
9019 registers when the executable is detected as M-profile. Instead
9020 set gdbarch->tdep->is_m. Register `g' packet guesses.
9021 (_initialize_arm_tdep): Initialize the new target description.
9022 * features/arm-with-m-fpa-layout.xml: New description.
9023 * features/arm-with-m-fpa-layout.c: New, generated.
9024
35c63cd8
JB
90252012-03-15 Joel Brobecker <brobecker@adacore.com>
9026
9027 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9028 Update function description.
9029 (insert_bp_location): Do not wipe bl->target_info out.
9030 * mem-break.c: #include "gdb_string.h".
9031 (default_memory_insert_breakpoint): Do not call target_read_memory
9032 with a pointer to the breakpoint's shadow_contents buffer. Use
9033 a local buffer instead.
9034 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9035
57651221
TT
90362012-03-15 Tom Tromey <tromey@redhat.com>
9037
9038 * NEWS: Mention "info vtbl", not "info vtable".
9039 * cp-support.c (info_vtbl_command): Fix comment.
9040 (_initialize_cp_support): Fix text.
9041
410528f0
TT
90422012-03-15 Tom Tromey <tromey@redhat.com>
9043
9044 * cp-valprint.c (cp_print_value_fields): Use
9045 print_function_pointer_address for vtable slot.
9046
c4aeac85
TT
90472012-03-15 Tom Tromey <tromey@redhat.com>
9048
9049 * gnu-v3-abi.c (struct value_and_voffset): New.
9050 (hash_value_and_voffset, eq_value_and_voffset)
9051 (compare_value_and_voffset, compute_vtable_size)
9052 (print_one_vtable, gnuv3_print_vtable): New functions.
9053 (init_gnuv3_ops): Initialize 'print_vtable' field.
9054 * cp-support.c (info_vtbl_command): New function.
9055 (_initialize_cp_support): Add "info vtbl".
9056 * cp-abi.h (cplus_print_vtable): Declare.
9057 (struct cp_abi_ops) <print_vtable>: New field.
9058 * cp-abi.c (cplus_print_vtable): New function.
9059 * NEWS: Update.
9060
95cbceff
TT
90612012-03-15 Tom Tromey <tromey@redhat.com>
9062
9063 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9064 iterate_over_symbols.
9065
589b4a32
DE
90662012-03-14 Doug Evans <dje@google.com>
9067
9068 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9069 DW_OP_GNU_parameter_ref.
9070
e837f12a
JK
90712012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9072
9073 Fix double prompt of 'interpreter-exec mi'.
9074 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9075 (mi_interpreter_resume): use it.
9076 (mi_execute_command_input_handler): New function.
9077 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9078 mi_execute_command_input_handler.
9079
ff1e4526 90802012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9081
9082 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9083 prototype.
9084 (darwin_debug_port_info): Make static.
9085 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9086 * machoread.c (_initialize_machoread): Add prototype.
9087 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9088 (i386_darwin_set_control, i386_darwin_get_control)
9089 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9090 i386_darwin_get_status, i386_darwin_get_control):
9091 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9092
d8a5d6ee
JB
90932012-03-13 Joel Brobecker <brobecker@adacore.com>
9094
9095 * ax-gdb.c (gen_usual_unary): Remove special handling of
9096 enum and bool types.
9097
af381b8c
JB
90982012-03-13 Joel Brobecker <brobecker@adacore.com>
9099
9100 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9101
786c562f
JB
91022012-03-13 Joel Brobecker <brobecker@adacore.com>
9103
9104 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9105
e3ebf1bb
JB
91062012-03-13 Chris January <chris.january@allinea.com>
9107
9108 * aix-thread.c (fill_sprs): Store the floating point registers
9109 at the correct offsets into vals.
9110
c5b7e1cb
DE
91112012-03-13 Doug Evans <dje@google.com>
9112
16899756
DE
9113 * NEWS: Mention symbol-reloading has been deleted.
9114 * symfile.c (symbol_reloading): Delete.
9115 (show_symbol_reloading): Delete.
9116 (_initialize_symfile): Delete set/show symbol-reloading.
9117
c5b7e1cb
DE
9118 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9119 read_in_chain until we have successfully read it in.
9120 (load_full_comp_unit): Ditto.
9121 (read_signatured_type): Add comment.
9122
46cb6474
JB
91232012-03-13 Chris January <chris.january@allinea.com>
9124
9125 * stabsread.c (fix_common_block): Change type of valu argument
9126 to CORE_ADDR.
9127
76219d77
JB
91282012-03-13 Chris January <chris.january@allinea.com>
9129
9130 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9131 instruction.
9132
87b0bb13
JK
91332012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9134
9135 * common/linux-procfs.c (linux_proc_get_int): New, from
9136 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9137 field.
9138 (linux_proc_get_tgid): Only call linux_proc_get_int.
9139 (linux_proc_get_tracerpid): New.
9140 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9141 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9142 linux_proc_pid_has_state.
9143 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9144 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9145 (linux_ptrace_attach_warnings): New.
9146 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9147 New declaration.
9148 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9149 (linux_nat_attach): New variables ex, buffer, message and message_s.
9150 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9151
5f572dec
JK
91522012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 * Makefile.in (linux-ptrace.o): New.
9155 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9156 from linux-nat.c.
9157 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9158 * common/linux-ptrace.c: New file.
9159 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9160 * config/arm/linux.mh: Likewise.
9161 * config/i386/linux.mh: Likewise.
9162 * config/i386/linux64.mh: Likewise.
9163 * config/ia64/linux.mh: Likewise.
9164 * config/m32r/linux.mh: Likewise.
9165 * config/m68k/linux.mh: Likewise.
9166 * config/mips/linux.mh: Likewise.
9167 * config/pa/linux.mh: Likewise.
9168 * config/powerpc/linux.mh: Likewise.
9169 * config/powerpc/ppc64-linux.mh: Likewise.
9170 * config/powerpc/spu-linux.mh: Likewise.
9171 * config/s390/s390.mh: Likewise.
9172 * config/sparc/linux.mh: Likewise.
9173 * config/sparc/linux64.mh: Likewise.
9174 * config/xtensa/linux.mh: Likewise.
9175 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9176 common/linux-procfs.c.
9177 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9178
44f238bb
PA
91792012-03-13 Hui Zhu <teawater@gmail.com>
9180 Pedro Alves <palves@redhat.com>
9181
9182 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9183 CREATE_BREAKPOINT_FLAGS_INSERTED.
9184 (create_breakpoint_sal, create_breakpoints_sal)
9185 (base_breakpoint_create_breakpoints_sal)
9186 (tracepoint_create_breakpoints_sal)
9187 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9188 down.
9189 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9190 (ftrace_command, strace_command): Adjust.
9191 (create_tracepoint_from_upload): Pass
9192 CREATE_BREAKPOINT_FLAGS_INSERTED.
9193 * breakpoint.h (enum breakpoint_create_flags): New.
9194 (create_breakpoint): New flags parameter.
9195 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9196 * python/py-breakpoint.c (bppy_init): Adjust.
9197 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9198 * spu-tdep.c (spu_catch_start): Adjust.
9199
1e51243a
PA
92002012-03-13 Pedro Alves <palves@redhat.com>
9201 Hui Zhu <teawater@gmail.com>
9202 Yao Qi <yao@codesourcery.com>
9203
9204 * remote.c (struct remote_state): New field `starting_up'.
9205 (remote_start_remote): Set and clear it.
9206 (remote_can_download_tracepoint): If starting up, return false.
9207
fa3064dd
YQ
92082012-03-13 Yao Qi <yao@codesourcery.com>
9209
9210 * inferior.h (struct inferior): Remove fields any_syscall_count,
9211 syscalls_counts and total_syscalls_count. Move them to new
9212 struct catch_syscall_inferior_data in breakpoint.c.
9213 * breakpoint.c: Call DEF_VEC_I(int).
9214 (struct catch_syscall_inferior_data): New.
9215 (get_catch_syscall_inferior_data): New.
9216 (catch_syscall_inferior_data_cleanup): New.
9217 (insert_catch_syscall): Update to access data in
9218 struct catch_syscall_inferior_data.
9219 (insert_catch_syscall): Likewise.
9220 (remove_catch_syscall): Likewise.
9221 (remove_catch_syscall): Likewise.
9222 (is_syscall_catchpoint_enabled): Likewise.
9223 (add_catch_command): Likewise.
9224 (_initialize_breakpoint): Register cleanup.
9225 * breakpoint.h: Removed DEF_VEC_I(int).
9226 * dwarf2loc.c: Call DEF_VEC_I(int).
9227 * mi/mi-main.c: Likewise.
9228
460fac3c
MK
92292012-03-12 Mark Kettenis <kettenis@gnu.org>
9230
9231 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9232
e1aca11e
JB
92332012-03-12 Chris January <chris.january@allinea.com>
9234
9235 * aix-thread.c (_initialize_aix_thread): Add prototype.
9236 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9237 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9238
649c7061
JB
92392012-03-12 Joel Brobecker <brobecker@adacore.com>
9240
9241 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9242 include of "amd64-nat.h".
9243
0b49e518
TT
92442012-03-12 Tom Tromey <tromey@redhat.com>
9245
9246 * buildsym.c (record_pending_block): Now static.
9247 * buildsym.h: (record_pending_block): Remove.
9248
fd24fa94
AT
92492012-03-12 Andreas Tobler <andreast@fgznet.ch>
9250
9251 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9252
ba919b58
TT
92532012-03-09 Tom Tromey <tromey@redhat.com>
9254
9255 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9256 producer_is_gxx_lt_4_6>: New fields.
9257 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9258
a48e046c
TT
92592012-03-09 Tom Tromey <tromey@redhat.com>
9260
9261 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9262
6f5e9362
JB
92632012-03-08 Joel Brobecker <brobecker@adacore.com>
9264
9265 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9266 prototype.
9267
8d037db9
JB
92682012-03-08 Joel Brobecker <brobecker@adacore.com>
9269
9270 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9271
4e841acf
JK
92722012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 Fix -Wmissing-prototypes build.
9275 * arm-linux-nat.c (get_thread_id): Make it static.
9276 * xtensa-linux-nat.c (get_thread_id): Likewise.
9277
c6030312
JB
92782012-03-08 Joel Brobecker <brobecker@adacore.com>
9279
9280 * server.c (process_point_options): If a conditional expression
9281 is found, only print a message if remote_debug is nonzero.
9282
52323be9
LM
92832012-03-08 Luis Machado <lgustavo@codesourcery.com>
9284
9285 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9286 of internal error for unknown/unsupported types.
9287
7fe25d9b
JK
92882012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9289
9290 Fix CU relative vs. absolute DIE offsets.
9291 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9292 offset to offset_in_cu.
9293 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9294 TYPE_OFFSET.
9295 (dwarf2_fetch_die_location_block): Rename parameter offset to
9296 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9297
05e7c244
JK
92982012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 * libunwind-frame.c: Rename to ...
9301 * ia64-libunwind-tdep.c: ... here.
9302 * libunwind-frame.h: Rename to ...
9303 * ia64-libunwind-tdep.h: ... here.
9304 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9305 ia64-libunwind-tdep.h.
9306 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9307 * README (--with-libunwind): Rename to ...
9308 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9309 * config.in: Regenerate.
9310 * configure: Regenerate.
9311 * configure.ac: New option --with-libunwind-ia64, make the
9312 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9313 Remove AC_DEFINE for HAVE_LIBUNWIND.
9314 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9315 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9316 Rename libunwind-frame in the general comment.
9317 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9318 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9319 Move forward declarations inside #ifndef. Rename libunwind-frame in
9320 the general comment.
9321 * ia64-tdep.c: Rename libunwind-frame.h #include to
9322 ia64-libunwind-tdep.h.
9323 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9324 (ia64_libunwind_descr): Rename libunwind-frame to
9325 ia64-libunwind-tdep in these function comments.
9326 * ia64-tdep.h: Rename libunwind-frame.h #include to
9327 ia64-libunwind-tdep.h.
9328 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9329 ia64-libunwind-tdep in that data comment.
9330
3755cbfd
JK
93312012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9332
9333 * libunwind-frame.h (struct frame_unwind): New declaration.
9334
d1cda5d9
JB
93352012-03-08 Joel Brobecker <brobecker@adacore.com>
9336
9337 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9338 "set breakpoint condition-evaluation" command.
9339
a0ba0aa2
TG
93402012-03-08 Tristan Gingold <gingold@adacore.com>
9341
9342 * sparc-stub.c: Move to stubs/
9343 * sh-stub.c: Likewise.
9344 * m68k-stub.c: Likewise.
9345 * m32r-stub.c: Likewise.
9346 * i386-stub.c: Likewise.
9347
7b8b6d6d
AS
93482012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9349
007cafee
AS
9350 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9351 linux_get_siginfo_type.
9352
7b8b6d6d
AS
9353 * m68klinux-nat.c: Include "gdb_proc_service.h".
9354 (PTRACE_GET_THREAD_AREA): Define.
9355 (ps_get_thread_area): New function.
9356
bba74b36
YQ
93572012-03-08 Yao Qi <yao@codesourcery.com>
9358
9359 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9360 `xsnprintf'.
9361 (remote_query_attached): Likewise.
9362 (remote_static_tracepoint_marker_at): Likewise.
9363 (remote_set_permissions): Likewise.
9364 (remote_detach_1, extended_remote_attach_1): Likewise.
9365 (send_g_packet, remote_vkill): Likewise.
9366 (extended_remote_disable_randomization): Likewise.
9367 (remote_add_target_side_condition): Likewise.
9368 (remote_insert_breakpoint): Likewise.
9369 (remote_remove_breakpoint): Likewise.
9370 (remote_insert_watchpoint): Likewise.
9371 (remote_remove_watchpoint): Likewise.
9372 (remote_insert_hw_breakpoint): Likewise.
9373 (remote_insert_hw_breakpoint): Likewise.
9374 (remote_remove_hw_breakpoint): Likewise.
9375 (remote_download_command_source): Likewise.
9376 (remote_download_tracepoint): Likewise.
9377 (remote_download_trace_state_variable): Likewise.
9378 (remote_disable_tracepoint): Likewise.
9379 (remote_trace_set_readonly_regions): Likewise.
9380 (remote_get_tracepoint_status): Likewise.
9381 (remote_trace_find): Likewise.
9382 (remote_get_trace_state_variable_value): Likewise.
9383 (remote_set_disconnected_tracing): Likewise.
9384 (remote_set_circular_trace_buffer): Likewise.
9385 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9386 (remote_use_agent): Likewise.
9387 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9388 Update callers.
9389
9b224c5e
PA
93902012-03-07 Pedro Alves <palves@redhat.com>
9391
9392 * NEWS: Mention QProgramSignals.
9393 * inferior.h (update_signals_program_target): Declare.
9394 * infrun.c: (update_signals_program_target): New.
9395 (handle_command): Update the target of the new program signals
9396 array changes.
9397 * remote.c (PACKET_QProgramSignals): New enum.
9398 (last_program_signals_packet): New global.
9399 (remote_program_signals): New.
9400 (remote_start_remote): Update the target with the program signals
9401 list.
9402 (remote_protocol_features): Add entry for QPassSignals.
9403 (remote_open_1): Free anc clear last_program_signals_packet.
9404 (init_remote_ops): Install remote_program_signals.
9405 * target.c (update_current_target): Adjust.
9406 (target_program_signals): New.
9407 * target.h (struct target_ops) <to_program_signals>: New field.
9408 (target_program_signals): Declare.
9409
74c48cbb
PA
94102012-03-07 Pedro Alves <palves@redhat.com>
9411
9412 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9413 extensions.
9414
0c13fc49
AS
94152012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9416
9417 * m68klinux-nat.c (getregs_supplies): Make static.
9418 (getfpregs_supplies): Likewise.
9419 (have_ptrace_getregs): Likewise.
9420
1281d2a3
JB
94212012-03-06 Joel Brobecker <brobecker@adacore.com>
9422
9423 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9424 in call to get_die_type_at_offset.
9425
2b03b41d
SS
94262012-03-06 Stan Shebs <stan@codesourcery.com>
9427
9428 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9429 * mi/mi-cmd-disas.c: Ditto.
9430 * mi/mi-cmd-env.c: Ditto.
9431 * mi/mi-cmd-file.c: Ditto.
9432 * mi/mi-cmd-stack.c: Ditto.
9433 * mi/mi-cmd-target.c: Ditto.
9434 * mi/mi-cmd-var.c: Ditto.
9435 * mi/mi-cmds.c: Ditto.
9436 * mi/mi-cmds.h: Ditto.
9437 * mi/mi-console.c: Ditto.
9438 * mi/mi-getopt.c: Ditto.
9439 * mi/mi-getopt.h: Ditto.
9440 * mi/mi-interp.c: Ditto.
9441 * mi/mi-main.c: Ditto.
9442 * mi/mi-out.c: Ditto.
9443 * mi/mi-parse.c: Ditto.
9444 * mi/mi-parse.h: Ditto.
9445 * mi/mi-symbol-cmds.c: Ditto.
9446
9447 * mi/mi-getopt.h: Move mi_opt struct up.
9448 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9449 return.
9450 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9451
c988ad87
TT
94522012-03-06 Tom Tromey <tromey@redhat.com>
9453
9454 * proc-service.c (ps_pglobal_lookup): Set the current program
9455 space.
9456
1b7c1b10
PA
94572012-03-06 Pedro Alves <palves@redhat.com>
9458
9459 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9460
3c182069
JB
94612012-03-05 Joel Brobecker <brobecker@adacore.com>
9462
9463 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9464
2e794194
JK
94652012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9466
9467 Code cleanup.
9468 * common/linux-osdata.c (linux_common_core_of_thread): New function
9469 comment.
9470 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9471 call by linux_common_core_of_thread.
9472 (linux_nat_core_of_thread_1): Remove.
9473 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9474 * linux-thread-db.c: Include linux-osdata.h.
9475 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9476 linux_common_core_of_thread.
9477
9f9f1f31
TT
94782012-03-05 Tom Tromey <tromey@redhat.com>
9479
9480 * value.c (value_primitive_field): Don't fetch contents for
9481 non-virtual bases.
9482
b7b189f3
TT
94832012-03-05 Tom Tromey <tromey@redhat.com>
9484
9485 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9486
05b8a789 94872012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9488
5538f557
JB
9489 * s390-nat.c: Include "gregset.h".
9490
75528772
JK
94912012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9494 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9495 (libunwind_load): New variable so_error, use it for dlerror. Try to
9496 load also LIBUNWIND_SO_7.
9497
275418ae
PA
94982012-03-05 Pedro Alves <palves@redhat.com>
9499
9500 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9501 is not NULL, and remove resulting dead code.
9502
5cbb9812
TS
95032012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9504
9505 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9506 prologue to sh_analyze_prologue.
9507 (sh_analyze_prologue): Make better use of such an upper limit, and
9508 generally be more cautious about accessing memory.
9509
541515ad
TT
95102012-03-05 Tom Tromey <tromey@redhat.com>
9511
9512 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9513 _initialize_ia64_hpux_tdep.
9514
b4d36fb8
PA
95152012-03-05 Pedro Alves <palves@redhat.com>
9516
24490249
PA
9517 PR gdb/13766
9518
b4d36fb8
PA
9519 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9520 the register state is clear, supply explicit zero, instead of
9521 marking the register unavailable.
9522
60c9a3c0
TG
95232012-03-05 Tristan Gingold <gingold@adacore.com>
9524
9525 * NEWS: Mention OpenVMS ia64 new target.
9526
696759ad
TG
95272012-03-05 Tristan Gingold <gingold@adacore.com>
9528
9529 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9530 (ia64_unw_accessors, ia64_unw_rse_accessors)
9531 (ia64_libunwind_descr): Declare.
9532 * ia64-vms-tdep.c: New file.
9533 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9534 (ia64_libunwind_descr): Make them public.
9535 * configure.tgt: Add ia64-*-*vms*.
9536 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9537 (ALLDEPFILES): Add ia64-vms-tdep.c
9538
34864976
TG
95392012-03-05 Tristan Gingold <gingold@adacore.com>
9540
169081d0
TG
9541 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9542 * remote.c (PACKET_qXfer_uib): New enum value.
9543 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9544 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9545 (_initialize_remote): Call add_packet_config_cmd for
9546 xfer:uib packet.
9547
95482012-03-05 Tristan Gingold <gingold@adacore.com>
9549
9550 * osabi.c (gdb_osabi_names): Add OpenVMS.
9551 (generic_elf_osabi_sniffer): Likewise.
9552 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9553
6597b100
JK
95542012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 Removed unused code.
9557 * libunwind-frame.c (libunwind_frame_unwind)
9558 (libunwind_frame_base_address): Remove.
9559 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9560
87399aa1
YQ
95612012-03-04 Yao Qi <yao@codesourcery.com>
9562
9563 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9564 remove trailing new line.
9565 (agent_run_command, agent_run_command): Add _ markup.
9566 (agent_capability_check): Likewise.
9567
abf1152a
JK
95682012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9569
9570 * breakpoint.c (set_condition_evaluation_mode): Set
9571 CONDITION_EVALUATION_MODE unconditionally.
9572
5808517f
YQ
95732012-03-03 Yao Qi <yao@codesourcery.com>
9574
9575 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9576 * common/agent.h: Update declaration.
9577 * inf-child.c (inf_child_use_agent): New.
9578 (inf_child_can_use_agent): New.
9579 (inf_child_target): Initialize fields `to_use_agent'
9580 and `to_can_use_agent'.
9581 * agent.c (agent_new_objfile): New.
89b7509a 9582 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9583 observer.
9584
9585 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9586 New.
89b7509a 9587 (linux_target_install_ops): Initialize field
5808517f
YQ
9588 `to_static_tracepoint_markers_by_strid'.
9589 * remote.c (free_current_marker): Move it to ...
9590 * tracepoint.c (free_current_marker): ... here. New.
9591 (cleanup_target_stop): New.
9592 * tracepoint.h: Declare free_current_marker.
9593 * NEWS: Add one entry about `info static-tracepoint-marker'.
9594
58b4daa5
YQ
95952012-03-03 Yao Qi <yao@codesourcery.com>
9596
9597 * common/agent.c (agent_loaded_p): New.
89b7509a 9598 (agent_look_up_symbols): New global.
58b4daa5
YQ
9599 * common/agent.h: Declare agent_loaded_p.
9600
8ffcbaaf
YQ
96012012-03-03 Yao Qi <yao@codesourcery.com>
9602
9603 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9604 (agent_capability_check, agent_capability_invalidate): New.
9605 (symbol_list): New array element.
9606 * common/agent.h (enum agent_capa): New.
9607 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9608
d1feda86
YQ
96092012-03-03 Yao Qi <yao@codesourcery.com>
9610
9611 * target.h (struct target_ops) <to_use_agent>: New field.
9612 (struct target_ops) <to_can_use_agent>: New field.
9613 (target_use_agent, target_can_use_agent): New macro.
9614 * target.c (update_current_target): Update.
9615 * remote.c: New enum `PACKET_QAgent'.
9616 (remote_protocol_features): Add a new element.
9617 (remote_use_agent, remote_can_use_agent): New.
9618 (init_remote_ops): Initialize field `can_use_agent' with
9619 remote_can_use_agent. Intiailize field `use_agent' with
9620 remote_use_agent.
9621 * common/agent.c (use_agent): New global.
9622 * common/agent.h: Declare it.
9623 * tracepoint.c (info_static_tracepoint_markers_command): Add
9624 comment.
9625 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9626 (COMMON_OBS): Add common/agent.o and agent.o
9627 (common-agent.o): New rule.
9628 * agent.c: New.
9629
2fa291ac
YQ
96302012-03-03 Yao Qi <yao@codesourcery.com>
9631
9632 * common/agent.c: New.
9633 * common/agent.h: New.
9634 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9635 AC_CHECK_HEADERS.
9636 * configure, configh.in: Regenerated.
9637
9fc05685
KB
96382012-03-02 Kevin Buettner <kevinb@redhat.com>
9639
9640 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9641 unless it exists for this architecture.
9642
a5ee536b
JB
96432012-03-02 Joel Brobecker <brobecker@adacore.com>
9644
9645 * language.h (struct language_defn): New "method" la_read_var_value.
9646 * findvar.c: #include "language.h".
9647 (default_read_var_value): Renames read_var_value. Rewrite
9648 function description.
9649 (read_var_value): New function.
9650 * value.h (default_read_var_value): Add prototype.
9651 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9652 New functions.
9653 (ada_language_defn): Add entry for la_read_var_value.
9654 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9655 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9656 language_defn structures to add entry for new la_read_var_value
9657 field.
9658
f59f708a
PA
96592012-03-02 Tom Tromey <tromey@redhat.com>
9660 Pedro Alves <palves@redhat.com>
9661
9662 PR breakpoints/13776:
9663 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9664 breakpoints.
9665 (delete_longjmp_breakpoint_at_next_stop): New.
9666 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9667 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9668 before deleting the inferior. Add comments.
9669 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9670 breakpoints immediately, but only on next stop. Move that code
9671 next to where we mark other breakpoints for deletion.
9672
44099a67
JB
96732012-03-02 Joel Brobecker <brobecker@adacore.com>
9674
9675 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9676 marker.
9677 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9678 violation.
9679
2a2ef594
PA
96802012-03-02 Pedro Alves <palves@redhat.com>
9681
9682 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9683
b261e0c5
UW
96842012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9685
9686 Fix -Wmissing-prototypes build.
9687 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9688 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9689 (gdbsim_has_memory): Likewise.
9690
a95babbf
YQ
96912012-03-02 Yao Qi <yao@codesourcery.com>
9692
9693 Fix -Wmissing-prototypes build.
9694 * charset.c (phony_iconv_open): Make static.
9695 (phony_iconv_close, phony_iconv): Likewise.
9696 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9697 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9698 prototype.
9699 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9700 * ser-mingw.c (create_select_thread): Make static.
9701 * windows-termcap.c (tgetent): New prototype.
9702 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9703
d603d4b3
JK
97042012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9705
9706 Fix -Wmissing-prototypes build.
9707 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9708 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9709 (_initialize_loadable): New prototypes.
9710
7fb3ad1f
DE
97112012-03-02 Doug Evans <dje@google.com>
9712
9713 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9714 abbrev table, read_comp_unit will do it.
9715
693be288
JK
97162012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9717
9718 Fix -Wmissing-prototypes build.
9719 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9720 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9721 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9722 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9723 (_initialize_arm_symbian_tdep): New prototype.
9724 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9725 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9726 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9727 static.
9728 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9729 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9730 prototype.
9731 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9732 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9733 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9734 static.
9735 * moxie-tdep.c (moxie_process_record): Likewise.
9736 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9737 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9738 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9739 (_initialize_rl78_tdep): New prototype.
9740 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9741 (_initialize_rx_tdep): New prototype.
9742 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9743 (_initialize_darwin_solib): New prototype.
9744 * solib-spu.c: Include solib-spu.h.
9745 (_initialize_spu_solib): New prototype.
9746 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9747 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9748 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9749 (tic6x_software_single_step): Make it static.
9750 (_initialize_tic6x_tdep): New prototype.
9751
638234e5
JK
97522012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9753
9754 Fix -Wmissing-prototypes build.
9755 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9756 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9757
f4a6f16d
JK
97582012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 Fix -Wmissing-prototypes build.
9761 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9762 (frv_have_stopped_data_address): Remove.
9763
04dcf5fa
JK
97642012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9765
9766 Fix -Wmissing-prototypes build.
9767 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9768 * sh-tdep.c: Include sh64-tdep.h.
9769 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9770 * sh64-tdep.c: Include sh64-tdep.h.
9771 * sh64-tdep.h: New file.
9772
19080931
MR
97732012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9774
9775 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9776
9aac7884
MR
97772012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9778
9779 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9780 sp_regnum once the gdbarch_init_osabi hook has been called.
9781
a385295e
MR
97822012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9783
9784 * mips-tdep.c (mips32_bc1_pc): New function.
9785 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9786 BPOSGE32 and BPOSGE64 instructions.
9787 (deal_with_atomic_sequence): Likewise.
9788 (mips32_instruction_has_delay_slot): Likewise.
9789
1faeff08 97902012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9791 Chris Dearman <chris@mips.com>
9792 Maciej W. Rozycki <macro@codesourcery.com>
9793 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9794
9795 * features/mips-dsp.xml: New file.
9796 * features/mips64-dsp.xml: New file.
9797 * features/mips-dsp-linux.xml: New file.
9798 * features/mips64-dsp-linux.xml: New file.
9799 * features/Makefile (WHICH): Add mips-dsp-linux and
9800 mips64-dsp-linux.
9801 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9802 * features/mips-dsp-linux.c: New file.
9803 * features/mips64-dsp-linux.c: New file.
9804 * regformats/mips-dsp-linux.dat: New file.
9805 * regformats/mips64-dsp-linux.dat: New file.
9806 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9807 registers.
9808 (mips64_linux_register_addr): Likewise.
9809 (mips64_linux_regsets_fetch_registers): Likewise.
9810 (mips64_linux_regsets_store_registers): Likewise.
9811 (mips64_linux_fetch_registers): Update call to
9812 mips64_linux_regsets_fetch_registers.
9813 (mips64_linux_store_registers): Update call to
9814 mips64_linux_regsets_store_registers.
9815 (mips_linux_read_description): Probe for DSP registers.
9816 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9817 and initialize_tdesc_mips64_dsp_linux.
9818 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9819 Remove padding of no longer used embedded register slots.
9820 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9821 (MIPS_RESTART_REGNUM): Redefine enum value.
9822 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9823 strings.
9824 (mips_tx39_reg_names): Likewise.
9825 (mips_linux_reg_names): New array of register names for Linux
9826 targets.
9827 (mips_register_name): Check for a null pointer in
9828 mips_processor_reg_names and return an empty string.
9829 (mips_register_type): Exclude embedded registers for the IRIX
9830 and Linux ABIs.
9831 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9832 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9833 DSP registers.
9834 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9835 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9836 (mips_gdbarch_init): Likewise. Initialize internal register
9837 indices for the Linux ABI. Use dynamic numbers to refer to
9838 registers, as applicable, while parsing the target description.
9839 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9840
263689d8
JB
98412012-03-01 Joel Brobecker <brobecker@adacore.com>
9842
9843 * frame.h (read_frame_register_unsigned): Fix typo in function
9844 description.
9845
f3b4f45c
PA
98462012-03-01 Pedro Alves <palves@redhat.com>
9847
9848 * jit-reader.in [!__cplusplus]
9849 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9850
b03a2011
PA
98512012-03-01 Pedro Alves <palves@redhat.com>
9852
9853 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9854 * configure: Regenerate.
9855
70221824
PA
98562012-03-01 Pedro Alves <palves@redhat.com>
9857
9858 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9859 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9860 (ftrace_command, strace_command): Make static.
9861 * d-lang.c (_initialize_d_language): Declare.
9862 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9863 * dwarf2loc.c (_initialize_dwarf2loc):
9864 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9865 * exec.c (exec_get_section_table): Make static.
9866 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9867 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9868 * inferior.c (remove_inferior_command, add_inferior_command)
9869 (clone_inferior_command): Make static.
9870 * linux-nat.c (linux_nat_thread_address_space)
9871 (linux_nat_core_of_thread): Make static.
9872 * linux-tdep.c (_initialize_linux_tdep): Declare.
9873 * objc-lang.c (_initialize_objc_lang): Declare.
9874 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9875 Make static.
9876 (_initialize_opencl_language): Declare.
9877 * record.c (_initialize_record): Declare.
9878 * remote.c (demand_private_info, remote_get_tib_address)
9879 (remote_supports_cond_tracepoints)
9880 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9881 Make static.
9882 * skip.c (_initialize_step_skip): Declare.
9883 * symtab.c (skip_prologue_using_lineinfo): Make static.
9884 * tracepoint.c (delete_trace_state_variable)
9885 (trace_variable_command, delete_trace_variable_command)
9886 (get_uploaded_tsv, find_matching_tracepoint_location)
9887 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9888 Make static.
9889 * value.c (pack_unsigned_long): Make static.
9890 * varobj.c (varobj_ensure_python_env): Make static.
9891 * windows-tdep.c (_initialize_windows_tdep): Declare.
9892 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9893
33fbcbee
PA
98942012-03-01 Pedro Alves <palves@redhat.com>
9895
9896 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9897 gdbarch parameter.
9898 (linux_init_abi): Install it as has_shared_address_space gdbarch
9899 callback.
9900
44d0cd3b
PA
99012012-03-01 Pedro Alves <palves@redhat.com>
9902
9903 * observer.c (observer_test_first_notification_function)
9904 (observer_test_second_notification_function)
9905 (observer_test_third_notification_function): Add declarations.
9906
ed01b82c
PA
99072012-03-01 Pedro Alves <palves@redhat.com>
9908
9909 * common/signals.c (default_target_signal_to_host)
9910 (default_target_signal_from_host): Move ...
9911 * arch-utils.c: ... here.
9912 * arch-utils.h (default_target_signal_to_host)
9913 (default_target_signal_from_host): Declare.
9914
9915 * common/signals.c (target_signal_from_command): Move ...
9916 * infrun.c: ... here.
9917 * inferior.h (target_signal_from_command): Declare.
9918 * target.h (target_signal_from_command)
9919 (default_target_signal_from_host, default_target_signal_to_host):
9920 Delete declarations.
9921
9922 * common/signals.c (_initialize_signals): Delete.
9923
c9b87335
PA
99242012-03-01 Pedro Alves <palves@redhat.com>
9925
9926 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9927 both __cplusplus and !__cplusplus.
9928
9340a6c0
PA
99292012-03-01 Pedro Alves <palves@redhat.com>
9930
9931 * psymtab.c (find_and_open_source): Delete declaration.
9932 * source.c (find_and_open_source): Move comment ...
9933 * source.h (find_and_open_source): ... to this new declaration.
9934
e451c4a1
PA
99352012-03-01 Pedro Alves <palves@redhat.com>
9936
9937 * inline-frame.c: Include inline-frame.h.
9938
983fb104
PA
99392012-03-01 Pedro Alves <palves@redhat.com>
9940
9941 * tui/tui-data.c (set_gen_win_origin): Delete.
9942 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9943 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9944
5fbce5df
PA
99452012-03-01 Pedro Alves <palves@redhat.com>
9946
9947 * remote.c (encode_actions): Delete declaration.
9948 * tracepoint.c (encode_actions): Make extern.
9949 * tracepoint.h (encode_actions): Declare.
9950
49a8461d
PA
99512012-03-01 Pedro Alves <palves@redhat.com>
9952
9953 * python/py-breakpoint.c: Include python.h.
9954 * python/py-continueevent.c (create_continue_event_object): Make
9955 static.
9956 * python/py-lazy-string.c (stpy_get_type): Make static.
9957 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9958 Make static.
9959 * python/py-utils.c (unicode_to_target_python_string): Make
9960 static.
9961 * python/py-value.c: Include python.h.
9962
9079102f
PA
99632012-03-01 Pedro Alves <palves@redhat.com>
9964
9965 * inferior.c (delete_threads_of_inferior): Delete.
9966
a298c5e8
PA
99672012-03-01 Pedro Alves <palves@redhat.com>
9968
9969 Import fallback definitions from glibc.
9970
9971 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9972 ps_prochandle): Forward declare.
9973 (ps_err_e): Use glibc's comments.
9974 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9975 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9976 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9977 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9978 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9979 (struct ps_prochandle): Adjust comment.
9980
e3084549
PA
99812012-03-01 Pedro Alves <palves@redhat.com>
9982
9983 * ada-lang.c (ada_modulus_from_name): Delete.
9984 * ada-lex.l (lexer_init): Make static.
9985
ad5f7d6e
PA
99862012-03-01 Pedro Alves <palves@redhat.com>
9987
9988 PR gdb/13767
9989
9990 * frame.c (read_frame_register_unsigned): New.
9991 * frame.h (read_frame_register_unsigned): Declare.
9992 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9993 Handle it.
9994 (print_i387_control_word): New parameter `control_p'. Handle it.
9995 (i387_print_float_info): Handle unavailable float registers.
9996
e0a4d108
KS
99972012-03-01 Keith Seitz <keiths@redhat.com>
9998
9999 * linespec.c (decode_line_2): Sort the list of methods
10000 alphabetically before presenting the user with a selection
10001 menu.
10002
122d1940
DE
100032012-03-01 Doug Evans <dje@google.com>
10004
10005 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10006 has_namespace_info.
10007 (dwarf2_read_abbrevs): Remove corresponding initialization.
10008
7d74f244
DE
100092012-03-01 Scott J. Goldman <scottjg@vmware.com>
10010
10011 * NEWS: Mention new python command class gdb.COMMAND_USER.
10012 * cli/cli-cmds.c (show_user): Print error when used on a python
10013 command.
10014 (init_cli_cmds): Update documentation strings for "show user" and
10015 "set/show max-user-call-depth" to clarify that it does not apply to
10016 python commands.
10017 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10018 error check.
10019 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10020 gdb python api.
10021 * top.c (execute_command): Only execute a user-defined command as a
10022 legacy macro if c->user_commands is set.
10023
e88acd96
TT
100242012-03-01 Tom Tromey <tromey@redhat.com>
10025
10026 * valprint.h (struct generic_val_print_decorations): New.
10027 (generic_val_print): Declare.
10028 * valprint.c (generic_val_print): New function.
10029 * p-valprint.c (p_decorations): New global.
10030 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10031 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10032 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10033 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10034 * m2-valprint.c (m2_decorations): New global.
10035 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10036 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10037 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10038 TYPE_CODE_ERROR>: Call generic_val_print.
10039 * f-valprint.c (f_decorations): New global.
10040 (f_val_print): Use print_function_pointer_address.
10041 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10042 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10043 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10044 generic_val_print.
10045 * c-valprint.c (c_decorations): New global.
10046 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10047 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10048 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10049 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10050 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10051 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10052 case.
10053
d3eab38a
TT
100542012-03-01 Tom Tromey <tromey@redhat.com>
10055
10056 * valprint.c (val_print): Update.
10057 * p-valprint (pascal_val_print): Return void.
10058 * p-lang.h (pascal_val_print): Return void.
10059 * m2-valprint.c (m2_val_print): Return void.
10060 * m2-lang.h (m2_val_print): Return void.
10061 * language.h (struct language_defn) <la_val_print>: Return void.
10062 * language.c (unk_lang_val_print): Return void.
10063 * jv-valprint.c (java_val_print): Return void.
10064 * jv-lang.h (java_val_print): Return void.
10065 * f-valprint.c (f_val_print): Return void.
10066 * f-lang.h (f_val_print): Return void.
10067 * d-valprint.c (d_val_print): Return void.
10068 (dynamic_array_type): Update.
10069 * d-lang.h (d_val_print): Return void.
10070 * c-valprint.c (c_val_print): Return void.
10071 * c-lang.h (c_val_print): Return void.
10072 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10073 void.
10074 * ada-lang.h (ada_val_print): Return void.
10075
35c0084b
TT
100762012-03-01 Tom Tromey <tromey@redhat.com>
10077
10078 * value.h (val_print): Return void.
10079 * valprint.c (val_print): Return void.
10080
a1f5dd1b
TT
100812012-03-01 Tom Tromey <tromey@redhat.com>
10082
10083 * value.h (common_val_print): Return void.
10084 * valprint.c (common_val_print): Return void.
10085
8e069a98
TT
100862012-03-01 Tom Tromey <tromey@redhat.com>
10087
10088 * value.h (value_print): Return void.
10089 * valprint.c (value_print): Return void.
10090 * p-valprint.c (pascal_value_print): Return void.
10091 * p-lang.h (pascal_value_print): Return void.
10092 * language.h (struct language_defn) <la_value_print>: Return
10093 void.
10094 * language.c (unk_lang_value_print): Return void.
10095 * jv-valprint.c (java_value_print): Return void.
10096 * jv-lang.h (java_value_print): Return void.
10097 * f-valprint.c (c_value_print): Don't declare.
10098 Include c-lang.h.
10099 * c-valprint.c (c_value_print): Return void.
10100 * c-lang.h (c_value_print): Return void.
10101 * ada-valprint.c (ada_value_print): Return void.
10102 * ada-lang.h (ada_value_print): Return void.
10103
be335936
TT
101042012-03-01 Tom Tromey <tromey@redhat.com>
10105
10106 * value.c (value_primitive_field): Handle virtual base classes.
10107
b0db66a7
TT
101082012-03-01 Tom Tromey <tromey@redhat.com>
10109
10110 * gdbtypes.h (struct vbase): Remove.
10111
132c57b4
TT
101122012-03-01 Tom Tromey <tromey@redhat.com>
10113
10114 * c-valprint.c (print_function_pointer_address): Move...
10115 * valprint.c: ... here. Make non-static.
10116 * m2-valprint.c (print_function_pointer_address): Remove.
10117 * valprint.h (print_function_pointer_address): Declare.
10118
e41eec66
JB
101192012-03-01 Joel Brobecker <brobecker@adacore.com>
10120
10121 * NEWS: Document the fact that one can provide a condition when
10122 creating an Ada exception catchpoint.
10123
19c37f24
TT
101242012-03-01 Tom Tromey <tromey@redhat.com>
10125
10126 * valprint.c (val_print_type_code_flags): Fix placement of
10127 trailing brace.
10128
f0fed3a3
JB
101292012-03-01 Joel Brobecker <brobecker@adacore.com>
10130
10131 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10132 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10133 environment variable before calling update-copyright.
10134
8ba85d85
JB
101352012-03-01 Joel Brobecker <brobecker@adacore.com>
10136
10137 * gnulib/extra/update-copyright: Update to the latest from
10138 gnulib's git repository.
10139 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10140 variable to 2 instead of 1.
10141
8219b1e8
JB
101422012-02-29 Joel Brobecker <brobecker@adacore.com>
10143
10144 * varobj.c (c_value_of_variable): Remove dead code.
10145
718cb7da
JB
101462012-02-29 Joel Brobecker <brobecker@adacore.com>
10147
10148 * ada-lex.p (processId): Do not modify already encoded IDs.
10149 Update function documentation.
10150
739593e0
JB
101512012-02-29 Joel Brobecker <brobecker@adacore.com>
10152
10153 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10154 "name" with "struct symbol *name_sym".
10155 * ada-exp.y (write_var_or_type): Update call to
10156 ada_find_renaming_symbol.
10157 "name" with "struct symbol *name_sym". Adjust Implementation
10158 accordingly. Adjust the function documentation.
10159
852dff6c
JB
101602012-02-29 Joel Brobecker <brobecker@adacore.com>
10161
10162 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10163 * ada-lang.c (ada_find_any_type): Add advance declaration.
10164 Make static. Replace ada_find_any_symbol by
10165 ada_find_any_type_symbol.
10166 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10167 Improve function description. Make static.
10168 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10169 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10170
1b611343
JB
101712012-02-29 Joel Brobecker <brobecker@adacore.com>
10172
10173 * ada-lang.c (struct tag_args): Delete.
10174 (ada_get_tsd_type): Function body moved up in source file.
10175 (ada_tag_name_1, ada_tag_name_2): Delete.
10176 (ada_get_tsd_from_tag): New function.
10177 (ada_tag_name_from_tsd): New function.
10178 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10179 to determine the tag name.
10180
41246937
JB
101812012-02-29 Joel Brobecker <brobecker@adacore.com>
10182
10183 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10184 declaration.
10185 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10186 function.
10187
ffde82bf
JB
101882012-02-29 Joel Brobecker <brobecker@adacore.com>
10189
10190 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10191
2ad01556
JB
101922012-02-29 Joel Brobecker <brobecker@adacore.com>
10193
10194 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10195 full searches.
10196
99b1c762
JB
101972012-02-29 Joel Brobecker <brobecker@adacore.com>
10198
10199 * ada-lang.c (constrained_packed_array_type): If there is a
10200 parallel XA type, use it to determine the array index type.
10201
2d4a02ee
JB
102022012-02-29 Joel Brobecker <brobecker@adacore.com>
10203
10204 * ada-valprint.c (ada_val_print_1): If our value is a reference
10205 to an array descriptor, dereference it before converting it
10206 to a simple array.
10207
c48db5ca
JB
102082012-02-29 Joel Brobecker <brobecker@adacore.com>
10209
10210 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10211 creating fixed value.
10212 (ada_value_ind, ada_coerce_ref, assign_component)
10213 (ada_evaluate_subexp): Remove call to unwrap_value before
10214 call to ada_to_fixed_value.
10215
2e6fda7d
JB
102162012-02-29 Joel Brobecker <brobecker@adacore.com>
10217
10218 * ada-lang.c (to_fixed_array_type): Set result's type name.
10219
5845583d
JB
102202012-02-29 Joel Brobecker <brobecker@adacore.com>
10221
10222 * ada-lang.c (catch_ada_exception_command_split): Add new
10223 argument cond_string. Add support for condition at end of
10224 "catch exception" commands.
10225 (ada_decode_exception_location): Add new argument cond_string.
10226 Update call to catch_ada_exception_command_split.
10227 (create_ada_exception_catchpoint): Add new argument cond_string.
10228 Set the breakpoint condition if needed.
10229 (catch_ada_exception_command): Update call to
10230 ada_decode_exception_location.
10231 (ada_decode_assert_location): Add function documentation.
10232 Add support for condition at end of "catch assert" command.
10233 (catch_assert_command): Update calls to ada_decode_assert_location
10234 and create_ada_exception_catchpoint.
10235
9a7f938f
JK
102362012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10237
10238 Fix disp-step-syscall.exp: fork: single step over fork.
10239 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10240 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10241 comment, change parameters gdbarch and ptid to regcache. Remove
10242 parameter regcache, initialize gdbarch from regcache here.
10243 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10244 New functions.
10245 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10246 instead.
10247 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10248 'syscall'. Make the 'int' check more strict.
10249
ffdf6de5
JK
102502012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10251
10252 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10253 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10254 (i386_linux_intx80_sysenter_syscall_record): ... here.
10255 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10256 Use the renamed function name.
10257
c70a6932
JK
102582012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10259
10260 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10261 * breakpoint.c (until_break_command): Likewise.
10262 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10263 * infcall.c (call_function_by_hand): Likewise.
10264 * infcmd.c (finish_forward): Likewise.
10265 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10266
05b8a789 102672012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10268
d4cd3da9
JB
10269 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10270 avoid variable assignments inside condition.
10271
6425366c
JK
102722012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10273
10274 Fix static analysis issue found by cppcheck.
10275 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10276 uninitialized BUF for size 2.
10277
c8cef75f 102782012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10279 Nathan Froyd <froydnj@codesourcery.com>
10280 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10281
10282 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10283 (mips16_instruction_has_delay_slot): Likewise.
10284 (mips_segment_boundary): Likewise.
10285 (mips_adjust_breakpoint_address): Likewise.
10286 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10287
473347ad 102882012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10289 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10290
10291 * infrun.c (handle_inferior_event): Don't proceed through
10292 shared library trampolines if stepping at the machine
10293 instruction level.
10294
cf233303
MR
102952012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10296
10297 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10298 too.
10299
cb2cf4ce
TS
103002012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10301
10302 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10303 (sh_stub_unwind_sniffer): New functions.
10304 (sh_stub_unwind): New variable.
10305 (sh_gdbarch_init): Wire everything.
10306
644cebc9
PA
103072012-02-27 Pedro Alves <palves@redhat.com>
10308
10309 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10310 (linux_nat_post_attach_wait): Adjust to use
10311 linux_proc_pid_is_stopped.
10312 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10313 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10314 based on pid_is_stopped from both linux-nat.c and
10315 gdbserver/linux-low.c, and renamed.
10316
283002cf
MR
103172012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10318
10319 * remote.c (remote_watchpoint_addr_within_range): New function.
10320 (init_remote_ops): Use it.
10321
9b3e86b1
MR
103222012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10323
10324 * target.h (target_watchpoint_addr_within_range): Document macro.
10325
e36930bb
PA
103262012-02-24 Pedro Alves <palves@redhat.com>
10327
10328 * stack.c (set_last_displayed_sal): Issue internal_error instead
10329 of warning, and issue it after clearing the last displayed sal.
10330
883bc8d1
PA
103312012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10332 Pedro Alves <palves@redhat.com>
10333
10334 * breakpoint.c (until_break_command): Install breakpoints after
10335 all frame manipulations.
10336
b775012e
LM
103372012-02-24 Luis Machado <lgustavo@codesourcery.com>
10338
10339 * remote.c (remote_supports_cond_breakpoints): New forward
10340 declaration.
10341 (remote_add_target_side_condition): New function.
10342 (remote_insert_breakpoint): Add target-side breakpoint
10343 conditional if supported.
10344 (remote_insert_hw_breakpoint): Likewise.
10345 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10346 hook.
10347
10348 * target.c (update_current_target): Inherit
10349 to_supports_evaluation_of_breakpoint_conditions.
10350 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10351
10352 * target.h (struct target_ops)
10353 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10354 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10355
10356 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10357 (condition_evaluation_both, condition_evaluation_auto,
10358 condition_evaluation_host, condition_evaluation_target,
10359 condition_evaluation_enums, condition_evaluation_mode_1,
10360 condition_evaluation_mode): New static globals.
10361 (translate_condition_evaluation_mode): New function.
10362 (breakpoint_condition_evaluation_mode): New function.
10363 (gdb_evaluates_breakpoint_condition_p): New function.
10364 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10365 (mark_breakpoint_modified): New function.
10366 (mark_breakpoint_location_modified): New function.
10367 (set_condition_evaluation_mode): New function.
10368 (show_condition_evaluation_mode): New function.
10369 (bp_location_compare_addrs): New function.
10370 (get_first_location_gte_addr): New helper function.
10371 (set_breakpoint_condition): Free condition bytecode if locations
10372 has become unconditional. Call mark_breakpoint_modified (...).
10373 (condition_command): Call update_global_location_list (1) for
10374 breakpoints.
10375 (breakpoint_xfer_memory): Use is_breakpoint (...).
10376 (is_breakpoint): New function.
10377 (parse_cond_to_aexpr): New function.
10378 (build_target_condition_list): New function.
10379 (insert_bp_location): Handle target-side conditional
10380 breakpoints and call build_target_condition_list (...).
10381 (update_inserted_breakpoint_locations): New function.
10382 (insert_breakpoint_locations): Handle target-side conditional
10383 breakpoints.
10384 (bpstat_check_breakpoint_conditions): Add comment.
10385 (bp_condition_evaluator): New function.
10386 (bp_location_condition_evaluator): New function.
10387 (print_breakpoint_location): Print information on where the condition
10388 will be evaluated.
10389 (print_one_breakpoint_location): Likewise.
10390 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10391 breakpoint location.
10392 (force_breakpoint_reinsertion): New functions.
10393 (update_global_location_list): Handle target-side breakpoint
10394 conditions.
10395 Reinsert locations that are already inserted if conditions have
10396 changed.
10397 (bp_location_dtor): Free agent expression bytecode.
10398 (disable_breakpoint): Call mark_breakpoint_modified (...).
10399 Call update_global_location_list (...) with parameter 1 for breakpoints.
10400 (disable_command): Call mark_breakpoint_location_modified (...).
10401 Call update_global_location_list (...) with parameter 1 for breakpoints.
10402 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10403 (enable_command): mark_breakpoint_location_modified (...).
10404 (_initialize_breakpoint): Update documentation and add
10405 condition-evaluation breakpoint subcommand.
10406
10407 * breakpoint.h: Include ax.h.
10408 (condition_list): New data structure.
10409 (condition_status): New enum.
10410 (bp_target_info) <cond_list>: New field.
10411 (bp_location) <condition_changed, cond_bytecode>: New fields.
10412 (is_breakpoint): New prototype.
10413
3788aec7
LM
104142012-02-24 Luis Machado <lgustavo@codesourcery.com>
10415
10416 * remote.c (remote_state) <cond_breakpoints>: New field.
10417 (PACKET_ConditionalBreakpoints): New enum.
10418 (remote_cond_breakpoint_feature): New function.
10419 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10420 (remote_supports_cond_breakpoints): New function.
10421 (_initialize_remote): Add new packet configuration for
10422 target-side conditional breakpoints.
10423
72895ff6
LM
104242012-02-24 Luis Machado <lgustavo@codesourcery.com>
10425
10426 * NEWS: Mention target-side conditional breakpoint support,
10427 new condition-evaluation breakpoint subcommand and remote
10428 packet extensions.
10429
dea2aa5f
LM
104302012-02-24 Luis Machado <lgustavo@codesourcery.com>
10431
10432 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10433 number.
10434
8a8bc27f
TS
104352012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10436
10437 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10438 (after_prologue): Remove.
10439
6b446fdf
TT
104402012-02-23 Tom Tromey <tromey@redhat.com>
10441
10442 * jv-valprint.c (java_val_print): Remove dead code.
10443
ef59abfb
TG
104442012-02-23 Tristan Gingold <gingold@adacore.com>
10445
a09130f9
PA
10446 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10447 known_tasks_element and known_tasks_length fields.
10448 (read_known_tasks_array): Change argument type. Use pointer type
10449 and number of elements from DATA. Adjust.
10450 (read_known_tasks_list): Likewise.
10451 (get_known_tasks_addr): Remove.
10452 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10453 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10454 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10455
def166f6
JK
104562012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10457
10458 PR backtrace/13716
10459 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10460 it after set_momentary_breakpoint.
10461
aeaa2474
SA
104622012-02-22 Sterling Augustine <saugustine@google.com>
10463
10464 PR 13689:
10465 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10466
feea76c2
GB
104672012-02-22 Gary Benson <gbenson@redhat.com>
10468
10469 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10470 (find_slot_in_mapped_hash): Likewise.
10471
f06e05e0
JK
104722012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 PR build/13638
10475 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10476 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10477 * configure: Regenerate.
10478
b54a8fd7
PA
104792012-02-21 Tristan Gingold <gingold@adacore.com>
10480 Pedro Alves <palves@redhat.com>
10481
10482 * ia64-tdep.c: Do not include libunwind-ia64.h.
10483 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10484 Include libunwind-ia64.h instead of libunwind.h.
10485 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10486 for libunwind.h existence.
10487 * configure, config.in: Regenerate.
10488
dfcee124
AG
104892012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10490
10491 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10492 instead of value_rtti_target_type.
10493 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10494 instead of value_rtti_target_type.
10495 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10496 value_rtti_target_type.
10497 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10498 (value_rtti_target_type): Rename to ...
10499 (value_rtti_indirect_type): ... here and make it indirect. Update
10500 function comment.
10501 * value.c (readjust_indirect_value_type): New function.
10502 (coerce_ref): Support for enclosing type setting for references
10503 with readjust_indirect_value_type.
10504 * value.h (readjust_value_type): New declaration.
10505 (value_rtti_target_type): Rename to ...
10506 (value_rtti_indirect_type): ... here.
10507
02568277
AG
105082012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10509
10510 * MAINTAINERS (Write After Approval): Add myself to the list.
10511
10c07b7e 105122012-02-20 Doug Evans <dje@google.com>
28ee876a 10513
d82ea6a8
DE
10514 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10515 Rename objfile_p_char parameter to objfilep.
10516 (build_objfile_section_table): Result is now void. All callers
10517 updated.
10518 * objfiles.h (struct objfile): Tweak comments, whitespace.
10519 (build_objfile_section_table): Update.
10520
28ee876a
DE
10521 * elfread.c (elf_symfile_segments): Fix warning text.
10522
24c79950
TT
105232012-02-20 Tom Tromey <tromey@redhat.com>
10524
10525 PR gdb/13498:
10526 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10527 particular set of file names once.
10528 (dw2_map_symbol_filenames): Likewise.
10529
3a9b40b6
JK
105302012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10531
10532 Code cleanup.
10533 * main.c (write_files): Remove the declaration.
10534 (external_editor_command): Move the declaration ...
10535 [GDBTK] (external_editor_command): ... here. Fix the comment.
10536
4d0795ca
TT
105372012-02-20 Tom Tromey <tromey@redhat.com>
10538
10539 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10540 extraneous block.
10541
637fd620
TG
105422012-02-20 Tristan Gingold <gingold@adacore.com>
10543
10544 * darwin-nat.h (enum darwin_msg_state): Add comments.
10545
6f124894
TG
105462012-02-20 Tristan Gingold <gingold@adacore.com>
10547
10548 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10549 value.
10550
2e6e3d9c
JB
105512012-20-18 Joel Brobecker <brobecker@adacore.com>
10552
10553 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10554 between function description and implementation.
10555
2e8265fd
TT
105562012-02-17 Tom Tromey <tromey@redhat.com>
10557
10558 PR python/12070:
10559 * python/py-event.c (event_object_getset): New global.
10560 (event_object_type): Reference it.
10561 * python/py-type.c (field_object_getset): New global.
10562 (field_object_type): Reference it.
10563 * python/python-internal.h (gdb_py_generic_dict): Declare.
10564 * python/py-utils.c (gdb_py_generic_dict): New function.
10565
8544a150 105662012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10567
8544a150 10568 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10569
ca193e27
TS
105702012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10571
10572 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10573 TYPE_CALLING_CONVENTION annotation.
10574
e5586183
KB
105752012-02-16 Kevin Buettner <kevinb@redhat.com>
10576
10577 * MAINTAINERS: Add rx to target ISA section.
10578 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10579 (ALLDEPFILES): Add rx-tdep.c.
10580
7dcd53a0
TT
105812012-02-16 Tom Tromey <tromey@redhat.com>
10582
10583 * symfile.c (symbol_file_add_main_1): Use inferior's
10584 symfile_flags.
10585 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10586 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10587 inferior.
10588 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10589 inferior.
10590 (follow_exec): Use inferior's symfile_flags.
10591 * inferior.h (struct inferior) <symfile_flags>: New field.
10592
ddd60447
MF
105932012-02-16 Mike Frysinger <vapier@gentoo.org>
10594
10595 PR gdb/9734:
10596 * remote-sim.c (gdbsim_create_inferior): Call error() when
10597 sim_create_inferior() fails.
10598
b0d32fb6
TG
105992012-02-16 Josh Matthews <josh@joshmatthews.net>
10600
10601 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10602
9addecb9
TT
106032012-02-16 Tom Tromey <tromey@redhat.com>
10604
10605 PR c++/13653:
10606 * thread.c (struct current_thread_cleanup) <was_removable>: New
10607 field.
10608 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10609 (make_cleanup_restore_current_thread): Initialize new field.
10610
a58b110a
KB
106112012-02-15 Kevin Buettner <kevinb@redhat.com>
10612
10613 * MAINTAINERS: Add rl78 to target ISA section.
10614 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10615 (ALLDEPFILES): Add rl78-tdep.c.
10616 * NEWS: Mention rl78 as a new target.
10617
4cb6da1c
AR
106182012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10619
10620 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10621 data.
10622 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10623
3af2590d
TT
106242012-02-15 Tom Tromey <tromey@redhat.com>
10625
10626 PR gdb/12659:
10627 * infcmd.c (registers_info): Print just the current register's
10628 name.
10629
c6910659
TT
106302012-02-15 Tom Tromey <tromey@redhat.com>
10631
10632 * python/py-symbol.c (sympy_value): Use _().
10633
7cee1e54
PA
106342012-02-15 Pedro Alves <palves@redhat.com>
10635
10636 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10637 output to be like native targets'.
10638 (remote_pid_to_str): Special case the null ptid.
10639
816338b5
SS
106402012-02-14 Stan Shebs <stan@codesourcery.com>
10641
10642 * NEWS: Mention enable count command.
10643 * breakpoint.h (struct breakpoint): New field enable_count.
10644 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10645 (enable_breakpoint): Add arg to call.
10646 (struct disp_data): New struct.
10647 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10648 (do_map_enable_once_breakpoint): Create a struct and pass it.
10649 (do_map_enable_delete_breakpoint): Ditto.
10650 (do_map_enable_count_breakpoint): New function.
10651 (enable_count_command): New function.
10652 (bpstat_stop_status): Decrement enable_count.
10653 (print_one_breakpoint_location): Report enable count.
10654 (_initialize_breakpoint): Add enable count command.
10655
c47a44f4
KB
106562012-02-14 Kevin Buettner <kevinb@redhat.com>
10657
10658 * rl78-tdep.c (reggroups.h): Include.
10659 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10660 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10661 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10662 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10663 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10664 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10665 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10666 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10667 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10668 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10669 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10670 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10671 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10672 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10673 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10674 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10675 beginning of register list.
10676 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10677 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10678 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10679 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10680 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10681 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10682 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10683 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10684 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10685 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10686 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10687 the pseudo registers. Rearrange other pseudo registers too so
10688 that the bank registers appear at the end.
10689 (rl78_register_type): Account for the fact that the byte sized
10690 bank registers are now pseudo-registers.
10691 (rl78_register_name): Rearrange the register name array. Make
10692 initial set of raw banked registers inaccessible.
10693 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10694 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10695 case for copying bytes back and forth between raw and pseudo
10696 versions of the banked registers. Update other cases to reflect
10697 the changed names.
10698 (rl78_return_value): Update to account for changed names of
10699 raw registers.
10700 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10701 rl78_register_sim_regno().
10702
e4569f1e
KB
107032012-02-14 Kevin Buettner <kevinb@redhat.com>
10704
10705 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10706 the name parameter being passed to find_pc_partial_function().
10707
7a05aae7
JK
107082012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 * MAINTAINERS: Step down from being ia64 target maintainer.
10711
11fde611
JK
107122012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10715 compilation warning.
10716
57008375
JK
107172012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10718
10719 Fix crash on loaded shlibs without loaded exec_bfd.
10720 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10721 (set_section_command): Replace exec_bfd by p->bfd.
10722
ff3c9849
TT
107232012-02-10 Tom Tromey <tromey@redhat.com>
10724
10725 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10726 when we have a C++ qualified name.
10727
db2b9fdd
PA
107282012-02-10 Pedro Alves <palves@redhat.com>
10729
10730 * inferior.c (inferior_pid_to_str): New.
10731 (print_inferior, inferior_command): Use it.
10732
12cd34f3
PA
107332012-02-10 Pedro Alves <palves@redhat.com>
10734
10735 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10736 the test CFLAGS.
10737 * configure: Regenerate.
10738
e871429d
JK
107392012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10740
10741 * linespec.c (decode_line_internal): Fix comment correctness.
10742
1916efaf
PA
107432012-02-09 Valery Khromov <valery.khromov@gmail.com>
10744
10745 PR gdb/12953
10746 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10747 * amd64bsd-nat.c: Add support for debug registers (adapted from
10748 i386bsd-nat.c).
10749 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10750 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10751 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10752 (amd64bsd_dr_get_control): New functions.
10753 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10754 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10755 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10756 watchpoints initialization.
10757 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10758
f4859d94
JK
107592012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10762 flds_bnds.fields.
10763 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10764
c56a97f9
JK
107652012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10768
1a119f36
JB
107692012-02-08 Joel Brobecker <brobecker@adacore.com>
10770
10771 * language.h (symbol_name_cmp_ftype): Renames
10772 symbol_name_match_p_ftype.
10773 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10774 la_get_symbol_name_match_p.
10775 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10776 ada_get_symbol_name_match_p. Update comment.
10777 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10778 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10779 Renames symbol_name_match_p. Update field type.
10780 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10781 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10782 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10783 "la_get_symbol_name_cmp" in comments.
10784 * language.c: Likewise.
10785
c71bb1cf
RO
107862012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10787
10788 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10789 %eflags offset.
10790 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10791 (amd64_sol2_gregset32_reg_offs): Likewise.
10792
4b2d20a5
TG
107932012-02-08 Joel Brobecker <brobecker@adacore.com>
10794
10795 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10796 of the returned BFD is allocated by GDB.
10797
f0823d2c
TT
107982012-02-07 Tom Tromey <tromey@redhat.com>
10799
10800 PR python/12027:
10801 * python/python-internal.h (frame_object_type): Declare.
10802 * python/py-symbol.c (sympy_needs_frame): New function.
10803 (sympy_value): New function.
10804 (symbol_object_getset): Add "needs_frame".
10805 (symbol_object_methods): Add "value".
10806 * python/py-frame.c (frame_object_type): No longer static.
10807
64e7d9dd
TT
108082012-02-07 Tom Tromey <tromey@redhat.com>
10809
10810 PR python/13599:
10811 * python/py-symbol.c (sympy_line): New function.
10812 (symbol_object_getset): Add "line".
10813
1d6b2d2b
TT
108142012-02-07 Tom Tromey <tromey@redhat.com>
10815
10816 * charset.c (find_charset_names): Check 'in' against NULL.
10817
0d5cff50
DE
108182012-02-06 Doug Evans <dje@google.com>
10819
10820 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10821 and fields.name members from char * to const char *. All uses updated.
10822 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10823 from char * to const char *. All uses updated.
10824 (type_name_no_tag): Update.
10825 (lookup_unsigned_typename, lookup_signed_typename): Update.
10826 * gdbtypes.c (type_name_no_tag): Change result type
10827 from char * to const char *. All callers updated.
10828 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10829 name parameter from char * to const char *.
10830 * symtab.h (struct cplus_specific): Change type of demangled_name
10831 member from char * to const char *. All uses updated.
10832 (struct general_symbol_info): Change type of name and
10833 mangled_lang.demangled_name members from char * to const char *.
10834 All uses updated.
10835 (symbol_get_demangled_name, symbol_natural_name): Update.
10836 (symbol_demangled_name, symbol_search_name): Update.
10837 * symtab.c (symbol_get_demangled_name): Change result type
10838 from char * to const char *. All callers updated.
10839 (symbol_natural_name, symbol_demangled_name): Ditto.
10840 (symbol_search_name): Ditto.
10841 (completion_list_add_name): Change type of symname,sym_text,
10842 text,word parameters from char * to const char *.
10843 (completion_list_objc_symbol): Change type of sym_text,
10844 text,word parameters from char * to const char *.
10845 * ada-lang.c (find_struct_field): Change type of name parameter
10846 from char * to const char *.
10847 (encoded_ordered_before): Similarly for N0,N1 parameters.
10848 (old_renaming_is_invisible): Similarly for function_name parameter.
10849 (ada_type_name): Change result type from char * to const char *.
10850 All callers updated.
10851 * ada-lang.h (ada_type_name): Update.
10852 * buildsym.c (hashname): Change type of name parameter
10853 from char * to const char *.
10854 * buildsym.h (hashname): Update.
10855 * dbxread.c (end_psymtab): Change type of include_list parameter
10856 from char ** to const char **.
10857 * dwarf2read.c (determine_prefix): Change result type
10858 from char * to const char *. All callers updated.
10859 * f-lang.c (find_common_for_function): Change type of name, funcname
10860 parameters from char * to const char *.
10861 * f-lang.c (find_common_for_function): Update.
10862 * f-valprint.c (list_all_visible_commons): Change type of funcname
10863 parameters from char * to const char *.
10864 * gdbarch.sh (static_transform_name): Change type of name parameter
10865 and result from char * to const char *.
10866 * gdbarch.c: Regenerate.
10867 * gdbarch.h: Regenerate.
10868 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10869 of name parameter from char * to const char *.
10870 * jv-lang.c (java_primitive_type_from_name): Ditto.
10871 (java_demangled_signature_length): Similarly for signature parameter.
10872 (java_demangled_signature_copy): Ditto.
10873 (java_demangle_type_signature): Ditto.
10874 * jv-lang.h (java_primitive_type_from_name): Update.
10875 (java_demangle_type_signature): Update.
10876 * objc-lang.c (specialcmp): Change type of a,b parameters
10877 from char * to const char *.
10878 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10879 from char * to const char *. All callers updated.
10880 * p-lang.h (is_pascal_string_type): Update.
10881 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10882 of name parameter from char * to const char *.
10883 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10884 * utils.c (fprintf_symbol_filtered): Ditto.
10885 * defs.h (fprintf_symbol_filtered): Update.
10886 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10887 * stabsread.h (end_psymtab): Update.
10888 * stack.c (find_frame_funname): Change type of funname parameter
10889 from char ** to const char **.
10890 * stack.h (find_frame_funname): Update.
10891 * typeprint.c (type_print): Change type of varstring parameter
10892 from char * to const char *.
10893 * value.h (type_print): Update.
10894 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10895 from char * to const char *. All callers updated.
10896 (xcoff_end_psymtab): Change type of include_list parameter
10897 from char ** to const char **. All callers updated.
10898 (swap_sym): Similarly for name parameter. All callers updated.
10899 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10900 Use xstrdup.
10901 (process_coff_symbol): Use xstrdup.
10902 * stabsread.c (stabs_method_name_from_physname): Renamed from
10903 update_method_name_from_physname. Change result type from void
10904 to char *. All callers updated.
10905 (read_member_functions): In has_destructor case, store name in objfile
10906 obstack instead of malloc space. In !has_stub case, fix mem leak.
10907
5579a92e
TT
109082012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10909
10910 * configure: Rebuild.
10911 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10912 LDFLAGS.
10913
9058f767
KB
109142012-02-03 Kevin Buettner <kevinb@redhat.com>
10915
10916 * configure.tgt (rl78-*-elf): New target.
10917 * rl78-tdep.c: New file.
10918
5b37825d
PW
109192012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10920
10921 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10922 and continue the loop. Add QUIT statement.
10923
e009ee71
TT
109242012-02-03 Tom Tromey <tromey@redhat.com>
10925
10926 PR gdb/13596:
10927 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10928 bfd_lookup_symbol_from_symtab.
10929 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10930 gdb_bfd_lookup_symbol_from_symtab.
10931
f7e44f65
JB
109322012-02-03 Joel Brobecker <brobecker@adacore.com>
10933
10934 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10935 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10936 symbol. Add assertion that sym2 is never NULL.
10937
2c02bd72
DE
109382012-02-02 Doug Evans <dje@google.com>
10939
10940 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10941 "name" parameter to const char ** from char **. All callers updated.
10942 (find_pc_partial_function): Ditto.
10943 (cache_pc_function_name): Change type to const char * from char *.
10944 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10945 (find_pc_partial_function): Update.
10946 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10947 type of "name" parameter to const char * from char *.
10948 All uses updated.
10949 * arch-utils.c (generic_in_solib_return_trampoline): Change
10950 type of "name" parameter to const char * from char *.
10951 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10952 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10953 type of "name" parameter to const char * from char *.
10954 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10955 * gdbarch.c: Regenerate.
10956 * gdbarch.h: Regenerate.
10957 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10958 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10959 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10960 type of "name" parameter to const char * from char *.
10961 * skip.c (skip_function_pc): Ditto.
10962 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10963 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10964 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10965 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10966 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10967 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10968 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10969 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10970 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10971
e886a173
PA
109722012-02-02 Pedro Alves <palves@redhat.com>
10973
10974 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10975 the current inferior has no execution. Make sure the current
10976 remote process matches gdb's current inferior.
10977
c709a7c2
TT
109782012-02-02 Tom Tromey <tromey@redhat.com>
10979
10980 PR gdb/13405:
10981 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10982 read-only memory.
10983
f149aabd
TT
109842012-02-02 Tom Tromey <tromey@redhat.com>
10985
10986 PR gdb/9307:
10987 * symtab.c (lookup_language_this): Set block_found.
10988
03bef283
TT
109892012-02-01 Tom Tromey <tromey@redhat.com>
10990
10991 PR gdb/13431:
10992 * jit.c (struct jit_inferior_data): Rewrite.
10993 (struct jit_objfile_data): New.
10994 (get_jit_objfile_data): New function.
10995 (add_objfile_entry): Update.
10996 (jit_read_descriptor): Return int. Replace descriptor_addr
10997 argument with inf_data. Update. Don't call error.
10998 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10999 descriptor here.
11000 (jit_inferior_init): Don't look up descriptor. Don't call error.
11001 (jit_reset_inferior_data_and_breakpoints)
11002 (jit_inferior_created_observer): Remove.
11003 (jit_inferior_exit_hook): Update.
11004 (jit_executable_changed_observer): Remove.
11005 (jit_event_handler): Update.
11006 (free_objfile_data): Reset inferior data if needed.
11007 (_initialize_jit): Update.
11008
f0bbc364
TT
110092012-02-01 Tom Tromey <tromey@redhat.com>
11010
11011 * jit.c (bfd_open_from_target_memory): Move higher in file.
11012
47c1316c
TG
110132012-02-01 Tristan Gingold <gingold@adacore.com>
11014
11015 * libunwind-frame.c (libunwind_load): Display message if dlopen
11016 failed.
11017
8e704927
GB
110182012-02-01 Gary Benson <gbenson@redhat.com>
11019
09c7a31f 11020 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11021 (iterate_over_symbols): Use the above.
11022 * symtab.c (iterate_over_symbols): Likewise.
11023 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11024 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11025 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11026 (iterate_name_matcher): Document return values.
11027 (collect_one_symbol): Likewise.
11028 (collect_function_symbols): Likewise.
11029 (collect_symbols): Likewise.
11030
d9680e73
TT
110312012-02-01 Tom Tromey <tromey@redhat.com>
11032
11033 * ada-lang.c (resolve_subexp): Update.
11034 (ada_lookup_symbol_list): Add 'full_search' argument.
11035 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11036 ada_lookup_symbol_list.
11037 (ada_lookup_encoded_symbol): Update.
11038 (get_var_value): Update.
11039 * ada-exp.y (block_lookup): Update.
11040 (write_var_or_type): Update.
11041 (write_name_assoc): Update.
11042 * ada-lang.h (ada_lookup_symbol_list): Update.
11043
72e1143f
TT
110442012-01-31 Tom Tromey <tromey@redhat.com>
11045
11046 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11047 comment.
11048
ab2d2ad3
DE
110492012-01-31 Doug Evans <dje@google.com>
11050
11051 * symtab.h: Remove outdated comment.
e9111bf7 11052 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11053
bc884eba
JB
110542012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11055
11056 Fix build error in Darwin port.
11057 * i386-darwin-nat.c: Include i386-nat.h.
11058
8fc3fc34
TT
110592012-01-30 Tom Tromey <tromey@redhat.com>
11060
11061 PR breakpoints/13568:
11062 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11063 argument. Check for recursive includes.
11064 (dwarf_decode_macros): Create an include hash.
11065
5d853008
ME
110662012-01-30 Michael Eager <eager@eagercon.com>
11067
11068 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11069 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11070 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11071 (powerpc_linux_in_plt_stub): New function.
11072 (powerpc_linux_in_dynsym_resolve_code): New function.
11073 (ppc_skip_trampoline_code): New function.
11074 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11075 Use glibc_skip_solib_resolver.
11076
40478521
JK
110772012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 Code cleanup: Make 1440 bytes of data segment read-only.
11080 * arch-utils.c (endian_enum): Make it const char *const [].
11081 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11082 Likewise.
11083 * breakpoint.c (always_inserted_enums): Likewise.
11084 * cli/cli-cmds.c (script_ext_enums): Likewise.
11085 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11086 enumlist parameter const char *const *.
11087 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11088 const char *const *.
11089 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11090 parameter const char *const *.
11091 * cris-tdep.c (cris_modes): Make it const char *const [].
11092 * filesystem.c (target_file_system_kinds): Likewise.
11093 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11094 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11095 (can_use_displaced_stepping_enum, scheduler_enums)
11096 (exec_direction_names): Likewise.
11097 * language.c (_initialize_language): Make the type_or_range_names and
11098 case_sensitive_names variables const char *const [].
11099 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11100 * python/python.c (python_excp_enums): Likewise.
11101 * remote.c (interrupt_sequence_modes): Likewise.
11102 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11103 * serial.c (logbase_enums): Likewise.
11104 * sh-tdep.c (sh_cc_enum): Likewise.
11105 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11106 Likewise.
11107 * symtab.c (multiple_symbols_modes): Likewise.
11108 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11109 Likewise.
11110 * utils.c (internal_problem_modes): Likewise.
11111
b3b8b934
JK
111122012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11115 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11116 result.
11117
8c85a4e2
DE
111182012-01-27 Doug Evans <dje@google.com>
11119
11120 * configure.ac (with_python): Fix absolute path handling for win32.
11121 * configure: Regenerate.
11122
78d8b4d7
DE
111232012-01-26 Doug Evans <dje@google.com>
11124
eca864fe
DE
11125 * symtab.c: Whitespace cleanup, no code changes.
11126
7e082072
DE
11127 * symtab.c (lookup_symbol_in_language): Improve comment.
11128 (lookup_symbol_aux): Fix comment.
11129
7dc25483
DE
11130 * psymtab.c (add_psymbol_to_list): Result is now "void".
11131 * psympriv.h (add_psymbol_to_list): Update.
11132
78d8b4d7
DE
11133 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11134
4c63965b
JK
111352012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 Do not open script filenames twice.
11138 * cli/cli-cmds.c (source_script_from_stream): Pass to
11139 source_python_script also STREAM.
11140 * python/py-auto-load.c (source_section_scripts): Pass to
11141 source_python_script_for_objfile also STREAM.
11142 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11143 also INPUT.
11144 * python/python-internal.h (source_python_script_for_objfile): New
11145 parameter file, rename parameter file to filename.
11146 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11147 instead if !_WIN32. Update the function comment.
11148 (source_python_script, source_python_script_for_objfile)
11149 (source_python_script): New parameter file, rename parameter file to
11150 filename. Pass FILENAME to python_run_simple_file.
11151 * python/python.h (source_python_script): New parameter file, rename
11152 parameter file to filename.
11153
88f38a04
PA
111542012-01-26 Pedro Alves <palves@redhat.com>
11155
11156 * corelow.c (core_has_fake_pid): Delete.
11157 (core_close): Delete references to `core_has_fake_pid'.
11158 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11159 (core_open): Delete references to `core_has_fake_pid'.
11160 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11161 the removed global.
11162
e078317b
JB
111632012-01-26 Joel Brobecker <brobecker@adacore.com>
11164
11165 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11166 Remove language parameter from name_matcher. Adjust the comment.
11167 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11168 Remove language parameter.
11169 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11170 * linespec.c (iterate_name_matcher): Likewise.
11171 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11172 name_matcher. Adjust call accordingly.
11173 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11174 (maintenance_check_symtabs): Adjust type of parameter "fun".
11175 * psymtab.h (maintenance_check_symtabs): Likewise.
11176
74ccd7f5
JB
111772012-01-26 Joel Brobecker <brobecker@adacore.com>
11178
11179 * language.h (symbol_name_match_p_ftype): New typedef.
11180 (struct language_defn): Replace field la_symbol_name_compare
11181 by la_get_symbol_name_match_p.
11182 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11183 (ada_language_defn): Use it.
11184 * linespec.c (struct symbol_matcher_data): New type.
11185 (iterate_name_matcher): Rewrite.
11186 (iterate_over_all_matching_symtabs): Pass a pointer to
11187 a symbol_matcher_data struct to expand_symtabs_matching
11188 instead of just the lookup name.
11189 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11190 opencl-lang.c, p-lang.c, language.c: Delete field
11191 la_symbol_name_compare, and replace by NULL for new field
11192 la_get_symbol_name_match_p.
11193 * symfile.h (struct quick_symbol_functions): Update comment.
11194
5d268276
TT
111952012-01-25 Tom Tromey <tromey@redhat.com>
11196
11197 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11198 dereferencing.
11199
edcc5120
TT
112002012-01-24 Tom Tromey <tromey@redhat.com>
11201
11202 PR symtab/12406:
11203 * solib.c (update_solib_list): Update the program space's
11204 added_solibs and deleted_solibs fields.
11205 * progspace.h (struct program_space) <added_solibs,
11206 deleted_solibs>: New fields.
11207 (clear_program_space_solib_cache): Declare.
11208 * progspace.c (release_program_space): Call
11209 clear_program_space_solib_cache.
11210 (clear_program_space_solib_cache): New function.
11211 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11212 bpstat_stop_status. Use handle_solib_event.
11213 * breakpoint.c: Include gdb_regex.h.
11214 (print_solib_event): New function.
11215 (bpstat_print): Use print_solib_event.
11216 (bpstat_stop_status): Add special case for bp_shlib_event.
11217 (handle_solib_event): New function.
11218 (bpstat_what): Use handle_solib_event.
11219 (struct solib_catchpoint): New.
11220 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11221 (breakpoint_hit_catch_solib, check_status_catch_solib)
11222 (print_it_catch_solib, print_one_catch_solib)
11223 (print_mention_catch_solib, print_recreate_catch_solib): New
11224 functions.
11225 (catch_solib_breakpoint_ops): New global.
11226 (catch_load_or_unload, catch_load_command_1)
11227 (catch_unload_command_1): New functions.
11228 (internal_bkpt_check_status): Add special case for
11229 bp_shlib_event.
11230 (internal_bkpt_print_it): Use print_solib_event.
11231 (initialize_breakpoint_ops): Initialize
11232 catch_solib_breakpoint_ops.
11233 (_initialize_breakpoint): Register "catch load" and "catch
11234 unload".
11235 * breakpoint.h (handle_solib_event): Declare.
11236 * NEWS: Add entry for "catch load" and "catch unload".
11237
fa864999
TT
112382012-01-24 Tom Tromey <tromey@redhat.com>
11239
11240 * ada-lang.c: Include gdb_vecs.h.
11241 * charset.c: Include gdb_vecs.h.
11242 * tracepoint.h: Include gdb_vecs.h.
11243 * gdb_vecs.h: New file.
11244
f90263c1
TT
112452012-01-24 Pedro Alves <pedro@codesourcery.com>
11246
11247 * breakpoint.c (breakpoint_hit_catch_fork)
11248 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11249 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11250 * infrun.c (inferior_has_forked, inferior_has_vforked)
11251 (inferior_has_execd, inferior_has_called_syscall): Delete.
11252 (handle_syscall_event): Get syscall_number from the execution
11253 control state's wait status.
11254 (wait_for_inferior): Don't clear syscall_number.
11255
09ac7c10
TT
112562012-01-24 Pedro Alves <palves@redhat.com>
11257
11258 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11259 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11260 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11261 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11262 `ws' parameter.
11263 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11264 false for events other than TARGET_SIGNAL_TRAP.
11265 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11266 Add `ws' parameter.
11267 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11268 events other than TARGET_SIGNAL_TRAP.
11269 (tracepoint_breakpoint_hit): Add `ws' parameter.
11270 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11271 parameter.
11272 (bpstat_stop_status): Same.
11273 (pc_at_non_inline_function): Same.
11274 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11275 to pass the current event's waitstatus to bpstat_stop_status
11276 and pc_at_non_inline_function.
11277
86eb7e95
JK
112782012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11279
11280 Code cleanup.
11281 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11282 Update the function comment for it.
11283 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11284 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11285 for STREAM.
11286
a9b3a50f
PA
112872012-01-24 Pedro Alves <palves@redhat.com>
11288
11289 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11290 outside `bs->stop' block.
11291 (bpstat_what): Rework bp_shlib_event handling.
11292 (internal_bkpt_check_status): If the breakpoint is a
11293 bp_shlib_event, then set bs->stop and bs->print if
11294 stop_on_solib_events is set.
11295
53fe1783
GB
112962012-01-24 Gary Benson <gbenson@redhat.com>
11297
11298 Delete #if 0'd out code.
11299 * stack.c (print_frame_label_vars): Remove.
11300 (catch_info): Likewise.
11301 (_initialize_stack): Remove "info catch" command.
11302 * NEWS: Mention the above.
11303
49c62f2e
PA
113042012-01-24 Pedro Alves <palves@redhat.com>
11305
11306 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11307 it.
11308 (remote_notice_new_inferior): If the remote end doesn't support
11309 the multiprocess extensions, then the PID is fake.
11310 (add_current_inferior_and_thread): New.
11311 (remote_start_remote): Use it.
11312 (extended_remote_attach_1): Adjust.
11313 (extended_remote_create_inferior_1): Use
11314 add_current_inferior_and_thread.
11315
d0d8b0c6
JK
113162012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11317
11318 Fix watchpoints to be specific for each inferior.
11319 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11320 current_program_space.
11321 * i386-nat.c (i386_inferior_data_cleanup): New.
11322 (i386_inferior_data_get): Replace variable inf_data_local by an
11323 inferior_data call.
11324 (i386_use_watchpoints): Initialize i386_inferior_data.
11325 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11326 specific iterate_over_lwps.
11327
4403d8e9
JK
113282012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11329
11330 Fix watchpoints across inferior fork.
11331 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11332 comment for linux_nat_iterate_watchpoint_lwps.
11333 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11334 linux_nat_iterate_watchpoint_lwps.
11335 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11336 * i386-linux-nat.c (update_debug_registers_callback): Update the
11337 comment for linux_nat_iterate_watchpoint_lwps.
11338 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11339 linux_nat_iterate_watchpoint_lwps.
11340 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11341 * i386-nat.c: Include inferior.h.
11342 (dr_mirror): Remove.
11343 (i386_inferior_data, struct i386_inferior_data)
11344 (i386_inferior_data_get): New.
11345 (i386_debug_reg_state): Use i386_inferior_data_get.
11346 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11347 (i386_insert_watchpoint, i386_remove_watchpoint)
11348 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11349 (i386_remove_hw_breakpoint): New variable state, use
11350 i386_debug_reg_state instead of DR_MIRROR.
11351 * linux-nat.c (delete_lwp): New declaration.
11352 (num_lwps): Move here from downwards.
11353 (delete_lwp_cleanup): New.
11354 (linux_child_follow_fork): Create new child_lp, call
11355 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11356 PTRACE_DETACH.
11357 (num_lwps): Move upwards.
11358 (linux_nat_iterate_watchpoint_lwps): New.
11359 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11360 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11361
2992c9a7 113622012-01-24 Joel Brobecker <brobecker@adacore.com>
11363
11364 GDB 7.4 released.
11365
e360902b
PA
113662012-01-23 Pedro Alves <palves@redhat.com>
11367
11368 * top.c (caution): Rename to ...
11369 (confirm): ... this.
11370 (show_caution): Rename to ...
11371 (show_confirm): ... this.
11372 (quit_cover): Adjust.
11373 (init_main): Adjust.
11374 * top.h (caution): Rename to ...
11375 (confirm): ... this.
11376 * utils.c (internal_vproblem, defaulted_query): Adjust.
11377
050a2e1d
PA
113782012-01-23 Pedro Alves <palves@redhat.com>
11379
11380 * top.c (caution): Update comment.
11381 (execute_command): Don't consider the current value of `caution'.
11382
77a35dd8
JK
113832012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11384
11385 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11386
a71b5a38
UW
113872012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11388
11389 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11390 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11391 * target.c (target_fileio_pwrite): Remove buffer address from
11392 debug output.
11393 (target_fileio_pread): Likewise.
11394
d99bd577
UW
113952012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11396
11397 * NEWS: Document remote "info proc" and "generate-core-file".
11398
35c2fab7
UW
113992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11400
11401 * gdbarch.sh (find_memory_regions): New callback.
11402 * gdbarch.c, gdbarch.h: Regenerate.
11403
11404 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11405 callback before falling back to target method.
11406
11407 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11408 (linux_target_install_ops): No longer install it.
11409
11410 * linux-tdep.c (linux_find_memory_regions): New function.
11411 (linux_init_abi): Install it.
11412
6432734d
UW
114132012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11414
11415 * gdbarch.sh (make_corefile_notes): New architecture callback.
11416 * gdbarch.c: Regenerate.
11417 * gdbarch.h: Likewise.
11418
11419 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11420 before target_make_corefile_notes. If NULL is returned, the
11421 target does not support core file generation.
11422
11423 * linux-nat.c: Include "linux-tdep.h".
11424 (find_signalled_thread, find_stop_signal): Remove.
11425 (linux_nat_do_thread_registers): Likewise.
11426 (struct linux_nat_corefile_thread_data): Likewise.
11427 (linux_nat_corefile_thread_callback): Likewise.
11428 (iterate_over_spus): Likewise.
11429 (struct linux_spu_corefile_data): Likewise.
11430 (linux_spu_corefile_callback): Likewise.
11431 (linux_spu_make_corefile_notes): Likewise.
11432 (linux_nat_collect_thread_registers): New function.
11433 (linux_nat_make_corefile_notes): Replace contents by call to
11434 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11435 as native-only callback.
11436
11437 * linux-tdep.h: Include "bfd.h".
11438 (struct regcache): Add forward declaration.
11439 (linux_collect_thread_registers_ftype): New typedef.
11440 (linux_make_corefile_notes): Add prototype.
11441 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11442 "regset.h", and "elf-bfd.h".
11443 (find_signalled_thread, find_stop_signal): New functions.
11444 (linux_spu_make_corefile_notes): Likewise.
11445 (linux_collect_thread_registers): Likewise.
11446 (struct linux_corefile_thread_data): New data structure.
11447 (linux_corefile_thread_callback): New funcion.
11448 (linux_make_corefile_notes): Likewise.
11449 (linux_make_corefile_notes_1): Likewise.
11450 (linux_init_abi): Install it.
11451
3030c96e
UW
114522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11453
11454 * gdbarch.sh (info_proc): New callback.
11455 * gdbarch.c, gdbarch.h: Regenerate.
11456
11457 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11458 before falling back to the target info_proc callback.
11459
11460 * linux-nat.c: Do not include "cli/cli-utils.h".
11461 (linux_nat_info_proc): Remove.
11462 (linux_target_install_ops): No longer install it.
11463
11464 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11465 (read_mapping): New function.
11466 (linux_info_proc): Likewise.
11467 (linux_init_abi): Install it.
11468
145b16a9
UW
114692012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11470
11471 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11472 * infcmd.c: (info_proc_cmd_1): New function.
11473 (info_proc_cmd): New function, moved here from equivalent routine
11474 orignally in linux-nat.c.
11475 (info_proc_cmd_mappings): Likewise.
11476 (info_proc_cmd_stat): Likewise.
11477 (info_proc_cmd_status): Likewise.
11478 (info_proc_cmd_cwd): Likewise.
11479 (info_proc_cmd_cmdline): Likewise.
11480 (info_proc_cmd_exe): Likewise.
11481 (info_proc_cmd_all): Likewise.
11482 (_initialize_infcmd): Install "info proc" command and subcommands.
11483
11484 * target.h (struct target_ops): Add to_info_proc.
11485 (target_info_proc): Add prototype.
11486 * target.c (target_info_proc): New function.
11487
11488 * procfs.c (procfs_info_proc): Add prototype.
11489 (info_proc_cmd): Rename into ...
11490 (procfs_info_proc): ... this. Update argument types as appropriate
11491 for a to_info_proc implementation. Handle "what" argument.
11492 (procfs_target): Install procfs_info_proc.
11493 (_initialize_procfs): No longer install "info proc" command.
11494
11495 * linux-nat.c: (enum info_proc_what): Remove.
11496 (linux_nat_info_proc_cmd_1): Rename into ...
11497 (linux_nat_info_proc): ... this. Update argument types as appropriate
11498 for a to_info_proc implementation.
11499 (linux_nat_info_proc_cmd): Remove.
11500 (linux_nat_info_proc_cmd_mappings): Likewise.
11501 (linux_nat_info_proc_cmd_stat): Likewise.
11502 (linux_nat_info_proc_cmd_status): Likewise.
11503 (linux_nat_info_proc_cmd_cwd): Likewise.
11504 (linux_nat_info_proc_cmd_cmdline): Likewise.
11505 (linux_nat_info_proc_cmd_exe): Likewise.
11506 (linux_nat_info_proc_cmd_all): Likewise.
11507 (linux_target_install_ops): Install linux_nat_info_proc.
11508 (_initialize_linux_nat): No longer install "info proc" command
11509 and subcommands.
11510
b9e7b9c3
UW
115112012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11512
11513 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11514 * config.in, configure: Regenerate.
11515
11516 * target.h (struct target_ops): Add to_fileio_readlink.
11517 (target_fileio_readlink): Add prototype.
11518 * target.c (target_fileio_readlink): New function.
11519
11520 * inf-child.c: Conditionally include <sys/param.h>.
11521 (inf_child_fileio_readlink): New function.
11522 (inf_child_target): Install it.
11523
11524 * remote.c (PACKET_vFile_readlink): New enum value.
11525 (remote_hostio_readlink): New function.
11526 (init_remote_ops): Install it.
11527 (_initialize_remote): Handle vFile:readlink packet type.
11528
7313baad
UW
115292012-01-20 Pedro Alves <palves@redhat.com>
11530 Ulrich Weigand <ulrich.weigand@linaro.org>
11531
11532 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11533 * config.in, configure: Regenerate.
11534
11535 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11536 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11537 (target_fileio_open): Add prototype.
11538 (target_fileio_pwrite): Likewise.
11539 (target_fileio_pread): Likewise.
11540 (target_fileio_close): Likewise.
11541 (target_fileio_unlink): Likewise.
11542 (target_fileio_read_alloc): Likewise.
11543 (target_fileio_read_stralloc): Likewise.
11544
11545 * target.c: Include "gdb/fileio.h".
11546 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11547 (default_fileio_target): New function.
11548 (target_fileio_open): Likewise.
11549 (target_fileio_pwrite): Likewise.
11550 (target_fileio_pread): Likewise.
11551 (target_fileio_close): Likewise.
11552 (target_fileio_unlink): Likewise.
11553 (target_fileio_close_cleanup): Likewise.
11554 (target_fileio_read_alloc_1): Likewise.
11555 (target_fileio_read_alloc): Likewise.
11556 (target_fileio_read_stralloc): Likewise.
11557
11558 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11559 <fcntl.h>, and <unistd.h>.
11560 (inf_child_fileio_open_flags_to_host): New function.
11561 (inf_child_errno_to_fileio_error): Likewise.
11562 (inf_child_fileio_open): Likewise.
11563 (inf_child_fileio_pwrite): Likewise.
11564 (inf_child_fileio_pread): Likewise.
11565 (inf_child_fileio_close): Likewise.
11566 (inf_child_fileio_unlink): Likewise.
11567 (inf_child_target): Install to_fileio routines.
11568
11569 * remote.c (init_remote_ops): Install to_fileio routines.
11570
901f9912
UW
115712012-01-20 Pedro Alves <palves@redhat.com>
11572 Ulrich Weigand <ulrich.weigand@linaro.org>
11573
11574 * remote.c (remote_multi_process_p): Only check for multi-process
11575 protocol feature, do not check for extended protocol.
11576 (remote_supports_multi_process): Check for extended protocol here.
11577 (set_general_process): Likewise.
11578 (extended_remote_kill): Likewise.
11579 (remote_pid_to_str): Likewise.
11580 (remote_query_supported): Always query multiprocess mode.
11581
e714e1bf
UW
115822012-01-20 Pedro Alves <palves@redhat.com>
11583 Ulrich Weigand <ulrich.weigand@linaro.org>
11584
11585 * inferior.h (struct inferior): Add fake_pid_p.
11586 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11587 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11588 magic_null_ptid since the remote side doesn't provide a real PID.
11589
50897289
TT
115902012-01-19 Tom Tromey <tromey@redhat.com>
11591
11592 * NEWS: Combine the two Python sections.
11593
1afc2033
JK
115942012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11595
11596 * target.h (target_close): Update comment on the target's unpush state.
11597
305436e0
PA
115982012-01-19 Pedro Alves <palves@redhat.com>
11599
11600 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11601 linux_nat_async directly instead of going through the target
11602 vector.
11603 * target.c (unpush_target): Close target after unpushing it, not
11604 before.
11605
49323895
GB
116062012-01-19 Gary Benson <gbenson@redhat.com>
11607
11608 * mdebugread.c (sort_blocks): Replace integer constants with ones
11609 derived from FIRST_LOCAL_BLOCK.
11610
1db33378
PP
116112012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11612 Jan Kratochvil <jan.kratochvil@redhat.com>
11613
11614 PR gdb/9538
11615 * symfile.c (find_separate_debug_file): New function.
11616 (terminate_after_last_dir_separator): Likewise.
11617 (find_separate_debug_file_by_debuglink): Also try realpath.
11618 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11619 * configure: Regenerate.
11620 * config.in: Regenerate.
11621
f83d8a90
DE
116222012-01-18 Doug Evans <dje@google.com>
11623
11624 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11625 (main.o): Remove rule.
11626 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11627 (--with-sysroot): Rewrite.
11628 * configure: Regenerate.
11629 * config.in: Regenerate.
11630
2dbca4d6
SDJ
116312012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11632
11633 * parse.c (initialize_expout): New function.
11634 (reallocate_expout): Likewise.
11635 (parse_exp_in_context): Use `initialize_expout' and
11636 `reallocate_expout' when appropriate.
11637
0695b514
PA
116382012-01-18 Pedro Alves <palves@redhat.com>
11639
11640 * record.c (struct record_breakpoint, record_breakpoint_p)
11641 (record_breakpoints): New.
11642 (record_insert_breakpoint, record_remove_breakpoint): Manage
11643 record breakpoints list. Only remove breakpoints from the
11644 inferior if they had been inserted there in the first place.
11645
136e1c30
DE
116462012-01-17 Doug Evans <dje@google.com>
11647
11648 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11649 if we know we don't have a file name to look for.
11650
c0bf857d
PA
116512012-01-17 Pedro Alves <palves@redhat.com>
11652
11653 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11654 the frame's stop reason is UNWIND_UNAVAILABLE.
11655
b486de60
JK
116562012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11657
11658 Fix compilation error.
11659 * m2-exp.y (yyerror): Use ANSI C prototype.
11660
d04550a6
SDJ
116612012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11662
11663 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11664 (growbuf_by_size): Likewise.
11665 (yyerror): Likewise.
11666 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11667 (modblock): Remove variable (was #if 0'ed).
11668 (parse_number): Convert prototype from K&R to ANSI C.
11669 (yyerror): Likewise.
11670 * objc-exp.y (parse_number): Likewise.
11671 (yyerror): Likewise.
11672 (yylex): Remove #if 0'ed code.
11673 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11674 (yyerror): Likewise.
11675
4aac40c8
TT
116762012-01-16 Tom Tromey <tromey@redhat.com>
11677
11678 * NEWS: Add item.
11679 * symtab.h (compare_filenames_for_search): Declare.
11680 * symtab.c (compare_filenames_for_search): New function.
11681 (iterate_over_some_symtabs): Use it.
11682 * symfile.h (struct quick_symbol_functions)
11683 <map_symtabs_matching_filename>: Change spec.
11684 * psymtab.c (partial_map_symtabs_matching_filename): Use
11685 compare_filenames_for_search. Update for new spec.
11686 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11687 compare_filenames_for_search. Update for new spec.
11688 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11689
cafec441
TT
116902012-01-16 Tom Tromey <tromey@redhat.com>
11691
11692 PR python/13281:
11693 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11694 (struct main_type) <flag_flag_enum>: New field.
11695 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11696 * NEWS: Add entries.
11697 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11698 enums.
11699 * python/lib/gdb/printing.py (_EnumInstance): New class.
11700 (FlagEnumerationPrinter): Likewise.
11701
983af33b
SDJ
117022012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11703
11704 * breakpoint.c (create_sals_from_address_default): New function.
11705 (create_breakpoints_sal_default): Likewise.
11706 (decode_linespec_default): Likewise.
11707 (is_marker_spec): Removed.
11708 (strace_marker_p): New function.
11709 (init_breakpoint_sal): Using `strace_marker_p' instead of
11710 `is_marker_spec'.
11711 (create_breakpoint): Call method `create_sals_from_address' from
11712 breakpoint_ops, replacing code that created SALs conditionally
11713 on the type of the breakpoint. Call method `create_breakpoints_sal',
11714 replacing code that created breakpoints conditionally on the type
11715 wanted.
11716 (base_breakpoint_create_sals_from_address): New function.
11717 (base_breakpoint_create_breakpoints_sal): Likewise.
11718 (base_breakpoint_decode_linespec): Likewise.
11719 (base_breakpoint_ops): Add methods
11720 `base_breakpoint_create_sals_from_address',
11721 `base_breakpoint_create_breakpoints_sal' and
11722 `base_breakpoint_decode_linespec'.
11723 (bkpt_create_sals_from_address): New function.
11724 (bkpt_create_breakpoints_sal): Likewise.
11725 (bkpt_decode_linespec): Likewise.
11726 (tracepoint_create_sals_from_address): Likewise.
11727 (tracepoint_create_breakpoints_sal): Likewise.
11728 (tracepoint_decode_linespec): Likewise.
11729 (strace_marker_create_sals_from_address): Likewise.
11730 (strace_marker_create_breakpoints_sal): Likewise.
11731 (strace_marker_decode_linespec): Likewise.
11732 (strace_marker_breakpoint_ops): New variable.
11733 (addr_string_to_sals): Remove `marker_spec'. Call method
11734 `decode_linespec' from breakpoint_ops, replacing code that decoded
11735 an address string into a SAL. Use `strace_marker_p' instead of
11736 `marker_spec'.
11737 (strace_command): Decide whether we are dealing with a static
11738 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11739 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11740 * breakpoint.h (linespec_result, linespec_sals): New forward
11741 declarations.
11742 (breakpoint_ops) <create_sals_from_address>,
11743 <create_breakpoints_sal>, <decode_linespec>: New methods.
11744
4795f398
DE
117452012-01-14 Doug Evans <dje@google.com>
11746
11747 * NEWS: Update text for "maint set python print-stack".
11748 It is deprecated in gdb 7.4 and deleted in 7.5.
11749
ee5106fe
EZ
117502012-01-13 Eli Zaretskii <eliz@gnu.org>
11751
11752 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11753 including curses.h.
11754
b161e06f
JK
117552012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11756
11757 * configure: Regenerate.
11758 * config.in: Regenerate.
11759
85254831
KS
117602012-01-12 Keith Seitz <keiths@redhat.com>
11761
11762 PR mi/10586
11763 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11764 (ANONYMOUS_UNION_NAME): Define.
11765 (is_path_expr_parent): New function.
11766 (get_path_expr_parent): New function.
11767 (is_anonymous_child): New function.
11768 (create_child_with_value): If the child is anonymous and without
11769 a name, assign an object name to it.
11770 (c_describe_child): Use get_path_expr_parent to determine
11771 the parent expression.
11772 If there field represents an anonymous struct or union and
11773 has no name, set an appropriate display name and expression.
11774 (cplus_describe_child): Likewise.
11775
620fa63a
PA
117762012-01-12 Pedro Alves <palves@redhat.com>
11777
11778 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11779 available when %ebp is found to be zero (outermost).
11780
2efa2c79
AT
117812012-01-11 Andreas Tobler <andreast@fgznet.ch>
11782
11783 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11784 an internal gdb_static_assert.
11785 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11786
88e7d25d
TT
117872012-01-11 Tom Tromey <tromey@redhat.com>
11788
11789 PR gdb/9598:
11790 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11791 catch" and "catch throw".
11792
72384ba3
PH
117932012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11794
11795 * blockframe.c (block_innermost_frame): Start search from selected
11796 frame, if present, or otherwise the current frame.
11797
11798 * c-exp.y (variable): Update innermost_block for
11799 'block COLONCOLON NAME' clause.
11800 * m2-exp.y (variable): Ditto.
11801 * objc-exp.y (variable): Ditto.
11802
065a711f
TT
118032012-01-10 Tom Tromey <tromey@redhat.com>
11804
11805 PR python/13199:
11806 * python/python.c (finish_python_initialization): Set sys.argv.
11807
f3f5162e
DE
118082012-01-10 Doug Evans <dje@google.com>
11809
11810 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11811 "want_line_info". All callers updated.
11812 (dwarf_decode_lines_1): New function.
11813 (handle_DW_AT_stmt_list): Add function comment.
11814 New arg "want_line_info". All callers updated.
11815 (read_file_scope,read_type_unit_scope): Move comment from
11816 handle_DW_AT_stmt_list to here.
11817
9934703b
JK
118182012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11819
11820 Fix regression after libiberty/ update for GCC PR 6057 and others.
11821 * c-exp.y (operator) <OPERATOR DELETE>
11822 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11823 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11824 (make_builtin_type, make_name): New variable i, add gdb_assert.
11825 (operator) <OPERATOR NEW>: Update ARGS to 3.
11826 (operator) <OPERATOR DELETE>: Add trailing space.
11827 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11828 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11829 * cp-support.c (cp_canonicalize_string): Check NULL from
11830 cp_comp_to_string, call warning and return.
11831
06b9f45f
JK
118322012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11833
11834 Fix duplicate .o files after omitting libbfd.a.
11835 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11836 (SFILES): Add corelow.c.
11837 (COMMON_OBS): Add corelow.o.
11838 (ALLDEPFILES): Remove corelow.c.
11839 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11840 * config/alpha/alpha-osf3.mh: Likewise.
11841 * config/alpha/fbsd.mh: Likewise.
11842 * config/arm/nbsdaout.mh: Likewise.
11843 * config/arm/nbsdelf.mh: Likewise.
11844 * config/i386/i386gnu.mh: Likewise.
11845 * config/ia64/hpux.mh: Likewise.
11846 * config/ia64/linux.mh: Likewise.
11847 * config/m32r/linux.mh: Likewise.
11848 * config/m68k/linux.mh: Likewise.
11849 * config/mips/irix5.mh: Likewise.
11850 * config/mips/irix6.mh: Likewise.
11851 * config/pa/hpux.mh: Likewise.
11852 * config/pa/linux.mh: Likewise.
11853 * config/powerpc/aix.mh: Likewise.
11854 * config/sparc/linux.mh: Likewise.
11855 * config/sparc/linux64.mh: Likewise.
11856 * config/sparc/sol2.mh: Likewise.
11857 * config/vax/vax.mh: Likewise.
11858 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11859 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11860 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11861 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11862 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11863 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11864 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11865 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11866 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11867 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11868 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11869 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11870 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11871 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11872 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11873 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11874 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11875 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11876 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11877 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11878 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11879 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11880 corelow.o from gdb_target_obs.
11881 * corefile.c (core_target): Update the comment on NULL value.
11882 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11883 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11884 MATCHES. Drop YUMMY set on NULL.
11885 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11886 reclaim CORE_DATA if it is already NULL.
11887
34365054
DE
118882012-01-09 Doug Evans <dje@google.com>
11889
11890 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11891 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11892
696166a3
KS
118932012-01-09 Keith Seitz <keiths@redhat.com>
11894
11895 * breakpoint.c (wrapper.h): Don't include.
11896
8e7b59a5
KS
118972012-01-09 Keith Seitz <keiths@redhat.com>
11898
11899 * Makefile.in (SFILES): Remove wrapper.c.
11900 (HFILES_NO_SRCDIR): Remove wrapper.h.
11901 (COMMON_OBS): Remove wrapper.o.
11902 * cli/cli-interp.c: Don't inlude wrapper.h.
11903 * corelow.c: Likewise.
11904 (core_open): Replace gdb_target_find_new_threads with
11905 TRY_CATCH around target_find_new_threads.
11906 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11907 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11908 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11909 evaluate_expression.
11910 (varobj_set_value): Likewise for evaluate_expression and
11911 value_assign.
11912 (install_new_variable): Likewise for value_fetch_lazy.
11913 (adjust_value_for_child_access): Likewise for value_ind.
11914 (c_describe_child): Likewise for value_subscript and
11915 value_ind.
11916 (c_value_of_root): Likewise for evaluate_expression.
11917 * wrapper.c: Remove.
11918 * wrapper.h: Remove.
11919
1a4eeb98
DE
119202012-01-09 Doug Evans <dje@google.com>
11921
9ff913ba
DE
11922 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11923 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11924 "abfd" args with "section". All callers updated.
11925 Error checking code moved ...
11926 (error_check_comp_unit_head): ... here. New function.
11927 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11928 Delete arg "abfd". New arg "type_offset". All callers updated.
11929 (create_debug_types_hash_table): Simplify by using
11930 read_and_check_type_unit_head.
11931
1a4eeb98
DE
11932 * parser-defs.h (namecopy): Delete.
11933 * parse.c (namecopy, namecopy_size): Move into copy_name.
11934
2e6af8c0
JK
119352012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11936
11937 Partially fix duplicate .o files after omitting libbfd.a.
11938 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11939 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11940 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11941 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11942 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11943 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11944 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11945
9f2f828a
PA
119462012-01-09 Pedro Alves <palves@redhat.com>
11947
11948 * MAINTAINERS: Update my email address.
11949
4d72c0bc
DE
119502012-01-08 Doug Evans <dje@google.com>
11951
d467dd73
DE
11952 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11953 n_type_units. Rename type_comp_units to all_type_units.
11954 All uses updated.
11955 (add_signatured_type_cu_to_table): Renamed from
11956 add_signatured_type_cu_to_list. All callers updated.
11957
4d72c0bc
DE
11958 * gdbtypes.h (struct cplus_struct_type): Delete member
11959 nfn_fields_total. All uses removed.
11960
21b2bd31
DE
119612012-01-06 Doug Evans <dje@google.com>
11962
11963 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11964 to top of file.
11965 (dwarf2_find_comp_unit): Delete.
11966 (process_psymtab_comp_unit): Make result "void".
11967 Delete args buffer, info_ptr, buffer_size, and replace with
11968 "section". All callers updated.
11969 (dwarf2_build_psymtabs_hard): Simplify.
11970
bfd189b1
SDJ
119712012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11972 Thiago Jung Bauermann <bauerman@br.ibm.com>
11973
11974 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11975 before `struct gdb_exception'.
11976 * breakpoint.c (update_global_location_list_nothrow)
11977 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11978 * cp-abi.c (value_rtti_type): Likewise.
11979 * cp-support.c (cp_validate_operator): Likewise.
11980 * infrun.c (insert_exception_resume_breakpoint)
11981 (check_exception_resume, keep_going): Likewise.
11982 * mi-interp.c (mi_breakpoint_created)
11983 (mi_breakpoint_modified): Likewise.
11984 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11985 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11986 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11987
6b07635f
DE
119882012-01-05 Doug Evans <dje@google.com>
11989
0b30b85c
DE
11990 * dwarf2read.c (statement_prologue): Delete, unused.
11991
98714339
DE
11992 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11993 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11994
6b07635f
DE
11995 * dwarf2read.c (comp_unit_header): Delete, unused.
11996
761f4555
UW
119972012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11998
11999 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12000 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12001
2ca0b532
PA
120022012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12003
12004 * infrun.c (normal_stop): Don't skip calling the normal_stop
12005 observers if the thread was doing a multi-step, but stopped for
12006 some reason other than stepping.
12007
50aeff07
PA
120082012-01-05 Pedro Alves <alves.ped@gmail.com>
12009
12010 * cli/cli-decode.h: Add comments.
12011 (CMD_LIST_AMBIGUOUS): Moved to command.h
12012 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12013 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12014 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12015 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12016 (add_com, add_com_alias, add_info, add_info_alias)
12017 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12018 declarations.
12019 * command.h: Add and adjust comments.
12020 (CMD_LIST_AMBIGUOUS): Moved here.
12021 (help_cmd, help_cmd_list): Delete declarations.
12022
5953832c
DE
120232012-01-04 Doug Evans <dje@google.com>
12024
e5fe5e75
DE
12025 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12026 All callers updated.
12027 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12028 Replace all arguments with "per_cu". All callers updated.
12029
28dee7f5
DE
12030 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12031
23745b47
DE
12032 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12033 New arg "per_cu". All callers updated.
12034
5953832c
DE
12035 Delete #if 0'd out code.
12036 * language.c (binop_result_type): Delete.
12037 (simple_type, ordered_type, same_type, integral_type): Delete.
12038 (numeric_type, character_type, string_type, boolean_type): Delete.
12039 (float_type, structured_type): Delete.
12040 * language.h: Update.
12041
0f5b7562
TT
120422012-01-04 Tom Tromey <tromey@redhat.com>
12043
12044 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12045
78218f56
JB
120462012-01-04 Joel Brobecker <brobecker@adacore.com>
12047
12048 * corefile.c (close_exec_file): Delete.
12049 (reopen_exec_file): Remove commented out code that seems related
12050 to close_exec_file, which is being deleted here.
12051 * inferior.h (close_exec_file): Delete.
12052 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12053
0fcd72ba
JB
120542012-01-04 Joel Brobecker <brobecker@adacore.com>
12055
12056 * ada-lang.c: #include "cli/cli-utils.h".
12057 (get_selections): Use skip_spaces.
12058 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12059 (catch_ada_exception_command_split): Use skip_spaces.
12060 (ada_decode_assert_location): Likewise.
12061
1dabb4c4
JB
120622012-01-04 Joel Brobecker <brobecker@adacore.com>
12063
12064 * linespec.c (decode_line_internal): Check for C++ or Java
12065 compound constructs only if the current language is C, C++
12066 or Java.
12067
5931a2fa
JK
120682012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12069
12070 Revert:
12071 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12072 Joel Brobecker <brobecker@adacore.com>
12073 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12074 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12075 3 times.
12076 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12077 fall through into AT_ENTRY_POINT.
12078 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12079 DUMMY_ADDR with it.
12080 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12081 PPC_INSN_SIZE skip to 3 times.
12082
1a2da5ee
JB
120832012-01-04 Joel Brobecker <brobecker@adacore.com>
12084
12085 * linespec.c (add_minsym): Preserve function descriptors.
12086
8645ff69
UW
120872012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12088
12089 * breakpoint.c (all_locations_are_pending): Consider locations
12090 in program spaces executing during startup pending as well.
12091
0b302171
JB
120922012-01-04 Joel Brobecker <brobecker@adacore.com>
12093
12094 Copyright year update in most files of the GDB Project.
12095
8ba098ad
JB
120962012-01-04 Joel Brobecker <brobecker@adacore.com>
12097
12098 * copyright.sh: Delete.
12099 * copyright.py: Rewrite.
12100
09c01c30
JB
121012012-01-04 Joel Brobecker <brobecker@adacore.com>
12102
12103 * gnulib/extra/update-copyright: New file, imported from gnulib.
12104
3c36c0af
JB
121052012-01-04 Joel Brobecker <brobecker@adacore.com>
12106
12107 * README (Copyright and License Notices): New section.
12108
888fe1e1
TT
121092012-01-03 Tom Tromey <tromey@redhat.com>
12110
12111 PR python/12533:
12112 * python/py-value.c (valpy_dereference, valpy_get_address
12113 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12114 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12115 (valpy_absolute, valpy_richcompare): Free intermediate values.
12116
6e681866
JB
121172011-01-03 Joel Brobecker <brobecker@adacore.com>
12118
12119 * ada-lang.c: Reformat the copyright notice.
12120
0cd09acb
JK
121212012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12122
12123 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12124 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12125 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12126 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12127 Revert this part of:
12128 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12129 Build gdb directly from *.o files not using libgdb.a.
12130 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12131
12c3e59c
JB
121322012-01-02 Joel Brobecker <brobecker@adacore.com>
12133
12134 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12135 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12136 Reformat the copyright header.
12137
11bf1490
JK
121382012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12139
12140 Revert this part of:
12141 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12142 Remove the gdbtui binary.
12143 * gdb.c (main): Remove args.interpreter_p initialization.
12144 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12145 * main.h (struct captured_main_args): Remove interpreter_p.
12146
1fef196f
JB
121472012-01-02 Joel Brobecker <brobecker@adacore.com>
12148
12149 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12150
67827812
JB
121512012-01-02 Joel Brobecker <brobecker@adacore.com>
12152
12153 * top.c (print_gdb_version): Update copyright year.
12154
a4d0b831
YQ
121552012-01-02 Yao Qi <yao@codesourcery.com>
12156
12157 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12158
b5914469
JK
121592012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12160 Joel Brobecker <brobecker@adacore.com>
12161
12162 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12163 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12164 3 times.
12165 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12166 fall through into AT_ENTRY_POINT.
12167 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12168 DUMMY_ADDR with it.
12169 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12170 PPC_INSN_SIZE skip to 3 times.
12171
8da828f7
JK
121722012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12173
12174 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12175 the return value.
12176 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12177
8574e74b
JK
121782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12179
12180 Build gdb directly from *.o files not using libgdb.a.
12181 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12182 (COMMON_OBS): Remove solib-target.o.
12183 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12184 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12185 (LIBGDB_OBS, libgdb.a): Move it above.
12186 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12187 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12188 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12189 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12190 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12191 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12192 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12193 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12194 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12195 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12196 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12197 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12198 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12199 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12200 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12201 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12202 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12203 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12204 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12205 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12206 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12207 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12208 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12209 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12210 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12211 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12212 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12213
217bff3e
JK
122142012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12215
12216 Remove the gdbtui binary.
12217 * .gitignore (/gdbtui): Remove.
12218 * Makefile.in (TUI): Remove.
12219 (SUBDIR_TUI_OBS): Remove tui-main.o.
12220 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12221 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12222 (tui-main.o): Remove.
12223 (all_object_files): Remove tui-main.o.
12224 * NEWS: New note for the gdbtui removal.
12225 * configure: Rebuilt.
12226 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12227 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12228 CONFIG_UNINSTALL respectively.
12229 * gdb.c (main): Remove args.interpreter_p initialization.
12230 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12231 * main.h (struct captured_main_args): Remove interpreter_p.
12232 * tui/tui-main.c: Remove.
12233
9cdd5dbd
DE
122342012-01-01 Doug Evans <dje@google.com>
12235
bb5ed363
DE
12236 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12237 (dwarf2_physname, read_import_statement): Ditto.
12238 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12239 (process_structure_scope read_subroutine_type): Ditto.
12240 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12241 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12242 (dwarf2_fetch_die_location_block): Ditto.
12243 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12244
a0f42c21
DE
12245 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12246 All callers updated.
12247 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12248 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12249 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12250
2dc860c0
DE
12251 * dwarf2read.c (load_cu): Move assert to more useful location.
12252
68dc6402
DE
12253 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12254 All callers updated.
12255
9cdd5dbd
DE
12256 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12257 (dwarf2_elf_names): Minor reformat.
12258 (dwarf2_per_cu_data): Tweak comment.
12259 (dwarf2_read_section): Fix comment.
12260 (create_all_comp_units): Fix comment.
12261 (load_full_comp_unit): Fix comment.
12262 (process_full_comp_unit): Fix comment.
12263 (read_signatured_type): Fix comment.
12264
0c10e53e 12265For older changes see ChangeLog-2011.
c906108c
SS
12266\f
12267Local Variables:
12268mode: change-log
12269left-margin: 8
12270fill-column: 74
12271version-control: never
57da7796 12272coding: utf-8
c906108c 12273End:
This page took 1.999959 seconds and 4 git commands to generate.