Extend --copy-dt-needed-entries to creating DSO
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5bc81a00
PM
12012-12-05 Pierre Muller <muller@sourceware.org>
2
3 Avoid memory leaks on struct cmd_list_element.doc field.
4 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
5 if flags contains DOC_ALLOCATED.
6 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
7 flags.
8 (delete_cmd): Handle DOC_ALLOCATED flag.
9 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
10 in flags filed of struct cmd_list_element.
11 (struct cmd_list_element): Document new flag item.
12
b5ebcee6
DE
132012-12-04 Doug Evans <dje@google.com>
14
15 * symmisc.c: Whitespace fixes.
16
56bf0743
KB
172012-12-04 Karthik Bhat <kv.bhat@samsung.com>
18
19 * i386-tdep.c (i386_skip_prologue): Using symbol table
20 to find the end of prologue for clang compiled binaries.
21 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
22 to find the end of prologue for clang compiled binaries.
23
56e64610
DE
242012-12-03 Doug Evans <dje@google.com>
25
26 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
27 (dw2_find_symbol_file): Delete unused local file_data.
28
270140bd
TT
292012-12-03 Tom Tromey <tromey@redhat.com>
30
31 * ada-exp.y (write_object_renaming, write_var_or_type)
32 (write_ambiguous_var, write_var_from_sym): Make blocks const.
33 * ada-lang.c (replace_operator_with_call)
34 (find_old_style_renaming_symbol): Make blocks const.
35 * ada-lang.h (ada_find_renaming_symbol): Update.
36 (struct ada_symbol_info) <block>: Now const.
37 * breakpoint.c (watch_command_1): Update.
38 * breakpoint.h (struct watchpoint) <exp_valid_block,
39 cond_exp_valid_block>: Now const.
40 * c-exp.y (classify_inner_name, classify_name): Make block
41 argument const.
42 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
43 const.
44 * expression.h (innermost_block, parse_exp_1): Update.
45 (union exp_element) <block>: Now const.
46 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
47 (lookup_struct): Make block argument const.
48 * gdbtypes.h (lookup_template_type): Update.
49 * go-exp.y (classify_name, classify_packaged_name)
50 (package_name_p): Make block argument const.
51 * objc-lang.c (lookup_struct_typedef): Make block argument const.
52 * objc-lang.h (lookup_struct_typedef): Update.
53 * parse.c (parse_exp_in_context, parse_exp_1)
54 (write_exp_elt_block): Make block arguments const.
55 (expression_context_block, innermost_block): Now const.
56 * parser-defs.h (write_exp_elt_block): Update.
57 (expression_context_block, innermost_block, block_found): Now
58 const.
59 * printcmd.c (struct display) <block>: Now const.
60 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
61 * valops.c (address_of_variable): Make block argument const.
62 * value.h (value_of_variable): Update.
63 * varobj.c (struct varobj_root) <valid_block>: Now const.
64
31f56a27
YQ
652012-11-30 Yao Qi <yao@codesourcery.com>
66
67 * breakpoint.c (print_one_breakpoint_location): Indent code.
68
556ec64d
YQ
692012-11-30 Yao Qi <yao@codesourcery.com>
70
71 * breakpoint.c (print_one_breakpoint_location): Combine two
72 blocks handling 'hit count' together.
73
3d3fef6b
YQ
742012-11-30 Yao Qi <yao@codesourcery.com>
75
76 * infrun.c (error_is_running, ensure_not_running): Move them
77 to ...
78 * infcmd.c (error_is_running, ensure_not_running): ... here.
79 Make them 'static'.
80 * inferior.h: Remove declarations of error_is_running and
81 ensure_not_running.
82
7cd12a76
YQ
832012-11-30 Yao Qi <yao@codesourcery.com>
84
85 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
86 check REGNUM >= 0.
87
7a76f5b8
YQ
882012-11-30 Yao Qi <yao@codesourcery.com>
89
90 * infrun.c: Make the declaration of 'init_infwait_state'
91 static.
92 (init_infwait_state): Make it 'static'.
93
b1209b03
UW
942012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
95
96 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
97 return value to void to avoid compiler warning.
98
ea5e6b0e
UW
992012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
100
101 * opencl-lang.c (opencl_print_type): New function.
102 (opencl_language_arch_info): Install it.
103
a93478ea
TT
1042012-11-29 Tom Tromey <tromey@redhat.com>
105
106 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
107 xvasprintf.
108 * common/common-utils.c (xasprintf, xvasprintf): Remove.
109 * common/common-utils.h (xasprintf, xvasprintf): Remove.
110
ac4a2da4
JG
1112012-11-29 Jerome Guitton <guitton@adacore.com>
112
113 * ada-lang.c (ada_is_interface_tag): New function.
114 (ada_is_ignored_field): Add interface tags to the list
115 of ignored fields.
116
b50d69b5
JG
1172012-11-29 Jerome Guitton <guitton@adacore.com>
118
119 * ada-lang.h (ada_tag_value_at_base_address): New function
120 declaration.
121 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
122 New functions.
123 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
124 relocate the class-wide value if need be.
125 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
126 Let ada_tag_value_at_base_address relocate the class-wide access/ref
127 before dereferencing it.
128 * ada-valprint.c (ada_val_print_1): Relocate to base address
129 before displaying the content of an interface-wide ref.
130
ca1f964d
JG
1312012-11-29 Jerome Guitton <guitton@adacore.com>
132
133 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
134
38d03cf1 1352012-11-29 Joel Brobecker <brobecker@adacore.com>
136
137 GDB 7.5.1 released.
138
f5682501
YQ
1392012-11-29 Yao Qi <yao@codesourcery.com>
140 Tom Tromey <tromey@redhat.com>
141
142 * eval.c (evaluate_subexp_standard): Get the correct pointer
143 type for TYPE_CODE_MEMBERPTR.
144
f359d716
EBM
1452012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
146
147 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
148 since now it is being done by binutils' powerpc_init_dialect().
149
0cd61f44
TT
1502012-11-28 Tom Tromey <tromey@redhat.com>
151
152 PR gdb/14290:
153 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
154 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
155 Use it.
156 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
157 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
158 (gdb_bfd_openr_next_archived_file): Use it.
159
945bf713
MM
1602012-11-28 Markus Metzger <markus.t.metzger@intel.com>
161
162 * configure.ac: Check for linux/perf_event.h.
163 * config.in: Regenerated.
164 * configure: Regenerated.
165
7e20dfcd
YQ
1662012-11-28 Yao Qi <yao@codesourcery.com>
167
168 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
169 abbreviate 'delete tracepoints' to 'delete tr'.
170 * corefile.c (_initialize_core): Call add_alias_cmd to
171 abbreviate 'set gnutarget' to 'set g'.
172 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
173 'show convenience' to 'show conv'.
174
b8293cc8
JB
1752012-11-27 Joel Brobecker <brobecker@adacore.com>
176
177 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
178 call to sparc_supply_fpregset.
179 (fill_fpregset): Fix first parameter in call to
180 sparc_collect_fpregset.
181
8c2b9656
YQ
1822012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
183 Kazu Hirata <kazu@codesourcery.com>
184 Yao Qi <yao@codesourcery.com>
185
186 * objfiles.c (init_entry_point_info): Call
187 gdbarch_convert_from_func_ptr_addr and
188 gdbarch_addr_bits_remove here ...
189 (entry_point_address_query): ... instead of here.
190 * solib-svr4.c (exec_entry_point): Call
191 gdbarch_addr_bits_remove.
192 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
193 the entry address.
194
5edf51fe
YQ
1952012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
196 Yao Qi <yao@codesourcery.com>
197
198 * eval.c (evaluate_subexp_standard): Add handling of
199 TYPE_CODE_MEMBERPTR when calling functions. Correct the
200 result of ptype for calling a TYPE_CODE_METHODPTR.
201
ca242aad
YQ
2022012-11-27 Yao Qi <yao@codesourcery.com>
203
204 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
205 warning.
206 Add i18n markup.
207
608e2dbb
TT
2082012-11-26 Alexander Larsson <alexl@redhat.com>
209 Jan Kratochvil <jan.kratochvil@redhat.com>
210 Tom Tromey <tromey@redhat.com>
211
212 * NEWS: Mention mini debuginfo feature.
213 * minidebug.c: New file.
214 * configure.ac: Check for lzma.
215 * configure, config.in: Rebuild.
216 * Makefile.in (LIBLZMA): New variable.
217 (CLIBS): Include LIBLZMA.
218 (SFILES): Mention minidebug.c.
219 (COMMON_OBS): Mention minidebug.o.
220 * symfile.c (read_symbols): New function.
221 (syms_from_objfile, reread_symbols): Call it.
222 * symfile.h (find_separate_debug_file_in_section): Declare.
223
17d6efc4
JB
2242012-11-26 Keith Seitz <keiths@redhat.com>
225
226 * exec.c (exec_file_attach): Move cleanup after verifying that
227 memory has in fact been allocated.
228
210bbc17
TT
2292012-11-26 Tom Tromey <tromey@redhat.com>
230
231 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
232 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
233 SYMBOL_SYMTAB.
234 * skip.c (skip_info): Use SYMBOL_SYMTAB.
235
0270a750
PA
2362012-11-26 Maxime Villard <rustyBSD@gmx.fr>
237 Pedro Alves <palves@redhat.com>
238
239 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
240 size parameter passed to readlink by one byte.
241 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
242 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
243 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
244 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
245 size by one byte.
246
9c16be9a
YQ
2472012-11-26 Yao Qi <yao@codesourcery.com>
248
249 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
250 extraneous parentheses.
251
e6f3fa52
YQ
2522012-11-26 Yao Qi <yao@codesourcery.com>
253
254 * remote.c (remote_start_remote): Typo fix.
255
db75c717
DM
2562012-11-23 David S. Miller <davem@davemloft.net>
257
258 * sparc-tdep.h (struct sparc_fpregset): New data structure.
259 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
260 sparc32_sol2_fpregset): Declare new globals.
261 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
262 'fpregset' argument.
263 * sparc64-tdep.h (sparc64_supply_fpregset,
264 sparc64_collect_fpregset): Likewise.
265 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
266 globals.
267 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
268 (sparc_fpregset): Declare new global.
269 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
270 'fpregset' argument.
271 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
272 into handler.
273 (fill_fpregset): Likewise.
274 (_initialize_sparc_linux_nat): Set sparc_fpregset to
275 sparc32_bsd_fpregset.
276 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
277 sparc32_bsd_fpregset down into handler.
278 (sparc32_linux_collect_core_fpregset): Likewise.
279 * sparc-nat.c (sparc_fpregset): Define.
280 (sparc_supply_fpregset): Add 'fpregset' argument.
281 (sparc_collect_fpregset): Likewise.
282 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
283 into fpregset handler.
284 (sparc_store_inferior_registers): Likewise.
285 (_initialize_sparc_nat): Set sparc_fpregset to
286 sparc32_sunos4_fpregset if NULL.
287 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
288 down into handler.
289 (fill_fpregset): Likewise.
290 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
291 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
292 use it to compute offsets.
293 (sparc32_collect_fpregset): Likewise.
294 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
295 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
296 down into handler.
297 (fill_fpregset): Likewise.
298 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
299 Likewise.
300 (sparc64_linux_collect_core_fpregset): Likewise.
301 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
302 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
303 use it to compute offsets.
304 (sparc64_collect_fpregset): Likewise.
305 (sparc64_bsd_fpregset): Define.
306 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
307 sparc64_bsd_fpregset down into handler.
308 (sparc64fbsd_collect_fpregset): Likewise.
309 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
310 and pass sparc{32,64}_bsd_fpregset down into handler.
311 (sparc64nbsd_collect_fpregset): Likewise.
312 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
313 sparc64_bsd_fpregset down into handler.
314 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
315 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
316 to sparc32_bsd_fpregset.
317 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
318 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
319 (sparc32nbsd_supply_fpregset): Likewise.
320
cfcad218
TT
3212012-11-21 Tom Tromey <tromey@redhat.com>
322
323 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
324 field.
325 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
326 Remove.
327 * c-typeprint.c (c_type_print_base): Update.
328
85ddcc70
YQ
3292012-11-21 Yao Qi <yao@codesourcery.com>
330
331 PR tdep/7438
332 * gdbarch.sh (smash_text_address): Remove.
333 * gdbarch.c, gdbarch.h: Regenerate.
334 * arm-tdep.c (arm_smash_text_address): Remove.
335 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
336 * hppa-tdep.c (hppa_smash_text_address): Remove.
337 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
338 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
339 Caller update.
340 * coffread.c (coff_symtab_read): Caller update.
341 * dbxread.c (process_one_symbol): Likewise.
342 * elfread.c (record_minimal_symbol): Likewise.
343 * somread.c (som_symtab_read): Likewise.
344
11522069
PM
3452012-11-20 Pierre Muller <muller@sourceware.org>
346
347 ARI fixes: sprintf rule.
348 Replace sprintf function calls for char arrays by
349 calls to xsnprintf calls.
350 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
351 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
352 (arm_neon_quad_read, arm_pseudo_read): Ditto.
353 (arm_neon_quad_write, arm_pseudo_write): Ditto.
354 * breakpoint.c (condition_completer): Ditto.
355 (create_tracepoint_from_upload): Ditto.
356 * dwarf2read.c (file_full_name): Ditto.
357 * gcore.c (gcore_command): Ditto.
358 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
359 * go32-nat.c (go32_sysinfo): Ditto.
360 * interps.c (interp_set): Ditto.
361 * m32c-tdep.c (make_types): Ditto.
362 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
363 * remote-m32r-sdi.c (m32r_open): Ditto.
364 * sol-thread.c (td_err_string): Ditto.
365 (td_state_string, solaris_pid_to_str): Ditto.
366 * symtab.c (gdb_mangle_name): Ditto.
367 * cli/cli-script.c (execute_control_command): Ditto.
368 (define_command, document_command): Ditto.
369 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
370 * tui/tui-stack.c (tui_make_status_line): Ditto.
371 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
372
ace21957
MF
3732012-11-20 Mike Frysinger <vapier@gentoo.org>
374
375 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
376 it when looking at ptr->func.
377 * command.h (complete_on_cmdlist): Add a fourth arg.
378 * completer.c (complete_line_internal): Add local ignore_help_classes,
379 and set it to 1 when reason is not handle_help. Pass this down to
380 lookup_cmd_1 and complete_on_cmdlist.
381
ec6632d7
TT
3822012-11-20 Tom Tromey <tromey@redhat.com>
383
384 * completer.c (count_struct_fields): Remove.
385 (expression_completer): Don't call count_struct_fields.
386
ef37bb07
PA
3872012-11-20 Pedro Alves <palves@redhat.com>
388
389 * annotate.c (breakpoints_changed): Rename to ...
390 (annotate_breakpoints_changed): ... this.
391 (annotate_stopped, breakpoint_changed): Adjust caller.
392 * annotate.h (breakpoints_changed): Rename to ...
393 (annotate_breakpoints_changed): ... this.
394 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
395 (do_map_commands_command, init_raw_breakpoint, clear_command)
396 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
397
b245bdfc
DM
3982012-11-20 David S. Miller <davem@davemloft.net>
399
400 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
401 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
402 sysconf.
403 (get_cores_used_by_process): Update comment.
404
bd0cfc4d
YQ
4052012-11-20 Yao Qi <yao@codesourcery.com>
406
407 * objfiles.c (init_entry_point_info): Remove trailing spaces.
408
de9f1b68
YQ
4092012-11-20 Yao Qi <yao@codesourcery.com>
410
411 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
412 to deprecated_context_hook.
413
8870954f
YQ
4142012-11-19 Yao Qi <yao@codesourcery.com>
415
416 * infrun.c (infwait_state): Add static.
417
8dea366b
KS
4182012-11-16 Keith Seitz <keiths@redhat.com>
419
420 PR c++/13615
421 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
422 parameter and pass it to lookup_symbol_file.
423 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
424 to search base classes.
425 (cp_lookup_symbol_namespace): Likewise.
426 (lookup_namespace_scope): Likewise.
427 (lookup_symbol_file): Add SEARCH parameter.
428 If SEARCH is non-zero and no symbol is found, lookup the class
429 and call cp_lookup_nested_symbol.
430 (find_symbol_in_baseclass): New function.
431 (cp_lookup_nested_symbol): Do not let
432 cp_lookup_symbol_in_namespace search through base classes.
433 Do that later when there is no global symbol match.
434
e64e0392
DE
4352012-11-16 Doug Evans <dje@google.com>
436
437 * main.c (gdb_datadir_provided): New static global.
438 (get_init_files): If --data-directory is provided,
439 and SYSTEM_GDBINIT lives in data-directory, look for it there.
440 * NEWS: Mention it.
441
8bdce1ff
PM
4422012-11-15 Pierre Muller <muller@sourceware.org>
443
444 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
445 * gdb_stat.h: Delete. Moved to common directory.
446 * common/gdb_stat.h: New file.
447 * gdb_wait.h: Delete. Moved to common directory.
448 * common/gdb_wait.h: New file.
449 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
450 location.
451 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
452 location.
453 (stat.h rule): Adapt to new gdb_stat.h location.
454 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
455 <sys/stat.h> header.
456 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
457 <sys/wait.h> header.
458
3a731e0f
PM
4592012-11-15 Pierre Muller <muller@sourceware.org>
460
461 * configure.ac (AC_HEADER_STAT): Remove.
462 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
463 and corresponding code.
464 * configure: Regenerate.
465 * config.in: Regenerate.
466
2792b94d
PM
4672012-11-15 Pierre Muller <muller@sourceware.org>
468
469 ARI xasprintf rule fixes.
470 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
471 instead of xasprintf.
472 (open_and_init_dwp_file): Ditto.
473
5e34c6c3
LM
4742012-11-14 Luis Machado <lgustavo@codesourcery.com>
475
476 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
477 target types.
478
e68227b9
TT
4792012-11-14 Tom Tromey <tromey@redhat.com>
480
481 * configure, config.in: Rebuild.
482 * configure.ac: Don't check for ctype.h, time.h.
483 * expprint.c: Don't use HAVE_CTYPE_H.
484
aff68abb
TT
4852012-11-13 Tom Tromey <tromey@redhat.com>
486
487 * gdbarch.h, gdbarch.c: Rebuild.
488 * gdbarch.sh (set_target_gdbarch): Rename from
489 deprecated_target_gdbarch_select_hack.
490 * arch-utils.c (gdbarch_update_p): Update.
491 (set_gdbarch_from_file): Update.
492
84277139 4932012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
494
495 * MAINTAINERS (Responsible Maintainers/misc): Add myself
496 as responsible of contrib/ari directory.
497
2ae28aa9
YQ
4982012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
499 Yao Qi <yao@codesourcery.com>
500
501 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
502 bit of EXC_RETURN.
503 (arm_m_exception_cache, arm_m_exception_this_id)
504 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
505 (arm_m_exception_unwind): New.
506 (arm_gdbarch_init): Register arm_m_exception_unwind.
507
62747a60
TT
5082012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
509
510 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
511 parameter COUNT, for pattern filling of memory regions.
512 * NEWS: Mention it.
513
4cd29721
MM
5142012-11-13 Markus Metzger <markus.t.metzger@intel.com>
515
516 * disasm.h (DISASSEMBLY_FILENAME): New macro.
517 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
518 to print_source_lines ().
519 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
520 flag.
521 * source.c (print_source_lines_base): Prefix source line with
522 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
523
dfaae886
MM
5242012-11-13 Markus Metzger <markus.t.metzger@intel.com>
525
526 * symtab.h (print_source_lines_flags): New enum.
527 * source.c (print_source_lines_base): Change noerror to flags.
528 (print_source_lines): Change noerror to flags.
529
08850b56
PM
5302012-11-13 Pierre Muller <muller@sourceware.org>
531
532 ARI fixes: Avoid sprintf function use rule.
533 * charset.c (convert_between_encodings): Use xsnprintf.
534 * cli-out.c (cli_field_int): Likewise.
535 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
536 * expprint.c (op_name_standard): Likewise.
537 * frv-tdep.c (set_variant_num_gprs): Likewise.
538 (set_variant_num_fprs): Likewise.
539 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
540 * nto-tdep.c (nto_find_and_open_solib): Likewise.
541 (nto_init_solib_absolute_prefix): Likewise.
542 * source.c (init_source_path): Likewise.
543 (print_source_lines_base): Likewise.
544 * valprint.c (print_wchar): Likewise.
545 * mi/mi-out.c (mi_field_int): Likewise.
546 windows-nat.c (windows_pid_to_exec_file): Likewise.
547 (windows_create_inferior): Likewise.
548 (_initialize_check_for_gdb_ini): Likewise.
549
ca9d61b9
JB
5502012-11-12 Joel Brobecker <brobecker@adacore.com>
551
552 * frame.h (deprecated_frame_register_read): Renames
553 frame_register_read.
554 * frame.c (deprecated_frame_register_read): Renames
555 frame_register_read. Update all callers.
556 * i386-tdep.c: Update all callers of frame_register_read.
557 * infcmd.c: Likewise.
558 * jit.c: Likewise.
559 * mips-tdep.c: Likewise.
560 * mt-tdep.c: Likewise.
561 * sh64-tdep.c: Likewise.
562
b2c7d45a
JB
5632012-11-12 Joel Brobecker <brobecker@adacore.com>
564
565 * frame.h (frame_register_read): Remove FIXME comment.
566 * frame.c (frame_register_read): Add suggestion explaining
567 which function to use in place of this one.
568
31594462
TT
5692012-11-12 Tom Tromey <tromey@redhat.com>
570
571 * python/python.c (start_type_printers): Initialize 'result_obj'.
572
18a9fc12
TT
5732012-11-12 Tom Tromey <tromey@redhat.com>
574
575 * NEWS: Update.
576 * data-directory/Makefile.in (PYTHON_FILES): Add
577 type_printers.py.
578 * python/lib/gdb/command/type_printers.py: New file.
579 * python/lib/gdb/command/types.py (TypePrinter): New class.
580 (_get_some_type_recognizers, get_type_recognizers,
581 apply_type_recognizers, register_type_printer): New
582 functions.
583 * python/py-objfile.c (objfile_object) <type_printers>: New
584 field.
585 (objfpy_dealloc): Decref new field.
586 (objfpy_new): Set new field.
587 (objfpy_get_type_printers, objfpy_set_type_printers): New
588 functions.
589 (objfile_to_objfile_object): Set new field.
590 (objfile_getset): Add "type_printers".
591 * python/py-progspace.c (pspace_object) <type_printers>: New
592 field.
593 (pspy_dealloc): Decref new field.
594 (pspy_new): Set new field.
595 (pspy_get_type_printers, pspy_set_type_printers): New functions.
596 (pspace_to_pspace_object): Set new field.
597 (pspace_getset): Add "type_printers".
598 * python/python.c (start_type_printers, apply_type_printers,
599 free_type_printers): New functions.
600 (_initialize_python): Set gdb.type_printers.
601 * python/python.h (start_type_printers, apply_type_printers,
602 free_type_printers): Declare.
603 * typeprint.c (type_print_raw_options, default_ptype_flags):
604 Update for new fields.
605 (do_free_global_table, create_global_typedef_table,
606 find_global_typedef): New functions.
607 (find_typedef_in_hash): Use find_global_typedef.
608 (whatis_exp): Use create_global_typedef_table. Change cleanup
609 handling.
610 * typeprint.h (struct type_print_options) <global_typedefs,
611 global_printers>: New fields.
612
bd69fc68
TT
6132012-11-12 Tom Tromey <tromey@redhat.com>
614
615 * c-typeprint.c (find_typedef_for_canonicalize,
616 print_name_maybe_canonical): New functions.
617 (c_print_type): Look up type name.
618 (cp_type_print_derivation_info): Add flags argument. Use
619 print_name_maybe_canonical.
620 (cp_type_print_method_args): Add wrapping.
621 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
622 (c_type_print_template_args): New function.
623 (c_type_print_base): Change wrapping. Use
624 print_name_maybe_canonical.
625 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
626 type name lookups.
627 * gdbtypes.c (types_equal): No longer static.
628 * gdbtypes.h (types_equal): Declare.
629 * typeprint.c (type_print_raw_options, default_ptype_flags):
630 Update.
631 (struct typedef_hash_table): New.
632 (hash_typedef_field, eq_typedef_field,
633 recursively_update_typedef_hash, add_template_parameters,
634 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
635 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
636 copy_typedef_hash, find_typedef_in_hash): New functions.
637 * typeprint.h (struct type_print_options) <local_typedefs>:
638 New field.
639 (recursively_update_typedef_hash, add_template_parameters,
640 create_typedef_hash, free_typedef_hash,
641 make_cleanup_free_typedef_hash, copy_typedef_hash,
642 find_typedef_in_hash): Declare.
643
2621e0fd
TT
6442012-11-12 Tom Tromey <tromey@redhat.com>
645
646 * cp-support.c (inspect_type,
647 replace_typedefs_qualified_name, replace_typedefs): Add
648 finder, data arguments. Call as needed.
649 (cp_canonicalize_string_full): New function.
650 (cp_canonicalize_string_no_typedefs): Rewrite.
651 * cp-support.h (canonicalization_ftype): New typedef.
652 (cp_canonicalize_string_full): Declare.
653
53342f27
TT
6542012-11-12 Tom Tromey <tromey@redhat.com>
655
656 * NEWS: Update.
657 * c-typeprint.c (c_type_print_base): Handle print_method and
658 print_typedefs flags.
659 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
660 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
661 options.
662 * typeprint.c (type_print_raw_options, default_ptype_flags):
663 Update for new field.s
664 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
665 (setprinttypelist, showprinttypelist, print_methods,
666 print_typedefs): New globals.
667 (set_print_type, show_print_type, set_print_type_methods,
668 show_print_type_methods, set_print_type_typedefs,
669 show_print_type_typedefs): New functions.
670 (_initialize_typeprint): Update documentation. Add "print
671 type methods" and "print type typedefs" parameters.
672 * typeprint.h (struct type_print_options) <print_methods,
673 print_typedefs>: New fields.
674
6c8702eb
TT
6752012-11-12 Tom Tromey <tromey@redhat.com>
676
677 * c-typeprint.c (cp_type_print_method_args): Add flags
678 argument. Call c_print_type, not type_print.
679 (c_type_print_base): Call c_print_type, not type_print.
680 Update.
681
79d43c61
TT
6822012-11-12 Tom Tromey <tromey@redhat.com>
683
684 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
685 to type-printing functions.
686 * ada-lang.h (ada_print_type): Add argument.
687 * ada-typeprint.c (print_array_type, print_variant_clauses,
688 print_variant_part, print_selected_record_field_types,
689 print_record_field_types, print_unchecked_union_type,
690 print_func_type, ada_print_type): Add flags argument.
691 (ada_print_typedef): Update.
692 * c-exp.y (OPERATOR conversion_type_id): Update.
693 * c-lang.h (c_print_type, c_type_print_base): Update.
694 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
695 c_type_print_modifier, c_type_print_args,
696 c_type_print_varspec_suffix, c_type_print_base): Add flags
697 argument.
698 * cp-valprint.c (cp_print_class_member): Update.
699 * dwarf2read.c (dwarf2_compute_name): Update.
700 * f-lang.h (f_print_type): Add argument.
701 * f-typeprint.c (f_print_type): Add flags argument.
702 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
703 * go-lang.h (go_print_type): Add argument.
704 * go-typeprint.c (go_print_type): Add flags argument.
705 * jv-lang.h (java_print_type): Add argument.
706 * jv-typeprint.c (java_type_print_base, java_print_type): Add
707 flags argument.
708 * language.c (unk_lang_print_type): Add flags argument.
709 * language.h (struct language_defn) <la_print_type>: Add flags
710 argument.
711 (LA_PRINT_TYPE): Likewise.
712 * m2-lang.h (m2_print_type): Add argument.
713 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
714 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
715 m2_unbounded_array, m2_record_fields): Add flags argument.
716 * p-lang.h (pascal_print_type, pascal_type_print_base,
717 pascal_type_print_varspec_prefix): Add argument.
718 * p-typeprint.c (pascal_print_type,
719 pascal_type_print_varspec_prefix, pascal_print_func_args,
720 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
721 flags argument.
722 * symmisc.c (print_symbol): Update.
723 * typeprint.c (type_print_raw_options, default_ptype_flags):
724 New globals.
725 (type_print): Update.
726 * typeprint.h (struct type_print_options): New.
727 (type_print_raw_options): Declare.
728 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
729
cf4ded82
KS
7302012-11-10 Keith Seitz <keiths@redhat.com>
731
732 * breakpoint.c (clear_command): Add cleanup for
733 sals.sals if an argument is given.
734
735 * linespec.c (parse_linespec): Do cleanups after
736 parsing a convenience variable.
737
0d63ecda
KS
7382012-11-10 Keith Seitz <keiths@redhat.com>
739
740 PR gdb/14288
741 * c-valprint.c (c_val_print): For character arrays
742 with "print null" option on, print ellipses if
743 the output is truncated and the next character is not \000.
744 * valprint.c (MAX_WCHARS): Define.
745 (WCHAR_BUFLEN): Likewise.
746 (WCHAR_BUFLEN_MAX): Likewise.
747 (struct converted_character): New structure.
748 (count_next_character): New function.
749 (print_converted_chars_to_obstack): New function.
750 (generic_printstr): Rewrite using count_next_character
751 and print_converted_chars_to_obstack.
752
9b8d6827
SC
7532012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
754
755 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
756 while executing the gdb command.
757 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
758 are called from prompt_for_continue.
759 * tui/tui-io.c (tui_redisplay_readline): Likewise.
760
e840f632
SC
7612012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
762
763 PR tui/9584
764
765 * tui/tui.c (tui_rl_command_key): Do not call execute_command
766 but insert the command to execute in readline's buffer.
767
f5656ead
TT
7682012-11-09 Tom Tromey <tromey@redhat.com>
769
770 * gdbarch.sh (target_gdbarch): Remove macro.
771 (get_target_gdbarch): Rename to target_gdbarch.
772 * gdbarch.c, gdbarch.h: Rebuild.
773 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
774 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
775 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
776 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
777 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
778 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
779 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
780 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
781 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
782 procfs.c, progspace.c, ravenscar-thread.c, record.c,
783 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
784 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
785 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
786 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
787 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
788 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
789 target-descriptions.c, target.c, target.h, tracepoint.c,
790 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
791 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
792 python/py-inferior.c, python/python.c: Update.
793
ed8a1c2d
AB
7942012-11-09 Andrew Burgess <aburgess@broadcom.com>
795
796 * source.c (print_source_lines_base): Add fullname field giving
797 full path to file in mi output.
798 * NEWS: Mention the new fullname field.
799
504b36fd
YQ
8002012-11-09 Yao Qi <yao@codesourcery.com>
801
802 * NEWS: Mention the fix to the ambiguity of 'fo' command.
803
9107fc8d
PA
8042012-11-09 Pedro Alves <palves@redhat.com>
805
806 PR gdb/14306
807
808 * infrun.c: Include target-descriptions.h.
809 (follow_exec): Fetch new target description.
810
30f8135b
YQ
8112012-11-09 Yao Qi <yao@codesourcery.com>
812
813 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
814 0x8d (lea).
815
558a9d82
YQ
8162012-11-09 Yao Qi <yao@codesourcery.com>
817
818 * breakpoint.c: Declare set_tracepoint_count.
819 (install_breakpoint): Call set_tracepoint_count if B is a
820 tracepoint.
821 (trace_command): Don't call set_tracepoint_count. Re-indent.
822 (strace_command, ftrace_command):
823 (create_tracepoint_from_upload): Likewise.
824
6ecd4729
PA
8252012-11-09 Pedro Alves <palves@redhat.com>
826
827 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
828 (get_target_gdbarch) <gdbarch.h>: New function.
829 (startup_gdbarch) <gdbarch.h>: Declare.
830 <gdbarch.c> (target_gdbarch): Delete.
831 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
832 current inferior's gdbarch.
833 <gdbarch.c> (get_target_gdbarch): New function.
834 * inferior.c: Include target-descriptions.h.
835 (free_inferior): Free target description info.
836 (add_inferior_with_spaces): Set the inferior's initial
837 architecture.
838 (clone_inferior_command): Copy the original inferior's target
839 description if it was user specified.
840 (initialize_inferiors): Add comment.
841 * inferior.h (struct target_desc_info): Forward declare.
842 (struct inferior) <gdbarch>: New field.
843 * linux-nat.c: Include target-descriptions.h.
844 (linux_child_follow_fork): Copy the parent's architecture and
845 target description to the child.
846 * target-descriptions.c: Include inferior.h.
847 (struct target_desc_info): New structure, holding the equivalents
848 of ...
849 (target_desc_fetched, current_target_desc)
850 (target_description_filename): ... these removed globals.
851 (get_tdesc_info, target_desc_info_from_user_p)
852 (copy_inferior_target_desc_info, target_desc_info_free): New.
853 (target_desc_fetched, current_target_desc)
854 (target_description_filename): Reimplemented as convenience
855 macros.
856 (tdesc_filename_cmd_string): New global.
857 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
858 tdescs filename ..." commands to the per-inferior equivalent.
859 (show_tdesc_filename_cmd): Get the value to show from the
860 per-inferior description filename.
861 (_initilize_target_descriptions): Change the "set/show tdesc
862 filename" commands' variable.
863 * target-descriptions.h (struct target_desc, struct target_desc_info)
864 (struct inferior): Forward declare.
865 (target_find_description, target_clear_description)
866 (target_current_description): Adjust comments.
867 (copy_inferior_target_desc_info, target_desc_info_free)
868 (target_desc_info_from_user_p). Declare.
869
4ca4d161
SC
8702012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
871
872 * tui/tui-hooks.c (tui_about_to_proceed): New function.
873 (tui_target_wait_hook): Remove.
874 (tui_install_hooks): Install the about_to_proceed observer.
875 (tui_remove_hooks): And remove it here.
876
9015683b
TT
8772012-11-08 Tom Tromey <tromey@redhat.com>
878
879 * linux-tdep.c (linux_make_siginfo_note): New function.
880 (linux_make_corefile_notes): Use it.
881 * corelow.c (get_core_siginfo): New function.
882 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
883
ea9f10bb
TT
8842012-11-08 Tom Tromey <tromey@redhat.com>
885
886 PR gdb/14704:
887 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
888 (zlib_decompress_section): Remove.
889 (gdb_bfd_map_section): Only check for compressed section
890 in mmap case. Use bfd_get_full_section_contents.
891 * osabi.c (check_note): Add 'sectsize' argument. Read
892 section data.
893 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
894 section data. Update for check_note change.
895 * xcoffread.c (xcoff_initial_scan): Use
896 bfd_get_full_section_contents.
897 * py-auto-load.c (auto_load_section_scripts): Use
898 bfd_get_full_section_contents.
899 * contrib/cc-with-tweaks.sh: Add -Z option.
900
d071a26b
TT
9012012-11-08 Tom Tromey <tromey@redhat.com>
902
903 * python/py-bpevent.c: Include defs.h.
904 * python/py-continueevent.c: Include defs.h.
905 * python/py-event.c: Include defs.h.
906 * python/py-event.h: Don't include defs.h.
907 * python/py-events.h: Don't include defs.h.
908 * python/py-evts.c: Include defs.h.
909 * python/py-exitedevent.c: Include defs.h.
910 * python/py-newobjfileevent.c: Include defs.h.
911 * python/py-signalevent.c: Include defs.h.
912 * python/py-stopevent.c: Include defs.h.
913 * python/py-threadevent.c: Include defs.h.
914
4574b35a
PM
9152012-11-08 Pierre Muller <muller@sourceware.org>
916
917 * update-web-ari.sh (print_heading): Add number of files
918 checked.
919 (nb_files): New variable counting the number of sources
920 files found by gdb_find.sh script.
921 (debug_awk): New variable to allow extra debug output.
922 (indexes): Add more information if DEBUG_AWK is set.
923
2834ab42
EBM
9242012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
925
926 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
927 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
928 following the change in PLT call stubs on linker.
929
84f13595
PM
9302012-11-08 Pierre Muller <muller@sourceware.org>
931
932 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
933 as default language.
934 (AWK): Use = instead of == for sh test to avoid warning.
935 (Linux rule): Correct [:digit] into [[:digit:]].
936 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
937 (vasprintf rule): Adapt to common subdirectory moves.
938 (xasprintf rule): Idem.
939 (xvasprintf rule): Idem.
940 (var_boolean rule): Accept occurence in == or != test.
941
942 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
943
d69e6a33
SC
9442012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
945
946 * tui/tui-hooks.c (tui_inferior_exit): New function.
947 (tui_detach_hook): Remove.
948 (tui_install_hooks): Install the inferior exit observer.
949 (tui_remove_hooks): Remove it.
950
1e96de83
YQ
9512012-11-08 Yao Qi <yao@codesourcery.com>
952
953 PR gdb/14777.
954 * source.c (_initialize_source): Call add_com_alias to abbreviate
955 'forward-search' as 'fo'.
956
0baeab03
PA
9572012-11-07 Pedro Alves <palves@redhat.com>
958
959 * arm-tdep.c: Make defs.h be the first include.
960 * coff-pe-read.c: Ditto.
961 * gnu-nat.c: Ditto.
962 * go32-nat.c: Ditto.
963 * i386-nat.c: Ditto.
964 * ppcnbsd-nat.c: Ditto.
965 * ada-varobj.h: Don't include defs.h.
966 * i386-darwin-tdep.h: Ditto.
967 * i386-nat.h: Ditto.
968
892a8570
PA
9692012-11-07 Pedro Alves <palves@redhat.com>
970
971 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
972 Committee.
973
719502e9
PM
9742012-11-07 Pierre Muller <muller@sourceware.org>
975
976 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
977 File already uses "gdb_dirent.h" header.
978
ed86b350
YQ
9792012-11-07 Yao Qi <yao@codesourcery.com>
980
981 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
982 tracepoint_count'.
983
9a4f1e4f
TT
9842012-11-06 Tom Tromey <tromey@redhat.com>
985
986 * target.h (inferior_has_forked, inferior_has_vforked)
987 (inferior_has_execd, inferior_has_called_syscall): Remove
988 declarations.
989
0316657e
PM
9902012-11-06 Pierre Muller <muller@sourceware.org>
991
992 * remote.c (remote_insert_hw_breakpoint): ARI fix,
993 add missing internalization markup.
994
f6592439
PA
9952012-11-06 Pedro Alves <palves@redhat.com>
996
997 PR gdb/14810
998
999 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1000
01f2564a
PM
10012012-11-06 Pierre Muller <muller@sourceware.org>
1002
1003 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1004 is not executable.
1005
f37c4431
JB
10062012-11-05 Joel Brobecker <brobecker@adacore.com>
1007
1008 * gnulib/update-gnulib.sh: New script.
1009
550889c3
JB
10102012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1011
1012 * MAINTAINERS: Update my email address.
1013
954b50b3
TT
10142012-11-05 Tom Tromey <tromey@redhat.com>
1015
1016 * frame.c (put_frame_register): Don't use temporary buffer.
1017
68c9da30
PA
10182012-11-05 Pedro Alves <palves@redhat.com>
1019
1020 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1021 child. Clear 'pending_detach'.
1022 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1023 'pending_detach' in the vfork parent.
1024
80626a55
DE
10252012-11-05 Doug Evans <dje@google.com>
1026
1027 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1028 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1029 * dwarf2read.c: #include "elf-bfd.h".
1030 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1031 (dwop_section_names): Renamed from dwo_section names. All uses
1032 updated. Add entries for .debug_cu_index, .debug_tu_index.
1033 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1034 All uses updated.
1035 (struct dwp_sections): New type.
1036 (struct virtual_dwo_sections): New type.
1037 (struct dwp_hash_table): New type.
1038 (struct dwp_file): New type.
1039 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1040 read in. Handle DWOs coming from DWP files.
1041 (lookup_dwo_file_slot): New function.
1042 (dwarf2_locate_dwo_sections): Move definition closer to use.
1043 (create_dwo_debug_info_hash_table_reader): Renamed from
1044 create_debug_info_hash_table_reader. All callers updated.
1045 (create_dwo_debug_info_hash_table): Renamed from
1046 create_debug_info_hash_table. All callers updated.
1047 (create_dwp_hash_table): New function.
1048 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1049 (lookup_dwo_in_dwp): New function.
1050 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1051 is_dwp. All callers updated.
1052 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1053 (open_and_init_dwo_file): Renamed from init_dwo_file.
1054 All callers updated.
1055 (lookup_dwo_file): Delete.
1056 (dwarf2_locate_dwp_sections): New function.
1057 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1058 (allocate_dwp_loaded_cutus_table): New function.
1059 (open_and_init_dwp_file): New function.
1060 (lookup_dwo_cutu): New function.
1061 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1062
6f6484cd
YQ
10632012-11-03 Yao Qi <yao@codesourcery.com>
1064
1065 Fix PR gdb/14617.
1066 * breakpoint.c (trace_pass_set_count): Call
1067 observer_notify_breakpoint_modified instead of
1068 observer_notify_tracepoint_modified.
1069 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1070
b45627a0
TT
10712012-11-02 Tom Tromey <tromey@redhat.com>
1072
1073 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1074 argument to complete_on_enum.
1075
d4fb63e1
TT
10762012-11-02 Tom Tromey <tromey@redhat.com>
1077
1078 * configure: Rebuild.
1079 * configure.ac (build_warnings): Add -Wempty-body.
1080 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1081 * remote.c (handle_notification): Use braces for empty 'else' body.
1082 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1083 'else' body.
1084 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1085 'else' body.
1086 * solib-som.c (som_relocate_section_addresses): Use braces
1087 for empty 'else' body.
1088 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1089 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1090
f50f4e56
PA
10912012-11-02 Pedro Alves <palves@redhat.com>
1092
1093 PR gdb/14766
1094
1095 * infrun.c (handle_inferior_event)
1096 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1097 null_ptid before handling a vfork child exec or exit. Switch to
1098 the event ptid afterwards.
1099
f0559fff
YQ
11002012-11-02 Yao Qi <yao@codesourcery.com>
1101
1102 * std-operator.def: Remove OP_LABELED.
1103 * eval.c: Remove the declaration of 'get_label'.
1104 (get_label): Remove.
1105 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1106 Update comment.
1107 Remove local variable 'variantno' and related code.
1108 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1109 with 'fieldno'.
1110 * expprint.c (print_subexp_standard): Likewise.
1111 (dump_subexp_body_standard): Likewise.
1112 * parse.c (operator_length_standard): Likewise.
1113
e5496e3e
PM
11142012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1115
1116 Incorporate ARI web page generator into GDB sources.
1117 * contrib/ari/create-web-ari-in-src.sh: New file.
1118 * contrib/ari/gdb_ari.sh: New file.
1119 * contrib/ari/gdb_find.sh: New file.
1120 * contrib/ari/update-web-ari.sh: New file.
1121
c66fb220
TT
11222012-10-31 Tom Tromey <tromey@redhat.com>
1123
1124 * gdbarch.c: Rebuild.
1125 * gdbarch.sh: Remove references to gdbarch_swap.
1126 * corelow.c (core_open): Remove obsolete comment.
1127
2f27adfe
AB
11282012-10-31 Andrew Burgess <aburgess@broadcom.com>
1129
1130 PR cli/14772
1131 * c-typeprint.c (c_print_type): Don't print a space for vector
1132 types, this is handled within the suffix.
1133 (c_type_print_varspec_suffix): Add a space to vector suffix.
1134
144db827
PA
11352012-10-26 Pedro Alves <palves@redhat.com>
1136
1137 * amd64-tdep.c (amd64_relocate_instruction): Use
1138 store_unsigned_integer instead of memcpy.
1139 * i386-tdep.c (i386_relocate_instruction): Ditto.
1140
940c3c06
PA
11412012-10-26 Pedro Alves <palves@redhat.com>
1142
1143 * infrun.c (handle_inferior_event): Merge handling of
1144 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1145 switch case.
1146
47b19065
PA
11472012-10-26 Pedro Alves <palves@redhat.com>
1148
1149 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1150 Remove comment.
1151
87d2d2a4
PA
11522012-10-26 Pedro Alves <palves@redhat.com>
1153
1154 * target.c (target_waitstatus_to_string): Handle
1155 TARGET_WAITKIND_VFORK_DONE.
1156
fed708ed
PA
11572012-10-26 Pedro Alves <palves@redhat.com>
1158
1159 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1160 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1161
2590b645
JB
11622012-10-24 Tristan Gingold <gingold@adacore.com>
1163
1164 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1165 Add comments.
1166
bed0c243
JB
11672012-10-24 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ravenscar-thread.c (ravenscar_wait): Only update the list
1170 of threads and inferior_ptid if the inferior is still alive.
1171
f69c91ad
JB
11722012-10-24 Joel Brobecker <brobecker@adacore.com>
1173
1174 * ada-lang.c (is_known_support_routine): Use lbasename when
1175 matching the symtab's filename against
1176 known_runtime_file_name_patterns.
1177
d99dcf51
JB
11782012-10-24 Joel Brobecker <brobecker@adacore.com>
1179
1180 * ada-lang.c (ada_same_array_size_p): New function.
1181 (ada_promote_array_of_integrals): New function.
1182 (coerce_for_assign): Add handling of arrays where the elements
1183 are integrals of a smaller size than the size of the target
1184 array element type.
1185
32560274
JB
11862012-10-24 Joel Brobecker <brobecker@adacore.com>
1187
1188 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1189 against maximum exponent value.
1190
5a04cc98
JB
11912012-10-24 Joel Brobecker <brobecker@adacore.com>
1192
1193 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1194 "unwind-seh.c".
1195
5ded5331
JB
11962012-10-24 Joel Brobecker <brobecker@adacore.com>
1197
1198 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1199 strip typedef layer when computing the fixed type's field type,
1200 only when computing its size.
1201
2445fd7b
MK
12022012-10-24 Mark Kettenis <kettenis@gnu.org>
1203
1204 PR gdb/12783
1205 * i386-tdep.c (i386_return_value): Handle complex double and long
1206 double.
1207
8f205f9c
JB
12082012-10-24 Joel Brobecker <brobecker@adacore.com>
1209
1210 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1211 New local variable args_len.
1212 Quote the name of the executable when computing the command line.
1213
7f7930dd
MK
12142012-10-23 Mark Kettenis <kettenis@gnu.org>
1215
1216 PR gdb/12796
1217 PR gdb/12798
1218 PR gdb/12800
1219 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1220 AMD64_FTAG_REGNUM.
1221 * amd64-tdep.c (amd64_classify): Classify complex types.
1222 (amd64_return_value): Handle the COMPLEX_X87 class.
1223
38a69d0a
JB
12242012-10-23 Joel Brobecker <brobecker@adacore.com>
1225
1226 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1227 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1228
83ab93c6
JB
12292012-10-23 Joel Brobecker <brobecker@adacore.com>
1230
1231 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1232 function.
1233 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1234 to amd64_windows_auto_wide_charset.
1235
f6fbab7d
YQ
12362012-10-23 Yao Qi <yao@codesourcery.com>
1237
1238 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1239 * event-top.h: Remove its declaration.
1240 (async_request_quit): Call mark_async_signal_handler instead of
1241 mark_async_signal_handler_wrapper.
1242 (async_do_nothing, async_disconnect): Likewise.
1243 (async_stop_sig): Likewise.
1244 * remote.c (handle_remote_sigint): Likewise.
1245 (handle_remote_sigint_twice): Likewise.
1246
05fa9251
YQ
12472012-10-23 Yao Qi <yao@codesourcery.com>
1248
1249 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1250 with 'static struct async_signal_handler *'.
1251 (sighup_token, sigquit_token, sigstp_token): Likewise.
1252
08af7a40
AA
12532012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1254
1255 * gdbarch.sh (function_list): Use 'pstring' when printing
1256 a variable which could return NULL.
1257 * gdbarch.c: Regenerate.
1258
beb4b03c
JB
12592012-10-10 Joel Brobecker <brobecker@adacore.com>
1260 Tom Tromey <tromey@redhat.com>
1261
1262 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1263 inneffective if condition by gdb assertion. Add function
1264 description comment.
1265
a5b12627
JB
12662012-10-19 Joel Brobecker <brobecker@adacore.com>
1267
1268 * parser-defs.h (struct exp_descriptor): Document constraint
1269 on return value for "op_name" callbacks.
1270
0b0865da
TT
12712012-10-18 Tom Tromey <tromey@redhat.com>
1272
1273 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1274 * symtab.c (iterate_over_some_symtabs): Constify.
1275 * source.h (symtab_to_fullname): Return 'const char *'.
1276 * source.c (symtab_to_fullname): Return 'const char *'.
1277 * python/py-symtab.c (stpy_fullname): Constify.
1278 * cli/cli-cmds.c (edit_command): Constify.
1279 * breakpoint.c (print_breakpoint_location)
1280 (update_static_tracepoint): Constify.
1281
94b0e70d
TT
12822012-10-18 Tom Tromey <tromey@redhat.com>
1283
1284 * breakpoint.c (compare_breakpoints): Fix comparison.
1285
fff10684
TT
12862012-10-18 Tom Tromey <tromey@redhat.com>
1287
1288 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1289 gdb_wchar_t to convert_between_encodings.
1290
8de0566d
YQ
12912012-10-17 Yao Qi <yao@codesourcery.com>
1292
1293 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1294 more parameter 'inferior'.
1295 * corefile.c (write_memory_with_notification): Caller update.
1296
1297 * mi/mi-cmd-var.c: Include "mi-main.h".
1298 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1299 to 1 and restore it later.
1300 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1301 and "data-write-memory-bytes.
1302 * mi/mi-interp.c: Include objfiles.h.
1303 (mi_interpreter_init): Call observer_attach_memory_changed.
1304 (mi_memory_changed): New.
1305 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1306 New field.
1307
1308 * NEWS: Mention new MI notification "memory-changed".
1309
6235cdd1
JK
13102012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1311
1312 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1313
07540c15
DE
13142012-10-15 Doug Evans <dje@google.com>
1315
1316 New option -nh: inhibit loading of ~/.gdbinit.
1317 * NEWS: Mention -nh.
1318 * main.c (captured_main): Recognize and process -nh.
1319 (print_gdb_help): Mention -nh.
1320 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1321
eab09350
L
13222012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1323
1324 PR backtrace/14646
1325 PR gdb/14647
1326 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1327 pc_regnum_from_eax.
1328 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1329 nor pc_regnum_from_eax.
1330 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1331 nor pc_regnum_from_eax.
1332
9e3a7d65
JK
13332012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 Fix entry values resolving in inlined frames.
1336 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1337 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1338 entries of FRAME.
1339
c83393b9
JB
13402012-10-15 Joel Brobecker <brobecker@adacore.com>
1341
1342 * configure.ac: Build with -DMS_WIN64 if building with Python
1343 enabled using GCC on amd64-windows.
1344 * configure: Regenerate.
1345
801e4185
TT
13462012-10-15 Tom Tromey <tromey@redhat.com>
1347
1348 PR python/14635:
1349 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1350 to Py_None.
1351
74f910c8
TT
13522012-10-15 Tom Tromey <tromey@redhat.com>
1353
1354 PR python/14634:
1355 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1356
2a7c8fd5
AB
13572012-10-11 Andrew Burgess <aburgess@broadcom.com>
1358
1359 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1360 reset thread numbering back to 1.
1361
7c09e5a0
DE
13622012-10-11 Doug Evans <dje@google.com>
1363
1364 PR breakpoints/14643.
1365 * linespec.c (struct ls_parser): New member keyword_ok.
1366 (linespec_lexer_lex_string): Add comment.
1367 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1368 for one.
1369 (parse_linespec): Set keyword_ok.
1370
a1855c1d
DE
13712012-10-10 Doug Evans <dje@google.com>
1372
844226d6
DE
1373 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1374 "0x" prefix on address in log message.
1375
a1855c1d
DE
1376 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1377 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1378 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1379 (lookup_dwo_file): Add const to dwo_name parameter.
1380 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1381
2e24f4aa
JK
13822012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1383
1384 Fix crash during stepping on ppc32.
1385 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1386 SYM.
1387
aa14df25
DE
13882012-10-03 Doug Evans <dje@google.com>
1389
1390 PR symtab/14601
1391 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1392
3d468296
AB
13932012-10-02 Andrew Burgess <aburgess@broadcom.com>
1394
1395 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1396 output and use uint32_t not long to ensure 4 byte size.
1397
8f0ee2eb
JB
13982012-10-02 Joel Brobecker <brobecker@adacore.com>
1399
1400 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1401 unref'ed it.
1402
b3dc46ff
AB
14032012-10-01 Andrew Burgess <aburgess@broadcom.com>
1404
1405 * target.c (simple_search_memory): Include access length in
1406 warning message.
1407
f712f01f
EBM
14082012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1409 Edjunior Machado <emachado@linux.vnet.ibm.com>
1410
1411 PR gdb/13989
1412 * solib.c (solib_find): Prevent GDB from loading native libraries when
1413 debugging a cross-target corefile.
1414
39181896
PA
14152012-09-28 selven <pcthegreat@gmail.com>
1416
1417 Make definition match declaration.
1418
1419 * regcache.c (regcache_register_status): Change return type to
1420 enum register_status.
1421
4c2786ba
YQ
14222012-09-28 Yao Qi <yao@codesourcery.com>
1423
1424 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1425 write_memory_with_notification instead of write_memory.
1426 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1427 instead of target_write_memory.
1428
1ae0c35e
YQ
14292012-09-28 Yao Qi <yao@codesourcery.com>
1430
1431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1432 when the length of content is not an even number.
1433
7977e5d2
TT
14342012-09-27 Tom Tromey <tromey@redhat.com>
1435
1436 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1437 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1438
807160da
JB
14392012-09-27 Joel Brobecker <brobecker@adacore.com>
1440
1441 * sol-thread.c (sol_thread_fetch_registers)
1442 (sol_thread_store_registers): Delete commented out code.
1443
43c75337
JB
14442012-09-27 Joel Brobecker <brobecker@adacore.com>
1445
1446 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1447 Move these functions to sparc-sol-thread.c.
1448 * sparc-sol-thread.c: New file.
1449 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1450 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1451 configurations.
1452 * configure: Regenerate.
1453
d292a972
JB
14542012-09-27 Joel Brobecker <brobecker@adacore.com>
1455
1456 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1457 Remove commented-out code.
1458
8c3da003
JB
14592012-09-27 Joel Brobecker <brobecker@adacore.com>
1460
1461 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1462 Enable this code for sparc hosts only.
1463
f00482b6
JB
14642012-09-27 Joel Brobecker <brobecker@adacore.com>
1465
1466 * procfs.h (procfs_find_LDT_entry): Add declaration.
1467 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1468 function procfs_find_LDT_entry.
1469
337c776f
JB
14702012-09-27 Joel Brobecker <brobecker@adacore.com>
1471
1472 * procfs.c (proc_get_LDT_entry): Make static.
1473
1a04d88f
JB
14742012-09-27 Joel Brobecker <brobecker@adacore.com>
1475
1476 * procfs.c (proc_find_memory_regions): Fix declaration.
1477
bad43aa5
SP
14782012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1479
1480 * amd64-tdep.c (amd64_return_value): Revert previous change
1481 that used TYPE_LENGTH directly.
1482 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1483 (bfin_store_return_value): Likewise.
1484 * cris-tdep.c (cris_store_return_value): Likewise.
1485 (cris_extract_return_value): Likewise.
1486 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1487 * hppa-tdep.c (hppa64_return_value): Likewise.
1488 * lm32-tdep.c (lm32_store_return_value): Likewise.
1489 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1490 * spu-tdep.c (spu_value_from_register): Likewise.
1491 * vax-tdep.c (vax_return_value): Likewise.
1492
63375b74
SP
14932012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1494
1495 * gdbtypes.c (lookup_array_range_type): Expand parameters
1496 LOW_BOUND and HIGH_BOUND to LONGEST.
1497 (lookup_string_range_type): Likewise.
1498 * gdbtypes.h (lookup_array_range_type): Likewise.
1499 (lookup_string_range_type): Likewise.
1500 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1501 Expand HIGHBOUND to ssize_t.
1502 (value_string): Likewise.
1503 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1504 (value_string): Likewise.
1505
19ca11c5
YQ
15062012-09-27 Yao Qi <yao@codesourcery.com>
1507
1508 PR breakpoints/13898
1509 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1510 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1511 per breakpoint type.
1512
92107356
PM
15132012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1514
1515 * procfs.c: Add gdb_bfd header.
1516 * rs6000-nat.c: Likewise.
1517 * solib-pa64.c: Likewise.
1518 * spu-linux-nat.c: Likewise.
1519 * windows-nat.c: Likewise.
1520
9742094a
TT
15212012-09-26 Tom Tromey <tromey@redhat.com>
1522
1523 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1524
0971de02
TT
15252012-09-26 Tom Tromey <tromey@redhat.com>
1526
1527 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1528 (read_common_block): Handle child DIEs with
1529 DW_AT_data_member_location.
1530 (new_symbol_full): Add special case for common blocks.
1531
4357ac6c
TT
15322012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1533 Tom Tromey <tromey@redhat.com>
1534
1535 * dwarf2read.c (read_common_block): Rewrite.
1536 (new_symbol_full): Handle DW_TAG_common_block.
1537 * f-lang.c (head_common_list, find_common_for_function):
1538 Remove.
1539 * f-lang.h (struct common_entry, struct saved_f77_common,
1540 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1541 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1542 BLANK_COMMON_NAME_LOCAL): Remove.
1543 (struct common_block): New.
1544 * f-valprint.c (list_all_visible_commons): Remove.
1545 (info_common_command_for_block): New function.
1546 (info_common_command): Use it.
1547 * stack.c (iterate_over_block_locals): Special case for
1548 COMMON_BLOCK_DOMAIN.
1549 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1550 constant.
1551 (struct general_symbol_info) <value.common_block>: New field.
1552 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1553
965f07a8
TT
15542012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1555 Tom Tromey <tromey@redhat.com>
1556
1557 * f-lang.c (allocate_saved_bf_node,
1558 allocate_saved_function_node, allocate_saved_f77_common_node,
1559 allocate_common_entry_node, tail_common_list, current_common,
1560 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1561 tmp_bf_ptr, add_common_block, add_common_entry,
1562 find_first_common_named, patch_common_entries,
1563 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1564 global_remote_debug, get_bf_for_fcn, saved_function_list,
1565 saved_function_list_end, clear_function_list, struct saved_fcn,
1566 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1567 SAVED_BF, SAVED_BF_PTR): Remove.
1568 * f-lang.h (tail_common_list, current_common,
1569 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1570 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1571 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1572 real_main_c_value): Remove.
1573 * f-valprint.c (there_is_a_visible_common_named): Remove.
1574
6f380991
AB
15752012-09-26 Andrew Burgess <aburgess@broadcom.com>
1576
1577 * breakpoint.c (update_global_location_list): Ignore previous
1578 duplicate status of a breakpoint when starting a new scan for
1579 duplicate breakpoints.
1580
9ead7ae4 15812012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1582 PR breakpoints/14419
2536b51c
YQ
1583 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1584 support LLVM compiler.
9ead7ae4 1585
8f8a23a2
SP
15862012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1587
1588 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1589 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1590 (bfin_store_return_value): Likewise.
1591 * cris-tdep.c (cris_store_return_value): Likewise.
1592 (cris_extract_return_value): Likewise.
1593 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1594 * hppa-tdep.c (hppa64_return_value): Likewise.
1595 * lm32-tdep.c (lm32_store_return_value): Likewise.
1596 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1597 * spu-tdep.c (spu_value_from_register): Likewise.
1598 * vax-tdep.c (vax_return_value): Likewise.
1599
d7019589
SP
16002012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1601
1602 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1603 parameter LEN to ssize_t.
1604
744a8059
SP
16052012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1606
1607 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1608 variable LEN.
1609 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1610 directly.
1611 (alpha_store_return_value): Likewise.
1612 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1613 (amd64_push_arguments): Likewise.
1614 * ax-gdb.c (gen_trace_static_fields): Likewise.
1615 (gen_traced_pop): Likewise.
1616 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1617 * breakpoint.c (update_watchpoint): Likewise.
1618 * findcmd.c (parse_find_args): Use local variable for type
1619 instead of length.
1620 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1621 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1622 (h8300_store_return_value): Likewise.
1623 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1624 Use i386_darwin_arg_type_alignment directly.
1625 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1626 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1627 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1628 (m68hc11_extract_return_value): Likewise.
1629 * mep-tdep.c (mep_push_dummy_call): Likewise.
1630 * printcmd.c (float_type_from_length): Likewise.
1631 * s390-tdep.c (s390_value_from_register): Likewise.
1632 * stack.c (read_frame_arg): Likewise.
1633 * tracepoint.c (encode_actions_1): Likewise.
1634 * valops.c (value_fetch_lazy): Use local variable for type
1635 instead of length. Use TYPE_LENGTH directly.
1636 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1637
a4b411d6
JB
16382012-09-25 Joel Brobecker <brobecker@adacore.com>
1639
1640 * symtab.c (skip_prologue_sal): Fix typo in comment.
1641
11dba07a
JB
16422012-09-25 Joel Brobecker <brobecker@adacore.com>
1643
1644 * linespec.c (create_sals_line_offset): Fix typo in comment.
1645
318102b9
SP
16462012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1647
1648 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1649 use plongest to print the array size.
1650
b4aa388a
SP
16512012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1652
1653 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1654 * p-valprint.c (pascal_type_print_base): Likewise.
1655
84cebc4a
YQ
16562012-09-22 Yao Qi <yao@codesourcery.com>
1657
1658 * remote.c (remote_get_trace_status): Remove setting default
1659 values of fields of 'ts'.
1660
04e7407c
JK
16612012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 Fix internal error on canonicalization of clang types.
1664 * cp-name-parser.y (operator): New comment at make_operator call for
1665 new, delete, new[] and delete[].
1666 (exp): Use "sizeof ". Add new comment at make_operator call.
1667
9bf4bce9
JK
16682012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1669
1670 Fix disassemble without parameters in tailcall frame.
1671 * cli/cli-cmds.c (disassemble_current_function): Use
1672 get_frame_address_in_block.
1673
1c5b7826
TT
16742012-09-21 Tom Tromey <tromey@redhat.com>
1675
1676 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1677 TYPE_CODE_UNION>: Unify, removing a goto.
1678
62a49610
TT
16792012-09-21 Tom Tromey <tromey@redhat.com>
1680
1681 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1682
2603f7ee
AB
16832012-09-21 Andrew Burgess <aburgess@broadcom.com>
1684
1685 * findvar.c (read_frame_register_value): Mark the result value as
1686 optimized out if any of the input registers have been optimized out.
1687
810849a3
AS
16882012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1689
1690 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1691
0953dec1
SP
16922012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1693
1694 * eval.c (evaluate_subexp_standard): Eliminate single-use
1695 variable LOWER.
1696
82a90ccf
YQ
16972012-09-21 Yao Qi <yao@codesourcery.com>
1698
1699 * mi/mi-interp.c: Declare mi_record_changed.
1700 (mi_interpreter_init): Call observer_attach_record_changed.
1701 (mi_record_changed): New.
1702 * record.c (record_open): Call observer_notify_record_changed.
1703 (cmd_record_stop): Call observer_notify_record_changed.
1704 * NEWS: Mention it.
1705
d7de8e3c
TT
17062012-09-20 Tom Tromey <tromey@redhat.com>
1707
1708 * NEWS: Update.
1709 * python/python.c (finalize_python): New function.
1710 (_initialize_python): Make a final cleanup.
1711
43c7c83d
DE
17122012-09-19 Doug Evans <dje@google.com>
1713
1714 * buildsym.h (param_symbols): Delete, unused.
1715 (context_stack): Delete member "params", unused.
1716 * buildsym.c (push_context): Update.
1717 * dwarf2read.c (read_func_scope): Update.
1718
aa9259cc
TS
17192012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1720
a6521d9a
TS
1721 * sh-tdep.c (sh_register_convert_to_virtual)
1722 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1723 all callers. Just do a memcpy if not the little-endian case.
1724
f92589cb
TS
1725 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1726 set_gdbarch_double_format and set_gdbarch_long_double_format.
1727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1728 set_gdbarch_double_format.
1729 * sh-tdep.c (sh_gdbarch_init): Likewise.
1730
aa9259cc
TS
1731 * NEWS: Document the removal of SH's 'regs' command.
1732 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1733 command.
1734
c1d780c2
SDJ
17352012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1736
1737 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1738 `jump'.
1739
4ae24af0
JB
17402012-09-18 Joel Brobecker <brobecker@adacore.com>
1741
1742 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1743 language when iterating over symbols.
1744
bb25a15c
YQ
17452012-09-18 Yao Qi <yao@codesourcery.com>
1746
1747 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1748 (mi_interpreter_init): Call observer_attach_tsv_created and
1749 observer_attach_tsv_deleted.
1750 (mi_tsv_created, mi_tsv_deleted): New.
1751 * tracepoint.c (delete_trace_state_variable): Call
1752 observer_notify_tsv_deleted.
1753 (trace_variable_command): Call observer_notify_tsv_created.
1754 (delete_trace_variable_command): Call
1755 observer_notify_tsv_deleted.
1756 (create_tsv_from_upload): Call observer_notify_tsv_created.
1757 * NEWS: Mention it.
1758
201b4506
YQ
17592012-09-18 Yao Qi <yao@codesourcery.com>
1760
1761 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1762 if traceframe changed.
1763 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1764 "trace-find".
1765 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1766 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1767 'traceframe_changed'.
1768 (mi_traceframe_changed): New.
1769 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1770 New field.
1771 * NEWS: Mention the new MI notification.
1772
eaeb12db
MW
17732012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1774
1775 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1776
6e3c039e
JK
17772012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1778
1779 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1780 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1781 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1782 Extend code also for PaX support. Convert all gdb_assert to warning
1783 calls.
1784
9a950c7c
JK
17852012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1786
1787 Implement auto-load user conveniences suggested by Doug Evans.
1788 * auto-load.c: Include top.h.
1789 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1790 (_initialize_auto_load): New variable scripts_directory_help. Mention
1791 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1792 scripts-directory. Document in online help one can use also files for
1793 set auto-load safe-path.
1794 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1795 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1796
deec9a9d
SP
17972012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1798
1799 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1800 of LEN.
1801
354ecfd5
SP
18022012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1803
1804 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1805 ELTLEN and use TYPE_LENGTH directly.
1806 (m2_val_print): Likewise.
1807 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1808 variable LEN and use TYPE_LENGTH directly.
1809 (m68k_svr4_store_return_value): Likewise.
1810 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1811 ARGLEN and use TYPE_LENGTH directly.
1812 (mips_o64_push_dummy_call): Likewise.
1813 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1814 variable LENGTH and use TYPE_LENGTH directly.
1815 (s390_function_arg_float): Likewise.
1816 (s390_function_arg_integer): Likewise.
1817 (s390_push_dummy_call): Likewise.
1818 (s390_return_value_convention): Likewise.
1819 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1820 TYPE_LENGTH directly.
1821
6fc1c773
YQ
18222012-09-17 Yao Qi <yao@codesourcery.com>
1823
1824 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1825 Update comment to add_setshow_integer_cmd.
1826 * cli/cli-setshow.c (do_set_command): Handle case
1827 'var_zuinteger_unlimited'.
1828 (do_show_command): Likewise.
1829 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1830 for command 'remotetimeout'.
1831 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1832 to var_integer.
1833 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1834 for command 'set listsize'.
1835
6acef6cd
SP
18362012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1837
1838 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1839 variable LEN.
1840
1ab3b62c
JK
18412012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1842
1843 PR 14119
1844 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1845 (frame_pop): Drop also TAILCALL_FRAME frames.
1846 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1847
acf9414f
JK
18482012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 Pedro Alves <palves@redhat.com>
1850
1851 PR 14548
1852 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1853 function start if we are already at function start. Both for
1854 reverse-next and for reverse-step into function without line number
1855 info.
1856
193facb3
JK
18572012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1858
1859 Code cleanup - rename 'inline' depth to 'artificial' depth.
1860 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1861 frame_id_artificial_p, extend the comment.
1862 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1863 * frame.c (fprint_frame_id): Rename at a user, change debug output
1864 text to "artificial=".
1865 (skip_inlined_frames): Rename to ...
1866 (skip_artificial_frames): ... here. Extend the comment.
1867 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1868 (frame_id_inlined_p): Rename to ...
1869 (frame_id_artificial_p): ... here. Rename at a user.
1870 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1871 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1872 at a user.
1873 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1874 Extend the comment.
1875 (frame_id_inlined_p): Rename to ...
1876 (frame_id_artificial_p): ... here.
1877 * inline-frame.c (inline_frame_this_id): Rename at a user.
1878
42056501
AB
18792012-09-14 Andrew Burgess <aburgess@broadcom.com>
1880
1881 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1882 vector variables using vector_size syntax rather than array
1883 syntax.
1884
84c47588
SP
18852012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1886
1887 * valarith.c (value_concat): Replace unsafe ALLOCA with
1888 XMALLOC/XFREE.
1889
f4045bcb
PA
18902012-09-14 Pedro Alves <palves@redhat.com>
1891
1892 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1893
63b46266
YPK
18942012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1895
1896 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1897 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1898 data-directory as appropriate.
1899
ddd7a8e7
SP
19002012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1901
1902 * printcmd.c (ui_printf): Eliminate single-use variable
1903 PARAM_LEN.
1904
d649a38e
YQ
19052012-09-14 Yao Qi <yao@codesourcery.com>
1906 Pedro Alves <palves@redhat.com>
1907
1908 * valops.c (value_assign): Move observer_notify_target_changed
1909 below to replace reinit_frame_cache.
1910
b9516fa1
YPK
19112012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1912
1913 Refactor Python "gdb" module into a proper Python package, by
1914 introducing a new "_gdb" module for code implemented in C, and
1915 using reload/__import__ instead of exec.
1916 * python/lib/gdb/__init__.py: Import * from _gdb.
1917 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1918 prompt_hook, sys.argv): Moved from finish_python_initialization.
1919 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1920 (packages, auto_load_packages): New list and function replacing
1921 module_dict and auto-loading code, using __file__ instead of
1922 gdb.PYTHONDIR and reload/__import__ instead of exec.
1923 (GdbSetPythonDirectory): Replacing function of the same name
1924 from finish_python_initialization, using reload/__import__ instead
1925 of exec, as well as call auto_load_packages.
1926 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1927 gdb_python_module and not gdb_module.
1928 * python/python-internal.h (gdb_python_module): Declare.
1929 * python/python.c (gdb_python_module): New global.
1930 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1931 (_initialize_python): Rename gdb module to _gdb.
1932 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1933 (finish_python_initialization): Move Python code to
1934 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1935 __main__.
1936
aa0fbdd8
PA
19372012-09-13 Pedro Alves <palves@redhat.com>
1938
1939 * Makefile.in (COMMON_OBS): Add registry.o.
1940 * registry.c: New file.
1941 * registry.h (struct registry_container): Declare.
1942 (registry_data_callback): New typedef.
1943 (struct registry_data, struct registry_data_registration, struct
1944 registry_data_registry): New type.
1945 (register_data_with_cleanup, registry_alloc_data)
1946 (registry_callback_adaptor, registry_clear_data)
1947 (registry_container_free_data, registry_set_data, registry_data):
1948 Declare.
1949 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1950 the new common structures and functions.
1951 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1952 callback typedefs.
1953
42b5c53d
MW
19542012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1955
1956 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1957 there is an error inserting hardware breakpoints and use the
1958 error message from the target.
1959
1960 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1961 Catch this exception and print the error message contained within. Do not
1962 print the default hardware error breakpoint message in this case.
1963
a1b64ce1
DE
19642012-09-12 Doug Evans <dje@google.com>
1965
1966 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1967 cu == NULL.
1968
83a788b8
DE
19692012-09-11 Doug Evans <dje@google.com>
1970
1971 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1972 .gdb_index symbol attributes if there are none.
1973
d9eaeb59
JB
19742012-09-11 Joel Brobecker <brobecker@adacore.com>
1975
1976 * symtab.h (struct minimal_symbol) [has_size]: New field.
1977 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1978 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1979 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1980 minimal symbols if the symbol's size is actually known.
1981 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1982 of msymbol's size field. Add comment.
1983 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1984 SET_MSYMBOL_SIZE to set the minimal symbol size.
1985
a83e9154
JB
19862012-09-11 Joel Brobecker <brobecker@adacore.com>
1987
1988 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1989 minimal_symbol struct object, rather than setting some of its
1990 fields one by one.
1991
350b1b26
AB
19922012-09-11 Andrew Burgess <aburgess@broadcom.com>
1993
1994 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1995 passed_a_ptr flag when displaying typedef types.
1996
2fa15f23
JB
19972012-09-10 Joel Brobecker <brobecker@adacore.com>
1998
1999 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2000 the optimized_out flag is preserved.
2001
5152ff90
AG
20022012-09-10 Anthony Green <green@moxielogic.com>
2003
2004 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2005 prologue changes in GCC.
2006
5b4f6e25
KS
20072012-09-10 Keith Seitz <keiths@redhat.com>
2008
2009 PR gdb/13483
2010 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2011 (BOOL_CONVERSION_BADNESS): ... this.
2012 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2013 (rank_one_type): Allow all boolean conversions
2014 permitted by the standard.
2015
f1070426
TT
20162012-09-06 Tom Tromey <tromey@redhat.com>
2017
2018 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2019 Don't decref py_objfile.
2020
a8db4212
YPK
20212012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2022
2023 Do not enable -lmcheck by default when Python is enabled with
2024 threading support.
2025 * configure.ac: (python_has_threads) New variable, by testing
2026 if WITH_THREAD is defined in Python.h.
2027 Move --enable-lmcheck after --with-python.
2028 Do not enable -lmcheck by default if python_has_threads=yes.
2029 Warn if --enable-lmcheck and python_has_threads=yes.
2030 * configure: Regenerate.
2031
648beb2b
YQ
20322012-08-31 Yao Qi <yao@codesourcery.com>
2033
2034 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2035 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2036 Update some commands.
2037 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2038 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2039 to 1.
2040
ef07a9f7
YQ
20412012-08-31 Yao Qi <yao@codesourcery.com>
2042
2043 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2044
fda395cf
YPK
20452012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2046
2047 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2048
8efd8e78
DE
20492012-08-29 Doug Evans <dje@google.com>
2050
2051 * main.c (print_gdb_help): Remove reference to
2052 --use-deprecated-index-sections.
2053
883b9c6c
YQ
20542012-08-28 Yao Qi <yao@codesourcery.com>
2055
2056 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2057 (init_cmds): Call add_setshow_uinteger_cmd for command
2058 'max-user-call-depth'.
2059 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2060 declaration of 'max_user_call_depth'.
2061 * frame.c (backtrace_limit): Add 'unsigned'.
2062 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2063 'limit'.
2064 * remote.c (remoteaddresssize): Add 'unsigned'.
2065 (remote_address_masked): Change local var 'address_size' to
2066 'unsigned'.
2067 (_initialize_remote): Call add_setshow_uinteger_cmd for
2068 'remoteaddresssize'.
2069 * top.c (history_size): Add 'unsigned'.
2070 (show_commands): Change local variables to 'unsigned'.
2071 (set_history_size_command): Don't check history_size is negative.
2072 Adjust the condition to call unstifle_history and set history_size
2073 to UNIT_MAX.
2074
1292279a
PA
20752012-08-28 Pedro Alves <palves@redhat.com>
2076
2077 PR gdb/14428
2078
2079 * infcmd.c (default_print_one_register_info): New, factored out
2080 from default_print_registers_info.
2081 (default_print_registers_info): Use it. Mark value unavailable if
2082 necessary.
2083 (registers_info): Print user registers with
2084 default_print_one_register_info.
2085
f629cd75
L
20862010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 PR tui/14486
2089 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2090 is not NULL before referencing it.
2091
1c8cdcb1
JK
20922012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2093
2094 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2095 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2096 original PC for it.
2097
e9687799
JK
20982012-08-27 Eli Zaretskii <eliz@gnu.org>
2099 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 * auto-load.c (auto_load_objfile_script): Rename to ...
2102 (auto_load_objfile_script_1): ... here, change variable realname to
2103 parameter realname, document it, add return value, add variable retval.
2104 (auto_load_objfile_script): New function.
2105
7afa1642
JK
21062012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2109 followed by a whitespace.
2110
dc7650b8
JK
21112012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
28e66c70 2113 PR gdb/14494.
dc7650b8
JK
2114 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2115 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2116 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2117 here.
2118
1591a1e8
PA
21192012-08-27 Wei-cheng Wang <cole945@gmail.com>
2120
2121 * memattr.c (create_mem_region): Fix memory region overlapping
2122 checking.
2123
ecfb0d68
SP
21242012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2125
2126 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2127 with xmalloc/cleanup.
2128 * mt-tdep.c (mt_push_dummy_call): Likewise.
2129 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2130 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2131
8c56c1b9
YQ
21322012-08-24 Yao Qi <yao@codesourcery.com>
2133
2134 * jv-exp.y (push_expression_name): Add "." at the end of error
2135 message.
2136
e3480f4a
YPK
21372012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2138
2139 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2140 * python/python.c (_initialize_python): Update documentation.
2141
dfbd5e7b
PA
21422012-08-23 Pedro Alves <palves@redhat.com>
2143
2144 * infrun.c (_initialize_infrun) <handle command help text>:
2145 Mention that multiple signals are supported.
2146
2edda2ff
PA
21472012-08-23 Pedro Alves <palves@redhat.com>
2148
2149 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2150 string.
2151
8d735b87
YQ
21522012-08-23 Yao Qi <yao@codesourcery.com>
2153
2154 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2155 (tfind_1): Don't call registers_changed, set_traceframe_num,
2156 and clear_traceframe_info.
2157 Call set_current_traceframe.
2158 (set_current_traceframe): call set_traceframe_num.
2159
c5d9b215
SDJ
21602012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2161
2162 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2163 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2164
037bbc8e
YPK
21652012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2166
2167 Enable readline in Python in a GDB-specific way and block the
2168 standard Python readline module to prevent conflicts with GDB.
2169 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2170 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2171 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2172 * python/py-gdb-readline.c: New file.
2173 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2174 prototype.
2175 * python/python.c (_initialize_python): Call
2176 gdbpy_initialize_gdb_readline.
2177
406b1477
KS
21782012-08-22 Keith Seitz <keiths@redhat.com>
2179
2180 * defs.h: Include build-gnulib/config.h
2181
6ca1b147
JM
21822012-08-22 Joseph Myers <joseph@codesourcery.com>
2183
2184 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2185 and blx pc.
2186
8315665e
YPK
21872012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2188
2189 Add a new "python-interactive" command that starts a standard
2190 Python interactive prompt with "pi" as alias, and add "py" as
2191 an alias to "python".
2192 * NEWS: Mention the new commands.
8315665e
YPK
2193 * python/python.c (eval_python_command): New function.
2194 (python_interactive_command): For "python-interactive" with
2195 arguments, call eval_python_command. For "python-interactive"
2196 without arguments, call PyRun_InteractiveLoop.
2197 (_initialize_python): Add "python-interactive" command with
2198 "pi" as alias, and add "py" as an alias to "python".
2199
522002f9
TT
22002012-08-22 Tom Tromey <tromey@redhat.com>
2201
2202 * defs.h (quit_flag): Don't declare.
2203 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2204 (QUIT): Use new functions.
2205 * event-top.c (command_handler): Use clear_quit_flag.
2206 (handle_sigint): Use set_quit_flag.
2207 (async_request_quit): Use check_quit_flag. Don't check
2208 immediate_quit.
2209 * exceptions.c (throw_exception): Use clear_quit_flag.
2210 * main.c (captured_main): Use clear_quit_flag.
2211 * python/python.c (clear_quit_flag, set_quit_flag)
2212 (check_quit_flag): New functions.
2213 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2214 clear_quit_flag.
2215 * remote.c (remote_wait_as): Use check_quit_flag,
2216 clear_quit_flag.
2217 (remote_start_remote): Call QUIT.
2218 * symfile.c (load_progress): Use check_quit_flag.
2219 * top.c (command_loop): Use clear_quit_flag.
2220 (command_line_input): Call QUIT.
2221 * utils.c (quit_flag): Conditionally define.
2222 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2223 functions.
2224 (prompt_for_continue): Call QUIT. Use quit, not
2225 async_request_quit.
2226 * remote-mips.c (mips_expect_timeout): Call QUIT.
2227 * monitor.c (monitor_expect): Call QUIT.
2228
b583003e
TT
22292012-08-22 Tom Tromey <tromey@redhat.com>
2230
2231 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2232 (async_init_signals): Update.
2233 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2234 (SIGWINCH_HANDLER_BODY): Remove.
2235
e1507e95
TT
22362012-08-22 Tom Tromey <tromey@redhat.com>
2237
2238 * jit.c (jit_object_close_impl): Don't malloc the objfile
2239 name.
2240 * objfiles.c (allocate_objfile): Don't malloc the objfile
2241 name.
2242 (free_objfile): Don't free the objfile name.
2243 * objfiles.h (struct objfile) <name>: Update comment.
2244 * symfile.c (reread_symbols): Fix reference counting. Don't
2245 malloc objfile name.
2246
1c00ec6b
TT
22472012-08-22 Tom Tromey <tromey@redhat.com>
2248
2249 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2251 (symfile_bfd_open): Likewise.
2252 (generic_load): Likewise.
2253 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2254 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2255 gdb_bfd_open.
2256 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2257 Use gdb_bfd_open.
2258 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2259 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2260 (pmon_load_fast): Likewise.
2261 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2262 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2263 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2264 (macho_check_dsym): Likewise.
2265 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2266 (m32r_upload_command): Likewise.
2267 * gdb_bfd.h (gdb_bfd_cache): Declare.
2268 * gdb_bfd.c (struct gdb_bfd_data): New.
2269 (gdb_bfd_cache): New global.
2270 (struct gdb_bfd_cache_search): New.
2271 (hash_bfd): New function.
2272 (eq_bfd): Likewise.
2273 (gdb_bfd_open): Likewise.
2274 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2275 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2276 gdb_bfd_data.
2277 * exec.c (exec_file_attach): Use gdb_bfd_open.
2278 * dsrec.c (load_srec): Use gdb_bfd_open.
2279
6532ff36
TT
22802012-08-22 Tom Tromey <tromey@redhat.com>
2281
2282 * dwarf2read.c (macro_start_file): Update.
2283 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2284 (free_objfile_per_bfd_storage): Destroy macro_cache.
2285 (allocate_objfile, free_objfile): Update.
2286 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2287 New field.
2288 (struct objfile) <macro_cache>: Remove.
2289 * symfile.c (reread_symbols): Update.
2290 * symmisc.c (print_symbol_bcache_statistics): Update.
2291 (print_objfile_statistics): Update.
2292
706e3705
TT
22932012-08-22 Tom Tromey <tromey@redhat.com>
2294
2295 * elfread.c (elf_symtab_read): Update.
2296 * objfiles.c (objfiles_bfd_data): New global.
2297 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2298 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2299 (allocate_objfile, free_objfile): Update.
2300 (_initialize_objfiles): Initialize objfiles_bfd_data.
2301 * objfiles.h (struct objfile_per_bfd_storage): New.
2302 (struct objfile) <per_bfd>: New field.
2303 <filename_cache>: Remove.
2304 (set_objfile_per_bfd): Declare.
2305 * symfile.c (reread_symbols): Update. Call
2306 set_objfile_per_bfd.
2307 (allocate_symtab): Update.
2308 * symmisc.c (print_symbol_bcache_statistics): Update.
2309 (print_objfile_statistics): Print the size of the BFD obstack.
2310
e992eda4
TT
23112012-08-22 Tom Tromey <tromey@redhat.com>
2312
2313 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2314 * gdb_bfd.c: Use DEFINE_REGISTRY.
2315 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2316 (gdb_bfd_ref): Call bfd_alloc_data.
2317 (gdb_bfd_unref): Call bfd_free_data.
2318
6b81941e
TT
23192012-08-22 Tom Tromey <tromey@redhat.com>
2320
2321 * registry.h (struct registry_fields): New.
2322 (REGISTRY_FIELDS): Redefine.
2323 (REGISTRY_ACCESS_FIELD): New macro.
2324 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2325 functions.
2326
8e260fc0
TT
23272012-08-22 Tom Tromey <tromey@redhat.com>
2328
2329 * auto-load.c (_initialize_auto_load): Update.
2330 * solib-svr4.c (_initialize_svr4_solib): Update
2331 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2332 * solib-darwin.c (_initialize_darwin_solib): Update.
2333 * registry.h: New file.
2334 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2335 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2336 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2337 (register_program_space_data_with_cleanup)
2338 (register_program_space_data, program_space_alloc_data)
2339 (clear_program_space_data, set_program_space_data)
2340 (program_space_data): Don't declare.
2341 * progspace.c: Use DEFINE_REGISTRY.
2342 (struct program_space_data, struct
2343 program_space_data_registration, struct
2344 program_space_data_registry, program_space_data_registry)
2345 (register_program_space_data_with_cleanup)
2346 (register_program_space_data, program_space_alloc_data)
2347 (program_space_free_data, clear_program_space_data)
2348 (set_program_space_data, program_space_data): Remove.
2349 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2350 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2351 (register_objfile_data_with_cleanup, register_objfile_data)
2352 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2353 declare.
2354 * objfiles.c: Use DEFINE_REGISTRY.
2355 (struct objfile_data, struct objfile_data_registration, struct
2356 objfile_data_registry, objfile_data_registry)
2357 (register_objfile_data_with_cleanup, register_objfile_data)
2358 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2359 (set_objfile_data, objfile_data): Remove.
2360 (_initialize_objfiles): Update.
2361 * jit.c (_initialize_jit): Update.
2362 * inflow.c (_initialize_inflow): Update.
2363 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2364 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2365 (register_inferior_data_with_cleanup, register_inferior_data)
2366 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2367 declare.
2368 * inferior.c: Use DEFINE_REGISTRY.
2369 (struct inferior_data, struct inferior_data_registration, struct
2370 inferior_data_registry, inferior_data_registry)
2371 (register_inferior_data_with_cleanup, register_inferior_data)
2372 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2373 (set_inferior_data, inferior_data): Remove.
2374 * auxv.c (_initialize_auxv): Update.
2375 * ada-lang.c (_initialize_ada_language): Update.
2376 * breakpoint.c (_initialize_breakpoint): Update.
2377 * i386-nat.c (i386_use_watchpoints): Update.
2378
ed9eebaf
TT
23792012-08-22 Tom Tromey <tromey@redhat.com>
2380
2381 * exec.c (exec_close, exec_file_attach): Update.
2382 (add_to_section_table): Initialize 'key' field.
2383 (add_target_sections, remove_target_sections): Add 'key' argument.
2384 * exec.h (add_target_sections, remove_target_sections): Add
2385 'key' argument.
2386 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2387 (reload_shared_libraries_1): Update.
2388 * target.h (struct target_section) <key>: New field.
2389
2f2e97fa
TT
23902012-08-22 Tom Tromey <tromey@redhat.com>
2391
2392 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2393
b3dbbd6f
PM
23942012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2395
2396 * symfile.c (allocate_symtab): Use host_address_to_string
2397 function instead of cast of pointer to long which is not
2398 compatible with x86_64-w64-mingw32 build.
2399
f94363d7
AP
24002012-08-19 Andrew Pinski <apinski@cavium.com>
2401
2402 * mips-tdep.c (is_octeon): New function.
2403 (is_octeon_bbit_op): New function.
2404 (mips32_next_pc): Handle Octeon's bbit instructions.
2405 (mips32_instruction_has_delay_slot): Likewise.
2406
78a59c2f
AP
24072012-08-19 Andrew Pinski <apinski@cavium.com>
2408
2409 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2410 before the function.
2411
4f5bcb50
AP
24122012-08-19 Andrew Pinski <apinski@cavium.com>
2413
2414 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2415
e5afdbd7
KS
24162012-08-19 Keith Seitz <keiths@redhat.com>
2417
2418 PR c++/14365
2419 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2420 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2421
13c9750e
EZ
24222012-08-18 Eli Zaretskii <eliz@gnu.org>
2423
2424 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2425 The typo broke "make TAGS".
2426
db761810 24272012-08-17 Joel Brobecker <brobecker@adacore.com>
2428
2429 GDB 7.5 released.
2430
a451cb65
KS
24312012-08-17 Keith Seitz <keiths@redhat.com>
2432
2433 PR c++/13356
2434 * gdbtypes.c (strict_type_checking): New variable.
2435 (show_strict_type_checking): New function.
2436 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2437 if strict type checking is disabled.
2438 (_initialize_gdbtypes): Add "check type" subcommand.
2439 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2440
24412012-08-17 Keith Seitz <keiths@redhat.com>
2442
2443 * language.h (type_mode): Remove.
2444 (type_check): Remove.
2445 (struct language_defn): Remove la_type_check.
2446 (STRICT_TYPE): Remove unused macro.
2447 (type_error): Remove.
2448 * language.c (set_type_range_case): Renamed to ...
2449 (set_range_case): ... this. Update all callers.
2450 Remove type_mode/type_check.
2451 (type_mode): Remove.
2452 (type_check): Remove.
2453 (show_type_command): Remove.
2454 (set_type_command): Remove.
2455 (language_info): Remove type checking output.
2456 (type_error): Remove unused function.
2457 (range_error): Update comment.
2458 (unknown_language_defn): Remove la_type_check.
2459 (auto_language_defn): Likewise.
2460 (local_language_defn): Likewise.
2461 (_initialize_language): Remove "check type" subcommand.
2462 * ada-lang.c (ada_language_defn): Remove la_type_check.
2463 * c-lang.c (c_language_defn): Likewise.
2464 (cplus_language_defn): Likewise.
2465 (asm_language_defn): Likewise.
2466 (minimal_language_defn): Likewise.
2467 * d-lang.c (d_language_defn): Likewise.
2468 * f-lang.c (f_language_defn): Likewise.
2469 * go-lang.c (go_language_defn): Likewise.
2470 * jv-lang.c (java_language_defn): Likewise.
2471 * m2-lang.c (m2_language_defn): Likewise.
2472 * objc-lang.c (objc_language_defn): Likewise.
2473 * opencl-lang.c (opencl_language_defn): Likewise.
2474 * p-lang.c (pascal_language_defn): Likewise.
2475
dbf6a605
MF
24762012-08-16 Mike Frysinger <vapier@gentoo.org>
2477
2478 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2479
973e3cf7
JB
24802012-08-16 Joel Brobecker <brobecker@adacore.com>
2481
2482 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2483 New function.
2484 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2485 using the regache. Use ia64_hpux_get_register_from_save_state_t
2486 to access the bsp and bspstore registers if not.
2487
d80ee84f
JB
24882012-08-16 Joel Brobecker <brobecker@adacore.com>
2489
2490 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2491 * breakpoint.c (detach_breakpoints): Change pid parameter into
2492 a ptid. Adjust code accordingly.
2493 * infrun.c (handle_inferior_event): Delete variable child_pid.
2494 Update call to detach_breakpoints to pass the child ptid for
2495 fork events.
2496 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2497 assert that inferior_ptid's lwp is zero.
2498 (linux_handle_extended_wait): Update call to detach_breakpoints.
2499 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2500 detach_breakpoints.
2501
2dcc6086
JB
25022012-08-16 Joel Brobecker <brobecker@adacore.com>
2503
2504 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2505 parent, only call detach_breakpoints if tts.tts_event ==
2506 TTEVT_VFORK.
2507
0c92d8c1
JB
25082012-08-16 Joel Brobecker <brobecker@adacore.com>
2509
2510 * dwarf2-frame.c (dwarf2_frame_cache): Use
2511 get_frame_address_in_block instead of get_frame_pc as
2512 the bound for executing the frame's FDE.
2513
6b1755ce
YQ
25142012-08-16 Yao Qi <yao@codesourcery.com>
2515
2516 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2517 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2518 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2519 (c_type_print_varspec_suffix): Likewise.
2520 * eval.c (evaluate_subexp_standard): Likewise.
2521 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2522 (f_type_print_varspec_suffix): Likewise.
2523 * gdbtypes.c (is_scalar_type): Likewise.
2524 (recursive_dump_type): Likewise.
2525 * infcall.c (value_arg_coerce): Likewise.
2526 * m2-valprint.c (m2_val_print): Likewise.
2527 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2528 (pascal_type_print_varspec_suffix): Likewise.
2529 (pascal_type_print_base): Likewise.
2530 * p-valprint.c (pascal_val_print): Likewise.
2531 (pascal_val_print): Likewise.
2532 * valops.c (value_slice): Likewise.
2533 * valprint.c (scalar_type_p): Likewise.
2534 * valarith.c (value_bitstring_subscript): Remove.
2535 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2536 Remove comment on TYPE_CODE_BITSTRING.
2537
2538 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2539 TYPE_CODE_BITSTRING.
2540
2541 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2542 slot 0.
2543
8acc4065
YQ
25442012-08-16 Yao Qi <yao@codesourcery.com>
2545
2546 * tracepoint.c (trace_find_none_command): Remove.
2547 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2548
8128fd8e
YQ
25492012-08-16 Yao Qi <yao@codesourcery.com>
2550
2551 * remote.c (handle_notification): Remove parameter 'length'.
2552 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2553
2873700e
KS
25542012-08-15 Keith Seitz <keiths@redhat.com>
2555
2556 * gdbtypes.c (opaque_type_resolution): Make static.
2557 Add missing comment.
2558 (overload_debug): Add missing comment.
2559 (show_opaque_type_resolution): Likewise.
2560 (show_overload_debug): Likewise.
2561 (print_bit_vector): Remove unnecessary forward declaration.
2562 (print_arg_types): Likewise.
2563 (dump_fn_fieldlists): Likewise.
2564 (print_cplus_stuff): Likewise.
2565
b82d08cd
TT
25662012-08-15 Tom Tromey <tromey@redhat.com>
2567
2568 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2569 (gdb_bfd_ref): Initialize new field.
2570 (gdb_bfd_unref): Unref the archive BFD.
2571 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2572 parent archive.
2573
db6573d6
TT
25742012-08-15 Tom Tromey <tromey@redhat.com>
2575
2576 PR python/14387:
2577 * python/py-bpevent.c (create_breakpoint_event_object): Update
2578 comment.
2579 * python/py-event.c (evpy_add_attribute): Update comment.
2580 * python/py-exitedevent.c (create_exited_event_object): Fix
2581 reference counting and error handling.
2582 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2583 Fix reference counting.
2584 * python/py-signalevent.c (create_signal_event_object): Fix
2585 reference counting and error handling.
2586 * python/py-stopevent.c (emit_stop_event): Fix reference
2587 counting.
2588 * python/py-threadevent.c (get_event_thread): Return a
2589 borrowed reference.
2590 * python/py-type.c (convert_field): Fix reference counting.
2591
a036ba48
TT
25922012-08-15 Tom Tromey <tromey@redhat.com>
2593
2594 * dwarf2read.c (dwarf_decode_macro_bytes)
2595 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2596 as hash key.
2597
486c7739
MF
25982012-08-14 Mike Frysinger <vapier@gentoo.org>
2599
2600 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2601 stepi, nexti, finish, next, step, jump, and continue commands.
2602 * infrun.c (_initialize_infrun): Update help text for the handle
2603 command.
2604
4cf93a03
DE
26052012-08-14 Doug Evans <dje@google.com>
2606
70b099cf
DE
2607 * gdbtypes.c (struct extra): Delete, unused.
2608
5212577a
DE
2609 * gdbtypes.c: Whitespace cleanup.
2610 (address_space_name_to_int): Remove "extern" from definition.
2611 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2612
4cf93a03
DE
2613 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2614 TYPE_POINTER_TYPE (type).
2615
3756ef7e
GB
26162012-08-14 Gary Benson <gbenson@redhat.com>
2617
2618 * solib-svr4.c (svr4_free_library_list): Use free_so.
2619
40d72643
MF
26202012-08-13 Mike Frysinger <vapier@gentoo.org>
2621
2622 * .gitignore: Add go-exp.c.
2623
f47f77df
DE
26242012-08-13 Doug Evans <dje@google.com>
2625
2626 * value.c (show_convenience): Tweak comment.
2627 (_initialize_values): Mention convenience functions in the help text
2628 for "show convenience".
2629
7507c54a
YQ
26302012-08-13 Yao Qi <yao@codesourcery.com>
2631
2632 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2633 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2634 TERNOP_SLICE_COUNT.
2635 * eval.c (evaluate_subexp_standard): Likewise.
2636 * expprint.c (print_subexp_standard): Likewise.
2637 (dump_subexp_body_standard): Likewise.
2638 * parse.c (operator_length_standard): Likewise.
2639
5cad9736
YQ
26402012-08-13 Yao Qi <yao@codesourcery.com>
2641
2642 * std-operator.def: Remove OP_BITSTRING.
2643 * breakpoint.c (watchpoint_exp_is_const): Update.
2644 * eval.c (evaluate_subexp_standard): Remove handling to
2645 OP_BITSTRING.
2646 * expprint.c (print_subexp_standard): Likewise.
2647 (dump_subexp_body_standard): Likewise.
2648 * parse.c (operator_length_standard): Likewise.
2649 * valops.c (value_bitstring): Remove.
2650 * value.h: Remove the declaration of 'value_bitstring'.
2651
bad7670a
SDJ
26522012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2653
2654 * linespec.c (find_methods): Remove unused variables `i1' and
2655 `name_len'.
2656 (decode_line_full): Likewise for `arg_start'.
2657
d9dce7fa
SDJ
26582012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2659
2660 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2661 (zlib_decompress_section): Likewise for `section_data'.
2662 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2663
a72c3253
DE
26642012-08-10 Doug Evans <dje@google.com>
2665
2666 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2667 * NEWS: Document them.
2668 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2669 function/strfns.py.
2670 * python/py-type.c (typy_array_1): New function.
2671 (typy_array): Call it.
2672 (typy_vector): New function.
2673 (type_object_methods): Add "vector".
2674 * python/lib/gdb/function/__init__.py: New file.
2675 * python/lib/gdb/function/strfns.py: New file.
2676
200bc880
SP
26772012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2678
2679 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2680 for TYPE_FIELD_BITPOS.
2681 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2682
de0bea00
MF
26832012-08-10 Mike Frysinger <vapier@gentoo.org>
2684
2685 PR cli/10436:
2686 * common/vec.h (VEC_merge): Define.
2687 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2688 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2689 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2690 * completer.c: Include gdb_signals.h.
2691 (signal_completer): Define.
2692 * completer.h (signal_completer): Add prototype.
2693 * infcmd.c (_initialize_infcmd): Assign the command
2694 completer for "signal" to handle_completer.
2695 * infrun.c: Include completer.h.
2696 (handle_completer): Define.
2697 (_initialize_infrun): Declare a new local variable c. Store the
2698 result of add_com("handle") to it. Assign the command
2699 completer for "handle" to handle_completer.
2700
5b9afe8a
YQ
27012012-08-09 Yao Qi <yao@codesourcery.com>
2702
2703 * cli/cli-decode.c (set_cmd_prefix): New.
2704 (lookup_cmd_for_prefixlist): New.
2705 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2706 of each cmd_list_element in *prefixlist.
2707 (add_setshow_cmd_full): set_cmd_prefix.
2708 (add_alias_cmd): Likewise.
2709 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2710 Declare 'auto_boolean_enums'.
2711 * cli/cli-setshow.c: Include "observer.h".
2712 (notify_command_param_changed_p): New.
2713 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2714 Remove 'static'.
2715 (do_setshow_command): Split it to ...
2716 (do_set_command, do_show_command): ... them. New.
2717 (do_set_command): Call observer_notify_command_param_changed if
2718 notify_command_param_changed_p returns true.
2719 (cmd_show_list): Caller update.
2720 * auto-load.c (set_auto_load_cmd): Likewise.
2721 * remote.c (show_remote_cmd): Likewise.
2722 * cli/cli-setshow.h: Update declarations.
2723 * top.c (execute_command): Call do_set_command and do_show_command.
2724
2725 * NEWS: Mention new MI notification.
2726 * mi/mi-interp.c: Declare mi_command_param_changed.
2727 (mi_interpreter_init): Attach mi_command_param_changed to
2728 observer command_param_changed.
2729 (mi_command_param_changed): New.
2730 Remove mi_suppress_breakpoint_notifications.
2731 Define global variable mi_suppress_notification.
2732 (mi_breakpoint_created): Update.
2733 (mi_breakpoint_deleted): Likewise.
2734 (mi_breakpoint_modified): Likewise.
2735 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2736 'gdb-set' and set mi_suppress_notification.
2737 * mi/mi-main.h: (mi_suppress_notification): New struct.
2738
1969df89
JK
27392012-08-09 Andreas Tobler <andreast@fgznet.ch>
2740 Jan Kratochvil <jan.kratochvil@redhat.com>
2741
2742 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2743
8bfd80db
YQ
27442012-08-09 Yao Qi <yao@codesourcery.com>
2745
2746 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2747 (skiplist): Move it to skip.c.
2748 (init_cmd_lists): Remove code setting enablebreaklist and
2749 skiplist to NULL.
2750 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2751 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2752 skiplist.
2753 * gdbcmd.h: Likewise.
2754 * skip.c (_initialize_step_skip): Move 'skiplist' from
2755 cli/cli-cmds.c.
2756
28578e6b
YQ
27572012-08-09 Yao Qi <yao@codesourcery.com>
2758
2759 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2760 * gnu-nat.c, symfile.c: Likewise.
2761
260c0b2a
DE
27622012-08-08 Aaron Gamble <agamble@google.com>
2763
2764 * utils.c (prompt_for_continue_wait_time): New static global.
2765 (make_command_stats_cleanup): Initialize it.
2766 (report_command_stats): Subtract time waiting for user.
2767 (prompt_for_continue): Track time waiting for user.
2768 (defaulted_query): Track time waiting for user.
2769
4f485ebc
DE
27702012-08-08 Doug Evans <dje@google.com>
2771
2772 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2773 UNOP_MEMVAL_TYPE.
2774 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2775 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2776 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2777 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2778 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2779 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2780 elt.
2781 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2782 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2783 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2784 (dump_prefix_expression): Handle OP_TYPE.
2785
2acf2b39
KS
27862012-08-08 Keith Seitz <keiths@redhat.com>
2787
2788 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2789 addr_start.
2790
e6712ff1
DE
27912012-08-08 Doug Evans <dje@google.com>
2792
2793 * linux-thread-db.c: #include "gdb_vecs.h".
2794 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2795 updated.
2796 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2797 (thread_db_load_search): Use a vector to iterate over path elements.
2798 Handle text appearing after "$pdir".
2799
2800 * gdb_string.h: Moved to ...
2801 * common/gdb_string.h: ... here.
2802 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2803 gdb_string.h and gdb_assert.h.
2804
ab854e54
YQ
28052012-08-08 Yao Qi <yao@codesourcery.com>
2806
2807 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2808 (tic6x_value_to_register): Likewise.
2809 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2810 and set_gdbarch_value_to_register.
2811
4f69f4c2
JK
28122012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 Jean-Marc Saffroy <saffroy@gmail.com>
2814
2815 PR 11804
2816 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2817 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2818 * gcore.c (gcore_create_callback): New function comment. Add modified
2819 parameter. Only write modified regions. Set SEC_READONLY exactly
2820 according to MODIFIED.
2821 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2822 the passed modified value to FUNC.
2823 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2824 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2825 first. New variables modified and has_anonymous. Parse the lines of
2826 smaps file. Add the passed MODIFIED value to FUNC.
2827 * procfs.c (find_memory_regions_callback): Add the passed modified
2828 value.
2829
78ac5f83
TT
28302012-08-06 Tom Tromey <tromey@redhat.com>
2831
2832 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2833 (dwarf2_frame_cache): Use it.
2834 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2835 cache initialization constraint.
2836
2c12abee
TT
28372012-08-06 Tom Tromey <tromey@redhat.com>
2838
2839 PR python/14386:
2840 * varobj.c (update_dynamic_varobj_children): Don't call
2841 PyIter_Check.
2842
4979d7f0
TT
28432012-08-06 Tom Tromey <tromey@redhat.com>
2844
2845 PR cli/14392:
2846 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2847
f3c8a52a
JK
28482012-08-06 Nathaniel Flath <flat0103@gmail.com>
2849
2850 * NEWS: New entry for 'cd' default parameters.
2851 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2852
5a1cf4d6
TT
28532012-08-03 Tom Tromey <tromey@redhat.com>
2854
2855 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2856 return.
2857
7c3270ae
UW
28582012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2859
2860 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2861 to attempting lseek/write.
2862 (inf_child_fileio_pread): Likewise for pread.
2863
ccce17b0
YQ
28642012-08-02 Yao Qi <yao@codesourcery.com>
2865
2866 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2867 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2868 add_setshow_zinteger_cmd.
2869 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2870 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2871 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2872 instead of add_setshow_zinteger_cmd.
2873 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2874 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2875 instead of add_setshow_zinteger_cmd.
2876 * frame.c (frame_debug): Add 'unsigned'.
2877 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2878 add_setshow_zinteger_cmd.
2879 * frame.h: Update the declaration of 'frame_debug'.
2880 * gdbtypes.c (overload_debug): Add 'unsigned'.
2881 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2882 add_setshow_zinteger_cmd.
2883 * inferior.h: Update declaration of 'debug_infrun'.
2884 * infrun.c (debug_infrun): Add 'unsigned'.
2885 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2886 add_setshow_zinteger_cmd.
2887 * jit.c (jit_debug): Add 'unsigned'.
2888 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2889 add_setshow_zinteger_cmd.
2890 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2891 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2892 instead of add_setshow_zinteger_cmd.
2893 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2894 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2895 add_setshow_zinteger_cmd.
2896 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2897 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2898 instead of add_setshow_zinteger_cmd.
2899 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2900 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2901 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2902 intead of add_setshow_zinteger_cmd.
2903 * mips-tdep.c (mips_debug): Add 'unsigned'.
2904 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2905 instead of add_setshow_zinteger_cmd.
2906 * monitor.c (monitor_debug): Add 'unsigned'.
2907 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2908 add_setshow_zinteger_cmd.
2909 * observer.c (observer_debug): Add 'unsigned'.
2910 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2911 add_setshow_zinteger_cmd.
2912 * parse.c (expressiondebug): Add 'unsigned'.
2913 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2914 add_setshow_zinteger_cmd.
2915 * record.c (record_debug): Add 'unsigned'.
2916 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2917 add_setshow_zinteger_cmd.
2918 * record.h: Update the declaration of 'record_debug'.
2919 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2920 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2921 add_setshow_zinteger_cmd.
2922 * serial.c (global_serial_debug_p): Add 'unsigned'.
2923 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2924 add_setshow_zinteger_cmd.
2925 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2926 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2927 add_setshow_zinteger_cmd.
2928 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2929 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2930 add_setshow_zinteger_cmd.
2931 * target.c (targetdebug): Add 'unsigned'.
2932 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2933 add_setshow_zinteger_cmd.
2934 * valops.c (overload_debug): Add 'unsigned'.
2935 * varobj.c (varobjdebug): Add 'unsigned'.
2936 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2937 add_setshow_zinteger_cmd.
2938 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2939 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2940 instead of add_setshow_zinteger_cmd.
2941
2942 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2943 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2944 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2945 instead of add_setshow_zinteger_cmd.
2946 * gdbarch.c, gdbarch.h: Re-generated.
2947
95b07c96
YQ
29482012-08-02 Yao Qi <yao@codesourcery.com>
2949
2950 * nto-tdep.c: Don't include cli/cli-decode.h and
2951 cli/cli-cmds.h.
2952 (_initialize_nto_tdep): Remove.
2953 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2954 Remove field.
2955 Remove macro nto_internal_debugging.
2956
57295b0b
RH
29572012-08-01 Richard Henderson <rth@redhat.com>
2958
2959 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2960 (mep-*-*) [gdb_target_obs]: Likewise.
2961
f782ad9b
AS
29622012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2963
2964 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2965 linux_get_siginfo_type.
2966
a14dd77e
JK
29672012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2968
2969 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2970 AT_ENTRY_POINT.
2971 (call_function_by_hand) <ON_STACK>: Call write_memory with
2972 gdbarch_breakpoint_from_pc, if possible.
2973 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2974 here.
2975
1467929f
YQ
29762012-07-31 Yao Qi <yao@codesourcery.com>
2977
2978 * tracepoint.c: Add 'static' for some variables.
2979
70976b65
YQ
29802012-07-31 Yao Qi <yao@codesourcery.com>
2981
2982 * go32-nat.c: Declare _initialize_go32_nat.
2983 * ser-go32.c: Declare _initialize_ser_dos.
2984 * top.c (do_chdir_cleanup): Add 'static'.
2985
eff9c3e6
KS
29862012-07-30 Keith Seitz <keiths@redhat.com>
2987
2988 * linespec.c (linespec_lex_number): A number followed
2989 by quotes is a valid number, too.
2990
728400d7
TT
29912012-07-30 Tom Tromey <tromey@redhat.com>
2992
2993 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2994
fcf303ab
UW
29952012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2996
2997 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2998 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2999
4e969b4f
AB
30002012-07-30 Andrew Burgess <aburgess@broadcom.com>
3001
3002 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3003 invalid or reevaluated to prevent prevent references to possibly
3004 delete'd type objects being left in the varobj.
3005
c4bfde41
JK
30062012-07-27 Tom Tromey <tromey@redhat.com>
3007 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 * copying.awk: Print buffer-read-only and vi ro markers.
3010 * copying.c: Rebuild.
3011 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3012 * gdbarch.c, gdbarch.h: Rebuild.
3013 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3014 buffer-read-only and vi ro markers.
3015 * features/arm-with-iwmmxt.c: Rebuild.
3016 * features/arm-with-m-fpa-layout.c: Rebuild.
3017 * features/arm-with-m-vfp-d16.c: Rebuild.
3018 * features/arm-with-m.c: Rebuild.
3019 * features/arm-with-neon.c: Rebuild.
3020 * features/arm-with-vfpv2.c: Rebuild.
3021 * features/arm-with-vfpv3.c: Rebuild.
3022 * features/i386/amd64-avx-linux.c: Rebuild.
3023 * features/i386/amd64-avx.c: Rebuild.
3024 * features/i386/amd64-linux.c: Rebuild.
3025 * features/i386/amd64.c: Rebuild.
3026 * features/i386/i386-avx-linux.c: Rebuild.
3027 * features/i386/i386-avx.c: Rebuild.
3028 * features/i386/i386-linux.c: Rebuild.
3029 * features/i386/i386-mmx-linux.c: Rebuild.
3030 * features/i386/i386-mmx.c: Rebuild.
3031 * features/i386/i386.c: Rebuild.
3032 * features/i386/x32-avx-linux.c: Rebuild.
3033 * features/i386/x32-avx.c: Rebuild.
3034 * features/i386/x32-linux.c: Rebuild.
3035 * features/i386/x32.c: Rebuild.
3036 * features/mips-dsp-linux.c: Rebuild.
3037 * features/mips-linux.c: Rebuild.
3038 * features/mips64-dsp-linux.c: Rebuild.
3039 * features/mips64-linux.c: Rebuild.
3040 * features/rs6000/powerpc-32.c: Rebuild.
3041 * features/rs6000/powerpc-32l.c: Rebuild.
3042 * features/rs6000/powerpc-403.c: Rebuild.
3043 * features/rs6000/powerpc-403gc.c: Rebuild.
3044 * features/rs6000/powerpc-405.c: Rebuild.
3045 * features/rs6000/powerpc-505.c: Rebuild.
3046 * features/rs6000/powerpc-601.c: Rebuild.
3047 * features/rs6000/powerpc-602.c: Rebuild.
3048 * features/rs6000/powerpc-603.c: Rebuild.
3049 * features/rs6000/powerpc-604.c: Rebuild.
3050 * features/rs6000/powerpc-64.c: Rebuild.
3051 * features/rs6000/powerpc-64l.c: Rebuild.
3052 * features/rs6000/powerpc-7400.c: Rebuild.
3053 * features/rs6000/powerpc-750.c: Rebuild.
3054 * features/rs6000/powerpc-860.c: Rebuild.
3055 * features/rs6000/powerpc-altivec32.c: Rebuild.
3056 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3057 * features/rs6000/powerpc-altivec64.c: Rebuild.
3058 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3059 * features/rs6000/powerpc-cell32l.c: Rebuild.
3060 * features/rs6000/powerpc-cell64l.c: Rebuild.
3061 * features/rs6000/powerpc-e500.c: Rebuild.
3062 * features/rs6000/powerpc-e500l.c: Rebuild.
3063 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3064 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3065 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3066 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3067 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3068 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3069 * features/rs6000/powerpc-vsx32.c: Rebuild.
3070 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3071 * features/rs6000/powerpc-vsx64.c: Rebuild.
3072 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3073 * features/rs6000/rs6000.c: Rebuild.
3074 * features/s390-linux32.c: Rebuild.
3075 * features/s390-linux32v1.c: Rebuild.
3076 * features/s390-linux32v2.c: Rebuild.
3077 * features/s390-linux64.c: Rebuild.
3078 * features/s390-linux64v1.c: Rebuild.
3079 * features/s390-linux64v2.c: Rebuild.
3080 * features/s390x-linux64.c: Rebuild.
3081 * features/s390x-linux64v1.c: Rebuild.
3082 * features/s390x-linux64v2.c: Rebuild.
3083 * features/tic6x-c62x-linux.c: Rebuild.
3084 * features/tic6x-c62x.c: Rebuild.
3085 * features/tic6x-c64x-linux.c: Rebuild.
3086 * features/tic6x-c64x.c: Rebuild.
3087 * features/tic6x-c64xp-linux.c: Rebuild.
3088 * features/tic6x-c64xp.c: Rebuild.
3089
826f0041
TT
30902012-07-27 Tom Tromey <tromey@redhat.com>
3091
3092 * c-exp.y (classify_name): Avoid assignment in condition.
3093
84552b16
PA
30942012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3095
3096 * amd64-windows-tdep.c: Include "frame.h".
3097 (amd64_windows_skip_trampoline_code): New function.
3098 (amd64_windows_init_abi): Add trampoline registration.
3099
a8a64aa8
YQ
31002012-07-27 Yao Qi <yao@codesourcery.com>
3101
3102 * tracepoint.c (cur_traceframe_number): Remove.
3103 (set_tfile_traceframe): Remove.
3104 (tfile_trace_find, tfile_fetch_registers): Update callers.
3105 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3106 (tfile_open, tfile_trace_find): Likewise.
3107
d99067cb
YQ
31082012-07-27 Yao Qi <yao@codesourcery.com>
3109
3110 * thread.c (switch_to_thread): Don't call registers_changed.
3111
f2e8016f
TT
31122012-07-26 Tom Tromey <tromey@redhat.com>
3113
f782ad9b
AS
3114 * Makefile.in (SFILES): Remove objc-exp.y.
3115 (YYFILES): Remove objc-exp.c.
3116 (YYOBJ): Remove objc-exp.o.
3117 (local-maintainer-clean): Don't mention objc-exp.c.
3118 * c-exp.y: Include objc-lang.h.
3119 (%union) <class>: New field.
3120 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3121 (exp): Clone subscript production for OBJC_LBRAC. Add various
3122 Objective C productions.
3123 (msglist, msgarglist, msgarg): New productions.
3124 (array_mod, func_mod, operator): Clone productions for
3125 OBJC_LBRAC.
3126 (parse_string_or_char): Handle '@' strings.
3127 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3128 (classify_name): Check la_name_of_this. Recognize ObjC class
3129 names.
3130 * objc-exp.y: Remove.
3131 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3132 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3133
f66713d2
JK
31342012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3135
3136 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3137
7cfe01b4
JK
31382012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3141 and decrement.
3142
5ba19b4c
TT
31432012-07-26 Tom Tromey <tromey@redhat.com>
3144
3145 * copying.c: Rebuild.
3146 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3147 'no_class'.
3148
27618ce4
TT
31492012-07-26 Tom Tromey <tromey@redhat.com>
3150
3151 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3152 immediate_quit.
3153 (print_objfile_statistics): Likewise.
3154 (maintenance_print_symbols): Likewise.
3155 (maintenance_print_msymbols): Likewise.
3156 (maintenance_print_objfiles): Likewise.
3157 * psymtab.c (print_partial_symbols): Call QUIT.
3158 (maintenance_print_psymbols): Likewise. Don't modify
3159 immediate_quit.
3160 * copying.c (show_copying_command): Don't modify immediate_quit.
3161 (show_warranty_command): Likewise.
3162 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3163
dd3818c8
KS
31642012-07-26 Keith Seitz <keiths@redhat.com>
3165
3166 * linespec.c (linespec_lexer_lex_number): The input
3167 is also a valid number if the next character is a comma
3168 or colon.
3169
23a80689
JB
31702012-07-26 Joel Brobecker <brobecker@adacore.com>
3171
3172 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3173 configure options.
3174
29f77997
TG
31752012-07-26 Tristan Gingold <gingold@adacore.com>
3176
3177 * machoread.c: Include gdb_bfd.h.
3178
a55c1f32
TG
31792012-07-26 Tristan Gingold <gingold@adacore.com>
3180
3181 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3182 offset.
3183
56eb65bd
SP
31842012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3185
3186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3187 SIZE to size_t.
3188 (dwarf2_evaluate_loc_desc): Likewise.
3189 (dwarf2_loc_desc_needs_frame): Likewise.
3190 (locexpr_describe_location_1): Likewise.
3191 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3192 size_t.
3193 (struct dwarf2_loclist_baton): Likewise.
3194 * dwarf2read.c (struct dwarf_block): Likewise.
3195 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3196 (decode_locdesc): Expand SIZE and I to size_t.
3197
aec8845c
JK
31982012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3201
33d7655b
JB
32022012-07-25 Joel Brobecker <brobecker@adacore.com>
3203
3204 * doublest.c (convert_doublest_to_floatformat): If the exponent
3205 is too small, treat the value as zero. If the exponent is too
3206 large, treat the value as infinity.
3207
a22d44ff
JB
32082012-07-25 Joel Brobecker <brobecker@adacore.com>
3209
3210 * configure.ac: Add --enable-lmcheck configure option.
3211 * configure: Regenerate.
3212
d6b28940
TT
32132012-07-25 Tom Tromey <tromey@redhat.com>
3214
f782ad9b
AS
3215 * NEWS: Mention maint info bfds.
3216 * gdb_bfd.c (all_bfds): New global.
3217 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3218 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3219 New functions.
d6b28940 3220
6e73ba20
RC
32212012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3222
3223 * configure.tgt: Add v850*-*-rtems*.
3224
d560eebd
TT
32252012-07-25 Tom Tromey <tromey@redhat.com>
3226
3227 * macrotab.c (macro_bcache_str): Remove cast.
3228
d7cbec71
HZ
32292012-07-25 Hui Zhu <hui_zhu@mentor.com>
3230
3231 * linespec.c (linespec_lexer_lex_number): Update comments,
3232 change the return and add check to make sure the input is
3233 the decimal numbers.
3234 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3235 false, call linespec_lexer_lex_string.
3236
882f447f
TT
32372012-07-24 Tom Tromey <tromey@redhat.com>
3238
3239 * symfile.c (symbol_file_add): Don't open BFD twice.
3240
53ab4066 32412012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3242
3243 * breakpoint.c (create_breakpoint): Store condition for pending
3244 breakpoints.
3245
108fb0f7
AS
32462012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3247
3248 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3249 (m68k_return_value): Handle complex types like structures.
3250 (m68k_svr4_return_value): Likewise.
3251
1634dcbe
JK
32522012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3253
3254 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3255 parameters to bfd_get_section_name.
3256
e2d12c21
YQ
32572012-07-24 Yao Qi <yao@codesourcery.com>
3258
3259 * cli/cli-setshow.c: Handle case 'var_uinteger'
3260 and 'var_zuninteger' together. Handle case 'var_integer' and
3261 'var_zinteger' together.
3262
64b92e45
KS
32632012-07-23 Keith Seitz <keiths@redhat.com>
3264
3265 * linespec.c (convert_linespec_to_sal): Don't add
3266 any symbols to the result vector if symbol_to_sal
3267 returns zero.
3268
0f5f4ffe
KS
32692012-07-23 Keith Seitz <keiths@redhat.com>
3270
3271 * linespec.c (decode_objc): Record the function name
3272 in the linespec.
3273
da1cc82f
TT
32742012-07-23 Tom Tromey <tromey@redhat.com>
3275
3276 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3277 counting.
3278 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3279 (map_vmap): Acquire a reference to the BFD.
3280
6c18f3e0
SP
32812012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3282
3283 * p-valprint.c (pascal_object_print_value): Replace potentially
3284 unsafe alloca with xmalloc/xfree.
3285 * valops.c (search_struct_method): Likewise.
3286
695c3173
TT
32872012-07-23 Tom Tromey <tromey@redhat.com>
3288
3289 * solib-svr4.c (enable_break): Update.
3290 * bfd-target.h (target_bfd_reopen): Update documentation.
3291
08d2cd74
TT
32922012-07-23 Tom Tromey <tromey@redhat.com>
3293
3294 * symfile.c (separate_debug_file_exists): Update.
3295 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3296 (reread_symbols): Update.
3297 * elfread.c (build_id_verify): Update.
3298 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3299 bfd_open_maybe_remote.
3300
596f7d67
TT
33012012-07-23 Tom Tromey <tromey@redhat.com>
3302
3303 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3304
8ac244b4
TT
33052012-07-23 Tom Tromey <tromey@redhat.com>
3306
3307 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3308 and 'abfd'.
3309 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3310 and 'abfd'.
3311 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3312 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3313 'abfd'.
3314 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3315 * objfiles.c (allocate_objfile): Acquire a new reference.
3316 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3317 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3318 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3319 a cleanup for 'nbfd'.
3320 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3321 for 'nbfd'.
3322 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3323 make a cleanup for 'abfd'.
3324 (symbol_file_add): Make a BFD cleanup.
3325
64c31149
TT
33262012-07-23 Tom Tromey <tromey@redhat.com>
3327
3328 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3329 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3330 * corelow.c (core_open): Use gdb_bfd_fopen.
3331 * dsrec.c (load_srec): Use gdb_bfd_openr.
3332 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3333 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3334 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3335 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3336 (gdb_bfd_fdopenr): New functions.
3337 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3338 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3339 (gdb_bfd_fdopenr): Declare.
3340 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3341 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3342 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3343 gdb_bfd_openr_next_archived_file.
3344 (macho_check_dsym): Use gdb_bfd_openr.
3345 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3346 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3347 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3348 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3349 gdb_bfd_openr.
3350 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3351 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3352 gdb_bfd_openr_next_archived_file.
3353 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3354 Use gdb_bfd_openr.
3355 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3356 gdb_bfd_openr.
3357 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3358 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3359 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3360 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3361 (symfile_bfd_open): Use gdb_bfd_fopen.
3362 (generic_load): Use gdb_bfd_openr.
3363 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3364
520b0001
TT
33652012-07-23 Tom Tromey <tromey@redhat.com>
3366
3367 * bfd-target.c (target_bfd_reopen): Update.
3368 * cli/cli-dump.c (bfd_openr_with_cleanup)
3369 (bfd_openw_with_cleanup): Update.
3370 * corelow.c (core_open): Update.
3371 * dsrec.c (load_srec): Update.
3372 * exec.c (exec_file_attach): Update.
3373 * gcore.c (create_gcore_bfd): Update.
3374 * gdb_bfd.c (gdb_bfd_ref): Return void.
3375 (gdb_bfd_open): Update.
3376 * gdb_bfd.h (gdb_bfd_ref): Return void.
3377 Update comments.
3378 * jit.c (jit_bfd_try_read_symtab): Update.
3379 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3380 * machoread.c (macho_symfile_read_all_oso): Update.
3381 (macho_check_dsym): Update.
3382 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3383 * remote-m32r-sdi.c (m32r_load): Update.
3384 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3385 * rs6000-nat.c (add_vmap): Update.
3386 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3387 Update.
3388 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3389 * solib-spu.c (spu_bfd_open): Update.
3390 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3391 * spu-linux-nat.c (spu_bfd_open): Update.
3392 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3393 (generic_load): Update.
3394 * windows-nat.c (windows_make_so): Update.
3395
2322ff16
SP
33962012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3397
3398 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3399
3def0b36
PA
34002012-07-20 Jeff Kenton <jkenton@tilera.com>
3401
3402 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3403 SIGTRAMP_FRAME unwinding.
3404
e615022a
DE
34052012-07-20 Doug Evans <dje@google.com>
3406
3407 * NEWS: Document new options "set/show use-deprecated-index-sections",
3408 and delete reference to --use-deprecated-index-sections.
3409 * symfile.h (use_deprecated_index_sections): Delete.
3410 * dwarf2read.c (use_deprecated_index_sections): Make static.
3411 (read_index_from_section): Update wording of how to load
3412 deprecated index sections.
3413 (_initialize_dwarf2_read): New options
3414 "set/show use-deprecated-index-sections".
3415 * main.c (captured_main): Delete --use-deprecated-index-sections.
3416
64776a0b
PA
34172012-07-20 Pedro Alves <palves@redhat.com>
3418
3419 PR threads/11692
3420 PR gdb/12203
3421
3422 * infrun.c (handle_inferior_event) <new thread>: Don't special
3423 case minus_one_ptid.
3424 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3425 * linux-thread-db.c (thread_get_info_callback): Don't return early
3426 if the thread is zombie.
3427 (thread_from_lwp): Change return type to void. Rewrite stale
3428 comment.
3429 (attach_thread): Don't return early if the thread is zombie,
3430 instead set its "dying" flag.
3431 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3432 (find_new_threads_callback): Don't return early if the thread is
3433 zombie.
3434
09826ec5
PA
34352012-07-20 Pedro Alves <palves@redhat.com>
3436
3437 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3438 * target.c (target_wait): Likewise.
3439 (str_comma_list_concat_elem, do_option, target_options_to_string):
3440 New functions.
3441 * target.h (target_options_to_string): Declare.
3442
f7a35f02
TT
34432012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3444 Tom Tromey <tromey@redhat.com>
3445
3446 * dwarf2read.c (dwarf_decode_macros)
3447 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3448 DW_MACRO_GNU_transparent_include_alt>: New cases.
3449 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3450 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3451
b81e1ee0
TT
34522012-07-20 Tom Tromey <tromey@redhat.com>
3453
3454 * dwarf2read.c (try_open_dwo_file): Don't call
3455 gdb_bfd_stash_filename.
3456
99c1624c
PA
34572012-07-20 Pedro Alves <palves@redhat.com>
3458
3459 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3460 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3461 (i386_process_record): Tweak description comments.
3462
4ffa4fc7
PA
34632012-07-20 Pedro Alves <palves@redhat.com>
3464
3465 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3466 (i386_process_record): Use record_read_memory.
3467 * record.c (record_read_memory): New function.
3468 (record_arch_list_add_mem, record_exec_insn): Use
3469 record_read_memory.
3470 * record.h (record_read_memory): Declare.
3471
c24343e2
YQ
34722012-07-20 Yao Qi <yao@codesourcery.com>
3473
3474 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3475 NULL for xfree.
3476
90f47860
PA
34772012-07-19 Pedro Alves <palves@redhat.com>
3478
3479 * record.c (record_resume): Ask the target beneath to report all
3480 signals.
3481
01093045
DE
34822012-07-19 Doug Evans <dje@google.com>
3483
3484 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3485 there's no section at address zero.
3486 (dwarf2_record_block_ranges): Ditto.
3487
a7c3d162
YQ
34882012-07-19 Yao Qi <yao@codesourcery.com>
3489
3490 * command.h, remote.c: Fix a typo in comment.
3491
608b4967
TT
34922012-07-19 Tom Tromey <tromey@redhat.com>
3493
3494 PR exp/13206:
3495 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3496 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3497 OP_DECLTYPE>: New cases.
3498 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3499 (type_exp): Add new productions.
3500 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3501 and decltype.
3502 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3503 New case.
3504 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3505 OP_DECLTYPE>: New case.
3506 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3507 New case.
3508 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3509 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3510
274b54d7
TT
35112012-07-19 Tom Tromey <tromey@redhat.com>
3512
3513 * c-exp.y (enum token_flags): New.
3514 (struct token) <cxx_only>: Remove.
3515 <flags>: New field.
3516 (tokentab3, tokentab2, ident_tokens): Update.
3517 (lex_one_token): Update. Handle FLAG_SHADOW.
3518
9eaf6705
TT
35192012-07-19 Tom Tromey <tromey@redhat.com>
3520
3521 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3522 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3523 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3524 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3525 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3526 type_exp production where appropriate.
3527 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3528 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3529 <UNOP_MEMVAL_TYPE>: New case.
3530 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3531 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3532 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3533 <UNOP_MEMVAL_TYPE>: New case.
3534 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3535 UNOP_REINTERPRET_CAST>: Update.
3536 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3537 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3538 UNOP_REINTERPRET_CAST>: Update.
3539 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3540 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3541 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3542 constants.
3543
6ace3df1
YQ
35442012-07-19 Yao Qi <yao@codesourcery.com>
3545 Jan Kratochvil <jan.kratochvil@redhat.com>
3546
3547 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3548 and case 'var_optional_filename' together.
3549 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3550 instead of add_setshow_optional_filename_cmd for setshow command
3551 'args'. Set completer for 'set args'.
3552
48faced0
DE
35532012-07-18 Doug Evans <dje@google.com>
3554
3555 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3556 * common/gdb_vecs.c: New file, contents from utils.c.
3557 * common/host-defs.h: New file, contents from defs.h.
3558 * utils.h: New file, contents from defs.h.
3559 * defs.h: Move all declarations of objects defined in utils.c
3560 to utils.h (except QUIT() and related).
3561 #include "utils.h", "host-defs.h".
3562 * probe.h (probe_p): Move here from gdb_vecs.h.
3563 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3564 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3565 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3566 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3567 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3568 (COMMON_OBS): Add gdb_vecs.o.
3569 (gdb_vecs.o): New rule.
3570
66f1999b
KS
35712012-07-18 Keith Seitz <keiths@redhat.com>
3572
3573 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3574 parameter. If non-zero, use SYMNAME as the canonical name
3575 for the SaL.
3576 Update all callers.
3577 (convert_linespec_to_sals): Use add_sal_to_sals for
3578 expressions, too.
3579 (decode_line_full): No need to "fill in missing canonical names"
3580 anymore. Simply make cleanups for the allocated names.
3581
5d94e27b
KS
35822012-07-18 Keith Seitz <keiths@redhat.com>
3583
3584 * linespec.c (struct linespec): Constify expression,
3585 source_filename, function_name, and label_name.
3586 (symbol_not_found_error): Make all parameters const.
3587 (linespec_parser_delete): No need to check for NULL
3588 when using xfree. Cast const char * to char * for xfree.
3589
af4908ba
KS
35902012-07-18 Keith Seitz <keiths@redhat.com>
3591
3592 * breakpoint.c (invalid_thread_id_error): New function.
3593 (find_condition_and_thread): Use invalid_thread_id_error.
3594 (watch_command_1): Likewise.
3595
853254db
TT
35962012-07-18 Tom Tromey <tromey@redhat.com>
3597
3598 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3599 * contrib/cc-with-tweaks.sh: New file.
3600
2ec9a5e0
TT
36012012-07-18 Tom Tromey <tromey@redhat.com>
3602
3603 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3604 (locate_dwz_sections): Recognize .gdb_index.
3605 (create_cus_from_index_list): New function.
3606 (create_cus_from_index): Use it. Handle .dwz data.
3607 (read_index_from_section): New function, extracted from
3608 dwarf2_read_index.
3609 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3610 if needed.
3611
36586728
TT
36122012-07-18 Tom Tromey <tromey@redhat.com>
3613
3614 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3615 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3616 <is_dwz>: New field.
3617 (struct dwz_file): New.
3618 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3619 (locate_dwz_sections, dwarf2_get_dwz_file)
3620 (get_abbrev_section_for_cu): New functions.
3621 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3622 (read_and_check_type_unit_head): Add abbrev_section argument.
3623 (create_debug_types_hash_table): Update.
3624 (init_cutu_and_read_dies): Use proper abbrev section.
3625 (init_cutu_and_read_dies_no_follow): Likewise.
3626 (set_partial_user): Do nothing if PST==NULL.
3627 (read_comp_units_from_section): New function.
3628 (create_all_comp_units): Use it.
3629 (scan_partial_symbols, partial_die_parent_scope): Update.
3630 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3631 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3632 (find_partial_die): Add offset_in_dwz argument. Update.
3633 (guess_partial_die_structure_name, fixup_partial_die): Update.
3634 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3635 DW_FORM_GNU_strp_alt.
3636 (read_indirect_string_from_dwz): New function.
3637 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3638 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3639 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3640 (follow_die_offset): Add offset_in_dwz argument.
3641 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3642 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3643 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3644 Handle new macro forms.
3645 (dwarf_decode_macros): Update.
3646 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3647 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3648 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3649 (create_debug_types_hash_table): Use correct abbrev section.
3650 (get_debug_line_section): New function.
3651 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3652 (process_full_comp_unit): Pass 'required' argument to
3653 end_symtab_get_static_block.
3654 * buildsym.h (end_symtab_get_static_block): Update.
3655 * buildsym.c (end_symtab_get_static_block): Add 'required'
3656 argument.
3657 (end_symtab, end_expandable_symtab): Update.
3658
4bf44c1c
TT
36592012-07-18 Tom Tromey <tromey@redhat.com>
3660
3661 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3662 (pagesize): Remove.
3663 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3664 (zlib_decompress_section): Remove.
3665 (dwarf2_read_section): Use gdb_bfd_map_section.
3666 (munmap_section_buffer): Remove.
3667 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3668 munmap_section_buffer.
3669 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3670 (struct gdb_bfd_section_data): New.
3671 (free_one_bfd_section): New function.
3672 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3673 (get_section_descriptor, zlib_decompress_section)
3674 (gdb_bfd_map_section): New functions.
3675 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3676
bb397797
TT
36772012-07-18 Tom Tromey <tromey@redhat.com>
3678
3679 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3680
6ec53d05
TT
36812012-07-18 Tom Tromey <tromey@redhat.com>
3682
3683 * gdb_bfd.c (struct gdb_bfd_data): New.
3684 (gdb_bfd_cache): New global.
3685 (struct gdb_bfd_cache_search): New.
3686 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3687 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3688 * gdb_bfd.h (gdb_bfd_open): Declare.
3689
f9a062ff
TT
36902012-07-18 Tom Tromey <tromey@redhat.com>
3691
3692 * utils.c (make_cleanup_bfd_unref): Rename from
3693 make_cleanup_bfd_close.
3694 * defs.h (make_cleanup_bfd_unref): Rename from
3695 make_cleanup_bfd_close.
3696 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3697 (bfd_openw_with_cleanup): Update.
3698 * corelow.c (core_open): Update.
3699 * dsrec.c (load_srec): Update.
3700 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3701 * remote-m32r-sdi.c (m32r_load): Update.
3702 * remote-mips.c (mips_load_srec): Update.
3703 (pmon_load_fast): Update.
3704 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3705 Update.
3706 (darwin_bfd_open): Update.
3707 * solib.c (solib_bfd_fopen): Update.
3708 * symfile-mem.c (symbol_file_add_from_memory): Update.
3709 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3710 (symfile_bfd_open): Update.
3711 (generic_load): Update.
3712
d6ad71ba
TT
37132012-07-18 Tom Tromey <tromey@redhat.com>
3714
3715 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3716 (pmon_load_fast): Likewise.
3717 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3718 (m32r_upload_command): Likewise.
3719 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3720 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3721 Use make_cleanup_bfd_close.
3722
a4453b7e
TT
37232012-07-18 Tom Tromey <tromey@redhat.com>
3724
3725 * symfile.c (symfile_bfd_open): Don't copy name. Call
3726 gdb_bfd_stash_filename.
3727 (load_command): Open the new BFD before freeing the old.
3728 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3729 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3730 Call gdb_bfd_stash_filename.
3731 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3732 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3733 gdb_bfd_stash_filename.
3734 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3735 Free found_pathname.
3736 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3737 gdb_bfd_stash_filename.
3738 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3739 * machoread.c (macho_add_oso_symfile): Call
3740 gdb_bfd_stash_filename.
3741 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3742 gdb_bfd_stash_filename.
3743 (macho_check_dsym): Don't copy filename. Call
3744 gdb_bfd_stash_filename.
3745 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3746 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3747 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3748 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3749 * exec.c (exec_close): Don't free the BFD's filename.
3750 (exec_file_attach): Don't copy the filename. Call
3751 gdb_bfd_stash_filename.
3752 * corelow.c (core_close): Don't free the BFD's filename.
3753 (core_open): Call gdb_bfd_stash_filename.
3754 * corefile.c (reopen_exec_file): Remove #if 0 code.
3755 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3756 pathname.
3757 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3758
cbb099e8
TT
37592012-07-18 Tom Tromey <tromey@redhat.com>
3760
3761 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3762 gdb_bfd_unref.
3763 (free_dwo_file): Use gdb_bfd_unref.
3764 * cli/cli-dump.c: Include gdb_bfd.h.
3765 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3766 (bfd_openr_with_cleanup): Likewise.
3767 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3768 gdb_bfd_unref.
3769 * utils.c: Include gdb_bfd.h.
3770 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3771 * symfile.c: Include gdb_bfd.h.
3772 (separate_debug_file_exists): Use gdb_bfd_unref.
3773 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3774 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3775 (generic_load): Use gdb_bfd_ref.
3776 (reread_symbols): Use gdb_bfd_unref.
3777 * symfile-mem.c: Include gdb_bfd.h.
3778 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3779 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3780 * solib.c: Include gdb_bfd.h.
3781 (solib_bfd_fopen): Use gdb_bfd_ref.
3782 (solib_bfd_open): Use gdb_bfd_unref.
3783 (free_so_symbols): Use gdb_bfd_unref.
3784 (reload_shared_libraries_1): Use gdb_bfd_unref.
3785 * solib-spu.c: Include gdb_bfd.h.
3786 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3787 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3788 gdb_bfd_unref.
3789 * solib-frv.c: Include gdb_bfd.h.
3790 (enable_break2): Use gdb_bfd_unref.
3791 * solib-dsbt.c: Include gdb_bfd.h.
3792 (enable_break2): Use gdb_bfd_unref.
3793 * solib-darwin.c: Include gdb_bfd.h.
3794 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3795 gdb_bfd_unref.
3796 (darwin_bfd_open): Use gdb_bfd_unref.
3797 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3798 * remote-mips.c: Include gdb_bfd.h.
3799 (mips_load_srec): Use gdb_bfd_ref.
3800 (pmon_load_fast): Use gdb_bfd_ref.
3801 * remote-m32r-sdi.c: Include gdb_bfd.h.
3802 (m32r_load): Use gdb_bfd_ref.
3803 * record.c: Include gdb_bfd.h.
3804 (record_save_cleanups): Use gdb_bfd_unref.
3805 (cmd_record_save): Use gdb_bfd_unref.
3806 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3807 gdb_bfd_unref.
3808 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3809 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3810 * objfiles.c: Include gdb_bfd.h.
3811 (free_objfile): Use gdb_bfd_unref.
3812 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3813 gdb_bfd.c.
3814 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3815 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3816 (macho_check_dsym): Likewise.
3817 * m32r-rom.c: Include gdb_bfd.h.
3818 (m32r_load): Use gdb_bfd_ref.
3819 (m32r_upload_command): Use gdb_bfd_ref.
3820 * jit.c: Include gdb_bfd.h.
3821 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3822 * gdb_bfd.h: New file.
3823 * gdb_bfd.c: New file.
3824 * gcore.c: Include gdb_bfd.h.
3825 (create_gcore_bfd): Use gdb_bfd_ref.
3826 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3827 (gcore_command): Use gdb_bfd_unref.
3828 * exec.c: Include gdb_bfd.h.
3829 (exec_close): Use gdb_bfd_unref.
3830 (exec_close_1): Use gdb_bfd_unref.
3831 (exec_file_attach): Use gdb_bfd_ref.
3832 * elfread.c: Include gdb_bfd.h.
3833 (build_id_verify): Use gdb_bfd_unref.
3834 * dsrec.c: Include gdb_bfd.h.
3835 (load_srec): Use gdb_bfd_ref.
3836 * corelow.c: Include gdb_bfd.h.
3837 (core_close): Use gdb_bfd_unref.
3838 (core_open): Use gdb_bfd_ref.
3839 * bfd-target.c: Include gdb_bfd.h.
3840 (target_bfd_xclose): Use gdb_bfd_unref.
3841 (target_bfd_reopen): Use gdb_bfd_ref.
3842 * Makefile.in (SFILES): Add gdb_bfd.c.
3843 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3844 (COMMON_OBS): Add gdb_bfd.o.
3845
ed1d1739
KS
38462012-07-18 Keith Seitz <keiths@redhat.com>
3847
3848 * breakpoint.c (find_condition_and_thread): Initialize
3849 TASK and REST.
3850 (create_breakpiont): find_condition_and_thread will now
3851 initialize COND_STRING, THREAD, and REST (and TASK).
3852 (addr_string_to_sals): Likewise.
3853
eab402df
PA
38542012-07-18 Pedro Alves <palves@redhat.com>
3855
3856 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3857 Pull the single step breakpoints out of the target.
3858
2b963b68
SDJ
38592012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3860
3861 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3862 * stap-probe.c (compile_probe_arg): Likewise.
3863
6bac7473
SDJ
38642012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3865
3866 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3867 (elf_compile_to_ax): Likewise.
3868 * infrun.c (insert_exception_resume_from_probe): Likewise.
3869 (check_exception_resume): Remove `objfile' variable.
3870 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3871 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3872 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3873 (compare_entries): Rename to...
3874 (compare_probes): ...this. Adjust function to work with
3875 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3876 respectively.
3877 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3878 `VEC (probe_p) *'.
3879 (print_ui_out_info): Adjust argument to be `struct probe *'.
3880 (info_probes_for_ops): Adjust internal computations to use
3881 `VEC (probe_p) *'.
3882 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3883 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3884 gen_info_probes_table_values>: Remove `objfile' argument.
3885 (struct probe) <objfile>: New field.
3886 (find_probe_by_pc): Remove `objfile' argument.
3887 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3888 (stap_get_probe_argument_count): Likewise.
3889 (stap_get_arg): Likewise.
3890 (stap_evaluate_probe_argument): Likewise.
3891 (stap_compile_to_ax): Likewise.
3892 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3893 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3894 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3895 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3896 sym_compile_to_ax>: Likewise.
3897
3347eb1a 38982012-07-18 Terry Guo <terry.guo@arm.com>
3899
3900 PR 14329
3901 * defs.h (GDB_MI_MSG_WIDTH): New.
3902 * ser_base (ser_base_read_error_fd): New function.
3903 (do_ser_base_readchar): Poll error file descriptor as well as
3904 standard output.
f782ad9b 3905 (generic_readchar): Refactor error handling.
3347eb1a 3906
80c8d323
JB
39072012-07-18 Joel Brobecker <brobecker@adacore.com>
3908
3909 * NEWS: Create a new section for the next release branch.
3910 Rename the section of the current branch, now that it has
3911 been cut.
3912
b45a0664 39132012-07-18 Joel Brobecker <brobecker@adacore.com>
3914
3915 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3916 * version.in: Bump version to 7.5.50.20120718-cvs.
3917
09cf2b22
KS
39182012-07-17 Keith Seitz <keiths@redhat.com>
3919
3920 * linespec.c (linespec_parse_line_offset): Make parameter
3921 const.
3922
8f043999
JK
39232012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3924
3925 PR 11914
3926 * f-valprint.c (info_common_command): New variable frame_id.
3927 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3928 * printcmd.c (print_variable_and_value): Extend function comment.
3929 Add comment for invalidated FRAME.
3930 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3931 FI form FRAME_ID after each print_frame_local_vars.
3932 (struct print_variable_and_value_data): Change frame to frame_id.
3933 (do_print_variable_and_value): New variable frame, initialize it from
3934 p->frame_id. Add comment for invalidated FRAME.
3935 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3936 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3937 for invalidated FRAME.
3938
ae5e0686
MK
39392012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3940 Pedro Alves <palves@redhat.com>
3941
3942 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3943 loop.
3944
5049c5be
TT
39452012-07-16 Tom Tromey <tromey@redhat.com>
3946
3947 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3948
2908cac6
DE
39492012-07-15 Doug Evans <dje@google.com>
3950
094b34ac
DE
3951 * dwarf2read.c (stmt_list_hash): New struct.
3952 (type_unit_group): Embed "per_cu" member, remove pointer.
3953 New union member "t", move member "tus" into it, all uses updated.
3954 New member "hash", replaces member "line_offset, all uses updated.
3955 (quick_file_names): Replace member "offset" with "hash", all uses
3956 updated.
3957 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3958 (hash_file_name_entry, eq_file_name_entry): Call them.
3959 (hash_type_unit_group, eq_type_unit_group): Ditto.
3960 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3961 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3962 (dw2_get_file_names): Update.
3963 (create_type_unit_group): Replace "per_cu" arg with "cu".
3964 All callers updated. Fix "quick" (.gdb_index) handling.
3965 (get_type_unit_group): Replace "per_cu" arg with "cu".
3966 All callers updated.
3967 (build_type_unit_groups): Don't reset tu_stats.
3968
2908cac6
DE
3969 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3970 "tab_cur_size". Change member "tab" to be a htab_t.
3971 (create_filename_seen_cache): Update.
3972 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3973 (filename_seen): Update.
3974
a2b6eff5
DE
39752012-07-13 Doug Evans <dje@google.com>
3976
3977 * symtab.c (filename_seen): Update comment.
3978
4359dff1
JK
39792012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 Doug Evans <dje@google.com>
3981
3982 * buildsym.c (end_symtab_1): Split it to ...
3983 (end_symtab_get_static_block): ... this ...
3984 (end_symtab_from_static_block): ... and this function.
3985 (end_symtab, end_expandable_symtab): Call them.
3986 * buildsym.h (end_symtab_get_static_block)
3987 (end_symtab_from_static_block): New declarations.
3988 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3989 Set its valid CU ranges.
3990
a24f71ab
JK
39912012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3992
3993 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3994 DW_OP_GNU_parameter_ref.
3995
d76b7dbc
JK
39962012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3999 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4000
9fdc877b
DE
40012012-07-13 Doug Evans <dje@google.com>
4002
4003 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4004 (filename_seen_cache): New struct.
4005 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4006 (create_filename_seen_cache): New function.
4007 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4008 (filename_seen): Delete arg "first". New arg "cache". All callers
4009 updated.
4010 (output_source_filename_data): New struct.
4011 (output_source_filename): Delete arg "first". New arg "data".
4012 All callers updated.
4013 (sources_info): Delete local "first". New locals "data", "cleanups".
4014 Rewrite to use filename_seen_cache.
4015 (add_partial_filename_data): Delete member "first". New member
4016 "filename_seen_cache". All uses updated.
4017 (make_source_files_completion_list): Rewrite to use
4018 filename_seen_cache.
4019
f80c6f3f
DE
40202012-07-12 Doug Evans <dje@google.com>
4021
4022 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4023
0bfa869d
DE
40242012-07-10 Doug Evans <dje@google.com>
4025
f4dc4d17
DE
4026 PR gdb/13498
4027 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4028 all_type_unit_groups, type_unit_groups, tu_stats.
4029 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4030 All uses updated. Add type_unit_group to union "s".
4031 (type_unit_group): New struct.
4032 (IS_TYPE_UNIT_GROUP): New macro.
4033 (abbrev_table): Delete unused member "section".
4034 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4035 (dw2_get_cu): Assert not used with type_unit_group.
4036 (dw2_get_primary_cu): New function.
4037 (dw2_build_type_unit_groups_reader): New function.
4038 (dw2_build_type_unit_groups): New function.
4039 (dw2_get_file_names): Assert not called on type units.
4040 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4041 Redo loop to iterate over type unit groups instead of type units.
4042 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4043 (read_abbrev_offset): New function.
4044 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4045 updated.
4046 (create_partial_symtab): New function.
4047 (process_psymtab_comp_unit_reader): Assert not used with type units.
4048 Call create_partial_symtab.
4049 (process_psymtab_type_unit): Delete.
4050 (hash_type_unit_group, eq_type_unit_group): New functions.
4051 (allocate_type_unit_groups_table): New function.
4052 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4053 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4054 (create_type_unit_group, get_type_unit_group): New functions.
4055 (tu_abbrev_offset): New struct.
4056 (sort_tu_by_abbrev_offset): New function.
4057 (add_type_unit_group_to_table): New function.
4058 (build_type_unit_groups): New function.
4059 (build_type_psymtabs_reader): New function.
4060 (build_type_psymtab_dependencies): New function.
4061 (build_type_psymtabs): Rewrite.
4062 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4063 is seen in a type unit.
4064 (process_queue): Move symtab expansion debugging printfs here.
4065 Call process_full_type_unit for type units.
4066 (compute_symtab_includes): Assert not called for type units.
4067 (process_cu_includes): Don't call compute_symtab_includes for
4068 type units.
4069 (process_full_type_unit): New function.
4070 (process_imported_unit_die): Flag an error if called for type units.
4071 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4072 updated. Assert not called for type units.
4073 (read_file_scope): Call dwarf2_start_symtab.
4074 (setup_type_unit_groups): New function.
4075 (read_type_unit_scope): Rewrite.
4076 (abbrev_table_read_table): Initialize abbrev_table->offset.
4077 (abbrev_table_free_cleanup): New function.
4078 (dwarf2_start_symtab): New function.
4079 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4080 * buildsym.c (finish_block_internal): New arg "expandable".
4081 All callers updated.
4082 (start_symtab): Move most contents to ...
4083 (restart_symtab): ... here. New function.
4084 (reset_symtab_globals): New function.
4085 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4086 Call reset_symtab_globals.
4087 (end_symtab, end_expandable_symtab): New functions.
4088 (set_missing_symtab, augment_type_symtab): New functions.
4089 * buildsym.h (end_expandable_symtab): Declare.
4090 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4091 * psympriv.h (struct partial_symtab): New member "anonymous".
4092 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4093 anonymous psymtabs.
4094 (read_psymtabs_with_filename): Ditto.
4095 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4096 (expand_symtabs_matching_via_partial): Ditto.
4097 (dump_psymtab): Update.
0bfa869d
DE
4098 * dictionary.c (dict_add_pending): New function.
4099 * dictionary.h (dict_add_pending): Declare.
4100
45e58e77
DE
41012012-07-09 Doug Evans <dje@google.com>
4102
b74db436
DE
4103 * buildsym.c (start_subfile): Remove unnecessary check for
4104 name == NULL.
4105
fd55216c
DE
4106 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4107
6721b2ec
DE
4108 * dwarf2read.c (load_full_type_unit): Simplify.
4109
b4dd5633
DE
4110 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4111 to struct signatured_type **. All uses updated.
4112
45e58e77
DE
4113 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4114 All callers updated.
4115
e314d629
TT
41162012-07-09 Tom Tromey <tromey@redhat.com>
4117
4118 * c-exp.y (check_parameter_typelist): New function.
4119 (parameter_typelist): Call it.
4120 * eval.c (make_params): Handle '(void)' case.
4121 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4122 '(void)' case.
4123
aa7c7447
JK
41242012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4125
4126 * common/linux-ptrace.c: Include gdb_assert.h.
4127 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4128 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4129 stdint.h.
4130 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4131 functions.
4132 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4133 * linux-nat.c (linux_child_post_attach)
4134 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4135
889003ed
JK
41362012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4137
4138 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4139 nptl <2.7 bug workaround for core files.
4140
da559b09
JK
41412012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4144 clearing.
4145 (save_siginfo): Remove.
4146 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4147 call.
4148 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4149 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4150 * linux-nat.h (struct lwp_info): Remove field siginfo.
4151
f865ee35
JK
41522012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 Code cleanup for the next patch.
4155 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4156 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4157 call for it.
4158 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4159 (ia64_linux_stopped_data_address):
4160 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4161 the return value.
4162 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4163 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4164 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4165 call for it.
4166
76b83c51
JK
41672012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4168
4169 PR 14321
4170 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4171 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4172
a6fb9c08
TT
41732012-07-06 Tom Tromey <tromey@redhat.com>
4174
4175 * c-exp.y (DOTDOTDOT): New token.
4176 (func_mod, exp): Use parameter_typelist.
4177 (parameter_typelist): New production.
4178 (tokentab3): Add "..." token.
4179 * eval.c (make_params): Handle varargs.
4180 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4181 varargs.
4182
71918a86
TT
41832012-07-06 Tom Tromey <tromey@redhat.com>
4184
4185 PR exp/9608:
4186 * c-exp.y (%union) <tvec>: Change type.
4187 (func_mod): Now uses <tvec> type.
4188 (exp): Update for tvec change.
4189 (direct_abs_decl): Push the typelist.
4190 (func_mod): Return a typelist.
4191 (nonempty_typelist): Update for tvec change.
4192 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4193 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4194 * parse.c (pop_type_list): New function.
4195 (push_typelist): New function.
4196 (follow_types): Handle tp_function_with_arguments.
4197 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4198 (enum type_pieces) <tp_function_with_arguments>: New constant.
4199 (union type_stack_elt) <typelist_val>: New field.
4200 (push_typelist): Declare.
4201
fcde5961
TT
42022012-07-06 Tom Tromey <tromey@redhat.com>
4203
4204 * c-exp.y (%union) <type_stack>: New field.
4205 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4206 (ptr_operator_ts): New production.
4207 (ptype): Update.
4208 * parse.c (type_stack_reserve): New function.
4209 (check_type_stack_depth): Use it.
4210 (pop_type_stack, append_type_stack, push_type_stack)
4211 (get_type_stack, type_stack_cleanup): New functions.
4212 (follow_types): Handle tp_type_stack.
4213 (_initialize_parse): Simplify initialization.
4214 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4215 constant.
4216 (union type_stack_elt) <stack_val>: New field.
4217 (get_type_stack, append_type_stack, push_type_stack)
4218 (type_stack_cleanup): Declare.
4219
1a7d0ce4
TT
42202012-07-06 Tom Tromey <tromey@redhat.com>
4221
4222 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4223 Remove.
4224 (struct type_stack): New.
4225 * parse.c (type_stack, type_stack_size, type_stack_depth):
4226 Remove.
4227 (type_stack): New global.
4228 (parse_exp_in_context, check_type_stack_depth)
4229 (insert_into_type_stack, insert_type, push_type, push_type_int)
4230 (insert_type_address_space, pop_type, pop_type_int)
4231 (_initialize_parse): Update.
4232
16d01384
TT
42332012-07-06 Tom Tromey <tromey@redhat.com>
4234
4235 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4236 Remove %type.
4237
9bfc60bf
SP
42382012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4239
4240 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4241
d5161074
SP
42422012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4243 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4246 alloca with xmalloc/xfree.
4247
a74bc576
SP
42482012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4249
4250 * MAINTAINERS (Write After Approval): Add myself to the list.
4251
667e0a4b
DE
42522012-07-05 Doug Evans <dje@google.com>
4253
4254 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4255
34b536a8
HZ
42562012-07-05 Hui Zhu <hui_zhu@mentor.com>
4257
4258 * ax-gdb.c (cli/cli-utils.h): New include.
4259 (linespec.h): Ditto.
4260 (agent_eval_command_one): New function.
4261 (agent_command_1): Ditto.
4262 (agent_command): Call function agent_command_1.
4263 (agent_eval_command): Ditto.
4264 (_initialize_ax_gdb): Change help for "maint agent"
4265 and "maint agent-eval".
4266
e6f0bce7
HZ
42672012-07-05 Hui Zhu <hui_zhu@mentor.com>
4268
4269 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4270 * cli/cli-utils.c (check_for_argument): New function.
4271 * cli/cli-utils.h (check_for_argument): Ditto.
4272
1b3371b1
L
42732012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4274
4275 * NEWS: Mention x32 ABI support.
4276
23e2d720
L
42772012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4278
4279 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4280 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4281
4282 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4283 and pc_regnum_from_eax to -1. Update SP regnum from
4284 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4285 needed.
4286
4287 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4288 pc_regnum_from_eax.
4289
836bf454
JK
42902012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4291
4292 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4293 * dwarf2expr.h: Include gdbtypes.h.
4294 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4295 these forward declarations.
4296 (cu_offset, sect_offset): Move these ...
4297 * gdbtypes.h: Remove include dwarf2expr.h.
4298 (cu_offset, sect_offset): ... here.
4299
1e55e04f
L
43002012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4301
4302 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4303 (amd64_linux_sigtramp_code): This.
4304 (amd64_x32_linux_sigtramp_code): New.
4305 (LINUX_SIGTRAMP_LEN): Updated.
4306 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4307
7d0e21ad
JK
43082012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4309
4310 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4311
8775fd2d
JK
43122012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4313
4314 * config.in: Regenerate.
4315 * configure: Regenerate.
4316 * configure.ac: Remove check for gnu/libc-version.h.
4317 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4318 gnu/libc-version.h.
4319 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4320 variables libc_version, libc_major and libc_minor. Replace sscanf by
4321 inferior_has_bug. Extend the comment.
4322
fcb44371
JK
43232012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 * linux-thread-db.c (inferior_has_bug): New function.
4326 (thread_db_find_new_threads_silently): Return boolean as checked by
4327 inferior_has_bug, describe it in the comments.
4328 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4329 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4330 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4331 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4332 if UNTIL_NO_NEW,
4333
09406207
DE
43342012-07-02 Doug Evans <dje@google.com>
4335
0907af0c
DE
4336 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4337 related to queue management.
4338
09406207
DE
4339 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4340 instead of "debug dwarf2-die" in debugging printfs.
4341 (create_debug_info_hash_table_reader): Ditto.
4342 (create_debug_info_hash_table): Ditto.
4343 (init_dwo_file): Ditto.
4344 (init_cutu_and_read_dies): Add debugging printf.
4345 (init_cutu_and_read_dies_no_follow): Ditto.
4346 (process_psymtab_comp_unit_reader): Ditto.
4347
d3ce09f5
SS
43482012-07-02 Stan Shebs <stan@codesourcery.com>
4349
4350 Add target-side support for dynamic printf.
4351 * NEWS: Mention the additional style.
4352 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4353 (struct bp_location): New field cmd_bytecode.
4354 * breakpoint.c: Include format.h.
4355 (disconnected_dprintf): New global.
4356 (parse_cmd_to_aexpr): New function.
4357 (build_target_command_list): New function.
4358 (insert_bp_location): Call it.
4359 (remove_breakpoints_pid): Skip dprintf breakpoints.
4360 (print_one_breakpoint_location): Ditto.
4361 (dprintf_style_agent): New global.
4362 (dprintf_style_enums): Add dprintf_style_agent.
4363 (update_dprintf_command_list): Add agent case.
4364 (agent_printf_command): New function.
4365 (_initialize_breakpoint): Add new commands.
4366 * common/ax.def (printf): New bytecode.
4367 * ax.h (ax_string): Declare.
4368 * ax-gdb.h (gen_printf): Declare.
4369 * ax-gdb.c: Include cli-utils.h, format.h.
4370 (gen_printf): New function.
4371 (maint_agent_print_command): New function.
4372 (_initialize_ax_gdb): Add maint agent-printf command.
4373 * ax-general.c (ax_string): New function.
4374 (ax_print): Add printf disassembly.
4375 * Makefile.in (SFILES): Add format.c
4376 (COMMON_OBS): Add format.o.
4377 * common/format.h: New file.
4378 * common/format.c: New file.
4379 * printcmd.c: Include format.h.
4380 (ui_printf): Call parse_format_string.
4381 * remote.c (remote_state): New field breakpoint_commands.
4382 (PACKET_BreakpointCommands): New enum.
4383 (remote_breakpoint_commands_feature): New function.
4384 (remote_protocol_features): Add new BreakpointCommands entry.
4385 (remote_can_run_breakpoint_commands): New function.
4386 (remote_add_target_side_commands): New function.
4387 (remote_insert_breakpoint): Call it.
4388 (remote_insert_hw_breakpoint): Ditto.
4389 (_initialize_remote): Add new packet configuration for
4390 target-side breakpoint commands.
4391 * target.h (struct target_ops): New field
4392 to_can_run_breakpoint_commands.
4393 (target_can_run_breakpoint_commands): New macro.
4394 * target.c (update_current_target): Handle
4395 to_can_run_breakpoint_commands.
4396
2d7b58e8
JK
43972012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4398
4399 Execute -ix and -iex only after system and user gdbinit files.
4400 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4401 processing down after gdbinit files.
4402
8690e634
JK
44032012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4404
4405 Add fnmatch-gnu module.
4406 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4407 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4408 * gnulib/aclocal.m4: Regenerate.
4409 * gnulib/config.in: Regenerate.
4410 * gnulib/configure: Regenerate.
4411 * gnulib/import/dummy.c: Remove.
4412 * gnulib/import/Makefile.am: Regenerate.
4413 * gnulib/import/Makefile.in: Likewise.
4414 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4415 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4416 * gnulib/import/alloca.c: New file.
4417 * gnulib/import/alloca.in.h: Likewise.
4418 * gnulib/import/config.charset: Likewise.
4419 * gnulib/import/fnmatch.c: Likewise.
4420 * gnulib/import/fnmatch.in.h: Likewise.
4421 * gnulib/import/fnmatch_loop.c: Likewise.
4422 * gnulib/import/localcharset.c: Likewise.
4423 * gnulib/import/localcharset.h: Likewise.
4424 * gnulib/import/m4/alloca.m4: Likewise.
4425 * gnulib/import/m4/codeset.m4: Likewise.
4426 * gnulib/import/m4/configmake.m4: Likewise.
4427 * gnulib/import/m4/fcntl-o.m4: Likewise.
4428 * gnulib/import/m4/fnmatch.m4: Likewise.
4429 * gnulib/import/m4/glibc21.m4: Likewise.
4430 * gnulib/import/m4/localcharset.m4: Likewise.
4431 * gnulib/import/m4/locale-fr.m4: Likewise.
4432 * gnulib/import/m4/locale-ja.m4: Likewise.
4433 * gnulib/import/m4/locale-zh.m4: Likewise.
4434 * gnulib/import/m4/mbrtowc.m4: Likewise.
4435 * gnulib/import/m4/mbsinit.m4: Likewise.
4436 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4437 * gnulib/import/m4/mbstate_t.m4: Likewise.
4438 * gnulib/import/m4/stdbool.m4: Likewise.
4439 * gnulib/import/m4/wchar_h.m4: Likewise.
4440 * gnulib/import/m4/wctype_h.m4: Likewise.
4441 * gnulib/import/m4/wint_t.m4: Likewise.
4442 * gnulib/import/mbrtowc.c: Likewise.
4443 * gnulib/import/mbsinit.c: Likewise.
4444 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4445 * gnulib/import/mbsrtowcs-state.c: Likewise.
4446 * gnulib/import/mbsrtowcs.c: Likewise.
4447 * gnulib/import/ref-add.sin: Likewise.
4448 * gnulib/import/ref-del.sin: Likewise.
4449 * gnulib/import/stdbool.in.h: Likewise.
4450 * gnulib/import/streq.h: Likewise.
4451 * gnulib/import/strnlen1.c: Likewise.
4452 * gnulib/import/strnlen1.h: Likewise.
4453 * gnulib/import/verify.h: Likewise.
4454 * gnulib/import/wchar.in.h: Likewise.
4455 * gnulib/import/wctype.in.h: Likewise.
4456
202cbf1c
JK
44572012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4458
4459 Support shell wildcards for 'set auto-load safe-path'.
4460 * auto-load.c: Include fnmatch.h.
4461 (filename_is_in_dir): Rename to ...
4462 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4463 it. Update function comment. Rename dir_len to pattern_len. New
4464 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4465 messages. Use gdb_filename_fnmatch.
4466 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4467 pattern.
4468 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4469 * defs.h (gdb_filename_fnmatch): New declaration.
4470 * utils.c: Include fnmatch.h.
4471 (gdb_filename_fnmatch): New function.
4472
fb7b5af4
SDJ
44732012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4474
4475 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4476 `-probe' and `-probe-stap' options.
4477
72d0e2c5
YQ
44782012-07-01 Yao Qi <yao@codesourcery.com>
4479
4480 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4481 always_inserted_off, and always_inserted_enums.
4482 Change always_inserted_mode's type to 'enum auto_boolean'.
4483 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4484 callers.
4485 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4486 of add_setshow_enum_cmd.
4487 * infrun.c: Remove can_use_displaced_stepping_auto,
4488 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4489 can_use_displaced_stepping_enum.
4490 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4491 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4492 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4493 add_setshow_enum_cmd.
4494
42e7ad6c
DE
44952012-06-30 Doug Evans <dje@google.com>
4496
4497 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4498 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4499 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4500
39cf75f7
DE
45012012-06-29 Doug Evans <dje@google.com>
4502
4503 * linespec.c: #include "stack.h".
4504 (decode_line_with_current_source): Moved here from symtab.c and
4505 renamed from decode_line_spec. All callers updated.
4506 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4507 renamed from decode_line_spec_1. All callers updated.
4508 * linespec.h (decode_line_with_current_source): Move declaration here
4509 from symtab.h and renamed from decode_line_spec.
4510 (decode_line_with_last_displayed): Move declaration here from symtab.h
4511 and renamed from decode_line_spec_1.
4512 * macrocmd.c: #include "linespec.h".
4513 * symtab.c: Remove #include "linespec.h".
4514
433df2d4
DE
45152012-06-28 Doug Evans <dje@google.com>
4516
1ce1cefd
DE
4517 * dwarf2read.c (get_cu_length): New function.
4518 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4519 (create_debug_types_hash_table): Ditto.
4520 (init_cutu_and_read_dies): Ditto.
4521 (init_cutu_and_read_dies_no_follow): Ditto.
4522
3b80fe9b
DE
4523 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4524
433df2d4
DE
4525 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4526 (struct abbrev_table): Define.
4527 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4528 abbrev_table.
4529 (init_cutu_and_read_dies): Update.
4530 (abbrev_table_alloc_abbrev): New function. Replaces
4531 dwarf_alloc_abbrev. All callers updated.
4532 (abbrev_table_add_abbrev): New function.
4533 (abbrev_table_lookup_abbrev): New function. Replaces
4534 dwarf2_lookup_abbrev. All callers updated.
4535 (abbrev_table_read_table): New function. Contents moved here from
4536 dwarf2_read_abbrevs.
4537 (dwarf2_read_abbrevs): Call it.
4538 (abbrev_table_free): New function.
4539 (dwarf2_free_abbrev_table): Call it.
4540
71caed83
SS
45412012-06-28 Stan Shebs <stan@codesourcery.com>
4542
4543 * osdata.c (info_osdata_command): Filter out "Title" columns
4544 from non-MI uses.
4545 * common/linux-osdata.c (struct osdata_type): Add title field.
4546 (osdata_table): Add titles to each entry.
4547 (linux_command_xfer_osdata): Add a column for title data.
4548
37ce89eb
SS
45492012-06-28 Stan Shebs <stan@codesourcery.com>
4550
4551 Make logging work for MI.
4552 * NEWS: Mention it.
4553 * interps.h (interp_set_logging_ftype): New typedef.
4554 (struct interp_procs): New field set_logging_proc.
4555 (current_interp_set_logging): Declare.
4556 * interps.c (current_interp_set_logging): New function.
4557 * cli/cli-logging.c: Include interps.h.
4558 (set_logging_redirect): Call current_interp_set_logging.
4559 (pop_output_files): Ditto.
4560 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4561 * mi/mi-console.h (mi_console_set_raw): Declare.
4562 * mi/mi-console.c (mi_console_set_raw): New function.
4563 * mi/mi-interp.c (saved_raw_stdout): New global.
4564 (mi_set_logging): New function.
4565 (_initialize_mi_interp): Add it to interp procs.
4566
659c9f3a
DE
45672012-06-28 Doug Evans <dje@google.com>
4568
a743abeb
DE
4569 * symtab.c (lookup_symbol_aux_objfile): Use
4570 ALL_OBJFILE_PRIMARY_SYMTABS.
4571
659c9f3a
DE
4572 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4573
da2d6d3d
JK
45742012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4575
4576 * common/buffer.c: Include inttypes.h and stdint.h.
4577 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4578
e5ef252a
PA
45792012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4580 Pedro Alves <palves@redhat.com>
4581
4582 * gdbthread.h (ALL_THREADS): New macro.
4583 (thread_list): Declare.
4584 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4585 going, but instead fall through to the stepping handling.
4586 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4587 the passed in signal. Adjust debug output.
4588 (resume_callback): Rename to ...
4589 (linux_nat_resume_callback): ... this. Pass the thread's last
4590 stop signal, if in "pass" state.
4591 (linux_nat_resume): Adjust to rename.
4592 (stop_wait_callback): New assertion. Don't respawn signals;
4593 instead let the LWP remain with SIGNALLED set.
4594 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4595 * remote.c (append_pending_thread_resumptions): New.
4596 (remote_vcont_resume): Call it.
4597 * target.h (target_resume): Extend comment.
4598
1d7975eb
IS
45992012-06-28 Iain Sandoe <iain@codesourcery.com>
4600
4601 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4602
2e3cf129
DE
46032012-06-27 Doug Evans <dje@google.com>
4604
4605 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4606 Delete have_addr_base, unused. All uses updated.
4607 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4608 (dwarf2_get_pc_bounds): Add ranges_base.
4609 (dwarf2_record_block_ranges): Ditto.
4610
1bb9788d
TT
46112012-06-27 Tom Tromey <tromey@redhat.com>
4612
4613 PR macros/7961:
4614 * varobj.c (varobj_create): Update.
4615 (varobj_set_value): Update.
4616 * tracepoint.c (validate_actionline): Update.
4617 (encode_actions_1): Update.
4618 * parse.c (parse_exp_1): Add 'pc' argument.
4619 (parse_exp_in_context): Add 'pc' argument. Change how
4620 expression_context_pc is set.
4621 (parse_expression): Update.
4622 (parse_field_expression): Update.
4623 * expression.h (parse_exp_1): Update.
4624 * eval.c (parse_to_comma_and_eval): Update.
4625 * breakpoint.c (set_breakpoint_condition): Update.
4626 (update_watchpoint): Update.
4627 (init_breakpoint_sal): Update
4628 (find_condition_and_thread): Update.
4629 (watch_command_1): Update.
4630 (update_breakpoint_locations): Update.
4631 * ada-lang.c (ada_read_renaming_var_value): Update.
4632 (create_excep_cond_exprs): Update.
4633
0bc3a05c
DE
46342012-06-27 Doug Evans <dje@google.com>
4635
4636 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4637 type units.
4638
4bdcc0c1
DE
46392012-06-26 Doug Evans <dje@google.com>
4640
4641 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4642 prototype.
4643 (error_check_comp_unit_head): New arg abbrev_section. All callers
4644 updated.
4645 (read_and_check_comp_unit_head): Ditto.
4646 (read_and_check_type_unit_head): Ditto.
4647
ee0bf529
SCR
46482012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4649
4650 New attribute 'last' for gdb.Symtab_and_line.
4651 * NEWS (Python Scripting): Add entry about the new attribute.
4652 * python/py-symtab.c (salpy_get_last): New function which
4653 implements the get method for the 'last' attribute of
4654 gdb.Symtab_and_line.
4655 (sal_object_getset): Add entry for the 'last' attribute.
4656
1c658ad5
DE
46572012-06-26 Doug Evans <dje@google.com>
4658
09262596
DE
4659 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4660 (dwo_sections): Add macinfo, macro.
4661 (dwarf2_locate_dwo_sections): Watch for macro sections.
4662 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4663 All callers updated. Handle DWO files.
4664
45cfd468
DE
4665 * NEWS: Mention new options "set debug dwarf2-read" and
4666 "set debug symtab-create".
4667 * dwarf2read.c (dwarf2_read_debug): New static global.
4668 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4669 (process_queue): Ditto.
4670 (process_full_comp_unit): Ditto.
4671 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4672 * elfread.c (elf_symfile_read): Add debugging printf.
4673 * minsyms.c (install_minimal_symbols): Ditto.
4674 * psymtab.c (allocate_psymtab): Ditto.
4675 * symfile.c (allocate_symtab): Ditto.
4676 * symtab.c (symtab_create_debug): New global.
4677 (_initialize_symtab): Add new option "set debug symtab-create".
4678 * symtab.h (symtab_create_debug): Declare.
4679
1c658ad5
DE
4680 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4681 (lookup_dwo_type_unit): Ditto.
4682
6fea9e18
L
46832012-06-26 Roland McGrath <roland@hack.frob.com>
4684 H.J. Lu <hongjiu.lu@intel.com>
4685
4686 * amd64-linux-nat.c: Include <sys/user.h>.
4687 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4688 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4689 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4690
4691 * configure.ac: Check if the fs_base and gs_base members of
4692 `struct user_regs_struct' exist.
4693 * config.in: Regenerated.
4694 * configure: Likewise.
4695
adb4fe3b
ME
46962012-06-25 Michael Eager <eager@eagercon.com>
4697
4698 PR python/14291
f782ad9b 4699 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4700
fc51cce1
MGD
47012012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4702
4703 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4704 register as a stack alignment in ARM mode.
4705
40a73391
JK
47062012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4707
4708 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4709 * gnulib/config.in: Regenerate.
4710 * gnulib/configure: Likewise.
4711 * gnulib/import/m4/extensions.m4: Update it.
4712 * gnulib/import/m4/gnulib-common.m4: Likewise.
4713 * gnulib/import/m4/memmem.m4: Likewise.
4714 * gnulib/import/m4/mmap-anon.m4: Likewise.
4715 * gnulib/import/m4/multiarch.m4: Likewise.
4716 * gnulib/import/stdint.in.h: Likewise.
4717
972daa01
YQ
47182012-06-24 Yao Qi <yao@codesourcery.com>
4719
4720 * corefile.c (write_memory_with_notification): New.
4721 * gdbcore.h: Declare write_memory_with_notification.
4722 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4723 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4724 * valops.c (value_assign): Likewise.
4725 * python/py-inferior.c (infpy_write_memory): Call
4726 'write_memory_with_notification'.
4727
8d6e0714
JK
47282012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4729
4730 * cc-with-index.sh: Use also -ex "set auto-load no".
4731
156942c7
DE
47322012-06-23 Doug Evans <dje@google.com>
4733
4734 PR 14125
4735 * NEWS: Document additions to .gdb_index.
4736 * dwarf2read.c: #include "gdb/gdb-index.h".
4737 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4738 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4739 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4740 (dwarf2_read_index): Recognize version 7.
4741 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4742 block_kind, domain): All callers updated.
4743 (dw2_find_symbol_file): Handle new index CU values.
4744 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4745 (add_index_entry): New args is_static, kind. All callers updated.
4746 (offset_type_compare, uniquify_cu_indices): New functions
4747 (symbol_kind): New function.
4748 (write_psymtabs_to_index): Remove duplicate CU values.
4749 (write_psymtabs_to_index): Write .gdb_index version 7.
4750
352b3eda
JB
47512012-06-22 Joel Brobecker <brobecker@adacore.com>
4752
4753 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4754 * configure: Regenerate.
4755
2678e2af
YQ
47562012-06-20 Yao Qi <yao@codesourcery.com>
4757
4758 * python/py-inferior.c: Update comments of infpy_read_memory
4759 and infpy_write_memory.
4760
95c391b6
TT
47612012-06-19 Tom Tromey <tromey@redhat.com>
4762
4763 PR exp/9514:
4764 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4765 (push_type_address_space): Remove.
4766 * parse.c (insert_into_type_stack): New function.
4767 (insert_type): Likewise.
4768 (insert_type_address_space): Rename from push_type_address_space.
4769 Insert tp_space_identifier.
4770 * c-exp.y (ptr_operator): New production.
4771 (abs_decl): Use ptr_operator.
4772 (space_identifier): Call insert_type_address_space.
4773 (ptype): Don't use const_or_volatile_or_space_identifier.
4774 (const_or_volatile_noopt): Call insert_type.
4775 (conversion_type_id, conversion_declarator): New productions.
4776 (operator): Use conversion_type_id.
4777
6ac9ef80
DE
47782012-06-18 Doug Evans <dje@google.com>
4779
422d65e7
DE
4780 * symtab.h (minimal_symbol): New member created_by_gdb.
4781 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4782 created by gdb.
4783 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4784 (search_symbols): Call it instead of lookup_symbol.
4785 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4786
49f6c839
DE
4787 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4788 Adjust address for DW_OP_GNU_addr_index.
4789 * dwarf2expr.h (dwarf_expr_context): Update comment.
4790 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4791 all callers updated. Handle TLS vars described with
4792 DW_OP_GNU_const_index.
4793 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4794 and DW_OP_GNU_const_index.
4795 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4796
6ac9ef80
DE
4797 * block.c (find_block_in_blockvector): Make explicit the fact that we
4798 ignore GLOBAL_BLOCK.
4799
4cd18215
TT
48002012-06-18 Tom Tromey <tromey@redhat.com>
4801
4802 * c-exp.y (operator): Remove trailing space after "delete" and
4803 "delete[]".
4804
a9b8d892
JK
48052012-06-18 Mark Kettenis <kettenis@gnu.org>
4806 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
4808 Switch i386 and derived targets to ON_STACK.
4809 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4810 (amd64_dicos_init_abi): Remove its installment.
4811 * dicos-tdep.c (dicos_init_abi): Remove the
4812 set_gdbarch_call_dummy_location call. Update the comment here.
4813 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4814 (i386_dicos_init_abi): Remove its installment.
4815 * i386-tdep.c (i386_push_dummy_code): New function.
4816 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4817 i386_push_dummy_code.
4818
e2e4d78b
JK
48192012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 Remove stale dummy frames.
4822 * breakpoint.c: Include dummy-frame.h.
4823 (longjmp_breakpoint_ops): New variable.
4824 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4825 bp_longjmp_call_dummy.
4826 (bpstat_what, bptype_string, print_one_breakpoint_location)
4827 (init_bp_location): Support bp_longjmp_call_dummy.
4828 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4829 (set_longjmp_breakpoint_for_call_dummy)
4830 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4831 functions.
4832 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4833 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4834 FIXME comment and extend the other comment for bp_call_dummy.
4835 (set_longjmp_breakpoint_for_call_dummy)
4836 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4837 * dummy-frame.c: Include gdbthread.h.
4838 (pop_dummy_frame_bpt): New function.
4839 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4840 (dummy_frame_discard): New function.
4841 (cleanup_dummy_frames): Update the comment about longjmps.
4842 * dummy-frame.h (dummy_frame_discard): New declaration.
4843 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4844 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4845 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4846 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4847 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4848 keep_going if IS_LONGJMP and there is no other reason to stop.
4849
09d5912c
TT
48502012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4851
4852 * remote-sim.c (sim_command_completer): Initialize
4853 variable 'result'.
4854
1788b2d3
JK
48552012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4856
4857 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4858 * dwarf2loc.c (call_site_parameter_matches): Support
4859 CALL_SITE_PARAMETER_PARAM_OFFSET.
4860 (needs_dwarf_reg_entry_value): Push stub value.
4861 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4862 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4863 * gdbtypes.h (enum call_site_parameter_kind): New item
4864 CALL_SITE_PARAMETER_PARAM_OFFSET.
4865 (struct call_site.parameter.u): New field param_offset.
4866
24c5c679
JK
48672012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4868
4869 Code cleanup: Generalize call_site.parameter key.
4870 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4871 variable dwarf_reg. New variable kind_u. Update parameters to
4872 push_dwarf_reg_entry_value.
4873 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4874 * dwarf2expr.h (enum call_site_parameter_kind)
4875 (union call_site_parameter_u): Forward declarations.
4876 (struct dwarf_expr_context_funcs): Update parameters and their
4877 description for push_dwarf_reg_entry_value.
4878 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4879 * dwarf2loc.c (call_site_parameter_matches): New function.
4880 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4881 description. Use call_site_parameter_matches.
4882 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4883 Update parameters and their description.
4884 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4885 New variable kind_u. Adjust the caller for updated parameters.
4886 (needs_dwarf_reg_entry_value): Update parameters.
4887 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4888 instead of attr. Update for the changed fields of struct
4889 call_site_parameter.
4890 * gdbtypes.h: Include dwarf2expr.h.
4891 (enum call_site_parameter_kind): New.
4892 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4893 fb_offset into new union u.
4894
ac142d96
L
48952012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4896
4897 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4898 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4899 for x32.
4900
ba224c70
L
49012012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4902
4903 * amd64-linux-nat.c (compat_x32_clock_t): New.
4904 (compat_x32_siginfo_t): Likewise.
4905 (compat_x32_siginfo_from_siginfo): Likewise.
4906 (siginfo_from_compat_x32_siginfo): Likewise.
4907 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4908 and siginfo_from_compat_x32_siginfo for x32.
4909
7ecbc825
HZ
49102012-06-15 Hui Zhu <hui_zhu@mentor.com>
4911
4912 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4913
233dfcf0
L
49142012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4915
4916 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4917 instead of gdbarch_ptr_bit.
4918 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4919 (amd64_supply_native_gregset): Likewise.
4920 (amd64_collect_native_gregset): Likewise.
4921 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4922 (amd64_supply_xsave): Likewise.
4923 (amd64_collect_fxsave): Likewise.
4924 (amd64_collect_xsave): Likewise.
4925
6da38f42
L
49262012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4927
4928 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4929 (amd64_linux_read_description): Check DS segment register for
4930 x32 process.
4931
663b969e
TT
49322012-06-15 Tom Tromey <tromey@redhat.com>
4933
4934 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4935 init_cutu_and_read_dies.
4936
d6f05027
IS
49372012-06-15 Iain Sandoe <iain@codesourcery.com>
4938
4939 * MAINTAINERS (Write After Approval): Add myself to the list.
4940
6598ed07
TT
49412012-06-15 Tom Tromey <tromey@redhat.com>
4942
4943 * valops.c (value_find_oload_method_list): Now static.
4944 * value.h (value_find_oload_method_list): Don't declare.
4945
2b214ea6
TT
49462012-06-15 Tom Tromey <tromey@redhat.com>
4947
4948 * valops.c (find_overload_match): Use value_ind.
4949
a210c238
MR
49502012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4951
4952 * infrun.c (handle_inferior_event): Correct indentation.
4953
3771a44c
DE
49542012-06-14 Doug Evans <dje@google.com>
4955
4956 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4957 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4958 All uses updated.
4959 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4960 updated. Handle DEBUG_LOC_START_LENGTH.
4961 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4962 (loclist_describe_location): Ditto.
4963
1c5a993e
MR
49642012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4965
4966 PR backtrace/13866
4967 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4968 after hiding inline functions.
4969
0b155465
JB
49702012-06-13 Joel Brobecker <brobecker@adacore.com>
4971
4972 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4973 _initialize_inf_ttrace.
4974
45717bac
JB
49752012-06-13 Joel Brobecker <brobecker@adacore.com>
4976
4977 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4978 _initialize_hppa_hpux_nat.
4979
34370865
JB
49802012-06-13 Joel Brobecker <brobecker@adacore.com>
4981
4982 * remote-sim.c (sim_command_completer): Change type of return
4983 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4984
284c5a60
MK
49852012-06-13 Mark Kettenis <kettenis@gnu.org>
4986 Jan Kratochvil <jan.kratochvil@redhat.com>
4987
4988 PR tdep/14222
4989 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4990 stack on a 16-byte boundary.
4991
2535757a
TT
49922012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4993
4994 * jit.c (finalize_symtab): Set function's return type to 'void' by
4995 default.
4996
fff4548b
MK
49972012-06-13 Mark Kettenis <kettenis@gnu.org>
4998 H.J. Lu <hongjiu.lu@intel.com>
4999
5a83521a
MK
5000 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5001 Move bits common to both the classic LP64 and the new x32 ILP32
5002 ABI here.
5003 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5004 (amd64_x32_linux_init_abi): New function.
5005 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5006 subtype.
5007
fff4548b
MK
5008 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5009 * i386-tdep.c (i386_pseudo_register_name): Make public.
5010 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5011 * amd64-tdep.c (amd64_dword_names): Add "eip".
5012 (amd64_x32_pseudo_register_type): New function
5013 (amd64_x32_init_abi): New function.
5014
dd80ea3c
JK
50152012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 PR build/14003
5018 * inferior.h (struct inferior_suspend_state): Comment out.
5019 (struct inferior): Comment out the field suspend.
5020 * infrun.c (struct infcall_suspend_state): Comment out the field
5021 inferior_suspend.
5022 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5023 out its assignment.
5024
50af5481
JK
50252012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5026
5027 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5028 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5029 function comment. Return ERROR for unresolved cases. Implement
5030 returning proper NAME.
5031 (yylex): Accept also NAME from classify_inner_name.
5032 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5033 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5034 LOC_TYPEDEF type.
5035 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5036
d55637df
TT
50372012-06-13 Tom Tromey <tromey@redhat.com>
5038
5039 * breakpoint.c (condition_completer): New function.
5040 (_initialize_breakpoint): Use it.
5041 * value.c (complete_internalvar): New function.
5042 * value.h (complete_internalvar): Declare.
5043
49c4e619
TT
50442012-06-13 Tom Tromey <tromey@redhat.com>
5045
5046 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5047 * breakpoint.c (catch_syscall_completer): Return a VEC.
5048 * cli/cli-cmds.c (complete_command): Update.
5049 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5050 (complete_on_enum): Likewise.
5051 * command.h: Include gdb_vecs.h.
5052 (completer_ftype): Change return type.
5053 (complete_on_cmdlist, complete_on_enum): Likewise.
5054 * completer.c (noop_completer, filename_completer)
5055 (location_completer): Return a VEC.
5056 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5057 to a VEC.
5058 (expression_completer, complete_line_internal, complete_line)
5059 (command_completer): Return a VEC.
5060 (gdb_completion_word_break_characters, line_completion_function):
5061 Update.
5062 * completer.h: Include gdb_vecs.h.
5063 (complete_line, noop_completer, filename_completer)
5064 (expression_completer, location_completer, command_completer):
5065 Update.
5066 * f-lang.c (f_word_break_characters): Return a VEC.
5067 * interps.c (interpreter_completer): Return a VEC.
5068 * language.h (struct language_defn)
5069 <la_make_symbol_completion_list>: Return a VEC.
5070 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5071 * symtab.c (free_completion_list): Take a VEC.
5072 (return_val_size, return_val_index): Remove.
5073 (return_val): Now a VEC.
5074 (completion_list_add_name): Update.
5075 (default_make_symbol_completion_list_break_on)
5076 (default_make_symbol_completion_list, make_symbol_completion_list)
5077 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5078 Return a VEC.
5079 (add_filename_to_list): Update.
5080 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5081 <list>: Now a VEC.
5082 (maybe_add_partial_symtab_filename): Update.
5083 (make_source_files_completion_list): Return a VEC.
5084 * symtab.h (default_make_symbol_completion_list_break_on)
5085 (default_make_symbol_completion_list, make_symbol_completion_list)
5086 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5087 (make_source_files_completion_list): Update.
5088
625e8578
TT
50892012-06-13 Tom Tromey <tromey@redhat.com>
5090
5091 * breakpoint.c (add_catch_command): Use completer_ftype.
5092 * breakpoint.h: Include command.h.
5093 (add_catch_command): Use completer_ftype.
5094 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5095 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5096 Use completer_ftype.
5097 * command.h (completer_ftype): New typedef.
5098 (set_cmd_completer): Use it.
5099 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5100 completer_ftype.
5101
5eb3b062
PA
51022012-06-13 Pedro Alves <palves@redhat.com>
5103
5104 Partial revert of previous change.
5105
5106 * serial.c (scb_base): New global.
5107 (serial_for_fd): New.
5108 (serial_open, serial_fdopen_ops): Link new serial in open serials
5109 chain.
5110 (do_serial_close): Unlink serial from the open serials chain.
5111
8b3ee56d
PA
51122012-06-12 Pedro Alves <palves@redhat.com>
5113
5114 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5115 threads here.
5116 (prepare_for_detach): No longer context switch here in non-stop
5117 mode.
5118 (fetch_inferior_event): Ditto.
5119 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5120 to the event thread before removing breakpoints. Switch to the
5121 event thread before inserting breakpoints and resuming.
5122 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5123 event thread before resuming.
5124 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5125 Switch to the event thread before removing breakpoints.
5126
5d60742e
EZ
51272012-06-12 Eli Zaretskii <eliz@gnu.org>
5128
5129 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5130 special characters correctly for the Windows shells. See
5131 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5132 report.
5133 [!__MINGW32__]: Remove extra double quote character from special
5134 characters.
5135
a6feecf7
SS
51362012-06-11 Stan Shebs <stan@codesourcery.com>
5137
5138 * ui-out.h: Remove #if 0 declarations.
5139 * ui-out.c: Remove #if 0 functions.
5140
ddefb60f
PA
51412012-06-11 Pedro Alves <palves@redhat.com>
5142
5143 * ser-base.c (run_async_handler_and_reschedule): New.
5144 (fd_event, push_event): Use it.
5145 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5146 reference count to 1.
5147 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5148 instead of xfree.
5149 (serial_is_open, serial_ref, serial_unref): New.
5150 * serial.h (serial_open): Adjust comment.
5151 (serial_is_open): Declare.
5152 (serial_close): Adjust comment.
5153 (serial_ref, serial_unref) Declare.
5154 (struct serial): New field 'refcnt'.
5155
d5ad6aa5
PA
51562012-06-11 Pedro Alves <palves@redhat.com>
5157
5158 Remove #if 0'd "connect" command, and unnecessary associated
5159 refcounting and serial reuse bits.
5160
5161 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5162 * serial.c (last_serial_opened): Delete.
5163 (scb_base): Delete.
5164 (serial_open): Adjust.
5165 (serial_for_fd): Delete.
5166 (serial_fdopen_ops, do_serial_close): Adjust.
5167 (serial_fdopen_ops): Adjust.
5168
318aa544
PA
51692012-06-11 Pedro Alves <palves@redhat.com>
5170
5171 * serial.c (do_serial_close): Remove early return when SCB is
5172 null.
5173
07261596
TT
51742012-06-11 Tom Tromey <tromey@redhat.com>
5175
5176 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5177
cc80f267
JK
51782012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5179
5180 Fix regression by the "ambiguous linespec" series.
5181 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5182 get_last_displayed_symtab and get_last_displayed_line and depending
5183 on CURSAL.
5184
356d9f9d
TT
51852012-06-11 Tom Tromey <tromey@redhat.com>
5186
5187 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5188 (dw2_find_symbol_file): Use it.
5189
232b8704
ME
51902012-06-11 Michael Eager <eager@eagercon.com>
5191
5192 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5193 * mips-linux-tdep.h (mips_signals): New
5194
e81a37f7
TT
51952012-06-11 Tom Tromey <tromey@redhat.com>
5196
5197 * infrun.c (handle_inferior_event)
5198 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5199 breakpoint.
5200 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5201 exception logic in all cases. Update comments.
5202 (insert_longjmp_resume_breakpoint): Set the exception resume
5203 breakpoint.
5204
2e81047f
MR
52052012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5206
5207 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5208
4e32eda7
SCR
52092012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5210
5211 * valarith.c (binop_types_user_defined_p): Fix a typo.
5212
18648a37 52132012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5214 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5215
5216 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5217 * arch-utils.h: Declare.
5218 * gdbarch.sh: Add return_in_first_hidden_param_p.
5219 * gdbarch.c, gdbarch.h: Regenerated.
5220 * infcall.c (call_function_by_hand): Call
5221 gdbarch_return_in_first_hidden_param_p instead of
5222 language_pass_by_reference.
5223
5224 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5225 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5226 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5227 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5228 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5229 `cplus_return_struct_by_reference'.
5230 (tic6x_return_value): Handle language cplusplus.
5231 (tic6x_return_in_first_hidden_param_p): New.
5232 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5233
034e5797
DE
52342012-06-07 Doug Evans <dje@google.com>
5235
5236 * dwarf2read.c (dwarf2_cu): Add comment.
5237
6a00aa1e
MR
52382012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5239
5240 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5241 variable.
5242 (mips_eabi_push_dummy_call): Likewise.
5243 (mips_n32n64_push_dummy_call): Likewise.
5244 (mips_o32_push_dummy_call): Likewise.
5245 (mips_o64_push_dummy_call): Likewise.
5246
eaa05d59
MR
52472012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5248
5249 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5250
de13fcf2
MR
52512012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5252
5253 * mips-tdep.c (mips_pseudo_register_type): Use
5254 mips_float_register_p.
5255
c3a01a22
PA
52562012-06-06 Pedro Alves <palves@redhat.com>
5257
5258 * infrun.c (handle_inferior_event): Remove calls to
5259 reinit_frame_cache that follow a context_switch call.
5260
d25f45d9
PA
52612012-06-06 Pedro Alves <palves@redhat.com>
5262
5263 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5264 context_switch and remove stale comment.
5265
359f5fe6
PA
52662012-06-06 Pedro Alves <palves@redhat.com>
5267
5268 * infrun.c (struct execution_control_state): Remove
5269 `new_thread_event' field.
5270 (handle_inferior_event): Simplify new threads handling; don't
5271 resume the inferior if we find a new thread.
5272
2d4c29c5
TS
52732012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5274
5275 * NEWS: Document the deprecation of SH's 'regs' command.
5276 * inferior.h (all_registers_info): Add function declaration.
5277 * sh-tdep.c (sh_show_regs): Remove variable.
5278 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5279 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5280 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5281 (sh_show_regs_command): Remove functions.
5282 (sh_gdbarch_init): Don't set sh_show_regs.
5283 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5284 'info all-registers'.
5285 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5286 (sh64_show_regs): Remove functions.
5287 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5288
f5f1cdb6
JK
52892012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 * configure.ac: Move development=true below AC_INIT.
5292 * configure: Regenerate.
5293
bf6309af
SS
52942012-06-05 Stan Shebs <stan@codesourcery.com>
5295
5296 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5297 gdb_stdout.
5298
45aa4659
JK
52992012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5300
5301 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5302 argument as ssize_t.
5303 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5304 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5305 * target.c (target_read_stack, target_write_memory)
5306 (target_write_raw_memory): Likewise.
5307 * target.h (target_read_stack, target_write_memory)
5308 (target_write_raw_memory): Likewise.
5309
1b162304
JK
53102012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5311
5312 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5313 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5314 * target.c (target_read_memory): Change LEN to ssize_t.
5315 * target.h (target_read_memory): Change LEN to ssize_t.
5316
8556afb4
PA
53172012-06-05 Pedro Alves <palves@redhat.com>
5318
5319 PR backtrace/13866
5320
5321 * breakpoint.c (until_break_command): Only fetch the selected
5322 frame after decode_line_1.
5323
fb139f32
PA
53242012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5325
5326 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5327 event breakpoint at _start, __start or main if a program
5328 interpreter is not found.
5329
a8e1bb34
JB
53302012-06-05 Joel Brobecker <brobecker@adacore.com>
5331
5332 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5333 Add declaration.
5334 * windows-tdep.c: #include "objfiles.h".
5335 (windows_iterate_over_objfiles_in_search_order): New function.
5336 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5337 iterate_over_objfiles_in_search_order gdbarch method to
5338 windows_iterate_over_objfiles_in_search_order.
5339 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5340
19630284
JB
53412012-06-05 Joel Brobecker <brobecker@adacore.com>
5342
5343 * gdbarch.sh: Add generation of
5344 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5345 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5346 (iterate_over_objfiles_in_search_order): New gdbarch method.
5347 * gdbarch.h, gdbarch.c: Regenerate.
5348 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5349 Add declaration.
5350 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5351 New function.
5352 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5353 out of lookup_symbol_aux_symtabs.
5354 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5355 call to lookup_symbol_aux_objfile.
5356 (struct global_sym_lookup_data): New type.
5357 (lookup_symbol_global_iterator_cb): New function.
5358 (lookup_symbol_global): Search for symbol using
5359 gdbarch_iterate_over_objfiles_in_search_order and
5360 lookup_symbol_global_iterator_cb.
5361 * findvar.c (struct minsym_lookup_data): New type.
5362 (minsym_lookup_iterator_cb): New function.
5363 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5364 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5365 and minsym_lookup_iterator_cb.
5366
67ff19f7
JB
53672012-06-05 Joel Brobecker <brobecker@adacore.com>
5368
5369 Revert the following patch:
5370 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5371 try locating the symbol in the symbol's own objfile first, before
5372 extending the search to all objfiles.
5373 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5374 out of lookup_symbol_aux_symtabs.
5375 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5376 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5377 Do not search EXCLUDE_OBJFILE.
5378 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5379 (lookup_symbol_global): Search for matches in the block's objfile
5380 first, before searching all other objfiles.
5381
ccab2054
JB
53822012-06-05 Joel Brobecker <brobecker@adacore.com>
5383
5384 * breakpoint.c (find_condition_and_thread): Stop parsing
5385 as soon as the first invalid keyword is found.
5386
e23d4a9c
JB
53872012-06-05 Joel Brobecker <brobecker@adacore.com>
5388
5389 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5390
70160166
JB
53912012-06-05 Joel Brobecker <brobecker@adacore.com>
5392
5393 * config/djgpp/djcheck.sh: Add copyright header.
5394
399501a5
JB
53952012-06-05 Joel Brobecker <brobecker@adacore.com>
5396
5397 * copyright.py (update_files, main): Fix path to update-copyright
5398 script.
5399
3770a159
JB
54002012-06-05 Joel Brobecker <brobecker@adacore.com>
5401
5402 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5403 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5404 for which a reminder to update by hand is printed.
5405
4aad0dfc
DE
54062012-06-04 Doug Evans <dje@google.com>
5407
5408 * buildsym.c (make_blockvector): Add comment.
5409
1f8cf220
PA
54102012-06-04 Pedro Alves <palves@redhat.com>
5411
5412 * arch-utils.c (default_gdb_signal_from_target): Delete.
5413 * arch-utils.h (default_gdb_signal_from_target): Delete.
5414 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5415 gdbarch_gdb_signal_from_target_p.
5416 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5417 predicate).
5418 * gdbarch.h: Regenerate.
5419 * gdbarch.c: Regenerate.
5420
86b49880
PA
54212012-06-04 Pedro Alves <palves@redhat.com>
5422
5423 * gdbarch.sh (gdb_signal_from_target): Mention that the
5424 implementation of the method must be host independent.
5425 * gdbarch.h: Regenerate.
5426
fe78531d
JK
54272012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5430 parameters.
5431 (target_read_memory_bfd): New function.
5432 (symbol_file_add_from_memory): Use it.
5433
d790cf0a
DE
54342012-06-03 Doug Evans <dje@google.com>
5435
78e5175a
DE
5436 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5437 of primary symtab.
5438 (basic_lookup_transparent_type): Ditto.
5439
d790cf0a
DE
5440 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5441 (ALL_PRIMARY_SYMTABS): Use it.
5442 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5443 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5444 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5445 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5446 (basic_lookup_transparent_type): Ditto.
5447
c6e5ee5e
SDJ
54482012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5449
5450 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5451 it to optimize resolution of demangled name.
5452
a68ffae9
JK
54532012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5454
5455 * configure.ac (development): Define new variable.
5456 Call AC_CHECK_LIB for mcheck if $development.
5457 (ERROR_ON_WARNING): Enable it by default only if $development.
5458 * config.in: Regenerate.
5459 * configure: Regenerate.
5460
5299c1c4
JK
54612012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5462
5463 * target.c (target_read_memory): Make LEN argument as size_t.
5464 * target.h (target_read_memory): Likewise.
5465
54662012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5467
5468 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5469
0c56f59b
EBM
54702012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5471
5472 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5473 BookE interface for PowerPC server processors if not available
5474 in the Linux Kernel.
5475
71bdabee
KS
54762012-05-31 Keith Seitz <keiths@redhat.com>
5477
5478 * linespec.c (decode_objc): Add cleanup to free
5479 INFO.FILE_SYMTABS.
5480 (find_linespec_symbols): Add cleanup to free CLASSES.
5481 * symfile.c (find_separate_debug_file_by_debuglink): Add
5482 cleanup to free DEBUGLINK.
5483 * ui-out.c (clear_header_list): No need to check if
5484 HEADER_NEXT.COLHDR is NULL.
5485 Free HEADER_NEXT.COL_NAME.
5486
acbd605d
MGD
54872012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5488
5489 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5490 warning.
5491
65662cde
PA
54922012-05-30 Jeff Kenton <jkenton@tilera.com>
5493
5494 * configure.host (gdb_host_cpu): Handle tilegx*.
5495 (gdb_host): Handle tilegx-*-linux*.
5496 * tilegx-linux-nat.c: New file.
5497 * config/tilegx/linux.mh: New file.
5498
ade64f0e
PA
54992012-05-30 Jeff Kenton <jkenton@tilera.com>
5500
5501 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5502 tilegx-linux-tdep.o.
5503 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5504 tilegx-linux-tdep.c.
5505 * configure.tgt: Handle tilegx-*-linux*.
5506 * tilegx-tdep.h: New file.
5507 * tilegx-tdep.c: New file.
5508 * tilegx-linux-tdep.c: New file.
5509 * regformats/reg-tilegx.dat: New file.
5510
bb08bdbd
EBM
55112012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5512
5513 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5514 accounting of hw watchpoints on ppc.
5515
ebd86fb5
TJB
55162012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5517
5518 * source.c (openp): Expand tilde in path entries.
5519
0a0edcd5
DE
55202012-05-29 Doug Evans <dje@google.com>
5521
98cc87bd
DE
5522 * buildsym.c (block_compar): Fix comment.
5523 (end_symtab): Fix and clarify some comments.
5524
0a0edcd5
DE
5525 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5526 cleanup_undefined_types.
5527 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5528 All callers updated.
5529
6f0c7050
TT
55302012-05-29 Tom Tromey <tromey@redhat.com>
5531
5532 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5533 fails.
5534 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5535 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5536 fails.
5537 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5538 fails.
5539
ec95993c
TG
55402012-05-29 Tristan Gingold <gingold@adacore.com>
5541
5542 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5543 (struct darwin_info): ... New struct.
5544 (solib_darwin_pspace_data): New variable.
5545 (darwin_pspace_data_cleanup): New function.
5546 (get_darwin_info): Likewise.
5547 (darwin_dyld_version_ok, darwin_load_image_infos)
5548 (darwin_solib_get_all_image_info_addr_at_init)
5549 (darwin_solib_read_all_image_info_addr): Add info argument.
5550 Adjust code.
5551 (darwin_current_sos): Use per pspace structure.
5552 (darwin_solib_create_inferior_hook): Likewise.
5553 (darwin_clear_solib): Likewise.
5554 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5555
ae25568b
PA
55562012-05-28 Pedro Alves <palves@redhat.com>
5557
5558 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5559 block that uses them. Clear ecss before handling each event.
5560
0c5bf5a9
JK
55612012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5562
5563 * solib-svr4.c (svr4_current_sos): New comment on
5564 svr4_current_sos_via_xfer_libraries fall back.
5565
bfb05775
JK
55662012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5567
5568 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5569 it as a fallback for TYPE_IS_OPAQUE.
5570 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5571 symbols for lookup_symbol.
5572
685b1105
JK
55732012-05-24 John Steele Scott <toojays@toojays.net>
5574
5575 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5576 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5577 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5578 (check_producer): ... this new function, which also checks for ICC
5579 and caches the result.
5580 (producer_is_icc): New function.
5581 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5582 producer was ICC.
5583
22203bbf
PA
55842012-05-24 Pedro Alves <palves@redhat.com>
5585
5586 PR gdb/7205
5587
5588 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5589 (default_gdb_signal_to_target): ... this. Add comment.
5590 (default_gdb_signal_from_host): Rename to ...
5591 (default_gdb_signal_from_target): ... this. Add comment.
5592 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5593 (default_gdb_signal_to_target): ... this.
5594 (default_gdb_signal_from_host): Rename to ...
5595 (default_gdb_signal_from_target): ... this.
5596 * corelow.c (core_open): Adjust to naming change. Replace comment.
5597 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5598 (gdb_signal_from_target): ... this. Adjust to
5599 default_gdb_signal_from_host naming change. Extend comment.
5600 (gdb_signal_to_host): Rename to ...
5601 (gdb_signal_to_target): ... this. Adjust to
5602 default_gdb_signal_to_host naming change.
5603 * gdbarch.h, gdbarch.c: Renegerate.
5604
a493e3e2
PA
56052012-05-24 Pedro Alves <palves@redhat.com>
5606
5607 PR gdb/7205
5608
f782ad9b 5609 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5610
2ea28649
PA
56112012-05-24 Pedro Alves <palves@redhat.com>
5612
5613 PR gdb/7205
5614
5615 Replace target_signal with gdb_signal throughout.
5616
b09846a9
PA
56172012-05-24 Pedro Alves <palves@redhat.com>
5618
5619 PR tui/14159
5620
5621 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5622 string, instead of reusing the va_list argument.
5623
e77c107e
TT
56242012-05-24 Tom Tromey <tromey@redhat.com>
5625
5626 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5627 Remove.
5628
9fccedf7
DE
56292012-05-23 Doug Evans <dje@google.com>
5630
d50bd42b
DE
5631 * symtab.c (search_symbols): Formatting fixes.
5632 (print_symbol_info): Formatting fixes.
5633
9fccedf7
DE
5634 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5635 int64_t change to leb128 API.
5636 (read_encoded_value, decode_frame_entry_1): Ditto.
5637 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5638 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5639 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5640 (execute_stack_op): Ditto.
5641 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5642 (safe_read_uleb128, safe_read_sleb128): Ditto.
5643 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5644 (dwarf2_compile_expr_to_ax): Ditto.
5645 (locexpr_describe_location_piece): Ditto.
5646 (disassemble_dwarf_expression): Ditto.
5647 (locexpr_describe_location_1): Ditto.
5648
f3e0e960
SS
56492012-05-23 Stan Shebs <stan@codesourcery.com>
5650 Kwok Cheung Yeung <kcy@codesourcery.com>
5651
5652 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5653 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5654 (mi-cmd-info.o): New rule.
5655 * osdata.h (info_osdata_command): New declaration.
5656 * osdata.c (info_osdata_command): Change to non-static.
5657 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5658 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5659 * mi/mi-cmd-info.c: New file.
5660
c51fe631
DE
56612012-05-23 Doug Evans <dje@google.com>
5662
71cddcc1
DE
5663 * symtab.c (search_symbols): Pass NULL for file_matcher to
5664 expand_symtabs_matching if there are no files to match.
5665
c51fe631
DE
5666 * gdbtypes.c (lookup_typename): Simplify.
5667
a79378d4
PA
56682012-05-23 Pedro Alves <palves@redhat.com>
5669
5670 * arch-utils.h (default_target_signal_to_host): Delete.
5671 * arch-utils.c (default_target_signal_to_host): Delete.
5672 * gdbarch.sh (target_signal_to_host): Remove.
5673 * gdbarch.h, gdbarch.c: Regenerate.
5674
f664829e
DE
56752012-05-22 Doug Evans <dje@google.com>
5676
5677 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5678 "const gdb_byte *".
5679 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5680 (execute_cfa_program): Update to match API of leb128 functions.
5681 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5682 "const gdb_byte *".
5683 (read_unsigned_leb128, read_signed_leb128): Delete.
5684 (read_initial_length): Change type of buf argument to
5685 "const gdb_byte *".
5686 (read_encoded_value): Update to match API of leb128 functions.
5687 (decode_frame_entry): Change result to "const gdb_byte *", and
5688 similarly for "start" parameter.
5689 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5690 (dwarf2_build_frame_info): Change local frame_ptr to
5691 "const gdb_byte *".
5692 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5693 read_uleb128, read_sleb128. All callers updated.
5694 (safe_skip_leb128): New function.
5695 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5696 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5697 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5698 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5699 read_uleb128, read_sleb128.
5700 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5701 (execute_stack_op): Update to match API of leb128 functions.
5702 * dwarf2expr.h: #include "leb128.h".
5703 (read_uleb128, read_sleb128): Delete.
5704 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5705 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5706 * dwarf2loc.c (debug_loc_kind): New enum.
5707 (decode_debug_loc_addresses): New function.
5708 (decode_debug_loc_dwo_addresses): New function.
5709 (dwarf2_find_location_expression): Rewrite.
5710 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5711 (locexpr_describe_location_piece): Ditto.
5712 (disassemble_dwarf_expression): Ditto.
5713 (locexpr_describe_location_1): Ditto.
5714 (loclist_describe_location): Rewrite.
5715 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5716 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5717 (dwarf2_section_buffer_overflow_complaint): Renamed from
5718 dwarf2_macros_too_long_complaint. All callers updated.
5719 (skip_leb128): Delete.
5720 (init_cu_die_reader): Initialize reader->buffer_end.
5721 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5722 (skip_form_bytes): New arg buffer_end. All callers updated.
5723 Replace call to skip_leb128 with gdb_skip_leb128.
5724 (skip_unknown_opcode): New arg mac_end. All callers updated.
5725 (fill_in_loclist_baton): Initialize baton->from_dwo.
5726
837a1b32
MR
57272012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5728
5729 * mips-linux-nat.c (mips_linux_read_description): Use a more
5730 verbose error message.
5731
d0e64392
MR
57322012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5733
5734 * NEWS: Add MIPS/Linux DSP support.
5735 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5736 (SIGCONTEXT_DSPCTL): New macro.
5737 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5738 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5739 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5740 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5741 (N64_SIGCONTEXT_HI3): Likewise.
5742 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5743 (N64_SIGCONTEXT_LO3): Likewise.
5744 (N64_SIGCONTEXT_DSPCTL): Likewise.
5745 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5746 (mips_linux_o32_sigframe_init): Handle DSP registers.
5747 (mips_linux_n32n64_sigframe_init): Likewise.
5748
8bea7ed1
PM
57492012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5750
5751 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5752 call to abort.
5753
dab06dbe
PA
57542012-05-22 Pedro Alves <palves@redhat.com>
5755
5756 * target.h (store_waitstatus): Move declaration ...
5757 * inf-child.h (store_waitstatus): ... here.
5758 * target.c: Move inclusion of gdb_wait.h, and ...
5759 (store_waitstatus): ... this ...
5760 * inf-child.c: ... here.
5761 * linux-nat.c: Include inf-child.h.
5762 * rs6000-nat.c: Include inf-child.h.
5763 * spu-linux-nat.c: Include inf-child.h.
5764
43011e52
PM
57652012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5766
5767 * tracepoint.c (start_tracing): Add missing i18n markup.
5768 (stop_tracing, set_trace_user): Ditto.
5769 (set_trace_notes, set_trace_stop_notes): Ditto.
5770
b1af9e97
TT
57712012-05-21 Tom Tromey <tromey@redhat.com>
5772
5773 PR c++/7173:
5774 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5775 types.
5776 * value.h (value_cast_pointers): Update.
5777 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5778 (value_cast): Update.
5779 (update_search_result): New function.
5780 (do_search_struct_field): New, from search_struct_field. Check
5781 for ambiguous results.
5782 (search_struct_field): Rewrite.
5783 * infcall.c (value_arg_coerce): Update.
5784 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5785 value_cast_pointers.
5786 * ada-lang.c (ada_convert_actual): Update.
5787
e9e5e6b3
TT
57882012-05-21 Tom Tromey <tromey@redhat.com>
5789
5790 * macroexp.c (macro_stringify): Terminate the string.
5791
1564a261
JK
57922012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5793
5794 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5795 Describe it.
5796 * auto-load.c (auto_load_expand_dir_vars): New function.
5797 (auto_load_safe_path_vec_update): Use it, remove the
5798 substitute_path_component call thanks to it.
5799 (auto_load_objfile_script): Remove the debug_file_directory processing.
5800 Use auto_load_expand_dir_vars, remove the substitute_path_component
5801 call thanks to it.
5802 * configure: Regenerate.
5803 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5804 path. Escape $ also for $debugdir.
5805 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5806 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5807
a3ec0bb1
DE
58082012-05-20 Doug Evans <dje@google.com>
5809
5810 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5811 before use. Check for symtab->includes == NULL before scanning it.
5812
d467df4e
MR
58132012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5814
5815 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5816
4cc0665f
MR
58172012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5818
5819 * NEWS: Add microMIPS support and "set mips compression",
5820 "show mips compression" commands.
5821 * mips-tdep.h (mips_isa): New enum.
5822 (gdbarch_tdep): Add mips_isa.
5823 (mips_pc_is_mips16): Update prototype.
5824 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5825 * mips-tdep.c (mips_compression_mips16): New variable.
5826 (mips_compression_micromips): Likewise.
5827 (mips_compression_strings): Likewise.
5828 (mips_compression_string): Likewise.
5829 (is_mips16_isa, is_micromips_isa): New functions.
5830 (is_mips16_addr): Rename to...
5831 (is_compact_addr): ... this.
5832 (unmake_mips16_addr): Likewise to...
5833 (unmake_compact_addr): ... this.
5834 (make_mips16_addr): Likewise to...
5835 (make_compact_addr): ... this.
5836 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5837 functions.
5838 (mips_elf_make_msymbol_special): Handle microMIPS code.
5839 (msymbol_is_special): Rename to...
5840 (msymbol_is_mips16): ... this.
5841 (mips_make_symbol_special, mips_pc_is_mips16): Update
5842 accordingly.
5843 (msymbol_is_mips, msymbol_is_micromips): New functions.
5844 (mips16_to_32_reg): Rename to...
5845 (mips_reg3_to_reg): ... this.
5846 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5847 (mips_pc_isa): Likewise.
5848 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5849 code.
5850 (mips_fetch_instruction): Pass return status instead of printing
5851 an error message if requested. Handle microMIPS code. Bail out
5852 on an invalid ISA.
5853 (micromips_op): New macro.
5854 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5855 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5856 (b6s4_op, b7s3_reg): Likewise.
5857 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5858 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5859 (mips_insn_size): New function.
5860 (mips32_next_pc): Update mips_fetch_instruction call.
5861 (micromips_relative_offset7): New function.
5862 (micromips_relative_offset10): Likewise.
5863 (micromips_relative_offset16): Likewise.
5864 (micromips_pc_insn_size): Likewise.
5865 (micromips_bc1_pc): Likewise.
5866 (micromips_next_pc): Likewise.
5867 (unpack_mips16): Update mips_fetch_instruction call.
5868 (extended_mips16_next_pc): Update according to change to
5869 mips16_to_32_reg.
5870 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5871 code.
5872 (mips16_scan_prologue): Update mips_fetch_instruction call.
5873 Update according to change to mips16_to_32_reg.
5874 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5875 (mips_insn16_frame_base_sniffer): Likewise.
5876 (micromips_decode_imm9): New function.
5877 (micromips_scan_prologue): Likewise.
5878 (mips_micro_frame_cache): Likewise.
5879 (mips_micro_frame_this_id): Likewise.
5880 (mips_micro_frame_prev_register): Likewise.
5881 (mips_micro_frame_sniffer): Likewise.
5882 (mips_micro_frame_unwind): New variable.
5883 (mips_micro_frame_base_address): New function.
5884 (mips_micro_frame_base): New variable.
5885 (mips_micro_frame_base_sniffer): New function.
5886 (mips32_scan_prologue): Update mips_fetch_instruction call.
5887 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5888 rather than for MIPS16.
5889 (mips_insn32_frame_base_sniffer): Likewise.
5890 (mips_addr_bits_remove): Handle microMIPS code.
5891 (deal_with_atomic_sequence): Rename to...
5892 (mips_deal_with_atomic_sequence): ... this. Update the type
5893 of the variable used to hold an instruction. Remove the ISA bit
5894 check. Update mips_fetch_instruction call.
5895 (micromips_deal_with_atomic_sequence): New function.
5896 (deal_with_atomic_sequence): Likewise.
5897 (mips_about_to_return): Handle microMIPS code. Update
5898 mips_fetch_instruction call.
5899 (heuristic_proc_start): Check for the standard MIPS ISA rather
5900 than for MIPS16. Update mips_pc_is_mips16 and
5901 mips_fetch_instruction calls. Handle microMIPS code.
5902 (mips_push_dummy_code): Handle microMIPS code.
5903 (mips_eabi_push_dummy_call): Likewise.
5904 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5905 (mips_o64_push_dummy_call): Handle microMIPS code.
5906 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5907 (is_delayed): Remove function.
5908 (mips_single_step_through_delay): Replace the call to is_delayed
5909 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5910 Handle microMIPS code.
5911 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5912 microMIPS code.
5913 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5914 call.
5915 (micromips_in_function_epilogue_p): New function.
5916 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5917 call.
5918 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5919 Handle microMIPS.
5920 (gdb_print_insn_mips): Likewise.
5921 (mips_breakpoint_from_pc): Likewise.
5922 (mips_remote_breakpoint_from_pc): New function.
5923 (mips32_instruction_has_delay_slot): Simplify making use of the
5924 updated mips_fetch_instruction interface.
5925 (micromips_instruction_has_delay_slot): New function.
5926 (mips16_instruction_has_delay_slot): Simplify making use of the
5927 updated mips_fetch_instruction interface.
5928 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5929 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5930 calls. Handle microMIPS code.
5931 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5932 (mips_skip_trampoline_code): Handle microMIPS code.
5933 (global_mips_compression): New function.
5934 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5935 file flags. Register the microMIPS remote breakpoint handler
5936 and heuristic frame unwinder.
5937 (show_mips_compression): New function.
5938 (_initialize_mips_tdep): Add the "set mips compression" and
5939 "show mips compression" commands.
5940
22e048c9
SDJ
59412012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5942
5943 * ada-lang.c:
5944 * ada-tasks.c:
5945 * ada-varobj.c:
5946 * amd64-darwin-tdep.c:
5947 * arm-symbian-tdep.c:
5948 * arm-tdep.c:
5949 * avr-tdep.c:
5950 * ax-gdb.c:
5951 * bfin-linux-tdep.c:
5952 * breakpoint.c:
5953 * c-valprint.c:
5954 * cli/cli-cmds.c:
5955 * coffread.c:
5956 * cp-support.c:
5957 * cris-tdep.c:
5958 * dwarf2-frame-tailcall.c:
5959 * dwarf2-frame.c:
5960 * dwarf2expr.c:
5961 * dwarf2loc.c:
5962 * dwarf2read.c:
5963 * elfread.c:
5964 * eval.c:
5965 * expprint.c:
5966 * f-valprint.c:
5967 * frv-tdep.c:
5968 * h8300-tdep.c:
5969 * hppa-hpux-tdep.c:
5970 * hppa-tdep.c:
5971 * hppanbsd-tdep.c:
5972 * i386-nto-tdep.c:
5973 * i386-tdep.c:
5974 * i387-tdep.c:
5975 * ia64-tdep.c:
5976 * jit.c:
5977 * linespec.c:
5978 * linux-tdep.c:
5979 * lm32-tdep.c:
5980 * m2-valprint.c:
5981 * m32c-tdep.c:
5982 * m32r-rom.c:
5983 * m32r-tdep.c:
5984 * m68k-tdep.c:
5985 * m68klinux-tdep.c:
5986 * mi/mi-main.c:
5987 * microblaze-tdep.c:
5988 * mips-linux-tdep.c:
5989 * mips-tdep.c:
5990 * mn10300-tdep.c:
5991 * p-valprint.c:
5992 * parse.c:
5993 * ppc-linux-tdep.c:
5994 * ppc-sysv-tdep.c:
5995 * printcmd.c:
5996 * python/py-finishbreakpoint.c:
5997 * python/py-inferior.c:
5998 * python/py-infthread.c:
5999 * python/py-type.c:
6000 * python/python.c:
6001 * remote-fileio.c:
6002 * remote-m32r-sdi.c:
6003 * remote-mips.c:
6004 * reverse.c:
6005 * rl78-tdep.c:
6006 * rs6000-aix-tdep.c:
6007 * rs6000-tdep.c:
6008 * s390-tdep.c:
6009 * score-tdep.c:
6010 * sh64-tdep.c:
6011 * skip.c:
6012 * solib-darwin.c:
6013 * solib-dsbt.c:
6014 * solib-frv.c:
6015 * sparc-tdep.c:
6016 * spu-multiarch.c:
6017 * spu-tdep.c:
6018 * stack.c:
6019 * symfile.c:
6020 * symtab.c:
6021 * tic6x-tdep.c:
6022 * tracepoint.c:
6023 * v850-tdep.c:
6024 * valarith.c:
6025 * valprint.c:
6026 * value.c:
6027 * xcoffread.c:
6028 * xtensa-tdep.c:
6029 * ada-lang.c:
6030 * ada-tasks.c:
6031 * ada-varobj.c:
6032 * amd64-darwin-tdep.c:
6033 * arm-symbian-tdep.c:
6034 * arm-tdep.c: Delete unused variables.
6035
aff139ff
JK
60362012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6037
6038 Rename $ddir to $datadir.
6039 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6040 * auto-load.c (auto_load_safe_path_vec_update)
6041 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6042 * configure: Regenerate.
6043 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6044 Likewise. Remove the 'use $ddir' help string.
6045
f7bfa992
JK
60462012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6047
6048 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6049 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6050
9cb709b6
TT
60512012-05-18 Tom Tromey <tromey@redhat.com>
6052
6053 PR exp/13907:
6054 * valprint.h (struct value_print_options) <symbol_print>: New
6055 field.
6056 * valprint.c (user_print_options): Add default for symbol_print.
6057 (show_symbol_print): New function.
6058 (generic_val_print): Respect symbol_print.
6059 (_initialize_valprint): Add "print symbol" setting.
6060 * f-valprint.c (f_val_print): Respect symbol_print.
6061 * c-valprint.c (c_val_print): Respect symbol_print.
6062 * NEWS: Update.
6063 * printcmd.c (print_address_symbolic): Return int. Ignore some
6064 zero-size symbols.
6065 (print_address_demangle): Return int.
6066 * defs.h: (print_address_symbolic): Return int.
6067 * value.h (print_address_demangle): Return int.
6068
b012acdd
TT
60692012-05-18 Tom Tromey <tromey@redhat.com>
6070
6071 * valprint.c (val_print_string): Don't print leading space.
6072 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6073 print space before string or vtbl.
6074 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6075 before string.
6076 * jv-valprint.c (java_value_print): Print space before string.
6077 * go-valprint.c (print_go_string): Print space before string.
6078 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6079 space before string.
6080 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6081 space before string or vtbl.
6082 * auxv.c (fprint_target_auxv): Print space after address.
6083
1d51a733
TT
60842012-05-18 Tom Tromey <tromey@redhat.com>
6085
6086 * printcmd.c (print_address_demangle): Remove special case for 0.
6087
edf0c1b7
TT
60882012-05-18 Tom Tromey <tromey@redhat.com>
6089
6090 * printcmd.c (print_address_demangle): Add 'opts' argument.
6091 * p-valprint.c (pascal_val_print): Update.
6092 * jv-valprint.c (java_val_print): Update.
6093 * value.h: Update.
6094 * valprint.c (generic_val_print): Update.
6095 (print_function_pointer_address): Add 'options' argument. Remove
6096 'addressprint' argument. Update.
6097 * m2-valprint.c (print_unpacked_pointer): Update.
6098 * gnu-v3-abi.c (print_one_vtable): Update.
6099 (gnuv3_print_method_ptr): Update.
6100 * f-valprint.c (f_val_print): Update.
6101 * cp-valprint.c (cp_print_value_fields): Update.
6102 * valprint.h (print_function_pointer_address): Update.
6103 * c-valprint.c (c_val_print): Update.
6104
9703b513
TT
61052012-05-18 Tom Tromey <tromey@redhat.com>
6106
6107 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6108 directly corresponding to the found psymtab.
6109 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6110 (dw2_find_pc_sect_symtab): Use it.
6111 * block.h (blockvector_contains_pc): Declare.
6112 * block.c (find_block_in_blockvector): New function.
6113 (blockvector_for_pc_sect): Use it.
6114 (blockvector_contains_pc): New function.
6115
5a439849
MR
61162012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6117
6118 * mips-tdep.h (mips_write_pc): New prototype.
6119 * mips-tdep.c (mips_write_pc): Make external, add description.
6120 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6121 add description.
6122
8376de04
MR
61232012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6124
6125 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6126 mips_regnum->pc.
6127 (mips_unwind_pc, mips_write_pc): Likewise.
6128 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6129 gdbarch_read_pc.
6130
d3581e61
JB
61312012-05-17 Joel Brobecker <brobecker@adacore.com>
6132
6133 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6134 proc_warn, proc_error, proc_get_status, proc_flags,
6135 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6136 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6137 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6138 proc_stop_process, proc_wait_for_stop, proc_run_process,
6139 proc_set_traced_signals, proc_set_traced_faults,
6140 proc_set_traced_sysentry, proc_set_traced_sysexit,
6141 proc_set_held_signals, proc_get_held_signals,
6142 proc_get_traced_signals, proc_get_traced_faults,
6143 proc_get_traced_sysentry, proc_get_traced_sysexit,
6144 proc_clear_current_fault, proc_set_current_signal,
6145 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6146 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6147 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6148 proc_get_current_thread, proc_get_current_thread,
6149 proc_get_current_thread, proc_update_threads,
6150 proc_update_threads, proc_update_threads, proc_update_threads,
6151 proc_iterate_over_threads, procfs_find_new_threads,
6152 procfs_pid_to_str): Make static. Remove advance declaration.
6153 (proc_cursig): Make static. Conditionalized defintion on
6154 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6155 (proc_syscall, proc_set_kill_on_last_close,
6156 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6157 proc_get_pending_signals, proc_get_signal_actions,
6158 proc_trace_signal, proc_ignore_signal): Delete.
6159
81b9b86e
SDJ
61602012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6161
6162 * coffread.c (cs_section_address): Passing proper argument for
6163 `bfd_get_section_vma'.
6164 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6165 `bfd_get_section_flags'.
6166 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6167 `bfd_get_section_vma'.
6168
abc9d0dc
TT
61692012-05-16 Tom Tromey <tromey@redhat.com>
6170
6171 PR macros/13205:
6172 * macrotab.h: (macro_define_special): Declare.
6173 (enum macro_special_kind): New.
6174 (struct macro_definition) <argc, replacement>: Update comments.
6175 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6176 (macro_define_object_internal): New function.
6177 (macro_define_object): Use it.
6178 (macro_define_special): New function.
6179 (fixup_definition): New function.
6180 (macro_lookup_definition, foreach_macro_in_scope)
6181 (foreach_macro): Use fixup_definition.
6182 * macroexp.h (macro_stringify): Declare.
6183 * macroexp.c (free_buffer_return_text): New function.
6184 (stringify): Constify "arg".
6185 (macro_stringify): New function.
6186 * dwarf2read.c (macro_start_file): Call macro_define_special.
6187
6a3a010b 61882012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6189 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6190
6191 * breakpoint.h (bp_location): Add related_address member.
6192 * inferior.h (get_return_value): Take a pointer to struct value
6193 instead of struct type for the function requested.
6194 * value.h (using_struct_return): Likewise.
6195 * gdbarch.sh (return_value): Take a pointer to struct value
6196 instead of struct type for the function requested.
6197 * breakpoint.c (set_breakpoint_location_function): Initialize
6198 related_address for bp_gnu_ifunc_resolver breakpoints.
6199 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6200 requested function's address to gdbarch_return_value.
6201 * eval.c (evaluate_subexp_standard): Pass the requested
6202 function's address to using_struct_return.
6203 * infcall.c (call_function_by_hand): Pass the requested
6204 function's address to using_struct_return and
6205 gdbarch_return_value.
6206 * infcmd.c (get_return_value): Take a pointer to struct value
6207 instead of struct type for the function requested.
6208 (print_return_value): Update accordingly.
6209 (finish_command_continuation): Likewise.
6210 * stack.c (return_command): Pass the requested function's
6211 address to using_struct_return and gdbarch_return_value.
6212 * value.c (using_struct_return): Take a pointer to struct value
6213 instead of struct type for the function requested. Pass the
6214 requested function's address to gdbarch_return_value.
6215 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6216 New function_value member, replacing function_type.
6217 (bpfinishpy_dealloc): Update accordingly.
6218 (bpfinishpy_pre_stop_hook): Likewise.
6219 (bpfinishpy_init): Likewise. Record the requested function's
6220 address.
6221 * mips-tdep.c (mips_fval_reg): New enum.
6222 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6223 words put in GP registers.
6224 (mips_o64_push_dummy_call): Update a comment.
6225 (mips_o32_return_value): Take a pointer to struct value instead
6226 of struct type for the function requested and use it to check if
6227 using the MIPS16 calling convention. Return the designated
6228 general purpose registers for floating-point values returned in
6229 MIPS16 mode.
6230 (mips_o64_return_value): Likewise.
6231 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6232 (ppc_sysv_abi_broken_return_value): Likewise.
6233 (ppc64_sysv_abi_return_value): Likewise.
6234 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6235 value instead of struct type for the function requested.
6236 * amd64-tdep.c (amd64_return_value): Likewise.
6237 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6238 * arm-tdep.c (arm_return_value): Likewise.
6239 * avr-tdep.c (avr_return_value): Likewise.
6240 * bfin-tdep.c (bfin_return_value): Likewise.
6241 * cris-tdep.c (cris_return_value): Likewise.
6242 * frv-tdep.c (frv_return_value): Likewise.
6243 * h8300-tdep.c (h8300_return_value): Likewise.
6244 (h8300h_return_value): Likewise.
6245 * hppa-tdep.c (hppa32_return_value): Likewise.
6246 (hppa64_return_value): Likewise.
6247 * i386-tdep.c (i386_return_value): Likewise.
6248 * ia64-tdep.c (ia64_return_value): Likewise.
6249 * iq2000-tdep.c (iq2000_return_value): Likewise.
6250 * lm32-tdep.c (lm32_return_value): Likewise.
6251 * m32c-tdep.c (m32c_return_value): Likewise.
6252 * m32r-tdep.c (m32r_return_value): Likewise.
6253 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6254 * m68k-tdep.c (m68k_return_value): Likewise.
6255 (m68k_svr4_return_value): Likewise.
6256 * m88k-tdep.c (m88k_return_value): Likewise.
6257 * mep-tdep.c (mep_return_value): Likewise.
6258 * microblaze-tdep.c (microblaze_return_value): Likewise.
6259 * mn10300-tdep.c (mn10300_return_value): Likewise.
6260 * moxie-tdep.c (moxie_return_value): Likewise.
6261 * mt-tdep.c (mt_return_value): Likewise.
6262 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6263 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6264 (ppc_sysv_abi_broken_return_value): Likewise.
6265 (ppc64_sysv_abi_return_value): Likewise.
6266 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6267 * rl78-tdep.c (rl78_return_value): Likewise.
6268 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6269 * rx-tdep.c (rx_return_value): Likewise.
6270 * s390-tdep.c (s390_return_value): Likewise.
6271 * score-tdep.c (score_return_value): Likewise.
6272 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6273 (sh_return_value_fpu): Likewise.
6274 * sh64-tdep.c (sh64_return_value): Likewise.
6275 * sparc-tdep.c (sparc32_return_value): Likewise.
6276 * sparc64-tdep.c (sparc64_return_value): Likewise.
6277 * spu-tdep.c (spu_return_value): Likewise.
6278 * tic6x-tdep.c (tic6x_return_value): Likewise.
6279 * v850-tdep.c (v850_return_value): Likewise.
6280 * vax-tdep.c (vax_return_value): Likewise.
6281 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6282 * xtensa-tdep.c (xtensa_return_value): Likewise.
6283 * gdbarch.c: Regenerate.
6284 * gdbarch.h: Regenerate.
6285
29ca12b3
TT
62862012-05-15 Tom Tromey <tromey@redhat.com>
6287
6288 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6289
588ae58c
JB
62902012-05-15 Joel Brobecker <brobecker@adacore.com>
6291
6292 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6293 of command in two error message.
6294
855a6e68
JB
62952012-05-15 Joel Brobecker <brobecker@adacore.com>
6296
6297 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6298
d634f2de
JB
62992012-05-15 Joel Brobecker <brobecker@adacore.com>
6300
6301 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6302
9cc815f5
JK
63032012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6304
6305 * NEWS (show auto-load scripts-directory): Add forgotten command.
6306
6a609e58
JK
63072012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6308
6309 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6310 parameters.
6311
ac1438b5
L
63122012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6313
6314 * amd64-tdep.c: Include features/i386/x32.c and
6315 features/i386/x32-avx.c.
6316 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6317 initialize_tdesc_x32_avx.
6318
e7e0cddf
SS
63192012-05-14 Stan Shebs <stan@codesourcery.com>
6320
6321 Add dynamic printf.
6322 * breakpoint.h (enum bptype): New type bp_dprintf.
6323 (struct breakpoint): New field extra_string.
6324 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6325 (create_breakpoint): Add extra_string arg.
6326 * breakpoint.c (dprintf_breakpoint_ops): New.
6327 (is_breakpoint): Add bp_dprintf.
6328 (bpstat_what): Add dprintf case.
6329 (bptype_string): Ditto.
6330 (print_one_breakpoint_location): Ditto.
6331 (init_bp_location): Ditto.
6332 (bkpt_print_mention): Ditto.
6333 (dprintf_style_enums): New array.
6334 (dprintf_style): New global.
6335 (dprintf_function): New global.
6336 (dprintf_channel): New global.
6337 (update_dprintf_command_list): New function.
6338 (update_dprintf_commands): New function.
6339 (init_breakpoint_sal): Add extra_string argument, handle it.
6340 (create_breakpoint_sal): Add extra_string argument.
6341 (create_breakpoints_sal): Add extra_string argument, update callers.
6342 (find_condition_and_thread): Add extra argument.
6343 (create_breakpoint): Add extra_string argument, record it.
6344 (dprintf_command): New function.
6345 (break_command_1): Add arg to create_breakpoint call.
6346 (handle_gnu_v3_exceptions): Ditto.
6347 (trace_command): Ditto.
6348 (ftrace_command): Ditto.
6349 (strace_command): Ditto.
6350 (bkpt_print_mention): Add dprintf case.
6351 (create_breakpoint_sal_default): Add extra_string argument.
6352 (_initialize_breakpoint): Add new commands.
6353 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6354 * python/py-breakpoint.c (bppy_init): Ditto.
6355 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6356
8ae38c14
MR
63572012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6358
6359 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6360
9f676e66
SCR
63612012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6362
6363 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6364 unsigned long long.
6365
7efc75aa
SCR
63662012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6367
6368 Add a new function gdb.find_pc_line to the Python API.
6369 * NEWS (Python Scripting): Add entry about the new function.
6370 * python/python.c (gdbpy_find_pc_line): New function which
6371 implements gdb.find_pc_line.
6372 (GdbMethods): Add entry for the new function.
6373
70af3797
PA
63742012-05-12 Pedro Alves <palves@redhat.com>
6375
6376 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6377 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6378
06da564e
EZ
63792012-05-12 Eli Zaretskii <eliz@gnu.org>
6380
6381 * inferior.c: Include completer.h
6382 (initialize_inferiors): Set completer of add-inferior to
6383 filename_completer.
6384
0288cee2
L
63852012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6386
6387 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6388 gdbarch_ptr_bit for x32 core dump.
6389
f6537a2c
L
63902012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6391
6392 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6393 and features/i386/x32-avx-linux.c.
6394
85d4a676
SS
63952012-05-11 Stan Shebs <stan@codesourcery.com>
6396 Kwok Cheung Yeung <kcy@codesourcery.com>
6397
6398 * NEWS: Describe new info os commands.
6399 * common/linux-osdata.c (PID_T, TIME_T): Define.
6400 (MAX_PID_T_STRLEN): New.
6401 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6402 MAX_PID_T_STRLEN.
6403 (command_from_pid): Add comment. Change to use PID_T.
6404 (commandline_from_pid): Change to use PID_T.
6405 (user_from_pid): Add comment.
6406 (get_process_owner): Add comment. Change to use PID_T and
6407 MAX_PID_T_STRLEN.
6408 (get_number_of_cpu_cores): Add comment.
6409 (get_cores_used_by_process): Add comment. Change to use PID_T and
6410 MAX_PID_T_STRLEN.
6411 (linux_xfer_osdata_processes): Change to use PID_T and
6412 MAX_PID_T_STRLEN.
6413 (compare_processes): New function.
6414 (linux_xfer_osdata_processgroups): New function.
6415 (linux_xfer_osdata_threads): Change to use PID_T.
6416 (linux_xfer_osdata_fds): New function.
6417 (format_socket_state, print_sockets): New functions.
6418 (union socket_addr): New union.
6419 (linux_xfer_osdata_isockets): New function.
6420 (time_from_time_t, group_from_gid): New functions.
6421 (linux_xfer_osdata_shm): New function.
6422 (linux_xfer_osdata_sem): New function.
6423 (linux_xfer_osdata_msg): New function.
6424 (linux_xfer_osdata_modules): New function.
6425 (osdata_table): Add new entries.
6426 * common/buffer.c (buffer_xml_printf): Add support for long and
6427 long long format specifiers.
6428
f24afd6d
L
64292012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6430
6431 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6432 (tdesc_x32_avx_linux): Likewise.
6433
7349ff92
JK
64342012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6435
6436 Implement multi-component --with-auto-load-dir.
6437 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6438 entries.
6439 (--with-auto-load-safe-path): Update the default value description.
6440 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6441 New.
6442 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6443 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6444 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6445 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6446 "set auto-load scripts-directory".
6447 * config.in: Regenerate.
6448 * configure: Regenerate.
6449 * configure.ac (--with-auto-load-dir): New configure option.
6450 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6451
6dea1fbd
JK
64522012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6453
6454 Provide $ddir substitution for --with-auto-load-safe-path.
6455 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6456 entries.
6457 * auto-load.c: Include observer.h.
6458 (auto_load_safe_path_vec_update): Call substitute_path_component for
6459 each component. New variable ddir_subst.
6460 (auto_load_gdb_datadir_changed): New function.
6461 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6462 AUTO_LOAD_SAFE_PATH. New comment.
6463 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6464 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6465 * config.in: Regenerate.
6466 * configure: Regenerate.
6467 * configure.ac (--auto-load-safe-path): Rename
6468 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6469 GDB_DATADIR/auto-load.
6470 * defs.h (substitute_path_component): New declaration.
6471 * top.c: Include observer.h.
6472 (set_gdb_datadir): New function.
6473 (init_main): Install it for "set data-directory".
6474 * utils.c (substitute_path_component): New function.
6475
b09aca3a
JK
64762012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6477
6478 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6479 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6480 DEBUG_FILE_DIRECTORY. Handle multiple components of
6481 DEBUG_FILE_DIRECTORY.
6482
95554aad
TT
64832012-05-10 Tom Tromey <tromey@redhat.com>
6484
6485 * dwarf2read.c (recursively_write_psymbols): New function.
6486 (write_psymtabs_to_index): Use it.
6487
6488 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6489 field.
6490 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6491 (load_partial_comp_unit): Update.
6492 (queue_comp_unit): Add argument 'pretend_language'.
6493 (process_queue): Update.
6494 (psymtab_to_symtab_1): Skip dependencies that have a user.
6495 (load_partial_comp_unit_reader): Give meaning to the 'data'
6496 argument.
6497 (load_full_comp_unit): Add 'pretend_language' argument.
6498 (process_full_comp_unit): Add 'pretend_language' argument. Set
6499 language on CU.
6500 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6501 Update.
6502 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6503 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6504 Update.
6505 (prepare_one_comp_unit): Add 'pretend_language' argument.
6506
6507 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6508 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6509 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6510 (dw2_do_instantiate_symtab): Check whether symtab was read in
6511 before queueing.
6512 (dw2_instantiate_symtab): Add assertion. Call
6513 process_cu_includes.
6514 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6515 (partial_symtab_p): New typedef.
6516 (set_partial_user): New function.
6517 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6518 (scan_partial_symbols): Add imported CU to imported_symtabs.
6519 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6520 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6521 (get_symtab, recursively_compute_inclusions)
6522 (compute_symtab_includes, process_cu_includes)
6523 (process_imported_unit_die): New functions.
6524 (process_die) <DW_TAG_imported_unit>: New case.
6525 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6526
6527 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6528 comment.
6529 (struct partial_die_info) <locdesc>: Remove.
6530 <d>: New field.
6531 (process_psymtab_comp_unit): Add 'read_partial' argument.
6532 Update.
6533 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6534 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6535 (add_partial_symbol): Update.
6536 (process_die): Handle DW_TAG_partial_unit.
6537 (read_file_scope): Update comment.
6538 (load_partial_dies): Handle DW_TAG_imported_unit.
6539 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6540 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6541
e871fbb9
TT
65422012-05-10 Tom Tromey <tromey@redhat.com>
6543
6544 * cc-with-dwz.sh: New file.
6545
b5b04b5b
TT
65462012-05-10 Tom Tromey <tromey@redhat.com>
6547
6548 * symtab.h (struct symtab) <includes, user>: New fields.
6549 * block.h (struct block_iterator) <d, idx, which>: New fields.
6550 * block.c (initialize_block_iterator, find_iterator_symtab)
6551 (block_iterator_step, block_iter_name_step)
6552 (block_iter_match_step): New functions.
6553 (block_iterator_first, block_iterator_next)
6554 (block_iter_name_first, block_iter_name_next)
6555 (block_iter_match_first, block_iter_match_next): Rewrite.
6556 (get_block_symtab): New function.
6557
84a146c9
TT
65582012-05-10 Tom Tromey <tromey@redhat.com>
6559
6560 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6561 set_block_symtab.
6562 * jit.c (finalize_symtab): Use allocate_global_block,
6563 set_block_symtab.
6564 * buildsym.c (finish_block_internal): New function, from old
6565 finish_block.
6566 (finish_block): Rewrite.
6567 (end_symtab): Use finish_block_internal, set_block_symtab.
6568 * block.h (struct global_block): New.
6569 (allocate_global_block, set_block_symtab): Declare.
6570 * block.c (allocate_global_block, set_block_symtab): New
6571 functions.
6572
9439a077
TT
65732012-05-10 Tom Tromey <tromey@redhat.com>
6574
6575 * psymtab.c (partial_map_expand_apply): Add assertion.
6576 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6577 (psymtab_to_symtab): Find unshared psymtab.
6578 (dump_psymtab): Print including psymtabs.
6579 (recursively_search_psymtabs): New function.
6580 (expand_symtabs_matching_via_partial): Use it.
6581 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6582 fields.
6583 (enum psymtab_search_status): New.
6584
8157b174
TT
65852012-05-10 Tom Tromey <tromey@redhat.com>
6586
6587 * tracepoint.c (scope_info): Update.
6588 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6589 (find_pc_sect_symtab, search_symbols)
6590 (default_make_symbol_completion_list_break_on)
6591 (make_file_symbol_completion_list): Update.
6592 * symmisc.c (dump_symtab_1): Update.
6593 * stack.c (print_frame_args, iterate_over_block_locals)
6594 (print_frame_labels, iterate_over_block_arg_vars): Update.
6595 * python/py-block.c (block_object) <dict>: Remove.
6596 <block>: New field.
6597 <iter>: Change type.
6598 (blpy_iter): Update.
6599 (blpy_block_syms_iternext): Update.
6600 * psymtab.c (map_block): Use block iterators.
6601 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6602 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6603 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6604 * infrun.c (check_exception_resume): Update.
6605 * cp-support.c (make_symbol_overload_list_block): Update.
6606 * coffread.c (patch_opaque_types): Update.
6607 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6608 * block.h (struct block_iterator): New.
6609 (block_iterator_first, block_iterator_next, block_iter_name_first)
6610 (block_iter_name_next, block_iter_match_first)
6611 (block_iter_match_next): Declare.
6612 (ALL_BLOCK_SYMBOLS): Redefine.
6613 * block.c (block_iterator_first, block_iterator_next)
6614 (block_iter_name_first, block_iter_name_next)
6615 (block_iter_match_first, block_iter_match_next): New functions.
6616 * ada-lang.c (ada_add_block_symbols)
6617 (ada_make_symbol_completion_list): Use block iterator.
6618
a2ca7a52
TT
66192012-05-10 Tom Tromey <tromey@redhat.com>
6620
6621 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6622 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6623 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6624 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6625 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6626 Update.
6627
64ea88dc
JB
66282012-05-10 Joel Brobecker <brobecker@adacore.com>
6629
6630 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6631 print-file-var-lib2.c, print-file-var-main.c and
6632 print-file-var.exp (located in gdb/testsuite/gdb.base).
6633
99a547d6
JB
66342012-05-10 Joel Brobecker <brobecker@adacore.com>
6635
6636 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6637 try locating the symbol in the symbol's own objfile first, before
6638 extending the search to all objfiles.
6639 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6640 out of lookup_symbol_aux_symtabs.
6641 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6642 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6643 Do not search EXCLUDE_OBJFILE.
6644 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6645 (lookup_symbol_global): Search for matches in the block's objfile
6646 first, before searching all other objfiles.
6647
0ece64fd
TG
66482012-05-10 Tristan Gingold <gingold@adacore.com>
6649
6650 * printcmd.c (set_command): Add pre/post inc/dec.
6651
3d16a105
FCE
66522012-05-09 Frank Ch. Eigler <fche@redhat.com>
6653
6654 * gdb.1: Document -ex option.
6655
2efbc0f7
JB
66562012-05-09 Joel Brobecker <brobecker@adacore.com>
6657
6658 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6659 * inferior.h (AT_SYMBOL): Delete.
6660
2c76a0c7
JB
66612012-05-09 Joel Brobecker <brobecker@adacore.com>
6662
6663 * mips-tdep.c (mips_push_dummy_code): New function.
6664 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6665 ON_STACK and install mips_push_dummy_code as our gdbarch
6666 push_dummy_code routine.
6667
9401a810
PA
66682012-05-09 Pedro Alves <palves@redhat.com>
6669
6670 * target.c (set_maintenance_target_async_permitted): Rename to ...
6671 (set_target_async_command): ... this.
6672 (show_maintenance_target_async_permitted): Rename to ...
6673 (show_target_async_command): ... this.
6674 (initialize_targets): Adjust.
6675
3929b321
DE
66762012-05-08 Doug Evans <dje@google.com>
6677
6678 * go-exp.y (classify_name): Add missing assignment of fields of
6679 yylval.ssym.
6680
c41535fd
EZ
66812012-05-08 Eli Zaretskii <eliz@gnu.org>
6682
6683 Display the ">" prompt in interactive mode while reading canned
6684 commands, even when the current interpreter is MI.
6685
6686 * interps.c (interp_set_temp): New function.
6687
6688 * interps.h (interp_set_temp): Add prototype.
6689
6690 * cli/cli-script.c (restore_interp): New cleanup function.
6691 (read_command_lines): Temporarily override the current interpreter
6692 with CLI and arrange for restoring the original one.
6693
c0749c4d
JS
66942012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6695
6696 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6697
d7333987
SDJ
66982012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6699
6700 * probe.c (parse_probes): Move conditional to check for
6701 debuginfo files from here...
6702 * stap-probe.c (stap_get_probes): ... to here.
6703
649e6d92
MK
67042012-05-07 Mark Kettenis <kettenis@gnu.org>
6705 H.J. Lu <hongjiu.lu@intel.com>
6706
6707 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6708 `movl %esp, %ebp' for the X32 ABI.
6709
f39c6ffd
TT
67102012-05-07 Tom Tromey <tromey@redhat.com>
6711
6712 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6713 get_DW_TAG_name.
6714 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6715 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6716 (dwarf_stack_op_name): Remove.
6717 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6718 (decode_locdesc): Use get_DW_OP_name.
6719 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6720 (dwarf2_compile_expr_to_ax): Likewise.
6721 (disassemble_dwarf_expression): Likewise.
6722 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6723
1e1f6591
CLT
67242012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6725
6726 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6727 (sh_linux_sigtramp_cache): New function.
6728 (sh_linux_sigreturn_init): New function.
6729 (sh_linux_rt_sigreturn_init): New function.
6730 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6731 patterns.
6732 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6733 syscall codes.
6734 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6735 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6736 (sh_linux_init_abi): Add init calls to register new tramp_frame
6737 definitions under 32-bit SH, update comments.
6738
545c08b4
PA
67392012-05-07 Pedro Alves <palves@redhat.com>
6740
daac165e
PA
6741 PR gdb/10952
6742
545c08b4
PA
6743 * amd64-linux-tdep.c: Include glibc-tdep.h.
6744 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6745 gdbarch_skip_solib_resolver callback.
6746
af2c1515
JK
67472012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6748
6749 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6750 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6751 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6752 (add_auto_load_safe_path): Change the error message.
6753 (_initialize_auto_load): Change the "safe-path" help text.
6754 * configure: Regenerate
6755 * configure.ac (--without-auto-load-safe-path): Set
6756 WITH_AUTO_LOAD_SAFE_PATH to /.
6757
1067f998
SDJ
67582012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6759
6760 * stap-probe.h: Do not include unecessary `probe.h'.
6761
45dfa85a
AM
67622012-05-05 Alan Modra <amodra@gmail.com>
6763
6764 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6765 bfd_und_section_ptr.
6766 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6767 and bfd_com_section_ptr.
6768
cf093994
JB
67692012-05-04 Joel Brobecker <brobecker@adacore.com>
6770
762ebb75 6771 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6772
d40dc7a8
JB
67732012-05-04 Joel Brobecker <brobecker@adacore.com>
6774
6775 * windows-nat.h (segment_register_p_ftype): New typedef.
6776 (windows_set_segment_register_p): Add declaration.
6777 * windows-nat.c (segment_register_p): New static global.
6778 (windows_set_segment_register_p): New function.
6779 (do_windows_fetch_inferior_registers): Add special handling
6780 for segment registers.
6781 * amd64-windows-nat.c: #include "amd64-tdep.h".
6782 (amd64_windows_segment_register_p): New function.
6783 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6784 * i386-windows-nat.c: #include "i386-tdep.h".
6785 (i386_windows_segment_register_p): New function.
6786 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6787
52b3699b
TG
67882012-05-04 Tristan Gingold <gingold@adacore.com>
6789
6790 * printcmd.c (set_command): Emit a warning if the expression is not
6791 an assignment.
6792
94c74239
JB
67932012-05-03 Joel Brobecker <brobecker@adacore.com>
6794
6795 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6796 Make static.
6797
fcf57f19
SDJ
67982012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6799
6800 * stap-probe.c (stap_is_operator): Change declaration.
6801 (stap_get_opcode): Change return value.
6802 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6803 `stap_parse_argument_1'.
6804
27d2932e
PA
68052012-05-03 Pedro Alves <pedro@codesourcery.com>
6806
6807 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6808 debug log.
6809
a20ee7a4
SCR
68102012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6811
6812 Add two new methods global_block and static_block to gdb.Symtab
6813 objects.
6814 * NEWS (Python scripting): Add entry about the new methods.
6815 * python/py-symtab.c (stpy_global_block): New function which
6816 implements the gdb.Symtab.global_block() method.
6817 (stpy_static_block): New function which implements the
6818 gdb.Symtab.static_block() method.
6819 (symtab_object_methods): Add entries for the two new methods.
6820
943cb756
DE
68212012-05-03 Doug Evans <dje@google.com>
6822
6823 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6824 files.
6825
f4644a3f
YQ
68262012-05-03 Yao Qi <yao@codesourcery.com>
6827
6828 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6829 space.
6830 (i386_process_record): Ditto.
6831
ef61f180
JB
68322012-05-02 Joel Brobecker <brobecker@adacore.com>
6833
6834 * infcall.c (unwind_on_signal_p): Make static.
6835
02f1df11
JB
68362012-05-02 Joel Brobecker <brobecker@adacore.com>
6837
6838 * sol-thread.c (solaris_pid_to_str): Make static.
6839 (_initialize_sol_thread): Add prototype.
6840
39023530
JB
68412012-05-02 Joel Brobecker <brobecker@adacore.com>
6842
6843 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6844
c6b0c501
CF
68452012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6846
6847 * MAINTAINERS: Remove myself.
6848
1ef71717
JK
68492012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6850
6851 Fix --without-auto-load-safe-path for MS-Windows host platform.
6852 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6853
b31b86a7
EZ
68542012-05-02 Eli Zaretskii <eliz@gnu.org>
6855
6856 * gdb_curses.h: Undefine KEY_EVENT before including curses
6857 headers. Move "#undef MOUSE_MOVED" before any curses header
6858 inclusion.
6859
777532fc
SDJ
68602012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6861
6862 * features/i386/i386-mmx-linux.c: Regenerate.
6863 * features/rs6000/powerpc-32.c: Likewise.
6864 * features/rs6000/powerpc-32l.c: Likewise.
6865 * features/rs6000/powerpc-403.c: Likewise.
6866 * features/rs6000/powerpc-403gc.c: Likewise.
6867 * features/rs6000/powerpc-405.c: Likewise.
6868 * features/rs6000/powerpc-505.c: Likewise.
6869 * features/rs6000/powerpc-601.c: Likewise.
6870 * features/rs6000/powerpc-602.c: Likewise.
6871 * features/rs6000/powerpc-603.c: Likewise.
6872 * features/rs6000/powerpc-604.c: Likewise.
6873 * features/rs6000/powerpc-64.c: Likewise.
6874 * features/rs6000/powerpc-64l.c: Likewise.
6875 * features/rs6000/powerpc-750.c: Likewise.
6876 * features/rs6000/powerpc-860.c: Likewise.
6877 * features/rs6000/powerpc-e500.c: Likewise.
6878 * features/rs6000/powerpc-e500l.c: Likewise.
6879 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6880 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6881 * features/rs6000/rs6000.c: Likewise.
6882
d71871bc
SDJ
68832012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6884
6885 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6886 variable.
6887 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6888 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6889 (stap_parse_argument) <e>: Likewise.
6890 (handle_stap_probe) <byte_order>: Likewise.
6891
fd820528
DE
68922012-04-30 Doug Evans <dje@google.com>
6893
6894 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6895 init_and_read_dies_worker. All callers updated.
6896 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6897 replaced with init_cutu_and_read_dies.
6898 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6899 (find_partial_die): Remove FIXME. Don't free current CU.
6900
ec3f619d 69012012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6902
6903 * contrib: New directory.
6904 * contrib/test_pubnames_and_indexes.py: New file.
6905
fceca515
DE
69062012-04-30 Doug Evans <dje@google.com>
6907
6908 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6909 All callers updated.
6910 (init_cu_die_reader): Verify the section is non-empty.
6911 (dwarf_decode_line_header): Don't dereference section->asection
6912 until we know the section is present.
6913
311fe7e1
SDJ
69142012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6915
6916 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6917 probes.
6918
5977971a
YQ
69192012-04-29 Yao Qi <yao@codesourcery.com>
6920
6921 * gdb-code-style.el: New hook gdb-markup-hook
6922 and gdb-comment-hook.
6923
dee91e82
DE
69242012-04-28 Doug Evans <dje@google.com>
6925
3019eac3
DE
6926 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6927 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6928 objfile->obfd.
6929 * symfile.h (dwarf2_debug_sections): New member addr.
6930 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6931 (ctx_no_get_addr_index): New function.
6932 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6933 (ctx_no_get_addr_index): Declare.
6934 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6935 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6936 (dwarf_expr_ctx_funcs): Update.
6937 (needs_get_addr_index): New function.
6938 (needs_frame_ctx_funcs): Update.
6939 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6940 * dwarf2read.c: #include "gdbcore.h".
6941 (dwarf2_per_objfile): New members addr, dwo_files.
6942 (dwarf2_elf_names): Add entry for addr.
6943 (struct dwo_section_names): New type.
6944 (dwo_section_names): New static global.
6945 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6946 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6947 old debug_types_section member updated to use this.
6948 Rename member debug_types_section to info_or_types_section,
6949 all uses updated.
6950 (signatured_type): Rename member type_offset to type_offset_in_tu,
6951 all uses updated. New member type_offset_in_section.
6952 (struct dwo_sections): New type.
6953 (struct dwo_unit): New type.
6954 (struct dwo_file): New type.
6955 (die_reader_specs): New member dwo_file.
6956 (dwarf2_locate_sections): Watch for .debug_addr.
6957 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6958 (dwarf2_read_section): Get bfd of section from bfd's asection,
6959 instead of objfile.
6960 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6961 (create_signatured_type_table_from_index): Initialize
6962 sig_type->info_or_types_section.
6963 (dw2_get_file_names): Statement lists for type units with DWO files
6964 live in the DWO file.
6965 (create_debug_types_hash_table): New function.
6966 (create_all_type_units): Rewrite.
6967 (init_cu_die_reader): New arg dwo_file, all callers updated.
6968 (init_and_read_dies_worker): Get section from
6969 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6970 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6971 continue reading the CU/TU from there.
6972 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6973 updated. Get section from this_cu->info_or_types_section.
6974 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6975 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6976 DW_FORM_GNU_str_index.
6977 (hash_dwo_file, eq_dwo_file): New functions.
6978 (allocate_dwo_file_hash_table): New function.
6979 (hash_dwo_unit, eq_dwo_unit): New functions.
6980 (allocate_dwo_unit_table): New function.
6981 (dwarf2_locate_dwo_sections): New function.
6982 (struct create_dwo_info_table_data): New type.
6983 (create_debug_info_hash_table_reader): New function.
6984 (create_debug_info_hash_table): New function.
6985 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6986 (lookup_dwo_file): New function.
6987 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6988 (free_dwo_file, free_dwo_file_cleanup): New functions.
6989 (free_dwo_file_from_slot, free_dwo_files): New functions.
6990 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6991 (dwarf2_record_block_ranges): Ditto.
6992 (read_partial_die): Ditto.
6993 (process_enumeration_scope): Update to use type_offset_in_section.
6994 (read_full_die_1): New function.
6995 (read_full_die): Rewrite.
6996 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6997 DW_FORM_GNU_str_index.
6998 (read_addr_index_1, read_addr_index): New functions.
6999 (read_addr_index_from_leb128): New function.
7000 (struct dwarf2_read_addr_index_data): New type.
7001 (dwarf2_read_addr_index_reader): New function.
7002 (dwarf2_read_addr_index): New function.
7003 (read_str_index): New function.
7004 (leb128_size): New function.
7005 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7006 If processing a type unit from a DWO file, get the line section
7007 from the DWO file.
7008 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7009 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7010 DW_FORM_GNU_str_index.
7011 (lookup_die_type): Check whether section offset of type's die is
7012 known before looking it up. Remove assert. Condition can
7013 legimately happen for inter-cu type references.
7014 (dwarf_attr_name): Handle Fission attributes.
7015 (dwarf_form_name): Handle Fission forms.
7016 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7017 DW_FORM_GNU_str_index.
7018 (follow_die_sig): Update to use type_offset_in_section.
7019 (decode_locdesc): New case DW_OP_GNU_addr_index.
7020 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7021 DW_FORM_GNU_str_index.
7022 (cu_debug_loc_section): New function.
7023 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7024 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7025 Free DWO files if present.
7026 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7027
dee91e82
DE
7028 Refactor DIE reading.
7029 * dwarf2read.c (dwarf2_per_objfile): Replace members
7030 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7031 (die_reader_specs): New member "die_section". Temporarily make
7032 member "buffer" non-const, pending constifying all info_ptr uses.
7033 (die_reader_func_ftype): New typedef.
7034 (dw2_get_file_names_reader): New function.
7035 (dw2_get_file_names): Rewrite.
7036 (read_and_check_type_unit_head): Rename arg type_offset to
7037 type_offset_in_tu.
7038 (create_all_type_units): Improve debugging message.
7039 Improve dummy type unit check.
7040 (init_cu_die_reader): New arg "section". All callers updated.
7041 (init_and_read_dies_worker): New function.
7042 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7043 (init_cutu_and_read_dies_no_follow): New function.
7044 (init_cutu_and_read_dies_simple): New function.
7045 (process_psymtab_comp_unit_reader): New function.
7046 (process_psymtab_comp_unit): Delete args section,
7047 is_debug_types_section. Rewrite. All callers updated.
7048 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7049 All callers updated. Rewrite.
7050 (load_partial_comp_unit_reader): New function.
7051 (load_partial_comp_unit): Rewrite.
7052 (skip_children): New arg reader. Delete args buffer, cu.
7053 All callers updated.
7054 (skip_one_die): New arg reader. Delete args buffer, cu.
7055 All callers updated.
7056 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7057 All callers updated.
7058 (load_full_comp_unit_reader): New function.
7059 (load_full_comp_unit): Rewrite.
7060 (read_comp_unit): Delete.
7061 (read_die_and_children_1): Delete, contents moved ...
7062 (read_die_and_children): ... here.
7063 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7064 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7065 All callers updated.
7066 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7067 All callers updated.
7068 (find_partial_die): Rewrite load_all_dies support.
7069 (read_attribute_value): New arg reader. Delete args abfd, cu.
7070 All callers updated.
7071 (read_attribute): New arg reader. Delete args abfd, cu.
7072 All callers updated.
7073 (load_full_type_unit): Add assert.
7074 (read_signatured_type_reader): New function.
7075 (read_signatured_type): Rewrite.
7076 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7077 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7078 All callers updated. Set per_cu->cu = NULL after freeing it.
7079 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7080 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7081 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7082 (set_die_type): Update.
7083 (get_die_type_at_offset): Update.
7084 (read_file_scope): Call prepare_one_comp_unit.
7085 (read_type_unit_scope): Ditto.
7086 (prepare_one_comp_unit): Set producer if present.
7087
72d59e0d
SDJ
70882012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7089
7090 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7091 gettext function on `error'.
7092
0fefef59
DE
70932012-04-27 Doug Evans <dje@google.com>
7094
7095 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7096 is empty.
7097
28106bc2
SDJ
70982012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7099 Tom Tromey <tromey@redhat.com>
7100
7101 * breakpoint.c (struct breakpoint_objfile_data)
7102 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7103 <exception_probes>: New fields.
7104 (free_breakpoint_probes): New function.
7105 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7106 `_Unwind_DebugHook'.
7107 (create_exception_master_breakpoint): Likewise.
7108 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7109 * infrun.c: Including necessary header files for handling SystemTap
7110 probes.
7111 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7112 via SystemTap probes.
7113 (check_exception_resume): Remove `func' argument. Handle exception
7114 unwinding breakpoint set via a SystemTap probe.
7115 (insert_exception_resume_from_probe): New function.
7116
55aa24fb
SDJ
71172012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7118 Tom Tromey <tromey@redhat.com>
7119 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7122 (COMMON_OBS): Likewise.
7123 (HFILES_NO_SRCDIR): Add `probe'.
7124 * NEWS: Mention support for static and SystemTap probes.
7125 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7126 SystemTap probes' arguments parser.
7127 * arm-linux-tdep.c: Including headers needed to perform the parsing
7128 of SystemTap probes' arguments.
7129 (arm_stap_is_single_operand): New function.
7130 (arm_stap_parse_special_token): Likewise.
7131 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7132 probes' arguments parser.
7133 * ax-gdb.c (require_rvalue): Removing static declaration.
7134 (gen_expr): Likewise.
7135 * ax-gdb.h (gen_expr): Declaring function.
7136 (require_rvalue): Likewise.
7137 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7138 (bkpt_probe_breakpoint_ops): New variable.
7139 (momentary_breakpoint_from_master): Set the `probe' value.
7140 (add_location_to_breakpoint): Likewise.
7141 (break_command_1): Using proper breakpoint_ops according to the
7142 argument passed by the user in the command line.
7143 (bkpt_probe_insert_location): New function.
7144 (bkpt_probe_remove_location): Likewise.
7145 (bkpt_probe_create_sals_from_address): Likewise.
7146 (bkpt_probe_decode_linespec): Likewise.
7147 (tracepoint_probe_create_sals_from_address): Likewise.
7148 (tracepoint_probe_decode_linespec): Likewise.
7149 (tracepoint_probe_breakpoint_ops): New variable.
7150 (trace_command): Using proper breakpoint_ops according to the
7151 argument passed by the user in the command line.
7152 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7153 static probes on breakpoints and tracepoints.
7154 * breakpoint.h (struct bp_location) <probe>: New field.
7155 * cli-utils.c (skip_spaces_const): New function.
7156 (extract_arg): Likewise.
7157 * cli-utils.h (skip_spaces_const): Likewise.
7158 (extract_arg): Likewise.
7159 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7160 * configure.ac: Append `stap-probe.o' to be generated when ELF
7161 support is present.
7162 * configure: Regenerate.
7163 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7164 * elfread.c: Include `probe.h' and `arch-utils.h'.
7165 (probe_key): New variable.
7166 (elf_get_probes): New function.
7167 (elf_get_probe_argument_count): Likewise.
7168 (elf_evaluate_probe_argument): Likewise.
7169 (elf_compile_to_ax): Likewise.
7170 (elf_symfile_relocate_probe): Likewise.
7171 (stap_probe_key_free): Likewise.
7172 (elf_probe_fns): New variable.
7173 (elf_sym_fns): Add `sym_probe_fns' value.
7174 (elf_sym_fns_lazy_psyms): Likewise.
7175 (elf_sym_fns_gdb_index): Likewise.
7176 (_initialize_elfread): Initialize objfile cache for static
7177 probes.
7178 * gdb_vecs.h (struct probe): New forward declaration.
7179 (probe_p): New VEC declaration.
7180 * gdbarch.c: Regenerate.
7181 * gdbarch.h: Regenerate.
7182 * gdbarch.sh (stap_integer_prefix): New variable.
7183 (stap_integer_suffix): Likewise.
7184 (stap_register_prefix): Likewise.
7185 (stap_register_suffix): Likewise.
7186 (stap_register_indirection_prefix): Likewise.
7187 (stap_register_indirection_suffix): Likewise.
7188 (stap_gdb_register_prefix): Likewise.
7189 (stap_gdb_register_suffix): Likewise.
7190 (stap_is_single_operand): New function.
7191 (stap_parse_special_token): Likewise.
7192 (struct stap_parse_info): Forward declaration.
7193 * i386-tdep.c: Including headers needed to perform the parsing
7194 of SystemTap probes' arguments.
7195 (i386_stap_is_single_operand): New function.
7196 (i386_stap_parse_special_token): Likewise.
7197 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7198 probes' arguments parser.
7199 * i386-tdep.h (i386_stap_is_single_operand): New function.
7200 (i386_stap_parse_special_token): Likewise.
7201 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7202 * mipsread.c (ecoff_sym_fns): Likewise.
7203 * objfiles.c (objfile_relocate1): Support relocation for static
7204 probes.
7205 * parse.c (prefixify_expression): Remove static declaration.
7206 (initialize_expout): Likewise.
7207 (reallocate_expout): Likewise.
7208 * parser-defs.h (initialize_expout): Declare function.
7209 (reallocate_expout): Likewise.
7210 (prefixify_expression): Likewise.
7211 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7212 of SystemTap probes' arguments.
7213 (ppc_stap_is_single_operand): New function.
7214 (ppc_stap_parse_special_token): Likewise.
7215 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7216 probes' arguments parser.
7217 * probe.c: New file, for generic statically defined probe support.
7218 * probe.h: Likewise.
7219 * s390-tdep.c: Including headers needed to perform the parsing of
7220 SystemTap probes' arguments.
7221 (s390_stap_is_single_operand): New function.
7222 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7223 probes' arguments parser.
7224 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7225 * stap-probe.c: New file, for SystemTap probe support.
7226 * stap-probe.h: Likewise.
7227 * symfile.h: Include `gdb_vecs.h'.
7228 (struct sym_probe_fns): New struct.
7229 (struct sym_fns) <sym_probe_fns>: New field.
7230 * symtab.c (init_sal): Initialize `probe' field.
7231 * symtab.h (struct probe): Forward declaration.
7232 (struct symtab_and_line) <probe>: New field.
7233 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7234 locations.
7235 (stop_tracing): Likewise.
7236 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7237
22d2b532
SDJ
72382012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7239 Tom Tromey <tromey@redhat.com>
7240
7241 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7242 and to compile agent expressions.
7243 * infrun.c (siginfo_make_value): New argument `ignore'.
7244 (siginfo_funcs): New struct.
7245 (_initialize_infrun): New argument when calling
7246 `create_internalvar_type_lazy'.
7247 * thread.c (thread_id_make_value): New argument `ignore'.
7248 (thread_funcs): New struct.
7249 (_initialize_thread): New argument when calling
7250 `create_internalvar_type_lazy'.
7251 * tracepoint.c (sdata_make_value): New argument `ignore'.
7252 (sdata_funcs): New struct.
7253 (_initialize_tracepoint): New argument when calling
7254 `create_internalvar_type_lazy'.
7255 * value.c (make_value): New struct.
7256 (create_internalvar_type_lazy): New argument `data'.
7257 (compile_internalvar_to_ax): New function.
7258 (value_of_internalvar): Properly handling `make_value' case.
7259 (clear_internalvar): Likewise.
7260 (show_convenience): Adding `TRY_CATCH' block.
7261 * value.h (internalvar_make_value): Delete, replace by...
7262 (struct internalvar_funcs): ... this.
7263 (create_internalvar_type_lazy) <fun>: Delete argument.
7264 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7265 (compile_internalvar_to_ax): New function.
7266 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7267 (tlb_funcs): New struct.
7268 (_initialize_windows_tdep): New argument when calling
7269 `create_internalvar_type_lazy'.
7270
91da1414
MW
72712012-04-27 Mark Wielaard <mjw@redhat.com>
7272
7273 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7274 see whether it is an address or a constant offset from DW_AT_low_pc.
7275 (dwarf2_record_block_ranges): Likewise.
7276 (read_partial_die): Likewise.
7277
4ab9d8ec
MW
72782012-04-26 Mark Wielaard <mjw@redhat.com>
7279
7280 * MAINTAINERS (Write After Approval): Add myself to the list.
7281
a0911fd0
MR
72822012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7283
7284 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7285 (proc_prettyprint_signal): Likewise.
7286 (proc_prettyprint_faultset): Likewise.
7287 (proc_prettyprint_fault): Likewise.
7288 (proc_prettyprint_actionset): Likewise.
7289 (proc_prettyprint_flags): Move to new proc-flags.c section.
7290 (proc_prettyfprint_flags): New prototype.
7291 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7292 (proc_syscall, proc_cursig): Likewise.
7293 (proc_set_kill_on_last_close): Likewise.
7294 (proc_unset_kill_on_last_close): Likewise.
7295 (proc_set_watchpoint): Make static.
7296 (proc_delete_dead_threads): Likewise.
7297 (procfs_set_watchpoint): Likewise.
7298 (_initialize_procfs): Add prototype.
7299 * proc-events.c: Include proc-utils.h.
7300 (init_syscall_table): Make static.
7301 * proc-api.c (_initialize_proc_api): Add prototype.
7302 * proc-flags.c: Include proc-utils.h.
7303
9009e1ae
MR
73042012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7305
7306 * configure.ac: Add AC_ARG_PROGRAM.
7307 * configure: Regenerate.
7308
4fae6e18
JK
73092012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 Fix DW_AT_lower_bound defaults for DWARF-4+.
7312 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7313 high. New variable low_default_is_valid. Implement DWARF-4+
7314 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7315 no default by the DWARF standard.
7316
14132e89 73172012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7318 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7319
7320 * infrun.c (handle_inferior_event): Move the check for return
7321 trampolines ahead of the check for function trampolines.
7322 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7323 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7324 (mips_str_mips16_ret_stub): Likewise.
7325 (mips_str_call_fp_stub): Likewise.
7326 (mips_str_call_stub): Likewise.
7327 (mips_str_fn_stub): Likewise.
7328 (mips_str_pic): Likewise.
7329 (mips_in_frame_stub): New function.
7330 (mips_unwind_pc): Return the return address rather than the PC
7331 if the PC of an intermediate frame is inside a call thunk.
7332 (mips_is_stub_suffix): New function.
7333 (mips_is_stub_mode): Likewise.
7334 (mips_get_mips16_fn_stub_pc): Likewise.
7335 (mips_skip_mips16_trampoline_code): Update to handle all the
7336 currently generated stub types. Don't recurse into __fn_stub
7337 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7338 Use cooked register accesses.
7339 (mips_in_return_stub): Reintroduce function.
7340 (mips_skip_trampoline_code): Traverse trampolines recursively.
7341 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7342
518f0db5 73432012-04-26 Joel Brobecker <brobecker@adacore.com>
7344
7345 GDB 7.4.1 released.
7346
3184d3f9
JL
73472012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7348
7349 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7350 * features/arm-with-m-vfp-d16.xml: New file. Describes
7351 Cortex-M with VFPv4-sp-d16 FPU register layout.
7352 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7353 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7354 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7355 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7356 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7357
b6201d44
DE
73582012-04-25 Doug Evans <dje@google.com>
7359
7360 * cli/cli-decode.c (print_doc_line): Use stream instead of
7361 current_uiout.
7362
4e2f8df6
SDJ
73632012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7364
7365 * features/arm-with-iwmmxt.c: Regenerate.
7366 * features/arm-with-m-fpa-layout.c: Likewise.
7367 * features/arm-with-m.c: Likewise.
7368 * features/arm-with-neon.c: Likewise.
7369 * features/arm-with-vfpv2.c: Likewise.
7370 * features/arm-with-vfpv3.c: Likewise.
7371 * features/mips-dsp-linux.c: Likewise.
7372 * features/mips-linux.c: Likewise.
7373 * features/mips64-dsp-linux.c: Likewise.
7374 * features/mips64-linux.c: Likewise.
7375 * features/s390-linux32.c: Likewise.
7376 * features/s390-linux32v1.c: Likewise.
7377 * features/s390-linux32v2.c: Likewise.
7378 * features/s390-linux64.c: Likewise.
7379 * features/s390-linux64v1.c: Likewise.
7380 * features/s390-linux64v2.c: Likewise.
7381 * features/s390x-linux64.c: Likewise.
7382 * features/s390x-linux64v1.c: Likewise.
7383 * features/s390x-linux64v2.c: Likewise.
7384 * features/tic6x-c62x-linux.c: Likewise.
7385 * features/tic6x-c62x.c: Likewise.
7386 * features/tic6x-c64x-linux.c: Likewise.
7387 * features/tic6x-c64x.c: Likewise.
7388 * features/tic6x-c64xp-linux.c: Likewise.
7389 * features/tic6x-c64xp.c: Likewise.
7390 * target-descriptions.c: Only generate `field_type' and `type'
7391 variables when needed.
7392
2def3e66
JB
73932012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7394
7395 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7396
a766d390
DE
73972012-04-25 Doug Evans <dje@google.com>
7398
7399 Initial pass at Go language support.
7400 * NEWS: Mention Go.
7401 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7402 go-valprint.c.
7403 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7404 (YYFILES): Add go-exp.c.
7405 (YYOBJ): Add go-exp.o.
7406 (local-maintainer-clean): Delete go-exp.c.
7407 * defs.h (enum language): Add language_go.
7408 * dwarf2read.c: #include "go-lang.h".
7409 (fixup_go_packaging): New function.
7410 (process_full_comp_unit): Call it when processing Go CUs.
7411 (dwarf2_physname): Add Go support.
7412 (read_file_scope): Handle missing language spec for GNU Go.
7413 (set_cu_language): Handle DW_LANG_Go.
7414 * go-exp.y: New file.
7415 * go-lang.h: New file.
7416 * go-lang.c: New file.
7417 * go-typeprint.c: New file.
7418 * go-valprint.c: New file.
7419 * symtab.c: #include "go-lang.h".
7420 (symbol_set_language): Handle language_go.
7421 (symbol_find_demangled_name, symbol_set_names): Ditto.
7422 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7423
4e2af517
JM
74242012-04-24 Jim Meyering <meyering@redhat.com>
7425
7426 avoid a few strncpy-induced buffer overruns
7427 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7428 fname and psargs before trying to concatenate.
7429 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7430 "name" before applying strchr.
7431
b77b7f52
SCR
74322012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7433
7434 * CONTRIBUTE: Use unified diff instead of context diff when
7435 generating patches.
7436
6321c22a
MR
74372012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7438
7439 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7440 code. Handle JR.HB correctly.
7441
742c84f6
MR
74422012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7443
7444 * mips-tdep.c
7445 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7446 with the other MIPS16 helpers.
7447
7fc7e0c3
SDJ
74482012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7449
7450 * observer.sh: Conditionally declare `args', thus cleaning up
7451 unused instances of this variable.
7452
20388dd6
YQ
74532012-04-24 Yao Qi <yao@codesourcery.com>
7454
7455 Revert this patch to allow breakpoint always-inserted
7456 in record target.
7457 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7458 * breakpoint.c: Include record.h.
7459 (breakpoints_always_inserted_mode): Return false when the record
7460 target is in use.
20388dd6
YQ
7461
7462 * breakpoint.c (iterate_over_bp_locations): New.
7463 * breakpoint.h: Declare.
7464 New typedef walk_bp_location_callback.
7465 * record.c (record_open): Call record_init_record_breakpoints.
7466 (record_sync_record_breakpoints): New.
7467 (record_init_record_breakpoints): New.
7468 * NEWS: Mention supporting breakpoint always-inserted mode in
7469 record target.
7470
4734f50e
MK
74712012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7472
7473 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7474 any thread.
7475
c326b90e
YQ
74762012-04-24 Yao Qi <yao@codesourcery.com>
7477
7478 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7479 (is_catchpoint): ... it.
7480 (print_one_breakpoint_location): Caller update.
7481 * breakpoint.h: Update declaration.
7482
d8fb5a1e
DM
74832012-04-23 David S. Miller <davem@davemloft.net>
7484
7485 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7486
34431a2a
TT
74872012-04-23 Tom Tromey <tromey@redhat.com>
7488
7489 * buildsym.c (add_free_pendings): Remove.
7490 * buildsym.h (add_free_pendings): Remove.
7491
4568ecf9
DE
74922012-04-23 Doug Evans <dje@google.com>
7493
7494 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7495 attr.u.unsnd instead of attr.u.addr.
7496 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7497 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7498 DW_FORM_ref_udata.
7499 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7500 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7501 DW_FORM_ref_udata.
7502 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7503
dca9aa3a
MR
75042012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7505
7506 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7507 (mips_o32_return_value): Likewise.
7508 (mips_o64_return_value): Likewise.
7509
c8ea1972
PH
75102012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7511
7512 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7513 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7514 their treatment in eval.c.
c8ea1972 7515
8d1b3521
DM
75162012-04-21 David S. Miller <davem@davemloft.net>
7517
7518 * sparc-tdep.c (X_DISP10): Define.
7519 (sparc_analyze_control_transfer): Handle compare-and-branch.
7520
03145bf4
JL
75212012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7522
7523 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7524 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7525
004159a2 75262012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7527 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7528
7529 * mips-tdep.c (mips_float_register_p): New function.
7530 (mips_convert_register_float_case_p): Use mips_float_register_p.
7531 (mips_register_type): Likewise.
7532 (mips_print_register): Likewise.
7533 (print_gp_register_row): Likewise.
7534 (mips_print_registers_info): Likewise.
7535
7f0e6aae
MR
75362012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7537
7538 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7539 of mips16 symbols.
7540
bc17beea
AP
75412012-04-20 Andrew Pinski <apinski@cavium.com>
7542
7543 * MAINTAINERS (Write After Approval): Add myself to the list.
7544
1730a5a5
SDJ
75452012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7546
7547 * MAINTAINERS: Update my e-mail address.
7548
38ea300a
PA
75492012-04-20 Pedro Alves <palves@redhat.com>
7550
7551 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7552 $srcdir.
7553 * configure: Regenerate.
7554
111dfaae
SDJ
75552012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7556
7557 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7558 declaration.
7559 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7560
4fb2c64a
JK
75612012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7562
7563 Fix compilation compatibility with python-2.4
7564 * python/py-type.c (convert_field): Cast ADDRSTRING for
7565 PyObject_SetAttrString as non-const. New comment.
7566
6328eb38
TT
75672012-04-19 Tom Tromey <tromey@redhat.com>
7568
7569 * top.c (quit_target): Use all_cleanups.
7570 * main.c (captured_command_loop): Use all_cleanups.
7571 * exceptions.c (throw_exception): Use all_cleanups.
7572
c971b7fa
PA
75732012-04-19 Pedro Alves <palves@redhat.com>
7574
7575 * Makefile.in (GNULIB_BUILDDIR): New.
7576 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7577 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7578 (CLEANDIRS). Remove gnulib/import.
7579 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7580 (all-lib): Ditto.
7581 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7582 (gnulib/import/Makefile): Replace gnulib/import with
7583 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7584 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7585 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7586 acx_configure_dir.m4.
7587 * acinclude.m4: Include acx_configure_dir.m4.
7588 * acx_configure_dir.m4: New file.
7589 * aclocal.m4: Regenerate.
a09130f9
PA
7590 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7591 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7592 (GNULIB): New variable.
7593 (GNULIB_STDINT_H): Adjust.
7594 (AC_OUTPUT): Don't output gnulib/Makefile.
7595 * gdb/defs.h: Include build-gnulib/config.h.
7596 * aclocal.m4: Regenerate.
7597 * config.in: Regenerate.
7598 * configure: Regenerate.
7599
7600 * gnulib/Makefile.in: New file.
7601 * gnulib/configure.ac: New file.
7602 * gnulib/aclocal.m4: New file.
7603 * gnulib/config.in: New file.
7604 * gnulib/configure: New file.
c971b7fa
PA
7605 * gnulib/: Re-run gnulib-tool to adjust.
7606
b10faa68
DE
76072012-04-19 Doug Evans <dje@google.com>
7608
7609 * cleanups.h (struct cleanup): Move to cleanups.c.
7610 (make_cleanup_dtor_ftype): New typedef.
7611 (make_cleanup_dtor): Use it.
7612 (ALL_CLEANUPS): Replace with ...
7613 (all_cleanups): ... this. Declare. All uses updated.
7614 * cleanups.c: #include "gdb_assert.h".
7615 (sentinel_cleanup): New static global.
7616 (SENTINEL_CLEANUP): Define.
7617 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7618 (make_my_cleanup2): Assert result is non-NULL.
7619 (all_cleanups): New function.
7620 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7621 of NULL.
7622
d8c267cc
PA
76232012-04-19 Pedro Alves <palves@redhat.com>
7624
7625 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7626 Adjust paths to gnulib imported files.
7627
809277f8
PA
76282012-04-19 Pedro Alves <palves@redhat.com>
7629
7630 * gnulib/: Move whole directory ...
7631 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7632 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7633 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7634 (aclocal_m4_deps): Adjust.
7635 * aclocal.m4: Regenerate.
7636 * configure: Regenerate.
7637 * configure.ac: Adjust AC_OUTPUT output.
7638
aad9eab9
YQ
76392012-04-19 Yao Qi <yao@codesourcery.com>
7640
7641 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7642 (vec.o): New rule.
7643 * vec.c: Move it ...
7644 * common/vec.c: ... here.
7645 * vec.h: Move it ...
7646 * common/vec.h: ... here.
7647
48fe4669
YQ
76482012-04-19 Yao Qi <yao@codesourcery.com>
7649
7650 * gdb-code-style.el: New.
7651
770d76d7
PA
76522012-04-18 Pedro Alves <palves@redhat.com>
7653
7654 Update gnulib from latest git.
7655 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7656
7657 * gnulib/Makefile.am: Update.
7658 * gnulib/dummy.c: Update.
7659 * gnulib/extra/arg-nonnull.h: Update.
7660 * gnulib/extra/c++defs.h: Update.
7661 * gnulib/extra/update-copyright: Update.
7662 * gnulib/extra/warn-on-use.h: Update.
7663 * gnulib/inttypes.in.h: Update.
7664 * gnulib/m4/00gnulib.m4: Update.
7665 * gnulib/m4/extensions.m4: Update.
7666 * gnulib/m4/gnulib-cache.m4: Update.
7667 * gnulib/m4/gnulib-common.m4: Update.
7668 * gnulib/m4/gnulib-comp.m4: Update.
7669 * gnulib/m4/gnulib-tool.m4: Update.
7670 * gnulib/m4/include_next.m4: Update.
7671 * gnulib/m4/inttypes-pri.m4: Update.
7672 * gnulib/m4/inttypes.m4: Update.
7673 * gnulib/m4/longlong.m4: Update.
7674 * gnulib/m4/memchr.m4: Update.
7675 * gnulib/m4/memmem.m4: Update.
7676 * gnulib/m4/mmap-anon.m4: Update.
7677 * gnulib/m4/multiarch.m4: Update.
7678 * gnulib/m4/onceonly.m4: Update.
7679 * gnulib/m4/stddef_h.m4: Update.
7680 * gnulib/m4/stdint.m4: Update.
7681 * gnulib/m4/string_h.m4: Update.
7682 * gnulib/m4/warn-on-use.m4: Update.
7683 * gnulib/m4/wchar_h.m4: Update.
7684 * gnulib/m4/wchar_t.m4: Update.
7685 * gnulib/m4/wint_t.m4: Update.
7686 * gnulib/memchr.c: Update.
7687 * gnulib/memmem.c: Update.
7688 * gnulib/stddef.in.h: Update.
7689 * gnulib/stdint.in.h: Update.
7690 * gnulib/str-two-way.h: Update.
7691 * gnulib/string.in.h: Update.
7692 * gnulib/wchar.in.h: Update.
7693
7694 * gnulib/extra/arg-nonnull.h: Delete.
7695 * gnulib/extra/c++defs.h: Delete.
7696 * gnulib/extra/warn-on-use.h: Delete.
7697 * gnulib/m4/wchar_h.m4: Delete.
7698 * gnulib/m4/wint_t.m4: Delete.
7699 * gnulib/wchar.in.h: Delete.
7700
7701 * gnulib/extra/snippets/arg-nonnull.h: New.
7702 * gnulib/extra/snippets/c++defs.h: New.
7703 * gnulib/extra/snippets/warn-on-use.h: New.
7704
7705 * aclocal.m4: Regenerate.
7706 * config.in: Regenerate.
7707 * configure: Regenerate.
7708 * gnulib/Makefile.in: Regenerate.
7709
174e088e
PA
77102012-04-18 Pedro Alves <palves@redhat.com>
7711
7712 Reimport the update-copyright module from gnulib
7713 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7714
7715 * configure: Regenerate.
7716 * gnulib/Makefile.am: Update.
7717 * gnulib/Makefile.in: Regenerate.
7718 * gnulib/extra/update-copyright: Update.
7719 * gnulib/m4/gnulib-cache.m4: Update.
7720 * gnulib/m4/gnulib-comp.m4: Update.
7721
7f533142
JB
77222012-04-18 Tristan Gingold <gingold@adacore.com>
7723
7724 * configure.ac (aix): Put -lpthread into libs.
7725 * configure: Regenerate.
7726
001822aa
TT
77272012-04-18 Tom Tromey <tromey@redhat.com>
7728
7729 * linespec.c (convert_linespec_to_sals): Don't use
7730 SYMBOL_OBJ_SECTION.
7731 (compare_msymbols): Arguments are minsym_and_objfile, not
7732 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7733
db026a31
PA
77342012-04-18 Pedro Alves <palves@redhat.com>
7735
7736 Revert gnulib/ part of:
7737 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7738 Copyright year update in most files (performed by copyright.sh).
7739
12df843f
JK
77402012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 Fix 64-bit constants on 32-bit hosts.
7743 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7744 from unsigned long to ULONGEST.
7745 (read_signed_leb128): Change declaration return type from long to
7746 LONGEST.
7747 (dwarf2_const_value_attr): Change declaration parameter value from long
7748 to LONGEST.
7749 (dwarf2_compute_name): Change variable value from long to LONGEST.
7750 (read_unsigned_leb128): Change return type, variable result and some
7751 casts from unsigned long to ULONGEST.
7752 (read_signed_leb128): Change return type, variable result and some
7753 casts from long to LONGEST.
7754 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7755 value from long to LONGEST.
7756 (dwarf2_const_value): Change variable value from long to LONGEST.
7757 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7758 plongest and hex_string.
7759 * symtab.h (struct general_symbol_info): Change ivalue from long to
7760 LONGEST, remove the comment.
7761 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7762 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7763
14e75d8e
JK
77642012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7765
7766 PR symtab/7259:
7767 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7768 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7769 (ada_discrete_type_low_bound): Fix function comment. Use
7770 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7771 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7772 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7773 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7774 Use TYPE_FIELD_ENUMVAL.
7775 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7776 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7777 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7778 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7779 TYPE_CODE_ENUM.
7780 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7781 * dwarf2read.c (process_enumeration_scope): Likewise.
7782 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7783 field.bitpos.
7784 (class StructMainTypePrettyPrinter): Support also
7785 FIELD_LOC_KIND_ENUMVAL.
7786 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7787 TYPE_CODE_ENUM.
7788 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7789 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7790 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7791 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7792 field enumval.
7793 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7794 accommodate enumval.
7795 (struct call_site): Adjust loc_kind to accommodate enumval.
7796 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7797 (TYPE_FIELD_ENUMVAL): New macros.
7798 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7799 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7800 TYPE_CODE_ENUM.
7801 * p-typeprint.c (pascal_type_print_base): Likewise.
7802 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7803 enumval.
7804 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7805 * python/py-type.c (convert_field): New variable addrstring. Use
7806 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7807 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7808 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7809 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7810 TYPE_CODE_ENUM.
7811 * valprint.c (generic_val_print): Likewise.
7812
380bca97
DE
78132012-04-17 Doug Evans <dje@google.com>
7814
dcc07052
DE
7815 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7816
380bca97
DE
7817 * dwarf2read.c: Whitespace fixes.
7818 (lookup_signatured_type): Tweak comment.
7819 (get_die_type_at_offset): Fix comment.
7820
ec92004f
JB
78212012-04-17 Joel Brobecker <brobecker@adacore.com>
7822
7823 * xcoffread.c (xcoff_secnum_to_sections): New function.
7824 (secnum_to_section, secnum_to_bfd_section): Reimplement
7825 using xcoff_secnum_to_sections. Rename "secnum" parameter
7826 into "n_scnum".
7827 (RECORD_MINIMAL_SYMBOL): Delete.
7828 (record_minimal_symbol): New function.
7829 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7830 by call to record_minimal_symbol and set misc_func_recorded
7831 to 1. Set last_csect_sec to the XCOFF section index instead
7832 of GDB's section_offset index. Update calls to
7833 prim_record_minimal_symbol_and_info to pass the BFD section
7834 as well.
7835
40301fb7
JB
78362012-04-17 Joel Brobecker <brobecker@adacore.com>
7837
7838 * xcoffread.c (read_xcoff_symtab): Delete variables
7839 last_csect_val and last_csect_sec and associated code.
7840
e0088cfd
DE
78412012-04-17 Doug Evans <dje@google.com>
7842
58d5e2c3
DE
7843 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7844 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7845 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7846 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7847
c27f5738
DE
7848 * cleanups.h: New file.
7849 * cleanups.c: New file.
7850 * Makefile.in (SFILES): Add cleanups.c.
7851 (HFILES_NO_SRCDIR): Add cleanups.h.
7852 (COMMON_OBS): Add cleanups.o.
7853 * defs.h (struct cleanup): Moved to cleanups.h.
7854 (do_cleanups,do_final_cleanups): Ditto.
7855 (discard_cleanups,discard_final_cleanups): Ditto
7856 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7857 (save_cleanups,save_final_cleanups): Ditto.
7858 (restore_cleanups,restore_final_cleanups): Ditto.
7859 (null_cleanup): Ditto.
7860 (make_my_cleanup,make_my_cleanup2): Ditto.
7861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7862 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7863 (do_cleanups,do_final_cleanups): Ditto.
7864 (discard_cleanups,discard_final_cleanups): Ditto
7865 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7866 (save_cleanups,save_final_cleanups): Ditto.
7867 (restore_cleanups,restore_final_cleanups): Ditto.
7868 (null_cleanup): Ditto.
7869 (make_my_cleanup,make_my_cleanup2): Ditto.
7870 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7871
e0088cfd
DE
7872 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7873 make_my_cleanup.
7874 (make_cleanup_dyn_string_delete): Ditto.
7875 (make_cleanup_ui_file_delete): Ditto.
7876 (make_cleanup_ui_out_redirect_pop): Ditto.
7877 (make_cleanup_free_section_addr_info): Ditto.
7878 (make_cleanup_restore_integer): Ditto.
7879 (make_cleanup_unpush_target): Ditto.
7880 (make_cleanup_value_free_to_mark): Ditto.
7881 (make_cleanup_value_free): Ditto.
7882 (make_cleanup_free_so): Ditto.
7883
4dc84fd1
JK
78842012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7885
7886 New option "set debug auto-load".
7887 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7888 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7889 (auto_load_safe_path_vec_update)
7890 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7891 if DEBUG_AUTO_LOAD.
7892 (file_is_auto_load_safe): New parameters debug_fmt and ....
7893 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7894 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7895 caller by explanatory string.
7896 (_initialize_auto_load): Register "set debug auto-load".
7897 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7898 and ....
7899 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7900 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7901 by explanatory string.
7902 * main.c (captured_main): Likewise.
7903 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7904 (source_section_scripts): Likewise.
7905
bccbefd2
JK
79062012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 New option "set auto-load safe-path".
7909 * NEWS: New commands "set auto-load safe-path"
7910 and "show auto-load safe-path".
7911 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7912 (auto_load_safe_path, auto_load_safe_path_vec)
7913 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7914 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7915 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7916 (source_gdb_script_for_objfile): New variable is_safe. Call
7917 file_is_auto_load_safe. Return if it is not.
7918 (struct loaded_script): New field loaded.
7919 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7920 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7921 output "Missing" to "No".
7922 (_initialize_auto_load): New variable cmd. Initialize
7923 auto_load_safe_path. Register "set auto-load safe-path",
7924 "show auto-load safe-path" and "add-auto-load-safe-path".
7925 * auto-load.h (maybe_add_script): Add parameter loaded.
7926 (file_is_auto_load_safe): New declaration.
7927 * config.in: Regenerate.
7928 * configure: Regenerate.
7929 * configure.ac: New parameters --with-auto-load-safe-path
7930 and --without-auto-load-safe-path.
7931 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7932 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7933 * main.c (captured_main): Check file_is_auto_load_safe for
7934 LOCAL_GDBINIT.
7935 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7936 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7937 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7938 not.
7939
bf88dd68
JK
79402012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 auto-load: Implementation.
7943 * NEWS: New descriptions for "info auto-load",
7944 "info auto-load gdb-scripts", "info auto-load python-scripts",
7945 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7946 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7947 and "show auto-load-scripts". New description for "set auto-load",
7948 "show auto-load", "set auto-load gdb-scripts",
7949 "show auto-load gdb-scripts", "set auto-load python-scripts",
7950 "show auto-load python-scripts", "set auto-load local-gdbinit",
7951 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7952 "show auto-load libthread-db".
7953 * auto-load.c: Remove include python/python-internal.h. Add includes
7954 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7955 cli/cli-setshow.h.
7956 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7957 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7958 (gdbpy_global_auto_load): Rename to ...
7959 (global_auto_load): ... here.
7960 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7961 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7962 (script_language_gdb, source_gdb_script_for_objfile): New.
7963 (struct loaded_script): New field language.
7964 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7965 LANGUAGE.
7966 (maybe_add_script): Add parameter language. Drop redundant
7967 entry.full_path initialization. Initialize entry.language and
7968 (*slot)->language.
7969 (auto_load_objfile_script): Change parameter suffix to language.
7970 Remove the call of maybe_add_script.
7971 Call language->source_script_for_objfile.
7972 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7973 New.
7974 (collect_matching_scripts): Adjust it for
7975 struct collect_matching_scripts_data.
7976 (auto_load_info_scripts_pattern_nl): New variable.
7977 (info_auto_load_scripts): Rename to ...
7978 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7979 for struct collect_matching_scripts_data.
7980 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7981 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7982 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7983 (auto_load_info_cmdlist_get): New.
7984 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7985 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7986 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7987 "info auto-load local-gdbinit".
7988 * auto-load.h (struct script_language): New.
7989 (gdbpy_global_auto_load): Rename to ...
7990 (global_auto_load): ... here.
7991 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7992 (auto_load_local_gdbinit_loaded): New declarations.
7993 (maybe_add_script): New parameter language.
7994 (auto_load_objfile_script): Change parameter suffix to language.
7995 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7996 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7997 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7998 declarations.
7999 * linux-thread-db.c: Include auto-load.h and ctype.h.
8000 (auto_load_thread_db, show_auto_load_thread_db): New.
8001 (struct thread_db_info): New field filename.
8002 (delete_thread_db_info): Call xfree for FILENAME.
8003 (try_thread_db_load): Initialize FILENAME.
8004 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8005 if !AUTO_LOAD_THREAD_DB.
8006 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8007 (_initialize_thread_db): Install auto_load_thread_db
8008 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8009 as "info auto-load libthread-db".
8010 * main.c (captured_main): Rename gdbpy_global_auto_load to
8011 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8012 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8013 (print_gdb_help): Extend the help for 'local init file'.
8014 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8015 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8016 (auto_load_scripts): Rename to ...
8017 (auto_load_python_scripts): ... here, update the comment.
8018 (gdbpy_load_auto_script_for_objfile): New declaration.
8019 (show_auto_load_python_scripts, script_language_python)
8020 (gdbpy_load_auto_script_for_objfile): New.
8021 (source_section_scripts): Refactor the code.
8022 (load_auto_scripts_for_objfile): Rename to ...
8023 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8024 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8025 (info_auto_load_python_scripts): New.
8026 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8027 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8028 Register "set auto-load-scripts" as its deprecated alias. Register
8029 "info auto-load python-scripts". Register "info auto-load-scripts" as
8030 its deprecated alias.
8031 (load_auto_scripts_for_objfile): Rename to ...
8032 (gdbpy_load_auto_scripts_for_objfile): ... here.
8033 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8034 (gdbpy_load_auto_scripts_for_objfile): ... here.
8035
e2207b9a
JK
80362012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8037
8038 auto-load: Move files.
8039 * Makefile.in (SFILES): Add auto-load.c.
8040 (HFILES_NO_SRCDIR): Add auto-load.h.
8041 (COMMON_OBS): Add auto-load.o.
8042 (distclean): Change .gdbinit for gdb-gdb.gdb.
8043 * auto-load.c: New file, with parts from python/py-auto-load.c.
8044 * auto-load.h: New file, with parts from python/python.h.
8045 * configure: Regenerate.
8046 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8047 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8048 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8049 * main.c: Include auto-load.h.
8050 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8051 command.h, observer.h and progspace.h to auto-load.c. Add include
8052 auto-load.h.
8053 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8054 (struct loaded_script, auto_load_pspace_data)
8055 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8056 (hash_loaded_script_entry, eq_loaded_script_entry)
8057 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8058 (maybe_add_script): Move to auto-load.c.
8059 (source_section_scripts): Change maybe_add_script parameters passing,
8060 use script_not_found_warning_print.
8061 (clear_section_scripts, auto_load_objfile_script)
8062 (auto_load_new_objfile, loaded_script_ptr)
8063 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8064 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8065 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8066 auto_load_new_objfile and info_auto_load_scripts initizations to
8067 auto-load.c.
8068 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8069
e4ab2fad
JK
80702012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Code cleanup.
8073 * charset.c (find_charset_names): Remove variables ix and elt.
8074 Use free_char_ptr_vec.
8075 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8076 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8077 debugdir_end. New variable debugdir_len.
8078 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8079 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8080 declarations.
8081 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8082 and elt. Use free_char_ptr_vec.
8083 * source.c (add_path): Remove variables argv, arg and argv_index.
8084 New variables dir_vec, back_to, ix and name.
8085 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8086 make_cleanup_freeargv. Remove variable separator. Simplify the code
8087 no longer expecting DIRNAME_SEPARATOR.
8088 (openp): Remove variable p, p1 and len. New variables dir_vec,
8089 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8090 no longer expecting DIRNAME_SEPARATOR.
8091 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8092 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8093 debugdir_end.
8094 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8095 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8096 (dirnames_to_char_ptr_vec): New functions.
8097
5ee4ed9f
JK
80982012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8099
8100 Code cleanup.
8101 * source.c (add_path): Remove always true conditional 'p == 0' and
8102 unindent its code block.
8103
f41f5e61
PA
81042012-04-17 Pedro Alves <palves@redhat.com>
8105
8106 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8107 (FIELD_BITPOS_LVAL): ... this.
8108 (FIELD_BITPOS): New.
8109 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8110 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8111 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8112 SET_FIELD_BITPOS.
8113 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8114 SET_FIELD_BITPOS.
8115 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8116 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8117 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8118 SET_FIELD_BITPOS.
8119
945b3a32
JK
81202012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8121
8122 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8123 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8124 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8125 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8126 * jv-lang.c (java_link_class_type): Likewise, once.
8127 * stabsread.c (read_enum_type): Likewise.
8128
42476b70
YQ
81292012-04-16 Yao Qi <yao@codesourcery.com>
8130
8131 * common/agent.c (agent_run_command): Add one more parameter `len'.
8132 Update callers.
8133 * common/agent.h: Update declaration.
8134 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8135 Update.
8136 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8137
8264ba82
AG
81382012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8139
8140 PR mi/13393
8141 * value.c (value_actual_type): New function.
8142 * value.h (value_actual_type): New declaration.
8143 * varobj.c (update_type_if_necessary): New function.
8144 (varobj_create): Call value_actual_type instead of
8145 value_type.
8146 (install_dynamic_child): distinct changed and type changed MI variable
8147 objects.
8148 (update_dynamic_varobj_children): Updated for install_dynamic_child
8149 change. All callers updated.
a09130f9 8150 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8151 the value changed and RTTI is used to determine the type.
8152 (create_child_with_value): Call value_actual_type instead of
8153 value_type.
a09130f9 8154 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8155 specify whether the given value should be casted to enclosing type.
8156 All callers updated.
8157
55a8c076
YQ
81582012-04-14 Yao Qi <yao@codesourcery.com>
8159
8160 Import gnulib module inttypes from git
8161 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8162 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8163 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8164 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8165 * aclocal.m4, config.in, configure: Regenerated.
8166 * gnulib/Makefile.am: Update.
8167 * gnulib/Makefile.in: Update.
8168 * gnulib/m4/gnulib-cache.m4: Update.
8169 * gnulib/m4/gnulib-comp.m4: Update.
8170 * gnulib/inttypes.in.h: New.
8171 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8172 * gnulib/m4/inttypes.m4: New.
55a8c076 8173
ca7781d2
LM
81742012-04-13 Luis Machado <lgustavo@codesourcery.com>
8175
8176 * infrun.c (resume): Update PC address to the real PC after
8177 preparing to do displaced stepping.
8178
e319fa28
DE
81792012-04-12 Doug Evans <dje@google.com>
8180
8181 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8182 All callers updated.
8183
15add3f5
MK
81842012-04-12 Mark Kettenis <kettenis@gnu.org>
8185
8186 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8187
52dc124a
DE
81882012-04-12 Doug Evans <dje@google.com>
8189
0e50663e
DE
8190 * dwarf2read.c (create_all_type_units): Renamed from
8191 create_debug_types_hash_table. All callers updated.
8192
52dc124a
DE
8193 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8194 local type_sig to sig_type, type_offset to type_offset_in_tu.
8195 (hash_signatured_type): Renamed from hash_type_signature,
8196 all callers updated.
8197 (eq_signatured_type): Renamed from eq_type_signature,
8198 all callers updated.
8199 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8200 (process_enumeration_scope): Ditto.
8201 (lookup_signatured_type_at_offset): Ditto.
8202 (load_full_type_unit, read_signatured_type): Ditto.
8203
248fd3bf
YQ
82042012-04-12 Yao Qi <yao@codesourcery.com>
8205
8206 * remote.c (async_remote_interrupt): Correct function name in
8207 debug message.
8208 (async_remote_interrupt_twice): Ditto.
8209
bc3aa6c3
DE
82102012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8211
8212 * source.c (find_and_open_source): Consistently pass resulting
8213 full path through xfullpath.
8214
9e529e1d
JK
82152012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8216
8217 Provide more specific displaced-stepping memory error message.
8218 * infrun.c (displaced_step_prepare): New variable status. Call
8219 target_read_memory instead of read_memory, provide more specific
8220 error message.
8221
82e0cec1
TG
82222012-04-11 Tristan Gingold <gingold@adacore.com>
8223
8224 PR gdb/13901
8225 * darwin-nat.c (darwin_execvp): Revert previous patch.
8226
d987a266
TG
82272012-04-11 Tristan Gingold <gingold@adacore.com>
8228
8229 PR gdb/13901
8230 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8231 in case of change.
8232
016b7430
TG
82332012-04-11 Tristan Gingold <gingold@adacore.com>
8234
8235 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8236 warning.
8237
06fc020f
SCR
82382012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8239
8240 New command 'explore' which helps explore values and types in
8241 scope.
8242 * NEWS: Add an entry about the new 'explore' command.
8243 * data-directory/Makefile.in: Add gdb/command/explore.py
8244 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8245 command using the GDB Python API.
06fc020f 8246
de0919f8 82472012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8248
8249 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8250 extension in jump target calculation.
8251
de0919f8 82522012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8253
8254 * mips-tdep.c (mips32_next_pc): Handle JALX.
8255
2f26ef89
YQ
82562012-04-10 Yao Qi <yao@codesourcery.com>
8257
8258 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8259
2e505b66
YQ
82602012-04-10 Yao Qi <yao@codesourcery.com>
8261
8262 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8263 and gnulib/m4/gnulib-tool.m4.
8264
0d99eb77
DE
82652012-04-10 Doug Evans <dje@google.com>
8266
8267 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8268 (load_partial_dies): Clarify comment.
8269 (find_partial_die): Support rereading type units.
8270 Clarify CU handling, if we know offset is in CU, don't search for the
8271 containing CU. Add comment regarding memory waste.
8272
9a82b8ff
L
82732012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8274
8275 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8276 i386/x32-avx and i386/x32-avx-linux.
8277 (i386/x32-expedite): New.
8278 (i386/x32-linux-expedite): Likewise.
8279 (i386/x32-avx-expedite): Likewise.
8280 (i386/x32-avx-linux-expedite): Likewise.
8281 ($(outdir)/i386/x32.dat): Likewise.
8282 ($(outdir)/i386/x32-linux.dat): Likewise.
8283 ($(outdir)/i386/x32-avx.dat): Likewise.
8284 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8285
8286 * features/i386/x32-avx-linux.xml: New file.
8287 * features/i386/x32-avx.xml: Likewise.
8288 * features/i386/x32-core.xml: Likewise.
8289 * features/i386/x32-linux.xml: Likewise.
8290 * features/i386/x32.xml: Likewise.
8291
8292 * features/i386/x32-avx-linux.c: New. Generated.
8293 * features/i386/x32-avx.c: Likewise.
8294 * features/i386/x32-linux.c: Likewise.
8295 * features/i386/x32.c: Likewise.
8296 * regformats/i386/x32-avx-linux.dat: Likewise.
8297 * regformats/i386/x32-avx.dat: Likewise.
8298 * regformats/i386/x32-linux.dat: Likewise.
8299 * regformats/i386/x32.dat: Likewise.
8300
ee41036f
TG
83012012-04-10 Tristan Gingold <gingold@adacore.com>
8302
8303 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8304 code to kill the inferior.
8305
a7aa5b8a
MK
83062012-04-09 Mark Kettenis <kettenis@gnu.org>
8307
8308 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8309 defines.
8310 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8311 defines.
a09130f9 8312 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8313 (yyvsp): New defines.
8314 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8315 defines.
8316 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8317 defines.
8318 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8319 defines.
8320 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8321 defines.
8322 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8323 defines.
8324
fb57d452
MK
83252012-04-09 Mark Kettenis <kettenis@gnu.org>
8326
a09130f9 8327 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8328 (sparc64_store_arguments): Fix coding style.
8329
cdc7b32f
MK
83302012-04-07 Mark Kettenis <kettenis@gnu.org>
8331
8332 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8333 complex floats, adjust some related comments and tighten a related
8334 assertion.
8335 (sparc64_extract_return_value): Handle complex floats.
8336
7adf1e79
DE
83372012-04-07 Doug Evans <dje@google.com>
8338
8339 * dwarf2read.c (load_partial_dies): Change condition to assert.
8340
50f1ae7b
DE
83412012-04-06 Doug Evans <dje@google.com>
8342
8343 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8344 "mov %rsp,%rbp".
8345
55fa75c3
KB
83462012-04-05 Kevin Buettner <kevinb@redhat.com>
8347
8348 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8349 fencepost error.
8350 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8351 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8352 architecture.
8353
40e084e1
KS
83542012-04-05 Keith Seitz <keiths@redhat.com>
8355
8356 * linespec.c (decode_compound): Remove.
8357 (enum offset_relative_sign): New enum.
8358 (struct line_offset): New struct.
8359 (struct linespec): New struct.
8360 (struct linespec_state): Move file_symtabs,
8361 user_filename, and user_function into struct linespec.
8362 Make result an anonymous struct holding vectors of
8363 symbolp and minsym_and_objfile_d.
8364 Add language member.
8365 (enum ls_token_type): New enum.
8366 (linespec_keywords): New array.
8367 (struct ls_token): New struct.
8368 (struct ls_parser): New struct.
8369 (linespec_lexer_lex_number): New function.
8370 (linespec_lexer_lex_keyword): New function.
8371 (is_ada_operator): New function.
8372 (skip_quote_char): New function.
8373 (copy_token_string): New function.
8374 (is_closing_quote_enclosed): New function.
8375 (find_parameter_list_end): New function.
8376 (linespec_lexer_lex_string): New function.
8377 (linespec_lexer_lex_one): New function.
8378 (linespec_lexer_consume_token): New function.
8379 (linespec_lexer_peek_token): New function.
8380 (cplusplus_error): Remove unused function.
8381 (find_methods): Update comment.
8382 (find_toplevel_char): Return const.
8383 (is_objc_method_format): Remove unused function.
8384 (find_toplevel_string): New function.
8385 (is_linespec_boundary): Remove.
8386 (symbol_not_found_error): New function.
8387 (find_method_overload_end): Remove function.
8388 (unexpected_linespec_error): New function.
8389 (keep_name_info): Remove.
8390 (linespec_parse_line_offset): New function.
8391 (linespec_parse_basic): New function.
8392 (canonicalize_linespec): New function.
8393 (decode_line_internal): Remove.
8394 (create_sals_line_offset): New function adapted from
8395 decode_all_digits.
8396 (convert_linespec_to_sals): New function.
8397 (parse_linespec): New function.
8398 (linespec_parser_new): New function.
8399 (linespec_state_destructor): Change parameter type to
8400 struct linespec_state *.
8401 Add language parameter.
8402 Remove freeing of moved members.
8403 (linespec_parser_delete): New function.
8404 (decode_line_full): Use parse_linespec and linespec_parser_new.
8405 (decode_line_1): Likewise.
8406 (decode_indirect): Rename to ...
8407 (linespec_expression_to_pc): ... this and rewrite
8408 to simply find CORE_ADDR, storing this result for later
8409 conversion to SALs.
8410 (locate_first_half): Remove.
8411 (deocde_objc): Add parameter LS.
8412 Initialize new struct collect_info members.
8413 Handle minimal symbols, too.
8414 (decode_compound): Delete.
8415 (lookup_prefix_sym): Rewrite.
8416 (compare_msymbols): New function.
8417 (find_method): Rewrite.
8418 Do not call cplusplus_error.
8419 (symtabs_from_filename): Rewrite.
8420 (collect_function_symbols): Delete.
8421 (find_function_symbols): Rewrite without ARGPTR-style
8422 processing.
8423 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8424 (decode_dollar): Adapted and renamed to ...
8425 (linespec_parse_variable): ... this.
8426 (find_linespec_symbols): New function.
8427 (decode_label): Adapted and renamed to ...
8428 (find_label_symbols): ... this.
8429 (decode_digits_list_mode): Add and use LS argument.
8430 (decode_digits_ordinary): Likewise.
8431 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8432 If in list mode, allow any symbol class. Otherwise, only
8433 permit LOC_BLOCK symbols.
8434 (minsym_found): Update comments.
8435 (search_minsyms_for_name): Do not convert the matching symbol
8436 into a SAL. Simply push the symbol and objfile into the
8437 result vector.
8438 (decode_variable): Delete. Contents adapted into
8439 find_linespec_symbols.
8440
8441 * cp-support.c (SKIP_SPACE): Remove.
8442 (operator_tokens): Remove unused global.
8443 (cp_validate_operator): Remove.
8444 * cp-support.h (cp_validate_operator): Remove declaration.
8445
a72c8f6a
JK
84462012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8447
8448 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8449 for TYPE_VPTR_FIELDNO.
8450 * valprint.c (valprint_check_validity): Make it global, move the
8451 function comment ...
8452 * value.h (valprint_check_validity): ... to this new declaration.
8453
cf9bb588
TG
84542012-04-02 Tristan Gingold <gingold@adacore.com>
8455
8456 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8457 the STATE32 api for i386 state.
8458 (i386_darwin_store_inferior_registers): Likewise.
8459
17092398
TG
84602012-04-02 Tristan Gingold <gingold@adacore.com>
8461
8462 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8463 SS offset.
8464 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8465 format_string.
8466
ece0061f
TG
84672012-04-02 Tristan Gingold <gingold@adacore.com>
8468
8469 PR gdb/13901
d987a266 8470 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8471
cf65ecd3
JK
84722012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8473
8474 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8475
9bc3523d
TT
84762012-03-30 Tom Tromey <tromey@redhat.com>
8477
8478 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8479 of TRY_CATCH. Fix error handling.
8480 * python/py-value.c (convert_value_from_python): Move 'old'
8481 declaration to innermost scope.
8482
b1ed564a
JB
84832012-03-29 Joel Brobecker <brobecker@adacore.com>
8484 Andrey Smirnov <andrew.smirnov@gmail.com>
8485
8486 -Wshadow warning fix.
8487 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8488 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8489 Adjust code accordingly.
8490
cb8e9b97
JB
84912012-03-29 Joel Brobecker <brobecker@adacore.com>
8492
8493 * ada-lang.c (symbol_completion_add): Rename parameter
8494 "encoded" into "encoded_p". Ajust code and documentation
8495 accordingly.
8496
c0af1706
JB
84972012-03-29 Joel Brobecker <brobecker@adacore.com>
8498 Andrey Smirnov <andrew.smirnov@gmail.com>
8499
8500 -Wshadow warning fix.
8501 * ada-lang.c (symbol_completion_add): Rename parameter
8502 "wild_match" into wild_match_p. Update code and documentation
8503 accordingly.
8504
6ea35997
JB
85052012-03-29 Joel Brobecker <brobecker@adacore.com>
8506
8507 * ada-lang.c (symbol_completion_match): Rename parameter
8508 "encoded" into "encoded_p". Ajust code and documentation
8509 accordingly.
8510
e701b3c0
JB
85112012-03-29 Joel Brobecker <brobecker@adacore.com>
8512 Andrey Smirnov <andrew.smirnov@gmail.com>
8513
8514 -Wshadow warning fix.
8515 * ada-lang.c (symbol_completion_match): Rename parameter
8516 "wild_match" into "wild_match_p". Adjust code and function
8517 documentation accordingly.
8518
5e2336be
JB
85192012-03-29 Joel Brobecker <brobecker@adacore.com>
8520 Andrey Smirnov <andrew.smirnov@gmail.com>
8521
8522 -Wshadow warning fix.
8523 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8524 "symbol_info" into "info". Adjust code accordingly.
8525 (ada_lookup_symbol): Likewise.
8526
9f88c959
JB
85272012-03-29 Joel Brobecker <brobecker@adacore.com>
8528
8529 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8530 of this function's documentation.
8531
82ccd55e
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_lookup_symbol_list): Rename "wild_match"
8537 variable into "wild_match_p". Adjust code accordingly.
8538
d0a8ab18
JB
85392012-03-29 Joel Brobecker <brobecker@adacore.com>
8540 Andrey Smirnov <andrew.smirnov@gmail.com>
8541
8542 -Wshadow warning fix.
8543 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8544 parameter into "wild_match_p". Adjust code accordingly.
8545 Document this parameter in the function description.
8546
48b78332
JB
85472012-03-29 Joel Brobecker <brobecker@adacore.com>
8548 Andrey Smirnov <andrew.smirnov@gmail.com>
8549
8550 -Wshadow warning fix.
8551 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8552 "wild_match" parameter to "wild_match_p" (-Wshadow).
8553
2e6e0353
JB
85542012-03-29 Joel Brobecker <brobecker@adacore.com>
8555
8556 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8557 in function documentation.
8558
dc4024cd
JB
85592012-03-29 Joel Brobecker <brobecker@adacore.com>
8560 Andrey Smirnov <andrew.smirnov@gmail.com>
8561
8562 -Wshadow warning fix.
8563 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8564 variable into wild_match_p. Adjust code accordingly.
8565
6c88661c
JB
85662012-03-29 Joel Brobecker <brobecker@adacore.com>
8567 Andrey Smirnov <andrew.smirnov@gmail.com>
8568
8569 * ada-valprint.c (ada_val_print_1): Move the code handling
8570 TYPE_CODE_ENUM inside its own lexical block. Declare
8571 variables len and val there, instead of in the function's
8572 top level block. Avoid declaring deref_val again in a way
8573 that shadows another variable of the same name declared
8574 in one of the up-level blocks. Just re-use the up-level
8575 variable instead.
8576
4e5c77fe
JB
85772012-03-29 Joel Brobecker <brobecker@adacore.com>
8578
8579 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8580 Replace block_found argument by symbol_info. Adjust
8581 implementation accordingly. Add function documentation.
8582 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8583 Fix documentation.
8584 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8585 * ada-exp.y (write_object_renaming): Adjust to new
8586 ada_lookup_encoded_symbol API.
8587
1c0ac8c7
JB
85882012-03-29 Joel Brobecker <brobecker@adacore.com>
8589
8590 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8591 documentation.
8592
2aaed979
KB
85932012-03-28 Rathish C <rathish.c@kpitcummins.com>
8594
8595 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8596 (v850_register_name): Add the mpu and fpu register names.
8597 (v850e_register_name): Add the mpu and fpu register names.
8598 (v850e2_register_name): New function.
a09130f9 8599 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8600 bfd_mach_v850e2v3.
8601
927fbba6
JB
86022012-03-28 Joel Brobecker <brobecker@adacore.com>
8603
8604 * NEWS: Add entry for Ada varobj support.
8605
d32cafc7
JB
86062012-03-28 Joel Brobecker <brobecker@adacore.com>
8607
8608 * varobj.c (default_value_is_changeable_p): New function,
8609 extracted from varobj_value_is_changeable_p. Add declaration.
8610 (ada_value_is_changeable_p): New function, extracted from
8611 varobj_value_is_changeable_p. Add declaration.
8612 (struct language_specific): New field "value_is_changeable_p".
8613 (languages): Add entries for new field.
8614 (varobj_create): Set language before calling install_new_value.
8615 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8616 "value_is_changeable_p" language callback.
8617
181875a4
JB
86182012-03-28 Joel Brobecker <brobecker@adacore.com>
8619
8620 * ada-varobj.h, ada-varobj.c: New files.
8621 * Makefile.in (SFILES): Add ada-varobj.c.
8622 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8623 (COMMON_OBS): Add ada-varobj.o.
8624
7a290c40
JB
86252012-03-28 Joel Brobecker <brobecker@adacore.com>
8626
8627 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8628 (struct language_specific): New field "value_has_mutated".
8629 (languages): Set field "value_has_mutated" in each entry of array.
8630 (varobj_value_has_mutated): New function.
8631 (varobj_udpdate): Add handling of type mutation.
8632 (value_of_root): Add handling of type mutation.
8633 (ada_value_has_mutated): New function.
8634
ca9b8b9c
PA
86352012-03-28 Pedro Alves <palves@redhat.com>
8636
8637 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8638 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8639
cc0265cd
TT
86402012-03-28 Tom Tromey <tromey@redhat.com>
8641
8642 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8643 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8644 before returning.
8645
3ad2ec6f
TT
86462012-03-28 Tom Tromey <tromey@redhat.com>
8647
8648 * .dir-locals.el: New file.
8649
4a6510ba
PA
86502012-03-28 Pedro Alves <palves@redhat.com>
8651
8652 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8653
5a75128f
JB
86542012-03-28 Joel Brobecker <brobecker@adacore.com>
8655
8656 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8657 handling for r0.
8658
f99d8bf4
PA
86592012-03-27 Pedro Alves <palves@redhat.com>
8660
8661 Eliminate struct ui_stream.
8662
8663 * ui-out.h (struct ui_stream): Delete.
8664 (ui_out_field_stream): Adjust prototype.
8665 (ui_out_stream_new, ui_out_stream_delete)
8666 (make_cleanup_ui_out_stream_delete): Delete declarations.
8667 * ui-out.c (ui_out_field_stream): Change prototype to take a
8668 ui_file instead of a ui_stream. Adjust.
8669 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8670 (make_cleanup_ui_out_stream_delete): Delete.
8671 * breakpoint.c (print_breakpoint_location)
8672 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8673 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8674 * disasm.c (dump_insns): Ditto.
8675 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8676 prototype.
8677 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8678 ui_stream/ui_out_stream_new.
8679 * infcmd.c (print_return_value): Ditto.
8680 * osdata.c (info_osdata_command): Don't allocate a local
8681 ui_stream.
8682 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8683 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8684 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8685 allocate a local ui_stream.
8686 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8687 instead of ui_stream/ui_out_stream_new.
8688 (list_args_or_locals): Don't allocate a local ui_stream.
8689 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8690 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8691 ui_stream/ui_out_stream_new.
8692 * cli/cli-setshow.c (do_setshow_command): Ditto.
8693
6350a066 86942012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8695
6350a066
PA
8696 * arm-linux-tdep.c (arm_linux_init_abi): Call
8697 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8698 * arm-tdep.c (arm_process_record): New function.
8699 (deallocate_reg_mem): New function.
8700 (decode_insn): New function.
8701 (thumb_record_branch): New function.
8702 (thumb_record_ldm_stm_swi(): New function.
8703 (thumb_record_misc): New function.
8704 (thumb_record_ld_st_stack): New function.
8705 (thumb_record_ld_st_imm_offset): New function.
8706 (thumb_record_ld_st_reg_offset(): New function.
8707 (thumb_record_add_sub_cmp_mov): New function.
8708 (thumb_record_shift_add_sub): New function.
8709 (arm_record_coproc_data_proc): New function.
8710 (arm_record_coproc): New function.
8711 (arm_record_b_bl): New function.
8712 (arm_record_ld_st_multiple): New function.
8713 (arm_record_ld_st_reg_offset): New function.
8714 (arm_record_ld_st_imm_offset): New function.
8715 (arm_record_data_proc_imm): New function.
8716 (arm_record_data_proc_misc_ld_str): New function.
8717 (arm_record_extension_space): New function.
8718 (arm_record_strx): New function.
8719 (sbo_sbz): New function.
8720 (struct insn_decode_record): New structure for arm insn record.
8721 (REG_ALLOC): New macro for reg allocations.
8722 (MEM_ALLOC): New macro for memory allocations.
8723 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8724
89e028e2
AS
87252012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8726
8727 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8728 (store_register): Likewise.
8729
6350a066 87302012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8731
6350a066 8732 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8733
5b43fab2
JK
87342012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8737 Describe also the option "auto".
8738
b5453b95
RH
87392012-03-22 Richard Henderson <rth@redhat.com>
8740
8741 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8742 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8743
227ee7fc
RH
87442012-03-22 Richard Henderson <rth@redhat.com>
8745
8746 * jit.c (jit_read_code_entry): Compute alignment and offset of
8747 int64_t member before computing entry_size.
8748
7b282c5a
SCR
87492012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8750
8751 Python scripting: Add new method Value.referenced_value to
8752 gdb.Value which can dereference pointer as well as reference
8753 values.
8754 * NEWS: Add entry under 'Python scripting' about the new method
8755 Value.referenced_value on gdb.Value objects.
8756 * python/py-value.c (valpy_referenced_value): New function
8757 defining a new method on gdb.Value objects which can dereference
8758 pointer and reference values.
8759
0c83539f
SCR
87602012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8761
8762 * MAINTAINERS (Write After Approval): Add myself to the list.
8763
7ccffd7c
KB
87642012-03-21 Kevin Buettner <kevinb@redhat.com>
8765
8766 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8767 in addition to "main".
8768
bd0b9f9e
JB
87692012-03-21 Joel Brobecker <brobecker@adacore.com>
8770
8771 * expression.h (op_name): Add declaration.
8772 * expprint.c (op_name): Remove declaration. Make non-static.
8773 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8774
a5362b9a
TS
87752012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8776
8777 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8778 of struct siginfo.
8779 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8780 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8781 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8782 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8783 (linux_nat_get_siginfo): Likewise.
8784 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8785 (linux_nat_get_siginfo): Likewise.
8786 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8787 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8788 * procfs.c (gdb_siginfo_t): Likewise.
8789
adcadaab
MF
87902012-03-21 Mike Frysinger <vapier@gentoo.org>
8791
8792 * .gitignore: Ignore more files.
8793
e278ad5b
PA
87942012-03-20 Pedro Alves <palves@redhat.com>
8795
8796 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8797 returns.
8798
741e63d7
YQ
87992012-03-20 Yao Qi <yao@codesourcery.com>
8800
8801 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8802 comment.
8803
b64f50a1
JK
88042012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8805
8806 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8807 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8808 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8809 sect_offset.
8810 * dwarf2expr.h (cu_offset, sect_offset): New types.
8811 (struct dwarf_expr_context_funcs) <dwarf_call>
8812 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8813 sect_offset.
8814 (struct dwarf_expr_context) <len>: Improve the comment.
8815 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8816 cu_offset and sect_offset.
8817 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8818 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8819 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8820 * dwarf2loc.h: Include dwarf2expr.h.
8821 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8822 and sect_offset.
8823 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8824 Improve the comment.
8825 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8826 (struct signatured_type, struct line_header, struct partial_die_info)
8827 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8828 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8829 (get_die_type_at_offset, create_cus_from_index)
8830 (create_signatured_type_table_from_index, dw2_get_file_names)
8831 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8832 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8833 (create_debug_types_hash_table, process_psymtab_comp_unit)
8834 (load_partial_comp_unit, create_all_comp_units)
8835 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8836 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8837 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8838 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8839 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8840 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8841 (find_partial_die, read_attribute_value, lookup_die_type)
8842 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8843 (is_ref_attr): New function comment.
8844 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8845 Use cu_offset and sect_offset.
8846 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8847 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8848 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8849 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8850 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8851 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8852 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8853 sect_offset.
8854
e97a38f7
JK
88552012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 Code cleanup.
8858 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8859 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8860 with xfree.
8861 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8862
8320cc4f
JK
88632012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8864
8865 * NEWS: Describe new options --init-command=FILE, -ix and
8866 --init-eval-command=COMMAND, -iex.
8867 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8868 CMDARG_INIT_COMMAND.
8869 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8870 "init-command", "init-eval-command", "ix" and "iex" to the variable
8871 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8872 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8873 (print_gdb_help): Describe --init-command=FILE, -ix and
8874 --init-eval-command=COMMAND, -iex.
8875
26743505
JK
88762012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8877
8878 Code cleanup.
8879 * main.c (struct cmdarg): Move it here from main. Add more comments.
8880 (cmdarg_s, VEC (cmdarg_s)): New.
8881 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8882 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8883 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8884 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8885 of CMDARG.
8886
5ff5c7b4
TT
88872012-03-19 Tom Tromey <tromey@redhat.com>
8888
8889 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8890
ab260dad
JK
88912012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 PR symtab/13777
8894 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8895 GCC >=4.5.
8896
c366c1f0
TT
88972012-03-16 Chris January <chris.january@allinea.com>
8898
8899 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8900 of clear.
8901
e16edb45
TT
89022012-03-16 Chris January <chris.january@allinea.com>
8903
8904 * source.c (add_path): Use memmove instead of strcpy because the
8905 strings overlap.
8906
53ba8333
JB
89072012-03-16 Joel Brobecker <brobecker@adacore.com>
8908
8909 * value.h (set_value_parent): Add declaration.
8910 * value.c (set_value_parent): New function.
8911 (value_address): If VALUE->PARENT is not NULL, then use it as
8912 the base address instead of VALUE->LOCATION.address.
8913 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8914 the same as OBJ's address. Adjust V's offset accordingly.
8915 Set V's parent.
8916
481860b3
GB
89172012-03-16 Gary Benson <gbenson@redhat.com>
8918
8919 PR breakpoints/10738
8920 * dwarf2read.c (use_deprecated_index_sections): New global.
8921 (struct partial_die_info): New member may_be_inlined.
8922 (read_partial_die): Set may_be_inlined where appropriate.
8923 (add_partial_subprogram): Add partial symbols for partial
8924 DIEs that may be inlined.
8925 (new_symbol_full): Add inlined subroutines to the current
8926 scope.
8927 (write_psymtabs_to_index): Bump version number.
8928 (dwarf2_read_index): Read only version 6 indices unless
8929 use_deprecated_index_sections is set.
8930 * linespec.c (symbol_and_data_callback): New structure.
8931 (iterate_inline_only): New function.
8932 (iterate_over_all_matching_symtabs): New argument
8933 "include_inline". If nonzero, also call the callback for
8934 symbols representing inlined subroutines.
8935 (lookup_prefix_sym): Pass extra argument to the above.
8936 (find_function_symbols): Likewise.
8937 (add_matching_symbols_to_info): Likewise.
8938 * NEWS: Mention that GDB can now set breakpoints on inlined
8939 functions.
8940
d0e7e15a
PM
89412012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8942
8943 * p-typeprint.c (pascal_type_print_method_args):
8944 Fix display of parameter of methods.
8945
3d354654
PM
89462012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8947
8948 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8949 Add missing prototype.
8950
cafe75b0
JK
89512012-03-16 Yao Qi <yao@codesourcery.com>
8952 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 Fix false compilation warning.
8955 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8956
25f8c692
JL
89572012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8958 Pedro Alves <pedro@codesourcery.com>
8959
8960 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8961 (arm_register_g_packet_guesses): New function.
8962 (arm_gdbarch_init): Don't force a target description with
8963 registers when the executable is detected as M-profile. Instead
8964 set gdbarch->tdep->is_m. Register `g' packet guesses.
8965 (_initialize_arm_tdep): Initialize the new target description.
8966 * features/arm-with-m-fpa-layout.xml: New description.
8967 * features/arm-with-m-fpa-layout.c: New, generated.
8968
35c63cd8
JB
89692012-03-15 Joel Brobecker <brobecker@adacore.com>
8970
8971 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8972 Update function description.
8973 (insert_bp_location): Do not wipe bl->target_info out.
8974 * mem-break.c: #include "gdb_string.h".
8975 (default_memory_insert_breakpoint): Do not call target_read_memory
8976 with a pointer to the breakpoint's shadow_contents buffer. Use
8977 a local buffer instead.
8978 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8979
57651221
TT
89802012-03-15 Tom Tromey <tromey@redhat.com>
8981
8982 * NEWS: Mention "info vtbl", not "info vtable".
8983 * cp-support.c (info_vtbl_command): Fix comment.
8984 (_initialize_cp_support): Fix text.
8985
410528f0
TT
89862012-03-15 Tom Tromey <tromey@redhat.com>
8987
8988 * cp-valprint.c (cp_print_value_fields): Use
8989 print_function_pointer_address for vtable slot.
8990
c4aeac85
TT
89912012-03-15 Tom Tromey <tromey@redhat.com>
8992
8993 * gnu-v3-abi.c (struct value_and_voffset): New.
8994 (hash_value_and_voffset, eq_value_and_voffset)
8995 (compare_value_and_voffset, compute_vtable_size)
8996 (print_one_vtable, gnuv3_print_vtable): New functions.
8997 (init_gnuv3_ops): Initialize 'print_vtable' field.
8998 * cp-support.c (info_vtbl_command): New function.
8999 (_initialize_cp_support): Add "info vtbl".
9000 * cp-abi.h (cplus_print_vtable): Declare.
9001 (struct cp_abi_ops) <print_vtable>: New field.
9002 * cp-abi.c (cplus_print_vtable): New function.
9003 * NEWS: Update.
9004
95cbceff
TT
90052012-03-15 Tom Tromey <tromey@redhat.com>
9006
9007 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9008 iterate_over_symbols.
9009
589b4a32
DE
90102012-03-14 Doug Evans <dje@google.com>
9011
9012 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9013 DW_OP_GNU_parameter_ref.
9014
e837f12a
JK
90152012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9016
9017 Fix double prompt of 'interpreter-exec mi'.
9018 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9019 (mi_interpreter_resume): use it.
9020 (mi_execute_command_input_handler): New function.
9021 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9022 mi_execute_command_input_handler.
9023
ff1e4526 90242012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9025
9026 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9027 prototype.
9028 (darwin_debug_port_info): Make static.
9029 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9030 * machoread.c (_initialize_machoread): Add prototype.
9031 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9032 (i386_darwin_set_control, i386_darwin_get_control)
9033 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9034 i386_darwin_get_status, i386_darwin_get_control):
9035 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9036
d8a5d6ee
JB
90372012-03-13 Joel Brobecker <brobecker@adacore.com>
9038
9039 * ax-gdb.c (gen_usual_unary): Remove special handling of
9040 enum and bool types.
9041
af381b8c
JB
90422012-03-13 Joel Brobecker <brobecker@adacore.com>
9043
9044 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9045
786c562f
JB
90462012-03-13 Joel Brobecker <brobecker@adacore.com>
9047
9048 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9049
e3ebf1bb
JB
90502012-03-13 Chris January <chris.january@allinea.com>
9051
9052 * aix-thread.c (fill_sprs): Store the floating point registers
9053 at the correct offsets into vals.
9054
c5b7e1cb
DE
90552012-03-13 Doug Evans <dje@google.com>
9056
16899756
DE
9057 * NEWS: Mention symbol-reloading has been deleted.
9058 * symfile.c (symbol_reloading): Delete.
9059 (show_symbol_reloading): Delete.
9060 (_initialize_symfile): Delete set/show symbol-reloading.
9061
c5b7e1cb
DE
9062 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9063 read_in_chain until we have successfully read it in.
9064 (load_full_comp_unit): Ditto.
9065 (read_signatured_type): Add comment.
9066
46cb6474
JB
90672012-03-13 Chris January <chris.january@allinea.com>
9068
9069 * stabsread.c (fix_common_block): Change type of valu argument
9070 to CORE_ADDR.
9071
76219d77
JB
90722012-03-13 Chris January <chris.january@allinea.com>
9073
9074 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9075 instruction.
9076
87b0bb13
JK
90772012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9078
9079 * common/linux-procfs.c (linux_proc_get_int): New, from
9080 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9081 field.
9082 (linux_proc_get_tgid): Only call linux_proc_get_int.
9083 (linux_proc_get_tracerpid): New.
9084 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9085 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9086 linux_proc_pid_has_state.
9087 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9088 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9089 (linux_ptrace_attach_warnings): New.
9090 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9091 New declaration.
9092 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9093 (linux_nat_attach): New variables ex, buffer, message and message_s.
9094 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9095
5f572dec
JK
90962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 * Makefile.in (linux-ptrace.o): New.
9099 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9100 from linux-nat.c.
9101 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9102 * common/linux-ptrace.c: New file.
9103 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9104 * config/arm/linux.mh: Likewise.
9105 * config/i386/linux.mh: Likewise.
9106 * config/i386/linux64.mh: Likewise.
9107 * config/ia64/linux.mh: Likewise.
9108 * config/m32r/linux.mh: Likewise.
9109 * config/m68k/linux.mh: Likewise.
9110 * config/mips/linux.mh: Likewise.
9111 * config/pa/linux.mh: Likewise.
9112 * config/powerpc/linux.mh: Likewise.
9113 * config/powerpc/ppc64-linux.mh: Likewise.
9114 * config/powerpc/spu-linux.mh: Likewise.
9115 * config/s390/s390.mh: Likewise.
9116 * config/sparc/linux.mh: Likewise.
9117 * config/sparc/linux64.mh: Likewise.
9118 * config/xtensa/linux.mh: Likewise.
9119 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9120 common/linux-procfs.c.
9121 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9122
44f238bb
PA
91232012-03-13 Hui Zhu <teawater@gmail.com>
9124 Pedro Alves <palves@redhat.com>
9125
9126 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9127 CREATE_BREAKPOINT_FLAGS_INSERTED.
9128 (create_breakpoint_sal, create_breakpoints_sal)
9129 (base_breakpoint_create_breakpoints_sal)
9130 (tracepoint_create_breakpoints_sal)
9131 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9132 down.
9133 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9134 (ftrace_command, strace_command): Adjust.
9135 (create_tracepoint_from_upload): Pass
9136 CREATE_BREAKPOINT_FLAGS_INSERTED.
9137 * breakpoint.h (enum breakpoint_create_flags): New.
9138 (create_breakpoint): New flags parameter.
9139 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9140 * python/py-breakpoint.c (bppy_init): Adjust.
9141 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9142 * spu-tdep.c (spu_catch_start): Adjust.
9143
1e51243a
PA
91442012-03-13 Pedro Alves <palves@redhat.com>
9145 Hui Zhu <teawater@gmail.com>
9146 Yao Qi <yao@codesourcery.com>
9147
9148 * remote.c (struct remote_state): New field `starting_up'.
9149 (remote_start_remote): Set and clear it.
9150 (remote_can_download_tracepoint): If starting up, return false.
9151
fa3064dd
YQ
91522012-03-13 Yao Qi <yao@codesourcery.com>
9153
9154 * inferior.h (struct inferior): Remove fields any_syscall_count,
9155 syscalls_counts and total_syscalls_count. Move them to new
9156 struct catch_syscall_inferior_data in breakpoint.c.
9157 * breakpoint.c: Call DEF_VEC_I(int).
9158 (struct catch_syscall_inferior_data): New.
9159 (get_catch_syscall_inferior_data): New.
9160 (catch_syscall_inferior_data_cleanup): New.
9161 (insert_catch_syscall): Update to access data in
9162 struct catch_syscall_inferior_data.
9163 (insert_catch_syscall): Likewise.
9164 (remove_catch_syscall): Likewise.
9165 (remove_catch_syscall): Likewise.
9166 (is_syscall_catchpoint_enabled): Likewise.
9167 (add_catch_command): Likewise.
9168 (_initialize_breakpoint): Register cleanup.
9169 * breakpoint.h: Removed DEF_VEC_I(int).
9170 * dwarf2loc.c: Call DEF_VEC_I(int).
9171 * mi/mi-main.c: Likewise.
9172
460fac3c
MK
91732012-03-12 Mark Kettenis <kettenis@gnu.org>
9174
9175 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9176
e1aca11e
JB
91772012-03-12 Chris January <chris.january@allinea.com>
9178
9179 * aix-thread.c (_initialize_aix_thread): Add prototype.
9180 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9181 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9182
649c7061
JB
91832012-03-12 Joel Brobecker <brobecker@adacore.com>
9184
9185 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9186 include of "amd64-nat.h".
9187
0b49e518
TT
91882012-03-12 Tom Tromey <tromey@redhat.com>
9189
9190 * buildsym.c (record_pending_block): Now static.
9191 * buildsym.h: (record_pending_block): Remove.
9192
fd24fa94
AT
91932012-03-12 Andreas Tobler <andreast@fgznet.ch>
9194
9195 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9196
ba919b58
TT
91972012-03-09 Tom Tromey <tromey@redhat.com>
9198
9199 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9200 producer_is_gxx_lt_4_6>: New fields.
9201 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9202
a48e046c
TT
92032012-03-09 Tom Tromey <tromey@redhat.com>
9204
9205 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9206
6f5e9362
JB
92072012-03-08 Joel Brobecker <brobecker@adacore.com>
9208
9209 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9210 prototype.
9211
8d037db9
JB
92122012-03-08 Joel Brobecker <brobecker@adacore.com>
9213
9214 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9215
4e841acf
JK
92162012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9217
9218 Fix -Wmissing-prototypes build.
9219 * arm-linux-nat.c (get_thread_id): Make it static.
9220 * xtensa-linux-nat.c (get_thread_id): Likewise.
9221
c6030312
JB
92222012-03-08 Joel Brobecker <brobecker@adacore.com>
9223
9224 * server.c (process_point_options): If a conditional expression
9225 is found, only print a message if remote_debug is nonzero.
9226
52323be9
LM
92272012-03-08 Luis Machado <lgustavo@codesourcery.com>
9228
9229 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9230 of internal error for unknown/unsupported types.
9231
7fe25d9b
JK
92322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 Fix CU relative vs. absolute DIE offsets.
9235 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9236 offset to offset_in_cu.
9237 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9238 TYPE_OFFSET.
9239 (dwarf2_fetch_die_location_block): Rename parameter offset to
9240 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9241
05e7c244
JK
92422012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9243
9244 * libunwind-frame.c: Rename to ...
9245 * ia64-libunwind-tdep.c: ... here.
9246 * libunwind-frame.h: Rename to ...
9247 * ia64-libunwind-tdep.h: ... here.
9248 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9249 ia64-libunwind-tdep.h.
9250 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9251 * README (--with-libunwind): Rename to ...
9252 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9253 * config.in: Regenerate.
9254 * configure: Regenerate.
9255 * configure.ac: New option --with-libunwind-ia64, make the
9256 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9257 Remove AC_DEFINE for HAVE_LIBUNWIND.
9258 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9259 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9260 Rename libunwind-frame in the general comment.
9261 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9262 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9263 Move forward declarations inside #ifndef. Rename libunwind-frame in
9264 the general comment.
9265 * ia64-tdep.c: Rename libunwind-frame.h #include to
9266 ia64-libunwind-tdep.h.
9267 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9268 (ia64_libunwind_descr): Rename libunwind-frame to
9269 ia64-libunwind-tdep in these function comments.
9270 * ia64-tdep.h: Rename libunwind-frame.h #include to
9271 ia64-libunwind-tdep.h.
9272 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9273 ia64-libunwind-tdep in that data comment.
9274
3755cbfd
JK
92752012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 * libunwind-frame.h (struct frame_unwind): New declaration.
9278
d1cda5d9
JB
92792012-03-08 Joel Brobecker <brobecker@adacore.com>
9280
9281 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9282 "set breakpoint condition-evaluation" command.
9283
a0ba0aa2
TG
92842012-03-08 Tristan Gingold <gingold@adacore.com>
9285
9286 * sparc-stub.c: Move to stubs/
9287 * sh-stub.c: Likewise.
9288 * m68k-stub.c: Likewise.
9289 * m32r-stub.c: Likewise.
9290 * i386-stub.c: Likewise.
9291
7b8b6d6d
AS
92922012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9293
007cafee
AS
9294 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9295 linux_get_siginfo_type.
9296
7b8b6d6d
AS
9297 * m68klinux-nat.c: Include "gdb_proc_service.h".
9298 (PTRACE_GET_THREAD_AREA): Define.
9299 (ps_get_thread_area): New function.
9300
bba74b36
YQ
93012012-03-08 Yao Qi <yao@codesourcery.com>
9302
9303 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9304 `xsnprintf'.
9305 (remote_query_attached): Likewise.
9306 (remote_static_tracepoint_marker_at): Likewise.
9307 (remote_set_permissions): Likewise.
9308 (remote_detach_1, extended_remote_attach_1): Likewise.
9309 (send_g_packet, remote_vkill): Likewise.
9310 (extended_remote_disable_randomization): Likewise.
9311 (remote_add_target_side_condition): Likewise.
9312 (remote_insert_breakpoint): Likewise.
9313 (remote_remove_breakpoint): Likewise.
9314 (remote_insert_watchpoint): Likewise.
9315 (remote_remove_watchpoint): Likewise.
9316 (remote_insert_hw_breakpoint): Likewise.
9317 (remote_insert_hw_breakpoint): Likewise.
9318 (remote_remove_hw_breakpoint): Likewise.
9319 (remote_download_command_source): Likewise.
9320 (remote_download_tracepoint): Likewise.
9321 (remote_download_trace_state_variable): Likewise.
9322 (remote_disable_tracepoint): Likewise.
9323 (remote_trace_set_readonly_regions): Likewise.
9324 (remote_get_tracepoint_status): Likewise.
9325 (remote_trace_find): Likewise.
9326 (remote_get_trace_state_variable_value): Likewise.
9327 (remote_set_disconnected_tracing): Likewise.
9328 (remote_set_circular_trace_buffer): Likewise.
9329 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9330 (remote_use_agent): Likewise.
9331 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9332 Update callers.
9333
9b224c5e
PA
93342012-03-07 Pedro Alves <palves@redhat.com>
9335
9336 * NEWS: Mention QProgramSignals.
9337 * inferior.h (update_signals_program_target): Declare.
9338 * infrun.c: (update_signals_program_target): New.
9339 (handle_command): Update the target of the new program signals
9340 array changes.
9341 * remote.c (PACKET_QProgramSignals): New enum.
9342 (last_program_signals_packet): New global.
9343 (remote_program_signals): New.
9344 (remote_start_remote): Update the target with the program signals
9345 list.
9346 (remote_protocol_features): Add entry for QPassSignals.
9347 (remote_open_1): Free anc clear last_program_signals_packet.
9348 (init_remote_ops): Install remote_program_signals.
9349 * target.c (update_current_target): Adjust.
9350 (target_program_signals): New.
9351 * target.h (struct target_ops) <to_program_signals>: New field.
9352 (target_program_signals): Declare.
9353
74c48cbb
PA
93542012-03-07 Pedro Alves <palves@redhat.com>
9355
9356 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9357 extensions.
9358
0c13fc49
AS
93592012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9360
9361 * m68klinux-nat.c (getregs_supplies): Make static.
9362 (getfpregs_supplies): Likewise.
9363 (have_ptrace_getregs): Likewise.
9364
1281d2a3
JB
93652012-03-06 Joel Brobecker <brobecker@adacore.com>
9366
9367 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9368 in call to get_die_type_at_offset.
9369
2b03b41d
SS
93702012-03-06 Stan Shebs <stan@codesourcery.com>
9371
9372 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9373 * mi/mi-cmd-disas.c: Ditto.
9374 * mi/mi-cmd-env.c: Ditto.
9375 * mi/mi-cmd-file.c: Ditto.
9376 * mi/mi-cmd-stack.c: Ditto.
9377 * mi/mi-cmd-target.c: Ditto.
9378 * mi/mi-cmd-var.c: Ditto.
9379 * mi/mi-cmds.c: Ditto.
9380 * mi/mi-cmds.h: Ditto.
9381 * mi/mi-console.c: Ditto.
9382 * mi/mi-getopt.c: Ditto.
9383 * mi/mi-getopt.h: Ditto.
9384 * mi/mi-interp.c: Ditto.
9385 * mi/mi-main.c: Ditto.
9386 * mi/mi-out.c: Ditto.
9387 * mi/mi-parse.c: Ditto.
9388 * mi/mi-parse.h: Ditto.
9389 * mi/mi-symbol-cmds.c: Ditto.
9390
9391 * mi/mi-getopt.h: Move mi_opt struct up.
9392 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9393 return.
9394 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9395
c988ad87
TT
93962012-03-06 Tom Tromey <tromey@redhat.com>
9397
9398 * proc-service.c (ps_pglobal_lookup): Set the current program
9399 space.
9400
1b7c1b10
PA
94012012-03-06 Pedro Alves <palves@redhat.com>
9402
9403 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9404
3c182069
JB
94052012-03-05 Joel Brobecker <brobecker@adacore.com>
9406
9407 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9408
2e794194
JK
94092012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 Code cleanup.
9412 * common/linux-osdata.c (linux_common_core_of_thread): New function
9413 comment.
9414 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9415 call by linux_common_core_of_thread.
9416 (linux_nat_core_of_thread_1): Remove.
9417 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9418 * linux-thread-db.c: Include linux-osdata.h.
9419 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9420 linux_common_core_of_thread.
9421
9f9f1f31
TT
94222012-03-05 Tom Tromey <tromey@redhat.com>
9423
9424 * value.c (value_primitive_field): Don't fetch contents for
9425 non-virtual bases.
9426
b7b189f3
TT
94272012-03-05 Tom Tromey <tromey@redhat.com>
9428
9429 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9430
05b8a789 94312012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9432
5538f557
JB
9433 * s390-nat.c: Include "gregset.h".
9434
75528772
JK
94352012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9436
9437 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9438 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9439 (libunwind_load): New variable so_error, use it for dlerror. Try to
9440 load also LIBUNWIND_SO_7.
9441
275418ae
PA
94422012-03-05 Pedro Alves <palves@redhat.com>
9443
9444 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9445 is not NULL, and remove resulting dead code.
9446
5cbb9812
TS
94472012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9448
9449 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9450 prologue to sh_analyze_prologue.
9451 (sh_analyze_prologue): Make better use of such an upper limit, and
9452 generally be more cautious about accessing memory.
9453
541515ad
TT
94542012-03-05 Tom Tromey <tromey@redhat.com>
9455
9456 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9457 _initialize_ia64_hpux_tdep.
9458
b4d36fb8
PA
94592012-03-05 Pedro Alves <palves@redhat.com>
9460
24490249
PA
9461 PR gdb/13766
9462
b4d36fb8
PA
9463 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9464 the register state is clear, supply explicit zero, instead of
9465 marking the register unavailable.
9466
60c9a3c0
TG
94672012-03-05 Tristan Gingold <gingold@adacore.com>
9468
9469 * NEWS: Mention OpenVMS ia64 new target.
9470
696759ad
TG
94712012-03-05 Tristan Gingold <gingold@adacore.com>
9472
9473 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9474 (ia64_unw_accessors, ia64_unw_rse_accessors)
9475 (ia64_libunwind_descr): Declare.
9476 * ia64-vms-tdep.c: New file.
9477 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9478 (ia64_libunwind_descr): Make them public.
9479 * configure.tgt: Add ia64-*-*vms*.
9480 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9481 (ALLDEPFILES): Add ia64-vms-tdep.c
9482
34864976
TG
94832012-03-05 Tristan Gingold <gingold@adacore.com>
9484
169081d0
TG
9485 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9486 * remote.c (PACKET_qXfer_uib): New enum value.
9487 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9488 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9489 (_initialize_remote): Call add_packet_config_cmd for
9490 xfer:uib packet.
9491
94922012-03-05 Tristan Gingold <gingold@adacore.com>
9493
9494 * osabi.c (gdb_osabi_names): Add OpenVMS.
9495 (generic_elf_osabi_sniffer): Likewise.
9496 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9497
6597b100
JK
94982012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9499
9500 Removed unused code.
9501 * libunwind-frame.c (libunwind_frame_unwind)
9502 (libunwind_frame_base_address): Remove.
9503 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9504
87399aa1
YQ
95052012-03-04 Yao Qi <yao@codesourcery.com>
9506
9507 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9508 remove trailing new line.
9509 (agent_run_command, agent_run_command): Add _ markup.
9510 (agent_capability_check): Likewise.
9511
abf1152a
JK
95122012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * breakpoint.c (set_condition_evaluation_mode): Set
9515 CONDITION_EVALUATION_MODE unconditionally.
9516
5808517f
YQ
95172012-03-03 Yao Qi <yao@codesourcery.com>
9518
9519 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9520 * common/agent.h: Update declaration.
9521 * inf-child.c (inf_child_use_agent): New.
9522 (inf_child_can_use_agent): New.
9523 (inf_child_target): Initialize fields `to_use_agent'
9524 and `to_can_use_agent'.
9525 * agent.c (agent_new_objfile): New.
89b7509a 9526 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9527 observer.
9528
9529 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9530 New.
89b7509a 9531 (linux_target_install_ops): Initialize field
5808517f
YQ
9532 `to_static_tracepoint_markers_by_strid'.
9533 * remote.c (free_current_marker): Move it to ...
9534 * tracepoint.c (free_current_marker): ... here. New.
9535 (cleanup_target_stop): New.
9536 * tracepoint.h: Declare free_current_marker.
9537 * NEWS: Add one entry about `info static-tracepoint-marker'.
9538
58b4daa5
YQ
95392012-03-03 Yao Qi <yao@codesourcery.com>
9540
9541 * common/agent.c (agent_loaded_p): New.
89b7509a 9542 (agent_look_up_symbols): New global.
58b4daa5
YQ
9543 * common/agent.h: Declare agent_loaded_p.
9544
8ffcbaaf
YQ
95452012-03-03 Yao Qi <yao@codesourcery.com>
9546
9547 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9548 (agent_capability_check, agent_capability_invalidate): New.
9549 (symbol_list): New array element.
9550 * common/agent.h (enum agent_capa): New.
9551 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9552
d1feda86
YQ
95532012-03-03 Yao Qi <yao@codesourcery.com>
9554
9555 * target.h (struct target_ops) <to_use_agent>: New field.
9556 (struct target_ops) <to_can_use_agent>: New field.
9557 (target_use_agent, target_can_use_agent): New macro.
9558 * target.c (update_current_target): Update.
9559 * remote.c: New enum `PACKET_QAgent'.
9560 (remote_protocol_features): Add a new element.
9561 (remote_use_agent, remote_can_use_agent): New.
9562 (init_remote_ops): Initialize field `can_use_agent' with
9563 remote_can_use_agent. Intiailize field `use_agent' with
9564 remote_use_agent.
9565 * common/agent.c (use_agent): New global.
9566 * common/agent.h: Declare it.
9567 * tracepoint.c (info_static_tracepoint_markers_command): Add
9568 comment.
9569 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9570 (COMMON_OBS): Add common/agent.o and agent.o
9571 (common-agent.o): New rule.
9572 * agent.c: New.
9573
2fa291ac
YQ
95742012-03-03 Yao Qi <yao@codesourcery.com>
9575
9576 * common/agent.c: New.
9577 * common/agent.h: New.
9578 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9579 AC_CHECK_HEADERS.
9580 * configure, configh.in: Regenerated.
9581
9fc05685
KB
95822012-03-02 Kevin Buettner <kevinb@redhat.com>
9583
9584 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9585 unless it exists for this architecture.
9586
a5ee536b
JB
95872012-03-02 Joel Brobecker <brobecker@adacore.com>
9588
9589 * language.h (struct language_defn): New "method" la_read_var_value.
9590 * findvar.c: #include "language.h".
9591 (default_read_var_value): Renames read_var_value. Rewrite
9592 function description.
9593 (read_var_value): New function.
9594 * value.h (default_read_var_value): Add prototype.
9595 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9596 New functions.
9597 (ada_language_defn): Add entry for la_read_var_value.
9598 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9599 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9600 language_defn structures to add entry for new la_read_var_value
9601 field.
9602
f59f708a
PA
96032012-03-02 Tom Tromey <tromey@redhat.com>
9604 Pedro Alves <palves@redhat.com>
9605
9606 PR breakpoints/13776:
9607 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9608 breakpoints.
9609 (delete_longjmp_breakpoint_at_next_stop): New.
9610 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9611 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9612 before deleting the inferior. Add comments.
9613 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9614 breakpoints immediately, but only on next stop. Move that code
9615 next to where we mark other breakpoints for deletion.
9616
44099a67
JB
96172012-03-02 Joel Brobecker <brobecker@adacore.com>
9618
9619 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9620 marker.
9621 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9622 violation.
9623
2a2ef594
PA
96242012-03-02 Pedro Alves <palves@redhat.com>
9625
9626 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9627
b261e0c5
UW
96282012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9629
9630 Fix -Wmissing-prototypes build.
9631 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9632 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9633 (gdbsim_has_memory): Likewise.
9634
a95babbf
YQ
96352012-03-02 Yao Qi <yao@codesourcery.com>
9636
9637 Fix -Wmissing-prototypes build.
9638 * charset.c (phony_iconv_open): Make static.
9639 (phony_iconv_close, phony_iconv): Likewise.
9640 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9641 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9642 prototype.
9643 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9644 * ser-mingw.c (create_select_thread): Make static.
9645 * windows-termcap.c (tgetent): New prototype.
9646 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9647
d603d4b3
JK
96482012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9649
9650 Fix -Wmissing-prototypes build.
9651 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9652 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9653 (_initialize_loadable): New prototypes.
9654
7fb3ad1f
DE
96552012-03-02 Doug Evans <dje@google.com>
9656
9657 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9658 abbrev table, read_comp_unit will do it.
9659
693be288
JK
96602012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 Fix -Wmissing-prototypes build.
9663 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9664 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9665 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9666 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9667 (_initialize_arm_symbian_tdep): New prototype.
9668 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9669 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9670 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9671 static.
9672 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9673 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9674 prototype.
9675 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9676 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9677 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9678 static.
9679 * moxie-tdep.c (moxie_process_record): Likewise.
9680 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9681 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9682 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9683 (_initialize_rl78_tdep): New prototype.
9684 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9685 (_initialize_rx_tdep): New prototype.
9686 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9687 (_initialize_darwin_solib): New prototype.
9688 * solib-spu.c: Include solib-spu.h.
9689 (_initialize_spu_solib): New prototype.
9690 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9691 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9692 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9693 (tic6x_software_single_step): Make it static.
9694 (_initialize_tic6x_tdep): New prototype.
9695
638234e5
JK
96962012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 Fix -Wmissing-prototypes build.
9699 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9700 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9701
f4a6f16d
JK
97022012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9703
9704 Fix -Wmissing-prototypes build.
9705 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9706 (frv_have_stopped_data_address): Remove.
9707
04dcf5fa
JK
97082012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9709
9710 Fix -Wmissing-prototypes build.
9711 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9712 * sh-tdep.c: Include sh64-tdep.h.
9713 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9714 * sh64-tdep.c: Include sh64-tdep.h.
9715 * sh64-tdep.h: New file.
9716
19080931
MR
97172012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9718
9719 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9720
9aac7884
MR
97212012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9722
9723 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9724 sp_regnum once the gdbarch_init_osabi hook has been called.
9725
a385295e
MR
97262012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9727
9728 * mips-tdep.c (mips32_bc1_pc): New function.
9729 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9730 BPOSGE32 and BPOSGE64 instructions.
9731 (deal_with_atomic_sequence): Likewise.
9732 (mips32_instruction_has_delay_slot): Likewise.
9733
1faeff08 97342012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9735 Chris Dearman <chris@mips.com>
9736 Maciej W. Rozycki <macro@codesourcery.com>
9737 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9738
9739 * features/mips-dsp.xml: New file.
9740 * features/mips64-dsp.xml: New file.
9741 * features/mips-dsp-linux.xml: New file.
9742 * features/mips64-dsp-linux.xml: New file.
9743 * features/Makefile (WHICH): Add mips-dsp-linux and
9744 mips64-dsp-linux.
9745 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9746 * features/mips-dsp-linux.c: New file.
9747 * features/mips64-dsp-linux.c: New file.
9748 * regformats/mips-dsp-linux.dat: New file.
9749 * regformats/mips64-dsp-linux.dat: New file.
9750 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9751 registers.
9752 (mips64_linux_register_addr): Likewise.
9753 (mips64_linux_regsets_fetch_registers): Likewise.
9754 (mips64_linux_regsets_store_registers): Likewise.
9755 (mips64_linux_fetch_registers): Update call to
9756 mips64_linux_regsets_fetch_registers.
9757 (mips64_linux_store_registers): Update call to
9758 mips64_linux_regsets_store_registers.
9759 (mips_linux_read_description): Probe for DSP registers.
9760 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9761 and initialize_tdesc_mips64_dsp_linux.
9762 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9763 Remove padding of no longer used embedded register slots.
9764 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9765 (MIPS_RESTART_REGNUM): Redefine enum value.
9766 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9767 strings.
9768 (mips_tx39_reg_names): Likewise.
9769 (mips_linux_reg_names): New array of register names for Linux
9770 targets.
9771 (mips_register_name): Check for a null pointer in
9772 mips_processor_reg_names and return an empty string.
9773 (mips_register_type): Exclude embedded registers for the IRIX
9774 and Linux ABIs.
9775 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9776 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9777 DSP registers.
9778 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9779 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9780 (mips_gdbarch_init): Likewise. Initialize internal register
9781 indices for the Linux ABI. Use dynamic numbers to refer to
9782 registers, as applicable, while parsing the target description.
9783 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9784
263689d8
JB
97852012-03-01 Joel Brobecker <brobecker@adacore.com>
9786
9787 * frame.h (read_frame_register_unsigned): Fix typo in function
9788 description.
9789
f3b4f45c
PA
97902012-03-01 Pedro Alves <palves@redhat.com>
9791
9792 * jit-reader.in [!__cplusplus]
9793 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9794
b03a2011
PA
97952012-03-01 Pedro Alves <palves@redhat.com>
9796
9797 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9798 * configure: Regenerate.
9799
70221824
PA
98002012-03-01 Pedro Alves <palves@redhat.com>
9801
9802 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9803 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9804 (ftrace_command, strace_command): Make static.
9805 * d-lang.c (_initialize_d_language): Declare.
9806 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9807 * dwarf2loc.c (_initialize_dwarf2loc):
9808 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9809 * exec.c (exec_get_section_table): Make static.
9810 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9811 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9812 * inferior.c (remove_inferior_command, add_inferior_command)
9813 (clone_inferior_command): Make static.
9814 * linux-nat.c (linux_nat_thread_address_space)
9815 (linux_nat_core_of_thread): Make static.
9816 * linux-tdep.c (_initialize_linux_tdep): Declare.
9817 * objc-lang.c (_initialize_objc_lang): Declare.
9818 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9819 Make static.
9820 (_initialize_opencl_language): Declare.
9821 * record.c (_initialize_record): Declare.
9822 * remote.c (demand_private_info, remote_get_tib_address)
9823 (remote_supports_cond_tracepoints)
9824 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9825 Make static.
9826 * skip.c (_initialize_step_skip): Declare.
9827 * symtab.c (skip_prologue_using_lineinfo): Make static.
9828 * tracepoint.c (delete_trace_state_variable)
9829 (trace_variable_command, delete_trace_variable_command)
9830 (get_uploaded_tsv, find_matching_tracepoint_location)
9831 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9832 Make static.
9833 * value.c (pack_unsigned_long): Make static.
9834 * varobj.c (varobj_ensure_python_env): Make static.
9835 * windows-tdep.c (_initialize_windows_tdep): Declare.
9836 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9837
33fbcbee
PA
98382012-03-01 Pedro Alves <palves@redhat.com>
9839
9840 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9841 gdbarch parameter.
9842 (linux_init_abi): Install it as has_shared_address_space gdbarch
9843 callback.
9844
44d0cd3b
PA
98452012-03-01 Pedro Alves <palves@redhat.com>
9846
9847 * observer.c (observer_test_first_notification_function)
9848 (observer_test_second_notification_function)
9849 (observer_test_third_notification_function): Add declarations.
9850
ed01b82c
PA
98512012-03-01 Pedro Alves <palves@redhat.com>
9852
9853 * common/signals.c (default_target_signal_to_host)
9854 (default_target_signal_from_host): Move ...
9855 * arch-utils.c: ... here.
9856 * arch-utils.h (default_target_signal_to_host)
9857 (default_target_signal_from_host): Declare.
9858
9859 * common/signals.c (target_signal_from_command): Move ...
9860 * infrun.c: ... here.
9861 * inferior.h (target_signal_from_command): Declare.
9862 * target.h (target_signal_from_command)
9863 (default_target_signal_from_host, default_target_signal_to_host):
9864 Delete declarations.
9865
9866 * common/signals.c (_initialize_signals): Delete.
9867
c9b87335
PA
98682012-03-01 Pedro Alves <palves@redhat.com>
9869
9870 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9871 both __cplusplus and !__cplusplus.
9872
9340a6c0
PA
98732012-03-01 Pedro Alves <palves@redhat.com>
9874
9875 * psymtab.c (find_and_open_source): Delete declaration.
9876 * source.c (find_and_open_source): Move comment ...
9877 * source.h (find_and_open_source): ... to this new declaration.
9878
e451c4a1
PA
98792012-03-01 Pedro Alves <palves@redhat.com>
9880
9881 * inline-frame.c: Include inline-frame.h.
9882
983fb104
PA
98832012-03-01 Pedro Alves <palves@redhat.com>
9884
9885 * tui/tui-data.c (set_gen_win_origin): Delete.
9886 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9887 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9888
5fbce5df
PA
98892012-03-01 Pedro Alves <palves@redhat.com>
9890
9891 * remote.c (encode_actions): Delete declaration.
9892 * tracepoint.c (encode_actions): Make extern.
9893 * tracepoint.h (encode_actions): Declare.
9894
49a8461d
PA
98952012-03-01 Pedro Alves <palves@redhat.com>
9896
9897 * python/py-breakpoint.c: Include python.h.
9898 * python/py-continueevent.c (create_continue_event_object): Make
9899 static.
9900 * python/py-lazy-string.c (stpy_get_type): Make static.
9901 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9902 Make static.
9903 * python/py-utils.c (unicode_to_target_python_string): Make
9904 static.
9905 * python/py-value.c: Include python.h.
9906
9079102f
PA
99072012-03-01 Pedro Alves <palves@redhat.com>
9908
9909 * inferior.c (delete_threads_of_inferior): Delete.
9910
a298c5e8
PA
99112012-03-01 Pedro Alves <palves@redhat.com>
9912
9913 Import fallback definitions from glibc.
9914
9915 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9916 ps_prochandle): Forward declare.
9917 (ps_err_e): Use glibc's comments.
9918 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9919 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9920 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9921 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9922 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9923 (struct ps_prochandle): Adjust comment.
9924
e3084549
PA
99252012-03-01 Pedro Alves <palves@redhat.com>
9926
9927 * ada-lang.c (ada_modulus_from_name): Delete.
9928 * ada-lex.l (lexer_init): Make static.
9929
ad5f7d6e
PA
99302012-03-01 Pedro Alves <palves@redhat.com>
9931
9932 PR gdb/13767
9933
9934 * frame.c (read_frame_register_unsigned): New.
9935 * frame.h (read_frame_register_unsigned): Declare.
9936 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9937 Handle it.
9938 (print_i387_control_word): New parameter `control_p'. Handle it.
9939 (i387_print_float_info): Handle unavailable float registers.
9940
e0a4d108
KS
99412012-03-01 Keith Seitz <keiths@redhat.com>
9942
9943 * linespec.c (decode_line_2): Sort the list of methods
9944 alphabetically before presenting the user with a selection
9945 menu.
9946
122d1940
DE
99472012-03-01 Doug Evans <dje@google.com>
9948
9949 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9950 has_namespace_info.
9951 (dwarf2_read_abbrevs): Remove corresponding initialization.
9952
7d74f244
DE
99532012-03-01 Scott J. Goldman <scottjg@vmware.com>
9954
9955 * NEWS: Mention new python command class gdb.COMMAND_USER.
9956 * cli/cli-cmds.c (show_user): Print error when used on a python
9957 command.
9958 (init_cli_cmds): Update documentation strings for "show user" and
9959 "set/show max-user-call-depth" to clarify that it does not apply to
9960 python commands.
9961 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9962 error check.
9963 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9964 gdb python api.
9965 * top.c (execute_command): Only execute a user-defined command as a
9966 legacy macro if c->user_commands is set.
9967
e88acd96
TT
99682012-03-01 Tom Tromey <tromey@redhat.com>
9969
9970 * valprint.h (struct generic_val_print_decorations): New.
9971 (generic_val_print): Declare.
9972 * valprint.c (generic_val_print): New function.
9973 * p-valprint.c (p_decorations): New global.
9974 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9975 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9976 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9977 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9978 * m2-valprint.c (m2_decorations): New global.
9979 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9980 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9981 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9982 TYPE_CODE_ERROR>: Call generic_val_print.
9983 * f-valprint.c (f_decorations): New global.
9984 (f_val_print): Use print_function_pointer_address.
9985 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9986 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9987 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9988 generic_val_print.
9989 * c-valprint.c (c_decorations): New global.
9990 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9991 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9992 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9993 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9994 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9995 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9996 case.
9997
d3eab38a
TT
99982012-03-01 Tom Tromey <tromey@redhat.com>
9999
10000 * valprint.c (val_print): Update.
10001 * p-valprint (pascal_val_print): Return void.
10002 * p-lang.h (pascal_val_print): Return void.
10003 * m2-valprint.c (m2_val_print): Return void.
10004 * m2-lang.h (m2_val_print): Return void.
10005 * language.h (struct language_defn) <la_val_print>: Return void.
10006 * language.c (unk_lang_val_print): Return void.
10007 * jv-valprint.c (java_val_print): Return void.
10008 * jv-lang.h (java_val_print): Return void.
10009 * f-valprint.c (f_val_print): Return void.
10010 * f-lang.h (f_val_print): Return void.
10011 * d-valprint.c (d_val_print): Return void.
10012 (dynamic_array_type): Update.
10013 * d-lang.h (d_val_print): Return void.
10014 * c-valprint.c (c_val_print): Return void.
10015 * c-lang.h (c_val_print): Return void.
10016 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10017 void.
10018 * ada-lang.h (ada_val_print): Return void.
10019
35c0084b
TT
100202012-03-01 Tom Tromey <tromey@redhat.com>
10021
10022 * value.h (val_print): Return void.
10023 * valprint.c (val_print): Return void.
10024
a1f5dd1b
TT
100252012-03-01 Tom Tromey <tromey@redhat.com>
10026
10027 * value.h (common_val_print): Return void.
10028 * valprint.c (common_val_print): Return void.
10029
8e069a98
TT
100302012-03-01 Tom Tromey <tromey@redhat.com>
10031
10032 * value.h (value_print): Return void.
10033 * valprint.c (value_print): Return void.
10034 * p-valprint.c (pascal_value_print): Return void.
10035 * p-lang.h (pascal_value_print): Return void.
10036 * language.h (struct language_defn) <la_value_print>: Return
10037 void.
10038 * language.c (unk_lang_value_print): Return void.
10039 * jv-valprint.c (java_value_print): Return void.
10040 * jv-lang.h (java_value_print): Return void.
10041 * f-valprint.c (c_value_print): Don't declare.
10042 Include c-lang.h.
10043 * c-valprint.c (c_value_print): Return void.
10044 * c-lang.h (c_value_print): Return void.
10045 * ada-valprint.c (ada_value_print): Return void.
10046 * ada-lang.h (ada_value_print): Return void.
10047
be335936
TT
100482012-03-01 Tom Tromey <tromey@redhat.com>
10049
10050 * value.c (value_primitive_field): Handle virtual base classes.
10051
b0db66a7
TT
100522012-03-01 Tom Tromey <tromey@redhat.com>
10053
10054 * gdbtypes.h (struct vbase): Remove.
10055
132c57b4
TT
100562012-03-01 Tom Tromey <tromey@redhat.com>
10057
10058 * c-valprint.c (print_function_pointer_address): Move...
10059 * valprint.c: ... here. Make non-static.
10060 * m2-valprint.c (print_function_pointer_address): Remove.
10061 * valprint.h (print_function_pointer_address): Declare.
10062
e41eec66
JB
100632012-03-01 Joel Brobecker <brobecker@adacore.com>
10064
10065 * NEWS: Document the fact that one can provide a condition when
10066 creating an Ada exception catchpoint.
10067
19c37f24
TT
100682012-03-01 Tom Tromey <tromey@redhat.com>
10069
10070 * valprint.c (val_print_type_code_flags): Fix placement of
10071 trailing brace.
10072
f0fed3a3
JB
100732012-03-01 Joel Brobecker <brobecker@adacore.com>
10074
10075 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10076 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10077 environment variable before calling update-copyright.
10078
8ba85d85
JB
100792012-03-01 Joel Brobecker <brobecker@adacore.com>
10080
10081 * gnulib/extra/update-copyright: Update to the latest from
10082 gnulib's git repository.
10083 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10084 variable to 2 instead of 1.
10085
8219b1e8
JB
100862012-02-29 Joel Brobecker <brobecker@adacore.com>
10087
10088 * varobj.c (c_value_of_variable): Remove dead code.
10089
718cb7da
JB
100902012-02-29 Joel Brobecker <brobecker@adacore.com>
10091
10092 * ada-lex.p (processId): Do not modify already encoded IDs.
10093 Update function documentation.
10094
739593e0
JB
100952012-02-29 Joel Brobecker <brobecker@adacore.com>
10096
10097 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10098 "name" with "struct symbol *name_sym".
10099 * ada-exp.y (write_var_or_type): Update call to
10100 ada_find_renaming_symbol.
10101 "name" with "struct symbol *name_sym". Adjust Implementation
10102 accordingly. Adjust the function documentation.
10103
852dff6c
JB
101042012-02-29 Joel Brobecker <brobecker@adacore.com>
10105
10106 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10107 * ada-lang.c (ada_find_any_type): Add advance declaration.
10108 Make static. Replace ada_find_any_symbol by
10109 ada_find_any_type_symbol.
10110 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10111 Improve function description. Make static.
10112 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10113 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10114
1b611343
JB
101152012-02-29 Joel Brobecker <brobecker@adacore.com>
10116
10117 * ada-lang.c (struct tag_args): Delete.
10118 (ada_get_tsd_type): Function body moved up in source file.
10119 (ada_tag_name_1, ada_tag_name_2): Delete.
10120 (ada_get_tsd_from_tag): New function.
10121 (ada_tag_name_from_tsd): New function.
10122 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10123 to determine the tag name.
10124
41246937
JB
101252012-02-29 Joel Brobecker <brobecker@adacore.com>
10126
10127 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10128 declaration.
10129 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10130 function.
10131
ffde82bf
JB
101322012-02-29 Joel Brobecker <brobecker@adacore.com>
10133
10134 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10135
2ad01556
JB
101362012-02-29 Joel Brobecker <brobecker@adacore.com>
10137
10138 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10139 full searches.
10140
99b1c762
JB
101412012-02-29 Joel Brobecker <brobecker@adacore.com>
10142
10143 * ada-lang.c (constrained_packed_array_type): If there is a
10144 parallel XA type, use it to determine the array index type.
10145
2d4a02ee
JB
101462012-02-29 Joel Brobecker <brobecker@adacore.com>
10147
10148 * ada-valprint.c (ada_val_print_1): If our value is a reference
10149 to an array descriptor, dereference it before converting it
10150 to a simple array.
10151
c48db5ca
JB
101522012-02-29 Joel Brobecker <brobecker@adacore.com>
10153
10154 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10155 creating fixed value.
10156 (ada_value_ind, ada_coerce_ref, assign_component)
10157 (ada_evaluate_subexp): Remove call to unwrap_value before
10158 call to ada_to_fixed_value.
10159
2e6fda7d
JB
101602012-02-29 Joel Brobecker <brobecker@adacore.com>
10161
10162 * ada-lang.c (to_fixed_array_type): Set result's type name.
10163
5845583d
JB
101642012-02-29 Joel Brobecker <brobecker@adacore.com>
10165
10166 * ada-lang.c (catch_ada_exception_command_split): Add new
10167 argument cond_string. Add support for condition at end of
10168 "catch exception" commands.
10169 (ada_decode_exception_location): Add new argument cond_string.
10170 Update call to catch_ada_exception_command_split.
10171 (create_ada_exception_catchpoint): Add new argument cond_string.
10172 Set the breakpoint condition if needed.
10173 (catch_ada_exception_command): Update call to
10174 ada_decode_exception_location.
10175 (ada_decode_assert_location): Add function documentation.
10176 Add support for condition at end of "catch assert" command.
10177 (catch_assert_command): Update calls to ada_decode_assert_location
10178 and create_ada_exception_catchpoint.
10179
9a7f938f
JK
101802012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10181
10182 Fix disp-step-syscall.exp: fork: single step over fork.
10183 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10184 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10185 comment, change parameters gdbarch and ptid to regcache. Remove
10186 parameter regcache, initialize gdbarch from regcache here.
10187 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10188 New functions.
10189 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10190 instead.
10191 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10192 'syscall'. Make the 'int' check more strict.
10193
ffdf6de5
JK
101942012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10195
10196 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10197 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10198 (i386_linux_intx80_sysenter_syscall_record): ... here.
10199 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10200 Use the renamed function name.
10201
c70a6932
JK
102022012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10203
10204 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10205 * breakpoint.c (until_break_command): Likewise.
10206 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10207 * infcall.c (call_function_by_hand): Likewise.
10208 * infcmd.c (finish_forward): Likewise.
10209 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10210
05b8a789 102112012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10212
d4cd3da9
JB
10213 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10214 avoid variable assignments inside condition.
10215
6425366c
JK
102162012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10217
10218 Fix static analysis issue found by cppcheck.
10219 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10220 uninitialized BUF for size 2.
10221
c8cef75f 102222012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10223 Nathan Froyd <froydnj@codesourcery.com>
10224 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10225
10226 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10227 (mips16_instruction_has_delay_slot): Likewise.
10228 (mips_segment_boundary): Likewise.
10229 (mips_adjust_breakpoint_address): Likewise.
10230 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10231
473347ad 102322012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10233 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10234
10235 * infrun.c (handle_inferior_event): Don't proceed through
10236 shared library trampolines if stepping at the machine
10237 instruction level.
10238
cf233303
MR
102392012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10240
10241 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10242 too.
10243
cb2cf4ce
TS
102442012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10245
10246 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10247 (sh_stub_unwind_sniffer): New functions.
10248 (sh_stub_unwind): New variable.
10249 (sh_gdbarch_init): Wire everything.
10250
644cebc9
PA
102512012-02-27 Pedro Alves <palves@redhat.com>
10252
10253 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10254 (linux_nat_post_attach_wait): Adjust to use
10255 linux_proc_pid_is_stopped.
10256 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10257 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10258 based on pid_is_stopped from both linux-nat.c and
10259 gdbserver/linux-low.c, and renamed.
10260
283002cf
MR
102612012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10262
10263 * remote.c (remote_watchpoint_addr_within_range): New function.
10264 (init_remote_ops): Use it.
10265
9b3e86b1
MR
102662012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10267
10268 * target.h (target_watchpoint_addr_within_range): Document macro.
10269
e36930bb
PA
102702012-02-24 Pedro Alves <palves@redhat.com>
10271
10272 * stack.c (set_last_displayed_sal): Issue internal_error instead
10273 of warning, and issue it after clearing the last displayed sal.
10274
883bc8d1
PA
102752012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10276 Pedro Alves <palves@redhat.com>
10277
10278 * breakpoint.c (until_break_command): Install breakpoints after
10279 all frame manipulations.
10280
b775012e
LM
102812012-02-24 Luis Machado <lgustavo@codesourcery.com>
10282
10283 * remote.c (remote_supports_cond_breakpoints): New forward
10284 declaration.
10285 (remote_add_target_side_condition): New function.
10286 (remote_insert_breakpoint): Add target-side breakpoint
10287 conditional if supported.
10288 (remote_insert_hw_breakpoint): Likewise.
10289 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10290 hook.
10291
10292 * target.c (update_current_target): Inherit
10293 to_supports_evaluation_of_breakpoint_conditions.
10294 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10295
10296 * target.h (struct target_ops)
10297 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10298 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10299
10300 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10301 (condition_evaluation_both, condition_evaluation_auto,
10302 condition_evaluation_host, condition_evaluation_target,
10303 condition_evaluation_enums, condition_evaluation_mode_1,
10304 condition_evaluation_mode): New static globals.
10305 (translate_condition_evaluation_mode): New function.
10306 (breakpoint_condition_evaluation_mode): New function.
10307 (gdb_evaluates_breakpoint_condition_p): New function.
10308 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10309 (mark_breakpoint_modified): New function.
10310 (mark_breakpoint_location_modified): New function.
10311 (set_condition_evaluation_mode): New function.
10312 (show_condition_evaluation_mode): New function.
10313 (bp_location_compare_addrs): New function.
10314 (get_first_location_gte_addr): New helper function.
10315 (set_breakpoint_condition): Free condition bytecode if locations
10316 has become unconditional. Call mark_breakpoint_modified (...).
10317 (condition_command): Call update_global_location_list (1) for
10318 breakpoints.
10319 (breakpoint_xfer_memory): Use is_breakpoint (...).
10320 (is_breakpoint): New function.
10321 (parse_cond_to_aexpr): New function.
10322 (build_target_condition_list): New function.
10323 (insert_bp_location): Handle target-side conditional
10324 breakpoints and call build_target_condition_list (...).
10325 (update_inserted_breakpoint_locations): New function.
10326 (insert_breakpoint_locations): Handle target-side conditional
10327 breakpoints.
10328 (bpstat_check_breakpoint_conditions): Add comment.
10329 (bp_condition_evaluator): New function.
10330 (bp_location_condition_evaluator): New function.
10331 (print_breakpoint_location): Print information on where the condition
10332 will be evaluated.
10333 (print_one_breakpoint_location): Likewise.
10334 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10335 breakpoint location.
10336 (force_breakpoint_reinsertion): New functions.
10337 (update_global_location_list): Handle target-side breakpoint
10338 conditions.
10339 Reinsert locations that are already inserted if conditions have
10340 changed.
10341 (bp_location_dtor): Free agent expression bytecode.
10342 (disable_breakpoint): Call mark_breakpoint_modified (...).
10343 Call update_global_location_list (...) with parameter 1 for breakpoints.
10344 (disable_command): Call mark_breakpoint_location_modified (...).
10345 Call update_global_location_list (...) with parameter 1 for breakpoints.
10346 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10347 (enable_command): mark_breakpoint_location_modified (...).
10348 (_initialize_breakpoint): Update documentation and add
10349 condition-evaluation breakpoint subcommand.
10350
10351 * breakpoint.h: Include ax.h.
10352 (condition_list): New data structure.
10353 (condition_status): New enum.
10354 (bp_target_info) <cond_list>: New field.
10355 (bp_location) <condition_changed, cond_bytecode>: New fields.
10356 (is_breakpoint): New prototype.
10357
3788aec7
LM
103582012-02-24 Luis Machado <lgustavo@codesourcery.com>
10359
10360 * remote.c (remote_state) <cond_breakpoints>: New field.
10361 (PACKET_ConditionalBreakpoints): New enum.
10362 (remote_cond_breakpoint_feature): New function.
10363 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10364 (remote_supports_cond_breakpoints): New function.
10365 (_initialize_remote): Add new packet configuration for
10366 target-side conditional breakpoints.
10367
72895ff6
LM
103682012-02-24 Luis Machado <lgustavo@codesourcery.com>
10369
10370 * NEWS: Mention target-side conditional breakpoint support,
10371 new condition-evaluation breakpoint subcommand and remote
10372 packet extensions.
10373
dea2aa5f
LM
103742012-02-24 Luis Machado <lgustavo@codesourcery.com>
10375
10376 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10377 number.
10378
8a8bc27f
TS
103792012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10380
10381 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10382 (after_prologue): Remove.
10383
6b446fdf
TT
103842012-02-23 Tom Tromey <tromey@redhat.com>
10385
10386 * jv-valprint.c (java_val_print): Remove dead code.
10387
ef59abfb
TG
103882012-02-23 Tristan Gingold <gingold@adacore.com>
10389
a09130f9
PA
10390 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10391 known_tasks_element and known_tasks_length fields.
10392 (read_known_tasks_array): Change argument type. Use pointer type
10393 and number of elements from DATA. Adjust.
10394 (read_known_tasks_list): Likewise.
10395 (get_known_tasks_addr): Remove.
10396 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10397 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10398 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10399
def166f6
JK
104002012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10401
10402 PR backtrace/13716
10403 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10404 it after set_momentary_breakpoint.
10405
aeaa2474
SA
104062012-02-22 Sterling Augustine <saugustine@google.com>
10407
10408 PR 13689:
10409 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10410
feea76c2
GB
104112012-02-22 Gary Benson <gbenson@redhat.com>
10412
10413 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10414 (find_slot_in_mapped_hash): Likewise.
10415
f06e05e0
JK
104162012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10417
10418 PR build/13638
10419 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10420 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10421 * configure: Regenerate.
10422
b54a8fd7
PA
104232012-02-21 Tristan Gingold <gingold@adacore.com>
10424 Pedro Alves <palves@redhat.com>
10425
10426 * ia64-tdep.c: Do not include libunwind-ia64.h.
10427 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10428 Include libunwind-ia64.h instead of libunwind.h.
10429 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10430 for libunwind.h existence.
10431 * configure, config.in: Regenerate.
10432
dfcee124
AG
104332012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10434
10435 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10436 instead of value_rtti_target_type.
10437 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10438 instead of value_rtti_target_type.
10439 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10440 value_rtti_target_type.
10441 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10442 (value_rtti_target_type): Rename to ...
10443 (value_rtti_indirect_type): ... here and make it indirect. Update
10444 function comment.
10445 * value.c (readjust_indirect_value_type): New function.
10446 (coerce_ref): Support for enclosing type setting for references
10447 with readjust_indirect_value_type.
10448 * value.h (readjust_value_type): New declaration.
10449 (value_rtti_target_type): Rename to ...
10450 (value_rtti_indirect_type): ... here.
10451
02568277
AG
104522012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10453
10454 * MAINTAINERS (Write After Approval): Add myself to the list.
10455
10c07b7e 104562012-02-20 Doug Evans <dje@google.com>
28ee876a 10457
d82ea6a8
DE
10458 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10459 Rename objfile_p_char parameter to objfilep.
10460 (build_objfile_section_table): Result is now void. All callers
10461 updated.
10462 * objfiles.h (struct objfile): Tweak comments, whitespace.
10463 (build_objfile_section_table): Update.
10464
28ee876a
DE
10465 * elfread.c (elf_symfile_segments): Fix warning text.
10466
24c79950
TT
104672012-02-20 Tom Tromey <tromey@redhat.com>
10468
10469 PR gdb/13498:
10470 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10471 particular set of file names once.
10472 (dw2_map_symbol_filenames): Likewise.
10473
3a9b40b6
JK
104742012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 Code cleanup.
10477 * main.c (write_files): Remove the declaration.
10478 (external_editor_command): Move the declaration ...
10479 [GDBTK] (external_editor_command): ... here. Fix the comment.
10480
4d0795ca
TT
104812012-02-20 Tom Tromey <tromey@redhat.com>
10482
10483 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10484 extraneous block.
10485
637fd620
TG
104862012-02-20 Tristan Gingold <gingold@adacore.com>
10487
10488 * darwin-nat.h (enum darwin_msg_state): Add comments.
10489
6f124894
TG
104902012-02-20 Tristan Gingold <gingold@adacore.com>
10491
10492 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10493 value.
10494
2e6e3d9c
JB
104952012-20-18 Joel Brobecker <brobecker@adacore.com>
10496
10497 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10498 between function description and implementation.
10499
2e8265fd
TT
105002012-02-17 Tom Tromey <tromey@redhat.com>
10501
10502 PR python/12070:
10503 * python/py-event.c (event_object_getset): New global.
10504 (event_object_type): Reference it.
10505 * python/py-type.c (field_object_getset): New global.
10506 (field_object_type): Reference it.
10507 * python/python-internal.h (gdb_py_generic_dict): Declare.
10508 * python/py-utils.c (gdb_py_generic_dict): New function.
10509
8544a150 105102012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10511
8544a150 10512 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10513
ca193e27
TS
105142012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10515
10516 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10517 TYPE_CALLING_CONVENTION annotation.
10518
e5586183
KB
105192012-02-16 Kevin Buettner <kevinb@redhat.com>
10520
10521 * MAINTAINERS: Add rx to target ISA section.
10522 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10523 (ALLDEPFILES): Add rx-tdep.c.
10524
7dcd53a0
TT
105252012-02-16 Tom Tromey <tromey@redhat.com>
10526
10527 * symfile.c (symbol_file_add_main_1): Use inferior's
10528 symfile_flags.
10529 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10530 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10531 inferior.
10532 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10533 inferior.
10534 (follow_exec): Use inferior's symfile_flags.
10535 * inferior.h (struct inferior) <symfile_flags>: New field.
10536
ddd60447
MF
105372012-02-16 Mike Frysinger <vapier@gentoo.org>
10538
10539 PR gdb/9734:
10540 * remote-sim.c (gdbsim_create_inferior): Call error() when
10541 sim_create_inferior() fails.
10542
b0d32fb6
TG
105432012-02-16 Josh Matthews <josh@joshmatthews.net>
10544
10545 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10546
9addecb9
TT
105472012-02-16 Tom Tromey <tromey@redhat.com>
10548
10549 PR c++/13653:
10550 * thread.c (struct current_thread_cleanup) <was_removable>: New
10551 field.
10552 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10553 (make_cleanup_restore_current_thread): Initialize new field.
10554
a58b110a
KB
105552012-02-15 Kevin Buettner <kevinb@redhat.com>
10556
10557 * MAINTAINERS: Add rl78 to target ISA section.
10558 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10559 (ALLDEPFILES): Add rl78-tdep.c.
10560 * NEWS: Mention rl78 as a new target.
10561
4cb6da1c
AR
105622012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10563
10564 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10565 data.
10566 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10567
3af2590d
TT
105682012-02-15 Tom Tromey <tromey@redhat.com>
10569
10570 PR gdb/12659:
10571 * infcmd.c (registers_info): Print just the current register's
10572 name.
10573
c6910659
TT
105742012-02-15 Tom Tromey <tromey@redhat.com>
10575
10576 * python/py-symbol.c (sympy_value): Use _().
10577
7cee1e54
PA
105782012-02-15 Pedro Alves <palves@redhat.com>
10579
10580 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10581 output to be like native targets'.
10582 (remote_pid_to_str): Special case the null ptid.
10583
816338b5
SS
105842012-02-14 Stan Shebs <stan@codesourcery.com>
10585
10586 * NEWS: Mention enable count command.
10587 * breakpoint.h (struct breakpoint): New field enable_count.
10588 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10589 (enable_breakpoint): Add arg to call.
10590 (struct disp_data): New struct.
10591 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10592 (do_map_enable_once_breakpoint): Create a struct and pass it.
10593 (do_map_enable_delete_breakpoint): Ditto.
10594 (do_map_enable_count_breakpoint): New function.
10595 (enable_count_command): New function.
10596 (bpstat_stop_status): Decrement enable_count.
10597 (print_one_breakpoint_location): Report enable count.
10598 (_initialize_breakpoint): Add enable count command.
10599
c47a44f4
KB
106002012-02-14 Kevin Buettner <kevinb@redhat.com>
10601
10602 * rl78-tdep.c (reggroups.h): Include.
10603 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10604 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10605 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10606 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10607 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10608 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10609 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10610 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10611 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10612 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10613 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10614 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10615 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10616 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10617 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10618 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10619 beginning of register list.
10620 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10621 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10622 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10623 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10624 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10625 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10626 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10627 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10628 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10629 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10630 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10631 the pseudo registers. Rearrange other pseudo registers too so
10632 that the bank registers appear at the end.
10633 (rl78_register_type): Account for the fact that the byte sized
10634 bank registers are now pseudo-registers.
10635 (rl78_register_name): Rearrange the register name array. Make
10636 initial set of raw banked registers inaccessible.
10637 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10638 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10639 case for copying bytes back and forth between raw and pseudo
10640 versions of the banked registers. Update other cases to reflect
10641 the changed names.
10642 (rl78_return_value): Update to account for changed names of
10643 raw registers.
10644 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10645 rl78_register_sim_regno().
10646
e4569f1e
KB
106472012-02-14 Kevin Buettner <kevinb@redhat.com>
10648
10649 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10650 the name parameter being passed to find_pc_partial_function().
10651
7a05aae7
JK
106522012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10653
10654 * MAINTAINERS: Step down from being ia64 target maintainer.
10655
11fde611
JK
106562012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10657
10658 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10659 compilation warning.
10660
57008375
JK
106612012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10662
10663 Fix crash on loaded shlibs without loaded exec_bfd.
10664 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10665 (set_section_command): Replace exec_bfd by p->bfd.
10666
ff3c9849
TT
106672012-02-10 Tom Tromey <tromey@redhat.com>
10668
10669 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10670 when we have a C++ qualified name.
10671
db2b9fdd
PA
106722012-02-10 Pedro Alves <palves@redhat.com>
10673
10674 * inferior.c (inferior_pid_to_str): New.
10675 (print_inferior, inferior_command): Use it.
10676
12cd34f3
PA
106772012-02-10 Pedro Alves <palves@redhat.com>
10678
10679 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10680 the test CFLAGS.
10681 * configure: Regenerate.
10682
e871429d
JK
106832012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10684
10685 * linespec.c (decode_line_internal): Fix comment correctness.
10686
1916efaf
PA
106872012-02-09 Valery Khromov <valery.khromov@gmail.com>
10688
10689 PR gdb/12953
10690 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10691 * amd64bsd-nat.c: Add support for debug registers (adapted from
10692 i386bsd-nat.c).
10693 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10694 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10695 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10696 (amd64bsd_dr_get_control): New functions.
10697 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10698 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10699 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10700 watchpoints initialization.
10701 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10702
f4859d94
JK
107032012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10704
10705 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10706 flds_bnds.fields.
10707 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10708
c56a97f9
JK
107092012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10710
10711 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10712
1a119f36
JB
107132012-02-08 Joel Brobecker <brobecker@adacore.com>
10714
10715 * language.h (symbol_name_cmp_ftype): Renames
10716 symbol_name_match_p_ftype.
10717 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10718 la_get_symbol_name_match_p.
10719 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10720 ada_get_symbol_name_match_p. Update comment.
10721 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10722 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10723 Renames symbol_name_match_p. Update field type.
10724 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10725 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10726 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10727 "la_get_symbol_name_cmp" in comments.
10728 * language.c: Likewise.
10729
c71bb1cf
RO
107302012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10731
10732 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10733 %eflags offset.
10734 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10735 (amd64_sol2_gregset32_reg_offs): Likewise.
10736
4b2d20a5
TG
107372012-02-08 Joel Brobecker <brobecker@adacore.com>
10738
10739 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10740 of the returned BFD is allocated by GDB.
10741
f0823d2c
TT
107422012-02-07 Tom Tromey <tromey@redhat.com>
10743
10744 PR python/12027:
10745 * python/python-internal.h (frame_object_type): Declare.
10746 * python/py-symbol.c (sympy_needs_frame): New function.
10747 (sympy_value): New function.
10748 (symbol_object_getset): Add "needs_frame".
10749 (symbol_object_methods): Add "value".
10750 * python/py-frame.c (frame_object_type): No longer static.
10751
64e7d9dd
TT
107522012-02-07 Tom Tromey <tromey@redhat.com>
10753
10754 PR python/13599:
10755 * python/py-symbol.c (sympy_line): New function.
10756 (symbol_object_getset): Add "line".
10757
1d6b2d2b
TT
107582012-02-07 Tom Tromey <tromey@redhat.com>
10759
10760 * charset.c (find_charset_names): Check 'in' against NULL.
10761
0d5cff50
DE
107622012-02-06 Doug Evans <dje@google.com>
10763
10764 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10765 and fields.name members from char * to const char *. All uses updated.
10766 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10767 from char * to const char *. All uses updated.
10768 (type_name_no_tag): Update.
10769 (lookup_unsigned_typename, lookup_signed_typename): Update.
10770 * gdbtypes.c (type_name_no_tag): Change result type
10771 from char * to const char *. All callers updated.
10772 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10773 name parameter from char * to const char *.
10774 * symtab.h (struct cplus_specific): Change type of demangled_name
10775 member from char * to const char *. All uses updated.
10776 (struct general_symbol_info): Change type of name and
10777 mangled_lang.demangled_name members from char * to const char *.
10778 All uses updated.
10779 (symbol_get_demangled_name, symbol_natural_name): Update.
10780 (symbol_demangled_name, symbol_search_name): Update.
10781 * symtab.c (symbol_get_demangled_name): Change result type
10782 from char * to const char *. All callers updated.
10783 (symbol_natural_name, symbol_demangled_name): Ditto.
10784 (symbol_search_name): Ditto.
10785 (completion_list_add_name): Change type of symname,sym_text,
10786 text,word parameters from char * to const char *.
10787 (completion_list_objc_symbol): Change type of sym_text,
10788 text,word parameters from char * to const char *.
10789 * ada-lang.c (find_struct_field): Change type of name parameter
10790 from char * to const char *.
10791 (encoded_ordered_before): Similarly for N0,N1 parameters.
10792 (old_renaming_is_invisible): Similarly for function_name parameter.
10793 (ada_type_name): Change result type from char * to const char *.
10794 All callers updated.
10795 * ada-lang.h (ada_type_name): Update.
10796 * buildsym.c (hashname): Change type of name parameter
10797 from char * to const char *.
10798 * buildsym.h (hashname): Update.
10799 * dbxread.c (end_psymtab): Change type of include_list parameter
10800 from char ** to const char **.
10801 * dwarf2read.c (determine_prefix): Change result type
10802 from char * to const char *. All callers updated.
10803 * f-lang.c (find_common_for_function): Change type of name, funcname
10804 parameters from char * to const char *.
10805 * f-lang.c (find_common_for_function): Update.
10806 * f-valprint.c (list_all_visible_commons): Change type of funcname
10807 parameters from char * to const char *.
10808 * gdbarch.sh (static_transform_name): Change type of name parameter
10809 and result from char * to const char *.
10810 * gdbarch.c: Regenerate.
10811 * gdbarch.h: Regenerate.
10812 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10813 of name parameter from char * to const char *.
10814 * jv-lang.c (java_primitive_type_from_name): Ditto.
10815 (java_demangled_signature_length): Similarly for signature parameter.
10816 (java_demangled_signature_copy): Ditto.
10817 (java_demangle_type_signature): Ditto.
10818 * jv-lang.h (java_primitive_type_from_name): Update.
10819 (java_demangle_type_signature): Update.
10820 * objc-lang.c (specialcmp): Change type of a,b parameters
10821 from char * to const char *.
10822 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10823 from char * to const char *. All callers updated.
10824 * p-lang.h (is_pascal_string_type): Update.
10825 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10826 of name parameter from char * to const char *.
10827 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10828 * utils.c (fprintf_symbol_filtered): Ditto.
10829 * defs.h (fprintf_symbol_filtered): Update.
10830 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10831 * stabsread.h (end_psymtab): Update.
10832 * stack.c (find_frame_funname): Change type of funname parameter
10833 from char ** to const char **.
10834 * stack.h (find_frame_funname): Update.
10835 * typeprint.c (type_print): Change type of varstring parameter
10836 from char * to const char *.
10837 * value.h (type_print): Update.
10838 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10839 from char * to const char *. All callers updated.
10840 (xcoff_end_psymtab): Change type of include_list parameter
10841 from char ** to const char **. All callers updated.
10842 (swap_sym): Similarly for name parameter. All callers updated.
10843 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10844 Use xstrdup.
10845 (process_coff_symbol): Use xstrdup.
10846 * stabsread.c (stabs_method_name_from_physname): Renamed from
10847 update_method_name_from_physname. Change result type from void
10848 to char *. All callers updated.
10849 (read_member_functions): In has_destructor case, store name in objfile
10850 obstack instead of malloc space. In !has_stub case, fix mem leak.
10851
5579a92e
TT
108522012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10853
10854 * configure: Rebuild.
10855 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10856 LDFLAGS.
10857
9058f767
KB
108582012-02-03 Kevin Buettner <kevinb@redhat.com>
10859
10860 * configure.tgt (rl78-*-elf): New target.
10861 * rl78-tdep.c: New file.
10862
5b37825d
PW
108632012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10864
10865 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10866 and continue the loop. Add QUIT statement.
10867
e009ee71
TT
108682012-02-03 Tom Tromey <tromey@redhat.com>
10869
10870 PR gdb/13596:
10871 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10872 bfd_lookup_symbol_from_symtab.
10873 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10874 gdb_bfd_lookup_symbol_from_symtab.
10875
f7e44f65
JB
108762012-02-03 Joel Brobecker <brobecker@adacore.com>
10877
10878 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10879 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10880 symbol. Add assertion that sym2 is never NULL.
10881
2c02bd72
DE
108822012-02-02 Doug Evans <dje@google.com>
10883
10884 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10885 "name" parameter to const char ** from char **. All callers updated.
10886 (find_pc_partial_function): Ditto.
10887 (cache_pc_function_name): Change type to const char * from char *.
10888 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10889 (find_pc_partial_function): Update.
10890 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10891 type of "name" parameter to const char * from char *.
10892 All uses updated.
10893 * arch-utils.c (generic_in_solib_return_trampoline): Change
10894 type of "name" parameter to const char * from char *.
10895 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10896 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10897 type of "name" parameter to const char * from char *.
10898 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10899 * gdbarch.c: Regenerate.
10900 * gdbarch.h: Regenerate.
10901 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10902 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10903 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10904 type of "name" parameter to const char * from char *.
10905 * skip.c (skip_function_pc): Ditto.
10906 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10907 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10908 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10909 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10910 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10911 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10912 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10913 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10914 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10915
e886a173
PA
109162012-02-02 Pedro Alves <palves@redhat.com>
10917
10918 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10919 the current inferior has no execution. Make sure the current
10920 remote process matches gdb's current inferior.
10921
c709a7c2
TT
109222012-02-02 Tom Tromey <tromey@redhat.com>
10923
10924 PR gdb/13405:
10925 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10926 read-only memory.
10927
f149aabd
TT
109282012-02-02 Tom Tromey <tromey@redhat.com>
10929
10930 PR gdb/9307:
10931 * symtab.c (lookup_language_this): Set block_found.
10932
03bef283
TT
109332012-02-01 Tom Tromey <tromey@redhat.com>
10934
10935 PR gdb/13431:
10936 * jit.c (struct jit_inferior_data): Rewrite.
10937 (struct jit_objfile_data): New.
10938 (get_jit_objfile_data): New function.
10939 (add_objfile_entry): Update.
10940 (jit_read_descriptor): Return int. Replace descriptor_addr
10941 argument with inf_data. Update. Don't call error.
10942 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10943 descriptor here.
10944 (jit_inferior_init): Don't look up descriptor. Don't call error.
10945 (jit_reset_inferior_data_and_breakpoints)
10946 (jit_inferior_created_observer): Remove.
10947 (jit_inferior_exit_hook): Update.
10948 (jit_executable_changed_observer): Remove.
10949 (jit_event_handler): Update.
10950 (free_objfile_data): Reset inferior data if needed.
10951 (_initialize_jit): Update.
10952
f0bbc364
TT
109532012-02-01 Tom Tromey <tromey@redhat.com>
10954
10955 * jit.c (bfd_open_from_target_memory): Move higher in file.
10956
47c1316c
TG
109572012-02-01 Tristan Gingold <gingold@adacore.com>
10958
10959 * libunwind-frame.c (libunwind_load): Display message if dlopen
10960 failed.
10961
8e704927
GB
109622012-02-01 Gary Benson <gbenson@redhat.com>
10963
09c7a31f 10964 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10965 (iterate_over_symbols): Use the above.
10966 * symtab.c (iterate_over_symbols): Likewise.
10967 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10968 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10969 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10970 (iterate_name_matcher): Document return values.
10971 (collect_one_symbol): Likewise.
10972 (collect_function_symbols): Likewise.
10973 (collect_symbols): Likewise.
10974
d9680e73
TT
109752012-02-01 Tom Tromey <tromey@redhat.com>
10976
10977 * ada-lang.c (resolve_subexp): Update.
10978 (ada_lookup_symbol_list): Add 'full_search' argument.
10979 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10980 ada_lookup_symbol_list.
10981 (ada_lookup_encoded_symbol): Update.
10982 (get_var_value): Update.
10983 * ada-exp.y (block_lookup): Update.
10984 (write_var_or_type): Update.
10985 (write_name_assoc): Update.
10986 * ada-lang.h (ada_lookup_symbol_list): Update.
10987
72e1143f
TT
109882012-01-31 Tom Tromey <tromey@redhat.com>
10989
10990 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10991 comment.
10992
ab2d2ad3
DE
109932012-01-31 Doug Evans <dje@google.com>
10994
10995 * symtab.h: Remove outdated comment.
e9111bf7 10996 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10997
bc884eba
JB
109982012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10999
11000 Fix build error in Darwin port.
11001 * i386-darwin-nat.c: Include i386-nat.h.
11002
8fc3fc34
TT
110032012-01-30 Tom Tromey <tromey@redhat.com>
11004
11005 PR breakpoints/13568:
11006 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11007 argument. Check for recursive includes.
11008 (dwarf_decode_macros): Create an include hash.
11009
5d853008
ME
110102012-01-30 Michael Eager <eager@eagercon.com>
11011
11012 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11013 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11014 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11015 (powerpc_linux_in_plt_stub): New function.
11016 (powerpc_linux_in_dynsym_resolve_code): New function.
11017 (ppc_skip_trampoline_code): New function.
11018 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11019 Use glibc_skip_solib_resolver.
11020
40478521
JK
110212012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11022
11023 Code cleanup: Make 1440 bytes of data segment read-only.
11024 * arch-utils.c (endian_enum): Make it const char *const [].
11025 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11026 Likewise.
11027 * breakpoint.c (always_inserted_enums): Likewise.
11028 * cli/cli-cmds.c (script_ext_enums): Likewise.
11029 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11030 enumlist parameter const char *const *.
11031 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11032 const char *const *.
11033 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11034 parameter const char *const *.
11035 * cris-tdep.c (cris_modes): Make it const char *const [].
11036 * filesystem.c (target_file_system_kinds): Likewise.
11037 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11038 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11039 (can_use_displaced_stepping_enum, scheduler_enums)
11040 (exec_direction_names): Likewise.
11041 * language.c (_initialize_language): Make the type_or_range_names and
11042 case_sensitive_names variables const char *const [].
11043 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11044 * python/python.c (python_excp_enums): Likewise.
11045 * remote.c (interrupt_sequence_modes): Likewise.
11046 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11047 * serial.c (logbase_enums): Likewise.
11048 * sh-tdep.c (sh_cc_enum): Likewise.
11049 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11050 Likewise.
11051 * symtab.c (multiple_symbols_modes): Likewise.
11052 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11053 Likewise.
11054 * utils.c (internal_problem_modes): Likewise.
11055
b3b8b934
JK
110562012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11059 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11060 result.
11061
8c85a4e2
DE
110622012-01-27 Doug Evans <dje@google.com>
11063
11064 * configure.ac (with_python): Fix absolute path handling for win32.
11065 * configure: Regenerate.
11066
78d8b4d7
DE
110672012-01-26 Doug Evans <dje@google.com>
11068
eca864fe
DE
11069 * symtab.c: Whitespace cleanup, no code changes.
11070
7e082072
DE
11071 * symtab.c (lookup_symbol_in_language): Improve comment.
11072 (lookup_symbol_aux): Fix comment.
11073
7dc25483
DE
11074 * psymtab.c (add_psymbol_to_list): Result is now "void".
11075 * psympriv.h (add_psymbol_to_list): Update.
11076
78d8b4d7
DE
11077 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11078
4c63965b
JK
110792012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11080
11081 Do not open script filenames twice.
11082 * cli/cli-cmds.c (source_script_from_stream): Pass to
11083 source_python_script also STREAM.
11084 * python/py-auto-load.c (source_section_scripts): Pass to
11085 source_python_script_for_objfile also STREAM.
11086 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11087 also INPUT.
11088 * python/python-internal.h (source_python_script_for_objfile): New
11089 parameter file, rename parameter file to filename.
11090 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11091 instead if !_WIN32. Update the function comment.
11092 (source_python_script, source_python_script_for_objfile)
11093 (source_python_script): New parameter file, rename parameter file to
11094 filename. Pass FILENAME to python_run_simple_file.
11095 * python/python.h (source_python_script): New parameter file, rename
11096 parameter file to filename.
11097
88f38a04
PA
110982012-01-26 Pedro Alves <palves@redhat.com>
11099
11100 * corelow.c (core_has_fake_pid): Delete.
11101 (core_close): Delete references to `core_has_fake_pid'.
11102 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11103 (core_open): Delete references to `core_has_fake_pid'.
11104 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11105 the removed global.
11106
e078317b
JB
111072012-01-26 Joel Brobecker <brobecker@adacore.com>
11108
11109 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11110 Remove language parameter from name_matcher. Adjust the comment.
11111 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11112 Remove language parameter.
11113 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11114 * linespec.c (iterate_name_matcher): Likewise.
11115 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11116 name_matcher. Adjust call accordingly.
11117 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11118 (maintenance_check_symtabs): Adjust type of parameter "fun".
11119 * psymtab.h (maintenance_check_symtabs): Likewise.
11120
74ccd7f5
JB
111212012-01-26 Joel Brobecker <brobecker@adacore.com>
11122
11123 * language.h (symbol_name_match_p_ftype): New typedef.
11124 (struct language_defn): Replace field la_symbol_name_compare
11125 by la_get_symbol_name_match_p.
11126 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11127 (ada_language_defn): Use it.
11128 * linespec.c (struct symbol_matcher_data): New type.
11129 (iterate_name_matcher): Rewrite.
11130 (iterate_over_all_matching_symtabs): Pass a pointer to
11131 a symbol_matcher_data struct to expand_symtabs_matching
11132 instead of just the lookup name.
11133 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11134 opencl-lang.c, p-lang.c, language.c: Delete field
11135 la_symbol_name_compare, and replace by NULL for new field
11136 la_get_symbol_name_match_p.
11137 * symfile.h (struct quick_symbol_functions): Update comment.
11138
5d268276
TT
111392012-01-25 Tom Tromey <tromey@redhat.com>
11140
11141 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11142 dereferencing.
11143
edcc5120
TT
111442012-01-24 Tom Tromey <tromey@redhat.com>
11145
11146 PR symtab/12406:
11147 * solib.c (update_solib_list): Update the program space's
11148 added_solibs and deleted_solibs fields.
11149 * progspace.h (struct program_space) <added_solibs,
11150 deleted_solibs>: New fields.
11151 (clear_program_space_solib_cache): Declare.
11152 * progspace.c (release_program_space): Call
11153 clear_program_space_solib_cache.
11154 (clear_program_space_solib_cache): New function.
11155 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11156 bpstat_stop_status. Use handle_solib_event.
11157 * breakpoint.c: Include gdb_regex.h.
11158 (print_solib_event): New function.
11159 (bpstat_print): Use print_solib_event.
11160 (bpstat_stop_status): Add special case for bp_shlib_event.
11161 (handle_solib_event): New function.
11162 (bpstat_what): Use handle_solib_event.
11163 (struct solib_catchpoint): New.
11164 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11165 (breakpoint_hit_catch_solib, check_status_catch_solib)
11166 (print_it_catch_solib, print_one_catch_solib)
11167 (print_mention_catch_solib, print_recreate_catch_solib): New
11168 functions.
11169 (catch_solib_breakpoint_ops): New global.
11170 (catch_load_or_unload, catch_load_command_1)
11171 (catch_unload_command_1): New functions.
11172 (internal_bkpt_check_status): Add special case for
11173 bp_shlib_event.
11174 (internal_bkpt_print_it): Use print_solib_event.
11175 (initialize_breakpoint_ops): Initialize
11176 catch_solib_breakpoint_ops.
11177 (_initialize_breakpoint): Register "catch load" and "catch
11178 unload".
11179 * breakpoint.h (handle_solib_event): Declare.
11180 * NEWS: Add entry for "catch load" and "catch unload".
11181
fa864999
TT
111822012-01-24 Tom Tromey <tromey@redhat.com>
11183
11184 * ada-lang.c: Include gdb_vecs.h.
11185 * charset.c: Include gdb_vecs.h.
11186 * tracepoint.h: Include gdb_vecs.h.
11187 * gdb_vecs.h: New file.
11188
f90263c1
TT
111892012-01-24 Pedro Alves <pedro@codesourcery.com>
11190
11191 * breakpoint.c (breakpoint_hit_catch_fork)
11192 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11193 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11194 * infrun.c (inferior_has_forked, inferior_has_vforked)
11195 (inferior_has_execd, inferior_has_called_syscall): Delete.
11196 (handle_syscall_event): Get syscall_number from the execution
11197 control state's wait status.
11198 (wait_for_inferior): Don't clear syscall_number.
11199
09ac7c10
TT
112002012-01-24 Pedro Alves <palves@redhat.com>
11201
11202 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11203 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11204 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11205 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11206 `ws' parameter.
11207 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11208 false for events other than TARGET_SIGNAL_TRAP.
11209 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11210 Add `ws' parameter.
11211 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11212 events other than TARGET_SIGNAL_TRAP.
11213 (tracepoint_breakpoint_hit): Add `ws' parameter.
11214 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11215 parameter.
11216 (bpstat_stop_status): Same.
11217 (pc_at_non_inline_function): Same.
11218 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11219 to pass the current event's waitstatus to bpstat_stop_status
11220 and pc_at_non_inline_function.
11221
86eb7e95
JK
112222012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 Code cleanup.
11225 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11226 Update the function comment for it.
11227 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11228 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11229 for STREAM.
11230
a9b3a50f
PA
112312012-01-24 Pedro Alves <palves@redhat.com>
11232
11233 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11234 outside `bs->stop' block.
11235 (bpstat_what): Rework bp_shlib_event handling.
11236 (internal_bkpt_check_status): If the breakpoint is a
11237 bp_shlib_event, then set bs->stop and bs->print if
11238 stop_on_solib_events is set.
11239
53fe1783
GB
112402012-01-24 Gary Benson <gbenson@redhat.com>
11241
11242 Delete #if 0'd out code.
11243 * stack.c (print_frame_label_vars): Remove.
11244 (catch_info): Likewise.
11245 (_initialize_stack): Remove "info catch" command.
11246 * NEWS: Mention the above.
11247
49c62f2e
PA
112482012-01-24 Pedro Alves <palves@redhat.com>
11249
11250 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11251 it.
11252 (remote_notice_new_inferior): If the remote end doesn't support
11253 the multiprocess extensions, then the PID is fake.
11254 (add_current_inferior_and_thread): New.
11255 (remote_start_remote): Use it.
11256 (extended_remote_attach_1): Adjust.
11257 (extended_remote_create_inferior_1): Use
11258 add_current_inferior_and_thread.
11259
d0d8b0c6
JK
112602012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11261
11262 Fix watchpoints to be specific for each inferior.
11263 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11264 current_program_space.
11265 * i386-nat.c (i386_inferior_data_cleanup): New.
11266 (i386_inferior_data_get): Replace variable inf_data_local by an
11267 inferior_data call.
11268 (i386_use_watchpoints): Initialize i386_inferior_data.
11269 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11270 specific iterate_over_lwps.
11271
4403d8e9
JK
112722012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11273
11274 Fix watchpoints across inferior fork.
11275 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11276 comment for linux_nat_iterate_watchpoint_lwps.
11277 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11278 linux_nat_iterate_watchpoint_lwps.
11279 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11280 * i386-linux-nat.c (update_debug_registers_callback): Update the
11281 comment for linux_nat_iterate_watchpoint_lwps.
11282 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11283 linux_nat_iterate_watchpoint_lwps.
11284 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11285 * i386-nat.c: Include inferior.h.
11286 (dr_mirror): Remove.
11287 (i386_inferior_data, struct i386_inferior_data)
11288 (i386_inferior_data_get): New.
11289 (i386_debug_reg_state): Use i386_inferior_data_get.
11290 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11291 (i386_insert_watchpoint, i386_remove_watchpoint)
11292 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11293 (i386_remove_hw_breakpoint): New variable state, use
11294 i386_debug_reg_state instead of DR_MIRROR.
11295 * linux-nat.c (delete_lwp): New declaration.
11296 (num_lwps): Move here from downwards.
11297 (delete_lwp_cleanup): New.
11298 (linux_child_follow_fork): Create new child_lp, call
11299 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11300 PTRACE_DETACH.
11301 (num_lwps): Move upwards.
11302 (linux_nat_iterate_watchpoint_lwps): New.
11303 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11304 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11305
2992c9a7 113062012-01-24 Joel Brobecker <brobecker@adacore.com>
11307
11308 GDB 7.4 released.
11309
e360902b
PA
113102012-01-23 Pedro Alves <palves@redhat.com>
11311
11312 * top.c (caution): Rename to ...
11313 (confirm): ... this.
11314 (show_caution): Rename to ...
11315 (show_confirm): ... this.
11316 (quit_cover): Adjust.
11317 (init_main): Adjust.
11318 * top.h (caution): Rename to ...
11319 (confirm): ... this.
11320 * utils.c (internal_vproblem, defaulted_query): Adjust.
11321
050a2e1d
PA
113222012-01-23 Pedro Alves <palves@redhat.com>
11323
11324 * top.c (caution): Update comment.
11325 (execute_command): Don't consider the current value of `caution'.
11326
77a35dd8
JK
113272012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11328
11329 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11330
a71b5a38
UW
113312012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11332
11333 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11334 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11335 * target.c (target_fileio_pwrite): Remove buffer address from
11336 debug output.
11337 (target_fileio_pread): Likewise.
11338
d99bd577
UW
113392012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11340
11341 * NEWS: Document remote "info proc" and "generate-core-file".
11342
35c2fab7
UW
113432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11344
11345 * gdbarch.sh (find_memory_regions): New callback.
11346 * gdbarch.c, gdbarch.h: Regenerate.
11347
11348 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11349 callback before falling back to target method.
11350
11351 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11352 (linux_target_install_ops): No longer install it.
11353
11354 * linux-tdep.c (linux_find_memory_regions): New function.
11355 (linux_init_abi): Install it.
11356
6432734d
UW
113572012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11358
11359 * gdbarch.sh (make_corefile_notes): New architecture callback.
11360 * gdbarch.c: Regenerate.
11361 * gdbarch.h: Likewise.
11362
11363 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11364 before target_make_corefile_notes. If NULL is returned, the
11365 target does not support core file generation.
11366
11367 * linux-nat.c: Include "linux-tdep.h".
11368 (find_signalled_thread, find_stop_signal): Remove.
11369 (linux_nat_do_thread_registers): Likewise.
11370 (struct linux_nat_corefile_thread_data): Likewise.
11371 (linux_nat_corefile_thread_callback): Likewise.
11372 (iterate_over_spus): Likewise.
11373 (struct linux_spu_corefile_data): Likewise.
11374 (linux_spu_corefile_callback): Likewise.
11375 (linux_spu_make_corefile_notes): Likewise.
11376 (linux_nat_collect_thread_registers): New function.
11377 (linux_nat_make_corefile_notes): Replace contents by call to
11378 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11379 as native-only callback.
11380
11381 * linux-tdep.h: Include "bfd.h".
11382 (struct regcache): Add forward declaration.
11383 (linux_collect_thread_registers_ftype): New typedef.
11384 (linux_make_corefile_notes): Add prototype.
11385 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11386 "regset.h", and "elf-bfd.h".
11387 (find_signalled_thread, find_stop_signal): New functions.
11388 (linux_spu_make_corefile_notes): Likewise.
11389 (linux_collect_thread_registers): Likewise.
11390 (struct linux_corefile_thread_data): New data structure.
11391 (linux_corefile_thread_callback): New funcion.
11392 (linux_make_corefile_notes): Likewise.
11393 (linux_make_corefile_notes_1): Likewise.
11394 (linux_init_abi): Install it.
11395
3030c96e
UW
113962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11397
11398 * gdbarch.sh (info_proc): New callback.
11399 * gdbarch.c, gdbarch.h: Regenerate.
11400
11401 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11402 before falling back to the target info_proc callback.
11403
11404 * linux-nat.c: Do not include "cli/cli-utils.h".
11405 (linux_nat_info_proc): Remove.
11406 (linux_target_install_ops): No longer install it.
11407
11408 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11409 (read_mapping): New function.
11410 (linux_info_proc): Likewise.
11411 (linux_init_abi): Install it.
11412
145b16a9
UW
114132012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11414
11415 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11416 * infcmd.c: (info_proc_cmd_1): New function.
11417 (info_proc_cmd): New function, moved here from equivalent routine
11418 orignally in linux-nat.c.
11419 (info_proc_cmd_mappings): Likewise.
11420 (info_proc_cmd_stat): Likewise.
11421 (info_proc_cmd_status): Likewise.
11422 (info_proc_cmd_cwd): Likewise.
11423 (info_proc_cmd_cmdline): Likewise.
11424 (info_proc_cmd_exe): Likewise.
11425 (info_proc_cmd_all): Likewise.
11426 (_initialize_infcmd): Install "info proc" command and subcommands.
11427
11428 * target.h (struct target_ops): Add to_info_proc.
11429 (target_info_proc): Add prototype.
11430 * target.c (target_info_proc): New function.
11431
11432 * procfs.c (procfs_info_proc): Add prototype.
11433 (info_proc_cmd): Rename into ...
11434 (procfs_info_proc): ... this. Update argument types as appropriate
11435 for a to_info_proc implementation. Handle "what" argument.
11436 (procfs_target): Install procfs_info_proc.
11437 (_initialize_procfs): No longer install "info proc" command.
11438
11439 * linux-nat.c: (enum info_proc_what): Remove.
11440 (linux_nat_info_proc_cmd_1): Rename into ...
11441 (linux_nat_info_proc): ... this. Update argument types as appropriate
11442 for a to_info_proc implementation.
11443 (linux_nat_info_proc_cmd): Remove.
11444 (linux_nat_info_proc_cmd_mappings): Likewise.
11445 (linux_nat_info_proc_cmd_stat): Likewise.
11446 (linux_nat_info_proc_cmd_status): Likewise.
11447 (linux_nat_info_proc_cmd_cwd): Likewise.
11448 (linux_nat_info_proc_cmd_cmdline): Likewise.
11449 (linux_nat_info_proc_cmd_exe): Likewise.
11450 (linux_nat_info_proc_cmd_all): Likewise.
11451 (linux_target_install_ops): Install linux_nat_info_proc.
11452 (_initialize_linux_nat): No longer install "info proc" command
11453 and subcommands.
11454
b9e7b9c3
UW
114552012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11456
11457 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11458 * config.in, configure: Regenerate.
11459
11460 * target.h (struct target_ops): Add to_fileio_readlink.
11461 (target_fileio_readlink): Add prototype.
11462 * target.c (target_fileio_readlink): New function.
11463
11464 * inf-child.c: Conditionally include <sys/param.h>.
11465 (inf_child_fileio_readlink): New function.
11466 (inf_child_target): Install it.
11467
11468 * remote.c (PACKET_vFile_readlink): New enum value.
11469 (remote_hostio_readlink): New function.
11470 (init_remote_ops): Install it.
11471 (_initialize_remote): Handle vFile:readlink packet type.
11472
7313baad
UW
114732012-01-20 Pedro Alves <palves@redhat.com>
11474 Ulrich Weigand <ulrich.weigand@linaro.org>
11475
11476 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11477 * config.in, configure: Regenerate.
11478
11479 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11480 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11481 (target_fileio_open): Add prototype.
11482 (target_fileio_pwrite): Likewise.
11483 (target_fileio_pread): Likewise.
11484 (target_fileio_close): Likewise.
11485 (target_fileio_unlink): Likewise.
11486 (target_fileio_read_alloc): Likewise.
11487 (target_fileio_read_stralloc): Likewise.
11488
11489 * target.c: Include "gdb/fileio.h".
11490 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11491 (default_fileio_target): New function.
11492 (target_fileio_open): Likewise.
11493 (target_fileio_pwrite): Likewise.
11494 (target_fileio_pread): Likewise.
11495 (target_fileio_close): Likewise.
11496 (target_fileio_unlink): Likewise.
11497 (target_fileio_close_cleanup): Likewise.
11498 (target_fileio_read_alloc_1): Likewise.
11499 (target_fileio_read_alloc): Likewise.
11500 (target_fileio_read_stralloc): Likewise.
11501
11502 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11503 <fcntl.h>, and <unistd.h>.
11504 (inf_child_fileio_open_flags_to_host): New function.
11505 (inf_child_errno_to_fileio_error): Likewise.
11506 (inf_child_fileio_open): Likewise.
11507 (inf_child_fileio_pwrite): Likewise.
11508 (inf_child_fileio_pread): Likewise.
11509 (inf_child_fileio_close): Likewise.
11510 (inf_child_fileio_unlink): Likewise.
11511 (inf_child_target): Install to_fileio routines.
11512
11513 * remote.c (init_remote_ops): Install to_fileio routines.
11514
901f9912
UW
115152012-01-20 Pedro Alves <palves@redhat.com>
11516 Ulrich Weigand <ulrich.weigand@linaro.org>
11517
11518 * remote.c (remote_multi_process_p): Only check for multi-process
11519 protocol feature, do not check for extended protocol.
11520 (remote_supports_multi_process): Check for extended protocol here.
11521 (set_general_process): Likewise.
11522 (extended_remote_kill): Likewise.
11523 (remote_pid_to_str): Likewise.
11524 (remote_query_supported): Always query multiprocess mode.
11525
e714e1bf
UW
115262012-01-20 Pedro Alves <palves@redhat.com>
11527 Ulrich Weigand <ulrich.weigand@linaro.org>
11528
11529 * inferior.h (struct inferior): Add fake_pid_p.
11530 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11531 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11532 magic_null_ptid since the remote side doesn't provide a real PID.
11533
50897289
TT
115342012-01-19 Tom Tromey <tromey@redhat.com>
11535
11536 * NEWS: Combine the two Python sections.
11537
1afc2033
JK
115382012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11539
11540 * target.h (target_close): Update comment on the target's unpush state.
11541
305436e0
PA
115422012-01-19 Pedro Alves <palves@redhat.com>
11543
11544 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11545 linux_nat_async directly instead of going through the target
11546 vector.
11547 * target.c (unpush_target): Close target after unpushing it, not
11548 before.
11549
49323895
GB
115502012-01-19 Gary Benson <gbenson@redhat.com>
11551
11552 * mdebugread.c (sort_blocks): Replace integer constants with ones
11553 derived from FIRST_LOCAL_BLOCK.
11554
1db33378
PP
115552012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11556 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 PR gdb/9538
11559 * symfile.c (find_separate_debug_file): New function.
11560 (terminate_after_last_dir_separator): Likewise.
11561 (find_separate_debug_file_by_debuglink): Also try realpath.
11562 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11563 * configure: Regenerate.
11564 * config.in: Regenerate.
11565
f83d8a90
DE
115662012-01-18 Doug Evans <dje@google.com>
11567
11568 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11569 (main.o): Remove rule.
11570 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11571 (--with-sysroot): Rewrite.
11572 * configure: Regenerate.
11573 * config.in: Regenerate.
11574
2dbca4d6
SDJ
115752012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11576
11577 * parse.c (initialize_expout): New function.
11578 (reallocate_expout): Likewise.
11579 (parse_exp_in_context): Use `initialize_expout' and
11580 `reallocate_expout' when appropriate.
11581
0695b514
PA
115822012-01-18 Pedro Alves <palves@redhat.com>
11583
11584 * record.c (struct record_breakpoint, record_breakpoint_p)
11585 (record_breakpoints): New.
11586 (record_insert_breakpoint, record_remove_breakpoint): Manage
11587 record breakpoints list. Only remove breakpoints from the
11588 inferior if they had been inserted there in the first place.
11589
136e1c30
DE
115902012-01-17 Doug Evans <dje@google.com>
11591
11592 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11593 if we know we don't have a file name to look for.
11594
c0bf857d
PA
115952012-01-17 Pedro Alves <palves@redhat.com>
11596
11597 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11598 the frame's stop reason is UNWIND_UNAVAILABLE.
11599
b486de60
JK
116002012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11601
11602 Fix compilation error.
11603 * m2-exp.y (yyerror): Use ANSI C prototype.
11604
d04550a6
SDJ
116052012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11606
11607 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11608 (growbuf_by_size): Likewise.
11609 (yyerror): Likewise.
11610 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11611 (modblock): Remove variable (was #if 0'ed).
11612 (parse_number): Convert prototype from K&R to ANSI C.
11613 (yyerror): Likewise.
11614 * objc-exp.y (parse_number): Likewise.
11615 (yyerror): Likewise.
11616 (yylex): Remove #if 0'ed code.
11617 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11618 (yyerror): Likewise.
11619
4aac40c8
TT
116202012-01-16 Tom Tromey <tromey@redhat.com>
11621
11622 * NEWS: Add item.
11623 * symtab.h (compare_filenames_for_search): Declare.
11624 * symtab.c (compare_filenames_for_search): New function.
11625 (iterate_over_some_symtabs): Use it.
11626 * symfile.h (struct quick_symbol_functions)
11627 <map_symtabs_matching_filename>: Change spec.
11628 * psymtab.c (partial_map_symtabs_matching_filename): Use
11629 compare_filenames_for_search. Update for new spec.
11630 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11631 compare_filenames_for_search. Update for new spec.
11632 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11633
cafec441
TT
116342012-01-16 Tom Tromey <tromey@redhat.com>
11635
11636 PR python/13281:
11637 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11638 (struct main_type) <flag_flag_enum>: New field.
11639 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11640 * NEWS: Add entries.
11641 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11642 enums.
11643 * python/lib/gdb/printing.py (_EnumInstance): New class.
11644 (FlagEnumerationPrinter): Likewise.
11645
983af33b
SDJ
116462012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11647
11648 * breakpoint.c (create_sals_from_address_default): New function.
11649 (create_breakpoints_sal_default): Likewise.
11650 (decode_linespec_default): Likewise.
11651 (is_marker_spec): Removed.
11652 (strace_marker_p): New function.
11653 (init_breakpoint_sal): Using `strace_marker_p' instead of
11654 `is_marker_spec'.
11655 (create_breakpoint): Call method `create_sals_from_address' from
11656 breakpoint_ops, replacing code that created SALs conditionally
11657 on the type of the breakpoint. Call method `create_breakpoints_sal',
11658 replacing code that created breakpoints conditionally on the type
11659 wanted.
11660 (base_breakpoint_create_sals_from_address): New function.
11661 (base_breakpoint_create_breakpoints_sal): Likewise.
11662 (base_breakpoint_decode_linespec): Likewise.
11663 (base_breakpoint_ops): Add methods
11664 `base_breakpoint_create_sals_from_address',
11665 `base_breakpoint_create_breakpoints_sal' and
11666 `base_breakpoint_decode_linespec'.
11667 (bkpt_create_sals_from_address): New function.
11668 (bkpt_create_breakpoints_sal): Likewise.
11669 (bkpt_decode_linespec): Likewise.
11670 (tracepoint_create_sals_from_address): Likewise.
11671 (tracepoint_create_breakpoints_sal): Likewise.
11672 (tracepoint_decode_linespec): Likewise.
11673 (strace_marker_create_sals_from_address): Likewise.
11674 (strace_marker_create_breakpoints_sal): Likewise.
11675 (strace_marker_decode_linespec): Likewise.
11676 (strace_marker_breakpoint_ops): New variable.
11677 (addr_string_to_sals): Remove `marker_spec'. Call method
11678 `decode_linespec' from breakpoint_ops, replacing code that decoded
11679 an address string into a SAL. Use `strace_marker_p' instead of
11680 `marker_spec'.
11681 (strace_command): Decide whether we are dealing with a static
11682 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11683 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11684 * breakpoint.h (linespec_result, linespec_sals): New forward
11685 declarations.
11686 (breakpoint_ops) <create_sals_from_address>,
11687 <create_breakpoints_sal>, <decode_linespec>: New methods.
11688
4795f398
DE
116892012-01-14 Doug Evans <dje@google.com>
11690
11691 * NEWS: Update text for "maint set python print-stack".
11692 It is deprecated in gdb 7.4 and deleted in 7.5.
11693
ee5106fe
EZ
116942012-01-13 Eli Zaretskii <eliz@gnu.org>
11695
11696 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11697 including curses.h.
11698
b161e06f
JK
116992012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11700
11701 * configure: Regenerate.
11702 * config.in: Regenerate.
11703
85254831
KS
117042012-01-12 Keith Seitz <keiths@redhat.com>
11705
11706 PR mi/10586
11707 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11708 (ANONYMOUS_UNION_NAME): Define.
11709 (is_path_expr_parent): New function.
11710 (get_path_expr_parent): New function.
11711 (is_anonymous_child): New function.
11712 (create_child_with_value): If the child is anonymous and without
11713 a name, assign an object name to it.
11714 (c_describe_child): Use get_path_expr_parent to determine
11715 the parent expression.
11716 If there field represents an anonymous struct or union and
11717 has no name, set an appropriate display name and expression.
11718 (cplus_describe_child): Likewise.
11719
620fa63a
PA
117202012-01-12 Pedro Alves <palves@redhat.com>
11721
11722 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11723 available when %ebp is found to be zero (outermost).
11724
2efa2c79
AT
117252012-01-11 Andreas Tobler <andreast@fgznet.ch>
11726
11727 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11728 an internal gdb_static_assert.
11729 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11730
88e7d25d
TT
117312012-01-11 Tom Tromey <tromey@redhat.com>
11732
11733 PR gdb/9598:
11734 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11735 catch" and "catch throw".
11736
72384ba3
PH
117372012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11738
11739 * blockframe.c (block_innermost_frame): Start search from selected
11740 frame, if present, or otherwise the current frame.
11741
11742 * c-exp.y (variable): Update innermost_block for
11743 'block COLONCOLON NAME' clause.
11744 * m2-exp.y (variable): Ditto.
11745 * objc-exp.y (variable): Ditto.
11746
065a711f
TT
117472012-01-10 Tom Tromey <tromey@redhat.com>
11748
11749 PR python/13199:
11750 * python/python.c (finish_python_initialization): Set sys.argv.
11751
f3f5162e
DE
117522012-01-10 Doug Evans <dje@google.com>
11753
11754 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11755 "want_line_info". All callers updated.
11756 (dwarf_decode_lines_1): New function.
11757 (handle_DW_AT_stmt_list): Add function comment.
11758 New arg "want_line_info". All callers updated.
11759 (read_file_scope,read_type_unit_scope): Move comment from
11760 handle_DW_AT_stmt_list to here.
11761
9934703b
JK
117622012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11763
11764 Fix regression after libiberty/ update for GCC PR 6057 and others.
11765 * c-exp.y (operator) <OPERATOR DELETE>
11766 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11767 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11768 (make_builtin_type, make_name): New variable i, add gdb_assert.
11769 (operator) <OPERATOR NEW>: Update ARGS to 3.
11770 (operator) <OPERATOR DELETE>: Add trailing space.
11771 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11772 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11773 * cp-support.c (cp_canonicalize_string): Check NULL from
11774 cp_comp_to_string, call warning and return.
11775
06b9f45f
JK
117762012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11777
11778 Fix duplicate .o files after omitting libbfd.a.
11779 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11780 (SFILES): Add corelow.c.
11781 (COMMON_OBS): Add corelow.o.
11782 (ALLDEPFILES): Remove corelow.c.
11783 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11784 * config/alpha/alpha-osf3.mh: Likewise.
11785 * config/alpha/fbsd.mh: Likewise.
11786 * config/arm/nbsdaout.mh: Likewise.
11787 * config/arm/nbsdelf.mh: Likewise.
11788 * config/i386/i386gnu.mh: Likewise.
11789 * config/ia64/hpux.mh: Likewise.
11790 * config/ia64/linux.mh: Likewise.
11791 * config/m32r/linux.mh: Likewise.
11792 * config/m68k/linux.mh: Likewise.
11793 * config/mips/irix5.mh: Likewise.
11794 * config/mips/irix6.mh: Likewise.
11795 * config/pa/hpux.mh: Likewise.
11796 * config/pa/linux.mh: Likewise.
11797 * config/powerpc/aix.mh: Likewise.
11798 * config/sparc/linux.mh: Likewise.
11799 * config/sparc/linux64.mh: Likewise.
11800 * config/sparc/sol2.mh: Likewise.
11801 * config/vax/vax.mh: Likewise.
11802 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11803 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11804 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11805 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11806 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11807 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11808 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11809 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11810 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11811 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11812 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11813 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11814 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11815 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11816 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11817 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11818 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11819 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11820 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11821 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11822 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11823 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11824 corelow.o from gdb_target_obs.
11825 * corefile.c (core_target): Update the comment on NULL value.
11826 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11827 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11828 MATCHES. Drop YUMMY set on NULL.
11829 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11830 reclaim CORE_DATA if it is already NULL.
11831
34365054
DE
118322012-01-09 Doug Evans <dje@google.com>
11833
11834 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11835 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11836
696166a3
KS
118372012-01-09 Keith Seitz <keiths@redhat.com>
11838
11839 * breakpoint.c (wrapper.h): Don't include.
11840
8e7b59a5
KS
118412012-01-09 Keith Seitz <keiths@redhat.com>
11842
11843 * Makefile.in (SFILES): Remove wrapper.c.
11844 (HFILES_NO_SRCDIR): Remove wrapper.h.
11845 (COMMON_OBS): Remove wrapper.o.
11846 * cli/cli-interp.c: Don't inlude wrapper.h.
11847 * corelow.c: Likewise.
11848 (core_open): Replace gdb_target_find_new_threads with
11849 TRY_CATCH around target_find_new_threads.
11850 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11851 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11852 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11853 evaluate_expression.
11854 (varobj_set_value): Likewise for evaluate_expression and
11855 value_assign.
11856 (install_new_variable): Likewise for value_fetch_lazy.
11857 (adjust_value_for_child_access): Likewise for value_ind.
11858 (c_describe_child): Likewise for value_subscript and
11859 value_ind.
11860 (c_value_of_root): Likewise for evaluate_expression.
11861 * wrapper.c: Remove.
11862 * wrapper.h: Remove.
11863
1a4eeb98
DE
118642012-01-09 Doug Evans <dje@google.com>
11865
9ff913ba
DE
11866 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11867 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11868 "abfd" args with "section". All callers updated.
11869 Error checking code moved ...
11870 (error_check_comp_unit_head): ... here. New function.
11871 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11872 Delete arg "abfd". New arg "type_offset". All callers updated.
11873 (create_debug_types_hash_table): Simplify by using
11874 read_and_check_type_unit_head.
11875
1a4eeb98
DE
11876 * parser-defs.h (namecopy): Delete.
11877 * parse.c (namecopy, namecopy_size): Move into copy_name.
11878
2e6af8c0
JK
118792012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11880
11881 Partially fix duplicate .o files after omitting libbfd.a.
11882 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11883 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11884 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11885 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11886 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11887 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11888 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11889
9f2f828a
PA
118902012-01-09 Pedro Alves <palves@redhat.com>
11891
11892 * MAINTAINERS: Update my email address.
11893
4d72c0bc
DE
118942012-01-08 Doug Evans <dje@google.com>
11895
d467dd73
DE
11896 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11897 n_type_units. Rename type_comp_units to all_type_units.
11898 All uses updated.
11899 (add_signatured_type_cu_to_table): Renamed from
11900 add_signatured_type_cu_to_list. All callers updated.
11901
4d72c0bc
DE
11902 * gdbtypes.h (struct cplus_struct_type): Delete member
11903 nfn_fields_total. All uses removed.
11904
21b2bd31
DE
119052012-01-06 Doug Evans <dje@google.com>
11906
11907 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11908 to top of file.
11909 (dwarf2_find_comp_unit): Delete.
11910 (process_psymtab_comp_unit): Make result "void".
11911 Delete args buffer, info_ptr, buffer_size, and replace with
11912 "section". All callers updated.
11913 (dwarf2_build_psymtabs_hard): Simplify.
11914
bfd189b1
SDJ
119152012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11916 Thiago Jung Bauermann <bauerman@br.ibm.com>
11917
11918 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11919 before `struct gdb_exception'.
11920 * breakpoint.c (update_global_location_list_nothrow)
11921 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11922 * cp-abi.c (value_rtti_type): Likewise.
11923 * cp-support.c (cp_validate_operator): Likewise.
11924 * infrun.c (insert_exception_resume_breakpoint)
11925 (check_exception_resume, keep_going): Likewise.
11926 * mi-interp.c (mi_breakpoint_created)
11927 (mi_breakpoint_modified): Likewise.
11928 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11929 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11930 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11931
6b07635f
DE
119322012-01-05 Doug Evans <dje@google.com>
11933
0b30b85c
DE
11934 * dwarf2read.c (statement_prologue): Delete, unused.
11935
98714339
DE
11936 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11937 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11938
6b07635f
DE
11939 * dwarf2read.c (comp_unit_header): Delete, unused.
11940
761f4555
UW
119412012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11942
11943 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11944 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11945
2ca0b532
PA
119462012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11947
11948 * infrun.c (normal_stop): Don't skip calling the normal_stop
11949 observers if the thread was doing a multi-step, but stopped for
11950 some reason other than stepping.
11951
50aeff07
PA
119522012-01-05 Pedro Alves <alves.ped@gmail.com>
11953
11954 * cli/cli-decode.h: Add comments.
11955 (CMD_LIST_AMBIGUOUS): Moved to command.h
11956 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11957 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11958 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11959 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11960 (add_com, add_com_alias, add_info, add_info_alias)
11961 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11962 declarations.
11963 * command.h: Add and adjust comments.
11964 (CMD_LIST_AMBIGUOUS): Moved here.
11965 (help_cmd, help_cmd_list): Delete declarations.
11966
5953832c
DE
119672012-01-04 Doug Evans <dje@google.com>
11968
e5fe5e75
DE
11969 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11970 All callers updated.
11971 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11972 Replace all arguments with "per_cu". All callers updated.
11973
28dee7f5
DE
11974 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11975
23745b47
DE
11976 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11977 New arg "per_cu". All callers updated.
11978
5953832c
DE
11979 Delete #if 0'd out code.
11980 * language.c (binop_result_type): Delete.
11981 (simple_type, ordered_type, same_type, integral_type): Delete.
11982 (numeric_type, character_type, string_type, boolean_type): Delete.
11983 (float_type, structured_type): Delete.
11984 * language.h: Update.
11985
0f5b7562
TT
119862012-01-04 Tom Tromey <tromey@redhat.com>
11987
11988 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11989
78218f56
JB
119902012-01-04 Joel Brobecker <brobecker@adacore.com>
11991
11992 * corefile.c (close_exec_file): Delete.
11993 (reopen_exec_file): Remove commented out code that seems related
11994 to close_exec_file, which is being deleted here.
11995 * inferior.h (close_exec_file): Delete.
11996 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11997
0fcd72ba
JB
119982012-01-04 Joel Brobecker <brobecker@adacore.com>
11999
12000 * ada-lang.c: #include "cli/cli-utils.h".
12001 (get_selections): Use skip_spaces.
12002 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12003 (catch_ada_exception_command_split): Use skip_spaces.
12004 (ada_decode_assert_location): Likewise.
12005
1dabb4c4
JB
120062012-01-04 Joel Brobecker <brobecker@adacore.com>
12007
12008 * linespec.c (decode_line_internal): Check for C++ or Java
12009 compound constructs only if the current language is C, C++
12010 or Java.
12011
5931a2fa
JK
120122012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12013
12014 Revert:
12015 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12016 Joel Brobecker <brobecker@adacore.com>
12017 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12018 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12019 3 times.
12020 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12021 fall through into AT_ENTRY_POINT.
12022 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12023 DUMMY_ADDR with it.
12024 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12025 PPC_INSN_SIZE skip to 3 times.
12026
1a2da5ee
JB
120272012-01-04 Joel Brobecker <brobecker@adacore.com>
12028
12029 * linespec.c (add_minsym): Preserve function descriptors.
12030
8645ff69
UW
120312012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12032
12033 * breakpoint.c (all_locations_are_pending): Consider locations
12034 in program spaces executing during startup pending as well.
12035
0b302171
JB
120362012-01-04 Joel Brobecker <brobecker@adacore.com>
12037
12038 Copyright year update in most files of the GDB Project.
12039
8ba098ad
JB
120402012-01-04 Joel Brobecker <brobecker@adacore.com>
12041
12042 * copyright.sh: Delete.
12043 * copyright.py: Rewrite.
12044
09c01c30
JB
120452012-01-04 Joel Brobecker <brobecker@adacore.com>
12046
12047 * gnulib/extra/update-copyright: New file, imported from gnulib.
12048
3c36c0af
JB
120492012-01-04 Joel Brobecker <brobecker@adacore.com>
12050
12051 * README (Copyright and License Notices): New section.
12052
888fe1e1
TT
120532012-01-03 Tom Tromey <tromey@redhat.com>
12054
12055 PR python/12533:
12056 * python/py-value.c (valpy_dereference, valpy_get_address
12057 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12058 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12059 (valpy_absolute, valpy_richcompare): Free intermediate values.
12060
6e681866
JB
120612011-01-03 Joel Brobecker <brobecker@adacore.com>
12062
12063 * ada-lang.c: Reformat the copyright notice.
12064
0cd09acb
JK
120652012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12066
12067 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12068 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12069 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12070 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12071 Revert this part of:
12072 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12073 Build gdb directly from *.o files not using libgdb.a.
12074 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12075
12c3e59c
JB
120762012-01-02 Joel Brobecker <brobecker@adacore.com>
12077
12078 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12079 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12080 Reformat the copyright header.
12081
11bf1490
JK
120822012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12083
12084 Revert this part of:
12085 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12086 Remove the gdbtui binary.
12087 * gdb.c (main): Remove args.interpreter_p initialization.
12088 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12089 * main.h (struct captured_main_args): Remove interpreter_p.
12090
1fef196f
JB
120912012-01-02 Joel Brobecker <brobecker@adacore.com>
12092
12093 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12094
67827812
JB
120952012-01-02 Joel Brobecker <brobecker@adacore.com>
12096
12097 * top.c (print_gdb_version): Update copyright year.
12098
a4d0b831
YQ
120992012-01-02 Yao Qi <yao@codesourcery.com>
12100
12101 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12102
b5914469
JK
121032012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12104 Joel Brobecker <brobecker@adacore.com>
12105
12106 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12107 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12108 3 times.
12109 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12110 fall through into AT_ENTRY_POINT.
12111 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12112 DUMMY_ADDR with it.
12113 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12114 PPC_INSN_SIZE skip to 3 times.
12115
8da828f7
JK
121162012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12117
12118 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12119 the return value.
12120 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12121
8574e74b
JK
121222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12123
12124 Build gdb directly from *.o files not using libgdb.a.
12125 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12126 (COMMON_OBS): Remove solib-target.o.
12127 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12128 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12129 (LIBGDB_OBS, libgdb.a): Move it above.
12130 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12131 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12132 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12133 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12134 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12135 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12136 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12137 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12138 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12139 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12140 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12141 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12142 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12143 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12144 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12145 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12146 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12147 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12148 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12149 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12150 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12151 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12152 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12153 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12154 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12155 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12156 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12157
217bff3e
JK
121582012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12159
12160 Remove the gdbtui binary.
12161 * .gitignore (/gdbtui): Remove.
12162 * Makefile.in (TUI): Remove.
12163 (SUBDIR_TUI_OBS): Remove tui-main.o.
12164 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12165 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12166 (tui-main.o): Remove.
12167 (all_object_files): Remove tui-main.o.
12168 * NEWS: New note for the gdbtui removal.
12169 * configure: Rebuilt.
12170 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12171 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12172 CONFIG_UNINSTALL respectively.
12173 * gdb.c (main): Remove args.interpreter_p initialization.
12174 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12175 * main.h (struct captured_main_args): Remove interpreter_p.
12176 * tui/tui-main.c: Remove.
12177
9cdd5dbd
DE
121782012-01-01 Doug Evans <dje@google.com>
12179
bb5ed363
DE
12180 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12181 (dwarf2_physname, read_import_statement): Ditto.
12182 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12183 (process_structure_scope read_subroutine_type): Ditto.
12184 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12185 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12186 (dwarf2_fetch_die_location_block): Ditto.
12187 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12188
a0f42c21
DE
12189 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12190 All callers updated.
12191 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12192 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12193 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12194
2dc860c0
DE
12195 * dwarf2read.c (load_cu): Move assert to more useful location.
12196
68dc6402
DE
12197 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12198 All callers updated.
12199
9cdd5dbd
DE
12200 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12201 (dwarf2_elf_names): Minor reformat.
12202 (dwarf2_per_cu_data): Tweak comment.
12203 (dwarf2_read_section): Fix comment.
12204 (create_all_comp_units): Fix comment.
12205 (load_full_comp_unit): Fix comment.
12206 (process_full_comp_unit): Fix comment.
12207 (read_signatured_type): Fix comment.
12208
0c10e53e 12209For older changes see ChangeLog-2011.
c906108c
SS
12210\f
12211Local Variables:
12212mode: change-log
12213left-margin: 8
12214fill-column: 74
12215version-control: never
57da7796 12216coding: utf-8
c906108c 12217End:
This page took 2.117164 seconds and 4 git commands to generate.