d8635f1b3e14a5435c45bb948517db7134f9a46d
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
4 return value to void to avoid compiler warning.
5
6 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
7
8 * opencl-lang.c (opencl_print_type): New function.
9 (opencl_language_arch_info): Install it.
10
11 2012-11-29 Tom Tromey <tromey@redhat.com>
12
13 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
14 xvasprintf.
15 * common/common-utils.c (xasprintf, xvasprintf): Remove.
16 * common/common-utils.h (xasprintf, xvasprintf): Remove.
17
18 2012-11-29 Jerome Guitton <guitton@adacore.com>
19
20 * ada-lang.c (ada_is_interface_tag): New function.
21 (ada_is_ignored_field): Add interface tags to the list
22 of ignored fields.
23
24 2012-11-29 Jerome Guitton <guitton@adacore.com>
25
26 * ada-lang.h (ada_tag_value_at_base_address): New function
27 declaration.
28 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
29 New functions.
30 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
31 relocate the class-wide value if need be.
32 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
33 Let ada_tag_value_at_base_address relocate the class-wide access/ref
34 before dereferencing it.
35 * ada-valprint.c (ada_val_print_1): Relocate to base address
36 before displaying the content of an interface-wide ref.
37
38 2012-11-29 Jerome Guitton <guitton@adacore.com>
39
40 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
41
42 2012-11-29 Joel Brobecker <brobecker@adacore.com>
43
44 GDB 7.5.1 released.
45
46 2012-11-29 Yao Qi <yao@codesourcery.com>
47 Tom Tromey <tromey@redhat.com>
48
49 * eval.c (evaluate_subexp_standard): Get the correct pointer
50 type for TYPE_CODE_MEMBERPTR.
51
52 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
53
54 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
55 since now it is being done by binutils' powerpc_init_dialect().
56
57 2012-11-28 Tom Tromey <tromey@redhat.com>
58
59 PR gdb/14290:
60 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
61 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
62 Use it.
63 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
64 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
65 (gdb_bfd_openr_next_archived_file): Use it.
66
67 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
68
69 * configure.ac: Check for linux/perf_event.h.
70 * config.in: Regenerated.
71 * configure: Regenerated.
72
73 2012-11-28 Yao Qi <yao@codesourcery.com>
74
75 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
76 abbreviate 'delete tracepoints' to 'delete tr'.
77 * corefile.c (_initialize_core): Call add_alias_cmd to
78 abbreviate 'set gnutarget' to 'set g'.
79 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
80 'show convenience' to 'show conv'.
81
82 2012-11-27 Joel Brobecker <brobecker@adacore.com>
83
84 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
85 call to sparc_supply_fpregset.
86 (fill_fpregset): Fix first parameter in call to
87 sparc_collect_fpregset.
88
89 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
90 Kazu Hirata <kazu@codesourcery.com>
91 Yao Qi <yao@codesourcery.com>
92
93 * objfiles.c (init_entry_point_info): Call
94 gdbarch_convert_from_func_ptr_addr and
95 gdbarch_addr_bits_remove here ...
96 (entry_point_address_query): ... instead of here.
97 * solib-svr4.c (exec_entry_point): Call
98 gdbarch_addr_bits_remove.
99 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
100 the entry address.
101
102 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
103 Yao Qi <yao@codesourcery.com>
104
105 * eval.c (evaluate_subexp_standard): Add handling of
106 TYPE_CODE_MEMBERPTR when calling functions. Correct the
107 result of ptype for calling a TYPE_CODE_METHODPTR.
108
109 2012-11-27 Yao Qi <yao@codesourcery.com>
110
111 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
112 warning.
113 Add i18n markup.
114
115 2012-11-26 Alexander Larsson <alexl@redhat.com>
116 Jan Kratochvil <jan.kratochvil@redhat.com>
117 Tom Tromey <tromey@redhat.com>
118
119 * NEWS: Mention mini debuginfo feature.
120 * minidebug.c: New file.
121 * configure.ac: Check for lzma.
122 * configure, config.in: Rebuild.
123 * Makefile.in (LIBLZMA): New variable.
124 (CLIBS): Include LIBLZMA.
125 (SFILES): Mention minidebug.c.
126 (COMMON_OBS): Mention minidebug.o.
127 * symfile.c (read_symbols): New function.
128 (syms_from_objfile, reread_symbols): Call it.
129 * symfile.h (find_separate_debug_file_in_section): Declare.
130
131 2012-11-26 Keith Seitz <keiths@redhat.com>
132
133 * exec.c (exec_file_attach): Move cleanup after verifying that
134 memory has in fact been allocated.
135
136 2012-11-26 Tom Tromey <tromey@redhat.com>
137
138 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
139 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
140 SYMBOL_SYMTAB.
141 * skip.c (skip_info): Use SYMBOL_SYMTAB.
142
143 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
144 Pedro Alves <palves@redhat.com>
145
146 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
147 size parameter passed to readlink by one byte.
148 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
149 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
150 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
151 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
152 size by one byte.
153
154 2012-11-26 Yao Qi <yao@codesourcery.com>
155
156 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
157 extraneous parentheses.
158
159 2012-11-26 Yao Qi <yao@codesourcery.com>
160
161 * remote.c (remote_start_remote): Typo fix.
162
163 2012-11-23 David S. Miller <davem@davemloft.net>
164
165 * sparc-tdep.h (struct sparc_fpregset): New data structure.
166 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
167 sparc32_sol2_fpregset): Declare new globals.
168 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
169 'fpregset' argument.
170 * sparc64-tdep.h (sparc64_supply_fpregset,
171 sparc64_collect_fpregset): Likewise.
172 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
173 globals.
174 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
175 (sparc_fpregset): Declare new global.
176 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
177 'fpregset' argument.
178 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
179 into handler.
180 (fill_fpregset): Likewise.
181 (_initialize_sparc_linux_nat): Set sparc_fpregset to
182 sparc32_bsd_fpregset.
183 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
184 sparc32_bsd_fpregset down into handler.
185 (sparc32_linux_collect_core_fpregset): Likewise.
186 * sparc-nat.c (sparc_fpregset): Define.
187 (sparc_supply_fpregset): Add 'fpregset' argument.
188 (sparc_collect_fpregset): Likewise.
189 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
190 into fpregset handler.
191 (sparc_store_inferior_registers): Likewise.
192 (_initialize_sparc_nat): Set sparc_fpregset to
193 sparc32_sunos4_fpregset if NULL.
194 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
195 down into handler.
196 (fill_fpregset): Likewise.
197 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
198 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
199 use it to compute offsets.
200 (sparc32_collect_fpregset): Likewise.
201 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
202 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
203 down into handler.
204 (fill_fpregset): Likewise.
205 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
206 Likewise.
207 (sparc64_linux_collect_core_fpregset): Likewise.
208 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
209 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
210 use it to compute offsets.
211 (sparc64_collect_fpregset): Likewise.
212 (sparc64_bsd_fpregset): Define.
213 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
214 sparc64_bsd_fpregset down into handler.
215 (sparc64fbsd_collect_fpregset): Likewise.
216 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
217 and pass sparc{32,64}_bsd_fpregset down into handler.
218 (sparc64nbsd_collect_fpregset): Likewise.
219 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
220 sparc64_bsd_fpregset down into handler.
221 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
222 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
223 to sparc32_bsd_fpregset.
224 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
225 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
226 (sparc32nbsd_supply_fpregset): Likewise.
227
228 2012-11-21 Tom Tromey <tromey@redhat.com>
229
230 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
231 field.
232 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
233 Remove.
234 * c-typeprint.c (c_type_print_base): Update.
235
236 2012-11-21 Yao Qi <yao@codesourcery.com>
237
238 PR tdep/7438
239 * gdbarch.sh (smash_text_address): Remove.
240 * gdbarch.c, gdbarch.h: Regenerate.
241 * arm-tdep.c (arm_smash_text_address): Remove.
242 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
243 * hppa-tdep.c (hppa_smash_text_address): Remove.
244 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
245 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
246 Caller update.
247 * coffread.c (coff_symtab_read): Caller update.
248 * dbxread.c (process_one_symbol): Likewise.
249 * elfread.c (record_minimal_symbol): Likewise.
250 * somread.c (som_symtab_read): Likewise.
251
252 2012-11-20 Pierre Muller <muller@sourceware.org>
253
254 ARI fixes: sprintf rule.
255 Replace sprintf function calls for char arrays by
256 calls to xsnprintf calls.
257 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
258 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
259 (arm_neon_quad_read, arm_pseudo_read): Ditto.
260 (arm_neon_quad_write, arm_pseudo_write): Ditto.
261 * breakpoint.c (condition_completer): Ditto.
262 (create_tracepoint_from_upload): Ditto.
263 * dwarf2read.c (file_full_name): Ditto.
264 * gcore.c (gcore_command): Ditto.
265 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
266 * go32-nat.c (go32_sysinfo): Ditto.
267 * interps.c (interp_set): Ditto.
268 * m32c-tdep.c (make_types): Ditto.
269 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
270 * remote-m32r-sdi.c (m32r_open): Ditto.
271 * sol-thread.c (td_err_string): Ditto.
272 (td_state_string, solaris_pid_to_str): Ditto.
273 * symtab.c (gdb_mangle_name): Ditto.
274 * cli/cli-script.c (execute_control_command): Ditto.
275 (define_command, document_command): Ditto.
276 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
277 * tui/tui-stack.c (tui_make_status_line): Ditto.
278 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
279
280 2012-11-20 Mike Frysinger <vapier@gentoo.org>
281
282 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
283 it when looking at ptr->func.
284 * command.h (complete_on_cmdlist): Add a fourth arg.
285 * completer.c (complete_line_internal): Add local ignore_help_classes,
286 and set it to 1 when reason is not handle_help. Pass this down to
287 lookup_cmd_1 and complete_on_cmdlist.
288
289 2012-11-20 Tom Tromey <tromey@redhat.com>
290
291 * completer.c (count_struct_fields): Remove.
292 (expression_completer): Don't call count_struct_fields.
293
294 2012-11-20 Pedro Alves <palves@redhat.com>
295
296 * annotate.c (breakpoints_changed): Rename to ...
297 (annotate_breakpoints_changed): ... this.
298 (annotate_stopped, breakpoint_changed): Adjust caller.
299 * annotate.h (breakpoints_changed): Rename to ...
300 (annotate_breakpoints_changed): ... this.
301 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
302 (do_map_commands_command, init_raw_breakpoint, clear_command)
303 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
304
305 2012-11-20 David S. Miller <davem@davemloft.net>
306
307 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
308 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
309 sysconf.
310 (get_cores_used_by_process): Update comment.
311
312 2012-11-20 Yao Qi <yao@codesourcery.com>
313
314 * objfiles.c (init_entry_point_info): Remove trailing spaces.
315
316 2012-11-20 Yao Qi <yao@codesourcery.com>
317
318 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
319 to deprecated_context_hook.
320
321 2012-11-19 Yao Qi <yao@codesourcery.com>
322
323 * infrun.c (infwait_state): Add static.
324
325 2012-11-16 Keith Seitz <keiths@redhat.com>
326
327 PR c++/13615
328 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
329 parameter and pass it to lookup_symbol_file.
330 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
331 to search base classes.
332 (cp_lookup_symbol_namespace): Likewise.
333 (lookup_namespace_scope): Likewise.
334 (lookup_symbol_file): Add SEARCH parameter.
335 If SEARCH is non-zero and no symbol is found, lookup the class
336 and call cp_lookup_nested_symbol.
337 (find_symbol_in_baseclass): New function.
338 (cp_lookup_nested_symbol): Do not let
339 cp_lookup_symbol_in_namespace search through base classes.
340 Do that later when there is no global symbol match.
341
342 2012-11-16 Doug Evans <dje@google.com>
343
344 * main.c (gdb_datadir_provided): New static global.
345 (get_init_files): If --data-directory is provided,
346 and SYSTEM_GDBINIT lives in data-directory, look for it there.
347 * NEWS: Mention it.
348
349 2012-11-15 Pierre Muller <muller@sourceware.org>
350
351 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
352 * gdb_stat.h: Delete. Moved to common directory.
353 * common/gdb_stat.h: New file.
354 * gdb_wait.h: Delete. Moved to common directory.
355 * common/gdb_wait.h: New file.
356 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
357 location.
358 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
359 location.
360 (stat.h rule): Adapt to new gdb_stat.h location.
361 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
362 <sys/stat.h> header.
363 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
364 <sys/wait.h> header.
365
366 2012-11-15 Pierre Muller <muller@sourceware.org>
367
368 * configure.ac (AC_HEADER_STAT): Remove.
369 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
370 and corresponding code.
371 * configure: Regenerate.
372 * config.in: Regenerate.
373
374 2012-11-15 Pierre Muller <muller@sourceware.org>
375
376 ARI xasprintf rule fixes.
377 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
378 instead of xasprintf.
379 (open_and_init_dwp_file): Ditto.
380
381 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
382
383 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
384 target types.
385
386 2012-11-14 Tom Tromey <tromey@redhat.com>
387
388 * configure, config.in: Rebuild.
389 * configure.ac: Don't check for ctype.h, time.h.
390 * expprint.c: Don't use HAVE_CTYPE_H.
391
392 2012-11-13 Tom Tromey <tromey@redhat.com>
393
394 * gdbarch.h, gdbarch.c: Rebuild.
395 * gdbarch.sh (set_target_gdbarch): Rename from
396 deprecated_target_gdbarch_select_hack.
397 * arch-utils.c (gdbarch_update_p): Update.
398 (set_gdbarch_from_file): Update.
399
400 2012-11-14 Pierre Muller <muller@sourceware.org>
401
402 * MAINTAINERS (Responsible Maintainers/misc): Add myself
403 as responsible of contrib/ari directory.
404
405 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
406 Yao Qi <yao@codesourcery.com>
407
408 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
409 bit of EXC_RETURN.
410 (arm_m_exception_cache, arm_m_exception_this_id)
411 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
412 (arm_m_exception_unwind): New.
413 (arm_gdbarch_init): Register arm_m_exception_unwind.
414
415 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
416
417 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
418 parameter COUNT, for pattern filling of memory regions.
419 * NEWS: Mention it.
420
421 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
422
423 * disasm.h (DISASSEMBLY_FILENAME): New macro.
424 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
425 to print_source_lines ().
426 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
427 flag.
428 * source.c (print_source_lines_base): Prefix source line with
429 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
430
431 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
432
433 * symtab.h (print_source_lines_flags): New enum.
434 * source.c (print_source_lines_base): Change noerror to flags.
435 (print_source_lines): Change noerror to flags.
436
437 2012-11-13 Pierre Muller <muller@sourceware.org>
438
439 ARI fixes: Avoid sprintf function use rule.
440 * charset.c (convert_between_encodings): Use xsnprintf.
441 * cli-out.c (cli_field_int): Likewise.
442 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
443 * expprint.c (op_name_standard): Likewise.
444 * frv-tdep.c (set_variant_num_gprs): Likewise.
445 (set_variant_num_fprs): Likewise.
446 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
447 * nto-tdep.c (nto_find_and_open_solib): Likewise.
448 (nto_init_solib_absolute_prefix): Likewise.
449 * source.c (init_source_path): Likewise.
450 (print_source_lines_base): Likewise.
451 * valprint.c (print_wchar): Likewise.
452 * mi/mi-out.c (mi_field_int): Likewise.
453 windows-nat.c (windows_pid_to_exec_file): Likewise.
454 (windows_create_inferior): Likewise.
455 (_initialize_check_for_gdb_ini): Likewise.
456
457 2012-11-12 Joel Brobecker <brobecker@adacore.com>
458
459 * frame.h (deprecated_frame_register_read): Renames
460 frame_register_read.
461 * frame.c (deprecated_frame_register_read): Renames
462 frame_register_read. Update all callers.
463 * i386-tdep.c: Update all callers of frame_register_read.
464 * infcmd.c: Likewise.
465 * jit.c: Likewise.
466 * mips-tdep.c: Likewise.
467 * mt-tdep.c: Likewise.
468 * sh64-tdep.c: Likewise.
469
470 2012-11-12 Joel Brobecker <brobecker@adacore.com>
471
472 * frame.h (frame_register_read): Remove FIXME comment.
473 * frame.c (frame_register_read): Add suggestion explaining
474 which function to use in place of this one.
475
476 2012-11-12 Tom Tromey <tromey@redhat.com>
477
478 * python/python.c (start_type_printers): Initialize 'result_obj'.
479
480 2012-11-12 Tom Tromey <tromey@redhat.com>
481
482 * NEWS: Update.
483 * data-directory/Makefile.in (PYTHON_FILES): Add
484 type_printers.py.
485 * python/lib/gdb/command/type_printers.py: New file.
486 * python/lib/gdb/command/types.py (TypePrinter): New class.
487 (_get_some_type_recognizers, get_type_recognizers,
488 apply_type_recognizers, register_type_printer): New
489 functions.
490 * python/py-objfile.c (objfile_object) <type_printers>: New
491 field.
492 (objfpy_dealloc): Decref new field.
493 (objfpy_new): Set new field.
494 (objfpy_get_type_printers, objfpy_set_type_printers): New
495 functions.
496 (objfile_to_objfile_object): Set new field.
497 (objfile_getset): Add "type_printers".
498 * python/py-progspace.c (pspace_object) <type_printers>: New
499 field.
500 (pspy_dealloc): Decref new field.
501 (pspy_new): Set new field.
502 (pspy_get_type_printers, pspy_set_type_printers): New functions.
503 (pspace_to_pspace_object): Set new field.
504 (pspace_getset): Add "type_printers".
505 * python/python.c (start_type_printers, apply_type_printers,
506 free_type_printers): New functions.
507 (_initialize_python): Set gdb.type_printers.
508 * python/python.h (start_type_printers, apply_type_printers,
509 free_type_printers): Declare.
510 * typeprint.c (type_print_raw_options, default_ptype_flags):
511 Update for new fields.
512 (do_free_global_table, create_global_typedef_table,
513 find_global_typedef): New functions.
514 (find_typedef_in_hash): Use find_global_typedef.
515 (whatis_exp): Use create_global_typedef_table. Change cleanup
516 handling.
517 * typeprint.h (struct type_print_options) <global_typedefs,
518 global_printers>: New fields.
519
520 2012-11-12 Tom Tromey <tromey@redhat.com>
521
522 * c-typeprint.c (find_typedef_for_canonicalize,
523 print_name_maybe_canonical): New functions.
524 (c_print_type): Look up type name.
525 (cp_type_print_derivation_info): Add flags argument. Use
526 print_name_maybe_canonical.
527 (cp_type_print_method_args): Add wrapping.
528 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
529 (c_type_print_template_args): New function.
530 (c_type_print_base): Change wrapping. Use
531 print_name_maybe_canonical.
532 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
533 type name lookups.
534 * gdbtypes.c (types_equal): No longer static.
535 * gdbtypes.h (types_equal): Declare.
536 * typeprint.c (type_print_raw_options, default_ptype_flags):
537 Update.
538 (struct typedef_hash_table): New.
539 (hash_typedef_field, eq_typedef_field,
540 recursively_update_typedef_hash, add_template_parameters,
541 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
542 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
543 copy_typedef_hash, find_typedef_in_hash): New functions.
544 * typeprint.h (struct type_print_options) <local_typedefs>:
545 New field.
546 (recursively_update_typedef_hash, add_template_parameters,
547 create_typedef_hash, free_typedef_hash,
548 make_cleanup_free_typedef_hash, copy_typedef_hash,
549 find_typedef_in_hash): Declare.
550
551 2012-11-12 Tom Tromey <tromey@redhat.com>
552
553 * cp-support.c (inspect_type,
554 replace_typedefs_qualified_name, replace_typedefs): Add
555 finder, data arguments. Call as needed.
556 (cp_canonicalize_string_full): New function.
557 (cp_canonicalize_string_no_typedefs): Rewrite.
558 * cp-support.h (canonicalization_ftype): New typedef.
559 (cp_canonicalize_string_full): Declare.
560
561 2012-11-12 Tom Tromey <tromey@redhat.com>
562
563 * NEWS: Update.
564 * c-typeprint.c (c_type_print_base): Handle print_method and
565 print_typedefs flags.
566 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
567 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
568 options.
569 * typeprint.c (type_print_raw_options, default_ptype_flags):
570 Update for new field.s
571 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
572 (setprinttypelist, showprinttypelist, print_methods,
573 print_typedefs): New globals.
574 (set_print_type, show_print_type, set_print_type_methods,
575 show_print_type_methods, set_print_type_typedefs,
576 show_print_type_typedefs): New functions.
577 (_initialize_typeprint): Update documentation. Add "print
578 type methods" and "print type typedefs" parameters.
579 * typeprint.h (struct type_print_options) <print_methods,
580 print_typedefs>: New fields.
581
582 2012-11-12 Tom Tromey <tromey@redhat.com>
583
584 * c-typeprint.c (cp_type_print_method_args): Add flags
585 argument. Call c_print_type, not type_print.
586 (c_type_print_base): Call c_print_type, not type_print.
587 Update.
588
589 2012-11-12 Tom Tromey <tromey@redhat.com>
590
591 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
592 to type-printing functions.
593 * ada-lang.h (ada_print_type): Add argument.
594 * ada-typeprint.c (print_array_type, print_variant_clauses,
595 print_variant_part, print_selected_record_field_types,
596 print_record_field_types, print_unchecked_union_type,
597 print_func_type, ada_print_type): Add flags argument.
598 (ada_print_typedef): Update.
599 * c-exp.y (OPERATOR conversion_type_id): Update.
600 * c-lang.h (c_print_type, c_type_print_base): Update.
601 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
602 c_type_print_modifier, c_type_print_args,
603 c_type_print_varspec_suffix, c_type_print_base): Add flags
604 argument.
605 * cp-valprint.c (cp_print_class_member): Update.
606 * dwarf2read.c (dwarf2_compute_name): Update.
607 * f-lang.h (f_print_type): Add argument.
608 * f-typeprint.c (f_print_type): Add flags argument.
609 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
610 * go-lang.h (go_print_type): Add argument.
611 * go-typeprint.c (go_print_type): Add flags argument.
612 * jv-lang.h (java_print_type): Add argument.
613 * jv-typeprint.c (java_type_print_base, java_print_type): Add
614 flags argument.
615 * language.c (unk_lang_print_type): Add flags argument.
616 * language.h (struct language_defn) <la_print_type>: Add flags
617 argument.
618 (LA_PRINT_TYPE): Likewise.
619 * m2-lang.h (m2_print_type): Add argument.
620 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
621 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
622 m2_unbounded_array, m2_record_fields): Add flags argument.
623 * p-lang.h (pascal_print_type, pascal_type_print_base,
624 pascal_type_print_varspec_prefix): Add argument.
625 * p-typeprint.c (pascal_print_type,
626 pascal_type_print_varspec_prefix, pascal_print_func_args,
627 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
628 flags argument.
629 * symmisc.c (print_symbol): Update.
630 * typeprint.c (type_print_raw_options, default_ptype_flags):
631 New globals.
632 (type_print): Update.
633 * typeprint.h (struct type_print_options): New.
634 (type_print_raw_options): Declare.
635 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
636
637 2012-11-10 Keith Seitz <keiths@redhat.com>
638
639 * breakpoint.c (clear_command): Add cleanup for
640 sals.sals if an argument is given.
641
642 * linespec.c (parse_linespec): Do cleanups after
643 parsing a convenience variable.
644
645 2012-11-10 Keith Seitz <keiths@redhat.com>
646
647 PR gdb/14288
648 * c-valprint.c (c_val_print): For character arrays
649 with "print null" option on, print ellipses if
650 the output is truncated and the next character is not \000.
651 * valprint.c (MAX_WCHARS): Define.
652 (WCHAR_BUFLEN): Likewise.
653 (WCHAR_BUFLEN_MAX): Likewise.
654 (struct converted_character): New structure.
655 (count_next_character): New function.
656 (print_converted_chars_to_obstack): New function.
657 (generic_printstr): Rewrite using count_next_character
658 and print_converted_chars_to_obstack.
659
660 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
661
662 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
663 while executing the gdb command.
664 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
665 are called from prompt_for_continue.
666 * tui/tui-io.c (tui_redisplay_readline): Likewise.
667
668 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
669
670 PR tui/9584
671
672 * tui/tui.c (tui_rl_command_key): Do not call execute_command
673 but insert the command to execute in readline's buffer.
674
675 2012-11-09 Tom Tromey <tromey@redhat.com>
676
677 * gdbarch.sh (target_gdbarch): Remove macro.
678 (get_target_gdbarch): Rename to target_gdbarch.
679 * gdbarch.c, gdbarch.h: Rebuild.
680 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
681 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
682 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
683 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
684 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
685 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
686 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
687 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
688 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
689 procfs.c, progspace.c, ravenscar-thread.c, record.c,
690 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
691 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
692 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
693 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
694 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
695 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
696 target-descriptions.c, target.c, target.h, tracepoint.c,
697 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
698 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
699 python/py-inferior.c, python/python.c: Update.
700
701 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
702
703 * source.c (print_source_lines_base): Add fullname field giving
704 full path to file in mi output.
705 * NEWS: Mention the new fullname field.
706
707 2012-11-09 Yao Qi <yao@codesourcery.com>
708
709 * NEWS: Mention the fix to the ambiguity of 'fo' command.
710
711 2012-11-09 Pedro Alves <palves@redhat.com>
712
713 PR gdb/14306
714
715 * infrun.c: Include target-descriptions.h.
716 (follow_exec): Fetch new target description.
717
718 2012-11-09 Yao Qi <yao@codesourcery.com>
719
720 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
721 0x8d (lea).
722
723 2012-11-09 Yao Qi <yao@codesourcery.com>
724
725 * breakpoint.c: Declare set_tracepoint_count.
726 (install_breakpoint): Call set_tracepoint_count if B is a
727 tracepoint.
728 (trace_command): Don't call set_tracepoint_count. Re-indent.
729 (strace_command, ftrace_command):
730 (create_tracepoint_from_upload): Likewise.
731
732 2012-11-09 Pedro Alves <palves@redhat.com>
733
734 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
735 (get_target_gdbarch) <gdbarch.h>: New function.
736 (startup_gdbarch) <gdbarch.h>: Declare.
737 <gdbarch.c> (target_gdbarch): Delete.
738 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
739 current inferior's gdbarch.
740 <gdbarch.c> (get_target_gdbarch): New function.
741 * inferior.c: Include target-descriptions.h.
742 (free_inferior): Free target description info.
743 (add_inferior_with_spaces): Set the inferior's initial
744 architecture.
745 (clone_inferior_command): Copy the original inferior's target
746 description if it was user specified.
747 (initialize_inferiors): Add comment.
748 * inferior.h (struct target_desc_info): Forward declare.
749 (struct inferior) <gdbarch>: New field.
750 * linux-nat.c: Include target-descriptions.h.
751 (linux_child_follow_fork): Copy the parent's architecture and
752 target description to the child.
753 * target-descriptions.c: Include inferior.h.
754 (struct target_desc_info): New structure, holding the equivalents
755 of ...
756 (target_desc_fetched, current_target_desc)
757 (target_description_filename): ... these removed globals.
758 (get_tdesc_info, target_desc_info_from_user_p)
759 (copy_inferior_target_desc_info, target_desc_info_free): New.
760 (target_desc_fetched, current_target_desc)
761 (target_description_filename): Reimplemented as convenience
762 macros.
763 (tdesc_filename_cmd_string): New global.
764 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
765 tdescs filename ..." commands to the per-inferior equivalent.
766 (show_tdesc_filename_cmd): Get the value to show from the
767 per-inferior description filename.
768 (_initilize_target_descriptions): Change the "set/show tdesc
769 filename" commands' variable.
770 * target-descriptions.h (struct target_desc, struct target_desc_info)
771 (struct inferior): Forward declare.
772 (target_find_description, target_clear_description)
773 (target_current_description): Adjust comments.
774 (copy_inferior_target_desc_info, target_desc_info_free)
775 (target_desc_info_from_user_p). Declare.
776
777 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
778
779 * tui/tui-hooks.c (tui_about_to_proceed): New function.
780 (tui_target_wait_hook): Remove.
781 (tui_install_hooks): Install the about_to_proceed observer.
782 (tui_remove_hooks): And remove it here.
783
784 2012-11-08 Tom Tromey <tromey@redhat.com>
785
786 * linux-tdep.c (linux_make_siginfo_note): New function.
787 (linux_make_corefile_notes): Use it.
788 * corelow.c (get_core_siginfo): New function.
789 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
790
791 2012-11-08 Tom Tromey <tromey@redhat.com>
792
793 PR gdb/14704:
794 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
795 (zlib_decompress_section): Remove.
796 (gdb_bfd_map_section): Only check for compressed section
797 in mmap case. Use bfd_get_full_section_contents.
798 * osabi.c (check_note): Add 'sectsize' argument. Read
799 section data.
800 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
801 section data. Update for check_note change.
802 * xcoffread.c (xcoff_initial_scan): Use
803 bfd_get_full_section_contents.
804 * py-auto-load.c (auto_load_section_scripts): Use
805 bfd_get_full_section_contents.
806 * contrib/cc-with-tweaks.sh: Add -Z option.
807
808 2012-11-08 Tom Tromey <tromey@redhat.com>
809
810 * python/py-bpevent.c: Include defs.h.
811 * python/py-continueevent.c: Include defs.h.
812 * python/py-event.c: Include defs.h.
813 * python/py-event.h: Don't include defs.h.
814 * python/py-events.h: Don't include defs.h.
815 * python/py-evts.c: Include defs.h.
816 * python/py-exitedevent.c: Include defs.h.
817 * python/py-newobjfileevent.c: Include defs.h.
818 * python/py-signalevent.c: Include defs.h.
819 * python/py-stopevent.c: Include defs.h.
820 * python/py-threadevent.c: Include defs.h.
821
822 2012-11-08 Pierre Muller <muller@sourceware.org>
823
824 * update-web-ari.sh (print_heading): Add number of files
825 checked.
826 (nb_files): New variable counting the number of sources
827 files found by gdb_find.sh script.
828 (debug_awk): New variable to allow extra debug output.
829 (indexes): Add more information if DEBUG_AWK is set.
830
831 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
832
833 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
834 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
835 following the change in PLT call stubs on linker.
836
837 2012-11-08 Pierre Muller <muller@sourceware.org>
838
839 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
840 as default language.
841 (AWK): Use = instead of == for sh test to avoid warning.
842 (Linux rule): Correct [:digit] into [[:digit:]].
843 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
844 (vasprintf rule): Adapt to common subdirectory moves.
845 (xasprintf rule): Idem.
846 (xvasprintf rule): Idem.
847 (var_boolean rule): Accept occurence in == or != test.
848
849 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
850
851 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
852
853 * tui/tui-hooks.c (tui_inferior_exit): New function.
854 (tui_detach_hook): Remove.
855 (tui_install_hooks): Install the inferior exit observer.
856 (tui_remove_hooks): Remove it.
857
858 2012-11-08 Yao Qi <yao@codesourcery.com>
859
860 PR gdb/14777.
861 * source.c (_initialize_source): Call add_com_alias to abbreviate
862 'forward-search' as 'fo'.
863
864 2012-11-07 Pedro Alves <palves@redhat.com>
865
866 * arm-tdep.c: Make defs.h be the first include.
867 * coff-pe-read.c: Ditto.
868 * gnu-nat.c: Ditto.
869 * go32-nat.c: Ditto.
870 * i386-nat.c: Ditto.
871 * ppcnbsd-nat.c: Ditto.
872 * ada-varobj.h: Don't include defs.h.
873 * i386-darwin-tdep.h: Ditto.
874 * i386-nat.h: Ditto.
875
876 2012-11-07 Pedro Alves <palves@redhat.com>
877
878 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
879 Committee.
880
881 2012-11-07 Pierre Muller <muller@sourceware.org>
882
883 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
884 File already uses "gdb_dirent.h" header.
885
886 2012-11-07 Yao Qi <yao@codesourcery.com>
887
888 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
889 tracepoint_count'.
890
891 2012-11-06 Tom Tromey <tromey@redhat.com>
892
893 * target.h (inferior_has_forked, inferior_has_vforked)
894 (inferior_has_execd, inferior_has_called_syscall): Remove
895 declarations.
896
897 2012-11-06 Pierre Muller <muller@sourceware.org>
898
899 * remote.c (remote_insert_hw_breakpoint): ARI fix,
900 add missing internalization markup.
901
902 2012-11-06 Pedro Alves <palves@redhat.com>
903
904 PR gdb/14810
905
906 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
907
908 2012-11-06 Pierre Muller <muller@sourceware.org>
909
910 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
911 is not executable.
912
913 2012-11-05 Joel Brobecker <brobecker@adacore.com>
914
915 * gnulib/update-gnulib.sh: New script.
916
917 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
918
919 * MAINTAINERS: Update my email address.
920
921 2012-11-05 Tom Tromey <tromey@redhat.com>
922
923 * frame.c (put_frame_register): Don't use temporary buffer.
924
925 2012-11-05 Pedro Alves <palves@redhat.com>
926
927 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
928 child. Clear 'pending_detach'.
929 * infrun.c (handle_vfork_child_exec_or_exit): Clear
930 'pending_detach' in the vfork parent.
931
932 2012-11-05 Doug Evans <dje@google.com>
933
934 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
935 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
936 * dwarf2read.c: #include "elf-bfd.h".
937 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
938 (dwop_section_names): Renamed from dwo_section names. All uses
939 updated. Add entries for .debug_cu_index, .debug_tu_index.
940 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
941 All uses updated.
942 (struct dwp_sections): New type.
943 (struct virtual_dwo_sections): New type.
944 (struct dwp_hash_table): New type.
945 (struct dwp_file): New type.
946 (init_cutu_and_read_dies): Ensure DWO info/types section has been
947 read in. Handle DWOs coming from DWP files.
948 (lookup_dwo_file_slot): New function.
949 (dwarf2_locate_dwo_sections): Move definition closer to use.
950 (create_dwo_debug_info_hash_table_reader): Renamed from
951 create_debug_info_hash_table_reader. All callers updated.
952 (create_dwo_debug_info_hash_table): Renamed from
953 create_debug_info_hash_table. All callers updated.
954 (create_dwp_hash_table): New function.
955 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
956 (lookup_dwo_in_dwp): New function.
957 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
958 is_dwp. All callers updated.
959 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
960 (open_and_init_dwo_file): Renamed from init_dwo_file.
961 All callers updated.
962 (lookup_dwo_file): Delete.
963 (dwarf2_locate_dwp_sections): New function.
964 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
965 (allocate_dwp_loaded_cutus_table): New function.
966 (open_and_init_dwp_file): New function.
967 (lookup_dwo_cutu): New function.
968 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
969
970 2012-11-03 Yao Qi <yao@codesourcery.com>
971
972 Fix PR gdb/14617.
973 * breakpoint.c (trace_pass_set_count): Call
974 observer_notify_breakpoint_modified instead of
975 observer_notify_tracepoint_modified.
976 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
977
978 2012-11-02 Tom Tromey <tromey@redhat.com>
979
980 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
981 argument to complete_on_enum.
982
983 2012-11-02 Tom Tromey <tromey@redhat.com>
984
985 * configure: Rebuild.
986 * configure.ac (build_warnings): Add -Wempty-body.
987 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
988 * remote.c (handle_notification): Use braces for empty 'else' body.
989 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
990 'else' body.
991 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
992 'else' body.
993 * solib-som.c (som_relocate_section_addresses): Use braces
994 for empty 'else' body.
995 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
996 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
997
998 2012-11-02 Pedro Alves <palves@redhat.com>
999
1000 PR gdb/14766
1001
1002 * infrun.c (handle_inferior_event)
1003 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1004 null_ptid before handling a vfork child exec or exit. Switch to
1005 the event ptid afterwards.
1006
1007 2012-11-02 Yao Qi <yao@codesourcery.com>
1008
1009 * std-operator.def: Remove OP_LABELED.
1010 * eval.c: Remove the declaration of 'get_label'.
1011 (get_label): Remove.
1012 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1013 Update comment.
1014 Remove local variable 'variantno' and related code.
1015 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1016 with 'fieldno'.
1017 * expprint.c (print_subexp_standard): Likewise.
1018 (dump_subexp_body_standard): Likewise.
1019 * parse.c (operator_length_standard): Likewise.
1020
1021 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1022
1023 Incorporate ARI web page generator into GDB sources.
1024 * contrib/ari/create-web-ari-in-src.sh: New file.
1025 * contrib/ari/gdb_ari.sh: New file.
1026 * contrib/ari/gdb_find.sh: New file.
1027 * contrib/ari/update-web-ari.sh: New file.
1028
1029 2012-10-31 Tom Tromey <tromey@redhat.com>
1030
1031 * gdbarch.c: Rebuild.
1032 * gdbarch.sh: Remove references to gdbarch_swap.
1033 * corelow.c (core_open): Remove obsolete comment.
1034
1035 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1036
1037 PR cli/14772
1038 * c-typeprint.c (c_print_type): Don't print a space for vector
1039 types, this is handled within the suffix.
1040 (c_type_print_varspec_suffix): Add a space to vector suffix.
1041
1042 2012-10-26 Pedro Alves <palves@redhat.com>
1043
1044 * amd64-tdep.c (amd64_relocate_instruction): Use
1045 store_unsigned_integer instead of memcpy.
1046 * i386-tdep.c (i386_relocate_instruction): Ditto.
1047
1048 2012-10-26 Pedro Alves <palves@redhat.com>
1049
1050 * infrun.c (handle_inferior_event): Merge handling of
1051 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1052 switch case.
1053
1054 2012-10-26 Pedro Alves <palves@redhat.com>
1055
1056 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1057 Remove comment.
1058
1059 2012-10-26 Pedro Alves <palves@redhat.com>
1060
1061 * target.c (target_waitstatus_to_string): Handle
1062 TARGET_WAITKIND_VFORK_DONE.
1063
1064 2012-10-26 Pedro Alves <palves@redhat.com>
1065
1066 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1067 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1068
1069 2012-10-24 Tristan Gingold <gingold@adacore.com>
1070
1071 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1072 Add comments.
1073
1074 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1075
1076 * ravenscar-thread.c (ravenscar_wait): Only update the list
1077 of threads and inferior_ptid if the inferior is still alive.
1078
1079 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1080
1081 * ada-lang.c (is_known_support_routine): Use lbasename when
1082 matching the symtab's filename against
1083 known_runtime_file_name_patterns.
1084
1085 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1086
1087 * ada-lang.c (ada_same_array_size_p): New function.
1088 (ada_promote_array_of_integrals): New function.
1089 (coerce_for_assign): Add handling of arrays where the elements
1090 are integrals of a smaller size than the size of the target
1091 array element type.
1092
1093 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1094
1095 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1096 against maximum exponent value.
1097
1098 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1099
1100 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1101 "unwind-seh.c".
1102
1103 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1104
1105 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1106 strip typedef layer when computing the fixed type's field type,
1107 only when computing its size.
1108
1109 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1110
1111 PR gdb/12783
1112 * i386-tdep.c (i386_return_value): Handle complex double and long
1113 double.
1114
1115 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1116
1117 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1118 New local variable args_len.
1119 Quote the name of the executable when computing the command line.
1120
1121 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1122
1123 PR gdb/12796
1124 PR gdb/12798
1125 PR gdb/12800
1126 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1127 AMD64_FTAG_REGNUM.
1128 * amd64-tdep.c (amd64_classify): Classify complex types.
1129 (amd64_return_value): Handle the COMPLEX_X87 class.
1130
1131 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1132
1133 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1134 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1135
1136 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1137
1138 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1139 function.
1140 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1141 to amd64_windows_auto_wide_charset.
1142
1143 2012-10-23 Yao Qi <yao@codesourcery.com>
1144
1145 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1146 * event-top.h: Remove its declaration.
1147 (async_request_quit): Call mark_async_signal_handler instead of
1148 mark_async_signal_handler_wrapper.
1149 (async_do_nothing, async_disconnect): Likewise.
1150 (async_stop_sig): Likewise.
1151 * remote.c (handle_remote_sigint): Likewise.
1152 (handle_remote_sigint_twice): Likewise.
1153
1154 2012-10-23 Yao Qi <yao@codesourcery.com>
1155
1156 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1157 with 'static struct async_signal_handler *'.
1158 (sighup_token, sigquit_token, sigstp_token): Likewise.
1159
1160 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1161
1162 * gdbarch.sh (function_list): Use 'pstring' when printing
1163 a variable which could return NULL.
1164 * gdbarch.c: Regenerate.
1165
1166 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1167 Tom Tromey <tromey@redhat.com>
1168
1169 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1170 inneffective if condition by gdb assertion. Add function
1171 description comment.
1172
1173 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1174
1175 * parser-defs.h (struct exp_descriptor): Document constraint
1176 on return value for "op_name" callbacks.
1177
1178 2012-10-18 Tom Tromey <tromey@redhat.com>
1179
1180 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1181 * symtab.c (iterate_over_some_symtabs): Constify.
1182 * source.h (symtab_to_fullname): Return 'const char *'.
1183 * source.c (symtab_to_fullname): Return 'const char *'.
1184 * python/py-symtab.c (stpy_fullname): Constify.
1185 * cli/cli-cmds.c (edit_command): Constify.
1186 * breakpoint.c (print_breakpoint_location)
1187 (update_static_tracepoint): Constify.
1188
1189 2012-10-18 Tom Tromey <tromey@redhat.com>
1190
1191 * breakpoint.c (compare_breakpoints): Fix comparison.
1192
1193 2012-10-18 Tom Tromey <tromey@redhat.com>
1194
1195 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1196 gdb_wchar_t to convert_between_encodings.
1197
1198 2012-10-17 Yao Qi <yao@codesourcery.com>
1199
1200 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1201 more parameter 'inferior'.
1202 * corefile.c (write_memory_with_notification): Caller update.
1203
1204 * mi/mi-cmd-var.c: Include "mi-main.h".
1205 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1206 to 1 and restore it later.
1207 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1208 and "data-write-memory-bytes.
1209 * mi/mi-interp.c: Include objfiles.h.
1210 (mi_interpreter_init): Call observer_attach_memory_changed.
1211 (mi_memory_changed): New.
1212 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1213 New field.
1214
1215 * NEWS: Mention new MI notification "memory-changed".
1216
1217 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1220
1221 2012-10-15 Doug Evans <dje@google.com>
1222
1223 New option -nh: inhibit loading of ~/.gdbinit.
1224 * NEWS: Mention -nh.
1225 * main.c (captured_main): Recognize and process -nh.
1226 (print_gdb_help): Mention -nh.
1227 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1228
1229 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 PR backtrace/14646
1232 PR gdb/14647
1233 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1234 pc_regnum_from_eax.
1235 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1236 nor pc_regnum_from_eax.
1237 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1238 nor pc_regnum_from_eax.
1239
1240 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 Fix entry values resolving in inlined frames.
1243 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1244 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1245 entries of FRAME.
1246
1247 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1248
1249 * configure.ac: Build with -DMS_WIN64 if building with Python
1250 enabled using GCC on amd64-windows.
1251 * configure: Regenerate.
1252
1253 2012-10-15 Tom Tromey <tromey@redhat.com>
1254
1255 PR python/14635:
1256 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1257 to Py_None.
1258
1259 2012-10-15 Tom Tromey <tromey@redhat.com>
1260
1261 PR python/14634:
1262 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1263
1264 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1265
1266 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1267 reset thread numbering back to 1.
1268
1269 2012-10-11 Doug Evans <dje@google.com>
1270
1271 PR breakpoints/14643.
1272 * linespec.c (struct ls_parser): New member keyword_ok.
1273 (linespec_lexer_lex_string): Add comment.
1274 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1275 for one.
1276 (parse_linespec): Set keyword_ok.
1277
1278 2012-10-10 Doug Evans <dje@google.com>
1279
1280 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1281 "0x" prefix on address in log message.
1282
1283 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1284 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1285 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1286 (lookup_dwo_file): Add const to dwo_name parameter.
1287 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1288
1289 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1290
1291 Fix crash during stepping on ppc32.
1292 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1293 SYM.
1294
1295 2012-10-03 Doug Evans <dje@google.com>
1296
1297 PR symtab/14601
1298 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1299
1300 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1301
1302 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1303 output and use uint32_t not long to ensure 4 byte size.
1304
1305 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1306
1307 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1308 unref'ed it.
1309
1310 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1311
1312 * target.c (simple_search_memory): Include access length in
1313 warning message.
1314
1315 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1316 Edjunior Machado <emachado@linux.vnet.ibm.com>
1317
1318 PR gdb/13989
1319 * solib.c (solib_find): Prevent GDB from loading native libraries when
1320 debugging a cross-target corefile.
1321
1322 2012-09-28 selven <pcthegreat@gmail.com>
1323
1324 Make definition match declaration.
1325
1326 * regcache.c (regcache_register_status): Change return type to
1327 enum register_status.
1328
1329 2012-09-28 Yao Qi <yao@codesourcery.com>
1330
1331 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1332 write_memory_with_notification instead of write_memory.
1333 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1334 instead of target_write_memory.
1335
1336 2012-09-28 Yao Qi <yao@codesourcery.com>
1337
1338 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1339 when the length of content is not an even number.
1340
1341 2012-09-27 Tom Tromey <tromey@redhat.com>
1342
1343 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1344 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1345
1346 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1347
1348 * sol-thread.c (sol_thread_fetch_registers)
1349 (sol_thread_store_registers): Delete commented out code.
1350
1351 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1352
1353 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1354 Move these functions to sparc-sol-thread.c.
1355 * sparc-sol-thread.c: New file.
1356 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1357 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1358 configurations.
1359 * configure: Regenerate.
1360
1361 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1362
1363 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1364 Remove commented-out code.
1365
1366 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1367
1368 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1369 Enable this code for sparc hosts only.
1370
1371 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1372
1373 * procfs.h (procfs_find_LDT_entry): Add declaration.
1374 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1375 function procfs_find_LDT_entry.
1376
1377 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1378
1379 * procfs.c (proc_get_LDT_entry): Make static.
1380
1381 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1382
1383 * procfs.c (proc_find_memory_regions): Fix declaration.
1384
1385 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1386
1387 * amd64-tdep.c (amd64_return_value): Revert previous change
1388 that used TYPE_LENGTH directly.
1389 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1390 (bfin_store_return_value): Likewise.
1391 * cris-tdep.c (cris_store_return_value): Likewise.
1392 (cris_extract_return_value): Likewise.
1393 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1394 * hppa-tdep.c (hppa64_return_value): Likewise.
1395 * lm32-tdep.c (lm32_store_return_value): Likewise.
1396 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1397 * spu-tdep.c (spu_value_from_register): Likewise.
1398 * vax-tdep.c (vax_return_value): Likewise.
1399
1400 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1401
1402 * gdbtypes.c (lookup_array_range_type): Expand parameters
1403 LOW_BOUND and HIGH_BOUND to LONGEST.
1404 (lookup_string_range_type): Likewise.
1405 * gdbtypes.h (lookup_array_range_type): Likewise.
1406 (lookup_string_range_type): Likewise.
1407 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1408 Expand HIGHBOUND to ssize_t.
1409 (value_string): Likewise.
1410 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1411 (value_string): Likewise.
1412
1413 2012-09-27 Yao Qi <yao@codesourcery.com>
1414
1415 PR breakpoints/13898
1416 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1417 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1418 per breakpoint type.
1419
1420 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1421
1422 * procfs.c: Add gdb_bfd header.
1423 * rs6000-nat.c: Likewise.
1424 * solib-pa64.c: Likewise.
1425 * spu-linux-nat.c: Likewise.
1426 * windows-nat.c: Likewise.
1427
1428 2012-09-26 Tom Tromey <tromey@redhat.com>
1429
1430 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1431
1432 2012-09-26 Tom Tromey <tromey@redhat.com>
1433
1434 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1435 (read_common_block): Handle child DIEs with
1436 DW_AT_data_member_location.
1437 (new_symbol_full): Add special case for common blocks.
1438
1439 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 Tom Tromey <tromey@redhat.com>
1441
1442 * dwarf2read.c (read_common_block): Rewrite.
1443 (new_symbol_full): Handle DW_TAG_common_block.
1444 * f-lang.c (head_common_list, find_common_for_function):
1445 Remove.
1446 * f-lang.h (struct common_entry, struct saved_f77_common,
1447 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1448 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1449 BLANK_COMMON_NAME_LOCAL): Remove.
1450 (struct common_block): New.
1451 * f-valprint.c (list_all_visible_commons): Remove.
1452 (info_common_command_for_block): New function.
1453 (info_common_command): Use it.
1454 * stack.c (iterate_over_block_locals): Special case for
1455 COMMON_BLOCK_DOMAIN.
1456 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1457 constant.
1458 (struct general_symbol_info) <value.common_block>: New field.
1459 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1460
1461 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1462 Tom Tromey <tromey@redhat.com>
1463
1464 * f-lang.c (allocate_saved_bf_node,
1465 allocate_saved_function_node, allocate_saved_f77_common_node,
1466 allocate_common_entry_node, tail_common_list, current_common,
1467 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1468 tmp_bf_ptr, add_common_block, add_common_entry,
1469 find_first_common_named, patch_common_entries,
1470 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1471 global_remote_debug, get_bf_for_fcn, saved_function_list,
1472 saved_function_list_end, clear_function_list, struct saved_fcn,
1473 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1474 SAVED_BF, SAVED_BF_PTR): Remove.
1475 * f-lang.h (tail_common_list, current_common,
1476 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1477 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1478 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1479 real_main_c_value): Remove.
1480 * f-valprint.c (there_is_a_visible_common_named): Remove.
1481
1482 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1483
1484 * breakpoint.c (update_global_location_list): Ignore previous
1485 duplicate status of a breakpoint when starting a new scan for
1486 duplicate breakpoints.
1487
1488 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1489 PR breakpoints/14419
1490 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1491 support LLVM compiler.
1492
1493 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1494
1495 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1496 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1497 (bfin_store_return_value): Likewise.
1498 * cris-tdep.c (cris_store_return_value): Likewise.
1499 (cris_extract_return_value): Likewise.
1500 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1501 * hppa-tdep.c (hppa64_return_value): Likewise.
1502 * lm32-tdep.c (lm32_store_return_value): Likewise.
1503 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1504 * spu-tdep.c (spu_value_from_register): Likewise.
1505 * vax-tdep.c (vax_return_value): Likewise.
1506
1507 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1508
1509 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1510 parameter LEN to ssize_t.
1511
1512 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1513
1514 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1515 variable LEN.
1516 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1517 directly.
1518 (alpha_store_return_value): Likewise.
1519 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1520 (amd64_push_arguments): Likewise.
1521 * ax-gdb.c (gen_trace_static_fields): Likewise.
1522 (gen_traced_pop): Likewise.
1523 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1524 * breakpoint.c (update_watchpoint): Likewise.
1525 * findcmd.c (parse_find_args): Use local variable for type
1526 instead of length.
1527 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1528 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1529 (h8300_store_return_value): Likewise.
1530 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1531 Use i386_darwin_arg_type_alignment directly.
1532 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1533 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1534 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1535 (m68hc11_extract_return_value): Likewise.
1536 * mep-tdep.c (mep_push_dummy_call): Likewise.
1537 * printcmd.c (float_type_from_length): Likewise.
1538 * s390-tdep.c (s390_value_from_register): Likewise.
1539 * stack.c (read_frame_arg): Likewise.
1540 * tracepoint.c (encode_actions_1): Likewise.
1541 * valops.c (value_fetch_lazy): Use local variable for type
1542 instead of length. Use TYPE_LENGTH directly.
1543 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1544
1545 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1546
1547 * symtab.c (skip_prologue_sal): Fix typo in comment.
1548
1549 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1550
1551 * linespec.c (create_sals_line_offset): Fix typo in comment.
1552
1553 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1554
1555 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1556 use plongest to print the array size.
1557
1558 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1559
1560 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1561 * p-valprint.c (pascal_type_print_base): Likewise.
1562
1563 2012-09-22 Yao Qi <yao@codesourcery.com>
1564
1565 * remote.c (remote_get_trace_status): Remove setting default
1566 values of fields of 'ts'.
1567
1568 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1569
1570 Fix internal error on canonicalization of clang types.
1571 * cp-name-parser.y (operator): New comment at make_operator call for
1572 new, delete, new[] and delete[].
1573 (exp): Use "sizeof ". Add new comment at make_operator call.
1574
1575 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1576
1577 Fix disassemble without parameters in tailcall frame.
1578 * cli/cli-cmds.c (disassemble_current_function): Use
1579 get_frame_address_in_block.
1580
1581 2012-09-21 Tom Tromey <tromey@redhat.com>
1582
1583 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1584 TYPE_CODE_UNION>: Unify, removing a goto.
1585
1586 2012-09-21 Tom Tromey <tromey@redhat.com>
1587
1588 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1589
1590 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1591
1592 * findvar.c (read_frame_register_value): Mark the result value as
1593 optimized out if any of the input registers have been optimized out.
1594
1595 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1596
1597 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1598
1599 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1600
1601 * eval.c (evaluate_subexp_standard): Eliminate single-use
1602 variable LOWER.
1603
1604 2012-09-21 Yao Qi <yao@codesourcery.com>
1605
1606 * mi/mi-interp.c: Declare mi_record_changed.
1607 (mi_interpreter_init): Call observer_attach_record_changed.
1608 (mi_record_changed): New.
1609 * record.c (record_open): Call observer_notify_record_changed.
1610 (cmd_record_stop): Call observer_notify_record_changed.
1611 * NEWS: Mention it.
1612
1613 2012-09-20 Tom Tromey <tromey@redhat.com>
1614
1615 * NEWS: Update.
1616 * python/python.c (finalize_python): New function.
1617 (_initialize_python): Make a final cleanup.
1618
1619 2012-09-19 Doug Evans <dje@google.com>
1620
1621 * buildsym.h (param_symbols): Delete, unused.
1622 (context_stack): Delete member "params", unused.
1623 * buildsym.c (push_context): Update.
1624 * dwarf2read.c (read_func_scope): Update.
1625
1626 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1627
1628 * sh-tdep.c (sh_register_convert_to_virtual)
1629 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1630 all callers. Just do a memcpy if not the little-endian case.
1631
1632 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1633 set_gdbarch_double_format and set_gdbarch_long_double_format.
1634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1635 set_gdbarch_double_format.
1636 * sh-tdep.c (sh_gdbarch_init): Likewise.
1637
1638 * NEWS: Document the removal of SH's 'regs' command.
1639 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1640 command.
1641
1642 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1643
1644 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1645 `jump'.
1646
1647 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1648
1649 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1650 language when iterating over symbols.
1651
1652 2012-09-18 Yao Qi <yao@codesourcery.com>
1653
1654 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1655 (mi_interpreter_init): Call observer_attach_tsv_created and
1656 observer_attach_tsv_deleted.
1657 (mi_tsv_created, mi_tsv_deleted): New.
1658 * tracepoint.c (delete_trace_state_variable): Call
1659 observer_notify_tsv_deleted.
1660 (trace_variable_command): Call observer_notify_tsv_created.
1661 (delete_trace_variable_command): Call
1662 observer_notify_tsv_deleted.
1663 (create_tsv_from_upload): Call observer_notify_tsv_created.
1664 * NEWS: Mention it.
1665
1666 2012-09-18 Yao Qi <yao@codesourcery.com>
1667
1668 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1669 if traceframe changed.
1670 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1671 "trace-find".
1672 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1673 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1674 'traceframe_changed'.
1675 (mi_traceframe_changed): New.
1676 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1677 New field.
1678 * NEWS: Mention the new MI notification.
1679
1680 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1681
1682 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1683
1684 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1685
1686 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1687 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1688 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1689 Extend code also for PaX support. Convert all gdb_assert to warning
1690 calls.
1691
1692 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1693
1694 Implement auto-load user conveniences suggested by Doug Evans.
1695 * auto-load.c: Include top.h.
1696 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1697 (_initialize_auto_load): New variable scripts_directory_help. Mention
1698 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1699 scripts-directory. Document in online help one can use also files for
1700 set auto-load safe-path.
1701 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1702 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1703
1704 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1705
1706 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1707 of LEN.
1708
1709 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1710
1711 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1712 ELTLEN and use TYPE_LENGTH directly.
1713 (m2_val_print): Likewise.
1714 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1715 variable LEN and use TYPE_LENGTH directly.
1716 (m68k_svr4_store_return_value): Likewise.
1717 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1718 ARGLEN and use TYPE_LENGTH directly.
1719 (mips_o64_push_dummy_call): Likewise.
1720 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1721 variable LENGTH and use TYPE_LENGTH directly.
1722 (s390_function_arg_float): Likewise.
1723 (s390_function_arg_integer): Likewise.
1724 (s390_push_dummy_call): Likewise.
1725 (s390_return_value_convention): Likewise.
1726 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1727 TYPE_LENGTH directly.
1728
1729 2012-09-17 Yao Qi <yao@codesourcery.com>
1730
1731 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1732 Update comment to add_setshow_integer_cmd.
1733 * cli/cli-setshow.c (do_set_command): Handle case
1734 'var_zuinteger_unlimited'.
1735 (do_show_command): Likewise.
1736 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1737 for command 'remotetimeout'.
1738 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1739 to var_integer.
1740 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1741 for command 'set listsize'.
1742
1743 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1744
1745 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1746 variable LEN.
1747
1748 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 PR 14119
1751 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1752 (frame_pop): Drop also TAILCALL_FRAME frames.
1753 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1754
1755 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1756 Pedro Alves <palves@redhat.com>
1757
1758 PR 14548
1759 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1760 function start if we are already at function start. Both for
1761 reverse-next and for reverse-step into function without line number
1762 info.
1763
1764 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 Code cleanup - rename 'inline' depth to 'artificial' depth.
1767 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1768 frame_id_artificial_p, extend the comment.
1769 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1770 * frame.c (fprint_frame_id): Rename at a user, change debug output
1771 text to "artificial=".
1772 (skip_inlined_frames): Rename to ...
1773 (skip_artificial_frames): ... here. Extend the comment.
1774 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1775 (frame_id_inlined_p): Rename to ...
1776 (frame_id_artificial_p): ... here. Rename at a user.
1777 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1778 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1779 at a user.
1780 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1781 Extend the comment.
1782 (frame_id_inlined_p): Rename to ...
1783 (frame_id_artificial_p): ... here.
1784 * inline-frame.c (inline_frame_this_id): Rename at a user.
1785
1786 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1787
1788 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1789 vector variables using vector_size syntax rather than array
1790 syntax.
1791
1792 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1793
1794 * valarith.c (value_concat): Replace unsafe ALLOCA with
1795 XMALLOC/XFREE.
1796
1797 2012-09-14 Pedro Alves <palves@redhat.com>
1798
1799 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1800
1801 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1802
1803 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1804 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1805 data-directory as appropriate.
1806
1807 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1808
1809 * printcmd.c (ui_printf): Eliminate single-use variable
1810 PARAM_LEN.
1811
1812 2012-09-14 Yao Qi <yao@codesourcery.com>
1813 Pedro Alves <palves@redhat.com>
1814
1815 * valops.c (value_assign): Move observer_notify_target_changed
1816 below to replace reinit_frame_cache.
1817
1818 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1819
1820 Refactor Python "gdb" module into a proper Python package, by
1821 introducing a new "_gdb" module for code implemented in C, and
1822 using reload/__import__ instead of exec.
1823 * python/lib/gdb/__init__.py: Import * from _gdb.
1824 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1825 prompt_hook, sys.argv): Moved from finish_python_initialization.
1826 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1827 (packages, auto_load_packages): New list and function replacing
1828 module_dict and auto-loading code, using __file__ instead of
1829 gdb.PYTHONDIR and reload/__import__ instead of exec.
1830 (GdbSetPythonDirectory): Replacing function of the same name
1831 from finish_python_initialization, using reload/__import__ instead
1832 of exec, as well as call auto_load_packages.
1833 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1834 gdb_python_module and not gdb_module.
1835 * python/python-internal.h (gdb_python_module): Declare.
1836 * python/python.c (gdb_python_module): New global.
1837 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1838 (_initialize_python): Rename gdb module to _gdb.
1839 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1840 (finish_python_initialization): Move Python code to
1841 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1842 __main__.
1843
1844 2012-09-13 Pedro Alves <palves@redhat.com>
1845
1846 * Makefile.in (COMMON_OBS): Add registry.o.
1847 * registry.c: New file.
1848 * registry.h (struct registry_container): Declare.
1849 (registry_data_callback): New typedef.
1850 (struct registry_data, struct registry_data_registration, struct
1851 registry_data_registry): New type.
1852 (register_data_with_cleanup, registry_alloc_data)
1853 (registry_callback_adaptor, registry_clear_data)
1854 (registry_container_free_data, registry_set_data, registry_data):
1855 Declare.
1856 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1857 the new common structures and functions.
1858 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1859 callback typedefs.
1860
1861 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1862
1863 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1864 there is an error inserting hardware breakpoints and use the
1865 error message from the target.
1866
1867 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1868 Catch this exception and print the error message contained within. Do not
1869 print the default hardware error breakpoint message in this case.
1870
1871 2012-09-12 Doug Evans <dje@google.com>
1872
1873 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1874 cu == NULL.
1875
1876 2012-09-11 Doug Evans <dje@google.com>
1877
1878 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1879 .gdb_index symbol attributes if there are none.
1880
1881 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1882
1883 * symtab.h (struct minimal_symbol) [has_size]: New field.
1884 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1885 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1886 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1887 minimal symbols if the symbol's size is actually known.
1888 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1889 of msymbol's size field. Add comment.
1890 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1891 SET_MSYMBOL_SIZE to set the minimal symbol size.
1892
1893 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1894
1895 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1896 minimal_symbol struct object, rather than setting some of its
1897 fields one by one.
1898
1899 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1900
1901 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1902 passed_a_ptr flag when displaying typedef types.
1903
1904 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1907 the optimized_out flag is preserved.
1908
1909 2012-09-10 Anthony Green <green@moxielogic.com>
1910
1911 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1912 prologue changes in GCC.
1913
1914 2012-09-10 Keith Seitz <keiths@redhat.com>
1915
1916 PR gdb/13483
1917 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1918 (BOOL_CONVERSION_BADNESS): ... this.
1919 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1920 (rank_one_type): Allow all boolean conversions
1921 permitted by the standard.
1922
1923 2012-09-06 Tom Tromey <tromey@redhat.com>
1924
1925 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1926 Don't decref py_objfile.
1927
1928 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1929
1930 Do not enable -lmcheck by default when Python is enabled with
1931 threading support.
1932 * configure.ac: (python_has_threads) New variable, by testing
1933 if WITH_THREAD is defined in Python.h.
1934 Move --enable-lmcheck after --with-python.
1935 Do not enable -lmcheck by default if python_has_threads=yes.
1936 Warn if --enable-lmcheck and python_has_threads=yes.
1937 * configure: Regenerate.
1938
1939 2012-08-31 Yao Qi <yao@codesourcery.com>
1940
1941 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1942 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1943 Update some commands.
1944 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1945 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1946 to 1.
1947
1948 2012-08-31 Yao Qi <yao@codesourcery.com>
1949
1950 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1951
1952 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1953
1954 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1955
1956 2012-08-29 Doug Evans <dje@google.com>
1957
1958 * main.c (print_gdb_help): Remove reference to
1959 --use-deprecated-index-sections.
1960
1961 2012-08-28 Yao Qi <yao@codesourcery.com>
1962
1963 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1964 (init_cmds): Call add_setshow_uinteger_cmd for command
1965 'max-user-call-depth'.
1966 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1967 declaration of 'max_user_call_depth'.
1968 * frame.c (backtrace_limit): Add 'unsigned'.
1969 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1970 'limit'.
1971 * remote.c (remoteaddresssize): Add 'unsigned'.
1972 (remote_address_masked): Change local var 'address_size' to
1973 'unsigned'.
1974 (_initialize_remote): Call add_setshow_uinteger_cmd for
1975 'remoteaddresssize'.
1976 * top.c (history_size): Add 'unsigned'.
1977 (show_commands): Change local variables to 'unsigned'.
1978 (set_history_size_command): Don't check history_size is negative.
1979 Adjust the condition to call unstifle_history and set history_size
1980 to UNIT_MAX.
1981
1982 2012-08-28 Pedro Alves <palves@redhat.com>
1983
1984 PR gdb/14428
1985
1986 * infcmd.c (default_print_one_register_info): New, factored out
1987 from default_print_registers_info.
1988 (default_print_registers_info): Use it. Mark value unavailable if
1989 necessary.
1990 (registers_info): Print user registers with
1991 default_print_one_register_info.
1992
1993 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 PR tui/14486
1996 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1997 is not NULL before referencing it.
1998
1999 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2002 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2003 original PC for it.
2004
2005 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2006 Jan Kratochvil <jan.kratochvil@redhat.com>
2007
2008 * auto-load.c (auto_load_objfile_script): Rename to ...
2009 (auto_load_objfile_script_1): ... here, change variable realname to
2010 parameter realname, document it, add return value, add variable retval.
2011 (auto_load_objfile_script): New function.
2012
2013 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2016 followed by a whitespace.
2017
2018 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2019
2020 PR gdb/14494.
2021 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2022 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2023 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2024 here.
2025
2026 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2027
2028 * memattr.c (create_mem_region): Fix memory region overlapping
2029 checking.
2030
2031 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2032
2033 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2034 with xmalloc/cleanup.
2035 * mt-tdep.c (mt_push_dummy_call): Likewise.
2036 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2037 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2038
2039 2012-08-24 Yao Qi <yao@codesourcery.com>
2040
2041 * jv-exp.y (push_expression_name): Add "." at the end of error
2042 message.
2043
2044 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2045
2046 Document how to return from "python-interactive" to GDB.
2047 * python/python.c (_initialize_python): Update documentation.
2048
2049 2012-08-23 Pedro Alves <palves@redhat.com>
2050
2051 * infrun.c (_initialize_infrun) <handle command help text>:
2052 Mention that multiple signals are supported.
2053
2054 2012-08-23 Pedro Alves <palves@redhat.com>
2055
2056 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2057 string.
2058
2059 2012-08-23 Yao Qi <yao@codesourcery.com>
2060
2061 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2062 (tfind_1): Don't call registers_changed, set_traceframe_num,
2063 and clear_traceframe_info.
2064 Call set_current_traceframe.
2065 (set_current_traceframe): call set_traceframe_num.
2066
2067 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2068
2069 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2070 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2071
2072 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2073
2074 Enable readline in Python in a GDB-specific way and block the
2075 standard Python readline module to prevent conflicts with GDB.
2076 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2077 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2078 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2079 * python/py-gdb-readline.c: New file.
2080 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2081 prototype.
2082 * python/python.c (_initialize_python): Call
2083 gdbpy_initialize_gdb_readline.
2084
2085 2012-08-22 Keith Seitz <keiths@redhat.com>
2086
2087 * defs.h: Include build-gnulib/config.h
2088
2089 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2090
2091 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2092 and blx pc.
2093
2094 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2095
2096 Add a new "python-interactive" command that starts a standard
2097 Python interactive prompt with "pi" as alias, and add "py" as
2098 an alias to "python".
2099 * NEWS: Mention the new commands.
2100 * python/python.c (eval_python_command): New function.
2101 (python_interactive_command): For "python-interactive" with
2102 arguments, call eval_python_command. For "python-interactive"
2103 without arguments, call PyRun_InteractiveLoop.
2104 (_initialize_python): Add "python-interactive" command with
2105 "pi" as alias, and add "py" as an alias to "python".
2106
2107 2012-08-22 Tom Tromey <tromey@redhat.com>
2108
2109 * defs.h (quit_flag): Don't declare.
2110 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2111 (QUIT): Use new functions.
2112 * event-top.c (command_handler): Use clear_quit_flag.
2113 (handle_sigint): Use set_quit_flag.
2114 (async_request_quit): Use check_quit_flag. Don't check
2115 immediate_quit.
2116 * exceptions.c (throw_exception): Use clear_quit_flag.
2117 * main.c (captured_main): Use clear_quit_flag.
2118 * python/python.c (clear_quit_flag, set_quit_flag)
2119 (check_quit_flag): New functions.
2120 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2121 clear_quit_flag.
2122 * remote.c (remote_wait_as): Use check_quit_flag,
2123 clear_quit_flag.
2124 (remote_start_remote): Call QUIT.
2125 * symfile.c (load_progress): Use check_quit_flag.
2126 * top.c (command_loop): Use clear_quit_flag.
2127 (command_line_input): Call QUIT.
2128 * utils.c (quit_flag): Conditionally define.
2129 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2130 functions.
2131 (prompt_for_continue): Call QUIT. Use quit, not
2132 async_request_quit.
2133 * remote-mips.c (mips_expect_timeout): Call QUIT.
2134 * monitor.c (monitor_expect): Call QUIT.
2135
2136 2012-08-22 Tom Tromey <tromey@redhat.com>
2137
2138 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2139 (async_init_signals): Update.
2140 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2141 (SIGWINCH_HANDLER_BODY): Remove.
2142
2143 2012-08-22 Tom Tromey <tromey@redhat.com>
2144
2145 * jit.c (jit_object_close_impl): Don't malloc the objfile
2146 name.
2147 * objfiles.c (allocate_objfile): Don't malloc the objfile
2148 name.
2149 (free_objfile): Don't free the objfile name.
2150 * objfiles.h (struct objfile) <name>: Update comment.
2151 * symfile.c (reread_symbols): Fix reference counting. Don't
2152 malloc objfile name.
2153
2154 2012-08-22 Tom Tromey <tromey@redhat.com>
2155
2156 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2157 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2158 (symfile_bfd_open): Likewise.
2159 (generic_load): Likewise.
2160 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2161 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2162 gdb_bfd_open.
2163 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2164 Use gdb_bfd_open.
2165 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2166 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2167 (pmon_load_fast): Likewise.
2168 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2169 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2170 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2171 (macho_check_dsym): Likewise.
2172 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2173 (m32r_upload_command): Likewise.
2174 * gdb_bfd.h (gdb_bfd_cache): Declare.
2175 * gdb_bfd.c (struct gdb_bfd_data): New.
2176 (gdb_bfd_cache): New global.
2177 (struct gdb_bfd_cache_search): New.
2178 (hash_bfd): New function.
2179 (eq_bfd): Likewise.
2180 (gdb_bfd_open): Likewise.
2181 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2182 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2183 gdb_bfd_data.
2184 * exec.c (exec_file_attach): Use gdb_bfd_open.
2185 * dsrec.c (load_srec): Use gdb_bfd_open.
2186
2187 2012-08-22 Tom Tromey <tromey@redhat.com>
2188
2189 * dwarf2read.c (macro_start_file): Update.
2190 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2191 (free_objfile_per_bfd_storage): Destroy macro_cache.
2192 (allocate_objfile, free_objfile): Update.
2193 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2194 New field.
2195 (struct objfile) <macro_cache>: Remove.
2196 * symfile.c (reread_symbols): Update.
2197 * symmisc.c (print_symbol_bcache_statistics): Update.
2198 (print_objfile_statistics): Update.
2199
2200 2012-08-22 Tom Tromey <tromey@redhat.com>
2201
2202 * elfread.c (elf_symtab_read): Update.
2203 * objfiles.c (objfiles_bfd_data): New global.
2204 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2205 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2206 (allocate_objfile, free_objfile): Update.
2207 (_initialize_objfiles): Initialize objfiles_bfd_data.
2208 * objfiles.h (struct objfile_per_bfd_storage): New.
2209 (struct objfile) <per_bfd>: New field.
2210 <filename_cache>: Remove.
2211 (set_objfile_per_bfd): Declare.
2212 * symfile.c (reread_symbols): Update. Call
2213 set_objfile_per_bfd.
2214 (allocate_symtab): Update.
2215 * symmisc.c (print_symbol_bcache_statistics): Update.
2216 (print_objfile_statistics): Print the size of the BFD obstack.
2217
2218 2012-08-22 Tom Tromey <tromey@redhat.com>
2219
2220 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2221 * gdb_bfd.c: Use DEFINE_REGISTRY.
2222 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2223 (gdb_bfd_ref): Call bfd_alloc_data.
2224 (gdb_bfd_unref): Call bfd_free_data.
2225
2226 2012-08-22 Tom Tromey <tromey@redhat.com>
2227
2228 * registry.h (struct registry_fields): New.
2229 (REGISTRY_FIELDS): Redefine.
2230 (REGISTRY_ACCESS_FIELD): New macro.
2231 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2232 functions.
2233
2234 2012-08-22 Tom Tromey <tromey@redhat.com>
2235
2236 * auto-load.c (_initialize_auto_load): Update.
2237 * solib-svr4.c (_initialize_svr4_solib): Update
2238 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2239 * solib-darwin.c (_initialize_darwin_solib): Update.
2240 * registry.h: New file.
2241 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2242 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2243 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2244 (register_program_space_data_with_cleanup)
2245 (register_program_space_data, program_space_alloc_data)
2246 (clear_program_space_data, set_program_space_data)
2247 (program_space_data): Don't declare.
2248 * progspace.c: Use DEFINE_REGISTRY.
2249 (struct program_space_data, struct
2250 program_space_data_registration, struct
2251 program_space_data_registry, program_space_data_registry)
2252 (register_program_space_data_with_cleanup)
2253 (register_program_space_data, program_space_alloc_data)
2254 (program_space_free_data, clear_program_space_data)
2255 (set_program_space_data, program_space_data): Remove.
2256 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2257 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2258 (register_objfile_data_with_cleanup, register_objfile_data)
2259 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2260 declare.
2261 * objfiles.c: Use DEFINE_REGISTRY.
2262 (struct objfile_data, struct objfile_data_registration, struct
2263 objfile_data_registry, objfile_data_registry)
2264 (register_objfile_data_with_cleanup, register_objfile_data)
2265 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2266 (set_objfile_data, objfile_data): Remove.
2267 (_initialize_objfiles): Update.
2268 * jit.c (_initialize_jit): Update.
2269 * inflow.c (_initialize_inflow): Update.
2270 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2271 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2272 (register_inferior_data_with_cleanup, register_inferior_data)
2273 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2274 declare.
2275 * inferior.c: Use DEFINE_REGISTRY.
2276 (struct inferior_data, struct inferior_data_registration, struct
2277 inferior_data_registry, inferior_data_registry)
2278 (register_inferior_data_with_cleanup, register_inferior_data)
2279 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2280 (set_inferior_data, inferior_data): Remove.
2281 * auxv.c (_initialize_auxv): Update.
2282 * ada-lang.c (_initialize_ada_language): Update.
2283 * breakpoint.c (_initialize_breakpoint): Update.
2284 * i386-nat.c (i386_use_watchpoints): Update.
2285
2286 2012-08-22 Tom Tromey <tromey@redhat.com>
2287
2288 * exec.c (exec_close, exec_file_attach): Update.
2289 (add_to_section_table): Initialize 'key' field.
2290 (add_target_sections, remove_target_sections): Add 'key' argument.
2291 * exec.h (add_target_sections, remove_target_sections): Add
2292 'key' argument.
2293 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2294 (reload_shared_libraries_1): Update.
2295 * target.h (struct target_section) <key>: New field.
2296
2297 2012-08-22 Tom Tromey <tromey@redhat.com>
2298
2299 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2300
2301 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2302
2303 * symfile.c (allocate_symtab): Use host_address_to_string
2304 function instead of cast of pointer to long which is not
2305 compatible with x86_64-w64-mingw32 build.
2306
2307 2012-08-19 Andrew Pinski <apinski@cavium.com>
2308
2309 * mips-tdep.c (is_octeon): New function.
2310 (is_octeon_bbit_op): New function.
2311 (mips32_next_pc): Handle Octeon's bbit instructions.
2312 (mips32_instruction_has_delay_slot): Likewise.
2313
2314 2012-08-19 Andrew Pinski <apinski@cavium.com>
2315
2316 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2317 before the function.
2318
2319 2012-08-19 Andrew Pinski <apinski@cavium.com>
2320
2321 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2322
2323 2012-08-19 Keith Seitz <keiths@redhat.com>
2324
2325 PR c++/14365
2326 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2327 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2328
2329 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2330
2331 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2332 The typo broke "make TAGS".
2333
2334 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2335
2336 GDB 7.5 released.
2337
2338 2012-08-17 Keith Seitz <keiths@redhat.com>
2339
2340 PR c++/13356
2341 * gdbtypes.c (strict_type_checking): New variable.
2342 (show_strict_type_checking): New function.
2343 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2344 if strict type checking is disabled.
2345 (_initialize_gdbtypes): Add "check type" subcommand.
2346 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2347
2348 2012-08-17 Keith Seitz <keiths@redhat.com>
2349
2350 * language.h (type_mode): Remove.
2351 (type_check): Remove.
2352 (struct language_defn): Remove la_type_check.
2353 (STRICT_TYPE): Remove unused macro.
2354 (type_error): Remove.
2355 * language.c (set_type_range_case): Renamed to ...
2356 (set_range_case): ... this. Update all callers.
2357 Remove type_mode/type_check.
2358 (type_mode): Remove.
2359 (type_check): Remove.
2360 (show_type_command): Remove.
2361 (set_type_command): Remove.
2362 (language_info): Remove type checking output.
2363 (type_error): Remove unused function.
2364 (range_error): Update comment.
2365 (unknown_language_defn): Remove la_type_check.
2366 (auto_language_defn): Likewise.
2367 (local_language_defn): Likewise.
2368 (_initialize_language): Remove "check type" subcommand.
2369 * ada-lang.c (ada_language_defn): Remove la_type_check.
2370 * c-lang.c (c_language_defn): Likewise.
2371 (cplus_language_defn): Likewise.
2372 (asm_language_defn): Likewise.
2373 (minimal_language_defn): Likewise.
2374 * d-lang.c (d_language_defn): Likewise.
2375 * f-lang.c (f_language_defn): Likewise.
2376 * go-lang.c (go_language_defn): Likewise.
2377 * jv-lang.c (java_language_defn): Likewise.
2378 * m2-lang.c (m2_language_defn): Likewise.
2379 * objc-lang.c (objc_language_defn): Likewise.
2380 * opencl-lang.c (opencl_language_defn): Likewise.
2381 * p-lang.c (pascal_language_defn): Likewise.
2382
2383 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2384
2385 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2386
2387 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2388
2389 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2390 New function.
2391 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2392 using the regache. Use ia64_hpux_get_register_from_save_state_t
2393 to access the bsp and bspstore registers if not.
2394
2395 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2396
2397 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2398 * breakpoint.c (detach_breakpoints): Change pid parameter into
2399 a ptid. Adjust code accordingly.
2400 * infrun.c (handle_inferior_event): Delete variable child_pid.
2401 Update call to detach_breakpoints to pass the child ptid for
2402 fork events.
2403 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2404 assert that inferior_ptid's lwp is zero.
2405 (linux_handle_extended_wait): Update call to detach_breakpoints.
2406 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2407 detach_breakpoints.
2408
2409 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2410
2411 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2412 parent, only call detach_breakpoints if tts.tts_event ==
2413 TTEVT_VFORK.
2414
2415 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2416
2417 * dwarf2-frame.c (dwarf2_frame_cache): Use
2418 get_frame_address_in_block instead of get_frame_pc as
2419 the bound for executing the frame's FDE.
2420
2421 2012-08-16 Yao Qi <yao@codesourcery.com>
2422
2423 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2424 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2425 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2426 (c_type_print_varspec_suffix): Likewise.
2427 * eval.c (evaluate_subexp_standard): Likewise.
2428 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2429 (f_type_print_varspec_suffix): Likewise.
2430 * gdbtypes.c (is_scalar_type): Likewise.
2431 (recursive_dump_type): Likewise.
2432 * infcall.c (value_arg_coerce): Likewise.
2433 * m2-valprint.c (m2_val_print): Likewise.
2434 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2435 (pascal_type_print_varspec_suffix): Likewise.
2436 (pascal_type_print_base): Likewise.
2437 * p-valprint.c (pascal_val_print): Likewise.
2438 (pascal_val_print): Likewise.
2439 * valops.c (value_slice): Likewise.
2440 * valprint.c (scalar_type_p): Likewise.
2441 * valarith.c (value_bitstring_subscript): Remove.
2442 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2443 Remove comment on TYPE_CODE_BITSTRING.
2444
2445 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2446 TYPE_CODE_BITSTRING.
2447
2448 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2449 slot 0.
2450
2451 2012-08-16 Yao Qi <yao@codesourcery.com>
2452
2453 * tracepoint.c (trace_find_none_command): Remove.
2454 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2455
2456 2012-08-16 Yao Qi <yao@codesourcery.com>
2457
2458 * remote.c (handle_notification): Remove parameter 'length'.
2459 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2460
2461 2012-08-15 Keith Seitz <keiths@redhat.com>
2462
2463 * gdbtypes.c (opaque_type_resolution): Make static.
2464 Add missing comment.
2465 (overload_debug): Add missing comment.
2466 (show_opaque_type_resolution): Likewise.
2467 (show_overload_debug): Likewise.
2468 (print_bit_vector): Remove unnecessary forward declaration.
2469 (print_arg_types): Likewise.
2470 (dump_fn_fieldlists): Likewise.
2471 (print_cplus_stuff): Likewise.
2472
2473 2012-08-15 Tom Tromey <tromey@redhat.com>
2474
2475 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2476 (gdb_bfd_ref): Initialize new field.
2477 (gdb_bfd_unref): Unref the archive BFD.
2478 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2479 parent archive.
2480
2481 2012-08-15 Tom Tromey <tromey@redhat.com>
2482
2483 PR python/14387:
2484 * python/py-bpevent.c (create_breakpoint_event_object): Update
2485 comment.
2486 * python/py-event.c (evpy_add_attribute): Update comment.
2487 * python/py-exitedevent.c (create_exited_event_object): Fix
2488 reference counting and error handling.
2489 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2490 Fix reference counting.
2491 * python/py-signalevent.c (create_signal_event_object): Fix
2492 reference counting and error handling.
2493 * python/py-stopevent.c (emit_stop_event): Fix reference
2494 counting.
2495 * python/py-threadevent.c (get_event_thread): Return a
2496 borrowed reference.
2497 * python/py-type.c (convert_field): Fix reference counting.
2498
2499 2012-08-15 Tom Tromey <tromey@redhat.com>
2500
2501 * dwarf2read.c (dwarf_decode_macro_bytes)
2502 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2503 as hash key.
2504
2505 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2506
2507 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2508 stepi, nexti, finish, next, step, jump, and continue commands.
2509 * infrun.c (_initialize_infrun): Update help text for the handle
2510 command.
2511
2512 2012-08-14 Doug Evans <dje@google.com>
2513
2514 * gdbtypes.c (struct extra): Delete, unused.
2515
2516 * gdbtypes.c: Whitespace cleanup.
2517 (address_space_name_to_int): Remove "extern" from definition.
2518 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2519
2520 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2521 TYPE_POINTER_TYPE (type).
2522
2523 2012-08-14 Gary Benson <gbenson@redhat.com>
2524
2525 * solib-svr4.c (svr4_free_library_list): Use free_so.
2526
2527 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2528
2529 * .gitignore: Add go-exp.c.
2530
2531 2012-08-13 Doug Evans <dje@google.com>
2532
2533 * value.c (show_convenience): Tweak comment.
2534 (_initialize_values): Mention convenience functions in the help text
2535 for "show convenience".
2536
2537 2012-08-13 Yao Qi <yao@codesourcery.com>
2538
2539 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2540 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2541 TERNOP_SLICE_COUNT.
2542 * eval.c (evaluate_subexp_standard): Likewise.
2543 * expprint.c (print_subexp_standard): Likewise.
2544 (dump_subexp_body_standard): Likewise.
2545 * parse.c (operator_length_standard): Likewise.
2546
2547 2012-08-13 Yao Qi <yao@codesourcery.com>
2548
2549 * std-operator.def: Remove OP_BITSTRING.
2550 * breakpoint.c (watchpoint_exp_is_const): Update.
2551 * eval.c (evaluate_subexp_standard): Remove handling to
2552 OP_BITSTRING.
2553 * expprint.c (print_subexp_standard): Likewise.
2554 (dump_subexp_body_standard): Likewise.
2555 * parse.c (operator_length_standard): Likewise.
2556 * valops.c (value_bitstring): Remove.
2557 * value.h: Remove the declaration of 'value_bitstring'.
2558
2559 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2560
2561 * linespec.c (find_methods): Remove unused variables `i1' and
2562 `name_len'.
2563 (decode_line_full): Likewise for `arg_start'.
2564
2565 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2566
2567 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2568 (zlib_decompress_section): Likewise for `section_data'.
2569 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2570
2571 2012-08-10 Doug Evans <dje@google.com>
2572
2573 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2574 * NEWS: Document them.
2575 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2576 function/strfns.py.
2577 * python/py-type.c (typy_array_1): New function.
2578 (typy_array): Call it.
2579 (typy_vector): New function.
2580 (type_object_methods): Add "vector".
2581 * python/lib/gdb/function/__init__.py: New file.
2582 * python/lib/gdb/function/strfns.py: New file.
2583
2584 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2585
2586 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2587 for TYPE_FIELD_BITPOS.
2588 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2589
2590 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2591
2592 PR cli/10436:
2593 * common/vec.h (VEC_merge): Define.
2594 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2595 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2596 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2597 * completer.c: Include gdb_signals.h.
2598 (signal_completer): Define.
2599 * completer.h (signal_completer): Add prototype.
2600 * infcmd.c (_initialize_infcmd): Assign the command
2601 completer for "signal" to handle_completer.
2602 * infrun.c: Include completer.h.
2603 (handle_completer): Define.
2604 (_initialize_infrun): Declare a new local variable c. Store the
2605 result of add_com("handle") to it. Assign the command
2606 completer for "handle" to handle_completer.
2607
2608 2012-08-09 Yao Qi <yao@codesourcery.com>
2609
2610 * cli/cli-decode.c (set_cmd_prefix): New.
2611 (lookup_cmd_for_prefixlist): New.
2612 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2613 of each cmd_list_element in *prefixlist.
2614 (add_setshow_cmd_full): set_cmd_prefix.
2615 (add_alias_cmd): Likewise.
2616 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2617 Declare 'auto_boolean_enums'.
2618 * cli/cli-setshow.c: Include "observer.h".
2619 (notify_command_param_changed_p): New.
2620 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2621 Remove 'static'.
2622 (do_setshow_command): Split it to ...
2623 (do_set_command, do_show_command): ... them. New.
2624 (do_set_command): Call observer_notify_command_param_changed if
2625 notify_command_param_changed_p returns true.
2626 (cmd_show_list): Caller update.
2627 * auto-load.c (set_auto_load_cmd): Likewise.
2628 * remote.c (show_remote_cmd): Likewise.
2629 * cli/cli-setshow.h: Update declarations.
2630 * top.c (execute_command): Call do_set_command and do_show_command.
2631
2632 * NEWS: Mention new MI notification.
2633 * mi/mi-interp.c: Declare mi_command_param_changed.
2634 (mi_interpreter_init): Attach mi_command_param_changed to
2635 observer command_param_changed.
2636 (mi_command_param_changed): New.
2637 Remove mi_suppress_breakpoint_notifications.
2638 Define global variable mi_suppress_notification.
2639 (mi_breakpoint_created): Update.
2640 (mi_breakpoint_deleted): Likewise.
2641 (mi_breakpoint_modified): Likewise.
2642 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2643 'gdb-set' and set mi_suppress_notification.
2644 * mi/mi-main.h: (mi_suppress_notification): New struct.
2645
2646 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2647 Jan Kratochvil <jan.kratochvil@redhat.com>
2648
2649 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2650
2651 2012-08-09 Yao Qi <yao@codesourcery.com>
2652
2653 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2654 (skiplist): Move it to skip.c.
2655 (init_cmd_lists): Remove code setting enablebreaklist and
2656 skiplist to NULL.
2657 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2658 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2659 skiplist.
2660 * gdbcmd.h: Likewise.
2661 * skip.c (_initialize_step_skip): Move 'skiplist' from
2662 cli/cli-cmds.c.
2663
2664 2012-08-09 Yao Qi <yao@codesourcery.com>
2665
2666 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2667 * gnu-nat.c, symfile.c: Likewise.
2668
2669 2012-08-08 Aaron Gamble <agamble@google.com>
2670
2671 * utils.c (prompt_for_continue_wait_time): New static global.
2672 (make_command_stats_cleanup): Initialize it.
2673 (report_command_stats): Subtract time waiting for user.
2674 (prompt_for_continue): Track time waiting for user.
2675 (defaulted_query): Track time waiting for user.
2676
2677 2012-08-08 Doug Evans <dje@google.com>
2678
2679 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2680 UNOP_MEMVAL_TYPE.
2681 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2682 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2683 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2684 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2685 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2686 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2687 elt.
2688 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2689 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2690 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2691 (dump_prefix_expression): Handle OP_TYPE.
2692
2693 2012-08-08 Keith Seitz <keiths@redhat.com>
2694
2695 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2696 addr_start.
2697
2698 2012-08-08 Doug Evans <dje@google.com>
2699
2700 * linux-thread-db.c: #include "gdb_vecs.h".
2701 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2702 updated.
2703 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2704 (thread_db_load_search): Use a vector to iterate over path elements.
2705 Handle text appearing after "$pdir".
2706
2707 * gdb_string.h: Moved to ...
2708 * common/gdb_string.h: ... here.
2709 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2710 gdb_string.h and gdb_assert.h.
2711
2712 2012-08-08 Yao Qi <yao@codesourcery.com>
2713
2714 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2715 (tic6x_value_to_register): Likewise.
2716 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2717 and set_gdbarch_value_to_register.
2718
2719 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 Jean-Marc Saffroy <saffroy@gmail.com>
2721
2722 PR 11804
2723 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2724 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2725 * gcore.c (gcore_create_callback): New function comment. Add modified
2726 parameter. Only write modified regions. Set SEC_READONLY exactly
2727 according to MODIFIED.
2728 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2729 the passed modified value to FUNC.
2730 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2731 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2732 first. New variables modified and has_anonymous. Parse the lines of
2733 smaps file. Add the passed MODIFIED value to FUNC.
2734 * procfs.c (find_memory_regions_callback): Add the passed modified
2735 value.
2736
2737 2012-08-06 Tom Tromey <tromey@redhat.com>
2738
2739 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2740 (dwarf2_frame_cache): Use it.
2741 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2742 cache initialization constraint.
2743
2744 2012-08-06 Tom Tromey <tromey@redhat.com>
2745
2746 PR python/14386:
2747 * varobj.c (update_dynamic_varobj_children): Don't call
2748 PyIter_Check.
2749
2750 2012-08-06 Tom Tromey <tromey@redhat.com>
2751
2752 PR cli/14392:
2753 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2754
2755 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2756
2757 * NEWS: New entry for 'cd' default parameters.
2758 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2759
2760 2012-08-03 Tom Tromey <tromey@redhat.com>
2761
2762 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2763 return.
2764
2765 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2766
2767 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2768 to attempting lseek/write.
2769 (inf_child_fileio_pread): Likewise for pread.
2770
2771 2012-08-02 Yao Qi <yao@codesourcery.com>
2772
2773 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2774 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2775 add_setshow_zinteger_cmd.
2776 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2777 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2778 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2779 instead of add_setshow_zinteger_cmd.
2780 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2781 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2782 instead of add_setshow_zinteger_cmd.
2783 * frame.c (frame_debug): Add 'unsigned'.
2784 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2785 add_setshow_zinteger_cmd.
2786 * frame.h: Update the declaration of 'frame_debug'.
2787 * gdbtypes.c (overload_debug): Add 'unsigned'.
2788 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2789 add_setshow_zinteger_cmd.
2790 * inferior.h: Update declaration of 'debug_infrun'.
2791 * infrun.c (debug_infrun): Add 'unsigned'.
2792 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2793 add_setshow_zinteger_cmd.
2794 * jit.c (jit_debug): Add 'unsigned'.
2795 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2796 add_setshow_zinteger_cmd.
2797 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2798 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2799 instead of add_setshow_zinteger_cmd.
2800 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2801 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2802 add_setshow_zinteger_cmd.
2803 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2804 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2805 instead of add_setshow_zinteger_cmd.
2806 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2807 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2808 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2809 intead of add_setshow_zinteger_cmd.
2810 * mips-tdep.c (mips_debug): Add 'unsigned'.
2811 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2812 instead of add_setshow_zinteger_cmd.
2813 * monitor.c (monitor_debug): Add 'unsigned'.
2814 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2815 add_setshow_zinteger_cmd.
2816 * observer.c (observer_debug): Add 'unsigned'.
2817 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2818 add_setshow_zinteger_cmd.
2819 * parse.c (expressiondebug): Add 'unsigned'.
2820 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2821 add_setshow_zinteger_cmd.
2822 * record.c (record_debug): Add 'unsigned'.
2823 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2824 add_setshow_zinteger_cmd.
2825 * record.h: Update the declaration of 'record_debug'.
2826 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2827 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2828 add_setshow_zinteger_cmd.
2829 * serial.c (global_serial_debug_p): Add 'unsigned'.
2830 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2831 add_setshow_zinteger_cmd.
2832 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2833 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2834 add_setshow_zinteger_cmd.
2835 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2836 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2837 add_setshow_zinteger_cmd.
2838 * target.c (targetdebug): Add 'unsigned'.
2839 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2840 add_setshow_zinteger_cmd.
2841 * valops.c (overload_debug): Add 'unsigned'.
2842 * varobj.c (varobjdebug): Add 'unsigned'.
2843 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2844 add_setshow_zinteger_cmd.
2845 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2846 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2847 instead of add_setshow_zinteger_cmd.
2848
2849 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2850 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2851 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2852 instead of add_setshow_zinteger_cmd.
2853 * gdbarch.c, gdbarch.h: Re-generated.
2854
2855 2012-08-02 Yao Qi <yao@codesourcery.com>
2856
2857 * nto-tdep.c: Don't include cli/cli-decode.h and
2858 cli/cli-cmds.h.
2859 (_initialize_nto_tdep): Remove.
2860 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2861 Remove field.
2862 Remove macro nto_internal_debugging.
2863
2864 2012-08-01 Richard Henderson <rth@redhat.com>
2865
2866 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2867 (mep-*-*) [gdb_target_obs]: Likewise.
2868
2869 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2870
2871 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2872 linux_get_siginfo_type.
2873
2874 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2875
2876 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2877 AT_ENTRY_POINT.
2878 (call_function_by_hand) <ON_STACK>: Call write_memory with
2879 gdbarch_breakpoint_from_pc, if possible.
2880 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2881 here.
2882
2883 2012-07-31 Yao Qi <yao@codesourcery.com>
2884
2885 * tracepoint.c: Add 'static' for some variables.
2886
2887 2012-07-31 Yao Qi <yao@codesourcery.com>
2888
2889 * go32-nat.c: Declare _initialize_go32_nat.
2890 * ser-go32.c: Declare _initialize_ser_dos.
2891 * top.c (do_chdir_cleanup): Add 'static'.
2892
2893 2012-07-30 Keith Seitz <keiths@redhat.com>
2894
2895 * linespec.c (linespec_lex_number): A number followed
2896 by quotes is a valid number, too.
2897
2898 2012-07-30 Tom Tromey <tromey@redhat.com>
2899
2900 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2901
2902 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2903
2904 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2905 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2906
2907 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2908
2909 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2910 invalid or reevaluated to prevent prevent references to possibly
2911 delete'd type objects being left in the varobj.
2912
2913 2012-07-27 Tom Tromey <tromey@redhat.com>
2914 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 * copying.awk: Print buffer-read-only and vi ro markers.
2917 * copying.c: Rebuild.
2918 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2919 * gdbarch.c, gdbarch.h: Rebuild.
2920 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2921 buffer-read-only and vi ro markers.
2922 * features/arm-with-iwmmxt.c: Rebuild.
2923 * features/arm-with-m-fpa-layout.c: Rebuild.
2924 * features/arm-with-m-vfp-d16.c: Rebuild.
2925 * features/arm-with-m.c: Rebuild.
2926 * features/arm-with-neon.c: Rebuild.
2927 * features/arm-with-vfpv2.c: Rebuild.
2928 * features/arm-with-vfpv3.c: Rebuild.
2929 * features/i386/amd64-avx-linux.c: Rebuild.
2930 * features/i386/amd64-avx.c: Rebuild.
2931 * features/i386/amd64-linux.c: Rebuild.
2932 * features/i386/amd64.c: Rebuild.
2933 * features/i386/i386-avx-linux.c: Rebuild.
2934 * features/i386/i386-avx.c: Rebuild.
2935 * features/i386/i386-linux.c: Rebuild.
2936 * features/i386/i386-mmx-linux.c: Rebuild.
2937 * features/i386/i386-mmx.c: Rebuild.
2938 * features/i386/i386.c: Rebuild.
2939 * features/i386/x32-avx-linux.c: Rebuild.
2940 * features/i386/x32-avx.c: Rebuild.
2941 * features/i386/x32-linux.c: Rebuild.
2942 * features/i386/x32.c: Rebuild.
2943 * features/mips-dsp-linux.c: Rebuild.
2944 * features/mips-linux.c: Rebuild.
2945 * features/mips64-dsp-linux.c: Rebuild.
2946 * features/mips64-linux.c: Rebuild.
2947 * features/rs6000/powerpc-32.c: Rebuild.
2948 * features/rs6000/powerpc-32l.c: Rebuild.
2949 * features/rs6000/powerpc-403.c: Rebuild.
2950 * features/rs6000/powerpc-403gc.c: Rebuild.
2951 * features/rs6000/powerpc-405.c: Rebuild.
2952 * features/rs6000/powerpc-505.c: Rebuild.
2953 * features/rs6000/powerpc-601.c: Rebuild.
2954 * features/rs6000/powerpc-602.c: Rebuild.
2955 * features/rs6000/powerpc-603.c: Rebuild.
2956 * features/rs6000/powerpc-604.c: Rebuild.
2957 * features/rs6000/powerpc-64.c: Rebuild.
2958 * features/rs6000/powerpc-64l.c: Rebuild.
2959 * features/rs6000/powerpc-7400.c: Rebuild.
2960 * features/rs6000/powerpc-750.c: Rebuild.
2961 * features/rs6000/powerpc-860.c: Rebuild.
2962 * features/rs6000/powerpc-altivec32.c: Rebuild.
2963 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2964 * features/rs6000/powerpc-altivec64.c: Rebuild.
2965 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2966 * features/rs6000/powerpc-cell32l.c: Rebuild.
2967 * features/rs6000/powerpc-cell64l.c: Rebuild.
2968 * features/rs6000/powerpc-e500.c: Rebuild.
2969 * features/rs6000/powerpc-e500l.c: Rebuild.
2970 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2971 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2972 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2973 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2974 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2975 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2976 * features/rs6000/powerpc-vsx32.c: Rebuild.
2977 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2978 * features/rs6000/powerpc-vsx64.c: Rebuild.
2979 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2980 * features/rs6000/rs6000.c: Rebuild.
2981 * features/s390-linux32.c: Rebuild.
2982 * features/s390-linux32v1.c: Rebuild.
2983 * features/s390-linux32v2.c: Rebuild.
2984 * features/s390-linux64.c: Rebuild.
2985 * features/s390-linux64v1.c: Rebuild.
2986 * features/s390-linux64v2.c: Rebuild.
2987 * features/s390x-linux64.c: Rebuild.
2988 * features/s390x-linux64v1.c: Rebuild.
2989 * features/s390x-linux64v2.c: Rebuild.
2990 * features/tic6x-c62x-linux.c: Rebuild.
2991 * features/tic6x-c62x.c: Rebuild.
2992 * features/tic6x-c64x-linux.c: Rebuild.
2993 * features/tic6x-c64x.c: Rebuild.
2994 * features/tic6x-c64xp-linux.c: Rebuild.
2995 * features/tic6x-c64xp.c: Rebuild.
2996
2997 2012-07-27 Tom Tromey <tromey@redhat.com>
2998
2999 * c-exp.y (classify_name): Avoid assignment in condition.
3000
3001 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3002
3003 * amd64-windows-tdep.c: Include "frame.h".
3004 (amd64_windows_skip_trampoline_code): New function.
3005 (amd64_windows_init_abi): Add trampoline registration.
3006
3007 2012-07-27 Yao Qi <yao@codesourcery.com>
3008
3009 * tracepoint.c (cur_traceframe_number): Remove.
3010 (set_tfile_traceframe): Remove.
3011 (tfile_trace_find, tfile_fetch_registers): Update callers.
3012 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3013 (tfile_open, tfile_trace_find): Likewise.
3014
3015 2012-07-27 Yao Qi <yao@codesourcery.com>
3016
3017 * thread.c (switch_to_thread): Don't call registers_changed.
3018
3019 2012-07-26 Tom Tromey <tromey@redhat.com>
3020
3021 * Makefile.in (SFILES): Remove objc-exp.y.
3022 (YYFILES): Remove objc-exp.c.
3023 (YYOBJ): Remove objc-exp.o.
3024 (local-maintainer-clean): Don't mention objc-exp.c.
3025 * c-exp.y: Include objc-lang.h.
3026 (%union) <class>: New field.
3027 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3028 (exp): Clone subscript production for OBJC_LBRAC. Add various
3029 Objective C productions.
3030 (msglist, msgarglist, msgarg): New productions.
3031 (array_mod, func_mod, operator): Clone productions for
3032 OBJC_LBRAC.
3033 (parse_string_or_char): Handle '@' strings.
3034 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3035 (classify_name): Check la_name_of_this. Recognize ObjC class
3036 names.
3037 * objc-exp.y: Remove.
3038 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3039 * objc-lang.h (objc_parse, objc_error): Don't declare.
3040
3041 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3042
3043 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3044
3045 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3048 and decrement.
3049
3050 2012-07-26 Tom Tromey <tromey@redhat.com>
3051
3052 * copying.c: Rebuild.
3053 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3054 'no_class'.
3055
3056 2012-07-26 Tom Tromey <tromey@redhat.com>
3057
3058 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3059 immediate_quit.
3060 (print_objfile_statistics): Likewise.
3061 (maintenance_print_symbols): Likewise.
3062 (maintenance_print_msymbols): Likewise.
3063 (maintenance_print_objfiles): Likewise.
3064 * psymtab.c (print_partial_symbols): Call QUIT.
3065 (maintenance_print_psymbols): Likewise. Don't modify
3066 immediate_quit.
3067 * copying.c (show_copying_command): Don't modify immediate_quit.
3068 (show_warranty_command): Likewise.
3069 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3070
3071 2012-07-26 Keith Seitz <keiths@redhat.com>
3072
3073 * linespec.c (linespec_lexer_lex_number): The input
3074 is also a valid number if the next character is a comma
3075 or colon.
3076
3077 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3078
3079 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3080 configure options.
3081
3082 2012-07-26 Tristan Gingold <gingold@adacore.com>
3083
3084 * machoread.c: Include gdb_bfd.h.
3085
3086 2012-07-26 Tristan Gingold <gingold@adacore.com>
3087
3088 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3089 offset.
3090
3091 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3092
3093 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3094 SIZE to size_t.
3095 (dwarf2_evaluate_loc_desc): Likewise.
3096 (dwarf2_loc_desc_needs_frame): Likewise.
3097 (locexpr_describe_location_1): Likewise.
3098 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3099 size_t.
3100 (struct dwarf2_loclist_baton): Likewise.
3101 * dwarf2read.c (struct dwarf_block): Likewise.
3102 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3103 (decode_locdesc): Expand SIZE and I to size_t.
3104
3105 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3108
3109 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3110
3111 * doublest.c (convert_doublest_to_floatformat): If the exponent
3112 is too small, treat the value as zero. If the exponent is too
3113 large, treat the value as infinity.
3114
3115 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3116
3117 * configure.ac: Add --enable-lmcheck configure option.
3118 * configure: Regenerate.
3119
3120 2012-07-25 Tom Tromey <tromey@redhat.com>
3121
3122 * NEWS: Mention maint info bfds.
3123 * gdb_bfd.c (all_bfds): New global.
3124 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3125 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3126 New functions.
3127
3128 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3129
3130 * configure.tgt: Add v850*-*-rtems*.
3131
3132 2012-07-25 Tom Tromey <tromey@redhat.com>
3133
3134 * macrotab.c (macro_bcache_str): Remove cast.
3135
3136 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3137
3138 * linespec.c (linespec_lexer_lex_number): Update comments,
3139 change the return and add check to make sure the input is
3140 the decimal numbers.
3141 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3142 false, call linespec_lexer_lex_string.
3143
3144 2012-07-24 Tom Tromey <tromey@redhat.com>
3145
3146 * symfile.c (symbol_file_add): Don't open BFD twice.
3147
3148 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3149
3150 * breakpoint.c (create_breakpoint): Store condition for pending
3151 breakpoints.
3152
3153 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3154
3155 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3156 (m68k_return_value): Handle complex types like structures.
3157 (m68k_svr4_return_value): Likewise.
3158
3159 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3160
3161 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3162 parameters to bfd_get_section_name.
3163
3164 2012-07-24 Yao Qi <yao@codesourcery.com>
3165
3166 * cli/cli-setshow.c: Handle case 'var_uinteger'
3167 and 'var_zuninteger' together. Handle case 'var_integer' and
3168 'var_zinteger' together.
3169
3170 2012-07-23 Keith Seitz <keiths@redhat.com>
3171
3172 * linespec.c (convert_linespec_to_sal): Don't add
3173 any symbols to the result vector if symbol_to_sal
3174 returns zero.
3175
3176 2012-07-23 Keith Seitz <keiths@redhat.com>
3177
3178 * linespec.c (decode_objc): Record the function name
3179 in the linespec.
3180
3181 2012-07-23 Tom Tromey <tromey@redhat.com>
3182
3183 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3184 counting.
3185 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3186 (map_vmap): Acquire a reference to the BFD.
3187
3188 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3189
3190 * p-valprint.c (pascal_object_print_value): Replace potentially
3191 unsafe alloca with xmalloc/xfree.
3192 * valops.c (search_struct_method): Likewise.
3193
3194 2012-07-23 Tom Tromey <tromey@redhat.com>
3195
3196 * solib-svr4.c (enable_break): Update.
3197 * bfd-target.h (target_bfd_reopen): Update documentation.
3198
3199 2012-07-23 Tom Tromey <tromey@redhat.com>
3200
3201 * symfile.c (separate_debug_file_exists): Update.
3202 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3203 (reread_symbols): Update.
3204 * elfread.c (build_id_verify): Update.
3205 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3206 bfd_open_maybe_remote.
3207
3208 2012-07-23 Tom Tromey <tromey@redhat.com>
3209
3210 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3211
3212 2012-07-23 Tom Tromey <tromey@redhat.com>
3213
3214 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3215 and 'abfd'.
3216 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3217 and 'abfd'.
3218 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3219 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3220 'abfd'.
3221 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3222 * objfiles.c (allocate_objfile): Acquire a new reference.
3223 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3224 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3225 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3226 a cleanup for 'nbfd'.
3227 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3228 for 'nbfd'.
3229 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3230 make a cleanup for 'abfd'.
3231 (symbol_file_add): Make a BFD cleanup.
3232
3233 2012-07-23 Tom Tromey <tromey@redhat.com>
3234
3235 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3236 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3237 * corelow.c (core_open): Use gdb_bfd_fopen.
3238 * dsrec.c (load_srec): Use gdb_bfd_openr.
3239 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3240 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3241 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3242 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3243 (gdb_bfd_fdopenr): New functions.
3244 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3245 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3246 (gdb_bfd_fdopenr): Declare.
3247 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3248 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3249 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3250 gdb_bfd_openr_next_archived_file.
3251 (macho_check_dsym): Use gdb_bfd_openr.
3252 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3253 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3254 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3255 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3256 gdb_bfd_openr.
3257 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3258 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3259 gdb_bfd_openr_next_archived_file.
3260 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3261 Use gdb_bfd_openr.
3262 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3263 gdb_bfd_openr.
3264 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3265 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3266 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3267 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3268 (symfile_bfd_open): Use gdb_bfd_fopen.
3269 (generic_load): Use gdb_bfd_openr.
3270 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3271
3272 2012-07-23 Tom Tromey <tromey@redhat.com>
3273
3274 * bfd-target.c (target_bfd_reopen): Update.
3275 * cli/cli-dump.c (bfd_openr_with_cleanup)
3276 (bfd_openw_with_cleanup): Update.
3277 * corelow.c (core_open): Update.
3278 * dsrec.c (load_srec): Update.
3279 * exec.c (exec_file_attach): Update.
3280 * gcore.c (create_gcore_bfd): Update.
3281 * gdb_bfd.c (gdb_bfd_ref): Return void.
3282 (gdb_bfd_open): Update.
3283 * gdb_bfd.h (gdb_bfd_ref): Return void.
3284 Update comments.
3285 * jit.c (jit_bfd_try_read_symtab): Update.
3286 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3287 * machoread.c (macho_symfile_read_all_oso): Update.
3288 (macho_check_dsym): Update.
3289 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3290 * remote-m32r-sdi.c (m32r_load): Update.
3291 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3292 * rs6000-nat.c (add_vmap): Update.
3293 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3294 Update.
3295 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3296 * solib-spu.c (spu_bfd_open): Update.
3297 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3298 * spu-linux-nat.c (spu_bfd_open): Update.
3299 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3300 (generic_load): Update.
3301 * windows-nat.c (windows_make_so): Update.
3302
3303 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3304
3305 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3306
3307 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3308
3309 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3310 SIGTRAMP_FRAME unwinding.
3311
3312 2012-07-20 Doug Evans <dje@google.com>
3313
3314 * NEWS: Document new options "set/show use-deprecated-index-sections",
3315 and delete reference to --use-deprecated-index-sections.
3316 * symfile.h (use_deprecated_index_sections): Delete.
3317 * dwarf2read.c (use_deprecated_index_sections): Make static.
3318 (read_index_from_section): Update wording of how to load
3319 deprecated index sections.
3320 (_initialize_dwarf2_read): New options
3321 "set/show use-deprecated-index-sections".
3322 * main.c (captured_main): Delete --use-deprecated-index-sections.
3323
3324 2012-07-20 Pedro Alves <palves@redhat.com>
3325
3326 PR threads/11692
3327 PR gdb/12203
3328
3329 * infrun.c (handle_inferior_event) <new thread>: Don't special
3330 case minus_one_ptid.
3331 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3332 * linux-thread-db.c (thread_get_info_callback): Don't return early
3333 if the thread is zombie.
3334 (thread_from_lwp): Change return type to void. Rewrite stale
3335 comment.
3336 (attach_thread): Don't return early if the thread is zombie,
3337 instead set its "dying" flag.
3338 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3339 (find_new_threads_callback): Don't return early if the thread is
3340 zombie.
3341
3342 2012-07-20 Pedro Alves <palves@redhat.com>
3343
3344 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3345 * target.c (target_wait): Likewise.
3346 (str_comma_list_concat_elem, do_option, target_options_to_string):
3347 New functions.
3348 * target.h (target_options_to_string): Declare.
3349
3350 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3351 Tom Tromey <tromey@redhat.com>
3352
3353 * dwarf2read.c (dwarf_decode_macros)
3354 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3355 DW_MACRO_GNU_transparent_include_alt>: New cases.
3356 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3357 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3358
3359 2012-07-20 Tom Tromey <tromey@redhat.com>
3360
3361 * dwarf2read.c (try_open_dwo_file): Don't call
3362 gdb_bfd_stash_filename.
3363
3364 2012-07-20 Pedro Alves <palves@redhat.com>
3365
3366 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3367 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3368 (i386_process_record): Tweak description comments.
3369
3370 2012-07-20 Pedro Alves <palves@redhat.com>
3371
3372 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3373 (i386_process_record): Use record_read_memory.
3374 * record.c (record_read_memory): New function.
3375 (record_arch_list_add_mem, record_exec_insn): Use
3376 record_read_memory.
3377 * record.h (record_read_memory): Declare.
3378
3379 2012-07-20 Yao Qi <yao@codesourcery.com>
3380
3381 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3382 NULL for xfree.
3383
3384 2012-07-19 Pedro Alves <palves@redhat.com>
3385
3386 * record.c (record_resume): Ask the target beneath to report all
3387 signals.
3388
3389 2012-07-19 Doug Evans <dje@google.com>
3390
3391 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3392 there's no section at address zero.
3393 (dwarf2_record_block_ranges): Ditto.
3394
3395 2012-07-19 Yao Qi <yao@codesourcery.com>
3396
3397 * command.h, remote.c: Fix a typo in comment.
3398
3399 2012-07-19 Tom Tromey <tromey@redhat.com>
3400
3401 PR exp/13206:
3402 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3403 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3404 OP_DECLTYPE>: New cases.
3405 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3406 (type_exp): Add new productions.
3407 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3408 and decltype.
3409 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3410 New case.
3411 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3412 OP_DECLTYPE>: New case.
3413 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3414 New case.
3415 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3416 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3417
3418 2012-07-19 Tom Tromey <tromey@redhat.com>
3419
3420 * c-exp.y (enum token_flags): New.
3421 (struct token) <cxx_only>: Remove.
3422 <flags>: New field.
3423 (tokentab3, tokentab2, ident_tokens): Update.
3424 (lex_one_token): Update. Handle FLAG_SHADOW.
3425
3426 2012-07-19 Tom Tromey <tromey@redhat.com>
3427
3428 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3429 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3430 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3431 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3432 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3433 type_exp production where appropriate.
3434 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3435 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3436 <UNOP_MEMVAL_TYPE>: New case.
3437 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3438 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3439 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3440 <UNOP_MEMVAL_TYPE>: New case.
3441 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3442 UNOP_REINTERPRET_CAST>: Update.
3443 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3444 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3445 UNOP_REINTERPRET_CAST>: Update.
3446 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3447 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3448 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3449 constants.
3450
3451 2012-07-19 Yao Qi <yao@codesourcery.com>
3452 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3455 and case 'var_optional_filename' together.
3456 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3457 instead of add_setshow_optional_filename_cmd for setshow command
3458 'args'. Set completer for 'set args'.
3459
3460 2012-07-18 Doug Evans <dje@google.com>
3461
3462 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3463 * common/gdb_vecs.c: New file, contents from utils.c.
3464 * common/host-defs.h: New file, contents from defs.h.
3465 * utils.h: New file, contents from defs.h.
3466 * defs.h: Move all declarations of objects defined in utils.c
3467 to utils.h (except QUIT() and related).
3468 #include "utils.h", "host-defs.h".
3469 * probe.h (probe_p): Move here from gdb_vecs.h.
3470 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3471 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3472 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3473 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3474 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3475 (COMMON_OBS): Add gdb_vecs.o.
3476 (gdb_vecs.o): New rule.
3477
3478 2012-07-18 Keith Seitz <keiths@redhat.com>
3479
3480 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3481 parameter. If non-zero, use SYMNAME as the canonical name
3482 for the SaL.
3483 Update all callers.
3484 (convert_linespec_to_sals): Use add_sal_to_sals for
3485 expressions, too.
3486 (decode_line_full): No need to "fill in missing canonical names"
3487 anymore. Simply make cleanups for the allocated names.
3488
3489 2012-07-18 Keith Seitz <keiths@redhat.com>
3490
3491 * linespec.c (struct linespec): Constify expression,
3492 source_filename, function_name, and label_name.
3493 (symbol_not_found_error): Make all parameters const.
3494 (linespec_parser_delete): No need to check for NULL
3495 when using xfree. Cast const char * to char * for xfree.
3496
3497 2012-07-18 Keith Seitz <keiths@redhat.com>
3498
3499 * breakpoint.c (invalid_thread_id_error): New function.
3500 (find_condition_and_thread): Use invalid_thread_id_error.
3501 (watch_command_1): Likewise.
3502
3503 2012-07-18 Tom Tromey <tromey@redhat.com>
3504
3505 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3506 * contrib/cc-with-tweaks.sh: New file.
3507
3508 2012-07-18 Tom Tromey <tromey@redhat.com>
3509
3510 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3511 (locate_dwz_sections): Recognize .gdb_index.
3512 (create_cus_from_index_list): New function.
3513 (create_cus_from_index): Use it. Handle .dwz data.
3514 (read_index_from_section): New function, extracted from
3515 dwarf2_read_index.
3516 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3517 if needed.
3518
3519 2012-07-18 Tom Tromey <tromey@redhat.com>
3520
3521 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3522 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3523 <is_dwz>: New field.
3524 (struct dwz_file): New.
3525 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3526 (locate_dwz_sections, dwarf2_get_dwz_file)
3527 (get_abbrev_section_for_cu): New functions.
3528 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3529 (read_and_check_type_unit_head): Add abbrev_section argument.
3530 (create_debug_types_hash_table): Update.
3531 (init_cutu_and_read_dies): Use proper abbrev section.
3532 (init_cutu_and_read_dies_no_follow): Likewise.
3533 (set_partial_user): Do nothing if PST==NULL.
3534 (read_comp_units_from_section): New function.
3535 (create_all_comp_units): Use it.
3536 (scan_partial_symbols, partial_die_parent_scope): Update.
3537 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3538 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3539 (find_partial_die): Add offset_in_dwz argument. Update.
3540 (guess_partial_die_structure_name, fixup_partial_die): Update.
3541 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3542 DW_FORM_GNU_strp_alt.
3543 (read_indirect_string_from_dwz): New function.
3544 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3545 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3546 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3547 (follow_die_offset): Add offset_in_dwz argument.
3548 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3549 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3550 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3551 Handle new macro forms.
3552 (dwarf_decode_macros): Update.
3553 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3554 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3555 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3556 (create_debug_types_hash_table): Use correct abbrev section.
3557 (get_debug_line_section): New function.
3558 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3559 (process_full_comp_unit): Pass 'required' argument to
3560 end_symtab_get_static_block.
3561 * buildsym.h (end_symtab_get_static_block): Update.
3562 * buildsym.c (end_symtab_get_static_block): Add 'required'
3563 argument.
3564 (end_symtab, end_expandable_symtab): Update.
3565
3566 2012-07-18 Tom Tromey <tromey@redhat.com>
3567
3568 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3569 (pagesize): Remove.
3570 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3571 (zlib_decompress_section): Remove.
3572 (dwarf2_read_section): Use gdb_bfd_map_section.
3573 (munmap_section_buffer): Remove.
3574 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3575 munmap_section_buffer.
3576 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3577 (struct gdb_bfd_section_data): New.
3578 (free_one_bfd_section): New function.
3579 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3580 (get_section_descriptor, zlib_decompress_section)
3581 (gdb_bfd_map_section): New functions.
3582 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3583
3584 2012-07-18 Tom Tromey <tromey@redhat.com>
3585
3586 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3587
3588 2012-07-18 Tom Tromey <tromey@redhat.com>
3589
3590 * gdb_bfd.c (struct gdb_bfd_data): New.
3591 (gdb_bfd_cache): New global.
3592 (struct gdb_bfd_cache_search): New.
3593 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3594 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3595 * gdb_bfd.h (gdb_bfd_open): Declare.
3596
3597 2012-07-18 Tom Tromey <tromey@redhat.com>
3598
3599 * utils.c (make_cleanup_bfd_unref): Rename from
3600 make_cleanup_bfd_close.
3601 * defs.h (make_cleanup_bfd_unref): Rename from
3602 make_cleanup_bfd_close.
3603 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3604 (bfd_openw_with_cleanup): Update.
3605 * corelow.c (core_open): Update.
3606 * dsrec.c (load_srec): Update.
3607 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3608 * remote-m32r-sdi.c (m32r_load): Update.
3609 * remote-mips.c (mips_load_srec): Update.
3610 (pmon_load_fast): Update.
3611 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3612 Update.
3613 (darwin_bfd_open): Update.
3614 * solib.c (solib_bfd_fopen): Update.
3615 * symfile-mem.c (symbol_file_add_from_memory): Update.
3616 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3617 (symfile_bfd_open): Update.
3618 (generic_load): Update.
3619
3620 2012-07-18 Tom Tromey <tromey@redhat.com>
3621
3622 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3623 (pmon_load_fast): Likewise.
3624 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3625 (m32r_upload_command): Likewise.
3626 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3627 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3628 Use make_cleanup_bfd_close.
3629
3630 2012-07-18 Tom Tromey <tromey@redhat.com>
3631
3632 * symfile.c (symfile_bfd_open): Don't copy name. Call
3633 gdb_bfd_stash_filename.
3634 (load_command): Open the new BFD before freeing the old.
3635 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3636 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3637 Call gdb_bfd_stash_filename.
3638 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3639 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3640 gdb_bfd_stash_filename.
3641 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3642 Free found_pathname.
3643 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3644 gdb_bfd_stash_filename.
3645 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3646 * machoread.c (macho_add_oso_symfile): Call
3647 gdb_bfd_stash_filename.
3648 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3649 gdb_bfd_stash_filename.
3650 (macho_check_dsym): Don't copy filename. Call
3651 gdb_bfd_stash_filename.
3652 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3653 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3654 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3655 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3656 * exec.c (exec_close): Don't free the BFD's filename.
3657 (exec_file_attach): Don't copy the filename. Call
3658 gdb_bfd_stash_filename.
3659 * corelow.c (core_close): Don't free the BFD's filename.
3660 (core_open): Call gdb_bfd_stash_filename.
3661 * corefile.c (reopen_exec_file): Remove #if 0 code.
3662 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3663 pathname.
3664 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3665
3666 2012-07-18 Tom Tromey <tromey@redhat.com>
3667
3668 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3669 gdb_bfd_unref.
3670 (free_dwo_file): Use gdb_bfd_unref.
3671 * cli/cli-dump.c: Include gdb_bfd.h.
3672 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3673 (bfd_openr_with_cleanup): Likewise.
3674 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3675 gdb_bfd_unref.
3676 * utils.c: Include gdb_bfd.h.
3677 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3678 * symfile.c: Include gdb_bfd.h.
3679 (separate_debug_file_exists): Use gdb_bfd_unref.
3680 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3681 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3682 (generic_load): Use gdb_bfd_ref.
3683 (reread_symbols): Use gdb_bfd_unref.
3684 * symfile-mem.c: Include gdb_bfd.h.
3685 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3686 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3687 * solib.c: Include gdb_bfd.h.
3688 (solib_bfd_fopen): Use gdb_bfd_ref.
3689 (solib_bfd_open): Use gdb_bfd_unref.
3690 (free_so_symbols): Use gdb_bfd_unref.
3691 (reload_shared_libraries_1): Use gdb_bfd_unref.
3692 * solib-spu.c: Include gdb_bfd.h.
3693 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3694 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3695 gdb_bfd_unref.
3696 * solib-frv.c: Include gdb_bfd.h.
3697 (enable_break2): Use gdb_bfd_unref.
3698 * solib-dsbt.c: Include gdb_bfd.h.
3699 (enable_break2): Use gdb_bfd_unref.
3700 * solib-darwin.c: Include gdb_bfd.h.
3701 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3702 gdb_bfd_unref.
3703 (darwin_bfd_open): Use gdb_bfd_unref.
3704 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3705 * remote-mips.c: Include gdb_bfd.h.
3706 (mips_load_srec): Use gdb_bfd_ref.
3707 (pmon_load_fast): Use gdb_bfd_ref.
3708 * remote-m32r-sdi.c: Include gdb_bfd.h.
3709 (m32r_load): Use gdb_bfd_ref.
3710 * record.c: Include gdb_bfd.h.
3711 (record_save_cleanups): Use gdb_bfd_unref.
3712 (cmd_record_save): Use gdb_bfd_unref.
3713 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3714 gdb_bfd_unref.
3715 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3716 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3717 * objfiles.c: Include gdb_bfd.h.
3718 (free_objfile): Use gdb_bfd_unref.
3719 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3720 gdb_bfd.c.
3721 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3722 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3723 (macho_check_dsym): Likewise.
3724 * m32r-rom.c: Include gdb_bfd.h.
3725 (m32r_load): Use gdb_bfd_ref.
3726 (m32r_upload_command): Use gdb_bfd_ref.
3727 * jit.c: Include gdb_bfd.h.
3728 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3729 * gdb_bfd.h: New file.
3730 * gdb_bfd.c: New file.
3731 * gcore.c: Include gdb_bfd.h.
3732 (create_gcore_bfd): Use gdb_bfd_ref.
3733 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3734 (gcore_command): Use gdb_bfd_unref.
3735 * exec.c: Include gdb_bfd.h.
3736 (exec_close): Use gdb_bfd_unref.
3737 (exec_close_1): Use gdb_bfd_unref.
3738 (exec_file_attach): Use gdb_bfd_ref.
3739 * elfread.c: Include gdb_bfd.h.
3740 (build_id_verify): Use gdb_bfd_unref.
3741 * dsrec.c: Include gdb_bfd.h.
3742 (load_srec): Use gdb_bfd_ref.
3743 * corelow.c: Include gdb_bfd.h.
3744 (core_close): Use gdb_bfd_unref.
3745 (core_open): Use gdb_bfd_ref.
3746 * bfd-target.c: Include gdb_bfd.h.
3747 (target_bfd_xclose): Use gdb_bfd_unref.
3748 (target_bfd_reopen): Use gdb_bfd_ref.
3749 * Makefile.in (SFILES): Add gdb_bfd.c.
3750 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3751 (COMMON_OBS): Add gdb_bfd.o.
3752
3753 2012-07-18 Keith Seitz <keiths@redhat.com>
3754
3755 * breakpoint.c (find_condition_and_thread): Initialize
3756 TASK and REST.
3757 (create_breakpiont): find_condition_and_thread will now
3758 initialize COND_STRING, THREAD, and REST (and TASK).
3759 (addr_string_to_sals): Likewise.
3760
3761 2012-07-18 Pedro Alves <palves@redhat.com>
3762
3763 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3764 Pull the single step breakpoints out of the target.
3765
3766 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3767
3768 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3769 * stap-probe.c (compile_probe_arg): Likewise.
3770
3771 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3772
3773 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3774 (elf_compile_to_ax): Likewise.
3775 * infrun.c (insert_exception_resume_from_probe): Likewise.
3776 (check_exception_resume): Remove `objfile' variable.
3777 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3778 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3779 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3780 (compare_entries): Rename to...
3781 (compare_probes): ...this. Adjust function to work with
3782 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3783 respectively.
3784 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3785 `VEC (probe_p) *'.
3786 (print_ui_out_info): Adjust argument to be `struct probe *'.
3787 (info_probes_for_ops): Adjust internal computations to use
3788 `VEC (probe_p) *'.
3789 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3790 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3791 gen_info_probes_table_values>: Remove `objfile' argument.
3792 (struct probe) <objfile>: New field.
3793 (find_probe_by_pc): Remove `objfile' argument.
3794 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3795 (stap_get_probe_argument_count): Likewise.
3796 (stap_get_arg): Likewise.
3797 (stap_evaluate_probe_argument): Likewise.
3798 (stap_compile_to_ax): Likewise.
3799 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3800 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3801 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3802 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3803 sym_compile_to_ax>: Likewise.
3804
3805 2012-07-18 Terry Guo <terry.guo@arm.com>
3806
3807 PR 14329
3808 * defs.h (GDB_MI_MSG_WIDTH): New.
3809 * ser_base (ser_base_read_error_fd): New function.
3810 (do_ser_base_readchar): Poll error file descriptor as well as
3811 standard output.
3812 (generic_readchar): Refactor error handling.
3813
3814 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3815
3816 * NEWS: Create a new section for the next release branch.
3817 Rename the section of the current branch, now that it has
3818 been cut.
3819
3820 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3821
3822 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3823 * version.in: Bump version to 7.5.50.20120718-cvs.
3824
3825 2012-07-17 Keith Seitz <keiths@redhat.com>
3826
3827 * linespec.c (linespec_parse_line_offset): Make parameter
3828 const.
3829
3830 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 PR 11914
3833 * f-valprint.c (info_common_command): New variable frame_id.
3834 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3835 * printcmd.c (print_variable_and_value): Extend function comment.
3836 Add comment for invalidated FRAME.
3837 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3838 FI form FRAME_ID after each print_frame_local_vars.
3839 (struct print_variable_and_value_data): Change frame to frame_id.
3840 (do_print_variable_and_value): New variable frame, initialize it from
3841 p->frame_id. Add comment for invalidated FRAME.
3842 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3843 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3844 for invalidated FRAME.
3845
3846 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3847 Pedro Alves <palves@redhat.com>
3848
3849 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3850 loop.
3851
3852 2012-07-16 Tom Tromey <tromey@redhat.com>
3853
3854 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3855
3856 2012-07-15 Doug Evans <dje@google.com>
3857
3858 * dwarf2read.c (stmt_list_hash): New struct.
3859 (type_unit_group): Embed "per_cu" member, remove pointer.
3860 New union member "t", move member "tus" into it, all uses updated.
3861 New member "hash", replaces member "line_offset, all uses updated.
3862 (quick_file_names): Replace member "offset" with "hash", all uses
3863 updated.
3864 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3865 (hash_file_name_entry, eq_file_name_entry): Call them.
3866 (hash_type_unit_group, eq_type_unit_group): Ditto.
3867 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3868 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3869 (dw2_get_file_names): Update.
3870 (create_type_unit_group): Replace "per_cu" arg with "cu".
3871 All callers updated. Fix "quick" (.gdb_index) handling.
3872 (get_type_unit_group): Replace "per_cu" arg with "cu".
3873 All callers updated.
3874 (build_type_unit_groups): Don't reset tu_stats.
3875
3876 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3877 "tab_cur_size". Change member "tab" to be a htab_t.
3878 (create_filename_seen_cache): Update.
3879 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3880 (filename_seen): Update.
3881
3882 2012-07-13 Doug Evans <dje@google.com>
3883
3884 * symtab.c (filename_seen): Update comment.
3885
3886 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3887 Doug Evans <dje@google.com>
3888
3889 * buildsym.c (end_symtab_1): Split it to ...
3890 (end_symtab_get_static_block): ... this ...
3891 (end_symtab_from_static_block): ... and this function.
3892 (end_symtab, end_expandable_symtab): Call them.
3893 * buildsym.h (end_symtab_get_static_block)
3894 (end_symtab_from_static_block): New declarations.
3895 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3896 Set its valid CU ranges.
3897
3898 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
3900 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3901 DW_OP_GNU_parameter_ref.
3902
3903 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3904
3905 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3906 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3907
3908 2012-07-13 Doug Evans <dje@google.com>
3909
3910 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3911 (filename_seen_cache): New struct.
3912 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3913 (create_filename_seen_cache): New function.
3914 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3915 (filename_seen): Delete arg "first". New arg "cache". All callers
3916 updated.
3917 (output_source_filename_data): New struct.
3918 (output_source_filename): Delete arg "first". New arg "data".
3919 All callers updated.
3920 (sources_info): Delete local "first". New locals "data", "cleanups".
3921 Rewrite to use filename_seen_cache.
3922 (add_partial_filename_data): Delete member "first". New member
3923 "filename_seen_cache". All uses updated.
3924 (make_source_files_completion_list): Rewrite to use
3925 filename_seen_cache.
3926
3927 2012-07-12 Doug Evans <dje@google.com>
3928
3929 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3930
3931 2012-07-10 Doug Evans <dje@google.com>
3932
3933 PR gdb/13498
3934 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3935 all_type_unit_groups, type_unit_groups, tu_stats.
3936 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3937 All uses updated. Add type_unit_group to union "s".
3938 (type_unit_group): New struct.
3939 (IS_TYPE_UNIT_GROUP): New macro.
3940 (abbrev_table): Delete unused member "section".
3941 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3942 (dw2_get_cu): Assert not used with type_unit_group.
3943 (dw2_get_primary_cu): New function.
3944 (dw2_build_type_unit_groups_reader): New function.
3945 (dw2_build_type_unit_groups): New function.
3946 (dw2_get_file_names): Assert not called on type units.
3947 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3948 Redo loop to iterate over type unit groups instead of type units.
3949 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3950 (read_abbrev_offset): New function.
3951 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3952 updated.
3953 (create_partial_symtab): New function.
3954 (process_psymtab_comp_unit_reader): Assert not used with type units.
3955 Call create_partial_symtab.
3956 (process_psymtab_type_unit): Delete.
3957 (hash_type_unit_group, eq_type_unit_group): New functions.
3958 (allocate_type_unit_groups_table): New function.
3959 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3960 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3961 (create_type_unit_group, get_type_unit_group): New functions.
3962 (tu_abbrev_offset): New struct.
3963 (sort_tu_by_abbrev_offset): New function.
3964 (add_type_unit_group_to_table): New function.
3965 (build_type_unit_groups): New function.
3966 (build_type_psymtabs_reader): New function.
3967 (build_type_psymtab_dependencies): New function.
3968 (build_type_psymtabs): Rewrite.
3969 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3970 is seen in a type unit.
3971 (process_queue): Move symtab expansion debugging printfs here.
3972 Call process_full_type_unit for type units.
3973 (compute_symtab_includes): Assert not called for type units.
3974 (process_cu_includes): Don't call compute_symtab_includes for
3975 type units.
3976 (process_full_type_unit): New function.
3977 (process_imported_unit_die): Flag an error if called for type units.
3978 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3979 updated. Assert not called for type units.
3980 (read_file_scope): Call dwarf2_start_symtab.
3981 (setup_type_unit_groups): New function.
3982 (read_type_unit_scope): Rewrite.
3983 (abbrev_table_read_table): Initialize abbrev_table->offset.
3984 (abbrev_table_free_cleanup): New function.
3985 (dwarf2_start_symtab): New function.
3986 (load_full_type_unit): Assert not called for type unit groups.
3987 * buildsym.c (finish_block_internal): New arg "expandable".
3988 All callers updated.
3989 (start_symtab): Move most contents to ...
3990 (restart_symtab): ... here. New function.
3991 (reset_symtab_globals): New function.
3992 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3993 Call reset_symtab_globals.
3994 (end_symtab, end_expandable_symtab): New functions.
3995 (set_missing_symtab, augment_type_symtab): New functions.
3996 * buildsym.h (end_expandable_symtab): Declare.
3997 (augment_type_symtab, restart_symtab): Declare.
3998 * psympriv.h (struct partial_symtab): New member "anonymous".
3999 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4000 anonymous psymtabs.
4001 (read_psymtabs_with_filename): Ditto.
4002 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4003 (expand_symtabs_matching_via_partial): Ditto.
4004 (dump_psymtab): Update.
4005 * dictionary.c (dict_add_pending): New function.
4006 * dictionary.h (dict_add_pending): Declare.
4007
4008 2012-07-09 Doug Evans <dje@google.com>
4009
4010 * buildsym.c (start_subfile): Remove unnecessary check for
4011 name == NULL.
4012
4013 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4014
4015 * dwarf2read.c (load_full_type_unit): Simplify.
4016
4017 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4018 to struct signatured_type **. All uses updated.
4019
4020 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4021 All callers updated.
4022
4023 2012-07-09 Tom Tromey <tromey@redhat.com>
4024
4025 * c-exp.y (check_parameter_typelist): New function.
4026 (parameter_typelist): Call it.
4027 * eval.c (make_params): Handle '(void)' case.
4028 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4029 '(void)' case.
4030
4031 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * common/linux-ptrace.c: Include gdb_assert.h.
4034 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4035 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4036 stdint.h.
4037 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4038 functions.
4039 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4040 * linux-nat.c (linux_child_post_attach)
4041 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4042
4043 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4046 nptl <2.7 bug workaround for core files.
4047
4048 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4051 clearing.
4052 (save_siginfo): Remove.
4053 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4054 call.
4055 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4056 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4057 * linux-nat.h (struct lwp_info): Remove field siginfo.
4058
4059 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 Code cleanup for the next patch.
4062 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4063 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4064 call for it.
4065 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4066 (ia64_linux_stopped_data_address):
4067 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4068 the return value.
4069 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4070 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4071 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4072 call for it.
4073
4074 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4075
4076 PR 14321
4077 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4078 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4079
4080 2012-07-06 Tom Tromey <tromey@redhat.com>
4081
4082 * c-exp.y (DOTDOTDOT): New token.
4083 (func_mod, exp): Use parameter_typelist.
4084 (parameter_typelist): New production.
4085 (tokentab3): Add "..." token.
4086 * eval.c (make_params): Handle varargs.
4087 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4088 varargs.
4089
4090 2012-07-06 Tom Tromey <tromey@redhat.com>
4091
4092 PR exp/9608:
4093 * c-exp.y (%union) <tvec>: Change type.
4094 (func_mod): Now uses <tvec> type.
4095 (exp): Update for tvec change.
4096 (direct_abs_decl): Push the typelist.
4097 (func_mod): Return a typelist.
4098 (nonempty_typelist): Update for tvec change.
4099 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4100 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4101 * parse.c (pop_type_list): New function.
4102 (push_typelist): New function.
4103 (follow_types): Handle tp_function_with_arguments.
4104 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4105 (enum type_pieces) <tp_function_with_arguments>: New constant.
4106 (union type_stack_elt) <typelist_val>: New field.
4107 (push_typelist): Declare.
4108
4109 2012-07-06 Tom Tromey <tromey@redhat.com>
4110
4111 * c-exp.y (%union) <type_stack>: New field.
4112 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4113 (ptr_operator_ts): New production.
4114 (ptype): Update.
4115 * parse.c (type_stack_reserve): New function.
4116 (check_type_stack_depth): Use it.
4117 (pop_type_stack, append_type_stack, push_type_stack)
4118 (get_type_stack, type_stack_cleanup): New functions.
4119 (follow_types): Handle tp_type_stack.
4120 (_initialize_parse): Simplify initialization.
4121 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4122 constant.
4123 (union type_stack_elt) <stack_val>: New field.
4124 (get_type_stack, append_type_stack, push_type_stack)
4125 (type_stack_cleanup): Declare.
4126
4127 2012-07-06 Tom Tromey <tromey@redhat.com>
4128
4129 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4130 Remove.
4131 (struct type_stack): New.
4132 * parse.c (type_stack, type_stack_size, type_stack_depth):
4133 Remove.
4134 (type_stack): New global.
4135 (parse_exp_in_context, check_type_stack_depth)
4136 (insert_into_type_stack, insert_type, push_type, push_type_int)
4137 (insert_type_address_space, pop_type, pop_type_int)
4138 (_initialize_parse): Update.
4139
4140 2012-07-06 Tom Tromey <tromey@redhat.com>
4141
4142 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4143 Remove %type.
4144
4145 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4146
4147 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4148
4149 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4150 Jan Kratochvil <jan.kratochvil@redhat.com>
4151
4152 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4153 alloca with xmalloc/xfree.
4154
4155 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4156
4157 * MAINTAINERS (Write After Approval): Add myself to the list.
4158
4159 2012-07-05 Doug Evans <dje@google.com>
4160
4161 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4162
4163 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4164
4165 * ax-gdb.c (cli/cli-utils.h): New include.
4166 (linespec.h): Ditto.
4167 (agent_eval_command_one): New function.
4168 (agent_command_1): Ditto.
4169 (agent_command): Call function agent_command_1.
4170 (agent_eval_command): Ditto.
4171 (_initialize_ax_gdb): Change help for "maint agent"
4172 and "maint agent-eval".
4173
4174 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4175
4176 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4177 * cli/cli-utils.c (check_for_argument): New function.
4178 * cli/cli-utils.h (check_for_argument): Ditto.
4179
4180 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4181
4182 * NEWS: Mention x32 ABI support.
4183
4184 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4185
4186 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4187 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4188
4189 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4190 and pc_regnum_from_eax to -1. Update SP regnum from
4191 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4192 needed.
4193
4194 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4195 pc_regnum_from_eax.
4196
4197 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4198
4199 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4200 * dwarf2expr.h: Include gdbtypes.h.
4201 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4202 these forward declarations.
4203 (cu_offset, sect_offset): Move these ...
4204 * gdbtypes.h: Remove include dwarf2expr.h.
4205 (cu_offset, sect_offset): ... here.
4206
4207 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4208
4209 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4210 (amd64_linux_sigtramp_code): This.
4211 (amd64_x32_linux_sigtramp_code): New.
4212 (LINUX_SIGTRAMP_LEN): Updated.
4213 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4214
4215 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4216
4217 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4218
4219 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4220
4221 * config.in: Regenerate.
4222 * configure: Regenerate.
4223 * configure.ac: Remove check for gnu/libc-version.h.
4224 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4225 gnu/libc-version.h.
4226 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4227 variables libc_version, libc_major and libc_minor. Replace sscanf by
4228 inferior_has_bug. Extend the comment.
4229
4230 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * linux-thread-db.c (inferior_has_bug): New function.
4233 (thread_db_find_new_threads_silently): Return boolean as checked by
4234 inferior_has_bug, describe it in the comments.
4235 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4236 earlier. Abort the initialization if it returned non-zero.
4237 (thread_db_new_objfile): Exclude debug files.
4238 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4239 if UNTIL_NO_NEW,
4240
4241 2012-07-02 Doug Evans <dje@google.com>
4242
4243 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4244 related to queue management.
4245
4246 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4247 instead of "debug dwarf2-die" in debugging printfs.
4248 (create_debug_info_hash_table_reader): Ditto.
4249 (create_debug_info_hash_table): Ditto.
4250 (init_dwo_file): Ditto.
4251 (init_cutu_and_read_dies): Add debugging printf.
4252 (init_cutu_and_read_dies_no_follow): Ditto.
4253 (process_psymtab_comp_unit_reader): Ditto.
4254
4255 2012-07-02 Stan Shebs <stan@codesourcery.com>
4256
4257 Add target-side support for dynamic printf.
4258 * NEWS: Mention the additional style.
4259 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4260 (struct bp_location): New field cmd_bytecode.
4261 * breakpoint.c: Include format.h.
4262 (disconnected_dprintf): New global.
4263 (parse_cmd_to_aexpr): New function.
4264 (build_target_command_list): New function.
4265 (insert_bp_location): Call it.
4266 (remove_breakpoints_pid): Skip dprintf breakpoints.
4267 (print_one_breakpoint_location): Ditto.
4268 (dprintf_style_agent): New global.
4269 (dprintf_style_enums): Add dprintf_style_agent.
4270 (update_dprintf_command_list): Add agent case.
4271 (agent_printf_command): New function.
4272 (_initialize_breakpoint): Add new commands.
4273 * common/ax.def (printf): New bytecode.
4274 * ax.h (ax_string): Declare.
4275 * ax-gdb.h (gen_printf): Declare.
4276 * ax-gdb.c: Include cli-utils.h, format.h.
4277 (gen_printf): New function.
4278 (maint_agent_print_command): New function.
4279 (_initialize_ax_gdb): Add maint agent-printf command.
4280 * ax-general.c (ax_string): New function.
4281 (ax_print): Add printf disassembly.
4282 * Makefile.in (SFILES): Add format.c
4283 (COMMON_OBS): Add format.o.
4284 * common/format.h: New file.
4285 * common/format.c: New file.
4286 * printcmd.c: Include format.h.
4287 (ui_printf): Call parse_format_string.
4288 * remote.c (remote_state): New field breakpoint_commands.
4289 (PACKET_BreakpointCommands): New enum.
4290 (remote_breakpoint_commands_feature): New function.
4291 (remote_protocol_features): Add new BreakpointCommands entry.
4292 (remote_can_run_breakpoint_commands): New function.
4293 (remote_add_target_side_commands): New function.
4294 (remote_insert_breakpoint): Call it.
4295 (remote_insert_hw_breakpoint): Ditto.
4296 (_initialize_remote): Add new packet configuration for
4297 target-side breakpoint commands.
4298 * target.h (struct target_ops): New field
4299 to_can_run_breakpoint_commands.
4300 (target_can_run_breakpoint_commands): New macro.
4301 * target.c (update_current_target): Handle
4302 to_can_run_breakpoint_commands.
4303
4304 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4305
4306 Execute -ix and -iex only after system and user gdbinit files.
4307 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4308 processing down after gdbinit files.
4309
4310 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4311
4312 Add fnmatch-gnu module.
4313 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4314 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4315 * gnulib/aclocal.m4: Regenerate.
4316 * gnulib/config.in: Regenerate.
4317 * gnulib/configure: Regenerate.
4318 * gnulib/import/dummy.c: Remove.
4319 * gnulib/import/Makefile.am: Regenerate.
4320 * gnulib/import/Makefile.in: Likewise.
4321 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4322 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4323 * gnulib/import/alloca.c: New file.
4324 * gnulib/import/alloca.in.h: Likewise.
4325 * gnulib/import/config.charset: Likewise.
4326 * gnulib/import/fnmatch.c: Likewise.
4327 * gnulib/import/fnmatch.in.h: Likewise.
4328 * gnulib/import/fnmatch_loop.c: Likewise.
4329 * gnulib/import/localcharset.c: Likewise.
4330 * gnulib/import/localcharset.h: Likewise.
4331 * gnulib/import/m4/alloca.m4: Likewise.
4332 * gnulib/import/m4/codeset.m4: Likewise.
4333 * gnulib/import/m4/configmake.m4: Likewise.
4334 * gnulib/import/m4/fcntl-o.m4: Likewise.
4335 * gnulib/import/m4/fnmatch.m4: Likewise.
4336 * gnulib/import/m4/glibc21.m4: Likewise.
4337 * gnulib/import/m4/localcharset.m4: Likewise.
4338 * gnulib/import/m4/locale-fr.m4: Likewise.
4339 * gnulib/import/m4/locale-ja.m4: Likewise.
4340 * gnulib/import/m4/locale-zh.m4: Likewise.
4341 * gnulib/import/m4/mbrtowc.m4: Likewise.
4342 * gnulib/import/m4/mbsinit.m4: Likewise.
4343 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4344 * gnulib/import/m4/mbstate_t.m4: Likewise.
4345 * gnulib/import/m4/stdbool.m4: Likewise.
4346 * gnulib/import/m4/wchar_h.m4: Likewise.
4347 * gnulib/import/m4/wctype_h.m4: Likewise.
4348 * gnulib/import/m4/wint_t.m4: Likewise.
4349 * gnulib/import/mbrtowc.c: Likewise.
4350 * gnulib/import/mbsinit.c: Likewise.
4351 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4352 * gnulib/import/mbsrtowcs-state.c: Likewise.
4353 * gnulib/import/mbsrtowcs.c: Likewise.
4354 * gnulib/import/ref-add.sin: Likewise.
4355 * gnulib/import/ref-del.sin: Likewise.
4356 * gnulib/import/stdbool.in.h: Likewise.
4357 * gnulib/import/streq.h: Likewise.
4358 * gnulib/import/strnlen1.c: Likewise.
4359 * gnulib/import/strnlen1.h: Likewise.
4360 * gnulib/import/verify.h: Likewise.
4361 * gnulib/import/wchar.in.h: Likewise.
4362 * gnulib/import/wctype.in.h: Likewise.
4363
4364 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 Support shell wildcards for 'set auto-load safe-path'.
4367 * auto-load.c: Include fnmatch.h.
4368 (filename_is_in_dir): Rename to ...
4369 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4370 it. Update function comment. Rename dir_len to pattern_len. New
4371 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4372 messages. Use gdb_filename_fnmatch.
4373 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4374 pattern.
4375 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4376 * defs.h (gdb_filename_fnmatch): New declaration.
4377 * utils.c: Include fnmatch.h.
4378 (gdb_filename_fnmatch): New function.
4379
4380 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4381
4382 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4383 `-probe' and `-probe-stap' options.
4384
4385 2012-07-01 Yao Qi <yao@codesourcery.com>
4386
4387 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4388 always_inserted_off, and always_inserted_enums.
4389 Change always_inserted_mode's type to 'enum auto_boolean'.
4390 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4391 callers.
4392 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4393 of add_setshow_enum_cmd.
4394 * infrun.c: Remove can_use_displaced_stepping_auto,
4395 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4396 can_use_displaced_stepping_enum.
4397 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4398 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4399 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4400 add_setshow_enum_cmd.
4401
4402 2012-06-30 Doug Evans <dje@google.com>
4403
4404 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4405 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4406 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4407
4408 2012-06-29 Doug Evans <dje@google.com>
4409
4410 * linespec.c: #include "stack.h".
4411 (decode_line_with_current_source): Moved here from symtab.c and
4412 renamed from decode_line_spec. All callers updated.
4413 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4414 renamed from decode_line_spec_1. All callers updated.
4415 * linespec.h (decode_line_with_current_source): Move declaration here
4416 from symtab.h and renamed from decode_line_spec.
4417 (decode_line_with_last_displayed): Move declaration here from symtab.h
4418 and renamed from decode_line_spec_1.
4419 * macrocmd.c: #include "linespec.h".
4420 * symtab.c: Remove #include "linespec.h".
4421
4422 2012-06-28 Doug Evans <dje@google.com>
4423
4424 * dwarf2read.c (get_cu_length): New function.
4425 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4426 (create_debug_types_hash_table): Ditto.
4427 (init_cutu_and_read_dies): Ditto.
4428 (init_cutu_and_read_dies_no_follow): Ditto.
4429
4430 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4431
4432 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4433 (struct abbrev_table): Define.
4434 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4435 abbrev_table.
4436 (init_cutu_and_read_dies): Update.
4437 (abbrev_table_alloc_abbrev): New function. Replaces
4438 dwarf_alloc_abbrev. All callers updated.
4439 (abbrev_table_add_abbrev): New function.
4440 (abbrev_table_lookup_abbrev): New function. Replaces
4441 dwarf2_lookup_abbrev. All callers updated.
4442 (abbrev_table_read_table): New function. Contents moved here from
4443 dwarf2_read_abbrevs.
4444 (dwarf2_read_abbrevs): Call it.
4445 (abbrev_table_free): New function.
4446 (dwarf2_free_abbrev_table): Call it.
4447
4448 2012-06-28 Stan Shebs <stan@codesourcery.com>
4449
4450 * osdata.c (info_osdata_command): Filter out "Title" columns
4451 from non-MI uses.
4452 * common/linux-osdata.c (struct osdata_type): Add title field.
4453 (osdata_table): Add titles to each entry.
4454 (linux_command_xfer_osdata): Add a column for title data.
4455
4456 2012-06-28 Stan Shebs <stan@codesourcery.com>
4457
4458 Make logging work for MI.
4459 * NEWS: Mention it.
4460 * interps.h (interp_set_logging_ftype): New typedef.
4461 (struct interp_procs): New field set_logging_proc.
4462 (current_interp_set_logging): Declare.
4463 * interps.c (current_interp_set_logging): New function.
4464 * cli/cli-logging.c: Include interps.h.
4465 (set_logging_redirect): Call current_interp_set_logging.
4466 (pop_output_files): Ditto.
4467 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4468 * mi/mi-console.h (mi_console_set_raw): Declare.
4469 * mi/mi-console.c (mi_console_set_raw): New function.
4470 * mi/mi-interp.c (saved_raw_stdout): New global.
4471 (mi_set_logging): New function.
4472 (_initialize_mi_interp): Add it to interp procs.
4473
4474 2012-06-28 Doug Evans <dje@google.com>
4475
4476 * symtab.c (lookup_symbol_aux_objfile): Use
4477 ALL_OBJFILE_PRIMARY_SYMTABS.
4478
4479 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4480
4481 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4482
4483 * common/buffer.c: Include inttypes.h and stdint.h.
4484 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4485
4486 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 Pedro Alves <palves@redhat.com>
4488
4489 * gdbthread.h (ALL_THREADS): New macro.
4490 (thread_list): Declare.
4491 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4492 going, but instead fall through to the stepping handling.
4493 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4494 the passed in signal. Adjust debug output.
4495 (resume_callback): Rename to ...
4496 (linux_nat_resume_callback): ... this. Pass the thread's last
4497 stop signal, if in "pass" state.
4498 (linux_nat_resume): Adjust to rename.
4499 (stop_wait_callback): New assertion. Don't respawn signals;
4500 instead let the LWP remain with SIGNALLED set.
4501 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4502 * remote.c (append_pending_thread_resumptions): New.
4503 (remote_vcont_resume): Call it.
4504 * target.h (target_resume): Extend comment.
4505
4506 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4507
4508 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4509
4510 2012-06-27 Doug Evans <dje@google.com>
4511
4512 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4513 Delete have_addr_base, unused. All uses updated.
4514 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4515 (dwarf2_get_pc_bounds): Add ranges_base.
4516 (dwarf2_record_block_ranges): Ditto.
4517
4518 2012-06-27 Tom Tromey <tromey@redhat.com>
4519
4520 PR macros/7961:
4521 * varobj.c (varobj_create): Update.
4522 (varobj_set_value): Update.
4523 * tracepoint.c (validate_actionline): Update.
4524 (encode_actions_1): Update.
4525 * parse.c (parse_exp_1): Add 'pc' argument.
4526 (parse_exp_in_context): Add 'pc' argument. Change how
4527 expression_context_pc is set.
4528 (parse_expression): Update.
4529 (parse_field_expression): Update.
4530 * expression.h (parse_exp_1): Update.
4531 * eval.c (parse_to_comma_and_eval): Update.
4532 * breakpoint.c (set_breakpoint_condition): Update.
4533 (update_watchpoint): Update.
4534 (init_breakpoint_sal): Update
4535 (find_condition_and_thread): Update.
4536 (watch_command_1): Update.
4537 (update_breakpoint_locations): Update.
4538 * ada-lang.c (ada_read_renaming_var_value): Update.
4539 (create_excep_cond_exprs): Update.
4540
4541 2012-06-27 Doug Evans <dje@google.com>
4542
4543 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4544 type units.
4545
4546 2012-06-26 Doug Evans <dje@google.com>
4547
4548 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4549 prototype.
4550 (error_check_comp_unit_head): New arg abbrev_section. All callers
4551 updated.
4552 (read_and_check_comp_unit_head): Ditto.
4553 (read_and_check_type_unit_head): Ditto.
4554
4555 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4556
4557 New attribute 'last' for gdb.Symtab_and_line.
4558 * NEWS (Python Scripting): Add entry about the new attribute.
4559 * python/py-symtab.c (salpy_get_last): New function which
4560 implements the get method for the 'last' attribute of
4561 gdb.Symtab_and_line.
4562 (sal_object_getset): Add entry for the 'last' attribute.
4563
4564 2012-06-26 Doug Evans <dje@google.com>
4565
4566 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4567 (dwo_sections): Add macinfo, macro.
4568 (dwarf2_locate_dwo_sections): Watch for macro sections.
4569 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4570 All callers updated. Handle DWO files.
4571
4572 * NEWS: Mention new options "set debug dwarf2-read" and
4573 "set debug symtab-create".
4574 * dwarf2read.c (dwarf2_read_debug): New static global.
4575 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4576 (process_queue): Ditto.
4577 (process_full_comp_unit): Ditto.
4578 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4579 * elfread.c (elf_symfile_read): Add debugging printf.
4580 * minsyms.c (install_minimal_symbols): Ditto.
4581 * psymtab.c (allocate_psymtab): Ditto.
4582 * symfile.c (allocate_symtab): Ditto.
4583 * symtab.c (symtab_create_debug): New global.
4584 (_initialize_symtab): Add new option "set debug symtab-create".
4585 * symtab.h (symtab_create_debug): Declare.
4586
4587 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4588 (lookup_dwo_type_unit): Ditto.
4589
4590 2012-06-26 Roland McGrath <roland@hack.frob.com>
4591 H.J. Lu <hongjiu.lu@intel.com>
4592
4593 * amd64-linux-nat.c: Include <sys/user.h>.
4594 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4595 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4596 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4597
4598 * configure.ac: Check if the fs_base and gs_base members of
4599 `struct user_regs_struct' exist.
4600 * config.in: Regenerated.
4601 * configure: Likewise.
4602
4603 2012-06-25 Michael Eager <eager@eagercon.com>
4604
4605 PR python/14291
4606 * python/python.c (gdbpy_write): Check for interrupted output.
4607
4608 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4609
4610 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4611 register as a stack alignment in ARM mode.
4612
4613 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4614
4615 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4616 * gnulib/config.in: Regenerate.
4617 * gnulib/configure: Likewise.
4618 * gnulib/import/m4/extensions.m4: Update it.
4619 * gnulib/import/m4/gnulib-common.m4: Likewise.
4620 * gnulib/import/m4/memmem.m4: Likewise.
4621 * gnulib/import/m4/mmap-anon.m4: Likewise.
4622 * gnulib/import/m4/multiarch.m4: Likewise.
4623 * gnulib/import/stdint.in.h: Likewise.
4624
4625 2012-06-24 Yao Qi <yao@codesourcery.com>
4626
4627 * corefile.c (write_memory_with_notification): New.
4628 * gdbcore.h: Declare write_memory_with_notification.
4629 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4630 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4631 * valops.c (value_assign): Likewise.
4632 * python/py-inferior.c (infpy_write_memory): Call
4633 'write_memory_with_notification'.
4634
4635 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4636
4637 * cc-with-index.sh: Use also -ex "set auto-load no".
4638
4639 2012-06-23 Doug Evans <dje@google.com>
4640
4641 PR 14125
4642 * NEWS: Document additions to .gdb_index.
4643 * dwarf2read.c: #include "gdb/gdb-index.h".
4644 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4645 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4646 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4647 (dwarf2_read_index): Recognize version 7.
4648 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4649 block_kind, domain): All callers updated.
4650 (dw2_find_symbol_file): Handle new index CU values.
4651 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4652 (add_index_entry): New args is_static, kind. All callers updated.
4653 (offset_type_compare, uniquify_cu_indices): New functions
4654 (symbol_kind): New function.
4655 (write_psymtabs_to_index): Remove duplicate CU values.
4656 (write_psymtabs_to_index): Write .gdb_index version 7.
4657
4658 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4659
4660 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4661 * configure: Regenerate.
4662
4663 2012-06-20 Yao Qi <yao@codesourcery.com>
4664
4665 * python/py-inferior.c: Update comments of infpy_read_memory
4666 and infpy_write_memory.
4667
4668 2012-06-19 Tom Tromey <tromey@redhat.com>
4669
4670 PR exp/9514:
4671 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4672 (push_type_address_space): Remove.
4673 * parse.c (insert_into_type_stack): New function.
4674 (insert_type): Likewise.
4675 (insert_type_address_space): Rename from push_type_address_space.
4676 Insert tp_space_identifier.
4677 * c-exp.y (ptr_operator): New production.
4678 (abs_decl): Use ptr_operator.
4679 (space_identifier): Call insert_type_address_space.
4680 (ptype): Don't use const_or_volatile_or_space_identifier.
4681 (const_or_volatile_noopt): Call insert_type.
4682 (conversion_type_id, conversion_declarator): New productions.
4683 (operator): Use conversion_type_id.
4684
4685 2012-06-18 Doug Evans <dje@google.com>
4686
4687 * symtab.h (minimal_symbol): New member created_by_gdb.
4688 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4689 created by gdb.
4690 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4691 (search_symbols): Call it instead of lookup_symbol.
4692 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4693
4694 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4695 Adjust address for DW_OP_GNU_addr_index.
4696 * dwarf2expr.h (dwarf_expr_context): Update comment.
4697 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4698 all callers updated. Handle TLS vars described with
4699 DW_OP_GNU_const_index.
4700 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4701 and DW_OP_GNU_const_index.
4702 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4703
4704 * block.c (find_block_in_blockvector): Make explicit the fact that we
4705 ignore GLOBAL_BLOCK.
4706
4707 2012-06-18 Tom Tromey <tromey@redhat.com>
4708
4709 * c-exp.y (operator): Remove trailing space after "delete" and
4710 "delete[]".
4711
4712 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4713 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 Switch i386 and derived targets to ON_STACK.
4716 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4717 (amd64_dicos_init_abi): Remove its installment.
4718 * dicos-tdep.c (dicos_init_abi): Remove the
4719 set_gdbarch_call_dummy_location call. Update the comment here.
4720 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4721 (i386_dicos_init_abi): Remove its installment.
4722 * i386-tdep.c (i386_push_dummy_code): New function.
4723 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4724 i386_push_dummy_code.
4725
4726 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 Remove stale dummy frames.
4729 * breakpoint.c: Include dummy-frame.h.
4730 (longjmp_breakpoint_ops): New variable.
4731 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4732 bp_longjmp_call_dummy.
4733 (bpstat_what, bptype_string, print_one_breakpoint_location)
4734 (init_bp_location): Support bp_longjmp_call_dummy.
4735 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4736 (set_longjmp_breakpoint_for_call_dummy)
4737 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4738 functions.
4739 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4740 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4741 FIXME comment and extend the other comment for bp_call_dummy.
4742 (set_longjmp_breakpoint_for_call_dummy)
4743 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4744 * dummy-frame.c: Include gdbthread.h.
4745 (pop_dummy_frame_bpt): New function.
4746 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4747 (dummy_frame_discard): New function.
4748 (cleanup_dummy_frames): Update the comment about longjmps.
4749 * dummy-frame.h (dummy_frame_discard): New declaration.
4750 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4751 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4752 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4753 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4754 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4755 keep_going if IS_LONGJMP and there is no other reason to stop.
4756
4757 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4758
4759 * remote-sim.c (sim_command_completer): Initialize
4760 variable 'result'.
4761
4762 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4765 * dwarf2loc.c (call_site_parameter_matches): Support
4766 CALL_SITE_PARAMETER_PARAM_OFFSET.
4767 (needs_dwarf_reg_entry_value): Push stub value.
4768 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4769 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4770 * gdbtypes.h (enum call_site_parameter_kind): New item
4771 CALL_SITE_PARAMETER_PARAM_OFFSET.
4772 (struct call_site.parameter.u): New field param_offset.
4773
4774 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4775
4776 Code cleanup: Generalize call_site.parameter key.
4777 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4778 variable dwarf_reg. New variable kind_u. Update parameters to
4779 push_dwarf_reg_entry_value.
4780 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4781 * dwarf2expr.h (enum call_site_parameter_kind)
4782 (union call_site_parameter_u): Forward declarations.
4783 (struct dwarf_expr_context_funcs): Update parameters and their
4784 description for push_dwarf_reg_entry_value.
4785 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4786 * dwarf2loc.c (call_site_parameter_matches): New function.
4787 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4788 description. Use call_site_parameter_matches.
4789 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4790 Update parameters and their description.
4791 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4792 New variable kind_u. Adjust the caller for updated parameters.
4793 (needs_dwarf_reg_entry_value): Update parameters.
4794 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4795 instead of attr. Update for the changed fields of struct
4796 call_site_parameter.
4797 * gdbtypes.h: Include dwarf2expr.h.
4798 (enum call_site_parameter_kind): New.
4799 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4800 fb_offset into new union u.
4801
4802 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4803
4804 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4805 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4806 for x32.
4807
4808 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4809
4810 * amd64-linux-nat.c (compat_x32_clock_t): New.
4811 (compat_x32_siginfo_t): Likewise.
4812 (compat_x32_siginfo_from_siginfo): Likewise.
4813 (siginfo_from_compat_x32_siginfo): Likewise.
4814 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4815 and siginfo_from_compat_x32_siginfo for x32.
4816
4817 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4818
4819 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4820
4821 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4822
4823 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4824 instead of gdbarch_ptr_bit.
4825 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4826 (amd64_supply_native_gregset): Likewise.
4827 (amd64_collect_native_gregset): Likewise.
4828 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4829 (amd64_supply_xsave): Likewise.
4830 (amd64_collect_fxsave): Likewise.
4831 (amd64_collect_xsave): Likewise.
4832
4833 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4834
4835 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4836 (amd64_linux_read_description): Check DS segment register for
4837 x32 process.
4838
4839 2012-06-15 Tom Tromey <tromey@redhat.com>
4840
4841 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4842 init_cutu_and_read_dies.
4843
4844 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4845
4846 * MAINTAINERS (Write After Approval): Add myself to the list.
4847
4848 2012-06-15 Tom Tromey <tromey@redhat.com>
4849
4850 * valops.c (value_find_oload_method_list): Now static.
4851 * value.h (value_find_oload_method_list): Don't declare.
4852
4853 2012-06-15 Tom Tromey <tromey@redhat.com>
4854
4855 * valops.c (find_overload_match): Use value_ind.
4856
4857 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4858
4859 * infrun.c (handle_inferior_event): Correct indentation.
4860
4861 2012-06-14 Doug Evans <dje@google.com>
4862
4863 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4864 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4865 All uses updated.
4866 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4867 updated. Handle DEBUG_LOC_START_LENGTH.
4868 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4869 (loclist_describe_location): Ditto.
4870
4871 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4872
4873 PR backtrace/13866
4874 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4875 after hiding inline functions.
4876
4877 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4878
4879 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4880 _initialize_inf_ttrace.
4881
4882 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4883
4884 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4885 _initialize_hppa_hpux_nat.
4886
4887 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4888
4889 * remote-sim.c (sim_command_completer): Change type of return
4890 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4891
4892 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4893 Jan Kratochvil <jan.kratochvil@redhat.com>
4894
4895 PR tdep/14222
4896 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4897 stack on a 16-byte boundary.
4898
4899 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4900
4901 * jit.c (finalize_symtab): Set function's return type to 'void' by
4902 default.
4903
4904 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4905 H.J. Lu <hongjiu.lu@intel.com>
4906
4907 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4908 Move bits common to both the classic LP64 and the new x32 ILP32
4909 ABI here.
4910 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4911 (amd64_x32_linux_init_abi): New function.
4912 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4913 subtype.
4914
4915 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4916 * i386-tdep.c (i386_pseudo_register_name): Make public.
4917 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4918 * amd64-tdep.c (amd64_dword_names): Add "eip".
4919 (amd64_x32_pseudo_register_type): New function
4920 (amd64_x32_init_abi): New function.
4921
4922 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4923
4924 PR build/14003
4925 * inferior.h (struct inferior_suspend_state): Comment out.
4926 (struct inferior): Comment out the field suspend.
4927 * infrun.c (struct infcall_suspend_state): Comment out the field
4928 inferior_suspend.
4929 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4930 out its assignment.
4931
4932 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4935 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4936 function comment. Return ERROR for unresolved cases. Implement
4937 returning proper NAME.
4938 (yylex): Accept also NAME from classify_inner_name.
4939 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4940 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4941 LOC_TYPEDEF type.
4942 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4943
4944 2012-06-13 Tom Tromey <tromey@redhat.com>
4945
4946 * breakpoint.c (condition_completer): New function.
4947 (_initialize_breakpoint): Use it.
4948 * value.c (complete_internalvar): New function.
4949 * value.h (complete_internalvar): Declare.
4950
4951 2012-06-13 Tom Tromey <tromey@redhat.com>
4952
4953 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4954 * breakpoint.c (catch_syscall_completer): Return a VEC.
4955 * cli/cli-cmds.c (complete_command): Update.
4956 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4957 (complete_on_enum): Likewise.
4958 * command.h: Include gdb_vecs.h.
4959 (completer_ftype): Change return type.
4960 (complete_on_cmdlist, complete_on_enum): Likewise.
4961 * completer.c (noop_completer, filename_completer)
4962 (location_completer): Return a VEC.
4963 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4964 to a VEC.
4965 (expression_completer, complete_line_internal, complete_line)
4966 (command_completer): Return a VEC.
4967 (gdb_completion_word_break_characters, line_completion_function):
4968 Update.
4969 * completer.h: Include gdb_vecs.h.
4970 (complete_line, noop_completer, filename_completer)
4971 (expression_completer, location_completer, command_completer):
4972 Update.
4973 * f-lang.c (f_word_break_characters): Return a VEC.
4974 * interps.c (interpreter_completer): Return a VEC.
4975 * language.h (struct language_defn)
4976 <la_make_symbol_completion_list>: Return a VEC.
4977 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4978 * symtab.c (free_completion_list): Take a VEC.
4979 (return_val_size, return_val_index): Remove.
4980 (return_val): Now a VEC.
4981 (completion_list_add_name): Update.
4982 (default_make_symbol_completion_list_break_on)
4983 (default_make_symbol_completion_list, make_symbol_completion_list)
4984 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4985 Return a VEC.
4986 (add_filename_to_list): Update.
4987 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4988 <list>: Now a VEC.
4989 (maybe_add_partial_symtab_filename): Update.
4990 (make_source_files_completion_list): Return a VEC.
4991 * symtab.h (default_make_symbol_completion_list_break_on)
4992 (default_make_symbol_completion_list, make_symbol_completion_list)
4993 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4994 (make_source_files_completion_list): Update.
4995
4996 2012-06-13 Tom Tromey <tromey@redhat.com>
4997
4998 * breakpoint.c (add_catch_command): Use completer_ftype.
4999 * breakpoint.h: Include command.h.
5000 (add_catch_command): Use completer_ftype.
5001 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5002 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5003 Use completer_ftype.
5004 * command.h (completer_ftype): New typedef.
5005 (set_cmd_completer): Use it.
5006 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5007 completer_ftype.
5008
5009 2012-06-13 Pedro Alves <palves@redhat.com>
5010
5011 Partial revert of previous change.
5012
5013 * serial.c (scb_base): New global.
5014 (serial_for_fd): New.
5015 (serial_open, serial_fdopen_ops): Link new serial in open serials
5016 chain.
5017 (do_serial_close): Unlink serial from the open serials chain.
5018
5019 2012-06-12 Pedro Alves <palves@redhat.com>
5020
5021 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5022 threads here.
5023 (prepare_for_detach): No longer context switch here in non-stop
5024 mode.
5025 (fetch_inferior_event): Ditto.
5026 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5027 to the event thread before removing breakpoints. Switch to the
5028 event thread before inserting breakpoints and resuming.
5029 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5030 event thread before resuming.
5031 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5032 Switch to the event thread before removing breakpoints.
5033
5034 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5035
5036 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5037 special characters correctly for the Windows shells. See
5038 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5039 report.
5040 [!__MINGW32__]: Remove extra double quote character from special
5041 characters.
5042
5043 2012-06-11 Stan Shebs <stan@codesourcery.com>
5044
5045 * ui-out.h: Remove #if 0 declarations.
5046 * ui-out.c: Remove #if 0 functions.
5047
5048 2012-06-11 Pedro Alves <palves@redhat.com>
5049
5050 * ser-base.c (run_async_handler_and_reschedule): New.
5051 (fd_event, push_event): Use it.
5052 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5053 reference count to 1.
5054 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5055 instead of xfree.
5056 (serial_is_open, serial_ref, serial_unref): New.
5057 * serial.h (serial_open): Adjust comment.
5058 (serial_is_open): Declare.
5059 (serial_close): Adjust comment.
5060 (serial_ref, serial_unref) Declare.
5061 (struct serial): New field 'refcnt'.
5062
5063 2012-06-11 Pedro Alves <palves@redhat.com>
5064
5065 Remove #if 0'd "connect" command, and unnecessary associated
5066 refcounting and serial reuse bits.
5067
5068 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5069 * serial.c (last_serial_opened): Delete.
5070 (scb_base): Delete.
5071 (serial_open): Adjust.
5072 (serial_for_fd): Delete.
5073 (serial_fdopen_ops, do_serial_close): Adjust.
5074 (serial_fdopen_ops): Adjust.
5075
5076 2012-06-11 Pedro Alves <palves@redhat.com>
5077
5078 * serial.c (do_serial_close): Remove early return when SCB is
5079 null.
5080
5081 2012-06-11 Tom Tromey <tromey@redhat.com>
5082
5083 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5084
5085 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5086
5087 Fix regression by the "ambiguous linespec" series.
5088 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5089 get_last_displayed_symtab and get_last_displayed_line and depending
5090 on CURSAL.
5091
5092 2012-06-11 Tom Tromey <tromey@redhat.com>
5093
5094 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5095 (dw2_find_symbol_file): Use it.
5096
5097 2012-06-11 Michael Eager <eager@eagercon.com>
5098
5099 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5100 * mips-linux-tdep.h (mips_signals): New
5101
5102 2012-06-11 Tom Tromey <tromey@redhat.com>
5103
5104 * infrun.c (handle_inferior_event)
5105 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5106 breakpoint.
5107 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5108 exception logic in all cases. Update comments.
5109 (insert_longjmp_resume_breakpoint): Set the exception resume
5110 breakpoint.
5111
5112 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5113
5114 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5115
5116 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5117
5118 * valarith.c (binop_types_user_defined_p): Fix a typo.
5119
5120 2012-06-08 Yao Qi <yao@codesourcery.com>
5121 Chung-Lin Tang <cltang@codesourcery.com>
5122
5123 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5124 * arch-utils.h: Declare.
5125 * gdbarch.sh: Add return_in_first_hidden_param_p.
5126 * gdbarch.c, gdbarch.h: Regenerated.
5127 * infcall.c (call_function_by_hand): Call
5128 gdbarch_return_in_first_hidden_param_p instead of
5129 language_pass_by_reference.
5130
5131 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5132 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5133 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5134 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5135 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5136 `cplus_return_struct_by_reference'.
5137 (tic6x_return_value): Handle language cplusplus.
5138 (tic6x_return_in_first_hidden_param_p): New.
5139 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5140
5141 2012-06-07 Doug Evans <dje@google.com>
5142
5143 * dwarf2read.c (dwarf2_cu): Add comment.
5144
5145 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5146
5147 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5148 variable.
5149 (mips_eabi_push_dummy_call): Likewise.
5150 (mips_n32n64_push_dummy_call): Likewise.
5151 (mips_o32_push_dummy_call): Likewise.
5152 (mips_o64_push_dummy_call): Likewise.
5153
5154 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5155
5156 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5157
5158 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5159
5160 * mips-tdep.c (mips_pseudo_register_type): Use
5161 mips_float_register_p.
5162
5163 2012-06-06 Pedro Alves <palves@redhat.com>
5164
5165 * infrun.c (handle_inferior_event): Remove calls to
5166 reinit_frame_cache that follow a context_switch call.
5167
5168 2012-06-06 Pedro Alves <palves@redhat.com>
5169
5170 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5171 context_switch and remove stale comment.
5172
5173 2012-06-06 Pedro Alves <palves@redhat.com>
5174
5175 * infrun.c (struct execution_control_state): Remove
5176 `new_thread_event' field.
5177 (handle_inferior_event): Simplify new threads handling; don't
5178 resume the inferior if we find a new thread.
5179
5180 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5181
5182 * NEWS: Document the deprecation of SH's 'regs' command.
5183 * inferior.h (all_registers_info): Add function declaration.
5184 * sh-tdep.c (sh_show_regs): Remove variable.
5185 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5186 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5187 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5188 (sh_show_regs_command): Remove functions.
5189 (sh_gdbarch_init): Don't set sh_show_regs.
5190 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5191 'info all-registers'.
5192 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5193 (sh64_show_regs): Remove functions.
5194 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5195
5196 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5197
5198 * configure.ac: Move development=true below AC_INIT.
5199 * configure: Regenerate.
5200
5201 2012-06-05 Stan Shebs <stan@codesourcery.com>
5202
5203 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5204 gdb_stdout.
5205
5206 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5207
5208 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5209 argument as ssize_t.
5210 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5211 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5212 * target.c (target_read_stack, target_write_memory)
5213 (target_write_raw_memory): Likewise.
5214 * target.h (target_read_stack, target_write_memory)
5215 (target_write_raw_memory): Likewise.
5216
5217 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5218
5219 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5220 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5221 * target.c (target_read_memory): Change LEN to ssize_t.
5222 * target.h (target_read_memory): Change LEN to ssize_t.
5223
5224 2012-06-05 Pedro Alves <palves@redhat.com>
5225
5226 PR backtrace/13866
5227
5228 * breakpoint.c (until_break_command): Only fetch the selected
5229 frame after decode_line_1.
5230
5231 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5232
5233 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5234 event breakpoint at _start, __start or main if a program
5235 interpreter is not found.
5236
5237 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5238
5239 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5240 Add declaration.
5241 * windows-tdep.c: #include "objfiles.h".
5242 (windows_iterate_over_objfiles_in_search_order): New function.
5243 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5244 iterate_over_objfiles_in_search_order gdbarch method to
5245 windows_iterate_over_objfiles_in_search_order.
5246 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5247
5248 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5249
5250 * gdbarch.sh: Add generation of
5251 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5252 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5253 (iterate_over_objfiles_in_search_order): New gdbarch method.
5254 * gdbarch.h, gdbarch.c: Regenerate.
5255 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5256 Add declaration.
5257 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5258 New function.
5259 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5260 out of lookup_symbol_aux_symtabs.
5261 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5262 call to lookup_symbol_aux_objfile.
5263 (struct global_sym_lookup_data): New type.
5264 (lookup_symbol_global_iterator_cb): New function.
5265 (lookup_symbol_global): Search for symbol using
5266 gdbarch_iterate_over_objfiles_in_search_order and
5267 lookup_symbol_global_iterator_cb.
5268 * findvar.c (struct minsym_lookup_data): New type.
5269 (minsym_lookup_iterator_cb): New function.
5270 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5271 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5272 and minsym_lookup_iterator_cb.
5273
5274 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5275
5276 Revert the following patch:
5277 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5278 try locating the symbol in the symbol's own objfile first, before
5279 extending the search to all objfiles.
5280 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5281 out of lookup_symbol_aux_symtabs.
5282 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5283 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5284 Do not search EXCLUDE_OBJFILE.
5285 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5286 (lookup_symbol_global): Search for matches in the block's objfile
5287 first, before searching all other objfiles.
5288
5289 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5290
5291 * breakpoint.c (find_condition_and_thread): Stop parsing
5292 as soon as the first invalid keyword is found.
5293
5294 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5295
5296 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5297
5298 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5299
5300 * config/djgpp/djcheck.sh: Add copyright header.
5301
5302 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5303
5304 * copyright.py (update_files, main): Fix path to update-copyright
5305 script.
5306
5307 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5308
5309 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5310 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5311 for which a reminder to update by hand is printed.
5312
5313 2012-06-04 Doug Evans <dje@google.com>
5314
5315 * buildsym.c (make_blockvector): Add comment.
5316
5317 2012-06-04 Pedro Alves <palves@redhat.com>
5318
5319 * arch-utils.c (default_gdb_signal_from_target): Delete.
5320 * arch-utils.h (default_gdb_signal_from_target): Delete.
5321 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5322 gdbarch_gdb_signal_from_target_p.
5323 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5324 predicate).
5325 * gdbarch.h: Regenerate.
5326 * gdbarch.c: Regenerate.
5327
5328 2012-06-04 Pedro Alves <palves@redhat.com>
5329
5330 * gdbarch.sh (gdb_signal_from_target): Mention that the
5331 implementation of the method must be host independent.
5332 * gdbarch.h: Regenerate.
5333
5334 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5335
5336 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5337 parameters.
5338 (target_read_memory_bfd): New function.
5339 (symbol_file_add_from_memory): Use it.
5340
5341 2012-06-03 Doug Evans <dje@google.com>
5342
5343 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5344 of primary symtab.
5345 (basic_lookup_transparent_type): Ditto.
5346
5347 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5348 (ALL_PRIMARY_SYMTABS): Use it.
5349 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5350 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5351 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5352 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5353 (basic_lookup_transparent_type): Ditto.
5354
5355 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5356
5357 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5358 it to optimize resolution of demangled name.
5359
5360 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5361
5362 * configure.ac (development): Define new variable.
5363 Call AC_CHECK_LIB for mcheck if $development.
5364 (ERROR_ON_WARNING): Enable it by default only if $development.
5365 * config.in: Regenerate.
5366 * configure: Regenerate.
5367
5368 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5369
5370 * target.c (target_read_memory): Make LEN argument as size_t.
5371 * target.h (target_read_memory): Likewise.
5372
5373 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5376
5377 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5378
5379 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5380 BookE interface for PowerPC server processors if not available
5381 in the Linux Kernel.
5382
5383 2012-05-31 Keith Seitz <keiths@redhat.com>
5384
5385 * linespec.c (decode_objc): Add cleanup to free
5386 INFO.FILE_SYMTABS.
5387 (find_linespec_symbols): Add cleanup to free CLASSES.
5388 * symfile.c (find_separate_debug_file_by_debuglink): Add
5389 cleanup to free DEBUGLINK.
5390 * ui-out.c (clear_header_list): No need to check if
5391 HEADER_NEXT.COLHDR is NULL.
5392 Free HEADER_NEXT.COL_NAME.
5393
5394 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5395
5396 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5397 warning.
5398
5399 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5400
5401 * configure.host (gdb_host_cpu): Handle tilegx*.
5402 (gdb_host): Handle tilegx-*-linux*.
5403 * tilegx-linux-nat.c: New file.
5404 * config/tilegx/linux.mh: New file.
5405
5406 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5407
5408 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5409 tilegx-linux-tdep.o.
5410 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5411 tilegx-linux-tdep.c.
5412 * configure.tgt: Handle tilegx-*-linux*.
5413 * tilegx-tdep.h: New file.
5414 * tilegx-tdep.c: New file.
5415 * tilegx-linux-tdep.c: New file.
5416 * regformats/reg-tilegx.dat: New file.
5417
5418 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5419
5420 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5421 accounting of hw watchpoints on ppc.
5422
5423 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5424
5425 * source.c (openp): Expand tilde in path entries.
5426
5427 2012-05-29 Doug Evans <dje@google.com>
5428
5429 * buildsym.c (block_compar): Fix comment.
5430 (end_symtab): Fix and clarify some comments.
5431
5432 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5433 cleanup_undefined_types.
5434 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5435 All callers updated.
5436
5437 2012-05-29 Tom Tromey <tromey@redhat.com>
5438
5439 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5440 fails.
5441 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5442 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5443 fails.
5444 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5445 fails.
5446
5447 2012-05-29 Tristan Gingold <gingold@adacore.com>
5448
5449 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5450 (struct darwin_info): ... New struct.
5451 (solib_darwin_pspace_data): New variable.
5452 (darwin_pspace_data_cleanup): New function.
5453 (get_darwin_info): Likewise.
5454 (darwin_dyld_version_ok, darwin_load_image_infos)
5455 (darwin_solib_get_all_image_info_addr_at_init)
5456 (darwin_solib_read_all_image_info_addr): Add info argument.
5457 Adjust code.
5458 (darwin_current_sos): Use per pspace structure.
5459 (darwin_solib_create_inferior_hook): Likewise.
5460 (darwin_clear_solib): Likewise.
5461 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5462
5463 2012-05-28 Pedro Alves <palves@redhat.com>
5464
5465 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5466 block that uses them. Clear ecss before handling each event.
5467
5468 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5469
5470 * solib-svr4.c (svr4_current_sos): New comment on
5471 svr4_current_sos_via_xfer_libraries fall back.
5472
5473 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5474
5475 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5476 it as a fallback for TYPE_IS_OPAQUE.
5477 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5478 symbols for lookup_symbol.
5479
5480 2012-05-24 John Steele Scott <toojays@toojays.net>
5481
5482 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5483 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5484 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5485 (check_producer): ... this new function, which also checks for ICC
5486 and caches the result.
5487 (producer_is_icc): New function.
5488 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5489 producer was ICC.
5490
5491 2012-05-24 Pedro Alves <palves@redhat.com>
5492
5493 PR gdb/7205
5494
5495 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5496 (default_gdb_signal_to_target): ... this. Add comment.
5497 (default_gdb_signal_from_host): Rename to ...
5498 (default_gdb_signal_from_target): ... this. Add comment.
5499 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5500 (default_gdb_signal_to_target): ... this.
5501 (default_gdb_signal_from_host): Rename to ...
5502 (default_gdb_signal_from_target): ... this.
5503 * corelow.c (core_open): Adjust to naming change. Replace comment.
5504 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5505 (gdb_signal_from_target): ... this. Adjust to
5506 default_gdb_signal_from_host naming change. Extend comment.
5507 (gdb_signal_to_host): Rename to ...
5508 (gdb_signal_to_target): ... this. Adjust to
5509 default_gdb_signal_to_host naming change.
5510 * gdbarch.h, gdbarch.c: Renegerate.
5511
5512 2012-05-24 Pedro Alves <palves@redhat.com>
5513
5514 PR gdb/7205
5515
5516 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5517
5518 2012-05-24 Pedro Alves <palves@redhat.com>
5519
5520 PR gdb/7205
5521
5522 Replace target_signal with gdb_signal throughout.
5523
5524 2012-05-24 Pedro Alves <palves@redhat.com>
5525
5526 PR tui/14159
5527
5528 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5529 string, instead of reusing the va_list argument.
5530
5531 2012-05-24 Tom Tromey <tromey@redhat.com>
5532
5533 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5534 Remove.
5535
5536 2012-05-23 Doug Evans <dje@google.com>
5537
5538 * symtab.c (search_symbols): Formatting fixes.
5539 (print_symbol_info): Formatting fixes.
5540
5541 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5542 int64_t change to leb128 API.
5543 (read_encoded_value, decode_frame_entry_1): Ditto.
5544 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5545 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5546 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5547 (execute_stack_op): Ditto.
5548 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5549 (safe_read_uleb128, safe_read_sleb128): Ditto.
5550 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5551 (dwarf2_compile_expr_to_ax): Ditto.
5552 (locexpr_describe_location_piece): Ditto.
5553 (disassemble_dwarf_expression): Ditto.
5554 (locexpr_describe_location_1): Ditto.
5555
5556 2012-05-23 Stan Shebs <stan@codesourcery.com>
5557 Kwok Cheung Yeung <kcy@codesourcery.com>
5558
5559 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5560 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5561 (mi-cmd-info.o): New rule.
5562 * osdata.h (info_osdata_command): New declaration.
5563 * osdata.c (info_osdata_command): Change to non-static.
5564 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5565 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5566 * mi/mi-cmd-info.c: New file.
5567
5568 2012-05-23 Doug Evans <dje@google.com>
5569
5570 * symtab.c (search_symbols): Pass NULL for file_matcher to
5571 expand_symtabs_matching if there are no files to match.
5572
5573 * gdbtypes.c (lookup_typename): Simplify.
5574
5575 2012-05-23 Pedro Alves <palves@redhat.com>
5576
5577 * arch-utils.h (default_target_signal_to_host): Delete.
5578 * arch-utils.c (default_target_signal_to_host): Delete.
5579 * gdbarch.sh (target_signal_to_host): Remove.
5580 * gdbarch.h, gdbarch.c: Regenerate.
5581
5582 2012-05-22 Doug Evans <dje@google.com>
5583
5584 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5585 "const gdb_byte *".
5586 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5587 (execute_cfa_program): Update to match API of leb128 functions.
5588 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5589 "const gdb_byte *".
5590 (read_unsigned_leb128, read_signed_leb128): Delete.
5591 (read_initial_length): Change type of buf argument to
5592 "const gdb_byte *".
5593 (read_encoded_value): Update to match API of leb128 functions.
5594 (decode_frame_entry): Change result to "const gdb_byte *", and
5595 similarly for "start" parameter.
5596 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5597 (dwarf2_build_frame_info): Change local frame_ptr to
5598 "const gdb_byte *".
5599 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5600 read_uleb128, read_sleb128. All callers updated.
5601 (safe_skip_leb128): New function.
5602 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5603 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5604 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5605 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5606 read_uleb128, read_sleb128.
5607 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5608 (execute_stack_op): Update to match API of leb128 functions.
5609 * dwarf2expr.h: #include "leb128.h".
5610 (read_uleb128, read_sleb128): Delete.
5611 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5612 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5613 * dwarf2loc.c (debug_loc_kind): New enum.
5614 (decode_debug_loc_addresses): New function.
5615 (decode_debug_loc_dwo_addresses): New function.
5616 (dwarf2_find_location_expression): Rewrite.
5617 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5618 (locexpr_describe_location_piece): Ditto.
5619 (disassemble_dwarf_expression): Ditto.
5620 (locexpr_describe_location_1): Ditto.
5621 (loclist_describe_location): Rewrite.
5622 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5623 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5624 (dwarf2_section_buffer_overflow_complaint): Renamed from
5625 dwarf2_macros_too_long_complaint. All callers updated.
5626 (skip_leb128): Delete.
5627 (init_cu_die_reader): Initialize reader->buffer_end.
5628 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5629 (skip_form_bytes): New arg buffer_end. All callers updated.
5630 Replace call to skip_leb128 with gdb_skip_leb128.
5631 (skip_unknown_opcode): New arg mac_end. All callers updated.
5632 (fill_in_loclist_baton): Initialize baton->from_dwo.
5633
5634 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5635
5636 * mips-linux-nat.c (mips_linux_read_description): Use a more
5637 verbose error message.
5638
5639 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5640
5641 * NEWS: Add MIPS/Linux DSP support.
5642 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5643 (SIGCONTEXT_DSPCTL): New macro.
5644 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5645 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5646 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5647 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5648 (N64_SIGCONTEXT_HI3): Likewise.
5649 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5650 (N64_SIGCONTEXT_LO3): Likewise.
5651 (N64_SIGCONTEXT_DSPCTL): Likewise.
5652 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5653 (mips_linux_o32_sigframe_init): Handle DSP registers.
5654 (mips_linux_n32n64_sigframe_init): Likewise.
5655
5656 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5657
5658 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5659 call to abort.
5660
5661 2012-05-22 Pedro Alves <palves@redhat.com>
5662
5663 * target.h (store_waitstatus): Move declaration ...
5664 * inf-child.h (store_waitstatus): ... here.
5665 * target.c: Move inclusion of gdb_wait.h, and ...
5666 (store_waitstatus): ... this ...
5667 * inf-child.c: ... here.
5668 * linux-nat.c: Include inf-child.h.
5669 * rs6000-nat.c: Include inf-child.h.
5670 * spu-linux-nat.c: Include inf-child.h.
5671
5672 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5673
5674 * tracepoint.c (start_tracing): Add missing i18n markup.
5675 (stop_tracing, set_trace_user): Ditto.
5676 (set_trace_notes, set_trace_stop_notes): Ditto.
5677
5678 2012-05-21 Tom Tromey <tromey@redhat.com>
5679
5680 PR c++/7173:
5681 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5682 types.
5683 * value.h (value_cast_pointers): Update.
5684 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5685 (value_cast): Update.
5686 (update_search_result): New function.
5687 (do_search_struct_field): New, from search_struct_field. Check
5688 for ambiguous results.
5689 (search_struct_field): Rewrite.
5690 * infcall.c (value_arg_coerce): Update.
5691 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5692 value_cast_pointers.
5693 * ada-lang.c (ada_convert_actual): Update.
5694
5695 2012-05-21 Tom Tromey <tromey@redhat.com>
5696
5697 * macroexp.c (macro_stringify): Terminate the string.
5698
5699 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5702 Describe it.
5703 * auto-load.c (auto_load_expand_dir_vars): New function.
5704 (auto_load_safe_path_vec_update): Use it, remove the
5705 substitute_path_component call thanks to it.
5706 (auto_load_objfile_script): Remove the debug_file_directory processing.
5707 Use auto_load_expand_dir_vars, remove the substitute_path_component
5708 call thanks to it.
5709 * configure: Regenerate.
5710 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5711 path. Escape $ also for $debugdir.
5712 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5713 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5714
5715 2012-05-20 Doug Evans <dje@google.com>
5716
5717 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5718 before use. Check for symtab->includes == NULL before scanning it.
5719
5720 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5721
5722 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5723
5724 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5725
5726 * NEWS: Add microMIPS support and "set mips compression",
5727 "show mips compression" commands.
5728 * mips-tdep.h (mips_isa): New enum.
5729 (gdbarch_tdep): Add mips_isa.
5730 (mips_pc_is_mips16): Update prototype.
5731 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5732 * mips-tdep.c (mips_compression_mips16): New variable.
5733 (mips_compression_micromips): Likewise.
5734 (mips_compression_strings): Likewise.
5735 (mips_compression_string): Likewise.
5736 (is_mips16_isa, is_micromips_isa): New functions.
5737 (is_mips16_addr): Rename to...
5738 (is_compact_addr): ... this.
5739 (unmake_mips16_addr): Likewise to...
5740 (unmake_compact_addr): ... this.
5741 (make_mips16_addr): Likewise to...
5742 (make_compact_addr): ... this.
5743 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5744 functions.
5745 (mips_elf_make_msymbol_special): Handle microMIPS code.
5746 (msymbol_is_special): Rename to...
5747 (msymbol_is_mips16): ... this.
5748 (mips_make_symbol_special, mips_pc_is_mips16): Update
5749 accordingly.
5750 (msymbol_is_mips, msymbol_is_micromips): New functions.
5751 (mips16_to_32_reg): Rename to...
5752 (mips_reg3_to_reg): ... this.
5753 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5754 (mips_pc_isa): Likewise.
5755 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5756 code.
5757 (mips_fetch_instruction): Pass return status instead of printing
5758 an error message if requested. Handle microMIPS code. Bail out
5759 on an invalid ISA.
5760 (micromips_op): New macro.
5761 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5762 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5763 (b6s4_op, b7s3_reg): Likewise.
5764 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5765 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5766 (mips_insn_size): New function.
5767 (mips32_next_pc): Update mips_fetch_instruction call.
5768 (micromips_relative_offset7): New function.
5769 (micromips_relative_offset10): Likewise.
5770 (micromips_relative_offset16): Likewise.
5771 (micromips_pc_insn_size): Likewise.
5772 (micromips_bc1_pc): Likewise.
5773 (micromips_next_pc): Likewise.
5774 (unpack_mips16): Update mips_fetch_instruction call.
5775 (extended_mips16_next_pc): Update according to change to
5776 mips16_to_32_reg.
5777 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5778 code.
5779 (mips16_scan_prologue): Update mips_fetch_instruction call.
5780 Update according to change to mips16_to_32_reg.
5781 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5782 (mips_insn16_frame_base_sniffer): Likewise.
5783 (micromips_decode_imm9): New function.
5784 (micromips_scan_prologue): Likewise.
5785 (mips_micro_frame_cache): Likewise.
5786 (mips_micro_frame_this_id): Likewise.
5787 (mips_micro_frame_prev_register): Likewise.
5788 (mips_micro_frame_sniffer): Likewise.
5789 (mips_micro_frame_unwind): New variable.
5790 (mips_micro_frame_base_address): New function.
5791 (mips_micro_frame_base): New variable.
5792 (mips_micro_frame_base_sniffer): New function.
5793 (mips32_scan_prologue): Update mips_fetch_instruction call.
5794 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5795 rather than for MIPS16.
5796 (mips_insn32_frame_base_sniffer): Likewise.
5797 (mips_addr_bits_remove): Handle microMIPS code.
5798 (deal_with_atomic_sequence): Rename to...
5799 (mips_deal_with_atomic_sequence): ... this. Update the type
5800 of the variable used to hold an instruction. Remove the ISA bit
5801 check. Update mips_fetch_instruction call.
5802 (micromips_deal_with_atomic_sequence): New function.
5803 (deal_with_atomic_sequence): Likewise.
5804 (mips_about_to_return): Handle microMIPS code. Update
5805 mips_fetch_instruction call.
5806 (heuristic_proc_start): Check for the standard MIPS ISA rather
5807 than for MIPS16. Update mips_pc_is_mips16 and
5808 mips_fetch_instruction calls. Handle microMIPS code.
5809 (mips_push_dummy_code): Handle microMIPS code.
5810 (mips_eabi_push_dummy_call): Likewise.
5811 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5812 (mips_o64_push_dummy_call): Handle microMIPS code.
5813 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5814 (is_delayed): Remove function.
5815 (mips_single_step_through_delay): Replace the call to is_delayed
5816 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5817 Handle microMIPS code.
5818 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5819 microMIPS code.
5820 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5821 call.
5822 (micromips_in_function_epilogue_p): New function.
5823 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5824 call.
5825 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5826 Handle microMIPS.
5827 (gdb_print_insn_mips): Likewise.
5828 (mips_breakpoint_from_pc): Likewise.
5829 (mips_remote_breakpoint_from_pc): New function.
5830 (mips32_instruction_has_delay_slot): Simplify making use of the
5831 updated mips_fetch_instruction interface.
5832 (micromips_instruction_has_delay_slot): New function.
5833 (mips16_instruction_has_delay_slot): Simplify making use of the
5834 updated mips_fetch_instruction interface.
5835 (mips_adjust_breakpoint_address): Check for the standard MIPS
5836 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5837 calls. Handle microMIPS code.
5838 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5839 (mips_skip_trampoline_code): Handle microMIPS code.
5840 (global_mips_compression): New function.
5841 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5842 file flags. Register the microMIPS remote breakpoint handler
5843 and heuristic frame unwinder.
5844 (show_mips_compression): New function.
5845 (_initialize_mips_tdep): Add the "set mips compression" and
5846 "show mips compression" commands.
5847
5848 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5849
5850 * ada-lang.c:
5851 * ada-tasks.c:
5852 * ada-varobj.c:
5853 * amd64-darwin-tdep.c:
5854 * arm-symbian-tdep.c:
5855 * arm-tdep.c:
5856 * avr-tdep.c:
5857 * ax-gdb.c:
5858 * bfin-linux-tdep.c:
5859 * breakpoint.c:
5860 * c-valprint.c:
5861 * cli/cli-cmds.c:
5862 * coffread.c:
5863 * cp-support.c:
5864 * cris-tdep.c:
5865 * dwarf2-frame-tailcall.c:
5866 * dwarf2-frame.c:
5867 * dwarf2expr.c:
5868 * dwarf2loc.c:
5869 * dwarf2read.c:
5870 * elfread.c:
5871 * eval.c:
5872 * expprint.c:
5873 * f-valprint.c:
5874 * frv-tdep.c:
5875 * h8300-tdep.c:
5876 * hppa-hpux-tdep.c:
5877 * hppa-tdep.c:
5878 * hppanbsd-tdep.c:
5879 * i386-nto-tdep.c:
5880 * i386-tdep.c:
5881 * i387-tdep.c:
5882 * ia64-tdep.c:
5883 * jit.c:
5884 * linespec.c:
5885 * linux-tdep.c:
5886 * lm32-tdep.c:
5887 * m2-valprint.c:
5888 * m32c-tdep.c:
5889 * m32r-rom.c:
5890 * m32r-tdep.c:
5891 * m68k-tdep.c:
5892 * m68klinux-tdep.c:
5893 * mi/mi-main.c:
5894 * microblaze-tdep.c:
5895 * mips-linux-tdep.c:
5896 * mips-tdep.c:
5897 * mn10300-tdep.c:
5898 * p-valprint.c:
5899 * parse.c:
5900 * ppc-linux-tdep.c:
5901 * ppc-sysv-tdep.c:
5902 * printcmd.c:
5903 * python/py-finishbreakpoint.c:
5904 * python/py-inferior.c:
5905 * python/py-infthread.c:
5906 * python/py-type.c:
5907 * python/python.c:
5908 * remote-fileio.c:
5909 * remote-m32r-sdi.c:
5910 * remote-mips.c:
5911 * reverse.c:
5912 * rl78-tdep.c:
5913 * rs6000-aix-tdep.c:
5914 * rs6000-tdep.c:
5915 * s390-tdep.c:
5916 * score-tdep.c:
5917 * sh64-tdep.c:
5918 * skip.c:
5919 * solib-darwin.c:
5920 * solib-dsbt.c:
5921 * solib-frv.c:
5922 * sparc-tdep.c:
5923 * spu-multiarch.c:
5924 * spu-tdep.c:
5925 * stack.c:
5926 * symfile.c:
5927 * symtab.c:
5928 * tic6x-tdep.c:
5929 * tracepoint.c:
5930 * v850-tdep.c:
5931 * valarith.c:
5932 * valprint.c:
5933 * value.c:
5934 * xcoffread.c:
5935 * xtensa-tdep.c:
5936 * ada-lang.c:
5937 * ada-tasks.c:
5938 * ada-varobj.c:
5939 * amd64-darwin-tdep.c:
5940 * arm-symbian-tdep.c:
5941 * arm-tdep.c: Delete unused variables.
5942
5943 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5944
5945 Rename $ddir to $datadir.
5946 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5947 * auto-load.c (auto_load_safe_path_vec_update)
5948 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5949 * configure: Regenerate.
5950 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5951 Likewise. Remove the 'use $ddir' help string.
5952
5953 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5954
5955 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5956 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5957
5958 2012-05-18 Tom Tromey <tromey@redhat.com>
5959
5960 PR exp/13907:
5961 * valprint.h (struct value_print_options) <symbol_print>: New
5962 field.
5963 * valprint.c (user_print_options): Add default for symbol_print.
5964 (show_symbol_print): New function.
5965 (generic_val_print): Respect symbol_print.
5966 (_initialize_valprint): Add "print symbol" setting.
5967 * f-valprint.c (f_val_print): Respect symbol_print.
5968 * c-valprint.c (c_val_print): Respect symbol_print.
5969 * NEWS: Update.
5970 * printcmd.c (print_address_symbolic): Return int. Ignore some
5971 zero-size symbols.
5972 (print_address_demangle): Return int.
5973 * defs.h: (print_address_symbolic): Return int.
5974 * value.h (print_address_demangle): Return int.
5975
5976 2012-05-18 Tom Tromey <tromey@redhat.com>
5977
5978 * valprint.c (val_print_string): Don't print leading space.
5979 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5980 print space before string or vtbl.
5981 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5982 before string.
5983 * jv-valprint.c (java_value_print): Print space before string.
5984 * go-valprint.c (print_go_string): Print space before string.
5985 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5986 space before string.
5987 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5988 space before string or vtbl.
5989 * auxv.c (fprint_target_auxv): Print space after address.
5990
5991 2012-05-18 Tom Tromey <tromey@redhat.com>
5992
5993 * printcmd.c (print_address_demangle): Remove special case for 0.
5994
5995 2012-05-18 Tom Tromey <tromey@redhat.com>
5996
5997 * printcmd.c (print_address_demangle): Add 'opts' argument.
5998 * p-valprint.c (pascal_val_print): Update.
5999 * jv-valprint.c (java_val_print): Update.
6000 * value.h: Update.
6001 * valprint.c (generic_val_print): Update.
6002 (print_function_pointer_address): Add 'options' argument. Remove
6003 'addressprint' argument. Update.
6004 * m2-valprint.c (print_unpacked_pointer): Update.
6005 * gnu-v3-abi.c (print_one_vtable): Update.
6006 (gnuv3_print_method_ptr): Update.
6007 * f-valprint.c (f_val_print): Update.
6008 * cp-valprint.c (cp_print_value_fields): Update.
6009 * valprint.h (print_function_pointer_address): Update.
6010 * c-valprint.c (c_val_print): Update.
6011
6012 2012-05-18 Tom Tromey <tromey@redhat.com>
6013
6014 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6015 directly corresponding to the found psymtab.
6016 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6017 (dw2_find_pc_sect_symtab): Use it.
6018 * block.h (blockvector_contains_pc): Declare.
6019 * block.c (find_block_in_blockvector): New function.
6020 (blockvector_for_pc_sect): Use it.
6021 (blockvector_contains_pc): New function.
6022
6023 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6024
6025 * mips-tdep.h (mips_write_pc): New prototype.
6026 * mips-tdep.c (mips_write_pc): Make external, add description.
6027 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6028 add description.
6029
6030 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6031
6032 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6033 mips_regnum->pc.
6034 (mips_unwind_pc, mips_write_pc): Likewise.
6035 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6036 gdbarch_read_pc.
6037
6038 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6039
6040 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6041 proc_warn, proc_error, proc_get_status, proc_flags,
6042 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6043 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6044 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6045 proc_stop_process, proc_wait_for_stop, proc_run_process,
6046 proc_set_traced_signals, proc_set_traced_faults,
6047 proc_set_traced_sysentry, proc_set_traced_sysexit,
6048 proc_set_held_signals, proc_get_held_signals,
6049 proc_get_traced_signals, proc_get_traced_faults,
6050 proc_get_traced_sysentry, proc_get_traced_sysexit,
6051 proc_clear_current_fault, proc_set_current_signal,
6052 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6053 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6054 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6055 proc_get_current_thread, proc_get_current_thread,
6056 proc_get_current_thread, proc_update_threads,
6057 proc_update_threads, proc_update_threads, proc_update_threads,
6058 proc_iterate_over_threads, procfs_find_new_threads,
6059 procfs_pid_to_str): Make static. Remove advance declaration.
6060 (proc_cursig): Make static. Conditionalized defintion on
6061 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6062 (proc_syscall, proc_set_kill_on_last_close,
6063 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6064 proc_get_pending_signals, proc_get_signal_actions,
6065 proc_trace_signal, proc_ignore_signal): Delete.
6066
6067 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6068
6069 * coffread.c (cs_section_address): Passing proper argument for
6070 `bfd_get_section_vma'.
6071 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6072 `bfd_get_section_flags'.
6073 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6074 `bfd_get_section_vma'.
6075
6076 2012-05-16 Tom Tromey <tromey@redhat.com>
6077
6078 PR macros/13205:
6079 * macrotab.h: (macro_define_special): Declare.
6080 (enum macro_special_kind): New.
6081 (struct macro_definition) <argc, replacement>: Update comments.
6082 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6083 (macro_define_object_internal): New function.
6084 (macro_define_object): Use it.
6085 (macro_define_special): New function.
6086 (fixup_definition): New function.
6087 (macro_lookup_definition, foreach_macro_in_scope)
6088 (foreach_macro): Use fixup_definition.
6089 * macroexp.h (macro_stringify): Declare.
6090 * macroexp.c (free_buffer_return_text): New function.
6091 (stringify): Constify "arg".
6092 (macro_stringify): New function.
6093 * dwarf2read.c (macro_start_file): Call macro_define_special.
6094
6095 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6096 Maciej W. Rozycki <macro@mips.com>
6097
6098 * breakpoint.h (bp_location): Add related_address member.
6099 * inferior.h (get_return_value): Take a pointer to struct value
6100 instead of struct type for the function requested.
6101 * value.h (using_struct_return): Likewise.
6102 * gdbarch.sh (return_value): Take a pointer to struct value
6103 instead of struct type for the function requested.
6104 * breakpoint.c (set_breakpoint_location_function): Initialize
6105 related_address for bp_gnu_ifunc_resolver breakpoints.
6106 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6107 requested function's address to gdbarch_return_value.
6108 * eval.c (evaluate_subexp_standard): Pass the requested
6109 function's address to using_struct_return.
6110 * infcall.c (call_function_by_hand): Pass the requested
6111 function's address to using_struct_return and
6112 gdbarch_return_value.
6113 * infcmd.c (get_return_value): Take a pointer to struct value
6114 instead of struct type for the function requested.
6115 (print_return_value): Update accordingly.
6116 (finish_command_continuation): Likewise.
6117 * stack.c (return_command): Pass the requested function's
6118 address to using_struct_return and gdbarch_return_value.
6119 * value.c (using_struct_return): Take a pointer to struct value
6120 instead of struct type for the function requested. Pass the
6121 requested function's address to gdbarch_return_value.
6122 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6123 New function_value member, replacing function_type.
6124 (bpfinishpy_dealloc): Update accordingly.
6125 (bpfinishpy_pre_stop_hook): Likewise.
6126 (bpfinishpy_init): Likewise. Record the requested function's
6127 address.
6128 * mips-tdep.c (mips_fval_reg): New enum.
6129 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6130 words put in GP registers.
6131 (mips_o64_push_dummy_call): Update a comment.
6132 (mips_o32_return_value): Take a pointer to struct value instead
6133 of struct type for the function requested and use it to check if
6134 using the MIPS16 calling convention. Return the designated
6135 general purpose registers for floating-point values returned in
6136 MIPS16 mode.
6137 (mips_o64_return_value): Likewise.
6138 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6139 (ppc_sysv_abi_broken_return_value): Likewise.
6140 (ppc64_sysv_abi_return_value): Likewise.
6141 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6142 value instead of struct type for the function requested.
6143 * amd64-tdep.c (amd64_return_value): Likewise.
6144 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6145 * arm-tdep.c (arm_return_value): Likewise.
6146 * avr-tdep.c (avr_return_value): Likewise.
6147 * bfin-tdep.c (bfin_return_value): Likewise.
6148 * cris-tdep.c (cris_return_value): Likewise.
6149 * frv-tdep.c (frv_return_value): Likewise.
6150 * h8300-tdep.c (h8300_return_value): Likewise.
6151 (h8300h_return_value): Likewise.
6152 * hppa-tdep.c (hppa32_return_value): Likewise.
6153 (hppa64_return_value): Likewise.
6154 * i386-tdep.c (i386_return_value): Likewise.
6155 * ia64-tdep.c (ia64_return_value): Likewise.
6156 * iq2000-tdep.c (iq2000_return_value): Likewise.
6157 * lm32-tdep.c (lm32_return_value): Likewise.
6158 * m32c-tdep.c (m32c_return_value): Likewise.
6159 * m32r-tdep.c (m32r_return_value): Likewise.
6160 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6161 * m68k-tdep.c (m68k_return_value): Likewise.
6162 (m68k_svr4_return_value): Likewise.
6163 * m88k-tdep.c (m88k_return_value): Likewise.
6164 * mep-tdep.c (mep_return_value): Likewise.
6165 * microblaze-tdep.c (microblaze_return_value): Likewise.
6166 * mn10300-tdep.c (mn10300_return_value): Likewise.
6167 * moxie-tdep.c (moxie_return_value): Likewise.
6168 * mt-tdep.c (mt_return_value): Likewise.
6169 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6170 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6171 (ppc_sysv_abi_broken_return_value): Likewise.
6172 (ppc64_sysv_abi_return_value): Likewise.
6173 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6174 * rl78-tdep.c (rl78_return_value): Likewise.
6175 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6176 * rx-tdep.c (rx_return_value): Likewise.
6177 * s390-tdep.c (s390_return_value): Likewise.
6178 * score-tdep.c (score_return_value): Likewise.
6179 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6180 (sh_return_value_fpu): Likewise.
6181 * sh64-tdep.c (sh64_return_value): Likewise.
6182 * sparc-tdep.c (sparc32_return_value): Likewise.
6183 * sparc64-tdep.c (sparc64_return_value): Likewise.
6184 * spu-tdep.c (spu_return_value): Likewise.
6185 * tic6x-tdep.c (tic6x_return_value): Likewise.
6186 * v850-tdep.c (v850_return_value): Likewise.
6187 * vax-tdep.c (vax_return_value): Likewise.
6188 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6189 * xtensa-tdep.c (xtensa_return_value): Likewise.
6190 * gdbarch.c: Regenerate.
6191 * gdbarch.h: Regenerate.
6192
6193 2012-05-15 Tom Tromey <tromey@redhat.com>
6194
6195 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6196
6197 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6198
6199 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6200 of command in two error message.
6201
6202 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6203
6204 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6205
6206 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6207
6208 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6209
6210 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6211
6212 * NEWS (show auto-load scripts-directory): Add forgotten command.
6213
6214 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6215
6216 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6217 parameters.
6218
6219 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6220
6221 * amd64-tdep.c: Include features/i386/x32.c and
6222 features/i386/x32-avx.c.
6223 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6224 initialize_tdesc_x32_avx.
6225
6226 2012-05-14 Stan Shebs <stan@codesourcery.com>
6227
6228 Add dynamic printf.
6229 * breakpoint.h (enum bptype): New type bp_dprintf.
6230 (struct breakpoint): New field extra_string.
6231 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6232 (create_breakpoint): Add extra_string arg.
6233 * breakpoint.c (dprintf_breakpoint_ops): New.
6234 (is_breakpoint): Add bp_dprintf.
6235 (bpstat_what): Add dprintf case.
6236 (bptype_string): Ditto.
6237 (print_one_breakpoint_location): Ditto.
6238 (init_bp_location): Ditto.
6239 (bkpt_print_mention): Ditto.
6240 (dprintf_style_enums): New array.
6241 (dprintf_style): New global.
6242 (dprintf_function): New global.
6243 (dprintf_channel): New global.
6244 (update_dprintf_command_list): New function.
6245 (update_dprintf_commands): New function.
6246 (init_breakpoint_sal): Add extra_string argument, handle it.
6247 (create_breakpoint_sal): Add extra_string argument.
6248 (create_breakpoints_sal): Add extra_string argument, update callers.
6249 (find_condition_and_thread): Add extra argument.
6250 (create_breakpoint): Add extra_string argument, record it.
6251 (dprintf_command): New function.
6252 (break_command_1): Add arg to create_breakpoint call.
6253 (handle_gnu_v3_exceptions): Ditto.
6254 (trace_command): Ditto.
6255 (ftrace_command): Ditto.
6256 (strace_command): Ditto.
6257 (bkpt_print_mention): Add dprintf case.
6258 (create_breakpoint_sal_default): Add extra_string argument.
6259 (_initialize_breakpoint): Add new commands.
6260 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6261 * python/py-breakpoint.c (bppy_init): Ditto.
6262 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6263
6264 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6265
6266 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6267
6268 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6269
6270 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6271 unsigned long long.
6272
6273 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6274
6275 Add a new function gdb.find_pc_line to the Python API.
6276 * NEWS (Python Scripting): Add entry about the new function.
6277 * python/python.c (gdbpy_find_pc_line): New function which
6278 implements gdb.find_pc_line.
6279 (GdbMethods): Add entry for the new function.
6280
6281 2012-05-12 Pedro Alves <palves@redhat.com>
6282
6283 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6284 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6285
6286 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6287
6288 * inferior.c: Include completer.h
6289 (initialize_inferiors): Set completer of add-inferior to
6290 filename_completer.
6291
6292 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6293
6294 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6295 gdbarch_ptr_bit for x32 core dump.
6296
6297 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6298
6299 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6300 and features/i386/x32-avx-linux.c.
6301
6302 2012-05-11 Stan Shebs <stan@codesourcery.com>
6303 Kwok Cheung Yeung <kcy@codesourcery.com>
6304
6305 * NEWS: Describe new info os commands.
6306 * common/linux-osdata.c (PID_T, TIME_T): Define.
6307 (MAX_PID_T_STRLEN): New.
6308 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6309 MAX_PID_T_STRLEN.
6310 (command_from_pid): Add comment. Change to use PID_T.
6311 (commandline_from_pid): Change to use PID_T.
6312 (user_from_pid): Add comment.
6313 (get_process_owner): Add comment. Change to use PID_T and
6314 MAX_PID_T_STRLEN.
6315 (get_number_of_cpu_cores): Add comment.
6316 (get_cores_used_by_process): Add comment. Change to use PID_T and
6317 MAX_PID_T_STRLEN.
6318 (linux_xfer_osdata_processes): Change to use PID_T and
6319 MAX_PID_T_STRLEN.
6320 (compare_processes): New function.
6321 (linux_xfer_osdata_processgroups): New function.
6322 (linux_xfer_osdata_threads): Change to use PID_T.
6323 (linux_xfer_osdata_fds): New function.
6324 (format_socket_state, print_sockets): New functions.
6325 (union socket_addr): New union.
6326 (linux_xfer_osdata_isockets): New function.
6327 (time_from_time_t, group_from_gid): New functions.
6328 (linux_xfer_osdata_shm): New function.
6329 (linux_xfer_osdata_sem): New function.
6330 (linux_xfer_osdata_msg): New function.
6331 (linux_xfer_osdata_modules): New function.
6332 (osdata_table): Add new entries.
6333 * common/buffer.c (buffer_xml_printf): Add support for long and
6334 long long format specifiers.
6335
6336 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6337
6338 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6339 (tdesc_x32_avx_linux): Likewise.
6340
6341 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 Implement multi-component --with-auto-load-dir.
6344 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6345 entries.
6346 (--with-auto-load-safe-path): Update the default value description.
6347 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6348 New.
6349 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6350 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6351 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6352 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6353 "set auto-load scripts-directory".
6354 * config.in: Regenerate.
6355 * configure: Regenerate.
6356 * configure.ac (--with-auto-load-dir): New configure option.
6357 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6358
6359 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6360
6361 Provide $ddir substitution for --with-auto-load-safe-path.
6362 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6363 entries.
6364 * auto-load.c: Include observer.h.
6365 (auto_load_safe_path_vec_update): Call substitute_path_component for
6366 each component. New variable ddir_subst.
6367 (auto_load_gdb_datadir_changed): New function.
6368 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6369 AUTO_LOAD_SAFE_PATH. New comment.
6370 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6371 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6372 * config.in: Regenerate.
6373 * configure: Regenerate.
6374 * configure.ac (--auto-load-safe-path): Rename
6375 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6376 GDB_DATADIR/auto-load.
6377 * defs.h (substitute_path_component): New declaration.
6378 * top.c: Include observer.h.
6379 (set_gdb_datadir): New function.
6380 (init_main): Install it for "set data-directory".
6381 * utils.c (substitute_path_component): New function.
6382
6383 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6384
6385 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6386 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6387 DEBUG_FILE_DIRECTORY. Handle multiple components of
6388 DEBUG_FILE_DIRECTORY.
6389
6390 2012-05-10 Tom Tromey <tromey@redhat.com>
6391
6392 * dwarf2read.c (recursively_write_psymbols): New function.
6393 (write_psymtabs_to_index): Use it.
6394
6395 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6396 field.
6397 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6398 (load_partial_comp_unit): Update.
6399 (queue_comp_unit): Add argument 'pretend_language'.
6400 (process_queue): Update.
6401 (psymtab_to_symtab_1): Skip dependencies that have a user.
6402 (load_partial_comp_unit_reader): Give meaning to the 'data'
6403 argument.
6404 (load_full_comp_unit): Add 'pretend_language' argument.
6405 (process_full_comp_unit): Add 'pretend_language' argument. Set
6406 language on CU.
6407 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6408 Update.
6409 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6410 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6411 Update.
6412 (prepare_one_comp_unit): Add 'pretend_language' argument.
6413
6414 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6415 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6416 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6417 (dw2_do_instantiate_symtab): Check whether symtab was read in
6418 before queueing.
6419 (dw2_instantiate_symtab): Add assertion. Call
6420 process_cu_includes.
6421 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6422 (partial_symtab_p): New typedef.
6423 (set_partial_user): New function.
6424 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6425 (scan_partial_symbols): Add imported CU to imported_symtabs.
6426 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6427 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6428 (get_symtab, recursively_compute_inclusions)
6429 (compute_symtab_includes, process_cu_includes)
6430 (process_imported_unit_die): New functions.
6431 (process_die) <DW_TAG_imported_unit>: New case.
6432 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6433
6434 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6435 comment.
6436 (struct partial_die_info) <locdesc>: Remove.
6437 <d>: New field.
6438 (process_psymtab_comp_unit): Add 'read_partial' argument.
6439 Update.
6440 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6441 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6442 (add_partial_symbol): Update.
6443 (process_die): Handle DW_TAG_partial_unit.
6444 (read_file_scope): Update comment.
6445 (load_partial_dies): Handle DW_TAG_imported_unit.
6446 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6447 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6448
6449 2012-05-10 Tom Tromey <tromey@redhat.com>
6450
6451 * cc-with-dwz.sh: New file.
6452
6453 2012-05-10 Tom Tromey <tromey@redhat.com>
6454
6455 * symtab.h (struct symtab) <includes, user>: New fields.
6456 * block.h (struct block_iterator) <d, idx, which>: New fields.
6457 * block.c (initialize_block_iterator, find_iterator_symtab)
6458 (block_iterator_step, block_iter_name_step)
6459 (block_iter_match_step): New functions.
6460 (block_iterator_first, block_iterator_next)
6461 (block_iter_name_first, block_iter_name_next)
6462 (block_iter_match_first, block_iter_match_next): Rewrite.
6463 (get_block_symtab): New function.
6464
6465 2012-05-10 Tom Tromey <tromey@redhat.com>
6466
6467 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6468 set_block_symtab.
6469 * jit.c (finalize_symtab): Use allocate_global_block,
6470 set_block_symtab.
6471 * buildsym.c (finish_block_internal): New function, from old
6472 finish_block.
6473 (finish_block): Rewrite.
6474 (end_symtab): Use finish_block_internal, set_block_symtab.
6475 * block.h (struct global_block): New.
6476 (allocate_global_block, set_block_symtab): Declare.
6477 * block.c (allocate_global_block, set_block_symtab): New
6478 functions.
6479
6480 2012-05-10 Tom Tromey <tromey@redhat.com>
6481
6482 * psymtab.c (partial_map_expand_apply): Add assertion.
6483 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6484 (psymtab_to_symtab): Find unshared psymtab.
6485 (dump_psymtab): Print including psymtabs.
6486 (recursively_search_psymtabs): New function.
6487 (expand_symtabs_matching_via_partial): Use it.
6488 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6489 fields.
6490 (enum psymtab_search_status): New.
6491
6492 2012-05-10 Tom Tromey <tromey@redhat.com>
6493
6494 * tracepoint.c (scope_info): Update.
6495 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6496 (find_pc_sect_symtab, search_symbols)
6497 (default_make_symbol_completion_list_break_on)
6498 (make_file_symbol_completion_list): Update.
6499 * symmisc.c (dump_symtab_1): Update.
6500 * stack.c (print_frame_args, iterate_over_block_locals)
6501 (print_frame_labels, iterate_over_block_arg_vars): Update.
6502 * python/py-block.c (block_object) <dict>: Remove.
6503 <block>: New field.
6504 <iter>: Change type.
6505 (blpy_iter): Update.
6506 (blpy_block_syms_iternext): Update.
6507 * psymtab.c (map_block): Use block iterators.
6508 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6509 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6510 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6511 * infrun.c (check_exception_resume): Update.
6512 * cp-support.c (make_symbol_overload_list_block): Update.
6513 * coffread.c (patch_opaque_types): Update.
6514 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6515 * block.h (struct block_iterator): New.
6516 (block_iterator_first, block_iterator_next, block_iter_name_first)
6517 (block_iter_name_next, block_iter_match_first)
6518 (block_iter_match_next): Declare.
6519 (ALL_BLOCK_SYMBOLS): Redefine.
6520 * block.c (block_iterator_first, block_iterator_next)
6521 (block_iter_name_first, block_iter_name_next)
6522 (block_iter_match_first, block_iter_match_next): New functions.
6523 * ada-lang.c (ada_add_block_symbols)
6524 (ada_make_symbol_completion_list): Use block iterator.
6525
6526 2012-05-10 Tom Tromey <tromey@redhat.com>
6527
6528 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6529 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6530 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6531 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6532 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6533 Update.
6534
6535 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6536
6537 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6538 print-file-var-lib2.c, print-file-var-main.c and
6539 print-file-var.exp (located in gdb/testsuite/gdb.base).
6540
6541 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6542
6543 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6544 try locating the symbol in the symbol's own objfile first, before
6545 extending the search to all objfiles.
6546 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6547 out of lookup_symbol_aux_symtabs.
6548 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6549 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6550 Do not search EXCLUDE_OBJFILE.
6551 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6552 (lookup_symbol_global): Search for matches in the block's objfile
6553 first, before searching all other objfiles.
6554
6555 2012-05-10 Tristan Gingold <gingold@adacore.com>
6556
6557 * printcmd.c (set_command): Add pre/post inc/dec.
6558
6559 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6560
6561 * gdb.1: Document -ex option.
6562
6563 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6564
6565 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6566 * inferior.h (AT_SYMBOL): Delete.
6567
6568 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6569
6570 * mips-tdep.c (mips_push_dummy_code): New function.
6571 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6572 ON_STACK and install mips_push_dummy_code as our gdbarch
6573 push_dummy_code routine.
6574
6575 2012-05-09 Pedro Alves <palves@redhat.com>
6576
6577 * target.c (set_maintenance_target_async_permitted): Rename to ...
6578 (set_target_async_command): ... this.
6579 (show_maintenance_target_async_permitted): Rename to ...
6580 (show_target_async_command): ... this.
6581 (initialize_targets): Adjust.
6582
6583 2012-05-08 Doug Evans <dje@google.com>
6584
6585 * go-exp.y (classify_name): Add missing assignment of fields of
6586 yylval.ssym.
6587
6588 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6589
6590 Display the ">" prompt in interactive mode while reading canned
6591 commands, even when the current interpreter is MI.
6592
6593 * interps.c (interp_set_temp): New function.
6594
6595 * interps.h (interp_set_temp): Add prototype.
6596
6597 * cli/cli-script.c (restore_interp): New cleanup function.
6598 (read_command_lines): Temporarily override the current interpreter
6599 with CLI and arrange for restoring the original one.
6600
6601 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6602
6603 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6604
6605 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6606
6607 * probe.c (parse_probes): Move conditional to check for
6608 debuginfo files from here...
6609 * stap-probe.c (stap_get_probes): ... to here.
6610
6611 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6612 H.J. Lu <hongjiu.lu@intel.com>
6613
6614 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6615 `movl %esp, %ebp' for the X32 ABI.
6616
6617 2012-05-07 Tom Tromey <tromey@redhat.com>
6618
6619 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6620 get_DW_TAG_name.
6621 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6622 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6623 (dwarf_stack_op_name): Remove.
6624 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6625 (decode_locdesc): Use get_DW_OP_name.
6626 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6627 (dwarf2_compile_expr_to_ax): Likewise.
6628 (disassemble_dwarf_expression): Likewise.
6629 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6630
6631 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6632
6633 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6634 (sh_linux_sigtramp_cache): New function.
6635 (sh_linux_sigreturn_init): New function.
6636 (sh_linux_rt_sigreturn_init): New function.
6637 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6638 patterns.
6639 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6640 syscall codes.
6641 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6642 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6643 (sh_linux_init_abi): Add init calls to register new tramp_frame
6644 definitions under 32-bit SH, update comments.
6645
6646 2012-05-07 Pedro Alves <palves@redhat.com>
6647
6648 PR gdb/10952
6649
6650 * amd64-linux-tdep.c: Include glibc-tdep.h.
6651 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6652 gdbarch_skip_solib_resolver callback.
6653
6654 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6655
6656 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6657 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6658 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6659 (add_auto_load_safe_path): Change the error message.
6660 (_initialize_auto_load): Change the "safe-path" help text.
6661 * configure: Regenerate
6662 * configure.ac (--without-auto-load-safe-path): Set
6663 WITH_AUTO_LOAD_SAFE_PATH to /.
6664
6665 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6666
6667 * stap-probe.h: Do not include unecessary `probe.h'.
6668
6669 2012-05-05 Alan Modra <amodra@gmail.com>
6670
6671 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6672 bfd_und_section_ptr.
6673 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6674 and bfd_com_section_ptr.
6675
6676 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6677
6678 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6679
6680 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6681
6682 * windows-nat.h (segment_register_p_ftype): New typedef.
6683 (windows_set_segment_register_p): Add declaration.
6684 * windows-nat.c (segment_register_p): New static global.
6685 (windows_set_segment_register_p): New function.
6686 (do_windows_fetch_inferior_registers): Add special handling
6687 for segment registers.
6688 * amd64-windows-nat.c: #include "amd64-tdep.h".
6689 (amd64_windows_segment_register_p): New function.
6690 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6691 * i386-windows-nat.c: #include "i386-tdep.h".
6692 (i386_windows_segment_register_p): New function.
6693 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6694
6695 2012-05-04 Tristan Gingold <gingold@adacore.com>
6696
6697 * printcmd.c (set_command): Emit a warning if the expression is not
6698 an assignment.
6699
6700 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6701
6702 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6703 Make static.
6704
6705 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6706
6707 * stap-probe.c (stap_is_operator): Change declaration.
6708 (stap_get_opcode): Change return value.
6709 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6710 `stap_parse_argument_1'.
6711
6712 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6713
6714 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6715 debug log.
6716
6717 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6718
6719 Add two new methods global_block and static_block to gdb.Symtab
6720 objects.
6721 * NEWS (Python scripting): Add entry about the new methods.
6722 * python/py-symtab.c (stpy_global_block): New function which
6723 implements the gdb.Symtab.global_block() method.
6724 (stpy_static_block): New function which implements the
6725 gdb.Symtab.static_block() method.
6726 (symtab_object_methods): Add entries for the two new methods.
6727
6728 2012-05-03 Doug Evans <dje@google.com>
6729
6730 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6731 files.
6732
6733 2012-05-03 Yao Qi <yao@codesourcery.com>
6734
6735 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6736 space.
6737 (i386_process_record): Ditto.
6738
6739 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6740
6741 * infcall.c (unwind_on_signal_p): Make static.
6742
6743 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6744
6745 * sol-thread.c (solaris_pid_to_str): Make static.
6746 (_initialize_sol_thread): Add prototype.
6747
6748 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6749
6750 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6751
6752 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6753
6754 * MAINTAINERS: Remove myself.
6755
6756 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6757
6758 Fix --without-auto-load-safe-path for MS-Windows host platform.
6759 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6760
6761 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6762
6763 * gdb_curses.h: Undefine KEY_EVENT before including curses
6764 headers. Move "#undef MOUSE_MOVED" before any curses header
6765 inclusion.
6766
6767 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6768
6769 * features/i386/i386-mmx-linux.c: Regenerate.
6770 * features/rs6000/powerpc-32.c: Likewise.
6771 * features/rs6000/powerpc-32l.c: Likewise.
6772 * features/rs6000/powerpc-403.c: Likewise.
6773 * features/rs6000/powerpc-403gc.c: Likewise.
6774 * features/rs6000/powerpc-405.c: Likewise.
6775 * features/rs6000/powerpc-505.c: Likewise.
6776 * features/rs6000/powerpc-601.c: Likewise.
6777 * features/rs6000/powerpc-602.c: Likewise.
6778 * features/rs6000/powerpc-603.c: Likewise.
6779 * features/rs6000/powerpc-604.c: Likewise.
6780 * features/rs6000/powerpc-64.c: Likewise.
6781 * features/rs6000/powerpc-64l.c: Likewise.
6782 * features/rs6000/powerpc-750.c: Likewise.
6783 * features/rs6000/powerpc-860.c: Likewise.
6784 * features/rs6000/powerpc-e500.c: Likewise.
6785 * features/rs6000/powerpc-e500l.c: Likewise.
6786 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6787 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6788 * features/rs6000/rs6000.c: Likewise.
6789
6790 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6791
6792 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6793 variable.
6794 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6795 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6796 (stap_parse_argument) <e>: Likewise.
6797 (handle_stap_probe) <byte_order>: Likewise.
6798
6799 2012-04-30 Doug Evans <dje@google.com>
6800
6801 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6802 init_and_read_dies_worker. All callers updated.
6803 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6804 replaced with init_cutu_and_read_dies.
6805 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6806 (find_partial_die): Remove FIXME. Don't free current CU.
6807
6808 2012-04-30 Sterling Augustine <saugustine@google.com>
6809
6810 * contrib: New directory.
6811 * contrib/test_pubnames_and_indexes.py: New file.
6812
6813 2012-04-30 Doug Evans <dje@google.com>
6814
6815 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6816 All callers updated.
6817 (init_cu_die_reader): Verify the section is non-empty.
6818 (dwarf_decode_line_header): Don't dereference section->asection
6819 until we know the section is present.
6820
6821 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6822
6823 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6824 probes.
6825
6826 2012-04-29 Yao Qi <yao@codesourcery.com>
6827
6828 * gdb-code-style.el: New hook gdb-markup-hook
6829 and gdb-comment-hook.
6830
6831 2012-04-28 Doug Evans <dje@google.com>
6832
6833 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6834 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6835 objfile->obfd.
6836 * symfile.h (dwarf2_debug_sections): New member addr.
6837 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6838 (ctx_no_get_addr_index): New function.
6839 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6840 (ctx_no_get_addr_index): Declare.
6841 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6842 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6843 (dwarf_expr_ctx_funcs): Update.
6844 (needs_get_addr_index): New function.
6845 (needs_frame_ctx_funcs): Update.
6846 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6847 * dwarf2read.c: #include "gdbcore.h".
6848 (dwarf2_per_objfile): New members addr, dwo_files.
6849 (dwarf2_elf_names): Add entry for addr.
6850 (struct dwo_section_names): New type.
6851 (dwo_section_names): New static global.
6852 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6853 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6854 old debug_types_section member updated to use this.
6855 Rename member debug_types_section to info_or_types_section,
6856 all uses updated.
6857 (signatured_type): Rename member type_offset to type_offset_in_tu,
6858 all uses updated. New member type_offset_in_section.
6859 (struct dwo_sections): New type.
6860 (struct dwo_unit): New type.
6861 (struct dwo_file): New type.
6862 (die_reader_specs): New member dwo_file.
6863 (dwarf2_locate_sections): Watch for .debug_addr.
6864 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6865 (dwarf2_read_section): Get bfd of section from bfd's asection,
6866 instead of objfile.
6867 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6868 (create_signatured_type_table_from_index): Initialize
6869 sig_type->info_or_types_section.
6870 (dw2_get_file_names): Statement lists for type units with DWO files
6871 live in the DWO file.
6872 (create_debug_types_hash_table): New function.
6873 (create_all_type_units): Rewrite.
6874 (init_cu_die_reader): New arg dwo_file, all callers updated.
6875 (init_and_read_dies_worker): Get section from
6876 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6877 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6878 continue reading the CU/TU from there.
6879 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6880 updated. Get section from this_cu->info_or_types_section.
6881 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6882 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6883 DW_FORM_GNU_str_index.
6884 (hash_dwo_file, eq_dwo_file): New functions.
6885 (allocate_dwo_file_hash_table): New function.
6886 (hash_dwo_unit, eq_dwo_unit): New functions.
6887 (allocate_dwo_unit_table): New function.
6888 (dwarf2_locate_dwo_sections): New function.
6889 (struct create_dwo_info_table_data): New type.
6890 (create_debug_info_hash_table_reader): New function.
6891 (create_debug_info_hash_table): New function.
6892 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6893 (lookup_dwo_file): New function.
6894 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6895 (free_dwo_file, free_dwo_file_cleanup): New functions.
6896 (free_dwo_file_from_slot, free_dwo_files): New functions.
6897 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6898 (dwarf2_record_block_ranges): Ditto.
6899 (read_partial_die): Ditto.
6900 (process_enumeration_scope): Update to use type_offset_in_section.
6901 (read_full_die_1): New function.
6902 (read_full_die): Rewrite.
6903 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6904 DW_FORM_GNU_str_index.
6905 (read_addr_index_1, read_addr_index): New functions.
6906 (read_addr_index_from_leb128): New function.
6907 (struct dwarf2_read_addr_index_data): New type.
6908 (dwarf2_read_addr_index_reader): New function.
6909 (dwarf2_read_addr_index): New function.
6910 (read_str_index): New function.
6911 (leb128_size): New function.
6912 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6913 If processing a type unit from a DWO file, get the line section
6914 from the DWO file.
6915 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6916 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6917 DW_FORM_GNU_str_index.
6918 (lookup_die_type): Check whether section offset of type's die is
6919 known before looking it up. Remove assert. Condition can
6920 legimately happen for inter-cu type references.
6921 (dwarf_attr_name): Handle Fission attributes.
6922 (dwarf_form_name): Handle Fission forms.
6923 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6924 DW_FORM_GNU_str_index.
6925 (follow_die_sig): Update to use type_offset_in_section.
6926 (decode_locdesc): New case DW_OP_GNU_addr_index.
6927 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6928 DW_FORM_GNU_str_index.
6929 (cu_debug_loc_section): New function.
6930 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6931 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6932 Free DWO files if present.
6933 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6934
6935 Refactor DIE reading.
6936 * dwarf2read.c (dwarf2_per_objfile): Replace members
6937 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6938 (die_reader_specs): New member "die_section". Temporarily make
6939 member "buffer" non-const, pending constifying all info_ptr uses.
6940 (die_reader_func_ftype): New typedef.
6941 (dw2_get_file_names_reader): New function.
6942 (dw2_get_file_names): Rewrite.
6943 (read_and_check_type_unit_head): Rename arg type_offset to
6944 type_offset_in_tu.
6945 (create_all_type_units): Improve debugging message.
6946 Improve dummy type unit check.
6947 (init_cu_die_reader): New arg "section". All callers updated.
6948 (init_and_read_dies_worker): New function.
6949 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6950 (init_cutu_and_read_dies_no_follow): New function.
6951 (init_cutu_and_read_dies_simple): New function.
6952 (process_psymtab_comp_unit_reader): New function.
6953 (process_psymtab_comp_unit): Delete args section,
6954 is_debug_types_section. Rewrite. All callers updated.
6955 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6956 All callers updated. Rewrite.
6957 (load_partial_comp_unit_reader): New function.
6958 (load_partial_comp_unit): Rewrite.
6959 (skip_children): New arg reader. Delete args buffer, cu.
6960 All callers updated.
6961 (skip_one_die): New arg reader. Delete args buffer, cu.
6962 All callers updated.
6963 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6964 All callers updated.
6965 (load_full_comp_unit_reader): New function.
6966 (load_full_comp_unit): Rewrite.
6967 (read_comp_unit): Delete.
6968 (read_die_and_children_1): Delete, contents moved ...
6969 (read_die_and_children): ... here.
6970 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6971 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6972 All callers updated.
6973 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6974 All callers updated.
6975 (find_partial_die): Rewrite load_all_dies support.
6976 (read_attribute_value): New arg reader. Delete args abfd, cu.
6977 All callers updated.
6978 (read_attribute): New arg reader. Delete args abfd, cu.
6979 All callers updated.
6980 (load_full_type_unit): Add assert.
6981 (read_signatured_type_reader): New function.
6982 (read_signatured_type): Rewrite.
6983 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6984 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6985 All callers updated. Set per_cu->cu = NULL after freeing it.
6986 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6987 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6988 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6989 (set_die_type): Update.
6990 (get_die_type_at_offset): Update.
6991 (read_file_scope): Call prepare_one_comp_unit.
6992 (read_type_unit_scope): Ditto.
6993 (prepare_one_comp_unit): Set producer if present.
6994
6995 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6996
6997 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6998 gettext function on `error'.
6999
7000 2012-04-27 Doug Evans <dje@google.com>
7001
7002 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7003 is empty.
7004
7005 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7006 Tom Tromey <tromey@redhat.com>
7007
7008 * breakpoint.c (struct breakpoint_objfile_data)
7009 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7010 <exception_probes>: New fields.
7011 (free_breakpoint_probes): New function.
7012 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7013 `_Unwind_DebugHook'.
7014 (create_exception_master_breakpoint): Likewise.
7015 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7016 * infrun.c: Including necessary header files for handling SystemTap
7017 probes.
7018 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7019 via SystemTap probes.
7020 (check_exception_resume): Remove `func' argument. Handle exception
7021 unwinding breakpoint set via a SystemTap probe.
7022 (insert_exception_resume_from_probe): New function.
7023
7024 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7025 Tom Tromey <tromey@redhat.com>
7026 Jan Kratochvil <jan.kratochvil@redhat.com>
7027
7028 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7029 (COMMON_OBS): Likewise.
7030 (HFILES_NO_SRCDIR): Add `probe'.
7031 * NEWS: Mention support for static and SystemTap probes.
7032 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7033 SystemTap probes' arguments parser.
7034 * arm-linux-tdep.c: Including headers needed to perform the parsing
7035 of SystemTap probes' arguments.
7036 (arm_stap_is_single_operand): New function.
7037 (arm_stap_parse_special_token): Likewise.
7038 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7039 probes' arguments parser.
7040 * ax-gdb.c (require_rvalue): Removing static declaration.
7041 (gen_expr): Likewise.
7042 * ax-gdb.h (gen_expr): Declaring function.
7043 (require_rvalue): Likewise.
7044 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7045 (bkpt_probe_breakpoint_ops): New variable.
7046 (momentary_breakpoint_from_master): Set the `probe' value.
7047 (add_location_to_breakpoint): Likewise.
7048 (break_command_1): Using proper breakpoint_ops according to the
7049 argument passed by the user in the command line.
7050 (bkpt_probe_insert_location): New function.
7051 (bkpt_probe_remove_location): Likewise.
7052 (bkpt_probe_create_sals_from_address): Likewise.
7053 (bkpt_probe_decode_linespec): Likewise.
7054 (tracepoint_probe_create_sals_from_address): Likewise.
7055 (tracepoint_probe_decode_linespec): Likewise.
7056 (tracepoint_probe_breakpoint_ops): New variable.
7057 (trace_command): Using proper breakpoint_ops according to the
7058 argument passed by the user in the command line.
7059 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7060 static probes on breakpoints and tracepoints.
7061 * breakpoint.h (struct bp_location) <probe>: New field.
7062 * cli-utils.c (skip_spaces_const): New function.
7063 (extract_arg): Likewise.
7064 * cli-utils.h (skip_spaces_const): Likewise.
7065 (extract_arg): Likewise.
7066 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7067 * configure.ac: Append `stap-probe.o' to be generated when ELF
7068 support is present.
7069 * configure: Regenerate.
7070 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7071 * elfread.c: Include `probe.h' and `arch-utils.h'.
7072 (probe_key): New variable.
7073 (elf_get_probes): New function.
7074 (elf_get_probe_argument_count): Likewise.
7075 (elf_evaluate_probe_argument): Likewise.
7076 (elf_compile_to_ax): Likewise.
7077 (elf_symfile_relocate_probe): Likewise.
7078 (stap_probe_key_free): Likewise.
7079 (elf_probe_fns): New variable.
7080 (elf_sym_fns): Add `sym_probe_fns' value.
7081 (elf_sym_fns_lazy_psyms): Likewise.
7082 (elf_sym_fns_gdb_index): Likewise.
7083 (_initialize_elfread): Initialize objfile cache for static
7084 probes.
7085 * gdb_vecs.h (struct probe): New forward declaration.
7086 (probe_p): New VEC declaration.
7087 * gdbarch.c: Regenerate.
7088 * gdbarch.h: Regenerate.
7089 * gdbarch.sh (stap_integer_prefix): New variable.
7090 (stap_integer_suffix): Likewise.
7091 (stap_register_prefix): Likewise.
7092 (stap_register_suffix): Likewise.
7093 (stap_register_indirection_prefix): Likewise.
7094 (stap_register_indirection_suffix): Likewise.
7095 (stap_gdb_register_prefix): Likewise.
7096 (stap_gdb_register_suffix): Likewise.
7097 (stap_is_single_operand): New function.
7098 (stap_parse_special_token): Likewise.
7099 (struct stap_parse_info): Forward declaration.
7100 * i386-tdep.c: Including headers needed to perform the parsing
7101 of SystemTap probes' arguments.
7102 (i386_stap_is_single_operand): New function.
7103 (i386_stap_parse_special_token): Likewise.
7104 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7105 probes' arguments parser.
7106 * i386-tdep.h (i386_stap_is_single_operand): New function.
7107 (i386_stap_parse_special_token): Likewise.
7108 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7109 * mipsread.c (ecoff_sym_fns): Likewise.
7110 * objfiles.c (objfile_relocate1): Support relocation for static
7111 probes.
7112 * parse.c (prefixify_expression): Remove static declaration.
7113 (initialize_expout): Likewise.
7114 (reallocate_expout): Likewise.
7115 * parser-defs.h (initialize_expout): Declare function.
7116 (reallocate_expout): Likewise.
7117 (prefixify_expression): Likewise.
7118 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7119 of SystemTap probes' arguments.
7120 (ppc_stap_is_single_operand): New function.
7121 (ppc_stap_parse_special_token): Likewise.
7122 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7123 probes' arguments parser.
7124 * probe.c: New file, for generic statically defined probe support.
7125 * probe.h: Likewise.
7126 * s390-tdep.c: Including headers needed to perform the parsing of
7127 SystemTap probes' arguments.
7128 (s390_stap_is_single_operand): New function.
7129 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7130 probes' arguments parser.
7131 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7132 * stap-probe.c: New file, for SystemTap probe support.
7133 * stap-probe.h: Likewise.
7134 * symfile.h: Include `gdb_vecs.h'.
7135 (struct sym_probe_fns): New struct.
7136 (struct sym_fns) <sym_probe_fns>: New field.
7137 * symtab.c (init_sal): Initialize `probe' field.
7138 * symtab.h (struct probe): Forward declaration.
7139 (struct symtab_and_line) <probe>: New field.
7140 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7141 locations.
7142 (stop_tracing): Likewise.
7143 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7144
7145 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7146 Tom Tromey <tromey@redhat.com>
7147
7148 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7149 and to compile agent expressions.
7150 * infrun.c (siginfo_make_value): New argument `ignore'.
7151 (siginfo_funcs): New struct.
7152 (_initialize_infrun): New argument when calling
7153 `create_internalvar_type_lazy'.
7154 * thread.c (thread_id_make_value): New argument `ignore'.
7155 (thread_funcs): New struct.
7156 (_initialize_thread): New argument when calling
7157 `create_internalvar_type_lazy'.
7158 * tracepoint.c (sdata_make_value): New argument `ignore'.
7159 (sdata_funcs): New struct.
7160 (_initialize_tracepoint): New argument when calling
7161 `create_internalvar_type_lazy'.
7162 * value.c (make_value): New struct.
7163 (create_internalvar_type_lazy): New argument `data'.
7164 (compile_internalvar_to_ax): New function.
7165 (value_of_internalvar): Properly handling `make_value' case.
7166 (clear_internalvar): Likewise.
7167 (show_convenience): Adding `TRY_CATCH' block.
7168 * value.h (internalvar_make_value): Delete, replace by...
7169 (struct internalvar_funcs): ... this.
7170 (create_internalvar_type_lazy) <fun>: Delete argument.
7171 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7172 (compile_internalvar_to_ax): New function.
7173 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7174 (tlb_funcs): New struct.
7175 (_initialize_windows_tdep): New argument when calling
7176 `create_internalvar_type_lazy'.
7177
7178 2012-04-27 Mark Wielaard <mjw@redhat.com>
7179
7180 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7181 see whether it is an address or a constant offset from DW_AT_low_pc.
7182 (dwarf2_record_block_ranges): Likewise.
7183 (read_partial_die): Likewise.
7184
7185 2012-04-26 Mark Wielaard <mjw@redhat.com>
7186
7187 * MAINTAINERS (Write After Approval): Add myself to the list.
7188
7189 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7190
7191 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7192 (proc_prettyprint_signal): Likewise.
7193 (proc_prettyprint_faultset): Likewise.
7194 (proc_prettyprint_fault): Likewise.
7195 (proc_prettyprint_actionset): Likewise.
7196 (proc_prettyprint_flags): Move to new proc-flags.c section.
7197 (proc_prettyfprint_flags): New prototype.
7198 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7199 (proc_syscall, proc_cursig): Likewise.
7200 (proc_set_kill_on_last_close): Likewise.
7201 (proc_unset_kill_on_last_close): Likewise.
7202 (proc_set_watchpoint): Make static.
7203 (proc_delete_dead_threads): Likewise.
7204 (procfs_set_watchpoint): Likewise.
7205 (_initialize_procfs): Add prototype.
7206 * proc-events.c: Include proc-utils.h.
7207 (init_syscall_table): Make static.
7208 * proc-api.c (_initialize_proc_api): Add prototype.
7209 * proc-flags.c: Include proc-utils.h.
7210
7211 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7212
7213 * configure.ac: Add AC_ARG_PROGRAM.
7214 * configure: Regenerate.
7215
7216 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7217
7218 Fix DW_AT_lower_bound defaults for DWARF-4+.
7219 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7220 high. New variable low_default_is_valid. Implement DWARF-4+
7221 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7222 no default by the DWARF standard.
7223
7224 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7225 Maciej W. Rozycki <macro@codesourcery.com>
7226
7227 * infrun.c (handle_inferior_event): Move the check for return
7228 trampolines ahead of the check for function trampolines.
7229 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7230 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7231 (mips_str_mips16_ret_stub): Likewise.
7232 (mips_str_call_fp_stub): Likewise.
7233 (mips_str_call_stub): Likewise.
7234 (mips_str_fn_stub): Likewise.
7235 (mips_str_pic): Likewise.
7236 (mips_in_frame_stub): New function.
7237 (mips_unwind_pc): Return the return address rather than the PC
7238 if the PC of an intermediate frame is inside a call thunk.
7239 (mips_is_stub_suffix): New function.
7240 (mips_is_stub_mode): Likewise.
7241 (mips_get_mips16_fn_stub_pc): Likewise.
7242 (mips_skip_mips16_trampoline_code): Update to handle all the
7243 currently generated stub types. Don't recurse into __fn_stub
7244 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7245 Use cooked register accesses.
7246 (mips_in_return_stub): Reintroduce function.
7247 (mips_skip_trampoline_code): Traverse trampolines recursively.
7248 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7249
7250 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7251
7252 GDB 7.4.1 released.
7253
7254 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7255
7256 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7257 * features/arm-with-m-vfp-d16.xml: New file. Describes
7258 Cortex-M with VFPv4-sp-d16 FPU register layout.
7259 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7260 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7261 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7262 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7263 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7264
7265 2012-04-25 Doug Evans <dje@google.com>
7266
7267 * cli/cli-decode.c (print_doc_line): Use stream instead of
7268 current_uiout.
7269
7270 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7271
7272 * features/arm-with-iwmmxt.c: Regenerate.
7273 * features/arm-with-m-fpa-layout.c: Likewise.
7274 * features/arm-with-m.c: Likewise.
7275 * features/arm-with-neon.c: Likewise.
7276 * features/arm-with-vfpv2.c: Likewise.
7277 * features/arm-with-vfpv3.c: Likewise.
7278 * features/mips-dsp-linux.c: Likewise.
7279 * features/mips-linux.c: Likewise.
7280 * features/mips64-dsp-linux.c: Likewise.
7281 * features/mips64-linux.c: Likewise.
7282 * features/s390-linux32.c: Likewise.
7283 * features/s390-linux32v1.c: Likewise.
7284 * features/s390-linux32v2.c: Likewise.
7285 * features/s390-linux64.c: Likewise.
7286 * features/s390-linux64v1.c: Likewise.
7287 * features/s390-linux64v2.c: Likewise.
7288 * features/s390x-linux64.c: Likewise.
7289 * features/s390x-linux64v1.c: Likewise.
7290 * features/s390x-linux64v2.c: Likewise.
7291 * features/tic6x-c62x-linux.c: Likewise.
7292 * features/tic6x-c62x.c: Likewise.
7293 * features/tic6x-c64x-linux.c: Likewise.
7294 * features/tic6x-c64x.c: Likewise.
7295 * features/tic6x-c64xp-linux.c: Likewise.
7296 * features/tic6x-c64xp.c: Likewise.
7297 * target-descriptions.c: Only generate `field_type' and `type'
7298 variables when needed.
7299
7300 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7301
7302 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7303
7304 2012-04-25 Doug Evans <dje@google.com>
7305
7306 Initial pass at Go language support.
7307 * NEWS: Mention Go.
7308 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7309 go-valprint.c.
7310 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7311 (YYFILES): Add go-exp.c.
7312 (YYOBJ): Add go-exp.o.
7313 (local-maintainer-clean): Delete go-exp.c.
7314 * defs.h (enum language): Add language_go.
7315 * dwarf2read.c: #include "go-lang.h".
7316 (fixup_go_packaging): New function.
7317 (process_full_comp_unit): Call it when processing Go CUs.
7318 (dwarf2_physname): Add Go support.
7319 (read_file_scope): Handle missing language spec for GNU Go.
7320 (set_cu_language): Handle DW_LANG_Go.
7321 * go-exp.y: New file.
7322 * go-lang.h: New file.
7323 * go-lang.c: New file.
7324 * go-typeprint.c: New file.
7325 * go-valprint.c: New file.
7326 * symtab.c: #include "go-lang.h".
7327 (symbol_set_language): Handle language_go.
7328 (symbol_find_demangled_name, symbol_set_names): Ditto.
7329 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7330
7331 2012-04-24 Jim Meyering <meyering@redhat.com>
7332
7333 avoid a few strncpy-induced buffer overruns
7334 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7335 fname and psargs before trying to concatenate.
7336 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7337 "name" before applying strchr.
7338
7339 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7340
7341 * CONTRIBUTE: Use unified diff instead of context diff when
7342 generating patches.
7343
7344 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7345
7346 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7347 code. Handle JR.HB correctly.
7348
7349 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7350
7351 * mips-tdep.c
7352 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7353 with the other MIPS16 helpers.
7354
7355 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7356
7357 * observer.sh: Conditionally declare `args', thus cleaning up
7358 unused instances of this variable.
7359
7360 2012-04-24 Yao Qi <yao@codesourcery.com>
7361
7362 Revert this patch to allow breakpoint always-inserted
7363 in record target.
7364 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7365 * breakpoint.c: Include record.h.
7366 (breakpoints_always_inserted_mode): Return false when the record
7367 target is in use.
7368
7369 * breakpoint.c (iterate_over_bp_locations): New.
7370 * breakpoint.h: Declare.
7371 New typedef walk_bp_location_callback.
7372 * record.c (record_open): Call record_init_record_breakpoints.
7373 (record_sync_record_breakpoints): New.
7374 (record_init_record_breakpoints): New.
7375 * NEWS: Mention supporting breakpoint always-inserted mode in
7376 record target.
7377
7378 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7379
7380 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7381 any thread.
7382
7383 2012-04-24 Yao Qi <yao@codesourcery.com>
7384
7385 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7386 (is_catchpoint): ... it.
7387 (print_one_breakpoint_location): Caller update.
7388 * breakpoint.h: Update declaration.
7389
7390 2012-04-23 David S. Miller <davem@davemloft.net>
7391
7392 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7393
7394 2012-04-23 Tom Tromey <tromey@redhat.com>
7395
7396 * buildsym.c (add_free_pendings): Remove.
7397 * buildsym.h (add_free_pendings): Remove.
7398
7399 2012-04-23 Doug Evans <dje@google.com>
7400
7401 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7402 attr.u.unsnd instead of attr.u.addr.
7403 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7404 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7405 DW_FORM_ref_udata.
7406 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7407 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7408 DW_FORM_ref_udata.
7409 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7410
7411 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7412
7413 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7414 (mips_o32_return_value): Likewise.
7415 (mips_o64_return_value): Likewise.
7416
7417 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7418
7419 * ada-lang.c (ada_evaluate_subexp): Add cases for
7420 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7421 their treatment in eval.c.
7422
7423 2012-04-21 David S. Miller <davem@davemloft.net>
7424
7425 * sparc-tdep.c (X_DISP10): Define.
7426 (sparc_analyze_control_transfer): Handle compare-and-branch.
7427
7428 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7429
7430 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7431 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7432
7433 2012-04-20 Nigel Stephens <nigel@mips.com>
7434 Maciej W. Rozycki <macro@codesourcery.com>
7435
7436 * mips-tdep.c (mips_float_register_p): New function.
7437 (mips_convert_register_float_case_p): Use mips_float_register_p.
7438 (mips_register_type): Likewise.
7439 (mips_print_register): Likewise.
7440 (print_gp_register_row): Likewise.
7441 (mips_print_registers_info): Likewise.
7442
7443 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7444
7445 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7446 of mips16 symbols.
7447
7448 2012-04-20 Andrew Pinski <apinski@cavium.com>
7449
7450 * MAINTAINERS (Write After Approval): Add myself to the list.
7451
7452 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7453
7454 * MAINTAINERS: Update my e-mail address.
7455
7456 2012-04-20 Pedro Alves <palves@redhat.com>
7457
7458 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7459 $srcdir.
7460 * configure: Regenerate.
7461
7462 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7463
7464 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7465 declaration.
7466 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7467
7468 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 Fix compilation compatibility with python-2.4
7471 * python/py-type.c (convert_field): Cast ADDRSTRING for
7472 PyObject_SetAttrString as non-const. New comment.
7473
7474 2012-04-19 Tom Tromey <tromey@redhat.com>
7475
7476 * top.c (quit_target): Use all_cleanups.
7477 * main.c (captured_command_loop): Use all_cleanups.
7478 * exceptions.c (throw_exception): Use all_cleanups.
7479
7480 2012-04-19 Pedro Alves <palves@redhat.com>
7481
7482 * Makefile.in (GNULIB_BUILDDIR): New.
7483 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7484 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7485 (CLEANDIRS). Remove gnulib/import.
7486 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7487 (all-lib): Ditto.
7488 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7489 (gnulib/import/Makefile): Replace gnulib/import with
7490 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7491 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7492 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7493 acx_configure_dir.m4.
7494 * acinclude.m4: Include acx_configure_dir.m4.
7495 * acx_configure_dir.m4: New file.
7496 * aclocal.m4: Regenerate.
7497 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7498 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7499 (GNULIB): New variable.
7500 (GNULIB_STDINT_H): Adjust.
7501 (AC_OUTPUT): Don't output gnulib/Makefile.
7502 * gdb/defs.h: Include build-gnulib/config.h.
7503 * aclocal.m4: Regenerate.
7504 * config.in: Regenerate.
7505 * configure: Regenerate.
7506
7507 * gnulib/Makefile.in: New file.
7508 * gnulib/configure.ac: New file.
7509 * gnulib/aclocal.m4: New file.
7510 * gnulib/config.in: New file.
7511 * gnulib/configure: New file.
7512 * gnulib/: Re-run gnulib-tool to adjust.
7513
7514 2012-04-19 Doug Evans <dje@google.com>
7515
7516 * cleanups.h (struct cleanup): Move to cleanups.c.
7517 (make_cleanup_dtor_ftype): New typedef.
7518 (make_cleanup_dtor): Use it.
7519 (ALL_CLEANUPS): Replace with ...
7520 (all_cleanups): ... this. Declare. All uses updated.
7521 * cleanups.c: #include "gdb_assert.h".
7522 (sentinel_cleanup): New static global.
7523 (SENTINEL_CLEANUP): Define.
7524 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7525 (make_my_cleanup2): Assert result is non-NULL.
7526 (all_cleanups): New function.
7527 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7528 of NULL.
7529
7530 2012-04-19 Pedro Alves <palves@redhat.com>
7531
7532 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7533 Adjust paths to gnulib imported files.
7534
7535 2012-04-19 Pedro Alves <palves@redhat.com>
7536
7537 * gnulib/: Move whole directory ...
7538 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7539 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7540 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7541 (aclocal_m4_deps): Adjust.
7542 * aclocal.m4: Regenerate.
7543 * configure: Regenerate.
7544 * configure.ac: Adjust AC_OUTPUT output.
7545
7546 2012-04-19 Yao Qi <yao@codesourcery.com>
7547
7548 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7549 (vec.o): New rule.
7550 * vec.c: Move it ...
7551 * common/vec.c: ... here.
7552 * vec.h: Move it ...
7553 * common/vec.h: ... here.
7554
7555 2012-04-19 Yao Qi <yao@codesourcery.com>
7556
7557 * gdb-code-style.el: New.
7558
7559 2012-04-18 Pedro Alves <palves@redhat.com>
7560
7561 Update gnulib from latest git.
7562 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7563
7564 * gnulib/Makefile.am: Update.
7565 * gnulib/dummy.c: Update.
7566 * gnulib/extra/arg-nonnull.h: Update.
7567 * gnulib/extra/c++defs.h: Update.
7568 * gnulib/extra/update-copyright: Update.
7569 * gnulib/extra/warn-on-use.h: Update.
7570 * gnulib/inttypes.in.h: Update.
7571 * gnulib/m4/00gnulib.m4: Update.
7572 * gnulib/m4/extensions.m4: Update.
7573 * gnulib/m4/gnulib-cache.m4: Update.
7574 * gnulib/m4/gnulib-common.m4: Update.
7575 * gnulib/m4/gnulib-comp.m4: Update.
7576 * gnulib/m4/gnulib-tool.m4: Update.
7577 * gnulib/m4/include_next.m4: Update.
7578 * gnulib/m4/inttypes-pri.m4: Update.
7579 * gnulib/m4/inttypes.m4: Update.
7580 * gnulib/m4/longlong.m4: Update.
7581 * gnulib/m4/memchr.m4: Update.
7582 * gnulib/m4/memmem.m4: Update.
7583 * gnulib/m4/mmap-anon.m4: Update.
7584 * gnulib/m4/multiarch.m4: Update.
7585 * gnulib/m4/onceonly.m4: Update.
7586 * gnulib/m4/stddef_h.m4: Update.
7587 * gnulib/m4/stdint.m4: Update.
7588 * gnulib/m4/string_h.m4: Update.
7589 * gnulib/m4/warn-on-use.m4: Update.
7590 * gnulib/m4/wchar_h.m4: Update.
7591 * gnulib/m4/wchar_t.m4: Update.
7592 * gnulib/m4/wint_t.m4: Update.
7593 * gnulib/memchr.c: Update.
7594 * gnulib/memmem.c: Update.
7595 * gnulib/stddef.in.h: Update.
7596 * gnulib/stdint.in.h: Update.
7597 * gnulib/str-two-way.h: Update.
7598 * gnulib/string.in.h: Update.
7599 * gnulib/wchar.in.h: Update.
7600
7601 * gnulib/extra/arg-nonnull.h: Delete.
7602 * gnulib/extra/c++defs.h: Delete.
7603 * gnulib/extra/warn-on-use.h: Delete.
7604 * gnulib/m4/wchar_h.m4: Delete.
7605 * gnulib/m4/wint_t.m4: Delete.
7606 * gnulib/wchar.in.h: Delete.
7607
7608 * gnulib/extra/snippets/arg-nonnull.h: New.
7609 * gnulib/extra/snippets/c++defs.h: New.
7610 * gnulib/extra/snippets/warn-on-use.h: New.
7611
7612 * aclocal.m4: Regenerate.
7613 * config.in: Regenerate.
7614 * configure: Regenerate.
7615 * gnulib/Makefile.in: Regenerate.
7616
7617 2012-04-18 Pedro Alves <palves@redhat.com>
7618
7619 Reimport the update-copyright module from gnulib
7620 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7621
7622 * configure: Regenerate.
7623 * gnulib/Makefile.am: Update.
7624 * gnulib/Makefile.in: Regenerate.
7625 * gnulib/extra/update-copyright: Update.
7626 * gnulib/m4/gnulib-cache.m4: Update.
7627 * gnulib/m4/gnulib-comp.m4: Update.
7628
7629 2012-04-18 Tristan Gingold <gingold@adacore.com>
7630
7631 * configure.ac (aix): Put -lpthread into libs.
7632 * configure: Regenerate.
7633
7634 2012-04-18 Tom Tromey <tromey@redhat.com>
7635
7636 * linespec.c (convert_linespec_to_sals): Don't use
7637 SYMBOL_OBJ_SECTION.
7638 (compare_msymbols): Arguments are minsym_and_objfile, not
7639 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7640
7641 2012-04-18 Pedro Alves <palves@redhat.com>
7642
7643 Revert gnulib/ part of:
7644 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7645 Copyright year update in most files (performed by copyright.sh).
7646
7647 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7648
7649 Fix 64-bit constants on 32-bit hosts.
7650 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7651 from unsigned long to ULONGEST.
7652 (read_signed_leb128): Change declaration return type from long to
7653 LONGEST.
7654 (dwarf2_const_value_attr): Change declaration parameter value from long
7655 to LONGEST.
7656 (dwarf2_compute_name): Change variable value from long to LONGEST.
7657 (read_unsigned_leb128): Change return type, variable result and some
7658 casts from unsigned long to ULONGEST.
7659 (read_signed_leb128): Change return type, variable result and some
7660 casts from long to LONGEST.
7661 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7662 value from long to LONGEST.
7663 (dwarf2_const_value): Change variable value from long to LONGEST.
7664 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7665 plongest and hex_string.
7666 * symtab.h (struct general_symbol_info): Change ivalue from long to
7667 LONGEST, remove the comment.
7668 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7669 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7670
7671 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7672
7673 PR symtab/7259:
7674 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7675 * ada-lang.c (ada_discrete_type_high_bound)
7676 (ada_discrete_type_low_bound): Fix function comment. Use
7677 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7678 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7679 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7680 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7681 Use TYPE_FIELD_ENUMVAL.
7682 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7683 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7684 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7685 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7686 TYPE_CODE_ENUM.
7687 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7688 * dwarf2read.c (process_enumeration_scope): Likewise.
7689 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7690 field.bitpos.
7691 (class StructMainTypePrettyPrinter): Support also
7692 FIELD_LOC_KIND_ENUMVAL.
7693 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7694 TYPE_CODE_ENUM.
7695 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7696 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7697 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7698 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7699 field enumval.
7700 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7701 accommodate enumval.
7702 (struct call_site): Adjust loc_kind to accommodate enumval.
7703 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7704 (TYPE_FIELD_ENUMVAL): New macros.
7705 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7706 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7707 TYPE_CODE_ENUM.
7708 * p-typeprint.c (pascal_type_print_base): Likewise.
7709 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7710 enumval.
7711 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7712 * python/py-type.c (convert_field): New variable addrstring. Use
7713 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7714 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7715 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7716 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7717 TYPE_CODE_ENUM.
7718 * valprint.c (generic_val_print): Likewise.
7719
7720 2012-04-17 Doug Evans <dje@google.com>
7721
7722 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7723
7724 * dwarf2read.c: Whitespace fixes.
7725 (lookup_signatured_type): Tweak comment.
7726 (get_die_type_at_offset): Fix comment.
7727
7728 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7729
7730 * xcoffread.c (xcoff_secnum_to_sections): New function.
7731 (secnum_to_section, secnum_to_bfd_section): Reimplement
7732 using xcoff_secnum_to_sections. Rename "secnum" parameter
7733 into "n_scnum".
7734 (RECORD_MINIMAL_SYMBOL): Delete.
7735 (record_minimal_symbol): New function.
7736 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7737 by call to record_minimal_symbol and set misc_func_recorded
7738 to 1. Set last_csect_sec to the XCOFF section index instead
7739 of GDB's section_offset index. Update calls to
7740 prim_record_minimal_symbol_and_info to pass the BFD section
7741 as well.
7742
7743 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7744
7745 * xcoffread.c (read_xcoff_symtab): Delete variables
7746 last_csect_val and last_csect_sec and associated code.
7747
7748 2012-04-17 Doug Evans <dje@google.com>
7749
7750 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7751 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7752 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7753 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7754
7755 * cleanups.h: New file.
7756 * cleanups.c: New file.
7757 * Makefile.in (SFILES): Add cleanups.c.
7758 (HFILES_NO_SRCDIR): Add cleanups.h.
7759 (COMMON_OBS): Add cleanups.o.
7760 * defs.h (struct cleanup): Moved to cleanups.h.
7761 (do_cleanups,do_final_cleanups): Ditto.
7762 (discard_cleanups,discard_final_cleanups): Ditto
7763 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7764 (save_cleanups,save_final_cleanups): Ditto.
7765 (restore_cleanups,restore_final_cleanups): Ditto.
7766 (null_cleanup): Ditto.
7767 (make_my_cleanup,make_my_cleanup2): Ditto.
7768 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7769 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7770 (do_cleanups,do_final_cleanups): Ditto.
7771 (discard_cleanups,discard_final_cleanups): Ditto
7772 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7773 (save_cleanups,save_final_cleanups): Ditto.
7774 (restore_cleanups,restore_final_cleanups): Ditto.
7775 (null_cleanup): Ditto.
7776 (make_my_cleanup,make_my_cleanup2): Ditto.
7777 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7778
7779 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7780 make_my_cleanup.
7781 (make_cleanup_dyn_string_delete): Ditto.
7782 (make_cleanup_ui_file_delete): Ditto.
7783 (make_cleanup_ui_out_redirect_pop): Ditto.
7784 (make_cleanup_free_section_addr_info): Ditto.
7785 (make_cleanup_restore_integer): Ditto.
7786 (make_cleanup_unpush_target): Ditto.
7787 (make_cleanup_value_free_to_mark): Ditto.
7788 (make_cleanup_value_free): Ditto.
7789 (make_cleanup_free_so): Ditto.
7790
7791 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7792
7793 New option "set debug auto-load".
7794 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7795 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7796 (auto_load_safe_path_vec_update)
7797 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7798 if DEBUG_AUTO_LOAD.
7799 (file_is_auto_load_safe): New parameters debug_fmt and ....
7800 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7801 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7802 caller by explanatory string.
7803 (_initialize_auto_load): Register "set debug auto-load".
7804 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7805 and ....
7806 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7807 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7808 by explanatory string.
7809 * main.c (captured_main): Likewise.
7810 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7811 (source_section_scripts): Likewise.
7812
7813 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7814
7815 New option "set auto-load safe-path".
7816 * NEWS: New commands "set auto-load safe-path"
7817 and "show auto-load safe-path".
7818 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7819 (auto_load_safe_path, auto_load_safe_path_vec)
7820 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7821 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7822 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7823 (source_gdb_script_for_objfile): New variable is_safe. Call
7824 file_is_auto_load_safe. Return if it is not.
7825 (struct loaded_script): New field loaded.
7826 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7827 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7828 output "Missing" to "No".
7829 (_initialize_auto_load): New variable cmd. Initialize
7830 auto_load_safe_path. Register "set auto-load safe-path",
7831 "show auto-load safe-path" and "add-auto-load-safe-path".
7832 * auto-load.h (maybe_add_script): Add parameter loaded.
7833 (file_is_auto_load_safe): New declaration.
7834 * config.in: Regenerate.
7835 * configure: Regenerate.
7836 * configure.ac: New parameters --with-auto-load-safe-path
7837 and --without-auto-load-safe-path.
7838 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7839 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7840 * main.c (captured_main): Check file_is_auto_load_safe for
7841 LOCAL_GDBINIT.
7842 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7843 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7844 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7845 not.
7846
7847 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7848
7849 auto-load: Implementation.
7850 * NEWS: New descriptions for "info auto-load",
7851 "info auto-load gdb-scripts", "info auto-load python-scripts",
7852 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7853 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7854 and "show auto-load-scripts". New description for "set auto-load",
7855 "show auto-load", "set auto-load gdb-scripts",
7856 "show auto-load gdb-scripts", "set auto-load python-scripts",
7857 "show auto-load python-scripts", "set auto-load local-gdbinit",
7858 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7859 "show auto-load libthread-db".
7860 * auto-load.c: Remove include python/python-internal.h. Add includes
7861 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7862 cli/cli-setshow.h.
7863 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7864 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7865 (gdbpy_global_auto_load): Rename to ...
7866 (global_auto_load): ... here.
7867 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7868 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7869 (script_language_gdb, source_gdb_script_for_objfile): New.
7870 (struct loaded_script): New field language.
7871 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7872 LANGUAGE.
7873 (maybe_add_script): Add parameter language. Drop redundant
7874 entry.full_path initialization. Initialize entry.language and
7875 (*slot)->language.
7876 (auto_load_objfile_script): Change parameter suffix to language.
7877 Remove the call of maybe_add_script.
7878 Call language->source_script_for_objfile.
7879 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7880 New.
7881 (collect_matching_scripts): Adjust it for
7882 struct collect_matching_scripts_data.
7883 (auto_load_info_scripts_pattern_nl): New variable.
7884 (info_auto_load_scripts): Rename to ...
7885 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7886 for struct collect_matching_scripts_data.
7887 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7888 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7889 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7890 (auto_load_info_cmdlist_get): New.
7891 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7892 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7893 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7894 "info auto-load local-gdbinit".
7895 * auto-load.h (struct script_language): New.
7896 (gdbpy_global_auto_load): Rename to ...
7897 (global_auto_load): ... here.
7898 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7899 (auto_load_local_gdbinit_loaded): New declarations.
7900 (maybe_add_script): New parameter language.
7901 (auto_load_objfile_script): Change parameter suffix to language.
7902 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7903 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7904 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7905 declarations.
7906 * linux-thread-db.c: Include auto-load.h and ctype.h.
7907 (auto_load_thread_db, show_auto_load_thread_db): New.
7908 (struct thread_db_info): New field filename.
7909 (delete_thread_db_info): Call xfree for FILENAME.
7910 (try_thread_db_load): Initialize FILENAME.
7911 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7912 if !AUTO_LOAD_THREAD_DB.
7913 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7914 (_initialize_thread_db): Install auto_load_thread_db
7915 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7916 as "info auto-load libthread-db".
7917 * main.c (captured_main): Rename gdbpy_global_auto_load to
7918 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7919 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7920 (print_gdb_help): Extend the help for 'local init file'.
7921 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7922 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7923 (auto_load_scripts): Rename to ...
7924 (auto_load_python_scripts): ... here, update the comment.
7925 (gdbpy_load_auto_script_for_objfile): New declaration.
7926 (show_auto_load_python_scripts, script_language_python)
7927 (gdbpy_load_auto_script_for_objfile): New.
7928 (source_section_scripts): Refactor the code.
7929 (load_auto_scripts_for_objfile): Rename to ...
7930 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7931 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7932 (info_auto_load_python_scripts): New.
7933 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7934 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7935 Register "set auto-load-scripts" as its deprecated alias. Register
7936 "info auto-load python-scripts". Register "info auto-load-scripts" as
7937 its deprecated alias.
7938 (load_auto_scripts_for_objfile): Rename to ...
7939 (gdbpy_load_auto_scripts_for_objfile): ... here.
7940 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7941 (gdbpy_load_auto_scripts_for_objfile): ... here.
7942
7943 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7944
7945 auto-load: Move files.
7946 * Makefile.in (SFILES): Add auto-load.c.
7947 (HFILES_NO_SRCDIR): Add auto-load.h.
7948 (COMMON_OBS): Add auto-load.o.
7949 (distclean): Change .gdbinit for gdb-gdb.gdb.
7950 * auto-load.c: New file, with parts from python/py-auto-load.c.
7951 * auto-load.h: New file, with parts from python/python.h.
7952 * configure: Regenerate.
7953 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7954 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7955 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7956 * main.c: Include auto-load.h.
7957 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7958 command.h, observer.h and progspace.h to auto-load.c. Add include
7959 auto-load.h.
7960 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7961 (struct loaded_script, auto_load_pspace_data)
7962 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7963 (hash_loaded_script_entry, eq_loaded_script_entry)
7964 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7965 (maybe_add_script): Move to auto-load.c.
7966 (source_section_scripts): Change maybe_add_script parameters passing,
7967 use script_not_found_warning_print.
7968 (clear_section_scripts, auto_load_objfile_script)
7969 (auto_load_new_objfile, loaded_script_ptr)
7970 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7971 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7972 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7973 auto_load_new_objfile and info_auto_load_scripts initizations to
7974 auto-load.c.
7975 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7976
7977 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7978
7979 Code cleanup.
7980 * charset.c (find_charset_names): Remove variables ix and elt.
7981 Use free_char_ptr_vec.
7982 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7983 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7984 debugdir_end. New variable debugdir_len.
7985 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7986 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7987 declarations.
7988 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7989 and elt. Use free_char_ptr_vec.
7990 * source.c (add_path): Remove variables argv, arg and argv_index.
7991 New variables dir_vec, back_to, ix and name.
7992 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7993 make_cleanup_freeargv. Remove variable separator. Simplify the code
7994 no longer expecting DIRNAME_SEPARATOR.
7995 (openp): Remove variable p, p1 and len. New variables dir_vec,
7996 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7997 no longer expecting DIRNAME_SEPARATOR.
7998 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7999 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8000 debugdir_end.
8001 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8002 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8003 (dirnames_to_char_ptr_vec): New functions.
8004
8005 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 Code cleanup.
8008 * source.c (add_path): Remove always true conditional 'p == 0' and
8009 unindent its code block.
8010
8011 2012-04-17 Pedro Alves <palves@redhat.com>
8012
8013 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8014 (FIELD_BITPOS_LVAL): ... this.
8015 (FIELD_BITPOS): New.
8016 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8017 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8018 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8019 SET_FIELD_BITPOS.
8020 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8021 SET_FIELD_BITPOS.
8022 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8023 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8024 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8025 SET_FIELD_BITPOS.
8026
8027 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8028
8029 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8030 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8031 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8032 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8033 * jv-lang.c (java_link_class_type): Likewise, once.
8034 * stabsread.c (read_enum_type): Likewise.
8035
8036 2012-04-16 Yao Qi <yao@codesourcery.com>
8037
8038 * common/agent.c (agent_run_command): Add one more parameter `len'.
8039 Update callers.
8040 * common/agent.h: Update declaration.
8041 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8042 Update.
8043 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8044
8045 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8046
8047 PR mi/13393
8048 * value.c (value_actual_type): New function.
8049 * value.h (value_actual_type): New declaration.
8050 * varobj.c (update_type_if_necessary): New function.
8051 (varobj_create): Call value_actual_type instead of
8052 value_type.
8053 (install_dynamic_child): distinct changed and type changed MI variable
8054 objects.
8055 (update_dynamic_varobj_children): Updated for install_dynamic_child
8056 change. All callers updated.
8057 (varobj_update): Support for MI variable object type change if
8058 the value changed and RTTI is used to determine the type.
8059 (create_child_with_value): Call value_actual_type instead of
8060 value_type.
8061 (adjust_value_for_child_access): Extended with a new parameter which
8062 specify whether the given value should be casted to enclosing type.
8063 All callers updated.
8064
8065 2012-04-14 Yao Qi <yao@codesourcery.com>
8066
8067 Import gnulib module inttypes from git
8068 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8069 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8070 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8071 gnulib/m4/inttypes-pri.m4
8072 * aclocal.m4, config.in, configure: Regenerated.
8073 * gnulib/Makefile.am: Update.
8074 * gnulib/Makefile.in: Update.
8075 * gnulib/m4/gnulib-cache.m4: Update.
8076 * gnulib/m4/gnulib-comp.m4: Update.
8077 * gnulib/inttypes.in.h: New.
8078 * gnulib/m4/inttypes-pri.m4: New.
8079 * gnulib/m4/inttypes.m4: New.
8080
8081 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8082
8083 * infrun.c (resume): Update PC address to the real PC after
8084 preparing to do displaced stepping.
8085
8086 2012-04-12 Doug Evans <dje@google.com>
8087
8088 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8089 All callers updated.
8090
8091 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8092
8093 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8094
8095 2012-04-12 Doug Evans <dje@google.com>
8096
8097 * dwarf2read.c (create_all_type_units): Renamed from
8098 create_debug_types_hash_table. All callers updated.
8099
8100 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8101 local type_sig to sig_type, type_offset to type_offset_in_tu.
8102 (hash_signatured_type): Renamed from hash_type_signature,
8103 all callers updated.
8104 (eq_signatured_type): Renamed from eq_type_signature,
8105 all callers updated.
8106 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8107 (process_enumeration_scope): Ditto.
8108 (lookup_signatured_type_at_offset): Ditto.
8109 (load_full_type_unit, read_signatured_type): Ditto.
8110
8111 2012-04-12 Yao Qi <yao@codesourcery.com>
8112
8113 * remote.c (async_remote_interrupt): Correct function name in
8114 debug message.
8115 (async_remote_interrupt_twice): Ditto.
8116
8117 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8118
8119 * source.c (find_and_open_source): Consistently pass resulting
8120 full path through xfullpath.
8121
8122 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8123
8124 Provide more specific displaced-stepping memory error message.
8125 * infrun.c (displaced_step_prepare): New variable status. Call
8126 target_read_memory instead of read_memory, provide more specific
8127 error message.
8128
8129 2012-04-11 Tristan Gingold <gingold@adacore.com>
8130
8131 PR gdb/13901
8132 * darwin-nat.c (darwin_execvp): Revert previous patch.
8133
8134 2012-04-11 Tristan Gingold <gingold@adacore.com>
8135
8136 PR gdb/13901
8137 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8138 in case of change.
8139
8140 2012-04-11 Tristan Gingold <gingold@adacore.com>
8141
8142 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8143 warning.
8144
8145 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8146
8147 New command 'explore' which helps explore values and types in
8148 scope.
8149 * NEWS: Add an entry about the new 'explore' command.
8150 * data-directory/Makefile.in: Add gdb/command/explore.py
8151 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8152 command using the GDB Python API.
8153
8154 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8155
8156 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8157 extension in jump target calculation.
8158
8159 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8160
8161 * mips-tdep.c (mips32_next_pc): Handle JALX.
8162
8163 2012-04-10 Yao Qi <yao@codesourcery.com>
8164
8165 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8166
8167 2012-04-10 Yao Qi <yao@codesourcery.com>
8168
8169 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8170 and gnulib/m4/gnulib-tool.m4.
8171
8172 2012-04-10 Doug Evans <dje@google.com>
8173
8174 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8175 (load_partial_dies): Clarify comment.
8176 (find_partial_die): Support rereading type units.
8177 Clarify CU handling, if we know offset is in CU, don't search for the
8178 containing CU. Add comment regarding memory waste.
8179
8180 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8181
8182 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8183 i386/x32-avx and i386/x32-avx-linux.
8184 (i386/x32-expedite): New.
8185 (i386/x32-linux-expedite): Likewise.
8186 (i386/x32-avx-expedite): Likewise.
8187 (i386/x32-avx-linux-expedite): Likewise.
8188 ($(outdir)/i386/x32.dat): Likewise.
8189 ($(outdir)/i386/x32-linux.dat): Likewise.
8190 ($(outdir)/i386/x32-avx.dat): Likewise.
8191 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8192
8193 * features/i386/x32-avx-linux.xml: New file.
8194 * features/i386/x32-avx.xml: Likewise.
8195 * features/i386/x32-core.xml: Likewise.
8196 * features/i386/x32-linux.xml: Likewise.
8197 * features/i386/x32.xml: Likewise.
8198
8199 * features/i386/x32-avx-linux.c: New. Generated.
8200 * features/i386/x32-avx.c: Likewise.
8201 * features/i386/x32-linux.c: Likewise.
8202 * features/i386/x32.c: Likewise.
8203 * regformats/i386/x32-avx-linux.dat: Likewise.
8204 * regformats/i386/x32-avx.dat: Likewise.
8205 * regformats/i386/x32-linux.dat: Likewise.
8206 * regformats/i386/x32.dat: Likewise.
8207
8208 2012-04-10 Tristan Gingold <gingold@adacore.com>
8209
8210 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8211 code to kill the inferior.
8212
8213 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8214
8215 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8216 defines.
8217 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8218 defines.
8219 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8220 (yyvsp): New defines.
8221 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8222 defines.
8223 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8224 defines.
8225 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8226 defines.
8227 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8228 defines.
8229 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8230 defines.
8231
8232 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8233
8234 * sparc64-tdep.c (sparc64_store_arguments)
8235 (sparc64_store_arguments): Fix coding style.
8236
8237 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8238
8239 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8240 complex floats, adjust some related comments and tighten a related
8241 assertion.
8242 (sparc64_extract_return_value): Handle complex floats.
8243
8244 2012-04-07 Doug Evans <dje@google.com>
8245
8246 * dwarf2read.c (load_partial_dies): Change condition to assert.
8247
8248 2012-04-06 Doug Evans <dje@google.com>
8249
8250 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8251 "mov %rsp,%rbp".
8252
8253 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8254
8255 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8256 fencepost error.
8257 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8258 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8259 architecture.
8260
8261 2012-04-05 Keith Seitz <keiths@redhat.com>
8262
8263 * linespec.c (decode_compound): Remove.
8264 (enum offset_relative_sign): New enum.
8265 (struct line_offset): New struct.
8266 (struct linespec): New struct.
8267 (struct linespec_state): Move file_symtabs,
8268 user_filename, and user_function into struct linespec.
8269 Make result an anonymous struct holding vectors of
8270 symbolp and minsym_and_objfile_d.
8271 Add language member.
8272 (enum ls_token_type): New enum.
8273 (linespec_keywords): New array.
8274 (struct ls_token): New struct.
8275 (struct ls_parser): New struct.
8276 (linespec_lexer_lex_number): New function.
8277 (linespec_lexer_lex_keyword): New function.
8278 (is_ada_operator): New function.
8279 (skip_quote_char): New function.
8280 (copy_token_string): New function.
8281 (is_closing_quote_enclosed): New function.
8282 (find_parameter_list_end): New function.
8283 (linespec_lexer_lex_string): New function.
8284 (linespec_lexer_lex_one): New function.
8285 (linespec_lexer_consume_token): New function.
8286 (linespec_lexer_peek_token): New function.
8287 (cplusplus_error): Remove unused function.
8288 (find_methods): Update comment.
8289 (find_toplevel_char): Return const.
8290 (is_objc_method_format): Remove unused function.
8291 (find_toplevel_string): New function.
8292 (is_linespec_boundary): Remove.
8293 (symbol_not_found_error): New function.
8294 (find_method_overload_end): Remove function.
8295 (unexpected_linespec_error): New function.
8296 (keep_name_info): Remove.
8297 (linespec_parse_line_offset): New function.
8298 (linespec_parse_basic): New function.
8299 (canonicalize_linespec): New function.
8300 (decode_line_internal): Remove.
8301 (create_sals_line_offset): New function adapted from
8302 decode_all_digits.
8303 (convert_linespec_to_sals): New function.
8304 (parse_linespec): New function.
8305 (linespec_parser_new): New function.
8306 (linespec_state_destructor): Change parameter type to
8307 struct linespec_state *.
8308 Add language parameter.
8309 Remove freeing of moved members.
8310 (linespec_parser_delete): New function.
8311 (decode_line_full): Use parse_linespec and linespec_parser_new.
8312 (decode_line_1): Likewise.
8313 (decode_indirect): Rename to ...
8314 (linespec_expression_to_pc): ... this and rewrite
8315 to simply find CORE_ADDR, storing this result for later
8316 conversion to SALs.
8317 (locate_first_half): Remove.
8318 (deocde_objc): Add parameter LS.
8319 Initialize new struct collect_info members.
8320 Handle minimal symbols, too.
8321 (decode_compound): Delete.
8322 (lookup_prefix_sym): Rewrite.
8323 (compare_msymbols): New function.
8324 (find_method): Rewrite.
8325 Do not call cplusplus_error.
8326 (symtabs_from_filename): Rewrite.
8327 (collect_function_symbols): Delete.
8328 (find_function_symbols): Rewrite without ARGPTR-style
8329 processing.
8330 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8331 (decode_dollar): Adapted and renamed to ...
8332 (linespec_parse_variable): ... this.
8333 (find_linespec_symbols): New function.
8334 (decode_label): Adapted and renamed to ...
8335 (find_label_symbols): ... this.
8336 (decode_digits_list_mode): Add and use LS argument.
8337 (decode_digits_ordinary): Likewise.
8338 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8339 If in list mode, allow any symbol class. Otherwise, only
8340 permit LOC_BLOCK symbols.
8341 (minsym_found): Update comments.
8342 (search_minsyms_for_name): Do not convert the matching symbol
8343 into a SAL. Simply push the symbol and objfile into the
8344 result vector.
8345 (decode_variable): Delete. Contents adapted into
8346 find_linespec_symbols.
8347
8348 * cp-support.c (SKIP_SPACE): Remove.
8349 (operator_tokens): Remove unused global.
8350 (cp_validate_operator): Remove.
8351 * cp-support.h (cp_validate_operator): Remove declaration.
8352
8353 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8354
8355 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8356 for TYPE_VPTR_FIELDNO.
8357 * valprint.c (valprint_check_validity): Make it global, move the
8358 function comment ...
8359 * value.h (valprint_check_validity): ... to this new declaration.
8360
8361 2012-04-02 Tristan Gingold <gingold@adacore.com>
8362
8363 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8364 the STATE32 api for i386 state.
8365 (i386_darwin_store_inferior_registers): Likewise.
8366
8367 2012-04-02 Tristan Gingold <gingold@adacore.com>
8368
8369 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8370 SS offset.
8371 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8372 format_string.
8373
8374 2012-04-02 Tristan Gingold <gingold@adacore.com>
8375
8376 PR gdb/13901
8377 * darwin-nat.c (darwin_execvp): Set binary preference.
8378
8379 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8380
8381 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8382
8383 2012-03-30 Tom Tromey <tromey@redhat.com>
8384
8385 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8386 of TRY_CATCH. Fix error handling.
8387 * python/py-value.c (convert_value_from_python): Move 'old'
8388 declaration to innermost scope.
8389
8390 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8391 Andrey Smirnov <andrew.smirnov@gmail.com>
8392
8393 -Wshadow warning fix.
8394 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8395 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8396 Adjust code accordingly.
8397
8398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8399
8400 * ada-lang.c (symbol_completion_add): Rename parameter
8401 "encoded" into "encoded_p". Ajust code and documentation
8402 accordingly.
8403
8404 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8405 Andrey Smirnov <andrew.smirnov@gmail.com>
8406
8407 -Wshadow warning fix.
8408 * ada-lang.c (symbol_completion_add): Rename parameter
8409 "wild_match" into wild_match_p. Update code and documentation
8410 accordingly.
8411
8412 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8413
8414 * ada-lang.c (symbol_completion_match): Rename parameter
8415 "encoded" into "encoded_p". Ajust code and documentation
8416 accordingly.
8417
8418 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8419 Andrey Smirnov <andrew.smirnov@gmail.com>
8420
8421 -Wshadow warning fix.
8422 * ada-lang.c (symbol_completion_match): Rename parameter
8423 "wild_match" into "wild_match_p". Adjust code and function
8424 documentation accordingly.
8425
8426 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8427 Andrey Smirnov <andrew.smirnov@gmail.com>
8428
8429 -Wshadow warning fix.
8430 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8431 "symbol_info" into "info". Adjust code accordingly.
8432 (ada_lookup_symbol): Likewise.
8433
8434 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8435
8436 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8437 of this function's documentation.
8438
8439 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8440 Andrey Smirnov <andrew.smirnov@gmail.com>
8441
8442 -Wshadow warning fix.
8443 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8444 variable into "wild_match_p". Adjust code accordingly.
8445
8446 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8447 Andrey Smirnov <andrew.smirnov@gmail.com>
8448
8449 -Wshadow warning fix.
8450 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8451 parameter into "wild_match_p". Adjust code accordingly.
8452 Document this parameter in the function description.
8453
8454 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8455 Andrey Smirnov <andrew.smirnov@gmail.com>
8456
8457 -Wshadow warning fix.
8458 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8459 "wild_match" parameter to "wild_match_p" (-Wshadow).
8460
8461 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8462
8463 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8464 in function documentation.
8465
8466 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8467 Andrey Smirnov <andrew.smirnov@gmail.com>
8468
8469 -Wshadow warning fix.
8470 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8471 variable into wild_match_p. Adjust code accordingly.
8472
8473 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8474 Andrey Smirnov <andrew.smirnov@gmail.com>
8475
8476 * ada-valprint.c (ada_val_print_1): Move the code handling
8477 TYPE_CODE_ENUM inside its own lexical block. Declare
8478 variables len and val there, instead of in the function's
8479 top level block. Avoid declaring deref_val again in a way
8480 that shadows another variable of the same name declared
8481 in one of the up-level blocks. Just re-use the up-level
8482 variable instead.
8483
8484 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8485
8486 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8487 Replace block_found argument by symbol_info. Adjust
8488 implementation accordingly. Add function documentation.
8489 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8490 Fix documentation.
8491 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8492 * ada-exp.y (write_object_renaming): Adjust to new
8493 ada_lookup_encoded_symbol API.
8494
8495 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8496
8497 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8498 documentation.
8499
8500 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8501
8502 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8503 (v850_register_name): Add the mpu and fpu register names.
8504 (v850e_register_name): Add the mpu and fpu register names.
8505 (v850e2_register_name): New function.
8506 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8507 bfd_mach_v850e2v3.
8508
8509 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8510
8511 * NEWS: Add entry for Ada varobj support.
8512
8513 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8514
8515 * varobj.c (default_value_is_changeable_p): New function,
8516 extracted from varobj_value_is_changeable_p. Add declaration.
8517 (ada_value_is_changeable_p): New function, extracted from
8518 varobj_value_is_changeable_p. Add declaration.
8519 (struct language_specific): New field "value_is_changeable_p".
8520 (languages): Add entries for new field.
8521 (varobj_create): Set language before calling install_new_value.
8522 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8523 "value_is_changeable_p" language callback.
8524
8525 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8526
8527 * ada-varobj.h, ada-varobj.c: New files.
8528 * Makefile.in (SFILES): Add ada-varobj.c.
8529 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8530 (COMMON_OBS): Add ada-varobj.o.
8531
8532 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8533
8534 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8535 (struct language_specific): New field "value_has_mutated".
8536 (languages): Set field "value_has_mutated" in each entry of array.
8537 (varobj_value_has_mutated): New function.
8538 (varobj_udpdate): Add handling of type mutation.
8539 (value_of_root): Add handling of type mutation.
8540 (ada_value_has_mutated): New function.
8541
8542 2012-03-28 Pedro Alves <palves@redhat.com>
8543
8544 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8545 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8546
8547 2012-03-28 Tom Tromey <tromey@redhat.com>
8548
8549 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8550 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8551 before returning.
8552
8553 2012-03-28 Tom Tromey <tromey@redhat.com>
8554
8555 * .dir-locals.el: New file.
8556
8557 2012-03-28 Pedro Alves <palves@redhat.com>
8558
8559 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8560
8561 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8562
8563 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8564 handling for r0.
8565
8566 2012-03-27 Pedro Alves <palves@redhat.com>
8567
8568 Eliminate struct ui_stream.
8569
8570 * ui-out.h (struct ui_stream): Delete.
8571 (ui_out_field_stream): Adjust prototype.
8572 (ui_out_stream_new, ui_out_stream_delete)
8573 (make_cleanup_ui_out_stream_delete): Delete declarations.
8574 * ui-out.c (ui_out_field_stream): Change prototype to take a
8575 ui_file instead of a ui_stream. Adjust.
8576 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8577 (make_cleanup_ui_out_stream_delete): Delete.
8578 * breakpoint.c (print_breakpoint_location)
8579 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8580 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8581 * disasm.c (dump_insns): Ditto.
8582 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8583 prototype.
8584 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8585 ui_stream/ui_out_stream_new.
8586 * infcmd.c (print_return_value): Ditto.
8587 * osdata.c (info_osdata_command): Don't allocate a local
8588 ui_stream.
8589 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8590 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8591 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8592 allocate a local ui_stream.
8593 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8594 instead of ui_stream/ui_out_stream_new.
8595 (list_args_or_locals): Don't allocate a local ui_stream.
8596 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8597 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8598 ui_stream/ui_out_stream_new.
8599 * cli/cli-setshow.c (do_setshow_command): Ditto.
8600
8601 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8602
8603 * arm-linux-tdep.c (arm_linux_init_abi): Call
8604 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8605 * arm-tdep.c (arm_process_record): New function.
8606 (deallocate_reg_mem): New function.
8607 (decode_insn): New function.
8608 (thumb_record_branch): New function.
8609 (thumb_record_ldm_stm_swi(): New function.
8610 (thumb_record_misc): New function.
8611 (thumb_record_ld_st_stack): New function.
8612 (thumb_record_ld_st_imm_offset): New function.
8613 (thumb_record_ld_st_reg_offset(): New function.
8614 (thumb_record_add_sub_cmp_mov): New function.
8615 (thumb_record_shift_add_sub): New function.
8616 (arm_record_coproc_data_proc): New function.
8617 (arm_record_coproc): New function.
8618 (arm_record_b_bl): New function.
8619 (arm_record_ld_st_multiple): New function.
8620 (arm_record_ld_st_reg_offset): New function.
8621 (arm_record_ld_st_imm_offset): New function.
8622 (arm_record_data_proc_imm): New function.
8623 (arm_record_data_proc_misc_ld_str): New function.
8624 (arm_record_extension_space): New function.
8625 (arm_record_strx): New function.
8626 (sbo_sbz): New function.
8627 (struct insn_decode_record): New structure for arm insn record.
8628 (REG_ALLOC): New macro for reg allocations.
8629 (MEM_ALLOC): New macro for memory allocations.
8630 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8631
8632 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8633
8634 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8635 (store_register): Likewise.
8636
8637 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8638
8639 * MAINTAINERS (Write After Approval): Add myself to the list.
8640
8641 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8642
8643 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8644 Describe also the option "auto".
8645
8646 2012-03-22 Richard Henderson <rth@redhat.com>
8647
8648 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8649 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8650
8651 2012-03-22 Richard Henderson <rth@redhat.com>
8652
8653 * jit.c (jit_read_code_entry): Compute alignment and offset of
8654 int64_t member before computing entry_size.
8655
8656 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8657
8658 Python scripting: Add new method Value.referenced_value to
8659 gdb.Value which can dereference pointer as well as reference
8660 values.
8661 * NEWS: Add entry under 'Python scripting' about the new method
8662 Value.referenced_value on gdb.Value objects.
8663 * python/py-value.c (valpy_referenced_value): New function
8664 defining a new method on gdb.Value objects which can dereference
8665 pointer and reference values.
8666
8667 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8668
8669 * MAINTAINERS (Write After Approval): Add myself to the list.
8670
8671 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8672
8673 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8674 in addition to "main".
8675
8676 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8677
8678 * expression.h (op_name): Add declaration.
8679 * expprint.c (op_name): Remove declaration. Make non-static.
8680 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8681
8682 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8683
8684 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8685 of struct siginfo.
8686 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8687 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8688 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8689 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8690 (linux_nat_get_siginfo): Likewise.
8691 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8692 (linux_nat_get_siginfo): Likewise.
8693 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8694 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8695 * procfs.c (gdb_siginfo_t): Likewise.
8696
8697 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8698
8699 * .gitignore: Ignore more files.
8700
8701 2012-03-20 Pedro Alves <palves@redhat.com>
8702
8703 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8704 returns.
8705
8706 2012-03-20 Yao Qi <yao@codesourcery.com>
8707
8708 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8709 comment.
8710
8711 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8712
8713 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8714 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8715 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8716 sect_offset.
8717 * dwarf2expr.h (cu_offset, sect_offset): New types.
8718 (struct dwarf_expr_context_funcs) <dwarf_call>
8719 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8720 sect_offset.
8721 (struct dwarf_expr_context) <len>: Improve the comment.
8722 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8723 cu_offset and sect_offset.
8724 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8725 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8726 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8727 * dwarf2loc.h: Include dwarf2expr.h.
8728 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8729 and sect_offset.
8730 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8731 Improve the comment.
8732 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8733 (struct signatured_type, struct line_header, struct partial_die_info)
8734 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8735 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8736 (get_die_type_at_offset, create_cus_from_index)
8737 (create_signatured_type_table_from_index, dw2_get_file_names)
8738 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8739 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8740 (create_debug_types_hash_table, process_psymtab_comp_unit)
8741 (load_partial_comp_unit, create_all_comp_units)
8742 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8743 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8744 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8745 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8746 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8747 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8748 (find_partial_die, read_attribute_value, lookup_die_type)
8749 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8750 (is_ref_attr): New function comment.
8751 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8752 Use cu_offset and sect_offset.
8753 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8754 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8755 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8756 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8757 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8758 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8759 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8760 sect_offset.
8761
8762 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8763
8764 Code cleanup.
8765 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8766 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8767 with xfree.
8768 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8769
8770 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8771
8772 * NEWS: Describe new options --init-command=FILE, -ix and
8773 --init-eval-command=COMMAND, -iex.
8774 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8775 CMDARG_INIT_COMMAND.
8776 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8777 "init-command", "init-eval-command", "ix" and "iex" to the variable
8778 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8779 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8780 (print_gdb_help): Describe --init-command=FILE, -ix and
8781 --init-eval-command=COMMAND, -iex.
8782
8783 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8784
8785 Code cleanup.
8786 * main.c (struct cmdarg): Move it here from main. Add more comments.
8787 (cmdarg_s, VEC (cmdarg_s)): New.
8788 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8789 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8790 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8791 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8792 of CMDARG.
8793
8794 2012-03-19 Tom Tromey <tromey@redhat.com>
8795
8796 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8797
8798 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8799
8800 PR symtab/13777
8801 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8802 GCC >=4.5.
8803
8804 2012-03-16 Chris January <chris.january@allinea.com>
8805
8806 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8807 of clear.
8808
8809 2012-03-16 Chris January <chris.january@allinea.com>
8810
8811 * source.c (add_path): Use memmove instead of strcpy because the
8812 strings overlap.
8813
8814 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8815
8816 * value.h (set_value_parent): Add declaration.
8817 * value.c (set_value_parent): New function.
8818 (value_address): If VALUE->PARENT is not NULL, then use it as
8819 the base address instead of VALUE->LOCATION.address.
8820 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8821 the same as OBJ's address. Adjust V's offset accordingly.
8822 Set V's parent.
8823
8824 2012-03-16 Gary Benson <gbenson@redhat.com>
8825
8826 PR breakpoints/10738
8827 * dwarf2read.c (use_deprecated_index_sections): New global.
8828 (struct partial_die_info): New member may_be_inlined.
8829 (read_partial_die): Set may_be_inlined where appropriate.
8830 (add_partial_subprogram): Add partial symbols for partial
8831 DIEs that may be inlined.
8832 (new_symbol_full): Add inlined subroutines to the current
8833 scope.
8834 (write_psymtabs_to_index): Bump version number.
8835 (dwarf2_read_index): Read only version 6 indices unless
8836 use_deprecated_index_sections is set.
8837 * linespec.c (symbol_and_data_callback): New structure.
8838 (iterate_inline_only): New function.
8839 (iterate_over_all_matching_symtabs): New argument
8840 "include_inline". If nonzero, also call the callback for
8841 symbols representing inlined subroutines.
8842 (lookup_prefix_sym): Pass extra argument to the above.
8843 (find_function_symbols): Likewise.
8844 (add_matching_symbols_to_info): Likewise.
8845 * NEWS: Mention that GDB can now set breakpoints on inlined
8846 functions.
8847
8848 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8849
8850 * p-typeprint.c (pascal_type_print_method_args):
8851 Fix display of parameter of methods.
8852
8853 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8854
8855 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8856 Add missing prototype.
8857
8858 2012-03-16 Yao Qi <yao@codesourcery.com>
8859 Jan Kratochvil <jan.kratochvil@redhat.com>
8860
8861 Fix false compilation warning.
8862 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8863
8864 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8865 Pedro Alves <pedro@codesourcery.com>
8866
8867 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8868 (arm_register_g_packet_guesses): New function.
8869 (arm_gdbarch_init): Don't force a target description with
8870 registers when the executable is detected as M-profile. Instead
8871 set gdbarch->tdep->is_m. Register `g' packet guesses.
8872 (_initialize_arm_tdep): Initialize the new target description.
8873 * features/arm-with-m-fpa-layout.xml: New description.
8874 * features/arm-with-m-fpa-layout.c: New, generated.
8875
8876 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8877
8878 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8879 Update function description.
8880 (insert_bp_location): Do not wipe bl->target_info out.
8881 * mem-break.c: #include "gdb_string.h".
8882 (default_memory_insert_breakpoint): Do not call target_read_memory
8883 with a pointer to the breakpoint's shadow_contents buffer. Use
8884 a local buffer instead.
8885 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8886
8887 2012-03-15 Tom Tromey <tromey@redhat.com>
8888
8889 * NEWS: Mention "info vtbl", not "info vtable".
8890 * cp-support.c (info_vtbl_command): Fix comment.
8891 (_initialize_cp_support): Fix text.
8892
8893 2012-03-15 Tom Tromey <tromey@redhat.com>
8894
8895 * cp-valprint.c (cp_print_value_fields): Use
8896 print_function_pointer_address for vtable slot.
8897
8898 2012-03-15 Tom Tromey <tromey@redhat.com>
8899
8900 * gnu-v3-abi.c (struct value_and_voffset): New.
8901 (hash_value_and_voffset, eq_value_and_voffset)
8902 (compare_value_and_voffset, compute_vtable_size)
8903 (print_one_vtable, gnuv3_print_vtable): New functions.
8904 (init_gnuv3_ops): Initialize 'print_vtable' field.
8905 * cp-support.c (info_vtbl_command): New function.
8906 (_initialize_cp_support): Add "info vtbl".
8907 * cp-abi.h (cplus_print_vtable): Declare.
8908 (struct cp_abi_ops) <print_vtable>: New field.
8909 * cp-abi.c (cplus_print_vtable): New function.
8910 * NEWS: Update.
8911
8912 2012-03-15 Tom Tromey <tromey@redhat.com>
8913
8914 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8915 iterate_over_symbols.
8916
8917 2012-03-14 Doug Evans <dje@google.com>
8918
8919 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8920 DW_OP_GNU_parameter_ref.
8921
8922 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8923
8924 Fix double prompt of 'interpreter-exec mi'.
8925 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8926 (mi_interpreter_resume): use it.
8927 (mi_execute_command_input_handler): New function.
8928 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8929 mi_execute_command_input_handler.
8930
8931 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8932
8933 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8934 prototype.
8935 (darwin_debug_port_info): Make static.
8936 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8937 * machoread.c (_initialize_machoread): Add prototype.
8938 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8939 (i386_darwin_set_control, i386_darwin_get_control)
8940 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8941 i386_darwin_get_status, i386_darwin_get_control):
8942 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8943
8944 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8945
8946 * ax-gdb.c (gen_usual_unary): Remove special handling of
8947 enum and bool types.
8948
8949 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8950
8951 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8952
8953 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8954
8955 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8956
8957 2012-03-13 Chris January <chris.january@allinea.com>
8958
8959 * aix-thread.c (fill_sprs): Store the floating point registers
8960 at the correct offsets into vals.
8961
8962 2012-03-13 Doug Evans <dje@google.com>
8963
8964 * NEWS: Mention symbol-reloading has been deleted.
8965 * symfile.c (symbol_reloading): Delete.
8966 (show_symbol_reloading): Delete.
8967 (_initialize_symfile): Delete set/show symbol-reloading.
8968
8969 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8970 read_in_chain until we have successfully read it in.
8971 (load_full_comp_unit): Ditto.
8972 (read_signatured_type): Add comment.
8973
8974 2012-03-13 Chris January <chris.january@allinea.com>
8975
8976 * stabsread.c (fix_common_block): Change type of valu argument
8977 to CORE_ADDR.
8978
8979 2012-03-13 Chris January <chris.january@allinea.com>
8980
8981 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8982 instruction.
8983
8984 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8985
8986 * common/linux-procfs.c (linux_proc_get_int): New, from
8987 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8988 field.
8989 (linux_proc_get_tgid): Only call linux_proc_get_int.
8990 (linux_proc_get_tracerpid): New.
8991 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8992 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8993 linux_proc_pid_has_state.
8994 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8995 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8996 (linux_ptrace_attach_warnings): New.
8997 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8998 New declaration.
8999 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9000 (linux_nat_attach): New variables ex, buffer, message and message_s.
9001 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9002
9003 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 * Makefile.in (linux-ptrace.o): New.
9006 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9007 from linux-nat.c.
9008 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9009 * common/linux-ptrace.c: New file.
9010 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9011 * config/arm/linux.mh: Likewise.
9012 * config/i386/linux.mh: Likewise.
9013 * config/i386/linux64.mh: Likewise.
9014 * config/ia64/linux.mh: Likewise.
9015 * config/m32r/linux.mh: Likewise.
9016 * config/m68k/linux.mh: Likewise.
9017 * config/mips/linux.mh: Likewise.
9018 * config/pa/linux.mh: Likewise.
9019 * config/powerpc/linux.mh: Likewise.
9020 * config/powerpc/ppc64-linux.mh: Likewise.
9021 * config/powerpc/spu-linux.mh: Likewise.
9022 * config/s390/s390.mh: Likewise.
9023 * config/sparc/linux.mh: Likewise.
9024 * config/sparc/linux64.mh: Likewise.
9025 * config/xtensa/linux.mh: Likewise.
9026 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9027 common/linux-procfs.c.
9028 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9029
9030 2012-03-13 Hui Zhu <teawater@gmail.com>
9031 Pedro Alves <palves@redhat.com>
9032
9033 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9034 CREATE_BREAKPOINT_FLAGS_INSERTED.
9035 (create_breakpoint_sal, create_breakpoints_sal)
9036 (base_breakpoint_create_breakpoints_sal)
9037 (tracepoint_create_breakpoints_sal)
9038 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9039 down.
9040 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9041 (ftrace_command, strace_command): Adjust.
9042 (create_tracepoint_from_upload): Pass
9043 CREATE_BREAKPOINT_FLAGS_INSERTED.
9044 * breakpoint.h (enum breakpoint_create_flags): New.
9045 (create_breakpoint): New flags parameter.
9046 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9047 * python/py-breakpoint.c (bppy_init): Adjust.
9048 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9049 * spu-tdep.c (spu_catch_start): Adjust.
9050
9051 2012-03-13 Pedro Alves <palves@redhat.com>
9052 Hui Zhu <teawater@gmail.com>
9053 Yao Qi <yao@codesourcery.com>
9054
9055 * remote.c (struct remote_state): New field `starting_up'.
9056 (remote_start_remote): Set and clear it.
9057 (remote_can_download_tracepoint): If starting up, return false.
9058
9059 2012-03-13 Yao Qi <yao@codesourcery.com>
9060
9061 * inferior.h (struct inferior): Remove fields any_syscall_count,
9062 syscalls_counts and total_syscalls_count. Move them to new
9063 struct catch_syscall_inferior_data in breakpoint.c.
9064 * breakpoint.c: Call DEF_VEC_I(int).
9065 (struct catch_syscall_inferior_data): New.
9066 (get_catch_syscall_inferior_data): New.
9067 (catch_syscall_inferior_data_cleanup): New.
9068 (insert_catch_syscall): Update to access data in
9069 struct catch_syscall_inferior_data.
9070 (insert_catch_syscall): Likewise.
9071 (remove_catch_syscall): Likewise.
9072 (remove_catch_syscall): Likewise.
9073 (is_syscall_catchpoint_enabled): Likewise.
9074 (add_catch_command): Likewise.
9075 (_initialize_breakpoint): Register cleanup.
9076 * breakpoint.h: Removed DEF_VEC_I(int).
9077 * dwarf2loc.c: Call DEF_VEC_I(int).
9078 * mi/mi-main.c: Likewise.
9079
9080 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9081
9082 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9083
9084 2012-03-12 Chris January <chris.january@allinea.com>
9085
9086 * aix-thread.c (_initialize_aix_thread): Add prototype.
9087 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9088 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9089
9090 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9091
9092 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9093 include of "amd64-nat.h".
9094
9095 2012-03-12 Tom Tromey <tromey@redhat.com>
9096
9097 * buildsym.c (record_pending_block): Now static.
9098 * buildsym.h: (record_pending_block): Remove.
9099
9100 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9101
9102 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9103
9104 2012-03-09 Tom Tromey <tromey@redhat.com>
9105
9106 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9107 producer_is_gxx_lt_4_6>: New fields.
9108 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9109
9110 2012-03-09 Tom Tromey <tromey@redhat.com>
9111
9112 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9113
9114 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9115
9116 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9117 prototype.
9118
9119 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9120
9121 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9122
9123 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9124
9125 Fix -Wmissing-prototypes build.
9126 * arm-linux-nat.c (get_thread_id): Make it static.
9127 * xtensa-linux-nat.c (get_thread_id): Likewise.
9128
9129 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9130
9131 * server.c (process_point_options): If a conditional expression
9132 is found, only print a message if remote_debug is nonzero.
9133
9134 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9135
9136 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9137 of internal error for unknown/unsupported types.
9138
9139 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9140
9141 Fix CU relative vs. absolute DIE offsets.
9142 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9143 offset to offset_in_cu.
9144 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9145 TYPE_OFFSET.
9146 (dwarf2_fetch_die_location_block): Rename parameter offset to
9147 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9148
9149 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9150
9151 * libunwind-frame.c: Rename to ...
9152 * ia64-libunwind-tdep.c: ... here.
9153 * libunwind-frame.h: Rename to ...
9154 * ia64-libunwind-tdep.h: ... here.
9155 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9156 ia64-libunwind-tdep.h.
9157 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9158 * README (--with-libunwind): Rename to ...
9159 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9160 * config.in: Regenerate.
9161 * configure: Regenerate.
9162 * configure.ac: New option --with-libunwind-ia64, make the
9163 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9164 Remove AC_DEFINE for HAVE_LIBUNWIND.
9165 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9166 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9167 Rename libunwind-frame in the general comment.
9168 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9169 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9170 Move forward declarations inside #ifndef. Rename libunwind-frame in
9171 the general comment.
9172 * ia64-tdep.c: Rename libunwind-frame.h #include to
9173 ia64-libunwind-tdep.h.
9174 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9175 (ia64_libunwind_descr): Rename libunwind-frame to
9176 ia64-libunwind-tdep in these function comments.
9177 * ia64-tdep.h: Rename libunwind-frame.h #include to
9178 ia64-libunwind-tdep.h.
9179 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9180 ia64-libunwind-tdep in that data comment.
9181
9182 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9183
9184 * libunwind-frame.h (struct frame_unwind): New declaration.
9185
9186 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9187
9188 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9189 "set breakpoint condition-evaluation" command.
9190
9191 2012-03-08 Tristan Gingold <gingold@adacore.com>
9192
9193 * sparc-stub.c: Move to stubs/
9194 * sh-stub.c: Likewise.
9195 * m68k-stub.c: Likewise.
9196 * m32r-stub.c: Likewise.
9197 * i386-stub.c: Likewise.
9198
9199 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9200
9201 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9202 linux_get_siginfo_type.
9203
9204 * m68klinux-nat.c: Include "gdb_proc_service.h".
9205 (PTRACE_GET_THREAD_AREA): Define.
9206 (ps_get_thread_area): New function.
9207
9208 2012-03-08 Yao Qi <yao@codesourcery.com>
9209
9210 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9211 `xsnprintf'.
9212 (remote_query_attached): Likewise.
9213 (remote_static_tracepoint_marker_at): Likewise.
9214 (remote_set_permissions): Likewise.
9215 (remote_detach_1, extended_remote_attach_1): Likewise.
9216 (send_g_packet, remote_vkill): Likewise.
9217 (extended_remote_disable_randomization): Likewise.
9218 (remote_add_target_side_condition): Likewise.
9219 (remote_insert_breakpoint): Likewise.
9220 (remote_remove_breakpoint): Likewise.
9221 (remote_insert_watchpoint): Likewise.
9222 (remote_remove_watchpoint): Likewise.
9223 (remote_insert_hw_breakpoint): Likewise.
9224 (remote_insert_hw_breakpoint): Likewise.
9225 (remote_remove_hw_breakpoint): Likewise.
9226 (remote_download_command_source): Likewise.
9227 (remote_download_tracepoint): Likewise.
9228 (remote_download_trace_state_variable): Likewise.
9229 (remote_disable_tracepoint): Likewise.
9230 (remote_trace_set_readonly_regions): Likewise.
9231 (remote_get_tracepoint_status): Likewise.
9232 (remote_trace_find): Likewise.
9233 (remote_get_trace_state_variable_value): Likewise.
9234 (remote_set_disconnected_tracing): Likewise.
9235 (remote_set_circular_trace_buffer): Likewise.
9236 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9237 (remote_use_agent): Likewise.
9238 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9239 Update callers.
9240
9241 2012-03-07 Pedro Alves <palves@redhat.com>
9242
9243 * NEWS: Mention QProgramSignals.
9244 * inferior.h (update_signals_program_target): Declare.
9245 * infrun.c: (update_signals_program_target): New.
9246 (handle_command): Update the target of the new program signals
9247 array changes.
9248 * remote.c (PACKET_QProgramSignals): New enum.
9249 (last_program_signals_packet): New global.
9250 (remote_program_signals): New.
9251 (remote_start_remote): Update the target with the program signals
9252 list.
9253 (remote_protocol_features): Add entry for QPassSignals.
9254 (remote_open_1): Free anc clear last_program_signals_packet.
9255 (init_remote_ops): Install remote_program_signals.
9256 * target.c (update_current_target): Adjust.
9257 (target_program_signals): New.
9258 * target.h (struct target_ops) <to_program_signals>: New field.
9259 (target_program_signals): Declare.
9260
9261 2012-03-07 Pedro Alves <palves@redhat.com>
9262
9263 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9264 extensions.
9265
9266 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9267
9268 * m68klinux-nat.c (getregs_supplies): Make static.
9269 (getfpregs_supplies): Likewise.
9270 (have_ptrace_getregs): Likewise.
9271
9272 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9273
9274 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9275 in call to get_die_type_at_offset.
9276
9277 2012-03-06 Stan Shebs <stan@codesourcery.com>
9278
9279 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9280 * mi/mi-cmd-disas.c: Ditto.
9281 * mi/mi-cmd-env.c: Ditto.
9282 * mi/mi-cmd-file.c: Ditto.
9283 * mi/mi-cmd-stack.c: Ditto.
9284 * mi/mi-cmd-target.c: Ditto.
9285 * mi/mi-cmd-var.c: Ditto.
9286 * mi/mi-cmds.c: Ditto.
9287 * mi/mi-cmds.h: Ditto.
9288 * mi/mi-console.c: Ditto.
9289 * mi/mi-getopt.c: Ditto.
9290 * mi/mi-getopt.h: Ditto.
9291 * mi/mi-interp.c: Ditto.
9292 * mi/mi-main.c: Ditto.
9293 * mi/mi-out.c: Ditto.
9294 * mi/mi-parse.c: Ditto.
9295 * mi/mi-parse.h: Ditto.
9296 * mi/mi-symbol-cmds.c: Ditto.
9297
9298 * mi/mi-getopt.h: Move mi_opt struct up.
9299 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9300 return.
9301 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9302
9303 2012-03-06 Tom Tromey <tromey@redhat.com>
9304
9305 * proc-service.c (ps_pglobal_lookup): Set the current program
9306 space.
9307
9308 2012-03-06 Pedro Alves <palves@redhat.com>
9309
9310 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9311
9312 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9313
9314 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9315
9316 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 Code cleanup.
9319 * common/linux-osdata.c (linux_common_core_of_thread): New function
9320 comment.
9321 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9322 call by linux_common_core_of_thread.
9323 (linux_nat_core_of_thread_1): Remove.
9324 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9325 * linux-thread-db.c: Include linux-osdata.h.
9326 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9327 linux_common_core_of_thread.
9328
9329 2012-03-05 Tom Tromey <tromey@redhat.com>
9330
9331 * value.c (value_primitive_field): Don't fetch contents for
9332 non-virtual bases.
9333
9334 2012-03-05 Tom Tromey <tromey@redhat.com>
9335
9336 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9337
9338 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9339
9340 * s390-nat.c: Include "gregset.h".
9341
9342 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9343
9344 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9345 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9346 (libunwind_load): New variable so_error, use it for dlerror. Try to
9347 load also LIBUNWIND_SO_7.
9348
9349 2012-03-05 Pedro Alves <palves@redhat.com>
9350
9351 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9352 is not NULL, and remove resulting dead code.
9353
9354 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9355
9356 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9357 prologue to sh_analyze_prologue.
9358 (sh_analyze_prologue): Make better use of such an upper limit, and
9359 generally be more cautious about accessing memory.
9360
9361 2012-03-05 Tom Tromey <tromey@redhat.com>
9362
9363 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9364 _initialize_ia64_hpux_tdep.
9365
9366 2012-03-05 Pedro Alves <palves@redhat.com>
9367
9368 PR gdb/13766
9369
9370 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9371 the register state is clear, supply explicit zero, instead of
9372 marking the register unavailable.
9373
9374 2012-03-05 Tristan Gingold <gingold@adacore.com>
9375
9376 * NEWS: Mention OpenVMS ia64 new target.
9377
9378 2012-03-05 Tristan Gingold <gingold@adacore.com>
9379
9380 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9381 (ia64_unw_accessors, ia64_unw_rse_accessors)
9382 (ia64_libunwind_descr): Declare.
9383 * ia64-vms-tdep.c: New file.
9384 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9385 (ia64_libunwind_descr): Make them public.
9386 * configure.tgt: Add ia64-*-*vms*.
9387 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9388 (ALLDEPFILES): Add ia64-vms-tdep.c
9389
9390 2012-03-05 Tristan Gingold <gingold@adacore.com>
9391
9392 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9393 * remote.c (PACKET_qXfer_uib): New enum value.
9394 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9395 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9396 (_initialize_remote): Call add_packet_config_cmd for
9397 xfer:uib packet.
9398
9399 2012-03-05 Tristan Gingold <gingold@adacore.com>
9400
9401 * osabi.c (gdb_osabi_names): Add OpenVMS.
9402 (generic_elf_osabi_sniffer): Likewise.
9403 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9404
9405 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9406
9407 Removed unused code.
9408 * libunwind-frame.c (libunwind_frame_unwind)
9409 (libunwind_frame_base_address): Remove.
9410 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9411
9412 2012-03-04 Yao Qi <yao@codesourcery.com>
9413
9414 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9415 remove trailing new line.
9416 (agent_run_command, agent_run_command): Add _ markup.
9417 (agent_capability_check): Likewise.
9418
9419 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9420
9421 * breakpoint.c (set_condition_evaluation_mode): Set
9422 CONDITION_EVALUATION_MODE unconditionally.
9423
9424 2012-03-03 Yao Qi <yao@codesourcery.com>
9425
9426 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9427 * common/agent.h: Update declaration.
9428 * inf-child.c (inf_child_use_agent): New.
9429 (inf_child_can_use_agent): New.
9430 (inf_child_target): Initialize fields `to_use_agent'
9431 and `to_can_use_agent'.
9432 * agent.c (agent_new_objfile): New.
9433 (_initialize_agent): Add agent_new_objfile to new_objfile
9434 observer.
9435
9436 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9437 New.
9438 (linux_target_install_ops): Initialize field
9439 `to_static_tracepoint_markers_by_strid'.
9440 * remote.c (free_current_marker): Move it to ...
9441 * tracepoint.c (free_current_marker): ... here. New.
9442 (cleanup_target_stop): New.
9443 * tracepoint.h: Declare free_current_marker.
9444 * NEWS: Add one entry about `info static-tracepoint-marker'.
9445
9446 2012-03-03 Yao Qi <yao@codesourcery.com>
9447
9448 * common/agent.c (agent_loaded_p): New.
9449 (agent_look_up_symbols): New global.
9450 * common/agent.h: Declare agent_loaded_p.
9451
9452 2012-03-03 Yao Qi <yao@codesourcery.com>
9453
9454 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9455 (agent_capability_check, agent_capability_invalidate): New.
9456 (symbol_list): New array element.
9457 * common/agent.h (enum agent_capa): New.
9458 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9459
9460 2012-03-03 Yao Qi <yao@codesourcery.com>
9461
9462 * target.h (struct target_ops) <to_use_agent>: New field.
9463 (struct target_ops) <to_can_use_agent>: New field.
9464 (target_use_agent, target_can_use_agent): New macro.
9465 * target.c (update_current_target): Update.
9466 * remote.c: New enum `PACKET_QAgent'.
9467 (remote_protocol_features): Add a new element.
9468 (remote_use_agent, remote_can_use_agent): New.
9469 (init_remote_ops): Initialize field `can_use_agent' with
9470 remote_can_use_agent. Intiailize field `use_agent' with
9471 remote_use_agent.
9472 * common/agent.c (use_agent): New global.
9473 * common/agent.h: Declare it.
9474 * tracepoint.c (info_static_tracepoint_markers_command): Add
9475 comment.
9476 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9477 (COMMON_OBS): Add common/agent.o and agent.o
9478 (common-agent.o): New rule.
9479 * agent.c: New.
9480
9481 2012-03-03 Yao Qi <yao@codesourcery.com>
9482
9483 * common/agent.c: New.
9484 * common/agent.h: New.
9485 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9486 AC_CHECK_HEADERS.
9487 * configure, configh.in: Regenerated.
9488
9489 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9490
9491 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9492 unless it exists for this architecture.
9493
9494 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9495
9496 * language.h (struct language_defn): New "method" la_read_var_value.
9497 * findvar.c: #include "language.h".
9498 (default_read_var_value): Renames read_var_value. Rewrite
9499 function description.
9500 (read_var_value): New function.
9501 * value.h (default_read_var_value): Add prototype.
9502 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9503 New functions.
9504 (ada_language_defn): Add entry for la_read_var_value.
9505 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9506 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9507 language_defn structures to add entry for new la_read_var_value
9508 field.
9509
9510 2012-03-02 Tom Tromey <tromey@redhat.com>
9511 Pedro Alves <palves@redhat.com>
9512
9513 PR breakpoints/13776:
9514 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9515 breakpoints.
9516 (delete_longjmp_breakpoint_at_next_stop): New.
9517 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9518 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9519 before deleting the inferior. Add comments.
9520 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9521 breakpoints immediately, but only on next stop. Move that code
9522 next to where we mark other breakpoints for deletion.
9523
9524 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9525
9526 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9527 marker.
9528 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9529 violation.
9530
9531 2012-03-02 Pedro Alves <palves@redhat.com>
9532
9533 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9534
9535 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9536
9537 Fix -Wmissing-prototypes build.
9538 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9539 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9540 (gdbsim_has_memory): Likewise.
9541
9542 2012-03-02 Yao Qi <yao@codesourcery.com>
9543
9544 Fix -Wmissing-prototypes build.
9545 * charset.c (phony_iconv_open): Make static.
9546 (phony_iconv_close, phony_iconv): Likewise.
9547 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9548 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9549 prototype.
9550 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9551 * ser-mingw.c (create_select_thread): Make static.
9552 * windows-termcap.c (tgetent): New prototype.
9553 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9554
9555 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9556
9557 Fix -Wmissing-prototypes build.
9558 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9559 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9560 (_initialize_loadable): New prototypes.
9561
9562 2012-03-02 Doug Evans <dje@google.com>
9563
9564 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9565 abbrev table, read_comp_unit will do it.
9566
9567 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9568
9569 Fix -Wmissing-prototypes build.
9570 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9571 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9572 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9573 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9574 (_initialize_arm_symbian_tdep): New prototype.
9575 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9576 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9577 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9578 static.
9579 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9580 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9581 prototype.
9582 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9583 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9584 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9585 static.
9586 * moxie-tdep.c (moxie_process_record): Likewise.
9587 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9588 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9589 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9590 (_initialize_rl78_tdep): New prototype.
9591 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9592 (_initialize_rx_tdep): New prototype.
9593 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9594 (_initialize_darwin_solib): New prototype.
9595 * solib-spu.c: Include solib-spu.h.
9596 (_initialize_spu_solib): New prototype.
9597 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9598 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9599 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9600 (tic6x_software_single_step): Make it static.
9601 (_initialize_tic6x_tdep): New prototype.
9602
9603 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 Fix -Wmissing-prototypes build.
9606 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9607 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9608
9609 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 Fix -Wmissing-prototypes build.
9612 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9613 (frv_have_stopped_data_address): Remove.
9614
9615 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9616
9617 Fix -Wmissing-prototypes build.
9618 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9619 * sh-tdep.c: Include sh64-tdep.h.
9620 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9621 * sh64-tdep.c: Include sh64-tdep.h.
9622 * sh64-tdep.h: New file.
9623
9624 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9625
9626 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9627
9628 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9629
9630 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9631 sp_regnum once the gdbarch_init_osabi hook has been called.
9632
9633 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9634
9635 * mips-tdep.c (mips32_bc1_pc): New function.
9636 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9637 BPOSGE32 and BPOSGE64 instructions.
9638 (deal_with_atomic_sequence): Likewise.
9639 (mips32_instruction_has_delay_slot): Likewise.
9640
9641 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9642 Chris Dearman <chris@mips.com>
9643 Maciej W. Rozycki <macro@codesourcery.com>
9644 Joseph Myers <joseph@codesourcery.com>
9645
9646 * features/mips-dsp.xml: New file.
9647 * features/mips64-dsp.xml: New file.
9648 * features/mips-dsp-linux.xml: New file.
9649 * features/mips64-dsp-linux.xml: New file.
9650 * features/Makefile (WHICH): Add mips-dsp-linux and
9651 mips64-dsp-linux.
9652 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9653 * features/mips-dsp-linux.c: New file.
9654 * features/mips64-dsp-linux.c: New file.
9655 * regformats/mips-dsp-linux.dat: New file.
9656 * regformats/mips64-dsp-linux.dat: New file.
9657 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9658 registers.
9659 (mips64_linux_register_addr): Likewise.
9660 (mips64_linux_regsets_fetch_registers): Likewise.
9661 (mips64_linux_regsets_store_registers): Likewise.
9662 (mips64_linux_fetch_registers): Update call to
9663 mips64_linux_regsets_fetch_registers.
9664 (mips64_linux_store_registers): Update call to
9665 mips64_linux_regsets_store_registers.
9666 (mips_linux_read_description): Probe for DSP registers.
9667 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9668 and initialize_tdesc_mips64_dsp_linux.
9669 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9670 Remove padding of no longer used embedded register slots.
9671 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9672 (MIPS_RESTART_REGNUM): Redefine enum value.
9673 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9674 strings.
9675 (mips_tx39_reg_names): Likewise.
9676 (mips_linux_reg_names): New array of register names for Linux
9677 targets.
9678 (mips_register_name): Check for a null pointer in
9679 mips_processor_reg_names and return an empty string.
9680 (mips_register_type): Exclude embedded registers for the IRIX
9681 and Linux ABIs.
9682 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9683 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9684 DSP registers.
9685 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9686 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9687 (mips_gdbarch_init): Likewise. Initialize internal register
9688 indices for the Linux ABI. Use dynamic numbers to refer to
9689 registers, as applicable, while parsing the target description.
9690 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9691
9692 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9693
9694 * frame.h (read_frame_register_unsigned): Fix typo in function
9695 description.
9696
9697 2012-03-01 Pedro Alves <palves@redhat.com>
9698
9699 * jit-reader.in [!__cplusplus]
9700 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9701
9702 2012-03-01 Pedro Alves <palves@redhat.com>
9703
9704 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9705 * configure: Regenerate.
9706
9707 2012-03-01 Pedro Alves <palves@redhat.com>
9708
9709 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9710 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9711 (ftrace_command, strace_command): Make static.
9712 * d-lang.c (_initialize_d_language): Declare.
9713 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9714 * dwarf2loc.c (_initialize_dwarf2loc):
9715 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9716 * exec.c (exec_get_section_table): Make static.
9717 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9718 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9719 * inferior.c (remove_inferior_command, add_inferior_command)
9720 (clone_inferior_command): Make static.
9721 * linux-nat.c (linux_nat_thread_address_space)
9722 (linux_nat_core_of_thread): Make static.
9723 * linux-tdep.c (_initialize_linux_tdep): Declare.
9724 * objc-lang.c (_initialize_objc_lang): Declare.
9725 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9726 Make static.
9727 (_initialize_opencl_language): Declare.
9728 * record.c (_initialize_record): Declare.
9729 * remote.c (demand_private_info, remote_get_tib_address)
9730 (remote_supports_cond_tracepoints)
9731 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9732 Make static.
9733 * skip.c (_initialize_step_skip): Declare.
9734 * symtab.c (skip_prologue_using_lineinfo): Make static.
9735 * tracepoint.c (delete_trace_state_variable)
9736 (trace_variable_command, delete_trace_variable_command)
9737 (get_uploaded_tsv, find_matching_tracepoint_location)
9738 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9739 Make static.
9740 * value.c (pack_unsigned_long): Make static.
9741 * varobj.c (varobj_ensure_python_env): Make static.
9742 * windows-tdep.c (_initialize_windows_tdep): Declare.
9743 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9744
9745 2012-03-01 Pedro Alves <palves@redhat.com>
9746
9747 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9748 gdbarch parameter.
9749 (linux_init_abi): Install it as has_shared_address_space gdbarch
9750 callback.
9751
9752 2012-03-01 Pedro Alves <palves@redhat.com>
9753
9754 * observer.c (observer_test_first_notification_function)
9755 (observer_test_second_notification_function)
9756 (observer_test_third_notification_function): Add declarations.
9757
9758 2012-03-01 Pedro Alves <palves@redhat.com>
9759
9760 * common/signals.c (default_target_signal_to_host)
9761 (default_target_signal_from_host): Move ...
9762 * arch-utils.c: ... here.
9763 * arch-utils.h (default_target_signal_to_host)
9764 (default_target_signal_from_host): Declare.
9765
9766 * common/signals.c (target_signal_from_command): Move ...
9767 * infrun.c: ... here.
9768 * inferior.h (target_signal_from_command): Declare.
9769 * target.h (target_signal_from_command)
9770 (default_target_signal_from_host, default_target_signal_to_host):
9771 Delete declarations.
9772
9773 * common/signals.c (_initialize_signals): Delete.
9774
9775 2012-03-01 Pedro Alves <palves@redhat.com>
9776
9777 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9778 both __cplusplus and !__cplusplus.
9779
9780 2012-03-01 Pedro Alves <palves@redhat.com>
9781
9782 * psymtab.c (find_and_open_source): Delete declaration.
9783 * source.c (find_and_open_source): Move comment ...
9784 * source.h (find_and_open_source): ... to this new declaration.
9785
9786 2012-03-01 Pedro Alves <palves@redhat.com>
9787
9788 * inline-frame.c: Include inline-frame.h.
9789
9790 2012-03-01 Pedro Alves <palves@redhat.com>
9791
9792 * tui/tui-data.c (set_gen_win_origin): Delete.
9793 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9794 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9795
9796 2012-03-01 Pedro Alves <palves@redhat.com>
9797
9798 * remote.c (encode_actions): Delete declaration.
9799 * tracepoint.c (encode_actions): Make extern.
9800 * tracepoint.h (encode_actions): Declare.
9801
9802 2012-03-01 Pedro Alves <palves@redhat.com>
9803
9804 * python/py-breakpoint.c: Include python.h.
9805 * python/py-continueevent.c (create_continue_event_object): Make
9806 static.
9807 * python/py-lazy-string.c (stpy_get_type): Make static.
9808 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9809 Make static.
9810 * python/py-utils.c (unicode_to_target_python_string): Make
9811 static.
9812 * python/py-value.c: Include python.h.
9813
9814 2012-03-01 Pedro Alves <palves@redhat.com>
9815
9816 * inferior.c (delete_threads_of_inferior): Delete.
9817
9818 2012-03-01 Pedro Alves <palves@redhat.com>
9819
9820 Import fallback definitions from glibc.
9821
9822 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9823 ps_prochandle): Forward declare.
9824 (ps_err_e): Use glibc's comments.
9825 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9826 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9827 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9828 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9829 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9830 (struct ps_prochandle): Adjust comment.
9831
9832 2012-03-01 Pedro Alves <palves@redhat.com>
9833
9834 * ada-lang.c (ada_modulus_from_name): Delete.
9835 * ada-lex.l (lexer_init): Make static.
9836
9837 2012-03-01 Pedro Alves <palves@redhat.com>
9838
9839 PR gdb/13767
9840
9841 * frame.c (read_frame_register_unsigned): New.
9842 * frame.h (read_frame_register_unsigned): Declare.
9843 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9844 Handle it.
9845 (print_i387_control_word): New parameter `control_p'. Handle it.
9846 (i387_print_float_info): Handle unavailable float registers.
9847
9848 2012-03-01 Keith Seitz <keiths@redhat.com>
9849
9850 * linespec.c (decode_line_2): Sort the list of methods
9851 alphabetically before presenting the user with a selection
9852 menu.
9853
9854 2012-03-01 Doug Evans <dje@google.com>
9855
9856 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9857 has_namespace_info.
9858 (dwarf2_read_abbrevs): Remove corresponding initialization.
9859
9860 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9861
9862 * NEWS: Mention new python command class gdb.COMMAND_USER.
9863 * cli/cli-cmds.c (show_user): Print error when used on a python
9864 command.
9865 (init_cli_cmds): Update documentation strings for "show user" and
9866 "set/show max-user-call-depth" to clarify that it does not apply to
9867 python commands.
9868 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9869 error check.
9870 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9871 gdb python api.
9872 * top.c (execute_command): Only execute a user-defined command as a
9873 legacy macro if c->user_commands is set.
9874
9875 2012-03-01 Tom Tromey <tromey@redhat.com>
9876
9877 * valprint.h (struct generic_val_print_decorations): New.
9878 (generic_val_print): Declare.
9879 * valprint.c (generic_val_print): New function.
9880 * p-valprint.c (p_decorations): New global.
9881 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9882 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9883 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9884 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9885 * m2-valprint.c (m2_decorations): New global.
9886 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9887 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9888 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9889 TYPE_CODE_ERROR>: Call generic_val_print.
9890 * f-valprint.c (f_decorations): New global.
9891 (f_val_print): Use print_function_pointer_address.
9892 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9893 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9894 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9895 generic_val_print.
9896 * c-valprint.c (c_decorations): New global.
9897 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9898 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9899 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9900 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9901 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9902 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9903 case.
9904
9905 2012-03-01 Tom Tromey <tromey@redhat.com>
9906
9907 * valprint.c (val_print): Update.
9908 * p-valprint (pascal_val_print): Return void.
9909 * p-lang.h (pascal_val_print): Return void.
9910 * m2-valprint.c (m2_val_print): Return void.
9911 * m2-lang.h (m2_val_print): Return void.
9912 * language.h (struct language_defn) <la_val_print>: Return void.
9913 * language.c (unk_lang_val_print): Return void.
9914 * jv-valprint.c (java_val_print): Return void.
9915 * jv-lang.h (java_val_print): Return void.
9916 * f-valprint.c (f_val_print): Return void.
9917 * f-lang.h (f_val_print): Return void.
9918 * d-valprint.c (d_val_print): Return void.
9919 (dynamic_array_type): Update.
9920 * d-lang.h (d_val_print): Return void.
9921 * c-valprint.c (c_val_print): Return void.
9922 * c-lang.h (c_val_print): Return void.
9923 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9924 void.
9925 * ada-lang.h (ada_val_print): Return void.
9926
9927 2012-03-01 Tom Tromey <tromey@redhat.com>
9928
9929 * value.h (val_print): Return void.
9930 * valprint.c (val_print): Return void.
9931
9932 2012-03-01 Tom Tromey <tromey@redhat.com>
9933
9934 * value.h (common_val_print): Return void.
9935 * valprint.c (common_val_print): Return void.
9936
9937 2012-03-01 Tom Tromey <tromey@redhat.com>
9938
9939 * value.h (value_print): Return void.
9940 * valprint.c (value_print): Return void.
9941 * p-valprint.c (pascal_value_print): Return void.
9942 * p-lang.h (pascal_value_print): Return void.
9943 * language.h (struct language_defn) <la_value_print>: Return
9944 void.
9945 * language.c (unk_lang_value_print): Return void.
9946 * jv-valprint.c (java_value_print): Return void.
9947 * jv-lang.h (java_value_print): Return void.
9948 * f-valprint.c (c_value_print): Don't declare.
9949 Include c-lang.h.
9950 * c-valprint.c (c_value_print): Return void.
9951 * c-lang.h (c_value_print): Return void.
9952 * ada-valprint.c (ada_value_print): Return void.
9953 * ada-lang.h (ada_value_print): Return void.
9954
9955 2012-03-01 Tom Tromey <tromey@redhat.com>
9956
9957 * value.c (value_primitive_field): Handle virtual base classes.
9958
9959 2012-03-01 Tom Tromey <tromey@redhat.com>
9960
9961 * gdbtypes.h (struct vbase): Remove.
9962
9963 2012-03-01 Tom Tromey <tromey@redhat.com>
9964
9965 * c-valprint.c (print_function_pointer_address): Move...
9966 * valprint.c: ... here. Make non-static.
9967 * m2-valprint.c (print_function_pointer_address): Remove.
9968 * valprint.h (print_function_pointer_address): Declare.
9969
9970 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9971
9972 * NEWS: Document the fact that one can provide a condition when
9973 creating an Ada exception catchpoint.
9974
9975 2012-03-01 Tom Tromey <tromey@redhat.com>
9976
9977 * valprint.c (val_print_type_code_flags): Fix placement of
9978 trailing brace.
9979
9980 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9981
9982 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9983 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9984 environment variable before calling update-copyright.
9985
9986 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9987
9988 * gnulib/extra/update-copyright: Update to the latest from
9989 gnulib's git repository.
9990 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9991 variable to 2 instead of 1.
9992
9993 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9994
9995 * varobj.c (c_value_of_variable): Remove dead code.
9996
9997 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9998
9999 * ada-lex.p (processId): Do not modify already encoded IDs.
10000 Update function documentation.
10001
10002 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10003
10004 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10005 "name" with "struct symbol *name_sym".
10006 * ada-exp.y (write_var_or_type): Update call to
10007 ada_find_renaming_symbol.
10008 "name" with "struct symbol *name_sym". Adjust Implementation
10009 accordingly. Adjust the function documentation.
10010
10011 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10012
10013 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10014 * ada-lang.c (ada_find_any_type): Add advance declaration.
10015 Make static. Replace ada_find_any_symbol by
10016 ada_find_any_type_symbol.
10017 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10018 Improve function description. Make static.
10019 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10020 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10021
10022 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10023
10024 * ada-lang.c (struct tag_args): Delete.
10025 (ada_get_tsd_type): Function body moved up in source file.
10026 (ada_tag_name_1, ada_tag_name_2): Delete.
10027 (ada_get_tsd_from_tag): New function.
10028 (ada_tag_name_from_tsd): New function.
10029 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10030 to determine the tag name.
10031
10032 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10033
10034 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10035 declaration.
10036 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10037 function.
10038
10039 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10040
10041 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10042
10043 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10046 full searches.
10047
10048 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10049
10050 * ada-lang.c (constrained_packed_array_type): If there is a
10051 parallel XA type, use it to determine the array index type.
10052
10053 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10054
10055 * ada-valprint.c (ada_val_print_1): If our value is a reference
10056 to an array descriptor, dereference it before converting it
10057 to a simple array.
10058
10059 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10060
10061 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10062 creating fixed value.
10063 (ada_value_ind, ada_coerce_ref, assign_component)
10064 (ada_evaluate_subexp): Remove call to unwrap_value before
10065 call to ada_to_fixed_value.
10066
10067 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10068
10069 * ada-lang.c (to_fixed_array_type): Set result's type name.
10070
10071 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10072
10073 * ada-lang.c (catch_ada_exception_command_split): Add new
10074 argument cond_string. Add support for condition at end of
10075 "catch exception" commands.
10076 (ada_decode_exception_location): Add new argument cond_string.
10077 Update call to catch_ada_exception_command_split.
10078 (create_ada_exception_catchpoint): Add new argument cond_string.
10079 Set the breakpoint condition if needed.
10080 (catch_ada_exception_command): Update call to
10081 ada_decode_exception_location.
10082 (ada_decode_assert_location): Add function documentation.
10083 Add support for condition at end of "catch assert" command.
10084 (catch_assert_command): Update calls to ada_decode_assert_location
10085 and create_ada_exception_catchpoint.
10086
10087 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 Fix disp-step-syscall.exp: fork: single step over fork.
10090 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10091 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10092 comment, change parameters gdbarch and ptid to regcache. Remove
10093 parameter regcache, initialize gdbarch from regcache here.
10094 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10095 New functions.
10096 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10097 instead.
10098 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10099 'syscall'. Make the 'int' check more strict.
10100
10101 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10102
10103 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10104 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10105 (i386_linux_intx80_sysenter_syscall_record): ... here.
10106 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10107 Use the renamed function name.
10108
10109 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10110
10111 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10112 * breakpoint.c (until_break_command): Likewise.
10113 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10114 * infcall.c (call_function_by_hand): Likewise.
10115 * infcmd.c (finish_forward): Likewise.
10116 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10117
10118 2012-02-28 Tristan Gingold <gingold@adacore.com>
10119
10120 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10121 avoid variable assignments inside condition.
10122
10123 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10124
10125 Fix static analysis issue found by cppcheck.
10126 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10127 uninitialized BUF for size 2.
10128
10129 2012-02-27 Chris Dearman <chris@mips.com>
10130 Nathan Froyd <froydnj@codesourcery.com>
10131 Maciej W. Rozycki <macro@codesourcery.com>
10132
10133 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10134 (mips16_instruction_has_delay_slot): Likewise.
10135 (mips_segment_boundary): Likewise.
10136 (mips_adjust_breakpoint_address): Likewise.
10137 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10138
10139 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10140 Maciej W. Rozycki <macro@codesourcery.com>
10141
10142 * infrun.c (handle_inferior_event): Don't proceed through
10143 shared library trampolines if stepping at the machine
10144 instruction level.
10145
10146 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10147
10148 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10149 too.
10150
10151 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10152
10153 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10154 (sh_stub_unwind_sniffer): New functions.
10155 (sh_stub_unwind): New variable.
10156 (sh_gdbarch_init): Wire everything.
10157
10158 2012-02-27 Pedro Alves <palves@redhat.com>
10159
10160 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10161 (linux_nat_post_attach_wait): Adjust to use
10162 linux_proc_pid_is_stopped.
10163 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10164 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10165 based on pid_is_stopped from both linux-nat.c and
10166 gdbserver/linux-low.c, and renamed.
10167
10168 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10169
10170 * remote.c (remote_watchpoint_addr_within_range): New function.
10171 (init_remote_ops): Use it.
10172
10173 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10174
10175 * target.h (target_watchpoint_addr_within_range): Document macro.
10176
10177 2012-02-24 Pedro Alves <palves@redhat.com>
10178
10179 * stack.c (set_last_displayed_sal): Issue internal_error instead
10180 of warning, and issue it after clearing the last displayed sal.
10181
10182 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10183 Pedro Alves <palves@redhat.com>
10184
10185 * breakpoint.c (until_break_command): Install breakpoints after
10186 all frame manipulations.
10187
10188 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10189
10190 * remote.c (remote_supports_cond_breakpoints): New forward
10191 declaration.
10192 (remote_add_target_side_condition): New function.
10193 (remote_insert_breakpoint): Add target-side breakpoint
10194 conditional if supported.
10195 (remote_insert_hw_breakpoint): Likewise.
10196 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10197 hook.
10198
10199 * target.c (update_current_target): Inherit
10200 to_supports_evaluation_of_breakpoint_conditions.
10201 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10202
10203 * target.h (struct target_ops)
10204 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10205 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10206
10207 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10208 (condition_evaluation_both, condition_evaluation_auto,
10209 condition_evaluation_host, condition_evaluation_target,
10210 condition_evaluation_enums, condition_evaluation_mode_1,
10211 condition_evaluation_mode): New static globals.
10212 (translate_condition_evaluation_mode): New function.
10213 (breakpoint_condition_evaluation_mode): New function.
10214 (gdb_evaluates_breakpoint_condition_p): New function.
10215 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10216 (mark_breakpoint_modified): New function.
10217 (mark_breakpoint_location_modified): New function.
10218 (set_condition_evaluation_mode): New function.
10219 (show_condition_evaluation_mode): New function.
10220 (bp_location_compare_addrs): New function.
10221 (get_first_location_gte_addr): New helper function.
10222 (set_breakpoint_condition): Free condition bytecode if locations
10223 has become unconditional. Call mark_breakpoint_modified (...).
10224 (condition_command): Call update_global_location_list (1) for
10225 breakpoints.
10226 (breakpoint_xfer_memory): Use is_breakpoint (...).
10227 (is_breakpoint): New function.
10228 (parse_cond_to_aexpr): New function.
10229 (build_target_condition_list): New function.
10230 (insert_bp_location): Handle target-side conditional
10231 breakpoints and call build_target_condition_list (...).
10232 (update_inserted_breakpoint_locations): New function.
10233 (insert_breakpoint_locations): Handle target-side conditional
10234 breakpoints.
10235 (bpstat_check_breakpoint_conditions): Add comment.
10236 (bp_condition_evaluator): New function.
10237 (bp_location_condition_evaluator): New function.
10238 (print_breakpoint_location): Print information on where the condition
10239 will be evaluated.
10240 (print_one_breakpoint_location): Likewise.
10241 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10242 breakpoint location.
10243 (force_breakpoint_reinsertion): New functions.
10244 (update_global_location_list): Handle target-side breakpoint
10245 conditions.
10246 Reinsert locations that are already inserted if conditions have
10247 changed.
10248 (bp_location_dtor): Free agent expression bytecode.
10249 (disable_breakpoint): Call mark_breakpoint_modified (...).
10250 Call update_global_location_list (...) with parameter 1 for breakpoints.
10251 (disable_command): Call mark_breakpoint_location_modified (...).
10252 Call update_global_location_list (...) with parameter 1 for breakpoints.
10253 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10254 (enable_command): mark_breakpoint_location_modified (...).
10255 (_initialize_breakpoint): Update documentation and add
10256 condition-evaluation breakpoint subcommand.
10257
10258 * breakpoint.h: Include ax.h.
10259 (condition_list): New data structure.
10260 (condition_status): New enum.
10261 (bp_target_info) <cond_list>: New field.
10262 (bp_location) <condition_changed, cond_bytecode>: New fields.
10263 (is_breakpoint): New prototype.
10264
10265 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10266
10267 * remote.c (remote_state) <cond_breakpoints>: New field.
10268 (PACKET_ConditionalBreakpoints): New enum.
10269 (remote_cond_breakpoint_feature): New function.
10270 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10271 (remote_supports_cond_breakpoints): New function.
10272 (_initialize_remote): Add new packet configuration for
10273 target-side conditional breakpoints.
10274
10275 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10276
10277 * NEWS: Mention target-side conditional breakpoint support,
10278 new condition-evaluation breakpoint subcommand and remote
10279 packet extensions.
10280
10281 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10282
10283 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10284 number.
10285
10286 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10287
10288 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10289 (after_prologue): Remove.
10290
10291 2012-02-23 Tom Tromey <tromey@redhat.com>
10292
10293 * jv-valprint.c (java_val_print): Remove dead code.
10294
10295 2012-02-23 Tristan Gingold <gingold@adacore.com>
10296
10297 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10298 known_tasks_element and known_tasks_length fields.
10299 (read_known_tasks_array): Change argument type. Use pointer type
10300 and number of elements from DATA. Adjust.
10301 (read_known_tasks_list): Likewise.
10302 (get_known_tasks_addr): Remove.
10303 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10304 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10305 type and array length. Merge former get_known_tasks_addr code.
10306
10307 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10308
10309 PR backtrace/13716
10310 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10311 it after set_momentary_breakpoint.
10312
10313 2012-02-22 Sterling Augustine <saugustine@google.com>
10314
10315 PR 13689:
10316 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10317
10318 2012-02-22 Gary Benson <gbenson@redhat.com>
10319
10320 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10321 (find_slot_in_mapped_hash): Likewise.
10322
10323 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10324
10325 PR build/13638
10326 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10327 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10328 * configure: Regenerate.
10329
10330 2012-02-21 Tristan Gingold <gingold@adacore.com>
10331 Pedro Alves <palves@redhat.com>
10332
10333 * ia64-tdep.c: Do not include libunwind-ia64.h.
10334 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10335 Include libunwind-ia64.h instead of libunwind.h.
10336 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10337 for libunwind.h existence.
10338 * configure, config.in: Regenerate.
10339
10340 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10341
10342 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10343 instead of value_rtti_target_type.
10344 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10345 instead of value_rtti_target_type.
10346 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10347 value_rtti_target_type.
10348 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10349 (value_rtti_target_type): Rename to ...
10350 (value_rtti_indirect_type): ... here and make it indirect. Update
10351 function comment.
10352 * value.c (readjust_indirect_value_type): New function.
10353 (coerce_ref): Support for enclosing type setting for references
10354 with readjust_indirect_value_type.
10355 * value.h (readjust_value_type): New declaration.
10356 (value_rtti_target_type): Rename to ...
10357 (value_rtti_indirect_type): ... here.
10358
10359 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10360
10361 * MAINTAINERS (Write After Approval): Add myself to the list.
10362
10363 2012-02-20 Doug Evans <dje@google.com>
10364
10365 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10366 Rename objfile_p_char parameter to objfilep.
10367 (build_objfile_section_table): Result is now void. All callers
10368 updated.
10369 * objfiles.h (struct objfile): Tweak comments, whitespace.
10370 (build_objfile_section_table): Update.
10371
10372 * elfread.c (elf_symfile_segments): Fix warning text.
10373
10374 2012-02-20 Tom Tromey <tromey@redhat.com>
10375
10376 PR gdb/13498:
10377 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10378 particular set of file names once.
10379 (dw2_map_symbol_filenames): Likewise.
10380
10381 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10382
10383 Code cleanup.
10384 * main.c (write_files): Remove the declaration.
10385 (external_editor_command): Move the declaration ...
10386 [GDBTK] (external_editor_command): ... here. Fix the comment.
10387
10388 2012-02-20 Tom Tromey <tromey@redhat.com>
10389
10390 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10391 extraneous block.
10392
10393 2012-02-20 Tristan Gingold <gingold@adacore.com>
10394
10395 * darwin-nat.h (enum darwin_msg_state): Add comments.
10396
10397 2012-02-20 Tristan Gingold <gingold@adacore.com>
10398
10399 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10400 value.
10401
10402 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10403
10404 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10405 between function description and implementation.
10406
10407 2012-02-17 Tom Tromey <tromey@redhat.com>
10408
10409 PR python/12070:
10410 * python/py-event.c (event_object_getset): New global.
10411 (event_object_type): Reference it.
10412 * python/py-type.c (field_object_getset): New global.
10413 (field_object_type): Reference it.
10414 * python/python-internal.h (gdb_py_generic_dict): Declare.
10415 * python/py-utils.c (gdb_py_generic_dict): New function.
10416
10417 2012-02-17 Tristan Gingold <gingold@adacore.com>
10418
10419 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10420
10421 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10422
10423 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10424 TYPE_CALLING_CONVENTION annotation.
10425
10426 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10427
10428 * MAINTAINERS: Add rx to target ISA section.
10429 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10430 (ALLDEPFILES): Add rx-tdep.c.
10431
10432 2012-02-16 Tom Tromey <tromey@redhat.com>
10433
10434 * symfile.c (symbol_file_add_main_1): Use inferior's
10435 symfile_flags.
10436 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10437 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10438 inferior.
10439 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10440 inferior.
10441 (follow_exec): Use inferior's symfile_flags.
10442 * inferior.h (struct inferior) <symfile_flags>: New field.
10443
10444 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10445
10446 PR gdb/9734:
10447 * remote-sim.c (gdbsim_create_inferior): Call error() when
10448 sim_create_inferior() fails.
10449
10450 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10451
10452 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10453
10454 2012-02-16 Tom Tromey <tromey@redhat.com>
10455
10456 PR c++/13653:
10457 * thread.c (struct current_thread_cleanup) <was_removable>: New
10458 field.
10459 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10460 (make_cleanup_restore_current_thread): Initialize new field.
10461
10462 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10463
10464 * MAINTAINERS: Add rl78 to target ISA section.
10465 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10466 (ALLDEPFILES): Add rl78-tdep.c.
10467 * NEWS: Mention rl78 as a new target.
10468
10469 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10470
10471 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10472 data.
10473 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10474
10475 2012-02-15 Tom Tromey <tromey@redhat.com>
10476
10477 PR gdb/12659:
10478 * infcmd.c (registers_info): Print just the current register's
10479 name.
10480
10481 2012-02-15 Tom Tromey <tromey@redhat.com>
10482
10483 * python/py-symbol.c (sympy_value): Use _().
10484
10485 2012-02-15 Pedro Alves <palves@redhat.com>
10486
10487 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10488 output to be like native targets'.
10489 (remote_pid_to_str): Special case the null ptid.
10490
10491 2012-02-14 Stan Shebs <stan@codesourcery.com>
10492
10493 * NEWS: Mention enable count command.
10494 * breakpoint.h (struct breakpoint): New field enable_count.
10495 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10496 (enable_breakpoint): Add arg to call.
10497 (struct disp_data): New struct.
10498 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10499 (do_map_enable_once_breakpoint): Create a struct and pass it.
10500 (do_map_enable_delete_breakpoint): Ditto.
10501 (do_map_enable_count_breakpoint): New function.
10502 (enable_count_command): New function.
10503 (bpstat_stop_status): Decrement enable_count.
10504 (print_one_breakpoint_location): Report enable count.
10505 (_initialize_breakpoint): Add enable count command.
10506
10507 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10508
10509 * rl78-tdep.c (reggroups.h): Include.
10510 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10511 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10512 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10513 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10514 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10515 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10516 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10517 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10518 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10519 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10520 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10521 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10522 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10523 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10524 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10525 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10526 beginning of register list.
10527 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10528 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10529 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10530 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10531 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10532 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10533 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10534 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10535 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10536 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10537 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10538 the pseudo registers. Rearrange other pseudo registers too so
10539 that the bank registers appear at the end.
10540 (rl78_register_type): Account for the fact that the byte sized
10541 bank registers are now pseudo-registers.
10542 (rl78_register_name): Rearrange the register name array. Make
10543 initial set of raw banked registers inaccessible.
10544 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10545 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10546 case for copying bytes back and forth between raw and pseudo
10547 versions of the banked registers. Update other cases to reflect
10548 the changed names.
10549 (rl78_return_value): Update to account for changed names of
10550 raw registers.
10551 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10552 rl78_register_sim_regno().
10553
10554 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10555
10556 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10557 the name parameter being passed to find_pc_partial_function().
10558
10559 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10560
10561 * MAINTAINERS: Step down from being ia64 target maintainer.
10562
10563 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10564
10565 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10566 compilation warning.
10567
10568 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10569
10570 Fix crash on loaded shlibs without loaded exec_bfd.
10571 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10572 (set_section_command): Replace exec_bfd by p->bfd.
10573
10574 2012-02-10 Tom Tromey <tromey@redhat.com>
10575
10576 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10577 when we have a C++ qualified name.
10578
10579 2012-02-10 Pedro Alves <palves@redhat.com>
10580
10581 * inferior.c (inferior_pid_to_str): New.
10582 (print_inferior, inferior_command): Use it.
10583
10584 2012-02-10 Pedro Alves <palves@redhat.com>
10585
10586 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10587 the test CFLAGS.
10588 * configure: Regenerate.
10589
10590 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10591
10592 * linespec.c (decode_line_internal): Fix comment correctness.
10593
10594 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10595
10596 PR gdb/12953
10597 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10598 * amd64bsd-nat.c: Add support for debug registers (adapted from
10599 i386bsd-nat.c).
10600 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10601 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10602 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10603 (amd64bsd_dr_get_control): New functions.
10604 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10605 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10606 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10607 watchpoints initialization.
10608 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10609
10610 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10613 flds_bnds.fields.
10614 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10615
10616 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10617
10618 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10619
10620 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10621
10622 * language.h (symbol_name_cmp_ftype): Renames
10623 symbol_name_match_p_ftype.
10624 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10625 la_get_symbol_name_match_p.
10626 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10627 ada_get_symbol_name_match_p. Update comment.
10628 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10629 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10630 Renames symbol_name_match_p. Update field type.
10631 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10632 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10633 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10634 "la_get_symbol_name_cmp" in comments.
10635 * language.c: Likewise.
10636
10637 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10638
10639 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10640 %eflags offset.
10641 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10642 (amd64_sol2_gregset32_reg_offs): Likewise.
10643
10644 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10645
10646 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10647 of the returned BFD is allocated by GDB.
10648
10649 2012-02-07 Tom Tromey <tromey@redhat.com>
10650
10651 PR python/12027:
10652 * python/python-internal.h (frame_object_type): Declare.
10653 * python/py-symbol.c (sympy_needs_frame): New function.
10654 (sympy_value): New function.
10655 (symbol_object_getset): Add "needs_frame".
10656 (symbol_object_methods): Add "value".
10657 * python/py-frame.c (frame_object_type): No longer static.
10658
10659 2012-02-07 Tom Tromey <tromey@redhat.com>
10660
10661 PR python/13599:
10662 * python/py-symbol.c (sympy_line): New function.
10663 (symbol_object_getset): Add "line".
10664
10665 2012-02-07 Tom Tromey <tromey@redhat.com>
10666
10667 * charset.c (find_charset_names): Check 'in' against NULL.
10668
10669 2012-02-06 Doug Evans <dje@google.com>
10670
10671 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10672 and fields.name members from char * to const char *. All uses updated.
10673 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10674 from char * to const char *. All uses updated.
10675 (type_name_no_tag): Update.
10676 (lookup_unsigned_typename, lookup_signed_typename): Update.
10677 * gdbtypes.c (type_name_no_tag): Change result type
10678 from char * to const char *. All callers updated.
10679 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10680 name parameter from char * to const char *.
10681 * symtab.h (struct cplus_specific): Change type of demangled_name
10682 member from char * to const char *. All uses updated.
10683 (struct general_symbol_info): Change type of name and
10684 mangled_lang.demangled_name members from char * to const char *.
10685 All uses updated.
10686 (symbol_get_demangled_name, symbol_natural_name): Update.
10687 (symbol_demangled_name, symbol_search_name): Update.
10688 * symtab.c (symbol_get_demangled_name): Change result type
10689 from char * to const char *. All callers updated.
10690 (symbol_natural_name, symbol_demangled_name): Ditto.
10691 (symbol_search_name): Ditto.
10692 (completion_list_add_name): Change type of symname,sym_text,
10693 text,word parameters from char * to const char *.
10694 (completion_list_objc_symbol): Change type of sym_text,
10695 text,word parameters from char * to const char *.
10696 * ada-lang.c (find_struct_field): Change type of name parameter
10697 from char * to const char *.
10698 (encoded_ordered_before): Similarly for N0,N1 parameters.
10699 (old_renaming_is_invisible): Similarly for function_name parameter.
10700 (ada_type_name): Change result type from char * to const char *.
10701 All callers updated.
10702 * ada-lang.h (ada_type_name): Update.
10703 * buildsym.c (hashname): Change type of name parameter
10704 from char * to const char *.
10705 * buildsym.h (hashname): Update.
10706 * dbxread.c (end_psymtab): Change type of include_list parameter
10707 from char ** to const char **.
10708 * dwarf2read.c (determine_prefix): Change result type
10709 from char * to const char *. All callers updated.
10710 * f-lang.c (find_common_for_function): Change type of name, funcname
10711 parameters from char * to const char *.
10712 * f-lang.c (find_common_for_function): Update.
10713 * f-valprint.c (list_all_visible_commons): Change type of funcname
10714 parameters from char * to const char *.
10715 * gdbarch.sh (static_transform_name): Change type of name parameter
10716 and result from char * to const char *.
10717 * gdbarch.c: Regenerate.
10718 * gdbarch.h: Regenerate.
10719 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10720 of name parameter from char * to const char *.
10721 * jv-lang.c (java_primitive_type_from_name): Ditto.
10722 (java_demangled_signature_length): Similarly for signature parameter.
10723 (java_demangled_signature_copy): Ditto.
10724 (java_demangle_type_signature): Ditto.
10725 * jv-lang.h (java_primitive_type_from_name): Update.
10726 (java_demangle_type_signature): Update.
10727 * objc-lang.c (specialcmp): Change type of a,b parameters
10728 from char * to const char *.
10729 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10730 from char * to const char *. All callers updated.
10731 * p-lang.h (is_pascal_string_type): Update.
10732 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10733 of name parameter from char * to const char *.
10734 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10735 * utils.c (fprintf_symbol_filtered): Ditto.
10736 * defs.h (fprintf_symbol_filtered): Update.
10737 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10738 * stabsread.h (end_psymtab): Update.
10739 * stack.c (find_frame_funname): Change type of funname parameter
10740 from char ** to const char **.
10741 * stack.h (find_frame_funname): Update.
10742 * typeprint.c (type_print): Change type of varstring parameter
10743 from char * to const char *.
10744 * value.h (type_print): Update.
10745 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10746 from char * to const char *. All callers updated.
10747 (xcoff_end_psymtab): Change type of include_list parameter
10748 from char ** to const char **. All callers updated.
10749 (swap_sym): Similarly for name parameter. All callers updated.
10750 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10751 Use xstrdup.
10752 (process_coff_symbol): Use xstrdup.
10753 * stabsread.c (stabs_method_name_from_physname): Renamed from
10754 update_method_name_from_physname. Change result type from void
10755 to char *. All callers updated.
10756 (read_member_functions): In has_destructor case, store name in objfile
10757 obstack instead of malloc space. In !has_stub case, fix mem leak.
10758
10759 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10760
10761 * configure: Rebuild.
10762 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10763 LDFLAGS.
10764
10765 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10766
10767 * configure.tgt (rl78-*-elf): New target.
10768 * rl78-tdep.c: New file.
10769
10770 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10771
10772 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10773 and continue the loop. Add QUIT statement.
10774
10775 2012-02-03 Tom Tromey <tromey@redhat.com>
10776
10777 PR gdb/13596:
10778 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10779 bfd_lookup_symbol_from_symtab.
10780 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10781 gdb_bfd_lookup_symbol_from_symtab.
10782
10783 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10784
10785 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10786 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10787 symbol. Add assertion that sym2 is never NULL.
10788
10789 2012-02-02 Doug Evans <dje@google.com>
10790
10791 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10792 "name" parameter to const char ** from char **. All callers updated.
10793 (find_pc_partial_function): Ditto.
10794 (cache_pc_function_name): Change type to const char * from char *.
10795 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10796 (find_pc_partial_function): Update.
10797 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10798 type of "name" parameter to const char * from char *.
10799 All uses updated.
10800 * arch-utils.c (generic_in_solib_return_trampoline): Change
10801 type of "name" parameter to const char * from char *.
10802 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10803 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10804 type of "name" parameter to const char * from char *.
10805 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10806 * gdbarch.c: Regenerate.
10807 * gdbarch.h: Regenerate.
10808 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10809 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10810 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10811 type of "name" parameter to const char * from char *.
10812 * skip.c (skip_function_pc): Ditto.
10813 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10814 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10815 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10816 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10817 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10818 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10819 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10820 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10821 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10822
10823 2012-02-02 Pedro Alves <palves@redhat.com>
10824
10825 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10826 the current inferior has no execution. Make sure the current
10827 remote process matches gdb's current inferior.
10828
10829 2012-02-02 Tom Tromey <tromey@redhat.com>
10830
10831 PR gdb/13405:
10832 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10833 read-only memory.
10834
10835 2012-02-02 Tom Tromey <tromey@redhat.com>
10836
10837 PR gdb/9307:
10838 * symtab.c (lookup_language_this): Set block_found.
10839
10840 2012-02-01 Tom Tromey <tromey@redhat.com>
10841
10842 PR gdb/13431:
10843 * jit.c (struct jit_inferior_data): Rewrite.
10844 (struct jit_objfile_data): New.
10845 (get_jit_objfile_data): New function.
10846 (add_objfile_entry): Update.
10847 (jit_read_descriptor): Return int. Replace descriptor_addr
10848 argument with inf_data. Update. Don't call error.
10849 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10850 descriptor here.
10851 (jit_inferior_init): Don't look up descriptor. Don't call error.
10852 (jit_reset_inferior_data_and_breakpoints)
10853 (jit_inferior_created_observer): Remove.
10854 (jit_inferior_exit_hook): Update.
10855 (jit_executable_changed_observer): Remove.
10856 (jit_event_handler): Update.
10857 (free_objfile_data): Reset inferior data if needed.
10858 (_initialize_jit): Update.
10859
10860 2012-02-01 Tom Tromey <tromey@redhat.com>
10861
10862 * jit.c (bfd_open_from_target_memory): Move higher in file.
10863
10864 2012-02-01 Tristan Gingold <gingold@adacore.com>
10865
10866 * libunwind-frame.c (libunwind_load): Display message if dlopen
10867 failed.
10868
10869 2012-02-01 Gary Benson <gbenson@redhat.com>
10870
10871 * symtab.h (symbol_found_callback_ftype): New typedef.
10872 (iterate_over_symbols): Use the above.
10873 * symtab.c (iterate_over_symbols): Likewise.
10874 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10875 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10876 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10877 (iterate_name_matcher): Document return values.
10878 (collect_one_symbol): Likewise.
10879 (collect_function_symbols): Likewise.
10880 (collect_symbols): Likewise.
10881
10882 2012-02-01 Tom Tromey <tromey@redhat.com>
10883
10884 * ada-lang.c (resolve_subexp): Update.
10885 (ada_lookup_symbol_list): Add 'full_search' argument.
10886 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10887 ada_lookup_symbol_list.
10888 (ada_lookup_encoded_symbol): Update.
10889 (get_var_value): Update.
10890 * ada-exp.y (block_lookup): Update.
10891 (write_var_or_type): Update.
10892 (write_name_assoc): Update.
10893 * ada-lang.h (ada_lookup_symbol_list): Update.
10894
10895 2012-01-31 Tom Tromey <tromey@redhat.com>
10896
10897 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10898 comment.
10899
10900 2012-01-31 Doug Evans <dje@google.com>
10901
10902 * symtab.h: Remove outdated comment.
10903 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10904
10905 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10906
10907 Fix build error in Darwin port.
10908 * i386-darwin-nat.c: Include i386-nat.h.
10909
10910 2012-01-30 Tom Tromey <tromey@redhat.com>
10911
10912 PR breakpoints/13568:
10913 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10914 argument. Check for recursive includes.
10915 (dwarf_decode_macros): Create an include hash.
10916
10917 2012-01-30 Michael Eager <eager@eagercon.com>
10918
10919 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10920 * ppc-linux-tdep.c: Include glibc-tdep.h.
10921 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10922 (powerpc_linux_in_plt_stub): New function.
10923 (powerpc_linux_in_dynsym_resolve_code): New function.
10924 (ppc_skip_trampoline_code): New function.
10925 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10926 Use glibc_skip_solib_resolver.
10927
10928 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10929
10930 Code cleanup: Make 1440 bytes of data segment read-only.
10931 * arch-utils.c (endian_enum): Make it const char *const [].
10932 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10933 Likewise.
10934 * breakpoint.c (always_inserted_enums): Likewise.
10935 * cli/cli-cmds.c (script_ext_enums): Likewise.
10936 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10937 enumlist parameter const char *const *.
10938 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10939 const char *const *.
10940 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10941 parameter const char *const *.
10942 * cris-tdep.c (cris_modes): Make it const char *const [].
10943 * filesystem.c (target_file_system_kinds): Likewise.
10944 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10945 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10946 (can_use_displaced_stepping_enum, scheduler_enums)
10947 (exec_direction_names): Likewise.
10948 * language.c (_initialize_language): Make the type_or_range_names and
10949 case_sensitive_names variables const char *const [].
10950 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10951 * python/python.c (python_excp_enums): Likewise.
10952 * remote.c (interrupt_sequence_modes): Likewise.
10953 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10954 * serial.c (logbase_enums): Likewise.
10955 * sh-tdep.c (sh_cc_enum): Likewise.
10956 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10957 Likewise.
10958 * symtab.c (multiple_symbols_modes): Likewise.
10959 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10960 Likewise.
10961 * utils.c (internal_problem_modes): Likewise.
10962
10963 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10964
10965 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10966 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10967 result.
10968
10969 2012-01-27 Doug Evans <dje@google.com>
10970
10971 * configure.ac (with_python): Fix absolute path handling for win32.
10972 * configure: Regenerate.
10973
10974 2012-01-26 Doug Evans <dje@google.com>
10975
10976 * symtab.c: Whitespace cleanup, no code changes.
10977
10978 * symtab.c (lookup_symbol_in_language): Improve comment.
10979 (lookup_symbol_aux): Fix comment.
10980
10981 * psymtab.c (add_psymbol_to_list): Result is now "void".
10982 * psympriv.h (add_psymbol_to_list): Update.
10983
10984 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10985
10986 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10987
10988 Do not open script filenames twice.
10989 * cli/cli-cmds.c (source_script_from_stream): Pass to
10990 source_python_script also STREAM.
10991 * python/py-auto-load.c (source_section_scripts): Pass to
10992 source_python_script_for_objfile also STREAM.
10993 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10994 also INPUT.
10995 * python/python-internal.h (source_python_script_for_objfile): New
10996 parameter file, rename parameter file to filename.
10997 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10998 instead if !_WIN32. Update the function comment.
10999 (source_python_script, source_python_script_for_objfile)
11000 (source_python_script): New parameter file, rename parameter file to
11001 filename. Pass FILENAME to python_run_simple_file.
11002 * python/python.h (source_python_script): New parameter file, rename
11003 parameter file to filename.
11004
11005 2012-01-26 Pedro Alves <palves@redhat.com>
11006
11007 * corelow.c (core_has_fake_pid): Delete.
11008 (core_close): Delete references to `core_has_fake_pid'.
11009 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11010 (core_open): Delete references to `core_has_fake_pid'.
11011 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11012 the removed global.
11013
11014 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11015
11016 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11017 Remove language parameter from name_matcher. Adjust the comment.
11018 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11019 Remove language parameter.
11020 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11021 * linespec.c (iterate_name_matcher): Likewise.
11022 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11023 name_matcher. Adjust call accordingly.
11024 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11025 (maintenance_check_symtabs): Adjust type of parameter "fun".
11026 * psymtab.h (maintenance_check_symtabs): Likewise.
11027
11028 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11029
11030 * language.h (symbol_name_match_p_ftype): New typedef.
11031 (struct language_defn): Replace field la_symbol_name_compare
11032 by la_get_symbol_name_match_p.
11033 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11034 (ada_language_defn): Use it.
11035 * linespec.c (struct symbol_matcher_data): New type.
11036 (iterate_name_matcher): Rewrite.
11037 (iterate_over_all_matching_symtabs): Pass a pointer to
11038 a symbol_matcher_data struct to expand_symtabs_matching
11039 instead of just the lookup name.
11040 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11041 opencl-lang.c, p-lang.c, language.c: Delete field
11042 la_symbol_name_compare, and replace by NULL for new field
11043 la_get_symbol_name_match_p.
11044 * symfile.h (struct quick_symbol_functions): Update comment.
11045
11046 2012-01-25 Tom Tromey <tromey@redhat.com>
11047
11048 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11049 dereferencing.
11050
11051 2012-01-24 Tom Tromey <tromey@redhat.com>
11052
11053 PR symtab/12406:
11054 * solib.c (update_solib_list): Update the program space's
11055 added_solibs and deleted_solibs fields.
11056 * progspace.h (struct program_space) <added_solibs,
11057 deleted_solibs>: New fields.
11058 (clear_program_space_solib_cache): Declare.
11059 * progspace.c (release_program_space): Call
11060 clear_program_space_solib_cache.
11061 (clear_program_space_solib_cache): New function.
11062 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11063 bpstat_stop_status. Use handle_solib_event.
11064 * breakpoint.c: Include gdb_regex.h.
11065 (print_solib_event): New function.
11066 (bpstat_print): Use print_solib_event.
11067 (bpstat_stop_status): Add special case for bp_shlib_event.
11068 (handle_solib_event): New function.
11069 (bpstat_what): Use handle_solib_event.
11070 (struct solib_catchpoint): New.
11071 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11072 (breakpoint_hit_catch_solib, check_status_catch_solib)
11073 (print_it_catch_solib, print_one_catch_solib)
11074 (print_mention_catch_solib, print_recreate_catch_solib): New
11075 functions.
11076 (catch_solib_breakpoint_ops): New global.
11077 (catch_load_or_unload, catch_load_command_1)
11078 (catch_unload_command_1): New functions.
11079 (internal_bkpt_check_status): Add special case for
11080 bp_shlib_event.
11081 (internal_bkpt_print_it): Use print_solib_event.
11082 (initialize_breakpoint_ops): Initialize
11083 catch_solib_breakpoint_ops.
11084 (_initialize_breakpoint): Register "catch load" and "catch
11085 unload".
11086 * breakpoint.h (handle_solib_event): Declare.
11087 * NEWS: Add entry for "catch load" and "catch unload".
11088
11089 2012-01-24 Tom Tromey <tromey@redhat.com>
11090
11091 * ada-lang.c: Include gdb_vecs.h.
11092 * charset.c: Include gdb_vecs.h.
11093 * tracepoint.h: Include gdb_vecs.h.
11094 * gdb_vecs.h: New file.
11095
11096 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11097
11098 * breakpoint.c (breakpoint_hit_catch_fork)
11099 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11100 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11101 * infrun.c (inferior_has_forked, inferior_has_vforked)
11102 (inferior_has_execd, inferior_has_called_syscall): Delete.
11103 (handle_syscall_event): Get syscall_number from the execution
11104 control state's wait status.
11105 (wait_for_inferior): Don't clear syscall_number.
11106
11107 2012-01-24 Pedro Alves <palves@redhat.com>
11108
11109 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11110 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11111 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11112 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11113 `ws' parameter.
11114 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11115 false for events other than TARGET_SIGNAL_TRAP.
11116 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11117 Add `ws' parameter.
11118 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11119 events other than TARGET_SIGNAL_TRAP.
11120 (tracepoint_breakpoint_hit): Add `ws' parameter.
11121 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11122 parameter.
11123 (bpstat_stop_status): Same.
11124 (pc_at_non_inline_function): Same.
11125 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11126 to pass the current event's waitstatus to bpstat_stop_status
11127 and pc_at_non_inline_function.
11128
11129 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11130
11131 Code cleanup.
11132 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11133 Update the function comment for it.
11134 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11135 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11136 for STREAM.
11137
11138 2012-01-24 Pedro Alves <palves@redhat.com>
11139
11140 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11141 outside `bs->stop' block.
11142 (bpstat_what): Rework bp_shlib_event handling.
11143 (internal_bkpt_check_status): If the breakpoint is a
11144 bp_shlib_event, then set bs->stop and bs->print if
11145 stop_on_solib_events is set.
11146
11147 2012-01-24 Gary Benson <gbenson@redhat.com>
11148
11149 Delete #if 0'd out code.
11150 * stack.c (print_frame_label_vars): Remove.
11151 (catch_info): Likewise.
11152 (_initialize_stack): Remove "info catch" command.
11153 * NEWS: Mention the above.
11154
11155 2012-01-24 Pedro Alves <palves@redhat.com>
11156
11157 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11158 it.
11159 (remote_notice_new_inferior): If the remote end doesn't support
11160 the multiprocess extensions, then the PID is fake.
11161 (add_current_inferior_and_thread): New.
11162 (remote_start_remote): Use it.
11163 (extended_remote_attach_1): Adjust.
11164 (extended_remote_create_inferior_1): Use
11165 add_current_inferior_and_thread.
11166
11167 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11168
11169 Fix watchpoints to be specific for each inferior.
11170 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11171 current_program_space.
11172 * i386-nat.c (i386_inferior_data_cleanup): New.
11173 (i386_inferior_data_get): Replace variable inf_data_local by an
11174 inferior_data call.
11175 (i386_use_watchpoints): Initialize i386_inferior_data.
11176 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11177 specific iterate_over_lwps.
11178
11179 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 Fix watchpoints across inferior fork.
11182 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11183 comment for linux_nat_iterate_watchpoint_lwps.
11184 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11185 linux_nat_iterate_watchpoint_lwps.
11186 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11187 * i386-linux-nat.c (update_debug_registers_callback): Update the
11188 comment for linux_nat_iterate_watchpoint_lwps.
11189 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11190 linux_nat_iterate_watchpoint_lwps.
11191 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11192 * i386-nat.c: Include inferior.h.
11193 (dr_mirror): Remove.
11194 (i386_inferior_data, struct i386_inferior_data)
11195 (i386_inferior_data_get): New.
11196 (i386_debug_reg_state): Use i386_inferior_data_get.
11197 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11198 (i386_insert_watchpoint, i386_remove_watchpoint)
11199 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11200 (i386_remove_hw_breakpoint): New variable state, use
11201 i386_debug_reg_state instead of DR_MIRROR.
11202 * linux-nat.c (delete_lwp): New declaration.
11203 (num_lwps): Move here from downwards.
11204 (delete_lwp_cleanup): New.
11205 (linux_child_follow_fork): Create new child_lp, call
11206 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11207 PTRACE_DETACH.
11208 (num_lwps): Move upwards.
11209 (linux_nat_iterate_watchpoint_lwps): New.
11210 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11211 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11212
11213 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11214
11215 GDB 7.4 released.
11216
11217 2012-01-23 Pedro Alves <palves@redhat.com>
11218
11219 * top.c (caution): Rename to ...
11220 (confirm): ... this.
11221 (show_caution): Rename to ...
11222 (show_confirm): ... this.
11223 (quit_cover): Adjust.
11224 (init_main): Adjust.
11225 * top.h (caution): Rename to ...
11226 (confirm): ... this.
11227 * utils.c (internal_vproblem, defaulted_query): Adjust.
11228
11229 2012-01-23 Pedro Alves <palves@redhat.com>
11230
11231 * top.c (caution): Update comment.
11232 (execute_command): Don't consider the current value of `caution'.
11233
11234 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11235
11236 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11237
11238 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11239
11240 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11241 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11242 * target.c (target_fileio_pwrite): Remove buffer address from
11243 debug output.
11244 (target_fileio_pread): Likewise.
11245
11246 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11247
11248 * NEWS: Document remote "info proc" and "generate-core-file".
11249
11250 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11251
11252 * gdbarch.sh (find_memory_regions): New callback.
11253 * gdbarch.c, gdbarch.h: Regenerate.
11254
11255 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11256 callback before falling back to target method.
11257
11258 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11259 (linux_target_install_ops): No longer install it.
11260
11261 * linux-tdep.c (linux_find_memory_regions): New function.
11262 (linux_init_abi): Install it.
11263
11264 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11265
11266 * gdbarch.sh (make_corefile_notes): New architecture callback.
11267 * gdbarch.c: Regenerate.
11268 * gdbarch.h: Likewise.
11269
11270 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11271 before target_make_corefile_notes. If NULL is returned, the
11272 target does not support core file generation.
11273
11274 * linux-nat.c: Include "linux-tdep.h".
11275 (find_signalled_thread, find_stop_signal): Remove.
11276 (linux_nat_do_thread_registers): Likewise.
11277 (struct linux_nat_corefile_thread_data): Likewise.
11278 (linux_nat_corefile_thread_callback): Likewise.
11279 (iterate_over_spus): Likewise.
11280 (struct linux_spu_corefile_data): Likewise.
11281 (linux_spu_corefile_callback): Likewise.
11282 (linux_spu_make_corefile_notes): Likewise.
11283 (linux_nat_collect_thread_registers): New function.
11284 (linux_nat_make_corefile_notes): Replace contents by call to
11285 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11286 as native-only callback.
11287
11288 * linux-tdep.h: Include "bfd.h".
11289 (struct regcache): Add forward declaration.
11290 (linux_collect_thread_registers_ftype): New typedef.
11291 (linux_make_corefile_notes): Add prototype.
11292 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11293 "regset.h", and "elf-bfd.h".
11294 (find_signalled_thread, find_stop_signal): New functions.
11295 (linux_spu_make_corefile_notes): Likewise.
11296 (linux_collect_thread_registers): Likewise.
11297 (struct linux_corefile_thread_data): New data structure.
11298 (linux_corefile_thread_callback): New funcion.
11299 (linux_make_corefile_notes): Likewise.
11300 (linux_make_corefile_notes_1): Likewise.
11301 (linux_init_abi): Install it.
11302
11303 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11304
11305 * gdbarch.sh (info_proc): New callback.
11306 * gdbarch.c, gdbarch.h: Regenerate.
11307
11308 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11309 before falling back to the target info_proc callback.
11310
11311 * linux-nat.c: Do not include "cli/cli-utils.h".
11312 (linux_nat_info_proc): Remove.
11313 (linux_target_install_ops): No longer install it.
11314
11315 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11316 (read_mapping): New function.
11317 (linux_info_proc): Likewise.
11318 (linux_init_abi): Install it.
11319
11320 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11321
11322 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11323 * infcmd.c: (info_proc_cmd_1): New function.
11324 (info_proc_cmd): New function, moved here from equivalent routine
11325 orignally in linux-nat.c.
11326 (info_proc_cmd_mappings): Likewise.
11327 (info_proc_cmd_stat): Likewise.
11328 (info_proc_cmd_status): Likewise.
11329 (info_proc_cmd_cwd): Likewise.
11330 (info_proc_cmd_cmdline): Likewise.
11331 (info_proc_cmd_exe): Likewise.
11332 (info_proc_cmd_all): Likewise.
11333 (_initialize_infcmd): Install "info proc" command and subcommands.
11334
11335 * target.h (struct target_ops): Add to_info_proc.
11336 (target_info_proc): Add prototype.
11337 * target.c (target_info_proc): New function.
11338
11339 * procfs.c (procfs_info_proc): Add prototype.
11340 (info_proc_cmd): Rename into ...
11341 (procfs_info_proc): ... this. Update argument types as appropriate
11342 for a to_info_proc implementation. Handle "what" argument.
11343 (procfs_target): Install procfs_info_proc.
11344 (_initialize_procfs): No longer install "info proc" command.
11345
11346 * linux-nat.c: (enum info_proc_what): Remove.
11347 (linux_nat_info_proc_cmd_1): Rename into ...
11348 (linux_nat_info_proc): ... this. Update argument types as appropriate
11349 for a to_info_proc implementation.
11350 (linux_nat_info_proc_cmd): Remove.
11351 (linux_nat_info_proc_cmd_mappings): Likewise.
11352 (linux_nat_info_proc_cmd_stat): Likewise.
11353 (linux_nat_info_proc_cmd_status): Likewise.
11354 (linux_nat_info_proc_cmd_cwd): Likewise.
11355 (linux_nat_info_proc_cmd_cmdline): Likewise.
11356 (linux_nat_info_proc_cmd_exe): Likewise.
11357 (linux_nat_info_proc_cmd_all): Likewise.
11358 (linux_target_install_ops): Install linux_nat_info_proc.
11359 (_initialize_linux_nat): No longer install "info proc" command
11360 and subcommands.
11361
11362 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11363
11364 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11365 * config.in, configure: Regenerate.
11366
11367 * target.h (struct target_ops): Add to_fileio_readlink.
11368 (target_fileio_readlink): Add prototype.
11369 * target.c (target_fileio_readlink): New function.
11370
11371 * inf-child.c: Conditionally include <sys/param.h>.
11372 (inf_child_fileio_readlink): New function.
11373 (inf_child_target): Install it.
11374
11375 * remote.c (PACKET_vFile_readlink): New enum value.
11376 (remote_hostio_readlink): New function.
11377 (init_remote_ops): Install it.
11378 (_initialize_remote): Handle vFile:readlink packet type.
11379
11380 2012-01-20 Pedro Alves <palves@redhat.com>
11381 Ulrich Weigand <ulrich.weigand@linaro.org>
11382
11383 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11384 * config.in, configure: Regenerate.
11385
11386 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11387 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11388 (target_fileio_open): Add prototype.
11389 (target_fileio_pwrite): Likewise.
11390 (target_fileio_pread): Likewise.
11391 (target_fileio_close): Likewise.
11392 (target_fileio_unlink): Likewise.
11393 (target_fileio_read_alloc): Likewise.
11394 (target_fileio_read_stralloc): Likewise.
11395
11396 * target.c: Include "gdb/fileio.h".
11397 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11398 (default_fileio_target): New function.
11399 (target_fileio_open): Likewise.
11400 (target_fileio_pwrite): Likewise.
11401 (target_fileio_pread): Likewise.
11402 (target_fileio_close): Likewise.
11403 (target_fileio_unlink): Likewise.
11404 (target_fileio_close_cleanup): Likewise.
11405 (target_fileio_read_alloc_1): Likewise.
11406 (target_fileio_read_alloc): Likewise.
11407 (target_fileio_read_stralloc): Likewise.
11408
11409 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11410 <fcntl.h>, and <unistd.h>.
11411 (inf_child_fileio_open_flags_to_host): New function.
11412 (inf_child_errno_to_fileio_error): Likewise.
11413 (inf_child_fileio_open): Likewise.
11414 (inf_child_fileio_pwrite): Likewise.
11415 (inf_child_fileio_pread): Likewise.
11416 (inf_child_fileio_close): Likewise.
11417 (inf_child_fileio_unlink): Likewise.
11418 (inf_child_target): Install to_fileio routines.
11419
11420 * remote.c (init_remote_ops): Install to_fileio routines.
11421
11422 2012-01-20 Pedro Alves <palves@redhat.com>
11423 Ulrich Weigand <ulrich.weigand@linaro.org>
11424
11425 * remote.c (remote_multi_process_p): Only check for multi-process
11426 protocol feature, do not check for extended protocol.
11427 (remote_supports_multi_process): Check for extended protocol here.
11428 (set_general_process): Likewise.
11429 (extended_remote_kill): Likewise.
11430 (remote_pid_to_str): Likewise.
11431 (remote_query_supported): Always query multiprocess mode.
11432
11433 2012-01-20 Pedro Alves <palves@redhat.com>
11434 Ulrich Weigand <ulrich.weigand@linaro.org>
11435
11436 * inferior.h (struct inferior): Add fake_pid_p.
11437 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11438 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11439 magic_null_ptid since the remote side doesn't provide a real PID.
11440
11441 2012-01-19 Tom Tromey <tromey@redhat.com>
11442
11443 * NEWS: Combine the two Python sections.
11444
11445 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11446
11447 * target.h (target_close): Update comment on the target's unpush state.
11448
11449 2012-01-19 Pedro Alves <palves@redhat.com>
11450
11451 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11452 linux_nat_async directly instead of going through the target
11453 vector.
11454 * target.c (unpush_target): Close target after unpushing it, not
11455 before.
11456
11457 2012-01-19 Gary Benson <gbenson@redhat.com>
11458
11459 * mdebugread.c (sort_blocks): Replace integer constants with ones
11460 derived from FIRST_LOCAL_BLOCK.
11461
11462 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11463 Jan Kratochvil <jan.kratochvil@redhat.com>
11464
11465 PR gdb/9538
11466 * symfile.c (find_separate_debug_file): New function.
11467 (terminate_after_last_dir_separator): Likewise.
11468 (find_separate_debug_file_by_debuglink): Also try realpath.
11469 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11470 * configure: Regenerate.
11471 * config.in: Regenerate.
11472
11473 2012-01-18 Doug Evans <dje@google.com>
11474
11475 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11476 (main.o): Remove rule.
11477 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11478 (--with-sysroot): Rewrite.
11479 * configure: Regenerate.
11480 * config.in: Regenerate.
11481
11482 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11483
11484 * parse.c (initialize_expout): New function.
11485 (reallocate_expout): Likewise.
11486 (parse_exp_in_context): Use `initialize_expout' and
11487 `reallocate_expout' when appropriate.
11488
11489 2012-01-18 Pedro Alves <palves@redhat.com>
11490
11491 * record.c (struct record_breakpoint, record_breakpoint_p)
11492 (record_breakpoints): New.
11493 (record_insert_breakpoint, record_remove_breakpoint): Manage
11494 record breakpoints list. Only remove breakpoints from the
11495 inferior if they had been inserted there in the first place.
11496
11497 2012-01-17 Doug Evans <dje@google.com>
11498
11499 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11500 if we know we don't have a file name to look for.
11501
11502 2012-01-17 Pedro Alves <palves@redhat.com>
11503
11504 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11505 the frame's stop reason is UNWIND_UNAVAILABLE.
11506
11507 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11508
11509 Fix compilation error.
11510 * m2-exp.y (yyerror): Use ANSI C prototype.
11511
11512 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11513
11514 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11515 (growbuf_by_size): Likewise.
11516 (yyerror): Likewise.
11517 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11518 (modblock): Remove variable (was #if 0'ed).
11519 (parse_number): Convert prototype from K&R to ANSI C.
11520 (yyerror): Likewise.
11521 * objc-exp.y (parse_number): Likewise.
11522 (yyerror): Likewise.
11523 (yylex): Remove #if 0'ed code.
11524 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11525 (yyerror): Likewise.
11526
11527 2012-01-16 Tom Tromey <tromey@redhat.com>
11528
11529 * NEWS: Add item.
11530 * symtab.h (compare_filenames_for_search): Declare.
11531 * symtab.c (compare_filenames_for_search): New function.
11532 (iterate_over_some_symtabs): Use it.
11533 * symfile.h (struct quick_symbol_functions)
11534 <map_symtabs_matching_filename>: Change spec.
11535 * psymtab.c (partial_map_symtabs_matching_filename): Use
11536 compare_filenames_for_search. Update for new spec.
11537 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11538 compare_filenames_for_search. Update for new spec.
11539 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11540
11541 2012-01-16 Tom Tromey <tromey@redhat.com>
11542
11543 PR python/13281:
11544 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11545 (struct main_type) <flag_flag_enum>: New field.
11546 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11547 * NEWS: Add entries.
11548 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11549 enums.
11550 * python/lib/gdb/printing.py (_EnumInstance): New class.
11551 (FlagEnumerationPrinter): Likewise.
11552
11553 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11554
11555 * breakpoint.c (create_sals_from_address_default): New function.
11556 (create_breakpoints_sal_default): Likewise.
11557 (decode_linespec_default): Likewise.
11558 (is_marker_spec): Removed.
11559 (strace_marker_p): New function.
11560 (init_breakpoint_sal): Using `strace_marker_p' instead of
11561 `is_marker_spec'.
11562 (create_breakpoint): Call method `create_sals_from_address' from
11563 breakpoint_ops, replacing code that created SALs conditionally
11564 on the type of the breakpoint. Call method `create_breakpoints_sal',
11565 replacing code that created breakpoints conditionally on the type
11566 wanted.
11567 (base_breakpoint_create_sals_from_address): New function.
11568 (base_breakpoint_create_breakpoints_sal): Likewise.
11569 (base_breakpoint_decode_linespec): Likewise.
11570 (base_breakpoint_ops): Add methods
11571 `base_breakpoint_create_sals_from_address',
11572 `base_breakpoint_create_breakpoints_sal' and
11573 `base_breakpoint_decode_linespec'.
11574 (bkpt_create_sals_from_address): New function.
11575 (bkpt_create_breakpoints_sal): Likewise.
11576 (bkpt_decode_linespec): Likewise.
11577 (tracepoint_create_sals_from_address): Likewise.
11578 (tracepoint_create_breakpoints_sal): Likewise.
11579 (tracepoint_decode_linespec): Likewise.
11580 (strace_marker_create_sals_from_address): Likewise.
11581 (strace_marker_create_breakpoints_sal): Likewise.
11582 (strace_marker_decode_linespec): Likewise.
11583 (strace_marker_breakpoint_ops): New variable.
11584 (addr_string_to_sals): Remove `marker_spec'. Call method
11585 `decode_linespec' from breakpoint_ops, replacing code that decoded
11586 an address string into a SAL. Use `strace_marker_p' instead of
11587 `marker_spec'.
11588 (strace_command): Decide whether we are dealing with a static
11589 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11590 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11591 * breakpoint.h (linespec_result, linespec_sals): New forward
11592 declarations.
11593 (breakpoint_ops) <create_sals_from_address>,
11594 <create_breakpoints_sal>, <decode_linespec>: New methods.
11595
11596 2012-01-14 Doug Evans <dje@google.com>
11597
11598 * NEWS: Update text for "maint set python print-stack".
11599 It is deprecated in gdb 7.4 and deleted in 7.5.
11600
11601 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11602
11603 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11604 including curses.h.
11605
11606 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11607
11608 * configure: Regenerate.
11609 * config.in: Regenerate.
11610
11611 2012-01-12 Keith Seitz <keiths@redhat.com>
11612
11613 PR mi/10586
11614 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11615 (ANONYMOUS_UNION_NAME): Define.
11616 (is_path_expr_parent): New function.
11617 (get_path_expr_parent): New function.
11618 (is_anonymous_child): New function.
11619 (create_child_with_value): If the child is anonymous and without
11620 a name, assign an object name to it.
11621 (c_describe_child): Use get_path_expr_parent to determine
11622 the parent expression.
11623 If there field represents an anonymous struct or union and
11624 has no name, set an appropriate display name and expression.
11625 (cplus_describe_child): Likewise.
11626
11627 2012-01-12 Pedro Alves <palves@redhat.com>
11628
11629 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11630 available when %ebp is found to be zero (outermost).
11631
11632 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11633
11634 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11635 an internal gdb_static_assert.
11636 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11637
11638 2012-01-11 Tom Tromey <tromey@redhat.com>
11639
11640 PR gdb/9598:
11641 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11642 catch" and "catch throw".
11643
11644 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11645
11646 * blockframe.c (block_innermost_frame): Start search from selected
11647 frame, if present, or otherwise the current frame.
11648
11649 * c-exp.y (variable): Update innermost_block for
11650 'block COLONCOLON NAME' clause.
11651 * m2-exp.y (variable): Ditto.
11652 * objc-exp.y (variable): Ditto.
11653
11654 2012-01-10 Tom Tromey <tromey@redhat.com>
11655
11656 PR python/13199:
11657 * python/python.c (finish_python_initialization): Set sys.argv.
11658
11659 2012-01-10 Doug Evans <dje@google.com>
11660
11661 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11662 "want_line_info". All callers updated.
11663 (dwarf_decode_lines_1): New function.
11664 (handle_DW_AT_stmt_list): Add function comment.
11665 New arg "want_line_info". All callers updated.
11666 (read_file_scope,read_type_unit_scope): Move comment from
11667 handle_DW_AT_stmt_list to here.
11668
11669 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11670
11671 Fix regression after libiberty/ update for GCC PR 6057 and others.
11672 * c-exp.y (operator) <OPERATOR DELETE>
11673 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11674 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11675 (make_builtin_type, make_name): New variable i, add gdb_assert.
11676 (operator) <OPERATOR NEW>: Update ARGS to 3.
11677 (operator) <OPERATOR DELETE>: Add trailing space.
11678 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11679 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11680 * cp-support.c (cp_canonicalize_string): Check NULL from
11681 cp_comp_to_string, call warning and return.
11682
11683 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11684
11685 Fix duplicate .o files after omitting libbfd.a.
11686 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11687 (SFILES): Add corelow.c.
11688 (COMMON_OBS): Add corelow.o.
11689 (ALLDEPFILES): Remove corelow.c.
11690 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11691 * config/alpha/alpha-osf3.mh: Likewise.
11692 * config/alpha/fbsd.mh: Likewise.
11693 * config/arm/nbsdaout.mh: Likewise.
11694 * config/arm/nbsdelf.mh: Likewise.
11695 * config/i386/i386gnu.mh: Likewise.
11696 * config/ia64/hpux.mh: Likewise.
11697 * config/ia64/linux.mh: Likewise.
11698 * config/m32r/linux.mh: Likewise.
11699 * config/m68k/linux.mh: Likewise.
11700 * config/mips/irix5.mh: Likewise.
11701 * config/mips/irix6.mh: Likewise.
11702 * config/pa/hpux.mh: Likewise.
11703 * config/pa/linux.mh: Likewise.
11704 * config/powerpc/aix.mh: Likewise.
11705 * config/sparc/linux.mh: Likewise.
11706 * config/sparc/linux64.mh: Likewise.
11707 * config/sparc/sol2.mh: Likewise.
11708 * config/vax/vax.mh: Likewise.
11709 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11710 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11711 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11712 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11713 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11714 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11715 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11716 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11717 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11718 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11719 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11720 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11721 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11722 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11723 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11724 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11725 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11726 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11727 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11728 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11729 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11730 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11731 corelow.o from gdb_target_obs.
11732 * corefile.c (core_target): Update the comment on NULL value.
11733 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11734 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11735 MATCHES. Drop YUMMY set on NULL.
11736 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11737 reclaim CORE_DATA if it is already NULL.
11738
11739 2012-01-09 Doug Evans <dje@google.com>
11740
11741 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11742 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11743
11744 2012-01-09 Keith Seitz <keiths@redhat.com>
11745
11746 * breakpoint.c (wrapper.h): Don't include.
11747
11748 2012-01-09 Keith Seitz <keiths@redhat.com>
11749
11750 * Makefile.in (SFILES): Remove wrapper.c.
11751 (HFILES_NO_SRCDIR): Remove wrapper.h.
11752 (COMMON_OBS): Remove wrapper.o.
11753 * cli/cli-interp.c: Don't inlude wrapper.h.
11754 * corelow.c: Likewise.
11755 (core_open): Replace gdb_target_find_new_threads with
11756 TRY_CATCH around target_find_new_threads.
11757 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11758 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11759 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11760 evaluate_expression.
11761 (varobj_set_value): Likewise for evaluate_expression and
11762 value_assign.
11763 (install_new_variable): Likewise for value_fetch_lazy.
11764 (adjust_value_for_child_access): Likewise for value_ind.
11765 (c_describe_child): Likewise for value_subscript and
11766 value_ind.
11767 (c_value_of_root): Likewise for evaluate_expression.
11768 * wrapper.c: Remove.
11769 * wrapper.h: Remove.
11770
11771 2012-01-09 Doug Evans <dje@google.com>
11772
11773 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11774 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11775 "abfd" args with "section". All callers updated.
11776 Error checking code moved ...
11777 (error_check_comp_unit_head): ... here. New function.
11778 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11779 Delete arg "abfd". New arg "type_offset". All callers updated.
11780 (create_debug_types_hash_table): Simplify by using
11781 read_and_check_type_unit_head.
11782
11783 * parser-defs.h (namecopy): Delete.
11784 * parse.c (namecopy, namecopy_size): Move into copy_name.
11785
11786 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11787
11788 Partially fix duplicate .o files after omitting libbfd.a.
11789 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11790 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11791 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11792 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11793 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11794 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11795 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11796
11797 2012-01-09 Pedro Alves <palves@redhat.com>
11798
11799 * MAINTAINERS: Update my email address.
11800
11801 2012-01-08 Doug Evans <dje@google.com>
11802
11803 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11804 n_type_units. Rename type_comp_units to all_type_units.
11805 All uses updated.
11806 (add_signatured_type_cu_to_table): Renamed from
11807 add_signatured_type_cu_to_list. All callers updated.
11808
11809 * gdbtypes.h (struct cplus_struct_type): Delete member
11810 nfn_fields_total. All uses removed.
11811
11812 2012-01-06 Doug Evans <dje@google.com>
11813
11814 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11815 to top of file.
11816 (dwarf2_find_comp_unit): Delete.
11817 (process_psymtab_comp_unit): Make result "void".
11818 Delete args buffer, info_ptr, buffer_size, and replace with
11819 "section". All callers updated.
11820 (dwarf2_build_psymtabs_hard): Simplify.
11821
11822 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11823 Thiago Jung Bauermann <bauerman@br.ibm.com>
11824
11825 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11826 before `struct gdb_exception'.
11827 * breakpoint.c (update_global_location_list_nothrow)
11828 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11829 * cp-abi.c (value_rtti_type): Likewise.
11830 * cp-support.c (cp_validate_operator): Likewise.
11831 * infrun.c (insert_exception_resume_breakpoint)
11832 (check_exception_resume, keep_going): Likewise.
11833 * mi-interp.c (mi_breakpoint_created)
11834 (mi_breakpoint_modified): Likewise.
11835 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11836 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11837 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11838
11839 2012-01-05 Doug Evans <dje@google.com>
11840
11841 * dwarf2read.c (statement_prologue): Delete, unused.
11842
11843 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11844 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11845
11846 * dwarf2read.c (comp_unit_header): Delete, unused.
11847
11848 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11849
11850 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11851 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11852
11853 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11854
11855 * infrun.c (normal_stop): Don't skip calling the normal_stop
11856 observers if the thread was doing a multi-step, but stopped for
11857 some reason other than stepping.
11858
11859 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11860
11861 * cli/cli-decode.h: Add comments.
11862 (CMD_LIST_AMBIGUOUS): Moved to command.h
11863 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11864 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11865 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11866 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11867 (add_com, add_com_alias, add_info, add_info_alias)
11868 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11869 declarations.
11870 * command.h: Add and adjust comments.
11871 (CMD_LIST_AMBIGUOUS): Moved here.
11872 (help_cmd, help_cmd_list): Delete declarations.
11873
11874 2012-01-04 Doug Evans <dje@google.com>
11875
11876 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11877 All callers updated.
11878 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11879 Replace all arguments with "per_cu". All callers updated.
11880
11881 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11882
11883 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11884 New arg "per_cu". All callers updated.
11885
11886 Delete #if 0'd out code.
11887 * language.c (binop_result_type): Delete.
11888 (simple_type, ordered_type, same_type, integral_type): Delete.
11889 (numeric_type, character_type, string_type, boolean_type): Delete.
11890 (float_type, structured_type): Delete.
11891 * language.h: Update.
11892
11893 2012-01-04 Tom Tromey <tromey@redhat.com>
11894
11895 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11896
11897 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11898
11899 * corefile.c (close_exec_file): Delete.
11900 (reopen_exec_file): Remove commented out code that seems related
11901 to close_exec_file, which is being deleted here.
11902 * inferior.h (close_exec_file): Delete.
11903 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11904
11905 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11906
11907 * ada-lang.c: #include "cli/cli-utils.h".
11908 (get_selections): Use skip_spaces.
11909 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11910 (catch_ada_exception_command_split): Use skip_spaces.
11911 (ada_decode_assert_location): Likewise.
11912
11913 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11914
11915 * linespec.c (decode_line_internal): Check for C++ or Java
11916 compound constructs only if the current language is C, C++
11917 or Java.
11918
11919 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11920
11921 Revert:
11922 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11923 Joel Brobecker <brobecker@adacore.com>
11924 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11925 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11926 3 times.
11927 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11928 fall through into AT_ENTRY_POINT.
11929 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11930 DUMMY_ADDR with it.
11931 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11932 PPC_INSN_SIZE skip to 3 times.
11933
11934 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11935
11936 * linespec.c (add_minsym): Preserve function descriptors.
11937
11938 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11939
11940 * breakpoint.c (all_locations_are_pending): Consider locations
11941 in program spaces executing during startup pending as well.
11942
11943 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11944
11945 Copyright year update in most files of the GDB Project.
11946
11947 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11948
11949 * copyright.sh: Delete.
11950 * copyright.py: Rewrite.
11951
11952 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11953
11954 * gnulib/extra/update-copyright: New file, imported from gnulib.
11955
11956 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11957
11958 * README (Copyright and License Notices): New section.
11959
11960 2012-01-03 Tom Tromey <tromey@redhat.com>
11961
11962 PR python/12533:
11963 * python/py-value.c (valpy_dereference, valpy_get_address
11964 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11965 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11966 (valpy_absolute, valpy_richcompare): Free intermediate values.
11967
11968 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11969
11970 * ada-lang.c: Reformat the copyright notice.
11971
11972 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11973
11974 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11975 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11976 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11977 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11978 Revert this part of:
11979 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11980 Build gdb directly from *.o files not using libgdb.a.
11981 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11982
11983 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11984
11985 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11986 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11987 Reformat the copyright header.
11988
11989 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11990
11991 Revert this part of:
11992 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11993 Remove the gdbtui binary.
11994 * gdb.c (main): Remove args.interpreter_p initialization.
11995 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11996 * main.h (struct captured_main_args): Remove interpreter_p.
11997
11998 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11999
12000 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12001
12002 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12003
12004 * top.c (print_gdb_version): Update copyright year.
12005
12006 2012-01-02 Yao Qi <yao@codesourcery.com>
12007
12008 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12009
12010 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12011 Joel Brobecker <brobecker@adacore.com>
12012
12013 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12014 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12015 3 times.
12016 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12017 fall through into AT_ENTRY_POINT.
12018 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12019 DUMMY_ADDR with it.
12020 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12021 PPC_INSN_SIZE skip to 3 times.
12022
12023 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12024
12025 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12026 the return value.
12027 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12028
12029 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12030
12031 Build gdb directly from *.o files not using libgdb.a.
12032 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12033 (COMMON_OBS): Remove solib-target.o.
12034 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12035 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12036 (LIBGDB_OBS, libgdb.a): Move it above.
12037 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12038 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12039 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12040 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12041 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12042 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12043 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12044 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12045 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12046 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12047 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12048 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12049 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12050 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12051 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12052 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12053 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12054 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12055 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12056 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12057 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12058 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12059 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12060 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12061 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12062 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12063 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12064
12065 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12066
12067 Remove the gdbtui binary.
12068 * .gitignore (/gdbtui): Remove.
12069 * Makefile.in (TUI): Remove.
12070 (SUBDIR_TUI_OBS): Remove tui-main.o.
12071 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12072 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12073 (tui-main.o): Remove.
12074 (all_object_files): Remove tui-main.o.
12075 * NEWS: New note for the gdbtui removal.
12076 * configure: Rebuilt.
12077 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12078 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12079 CONFIG_UNINSTALL respectively.
12080 * gdb.c (main): Remove args.interpreter_p initialization.
12081 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12082 * main.h (struct captured_main_args): Remove interpreter_p.
12083 * tui/tui-main.c: Remove.
12084
12085 2012-01-01 Doug Evans <dje@google.com>
12086
12087 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12088 (dwarf2_physname, read_import_statement): Ditto.
12089 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12090 (process_structure_scope read_subroutine_type): Ditto.
12091 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12092 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12093 (dwarf2_fetch_die_location_block): Ditto.
12094 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12095
12096 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12097 All callers updated.
12098 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12099 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12100 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12101
12102 * dwarf2read.c (load_cu): Move assert to more useful location.
12103
12104 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12105 All callers updated.
12106
12107 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12108 (dwarf2_elf_names): Minor reformat.
12109 (dwarf2_per_cu_data): Tweak comment.
12110 (dwarf2_read_section): Fix comment.
12111 (create_all_comp_units): Fix comment.
12112 (load_full_comp_unit): Fix comment.
12113 (process_full_comp_unit): Fix comment.
12114 (read_signatured_type): Fix comment.
12115
12116 For older changes see ChangeLog-2011.
12117 \f
12118 Local Variables:
12119 mode: change-log
12120 left-margin: 8
12121 fill-column: 74
12122 version-control: never
12123 coding: utf-8
12124 End: