Full view of interface-wide types
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-29 Jerome Guitton <guitton@adacore.com>
2
3 * ada-lang.h (ada_tag_value_at_base_address): New function
4 declaration.
5 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
6 New functions.
7 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
8 relocate the class-wide value if need be.
9 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
10 Let ada_tag_value_at_base_address relocate the class-wide access/ref
11 before dereferencing it.
12 * ada-valprint.c (ada_val_print_1): Relocate to base address
13 before displaying the content of an interface-wide ref.
14
15 2012-11-29 Jerome Guitton <guitton@adacore.com>
16
17 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
18
19 2012-11-29 Joel Brobecker <brobecker@adacore.com>
20
21 GDB 7.5.1 released.
22
23 2012-11-29 Yao Qi <yao@codesourcery.com>
24 Tom Tromey <tromey@redhat.com>
25
26 * eval.c (evaluate_subexp_standard): Get the correct pointer
27 type for TYPE_CODE_MEMBERPTR.
28
29 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
30
31 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
32 since now it is being done by binutils' powerpc_init_dialect().
33
34 2012-11-28 Tom Tromey <tromey@redhat.com>
35
36 PR gdb/14290:
37 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
38 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
39 Use it.
40 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
41 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
42 (gdb_bfd_openr_next_archived_file): Use it.
43
44 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
45
46 * configure.ac: Check for linux/perf_event.h.
47 * config.in: Regenerated.
48 * configure: Regenerated.
49
50 2012-11-28 Yao Qi <yao@codesourcery.com>
51
52 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
53 abbreviate 'delete tracepoints' to 'delete tr'.
54 * corefile.c (_initialize_core): Call add_alias_cmd to
55 abbreviate 'set gnutarget' to 'set g'.
56 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
57 'show convenience' to 'show conv'.
58
59 2012-11-27 Joel Brobecker <brobecker@adacore.com>
60
61 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
62 call to sparc_supply_fpregset.
63 (fill_fpregset): Fix first parameter in call to
64 sparc_collect_fpregset.
65
66 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
67 Kazu Hirata <kazu@codesourcery.com>
68 Yao Qi <yao@codesourcery.com>
69
70 * objfiles.c (init_entry_point_info): Call
71 gdbarch_convert_from_func_ptr_addr and
72 gdbarch_addr_bits_remove here ...
73 (entry_point_address_query): ... instead of here.
74 * solib-svr4.c (exec_entry_point): Call
75 gdbarch_addr_bits_remove.
76 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
77 the entry address.
78
79 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
80 Yao Qi <yao@codesourcery.com>
81
82 * eval.c (evaluate_subexp_standard): Add handling of
83 TYPE_CODE_MEMBERPTR when calling functions. Correct the
84 result of ptype for calling a TYPE_CODE_METHODPTR.
85
86 2012-11-27 Yao Qi <yao@codesourcery.com>
87
88 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
89 warning.
90 Add i18n markup.
91
92 2012-11-26 Alexander Larsson <alexl@redhat.com>
93 Jan Kratochvil <jan.kratochvil@redhat.com>
94 Tom Tromey <tromey@redhat.com>
95
96 * NEWS: Mention mini debuginfo feature.
97 * minidebug.c: New file.
98 * configure.ac: Check for lzma.
99 * configure, config.in: Rebuild.
100 * Makefile.in (LIBLZMA): New variable.
101 (CLIBS): Include LIBLZMA.
102 (SFILES): Mention minidebug.c.
103 (COMMON_OBS): Mention minidebug.o.
104 * symfile.c (read_symbols): New function.
105 (syms_from_objfile, reread_symbols): Call it.
106 * symfile.h (find_separate_debug_file_in_section): Declare.
107
108 2012-11-26 Keith Seitz <keiths@redhat.com>
109
110 * exec.c (exec_file_attach): Move cleanup after verifying that
111 memory has in fact been allocated.
112
113 2012-11-26 Tom Tromey <tromey@redhat.com>
114
115 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
116 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
117 SYMBOL_SYMTAB.
118 * skip.c (skip_info): Use SYMBOL_SYMTAB.
119
120 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
121 Pedro Alves <palves@redhat.com>
122
123 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
124 size parameter passed to readlink by one byte.
125 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
126 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
127 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
128 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
129 size by one byte.
130
131 2012-11-26 Yao Qi <yao@codesourcery.com>
132
133 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
134 extraneous parentheses.
135
136 2012-11-26 Yao Qi <yao@codesourcery.com>
137
138 * remote.c (remote_start_remote): Typo fix.
139
140 2012-11-23 David S. Miller <davem@davemloft.net>
141
142 * sparc-tdep.h (struct sparc_fpregset): New data structure.
143 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
144 sparc32_sol2_fpregset): Declare new globals.
145 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
146 'fpregset' argument.
147 * sparc64-tdep.h (sparc64_supply_fpregset,
148 sparc64_collect_fpregset): Likewise.
149 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
150 globals.
151 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
152 (sparc_fpregset): Declare new global.
153 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
154 'fpregset' argument.
155 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
156 into handler.
157 (fill_fpregset): Likewise.
158 (_initialize_sparc_linux_nat): Set sparc_fpregset to
159 sparc32_bsd_fpregset.
160 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
161 sparc32_bsd_fpregset down into handler.
162 (sparc32_linux_collect_core_fpregset): Likewise.
163 * sparc-nat.c (sparc_fpregset): Define.
164 (sparc_supply_fpregset): Add 'fpregset' argument.
165 (sparc_collect_fpregset): Likewise.
166 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
167 into fpregset handler.
168 (sparc_store_inferior_registers): Likewise.
169 (_initialize_sparc_nat): Set sparc_fpregset to
170 sparc32_sunos4_fpregset if NULL.
171 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
172 down into handler.
173 (fill_fpregset): Likewise.
174 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
175 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
176 use it to compute offsets.
177 (sparc32_collect_fpregset): Likewise.
178 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
179 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
180 down into handler.
181 (fill_fpregset): Likewise.
182 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
183 Likewise.
184 (sparc64_linux_collect_core_fpregset): Likewise.
185 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
186 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
187 use it to compute offsets.
188 (sparc64_collect_fpregset): Likewise.
189 (sparc64_bsd_fpregset): Define.
190 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
191 sparc64_bsd_fpregset down into handler.
192 (sparc64fbsd_collect_fpregset): Likewise.
193 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
194 and pass sparc{32,64}_bsd_fpregset down into handler.
195 (sparc64nbsd_collect_fpregset): Likewise.
196 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
197 sparc64_bsd_fpregset down into handler.
198 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
199 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
200 to sparc32_bsd_fpregset.
201 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
202 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
203 (sparc32nbsd_supply_fpregset): Likewise.
204
205 2012-11-21 Tom Tromey <tromey@redhat.com>
206
207 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
208 field.
209 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
210 Remove.
211 * c-typeprint.c (c_type_print_base): Update.
212
213 2012-11-21 Yao Qi <yao@codesourcery.com>
214
215 PR tdep/7438
216 * gdbarch.sh (smash_text_address): Remove.
217 * gdbarch.c, gdbarch.h: Regenerate.
218 * arm-tdep.c (arm_smash_text_address): Remove.
219 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
220 * hppa-tdep.c (hppa_smash_text_address): Remove.
221 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
222 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
223 Caller update.
224 * coffread.c (coff_symtab_read): Caller update.
225 * dbxread.c (process_one_symbol): Likewise.
226 * elfread.c (record_minimal_symbol): Likewise.
227 * somread.c (som_symtab_read): Likewise.
228
229 2012-11-20 Pierre Muller <muller@sourceware.org>
230
231 ARI fixes: sprintf rule.
232 Replace sprintf function calls for char arrays by
233 calls to xsnprintf calls.
234 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
235 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
236 (arm_neon_quad_read, arm_pseudo_read): Ditto.
237 (arm_neon_quad_write, arm_pseudo_write): Ditto.
238 * breakpoint.c (condition_completer): Ditto.
239 (create_tracepoint_from_upload): Ditto.
240 * dwarf2read.c (file_full_name): Ditto.
241 * gcore.c (gcore_command): Ditto.
242 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
243 * go32-nat.c (go32_sysinfo): Ditto.
244 * interps.c (interp_set): Ditto.
245 * m32c-tdep.c (make_types): Ditto.
246 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
247 * remote-m32r-sdi.c (m32r_open): Ditto.
248 * sol-thread.c (td_err_string): Ditto.
249 (td_state_string, solaris_pid_to_str): Ditto.
250 * symtab.c (gdb_mangle_name): Ditto.
251 * cli/cli-script.c (execute_control_command): Ditto.
252 (define_command, document_command): Ditto.
253 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
254 * tui/tui-stack.c (tui_make_status_line): Ditto.
255 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
256
257 2012-11-20 Mike Frysinger <vapier@gentoo.org>
258
259 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
260 it when looking at ptr->func.
261 * command.h (complete_on_cmdlist): Add a fourth arg.
262 * completer.c (complete_line_internal): Add local ignore_help_classes,
263 and set it to 1 when reason is not handle_help. Pass this down to
264 lookup_cmd_1 and complete_on_cmdlist.
265
266 2012-11-20 Tom Tromey <tromey@redhat.com>
267
268 * completer.c (count_struct_fields): Remove.
269 (expression_completer): Don't call count_struct_fields.
270
271 2012-11-20 Pedro Alves <palves@redhat.com>
272
273 * annotate.c (breakpoints_changed): Rename to ...
274 (annotate_breakpoints_changed): ... this.
275 (annotate_stopped, breakpoint_changed): Adjust caller.
276 * annotate.h (breakpoints_changed): Rename to ...
277 (annotate_breakpoints_changed): ... this.
278 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
279 (do_map_commands_command, init_raw_breakpoint, clear_command)
280 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
281
282 2012-11-20 David S. Miller <davem@davemloft.net>
283
284 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
285 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
286 sysconf.
287 (get_cores_used_by_process): Update comment.
288
289 2012-11-20 Yao Qi <yao@codesourcery.com>
290
291 * objfiles.c (init_entry_point_info): Remove trailing spaces.
292
293 2012-11-20 Yao Qi <yao@codesourcery.com>
294
295 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
296 to deprecated_context_hook.
297
298 2012-11-19 Yao Qi <yao@codesourcery.com>
299
300 * infrun.c (infwait_state): Add static.
301
302 2012-11-16 Keith Seitz <keiths@redhat.com>
303
304 PR c++/13615
305 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
306 parameter and pass it to lookup_symbol_file.
307 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
308 to search base classes.
309 (cp_lookup_symbol_namespace): Likewise.
310 (lookup_namespace_scope): Likewise.
311 (lookup_symbol_file): Add SEARCH parameter.
312 If SEARCH is non-zero and no symbol is found, lookup the class
313 and call cp_lookup_nested_symbol.
314 (find_symbol_in_baseclass): New function.
315 (cp_lookup_nested_symbol): Do not let
316 cp_lookup_symbol_in_namespace search through base classes.
317 Do that later when there is no global symbol match.
318
319 2012-11-16 Doug Evans <dje@google.com>
320
321 * main.c (gdb_datadir_provided): New static global.
322 (get_init_files): If --data-directory is provided,
323 and SYSTEM_GDBINIT lives in data-directory, look for it there.
324 * NEWS: Mention it.
325
326 2012-11-15 Pierre Muller <muller@sourceware.org>
327
328 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
329 * gdb_stat.h: Delete. Moved to common directory.
330 * common/gdb_stat.h: New file.
331 * gdb_wait.h: Delete. Moved to common directory.
332 * common/gdb_wait.h: New file.
333 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
334 location.
335 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
336 location.
337 (stat.h rule): Adapt to new gdb_stat.h location.
338 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
339 <sys/stat.h> header.
340 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
341 <sys/wait.h> header.
342
343 2012-11-15 Pierre Muller <muller@sourceware.org>
344
345 * configure.ac (AC_HEADER_STAT): Remove.
346 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
347 and corresponding code.
348 * configure: Regenerate.
349 * config.in: Regenerate.
350
351 2012-11-15 Pierre Muller <muller@sourceware.org>
352
353 ARI xasprintf rule fixes.
354 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
355 instead of xasprintf.
356 (open_and_init_dwp_file): Ditto.
357
358 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
359
360 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
361 target types.
362
363 2012-11-14 Tom Tromey <tromey@redhat.com>
364
365 * configure, config.in: Rebuild.
366 * configure.ac: Don't check for ctype.h, time.h.
367 * expprint.c: Don't use HAVE_CTYPE_H.
368
369 2012-11-13 Tom Tromey <tromey@redhat.com>
370
371 * gdbarch.h, gdbarch.c: Rebuild.
372 * gdbarch.sh (set_target_gdbarch): Rename from
373 deprecated_target_gdbarch_select_hack.
374 * arch-utils.c (gdbarch_update_p): Update.
375 (set_gdbarch_from_file): Update.
376
377 2012-11-14 Pierre Muller <muller@sourceware.org>
378
379 * MAINTAINERS (Responsible Maintainers/misc): Add myself
380 as responsible of contrib/ari directory.
381
382 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
383 Yao Qi <yao@codesourcery.com>
384
385 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
386 bit of EXC_RETURN.
387 (arm_m_exception_cache, arm_m_exception_this_id)
388 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
389 (arm_m_exception_unwind): New.
390 (arm_gdbarch_init): Register arm_m_exception_unwind.
391
392 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
393
394 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
395 parameter COUNT, for pattern filling of memory regions.
396 * NEWS: Mention it.
397
398 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
399
400 * disasm.h (DISASSEMBLY_FILENAME): New macro.
401 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
402 to print_source_lines ().
403 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
404 flag.
405 * source.c (print_source_lines_base): Prefix source line with
406 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
407
408 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
409
410 * symtab.h (print_source_lines_flags): New enum.
411 * source.c (print_source_lines_base): Change noerror to flags.
412 (print_source_lines): Change noerror to flags.
413
414 2012-11-13 Pierre Muller <muller@sourceware.org>
415
416 ARI fixes: Avoid sprintf function use rule.
417 * charset.c (convert_between_encodings): Use xsnprintf.
418 * cli-out.c (cli_field_int): Likewise.
419 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
420 * expprint.c (op_name_standard): Likewise.
421 * frv-tdep.c (set_variant_num_gprs): Likewise.
422 (set_variant_num_fprs): Likewise.
423 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
424 * nto-tdep.c (nto_find_and_open_solib): Likewise.
425 (nto_init_solib_absolute_prefix): Likewise.
426 * source.c (init_source_path): Likewise.
427 (print_source_lines_base): Likewise.
428 * valprint.c (print_wchar): Likewise.
429 * mi/mi-out.c (mi_field_int): Likewise.
430 windows-nat.c (windows_pid_to_exec_file): Likewise.
431 (windows_create_inferior): Likewise.
432 (_initialize_check_for_gdb_ini): Likewise.
433
434 2012-11-12 Joel Brobecker <brobecker@adacore.com>
435
436 * frame.h (deprecated_frame_register_read): Renames
437 frame_register_read.
438 * frame.c (deprecated_frame_register_read): Renames
439 frame_register_read. Update all callers.
440 * i386-tdep.c: Update all callers of frame_register_read.
441 * infcmd.c: Likewise.
442 * jit.c: Likewise.
443 * mips-tdep.c: Likewise.
444 * mt-tdep.c: Likewise.
445 * sh64-tdep.c: Likewise.
446
447 2012-11-12 Joel Brobecker <brobecker@adacore.com>
448
449 * frame.h (frame_register_read): Remove FIXME comment.
450 * frame.c (frame_register_read): Add suggestion explaining
451 which function to use in place of this one.
452
453 2012-11-12 Tom Tromey <tromey@redhat.com>
454
455 * python/python.c (start_type_printers): Initialize 'result_obj'.
456
457 2012-11-12 Tom Tromey <tromey@redhat.com>
458
459 * NEWS: Update.
460 * data-directory/Makefile.in (PYTHON_FILES): Add
461 type_printers.py.
462 * python/lib/gdb/command/type_printers.py: New file.
463 * python/lib/gdb/command/types.py (TypePrinter): New class.
464 (_get_some_type_recognizers, get_type_recognizers,
465 apply_type_recognizers, register_type_printer): New
466 functions.
467 * python/py-objfile.c (objfile_object) <type_printers>: New
468 field.
469 (objfpy_dealloc): Decref new field.
470 (objfpy_new): Set new field.
471 (objfpy_get_type_printers, objfpy_set_type_printers): New
472 functions.
473 (objfile_to_objfile_object): Set new field.
474 (objfile_getset): Add "type_printers".
475 * python/py-progspace.c (pspace_object) <type_printers>: New
476 field.
477 (pspy_dealloc): Decref new field.
478 (pspy_new): Set new field.
479 (pspy_get_type_printers, pspy_set_type_printers): New functions.
480 (pspace_to_pspace_object): Set new field.
481 (pspace_getset): Add "type_printers".
482 * python/python.c (start_type_printers, apply_type_printers,
483 free_type_printers): New functions.
484 (_initialize_python): Set gdb.type_printers.
485 * python/python.h (start_type_printers, apply_type_printers,
486 free_type_printers): Declare.
487 * typeprint.c (type_print_raw_options, default_ptype_flags):
488 Update for new fields.
489 (do_free_global_table, create_global_typedef_table,
490 find_global_typedef): New functions.
491 (find_typedef_in_hash): Use find_global_typedef.
492 (whatis_exp): Use create_global_typedef_table. Change cleanup
493 handling.
494 * typeprint.h (struct type_print_options) <global_typedefs,
495 global_printers>: New fields.
496
497 2012-11-12 Tom Tromey <tromey@redhat.com>
498
499 * c-typeprint.c (find_typedef_for_canonicalize,
500 print_name_maybe_canonical): New functions.
501 (c_print_type): Look up type name.
502 (cp_type_print_derivation_info): Add flags argument. Use
503 print_name_maybe_canonical.
504 (cp_type_print_method_args): Add wrapping.
505 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
506 (c_type_print_template_args): New function.
507 (c_type_print_base): Change wrapping. Use
508 print_name_maybe_canonical.
509 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
510 type name lookups.
511 * gdbtypes.c (types_equal): No longer static.
512 * gdbtypes.h (types_equal): Declare.
513 * typeprint.c (type_print_raw_options, default_ptype_flags):
514 Update.
515 (struct typedef_hash_table): New.
516 (hash_typedef_field, eq_typedef_field,
517 recursively_update_typedef_hash, add_template_parameters,
518 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
519 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
520 copy_typedef_hash, find_typedef_in_hash): New functions.
521 * typeprint.h (struct type_print_options) <local_typedefs>:
522 New field.
523 (recursively_update_typedef_hash, add_template_parameters,
524 create_typedef_hash, free_typedef_hash,
525 make_cleanup_free_typedef_hash, copy_typedef_hash,
526 find_typedef_in_hash): Declare.
527
528 2012-11-12 Tom Tromey <tromey@redhat.com>
529
530 * cp-support.c (inspect_type,
531 replace_typedefs_qualified_name, replace_typedefs): Add
532 finder, data arguments. Call as needed.
533 (cp_canonicalize_string_full): New function.
534 (cp_canonicalize_string_no_typedefs): Rewrite.
535 * cp-support.h (canonicalization_ftype): New typedef.
536 (cp_canonicalize_string_full): Declare.
537
538 2012-11-12 Tom Tromey <tromey@redhat.com>
539
540 * NEWS: Update.
541 * c-typeprint.c (c_type_print_base): Handle print_method and
542 print_typedefs flags.
543 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
544 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
545 options.
546 * typeprint.c (type_print_raw_options, default_ptype_flags):
547 Update for new field.s
548 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
549 (setprinttypelist, showprinttypelist, print_methods,
550 print_typedefs): New globals.
551 (set_print_type, show_print_type, set_print_type_methods,
552 show_print_type_methods, set_print_type_typedefs,
553 show_print_type_typedefs): New functions.
554 (_initialize_typeprint): Update documentation. Add "print
555 type methods" and "print type typedefs" parameters.
556 * typeprint.h (struct type_print_options) <print_methods,
557 print_typedefs>: New fields.
558
559 2012-11-12 Tom Tromey <tromey@redhat.com>
560
561 * c-typeprint.c (cp_type_print_method_args): Add flags
562 argument. Call c_print_type, not type_print.
563 (c_type_print_base): Call c_print_type, not type_print.
564 Update.
565
566 2012-11-12 Tom Tromey <tromey@redhat.com>
567
568 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
569 to type-printing functions.
570 * ada-lang.h (ada_print_type): Add argument.
571 * ada-typeprint.c (print_array_type, print_variant_clauses,
572 print_variant_part, print_selected_record_field_types,
573 print_record_field_types, print_unchecked_union_type,
574 print_func_type, ada_print_type): Add flags argument.
575 (ada_print_typedef): Update.
576 * c-exp.y (OPERATOR conversion_type_id): Update.
577 * c-lang.h (c_print_type, c_type_print_base): Update.
578 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
579 c_type_print_modifier, c_type_print_args,
580 c_type_print_varspec_suffix, c_type_print_base): Add flags
581 argument.
582 * cp-valprint.c (cp_print_class_member): Update.
583 * dwarf2read.c (dwarf2_compute_name): Update.
584 * f-lang.h (f_print_type): Add argument.
585 * f-typeprint.c (f_print_type): Add flags argument.
586 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
587 * go-lang.h (go_print_type): Add argument.
588 * go-typeprint.c (go_print_type): Add flags argument.
589 * jv-lang.h (java_print_type): Add argument.
590 * jv-typeprint.c (java_type_print_base, java_print_type): Add
591 flags argument.
592 * language.c (unk_lang_print_type): Add flags argument.
593 * language.h (struct language_defn) <la_print_type>: Add flags
594 argument.
595 (LA_PRINT_TYPE): Likewise.
596 * m2-lang.h (m2_print_type): Add argument.
597 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
598 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
599 m2_unbounded_array, m2_record_fields): Add flags argument.
600 * p-lang.h (pascal_print_type, pascal_type_print_base,
601 pascal_type_print_varspec_prefix): Add argument.
602 * p-typeprint.c (pascal_print_type,
603 pascal_type_print_varspec_prefix, pascal_print_func_args,
604 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
605 flags argument.
606 * symmisc.c (print_symbol): Update.
607 * typeprint.c (type_print_raw_options, default_ptype_flags):
608 New globals.
609 (type_print): Update.
610 * typeprint.h (struct type_print_options): New.
611 (type_print_raw_options): Declare.
612 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
613
614 2012-11-10 Keith Seitz <keiths@redhat.com>
615
616 * breakpoint.c (clear_command): Add cleanup for
617 sals.sals if an argument is given.
618
619 * linespec.c (parse_linespec): Do cleanups after
620 parsing a convenience variable.
621
622 2012-11-10 Keith Seitz <keiths@redhat.com>
623
624 PR gdb/14288
625 * c-valprint.c (c_val_print): For character arrays
626 with "print null" option on, print ellipses if
627 the output is truncated and the next character is not \000.
628 * valprint.c (MAX_WCHARS): Define.
629 (WCHAR_BUFLEN): Likewise.
630 (WCHAR_BUFLEN_MAX): Likewise.
631 (struct converted_character): New structure.
632 (count_next_character): New function.
633 (print_converted_chars_to_obstack): New function.
634 (generic_printstr): Rewrite using count_next_character
635 and print_converted_chars_to_obstack.
636
637 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
638
639 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
640 while executing the gdb command.
641 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
642 are called from prompt_for_continue.
643 * tui/tui-io.c (tui_redisplay_readline): Likewise.
644
645 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
646
647 PR tui/9584
648
649 * tui/tui.c (tui_rl_command_key): Do not call execute_command
650 but insert the command to execute in readline's buffer.
651
652 2012-11-09 Tom Tromey <tromey@redhat.com>
653
654 * gdbarch.sh (target_gdbarch): Remove macro.
655 (get_target_gdbarch): Rename to target_gdbarch.
656 * gdbarch.c, gdbarch.h: Rebuild.
657 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
658 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
659 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
660 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
661 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
662 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
663 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
664 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
665 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
666 procfs.c, progspace.c, ravenscar-thread.c, record.c,
667 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
668 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
669 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
670 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
671 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
672 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
673 target-descriptions.c, target.c, target.h, tracepoint.c,
674 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
675 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
676 python/py-inferior.c, python/python.c: Update.
677
678 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
679
680 * source.c (print_source_lines_base): Add fullname field giving
681 full path to file in mi output.
682 * NEWS: Mention the new fullname field.
683
684 2012-11-09 Yao Qi <yao@codesourcery.com>
685
686 * NEWS: Mention the fix to the ambiguity of 'fo' command.
687
688 2012-11-09 Pedro Alves <palves@redhat.com>
689
690 PR gdb/14306
691
692 * infrun.c: Include target-descriptions.h.
693 (follow_exec): Fetch new target description.
694
695 2012-11-09 Yao Qi <yao@codesourcery.com>
696
697 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
698 0x8d (lea).
699
700 2012-11-09 Yao Qi <yao@codesourcery.com>
701
702 * breakpoint.c: Declare set_tracepoint_count.
703 (install_breakpoint): Call set_tracepoint_count if B is a
704 tracepoint.
705 (trace_command): Don't call set_tracepoint_count. Re-indent.
706 (strace_command, ftrace_command):
707 (create_tracepoint_from_upload): Likewise.
708
709 2012-11-09 Pedro Alves <palves@redhat.com>
710
711 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
712 (get_target_gdbarch) <gdbarch.h>: New function.
713 (startup_gdbarch) <gdbarch.h>: Declare.
714 <gdbarch.c> (target_gdbarch): Delete.
715 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
716 current inferior's gdbarch.
717 <gdbarch.c> (get_target_gdbarch): New function.
718 * inferior.c: Include target-descriptions.h.
719 (free_inferior): Free target description info.
720 (add_inferior_with_spaces): Set the inferior's initial
721 architecture.
722 (clone_inferior_command): Copy the original inferior's target
723 description if it was user specified.
724 (initialize_inferiors): Add comment.
725 * inferior.h (struct target_desc_info): Forward declare.
726 (struct inferior) <gdbarch>: New field.
727 * linux-nat.c: Include target-descriptions.h.
728 (linux_child_follow_fork): Copy the parent's architecture and
729 target description to the child.
730 * target-descriptions.c: Include inferior.h.
731 (struct target_desc_info): New structure, holding the equivalents
732 of ...
733 (target_desc_fetched, current_target_desc)
734 (target_description_filename): ... these removed globals.
735 (get_tdesc_info, target_desc_info_from_user_p)
736 (copy_inferior_target_desc_info, target_desc_info_free): New.
737 (target_desc_fetched, current_target_desc)
738 (target_description_filename): Reimplemented as convenience
739 macros.
740 (tdesc_filename_cmd_string): New global.
741 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
742 tdescs filename ..." commands to the per-inferior equivalent.
743 (show_tdesc_filename_cmd): Get the value to show from the
744 per-inferior description filename.
745 (_initilize_target_descriptions): Change the "set/show tdesc
746 filename" commands' variable.
747 * target-descriptions.h (struct target_desc, struct target_desc_info)
748 (struct inferior): Forward declare.
749 (target_find_description, target_clear_description)
750 (target_current_description): Adjust comments.
751 (copy_inferior_target_desc_info, target_desc_info_free)
752 (target_desc_info_from_user_p). Declare.
753
754 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
755
756 * tui/tui-hooks.c (tui_about_to_proceed): New function.
757 (tui_target_wait_hook): Remove.
758 (tui_install_hooks): Install the about_to_proceed observer.
759 (tui_remove_hooks): And remove it here.
760
761 2012-11-08 Tom Tromey <tromey@redhat.com>
762
763 * linux-tdep.c (linux_make_siginfo_note): New function.
764 (linux_make_corefile_notes): Use it.
765 * corelow.c (get_core_siginfo): New function.
766 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
767
768 2012-11-08 Tom Tromey <tromey@redhat.com>
769
770 PR gdb/14704:
771 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
772 (zlib_decompress_section): Remove.
773 (gdb_bfd_map_section): Only check for compressed section
774 in mmap case. Use bfd_get_full_section_contents.
775 * osabi.c (check_note): Add 'sectsize' argument. Read
776 section data.
777 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
778 section data. Update for check_note change.
779 * xcoffread.c (xcoff_initial_scan): Use
780 bfd_get_full_section_contents.
781 * py-auto-load.c (auto_load_section_scripts): Use
782 bfd_get_full_section_contents.
783 * contrib/cc-with-tweaks.sh: Add -Z option.
784
785 2012-11-08 Tom Tromey <tromey@redhat.com>
786
787 * python/py-bpevent.c: Include defs.h.
788 * python/py-continueevent.c: Include defs.h.
789 * python/py-event.c: Include defs.h.
790 * python/py-event.h: Don't include defs.h.
791 * python/py-events.h: Don't include defs.h.
792 * python/py-evts.c: Include defs.h.
793 * python/py-exitedevent.c: Include defs.h.
794 * python/py-newobjfileevent.c: Include defs.h.
795 * python/py-signalevent.c: Include defs.h.
796 * python/py-stopevent.c: Include defs.h.
797 * python/py-threadevent.c: Include defs.h.
798
799 2012-11-08 Pierre Muller <muller@sourceware.org>
800
801 * update-web-ari.sh (print_heading): Add number of files
802 checked.
803 (nb_files): New variable counting the number of sources
804 files found by gdb_find.sh script.
805 (debug_awk): New variable to allow extra debug output.
806 (indexes): Add more information if DEBUG_AWK is set.
807
808 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
809
810 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
811 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
812 following the change in PLT call stubs on linker.
813
814 2012-11-08 Pierre Muller <muller@sourceware.org>
815
816 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
817 as default language.
818 (AWK): Use = instead of == for sh test to avoid warning.
819 (Linux rule): Correct [:digit] into [[:digit:]].
820 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
821 (vasprintf rule): Adapt to common subdirectory moves.
822 (xasprintf rule): Idem.
823 (xvasprintf rule): Idem.
824 (var_boolean rule): Accept occurence in == or != test.
825
826 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
827
828 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
829
830 * tui/tui-hooks.c (tui_inferior_exit): New function.
831 (tui_detach_hook): Remove.
832 (tui_install_hooks): Install the inferior exit observer.
833 (tui_remove_hooks): Remove it.
834
835 2012-11-08 Yao Qi <yao@codesourcery.com>
836
837 PR gdb/14777.
838 * source.c (_initialize_source): Call add_com_alias to abbreviate
839 'forward-search' as 'fo'.
840
841 2012-11-07 Pedro Alves <palves@redhat.com>
842
843 * arm-tdep.c: Make defs.h be the first include.
844 * coff-pe-read.c: Ditto.
845 * gnu-nat.c: Ditto.
846 * go32-nat.c: Ditto.
847 * i386-nat.c: Ditto.
848 * ppcnbsd-nat.c: Ditto.
849 * ada-varobj.h: Don't include defs.h.
850 * i386-darwin-tdep.h: Ditto.
851 * i386-nat.h: Ditto.
852
853 2012-11-07 Pedro Alves <palves@redhat.com>
854
855 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
856 Committee.
857
858 2012-11-07 Pierre Muller <muller@sourceware.org>
859
860 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
861 File already uses "gdb_dirent.h" header.
862
863 2012-11-07 Yao Qi <yao@codesourcery.com>
864
865 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
866 tracepoint_count'.
867
868 2012-11-06 Tom Tromey <tromey@redhat.com>
869
870 * target.h (inferior_has_forked, inferior_has_vforked)
871 (inferior_has_execd, inferior_has_called_syscall): Remove
872 declarations.
873
874 2012-11-06 Pierre Muller <muller@sourceware.org>
875
876 * remote.c (remote_insert_hw_breakpoint): ARI fix,
877 add missing internalization markup.
878
879 2012-11-06 Pedro Alves <palves@redhat.com>
880
881 PR gdb/14810
882
883 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
884
885 2012-11-06 Pierre Muller <muller@sourceware.org>
886
887 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
888 is not executable.
889
890 2012-11-05 Joel Brobecker <brobecker@adacore.com>
891
892 * gnulib/update-gnulib.sh: New script.
893
894 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
895
896 * MAINTAINERS: Update my email address.
897
898 2012-11-05 Tom Tromey <tromey@redhat.com>
899
900 * frame.c (put_frame_register): Don't use temporary buffer.
901
902 2012-11-05 Pedro Alves <palves@redhat.com>
903
904 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
905 child. Clear 'pending_detach'.
906 * infrun.c (handle_vfork_child_exec_or_exit): Clear
907 'pending_detach' in the vfork parent.
908
909 2012-11-05 Doug Evans <dje@google.com>
910
911 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
912 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
913 * dwarf2read.c: #include "elf-bfd.h".
914 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
915 (dwop_section_names): Renamed from dwo_section names. All uses
916 updated. Add entries for .debug_cu_index, .debug_tu_index.
917 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
918 All uses updated.
919 (struct dwp_sections): New type.
920 (struct virtual_dwo_sections): New type.
921 (struct dwp_hash_table): New type.
922 (struct dwp_file): New type.
923 (init_cutu_and_read_dies): Ensure DWO info/types section has been
924 read in. Handle DWOs coming from DWP files.
925 (lookup_dwo_file_slot): New function.
926 (dwarf2_locate_dwo_sections): Move definition closer to use.
927 (create_dwo_debug_info_hash_table_reader): Renamed from
928 create_debug_info_hash_table_reader. All callers updated.
929 (create_dwo_debug_info_hash_table): Renamed from
930 create_debug_info_hash_table. All callers updated.
931 (create_dwp_hash_table): New function.
932 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
933 (lookup_dwo_in_dwp): New function.
934 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
935 is_dwp. All callers updated.
936 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
937 (open_and_init_dwo_file): Renamed from init_dwo_file.
938 All callers updated.
939 (lookup_dwo_file): Delete.
940 (dwarf2_locate_dwp_sections): New function.
941 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
942 (allocate_dwp_loaded_cutus_table): New function.
943 (open_and_init_dwp_file): New function.
944 (lookup_dwo_cutu): New function.
945 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
946
947 2012-11-03 Yao Qi <yao@codesourcery.com>
948
949 Fix PR gdb/14617.
950 * breakpoint.c (trace_pass_set_count): Call
951 observer_notify_breakpoint_modified instead of
952 observer_notify_tracepoint_modified.
953 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
954
955 2012-11-02 Tom Tromey <tromey@redhat.com>
956
957 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
958 argument to complete_on_enum.
959
960 2012-11-02 Tom Tromey <tromey@redhat.com>
961
962 * configure: Rebuild.
963 * configure.ac (build_warnings): Add -Wempty-body.
964 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
965 * remote.c (handle_notification): Use braces for empty 'else' body.
966 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
967 'else' body.
968 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
969 'else' body.
970 * solib-som.c (som_relocate_section_addresses): Use braces
971 for empty 'else' body.
972 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
973 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
974
975 2012-11-02 Pedro Alves <palves@redhat.com>
976
977 PR gdb/14766
978
979 * infrun.c (handle_inferior_event)
980 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
981 null_ptid before handling a vfork child exec or exit. Switch to
982 the event ptid afterwards.
983
984 2012-11-02 Yao Qi <yao@codesourcery.com>
985
986 * std-operator.def: Remove OP_LABELED.
987 * eval.c: Remove the declaration of 'get_label'.
988 (get_label): Remove.
989 (evaluate_struct_tuple): Remove code handling OP_LABELED.
990 Update comment.
991 Remove local variable 'variantno' and related code.
992 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
993 with 'fieldno'.
994 * expprint.c (print_subexp_standard): Likewise.
995 (dump_subexp_body_standard): Likewise.
996 * parse.c (operator_length_standard): Likewise.
997
998 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
999
1000 Incorporate ARI web page generator into GDB sources.
1001 * contrib/ari/create-web-ari-in-src.sh: New file.
1002 * contrib/ari/gdb_ari.sh: New file.
1003 * contrib/ari/gdb_find.sh: New file.
1004 * contrib/ari/update-web-ari.sh: New file.
1005
1006 2012-10-31 Tom Tromey <tromey@redhat.com>
1007
1008 * gdbarch.c: Rebuild.
1009 * gdbarch.sh: Remove references to gdbarch_swap.
1010 * corelow.c (core_open): Remove obsolete comment.
1011
1012 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1013
1014 PR cli/14772
1015 * c-typeprint.c (c_print_type): Don't print a space for vector
1016 types, this is handled within the suffix.
1017 (c_type_print_varspec_suffix): Add a space to vector suffix.
1018
1019 2012-10-26 Pedro Alves <palves@redhat.com>
1020
1021 * amd64-tdep.c (amd64_relocate_instruction): Use
1022 store_unsigned_integer instead of memcpy.
1023 * i386-tdep.c (i386_relocate_instruction): Ditto.
1024
1025 2012-10-26 Pedro Alves <palves@redhat.com>
1026
1027 * infrun.c (handle_inferior_event): Merge handling of
1028 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1029 switch case.
1030
1031 2012-10-26 Pedro Alves <palves@redhat.com>
1032
1033 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1034 Remove comment.
1035
1036 2012-10-26 Pedro Alves <palves@redhat.com>
1037
1038 * target.c (target_waitstatus_to_string): Handle
1039 TARGET_WAITKIND_VFORK_DONE.
1040
1041 2012-10-26 Pedro Alves <palves@redhat.com>
1042
1043 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1044 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1045
1046 2012-10-24 Tristan Gingold <gingold@adacore.com>
1047
1048 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1049 Add comments.
1050
1051 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1052
1053 * ravenscar-thread.c (ravenscar_wait): Only update the list
1054 of threads and inferior_ptid if the inferior is still alive.
1055
1056 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1057
1058 * ada-lang.c (is_known_support_routine): Use lbasename when
1059 matching the symtab's filename against
1060 known_runtime_file_name_patterns.
1061
1062 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1063
1064 * ada-lang.c (ada_same_array_size_p): New function.
1065 (ada_promote_array_of_integrals): New function.
1066 (coerce_for_assign): Add handling of arrays where the elements
1067 are integrals of a smaller size than the size of the target
1068 array element type.
1069
1070 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1071
1072 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1073 against maximum exponent value.
1074
1075 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1078 "unwind-seh.c".
1079
1080 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1081
1082 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1083 strip typedef layer when computing the fixed type's field type,
1084 only when computing its size.
1085
1086 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1087
1088 PR gdb/12783
1089 * i386-tdep.c (i386_return_value): Handle complex double and long
1090 double.
1091
1092 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1093
1094 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1095 New local variable args_len.
1096 Quote the name of the executable when computing the command line.
1097
1098 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1099
1100 PR gdb/12796
1101 PR gdb/12798
1102 PR gdb/12800
1103 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1104 AMD64_FTAG_REGNUM.
1105 * amd64-tdep.c (amd64_classify): Classify complex types.
1106 (amd64_return_value): Handle the COMPLEX_X87 class.
1107
1108 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1109
1110 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1111 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1112
1113 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1114
1115 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1116 function.
1117 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1118 to amd64_windows_auto_wide_charset.
1119
1120 2012-10-23 Yao Qi <yao@codesourcery.com>
1121
1122 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1123 * event-top.h: Remove its declaration.
1124 (async_request_quit): Call mark_async_signal_handler instead of
1125 mark_async_signal_handler_wrapper.
1126 (async_do_nothing, async_disconnect): Likewise.
1127 (async_stop_sig): Likewise.
1128 * remote.c (handle_remote_sigint): Likewise.
1129 (handle_remote_sigint_twice): Likewise.
1130
1131 2012-10-23 Yao Qi <yao@codesourcery.com>
1132
1133 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1134 with 'static struct async_signal_handler *'.
1135 (sighup_token, sigquit_token, sigstp_token): Likewise.
1136
1137 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1138
1139 * gdbarch.sh (function_list): Use 'pstring' when printing
1140 a variable which could return NULL.
1141 * gdbarch.c: Regenerate.
1142
1143 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1144 Tom Tromey <tromey@redhat.com>
1145
1146 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1147 inneffective if condition by gdb assertion. Add function
1148 description comment.
1149
1150 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1151
1152 * parser-defs.h (struct exp_descriptor): Document constraint
1153 on return value for "op_name" callbacks.
1154
1155 2012-10-18 Tom Tromey <tromey@redhat.com>
1156
1157 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1158 * symtab.c (iterate_over_some_symtabs): Constify.
1159 * source.h (symtab_to_fullname): Return 'const char *'.
1160 * source.c (symtab_to_fullname): Return 'const char *'.
1161 * python/py-symtab.c (stpy_fullname): Constify.
1162 * cli/cli-cmds.c (edit_command): Constify.
1163 * breakpoint.c (print_breakpoint_location)
1164 (update_static_tracepoint): Constify.
1165
1166 2012-10-18 Tom Tromey <tromey@redhat.com>
1167
1168 * breakpoint.c (compare_breakpoints): Fix comparison.
1169
1170 2012-10-18 Tom Tromey <tromey@redhat.com>
1171
1172 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1173 gdb_wchar_t to convert_between_encodings.
1174
1175 2012-10-17 Yao Qi <yao@codesourcery.com>
1176
1177 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1178 more parameter 'inferior'.
1179 * corefile.c (write_memory_with_notification): Caller update.
1180
1181 * mi/mi-cmd-var.c: Include "mi-main.h".
1182 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1183 to 1 and restore it later.
1184 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1185 and "data-write-memory-bytes.
1186 * mi/mi-interp.c: Include objfiles.h.
1187 (mi_interpreter_init): Call observer_attach_memory_changed.
1188 (mi_memory_changed): New.
1189 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1190 New field.
1191
1192 * NEWS: Mention new MI notification "memory-changed".
1193
1194 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1195
1196 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1197
1198 2012-10-15 Doug Evans <dje@google.com>
1199
1200 New option -nh: inhibit loading of ~/.gdbinit.
1201 * NEWS: Mention -nh.
1202 * main.c (captured_main): Recognize and process -nh.
1203 (print_gdb_help): Mention -nh.
1204 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1205
1206 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 PR backtrace/14646
1209 PR gdb/14647
1210 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1211 pc_regnum_from_eax.
1212 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1213 nor pc_regnum_from_eax.
1214 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1215 nor pc_regnum_from_eax.
1216
1217 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 Fix entry values resolving in inlined frames.
1220 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1221 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1222 entries of FRAME.
1223
1224 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1225
1226 * configure.ac: Build with -DMS_WIN64 if building with Python
1227 enabled using GCC on amd64-windows.
1228 * configure: Regenerate.
1229
1230 2012-10-15 Tom Tromey <tromey@redhat.com>
1231
1232 PR python/14635:
1233 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1234 to Py_None.
1235
1236 2012-10-15 Tom Tromey <tromey@redhat.com>
1237
1238 PR python/14634:
1239 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1240
1241 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1242
1243 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1244 reset thread numbering back to 1.
1245
1246 2012-10-11 Doug Evans <dje@google.com>
1247
1248 PR breakpoints/14643.
1249 * linespec.c (struct ls_parser): New member keyword_ok.
1250 (linespec_lexer_lex_string): Add comment.
1251 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1252 for one.
1253 (parse_linespec): Set keyword_ok.
1254
1255 2012-10-10 Doug Evans <dje@google.com>
1256
1257 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1258 "0x" prefix on address in log message.
1259
1260 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1261 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1262 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1263 (lookup_dwo_file): Add const to dwo_name parameter.
1264 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1265
1266 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1267
1268 Fix crash during stepping on ppc32.
1269 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1270 SYM.
1271
1272 2012-10-03 Doug Evans <dje@google.com>
1273
1274 PR symtab/14601
1275 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1276
1277 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1278
1279 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1280 output and use uint32_t not long to ensure 4 byte size.
1281
1282 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1283
1284 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1285 unref'ed it.
1286
1287 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1288
1289 * target.c (simple_search_memory): Include access length in
1290 warning message.
1291
1292 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1293 Edjunior Machado <emachado@linux.vnet.ibm.com>
1294
1295 PR gdb/13989
1296 * solib.c (solib_find): Prevent GDB from loading native libraries when
1297 debugging a cross-target corefile.
1298
1299 2012-09-28 selven <pcthegreat@gmail.com>
1300
1301 Make definition match declaration.
1302
1303 * regcache.c (regcache_register_status): Change return type to
1304 enum register_status.
1305
1306 2012-09-28 Yao Qi <yao@codesourcery.com>
1307
1308 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1309 write_memory_with_notification instead of write_memory.
1310 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1311 instead of target_write_memory.
1312
1313 2012-09-28 Yao Qi <yao@codesourcery.com>
1314
1315 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1316 when the length of content is not an even number.
1317
1318 2012-09-27 Tom Tromey <tromey@redhat.com>
1319
1320 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1321 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1322
1323 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1324
1325 * sol-thread.c (sol_thread_fetch_registers)
1326 (sol_thread_store_registers): Delete commented out code.
1327
1328 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1329
1330 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1331 Move these functions to sparc-sol-thread.c.
1332 * sparc-sol-thread.c: New file.
1333 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1334 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1335 configurations.
1336 * configure: Regenerate.
1337
1338 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1339
1340 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1341 Remove commented-out code.
1342
1343 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1344
1345 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1346 Enable this code for sparc hosts only.
1347
1348 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1349
1350 * procfs.h (procfs_find_LDT_entry): Add declaration.
1351 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1352 function procfs_find_LDT_entry.
1353
1354 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1355
1356 * procfs.c (proc_get_LDT_entry): Make static.
1357
1358 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1359
1360 * procfs.c (proc_find_memory_regions): Fix declaration.
1361
1362 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1363
1364 * amd64-tdep.c (amd64_return_value): Revert previous change
1365 that used TYPE_LENGTH directly.
1366 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1367 (bfin_store_return_value): Likewise.
1368 * cris-tdep.c (cris_store_return_value): Likewise.
1369 (cris_extract_return_value): Likewise.
1370 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1371 * hppa-tdep.c (hppa64_return_value): Likewise.
1372 * lm32-tdep.c (lm32_store_return_value): Likewise.
1373 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1374 * spu-tdep.c (spu_value_from_register): Likewise.
1375 * vax-tdep.c (vax_return_value): Likewise.
1376
1377 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1378
1379 * gdbtypes.c (lookup_array_range_type): Expand parameters
1380 LOW_BOUND and HIGH_BOUND to LONGEST.
1381 (lookup_string_range_type): Likewise.
1382 * gdbtypes.h (lookup_array_range_type): Likewise.
1383 (lookup_string_range_type): Likewise.
1384 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1385 Expand HIGHBOUND to ssize_t.
1386 (value_string): Likewise.
1387 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1388 (value_string): Likewise.
1389
1390 2012-09-27 Yao Qi <yao@codesourcery.com>
1391
1392 PR breakpoints/13898
1393 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1394 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1395 per breakpoint type.
1396
1397 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1398
1399 * procfs.c: Add gdb_bfd header.
1400 * rs6000-nat.c: Likewise.
1401 * solib-pa64.c: Likewise.
1402 * spu-linux-nat.c: Likewise.
1403 * windows-nat.c: Likewise.
1404
1405 2012-09-26 Tom Tromey <tromey@redhat.com>
1406
1407 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1408
1409 2012-09-26 Tom Tromey <tromey@redhat.com>
1410
1411 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1412 (read_common_block): Handle child DIEs with
1413 DW_AT_data_member_location.
1414 (new_symbol_full): Add special case for common blocks.
1415
1416 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 Tom Tromey <tromey@redhat.com>
1418
1419 * dwarf2read.c (read_common_block): Rewrite.
1420 (new_symbol_full): Handle DW_TAG_common_block.
1421 * f-lang.c (head_common_list, find_common_for_function):
1422 Remove.
1423 * f-lang.h (struct common_entry, struct saved_f77_common,
1424 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1425 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1426 BLANK_COMMON_NAME_LOCAL): Remove.
1427 (struct common_block): New.
1428 * f-valprint.c (list_all_visible_commons): Remove.
1429 (info_common_command_for_block): New function.
1430 (info_common_command): Use it.
1431 * stack.c (iterate_over_block_locals): Special case for
1432 COMMON_BLOCK_DOMAIN.
1433 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1434 constant.
1435 (struct general_symbol_info) <value.common_block>: New field.
1436 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1437
1438 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1439 Tom Tromey <tromey@redhat.com>
1440
1441 * f-lang.c (allocate_saved_bf_node,
1442 allocate_saved_function_node, allocate_saved_f77_common_node,
1443 allocate_common_entry_node, tail_common_list, current_common,
1444 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1445 tmp_bf_ptr, add_common_block, add_common_entry,
1446 find_first_common_named, patch_common_entries,
1447 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1448 global_remote_debug, get_bf_for_fcn, saved_function_list,
1449 saved_function_list_end, clear_function_list, struct saved_fcn,
1450 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1451 SAVED_BF, SAVED_BF_PTR): Remove.
1452 * f-lang.h (tail_common_list, current_common,
1453 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1454 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1455 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1456 real_main_c_value): Remove.
1457 * f-valprint.c (there_is_a_visible_common_named): Remove.
1458
1459 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1460
1461 * breakpoint.c (update_global_location_list): Ignore previous
1462 duplicate status of a breakpoint when starting a new scan for
1463 duplicate breakpoints.
1464
1465 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1466 PR breakpoints/14419
1467 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1468 support LLVM compiler.
1469
1470 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1471
1472 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1473 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1474 (bfin_store_return_value): Likewise.
1475 * cris-tdep.c (cris_store_return_value): Likewise.
1476 (cris_extract_return_value): Likewise.
1477 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1478 * hppa-tdep.c (hppa64_return_value): Likewise.
1479 * lm32-tdep.c (lm32_store_return_value): Likewise.
1480 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1481 * spu-tdep.c (spu_value_from_register): Likewise.
1482 * vax-tdep.c (vax_return_value): Likewise.
1483
1484 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1485
1486 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1487 parameter LEN to ssize_t.
1488
1489 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1490
1491 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1492 variable LEN.
1493 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1494 directly.
1495 (alpha_store_return_value): Likewise.
1496 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1497 (amd64_push_arguments): Likewise.
1498 * ax-gdb.c (gen_trace_static_fields): Likewise.
1499 (gen_traced_pop): Likewise.
1500 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1501 * breakpoint.c (update_watchpoint): Likewise.
1502 * findcmd.c (parse_find_args): Use local variable for type
1503 instead of length.
1504 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1505 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1506 (h8300_store_return_value): Likewise.
1507 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1508 Use i386_darwin_arg_type_alignment directly.
1509 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1510 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1511 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1512 (m68hc11_extract_return_value): Likewise.
1513 * mep-tdep.c (mep_push_dummy_call): Likewise.
1514 * printcmd.c (float_type_from_length): Likewise.
1515 * s390-tdep.c (s390_value_from_register): Likewise.
1516 * stack.c (read_frame_arg): Likewise.
1517 * tracepoint.c (encode_actions_1): Likewise.
1518 * valops.c (value_fetch_lazy): Use local variable for type
1519 instead of length. Use TYPE_LENGTH directly.
1520 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1521
1522 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1523
1524 * symtab.c (skip_prologue_sal): Fix typo in comment.
1525
1526 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1527
1528 * linespec.c (create_sals_line_offset): Fix typo in comment.
1529
1530 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1531
1532 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1533 use plongest to print the array size.
1534
1535 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1536
1537 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1538 * p-valprint.c (pascal_type_print_base): Likewise.
1539
1540 2012-09-22 Yao Qi <yao@codesourcery.com>
1541
1542 * remote.c (remote_get_trace_status): Remove setting default
1543 values of fields of 'ts'.
1544
1545 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Fix internal error on canonicalization of clang types.
1548 * cp-name-parser.y (operator): New comment at make_operator call for
1549 new, delete, new[] and delete[].
1550 (exp): Use "sizeof ". Add new comment at make_operator call.
1551
1552 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1553
1554 Fix disassemble without parameters in tailcall frame.
1555 * cli/cli-cmds.c (disassemble_current_function): Use
1556 get_frame_address_in_block.
1557
1558 2012-09-21 Tom Tromey <tromey@redhat.com>
1559
1560 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1561 TYPE_CODE_UNION>: Unify, removing a goto.
1562
1563 2012-09-21 Tom Tromey <tromey@redhat.com>
1564
1565 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1566
1567 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1568
1569 * findvar.c (read_frame_register_value): Mark the result value as
1570 optimized out if any of the input registers have been optimized out.
1571
1572 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1573
1574 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1575
1576 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1577
1578 * eval.c (evaluate_subexp_standard): Eliminate single-use
1579 variable LOWER.
1580
1581 2012-09-21 Yao Qi <yao@codesourcery.com>
1582
1583 * mi/mi-interp.c: Declare mi_record_changed.
1584 (mi_interpreter_init): Call observer_attach_record_changed.
1585 (mi_record_changed): New.
1586 * record.c (record_open): Call observer_notify_record_changed.
1587 (cmd_record_stop): Call observer_notify_record_changed.
1588 * NEWS: Mention it.
1589
1590 2012-09-20 Tom Tromey <tromey@redhat.com>
1591
1592 * NEWS: Update.
1593 * python/python.c (finalize_python): New function.
1594 (_initialize_python): Make a final cleanup.
1595
1596 2012-09-19 Doug Evans <dje@google.com>
1597
1598 * buildsym.h (param_symbols): Delete, unused.
1599 (context_stack): Delete member "params", unused.
1600 * buildsym.c (push_context): Update.
1601 * dwarf2read.c (read_func_scope): Update.
1602
1603 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1604
1605 * sh-tdep.c (sh_register_convert_to_virtual)
1606 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1607 all callers. Just do a memcpy if not the little-endian case.
1608
1609 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1610 set_gdbarch_double_format and set_gdbarch_long_double_format.
1611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1612 set_gdbarch_double_format.
1613 * sh-tdep.c (sh_gdbarch_init): Likewise.
1614
1615 * NEWS: Document the removal of SH's 'regs' command.
1616 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1617 command.
1618
1619 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1620
1621 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1622 `jump'.
1623
1624 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1625
1626 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1627 language when iterating over symbols.
1628
1629 2012-09-18 Yao Qi <yao@codesourcery.com>
1630
1631 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1632 (mi_interpreter_init): Call observer_attach_tsv_created and
1633 observer_attach_tsv_deleted.
1634 (mi_tsv_created, mi_tsv_deleted): New.
1635 * tracepoint.c (delete_trace_state_variable): Call
1636 observer_notify_tsv_deleted.
1637 (trace_variable_command): Call observer_notify_tsv_created.
1638 (delete_trace_variable_command): Call
1639 observer_notify_tsv_deleted.
1640 (create_tsv_from_upload): Call observer_notify_tsv_created.
1641 * NEWS: Mention it.
1642
1643 2012-09-18 Yao Qi <yao@codesourcery.com>
1644
1645 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1646 if traceframe changed.
1647 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1648 "trace-find".
1649 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1650 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1651 'traceframe_changed'.
1652 (mi_traceframe_changed): New.
1653 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1654 New field.
1655 * NEWS: Mention the new MI notification.
1656
1657 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1658
1659 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1660
1661 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1664 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1665 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1666 Extend code also for PaX support. Convert all gdb_assert to warning
1667 calls.
1668
1669 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1670
1671 Implement auto-load user conveniences suggested by Doug Evans.
1672 * auto-load.c: Include top.h.
1673 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1674 (_initialize_auto_load): New variable scripts_directory_help. Mention
1675 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1676 scripts-directory. Document in online help one can use also files for
1677 set auto-load safe-path.
1678 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1679 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1680
1681 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1682
1683 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1684 of LEN.
1685
1686 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1687
1688 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1689 ELTLEN and use TYPE_LENGTH directly.
1690 (m2_val_print): Likewise.
1691 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1692 variable LEN and use TYPE_LENGTH directly.
1693 (m68k_svr4_store_return_value): Likewise.
1694 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1695 ARGLEN and use TYPE_LENGTH directly.
1696 (mips_o64_push_dummy_call): Likewise.
1697 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1698 variable LENGTH and use TYPE_LENGTH directly.
1699 (s390_function_arg_float): Likewise.
1700 (s390_function_arg_integer): Likewise.
1701 (s390_push_dummy_call): Likewise.
1702 (s390_return_value_convention): Likewise.
1703 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1704 TYPE_LENGTH directly.
1705
1706 2012-09-17 Yao Qi <yao@codesourcery.com>
1707
1708 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1709 Update comment to add_setshow_integer_cmd.
1710 * cli/cli-setshow.c (do_set_command): Handle case
1711 'var_zuinteger_unlimited'.
1712 (do_show_command): Likewise.
1713 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1714 for command 'remotetimeout'.
1715 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1716 to var_integer.
1717 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1718 for command 'set listsize'.
1719
1720 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1721
1722 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1723 variable LEN.
1724
1725 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1726
1727 PR 14119
1728 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1729 (frame_pop): Drop also TAILCALL_FRAME frames.
1730 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1731
1732 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1733 Pedro Alves <palves@redhat.com>
1734
1735 PR 14548
1736 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1737 function start if we are already at function start. Both for
1738 reverse-next and for reverse-step into function without line number
1739 info.
1740
1741 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1742
1743 Code cleanup - rename 'inline' depth to 'artificial' depth.
1744 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1745 frame_id_artificial_p, extend the comment.
1746 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1747 * frame.c (fprint_frame_id): Rename at a user, change debug output
1748 text to "artificial=".
1749 (skip_inlined_frames): Rename to ...
1750 (skip_artificial_frames): ... here. Extend the comment.
1751 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1752 (frame_id_inlined_p): Rename to ...
1753 (frame_id_artificial_p): ... here. Rename at a user.
1754 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1755 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1756 at a user.
1757 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1758 Extend the comment.
1759 (frame_id_inlined_p): Rename to ...
1760 (frame_id_artificial_p): ... here.
1761 * inline-frame.c (inline_frame_this_id): Rename at a user.
1762
1763 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1764
1765 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1766 vector variables using vector_size syntax rather than array
1767 syntax.
1768
1769 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1770
1771 * valarith.c (value_concat): Replace unsafe ALLOCA with
1772 XMALLOC/XFREE.
1773
1774 2012-09-14 Pedro Alves <palves@redhat.com>
1775
1776 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1777
1778 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1779
1780 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1781 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1782 data-directory as appropriate.
1783
1784 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1785
1786 * printcmd.c (ui_printf): Eliminate single-use variable
1787 PARAM_LEN.
1788
1789 2012-09-14 Yao Qi <yao@codesourcery.com>
1790 Pedro Alves <palves@redhat.com>
1791
1792 * valops.c (value_assign): Move observer_notify_target_changed
1793 below to replace reinit_frame_cache.
1794
1795 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1796
1797 Refactor Python "gdb" module into a proper Python package, by
1798 introducing a new "_gdb" module for code implemented in C, and
1799 using reload/__import__ instead of exec.
1800 * python/lib/gdb/__init__.py: Import * from _gdb.
1801 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1802 prompt_hook, sys.argv): Moved from finish_python_initialization.
1803 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1804 (packages, auto_load_packages): New list and function replacing
1805 module_dict and auto-loading code, using __file__ instead of
1806 gdb.PYTHONDIR and reload/__import__ instead of exec.
1807 (GdbSetPythonDirectory): Replacing function of the same name
1808 from finish_python_initialization, using reload/__import__ instead
1809 of exec, as well as call auto_load_packages.
1810 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1811 gdb_python_module and not gdb_module.
1812 * python/python-internal.h (gdb_python_module): Declare.
1813 * python/python.c (gdb_python_module): New global.
1814 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1815 (_initialize_python): Rename gdb module to _gdb.
1816 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1817 (finish_python_initialization): Move Python code to
1818 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1819 __main__.
1820
1821 2012-09-13 Pedro Alves <palves@redhat.com>
1822
1823 * Makefile.in (COMMON_OBS): Add registry.o.
1824 * registry.c: New file.
1825 * registry.h (struct registry_container): Declare.
1826 (registry_data_callback): New typedef.
1827 (struct registry_data, struct registry_data_registration, struct
1828 registry_data_registry): New type.
1829 (register_data_with_cleanup, registry_alloc_data)
1830 (registry_callback_adaptor, registry_clear_data)
1831 (registry_container_free_data, registry_set_data, registry_data):
1832 Declare.
1833 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1834 the new common structures and functions.
1835 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1836 callback typedefs.
1837
1838 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1839
1840 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1841 there is an error inserting hardware breakpoints and use the
1842 error message from the target.
1843
1844 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1845 Catch this exception and print the error message contained within. Do not
1846 print the default hardware error breakpoint message in this case.
1847
1848 2012-09-12 Doug Evans <dje@google.com>
1849
1850 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1851 cu == NULL.
1852
1853 2012-09-11 Doug Evans <dje@google.com>
1854
1855 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1856 .gdb_index symbol attributes if there are none.
1857
1858 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1859
1860 * symtab.h (struct minimal_symbol) [has_size]: New field.
1861 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1862 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1863 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1864 minimal symbols if the symbol's size is actually known.
1865 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1866 of msymbol's size field. Add comment.
1867 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1868 SET_MSYMBOL_SIZE to set the minimal symbol size.
1869
1870 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1871
1872 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1873 minimal_symbol struct object, rather than setting some of its
1874 fields one by one.
1875
1876 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1877
1878 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1879 passed_a_ptr flag when displaying typedef types.
1880
1881 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1882
1883 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1884 the optimized_out flag is preserved.
1885
1886 2012-09-10 Anthony Green <green@moxielogic.com>
1887
1888 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1889 prologue changes in GCC.
1890
1891 2012-09-10 Keith Seitz <keiths@redhat.com>
1892
1893 PR gdb/13483
1894 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1895 (BOOL_CONVERSION_BADNESS): ... this.
1896 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1897 (rank_one_type): Allow all boolean conversions
1898 permitted by the standard.
1899
1900 2012-09-06 Tom Tromey <tromey@redhat.com>
1901
1902 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1903 Don't decref py_objfile.
1904
1905 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1906
1907 Do not enable -lmcheck by default when Python is enabled with
1908 threading support.
1909 * configure.ac: (python_has_threads) New variable, by testing
1910 if WITH_THREAD is defined in Python.h.
1911 Move --enable-lmcheck after --with-python.
1912 Do not enable -lmcheck by default if python_has_threads=yes.
1913 Warn if --enable-lmcheck and python_has_threads=yes.
1914 * configure: Regenerate.
1915
1916 2012-08-31 Yao Qi <yao@codesourcery.com>
1917
1918 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1919 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1920 Update some commands.
1921 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1922 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1923 to 1.
1924
1925 2012-08-31 Yao Qi <yao@codesourcery.com>
1926
1927 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1928
1929 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1930
1931 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1932
1933 2012-08-29 Doug Evans <dje@google.com>
1934
1935 * main.c (print_gdb_help): Remove reference to
1936 --use-deprecated-index-sections.
1937
1938 2012-08-28 Yao Qi <yao@codesourcery.com>
1939
1940 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1941 (init_cmds): Call add_setshow_uinteger_cmd for command
1942 'max-user-call-depth'.
1943 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1944 declaration of 'max_user_call_depth'.
1945 * frame.c (backtrace_limit): Add 'unsigned'.
1946 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1947 'limit'.
1948 * remote.c (remoteaddresssize): Add 'unsigned'.
1949 (remote_address_masked): Change local var 'address_size' to
1950 'unsigned'.
1951 (_initialize_remote): Call add_setshow_uinteger_cmd for
1952 'remoteaddresssize'.
1953 * top.c (history_size): Add 'unsigned'.
1954 (show_commands): Change local variables to 'unsigned'.
1955 (set_history_size_command): Don't check history_size is negative.
1956 Adjust the condition to call unstifle_history and set history_size
1957 to UNIT_MAX.
1958
1959 2012-08-28 Pedro Alves <palves@redhat.com>
1960
1961 PR gdb/14428
1962
1963 * infcmd.c (default_print_one_register_info): New, factored out
1964 from default_print_registers_info.
1965 (default_print_registers_info): Use it. Mark value unavailable if
1966 necessary.
1967 (registers_info): Print user registers with
1968 default_print_one_register_info.
1969
1970 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1971
1972 PR tui/14486
1973 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1974 is not NULL before referencing it.
1975
1976 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1977
1978 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1979 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1980 original PC for it.
1981
1982 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1983 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 * auto-load.c (auto_load_objfile_script): Rename to ...
1986 (auto_load_objfile_script_1): ... here, change variable realname to
1987 parameter realname, document it, add return value, add variable retval.
1988 (auto_load_objfile_script): New function.
1989
1990 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1991
1992 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1993 followed by a whitespace.
1994
1995 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 PR gdb/14494.
1998 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1999 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2000 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2001 here.
2002
2003 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2004
2005 * memattr.c (create_mem_region): Fix memory region overlapping
2006 checking.
2007
2008 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2009
2010 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2011 with xmalloc/cleanup.
2012 * mt-tdep.c (mt_push_dummy_call): Likewise.
2013 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2014 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2015
2016 2012-08-24 Yao Qi <yao@codesourcery.com>
2017
2018 * jv-exp.y (push_expression_name): Add "." at the end of error
2019 message.
2020
2021 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2022
2023 Document how to return from "python-interactive" to GDB.
2024 * python/python.c (_initialize_python): Update documentation.
2025
2026 2012-08-23 Pedro Alves <palves@redhat.com>
2027
2028 * infrun.c (_initialize_infrun) <handle command help text>:
2029 Mention that multiple signals are supported.
2030
2031 2012-08-23 Pedro Alves <palves@redhat.com>
2032
2033 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2034 string.
2035
2036 2012-08-23 Yao Qi <yao@codesourcery.com>
2037
2038 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2039 (tfind_1): Don't call registers_changed, set_traceframe_num,
2040 and clear_traceframe_info.
2041 Call set_current_traceframe.
2042 (set_current_traceframe): call set_traceframe_num.
2043
2044 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2045
2046 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2047 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2048
2049 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2050
2051 Enable readline in Python in a GDB-specific way and block the
2052 standard Python readline module to prevent conflicts with GDB.
2053 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2054 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2055 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2056 * python/py-gdb-readline.c: New file.
2057 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2058 prototype.
2059 * python/python.c (_initialize_python): Call
2060 gdbpy_initialize_gdb_readline.
2061
2062 2012-08-22 Keith Seitz <keiths@redhat.com>
2063
2064 * defs.h: Include build-gnulib/config.h
2065
2066 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2067
2068 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2069 and blx pc.
2070
2071 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2072
2073 Add a new "python-interactive" command that starts a standard
2074 Python interactive prompt with "pi" as alias, and add "py" as
2075 an alias to "python".
2076 * NEWS: Mention the new commands.
2077 * python/python.c (eval_python_command): New function.
2078 (python_interactive_command): For "python-interactive" with
2079 arguments, call eval_python_command. For "python-interactive"
2080 without arguments, call PyRun_InteractiveLoop.
2081 (_initialize_python): Add "python-interactive" command with
2082 "pi" as alias, and add "py" as an alias to "python".
2083
2084 2012-08-22 Tom Tromey <tromey@redhat.com>
2085
2086 * defs.h (quit_flag): Don't declare.
2087 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2088 (QUIT): Use new functions.
2089 * event-top.c (command_handler): Use clear_quit_flag.
2090 (handle_sigint): Use set_quit_flag.
2091 (async_request_quit): Use check_quit_flag. Don't check
2092 immediate_quit.
2093 * exceptions.c (throw_exception): Use clear_quit_flag.
2094 * main.c (captured_main): Use clear_quit_flag.
2095 * python/python.c (clear_quit_flag, set_quit_flag)
2096 (check_quit_flag): New functions.
2097 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2098 clear_quit_flag.
2099 * remote.c (remote_wait_as): Use check_quit_flag,
2100 clear_quit_flag.
2101 (remote_start_remote): Call QUIT.
2102 * symfile.c (load_progress): Use check_quit_flag.
2103 * top.c (command_loop): Use clear_quit_flag.
2104 (command_line_input): Call QUIT.
2105 * utils.c (quit_flag): Conditionally define.
2106 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2107 functions.
2108 (prompt_for_continue): Call QUIT. Use quit, not
2109 async_request_quit.
2110 * remote-mips.c (mips_expect_timeout): Call QUIT.
2111 * monitor.c (monitor_expect): Call QUIT.
2112
2113 2012-08-22 Tom Tromey <tromey@redhat.com>
2114
2115 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2116 (async_init_signals): Update.
2117 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2118 (SIGWINCH_HANDLER_BODY): Remove.
2119
2120 2012-08-22 Tom Tromey <tromey@redhat.com>
2121
2122 * jit.c (jit_object_close_impl): Don't malloc the objfile
2123 name.
2124 * objfiles.c (allocate_objfile): Don't malloc the objfile
2125 name.
2126 (free_objfile): Don't free the objfile name.
2127 * objfiles.h (struct objfile) <name>: Update comment.
2128 * symfile.c (reread_symbols): Fix reference counting. Don't
2129 malloc objfile name.
2130
2131 2012-08-22 Tom Tromey <tromey@redhat.com>
2132
2133 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2134 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2135 (symfile_bfd_open): Likewise.
2136 (generic_load): Likewise.
2137 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2138 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2139 gdb_bfd_open.
2140 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2141 Use gdb_bfd_open.
2142 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2143 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2144 (pmon_load_fast): Likewise.
2145 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2146 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2147 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2148 (macho_check_dsym): Likewise.
2149 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2150 (m32r_upload_command): Likewise.
2151 * gdb_bfd.h (gdb_bfd_cache): Declare.
2152 * gdb_bfd.c (struct gdb_bfd_data): New.
2153 (gdb_bfd_cache): New global.
2154 (struct gdb_bfd_cache_search): New.
2155 (hash_bfd): New function.
2156 (eq_bfd): Likewise.
2157 (gdb_bfd_open): Likewise.
2158 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2159 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2160 gdb_bfd_data.
2161 * exec.c (exec_file_attach): Use gdb_bfd_open.
2162 * dsrec.c (load_srec): Use gdb_bfd_open.
2163
2164 2012-08-22 Tom Tromey <tromey@redhat.com>
2165
2166 * dwarf2read.c (macro_start_file): Update.
2167 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2168 (free_objfile_per_bfd_storage): Destroy macro_cache.
2169 (allocate_objfile, free_objfile): Update.
2170 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2171 New field.
2172 (struct objfile) <macro_cache>: Remove.
2173 * symfile.c (reread_symbols): Update.
2174 * symmisc.c (print_symbol_bcache_statistics): Update.
2175 (print_objfile_statistics): Update.
2176
2177 2012-08-22 Tom Tromey <tromey@redhat.com>
2178
2179 * elfread.c (elf_symtab_read): Update.
2180 * objfiles.c (objfiles_bfd_data): New global.
2181 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2182 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2183 (allocate_objfile, free_objfile): Update.
2184 (_initialize_objfiles): Initialize objfiles_bfd_data.
2185 * objfiles.h (struct objfile_per_bfd_storage): New.
2186 (struct objfile) <per_bfd>: New field.
2187 <filename_cache>: Remove.
2188 (set_objfile_per_bfd): Declare.
2189 * symfile.c (reread_symbols): Update. Call
2190 set_objfile_per_bfd.
2191 (allocate_symtab): Update.
2192 * symmisc.c (print_symbol_bcache_statistics): Update.
2193 (print_objfile_statistics): Print the size of the BFD obstack.
2194
2195 2012-08-22 Tom Tromey <tromey@redhat.com>
2196
2197 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2198 * gdb_bfd.c: Use DEFINE_REGISTRY.
2199 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2200 (gdb_bfd_ref): Call bfd_alloc_data.
2201 (gdb_bfd_unref): Call bfd_free_data.
2202
2203 2012-08-22 Tom Tromey <tromey@redhat.com>
2204
2205 * registry.h (struct registry_fields): New.
2206 (REGISTRY_FIELDS): Redefine.
2207 (REGISTRY_ACCESS_FIELD): New macro.
2208 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2209 functions.
2210
2211 2012-08-22 Tom Tromey <tromey@redhat.com>
2212
2213 * auto-load.c (_initialize_auto_load): Update.
2214 * solib-svr4.c (_initialize_svr4_solib): Update
2215 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2216 * solib-darwin.c (_initialize_darwin_solib): Update.
2217 * registry.h: New file.
2218 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2219 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2220 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2221 (register_program_space_data_with_cleanup)
2222 (register_program_space_data, program_space_alloc_data)
2223 (clear_program_space_data, set_program_space_data)
2224 (program_space_data): Don't declare.
2225 * progspace.c: Use DEFINE_REGISTRY.
2226 (struct program_space_data, struct
2227 program_space_data_registration, struct
2228 program_space_data_registry, program_space_data_registry)
2229 (register_program_space_data_with_cleanup)
2230 (register_program_space_data, program_space_alloc_data)
2231 (program_space_free_data, clear_program_space_data)
2232 (set_program_space_data, program_space_data): Remove.
2233 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2234 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2235 (register_objfile_data_with_cleanup, register_objfile_data)
2236 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2237 declare.
2238 * objfiles.c: Use DEFINE_REGISTRY.
2239 (struct objfile_data, struct objfile_data_registration, struct
2240 objfile_data_registry, objfile_data_registry)
2241 (register_objfile_data_with_cleanup, register_objfile_data)
2242 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2243 (set_objfile_data, objfile_data): Remove.
2244 (_initialize_objfiles): Update.
2245 * jit.c (_initialize_jit): Update.
2246 * inflow.c (_initialize_inflow): Update.
2247 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2248 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2249 (register_inferior_data_with_cleanup, register_inferior_data)
2250 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2251 declare.
2252 * inferior.c: Use DEFINE_REGISTRY.
2253 (struct inferior_data, struct inferior_data_registration, struct
2254 inferior_data_registry, inferior_data_registry)
2255 (register_inferior_data_with_cleanup, register_inferior_data)
2256 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2257 (set_inferior_data, inferior_data): Remove.
2258 * auxv.c (_initialize_auxv): Update.
2259 * ada-lang.c (_initialize_ada_language): Update.
2260 * breakpoint.c (_initialize_breakpoint): Update.
2261 * i386-nat.c (i386_use_watchpoints): Update.
2262
2263 2012-08-22 Tom Tromey <tromey@redhat.com>
2264
2265 * exec.c (exec_close, exec_file_attach): Update.
2266 (add_to_section_table): Initialize 'key' field.
2267 (add_target_sections, remove_target_sections): Add 'key' argument.
2268 * exec.h (add_target_sections, remove_target_sections): Add
2269 'key' argument.
2270 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2271 (reload_shared_libraries_1): Update.
2272 * target.h (struct target_section) <key>: New field.
2273
2274 2012-08-22 Tom Tromey <tromey@redhat.com>
2275
2276 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2277
2278 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2279
2280 * symfile.c (allocate_symtab): Use host_address_to_string
2281 function instead of cast of pointer to long which is not
2282 compatible with x86_64-w64-mingw32 build.
2283
2284 2012-08-19 Andrew Pinski <apinski@cavium.com>
2285
2286 * mips-tdep.c (is_octeon): New function.
2287 (is_octeon_bbit_op): New function.
2288 (mips32_next_pc): Handle Octeon's bbit instructions.
2289 (mips32_instruction_has_delay_slot): Likewise.
2290
2291 2012-08-19 Andrew Pinski <apinski@cavium.com>
2292
2293 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2294 before the function.
2295
2296 2012-08-19 Andrew Pinski <apinski@cavium.com>
2297
2298 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2299
2300 2012-08-19 Keith Seitz <keiths@redhat.com>
2301
2302 PR c++/14365
2303 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2304 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2305
2306 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2307
2308 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2309 The typo broke "make TAGS".
2310
2311 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2312
2313 GDB 7.5 released.
2314
2315 2012-08-17 Keith Seitz <keiths@redhat.com>
2316
2317 PR c++/13356
2318 * gdbtypes.c (strict_type_checking): New variable.
2319 (show_strict_type_checking): New function.
2320 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2321 if strict type checking is disabled.
2322 (_initialize_gdbtypes): Add "check type" subcommand.
2323 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2324
2325 2012-08-17 Keith Seitz <keiths@redhat.com>
2326
2327 * language.h (type_mode): Remove.
2328 (type_check): Remove.
2329 (struct language_defn): Remove la_type_check.
2330 (STRICT_TYPE): Remove unused macro.
2331 (type_error): Remove.
2332 * language.c (set_type_range_case): Renamed to ...
2333 (set_range_case): ... this. Update all callers.
2334 Remove type_mode/type_check.
2335 (type_mode): Remove.
2336 (type_check): Remove.
2337 (show_type_command): Remove.
2338 (set_type_command): Remove.
2339 (language_info): Remove type checking output.
2340 (type_error): Remove unused function.
2341 (range_error): Update comment.
2342 (unknown_language_defn): Remove la_type_check.
2343 (auto_language_defn): Likewise.
2344 (local_language_defn): Likewise.
2345 (_initialize_language): Remove "check type" subcommand.
2346 * ada-lang.c (ada_language_defn): Remove la_type_check.
2347 * c-lang.c (c_language_defn): Likewise.
2348 (cplus_language_defn): Likewise.
2349 (asm_language_defn): Likewise.
2350 (minimal_language_defn): Likewise.
2351 * d-lang.c (d_language_defn): Likewise.
2352 * f-lang.c (f_language_defn): Likewise.
2353 * go-lang.c (go_language_defn): Likewise.
2354 * jv-lang.c (java_language_defn): Likewise.
2355 * m2-lang.c (m2_language_defn): Likewise.
2356 * objc-lang.c (objc_language_defn): Likewise.
2357 * opencl-lang.c (opencl_language_defn): Likewise.
2358 * p-lang.c (pascal_language_defn): Likewise.
2359
2360 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2361
2362 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2363
2364 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2365
2366 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2367 New function.
2368 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2369 using the regache. Use ia64_hpux_get_register_from_save_state_t
2370 to access the bsp and bspstore registers if not.
2371
2372 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2373
2374 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2375 * breakpoint.c (detach_breakpoints): Change pid parameter into
2376 a ptid. Adjust code accordingly.
2377 * infrun.c (handle_inferior_event): Delete variable child_pid.
2378 Update call to detach_breakpoints to pass the child ptid for
2379 fork events.
2380 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2381 assert that inferior_ptid's lwp is zero.
2382 (linux_handle_extended_wait): Update call to detach_breakpoints.
2383 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2384 detach_breakpoints.
2385
2386 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2387
2388 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2389 parent, only call detach_breakpoints if tts.tts_event ==
2390 TTEVT_VFORK.
2391
2392 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2393
2394 * dwarf2-frame.c (dwarf2_frame_cache): Use
2395 get_frame_address_in_block instead of get_frame_pc as
2396 the bound for executing the frame's FDE.
2397
2398 2012-08-16 Yao Qi <yao@codesourcery.com>
2399
2400 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2401 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2402 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2403 (c_type_print_varspec_suffix): Likewise.
2404 * eval.c (evaluate_subexp_standard): Likewise.
2405 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2406 (f_type_print_varspec_suffix): Likewise.
2407 * gdbtypes.c (is_scalar_type): Likewise.
2408 (recursive_dump_type): Likewise.
2409 * infcall.c (value_arg_coerce): Likewise.
2410 * m2-valprint.c (m2_val_print): Likewise.
2411 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2412 (pascal_type_print_varspec_suffix): Likewise.
2413 (pascal_type_print_base): Likewise.
2414 * p-valprint.c (pascal_val_print): Likewise.
2415 (pascal_val_print): Likewise.
2416 * valops.c (value_slice): Likewise.
2417 * valprint.c (scalar_type_p): Likewise.
2418 * valarith.c (value_bitstring_subscript): Remove.
2419 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2420 Remove comment on TYPE_CODE_BITSTRING.
2421
2422 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2423 TYPE_CODE_BITSTRING.
2424
2425 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2426 slot 0.
2427
2428 2012-08-16 Yao Qi <yao@codesourcery.com>
2429
2430 * tracepoint.c (trace_find_none_command): Remove.
2431 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2432
2433 2012-08-16 Yao Qi <yao@codesourcery.com>
2434
2435 * remote.c (handle_notification): Remove parameter 'length'.
2436 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2437
2438 2012-08-15 Keith Seitz <keiths@redhat.com>
2439
2440 * gdbtypes.c (opaque_type_resolution): Make static.
2441 Add missing comment.
2442 (overload_debug): Add missing comment.
2443 (show_opaque_type_resolution): Likewise.
2444 (show_overload_debug): Likewise.
2445 (print_bit_vector): Remove unnecessary forward declaration.
2446 (print_arg_types): Likewise.
2447 (dump_fn_fieldlists): Likewise.
2448 (print_cplus_stuff): Likewise.
2449
2450 2012-08-15 Tom Tromey <tromey@redhat.com>
2451
2452 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2453 (gdb_bfd_ref): Initialize new field.
2454 (gdb_bfd_unref): Unref the archive BFD.
2455 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2456 parent archive.
2457
2458 2012-08-15 Tom Tromey <tromey@redhat.com>
2459
2460 PR python/14387:
2461 * python/py-bpevent.c (create_breakpoint_event_object): Update
2462 comment.
2463 * python/py-event.c (evpy_add_attribute): Update comment.
2464 * python/py-exitedevent.c (create_exited_event_object): Fix
2465 reference counting and error handling.
2466 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2467 Fix reference counting.
2468 * python/py-signalevent.c (create_signal_event_object): Fix
2469 reference counting and error handling.
2470 * python/py-stopevent.c (emit_stop_event): Fix reference
2471 counting.
2472 * python/py-threadevent.c (get_event_thread): Return a
2473 borrowed reference.
2474 * python/py-type.c (convert_field): Fix reference counting.
2475
2476 2012-08-15 Tom Tromey <tromey@redhat.com>
2477
2478 * dwarf2read.c (dwarf_decode_macro_bytes)
2479 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2480 as hash key.
2481
2482 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2483
2484 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2485 stepi, nexti, finish, next, step, jump, and continue commands.
2486 * infrun.c (_initialize_infrun): Update help text for the handle
2487 command.
2488
2489 2012-08-14 Doug Evans <dje@google.com>
2490
2491 * gdbtypes.c (struct extra): Delete, unused.
2492
2493 * gdbtypes.c: Whitespace cleanup.
2494 (address_space_name_to_int): Remove "extern" from definition.
2495 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2496
2497 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2498 TYPE_POINTER_TYPE (type).
2499
2500 2012-08-14 Gary Benson <gbenson@redhat.com>
2501
2502 * solib-svr4.c (svr4_free_library_list): Use free_so.
2503
2504 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2505
2506 * .gitignore: Add go-exp.c.
2507
2508 2012-08-13 Doug Evans <dje@google.com>
2509
2510 * value.c (show_convenience): Tweak comment.
2511 (_initialize_values): Mention convenience functions in the help text
2512 for "show convenience".
2513
2514 2012-08-13 Yao Qi <yao@codesourcery.com>
2515
2516 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2517 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2518 TERNOP_SLICE_COUNT.
2519 * eval.c (evaluate_subexp_standard): Likewise.
2520 * expprint.c (print_subexp_standard): Likewise.
2521 (dump_subexp_body_standard): Likewise.
2522 * parse.c (operator_length_standard): Likewise.
2523
2524 2012-08-13 Yao Qi <yao@codesourcery.com>
2525
2526 * std-operator.def: Remove OP_BITSTRING.
2527 * breakpoint.c (watchpoint_exp_is_const): Update.
2528 * eval.c (evaluate_subexp_standard): Remove handling to
2529 OP_BITSTRING.
2530 * expprint.c (print_subexp_standard): Likewise.
2531 (dump_subexp_body_standard): Likewise.
2532 * parse.c (operator_length_standard): Likewise.
2533 * valops.c (value_bitstring): Remove.
2534 * value.h: Remove the declaration of 'value_bitstring'.
2535
2536 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2537
2538 * linespec.c (find_methods): Remove unused variables `i1' and
2539 `name_len'.
2540 (decode_line_full): Likewise for `arg_start'.
2541
2542 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2543
2544 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2545 (zlib_decompress_section): Likewise for `section_data'.
2546 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2547
2548 2012-08-10 Doug Evans <dje@google.com>
2549
2550 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2551 * NEWS: Document them.
2552 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2553 function/strfns.py.
2554 * python/py-type.c (typy_array_1): New function.
2555 (typy_array): Call it.
2556 (typy_vector): New function.
2557 (type_object_methods): Add "vector".
2558 * python/lib/gdb/function/__init__.py: New file.
2559 * python/lib/gdb/function/strfns.py: New file.
2560
2561 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2562
2563 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2564 for TYPE_FIELD_BITPOS.
2565 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2566
2567 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2568
2569 PR cli/10436:
2570 * common/vec.h (VEC_merge): Define.
2571 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2572 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2573 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2574 * completer.c: Include gdb_signals.h.
2575 (signal_completer): Define.
2576 * completer.h (signal_completer): Add prototype.
2577 * infcmd.c (_initialize_infcmd): Assign the command
2578 completer for "signal" to handle_completer.
2579 * infrun.c: Include completer.h.
2580 (handle_completer): Define.
2581 (_initialize_infrun): Declare a new local variable c. Store the
2582 result of add_com("handle") to it. Assign the command
2583 completer for "handle" to handle_completer.
2584
2585 2012-08-09 Yao Qi <yao@codesourcery.com>
2586
2587 * cli/cli-decode.c (set_cmd_prefix): New.
2588 (lookup_cmd_for_prefixlist): New.
2589 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2590 of each cmd_list_element in *prefixlist.
2591 (add_setshow_cmd_full): set_cmd_prefix.
2592 (add_alias_cmd): Likewise.
2593 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2594 Declare 'auto_boolean_enums'.
2595 * cli/cli-setshow.c: Include "observer.h".
2596 (notify_command_param_changed_p): New.
2597 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2598 Remove 'static'.
2599 (do_setshow_command): Split it to ...
2600 (do_set_command, do_show_command): ... them. New.
2601 (do_set_command): Call observer_notify_command_param_changed if
2602 notify_command_param_changed_p returns true.
2603 (cmd_show_list): Caller update.
2604 * auto-load.c (set_auto_load_cmd): Likewise.
2605 * remote.c (show_remote_cmd): Likewise.
2606 * cli/cli-setshow.h: Update declarations.
2607 * top.c (execute_command): Call do_set_command and do_show_command.
2608
2609 * NEWS: Mention new MI notification.
2610 * mi/mi-interp.c: Declare mi_command_param_changed.
2611 (mi_interpreter_init): Attach mi_command_param_changed to
2612 observer command_param_changed.
2613 (mi_command_param_changed): New.
2614 Remove mi_suppress_breakpoint_notifications.
2615 Define global variable mi_suppress_notification.
2616 (mi_breakpoint_created): Update.
2617 (mi_breakpoint_deleted): Likewise.
2618 (mi_breakpoint_modified): Likewise.
2619 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2620 'gdb-set' and set mi_suppress_notification.
2621 * mi/mi-main.h: (mi_suppress_notification): New struct.
2622
2623 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2624 Jan Kratochvil <jan.kratochvil@redhat.com>
2625
2626 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2627
2628 2012-08-09 Yao Qi <yao@codesourcery.com>
2629
2630 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2631 (skiplist): Move it to skip.c.
2632 (init_cmd_lists): Remove code setting enablebreaklist and
2633 skiplist to NULL.
2634 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2635 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2636 skiplist.
2637 * gdbcmd.h: Likewise.
2638 * skip.c (_initialize_step_skip): Move 'skiplist' from
2639 cli/cli-cmds.c.
2640
2641 2012-08-09 Yao Qi <yao@codesourcery.com>
2642
2643 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2644 * gnu-nat.c, symfile.c: Likewise.
2645
2646 2012-08-08 Aaron Gamble <agamble@google.com>
2647
2648 * utils.c (prompt_for_continue_wait_time): New static global.
2649 (make_command_stats_cleanup): Initialize it.
2650 (report_command_stats): Subtract time waiting for user.
2651 (prompt_for_continue): Track time waiting for user.
2652 (defaulted_query): Track time waiting for user.
2653
2654 2012-08-08 Doug Evans <dje@google.com>
2655
2656 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2657 UNOP_MEMVAL_TYPE.
2658 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2659 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2660 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2661 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2662 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2663 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2664 elt.
2665 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2666 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2667 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2668 (dump_prefix_expression): Handle OP_TYPE.
2669
2670 2012-08-08 Keith Seitz <keiths@redhat.com>
2671
2672 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2673 addr_start.
2674
2675 2012-08-08 Doug Evans <dje@google.com>
2676
2677 * linux-thread-db.c: #include "gdb_vecs.h".
2678 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2679 updated.
2680 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2681 (thread_db_load_search): Use a vector to iterate over path elements.
2682 Handle text appearing after "$pdir".
2683
2684 * gdb_string.h: Moved to ...
2685 * common/gdb_string.h: ... here.
2686 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2687 gdb_string.h and gdb_assert.h.
2688
2689 2012-08-08 Yao Qi <yao@codesourcery.com>
2690
2691 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2692 (tic6x_value_to_register): Likewise.
2693 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2694 and set_gdbarch_value_to_register.
2695
2696 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2697 Jean-Marc Saffroy <saffroy@gmail.com>
2698
2699 PR 11804
2700 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2701 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2702 * gcore.c (gcore_create_callback): New function comment. Add modified
2703 parameter. Only write modified regions. Set SEC_READONLY exactly
2704 according to MODIFIED.
2705 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2706 the passed modified value to FUNC.
2707 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2708 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2709 first. New variables modified and has_anonymous. Parse the lines of
2710 smaps file. Add the passed MODIFIED value to FUNC.
2711 * procfs.c (find_memory_regions_callback): Add the passed modified
2712 value.
2713
2714 2012-08-06 Tom Tromey <tromey@redhat.com>
2715
2716 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2717 (dwarf2_frame_cache): Use it.
2718 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2719 cache initialization constraint.
2720
2721 2012-08-06 Tom Tromey <tromey@redhat.com>
2722
2723 PR python/14386:
2724 * varobj.c (update_dynamic_varobj_children): Don't call
2725 PyIter_Check.
2726
2727 2012-08-06 Tom Tromey <tromey@redhat.com>
2728
2729 PR cli/14392:
2730 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2731
2732 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2733
2734 * NEWS: New entry for 'cd' default parameters.
2735 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2736
2737 2012-08-03 Tom Tromey <tromey@redhat.com>
2738
2739 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2740 return.
2741
2742 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2743
2744 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2745 to attempting lseek/write.
2746 (inf_child_fileio_pread): Likewise for pread.
2747
2748 2012-08-02 Yao Qi <yao@codesourcery.com>
2749
2750 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2751 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2752 add_setshow_zinteger_cmd.
2753 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2754 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2755 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2756 instead of add_setshow_zinteger_cmd.
2757 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2758 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2759 instead of add_setshow_zinteger_cmd.
2760 * frame.c (frame_debug): Add 'unsigned'.
2761 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2762 add_setshow_zinteger_cmd.
2763 * frame.h: Update the declaration of 'frame_debug'.
2764 * gdbtypes.c (overload_debug): Add 'unsigned'.
2765 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2766 add_setshow_zinteger_cmd.
2767 * inferior.h: Update declaration of 'debug_infrun'.
2768 * infrun.c (debug_infrun): Add 'unsigned'.
2769 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2770 add_setshow_zinteger_cmd.
2771 * jit.c (jit_debug): Add 'unsigned'.
2772 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2773 add_setshow_zinteger_cmd.
2774 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2775 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2776 instead of add_setshow_zinteger_cmd.
2777 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2778 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2779 add_setshow_zinteger_cmd.
2780 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2781 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2782 instead of add_setshow_zinteger_cmd.
2783 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2784 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2785 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2786 intead of add_setshow_zinteger_cmd.
2787 * mips-tdep.c (mips_debug): Add 'unsigned'.
2788 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2789 instead of add_setshow_zinteger_cmd.
2790 * monitor.c (monitor_debug): Add 'unsigned'.
2791 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2792 add_setshow_zinteger_cmd.
2793 * observer.c (observer_debug): Add 'unsigned'.
2794 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2795 add_setshow_zinteger_cmd.
2796 * parse.c (expressiondebug): Add 'unsigned'.
2797 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2798 add_setshow_zinteger_cmd.
2799 * record.c (record_debug): Add 'unsigned'.
2800 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2801 add_setshow_zinteger_cmd.
2802 * record.h: Update the declaration of 'record_debug'.
2803 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2804 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2805 add_setshow_zinteger_cmd.
2806 * serial.c (global_serial_debug_p): Add 'unsigned'.
2807 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2808 add_setshow_zinteger_cmd.
2809 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2810 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2811 add_setshow_zinteger_cmd.
2812 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2813 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2814 add_setshow_zinteger_cmd.
2815 * target.c (targetdebug): Add 'unsigned'.
2816 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2817 add_setshow_zinteger_cmd.
2818 * valops.c (overload_debug): Add 'unsigned'.
2819 * varobj.c (varobjdebug): Add 'unsigned'.
2820 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2821 add_setshow_zinteger_cmd.
2822 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2823 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2824 instead of add_setshow_zinteger_cmd.
2825
2826 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2827 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2828 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2829 instead of add_setshow_zinteger_cmd.
2830 * gdbarch.c, gdbarch.h: Re-generated.
2831
2832 2012-08-02 Yao Qi <yao@codesourcery.com>
2833
2834 * nto-tdep.c: Don't include cli/cli-decode.h and
2835 cli/cli-cmds.h.
2836 (_initialize_nto_tdep): Remove.
2837 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2838 Remove field.
2839 Remove macro nto_internal_debugging.
2840
2841 2012-08-01 Richard Henderson <rth@redhat.com>
2842
2843 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2844 (mep-*-*) [gdb_target_obs]: Likewise.
2845
2846 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2847
2848 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2849 linux_get_siginfo_type.
2850
2851 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2852
2853 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2854 AT_ENTRY_POINT.
2855 (call_function_by_hand) <ON_STACK>: Call write_memory with
2856 gdbarch_breakpoint_from_pc, if possible.
2857 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2858 here.
2859
2860 2012-07-31 Yao Qi <yao@codesourcery.com>
2861
2862 * tracepoint.c: Add 'static' for some variables.
2863
2864 2012-07-31 Yao Qi <yao@codesourcery.com>
2865
2866 * go32-nat.c: Declare _initialize_go32_nat.
2867 * ser-go32.c: Declare _initialize_ser_dos.
2868 * top.c (do_chdir_cleanup): Add 'static'.
2869
2870 2012-07-30 Keith Seitz <keiths@redhat.com>
2871
2872 * linespec.c (linespec_lex_number): A number followed
2873 by quotes is a valid number, too.
2874
2875 2012-07-30 Tom Tromey <tromey@redhat.com>
2876
2877 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2878
2879 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2880
2881 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2882 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2883
2884 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2885
2886 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2887 invalid or reevaluated to prevent prevent references to possibly
2888 delete'd type objects being left in the varobj.
2889
2890 2012-07-27 Tom Tromey <tromey@redhat.com>
2891 Jan Kratochvil <jan.kratochvil@redhat.com>
2892
2893 * copying.awk: Print buffer-read-only and vi ro markers.
2894 * copying.c: Rebuild.
2895 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2896 * gdbarch.c, gdbarch.h: Rebuild.
2897 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2898 buffer-read-only and vi ro markers.
2899 * features/arm-with-iwmmxt.c: Rebuild.
2900 * features/arm-with-m-fpa-layout.c: Rebuild.
2901 * features/arm-with-m-vfp-d16.c: Rebuild.
2902 * features/arm-with-m.c: Rebuild.
2903 * features/arm-with-neon.c: Rebuild.
2904 * features/arm-with-vfpv2.c: Rebuild.
2905 * features/arm-with-vfpv3.c: Rebuild.
2906 * features/i386/amd64-avx-linux.c: Rebuild.
2907 * features/i386/amd64-avx.c: Rebuild.
2908 * features/i386/amd64-linux.c: Rebuild.
2909 * features/i386/amd64.c: Rebuild.
2910 * features/i386/i386-avx-linux.c: Rebuild.
2911 * features/i386/i386-avx.c: Rebuild.
2912 * features/i386/i386-linux.c: Rebuild.
2913 * features/i386/i386-mmx-linux.c: Rebuild.
2914 * features/i386/i386-mmx.c: Rebuild.
2915 * features/i386/i386.c: Rebuild.
2916 * features/i386/x32-avx-linux.c: Rebuild.
2917 * features/i386/x32-avx.c: Rebuild.
2918 * features/i386/x32-linux.c: Rebuild.
2919 * features/i386/x32.c: Rebuild.
2920 * features/mips-dsp-linux.c: Rebuild.
2921 * features/mips-linux.c: Rebuild.
2922 * features/mips64-dsp-linux.c: Rebuild.
2923 * features/mips64-linux.c: Rebuild.
2924 * features/rs6000/powerpc-32.c: Rebuild.
2925 * features/rs6000/powerpc-32l.c: Rebuild.
2926 * features/rs6000/powerpc-403.c: Rebuild.
2927 * features/rs6000/powerpc-403gc.c: Rebuild.
2928 * features/rs6000/powerpc-405.c: Rebuild.
2929 * features/rs6000/powerpc-505.c: Rebuild.
2930 * features/rs6000/powerpc-601.c: Rebuild.
2931 * features/rs6000/powerpc-602.c: Rebuild.
2932 * features/rs6000/powerpc-603.c: Rebuild.
2933 * features/rs6000/powerpc-604.c: Rebuild.
2934 * features/rs6000/powerpc-64.c: Rebuild.
2935 * features/rs6000/powerpc-64l.c: Rebuild.
2936 * features/rs6000/powerpc-7400.c: Rebuild.
2937 * features/rs6000/powerpc-750.c: Rebuild.
2938 * features/rs6000/powerpc-860.c: Rebuild.
2939 * features/rs6000/powerpc-altivec32.c: Rebuild.
2940 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2941 * features/rs6000/powerpc-altivec64.c: Rebuild.
2942 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2943 * features/rs6000/powerpc-cell32l.c: Rebuild.
2944 * features/rs6000/powerpc-cell64l.c: Rebuild.
2945 * features/rs6000/powerpc-e500.c: Rebuild.
2946 * features/rs6000/powerpc-e500l.c: Rebuild.
2947 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2948 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2949 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2950 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2951 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2952 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2953 * features/rs6000/powerpc-vsx32.c: Rebuild.
2954 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2955 * features/rs6000/powerpc-vsx64.c: Rebuild.
2956 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2957 * features/rs6000/rs6000.c: Rebuild.
2958 * features/s390-linux32.c: Rebuild.
2959 * features/s390-linux32v1.c: Rebuild.
2960 * features/s390-linux32v2.c: Rebuild.
2961 * features/s390-linux64.c: Rebuild.
2962 * features/s390-linux64v1.c: Rebuild.
2963 * features/s390-linux64v2.c: Rebuild.
2964 * features/s390x-linux64.c: Rebuild.
2965 * features/s390x-linux64v1.c: Rebuild.
2966 * features/s390x-linux64v2.c: Rebuild.
2967 * features/tic6x-c62x-linux.c: Rebuild.
2968 * features/tic6x-c62x.c: Rebuild.
2969 * features/tic6x-c64x-linux.c: Rebuild.
2970 * features/tic6x-c64x.c: Rebuild.
2971 * features/tic6x-c64xp-linux.c: Rebuild.
2972 * features/tic6x-c64xp.c: Rebuild.
2973
2974 2012-07-27 Tom Tromey <tromey@redhat.com>
2975
2976 * c-exp.y (classify_name): Avoid assignment in condition.
2977
2978 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2979
2980 * amd64-windows-tdep.c: Include "frame.h".
2981 (amd64_windows_skip_trampoline_code): New function.
2982 (amd64_windows_init_abi): Add trampoline registration.
2983
2984 2012-07-27 Yao Qi <yao@codesourcery.com>
2985
2986 * tracepoint.c (cur_traceframe_number): Remove.
2987 (set_tfile_traceframe): Remove.
2988 (tfile_trace_find, tfile_fetch_registers): Update callers.
2989 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2990 (tfile_open, tfile_trace_find): Likewise.
2991
2992 2012-07-27 Yao Qi <yao@codesourcery.com>
2993
2994 * thread.c (switch_to_thread): Don't call registers_changed.
2995
2996 2012-07-26 Tom Tromey <tromey@redhat.com>
2997
2998 * Makefile.in (SFILES): Remove objc-exp.y.
2999 (YYFILES): Remove objc-exp.c.
3000 (YYOBJ): Remove objc-exp.o.
3001 (local-maintainer-clean): Don't mention objc-exp.c.
3002 * c-exp.y: Include objc-lang.h.
3003 (%union) <class>: New field.
3004 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3005 (exp): Clone subscript production for OBJC_LBRAC. Add various
3006 Objective C productions.
3007 (msglist, msgarglist, msgarg): New productions.
3008 (array_mod, func_mod, operator): Clone productions for
3009 OBJC_LBRAC.
3010 (parse_string_or_char): Handle '@' strings.
3011 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3012 (classify_name): Check la_name_of_this. Recognize ObjC class
3013 names.
3014 * objc-exp.y: Remove.
3015 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3016 * objc-lang.h (objc_parse, objc_error): Don't declare.
3017
3018 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3019
3020 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3021
3022 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3023
3024 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3025 and decrement.
3026
3027 2012-07-26 Tom Tromey <tromey@redhat.com>
3028
3029 * copying.c: Rebuild.
3030 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3031 'no_class'.
3032
3033 2012-07-26 Tom Tromey <tromey@redhat.com>
3034
3035 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3036 immediate_quit.
3037 (print_objfile_statistics): Likewise.
3038 (maintenance_print_symbols): Likewise.
3039 (maintenance_print_msymbols): Likewise.
3040 (maintenance_print_objfiles): Likewise.
3041 * psymtab.c (print_partial_symbols): Call QUIT.
3042 (maintenance_print_psymbols): Likewise. Don't modify
3043 immediate_quit.
3044 * copying.c (show_copying_command): Don't modify immediate_quit.
3045 (show_warranty_command): Likewise.
3046 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3047
3048 2012-07-26 Keith Seitz <keiths@redhat.com>
3049
3050 * linespec.c (linespec_lexer_lex_number): The input
3051 is also a valid number if the next character is a comma
3052 or colon.
3053
3054 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3055
3056 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3057 configure options.
3058
3059 2012-07-26 Tristan Gingold <gingold@adacore.com>
3060
3061 * machoread.c: Include gdb_bfd.h.
3062
3063 2012-07-26 Tristan Gingold <gingold@adacore.com>
3064
3065 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3066 offset.
3067
3068 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3069
3070 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3071 SIZE to size_t.
3072 (dwarf2_evaluate_loc_desc): Likewise.
3073 (dwarf2_loc_desc_needs_frame): Likewise.
3074 (locexpr_describe_location_1): Likewise.
3075 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3076 size_t.
3077 (struct dwarf2_loclist_baton): Likewise.
3078 * dwarf2read.c (struct dwarf_block): Likewise.
3079 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3080 (decode_locdesc): Expand SIZE and I to size_t.
3081
3082 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3083
3084 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3085
3086 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3087
3088 * doublest.c (convert_doublest_to_floatformat): If the exponent
3089 is too small, treat the value as zero. If the exponent is too
3090 large, treat the value as infinity.
3091
3092 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3093
3094 * configure.ac: Add --enable-lmcheck configure option.
3095 * configure: Regenerate.
3096
3097 2012-07-25 Tom Tromey <tromey@redhat.com>
3098
3099 * NEWS: Mention maint info bfds.
3100 * gdb_bfd.c (all_bfds): New global.
3101 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3102 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3103 New functions.
3104
3105 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3106
3107 * configure.tgt: Add v850*-*-rtems*.
3108
3109 2012-07-25 Tom Tromey <tromey@redhat.com>
3110
3111 * macrotab.c (macro_bcache_str): Remove cast.
3112
3113 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3114
3115 * linespec.c (linespec_lexer_lex_number): Update comments,
3116 change the return and add check to make sure the input is
3117 the decimal numbers.
3118 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3119 false, call linespec_lexer_lex_string.
3120
3121 2012-07-24 Tom Tromey <tromey@redhat.com>
3122
3123 * symfile.c (symbol_file_add): Don't open BFD twice.
3124
3125 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3126
3127 * breakpoint.c (create_breakpoint): Store condition for pending
3128 breakpoints.
3129
3130 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3131
3132 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3133 (m68k_return_value): Handle complex types like structures.
3134 (m68k_svr4_return_value): Likewise.
3135
3136 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3137
3138 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3139 parameters to bfd_get_section_name.
3140
3141 2012-07-24 Yao Qi <yao@codesourcery.com>
3142
3143 * cli/cli-setshow.c: Handle case 'var_uinteger'
3144 and 'var_zuninteger' together. Handle case 'var_integer' and
3145 'var_zinteger' together.
3146
3147 2012-07-23 Keith Seitz <keiths@redhat.com>
3148
3149 * linespec.c (convert_linespec_to_sal): Don't add
3150 any symbols to the result vector if symbol_to_sal
3151 returns zero.
3152
3153 2012-07-23 Keith Seitz <keiths@redhat.com>
3154
3155 * linespec.c (decode_objc): Record the function name
3156 in the linespec.
3157
3158 2012-07-23 Tom Tromey <tromey@redhat.com>
3159
3160 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3161 counting.
3162 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3163 (map_vmap): Acquire a reference to the BFD.
3164
3165 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3166
3167 * p-valprint.c (pascal_object_print_value): Replace potentially
3168 unsafe alloca with xmalloc/xfree.
3169 * valops.c (search_struct_method): Likewise.
3170
3171 2012-07-23 Tom Tromey <tromey@redhat.com>
3172
3173 * solib-svr4.c (enable_break): Update.
3174 * bfd-target.h (target_bfd_reopen): Update documentation.
3175
3176 2012-07-23 Tom Tromey <tromey@redhat.com>
3177
3178 * symfile.c (separate_debug_file_exists): Update.
3179 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3180 (reread_symbols): Update.
3181 * elfread.c (build_id_verify): Update.
3182 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3183 bfd_open_maybe_remote.
3184
3185 2012-07-23 Tom Tromey <tromey@redhat.com>
3186
3187 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3188
3189 2012-07-23 Tom Tromey <tromey@redhat.com>
3190
3191 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3192 and 'abfd'.
3193 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3194 and 'abfd'.
3195 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3196 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3197 'abfd'.
3198 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3199 * objfiles.c (allocate_objfile): Acquire a new reference.
3200 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3201 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3202 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3203 a cleanup for 'nbfd'.
3204 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3205 for 'nbfd'.
3206 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3207 make a cleanup for 'abfd'.
3208 (symbol_file_add): Make a BFD cleanup.
3209
3210 2012-07-23 Tom Tromey <tromey@redhat.com>
3211
3212 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3213 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3214 * corelow.c (core_open): Use gdb_bfd_fopen.
3215 * dsrec.c (load_srec): Use gdb_bfd_openr.
3216 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3217 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3218 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3219 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3220 (gdb_bfd_fdopenr): New functions.
3221 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3222 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3223 (gdb_bfd_fdopenr): Declare.
3224 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3225 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3226 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3227 gdb_bfd_openr_next_archived_file.
3228 (macho_check_dsym): Use gdb_bfd_openr.
3229 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3230 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3231 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3232 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3233 gdb_bfd_openr.
3234 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3235 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3236 gdb_bfd_openr_next_archived_file.
3237 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3238 Use gdb_bfd_openr.
3239 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3240 gdb_bfd_openr.
3241 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3242 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3243 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3244 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3245 (symfile_bfd_open): Use gdb_bfd_fopen.
3246 (generic_load): Use gdb_bfd_openr.
3247 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3248
3249 2012-07-23 Tom Tromey <tromey@redhat.com>
3250
3251 * bfd-target.c (target_bfd_reopen): Update.
3252 * cli/cli-dump.c (bfd_openr_with_cleanup)
3253 (bfd_openw_with_cleanup): Update.
3254 * corelow.c (core_open): Update.
3255 * dsrec.c (load_srec): Update.
3256 * exec.c (exec_file_attach): Update.
3257 * gcore.c (create_gcore_bfd): Update.
3258 * gdb_bfd.c (gdb_bfd_ref): Return void.
3259 (gdb_bfd_open): Update.
3260 * gdb_bfd.h (gdb_bfd_ref): Return void.
3261 Update comments.
3262 * jit.c (jit_bfd_try_read_symtab): Update.
3263 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3264 * machoread.c (macho_symfile_read_all_oso): Update.
3265 (macho_check_dsym): Update.
3266 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3267 * remote-m32r-sdi.c (m32r_load): Update.
3268 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3269 * rs6000-nat.c (add_vmap): Update.
3270 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3271 Update.
3272 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3273 * solib-spu.c (spu_bfd_open): Update.
3274 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3275 * spu-linux-nat.c (spu_bfd_open): Update.
3276 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3277 (generic_load): Update.
3278 * windows-nat.c (windows_make_so): Update.
3279
3280 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3281
3282 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3283
3284 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3285
3286 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3287 SIGTRAMP_FRAME unwinding.
3288
3289 2012-07-20 Doug Evans <dje@google.com>
3290
3291 * NEWS: Document new options "set/show use-deprecated-index-sections",
3292 and delete reference to --use-deprecated-index-sections.
3293 * symfile.h (use_deprecated_index_sections): Delete.
3294 * dwarf2read.c (use_deprecated_index_sections): Make static.
3295 (read_index_from_section): Update wording of how to load
3296 deprecated index sections.
3297 (_initialize_dwarf2_read): New options
3298 "set/show use-deprecated-index-sections".
3299 * main.c (captured_main): Delete --use-deprecated-index-sections.
3300
3301 2012-07-20 Pedro Alves <palves@redhat.com>
3302
3303 PR threads/11692
3304 PR gdb/12203
3305
3306 * infrun.c (handle_inferior_event) <new thread>: Don't special
3307 case minus_one_ptid.
3308 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3309 * linux-thread-db.c (thread_get_info_callback): Don't return early
3310 if the thread is zombie.
3311 (thread_from_lwp): Change return type to void. Rewrite stale
3312 comment.
3313 (attach_thread): Don't return early if the thread is zombie,
3314 instead set its "dying" flag.
3315 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3316 (find_new_threads_callback): Don't return early if the thread is
3317 zombie.
3318
3319 2012-07-20 Pedro Alves <palves@redhat.com>
3320
3321 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3322 * target.c (target_wait): Likewise.
3323 (str_comma_list_concat_elem, do_option, target_options_to_string):
3324 New functions.
3325 * target.h (target_options_to_string): Declare.
3326
3327 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 Tom Tromey <tromey@redhat.com>
3329
3330 * dwarf2read.c (dwarf_decode_macros)
3331 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3332 DW_MACRO_GNU_transparent_include_alt>: New cases.
3333 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3334 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3335
3336 2012-07-20 Tom Tromey <tromey@redhat.com>
3337
3338 * dwarf2read.c (try_open_dwo_file): Don't call
3339 gdb_bfd_stash_filename.
3340
3341 2012-07-20 Pedro Alves <palves@redhat.com>
3342
3343 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3344 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3345 (i386_process_record): Tweak description comments.
3346
3347 2012-07-20 Pedro Alves <palves@redhat.com>
3348
3349 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3350 (i386_process_record): Use record_read_memory.
3351 * record.c (record_read_memory): New function.
3352 (record_arch_list_add_mem, record_exec_insn): Use
3353 record_read_memory.
3354 * record.h (record_read_memory): Declare.
3355
3356 2012-07-20 Yao Qi <yao@codesourcery.com>
3357
3358 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3359 NULL for xfree.
3360
3361 2012-07-19 Pedro Alves <palves@redhat.com>
3362
3363 * record.c (record_resume): Ask the target beneath to report all
3364 signals.
3365
3366 2012-07-19 Doug Evans <dje@google.com>
3367
3368 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3369 there's no section at address zero.
3370 (dwarf2_record_block_ranges): Ditto.
3371
3372 2012-07-19 Yao Qi <yao@codesourcery.com>
3373
3374 * command.h, remote.c: Fix a typo in comment.
3375
3376 2012-07-19 Tom Tromey <tromey@redhat.com>
3377
3378 PR exp/13206:
3379 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3380 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3381 OP_DECLTYPE>: New cases.
3382 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3383 (type_exp): Add new productions.
3384 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3385 and decltype.
3386 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3387 New case.
3388 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3389 OP_DECLTYPE>: New case.
3390 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3391 New case.
3392 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3393 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3394
3395 2012-07-19 Tom Tromey <tromey@redhat.com>
3396
3397 * c-exp.y (enum token_flags): New.
3398 (struct token) <cxx_only>: Remove.
3399 <flags>: New field.
3400 (tokentab3, tokentab2, ident_tokens): Update.
3401 (lex_one_token): Update. Handle FLAG_SHADOW.
3402
3403 2012-07-19 Tom Tromey <tromey@redhat.com>
3404
3405 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3406 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3407 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3408 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3409 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3410 type_exp production where appropriate.
3411 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3412 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3413 <UNOP_MEMVAL_TYPE>: New case.
3414 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3415 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3416 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3417 <UNOP_MEMVAL_TYPE>: New case.
3418 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3419 UNOP_REINTERPRET_CAST>: Update.
3420 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3421 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3422 UNOP_REINTERPRET_CAST>: Update.
3423 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3424 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3425 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3426 constants.
3427
3428 2012-07-19 Yao Qi <yao@codesourcery.com>
3429 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3432 and case 'var_optional_filename' together.
3433 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3434 instead of add_setshow_optional_filename_cmd for setshow command
3435 'args'. Set completer for 'set args'.
3436
3437 2012-07-18 Doug Evans <dje@google.com>
3438
3439 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3440 * common/gdb_vecs.c: New file, contents from utils.c.
3441 * common/host-defs.h: New file, contents from defs.h.
3442 * utils.h: New file, contents from defs.h.
3443 * defs.h: Move all declarations of objects defined in utils.c
3444 to utils.h (except QUIT() and related).
3445 #include "utils.h", "host-defs.h".
3446 * probe.h (probe_p): Move here from gdb_vecs.h.
3447 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3448 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3449 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3450 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3451 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3452 (COMMON_OBS): Add gdb_vecs.o.
3453 (gdb_vecs.o): New rule.
3454
3455 2012-07-18 Keith Seitz <keiths@redhat.com>
3456
3457 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3458 parameter. If non-zero, use SYMNAME as the canonical name
3459 for the SaL.
3460 Update all callers.
3461 (convert_linespec_to_sals): Use add_sal_to_sals for
3462 expressions, too.
3463 (decode_line_full): No need to "fill in missing canonical names"
3464 anymore. Simply make cleanups for the allocated names.
3465
3466 2012-07-18 Keith Seitz <keiths@redhat.com>
3467
3468 * linespec.c (struct linespec): Constify expression,
3469 source_filename, function_name, and label_name.
3470 (symbol_not_found_error): Make all parameters const.
3471 (linespec_parser_delete): No need to check for NULL
3472 when using xfree. Cast const char * to char * for xfree.
3473
3474 2012-07-18 Keith Seitz <keiths@redhat.com>
3475
3476 * breakpoint.c (invalid_thread_id_error): New function.
3477 (find_condition_and_thread): Use invalid_thread_id_error.
3478 (watch_command_1): Likewise.
3479
3480 2012-07-18 Tom Tromey <tromey@redhat.com>
3481
3482 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3483 * contrib/cc-with-tweaks.sh: New file.
3484
3485 2012-07-18 Tom Tromey <tromey@redhat.com>
3486
3487 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3488 (locate_dwz_sections): Recognize .gdb_index.
3489 (create_cus_from_index_list): New function.
3490 (create_cus_from_index): Use it. Handle .dwz data.
3491 (read_index_from_section): New function, extracted from
3492 dwarf2_read_index.
3493 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3494 if needed.
3495
3496 2012-07-18 Tom Tromey <tromey@redhat.com>
3497
3498 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3499 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3500 <is_dwz>: New field.
3501 (struct dwz_file): New.
3502 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3503 (locate_dwz_sections, dwarf2_get_dwz_file)
3504 (get_abbrev_section_for_cu): New functions.
3505 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3506 (read_and_check_type_unit_head): Add abbrev_section argument.
3507 (create_debug_types_hash_table): Update.
3508 (init_cutu_and_read_dies): Use proper abbrev section.
3509 (init_cutu_and_read_dies_no_follow): Likewise.
3510 (set_partial_user): Do nothing if PST==NULL.
3511 (read_comp_units_from_section): New function.
3512 (create_all_comp_units): Use it.
3513 (scan_partial_symbols, partial_die_parent_scope): Update.
3514 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3515 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3516 (find_partial_die): Add offset_in_dwz argument. Update.
3517 (guess_partial_die_structure_name, fixup_partial_die): Update.
3518 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3519 DW_FORM_GNU_strp_alt.
3520 (read_indirect_string_from_dwz): New function.
3521 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3522 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3523 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3524 (follow_die_offset): Add offset_in_dwz argument.
3525 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3526 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3527 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3528 Handle new macro forms.
3529 (dwarf_decode_macros): Update.
3530 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3531 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3532 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3533 (create_debug_types_hash_table): Use correct abbrev section.
3534 (get_debug_line_section): New function.
3535 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3536 (process_full_comp_unit): Pass 'required' argument to
3537 end_symtab_get_static_block.
3538 * buildsym.h (end_symtab_get_static_block): Update.
3539 * buildsym.c (end_symtab_get_static_block): Add 'required'
3540 argument.
3541 (end_symtab, end_expandable_symtab): Update.
3542
3543 2012-07-18 Tom Tromey <tromey@redhat.com>
3544
3545 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3546 (pagesize): Remove.
3547 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3548 (zlib_decompress_section): Remove.
3549 (dwarf2_read_section): Use gdb_bfd_map_section.
3550 (munmap_section_buffer): Remove.
3551 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3552 munmap_section_buffer.
3553 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3554 (struct gdb_bfd_section_data): New.
3555 (free_one_bfd_section): New function.
3556 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3557 (get_section_descriptor, zlib_decompress_section)
3558 (gdb_bfd_map_section): New functions.
3559 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3560
3561 2012-07-18 Tom Tromey <tromey@redhat.com>
3562
3563 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3564
3565 2012-07-18 Tom Tromey <tromey@redhat.com>
3566
3567 * gdb_bfd.c (struct gdb_bfd_data): New.
3568 (gdb_bfd_cache): New global.
3569 (struct gdb_bfd_cache_search): New.
3570 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3571 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3572 * gdb_bfd.h (gdb_bfd_open): Declare.
3573
3574 2012-07-18 Tom Tromey <tromey@redhat.com>
3575
3576 * utils.c (make_cleanup_bfd_unref): Rename from
3577 make_cleanup_bfd_close.
3578 * defs.h (make_cleanup_bfd_unref): Rename from
3579 make_cleanup_bfd_close.
3580 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3581 (bfd_openw_with_cleanup): Update.
3582 * corelow.c (core_open): Update.
3583 * dsrec.c (load_srec): Update.
3584 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3585 * remote-m32r-sdi.c (m32r_load): Update.
3586 * remote-mips.c (mips_load_srec): Update.
3587 (pmon_load_fast): Update.
3588 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3589 Update.
3590 (darwin_bfd_open): Update.
3591 * solib.c (solib_bfd_fopen): Update.
3592 * symfile-mem.c (symbol_file_add_from_memory): Update.
3593 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3594 (symfile_bfd_open): Update.
3595 (generic_load): Update.
3596
3597 2012-07-18 Tom Tromey <tromey@redhat.com>
3598
3599 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3600 (pmon_load_fast): Likewise.
3601 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3602 (m32r_upload_command): Likewise.
3603 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3604 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3605 Use make_cleanup_bfd_close.
3606
3607 2012-07-18 Tom Tromey <tromey@redhat.com>
3608
3609 * symfile.c (symfile_bfd_open): Don't copy name. Call
3610 gdb_bfd_stash_filename.
3611 (load_command): Open the new BFD before freeing the old.
3612 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3613 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3614 Call gdb_bfd_stash_filename.
3615 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3616 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3617 gdb_bfd_stash_filename.
3618 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3619 Free found_pathname.
3620 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3621 gdb_bfd_stash_filename.
3622 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3623 * machoread.c (macho_add_oso_symfile): Call
3624 gdb_bfd_stash_filename.
3625 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3626 gdb_bfd_stash_filename.
3627 (macho_check_dsym): Don't copy filename. Call
3628 gdb_bfd_stash_filename.
3629 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3630 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3631 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3632 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3633 * exec.c (exec_close): Don't free the BFD's filename.
3634 (exec_file_attach): Don't copy the filename. Call
3635 gdb_bfd_stash_filename.
3636 * corelow.c (core_close): Don't free the BFD's filename.
3637 (core_open): Call gdb_bfd_stash_filename.
3638 * corefile.c (reopen_exec_file): Remove #if 0 code.
3639 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3640 pathname.
3641 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3642
3643 2012-07-18 Tom Tromey <tromey@redhat.com>
3644
3645 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3646 gdb_bfd_unref.
3647 (free_dwo_file): Use gdb_bfd_unref.
3648 * cli/cli-dump.c: Include gdb_bfd.h.
3649 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3650 (bfd_openr_with_cleanup): Likewise.
3651 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3652 gdb_bfd_unref.
3653 * utils.c: Include gdb_bfd.h.
3654 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3655 * symfile.c: Include gdb_bfd.h.
3656 (separate_debug_file_exists): Use gdb_bfd_unref.
3657 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3658 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3659 (generic_load): Use gdb_bfd_ref.
3660 (reread_symbols): Use gdb_bfd_unref.
3661 * symfile-mem.c: Include gdb_bfd.h.
3662 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3663 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3664 * solib.c: Include gdb_bfd.h.
3665 (solib_bfd_fopen): Use gdb_bfd_ref.
3666 (solib_bfd_open): Use gdb_bfd_unref.
3667 (free_so_symbols): Use gdb_bfd_unref.
3668 (reload_shared_libraries_1): Use gdb_bfd_unref.
3669 * solib-spu.c: Include gdb_bfd.h.
3670 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3671 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3672 gdb_bfd_unref.
3673 * solib-frv.c: Include gdb_bfd.h.
3674 (enable_break2): Use gdb_bfd_unref.
3675 * solib-dsbt.c: Include gdb_bfd.h.
3676 (enable_break2): Use gdb_bfd_unref.
3677 * solib-darwin.c: Include gdb_bfd.h.
3678 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3679 gdb_bfd_unref.
3680 (darwin_bfd_open): Use gdb_bfd_unref.
3681 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3682 * remote-mips.c: Include gdb_bfd.h.
3683 (mips_load_srec): Use gdb_bfd_ref.
3684 (pmon_load_fast): Use gdb_bfd_ref.
3685 * remote-m32r-sdi.c: Include gdb_bfd.h.
3686 (m32r_load): Use gdb_bfd_ref.
3687 * record.c: Include gdb_bfd.h.
3688 (record_save_cleanups): Use gdb_bfd_unref.
3689 (cmd_record_save): Use gdb_bfd_unref.
3690 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3691 gdb_bfd_unref.
3692 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3693 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3694 * objfiles.c: Include gdb_bfd.h.
3695 (free_objfile): Use gdb_bfd_unref.
3696 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3697 gdb_bfd.c.
3698 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3699 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3700 (macho_check_dsym): Likewise.
3701 * m32r-rom.c: Include gdb_bfd.h.
3702 (m32r_load): Use gdb_bfd_ref.
3703 (m32r_upload_command): Use gdb_bfd_ref.
3704 * jit.c: Include gdb_bfd.h.
3705 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3706 * gdb_bfd.h: New file.
3707 * gdb_bfd.c: New file.
3708 * gcore.c: Include gdb_bfd.h.
3709 (create_gcore_bfd): Use gdb_bfd_ref.
3710 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3711 (gcore_command): Use gdb_bfd_unref.
3712 * exec.c: Include gdb_bfd.h.
3713 (exec_close): Use gdb_bfd_unref.
3714 (exec_close_1): Use gdb_bfd_unref.
3715 (exec_file_attach): Use gdb_bfd_ref.
3716 * elfread.c: Include gdb_bfd.h.
3717 (build_id_verify): Use gdb_bfd_unref.
3718 * dsrec.c: Include gdb_bfd.h.
3719 (load_srec): Use gdb_bfd_ref.
3720 * corelow.c: Include gdb_bfd.h.
3721 (core_close): Use gdb_bfd_unref.
3722 (core_open): Use gdb_bfd_ref.
3723 * bfd-target.c: Include gdb_bfd.h.
3724 (target_bfd_xclose): Use gdb_bfd_unref.
3725 (target_bfd_reopen): Use gdb_bfd_ref.
3726 * Makefile.in (SFILES): Add gdb_bfd.c.
3727 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3728 (COMMON_OBS): Add gdb_bfd.o.
3729
3730 2012-07-18 Keith Seitz <keiths@redhat.com>
3731
3732 * breakpoint.c (find_condition_and_thread): Initialize
3733 TASK and REST.
3734 (create_breakpiont): find_condition_and_thread will now
3735 initialize COND_STRING, THREAD, and REST (and TASK).
3736 (addr_string_to_sals): Likewise.
3737
3738 2012-07-18 Pedro Alves <palves@redhat.com>
3739
3740 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3741 Pull the single step breakpoints out of the target.
3742
3743 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3744
3745 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3746 * stap-probe.c (compile_probe_arg): Likewise.
3747
3748 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3749
3750 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3751 (elf_compile_to_ax): Likewise.
3752 * infrun.c (insert_exception_resume_from_probe): Likewise.
3753 (check_exception_resume): Remove `objfile' variable.
3754 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3755 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3756 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3757 (compare_entries): Rename to...
3758 (compare_probes): ...this. Adjust function to work with
3759 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3760 respectively.
3761 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3762 `VEC (probe_p) *'.
3763 (print_ui_out_info): Adjust argument to be `struct probe *'.
3764 (info_probes_for_ops): Adjust internal computations to use
3765 `VEC (probe_p) *'.
3766 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3767 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3768 gen_info_probes_table_values>: Remove `objfile' argument.
3769 (struct probe) <objfile>: New field.
3770 (find_probe_by_pc): Remove `objfile' argument.
3771 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3772 (stap_get_probe_argument_count): Likewise.
3773 (stap_get_arg): Likewise.
3774 (stap_evaluate_probe_argument): Likewise.
3775 (stap_compile_to_ax): Likewise.
3776 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3777 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3778 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3779 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3780 sym_compile_to_ax>: Likewise.
3781
3782 2012-07-18 Terry Guo <terry.guo@arm.com>
3783
3784 PR 14329
3785 * defs.h (GDB_MI_MSG_WIDTH): New.
3786 * ser_base (ser_base_read_error_fd): New function.
3787 (do_ser_base_readchar): Poll error file descriptor as well as
3788 standard output.
3789 (generic_readchar): Refactor error handling.
3790
3791 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3792
3793 * NEWS: Create a new section for the next release branch.
3794 Rename the section of the current branch, now that it has
3795 been cut.
3796
3797 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3798
3799 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3800 * version.in: Bump version to 7.5.50.20120718-cvs.
3801
3802 2012-07-17 Keith Seitz <keiths@redhat.com>
3803
3804 * linespec.c (linespec_parse_line_offset): Make parameter
3805 const.
3806
3807 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3808
3809 PR 11914
3810 * f-valprint.c (info_common_command): New variable frame_id.
3811 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3812 * printcmd.c (print_variable_and_value): Extend function comment.
3813 Add comment for invalidated FRAME.
3814 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3815 FI form FRAME_ID after each print_frame_local_vars.
3816 (struct print_variable_and_value_data): Change frame to frame_id.
3817 (do_print_variable_and_value): New variable frame, initialize it from
3818 p->frame_id. Add comment for invalidated FRAME.
3819 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3820 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3821 for invalidated FRAME.
3822
3823 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3824 Pedro Alves <palves@redhat.com>
3825
3826 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3827 loop.
3828
3829 2012-07-16 Tom Tromey <tromey@redhat.com>
3830
3831 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3832
3833 2012-07-15 Doug Evans <dje@google.com>
3834
3835 * dwarf2read.c (stmt_list_hash): New struct.
3836 (type_unit_group): Embed "per_cu" member, remove pointer.
3837 New union member "t", move member "tus" into it, all uses updated.
3838 New member "hash", replaces member "line_offset, all uses updated.
3839 (quick_file_names): Replace member "offset" with "hash", all uses
3840 updated.
3841 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3842 (hash_file_name_entry, eq_file_name_entry): Call them.
3843 (hash_type_unit_group, eq_type_unit_group): Ditto.
3844 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3845 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3846 (dw2_get_file_names): Update.
3847 (create_type_unit_group): Replace "per_cu" arg with "cu".
3848 All callers updated. Fix "quick" (.gdb_index) handling.
3849 (get_type_unit_group): Replace "per_cu" arg with "cu".
3850 All callers updated.
3851 (build_type_unit_groups): Don't reset tu_stats.
3852
3853 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3854 "tab_cur_size". Change member "tab" to be a htab_t.
3855 (create_filename_seen_cache): Update.
3856 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3857 (filename_seen): Update.
3858
3859 2012-07-13 Doug Evans <dje@google.com>
3860
3861 * symtab.c (filename_seen): Update comment.
3862
3863 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 Doug Evans <dje@google.com>
3865
3866 * buildsym.c (end_symtab_1): Split it to ...
3867 (end_symtab_get_static_block): ... this ...
3868 (end_symtab_from_static_block): ... and this function.
3869 (end_symtab, end_expandable_symtab): Call them.
3870 * buildsym.h (end_symtab_get_static_block)
3871 (end_symtab_from_static_block): New declarations.
3872 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3873 Set its valid CU ranges.
3874
3875 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3876
3877 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3878 DW_OP_GNU_parameter_ref.
3879
3880 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3883 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3884
3885 2012-07-13 Doug Evans <dje@google.com>
3886
3887 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3888 (filename_seen_cache): New struct.
3889 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3890 (create_filename_seen_cache): New function.
3891 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3892 (filename_seen): Delete arg "first". New arg "cache". All callers
3893 updated.
3894 (output_source_filename_data): New struct.
3895 (output_source_filename): Delete arg "first". New arg "data".
3896 All callers updated.
3897 (sources_info): Delete local "first". New locals "data", "cleanups".
3898 Rewrite to use filename_seen_cache.
3899 (add_partial_filename_data): Delete member "first". New member
3900 "filename_seen_cache". All uses updated.
3901 (make_source_files_completion_list): Rewrite to use
3902 filename_seen_cache.
3903
3904 2012-07-12 Doug Evans <dje@google.com>
3905
3906 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3907
3908 2012-07-10 Doug Evans <dje@google.com>
3909
3910 PR gdb/13498
3911 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3912 all_type_unit_groups, type_unit_groups, tu_stats.
3913 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3914 All uses updated. Add type_unit_group to union "s".
3915 (type_unit_group): New struct.
3916 (IS_TYPE_UNIT_GROUP): New macro.
3917 (abbrev_table): Delete unused member "section".
3918 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3919 (dw2_get_cu): Assert not used with type_unit_group.
3920 (dw2_get_primary_cu): New function.
3921 (dw2_build_type_unit_groups_reader): New function.
3922 (dw2_build_type_unit_groups): New function.
3923 (dw2_get_file_names): Assert not called on type units.
3924 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3925 Redo loop to iterate over type unit groups instead of type units.
3926 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3927 (read_abbrev_offset): New function.
3928 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3929 updated.
3930 (create_partial_symtab): New function.
3931 (process_psymtab_comp_unit_reader): Assert not used with type units.
3932 Call create_partial_symtab.
3933 (process_psymtab_type_unit): Delete.
3934 (hash_type_unit_group, eq_type_unit_group): New functions.
3935 (allocate_type_unit_groups_table): New function.
3936 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3937 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3938 (create_type_unit_group, get_type_unit_group): New functions.
3939 (tu_abbrev_offset): New struct.
3940 (sort_tu_by_abbrev_offset): New function.
3941 (add_type_unit_group_to_table): New function.
3942 (build_type_unit_groups): New function.
3943 (build_type_psymtabs_reader): New function.
3944 (build_type_psymtab_dependencies): New function.
3945 (build_type_psymtabs): Rewrite.
3946 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3947 is seen in a type unit.
3948 (process_queue): Move symtab expansion debugging printfs here.
3949 Call process_full_type_unit for type units.
3950 (compute_symtab_includes): Assert not called for type units.
3951 (process_cu_includes): Don't call compute_symtab_includes for
3952 type units.
3953 (process_full_type_unit): New function.
3954 (process_imported_unit_die): Flag an error if called for type units.
3955 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3956 updated. Assert not called for type units.
3957 (read_file_scope): Call dwarf2_start_symtab.
3958 (setup_type_unit_groups): New function.
3959 (read_type_unit_scope): Rewrite.
3960 (abbrev_table_read_table): Initialize abbrev_table->offset.
3961 (abbrev_table_free_cleanup): New function.
3962 (dwarf2_start_symtab): New function.
3963 (load_full_type_unit): Assert not called for type unit groups.
3964 * buildsym.c (finish_block_internal): New arg "expandable".
3965 All callers updated.
3966 (start_symtab): Move most contents to ...
3967 (restart_symtab): ... here. New function.
3968 (reset_symtab_globals): New function.
3969 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3970 Call reset_symtab_globals.
3971 (end_symtab, end_expandable_symtab): New functions.
3972 (set_missing_symtab, augment_type_symtab): New functions.
3973 * buildsym.h (end_expandable_symtab): Declare.
3974 (augment_type_symtab, restart_symtab): Declare.
3975 * psympriv.h (struct partial_symtab): New member "anonymous".
3976 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3977 anonymous psymtabs.
3978 (read_psymtabs_with_filename): Ditto.
3979 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3980 (expand_symtabs_matching_via_partial): Ditto.
3981 (dump_psymtab): Update.
3982 * dictionary.c (dict_add_pending): New function.
3983 * dictionary.h (dict_add_pending): Declare.
3984
3985 2012-07-09 Doug Evans <dje@google.com>
3986
3987 * buildsym.c (start_subfile): Remove unnecessary check for
3988 name == NULL.
3989
3990 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3991
3992 * dwarf2read.c (load_full_type_unit): Simplify.
3993
3994 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3995 to struct signatured_type **. All uses updated.
3996
3997 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3998 All callers updated.
3999
4000 2012-07-09 Tom Tromey <tromey@redhat.com>
4001
4002 * c-exp.y (check_parameter_typelist): New function.
4003 (parameter_typelist): Call it.
4004 * eval.c (make_params): Handle '(void)' case.
4005 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4006 '(void)' case.
4007
4008 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 * common/linux-ptrace.c: Include gdb_assert.h.
4011 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4012 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4013 stdint.h.
4014 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4015 functions.
4016 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4017 * linux-nat.c (linux_child_post_attach)
4018 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4019
4020 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4021
4022 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4023 nptl <2.7 bug workaround for core files.
4024
4025 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4026
4027 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4028 clearing.
4029 (save_siginfo): Remove.
4030 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4031 call.
4032 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4033 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4034 * linux-nat.h (struct lwp_info): Remove field siginfo.
4035
4036 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 Code cleanup for the next patch.
4039 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4040 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4041 call for it.
4042 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4043 (ia64_linux_stopped_data_address):
4044 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4045 the return value.
4046 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4047 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4048 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4049 call for it.
4050
4051 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4052
4053 PR 14321
4054 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4055 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4056
4057 2012-07-06 Tom Tromey <tromey@redhat.com>
4058
4059 * c-exp.y (DOTDOTDOT): New token.
4060 (func_mod, exp): Use parameter_typelist.
4061 (parameter_typelist): New production.
4062 (tokentab3): Add "..." token.
4063 * eval.c (make_params): Handle varargs.
4064 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4065 varargs.
4066
4067 2012-07-06 Tom Tromey <tromey@redhat.com>
4068
4069 PR exp/9608:
4070 * c-exp.y (%union) <tvec>: Change type.
4071 (func_mod): Now uses <tvec> type.
4072 (exp): Update for tvec change.
4073 (direct_abs_decl): Push the typelist.
4074 (func_mod): Return a typelist.
4075 (nonempty_typelist): Update for tvec change.
4076 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4077 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4078 * parse.c (pop_type_list): New function.
4079 (push_typelist): New function.
4080 (follow_types): Handle tp_function_with_arguments.
4081 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4082 (enum type_pieces) <tp_function_with_arguments>: New constant.
4083 (union type_stack_elt) <typelist_val>: New field.
4084 (push_typelist): Declare.
4085
4086 2012-07-06 Tom Tromey <tromey@redhat.com>
4087
4088 * c-exp.y (%union) <type_stack>: New field.
4089 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4090 (ptr_operator_ts): New production.
4091 (ptype): Update.
4092 * parse.c (type_stack_reserve): New function.
4093 (check_type_stack_depth): Use it.
4094 (pop_type_stack, append_type_stack, push_type_stack)
4095 (get_type_stack, type_stack_cleanup): New functions.
4096 (follow_types): Handle tp_type_stack.
4097 (_initialize_parse): Simplify initialization.
4098 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4099 constant.
4100 (union type_stack_elt) <stack_val>: New field.
4101 (get_type_stack, append_type_stack, push_type_stack)
4102 (type_stack_cleanup): Declare.
4103
4104 2012-07-06 Tom Tromey <tromey@redhat.com>
4105
4106 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4107 Remove.
4108 (struct type_stack): New.
4109 * parse.c (type_stack, type_stack_size, type_stack_depth):
4110 Remove.
4111 (type_stack): New global.
4112 (parse_exp_in_context, check_type_stack_depth)
4113 (insert_into_type_stack, insert_type, push_type, push_type_int)
4114 (insert_type_address_space, pop_type, pop_type_int)
4115 (_initialize_parse): Update.
4116
4117 2012-07-06 Tom Tromey <tromey@redhat.com>
4118
4119 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4120 Remove %type.
4121
4122 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4123
4124 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4125
4126 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4127 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4130 alloca with xmalloc/xfree.
4131
4132 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4133
4134 * MAINTAINERS (Write After Approval): Add myself to the list.
4135
4136 2012-07-05 Doug Evans <dje@google.com>
4137
4138 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4139
4140 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4141
4142 * ax-gdb.c (cli/cli-utils.h): New include.
4143 (linespec.h): Ditto.
4144 (agent_eval_command_one): New function.
4145 (agent_command_1): Ditto.
4146 (agent_command): Call function agent_command_1.
4147 (agent_eval_command): Ditto.
4148 (_initialize_ax_gdb): Change help for "maint agent"
4149 and "maint agent-eval".
4150
4151 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4152
4153 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4154 * cli/cli-utils.c (check_for_argument): New function.
4155 * cli/cli-utils.h (check_for_argument): Ditto.
4156
4157 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4158
4159 * NEWS: Mention x32 ABI support.
4160
4161 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4162
4163 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4164 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4165
4166 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4167 and pc_regnum_from_eax to -1. Update SP regnum from
4168 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4169 needed.
4170
4171 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4172 pc_regnum_from_eax.
4173
4174 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4177 * dwarf2expr.h: Include gdbtypes.h.
4178 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4179 these forward declarations.
4180 (cu_offset, sect_offset): Move these ...
4181 * gdbtypes.h: Remove include dwarf2expr.h.
4182 (cu_offset, sect_offset): ... here.
4183
4184 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4185
4186 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4187 (amd64_linux_sigtramp_code): This.
4188 (amd64_x32_linux_sigtramp_code): New.
4189 (LINUX_SIGTRAMP_LEN): Updated.
4190 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4191
4192 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4193
4194 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4195
4196 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 * config.in: Regenerate.
4199 * configure: Regenerate.
4200 * configure.ac: Remove check for gnu/libc-version.h.
4201 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4202 gnu/libc-version.h.
4203 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4204 variables libc_version, libc_major and libc_minor. Replace sscanf by
4205 inferior_has_bug. Extend the comment.
4206
4207 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 * linux-thread-db.c (inferior_has_bug): New function.
4210 (thread_db_find_new_threads_silently): Return boolean as checked by
4211 inferior_has_bug, describe it in the comments.
4212 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4213 earlier. Abort the initialization if it returned non-zero.
4214 (thread_db_new_objfile): Exclude debug files.
4215 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4216 if UNTIL_NO_NEW,
4217
4218 2012-07-02 Doug Evans <dje@google.com>
4219
4220 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4221 related to queue management.
4222
4223 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4224 instead of "debug dwarf2-die" in debugging printfs.
4225 (create_debug_info_hash_table_reader): Ditto.
4226 (create_debug_info_hash_table): Ditto.
4227 (init_dwo_file): Ditto.
4228 (init_cutu_and_read_dies): Add debugging printf.
4229 (init_cutu_and_read_dies_no_follow): Ditto.
4230 (process_psymtab_comp_unit_reader): Ditto.
4231
4232 2012-07-02 Stan Shebs <stan@codesourcery.com>
4233
4234 Add target-side support for dynamic printf.
4235 * NEWS: Mention the additional style.
4236 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4237 (struct bp_location): New field cmd_bytecode.
4238 * breakpoint.c: Include format.h.
4239 (disconnected_dprintf): New global.
4240 (parse_cmd_to_aexpr): New function.
4241 (build_target_command_list): New function.
4242 (insert_bp_location): Call it.
4243 (remove_breakpoints_pid): Skip dprintf breakpoints.
4244 (print_one_breakpoint_location): Ditto.
4245 (dprintf_style_agent): New global.
4246 (dprintf_style_enums): Add dprintf_style_agent.
4247 (update_dprintf_command_list): Add agent case.
4248 (agent_printf_command): New function.
4249 (_initialize_breakpoint): Add new commands.
4250 * common/ax.def (printf): New bytecode.
4251 * ax.h (ax_string): Declare.
4252 * ax-gdb.h (gen_printf): Declare.
4253 * ax-gdb.c: Include cli-utils.h, format.h.
4254 (gen_printf): New function.
4255 (maint_agent_print_command): New function.
4256 (_initialize_ax_gdb): Add maint agent-printf command.
4257 * ax-general.c (ax_string): New function.
4258 (ax_print): Add printf disassembly.
4259 * Makefile.in (SFILES): Add format.c
4260 (COMMON_OBS): Add format.o.
4261 * common/format.h: New file.
4262 * common/format.c: New file.
4263 * printcmd.c: Include format.h.
4264 (ui_printf): Call parse_format_string.
4265 * remote.c (remote_state): New field breakpoint_commands.
4266 (PACKET_BreakpointCommands): New enum.
4267 (remote_breakpoint_commands_feature): New function.
4268 (remote_protocol_features): Add new BreakpointCommands entry.
4269 (remote_can_run_breakpoint_commands): New function.
4270 (remote_add_target_side_commands): New function.
4271 (remote_insert_breakpoint): Call it.
4272 (remote_insert_hw_breakpoint): Ditto.
4273 (_initialize_remote): Add new packet configuration for
4274 target-side breakpoint commands.
4275 * target.h (struct target_ops): New field
4276 to_can_run_breakpoint_commands.
4277 (target_can_run_breakpoint_commands): New macro.
4278 * target.c (update_current_target): Handle
4279 to_can_run_breakpoint_commands.
4280
4281 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 Execute -ix and -iex only after system and user gdbinit files.
4284 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4285 processing down after gdbinit files.
4286
4287 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4288
4289 Add fnmatch-gnu module.
4290 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4291 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4292 * gnulib/aclocal.m4: Regenerate.
4293 * gnulib/config.in: Regenerate.
4294 * gnulib/configure: Regenerate.
4295 * gnulib/import/dummy.c: Remove.
4296 * gnulib/import/Makefile.am: Regenerate.
4297 * gnulib/import/Makefile.in: Likewise.
4298 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4299 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4300 * gnulib/import/alloca.c: New file.
4301 * gnulib/import/alloca.in.h: Likewise.
4302 * gnulib/import/config.charset: Likewise.
4303 * gnulib/import/fnmatch.c: Likewise.
4304 * gnulib/import/fnmatch.in.h: Likewise.
4305 * gnulib/import/fnmatch_loop.c: Likewise.
4306 * gnulib/import/localcharset.c: Likewise.
4307 * gnulib/import/localcharset.h: Likewise.
4308 * gnulib/import/m4/alloca.m4: Likewise.
4309 * gnulib/import/m4/codeset.m4: Likewise.
4310 * gnulib/import/m4/configmake.m4: Likewise.
4311 * gnulib/import/m4/fcntl-o.m4: Likewise.
4312 * gnulib/import/m4/fnmatch.m4: Likewise.
4313 * gnulib/import/m4/glibc21.m4: Likewise.
4314 * gnulib/import/m4/localcharset.m4: Likewise.
4315 * gnulib/import/m4/locale-fr.m4: Likewise.
4316 * gnulib/import/m4/locale-ja.m4: Likewise.
4317 * gnulib/import/m4/locale-zh.m4: Likewise.
4318 * gnulib/import/m4/mbrtowc.m4: Likewise.
4319 * gnulib/import/m4/mbsinit.m4: Likewise.
4320 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4321 * gnulib/import/m4/mbstate_t.m4: Likewise.
4322 * gnulib/import/m4/stdbool.m4: Likewise.
4323 * gnulib/import/m4/wchar_h.m4: Likewise.
4324 * gnulib/import/m4/wctype_h.m4: Likewise.
4325 * gnulib/import/m4/wint_t.m4: Likewise.
4326 * gnulib/import/mbrtowc.c: Likewise.
4327 * gnulib/import/mbsinit.c: Likewise.
4328 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4329 * gnulib/import/mbsrtowcs-state.c: Likewise.
4330 * gnulib/import/mbsrtowcs.c: Likewise.
4331 * gnulib/import/ref-add.sin: Likewise.
4332 * gnulib/import/ref-del.sin: Likewise.
4333 * gnulib/import/stdbool.in.h: Likewise.
4334 * gnulib/import/streq.h: Likewise.
4335 * gnulib/import/strnlen1.c: Likewise.
4336 * gnulib/import/strnlen1.h: Likewise.
4337 * gnulib/import/verify.h: Likewise.
4338 * gnulib/import/wchar.in.h: Likewise.
4339 * gnulib/import/wctype.in.h: Likewise.
4340
4341 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4342
4343 Support shell wildcards for 'set auto-load safe-path'.
4344 * auto-load.c: Include fnmatch.h.
4345 (filename_is_in_dir): Rename to ...
4346 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4347 it. Update function comment. Rename dir_len to pattern_len. New
4348 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4349 messages. Use gdb_filename_fnmatch.
4350 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4351 pattern.
4352 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4353 * defs.h (gdb_filename_fnmatch): New declaration.
4354 * utils.c: Include fnmatch.h.
4355 (gdb_filename_fnmatch): New function.
4356
4357 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4358
4359 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4360 `-probe' and `-probe-stap' options.
4361
4362 2012-07-01 Yao Qi <yao@codesourcery.com>
4363
4364 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4365 always_inserted_off, and always_inserted_enums.
4366 Change always_inserted_mode's type to 'enum auto_boolean'.
4367 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4368 callers.
4369 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4370 of add_setshow_enum_cmd.
4371 * infrun.c: Remove can_use_displaced_stepping_auto,
4372 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4373 can_use_displaced_stepping_enum.
4374 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4375 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4376 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4377 add_setshow_enum_cmd.
4378
4379 2012-06-30 Doug Evans <dje@google.com>
4380
4381 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4382 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4383 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4384
4385 2012-06-29 Doug Evans <dje@google.com>
4386
4387 * linespec.c: #include "stack.h".
4388 (decode_line_with_current_source): Moved here from symtab.c and
4389 renamed from decode_line_spec. All callers updated.
4390 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4391 renamed from decode_line_spec_1. All callers updated.
4392 * linespec.h (decode_line_with_current_source): Move declaration here
4393 from symtab.h and renamed from decode_line_spec.
4394 (decode_line_with_last_displayed): Move declaration here from symtab.h
4395 and renamed from decode_line_spec_1.
4396 * macrocmd.c: #include "linespec.h".
4397 * symtab.c: Remove #include "linespec.h".
4398
4399 2012-06-28 Doug Evans <dje@google.com>
4400
4401 * dwarf2read.c (get_cu_length): New function.
4402 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4403 (create_debug_types_hash_table): Ditto.
4404 (init_cutu_and_read_dies): Ditto.
4405 (init_cutu_and_read_dies_no_follow): Ditto.
4406
4407 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4408
4409 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4410 (struct abbrev_table): Define.
4411 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4412 abbrev_table.
4413 (init_cutu_and_read_dies): Update.
4414 (abbrev_table_alloc_abbrev): New function. Replaces
4415 dwarf_alloc_abbrev. All callers updated.
4416 (abbrev_table_add_abbrev): New function.
4417 (abbrev_table_lookup_abbrev): New function. Replaces
4418 dwarf2_lookup_abbrev. All callers updated.
4419 (abbrev_table_read_table): New function. Contents moved here from
4420 dwarf2_read_abbrevs.
4421 (dwarf2_read_abbrevs): Call it.
4422 (abbrev_table_free): New function.
4423 (dwarf2_free_abbrev_table): Call it.
4424
4425 2012-06-28 Stan Shebs <stan@codesourcery.com>
4426
4427 * osdata.c (info_osdata_command): Filter out "Title" columns
4428 from non-MI uses.
4429 * common/linux-osdata.c (struct osdata_type): Add title field.
4430 (osdata_table): Add titles to each entry.
4431 (linux_command_xfer_osdata): Add a column for title data.
4432
4433 2012-06-28 Stan Shebs <stan@codesourcery.com>
4434
4435 Make logging work for MI.
4436 * NEWS: Mention it.
4437 * interps.h (interp_set_logging_ftype): New typedef.
4438 (struct interp_procs): New field set_logging_proc.
4439 (current_interp_set_logging): Declare.
4440 * interps.c (current_interp_set_logging): New function.
4441 * cli/cli-logging.c: Include interps.h.
4442 (set_logging_redirect): Call current_interp_set_logging.
4443 (pop_output_files): Ditto.
4444 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4445 * mi/mi-console.h (mi_console_set_raw): Declare.
4446 * mi/mi-console.c (mi_console_set_raw): New function.
4447 * mi/mi-interp.c (saved_raw_stdout): New global.
4448 (mi_set_logging): New function.
4449 (_initialize_mi_interp): Add it to interp procs.
4450
4451 2012-06-28 Doug Evans <dje@google.com>
4452
4453 * symtab.c (lookup_symbol_aux_objfile): Use
4454 ALL_OBJFILE_PRIMARY_SYMTABS.
4455
4456 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4457
4458 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4459
4460 * common/buffer.c: Include inttypes.h and stdint.h.
4461 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4462
4463 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 Pedro Alves <palves@redhat.com>
4465
4466 * gdbthread.h (ALL_THREADS): New macro.
4467 (thread_list): Declare.
4468 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4469 going, but instead fall through to the stepping handling.
4470 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4471 the passed in signal. Adjust debug output.
4472 (resume_callback): Rename to ...
4473 (linux_nat_resume_callback): ... this. Pass the thread's last
4474 stop signal, if in "pass" state.
4475 (linux_nat_resume): Adjust to rename.
4476 (stop_wait_callback): New assertion. Don't respawn signals;
4477 instead let the LWP remain with SIGNALLED set.
4478 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4479 * remote.c (append_pending_thread_resumptions): New.
4480 (remote_vcont_resume): Call it.
4481 * target.h (target_resume): Extend comment.
4482
4483 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4484
4485 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4486
4487 2012-06-27 Doug Evans <dje@google.com>
4488
4489 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4490 Delete have_addr_base, unused. All uses updated.
4491 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4492 (dwarf2_get_pc_bounds): Add ranges_base.
4493 (dwarf2_record_block_ranges): Ditto.
4494
4495 2012-06-27 Tom Tromey <tromey@redhat.com>
4496
4497 PR macros/7961:
4498 * varobj.c (varobj_create): Update.
4499 (varobj_set_value): Update.
4500 * tracepoint.c (validate_actionline): Update.
4501 (encode_actions_1): Update.
4502 * parse.c (parse_exp_1): Add 'pc' argument.
4503 (parse_exp_in_context): Add 'pc' argument. Change how
4504 expression_context_pc is set.
4505 (parse_expression): Update.
4506 (parse_field_expression): Update.
4507 * expression.h (parse_exp_1): Update.
4508 * eval.c (parse_to_comma_and_eval): Update.
4509 * breakpoint.c (set_breakpoint_condition): Update.
4510 (update_watchpoint): Update.
4511 (init_breakpoint_sal): Update
4512 (find_condition_and_thread): Update.
4513 (watch_command_1): Update.
4514 (update_breakpoint_locations): Update.
4515 * ada-lang.c (ada_read_renaming_var_value): Update.
4516 (create_excep_cond_exprs): Update.
4517
4518 2012-06-27 Doug Evans <dje@google.com>
4519
4520 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4521 type units.
4522
4523 2012-06-26 Doug Evans <dje@google.com>
4524
4525 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4526 prototype.
4527 (error_check_comp_unit_head): New arg abbrev_section. All callers
4528 updated.
4529 (read_and_check_comp_unit_head): Ditto.
4530 (read_and_check_type_unit_head): Ditto.
4531
4532 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4533
4534 New attribute 'last' for gdb.Symtab_and_line.
4535 * NEWS (Python Scripting): Add entry about the new attribute.
4536 * python/py-symtab.c (salpy_get_last): New function which
4537 implements the get method for the 'last' attribute of
4538 gdb.Symtab_and_line.
4539 (sal_object_getset): Add entry for the 'last' attribute.
4540
4541 2012-06-26 Doug Evans <dje@google.com>
4542
4543 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4544 (dwo_sections): Add macinfo, macro.
4545 (dwarf2_locate_dwo_sections): Watch for macro sections.
4546 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4547 All callers updated. Handle DWO files.
4548
4549 * NEWS: Mention new options "set debug dwarf2-read" and
4550 "set debug symtab-create".
4551 * dwarf2read.c (dwarf2_read_debug): New static global.
4552 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4553 (process_queue): Ditto.
4554 (process_full_comp_unit): Ditto.
4555 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4556 * elfread.c (elf_symfile_read): Add debugging printf.
4557 * minsyms.c (install_minimal_symbols): Ditto.
4558 * psymtab.c (allocate_psymtab): Ditto.
4559 * symfile.c (allocate_symtab): Ditto.
4560 * symtab.c (symtab_create_debug): New global.
4561 (_initialize_symtab): Add new option "set debug symtab-create".
4562 * symtab.h (symtab_create_debug): Declare.
4563
4564 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4565 (lookup_dwo_type_unit): Ditto.
4566
4567 2012-06-26 Roland McGrath <roland@hack.frob.com>
4568 H.J. Lu <hongjiu.lu@intel.com>
4569
4570 * amd64-linux-nat.c: Include <sys/user.h>.
4571 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4572 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4573 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4574
4575 * configure.ac: Check if the fs_base and gs_base members of
4576 `struct user_regs_struct' exist.
4577 * config.in: Regenerated.
4578 * configure: Likewise.
4579
4580 2012-06-25 Michael Eager <eager@eagercon.com>
4581
4582 PR python/14291
4583 * python/python.c (gdbpy_write): Check for interrupted output.
4584
4585 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4586
4587 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4588 register as a stack alignment in ARM mode.
4589
4590 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4591
4592 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4593 * gnulib/config.in: Regenerate.
4594 * gnulib/configure: Likewise.
4595 * gnulib/import/m4/extensions.m4: Update it.
4596 * gnulib/import/m4/gnulib-common.m4: Likewise.
4597 * gnulib/import/m4/memmem.m4: Likewise.
4598 * gnulib/import/m4/mmap-anon.m4: Likewise.
4599 * gnulib/import/m4/multiarch.m4: Likewise.
4600 * gnulib/import/stdint.in.h: Likewise.
4601
4602 2012-06-24 Yao Qi <yao@codesourcery.com>
4603
4604 * corefile.c (write_memory_with_notification): New.
4605 * gdbcore.h: Declare write_memory_with_notification.
4606 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4607 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4608 * valops.c (value_assign): Likewise.
4609 * python/py-inferior.c (infpy_write_memory): Call
4610 'write_memory_with_notification'.
4611
4612 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4613
4614 * cc-with-index.sh: Use also -ex "set auto-load no".
4615
4616 2012-06-23 Doug Evans <dje@google.com>
4617
4618 PR 14125
4619 * NEWS: Document additions to .gdb_index.
4620 * dwarf2read.c: #include "gdb/gdb-index.h".
4621 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4622 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4623 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4624 (dwarf2_read_index): Recognize version 7.
4625 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4626 block_kind, domain): All callers updated.
4627 (dw2_find_symbol_file): Handle new index CU values.
4628 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4629 (add_index_entry): New args is_static, kind. All callers updated.
4630 (offset_type_compare, uniquify_cu_indices): New functions
4631 (symbol_kind): New function.
4632 (write_psymtabs_to_index): Remove duplicate CU values.
4633 (write_psymtabs_to_index): Write .gdb_index version 7.
4634
4635 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4636
4637 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4638 * configure: Regenerate.
4639
4640 2012-06-20 Yao Qi <yao@codesourcery.com>
4641
4642 * python/py-inferior.c: Update comments of infpy_read_memory
4643 and infpy_write_memory.
4644
4645 2012-06-19 Tom Tromey <tromey@redhat.com>
4646
4647 PR exp/9514:
4648 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4649 (push_type_address_space): Remove.
4650 * parse.c (insert_into_type_stack): New function.
4651 (insert_type): Likewise.
4652 (insert_type_address_space): Rename from push_type_address_space.
4653 Insert tp_space_identifier.
4654 * c-exp.y (ptr_operator): New production.
4655 (abs_decl): Use ptr_operator.
4656 (space_identifier): Call insert_type_address_space.
4657 (ptype): Don't use const_or_volatile_or_space_identifier.
4658 (const_or_volatile_noopt): Call insert_type.
4659 (conversion_type_id, conversion_declarator): New productions.
4660 (operator): Use conversion_type_id.
4661
4662 2012-06-18 Doug Evans <dje@google.com>
4663
4664 * symtab.h (minimal_symbol): New member created_by_gdb.
4665 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4666 created by gdb.
4667 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4668 (search_symbols): Call it instead of lookup_symbol.
4669 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4670
4671 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4672 Adjust address for DW_OP_GNU_addr_index.
4673 * dwarf2expr.h (dwarf_expr_context): Update comment.
4674 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4675 all callers updated. Handle TLS vars described with
4676 DW_OP_GNU_const_index.
4677 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4678 and DW_OP_GNU_const_index.
4679 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4680
4681 * block.c (find_block_in_blockvector): Make explicit the fact that we
4682 ignore GLOBAL_BLOCK.
4683
4684 2012-06-18 Tom Tromey <tromey@redhat.com>
4685
4686 * c-exp.y (operator): Remove trailing space after "delete" and
4687 "delete[]".
4688
4689 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4690 Jan Kratochvil <jan.kratochvil@redhat.com>
4691
4692 Switch i386 and derived targets to ON_STACK.
4693 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4694 (amd64_dicos_init_abi): Remove its installment.
4695 * dicos-tdep.c (dicos_init_abi): Remove the
4696 set_gdbarch_call_dummy_location call. Update the comment here.
4697 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4698 (i386_dicos_init_abi): Remove its installment.
4699 * i386-tdep.c (i386_push_dummy_code): New function.
4700 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4701 i386_push_dummy_code.
4702
4703 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4704
4705 Remove stale dummy frames.
4706 * breakpoint.c: Include dummy-frame.h.
4707 (longjmp_breakpoint_ops): New variable.
4708 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4709 bp_longjmp_call_dummy.
4710 (bpstat_what, bptype_string, print_one_breakpoint_location)
4711 (init_bp_location): Support bp_longjmp_call_dummy.
4712 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4713 (set_longjmp_breakpoint_for_call_dummy)
4714 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4715 functions.
4716 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4717 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4718 FIXME comment and extend the other comment for bp_call_dummy.
4719 (set_longjmp_breakpoint_for_call_dummy)
4720 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4721 * dummy-frame.c: Include gdbthread.h.
4722 (pop_dummy_frame_bpt): New function.
4723 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4724 (dummy_frame_discard): New function.
4725 (cleanup_dummy_frames): Update the comment about longjmps.
4726 * dummy-frame.h (dummy_frame_discard): New declaration.
4727 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4728 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4729 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4730 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4731 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4732 keep_going if IS_LONGJMP and there is no other reason to stop.
4733
4734 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4735
4736 * remote-sim.c (sim_command_completer): Initialize
4737 variable 'result'.
4738
4739 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4740
4741 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4742 * dwarf2loc.c (call_site_parameter_matches): Support
4743 CALL_SITE_PARAMETER_PARAM_OFFSET.
4744 (needs_dwarf_reg_entry_value): Push stub value.
4745 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4746 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4747 * gdbtypes.h (enum call_site_parameter_kind): New item
4748 CALL_SITE_PARAMETER_PARAM_OFFSET.
4749 (struct call_site.parameter.u): New field param_offset.
4750
4751 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 Code cleanup: Generalize call_site.parameter key.
4754 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4755 variable dwarf_reg. New variable kind_u. Update parameters to
4756 push_dwarf_reg_entry_value.
4757 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4758 * dwarf2expr.h (enum call_site_parameter_kind)
4759 (union call_site_parameter_u): Forward declarations.
4760 (struct dwarf_expr_context_funcs): Update parameters and their
4761 description for push_dwarf_reg_entry_value.
4762 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4763 * dwarf2loc.c (call_site_parameter_matches): New function.
4764 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4765 description. Use call_site_parameter_matches.
4766 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4767 Update parameters and their description.
4768 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4769 New variable kind_u. Adjust the caller for updated parameters.
4770 (needs_dwarf_reg_entry_value): Update parameters.
4771 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4772 instead of attr. Update for the changed fields of struct
4773 call_site_parameter.
4774 * gdbtypes.h: Include dwarf2expr.h.
4775 (enum call_site_parameter_kind): New.
4776 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4777 fb_offset into new union u.
4778
4779 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4780
4781 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4782 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4783 for x32.
4784
4785 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4786
4787 * amd64-linux-nat.c (compat_x32_clock_t): New.
4788 (compat_x32_siginfo_t): Likewise.
4789 (compat_x32_siginfo_from_siginfo): Likewise.
4790 (siginfo_from_compat_x32_siginfo): Likewise.
4791 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4792 and siginfo_from_compat_x32_siginfo for x32.
4793
4794 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4795
4796 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4797
4798 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4799
4800 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4801 instead of gdbarch_ptr_bit.
4802 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4803 (amd64_supply_native_gregset): Likewise.
4804 (amd64_collect_native_gregset): Likewise.
4805 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4806 (amd64_supply_xsave): Likewise.
4807 (amd64_collect_fxsave): Likewise.
4808 (amd64_collect_xsave): Likewise.
4809
4810 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4811
4812 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4813 (amd64_linux_read_description): Check DS segment register for
4814 x32 process.
4815
4816 2012-06-15 Tom Tromey <tromey@redhat.com>
4817
4818 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4819 init_cutu_and_read_dies.
4820
4821 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4822
4823 * MAINTAINERS (Write After Approval): Add myself to the list.
4824
4825 2012-06-15 Tom Tromey <tromey@redhat.com>
4826
4827 * valops.c (value_find_oload_method_list): Now static.
4828 * value.h (value_find_oload_method_list): Don't declare.
4829
4830 2012-06-15 Tom Tromey <tromey@redhat.com>
4831
4832 * valops.c (find_overload_match): Use value_ind.
4833
4834 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4835
4836 * infrun.c (handle_inferior_event): Correct indentation.
4837
4838 2012-06-14 Doug Evans <dje@google.com>
4839
4840 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4841 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4842 All uses updated.
4843 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4844 updated. Handle DEBUG_LOC_START_LENGTH.
4845 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4846 (loclist_describe_location): Ditto.
4847
4848 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4849
4850 PR backtrace/13866
4851 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4852 after hiding inline functions.
4853
4854 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4855
4856 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4857 _initialize_inf_ttrace.
4858
4859 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4860
4861 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4862 _initialize_hppa_hpux_nat.
4863
4864 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4865
4866 * remote-sim.c (sim_command_completer): Change type of return
4867 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4868
4869 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4870 Jan Kratochvil <jan.kratochvil@redhat.com>
4871
4872 PR tdep/14222
4873 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4874 stack on a 16-byte boundary.
4875
4876 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4877
4878 * jit.c (finalize_symtab): Set function's return type to 'void' by
4879 default.
4880
4881 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4882 H.J. Lu <hongjiu.lu@intel.com>
4883
4884 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4885 Move bits common to both the classic LP64 and the new x32 ILP32
4886 ABI here.
4887 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4888 (amd64_x32_linux_init_abi): New function.
4889 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4890 subtype.
4891
4892 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4893 * i386-tdep.c (i386_pseudo_register_name): Make public.
4894 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4895 * amd64-tdep.c (amd64_dword_names): Add "eip".
4896 (amd64_x32_pseudo_register_type): New function
4897 (amd64_x32_init_abi): New function.
4898
4899 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4900
4901 PR build/14003
4902 * inferior.h (struct inferior_suspend_state): Comment out.
4903 (struct inferior): Comment out the field suspend.
4904 * infrun.c (struct infcall_suspend_state): Comment out the field
4905 inferior_suspend.
4906 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4907 out its assignment.
4908
4909 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4910
4911 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4912 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4913 function comment. Return ERROR for unresolved cases. Implement
4914 returning proper NAME.
4915 (yylex): Accept also NAME from classify_inner_name.
4916 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4917 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4918 LOC_TYPEDEF type.
4919 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4920
4921 2012-06-13 Tom Tromey <tromey@redhat.com>
4922
4923 * breakpoint.c (condition_completer): New function.
4924 (_initialize_breakpoint): Use it.
4925 * value.c (complete_internalvar): New function.
4926 * value.h (complete_internalvar): Declare.
4927
4928 2012-06-13 Tom Tromey <tromey@redhat.com>
4929
4930 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4931 * breakpoint.c (catch_syscall_completer): Return a VEC.
4932 * cli/cli-cmds.c (complete_command): Update.
4933 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4934 (complete_on_enum): Likewise.
4935 * command.h: Include gdb_vecs.h.
4936 (completer_ftype): Change return type.
4937 (complete_on_cmdlist, complete_on_enum): Likewise.
4938 * completer.c (noop_completer, filename_completer)
4939 (location_completer): Return a VEC.
4940 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4941 to a VEC.
4942 (expression_completer, complete_line_internal, complete_line)
4943 (command_completer): Return a VEC.
4944 (gdb_completion_word_break_characters, line_completion_function):
4945 Update.
4946 * completer.h: Include gdb_vecs.h.
4947 (complete_line, noop_completer, filename_completer)
4948 (expression_completer, location_completer, command_completer):
4949 Update.
4950 * f-lang.c (f_word_break_characters): Return a VEC.
4951 * interps.c (interpreter_completer): Return a VEC.
4952 * language.h (struct language_defn)
4953 <la_make_symbol_completion_list>: Return a VEC.
4954 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4955 * symtab.c (free_completion_list): Take a VEC.
4956 (return_val_size, return_val_index): Remove.
4957 (return_val): Now a VEC.
4958 (completion_list_add_name): Update.
4959 (default_make_symbol_completion_list_break_on)
4960 (default_make_symbol_completion_list, make_symbol_completion_list)
4961 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4962 Return a VEC.
4963 (add_filename_to_list): Update.
4964 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4965 <list>: Now a VEC.
4966 (maybe_add_partial_symtab_filename): Update.
4967 (make_source_files_completion_list): Return a VEC.
4968 * symtab.h (default_make_symbol_completion_list_break_on)
4969 (default_make_symbol_completion_list, make_symbol_completion_list)
4970 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4971 (make_source_files_completion_list): Update.
4972
4973 2012-06-13 Tom Tromey <tromey@redhat.com>
4974
4975 * breakpoint.c (add_catch_command): Use completer_ftype.
4976 * breakpoint.h: Include command.h.
4977 (add_catch_command): Use completer_ftype.
4978 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4979 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4980 Use completer_ftype.
4981 * command.h (completer_ftype): New typedef.
4982 (set_cmd_completer): Use it.
4983 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4984 completer_ftype.
4985
4986 2012-06-13 Pedro Alves <palves@redhat.com>
4987
4988 Partial revert of previous change.
4989
4990 * serial.c (scb_base): New global.
4991 (serial_for_fd): New.
4992 (serial_open, serial_fdopen_ops): Link new serial in open serials
4993 chain.
4994 (do_serial_close): Unlink serial from the open serials chain.
4995
4996 2012-06-12 Pedro Alves <palves@redhat.com>
4997
4998 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4999 threads here.
5000 (prepare_for_detach): No longer context switch here in non-stop
5001 mode.
5002 (fetch_inferior_event): Ditto.
5003 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5004 to the event thread before removing breakpoints. Switch to the
5005 event thread before inserting breakpoints and resuming.
5006 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5007 event thread before resuming.
5008 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5009 Switch to the event thread before removing breakpoints.
5010
5011 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5012
5013 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5014 special characters correctly for the Windows shells. See
5015 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5016 report.
5017 [!__MINGW32__]: Remove extra double quote character from special
5018 characters.
5019
5020 2012-06-11 Stan Shebs <stan@codesourcery.com>
5021
5022 * ui-out.h: Remove #if 0 declarations.
5023 * ui-out.c: Remove #if 0 functions.
5024
5025 2012-06-11 Pedro Alves <palves@redhat.com>
5026
5027 * ser-base.c (run_async_handler_and_reschedule): New.
5028 (fd_event, push_event): Use it.
5029 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5030 reference count to 1.
5031 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5032 instead of xfree.
5033 (serial_is_open, serial_ref, serial_unref): New.
5034 * serial.h (serial_open): Adjust comment.
5035 (serial_is_open): Declare.
5036 (serial_close): Adjust comment.
5037 (serial_ref, serial_unref) Declare.
5038 (struct serial): New field 'refcnt'.
5039
5040 2012-06-11 Pedro Alves <palves@redhat.com>
5041
5042 Remove #if 0'd "connect" command, and unnecessary associated
5043 refcounting and serial reuse bits.
5044
5045 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5046 * serial.c (last_serial_opened): Delete.
5047 (scb_base): Delete.
5048 (serial_open): Adjust.
5049 (serial_for_fd): Delete.
5050 (serial_fdopen_ops, do_serial_close): Adjust.
5051 (serial_fdopen_ops): Adjust.
5052
5053 2012-06-11 Pedro Alves <palves@redhat.com>
5054
5055 * serial.c (do_serial_close): Remove early return when SCB is
5056 null.
5057
5058 2012-06-11 Tom Tromey <tromey@redhat.com>
5059
5060 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5061
5062 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 Fix regression by the "ambiguous linespec" series.
5065 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5066 get_last_displayed_symtab and get_last_displayed_line and depending
5067 on CURSAL.
5068
5069 2012-06-11 Tom Tromey <tromey@redhat.com>
5070
5071 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5072 (dw2_find_symbol_file): Use it.
5073
5074 2012-06-11 Michael Eager <eager@eagercon.com>
5075
5076 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5077 * mips-linux-tdep.h (mips_signals): New
5078
5079 2012-06-11 Tom Tromey <tromey@redhat.com>
5080
5081 * infrun.c (handle_inferior_event)
5082 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5083 breakpoint.
5084 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5085 exception logic in all cases. Update comments.
5086 (insert_longjmp_resume_breakpoint): Set the exception resume
5087 breakpoint.
5088
5089 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5090
5091 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5092
5093 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5094
5095 * valarith.c (binop_types_user_defined_p): Fix a typo.
5096
5097 2012-06-08 Yao Qi <yao@codesourcery.com>
5098 Chung-Lin Tang <cltang@codesourcery.com>
5099
5100 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5101 * arch-utils.h: Declare.
5102 * gdbarch.sh: Add return_in_first_hidden_param_p.
5103 * gdbarch.c, gdbarch.h: Regenerated.
5104 * infcall.c (call_function_by_hand): Call
5105 gdbarch_return_in_first_hidden_param_p instead of
5106 language_pass_by_reference.
5107
5108 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5109 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5110 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5111 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5112 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5113 `cplus_return_struct_by_reference'.
5114 (tic6x_return_value): Handle language cplusplus.
5115 (tic6x_return_in_first_hidden_param_p): New.
5116 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5117
5118 2012-06-07 Doug Evans <dje@google.com>
5119
5120 * dwarf2read.c (dwarf2_cu): Add comment.
5121
5122 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5123
5124 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5125 variable.
5126 (mips_eabi_push_dummy_call): Likewise.
5127 (mips_n32n64_push_dummy_call): Likewise.
5128 (mips_o32_push_dummy_call): Likewise.
5129 (mips_o64_push_dummy_call): Likewise.
5130
5131 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5132
5133 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5134
5135 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5136
5137 * mips-tdep.c (mips_pseudo_register_type): Use
5138 mips_float_register_p.
5139
5140 2012-06-06 Pedro Alves <palves@redhat.com>
5141
5142 * infrun.c (handle_inferior_event): Remove calls to
5143 reinit_frame_cache that follow a context_switch call.
5144
5145 2012-06-06 Pedro Alves <palves@redhat.com>
5146
5147 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5148 context_switch and remove stale comment.
5149
5150 2012-06-06 Pedro Alves <palves@redhat.com>
5151
5152 * infrun.c (struct execution_control_state): Remove
5153 `new_thread_event' field.
5154 (handle_inferior_event): Simplify new threads handling; don't
5155 resume the inferior if we find a new thread.
5156
5157 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5158
5159 * NEWS: Document the deprecation of SH's 'regs' command.
5160 * inferior.h (all_registers_info): Add function declaration.
5161 * sh-tdep.c (sh_show_regs): Remove variable.
5162 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5163 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5164 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5165 (sh_show_regs_command): Remove functions.
5166 (sh_gdbarch_init): Don't set sh_show_regs.
5167 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5168 'info all-registers'.
5169 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5170 (sh64_show_regs): Remove functions.
5171 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5172
5173 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5174
5175 * configure.ac: Move development=true below AC_INIT.
5176 * configure: Regenerate.
5177
5178 2012-06-05 Stan Shebs <stan@codesourcery.com>
5179
5180 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5181 gdb_stdout.
5182
5183 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5184
5185 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5186 argument as ssize_t.
5187 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5188 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5189 * target.c (target_read_stack, target_write_memory)
5190 (target_write_raw_memory): Likewise.
5191 * target.h (target_read_stack, target_write_memory)
5192 (target_write_raw_memory): Likewise.
5193
5194 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5197 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5198 * target.c (target_read_memory): Change LEN to ssize_t.
5199 * target.h (target_read_memory): Change LEN to ssize_t.
5200
5201 2012-06-05 Pedro Alves <palves@redhat.com>
5202
5203 PR backtrace/13866
5204
5205 * breakpoint.c (until_break_command): Only fetch the selected
5206 frame after decode_line_1.
5207
5208 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5209
5210 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5211 event breakpoint at _start, __start or main if a program
5212 interpreter is not found.
5213
5214 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5215
5216 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5217 Add declaration.
5218 * windows-tdep.c: #include "objfiles.h".
5219 (windows_iterate_over_objfiles_in_search_order): New function.
5220 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5221 iterate_over_objfiles_in_search_order gdbarch method to
5222 windows_iterate_over_objfiles_in_search_order.
5223 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5224
5225 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5226
5227 * gdbarch.sh: Add generation of
5228 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5229 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5230 (iterate_over_objfiles_in_search_order): New gdbarch method.
5231 * gdbarch.h, gdbarch.c: Regenerate.
5232 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5233 Add declaration.
5234 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5235 New function.
5236 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5237 out of lookup_symbol_aux_symtabs.
5238 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5239 call to lookup_symbol_aux_objfile.
5240 (struct global_sym_lookup_data): New type.
5241 (lookup_symbol_global_iterator_cb): New function.
5242 (lookup_symbol_global): Search for symbol using
5243 gdbarch_iterate_over_objfiles_in_search_order and
5244 lookup_symbol_global_iterator_cb.
5245 * findvar.c (struct minsym_lookup_data): New type.
5246 (minsym_lookup_iterator_cb): New function.
5247 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5248 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5249 and minsym_lookup_iterator_cb.
5250
5251 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5252
5253 Revert the following patch:
5254 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5255 try locating the symbol in the symbol's own objfile first, before
5256 extending the search to all objfiles.
5257 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5258 out of lookup_symbol_aux_symtabs.
5259 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5260 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5261 Do not search EXCLUDE_OBJFILE.
5262 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5263 (lookup_symbol_global): Search for matches in the block's objfile
5264 first, before searching all other objfiles.
5265
5266 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5267
5268 * breakpoint.c (find_condition_and_thread): Stop parsing
5269 as soon as the first invalid keyword is found.
5270
5271 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5272
5273 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5274
5275 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5276
5277 * config/djgpp/djcheck.sh: Add copyright header.
5278
5279 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5280
5281 * copyright.py (update_files, main): Fix path to update-copyright
5282 script.
5283
5284 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5285
5286 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5287 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5288 for which a reminder to update by hand is printed.
5289
5290 2012-06-04 Doug Evans <dje@google.com>
5291
5292 * buildsym.c (make_blockvector): Add comment.
5293
5294 2012-06-04 Pedro Alves <palves@redhat.com>
5295
5296 * arch-utils.c (default_gdb_signal_from_target): Delete.
5297 * arch-utils.h (default_gdb_signal_from_target): Delete.
5298 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5299 gdbarch_gdb_signal_from_target_p.
5300 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5301 predicate).
5302 * gdbarch.h: Regenerate.
5303 * gdbarch.c: Regenerate.
5304
5305 2012-06-04 Pedro Alves <palves@redhat.com>
5306
5307 * gdbarch.sh (gdb_signal_from_target): Mention that the
5308 implementation of the method must be host independent.
5309 * gdbarch.h: Regenerate.
5310
5311 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5312
5313 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5314 parameters.
5315 (target_read_memory_bfd): New function.
5316 (symbol_file_add_from_memory): Use it.
5317
5318 2012-06-03 Doug Evans <dje@google.com>
5319
5320 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5321 of primary symtab.
5322 (basic_lookup_transparent_type): Ditto.
5323
5324 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5325 (ALL_PRIMARY_SYMTABS): Use it.
5326 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5327 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5328 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5329 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5330 (basic_lookup_transparent_type): Ditto.
5331
5332 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5333
5334 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5335 it to optimize resolution of demangled name.
5336
5337 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5338
5339 * configure.ac (development): Define new variable.
5340 Call AC_CHECK_LIB for mcheck if $development.
5341 (ERROR_ON_WARNING): Enable it by default only if $development.
5342 * config.in: Regenerate.
5343 * configure: Regenerate.
5344
5345 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5346
5347 * target.c (target_read_memory): Make LEN argument as size_t.
5348 * target.h (target_read_memory): Likewise.
5349
5350 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5351
5352 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5353
5354 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5355
5356 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5357 BookE interface for PowerPC server processors if not available
5358 in the Linux Kernel.
5359
5360 2012-05-31 Keith Seitz <keiths@redhat.com>
5361
5362 * linespec.c (decode_objc): Add cleanup to free
5363 INFO.FILE_SYMTABS.
5364 (find_linespec_symbols): Add cleanup to free CLASSES.
5365 * symfile.c (find_separate_debug_file_by_debuglink): Add
5366 cleanup to free DEBUGLINK.
5367 * ui-out.c (clear_header_list): No need to check if
5368 HEADER_NEXT.COLHDR is NULL.
5369 Free HEADER_NEXT.COL_NAME.
5370
5371 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5372
5373 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5374 warning.
5375
5376 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5377
5378 * configure.host (gdb_host_cpu): Handle tilegx*.
5379 (gdb_host): Handle tilegx-*-linux*.
5380 * tilegx-linux-nat.c: New file.
5381 * config/tilegx/linux.mh: New file.
5382
5383 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5384
5385 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5386 tilegx-linux-tdep.o.
5387 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5388 tilegx-linux-tdep.c.
5389 * configure.tgt: Handle tilegx-*-linux*.
5390 * tilegx-tdep.h: New file.
5391 * tilegx-tdep.c: New file.
5392 * tilegx-linux-tdep.c: New file.
5393 * regformats/reg-tilegx.dat: New file.
5394
5395 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5396
5397 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5398 accounting of hw watchpoints on ppc.
5399
5400 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5401
5402 * source.c (openp): Expand tilde in path entries.
5403
5404 2012-05-29 Doug Evans <dje@google.com>
5405
5406 * buildsym.c (block_compar): Fix comment.
5407 (end_symtab): Fix and clarify some comments.
5408
5409 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5410 cleanup_undefined_types.
5411 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5412 All callers updated.
5413
5414 2012-05-29 Tom Tromey <tromey@redhat.com>
5415
5416 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5417 fails.
5418 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5419 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5420 fails.
5421 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5422 fails.
5423
5424 2012-05-29 Tristan Gingold <gingold@adacore.com>
5425
5426 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5427 (struct darwin_info): ... New struct.
5428 (solib_darwin_pspace_data): New variable.
5429 (darwin_pspace_data_cleanup): New function.
5430 (get_darwin_info): Likewise.
5431 (darwin_dyld_version_ok, darwin_load_image_infos)
5432 (darwin_solib_get_all_image_info_addr_at_init)
5433 (darwin_solib_read_all_image_info_addr): Add info argument.
5434 Adjust code.
5435 (darwin_current_sos): Use per pspace structure.
5436 (darwin_solib_create_inferior_hook): Likewise.
5437 (darwin_clear_solib): Likewise.
5438 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5439
5440 2012-05-28 Pedro Alves <palves@redhat.com>
5441
5442 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5443 block that uses them. Clear ecss before handling each event.
5444
5445 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5446
5447 * solib-svr4.c (svr4_current_sos): New comment on
5448 svr4_current_sos_via_xfer_libraries fall back.
5449
5450 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5451
5452 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5453 it as a fallback for TYPE_IS_OPAQUE.
5454 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5455 symbols for lookup_symbol.
5456
5457 2012-05-24 John Steele Scott <toojays@toojays.net>
5458
5459 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5460 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5461 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5462 (check_producer): ... this new function, which also checks for ICC
5463 and caches the result.
5464 (producer_is_icc): New function.
5465 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5466 producer was ICC.
5467
5468 2012-05-24 Pedro Alves <palves@redhat.com>
5469
5470 PR gdb/7205
5471
5472 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5473 (default_gdb_signal_to_target): ... this. Add comment.
5474 (default_gdb_signal_from_host): Rename to ...
5475 (default_gdb_signal_from_target): ... this. Add comment.
5476 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5477 (default_gdb_signal_to_target): ... this.
5478 (default_gdb_signal_from_host): Rename to ...
5479 (default_gdb_signal_from_target): ... this.
5480 * corelow.c (core_open): Adjust to naming change. Replace comment.
5481 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5482 (gdb_signal_from_target): ... this. Adjust to
5483 default_gdb_signal_from_host naming change. Extend comment.
5484 (gdb_signal_to_host): Rename to ...
5485 (gdb_signal_to_target): ... this. Adjust to
5486 default_gdb_signal_to_host naming change.
5487 * gdbarch.h, gdbarch.c: Renegerate.
5488
5489 2012-05-24 Pedro Alves <palves@redhat.com>
5490
5491 PR gdb/7205
5492
5493 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5494
5495 2012-05-24 Pedro Alves <palves@redhat.com>
5496
5497 PR gdb/7205
5498
5499 Replace target_signal with gdb_signal throughout.
5500
5501 2012-05-24 Pedro Alves <palves@redhat.com>
5502
5503 PR tui/14159
5504
5505 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5506 string, instead of reusing the va_list argument.
5507
5508 2012-05-24 Tom Tromey <tromey@redhat.com>
5509
5510 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5511 Remove.
5512
5513 2012-05-23 Doug Evans <dje@google.com>
5514
5515 * symtab.c (search_symbols): Formatting fixes.
5516 (print_symbol_info): Formatting fixes.
5517
5518 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5519 int64_t change to leb128 API.
5520 (read_encoded_value, decode_frame_entry_1): Ditto.
5521 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5522 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5523 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5524 (execute_stack_op): Ditto.
5525 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5526 (safe_read_uleb128, safe_read_sleb128): Ditto.
5527 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5528 (dwarf2_compile_expr_to_ax): Ditto.
5529 (locexpr_describe_location_piece): Ditto.
5530 (disassemble_dwarf_expression): Ditto.
5531 (locexpr_describe_location_1): Ditto.
5532
5533 2012-05-23 Stan Shebs <stan@codesourcery.com>
5534 Kwok Cheung Yeung <kcy@codesourcery.com>
5535
5536 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5537 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5538 (mi-cmd-info.o): New rule.
5539 * osdata.h (info_osdata_command): New declaration.
5540 * osdata.c (info_osdata_command): Change to non-static.
5541 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5542 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5543 * mi/mi-cmd-info.c: New file.
5544
5545 2012-05-23 Doug Evans <dje@google.com>
5546
5547 * symtab.c (search_symbols): Pass NULL for file_matcher to
5548 expand_symtabs_matching if there are no files to match.
5549
5550 * gdbtypes.c (lookup_typename): Simplify.
5551
5552 2012-05-23 Pedro Alves <palves@redhat.com>
5553
5554 * arch-utils.h (default_target_signal_to_host): Delete.
5555 * arch-utils.c (default_target_signal_to_host): Delete.
5556 * gdbarch.sh (target_signal_to_host): Remove.
5557 * gdbarch.h, gdbarch.c: Regenerate.
5558
5559 2012-05-22 Doug Evans <dje@google.com>
5560
5561 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5562 "const gdb_byte *".
5563 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5564 (execute_cfa_program): Update to match API of leb128 functions.
5565 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5566 "const gdb_byte *".
5567 (read_unsigned_leb128, read_signed_leb128): Delete.
5568 (read_initial_length): Change type of buf argument to
5569 "const gdb_byte *".
5570 (read_encoded_value): Update to match API of leb128 functions.
5571 (decode_frame_entry): Change result to "const gdb_byte *", and
5572 similarly for "start" parameter.
5573 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5574 (dwarf2_build_frame_info): Change local frame_ptr to
5575 "const gdb_byte *".
5576 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5577 read_uleb128, read_sleb128. All callers updated.
5578 (safe_skip_leb128): New function.
5579 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5580 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5581 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5582 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5583 read_uleb128, read_sleb128.
5584 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5585 (execute_stack_op): Update to match API of leb128 functions.
5586 * dwarf2expr.h: #include "leb128.h".
5587 (read_uleb128, read_sleb128): Delete.
5588 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5589 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5590 * dwarf2loc.c (debug_loc_kind): New enum.
5591 (decode_debug_loc_addresses): New function.
5592 (decode_debug_loc_dwo_addresses): New function.
5593 (dwarf2_find_location_expression): Rewrite.
5594 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5595 (locexpr_describe_location_piece): Ditto.
5596 (disassemble_dwarf_expression): Ditto.
5597 (locexpr_describe_location_1): Ditto.
5598 (loclist_describe_location): Rewrite.
5599 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5600 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5601 (dwarf2_section_buffer_overflow_complaint): Renamed from
5602 dwarf2_macros_too_long_complaint. All callers updated.
5603 (skip_leb128): Delete.
5604 (init_cu_die_reader): Initialize reader->buffer_end.
5605 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5606 (skip_form_bytes): New arg buffer_end. All callers updated.
5607 Replace call to skip_leb128 with gdb_skip_leb128.
5608 (skip_unknown_opcode): New arg mac_end. All callers updated.
5609 (fill_in_loclist_baton): Initialize baton->from_dwo.
5610
5611 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5612
5613 * mips-linux-nat.c (mips_linux_read_description): Use a more
5614 verbose error message.
5615
5616 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5617
5618 * NEWS: Add MIPS/Linux DSP support.
5619 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5620 (SIGCONTEXT_DSPCTL): New macro.
5621 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5622 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5623 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5624 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5625 (N64_SIGCONTEXT_HI3): Likewise.
5626 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5627 (N64_SIGCONTEXT_LO3): Likewise.
5628 (N64_SIGCONTEXT_DSPCTL): Likewise.
5629 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5630 (mips_linux_o32_sigframe_init): Handle DSP registers.
5631 (mips_linux_n32n64_sigframe_init): Likewise.
5632
5633 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5634
5635 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5636 call to abort.
5637
5638 2012-05-22 Pedro Alves <palves@redhat.com>
5639
5640 * target.h (store_waitstatus): Move declaration ...
5641 * inf-child.h (store_waitstatus): ... here.
5642 * target.c: Move inclusion of gdb_wait.h, and ...
5643 (store_waitstatus): ... this ...
5644 * inf-child.c: ... here.
5645 * linux-nat.c: Include inf-child.h.
5646 * rs6000-nat.c: Include inf-child.h.
5647 * spu-linux-nat.c: Include inf-child.h.
5648
5649 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5650
5651 * tracepoint.c (start_tracing): Add missing i18n markup.
5652 (stop_tracing, set_trace_user): Ditto.
5653 (set_trace_notes, set_trace_stop_notes): Ditto.
5654
5655 2012-05-21 Tom Tromey <tromey@redhat.com>
5656
5657 PR c++/7173:
5658 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5659 types.
5660 * value.h (value_cast_pointers): Update.
5661 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5662 (value_cast): Update.
5663 (update_search_result): New function.
5664 (do_search_struct_field): New, from search_struct_field. Check
5665 for ambiguous results.
5666 (search_struct_field): Rewrite.
5667 * infcall.c (value_arg_coerce): Update.
5668 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5669 value_cast_pointers.
5670 * ada-lang.c (ada_convert_actual): Update.
5671
5672 2012-05-21 Tom Tromey <tromey@redhat.com>
5673
5674 * macroexp.c (macro_stringify): Terminate the string.
5675
5676 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5677
5678 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5679 Describe it.
5680 * auto-load.c (auto_load_expand_dir_vars): New function.
5681 (auto_load_safe_path_vec_update): Use it, remove the
5682 substitute_path_component call thanks to it.
5683 (auto_load_objfile_script): Remove the debug_file_directory processing.
5684 Use auto_load_expand_dir_vars, remove the substitute_path_component
5685 call thanks to it.
5686 * configure: Regenerate.
5687 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5688 path. Escape $ also for $debugdir.
5689 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5690 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5691
5692 2012-05-20 Doug Evans <dje@google.com>
5693
5694 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5695 before use. Check for symtab->includes == NULL before scanning it.
5696
5697 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5698
5699 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5700
5701 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5702
5703 * NEWS: Add microMIPS support and "set mips compression",
5704 "show mips compression" commands.
5705 * mips-tdep.h (mips_isa): New enum.
5706 (gdbarch_tdep): Add mips_isa.
5707 (mips_pc_is_mips16): Update prototype.
5708 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5709 * mips-tdep.c (mips_compression_mips16): New variable.
5710 (mips_compression_micromips): Likewise.
5711 (mips_compression_strings): Likewise.
5712 (mips_compression_string): Likewise.
5713 (is_mips16_isa, is_micromips_isa): New functions.
5714 (is_mips16_addr): Rename to...
5715 (is_compact_addr): ... this.
5716 (unmake_mips16_addr): Likewise to...
5717 (unmake_compact_addr): ... this.
5718 (make_mips16_addr): Likewise to...
5719 (make_compact_addr): ... this.
5720 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5721 functions.
5722 (mips_elf_make_msymbol_special): Handle microMIPS code.
5723 (msymbol_is_special): Rename to...
5724 (msymbol_is_mips16): ... this.
5725 (mips_make_symbol_special, mips_pc_is_mips16): Update
5726 accordingly.
5727 (msymbol_is_mips, msymbol_is_micromips): New functions.
5728 (mips16_to_32_reg): Rename to...
5729 (mips_reg3_to_reg): ... this.
5730 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5731 (mips_pc_isa): Likewise.
5732 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5733 code.
5734 (mips_fetch_instruction): Pass return status instead of printing
5735 an error message if requested. Handle microMIPS code. Bail out
5736 on an invalid ISA.
5737 (micromips_op): New macro.
5738 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5739 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5740 (b6s4_op, b7s3_reg): Likewise.
5741 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5742 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5743 (mips_insn_size): New function.
5744 (mips32_next_pc): Update mips_fetch_instruction call.
5745 (micromips_relative_offset7): New function.
5746 (micromips_relative_offset10): Likewise.
5747 (micromips_relative_offset16): Likewise.
5748 (micromips_pc_insn_size): Likewise.
5749 (micromips_bc1_pc): Likewise.
5750 (micromips_next_pc): Likewise.
5751 (unpack_mips16): Update mips_fetch_instruction call.
5752 (extended_mips16_next_pc): Update according to change to
5753 mips16_to_32_reg.
5754 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5755 code.
5756 (mips16_scan_prologue): Update mips_fetch_instruction call.
5757 Update according to change to mips16_to_32_reg.
5758 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5759 (mips_insn16_frame_base_sniffer): Likewise.
5760 (micromips_decode_imm9): New function.
5761 (micromips_scan_prologue): Likewise.
5762 (mips_micro_frame_cache): Likewise.
5763 (mips_micro_frame_this_id): Likewise.
5764 (mips_micro_frame_prev_register): Likewise.
5765 (mips_micro_frame_sniffer): Likewise.
5766 (mips_micro_frame_unwind): New variable.
5767 (mips_micro_frame_base_address): New function.
5768 (mips_micro_frame_base): New variable.
5769 (mips_micro_frame_base_sniffer): New function.
5770 (mips32_scan_prologue): Update mips_fetch_instruction call.
5771 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5772 rather than for MIPS16.
5773 (mips_insn32_frame_base_sniffer): Likewise.
5774 (mips_addr_bits_remove): Handle microMIPS code.
5775 (deal_with_atomic_sequence): Rename to...
5776 (mips_deal_with_atomic_sequence): ... this. Update the type
5777 of the variable used to hold an instruction. Remove the ISA bit
5778 check. Update mips_fetch_instruction call.
5779 (micromips_deal_with_atomic_sequence): New function.
5780 (deal_with_atomic_sequence): Likewise.
5781 (mips_about_to_return): Handle microMIPS code. Update
5782 mips_fetch_instruction call.
5783 (heuristic_proc_start): Check for the standard MIPS ISA rather
5784 than for MIPS16. Update mips_pc_is_mips16 and
5785 mips_fetch_instruction calls. Handle microMIPS code.
5786 (mips_push_dummy_code): Handle microMIPS code.
5787 (mips_eabi_push_dummy_call): Likewise.
5788 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5789 (mips_o64_push_dummy_call): Handle microMIPS code.
5790 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5791 (is_delayed): Remove function.
5792 (mips_single_step_through_delay): Replace the call to is_delayed
5793 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5794 Handle microMIPS code.
5795 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5796 microMIPS code.
5797 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5798 call.
5799 (micromips_in_function_epilogue_p): New function.
5800 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5801 call.
5802 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5803 Handle microMIPS.
5804 (gdb_print_insn_mips): Likewise.
5805 (mips_breakpoint_from_pc): Likewise.
5806 (mips_remote_breakpoint_from_pc): New function.
5807 (mips32_instruction_has_delay_slot): Simplify making use of the
5808 updated mips_fetch_instruction interface.
5809 (micromips_instruction_has_delay_slot): New function.
5810 (mips16_instruction_has_delay_slot): Simplify making use of the
5811 updated mips_fetch_instruction interface.
5812 (mips_adjust_breakpoint_address): Check for the standard MIPS
5813 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5814 calls. Handle microMIPS code.
5815 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5816 (mips_skip_trampoline_code): Handle microMIPS code.
5817 (global_mips_compression): New function.
5818 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5819 file flags. Register the microMIPS remote breakpoint handler
5820 and heuristic frame unwinder.
5821 (show_mips_compression): New function.
5822 (_initialize_mips_tdep): Add the "set mips compression" and
5823 "show mips compression" commands.
5824
5825 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5826
5827 * ada-lang.c:
5828 * ada-tasks.c:
5829 * ada-varobj.c:
5830 * amd64-darwin-tdep.c:
5831 * arm-symbian-tdep.c:
5832 * arm-tdep.c:
5833 * avr-tdep.c:
5834 * ax-gdb.c:
5835 * bfin-linux-tdep.c:
5836 * breakpoint.c:
5837 * c-valprint.c:
5838 * cli/cli-cmds.c:
5839 * coffread.c:
5840 * cp-support.c:
5841 * cris-tdep.c:
5842 * dwarf2-frame-tailcall.c:
5843 * dwarf2-frame.c:
5844 * dwarf2expr.c:
5845 * dwarf2loc.c:
5846 * dwarf2read.c:
5847 * elfread.c:
5848 * eval.c:
5849 * expprint.c:
5850 * f-valprint.c:
5851 * frv-tdep.c:
5852 * h8300-tdep.c:
5853 * hppa-hpux-tdep.c:
5854 * hppa-tdep.c:
5855 * hppanbsd-tdep.c:
5856 * i386-nto-tdep.c:
5857 * i386-tdep.c:
5858 * i387-tdep.c:
5859 * ia64-tdep.c:
5860 * jit.c:
5861 * linespec.c:
5862 * linux-tdep.c:
5863 * lm32-tdep.c:
5864 * m2-valprint.c:
5865 * m32c-tdep.c:
5866 * m32r-rom.c:
5867 * m32r-tdep.c:
5868 * m68k-tdep.c:
5869 * m68klinux-tdep.c:
5870 * mi/mi-main.c:
5871 * microblaze-tdep.c:
5872 * mips-linux-tdep.c:
5873 * mips-tdep.c:
5874 * mn10300-tdep.c:
5875 * p-valprint.c:
5876 * parse.c:
5877 * ppc-linux-tdep.c:
5878 * ppc-sysv-tdep.c:
5879 * printcmd.c:
5880 * python/py-finishbreakpoint.c:
5881 * python/py-inferior.c:
5882 * python/py-infthread.c:
5883 * python/py-type.c:
5884 * python/python.c:
5885 * remote-fileio.c:
5886 * remote-m32r-sdi.c:
5887 * remote-mips.c:
5888 * reverse.c:
5889 * rl78-tdep.c:
5890 * rs6000-aix-tdep.c:
5891 * rs6000-tdep.c:
5892 * s390-tdep.c:
5893 * score-tdep.c:
5894 * sh64-tdep.c:
5895 * skip.c:
5896 * solib-darwin.c:
5897 * solib-dsbt.c:
5898 * solib-frv.c:
5899 * sparc-tdep.c:
5900 * spu-multiarch.c:
5901 * spu-tdep.c:
5902 * stack.c:
5903 * symfile.c:
5904 * symtab.c:
5905 * tic6x-tdep.c:
5906 * tracepoint.c:
5907 * v850-tdep.c:
5908 * valarith.c:
5909 * valprint.c:
5910 * value.c:
5911 * xcoffread.c:
5912 * xtensa-tdep.c:
5913 * ada-lang.c:
5914 * ada-tasks.c:
5915 * ada-varobj.c:
5916 * amd64-darwin-tdep.c:
5917 * arm-symbian-tdep.c:
5918 * arm-tdep.c: Delete unused variables.
5919
5920 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 Rename $ddir to $datadir.
5923 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5924 * auto-load.c (auto_load_safe_path_vec_update)
5925 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5926 * configure: Regenerate.
5927 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5928 Likewise. Remove the 'use $ddir' help string.
5929
5930 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5933 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5934
5935 2012-05-18 Tom Tromey <tromey@redhat.com>
5936
5937 PR exp/13907:
5938 * valprint.h (struct value_print_options) <symbol_print>: New
5939 field.
5940 * valprint.c (user_print_options): Add default for symbol_print.
5941 (show_symbol_print): New function.
5942 (generic_val_print): Respect symbol_print.
5943 (_initialize_valprint): Add "print symbol" setting.
5944 * f-valprint.c (f_val_print): Respect symbol_print.
5945 * c-valprint.c (c_val_print): Respect symbol_print.
5946 * NEWS: Update.
5947 * printcmd.c (print_address_symbolic): Return int. Ignore some
5948 zero-size symbols.
5949 (print_address_demangle): Return int.
5950 * defs.h: (print_address_symbolic): Return int.
5951 * value.h (print_address_demangle): Return int.
5952
5953 2012-05-18 Tom Tromey <tromey@redhat.com>
5954
5955 * valprint.c (val_print_string): Don't print leading space.
5956 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5957 print space before string or vtbl.
5958 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5959 before string.
5960 * jv-valprint.c (java_value_print): Print space before string.
5961 * go-valprint.c (print_go_string): Print space before string.
5962 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5963 space before string.
5964 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5965 space before string or vtbl.
5966 * auxv.c (fprint_target_auxv): Print space after address.
5967
5968 2012-05-18 Tom Tromey <tromey@redhat.com>
5969
5970 * printcmd.c (print_address_demangle): Remove special case for 0.
5971
5972 2012-05-18 Tom Tromey <tromey@redhat.com>
5973
5974 * printcmd.c (print_address_demangle): Add 'opts' argument.
5975 * p-valprint.c (pascal_val_print): Update.
5976 * jv-valprint.c (java_val_print): Update.
5977 * value.h: Update.
5978 * valprint.c (generic_val_print): Update.
5979 (print_function_pointer_address): Add 'options' argument. Remove
5980 'addressprint' argument. Update.
5981 * m2-valprint.c (print_unpacked_pointer): Update.
5982 * gnu-v3-abi.c (print_one_vtable): Update.
5983 (gnuv3_print_method_ptr): Update.
5984 * f-valprint.c (f_val_print): Update.
5985 * cp-valprint.c (cp_print_value_fields): Update.
5986 * valprint.h (print_function_pointer_address): Update.
5987 * c-valprint.c (c_val_print): Update.
5988
5989 2012-05-18 Tom Tromey <tromey@redhat.com>
5990
5991 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5992 directly corresponding to the found psymtab.
5993 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5994 (dw2_find_pc_sect_symtab): Use it.
5995 * block.h (blockvector_contains_pc): Declare.
5996 * block.c (find_block_in_blockvector): New function.
5997 (blockvector_for_pc_sect): Use it.
5998 (blockvector_contains_pc): New function.
5999
6000 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6001
6002 * mips-tdep.h (mips_write_pc): New prototype.
6003 * mips-tdep.c (mips_write_pc): Make external, add description.
6004 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6005 add description.
6006
6007 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6008
6009 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6010 mips_regnum->pc.
6011 (mips_unwind_pc, mips_write_pc): Likewise.
6012 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6013 gdbarch_read_pc.
6014
6015 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6016
6017 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6018 proc_warn, proc_error, proc_get_status, proc_flags,
6019 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6020 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6021 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6022 proc_stop_process, proc_wait_for_stop, proc_run_process,
6023 proc_set_traced_signals, proc_set_traced_faults,
6024 proc_set_traced_sysentry, proc_set_traced_sysexit,
6025 proc_set_held_signals, proc_get_held_signals,
6026 proc_get_traced_signals, proc_get_traced_faults,
6027 proc_get_traced_sysentry, proc_get_traced_sysexit,
6028 proc_clear_current_fault, proc_set_current_signal,
6029 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6030 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6031 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6032 proc_get_current_thread, proc_get_current_thread,
6033 proc_get_current_thread, proc_update_threads,
6034 proc_update_threads, proc_update_threads, proc_update_threads,
6035 proc_iterate_over_threads, procfs_find_new_threads,
6036 procfs_pid_to_str): Make static. Remove advance declaration.
6037 (proc_cursig): Make static. Conditionalized defintion on
6038 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6039 (proc_syscall, proc_set_kill_on_last_close,
6040 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6041 proc_get_pending_signals, proc_get_signal_actions,
6042 proc_trace_signal, proc_ignore_signal): Delete.
6043
6044 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6045
6046 * coffread.c (cs_section_address): Passing proper argument for
6047 `bfd_get_section_vma'.
6048 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6049 `bfd_get_section_flags'.
6050 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6051 `bfd_get_section_vma'.
6052
6053 2012-05-16 Tom Tromey <tromey@redhat.com>
6054
6055 PR macros/13205:
6056 * macrotab.h: (macro_define_special): Declare.
6057 (enum macro_special_kind): New.
6058 (struct macro_definition) <argc, replacement>: Update comments.
6059 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6060 (macro_define_object_internal): New function.
6061 (macro_define_object): Use it.
6062 (macro_define_special): New function.
6063 (fixup_definition): New function.
6064 (macro_lookup_definition, foreach_macro_in_scope)
6065 (foreach_macro): Use fixup_definition.
6066 * macroexp.h (macro_stringify): Declare.
6067 * macroexp.c (free_buffer_return_text): New function.
6068 (stringify): Constify "arg".
6069 (macro_stringify): New function.
6070 * dwarf2read.c (macro_start_file): Call macro_define_special.
6071
6072 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6073 Maciej W. Rozycki <macro@mips.com>
6074
6075 * breakpoint.h (bp_location): Add related_address member.
6076 * inferior.h (get_return_value): Take a pointer to struct value
6077 instead of struct type for the function requested.
6078 * value.h (using_struct_return): Likewise.
6079 * gdbarch.sh (return_value): Take a pointer to struct value
6080 instead of struct type for the function requested.
6081 * breakpoint.c (set_breakpoint_location_function): Initialize
6082 related_address for bp_gnu_ifunc_resolver breakpoints.
6083 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6084 requested function's address to gdbarch_return_value.
6085 * eval.c (evaluate_subexp_standard): Pass the requested
6086 function's address to using_struct_return.
6087 * infcall.c (call_function_by_hand): Pass the requested
6088 function's address to using_struct_return and
6089 gdbarch_return_value.
6090 * infcmd.c (get_return_value): Take a pointer to struct value
6091 instead of struct type for the function requested.
6092 (print_return_value): Update accordingly.
6093 (finish_command_continuation): Likewise.
6094 * stack.c (return_command): Pass the requested function's
6095 address to using_struct_return and gdbarch_return_value.
6096 * value.c (using_struct_return): Take a pointer to struct value
6097 instead of struct type for the function requested. Pass the
6098 requested function's address to gdbarch_return_value.
6099 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6100 New function_value member, replacing function_type.
6101 (bpfinishpy_dealloc): Update accordingly.
6102 (bpfinishpy_pre_stop_hook): Likewise.
6103 (bpfinishpy_init): Likewise. Record the requested function's
6104 address.
6105 * mips-tdep.c (mips_fval_reg): New enum.
6106 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6107 words put in GP registers.
6108 (mips_o64_push_dummy_call): Update a comment.
6109 (mips_o32_return_value): Take a pointer to struct value instead
6110 of struct type for the function requested and use it to check if
6111 using the MIPS16 calling convention. Return the designated
6112 general purpose registers for floating-point values returned in
6113 MIPS16 mode.
6114 (mips_o64_return_value): Likewise.
6115 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6116 (ppc_sysv_abi_broken_return_value): Likewise.
6117 (ppc64_sysv_abi_return_value): Likewise.
6118 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6119 value instead of struct type for the function requested.
6120 * amd64-tdep.c (amd64_return_value): Likewise.
6121 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6122 * arm-tdep.c (arm_return_value): Likewise.
6123 * avr-tdep.c (avr_return_value): Likewise.
6124 * bfin-tdep.c (bfin_return_value): Likewise.
6125 * cris-tdep.c (cris_return_value): Likewise.
6126 * frv-tdep.c (frv_return_value): Likewise.
6127 * h8300-tdep.c (h8300_return_value): Likewise.
6128 (h8300h_return_value): Likewise.
6129 * hppa-tdep.c (hppa32_return_value): Likewise.
6130 (hppa64_return_value): Likewise.
6131 * i386-tdep.c (i386_return_value): Likewise.
6132 * ia64-tdep.c (ia64_return_value): Likewise.
6133 * iq2000-tdep.c (iq2000_return_value): Likewise.
6134 * lm32-tdep.c (lm32_return_value): Likewise.
6135 * m32c-tdep.c (m32c_return_value): Likewise.
6136 * m32r-tdep.c (m32r_return_value): Likewise.
6137 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6138 * m68k-tdep.c (m68k_return_value): Likewise.
6139 (m68k_svr4_return_value): Likewise.
6140 * m88k-tdep.c (m88k_return_value): Likewise.
6141 * mep-tdep.c (mep_return_value): Likewise.
6142 * microblaze-tdep.c (microblaze_return_value): Likewise.
6143 * mn10300-tdep.c (mn10300_return_value): Likewise.
6144 * moxie-tdep.c (moxie_return_value): Likewise.
6145 * mt-tdep.c (mt_return_value): Likewise.
6146 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6147 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6148 (ppc_sysv_abi_broken_return_value): Likewise.
6149 (ppc64_sysv_abi_return_value): Likewise.
6150 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6151 * rl78-tdep.c (rl78_return_value): Likewise.
6152 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6153 * rx-tdep.c (rx_return_value): Likewise.
6154 * s390-tdep.c (s390_return_value): Likewise.
6155 * score-tdep.c (score_return_value): Likewise.
6156 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6157 (sh_return_value_fpu): Likewise.
6158 * sh64-tdep.c (sh64_return_value): Likewise.
6159 * sparc-tdep.c (sparc32_return_value): Likewise.
6160 * sparc64-tdep.c (sparc64_return_value): Likewise.
6161 * spu-tdep.c (spu_return_value): Likewise.
6162 * tic6x-tdep.c (tic6x_return_value): Likewise.
6163 * v850-tdep.c (v850_return_value): Likewise.
6164 * vax-tdep.c (vax_return_value): Likewise.
6165 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6166 * xtensa-tdep.c (xtensa_return_value): Likewise.
6167 * gdbarch.c: Regenerate.
6168 * gdbarch.h: Regenerate.
6169
6170 2012-05-15 Tom Tromey <tromey@redhat.com>
6171
6172 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6173
6174 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6175
6176 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6177 of command in two error message.
6178
6179 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6180
6181 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6182
6183 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6184
6185 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6186
6187 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6188
6189 * NEWS (show auto-load scripts-directory): Add forgotten command.
6190
6191 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6192
6193 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6194 parameters.
6195
6196 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6197
6198 * amd64-tdep.c: Include features/i386/x32.c and
6199 features/i386/x32-avx.c.
6200 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6201 initialize_tdesc_x32_avx.
6202
6203 2012-05-14 Stan Shebs <stan@codesourcery.com>
6204
6205 Add dynamic printf.
6206 * breakpoint.h (enum bptype): New type bp_dprintf.
6207 (struct breakpoint): New field extra_string.
6208 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6209 (create_breakpoint): Add extra_string arg.
6210 * breakpoint.c (dprintf_breakpoint_ops): New.
6211 (is_breakpoint): Add bp_dprintf.
6212 (bpstat_what): Add dprintf case.
6213 (bptype_string): Ditto.
6214 (print_one_breakpoint_location): Ditto.
6215 (init_bp_location): Ditto.
6216 (bkpt_print_mention): Ditto.
6217 (dprintf_style_enums): New array.
6218 (dprintf_style): New global.
6219 (dprintf_function): New global.
6220 (dprintf_channel): New global.
6221 (update_dprintf_command_list): New function.
6222 (update_dprintf_commands): New function.
6223 (init_breakpoint_sal): Add extra_string argument, handle it.
6224 (create_breakpoint_sal): Add extra_string argument.
6225 (create_breakpoints_sal): Add extra_string argument, update callers.
6226 (find_condition_and_thread): Add extra argument.
6227 (create_breakpoint): Add extra_string argument, record it.
6228 (dprintf_command): New function.
6229 (break_command_1): Add arg to create_breakpoint call.
6230 (handle_gnu_v3_exceptions): Ditto.
6231 (trace_command): Ditto.
6232 (ftrace_command): Ditto.
6233 (strace_command): Ditto.
6234 (bkpt_print_mention): Add dprintf case.
6235 (create_breakpoint_sal_default): Add extra_string argument.
6236 (_initialize_breakpoint): Add new commands.
6237 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6238 * python/py-breakpoint.c (bppy_init): Ditto.
6239 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6240
6241 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6242
6243 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6244
6245 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6246
6247 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6248 unsigned long long.
6249
6250 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6251
6252 Add a new function gdb.find_pc_line to the Python API.
6253 * NEWS (Python Scripting): Add entry about the new function.
6254 * python/python.c (gdbpy_find_pc_line): New function which
6255 implements gdb.find_pc_line.
6256 (GdbMethods): Add entry for the new function.
6257
6258 2012-05-12 Pedro Alves <palves@redhat.com>
6259
6260 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6261 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6262
6263 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6264
6265 * inferior.c: Include completer.h
6266 (initialize_inferiors): Set completer of add-inferior to
6267 filename_completer.
6268
6269 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6270
6271 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6272 gdbarch_ptr_bit for x32 core dump.
6273
6274 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6275
6276 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6277 and features/i386/x32-avx-linux.c.
6278
6279 2012-05-11 Stan Shebs <stan@codesourcery.com>
6280 Kwok Cheung Yeung <kcy@codesourcery.com>
6281
6282 * NEWS: Describe new info os commands.
6283 * common/linux-osdata.c (PID_T, TIME_T): Define.
6284 (MAX_PID_T_STRLEN): New.
6285 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6286 MAX_PID_T_STRLEN.
6287 (command_from_pid): Add comment. Change to use PID_T.
6288 (commandline_from_pid): Change to use PID_T.
6289 (user_from_pid): Add comment.
6290 (get_process_owner): Add comment. Change to use PID_T and
6291 MAX_PID_T_STRLEN.
6292 (get_number_of_cpu_cores): Add comment.
6293 (get_cores_used_by_process): Add comment. Change to use PID_T and
6294 MAX_PID_T_STRLEN.
6295 (linux_xfer_osdata_processes): Change to use PID_T and
6296 MAX_PID_T_STRLEN.
6297 (compare_processes): New function.
6298 (linux_xfer_osdata_processgroups): New function.
6299 (linux_xfer_osdata_threads): Change to use PID_T.
6300 (linux_xfer_osdata_fds): New function.
6301 (format_socket_state, print_sockets): New functions.
6302 (union socket_addr): New union.
6303 (linux_xfer_osdata_isockets): New function.
6304 (time_from_time_t, group_from_gid): New functions.
6305 (linux_xfer_osdata_shm): New function.
6306 (linux_xfer_osdata_sem): New function.
6307 (linux_xfer_osdata_msg): New function.
6308 (linux_xfer_osdata_modules): New function.
6309 (osdata_table): Add new entries.
6310 * common/buffer.c (buffer_xml_printf): Add support for long and
6311 long long format specifiers.
6312
6313 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6314
6315 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6316 (tdesc_x32_avx_linux): Likewise.
6317
6318 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 Implement multi-component --with-auto-load-dir.
6321 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6322 entries.
6323 (--with-auto-load-safe-path): Update the default value description.
6324 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6325 New.
6326 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6327 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6328 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6329 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6330 "set auto-load scripts-directory".
6331 * config.in: Regenerate.
6332 * configure: Regenerate.
6333 * configure.ac (--with-auto-load-dir): New configure option.
6334 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6335
6336 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 Provide $ddir substitution for --with-auto-load-safe-path.
6339 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6340 entries.
6341 * auto-load.c: Include observer.h.
6342 (auto_load_safe_path_vec_update): Call substitute_path_component for
6343 each component. New variable ddir_subst.
6344 (auto_load_gdb_datadir_changed): New function.
6345 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6346 AUTO_LOAD_SAFE_PATH. New comment.
6347 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6348 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6349 * config.in: Regenerate.
6350 * configure: Regenerate.
6351 * configure.ac (--auto-load-safe-path): Rename
6352 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6353 GDB_DATADIR/auto-load.
6354 * defs.h (substitute_path_component): New declaration.
6355 * top.c: Include observer.h.
6356 (set_gdb_datadir): New function.
6357 (init_main): Install it for "set data-directory".
6358 * utils.c (substitute_path_component): New function.
6359
6360 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6361
6362 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6363 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6364 DEBUG_FILE_DIRECTORY. Handle multiple components of
6365 DEBUG_FILE_DIRECTORY.
6366
6367 2012-05-10 Tom Tromey <tromey@redhat.com>
6368
6369 * dwarf2read.c (recursively_write_psymbols): New function.
6370 (write_psymtabs_to_index): Use it.
6371
6372 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6373 field.
6374 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6375 (load_partial_comp_unit): Update.
6376 (queue_comp_unit): Add argument 'pretend_language'.
6377 (process_queue): Update.
6378 (psymtab_to_symtab_1): Skip dependencies that have a user.
6379 (load_partial_comp_unit_reader): Give meaning to the 'data'
6380 argument.
6381 (load_full_comp_unit): Add 'pretend_language' argument.
6382 (process_full_comp_unit): Add 'pretend_language' argument. Set
6383 language on CU.
6384 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6385 Update.
6386 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6387 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6388 Update.
6389 (prepare_one_comp_unit): Add 'pretend_language' argument.
6390
6391 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6392 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6393 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6394 (dw2_do_instantiate_symtab): Check whether symtab was read in
6395 before queueing.
6396 (dw2_instantiate_symtab): Add assertion. Call
6397 process_cu_includes.
6398 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6399 (partial_symtab_p): New typedef.
6400 (set_partial_user): New function.
6401 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6402 (scan_partial_symbols): Add imported CU to imported_symtabs.
6403 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6404 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6405 (get_symtab, recursively_compute_inclusions)
6406 (compute_symtab_includes, process_cu_includes)
6407 (process_imported_unit_die): New functions.
6408 (process_die) <DW_TAG_imported_unit>: New case.
6409 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6410
6411 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6412 comment.
6413 (struct partial_die_info) <locdesc>: Remove.
6414 <d>: New field.
6415 (process_psymtab_comp_unit): Add 'read_partial' argument.
6416 Update.
6417 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6418 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6419 (add_partial_symbol): Update.
6420 (process_die): Handle DW_TAG_partial_unit.
6421 (read_file_scope): Update comment.
6422 (load_partial_dies): Handle DW_TAG_imported_unit.
6423 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6424 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6425
6426 2012-05-10 Tom Tromey <tromey@redhat.com>
6427
6428 * cc-with-dwz.sh: New file.
6429
6430 2012-05-10 Tom Tromey <tromey@redhat.com>
6431
6432 * symtab.h (struct symtab) <includes, user>: New fields.
6433 * block.h (struct block_iterator) <d, idx, which>: New fields.
6434 * block.c (initialize_block_iterator, find_iterator_symtab)
6435 (block_iterator_step, block_iter_name_step)
6436 (block_iter_match_step): New functions.
6437 (block_iterator_first, block_iterator_next)
6438 (block_iter_name_first, block_iter_name_next)
6439 (block_iter_match_first, block_iter_match_next): Rewrite.
6440 (get_block_symtab): New function.
6441
6442 2012-05-10 Tom Tromey <tromey@redhat.com>
6443
6444 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6445 set_block_symtab.
6446 * jit.c (finalize_symtab): Use allocate_global_block,
6447 set_block_symtab.
6448 * buildsym.c (finish_block_internal): New function, from old
6449 finish_block.
6450 (finish_block): Rewrite.
6451 (end_symtab): Use finish_block_internal, set_block_symtab.
6452 * block.h (struct global_block): New.
6453 (allocate_global_block, set_block_symtab): Declare.
6454 * block.c (allocate_global_block, set_block_symtab): New
6455 functions.
6456
6457 2012-05-10 Tom Tromey <tromey@redhat.com>
6458
6459 * psymtab.c (partial_map_expand_apply): Add assertion.
6460 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6461 (psymtab_to_symtab): Find unshared psymtab.
6462 (dump_psymtab): Print including psymtabs.
6463 (recursively_search_psymtabs): New function.
6464 (expand_symtabs_matching_via_partial): Use it.
6465 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6466 fields.
6467 (enum psymtab_search_status): New.
6468
6469 2012-05-10 Tom Tromey <tromey@redhat.com>
6470
6471 * tracepoint.c (scope_info): Update.
6472 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6473 (find_pc_sect_symtab, search_symbols)
6474 (default_make_symbol_completion_list_break_on)
6475 (make_file_symbol_completion_list): Update.
6476 * symmisc.c (dump_symtab_1): Update.
6477 * stack.c (print_frame_args, iterate_over_block_locals)
6478 (print_frame_labels, iterate_over_block_arg_vars): Update.
6479 * python/py-block.c (block_object) <dict>: Remove.
6480 <block>: New field.
6481 <iter>: Change type.
6482 (blpy_iter): Update.
6483 (blpy_block_syms_iternext): Update.
6484 * psymtab.c (map_block): Use block iterators.
6485 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6486 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6487 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6488 * infrun.c (check_exception_resume): Update.
6489 * cp-support.c (make_symbol_overload_list_block): Update.
6490 * coffread.c (patch_opaque_types): Update.
6491 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6492 * block.h (struct block_iterator): New.
6493 (block_iterator_first, block_iterator_next, block_iter_name_first)
6494 (block_iter_name_next, block_iter_match_first)
6495 (block_iter_match_next): Declare.
6496 (ALL_BLOCK_SYMBOLS): Redefine.
6497 * block.c (block_iterator_first, block_iterator_next)
6498 (block_iter_name_first, block_iter_name_next)
6499 (block_iter_match_first, block_iter_match_next): New functions.
6500 * ada-lang.c (ada_add_block_symbols)
6501 (ada_make_symbol_completion_list): Use block iterator.
6502
6503 2012-05-10 Tom Tromey <tromey@redhat.com>
6504
6505 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6506 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6507 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6508 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6509 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6510 Update.
6511
6512 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6513
6514 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6515 print-file-var-lib2.c, print-file-var-main.c and
6516 print-file-var.exp (located in gdb/testsuite/gdb.base).
6517
6518 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6519
6520 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6521 try locating the symbol in the symbol's own objfile first, before
6522 extending the search to all objfiles.
6523 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6524 out of lookup_symbol_aux_symtabs.
6525 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6526 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6527 Do not search EXCLUDE_OBJFILE.
6528 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6529 (lookup_symbol_global): Search for matches in the block's objfile
6530 first, before searching all other objfiles.
6531
6532 2012-05-10 Tristan Gingold <gingold@adacore.com>
6533
6534 * printcmd.c (set_command): Add pre/post inc/dec.
6535
6536 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6537
6538 * gdb.1: Document -ex option.
6539
6540 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6541
6542 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6543 * inferior.h (AT_SYMBOL): Delete.
6544
6545 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6546
6547 * mips-tdep.c (mips_push_dummy_code): New function.
6548 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6549 ON_STACK and install mips_push_dummy_code as our gdbarch
6550 push_dummy_code routine.
6551
6552 2012-05-09 Pedro Alves <palves@redhat.com>
6553
6554 * target.c (set_maintenance_target_async_permitted): Rename to ...
6555 (set_target_async_command): ... this.
6556 (show_maintenance_target_async_permitted): Rename to ...
6557 (show_target_async_command): ... this.
6558 (initialize_targets): Adjust.
6559
6560 2012-05-08 Doug Evans <dje@google.com>
6561
6562 * go-exp.y (classify_name): Add missing assignment of fields of
6563 yylval.ssym.
6564
6565 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6566
6567 Display the ">" prompt in interactive mode while reading canned
6568 commands, even when the current interpreter is MI.
6569
6570 * interps.c (interp_set_temp): New function.
6571
6572 * interps.h (interp_set_temp): Add prototype.
6573
6574 * cli/cli-script.c (restore_interp): New cleanup function.
6575 (read_command_lines): Temporarily override the current interpreter
6576 with CLI and arrange for restoring the original one.
6577
6578 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6579
6580 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6581
6582 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6583
6584 * probe.c (parse_probes): Move conditional to check for
6585 debuginfo files from here...
6586 * stap-probe.c (stap_get_probes): ... to here.
6587
6588 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6589 H.J. Lu <hongjiu.lu@intel.com>
6590
6591 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6592 `movl %esp, %ebp' for the X32 ABI.
6593
6594 2012-05-07 Tom Tromey <tromey@redhat.com>
6595
6596 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6597 get_DW_TAG_name.
6598 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6599 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6600 (dwarf_stack_op_name): Remove.
6601 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6602 (decode_locdesc): Use get_DW_OP_name.
6603 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6604 (dwarf2_compile_expr_to_ax): Likewise.
6605 (disassemble_dwarf_expression): Likewise.
6606 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6607
6608 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6609
6610 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6611 (sh_linux_sigtramp_cache): New function.
6612 (sh_linux_sigreturn_init): New function.
6613 (sh_linux_rt_sigreturn_init): New function.
6614 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6615 patterns.
6616 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6617 syscall codes.
6618 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6619 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6620 (sh_linux_init_abi): Add init calls to register new tramp_frame
6621 definitions under 32-bit SH, update comments.
6622
6623 2012-05-07 Pedro Alves <palves@redhat.com>
6624
6625 PR gdb/10952
6626
6627 * amd64-linux-tdep.c: Include glibc-tdep.h.
6628 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6629 gdbarch_skip_solib_resolver callback.
6630
6631 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6632
6633 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6634 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6635 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6636 (add_auto_load_safe_path): Change the error message.
6637 (_initialize_auto_load): Change the "safe-path" help text.
6638 * configure: Regenerate
6639 * configure.ac (--without-auto-load-safe-path): Set
6640 WITH_AUTO_LOAD_SAFE_PATH to /.
6641
6642 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6643
6644 * stap-probe.h: Do not include unecessary `probe.h'.
6645
6646 2012-05-05 Alan Modra <amodra@gmail.com>
6647
6648 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6649 bfd_und_section_ptr.
6650 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6651 and bfd_com_section_ptr.
6652
6653 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6654
6655 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6656
6657 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6658
6659 * windows-nat.h (segment_register_p_ftype): New typedef.
6660 (windows_set_segment_register_p): Add declaration.
6661 * windows-nat.c (segment_register_p): New static global.
6662 (windows_set_segment_register_p): New function.
6663 (do_windows_fetch_inferior_registers): Add special handling
6664 for segment registers.
6665 * amd64-windows-nat.c: #include "amd64-tdep.h".
6666 (amd64_windows_segment_register_p): New function.
6667 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6668 * i386-windows-nat.c: #include "i386-tdep.h".
6669 (i386_windows_segment_register_p): New function.
6670 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6671
6672 2012-05-04 Tristan Gingold <gingold@adacore.com>
6673
6674 * printcmd.c (set_command): Emit a warning if the expression is not
6675 an assignment.
6676
6677 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6678
6679 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6680 Make static.
6681
6682 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6683
6684 * stap-probe.c (stap_is_operator): Change declaration.
6685 (stap_get_opcode): Change return value.
6686 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6687 `stap_parse_argument_1'.
6688
6689 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6690
6691 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6692 debug log.
6693
6694 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6695
6696 Add two new methods global_block and static_block to gdb.Symtab
6697 objects.
6698 * NEWS (Python scripting): Add entry about the new methods.
6699 * python/py-symtab.c (stpy_global_block): New function which
6700 implements the gdb.Symtab.global_block() method.
6701 (stpy_static_block): New function which implements the
6702 gdb.Symtab.static_block() method.
6703 (symtab_object_methods): Add entries for the two new methods.
6704
6705 2012-05-03 Doug Evans <dje@google.com>
6706
6707 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6708 files.
6709
6710 2012-05-03 Yao Qi <yao@codesourcery.com>
6711
6712 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6713 space.
6714 (i386_process_record): Ditto.
6715
6716 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6717
6718 * infcall.c (unwind_on_signal_p): Make static.
6719
6720 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6721
6722 * sol-thread.c (solaris_pid_to_str): Make static.
6723 (_initialize_sol_thread): Add prototype.
6724
6725 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6726
6727 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6728
6729 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6730
6731 * MAINTAINERS: Remove myself.
6732
6733 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 Fix --without-auto-load-safe-path for MS-Windows host platform.
6736 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6737
6738 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6739
6740 * gdb_curses.h: Undefine KEY_EVENT before including curses
6741 headers. Move "#undef MOUSE_MOVED" before any curses header
6742 inclusion.
6743
6744 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6745
6746 * features/i386/i386-mmx-linux.c: Regenerate.
6747 * features/rs6000/powerpc-32.c: Likewise.
6748 * features/rs6000/powerpc-32l.c: Likewise.
6749 * features/rs6000/powerpc-403.c: Likewise.
6750 * features/rs6000/powerpc-403gc.c: Likewise.
6751 * features/rs6000/powerpc-405.c: Likewise.
6752 * features/rs6000/powerpc-505.c: Likewise.
6753 * features/rs6000/powerpc-601.c: Likewise.
6754 * features/rs6000/powerpc-602.c: Likewise.
6755 * features/rs6000/powerpc-603.c: Likewise.
6756 * features/rs6000/powerpc-604.c: Likewise.
6757 * features/rs6000/powerpc-64.c: Likewise.
6758 * features/rs6000/powerpc-64l.c: Likewise.
6759 * features/rs6000/powerpc-750.c: Likewise.
6760 * features/rs6000/powerpc-860.c: Likewise.
6761 * features/rs6000/powerpc-e500.c: Likewise.
6762 * features/rs6000/powerpc-e500l.c: Likewise.
6763 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6764 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6765 * features/rs6000/rs6000.c: Likewise.
6766
6767 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6768
6769 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6770 variable.
6771 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6772 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6773 (stap_parse_argument) <e>: Likewise.
6774 (handle_stap_probe) <byte_order>: Likewise.
6775
6776 2012-04-30 Doug Evans <dje@google.com>
6777
6778 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6779 init_and_read_dies_worker. All callers updated.
6780 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6781 replaced with init_cutu_and_read_dies.
6782 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6783 (find_partial_die): Remove FIXME. Don't free current CU.
6784
6785 2012-04-30 Sterling Augustine <saugustine@google.com>
6786
6787 * contrib: New directory.
6788 * contrib/test_pubnames_and_indexes.py: New file.
6789
6790 2012-04-30 Doug Evans <dje@google.com>
6791
6792 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6793 All callers updated.
6794 (init_cu_die_reader): Verify the section is non-empty.
6795 (dwarf_decode_line_header): Don't dereference section->asection
6796 until we know the section is present.
6797
6798 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6799
6800 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6801 probes.
6802
6803 2012-04-29 Yao Qi <yao@codesourcery.com>
6804
6805 * gdb-code-style.el: New hook gdb-markup-hook
6806 and gdb-comment-hook.
6807
6808 2012-04-28 Doug Evans <dje@google.com>
6809
6810 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6811 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6812 objfile->obfd.
6813 * symfile.h (dwarf2_debug_sections): New member addr.
6814 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6815 (ctx_no_get_addr_index): New function.
6816 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6817 (ctx_no_get_addr_index): Declare.
6818 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6819 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6820 (dwarf_expr_ctx_funcs): Update.
6821 (needs_get_addr_index): New function.
6822 (needs_frame_ctx_funcs): Update.
6823 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6824 * dwarf2read.c: #include "gdbcore.h".
6825 (dwarf2_per_objfile): New members addr, dwo_files.
6826 (dwarf2_elf_names): Add entry for addr.
6827 (struct dwo_section_names): New type.
6828 (dwo_section_names): New static global.
6829 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6830 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6831 old debug_types_section member updated to use this.
6832 Rename member debug_types_section to info_or_types_section,
6833 all uses updated.
6834 (signatured_type): Rename member type_offset to type_offset_in_tu,
6835 all uses updated. New member type_offset_in_section.
6836 (struct dwo_sections): New type.
6837 (struct dwo_unit): New type.
6838 (struct dwo_file): New type.
6839 (die_reader_specs): New member dwo_file.
6840 (dwarf2_locate_sections): Watch for .debug_addr.
6841 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6842 (dwarf2_read_section): Get bfd of section from bfd's asection,
6843 instead of objfile.
6844 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6845 (create_signatured_type_table_from_index): Initialize
6846 sig_type->info_or_types_section.
6847 (dw2_get_file_names): Statement lists for type units with DWO files
6848 live in the DWO file.
6849 (create_debug_types_hash_table): New function.
6850 (create_all_type_units): Rewrite.
6851 (init_cu_die_reader): New arg dwo_file, all callers updated.
6852 (init_and_read_dies_worker): Get section from
6853 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6854 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6855 continue reading the CU/TU from there.
6856 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6857 updated. Get section from this_cu->info_or_types_section.
6858 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6859 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6860 DW_FORM_GNU_str_index.
6861 (hash_dwo_file, eq_dwo_file): New functions.
6862 (allocate_dwo_file_hash_table): New function.
6863 (hash_dwo_unit, eq_dwo_unit): New functions.
6864 (allocate_dwo_unit_table): New function.
6865 (dwarf2_locate_dwo_sections): New function.
6866 (struct create_dwo_info_table_data): New type.
6867 (create_debug_info_hash_table_reader): New function.
6868 (create_debug_info_hash_table): New function.
6869 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6870 (lookup_dwo_file): New function.
6871 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6872 (free_dwo_file, free_dwo_file_cleanup): New functions.
6873 (free_dwo_file_from_slot, free_dwo_files): New functions.
6874 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6875 (dwarf2_record_block_ranges): Ditto.
6876 (read_partial_die): Ditto.
6877 (process_enumeration_scope): Update to use type_offset_in_section.
6878 (read_full_die_1): New function.
6879 (read_full_die): Rewrite.
6880 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6881 DW_FORM_GNU_str_index.
6882 (read_addr_index_1, read_addr_index): New functions.
6883 (read_addr_index_from_leb128): New function.
6884 (struct dwarf2_read_addr_index_data): New type.
6885 (dwarf2_read_addr_index_reader): New function.
6886 (dwarf2_read_addr_index): New function.
6887 (read_str_index): New function.
6888 (leb128_size): New function.
6889 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6890 If processing a type unit from a DWO file, get the line section
6891 from the DWO file.
6892 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6893 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6894 DW_FORM_GNU_str_index.
6895 (lookup_die_type): Check whether section offset of type's die is
6896 known before looking it up. Remove assert. Condition can
6897 legimately happen for inter-cu type references.
6898 (dwarf_attr_name): Handle Fission attributes.
6899 (dwarf_form_name): Handle Fission forms.
6900 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6901 DW_FORM_GNU_str_index.
6902 (follow_die_sig): Update to use type_offset_in_section.
6903 (decode_locdesc): New case DW_OP_GNU_addr_index.
6904 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6905 DW_FORM_GNU_str_index.
6906 (cu_debug_loc_section): New function.
6907 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6908 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6909 Free DWO files if present.
6910 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6911
6912 Refactor DIE reading.
6913 * dwarf2read.c (dwarf2_per_objfile): Replace members
6914 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6915 (die_reader_specs): New member "die_section". Temporarily make
6916 member "buffer" non-const, pending constifying all info_ptr uses.
6917 (die_reader_func_ftype): New typedef.
6918 (dw2_get_file_names_reader): New function.
6919 (dw2_get_file_names): Rewrite.
6920 (read_and_check_type_unit_head): Rename arg type_offset to
6921 type_offset_in_tu.
6922 (create_all_type_units): Improve debugging message.
6923 Improve dummy type unit check.
6924 (init_cu_die_reader): New arg "section". All callers updated.
6925 (init_and_read_dies_worker): New function.
6926 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6927 (init_cutu_and_read_dies_no_follow): New function.
6928 (init_cutu_and_read_dies_simple): New function.
6929 (process_psymtab_comp_unit_reader): New function.
6930 (process_psymtab_comp_unit): Delete args section,
6931 is_debug_types_section. Rewrite. All callers updated.
6932 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6933 All callers updated. Rewrite.
6934 (load_partial_comp_unit_reader): New function.
6935 (load_partial_comp_unit): Rewrite.
6936 (skip_children): New arg reader. Delete args buffer, cu.
6937 All callers updated.
6938 (skip_one_die): New arg reader. Delete args buffer, cu.
6939 All callers updated.
6940 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6941 All callers updated.
6942 (load_full_comp_unit_reader): New function.
6943 (load_full_comp_unit): Rewrite.
6944 (read_comp_unit): Delete.
6945 (read_die_and_children_1): Delete, contents moved ...
6946 (read_die_and_children): ... here.
6947 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6948 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6949 All callers updated.
6950 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6951 All callers updated.
6952 (find_partial_die): Rewrite load_all_dies support.
6953 (read_attribute_value): New arg reader. Delete args abfd, cu.
6954 All callers updated.
6955 (read_attribute): New arg reader. Delete args abfd, cu.
6956 All callers updated.
6957 (load_full_type_unit): Add assert.
6958 (read_signatured_type_reader): New function.
6959 (read_signatured_type): Rewrite.
6960 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6961 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6962 All callers updated. Set per_cu->cu = NULL after freeing it.
6963 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6964 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6965 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6966 (set_die_type): Update.
6967 (get_die_type_at_offset): Update.
6968 (read_file_scope): Call prepare_one_comp_unit.
6969 (read_type_unit_scope): Ditto.
6970 (prepare_one_comp_unit): Set producer if present.
6971
6972 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6973
6974 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6975 gettext function on `error'.
6976
6977 2012-04-27 Doug Evans <dje@google.com>
6978
6979 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6980 is empty.
6981
6982 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6983 Tom Tromey <tromey@redhat.com>
6984
6985 * breakpoint.c (struct breakpoint_objfile_data)
6986 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6987 <exception_probes>: New fields.
6988 (free_breakpoint_probes): New function.
6989 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6990 `_Unwind_DebugHook'.
6991 (create_exception_master_breakpoint): Likewise.
6992 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6993 * infrun.c: Including necessary header files for handling SystemTap
6994 probes.
6995 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6996 via SystemTap probes.
6997 (check_exception_resume): Remove `func' argument. Handle exception
6998 unwinding breakpoint set via a SystemTap probe.
6999 (insert_exception_resume_from_probe): New function.
7000
7001 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7002 Tom Tromey <tromey@redhat.com>
7003 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7006 (COMMON_OBS): Likewise.
7007 (HFILES_NO_SRCDIR): Add `probe'.
7008 * NEWS: Mention support for static and SystemTap probes.
7009 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7010 SystemTap probes' arguments parser.
7011 * arm-linux-tdep.c: Including headers needed to perform the parsing
7012 of SystemTap probes' arguments.
7013 (arm_stap_is_single_operand): New function.
7014 (arm_stap_parse_special_token): Likewise.
7015 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7016 probes' arguments parser.
7017 * ax-gdb.c (require_rvalue): Removing static declaration.
7018 (gen_expr): Likewise.
7019 * ax-gdb.h (gen_expr): Declaring function.
7020 (require_rvalue): Likewise.
7021 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7022 (bkpt_probe_breakpoint_ops): New variable.
7023 (momentary_breakpoint_from_master): Set the `probe' value.
7024 (add_location_to_breakpoint): Likewise.
7025 (break_command_1): Using proper breakpoint_ops according to the
7026 argument passed by the user in the command line.
7027 (bkpt_probe_insert_location): New function.
7028 (bkpt_probe_remove_location): Likewise.
7029 (bkpt_probe_create_sals_from_address): Likewise.
7030 (bkpt_probe_decode_linespec): Likewise.
7031 (tracepoint_probe_create_sals_from_address): Likewise.
7032 (tracepoint_probe_decode_linespec): Likewise.
7033 (tracepoint_probe_breakpoint_ops): New variable.
7034 (trace_command): Using proper breakpoint_ops according to the
7035 argument passed by the user in the command line.
7036 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7037 static probes on breakpoints and tracepoints.
7038 * breakpoint.h (struct bp_location) <probe>: New field.
7039 * cli-utils.c (skip_spaces_const): New function.
7040 (extract_arg): Likewise.
7041 * cli-utils.h (skip_spaces_const): Likewise.
7042 (extract_arg): Likewise.
7043 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7044 * configure.ac: Append `stap-probe.o' to be generated when ELF
7045 support is present.
7046 * configure: Regenerate.
7047 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7048 * elfread.c: Include `probe.h' and `arch-utils.h'.
7049 (probe_key): New variable.
7050 (elf_get_probes): New function.
7051 (elf_get_probe_argument_count): Likewise.
7052 (elf_evaluate_probe_argument): Likewise.
7053 (elf_compile_to_ax): Likewise.
7054 (elf_symfile_relocate_probe): Likewise.
7055 (stap_probe_key_free): Likewise.
7056 (elf_probe_fns): New variable.
7057 (elf_sym_fns): Add `sym_probe_fns' value.
7058 (elf_sym_fns_lazy_psyms): Likewise.
7059 (elf_sym_fns_gdb_index): Likewise.
7060 (_initialize_elfread): Initialize objfile cache for static
7061 probes.
7062 * gdb_vecs.h (struct probe): New forward declaration.
7063 (probe_p): New VEC declaration.
7064 * gdbarch.c: Regenerate.
7065 * gdbarch.h: Regenerate.
7066 * gdbarch.sh (stap_integer_prefix): New variable.
7067 (stap_integer_suffix): Likewise.
7068 (stap_register_prefix): Likewise.
7069 (stap_register_suffix): Likewise.
7070 (stap_register_indirection_prefix): Likewise.
7071 (stap_register_indirection_suffix): Likewise.
7072 (stap_gdb_register_prefix): Likewise.
7073 (stap_gdb_register_suffix): Likewise.
7074 (stap_is_single_operand): New function.
7075 (stap_parse_special_token): Likewise.
7076 (struct stap_parse_info): Forward declaration.
7077 * i386-tdep.c: Including headers needed to perform the parsing
7078 of SystemTap probes' arguments.
7079 (i386_stap_is_single_operand): New function.
7080 (i386_stap_parse_special_token): Likewise.
7081 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7082 probes' arguments parser.
7083 * i386-tdep.h (i386_stap_is_single_operand): New function.
7084 (i386_stap_parse_special_token): Likewise.
7085 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7086 * mipsread.c (ecoff_sym_fns): Likewise.
7087 * objfiles.c (objfile_relocate1): Support relocation for static
7088 probes.
7089 * parse.c (prefixify_expression): Remove static declaration.
7090 (initialize_expout): Likewise.
7091 (reallocate_expout): Likewise.
7092 * parser-defs.h (initialize_expout): Declare function.
7093 (reallocate_expout): Likewise.
7094 (prefixify_expression): Likewise.
7095 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7096 of SystemTap probes' arguments.
7097 (ppc_stap_is_single_operand): New function.
7098 (ppc_stap_parse_special_token): Likewise.
7099 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7100 probes' arguments parser.
7101 * probe.c: New file, for generic statically defined probe support.
7102 * probe.h: Likewise.
7103 * s390-tdep.c: Including headers needed to perform the parsing of
7104 SystemTap probes' arguments.
7105 (s390_stap_is_single_operand): New function.
7106 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7107 probes' arguments parser.
7108 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7109 * stap-probe.c: New file, for SystemTap probe support.
7110 * stap-probe.h: Likewise.
7111 * symfile.h: Include `gdb_vecs.h'.
7112 (struct sym_probe_fns): New struct.
7113 (struct sym_fns) <sym_probe_fns>: New field.
7114 * symtab.c (init_sal): Initialize `probe' field.
7115 * symtab.h (struct probe): Forward declaration.
7116 (struct symtab_and_line) <probe>: New field.
7117 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7118 locations.
7119 (stop_tracing): Likewise.
7120 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7121
7122 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7123 Tom Tromey <tromey@redhat.com>
7124
7125 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7126 and to compile agent expressions.
7127 * infrun.c (siginfo_make_value): New argument `ignore'.
7128 (siginfo_funcs): New struct.
7129 (_initialize_infrun): New argument when calling
7130 `create_internalvar_type_lazy'.
7131 * thread.c (thread_id_make_value): New argument `ignore'.
7132 (thread_funcs): New struct.
7133 (_initialize_thread): New argument when calling
7134 `create_internalvar_type_lazy'.
7135 * tracepoint.c (sdata_make_value): New argument `ignore'.
7136 (sdata_funcs): New struct.
7137 (_initialize_tracepoint): New argument when calling
7138 `create_internalvar_type_lazy'.
7139 * value.c (make_value): New struct.
7140 (create_internalvar_type_lazy): New argument `data'.
7141 (compile_internalvar_to_ax): New function.
7142 (value_of_internalvar): Properly handling `make_value' case.
7143 (clear_internalvar): Likewise.
7144 (show_convenience): Adding `TRY_CATCH' block.
7145 * value.h (internalvar_make_value): Delete, replace by...
7146 (struct internalvar_funcs): ... this.
7147 (create_internalvar_type_lazy) <fun>: Delete argument.
7148 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7149 (compile_internalvar_to_ax): New function.
7150 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7151 (tlb_funcs): New struct.
7152 (_initialize_windows_tdep): New argument when calling
7153 `create_internalvar_type_lazy'.
7154
7155 2012-04-27 Mark Wielaard <mjw@redhat.com>
7156
7157 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7158 see whether it is an address or a constant offset from DW_AT_low_pc.
7159 (dwarf2_record_block_ranges): Likewise.
7160 (read_partial_die): Likewise.
7161
7162 2012-04-26 Mark Wielaard <mjw@redhat.com>
7163
7164 * MAINTAINERS (Write After Approval): Add myself to the list.
7165
7166 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7167
7168 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7169 (proc_prettyprint_signal): Likewise.
7170 (proc_prettyprint_faultset): Likewise.
7171 (proc_prettyprint_fault): Likewise.
7172 (proc_prettyprint_actionset): Likewise.
7173 (proc_prettyprint_flags): Move to new proc-flags.c section.
7174 (proc_prettyfprint_flags): New prototype.
7175 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7176 (proc_syscall, proc_cursig): Likewise.
7177 (proc_set_kill_on_last_close): Likewise.
7178 (proc_unset_kill_on_last_close): Likewise.
7179 (proc_set_watchpoint): Make static.
7180 (proc_delete_dead_threads): Likewise.
7181 (procfs_set_watchpoint): Likewise.
7182 (_initialize_procfs): Add prototype.
7183 * proc-events.c: Include proc-utils.h.
7184 (init_syscall_table): Make static.
7185 * proc-api.c (_initialize_proc_api): Add prototype.
7186 * proc-flags.c: Include proc-utils.h.
7187
7188 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7189
7190 * configure.ac: Add AC_ARG_PROGRAM.
7191 * configure: Regenerate.
7192
7193 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7194
7195 Fix DW_AT_lower_bound defaults for DWARF-4+.
7196 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7197 high. New variable low_default_is_valid. Implement DWARF-4+
7198 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7199 no default by the DWARF standard.
7200
7201 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7202 Maciej W. Rozycki <macro@codesourcery.com>
7203
7204 * infrun.c (handle_inferior_event): Move the check for return
7205 trampolines ahead of the check for function trampolines.
7206 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7207 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7208 (mips_str_mips16_ret_stub): Likewise.
7209 (mips_str_call_fp_stub): Likewise.
7210 (mips_str_call_stub): Likewise.
7211 (mips_str_fn_stub): Likewise.
7212 (mips_str_pic): Likewise.
7213 (mips_in_frame_stub): New function.
7214 (mips_unwind_pc): Return the return address rather than the PC
7215 if the PC of an intermediate frame is inside a call thunk.
7216 (mips_is_stub_suffix): New function.
7217 (mips_is_stub_mode): Likewise.
7218 (mips_get_mips16_fn_stub_pc): Likewise.
7219 (mips_skip_mips16_trampoline_code): Update to handle all the
7220 currently generated stub types. Don't recurse into __fn_stub
7221 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7222 Use cooked register accesses.
7223 (mips_in_return_stub): Reintroduce function.
7224 (mips_skip_trampoline_code): Traverse trampolines recursively.
7225 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7226
7227 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7228
7229 GDB 7.4.1 released.
7230
7231 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7232
7233 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7234 * features/arm-with-m-vfp-d16.xml: New file. Describes
7235 Cortex-M with VFPv4-sp-d16 FPU register layout.
7236 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7237 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7238 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7239 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7240 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7241
7242 2012-04-25 Doug Evans <dje@google.com>
7243
7244 * cli/cli-decode.c (print_doc_line): Use stream instead of
7245 current_uiout.
7246
7247 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7248
7249 * features/arm-with-iwmmxt.c: Regenerate.
7250 * features/arm-with-m-fpa-layout.c: Likewise.
7251 * features/arm-with-m.c: Likewise.
7252 * features/arm-with-neon.c: Likewise.
7253 * features/arm-with-vfpv2.c: Likewise.
7254 * features/arm-with-vfpv3.c: Likewise.
7255 * features/mips-dsp-linux.c: Likewise.
7256 * features/mips-linux.c: Likewise.
7257 * features/mips64-dsp-linux.c: Likewise.
7258 * features/mips64-linux.c: Likewise.
7259 * features/s390-linux32.c: Likewise.
7260 * features/s390-linux32v1.c: Likewise.
7261 * features/s390-linux32v2.c: Likewise.
7262 * features/s390-linux64.c: Likewise.
7263 * features/s390-linux64v1.c: Likewise.
7264 * features/s390-linux64v2.c: Likewise.
7265 * features/s390x-linux64.c: Likewise.
7266 * features/s390x-linux64v1.c: Likewise.
7267 * features/s390x-linux64v2.c: Likewise.
7268 * features/tic6x-c62x-linux.c: Likewise.
7269 * features/tic6x-c62x.c: Likewise.
7270 * features/tic6x-c64x-linux.c: Likewise.
7271 * features/tic6x-c64x.c: Likewise.
7272 * features/tic6x-c64xp-linux.c: Likewise.
7273 * features/tic6x-c64xp.c: Likewise.
7274 * target-descriptions.c: Only generate `field_type' and `type'
7275 variables when needed.
7276
7277 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7278
7279 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7280
7281 2012-04-25 Doug Evans <dje@google.com>
7282
7283 Initial pass at Go language support.
7284 * NEWS: Mention Go.
7285 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7286 go-valprint.c.
7287 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7288 (YYFILES): Add go-exp.c.
7289 (YYOBJ): Add go-exp.o.
7290 (local-maintainer-clean): Delete go-exp.c.
7291 * defs.h (enum language): Add language_go.
7292 * dwarf2read.c: #include "go-lang.h".
7293 (fixup_go_packaging): New function.
7294 (process_full_comp_unit): Call it when processing Go CUs.
7295 (dwarf2_physname): Add Go support.
7296 (read_file_scope): Handle missing language spec for GNU Go.
7297 (set_cu_language): Handle DW_LANG_Go.
7298 * go-exp.y: New file.
7299 * go-lang.h: New file.
7300 * go-lang.c: New file.
7301 * go-typeprint.c: New file.
7302 * go-valprint.c: New file.
7303 * symtab.c: #include "go-lang.h".
7304 (symbol_set_language): Handle language_go.
7305 (symbol_find_demangled_name, symbol_set_names): Ditto.
7306 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7307
7308 2012-04-24 Jim Meyering <meyering@redhat.com>
7309
7310 avoid a few strncpy-induced buffer overruns
7311 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7312 fname and psargs before trying to concatenate.
7313 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7314 "name" before applying strchr.
7315
7316 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7317
7318 * CONTRIBUTE: Use unified diff instead of context diff when
7319 generating patches.
7320
7321 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7322
7323 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7324 code. Handle JR.HB correctly.
7325
7326 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7327
7328 * mips-tdep.c
7329 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7330 with the other MIPS16 helpers.
7331
7332 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7333
7334 * observer.sh: Conditionally declare `args', thus cleaning up
7335 unused instances of this variable.
7336
7337 2012-04-24 Yao Qi <yao@codesourcery.com>
7338
7339 Revert this patch to allow breakpoint always-inserted
7340 in record target.
7341 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7342 * breakpoint.c: Include record.h.
7343 (breakpoints_always_inserted_mode): Return false when the record
7344 target is in use.
7345
7346 * breakpoint.c (iterate_over_bp_locations): New.
7347 * breakpoint.h: Declare.
7348 New typedef walk_bp_location_callback.
7349 * record.c (record_open): Call record_init_record_breakpoints.
7350 (record_sync_record_breakpoints): New.
7351 (record_init_record_breakpoints): New.
7352 * NEWS: Mention supporting breakpoint always-inserted mode in
7353 record target.
7354
7355 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7356
7357 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7358 any thread.
7359
7360 2012-04-24 Yao Qi <yao@codesourcery.com>
7361
7362 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7363 (is_catchpoint): ... it.
7364 (print_one_breakpoint_location): Caller update.
7365 * breakpoint.h: Update declaration.
7366
7367 2012-04-23 David S. Miller <davem@davemloft.net>
7368
7369 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7370
7371 2012-04-23 Tom Tromey <tromey@redhat.com>
7372
7373 * buildsym.c (add_free_pendings): Remove.
7374 * buildsym.h (add_free_pendings): Remove.
7375
7376 2012-04-23 Doug Evans <dje@google.com>
7377
7378 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7379 attr.u.unsnd instead of attr.u.addr.
7380 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7381 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7382 DW_FORM_ref_udata.
7383 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7384 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7385 DW_FORM_ref_udata.
7386 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7387
7388 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7389
7390 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7391 (mips_o32_return_value): Likewise.
7392 (mips_o64_return_value): Likewise.
7393
7394 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7395
7396 * ada-lang.c (ada_evaluate_subexp): Add cases for
7397 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7398 their treatment in eval.c.
7399
7400 2012-04-21 David S. Miller <davem@davemloft.net>
7401
7402 * sparc-tdep.c (X_DISP10): Define.
7403 (sparc_analyze_control_transfer): Handle compare-and-branch.
7404
7405 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7406
7407 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7408 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7409
7410 2012-04-20 Nigel Stephens <nigel@mips.com>
7411 Maciej W. Rozycki <macro@codesourcery.com>
7412
7413 * mips-tdep.c (mips_float_register_p): New function.
7414 (mips_convert_register_float_case_p): Use mips_float_register_p.
7415 (mips_register_type): Likewise.
7416 (mips_print_register): Likewise.
7417 (print_gp_register_row): Likewise.
7418 (mips_print_registers_info): Likewise.
7419
7420 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7421
7422 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7423 of mips16 symbols.
7424
7425 2012-04-20 Andrew Pinski <apinski@cavium.com>
7426
7427 * MAINTAINERS (Write After Approval): Add myself to the list.
7428
7429 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7430
7431 * MAINTAINERS: Update my e-mail address.
7432
7433 2012-04-20 Pedro Alves <palves@redhat.com>
7434
7435 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7436 $srcdir.
7437 * configure: Regenerate.
7438
7439 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7440
7441 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7442 declaration.
7443 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7444
7445 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 Fix compilation compatibility with python-2.4
7448 * python/py-type.c (convert_field): Cast ADDRSTRING for
7449 PyObject_SetAttrString as non-const. New comment.
7450
7451 2012-04-19 Tom Tromey <tromey@redhat.com>
7452
7453 * top.c (quit_target): Use all_cleanups.
7454 * main.c (captured_command_loop): Use all_cleanups.
7455 * exceptions.c (throw_exception): Use all_cleanups.
7456
7457 2012-04-19 Pedro Alves <palves@redhat.com>
7458
7459 * Makefile.in (GNULIB_BUILDDIR): New.
7460 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7461 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7462 (CLEANDIRS). Remove gnulib/import.
7463 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7464 (all-lib): Ditto.
7465 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7466 (gnulib/import/Makefile): Replace gnulib/import with
7467 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7468 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7469 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7470 acx_configure_dir.m4.
7471 * acinclude.m4: Include acx_configure_dir.m4.
7472 * acx_configure_dir.m4: New file.
7473 * aclocal.m4: Regenerate.
7474 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7475 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7476 (GNULIB): New variable.
7477 (GNULIB_STDINT_H): Adjust.
7478 (AC_OUTPUT): Don't output gnulib/Makefile.
7479 * gdb/defs.h: Include build-gnulib/config.h.
7480 * aclocal.m4: Regenerate.
7481 * config.in: Regenerate.
7482 * configure: Regenerate.
7483
7484 * gnulib/Makefile.in: New file.
7485 * gnulib/configure.ac: New file.
7486 * gnulib/aclocal.m4: New file.
7487 * gnulib/config.in: New file.
7488 * gnulib/configure: New file.
7489 * gnulib/: Re-run gnulib-tool to adjust.
7490
7491 2012-04-19 Doug Evans <dje@google.com>
7492
7493 * cleanups.h (struct cleanup): Move to cleanups.c.
7494 (make_cleanup_dtor_ftype): New typedef.
7495 (make_cleanup_dtor): Use it.
7496 (ALL_CLEANUPS): Replace with ...
7497 (all_cleanups): ... this. Declare. All uses updated.
7498 * cleanups.c: #include "gdb_assert.h".
7499 (sentinel_cleanup): New static global.
7500 (SENTINEL_CLEANUP): Define.
7501 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7502 (make_my_cleanup2): Assert result is non-NULL.
7503 (all_cleanups): New function.
7504 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7505 of NULL.
7506
7507 2012-04-19 Pedro Alves <palves@redhat.com>
7508
7509 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7510 Adjust paths to gnulib imported files.
7511
7512 2012-04-19 Pedro Alves <palves@redhat.com>
7513
7514 * gnulib/: Move whole directory ...
7515 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7516 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7517 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7518 (aclocal_m4_deps): Adjust.
7519 * aclocal.m4: Regenerate.
7520 * configure: Regenerate.
7521 * configure.ac: Adjust AC_OUTPUT output.
7522
7523 2012-04-19 Yao Qi <yao@codesourcery.com>
7524
7525 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7526 (vec.o): New rule.
7527 * vec.c: Move it ...
7528 * common/vec.c: ... here.
7529 * vec.h: Move it ...
7530 * common/vec.h: ... here.
7531
7532 2012-04-19 Yao Qi <yao@codesourcery.com>
7533
7534 * gdb-code-style.el: New.
7535
7536 2012-04-18 Pedro Alves <palves@redhat.com>
7537
7538 Update gnulib from latest git.
7539 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7540
7541 * gnulib/Makefile.am: Update.
7542 * gnulib/dummy.c: Update.
7543 * gnulib/extra/arg-nonnull.h: Update.
7544 * gnulib/extra/c++defs.h: Update.
7545 * gnulib/extra/update-copyright: Update.
7546 * gnulib/extra/warn-on-use.h: Update.
7547 * gnulib/inttypes.in.h: Update.
7548 * gnulib/m4/00gnulib.m4: Update.
7549 * gnulib/m4/extensions.m4: Update.
7550 * gnulib/m4/gnulib-cache.m4: Update.
7551 * gnulib/m4/gnulib-common.m4: Update.
7552 * gnulib/m4/gnulib-comp.m4: Update.
7553 * gnulib/m4/gnulib-tool.m4: Update.
7554 * gnulib/m4/include_next.m4: Update.
7555 * gnulib/m4/inttypes-pri.m4: Update.
7556 * gnulib/m4/inttypes.m4: Update.
7557 * gnulib/m4/longlong.m4: Update.
7558 * gnulib/m4/memchr.m4: Update.
7559 * gnulib/m4/memmem.m4: Update.
7560 * gnulib/m4/mmap-anon.m4: Update.
7561 * gnulib/m4/multiarch.m4: Update.
7562 * gnulib/m4/onceonly.m4: Update.
7563 * gnulib/m4/stddef_h.m4: Update.
7564 * gnulib/m4/stdint.m4: Update.
7565 * gnulib/m4/string_h.m4: Update.
7566 * gnulib/m4/warn-on-use.m4: Update.
7567 * gnulib/m4/wchar_h.m4: Update.
7568 * gnulib/m4/wchar_t.m4: Update.
7569 * gnulib/m4/wint_t.m4: Update.
7570 * gnulib/memchr.c: Update.
7571 * gnulib/memmem.c: Update.
7572 * gnulib/stddef.in.h: Update.
7573 * gnulib/stdint.in.h: Update.
7574 * gnulib/str-two-way.h: Update.
7575 * gnulib/string.in.h: Update.
7576 * gnulib/wchar.in.h: Update.
7577
7578 * gnulib/extra/arg-nonnull.h: Delete.
7579 * gnulib/extra/c++defs.h: Delete.
7580 * gnulib/extra/warn-on-use.h: Delete.
7581 * gnulib/m4/wchar_h.m4: Delete.
7582 * gnulib/m4/wint_t.m4: Delete.
7583 * gnulib/wchar.in.h: Delete.
7584
7585 * gnulib/extra/snippets/arg-nonnull.h: New.
7586 * gnulib/extra/snippets/c++defs.h: New.
7587 * gnulib/extra/snippets/warn-on-use.h: New.
7588
7589 * aclocal.m4: Regenerate.
7590 * config.in: Regenerate.
7591 * configure: Regenerate.
7592 * gnulib/Makefile.in: Regenerate.
7593
7594 2012-04-18 Pedro Alves <palves@redhat.com>
7595
7596 Reimport the update-copyright module from gnulib
7597 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7598
7599 * configure: Regenerate.
7600 * gnulib/Makefile.am: Update.
7601 * gnulib/Makefile.in: Regenerate.
7602 * gnulib/extra/update-copyright: Update.
7603 * gnulib/m4/gnulib-cache.m4: Update.
7604 * gnulib/m4/gnulib-comp.m4: Update.
7605
7606 2012-04-18 Tristan Gingold <gingold@adacore.com>
7607
7608 * configure.ac (aix): Put -lpthread into libs.
7609 * configure: Regenerate.
7610
7611 2012-04-18 Tom Tromey <tromey@redhat.com>
7612
7613 * linespec.c (convert_linespec_to_sals): Don't use
7614 SYMBOL_OBJ_SECTION.
7615 (compare_msymbols): Arguments are minsym_and_objfile, not
7616 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7617
7618 2012-04-18 Pedro Alves <palves@redhat.com>
7619
7620 Revert gnulib/ part of:
7621 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7622 Copyright year update in most files (performed by copyright.sh).
7623
7624 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7625
7626 Fix 64-bit constants on 32-bit hosts.
7627 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7628 from unsigned long to ULONGEST.
7629 (read_signed_leb128): Change declaration return type from long to
7630 LONGEST.
7631 (dwarf2_const_value_attr): Change declaration parameter value from long
7632 to LONGEST.
7633 (dwarf2_compute_name): Change variable value from long to LONGEST.
7634 (read_unsigned_leb128): Change return type, variable result and some
7635 casts from unsigned long to ULONGEST.
7636 (read_signed_leb128): Change return type, variable result and some
7637 casts from long to LONGEST.
7638 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7639 value from long to LONGEST.
7640 (dwarf2_const_value): Change variable value from long to LONGEST.
7641 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7642 plongest and hex_string.
7643 * symtab.h (struct general_symbol_info): Change ivalue from long to
7644 LONGEST, remove the comment.
7645 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7646 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7647
7648 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7649
7650 PR symtab/7259:
7651 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7652 * ada-lang.c (ada_discrete_type_high_bound)
7653 (ada_discrete_type_low_bound): Fix function comment. Use
7654 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7655 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7656 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7657 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7658 Use TYPE_FIELD_ENUMVAL.
7659 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7660 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7661 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7662 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7663 TYPE_CODE_ENUM.
7664 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7665 * dwarf2read.c (process_enumeration_scope): Likewise.
7666 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7667 field.bitpos.
7668 (class StructMainTypePrettyPrinter): Support also
7669 FIELD_LOC_KIND_ENUMVAL.
7670 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7671 TYPE_CODE_ENUM.
7672 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7673 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7674 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7675 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7676 field enumval.
7677 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7678 accommodate enumval.
7679 (struct call_site): Adjust loc_kind to accommodate enumval.
7680 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7681 (TYPE_FIELD_ENUMVAL): New macros.
7682 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7683 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7684 TYPE_CODE_ENUM.
7685 * p-typeprint.c (pascal_type_print_base): Likewise.
7686 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7687 enumval.
7688 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7689 * python/py-type.c (convert_field): New variable addrstring. Use
7690 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7691 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7692 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7693 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7694 TYPE_CODE_ENUM.
7695 * valprint.c (generic_val_print): Likewise.
7696
7697 2012-04-17 Doug Evans <dje@google.com>
7698
7699 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7700
7701 * dwarf2read.c: Whitespace fixes.
7702 (lookup_signatured_type): Tweak comment.
7703 (get_die_type_at_offset): Fix comment.
7704
7705 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7706
7707 * xcoffread.c (xcoff_secnum_to_sections): New function.
7708 (secnum_to_section, secnum_to_bfd_section): Reimplement
7709 using xcoff_secnum_to_sections. Rename "secnum" parameter
7710 into "n_scnum".
7711 (RECORD_MINIMAL_SYMBOL): Delete.
7712 (record_minimal_symbol): New function.
7713 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7714 by call to record_minimal_symbol and set misc_func_recorded
7715 to 1. Set last_csect_sec to the XCOFF section index instead
7716 of GDB's section_offset index. Update calls to
7717 prim_record_minimal_symbol_and_info to pass the BFD section
7718 as well.
7719
7720 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7721
7722 * xcoffread.c (read_xcoff_symtab): Delete variables
7723 last_csect_val and last_csect_sec and associated code.
7724
7725 2012-04-17 Doug Evans <dje@google.com>
7726
7727 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7728 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7729 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7730 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7731
7732 * cleanups.h: New file.
7733 * cleanups.c: New file.
7734 * Makefile.in (SFILES): Add cleanups.c.
7735 (HFILES_NO_SRCDIR): Add cleanups.h.
7736 (COMMON_OBS): Add cleanups.o.
7737 * defs.h (struct cleanup): Moved to cleanups.h.
7738 (do_cleanups,do_final_cleanups): Ditto.
7739 (discard_cleanups,discard_final_cleanups): Ditto
7740 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7741 (save_cleanups,save_final_cleanups): Ditto.
7742 (restore_cleanups,restore_final_cleanups): Ditto.
7743 (null_cleanup): Ditto.
7744 (make_my_cleanup,make_my_cleanup2): Ditto.
7745 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7746 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7747 (do_cleanups,do_final_cleanups): Ditto.
7748 (discard_cleanups,discard_final_cleanups): Ditto
7749 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7750 (save_cleanups,save_final_cleanups): Ditto.
7751 (restore_cleanups,restore_final_cleanups): Ditto.
7752 (null_cleanup): Ditto.
7753 (make_my_cleanup,make_my_cleanup2): Ditto.
7754 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7755
7756 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7757 make_my_cleanup.
7758 (make_cleanup_dyn_string_delete): Ditto.
7759 (make_cleanup_ui_file_delete): Ditto.
7760 (make_cleanup_ui_out_redirect_pop): Ditto.
7761 (make_cleanup_free_section_addr_info): Ditto.
7762 (make_cleanup_restore_integer): Ditto.
7763 (make_cleanup_unpush_target): Ditto.
7764 (make_cleanup_value_free_to_mark): Ditto.
7765 (make_cleanup_value_free): Ditto.
7766 (make_cleanup_free_so): Ditto.
7767
7768 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7769
7770 New option "set debug auto-load".
7771 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7772 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7773 (auto_load_safe_path_vec_update)
7774 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7775 if DEBUG_AUTO_LOAD.
7776 (file_is_auto_load_safe): New parameters debug_fmt and ....
7777 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7778 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7779 caller by explanatory string.
7780 (_initialize_auto_load): Register "set debug auto-load".
7781 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7782 and ....
7783 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7784 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7785 by explanatory string.
7786 * main.c (captured_main): Likewise.
7787 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7788 (source_section_scripts): Likewise.
7789
7790 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 New option "set auto-load safe-path".
7793 * NEWS: New commands "set auto-load safe-path"
7794 and "show auto-load safe-path".
7795 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7796 (auto_load_safe_path, auto_load_safe_path_vec)
7797 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7798 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7799 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7800 (source_gdb_script_for_objfile): New variable is_safe. Call
7801 file_is_auto_load_safe. Return if it is not.
7802 (struct loaded_script): New field loaded.
7803 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7804 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7805 output "Missing" to "No".
7806 (_initialize_auto_load): New variable cmd. Initialize
7807 auto_load_safe_path. Register "set auto-load safe-path",
7808 "show auto-load safe-path" and "add-auto-load-safe-path".
7809 * auto-load.h (maybe_add_script): Add parameter loaded.
7810 (file_is_auto_load_safe): New declaration.
7811 * config.in: Regenerate.
7812 * configure: Regenerate.
7813 * configure.ac: New parameters --with-auto-load-safe-path
7814 and --without-auto-load-safe-path.
7815 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7816 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7817 * main.c (captured_main): Check file_is_auto_load_safe for
7818 LOCAL_GDBINIT.
7819 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7820 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7821 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7822 not.
7823
7824 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 auto-load: Implementation.
7827 * NEWS: New descriptions for "info auto-load",
7828 "info auto-load gdb-scripts", "info auto-load python-scripts",
7829 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7830 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7831 and "show auto-load-scripts". New description for "set auto-load",
7832 "show auto-load", "set auto-load gdb-scripts",
7833 "show auto-load gdb-scripts", "set auto-load python-scripts",
7834 "show auto-load python-scripts", "set auto-load local-gdbinit",
7835 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7836 "show auto-load libthread-db".
7837 * auto-load.c: Remove include python/python-internal.h. Add includes
7838 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7839 cli/cli-setshow.h.
7840 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7841 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7842 (gdbpy_global_auto_load): Rename to ...
7843 (global_auto_load): ... here.
7844 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7845 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7846 (script_language_gdb, source_gdb_script_for_objfile): New.
7847 (struct loaded_script): New field language.
7848 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7849 LANGUAGE.
7850 (maybe_add_script): Add parameter language. Drop redundant
7851 entry.full_path initialization. Initialize entry.language and
7852 (*slot)->language.
7853 (auto_load_objfile_script): Change parameter suffix to language.
7854 Remove the call of maybe_add_script.
7855 Call language->source_script_for_objfile.
7856 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7857 New.
7858 (collect_matching_scripts): Adjust it for
7859 struct collect_matching_scripts_data.
7860 (auto_load_info_scripts_pattern_nl): New variable.
7861 (info_auto_load_scripts): Rename to ...
7862 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7863 for struct collect_matching_scripts_data.
7864 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7865 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7866 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7867 (auto_load_info_cmdlist_get): New.
7868 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7869 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7870 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7871 "info auto-load local-gdbinit".
7872 * auto-load.h (struct script_language): New.
7873 (gdbpy_global_auto_load): Rename to ...
7874 (global_auto_load): ... here.
7875 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7876 (auto_load_local_gdbinit_loaded): New declarations.
7877 (maybe_add_script): New parameter language.
7878 (auto_load_objfile_script): Change parameter suffix to language.
7879 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7880 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7881 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7882 declarations.
7883 * linux-thread-db.c: Include auto-load.h and ctype.h.
7884 (auto_load_thread_db, show_auto_load_thread_db): New.
7885 (struct thread_db_info): New field filename.
7886 (delete_thread_db_info): Call xfree for FILENAME.
7887 (try_thread_db_load): Initialize FILENAME.
7888 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7889 if !AUTO_LOAD_THREAD_DB.
7890 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7891 (_initialize_thread_db): Install auto_load_thread_db
7892 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7893 as "info auto-load libthread-db".
7894 * main.c (captured_main): Rename gdbpy_global_auto_load to
7895 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7896 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7897 (print_gdb_help): Extend the help for 'local init file'.
7898 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7899 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7900 (auto_load_scripts): Rename to ...
7901 (auto_load_python_scripts): ... here, update the comment.
7902 (gdbpy_load_auto_script_for_objfile): New declaration.
7903 (show_auto_load_python_scripts, script_language_python)
7904 (gdbpy_load_auto_script_for_objfile): New.
7905 (source_section_scripts): Refactor the code.
7906 (load_auto_scripts_for_objfile): Rename to ...
7907 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7908 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7909 (info_auto_load_python_scripts): New.
7910 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7911 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7912 Register "set auto-load-scripts" as its deprecated alias. Register
7913 "info auto-load python-scripts". Register "info auto-load-scripts" as
7914 its deprecated alias.
7915 (load_auto_scripts_for_objfile): Rename to ...
7916 (gdbpy_load_auto_scripts_for_objfile): ... here.
7917 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7918 (gdbpy_load_auto_scripts_for_objfile): ... here.
7919
7920 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7921
7922 auto-load: Move files.
7923 * Makefile.in (SFILES): Add auto-load.c.
7924 (HFILES_NO_SRCDIR): Add auto-load.h.
7925 (COMMON_OBS): Add auto-load.o.
7926 (distclean): Change .gdbinit for gdb-gdb.gdb.
7927 * auto-load.c: New file, with parts from python/py-auto-load.c.
7928 * auto-load.h: New file, with parts from python/python.h.
7929 * configure: Regenerate.
7930 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7931 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7932 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7933 * main.c: Include auto-load.h.
7934 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7935 command.h, observer.h and progspace.h to auto-load.c. Add include
7936 auto-load.h.
7937 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7938 (struct loaded_script, auto_load_pspace_data)
7939 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7940 (hash_loaded_script_entry, eq_loaded_script_entry)
7941 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7942 (maybe_add_script): Move to auto-load.c.
7943 (source_section_scripts): Change maybe_add_script parameters passing,
7944 use script_not_found_warning_print.
7945 (clear_section_scripts, auto_load_objfile_script)
7946 (auto_load_new_objfile, loaded_script_ptr)
7947 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7948 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7949 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7950 auto_load_new_objfile and info_auto_load_scripts initizations to
7951 auto-load.c.
7952 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7953
7954 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7955
7956 Code cleanup.
7957 * charset.c (find_charset_names): Remove variables ix and elt.
7958 Use free_char_ptr_vec.
7959 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7960 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7961 debugdir_end. New variable debugdir_len.
7962 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7963 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7964 declarations.
7965 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7966 and elt. Use free_char_ptr_vec.
7967 * source.c (add_path): Remove variables argv, arg and argv_index.
7968 New variables dir_vec, back_to, ix and name.
7969 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7970 make_cleanup_freeargv. Remove variable separator. Simplify the code
7971 no longer expecting DIRNAME_SEPARATOR.
7972 (openp): Remove variable p, p1 and len. New variables dir_vec,
7973 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7974 no longer expecting DIRNAME_SEPARATOR.
7975 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7976 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7977 debugdir_end.
7978 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7979 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7980 (dirnames_to_char_ptr_vec): New functions.
7981
7982 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 Code cleanup.
7985 * source.c (add_path): Remove always true conditional 'p == 0' and
7986 unindent its code block.
7987
7988 2012-04-17 Pedro Alves <palves@redhat.com>
7989
7990 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7991 (FIELD_BITPOS_LVAL): ... this.
7992 (FIELD_BITPOS): New.
7993 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7994 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7995 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7996 SET_FIELD_BITPOS.
7997 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7998 SET_FIELD_BITPOS.
7999 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8000 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8001 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8002 SET_FIELD_BITPOS.
8003
8004 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8005
8006 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8007 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8008 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8009 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8010 * jv-lang.c (java_link_class_type): Likewise, once.
8011 * stabsread.c (read_enum_type): Likewise.
8012
8013 2012-04-16 Yao Qi <yao@codesourcery.com>
8014
8015 * common/agent.c (agent_run_command): Add one more parameter `len'.
8016 Update callers.
8017 * common/agent.h: Update declaration.
8018 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8019 Update.
8020 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8021
8022 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8023
8024 PR mi/13393
8025 * value.c (value_actual_type): New function.
8026 * value.h (value_actual_type): New declaration.
8027 * varobj.c (update_type_if_necessary): New function.
8028 (varobj_create): Call value_actual_type instead of
8029 value_type.
8030 (install_dynamic_child): distinct changed and type changed MI variable
8031 objects.
8032 (update_dynamic_varobj_children): Updated for install_dynamic_child
8033 change. All callers updated.
8034 (varobj_update): Support for MI variable object type change if
8035 the value changed and RTTI is used to determine the type.
8036 (create_child_with_value): Call value_actual_type instead of
8037 value_type.
8038 (adjust_value_for_child_access): Extended with a new parameter which
8039 specify whether the given value should be casted to enclosing type.
8040 All callers updated.
8041
8042 2012-04-14 Yao Qi <yao@codesourcery.com>
8043
8044 Import gnulib module inttypes from git
8045 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8046 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8047 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8048 gnulib/m4/inttypes-pri.m4
8049 * aclocal.m4, config.in, configure: Regenerated.
8050 * gnulib/Makefile.am: Update.
8051 * gnulib/Makefile.in: Update.
8052 * gnulib/m4/gnulib-cache.m4: Update.
8053 * gnulib/m4/gnulib-comp.m4: Update.
8054 * gnulib/inttypes.in.h: New.
8055 * gnulib/m4/inttypes-pri.m4: New.
8056 * gnulib/m4/inttypes.m4: New.
8057
8058 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8059
8060 * infrun.c (resume): Update PC address to the real PC after
8061 preparing to do displaced stepping.
8062
8063 2012-04-12 Doug Evans <dje@google.com>
8064
8065 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8066 All callers updated.
8067
8068 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8069
8070 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8071
8072 2012-04-12 Doug Evans <dje@google.com>
8073
8074 * dwarf2read.c (create_all_type_units): Renamed from
8075 create_debug_types_hash_table. All callers updated.
8076
8077 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8078 local type_sig to sig_type, type_offset to type_offset_in_tu.
8079 (hash_signatured_type): Renamed from hash_type_signature,
8080 all callers updated.
8081 (eq_signatured_type): Renamed from eq_type_signature,
8082 all callers updated.
8083 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8084 (process_enumeration_scope): Ditto.
8085 (lookup_signatured_type_at_offset): Ditto.
8086 (load_full_type_unit, read_signatured_type): Ditto.
8087
8088 2012-04-12 Yao Qi <yao@codesourcery.com>
8089
8090 * remote.c (async_remote_interrupt): Correct function name in
8091 debug message.
8092 (async_remote_interrupt_twice): Ditto.
8093
8094 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8095
8096 * source.c (find_and_open_source): Consistently pass resulting
8097 full path through xfullpath.
8098
8099 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 Provide more specific displaced-stepping memory error message.
8102 * infrun.c (displaced_step_prepare): New variable status. Call
8103 target_read_memory instead of read_memory, provide more specific
8104 error message.
8105
8106 2012-04-11 Tristan Gingold <gingold@adacore.com>
8107
8108 PR gdb/13901
8109 * darwin-nat.c (darwin_execvp): Revert previous patch.
8110
8111 2012-04-11 Tristan Gingold <gingold@adacore.com>
8112
8113 PR gdb/13901
8114 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8115 in case of change.
8116
8117 2012-04-11 Tristan Gingold <gingold@adacore.com>
8118
8119 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8120 warning.
8121
8122 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8123
8124 New command 'explore' which helps explore values and types in
8125 scope.
8126 * NEWS: Add an entry about the new 'explore' command.
8127 * data-directory/Makefile.in: Add gdb/command/explore.py
8128 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8129 command using the GDB Python API.
8130
8131 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8132
8133 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8134 extension in jump target calculation.
8135
8136 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8137
8138 * mips-tdep.c (mips32_next_pc): Handle JALX.
8139
8140 2012-04-10 Yao Qi <yao@codesourcery.com>
8141
8142 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8143
8144 2012-04-10 Yao Qi <yao@codesourcery.com>
8145
8146 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8147 and gnulib/m4/gnulib-tool.m4.
8148
8149 2012-04-10 Doug Evans <dje@google.com>
8150
8151 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8152 (load_partial_dies): Clarify comment.
8153 (find_partial_die): Support rereading type units.
8154 Clarify CU handling, if we know offset is in CU, don't search for the
8155 containing CU. Add comment regarding memory waste.
8156
8157 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8158
8159 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8160 i386/x32-avx and i386/x32-avx-linux.
8161 (i386/x32-expedite): New.
8162 (i386/x32-linux-expedite): Likewise.
8163 (i386/x32-avx-expedite): Likewise.
8164 (i386/x32-avx-linux-expedite): Likewise.
8165 ($(outdir)/i386/x32.dat): Likewise.
8166 ($(outdir)/i386/x32-linux.dat): Likewise.
8167 ($(outdir)/i386/x32-avx.dat): Likewise.
8168 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8169
8170 * features/i386/x32-avx-linux.xml: New file.
8171 * features/i386/x32-avx.xml: Likewise.
8172 * features/i386/x32-core.xml: Likewise.
8173 * features/i386/x32-linux.xml: Likewise.
8174 * features/i386/x32.xml: Likewise.
8175
8176 * features/i386/x32-avx-linux.c: New. Generated.
8177 * features/i386/x32-avx.c: Likewise.
8178 * features/i386/x32-linux.c: Likewise.
8179 * features/i386/x32.c: Likewise.
8180 * regformats/i386/x32-avx-linux.dat: Likewise.
8181 * regformats/i386/x32-avx.dat: Likewise.
8182 * regformats/i386/x32-linux.dat: Likewise.
8183 * regformats/i386/x32.dat: Likewise.
8184
8185 2012-04-10 Tristan Gingold <gingold@adacore.com>
8186
8187 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8188 code to kill the inferior.
8189
8190 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8191
8192 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8193 defines.
8194 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8195 defines.
8196 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8197 (yyvsp): New defines.
8198 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8199 defines.
8200 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8201 defines.
8202 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8203 defines.
8204 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8205 defines.
8206 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8207 defines.
8208
8209 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8210
8211 * sparc64-tdep.c (sparc64_store_arguments)
8212 (sparc64_store_arguments): Fix coding style.
8213
8214 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8215
8216 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8217 complex floats, adjust some related comments and tighten a related
8218 assertion.
8219 (sparc64_extract_return_value): Handle complex floats.
8220
8221 2012-04-07 Doug Evans <dje@google.com>
8222
8223 * dwarf2read.c (load_partial_dies): Change condition to assert.
8224
8225 2012-04-06 Doug Evans <dje@google.com>
8226
8227 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8228 "mov %rsp,%rbp".
8229
8230 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8231
8232 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8233 fencepost error.
8234 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8235 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8236 architecture.
8237
8238 2012-04-05 Keith Seitz <keiths@redhat.com>
8239
8240 * linespec.c (decode_compound): Remove.
8241 (enum offset_relative_sign): New enum.
8242 (struct line_offset): New struct.
8243 (struct linespec): New struct.
8244 (struct linespec_state): Move file_symtabs,
8245 user_filename, and user_function into struct linespec.
8246 Make result an anonymous struct holding vectors of
8247 symbolp and minsym_and_objfile_d.
8248 Add language member.
8249 (enum ls_token_type): New enum.
8250 (linespec_keywords): New array.
8251 (struct ls_token): New struct.
8252 (struct ls_parser): New struct.
8253 (linespec_lexer_lex_number): New function.
8254 (linespec_lexer_lex_keyword): New function.
8255 (is_ada_operator): New function.
8256 (skip_quote_char): New function.
8257 (copy_token_string): New function.
8258 (is_closing_quote_enclosed): New function.
8259 (find_parameter_list_end): New function.
8260 (linespec_lexer_lex_string): New function.
8261 (linespec_lexer_lex_one): New function.
8262 (linespec_lexer_consume_token): New function.
8263 (linespec_lexer_peek_token): New function.
8264 (cplusplus_error): Remove unused function.
8265 (find_methods): Update comment.
8266 (find_toplevel_char): Return const.
8267 (is_objc_method_format): Remove unused function.
8268 (find_toplevel_string): New function.
8269 (is_linespec_boundary): Remove.
8270 (symbol_not_found_error): New function.
8271 (find_method_overload_end): Remove function.
8272 (unexpected_linespec_error): New function.
8273 (keep_name_info): Remove.
8274 (linespec_parse_line_offset): New function.
8275 (linespec_parse_basic): New function.
8276 (canonicalize_linespec): New function.
8277 (decode_line_internal): Remove.
8278 (create_sals_line_offset): New function adapted from
8279 decode_all_digits.
8280 (convert_linespec_to_sals): New function.
8281 (parse_linespec): New function.
8282 (linespec_parser_new): New function.
8283 (linespec_state_destructor): Change parameter type to
8284 struct linespec_state *.
8285 Add language parameter.
8286 Remove freeing of moved members.
8287 (linespec_parser_delete): New function.
8288 (decode_line_full): Use parse_linespec and linespec_parser_new.
8289 (decode_line_1): Likewise.
8290 (decode_indirect): Rename to ...
8291 (linespec_expression_to_pc): ... this and rewrite
8292 to simply find CORE_ADDR, storing this result for later
8293 conversion to SALs.
8294 (locate_first_half): Remove.
8295 (deocde_objc): Add parameter LS.
8296 Initialize new struct collect_info members.
8297 Handle minimal symbols, too.
8298 (decode_compound): Delete.
8299 (lookup_prefix_sym): Rewrite.
8300 (compare_msymbols): New function.
8301 (find_method): Rewrite.
8302 Do not call cplusplus_error.
8303 (symtabs_from_filename): Rewrite.
8304 (collect_function_symbols): Delete.
8305 (find_function_symbols): Rewrite without ARGPTR-style
8306 processing.
8307 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8308 (decode_dollar): Adapted and renamed to ...
8309 (linespec_parse_variable): ... this.
8310 (find_linespec_symbols): New function.
8311 (decode_label): Adapted and renamed to ...
8312 (find_label_symbols): ... this.
8313 (decode_digits_list_mode): Add and use LS argument.
8314 (decode_digits_ordinary): Likewise.
8315 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8316 If in list mode, allow any symbol class. Otherwise, only
8317 permit LOC_BLOCK symbols.
8318 (minsym_found): Update comments.
8319 (search_minsyms_for_name): Do not convert the matching symbol
8320 into a SAL. Simply push the symbol and objfile into the
8321 result vector.
8322 (decode_variable): Delete. Contents adapted into
8323 find_linespec_symbols.
8324
8325 * cp-support.c (SKIP_SPACE): Remove.
8326 (operator_tokens): Remove unused global.
8327 (cp_validate_operator): Remove.
8328 * cp-support.h (cp_validate_operator): Remove declaration.
8329
8330 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8331
8332 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8333 for TYPE_VPTR_FIELDNO.
8334 * valprint.c (valprint_check_validity): Make it global, move the
8335 function comment ...
8336 * value.h (valprint_check_validity): ... to this new declaration.
8337
8338 2012-04-02 Tristan Gingold <gingold@adacore.com>
8339
8340 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8341 the STATE32 api for i386 state.
8342 (i386_darwin_store_inferior_registers): Likewise.
8343
8344 2012-04-02 Tristan Gingold <gingold@adacore.com>
8345
8346 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8347 SS offset.
8348 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8349 format_string.
8350
8351 2012-04-02 Tristan Gingold <gingold@adacore.com>
8352
8353 PR gdb/13901
8354 * darwin-nat.c (darwin_execvp): Set binary preference.
8355
8356 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8359
8360 2012-03-30 Tom Tromey <tromey@redhat.com>
8361
8362 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8363 of TRY_CATCH. Fix error handling.
8364 * python/py-value.c (convert_value_from_python): Move 'old'
8365 declaration to innermost scope.
8366
8367 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8368 Andrey Smirnov <andrew.smirnov@gmail.com>
8369
8370 -Wshadow warning fix.
8371 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8372 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8373 Adjust code accordingly.
8374
8375 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8376
8377 * ada-lang.c (symbol_completion_add): Rename parameter
8378 "encoded" into "encoded_p". Ajust code and documentation
8379 accordingly.
8380
8381 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8382 Andrey Smirnov <andrew.smirnov@gmail.com>
8383
8384 -Wshadow warning fix.
8385 * ada-lang.c (symbol_completion_add): Rename parameter
8386 "wild_match" into wild_match_p. Update code and documentation
8387 accordingly.
8388
8389 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8390
8391 * ada-lang.c (symbol_completion_match): Rename parameter
8392 "encoded" into "encoded_p". Ajust code and documentation
8393 accordingly.
8394
8395 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8396 Andrey Smirnov <andrew.smirnov@gmail.com>
8397
8398 -Wshadow warning fix.
8399 * ada-lang.c (symbol_completion_match): Rename parameter
8400 "wild_match" into "wild_match_p". Adjust code and function
8401 documentation accordingly.
8402
8403 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8404 Andrey Smirnov <andrew.smirnov@gmail.com>
8405
8406 -Wshadow warning fix.
8407 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8408 "symbol_info" into "info". Adjust code accordingly.
8409 (ada_lookup_symbol): Likewise.
8410
8411 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8412
8413 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8414 of this function's documentation.
8415
8416 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8417 Andrey Smirnov <andrew.smirnov@gmail.com>
8418
8419 -Wshadow warning fix.
8420 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8421 variable into "wild_match_p". Adjust code accordingly.
8422
8423 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8424 Andrey Smirnov <andrew.smirnov@gmail.com>
8425
8426 -Wshadow warning fix.
8427 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8428 parameter into "wild_match_p". Adjust code accordingly.
8429 Document this parameter in the function description.
8430
8431 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8432 Andrey Smirnov <andrew.smirnov@gmail.com>
8433
8434 -Wshadow warning fix.
8435 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8436 "wild_match" parameter to "wild_match_p" (-Wshadow).
8437
8438 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8439
8440 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8441 in function documentation.
8442
8443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8444 Andrey Smirnov <andrew.smirnov@gmail.com>
8445
8446 -Wshadow warning fix.
8447 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8448 variable into wild_match_p. Adjust code accordingly.
8449
8450 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8451 Andrey Smirnov <andrew.smirnov@gmail.com>
8452
8453 * ada-valprint.c (ada_val_print_1): Move the code handling
8454 TYPE_CODE_ENUM inside its own lexical block. Declare
8455 variables len and val there, instead of in the function's
8456 top level block. Avoid declaring deref_val again in a way
8457 that shadows another variable of the same name declared
8458 in one of the up-level blocks. Just re-use the up-level
8459 variable instead.
8460
8461 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8462
8463 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8464 Replace block_found argument by symbol_info. Adjust
8465 implementation accordingly. Add function documentation.
8466 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8467 Fix documentation.
8468 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8469 * ada-exp.y (write_object_renaming): Adjust to new
8470 ada_lookup_encoded_symbol API.
8471
8472 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8473
8474 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8475 documentation.
8476
8477 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8478
8479 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8480 (v850_register_name): Add the mpu and fpu register names.
8481 (v850e_register_name): Add the mpu and fpu register names.
8482 (v850e2_register_name): New function.
8483 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8484 bfd_mach_v850e2v3.
8485
8486 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8487
8488 * NEWS: Add entry for Ada varobj support.
8489
8490 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8491
8492 * varobj.c (default_value_is_changeable_p): New function,
8493 extracted from varobj_value_is_changeable_p. Add declaration.
8494 (ada_value_is_changeable_p): New function, extracted from
8495 varobj_value_is_changeable_p. Add declaration.
8496 (struct language_specific): New field "value_is_changeable_p".
8497 (languages): Add entries for new field.
8498 (varobj_create): Set language before calling install_new_value.
8499 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8500 "value_is_changeable_p" language callback.
8501
8502 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8503
8504 * ada-varobj.h, ada-varobj.c: New files.
8505 * Makefile.in (SFILES): Add ada-varobj.c.
8506 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8507 (COMMON_OBS): Add ada-varobj.o.
8508
8509 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8510
8511 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8512 (struct language_specific): New field "value_has_mutated".
8513 (languages): Set field "value_has_mutated" in each entry of array.
8514 (varobj_value_has_mutated): New function.
8515 (varobj_udpdate): Add handling of type mutation.
8516 (value_of_root): Add handling of type mutation.
8517 (ada_value_has_mutated): New function.
8518
8519 2012-03-28 Pedro Alves <palves@redhat.com>
8520
8521 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8522 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8523
8524 2012-03-28 Tom Tromey <tromey@redhat.com>
8525
8526 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8527 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8528 before returning.
8529
8530 2012-03-28 Tom Tromey <tromey@redhat.com>
8531
8532 * .dir-locals.el: New file.
8533
8534 2012-03-28 Pedro Alves <palves@redhat.com>
8535
8536 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8537
8538 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8539
8540 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8541 handling for r0.
8542
8543 2012-03-27 Pedro Alves <palves@redhat.com>
8544
8545 Eliminate struct ui_stream.
8546
8547 * ui-out.h (struct ui_stream): Delete.
8548 (ui_out_field_stream): Adjust prototype.
8549 (ui_out_stream_new, ui_out_stream_delete)
8550 (make_cleanup_ui_out_stream_delete): Delete declarations.
8551 * ui-out.c (ui_out_field_stream): Change prototype to take a
8552 ui_file instead of a ui_stream. Adjust.
8553 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8554 (make_cleanup_ui_out_stream_delete): Delete.
8555 * breakpoint.c (print_breakpoint_location)
8556 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8557 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8558 * disasm.c (dump_insns): Ditto.
8559 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8560 prototype.
8561 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8562 ui_stream/ui_out_stream_new.
8563 * infcmd.c (print_return_value): Ditto.
8564 * osdata.c (info_osdata_command): Don't allocate a local
8565 ui_stream.
8566 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8567 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8568 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8569 allocate a local ui_stream.
8570 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8571 instead of ui_stream/ui_out_stream_new.
8572 (list_args_or_locals): Don't allocate a local ui_stream.
8573 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8574 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8575 ui_stream/ui_out_stream_new.
8576 * cli/cli-setshow.c (do_setshow_command): Ditto.
8577
8578 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8579
8580 * arm-linux-tdep.c (arm_linux_init_abi): Call
8581 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8582 * arm-tdep.c (arm_process_record): New function.
8583 (deallocate_reg_mem): New function.
8584 (decode_insn): New function.
8585 (thumb_record_branch): New function.
8586 (thumb_record_ldm_stm_swi(): New function.
8587 (thumb_record_misc): New function.
8588 (thumb_record_ld_st_stack): New function.
8589 (thumb_record_ld_st_imm_offset): New function.
8590 (thumb_record_ld_st_reg_offset(): New function.
8591 (thumb_record_add_sub_cmp_mov): New function.
8592 (thumb_record_shift_add_sub): New function.
8593 (arm_record_coproc_data_proc): New function.
8594 (arm_record_coproc): New function.
8595 (arm_record_b_bl): New function.
8596 (arm_record_ld_st_multiple): New function.
8597 (arm_record_ld_st_reg_offset): New function.
8598 (arm_record_ld_st_imm_offset): New function.
8599 (arm_record_data_proc_imm): New function.
8600 (arm_record_data_proc_misc_ld_str): New function.
8601 (arm_record_extension_space): New function.
8602 (arm_record_strx): New function.
8603 (sbo_sbz): New function.
8604 (struct insn_decode_record): New structure for arm insn record.
8605 (REG_ALLOC): New macro for reg allocations.
8606 (MEM_ALLOC): New macro for memory allocations.
8607 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8608
8609 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8610
8611 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8612 (store_register): Likewise.
8613
8614 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8615
8616 * MAINTAINERS (Write After Approval): Add myself to the list.
8617
8618 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8619
8620 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8621 Describe also the option "auto".
8622
8623 2012-03-22 Richard Henderson <rth@redhat.com>
8624
8625 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8626 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8627
8628 2012-03-22 Richard Henderson <rth@redhat.com>
8629
8630 * jit.c (jit_read_code_entry): Compute alignment and offset of
8631 int64_t member before computing entry_size.
8632
8633 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8634
8635 Python scripting: Add new method Value.referenced_value to
8636 gdb.Value which can dereference pointer as well as reference
8637 values.
8638 * NEWS: Add entry under 'Python scripting' about the new method
8639 Value.referenced_value on gdb.Value objects.
8640 * python/py-value.c (valpy_referenced_value): New function
8641 defining a new method on gdb.Value objects which can dereference
8642 pointer and reference values.
8643
8644 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8645
8646 * MAINTAINERS (Write After Approval): Add myself to the list.
8647
8648 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8649
8650 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8651 in addition to "main".
8652
8653 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8654
8655 * expression.h (op_name): Add declaration.
8656 * expprint.c (op_name): Remove declaration. Make non-static.
8657 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8658
8659 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8660
8661 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8662 of struct siginfo.
8663 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8664 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8665 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8666 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8667 (linux_nat_get_siginfo): Likewise.
8668 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8669 (linux_nat_get_siginfo): Likewise.
8670 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8671 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8672 * procfs.c (gdb_siginfo_t): Likewise.
8673
8674 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8675
8676 * .gitignore: Ignore more files.
8677
8678 2012-03-20 Pedro Alves <palves@redhat.com>
8679
8680 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8681 returns.
8682
8683 2012-03-20 Yao Qi <yao@codesourcery.com>
8684
8685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8686 comment.
8687
8688 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8689
8690 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8691 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8692 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8693 sect_offset.
8694 * dwarf2expr.h (cu_offset, sect_offset): New types.
8695 (struct dwarf_expr_context_funcs) <dwarf_call>
8696 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8697 sect_offset.
8698 (struct dwarf_expr_context) <len>: Improve the comment.
8699 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8700 cu_offset and sect_offset.
8701 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8702 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8703 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8704 * dwarf2loc.h: Include dwarf2expr.h.
8705 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8706 and sect_offset.
8707 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8708 Improve the comment.
8709 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8710 (struct signatured_type, struct line_header, struct partial_die_info)
8711 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8712 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8713 (get_die_type_at_offset, create_cus_from_index)
8714 (create_signatured_type_table_from_index, dw2_get_file_names)
8715 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8716 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8717 (create_debug_types_hash_table, process_psymtab_comp_unit)
8718 (load_partial_comp_unit, create_all_comp_units)
8719 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8720 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8721 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8722 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8723 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8724 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8725 (find_partial_die, read_attribute_value, lookup_die_type)
8726 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8727 (is_ref_attr): New function comment.
8728 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8729 Use cu_offset and sect_offset.
8730 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8731 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8732 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8733 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8734 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8735 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8736 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8737 sect_offset.
8738
8739 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 Code cleanup.
8742 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8743 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8744 with xfree.
8745 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8746
8747 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 * NEWS: Describe new options --init-command=FILE, -ix and
8750 --init-eval-command=COMMAND, -iex.
8751 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8752 CMDARG_INIT_COMMAND.
8753 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8754 "init-command", "init-eval-command", "ix" and "iex" to the variable
8755 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8756 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8757 (print_gdb_help): Describe --init-command=FILE, -ix and
8758 --init-eval-command=COMMAND, -iex.
8759
8760 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8761
8762 Code cleanup.
8763 * main.c (struct cmdarg): Move it here from main. Add more comments.
8764 (cmdarg_s, VEC (cmdarg_s)): New.
8765 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8766 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8767 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8768 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8769 of CMDARG.
8770
8771 2012-03-19 Tom Tromey <tromey@redhat.com>
8772
8773 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8774
8775 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8776
8777 PR symtab/13777
8778 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8779 GCC >=4.5.
8780
8781 2012-03-16 Chris January <chris.january@allinea.com>
8782
8783 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8784 of clear.
8785
8786 2012-03-16 Chris January <chris.january@allinea.com>
8787
8788 * source.c (add_path): Use memmove instead of strcpy because the
8789 strings overlap.
8790
8791 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8792
8793 * value.h (set_value_parent): Add declaration.
8794 * value.c (set_value_parent): New function.
8795 (value_address): If VALUE->PARENT is not NULL, then use it as
8796 the base address instead of VALUE->LOCATION.address.
8797 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8798 the same as OBJ's address. Adjust V's offset accordingly.
8799 Set V's parent.
8800
8801 2012-03-16 Gary Benson <gbenson@redhat.com>
8802
8803 PR breakpoints/10738
8804 * dwarf2read.c (use_deprecated_index_sections): New global.
8805 (struct partial_die_info): New member may_be_inlined.
8806 (read_partial_die): Set may_be_inlined where appropriate.
8807 (add_partial_subprogram): Add partial symbols for partial
8808 DIEs that may be inlined.
8809 (new_symbol_full): Add inlined subroutines to the current
8810 scope.
8811 (write_psymtabs_to_index): Bump version number.
8812 (dwarf2_read_index): Read only version 6 indices unless
8813 use_deprecated_index_sections is set.
8814 * linespec.c (symbol_and_data_callback): New structure.
8815 (iterate_inline_only): New function.
8816 (iterate_over_all_matching_symtabs): New argument
8817 "include_inline". If nonzero, also call the callback for
8818 symbols representing inlined subroutines.
8819 (lookup_prefix_sym): Pass extra argument to the above.
8820 (find_function_symbols): Likewise.
8821 (add_matching_symbols_to_info): Likewise.
8822 * NEWS: Mention that GDB can now set breakpoints on inlined
8823 functions.
8824
8825 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8826
8827 * p-typeprint.c (pascal_type_print_method_args):
8828 Fix display of parameter of methods.
8829
8830 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8831
8832 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8833 Add missing prototype.
8834
8835 2012-03-16 Yao Qi <yao@codesourcery.com>
8836 Jan Kratochvil <jan.kratochvil@redhat.com>
8837
8838 Fix false compilation warning.
8839 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8840
8841 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8842 Pedro Alves <pedro@codesourcery.com>
8843
8844 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8845 (arm_register_g_packet_guesses): New function.
8846 (arm_gdbarch_init): Don't force a target description with
8847 registers when the executable is detected as M-profile. Instead
8848 set gdbarch->tdep->is_m. Register `g' packet guesses.
8849 (_initialize_arm_tdep): Initialize the new target description.
8850 * features/arm-with-m-fpa-layout.xml: New description.
8851 * features/arm-with-m-fpa-layout.c: New, generated.
8852
8853 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8854
8855 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8856 Update function description.
8857 (insert_bp_location): Do not wipe bl->target_info out.
8858 * mem-break.c: #include "gdb_string.h".
8859 (default_memory_insert_breakpoint): Do not call target_read_memory
8860 with a pointer to the breakpoint's shadow_contents buffer. Use
8861 a local buffer instead.
8862 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8863
8864 2012-03-15 Tom Tromey <tromey@redhat.com>
8865
8866 * NEWS: Mention "info vtbl", not "info vtable".
8867 * cp-support.c (info_vtbl_command): Fix comment.
8868 (_initialize_cp_support): Fix text.
8869
8870 2012-03-15 Tom Tromey <tromey@redhat.com>
8871
8872 * cp-valprint.c (cp_print_value_fields): Use
8873 print_function_pointer_address for vtable slot.
8874
8875 2012-03-15 Tom Tromey <tromey@redhat.com>
8876
8877 * gnu-v3-abi.c (struct value_and_voffset): New.
8878 (hash_value_and_voffset, eq_value_and_voffset)
8879 (compare_value_and_voffset, compute_vtable_size)
8880 (print_one_vtable, gnuv3_print_vtable): New functions.
8881 (init_gnuv3_ops): Initialize 'print_vtable' field.
8882 * cp-support.c (info_vtbl_command): New function.
8883 (_initialize_cp_support): Add "info vtbl".
8884 * cp-abi.h (cplus_print_vtable): Declare.
8885 (struct cp_abi_ops) <print_vtable>: New field.
8886 * cp-abi.c (cplus_print_vtable): New function.
8887 * NEWS: Update.
8888
8889 2012-03-15 Tom Tromey <tromey@redhat.com>
8890
8891 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8892 iterate_over_symbols.
8893
8894 2012-03-14 Doug Evans <dje@google.com>
8895
8896 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8897 DW_OP_GNU_parameter_ref.
8898
8899 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8900
8901 Fix double prompt of 'interpreter-exec mi'.
8902 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8903 (mi_interpreter_resume): use it.
8904 (mi_execute_command_input_handler): New function.
8905 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8906 mi_execute_command_input_handler.
8907
8908 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8909
8910 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8911 prototype.
8912 (darwin_debug_port_info): Make static.
8913 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8914 * machoread.c (_initialize_machoread): Add prototype.
8915 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8916 (i386_darwin_set_control, i386_darwin_get_control)
8917 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8918 i386_darwin_get_status, i386_darwin_get_control):
8919 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8920
8921 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8922
8923 * ax-gdb.c (gen_usual_unary): Remove special handling of
8924 enum and bool types.
8925
8926 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8927
8928 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8929
8930 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8931
8932 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8933
8934 2012-03-13 Chris January <chris.january@allinea.com>
8935
8936 * aix-thread.c (fill_sprs): Store the floating point registers
8937 at the correct offsets into vals.
8938
8939 2012-03-13 Doug Evans <dje@google.com>
8940
8941 * NEWS: Mention symbol-reloading has been deleted.
8942 * symfile.c (symbol_reloading): Delete.
8943 (show_symbol_reloading): Delete.
8944 (_initialize_symfile): Delete set/show symbol-reloading.
8945
8946 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8947 read_in_chain until we have successfully read it in.
8948 (load_full_comp_unit): Ditto.
8949 (read_signatured_type): Add comment.
8950
8951 2012-03-13 Chris January <chris.january@allinea.com>
8952
8953 * stabsread.c (fix_common_block): Change type of valu argument
8954 to CORE_ADDR.
8955
8956 2012-03-13 Chris January <chris.january@allinea.com>
8957
8958 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8959 instruction.
8960
8961 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8962
8963 * common/linux-procfs.c (linux_proc_get_int): New, from
8964 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8965 field.
8966 (linux_proc_get_tgid): Only call linux_proc_get_int.
8967 (linux_proc_get_tracerpid): New.
8968 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8969 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8970 linux_proc_pid_has_state.
8971 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8972 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8973 (linux_ptrace_attach_warnings): New.
8974 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8975 New declaration.
8976 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8977 (linux_nat_attach): New variables ex, buffer, message and message_s.
8978 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8979
8980 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8981
8982 * Makefile.in (linux-ptrace.o): New.
8983 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8984 from linux-nat.c.
8985 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8986 * common/linux-ptrace.c: New file.
8987 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8988 * config/arm/linux.mh: Likewise.
8989 * config/i386/linux.mh: Likewise.
8990 * config/i386/linux64.mh: Likewise.
8991 * config/ia64/linux.mh: Likewise.
8992 * config/m32r/linux.mh: Likewise.
8993 * config/m68k/linux.mh: Likewise.
8994 * config/mips/linux.mh: Likewise.
8995 * config/pa/linux.mh: Likewise.
8996 * config/powerpc/linux.mh: Likewise.
8997 * config/powerpc/ppc64-linux.mh: Likewise.
8998 * config/powerpc/spu-linux.mh: Likewise.
8999 * config/s390/s390.mh: Likewise.
9000 * config/sparc/linux.mh: Likewise.
9001 * config/sparc/linux64.mh: Likewise.
9002 * config/xtensa/linux.mh: Likewise.
9003 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9004 common/linux-procfs.c.
9005 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9006
9007 2012-03-13 Hui Zhu <teawater@gmail.com>
9008 Pedro Alves <palves@redhat.com>
9009
9010 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9011 CREATE_BREAKPOINT_FLAGS_INSERTED.
9012 (create_breakpoint_sal, create_breakpoints_sal)
9013 (base_breakpoint_create_breakpoints_sal)
9014 (tracepoint_create_breakpoints_sal)
9015 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9016 down.
9017 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9018 (ftrace_command, strace_command): Adjust.
9019 (create_tracepoint_from_upload): Pass
9020 CREATE_BREAKPOINT_FLAGS_INSERTED.
9021 * breakpoint.h (enum breakpoint_create_flags): New.
9022 (create_breakpoint): New flags parameter.
9023 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9024 * python/py-breakpoint.c (bppy_init): Adjust.
9025 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9026 * spu-tdep.c (spu_catch_start): Adjust.
9027
9028 2012-03-13 Pedro Alves <palves@redhat.com>
9029 Hui Zhu <teawater@gmail.com>
9030 Yao Qi <yao@codesourcery.com>
9031
9032 * remote.c (struct remote_state): New field `starting_up'.
9033 (remote_start_remote): Set and clear it.
9034 (remote_can_download_tracepoint): If starting up, return false.
9035
9036 2012-03-13 Yao Qi <yao@codesourcery.com>
9037
9038 * inferior.h (struct inferior): Remove fields any_syscall_count,
9039 syscalls_counts and total_syscalls_count. Move them to new
9040 struct catch_syscall_inferior_data in breakpoint.c.
9041 * breakpoint.c: Call DEF_VEC_I(int).
9042 (struct catch_syscall_inferior_data): New.
9043 (get_catch_syscall_inferior_data): New.
9044 (catch_syscall_inferior_data_cleanup): New.
9045 (insert_catch_syscall): Update to access data in
9046 struct catch_syscall_inferior_data.
9047 (insert_catch_syscall): Likewise.
9048 (remove_catch_syscall): Likewise.
9049 (remove_catch_syscall): Likewise.
9050 (is_syscall_catchpoint_enabled): Likewise.
9051 (add_catch_command): Likewise.
9052 (_initialize_breakpoint): Register cleanup.
9053 * breakpoint.h: Removed DEF_VEC_I(int).
9054 * dwarf2loc.c: Call DEF_VEC_I(int).
9055 * mi/mi-main.c: Likewise.
9056
9057 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9058
9059 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9060
9061 2012-03-12 Chris January <chris.january@allinea.com>
9062
9063 * aix-thread.c (_initialize_aix_thread): Add prototype.
9064 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9065 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9066
9067 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9068
9069 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9070 include of "amd64-nat.h".
9071
9072 2012-03-12 Tom Tromey <tromey@redhat.com>
9073
9074 * buildsym.c (record_pending_block): Now static.
9075 * buildsym.h: (record_pending_block): Remove.
9076
9077 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9078
9079 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9080
9081 2012-03-09 Tom Tromey <tromey@redhat.com>
9082
9083 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9084 producer_is_gxx_lt_4_6>: New fields.
9085 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9086
9087 2012-03-09 Tom Tromey <tromey@redhat.com>
9088
9089 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9090
9091 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9092
9093 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9094 prototype.
9095
9096 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9097
9098 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9099
9100 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9101
9102 Fix -Wmissing-prototypes build.
9103 * arm-linux-nat.c (get_thread_id): Make it static.
9104 * xtensa-linux-nat.c (get_thread_id): Likewise.
9105
9106 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9107
9108 * server.c (process_point_options): If a conditional expression
9109 is found, only print a message if remote_debug is nonzero.
9110
9111 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9112
9113 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9114 of internal error for unknown/unsupported types.
9115
9116 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9117
9118 Fix CU relative vs. absolute DIE offsets.
9119 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9120 offset to offset_in_cu.
9121 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9122 TYPE_OFFSET.
9123 (dwarf2_fetch_die_location_block): Rename parameter offset to
9124 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9125
9126 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9127
9128 * libunwind-frame.c: Rename to ...
9129 * ia64-libunwind-tdep.c: ... here.
9130 * libunwind-frame.h: Rename to ...
9131 * ia64-libunwind-tdep.h: ... here.
9132 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9133 ia64-libunwind-tdep.h.
9134 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9135 * README (--with-libunwind): Rename to ...
9136 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9137 * config.in: Regenerate.
9138 * configure: Regenerate.
9139 * configure.ac: New option --with-libunwind-ia64, make the
9140 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9141 Remove AC_DEFINE for HAVE_LIBUNWIND.
9142 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9143 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9144 Rename libunwind-frame in the general comment.
9145 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9146 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9147 Move forward declarations inside #ifndef. Rename libunwind-frame in
9148 the general comment.
9149 * ia64-tdep.c: Rename libunwind-frame.h #include to
9150 ia64-libunwind-tdep.h.
9151 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9152 (ia64_libunwind_descr): Rename libunwind-frame to
9153 ia64-libunwind-tdep in these function comments.
9154 * ia64-tdep.h: Rename libunwind-frame.h #include to
9155 ia64-libunwind-tdep.h.
9156 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9157 ia64-libunwind-tdep in that data comment.
9158
9159 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9160
9161 * libunwind-frame.h (struct frame_unwind): New declaration.
9162
9163 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9164
9165 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9166 "set breakpoint condition-evaluation" command.
9167
9168 2012-03-08 Tristan Gingold <gingold@adacore.com>
9169
9170 * sparc-stub.c: Move to stubs/
9171 * sh-stub.c: Likewise.
9172 * m68k-stub.c: Likewise.
9173 * m32r-stub.c: Likewise.
9174 * i386-stub.c: Likewise.
9175
9176 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9177
9178 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9179 linux_get_siginfo_type.
9180
9181 * m68klinux-nat.c: Include "gdb_proc_service.h".
9182 (PTRACE_GET_THREAD_AREA): Define.
9183 (ps_get_thread_area): New function.
9184
9185 2012-03-08 Yao Qi <yao@codesourcery.com>
9186
9187 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9188 `xsnprintf'.
9189 (remote_query_attached): Likewise.
9190 (remote_static_tracepoint_marker_at): Likewise.
9191 (remote_set_permissions): Likewise.
9192 (remote_detach_1, extended_remote_attach_1): Likewise.
9193 (send_g_packet, remote_vkill): Likewise.
9194 (extended_remote_disable_randomization): Likewise.
9195 (remote_add_target_side_condition): Likewise.
9196 (remote_insert_breakpoint): Likewise.
9197 (remote_remove_breakpoint): Likewise.
9198 (remote_insert_watchpoint): Likewise.
9199 (remote_remove_watchpoint): Likewise.
9200 (remote_insert_hw_breakpoint): Likewise.
9201 (remote_insert_hw_breakpoint): Likewise.
9202 (remote_remove_hw_breakpoint): Likewise.
9203 (remote_download_command_source): Likewise.
9204 (remote_download_tracepoint): Likewise.
9205 (remote_download_trace_state_variable): Likewise.
9206 (remote_disable_tracepoint): Likewise.
9207 (remote_trace_set_readonly_regions): Likewise.
9208 (remote_get_tracepoint_status): Likewise.
9209 (remote_trace_find): Likewise.
9210 (remote_get_trace_state_variable_value): Likewise.
9211 (remote_set_disconnected_tracing): Likewise.
9212 (remote_set_circular_trace_buffer): Likewise.
9213 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9214 (remote_use_agent): Likewise.
9215 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9216 Update callers.
9217
9218 2012-03-07 Pedro Alves <palves@redhat.com>
9219
9220 * NEWS: Mention QProgramSignals.
9221 * inferior.h (update_signals_program_target): Declare.
9222 * infrun.c: (update_signals_program_target): New.
9223 (handle_command): Update the target of the new program signals
9224 array changes.
9225 * remote.c (PACKET_QProgramSignals): New enum.
9226 (last_program_signals_packet): New global.
9227 (remote_program_signals): New.
9228 (remote_start_remote): Update the target with the program signals
9229 list.
9230 (remote_protocol_features): Add entry for QPassSignals.
9231 (remote_open_1): Free anc clear last_program_signals_packet.
9232 (init_remote_ops): Install remote_program_signals.
9233 * target.c (update_current_target): Adjust.
9234 (target_program_signals): New.
9235 * target.h (struct target_ops) <to_program_signals>: New field.
9236 (target_program_signals): Declare.
9237
9238 2012-03-07 Pedro Alves <palves@redhat.com>
9239
9240 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9241 extensions.
9242
9243 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9244
9245 * m68klinux-nat.c (getregs_supplies): Make static.
9246 (getfpregs_supplies): Likewise.
9247 (have_ptrace_getregs): Likewise.
9248
9249 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9250
9251 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9252 in call to get_die_type_at_offset.
9253
9254 2012-03-06 Stan Shebs <stan@codesourcery.com>
9255
9256 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9257 * mi/mi-cmd-disas.c: Ditto.
9258 * mi/mi-cmd-env.c: Ditto.
9259 * mi/mi-cmd-file.c: Ditto.
9260 * mi/mi-cmd-stack.c: Ditto.
9261 * mi/mi-cmd-target.c: Ditto.
9262 * mi/mi-cmd-var.c: Ditto.
9263 * mi/mi-cmds.c: Ditto.
9264 * mi/mi-cmds.h: Ditto.
9265 * mi/mi-console.c: Ditto.
9266 * mi/mi-getopt.c: Ditto.
9267 * mi/mi-getopt.h: Ditto.
9268 * mi/mi-interp.c: Ditto.
9269 * mi/mi-main.c: Ditto.
9270 * mi/mi-out.c: Ditto.
9271 * mi/mi-parse.c: Ditto.
9272 * mi/mi-parse.h: Ditto.
9273 * mi/mi-symbol-cmds.c: Ditto.
9274
9275 * mi/mi-getopt.h: Move mi_opt struct up.
9276 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9277 return.
9278 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9279
9280 2012-03-06 Tom Tromey <tromey@redhat.com>
9281
9282 * proc-service.c (ps_pglobal_lookup): Set the current program
9283 space.
9284
9285 2012-03-06 Pedro Alves <palves@redhat.com>
9286
9287 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9288
9289 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9290
9291 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9292
9293 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9294
9295 Code cleanup.
9296 * common/linux-osdata.c (linux_common_core_of_thread): New function
9297 comment.
9298 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9299 call by linux_common_core_of_thread.
9300 (linux_nat_core_of_thread_1): Remove.
9301 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9302 * linux-thread-db.c: Include linux-osdata.h.
9303 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9304 linux_common_core_of_thread.
9305
9306 2012-03-05 Tom Tromey <tromey@redhat.com>
9307
9308 * value.c (value_primitive_field): Don't fetch contents for
9309 non-virtual bases.
9310
9311 2012-03-05 Tom Tromey <tromey@redhat.com>
9312
9313 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9314
9315 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9316
9317 * s390-nat.c: Include "gregset.h".
9318
9319 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9320
9321 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9322 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9323 (libunwind_load): New variable so_error, use it for dlerror. Try to
9324 load also LIBUNWIND_SO_7.
9325
9326 2012-03-05 Pedro Alves <palves@redhat.com>
9327
9328 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9329 is not NULL, and remove resulting dead code.
9330
9331 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9332
9333 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9334 prologue to sh_analyze_prologue.
9335 (sh_analyze_prologue): Make better use of such an upper limit, and
9336 generally be more cautious about accessing memory.
9337
9338 2012-03-05 Tom Tromey <tromey@redhat.com>
9339
9340 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9341 _initialize_ia64_hpux_tdep.
9342
9343 2012-03-05 Pedro Alves <palves@redhat.com>
9344
9345 PR gdb/13766
9346
9347 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9348 the register state is clear, supply explicit zero, instead of
9349 marking the register unavailable.
9350
9351 2012-03-05 Tristan Gingold <gingold@adacore.com>
9352
9353 * NEWS: Mention OpenVMS ia64 new target.
9354
9355 2012-03-05 Tristan Gingold <gingold@adacore.com>
9356
9357 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9358 (ia64_unw_accessors, ia64_unw_rse_accessors)
9359 (ia64_libunwind_descr): Declare.
9360 * ia64-vms-tdep.c: New file.
9361 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9362 (ia64_libunwind_descr): Make them public.
9363 * configure.tgt: Add ia64-*-*vms*.
9364 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9365 (ALLDEPFILES): Add ia64-vms-tdep.c
9366
9367 2012-03-05 Tristan Gingold <gingold@adacore.com>
9368
9369 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9370 * remote.c (PACKET_qXfer_uib): New enum value.
9371 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9372 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9373 (_initialize_remote): Call add_packet_config_cmd for
9374 xfer:uib packet.
9375
9376 2012-03-05 Tristan Gingold <gingold@adacore.com>
9377
9378 * osabi.c (gdb_osabi_names): Add OpenVMS.
9379 (generic_elf_osabi_sniffer): Likewise.
9380 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9381
9382 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 Removed unused code.
9385 * libunwind-frame.c (libunwind_frame_unwind)
9386 (libunwind_frame_base_address): Remove.
9387 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9388
9389 2012-03-04 Yao Qi <yao@codesourcery.com>
9390
9391 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9392 remove trailing new line.
9393 (agent_run_command, agent_run_command): Add _ markup.
9394 (agent_capability_check): Likewise.
9395
9396 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9397
9398 * breakpoint.c (set_condition_evaluation_mode): Set
9399 CONDITION_EVALUATION_MODE unconditionally.
9400
9401 2012-03-03 Yao Qi <yao@codesourcery.com>
9402
9403 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9404 * common/agent.h: Update declaration.
9405 * inf-child.c (inf_child_use_agent): New.
9406 (inf_child_can_use_agent): New.
9407 (inf_child_target): Initialize fields `to_use_agent'
9408 and `to_can_use_agent'.
9409 * agent.c (agent_new_objfile): New.
9410 (_initialize_agent): Add agent_new_objfile to new_objfile
9411 observer.
9412
9413 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9414 New.
9415 (linux_target_install_ops): Initialize field
9416 `to_static_tracepoint_markers_by_strid'.
9417 * remote.c (free_current_marker): Move it to ...
9418 * tracepoint.c (free_current_marker): ... here. New.
9419 (cleanup_target_stop): New.
9420 * tracepoint.h: Declare free_current_marker.
9421 * NEWS: Add one entry about `info static-tracepoint-marker'.
9422
9423 2012-03-03 Yao Qi <yao@codesourcery.com>
9424
9425 * common/agent.c (agent_loaded_p): New.
9426 (agent_look_up_symbols): New global.
9427 * common/agent.h: Declare agent_loaded_p.
9428
9429 2012-03-03 Yao Qi <yao@codesourcery.com>
9430
9431 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9432 (agent_capability_check, agent_capability_invalidate): New.
9433 (symbol_list): New array element.
9434 * common/agent.h (enum agent_capa): New.
9435 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9436
9437 2012-03-03 Yao Qi <yao@codesourcery.com>
9438
9439 * target.h (struct target_ops) <to_use_agent>: New field.
9440 (struct target_ops) <to_can_use_agent>: New field.
9441 (target_use_agent, target_can_use_agent): New macro.
9442 * target.c (update_current_target): Update.
9443 * remote.c: New enum `PACKET_QAgent'.
9444 (remote_protocol_features): Add a new element.
9445 (remote_use_agent, remote_can_use_agent): New.
9446 (init_remote_ops): Initialize field `can_use_agent' with
9447 remote_can_use_agent. Intiailize field `use_agent' with
9448 remote_use_agent.
9449 * common/agent.c (use_agent): New global.
9450 * common/agent.h: Declare it.
9451 * tracepoint.c (info_static_tracepoint_markers_command): Add
9452 comment.
9453 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9454 (COMMON_OBS): Add common/agent.o and agent.o
9455 (common-agent.o): New rule.
9456 * agent.c: New.
9457
9458 2012-03-03 Yao Qi <yao@codesourcery.com>
9459
9460 * common/agent.c: New.
9461 * common/agent.h: New.
9462 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9463 AC_CHECK_HEADERS.
9464 * configure, configh.in: Regenerated.
9465
9466 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9467
9468 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9469 unless it exists for this architecture.
9470
9471 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9472
9473 * language.h (struct language_defn): New "method" la_read_var_value.
9474 * findvar.c: #include "language.h".
9475 (default_read_var_value): Renames read_var_value. Rewrite
9476 function description.
9477 (read_var_value): New function.
9478 * value.h (default_read_var_value): Add prototype.
9479 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9480 New functions.
9481 (ada_language_defn): Add entry for la_read_var_value.
9482 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9483 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9484 language_defn structures to add entry for new la_read_var_value
9485 field.
9486
9487 2012-03-02 Tom Tromey <tromey@redhat.com>
9488 Pedro Alves <palves@redhat.com>
9489
9490 PR breakpoints/13776:
9491 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9492 breakpoints.
9493 (delete_longjmp_breakpoint_at_next_stop): New.
9494 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9495 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9496 before deleting the inferior. Add comments.
9497 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9498 breakpoints immediately, but only on next stop. Move that code
9499 next to where we mark other breakpoints for deletion.
9500
9501 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9502
9503 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9504 marker.
9505 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9506 violation.
9507
9508 2012-03-02 Pedro Alves <palves@redhat.com>
9509
9510 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9511
9512 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9513
9514 Fix -Wmissing-prototypes build.
9515 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9516 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9517 (gdbsim_has_memory): Likewise.
9518
9519 2012-03-02 Yao Qi <yao@codesourcery.com>
9520
9521 Fix -Wmissing-prototypes build.
9522 * charset.c (phony_iconv_open): Make static.
9523 (phony_iconv_close, phony_iconv): Likewise.
9524 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9525 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9526 prototype.
9527 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9528 * ser-mingw.c (create_select_thread): Make static.
9529 * windows-termcap.c (tgetent): New prototype.
9530 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9531
9532 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9533
9534 Fix -Wmissing-prototypes build.
9535 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9536 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9537 (_initialize_loadable): New prototypes.
9538
9539 2012-03-02 Doug Evans <dje@google.com>
9540
9541 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9542 abbrev table, read_comp_unit will do it.
9543
9544 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9545
9546 Fix -Wmissing-prototypes build.
9547 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9548 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9549 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9550 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9551 (_initialize_arm_symbian_tdep): New prototype.
9552 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9553 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9554 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9555 static.
9556 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9557 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9558 prototype.
9559 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9560 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9561 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9562 static.
9563 * moxie-tdep.c (moxie_process_record): Likewise.
9564 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9565 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9566 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9567 (_initialize_rl78_tdep): New prototype.
9568 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9569 (_initialize_rx_tdep): New prototype.
9570 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9571 (_initialize_darwin_solib): New prototype.
9572 * solib-spu.c: Include solib-spu.h.
9573 (_initialize_spu_solib): New prototype.
9574 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9575 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9576 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9577 (tic6x_software_single_step): Make it static.
9578 (_initialize_tic6x_tdep): New prototype.
9579
9580 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9581
9582 Fix -Wmissing-prototypes build.
9583 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9584 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9585
9586 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9587
9588 Fix -Wmissing-prototypes build.
9589 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9590 (frv_have_stopped_data_address): Remove.
9591
9592 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9593
9594 Fix -Wmissing-prototypes build.
9595 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9596 * sh-tdep.c: Include sh64-tdep.h.
9597 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9598 * sh64-tdep.c: Include sh64-tdep.h.
9599 * sh64-tdep.h: New file.
9600
9601 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9602
9603 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9604
9605 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9606
9607 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9608 sp_regnum once the gdbarch_init_osabi hook has been called.
9609
9610 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9611
9612 * mips-tdep.c (mips32_bc1_pc): New function.
9613 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9614 BPOSGE32 and BPOSGE64 instructions.
9615 (deal_with_atomic_sequence): Likewise.
9616 (mips32_instruction_has_delay_slot): Likewise.
9617
9618 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9619 Chris Dearman <chris@mips.com>
9620 Maciej W. Rozycki <macro@codesourcery.com>
9621 Joseph Myers <joseph@codesourcery.com>
9622
9623 * features/mips-dsp.xml: New file.
9624 * features/mips64-dsp.xml: New file.
9625 * features/mips-dsp-linux.xml: New file.
9626 * features/mips64-dsp-linux.xml: New file.
9627 * features/Makefile (WHICH): Add mips-dsp-linux and
9628 mips64-dsp-linux.
9629 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9630 * features/mips-dsp-linux.c: New file.
9631 * features/mips64-dsp-linux.c: New file.
9632 * regformats/mips-dsp-linux.dat: New file.
9633 * regformats/mips64-dsp-linux.dat: New file.
9634 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9635 registers.
9636 (mips64_linux_register_addr): Likewise.
9637 (mips64_linux_regsets_fetch_registers): Likewise.
9638 (mips64_linux_regsets_store_registers): Likewise.
9639 (mips64_linux_fetch_registers): Update call to
9640 mips64_linux_regsets_fetch_registers.
9641 (mips64_linux_store_registers): Update call to
9642 mips64_linux_regsets_store_registers.
9643 (mips_linux_read_description): Probe for DSP registers.
9644 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9645 and initialize_tdesc_mips64_dsp_linux.
9646 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9647 Remove padding of no longer used embedded register slots.
9648 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9649 (MIPS_RESTART_REGNUM): Redefine enum value.
9650 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9651 strings.
9652 (mips_tx39_reg_names): Likewise.
9653 (mips_linux_reg_names): New array of register names for Linux
9654 targets.
9655 (mips_register_name): Check for a null pointer in
9656 mips_processor_reg_names and return an empty string.
9657 (mips_register_type): Exclude embedded registers for the IRIX
9658 and Linux ABIs.
9659 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9660 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9661 DSP registers.
9662 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9663 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9664 (mips_gdbarch_init): Likewise. Initialize internal register
9665 indices for the Linux ABI. Use dynamic numbers to refer to
9666 registers, as applicable, while parsing the target description.
9667 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9668
9669 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9670
9671 * frame.h (read_frame_register_unsigned): Fix typo in function
9672 description.
9673
9674 2012-03-01 Pedro Alves <palves@redhat.com>
9675
9676 * jit-reader.in [!__cplusplus]
9677 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9678
9679 2012-03-01 Pedro Alves <palves@redhat.com>
9680
9681 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9682 * configure: Regenerate.
9683
9684 2012-03-01 Pedro Alves <palves@redhat.com>
9685
9686 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9687 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9688 (ftrace_command, strace_command): Make static.
9689 * d-lang.c (_initialize_d_language): Declare.
9690 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9691 * dwarf2loc.c (_initialize_dwarf2loc):
9692 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9693 * exec.c (exec_get_section_table): Make static.
9694 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9695 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9696 * inferior.c (remove_inferior_command, add_inferior_command)
9697 (clone_inferior_command): Make static.
9698 * linux-nat.c (linux_nat_thread_address_space)
9699 (linux_nat_core_of_thread): Make static.
9700 * linux-tdep.c (_initialize_linux_tdep): Declare.
9701 * objc-lang.c (_initialize_objc_lang): Declare.
9702 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9703 Make static.
9704 (_initialize_opencl_language): Declare.
9705 * record.c (_initialize_record): Declare.
9706 * remote.c (demand_private_info, remote_get_tib_address)
9707 (remote_supports_cond_tracepoints)
9708 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9709 Make static.
9710 * skip.c (_initialize_step_skip): Declare.
9711 * symtab.c (skip_prologue_using_lineinfo): Make static.
9712 * tracepoint.c (delete_trace_state_variable)
9713 (trace_variable_command, delete_trace_variable_command)
9714 (get_uploaded_tsv, find_matching_tracepoint_location)
9715 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9716 Make static.
9717 * value.c (pack_unsigned_long): Make static.
9718 * varobj.c (varobj_ensure_python_env): Make static.
9719 * windows-tdep.c (_initialize_windows_tdep): Declare.
9720 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9721
9722 2012-03-01 Pedro Alves <palves@redhat.com>
9723
9724 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9725 gdbarch parameter.
9726 (linux_init_abi): Install it as has_shared_address_space gdbarch
9727 callback.
9728
9729 2012-03-01 Pedro Alves <palves@redhat.com>
9730
9731 * observer.c (observer_test_first_notification_function)
9732 (observer_test_second_notification_function)
9733 (observer_test_third_notification_function): Add declarations.
9734
9735 2012-03-01 Pedro Alves <palves@redhat.com>
9736
9737 * common/signals.c (default_target_signal_to_host)
9738 (default_target_signal_from_host): Move ...
9739 * arch-utils.c: ... here.
9740 * arch-utils.h (default_target_signal_to_host)
9741 (default_target_signal_from_host): Declare.
9742
9743 * common/signals.c (target_signal_from_command): Move ...
9744 * infrun.c: ... here.
9745 * inferior.h (target_signal_from_command): Declare.
9746 * target.h (target_signal_from_command)
9747 (default_target_signal_from_host, default_target_signal_to_host):
9748 Delete declarations.
9749
9750 * common/signals.c (_initialize_signals): Delete.
9751
9752 2012-03-01 Pedro Alves <palves@redhat.com>
9753
9754 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9755 both __cplusplus and !__cplusplus.
9756
9757 2012-03-01 Pedro Alves <palves@redhat.com>
9758
9759 * psymtab.c (find_and_open_source): Delete declaration.
9760 * source.c (find_and_open_source): Move comment ...
9761 * source.h (find_and_open_source): ... to this new declaration.
9762
9763 2012-03-01 Pedro Alves <palves@redhat.com>
9764
9765 * inline-frame.c: Include inline-frame.h.
9766
9767 2012-03-01 Pedro Alves <palves@redhat.com>
9768
9769 * tui/tui-data.c (set_gen_win_origin): Delete.
9770 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9771 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9772
9773 2012-03-01 Pedro Alves <palves@redhat.com>
9774
9775 * remote.c (encode_actions): Delete declaration.
9776 * tracepoint.c (encode_actions): Make extern.
9777 * tracepoint.h (encode_actions): Declare.
9778
9779 2012-03-01 Pedro Alves <palves@redhat.com>
9780
9781 * python/py-breakpoint.c: Include python.h.
9782 * python/py-continueevent.c (create_continue_event_object): Make
9783 static.
9784 * python/py-lazy-string.c (stpy_get_type): Make static.
9785 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9786 Make static.
9787 * python/py-utils.c (unicode_to_target_python_string): Make
9788 static.
9789 * python/py-value.c: Include python.h.
9790
9791 2012-03-01 Pedro Alves <palves@redhat.com>
9792
9793 * inferior.c (delete_threads_of_inferior): Delete.
9794
9795 2012-03-01 Pedro Alves <palves@redhat.com>
9796
9797 Import fallback definitions from glibc.
9798
9799 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9800 ps_prochandle): Forward declare.
9801 (ps_err_e): Use glibc's comments.
9802 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9803 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9804 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9805 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9806 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9807 (struct ps_prochandle): Adjust comment.
9808
9809 2012-03-01 Pedro Alves <palves@redhat.com>
9810
9811 * ada-lang.c (ada_modulus_from_name): Delete.
9812 * ada-lex.l (lexer_init): Make static.
9813
9814 2012-03-01 Pedro Alves <palves@redhat.com>
9815
9816 PR gdb/13767
9817
9818 * frame.c (read_frame_register_unsigned): New.
9819 * frame.h (read_frame_register_unsigned): Declare.
9820 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9821 Handle it.
9822 (print_i387_control_word): New parameter `control_p'. Handle it.
9823 (i387_print_float_info): Handle unavailable float registers.
9824
9825 2012-03-01 Keith Seitz <keiths@redhat.com>
9826
9827 * linespec.c (decode_line_2): Sort the list of methods
9828 alphabetically before presenting the user with a selection
9829 menu.
9830
9831 2012-03-01 Doug Evans <dje@google.com>
9832
9833 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9834 has_namespace_info.
9835 (dwarf2_read_abbrevs): Remove corresponding initialization.
9836
9837 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9838
9839 * NEWS: Mention new python command class gdb.COMMAND_USER.
9840 * cli/cli-cmds.c (show_user): Print error when used on a python
9841 command.
9842 (init_cli_cmds): Update documentation strings for "show user" and
9843 "set/show max-user-call-depth" to clarify that it does not apply to
9844 python commands.
9845 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9846 error check.
9847 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9848 gdb python api.
9849 * top.c (execute_command): Only execute a user-defined command as a
9850 legacy macro if c->user_commands is set.
9851
9852 2012-03-01 Tom Tromey <tromey@redhat.com>
9853
9854 * valprint.h (struct generic_val_print_decorations): New.
9855 (generic_val_print): Declare.
9856 * valprint.c (generic_val_print): New function.
9857 * p-valprint.c (p_decorations): New global.
9858 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9859 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9860 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9861 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9862 * m2-valprint.c (m2_decorations): New global.
9863 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9864 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9865 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9866 TYPE_CODE_ERROR>: Call generic_val_print.
9867 * f-valprint.c (f_decorations): New global.
9868 (f_val_print): Use print_function_pointer_address.
9869 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9870 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9871 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9872 generic_val_print.
9873 * c-valprint.c (c_decorations): New global.
9874 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9875 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9876 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9877 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9878 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9879 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9880 case.
9881
9882 2012-03-01 Tom Tromey <tromey@redhat.com>
9883
9884 * valprint.c (val_print): Update.
9885 * p-valprint (pascal_val_print): Return void.
9886 * p-lang.h (pascal_val_print): Return void.
9887 * m2-valprint.c (m2_val_print): Return void.
9888 * m2-lang.h (m2_val_print): Return void.
9889 * language.h (struct language_defn) <la_val_print>: Return void.
9890 * language.c (unk_lang_val_print): Return void.
9891 * jv-valprint.c (java_val_print): Return void.
9892 * jv-lang.h (java_val_print): Return void.
9893 * f-valprint.c (f_val_print): Return void.
9894 * f-lang.h (f_val_print): Return void.
9895 * d-valprint.c (d_val_print): Return void.
9896 (dynamic_array_type): Update.
9897 * d-lang.h (d_val_print): Return void.
9898 * c-valprint.c (c_val_print): Return void.
9899 * c-lang.h (c_val_print): Return void.
9900 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9901 void.
9902 * ada-lang.h (ada_val_print): Return void.
9903
9904 2012-03-01 Tom Tromey <tromey@redhat.com>
9905
9906 * value.h (val_print): Return void.
9907 * valprint.c (val_print): Return void.
9908
9909 2012-03-01 Tom Tromey <tromey@redhat.com>
9910
9911 * value.h (common_val_print): Return void.
9912 * valprint.c (common_val_print): Return void.
9913
9914 2012-03-01 Tom Tromey <tromey@redhat.com>
9915
9916 * value.h (value_print): Return void.
9917 * valprint.c (value_print): Return void.
9918 * p-valprint.c (pascal_value_print): Return void.
9919 * p-lang.h (pascal_value_print): Return void.
9920 * language.h (struct language_defn) <la_value_print>: Return
9921 void.
9922 * language.c (unk_lang_value_print): Return void.
9923 * jv-valprint.c (java_value_print): Return void.
9924 * jv-lang.h (java_value_print): Return void.
9925 * f-valprint.c (c_value_print): Don't declare.
9926 Include c-lang.h.
9927 * c-valprint.c (c_value_print): Return void.
9928 * c-lang.h (c_value_print): Return void.
9929 * ada-valprint.c (ada_value_print): Return void.
9930 * ada-lang.h (ada_value_print): Return void.
9931
9932 2012-03-01 Tom Tromey <tromey@redhat.com>
9933
9934 * value.c (value_primitive_field): Handle virtual base classes.
9935
9936 2012-03-01 Tom Tromey <tromey@redhat.com>
9937
9938 * gdbtypes.h (struct vbase): Remove.
9939
9940 2012-03-01 Tom Tromey <tromey@redhat.com>
9941
9942 * c-valprint.c (print_function_pointer_address): Move...
9943 * valprint.c: ... here. Make non-static.
9944 * m2-valprint.c (print_function_pointer_address): Remove.
9945 * valprint.h (print_function_pointer_address): Declare.
9946
9947 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9948
9949 * NEWS: Document the fact that one can provide a condition when
9950 creating an Ada exception catchpoint.
9951
9952 2012-03-01 Tom Tromey <tromey@redhat.com>
9953
9954 * valprint.c (val_print_type_code_flags): Fix placement of
9955 trailing brace.
9956
9957 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9958
9959 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9960 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9961 environment variable before calling update-copyright.
9962
9963 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9964
9965 * gnulib/extra/update-copyright: Update to the latest from
9966 gnulib's git repository.
9967 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9968 variable to 2 instead of 1.
9969
9970 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9971
9972 * varobj.c (c_value_of_variable): Remove dead code.
9973
9974 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9975
9976 * ada-lex.p (processId): Do not modify already encoded IDs.
9977 Update function documentation.
9978
9979 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9980
9981 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9982 "name" with "struct symbol *name_sym".
9983 * ada-exp.y (write_var_or_type): Update call to
9984 ada_find_renaming_symbol.
9985 "name" with "struct symbol *name_sym". Adjust Implementation
9986 accordingly. Adjust the function documentation.
9987
9988 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9989
9990 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9991 * ada-lang.c (ada_find_any_type): Add advance declaration.
9992 Make static. Replace ada_find_any_symbol by
9993 ada_find_any_type_symbol.
9994 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9995 Improve function description. Make static.
9996 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9997 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9998
9999 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10000
10001 * ada-lang.c (struct tag_args): Delete.
10002 (ada_get_tsd_type): Function body moved up in source file.
10003 (ada_tag_name_1, ada_tag_name_2): Delete.
10004 (ada_get_tsd_from_tag): New function.
10005 (ada_tag_name_from_tsd): New function.
10006 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10007 to determine the tag name.
10008
10009 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10010
10011 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10012 declaration.
10013 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10014 function.
10015
10016 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10017
10018 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10019
10020 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10021
10022 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10023 full searches.
10024
10025 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10026
10027 * ada-lang.c (constrained_packed_array_type): If there is a
10028 parallel XA type, use it to determine the array index type.
10029
10030 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10031
10032 * ada-valprint.c (ada_val_print_1): If our value is a reference
10033 to an array descriptor, dereference it before converting it
10034 to a simple array.
10035
10036 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10037
10038 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10039 creating fixed value.
10040 (ada_value_ind, ada_coerce_ref, assign_component)
10041 (ada_evaluate_subexp): Remove call to unwrap_value before
10042 call to ada_to_fixed_value.
10043
10044 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10045
10046 * ada-lang.c (to_fixed_array_type): Set result's type name.
10047
10048 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10049
10050 * ada-lang.c (catch_ada_exception_command_split): Add new
10051 argument cond_string. Add support for condition at end of
10052 "catch exception" commands.
10053 (ada_decode_exception_location): Add new argument cond_string.
10054 Update call to catch_ada_exception_command_split.
10055 (create_ada_exception_catchpoint): Add new argument cond_string.
10056 Set the breakpoint condition if needed.
10057 (catch_ada_exception_command): Update call to
10058 ada_decode_exception_location.
10059 (ada_decode_assert_location): Add function documentation.
10060 Add support for condition at end of "catch assert" command.
10061 (catch_assert_command): Update calls to ada_decode_assert_location
10062 and create_ada_exception_catchpoint.
10063
10064 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 Fix disp-step-syscall.exp: fork: single step over fork.
10067 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10068 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10069 comment, change parameters gdbarch and ptid to regcache. Remove
10070 parameter regcache, initialize gdbarch from regcache here.
10071 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10072 New functions.
10073 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10074 instead.
10075 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10076 'syscall'. Make the 'int' check more strict.
10077
10078 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10079
10080 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10081 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10082 (i386_linux_intx80_sysenter_syscall_record): ... here.
10083 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10084 Use the renamed function name.
10085
10086 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10087
10088 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10089 * breakpoint.c (until_break_command): Likewise.
10090 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10091 * infcall.c (call_function_by_hand): Likewise.
10092 * infcmd.c (finish_forward): Likewise.
10093 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10094
10095 2012-02-28 Tristan Gingold <gingold@adacore.com>
10096
10097 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10098 avoid variable assignments inside condition.
10099
10100 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10101
10102 Fix static analysis issue found by cppcheck.
10103 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10104 uninitialized BUF for size 2.
10105
10106 2012-02-27 Chris Dearman <chris@mips.com>
10107 Nathan Froyd <froydnj@codesourcery.com>
10108 Maciej W. Rozycki <macro@codesourcery.com>
10109
10110 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10111 (mips16_instruction_has_delay_slot): Likewise.
10112 (mips_segment_boundary): Likewise.
10113 (mips_adjust_breakpoint_address): Likewise.
10114 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10115
10116 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10117 Maciej W. Rozycki <macro@codesourcery.com>
10118
10119 * infrun.c (handle_inferior_event): Don't proceed through
10120 shared library trampolines if stepping at the machine
10121 instruction level.
10122
10123 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10124
10125 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10126 too.
10127
10128 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10129
10130 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10131 (sh_stub_unwind_sniffer): New functions.
10132 (sh_stub_unwind): New variable.
10133 (sh_gdbarch_init): Wire everything.
10134
10135 2012-02-27 Pedro Alves <palves@redhat.com>
10136
10137 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10138 (linux_nat_post_attach_wait): Adjust to use
10139 linux_proc_pid_is_stopped.
10140 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10141 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10142 based on pid_is_stopped from both linux-nat.c and
10143 gdbserver/linux-low.c, and renamed.
10144
10145 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10146
10147 * remote.c (remote_watchpoint_addr_within_range): New function.
10148 (init_remote_ops): Use it.
10149
10150 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10151
10152 * target.h (target_watchpoint_addr_within_range): Document macro.
10153
10154 2012-02-24 Pedro Alves <palves@redhat.com>
10155
10156 * stack.c (set_last_displayed_sal): Issue internal_error instead
10157 of warning, and issue it after clearing the last displayed sal.
10158
10159 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10160 Pedro Alves <palves@redhat.com>
10161
10162 * breakpoint.c (until_break_command): Install breakpoints after
10163 all frame manipulations.
10164
10165 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10166
10167 * remote.c (remote_supports_cond_breakpoints): New forward
10168 declaration.
10169 (remote_add_target_side_condition): New function.
10170 (remote_insert_breakpoint): Add target-side breakpoint
10171 conditional if supported.
10172 (remote_insert_hw_breakpoint): Likewise.
10173 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10174 hook.
10175
10176 * target.c (update_current_target): Inherit
10177 to_supports_evaluation_of_breakpoint_conditions.
10178 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10179
10180 * target.h (struct target_ops)
10181 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10182 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10183
10184 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10185 (condition_evaluation_both, condition_evaluation_auto,
10186 condition_evaluation_host, condition_evaluation_target,
10187 condition_evaluation_enums, condition_evaluation_mode_1,
10188 condition_evaluation_mode): New static globals.
10189 (translate_condition_evaluation_mode): New function.
10190 (breakpoint_condition_evaluation_mode): New function.
10191 (gdb_evaluates_breakpoint_condition_p): New function.
10192 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10193 (mark_breakpoint_modified): New function.
10194 (mark_breakpoint_location_modified): New function.
10195 (set_condition_evaluation_mode): New function.
10196 (show_condition_evaluation_mode): New function.
10197 (bp_location_compare_addrs): New function.
10198 (get_first_location_gte_addr): New helper function.
10199 (set_breakpoint_condition): Free condition bytecode if locations
10200 has become unconditional. Call mark_breakpoint_modified (...).
10201 (condition_command): Call update_global_location_list (1) for
10202 breakpoints.
10203 (breakpoint_xfer_memory): Use is_breakpoint (...).
10204 (is_breakpoint): New function.
10205 (parse_cond_to_aexpr): New function.
10206 (build_target_condition_list): New function.
10207 (insert_bp_location): Handle target-side conditional
10208 breakpoints and call build_target_condition_list (...).
10209 (update_inserted_breakpoint_locations): New function.
10210 (insert_breakpoint_locations): Handle target-side conditional
10211 breakpoints.
10212 (bpstat_check_breakpoint_conditions): Add comment.
10213 (bp_condition_evaluator): New function.
10214 (bp_location_condition_evaluator): New function.
10215 (print_breakpoint_location): Print information on where the condition
10216 will be evaluated.
10217 (print_one_breakpoint_location): Likewise.
10218 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10219 breakpoint location.
10220 (force_breakpoint_reinsertion): New functions.
10221 (update_global_location_list): Handle target-side breakpoint
10222 conditions.
10223 Reinsert locations that are already inserted if conditions have
10224 changed.
10225 (bp_location_dtor): Free agent expression bytecode.
10226 (disable_breakpoint): Call mark_breakpoint_modified (...).
10227 Call update_global_location_list (...) with parameter 1 for breakpoints.
10228 (disable_command): Call mark_breakpoint_location_modified (...).
10229 Call update_global_location_list (...) with parameter 1 for breakpoints.
10230 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10231 (enable_command): mark_breakpoint_location_modified (...).
10232 (_initialize_breakpoint): Update documentation and add
10233 condition-evaluation breakpoint subcommand.
10234
10235 * breakpoint.h: Include ax.h.
10236 (condition_list): New data structure.
10237 (condition_status): New enum.
10238 (bp_target_info) <cond_list>: New field.
10239 (bp_location) <condition_changed, cond_bytecode>: New fields.
10240 (is_breakpoint): New prototype.
10241
10242 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10243
10244 * remote.c (remote_state) <cond_breakpoints>: New field.
10245 (PACKET_ConditionalBreakpoints): New enum.
10246 (remote_cond_breakpoint_feature): New function.
10247 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10248 (remote_supports_cond_breakpoints): New function.
10249 (_initialize_remote): Add new packet configuration for
10250 target-side conditional breakpoints.
10251
10252 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10253
10254 * NEWS: Mention target-side conditional breakpoint support,
10255 new condition-evaluation breakpoint subcommand and remote
10256 packet extensions.
10257
10258 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10259
10260 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10261 number.
10262
10263 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10264
10265 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10266 (after_prologue): Remove.
10267
10268 2012-02-23 Tom Tromey <tromey@redhat.com>
10269
10270 * jv-valprint.c (java_val_print): Remove dead code.
10271
10272 2012-02-23 Tristan Gingold <gingold@adacore.com>
10273
10274 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10275 known_tasks_element and known_tasks_length fields.
10276 (read_known_tasks_array): Change argument type. Use pointer type
10277 and number of elements from DATA. Adjust.
10278 (read_known_tasks_list): Likewise.
10279 (get_known_tasks_addr): Remove.
10280 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10281 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10282 type and array length. Merge former get_known_tasks_addr code.
10283
10284 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10285
10286 PR backtrace/13716
10287 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10288 it after set_momentary_breakpoint.
10289
10290 2012-02-22 Sterling Augustine <saugustine@google.com>
10291
10292 PR 13689:
10293 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10294
10295 2012-02-22 Gary Benson <gbenson@redhat.com>
10296
10297 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10298 (find_slot_in_mapped_hash): Likewise.
10299
10300 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 PR build/13638
10303 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10304 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10305 * configure: Regenerate.
10306
10307 2012-02-21 Tristan Gingold <gingold@adacore.com>
10308 Pedro Alves <palves@redhat.com>
10309
10310 * ia64-tdep.c: Do not include libunwind-ia64.h.
10311 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10312 Include libunwind-ia64.h instead of libunwind.h.
10313 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10314 for libunwind.h existence.
10315 * configure, config.in: Regenerate.
10316
10317 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10318
10319 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10320 instead of value_rtti_target_type.
10321 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10322 instead of value_rtti_target_type.
10323 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10324 value_rtti_target_type.
10325 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10326 (value_rtti_target_type): Rename to ...
10327 (value_rtti_indirect_type): ... here and make it indirect. Update
10328 function comment.
10329 * value.c (readjust_indirect_value_type): New function.
10330 (coerce_ref): Support for enclosing type setting for references
10331 with readjust_indirect_value_type.
10332 * value.h (readjust_value_type): New declaration.
10333 (value_rtti_target_type): Rename to ...
10334 (value_rtti_indirect_type): ... here.
10335
10336 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10337
10338 * MAINTAINERS (Write After Approval): Add myself to the list.
10339
10340 2012-02-20 Doug Evans <dje@google.com>
10341
10342 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10343 Rename objfile_p_char parameter to objfilep.
10344 (build_objfile_section_table): Result is now void. All callers
10345 updated.
10346 * objfiles.h (struct objfile): Tweak comments, whitespace.
10347 (build_objfile_section_table): Update.
10348
10349 * elfread.c (elf_symfile_segments): Fix warning text.
10350
10351 2012-02-20 Tom Tromey <tromey@redhat.com>
10352
10353 PR gdb/13498:
10354 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10355 particular set of file names once.
10356 (dw2_map_symbol_filenames): Likewise.
10357
10358 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10359
10360 Code cleanup.
10361 * main.c (write_files): Remove the declaration.
10362 (external_editor_command): Move the declaration ...
10363 [GDBTK] (external_editor_command): ... here. Fix the comment.
10364
10365 2012-02-20 Tom Tromey <tromey@redhat.com>
10366
10367 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10368 extraneous block.
10369
10370 2012-02-20 Tristan Gingold <gingold@adacore.com>
10371
10372 * darwin-nat.h (enum darwin_msg_state): Add comments.
10373
10374 2012-02-20 Tristan Gingold <gingold@adacore.com>
10375
10376 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10377 value.
10378
10379 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10380
10381 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10382 between function description and implementation.
10383
10384 2012-02-17 Tom Tromey <tromey@redhat.com>
10385
10386 PR python/12070:
10387 * python/py-event.c (event_object_getset): New global.
10388 (event_object_type): Reference it.
10389 * python/py-type.c (field_object_getset): New global.
10390 (field_object_type): Reference it.
10391 * python/python-internal.h (gdb_py_generic_dict): Declare.
10392 * python/py-utils.c (gdb_py_generic_dict): New function.
10393
10394 2012-02-17 Tristan Gingold <gingold@adacore.com>
10395
10396 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10397
10398 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10399
10400 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10401 TYPE_CALLING_CONVENTION annotation.
10402
10403 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10404
10405 * MAINTAINERS: Add rx to target ISA section.
10406 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10407 (ALLDEPFILES): Add rx-tdep.c.
10408
10409 2012-02-16 Tom Tromey <tromey@redhat.com>
10410
10411 * symfile.c (symbol_file_add_main_1): Use inferior's
10412 symfile_flags.
10413 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10414 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10415 inferior.
10416 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10417 inferior.
10418 (follow_exec): Use inferior's symfile_flags.
10419 * inferior.h (struct inferior) <symfile_flags>: New field.
10420
10421 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10422
10423 PR gdb/9734:
10424 * remote-sim.c (gdbsim_create_inferior): Call error() when
10425 sim_create_inferior() fails.
10426
10427 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10428
10429 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10430
10431 2012-02-16 Tom Tromey <tromey@redhat.com>
10432
10433 PR c++/13653:
10434 * thread.c (struct current_thread_cleanup) <was_removable>: New
10435 field.
10436 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10437 (make_cleanup_restore_current_thread): Initialize new field.
10438
10439 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10440
10441 * MAINTAINERS: Add rl78 to target ISA section.
10442 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10443 (ALLDEPFILES): Add rl78-tdep.c.
10444 * NEWS: Mention rl78 as a new target.
10445
10446 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10447
10448 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10449 data.
10450 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10451
10452 2012-02-15 Tom Tromey <tromey@redhat.com>
10453
10454 PR gdb/12659:
10455 * infcmd.c (registers_info): Print just the current register's
10456 name.
10457
10458 2012-02-15 Tom Tromey <tromey@redhat.com>
10459
10460 * python/py-symbol.c (sympy_value): Use _().
10461
10462 2012-02-15 Pedro Alves <palves@redhat.com>
10463
10464 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10465 output to be like native targets'.
10466 (remote_pid_to_str): Special case the null ptid.
10467
10468 2012-02-14 Stan Shebs <stan@codesourcery.com>
10469
10470 * NEWS: Mention enable count command.
10471 * breakpoint.h (struct breakpoint): New field enable_count.
10472 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10473 (enable_breakpoint): Add arg to call.
10474 (struct disp_data): New struct.
10475 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10476 (do_map_enable_once_breakpoint): Create a struct and pass it.
10477 (do_map_enable_delete_breakpoint): Ditto.
10478 (do_map_enable_count_breakpoint): New function.
10479 (enable_count_command): New function.
10480 (bpstat_stop_status): Decrement enable_count.
10481 (print_one_breakpoint_location): Report enable count.
10482 (_initialize_breakpoint): Add enable count command.
10483
10484 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10485
10486 * rl78-tdep.c (reggroups.h): Include.
10487 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10488 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10489 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10490 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10491 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10492 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10493 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10494 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10495 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10496 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10497 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10498 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10499 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10500 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10501 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10502 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10503 beginning of register list.
10504 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10505 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10506 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10507 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10508 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10509 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10510 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10511 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10512 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10513 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10514 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10515 the pseudo registers. Rearrange other pseudo registers too so
10516 that the bank registers appear at the end.
10517 (rl78_register_type): Account for the fact that the byte sized
10518 bank registers are now pseudo-registers.
10519 (rl78_register_name): Rearrange the register name array. Make
10520 initial set of raw banked registers inaccessible.
10521 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10522 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10523 case for copying bytes back and forth between raw and pseudo
10524 versions of the banked registers. Update other cases to reflect
10525 the changed names.
10526 (rl78_return_value): Update to account for changed names of
10527 raw registers.
10528 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10529 rl78_register_sim_regno().
10530
10531 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10532
10533 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10534 the name parameter being passed to find_pc_partial_function().
10535
10536 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10537
10538 * MAINTAINERS: Step down from being ia64 target maintainer.
10539
10540 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10541
10542 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10543 compilation warning.
10544
10545 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 Fix crash on loaded shlibs without loaded exec_bfd.
10548 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10549 (set_section_command): Replace exec_bfd by p->bfd.
10550
10551 2012-02-10 Tom Tromey <tromey@redhat.com>
10552
10553 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10554 when we have a C++ qualified name.
10555
10556 2012-02-10 Pedro Alves <palves@redhat.com>
10557
10558 * inferior.c (inferior_pid_to_str): New.
10559 (print_inferior, inferior_command): Use it.
10560
10561 2012-02-10 Pedro Alves <palves@redhat.com>
10562
10563 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10564 the test CFLAGS.
10565 * configure: Regenerate.
10566
10567 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10568
10569 * linespec.c (decode_line_internal): Fix comment correctness.
10570
10571 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10572
10573 PR gdb/12953
10574 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10575 * amd64bsd-nat.c: Add support for debug registers (adapted from
10576 i386bsd-nat.c).
10577 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10578 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10579 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10580 (amd64bsd_dr_get_control): New functions.
10581 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10582 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10583 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10584 watchpoints initialization.
10585 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10586
10587 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10588
10589 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10590 flds_bnds.fields.
10591 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10592
10593 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10596
10597 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10598
10599 * language.h (symbol_name_cmp_ftype): Renames
10600 symbol_name_match_p_ftype.
10601 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10602 la_get_symbol_name_match_p.
10603 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10604 ada_get_symbol_name_match_p. Update comment.
10605 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10606 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10607 Renames symbol_name_match_p. Update field type.
10608 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10609 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10610 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10611 "la_get_symbol_name_cmp" in comments.
10612 * language.c: Likewise.
10613
10614 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10615
10616 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10617 %eflags offset.
10618 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10619 (amd64_sol2_gregset32_reg_offs): Likewise.
10620
10621 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10622
10623 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10624 of the returned BFD is allocated by GDB.
10625
10626 2012-02-07 Tom Tromey <tromey@redhat.com>
10627
10628 PR python/12027:
10629 * python/python-internal.h (frame_object_type): Declare.
10630 * python/py-symbol.c (sympy_needs_frame): New function.
10631 (sympy_value): New function.
10632 (symbol_object_getset): Add "needs_frame".
10633 (symbol_object_methods): Add "value".
10634 * python/py-frame.c (frame_object_type): No longer static.
10635
10636 2012-02-07 Tom Tromey <tromey@redhat.com>
10637
10638 PR python/13599:
10639 * python/py-symbol.c (sympy_line): New function.
10640 (symbol_object_getset): Add "line".
10641
10642 2012-02-07 Tom Tromey <tromey@redhat.com>
10643
10644 * charset.c (find_charset_names): Check 'in' against NULL.
10645
10646 2012-02-06 Doug Evans <dje@google.com>
10647
10648 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10649 and fields.name members from char * to const char *. All uses updated.
10650 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10651 from char * to const char *. All uses updated.
10652 (type_name_no_tag): Update.
10653 (lookup_unsigned_typename, lookup_signed_typename): Update.
10654 * gdbtypes.c (type_name_no_tag): Change result type
10655 from char * to const char *. All callers updated.
10656 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10657 name parameter from char * to const char *.
10658 * symtab.h (struct cplus_specific): Change type of demangled_name
10659 member from char * to const char *. All uses updated.
10660 (struct general_symbol_info): Change type of name and
10661 mangled_lang.demangled_name members from char * to const char *.
10662 All uses updated.
10663 (symbol_get_demangled_name, symbol_natural_name): Update.
10664 (symbol_demangled_name, symbol_search_name): Update.
10665 * symtab.c (symbol_get_demangled_name): Change result type
10666 from char * to const char *. All callers updated.
10667 (symbol_natural_name, symbol_demangled_name): Ditto.
10668 (symbol_search_name): Ditto.
10669 (completion_list_add_name): Change type of symname,sym_text,
10670 text,word parameters from char * to const char *.
10671 (completion_list_objc_symbol): Change type of sym_text,
10672 text,word parameters from char * to const char *.
10673 * ada-lang.c (find_struct_field): Change type of name parameter
10674 from char * to const char *.
10675 (encoded_ordered_before): Similarly for N0,N1 parameters.
10676 (old_renaming_is_invisible): Similarly for function_name parameter.
10677 (ada_type_name): Change result type from char * to const char *.
10678 All callers updated.
10679 * ada-lang.h (ada_type_name): Update.
10680 * buildsym.c (hashname): Change type of name parameter
10681 from char * to const char *.
10682 * buildsym.h (hashname): Update.
10683 * dbxread.c (end_psymtab): Change type of include_list parameter
10684 from char ** to const char **.
10685 * dwarf2read.c (determine_prefix): Change result type
10686 from char * to const char *. All callers updated.
10687 * f-lang.c (find_common_for_function): Change type of name, funcname
10688 parameters from char * to const char *.
10689 * f-lang.c (find_common_for_function): Update.
10690 * f-valprint.c (list_all_visible_commons): Change type of funcname
10691 parameters from char * to const char *.
10692 * gdbarch.sh (static_transform_name): Change type of name parameter
10693 and result from char * to const char *.
10694 * gdbarch.c: Regenerate.
10695 * gdbarch.h: Regenerate.
10696 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10697 of name parameter from char * to const char *.
10698 * jv-lang.c (java_primitive_type_from_name): Ditto.
10699 (java_demangled_signature_length): Similarly for signature parameter.
10700 (java_demangled_signature_copy): Ditto.
10701 (java_demangle_type_signature): Ditto.
10702 * jv-lang.h (java_primitive_type_from_name): Update.
10703 (java_demangle_type_signature): Update.
10704 * objc-lang.c (specialcmp): Change type of a,b parameters
10705 from char * to const char *.
10706 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10707 from char * to const char *. All callers updated.
10708 * p-lang.h (is_pascal_string_type): Update.
10709 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10710 of name parameter from char * to const char *.
10711 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10712 * utils.c (fprintf_symbol_filtered): Ditto.
10713 * defs.h (fprintf_symbol_filtered): Update.
10714 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10715 * stabsread.h (end_psymtab): Update.
10716 * stack.c (find_frame_funname): Change type of funname parameter
10717 from char ** to const char **.
10718 * stack.h (find_frame_funname): Update.
10719 * typeprint.c (type_print): Change type of varstring parameter
10720 from char * to const char *.
10721 * value.h (type_print): Update.
10722 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10723 from char * to const char *. All callers updated.
10724 (xcoff_end_psymtab): Change type of include_list parameter
10725 from char ** to const char **. All callers updated.
10726 (swap_sym): Similarly for name parameter. All callers updated.
10727 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10728 Use xstrdup.
10729 (process_coff_symbol): Use xstrdup.
10730 * stabsread.c (stabs_method_name_from_physname): Renamed from
10731 update_method_name_from_physname. Change result type from void
10732 to char *. All callers updated.
10733 (read_member_functions): In has_destructor case, store name in objfile
10734 obstack instead of malloc space. In !has_stub case, fix mem leak.
10735
10736 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10737
10738 * configure: Rebuild.
10739 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10740 LDFLAGS.
10741
10742 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10743
10744 * configure.tgt (rl78-*-elf): New target.
10745 * rl78-tdep.c: New file.
10746
10747 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10748
10749 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10750 and continue the loop. Add QUIT statement.
10751
10752 2012-02-03 Tom Tromey <tromey@redhat.com>
10753
10754 PR gdb/13596:
10755 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10756 bfd_lookup_symbol_from_symtab.
10757 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10758 gdb_bfd_lookup_symbol_from_symtab.
10759
10760 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10761
10762 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10763 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10764 symbol. Add assertion that sym2 is never NULL.
10765
10766 2012-02-02 Doug Evans <dje@google.com>
10767
10768 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10769 "name" parameter to const char ** from char **. All callers updated.
10770 (find_pc_partial_function): Ditto.
10771 (cache_pc_function_name): Change type to const char * from char *.
10772 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10773 (find_pc_partial_function): Update.
10774 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10775 type of "name" parameter to const char * from char *.
10776 All uses updated.
10777 * arch-utils.c (generic_in_solib_return_trampoline): Change
10778 type of "name" parameter to const char * from char *.
10779 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10780 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10781 type of "name" parameter to const char * from char *.
10782 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10783 * gdbarch.c: Regenerate.
10784 * gdbarch.h: Regenerate.
10785 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10786 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10787 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10788 type of "name" parameter to const char * from char *.
10789 * skip.c (skip_function_pc): Ditto.
10790 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10791 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10792 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10793 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10794 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10795 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10796 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10797 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10798 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10799
10800 2012-02-02 Pedro Alves <palves@redhat.com>
10801
10802 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10803 the current inferior has no execution. Make sure the current
10804 remote process matches gdb's current inferior.
10805
10806 2012-02-02 Tom Tromey <tromey@redhat.com>
10807
10808 PR gdb/13405:
10809 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10810 read-only memory.
10811
10812 2012-02-02 Tom Tromey <tromey@redhat.com>
10813
10814 PR gdb/9307:
10815 * symtab.c (lookup_language_this): Set block_found.
10816
10817 2012-02-01 Tom Tromey <tromey@redhat.com>
10818
10819 PR gdb/13431:
10820 * jit.c (struct jit_inferior_data): Rewrite.
10821 (struct jit_objfile_data): New.
10822 (get_jit_objfile_data): New function.
10823 (add_objfile_entry): Update.
10824 (jit_read_descriptor): Return int. Replace descriptor_addr
10825 argument with inf_data. Update. Don't call error.
10826 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10827 descriptor here.
10828 (jit_inferior_init): Don't look up descriptor. Don't call error.
10829 (jit_reset_inferior_data_and_breakpoints)
10830 (jit_inferior_created_observer): Remove.
10831 (jit_inferior_exit_hook): Update.
10832 (jit_executable_changed_observer): Remove.
10833 (jit_event_handler): Update.
10834 (free_objfile_data): Reset inferior data if needed.
10835 (_initialize_jit): Update.
10836
10837 2012-02-01 Tom Tromey <tromey@redhat.com>
10838
10839 * jit.c (bfd_open_from_target_memory): Move higher in file.
10840
10841 2012-02-01 Tristan Gingold <gingold@adacore.com>
10842
10843 * libunwind-frame.c (libunwind_load): Display message if dlopen
10844 failed.
10845
10846 2012-02-01 Gary Benson <gbenson@redhat.com>
10847
10848 * symtab.h (symbol_found_callback_ftype): New typedef.
10849 (iterate_over_symbols): Use the above.
10850 * symtab.c (iterate_over_symbols): Likewise.
10851 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10852 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10853 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10854 (iterate_name_matcher): Document return values.
10855 (collect_one_symbol): Likewise.
10856 (collect_function_symbols): Likewise.
10857 (collect_symbols): Likewise.
10858
10859 2012-02-01 Tom Tromey <tromey@redhat.com>
10860
10861 * ada-lang.c (resolve_subexp): Update.
10862 (ada_lookup_symbol_list): Add 'full_search' argument.
10863 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10864 ada_lookup_symbol_list.
10865 (ada_lookup_encoded_symbol): Update.
10866 (get_var_value): Update.
10867 * ada-exp.y (block_lookup): Update.
10868 (write_var_or_type): Update.
10869 (write_name_assoc): Update.
10870 * ada-lang.h (ada_lookup_symbol_list): Update.
10871
10872 2012-01-31 Tom Tromey <tromey@redhat.com>
10873
10874 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10875 comment.
10876
10877 2012-01-31 Doug Evans <dje@google.com>
10878
10879 * symtab.h: Remove outdated comment.
10880 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10881
10882 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10883
10884 Fix build error in Darwin port.
10885 * i386-darwin-nat.c: Include i386-nat.h.
10886
10887 2012-01-30 Tom Tromey <tromey@redhat.com>
10888
10889 PR breakpoints/13568:
10890 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10891 argument. Check for recursive includes.
10892 (dwarf_decode_macros): Create an include hash.
10893
10894 2012-01-30 Michael Eager <eager@eagercon.com>
10895
10896 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10897 * ppc-linux-tdep.c: Include glibc-tdep.h.
10898 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10899 (powerpc_linux_in_plt_stub): New function.
10900 (powerpc_linux_in_dynsym_resolve_code): New function.
10901 (ppc_skip_trampoline_code): New function.
10902 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10903 Use glibc_skip_solib_resolver.
10904
10905 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10906
10907 Code cleanup: Make 1440 bytes of data segment read-only.
10908 * arch-utils.c (endian_enum): Make it const char *const [].
10909 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10910 Likewise.
10911 * breakpoint.c (always_inserted_enums): Likewise.
10912 * cli/cli-cmds.c (script_ext_enums): Likewise.
10913 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10914 enumlist parameter const char *const *.
10915 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10916 const char *const *.
10917 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10918 parameter const char *const *.
10919 * cris-tdep.c (cris_modes): Make it const char *const [].
10920 * filesystem.c (target_file_system_kinds): Likewise.
10921 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10922 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10923 (can_use_displaced_stepping_enum, scheduler_enums)
10924 (exec_direction_names): Likewise.
10925 * language.c (_initialize_language): Make the type_or_range_names and
10926 case_sensitive_names variables const char *const [].
10927 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10928 * python/python.c (python_excp_enums): Likewise.
10929 * remote.c (interrupt_sequence_modes): Likewise.
10930 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10931 * serial.c (logbase_enums): Likewise.
10932 * sh-tdep.c (sh_cc_enum): Likewise.
10933 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10934 Likewise.
10935 * symtab.c (multiple_symbols_modes): Likewise.
10936 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10937 Likewise.
10938 * utils.c (internal_problem_modes): Likewise.
10939
10940 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10943 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10944 result.
10945
10946 2012-01-27 Doug Evans <dje@google.com>
10947
10948 * configure.ac (with_python): Fix absolute path handling for win32.
10949 * configure: Regenerate.
10950
10951 2012-01-26 Doug Evans <dje@google.com>
10952
10953 * symtab.c: Whitespace cleanup, no code changes.
10954
10955 * symtab.c (lookup_symbol_in_language): Improve comment.
10956 (lookup_symbol_aux): Fix comment.
10957
10958 * psymtab.c (add_psymbol_to_list): Result is now "void".
10959 * psympriv.h (add_psymbol_to_list): Update.
10960
10961 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10962
10963 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10964
10965 Do not open script filenames twice.
10966 * cli/cli-cmds.c (source_script_from_stream): Pass to
10967 source_python_script also STREAM.
10968 * python/py-auto-load.c (source_section_scripts): Pass to
10969 source_python_script_for_objfile also STREAM.
10970 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10971 also INPUT.
10972 * python/python-internal.h (source_python_script_for_objfile): New
10973 parameter file, rename parameter file to filename.
10974 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10975 instead if !_WIN32. Update the function comment.
10976 (source_python_script, source_python_script_for_objfile)
10977 (source_python_script): New parameter file, rename parameter file to
10978 filename. Pass FILENAME to python_run_simple_file.
10979 * python/python.h (source_python_script): New parameter file, rename
10980 parameter file to filename.
10981
10982 2012-01-26 Pedro Alves <palves@redhat.com>
10983
10984 * corelow.c (core_has_fake_pid): Delete.
10985 (core_close): Delete references to `core_has_fake_pid'.
10986 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10987 (core_open): Delete references to `core_has_fake_pid'.
10988 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10989 the removed global.
10990
10991 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10992
10993 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10994 Remove language parameter from name_matcher. Adjust the comment.
10995 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10996 Remove language parameter.
10997 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10998 * linespec.c (iterate_name_matcher): Likewise.
10999 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11000 name_matcher. Adjust call accordingly.
11001 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11002 (maintenance_check_symtabs): Adjust type of parameter "fun".
11003 * psymtab.h (maintenance_check_symtabs): Likewise.
11004
11005 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11006
11007 * language.h (symbol_name_match_p_ftype): New typedef.
11008 (struct language_defn): Replace field la_symbol_name_compare
11009 by la_get_symbol_name_match_p.
11010 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11011 (ada_language_defn): Use it.
11012 * linespec.c (struct symbol_matcher_data): New type.
11013 (iterate_name_matcher): Rewrite.
11014 (iterate_over_all_matching_symtabs): Pass a pointer to
11015 a symbol_matcher_data struct to expand_symtabs_matching
11016 instead of just the lookup name.
11017 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11018 opencl-lang.c, p-lang.c, language.c: Delete field
11019 la_symbol_name_compare, and replace by NULL for new field
11020 la_get_symbol_name_match_p.
11021 * symfile.h (struct quick_symbol_functions): Update comment.
11022
11023 2012-01-25 Tom Tromey <tromey@redhat.com>
11024
11025 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11026 dereferencing.
11027
11028 2012-01-24 Tom Tromey <tromey@redhat.com>
11029
11030 PR symtab/12406:
11031 * solib.c (update_solib_list): Update the program space's
11032 added_solibs and deleted_solibs fields.
11033 * progspace.h (struct program_space) <added_solibs,
11034 deleted_solibs>: New fields.
11035 (clear_program_space_solib_cache): Declare.
11036 * progspace.c (release_program_space): Call
11037 clear_program_space_solib_cache.
11038 (clear_program_space_solib_cache): New function.
11039 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11040 bpstat_stop_status. Use handle_solib_event.
11041 * breakpoint.c: Include gdb_regex.h.
11042 (print_solib_event): New function.
11043 (bpstat_print): Use print_solib_event.
11044 (bpstat_stop_status): Add special case for bp_shlib_event.
11045 (handle_solib_event): New function.
11046 (bpstat_what): Use handle_solib_event.
11047 (struct solib_catchpoint): New.
11048 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11049 (breakpoint_hit_catch_solib, check_status_catch_solib)
11050 (print_it_catch_solib, print_one_catch_solib)
11051 (print_mention_catch_solib, print_recreate_catch_solib): New
11052 functions.
11053 (catch_solib_breakpoint_ops): New global.
11054 (catch_load_or_unload, catch_load_command_1)
11055 (catch_unload_command_1): New functions.
11056 (internal_bkpt_check_status): Add special case for
11057 bp_shlib_event.
11058 (internal_bkpt_print_it): Use print_solib_event.
11059 (initialize_breakpoint_ops): Initialize
11060 catch_solib_breakpoint_ops.
11061 (_initialize_breakpoint): Register "catch load" and "catch
11062 unload".
11063 * breakpoint.h (handle_solib_event): Declare.
11064 * NEWS: Add entry for "catch load" and "catch unload".
11065
11066 2012-01-24 Tom Tromey <tromey@redhat.com>
11067
11068 * ada-lang.c: Include gdb_vecs.h.
11069 * charset.c: Include gdb_vecs.h.
11070 * tracepoint.h: Include gdb_vecs.h.
11071 * gdb_vecs.h: New file.
11072
11073 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11074
11075 * breakpoint.c (breakpoint_hit_catch_fork)
11076 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11077 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11078 * infrun.c (inferior_has_forked, inferior_has_vforked)
11079 (inferior_has_execd, inferior_has_called_syscall): Delete.
11080 (handle_syscall_event): Get syscall_number from the execution
11081 control state's wait status.
11082 (wait_for_inferior): Don't clear syscall_number.
11083
11084 2012-01-24 Pedro Alves <palves@redhat.com>
11085
11086 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11087 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11088 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11089 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11090 `ws' parameter.
11091 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11092 false for events other than TARGET_SIGNAL_TRAP.
11093 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11094 Add `ws' parameter.
11095 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11096 events other than TARGET_SIGNAL_TRAP.
11097 (tracepoint_breakpoint_hit): Add `ws' parameter.
11098 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11099 parameter.
11100 (bpstat_stop_status): Same.
11101 (pc_at_non_inline_function): Same.
11102 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11103 to pass the current event's waitstatus to bpstat_stop_status
11104 and pc_at_non_inline_function.
11105
11106 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11107
11108 Code cleanup.
11109 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11110 Update the function comment for it.
11111 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11112 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11113 for STREAM.
11114
11115 2012-01-24 Pedro Alves <palves@redhat.com>
11116
11117 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11118 outside `bs->stop' block.
11119 (bpstat_what): Rework bp_shlib_event handling.
11120 (internal_bkpt_check_status): If the breakpoint is a
11121 bp_shlib_event, then set bs->stop and bs->print if
11122 stop_on_solib_events is set.
11123
11124 2012-01-24 Gary Benson <gbenson@redhat.com>
11125
11126 Delete #if 0'd out code.
11127 * stack.c (print_frame_label_vars): Remove.
11128 (catch_info): Likewise.
11129 (_initialize_stack): Remove "info catch" command.
11130 * NEWS: Mention the above.
11131
11132 2012-01-24 Pedro Alves <palves@redhat.com>
11133
11134 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11135 it.
11136 (remote_notice_new_inferior): If the remote end doesn't support
11137 the multiprocess extensions, then the PID is fake.
11138 (add_current_inferior_and_thread): New.
11139 (remote_start_remote): Use it.
11140 (extended_remote_attach_1): Adjust.
11141 (extended_remote_create_inferior_1): Use
11142 add_current_inferior_and_thread.
11143
11144 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11145
11146 Fix watchpoints to be specific for each inferior.
11147 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11148 current_program_space.
11149 * i386-nat.c (i386_inferior_data_cleanup): New.
11150 (i386_inferior_data_get): Replace variable inf_data_local by an
11151 inferior_data call.
11152 (i386_use_watchpoints): Initialize i386_inferior_data.
11153 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11154 specific iterate_over_lwps.
11155
11156 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11157
11158 Fix watchpoints across inferior fork.
11159 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11160 comment for linux_nat_iterate_watchpoint_lwps.
11161 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11162 linux_nat_iterate_watchpoint_lwps.
11163 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11164 * i386-linux-nat.c (update_debug_registers_callback): Update the
11165 comment for linux_nat_iterate_watchpoint_lwps.
11166 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11167 linux_nat_iterate_watchpoint_lwps.
11168 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11169 * i386-nat.c: Include inferior.h.
11170 (dr_mirror): Remove.
11171 (i386_inferior_data, struct i386_inferior_data)
11172 (i386_inferior_data_get): New.
11173 (i386_debug_reg_state): Use i386_inferior_data_get.
11174 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11175 (i386_insert_watchpoint, i386_remove_watchpoint)
11176 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11177 (i386_remove_hw_breakpoint): New variable state, use
11178 i386_debug_reg_state instead of DR_MIRROR.
11179 * linux-nat.c (delete_lwp): New declaration.
11180 (num_lwps): Move here from downwards.
11181 (delete_lwp_cleanup): New.
11182 (linux_child_follow_fork): Create new child_lp, call
11183 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11184 PTRACE_DETACH.
11185 (num_lwps): Move upwards.
11186 (linux_nat_iterate_watchpoint_lwps): New.
11187 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11188 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11189
11190 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11191
11192 GDB 7.4 released.
11193
11194 2012-01-23 Pedro Alves <palves@redhat.com>
11195
11196 * top.c (caution): Rename to ...
11197 (confirm): ... this.
11198 (show_caution): Rename to ...
11199 (show_confirm): ... this.
11200 (quit_cover): Adjust.
11201 (init_main): Adjust.
11202 * top.h (caution): Rename to ...
11203 (confirm): ... this.
11204 * utils.c (internal_vproblem, defaulted_query): Adjust.
11205
11206 2012-01-23 Pedro Alves <palves@redhat.com>
11207
11208 * top.c (caution): Update comment.
11209 (execute_command): Don't consider the current value of `caution'.
11210
11211 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11214
11215 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11216
11217 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11218 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11219 * target.c (target_fileio_pwrite): Remove buffer address from
11220 debug output.
11221 (target_fileio_pread): Likewise.
11222
11223 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11224
11225 * NEWS: Document remote "info proc" and "generate-core-file".
11226
11227 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11228
11229 * gdbarch.sh (find_memory_regions): New callback.
11230 * gdbarch.c, gdbarch.h: Regenerate.
11231
11232 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11233 callback before falling back to target method.
11234
11235 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11236 (linux_target_install_ops): No longer install it.
11237
11238 * linux-tdep.c (linux_find_memory_regions): New function.
11239 (linux_init_abi): Install it.
11240
11241 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11242
11243 * gdbarch.sh (make_corefile_notes): New architecture callback.
11244 * gdbarch.c: Regenerate.
11245 * gdbarch.h: Likewise.
11246
11247 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11248 before target_make_corefile_notes. If NULL is returned, the
11249 target does not support core file generation.
11250
11251 * linux-nat.c: Include "linux-tdep.h".
11252 (find_signalled_thread, find_stop_signal): Remove.
11253 (linux_nat_do_thread_registers): Likewise.
11254 (struct linux_nat_corefile_thread_data): Likewise.
11255 (linux_nat_corefile_thread_callback): Likewise.
11256 (iterate_over_spus): Likewise.
11257 (struct linux_spu_corefile_data): Likewise.
11258 (linux_spu_corefile_callback): Likewise.
11259 (linux_spu_make_corefile_notes): Likewise.
11260 (linux_nat_collect_thread_registers): New function.
11261 (linux_nat_make_corefile_notes): Replace contents by call to
11262 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11263 as native-only callback.
11264
11265 * linux-tdep.h: Include "bfd.h".
11266 (struct regcache): Add forward declaration.
11267 (linux_collect_thread_registers_ftype): New typedef.
11268 (linux_make_corefile_notes): Add prototype.
11269 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11270 "regset.h", and "elf-bfd.h".
11271 (find_signalled_thread, find_stop_signal): New functions.
11272 (linux_spu_make_corefile_notes): Likewise.
11273 (linux_collect_thread_registers): Likewise.
11274 (struct linux_corefile_thread_data): New data structure.
11275 (linux_corefile_thread_callback): New funcion.
11276 (linux_make_corefile_notes): Likewise.
11277 (linux_make_corefile_notes_1): Likewise.
11278 (linux_init_abi): Install it.
11279
11280 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11281
11282 * gdbarch.sh (info_proc): New callback.
11283 * gdbarch.c, gdbarch.h: Regenerate.
11284
11285 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11286 before falling back to the target info_proc callback.
11287
11288 * linux-nat.c: Do not include "cli/cli-utils.h".
11289 (linux_nat_info_proc): Remove.
11290 (linux_target_install_ops): No longer install it.
11291
11292 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11293 (read_mapping): New function.
11294 (linux_info_proc): Likewise.
11295 (linux_init_abi): Install it.
11296
11297 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11298
11299 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11300 * infcmd.c: (info_proc_cmd_1): New function.
11301 (info_proc_cmd): New function, moved here from equivalent routine
11302 orignally in linux-nat.c.
11303 (info_proc_cmd_mappings): Likewise.
11304 (info_proc_cmd_stat): Likewise.
11305 (info_proc_cmd_status): Likewise.
11306 (info_proc_cmd_cwd): Likewise.
11307 (info_proc_cmd_cmdline): Likewise.
11308 (info_proc_cmd_exe): Likewise.
11309 (info_proc_cmd_all): Likewise.
11310 (_initialize_infcmd): Install "info proc" command and subcommands.
11311
11312 * target.h (struct target_ops): Add to_info_proc.
11313 (target_info_proc): Add prototype.
11314 * target.c (target_info_proc): New function.
11315
11316 * procfs.c (procfs_info_proc): Add prototype.
11317 (info_proc_cmd): Rename into ...
11318 (procfs_info_proc): ... this. Update argument types as appropriate
11319 for a to_info_proc implementation. Handle "what" argument.
11320 (procfs_target): Install procfs_info_proc.
11321 (_initialize_procfs): No longer install "info proc" command.
11322
11323 * linux-nat.c: (enum info_proc_what): Remove.
11324 (linux_nat_info_proc_cmd_1): Rename into ...
11325 (linux_nat_info_proc): ... this. Update argument types as appropriate
11326 for a to_info_proc implementation.
11327 (linux_nat_info_proc_cmd): Remove.
11328 (linux_nat_info_proc_cmd_mappings): Likewise.
11329 (linux_nat_info_proc_cmd_stat): Likewise.
11330 (linux_nat_info_proc_cmd_status): Likewise.
11331 (linux_nat_info_proc_cmd_cwd): Likewise.
11332 (linux_nat_info_proc_cmd_cmdline): Likewise.
11333 (linux_nat_info_proc_cmd_exe): Likewise.
11334 (linux_nat_info_proc_cmd_all): Likewise.
11335 (linux_target_install_ops): Install linux_nat_info_proc.
11336 (_initialize_linux_nat): No longer install "info proc" command
11337 and subcommands.
11338
11339 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11340
11341 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11342 * config.in, configure: Regenerate.
11343
11344 * target.h (struct target_ops): Add to_fileio_readlink.
11345 (target_fileio_readlink): Add prototype.
11346 * target.c (target_fileio_readlink): New function.
11347
11348 * inf-child.c: Conditionally include <sys/param.h>.
11349 (inf_child_fileio_readlink): New function.
11350 (inf_child_target): Install it.
11351
11352 * remote.c (PACKET_vFile_readlink): New enum value.
11353 (remote_hostio_readlink): New function.
11354 (init_remote_ops): Install it.
11355 (_initialize_remote): Handle vFile:readlink packet type.
11356
11357 2012-01-20 Pedro Alves <palves@redhat.com>
11358 Ulrich Weigand <ulrich.weigand@linaro.org>
11359
11360 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11361 * config.in, configure: Regenerate.
11362
11363 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11364 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11365 (target_fileio_open): Add prototype.
11366 (target_fileio_pwrite): Likewise.
11367 (target_fileio_pread): Likewise.
11368 (target_fileio_close): Likewise.
11369 (target_fileio_unlink): Likewise.
11370 (target_fileio_read_alloc): Likewise.
11371 (target_fileio_read_stralloc): Likewise.
11372
11373 * target.c: Include "gdb/fileio.h".
11374 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11375 (default_fileio_target): New function.
11376 (target_fileio_open): Likewise.
11377 (target_fileio_pwrite): Likewise.
11378 (target_fileio_pread): Likewise.
11379 (target_fileio_close): Likewise.
11380 (target_fileio_unlink): Likewise.
11381 (target_fileio_close_cleanup): Likewise.
11382 (target_fileio_read_alloc_1): Likewise.
11383 (target_fileio_read_alloc): Likewise.
11384 (target_fileio_read_stralloc): Likewise.
11385
11386 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11387 <fcntl.h>, and <unistd.h>.
11388 (inf_child_fileio_open_flags_to_host): New function.
11389 (inf_child_errno_to_fileio_error): Likewise.
11390 (inf_child_fileio_open): Likewise.
11391 (inf_child_fileio_pwrite): Likewise.
11392 (inf_child_fileio_pread): Likewise.
11393 (inf_child_fileio_close): Likewise.
11394 (inf_child_fileio_unlink): Likewise.
11395 (inf_child_target): Install to_fileio routines.
11396
11397 * remote.c (init_remote_ops): Install to_fileio routines.
11398
11399 2012-01-20 Pedro Alves <palves@redhat.com>
11400 Ulrich Weigand <ulrich.weigand@linaro.org>
11401
11402 * remote.c (remote_multi_process_p): Only check for multi-process
11403 protocol feature, do not check for extended protocol.
11404 (remote_supports_multi_process): Check for extended protocol here.
11405 (set_general_process): Likewise.
11406 (extended_remote_kill): Likewise.
11407 (remote_pid_to_str): Likewise.
11408 (remote_query_supported): Always query multiprocess mode.
11409
11410 2012-01-20 Pedro Alves <palves@redhat.com>
11411 Ulrich Weigand <ulrich.weigand@linaro.org>
11412
11413 * inferior.h (struct inferior): Add fake_pid_p.
11414 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11415 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11416 magic_null_ptid since the remote side doesn't provide a real PID.
11417
11418 2012-01-19 Tom Tromey <tromey@redhat.com>
11419
11420 * NEWS: Combine the two Python sections.
11421
11422 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11423
11424 * target.h (target_close): Update comment on the target's unpush state.
11425
11426 2012-01-19 Pedro Alves <palves@redhat.com>
11427
11428 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11429 linux_nat_async directly instead of going through the target
11430 vector.
11431 * target.c (unpush_target): Close target after unpushing it, not
11432 before.
11433
11434 2012-01-19 Gary Benson <gbenson@redhat.com>
11435
11436 * mdebugread.c (sort_blocks): Replace integer constants with ones
11437 derived from FIRST_LOCAL_BLOCK.
11438
11439 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11440 Jan Kratochvil <jan.kratochvil@redhat.com>
11441
11442 PR gdb/9538
11443 * symfile.c (find_separate_debug_file): New function.
11444 (terminate_after_last_dir_separator): Likewise.
11445 (find_separate_debug_file_by_debuglink): Also try realpath.
11446 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11447 * configure: Regenerate.
11448 * config.in: Regenerate.
11449
11450 2012-01-18 Doug Evans <dje@google.com>
11451
11452 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11453 (main.o): Remove rule.
11454 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11455 (--with-sysroot): Rewrite.
11456 * configure: Regenerate.
11457 * config.in: Regenerate.
11458
11459 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11460
11461 * parse.c (initialize_expout): New function.
11462 (reallocate_expout): Likewise.
11463 (parse_exp_in_context): Use `initialize_expout' and
11464 `reallocate_expout' when appropriate.
11465
11466 2012-01-18 Pedro Alves <palves@redhat.com>
11467
11468 * record.c (struct record_breakpoint, record_breakpoint_p)
11469 (record_breakpoints): New.
11470 (record_insert_breakpoint, record_remove_breakpoint): Manage
11471 record breakpoints list. Only remove breakpoints from the
11472 inferior if they had been inserted there in the first place.
11473
11474 2012-01-17 Doug Evans <dje@google.com>
11475
11476 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11477 if we know we don't have a file name to look for.
11478
11479 2012-01-17 Pedro Alves <palves@redhat.com>
11480
11481 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11482 the frame's stop reason is UNWIND_UNAVAILABLE.
11483
11484 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11485
11486 Fix compilation error.
11487 * m2-exp.y (yyerror): Use ANSI C prototype.
11488
11489 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11490
11491 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11492 (growbuf_by_size): Likewise.
11493 (yyerror): Likewise.
11494 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11495 (modblock): Remove variable (was #if 0'ed).
11496 (parse_number): Convert prototype from K&R to ANSI C.
11497 (yyerror): Likewise.
11498 * objc-exp.y (parse_number): Likewise.
11499 (yyerror): Likewise.
11500 (yylex): Remove #if 0'ed code.
11501 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11502 (yyerror): Likewise.
11503
11504 2012-01-16 Tom Tromey <tromey@redhat.com>
11505
11506 * NEWS: Add item.
11507 * symtab.h (compare_filenames_for_search): Declare.
11508 * symtab.c (compare_filenames_for_search): New function.
11509 (iterate_over_some_symtabs): Use it.
11510 * symfile.h (struct quick_symbol_functions)
11511 <map_symtabs_matching_filename>: Change spec.
11512 * psymtab.c (partial_map_symtabs_matching_filename): Use
11513 compare_filenames_for_search. Update for new spec.
11514 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11515 compare_filenames_for_search. Update for new spec.
11516 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11517
11518 2012-01-16 Tom Tromey <tromey@redhat.com>
11519
11520 PR python/13281:
11521 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11522 (struct main_type) <flag_flag_enum>: New field.
11523 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11524 * NEWS: Add entries.
11525 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11526 enums.
11527 * python/lib/gdb/printing.py (_EnumInstance): New class.
11528 (FlagEnumerationPrinter): Likewise.
11529
11530 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11531
11532 * breakpoint.c (create_sals_from_address_default): New function.
11533 (create_breakpoints_sal_default): Likewise.
11534 (decode_linespec_default): Likewise.
11535 (is_marker_spec): Removed.
11536 (strace_marker_p): New function.
11537 (init_breakpoint_sal): Using `strace_marker_p' instead of
11538 `is_marker_spec'.
11539 (create_breakpoint): Call method `create_sals_from_address' from
11540 breakpoint_ops, replacing code that created SALs conditionally
11541 on the type of the breakpoint. Call method `create_breakpoints_sal',
11542 replacing code that created breakpoints conditionally on the type
11543 wanted.
11544 (base_breakpoint_create_sals_from_address): New function.
11545 (base_breakpoint_create_breakpoints_sal): Likewise.
11546 (base_breakpoint_decode_linespec): Likewise.
11547 (base_breakpoint_ops): Add methods
11548 `base_breakpoint_create_sals_from_address',
11549 `base_breakpoint_create_breakpoints_sal' and
11550 `base_breakpoint_decode_linespec'.
11551 (bkpt_create_sals_from_address): New function.
11552 (bkpt_create_breakpoints_sal): Likewise.
11553 (bkpt_decode_linespec): Likewise.
11554 (tracepoint_create_sals_from_address): Likewise.
11555 (tracepoint_create_breakpoints_sal): Likewise.
11556 (tracepoint_decode_linespec): Likewise.
11557 (strace_marker_create_sals_from_address): Likewise.
11558 (strace_marker_create_breakpoints_sal): Likewise.
11559 (strace_marker_decode_linespec): Likewise.
11560 (strace_marker_breakpoint_ops): New variable.
11561 (addr_string_to_sals): Remove `marker_spec'. Call method
11562 `decode_linespec' from breakpoint_ops, replacing code that decoded
11563 an address string into a SAL. Use `strace_marker_p' instead of
11564 `marker_spec'.
11565 (strace_command): Decide whether we are dealing with a static
11566 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11567 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11568 * breakpoint.h (linespec_result, linespec_sals): New forward
11569 declarations.
11570 (breakpoint_ops) <create_sals_from_address>,
11571 <create_breakpoints_sal>, <decode_linespec>: New methods.
11572
11573 2012-01-14 Doug Evans <dje@google.com>
11574
11575 * NEWS: Update text for "maint set python print-stack".
11576 It is deprecated in gdb 7.4 and deleted in 7.5.
11577
11578 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11579
11580 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11581 including curses.h.
11582
11583 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11584
11585 * configure: Regenerate.
11586 * config.in: Regenerate.
11587
11588 2012-01-12 Keith Seitz <keiths@redhat.com>
11589
11590 PR mi/10586
11591 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11592 (ANONYMOUS_UNION_NAME): Define.
11593 (is_path_expr_parent): New function.
11594 (get_path_expr_parent): New function.
11595 (is_anonymous_child): New function.
11596 (create_child_with_value): If the child is anonymous and without
11597 a name, assign an object name to it.
11598 (c_describe_child): Use get_path_expr_parent to determine
11599 the parent expression.
11600 If there field represents an anonymous struct or union and
11601 has no name, set an appropriate display name and expression.
11602 (cplus_describe_child): Likewise.
11603
11604 2012-01-12 Pedro Alves <palves@redhat.com>
11605
11606 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11607 available when %ebp is found to be zero (outermost).
11608
11609 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11610
11611 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11612 an internal gdb_static_assert.
11613 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11614
11615 2012-01-11 Tom Tromey <tromey@redhat.com>
11616
11617 PR gdb/9598:
11618 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11619 catch" and "catch throw".
11620
11621 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11622
11623 * blockframe.c (block_innermost_frame): Start search from selected
11624 frame, if present, or otherwise the current frame.
11625
11626 * c-exp.y (variable): Update innermost_block for
11627 'block COLONCOLON NAME' clause.
11628 * m2-exp.y (variable): Ditto.
11629 * objc-exp.y (variable): Ditto.
11630
11631 2012-01-10 Tom Tromey <tromey@redhat.com>
11632
11633 PR python/13199:
11634 * python/python.c (finish_python_initialization): Set sys.argv.
11635
11636 2012-01-10 Doug Evans <dje@google.com>
11637
11638 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11639 "want_line_info". All callers updated.
11640 (dwarf_decode_lines_1): New function.
11641 (handle_DW_AT_stmt_list): Add function comment.
11642 New arg "want_line_info". All callers updated.
11643 (read_file_scope,read_type_unit_scope): Move comment from
11644 handle_DW_AT_stmt_list to here.
11645
11646 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11647
11648 Fix regression after libiberty/ update for GCC PR 6057 and others.
11649 * c-exp.y (operator) <OPERATOR DELETE>
11650 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11651 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11652 (make_builtin_type, make_name): New variable i, add gdb_assert.
11653 (operator) <OPERATOR NEW>: Update ARGS to 3.
11654 (operator) <OPERATOR DELETE>: Add trailing space.
11655 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11656 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11657 * cp-support.c (cp_canonicalize_string): Check NULL from
11658 cp_comp_to_string, call warning and return.
11659
11660 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11661
11662 Fix duplicate .o files after omitting libbfd.a.
11663 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11664 (SFILES): Add corelow.c.
11665 (COMMON_OBS): Add corelow.o.
11666 (ALLDEPFILES): Remove corelow.c.
11667 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11668 * config/alpha/alpha-osf3.mh: Likewise.
11669 * config/alpha/fbsd.mh: Likewise.
11670 * config/arm/nbsdaout.mh: Likewise.
11671 * config/arm/nbsdelf.mh: Likewise.
11672 * config/i386/i386gnu.mh: Likewise.
11673 * config/ia64/hpux.mh: Likewise.
11674 * config/ia64/linux.mh: Likewise.
11675 * config/m32r/linux.mh: Likewise.
11676 * config/m68k/linux.mh: Likewise.
11677 * config/mips/irix5.mh: Likewise.
11678 * config/mips/irix6.mh: Likewise.
11679 * config/pa/hpux.mh: Likewise.
11680 * config/pa/linux.mh: Likewise.
11681 * config/powerpc/aix.mh: Likewise.
11682 * config/sparc/linux.mh: Likewise.
11683 * config/sparc/linux64.mh: Likewise.
11684 * config/sparc/sol2.mh: Likewise.
11685 * config/vax/vax.mh: Likewise.
11686 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11687 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11688 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11689 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11690 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11691 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11692 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11693 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11694 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11695 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11696 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11697 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11698 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11699 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11700 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11701 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11702 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11703 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11704 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11705 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11706 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11707 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11708 corelow.o from gdb_target_obs.
11709 * corefile.c (core_target): Update the comment on NULL value.
11710 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11711 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11712 MATCHES. Drop YUMMY set on NULL.
11713 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11714 reclaim CORE_DATA if it is already NULL.
11715
11716 2012-01-09 Doug Evans <dje@google.com>
11717
11718 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11719 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11720
11721 2012-01-09 Keith Seitz <keiths@redhat.com>
11722
11723 * breakpoint.c (wrapper.h): Don't include.
11724
11725 2012-01-09 Keith Seitz <keiths@redhat.com>
11726
11727 * Makefile.in (SFILES): Remove wrapper.c.
11728 (HFILES_NO_SRCDIR): Remove wrapper.h.
11729 (COMMON_OBS): Remove wrapper.o.
11730 * cli/cli-interp.c: Don't inlude wrapper.h.
11731 * corelow.c: Likewise.
11732 (core_open): Replace gdb_target_find_new_threads with
11733 TRY_CATCH around target_find_new_threads.
11734 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11735 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11736 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11737 evaluate_expression.
11738 (varobj_set_value): Likewise for evaluate_expression and
11739 value_assign.
11740 (install_new_variable): Likewise for value_fetch_lazy.
11741 (adjust_value_for_child_access): Likewise for value_ind.
11742 (c_describe_child): Likewise for value_subscript and
11743 value_ind.
11744 (c_value_of_root): Likewise for evaluate_expression.
11745 * wrapper.c: Remove.
11746 * wrapper.h: Remove.
11747
11748 2012-01-09 Doug Evans <dje@google.com>
11749
11750 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11751 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11752 "abfd" args with "section". All callers updated.
11753 Error checking code moved ...
11754 (error_check_comp_unit_head): ... here. New function.
11755 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11756 Delete arg "abfd". New arg "type_offset". All callers updated.
11757 (create_debug_types_hash_table): Simplify by using
11758 read_and_check_type_unit_head.
11759
11760 * parser-defs.h (namecopy): Delete.
11761 * parse.c (namecopy, namecopy_size): Move into copy_name.
11762
11763 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11764
11765 Partially fix duplicate .o files after omitting libbfd.a.
11766 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11767 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11768 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11769 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11770 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11771 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11772 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11773
11774 2012-01-09 Pedro Alves <palves@redhat.com>
11775
11776 * MAINTAINERS: Update my email address.
11777
11778 2012-01-08 Doug Evans <dje@google.com>
11779
11780 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11781 n_type_units. Rename type_comp_units to all_type_units.
11782 All uses updated.
11783 (add_signatured_type_cu_to_table): Renamed from
11784 add_signatured_type_cu_to_list. All callers updated.
11785
11786 * gdbtypes.h (struct cplus_struct_type): Delete member
11787 nfn_fields_total. All uses removed.
11788
11789 2012-01-06 Doug Evans <dje@google.com>
11790
11791 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11792 to top of file.
11793 (dwarf2_find_comp_unit): Delete.
11794 (process_psymtab_comp_unit): Make result "void".
11795 Delete args buffer, info_ptr, buffer_size, and replace with
11796 "section". All callers updated.
11797 (dwarf2_build_psymtabs_hard): Simplify.
11798
11799 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11800 Thiago Jung Bauermann <bauerman@br.ibm.com>
11801
11802 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11803 before `struct gdb_exception'.
11804 * breakpoint.c (update_global_location_list_nothrow)
11805 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11806 * cp-abi.c (value_rtti_type): Likewise.
11807 * cp-support.c (cp_validate_operator): Likewise.
11808 * infrun.c (insert_exception_resume_breakpoint)
11809 (check_exception_resume, keep_going): Likewise.
11810 * mi-interp.c (mi_breakpoint_created)
11811 (mi_breakpoint_modified): Likewise.
11812 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11813 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11814 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11815
11816 2012-01-05 Doug Evans <dje@google.com>
11817
11818 * dwarf2read.c (statement_prologue): Delete, unused.
11819
11820 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11821 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11822
11823 * dwarf2read.c (comp_unit_header): Delete, unused.
11824
11825 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11826
11827 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11828 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11829
11830 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11831
11832 * infrun.c (normal_stop): Don't skip calling the normal_stop
11833 observers if the thread was doing a multi-step, but stopped for
11834 some reason other than stepping.
11835
11836 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11837
11838 * cli/cli-decode.h: Add comments.
11839 (CMD_LIST_AMBIGUOUS): Moved to command.h
11840 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11841 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11842 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11843 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11844 (add_com, add_com_alias, add_info, add_info_alias)
11845 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11846 declarations.
11847 * command.h: Add and adjust comments.
11848 (CMD_LIST_AMBIGUOUS): Moved here.
11849 (help_cmd, help_cmd_list): Delete declarations.
11850
11851 2012-01-04 Doug Evans <dje@google.com>
11852
11853 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11854 All callers updated.
11855 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11856 Replace all arguments with "per_cu". All callers updated.
11857
11858 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11859
11860 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11861 New arg "per_cu". All callers updated.
11862
11863 Delete #if 0'd out code.
11864 * language.c (binop_result_type): Delete.
11865 (simple_type, ordered_type, same_type, integral_type): Delete.
11866 (numeric_type, character_type, string_type, boolean_type): Delete.
11867 (float_type, structured_type): Delete.
11868 * language.h: Update.
11869
11870 2012-01-04 Tom Tromey <tromey@redhat.com>
11871
11872 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11873
11874 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11875
11876 * corefile.c (close_exec_file): Delete.
11877 (reopen_exec_file): Remove commented out code that seems related
11878 to close_exec_file, which is being deleted here.
11879 * inferior.h (close_exec_file): Delete.
11880 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11881
11882 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11883
11884 * ada-lang.c: #include "cli/cli-utils.h".
11885 (get_selections): Use skip_spaces.
11886 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11887 (catch_ada_exception_command_split): Use skip_spaces.
11888 (ada_decode_assert_location): Likewise.
11889
11890 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11891
11892 * linespec.c (decode_line_internal): Check for C++ or Java
11893 compound constructs only if the current language is C, C++
11894 or Java.
11895
11896 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11897
11898 Revert:
11899 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11900 Joel Brobecker <brobecker@adacore.com>
11901 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11902 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11903 3 times.
11904 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11905 fall through into AT_ENTRY_POINT.
11906 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11907 DUMMY_ADDR with it.
11908 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11909 PPC_INSN_SIZE skip to 3 times.
11910
11911 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11912
11913 * linespec.c (add_minsym): Preserve function descriptors.
11914
11915 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11916
11917 * breakpoint.c (all_locations_are_pending): Consider locations
11918 in program spaces executing during startup pending as well.
11919
11920 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11921
11922 Copyright year update in most files of the GDB Project.
11923
11924 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11925
11926 * copyright.sh: Delete.
11927 * copyright.py: Rewrite.
11928
11929 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11930
11931 * gnulib/extra/update-copyright: New file, imported from gnulib.
11932
11933 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11934
11935 * README (Copyright and License Notices): New section.
11936
11937 2012-01-03 Tom Tromey <tromey@redhat.com>
11938
11939 PR python/12533:
11940 * python/py-value.c (valpy_dereference, valpy_get_address
11941 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11942 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11943 (valpy_absolute, valpy_richcompare): Free intermediate values.
11944
11945 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11946
11947 * ada-lang.c: Reformat the copyright notice.
11948
11949 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11950
11951 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11952 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11953 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11954 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11955 Revert this part of:
11956 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11957 Build gdb directly from *.o files not using libgdb.a.
11958 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11959
11960 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11961
11962 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11963 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11964 Reformat the copyright header.
11965
11966 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11967
11968 Revert this part of:
11969 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11970 Remove the gdbtui binary.
11971 * gdb.c (main): Remove args.interpreter_p initialization.
11972 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11973 * main.h (struct captured_main_args): Remove interpreter_p.
11974
11975 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11976
11977 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11978
11979 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11980
11981 * top.c (print_gdb_version): Update copyright year.
11982
11983 2012-01-02 Yao Qi <yao@codesourcery.com>
11984
11985 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11986
11987 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11988 Joel Brobecker <brobecker@adacore.com>
11989
11990 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11991 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11992 3 times.
11993 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11994 fall through into AT_ENTRY_POINT.
11995 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11996 DUMMY_ADDR with it.
11997 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11998 PPC_INSN_SIZE skip to 3 times.
11999
12000 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12003 the return value.
12004 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12005
12006 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12007
12008 Build gdb directly from *.o files not using libgdb.a.
12009 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12010 (COMMON_OBS): Remove solib-target.o.
12011 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12012 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12013 (LIBGDB_OBS, libgdb.a): Move it above.
12014 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12015 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12016 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12017 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12018 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12019 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12020 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12021 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12022 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12023 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12024 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12025 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12026 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12027 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12028 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12029 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12030 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12031 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12032 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12033 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12034 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12035 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12036 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12037 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12038 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12039 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12040 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12041
12042 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12043
12044 Remove the gdbtui binary.
12045 * .gitignore (/gdbtui): Remove.
12046 * Makefile.in (TUI): Remove.
12047 (SUBDIR_TUI_OBS): Remove tui-main.o.
12048 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12049 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12050 (tui-main.o): Remove.
12051 (all_object_files): Remove tui-main.o.
12052 * NEWS: New note for the gdbtui removal.
12053 * configure: Rebuilt.
12054 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12055 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12056 CONFIG_UNINSTALL respectively.
12057 * gdb.c (main): Remove args.interpreter_p initialization.
12058 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12059 * main.h (struct captured_main_args): Remove interpreter_p.
12060 * tui/tui-main.c: Remove.
12061
12062 2012-01-01 Doug Evans <dje@google.com>
12063
12064 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12065 (dwarf2_physname, read_import_statement): Ditto.
12066 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12067 (process_structure_scope read_subroutine_type): Ditto.
12068 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12069 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12070 (dwarf2_fetch_die_location_block): Ditto.
12071 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12072
12073 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12074 All callers updated.
12075 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12076 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12077 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12078
12079 * dwarf2read.c (load_cu): Move assert to more useful location.
12080
12081 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12082 All callers updated.
12083
12084 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12085 (dwarf2_elf_names): Minor reformat.
12086 (dwarf2_per_cu_data): Tweak comment.
12087 (dwarf2_read_section): Fix comment.
12088 (create_all_comp_units): Fix comment.
12089 (load_full_comp_unit): Fix comment.
12090 (process_full_comp_unit): Fix comment.
12091 (read_signatured_type): Fix comment.
12092
12093 For older changes see ChangeLog-2011.
12094 \f
12095 Local Variables:
12096 mode: change-log
12097 left-margin: 8
12098 fill-column: 74
12099 version-control: never
12100 coding: utf-8
12101 End:
This page took 0.273888 seconds and 5 git commands to generate.