Delete the gdb/osf-share directory.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2cb50f9d
JB
12012-12-07 Joel Brobecker <brobecker@adacore.com>
2
3 * osf-share/AT386/cma_thread_io.h: Delete.
4 * osf-share/HP800/cma_thread_io.h: Delete.
5 * osf-share/README: Delete.
6 * osf-share/RIOS/cma_thread_io.h: Delete.
7 * osf-share/cma_attr.h: Delete.
8 * osf-share/cma_deb_core.h: Delete.
9 * osf-share/cma_debug_client.h: Delete.
10 * osf-share/cma_errors.h: Delete.
11 * osf-share/cma_handle.h: Delete.
12 * osf-share/cma_init.h: Delete.
13 * osf-share/cma_list.h: Delete.
14 * osf-share/cma_mutex.h: Delete.
15 * osf-share/cma_sched.h: Delete.
16 * osf-share/cma_semaphore_defs.h: Delete.
17 * osf-share/cma_sequence.h: Delete.
18 * osf-share/cma_stack.h: Delete.
19 * osf-share/cma_stack_int.h: Delete.
20 * osf-share/cma_tcb_defs.h: Delete.
21 * osf-share/cma_util.h: Delete.
22 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
23 in osf-share.
24 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
25 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
26 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
27
0ba2eb0f
TT
282012-12-06 Pedro Alves <palves@redhat.com>
29 Tom Tromey <tromey@redhat.com>
30
31 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
32
731145cb
TT
332012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
34
35 PR mi/14741:
36 * mi/mi-cmd-var.c (varobj_update_one): Take value of
37 attribute "dynamic" and "displayhint" from printed child,
38 not the root variable.
39
eff44fea
JB
402012-12-06 Joel Brobecker <brobecker@adacore.com>
41
42 * aix-thread.c (getthrds): Fix type of 4th parameter.
43 (get_signaled_thread): Change type of variable ktid to tid_t.
44
c90a0773
HZ
452012-12-06 Hui Zhu <hui_zhu@mentor.com>
46
47 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
48 value of get_frame_block.
49
5bc81a00
PM
502012-12-05 Pierre Muller <muller@sourceware.org>
51
52 Avoid memory leaks on struct cmd_list_element.doc field.
53 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
54 if flags contains DOC_ALLOCATED.
55 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
56 flags.
57 (delete_cmd): Handle DOC_ALLOCATED flag.
58 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
59 in flags filed of struct cmd_list_element.
60 (struct cmd_list_element): Document new flag item.
61
b5ebcee6
DE
622012-12-04 Doug Evans <dje@google.com>
63
64 * symmisc.c: Whitespace fixes.
65
56bf0743
KB
662012-12-04 Karthik Bhat <kv.bhat@samsung.com>
67
68 * i386-tdep.c (i386_skip_prologue): Using symbol table
69 to find the end of prologue for clang compiled binaries.
70 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
71 to find the end of prologue for clang compiled binaries.
72
56e64610
DE
732012-12-03 Doug Evans <dje@google.com>
74
75 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
76 (dw2_find_symbol_file): Delete unused local file_data.
77
270140bd
TT
782012-12-03 Tom Tromey <tromey@redhat.com>
79
80 * ada-exp.y (write_object_renaming, write_var_or_type)
81 (write_ambiguous_var, write_var_from_sym): Make blocks const.
82 * ada-lang.c (replace_operator_with_call)
83 (find_old_style_renaming_symbol): Make blocks const.
84 * ada-lang.h (ada_find_renaming_symbol): Update.
85 (struct ada_symbol_info) <block>: Now const.
86 * breakpoint.c (watch_command_1): Update.
87 * breakpoint.h (struct watchpoint) <exp_valid_block,
88 cond_exp_valid_block>: Now const.
89 * c-exp.y (classify_inner_name, classify_name): Make block
90 argument const.
91 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
92 const.
93 * expression.h (innermost_block, parse_exp_1): Update.
94 (union exp_element) <block>: Now const.
95 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
96 (lookup_struct): Make block argument const.
97 * gdbtypes.h (lookup_template_type): Update.
98 * go-exp.y (classify_name, classify_packaged_name)
99 (package_name_p): Make block argument const.
100 * objc-lang.c (lookup_struct_typedef): Make block argument const.
101 * objc-lang.h (lookup_struct_typedef): Update.
102 * parse.c (parse_exp_in_context, parse_exp_1)
103 (write_exp_elt_block): Make block arguments const.
104 (expression_context_block, innermost_block): Now const.
105 * parser-defs.h (write_exp_elt_block): Update.
106 (expression_context_block, innermost_block, block_found): Now
107 const.
108 * printcmd.c (struct display) <block>: Now const.
109 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
110 * valops.c (address_of_variable): Make block argument const.
111 * value.h (value_of_variable): Update.
112 * varobj.c (struct varobj_root) <valid_block>: Now const.
113
31f56a27
YQ
1142012-11-30 Yao Qi <yao@codesourcery.com>
115
116 * breakpoint.c (print_one_breakpoint_location): Indent code.
117
556ec64d
YQ
1182012-11-30 Yao Qi <yao@codesourcery.com>
119
120 * breakpoint.c (print_one_breakpoint_location): Combine two
121 blocks handling 'hit count' together.
122
3d3fef6b
YQ
1232012-11-30 Yao Qi <yao@codesourcery.com>
124
125 * infrun.c (error_is_running, ensure_not_running): Move them
126 to ...
127 * infcmd.c (error_is_running, ensure_not_running): ... here.
128 Make them 'static'.
129 * inferior.h: Remove declarations of error_is_running and
130 ensure_not_running.
131
7cd12a76
YQ
1322012-11-30 Yao Qi <yao@codesourcery.com>
133
134 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
135 check REGNUM >= 0.
136
7a76f5b8
YQ
1372012-11-30 Yao Qi <yao@codesourcery.com>
138
139 * infrun.c: Make the declaration of 'init_infwait_state'
140 static.
141 (init_infwait_state): Make it 'static'.
142
b1209b03
UW
1432012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
144
145 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
146 return value to void to avoid compiler warning.
147
ea5e6b0e
UW
1482012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
149
150 * opencl-lang.c (opencl_print_type): New function.
151 (opencl_language_arch_info): Install it.
152
a93478ea
TT
1532012-11-29 Tom Tromey <tromey@redhat.com>
154
155 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
156 xvasprintf.
157 * common/common-utils.c (xasprintf, xvasprintf): Remove.
158 * common/common-utils.h (xasprintf, xvasprintf): Remove.
159
ac4a2da4
JG
1602012-11-29 Jerome Guitton <guitton@adacore.com>
161
162 * ada-lang.c (ada_is_interface_tag): New function.
163 (ada_is_ignored_field): Add interface tags to the list
164 of ignored fields.
165
b50d69b5
JG
1662012-11-29 Jerome Guitton <guitton@adacore.com>
167
168 * ada-lang.h (ada_tag_value_at_base_address): New function
169 declaration.
170 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
171 New functions.
172 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
173 relocate the class-wide value if need be.
174 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
175 Let ada_tag_value_at_base_address relocate the class-wide access/ref
176 before dereferencing it.
177 * ada-valprint.c (ada_val_print_1): Relocate to base address
178 before displaying the content of an interface-wide ref.
179
ca1f964d
JG
1802012-11-29 Jerome Guitton <guitton@adacore.com>
181
182 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
183
38d03cf1 1842012-11-29 Joel Brobecker <brobecker@adacore.com>
185
186 GDB 7.5.1 released.
187
f5682501
YQ
1882012-11-29 Yao Qi <yao@codesourcery.com>
189 Tom Tromey <tromey@redhat.com>
190
191 * eval.c (evaluate_subexp_standard): Get the correct pointer
192 type for TYPE_CODE_MEMBERPTR.
193
f359d716
EBM
1942012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
195
196 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
197 since now it is being done by binutils' powerpc_init_dialect().
198
0cd61f44
TT
1992012-11-28 Tom Tromey <tromey@redhat.com>
200
201 PR gdb/14290:
202 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
203 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
204 Use it.
205 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
206 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
207 (gdb_bfd_openr_next_archived_file): Use it.
208
945bf713
MM
2092012-11-28 Markus Metzger <markus.t.metzger@intel.com>
210
211 * configure.ac: Check for linux/perf_event.h.
212 * config.in: Regenerated.
213 * configure: Regenerated.
214
7e20dfcd
YQ
2152012-11-28 Yao Qi <yao@codesourcery.com>
216
217 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
218 abbreviate 'delete tracepoints' to 'delete tr'.
219 * corefile.c (_initialize_core): Call add_alias_cmd to
220 abbreviate 'set gnutarget' to 'set g'.
221 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
222 'show convenience' to 'show conv'.
223
b8293cc8
JB
2242012-11-27 Joel Brobecker <brobecker@adacore.com>
225
226 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
227 call to sparc_supply_fpregset.
228 (fill_fpregset): Fix first parameter in call to
229 sparc_collect_fpregset.
230
8c2b9656
YQ
2312012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
232 Kazu Hirata <kazu@codesourcery.com>
233 Yao Qi <yao@codesourcery.com>
234
235 * objfiles.c (init_entry_point_info): Call
236 gdbarch_convert_from_func_ptr_addr and
237 gdbarch_addr_bits_remove here ...
238 (entry_point_address_query): ... instead of here.
239 * solib-svr4.c (exec_entry_point): Call
240 gdbarch_addr_bits_remove.
241 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
242 the entry address.
243
5edf51fe
YQ
2442012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
245 Yao Qi <yao@codesourcery.com>
246
247 * eval.c (evaluate_subexp_standard): Add handling of
248 TYPE_CODE_MEMBERPTR when calling functions. Correct the
249 result of ptype for calling a TYPE_CODE_METHODPTR.
250
ca242aad
YQ
2512012-11-27 Yao Qi <yao@codesourcery.com>
252
253 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
254 warning.
255 Add i18n markup.
256
608e2dbb
TT
2572012-11-26 Alexander Larsson <alexl@redhat.com>
258 Jan Kratochvil <jan.kratochvil@redhat.com>
259 Tom Tromey <tromey@redhat.com>
260
261 * NEWS: Mention mini debuginfo feature.
262 * minidebug.c: New file.
263 * configure.ac: Check for lzma.
264 * configure, config.in: Rebuild.
265 * Makefile.in (LIBLZMA): New variable.
266 (CLIBS): Include LIBLZMA.
267 (SFILES): Mention minidebug.c.
268 (COMMON_OBS): Mention minidebug.o.
269 * symfile.c (read_symbols): New function.
270 (syms_from_objfile, reread_symbols): Call it.
271 * symfile.h (find_separate_debug_file_in_section): Declare.
272
17d6efc4
JB
2732012-11-26 Keith Seitz <keiths@redhat.com>
274
275 * exec.c (exec_file_attach): Move cleanup after verifying that
276 memory has in fact been allocated.
277
210bbc17
TT
2782012-11-26 Tom Tromey <tromey@redhat.com>
279
280 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
281 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
282 SYMBOL_SYMTAB.
283 * skip.c (skip_info): Use SYMBOL_SYMTAB.
284
0270a750
PA
2852012-11-26 Maxime Villard <rustyBSD@gmx.fr>
286 Pedro Alves <palves@redhat.com>
287
288 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
289 size parameter passed to readlink by one byte.
290 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
291 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
292 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
293 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
294 size by one byte.
295
9c16be9a
YQ
2962012-11-26 Yao Qi <yao@codesourcery.com>
297
298 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
299 extraneous parentheses.
300
e6f3fa52
YQ
3012012-11-26 Yao Qi <yao@codesourcery.com>
302
303 * remote.c (remote_start_remote): Typo fix.
304
db75c717
DM
3052012-11-23 David S. Miller <davem@davemloft.net>
306
307 * sparc-tdep.h (struct sparc_fpregset): New data structure.
308 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
309 sparc32_sol2_fpregset): Declare new globals.
310 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
311 'fpregset' argument.
312 * sparc64-tdep.h (sparc64_supply_fpregset,
313 sparc64_collect_fpregset): Likewise.
314 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
315 globals.
316 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
317 (sparc_fpregset): Declare new global.
318 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
319 'fpregset' argument.
320 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
321 into handler.
322 (fill_fpregset): Likewise.
323 (_initialize_sparc_linux_nat): Set sparc_fpregset to
324 sparc32_bsd_fpregset.
325 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
326 sparc32_bsd_fpregset down into handler.
327 (sparc32_linux_collect_core_fpregset): Likewise.
328 * sparc-nat.c (sparc_fpregset): Define.
329 (sparc_supply_fpregset): Add 'fpregset' argument.
330 (sparc_collect_fpregset): Likewise.
331 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
332 into fpregset handler.
333 (sparc_store_inferior_registers): Likewise.
334 (_initialize_sparc_nat): Set sparc_fpregset to
335 sparc32_sunos4_fpregset if NULL.
336 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
337 down into handler.
338 (fill_fpregset): Likewise.
339 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
340 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
341 use it to compute offsets.
342 (sparc32_collect_fpregset): Likewise.
343 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
344 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
345 down into handler.
346 (fill_fpregset): Likewise.
347 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
348 Likewise.
349 (sparc64_linux_collect_core_fpregset): Likewise.
350 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
351 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
352 use it to compute offsets.
353 (sparc64_collect_fpregset): Likewise.
354 (sparc64_bsd_fpregset): Define.
355 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
356 sparc64_bsd_fpregset down into handler.
357 (sparc64fbsd_collect_fpregset): Likewise.
358 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
359 and pass sparc{32,64}_bsd_fpregset down into handler.
360 (sparc64nbsd_collect_fpregset): Likewise.
361 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
362 sparc64_bsd_fpregset down into handler.
363 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
364 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
365 to sparc32_bsd_fpregset.
366 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
367 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
368 (sparc32nbsd_supply_fpregset): Likewise.
369
cfcad218
TT
3702012-11-21 Tom Tromey <tromey@redhat.com>
371
372 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
373 field.
374 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
375 Remove.
376 * c-typeprint.c (c_type_print_base): Update.
377
85ddcc70
YQ
3782012-11-21 Yao Qi <yao@codesourcery.com>
379
380 PR tdep/7438
381 * gdbarch.sh (smash_text_address): Remove.
382 * gdbarch.c, gdbarch.h: Regenerate.
383 * arm-tdep.c (arm_smash_text_address): Remove.
384 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
385 * hppa-tdep.c (hppa_smash_text_address): Remove.
386 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
387 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
388 Caller update.
389 * coffread.c (coff_symtab_read): Caller update.
390 * dbxread.c (process_one_symbol): Likewise.
391 * elfread.c (record_minimal_symbol): Likewise.
392 * somread.c (som_symtab_read): Likewise.
393
11522069
PM
3942012-11-20 Pierre Muller <muller@sourceware.org>
395
396 ARI fixes: sprintf rule.
397 Replace sprintf function calls for char arrays by
398 calls to xsnprintf calls.
399 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
400 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
401 (arm_neon_quad_read, arm_pseudo_read): Ditto.
402 (arm_neon_quad_write, arm_pseudo_write): Ditto.
403 * breakpoint.c (condition_completer): Ditto.
404 (create_tracepoint_from_upload): Ditto.
405 * dwarf2read.c (file_full_name): Ditto.
406 * gcore.c (gcore_command): Ditto.
407 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
408 * go32-nat.c (go32_sysinfo): Ditto.
409 * interps.c (interp_set): Ditto.
410 * m32c-tdep.c (make_types): Ditto.
411 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
412 * remote-m32r-sdi.c (m32r_open): Ditto.
413 * sol-thread.c (td_err_string): Ditto.
414 (td_state_string, solaris_pid_to_str): Ditto.
415 * symtab.c (gdb_mangle_name): Ditto.
416 * cli/cli-script.c (execute_control_command): Ditto.
417 (define_command, document_command): Ditto.
418 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
419 * tui/tui-stack.c (tui_make_status_line): Ditto.
420 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
421
ace21957
MF
4222012-11-20 Mike Frysinger <vapier@gentoo.org>
423
424 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
425 it when looking at ptr->func.
426 * command.h (complete_on_cmdlist): Add a fourth arg.
427 * completer.c (complete_line_internal): Add local ignore_help_classes,
428 and set it to 1 when reason is not handle_help. Pass this down to
429 lookup_cmd_1 and complete_on_cmdlist.
430
ec6632d7
TT
4312012-11-20 Tom Tromey <tromey@redhat.com>
432
433 * completer.c (count_struct_fields): Remove.
434 (expression_completer): Don't call count_struct_fields.
435
ef37bb07
PA
4362012-11-20 Pedro Alves <palves@redhat.com>
437
438 * annotate.c (breakpoints_changed): Rename to ...
439 (annotate_breakpoints_changed): ... this.
440 (annotate_stopped, breakpoint_changed): Adjust caller.
441 * annotate.h (breakpoints_changed): Rename to ...
442 (annotate_breakpoints_changed): ... this.
443 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
444 (do_map_commands_command, init_raw_breakpoint, clear_command)
445 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
446
b245bdfc
DM
4472012-11-20 David S. Miller <davem@davemloft.net>
448
449 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
450 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
451 sysconf.
452 (get_cores_used_by_process): Update comment.
453
bd0cfc4d
YQ
4542012-11-20 Yao Qi <yao@codesourcery.com>
455
456 * objfiles.c (init_entry_point_info): Remove trailing spaces.
457
de9f1b68
YQ
4582012-11-20 Yao Qi <yao@codesourcery.com>
459
460 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
461 to deprecated_context_hook.
462
8870954f
YQ
4632012-11-19 Yao Qi <yao@codesourcery.com>
464
465 * infrun.c (infwait_state): Add static.
466
8dea366b
KS
4672012-11-16 Keith Seitz <keiths@redhat.com>
468
469 PR c++/13615
470 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
471 parameter and pass it to lookup_symbol_file.
472 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
473 to search base classes.
474 (cp_lookup_symbol_namespace): Likewise.
475 (lookup_namespace_scope): Likewise.
476 (lookup_symbol_file): Add SEARCH parameter.
477 If SEARCH is non-zero and no symbol is found, lookup the class
478 and call cp_lookup_nested_symbol.
479 (find_symbol_in_baseclass): New function.
480 (cp_lookup_nested_symbol): Do not let
481 cp_lookup_symbol_in_namespace search through base classes.
482 Do that later when there is no global symbol match.
483
e64e0392
DE
4842012-11-16 Doug Evans <dje@google.com>
485
486 * main.c (gdb_datadir_provided): New static global.
487 (get_init_files): If --data-directory is provided,
488 and SYSTEM_GDBINIT lives in data-directory, look for it there.
489 * NEWS: Mention it.
490
8bdce1ff
PM
4912012-11-15 Pierre Muller <muller@sourceware.org>
492
493 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
494 * gdb_stat.h: Delete. Moved to common directory.
495 * common/gdb_stat.h: New file.
496 * gdb_wait.h: Delete. Moved to common directory.
497 * common/gdb_wait.h: New file.
498 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
499 location.
500 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
501 location.
502 (stat.h rule): Adapt to new gdb_stat.h location.
503 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
504 <sys/stat.h> header.
505 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
506 <sys/wait.h> header.
507
3a731e0f
PM
5082012-11-15 Pierre Muller <muller@sourceware.org>
509
510 * configure.ac (AC_HEADER_STAT): Remove.
511 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
512 and corresponding code.
513 * configure: Regenerate.
514 * config.in: Regenerate.
515
2792b94d
PM
5162012-11-15 Pierre Muller <muller@sourceware.org>
517
518 ARI xasprintf rule fixes.
519 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
520 instead of xasprintf.
521 (open_and_init_dwp_file): Ditto.
522
5e34c6c3
LM
5232012-11-14 Luis Machado <lgustavo@codesourcery.com>
524
525 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
526 target types.
527
e68227b9
TT
5282012-11-14 Tom Tromey <tromey@redhat.com>
529
530 * configure, config.in: Rebuild.
531 * configure.ac: Don't check for ctype.h, time.h.
532 * expprint.c: Don't use HAVE_CTYPE_H.
533
aff68abb
TT
5342012-11-13 Tom Tromey <tromey@redhat.com>
535
536 * gdbarch.h, gdbarch.c: Rebuild.
537 * gdbarch.sh (set_target_gdbarch): Rename from
538 deprecated_target_gdbarch_select_hack.
539 * arch-utils.c (gdbarch_update_p): Update.
540 (set_gdbarch_from_file): Update.
541
84277139 5422012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
543
544 * MAINTAINERS (Responsible Maintainers/misc): Add myself
545 as responsible of contrib/ari directory.
546
2ae28aa9
YQ
5472012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
548 Yao Qi <yao@codesourcery.com>
549
550 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
551 bit of EXC_RETURN.
552 (arm_m_exception_cache, arm_m_exception_this_id)
553 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
554 (arm_m_exception_unwind): New.
555 (arm_gdbarch_init): Register arm_m_exception_unwind.
556
62747a60
TT
5572012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
558
559 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
560 parameter COUNT, for pattern filling of memory regions.
561 * NEWS: Mention it.
562
4cd29721
MM
5632012-11-13 Markus Metzger <markus.t.metzger@intel.com>
564
565 * disasm.h (DISASSEMBLY_FILENAME): New macro.
566 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
567 to print_source_lines ().
568 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
569 flag.
570 * source.c (print_source_lines_base): Prefix source line with
571 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
572
dfaae886
MM
5732012-11-13 Markus Metzger <markus.t.metzger@intel.com>
574
575 * symtab.h (print_source_lines_flags): New enum.
576 * source.c (print_source_lines_base): Change noerror to flags.
577 (print_source_lines): Change noerror to flags.
578
08850b56
PM
5792012-11-13 Pierre Muller <muller@sourceware.org>
580
581 ARI fixes: Avoid sprintf function use rule.
582 * charset.c (convert_between_encodings): Use xsnprintf.
583 * cli-out.c (cli_field_int): Likewise.
584 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
585 * expprint.c (op_name_standard): Likewise.
586 * frv-tdep.c (set_variant_num_gprs): Likewise.
587 (set_variant_num_fprs): Likewise.
588 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
589 * nto-tdep.c (nto_find_and_open_solib): Likewise.
590 (nto_init_solib_absolute_prefix): Likewise.
591 * source.c (init_source_path): Likewise.
592 (print_source_lines_base): Likewise.
593 * valprint.c (print_wchar): Likewise.
594 * mi/mi-out.c (mi_field_int): Likewise.
595 windows-nat.c (windows_pid_to_exec_file): Likewise.
596 (windows_create_inferior): Likewise.
597 (_initialize_check_for_gdb_ini): Likewise.
598
ca9d61b9
JB
5992012-11-12 Joel Brobecker <brobecker@adacore.com>
600
601 * frame.h (deprecated_frame_register_read): Renames
602 frame_register_read.
603 * frame.c (deprecated_frame_register_read): Renames
604 frame_register_read. Update all callers.
605 * i386-tdep.c: Update all callers of frame_register_read.
606 * infcmd.c: Likewise.
607 * jit.c: Likewise.
608 * mips-tdep.c: Likewise.
609 * mt-tdep.c: Likewise.
610 * sh64-tdep.c: Likewise.
611
b2c7d45a
JB
6122012-11-12 Joel Brobecker <brobecker@adacore.com>
613
614 * frame.h (frame_register_read): Remove FIXME comment.
615 * frame.c (frame_register_read): Add suggestion explaining
616 which function to use in place of this one.
617
31594462
TT
6182012-11-12 Tom Tromey <tromey@redhat.com>
619
620 * python/python.c (start_type_printers): Initialize 'result_obj'.
621
18a9fc12
TT
6222012-11-12 Tom Tromey <tromey@redhat.com>
623
624 * NEWS: Update.
625 * data-directory/Makefile.in (PYTHON_FILES): Add
626 type_printers.py.
627 * python/lib/gdb/command/type_printers.py: New file.
628 * python/lib/gdb/command/types.py (TypePrinter): New class.
629 (_get_some_type_recognizers, get_type_recognizers,
630 apply_type_recognizers, register_type_printer): New
631 functions.
632 * python/py-objfile.c (objfile_object) <type_printers>: New
633 field.
634 (objfpy_dealloc): Decref new field.
635 (objfpy_new): Set new field.
636 (objfpy_get_type_printers, objfpy_set_type_printers): New
637 functions.
638 (objfile_to_objfile_object): Set new field.
639 (objfile_getset): Add "type_printers".
640 * python/py-progspace.c (pspace_object) <type_printers>: New
641 field.
642 (pspy_dealloc): Decref new field.
643 (pspy_new): Set new field.
644 (pspy_get_type_printers, pspy_set_type_printers): New functions.
645 (pspace_to_pspace_object): Set new field.
646 (pspace_getset): Add "type_printers".
647 * python/python.c (start_type_printers, apply_type_printers,
648 free_type_printers): New functions.
649 (_initialize_python): Set gdb.type_printers.
650 * python/python.h (start_type_printers, apply_type_printers,
651 free_type_printers): Declare.
652 * typeprint.c (type_print_raw_options, default_ptype_flags):
653 Update for new fields.
654 (do_free_global_table, create_global_typedef_table,
655 find_global_typedef): New functions.
656 (find_typedef_in_hash): Use find_global_typedef.
657 (whatis_exp): Use create_global_typedef_table. Change cleanup
658 handling.
659 * typeprint.h (struct type_print_options) <global_typedefs,
660 global_printers>: New fields.
661
bd69fc68
TT
6622012-11-12 Tom Tromey <tromey@redhat.com>
663
664 * c-typeprint.c (find_typedef_for_canonicalize,
665 print_name_maybe_canonical): New functions.
666 (c_print_type): Look up type name.
667 (cp_type_print_derivation_info): Add flags argument. Use
668 print_name_maybe_canonical.
669 (cp_type_print_method_args): Add wrapping.
670 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
671 (c_type_print_template_args): New function.
672 (c_type_print_base): Change wrapping. Use
673 print_name_maybe_canonical.
674 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
675 type name lookups.
676 * gdbtypes.c (types_equal): No longer static.
677 * gdbtypes.h (types_equal): Declare.
678 * typeprint.c (type_print_raw_options, default_ptype_flags):
679 Update.
680 (struct typedef_hash_table): New.
681 (hash_typedef_field, eq_typedef_field,
682 recursively_update_typedef_hash, add_template_parameters,
683 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
684 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
685 copy_typedef_hash, find_typedef_in_hash): New functions.
686 * typeprint.h (struct type_print_options) <local_typedefs>:
687 New field.
688 (recursively_update_typedef_hash, add_template_parameters,
689 create_typedef_hash, free_typedef_hash,
690 make_cleanup_free_typedef_hash, copy_typedef_hash,
691 find_typedef_in_hash): Declare.
692
2621e0fd
TT
6932012-11-12 Tom Tromey <tromey@redhat.com>
694
695 * cp-support.c (inspect_type,
696 replace_typedefs_qualified_name, replace_typedefs): Add
697 finder, data arguments. Call as needed.
698 (cp_canonicalize_string_full): New function.
699 (cp_canonicalize_string_no_typedefs): Rewrite.
700 * cp-support.h (canonicalization_ftype): New typedef.
701 (cp_canonicalize_string_full): Declare.
702
53342f27
TT
7032012-11-12 Tom Tromey <tromey@redhat.com>
704
705 * NEWS: Update.
706 * c-typeprint.c (c_type_print_base): Handle print_method and
707 print_typedefs flags.
708 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
709 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
710 options.
711 * typeprint.c (type_print_raw_options, default_ptype_flags):
712 Update for new field.s
713 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
714 (setprinttypelist, showprinttypelist, print_methods,
715 print_typedefs): New globals.
716 (set_print_type, show_print_type, set_print_type_methods,
717 show_print_type_methods, set_print_type_typedefs,
718 show_print_type_typedefs): New functions.
719 (_initialize_typeprint): Update documentation. Add "print
720 type methods" and "print type typedefs" parameters.
721 * typeprint.h (struct type_print_options) <print_methods,
722 print_typedefs>: New fields.
723
6c8702eb
TT
7242012-11-12 Tom Tromey <tromey@redhat.com>
725
726 * c-typeprint.c (cp_type_print_method_args): Add flags
727 argument. Call c_print_type, not type_print.
728 (c_type_print_base): Call c_print_type, not type_print.
729 Update.
730
79d43c61
TT
7312012-11-12 Tom Tromey <tromey@redhat.com>
732
733 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
734 to type-printing functions.
735 * ada-lang.h (ada_print_type): Add argument.
736 * ada-typeprint.c (print_array_type, print_variant_clauses,
737 print_variant_part, print_selected_record_field_types,
738 print_record_field_types, print_unchecked_union_type,
739 print_func_type, ada_print_type): Add flags argument.
740 (ada_print_typedef): Update.
741 * c-exp.y (OPERATOR conversion_type_id): Update.
742 * c-lang.h (c_print_type, c_type_print_base): Update.
743 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
744 c_type_print_modifier, c_type_print_args,
745 c_type_print_varspec_suffix, c_type_print_base): Add flags
746 argument.
747 * cp-valprint.c (cp_print_class_member): Update.
748 * dwarf2read.c (dwarf2_compute_name): Update.
749 * f-lang.h (f_print_type): Add argument.
750 * f-typeprint.c (f_print_type): Add flags argument.
751 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
752 * go-lang.h (go_print_type): Add argument.
753 * go-typeprint.c (go_print_type): Add flags argument.
754 * jv-lang.h (java_print_type): Add argument.
755 * jv-typeprint.c (java_type_print_base, java_print_type): Add
756 flags argument.
757 * language.c (unk_lang_print_type): Add flags argument.
758 * language.h (struct language_defn) <la_print_type>: Add flags
759 argument.
760 (LA_PRINT_TYPE): Likewise.
761 * m2-lang.h (m2_print_type): Add argument.
762 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
763 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
764 m2_unbounded_array, m2_record_fields): Add flags argument.
765 * p-lang.h (pascal_print_type, pascal_type_print_base,
766 pascal_type_print_varspec_prefix): Add argument.
767 * p-typeprint.c (pascal_print_type,
768 pascal_type_print_varspec_prefix, pascal_print_func_args,
769 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
770 flags argument.
771 * symmisc.c (print_symbol): Update.
772 * typeprint.c (type_print_raw_options, default_ptype_flags):
773 New globals.
774 (type_print): Update.
775 * typeprint.h (struct type_print_options): New.
776 (type_print_raw_options): Declare.
777 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
778
cf4ded82
KS
7792012-11-10 Keith Seitz <keiths@redhat.com>
780
781 * breakpoint.c (clear_command): Add cleanup for
782 sals.sals if an argument is given.
783
784 * linespec.c (parse_linespec): Do cleanups after
785 parsing a convenience variable.
786
0d63ecda
KS
7872012-11-10 Keith Seitz <keiths@redhat.com>
788
789 PR gdb/14288
790 * c-valprint.c (c_val_print): For character arrays
791 with "print null" option on, print ellipses if
792 the output is truncated and the next character is not \000.
793 * valprint.c (MAX_WCHARS): Define.
794 (WCHAR_BUFLEN): Likewise.
795 (WCHAR_BUFLEN_MAX): Likewise.
796 (struct converted_character): New structure.
797 (count_next_character): New function.
798 (print_converted_chars_to_obstack): New function.
799 (generic_printstr): Rewrite using count_next_character
800 and print_converted_chars_to_obstack.
801
9b8d6827
SC
8022012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
803
804 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
805 while executing the gdb command.
806 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
807 are called from prompt_for_continue.
808 * tui/tui-io.c (tui_redisplay_readline): Likewise.
809
e840f632
SC
8102012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
811
812 PR tui/9584
813
814 * tui/tui.c (tui_rl_command_key): Do not call execute_command
815 but insert the command to execute in readline's buffer.
816
f5656ead
TT
8172012-11-09 Tom Tromey <tromey@redhat.com>
818
819 * gdbarch.sh (target_gdbarch): Remove macro.
820 (get_target_gdbarch): Rename to target_gdbarch.
821 * gdbarch.c, gdbarch.h: Rebuild.
822 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
823 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
824 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
825 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
826 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
827 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
828 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
829 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
830 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
831 procfs.c, progspace.c, ravenscar-thread.c, record.c,
832 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
833 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
834 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
835 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
836 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
837 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
838 target-descriptions.c, target.c, target.h, tracepoint.c,
839 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
840 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
841 python/py-inferior.c, python/python.c: Update.
842
ed8a1c2d
AB
8432012-11-09 Andrew Burgess <aburgess@broadcom.com>
844
845 * source.c (print_source_lines_base): Add fullname field giving
846 full path to file in mi output.
847 * NEWS: Mention the new fullname field.
848
504b36fd
YQ
8492012-11-09 Yao Qi <yao@codesourcery.com>
850
851 * NEWS: Mention the fix to the ambiguity of 'fo' command.
852
9107fc8d
PA
8532012-11-09 Pedro Alves <palves@redhat.com>
854
855 PR gdb/14306
856
857 * infrun.c: Include target-descriptions.h.
858 (follow_exec): Fetch new target description.
859
30f8135b
YQ
8602012-11-09 Yao Qi <yao@codesourcery.com>
861
862 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
863 0x8d (lea).
864
558a9d82
YQ
8652012-11-09 Yao Qi <yao@codesourcery.com>
866
867 * breakpoint.c: Declare set_tracepoint_count.
868 (install_breakpoint): Call set_tracepoint_count if B is a
869 tracepoint.
870 (trace_command): Don't call set_tracepoint_count. Re-indent.
871 (strace_command, ftrace_command):
872 (create_tracepoint_from_upload): Likewise.
873
6ecd4729
PA
8742012-11-09 Pedro Alves <palves@redhat.com>
875
876 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
877 (get_target_gdbarch) <gdbarch.h>: New function.
878 (startup_gdbarch) <gdbarch.h>: Declare.
879 <gdbarch.c> (target_gdbarch): Delete.
880 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
881 current inferior's gdbarch.
882 <gdbarch.c> (get_target_gdbarch): New function.
883 * inferior.c: Include target-descriptions.h.
884 (free_inferior): Free target description info.
885 (add_inferior_with_spaces): Set the inferior's initial
886 architecture.
887 (clone_inferior_command): Copy the original inferior's target
888 description if it was user specified.
889 (initialize_inferiors): Add comment.
890 * inferior.h (struct target_desc_info): Forward declare.
891 (struct inferior) <gdbarch>: New field.
892 * linux-nat.c: Include target-descriptions.h.
893 (linux_child_follow_fork): Copy the parent's architecture and
894 target description to the child.
895 * target-descriptions.c: Include inferior.h.
896 (struct target_desc_info): New structure, holding the equivalents
897 of ...
898 (target_desc_fetched, current_target_desc)
899 (target_description_filename): ... these removed globals.
900 (get_tdesc_info, target_desc_info_from_user_p)
901 (copy_inferior_target_desc_info, target_desc_info_free): New.
902 (target_desc_fetched, current_target_desc)
903 (target_description_filename): Reimplemented as convenience
904 macros.
905 (tdesc_filename_cmd_string): New global.
906 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
907 tdescs filename ..." commands to the per-inferior equivalent.
908 (show_tdesc_filename_cmd): Get the value to show from the
909 per-inferior description filename.
910 (_initilize_target_descriptions): Change the "set/show tdesc
911 filename" commands' variable.
912 * target-descriptions.h (struct target_desc, struct target_desc_info)
913 (struct inferior): Forward declare.
914 (target_find_description, target_clear_description)
915 (target_current_description): Adjust comments.
916 (copy_inferior_target_desc_info, target_desc_info_free)
917 (target_desc_info_from_user_p). Declare.
918
4ca4d161
SC
9192012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
920
921 * tui/tui-hooks.c (tui_about_to_proceed): New function.
922 (tui_target_wait_hook): Remove.
923 (tui_install_hooks): Install the about_to_proceed observer.
924 (tui_remove_hooks): And remove it here.
925
9015683b
TT
9262012-11-08 Tom Tromey <tromey@redhat.com>
927
928 * linux-tdep.c (linux_make_siginfo_note): New function.
929 (linux_make_corefile_notes): Use it.
930 * corelow.c (get_core_siginfo): New function.
931 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
932
ea9f10bb
TT
9332012-11-08 Tom Tromey <tromey@redhat.com>
934
935 PR gdb/14704:
936 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
937 (zlib_decompress_section): Remove.
938 (gdb_bfd_map_section): Only check for compressed section
939 in mmap case. Use bfd_get_full_section_contents.
940 * osabi.c (check_note): Add 'sectsize' argument. Read
941 section data.
942 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
943 section data. Update for check_note change.
944 * xcoffread.c (xcoff_initial_scan): Use
945 bfd_get_full_section_contents.
946 * py-auto-load.c (auto_load_section_scripts): Use
947 bfd_get_full_section_contents.
948 * contrib/cc-with-tweaks.sh: Add -Z option.
949
d071a26b
TT
9502012-11-08 Tom Tromey <tromey@redhat.com>
951
952 * python/py-bpevent.c: Include defs.h.
953 * python/py-continueevent.c: Include defs.h.
954 * python/py-event.c: Include defs.h.
955 * python/py-event.h: Don't include defs.h.
956 * python/py-events.h: Don't include defs.h.
957 * python/py-evts.c: Include defs.h.
958 * python/py-exitedevent.c: Include defs.h.
959 * python/py-newobjfileevent.c: Include defs.h.
960 * python/py-signalevent.c: Include defs.h.
961 * python/py-stopevent.c: Include defs.h.
962 * python/py-threadevent.c: Include defs.h.
963
4574b35a
PM
9642012-11-08 Pierre Muller <muller@sourceware.org>
965
966 * update-web-ari.sh (print_heading): Add number of files
967 checked.
968 (nb_files): New variable counting the number of sources
969 files found by gdb_find.sh script.
970 (debug_awk): New variable to allow extra debug output.
971 (indexes): Add more information if DEBUG_AWK is set.
972
2834ab42
EBM
9732012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
974
975 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
976 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
977 following the change in PLT call stubs on linker.
978
84f13595
PM
9792012-11-08 Pierre Muller <muller@sourceware.org>
980
981 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
982 as default language.
983 (AWK): Use = instead of == for sh test to avoid warning.
984 (Linux rule): Correct [:digit] into [[:digit:]].
985 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
986 (vasprintf rule): Adapt to common subdirectory moves.
987 (xasprintf rule): Idem.
988 (xvasprintf rule): Idem.
989 (var_boolean rule): Accept occurence in == or != test.
990
991 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
992
d69e6a33
SC
9932012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
994
995 * tui/tui-hooks.c (tui_inferior_exit): New function.
996 (tui_detach_hook): Remove.
997 (tui_install_hooks): Install the inferior exit observer.
998 (tui_remove_hooks): Remove it.
999
1e96de83
YQ
10002012-11-08 Yao Qi <yao@codesourcery.com>
1001
1002 PR gdb/14777.
1003 * source.c (_initialize_source): Call add_com_alias to abbreviate
1004 'forward-search' as 'fo'.
1005
0baeab03
PA
10062012-11-07 Pedro Alves <palves@redhat.com>
1007
1008 * arm-tdep.c: Make defs.h be the first include.
1009 * coff-pe-read.c: Ditto.
1010 * gnu-nat.c: Ditto.
1011 * go32-nat.c: Ditto.
1012 * i386-nat.c: Ditto.
1013 * ppcnbsd-nat.c: Ditto.
1014 * ada-varobj.h: Don't include defs.h.
1015 * i386-darwin-tdep.h: Ditto.
1016 * i386-nat.h: Ditto.
1017
892a8570
PA
10182012-11-07 Pedro Alves <palves@redhat.com>
1019
1020 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1021 Committee.
1022
719502e9
PM
10232012-11-07 Pierre Muller <muller@sourceware.org>
1024
1025 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1026 File already uses "gdb_dirent.h" header.
1027
ed86b350
YQ
10282012-11-07 Yao Qi <yao@codesourcery.com>
1029
1030 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1031 tracepoint_count'.
1032
9a4f1e4f
TT
10332012-11-06 Tom Tromey <tromey@redhat.com>
1034
1035 * target.h (inferior_has_forked, inferior_has_vforked)
1036 (inferior_has_execd, inferior_has_called_syscall): Remove
1037 declarations.
1038
0316657e
PM
10392012-11-06 Pierre Muller <muller@sourceware.org>
1040
1041 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1042 add missing internalization markup.
1043
f6592439
PA
10442012-11-06 Pedro Alves <palves@redhat.com>
1045
1046 PR gdb/14810
1047
1048 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1049
01f2564a
PM
10502012-11-06 Pierre Muller <muller@sourceware.org>
1051
1052 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1053 is not executable.
1054
f37c4431
JB
10552012-11-05 Joel Brobecker <brobecker@adacore.com>
1056
1057 * gnulib/update-gnulib.sh: New script.
1058
550889c3
JB
10592012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1060
1061 * MAINTAINERS: Update my email address.
1062
954b50b3
TT
10632012-11-05 Tom Tromey <tromey@redhat.com>
1064
1065 * frame.c (put_frame_register): Don't use temporary buffer.
1066
68c9da30
PA
10672012-11-05 Pedro Alves <palves@redhat.com>
1068
1069 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1070 child. Clear 'pending_detach'.
1071 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1072 'pending_detach' in the vfork parent.
1073
80626a55
DE
10742012-11-05 Doug Evans <dje@google.com>
1075
1076 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1077 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1078 * dwarf2read.c: #include "elf-bfd.h".
1079 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1080 (dwop_section_names): Renamed from dwo_section names. All uses
1081 updated. Add entries for .debug_cu_index, .debug_tu_index.
1082 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1083 All uses updated.
1084 (struct dwp_sections): New type.
1085 (struct virtual_dwo_sections): New type.
1086 (struct dwp_hash_table): New type.
1087 (struct dwp_file): New type.
1088 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1089 read in. Handle DWOs coming from DWP files.
1090 (lookup_dwo_file_slot): New function.
1091 (dwarf2_locate_dwo_sections): Move definition closer to use.
1092 (create_dwo_debug_info_hash_table_reader): Renamed from
1093 create_debug_info_hash_table_reader. All callers updated.
1094 (create_dwo_debug_info_hash_table): Renamed from
1095 create_debug_info_hash_table. All callers updated.
1096 (create_dwp_hash_table): New function.
1097 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1098 (lookup_dwo_in_dwp): New function.
1099 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1100 is_dwp. All callers updated.
1101 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1102 (open_and_init_dwo_file): Renamed from init_dwo_file.
1103 All callers updated.
1104 (lookup_dwo_file): Delete.
1105 (dwarf2_locate_dwp_sections): New function.
1106 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1107 (allocate_dwp_loaded_cutus_table): New function.
1108 (open_and_init_dwp_file): New function.
1109 (lookup_dwo_cutu): New function.
1110 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1111
6f6484cd
YQ
11122012-11-03 Yao Qi <yao@codesourcery.com>
1113
1114 Fix PR gdb/14617.
1115 * breakpoint.c (trace_pass_set_count): Call
1116 observer_notify_breakpoint_modified instead of
1117 observer_notify_tracepoint_modified.
1118 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1119
b45627a0
TT
11202012-11-02 Tom Tromey <tromey@redhat.com>
1121
1122 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1123 argument to complete_on_enum.
1124
d4fb63e1
TT
11252012-11-02 Tom Tromey <tromey@redhat.com>
1126
1127 * configure: Rebuild.
1128 * configure.ac (build_warnings): Add -Wempty-body.
1129 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1130 * remote.c (handle_notification): Use braces for empty 'else' body.
1131 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1132 'else' body.
1133 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1134 'else' body.
1135 * solib-som.c (som_relocate_section_addresses): Use braces
1136 for empty 'else' body.
1137 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1138 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1139
f50f4e56
PA
11402012-11-02 Pedro Alves <palves@redhat.com>
1141
1142 PR gdb/14766
1143
1144 * infrun.c (handle_inferior_event)
1145 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1146 null_ptid before handling a vfork child exec or exit. Switch to
1147 the event ptid afterwards.
1148
f0559fff
YQ
11492012-11-02 Yao Qi <yao@codesourcery.com>
1150
1151 * std-operator.def: Remove OP_LABELED.
1152 * eval.c: Remove the declaration of 'get_label'.
1153 (get_label): Remove.
1154 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1155 Update comment.
1156 Remove local variable 'variantno' and related code.
1157 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1158 with 'fieldno'.
1159 * expprint.c (print_subexp_standard): Likewise.
1160 (dump_subexp_body_standard): Likewise.
1161 * parse.c (operator_length_standard): Likewise.
1162
e5496e3e
PM
11632012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1164
1165 Incorporate ARI web page generator into GDB sources.
1166 * contrib/ari/create-web-ari-in-src.sh: New file.
1167 * contrib/ari/gdb_ari.sh: New file.
1168 * contrib/ari/gdb_find.sh: New file.
1169 * contrib/ari/update-web-ari.sh: New file.
1170
c66fb220
TT
11712012-10-31 Tom Tromey <tromey@redhat.com>
1172
1173 * gdbarch.c: Rebuild.
1174 * gdbarch.sh: Remove references to gdbarch_swap.
1175 * corelow.c (core_open): Remove obsolete comment.
1176
2f27adfe
AB
11772012-10-31 Andrew Burgess <aburgess@broadcom.com>
1178
1179 PR cli/14772
1180 * c-typeprint.c (c_print_type): Don't print a space for vector
1181 types, this is handled within the suffix.
1182 (c_type_print_varspec_suffix): Add a space to vector suffix.
1183
144db827
PA
11842012-10-26 Pedro Alves <palves@redhat.com>
1185
1186 * amd64-tdep.c (amd64_relocate_instruction): Use
1187 store_unsigned_integer instead of memcpy.
1188 * i386-tdep.c (i386_relocate_instruction): Ditto.
1189
940c3c06
PA
11902012-10-26 Pedro Alves <palves@redhat.com>
1191
1192 * infrun.c (handle_inferior_event): Merge handling of
1193 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1194 switch case.
1195
47b19065
PA
11962012-10-26 Pedro Alves <palves@redhat.com>
1197
1198 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1199 Remove comment.
1200
87d2d2a4
PA
12012012-10-26 Pedro Alves <palves@redhat.com>
1202
1203 * target.c (target_waitstatus_to_string): Handle
1204 TARGET_WAITKIND_VFORK_DONE.
1205
fed708ed
PA
12062012-10-26 Pedro Alves <palves@redhat.com>
1207
1208 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1209 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1210
2590b645
JB
12112012-10-24 Tristan Gingold <gingold@adacore.com>
1212
1213 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1214 Add comments.
1215
bed0c243
JB
12162012-10-24 Joel Brobecker <brobecker@adacore.com>
1217
1218 * ravenscar-thread.c (ravenscar_wait): Only update the list
1219 of threads and inferior_ptid if the inferior is still alive.
1220
f69c91ad
JB
12212012-10-24 Joel Brobecker <brobecker@adacore.com>
1222
1223 * ada-lang.c (is_known_support_routine): Use lbasename when
1224 matching the symtab's filename against
1225 known_runtime_file_name_patterns.
1226
d99dcf51
JB
12272012-10-24 Joel Brobecker <brobecker@adacore.com>
1228
1229 * ada-lang.c (ada_same_array_size_p): New function.
1230 (ada_promote_array_of_integrals): New function.
1231 (coerce_for_assign): Add handling of arrays where the elements
1232 are integrals of a smaller size than the size of the target
1233 array element type.
1234
32560274
JB
12352012-10-24 Joel Brobecker <brobecker@adacore.com>
1236
1237 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1238 against maximum exponent value.
1239
5a04cc98
JB
12402012-10-24 Joel Brobecker <brobecker@adacore.com>
1241
1242 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1243 "unwind-seh.c".
1244
5ded5331
JB
12452012-10-24 Joel Brobecker <brobecker@adacore.com>
1246
1247 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1248 strip typedef layer when computing the fixed type's field type,
1249 only when computing its size.
1250
2445fd7b
MK
12512012-10-24 Mark Kettenis <kettenis@gnu.org>
1252
1253 PR gdb/12783
1254 * i386-tdep.c (i386_return_value): Handle complex double and long
1255 double.
1256
8f205f9c
JB
12572012-10-24 Joel Brobecker <brobecker@adacore.com>
1258
1259 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1260 New local variable args_len.
1261 Quote the name of the executable when computing the command line.
1262
7f7930dd
MK
12632012-10-23 Mark Kettenis <kettenis@gnu.org>
1264
1265 PR gdb/12796
1266 PR gdb/12798
1267 PR gdb/12800
1268 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1269 AMD64_FTAG_REGNUM.
1270 * amd64-tdep.c (amd64_classify): Classify complex types.
1271 (amd64_return_value): Handle the COMPLEX_X87 class.
1272
38a69d0a
JB
12732012-10-23 Joel Brobecker <brobecker@adacore.com>
1274
1275 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1276 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1277
83ab93c6
JB
12782012-10-23 Joel Brobecker <brobecker@adacore.com>
1279
1280 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1281 function.
1282 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1283 to amd64_windows_auto_wide_charset.
1284
f6fbab7d
YQ
12852012-10-23 Yao Qi <yao@codesourcery.com>
1286
1287 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1288 * event-top.h: Remove its declaration.
1289 (async_request_quit): Call mark_async_signal_handler instead of
1290 mark_async_signal_handler_wrapper.
1291 (async_do_nothing, async_disconnect): Likewise.
1292 (async_stop_sig): Likewise.
1293 * remote.c (handle_remote_sigint): Likewise.
1294 (handle_remote_sigint_twice): Likewise.
1295
05fa9251
YQ
12962012-10-23 Yao Qi <yao@codesourcery.com>
1297
1298 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1299 with 'static struct async_signal_handler *'.
1300 (sighup_token, sigquit_token, sigstp_token): Likewise.
1301
08af7a40
AA
13022012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1303
1304 * gdbarch.sh (function_list): Use 'pstring' when printing
1305 a variable which could return NULL.
1306 * gdbarch.c: Regenerate.
1307
beb4b03c
JB
13082012-10-10 Joel Brobecker <brobecker@adacore.com>
1309 Tom Tromey <tromey@redhat.com>
1310
1311 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1312 inneffective if condition by gdb assertion. Add function
1313 description comment.
1314
a5b12627
JB
13152012-10-19 Joel Brobecker <brobecker@adacore.com>
1316
1317 * parser-defs.h (struct exp_descriptor): Document constraint
1318 on return value for "op_name" callbacks.
1319
0b0865da
TT
13202012-10-18 Tom Tromey <tromey@redhat.com>
1321
1322 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1323 * symtab.c (iterate_over_some_symtabs): Constify.
1324 * source.h (symtab_to_fullname): Return 'const char *'.
1325 * source.c (symtab_to_fullname): Return 'const char *'.
1326 * python/py-symtab.c (stpy_fullname): Constify.
1327 * cli/cli-cmds.c (edit_command): Constify.
1328 * breakpoint.c (print_breakpoint_location)
1329 (update_static_tracepoint): Constify.
1330
94b0e70d
TT
13312012-10-18 Tom Tromey <tromey@redhat.com>
1332
1333 * breakpoint.c (compare_breakpoints): Fix comparison.
1334
fff10684
TT
13352012-10-18 Tom Tromey <tromey@redhat.com>
1336
1337 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1338 gdb_wchar_t to convert_between_encodings.
1339
8de0566d
YQ
13402012-10-17 Yao Qi <yao@codesourcery.com>
1341
1342 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1343 more parameter 'inferior'.
1344 * corefile.c (write_memory_with_notification): Caller update.
1345
1346 * mi/mi-cmd-var.c: Include "mi-main.h".
1347 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1348 to 1 and restore it later.
1349 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1350 and "data-write-memory-bytes.
1351 * mi/mi-interp.c: Include objfiles.h.
1352 (mi_interpreter_init): Call observer_attach_memory_changed.
1353 (mi_memory_changed): New.
1354 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1355 New field.
1356
1357 * NEWS: Mention new MI notification "memory-changed".
1358
6235cdd1
JK
13592012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1360
1361 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1362
07540c15
DE
13632012-10-15 Doug Evans <dje@google.com>
1364
1365 New option -nh: inhibit loading of ~/.gdbinit.
1366 * NEWS: Mention -nh.
1367 * main.c (captured_main): Recognize and process -nh.
1368 (print_gdb_help): Mention -nh.
1369 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1370
eab09350
L
13712012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1372
1373 PR backtrace/14646
1374 PR gdb/14647
1375 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1376 pc_regnum_from_eax.
1377 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1378 nor pc_regnum_from_eax.
1379 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1380 nor pc_regnum_from_eax.
1381
9e3a7d65
JK
13822012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1383
1384 Fix entry values resolving in inlined frames.
1385 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1386 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1387 entries of FRAME.
1388
c83393b9
JB
13892012-10-15 Joel Brobecker <brobecker@adacore.com>
1390
1391 * configure.ac: Build with -DMS_WIN64 if building with Python
1392 enabled using GCC on amd64-windows.
1393 * configure: Regenerate.
1394
801e4185
TT
13952012-10-15 Tom Tromey <tromey@redhat.com>
1396
1397 PR python/14635:
1398 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1399 to Py_None.
1400
74f910c8
TT
14012012-10-15 Tom Tromey <tromey@redhat.com>
1402
1403 PR python/14634:
1404 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1405
2a7c8fd5
AB
14062012-10-11 Andrew Burgess <aburgess@broadcom.com>
1407
1408 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1409 reset thread numbering back to 1.
1410
7c09e5a0
DE
14112012-10-11 Doug Evans <dje@google.com>
1412
1413 PR breakpoints/14643.
1414 * linespec.c (struct ls_parser): New member keyword_ok.
1415 (linespec_lexer_lex_string): Add comment.
1416 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1417 for one.
1418 (parse_linespec): Set keyword_ok.
1419
a1855c1d
DE
14202012-10-10 Doug Evans <dje@google.com>
1421
844226d6
DE
1422 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1423 "0x" prefix on address in log message.
1424
a1855c1d
DE
1425 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1426 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1427 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1428 (lookup_dwo_file): Add const to dwo_name parameter.
1429 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1430
2e24f4aa
JK
14312012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 Fix crash during stepping on ppc32.
1434 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1435 SYM.
1436
aa14df25
DE
14372012-10-03 Doug Evans <dje@google.com>
1438
1439 PR symtab/14601
1440 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1441
3d468296
AB
14422012-10-02 Andrew Burgess <aburgess@broadcom.com>
1443
1444 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1445 output and use uint32_t not long to ensure 4 byte size.
1446
8f0ee2eb
JB
14472012-10-02 Joel Brobecker <brobecker@adacore.com>
1448
1449 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1450 unref'ed it.
1451
b3dc46ff
AB
14522012-10-01 Andrew Burgess <aburgess@broadcom.com>
1453
1454 * target.c (simple_search_memory): Include access length in
1455 warning message.
1456
f712f01f
EBM
14572012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1458 Edjunior Machado <emachado@linux.vnet.ibm.com>
1459
1460 PR gdb/13989
1461 * solib.c (solib_find): Prevent GDB from loading native libraries when
1462 debugging a cross-target corefile.
1463
39181896
PA
14642012-09-28 selven <pcthegreat@gmail.com>
1465
1466 Make definition match declaration.
1467
1468 * regcache.c (regcache_register_status): Change return type to
1469 enum register_status.
1470
4c2786ba
YQ
14712012-09-28 Yao Qi <yao@codesourcery.com>
1472
1473 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1474 write_memory_with_notification instead of write_memory.
1475 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1476 instead of target_write_memory.
1477
1ae0c35e
YQ
14782012-09-28 Yao Qi <yao@codesourcery.com>
1479
1480 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1481 when the length of content is not an even number.
1482
7977e5d2
TT
14832012-09-27 Tom Tromey <tromey@redhat.com>
1484
1485 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1486 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1487
807160da
JB
14882012-09-27 Joel Brobecker <brobecker@adacore.com>
1489
1490 * sol-thread.c (sol_thread_fetch_registers)
1491 (sol_thread_store_registers): Delete commented out code.
1492
43c75337
JB
14932012-09-27 Joel Brobecker <brobecker@adacore.com>
1494
1495 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1496 Move these functions to sparc-sol-thread.c.
1497 * sparc-sol-thread.c: New file.
1498 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1499 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1500 configurations.
1501 * configure: Regenerate.
1502
d292a972
JB
15032012-09-27 Joel Brobecker <brobecker@adacore.com>
1504
1505 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1506 Remove commented-out code.
1507
8c3da003
JB
15082012-09-27 Joel Brobecker <brobecker@adacore.com>
1509
1510 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1511 Enable this code for sparc hosts only.
1512
f00482b6
JB
15132012-09-27 Joel Brobecker <brobecker@adacore.com>
1514
1515 * procfs.h (procfs_find_LDT_entry): Add declaration.
1516 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1517 function procfs_find_LDT_entry.
1518
337c776f
JB
15192012-09-27 Joel Brobecker <brobecker@adacore.com>
1520
1521 * procfs.c (proc_get_LDT_entry): Make static.
1522
1a04d88f
JB
15232012-09-27 Joel Brobecker <brobecker@adacore.com>
1524
1525 * procfs.c (proc_find_memory_regions): Fix declaration.
1526
bad43aa5
SP
15272012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1528
1529 * amd64-tdep.c (amd64_return_value): Revert previous change
1530 that used TYPE_LENGTH directly.
1531 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1532 (bfin_store_return_value): Likewise.
1533 * cris-tdep.c (cris_store_return_value): Likewise.
1534 (cris_extract_return_value): Likewise.
1535 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1536 * hppa-tdep.c (hppa64_return_value): Likewise.
1537 * lm32-tdep.c (lm32_store_return_value): Likewise.
1538 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1539 * spu-tdep.c (spu_value_from_register): Likewise.
1540 * vax-tdep.c (vax_return_value): Likewise.
1541
63375b74
SP
15422012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1543
1544 * gdbtypes.c (lookup_array_range_type): Expand parameters
1545 LOW_BOUND and HIGH_BOUND to LONGEST.
1546 (lookup_string_range_type): Likewise.
1547 * gdbtypes.h (lookup_array_range_type): Likewise.
1548 (lookup_string_range_type): Likewise.
1549 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1550 Expand HIGHBOUND to ssize_t.
1551 (value_string): Likewise.
1552 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1553 (value_string): Likewise.
1554
19ca11c5
YQ
15552012-09-27 Yao Qi <yao@codesourcery.com>
1556
1557 PR breakpoints/13898
1558 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1559 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1560 per breakpoint type.
1561
92107356
PM
15622012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1563
1564 * procfs.c: Add gdb_bfd header.
1565 * rs6000-nat.c: Likewise.
1566 * solib-pa64.c: Likewise.
1567 * spu-linux-nat.c: Likewise.
1568 * windows-nat.c: Likewise.
1569
9742094a
TT
15702012-09-26 Tom Tromey <tromey@redhat.com>
1571
1572 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1573
0971de02
TT
15742012-09-26 Tom Tromey <tromey@redhat.com>
1575
1576 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1577 (read_common_block): Handle child DIEs with
1578 DW_AT_data_member_location.
1579 (new_symbol_full): Add special case for common blocks.
1580
4357ac6c
TT
15812012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1582 Tom Tromey <tromey@redhat.com>
1583
1584 * dwarf2read.c (read_common_block): Rewrite.
1585 (new_symbol_full): Handle DW_TAG_common_block.
1586 * f-lang.c (head_common_list, find_common_for_function):
1587 Remove.
1588 * f-lang.h (struct common_entry, struct saved_f77_common,
1589 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1590 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1591 BLANK_COMMON_NAME_LOCAL): Remove.
1592 (struct common_block): New.
1593 * f-valprint.c (list_all_visible_commons): Remove.
1594 (info_common_command_for_block): New function.
1595 (info_common_command): Use it.
1596 * stack.c (iterate_over_block_locals): Special case for
1597 COMMON_BLOCK_DOMAIN.
1598 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1599 constant.
1600 (struct general_symbol_info) <value.common_block>: New field.
1601 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1602
965f07a8
TT
16032012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1604 Tom Tromey <tromey@redhat.com>
1605
1606 * f-lang.c (allocate_saved_bf_node,
1607 allocate_saved_function_node, allocate_saved_f77_common_node,
1608 allocate_common_entry_node, tail_common_list, current_common,
1609 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1610 tmp_bf_ptr, add_common_block, add_common_entry,
1611 find_first_common_named, patch_common_entries,
1612 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1613 global_remote_debug, get_bf_for_fcn, saved_function_list,
1614 saved_function_list_end, clear_function_list, struct saved_fcn,
1615 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1616 SAVED_BF, SAVED_BF_PTR): Remove.
1617 * f-lang.h (tail_common_list, current_common,
1618 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1619 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1620 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1621 real_main_c_value): Remove.
1622 * f-valprint.c (there_is_a_visible_common_named): Remove.
1623
6f380991
AB
16242012-09-26 Andrew Burgess <aburgess@broadcom.com>
1625
1626 * breakpoint.c (update_global_location_list): Ignore previous
1627 duplicate status of a breakpoint when starting a new scan for
1628 duplicate breakpoints.
1629
9ead7ae4 16302012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1631 PR breakpoints/14419
2536b51c
YQ
1632 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1633 support LLVM compiler.
9ead7ae4 1634
8f8a23a2
SP
16352012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1636
1637 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1638 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1639 (bfin_store_return_value): Likewise.
1640 * cris-tdep.c (cris_store_return_value): Likewise.
1641 (cris_extract_return_value): Likewise.
1642 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1643 * hppa-tdep.c (hppa64_return_value): Likewise.
1644 * lm32-tdep.c (lm32_store_return_value): Likewise.
1645 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1646 * spu-tdep.c (spu_value_from_register): Likewise.
1647 * vax-tdep.c (vax_return_value): Likewise.
1648
d7019589
SP
16492012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1650
1651 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1652 parameter LEN to ssize_t.
1653
744a8059
SP
16542012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1655
1656 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1657 variable LEN.
1658 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1659 directly.
1660 (alpha_store_return_value): Likewise.
1661 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1662 (amd64_push_arguments): Likewise.
1663 * ax-gdb.c (gen_trace_static_fields): Likewise.
1664 (gen_traced_pop): Likewise.
1665 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1666 * breakpoint.c (update_watchpoint): Likewise.
1667 * findcmd.c (parse_find_args): Use local variable for type
1668 instead of length.
1669 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1670 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1671 (h8300_store_return_value): Likewise.
1672 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1673 Use i386_darwin_arg_type_alignment directly.
1674 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1675 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1676 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1677 (m68hc11_extract_return_value): Likewise.
1678 * mep-tdep.c (mep_push_dummy_call): Likewise.
1679 * printcmd.c (float_type_from_length): Likewise.
1680 * s390-tdep.c (s390_value_from_register): Likewise.
1681 * stack.c (read_frame_arg): Likewise.
1682 * tracepoint.c (encode_actions_1): Likewise.
1683 * valops.c (value_fetch_lazy): Use local variable for type
1684 instead of length. Use TYPE_LENGTH directly.
1685 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1686
a4b411d6
JB
16872012-09-25 Joel Brobecker <brobecker@adacore.com>
1688
1689 * symtab.c (skip_prologue_sal): Fix typo in comment.
1690
11dba07a
JB
16912012-09-25 Joel Brobecker <brobecker@adacore.com>
1692
1693 * linespec.c (create_sals_line_offset): Fix typo in comment.
1694
318102b9
SP
16952012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1696
1697 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1698 use plongest to print the array size.
1699
b4aa388a
SP
17002012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1701
1702 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1703 * p-valprint.c (pascal_type_print_base): Likewise.
1704
84cebc4a
YQ
17052012-09-22 Yao Qi <yao@codesourcery.com>
1706
1707 * remote.c (remote_get_trace_status): Remove setting default
1708 values of fields of 'ts'.
1709
04e7407c
JK
17102012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 Fix internal error on canonicalization of clang types.
1713 * cp-name-parser.y (operator): New comment at make_operator call for
1714 new, delete, new[] and delete[].
1715 (exp): Use "sizeof ". Add new comment at make_operator call.
1716
9bf4bce9
JK
17172012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Fix disassemble without parameters in tailcall frame.
1720 * cli/cli-cmds.c (disassemble_current_function): Use
1721 get_frame_address_in_block.
1722
1c5b7826
TT
17232012-09-21 Tom Tromey <tromey@redhat.com>
1724
1725 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1726 TYPE_CODE_UNION>: Unify, removing a goto.
1727
62a49610
TT
17282012-09-21 Tom Tromey <tromey@redhat.com>
1729
1730 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1731
2603f7ee
AB
17322012-09-21 Andrew Burgess <aburgess@broadcom.com>
1733
1734 * findvar.c (read_frame_register_value): Mark the result value as
1735 optimized out if any of the input registers have been optimized out.
1736
810849a3
AS
17372012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1738
1739 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1740
0953dec1
SP
17412012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1742
1743 * eval.c (evaluate_subexp_standard): Eliminate single-use
1744 variable LOWER.
1745
82a90ccf
YQ
17462012-09-21 Yao Qi <yao@codesourcery.com>
1747
1748 * mi/mi-interp.c: Declare mi_record_changed.
1749 (mi_interpreter_init): Call observer_attach_record_changed.
1750 (mi_record_changed): New.
1751 * record.c (record_open): Call observer_notify_record_changed.
1752 (cmd_record_stop): Call observer_notify_record_changed.
1753 * NEWS: Mention it.
1754
d7de8e3c
TT
17552012-09-20 Tom Tromey <tromey@redhat.com>
1756
1757 * NEWS: Update.
1758 * python/python.c (finalize_python): New function.
1759 (_initialize_python): Make a final cleanup.
1760
43c7c83d
DE
17612012-09-19 Doug Evans <dje@google.com>
1762
1763 * buildsym.h (param_symbols): Delete, unused.
1764 (context_stack): Delete member "params", unused.
1765 * buildsym.c (push_context): Update.
1766 * dwarf2read.c (read_func_scope): Update.
1767
aa9259cc
TS
17682012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1769
a6521d9a
TS
1770 * sh-tdep.c (sh_register_convert_to_virtual)
1771 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1772 all callers. Just do a memcpy if not the little-endian case.
1773
f92589cb
TS
1774 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1775 set_gdbarch_double_format and set_gdbarch_long_double_format.
1776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1777 set_gdbarch_double_format.
1778 * sh-tdep.c (sh_gdbarch_init): Likewise.
1779
aa9259cc
TS
1780 * NEWS: Document the removal of SH's 'regs' command.
1781 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1782 command.
1783
c1d780c2
SDJ
17842012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1785
1786 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1787 `jump'.
1788
4ae24af0
JB
17892012-09-18 Joel Brobecker <brobecker@adacore.com>
1790
1791 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1792 language when iterating over symbols.
1793
bb25a15c
YQ
17942012-09-18 Yao Qi <yao@codesourcery.com>
1795
1796 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1797 (mi_interpreter_init): Call observer_attach_tsv_created and
1798 observer_attach_tsv_deleted.
1799 (mi_tsv_created, mi_tsv_deleted): New.
1800 * tracepoint.c (delete_trace_state_variable): Call
1801 observer_notify_tsv_deleted.
1802 (trace_variable_command): Call observer_notify_tsv_created.
1803 (delete_trace_variable_command): Call
1804 observer_notify_tsv_deleted.
1805 (create_tsv_from_upload): Call observer_notify_tsv_created.
1806 * NEWS: Mention it.
1807
201b4506
YQ
18082012-09-18 Yao Qi <yao@codesourcery.com>
1809
1810 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1811 if traceframe changed.
1812 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1813 "trace-find".
1814 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1815 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1816 'traceframe_changed'.
1817 (mi_traceframe_changed): New.
1818 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1819 New field.
1820 * NEWS: Mention the new MI notification.
1821
eaeb12db
MW
18222012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1823
1824 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1825
6e3c039e
JK
18262012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1827
1828 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1829 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1830 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1831 Extend code also for PaX support. Convert all gdb_assert to warning
1832 calls.
1833
9a950c7c
JK
18342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1835
1836 Implement auto-load user conveniences suggested by Doug Evans.
1837 * auto-load.c: Include top.h.
1838 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1839 (_initialize_auto_load): New variable scripts_directory_help. Mention
1840 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1841 scripts-directory. Document in online help one can use also files for
1842 set auto-load safe-path.
1843 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1844 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1845
deec9a9d
SP
18462012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1847
1848 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1849 of LEN.
1850
354ecfd5
SP
18512012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1852
1853 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1854 ELTLEN and use TYPE_LENGTH directly.
1855 (m2_val_print): Likewise.
1856 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1857 variable LEN and use TYPE_LENGTH directly.
1858 (m68k_svr4_store_return_value): Likewise.
1859 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1860 ARGLEN and use TYPE_LENGTH directly.
1861 (mips_o64_push_dummy_call): Likewise.
1862 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1863 variable LENGTH and use TYPE_LENGTH directly.
1864 (s390_function_arg_float): Likewise.
1865 (s390_function_arg_integer): Likewise.
1866 (s390_push_dummy_call): Likewise.
1867 (s390_return_value_convention): Likewise.
1868 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1869 TYPE_LENGTH directly.
1870
6fc1c773
YQ
18712012-09-17 Yao Qi <yao@codesourcery.com>
1872
1873 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1874 Update comment to add_setshow_integer_cmd.
1875 * cli/cli-setshow.c (do_set_command): Handle case
1876 'var_zuinteger_unlimited'.
1877 (do_show_command): Likewise.
1878 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1879 for command 'remotetimeout'.
1880 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1881 to var_integer.
1882 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1883 for command 'set listsize'.
1884
6acef6cd
SP
18852012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1886
1887 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1888 variable LEN.
1889
1ab3b62c
JK
18902012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1891
1892 PR 14119
1893 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1894 (frame_pop): Drop also TAILCALL_FRAME frames.
1895 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1896
acf9414f
JK
18972012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 Pedro Alves <palves@redhat.com>
1899
1900 PR 14548
1901 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1902 function start if we are already at function start. Both for
1903 reverse-next and for reverse-step into function without line number
1904 info.
1905
193facb3
JK
19062012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1907
1908 Code cleanup - rename 'inline' depth to 'artificial' depth.
1909 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1910 frame_id_artificial_p, extend the comment.
1911 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1912 * frame.c (fprint_frame_id): Rename at a user, change debug output
1913 text to "artificial=".
1914 (skip_inlined_frames): Rename to ...
1915 (skip_artificial_frames): ... here. Extend the comment.
1916 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1917 (frame_id_inlined_p): Rename to ...
1918 (frame_id_artificial_p): ... here. Rename at a user.
1919 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1920 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1921 at a user.
1922 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1923 Extend the comment.
1924 (frame_id_inlined_p): Rename to ...
1925 (frame_id_artificial_p): ... here.
1926 * inline-frame.c (inline_frame_this_id): Rename at a user.
1927
42056501
AB
19282012-09-14 Andrew Burgess <aburgess@broadcom.com>
1929
1930 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1931 vector variables using vector_size syntax rather than array
1932 syntax.
1933
84c47588
SP
19342012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1935
1936 * valarith.c (value_concat): Replace unsafe ALLOCA with
1937 XMALLOC/XFREE.
1938
f4045bcb
PA
19392012-09-14 Pedro Alves <palves@redhat.com>
1940
1941 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1942
63b46266
YPK
19432012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1944
1945 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1946 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1947 data-directory as appropriate.
1948
ddd7a8e7
SP
19492012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1950
1951 * printcmd.c (ui_printf): Eliminate single-use variable
1952 PARAM_LEN.
1953
d649a38e
YQ
19542012-09-14 Yao Qi <yao@codesourcery.com>
1955 Pedro Alves <palves@redhat.com>
1956
1957 * valops.c (value_assign): Move observer_notify_target_changed
1958 below to replace reinit_frame_cache.
1959
b9516fa1
YPK
19602012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1961
1962 Refactor Python "gdb" module into a proper Python package, by
1963 introducing a new "_gdb" module for code implemented in C, and
1964 using reload/__import__ instead of exec.
1965 * python/lib/gdb/__init__.py: Import * from _gdb.
1966 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1967 prompt_hook, sys.argv): Moved from finish_python_initialization.
1968 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1969 (packages, auto_load_packages): New list and function replacing
1970 module_dict and auto-loading code, using __file__ instead of
1971 gdb.PYTHONDIR and reload/__import__ instead of exec.
1972 (GdbSetPythonDirectory): Replacing function of the same name
1973 from finish_python_initialization, using reload/__import__ instead
1974 of exec, as well as call auto_load_packages.
1975 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1976 gdb_python_module and not gdb_module.
1977 * python/python-internal.h (gdb_python_module): Declare.
1978 * python/python.c (gdb_python_module): New global.
1979 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1980 (_initialize_python): Rename gdb module to _gdb.
1981 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1982 (finish_python_initialization): Move Python code to
1983 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1984 __main__.
1985
aa0fbdd8
PA
19862012-09-13 Pedro Alves <palves@redhat.com>
1987
1988 * Makefile.in (COMMON_OBS): Add registry.o.
1989 * registry.c: New file.
1990 * registry.h (struct registry_container): Declare.
1991 (registry_data_callback): New typedef.
1992 (struct registry_data, struct registry_data_registration, struct
1993 registry_data_registry): New type.
1994 (register_data_with_cleanup, registry_alloc_data)
1995 (registry_callback_adaptor, registry_clear_data)
1996 (registry_container_free_data, registry_set_data, registry_data):
1997 Declare.
1998 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1999 the new common structures and functions.
2000 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2001 callback typedefs.
2002
42b5c53d
MW
20032012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2004
2005 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2006 there is an error inserting hardware breakpoints and use the
2007 error message from the target.
2008
2009 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2010 Catch this exception and print the error message contained within. Do not
2011 print the default hardware error breakpoint message in this case.
2012
a1b64ce1
DE
20132012-09-12 Doug Evans <dje@google.com>
2014
2015 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2016 cu == NULL.
2017
83a788b8
DE
20182012-09-11 Doug Evans <dje@google.com>
2019
2020 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2021 .gdb_index symbol attributes if there are none.
2022
d9eaeb59
JB
20232012-09-11 Joel Brobecker <brobecker@adacore.com>
2024
2025 * symtab.h (struct minimal_symbol) [has_size]: New field.
2026 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2027 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2028 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2029 minimal symbols if the symbol's size is actually known.
2030 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2031 of msymbol's size field. Add comment.
2032 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2033 SET_MSYMBOL_SIZE to set the minimal symbol size.
2034
a83e9154
JB
20352012-09-11 Joel Brobecker <brobecker@adacore.com>
2036
2037 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2038 minimal_symbol struct object, rather than setting some of its
2039 fields one by one.
2040
350b1b26
AB
20412012-09-11 Andrew Burgess <aburgess@broadcom.com>
2042
2043 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2044 passed_a_ptr flag when displaying typedef types.
2045
2fa15f23
JB
20462012-09-10 Joel Brobecker <brobecker@adacore.com>
2047
2048 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2049 the optimized_out flag is preserved.
2050
5152ff90
AG
20512012-09-10 Anthony Green <green@moxielogic.com>
2052
2053 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2054 prologue changes in GCC.
2055
5b4f6e25
KS
20562012-09-10 Keith Seitz <keiths@redhat.com>
2057
2058 PR gdb/13483
2059 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2060 (BOOL_CONVERSION_BADNESS): ... this.
2061 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2062 (rank_one_type): Allow all boolean conversions
2063 permitted by the standard.
2064
f1070426
TT
20652012-09-06 Tom Tromey <tromey@redhat.com>
2066
2067 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2068 Don't decref py_objfile.
2069
a8db4212
YPK
20702012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2071
2072 Do not enable -lmcheck by default when Python is enabled with
2073 threading support.
2074 * configure.ac: (python_has_threads) New variable, by testing
2075 if WITH_THREAD is defined in Python.h.
2076 Move --enable-lmcheck after --with-python.
2077 Do not enable -lmcheck by default if python_has_threads=yes.
2078 Warn if --enable-lmcheck and python_has_threads=yes.
2079 * configure: Regenerate.
2080
648beb2b
YQ
20812012-08-31 Yao Qi <yao@codesourcery.com>
2082
2083 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2084 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2085 Update some commands.
2086 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2087 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2088 to 1.
2089
ef07a9f7
YQ
20902012-08-31 Yao Qi <yao@codesourcery.com>
2091
2092 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2093
fda395cf
YPK
20942012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2095
2096 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2097
8efd8e78
DE
20982012-08-29 Doug Evans <dje@google.com>
2099
2100 * main.c (print_gdb_help): Remove reference to
2101 --use-deprecated-index-sections.
2102
883b9c6c
YQ
21032012-08-28 Yao Qi <yao@codesourcery.com>
2104
2105 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2106 (init_cmds): Call add_setshow_uinteger_cmd for command
2107 'max-user-call-depth'.
2108 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2109 declaration of 'max_user_call_depth'.
2110 * frame.c (backtrace_limit): Add 'unsigned'.
2111 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2112 'limit'.
2113 * remote.c (remoteaddresssize): Add 'unsigned'.
2114 (remote_address_masked): Change local var 'address_size' to
2115 'unsigned'.
2116 (_initialize_remote): Call add_setshow_uinteger_cmd for
2117 'remoteaddresssize'.
2118 * top.c (history_size): Add 'unsigned'.
2119 (show_commands): Change local variables to 'unsigned'.
2120 (set_history_size_command): Don't check history_size is negative.
2121 Adjust the condition to call unstifle_history and set history_size
2122 to UNIT_MAX.
2123
1292279a
PA
21242012-08-28 Pedro Alves <palves@redhat.com>
2125
2126 PR gdb/14428
2127
2128 * infcmd.c (default_print_one_register_info): New, factored out
2129 from default_print_registers_info.
2130 (default_print_registers_info): Use it. Mark value unavailable if
2131 necessary.
2132 (registers_info): Print user registers with
2133 default_print_one_register_info.
2134
f629cd75
L
21352010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2136
2137 PR tui/14486
2138 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2139 is not NULL before referencing it.
2140
1c8cdcb1
JK
21412012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2142
2143 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2144 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2145 original PC for it.
2146
e9687799
JK
21472012-08-27 Eli Zaretskii <eliz@gnu.org>
2148 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 * auto-load.c (auto_load_objfile_script): Rename to ...
2151 (auto_load_objfile_script_1): ... here, change variable realname to
2152 parameter realname, document it, add return value, add variable retval.
2153 (auto_load_objfile_script): New function.
2154
7afa1642
JK
21552012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2158 followed by a whitespace.
2159
dc7650b8
JK
21602012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
28e66c70 2162 PR gdb/14494.
dc7650b8
JK
2163 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2164 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2165 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2166 here.
2167
1591a1e8
PA
21682012-08-27 Wei-cheng Wang <cole945@gmail.com>
2169
2170 * memattr.c (create_mem_region): Fix memory region overlapping
2171 checking.
2172
ecfb0d68
SP
21732012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2174
2175 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2176 with xmalloc/cleanup.
2177 * mt-tdep.c (mt_push_dummy_call): Likewise.
2178 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2179 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2180
8c56c1b9
YQ
21812012-08-24 Yao Qi <yao@codesourcery.com>
2182
2183 * jv-exp.y (push_expression_name): Add "." at the end of error
2184 message.
2185
e3480f4a
YPK
21862012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2187
2188 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2189 * python/python.c (_initialize_python): Update documentation.
2190
dfbd5e7b
PA
21912012-08-23 Pedro Alves <palves@redhat.com>
2192
2193 * infrun.c (_initialize_infrun) <handle command help text>:
2194 Mention that multiple signals are supported.
2195
2edda2ff
PA
21962012-08-23 Pedro Alves <palves@redhat.com>
2197
2198 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2199 string.
2200
8d735b87
YQ
22012012-08-23 Yao Qi <yao@codesourcery.com>
2202
2203 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2204 (tfind_1): Don't call registers_changed, set_traceframe_num,
2205 and clear_traceframe_info.
2206 Call set_current_traceframe.
2207 (set_current_traceframe): call set_traceframe_num.
2208
c5d9b215
SDJ
22092012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2210
2211 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2212 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2213
037bbc8e
YPK
22142012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2215
2216 Enable readline in Python in a GDB-specific way and block the
2217 standard Python readline module to prevent conflicts with GDB.
2218 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2219 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2220 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2221 * python/py-gdb-readline.c: New file.
2222 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2223 prototype.
2224 * python/python.c (_initialize_python): Call
2225 gdbpy_initialize_gdb_readline.
2226
406b1477
KS
22272012-08-22 Keith Seitz <keiths@redhat.com>
2228
2229 * defs.h: Include build-gnulib/config.h
2230
6ca1b147
JM
22312012-08-22 Joseph Myers <joseph@codesourcery.com>
2232
2233 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2234 and blx pc.
2235
8315665e
YPK
22362012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2237
2238 Add a new "python-interactive" command that starts a standard
2239 Python interactive prompt with "pi" as alias, and add "py" as
2240 an alias to "python".
2241 * NEWS: Mention the new commands.
8315665e
YPK
2242 * python/python.c (eval_python_command): New function.
2243 (python_interactive_command): For "python-interactive" with
2244 arguments, call eval_python_command. For "python-interactive"
2245 without arguments, call PyRun_InteractiveLoop.
2246 (_initialize_python): Add "python-interactive" command with
2247 "pi" as alias, and add "py" as an alias to "python".
2248
522002f9
TT
22492012-08-22 Tom Tromey <tromey@redhat.com>
2250
2251 * defs.h (quit_flag): Don't declare.
2252 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2253 (QUIT): Use new functions.
2254 * event-top.c (command_handler): Use clear_quit_flag.
2255 (handle_sigint): Use set_quit_flag.
2256 (async_request_quit): Use check_quit_flag. Don't check
2257 immediate_quit.
2258 * exceptions.c (throw_exception): Use clear_quit_flag.
2259 * main.c (captured_main): Use clear_quit_flag.
2260 * python/python.c (clear_quit_flag, set_quit_flag)
2261 (check_quit_flag): New functions.
2262 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2263 clear_quit_flag.
2264 * remote.c (remote_wait_as): Use check_quit_flag,
2265 clear_quit_flag.
2266 (remote_start_remote): Call QUIT.
2267 * symfile.c (load_progress): Use check_quit_flag.
2268 * top.c (command_loop): Use clear_quit_flag.
2269 (command_line_input): Call QUIT.
2270 * utils.c (quit_flag): Conditionally define.
2271 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2272 functions.
2273 (prompt_for_continue): Call QUIT. Use quit, not
2274 async_request_quit.
2275 * remote-mips.c (mips_expect_timeout): Call QUIT.
2276 * monitor.c (monitor_expect): Call QUIT.
2277
b583003e
TT
22782012-08-22 Tom Tromey <tromey@redhat.com>
2279
2280 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2281 (async_init_signals): Update.
2282 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2283 (SIGWINCH_HANDLER_BODY): Remove.
2284
e1507e95
TT
22852012-08-22 Tom Tromey <tromey@redhat.com>
2286
2287 * jit.c (jit_object_close_impl): Don't malloc the objfile
2288 name.
2289 * objfiles.c (allocate_objfile): Don't malloc the objfile
2290 name.
2291 (free_objfile): Don't free the objfile name.
2292 * objfiles.h (struct objfile) <name>: Update comment.
2293 * symfile.c (reread_symbols): Fix reference counting. Don't
2294 malloc objfile name.
2295
1c00ec6b
TT
22962012-08-22 Tom Tromey <tromey@redhat.com>
2297
2298 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2299 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2300 (symfile_bfd_open): Likewise.
2301 (generic_load): Likewise.
2302 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2303 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2304 gdb_bfd_open.
2305 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2306 Use gdb_bfd_open.
2307 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2308 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2309 (pmon_load_fast): Likewise.
2310 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2311 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2312 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2313 (macho_check_dsym): Likewise.
2314 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2315 (m32r_upload_command): Likewise.
2316 * gdb_bfd.h (gdb_bfd_cache): Declare.
2317 * gdb_bfd.c (struct gdb_bfd_data): New.
2318 (gdb_bfd_cache): New global.
2319 (struct gdb_bfd_cache_search): New.
2320 (hash_bfd): New function.
2321 (eq_bfd): Likewise.
2322 (gdb_bfd_open): Likewise.
2323 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2324 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2325 gdb_bfd_data.
2326 * exec.c (exec_file_attach): Use gdb_bfd_open.
2327 * dsrec.c (load_srec): Use gdb_bfd_open.
2328
6532ff36
TT
23292012-08-22 Tom Tromey <tromey@redhat.com>
2330
2331 * dwarf2read.c (macro_start_file): Update.
2332 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2333 (free_objfile_per_bfd_storage): Destroy macro_cache.
2334 (allocate_objfile, free_objfile): Update.
2335 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2336 New field.
2337 (struct objfile) <macro_cache>: Remove.
2338 * symfile.c (reread_symbols): Update.
2339 * symmisc.c (print_symbol_bcache_statistics): Update.
2340 (print_objfile_statistics): Update.
2341
706e3705
TT
23422012-08-22 Tom Tromey <tromey@redhat.com>
2343
2344 * elfread.c (elf_symtab_read): Update.
2345 * objfiles.c (objfiles_bfd_data): New global.
2346 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2347 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2348 (allocate_objfile, free_objfile): Update.
2349 (_initialize_objfiles): Initialize objfiles_bfd_data.
2350 * objfiles.h (struct objfile_per_bfd_storage): New.
2351 (struct objfile) <per_bfd>: New field.
2352 <filename_cache>: Remove.
2353 (set_objfile_per_bfd): Declare.
2354 * symfile.c (reread_symbols): Update. Call
2355 set_objfile_per_bfd.
2356 (allocate_symtab): Update.
2357 * symmisc.c (print_symbol_bcache_statistics): Update.
2358 (print_objfile_statistics): Print the size of the BFD obstack.
2359
e992eda4
TT
23602012-08-22 Tom Tromey <tromey@redhat.com>
2361
2362 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2363 * gdb_bfd.c: Use DEFINE_REGISTRY.
2364 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2365 (gdb_bfd_ref): Call bfd_alloc_data.
2366 (gdb_bfd_unref): Call bfd_free_data.
2367
6b81941e
TT
23682012-08-22 Tom Tromey <tromey@redhat.com>
2369
2370 * registry.h (struct registry_fields): New.
2371 (REGISTRY_FIELDS): Redefine.
2372 (REGISTRY_ACCESS_FIELD): New macro.
2373 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2374 functions.
2375
8e260fc0
TT
23762012-08-22 Tom Tromey <tromey@redhat.com>
2377
2378 * auto-load.c (_initialize_auto_load): Update.
2379 * solib-svr4.c (_initialize_svr4_solib): Update
2380 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2381 * solib-darwin.c (_initialize_darwin_solib): Update.
2382 * registry.h: New file.
2383 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2384 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2385 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2386 (register_program_space_data_with_cleanup)
2387 (register_program_space_data, program_space_alloc_data)
2388 (clear_program_space_data, set_program_space_data)
2389 (program_space_data): Don't declare.
2390 * progspace.c: Use DEFINE_REGISTRY.
2391 (struct program_space_data, struct
2392 program_space_data_registration, struct
2393 program_space_data_registry, program_space_data_registry)
2394 (register_program_space_data_with_cleanup)
2395 (register_program_space_data, program_space_alloc_data)
2396 (program_space_free_data, clear_program_space_data)
2397 (set_program_space_data, program_space_data): Remove.
2398 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2399 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2400 (register_objfile_data_with_cleanup, register_objfile_data)
2401 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2402 declare.
2403 * objfiles.c: Use DEFINE_REGISTRY.
2404 (struct objfile_data, struct objfile_data_registration, struct
2405 objfile_data_registry, objfile_data_registry)
2406 (register_objfile_data_with_cleanup, register_objfile_data)
2407 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2408 (set_objfile_data, objfile_data): Remove.
2409 (_initialize_objfiles): Update.
2410 * jit.c (_initialize_jit): Update.
2411 * inflow.c (_initialize_inflow): Update.
2412 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2413 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2414 (register_inferior_data_with_cleanup, register_inferior_data)
2415 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2416 declare.
2417 * inferior.c: Use DEFINE_REGISTRY.
2418 (struct inferior_data, struct inferior_data_registration, struct
2419 inferior_data_registry, inferior_data_registry)
2420 (register_inferior_data_with_cleanup, register_inferior_data)
2421 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2422 (set_inferior_data, inferior_data): Remove.
2423 * auxv.c (_initialize_auxv): Update.
2424 * ada-lang.c (_initialize_ada_language): Update.
2425 * breakpoint.c (_initialize_breakpoint): Update.
2426 * i386-nat.c (i386_use_watchpoints): Update.
2427
ed9eebaf
TT
24282012-08-22 Tom Tromey <tromey@redhat.com>
2429
2430 * exec.c (exec_close, exec_file_attach): Update.
2431 (add_to_section_table): Initialize 'key' field.
2432 (add_target_sections, remove_target_sections): Add 'key' argument.
2433 * exec.h (add_target_sections, remove_target_sections): Add
2434 'key' argument.
2435 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2436 (reload_shared_libraries_1): Update.
2437 * target.h (struct target_section) <key>: New field.
2438
2f2e97fa
TT
24392012-08-22 Tom Tromey <tromey@redhat.com>
2440
2441 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2442
b3dbbd6f
PM
24432012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2444
2445 * symfile.c (allocate_symtab): Use host_address_to_string
2446 function instead of cast of pointer to long which is not
2447 compatible with x86_64-w64-mingw32 build.
2448
f94363d7
AP
24492012-08-19 Andrew Pinski <apinski@cavium.com>
2450
2451 * mips-tdep.c (is_octeon): New function.
2452 (is_octeon_bbit_op): New function.
2453 (mips32_next_pc): Handle Octeon's bbit instructions.
2454 (mips32_instruction_has_delay_slot): Likewise.
2455
78a59c2f
AP
24562012-08-19 Andrew Pinski <apinski@cavium.com>
2457
2458 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2459 before the function.
2460
4f5bcb50
AP
24612012-08-19 Andrew Pinski <apinski@cavium.com>
2462
2463 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2464
e5afdbd7
KS
24652012-08-19 Keith Seitz <keiths@redhat.com>
2466
2467 PR c++/14365
2468 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2469 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2470
13c9750e
EZ
24712012-08-18 Eli Zaretskii <eliz@gnu.org>
2472
2473 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2474 The typo broke "make TAGS".
2475
db761810 24762012-08-17 Joel Brobecker <brobecker@adacore.com>
2477
2478 GDB 7.5 released.
2479
a451cb65
KS
24802012-08-17 Keith Seitz <keiths@redhat.com>
2481
2482 PR c++/13356
2483 * gdbtypes.c (strict_type_checking): New variable.
2484 (show_strict_type_checking): New function.
2485 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2486 if strict type checking is disabled.
2487 (_initialize_gdbtypes): Add "check type" subcommand.
2488 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2489
24902012-08-17 Keith Seitz <keiths@redhat.com>
2491
2492 * language.h (type_mode): Remove.
2493 (type_check): Remove.
2494 (struct language_defn): Remove la_type_check.
2495 (STRICT_TYPE): Remove unused macro.
2496 (type_error): Remove.
2497 * language.c (set_type_range_case): Renamed to ...
2498 (set_range_case): ... this. Update all callers.
2499 Remove type_mode/type_check.
2500 (type_mode): Remove.
2501 (type_check): Remove.
2502 (show_type_command): Remove.
2503 (set_type_command): Remove.
2504 (language_info): Remove type checking output.
2505 (type_error): Remove unused function.
2506 (range_error): Update comment.
2507 (unknown_language_defn): Remove la_type_check.
2508 (auto_language_defn): Likewise.
2509 (local_language_defn): Likewise.
2510 (_initialize_language): Remove "check type" subcommand.
2511 * ada-lang.c (ada_language_defn): Remove la_type_check.
2512 * c-lang.c (c_language_defn): Likewise.
2513 (cplus_language_defn): Likewise.
2514 (asm_language_defn): Likewise.
2515 (minimal_language_defn): Likewise.
2516 * d-lang.c (d_language_defn): Likewise.
2517 * f-lang.c (f_language_defn): Likewise.
2518 * go-lang.c (go_language_defn): Likewise.
2519 * jv-lang.c (java_language_defn): Likewise.
2520 * m2-lang.c (m2_language_defn): Likewise.
2521 * objc-lang.c (objc_language_defn): Likewise.
2522 * opencl-lang.c (opencl_language_defn): Likewise.
2523 * p-lang.c (pascal_language_defn): Likewise.
2524
dbf6a605
MF
25252012-08-16 Mike Frysinger <vapier@gentoo.org>
2526
2527 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2528
973e3cf7
JB
25292012-08-16 Joel Brobecker <brobecker@adacore.com>
2530
2531 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2532 New function.
2533 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2534 using the regache. Use ia64_hpux_get_register_from_save_state_t
2535 to access the bsp and bspstore registers if not.
2536
d80ee84f
JB
25372012-08-16 Joel Brobecker <brobecker@adacore.com>
2538
2539 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2540 * breakpoint.c (detach_breakpoints): Change pid parameter into
2541 a ptid. Adjust code accordingly.
2542 * infrun.c (handle_inferior_event): Delete variable child_pid.
2543 Update call to detach_breakpoints to pass the child ptid for
2544 fork events.
2545 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2546 assert that inferior_ptid's lwp is zero.
2547 (linux_handle_extended_wait): Update call to detach_breakpoints.
2548 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2549 detach_breakpoints.
2550
2dcc6086
JB
25512012-08-16 Joel Brobecker <brobecker@adacore.com>
2552
2553 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2554 parent, only call detach_breakpoints if tts.tts_event ==
2555 TTEVT_VFORK.
2556
0c92d8c1
JB
25572012-08-16 Joel Brobecker <brobecker@adacore.com>
2558
2559 * dwarf2-frame.c (dwarf2_frame_cache): Use
2560 get_frame_address_in_block instead of get_frame_pc as
2561 the bound for executing the frame's FDE.
2562
6b1755ce
YQ
25632012-08-16 Yao Qi <yao@codesourcery.com>
2564
2565 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2566 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2567 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2568 (c_type_print_varspec_suffix): Likewise.
2569 * eval.c (evaluate_subexp_standard): Likewise.
2570 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2571 (f_type_print_varspec_suffix): Likewise.
2572 * gdbtypes.c (is_scalar_type): Likewise.
2573 (recursive_dump_type): Likewise.
2574 * infcall.c (value_arg_coerce): Likewise.
2575 * m2-valprint.c (m2_val_print): Likewise.
2576 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2577 (pascal_type_print_varspec_suffix): Likewise.
2578 (pascal_type_print_base): Likewise.
2579 * p-valprint.c (pascal_val_print): Likewise.
2580 (pascal_val_print): Likewise.
2581 * valops.c (value_slice): Likewise.
2582 * valprint.c (scalar_type_p): Likewise.
2583 * valarith.c (value_bitstring_subscript): Remove.
2584 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2585 Remove comment on TYPE_CODE_BITSTRING.
2586
2587 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2588 TYPE_CODE_BITSTRING.
2589
2590 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2591 slot 0.
2592
8acc4065
YQ
25932012-08-16 Yao Qi <yao@codesourcery.com>
2594
2595 * tracepoint.c (trace_find_none_command): Remove.
2596 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2597
8128fd8e
YQ
25982012-08-16 Yao Qi <yao@codesourcery.com>
2599
2600 * remote.c (handle_notification): Remove parameter 'length'.
2601 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2602
2873700e
KS
26032012-08-15 Keith Seitz <keiths@redhat.com>
2604
2605 * gdbtypes.c (opaque_type_resolution): Make static.
2606 Add missing comment.
2607 (overload_debug): Add missing comment.
2608 (show_opaque_type_resolution): Likewise.
2609 (show_overload_debug): Likewise.
2610 (print_bit_vector): Remove unnecessary forward declaration.
2611 (print_arg_types): Likewise.
2612 (dump_fn_fieldlists): Likewise.
2613 (print_cplus_stuff): Likewise.
2614
b82d08cd
TT
26152012-08-15 Tom Tromey <tromey@redhat.com>
2616
2617 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2618 (gdb_bfd_ref): Initialize new field.
2619 (gdb_bfd_unref): Unref the archive BFD.
2620 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2621 parent archive.
2622
db6573d6
TT
26232012-08-15 Tom Tromey <tromey@redhat.com>
2624
2625 PR python/14387:
2626 * python/py-bpevent.c (create_breakpoint_event_object): Update
2627 comment.
2628 * python/py-event.c (evpy_add_attribute): Update comment.
2629 * python/py-exitedevent.c (create_exited_event_object): Fix
2630 reference counting and error handling.
2631 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2632 Fix reference counting.
2633 * python/py-signalevent.c (create_signal_event_object): Fix
2634 reference counting and error handling.
2635 * python/py-stopevent.c (emit_stop_event): Fix reference
2636 counting.
2637 * python/py-threadevent.c (get_event_thread): Return a
2638 borrowed reference.
2639 * python/py-type.c (convert_field): Fix reference counting.
2640
a036ba48
TT
26412012-08-15 Tom Tromey <tromey@redhat.com>
2642
2643 * dwarf2read.c (dwarf_decode_macro_bytes)
2644 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2645 as hash key.
2646
486c7739
MF
26472012-08-14 Mike Frysinger <vapier@gentoo.org>
2648
2649 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2650 stepi, nexti, finish, next, step, jump, and continue commands.
2651 * infrun.c (_initialize_infrun): Update help text for the handle
2652 command.
2653
4cf93a03
DE
26542012-08-14 Doug Evans <dje@google.com>
2655
70b099cf
DE
2656 * gdbtypes.c (struct extra): Delete, unused.
2657
5212577a
DE
2658 * gdbtypes.c: Whitespace cleanup.
2659 (address_space_name_to_int): Remove "extern" from definition.
2660 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2661
4cf93a03
DE
2662 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2663 TYPE_POINTER_TYPE (type).
2664
3756ef7e
GB
26652012-08-14 Gary Benson <gbenson@redhat.com>
2666
2667 * solib-svr4.c (svr4_free_library_list): Use free_so.
2668
40d72643
MF
26692012-08-13 Mike Frysinger <vapier@gentoo.org>
2670
2671 * .gitignore: Add go-exp.c.
2672
f47f77df
DE
26732012-08-13 Doug Evans <dje@google.com>
2674
2675 * value.c (show_convenience): Tweak comment.
2676 (_initialize_values): Mention convenience functions in the help text
2677 for "show convenience".
2678
7507c54a
YQ
26792012-08-13 Yao Qi <yao@codesourcery.com>
2680
2681 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2682 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2683 TERNOP_SLICE_COUNT.
2684 * eval.c (evaluate_subexp_standard): Likewise.
2685 * expprint.c (print_subexp_standard): Likewise.
2686 (dump_subexp_body_standard): Likewise.
2687 * parse.c (operator_length_standard): Likewise.
2688
5cad9736
YQ
26892012-08-13 Yao Qi <yao@codesourcery.com>
2690
2691 * std-operator.def: Remove OP_BITSTRING.
2692 * breakpoint.c (watchpoint_exp_is_const): Update.
2693 * eval.c (evaluate_subexp_standard): Remove handling to
2694 OP_BITSTRING.
2695 * expprint.c (print_subexp_standard): Likewise.
2696 (dump_subexp_body_standard): Likewise.
2697 * parse.c (operator_length_standard): Likewise.
2698 * valops.c (value_bitstring): Remove.
2699 * value.h: Remove the declaration of 'value_bitstring'.
2700
bad7670a
SDJ
27012012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2702
2703 * linespec.c (find_methods): Remove unused variables `i1' and
2704 `name_len'.
2705 (decode_line_full): Likewise for `arg_start'.
2706
d9dce7fa
SDJ
27072012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2708
2709 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2710 (zlib_decompress_section): Likewise for `section_data'.
2711 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2712
a72c3253
DE
27132012-08-10 Doug Evans <dje@google.com>
2714
2715 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2716 * NEWS: Document them.
2717 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2718 function/strfns.py.
2719 * python/py-type.c (typy_array_1): New function.
2720 (typy_array): Call it.
2721 (typy_vector): New function.
2722 (type_object_methods): Add "vector".
2723 * python/lib/gdb/function/__init__.py: New file.
2724 * python/lib/gdb/function/strfns.py: New file.
2725
200bc880
SP
27262012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2727
2728 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2729 for TYPE_FIELD_BITPOS.
2730 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2731
de0bea00
MF
27322012-08-10 Mike Frysinger <vapier@gentoo.org>
2733
2734 PR cli/10436:
2735 * common/vec.h (VEC_merge): Define.
2736 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2737 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2738 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2739 * completer.c: Include gdb_signals.h.
2740 (signal_completer): Define.
2741 * completer.h (signal_completer): Add prototype.
2742 * infcmd.c (_initialize_infcmd): Assign the command
2743 completer for "signal" to handle_completer.
2744 * infrun.c: Include completer.h.
2745 (handle_completer): Define.
2746 (_initialize_infrun): Declare a new local variable c. Store the
2747 result of add_com("handle") to it. Assign the command
2748 completer for "handle" to handle_completer.
2749
5b9afe8a
YQ
27502012-08-09 Yao Qi <yao@codesourcery.com>
2751
2752 * cli/cli-decode.c (set_cmd_prefix): New.
2753 (lookup_cmd_for_prefixlist): New.
2754 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2755 of each cmd_list_element in *prefixlist.
2756 (add_setshow_cmd_full): set_cmd_prefix.
2757 (add_alias_cmd): Likewise.
2758 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2759 Declare 'auto_boolean_enums'.
2760 * cli/cli-setshow.c: Include "observer.h".
2761 (notify_command_param_changed_p): New.
2762 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2763 Remove 'static'.
2764 (do_setshow_command): Split it to ...
2765 (do_set_command, do_show_command): ... them. New.
2766 (do_set_command): Call observer_notify_command_param_changed if
2767 notify_command_param_changed_p returns true.
2768 (cmd_show_list): Caller update.
2769 * auto-load.c (set_auto_load_cmd): Likewise.
2770 * remote.c (show_remote_cmd): Likewise.
2771 * cli/cli-setshow.h: Update declarations.
2772 * top.c (execute_command): Call do_set_command and do_show_command.
2773
2774 * NEWS: Mention new MI notification.
2775 * mi/mi-interp.c: Declare mi_command_param_changed.
2776 (mi_interpreter_init): Attach mi_command_param_changed to
2777 observer command_param_changed.
2778 (mi_command_param_changed): New.
2779 Remove mi_suppress_breakpoint_notifications.
2780 Define global variable mi_suppress_notification.
2781 (mi_breakpoint_created): Update.
2782 (mi_breakpoint_deleted): Likewise.
2783 (mi_breakpoint_modified): Likewise.
2784 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2785 'gdb-set' and set mi_suppress_notification.
2786 * mi/mi-main.h: (mi_suppress_notification): New struct.
2787
1969df89
JK
27882012-08-09 Andreas Tobler <andreast@fgznet.ch>
2789 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2792
8bfd80db
YQ
27932012-08-09 Yao Qi <yao@codesourcery.com>
2794
2795 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2796 (skiplist): Move it to skip.c.
2797 (init_cmd_lists): Remove code setting enablebreaklist and
2798 skiplist to NULL.
2799 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2800 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2801 skiplist.
2802 * gdbcmd.h: Likewise.
2803 * skip.c (_initialize_step_skip): Move 'skiplist' from
2804 cli/cli-cmds.c.
2805
28578e6b
YQ
28062012-08-09 Yao Qi <yao@codesourcery.com>
2807
2808 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2809 * gnu-nat.c, symfile.c: Likewise.
2810
260c0b2a
DE
28112012-08-08 Aaron Gamble <agamble@google.com>
2812
2813 * utils.c (prompt_for_continue_wait_time): New static global.
2814 (make_command_stats_cleanup): Initialize it.
2815 (report_command_stats): Subtract time waiting for user.
2816 (prompt_for_continue): Track time waiting for user.
2817 (defaulted_query): Track time waiting for user.
2818
4f485ebc
DE
28192012-08-08 Doug Evans <dje@google.com>
2820
2821 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2822 UNOP_MEMVAL_TYPE.
2823 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2824 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2825 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2826 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2827 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2828 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2829 elt.
2830 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2831 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2832 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2833 (dump_prefix_expression): Handle OP_TYPE.
2834
2acf2b39
KS
28352012-08-08 Keith Seitz <keiths@redhat.com>
2836
2837 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2838 addr_start.
2839
e6712ff1
DE
28402012-08-08 Doug Evans <dje@google.com>
2841
2842 * linux-thread-db.c: #include "gdb_vecs.h".
2843 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2844 updated.
2845 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2846 (thread_db_load_search): Use a vector to iterate over path elements.
2847 Handle text appearing after "$pdir".
2848
2849 * gdb_string.h: Moved to ...
2850 * common/gdb_string.h: ... here.
2851 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2852 gdb_string.h and gdb_assert.h.
2853
ab854e54
YQ
28542012-08-08 Yao Qi <yao@codesourcery.com>
2855
2856 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2857 (tic6x_value_to_register): Likewise.
2858 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2859 and set_gdbarch_value_to_register.
2860
4f69f4c2
JK
28612012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 Jean-Marc Saffroy <saffroy@gmail.com>
2863
2864 PR 11804
2865 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2866 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2867 * gcore.c (gcore_create_callback): New function comment. Add modified
2868 parameter. Only write modified regions. Set SEC_READONLY exactly
2869 according to MODIFIED.
2870 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2871 the passed modified value to FUNC.
2872 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2873 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2874 first. New variables modified and has_anonymous. Parse the lines of
2875 smaps file. Add the passed MODIFIED value to FUNC.
2876 * procfs.c (find_memory_regions_callback): Add the passed modified
2877 value.
2878
78ac5f83
TT
28792012-08-06 Tom Tromey <tromey@redhat.com>
2880
2881 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2882 (dwarf2_frame_cache): Use it.
2883 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2884 cache initialization constraint.
2885
2c12abee
TT
28862012-08-06 Tom Tromey <tromey@redhat.com>
2887
2888 PR python/14386:
2889 * varobj.c (update_dynamic_varobj_children): Don't call
2890 PyIter_Check.
2891
4979d7f0
TT
28922012-08-06 Tom Tromey <tromey@redhat.com>
2893
2894 PR cli/14392:
2895 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2896
f3c8a52a
JK
28972012-08-06 Nathaniel Flath <flat0103@gmail.com>
2898
2899 * NEWS: New entry for 'cd' default parameters.
2900 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2901
5a1cf4d6
TT
29022012-08-03 Tom Tromey <tromey@redhat.com>
2903
2904 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2905 return.
2906
7c3270ae
UW
29072012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2908
2909 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2910 to attempting lseek/write.
2911 (inf_child_fileio_pread): Likewise for pread.
2912
ccce17b0
YQ
29132012-08-02 Yao Qi <yao@codesourcery.com>
2914
2915 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2916 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2917 add_setshow_zinteger_cmd.
2918 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2919 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2920 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2921 instead of add_setshow_zinteger_cmd.
2922 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2923 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2924 instead of add_setshow_zinteger_cmd.
2925 * frame.c (frame_debug): Add 'unsigned'.
2926 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2927 add_setshow_zinteger_cmd.
2928 * frame.h: Update the declaration of 'frame_debug'.
2929 * gdbtypes.c (overload_debug): Add 'unsigned'.
2930 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2931 add_setshow_zinteger_cmd.
2932 * inferior.h: Update declaration of 'debug_infrun'.
2933 * infrun.c (debug_infrun): Add 'unsigned'.
2934 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2935 add_setshow_zinteger_cmd.
2936 * jit.c (jit_debug): Add 'unsigned'.
2937 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2938 add_setshow_zinteger_cmd.
2939 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2940 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2941 instead of add_setshow_zinteger_cmd.
2942 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2943 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2944 add_setshow_zinteger_cmd.
2945 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2946 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2947 instead of add_setshow_zinteger_cmd.
2948 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2949 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2950 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2951 intead of add_setshow_zinteger_cmd.
2952 * mips-tdep.c (mips_debug): Add 'unsigned'.
2953 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2954 instead of add_setshow_zinteger_cmd.
2955 * monitor.c (monitor_debug): Add 'unsigned'.
2956 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2957 add_setshow_zinteger_cmd.
2958 * observer.c (observer_debug): Add 'unsigned'.
2959 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2960 add_setshow_zinteger_cmd.
2961 * parse.c (expressiondebug): Add 'unsigned'.
2962 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2963 add_setshow_zinteger_cmd.
2964 * record.c (record_debug): Add 'unsigned'.
2965 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2966 add_setshow_zinteger_cmd.
2967 * record.h: Update the declaration of 'record_debug'.
2968 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2969 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2970 add_setshow_zinteger_cmd.
2971 * serial.c (global_serial_debug_p): Add 'unsigned'.
2972 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2973 add_setshow_zinteger_cmd.
2974 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2975 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2976 add_setshow_zinteger_cmd.
2977 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2978 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2979 add_setshow_zinteger_cmd.
2980 * target.c (targetdebug): Add 'unsigned'.
2981 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2982 add_setshow_zinteger_cmd.
2983 * valops.c (overload_debug): Add 'unsigned'.
2984 * varobj.c (varobjdebug): Add 'unsigned'.
2985 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2986 add_setshow_zinteger_cmd.
2987 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2988 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2989 instead of add_setshow_zinteger_cmd.
2990
2991 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2992 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2993 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2994 instead of add_setshow_zinteger_cmd.
2995 * gdbarch.c, gdbarch.h: Re-generated.
2996
95b07c96
YQ
29972012-08-02 Yao Qi <yao@codesourcery.com>
2998
2999 * nto-tdep.c: Don't include cli/cli-decode.h and
3000 cli/cli-cmds.h.
3001 (_initialize_nto_tdep): Remove.
3002 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3003 Remove field.
3004 Remove macro nto_internal_debugging.
3005
57295b0b
RH
30062012-08-01 Richard Henderson <rth@redhat.com>
3007
3008 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3009 (mep-*-*) [gdb_target_obs]: Likewise.
3010
f782ad9b
AS
30112012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3012
3013 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3014 linux_get_siginfo_type.
3015
a14dd77e
JK
30162012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3017
3018 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3019 AT_ENTRY_POINT.
3020 (call_function_by_hand) <ON_STACK>: Call write_memory with
3021 gdbarch_breakpoint_from_pc, if possible.
3022 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3023 here.
3024
1467929f
YQ
30252012-07-31 Yao Qi <yao@codesourcery.com>
3026
3027 * tracepoint.c: Add 'static' for some variables.
3028
70976b65
YQ
30292012-07-31 Yao Qi <yao@codesourcery.com>
3030
3031 * go32-nat.c: Declare _initialize_go32_nat.
3032 * ser-go32.c: Declare _initialize_ser_dos.
3033 * top.c (do_chdir_cleanup): Add 'static'.
3034
eff9c3e6
KS
30352012-07-30 Keith Seitz <keiths@redhat.com>
3036
3037 * linespec.c (linespec_lex_number): A number followed
3038 by quotes is a valid number, too.
3039
728400d7
TT
30402012-07-30 Tom Tromey <tromey@redhat.com>
3041
3042 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3043
fcf303ab
UW
30442012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3045
3046 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3047 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3048
4e969b4f
AB
30492012-07-30 Andrew Burgess <aburgess@broadcom.com>
3050
3051 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3052 invalid or reevaluated to prevent prevent references to possibly
3053 delete'd type objects being left in the varobj.
3054
c4bfde41
JK
30552012-07-27 Tom Tromey <tromey@redhat.com>
3056 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 * copying.awk: Print buffer-read-only and vi ro markers.
3059 * copying.c: Rebuild.
3060 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3061 * gdbarch.c, gdbarch.h: Rebuild.
3062 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3063 buffer-read-only and vi ro markers.
3064 * features/arm-with-iwmmxt.c: Rebuild.
3065 * features/arm-with-m-fpa-layout.c: Rebuild.
3066 * features/arm-with-m-vfp-d16.c: Rebuild.
3067 * features/arm-with-m.c: Rebuild.
3068 * features/arm-with-neon.c: Rebuild.
3069 * features/arm-with-vfpv2.c: Rebuild.
3070 * features/arm-with-vfpv3.c: Rebuild.
3071 * features/i386/amd64-avx-linux.c: Rebuild.
3072 * features/i386/amd64-avx.c: Rebuild.
3073 * features/i386/amd64-linux.c: Rebuild.
3074 * features/i386/amd64.c: Rebuild.
3075 * features/i386/i386-avx-linux.c: Rebuild.
3076 * features/i386/i386-avx.c: Rebuild.
3077 * features/i386/i386-linux.c: Rebuild.
3078 * features/i386/i386-mmx-linux.c: Rebuild.
3079 * features/i386/i386-mmx.c: Rebuild.
3080 * features/i386/i386.c: Rebuild.
3081 * features/i386/x32-avx-linux.c: Rebuild.
3082 * features/i386/x32-avx.c: Rebuild.
3083 * features/i386/x32-linux.c: Rebuild.
3084 * features/i386/x32.c: Rebuild.
3085 * features/mips-dsp-linux.c: Rebuild.
3086 * features/mips-linux.c: Rebuild.
3087 * features/mips64-dsp-linux.c: Rebuild.
3088 * features/mips64-linux.c: Rebuild.
3089 * features/rs6000/powerpc-32.c: Rebuild.
3090 * features/rs6000/powerpc-32l.c: Rebuild.
3091 * features/rs6000/powerpc-403.c: Rebuild.
3092 * features/rs6000/powerpc-403gc.c: Rebuild.
3093 * features/rs6000/powerpc-405.c: Rebuild.
3094 * features/rs6000/powerpc-505.c: Rebuild.
3095 * features/rs6000/powerpc-601.c: Rebuild.
3096 * features/rs6000/powerpc-602.c: Rebuild.
3097 * features/rs6000/powerpc-603.c: Rebuild.
3098 * features/rs6000/powerpc-604.c: Rebuild.
3099 * features/rs6000/powerpc-64.c: Rebuild.
3100 * features/rs6000/powerpc-64l.c: Rebuild.
3101 * features/rs6000/powerpc-7400.c: Rebuild.
3102 * features/rs6000/powerpc-750.c: Rebuild.
3103 * features/rs6000/powerpc-860.c: Rebuild.
3104 * features/rs6000/powerpc-altivec32.c: Rebuild.
3105 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3106 * features/rs6000/powerpc-altivec64.c: Rebuild.
3107 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3108 * features/rs6000/powerpc-cell32l.c: Rebuild.
3109 * features/rs6000/powerpc-cell64l.c: Rebuild.
3110 * features/rs6000/powerpc-e500.c: Rebuild.
3111 * features/rs6000/powerpc-e500l.c: Rebuild.
3112 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3113 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3114 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3115 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3116 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3117 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3118 * features/rs6000/powerpc-vsx32.c: Rebuild.
3119 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3120 * features/rs6000/powerpc-vsx64.c: Rebuild.
3121 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3122 * features/rs6000/rs6000.c: Rebuild.
3123 * features/s390-linux32.c: Rebuild.
3124 * features/s390-linux32v1.c: Rebuild.
3125 * features/s390-linux32v2.c: Rebuild.
3126 * features/s390-linux64.c: Rebuild.
3127 * features/s390-linux64v1.c: Rebuild.
3128 * features/s390-linux64v2.c: Rebuild.
3129 * features/s390x-linux64.c: Rebuild.
3130 * features/s390x-linux64v1.c: Rebuild.
3131 * features/s390x-linux64v2.c: Rebuild.
3132 * features/tic6x-c62x-linux.c: Rebuild.
3133 * features/tic6x-c62x.c: Rebuild.
3134 * features/tic6x-c64x-linux.c: Rebuild.
3135 * features/tic6x-c64x.c: Rebuild.
3136 * features/tic6x-c64xp-linux.c: Rebuild.
3137 * features/tic6x-c64xp.c: Rebuild.
3138
826f0041
TT
31392012-07-27 Tom Tromey <tromey@redhat.com>
3140
3141 * c-exp.y (classify_name): Avoid assignment in condition.
3142
84552b16
PA
31432012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3144
3145 * amd64-windows-tdep.c: Include "frame.h".
3146 (amd64_windows_skip_trampoline_code): New function.
3147 (amd64_windows_init_abi): Add trampoline registration.
3148
a8a64aa8
YQ
31492012-07-27 Yao Qi <yao@codesourcery.com>
3150
3151 * tracepoint.c (cur_traceframe_number): Remove.
3152 (set_tfile_traceframe): Remove.
3153 (tfile_trace_find, tfile_fetch_registers): Update callers.
3154 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3155 (tfile_open, tfile_trace_find): Likewise.
3156
d99067cb
YQ
31572012-07-27 Yao Qi <yao@codesourcery.com>
3158
3159 * thread.c (switch_to_thread): Don't call registers_changed.
3160
f2e8016f
TT
31612012-07-26 Tom Tromey <tromey@redhat.com>
3162
f782ad9b
AS
3163 * Makefile.in (SFILES): Remove objc-exp.y.
3164 (YYFILES): Remove objc-exp.c.
3165 (YYOBJ): Remove objc-exp.o.
3166 (local-maintainer-clean): Don't mention objc-exp.c.
3167 * c-exp.y: Include objc-lang.h.
3168 (%union) <class>: New field.
3169 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3170 (exp): Clone subscript production for OBJC_LBRAC. Add various
3171 Objective C productions.
3172 (msglist, msgarglist, msgarg): New productions.
3173 (array_mod, func_mod, operator): Clone productions for
3174 OBJC_LBRAC.
3175 (parse_string_or_char): Handle '@' strings.
3176 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3177 (classify_name): Check la_name_of_this. Recognize ObjC class
3178 names.
3179 * objc-exp.y: Remove.
3180 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3181 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3182
f66713d2
JK
31832012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3184
3185 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3186
7cfe01b4
JK
31872012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3190 and decrement.
3191
5ba19b4c
TT
31922012-07-26 Tom Tromey <tromey@redhat.com>
3193
3194 * copying.c: Rebuild.
3195 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3196 'no_class'.
3197
27618ce4
TT
31982012-07-26 Tom Tromey <tromey@redhat.com>
3199
3200 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3201 immediate_quit.
3202 (print_objfile_statistics): Likewise.
3203 (maintenance_print_symbols): Likewise.
3204 (maintenance_print_msymbols): Likewise.
3205 (maintenance_print_objfiles): Likewise.
3206 * psymtab.c (print_partial_symbols): Call QUIT.
3207 (maintenance_print_psymbols): Likewise. Don't modify
3208 immediate_quit.
3209 * copying.c (show_copying_command): Don't modify immediate_quit.
3210 (show_warranty_command): Likewise.
3211 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3212
dd3818c8
KS
32132012-07-26 Keith Seitz <keiths@redhat.com>
3214
3215 * linespec.c (linespec_lexer_lex_number): The input
3216 is also a valid number if the next character is a comma
3217 or colon.
3218
23a80689
JB
32192012-07-26 Joel Brobecker <brobecker@adacore.com>
3220
3221 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3222 configure options.
3223
29f77997
TG
32242012-07-26 Tristan Gingold <gingold@adacore.com>
3225
3226 * machoread.c: Include gdb_bfd.h.
3227
a55c1f32
TG
32282012-07-26 Tristan Gingold <gingold@adacore.com>
3229
3230 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3231 offset.
3232
56eb65bd
SP
32332012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3234
3235 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3236 SIZE to size_t.
3237 (dwarf2_evaluate_loc_desc): Likewise.
3238 (dwarf2_loc_desc_needs_frame): Likewise.
3239 (locexpr_describe_location_1): Likewise.
3240 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3241 size_t.
3242 (struct dwarf2_loclist_baton): Likewise.
3243 * dwarf2read.c (struct dwarf_block): Likewise.
3244 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3245 (decode_locdesc): Expand SIZE and I to size_t.
3246
aec8845c
JK
32472012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3248
3249 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3250
33d7655b
JB
32512012-07-25 Joel Brobecker <brobecker@adacore.com>
3252
3253 * doublest.c (convert_doublest_to_floatformat): If the exponent
3254 is too small, treat the value as zero. If the exponent is too
3255 large, treat the value as infinity.
3256
a22d44ff
JB
32572012-07-25 Joel Brobecker <brobecker@adacore.com>
3258
3259 * configure.ac: Add --enable-lmcheck configure option.
3260 * configure: Regenerate.
3261
d6b28940
TT
32622012-07-25 Tom Tromey <tromey@redhat.com>
3263
f782ad9b
AS
3264 * NEWS: Mention maint info bfds.
3265 * gdb_bfd.c (all_bfds): New global.
3266 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3267 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3268 New functions.
d6b28940 3269
6e73ba20
RC
32702012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3271
3272 * configure.tgt: Add v850*-*-rtems*.
3273
d560eebd
TT
32742012-07-25 Tom Tromey <tromey@redhat.com>
3275
3276 * macrotab.c (macro_bcache_str): Remove cast.
3277
d7cbec71
HZ
32782012-07-25 Hui Zhu <hui_zhu@mentor.com>
3279
3280 * linespec.c (linespec_lexer_lex_number): Update comments,
3281 change the return and add check to make sure the input is
3282 the decimal numbers.
3283 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3284 false, call linespec_lexer_lex_string.
3285
882f447f
TT
32862012-07-24 Tom Tromey <tromey@redhat.com>
3287
3288 * symfile.c (symbol_file_add): Don't open BFD twice.
3289
53ab4066 32902012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3291
3292 * breakpoint.c (create_breakpoint): Store condition for pending
3293 breakpoints.
3294
108fb0f7
AS
32952012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3296
3297 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3298 (m68k_return_value): Handle complex types like structures.
3299 (m68k_svr4_return_value): Likewise.
3300
1634dcbe
JK
33012012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3302
3303 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3304 parameters to bfd_get_section_name.
3305
e2d12c21
YQ
33062012-07-24 Yao Qi <yao@codesourcery.com>
3307
3308 * cli/cli-setshow.c: Handle case 'var_uinteger'
3309 and 'var_zuninteger' together. Handle case 'var_integer' and
3310 'var_zinteger' together.
3311
64b92e45
KS
33122012-07-23 Keith Seitz <keiths@redhat.com>
3313
3314 * linespec.c (convert_linespec_to_sal): Don't add
3315 any symbols to the result vector if symbol_to_sal
3316 returns zero.
3317
0f5f4ffe
KS
33182012-07-23 Keith Seitz <keiths@redhat.com>
3319
3320 * linespec.c (decode_objc): Record the function name
3321 in the linespec.
3322
da1cc82f
TT
33232012-07-23 Tom Tromey <tromey@redhat.com>
3324
3325 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3326 counting.
3327 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3328 (map_vmap): Acquire a reference to the BFD.
3329
6c18f3e0
SP
33302012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3331
3332 * p-valprint.c (pascal_object_print_value): Replace potentially
3333 unsafe alloca with xmalloc/xfree.
3334 * valops.c (search_struct_method): Likewise.
3335
695c3173
TT
33362012-07-23 Tom Tromey <tromey@redhat.com>
3337
3338 * solib-svr4.c (enable_break): Update.
3339 * bfd-target.h (target_bfd_reopen): Update documentation.
3340
08d2cd74
TT
33412012-07-23 Tom Tromey <tromey@redhat.com>
3342
3343 * symfile.c (separate_debug_file_exists): Update.
3344 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3345 (reread_symbols): Update.
3346 * elfread.c (build_id_verify): Update.
3347 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3348 bfd_open_maybe_remote.
3349
596f7d67
TT
33502012-07-23 Tom Tromey <tromey@redhat.com>
3351
3352 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3353
8ac244b4
TT
33542012-07-23 Tom Tromey <tromey@redhat.com>
3355
3356 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3357 and 'abfd'.
3358 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3359 and 'abfd'.
3360 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3361 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3362 'abfd'.
3363 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3364 * objfiles.c (allocate_objfile): Acquire a new reference.
3365 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3366 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3367 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3368 a cleanup for 'nbfd'.
3369 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3370 for 'nbfd'.
3371 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3372 make a cleanup for 'abfd'.
3373 (symbol_file_add): Make a BFD cleanup.
3374
64c31149
TT
33752012-07-23 Tom Tromey <tromey@redhat.com>
3376
3377 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3378 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3379 * corelow.c (core_open): Use gdb_bfd_fopen.
3380 * dsrec.c (load_srec): Use gdb_bfd_openr.
3381 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3382 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3383 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3384 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3385 (gdb_bfd_fdopenr): New functions.
3386 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3387 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3388 (gdb_bfd_fdopenr): Declare.
3389 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3390 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3391 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3392 gdb_bfd_openr_next_archived_file.
3393 (macho_check_dsym): Use gdb_bfd_openr.
3394 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3395 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3396 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3397 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3398 gdb_bfd_openr.
3399 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3400 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3401 gdb_bfd_openr_next_archived_file.
3402 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3403 Use gdb_bfd_openr.
3404 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3405 gdb_bfd_openr.
3406 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3407 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3408 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3409 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3410 (symfile_bfd_open): Use gdb_bfd_fopen.
3411 (generic_load): Use gdb_bfd_openr.
3412 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3413
520b0001
TT
34142012-07-23 Tom Tromey <tromey@redhat.com>
3415
3416 * bfd-target.c (target_bfd_reopen): Update.
3417 * cli/cli-dump.c (bfd_openr_with_cleanup)
3418 (bfd_openw_with_cleanup): Update.
3419 * corelow.c (core_open): Update.
3420 * dsrec.c (load_srec): Update.
3421 * exec.c (exec_file_attach): Update.
3422 * gcore.c (create_gcore_bfd): Update.
3423 * gdb_bfd.c (gdb_bfd_ref): Return void.
3424 (gdb_bfd_open): Update.
3425 * gdb_bfd.h (gdb_bfd_ref): Return void.
3426 Update comments.
3427 * jit.c (jit_bfd_try_read_symtab): Update.
3428 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3429 * machoread.c (macho_symfile_read_all_oso): Update.
3430 (macho_check_dsym): Update.
3431 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3432 * remote-m32r-sdi.c (m32r_load): Update.
3433 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3434 * rs6000-nat.c (add_vmap): Update.
3435 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3436 Update.
3437 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3438 * solib-spu.c (spu_bfd_open): Update.
3439 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3440 * spu-linux-nat.c (spu_bfd_open): Update.
3441 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3442 (generic_load): Update.
3443 * windows-nat.c (windows_make_so): Update.
3444
2322ff16
SP
34452012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3446
3447 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3448
3def0b36
PA
34492012-07-20 Jeff Kenton <jkenton@tilera.com>
3450
3451 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3452 SIGTRAMP_FRAME unwinding.
3453
e615022a
DE
34542012-07-20 Doug Evans <dje@google.com>
3455
3456 * NEWS: Document new options "set/show use-deprecated-index-sections",
3457 and delete reference to --use-deprecated-index-sections.
3458 * symfile.h (use_deprecated_index_sections): Delete.
3459 * dwarf2read.c (use_deprecated_index_sections): Make static.
3460 (read_index_from_section): Update wording of how to load
3461 deprecated index sections.
3462 (_initialize_dwarf2_read): New options
3463 "set/show use-deprecated-index-sections".
3464 * main.c (captured_main): Delete --use-deprecated-index-sections.
3465
64776a0b
PA
34662012-07-20 Pedro Alves <palves@redhat.com>
3467
3468 PR threads/11692
3469 PR gdb/12203
3470
3471 * infrun.c (handle_inferior_event) <new thread>: Don't special
3472 case minus_one_ptid.
3473 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3474 * linux-thread-db.c (thread_get_info_callback): Don't return early
3475 if the thread is zombie.
3476 (thread_from_lwp): Change return type to void. Rewrite stale
3477 comment.
3478 (attach_thread): Don't return early if the thread is zombie,
3479 instead set its "dying" flag.
3480 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3481 (find_new_threads_callback): Don't return early if the thread is
3482 zombie.
3483
09826ec5
PA
34842012-07-20 Pedro Alves <palves@redhat.com>
3485
3486 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3487 * target.c (target_wait): Likewise.
3488 (str_comma_list_concat_elem, do_option, target_options_to_string):
3489 New functions.
3490 * target.h (target_options_to_string): Declare.
3491
f7a35f02
TT
34922012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 Tom Tromey <tromey@redhat.com>
3494
3495 * dwarf2read.c (dwarf_decode_macros)
3496 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3497 DW_MACRO_GNU_transparent_include_alt>: New cases.
3498 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3499 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3500
b81e1ee0
TT
35012012-07-20 Tom Tromey <tromey@redhat.com>
3502
3503 * dwarf2read.c (try_open_dwo_file): Don't call
3504 gdb_bfd_stash_filename.
3505
99c1624c
PA
35062012-07-20 Pedro Alves <palves@redhat.com>
3507
3508 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3509 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3510 (i386_process_record): Tweak description comments.
3511
4ffa4fc7
PA
35122012-07-20 Pedro Alves <palves@redhat.com>
3513
3514 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3515 (i386_process_record): Use record_read_memory.
3516 * record.c (record_read_memory): New function.
3517 (record_arch_list_add_mem, record_exec_insn): Use
3518 record_read_memory.
3519 * record.h (record_read_memory): Declare.
3520
c24343e2
YQ
35212012-07-20 Yao Qi <yao@codesourcery.com>
3522
3523 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3524 NULL for xfree.
3525
90f47860
PA
35262012-07-19 Pedro Alves <palves@redhat.com>
3527
3528 * record.c (record_resume): Ask the target beneath to report all
3529 signals.
3530
01093045
DE
35312012-07-19 Doug Evans <dje@google.com>
3532
3533 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3534 there's no section at address zero.
3535 (dwarf2_record_block_ranges): Ditto.
3536
a7c3d162
YQ
35372012-07-19 Yao Qi <yao@codesourcery.com>
3538
3539 * command.h, remote.c: Fix a typo in comment.
3540
608b4967
TT
35412012-07-19 Tom Tromey <tromey@redhat.com>
3542
3543 PR exp/13206:
3544 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3545 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3546 OP_DECLTYPE>: New cases.
3547 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3548 (type_exp): Add new productions.
3549 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3550 and decltype.
3551 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3552 New case.
3553 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3554 OP_DECLTYPE>: New case.
3555 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3556 New case.
3557 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3558 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3559
274b54d7
TT
35602012-07-19 Tom Tromey <tromey@redhat.com>
3561
3562 * c-exp.y (enum token_flags): New.
3563 (struct token) <cxx_only>: Remove.
3564 <flags>: New field.
3565 (tokentab3, tokentab2, ident_tokens): Update.
3566 (lex_one_token): Update. Handle FLAG_SHADOW.
3567
9eaf6705
TT
35682012-07-19 Tom Tromey <tromey@redhat.com>
3569
3570 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3571 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3572 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3573 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3574 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3575 type_exp production where appropriate.
3576 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3577 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3578 <UNOP_MEMVAL_TYPE>: New case.
3579 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3580 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3581 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3582 <UNOP_MEMVAL_TYPE>: New case.
3583 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3584 UNOP_REINTERPRET_CAST>: Update.
3585 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3586 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3587 UNOP_REINTERPRET_CAST>: Update.
3588 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3589 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3590 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3591 constants.
3592
6ace3df1
YQ
35932012-07-19 Yao Qi <yao@codesourcery.com>
3594 Jan Kratochvil <jan.kratochvil@redhat.com>
3595
3596 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3597 and case 'var_optional_filename' together.
3598 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3599 instead of add_setshow_optional_filename_cmd for setshow command
3600 'args'. Set completer for 'set args'.
3601
48faced0
DE
36022012-07-18 Doug Evans <dje@google.com>
3603
3604 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3605 * common/gdb_vecs.c: New file, contents from utils.c.
3606 * common/host-defs.h: New file, contents from defs.h.
3607 * utils.h: New file, contents from defs.h.
3608 * defs.h: Move all declarations of objects defined in utils.c
3609 to utils.h (except QUIT() and related).
3610 #include "utils.h", "host-defs.h".
3611 * probe.h (probe_p): Move here from gdb_vecs.h.
3612 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3613 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3614 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3615 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3616 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3617 (COMMON_OBS): Add gdb_vecs.o.
3618 (gdb_vecs.o): New rule.
3619
66f1999b
KS
36202012-07-18 Keith Seitz <keiths@redhat.com>
3621
3622 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3623 parameter. If non-zero, use SYMNAME as the canonical name
3624 for the SaL.
3625 Update all callers.
3626 (convert_linespec_to_sals): Use add_sal_to_sals for
3627 expressions, too.
3628 (decode_line_full): No need to "fill in missing canonical names"
3629 anymore. Simply make cleanups for the allocated names.
3630
5d94e27b
KS
36312012-07-18 Keith Seitz <keiths@redhat.com>
3632
3633 * linespec.c (struct linespec): Constify expression,
3634 source_filename, function_name, and label_name.
3635 (symbol_not_found_error): Make all parameters const.
3636 (linespec_parser_delete): No need to check for NULL
3637 when using xfree. Cast const char * to char * for xfree.
3638
af4908ba
KS
36392012-07-18 Keith Seitz <keiths@redhat.com>
3640
3641 * breakpoint.c (invalid_thread_id_error): New function.
3642 (find_condition_and_thread): Use invalid_thread_id_error.
3643 (watch_command_1): Likewise.
3644
853254db
TT
36452012-07-18 Tom Tromey <tromey@redhat.com>
3646
3647 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3648 * contrib/cc-with-tweaks.sh: New file.
3649
2ec9a5e0
TT
36502012-07-18 Tom Tromey <tromey@redhat.com>
3651
3652 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3653 (locate_dwz_sections): Recognize .gdb_index.
3654 (create_cus_from_index_list): New function.
3655 (create_cus_from_index): Use it. Handle .dwz data.
3656 (read_index_from_section): New function, extracted from
3657 dwarf2_read_index.
3658 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3659 if needed.
3660
36586728
TT
36612012-07-18 Tom Tromey <tromey@redhat.com>
3662
3663 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3664 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3665 <is_dwz>: New field.
3666 (struct dwz_file): New.
3667 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3668 (locate_dwz_sections, dwarf2_get_dwz_file)
3669 (get_abbrev_section_for_cu): New functions.
3670 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3671 (read_and_check_type_unit_head): Add abbrev_section argument.
3672 (create_debug_types_hash_table): Update.
3673 (init_cutu_and_read_dies): Use proper abbrev section.
3674 (init_cutu_and_read_dies_no_follow): Likewise.
3675 (set_partial_user): Do nothing if PST==NULL.
3676 (read_comp_units_from_section): New function.
3677 (create_all_comp_units): Use it.
3678 (scan_partial_symbols, partial_die_parent_scope): Update.
3679 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3680 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3681 (find_partial_die): Add offset_in_dwz argument. Update.
3682 (guess_partial_die_structure_name, fixup_partial_die): Update.
3683 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3684 DW_FORM_GNU_strp_alt.
3685 (read_indirect_string_from_dwz): New function.
3686 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3687 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3688 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3689 (follow_die_offset): Add offset_in_dwz argument.
3690 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3691 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3692 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3693 Handle new macro forms.
3694 (dwarf_decode_macros): Update.
3695 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3696 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3697 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3698 (create_debug_types_hash_table): Use correct abbrev section.
3699 (get_debug_line_section): New function.
3700 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3701 (process_full_comp_unit): Pass 'required' argument to
3702 end_symtab_get_static_block.
3703 * buildsym.h (end_symtab_get_static_block): Update.
3704 * buildsym.c (end_symtab_get_static_block): Add 'required'
3705 argument.
3706 (end_symtab, end_expandable_symtab): Update.
3707
4bf44c1c
TT
37082012-07-18 Tom Tromey <tromey@redhat.com>
3709
3710 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3711 (pagesize): Remove.
3712 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3713 (zlib_decompress_section): Remove.
3714 (dwarf2_read_section): Use gdb_bfd_map_section.
3715 (munmap_section_buffer): Remove.
3716 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3717 munmap_section_buffer.
3718 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3719 (struct gdb_bfd_section_data): New.
3720 (free_one_bfd_section): New function.
3721 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3722 (get_section_descriptor, zlib_decompress_section)
3723 (gdb_bfd_map_section): New functions.
3724 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3725
bb397797
TT
37262012-07-18 Tom Tromey <tromey@redhat.com>
3727
3728 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3729
6ec53d05
TT
37302012-07-18 Tom Tromey <tromey@redhat.com>
3731
3732 * gdb_bfd.c (struct gdb_bfd_data): New.
3733 (gdb_bfd_cache): New global.
3734 (struct gdb_bfd_cache_search): New.
3735 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3736 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3737 * gdb_bfd.h (gdb_bfd_open): Declare.
3738
f9a062ff
TT
37392012-07-18 Tom Tromey <tromey@redhat.com>
3740
3741 * utils.c (make_cleanup_bfd_unref): Rename from
3742 make_cleanup_bfd_close.
3743 * defs.h (make_cleanup_bfd_unref): Rename from
3744 make_cleanup_bfd_close.
3745 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3746 (bfd_openw_with_cleanup): Update.
3747 * corelow.c (core_open): Update.
3748 * dsrec.c (load_srec): Update.
3749 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3750 * remote-m32r-sdi.c (m32r_load): Update.
3751 * remote-mips.c (mips_load_srec): Update.
3752 (pmon_load_fast): Update.
3753 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3754 Update.
3755 (darwin_bfd_open): Update.
3756 * solib.c (solib_bfd_fopen): Update.
3757 * symfile-mem.c (symbol_file_add_from_memory): Update.
3758 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3759 (symfile_bfd_open): Update.
3760 (generic_load): Update.
3761
d6ad71ba
TT
37622012-07-18 Tom Tromey <tromey@redhat.com>
3763
3764 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3765 (pmon_load_fast): Likewise.
3766 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3767 (m32r_upload_command): Likewise.
3768 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3769 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3770 Use make_cleanup_bfd_close.
3771
a4453b7e
TT
37722012-07-18 Tom Tromey <tromey@redhat.com>
3773
3774 * symfile.c (symfile_bfd_open): Don't copy name. Call
3775 gdb_bfd_stash_filename.
3776 (load_command): Open the new BFD before freeing the old.
3777 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3778 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3779 Call gdb_bfd_stash_filename.
3780 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3781 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3782 gdb_bfd_stash_filename.
3783 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3784 Free found_pathname.
3785 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3786 gdb_bfd_stash_filename.
3787 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3788 * machoread.c (macho_add_oso_symfile): Call
3789 gdb_bfd_stash_filename.
3790 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3791 gdb_bfd_stash_filename.
3792 (macho_check_dsym): Don't copy filename. Call
3793 gdb_bfd_stash_filename.
3794 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3795 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3796 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3797 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3798 * exec.c (exec_close): Don't free the BFD's filename.
3799 (exec_file_attach): Don't copy the filename. Call
3800 gdb_bfd_stash_filename.
3801 * corelow.c (core_close): Don't free the BFD's filename.
3802 (core_open): Call gdb_bfd_stash_filename.
3803 * corefile.c (reopen_exec_file): Remove #if 0 code.
3804 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3805 pathname.
3806 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3807
cbb099e8
TT
38082012-07-18 Tom Tromey <tromey@redhat.com>
3809
3810 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3811 gdb_bfd_unref.
3812 (free_dwo_file): Use gdb_bfd_unref.
3813 * cli/cli-dump.c: Include gdb_bfd.h.
3814 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3815 (bfd_openr_with_cleanup): Likewise.
3816 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3817 gdb_bfd_unref.
3818 * utils.c: Include gdb_bfd.h.
3819 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3820 * symfile.c: Include gdb_bfd.h.
3821 (separate_debug_file_exists): Use gdb_bfd_unref.
3822 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3823 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3824 (generic_load): Use gdb_bfd_ref.
3825 (reread_symbols): Use gdb_bfd_unref.
3826 * symfile-mem.c: Include gdb_bfd.h.
3827 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3828 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3829 * solib.c: Include gdb_bfd.h.
3830 (solib_bfd_fopen): Use gdb_bfd_ref.
3831 (solib_bfd_open): Use gdb_bfd_unref.
3832 (free_so_symbols): Use gdb_bfd_unref.
3833 (reload_shared_libraries_1): Use gdb_bfd_unref.
3834 * solib-spu.c: Include gdb_bfd.h.
3835 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3836 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3837 gdb_bfd_unref.
3838 * solib-frv.c: Include gdb_bfd.h.
3839 (enable_break2): Use gdb_bfd_unref.
3840 * solib-dsbt.c: Include gdb_bfd.h.
3841 (enable_break2): Use gdb_bfd_unref.
3842 * solib-darwin.c: Include gdb_bfd.h.
3843 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3844 gdb_bfd_unref.
3845 (darwin_bfd_open): Use gdb_bfd_unref.
3846 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3847 * remote-mips.c: Include gdb_bfd.h.
3848 (mips_load_srec): Use gdb_bfd_ref.
3849 (pmon_load_fast): Use gdb_bfd_ref.
3850 * remote-m32r-sdi.c: Include gdb_bfd.h.
3851 (m32r_load): Use gdb_bfd_ref.
3852 * record.c: Include gdb_bfd.h.
3853 (record_save_cleanups): Use gdb_bfd_unref.
3854 (cmd_record_save): Use gdb_bfd_unref.
3855 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3856 gdb_bfd_unref.
3857 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3858 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3859 * objfiles.c: Include gdb_bfd.h.
3860 (free_objfile): Use gdb_bfd_unref.
3861 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3862 gdb_bfd.c.
3863 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3864 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3865 (macho_check_dsym): Likewise.
3866 * m32r-rom.c: Include gdb_bfd.h.
3867 (m32r_load): Use gdb_bfd_ref.
3868 (m32r_upload_command): Use gdb_bfd_ref.
3869 * jit.c: Include gdb_bfd.h.
3870 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3871 * gdb_bfd.h: New file.
3872 * gdb_bfd.c: New file.
3873 * gcore.c: Include gdb_bfd.h.
3874 (create_gcore_bfd): Use gdb_bfd_ref.
3875 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3876 (gcore_command): Use gdb_bfd_unref.
3877 * exec.c: Include gdb_bfd.h.
3878 (exec_close): Use gdb_bfd_unref.
3879 (exec_close_1): Use gdb_bfd_unref.
3880 (exec_file_attach): Use gdb_bfd_ref.
3881 * elfread.c: Include gdb_bfd.h.
3882 (build_id_verify): Use gdb_bfd_unref.
3883 * dsrec.c: Include gdb_bfd.h.
3884 (load_srec): Use gdb_bfd_ref.
3885 * corelow.c: Include gdb_bfd.h.
3886 (core_close): Use gdb_bfd_unref.
3887 (core_open): Use gdb_bfd_ref.
3888 * bfd-target.c: Include gdb_bfd.h.
3889 (target_bfd_xclose): Use gdb_bfd_unref.
3890 (target_bfd_reopen): Use gdb_bfd_ref.
3891 * Makefile.in (SFILES): Add gdb_bfd.c.
3892 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3893 (COMMON_OBS): Add gdb_bfd.o.
3894
ed1d1739
KS
38952012-07-18 Keith Seitz <keiths@redhat.com>
3896
3897 * breakpoint.c (find_condition_and_thread): Initialize
3898 TASK and REST.
3899 (create_breakpiont): find_condition_and_thread will now
3900 initialize COND_STRING, THREAD, and REST (and TASK).
3901 (addr_string_to_sals): Likewise.
3902
eab402df
PA
39032012-07-18 Pedro Alves <palves@redhat.com>
3904
3905 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3906 Pull the single step breakpoints out of the target.
3907
2b963b68
SDJ
39082012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3909
3910 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3911 * stap-probe.c (compile_probe_arg): Likewise.
3912
6bac7473
SDJ
39132012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3914
3915 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3916 (elf_compile_to_ax): Likewise.
3917 * infrun.c (insert_exception_resume_from_probe): Likewise.
3918 (check_exception_resume): Remove `objfile' variable.
3919 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3920 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3921 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3922 (compare_entries): Rename to...
3923 (compare_probes): ...this. Adjust function to work with
3924 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3925 respectively.
3926 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3927 `VEC (probe_p) *'.
3928 (print_ui_out_info): Adjust argument to be `struct probe *'.
3929 (info_probes_for_ops): Adjust internal computations to use
3930 `VEC (probe_p) *'.
3931 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3932 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3933 gen_info_probes_table_values>: Remove `objfile' argument.
3934 (struct probe) <objfile>: New field.
3935 (find_probe_by_pc): Remove `objfile' argument.
3936 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3937 (stap_get_probe_argument_count): Likewise.
3938 (stap_get_arg): Likewise.
3939 (stap_evaluate_probe_argument): Likewise.
3940 (stap_compile_to_ax): Likewise.
3941 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3942 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3943 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3944 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3945 sym_compile_to_ax>: Likewise.
3946
3347eb1a 39472012-07-18 Terry Guo <terry.guo@arm.com>
3948
3949 PR 14329
3950 * defs.h (GDB_MI_MSG_WIDTH): New.
3951 * ser_base (ser_base_read_error_fd): New function.
3952 (do_ser_base_readchar): Poll error file descriptor as well as
3953 standard output.
f782ad9b 3954 (generic_readchar): Refactor error handling.
3347eb1a 3955
80c8d323
JB
39562012-07-18 Joel Brobecker <brobecker@adacore.com>
3957
3958 * NEWS: Create a new section for the next release branch.
3959 Rename the section of the current branch, now that it has
3960 been cut.
3961
b45a0664 39622012-07-18 Joel Brobecker <brobecker@adacore.com>
3963
3964 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3965 * version.in: Bump version to 7.5.50.20120718-cvs.
3966
09cf2b22
KS
39672012-07-17 Keith Seitz <keiths@redhat.com>
3968
3969 * linespec.c (linespec_parse_line_offset): Make parameter
3970 const.
3971
8f043999
JK
39722012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3973
3974 PR 11914
3975 * f-valprint.c (info_common_command): New variable frame_id.
3976 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3977 * printcmd.c (print_variable_and_value): Extend function comment.
3978 Add comment for invalidated FRAME.
3979 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3980 FI form FRAME_ID after each print_frame_local_vars.
3981 (struct print_variable_and_value_data): Change frame to frame_id.
3982 (do_print_variable_and_value): New variable frame, initialize it from
3983 p->frame_id. Add comment for invalidated FRAME.
3984 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3985 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3986 for invalidated FRAME.
3987
ae5e0686
MK
39882012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3989 Pedro Alves <palves@redhat.com>
3990
3991 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3992 loop.
3993
5049c5be
TT
39942012-07-16 Tom Tromey <tromey@redhat.com>
3995
3996 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3997
2908cac6
DE
39982012-07-15 Doug Evans <dje@google.com>
3999
094b34ac
DE
4000 * dwarf2read.c (stmt_list_hash): New struct.
4001 (type_unit_group): Embed "per_cu" member, remove pointer.
4002 New union member "t", move member "tus" into it, all uses updated.
4003 New member "hash", replaces member "line_offset, all uses updated.
4004 (quick_file_names): Replace member "offset" with "hash", all uses
4005 updated.
4006 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4007 (hash_file_name_entry, eq_file_name_entry): Call them.
4008 (hash_type_unit_group, eq_type_unit_group): Ditto.
4009 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4010 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4011 (dw2_get_file_names): Update.
4012 (create_type_unit_group): Replace "per_cu" arg with "cu".
4013 All callers updated. Fix "quick" (.gdb_index) handling.
4014 (get_type_unit_group): Replace "per_cu" arg with "cu".
4015 All callers updated.
4016 (build_type_unit_groups): Don't reset tu_stats.
4017
2908cac6
DE
4018 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4019 "tab_cur_size". Change member "tab" to be a htab_t.
4020 (create_filename_seen_cache): Update.
4021 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4022 (filename_seen): Update.
4023
a2b6eff5
DE
40242012-07-13 Doug Evans <dje@google.com>
4025
4026 * symtab.c (filename_seen): Update comment.
4027
4359dff1
JK
40282012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4029 Doug Evans <dje@google.com>
4030
4031 * buildsym.c (end_symtab_1): Split it to ...
4032 (end_symtab_get_static_block): ... this ...
4033 (end_symtab_from_static_block): ... and this function.
4034 (end_symtab, end_expandable_symtab): Call them.
4035 * buildsym.h (end_symtab_get_static_block)
4036 (end_symtab_from_static_block): New declarations.
4037 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4038 Set its valid CU ranges.
4039
a24f71ab
JK
40402012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4043 DW_OP_GNU_parameter_ref.
4044
d76b7dbc
JK
40452012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4046
4047 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4048 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4049
9fdc877b
DE
40502012-07-13 Doug Evans <dje@google.com>
4051
4052 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4053 (filename_seen_cache): New struct.
4054 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4055 (create_filename_seen_cache): New function.
4056 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4057 (filename_seen): Delete arg "first". New arg "cache". All callers
4058 updated.
4059 (output_source_filename_data): New struct.
4060 (output_source_filename): Delete arg "first". New arg "data".
4061 All callers updated.
4062 (sources_info): Delete local "first". New locals "data", "cleanups".
4063 Rewrite to use filename_seen_cache.
4064 (add_partial_filename_data): Delete member "first". New member
4065 "filename_seen_cache". All uses updated.
4066 (make_source_files_completion_list): Rewrite to use
4067 filename_seen_cache.
4068
f80c6f3f
DE
40692012-07-12 Doug Evans <dje@google.com>
4070
4071 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4072
0bfa869d
DE
40732012-07-10 Doug Evans <dje@google.com>
4074
f4dc4d17
DE
4075 PR gdb/13498
4076 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4077 all_type_unit_groups, type_unit_groups, tu_stats.
4078 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4079 All uses updated. Add type_unit_group to union "s".
4080 (type_unit_group): New struct.
4081 (IS_TYPE_UNIT_GROUP): New macro.
4082 (abbrev_table): Delete unused member "section".
4083 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4084 (dw2_get_cu): Assert not used with type_unit_group.
4085 (dw2_get_primary_cu): New function.
4086 (dw2_build_type_unit_groups_reader): New function.
4087 (dw2_build_type_unit_groups): New function.
4088 (dw2_get_file_names): Assert not called on type units.
4089 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4090 Redo loop to iterate over type unit groups instead of type units.
4091 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4092 (read_abbrev_offset): New function.
4093 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4094 updated.
4095 (create_partial_symtab): New function.
4096 (process_psymtab_comp_unit_reader): Assert not used with type units.
4097 Call create_partial_symtab.
4098 (process_psymtab_type_unit): Delete.
4099 (hash_type_unit_group, eq_type_unit_group): New functions.
4100 (allocate_type_unit_groups_table): New function.
4101 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4102 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4103 (create_type_unit_group, get_type_unit_group): New functions.
4104 (tu_abbrev_offset): New struct.
4105 (sort_tu_by_abbrev_offset): New function.
4106 (add_type_unit_group_to_table): New function.
4107 (build_type_unit_groups): New function.
4108 (build_type_psymtabs_reader): New function.
4109 (build_type_psymtab_dependencies): New function.
4110 (build_type_psymtabs): Rewrite.
4111 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4112 is seen in a type unit.
4113 (process_queue): Move symtab expansion debugging printfs here.
4114 Call process_full_type_unit for type units.
4115 (compute_symtab_includes): Assert not called for type units.
4116 (process_cu_includes): Don't call compute_symtab_includes for
4117 type units.
4118 (process_full_type_unit): New function.
4119 (process_imported_unit_die): Flag an error if called for type units.
4120 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4121 updated. Assert not called for type units.
4122 (read_file_scope): Call dwarf2_start_symtab.
4123 (setup_type_unit_groups): New function.
4124 (read_type_unit_scope): Rewrite.
4125 (abbrev_table_read_table): Initialize abbrev_table->offset.
4126 (abbrev_table_free_cleanup): New function.
4127 (dwarf2_start_symtab): New function.
4128 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4129 * buildsym.c (finish_block_internal): New arg "expandable".
4130 All callers updated.
4131 (start_symtab): Move most contents to ...
4132 (restart_symtab): ... here. New function.
4133 (reset_symtab_globals): New function.
4134 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4135 Call reset_symtab_globals.
4136 (end_symtab, end_expandable_symtab): New functions.
4137 (set_missing_symtab, augment_type_symtab): New functions.
4138 * buildsym.h (end_expandable_symtab): Declare.
4139 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4140 * psympriv.h (struct partial_symtab): New member "anonymous".
4141 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4142 anonymous psymtabs.
4143 (read_psymtabs_with_filename): Ditto.
4144 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4145 (expand_symtabs_matching_via_partial): Ditto.
4146 (dump_psymtab): Update.
0bfa869d
DE
4147 * dictionary.c (dict_add_pending): New function.
4148 * dictionary.h (dict_add_pending): Declare.
4149
45e58e77
DE
41502012-07-09 Doug Evans <dje@google.com>
4151
b74db436
DE
4152 * buildsym.c (start_subfile): Remove unnecessary check for
4153 name == NULL.
4154
fd55216c
DE
4155 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4156
6721b2ec
DE
4157 * dwarf2read.c (load_full_type_unit): Simplify.
4158
b4dd5633
DE
4159 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4160 to struct signatured_type **. All uses updated.
4161
45e58e77
DE
4162 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4163 All callers updated.
4164
e314d629
TT
41652012-07-09 Tom Tromey <tromey@redhat.com>
4166
4167 * c-exp.y (check_parameter_typelist): New function.
4168 (parameter_typelist): Call it.
4169 * eval.c (make_params): Handle '(void)' case.
4170 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4171 '(void)' case.
4172
aa7c7447
JK
41732012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4174
4175 * common/linux-ptrace.c: Include gdb_assert.h.
4176 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4177 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4178 stdint.h.
4179 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4180 functions.
4181 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4182 * linux-nat.c (linux_child_post_attach)
4183 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4184
889003ed
JK
41852012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4188 nptl <2.7 bug workaround for core files.
4189
da559b09
JK
41902012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4191
4192 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4193 clearing.
4194 (save_siginfo): Remove.
4195 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4196 call.
4197 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4198 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4199 * linux-nat.h (struct lwp_info): Remove field siginfo.
4200
f865ee35
JK
42012012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4202
4203 Code cleanup for the next patch.
4204 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4205 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4206 call for it.
4207 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4208 (ia64_linux_stopped_data_address):
4209 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4210 the return value.
4211 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4212 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4213 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4214 call for it.
4215
76b83c51
JK
42162012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 PR 14321
4219 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4220 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4221
a6fb9c08
TT
42222012-07-06 Tom Tromey <tromey@redhat.com>
4223
4224 * c-exp.y (DOTDOTDOT): New token.
4225 (func_mod, exp): Use parameter_typelist.
4226 (parameter_typelist): New production.
4227 (tokentab3): Add "..." token.
4228 * eval.c (make_params): Handle varargs.
4229 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4230 varargs.
4231
71918a86
TT
42322012-07-06 Tom Tromey <tromey@redhat.com>
4233
4234 PR exp/9608:
4235 * c-exp.y (%union) <tvec>: Change type.
4236 (func_mod): Now uses <tvec> type.
4237 (exp): Update for tvec change.
4238 (direct_abs_decl): Push the typelist.
4239 (func_mod): Return a typelist.
4240 (nonempty_typelist): Update for tvec change.
4241 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4242 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4243 * parse.c (pop_type_list): New function.
4244 (push_typelist): New function.
4245 (follow_types): Handle tp_function_with_arguments.
4246 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4247 (enum type_pieces) <tp_function_with_arguments>: New constant.
4248 (union type_stack_elt) <typelist_val>: New field.
4249 (push_typelist): Declare.
4250
fcde5961
TT
42512012-07-06 Tom Tromey <tromey@redhat.com>
4252
4253 * c-exp.y (%union) <type_stack>: New field.
4254 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4255 (ptr_operator_ts): New production.
4256 (ptype): Update.
4257 * parse.c (type_stack_reserve): New function.
4258 (check_type_stack_depth): Use it.
4259 (pop_type_stack, append_type_stack, push_type_stack)
4260 (get_type_stack, type_stack_cleanup): New functions.
4261 (follow_types): Handle tp_type_stack.
4262 (_initialize_parse): Simplify initialization.
4263 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4264 constant.
4265 (union type_stack_elt) <stack_val>: New field.
4266 (get_type_stack, append_type_stack, push_type_stack)
4267 (type_stack_cleanup): Declare.
4268
1a7d0ce4
TT
42692012-07-06 Tom Tromey <tromey@redhat.com>
4270
4271 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4272 Remove.
4273 (struct type_stack): New.
4274 * parse.c (type_stack, type_stack_size, type_stack_depth):
4275 Remove.
4276 (type_stack): New global.
4277 (parse_exp_in_context, check_type_stack_depth)
4278 (insert_into_type_stack, insert_type, push_type, push_type_int)
4279 (insert_type_address_space, pop_type, pop_type_int)
4280 (_initialize_parse): Update.
4281
16d01384
TT
42822012-07-06 Tom Tromey <tromey@redhat.com>
4283
4284 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4285 Remove %type.
4286
9bfc60bf
SP
42872012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4288
4289 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4290
d5161074
SP
42912012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4292 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4295 alloca with xmalloc/xfree.
4296
a74bc576
SP
42972012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4298
4299 * MAINTAINERS (Write After Approval): Add myself to the list.
4300
667e0a4b
DE
43012012-07-05 Doug Evans <dje@google.com>
4302
4303 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4304
34b536a8
HZ
43052012-07-05 Hui Zhu <hui_zhu@mentor.com>
4306
4307 * ax-gdb.c (cli/cli-utils.h): New include.
4308 (linespec.h): Ditto.
4309 (agent_eval_command_one): New function.
4310 (agent_command_1): Ditto.
4311 (agent_command): Call function agent_command_1.
4312 (agent_eval_command): Ditto.
4313 (_initialize_ax_gdb): Change help for "maint agent"
4314 and "maint agent-eval".
4315
e6f0bce7
HZ
43162012-07-05 Hui Zhu <hui_zhu@mentor.com>
4317
4318 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4319 * cli/cli-utils.c (check_for_argument): New function.
4320 * cli/cli-utils.h (check_for_argument): Ditto.
4321
1b3371b1
L
43222012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4323
4324 * NEWS: Mention x32 ABI support.
4325
23e2d720
L
43262012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4327
4328 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4329 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4330
4331 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4332 and pc_regnum_from_eax to -1. Update SP regnum from
4333 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4334 needed.
4335
4336 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4337 pc_regnum_from_eax.
4338
836bf454
JK
43392012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
4341 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4342 * dwarf2expr.h: Include gdbtypes.h.
4343 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4344 these forward declarations.
4345 (cu_offset, sect_offset): Move these ...
4346 * gdbtypes.h: Remove include dwarf2expr.h.
4347 (cu_offset, sect_offset): ... here.
4348
1e55e04f
L
43492012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4350
4351 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4352 (amd64_linux_sigtramp_code): This.
4353 (amd64_x32_linux_sigtramp_code): New.
4354 (LINUX_SIGTRAMP_LEN): Updated.
4355 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4356
7d0e21ad
JK
43572012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4358
4359 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4360
8775fd2d
JK
43612012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 * config.in: Regenerate.
4364 * configure: Regenerate.
4365 * configure.ac: Remove check for gnu/libc-version.h.
4366 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4367 gnu/libc-version.h.
4368 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4369 variables libc_version, libc_major and libc_minor. Replace sscanf by
4370 inferior_has_bug. Extend the comment.
4371
fcb44371
JK
43722012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4373
4374 * linux-thread-db.c (inferior_has_bug): New function.
4375 (thread_db_find_new_threads_silently): Return boolean as checked by
4376 inferior_has_bug, describe it in the comments.
4377 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4378 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4379 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4380 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4381 if UNTIL_NO_NEW,
4382
09406207
DE
43832012-07-02 Doug Evans <dje@google.com>
4384
0907af0c
DE
4385 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4386 related to queue management.
4387
09406207
DE
4388 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4389 instead of "debug dwarf2-die" in debugging printfs.
4390 (create_debug_info_hash_table_reader): Ditto.
4391 (create_debug_info_hash_table): Ditto.
4392 (init_dwo_file): Ditto.
4393 (init_cutu_and_read_dies): Add debugging printf.
4394 (init_cutu_and_read_dies_no_follow): Ditto.
4395 (process_psymtab_comp_unit_reader): Ditto.
4396
d3ce09f5
SS
43972012-07-02 Stan Shebs <stan@codesourcery.com>
4398
4399 Add target-side support for dynamic printf.
4400 * NEWS: Mention the additional style.
4401 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4402 (struct bp_location): New field cmd_bytecode.
4403 * breakpoint.c: Include format.h.
4404 (disconnected_dprintf): New global.
4405 (parse_cmd_to_aexpr): New function.
4406 (build_target_command_list): New function.
4407 (insert_bp_location): Call it.
4408 (remove_breakpoints_pid): Skip dprintf breakpoints.
4409 (print_one_breakpoint_location): Ditto.
4410 (dprintf_style_agent): New global.
4411 (dprintf_style_enums): Add dprintf_style_agent.
4412 (update_dprintf_command_list): Add agent case.
4413 (agent_printf_command): New function.
4414 (_initialize_breakpoint): Add new commands.
4415 * common/ax.def (printf): New bytecode.
4416 * ax.h (ax_string): Declare.
4417 * ax-gdb.h (gen_printf): Declare.
4418 * ax-gdb.c: Include cli-utils.h, format.h.
4419 (gen_printf): New function.
4420 (maint_agent_print_command): New function.
4421 (_initialize_ax_gdb): Add maint agent-printf command.
4422 * ax-general.c (ax_string): New function.
4423 (ax_print): Add printf disassembly.
4424 * Makefile.in (SFILES): Add format.c
4425 (COMMON_OBS): Add format.o.
4426 * common/format.h: New file.
4427 * common/format.c: New file.
4428 * printcmd.c: Include format.h.
4429 (ui_printf): Call parse_format_string.
4430 * remote.c (remote_state): New field breakpoint_commands.
4431 (PACKET_BreakpointCommands): New enum.
4432 (remote_breakpoint_commands_feature): New function.
4433 (remote_protocol_features): Add new BreakpointCommands entry.
4434 (remote_can_run_breakpoint_commands): New function.
4435 (remote_add_target_side_commands): New function.
4436 (remote_insert_breakpoint): Call it.
4437 (remote_insert_hw_breakpoint): Ditto.
4438 (_initialize_remote): Add new packet configuration for
4439 target-side breakpoint commands.
4440 * target.h (struct target_ops): New field
4441 to_can_run_breakpoint_commands.
4442 (target_can_run_breakpoint_commands): New macro.
4443 * target.c (update_current_target): Handle
4444 to_can_run_breakpoint_commands.
4445
2d7b58e8
JK
44462012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4447
4448 Execute -ix and -iex only after system and user gdbinit files.
4449 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4450 processing down after gdbinit files.
4451
8690e634
JK
44522012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4453
4454 Add fnmatch-gnu module.
4455 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4456 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4457 * gnulib/aclocal.m4: Regenerate.
4458 * gnulib/config.in: Regenerate.
4459 * gnulib/configure: Regenerate.
4460 * gnulib/import/dummy.c: Remove.
4461 * gnulib/import/Makefile.am: Regenerate.
4462 * gnulib/import/Makefile.in: Likewise.
4463 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4464 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4465 * gnulib/import/alloca.c: New file.
4466 * gnulib/import/alloca.in.h: Likewise.
4467 * gnulib/import/config.charset: Likewise.
4468 * gnulib/import/fnmatch.c: Likewise.
4469 * gnulib/import/fnmatch.in.h: Likewise.
4470 * gnulib/import/fnmatch_loop.c: Likewise.
4471 * gnulib/import/localcharset.c: Likewise.
4472 * gnulib/import/localcharset.h: Likewise.
4473 * gnulib/import/m4/alloca.m4: Likewise.
4474 * gnulib/import/m4/codeset.m4: Likewise.
4475 * gnulib/import/m4/configmake.m4: Likewise.
4476 * gnulib/import/m4/fcntl-o.m4: Likewise.
4477 * gnulib/import/m4/fnmatch.m4: Likewise.
4478 * gnulib/import/m4/glibc21.m4: Likewise.
4479 * gnulib/import/m4/localcharset.m4: Likewise.
4480 * gnulib/import/m4/locale-fr.m4: Likewise.
4481 * gnulib/import/m4/locale-ja.m4: Likewise.
4482 * gnulib/import/m4/locale-zh.m4: Likewise.
4483 * gnulib/import/m4/mbrtowc.m4: Likewise.
4484 * gnulib/import/m4/mbsinit.m4: Likewise.
4485 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4486 * gnulib/import/m4/mbstate_t.m4: Likewise.
4487 * gnulib/import/m4/stdbool.m4: Likewise.
4488 * gnulib/import/m4/wchar_h.m4: Likewise.
4489 * gnulib/import/m4/wctype_h.m4: Likewise.
4490 * gnulib/import/m4/wint_t.m4: Likewise.
4491 * gnulib/import/mbrtowc.c: Likewise.
4492 * gnulib/import/mbsinit.c: Likewise.
4493 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4494 * gnulib/import/mbsrtowcs-state.c: Likewise.
4495 * gnulib/import/mbsrtowcs.c: Likewise.
4496 * gnulib/import/ref-add.sin: Likewise.
4497 * gnulib/import/ref-del.sin: Likewise.
4498 * gnulib/import/stdbool.in.h: Likewise.
4499 * gnulib/import/streq.h: Likewise.
4500 * gnulib/import/strnlen1.c: Likewise.
4501 * gnulib/import/strnlen1.h: Likewise.
4502 * gnulib/import/verify.h: Likewise.
4503 * gnulib/import/wchar.in.h: Likewise.
4504 * gnulib/import/wctype.in.h: Likewise.
4505
202cbf1c
JK
45062012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4507
4508 Support shell wildcards for 'set auto-load safe-path'.
4509 * auto-load.c: Include fnmatch.h.
4510 (filename_is_in_dir): Rename to ...
4511 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4512 it. Update function comment. Rename dir_len to pattern_len. New
4513 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4514 messages. Use gdb_filename_fnmatch.
4515 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4516 pattern.
4517 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4518 * defs.h (gdb_filename_fnmatch): New declaration.
4519 * utils.c: Include fnmatch.h.
4520 (gdb_filename_fnmatch): New function.
4521
fb7b5af4
SDJ
45222012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4523
4524 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4525 `-probe' and `-probe-stap' options.
4526
72d0e2c5
YQ
45272012-07-01 Yao Qi <yao@codesourcery.com>
4528
4529 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4530 always_inserted_off, and always_inserted_enums.
4531 Change always_inserted_mode's type to 'enum auto_boolean'.
4532 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4533 callers.
4534 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4535 of add_setshow_enum_cmd.
4536 * infrun.c: Remove can_use_displaced_stepping_auto,
4537 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4538 can_use_displaced_stepping_enum.
4539 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4540 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4541 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4542 add_setshow_enum_cmd.
4543
42e7ad6c
DE
45442012-06-30 Doug Evans <dje@google.com>
4545
4546 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4547 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4548 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4549
39cf75f7
DE
45502012-06-29 Doug Evans <dje@google.com>
4551
4552 * linespec.c: #include "stack.h".
4553 (decode_line_with_current_source): Moved here from symtab.c and
4554 renamed from decode_line_spec. All callers updated.
4555 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4556 renamed from decode_line_spec_1. All callers updated.
4557 * linespec.h (decode_line_with_current_source): Move declaration here
4558 from symtab.h and renamed from decode_line_spec.
4559 (decode_line_with_last_displayed): Move declaration here from symtab.h
4560 and renamed from decode_line_spec_1.
4561 * macrocmd.c: #include "linespec.h".
4562 * symtab.c: Remove #include "linespec.h".
4563
433df2d4
DE
45642012-06-28 Doug Evans <dje@google.com>
4565
1ce1cefd
DE
4566 * dwarf2read.c (get_cu_length): New function.
4567 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4568 (create_debug_types_hash_table): Ditto.
4569 (init_cutu_and_read_dies): Ditto.
4570 (init_cutu_and_read_dies_no_follow): Ditto.
4571
3b80fe9b
DE
4572 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4573
433df2d4
DE
4574 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4575 (struct abbrev_table): Define.
4576 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4577 abbrev_table.
4578 (init_cutu_and_read_dies): Update.
4579 (abbrev_table_alloc_abbrev): New function. Replaces
4580 dwarf_alloc_abbrev. All callers updated.
4581 (abbrev_table_add_abbrev): New function.
4582 (abbrev_table_lookup_abbrev): New function. Replaces
4583 dwarf2_lookup_abbrev. All callers updated.
4584 (abbrev_table_read_table): New function. Contents moved here from
4585 dwarf2_read_abbrevs.
4586 (dwarf2_read_abbrevs): Call it.
4587 (abbrev_table_free): New function.
4588 (dwarf2_free_abbrev_table): Call it.
4589
71caed83
SS
45902012-06-28 Stan Shebs <stan@codesourcery.com>
4591
4592 * osdata.c (info_osdata_command): Filter out "Title" columns
4593 from non-MI uses.
4594 * common/linux-osdata.c (struct osdata_type): Add title field.
4595 (osdata_table): Add titles to each entry.
4596 (linux_command_xfer_osdata): Add a column for title data.
4597
37ce89eb
SS
45982012-06-28 Stan Shebs <stan@codesourcery.com>
4599
4600 Make logging work for MI.
4601 * NEWS: Mention it.
4602 * interps.h (interp_set_logging_ftype): New typedef.
4603 (struct interp_procs): New field set_logging_proc.
4604 (current_interp_set_logging): Declare.
4605 * interps.c (current_interp_set_logging): New function.
4606 * cli/cli-logging.c: Include interps.h.
4607 (set_logging_redirect): Call current_interp_set_logging.
4608 (pop_output_files): Ditto.
4609 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4610 * mi/mi-console.h (mi_console_set_raw): Declare.
4611 * mi/mi-console.c (mi_console_set_raw): New function.
4612 * mi/mi-interp.c (saved_raw_stdout): New global.
4613 (mi_set_logging): New function.
4614 (_initialize_mi_interp): Add it to interp procs.
4615
659c9f3a
DE
46162012-06-28 Doug Evans <dje@google.com>
4617
a743abeb
DE
4618 * symtab.c (lookup_symbol_aux_objfile): Use
4619 ALL_OBJFILE_PRIMARY_SYMTABS.
4620
659c9f3a
DE
4621 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4622
da2d6d3d
JK
46232012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 * common/buffer.c: Include inttypes.h and stdint.h.
4626 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4627
e5ef252a
PA
46282012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4629 Pedro Alves <palves@redhat.com>
4630
4631 * gdbthread.h (ALL_THREADS): New macro.
4632 (thread_list): Declare.
4633 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4634 going, but instead fall through to the stepping handling.
4635 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4636 the passed in signal. Adjust debug output.
4637 (resume_callback): Rename to ...
4638 (linux_nat_resume_callback): ... this. Pass the thread's last
4639 stop signal, if in "pass" state.
4640 (linux_nat_resume): Adjust to rename.
4641 (stop_wait_callback): New assertion. Don't respawn signals;
4642 instead let the LWP remain with SIGNALLED set.
4643 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4644 * remote.c (append_pending_thread_resumptions): New.
4645 (remote_vcont_resume): Call it.
4646 * target.h (target_resume): Extend comment.
4647
1d7975eb
IS
46482012-06-28 Iain Sandoe <iain@codesourcery.com>
4649
4650 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4651
2e3cf129
DE
46522012-06-27 Doug Evans <dje@google.com>
4653
4654 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4655 Delete have_addr_base, unused. All uses updated.
4656 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4657 (dwarf2_get_pc_bounds): Add ranges_base.
4658 (dwarf2_record_block_ranges): Ditto.
4659
1bb9788d
TT
46602012-06-27 Tom Tromey <tromey@redhat.com>
4661
4662 PR macros/7961:
4663 * varobj.c (varobj_create): Update.
4664 (varobj_set_value): Update.
4665 * tracepoint.c (validate_actionline): Update.
4666 (encode_actions_1): Update.
4667 * parse.c (parse_exp_1): Add 'pc' argument.
4668 (parse_exp_in_context): Add 'pc' argument. Change how
4669 expression_context_pc is set.
4670 (parse_expression): Update.
4671 (parse_field_expression): Update.
4672 * expression.h (parse_exp_1): Update.
4673 * eval.c (parse_to_comma_and_eval): Update.
4674 * breakpoint.c (set_breakpoint_condition): Update.
4675 (update_watchpoint): Update.
4676 (init_breakpoint_sal): Update
4677 (find_condition_and_thread): Update.
4678 (watch_command_1): Update.
4679 (update_breakpoint_locations): Update.
4680 * ada-lang.c (ada_read_renaming_var_value): Update.
4681 (create_excep_cond_exprs): Update.
4682
0bc3a05c
DE
46832012-06-27 Doug Evans <dje@google.com>
4684
4685 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4686 type units.
4687
4bdcc0c1
DE
46882012-06-26 Doug Evans <dje@google.com>
4689
4690 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4691 prototype.
4692 (error_check_comp_unit_head): New arg abbrev_section. All callers
4693 updated.
4694 (read_and_check_comp_unit_head): Ditto.
4695 (read_and_check_type_unit_head): Ditto.
4696
ee0bf529
SCR
46972012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4698
4699 New attribute 'last' for gdb.Symtab_and_line.
4700 * NEWS (Python Scripting): Add entry about the new attribute.
4701 * python/py-symtab.c (salpy_get_last): New function which
4702 implements the get method for the 'last' attribute of
4703 gdb.Symtab_and_line.
4704 (sal_object_getset): Add entry for the 'last' attribute.
4705
1c658ad5
DE
47062012-06-26 Doug Evans <dje@google.com>
4707
09262596
DE
4708 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4709 (dwo_sections): Add macinfo, macro.
4710 (dwarf2_locate_dwo_sections): Watch for macro sections.
4711 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4712 All callers updated. Handle DWO files.
4713
45cfd468
DE
4714 * NEWS: Mention new options "set debug dwarf2-read" and
4715 "set debug symtab-create".
4716 * dwarf2read.c (dwarf2_read_debug): New static global.
4717 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4718 (process_queue): Ditto.
4719 (process_full_comp_unit): Ditto.
4720 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4721 * elfread.c (elf_symfile_read): Add debugging printf.
4722 * minsyms.c (install_minimal_symbols): Ditto.
4723 * psymtab.c (allocate_psymtab): Ditto.
4724 * symfile.c (allocate_symtab): Ditto.
4725 * symtab.c (symtab_create_debug): New global.
4726 (_initialize_symtab): Add new option "set debug symtab-create".
4727 * symtab.h (symtab_create_debug): Declare.
4728
1c658ad5
DE
4729 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4730 (lookup_dwo_type_unit): Ditto.
4731
6fea9e18
L
47322012-06-26 Roland McGrath <roland@hack.frob.com>
4733 H.J. Lu <hongjiu.lu@intel.com>
4734
4735 * amd64-linux-nat.c: Include <sys/user.h>.
4736 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4737 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4738 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4739
4740 * configure.ac: Check if the fs_base and gs_base members of
4741 `struct user_regs_struct' exist.
4742 * config.in: Regenerated.
4743 * configure: Likewise.
4744
adb4fe3b
ME
47452012-06-25 Michael Eager <eager@eagercon.com>
4746
4747 PR python/14291
f782ad9b 4748 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4749
fc51cce1
MGD
47502012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4751
4752 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4753 register as a stack alignment in ARM mode.
4754
40a73391
JK
47552012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4756
4757 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4758 * gnulib/config.in: Regenerate.
4759 * gnulib/configure: Likewise.
4760 * gnulib/import/m4/extensions.m4: Update it.
4761 * gnulib/import/m4/gnulib-common.m4: Likewise.
4762 * gnulib/import/m4/memmem.m4: Likewise.
4763 * gnulib/import/m4/mmap-anon.m4: Likewise.
4764 * gnulib/import/m4/multiarch.m4: Likewise.
4765 * gnulib/import/stdint.in.h: Likewise.
4766
972daa01
YQ
47672012-06-24 Yao Qi <yao@codesourcery.com>
4768
4769 * corefile.c (write_memory_with_notification): New.
4770 * gdbcore.h: Declare write_memory_with_notification.
4771 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4772 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4773 * valops.c (value_assign): Likewise.
4774 * python/py-inferior.c (infpy_write_memory): Call
4775 'write_memory_with_notification'.
4776
8d6e0714
JK
47772012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 * cc-with-index.sh: Use also -ex "set auto-load no".
4780
156942c7
DE
47812012-06-23 Doug Evans <dje@google.com>
4782
4783 PR 14125
4784 * NEWS: Document additions to .gdb_index.
4785 * dwarf2read.c: #include "gdb/gdb-index.h".
4786 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4787 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4788 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4789 (dwarf2_read_index): Recognize version 7.
4790 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4791 block_kind, domain): All callers updated.
4792 (dw2_find_symbol_file): Handle new index CU values.
4793 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4794 (add_index_entry): New args is_static, kind. All callers updated.
4795 (offset_type_compare, uniquify_cu_indices): New functions
4796 (symbol_kind): New function.
4797 (write_psymtabs_to_index): Remove duplicate CU values.
4798 (write_psymtabs_to_index): Write .gdb_index version 7.
4799
352b3eda
JB
48002012-06-22 Joel Brobecker <brobecker@adacore.com>
4801
4802 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4803 * configure: Regenerate.
4804
2678e2af
YQ
48052012-06-20 Yao Qi <yao@codesourcery.com>
4806
4807 * python/py-inferior.c: Update comments of infpy_read_memory
4808 and infpy_write_memory.
4809
95c391b6
TT
48102012-06-19 Tom Tromey <tromey@redhat.com>
4811
4812 PR exp/9514:
4813 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4814 (push_type_address_space): Remove.
4815 * parse.c (insert_into_type_stack): New function.
4816 (insert_type): Likewise.
4817 (insert_type_address_space): Rename from push_type_address_space.
4818 Insert tp_space_identifier.
4819 * c-exp.y (ptr_operator): New production.
4820 (abs_decl): Use ptr_operator.
4821 (space_identifier): Call insert_type_address_space.
4822 (ptype): Don't use const_or_volatile_or_space_identifier.
4823 (const_or_volatile_noopt): Call insert_type.
4824 (conversion_type_id, conversion_declarator): New productions.
4825 (operator): Use conversion_type_id.
4826
6ac9ef80
DE
48272012-06-18 Doug Evans <dje@google.com>
4828
422d65e7
DE
4829 * symtab.h (minimal_symbol): New member created_by_gdb.
4830 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4831 created by gdb.
4832 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4833 (search_symbols): Call it instead of lookup_symbol.
4834 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4835
49f6c839
DE
4836 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4837 Adjust address for DW_OP_GNU_addr_index.
4838 * dwarf2expr.h (dwarf_expr_context): Update comment.
4839 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4840 all callers updated. Handle TLS vars described with
4841 DW_OP_GNU_const_index.
4842 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4843 and DW_OP_GNU_const_index.
4844 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4845
6ac9ef80
DE
4846 * block.c (find_block_in_blockvector): Make explicit the fact that we
4847 ignore GLOBAL_BLOCK.
4848
4cd18215
TT
48492012-06-18 Tom Tromey <tromey@redhat.com>
4850
4851 * c-exp.y (operator): Remove trailing space after "delete" and
4852 "delete[]".
4853
a9b8d892
JK
48542012-06-18 Mark Kettenis <kettenis@gnu.org>
4855 Jan Kratochvil <jan.kratochvil@redhat.com>
4856
4857 Switch i386 and derived targets to ON_STACK.
4858 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4859 (amd64_dicos_init_abi): Remove its installment.
4860 * dicos-tdep.c (dicos_init_abi): Remove the
4861 set_gdbarch_call_dummy_location call. Update the comment here.
4862 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4863 (i386_dicos_init_abi): Remove its installment.
4864 * i386-tdep.c (i386_push_dummy_code): New function.
4865 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4866 i386_push_dummy_code.
4867
e2e4d78b
JK
48682012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4869
4870 Remove stale dummy frames.
4871 * breakpoint.c: Include dummy-frame.h.
4872 (longjmp_breakpoint_ops): New variable.
4873 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4874 bp_longjmp_call_dummy.
4875 (bpstat_what, bptype_string, print_one_breakpoint_location)
4876 (init_bp_location): Support bp_longjmp_call_dummy.
4877 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4878 (set_longjmp_breakpoint_for_call_dummy)
4879 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4880 functions.
4881 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4882 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4883 FIXME comment and extend the other comment for bp_call_dummy.
4884 (set_longjmp_breakpoint_for_call_dummy)
4885 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4886 * dummy-frame.c: Include gdbthread.h.
4887 (pop_dummy_frame_bpt): New function.
4888 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4889 (dummy_frame_discard): New function.
4890 (cleanup_dummy_frames): Update the comment about longjmps.
4891 * dummy-frame.h (dummy_frame_discard): New declaration.
4892 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4893 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4894 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4895 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4896 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4897 keep_going if IS_LONGJMP and there is no other reason to stop.
4898
09d5912c
TT
48992012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4900
4901 * remote-sim.c (sim_command_completer): Initialize
4902 variable 'result'.
4903
1788b2d3
JK
49042012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4905
4906 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4907 * dwarf2loc.c (call_site_parameter_matches): Support
4908 CALL_SITE_PARAMETER_PARAM_OFFSET.
4909 (needs_dwarf_reg_entry_value): Push stub value.
4910 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4911 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4912 * gdbtypes.h (enum call_site_parameter_kind): New item
4913 CALL_SITE_PARAMETER_PARAM_OFFSET.
4914 (struct call_site.parameter.u): New field param_offset.
4915
24c5c679
JK
49162012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4917
4918 Code cleanup: Generalize call_site.parameter key.
4919 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4920 variable dwarf_reg. New variable kind_u. Update parameters to
4921 push_dwarf_reg_entry_value.
4922 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4923 * dwarf2expr.h (enum call_site_parameter_kind)
4924 (union call_site_parameter_u): Forward declarations.
4925 (struct dwarf_expr_context_funcs): Update parameters and their
4926 description for push_dwarf_reg_entry_value.
4927 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4928 * dwarf2loc.c (call_site_parameter_matches): New function.
4929 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4930 description. Use call_site_parameter_matches.
4931 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4932 Update parameters and their description.
4933 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4934 New variable kind_u. Adjust the caller for updated parameters.
4935 (needs_dwarf_reg_entry_value): Update parameters.
4936 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4937 instead of attr. Update for the changed fields of struct
4938 call_site_parameter.
4939 * gdbtypes.h: Include dwarf2expr.h.
4940 (enum call_site_parameter_kind): New.
4941 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4942 fb_offset into new union u.
4943
ac142d96
L
49442012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4945
4946 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4947 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4948 for x32.
4949
ba224c70
L
49502012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4951
4952 * amd64-linux-nat.c (compat_x32_clock_t): New.
4953 (compat_x32_siginfo_t): Likewise.
4954 (compat_x32_siginfo_from_siginfo): Likewise.
4955 (siginfo_from_compat_x32_siginfo): Likewise.
4956 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4957 and siginfo_from_compat_x32_siginfo for x32.
4958
7ecbc825
HZ
49592012-06-15 Hui Zhu <hui_zhu@mentor.com>
4960
4961 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4962
233dfcf0
L
49632012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4964
4965 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4966 instead of gdbarch_ptr_bit.
4967 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4968 (amd64_supply_native_gregset): Likewise.
4969 (amd64_collect_native_gregset): Likewise.
4970 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4971 (amd64_supply_xsave): Likewise.
4972 (amd64_collect_fxsave): Likewise.
4973 (amd64_collect_xsave): Likewise.
4974
6da38f42
L
49752012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4976
4977 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4978 (amd64_linux_read_description): Check DS segment register for
4979 x32 process.
4980
663b969e
TT
49812012-06-15 Tom Tromey <tromey@redhat.com>
4982
4983 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4984 init_cutu_and_read_dies.
4985
d6f05027
IS
49862012-06-15 Iain Sandoe <iain@codesourcery.com>
4987
4988 * MAINTAINERS (Write After Approval): Add myself to the list.
4989
6598ed07
TT
49902012-06-15 Tom Tromey <tromey@redhat.com>
4991
4992 * valops.c (value_find_oload_method_list): Now static.
4993 * value.h (value_find_oload_method_list): Don't declare.
4994
2b214ea6
TT
49952012-06-15 Tom Tromey <tromey@redhat.com>
4996
4997 * valops.c (find_overload_match): Use value_ind.
4998
a210c238
MR
49992012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5000
5001 * infrun.c (handle_inferior_event): Correct indentation.
5002
3771a44c
DE
50032012-06-14 Doug Evans <dje@google.com>
5004
5005 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5006 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5007 All uses updated.
5008 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5009 updated. Handle DEBUG_LOC_START_LENGTH.
5010 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5011 (loclist_describe_location): Ditto.
5012
1c5a993e
MR
50132012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5014
5015 PR backtrace/13866
5016 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5017 after hiding inline functions.
5018
0b155465
JB
50192012-06-13 Joel Brobecker <brobecker@adacore.com>
5020
5021 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5022 _initialize_inf_ttrace.
5023
45717bac
JB
50242012-06-13 Joel Brobecker <brobecker@adacore.com>
5025
5026 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5027 _initialize_hppa_hpux_nat.
5028
34370865
JB
50292012-06-13 Joel Brobecker <brobecker@adacore.com>
5030
5031 * remote-sim.c (sim_command_completer): Change type of return
5032 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5033
284c5a60
MK
50342012-06-13 Mark Kettenis <kettenis@gnu.org>
5035 Jan Kratochvil <jan.kratochvil@redhat.com>
5036
5037 PR tdep/14222
5038 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5039 stack on a 16-byte boundary.
5040
2535757a
TT
50412012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5042
5043 * jit.c (finalize_symtab): Set function's return type to 'void' by
5044 default.
5045
fff4548b
MK
50462012-06-13 Mark Kettenis <kettenis@gnu.org>
5047 H.J. Lu <hongjiu.lu@intel.com>
5048
5a83521a
MK
5049 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5050 Move bits common to both the classic LP64 and the new x32 ILP32
5051 ABI here.
5052 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5053 (amd64_x32_linux_init_abi): New function.
5054 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5055 subtype.
5056
fff4548b
MK
5057 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5058 * i386-tdep.c (i386_pseudo_register_name): Make public.
5059 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5060 * amd64-tdep.c (amd64_dword_names): Add "eip".
5061 (amd64_x32_pseudo_register_type): New function
5062 (amd64_x32_init_abi): New function.
5063
dd80ea3c
JK
50642012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5065
5066 PR build/14003
5067 * inferior.h (struct inferior_suspend_state): Comment out.
5068 (struct inferior): Comment out the field suspend.
5069 * infrun.c (struct infcall_suspend_state): Comment out the field
5070 inferior_suspend.
5071 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5072 out its assignment.
5073
50af5481
JK
50742012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5075
5076 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5077 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5078 function comment. Return ERROR for unresolved cases. Implement
5079 returning proper NAME.
5080 (yylex): Accept also NAME from classify_inner_name.
5081 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5082 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5083 LOC_TYPEDEF type.
5084 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5085
d55637df
TT
50862012-06-13 Tom Tromey <tromey@redhat.com>
5087
5088 * breakpoint.c (condition_completer): New function.
5089 (_initialize_breakpoint): Use it.
5090 * value.c (complete_internalvar): New function.
5091 * value.h (complete_internalvar): Declare.
5092
49c4e619
TT
50932012-06-13 Tom Tromey <tromey@redhat.com>
5094
5095 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5096 * breakpoint.c (catch_syscall_completer): Return a VEC.
5097 * cli/cli-cmds.c (complete_command): Update.
5098 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5099 (complete_on_enum): Likewise.
5100 * command.h: Include gdb_vecs.h.
5101 (completer_ftype): Change return type.
5102 (complete_on_cmdlist, complete_on_enum): Likewise.
5103 * completer.c (noop_completer, filename_completer)
5104 (location_completer): Return a VEC.
5105 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5106 to a VEC.
5107 (expression_completer, complete_line_internal, complete_line)
5108 (command_completer): Return a VEC.
5109 (gdb_completion_word_break_characters, line_completion_function):
5110 Update.
5111 * completer.h: Include gdb_vecs.h.
5112 (complete_line, noop_completer, filename_completer)
5113 (expression_completer, location_completer, command_completer):
5114 Update.
5115 * f-lang.c (f_word_break_characters): Return a VEC.
5116 * interps.c (interpreter_completer): Return a VEC.
5117 * language.h (struct language_defn)
5118 <la_make_symbol_completion_list>: Return a VEC.
5119 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5120 * symtab.c (free_completion_list): Take a VEC.
5121 (return_val_size, return_val_index): Remove.
5122 (return_val): Now a VEC.
5123 (completion_list_add_name): Update.
5124 (default_make_symbol_completion_list_break_on)
5125 (default_make_symbol_completion_list, make_symbol_completion_list)
5126 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5127 Return a VEC.
5128 (add_filename_to_list): Update.
5129 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5130 <list>: Now a VEC.
5131 (maybe_add_partial_symtab_filename): Update.
5132 (make_source_files_completion_list): Return a VEC.
5133 * symtab.h (default_make_symbol_completion_list_break_on)
5134 (default_make_symbol_completion_list, make_symbol_completion_list)
5135 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5136 (make_source_files_completion_list): Update.
5137
625e8578
TT
51382012-06-13 Tom Tromey <tromey@redhat.com>
5139
5140 * breakpoint.c (add_catch_command): Use completer_ftype.
5141 * breakpoint.h: Include command.h.
5142 (add_catch_command): Use completer_ftype.
5143 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5144 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5145 Use completer_ftype.
5146 * command.h (completer_ftype): New typedef.
5147 (set_cmd_completer): Use it.
5148 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5149 completer_ftype.
5150
5eb3b062
PA
51512012-06-13 Pedro Alves <palves@redhat.com>
5152
5153 Partial revert of previous change.
5154
5155 * serial.c (scb_base): New global.
5156 (serial_for_fd): New.
5157 (serial_open, serial_fdopen_ops): Link new serial in open serials
5158 chain.
5159 (do_serial_close): Unlink serial from the open serials chain.
5160
8b3ee56d
PA
51612012-06-12 Pedro Alves <palves@redhat.com>
5162
5163 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5164 threads here.
5165 (prepare_for_detach): No longer context switch here in non-stop
5166 mode.
5167 (fetch_inferior_event): Ditto.
5168 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5169 to the event thread before removing breakpoints. Switch to the
5170 event thread before inserting breakpoints and resuming.
5171 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5172 event thread before resuming.
5173 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5174 Switch to the event thread before removing breakpoints.
5175
5d60742e
EZ
51762012-06-12 Eli Zaretskii <eliz@gnu.org>
5177
5178 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5179 special characters correctly for the Windows shells. See
5180 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5181 report.
5182 [!__MINGW32__]: Remove extra double quote character from special
5183 characters.
5184
a6feecf7
SS
51852012-06-11 Stan Shebs <stan@codesourcery.com>
5186
5187 * ui-out.h: Remove #if 0 declarations.
5188 * ui-out.c: Remove #if 0 functions.
5189
ddefb60f
PA
51902012-06-11 Pedro Alves <palves@redhat.com>
5191
5192 * ser-base.c (run_async_handler_and_reschedule): New.
5193 (fd_event, push_event): Use it.
5194 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5195 reference count to 1.
5196 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5197 instead of xfree.
5198 (serial_is_open, serial_ref, serial_unref): New.
5199 * serial.h (serial_open): Adjust comment.
5200 (serial_is_open): Declare.
5201 (serial_close): Adjust comment.
5202 (serial_ref, serial_unref) Declare.
5203 (struct serial): New field 'refcnt'.
5204
d5ad6aa5
PA
52052012-06-11 Pedro Alves <palves@redhat.com>
5206
5207 Remove #if 0'd "connect" command, and unnecessary associated
5208 refcounting and serial reuse bits.
5209
5210 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5211 * serial.c (last_serial_opened): Delete.
5212 (scb_base): Delete.
5213 (serial_open): Adjust.
5214 (serial_for_fd): Delete.
5215 (serial_fdopen_ops, do_serial_close): Adjust.
5216 (serial_fdopen_ops): Adjust.
5217
318aa544
PA
52182012-06-11 Pedro Alves <palves@redhat.com>
5219
5220 * serial.c (do_serial_close): Remove early return when SCB is
5221 null.
5222
07261596
TT
52232012-06-11 Tom Tromey <tromey@redhat.com>
5224
5225 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5226
cc80f267
JK
52272012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 Fix regression by the "ambiguous linespec" series.
5230 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5231 get_last_displayed_symtab and get_last_displayed_line and depending
5232 on CURSAL.
5233
356d9f9d
TT
52342012-06-11 Tom Tromey <tromey@redhat.com>
5235
5236 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5237 (dw2_find_symbol_file): Use it.
5238
232b8704
ME
52392012-06-11 Michael Eager <eager@eagercon.com>
5240
5241 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5242 * mips-linux-tdep.h (mips_signals): New
5243
e81a37f7
TT
52442012-06-11 Tom Tromey <tromey@redhat.com>
5245
5246 * infrun.c (handle_inferior_event)
5247 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5248 breakpoint.
5249 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5250 exception logic in all cases. Update comments.
5251 (insert_longjmp_resume_breakpoint): Set the exception resume
5252 breakpoint.
5253
2e81047f
MR
52542012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5255
5256 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5257
4e32eda7
SCR
52582012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5259
5260 * valarith.c (binop_types_user_defined_p): Fix a typo.
5261
18648a37 52622012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5263 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5264
5265 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5266 * arch-utils.h: Declare.
5267 * gdbarch.sh: Add return_in_first_hidden_param_p.
5268 * gdbarch.c, gdbarch.h: Regenerated.
5269 * infcall.c (call_function_by_hand): Call
5270 gdbarch_return_in_first_hidden_param_p instead of
5271 language_pass_by_reference.
5272
5273 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5274 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5275 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5276 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5277 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5278 `cplus_return_struct_by_reference'.
5279 (tic6x_return_value): Handle language cplusplus.
5280 (tic6x_return_in_first_hidden_param_p): New.
5281 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5282
034e5797
DE
52832012-06-07 Doug Evans <dje@google.com>
5284
5285 * dwarf2read.c (dwarf2_cu): Add comment.
5286
6a00aa1e
MR
52872012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5288
5289 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5290 variable.
5291 (mips_eabi_push_dummy_call): Likewise.
5292 (mips_n32n64_push_dummy_call): Likewise.
5293 (mips_o32_push_dummy_call): Likewise.
5294 (mips_o64_push_dummy_call): Likewise.
5295
eaa05d59
MR
52962012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5297
5298 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5299
de13fcf2
MR
53002012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5301
5302 * mips-tdep.c (mips_pseudo_register_type): Use
5303 mips_float_register_p.
5304
c3a01a22
PA
53052012-06-06 Pedro Alves <palves@redhat.com>
5306
5307 * infrun.c (handle_inferior_event): Remove calls to
5308 reinit_frame_cache that follow a context_switch call.
5309
d25f45d9
PA
53102012-06-06 Pedro Alves <palves@redhat.com>
5311
5312 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5313 context_switch and remove stale comment.
5314
359f5fe6
PA
53152012-06-06 Pedro Alves <palves@redhat.com>
5316
5317 * infrun.c (struct execution_control_state): Remove
5318 `new_thread_event' field.
5319 (handle_inferior_event): Simplify new threads handling; don't
5320 resume the inferior if we find a new thread.
5321
2d4c29c5
TS
53222012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5323
5324 * NEWS: Document the deprecation of SH's 'regs' command.
5325 * inferior.h (all_registers_info): Add function declaration.
5326 * sh-tdep.c (sh_show_regs): Remove variable.
5327 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5328 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5329 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5330 (sh_show_regs_command): Remove functions.
5331 (sh_gdbarch_init): Don't set sh_show_regs.
5332 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5333 'info all-registers'.
5334 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5335 (sh64_show_regs): Remove functions.
5336 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5337
f5f1cdb6
JK
53382012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5339
5340 * configure.ac: Move development=true below AC_INIT.
5341 * configure: Regenerate.
5342
bf6309af
SS
53432012-06-05 Stan Shebs <stan@codesourcery.com>
5344
5345 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5346 gdb_stdout.
5347
45aa4659
JK
53482012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5349
5350 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5351 argument as ssize_t.
5352 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5353 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5354 * target.c (target_read_stack, target_write_memory)
5355 (target_write_raw_memory): Likewise.
5356 * target.h (target_read_stack, target_write_memory)
5357 (target_write_raw_memory): Likewise.
5358
1b162304
JK
53592012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5360
5361 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5362 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5363 * target.c (target_read_memory): Change LEN to ssize_t.
5364 * target.h (target_read_memory): Change LEN to ssize_t.
5365
8556afb4
PA
53662012-06-05 Pedro Alves <palves@redhat.com>
5367
5368 PR backtrace/13866
5369
5370 * breakpoint.c (until_break_command): Only fetch the selected
5371 frame after decode_line_1.
5372
fb139f32
PA
53732012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5374
5375 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5376 event breakpoint at _start, __start or main if a program
5377 interpreter is not found.
5378
a8e1bb34
JB
53792012-06-05 Joel Brobecker <brobecker@adacore.com>
5380
5381 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5382 Add declaration.
5383 * windows-tdep.c: #include "objfiles.h".
5384 (windows_iterate_over_objfiles_in_search_order): New function.
5385 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5386 iterate_over_objfiles_in_search_order gdbarch method to
5387 windows_iterate_over_objfiles_in_search_order.
5388 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5389
19630284
JB
53902012-06-05 Joel Brobecker <brobecker@adacore.com>
5391
5392 * gdbarch.sh: Add generation of
5393 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5394 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5395 (iterate_over_objfiles_in_search_order): New gdbarch method.
5396 * gdbarch.h, gdbarch.c: Regenerate.
5397 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5398 Add declaration.
5399 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5400 New function.
5401 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5402 out of lookup_symbol_aux_symtabs.
5403 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5404 call to lookup_symbol_aux_objfile.
5405 (struct global_sym_lookup_data): New type.
5406 (lookup_symbol_global_iterator_cb): New function.
5407 (lookup_symbol_global): Search for symbol using
5408 gdbarch_iterate_over_objfiles_in_search_order and
5409 lookup_symbol_global_iterator_cb.
5410 * findvar.c (struct minsym_lookup_data): New type.
5411 (minsym_lookup_iterator_cb): New function.
5412 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5413 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5414 and minsym_lookup_iterator_cb.
5415
67ff19f7
JB
54162012-06-05 Joel Brobecker <brobecker@adacore.com>
5417
5418 Revert the following patch:
5419 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5420 try locating the symbol in the symbol's own objfile first, before
5421 extending the search to all objfiles.
5422 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5423 out of lookup_symbol_aux_symtabs.
5424 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5425 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5426 Do not search EXCLUDE_OBJFILE.
5427 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5428 (lookup_symbol_global): Search for matches in the block's objfile
5429 first, before searching all other objfiles.
5430
ccab2054
JB
54312012-06-05 Joel Brobecker <brobecker@adacore.com>
5432
5433 * breakpoint.c (find_condition_and_thread): Stop parsing
5434 as soon as the first invalid keyword is found.
5435
e23d4a9c
JB
54362012-06-05 Joel Brobecker <brobecker@adacore.com>
5437
5438 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5439
70160166
JB
54402012-06-05 Joel Brobecker <brobecker@adacore.com>
5441
5442 * config/djgpp/djcheck.sh: Add copyright header.
5443
399501a5
JB
54442012-06-05 Joel Brobecker <brobecker@adacore.com>
5445
5446 * copyright.py (update_files, main): Fix path to update-copyright
5447 script.
5448
3770a159
JB
54492012-06-05 Joel Brobecker <brobecker@adacore.com>
5450
5451 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5452 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5453 for which a reminder to update by hand is printed.
5454
4aad0dfc
DE
54552012-06-04 Doug Evans <dje@google.com>
5456
5457 * buildsym.c (make_blockvector): Add comment.
5458
1f8cf220
PA
54592012-06-04 Pedro Alves <palves@redhat.com>
5460
5461 * arch-utils.c (default_gdb_signal_from_target): Delete.
5462 * arch-utils.h (default_gdb_signal_from_target): Delete.
5463 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5464 gdbarch_gdb_signal_from_target_p.
5465 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5466 predicate).
5467 * gdbarch.h: Regenerate.
5468 * gdbarch.c: Regenerate.
5469
86b49880
PA
54702012-06-04 Pedro Alves <palves@redhat.com>
5471
5472 * gdbarch.sh (gdb_signal_from_target): Mention that the
5473 implementation of the method must be host independent.
5474 * gdbarch.h: Regenerate.
5475
fe78531d
JK
54762012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5477
5478 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5479 parameters.
5480 (target_read_memory_bfd): New function.
5481 (symbol_file_add_from_memory): Use it.
5482
d790cf0a
DE
54832012-06-03 Doug Evans <dje@google.com>
5484
78e5175a
DE
5485 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5486 of primary symtab.
5487 (basic_lookup_transparent_type): Ditto.
5488
d790cf0a
DE
5489 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5490 (ALL_PRIMARY_SYMTABS): Use it.
5491 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5492 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5493 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5494 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5495 (basic_lookup_transparent_type): Ditto.
5496
c6e5ee5e
SDJ
54972012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5498
5499 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5500 it to optimize resolution of demangled name.
5501
a68ffae9
JK
55022012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5503
5504 * configure.ac (development): Define new variable.
5505 Call AC_CHECK_LIB for mcheck if $development.
5506 (ERROR_ON_WARNING): Enable it by default only if $development.
5507 * config.in: Regenerate.
5508 * configure: Regenerate.
5509
5299c1c4
JK
55102012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5511
5512 * target.c (target_read_memory): Make LEN argument as size_t.
5513 * target.h (target_read_memory): Likewise.
5514
55152012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5516
5517 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5518
0c56f59b
EBM
55192012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5520
5521 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5522 BookE interface for PowerPC server processors if not available
5523 in the Linux Kernel.
5524
71bdabee
KS
55252012-05-31 Keith Seitz <keiths@redhat.com>
5526
5527 * linespec.c (decode_objc): Add cleanup to free
5528 INFO.FILE_SYMTABS.
5529 (find_linespec_symbols): Add cleanup to free CLASSES.
5530 * symfile.c (find_separate_debug_file_by_debuglink): Add
5531 cleanup to free DEBUGLINK.
5532 * ui-out.c (clear_header_list): No need to check if
5533 HEADER_NEXT.COLHDR is NULL.
5534 Free HEADER_NEXT.COL_NAME.
5535
acbd605d
MGD
55362012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5537
5538 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5539 warning.
5540
65662cde
PA
55412012-05-30 Jeff Kenton <jkenton@tilera.com>
5542
5543 * configure.host (gdb_host_cpu): Handle tilegx*.
5544 (gdb_host): Handle tilegx-*-linux*.
5545 * tilegx-linux-nat.c: New file.
5546 * config/tilegx/linux.mh: New file.
5547
ade64f0e
PA
55482012-05-30 Jeff Kenton <jkenton@tilera.com>
5549
5550 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5551 tilegx-linux-tdep.o.
5552 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5553 tilegx-linux-tdep.c.
5554 * configure.tgt: Handle tilegx-*-linux*.
5555 * tilegx-tdep.h: New file.
5556 * tilegx-tdep.c: New file.
5557 * tilegx-linux-tdep.c: New file.
5558 * regformats/reg-tilegx.dat: New file.
5559
bb08bdbd
EBM
55602012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5561
5562 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5563 accounting of hw watchpoints on ppc.
5564
ebd86fb5
TJB
55652012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5566
5567 * source.c (openp): Expand tilde in path entries.
5568
0a0edcd5
DE
55692012-05-29 Doug Evans <dje@google.com>
5570
98cc87bd
DE
5571 * buildsym.c (block_compar): Fix comment.
5572 (end_symtab): Fix and clarify some comments.
5573
0a0edcd5
DE
5574 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5575 cleanup_undefined_types.
5576 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5577 All callers updated.
5578
6f0c7050
TT
55792012-05-29 Tom Tromey <tromey@redhat.com>
5580
5581 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5582 fails.
5583 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5584 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5585 fails.
5586 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5587 fails.
5588
ec95993c
TG
55892012-05-29 Tristan Gingold <gingold@adacore.com>
5590
5591 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5592 (struct darwin_info): ... New struct.
5593 (solib_darwin_pspace_data): New variable.
5594 (darwin_pspace_data_cleanup): New function.
5595 (get_darwin_info): Likewise.
5596 (darwin_dyld_version_ok, darwin_load_image_infos)
5597 (darwin_solib_get_all_image_info_addr_at_init)
5598 (darwin_solib_read_all_image_info_addr): Add info argument.
5599 Adjust code.
5600 (darwin_current_sos): Use per pspace structure.
5601 (darwin_solib_create_inferior_hook): Likewise.
5602 (darwin_clear_solib): Likewise.
5603 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5604
ae25568b
PA
56052012-05-28 Pedro Alves <palves@redhat.com>
5606
5607 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5608 block that uses them. Clear ecss before handling each event.
5609
0c5bf5a9
JK
56102012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5611
5612 * solib-svr4.c (svr4_current_sos): New comment on
5613 svr4_current_sos_via_xfer_libraries fall back.
5614
bfb05775
JK
56152012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5616
5617 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5618 it as a fallback for TYPE_IS_OPAQUE.
5619 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5620 symbols for lookup_symbol.
5621
685b1105
JK
56222012-05-24 John Steele Scott <toojays@toojays.net>
5623
5624 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5625 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5626 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5627 (check_producer): ... this new function, which also checks for ICC
5628 and caches the result.
5629 (producer_is_icc): New function.
5630 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5631 producer was ICC.
5632
22203bbf
PA
56332012-05-24 Pedro Alves <palves@redhat.com>
5634
5635 PR gdb/7205
5636
5637 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5638 (default_gdb_signal_to_target): ... this. Add comment.
5639 (default_gdb_signal_from_host): Rename to ...
5640 (default_gdb_signal_from_target): ... this. Add comment.
5641 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5642 (default_gdb_signal_to_target): ... this.
5643 (default_gdb_signal_from_host): Rename to ...
5644 (default_gdb_signal_from_target): ... this.
5645 * corelow.c (core_open): Adjust to naming change. Replace comment.
5646 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5647 (gdb_signal_from_target): ... this. Adjust to
5648 default_gdb_signal_from_host naming change. Extend comment.
5649 (gdb_signal_to_host): Rename to ...
5650 (gdb_signal_to_target): ... this. Adjust to
5651 default_gdb_signal_to_host naming change.
5652 * gdbarch.h, gdbarch.c: Renegerate.
5653
a493e3e2
PA
56542012-05-24 Pedro Alves <palves@redhat.com>
5655
5656 PR gdb/7205
5657
f782ad9b 5658 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5659
2ea28649
PA
56602012-05-24 Pedro Alves <palves@redhat.com>
5661
5662 PR gdb/7205
5663
5664 Replace target_signal with gdb_signal throughout.
5665
b09846a9
PA
56662012-05-24 Pedro Alves <palves@redhat.com>
5667
5668 PR tui/14159
5669
5670 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5671 string, instead of reusing the va_list argument.
5672
e77c107e
TT
56732012-05-24 Tom Tromey <tromey@redhat.com>
5674
5675 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5676 Remove.
5677
9fccedf7
DE
56782012-05-23 Doug Evans <dje@google.com>
5679
d50bd42b
DE
5680 * symtab.c (search_symbols): Formatting fixes.
5681 (print_symbol_info): Formatting fixes.
5682
9fccedf7
DE
5683 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5684 int64_t change to leb128 API.
5685 (read_encoded_value, decode_frame_entry_1): Ditto.
5686 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5687 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5688 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5689 (execute_stack_op): Ditto.
5690 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5691 (safe_read_uleb128, safe_read_sleb128): Ditto.
5692 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5693 (dwarf2_compile_expr_to_ax): Ditto.
5694 (locexpr_describe_location_piece): Ditto.
5695 (disassemble_dwarf_expression): Ditto.
5696 (locexpr_describe_location_1): Ditto.
5697
f3e0e960
SS
56982012-05-23 Stan Shebs <stan@codesourcery.com>
5699 Kwok Cheung Yeung <kcy@codesourcery.com>
5700
5701 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5702 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5703 (mi-cmd-info.o): New rule.
5704 * osdata.h (info_osdata_command): New declaration.
5705 * osdata.c (info_osdata_command): Change to non-static.
5706 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5707 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5708 * mi/mi-cmd-info.c: New file.
5709
c51fe631
DE
57102012-05-23 Doug Evans <dje@google.com>
5711
71cddcc1
DE
5712 * symtab.c (search_symbols): Pass NULL for file_matcher to
5713 expand_symtabs_matching if there are no files to match.
5714
c51fe631
DE
5715 * gdbtypes.c (lookup_typename): Simplify.
5716
a79378d4
PA
57172012-05-23 Pedro Alves <palves@redhat.com>
5718
5719 * arch-utils.h (default_target_signal_to_host): Delete.
5720 * arch-utils.c (default_target_signal_to_host): Delete.
5721 * gdbarch.sh (target_signal_to_host): Remove.
5722 * gdbarch.h, gdbarch.c: Regenerate.
5723
f664829e
DE
57242012-05-22 Doug Evans <dje@google.com>
5725
5726 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5727 "const gdb_byte *".
5728 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5729 (execute_cfa_program): Update to match API of leb128 functions.
5730 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5731 "const gdb_byte *".
5732 (read_unsigned_leb128, read_signed_leb128): Delete.
5733 (read_initial_length): Change type of buf argument to
5734 "const gdb_byte *".
5735 (read_encoded_value): Update to match API of leb128 functions.
5736 (decode_frame_entry): Change result to "const gdb_byte *", and
5737 similarly for "start" parameter.
5738 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5739 (dwarf2_build_frame_info): Change local frame_ptr to
5740 "const gdb_byte *".
5741 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5742 read_uleb128, read_sleb128. All callers updated.
5743 (safe_skip_leb128): New function.
5744 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5745 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5746 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5747 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5748 read_uleb128, read_sleb128.
5749 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5750 (execute_stack_op): Update to match API of leb128 functions.
5751 * dwarf2expr.h: #include "leb128.h".
5752 (read_uleb128, read_sleb128): Delete.
5753 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5754 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5755 * dwarf2loc.c (debug_loc_kind): New enum.
5756 (decode_debug_loc_addresses): New function.
5757 (decode_debug_loc_dwo_addresses): New function.
5758 (dwarf2_find_location_expression): Rewrite.
5759 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5760 (locexpr_describe_location_piece): Ditto.
5761 (disassemble_dwarf_expression): Ditto.
5762 (locexpr_describe_location_1): Ditto.
5763 (loclist_describe_location): Rewrite.
5764 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5765 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5766 (dwarf2_section_buffer_overflow_complaint): Renamed from
5767 dwarf2_macros_too_long_complaint. All callers updated.
5768 (skip_leb128): Delete.
5769 (init_cu_die_reader): Initialize reader->buffer_end.
5770 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5771 (skip_form_bytes): New arg buffer_end. All callers updated.
5772 Replace call to skip_leb128 with gdb_skip_leb128.
5773 (skip_unknown_opcode): New arg mac_end. All callers updated.
5774 (fill_in_loclist_baton): Initialize baton->from_dwo.
5775
837a1b32
MR
57762012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5777
5778 * mips-linux-nat.c (mips_linux_read_description): Use a more
5779 verbose error message.
5780
d0e64392
MR
57812012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5782
5783 * NEWS: Add MIPS/Linux DSP support.
5784 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5785 (SIGCONTEXT_DSPCTL): New macro.
5786 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5787 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5788 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5789 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5790 (N64_SIGCONTEXT_HI3): Likewise.
5791 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5792 (N64_SIGCONTEXT_LO3): Likewise.
5793 (N64_SIGCONTEXT_DSPCTL): Likewise.
5794 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5795 (mips_linux_o32_sigframe_init): Handle DSP registers.
5796 (mips_linux_n32n64_sigframe_init): Likewise.
5797
8bea7ed1
PM
57982012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5799
5800 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5801 call to abort.
5802
dab06dbe
PA
58032012-05-22 Pedro Alves <palves@redhat.com>
5804
5805 * target.h (store_waitstatus): Move declaration ...
5806 * inf-child.h (store_waitstatus): ... here.
5807 * target.c: Move inclusion of gdb_wait.h, and ...
5808 (store_waitstatus): ... this ...
5809 * inf-child.c: ... here.
5810 * linux-nat.c: Include inf-child.h.
5811 * rs6000-nat.c: Include inf-child.h.
5812 * spu-linux-nat.c: Include inf-child.h.
5813
43011e52
PM
58142012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5815
5816 * tracepoint.c (start_tracing): Add missing i18n markup.
5817 (stop_tracing, set_trace_user): Ditto.
5818 (set_trace_notes, set_trace_stop_notes): Ditto.
5819
b1af9e97
TT
58202012-05-21 Tom Tromey <tromey@redhat.com>
5821
5822 PR c++/7173:
5823 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5824 types.
5825 * value.h (value_cast_pointers): Update.
5826 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5827 (value_cast): Update.
5828 (update_search_result): New function.
5829 (do_search_struct_field): New, from search_struct_field. Check
5830 for ambiguous results.
5831 (search_struct_field): Rewrite.
5832 * infcall.c (value_arg_coerce): Update.
5833 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5834 value_cast_pointers.
5835 * ada-lang.c (ada_convert_actual): Update.
5836
e9e5e6b3
TT
58372012-05-21 Tom Tromey <tromey@redhat.com>
5838
5839 * macroexp.c (macro_stringify): Terminate the string.
5840
1564a261
JK
58412012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5842
5843 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5844 Describe it.
5845 * auto-load.c (auto_load_expand_dir_vars): New function.
5846 (auto_load_safe_path_vec_update): Use it, remove the
5847 substitute_path_component call thanks to it.
5848 (auto_load_objfile_script): Remove the debug_file_directory processing.
5849 Use auto_load_expand_dir_vars, remove the substitute_path_component
5850 call thanks to it.
5851 * configure: Regenerate.
5852 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5853 path. Escape $ also for $debugdir.
5854 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5855 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5856
a3ec0bb1
DE
58572012-05-20 Doug Evans <dje@google.com>
5858
5859 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5860 before use. Check for symtab->includes == NULL before scanning it.
5861
d467df4e
MR
58622012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5863
5864 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5865
4cc0665f
MR
58662012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5867
5868 * NEWS: Add microMIPS support and "set mips compression",
5869 "show mips compression" commands.
5870 * mips-tdep.h (mips_isa): New enum.
5871 (gdbarch_tdep): Add mips_isa.
5872 (mips_pc_is_mips16): Update prototype.
5873 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5874 * mips-tdep.c (mips_compression_mips16): New variable.
5875 (mips_compression_micromips): Likewise.
5876 (mips_compression_strings): Likewise.
5877 (mips_compression_string): Likewise.
5878 (is_mips16_isa, is_micromips_isa): New functions.
5879 (is_mips16_addr): Rename to...
5880 (is_compact_addr): ... this.
5881 (unmake_mips16_addr): Likewise to...
5882 (unmake_compact_addr): ... this.
5883 (make_mips16_addr): Likewise to...
5884 (make_compact_addr): ... this.
5885 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5886 functions.
5887 (mips_elf_make_msymbol_special): Handle microMIPS code.
5888 (msymbol_is_special): Rename to...
5889 (msymbol_is_mips16): ... this.
5890 (mips_make_symbol_special, mips_pc_is_mips16): Update
5891 accordingly.
5892 (msymbol_is_mips, msymbol_is_micromips): New functions.
5893 (mips16_to_32_reg): Rename to...
5894 (mips_reg3_to_reg): ... this.
5895 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5896 (mips_pc_isa): Likewise.
5897 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5898 code.
5899 (mips_fetch_instruction): Pass return status instead of printing
5900 an error message if requested. Handle microMIPS code. Bail out
5901 on an invalid ISA.
5902 (micromips_op): New macro.
5903 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5904 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5905 (b6s4_op, b7s3_reg): Likewise.
5906 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5907 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5908 (mips_insn_size): New function.
5909 (mips32_next_pc): Update mips_fetch_instruction call.
5910 (micromips_relative_offset7): New function.
5911 (micromips_relative_offset10): Likewise.
5912 (micromips_relative_offset16): Likewise.
5913 (micromips_pc_insn_size): Likewise.
5914 (micromips_bc1_pc): Likewise.
5915 (micromips_next_pc): Likewise.
5916 (unpack_mips16): Update mips_fetch_instruction call.
5917 (extended_mips16_next_pc): Update according to change to
5918 mips16_to_32_reg.
5919 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5920 code.
5921 (mips16_scan_prologue): Update mips_fetch_instruction call.
5922 Update according to change to mips16_to_32_reg.
5923 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5924 (mips_insn16_frame_base_sniffer): Likewise.
5925 (micromips_decode_imm9): New function.
5926 (micromips_scan_prologue): Likewise.
5927 (mips_micro_frame_cache): Likewise.
5928 (mips_micro_frame_this_id): Likewise.
5929 (mips_micro_frame_prev_register): Likewise.
5930 (mips_micro_frame_sniffer): Likewise.
5931 (mips_micro_frame_unwind): New variable.
5932 (mips_micro_frame_base_address): New function.
5933 (mips_micro_frame_base): New variable.
5934 (mips_micro_frame_base_sniffer): New function.
5935 (mips32_scan_prologue): Update mips_fetch_instruction call.
5936 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5937 rather than for MIPS16.
5938 (mips_insn32_frame_base_sniffer): Likewise.
5939 (mips_addr_bits_remove): Handle microMIPS code.
5940 (deal_with_atomic_sequence): Rename to...
5941 (mips_deal_with_atomic_sequence): ... this. Update the type
5942 of the variable used to hold an instruction. Remove the ISA bit
5943 check. Update mips_fetch_instruction call.
5944 (micromips_deal_with_atomic_sequence): New function.
5945 (deal_with_atomic_sequence): Likewise.
5946 (mips_about_to_return): Handle microMIPS code. Update
5947 mips_fetch_instruction call.
5948 (heuristic_proc_start): Check for the standard MIPS ISA rather
5949 than for MIPS16. Update mips_pc_is_mips16 and
5950 mips_fetch_instruction calls. Handle microMIPS code.
5951 (mips_push_dummy_code): Handle microMIPS code.
5952 (mips_eabi_push_dummy_call): Likewise.
5953 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5954 (mips_o64_push_dummy_call): Handle microMIPS code.
5955 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5956 (is_delayed): Remove function.
5957 (mips_single_step_through_delay): Replace the call to is_delayed
5958 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5959 Handle microMIPS code.
5960 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5961 microMIPS code.
5962 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5963 call.
5964 (micromips_in_function_epilogue_p): New function.
5965 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5966 call.
5967 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5968 Handle microMIPS.
5969 (gdb_print_insn_mips): Likewise.
5970 (mips_breakpoint_from_pc): Likewise.
5971 (mips_remote_breakpoint_from_pc): New function.
5972 (mips32_instruction_has_delay_slot): Simplify making use of the
5973 updated mips_fetch_instruction interface.
5974 (micromips_instruction_has_delay_slot): New function.
5975 (mips16_instruction_has_delay_slot): Simplify making use of the
5976 updated mips_fetch_instruction interface.
5977 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5978 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5979 calls. Handle microMIPS code.
5980 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5981 (mips_skip_trampoline_code): Handle microMIPS code.
5982 (global_mips_compression): New function.
5983 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5984 file flags. Register the microMIPS remote breakpoint handler
5985 and heuristic frame unwinder.
5986 (show_mips_compression): New function.
5987 (_initialize_mips_tdep): Add the "set mips compression" and
5988 "show mips compression" commands.
5989
22e048c9
SDJ
59902012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5991
5992 * ada-lang.c:
5993 * ada-tasks.c:
5994 * ada-varobj.c:
5995 * amd64-darwin-tdep.c:
5996 * arm-symbian-tdep.c:
5997 * arm-tdep.c:
5998 * avr-tdep.c:
5999 * ax-gdb.c:
6000 * bfin-linux-tdep.c:
6001 * breakpoint.c:
6002 * c-valprint.c:
6003 * cli/cli-cmds.c:
6004 * coffread.c:
6005 * cp-support.c:
6006 * cris-tdep.c:
6007 * dwarf2-frame-tailcall.c:
6008 * dwarf2-frame.c:
6009 * dwarf2expr.c:
6010 * dwarf2loc.c:
6011 * dwarf2read.c:
6012 * elfread.c:
6013 * eval.c:
6014 * expprint.c:
6015 * f-valprint.c:
6016 * frv-tdep.c:
6017 * h8300-tdep.c:
6018 * hppa-hpux-tdep.c:
6019 * hppa-tdep.c:
6020 * hppanbsd-tdep.c:
6021 * i386-nto-tdep.c:
6022 * i386-tdep.c:
6023 * i387-tdep.c:
6024 * ia64-tdep.c:
6025 * jit.c:
6026 * linespec.c:
6027 * linux-tdep.c:
6028 * lm32-tdep.c:
6029 * m2-valprint.c:
6030 * m32c-tdep.c:
6031 * m32r-rom.c:
6032 * m32r-tdep.c:
6033 * m68k-tdep.c:
6034 * m68klinux-tdep.c:
6035 * mi/mi-main.c:
6036 * microblaze-tdep.c:
6037 * mips-linux-tdep.c:
6038 * mips-tdep.c:
6039 * mn10300-tdep.c:
6040 * p-valprint.c:
6041 * parse.c:
6042 * ppc-linux-tdep.c:
6043 * ppc-sysv-tdep.c:
6044 * printcmd.c:
6045 * python/py-finishbreakpoint.c:
6046 * python/py-inferior.c:
6047 * python/py-infthread.c:
6048 * python/py-type.c:
6049 * python/python.c:
6050 * remote-fileio.c:
6051 * remote-m32r-sdi.c:
6052 * remote-mips.c:
6053 * reverse.c:
6054 * rl78-tdep.c:
6055 * rs6000-aix-tdep.c:
6056 * rs6000-tdep.c:
6057 * s390-tdep.c:
6058 * score-tdep.c:
6059 * sh64-tdep.c:
6060 * skip.c:
6061 * solib-darwin.c:
6062 * solib-dsbt.c:
6063 * solib-frv.c:
6064 * sparc-tdep.c:
6065 * spu-multiarch.c:
6066 * spu-tdep.c:
6067 * stack.c:
6068 * symfile.c:
6069 * symtab.c:
6070 * tic6x-tdep.c:
6071 * tracepoint.c:
6072 * v850-tdep.c:
6073 * valarith.c:
6074 * valprint.c:
6075 * value.c:
6076 * xcoffread.c:
6077 * xtensa-tdep.c:
6078 * ada-lang.c:
6079 * ada-tasks.c:
6080 * ada-varobj.c:
6081 * amd64-darwin-tdep.c:
6082 * arm-symbian-tdep.c:
6083 * arm-tdep.c: Delete unused variables.
6084
aff139ff
JK
60852012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6086
6087 Rename $ddir to $datadir.
6088 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6089 * auto-load.c (auto_load_safe_path_vec_update)
6090 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6091 * configure: Regenerate.
6092 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6093 Likewise. Remove the 'use $ddir' help string.
6094
f7bfa992
JK
60952012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6096
6097 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6098 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6099
9cb709b6
TT
61002012-05-18 Tom Tromey <tromey@redhat.com>
6101
6102 PR exp/13907:
6103 * valprint.h (struct value_print_options) <symbol_print>: New
6104 field.
6105 * valprint.c (user_print_options): Add default for symbol_print.
6106 (show_symbol_print): New function.
6107 (generic_val_print): Respect symbol_print.
6108 (_initialize_valprint): Add "print symbol" setting.
6109 * f-valprint.c (f_val_print): Respect symbol_print.
6110 * c-valprint.c (c_val_print): Respect symbol_print.
6111 * NEWS: Update.
6112 * printcmd.c (print_address_symbolic): Return int. Ignore some
6113 zero-size symbols.
6114 (print_address_demangle): Return int.
6115 * defs.h: (print_address_symbolic): Return int.
6116 * value.h (print_address_demangle): Return int.
6117
b012acdd
TT
61182012-05-18 Tom Tromey <tromey@redhat.com>
6119
6120 * valprint.c (val_print_string): Don't print leading space.
6121 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6122 print space before string or vtbl.
6123 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6124 before string.
6125 * jv-valprint.c (java_value_print): Print space before string.
6126 * go-valprint.c (print_go_string): Print space before string.
6127 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6128 space before string.
6129 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6130 space before string or vtbl.
6131 * auxv.c (fprint_target_auxv): Print space after address.
6132
1d51a733
TT
61332012-05-18 Tom Tromey <tromey@redhat.com>
6134
6135 * printcmd.c (print_address_demangle): Remove special case for 0.
6136
edf0c1b7
TT
61372012-05-18 Tom Tromey <tromey@redhat.com>
6138
6139 * printcmd.c (print_address_demangle): Add 'opts' argument.
6140 * p-valprint.c (pascal_val_print): Update.
6141 * jv-valprint.c (java_val_print): Update.
6142 * value.h: Update.
6143 * valprint.c (generic_val_print): Update.
6144 (print_function_pointer_address): Add 'options' argument. Remove
6145 'addressprint' argument. Update.
6146 * m2-valprint.c (print_unpacked_pointer): Update.
6147 * gnu-v3-abi.c (print_one_vtable): Update.
6148 (gnuv3_print_method_ptr): Update.
6149 * f-valprint.c (f_val_print): Update.
6150 * cp-valprint.c (cp_print_value_fields): Update.
6151 * valprint.h (print_function_pointer_address): Update.
6152 * c-valprint.c (c_val_print): Update.
6153
9703b513
TT
61542012-05-18 Tom Tromey <tromey@redhat.com>
6155
6156 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6157 directly corresponding to the found psymtab.
6158 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6159 (dw2_find_pc_sect_symtab): Use it.
6160 * block.h (blockvector_contains_pc): Declare.
6161 * block.c (find_block_in_blockvector): New function.
6162 (blockvector_for_pc_sect): Use it.
6163 (blockvector_contains_pc): New function.
6164
5a439849
MR
61652012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6166
6167 * mips-tdep.h (mips_write_pc): New prototype.
6168 * mips-tdep.c (mips_write_pc): Make external, add description.
6169 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6170 add description.
6171
8376de04
MR
61722012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6173
6174 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6175 mips_regnum->pc.
6176 (mips_unwind_pc, mips_write_pc): Likewise.
6177 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6178 gdbarch_read_pc.
6179
d3581e61
JB
61802012-05-17 Joel Brobecker <brobecker@adacore.com>
6181
6182 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6183 proc_warn, proc_error, proc_get_status, proc_flags,
6184 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6185 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6186 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6187 proc_stop_process, proc_wait_for_stop, proc_run_process,
6188 proc_set_traced_signals, proc_set_traced_faults,
6189 proc_set_traced_sysentry, proc_set_traced_sysexit,
6190 proc_set_held_signals, proc_get_held_signals,
6191 proc_get_traced_signals, proc_get_traced_faults,
6192 proc_get_traced_sysentry, proc_get_traced_sysexit,
6193 proc_clear_current_fault, proc_set_current_signal,
6194 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6195 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6196 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6197 proc_get_current_thread, proc_get_current_thread,
6198 proc_get_current_thread, proc_update_threads,
6199 proc_update_threads, proc_update_threads, proc_update_threads,
6200 proc_iterate_over_threads, procfs_find_new_threads,
6201 procfs_pid_to_str): Make static. Remove advance declaration.
6202 (proc_cursig): Make static. Conditionalized defintion on
6203 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6204 (proc_syscall, proc_set_kill_on_last_close,
6205 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6206 proc_get_pending_signals, proc_get_signal_actions,
6207 proc_trace_signal, proc_ignore_signal): Delete.
6208
81b9b86e
SDJ
62092012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6210
6211 * coffread.c (cs_section_address): Passing proper argument for
6212 `bfd_get_section_vma'.
6213 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6214 `bfd_get_section_flags'.
6215 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6216 `bfd_get_section_vma'.
6217
abc9d0dc
TT
62182012-05-16 Tom Tromey <tromey@redhat.com>
6219
6220 PR macros/13205:
6221 * macrotab.h: (macro_define_special): Declare.
6222 (enum macro_special_kind): New.
6223 (struct macro_definition) <argc, replacement>: Update comments.
6224 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6225 (macro_define_object_internal): New function.
6226 (macro_define_object): Use it.
6227 (macro_define_special): New function.
6228 (fixup_definition): New function.
6229 (macro_lookup_definition, foreach_macro_in_scope)
6230 (foreach_macro): Use fixup_definition.
6231 * macroexp.h (macro_stringify): Declare.
6232 * macroexp.c (free_buffer_return_text): New function.
6233 (stringify): Constify "arg".
6234 (macro_stringify): New function.
6235 * dwarf2read.c (macro_start_file): Call macro_define_special.
6236
6a3a010b 62372012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6238 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6239
6240 * breakpoint.h (bp_location): Add related_address member.
6241 * inferior.h (get_return_value): Take a pointer to struct value
6242 instead of struct type for the function requested.
6243 * value.h (using_struct_return): Likewise.
6244 * gdbarch.sh (return_value): Take a pointer to struct value
6245 instead of struct type for the function requested.
6246 * breakpoint.c (set_breakpoint_location_function): Initialize
6247 related_address for bp_gnu_ifunc_resolver breakpoints.
6248 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6249 requested function's address to gdbarch_return_value.
6250 * eval.c (evaluate_subexp_standard): Pass the requested
6251 function's address to using_struct_return.
6252 * infcall.c (call_function_by_hand): Pass the requested
6253 function's address to using_struct_return and
6254 gdbarch_return_value.
6255 * infcmd.c (get_return_value): Take a pointer to struct value
6256 instead of struct type for the function requested.
6257 (print_return_value): Update accordingly.
6258 (finish_command_continuation): Likewise.
6259 * stack.c (return_command): Pass the requested function's
6260 address to using_struct_return and gdbarch_return_value.
6261 * value.c (using_struct_return): Take a pointer to struct value
6262 instead of struct type for the function requested. Pass the
6263 requested function's address to gdbarch_return_value.
6264 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6265 New function_value member, replacing function_type.
6266 (bpfinishpy_dealloc): Update accordingly.
6267 (bpfinishpy_pre_stop_hook): Likewise.
6268 (bpfinishpy_init): Likewise. Record the requested function's
6269 address.
6270 * mips-tdep.c (mips_fval_reg): New enum.
6271 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6272 words put in GP registers.
6273 (mips_o64_push_dummy_call): Update a comment.
6274 (mips_o32_return_value): Take a pointer to struct value instead
6275 of struct type for the function requested and use it to check if
6276 using the MIPS16 calling convention. Return the designated
6277 general purpose registers for floating-point values returned in
6278 MIPS16 mode.
6279 (mips_o64_return_value): Likewise.
6280 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6281 (ppc_sysv_abi_broken_return_value): Likewise.
6282 (ppc64_sysv_abi_return_value): Likewise.
6283 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6284 value instead of struct type for the function requested.
6285 * amd64-tdep.c (amd64_return_value): Likewise.
6286 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6287 * arm-tdep.c (arm_return_value): Likewise.
6288 * avr-tdep.c (avr_return_value): Likewise.
6289 * bfin-tdep.c (bfin_return_value): Likewise.
6290 * cris-tdep.c (cris_return_value): Likewise.
6291 * frv-tdep.c (frv_return_value): Likewise.
6292 * h8300-tdep.c (h8300_return_value): Likewise.
6293 (h8300h_return_value): Likewise.
6294 * hppa-tdep.c (hppa32_return_value): Likewise.
6295 (hppa64_return_value): Likewise.
6296 * i386-tdep.c (i386_return_value): Likewise.
6297 * ia64-tdep.c (ia64_return_value): Likewise.
6298 * iq2000-tdep.c (iq2000_return_value): Likewise.
6299 * lm32-tdep.c (lm32_return_value): Likewise.
6300 * m32c-tdep.c (m32c_return_value): Likewise.
6301 * m32r-tdep.c (m32r_return_value): Likewise.
6302 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6303 * m68k-tdep.c (m68k_return_value): Likewise.
6304 (m68k_svr4_return_value): Likewise.
6305 * m88k-tdep.c (m88k_return_value): Likewise.
6306 * mep-tdep.c (mep_return_value): Likewise.
6307 * microblaze-tdep.c (microblaze_return_value): Likewise.
6308 * mn10300-tdep.c (mn10300_return_value): Likewise.
6309 * moxie-tdep.c (moxie_return_value): Likewise.
6310 * mt-tdep.c (mt_return_value): Likewise.
6311 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6312 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6313 (ppc_sysv_abi_broken_return_value): Likewise.
6314 (ppc64_sysv_abi_return_value): Likewise.
6315 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6316 * rl78-tdep.c (rl78_return_value): Likewise.
6317 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6318 * rx-tdep.c (rx_return_value): Likewise.
6319 * s390-tdep.c (s390_return_value): Likewise.
6320 * score-tdep.c (score_return_value): Likewise.
6321 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6322 (sh_return_value_fpu): Likewise.
6323 * sh64-tdep.c (sh64_return_value): Likewise.
6324 * sparc-tdep.c (sparc32_return_value): Likewise.
6325 * sparc64-tdep.c (sparc64_return_value): Likewise.
6326 * spu-tdep.c (spu_return_value): Likewise.
6327 * tic6x-tdep.c (tic6x_return_value): Likewise.
6328 * v850-tdep.c (v850_return_value): Likewise.
6329 * vax-tdep.c (vax_return_value): Likewise.
6330 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6331 * xtensa-tdep.c (xtensa_return_value): Likewise.
6332 * gdbarch.c: Regenerate.
6333 * gdbarch.h: Regenerate.
6334
29ca12b3
TT
63352012-05-15 Tom Tromey <tromey@redhat.com>
6336
6337 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6338
588ae58c
JB
63392012-05-15 Joel Brobecker <brobecker@adacore.com>
6340
6341 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6342 of command in two error message.
6343
855a6e68
JB
63442012-05-15 Joel Brobecker <brobecker@adacore.com>
6345
6346 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6347
d634f2de
JB
63482012-05-15 Joel Brobecker <brobecker@adacore.com>
6349
6350 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6351
9cc815f5
JK
63522012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6353
6354 * NEWS (show auto-load scripts-directory): Add forgotten command.
6355
6a609e58
JK
63562012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6359 parameters.
6360
ac1438b5
L
63612012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6362
6363 * amd64-tdep.c: Include features/i386/x32.c and
6364 features/i386/x32-avx.c.
6365 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6366 initialize_tdesc_x32_avx.
6367
e7e0cddf
SS
63682012-05-14 Stan Shebs <stan@codesourcery.com>
6369
6370 Add dynamic printf.
6371 * breakpoint.h (enum bptype): New type bp_dprintf.
6372 (struct breakpoint): New field extra_string.
6373 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6374 (create_breakpoint): Add extra_string arg.
6375 * breakpoint.c (dprintf_breakpoint_ops): New.
6376 (is_breakpoint): Add bp_dprintf.
6377 (bpstat_what): Add dprintf case.
6378 (bptype_string): Ditto.
6379 (print_one_breakpoint_location): Ditto.
6380 (init_bp_location): Ditto.
6381 (bkpt_print_mention): Ditto.
6382 (dprintf_style_enums): New array.
6383 (dprintf_style): New global.
6384 (dprintf_function): New global.
6385 (dprintf_channel): New global.
6386 (update_dprintf_command_list): New function.
6387 (update_dprintf_commands): New function.
6388 (init_breakpoint_sal): Add extra_string argument, handle it.
6389 (create_breakpoint_sal): Add extra_string argument.
6390 (create_breakpoints_sal): Add extra_string argument, update callers.
6391 (find_condition_and_thread): Add extra argument.
6392 (create_breakpoint): Add extra_string argument, record it.
6393 (dprintf_command): New function.
6394 (break_command_1): Add arg to create_breakpoint call.
6395 (handle_gnu_v3_exceptions): Ditto.
6396 (trace_command): Ditto.
6397 (ftrace_command): Ditto.
6398 (strace_command): Ditto.
6399 (bkpt_print_mention): Add dprintf case.
6400 (create_breakpoint_sal_default): Add extra_string argument.
6401 (_initialize_breakpoint): Add new commands.
6402 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6403 * python/py-breakpoint.c (bppy_init): Ditto.
6404 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6405
8ae38c14
MR
64062012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6407
6408 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6409
9f676e66
SCR
64102012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6411
6412 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6413 unsigned long long.
6414
7efc75aa
SCR
64152012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6416
6417 Add a new function gdb.find_pc_line to the Python API.
6418 * NEWS (Python Scripting): Add entry about the new function.
6419 * python/python.c (gdbpy_find_pc_line): New function which
6420 implements gdb.find_pc_line.
6421 (GdbMethods): Add entry for the new function.
6422
70af3797
PA
64232012-05-12 Pedro Alves <palves@redhat.com>
6424
6425 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6426 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6427
06da564e
EZ
64282012-05-12 Eli Zaretskii <eliz@gnu.org>
6429
6430 * inferior.c: Include completer.h
6431 (initialize_inferiors): Set completer of add-inferior to
6432 filename_completer.
6433
0288cee2
L
64342012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6435
6436 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6437 gdbarch_ptr_bit for x32 core dump.
6438
f6537a2c
L
64392012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6440
6441 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6442 and features/i386/x32-avx-linux.c.
6443
85d4a676
SS
64442012-05-11 Stan Shebs <stan@codesourcery.com>
6445 Kwok Cheung Yeung <kcy@codesourcery.com>
6446
6447 * NEWS: Describe new info os commands.
6448 * common/linux-osdata.c (PID_T, TIME_T): Define.
6449 (MAX_PID_T_STRLEN): New.
6450 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6451 MAX_PID_T_STRLEN.
6452 (command_from_pid): Add comment. Change to use PID_T.
6453 (commandline_from_pid): Change to use PID_T.
6454 (user_from_pid): Add comment.
6455 (get_process_owner): Add comment. Change to use PID_T and
6456 MAX_PID_T_STRLEN.
6457 (get_number_of_cpu_cores): Add comment.
6458 (get_cores_used_by_process): Add comment. Change to use PID_T and
6459 MAX_PID_T_STRLEN.
6460 (linux_xfer_osdata_processes): Change to use PID_T and
6461 MAX_PID_T_STRLEN.
6462 (compare_processes): New function.
6463 (linux_xfer_osdata_processgroups): New function.
6464 (linux_xfer_osdata_threads): Change to use PID_T.
6465 (linux_xfer_osdata_fds): New function.
6466 (format_socket_state, print_sockets): New functions.
6467 (union socket_addr): New union.
6468 (linux_xfer_osdata_isockets): New function.
6469 (time_from_time_t, group_from_gid): New functions.
6470 (linux_xfer_osdata_shm): New function.
6471 (linux_xfer_osdata_sem): New function.
6472 (linux_xfer_osdata_msg): New function.
6473 (linux_xfer_osdata_modules): New function.
6474 (osdata_table): Add new entries.
6475 * common/buffer.c (buffer_xml_printf): Add support for long and
6476 long long format specifiers.
6477
f24afd6d
L
64782012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6479
6480 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6481 (tdesc_x32_avx_linux): Likewise.
6482
7349ff92
JK
64832012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6484
6485 Implement multi-component --with-auto-load-dir.
6486 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6487 entries.
6488 (--with-auto-load-safe-path): Update the default value description.
6489 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6490 New.
6491 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6492 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6493 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6494 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6495 "set auto-load scripts-directory".
6496 * config.in: Regenerate.
6497 * configure: Regenerate.
6498 * configure.ac (--with-auto-load-dir): New configure option.
6499 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6500
6dea1fbd
JK
65012012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6502
6503 Provide $ddir substitution for --with-auto-load-safe-path.
6504 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6505 entries.
6506 * auto-load.c: Include observer.h.
6507 (auto_load_safe_path_vec_update): Call substitute_path_component for
6508 each component. New variable ddir_subst.
6509 (auto_load_gdb_datadir_changed): New function.
6510 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6511 AUTO_LOAD_SAFE_PATH. New comment.
6512 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6513 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6514 * config.in: Regenerate.
6515 * configure: Regenerate.
6516 * configure.ac (--auto-load-safe-path): Rename
6517 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6518 GDB_DATADIR/auto-load.
6519 * defs.h (substitute_path_component): New declaration.
6520 * top.c: Include observer.h.
6521 (set_gdb_datadir): New function.
6522 (init_main): Install it for "set data-directory".
6523 * utils.c (substitute_path_component): New function.
6524
b09aca3a
JK
65252012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6528 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6529 DEBUG_FILE_DIRECTORY. Handle multiple components of
6530 DEBUG_FILE_DIRECTORY.
6531
95554aad
TT
65322012-05-10 Tom Tromey <tromey@redhat.com>
6533
6534 * dwarf2read.c (recursively_write_psymbols): New function.
6535 (write_psymtabs_to_index): Use it.
6536
6537 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6538 field.
6539 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6540 (load_partial_comp_unit): Update.
6541 (queue_comp_unit): Add argument 'pretend_language'.
6542 (process_queue): Update.
6543 (psymtab_to_symtab_1): Skip dependencies that have a user.
6544 (load_partial_comp_unit_reader): Give meaning to the 'data'
6545 argument.
6546 (load_full_comp_unit): Add 'pretend_language' argument.
6547 (process_full_comp_unit): Add 'pretend_language' argument. Set
6548 language on CU.
6549 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6550 Update.
6551 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6552 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6553 Update.
6554 (prepare_one_comp_unit): Add 'pretend_language' argument.
6555
6556 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6557 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6558 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6559 (dw2_do_instantiate_symtab): Check whether symtab was read in
6560 before queueing.
6561 (dw2_instantiate_symtab): Add assertion. Call
6562 process_cu_includes.
6563 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6564 (partial_symtab_p): New typedef.
6565 (set_partial_user): New function.
6566 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6567 (scan_partial_symbols): Add imported CU to imported_symtabs.
6568 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6569 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6570 (get_symtab, recursively_compute_inclusions)
6571 (compute_symtab_includes, process_cu_includes)
6572 (process_imported_unit_die): New functions.
6573 (process_die) <DW_TAG_imported_unit>: New case.
6574 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6575
6576 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6577 comment.
6578 (struct partial_die_info) <locdesc>: Remove.
6579 <d>: New field.
6580 (process_psymtab_comp_unit): Add 'read_partial' argument.
6581 Update.
6582 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6583 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6584 (add_partial_symbol): Update.
6585 (process_die): Handle DW_TAG_partial_unit.
6586 (read_file_scope): Update comment.
6587 (load_partial_dies): Handle DW_TAG_imported_unit.
6588 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6589 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6590
e871fbb9
TT
65912012-05-10 Tom Tromey <tromey@redhat.com>
6592
6593 * cc-with-dwz.sh: New file.
6594
b5b04b5b
TT
65952012-05-10 Tom Tromey <tromey@redhat.com>
6596
6597 * symtab.h (struct symtab) <includes, user>: New fields.
6598 * block.h (struct block_iterator) <d, idx, which>: New fields.
6599 * block.c (initialize_block_iterator, find_iterator_symtab)
6600 (block_iterator_step, block_iter_name_step)
6601 (block_iter_match_step): New functions.
6602 (block_iterator_first, block_iterator_next)
6603 (block_iter_name_first, block_iter_name_next)
6604 (block_iter_match_first, block_iter_match_next): Rewrite.
6605 (get_block_symtab): New function.
6606
84a146c9
TT
66072012-05-10 Tom Tromey <tromey@redhat.com>
6608
6609 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6610 set_block_symtab.
6611 * jit.c (finalize_symtab): Use allocate_global_block,
6612 set_block_symtab.
6613 * buildsym.c (finish_block_internal): New function, from old
6614 finish_block.
6615 (finish_block): Rewrite.
6616 (end_symtab): Use finish_block_internal, set_block_symtab.
6617 * block.h (struct global_block): New.
6618 (allocate_global_block, set_block_symtab): Declare.
6619 * block.c (allocate_global_block, set_block_symtab): New
6620 functions.
6621
9439a077
TT
66222012-05-10 Tom Tromey <tromey@redhat.com>
6623
6624 * psymtab.c (partial_map_expand_apply): Add assertion.
6625 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6626 (psymtab_to_symtab): Find unshared psymtab.
6627 (dump_psymtab): Print including psymtabs.
6628 (recursively_search_psymtabs): New function.
6629 (expand_symtabs_matching_via_partial): Use it.
6630 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6631 fields.
6632 (enum psymtab_search_status): New.
6633
8157b174
TT
66342012-05-10 Tom Tromey <tromey@redhat.com>
6635
6636 * tracepoint.c (scope_info): Update.
6637 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6638 (find_pc_sect_symtab, search_symbols)
6639 (default_make_symbol_completion_list_break_on)
6640 (make_file_symbol_completion_list): Update.
6641 * symmisc.c (dump_symtab_1): Update.
6642 * stack.c (print_frame_args, iterate_over_block_locals)
6643 (print_frame_labels, iterate_over_block_arg_vars): Update.
6644 * python/py-block.c (block_object) <dict>: Remove.
6645 <block>: New field.
6646 <iter>: Change type.
6647 (blpy_iter): Update.
6648 (blpy_block_syms_iternext): Update.
6649 * psymtab.c (map_block): Use block iterators.
6650 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6651 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6652 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6653 * infrun.c (check_exception_resume): Update.
6654 * cp-support.c (make_symbol_overload_list_block): Update.
6655 * coffread.c (patch_opaque_types): Update.
6656 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6657 * block.h (struct block_iterator): New.
6658 (block_iterator_first, block_iterator_next, block_iter_name_first)
6659 (block_iter_name_next, block_iter_match_first)
6660 (block_iter_match_next): Declare.
6661 (ALL_BLOCK_SYMBOLS): Redefine.
6662 * block.c (block_iterator_first, block_iterator_next)
6663 (block_iter_name_first, block_iter_name_next)
6664 (block_iter_match_first, block_iter_match_next): New functions.
6665 * ada-lang.c (ada_add_block_symbols)
6666 (ada_make_symbol_completion_list): Use block iterator.
6667
a2ca7a52
TT
66682012-05-10 Tom Tromey <tromey@redhat.com>
6669
6670 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6671 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6672 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6673 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6674 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6675 Update.
6676
64ea88dc
JB
66772012-05-10 Joel Brobecker <brobecker@adacore.com>
6678
6679 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6680 print-file-var-lib2.c, print-file-var-main.c and
6681 print-file-var.exp (located in gdb/testsuite/gdb.base).
6682
99a547d6
JB
66832012-05-10 Joel Brobecker <brobecker@adacore.com>
6684
6685 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6686 try locating the symbol in the symbol's own objfile first, before
6687 extending the search to all objfiles.
6688 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6689 out of lookup_symbol_aux_symtabs.
6690 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6691 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6692 Do not search EXCLUDE_OBJFILE.
6693 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6694 (lookup_symbol_global): Search for matches in the block's objfile
6695 first, before searching all other objfiles.
6696
0ece64fd
TG
66972012-05-10 Tristan Gingold <gingold@adacore.com>
6698
6699 * printcmd.c (set_command): Add pre/post inc/dec.
6700
3d16a105
FCE
67012012-05-09 Frank Ch. Eigler <fche@redhat.com>
6702
6703 * gdb.1: Document -ex option.
6704
2efbc0f7
JB
67052012-05-09 Joel Brobecker <brobecker@adacore.com>
6706
6707 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6708 * inferior.h (AT_SYMBOL): Delete.
6709
2c76a0c7
JB
67102012-05-09 Joel Brobecker <brobecker@adacore.com>
6711
6712 * mips-tdep.c (mips_push_dummy_code): New function.
6713 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6714 ON_STACK and install mips_push_dummy_code as our gdbarch
6715 push_dummy_code routine.
6716
9401a810
PA
67172012-05-09 Pedro Alves <palves@redhat.com>
6718
6719 * target.c (set_maintenance_target_async_permitted): Rename to ...
6720 (set_target_async_command): ... this.
6721 (show_maintenance_target_async_permitted): Rename to ...
6722 (show_target_async_command): ... this.
6723 (initialize_targets): Adjust.
6724
3929b321
DE
67252012-05-08 Doug Evans <dje@google.com>
6726
6727 * go-exp.y (classify_name): Add missing assignment of fields of
6728 yylval.ssym.
6729
c41535fd
EZ
67302012-05-08 Eli Zaretskii <eliz@gnu.org>
6731
6732 Display the ">" prompt in interactive mode while reading canned
6733 commands, even when the current interpreter is MI.
6734
6735 * interps.c (interp_set_temp): New function.
6736
6737 * interps.h (interp_set_temp): Add prototype.
6738
6739 * cli/cli-script.c (restore_interp): New cleanup function.
6740 (read_command_lines): Temporarily override the current interpreter
6741 with CLI and arrange for restoring the original one.
6742
c0749c4d
JS
67432012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6744
6745 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6746
d7333987
SDJ
67472012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6748
6749 * probe.c (parse_probes): Move conditional to check for
6750 debuginfo files from here...
6751 * stap-probe.c (stap_get_probes): ... to here.
6752
649e6d92
MK
67532012-05-07 Mark Kettenis <kettenis@gnu.org>
6754 H.J. Lu <hongjiu.lu@intel.com>
6755
6756 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6757 `movl %esp, %ebp' for the X32 ABI.
6758
f39c6ffd
TT
67592012-05-07 Tom Tromey <tromey@redhat.com>
6760
6761 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6762 get_DW_TAG_name.
6763 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6764 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6765 (dwarf_stack_op_name): Remove.
6766 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6767 (decode_locdesc): Use get_DW_OP_name.
6768 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6769 (dwarf2_compile_expr_to_ax): Likewise.
6770 (disassemble_dwarf_expression): Likewise.
6771 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6772
1e1f6591
CLT
67732012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6774
6775 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6776 (sh_linux_sigtramp_cache): New function.
6777 (sh_linux_sigreturn_init): New function.
6778 (sh_linux_rt_sigreturn_init): New function.
6779 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6780 patterns.
6781 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6782 syscall codes.
6783 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6784 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6785 (sh_linux_init_abi): Add init calls to register new tramp_frame
6786 definitions under 32-bit SH, update comments.
6787
545c08b4
PA
67882012-05-07 Pedro Alves <palves@redhat.com>
6789
daac165e
PA
6790 PR gdb/10952
6791
545c08b4
PA
6792 * amd64-linux-tdep.c: Include glibc-tdep.h.
6793 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6794 gdbarch_skip_solib_resolver callback.
6795
af2c1515
JK
67962012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6797
6798 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6799 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6800 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6801 (add_auto_load_safe_path): Change the error message.
6802 (_initialize_auto_load): Change the "safe-path" help text.
6803 * configure: Regenerate
6804 * configure.ac (--without-auto-load-safe-path): Set
6805 WITH_AUTO_LOAD_SAFE_PATH to /.
6806
1067f998
SDJ
68072012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6808
6809 * stap-probe.h: Do not include unecessary `probe.h'.
6810
45dfa85a
AM
68112012-05-05 Alan Modra <amodra@gmail.com>
6812
6813 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6814 bfd_und_section_ptr.
6815 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6816 and bfd_com_section_ptr.
6817
cf093994
JB
68182012-05-04 Joel Brobecker <brobecker@adacore.com>
6819
762ebb75 6820 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6821
d40dc7a8
JB
68222012-05-04 Joel Brobecker <brobecker@adacore.com>
6823
6824 * windows-nat.h (segment_register_p_ftype): New typedef.
6825 (windows_set_segment_register_p): Add declaration.
6826 * windows-nat.c (segment_register_p): New static global.
6827 (windows_set_segment_register_p): New function.
6828 (do_windows_fetch_inferior_registers): Add special handling
6829 for segment registers.
6830 * amd64-windows-nat.c: #include "amd64-tdep.h".
6831 (amd64_windows_segment_register_p): New function.
6832 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6833 * i386-windows-nat.c: #include "i386-tdep.h".
6834 (i386_windows_segment_register_p): New function.
6835 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6836
52b3699b
TG
68372012-05-04 Tristan Gingold <gingold@adacore.com>
6838
6839 * printcmd.c (set_command): Emit a warning if the expression is not
6840 an assignment.
6841
94c74239
JB
68422012-05-03 Joel Brobecker <brobecker@adacore.com>
6843
6844 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6845 Make static.
6846
fcf57f19
SDJ
68472012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6848
6849 * stap-probe.c (stap_is_operator): Change declaration.
6850 (stap_get_opcode): Change return value.
6851 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6852 `stap_parse_argument_1'.
6853
27d2932e
PA
68542012-05-03 Pedro Alves <pedro@codesourcery.com>
6855
6856 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6857 debug log.
6858
a20ee7a4
SCR
68592012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6860
6861 Add two new methods global_block and static_block to gdb.Symtab
6862 objects.
6863 * NEWS (Python scripting): Add entry about the new methods.
6864 * python/py-symtab.c (stpy_global_block): New function which
6865 implements the gdb.Symtab.global_block() method.
6866 (stpy_static_block): New function which implements the
6867 gdb.Symtab.static_block() method.
6868 (symtab_object_methods): Add entries for the two new methods.
6869
943cb756
DE
68702012-05-03 Doug Evans <dje@google.com>
6871
6872 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6873 files.
6874
f4644a3f
YQ
68752012-05-03 Yao Qi <yao@codesourcery.com>
6876
6877 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6878 space.
6879 (i386_process_record): Ditto.
6880
ef61f180
JB
68812012-05-02 Joel Brobecker <brobecker@adacore.com>
6882
6883 * infcall.c (unwind_on_signal_p): Make static.
6884
02f1df11
JB
68852012-05-02 Joel Brobecker <brobecker@adacore.com>
6886
6887 * sol-thread.c (solaris_pid_to_str): Make static.
6888 (_initialize_sol_thread): Add prototype.
6889
39023530
JB
68902012-05-02 Joel Brobecker <brobecker@adacore.com>
6891
6892 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6893
c6b0c501
CF
68942012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6895
6896 * MAINTAINERS: Remove myself.
6897
1ef71717
JK
68982012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6899
6900 Fix --without-auto-load-safe-path for MS-Windows host platform.
6901 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6902
b31b86a7
EZ
69032012-05-02 Eli Zaretskii <eliz@gnu.org>
6904
6905 * gdb_curses.h: Undefine KEY_EVENT before including curses
6906 headers. Move "#undef MOUSE_MOVED" before any curses header
6907 inclusion.
6908
777532fc
SDJ
69092012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6910
6911 * features/i386/i386-mmx-linux.c: Regenerate.
6912 * features/rs6000/powerpc-32.c: Likewise.
6913 * features/rs6000/powerpc-32l.c: Likewise.
6914 * features/rs6000/powerpc-403.c: Likewise.
6915 * features/rs6000/powerpc-403gc.c: Likewise.
6916 * features/rs6000/powerpc-405.c: Likewise.
6917 * features/rs6000/powerpc-505.c: Likewise.
6918 * features/rs6000/powerpc-601.c: Likewise.
6919 * features/rs6000/powerpc-602.c: Likewise.
6920 * features/rs6000/powerpc-603.c: Likewise.
6921 * features/rs6000/powerpc-604.c: Likewise.
6922 * features/rs6000/powerpc-64.c: Likewise.
6923 * features/rs6000/powerpc-64l.c: Likewise.
6924 * features/rs6000/powerpc-750.c: Likewise.
6925 * features/rs6000/powerpc-860.c: Likewise.
6926 * features/rs6000/powerpc-e500.c: Likewise.
6927 * features/rs6000/powerpc-e500l.c: Likewise.
6928 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6929 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6930 * features/rs6000/rs6000.c: Likewise.
6931
d71871bc
SDJ
69322012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6933
6934 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6935 variable.
6936 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6937 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6938 (stap_parse_argument) <e>: Likewise.
6939 (handle_stap_probe) <byte_order>: Likewise.
6940
fd820528
DE
69412012-04-30 Doug Evans <dje@google.com>
6942
6943 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6944 init_and_read_dies_worker. All callers updated.
6945 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6946 replaced with init_cutu_and_read_dies.
6947 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6948 (find_partial_die): Remove FIXME. Don't free current CU.
6949
ec3f619d 69502012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6951
6952 * contrib: New directory.
6953 * contrib/test_pubnames_and_indexes.py: New file.
6954
fceca515
DE
69552012-04-30 Doug Evans <dje@google.com>
6956
6957 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6958 All callers updated.
6959 (init_cu_die_reader): Verify the section is non-empty.
6960 (dwarf_decode_line_header): Don't dereference section->asection
6961 until we know the section is present.
6962
311fe7e1
SDJ
69632012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6964
6965 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6966 probes.
6967
5977971a
YQ
69682012-04-29 Yao Qi <yao@codesourcery.com>
6969
6970 * gdb-code-style.el: New hook gdb-markup-hook
6971 and gdb-comment-hook.
6972
dee91e82
DE
69732012-04-28 Doug Evans <dje@google.com>
6974
3019eac3
DE
6975 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6976 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6977 objfile->obfd.
6978 * symfile.h (dwarf2_debug_sections): New member addr.
6979 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6980 (ctx_no_get_addr_index): New function.
6981 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6982 (ctx_no_get_addr_index): Declare.
6983 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6984 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6985 (dwarf_expr_ctx_funcs): Update.
6986 (needs_get_addr_index): New function.
6987 (needs_frame_ctx_funcs): Update.
6988 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6989 * dwarf2read.c: #include "gdbcore.h".
6990 (dwarf2_per_objfile): New members addr, dwo_files.
6991 (dwarf2_elf_names): Add entry for addr.
6992 (struct dwo_section_names): New type.
6993 (dwo_section_names): New static global.
6994 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6995 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6996 old debug_types_section member updated to use this.
6997 Rename member debug_types_section to info_or_types_section,
6998 all uses updated.
6999 (signatured_type): Rename member type_offset to type_offset_in_tu,
7000 all uses updated. New member type_offset_in_section.
7001 (struct dwo_sections): New type.
7002 (struct dwo_unit): New type.
7003 (struct dwo_file): New type.
7004 (die_reader_specs): New member dwo_file.
7005 (dwarf2_locate_sections): Watch for .debug_addr.
7006 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7007 (dwarf2_read_section): Get bfd of section from bfd's asection,
7008 instead of objfile.
7009 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7010 (create_signatured_type_table_from_index): Initialize
7011 sig_type->info_or_types_section.
7012 (dw2_get_file_names): Statement lists for type units with DWO files
7013 live in the DWO file.
7014 (create_debug_types_hash_table): New function.
7015 (create_all_type_units): Rewrite.
7016 (init_cu_die_reader): New arg dwo_file, all callers updated.
7017 (init_and_read_dies_worker): Get section from
7018 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7019 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7020 continue reading the CU/TU from there.
7021 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7022 updated. Get section from this_cu->info_or_types_section.
7023 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7024 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7025 DW_FORM_GNU_str_index.
7026 (hash_dwo_file, eq_dwo_file): New functions.
7027 (allocate_dwo_file_hash_table): New function.
7028 (hash_dwo_unit, eq_dwo_unit): New functions.
7029 (allocate_dwo_unit_table): New function.
7030 (dwarf2_locate_dwo_sections): New function.
7031 (struct create_dwo_info_table_data): New type.
7032 (create_debug_info_hash_table_reader): New function.
7033 (create_debug_info_hash_table): New function.
7034 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7035 (lookup_dwo_file): New function.
7036 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7037 (free_dwo_file, free_dwo_file_cleanup): New functions.
7038 (free_dwo_file_from_slot, free_dwo_files): New functions.
7039 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7040 (dwarf2_record_block_ranges): Ditto.
7041 (read_partial_die): Ditto.
7042 (process_enumeration_scope): Update to use type_offset_in_section.
7043 (read_full_die_1): New function.
7044 (read_full_die): Rewrite.
7045 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7046 DW_FORM_GNU_str_index.
7047 (read_addr_index_1, read_addr_index): New functions.
7048 (read_addr_index_from_leb128): New function.
7049 (struct dwarf2_read_addr_index_data): New type.
7050 (dwarf2_read_addr_index_reader): New function.
7051 (dwarf2_read_addr_index): New function.
7052 (read_str_index): New function.
7053 (leb128_size): New function.
7054 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7055 If processing a type unit from a DWO file, get the line section
7056 from the DWO file.
7057 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7058 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7059 DW_FORM_GNU_str_index.
7060 (lookup_die_type): Check whether section offset of type's die is
7061 known before looking it up. Remove assert. Condition can
7062 legimately happen for inter-cu type references.
7063 (dwarf_attr_name): Handle Fission attributes.
7064 (dwarf_form_name): Handle Fission forms.
7065 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7066 DW_FORM_GNU_str_index.
7067 (follow_die_sig): Update to use type_offset_in_section.
7068 (decode_locdesc): New case DW_OP_GNU_addr_index.
7069 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7070 DW_FORM_GNU_str_index.
7071 (cu_debug_loc_section): New function.
7072 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7073 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7074 Free DWO files if present.
7075 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7076
dee91e82
DE
7077 Refactor DIE reading.
7078 * dwarf2read.c (dwarf2_per_objfile): Replace members
7079 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7080 (die_reader_specs): New member "die_section". Temporarily make
7081 member "buffer" non-const, pending constifying all info_ptr uses.
7082 (die_reader_func_ftype): New typedef.
7083 (dw2_get_file_names_reader): New function.
7084 (dw2_get_file_names): Rewrite.
7085 (read_and_check_type_unit_head): Rename arg type_offset to
7086 type_offset_in_tu.
7087 (create_all_type_units): Improve debugging message.
7088 Improve dummy type unit check.
7089 (init_cu_die_reader): New arg "section". All callers updated.
7090 (init_and_read_dies_worker): New function.
7091 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7092 (init_cutu_and_read_dies_no_follow): New function.
7093 (init_cutu_and_read_dies_simple): New function.
7094 (process_psymtab_comp_unit_reader): New function.
7095 (process_psymtab_comp_unit): Delete args section,
7096 is_debug_types_section. Rewrite. All callers updated.
7097 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7098 All callers updated. Rewrite.
7099 (load_partial_comp_unit_reader): New function.
7100 (load_partial_comp_unit): Rewrite.
7101 (skip_children): New arg reader. Delete args buffer, cu.
7102 All callers updated.
7103 (skip_one_die): New arg reader. Delete args buffer, cu.
7104 All callers updated.
7105 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7106 All callers updated.
7107 (load_full_comp_unit_reader): New function.
7108 (load_full_comp_unit): Rewrite.
7109 (read_comp_unit): Delete.
7110 (read_die_and_children_1): Delete, contents moved ...
7111 (read_die_and_children): ... here.
7112 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7113 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7114 All callers updated.
7115 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7116 All callers updated.
7117 (find_partial_die): Rewrite load_all_dies support.
7118 (read_attribute_value): New arg reader. Delete args abfd, cu.
7119 All callers updated.
7120 (read_attribute): New arg reader. Delete args abfd, cu.
7121 All callers updated.
7122 (load_full_type_unit): Add assert.
7123 (read_signatured_type_reader): New function.
7124 (read_signatured_type): Rewrite.
7125 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7126 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7127 All callers updated. Set per_cu->cu = NULL after freeing it.
7128 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7129 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7130 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7131 (set_die_type): Update.
7132 (get_die_type_at_offset): Update.
7133 (read_file_scope): Call prepare_one_comp_unit.
7134 (read_type_unit_scope): Ditto.
7135 (prepare_one_comp_unit): Set producer if present.
7136
72d59e0d
SDJ
71372012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7138
7139 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7140 gettext function on `error'.
7141
0fefef59
DE
71422012-04-27 Doug Evans <dje@google.com>
7143
7144 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7145 is empty.
7146
28106bc2
SDJ
71472012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7148 Tom Tromey <tromey@redhat.com>
7149
7150 * breakpoint.c (struct breakpoint_objfile_data)
7151 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7152 <exception_probes>: New fields.
7153 (free_breakpoint_probes): New function.
7154 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7155 `_Unwind_DebugHook'.
7156 (create_exception_master_breakpoint): Likewise.
7157 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7158 * infrun.c: Including necessary header files for handling SystemTap
7159 probes.
7160 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7161 via SystemTap probes.
7162 (check_exception_resume): Remove `func' argument. Handle exception
7163 unwinding breakpoint set via a SystemTap probe.
7164 (insert_exception_resume_from_probe): New function.
7165
55aa24fb
SDJ
71662012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7167 Tom Tromey <tromey@redhat.com>
7168 Jan Kratochvil <jan.kratochvil@redhat.com>
7169
7170 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7171 (COMMON_OBS): Likewise.
7172 (HFILES_NO_SRCDIR): Add `probe'.
7173 * NEWS: Mention support for static and SystemTap probes.
7174 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7175 SystemTap probes' arguments parser.
7176 * arm-linux-tdep.c: Including headers needed to perform the parsing
7177 of SystemTap probes' arguments.
7178 (arm_stap_is_single_operand): New function.
7179 (arm_stap_parse_special_token): Likewise.
7180 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7181 probes' arguments parser.
7182 * ax-gdb.c (require_rvalue): Removing static declaration.
7183 (gen_expr): Likewise.
7184 * ax-gdb.h (gen_expr): Declaring function.
7185 (require_rvalue): Likewise.
7186 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7187 (bkpt_probe_breakpoint_ops): New variable.
7188 (momentary_breakpoint_from_master): Set the `probe' value.
7189 (add_location_to_breakpoint): Likewise.
7190 (break_command_1): Using proper breakpoint_ops according to the
7191 argument passed by the user in the command line.
7192 (bkpt_probe_insert_location): New function.
7193 (bkpt_probe_remove_location): Likewise.
7194 (bkpt_probe_create_sals_from_address): Likewise.
7195 (bkpt_probe_decode_linespec): Likewise.
7196 (tracepoint_probe_create_sals_from_address): Likewise.
7197 (tracepoint_probe_decode_linespec): Likewise.
7198 (tracepoint_probe_breakpoint_ops): New variable.
7199 (trace_command): Using proper breakpoint_ops according to the
7200 argument passed by the user in the command line.
7201 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7202 static probes on breakpoints and tracepoints.
7203 * breakpoint.h (struct bp_location) <probe>: New field.
7204 * cli-utils.c (skip_spaces_const): New function.
7205 (extract_arg): Likewise.
7206 * cli-utils.h (skip_spaces_const): Likewise.
7207 (extract_arg): Likewise.
7208 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7209 * configure.ac: Append `stap-probe.o' to be generated when ELF
7210 support is present.
7211 * configure: Regenerate.
7212 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7213 * elfread.c: Include `probe.h' and `arch-utils.h'.
7214 (probe_key): New variable.
7215 (elf_get_probes): New function.
7216 (elf_get_probe_argument_count): Likewise.
7217 (elf_evaluate_probe_argument): Likewise.
7218 (elf_compile_to_ax): Likewise.
7219 (elf_symfile_relocate_probe): Likewise.
7220 (stap_probe_key_free): Likewise.
7221 (elf_probe_fns): New variable.
7222 (elf_sym_fns): Add `sym_probe_fns' value.
7223 (elf_sym_fns_lazy_psyms): Likewise.
7224 (elf_sym_fns_gdb_index): Likewise.
7225 (_initialize_elfread): Initialize objfile cache for static
7226 probes.
7227 * gdb_vecs.h (struct probe): New forward declaration.
7228 (probe_p): New VEC declaration.
7229 * gdbarch.c: Regenerate.
7230 * gdbarch.h: Regenerate.
7231 * gdbarch.sh (stap_integer_prefix): New variable.
7232 (stap_integer_suffix): Likewise.
7233 (stap_register_prefix): Likewise.
7234 (stap_register_suffix): Likewise.
7235 (stap_register_indirection_prefix): Likewise.
7236 (stap_register_indirection_suffix): Likewise.
7237 (stap_gdb_register_prefix): Likewise.
7238 (stap_gdb_register_suffix): Likewise.
7239 (stap_is_single_operand): New function.
7240 (stap_parse_special_token): Likewise.
7241 (struct stap_parse_info): Forward declaration.
7242 * i386-tdep.c: Including headers needed to perform the parsing
7243 of SystemTap probes' arguments.
7244 (i386_stap_is_single_operand): New function.
7245 (i386_stap_parse_special_token): Likewise.
7246 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7247 probes' arguments parser.
7248 * i386-tdep.h (i386_stap_is_single_operand): New function.
7249 (i386_stap_parse_special_token): Likewise.
7250 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7251 * mipsread.c (ecoff_sym_fns): Likewise.
7252 * objfiles.c (objfile_relocate1): Support relocation for static
7253 probes.
7254 * parse.c (prefixify_expression): Remove static declaration.
7255 (initialize_expout): Likewise.
7256 (reallocate_expout): Likewise.
7257 * parser-defs.h (initialize_expout): Declare function.
7258 (reallocate_expout): Likewise.
7259 (prefixify_expression): Likewise.
7260 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7261 of SystemTap probes' arguments.
7262 (ppc_stap_is_single_operand): New function.
7263 (ppc_stap_parse_special_token): Likewise.
7264 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7265 probes' arguments parser.
7266 * probe.c: New file, for generic statically defined probe support.
7267 * probe.h: Likewise.
7268 * s390-tdep.c: Including headers needed to perform the parsing of
7269 SystemTap probes' arguments.
7270 (s390_stap_is_single_operand): New function.
7271 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7272 probes' arguments parser.
7273 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7274 * stap-probe.c: New file, for SystemTap probe support.
7275 * stap-probe.h: Likewise.
7276 * symfile.h: Include `gdb_vecs.h'.
7277 (struct sym_probe_fns): New struct.
7278 (struct sym_fns) <sym_probe_fns>: New field.
7279 * symtab.c (init_sal): Initialize `probe' field.
7280 * symtab.h (struct probe): Forward declaration.
7281 (struct symtab_and_line) <probe>: New field.
7282 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7283 locations.
7284 (stop_tracing): Likewise.
7285 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7286
22d2b532
SDJ
72872012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7288 Tom Tromey <tromey@redhat.com>
7289
7290 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7291 and to compile agent expressions.
7292 * infrun.c (siginfo_make_value): New argument `ignore'.
7293 (siginfo_funcs): New struct.
7294 (_initialize_infrun): New argument when calling
7295 `create_internalvar_type_lazy'.
7296 * thread.c (thread_id_make_value): New argument `ignore'.
7297 (thread_funcs): New struct.
7298 (_initialize_thread): New argument when calling
7299 `create_internalvar_type_lazy'.
7300 * tracepoint.c (sdata_make_value): New argument `ignore'.
7301 (sdata_funcs): New struct.
7302 (_initialize_tracepoint): New argument when calling
7303 `create_internalvar_type_lazy'.
7304 * value.c (make_value): New struct.
7305 (create_internalvar_type_lazy): New argument `data'.
7306 (compile_internalvar_to_ax): New function.
7307 (value_of_internalvar): Properly handling `make_value' case.
7308 (clear_internalvar): Likewise.
7309 (show_convenience): Adding `TRY_CATCH' block.
7310 * value.h (internalvar_make_value): Delete, replace by...
7311 (struct internalvar_funcs): ... this.
7312 (create_internalvar_type_lazy) <fun>: Delete argument.
7313 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7314 (compile_internalvar_to_ax): New function.
7315 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7316 (tlb_funcs): New struct.
7317 (_initialize_windows_tdep): New argument when calling
7318 `create_internalvar_type_lazy'.
7319
91da1414
MW
73202012-04-27 Mark Wielaard <mjw@redhat.com>
7321
7322 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7323 see whether it is an address or a constant offset from DW_AT_low_pc.
7324 (dwarf2_record_block_ranges): Likewise.
7325 (read_partial_die): Likewise.
7326
4ab9d8ec
MW
73272012-04-26 Mark Wielaard <mjw@redhat.com>
7328
7329 * MAINTAINERS (Write After Approval): Add myself to the list.
7330
a0911fd0
MR
73312012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7332
7333 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7334 (proc_prettyprint_signal): Likewise.
7335 (proc_prettyprint_faultset): Likewise.
7336 (proc_prettyprint_fault): Likewise.
7337 (proc_prettyprint_actionset): Likewise.
7338 (proc_prettyprint_flags): Move to new proc-flags.c section.
7339 (proc_prettyfprint_flags): New prototype.
7340 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7341 (proc_syscall, proc_cursig): Likewise.
7342 (proc_set_kill_on_last_close): Likewise.
7343 (proc_unset_kill_on_last_close): Likewise.
7344 (proc_set_watchpoint): Make static.
7345 (proc_delete_dead_threads): Likewise.
7346 (procfs_set_watchpoint): Likewise.
7347 (_initialize_procfs): Add prototype.
7348 * proc-events.c: Include proc-utils.h.
7349 (init_syscall_table): Make static.
7350 * proc-api.c (_initialize_proc_api): Add prototype.
7351 * proc-flags.c: Include proc-utils.h.
7352
9009e1ae
MR
73532012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7354
7355 * configure.ac: Add AC_ARG_PROGRAM.
7356 * configure: Regenerate.
7357
4fae6e18
JK
73582012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7359
7360 Fix DW_AT_lower_bound defaults for DWARF-4+.
7361 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7362 high. New variable low_default_is_valid. Implement DWARF-4+
7363 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7364 no default by the DWARF standard.
7365
14132e89 73662012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7367 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7368
7369 * infrun.c (handle_inferior_event): Move the check for return
7370 trampolines ahead of the check for function trampolines.
7371 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7372 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7373 (mips_str_mips16_ret_stub): Likewise.
7374 (mips_str_call_fp_stub): Likewise.
7375 (mips_str_call_stub): Likewise.
7376 (mips_str_fn_stub): Likewise.
7377 (mips_str_pic): Likewise.
7378 (mips_in_frame_stub): New function.
7379 (mips_unwind_pc): Return the return address rather than the PC
7380 if the PC of an intermediate frame is inside a call thunk.
7381 (mips_is_stub_suffix): New function.
7382 (mips_is_stub_mode): Likewise.
7383 (mips_get_mips16_fn_stub_pc): Likewise.
7384 (mips_skip_mips16_trampoline_code): Update to handle all the
7385 currently generated stub types. Don't recurse into __fn_stub
7386 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7387 Use cooked register accesses.
7388 (mips_in_return_stub): Reintroduce function.
7389 (mips_skip_trampoline_code): Traverse trampolines recursively.
7390 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7391
518f0db5 73922012-04-26 Joel Brobecker <brobecker@adacore.com>
7393
7394 GDB 7.4.1 released.
7395
3184d3f9
JL
73962012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7397
7398 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7399 * features/arm-with-m-vfp-d16.xml: New file. Describes
7400 Cortex-M with VFPv4-sp-d16 FPU register layout.
7401 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7402 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7403 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7404 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7405 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7406
b6201d44
DE
74072012-04-25 Doug Evans <dje@google.com>
7408
7409 * cli/cli-decode.c (print_doc_line): Use stream instead of
7410 current_uiout.
7411
4e2f8df6
SDJ
74122012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7413
7414 * features/arm-with-iwmmxt.c: Regenerate.
7415 * features/arm-with-m-fpa-layout.c: Likewise.
7416 * features/arm-with-m.c: Likewise.
7417 * features/arm-with-neon.c: Likewise.
7418 * features/arm-with-vfpv2.c: Likewise.
7419 * features/arm-with-vfpv3.c: Likewise.
7420 * features/mips-dsp-linux.c: Likewise.
7421 * features/mips-linux.c: Likewise.
7422 * features/mips64-dsp-linux.c: Likewise.
7423 * features/mips64-linux.c: Likewise.
7424 * features/s390-linux32.c: Likewise.
7425 * features/s390-linux32v1.c: Likewise.
7426 * features/s390-linux32v2.c: Likewise.
7427 * features/s390-linux64.c: Likewise.
7428 * features/s390-linux64v1.c: Likewise.
7429 * features/s390-linux64v2.c: Likewise.
7430 * features/s390x-linux64.c: Likewise.
7431 * features/s390x-linux64v1.c: Likewise.
7432 * features/s390x-linux64v2.c: Likewise.
7433 * features/tic6x-c62x-linux.c: Likewise.
7434 * features/tic6x-c62x.c: Likewise.
7435 * features/tic6x-c64x-linux.c: Likewise.
7436 * features/tic6x-c64x.c: Likewise.
7437 * features/tic6x-c64xp-linux.c: Likewise.
7438 * features/tic6x-c64xp.c: Likewise.
7439 * target-descriptions.c: Only generate `field_type' and `type'
7440 variables when needed.
7441
2def3e66
JB
74422012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7443
7444 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7445
a766d390
DE
74462012-04-25 Doug Evans <dje@google.com>
7447
7448 Initial pass at Go language support.
7449 * NEWS: Mention Go.
7450 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7451 go-valprint.c.
7452 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7453 (YYFILES): Add go-exp.c.
7454 (YYOBJ): Add go-exp.o.
7455 (local-maintainer-clean): Delete go-exp.c.
7456 * defs.h (enum language): Add language_go.
7457 * dwarf2read.c: #include "go-lang.h".
7458 (fixup_go_packaging): New function.
7459 (process_full_comp_unit): Call it when processing Go CUs.
7460 (dwarf2_physname): Add Go support.
7461 (read_file_scope): Handle missing language spec for GNU Go.
7462 (set_cu_language): Handle DW_LANG_Go.
7463 * go-exp.y: New file.
7464 * go-lang.h: New file.
7465 * go-lang.c: New file.
7466 * go-typeprint.c: New file.
7467 * go-valprint.c: New file.
7468 * symtab.c: #include "go-lang.h".
7469 (symbol_set_language): Handle language_go.
7470 (symbol_find_demangled_name, symbol_set_names): Ditto.
7471 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7472
4e2af517
JM
74732012-04-24 Jim Meyering <meyering@redhat.com>
7474
7475 avoid a few strncpy-induced buffer overruns
7476 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7477 fname and psargs before trying to concatenate.
7478 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7479 "name" before applying strchr.
7480
b77b7f52
SCR
74812012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7482
7483 * CONTRIBUTE: Use unified diff instead of context diff when
7484 generating patches.
7485
6321c22a
MR
74862012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7487
7488 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7489 code. Handle JR.HB correctly.
7490
742c84f6
MR
74912012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7492
7493 * mips-tdep.c
7494 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7495 with the other MIPS16 helpers.
7496
7fc7e0c3
SDJ
74972012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7498
7499 * observer.sh: Conditionally declare `args', thus cleaning up
7500 unused instances of this variable.
7501
20388dd6
YQ
75022012-04-24 Yao Qi <yao@codesourcery.com>
7503
7504 Revert this patch to allow breakpoint always-inserted
7505 in record target.
7506 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7507 * breakpoint.c: Include record.h.
7508 (breakpoints_always_inserted_mode): Return false when the record
7509 target is in use.
20388dd6
YQ
7510
7511 * breakpoint.c (iterate_over_bp_locations): New.
7512 * breakpoint.h: Declare.
7513 New typedef walk_bp_location_callback.
7514 * record.c (record_open): Call record_init_record_breakpoints.
7515 (record_sync_record_breakpoints): New.
7516 (record_init_record_breakpoints): New.
7517 * NEWS: Mention supporting breakpoint always-inserted mode in
7518 record target.
7519
4734f50e
MK
75202012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7521
7522 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7523 any thread.
7524
c326b90e
YQ
75252012-04-24 Yao Qi <yao@codesourcery.com>
7526
7527 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7528 (is_catchpoint): ... it.
7529 (print_one_breakpoint_location): Caller update.
7530 * breakpoint.h: Update declaration.
7531
d8fb5a1e
DM
75322012-04-23 David S. Miller <davem@davemloft.net>
7533
7534 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7535
34431a2a
TT
75362012-04-23 Tom Tromey <tromey@redhat.com>
7537
7538 * buildsym.c (add_free_pendings): Remove.
7539 * buildsym.h (add_free_pendings): Remove.
7540
4568ecf9
DE
75412012-04-23 Doug Evans <dje@google.com>
7542
7543 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7544 attr.u.unsnd instead of attr.u.addr.
7545 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7546 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7547 DW_FORM_ref_udata.
7548 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7549 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7550 DW_FORM_ref_udata.
7551 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7552
dca9aa3a
MR
75532012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7554
7555 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7556 (mips_o32_return_value): Likewise.
7557 (mips_o64_return_value): Likewise.
7558
c8ea1972
PH
75592012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7560
7561 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7562 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7563 their treatment in eval.c.
c8ea1972 7564
8d1b3521
DM
75652012-04-21 David S. Miller <davem@davemloft.net>
7566
7567 * sparc-tdep.c (X_DISP10): Define.
7568 (sparc_analyze_control_transfer): Handle compare-and-branch.
7569
03145bf4
JL
75702012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7571
7572 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7573 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7574
004159a2 75752012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7576 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7577
7578 * mips-tdep.c (mips_float_register_p): New function.
7579 (mips_convert_register_float_case_p): Use mips_float_register_p.
7580 (mips_register_type): Likewise.
7581 (mips_print_register): Likewise.
7582 (print_gp_register_row): Likewise.
7583 (mips_print_registers_info): Likewise.
7584
7f0e6aae
MR
75852012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7586
7587 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7588 of mips16 symbols.
7589
bc17beea
AP
75902012-04-20 Andrew Pinski <apinski@cavium.com>
7591
7592 * MAINTAINERS (Write After Approval): Add myself to the list.
7593
1730a5a5
SDJ
75942012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7595
7596 * MAINTAINERS: Update my e-mail address.
7597
38ea300a
PA
75982012-04-20 Pedro Alves <palves@redhat.com>
7599
7600 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7601 $srcdir.
7602 * configure: Regenerate.
7603
111dfaae
SDJ
76042012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7605
7606 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7607 declaration.
7608 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7609
4fb2c64a
JK
76102012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7611
7612 Fix compilation compatibility with python-2.4
7613 * python/py-type.c (convert_field): Cast ADDRSTRING for
7614 PyObject_SetAttrString as non-const. New comment.
7615
6328eb38
TT
76162012-04-19 Tom Tromey <tromey@redhat.com>
7617
7618 * top.c (quit_target): Use all_cleanups.
7619 * main.c (captured_command_loop): Use all_cleanups.
7620 * exceptions.c (throw_exception): Use all_cleanups.
7621
c971b7fa
PA
76222012-04-19 Pedro Alves <palves@redhat.com>
7623
7624 * Makefile.in (GNULIB_BUILDDIR): New.
7625 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7626 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7627 (CLEANDIRS). Remove gnulib/import.
7628 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7629 (all-lib): Ditto.
7630 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7631 (gnulib/import/Makefile): Replace gnulib/import with
7632 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7633 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7634 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7635 acx_configure_dir.m4.
7636 * acinclude.m4: Include acx_configure_dir.m4.
7637 * acx_configure_dir.m4: New file.
7638 * aclocal.m4: Regenerate.
a09130f9
PA
7639 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7640 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7641 (GNULIB): New variable.
7642 (GNULIB_STDINT_H): Adjust.
7643 (AC_OUTPUT): Don't output gnulib/Makefile.
7644 * gdb/defs.h: Include build-gnulib/config.h.
7645 * aclocal.m4: Regenerate.
7646 * config.in: Regenerate.
7647 * configure: Regenerate.
7648
7649 * gnulib/Makefile.in: New file.
7650 * gnulib/configure.ac: New file.
7651 * gnulib/aclocal.m4: New file.
7652 * gnulib/config.in: New file.
7653 * gnulib/configure: New file.
c971b7fa
PA
7654 * gnulib/: Re-run gnulib-tool to adjust.
7655
b10faa68
DE
76562012-04-19 Doug Evans <dje@google.com>
7657
7658 * cleanups.h (struct cleanup): Move to cleanups.c.
7659 (make_cleanup_dtor_ftype): New typedef.
7660 (make_cleanup_dtor): Use it.
7661 (ALL_CLEANUPS): Replace with ...
7662 (all_cleanups): ... this. Declare. All uses updated.
7663 * cleanups.c: #include "gdb_assert.h".
7664 (sentinel_cleanup): New static global.
7665 (SENTINEL_CLEANUP): Define.
7666 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7667 (make_my_cleanup2): Assert result is non-NULL.
7668 (all_cleanups): New function.
7669 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7670 of NULL.
7671
d8c267cc
PA
76722012-04-19 Pedro Alves <palves@redhat.com>
7673
7674 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7675 Adjust paths to gnulib imported files.
7676
809277f8
PA
76772012-04-19 Pedro Alves <palves@redhat.com>
7678
7679 * gnulib/: Move whole directory ...
7680 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7681 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7682 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7683 (aclocal_m4_deps): Adjust.
7684 * aclocal.m4: Regenerate.
7685 * configure: Regenerate.
7686 * configure.ac: Adjust AC_OUTPUT output.
7687
aad9eab9
YQ
76882012-04-19 Yao Qi <yao@codesourcery.com>
7689
7690 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7691 (vec.o): New rule.
7692 * vec.c: Move it ...
7693 * common/vec.c: ... here.
7694 * vec.h: Move it ...
7695 * common/vec.h: ... here.
7696
48fe4669
YQ
76972012-04-19 Yao Qi <yao@codesourcery.com>
7698
7699 * gdb-code-style.el: New.
7700
770d76d7
PA
77012012-04-18 Pedro Alves <palves@redhat.com>
7702
7703 Update gnulib from latest git.
7704 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7705
7706 * gnulib/Makefile.am: Update.
7707 * gnulib/dummy.c: Update.
7708 * gnulib/extra/arg-nonnull.h: Update.
7709 * gnulib/extra/c++defs.h: Update.
7710 * gnulib/extra/update-copyright: Update.
7711 * gnulib/extra/warn-on-use.h: Update.
7712 * gnulib/inttypes.in.h: Update.
7713 * gnulib/m4/00gnulib.m4: Update.
7714 * gnulib/m4/extensions.m4: Update.
7715 * gnulib/m4/gnulib-cache.m4: Update.
7716 * gnulib/m4/gnulib-common.m4: Update.
7717 * gnulib/m4/gnulib-comp.m4: Update.
7718 * gnulib/m4/gnulib-tool.m4: Update.
7719 * gnulib/m4/include_next.m4: Update.
7720 * gnulib/m4/inttypes-pri.m4: Update.
7721 * gnulib/m4/inttypes.m4: Update.
7722 * gnulib/m4/longlong.m4: Update.
7723 * gnulib/m4/memchr.m4: Update.
7724 * gnulib/m4/memmem.m4: Update.
7725 * gnulib/m4/mmap-anon.m4: Update.
7726 * gnulib/m4/multiarch.m4: Update.
7727 * gnulib/m4/onceonly.m4: Update.
7728 * gnulib/m4/stddef_h.m4: Update.
7729 * gnulib/m4/stdint.m4: Update.
7730 * gnulib/m4/string_h.m4: Update.
7731 * gnulib/m4/warn-on-use.m4: Update.
7732 * gnulib/m4/wchar_h.m4: Update.
7733 * gnulib/m4/wchar_t.m4: Update.
7734 * gnulib/m4/wint_t.m4: Update.
7735 * gnulib/memchr.c: Update.
7736 * gnulib/memmem.c: Update.
7737 * gnulib/stddef.in.h: Update.
7738 * gnulib/stdint.in.h: Update.
7739 * gnulib/str-two-way.h: Update.
7740 * gnulib/string.in.h: Update.
7741 * gnulib/wchar.in.h: Update.
7742
7743 * gnulib/extra/arg-nonnull.h: Delete.
7744 * gnulib/extra/c++defs.h: Delete.
7745 * gnulib/extra/warn-on-use.h: Delete.
7746 * gnulib/m4/wchar_h.m4: Delete.
7747 * gnulib/m4/wint_t.m4: Delete.
7748 * gnulib/wchar.in.h: Delete.
7749
7750 * gnulib/extra/snippets/arg-nonnull.h: New.
7751 * gnulib/extra/snippets/c++defs.h: New.
7752 * gnulib/extra/snippets/warn-on-use.h: New.
7753
7754 * aclocal.m4: Regenerate.
7755 * config.in: Regenerate.
7756 * configure: Regenerate.
7757 * gnulib/Makefile.in: Regenerate.
7758
174e088e
PA
77592012-04-18 Pedro Alves <palves@redhat.com>
7760
7761 Reimport the update-copyright module from gnulib
7762 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7763
7764 * configure: Regenerate.
7765 * gnulib/Makefile.am: Update.
7766 * gnulib/Makefile.in: Regenerate.
7767 * gnulib/extra/update-copyright: Update.
7768 * gnulib/m4/gnulib-cache.m4: Update.
7769 * gnulib/m4/gnulib-comp.m4: Update.
7770
7f533142
JB
77712012-04-18 Tristan Gingold <gingold@adacore.com>
7772
7773 * configure.ac (aix): Put -lpthread into libs.
7774 * configure: Regenerate.
7775
001822aa
TT
77762012-04-18 Tom Tromey <tromey@redhat.com>
7777
7778 * linespec.c (convert_linespec_to_sals): Don't use
7779 SYMBOL_OBJ_SECTION.
7780 (compare_msymbols): Arguments are minsym_and_objfile, not
7781 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7782
db026a31
PA
77832012-04-18 Pedro Alves <palves@redhat.com>
7784
7785 Revert gnulib/ part of:
7786 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7787 Copyright year update in most files (performed by copyright.sh).
7788
12df843f
JK
77892012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7790
7791 Fix 64-bit constants on 32-bit hosts.
7792 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7793 from unsigned long to ULONGEST.
7794 (read_signed_leb128): Change declaration return type from long to
7795 LONGEST.
7796 (dwarf2_const_value_attr): Change declaration parameter value from long
7797 to LONGEST.
7798 (dwarf2_compute_name): Change variable value from long to LONGEST.
7799 (read_unsigned_leb128): Change return type, variable result and some
7800 casts from unsigned long to ULONGEST.
7801 (read_signed_leb128): Change return type, variable result and some
7802 casts from long to LONGEST.
7803 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7804 value from long to LONGEST.
7805 (dwarf2_const_value): Change variable value from long to LONGEST.
7806 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7807 plongest and hex_string.
7808 * symtab.h (struct general_symbol_info): Change ivalue from long to
7809 LONGEST, remove the comment.
7810 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7811 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7812
14e75d8e
JK
78132012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7814
7815 PR symtab/7259:
7816 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7817 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7818 (ada_discrete_type_low_bound): Fix function comment. Use
7819 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7820 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7821 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7822 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7823 Use TYPE_FIELD_ENUMVAL.
7824 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7825 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7826 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7827 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7828 TYPE_CODE_ENUM.
7829 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7830 * dwarf2read.c (process_enumeration_scope): Likewise.
7831 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7832 field.bitpos.
7833 (class StructMainTypePrettyPrinter): Support also
7834 FIELD_LOC_KIND_ENUMVAL.
7835 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7836 TYPE_CODE_ENUM.
7837 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7838 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7839 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7840 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7841 field enumval.
7842 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7843 accommodate enumval.
7844 (struct call_site): Adjust loc_kind to accommodate enumval.
7845 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7846 (TYPE_FIELD_ENUMVAL): New macros.
7847 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7848 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7849 TYPE_CODE_ENUM.
7850 * p-typeprint.c (pascal_type_print_base): Likewise.
7851 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7852 enumval.
7853 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7854 * python/py-type.c (convert_field): New variable addrstring. Use
7855 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7856 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7857 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7858 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7859 TYPE_CODE_ENUM.
7860 * valprint.c (generic_val_print): Likewise.
7861
380bca97
DE
78622012-04-17 Doug Evans <dje@google.com>
7863
dcc07052
DE
7864 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7865
380bca97
DE
7866 * dwarf2read.c: Whitespace fixes.
7867 (lookup_signatured_type): Tweak comment.
7868 (get_die_type_at_offset): Fix comment.
7869
ec92004f
JB
78702012-04-17 Joel Brobecker <brobecker@adacore.com>
7871
7872 * xcoffread.c (xcoff_secnum_to_sections): New function.
7873 (secnum_to_section, secnum_to_bfd_section): Reimplement
7874 using xcoff_secnum_to_sections. Rename "secnum" parameter
7875 into "n_scnum".
7876 (RECORD_MINIMAL_SYMBOL): Delete.
7877 (record_minimal_symbol): New function.
7878 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7879 by call to record_minimal_symbol and set misc_func_recorded
7880 to 1. Set last_csect_sec to the XCOFF section index instead
7881 of GDB's section_offset index. Update calls to
7882 prim_record_minimal_symbol_and_info to pass the BFD section
7883 as well.
7884
40301fb7
JB
78852012-04-17 Joel Brobecker <brobecker@adacore.com>
7886
7887 * xcoffread.c (read_xcoff_symtab): Delete variables
7888 last_csect_val and last_csect_sec and associated code.
7889
e0088cfd
DE
78902012-04-17 Doug Evans <dje@google.com>
7891
58d5e2c3
DE
7892 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7893 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7894 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7895 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7896
c27f5738
DE
7897 * cleanups.h: New file.
7898 * cleanups.c: New file.
7899 * Makefile.in (SFILES): Add cleanups.c.
7900 (HFILES_NO_SRCDIR): Add cleanups.h.
7901 (COMMON_OBS): Add cleanups.o.
7902 * defs.h (struct cleanup): Moved to cleanups.h.
7903 (do_cleanups,do_final_cleanups): Ditto.
7904 (discard_cleanups,discard_final_cleanups): Ditto
7905 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7906 (save_cleanups,save_final_cleanups): Ditto.
7907 (restore_cleanups,restore_final_cleanups): Ditto.
7908 (null_cleanup): Ditto.
7909 (make_my_cleanup,make_my_cleanup2): Ditto.
7910 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7911 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7912 (do_cleanups,do_final_cleanups): Ditto.
7913 (discard_cleanups,discard_final_cleanups): Ditto
7914 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7915 (save_cleanups,save_final_cleanups): Ditto.
7916 (restore_cleanups,restore_final_cleanups): Ditto.
7917 (null_cleanup): Ditto.
7918 (make_my_cleanup,make_my_cleanup2): Ditto.
7919 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7920
e0088cfd
DE
7921 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7922 make_my_cleanup.
7923 (make_cleanup_dyn_string_delete): Ditto.
7924 (make_cleanup_ui_file_delete): Ditto.
7925 (make_cleanup_ui_out_redirect_pop): Ditto.
7926 (make_cleanup_free_section_addr_info): Ditto.
7927 (make_cleanup_restore_integer): Ditto.
7928 (make_cleanup_unpush_target): Ditto.
7929 (make_cleanup_value_free_to_mark): Ditto.
7930 (make_cleanup_value_free): Ditto.
7931 (make_cleanup_free_so): Ditto.
7932
4dc84fd1
JK
79332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7934
7935 New option "set debug auto-load".
7936 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7937 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7938 (auto_load_safe_path_vec_update)
7939 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7940 if DEBUG_AUTO_LOAD.
7941 (file_is_auto_load_safe): New parameters debug_fmt and ....
7942 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7943 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7944 caller by explanatory string.
7945 (_initialize_auto_load): Register "set debug auto-load".
7946 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7947 and ....
7948 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7949 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7950 by explanatory string.
7951 * main.c (captured_main): Likewise.
7952 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7953 (source_section_scripts): Likewise.
7954
bccbefd2
JK
79552012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 New option "set auto-load safe-path".
7958 * NEWS: New commands "set auto-load safe-path"
7959 and "show auto-load safe-path".
7960 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7961 (auto_load_safe_path, auto_load_safe_path_vec)
7962 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7963 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7964 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7965 (source_gdb_script_for_objfile): New variable is_safe. Call
7966 file_is_auto_load_safe. Return if it is not.
7967 (struct loaded_script): New field loaded.
7968 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7969 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7970 output "Missing" to "No".
7971 (_initialize_auto_load): New variable cmd. Initialize
7972 auto_load_safe_path. Register "set auto-load safe-path",
7973 "show auto-load safe-path" and "add-auto-load-safe-path".
7974 * auto-load.h (maybe_add_script): Add parameter loaded.
7975 (file_is_auto_load_safe): New declaration.
7976 * config.in: Regenerate.
7977 * configure: Regenerate.
7978 * configure.ac: New parameters --with-auto-load-safe-path
7979 and --without-auto-load-safe-path.
7980 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7981 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7982 * main.c (captured_main): Check file_is_auto_load_safe for
7983 LOCAL_GDBINIT.
7984 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7985 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7986 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7987 not.
7988
bf88dd68
JK
79892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7990
7991 auto-load: Implementation.
7992 * NEWS: New descriptions for "info auto-load",
7993 "info auto-load gdb-scripts", "info auto-load python-scripts",
7994 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7995 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7996 and "show auto-load-scripts". New description for "set auto-load",
7997 "show auto-load", "set auto-load gdb-scripts",
7998 "show auto-load gdb-scripts", "set auto-load python-scripts",
7999 "show auto-load python-scripts", "set auto-load local-gdbinit",
8000 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8001 "show auto-load libthread-db".
8002 * auto-load.c: Remove include python/python-internal.h. Add includes
8003 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8004 cli/cli-setshow.h.
8005 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8006 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8007 (gdbpy_global_auto_load): Rename to ...
8008 (global_auto_load): ... here.
8009 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8010 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8011 (script_language_gdb, source_gdb_script_for_objfile): New.
8012 (struct loaded_script): New field language.
8013 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8014 LANGUAGE.
8015 (maybe_add_script): Add parameter language. Drop redundant
8016 entry.full_path initialization. Initialize entry.language and
8017 (*slot)->language.
8018 (auto_load_objfile_script): Change parameter suffix to language.
8019 Remove the call of maybe_add_script.
8020 Call language->source_script_for_objfile.
8021 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8022 New.
8023 (collect_matching_scripts): Adjust it for
8024 struct collect_matching_scripts_data.
8025 (auto_load_info_scripts_pattern_nl): New variable.
8026 (info_auto_load_scripts): Rename to ...
8027 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8028 for struct collect_matching_scripts_data.
8029 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8030 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8031 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8032 (auto_load_info_cmdlist_get): New.
8033 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8034 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8035 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8036 "info auto-load local-gdbinit".
8037 * auto-load.h (struct script_language): New.
8038 (gdbpy_global_auto_load): Rename to ...
8039 (global_auto_load): ... here.
8040 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8041 (auto_load_local_gdbinit_loaded): New declarations.
8042 (maybe_add_script): New parameter language.
8043 (auto_load_objfile_script): Change parameter suffix to language.
8044 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8045 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8046 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8047 declarations.
8048 * linux-thread-db.c: Include auto-load.h and ctype.h.
8049 (auto_load_thread_db, show_auto_load_thread_db): New.
8050 (struct thread_db_info): New field filename.
8051 (delete_thread_db_info): Call xfree for FILENAME.
8052 (try_thread_db_load): Initialize FILENAME.
8053 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8054 if !AUTO_LOAD_THREAD_DB.
8055 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8056 (_initialize_thread_db): Install auto_load_thread_db
8057 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8058 as "info auto-load libthread-db".
8059 * main.c (captured_main): Rename gdbpy_global_auto_load to
8060 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8061 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8062 (print_gdb_help): Extend the help for 'local init file'.
8063 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8064 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8065 (auto_load_scripts): Rename to ...
8066 (auto_load_python_scripts): ... here, update the comment.
8067 (gdbpy_load_auto_script_for_objfile): New declaration.
8068 (show_auto_load_python_scripts, script_language_python)
8069 (gdbpy_load_auto_script_for_objfile): New.
8070 (source_section_scripts): Refactor the code.
8071 (load_auto_scripts_for_objfile): Rename to ...
8072 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8073 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8074 (info_auto_load_python_scripts): New.
8075 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8076 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8077 Register "set auto-load-scripts" as its deprecated alias. Register
8078 "info auto-load python-scripts". Register "info auto-load-scripts" as
8079 its deprecated alias.
8080 (load_auto_scripts_for_objfile): Rename to ...
8081 (gdbpy_load_auto_scripts_for_objfile): ... here.
8082 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8083 (gdbpy_load_auto_scripts_for_objfile): ... here.
8084
e2207b9a
JK
80852012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8086
8087 auto-load: Move files.
8088 * Makefile.in (SFILES): Add auto-load.c.
8089 (HFILES_NO_SRCDIR): Add auto-load.h.
8090 (COMMON_OBS): Add auto-load.o.
8091 (distclean): Change .gdbinit for gdb-gdb.gdb.
8092 * auto-load.c: New file, with parts from python/py-auto-load.c.
8093 * auto-load.h: New file, with parts from python/python.h.
8094 * configure: Regenerate.
8095 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8096 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8097 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8098 * main.c: Include auto-load.h.
8099 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8100 command.h, observer.h and progspace.h to auto-load.c. Add include
8101 auto-load.h.
8102 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8103 (struct loaded_script, auto_load_pspace_data)
8104 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8105 (hash_loaded_script_entry, eq_loaded_script_entry)
8106 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8107 (maybe_add_script): Move to auto-load.c.
8108 (source_section_scripts): Change maybe_add_script parameters passing,
8109 use script_not_found_warning_print.
8110 (clear_section_scripts, auto_load_objfile_script)
8111 (auto_load_new_objfile, loaded_script_ptr)
8112 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8113 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8114 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8115 auto_load_new_objfile and info_auto_load_scripts initizations to
8116 auto-load.c.
8117 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8118
e4ab2fad
JK
81192012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 Code cleanup.
8122 * charset.c (find_charset_names): Remove variables ix and elt.
8123 Use free_char_ptr_vec.
8124 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8125 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8126 debugdir_end. New variable debugdir_len.
8127 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8128 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8129 declarations.
8130 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8131 and elt. Use free_char_ptr_vec.
8132 * source.c (add_path): Remove variables argv, arg and argv_index.
8133 New variables dir_vec, back_to, ix and name.
8134 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8135 make_cleanup_freeargv. Remove variable separator. Simplify the code
8136 no longer expecting DIRNAME_SEPARATOR.
8137 (openp): Remove variable p, p1 and len. New variables dir_vec,
8138 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8139 no longer expecting DIRNAME_SEPARATOR.
8140 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8141 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8142 debugdir_end.
8143 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8144 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8145 (dirnames_to_char_ptr_vec): New functions.
8146
5ee4ed9f
JK
81472012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8148
8149 Code cleanup.
8150 * source.c (add_path): Remove always true conditional 'p == 0' and
8151 unindent its code block.
8152
f41f5e61
PA
81532012-04-17 Pedro Alves <palves@redhat.com>
8154
8155 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8156 (FIELD_BITPOS_LVAL): ... this.
8157 (FIELD_BITPOS): New.
8158 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8159 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8160 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8161 SET_FIELD_BITPOS.
8162 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8163 SET_FIELD_BITPOS.
8164 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8165 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8166 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8167 SET_FIELD_BITPOS.
8168
945b3a32
JK
81692012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8170
8171 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8172 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8173 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8174 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8175 * jv-lang.c (java_link_class_type): Likewise, once.
8176 * stabsread.c (read_enum_type): Likewise.
8177
42476b70
YQ
81782012-04-16 Yao Qi <yao@codesourcery.com>
8179
8180 * common/agent.c (agent_run_command): Add one more parameter `len'.
8181 Update callers.
8182 * common/agent.h: Update declaration.
8183 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8184 Update.
8185 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8186
8264ba82
AG
81872012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8188
8189 PR mi/13393
8190 * value.c (value_actual_type): New function.
8191 * value.h (value_actual_type): New declaration.
8192 * varobj.c (update_type_if_necessary): New function.
8193 (varobj_create): Call value_actual_type instead of
8194 value_type.
8195 (install_dynamic_child): distinct changed and type changed MI variable
8196 objects.
8197 (update_dynamic_varobj_children): Updated for install_dynamic_child
8198 change. All callers updated.
a09130f9 8199 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8200 the value changed and RTTI is used to determine the type.
8201 (create_child_with_value): Call value_actual_type instead of
8202 value_type.
a09130f9 8203 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8204 specify whether the given value should be casted to enclosing type.
8205 All callers updated.
8206
55a8c076
YQ
82072012-04-14 Yao Qi <yao@codesourcery.com>
8208
8209 Import gnulib module inttypes from git
8210 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8211 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8212 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8213 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8214 * aclocal.m4, config.in, configure: Regenerated.
8215 * gnulib/Makefile.am: Update.
8216 * gnulib/Makefile.in: Update.
8217 * gnulib/m4/gnulib-cache.m4: Update.
8218 * gnulib/m4/gnulib-comp.m4: Update.
8219 * gnulib/inttypes.in.h: New.
8220 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8221 * gnulib/m4/inttypes.m4: New.
55a8c076 8222
ca7781d2
LM
82232012-04-13 Luis Machado <lgustavo@codesourcery.com>
8224
8225 * infrun.c (resume): Update PC address to the real PC after
8226 preparing to do displaced stepping.
8227
e319fa28
DE
82282012-04-12 Doug Evans <dje@google.com>
8229
8230 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8231 All callers updated.
8232
15add3f5
MK
82332012-04-12 Mark Kettenis <kettenis@gnu.org>
8234
8235 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8236
52dc124a
DE
82372012-04-12 Doug Evans <dje@google.com>
8238
0e50663e
DE
8239 * dwarf2read.c (create_all_type_units): Renamed from
8240 create_debug_types_hash_table. All callers updated.
8241
52dc124a
DE
8242 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8243 local type_sig to sig_type, type_offset to type_offset_in_tu.
8244 (hash_signatured_type): Renamed from hash_type_signature,
8245 all callers updated.
8246 (eq_signatured_type): Renamed from eq_type_signature,
8247 all callers updated.
8248 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8249 (process_enumeration_scope): Ditto.
8250 (lookup_signatured_type_at_offset): Ditto.
8251 (load_full_type_unit, read_signatured_type): Ditto.
8252
248fd3bf
YQ
82532012-04-12 Yao Qi <yao@codesourcery.com>
8254
8255 * remote.c (async_remote_interrupt): Correct function name in
8256 debug message.
8257 (async_remote_interrupt_twice): Ditto.
8258
bc3aa6c3
DE
82592012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8260
8261 * source.c (find_and_open_source): Consistently pass resulting
8262 full path through xfullpath.
8263
9e529e1d
JK
82642012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 Provide more specific displaced-stepping memory error message.
8267 * infrun.c (displaced_step_prepare): New variable status. Call
8268 target_read_memory instead of read_memory, provide more specific
8269 error message.
8270
82e0cec1
TG
82712012-04-11 Tristan Gingold <gingold@adacore.com>
8272
8273 PR gdb/13901
8274 * darwin-nat.c (darwin_execvp): Revert previous patch.
8275
d987a266
TG
82762012-04-11 Tristan Gingold <gingold@adacore.com>
8277
8278 PR gdb/13901
8279 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8280 in case of change.
8281
016b7430
TG
82822012-04-11 Tristan Gingold <gingold@adacore.com>
8283
8284 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8285 warning.
8286
06fc020f
SCR
82872012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8288
8289 New command 'explore' which helps explore values and types in
8290 scope.
8291 * NEWS: Add an entry about the new 'explore' command.
8292 * data-directory/Makefile.in: Add gdb/command/explore.py
8293 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8294 command using the GDB Python API.
06fc020f 8295
de0919f8 82962012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8297
8298 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8299 extension in jump target calculation.
8300
de0919f8 83012012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8302
8303 * mips-tdep.c (mips32_next_pc): Handle JALX.
8304
2f26ef89
YQ
83052012-04-10 Yao Qi <yao@codesourcery.com>
8306
8307 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8308
2e505b66
YQ
83092012-04-10 Yao Qi <yao@codesourcery.com>
8310
8311 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8312 and gnulib/m4/gnulib-tool.m4.
8313
0d99eb77
DE
83142012-04-10 Doug Evans <dje@google.com>
8315
8316 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8317 (load_partial_dies): Clarify comment.
8318 (find_partial_die): Support rereading type units.
8319 Clarify CU handling, if we know offset is in CU, don't search for the
8320 containing CU. Add comment regarding memory waste.
8321
9a82b8ff
L
83222012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8323
8324 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8325 i386/x32-avx and i386/x32-avx-linux.
8326 (i386/x32-expedite): New.
8327 (i386/x32-linux-expedite): Likewise.
8328 (i386/x32-avx-expedite): Likewise.
8329 (i386/x32-avx-linux-expedite): Likewise.
8330 ($(outdir)/i386/x32.dat): Likewise.
8331 ($(outdir)/i386/x32-linux.dat): Likewise.
8332 ($(outdir)/i386/x32-avx.dat): Likewise.
8333 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8334
8335 * features/i386/x32-avx-linux.xml: New file.
8336 * features/i386/x32-avx.xml: Likewise.
8337 * features/i386/x32-core.xml: Likewise.
8338 * features/i386/x32-linux.xml: Likewise.
8339 * features/i386/x32.xml: Likewise.
8340
8341 * features/i386/x32-avx-linux.c: New. Generated.
8342 * features/i386/x32-avx.c: Likewise.
8343 * features/i386/x32-linux.c: Likewise.
8344 * features/i386/x32.c: Likewise.
8345 * regformats/i386/x32-avx-linux.dat: Likewise.
8346 * regformats/i386/x32-avx.dat: Likewise.
8347 * regformats/i386/x32-linux.dat: Likewise.
8348 * regformats/i386/x32.dat: Likewise.
8349
ee41036f
TG
83502012-04-10 Tristan Gingold <gingold@adacore.com>
8351
8352 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8353 code to kill the inferior.
8354
a7aa5b8a
MK
83552012-04-09 Mark Kettenis <kettenis@gnu.org>
8356
8357 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8358 defines.
8359 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8360 defines.
a09130f9 8361 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8362 (yyvsp): New defines.
8363 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8364 defines.
8365 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8366 defines.
8367 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8368 defines.
8369 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8370 defines.
8371 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8372 defines.
8373
fb57d452
MK
83742012-04-09 Mark Kettenis <kettenis@gnu.org>
8375
a09130f9 8376 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8377 (sparc64_store_arguments): Fix coding style.
8378
cdc7b32f
MK
83792012-04-07 Mark Kettenis <kettenis@gnu.org>
8380
8381 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8382 complex floats, adjust some related comments and tighten a related
8383 assertion.
8384 (sparc64_extract_return_value): Handle complex floats.
8385
7adf1e79
DE
83862012-04-07 Doug Evans <dje@google.com>
8387
8388 * dwarf2read.c (load_partial_dies): Change condition to assert.
8389
50f1ae7b
DE
83902012-04-06 Doug Evans <dje@google.com>
8391
8392 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8393 "mov %rsp,%rbp".
8394
55fa75c3
KB
83952012-04-05 Kevin Buettner <kevinb@redhat.com>
8396
8397 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8398 fencepost error.
8399 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8400 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8401 architecture.
8402
40e084e1
KS
84032012-04-05 Keith Seitz <keiths@redhat.com>
8404
8405 * linespec.c (decode_compound): Remove.
8406 (enum offset_relative_sign): New enum.
8407 (struct line_offset): New struct.
8408 (struct linespec): New struct.
8409 (struct linespec_state): Move file_symtabs,
8410 user_filename, and user_function into struct linespec.
8411 Make result an anonymous struct holding vectors of
8412 symbolp and minsym_and_objfile_d.
8413 Add language member.
8414 (enum ls_token_type): New enum.
8415 (linespec_keywords): New array.
8416 (struct ls_token): New struct.
8417 (struct ls_parser): New struct.
8418 (linespec_lexer_lex_number): New function.
8419 (linespec_lexer_lex_keyword): New function.
8420 (is_ada_operator): New function.
8421 (skip_quote_char): New function.
8422 (copy_token_string): New function.
8423 (is_closing_quote_enclosed): New function.
8424 (find_parameter_list_end): New function.
8425 (linespec_lexer_lex_string): New function.
8426 (linespec_lexer_lex_one): New function.
8427 (linespec_lexer_consume_token): New function.
8428 (linespec_lexer_peek_token): New function.
8429 (cplusplus_error): Remove unused function.
8430 (find_methods): Update comment.
8431 (find_toplevel_char): Return const.
8432 (is_objc_method_format): Remove unused function.
8433 (find_toplevel_string): New function.
8434 (is_linespec_boundary): Remove.
8435 (symbol_not_found_error): New function.
8436 (find_method_overload_end): Remove function.
8437 (unexpected_linespec_error): New function.
8438 (keep_name_info): Remove.
8439 (linespec_parse_line_offset): New function.
8440 (linespec_parse_basic): New function.
8441 (canonicalize_linespec): New function.
8442 (decode_line_internal): Remove.
8443 (create_sals_line_offset): New function adapted from
8444 decode_all_digits.
8445 (convert_linespec_to_sals): New function.
8446 (parse_linespec): New function.
8447 (linespec_parser_new): New function.
8448 (linespec_state_destructor): Change parameter type to
8449 struct linespec_state *.
8450 Add language parameter.
8451 Remove freeing of moved members.
8452 (linespec_parser_delete): New function.
8453 (decode_line_full): Use parse_linespec and linespec_parser_new.
8454 (decode_line_1): Likewise.
8455 (decode_indirect): Rename to ...
8456 (linespec_expression_to_pc): ... this and rewrite
8457 to simply find CORE_ADDR, storing this result for later
8458 conversion to SALs.
8459 (locate_first_half): Remove.
8460 (deocde_objc): Add parameter LS.
8461 Initialize new struct collect_info members.
8462 Handle minimal symbols, too.
8463 (decode_compound): Delete.
8464 (lookup_prefix_sym): Rewrite.
8465 (compare_msymbols): New function.
8466 (find_method): Rewrite.
8467 Do not call cplusplus_error.
8468 (symtabs_from_filename): Rewrite.
8469 (collect_function_symbols): Delete.
8470 (find_function_symbols): Rewrite without ARGPTR-style
8471 processing.
8472 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8473 (decode_dollar): Adapted and renamed to ...
8474 (linespec_parse_variable): ... this.
8475 (find_linespec_symbols): New function.
8476 (decode_label): Adapted and renamed to ...
8477 (find_label_symbols): ... this.
8478 (decode_digits_list_mode): Add and use LS argument.
8479 (decode_digits_ordinary): Likewise.
8480 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8481 If in list mode, allow any symbol class. Otherwise, only
8482 permit LOC_BLOCK symbols.
8483 (minsym_found): Update comments.
8484 (search_minsyms_for_name): Do not convert the matching symbol
8485 into a SAL. Simply push the symbol and objfile into the
8486 result vector.
8487 (decode_variable): Delete. Contents adapted into
8488 find_linespec_symbols.
8489
8490 * cp-support.c (SKIP_SPACE): Remove.
8491 (operator_tokens): Remove unused global.
8492 (cp_validate_operator): Remove.
8493 * cp-support.h (cp_validate_operator): Remove declaration.
8494
a72c8f6a
JK
84952012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8496
8497 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8498 for TYPE_VPTR_FIELDNO.
8499 * valprint.c (valprint_check_validity): Make it global, move the
8500 function comment ...
8501 * value.h (valprint_check_validity): ... to this new declaration.
8502
cf9bb588
TG
85032012-04-02 Tristan Gingold <gingold@adacore.com>
8504
8505 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8506 the STATE32 api for i386 state.
8507 (i386_darwin_store_inferior_registers): Likewise.
8508
17092398
TG
85092012-04-02 Tristan Gingold <gingold@adacore.com>
8510
8511 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8512 SS offset.
8513 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8514 format_string.
8515
ece0061f
TG
85162012-04-02 Tristan Gingold <gingold@adacore.com>
8517
8518 PR gdb/13901
d987a266 8519 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8520
cf65ecd3
JK
85212012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8522
8523 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8524
9bc3523d
TT
85252012-03-30 Tom Tromey <tromey@redhat.com>
8526
8527 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8528 of TRY_CATCH. Fix error handling.
8529 * python/py-value.c (convert_value_from_python): Move 'old'
8530 declaration to innermost scope.
8531
b1ed564a
JB
85322012-03-29 Joel Brobecker <brobecker@adacore.com>
8533 Andrey Smirnov <andrew.smirnov@gmail.com>
8534
8535 -Wshadow warning fix.
8536 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8537 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8538 Adjust code accordingly.
8539
cb8e9b97
JB
85402012-03-29 Joel Brobecker <brobecker@adacore.com>
8541
8542 * ada-lang.c (symbol_completion_add): Rename parameter
8543 "encoded" into "encoded_p". Ajust code and documentation
8544 accordingly.
8545
c0af1706
JB
85462012-03-29 Joel Brobecker <brobecker@adacore.com>
8547 Andrey Smirnov <andrew.smirnov@gmail.com>
8548
8549 -Wshadow warning fix.
8550 * ada-lang.c (symbol_completion_add): Rename parameter
8551 "wild_match" into wild_match_p. Update code and documentation
8552 accordingly.
8553
6ea35997
JB
85542012-03-29 Joel Brobecker <brobecker@adacore.com>
8555
8556 * ada-lang.c (symbol_completion_match): Rename parameter
8557 "encoded" into "encoded_p". Ajust code and documentation
8558 accordingly.
8559
e701b3c0
JB
85602012-03-29 Joel Brobecker <brobecker@adacore.com>
8561 Andrey Smirnov <andrew.smirnov@gmail.com>
8562
8563 -Wshadow warning fix.
8564 * ada-lang.c (symbol_completion_match): Rename parameter
8565 "wild_match" into "wild_match_p". Adjust code and function
8566 documentation accordingly.
8567
5e2336be
JB
85682012-03-29 Joel Brobecker <brobecker@adacore.com>
8569 Andrey Smirnov <andrew.smirnov@gmail.com>
8570
8571 -Wshadow warning fix.
8572 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8573 "symbol_info" into "info". Adjust code accordingly.
8574 (ada_lookup_symbol): Likewise.
8575
9f88c959
JB
85762012-03-29 Joel Brobecker <brobecker@adacore.com>
8577
8578 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8579 of this function's documentation.
8580
82ccd55e
JB
85812012-03-29 Joel Brobecker <brobecker@adacore.com>
8582 Andrey Smirnov <andrew.smirnov@gmail.com>
8583
8584 -Wshadow warning fix.
8585 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8586 variable into "wild_match_p". Adjust code accordingly.
8587
d0a8ab18
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_add_local_symbols): Rename "wild_match"
8593 parameter into "wild_match_p". Adjust code accordingly.
8594 Document this parameter in the function description.
8595
48b78332
JB
85962012-03-29 Joel Brobecker <brobecker@adacore.com>
8597 Andrey Smirnov <andrew.smirnov@gmail.com>
8598
8599 -Wshadow warning fix.
8600 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8601 "wild_match" parameter to "wild_match_p" (-Wshadow).
8602
2e6e0353
JB
86032012-03-29 Joel Brobecker <brobecker@adacore.com>
8604
8605 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8606 in function documentation.
8607
dc4024cd
JB
86082012-03-29 Joel Brobecker <brobecker@adacore.com>
8609 Andrey Smirnov <andrew.smirnov@gmail.com>
8610
8611 -Wshadow warning fix.
8612 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8613 variable into wild_match_p. Adjust code accordingly.
8614
6c88661c
JB
86152012-03-29 Joel Brobecker <brobecker@adacore.com>
8616 Andrey Smirnov <andrew.smirnov@gmail.com>
8617
8618 * ada-valprint.c (ada_val_print_1): Move the code handling
8619 TYPE_CODE_ENUM inside its own lexical block. Declare
8620 variables len and val there, instead of in the function's
8621 top level block. Avoid declaring deref_val again in a way
8622 that shadows another variable of the same name declared
8623 in one of the up-level blocks. Just re-use the up-level
8624 variable instead.
8625
4e5c77fe
JB
86262012-03-29 Joel Brobecker <brobecker@adacore.com>
8627
8628 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8629 Replace block_found argument by symbol_info. Adjust
8630 implementation accordingly. Add function documentation.
8631 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8632 Fix documentation.
8633 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8634 * ada-exp.y (write_object_renaming): Adjust to new
8635 ada_lookup_encoded_symbol API.
8636
1c0ac8c7
JB
86372012-03-29 Joel Brobecker <brobecker@adacore.com>
8638
8639 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8640 documentation.
8641
2aaed979
KB
86422012-03-28 Rathish C <rathish.c@kpitcummins.com>
8643
8644 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8645 (v850_register_name): Add the mpu and fpu register names.
8646 (v850e_register_name): Add the mpu and fpu register names.
8647 (v850e2_register_name): New function.
a09130f9 8648 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8649 bfd_mach_v850e2v3.
8650
927fbba6
JB
86512012-03-28 Joel Brobecker <brobecker@adacore.com>
8652
8653 * NEWS: Add entry for Ada varobj support.
8654
d32cafc7
JB
86552012-03-28 Joel Brobecker <brobecker@adacore.com>
8656
8657 * varobj.c (default_value_is_changeable_p): New function,
8658 extracted from varobj_value_is_changeable_p. Add declaration.
8659 (ada_value_is_changeable_p): New function, extracted from
8660 varobj_value_is_changeable_p. Add declaration.
8661 (struct language_specific): New field "value_is_changeable_p".
8662 (languages): Add entries for new field.
8663 (varobj_create): Set language before calling install_new_value.
8664 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8665 "value_is_changeable_p" language callback.
8666
181875a4
JB
86672012-03-28 Joel Brobecker <brobecker@adacore.com>
8668
8669 * ada-varobj.h, ada-varobj.c: New files.
8670 * Makefile.in (SFILES): Add ada-varobj.c.
8671 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8672 (COMMON_OBS): Add ada-varobj.o.
8673
7a290c40
JB
86742012-03-28 Joel Brobecker <brobecker@adacore.com>
8675
8676 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8677 (struct language_specific): New field "value_has_mutated".
8678 (languages): Set field "value_has_mutated" in each entry of array.
8679 (varobj_value_has_mutated): New function.
8680 (varobj_udpdate): Add handling of type mutation.
8681 (value_of_root): Add handling of type mutation.
8682 (ada_value_has_mutated): New function.
8683
ca9b8b9c
PA
86842012-03-28 Pedro Alves <palves@redhat.com>
8685
8686 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8687 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8688
cc0265cd
TT
86892012-03-28 Tom Tromey <tromey@redhat.com>
8690
8691 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8692 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8693 before returning.
8694
3ad2ec6f
TT
86952012-03-28 Tom Tromey <tromey@redhat.com>
8696
8697 * .dir-locals.el: New file.
8698
4a6510ba
PA
86992012-03-28 Pedro Alves <palves@redhat.com>
8700
8701 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8702
5a75128f
JB
87032012-03-28 Joel Brobecker <brobecker@adacore.com>
8704
8705 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8706 handling for r0.
8707
f99d8bf4
PA
87082012-03-27 Pedro Alves <palves@redhat.com>
8709
8710 Eliminate struct ui_stream.
8711
8712 * ui-out.h (struct ui_stream): Delete.
8713 (ui_out_field_stream): Adjust prototype.
8714 (ui_out_stream_new, ui_out_stream_delete)
8715 (make_cleanup_ui_out_stream_delete): Delete declarations.
8716 * ui-out.c (ui_out_field_stream): Change prototype to take a
8717 ui_file instead of a ui_stream. Adjust.
8718 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8719 (make_cleanup_ui_out_stream_delete): Delete.
8720 * breakpoint.c (print_breakpoint_location)
8721 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8722 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8723 * disasm.c (dump_insns): Ditto.
8724 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8725 prototype.
8726 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8727 ui_stream/ui_out_stream_new.
8728 * infcmd.c (print_return_value): Ditto.
8729 * osdata.c (info_osdata_command): Don't allocate a local
8730 ui_stream.
8731 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8732 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8733 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8734 allocate a local ui_stream.
8735 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8736 instead of ui_stream/ui_out_stream_new.
8737 (list_args_or_locals): Don't allocate a local ui_stream.
8738 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8739 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8740 ui_stream/ui_out_stream_new.
8741 * cli/cli-setshow.c (do_setshow_command): Ditto.
8742
6350a066 87432012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8744
6350a066
PA
8745 * arm-linux-tdep.c (arm_linux_init_abi): Call
8746 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8747 * arm-tdep.c (arm_process_record): New function.
8748 (deallocate_reg_mem): New function.
8749 (decode_insn): New function.
8750 (thumb_record_branch): New function.
8751 (thumb_record_ldm_stm_swi(): New function.
8752 (thumb_record_misc): New function.
8753 (thumb_record_ld_st_stack): New function.
8754 (thumb_record_ld_st_imm_offset): New function.
8755 (thumb_record_ld_st_reg_offset(): New function.
8756 (thumb_record_add_sub_cmp_mov): New function.
8757 (thumb_record_shift_add_sub): New function.
8758 (arm_record_coproc_data_proc): New function.
8759 (arm_record_coproc): New function.
8760 (arm_record_b_bl): New function.
8761 (arm_record_ld_st_multiple): New function.
8762 (arm_record_ld_st_reg_offset): New function.
8763 (arm_record_ld_st_imm_offset): New function.
8764 (arm_record_data_proc_imm): New function.
8765 (arm_record_data_proc_misc_ld_str): New function.
8766 (arm_record_extension_space): New function.
8767 (arm_record_strx): New function.
8768 (sbo_sbz): New function.
8769 (struct insn_decode_record): New structure for arm insn record.
8770 (REG_ALLOC): New macro for reg allocations.
8771 (MEM_ALLOC): New macro for memory allocations.
8772 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8773
89e028e2
AS
87742012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8775
8776 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8777 (store_register): Likewise.
8778
6350a066 87792012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8780
6350a066 8781 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8782
5b43fab2
JK
87832012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8784
8785 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8786 Describe also the option "auto".
8787
b5453b95
RH
87882012-03-22 Richard Henderson <rth@redhat.com>
8789
8790 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8791 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8792
227ee7fc
RH
87932012-03-22 Richard Henderson <rth@redhat.com>
8794
8795 * jit.c (jit_read_code_entry): Compute alignment and offset of
8796 int64_t member before computing entry_size.
8797
7b282c5a
SCR
87982012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8799
8800 Python scripting: Add new method Value.referenced_value to
8801 gdb.Value which can dereference pointer as well as reference
8802 values.
8803 * NEWS: Add entry under 'Python scripting' about the new method
8804 Value.referenced_value on gdb.Value objects.
8805 * python/py-value.c (valpy_referenced_value): New function
8806 defining a new method on gdb.Value objects which can dereference
8807 pointer and reference values.
8808
0c83539f
SCR
88092012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8810
8811 * MAINTAINERS (Write After Approval): Add myself to the list.
8812
7ccffd7c
KB
88132012-03-21 Kevin Buettner <kevinb@redhat.com>
8814
8815 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8816 in addition to "main".
8817
bd0b9f9e
JB
88182012-03-21 Joel Brobecker <brobecker@adacore.com>
8819
8820 * expression.h (op_name): Add declaration.
8821 * expprint.c (op_name): Remove declaration. Make non-static.
8822 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8823
a5362b9a
TS
88242012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8825
8826 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8827 of struct siginfo.
8828 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8829 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8830 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8831 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8832 (linux_nat_get_siginfo): Likewise.
8833 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8834 (linux_nat_get_siginfo): Likewise.
8835 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8836 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8837 * procfs.c (gdb_siginfo_t): Likewise.
8838
adcadaab
MF
88392012-03-21 Mike Frysinger <vapier@gentoo.org>
8840
8841 * .gitignore: Ignore more files.
8842
e278ad5b
PA
88432012-03-20 Pedro Alves <palves@redhat.com>
8844
8845 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8846 returns.
8847
741e63d7
YQ
88482012-03-20 Yao Qi <yao@codesourcery.com>
8849
8850 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8851 comment.
8852
b64f50a1
JK
88532012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8854
8855 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8856 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8857 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8858 sect_offset.
8859 * dwarf2expr.h (cu_offset, sect_offset): New types.
8860 (struct dwarf_expr_context_funcs) <dwarf_call>
8861 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8862 sect_offset.
8863 (struct dwarf_expr_context) <len>: Improve the comment.
8864 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8865 cu_offset and sect_offset.
8866 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8867 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8868 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8869 * dwarf2loc.h: Include dwarf2expr.h.
8870 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8871 and sect_offset.
8872 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8873 Improve the comment.
8874 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8875 (struct signatured_type, struct line_header, struct partial_die_info)
8876 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8877 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8878 (get_die_type_at_offset, create_cus_from_index)
8879 (create_signatured_type_table_from_index, dw2_get_file_names)
8880 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8881 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8882 (create_debug_types_hash_table, process_psymtab_comp_unit)
8883 (load_partial_comp_unit, create_all_comp_units)
8884 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8885 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8886 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8887 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8888 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8889 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8890 (find_partial_die, read_attribute_value, lookup_die_type)
8891 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8892 (is_ref_attr): New function comment.
8893 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8894 Use cu_offset and sect_offset.
8895 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8896 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8897 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8898 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8899 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8900 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8901 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8902 sect_offset.
8903
e97a38f7
JK
89042012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8905
8906 Code cleanup.
8907 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8908 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8909 with xfree.
8910 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8911
8320cc4f
JK
89122012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8913
8914 * NEWS: Describe new options --init-command=FILE, -ix and
8915 --init-eval-command=COMMAND, -iex.
8916 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8917 CMDARG_INIT_COMMAND.
8918 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8919 "init-command", "init-eval-command", "ix" and "iex" to the variable
8920 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8921 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8922 (print_gdb_help): Describe --init-command=FILE, -ix and
8923 --init-eval-command=COMMAND, -iex.
8924
26743505
JK
89252012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8926
8927 Code cleanup.
8928 * main.c (struct cmdarg): Move it here from main. Add more comments.
8929 (cmdarg_s, VEC (cmdarg_s)): New.
8930 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8931 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8932 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8933 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8934 of CMDARG.
8935
5ff5c7b4
TT
89362012-03-19 Tom Tromey <tromey@redhat.com>
8937
8938 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8939
ab260dad
JK
89402012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8941
8942 PR symtab/13777
8943 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8944 GCC >=4.5.
8945
c366c1f0
TT
89462012-03-16 Chris January <chris.january@allinea.com>
8947
8948 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8949 of clear.
8950
e16edb45
TT
89512012-03-16 Chris January <chris.january@allinea.com>
8952
8953 * source.c (add_path): Use memmove instead of strcpy because the
8954 strings overlap.
8955
53ba8333
JB
89562012-03-16 Joel Brobecker <brobecker@adacore.com>
8957
8958 * value.h (set_value_parent): Add declaration.
8959 * value.c (set_value_parent): New function.
8960 (value_address): If VALUE->PARENT is not NULL, then use it as
8961 the base address instead of VALUE->LOCATION.address.
8962 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8963 the same as OBJ's address. Adjust V's offset accordingly.
8964 Set V's parent.
8965
481860b3
GB
89662012-03-16 Gary Benson <gbenson@redhat.com>
8967
8968 PR breakpoints/10738
8969 * dwarf2read.c (use_deprecated_index_sections): New global.
8970 (struct partial_die_info): New member may_be_inlined.
8971 (read_partial_die): Set may_be_inlined where appropriate.
8972 (add_partial_subprogram): Add partial symbols for partial
8973 DIEs that may be inlined.
8974 (new_symbol_full): Add inlined subroutines to the current
8975 scope.
8976 (write_psymtabs_to_index): Bump version number.
8977 (dwarf2_read_index): Read only version 6 indices unless
8978 use_deprecated_index_sections is set.
8979 * linespec.c (symbol_and_data_callback): New structure.
8980 (iterate_inline_only): New function.
8981 (iterate_over_all_matching_symtabs): New argument
8982 "include_inline". If nonzero, also call the callback for
8983 symbols representing inlined subroutines.
8984 (lookup_prefix_sym): Pass extra argument to the above.
8985 (find_function_symbols): Likewise.
8986 (add_matching_symbols_to_info): Likewise.
8987 * NEWS: Mention that GDB can now set breakpoints on inlined
8988 functions.
8989
d0e7e15a
PM
89902012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8991
8992 * p-typeprint.c (pascal_type_print_method_args):
8993 Fix display of parameter of methods.
8994
3d354654
PM
89952012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8996
8997 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8998 Add missing prototype.
8999
cafe75b0
JK
90002012-03-16 Yao Qi <yao@codesourcery.com>
9001 Jan Kratochvil <jan.kratochvil@redhat.com>
9002
9003 Fix false compilation warning.
9004 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9005
25f8c692
JL
90062012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9007 Pedro Alves <pedro@codesourcery.com>
9008
9009 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9010 (arm_register_g_packet_guesses): New function.
9011 (arm_gdbarch_init): Don't force a target description with
9012 registers when the executable is detected as M-profile. Instead
9013 set gdbarch->tdep->is_m. Register `g' packet guesses.
9014 (_initialize_arm_tdep): Initialize the new target description.
9015 * features/arm-with-m-fpa-layout.xml: New description.
9016 * features/arm-with-m-fpa-layout.c: New, generated.
9017
35c63cd8
JB
90182012-03-15 Joel Brobecker <brobecker@adacore.com>
9019
9020 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9021 Update function description.
9022 (insert_bp_location): Do not wipe bl->target_info out.
9023 * mem-break.c: #include "gdb_string.h".
9024 (default_memory_insert_breakpoint): Do not call target_read_memory
9025 with a pointer to the breakpoint's shadow_contents buffer. Use
9026 a local buffer instead.
9027 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9028
57651221
TT
90292012-03-15 Tom Tromey <tromey@redhat.com>
9030
9031 * NEWS: Mention "info vtbl", not "info vtable".
9032 * cp-support.c (info_vtbl_command): Fix comment.
9033 (_initialize_cp_support): Fix text.
9034
410528f0
TT
90352012-03-15 Tom Tromey <tromey@redhat.com>
9036
9037 * cp-valprint.c (cp_print_value_fields): Use
9038 print_function_pointer_address for vtable slot.
9039
c4aeac85
TT
90402012-03-15 Tom Tromey <tromey@redhat.com>
9041
9042 * gnu-v3-abi.c (struct value_and_voffset): New.
9043 (hash_value_and_voffset, eq_value_and_voffset)
9044 (compare_value_and_voffset, compute_vtable_size)
9045 (print_one_vtable, gnuv3_print_vtable): New functions.
9046 (init_gnuv3_ops): Initialize 'print_vtable' field.
9047 * cp-support.c (info_vtbl_command): New function.
9048 (_initialize_cp_support): Add "info vtbl".
9049 * cp-abi.h (cplus_print_vtable): Declare.
9050 (struct cp_abi_ops) <print_vtable>: New field.
9051 * cp-abi.c (cplus_print_vtable): New function.
9052 * NEWS: Update.
9053
95cbceff
TT
90542012-03-15 Tom Tromey <tromey@redhat.com>
9055
9056 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9057 iterate_over_symbols.
9058
589b4a32
DE
90592012-03-14 Doug Evans <dje@google.com>
9060
9061 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9062 DW_OP_GNU_parameter_ref.
9063
e837f12a
JK
90642012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9065
9066 Fix double prompt of 'interpreter-exec mi'.
9067 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9068 (mi_interpreter_resume): use it.
9069 (mi_execute_command_input_handler): New function.
9070 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9071 mi_execute_command_input_handler.
9072
ff1e4526 90732012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9074
9075 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9076 prototype.
9077 (darwin_debug_port_info): Make static.
9078 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9079 * machoread.c (_initialize_machoread): Add prototype.
9080 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9081 (i386_darwin_set_control, i386_darwin_get_control)
9082 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9083 i386_darwin_get_status, i386_darwin_get_control):
9084 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9085
d8a5d6ee
JB
90862012-03-13 Joel Brobecker <brobecker@adacore.com>
9087
9088 * ax-gdb.c (gen_usual_unary): Remove special handling of
9089 enum and bool types.
9090
af381b8c
JB
90912012-03-13 Joel Brobecker <brobecker@adacore.com>
9092
9093 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9094
786c562f
JB
90952012-03-13 Joel Brobecker <brobecker@adacore.com>
9096
9097 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9098
e3ebf1bb
JB
90992012-03-13 Chris January <chris.january@allinea.com>
9100
9101 * aix-thread.c (fill_sprs): Store the floating point registers
9102 at the correct offsets into vals.
9103
c5b7e1cb
DE
91042012-03-13 Doug Evans <dje@google.com>
9105
16899756
DE
9106 * NEWS: Mention symbol-reloading has been deleted.
9107 * symfile.c (symbol_reloading): Delete.
9108 (show_symbol_reloading): Delete.
9109 (_initialize_symfile): Delete set/show symbol-reloading.
9110
c5b7e1cb
DE
9111 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9112 read_in_chain until we have successfully read it in.
9113 (load_full_comp_unit): Ditto.
9114 (read_signatured_type): Add comment.
9115
46cb6474
JB
91162012-03-13 Chris January <chris.january@allinea.com>
9117
9118 * stabsread.c (fix_common_block): Change type of valu argument
9119 to CORE_ADDR.
9120
76219d77
JB
91212012-03-13 Chris January <chris.january@allinea.com>
9122
9123 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9124 instruction.
9125
87b0bb13
JK
91262012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9127
9128 * common/linux-procfs.c (linux_proc_get_int): New, from
9129 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9130 field.
9131 (linux_proc_get_tgid): Only call linux_proc_get_int.
9132 (linux_proc_get_tracerpid): New.
9133 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9134 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9135 linux_proc_pid_has_state.
9136 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9137 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9138 (linux_ptrace_attach_warnings): New.
9139 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9140 New declaration.
9141 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9142 (linux_nat_attach): New variables ex, buffer, message and message_s.
9143 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9144
5f572dec
JK
91452012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9146
9147 * Makefile.in (linux-ptrace.o): New.
9148 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9149 from linux-nat.c.
9150 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9151 * common/linux-ptrace.c: New file.
9152 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9153 * config/arm/linux.mh: Likewise.
9154 * config/i386/linux.mh: Likewise.
9155 * config/i386/linux64.mh: Likewise.
9156 * config/ia64/linux.mh: Likewise.
9157 * config/m32r/linux.mh: Likewise.
9158 * config/m68k/linux.mh: Likewise.
9159 * config/mips/linux.mh: Likewise.
9160 * config/pa/linux.mh: Likewise.
9161 * config/powerpc/linux.mh: Likewise.
9162 * config/powerpc/ppc64-linux.mh: Likewise.
9163 * config/powerpc/spu-linux.mh: Likewise.
9164 * config/s390/s390.mh: Likewise.
9165 * config/sparc/linux.mh: Likewise.
9166 * config/sparc/linux64.mh: Likewise.
9167 * config/xtensa/linux.mh: Likewise.
9168 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9169 common/linux-procfs.c.
9170 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9171
44f238bb
PA
91722012-03-13 Hui Zhu <teawater@gmail.com>
9173 Pedro Alves <palves@redhat.com>
9174
9175 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9176 CREATE_BREAKPOINT_FLAGS_INSERTED.
9177 (create_breakpoint_sal, create_breakpoints_sal)
9178 (base_breakpoint_create_breakpoints_sal)
9179 (tracepoint_create_breakpoints_sal)
9180 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9181 down.
9182 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9183 (ftrace_command, strace_command): Adjust.
9184 (create_tracepoint_from_upload): Pass
9185 CREATE_BREAKPOINT_FLAGS_INSERTED.
9186 * breakpoint.h (enum breakpoint_create_flags): New.
9187 (create_breakpoint): New flags parameter.
9188 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9189 * python/py-breakpoint.c (bppy_init): Adjust.
9190 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9191 * spu-tdep.c (spu_catch_start): Adjust.
9192
1e51243a
PA
91932012-03-13 Pedro Alves <palves@redhat.com>
9194 Hui Zhu <teawater@gmail.com>
9195 Yao Qi <yao@codesourcery.com>
9196
9197 * remote.c (struct remote_state): New field `starting_up'.
9198 (remote_start_remote): Set and clear it.
9199 (remote_can_download_tracepoint): If starting up, return false.
9200
fa3064dd
YQ
92012012-03-13 Yao Qi <yao@codesourcery.com>
9202
9203 * inferior.h (struct inferior): Remove fields any_syscall_count,
9204 syscalls_counts and total_syscalls_count. Move them to new
9205 struct catch_syscall_inferior_data in breakpoint.c.
9206 * breakpoint.c: Call DEF_VEC_I(int).
9207 (struct catch_syscall_inferior_data): New.
9208 (get_catch_syscall_inferior_data): New.
9209 (catch_syscall_inferior_data_cleanup): New.
9210 (insert_catch_syscall): Update to access data in
9211 struct catch_syscall_inferior_data.
9212 (insert_catch_syscall): Likewise.
9213 (remove_catch_syscall): Likewise.
9214 (remove_catch_syscall): Likewise.
9215 (is_syscall_catchpoint_enabled): Likewise.
9216 (add_catch_command): Likewise.
9217 (_initialize_breakpoint): Register cleanup.
9218 * breakpoint.h: Removed DEF_VEC_I(int).
9219 * dwarf2loc.c: Call DEF_VEC_I(int).
9220 * mi/mi-main.c: Likewise.
9221
460fac3c
MK
92222012-03-12 Mark Kettenis <kettenis@gnu.org>
9223
9224 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9225
e1aca11e
JB
92262012-03-12 Chris January <chris.january@allinea.com>
9227
9228 * aix-thread.c (_initialize_aix_thread): Add prototype.
9229 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9230 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9231
649c7061
JB
92322012-03-12 Joel Brobecker <brobecker@adacore.com>
9233
9234 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9235 include of "amd64-nat.h".
9236
0b49e518
TT
92372012-03-12 Tom Tromey <tromey@redhat.com>
9238
9239 * buildsym.c (record_pending_block): Now static.
9240 * buildsym.h: (record_pending_block): Remove.
9241
fd24fa94
AT
92422012-03-12 Andreas Tobler <andreast@fgznet.ch>
9243
9244 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9245
ba919b58
TT
92462012-03-09 Tom Tromey <tromey@redhat.com>
9247
9248 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9249 producer_is_gxx_lt_4_6>: New fields.
9250 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9251
a48e046c
TT
92522012-03-09 Tom Tromey <tromey@redhat.com>
9253
9254 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9255
6f5e9362
JB
92562012-03-08 Joel Brobecker <brobecker@adacore.com>
9257
9258 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9259 prototype.
9260
8d037db9
JB
92612012-03-08 Joel Brobecker <brobecker@adacore.com>
9262
9263 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9264
4e841acf
JK
92652012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 Fix -Wmissing-prototypes build.
9268 * arm-linux-nat.c (get_thread_id): Make it static.
9269 * xtensa-linux-nat.c (get_thread_id): Likewise.
9270
c6030312
JB
92712012-03-08 Joel Brobecker <brobecker@adacore.com>
9272
9273 * server.c (process_point_options): If a conditional expression
9274 is found, only print a message if remote_debug is nonzero.
9275
52323be9
LM
92762012-03-08 Luis Machado <lgustavo@codesourcery.com>
9277
9278 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9279 of internal error for unknown/unsupported types.
9280
7fe25d9b
JK
92812012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 Fix CU relative vs. absolute DIE offsets.
9284 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9285 offset to offset_in_cu.
9286 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9287 TYPE_OFFSET.
9288 (dwarf2_fetch_die_location_block): Rename parameter offset to
9289 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9290
05e7c244
JK
92912012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9292
9293 * libunwind-frame.c: Rename to ...
9294 * ia64-libunwind-tdep.c: ... here.
9295 * libunwind-frame.h: Rename to ...
9296 * ia64-libunwind-tdep.h: ... here.
9297 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9298 ia64-libunwind-tdep.h.
9299 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9300 * README (--with-libunwind): Rename to ...
9301 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9302 * config.in: Regenerate.
9303 * configure: Regenerate.
9304 * configure.ac: New option --with-libunwind-ia64, make the
9305 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9306 Remove AC_DEFINE for HAVE_LIBUNWIND.
9307 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9308 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9309 Rename libunwind-frame in the general comment.
9310 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9311 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9312 Move forward declarations inside #ifndef. Rename libunwind-frame in
9313 the general comment.
9314 * ia64-tdep.c: Rename libunwind-frame.h #include to
9315 ia64-libunwind-tdep.h.
9316 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9317 (ia64_libunwind_descr): Rename libunwind-frame to
9318 ia64-libunwind-tdep in these function comments.
9319 * ia64-tdep.h: Rename libunwind-frame.h #include to
9320 ia64-libunwind-tdep.h.
9321 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9322 ia64-libunwind-tdep in that data comment.
9323
3755cbfd
JK
93242012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9325
9326 * libunwind-frame.h (struct frame_unwind): New declaration.
9327
d1cda5d9
JB
93282012-03-08 Joel Brobecker <brobecker@adacore.com>
9329
9330 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9331 "set breakpoint condition-evaluation" command.
9332
a0ba0aa2
TG
93332012-03-08 Tristan Gingold <gingold@adacore.com>
9334
9335 * sparc-stub.c: Move to stubs/
9336 * sh-stub.c: Likewise.
9337 * m68k-stub.c: Likewise.
9338 * m32r-stub.c: Likewise.
9339 * i386-stub.c: Likewise.
9340
7b8b6d6d
AS
93412012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9342
007cafee
AS
9343 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9344 linux_get_siginfo_type.
9345
7b8b6d6d
AS
9346 * m68klinux-nat.c: Include "gdb_proc_service.h".
9347 (PTRACE_GET_THREAD_AREA): Define.
9348 (ps_get_thread_area): New function.
9349
bba74b36
YQ
93502012-03-08 Yao Qi <yao@codesourcery.com>
9351
9352 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9353 `xsnprintf'.
9354 (remote_query_attached): Likewise.
9355 (remote_static_tracepoint_marker_at): Likewise.
9356 (remote_set_permissions): Likewise.
9357 (remote_detach_1, extended_remote_attach_1): Likewise.
9358 (send_g_packet, remote_vkill): Likewise.
9359 (extended_remote_disable_randomization): Likewise.
9360 (remote_add_target_side_condition): Likewise.
9361 (remote_insert_breakpoint): Likewise.
9362 (remote_remove_breakpoint): Likewise.
9363 (remote_insert_watchpoint): Likewise.
9364 (remote_remove_watchpoint): Likewise.
9365 (remote_insert_hw_breakpoint): Likewise.
9366 (remote_insert_hw_breakpoint): Likewise.
9367 (remote_remove_hw_breakpoint): Likewise.
9368 (remote_download_command_source): Likewise.
9369 (remote_download_tracepoint): Likewise.
9370 (remote_download_trace_state_variable): Likewise.
9371 (remote_disable_tracepoint): Likewise.
9372 (remote_trace_set_readonly_regions): Likewise.
9373 (remote_get_tracepoint_status): Likewise.
9374 (remote_trace_find): Likewise.
9375 (remote_get_trace_state_variable_value): Likewise.
9376 (remote_set_disconnected_tracing): Likewise.
9377 (remote_set_circular_trace_buffer): Likewise.
9378 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9379 (remote_use_agent): Likewise.
9380 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9381 Update callers.
9382
9b224c5e
PA
93832012-03-07 Pedro Alves <palves@redhat.com>
9384
9385 * NEWS: Mention QProgramSignals.
9386 * inferior.h (update_signals_program_target): Declare.
9387 * infrun.c: (update_signals_program_target): New.
9388 (handle_command): Update the target of the new program signals
9389 array changes.
9390 * remote.c (PACKET_QProgramSignals): New enum.
9391 (last_program_signals_packet): New global.
9392 (remote_program_signals): New.
9393 (remote_start_remote): Update the target with the program signals
9394 list.
9395 (remote_protocol_features): Add entry for QPassSignals.
9396 (remote_open_1): Free anc clear last_program_signals_packet.
9397 (init_remote_ops): Install remote_program_signals.
9398 * target.c (update_current_target): Adjust.
9399 (target_program_signals): New.
9400 * target.h (struct target_ops) <to_program_signals>: New field.
9401 (target_program_signals): Declare.
9402
74c48cbb
PA
94032012-03-07 Pedro Alves <palves@redhat.com>
9404
9405 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9406 extensions.
9407
0c13fc49
AS
94082012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9409
9410 * m68klinux-nat.c (getregs_supplies): Make static.
9411 (getfpregs_supplies): Likewise.
9412 (have_ptrace_getregs): Likewise.
9413
1281d2a3
JB
94142012-03-06 Joel Brobecker <brobecker@adacore.com>
9415
9416 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9417 in call to get_die_type_at_offset.
9418
2b03b41d
SS
94192012-03-06 Stan Shebs <stan@codesourcery.com>
9420
9421 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9422 * mi/mi-cmd-disas.c: Ditto.
9423 * mi/mi-cmd-env.c: Ditto.
9424 * mi/mi-cmd-file.c: Ditto.
9425 * mi/mi-cmd-stack.c: Ditto.
9426 * mi/mi-cmd-target.c: Ditto.
9427 * mi/mi-cmd-var.c: Ditto.
9428 * mi/mi-cmds.c: Ditto.
9429 * mi/mi-cmds.h: Ditto.
9430 * mi/mi-console.c: Ditto.
9431 * mi/mi-getopt.c: Ditto.
9432 * mi/mi-getopt.h: Ditto.
9433 * mi/mi-interp.c: Ditto.
9434 * mi/mi-main.c: Ditto.
9435 * mi/mi-out.c: Ditto.
9436 * mi/mi-parse.c: Ditto.
9437 * mi/mi-parse.h: Ditto.
9438 * mi/mi-symbol-cmds.c: Ditto.
9439
9440 * mi/mi-getopt.h: Move mi_opt struct up.
9441 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9442 return.
9443 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9444
c988ad87
TT
94452012-03-06 Tom Tromey <tromey@redhat.com>
9446
9447 * proc-service.c (ps_pglobal_lookup): Set the current program
9448 space.
9449
1b7c1b10
PA
94502012-03-06 Pedro Alves <palves@redhat.com>
9451
9452 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9453
3c182069
JB
94542012-03-05 Joel Brobecker <brobecker@adacore.com>
9455
9456 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9457
2e794194
JK
94582012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9459
9460 Code cleanup.
9461 * common/linux-osdata.c (linux_common_core_of_thread): New function
9462 comment.
9463 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9464 call by linux_common_core_of_thread.
9465 (linux_nat_core_of_thread_1): Remove.
9466 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9467 * linux-thread-db.c: Include linux-osdata.h.
9468 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9469 linux_common_core_of_thread.
9470
9f9f1f31
TT
94712012-03-05 Tom Tromey <tromey@redhat.com>
9472
9473 * value.c (value_primitive_field): Don't fetch contents for
9474 non-virtual bases.
9475
b7b189f3
TT
94762012-03-05 Tom Tromey <tromey@redhat.com>
9477
9478 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9479
05b8a789 94802012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9481
5538f557
JB
9482 * s390-nat.c: Include "gregset.h".
9483
75528772
JK
94842012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9485
9486 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9487 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9488 (libunwind_load): New variable so_error, use it for dlerror. Try to
9489 load also LIBUNWIND_SO_7.
9490
275418ae
PA
94912012-03-05 Pedro Alves <palves@redhat.com>
9492
9493 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9494 is not NULL, and remove resulting dead code.
9495
5cbb9812
TS
94962012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9497
9498 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9499 prologue to sh_analyze_prologue.
9500 (sh_analyze_prologue): Make better use of such an upper limit, and
9501 generally be more cautious about accessing memory.
9502
541515ad
TT
95032012-03-05 Tom Tromey <tromey@redhat.com>
9504
9505 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9506 _initialize_ia64_hpux_tdep.
9507
b4d36fb8
PA
95082012-03-05 Pedro Alves <palves@redhat.com>
9509
24490249
PA
9510 PR gdb/13766
9511
b4d36fb8
PA
9512 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9513 the register state is clear, supply explicit zero, instead of
9514 marking the register unavailable.
9515
60c9a3c0
TG
95162012-03-05 Tristan Gingold <gingold@adacore.com>
9517
9518 * NEWS: Mention OpenVMS ia64 new target.
9519
696759ad
TG
95202012-03-05 Tristan Gingold <gingold@adacore.com>
9521
9522 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9523 (ia64_unw_accessors, ia64_unw_rse_accessors)
9524 (ia64_libunwind_descr): Declare.
9525 * ia64-vms-tdep.c: New file.
9526 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9527 (ia64_libunwind_descr): Make them public.
9528 * configure.tgt: Add ia64-*-*vms*.
9529 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9530 (ALLDEPFILES): Add ia64-vms-tdep.c
9531
34864976
TG
95322012-03-05 Tristan Gingold <gingold@adacore.com>
9533
169081d0
TG
9534 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9535 * remote.c (PACKET_qXfer_uib): New enum value.
9536 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9537 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9538 (_initialize_remote): Call add_packet_config_cmd for
9539 xfer:uib packet.
9540
95412012-03-05 Tristan Gingold <gingold@adacore.com>
9542
9543 * osabi.c (gdb_osabi_names): Add OpenVMS.
9544 (generic_elf_osabi_sniffer): Likewise.
9545 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9546
6597b100
JK
95472012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9548
9549 Removed unused code.
9550 * libunwind-frame.c (libunwind_frame_unwind)
9551 (libunwind_frame_base_address): Remove.
9552 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9553
87399aa1
YQ
95542012-03-04 Yao Qi <yao@codesourcery.com>
9555
9556 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9557 remove trailing new line.
9558 (agent_run_command, agent_run_command): Add _ markup.
9559 (agent_capability_check): Likewise.
9560
abf1152a
JK
95612012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9562
9563 * breakpoint.c (set_condition_evaluation_mode): Set
9564 CONDITION_EVALUATION_MODE unconditionally.
9565
5808517f
YQ
95662012-03-03 Yao Qi <yao@codesourcery.com>
9567
9568 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9569 * common/agent.h: Update declaration.
9570 * inf-child.c (inf_child_use_agent): New.
9571 (inf_child_can_use_agent): New.
9572 (inf_child_target): Initialize fields `to_use_agent'
9573 and `to_can_use_agent'.
9574 * agent.c (agent_new_objfile): New.
89b7509a 9575 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9576 observer.
9577
9578 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9579 New.
89b7509a 9580 (linux_target_install_ops): Initialize field
5808517f
YQ
9581 `to_static_tracepoint_markers_by_strid'.
9582 * remote.c (free_current_marker): Move it to ...
9583 * tracepoint.c (free_current_marker): ... here. New.
9584 (cleanup_target_stop): New.
9585 * tracepoint.h: Declare free_current_marker.
9586 * NEWS: Add one entry about `info static-tracepoint-marker'.
9587
58b4daa5
YQ
95882012-03-03 Yao Qi <yao@codesourcery.com>
9589
9590 * common/agent.c (agent_loaded_p): New.
89b7509a 9591 (agent_look_up_symbols): New global.
58b4daa5
YQ
9592 * common/agent.h: Declare agent_loaded_p.
9593
8ffcbaaf
YQ
95942012-03-03 Yao Qi <yao@codesourcery.com>
9595
9596 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9597 (agent_capability_check, agent_capability_invalidate): New.
9598 (symbol_list): New array element.
9599 * common/agent.h (enum agent_capa): New.
9600 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9601
d1feda86
YQ
96022012-03-03 Yao Qi <yao@codesourcery.com>
9603
9604 * target.h (struct target_ops) <to_use_agent>: New field.
9605 (struct target_ops) <to_can_use_agent>: New field.
9606 (target_use_agent, target_can_use_agent): New macro.
9607 * target.c (update_current_target): Update.
9608 * remote.c: New enum `PACKET_QAgent'.
9609 (remote_protocol_features): Add a new element.
9610 (remote_use_agent, remote_can_use_agent): New.
9611 (init_remote_ops): Initialize field `can_use_agent' with
9612 remote_can_use_agent. Intiailize field `use_agent' with
9613 remote_use_agent.
9614 * common/agent.c (use_agent): New global.
9615 * common/agent.h: Declare it.
9616 * tracepoint.c (info_static_tracepoint_markers_command): Add
9617 comment.
9618 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9619 (COMMON_OBS): Add common/agent.o and agent.o
9620 (common-agent.o): New rule.
9621 * agent.c: New.
9622
2fa291ac
YQ
96232012-03-03 Yao Qi <yao@codesourcery.com>
9624
9625 * common/agent.c: New.
9626 * common/agent.h: New.
9627 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9628 AC_CHECK_HEADERS.
9629 * configure, configh.in: Regenerated.
9630
9fc05685
KB
96312012-03-02 Kevin Buettner <kevinb@redhat.com>
9632
9633 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9634 unless it exists for this architecture.
9635
a5ee536b
JB
96362012-03-02 Joel Brobecker <brobecker@adacore.com>
9637
9638 * language.h (struct language_defn): New "method" la_read_var_value.
9639 * findvar.c: #include "language.h".
9640 (default_read_var_value): Renames read_var_value. Rewrite
9641 function description.
9642 (read_var_value): New function.
9643 * value.h (default_read_var_value): Add prototype.
9644 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9645 New functions.
9646 (ada_language_defn): Add entry for la_read_var_value.
9647 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9648 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9649 language_defn structures to add entry for new la_read_var_value
9650 field.
9651
f59f708a
PA
96522012-03-02 Tom Tromey <tromey@redhat.com>
9653 Pedro Alves <palves@redhat.com>
9654
9655 PR breakpoints/13776:
9656 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9657 breakpoints.
9658 (delete_longjmp_breakpoint_at_next_stop): New.
9659 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9660 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9661 before deleting the inferior. Add comments.
9662 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9663 breakpoints immediately, but only on next stop. Move that code
9664 next to where we mark other breakpoints for deletion.
9665
44099a67
JB
96662012-03-02 Joel Brobecker <brobecker@adacore.com>
9667
9668 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9669 marker.
9670 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9671 violation.
9672
2a2ef594
PA
96732012-03-02 Pedro Alves <palves@redhat.com>
9674
9675 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9676
b261e0c5
UW
96772012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9678
9679 Fix -Wmissing-prototypes build.
9680 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9681 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9682 (gdbsim_has_memory): Likewise.
9683
a95babbf
YQ
96842012-03-02 Yao Qi <yao@codesourcery.com>
9685
9686 Fix -Wmissing-prototypes build.
9687 * charset.c (phony_iconv_open): Make static.
9688 (phony_iconv_close, phony_iconv): Likewise.
9689 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9690 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9691 prototype.
9692 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9693 * ser-mingw.c (create_select_thread): Make static.
9694 * windows-termcap.c (tgetent): New prototype.
9695 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9696
d603d4b3
JK
96972012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9698
9699 Fix -Wmissing-prototypes build.
9700 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9701 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9702 (_initialize_loadable): New prototypes.
9703
7fb3ad1f
DE
97042012-03-02 Doug Evans <dje@google.com>
9705
9706 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9707 abbrev table, read_comp_unit will do it.
9708
693be288
JK
97092012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9710
9711 Fix -Wmissing-prototypes build.
9712 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9713 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9714 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9715 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9716 (_initialize_arm_symbian_tdep): New prototype.
9717 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9718 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9719 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9720 static.
9721 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9722 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9723 prototype.
9724 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9725 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9726 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9727 static.
9728 * moxie-tdep.c (moxie_process_record): Likewise.
9729 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9730 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9731 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9732 (_initialize_rl78_tdep): New prototype.
9733 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9734 (_initialize_rx_tdep): New prototype.
9735 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9736 (_initialize_darwin_solib): New prototype.
9737 * solib-spu.c: Include solib-spu.h.
9738 (_initialize_spu_solib): New prototype.
9739 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9740 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9741 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9742 (tic6x_software_single_step): Make it static.
9743 (_initialize_tic6x_tdep): New prototype.
9744
638234e5
JK
97452012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9746
9747 Fix -Wmissing-prototypes build.
9748 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9749 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9750
f4a6f16d
JK
97512012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 Fix -Wmissing-prototypes build.
9754 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9755 (frv_have_stopped_data_address): Remove.
9756
04dcf5fa
JK
97572012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9758
9759 Fix -Wmissing-prototypes build.
9760 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9761 * sh-tdep.c: Include sh64-tdep.h.
9762 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9763 * sh64-tdep.c: Include sh64-tdep.h.
9764 * sh64-tdep.h: New file.
9765
19080931
MR
97662012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9767
9768 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9769
9aac7884
MR
97702012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9771
9772 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9773 sp_regnum once the gdbarch_init_osabi hook has been called.
9774
a385295e
MR
97752012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9776
9777 * mips-tdep.c (mips32_bc1_pc): New function.
9778 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9779 BPOSGE32 and BPOSGE64 instructions.
9780 (deal_with_atomic_sequence): Likewise.
9781 (mips32_instruction_has_delay_slot): Likewise.
9782
1faeff08 97832012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9784 Chris Dearman <chris@mips.com>
9785 Maciej W. Rozycki <macro@codesourcery.com>
9786 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9787
9788 * features/mips-dsp.xml: New file.
9789 * features/mips64-dsp.xml: New file.
9790 * features/mips-dsp-linux.xml: New file.
9791 * features/mips64-dsp-linux.xml: New file.
9792 * features/Makefile (WHICH): Add mips-dsp-linux and
9793 mips64-dsp-linux.
9794 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9795 * features/mips-dsp-linux.c: New file.
9796 * features/mips64-dsp-linux.c: New file.
9797 * regformats/mips-dsp-linux.dat: New file.
9798 * regformats/mips64-dsp-linux.dat: New file.
9799 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9800 registers.
9801 (mips64_linux_register_addr): Likewise.
9802 (mips64_linux_regsets_fetch_registers): Likewise.
9803 (mips64_linux_regsets_store_registers): Likewise.
9804 (mips64_linux_fetch_registers): Update call to
9805 mips64_linux_regsets_fetch_registers.
9806 (mips64_linux_store_registers): Update call to
9807 mips64_linux_regsets_store_registers.
9808 (mips_linux_read_description): Probe for DSP registers.
9809 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9810 and initialize_tdesc_mips64_dsp_linux.
9811 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9812 Remove padding of no longer used embedded register slots.
9813 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9814 (MIPS_RESTART_REGNUM): Redefine enum value.
9815 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9816 strings.
9817 (mips_tx39_reg_names): Likewise.
9818 (mips_linux_reg_names): New array of register names for Linux
9819 targets.
9820 (mips_register_name): Check for a null pointer in
9821 mips_processor_reg_names and return an empty string.
9822 (mips_register_type): Exclude embedded registers for the IRIX
9823 and Linux ABIs.
9824 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9825 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9826 DSP registers.
9827 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9828 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9829 (mips_gdbarch_init): Likewise. Initialize internal register
9830 indices for the Linux ABI. Use dynamic numbers to refer to
9831 registers, as applicable, while parsing the target description.
9832 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9833
263689d8
JB
98342012-03-01 Joel Brobecker <brobecker@adacore.com>
9835
9836 * frame.h (read_frame_register_unsigned): Fix typo in function
9837 description.
9838
f3b4f45c
PA
98392012-03-01 Pedro Alves <palves@redhat.com>
9840
9841 * jit-reader.in [!__cplusplus]
9842 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9843
b03a2011
PA
98442012-03-01 Pedro Alves <palves@redhat.com>
9845
9846 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9847 * configure: Regenerate.
9848
70221824
PA
98492012-03-01 Pedro Alves <palves@redhat.com>
9850
9851 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9852 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9853 (ftrace_command, strace_command): Make static.
9854 * d-lang.c (_initialize_d_language): Declare.
9855 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9856 * dwarf2loc.c (_initialize_dwarf2loc):
9857 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9858 * exec.c (exec_get_section_table): Make static.
9859 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9860 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9861 * inferior.c (remove_inferior_command, add_inferior_command)
9862 (clone_inferior_command): Make static.
9863 * linux-nat.c (linux_nat_thread_address_space)
9864 (linux_nat_core_of_thread): Make static.
9865 * linux-tdep.c (_initialize_linux_tdep): Declare.
9866 * objc-lang.c (_initialize_objc_lang): Declare.
9867 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9868 Make static.
9869 (_initialize_opencl_language): Declare.
9870 * record.c (_initialize_record): Declare.
9871 * remote.c (demand_private_info, remote_get_tib_address)
9872 (remote_supports_cond_tracepoints)
9873 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9874 Make static.
9875 * skip.c (_initialize_step_skip): Declare.
9876 * symtab.c (skip_prologue_using_lineinfo): Make static.
9877 * tracepoint.c (delete_trace_state_variable)
9878 (trace_variable_command, delete_trace_variable_command)
9879 (get_uploaded_tsv, find_matching_tracepoint_location)
9880 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9881 Make static.
9882 * value.c (pack_unsigned_long): Make static.
9883 * varobj.c (varobj_ensure_python_env): Make static.
9884 * windows-tdep.c (_initialize_windows_tdep): Declare.
9885 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9886
33fbcbee
PA
98872012-03-01 Pedro Alves <palves@redhat.com>
9888
9889 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9890 gdbarch parameter.
9891 (linux_init_abi): Install it as has_shared_address_space gdbarch
9892 callback.
9893
44d0cd3b
PA
98942012-03-01 Pedro Alves <palves@redhat.com>
9895
9896 * observer.c (observer_test_first_notification_function)
9897 (observer_test_second_notification_function)
9898 (observer_test_third_notification_function): Add declarations.
9899
ed01b82c
PA
99002012-03-01 Pedro Alves <palves@redhat.com>
9901
9902 * common/signals.c (default_target_signal_to_host)
9903 (default_target_signal_from_host): Move ...
9904 * arch-utils.c: ... here.
9905 * arch-utils.h (default_target_signal_to_host)
9906 (default_target_signal_from_host): Declare.
9907
9908 * common/signals.c (target_signal_from_command): Move ...
9909 * infrun.c: ... here.
9910 * inferior.h (target_signal_from_command): Declare.
9911 * target.h (target_signal_from_command)
9912 (default_target_signal_from_host, default_target_signal_to_host):
9913 Delete declarations.
9914
9915 * common/signals.c (_initialize_signals): Delete.
9916
c9b87335
PA
99172012-03-01 Pedro Alves <palves@redhat.com>
9918
9919 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9920 both __cplusplus and !__cplusplus.
9921
9340a6c0
PA
99222012-03-01 Pedro Alves <palves@redhat.com>
9923
9924 * psymtab.c (find_and_open_source): Delete declaration.
9925 * source.c (find_and_open_source): Move comment ...
9926 * source.h (find_and_open_source): ... to this new declaration.
9927
e451c4a1
PA
99282012-03-01 Pedro Alves <palves@redhat.com>
9929
9930 * inline-frame.c: Include inline-frame.h.
9931
983fb104
PA
99322012-03-01 Pedro Alves <palves@redhat.com>
9933
9934 * tui/tui-data.c (set_gen_win_origin): Delete.
9935 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9936 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9937
5fbce5df
PA
99382012-03-01 Pedro Alves <palves@redhat.com>
9939
9940 * remote.c (encode_actions): Delete declaration.
9941 * tracepoint.c (encode_actions): Make extern.
9942 * tracepoint.h (encode_actions): Declare.
9943
49a8461d
PA
99442012-03-01 Pedro Alves <palves@redhat.com>
9945
9946 * python/py-breakpoint.c: Include python.h.
9947 * python/py-continueevent.c (create_continue_event_object): Make
9948 static.
9949 * python/py-lazy-string.c (stpy_get_type): Make static.
9950 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9951 Make static.
9952 * python/py-utils.c (unicode_to_target_python_string): Make
9953 static.
9954 * python/py-value.c: Include python.h.
9955
9079102f
PA
99562012-03-01 Pedro Alves <palves@redhat.com>
9957
9958 * inferior.c (delete_threads_of_inferior): Delete.
9959
a298c5e8
PA
99602012-03-01 Pedro Alves <palves@redhat.com>
9961
9962 Import fallback definitions from glibc.
9963
9964 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9965 ps_prochandle): Forward declare.
9966 (ps_err_e): Use glibc's comments.
9967 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9968 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9969 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9970 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9971 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9972 (struct ps_prochandle): Adjust comment.
9973
e3084549
PA
99742012-03-01 Pedro Alves <palves@redhat.com>
9975
9976 * ada-lang.c (ada_modulus_from_name): Delete.
9977 * ada-lex.l (lexer_init): Make static.
9978
ad5f7d6e
PA
99792012-03-01 Pedro Alves <palves@redhat.com>
9980
9981 PR gdb/13767
9982
9983 * frame.c (read_frame_register_unsigned): New.
9984 * frame.h (read_frame_register_unsigned): Declare.
9985 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9986 Handle it.
9987 (print_i387_control_word): New parameter `control_p'. Handle it.
9988 (i387_print_float_info): Handle unavailable float registers.
9989
e0a4d108
KS
99902012-03-01 Keith Seitz <keiths@redhat.com>
9991
9992 * linespec.c (decode_line_2): Sort the list of methods
9993 alphabetically before presenting the user with a selection
9994 menu.
9995
122d1940
DE
99962012-03-01 Doug Evans <dje@google.com>
9997
9998 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9999 has_namespace_info.
10000 (dwarf2_read_abbrevs): Remove corresponding initialization.
10001
7d74f244
DE
100022012-03-01 Scott J. Goldman <scottjg@vmware.com>
10003
10004 * NEWS: Mention new python command class gdb.COMMAND_USER.
10005 * cli/cli-cmds.c (show_user): Print error when used on a python
10006 command.
10007 (init_cli_cmds): Update documentation strings for "show user" and
10008 "set/show max-user-call-depth" to clarify that it does not apply to
10009 python commands.
10010 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10011 error check.
10012 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10013 gdb python api.
10014 * top.c (execute_command): Only execute a user-defined command as a
10015 legacy macro if c->user_commands is set.
10016
e88acd96
TT
100172012-03-01 Tom Tromey <tromey@redhat.com>
10018
10019 * valprint.h (struct generic_val_print_decorations): New.
10020 (generic_val_print): Declare.
10021 * valprint.c (generic_val_print): New function.
10022 * p-valprint.c (p_decorations): New global.
10023 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10024 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10025 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10026 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10027 * m2-valprint.c (m2_decorations): New global.
10028 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10029 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10030 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10031 TYPE_CODE_ERROR>: Call generic_val_print.
10032 * f-valprint.c (f_decorations): New global.
10033 (f_val_print): Use print_function_pointer_address.
10034 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10035 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10036 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10037 generic_val_print.
10038 * c-valprint.c (c_decorations): New global.
10039 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10040 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10041 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10042 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10043 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10044 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10045 case.
10046
d3eab38a
TT
100472012-03-01 Tom Tromey <tromey@redhat.com>
10048
10049 * valprint.c (val_print): Update.
10050 * p-valprint (pascal_val_print): Return void.
10051 * p-lang.h (pascal_val_print): Return void.
10052 * m2-valprint.c (m2_val_print): Return void.
10053 * m2-lang.h (m2_val_print): Return void.
10054 * language.h (struct language_defn) <la_val_print>: Return void.
10055 * language.c (unk_lang_val_print): Return void.
10056 * jv-valprint.c (java_val_print): Return void.
10057 * jv-lang.h (java_val_print): Return void.
10058 * f-valprint.c (f_val_print): Return void.
10059 * f-lang.h (f_val_print): Return void.
10060 * d-valprint.c (d_val_print): Return void.
10061 (dynamic_array_type): Update.
10062 * d-lang.h (d_val_print): Return void.
10063 * c-valprint.c (c_val_print): Return void.
10064 * c-lang.h (c_val_print): Return void.
10065 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10066 void.
10067 * ada-lang.h (ada_val_print): Return void.
10068
35c0084b
TT
100692012-03-01 Tom Tromey <tromey@redhat.com>
10070
10071 * value.h (val_print): Return void.
10072 * valprint.c (val_print): Return void.
10073
a1f5dd1b
TT
100742012-03-01 Tom Tromey <tromey@redhat.com>
10075
10076 * value.h (common_val_print): Return void.
10077 * valprint.c (common_val_print): Return void.
10078
8e069a98
TT
100792012-03-01 Tom Tromey <tromey@redhat.com>
10080
10081 * value.h (value_print): Return void.
10082 * valprint.c (value_print): Return void.
10083 * p-valprint.c (pascal_value_print): Return void.
10084 * p-lang.h (pascal_value_print): Return void.
10085 * language.h (struct language_defn) <la_value_print>: Return
10086 void.
10087 * language.c (unk_lang_value_print): Return void.
10088 * jv-valprint.c (java_value_print): Return void.
10089 * jv-lang.h (java_value_print): Return void.
10090 * f-valprint.c (c_value_print): Don't declare.
10091 Include c-lang.h.
10092 * c-valprint.c (c_value_print): Return void.
10093 * c-lang.h (c_value_print): Return void.
10094 * ada-valprint.c (ada_value_print): Return void.
10095 * ada-lang.h (ada_value_print): Return void.
10096
be335936
TT
100972012-03-01 Tom Tromey <tromey@redhat.com>
10098
10099 * value.c (value_primitive_field): Handle virtual base classes.
10100
b0db66a7
TT
101012012-03-01 Tom Tromey <tromey@redhat.com>
10102
10103 * gdbtypes.h (struct vbase): Remove.
10104
132c57b4
TT
101052012-03-01 Tom Tromey <tromey@redhat.com>
10106
10107 * c-valprint.c (print_function_pointer_address): Move...
10108 * valprint.c: ... here. Make non-static.
10109 * m2-valprint.c (print_function_pointer_address): Remove.
10110 * valprint.h (print_function_pointer_address): Declare.
10111
e41eec66
JB
101122012-03-01 Joel Brobecker <brobecker@adacore.com>
10113
10114 * NEWS: Document the fact that one can provide a condition when
10115 creating an Ada exception catchpoint.
10116
19c37f24
TT
101172012-03-01 Tom Tromey <tromey@redhat.com>
10118
10119 * valprint.c (val_print_type_code_flags): Fix placement of
10120 trailing brace.
10121
f0fed3a3
JB
101222012-03-01 Joel Brobecker <brobecker@adacore.com>
10123
10124 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10125 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10126 environment variable before calling update-copyright.
10127
8ba85d85
JB
101282012-03-01 Joel Brobecker <brobecker@adacore.com>
10129
10130 * gnulib/extra/update-copyright: Update to the latest from
10131 gnulib's git repository.
10132 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10133 variable to 2 instead of 1.
10134
8219b1e8
JB
101352012-02-29 Joel Brobecker <brobecker@adacore.com>
10136
10137 * varobj.c (c_value_of_variable): Remove dead code.
10138
718cb7da
JB
101392012-02-29 Joel Brobecker <brobecker@adacore.com>
10140
10141 * ada-lex.p (processId): Do not modify already encoded IDs.
10142 Update function documentation.
10143
739593e0
JB
101442012-02-29 Joel Brobecker <brobecker@adacore.com>
10145
10146 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10147 "name" with "struct symbol *name_sym".
10148 * ada-exp.y (write_var_or_type): Update call to
10149 ada_find_renaming_symbol.
10150 "name" with "struct symbol *name_sym". Adjust Implementation
10151 accordingly. Adjust the function documentation.
10152
852dff6c
JB
101532012-02-29 Joel Brobecker <brobecker@adacore.com>
10154
10155 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10156 * ada-lang.c (ada_find_any_type): Add advance declaration.
10157 Make static. Replace ada_find_any_symbol by
10158 ada_find_any_type_symbol.
10159 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10160 Improve function description. Make static.
10161 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10162 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10163
1b611343
JB
101642012-02-29 Joel Brobecker <brobecker@adacore.com>
10165
10166 * ada-lang.c (struct tag_args): Delete.
10167 (ada_get_tsd_type): Function body moved up in source file.
10168 (ada_tag_name_1, ada_tag_name_2): Delete.
10169 (ada_get_tsd_from_tag): New function.
10170 (ada_tag_name_from_tsd): New function.
10171 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10172 to determine the tag name.
10173
41246937
JB
101742012-02-29 Joel Brobecker <brobecker@adacore.com>
10175
10176 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10177 declaration.
10178 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10179 function.
10180
ffde82bf
JB
101812012-02-29 Joel Brobecker <brobecker@adacore.com>
10182
10183 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10184
2ad01556
JB
101852012-02-29 Joel Brobecker <brobecker@adacore.com>
10186
10187 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10188 full searches.
10189
99b1c762
JB
101902012-02-29 Joel Brobecker <brobecker@adacore.com>
10191
10192 * ada-lang.c (constrained_packed_array_type): If there is a
10193 parallel XA type, use it to determine the array index type.
10194
2d4a02ee
JB
101952012-02-29 Joel Brobecker <brobecker@adacore.com>
10196
10197 * ada-valprint.c (ada_val_print_1): If our value is a reference
10198 to an array descriptor, dereference it before converting it
10199 to a simple array.
10200
c48db5ca
JB
102012012-02-29 Joel Brobecker <brobecker@adacore.com>
10202
10203 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10204 creating fixed value.
10205 (ada_value_ind, ada_coerce_ref, assign_component)
10206 (ada_evaluate_subexp): Remove call to unwrap_value before
10207 call to ada_to_fixed_value.
10208
2e6fda7d
JB
102092012-02-29 Joel Brobecker <brobecker@adacore.com>
10210
10211 * ada-lang.c (to_fixed_array_type): Set result's type name.
10212
5845583d
JB
102132012-02-29 Joel Brobecker <brobecker@adacore.com>
10214
10215 * ada-lang.c (catch_ada_exception_command_split): Add new
10216 argument cond_string. Add support for condition at end of
10217 "catch exception" commands.
10218 (ada_decode_exception_location): Add new argument cond_string.
10219 Update call to catch_ada_exception_command_split.
10220 (create_ada_exception_catchpoint): Add new argument cond_string.
10221 Set the breakpoint condition if needed.
10222 (catch_ada_exception_command): Update call to
10223 ada_decode_exception_location.
10224 (ada_decode_assert_location): Add function documentation.
10225 Add support for condition at end of "catch assert" command.
10226 (catch_assert_command): Update calls to ada_decode_assert_location
10227 and create_ada_exception_catchpoint.
10228
9a7f938f
JK
102292012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10230
10231 Fix disp-step-syscall.exp: fork: single step over fork.
10232 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10233 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10234 comment, change parameters gdbarch and ptid to regcache. Remove
10235 parameter regcache, initialize gdbarch from regcache here.
10236 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10237 New functions.
10238 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10239 instead.
10240 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10241 'syscall'. Make the 'int' check more strict.
10242
ffdf6de5
JK
102432012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10244
10245 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10246 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10247 (i386_linux_intx80_sysenter_syscall_record): ... here.
10248 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10249 Use the renamed function name.
10250
c70a6932
JK
102512012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10252
10253 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10254 * breakpoint.c (until_break_command): Likewise.
10255 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10256 * infcall.c (call_function_by_hand): Likewise.
10257 * infcmd.c (finish_forward): Likewise.
10258 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10259
05b8a789 102602012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10261
d4cd3da9
JB
10262 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10263 avoid variable assignments inside condition.
10264
6425366c
JK
102652012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 Fix static analysis issue found by cppcheck.
10268 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10269 uninitialized BUF for size 2.
10270
c8cef75f 102712012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10272 Nathan Froyd <froydnj@codesourcery.com>
10273 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10274
10275 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10276 (mips16_instruction_has_delay_slot): Likewise.
10277 (mips_segment_boundary): Likewise.
10278 (mips_adjust_breakpoint_address): Likewise.
10279 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10280
473347ad 102812012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10282 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10283
10284 * infrun.c (handle_inferior_event): Don't proceed through
10285 shared library trampolines if stepping at the machine
10286 instruction level.
10287
cf233303
MR
102882012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10289
10290 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10291 too.
10292
cb2cf4ce
TS
102932012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10294
10295 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10296 (sh_stub_unwind_sniffer): New functions.
10297 (sh_stub_unwind): New variable.
10298 (sh_gdbarch_init): Wire everything.
10299
644cebc9
PA
103002012-02-27 Pedro Alves <palves@redhat.com>
10301
10302 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10303 (linux_nat_post_attach_wait): Adjust to use
10304 linux_proc_pid_is_stopped.
10305 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10306 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10307 based on pid_is_stopped from both linux-nat.c and
10308 gdbserver/linux-low.c, and renamed.
10309
283002cf
MR
103102012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10311
10312 * remote.c (remote_watchpoint_addr_within_range): New function.
10313 (init_remote_ops): Use it.
10314
9b3e86b1
MR
103152012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10316
10317 * target.h (target_watchpoint_addr_within_range): Document macro.
10318
e36930bb
PA
103192012-02-24 Pedro Alves <palves@redhat.com>
10320
10321 * stack.c (set_last_displayed_sal): Issue internal_error instead
10322 of warning, and issue it after clearing the last displayed sal.
10323
883bc8d1
PA
103242012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10325 Pedro Alves <palves@redhat.com>
10326
10327 * breakpoint.c (until_break_command): Install breakpoints after
10328 all frame manipulations.
10329
b775012e
LM
103302012-02-24 Luis Machado <lgustavo@codesourcery.com>
10331
10332 * remote.c (remote_supports_cond_breakpoints): New forward
10333 declaration.
10334 (remote_add_target_side_condition): New function.
10335 (remote_insert_breakpoint): Add target-side breakpoint
10336 conditional if supported.
10337 (remote_insert_hw_breakpoint): Likewise.
10338 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10339 hook.
10340
10341 * target.c (update_current_target): Inherit
10342 to_supports_evaluation_of_breakpoint_conditions.
10343 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10344
10345 * target.h (struct target_ops)
10346 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10347 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10348
10349 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10350 (condition_evaluation_both, condition_evaluation_auto,
10351 condition_evaluation_host, condition_evaluation_target,
10352 condition_evaluation_enums, condition_evaluation_mode_1,
10353 condition_evaluation_mode): New static globals.
10354 (translate_condition_evaluation_mode): New function.
10355 (breakpoint_condition_evaluation_mode): New function.
10356 (gdb_evaluates_breakpoint_condition_p): New function.
10357 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10358 (mark_breakpoint_modified): New function.
10359 (mark_breakpoint_location_modified): New function.
10360 (set_condition_evaluation_mode): New function.
10361 (show_condition_evaluation_mode): New function.
10362 (bp_location_compare_addrs): New function.
10363 (get_first_location_gte_addr): New helper function.
10364 (set_breakpoint_condition): Free condition bytecode if locations
10365 has become unconditional. Call mark_breakpoint_modified (...).
10366 (condition_command): Call update_global_location_list (1) for
10367 breakpoints.
10368 (breakpoint_xfer_memory): Use is_breakpoint (...).
10369 (is_breakpoint): New function.
10370 (parse_cond_to_aexpr): New function.
10371 (build_target_condition_list): New function.
10372 (insert_bp_location): Handle target-side conditional
10373 breakpoints and call build_target_condition_list (...).
10374 (update_inserted_breakpoint_locations): New function.
10375 (insert_breakpoint_locations): Handle target-side conditional
10376 breakpoints.
10377 (bpstat_check_breakpoint_conditions): Add comment.
10378 (bp_condition_evaluator): New function.
10379 (bp_location_condition_evaluator): New function.
10380 (print_breakpoint_location): Print information on where the condition
10381 will be evaluated.
10382 (print_one_breakpoint_location): Likewise.
10383 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10384 breakpoint location.
10385 (force_breakpoint_reinsertion): New functions.
10386 (update_global_location_list): Handle target-side breakpoint
10387 conditions.
10388 Reinsert locations that are already inserted if conditions have
10389 changed.
10390 (bp_location_dtor): Free agent expression bytecode.
10391 (disable_breakpoint): Call mark_breakpoint_modified (...).
10392 Call update_global_location_list (...) with parameter 1 for breakpoints.
10393 (disable_command): Call mark_breakpoint_location_modified (...).
10394 Call update_global_location_list (...) with parameter 1 for breakpoints.
10395 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10396 (enable_command): mark_breakpoint_location_modified (...).
10397 (_initialize_breakpoint): Update documentation and add
10398 condition-evaluation breakpoint subcommand.
10399
10400 * breakpoint.h: Include ax.h.
10401 (condition_list): New data structure.
10402 (condition_status): New enum.
10403 (bp_target_info) <cond_list>: New field.
10404 (bp_location) <condition_changed, cond_bytecode>: New fields.
10405 (is_breakpoint): New prototype.
10406
3788aec7
LM
104072012-02-24 Luis Machado <lgustavo@codesourcery.com>
10408
10409 * remote.c (remote_state) <cond_breakpoints>: New field.
10410 (PACKET_ConditionalBreakpoints): New enum.
10411 (remote_cond_breakpoint_feature): New function.
10412 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10413 (remote_supports_cond_breakpoints): New function.
10414 (_initialize_remote): Add new packet configuration for
10415 target-side conditional breakpoints.
10416
72895ff6
LM
104172012-02-24 Luis Machado <lgustavo@codesourcery.com>
10418
10419 * NEWS: Mention target-side conditional breakpoint support,
10420 new condition-evaluation breakpoint subcommand and remote
10421 packet extensions.
10422
dea2aa5f
LM
104232012-02-24 Luis Machado <lgustavo@codesourcery.com>
10424
10425 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10426 number.
10427
8a8bc27f
TS
104282012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10429
10430 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10431 (after_prologue): Remove.
10432
6b446fdf
TT
104332012-02-23 Tom Tromey <tromey@redhat.com>
10434
10435 * jv-valprint.c (java_val_print): Remove dead code.
10436
ef59abfb
TG
104372012-02-23 Tristan Gingold <gingold@adacore.com>
10438
a09130f9
PA
10439 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10440 known_tasks_element and known_tasks_length fields.
10441 (read_known_tasks_array): Change argument type. Use pointer type
10442 and number of elements from DATA. Adjust.
10443 (read_known_tasks_list): Likewise.
10444 (get_known_tasks_addr): Remove.
10445 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10446 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10447 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10448
def166f6
JK
104492012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 PR backtrace/13716
10452 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10453 it after set_momentary_breakpoint.
10454
aeaa2474
SA
104552012-02-22 Sterling Augustine <saugustine@google.com>
10456
10457 PR 13689:
10458 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10459
feea76c2
GB
104602012-02-22 Gary Benson <gbenson@redhat.com>
10461
10462 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10463 (find_slot_in_mapped_hash): Likewise.
10464
f06e05e0
JK
104652012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 PR build/13638
10468 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10469 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10470 * configure: Regenerate.
10471
b54a8fd7
PA
104722012-02-21 Tristan Gingold <gingold@adacore.com>
10473 Pedro Alves <palves@redhat.com>
10474
10475 * ia64-tdep.c: Do not include libunwind-ia64.h.
10476 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10477 Include libunwind-ia64.h instead of libunwind.h.
10478 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10479 for libunwind.h existence.
10480 * configure, config.in: Regenerate.
10481
dfcee124
AG
104822012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10483
10484 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10485 instead of value_rtti_target_type.
10486 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10487 instead of value_rtti_target_type.
10488 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10489 value_rtti_target_type.
10490 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10491 (value_rtti_target_type): Rename to ...
10492 (value_rtti_indirect_type): ... here and make it indirect. Update
10493 function comment.
10494 * value.c (readjust_indirect_value_type): New function.
10495 (coerce_ref): Support for enclosing type setting for references
10496 with readjust_indirect_value_type.
10497 * value.h (readjust_value_type): New declaration.
10498 (value_rtti_target_type): Rename to ...
10499 (value_rtti_indirect_type): ... here.
10500
02568277
AG
105012012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10502
10503 * MAINTAINERS (Write After Approval): Add myself to the list.
10504
10c07b7e 105052012-02-20 Doug Evans <dje@google.com>
28ee876a 10506
d82ea6a8
DE
10507 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10508 Rename objfile_p_char parameter to objfilep.
10509 (build_objfile_section_table): Result is now void. All callers
10510 updated.
10511 * objfiles.h (struct objfile): Tweak comments, whitespace.
10512 (build_objfile_section_table): Update.
10513
28ee876a
DE
10514 * elfread.c (elf_symfile_segments): Fix warning text.
10515
24c79950
TT
105162012-02-20 Tom Tromey <tromey@redhat.com>
10517
10518 PR gdb/13498:
10519 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10520 particular set of file names once.
10521 (dw2_map_symbol_filenames): Likewise.
10522
3a9b40b6
JK
105232012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 Code cleanup.
10526 * main.c (write_files): Remove the declaration.
10527 (external_editor_command): Move the declaration ...
10528 [GDBTK] (external_editor_command): ... here. Fix the comment.
10529
4d0795ca
TT
105302012-02-20 Tom Tromey <tromey@redhat.com>
10531
10532 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10533 extraneous block.
10534
637fd620
TG
105352012-02-20 Tristan Gingold <gingold@adacore.com>
10536
10537 * darwin-nat.h (enum darwin_msg_state): Add comments.
10538
6f124894
TG
105392012-02-20 Tristan Gingold <gingold@adacore.com>
10540
10541 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10542 value.
10543
2e6e3d9c
JB
105442012-20-18 Joel Brobecker <brobecker@adacore.com>
10545
10546 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10547 between function description and implementation.
10548
2e8265fd
TT
105492012-02-17 Tom Tromey <tromey@redhat.com>
10550
10551 PR python/12070:
10552 * python/py-event.c (event_object_getset): New global.
10553 (event_object_type): Reference it.
10554 * python/py-type.c (field_object_getset): New global.
10555 (field_object_type): Reference it.
10556 * python/python-internal.h (gdb_py_generic_dict): Declare.
10557 * python/py-utils.c (gdb_py_generic_dict): New function.
10558
8544a150 105592012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10560
8544a150 10561 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10562
ca193e27
TS
105632012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10564
10565 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10566 TYPE_CALLING_CONVENTION annotation.
10567
e5586183
KB
105682012-02-16 Kevin Buettner <kevinb@redhat.com>
10569
10570 * MAINTAINERS: Add rx to target ISA section.
10571 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10572 (ALLDEPFILES): Add rx-tdep.c.
10573
7dcd53a0
TT
105742012-02-16 Tom Tromey <tromey@redhat.com>
10575
10576 * symfile.c (symbol_file_add_main_1): Use inferior's
10577 symfile_flags.
10578 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10579 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10580 inferior.
10581 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10582 inferior.
10583 (follow_exec): Use inferior's symfile_flags.
10584 * inferior.h (struct inferior) <symfile_flags>: New field.
10585
ddd60447
MF
105862012-02-16 Mike Frysinger <vapier@gentoo.org>
10587
10588 PR gdb/9734:
10589 * remote-sim.c (gdbsim_create_inferior): Call error() when
10590 sim_create_inferior() fails.
10591
b0d32fb6
TG
105922012-02-16 Josh Matthews <josh@joshmatthews.net>
10593
10594 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10595
9addecb9
TT
105962012-02-16 Tom Tromey <tromey@redhat.com>
10597
10598 PR c++/13653:
10599 * thread.c (struct current_thread_cleanup) <was_removable>: New
10600 field.
10601 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10602 (make_cleanup_restore_current_thread): Initialize new field.
10603
a58b110a
KB
106042012-02-15 Kevin Buettner <kevinb@redhat.com>
10605
10606 * MAINTAINERS: Add rl78 to target ISA section.
10607 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10608 (ALLDEPFILES): Add rl78-tdep.c.
10609 * NEWS: Mention rl78 as a new target.
10610
4cb6da1c
AR
106112012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10612
10613 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10614 data.
10615 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10616
3af2590d
TT
106172012-02-15 Tom Tromey <tromey@redhat.com>
10618
10619 PR gdb/12659:
10620 * infcmd.c (registers_info): Print just the current register's
10621 name.
10622
c6910659
TT
106232012-02-15 Tom Tromey <tromey@redhat.com>
10624
10625 * python/py-symbol.c (sympy_value): Use _().
10626
7cee1e54
PA
106272012-02-15 Pedro Alves <palves@redhat.com>
10628
10629 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10630 output to be like native targets'.
10631 (remote_pid_to_str): Special case the null ptid.
10632
816338b5
SS
106332012-02-14 Stan Shebs <stan@codesourcery.com>
10634
10635 * NEWS: Mention enable count command.
10636 * breakpoint.h (struct breakpoint): New field enable_count.
10637 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10638 (enable_breakpoint): Add arg to call.
10639 (struct disp_data): New struct.
10640 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10641 (do_map_enable_once_breakpoint): Create a struct and pass it.
10642 (do_map_enable_delete_breakpoint): Ditto.
10643 (do_map_enable_count_breakpoint): New function.
10644 (enable_count_command): New function.
10645 (bpstat_stop_status): Decrement enable_count.
10646 (print_one_breakpoint_location): Report enable count.
10647 (_initialize_breakpoint): Add enable count command.
10648
c47a44f4
KB
106492012-02-14 Kevin Buettner <kevinb@redhat.com>
10650
10651 * rl78-tdep.c (reggroups.h): Include.
10652 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10653 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10654 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10655 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10656 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10657 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10658 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10659 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10660 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10661 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10662 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10663 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10664 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10665 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10666 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10667 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10668 beginning of register list.
10669 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10670 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10671 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10672 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10673 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10674 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10675 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10676 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10677 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10678 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10679 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10680 the pseudo registers. Rearrange other pseudo registers too so
10681 that the bank registers appear at the end.
10682 (rl78_register_type): Account for the fact that the byte sized
10683 bank registers are now pseudo-registers.
10684 (rl78_register_name): Rearrange the register name array. Make
10685 initial set of raw banked registers inaccessible.
10686 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10687 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10688 case for copying bytes back and forth between raw and pseudo
10689 versions of the banked registers. Update other cases to reflect
10690 the changed names.
10691 (rl78_return_value): Update to account for changed names of
10692 raw registers.
10693 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10694 rl78_register_sim_regno().
10695
e4569f1e
KB
106962012-02-14 Kevin Buettner <kevinb@redhat.com>
10697
10698 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10699 the name parameter being passed to find_pc_partial_function().
10700
7a05aae7
JK
107012012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10702
10703 * MAINTAINERS: Step down from being ia64 target maintainer.
10704
11fde611
JK
107052012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10706
10707 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10708 compilation warning.
10709
57008375
JK
107102012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10711
10712 Fix crash on loaded shlibs without loaded exec_bfd.
10713 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10714 (set_section_command): Replace exec_bfd by p->bfd.
10715
ff3c9849
TT
107162012-02-10 Tom Tromey <tromey@redhat.com>
10717
10718 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10719 when we have a C++ qualified name.
10720
db2b9fdd
PA
107212012-02-10 Pedro Alves <palves@redhat.com>
10722
10723 * inferior.c (inferior_pid_to_str): New.
10724 (print_inferior, inferior_command): Use it.
10725
12cd34f3
PA
107262012-02-10 Pedro Alves <palves@redhat.com>
10727
10728 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10729 the test CFLAGS.
10730 * configure: Regenerate.
10731
e871429d
JK
107322012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10733
10734 * linespec.c (decode_line_internal): Fix comment correctness.
10735
1916efaf
PA
107362012-02-09 Valery Khromov <valery.khromov@gmail.com>
10737
10738 PR gdb/12953
10739 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10740 * amd64bsd-nat.c: Add support for debug registers (adapted from
10741 i386bsd-nat.c).
10742 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10743 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10744 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10745 (amd64bsd_dr_get_control): New functions.
10746 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10747 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10748 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10749 watchpoints initialization.
10750 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10751
f4859d94
JK
107522012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10755 flds_bnds.fields.
10756 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10757
c56a97f9
JK
107582012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10759
10760 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10761
1a119f36
JB
107622012-02-08 Joel Brobecker <brobecker@adacore.com>
10763
10764 * language.h (symbol_name_cmp_ftype): Renames
10765 symbol_name_match_p_ftype.
10766 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10767 la_get_symbol_name_match_p.
10768 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10769 ada_get_symbol_name_match_p. Update comment.
10770 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10771 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10772 Renames symbol_name_match_p. Update field type.
10773 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10774 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10775 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10776 "la_get_symbol_name_cmp" in comments.
10777 * language.c: Likewise.
10778
c71bb1cf
RO
107792012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10780
10781 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10782 %eflags offset.
10783 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10784 (amd64_sol2_gregset32_reg_offs): Likewise.
10785
4b2d20a5
TG
107862012-02-08 Joel Brobecker <brobecker@adacore.com>
10787
10788 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10789 of the returned BFD is allocated by GDB.
10790
f0823d2c
TT
107912012-02-07 Tom Tromey <tromey@redhat.com>
10792
10793 PR python/12027:
10794 * python/python-internal.h (frame_object_type): Declare.
10795 * python/py-symbol.c (sympy_needs_frame): New function.
10796 (sympy_value): New function.
10797 (symbol_object_getset): Add "needs_frame".
10798 (symbol_object_methods): Add "value".
10799 * python/py-frame.c (frame_object_type): No longer static.
10800
64e7d9dd
TT
108012012-02-07 Tom Tromey <tromey@redhat.com>
10802
10803 PR python/13599:
10804 * python/py-symbol.c (sympy_line): New function.
10805 (symbol_object_getset): Add "line".
10806
1d6b2d2b
TT
108072012-02-07 Tom Tromey <tromey@redhat.com>
10808
10809 * charset.c (find_charset_names): Check 'in' against NULL.
10810
0d5cff50
DE
108112012-02-06 Doug Evans <dje@google.com>
10812
10813 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10814 and fields.name members from char * to const char *. All uses updated.
10815 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10816 from char * to const char *. All uses updated.
10817 (type_name_no_tag): Update.
10818 (lookup_unsigned_typename, lookup_signed_typename): Update.
10819 * gdbtypes.c (type_name_no_tag): Change result type
10820 from char * to const char *. All callers updated.
10821 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10822 name parameter from char * to const char *.
10823 * symtab.h (struct cplus_specific): Change type of demangled_name
10824 member from char * to const char *. All uses updated.
10825 (struct general_symbol_info): Change type of name and
10826 mangled_lang.demangled_name members from char * to const char *.
10827 All uses updated.
10828 (symbol_get_demangled_name, symbol_natural_name): Update.
10829 (symbol_demangled_name, symbol_search_name): Update.
10830 * symtab.c (symbol_get_demangled_name): Change result type
10831 from char * to const char *. All callers updated.
10832 (symbol_natural_name, symbol_demangled_name): Ditto.
10833 (symbol_search_name): Ditto.
10834 (completion_list_add_name): Change type of symname,sym_text,
10835 text,word parameters from char * to const char *.
10836 (completion_list_objc_symbol): Change type of sym_text,
10837 text,word parameters from char * to const char *.
10838 * ada-lang.c (find_struct_field): Change type of name parameter
10839 from char * to const char *.
10840 (encoded_ordered_before): Similarly for N0,N1 parameters.
10841 (old_renaming_is_invisible): Similarly for function_name parameter.
10842 (ada_type_name): Change result type from char * to const char *.
10843 All callers updated.
10844 * ada-lang.h (ada_type_name): Update.
10845 * buildsym.c (hashname): Change type of name parameter
10846 from char * to const char *.
10847 * buildsym.h (hashname): Update.
10848 * dbxread.c (end_psymtab): Change type of include_list parameter
10849 from char ** to const char **.
10850 * dwarf2read.c (determine_prefix): Change result type
10851 from char * to const char *. All callers updated.
10852 * f-lang.c (find_common_for_function): Change type of name, funcname
10853 parameters from char * to const char *.
10854 * f-lang.c (find_common_for_function): Update.
10855 * f-valprint.c (list_all_visible_commons): Change type of funcname
10856 parameters from char * to const char *.
10857 * gdbarch.sh (static_transform_name): Change type of name parameter
10858 and result from char * to const char *.
10859 * gdbarch.c: Regenerate.
10860 * gdbarch.h: Regenerate.
10861 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10862 of name parameter from char * to const char *.
10863 * jv-lang.c (java_primitive_type_from_name): Ditto.
10864 (java_demangled_signature_length): Similarly for signature parameter.
10865 (java_demangled_signature_copy): Ditto.
10866 (java_demangle_type_signature): Ditto.
10867 * jv-lang.h (java_primitive_type_from_name): Update.
10868 (java_demangle_type_signature): Update.
10869 * objc-lang.c (specialcmp): Change type of a,b parameters
10870 from char * to const char *.
10871 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10872 from char * to const char *. All callers updated.
10873 * p-lang.h (is_pascal_string_type): Update.
10874 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10875 of name parameter from char * to const char *.
10876 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10877 * utils.c (fprintf_symbol_filtered): Ditto.
10878 * defs.h (fprintf_symbol_filtered): Update.
10879 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10880 * stabsread.h (end_psymtab): Update.
10881 * stack.c (find_frame_funname): Change type of funname parameter
10882 from char ** to const char **.
10883 * stack.h (find_frame_funname): Update.
10884 * typeprint.c (type_print): Change type of varstring parameter
10885 from char * to const char *.
10886 * value.h (type_print): Update.
10887 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10888 from char * to const char *. All callers updated.
10889 (xcoff_end_psymtab): Change type of include_list parameter
10890 from char ** to const char **. All callers updated.
10891 (swap_sym): Similarly for name parameter. All callers updated.
10892 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10893 Use xstrdup.
10894 (process_coff_symbol): Use xstrdup.
10895 * stabsread.c (stabs_method_name_from_physname): Renamed from
10896 update_method_name_from_physname. Change result type from void
10897 to char *. All callers updated.
10898 (read_member_functions): In has_destructor case, store name in objfile
10899 obstack instead of malloc space. In !has_stub case, fix mem leak.
10900
5579a92e
TT
109012012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10902
10903 * configure: Rebuild.
10904 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10905 LDFLAGS.
10906
9058f767
KB
109072012-02-03 Kevin Buettner <kevinb@redhat.com>
10908
10909 * configure.tgt (rl78-*-elf): New target.
10910 * rl78-tdep.c: New file.
10911
5b37825d
PW
109122012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10913
10914 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10915 and continue the loop. Add QUIT statement.
10916
e009ee71
TT
109172012-02-03 Tom Tromey <tromey@redhat.com>
10918
10919 PR gdb/13596:
10920 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10921 bfd_lookup_symbol_from_symtab.
10922 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10923 gdb_bfd_lookup_symbol_from_symtab.
10924
f7e44f65
JB
109252012-02-03 Joel Brobecker <brobecker@adacore.com>
10926
10927 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10928 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10929 symbol. Add assertion that sym2 is never NULL.
10930
2c02bd72
DE
109312012-02-02 Doug Evans <dje@google.com>
10932
10933 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10934 "name" parameter to const char ** from char **. All callers updated.
10935 (find_pc_partial_function): Ditto.
10936 (cache_pc_function_name): Change type to const char * from char *.
10937 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10938 (find_pc_partial_function): Update.
10939 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10940 type of "name" parameter to const char * from char *.
10941 All uses updated.
10942 * arch-utils.c (generic_in_solib_return_trampoline): Change
10943 type of "name" parameter to const char * from char *.
10944 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10945 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10946 type of "name" parameter to const char * from char *.
10947 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10948 * gdbarch.c: Regenerate.
10949 * gdbarch.h: Regenerate.
10950 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10951 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10952 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10953 type of "name" parameter to const char * from char *.
10954 * skip.c (skip_function_pc): Ditto.
10955 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10956 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10957 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10958 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10959 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10960 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10961 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10962 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10963 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10964
e886a173
PA
109652012-02-02 Pedro Alves <palves@redhat.com>
10966
10967 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10968 the current inferior has no execution. Make sure the current
10969 remote process matches gdb's current inferior.
10970
c709a7c2
TT
109712012-02-02 Tom Tromey <tromey@redhat.com>
10972
10973 PR gdb/13405:
10974 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10975 read-only memory.
10976
f149aabd
TT
109772012-02-02 Tom Tromey <tromey@redhat.com>
10978
10979 PR gdb/9307:
10980 * symtab.c (lookup_language_this): Set block_found.
10981
03bef283
TT
109822012-02-01 Tom Tromey <tromey@redhat.com>
10983
10984 PR gdb/13431:
10985 * jit.c (struct jit_inferior_data): Rewrite.
10986 (struct jit_objfile_data): New.
10987 (get_jit_objfile_data): New function.
10988 (add_objfile_entry): Update.
10989 (jit_read_descriptor): Return int. Replace descriptor_addr
10990 argument with inf_data. Update. Don't call error.
10991 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10992 descriptor here.
10993 (jit_inferior_init): Don't look up descriptor. Don't call error.
10994 (jit_reset_inferior_data_and_breakpoints)
10995 (jit_inferior_created_observer): Remove.
10996 (jit_inferior_exit_hook): Update.
10997 (jit_executable_changed_observer): Remove.
10998 (jit_event_handler): Update.
10999 (free_objfile_data): Reset inferior data if needed.
11000 (_initialize_jit): Update.
11001
f0bbc364
TT
110022012-02-01 Tom Tromey <tromey@redhat.com>
11003
11004 * jit.c (bfd_open_from_target_memory): Move higher in file.
11005
47c1316c
TG
110062012-02-01 Tristan Gingold <gingold@adacore.com>
11007
11008 * libunwind-frame.c (libunwind_load): Display message if dlopen
11009 failed.
11010
8e704927
GB
110112012-02-01 Gary Benson <gbenson@redhat.com>
11012
09c7a31f 11013 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11014 (iterate_over_symbols): Use the above.
11015 * symtab.c (iterate_over_symbols): Likewise.
11016 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11017 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11018 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11019 (iterate_name_matcher): Document return values.
11020 (collect_one_symbol): Likewise.
11021 (collect_function_symbols): Likewise.
11022 (collect_symbols): Likewise.
11023
d9680e73
TT
110242012-02-01 Tom Tromey <tromey@redhat.com>
11025
11026 * ada-lang.c (resolve_subexp): Update.
11027 (ada_lookup_symbol_list): Add 'full_search' argument.
11028 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11029 ada_lookup_symbol_list.
11030 (ada_lookup_encoded_symbol): Update.
11031 (get_var_value): Update.
11032 * ada-exp.y (block_lookup): Update.
11033 (write_var_or_type): Update.
11034 (write_name_assoc): Update.
11035 * ada-lang.h (ada_lookup_symbol_list): Update.
11036
72e1143f
TT
110372012-01-31 Tom Tromey <tromey@redhat.com>
11038
11039 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11040 comment.
11041
ab2d2ad3
DE
110422012-01-31 Doug Evans <dje@google.com>
11043
11044 * symtab.h: Remove outdated comment.
e9111bf7 11045 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11046
bc884eba
JB
110472012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11048
11049 Fix build error in Darwin port.
11050 * i386-darwin-nat.c: Include i386-nat.h.
11051
8fc3fc34
TT
110522012-01-30 Tom Tromey <tromey@redhat.com>
11053
11054 PR breakpoints/13568:
11055 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11056 argument. Check for recursive includes.
11057 (dwarf_decode_macros): Create an include hash.
11058
5d853008
ME
110592012-01-30 Michael Eager <eager@eagercon.com>
11060
11061 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11062 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11063 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11064 (powerpc_linux_in_plt_stub): New function.
11065 (powerpc_linux_in_dynsym_resolve_code): New function.
11066 (ppc_skip_trampoline_code): New function.
11067 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11068 Use glibc_skip_solib_resolver.
11069
40478521
JK
110702012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11071
11072 Code cleanup: Make 1440 bytes of data segment read-only.
11073 * arch-utils.c (endian_enum): Make it const char *const [].
11074 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11075 Likewise.
11076 * breakpoint.c (always_inserted_enums): Likewise.
11077 * cli/cli-cmds.c (script_ext_enums): Likewise.
11078 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11079 enumlist parameter const char *const *.
11080 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11081 const char *const *.
11082 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11083 parameter const char *const *.
11084 * cris-tdep.c (cris_modes): Make it const char *const [].
11085 * filesystem.c (target_file_system_kinds): Likewise.
11086 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11087 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11088 (can_use_displaced_stepping_enum, scheduler_enums)
11089 (exec_direction_names): Likewise.
11090 * language.c (_initialize_language): Make the type_or_range_names and
11091 case_sensitive_names variables const char *const [].
11092 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11093 * python/python.c (python_excp_enums): Likewise.
11094 * remote.c (interrupt_sequence_modes): Likewise.
11095 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11096 * serial.c (logbase_enums): Likewise.
11097 * sh-tdep.c (sh_cc_enum): Likewise.
11098 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11099 Likewise.
11100 * symtab.c (multiple_symbols_modes): Likewise.
11101 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11102 Likewise.
11103 * utils.c (internal_problem_modes): Likewise.
11104
b3b8b934
JK
111052012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11108 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11109 result.
11110
8c85a4e2
DE
111112012-01-27 Doug Evans <dje@google.com>
11112
11113 * configure.ac (with_python): Fix absolute path handling for win32.
11114 * configure: Regenerate.
11115
78d8b4d7
DE
111162012-01-26 Doug Evans <dje@google.com>
11117
eca864fe
DE
11118 * symtab.c: Whitespace cleanup, no code changes.
11119
7e082072
DE
11120 * symtab.c (lookup_symbol_in_language): Improve comment.
11121 (lookup_symbol_aux): Fix comment.
11122
7dc25483
DE
11123 * psymtab.c (add_psymbol_to_list): Result is now "void".
11124 * psympriv.h (add_psymbol_to_list): Update.
11125
78d8b4d7
DE
11126 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11127
4c63965b
JK
111282012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11129
11130 Do not open script filenames twice.
11131 * cli/cli-cmds.c (source_script_from_stream): Pass to
11132 source_python_script also STREAM.
11133 * python/py-auto-load.c (source_section_scripts): Pass to
11134 source_python_script_for_objfile also STREAM.
11135 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11136 also INPUT.
11137 * python/python-internal.h (source_python_script_for_objfile): New
11138 parameter file, rename parameter file to filename.
11139 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11140 instead if !_WIN32. Update the function comment.
11141 (source_python_script, source_python_script_for_objfile)
11142 (source_python_script): New parameter file, rename parameter file to
11143 filename. Pass FILENAME to python_run_simple_file.
11144 * python/python.h (source_python_script): New parameter file, rename
11145 parameter file to filename.
11146
88f38a04
PA
111472012-01-26 Pedro Alves <palves@redhat.com>
11148
11149 * corelow.c (core_has_fake_pid): Delete.
11150 (core_close): Delete references to `core_has_fake_pid'.
11151 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11152 (core_open): Delete references to `core_has_fake_pid'.
11153 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11154 the removed global.
11155
e078317b
JB
111562012-01-26 Joel Brobecker <brobecker@adacore.com>
11157
11158 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11159 Remove language parameter from name_matcher. Adjust the comment.
11160 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11161 Remove language parameter.
11162 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11163 * linespec.c (iterate_name_matcher): Likewise.
11164 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11165 name_matcher. Adjust call accordingly.
11166 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11167 (maintenance_check_symtabs): Adjust type of parameter "fun".
11168 * psymtab.h (maintenance_check_symtabs): Likewise.
11169
74ccd7f5
JB
111702012-01-26 Joel Brobecker <brobecker@adacore.com>
11171
11172 * language.h (symbol_name_match_p_ftype): New typedef.
11173 (struct language_defn): Replace field la_symbol_name_compare
11174 by la_get_symbol_name_match_p.
11175 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11176 (ada_language_defn): Use it.
11177 * linespec.c (struct symbol_matcher_data): New type.
11178 (iterate_name_matcher): Rewrite.
11179 (iterate_over_all_matching_symtabs): Pass a pointer to
11180 a symbol_matcher_data struct to expand_symtabs_matching
11181 instead of just the lookup name.
11182 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11183 opencl-lang.c, p-lang.c, language.c: Delete field
11184 la_symbol_name_compare, and replace by NULL for new field
11185 la_get_symbol_name_match_p.
11186 * symfile.h (struct quick_symbol_functions): Update comment.
11187
5d268276
TT
111882012-01-25 Tom Tromey <tromey@redhat.com>
11189
11190 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11191 dereferencing.
11192
edcc5120
TT
111932012-01-24 Tom Tromey <tromey@redhat.com>
11194
11195 PR symtab/12406:
11196 * solib.c (update_solib_list): Update the program space's
11197 added_solibs and deleted_solibs fields.
11198 * progspace.h (struct program_space) <added_solibs,
11199 deleted_solibs>: New fields.
11200 (clear_program_space_solib_cache): Declare.
11201 * progspace.c (release_program_space): Call
11202 clear_program_space_solib_cache.
11203 (clear_program_space_solib_cache): New function.
11204 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11205 bpstat_stop_status. Use handle_solib_event.
11206 * breakpoint.c: Include gdb_regex.h.
11207 (print_solib_event): New function.
11208 (bpstat_print): Use print_solib_event.
11209 (bpstat_stop_status): Add special case for bp_shlib_event.
11210 (handle_solib_event): New function.
11211 (bpstat_what): Use handle_solib_event.
11212 (struct solib_catchpoint): New.
11213 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11214 (breakpoint_hit_catch_solib, check_status_catch_solib)
11215 (print_it_catch_solib, print_one_catch_solib)
11216 (print_mention_catch_solib, print_recreate_catch_solib): New
11217 functions.
11218 (catch_solib_breakpoint_ops): New global.
11219 (catch_load_or_unload, catch_load_command_1)
11220 (catch_unload_command_1): New functions.
11221 (internal_bkpt_check_status): Add special case for
11222 bp_shlib_event.
11223 (internal_bkpt_print_it): Use print_solib_event.
11224 (initialize_breakpoint_ops): Initialize
11225 catch_solib_breakpoint_ops.
11226 (_initialize_breakpoint): Register "catch load" and "catch
11227 unload".
11228 * breakpoint.h (handle_solib_event): Declare.
11229 * NEWS: Add entry for "catch load" and "catch unload".
11230
fa864999
TT
112312012-01-24 Tom Tromey <tromey@redhat.com>
11232
11233 * ada-lang.c: Include gdb_vecs.h.
11234 * charset.c: Include gdb_vecs.h.
11235 * tracepoint.h: Include gdb_vecs.h.
11236 * gdb_vecs.h: New file.
11237
f90263c1
TT
112382012-01-24 Pedro Alves <pedro@codesourcery.com>
11239
11240 * breakpoint.c (breakpoint_hit_catch_fork)
11241 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11242 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11243 * infrun.c (inferior_has_forked, inferior_has_vforked)
11244 (inferior_has_execd, inferior_has_called_syscall): Delete.
11245 (handle_syscall_event): Get syscall_number from the execution
11246 control state's wait status.
11247 (wait_for_inferior): Don't clear syscall_number.
11248
09ac7c10
TT
112492012-01-24 Pedro Alves <palves@redhat.com>
11250
11251 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11252 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11253 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11254 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11255 `ws' parameter.
11256 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11257 false for events other than TARGET_SIGNAL_TRAP.
11258 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11259 Add `ws' parameter.
11260 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11261 events other than TARGET_SIGNAL_TRAP.
11262 (tracepoint_breakpoint_hit): Add `ws' parameter.
11263 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11264 parameter.
11265 (bpstat_stop_status): Same.
11266 (pc_at_non_inline_function): Same.
11267 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11268 to pass the current event's waitstatus to bpstat_stop_status
11269 and pc_at_non_inline_function.
11270
86eb7e95
JK
112712012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11272
11273 Code cleanup.
11274 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11275 Update the function comment for it.
11276 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11277 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11278 for STREAM.
11279
a9b3a50f
PA
112802012-01-24 Pedro Alves <palves@redhat.com>
11281
11282 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11283 outside `bs->stop' block.
11284 (bpstat_what): Rework bp_shlib_event handling.
11285 (internal_bkpt_check_status): If the breakpoint is a
11286 bp_shlib_event, then set bs->stop and bs->print if
11287 stop_on_solib_events is set.
11288
53fe1783
GB
112892012-01-24 Gary Benson <gbenson@redhat.com>
11290
11291 Delete #if 0'd out code.
11292 * stack.c (print_frame_label_vars): Remove.
11293 (catch_info): Likewise.
11294 (_initialize_stack): Remove "info catch" command.
11295 * NEWS: Mention the above.
11296
49c62f2e
PA
112972012-01-24 Pedro Alves <palves@redhat.com>
11298
11299 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11300 it.
11301 (remote_notice_new_inferior): If the remote end doesn't support
11302 the multiprocess extensions, then the PID is fake.
11303 (add_current_inferior_and_thread): New.
11304 (remote_start_remote): Use it.
11305 (extended_remote_attach_1): Adjust.
11306 (extended_remote_create_inferior_1): Use
11307 add_current_inferior_and_thread.
11308
d0d8b0c6
JK
113092012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11310
11311 Fix watchpoints to be specific for each inferior.
11312 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11313 current_program_space.
11314 * i386-nat.c (i386_inferior_data_cleanup): New.
11315 (i386_inferior_data_get): Replace variable inf_data_local by an
11316 inferior_data call.
11317 (i386_use_watchpoints): Initialize i386_inferior_data.
11318 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11319 specific iterate_over_lwps.
11320
4403d8e9
JK
113212012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 Fix watchpoints across inferior fork.
11324 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11325 comment for linux_nat_iterate_watchpoint_lwps.
11326 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11327 linux_nat_iterate_watchpoint_lwps.
11328 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11329 * i386-linux-nat.c (update_debug_registers_callback): Update the
11330 comment for linux_nat_iterate_watchpoint_lwps.
11331 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11332 linux_nat_iterate_watchpoint_lwps.
11333 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11334 * i386-nat.c: Include inferior.h.
11335 (dr_mirror): Remove.
11336 (i386_inferior_data, struct i386_inferior_data)
11337 (i386_inferior_data_get): New.
11338 (i386_debug_reg_state): Use i386_inferior_data_get.
11339 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11340 (i386_insert_watchpoint, i386_remove_watchpoint)
11341 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11342 (i386_remove_hw_breakpoint): New variable state, use
11343 i386_debug_reg_state instead of DR_MIRROR.
11344 * linux-nat.c (delete_lwp): New declaration.
11345 (num_lwps): Move here from downwards.
11346 (delete_lwp_cleanup): New.
11347 (linux_child_follow_fork): Create new child_lp, call
11348 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11349 PTRACE_DETACH.
11350 (num_lwps): Move upwards.
11351 (linux_nat_iterate_watchpoint_lwps): New.
11352 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11353 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11354
2992c9a7 113552012-01-24 Joel Brobecker <brobecker@adacore.com>
11356
11357 GDB 7.4 released.
11358
e360902b
PA
113592012-01-23 Pedro Alves <palves@redhat.com>
11360
11361 * top.c (caution): Rename to ...
11362 (confirm): ... this.
11363 (show_caution): Rename to ...
11364 (show_confirm): ... this.
11365 (quit_cover): Adjust.
11366 (init_main): Adjust.
11367 * top.h (caution): Rename to ...
11368 (confirm): ... this.
11369 * utils.c (internal_vproblem, defaulted_query): Adjust.
11370
050a2e1d
PA
113712012-01-23 Pedro Alves <palves@redhat.com>
11372
11373 * top.c (caution): Update comment.
11374 (execute_command): Don't consider the current value of `caution'.
11375
77a35dd8
JK
113762012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11379
a71b5a38
UW
113802012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11381
11382 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11383 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11384 * target.c (target_fileio_pwrite): Remove buffer address from
11385 debug output.
11386 (target_fileio_pread): Likewise.
11387
d99bd577
UW
113882012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11389
11390 * NEWS: Document remote "info proc" and "generate-core-file".
11391
35c2fab7
UW
113922012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11393
11394 * gdbarch.sh (find_memory_regions): New callback.
11395 * gdbarch.c, gdbarch.h: Regenerate.
11396
11397 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11398 callback before falling back to target method.
11399
11400 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11401 (linux_target_install_ops): No longer install it.
11402
11403 * linux-tdep.c (linux_find_memory_regions): New function.
11404 (linux_init_abi): Install it.
11405
6432734d
UW
114062012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11407
11408 * gdbarch.sh (make_corefile_notes): New architecture callback.
11409 * gdbarch.c: Regenerate.
11410 * gdbarch.h: Likewise.
11411
11412 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11413 before target_make_corefile_notes. If NULL is returned, the
11414 target does not support core file generation.
11415
11416 * linux-nat.c: Include "linux-tdep.h".
11417 (find_signalled_thread, find_stop_signal): Remove.
11418 (linux_nat_do_thread_registers): Likewise.
11419 (struct linux_nat_corefile_thread_data): Likewise.
11420 (linux_nat_corefile_thread_callback): Likewise.
11421 (iterate_over_spus): Likewise.
11422 (struct linux_spu_corefile_data): Likewise.
11423 (linux_spu_corefile_callback): Likewise.
11424 (linux_spu_make_corefile_notes): Likewise.
11425 (linux_nat_collect_thread_registers): New function.
11426 (linux_nat_make_corefile_notes): Replace contents by call to
11427 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11428 as native-only callback.
11429
11430 * linux-tdep.h: Include "bfd.h".
11431 (struct regcache): Add forward declaration.
11432 (linux_collect_thread_registers_ftype): New typedef.
11433 (linux_make_corefile_notes): Add prototype.
11434 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11435 "regset.h", and "elf-bfd.h".
11436 (find_signalled_thread, find_stop_signal): New functions.
11437 (linux_spu_make_corefile_notes): Likewise.
11438 (linux_collect_thread_registers): Likewise.
11439 (struct linux_corefile_thread_data): New data structure.
11440 (linux_corefile_thread_callback): New funcion.
11441 (linux_make_corefile_notes): Likewise.
11442 (linux_make_corefile_notes_1): Likewise.
11443 (linux_init_abi): Install it.
11444
3030c96e
UW
114452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11446
11447 * gdbarch.sh (info_proc): New callback.
11448 * gdbarch.c, gdbarch.h: Regenerate.
11449
11450 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11451 before falling back to the target info_proc callback.
11452
11453 * linux-nat.c: Do not include "cli/cli-utils.h".
11454 (linux_nat_info_proc): Remove.
11455 (linux_target_install_ops): No longer install it.
11456
11457 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11458 (read_mapping): New function.
11459 (linux_info_proc): Likewise.
11460 (linux_init_abi): Install it.
11461
145b16a9
UW
114622012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11463
11464 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11465 * infcmd.c: (info_proc_cmd_1): New function.
11466 (info_proc_cmd): New function, moved here from equivalent routine
11467 orignally in linux-nat.c.
11468 (info_proc_cmd_mappings): Likewise.
11469 (info_proc_cmd_stat): Likewise.
11470 (info_proc_cmd_status): Likewise.
11471 (info_proc_cmd_cwd): Likewise.
11472 (info_proc_cmd_cmdline): Likewise.
11473 (info_proc_cmd_exe): Likewise.
11474 (info_proc_cmd_all): Likewise.
11475 (_initialize_infcmd): Install "info proc" command and subcommands.
11476
11477 * target.h (struct target_ops): Add to_info_proc.
11478 (target_info_proc): Add prototype.
11479 * target.c (target_info_proc): New function.
11480
11481 * procfs.c (procfs_info_proc): Add prototype.
11482 (info_proc_cmd): Rename into ...
11483 (procfs_info_proc): ... this. Update argument types as appropriate
11484 for a to_info_proc implementation. Handle "what" argument.
11485 (procfs_target): Install procfs_info_proc.
11486 (_initialize_procfs): No longer install "info proc" command.
11487
11488 * linux-nat.c: (enum info_proc_what): Remove.
11489 (linux_nat_info_proc_cmd_1): Rename into ...
11490 (linux_nat_info_proc): ... this. Update argument types as appropriate
11491 for a to_info_proc implementation.
11492 (linux_nat_info_proc_cmd): Remove.
11493 (linux_nat_info_proc_cmd_mappings): Likewise.
11494 (linux_nat_info_proc_cmd_stat): Likewise.
11495 (linux_nat_info_proc_cmd_status): Likewise.
11496 (linux_nat_info_proc_cmd_cwd): Likewise.
11497 (linux_nat_info_proc_cmd_cmdline): Likewise.
11498 (linux_nat_info_proc_cmd_exe): Likewise.
11499 (linux_nat_info_proc_cmd_all): Likewise.
11500 (linux_target_install_ops): Install linux_nat_info_proc.
11501 (_initialize_linux_nat): No longer install "info proc" command
11502 and subcommands.
11503
b9e7b9c3
UW
115042012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11505
11506 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11507 * config.in, configure: Regenerate.
11508
11509 * target.h (struct target_ops): Add to_fileio_readlink.
11510 (target_fileio_readlink): Add prototype.
11511 * target.c (target_fileio_readlink): New function.
11512
11513 * inf-child.c: Conditionally include <sys/param.h>.
11514 (inf_child_fileio_readlink): New function.
11515 (inf_child_target): Install it.
11516
11517 * remote.c (PACKET_vFile_readlink): New enum value.
11518 (remote_hostio_readlink): New function.
11519 (init_remote_ops): Install it.
11520 (_initialize_remote): Handle vFile:readlink packet type.
11521
7313baad
UW
115222012-01-20 Pedro Alves <palves@redhat.com>
11523 Ulrich Weigand <ulrich.weigand@linaro.org>
11524
11525 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11526 * config.in, configure: Regenerate.
11527
11528 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11529 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11530 (target_fileio_open): Add prototype.
11531 (target_fileio_pwrite): Likewise.
11532 (target_fileio_pread): Likewise.
11533 (target_fileio_close): Likewise.
11534 (target_fileio_unlink): Likewise.
11535 (target_fileio_read_alloc): Likewise.
11536 (target_fileio_read_stralloc): Likewise.
11537
11538 * target.c: Include "gdb/fileio.h".
11539 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11540 (default_fileio_target): New function.
11541 (target_fileio_open): Likewise.
11542 (target_fileio_pwrite): Likewise.
11543 (target_fileio_pread): Likewise.
11544 (target_fileio_close): Likewise.
11545 (target_fileio_unlink): Likewise.
11546 (target_fileio_close_cleanup): Likewise.
11547 (target_fileio_read_alloc_1): Likewise.
11548 (target_fileio_read_alloc): Likewise.
11549 (target_fileio_read_stralloc): Likewise.
11550
11551 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11552 <fcntl.h>, and <unistd.h>.
11553 (inf_child_fileio_open_flags_to_host): New function.
11554 (inf_child_errno_to_fileio_error): Likewise.
11555 (inf_child_fileio_open): Likewise.
11556 (inf_child_fileio_pwrite): Likewise.
11557 (inf_child_fileio_pread): Likewise.
11558 (inf_child_fileio_close): Likewise.
11559 (inf_child_fileio_unlink): Likewise.
11560 (inf_child_target): Install to_fileio routines.
11561
11562 * remote.c (init_remote_ops): Install to_fileio routines.
11563
901f9912
UW
115642012-01-20 Pedro Alves <palves@redhat.com>
11565 Ulrich Weigand <ulrich.weigand@linaro.org>
11566
11567 * remote.c (remote_multi_process_p): Only check for multi-process
11568 protocol feature, do not check for extended protocol.
11569 (remote_supports_multi_process): Check for extended protocol here.
11570 (set_general_process): Likewise.
11571 (extended_remote_kill): Likewise.
11572 (remote_pid_to_str): Likewise.
11573 (remote_query_supported): Always query multiprocess mode.
11574
e714e1bf
UW
115752012-01-20 Pedro Alves <palves@redhat.com>
11576 Ulrich Weigand <ulrich.weigand@linaro.org>
11577
11578 * inferior.h (struct inferior): Add fake_pid_p.
11579 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11580 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11581 magic_null_ptid since the remote side doesn't provide a real PID.
11582
50897289
TT
115832012-01-19 Tom Tromey <tromey@redhat.com>
11584
11585 * NEWS: Combine the two Python sections.
11586
1afc2033
JK
115872012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11588
11589 * target.h (target_close): Update comment on the target's unpush state.
11590
305436e0
PA
115912012-01-19 Pedro Alves <palves@redhat.com>
11592
11593 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11594 linux_nat_async directly instead of going through the target
11595 vector.
11596 * target.c (unpush_target): Close target after unpushing it, not
11597 before.
11598
49323895
GB
115992012-01-19 Gary Benson <gbenson@redhat.com>
11600
11601 * mdebugread.c (sort_blocks): Replace integer constants with ones
11602 derived from FIRST_LOCAL_BLOCK.
11603
1db33378
PP
116042012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11605 Jan Kratochvil <jan.kratochvil@redhat.com>
11606
11607 PR gdb/9538
11608 * symfile.c (find_separate_debug_file): New function.
11609 (terminate_after_last_dir_separator): Likewise.
11610 (find_separate_debug_file_by_debuglink): Also try realpath.
11611 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11612 * configure: Regenerate.
11613 * config.in: Regenerate.
11614
f83d8a90
DE
116152012-01-18 Doug Evans <dje@google.com>
11616
11617 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11618 (main.o): Remove rule.
11619 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11620 (--with-sysroot): Rewrite.
11621 * configure: Regenerate.
11622 * config.in: Regenerate.
11623
2dbca4d6
SDJ
116242012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11625
11626 * parse.c (initialize_expout): New function.
11627 (reallocate_expout): Likewise.
11628 (parse_exp_in_context): Use `initialize_expout' and
11629 `reallocate_expout' when appropriate.
11630
0695b514
PA
116312012-01-18 Pedro Alves <palves@redhat.com>
11632
11633 * record.c (struct record_breakpoint, record_breakpoint_p)
11634 (record_breakpoints): New.
11635 (record_insert_breakpoint, record_remove_breakpoint): Manage
11636 record breakpoints list. Only remove breakpoints from the
11637 inferior if they had been inserted there in the first place.
11638
136e1c30
DE
116392012-01-17 Doug Evans <dje@google.com>
11640
11641 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11642 if we know we don't have a file name to look for.
11643
c0bf857d
PA
116442012-01-17 Pedro Alves <palves@redhat.com>
11645
11646 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11647 the frame's stop reason is UNWIND_UNAVAILABLE.
11648
b486de60
JK
116492012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11650
11651 Fix compilation error.
11652 * m2-exp.y (yyerror): Use ANSI C prototype.
11653
d04550a6
SDJ
116542012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11655
11656 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11657 (growbuf_by_size): Likewise.
11658 (yyerror): Likewise.
11659 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11660 (modblock): Remove variable (was #if 0'ed).
11661 (parse_number): Convert prototype from K&R to ANSI C.
11662 (yyerror): Likewise.
11663 * objc-exp.y (parse_number): Likewise.
11664 (yyerror): Likewise.
11665 (yylex): Remove #if 0'ed code.
11666 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11667 (yyerror): Likewise.
11668
4aac40c8
TT
116692012-01-16 Tom Tromey <tromey@redhat.com>
11670
11671 * NEWS: Add item.
11672 * symtab.h (compare_filenames_for_search): Declare.
11673 * symtab.c (compare_filenames_for_search): New function.
11674 (iterate_over_some_symtabs): Use it.
11675 * symfile.h (struct quick_symbol_functions)
11676 <map_symtabs_matching_filename>: Change spec.
11677 * psymtab.c (partial_map_symtabs_matching_filename): Use
11678 compare_filenames_for_search. Update for new spec.
11679 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11680 compare_filenames_for_search. Update for new spec.
11681 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11682
cafec441
TT
116832012-01-16 Tom Tromey <tromey@redhat.com>
11684
11685 PR python/13281:
11686 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11687 (struct main_type) <flag_flag_enum>: New field.
11688 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11689 * NEWS: Add entries.
11690 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11691 enums.
11692 * python/lib/gdb/printing.py (_EnumInstance): New class.
11693 (FlagEnumerationPrinter): Likewise.
11694
983af33b
SDJ
116952012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11696
11697 * breakpoint.c (create_sals_from_address_default): New function.
11698 (create_breakpoints_sal_default): Likewise.
11699 (decode_linespec_default): Likewise.
11700 (is_marker_spec): Removed.
11701 (strace_marker_p): New function.
11702 (init_breakpoint_sal): Using `strace_marker_p' instead of
11703 `is_marker_spec'.
11704 (create_breakpoint): Call method `create_sals_from_address' from
11705 breakpoint_ops, replacing code that created SALs conditionally
11706 on the type of the breakpoint. Call method `create_breakpoints_sal',
11707 replacing code that created breakpoints conditionally on the type
11708 wanted.
11709 (base_breakpoint_create_sals_from_address): New function.
11710 (base_breakpoint_create_breakpoints_sal): Likewise.
11711 (base_breakpoint_decode_linespec): Likewise.
11712 (base_breakpoint_ops): Add methods
11713 `base_breakpoint_create_sals_from_address',
11714 `base_breakpoint_create_breakpoints_sal' and
11715 `base_breakpoint_decode_linespec'.
11716 (bkpt_create_sals_from_address): New function.
11717 (bkpt_create_breakpoints_sal): Likewise.
11718 (bkpt_decode_linespec): Likewise.
11719 (tracepoint_create_sals_from_address): Likewise.
11720 (tracepoint_create_breakpoints_sal): Likewise.
11721 (tracepoint_decode_linespec): Likewise.
11722 (strace_marker_create_sals_from_address): Likewise.
11723 (strace_marker_create_breakpoints_sal): Likewise.
11724 (strace_marker_decode_linespec): Likewise.
11725 (strace_marker_breakpoint_ops): New variable.
11726 (addr_string_to_sals): Remove `marker_spec'. Call method
11727 `decode_linespec' from breakpoint_ops, replacing code that decoded
11728 an address string into a SAL. Use `strace_marker_p' instead of
11729 `marker_spec'.
11730 (strace_command): Decide whether we are dealing with a static
11731 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11732 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11733 * breakpoint.h (linespec_result, linespec_sals): New forward
11734 declarations.
11735 (breakpoint_ops) <create_sals_from_address>,
11736 <create_breakpoints_sal>, <decode_linespec>: New methods.
11737
4795f398
DE
117382012-01-14 Doug Evans <dje@google.com>
11739
11740 * NEWS: Update text for "maint set python print-stack".
11741 It is deprecated in gdb 7.4 and deleted in 7.5.
11742
ee5106fe
EZ
117432012-01-13 Eli Zaretskii <eliz@gnu.org>
11744
11745 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11746 including curses.h.
11747
b161e06f
JK
117482012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11749
11750 * configure: Regenerate.
11751 * config.in: Regenerate.
11752
85254831
KS
117532012-01-12 Keith Seitz <keiths@redhat.com>
11754
11755 PR mi/10586
11756 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11757 (ANONYMOUS_UNION_NAME): Define.
11758 (is_path_expr_parent): New function.
11759 (get_path_expr_parent): New function.
11760 (is_anonymous_child): New function.
11761 (create_child_with_value): If the child is anonymous and without
11762 a name, assign an object name to it.
11763 (c_describe_child): Use get_path_expr_parent to determine
11764 the parent expression.
11765 If there field represents an anonymous struct or union and
11766 has no name, set an appropriate display name and expression.
11767 (cplus_describe_child): Likewise.
11768
620fa63a
PA
117692012-01-12 Pedro Alves <palves@redhat.com>
11770
11771 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11772 available when %ebp is found to be zero (outermost).
11773
2efa2c79
AT
117742012-01-11 Andreas Tobler <andreast@fgznet.ch>
11775
11776 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11777 an internal gdb_static_assert.
11778 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11779
88e7d25d
TT
117802012-01-11 Tom Tromey <tromey@redhat.com>
11781
11782 PR gdb/9598:
11783 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11784 catch" and "catch throw".
11785
72384ba3
PH
117862012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11787
11788 * blockframe.c (block_innermost_frame): Start search from selected
11789 frame, if present, or otherwise the current frame.
11790
11791 * c-exp.y (variable): Update innermost_block for
11792 'block COLONCOLON NAME' clause.
11793 * m2-exp.y (variable): Ditto.
11794 * objc-exp.y (variable): Ditto.
11795
065a711f
TT
117962012-01-10 Tom Tromey <tromey@redhat.com>
11797
11798 PR python/13199:
11799 * python/python.c (finish_python_initialization): Set sys.argv.
11800
f3f5162e
DE
118012012-01-10 Doug Evans <dje@google.com>
11802
11803 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11804 "want_line_info". All callers updated.
11805 (dwarf_decode_lines_1): New function.
11806 (handle_DW_AT_stmt_list): Add function comment.
11807 New arg "want_line_info". All callers updated.
11808 (read_file_scope,read_type_unit_scope): Move comment from
11809 handle_DW_AT_stmt_list to here.
11810
9934703b
JK
118112012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11812
11813 Fix regression after libiberty/ update for GCC PR 6057 and others.
11814 * c-exp.y (operator) <OPERATOR DELETE>
11815 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11816 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11817 (make_builtin_type, make_name): New variable i, add gdb_assert.
11818 (operator) <OPERATOR NEW>: Update ARGS to 3.
11819 (operator) <OPERATOR DELETE>: Add trailing space.
11820 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11821 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11822 * cp-support.c (cp_canonicalize_string): Check NULL from
11823 cp_comp_to_string, call warning and return.
11824
06b9f45f
JK
118252012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11826
11827 Fix duplicate .o files after omitting libbfd.a.
11828 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11829 (SFILES): Add corelow.c.
11830 (COMMON_OBS): Add corelow.o.
11831 (ALLDEPFILES): Remove corelow.c.
11832 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11833 * config/alpha/alpha-osf3.mh: Likewise.
11834 * config/alpha/fbsd.mh: Likewise.
11835 * config/arm/nbsdaout.mh: Likewise.
11836 * config/arm/nbsdelf.mh: Likewise.
11837 * config/i386/i386gnu.mh: Likewise.
11838 * config/ia64/hpux.mh: Likewise.
11839 * config/ia64/linux.mh: Likewise.
11840 * config/m32r/linux.mh: Likewise.
11841 * config/m68k/linux.mh: Likewise.
11842 * config/mips/irix5.mh: Likewise.
11843 * config/mips/irix6.mh: Likewise.
11844 * config/pa/hpux.mh: Likewise.
11845 * config/pa/linux.mh: Likewise.
11846 * config/powerpc/aix.mh: Likewise.
11847 * config/sparc/linux.mh: Likewise.
11848 * config/sparc/linux64.mh: Likewise.
11849 * config/sparc/sol2.mh: Likewise.
11850 * config/vax/vax.mh: Likewise.
11851 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11852 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11853 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11854 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11855 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11856 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11857 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11858 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11859 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11860 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11861 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11862 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11863 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11864 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11865 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11866 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11867 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11868 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11869 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11870 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11871 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11872 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11873 corelow.o from gdb_target_obs.
11874 * corefile.c (core_target): Update the comment on NULL value.
11875 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11876 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11877 MATCHES. Drop YUMMY set on NULL.
11878 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11879 reclaim CORE_DATA if it is already NULL.
11880
34365054
DE
118812012-01-09 Doug Evans <dje@google.com>
11882
11883 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11884 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11885
696166a3
KS
118862012-01-09 Keith Seitz <keiths@redhat.com>
11887
11888 * breakpoint.c (wrapper.h): Don't include.
11889
8e7b59a5
KS
118902012-01-09 Keith Seitz <keiths@redhat.com>
11891
11892 * Makefile.in (SFILES): Remove wrapper.c.
11893 (HFILES_NO_SRCDIR): Remove wrapper.h.
11894 (COMMON_OBS): Remove wrapper.o.
11895 * cli/cli-interp.c: Don't inlude wrapper.h.
11896 * corelow.c: Likewise.
11897 (core_open): Replace gdb_target_find_new_threads with
11898 TRY_CATCH around target_find_new_threads.
11899 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11900 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11901 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11902 evaluate_expression.
11903 (varobj_set_value): Likewise for evaluate_expression and
11904 value_assign.
11905 (install_new_variable): Likewise for value_fetch_lazy.
11906 (adjust_value_for_child_access): Likewise for value_ind.
11907 (c_describe_child): Likewise for value_subscript and
11908 value_ind.
11909 (c_value_of_root): Likewise for evaluate_expression.
11910 * wrapper.c: Remove.
11911 * wrapper.h: Remove.
11912
1a4eeb98
DE
119132012-01-09 Doug Evans <dje@google.com>
11914
9ff913ba
DE
11915 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11916 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11917 "abfd" args with "section". All callers updated.
11918 Error checking code moved ...
11919 (error_check_comp_unit_head): ... here. New function.
11920 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11921 Delete arg "abfd". New arg "type_offset". All callers updated.
11922 (create_debug_types_hash_table): Simplify by using
11923 read_and_check_type_unit_head.
11924
1a4eeb98
DE
11925 * parser-defs.h (namecopy): Delete.
11926 * parse.c (namecopy, namecopy_size): Move into copy_name.
11927
2e6af8c0
JK
119282012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11929
11930 Partially fix duplicate .o files after omitting libbfd.a.
11931 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11932 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11933 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11934 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11935 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11936 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11937 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11938
9f2f828a
PA
119392012-01-09 Pedro Alves <palves@redhat.com>
11940
11941 * MAINTAINERS: Update my email address.
11942
4d72c0bc
DE
119432012-01-08 Doug Evans <dje@google.com>
11944
d467dd73
DE
11945 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11946 n_type_units. Rename type_comp_units to all_type_units.
11947 All uses updated.
11948 (add_signatured_type_cu_to_table): Renamed from
11949 add_signatured_type_cu_to_list. All callers updated.
11950
4d72c0bc
DE
11951 * gdbtypes.h (struct cplus_struct_type): Delete member
11952 nfn_fields_total. All uses removed.
11953
21b2bd31
DE
119542012-01-06 Doug Evans <dje@google.com>
11955
11956 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11957 to top of file.
11958 (dwarf2_find_comp_unit): Delete.
11959 (process_psymtab_comp_unit): Make result "void".
11960 Delete args buffer, info_ptr, buffer_size, and replace with
11961 "section". All callers updated.
11962 (dwarf2_build_psymtabs_hard): Simplify.
11963
bfd189b1
SDJ
119642012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11965 Thiago Jung Bauermann <bauerman@br.ibm.com>
11966
11967 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11968 before `struct gdb_exception'.
11969 * breakpoint.c (update_global_location_list_nothrow)
11970 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11971 * cp-abi.c (value_rtti_type): Likewise.
11972 * cp-support.c (cp_validate_operator): Likewise.
11973 * infrun.c (insert_exception_resume_breakpoint)
11974 (check_exception_resume, keep_going): Likewise.
11975 * mi-interp.c (mi_breakpoint_created)
11976 (mi_breakpoint_modified): Likewise.
11977 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11978 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11979 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11980
6b07635f
DE
119812012-01-05 Doug Evans <dje@google.com>
11982
0b30b85c
DE
11983 * dwarf2read.c (statement_prologue): Delete, unused.
11984
98714339
DE
11985 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11986 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11987
6b07635f
DE
11988 * dwarf2read.c (comp_unit_header): Delete, unused.
11989
761f4555
UW
119902012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11991
11992 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11993 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11994
2ca0b532
PA
119952012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11996
11997 * infrun.c (normal_stop): Don't skip calling the normal_stop
11998 observers if the thread was doing a multi-step, but stopped for
11999 some reason other than stepping.
12000
50aeff07
PA
120012012-01-05 Pedro Alves <alves.ped@gmail.com>
12002
12003 * cli/cli-decode.h: Add comments.
12004 (CMD_LIST_AMBIGUOUS): Moved to command.h
12005 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12006 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12007 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12008 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12009 (add_com, add_com_alias, add_info, add_info_alias)
12010 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12011 declarations.
12012 * command.h: Add and adjust comments.
12013 (CMD_LIST_AMBIGUOUS): Moved here.
12014 (help_cmd, help_cmd_list): Delete declarations.
12015
5953832c
DE
120162012-01-04 Doug Evans <dje@google.com>
12017
e5fe5e75
DE
12018 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12019 All callers updated.
12020 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12021 Replace all arguments with "per_cu". All callers updated.
12022
28dee7f5
DE
12023 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12024
23745b47
DE
12025 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12026 New arg "per_cu". All callers updated.
12027
5953832c
DE
12028 Delete #if 0'd out code.
12029 * language.c (binop_result_type): Delete.
12030 (simple_type, ordered_type, same_type, integral_type): Delete.
12031 (numeric_type, character_type, string_type, boolean_type): Delete.
12032 (float_type, structured_type): Delete.
12033 * language.h: Update.
12034
0f5b7562
TT
120352012-01-04 Tom Tromey <tromey@redhat.com>
12036
12037 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12038
78218f56
JB
120392012-01-04 Joel Brobecker <brobecker@adacore.com>
12040
12041 * corefile.c (close_exec_file): Delete.
12042 (reopen_exec_file): Remove commented out code that seems related
12043 to close_exec_file, which is being deleted here.
12044 * inferior.h (close_exec_file): Delete.
12045 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12046
0fcd72ba
JB
120472012-01-04 Joel Brobecker <brobecker@adacore.com>
12048
12049 * ada-lang.c: #include "cli/cli-utils.h".
12050 (get_selections): Use skip_spaces.
12051 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12052 (catch_ada_exception_command_split): Use skip_spaces.
12053 (ada_decode_assert_location): Likewise.
12054
1dabb4c4
JB
120552012-01-04 Joel Brobecker <brobecker@adacore.com>
12056
12057 * linespec.c (decode_line_internal): Check for C++ or Java
12058 compound constructs only if the current language is C, C++
12059 or Java.
12060
5931a2fa
JK
120612012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12062
12063 Revert:
12064 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12065 Joel Brobecker <brobecker@adacore.com>
12066 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12067 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12068 3 times.
12069 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12070 fall through into AT_ENTRY_POINT.
12071 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12072 DUMMY_ADDR with it.
12073 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12074 PPC_INSN_SIZE skip to 3 times.
12075
1a2da5ee
JB
120762012-01-04 Joel Brobecker <brobecker@adacore.com>
12077
12078 * linespec.c (add_minsym): Preserve function descriptors.
12079
8645ff69
UW
120802012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12081
12082 * breakpoint.c (all_locations_are_pending): Consider locations
12083 in program spaces executing during startup pending as well.
12084
0b302171
JB
120852012-01-04 Joel Brobecker <brobecker@adacore.com>
12086
12087 Copyright year update in most files of the GDB Project.
12088
8ba098ad
JB
120892012-01-04 Joel Brobecker <brobecker@adacore.com>
12090
12091 * copyright.sh: Delete.
12092 * copyright.py: Rewrite.
12093
09c01c30
JB
120942012-01-04 Joel Brobecker <brobecker@adacore.com>
12095
12096 * gnulib/extra/update-copyright: New file, imported from gnulib.
12097
3c36c0af
JB
120982012-01-04 Joel Brobecker <brobecker@adacore.com>
12099
12100 * README (Copyright and License Notices): New section.
12101
888fe1e1
TT
121022012-01-03 Tom Tromey <tromey@redhat.com>
12103
12104 PR python/12533:
12105 * python/py-value.c (valpy_dereference, valpy_get_address
12106 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12107 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12108 (valpy_absolute, valpy_richcompare): Free intermediate values.
12109
6e681866
JB
121102011-01-03 Joel Brobecker <brobecker@adacore.com>
12111
12112 * ada-lang.c: Reformat the copyright notice.
12113
0cd09acb
JK
121142012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12115
12116 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12117 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12118 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12119 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12120 Revert this part of:
12121 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12122 Build gdb directly from *.o files not using libgdb.a.
12123 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12124
12c3e59c
JB
121252012-01-02 Joel Brobecker <brobecker@adacore.com>
12126
12127 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12128 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12129 Reformat the copyright header.
12130
11bf1490
JK
121312012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12132
12133 Revert this part of:
12134 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12135 Remove the gdbtui binary.
12136 * gdb.c (main): Remove args.interpreter_p initialization.
12137 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12138 * main.h (struct captured_main_args): Remove interpreter_p.
12139
1fef196f
JB
121402012-01-02 Joel Brobecker <brobecker@adacore.com>
12141
12142 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12143
67827812
JB
121442012-01-02 Joel Brobecker <brobecker@adacore.com>
12145
12146 * top.c (print_gdb_version): Update copyright year.
12147
a4d0b831
YQ
121482012-01-02 Yao Qi <yao@codesourcery.com>
12149
12150 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12151
b5914469
JK
121522012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12153 Joel Brobecker <brobecker@adacore.com>
12154
12155 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12156 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12157 3 times.
12158 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12159 fall through into AT_ENTRY_POINT.
12160 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12161 DUMMY_ADDR with it.
12162 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12163 PPC_INSN_SIZE skip to 3 times.
12164
8da828f7
JK
121652012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12166
12167 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12168 the return value.
12169 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12170
8574e74b
JK
121712012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12172
12173 Build gdb directly from *.o files not using libgdb.a.
12174 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12175 (COMMON_OBS): Remove solib-target.o.
12176 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12177 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12178 (LIBGDB_OBS, libgdb.a): Move it above.
12179 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12180 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12181 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12182 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12183 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12184 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12185 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12186 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12187 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12188 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12189 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12190 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12191 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12192 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12193 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12194 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12195 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12196 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12197 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12198 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12199 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12200 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12201 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12202 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12203 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12204 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12205 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12206
217bff3e
JK
122072012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12208
12209 Remove the gdbtui binary.
12210 * .gitignore (/gdbtui): Remove.
12211 * Makefile.in (TUI): Remove.
12212 (SUBDIR_TUI_OBS): Remove tui-main.o.
12213 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12214 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12215 (tui-main.o): Remove.
12216 (all_object_files): Remove tui-main.o.
12217 * NEWS: New note for the gdbtui removal.
12218 * configure: Rebuilt.
12219 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12220 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12221 CONFIG_UNINSTALL respectively.
12222 * gdb.c (main): Remove args.interpreter_p initialization.
12223 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12224 * main.h (struct captured_main_args): Remove interpreter_p.
12225 * tui/tui-main.c: Remove.
12226
9cdd5dbd
DE
122272012-01-01 Doug Evans <dje@google.com>
12228
bb5ed363
DE
12229 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12230 (dwarf2_physname, read_import_statement): Ditto.
12231 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12232 (process_structure_scope read_subroutine_type): Ditto.
12233 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12234 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12235 (dwarf2_fetch_die_location_block): Ditto.
12236 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12237
a0f42c21
DE
12238 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12239 All callers updated.
12240 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12241 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12242 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12243
2dc860c0
DE
12244 * dwarf2read.c (load_cu): Move assert to more useful location.
12245
68dc6402
DE
12246 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12247 All callers updated.
12248
9cdd5dbd
DE
12249 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12250 (dwarf2_elf_names): Minor reformat.
12251 (dwarf2_per_cu_data): Tweak comment.
12252 (dwarf2_read_section): Fix comment.
12253 (create_all_comp_units): Fix comment.
12254 (load_full_comp_unit): Fix comment.
12255 (process_full_comp_unit): Fix comment.
12256 (read_signatured_type): Fix comment.
12257
0c10e53e 12258For older changes see ChangeLog-2011.
c906108c
SS
12259\f
12260Local Variables:
12261mode: change-log
12262left-margin: 8
12263fill-column: 74
12264version-control: never
57da7796 12265coding: utf-8
c906108c 12266End:
This page took 2.012253 seconds and 4 git commands to generate.