* target.h (inferior_has_forked, inferior_has_vforked)
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-06 Tom Tromey <tromey@redhat.com>
2
3 * target.h (inferior_has_forked, inferior_has_vforked)
4 (inferior_has_execd, inferior_has_called_syscall): Remove
5 declarations.
6
7 2012-11-06 Pierre Muller <muller@sourceware.org>
8
9 * remote.c (remote_insert_hw_breakpoint): ARI fix,
10 add missing internalization markup.
11
12 2012-11-06 Pedro Alves <palves@redhat.com>
13
14 PR gdb/14810
15
16 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
17
18 2012-11-06 Pierre Muller <muller@sourceware.org>
19
20 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
21 is not executable.
22
23 2012-11-05 Joel Brobecker <brobecker@adacore.com>
24
25 * gnulib/update-gnulib.sh: New script.
26
27 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
28
29 * MAINTAINERS: Update my email address.
30
31 2012-11-05 Tom Tromey <tromey@redhat.com>
32
33 * frame.c (put_frame_register): Don't use temporary buffer.
34
35 2012-11-05 Pedro Alves <palves@redhat.com>
36
37 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
38 child. Clear 'pending_detach'.
39 * infrun.c (handle_vfork_child_exec_or_exit): Clear
40 'pending_detach' in the vfork parent.
41
42 2012-11-05 Doug Evans <dje@google.com>
43
44 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
45 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
46 * dwarf2read.c: #include "elf-bfd.h".
47 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
48 (dwop_section_names): Renamed from dwo_section names. All uses
49 updated. Add entries for .debug_cu_index, .debug_tu_index.
50 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
51 All uses updated.
52 (struct dwp_sections): New type.
53 (struct virtual_dwo_sections): New type.
54 (struct dwp_hash_table): New type.
55 (struct dwp_file): New type.
56 (init_cutu_and_read_dies): Ensure DWO info/types section has been
57 read in. Handle DWOs coming from DWP files.
58 (lookup_dwo_file_slot): New function.
59 (dwarf2_locate_dwo_sections): Move definition closer to use.
60 (create_dwo_debug_info_hash_table_reader): Renamed from
61 create_debug_info_hash_table_reader. All callers updated.
62 (create_dwo_debug_info_hash_table): Renamed from
63 create_debug_info_hash_table. All callers updated.
64 (create_dwp_hash_table): New function.
65 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
66 (lookup_dwo_in_dwp): New function.
67 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
68 is_dwp. All callers updated.
69 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
70 (open_and_init_dwo_file): Renamed from init_dwo_file.
71 All callers updated.
72 (lookup_dwo_file): Delete.
73 (dwarf2_locate_dwp_sections): New function.
74 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
75 (allocate_dwp_loaded_cutus_table): New function.
76 (open_and_init_dwp_file): New function.
77 (lookup_dwo_cutu): New function.
78 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
79
80 2012-11-03 Yao Qi <yao@codesourcery.com>
81
82 Fix PR gdb/14617.
83 * breakpoint.c (trace_pass_set_count): Call
84 observer_notify_breakpoint_modified instead of
85 observer_notify_tracepoint_modified.
86 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
87
88 2012-11-02 Tom Tromey <tromey@redhat.com>
89
90 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
91 argument to complete_on_enum.
92
93 2012-11-02 Tom Tromey <tromey@redhat.com>
94
95 * configure: Rebuild.
96 * configure.ac (build_warnings): Add -Wempty-body.
97 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
98 * remote.c (handle_notification): Use braces for empty 'else' body.
99 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
100 'else' body.
101 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
102 'else' body.
103 * solib-som.c (som_relocate_section_addresses): Use braces
104 for empty 'else' body.
105 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
106 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
107
108 2012-11-02 Pedro Alves <palves@redhat.com>
109
110 PR gdb/14766
111
112 * infrun.c (handle_inferior_event)
113 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
114 null_ptid before handling a vfork child exec or exit. Switch to
115 the event ptid afterwards.
116
117 2012-11-02 Yao Qi <yao@codesourcery.com>
118
119 * std-operator.def: Remove OP_LABELED.
120 * eval.c: Remove the declaration of 'get_label'.
121 (get_label): Remove.
122 (evaluate_struct_tuple): Remove code handling OP_LABELED.
123 Update comment.
124 Remove local variable 'variantno' and related code.
125 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
126 with 'fieldno'.
127 * expprint.c (print_subexp_standard): Likewise.
128 (dump_subexp_body_standard): Likewise.
129 * parse.c (operator_length_standard): Likewise.
130
131 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
132
133 Incorporate ARI web page generator into GDB sources.
134 * contrib/ari/create-web-ari-in-src.sh: New file.
135 * contrib/ari/gdb_ari.sh: New file.
136 * contrib/ari/gdb_find.sh: New file.
137 * contrib/ari/update-web-ari.sh: New file.
138
139 2012-10-31 Tom Tromey <tromey@redhat.com>
140
141 * gdbarch.c: Rebuild.
142 * gdbarch.sh: Remove references to gdbarch_swap.
143 * corelow.c (core_open): Remove obsolete comment.
144
145 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
146
147 PR cli/14772
148 * c-typeprint.c (c_print_type): Don't print a space for vector
149 types, this is handled within the suffix.
150 (c_type_print_varspec_suffix): Add a space to vector suffix.
151
152 2012-10-26 Pedro Alves <palves@redhat.com>
153
154 * amd64-tdep.c (amd64_relocate_instruction): Use
155 store_unsigned_integer instead of memcpy.
156 * i386-tdep.c (i386_relocate_instruction): Ditto.
157
158 2012-10-26 Pedro Alves <palves@redhat.com>
159
160 * infrun.c (handle_inferior_event): Merge handling of
161 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
162 switch case.
163
164 2012-10-26 Pedro Alves <palves@redhat.com>
165
166 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
167 Remove comment.
168
169 2012-10-26 Pedro Alves <palves@redhat.com>
170
171 * target.c (target_waitstatus_to_string): Handle
172 TARGET_WAITKIND_VFORK_DONE.
173
174 2012-10-26 Pedro Alves <palves@redhat.com>
175
176 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
177 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
178
179 2012-10-24 Tristan Gingold <gingold@adacore.com>
180
181 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
182 Add comments.
183
184 2012-10-24 Joel Brobecker <brobecker@adacore.com>
185
186 * ravenscar-thread.c (ravenscar_wait): Only update the list
187 of threads and inferior_ptid if the inferior is still alive.
188
189 2012-10-24 Joel Brobecker <brobecker@adacore.com>
190
191 * ada-lang.c (is_known_support_routine): Use lbasename when
192 matching the symtab's filename against
193 known_runtime_file_name_patterns.
194
195 2012-10-24 Joel Brobecker <brobecker@adacore.com>
196
197 * ada-lang.c (ada_same_array_size_p): New function.
198 (ada_promote_array_of_integrals): New function.
199 (coerce_for_assign): Add handling of arrays where the elements
200 are integrals of a smaller size than the size of the target
201 array element type.
202
203 2012-10-24 Joel Brobecker <brobecker@adacore.com>
204
205 * doublest.c (convert_doublest_to_floatformat): Fix comparison
206 against maximum exponent value.
207
208 2012-10-24 Joel Brobecker <brobecker@adacore.com>
209
210 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
211 "unwind-seh.c".
212
213 2012-10-24 Joel Brobecker <brobecker@adacore.com>
214
215 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
216 strip typedef layer when computing the fixed type's field type,
217 only when computing its size.
218
219 2012-10-24 Mark Kettenis <kettenis@gnu.org>
220
221 PR gdb/12783
222 * i386-tdep.c (i386_return_value): Handle complex double and long
223 double.
224
225 2012-10-24 Joel Brobecker <brobecker@adacore.com>
226
227 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
228 New local variable args_len.
229 Quote the name of the executable when computing the command line.
230
231 2012-10-23 Mark Kettenis <kettenis@gnu.org>
232
233 PR gdb/12796
234 PR gdb/12798
235 PR gdb/12800
236 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
237 AMD64_FTAG_REGNUM.
238 * amd64-tdep.c (amd64_classify): Classify complex types.
239 (amd64_return_value): Handle the COMPLEX_X87 class.
240
241 2012-10-23 Joel Brobecker <brobecker@adacore.com>
242
243 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
244 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
245
246 2012-10-23 Joel Brobecker <brobecker@adacore.com>
247
248 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
249 function.
250 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
251 to amd64_windows_auto_wide_charset.
252
253 2012-10-23 Yao Qi <yao@codesourcery.com>
254
255 * event-top.c (mark_async_signal_handler_wrapper): Remove.
256 * event-top.h: Remove its declaration.
257 (async_request_quit): Call mark_async_signal_handler instead of
258 mark_async_signal_handler_wrapper.
259 (async_do_nothing, async_disconnect): Likewise.
260 (async_stop_sig): Likewise.
261 * remote.c (handle_remote_sigint): Likewise.
262 (handle_remote_sigint_twice): Likewise.
263
264 2012-10-23 Yao Qi <yao@codesourcery.com>
265
266 * event-top.c (sigint_token, sighup_token): Replace 'void *'
267 with 'static struct async_signal_handler *'.
268 (sighup_token, sigquit_token, sigstp_token): Likewise.
269
270 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
271
272 * gdbarch.sh (function_list): Use 'pstring' when printing
273 a variable which could return NULL.
274 * gdbarch.c: Regenerate.
275
276 2012-10-10 Joel Brobecker <brobecker@adacore.com>
277 Tom Tromey <tromey@redhat.com>
278
279 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
280 inneffective if condition by gdb assertion. Add function
281 description comment.
282
283 2012-10-19 Joel Brobecker <brobecker@adacore.com>
284
285 * parser-defs.h (struct exp_descriptor): Document constraint
286 on return value for "op_name" callbacks.
287
288 2012-10-18 Tom Tromey <tromey@redhat.com>
289
290 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
291 * symtab.c (iterate_over_some_symtabs): Constify.
292 * source.h (symtab_to_fullname): Return 'const char *'.
293 * source.c (symtab_to_fullname): Return 'const char *'.
294 * python/py-symtab.c (stpy_fullname): Constify.
295 * cli/cli-cmds.c (edit_command): Constify.
296 * breakpoint.c (print_breakpoint_location)
297 (update_static_tracepoint): Constify.
298
299 2012-10-18 Tom Tromey <tromey@redhat.com>
300
301 * breakpoint.c (compare_breakpoints): Fix comparison.
302
303 2012-10-18 Tom Tromey <tromey@redhat.com>
304
305 * valprint.c (generic_emit_char, generic_printstr): Pass size of
306 gdb_wchar_t to convert_between_encodings.
307
308 2012-10-17 Yao Qi <yao@codesourcery.com>
309
310 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
311 more parameter 'inferior'.
312 * corefile.c (write_memory_with_notification): Caller update.
313
314 * mi/mi-cmd-var.c: Include "mi-main.h".
315 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
316 to 1 and restore it later.
317 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
318 and "data-write-memory-bytes.
319 * mi/mi-interp.c: Include objfiles.h.
320 (mi_interpreter_init): Call observer_attach_memory_changed.
321 (mi_memory_changed): New.
322 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
323 New field.
324
325 * NEWS: Mention new MI notification "memory-changed".
326
327 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
330
331 2012-10-15 Doug Evans <dje@google.com>
332
333 New option -nh: inhibit loading of ~/.gdbinit.
334 * NEWS: Mention -nh.
335 * main.c (captured_main): Recognize and process -nh.
336 (print_gdb_help): Mention -nh.
337 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
338
339 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
340
341 PR backtrace/14646
342 PR gdb/14647
343 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
344 pc_regnum_from_eax.
345 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
346 nor pc_regnum_from_eax.
347 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
348 nor pc_regnum_from_eax.
349
350 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 Fix entry values resolving in inlined frames.
353 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
354 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
355 entries of FRAME.
356
357 2012-10-15 Joel Brobecker <brobecker@adacore.com>
358
359 * configure.ac: Build with -DMS_WIN64 if building with Python
360 enabled using GCC on amd64-windows.
361 * configure: Regenerate.
362
363 2012-10-15 Tom Tromey <tromey@redhat.com>
364
365 PR python/14635:
366 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
367 to Py_None.
368
369 2012-10-15 Tom Tromey <tromey@redhat.com>
370
371 PR python/14634:
372 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
373
374 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
375
376 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
377 reset thread numbering back to 1.
378
379 2012-10-11 Doug Evans <dje@google.com>
380
381 PR breakpoints/14643.
382 * linespec.c (struct ls_parser): New member keyword_ok.
383 (linespec_lexer_lex_string): Add comment.
384 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
385 for one.
386 (parse_linespec): Set keyword_ok.
387
388 2012-10-10 Doug Evans <dje@google.com>
389
390 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
391 "0x" prefix on address in log message.
392
393 * dwarf2read.c (read_1_byte): Add const to buf parameter.
394 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
395 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
396 (lookup_dwo_file): Add const to dwo_name parameter.
397 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
398
399 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
400
401 Fix crash during stepping on ppc32.
402 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
403 SYM.
404
405 2012-10-03 Doug Evans <dje@google.com>
406
407 PR symtab/14601
408 * buildsym.c (buildsym_init): Reset using_directives to NULL.
409
410 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
411
412 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
413 output and use uint32_t not long to ensure 4 byte size.
414
415 2012-10-02 Joel Brobecker <brobecker@adacore.com>
416
417 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
418 unref'ed it.
419
420 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
421
422 * target.c (simple_search_memory): Include access length in
423 warning message.
424
425 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
426 Edjunior Machado <emachado@linux.vnet.ibm.com>
427
428 PR gdb/13989
429 * solib.c (solib_find): Prevent GDB from loading native libraries when
430 debugging a cross-target corefile.
431
432 2012-09-28 selven <pcthegreat@gmail.com>
433
434 Make definition match declaration.
435
436 * regcache.c (regcache_register_status): Change return type to
437 enum register_status.
438
439 2012-09-28 Yao Qi <yao@codesourcery.com>
440
441 * mi/mi-main.c (mi_cmd_data_write_memory): Call
442 write_memory_with_notification instead of write_memory.
443 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
444 instead of target_write_memory.
445
446 2012-09-28 Yao Qi <yao@codesourcery.com>
447
448 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
449 when the length of content is not an even number.
450
451 2012-09-27 Tom Tromey <tromey@redhat.com>
452
453 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
454 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
455
456 2012-09-27 Joel Brobecker <brobecker@adacore.com>
457
458 * sol-thread.c (sol_thread_fetch_registers)
459 (sol_thread_store_registers): Delete commented out code.
460
461 2012-09-27 Joel Brobecker <brobecker@adacore.com>
462
463 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
464 Move these functions to sparc-sol-thread.c.
465 * sparc-sol-thread.c: New file.
466 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
467 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
468 configurations.
469 * configure: Regenerate.
470
471 2012-09-27 Joel Brobecker <brobecker@adacore.com>
472
473 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
474 Remove commented-out code.
475
476 2012-09-27 Joel Brobecker <brobecker@adacore.com>
477
478 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
479 Enable this code for sparc hosts only.
480
481 2012-09-27 Joel Brobecker <brobecker@adacore.com>
482
483 * procfs.h (procfs_find_LDT_entry): Add declaration.
484 * sol-thread.c (ps_lgetLDT): Delete local declaration of
485 function procfs_find_LDT_entry.
486
487 2012-09-27 Joel Brobecker <brobecker@adacore.com>
488
489 * procfs.c (proc_get_LDT_entry): Make static.
490
491 2012-09-27 Joel Brobecker <brobecker@adacore.com>
492
493 * procfs.c (proc_find_memory_regions): Fix declaration.
494
495 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
496
497 * amd64-tdep.c (amd64_return_value): Revert previous change
498 that used TYPE_LENGTH directly.
499 * bfin-tdep.c (bfin_extract_return_value): Likewise.
500 (bfin_store_return_value): Likewise.
501 * cris-tdep.c (cris_store_return_value): Likewise.
502 (cris_extract_return_value): Likewise.
503 * h8300-tdep.c (h8300_extract_return_value): Likewise.
504 * hppa-tdep.c (hppa64_return_value): Likewise.
505 * lm32-tdep.c (lm32_store_return_value): Likewise.
506 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
507 * spu-tdep.c (spu_value_from_register): Likewise.
508 * vax-tdep.c (vax_return_value): Likewise.
509
510 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
511
512 * gdbtypes.c (lookup_array_range_type): Expand parameters
513 LOW_BOUND and HIGH_BOUND to LONGEST.
514 (lookup_string_range_type): Likewise.
515 * gdbtypes.h (lookup_array_range_type): Likewise.
516 (lookup_string_range_type): Likewise.
517 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
518 Expand HIGHBOUND to ssize_t.
519 (value_string): Likewise.
520 * value.h (value_cstring): Expand parameter LEN to ssize_t.
521 (value_string): Likewise.
522
523 2012-09-27 Yao Qi <yao@codesourcery.com>
524
525 PR breakpoints/13898
526 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
527 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
528 per breakpoint type.
529
530 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
531
532 * procfs.c: Add gdb_bfd header.
533 * rs6000-nat.c: Likewise.
534 * solib-pa64.c: Likewise.
535 * spu-linux-nat.c: Likewise.
536 * windows-nat.c: Likewise.
537
538 2012-09-26 Tom Tromey <tromey@redhat.com>
539
540 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
541
542 2012-09-26 Tom Tromey <tromey@redhat.com>
543
544 * dwarf2read.c (mark_common_block_symbol_computed): New function.
545 (read_common_block): Handle child DIEs with
546 DW_AT_data_member_location.
547 (new_symbol_full): Add special case for common blocks.
548
549 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
550 Tom Tromey <tromey@redhat.com>
551
552 * dwarf2read.c (read_common_block): Rewrite.
553 (new_symbol_full): Handle DW_TAG_common_block.
554 * f-lang.c (head_common_list, find_common_for_function):
555 Remove.
556 * f-lang.h (struct common_entry, struct saved_f77_common,
557 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
558 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
559 BLANK_COMMON_NAME_LOCAL): Remove.
560 (struct common_block): New.
561 * f-valprint.c (list_all_visible_commons): Remove.
562 (info_common_command_for_block): New function.
563 (info_common_command): Use it.
564 * stack.c (iterate_over_block_locals): Special case for
565 COMMON_BLOCK_DOMAIN.
566 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
567 constant.
568 (struct general_symbol_info) <value.common_block>: New field.
569 (SYMBOL_VALUE_COMMON_BLOCK): New define.
570
571 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
572 Tom Tromey <tromey@redhat.com>
573
574 * f-lang.c (allocate_saved_bf_node,
575 allocate_saved_function_node, allocate_saved_f77_common_node,
576 allocate_common_entry_node, tail_common_list, current_common,
577 saved_bf_list, saved_bf_list_end, current_head_bf_list,
578 tmp_bf_ptr, add_common_block, add_common_entry,
579 find_first_common_named, patch_common_entries,
580 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
581 global_remote_debug, get_bf_for_fcn, saved_function_list,
582 saved_function_list_end, clear_function_list, struct saved_fcn,
583 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
584 SAVED_BF, SAVED_BF_PTR): Remove.
585 * f-lang.h (tail_common_list, current_common,
586 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
587 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
588 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
589 real_main_c_value): Remove.
590 * f-valprint.c (there_is_a_visible_common_named): Remove.
591
592 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
593
594 * breakpoint.c (update_global_location_list): Ignore previous
595 duplicate status of a breakpoint when starting a new scan for
596 duplicate breakpoints.
597
598 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
599 PR breakpoints/14419
600 * arm-tdep.c (arm_skip_prologue): Extending producer check to
601 support LLVM compiler.
602
603 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
604
605 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
606 * bfin-tdep.c (bfin_extract_return_value): Likewise.
607 (bfin_store_return_value): Likewise.
608 * cris-tdep.c (cris_store_return_value): Likewise.
609 (cris_extract_return_value): Likewise.
610 * h8300-tdep.c (h8300_extract_return_value): Likewise.
611 * hppa-tdep.c (hppa64_return_value): Likewise.
612 * lm32-tdep.c (lm32_store_return_value): Likewise.
613 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
614 * spu-tdep.c (spu_value_from_register): Likewise.
615 * vax-tdep.c (vax_return_value): Likewise.
616
617 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
618
619 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
620 parameter LEN to ssize_t.
621
622 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
623
624 * ada-valprint.c (ada_val_print_1): Eliminate single-use
625 variable LEN.
626 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
627 directly.
628 (alpha_store_return_value): Likewise.
629 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
630 (amd64_push_arguments): Likewise.
631 * ax-gdb.c (gen_trace_static_fields): Likewise.
632 (gen_traced_pop): Likewise.
633 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
634 * breakpoint.c (update_watchpoint): Likewise.
635 * findcmd.c (parse_find_args): Use local variable for type
636 instead of length.
637 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
638 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
639 (h8300_store_return_value): Likewise.
640 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
641 Use i386_darwin_arg_type_alignment directly.
642 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
643 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
644 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
645 (m68hc11_extract_return_value): Likewise.
646 * mep-tdep.c (mep_push_dummy_call): Likewise.
647 * printcmd.c (float_type_from_length): Likewise.
648 * s390-tdep.c (s390_value_from_register): Likewise.
649 * stack.c (read_frame_arg): Likewise.
650 * tracepoint.c (encode_actions_1): Likewise.
651 * valops.c (value_fetch_lazy): Use local variable for type
652 instead of length. Use TYPE_LENGTH directly.
653 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
654
655 2012-09-25 Joel Brobecker <brobecker@adacore.com>
656
657 * symtab.c (skip_prologue_sal): Fix typo in comment.
658
659 2012-09-25 Joel Brobecker <brobecker@adacore.com>
660
661 * linespec.c (create_sals_line_offset): Fix typo in comment.
662
663 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
664
665 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
666 use plongest to print the array size.
667
668 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
669
670 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
671 * p-valprint.c (pascal_type_print_base): Likewise.
672
673 2012-09-22 Yao Qi <yao@codesourcery.com>
674
675 * remote.c (remote_get_trace_status): Remove setting default
676 values of fields of 'ts'.
677
678 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 Fix internal error on canonicalization of clang types.
681 * cp-name-parser.y (operator): New comment at make_operator call for
682 new, delete, new[] and delete[].
683 (exp): Use "sizeof ". Add new comment at make_operator call.
684
685 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 Fix disassemble without parameters in tailcall frame.
688 * cli/cli-cmds.c (disassemble_current_function): Use
689 get_frame_address_in_block.
690
691 2012-09-21 Tom Tromey <tromey@redhat.com>
692
693 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
694 TYPE_CODE_UNION>: Unify, removing a goto.
695
696 2012-09-21 Tom Tromey <tromey@redhat.com>
697
698 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
699
700 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
701
702 * findvar.c (read_frame_register_value): Mark the result value as
703 optimized out if any of the input registers have been optimized out.
704
705 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
706
707 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
708
709 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
710
711 * eval.c (evaluate_subexp_standard): Eliminate single-use
712 variable LOWER.
713
714 2012-09-21 Yao Qi <yao@codesourcery.com>
715
716 * mi/mi-interp.c: Declare mi_record_changed.
717 (mi_interpreter_init): Call observer_attach_record_changed.
718 (mi_record_changed): New.
719 * record.c (record_open): Call observer_notify_record_changed.
720 (cmd_record_stop): Call observer_notify_record_changed.
721 * NEWS: Mention it.
722
723 2012-09-20 Tom Tromey <tromey@redhat.com>
724
725 * NEWS: Update.
726 * python/python.c (finalize_python): New function.
727 (_initialize_python): Make a final cleanup.
728
729 2012-09-19 Doug Evans <dje@google.com>
730
731 * buildsym.h (param_symbols): Delete, unused.
732 (context_stack): Delete member "params", unused.
733 * buildsym.c (push_context): Update.
734 * dwarf2read.c (read_func_scope): Update.
735
736 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
737
738 * sh-tdep.c (sh_register_convert_to_virtual)
739 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
740 all callers. Just do a memcpy if not the little-endian case.
741
742 * h8300-tdep.c (h8300_gdbarch_init): Invoke
743 set_gdbarch_double_format and set_gdbarch_long_double_format.
744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
745 set_gdbarch_double_format.
746 * sh-tdep.c (sh_gdbarch_init): Likewise.
747
748 * NEWS: Document the removal of SH's 'regs' command.
749 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
750 command.
751
752 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
753
754 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
755 `jump'.
756
757 2012-09-18 Joel Brobecker <brobecker@adacore.com>
758
759 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
760 language when iterating over symbols.
761
762 2012-09-18 Yao Qi <yao@codesourcery.com>
763
764 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
765 (mi_interpreter_init): Call observer_attach_tsv_created and
766 observer_attach_tsv_deleted.
767 (mi_tsv_created, mi_tsv_deleted): New.
768 * tracepoint.c (delete_trace_state_variable): Call
769 observer_notify_tsv_deleted.
770 (trace_variable_command): Call observer_notify_tsv_created.
771 (delete_trace_variable_command): Call
772 observer_notify_tsv_deleted.
773 (create_tsv_from_upload): Call observer_notify_tsv_created.
774 * NEWS: Mention it.
775
776 2012-09-18 Yao Qi <yao@codesourcery.com>
777
778 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
779 if traceframe changed.
780 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
781 "trace-find".
782 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
783 (mi_interpreter_init): Hook mi_traceframe_changed to observer
784 'traceframe_changed'.
785 (mi_traceframe_changed): New.
786 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
787 New field.
788 * NEWS: Mention the new MI notification.
789
790 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
791
792 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
793
794 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
795
796 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
797 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
798 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
799 Extend code also for PaX support. Convert all gdb_assert to warning
800 calls.
801
802 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 Implement auto-load user conveniences suggested by Doug Evans.
805 * auto-load.c: Include top.h.
806 (file_is_auto_load_safe): New variable advice_printed. Print advice.
807 (_initialize_auto_load): New variable scripts_directory_help. Mention
808 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
809 scripts-directory. Document in online help one can use also files for
810 set auto-load safe-path.
811 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
812 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
813
814 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
815
816 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
817 of LEN.
818
819 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
820
821 * m2-valprint.c (m2_print_array_contents): Eliminate variable
822 ELTLEN and use TYPE_LENGTH directly.
823 (m2_val_print): Likewise.
824 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
825 variable LEN and use TYPE_LENGTH directly.
826 (m68k_svr4_store_return_value): Likewise.
827 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
828 ARGLEN and use TYPE_LENGTH directly.
829 (mips_o64_push_dummy_call): Likewise.
830 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
831 variable LENGTH and use TYPE_LENGTH directly.
832 (s390_function_arg_float): Likewise.
833 (s390_function_arg_integer): Likewise.
834 (s390_push_dummy_call): Likewise.
835 (s390_return_value_convention): Likewise.
836 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
837 TYPE_LENGTH directly.
838
839 2012-09-17 Yao Qi <yao@codesourcery.com>
840
841 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
842 Update comment to add_setshow_integer_cmd.
843 * cli/cli-setshow.c (do_set_command): Handle case
844 'var_zuinteger_unlimited'.
845 (do_show_command): Likewise.
846 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
847 for command 'remotetimeout'.
848 * command.h (enum var_types): New zuinteger_unlimited. Update comment
849 to var_integer.
850 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
851 for command 'set listsize'.
852
853 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
854
855 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
856 variable LEN.
857
858 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
859
860 PR 14119
861 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
862 (frame_pop): Drop also TAILCALL_FRAME frames.
863 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
864
865 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
866 Pedro Alves <palves@redhat.com>
867
868 PR 14548
869 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
870 function start if we are already at function start. Both for
871 reverse-next and for reverse-step into function without line number
872 info.
873
874 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 Code cleanup - rename 'inline' depth to 'artificial' depth.
877 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
878 frame_id_artificial_p, extend the comment.
879 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
880 * frame.c (fprint_frame_id): Rename at a user, change debug output
881 text to "artificial=".
882 (skip_inlined_frames): Rename to ...
883 (skip_artificial_frames): ... here. Extend the comment.
884 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
885 (frame_id_inlined_p): Rename to ...
886 (frame_id_artificial_p): ... here. Rename at a user.
887 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
888 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
889 at a user.
890 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
891 Extend the comment.
892 (frame_id_inlined_p): Rename to ...
893 (frame_id_artificial_p): ... here.
894 * inline-frame.c (inline_frame_this_id): Rename at a user.
895
896 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
897
898 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
899 vector variables using vector_size syntax rather than array
900 syntax.
901
902 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
903
904 * valarith.c (value_concat): Replace unsafe ALLOCA with
905 XMALLOC/XFREE.
906
907 2012-09-14 Pedro Alves <palves@redhat.com>
908
909 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
910
911 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
912
913 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
914 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
915 data-directory as appropriate.
916
917 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
918
919 * printcmd.c (ui_printf): Eliminate single-use variable
920 PARAM_LEN.
921
922 2012-09-14 Yao Qi <yao@codesourcery.com>
923 Pedro Alves <palves@redhat.com>
924
925 * valops.c (value_assign): Move observer_notify_target_changed
926 below to replace reinit_frame_cache.
927
928 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
929
930 Refactor Python "gdb" module into a proper Python package, by
931 introducing a new "_gdb" module for code implemented in C, and
932 using reload/__import__ instead of exec.
933 * python/lib/gdb/__init__.py: Import * from _gdb.
934 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
935 prompt_hook, sys.argv): Moved from finish_python_initialization.
936 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
937 (packages, auto_load_packages): New list and function replacing
938 module_dict and auto-loading code, using __file__ instead of
939 gdb.PYTHONDIR and reload/__import__ instead of exec.
940 (GdbSetPythonDirectory): Replacing function of the same name
941 from finish_python_initialization, using reload/__import__ instead
942 of exec, as well as call auto_load_packages.
943 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
944 gdb_python_module and not gdb_module.
945 * python/python-internal.h (gdb_python_module): Declare.
946 * python/python.c (gdb_python_module): New global.
947 (before_prompt_hook): Check gdb_python_module and not gdb_module.
948 (_initialize_python): Rename gdb module to _gdb.
949 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
950 (finish_python_initialization): Move Python code to
951 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
952 __main__.
953
954 2012-09-13 Pedro Alves <palves@redhat.com>
955
956 * Makefile.in (COMMON_OBS): Add registry.o.
957 * registry.c: New file.
958 * registry.h (struct registry_container): Declare.
959 (registry_data_callback): New typedef.
960 (struct registry_data, struct registry_data_registration, struct
961 registry_data_registry): New type.
962 (register_data_with_cleanup, registry_alloc_data)
963 (registry_callback_adaptor, registry_clear_data)
964 (registry_container_free_data, registry_set_data, registry_data):
965 Declare.
966 (DEFINE_REGISTRY): Refactor structures and functions as shims over
967 the new common structures and functions.
968 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
969 callback typedefs.
970
971 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
972
973 * remote.c (remote_insert_hw_breakpoint): Throw exception if
974 there is an error inserting hardware breakpoints and use the
975 error message from the target.
976
977 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
978 Catch this exception and print the error message contained within. Do not
979 print the default hardware error breakpoint message in this case.
980
981 2012-09-12 Doug Evans <dje@google.com>
982
983 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
984 cu == NULL.
985
986 2012-09-11 Doug Evans <dje@google.com>
987
988 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
989 .gdb_index symbol attributes if there are none.
990
991 2012-09-11 Joel Brobecker <brobecker@adacore.com>
992
993 * symtab.h (struct minimal_symbol) [has_size]: New field.
994 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
995 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
996 * printcmd.c (build_address_symbolic): Only filter out zero-sized
997 minimal symbols if the symbol's size is actually known.
998 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
999 of msymbol's size field. Add comment.
1000 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1001 SET_MSYMBOL_SIZE to set the minimal symbol size.
1002
1003 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1004
1005 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1006 minimal_symbol struct object, rather than setting some of its
1007 fields one by one.
1008
1009 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1010
1011 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1012 passed_a_ptr flag when displaying typedef types.
1013
1014 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1015
1016 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1017 the optimized_out flag is preserved.
1018
1019 2012-09-10 Anthony Green <green@moxielogic.com>
1020
1021 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1022 prologue changes in GCC.
1023
1024 2012-09-10 Keith Seitz <keiths@redhat.com>
1025
1026 PR gdb/13483
1027 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1028 (BOOL_CONVERSION_BADNESS): ... this.
1029 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1030 (rank_one_type): Allow all boolean conversions
1031 permitted by the standard.
1032
1033 2012-09-06 Tom Tromey <tromey@redhat.com>
1034
1035 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1036 Don't decref py_objfile.
1037
1038 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1039
1040 Do not enable -lmcheck by default when Python is enabled with
1041 threading support.
1042 * configure.ac: (python_has_threads) New variable, by testing
1043 if WITH_THREAD is defined in Python.h.
1044 Move --enable-lmcheck after --with-python.
1045 Do not enable -lmcheck by default if python_has_threads=yes.
1046 Warn if --enable-lmcheck and python_has_threads=yes.
1047 * configure: Regenerate.
1048
1049 2012-08-31 Yao Qi <yao@codesourcery.com>
1050
1051 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1052 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1053 Update some commands.
1054 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1055 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1056 to 1.
1057
1058 2012-08-31 Yao Qi <yao@codesourcery.com>
1059
1060 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1061
1062 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1063
1064 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1065
1066 2012-08-29 Doug Evans <dje@google.com>
1067
1068 * main.c (print_gdb_help): Remove reference to
1069 --use-deprecated-index-sections.
1070
1071 2012-08-28 Yao Qi <yao@codesourcery.com>
1072
1073 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1074 (init_cmds): Call add_setshow_uinteger_cmd for command
1075 'max-user-call-depth'.
1076 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1077 declaration of 'max_user_call_depth'.
1078 * frame.c (backtrace_limit): Add 'unsigned'.
1079 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1080 'limit'.
1081 * remote.c (remoteaddresssize): Add 'unsigned'.
1082 (remote_address_masked): Change local var 'address_size' to
1083 'unsigned'.
1084 (_initialize_remote): Call add_setshow_uinteger_cmd for
1085 'remoteaddresssize'.
1086 * top.c (history_size): Add 'unsigned'.
1087 (show_commands): Change local variables to 'unsigned'.
1088 (set_history_size_command): Don't check history_size is negative.
1089 Adjust the condition to call unstifle_history and set history_size
1090 to UNIT_MAX.
1091
1092 2012-08-28 Pedro Alves <palves@redhat.com>
1093
1094 PR gdb/14428
1095
1096 * infcmd.c (default_print_one_register_info): New, factored out
1097 from default_print_registers_info.
1098 (default_print_registers_info): Use it. Mark value unavailable if
1099 necessary.
1100 (registers_info): Print user registers with
1101 default_print_one_register_info.
1102
1103 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1104
1105 PR tui/14486
1106 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1107 is not NULL before referencing it.
1108
1109 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1112 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1113 original PC for it.
1114
1115 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1116 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 * auto-load.c (auto_load_objfile_script): Rename to ...
1119 (auto_load_objfile_script_1): ... here, change variable realname to
1120 parameter realname, document it, add return value, add variable retval.
1121 (auto_load_objfile_script): New function.
1122
1123 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1126 followed by a whitespace.
1127
1128 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 PR gdb/14494.
1131 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1132 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1133 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1134 here.
1135
1136 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1137
1138 * memattr.c (create_mem_region): Fix memory region overlapping
1139 checking.
1140
1141 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1142
1143 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1144 with xmalloc/cleanup.
1145 * mt-tdep.c (mt_push_dummy_call): Likewise.
1146 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1147 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1148
1149 2012-08-24 Yao Qi <yao@codesourcery.com>
1150
1151 * jv-exp.y (push_expression_name): Add "." at the end of error
1152 message.
1153
1154 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1155
1156 Document how to return from "python-interactive" to GDB.
1157 * python/python.c (_initialize_python): Update documentation.
1158
1159 2012-08-23 Pedro Alves <palves@redhat.com>
1160
1161 * infrun.c (_initialize_infrun) <handle command help text>:
1162 Mention that multiple signals are supported.
1163
1164 2012-08-23 Pedro Alves <palves@redhat.com>
1165
1166 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1167 string.
1168
1169 2012-08-23 Yao Qi <yao@codesourcery.com>
1170
1171 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1172 (tfind_1): Don't call registers_changed, set_traceframe_num,
1173 and clear_traceframe_info.
1174 Call set_current_traceframe.
1175 (set_current_traceframe): call set_traceframe_num.
1176
1177 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1178
1179 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1180 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1181
1182 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1183
1184 Enable readline in Python in a GDB-specific way and block the
1185 standard Python readline module to prevent conflicts with GDB.
1186 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1187 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1188 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1189 * python/py-gdb-readline.c: New file.
1190 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1191 prototype.
1192 * python/python.c (_initialize_python): Call
1193 gdbpy_initialize_gdb_readline.
1194
1195 2012-08-22 Keith Seitz <keiths@redhat.com>
1196
1197 * defs.h: Include build-gnulib/config.h
1198
1199 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1200
1201 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1202 and blx pc.
1203
1204 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1205
1206 Add a new "python-interactive" command that starts a standard
1207 Python interactive prompt with "pi" as alias, and add "py" as
1208 an alias to "python".
1209 * NEWS: Mention the new commands.
1210 * python/python.c (eval_python_command): New function.
1211 (python_interactive_command): For "python-interactive" with
1212 arguments, call eval_python_command. For "python-interactive"
1213 without arguments, call PyRun_InteractiveLoop.
1214 (_initialize_python): Add "python-interactive" command with
1215 "pi" as alias, and add "py" as an alias to "python".
1216
1217 2012-08-22 Tom Tromey <tromey@redhat.com>
1218
1219 * defs.h (quit_flag): Don't declare.
1220 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1221 (QUIT): Use new functions.
1222 * event-top.c (command_handler): Use clear_quit_flag.
1223 (handle_sigint): Use set_quit_flag.
1224 (async_request_quit): Use check_quit_flag. Don't check
1225 immediate_quit.
1226 * exceptions.c (throw_exception): Use clear_quit_flag.
1227 * main.c (captured_main): Use clear_quit_flag.
1228 * python/python.c (clear_quit_flag, set_quit_flag)
1229 (check_quit_flag): New functions.
1230 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1231 clear_quit_flag.
1232 * remote.c (remote_wait_as): Use check_quit_flag,
1233 clear_quit_flag.
1234 (remote_start_remote): Call QUIT.
1235 * symfile.c (load_progress): Use check_quit_flag.
1236 * top.c (command_loop): Use clear_quit_flag.
1237 (command_line_input): Call QUIT.
1238 * utils.c (quit_flag): Conditionally define.
1239 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1240 functions.
1241 (prompt_for_continue): Call QUIT. Use quit, not
1242 async_request_quit.
1243 * remote-mips.c (mips_expect_timeout): Call QUIT.
1244 * monitor.c (monitor_expect): Call QUIT.
1245
1246 2012-08-22 Tom Tromey <tromey@redhat.com>
1247
1248 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1249 (async_init_signals): Update.
1250 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1251 (SIGWINCH_HANDLER_BODY): Remove.
1252
1253 2012-08-22 Tom Tromey <tromey@redhat.com>
1254
1255 * jit.c (jit_object_close_impl): Don't malloc the objfile
1256 name.
1257 * objfiles.c (allocate_objfile): Don't malloc the objfile
1258 name.
1259 (free_objfile): Don't free the objfile name.
1260 * objfiles.h (struct objfile) <name>: Update comment.
1261 * symfile.c (reread_symbols): Fix reference counting. Don't
1262 malloc objfile name.
1263
1264 2012-08-22 Tom Tromey <tromey@redhat.com>
1265
1266 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1267 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1268 (symfile_bfd_open): Likewise.
1269 (generic_load): Likewise.
1270 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1271 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1272 gdb_bfd_open.
1273 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1274 Use gdb_bfd_open.
1275 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1276 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1277 (pmon_load_fast): Likewise.
1278 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1279 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1280 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1281 (macho_check_dsym): Likewise.
1282 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1283 (m32r_upload_command): Likewise.
1284 * gdb_bfd.h (gdb_bfd_cache): Declare.
1285 * gdb_bfd.c (struct gdb_bfd_data): New.
1286 (gdb_bfd_cache): New global.
1287 (struct gdb_bfd_cache_search): New.
1288 (hash_bfd): New function.
1289 (eq_bfd): Likewise.
1290 (gdb_bfd_open): Likewise.
1291 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1292 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1293 gdb_bfd_data.
1294 * exec.c (exec_file_attach): Use gdb_bfd_open.
1295 * dsrec.c (load_srec): Use gdb_bfd_open.
1296
1297 2012-08-22 Tom Tromey <tromey@redhat.com>
1298
1299 * dwarf2read.c (macro_start_file): Update.
1300 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1301 (free_objfile_per_bfd_storage): Destroy macro_cache.
1302 (allocate_objfile, free_objfile): Update.
1303 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1304 New field.
1305 (struct objfile) <macro_cache>: Remove.
1306 * symfile.c (reread_symbols): Update.
1307 * symmisc.c (print_symbol_bcache_statistics): Update.
1308 (print_objfile_statistics): Update.
1309
1310 2012-08-22 Tom Tromey <tromey@redhat.com>
1311
1312 * elfread.c (elf_symtab_read): Update.
1313 * objfiles.c (objfiles_bfd_data): New global.
1314 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1315 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1316 (allocate_objfile, free_objfile): Update.
1317 (_initialize_objfiles): Initialize objfiles_bfd_data.
1318 * objfiles.h (struct objfile_per_bfd_storage): New.
1319 (struct objfile) <per_bfd>: New field.
1320 <filename_cache>: Remove.
1321 (set_objfile_per_bfd): Declare.
1322 * symfile.c (reread_symbols): Update. Call
1323 set_objfile_per_bfd.
1324 (allocate_symtab): Update.
1325 * symmisc.c (print_symbol_bcache_statistics): Update.
1326 (print_objfile_statistics): Print the size of the BFD obstack.
1327
1328 2012-08-22 Tom Tromey <tromey@redhat.com>
1329
1330 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1331 * gdb_bfd.c: Use DEFINE_REGISTRY.
1332 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1333 (gdb_bfd_ref): Call bfd_alloc_data.
1334 (gdb_bfd_unref): Call bfd_free_data.
1335
1336 2012-08-22 Tom Tromey <tromey@redhat.com>
1337
1338 * registry.h (struct registry_fields): New.
1339 (REGISTRY_FIELDS): Redefine.
1340 (REGISTRY_ACCESS_FIELD): New macro.
1341 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1342 functions.
1343
1344 2012-08-22 Tom Tromey <tromey@redhat.com>
1345
1346 * auto-load.c (_initialize_auto_load): Update.
1347 * solib-svr4.c (_initialize_svr4_solib): Update
1348 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1349 * solib-darwin.c (_initialize_darwin_solib): Update.
1350 * registry.h: New file.
1351 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1352 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1353 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1354 (register_program_space_data_with_cleanup)
1355 (register_program_space_data, program_space_alloc_data)
1356 (clear_program_space_data, set_program_space_data)
1357 (program_space_data): Don't declare.
1358 * progspace.c: Use DEFINE_REGISTRY.
1359 (struct program_space_data, struct
1360 program_space_data_registration, struct
1361 program_space_data_registry, program_space_data_registry)
1362 (register_program_space_data_with_cleanup)
1363 (register_program_space_data, program_space_alloc_data)
1364 (program_space_free_data, clear_program_space_data)
1365 (set_program_space_data, program_space_data): Remove.
1366 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1367 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1368 (register_objfile_data_with_cleanup, register_objfile_data)
1369 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1370 declare.
1371 * objfiles.c: Use DEFINE_REGISTRY.
1372 (struct objfile_data, struct objfile_data_registration, struct
1373 objfile_data_registry, objfile_data_registry)
1374 (register_objfile_data_with_cleanup, register_objfile_data)
1375 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1376 (set_objfile_data, objfile_data): Remove.
1377 (_initialize_objfiles): Update.
1378 * jit.c (_initialize_jit): Update.
1379 * inflow.c (_initialize_inflow): Update.
1380 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1381 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1382 (register_inferior_data_with_cleanup, register_inferior_data)
1383 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1384 declare.
1385 * inferior.c: Use DEFINE_REGISTRY.
1386 (struct inferior_data, struct inferior_data_registration, struct
1387 inferior_data_registry, inferior_data_registry)
1388 (register_inferior_data_with_cleanup, register_inferior_data)
1389 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1390 (set_inferior_data, inferior_data): Remove.
1391 * auxv.c (_initialize_auxv): Update.
1392 * ada-lang.c (_initialize_ada_language): Update.
1393 * breakpoint.c (_initialize_breakpoint): Update.
1394 * i386-nat.c (i386_use_watchpoints): Update.
1395
1396 2012-08-22 Tom Tromey <tromey@redhat.com>
1397
1398 * exec.c (exec_close, exec_file_attach): Update.
1399 (add_to_section_table): Initialize 'key' field.
1400 (add_target_sections, remove_target_sections): Add 'key' argument.
1401 * exec.h (add_target_sections, remove_target_sections): Add
1402 'key' argument.
1403 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1404 (reload_shared_libraries_1): Update.
1405 * target.h (struct target_section) <key>: New field.
1406
1407 2012-08-22 Tom Tromey <tromey@redhat.com>
1408
1409 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1410
1411 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1412
1413 * symfile.c (allocate_symtab): Use host_address_to_string
1414 function instead of cast of pointer to long which is not
1415 compatible with x86_64-w64-mingw32 build.
1416
1417 2012-08-19 Andrew Pinski <apinski@cavium.com>
1418
1419 * mips-tdep.c (is_octeon): New function.
1420 (is_octeon_bbit_op): New function.
1421 (mips32_next_pc): Handle Octeon's bbit instructions.
1422 (mips32_instruction_has_delay_slot): Likewise.
1423
1424 2012-08-19 Andrew Pinski <apinski@cavium.com>
1425
1426 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1427 before the function.
1428
1429 2012-08-19 Andrew Pinski <apinski@cavium.com>
1430
1431 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1432
1433 2012-08-19 Keith Seitz <keiths@redhat.com>
1434
1435 PR c++/14365
1436 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1437 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1438
1439 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1440
1441 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1442 The typo broke "make TAGS".
1443
1444 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1445
1446 GDB 7.5 released.
1447
1448 2012-08-17 Keith Seitz <keiths@redhat.com>
1449
1450 PR c++/13356
1451 * gdbtypes.c (strict_type_checking): New variable.
1452 (show_strict_type_checking): New function.
1453 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1454 if strict type checking is disabled.
1455 (_initialize_gdbtypes): Add "check type" subcommand.
1456 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1457
1458 2012-08-17 Keith Seitz <keiths@redhat.com>
1459
1460 * language.h (type_mode): Remove.
1461 (type_check): Remove.
1462 (struct language_defn): Remove la_type_check.
1463 (STRICT_TYPE): Remove unused macro.
1464 (type_error): Remove.
1465 * language.c (set_type_range_case): Renamed to ...
1466 (set_range_case): ... this. Update all callers.
1467 Remove type_mode/type_check.
1468 (type_mode): Remove.
1469 (type_check): Remove.
1470 (show_type_command): Remove.
1471 (set_type_command): Remove.
1472 (language_info): Remove type checking output.
1473 (type_error): Remove unused function.
1474 (range_error): Update comment.
1475 (unknown_language_defn): Remove la_type_check.
1476 (auto_language_defn): Likewise.
1477 (local_language_defn): Likewise.
1478 (_initialize_language): Remove "check type" subcommand.
1479 * ada-lang.c (ada_language_defn): Remove la_type_check.
1480 * c-lang.c (c_language_defn): Likewise.
1481 (cplus_language_defn): Likewise.
1482 (asm_language_defn): Likewise.
1483 (minimal_language_defn): Likewise.
1484 * d-lang.c (d_language_defn): Likewise.
1485 * f-lang.c (f_language_defn): Likewise.
1486 * go-lang.c (go_language_defn): Likewise.
1487 * jv-lang.c (java_language_defn): Likewise.
1488 * m2-lang.c (m2_language_defn): Likewise.
1489 * objc-lang.c (objc_language_defn): Likewise.
1490 * opencl-lang.c (opencl_language_defn): Likewise.
1491 * p-lang.c (pascal_language_defn): Likewise.
1492
1493 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1494
1495 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1496
1497 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1498
1499 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1500 New function.
1501 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1502 using the regache. Use ia64_hpux_get_register_from_save_state_t
1503 to access the bsp and bspstore registers if not.
1504
1505 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1506
1507 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1508 * breakpoint.c (detach_breakpoints): Change pid parameter into
1509 a ptid. Adjust code accordingly.
1510 * infrun.c (handle_inferior_event): Delete variable child_pid.
1511 Update call to detach_breakpoints to pass the child ptid for
1512 fork events.
1513 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1514 assert that inferior_ptid's lwp is zero.
1515 (linux_handle_extended_wait): Update call to detach_breakpoints.
1516 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1517 detach_breakpoints.
1518
1519 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1520
1521 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1522 parent, only call detach_breakpoints if tts.tts_event ==
1523 TTEVT_VFORK.
1524
1525 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1526
1527 * dwarf2-frame.c (dwarf2_frame_cache): Use
1528 get_frame_address_in_block instead of get_frame_pc as
1529 the bound for executing the frame's FDE.
1530
1531 2012-08-16 Yao Qi <yao@codesourcery.com>
1532
1533 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1534 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1535 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1536 (c_type_print_varspec_suffix): Likewise.
1537 * eval.c (evaluate_subexp_standard): Likewise.
1538 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1539 (f_type_print_varspec_suffix): Likewise.
1540 * gdbtypes.c (is_scalar_type): Likewise.
1541 (recursive_dump_type): Likewise.
1542 * infcall.c (value_arg_coerce): Likewise.
1543 * m2-valprint.c (m2_val_print): Likewise.
1544 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1545 (pascal_type_print_varspec_suffix): Likewise.
1546 (pascal_type_print_base): Likewise.
1547 * p-valprint.c (pascal_val_print): Likewise.
1548 (pascal_val_print): Likewise.
1549 * valops.c (value_slice): Likewise.
1550 * valprint.c (scalar_type_p): Likewise.
1551 * valarith.c (value_bitstring_subscript): Remove.
1552 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1553 Remove comment on TYPE_CODE_BITSTRING.
1554
1555 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1556 TYPE_CODE_BITSTRING.
1557
1558 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1559 slot 0.
1560
1561 2012-08-16 Yao Qi <yao@codesourcery.com>
1562
1563 * tracepoint.c (trace_find_none_command): Remove.
1564 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1565
1566 2012-08-16 Yao Qi <yao@codesourcery.com>
1567
1568 * remote.c (handle_notification): Remove parameter 'length'.
1569 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1570
1571 2012-08-15 Keith Seitz <keiths@redhat.com>
1572
1573 * gdbtypes.c (opaque_type_resolution): Make static.
1574 Add missing comment.
1575 (overload_debug): Add missing comment.
1576 (show_opaque_type_resolution): Likewise.
1577 (show_overload_debug): Likewise.
1578 (print_bit_vector): Remove unnecessary forward declaration.
1579 (print_arg_types): Likewise.
1580 (dump_fn_fieldlists): Likewise.
1581 (print_cplus_stuff): Likewise.
1582
1583 2012-08-15 Tom Tromey <tromey@redhat.com>
1584
1585 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1586 (gdb_bfd_ref): Initialize new field.
1587 (gdb_bfd_unref): Unref the archive BFD.
1588 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1589 parent archive.
1590
1591 2012-08-15 Tom Tromey <tromey@redhat.com>
1592
1593 PR python/14387:
1594 * python/py-bpevent.c (create_breakpoint_event_object): Update
1595 comment.
1596 * python/py-event.c (evpy_add_attribute): Update comment.
1597 * python/py-exitedevent.c (create_exited_event_object): Fix
1598 reference counting and error handling.
1599 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1600 Fix reference counting.
1601 * python/py-signalevent.c (create_signal_event_object): Fix
1602 reference counting and error handling.
1603 * python/py-stopevent.c (emit_stop_event): Fix reference
1604 counting.
1605 * python/py-threadevent.c (get_event_thread): Return a
1606 borrowed reference.
1607 * python/py-type.c (convert_field): Fix reference counting.
1608
1609 2012-08-15 Tom Tromey <tromey@redhat.com>
1610
1611 * dwarf2read.c (dwarf_decode_macro_bytes)
1612 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1613 as hash key.
1614
1615 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1616
1617 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1618 stepi, nexti, finish, next, step, jump, and continue commands.
1619 * infrun.c (_initialize_infrun): Update help text for the handle
1620 command.
1621
1622 2012-08-14 Doug Evans <dje@google.com>
1623
1624 * gdbtypes.c (struct extra): Delete, unused.
1625
1626 * gdbtypes.c: Whitespace cleanup.
1627 (address_space_name_to_int): Remove "extern" from definition.
1628 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1629
1630 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1631 TYPE_POINTER_TYPE (type).
1632
1633 2012-08-14 Gary Benson <gbenson@redhat.com>
1634
1635 * solib-svr4.c (svr4_free_library_list): Use free_so.
1636
1637 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1638
1639 * .gitignore: Add go-exp.c.
1640
1641 2012-08-13 Doug Evans <dje@google.com>
1642
1643 * value.c (show_convenience): Tweak comment.
1644 (_initialize_values): Mention convenience functions in the help text
1645 for "show convenience".
1646
1647 2012-08-13 Yao Qi <yao@codesourcery.com>
1648
1649 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1650 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1651 TERNOP_SLICE_COUNT.
1652 * eval.c (evaluate_subexp_standard): Likewise.
1653 * expprint.c (print_subexp_standard): Likewise.
1654 (dump_subexp_body_standard): Likewise.
1655 * parse.c (operator_length_standard): Likewise.
1656
1657 2012-08-13 Yao Qi <yao@codesourcery.com>
1658
1659 * std-operator.def: Remove OP_BITSTRING.
1660 * breakpoint.c (watchpoint_exp_is_const): Update.
1661 * eval.c (evaluate_subexp_standard): Remove handling to
1662 OP_BITSTRING.
1663 * expprint.c (print_subexp_standard): Likewise.
1664 (dump_subexp_body_standard): Likewise.
1665 * parse.c (operator_length_standard): Likewise.
1666 * valops.c (value_bitstring): Remove.
1667 * value.h: Remove the declaration of 'value_bitstring'.
1668
1669 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1670
1671 * linespec.c (find_methods): Remove unused variables `i1' and
1672 `name_len'.
1673 (decode_line_full): Likewise for `arg_start'.
1674
1675 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1676
1677 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1678 (zlib_decompress_section): Likewise for `section_data'.
1679 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1680
1681 2012-08-10 Doug Evans <dje@google.com>
1682
1683 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1684 * NEWS: Document them.
1685 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1686 function/strfns.py.
1687 * python/py-type.c (typy_array_1): New function.
1688 (typy_array): Call it.
1689 (typy_vector): New function.
1690 (type_object_methods): Add "vector".
1691 * python/lib/gdb/function/__init__.py: New file.
1692 * python/lib/gdb/function/strfns.py: New file.
1693
1694 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1695
1696 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1697 for TYPE_FIELD_BITPOS.
1698 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1699
1700 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1701
1702 PR cli/10436:
1703 * common/vec.h (VEC_merge): Define.
1704 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1705 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1706 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1707 * completer.c: Include gdb_signals.h.
1708 (signal_completer): Define.
1709 * completer.h (signal_completer): Add prototype.
1710 * infcmd.c (_initialize_infcmd): Assign the command
1711 completer for "signal" to handle_completer.
1712 * infrun.c: Include completer.h.
1713 (handle_completer): Define.
1714 (_initialize_infrun): Declare a new local variable c. Store the
1715 result of add_com("handle") to it. Assign the command
1716 completer for "handle" to handle_completer.
1717
1718 2012-08-09 Yao Qi <yao@codesourcery.com>
1719
1720 * cli/cli-decode.c (set_cmd_prefix): New.
1721 (lookup_cmd_for_prefixlist): New.
1722 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1723 of each cmd_list_element in *prefixlist.
1724 (add_setshow_cmd_full): set_cmd_prefix.
1725 (add_alias_cmd): Likewise.
1726 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1727 Declare 'auto_boolean_enums'.
1728 * cli/cli-setshow.c: Include "observer.h".
1729 (notify_command_param_changed_p): New.
1730 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1731 Remove 'static'.
1732 (do_setshow_command): Split it to ...
1733 (do_set_command, do_show_command): ... them. New.
1734 (do_set_command): Call observer_notify_command_param_changed if
1735 notify_command_param_changed_p returns true.
1736 (cmd_show_list): Caller update.
1737 * auto-load.c (set_auto_load_cmd): Likewise.
1738 * remote.c (show_remote_cmd): Likewise.
1739 * cli/cli-setshow.h: Update declarations.
1740 * top.c (execute_command): Call do_set_command and do_show_command.
1741
1742 * NEWS: Mention new MI notification.
1743 * mi/mi-interp.c: Declare mi_command_param_changed.
1744 (mi_interpreter_init): Attach mi_command_param_changed to
1745 observer command_param_changed.
1746 (mi_command_param_changed): New.
1747 Remove mi_suppress_breakpoint_notifications.
1748 Define global variable mi_suppress_notification.
1749 (mi_breakpoint_created): Update.
1750 (mi_breakpoint_deleted): Likewise.
1751 (mi_breakpoint_modified): Likewise.
1752 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1753 'gdb-set' and set mi_suppress_notification.
1754 * mi/mi-main.h: (mi_suppress_notification): New struct.
1755
1756 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1757 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1760
1761 2012-08-09 Yao Qi <yao@codesourcery.com>
1762
1763 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1764 (skiplist): Move it to skip.c.
1765 (init_cmd_lists): Remove code setting enablebreaklist and
1766 skiplist to NULL.
1767 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1768 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1769 skiplist.
1770 * gdbcmd.h: Likewise.
1771 * skip.c (_initialize_step_skip): Move 'skiplist' from
1772 cli/cli-cmds.c.
1773
1774 2012-08-09 Yao Qi <yao@codesourcery.com>
1775
1776 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1777 * gnu-nat.c, symfile.c: Likewise.
1778
1779 2012-08-08 Aaron Gamble <agamble@google.com>
1780
1781 * utils.c (prompt_for_continue_wait_time): New static global.
1782 (make_command_stats_cleanup): Initialize it.
1783 (report_command_stats): Subtract time waiting for user.
1784 (prompt_for_continue): Track time waiting for user.
1785 (defaulted_query): Track time waiting for user.
1786
1787 2012-08-08 Doug Evans <dje@google.com>
1788
1789 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1790 UNOP_MEMVAL_TYPE.
1791 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1792 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1793 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1794 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1795 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1796 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1797 elt.
1798 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1799 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1800 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1801 (dump_prefix_expression): Handle OP_TYPE.
1802
1803 2012-08-08 Keith Seitz <keiths@redhat.com>
1804
1805 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1806 addr_start.
1807
1808 2012-08-08 Doug Evans <dje@google.com>
1809
1810 * linux-thread-db.c: #include "gdb_vecs.h".
1811 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1812 updated.
1813 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1814 (thread_db_load_search): Use a vector to iterate over path elements.
1815 Handle text appearing after "$pdir".
1816
1817 * gdb_string.h: Moved to ...
1818 * common/gdb_string.h: ... here.
1819 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1820 gdb_string.h and gdb_assert.h.
1821
1822 2012-08-08 Yao Qi <yao@codesourcery.com>
1823
1824 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1825 (tic6x_value_to_register): Likewise.
1826 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1827 and set_gdbarch_value_to_register.
1828
1829 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 Jean-Marc Saffroy <saffroy@gmail.com>
1831
1832 PR 11804
1833 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1834 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1835 * gcore.c (gcore_create_callback): New function comment. Add modified
1836 parameter. Only write modified regions. Set SEC_READONLY exactly
1837 according to MODIFIED.
1838 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1839 the passed modified value to FUNC.
1840 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1841 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1842 first. New variables modified and has_anonymous. Parse the lines of
1843 smaps file. Add the passed MODIFIED value to FUNC.
1844 * procfs.c (find_memory_regions_callback): Add the passed modified
1845 value.
1846
1847 2012-08-06 Tom Tromey <tromey@redhat.com>
1848
1849 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1850 (dwarf2_frame_cache): Use it.
1851 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1852 cache initialization constraint.
1853
1854 2012-08-06 Tom Tromey <tromey@redhat.com>
1855
1856 PR python/14386:
1857 * varobj.c (update_dynamic_varobj_children): Don't call
1858 PyIter_Check.
1859
1860 2012-08-06 Tom Tromey <tromey@redhat.com>
1861
1862 PR cli/14392:
1863 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1864
1865 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1866
1867 * NEWS: New entry for 'cd' default parameters.
1868 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1869
1870 2012-08-03 Tom Tromey <tromey@redhat.com>
1871
1872 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1873 return.
1874
1875 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1876
1877 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1878 to attempting lseek/write.
1879 (inf_child_fileio_pread): Likewise for pread.
1880
1881 2012-08-02 Yao Qi <yao@codesourcery.com>
1882
1883 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1884 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1885 add_setshow_zinteger_cmd.
1886 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1887 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1888 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1889 instead of add_setshow_zinteger_cmd.
1890 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1891 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1892 instead of add_setshow_zinteger_cmd.
1893 * frame.c (frame_debug): Add 'unsigned'.
1894 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1895 add_setshow_zinteger_cmd.
1896 * frame.h: Update the declaration of 'frame_debug'.
1897 * gdbtypes.c (overload_debug): Add 'unsigned'.
1898 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1899 add_setshow_zinteger_cmd.
1900 * inferior.h: Update declaration of 'debug_infrun'.
1901 * infrun.c (debug_infrun): Add 'unsigned'.
1902 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1903 add_setshow_zinteger_cmd.
1904 * jit.c (jit_debug): Add 'unsigned'.
1905 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1906 add_setshow_zinteger_cmd.
1907 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1908 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1909 instead of add_setshow_zinteger_cmd.
1910 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1911 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1912 add_setshow_zinteger_cmd.
1913 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1914 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1915 instead of add_setshow_zinteger_cmd.
1916 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1917 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1918 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1919 intead of add_setshow_zinteger_cmd.
1920 * mips-tdep.c (mips_debug): Add 'unsigned'.
1921 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1922 instead of add_setshow_zinteger_cmd.
1923 * monitor.c (monitor_debug): Add 'unsigned'.
1924 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1925 add_setshow_zinteger_cmd.
1926 * observer.c (observer_debug): Add 'unsigned'.
1927 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1928 add_setshow_zinteger_cmd.
1929 * parse.c (expressiondebug): Add 'unsigned'.
1930 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1931 add_setshow_zinteger_cmd.
1932 * record.c (record_debug): Add 'unsigned'.
1933 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1934 add_setshow_zinteger_cmd.
1935 * record.h: Update the declaration of 'record_debug'.
1936 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1937 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1938 add_setshow_zinteger_cmd.
1939 * serial.c (global_serial_debug_p): Add 'unsigned'.
1940 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1941 add_setshow_zinteger_cmd.
1942 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1943 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1944 add_setshow_zinteger_cmd.
1945 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1946 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1947 add_setshow_zinteger_cmd.
1948 * target.c (targetdebug): Add 'unsigned'.
1949 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1950 add_setshow_zinteger_cmd.
1951 * valops.c (overload_debug): Add 'unsigned'.
1952 * varobj.c (varobjdebug): Add 'unsigned'.
1953 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1954 add_setshow_zinteger_cmd.
1955 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1956 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1957 instead of add_setshow_zinteger_cmd.
1958
1959 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1960 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1961 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1962 instead of add_setshow_zinteger_cmd.
1963 * gdbarch.c, gdbarch.h: Re-generated.
1964
1965 2012-08-02 Yao Qi <yao@codesourcery.com>
1966
1967 * nto-tdep.c: Don't include cli/cli-decode.h and
1968 cli/cli-cmds.h.
1969 (_initialize_nto_tdep): Remove.
1970 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1971 Remove field.
1972 Remove macro nto_internal_debugging.
1973
1974 2012-08-01 Richard Henderson <rth@redhat.com>
1975
1976 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1977 (mep-*-*) [gdb_target_obs]: Likewise.
1978
1979 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1980
1981 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1982 linux_get_siginfo_type.
1983
1984 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1987 AT_ENTRY_POINT.
1988 (call_function_by_hand) <ON_STACK>: Call write_memory with
1989 gdbarch_breakpoint_from_pc, if possible.
1990 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1991 here.
1992
1993 2012-07-31 Yao Qi <yao@codesourcery.com>
1994
1995 * tracepoint.c: Add 'static' for some variables.
1996
1997 2012-07-31 Yao Qi <yao@codesourcery.com>
1998
1999 * go32-nat.c: Declare _initialize_go32_nat.
2000 * ser-go32.c: Declare _initialize_ser_dos.
2001 * top.c (do_chdir_cleanup): Add 'static'.
2002
2003 2012-07-30 Keith Seitz <keiths@redhat.com>
2004
2005 * linespec.c (linespec_lex_number): A number followed
2006 by quotes is a valid number, too.
2007
2008 2012-07-30 Tom Tromey <tromey@redhat.com>
2009
2010 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2011
2012 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2013
2014 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2015 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2016
2017 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2018
2019 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2020 invalid or reevaluated to prevent prevent references to possibly
2021 delete'd type objects being left in the varobj.
2022
2023 2012-07-27 Tom Tromey <tromey@redhat.com>
2024 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 * copying.awk: Print buffer-read-only and vi ro markers.
2027 * copying.c: Rebuild.
2028 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2029 * gdbarch.c, gdbarch.h: Rebuild.
2030 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2031 buffer-read-only and vi ro markers.
2032 * features/arm-with-iwmmxt.c: Rebuild.
2033 * features/arm-with-m-fpa-layout.c: Rebuild.
2034 * features/arm-with-m-vfp-d16.c: Rebuild.
2035 * features/arm-with-m.c: Rebuild.
2036 * features/arm-with-neon.c: Rebuild.
2037 * features/arm-with-vfpv2.c: Rebuild.
2038 * features/arm-with-vfpv3.c: Rebuild.
2039 * features/i386/amd64-avx-linux.c: Rebuild.
2040 * features/i386/amd64-avx.c: Rebuild.
2041 * features/i386/amd64-linux.c: Rebuild.
2042 * features/i386/amd64.c: Rebuild.
2043 * features/i386/i386-avx-linux.c: Rebuild.
2044 * features/i386/i386-avx.c: Rebuild.
2045 * features/i386/i386-linux.c: Rebuild.
2046 * features/i386/i386-mmx-linux.c: Rebuild.
2047 * features/i386/i386-mmx.c: Rebuild.
2048 * features/i386/i386.c: Rebuild.
2049 * features/i386/x32-avx-linux.c: Rebuild.
2050 * features/i386/x32-avx.c: Rebuild.
2051 * features/i386/x32-linux.c: Rebuild.
2052 * features/i386/x32.c: Rebuild.
2053 * features/mips-dsp-linux.c: Rebuild.
2054 * features/mips-linux.c: Rebuild.
2055 * features/mips64-dsp-linux.c: Rebuild.
2056 * features/mips64-linux.c: Rebuild.
2057 * features/rs6000/powerpc-32.c: Rebuild.
2058 * features/rs6000/powerpc-32l.c: Rebuild.
2059 * features/rs6000/powerpc-403.c: Rebuild.
2060 * features/rs6000/powerpc-403gc.c: Rebuild.
2061 * features/rs6000/powerpc-405.c: Rebuild.
2062 * features/rs6000/powerpc-505.c: Rebuild.
2063 * features/rs6000/powerpc-601.c: Rebuild.
2064 * features/rs6000/powerpc-602.c: Rebuild.
2065 * features/rs6000/powerpc-603.c: Rebuild.
2066 * features/rs6000/powerpc-604.c: Rebuild.
2067 * features/rs6000/powerpc-64.c: Rebuild.
2068 * features/rs6000/powerpc-64l.c: Rebuild.
2069 * features/rs6000/powerpc-7400.c: Rebuild.
2070 * features/rs6000/powerpc-750.c: Rebuild.
2071 * features/rs6000/powerpc-860.c: Rebuild.
2072 * features/rs6000/powerpc-altivec32.c: Rebuild.
2073 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2074 * features/rs6000/powerpc-altivec64.c: Rebuild.
2075 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2076 * features/rs6000/powerpc-cell32l.c: Rebuild.
2077 * features/rs6000/powerpc-cell64l.c: Rebuild.
2078 * features/rs6000/powerpc-e500.c: Rebuild.
2079 * features/rs6000/powerpc-e500l.c: Rebuild.
2080 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2081 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2082 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2083 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2084 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2085 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2086 * features/rs6000/powerpc-vsx32.c: Rebuild.
2087 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2088 * features/rs6000/powerpc-vsx64.c: Rebuild.
2089 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2090 * features/rs6000/rs6000.c: Rebuild.
2091 * features/s390-linux32.c: Rebuild.
2092 * features/s390-linux32v1.c: Rebuild.
2093 * features/s390-linux32v2.c: Rebuild.
2094 * features/s390-linux64.c: Rebuild.
2095 * features/s390-linux64v1.c: Rebuild.
2096 * features/s390-linux64v2.c: Rebuild.
2097 * features/s390x-linux64.c: Rebuild.
2098 * features/s390x-linux64v1.c: Rebuild.
2099 * features/s390x-linux64v2.c: Rebuild.
2100 * features/tic6x-c62x-linux.c: Rebuild.
2101 * features/tic6x-c62x.c: Rebuild.
2102 * features/tic6x-c64x-linux.c: Rebuild.
2103 * features/tic6x-c64x.c: Rebuild.
2104 * features/tic6x-c64xp-linux.c: Rebuild.
2105 * features/tic6x-c64xp.c: Rebuild.
2106
2107 2012-07-27 Tom Tromey <tromey@redhat.com>
2108
2109 * c-exp.y (classify_name): Avoid assignment in condition.
2110
2111 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2112
2113 * amd64-windows-tdep.c: Include "frame.h".
2114 (amd64_windows_skip_trampoline_code): New function.
2115 (amd64_windows_init_abi): Add trampoline registration.
2116
2117 2012-07-27 Yao Qi <yao@codesourcery.com>
2118
2119 * tracepoint.c (cur_traceframe_number): Remove.
2120 (set_tfile_traceframe): Remove.
2121 (tfile_trace_find, tfile_fetch_registers): Update callers.
2122 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2123 (tfile_open, tfile_trace_find): Likewise.
2124
2125 2012-07-27 Yao Qi <yao@codesourcery.com>
2126
2127 * thread.c (switch_to_thread): Don't call registers_changed.
2128
2129 2012-07-26 Tom Tromey <tromey@redhat.com>
2130
2131 * Makefile.in (SFILES): Remove objc-exp.y.
2132 (YYFILES): Remove objc-exp.c.
2133 (YYOBJ): Remove objc-exp.o.
2134 (local-maintainer-clean): Don't mention objc-exp.c.
2135 * c-exp.y: Include objc-lang.h.
2136 (%union) <class>: New field.
2137 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2138 (exp): Clone subscript production for OBJC_LBRAC. Add various
2139 Objective C productions.
2140 (msglist, msgarglist, msgarg): New productions.
2141 (array_mod, func_mod, operator): Clone productions for
2142 OBJC_LBRAC.
2143 (parse_string_or_char): Handle '@' strings.
2144 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2145 (classify_name): Check la_name_of_this. Recognize ObjC class
2146 names.
2147 * objc-exp.y: Remove.
2148 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2149 * objc-lang.h (objc_parse, objc_error): Don't declare.
2150
2151 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2152
2153 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2154
2155 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2158 and decrement.
2159
2160 2012-07-26 Tom Tromey <tromey@redhat.com>
2161
2162 * copying.c: Rebuild.
2163 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2164 'no_class'.
2165
2166 2012-07-26 Tom Tromey <tromey@redhat.com>
2167
2168 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2169 immediate_quit.
2170 (print_objfile_statistics): Likewise.
2171 (maintenance_print_symbols): Likewise.
2172 (maintenance_print_msymbols): Likewise.
2173 (maintenance_print_objfiles): Likewise.
2174 * psymtab.c (print_partial_symbols): Call QUIT.
2175 (maintenance_print_psymbols): Likewise. Don't modify
2176 immediate_quit.
2177 * copying.c (show_copying_command): Don't modify immediate_quit.
2178 (show_warranty_command): Likewise.
2179 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2180
2181 2012-07-26 Keith Seitz <keiths@redhat.com>
2182
2183 * linespec.c (linespec_lexer_lex_number): The input
2184 is also a valid number if the next character is a comma
2185 or colon.
2186
2187 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2188
2189 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2190 configure options.
2191
2192 2012-07-26 Tristan Gingold <gingold@adacore.com>
2193
2194 * machoread.c: Include gdb_bfd.h.
2195
2196 2012-07-26 Tristan Gingold <gingold@adacore.com>
2197
2198 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2199 offset.
2200
2201 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2202
2203 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2204 SIZE to size_t.
2205 (dwarf2_evaluate_loc_desc): Likewise.
2206 (dwarf2_loc_desc_needs_frame): Likewise.
2207 (locexpr_describe_location_1): Likewise.
2208 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2209 size_t.
2210 (struct dwarf2_loclist_baton): Likewise.
2211 * dwarf2read.c (struct dwarf_block): Likewise.
2212 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2213 (decode_locdesc): Expand SIZE and I to size_t.
2214
2215 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2216
2217 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2218
2219 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2220
2221 * doublest.c (convert_doublest_to_floatformat): If the exponent
2222 is too small, treat the value as zero. If the exponent is too
2223 large, treat the value as infinity.
2224
2225 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2226
2227 * configure.ac: Add --enable-lmcheck configure option.
2228 * configure: Regenerate.
2229
2230 2012-07-25 Tom Tromey <tromey@redhat.com>
2231
2232 * NEWS: Mention maint info bfds.
2233 * gdb_bfd.c (all_bfds): New global.
2234 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2235 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2236 New functions.
2237
2238 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2239
2240 * configure.tgt: Add v850*-*-rtems*.
2241
2242 2012-07-25 Tom Tromey <tromey@redhat.com>
2243
2244 * macrotab.c (macro_bcache_str): Remove cast.
2245
2246 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2247
2248 * linespec.c (linespec_lexer_lex_number): Update comments,
2249 change the return and add check to make sure the input is
2250 the decimal numbers.
2251 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2252 false, call linespec_lexer_lex_string.
2253
2254 2012-07-24 Tom Tromey <tromey@redhat.com>
2255
2256 * symfile.c (symbol_file_add): Don't open BFD twice.
2257
2258 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2259
2260 * breakpoint.c (create_breakpoint): Store condition for pending
2261 breakpoints.
2262
2263 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2264
2265 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2266 (m68k_return_value): Handle complex types like structures.
2267 (m68k_svr4_return_value): Likewise.
2268
2269 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2270
2271 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2272 parameters to bfd_get_section_name.
2273
2274 2012-07-24 Yao Qi <yao@codesourcery.com>
2275
2276 * cli/cli-setshow.c: Handle case 'var_uinteger'
2277 and 'var_zuninteger' together. Handle case 'var_integer' and
2278 'var_zinteger' together.
2279
2280 2012-07-23 Keith Seitz <keiths@redhat.com>
2281
2282 * linespec.c (convert_linespec_to_sal): Don't add
2283 any symbols to the result vector if symbol_to_sal
2284 returns zero.
2285
2286 2012-07-23 Keith Seitz <keiths@redhat.com>
2287
2288 * linespec.c (decode_objc): Record the function name
2289 in the linespec.
2290
2291 2012-07-23 Tom Tromey <tromey@redhat.com>
2292
2293 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2294 counting.
2295 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2296 (map_vmap): Acquire a reference to the BFD.
2297
2298 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2299
2300 * p-valprint.c (pascal_object_print_value): Replace potentially
2301 unsafe alloca with xmalloc/xfree.
2302 * valops.c (search_struct_method): Likewise.
2303
2304 2012-07-23 Tom Tromey <tromey@redhat.com>
2305
2306 * solib-svr4.c (enable_break): Update.
2307 * bfd-target.h (target_bfd_reopen): Update documentation.
2308
2309 2012-07-23 Tom Tromey <tromey@redhat.com>
2310
2311 * symfile.c (separate_debug_file_exists): Update.
2312 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2313 (reread_symbols): Update.
2314 * elfread.c (build_id_verify): Update.
2315 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2316 bfd_open_maybe_remote.
2317
2318 2012-07-23 Tom Tromey <tromey@redhat.com>
2319
2320 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2321
2322 2012-07-23 Tom Tromey <tromey@redhat.com>
2323
2324 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2325 and 'abfd'.
2326 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2327 and 'abfd'.
2328 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2329 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2330 'abfd'.
2331 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2332 * objfiles.c (allocate_objfile): Acquire a new reference.
2333 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2334 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2335 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2336 a cleanup for 'nbfd'.
2337 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2338 for 'nbfd'.
2339 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2340 make a cleanup for 'abfd'.
2341 (symbol_file_add): Make a BFD cleanup.
2342
2343 2012-07-23 Tom Tromey <tromey@redhat.com>
2344
2345 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2346 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2347 * corelow.c (core_open): Use gdb_bfd_fopen.
2348 * dsrec.c (load_srec): Use gdb_bfd_openr.
2349 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2350 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2351 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2352 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2353 (gdb_bfd_fdopenr): New functions.
2354 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2355 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2356 (gdb_bfd_fdopenr): Declare.
2357 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2358 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2359 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2360 gdb_bfd_openr_next_archived_file.
2361 (macho_check_dsym): Use gdb_bfd_openr.
2362 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2363 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2364 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2365 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2366 gdb_bfd_openr.
2367 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2368 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2369 gdb_bfd_openr_next_archived_file.
2370 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2371 Use gdb_bfd_openr.
2372 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2373 gdb_bfd_openr.
2374 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2375 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2376 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2377 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2378 (symfile_bfd_open): Use gdb_bfd_fopen.
2379 (generic_load): Use gdb_bfd_openr.
2380 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2381
2382 2012-07-23 Tom Tromey <tromey@redhat.com>
2383
2384 * bfd-target.c (target_bfd_reopen): Update.
2385 * cli/cli-dump.c (bfd_openr_with_cleanup)
2386 (bfd_openw_with_cleanup): Update.
2387 * corelow.c (core_open): Update.
2388 * dsrec.c (load_srec): Update.
2389 * exec.c (exec_file_attach): Update.
2390 * gcore.c (create_gcore_bfd): Update.
2391 * gdb_bfd.c (gdb_bfd_ref): Return void.
2392 (gdb_bfd_open): Update.
2393 * gdb_bfd.h (gdb_bfd_ref): Return void.
2394 Update comments.
2395 * jit.c (jit_bfd_try_read_symtab): Update.
2396 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2397 * machoread.c (macho_symfile_read_all_oso): Update.
2398 (macho_check_dsym): Update.
2399 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2400 * remote-m32r-sdi.c (m32r_load): Update.
2401 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2402 * rs6000-nat.c (add_vmap): Update.
2403 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2404 Update.
2405 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2406 * solib-spu.c (spu_bfd_open): Update.
2407 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2408 * spu-linux-nat.c (spu_bfd_open): Update.
2409 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2410 (generic_load): Update.
2411 * windows-nat.c (windows_make_so): Update.
2412
2413 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2414
2415 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2416
2417 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2418
2419 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2420 SIGTRAMP_FRAME unwinding.
2421
2422 2012-07-20 Doug Evans <dje@google.com>
2423
2424 * NEWS: Document new options "set/show use-deprecated-index-sections",
2425 and delete reference to --use-deprecated-index-sections.
2426 * symfile.h (use_deprecated_index_sections): Delete.
2427 * dwarf2read.c (use_deprecated_index_sections): Make static.
2428 (read_index_from_section): Update wording of how to load
2429 deprecated index sections.
2430 (_initialize_dwarf2_read): New options
2431 "set/show use-deprecated-index-sections".
2432 * main.c (captured_main): Delete --use-deprecated-index-sections.
2433
2434 2012-07-20 Pedro Alves <palves@redhat.com>
2435
2436 PR threads/11692
2437 PR gdb/12203
2438
2439 * infrun.c (handle_inferior_event) <new thread>: Don't special
2440 case minus_one_ptid.
2441 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2442 * linux-thread-db.c (thread_get_info_callback): Don't return early
2443 if the thread is zombie.
2444 (thread_from_lwp): Change return type to void. Rewrite stale
2445 comment.
2446 (attach_thread): Don't return early if the thread is zombie,
2447 instead set its "dying" flag.
2448 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2449 (find_new_threads_callback): Don't return early if the thread is
2450 zombie.
2451
2452 2012-07-20 Pedro Alves <palves@redhat.com>
2453
2454 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2455 * target.c (target_wait): Likewise.
2456 (str_comma_list_concat_elem, do_option, target_options_to_string):
2457 New functions.
2458 * target.h (target_options_to_string): Declare.
2459
2460 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 Tom Tromey <tromey@redhat.com>
2462
2463 * dwarf2read.c (dwarf_decode_macros)
2464 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2465 DW_MACRO_GNU_transparent_include_alt>: New cases.
2466 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2467 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2468
2469 2012-07-20 Tom Tromey <tromey@redhat.com>
2470
2471 * dwarf2read.c (try_open_dwo_file): Don't call
2472 gdb_bfd_stash_filename.
2473
2474 2012-07-20 Pedro Alves <palves@redhat.com>
2475
2476 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2477 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2478 (i386_process_record): Tweak description comments.
2479
2480 2012-07-20 Pedro Alves <palves@redhat.com>
2481
2482 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2483 (i386_process_record): Use record_read_memory.
2484 * record.c (record_read_memory): New function.
2485 (record_arch_list_add_mem, record_exec_insn): Use
2486 record_read_memory.
2487 * record.h (record_read_memory): Declare.
2488
2489 2012-07-20 Yao Qi <yao@codesourcery.com>
2490
2491 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2492 NULL for xfree.
2493
2494 2012-07-19 Pedro Alves <palves@redhat.com>
2495
2496 * record.c (record_resume): Ask the target beneath to report all
2497 signals.
2498
2499 2012-07-19 Doug Evans <dje@google.com>
2500
2501 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2502 there's no section at address zero.
2503 (dwarf2_record_block_ranges): Ditto.
2504
2505 2012-07-19 Yao Qi <yao@codesourcery.com>
2506
2507 * command.h, remote.c: Fix a typo in comment.
2508
2509 2012-07-19 Tom Tromey <tromey@redhat.com>
2510
2511 PR exp/13206:
2512 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2513 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2514 OP_DECLTYPE>: New cases.
2515 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2516 (type_exp): Add new productions.
2517 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2518 and decltype.
2519 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2520 New case.
2521 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2522 OP_DECLTYPE>: New case.
2523 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2524 New case.
2525 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2526 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2527
2528 2012-07-19 Tom Tromey <tromey@redhat.com>
2529
2530 * c-exp.y (enum token_flags): New.
2531 (struct token) <cxx_only>: Remove.
2532 <flags>: New field.
2533 (tokentab3, tokentab2, ident_tokens): Update.
2534 (lex_one_token): Update. Handle FLAG_SHADOW.
2535
2536 2012-07-19 Tom Tromey <tromey@redhat.com>
2537
2538 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2539 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2540 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2541 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2542 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2543 type_exp production where appropriate.
2544 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2545 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2546 <UNOP_MEMVAL_TYPE>: New case.
2547 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2548 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2549 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2550 <UNOP_MEMVAL_TYPE>: New case.
2551 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2552 UNOP_REINTERPRET_CAST>: Update.
2553 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2554 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2555 UNOP_REINTERPRET_CAST>: Update.
2556 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2557 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2558 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2559 constants.
2560
2561 2012-07-19 Yao Qi <yao@codesourcery.com>
2562 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2565 and case 'var_optional_filename' together.
2566 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2567 instead of add_setshow_optional_filename_cmd for setshow command
2568 'args'. Set completer for 'set args'.
2569
2570 2012-07-18 Doug Evans <dje@google.com>
2571
2572 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2573 * common/gdb_vecs.c: New file, contents from utils.c.
2574 * common/host-defs.h: New file, contents from defs.h.
2575 * utils.h: New file, contents from defs.h.
2576 * defs.h: Move all declarations of objects defined in utils.c
2577 to utils.h (except QUIT() and related).
2578 #include "utils.h", "host-defs.h".
2579 * probe.h (probe_p): Move here from gdb_vecs.h.
2580 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2581 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2582 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2583 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2584 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2585 (COMMON_OBS): Add gdb_vecs.o.
2586 (gdb_vecs.o): New rule.
2587
2588 2012-07-18 Keith Seitz <keiths@redhat.com>
2589
2590 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2591 parameter. If non-zero, use SYMNAME as the canonical name
2592 for the SaL.
2593 Update all callers.
2594 (convert_linespec_to_sals): Use add_sal_to_sals for
2595 expressions, too.
2596 (decode_line_full): No need to "fill in missing canonical names"
2597 anymore. Simply make cleanups for the allocated names.
2598
2599 2012-07-18 Keith Seitz <keiths@redhat.com>
2600
2601 * linespec.c (struct linespec): Constify expression,
2602 source_filename, function_name, and label_name.
2603 (symbol_not_found_error): Make all parameters const.
2604 (linespec_parser_delete): No need to check for NULL
2605 when using xfree. Cast const char * to char * for xfree.
2606
2607 2012-07-18 Keith Seitz <keiths@redhat.com>
2608
2609 * breakpoint.c (invalid_thread_id_error): New function.
2610 (find_condition_and_thread): Use invalid_thread_id_error.
2611 (watch_command_1): Likewise.
2612
2613 2012-07-18 Tom Tromey <tromey@redhat.com>
2614
2615 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2616 * contrib/cc-with-tweaks.sh: New file.
2617
2618 2012-07-18 Tom Tromey <tromey@redhat.com>
2619
2620 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2621 (locate_dwz_sections): Recognize .gdb_index.
2622 (create_cus_from_index_list): New function.
2623 (create_cus_from_index): Use it. Handle .dwz data.
2624 (read_index_from_section): New function, extracted from
2625 dwarf2_read_index.
2626 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2627 if needed.
2628
2629 2012-07-18 Tom Tromey <tromey@redhat.com>
2630
2631 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2632 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2633 <is_dwz>: New field.
2634 (struct dwz_file): New.
2635 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2636 (locate_dwz_sections, dwarf2_get_dwz_file)
2637 (get_abbrev_section_for_cu): New functions.
2638 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2639 (read_and_check_type_unit_head): Add abbrev_section argument.
2640 (create_debug_types_hash_table): Update.
2641 (init_cutu_and_read_dies): Use proper abbrev section.
2642 (init_cutu_and_read_dies_no_follow): Likewise.
2643 (set_partial_user): Do nothing if PST==NULL.
2644 (read_comp_units_from_section): New function.
2645 (create_all_comp_units): Use it.
2646 (scan_partial_symbols, partial_die_parent_scope): Update.
2647 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2648 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2649 (find_partial_die): Add offset_in_dwz argument. Update.
2650 (guess_partial_die_structure_name, fixup_partial_die): Update.
2651 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2652 DW_FORM_GNU_strp_alt.
2653 (read_indirect_string_from_dwz): New function.
2654 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2655 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2656 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2657 (follow_die_offset): Add offset_in_dwz argument.
2658 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2659 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2660 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2661 Handle new macro forms.
2662 (dwarf_decode_macros): Update.
2663 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2664 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2665 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2666 (create_debug_types_hash_table): Use correct abbrev section.
2667 (get_debug_line_section): New function.
2668 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2669 (process_full_comp_unit): Pass 'required' argument to
2670 end_symtab_get_static_block.
2671 * buildsym.h (end_symtab_get_static_block): Update.
2672 * buildsym.c (end_symtab_get_static_block): Add 'required'
2673 argument.
2674 (end_symtab, end_expandable_symtab): Update.
2675
2676 2012-07-18 Tom Tromey <tromey@redhat.com>
2677
2678 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2679 (pagesize): Remove.
2680 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2681 (zlib_decompress_section): Remove.
2682 (dwarf2_read_section): Use gdb_bfd_map_section.
2683 (munmap_section_buffer): Remove.
2684 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2685 munmap_section_buffer.
2686 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2687 (struct gdb_bfd_section_data): New.
2688 (free_one_bfd_section): New function.
2689 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2690 (get_section_descriptor, zlib_decompress_section)
2691 (gdb_bfd_map_section): New functions.
2692 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2693
2694 2012-07-18 Tom Tromey <tromey@redhat.com>
2695
2696 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2697
2698 2012-07-18 Tom Tromey <tromey@redhat.com>
2699
2700 * gdb_bfd.c (struct gdb_bfd_data): New.
2701 (gdb_bfd_cache): New global.
2702 (struct gdb_bfd_cache_search): New.
2703 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2704 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2705 * gdb_bfd.h (gdb_bfd_open): Declare.
2706
2707 2012-07-18 Tom Tromey <tromey@redhat.com>
2708
2709 * utils.c (make_cleanup_bfd_unref): Rename from
2710 make_cleanup_bfd_close.
2711 * defs.h (make_cleanup_bfd_unref): Rename from
2712 make_cleanup_bfd_close.
2713 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2714 (bfd_openw_with_cleanup): Update.
2715 * corelow.c (core_open): Update.
2716 * dsrec.c (load_srec): Update.
2717 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2718 * remote-m32r-sdi.c (m32r_load): Update.
2719 * remote-mips.c (mips_load_srec): Update.
2720 (pmon_load_fast): Update.
2721 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2722 Update.
2723 (darwin_bfd_open): Update.
2724 * solib.c (solib_bfd_fopen): Update.
2725 * symfile-mem.c (symbol_file_add_from_memory): Update.
2726 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2727 (symfile_bfd_open): Update.
2728 (generic_load): Update.
2729
2730 2012-07-18 Tom Tromey <tromey@redhat.com>
2731
2732 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2733 (pmon_load_fast): Likewise.
2734 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2735 (m32r_upload_command): Likewise.
2736 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2737 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2738 Use make_cleanup_bfd_close.
2739
2740 2012-07-18 Tom Tromey <tromey@redhat.com>
2741
2742 * symfile.c (symfile_bfd_open): Don't copy name. Call
2743 gdb_bfd_stash_filename.
2744 (load_command): Open the new BFD before freeing the old.
2745 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2746 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2747 Call gdb_bfd_stash_filename.
2748 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2749 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2750 gdb_bfd_stash_filename.
2751 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2752 Free found_pathname.
2753 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2754 gdb_bfd_stash_filename.
2755 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2756 * machoread.c (macho_add_oso_symfile): Call
2757 gdb_bfd_stash_filename.
2758 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2759 gdb_bfd_stash_filename.
2760 (macho_check_dsym): Don't copy filename. Call
2761 gdb_bfd_stash_filename.
2762 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2763 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2764 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2765 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2766 * exec.c (exec_close): Don't free the BFD's filename.
2767 (exec_file_attach): Don't copy the filename. Call
2768 gdb_bfd_stash_filename.
2769 * corelow.c (core_close): Don't free the BFD's filename.
2770 (core_open): Call gdb_bfd_stash_filename.
2771 * corefile.c (reopen_exec_file): Remove #if 0 code.
2772 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2773 pathname.
2774 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2775
2776 2012-07-18 Tom Tromey <tromey@redhat.com>
2777
2778 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2779 gdb_bfd_unref.
2780 (free_dwo_file): Use gdb_bfd_unref.
2781 * cli/cli-dump.c: Include gdb_bfd.h.
2782 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2783 (bfd_openr_with_cleanup): Likewise.
2784 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2785 gdb_bfd_unref.
2786 * utils.c: Include gdb_bfd.h.
2787 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2788 * symfile.c: Include gdb_bfd.h.
2789 (separate_debug_file_exists): Use gdb_bfd_unref.
2790 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2791 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2792 (generic_load): Use gdb_bfd_ref.
2793 (reread_symbols): Use gdb_bfd_unref.
2794 * symfile-mem.c: Include gdb_bfd.h.
2795 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2796 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2797 * solib.c: Include gdb_bfd.h.
2798 (solib_bfd_fopen): Use gdb_bfd_ref.
2799 (solib_bfd_open): Use gdb_bfd_unref.
2800 (free_so_symbols): Use gdb_bfd_unref.
2801 (reload_shared_libraries_1): Use gdb_bfd_unref.
2802 * solib-spu.c: Include gdb_bfd.h.
2803 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2804 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2805 gdb_bfd_unref.
2806 * solib-frv.c: Include gdb_bfd.h.
2807 (enable_break2): Use gdb_bfd_unref.
2808 * solib-dsbt.c: Include gdb_bfd.h.
2809 (enable_break2): Use gdb_bfd_unref.
2810 * solib-darwin.c: Include gdb_bfd.h.
2811 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2812 gdb_bfd_unref.
2813 (darwin_bfd_open): Use gdb_bfd_unref.
2814 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2815 * remote-mips.c: Include gdb_bfd.h.
2816 (mips_load_srec): Use gdb_bfd_ref.
2817 (pmon_load_fast): Use gdb_bfd_ref.
2818 * remote-m32r-sdi.c: Include gdb_bfd.h.
2819 (m32r_load): Use gdb_bfd_ref.
2820 * record.c: Include gdb_bfd.h.
2821 (record_save_cleanups): Use gdb_bfd_unref.
2822 (cmd_record_save): Use gdb_bfd_unref.
2823 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2824 gdb_bfd_unref.
2825 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2826 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2827 * objfiles.c: Include gdb_bfd.h.
2828 (free_objfile): Use gdb_bfd_unref.
2829 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2830 gdb_bfd.c.
2831 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2832 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2833 (macho_check_dsym): Likewise.
2834 * m32r-rom.c: Include gdb_bfd.h.
2835 (m32r_load): Use gdb_bfd_ref.
2836 (m32r_upload_command): Use gdb_bfd_ref.
2837 * jit.c: Include gdb_bfd.h.
2838 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2839 * gdb_bfd.h: New file.
2840 * gdb_bfd.c: New file.
2841 * gcore.c: Include gdb_bfd.h.
2842 (create_gcore_bfd): Use gdb_bfd_ref.
2843 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2844 (gcore_command): Use gdb_bfd_unref.
2845 * exec.c: Include gdb_bfd.h.
2846 (exec_close): Use gdb_bfd_unref.
2847 (exec_close_1): Use gdb_bfd_unref.
2848 (exec_file_attach): Use gdb_bfd_ref.
2849 * elfread.c: Include gdb_bfd.h.
2850 (build_id_verify): Use gdb_bfd_unref.
2851 * dsrec.c: Include gdb_bfd.h.
2852 (load_srec): Use gdb_bfd_ref.
2853 * corelow.c: Include gdb_bfd.h.
2854 (core_close): Use gdb_bfd_unref.
2855 (core_open): Use gdb_bfd_ref.
2856 * bfd-target.c: Include gdb_bfd.h.
2857 (target_bfd_xclose): Use gdb_bfd_unref.
2858 (target_bfd_reopen): Use gdb_bfd_ref.
2859 * Makefile.in (SFILES): Add gdb_bfd.c.
2860 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2861 (COMMON_OBS): Add gdb_bfd.o.
2862
2863 2012-07-18 Keith Seitz <keiths@redhat.com>
2864
2865 * breakpoint.c (find_condition_and_thread): Initialize
2866 TASK and REST.
2867 (create_breakpiont): find_condition_and_thread will now
2868 initialize COND_STRING, THREAD, and REST (and TASK).
2869 (addr_string_to_sals): Likewise.
2870
2871 2012-07-18 Pedro Alves <palves@redhat.com>
2872
2873 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2874 Pull the single step breakpoints out of the target.
2875
2876 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2877
2878 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2879 * stap-probe.c (compile_probe_arg): Likewise.
2880
2881 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2882
2883 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2884 (elf_compile_to_ax): Likewise.
2885 * infrun.c (insert_exception_resume_from_probe): Likewise.
2886 (check_exception_resume): Remove `objfile' variable.
2887 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2888 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2889 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2890 (compare_entries): Rename to...
2891 (compare_probes): ...this. Adjust function to work with
2892 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2893 respectively.
2894 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2895 `VEC (probe_p) *'.
2896 (print_ui_out_info): Adjust argument to be `struct probe *'.
2897 (info_probes_for_ops): Adjust internal computations to use
2898 `VEC (probe_p) *'.
2899 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2900 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2901 gen_info_probes_table_values>: Remove `objfile' argument.
2902 (struct probe) <objfile>: New field.
2903 (find_probe_by_pc): Remove `objfile' argument.
2904 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2905 (stap_get_probe_argument_count): Likewise.
2906 (stap_get_arg): Likewise.
2907 (stap_evaluate_probe_argument): Likewise.
2908 (stap_compile_to_ax): Likewise.
2909 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2910 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2911 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2912 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2913 sym_compile_to_ax>: Likewise.
2914
2915 2012-07-18 Terry Guo <terry.guo@arm.com>
2916
2917 PR 14329
2918 * defs.h (GDB_MI_MSG_WIDTH): New.
2919 * ser_base (ser_base_read_error_fd): New function.
2920 (do_ser_base_readchar): Poll error file descriptor as well as
2921 standard output.
2922 (generic_readchar): Refactor error handling.
2923
2924 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2925
2926 * NEWS: Create a new section for the next release branch.
2927 Rename the section of the current branch, now that it has
2928 been cut.
2929
2930 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2931
2932 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2933 * version.in: Bump version to 7.5.50.20120718-cvs.
2934
2935 2012-07-17 Keith Seitz <keiths@redhat.com>
2936
2937 * linespec.c (linespec_parse_line_offset): Make parameter
2938 const.
2939
2940 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 PR 11914
2943 * f-valprint.c (info_common_command): New variable frame_id.
2944 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2945 * printcmd.c (print_variable_and_value): Extend function comment.
2946 Add comment for invalidated FRAME.
2947 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2948 FI form FRAME_ID after each print_frame_local_vars.
2949 (struct print_variable_and_value_data): Change frame to frame_id.
2950 (do_print_variable_and_value): New variable frame, initialize it from
2951 p->frame_id. Add comment for invalidated FRAME.
2952 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2953 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2954 for invalidated FRAME.
2955
2956 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2957 Pedro Alves <palves@redhat.com>
2958
2959 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2960 loop.
2961
2962 2012-07-16 Tom Tromey <tromey@redhat.com>
2963
2964 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2965
2966 2012-07-15 Doug Evans <dje@google.com>
2967
2968 * dwarf2read.c (stmt_list_hash): New struct.
2969 (type_unit_group): Embed "per_cu" member, remove pointer.
2970 New union member "t", move member "tus" into it, all uses updated.
2971 New member "hash", replaces member "line_offset, all uses updated.
2972 (quick_file_names): Replace member "offset" with "hash", all uses
2973 updated.
2974 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2975 (hash_file_name_entry, eq_file_name_entry): Call them.
2976 (hash_type_unit_group, eq_type_unit_group): Ditto.
2977 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2978 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2979 (dw2_get_file_names): Update.
2980 (create_type_unit_group): Replace "per_cu" arg with "cu".
2981 All callers updated. Fix "quick" (.gdb_index) handling.
2982 (get_type_unit_group): Replace "per_cu" arg with "cu".
2983 All callers updated.
2984 (build_type_unit_groups): Don't reset tu_stats.
2985
2986 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2987 "tab_cur_size". Change member "tab" to be a htab_t.
2988 (create_filename_seen_cache): Update.
2989 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2990 (filename_seen): Update.
2991
2992 2012-07-13 Doug Evans <dje@google.com>
2993
2994 * symtab.c (filename_seen): Update comment.
2995
2996 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2997 Doug Evans <dje@google.com>
2998
2999 * buildsym.c (end_symtab_1): Split it to ...
3000 (end_symtab_get_static_block): ... this ...
3001 (end_symtab_from_static_block): ... and this function.
3002 (end_symtab, end_expandable_symtab): Call them.
3003 * buildsym.h (end_symtab_get_static_block)
3004 (end_symtab_from_static_block): New declarations.
3005 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3006 Set its valid CU ranges.
3007
3008 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3011 DW_OP_GNU_parameter_ref.
3012
3013 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3016 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3017
3018 2012-07-13 Doug Evans <dje@google.com>
3019
3020 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3021 (filename_seen_cache): New struct.
3022 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3023 (create_filename_seen_cache): New function.
3024 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3025 (filename_seen): Delete arg "first". New arg "cache". All callers
3026 updated.
3027 (output_source_filename_data): New struct.
3028 (output_source_filename): Delete arg "first". New arg "data".
3029 All callers updated.
3030 (sources_info): Delete local "first". New locals "data", "cleanups".
3031 Rewrite to use filename_seen_cache.
3032 (add_partial_filename_data): Delete member "first". New member
3033 "filename_seen_cache". All uses updated.
3034 (make_source_files_completion_list): Rewrite to use
3035 filename_seen_cache.
3036
3037 2012-07-12 Doug Evans <dje@google.com>
3038
3039 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3040
3041 2012-07-10 Doug Evans <dje@google.com>
3042
3043 PR gdb/13498
3044 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3045 all_type_unit_groups, type_unit_groups, tu_stats.
3046 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3047 All uses updated. Add type_unit_group to union "s".
3048 (type_unit_group): New struct.
3049 (IS_TYPE_UNIT_GROUP): New macro.
3050 (abbrev_table): Delete unused member "section".
3051 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3052 (dw2_get_cu): Assert not used with type_unit_group.
3053 (dw2_get_primary_cu): New function.
3054 (dw2_build_type_unit_groups_reader): New function.
3055 (dw2_build_type_unit_groups): New function.
3056 (dw2_get_file_names): Assert not called on type units.
3057 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3058 Redo loop to iterate over type unit groups instead of type units.
3059 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3060 (read_abbrev_offset): New function.
3061 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3062 updated.
3063 (create_partial_symtab): New function.
3064 (process_psymtab_comp_unit_reader): Assert not used with type units.
3065 Call create_partial_symtab.
3066 (process_psymtab_type_unit): Delete.
3067 (hash_type_unit_group, eq_type_unit_group): New functions.
3068 (allocate_type_unit_groups_table): New function.
3069 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3070 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3071 (create_type_unit_group, get_type_unit_group): New functions.
3072 (tu_abbrev_offset): New struct.
3073 (sort_tu_by_abbrev_offset): New function.
3074 (add_type_unit_group_to_table): New function.
3075 (build_type_unit_groups): New function.
3076 (build_type_psymtabs_reader): New function.
3077 (build_type_psymtab_dependencies): New function.
3078 (build_type_psymtabs): Rewrite.
3079 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3080 is seen in a type unit.
3081 (process_queue): Move symtab expansion debugging printfs here.
3082 Call process_full_type_unit for type units.
3083 (compute_symtab_includes): Assert not called for type units.
3084 (process_cu_includes): Don't call compute_symtab_includes for
3085 type units.
3086 (process_full_type_unit): New function.
3087 (process_imported_unit_die): Flag an error if called for type units.
3088 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3089 updated. Assert not called for type units.
3090 (read_file_scope): Call dwarf2_start_symtab.
3091 (setup_type_unit_groups): New function.
3092 (read_type_unit_scope): Rewrite.
3093 (abbrev_table_read_table): Initialize abbrev_table->offset.
3094 (abbrev_table_free_cleanup): New function.
3095 (dwarf2_start_symtab): New function.
3096 (load_full_type_unit): Assert not called for type unit groups.
3097 * buildsym.c (finish_block_internal): New arg "expandable".
3098 All callers updated.
3099 (start_symtab): Move most contents to ...
3100 (restart_symtab): ... here. New function.
3101 (reset_symtab_globals): New function.
3102 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3103 Call reset_symtab_globals.
3104 (end_symtab, end_expandable_symtab): New functions.
3105 (set_missing_symtab, augment_type_symtab): New functions.
3106 * buildsym.h (end_expandable_symtab): Declare.
3107 (augment_type_symtab, restart_symtab): Declare.
3108 * psympriv.h (struct partial_symtab): New member "anonymous".
3109 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3110 anonymous psymtabs.
3111 (read_psymtabs_with_filename): Ditto.
3112 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3113 (expand_symtabs_matching_via_partial): Ditto.
3114 (dump_psymtab): Update.
3115 * dictionary.c (dict_add_pending): New function.
3116 * dictionary.h (dict_add_pending): Declare.
3117
3118 2012-07-09 Doug Evans <dje@google.com>
3119
3120 * buildsym.c (start_subfile): Remove unnecessary check for
3121 name == NULL.
3122
3123 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3124
3125 * dwarf2read.c (load_full_type_unit): Simplify.
3126
3127 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3128 to struct signatured_type **. All uses updated.
3129
3130 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3131 All callers updated.
3132
3133 2012-07-09 Tom Tromey <tromey@redhat.com>
3134
3135 * c-exp.y (check_parameter_typelist): New function.
3136 (parameter_typelist): Call it.
3137 * eval.c (make_params): Handle '(void)' case.
3138 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3139 '(void)' case.
3140
3141 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3142
3143 * common/linux-ptrace.c: Include gdb_assert.h.
3144 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3145 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3146 stdint.h.
3147 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3148 functions.
3149 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3150 * linux-nat.c (linux_child_post_attach)
3151 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3152
3153 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3154
3155 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3156 nptl <2.7 bug workaround for core files.
3157
3158 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3159
3160 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3161 clearing.
3162 (save_siginfo): Remove.
3163 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3164 call.
3165 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3166 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3167 * linux-nat.h (struct lwp_info): Remove field siginfo.
3168
3169 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 Code cleanup for the next patch.
3172 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3173 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3174 call for it.
3175 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3176 (ia64_linux_stopped_data_address):
3177 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3178 the return value.
3179 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3180 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3181 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3182 call for it.
3183
3184 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 PR 14321
3187 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3188 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3189
3190 2012-07-06 Tom Tromey <tromey@redhat.com>
3191
3192 * c-exp.y (DOTDOTDOT): New token.
3193 (func_mod, exp): Use parameter_typelist.
3194 (parameter_typelist): New production.
3195 (tokentab3): Add "..." token.
3196 * eval.c (make_params): Handle varargs.
3197 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3198 varargs.
3199
3200 2012-07-06 Tom Tromey <tromey@redhat.com>
3201
3202 PR exp/9608:
3203 * c-exp.y (%union) <tvec>: Change type.
3204 (func_mod): Now uses <tvec> type.
3205 (exp): Update for tvec change.
3206 (direct_abs_decl): Push the typelist.
3207 (func_mod): Return a typelist.
3208 (nonempty_typelist): Update for tvec change.
3209 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3210 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3211 * parse.c (pop_type_list): New function.
3212 (push_typelist): New function.
3213 (follow_types): Handle tp_function_with_arguments.
3214 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3215 (enum type_pieces) <tp_function_with_arguments>: New constant.
3216 (union type_stack_elt) <typelist_val>: New field.
3217 (push_typelist): Declare.
3218
3219 2012-07-06 Tom Tromey <tromey@redhat.com>
3220
3221 * c-exp.y (%union) <type_stack>: New field.
3222 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3223 (ptr_operator_ts): New production.
3224 (ptype): Update.
3225 * parse.c (type_stack_reserve): New function.
3226 (check_type_stack_depth): Use it.
3227 (pop_type_stack, append_type_stack, push_type_stack)
3228 (get_type_stack, type_stack_cleanup): New functions.
3229 (follow_types): Handle tp_type_stack.
3230 (_initialize_parse): Simplify initialization.
3231 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3232 constant.
3233 (union type_stack_elt) <stack_val>: New field.
3234 (get_type_stack, append_type_stack, push_type_stack)
3235 (type_stack_cleanup): Declare.
3236
3237 2012-07-06 Tom Tromey <tromey@redhat.com>
3238
3239 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3240 Remove.
3241 (struct type_stack): New.
3242 * parse.c (type_stack, type_stack_size, type_stack_depth):
3243 Remove.
3244 (type_stack): New global.
3245 (parse_exp_in_context, check_type_stack_depth)
3246 (insert_into_type_stack, insert_type, push_type, push_type_int)
3247 (insert_type_address_space, pop_type, pop_type_int)
3248 (_initialize_parse): Update.
3249
3250 2012-07-06 Tom Tromey <tromey@redhat.com>
3251
3252 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3253 Remove %type.
3254
3255 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3256
3257 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3258
3259 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3260 Jan Kratochvil <jan.kratochvil@redhat.com>
3261
3262 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3263 alloca with xmalloc/xfree.
3264
3265 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3266
3267 * MAINTAINERS (Write After Approval): Add myself to the list.
3268
3269 2012-07-05 Doug Evans <dje@google.com>
3270
3271 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3272
3273 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3274
3275 * ax-gdb.c (cli/cli-utils.h): New include.
3276 (linespec.h): Ditto.
3277 (agent_eval_command_one): New function.
3278 (agent_command_1): Ditto.
3279 (agent_command): Call function agent_command_1.
3280 (agent_eval_command): Ditto.
3281 (_initialize_ax_gdb): Change help for "maint agent"
3282 and "maint agent-eval".
3283
3284 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3285
3286 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3287 * cli/cli-utils.c (check_for_argument): New function.
3288 * cli/cli-utils.h (check_for_argument): Ditto.
3289
3290 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3291
3292 * NEWS: Mention x32 ABI support.
3293
3294 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3295
3296 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3297 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3298
3299 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3300 and pc_regnum_from_eax to -1. Update SP regnum from
3301 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3302 needed.
3303
3304 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3305 pc_regnum_from_eax.
3306
3307 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3308
3309 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3310 * dwarf2expr.h: Include gdbtypes.h.
3311 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3312 these forward declarations.
3313 (cu_offset, sect_offset): Move these ...
3314 * gdbtypes.h: Remove include dwarf2expr.h.
3315 (cu_offset, sect_offset): ... here.
3316
3317 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3318
3319 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3320 (amd64_linux_sigtramp_code): This.
3321 (amd64_x32_linux_sigtramp_code): New.
3322 (LINUX_SIGTRAMP_LEN): Updated.
3323 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3324
3325 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3326
3327 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3328
3329 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 * config.in: Regenerate.
3332 * configure: Regenerate.
3333 * configure.ac: Remove check for gnu/libc-version.h.
3334 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3335 gnu/libc-version.h.
3336 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3337 variables libc_version, libc_major and libc_minor. Replace sscanf by
3338 inferior_has_bug. Extend the comment.
3339
3340 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 * linux-thread-db.c (inferior_has_bug): New function.
3343 (thread_db_find_new_threads_silently): Return boolean as checked by
3344 inferior_has_bug, describe it in the comments.
3345 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3346 earlier. Abort the initialization if it returned non-zero.
3347 (thread_db_new_objfile): Exclude debug files.
3348 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3349 if UNTIL_NO_NEW,
3350
3351 2012-07-02 Doug Evans <dje@google.com>
3352
3353 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3354 related to queue management.
3355
3356 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3357 instead of "debug dwarf2-die" in debugging printfs.
3358 (create_debug_info_hash_table_reader): Ditto.
3359 (create_debug_info_hash_table): Ditto.
3360 (init_dwo_file): Ditto.
3361 (init_cutu_and_read_dies): Add debugging printf.
3362 (init_cutu_and_read_dies_no_follow): Ditto.
3363 (process_psymtab_comp_unit_reader): Ditto.
3364
3365 2012-07-02 Stan Shebs <stan@codesourcery.com>
3366
3367 Add target-side support for dynamic printf.
3368 * NEWS: Mention the additional style.
3369 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3370 (struct bp_location): New field cmd_bytecode.
3371 * breakpoint.c: Include format.h.
3372 (disconnected_dprintf): New global.
3373 (parse_cmd_to_aexpr): New function.
3374 (build_target_command_list): New function.
3375 (insert_bp_location): Call it.
3376 (remove_breakpoints_pid): Skip dprintf breakpoints.
3377 (print_one_breakpoint_location): Ditto.
3378 (dprintf_style_agent): New global.
3379 (dprintf_style_enums): Add dprintf_style_agent.
3380 (update_dprintf_command_list): Add agent case.
3381 (agent_printf_command): New function.
3382 (_initialize_breakpoint): Add new commands.
3383 * common/ax.def (printf): New bytecode.
3384 * ax.h (ax_string): Declare.
3385 * ax-gdb.h (gen_printf): Declare.
3386 * ax-gdb.c: Include cli-utils.h, format.h.
3387 (gen_printf): New function.
3388 (maint_agent_print_command): New function.
3389 (_initialize_ax_gdb): Add maint agent-printf command.
3390 * ax-general.c (ax_string): New function.
3391 (ax_print): Add printf disassembly.
3392 * Makefile.in (SFILES): Add format.c
3393 (COMMON_OBS): Add format.o.
3394 * common/format.h: New file.
3395 * common/format.c: New file.
3396 * printcmd.c: Include format.h.
3397 (ui_printf): Call parse_format_string.
3398 * remote.c (remote_state): New field breakpoint_commands.
3399 (PACKET_BreakpointCommands): New enum.
3400 (remote_breakpoint_commands_feature): New function.
3401 (remote_protocol_features): Add new BreakpointCommands entry.
3402 (remote_can_run_breakpoint_commands): New function.
3403 (remote_add_target_side_commands): New function.
3404 (remote_insert_breakpoint): Call it.
3405 (remote_insert_hw_breakpoint): Ditto.
3406 (_initialize_remote): Add new packet configuration for
3407 target-side breakpoint commands.
3408 * target.h (struct target_ops): New field
3409 to_can_run_breakpoint_commands.
3410 (target_can_run_breakpoint_commands): New macro.
3411 * target.c (update_current_target): Handle
3412 to_can_run_breakpoint_commands.
3413
3414 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3415
3416 Execute -ix and -iex only after system and user gdbinit files.
3417 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3418 processing down after gdbinit files.
3419
3420 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3421
3422 Add fnmatch-gnu module.
3423 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3424 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3425 * gnulib/aclocal.m4: Regenerate.
3426 * gnulib/config.in: Regenerate.
3427 * gnulib/configure: Regenerate.
3428 * gnulib/import/dummy.c: Remove.
3429 * gnulib/import/Makefile.am: Regenerate.
3430 * gnulib/import/Makefile.in: Likewise.
3431 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3432 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3433 * gnulib/import/alloca.c: New file.
3434 * gnulib/import/alloca.in.h: Likewise.
3435 * gnulib/import/config.charset: Likewise.
3436 * gnulib/import/fnmatch.c: Likewise.
3437 * gnulib/import/fnmatch.in.h: Likewise.
3438 * gnulib/import/fnmatch_loop.c: Likewise.
3439 * gnulib/import/localcharset.c: Likewise.
3440 * gnulib/import/localcharset.h: Likewise.
3441 * gnulib/import/m4/alloca.m4: Likewise.
3442 * gnulib/import/m4/codeset.m4: Likewise.
3443 * gnulib/import/m4/configmake.m4: Likewise.
3444 * gnulib/import/m4/fcntl-o.m4: Likewise.
3445 * gnulib/import/m4/fnmatch.m4: Likewise.
3446 * gnulib/import/m4/glibc21.m4: Likewise.
3447 * gnulib/import/m4/localcharset.m4: Likewise.
3448 * gnulib/import/m4/locale-fr.m4: Likewise.
3449 * gnulib/import/m4/locale-ja.m4: Likewise.
3450 * gnulib/import/m4/locale-zh.m4: Likewise.
3451 * gnulib/import/m4/mbrtowc.m4: Likewise.
3452 * gnulib/import/m4/mbsinit.m4: Likewise.
3453 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3454 * gnulib/import/m4/mbstate_t.m4: Likewise.
3455 * gnulib/import/m4/stdbool.m4: Likewise.
3456 * gnulib/import/m4/wchar_h.m4: Likewise.
3457 * gnulib/import/m4/wctype_h.m4: Likewise.
3458 * gnulib/import/m4/wint_t.m4: Likewise.
3459 * gnulib/import/mbrtowc.c: Likewise.
3460 * gnulib/import/mbsinit.c: Likewise.
3461 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3462 * gnulib/import/mbsrtowcs-state.c: Likewise.
3463 * gnulib/import/mbsrtowcs.c: Likewise.
3464 * gnulib/import/ref-add.sin: Likewise.
3465 * gnulib/import/ref-del.sin: Likewise.
3466 * gnulib/import/stdbool.in.h: Likewise.
3467 * gnulib/import/streq.h: Likewise.
3468 * gnulib/import/strnlen1.c: Likewise.
3469 * gnulib/import/strnlen1.h: Likewise.
3470 * gnulib/import/verify.h: Likewise.
3471 * gnulib/import/wchar.in.h: Likewise.
3472 * gnulib/import/wctype.in.h: Likewise.
3473
3474 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 Support shell wildcards for 'set auto-load safe-path'.
3477 * auto-load.c: Include fnmatch.h.
3478 (filename_is_in_dir): Rename to ...
3479 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3480 it. Update function comment. Rename dir_len to pattern_len. New
3481 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3482 messages. Use gdb_filename_fnmatch.
3483 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3484 pattern.
3485 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3486 * defs.h (gdb_filename_fnmatch): New declaration.
3487 * utils.c: Include fnmatch.h.
3488 (gdb_filename_fnmatch): New function.
3489
3490 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3491
3492 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3493 `-probe' and `-probe-stap' options.
3494
3495 2012-07-01 Yao Qi <yao@codesourcery.com>
3496
3497 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3498 always_inserted_off, and always_inserted_enums.
3499 Change always_inserted_mode's type to 'enum auto_boolean'.
3500 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3501 callers.
3502 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3503 of add_setshow_enum_cmd.
3504 * infrun.c: Remove can_use_displaced_stepping_auto,
3505 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3506 can_use_displaced_stepping_enum.
3507 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3508 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3509 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3510 add_setshow_enum_cmd.
3511
3512 2012-06-30 Doug Evans <dje@google.com>
3513
3514 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3515 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3516 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3517
3518 2012-06-29 Doug Evans <dje@google.com>
3519
3520 * linespec.c: #include "stack.h".
3521 (decode_line_with_current_source): Moved here from symtab.c and
3522 renamed from decode_line_spec. All callers updated.
3523 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3524 renamed from decode_line_spec_1. All callers updated.
3525 * linespec.h (decode_line_with_current_source): Move declaration here
3526 from symtab.h and renamed from decode_line_spec.
3527 (decode_line_with_last_displayed): Move declaration here from symtab.h
3528 and renamed from decode_line_spec_1.
3529 * macrocmd.c: #include "linespec.h".
3530 * symtab.c: Remove #include "linespec.h".
3531
3532 2012-06-28 Doug Evans <dje@google.com>
3533
3534 * dwarf2read.c (get_cu_length): New function.
3535 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3536 (create_debug_types_hash_table): Ditto.
3537 (init_cutu_and_read_dies): Ditto.
3538 (init_cutu_and_read_dies_no_follow): Ditto.
3539
3540 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3541
3542 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3543 (struct abbrev_table): Define.
3544 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3545 abbrev_table.
3546 (init_cutu_and_read_dies): Update.
3547 (abbrev_table_alloc_abbrev): New function. Replaces
3548 dwarf_alloc_abbrev. All callers updated.
3549 (abbrev_table_add_abbrev): New function.
3550 (abbrev_table_lookup_abbrev): New function. Replaces
3551 dwarf2_lookup_abbrev. All callers updated.
3552 (abbrev_table_read_table): New function. Contents moved here from
3553 dwarf2_read_abbrevs.
3554 (dwarf2_read_abbrevs): Call it.
3555 (abbrev_table_free): New function.
3556 (dwarf2_free_abbrev_table): Call it.
3557
3558 2012-06-28 Stan Shebs <stan@codesourcery.com>
3559
3560 * osdata.c (info_osdata_command): Filter out "Title" columns
3561 from non-MI uses.
3562 * common/linux-osdata.c (struct osdata_type): Add title field.
3563 (osdata_table): Add titles to each entry.
3564 (linux_command_xfer_osdata): Add a column for title data.
3565
3566 2012-06-28 Stan Shebs <stan@codesourcery.com>
3567
3568 Make logging work for MI.
3569 * NEWS: Mention it.
3570 * interps.h (interp_set_logging_ftype): New typedef.
3571 (struct interp_procs): New field set_logging_proc.
3572 (current_interp_set_logging): Declare.
3573 * interps.c (current_interp_set_logging): New function.
3574 * cli/cli-logging.c: Include interps.h.
3575 (set_logging_redirect): Call current_interp_set_logging.
3576 (pop_output_files): Ditto.
3577 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3578 * mi/mi-console.h (mi_console_set_raw): Declare.
3579 * mi/mi-console.c (mi_console_set_raw): New function.
3580 * mi/mi-interp.c (saved_raw_stdout): New global.
3581 (mi_set_logging): New function.
3582 (_initialize_mi_interp): Add it to interp procs.
3583
3584 2012-06-28 Doug Evans <dje@google.com>
3585
3586 * symtab.c (lookup_symbol_aux_objfile): Use
3587 ALL_OBJFILE_PRIMARY_SYMTABS.
3588
3589 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3590
3591 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3592
3593 * common/buffer.c: Include inttypes.h and stdint.h.
3594 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3595
3596 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 Pedro Alves <palves@redhat.com>
3598
3599 * gdbthread.h (ALL_THREADS): New macro.
3600 (thread_list): Declare.
3601 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3602 going, but instead fall through to the stepping handling.
3603 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3604 the passed in signal. Adjust debug output.
3605 (resume_callback): Rename to ...
3606 (linux_nat_resume_callback): ... this. Pass the thread's last
3607 stop signal, if in "pass" state.
3608 (linux_nat_resume): Adjust to rename.
3609 (stop_wait_callback): New assertion. Don't respawn signals;
3610 instead let the LWP remain with SIGNALLED set.
3611 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3612 * remote.c (append_pending_thread_resumptions): New.
3613 (remote_vcont_resume): Call it.
3614 * target.h (target_resume): Extend comment.
3615
3616 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3617
3618 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3619
3620 2012-06-27 Doug Evans <dje@google.com>
3621
3622 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3623 Delete have_addr_base, unused. All uses updated.
3624 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3625 (dwarf2_get_pc_bounds): Add ranges_base.
3626 (dwarf2_record_block_ranges): Ditto.
3627
3628 2012-06-27 Tom Tromey <tromey@redhat.com>
3629
3630 PR macros/7961:
3631 * varobj.c (varobj_create): Update.
3632 (varobj_set_value): Update.
3633 * tracepoint.c (validate_actionline): Update.
3634 (encode_actions_1): Update.
3635 * parse.c (parse_exp_1): Add 'pc' argument.
3636 (parse_exp_in_context): Add 'pc' argument. Change how
3637 expression_context_pc is set.
3638 (parse_expression): Update.
3639 (parse_field_expression): Update.
3640 * expression.h (parse_exp_1): Update.
3641 * eval.c (parse_to_comma_and_eval): Update.
3642 * breakpoint.c (set_breakpoint_condition): Update.
3643 (update_watchpoint): Update.
3644 (init_breakpoint_sal): Update
3645 (find_condition_and_thread): Update.
3646 (watch_command_1): Update.
3647 (update_breakpoint_locations): Update.
3648 * ada-lang.c (ada_read_renaming_var_value): Update.
3649 (create_excep_cond_exprs): Update.
3650
3651 2012-06-27 Doug Evans <dje@google.com>
3652
3653 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3654 type units.
3655
3656 2012-06-26 Doug Evans <dje@google.com>
3657
3658 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3659 prototype.
3660 (error_check_comp_unit_head): New arg abbrev_section. All callers
3661 updated.
3662 (read_and_check_comp_unit_head): Ditto.
3663 (read_and_check_type_unit_head): Ditto.
3664
3665 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3666
3667 New attribute 'last' for gdb.Symtab_and_line.
3668 * NEWS (Python Scripting): Add entry about the new attribute.
3669 * python/py-symtab.c (salpy_get_last): New function which
3670 implements the get method for the 'last' attribute of
3671 gdb.Symtab_and_line.
3672 (sal_object_getset): Add entry for the 'last' attribute.
3673
3674 2012-06-26 Doug Evans <dje@google.com>
3675
3676 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3677 (dwo_sections): Add macinfo, macro.
3678 (dwarf2_locate_dwo_sections): Watch for macro sections.
3679 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3680 All callers updated. Handle DWO files.
3681
3682 * NEWS: Mention new options "set debug dwarf2-read" and
3683 "set debug symtab-create".
3684 * dwarf2read.c (dwarf2_read_debug): New static global.
3685 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3686 (process_queue): Ditto.
3687 (process_full_comp_unit): Ditto.
3688 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3689 * elfread.c (elf_symfile_read): Add debugging printf.
3690 * minsyms.c (install_minimal_symbols): Ditto.
3691 * psymtab.c (allocate_psymtab): Ditto.
3692 * symfile.c (allocate_symtab): Ditto.
3693 * symtab.c (symtab_create_debug): New global.
3694 (_initialize_symtab): Add new option "set debug symtab-create".
3695 * symtab.h (symtab_create_debug): Declare.
3696
3697 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3698 (lookup_dwo_type_unit): Ditto.
3699
3700 2012-06-26 Roland McGrath <roland@hack.frob.com>
3701 H.J. Lu <hongjiu.lu@intel.com>
3702
3703 * amd64-linux-nat.c: Include <sys/user.h>.
3704 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3705 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3706 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3707
3708 * configure.ac: Check if the fs_base and gs_base members of
3709 `struct user_regs_struct' exist.
3710 * config.in: Regenerated.
3711 * configure: Likewise.
3712
3713 2012-06-25 Michael Eager <eager@eagercon.com>
3714
3715 PR python/14291
3716 * python/python.c (gdbpy_write): Check for interrupted output.
3717
3718 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3719
3720 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3721 register as a stack alignment in ARM mode.
3722
3723 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3724
3725 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3726 * gnulib/config.in: Regenerate.
3727 * gnulib/configure: Likewise.
3728 * gnulib/import/m4/extensions.m4: Update it.
3729 * gnulib/import/m4/gnulib-common.m4: Likewise.
3730 * gnulib/import/m4/memmem.m4: Likewise.
3731 * gnulib/import/m4/mmap-anon.m4: Likewise.
3732 * gnulib/import/m4/multiarch.m4: Likewise.
3733 * gnulib/import/stdint.in.h: Likewise.
3734
3735 2012-06-24 Yao Qi <yao@codesourcery.com>
3736
3737 * corefile.c (write_memory_with_notification): New.
3738 * gdbcore.h: Declare write_memory_with_notification.
3739 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3740 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3741 * valops.c (value_assign): Likewise.
3742 * python/py-inferior.c (infpy_write_memory): Call
3743 'write_memory_with_notification'.
3744
3745 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747 * cc-with-index.sh: Use also -ex "set auto-load no".
3748
3749 2012-06-23 Doug Evans <dje@google.com>
3750
3751 PR 14125
3752 * NEWS: Document additions to .gdb_index.
3753 * dwarf2read.c: #include "gdb/gdb-index.h".
3754 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3755 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3756 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3757 (dwarf2_read_index): Recognize version 7.
3758 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3759 block_kind, domain): All callers updated.
3760 (dw2_find_symbol_file): Handle new index CU values.
3761 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3762 (add_index_entry): New args is_static, kind. All callers updated.
3763 (offset_type_compare, uniquify_cu_indices): New functions
3764 (symbol_kind): New function.
3765 (write_psymtabs_to_index): Remove duplicate CU values.
3766 (write_psymtabs_to_index): Write .gdb_index version 7.
3767
3768 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3769
3770 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3771 * configure: Regenerate.
3772
3773 2012-06-20 Yao Qi <yao@codesourcery.com>
3774
3775 * python/py-inferior.c: Update comments of infpy_read_memory
3776 and infpy_write_memory.
3777
3778 2012-06-19 Tom Tromey <tromey@redhat.com>
3779
3780 PR exp/9514:
3781 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3782 (push_type_address_space): Remove.
3783 * parse.c (insert_into_type_stack): New function.
3784 (insert_type): Likewise.
3785 (insert_type_address_space): Rename from push_type_address_space.
3786 Insert tp_space_identifier.
3787 * c-exp.y (ptr_operator): New production.
3788 (abs_decl): Use ptr_operator.
3789 (space_identifier): Call insert_type_address_space.
3790 (ptype): Don't use const_or_volatile_or_space_identifier.
3791 (const_or_volatile_noopt): Call insert_type.
3792 (conversion_type_id, conversion_declarator): New productions.
3793 (operator): Use conversion_type_id.
3794
3795 2012-06-18 Doug Evans <dje@google.com>
3796
3797 * symtab.h (minimal_symbol): New member created_by_gdb.
3798 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3799 created by gdb.
3800 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3801 (search_symbols): Call it instead of lookup_symbol.
3802 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3803
3804 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3805 Adjust address for DW_OP_GNU_addr_index.
3806 * dwarf2expr.h (dwarf_expr_context): Update comment.
3807 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3808 all callers updated. Handle TLS vars described with
3809 DW_OP_GNU_const_index.
3810 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3811 and DW_OP_GNU_const_index.
3812 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3813
3814 * block.c (find_block_in_blockvector): Make explicit the fact that we
3815 ignore GLOBAL_BLOCK.
3816
3817 2012-06-18 Tom Tromey <tromey@redhat.com>
3818
3819 * c-exp.y (operator): Remove trailing space after "delete" and
3820 "delete[]".
3821
3822 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3823 Jan Kratochvil <jan.kratochvil@redhat.com>
3824
3825 Switch i386 and derived targets to ON_STACK.
3826 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3827 (amd64_dicos_init_abi): Remove its installment.
3828 * dicos-tdep.c (dicos_init_abi): Remove the
3829 set_gdbarch_call_dummy_location call. Update the comment here.
3830 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3831 (i386_dicos_init_abi): Remove its installment.
3832 * i386-tdep.c (i386_push_dummy_code): New function.
3833 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3834 i386_push_dummy_code.
3835
3836 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3837
3838 Remove stale dummy frames.
3839 * breakpoint.c: Include dummy-frame.h.
3840 (longjmp_breakpoint_ops): New variable.
3841 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3842 bp_longjmp_call_dummy.
3843 (bpstat_what, bptype_string, print_one_breakpoint_location)
3844 (init_bp_location): Support bp_longjmp_call_dummy.
3845 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3846 (set_longjmp_breakpoint_for_call_dummy)
3847 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3848 functions.
3849 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3850 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3851 FIXME comment and extend the other comment for bp_call_dummy.
3852 (set_longjmp_breakpoint_for_call_dummy)
3853 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3854 * dummy-frame.c: Include gdbthread.h.
3855 (pop_dummy_frame_bpt): New function.
3856 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3857 (dummy_frame_discard): New function.
3858 (cleanup_dummy_frames): Update the comment about longjmps.
3859 * dummy-frame.h (dummy_frame_discard): New declaration.
3860 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3861 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3862 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3863 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3864 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3865 keep_going if IS_LONGJMP and there is no other reason to stop.
3866
3867 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3868
3869 * remote-sim.c (sim_command_completer): Initialize
3870 variable 'result'.
3871
3872 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3875 * dwarf2loc.c (call_site_parameter_matches): Support
3876 CALL_SITE_PARAMETER_PARAM_OFFSET.
3877 (needs_dwarf_reg_entry_value): Push stub value.
3878 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3879 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3880 * gdbtypes.h (enum call_site_parameter_kind): New item
3881 CALL_SITE_PARAMETER_PARAM_OFFSET.
3882 (struct call_site.parameter.u): New field param_offset.
3883
3884 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3885
3886 Code cleanup: Generalize call_site.parameter key.
3887 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3888 variable dwarf_reg. New variable kind_u. Update parameters to
3889 push_dwarf_reg_entry_value.
3890 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3891 * dwarf2expr.h (enum call_site_parameter_kind)
3892 (union call_site_parameter_u): Forward declarations.
3893 (struct dwarf_expr_context_funcs): Update parameters and their
3894 description for push_dwarf_reg_entry_value.
3895 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3896 * dwarf2loc.c (call_site_parameter_matches): New function.
3897 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3898 description. Use call_site_parameter_matches.
3899 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3900 Update parameters and their description.
3901 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3902 New variable kind_u. Adjust the caller for updated parameters.
3903 (needs_dwarf_reg_entry_value): Update parameters.
3904 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3905 instead of attr. Update for the changed fields of struct
3906 call_site_parameter.
3907 * gdbtypes.h: Include dwarf2expr.h.
3908 (enum call_site_parameter_kind): New.
3909 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3910 fb_offset into new union u.
3911
3912 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3913
3914 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3915 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3916 for x32.
3917
3918 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3919
3920 * amd64-linux-nat.c (compat_x32_clock_t): New.
3921 (compat_x32_siginfo_t): Likewise.
3922 (compat_x32_siginfo_from_siginfo): Likewise.
3923 (siginfo_from_compat_x32_siginfo): Likewise.
3924 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3925 and siginfo_from_compat_x32_siginfo for x32.
3926
3927 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3928
3929 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3930
3931 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3932
3933 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3934 instead of gdbarch_ptr_bit.
3935 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3936 (amd64_supply_native_gregset): Likewise.
3937 (amd64_collect_native_gregset): Likewise.
3938 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3939 (amd64_supply_xsave): Likewise.
3940 (amd64_collect_fxsave): Likewise.
3941 (amd64_collect_xsave): Likewise.
3942
3943 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3944
3945 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3946 (amd64_linux_read_description): Check DS segment register for
3947 x32 process.
3948
3949 2012-06-15 Tom Tromey <tromey@redhat.com>
3950
3951 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3952 init_cutu_and_read_dies.
3953
3954 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3955
3956 * MAINTAINERS (Write After Approval): Add myself to the list.
3957
3958 2012-06-15 Tom Tromey <tromey@redhat.com>
3959
3960 * valops.c (value_find_oload_method_list): Now static.
3961 * value.h (value_find_oload_method_list): Don't declare.
3962
3963 2012-06-15 Tom Tromey <tromey@redhat.com>
3964
3965 * valops.c (find_overload_match): Use value_ind.
3966
3967 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3968
3969 * infrun.c (handle_inferior_event): Correct indentation.
3970
3971 2012-06-14 Doug Evans <dje@google.com>
3972
3973 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3974 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3975 All uses updated.
3976 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3977 updated. Handle DEBUG_LOC_START_LENGTH.
3978 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3979 (loclist_describe_location): Ditto.
3980
3981 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3982
3983 PR backtrace/13866
3984 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3985 after hiding inline functions.
3986
3987 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3988
3989 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3990 _initialize_inf_ttrace.
3991
3992 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3993
3994 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3995 _initialize_hppa_hpux_nat.
3996
3997 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3998
3999 * remote-sim.c (sim_command_completer): Change type of return
4000 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4001
4002 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4003 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 PR tdep/14222
4006 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4007 stack on a 16-byte boundary.
4008
4009 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4010
4011 * jit.c (finalize_symtab): Set function's return type to 'void' by
4012 default.
4013
4014 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4015 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4018 Move bits common to both the classic LP64 and the new x32 ILP32
4019 ABI here.
4020 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4021 (amd64_x32_linux_init_abi): New function.
4022 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4023 subtype.
4024
4025 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4026 * i386-tdep.c (i386_pseudo_register_name): Make public.
4027 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4028 * amd64-tdep.c (amd64_dword_names): Add "eip".
4029 (amd64_x32_pseudo_register_type): New function
4030 (amd64_x32_init_abi): New function.
4031
4032 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4033
4034 PR build/14003
4035 * inferior.h (struct inferior_suspend_state): Comment out.
4036 (struct inferior): Comment out the field suspend.
4037 * infrun.c (struct infcall_suspend_state): Comment out the field
4038 inferior_suspend.
4039 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4040 out its assignment.
4041
4042 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4045 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4046 function comment. Return ERROR for unresolved cases. Implement
4047 returning proper NAME.
4048 (yylex): Accept also NAME from classify_inner_name.
4049 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4050 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4051 LOC_TYPEDEF type.
4052 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4053
4054 2012-06-13 Tom Tromey <tromey@redhat.com>
4055
4056 * breakpoint.c (condition_completer): New function.
4057 (_initialize_breakpoint): Use it.
4058 * value.c (complete_internalvar): New function.
4059 * value.h (complete_internalvar): Declare.
4060
4061 2012-06-13 Tom Tromey <tromey@redhat.com>
4062
4063 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4064 * breakpoint.c (catch_syscall_completer): Return a VEC.
4065 * cli/cli-cmds.c (complete_command): Update.
4066 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4067 (complete_on_enum): Likewise.
4068 * command.h: Include gdb_vecs.h.
4069 (completer_ftype): Change return type.
4070 (complete_on_cmdlist, complete_on_enum): Likewise.
4071 * completer.c (noop_completer, filename_completer)
4072 (location_completer): Return a VEC.
4073 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4074 to a VEC.
4075 (expression_completer, complete_line_internal, complete_line)
4076 (command_completer): Return a VEC.
4077 (gdb_completion_word_break_characters, line_completion_function):
4078 Update.
4079 * completer.h: Include gdb_vecs.h.
4080 (complete_line, noop_completer, filename_completer)
4081 (expression_completer, location_completer, command_completer):
4082 Update.
4083 * f-lang.c (f_word_break_characters): Return a VEC.
4084 * interps.c (interpreter_completer): Return a VEC.
4085 * language.h (struct language_defn)
4086 <la_make_symbol_completion_list>: Return a VEC.
4087 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4088 * symtab.c (free_completion_list): Take a VEC.
4089 (return_val_size, return_val_index): Remove.
4090 (return_val): Now a VEC.
4091 (completion_list_add_name): Update.
4092 (default_make_symbol_completion_list_break_on)
4093 (default_make_symbol_completion_list, make_symbol_completion_list)
4094 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4095 Return a VEC.
4096 (add_filename_to_list): Update.
4097 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4098 <list>: Now a VEC.
4099 (maybe_add_partial_symtab_filename): Update.
4100 (make_source_files_completion_list): Return a VEC.
4101 * symtab.h (default_make_symbol_completion_list_break_on)
4102 (default_make_symbol_completion_list, make_symbol_completion_list)
4103 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4104 (make_source_files_completion_list): Update.
4105
4106 2012-06-13 Tom Tromey <tromey@redhat.com>
4107
4108 * breakpoint.c (add_catch_command): Use completer_ftype.
4109 * breakpoint.h: Include command.h.
4110 (add_catch_command): Use completer_ftype.
4111 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4112 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4113 Use completer_ftype.
4114 * command.h (completer_ftype): New typedef.
4115 (set_cmd_completer): Use it.
4116 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4117 completer_ftype.
4118
4119 2012-06-13 Pedro Alves <palves@redhat.com>
4120
4121 Partial revert of previous change.
4122
4123 * serial.c (scb_base): New global.
4124 (serial_for_fd): New.
4125 (serial_open, serial_fdopen_ops): Link new serial in open serials
4126 chain.
4127 (do_serial_close): Unlink serial from the open serials chain.
4128
4129 2012-06-12 Pedro Alves <palves@redhat.com>
4130
4131 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4132 threads here.
4133 (prepare_for_detach): No longer context switch here in non-stop
4134 mode.
4135 (fetch_inferior_event): Ditto.
4136 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4137 to the event thread before removing breakpoints. Switch to the
4138 event thread before inserting breakpoints and resuming.
4139 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4140 event thread before resuming.
4141 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4142 Switch to the event thread before removing breakpoints.
4143
4144 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4145
4146 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4147 special characters correctly for the Windows shells. See
4148 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4149 report.
4150 [!__MINGW32__]: Remove extra double quote character from special
4151 characters.
4152
4153 2012-06-11 Stan Shebs <stan@codesourcery.com>
4154
4155 * ui-out.h: Remove #if 0 declarations.
4156 * ui-out.c: Remove #if 0 functions.
4157
4158 2012-06-11 Pedro Alves <palves@redhat.com>
4159
4160 * ser-base.c (run_async_handler_and_reschedule): New.
4161 (fd_event, push_event): Use it.
4162 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4163 reference count to 1.
4164 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4165 instead of xfree.
4166 (serial_is_open, serial_ref, serial_unref): New.
4167 * serial.h (serial_open): Adjust comment.
4168 (serial_is_open): Declare.
4169 (serial_close): Adjust comment.
4170 (serial_ref, serial_unref) Declare.
4171 (struct serial): New field 'refcnt'.
4172
4173 2012-06-11 Pedro Alves <palves@redhat.com>
4174
4175 Remove #if 0'd "connect" command, and unnecessary associated
4176 refcounting and serial reuse bits.
4177
4178 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4179 * serial.c (last_serial_opened): Delete.
4180 (scb_base): Delete.
4181 (serial_open): Adjust.
4182 (serial_for_fd): Delete.
4183 (serial_fdopen_ops, do_serial_close): Adjust.
4184 (serial_fdopen_ops): Adjust.
4185
4186 2012-06-11 Pedro Alves <palves@redhat.com>
4187
4188 * serial.c (do_serial_close): Remove early return when SCB is
4189 null.
4190
4191 2012-06-11 Tom Tromey <tromey@redhat.com>
4192
4193 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4194
4195 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4196
4197 Fix regression by the "ambiguous linespec" series.
4198 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4199 get_last_displayed_symtab and get_last_displayed_line and depending
4200 on CURSAL.
4201
4202 2012-06-11 Tom Tromey <tromey@redhat.com>
4203
4204 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4205 (dw2_find_symbol_file): Use it.
4206
4207 2012-06-11 Michael Eager <eager@eagercon.com>
4208
4209 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4210 * mips-linux-tdep.h (mips_signals): New
4211
4212 2012-06-11 Tom Tromey <tromey@redhat.com>
4213
4214 * infrun.c (handle_inferior_event)
4215 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4216 breakpoint.
4217 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4218 exception logic in all cases. Update comments.
4219 (insert_longjmp_resume_breakpoint): Set the exception resume
4220 breakpoint.
4221
4222 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4223
4224 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4225
4226 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4227
4228 * valarith.c (binop_types_user_defined_p): Fix a typo.
4229
4230 2012-06-08 Yao Qi <yao@codesourcery.com>
4231 Chung-Lin Tang <cltang@codesourcery.com>
4232
4233 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4234 * arch-utils.h: Declare.
4235 * gdbarch.sh: Add return_in_first_hidden_param_p.
4236 * gdbarch.c, gdbarch.h: Regenerated.
4237 * infcall.c (call_function_by_hand): Call
4238 gdbarch_return_in_first_hidden_param_p instead of
4239 language_pass_by_reference.
4240
4241 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4242 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4243 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4244 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4245 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4246 `cplus_return_struct_by_reference'.
4247 (tic6x_return_value): Handle language cplusplus.
4248 (tic6x_return_in_first_hidden_param_p): New.
4249 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4250
4251 2012-06-07 Doug Evans <dje@google.com>
4252
4253 * dwarf2read.c (dwarf2_cu): Add comment.
4254
4255 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4256
4257 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4258 variable.
4259 (mips_eabi_push_dummy_call): Likewise.
4260 (mips_n32n64_push_dummy_call): Likewise.
4261 (mips_o32_push_dummy_call): Likewise.
4262 (mips_o64_push_dummy_call): Likewise.
4263
4264 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4265
4266 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4267
4268 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4269
4270 * mips-tdep.c (mips_pseudo_register_type): Use
4271 mips_float_register_p.
4272
4273 2012-06-06 Pedro Alves <palves@redhat.com>
4274
4275 * infrun.c (handle_inferior_event): Remove calls to
4276 reinit_frame_cache that follow a context_switch call.
4277
4278 2012-06-06 Pedro Alves <palves@redhat.com>
4279
4280 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4281 context_switch and remove stale comment.
4282
4283 2012-06-06 Pedro Alves <palves@redhat.com>
4284
4285 * infrun.c (struct execution_control_state): Remove
4286 `new_thread_event' field.
4287 (handle_inferior_event): Simplify new threads handling; don't
4288 resume the inferior if we find a new thread.
4289
4290 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4291
4292 * NEWS: Document the deprecation of SH's 'regs' command.
4293 * inferior.h (all_registers_info): Add function declaration.
4294 * sh-tdep.c (sh_show_regs): Remove variable.
4295 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4296 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4297 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4298 (sh_show_regs_command): Remove functions.
4299 (sh_gdbarch_init): Don't set sh_show_regs.
4300 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4301 'info all-registers'.
4302 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4303 (sh64_show_regs): Remove functions.
4304 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4305
4306 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 * configure.ac: Move development=true below AC_INIT.
4309 * configure: Regenerate.
4310
4311 2012-06-05 Stan Shebs <stan@codesourcery.com>
4312
4313 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4314 gdb_stdout.
4315
4316 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4317
4318 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4319 argument as ssize_t.
4320 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4321 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4322 * target.c (target_read_stack, target_write_memory)
4323 (target_write_raw_memory): Likewise.
4324 * target.h (target_read_stack, target_write_memory)
4325 (target_write_raw_memory): Likewise.
4326
4327 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4328
4329 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4330 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4331 * target.c (target_read_memory): Change LEN to ssize_t.
4332 * target.h (target_read_memory): Change LEN to ssize_t.
4333
4334 2012-06-05 Pedro Alves <palves@redhat.com>
4335
4336 PR backtrace/13866
4337
4338 * breakpoint.c (until_break_command): Only fetch the selected
4339 frame after decode_line_1.
4340
4341 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4342
4343 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4344 event breakpoint at _start, __start or main if a program
4345 interpreter is not found.
4346
4347 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4348
4349 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4350 Add declaration.
4351 * windows-tdep.c: #include "objfiles.h".
4352 (windows_iterate_over_objfiles_in_search_order): New function.
4353 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4354 iterate_over_objfiles_in_search_order gdbarch method to
4355 windows_iterate_over_objfiles_in_search_order.
4356 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4357
4358 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4359
4360 * gdbarch.sh: Add generation of
4361 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4362 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4363 (iterate_over_objfiles_in_search_order): New gdbarch method.
4364 * gdbarch.h, gdbarch.c: Regenerate.
4365 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4366 Add declaration.
4367 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4368 New function.
4369 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4370 out of lookup_symbol_aux_symtabs.
4371 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4372 call to lookup_symbol_aux_objfile.
4373 (struct global_sym_lookup_data): New type.
4374 (lookup_symbol_global_iterator_cb): New function.
4375 (lookup_symbol_global): Search for symbol using
4376 gdbarch_iterate_over_objfiles_in_search_order and
4377 lookup_symbol_global_iterator_cb.
4378 * findvar.c (struct minsym_lookup_data): New type.
4379 (minsym_lookup_iterator_cb): New function.
4380 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4381 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4382 and minsym_lookup_iterator_cb.
4383
4384 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4385
4386 Revert the following patch:
4387 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4388 try locating the symbol in the symbol's own objfile first, before
4389 extending the search to all objfiles.
4390 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4391 out of lookup_symbol_aux_symtabs.
4392 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4393 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4394 Do not search EXCLUDE_OBJFILE.
4395 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4396 (lookup_symbol_global): Search for matches in the block's objfile
4397 first, before searching all other objfiles.
4398
4399 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4400
4401 * breakpoint.c (find_condition_and_thread): Stop parsing
4402 as soon as the first invalid keyword is found.
4403
4404 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4405
4406 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4407
4408 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4409
4410 * config/djgpp/djcheck.sh: Add copyright header.
4411
4412 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4413
4414 * copyright.py (update_files, main): Fix path to update-copyright
4415 script.
4416
4417 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4418
4419 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4420 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4421 for which a reminder to update by hand is printed.
4422
4423 2012-06-04 Doug Evans <dje@google.com>
4424
4425 * buildsym.c (make_blockvector): Add comment.
4426
4427 2012-06-04 Pedro Alves <palves@redhat.com>
4428
4429 * arch-utils.c (default_gdb_signal_from_target): Delete.
4430 * arch-utils.h (default_gdb_signal_from_target): Delete.
4431 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4432 gdbarch_gdb_signal_from_target_p.
4433 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4434 predicate).
4435 * gdbarch.h: Regenerate.
4436 * gdbarch.c: Regenerate.
4437
4438 2012-06-04 Pedro Alves <palves@redhat.com>
4439
4440 * gdbarch.sh (gdb_signal_from_target): Mention that the
4441 implementation of the method must be host independent.
4442 * gdbarch.h: Regenerate.
4443
4444 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4445
4446 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4447 parameters.
4448 (target_read_memory_bfd): New function.
4449 (symbol_file_add_from_memory): Use it.
4450
4451 2012-06-03 Doug Evans <dje@google.com>
4452
4453 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4454 of primary symtab.
4455 (basic_lookup_transparent_type): Ditto.
4456
4457 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4458 (ALL_PRIMARY_SYMTABS): Use it.
4459 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4460 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4461 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4462 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4463 (basic_lookup_transparent_type): Ditto.
4464
4465 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4466
4467 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4468 it to optimize resolution of demangled name.
4469
4470 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4471
4472 * configure.ac (development): Define new variable.
4473 Call AC_CHECK_LIB for mcheck if $development.
4474 (ERROR_ON_WARNING): Enable it by default only if $development.
4475 * config.in: Regenerate.
4476 * configure: Regenerate.
4477
4478 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4479
4480 * target.c (target_read_memory): Make LEN argument as size_t.
4481 * target.h (target_read_memory): Likewise.
4482
4483 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4486
4487 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4488
4489 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4490 BookE interface for PowerPC server processors if not available
4491 in the Linux Kernel.
4492
4493 2012-05-31 Keith Seitz <keiths@redhat.com>
4494
4495 * linespec.c (decode_objc): Add cleanup to free
4496 INFO.FILE_SYMTABS.
4497 (find_linespec_symbols): Add cleanup to free CLASSES.
4498 * symfile.c (find_separate_debug_file_by_debuglink): Add
4499 cleanup to free DEBUGLINK.
4500 * ui-out.c (clear_header_list): No need to check if
4501 HEADER_NEXT.COLHDR is NULL.
4502 Free HEADER_NEXT.COL_NAME.
4503
4504 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4505
4506 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4507 warning.
4508
4509 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4510
4511 * configure.host (gdb_host_cpu): Handle tilegx*.
4512 (gdb_host): Handle tilegx-*-linux*.
4513 * tilegx-linux-nat.c: New file.
4514 * config/tilegx/linux.mh: New file.
4515
4516 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4517
4518 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4519 tilegx-linux-tdep.o.
4520 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4521 tilegx-linux-tdep.c.
4522 * configure.tgt: Handle tilegx-*-linux*.
4523 * tilegx-tdep.h: New file.
4524 * tilegx-tdep.c: New file.
4525 * tilegx-linux-tdep.c: New file.
4526 * regformats/reg-tilegx.dat: New file.
4527
4528 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4529
4530 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4531 accounting of hw watchpoints on ppc.
4532
4533 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4534
4535 * source.c (openp): Expand tilde in path entries.
4536
4537 2012-05-29 Doug Evans <dje@google.com>
4538
4539 * buildsym.c (block_compar): Fix comment.
4540 (end_symtab): Fix and clarify some comments.
4541
4542 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4543 cleanup_undefined_types.
4544 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4545 All callers updated.
4546
4547 2012-05-29 Tom Tromey <tromey@redhat.com>
4548
4549 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4550 fails.
4551 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4552 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4553 fails.
4554 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4555 fails.
4556
4557 2012-05-29 Tristan Gingold <gingold@adacore.com>
4558
4559 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4560 (struct darwin_info): ... New struct.
4561 (solib_darwin_pspace_data): New variable.
4562 (darwin_pspace_data_cleanup): New function.
4563 (get_darwin_info): Likewise.
4564 (darwin_dyld_version_ok, darwin_load_image_infos)
4565 (darwin_solib_get_all_image_info_addr_at_init)
4566 (darwin_solib_read_all_image_info_addr): Add info argument.
4567 Adjust code.
4568 (darwin_current_sos): Use per pspace structure.
4569 (darwin_solib_create_inferior_hook): Likewise.
4570 (darwin_clear_solib): Likewise.
4571 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4572
4573 2012-05-28 Pedro Alves <palves@redhat.com>
4574
4575 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4576 block that uses them. Clear ecss before handling each event.
4577
4578 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4579
4580 * solib-svr4.c (svr4_current_sos): New comment on
4581 svr4_current_sos_via_xfer_libraries fall back.
4582
4583 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4584
4585 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4586 it as a fallback for TYPE_IS_OPAQUE.
4587 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4588 symbols for lookup_symbol.
4589
4590 2012-05-24 John Steele Scott <toojays@toojays.net>
4591
4592 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4593 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4594 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4595 (check_producer): ... this new function, which also checks for ICC
4596 and caches the result.
4597 (producer_is_icc): New function.
4598 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4599 producer was ICC.
4600
4601 2012-05-24 Pedro Alves <palves@redhat.com>
4602
4603 PR gdb/7205
4604
4605 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4606 (default_gdb_signal_to_target): ... this. Add comment.
4607 (default_gdb_signal_from_host): Rename to ...
4608 (default_gdb_signal_from_target): ... this. Add comment.
4609 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4610 (default_gdb_signal_to_target): ... this.
4611 (default_gdb_signal_from_host): Rename to ...
4612 (default_gdb_signal_from_target): ... this.
4613 * corelow.c (core_open): Adjust to naming change. Replace comment.
4614 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4615 (gdb_signal_from_target): ... this. Adjust to
4616 default_gdb_signal_from_host naming change. Extend comment.
4617 (gdb_signal_to_host): Rename to ...
4618 (gdb_signal_to_target): ... this. Adjust to
4619 default_gdb_signal_to_host naming change.
4620 * gdbarch.h, gdbarch.c: Renegerate.
4621
4622 2012-05-24 Pedro Alves <palves@redhat.com>
4623
4624 PR gdb/7205
4625
4626 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4627
4628 2012-05-24 Pedro Alves <palves@redhat.com>
4629
4630 PR gdb/7205
4631
4632 Replace target_signal with gdb_signal throughout.
4633
4634 2012-05-24 Pedro Alves <palves@redhat.com>
4635
4636 PR tui/14159
4637
4638 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4639 string, instead of reusing the va_list argument.
4640
4641 2012-05-24 Tom Tromey <tromey@redhat.com>
4642
4643 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4644 Remove.
4645
4646 2012-05-23 Doug Evans <dje@google.com>
4647
4648 * symtab.c (search_symbols): Formatting fixes.
4649 (print_symbol_info): Formatting fixes.
4650
4651 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4652 int64_t change to leb128 API.
4653 (read_encoded_value, decode_frame_entry_1): Ditto.
4654 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4655 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4656 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4657 (execute_stack_op): Ditto.
4658 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4659 (safe_read_uleb128, safe_read_sleb128): Ditto.
4660 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4661 (dwarf2_compile_expr_to_ax): Ditto.
4662 (locexpr_describe_location_piece): Ditto.
4663 (disassemble_dwarf_expression): Ditto.
4664 (locexpr_describe_location_1): Ditto.
4665
4666 2012-05-23 Stan Shebs <stan@codesourcery.com>
4667 Kwok Cheung Yeung <kcy@codesourcery.com>
4668
4669 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4670 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4671 (mi-cmd-info.o): New rule.
4672 * osdata.h (info_osdata_command): New declaration.
4673 * osdata.c (info_osdata_command): Change to non-static.
4674 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4675 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4676 * mi/mi-cmd-info.c: New file.
4677
4678 2012-05-23 Doug Evans <dje@google.com>
4679
4680 * symtab.c (search_symbols): Pass NULL for file_matcher to
4681 expand_symtabs_matching if there are no files to match.
4682
4683 * gdbtypes.c (lookup_typename): Simplify.
4684
4685 2012-05-23 Pedro Alves <palves@redhat.com>
4686
4687 * arch-utils.h (default_target_signal_to_host): Delete.
4688 * arch-utils.c (default_target_signal_to_host): Delete.
4689 * gdbarch.sh (target_signal_to_host): Remove.
4690 * gdbarch.h, gdbarch.c: Regenerate.
4691
4692 2012-05-22 Doug Evans <dje@google.com>
4693
4694 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4695 "const gdb_byte *".
4696 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4697 (execute_cfa_program): Update to match API of leb128 functions.
4698 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4699 "const gdb_byte *".
4700 (read_unsigned_leb128, read_signed_leb128): Delete.
4701 (read_initial_length): Change type of buf argument to
4702 "const gdb_byte *".
4703 (read_encoded_value): Update to match API of leb128 functions.
4704 (decode_frame_entry): Change result to "const gdb_byte *", and
4705 similarly for "start" parameter.
4706 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4707 (dwarf2_build_frame_info): Change local frame_ptr to
4708 "const gdb_byte *".
4709 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4710 read_uleb128, read_sleb128. All callers updated.
4711 (safe_skip_leb128): New function.
4712 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4713 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4714 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4715 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4716 read_uleb128, read_sleb128.
4717 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4718 (execute_stack_op): Update to match API of leb128 functions.
4719 * dwarf2expr.h: #include "leb128.h".
4720 (read_uleb128, read_sleb128): Delete.
4721 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4722 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4723 * dwarf2loc.c (debug_loc_kind): New enum.
4724 (decode_debug_loc_addresses): New function.
4725 (decode_debug_loc_dwo_addresses): New function.
4726 (dwarf2_find_location_expression): Rewrite.
4727 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4728 (locexpr_describe_location_piece): Ditto.
4729 (disassemble_dwarf_expression): Ditto.
4730 (locexpr_describe_location_1): Ditto.
4731 (loclist_describe_location): Rewrite.
4732 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4733 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4734 (dwarf2_section_buffer_overflow_complaint): Renamed from
4735 dwarf2_macros_too_long_complaint. All callers updated.
4736 (skip_leb128): Delete.
4737 (init_cu_die_reader): Initialize reader->buffer_end.
4738 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4739 (skip_form_bytes): New arg buffer_end. All callers updated.
4740 Replace call to skip_leb128 with gdb_skip_leb128.
4741 (skip_unknown_opcode): New arg mac_end. All callers updated.
4742 (fill_in_loclist_baton): Initialize baton->from_dwo.
4743
4744 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4745
4746 * mips-linux-nat.c (mips_linux_read_description): Use a more
4747 verbose error message.
4748
4749 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4750
4751 * NEWS: Add MIPS/Linux DSP support.
4752 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4753 (SIGCONTEXT_DSPCTL): New macro.
4754 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4755 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4756 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4757 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4758 (N64_SIGCONTEXT_HI3): Likewise.
4759 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4760 (N64_SIGCONTEXT_LO3): Likewise.
4761 (N64_SIGCONTEXT_DSPCTL): Likewise.
4762 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4763 (mips_linux_o32_sigframe_init): Handle DSP registers.
4764 (mips_linux_n32n64_sigframe_init): Likewise.
4765
4766 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4767
4768 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4769 call to abort.
4770
4771 2012-05-22 Pedro Alves <palves@redhat.com>
4772
4773 * target.h (store_waitstatus): Move declaration ...
4774 * inf-child.h (store_waitstatus): ... here.
4775 * target.c: Move inclusion of gdb_wait.h, and ...
4776 (store_waitstatus): ... this ...
4777 * inf-child.c: ... here.
4778 * linux-nat.c: Include inf-child.h.
4779 * rs6000-nat.c: Include inf-child.h.
4780 * spu-linux-nat.c: Include inf-child.h.
4781
4782 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4783
4784 * tracepoint.c (start_tracing): Add missing i18n markup.
4785 (stop_tracing, set_trace_user): Ditto.
4786 (set_trace_notes, set_trace_stop_notes): Ditto.
4787
4788 2012-05-21 Tom Tromey <tromey@redhat.com>
4789
4790 PR c++/7173:
4791 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4792 types.
4793 * value.h (value_cast_pointers): Update.
4794 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4795 (value_cast): Update.
4796 (update_search_result): New function.
4797 (do_search_struct_field): New, from search_struct_field. Check
4798 for ambiguous results.
4799 (search_struct_field): Rewrite.
4800 * infcall.c (value_arg_coerce): Update.
4801 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4802 value_cast_pointers.
4803 * ada-lang.c (ada_convert_actual): Update.
4804
4805 2012-05-21 Tom Tromey <tromey@redhat.com>
4806
4807 * macroexp.c (macro_stringify): Terminate the string.
4808
4809 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4812 Describe it.
4813 * auto-load.c (auto_load_expand_dir_vars): New function.
4814 (auto_load_safe_path_vec_update): Use it, remove the
4815 substitute_path_component call thanks to it.
4816 (auto_load_objfile_script): Remove the debug_file_directory processing.
4817 Use auto_load_expand_dir_vars, remove the substitute_path_component
4818 call thanks to it.
4819 * configure: Regenerate.
4820 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4821 path. Escape $ also for $debugdir.
4822 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4823 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4824
4825 2012-05-20 Doug Evans <dje@google.com>
4826
4827 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4828 before use. Check for symtab->includes == NULL before scanning it.
4829
4830 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4831
4832 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4833
4834 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4835
4836 * NEWS: Add microMIPS support and "set mips compression",
4837 "show mips compression" commands.
4838 * mips-tdep.h (mips_isa): New enum.
4839 (gdbarch_tdep): Add mips_isa.
4840 (mips_pc_is_mips16): Update prototype.
4841 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4842 * mips-tdep.c (mips_compression_mips16): New variable.
4843 (mips_compression_micromips): Likewise.
4844 (mips_compression_strings): Likewise.
4845 (mips_compression_string): Likewise.
4846 (is_mips16_isa, is_micromips_isa): New functions.
4847 (is_mips16_addr): Rename to...
4848 (is_compact_addr): ... this.
4849 (unmake_mips16_addr): Likewise to...
4850 (unmake_compact_addr): ... this.
4851 (make_mips16_addr): Likewise to...
4852 (make_compact_addr): ... this.
4853 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4854 functions.
4855 (mips_elf_make_msymbol_special): Handle microMIPS code.
4856 (msymbol_is_special): Rename to...
4857 (msymbol_is_mips16): ... this.
4858 (mips_make_symbol_special, mips_pc_is_mips16): Update
4859 accordingly.
4860 (msymbol_is_mips, msymbol_is_micromips): New functions.
4861 (mips16_to_32_reg): Rename to...
4862 (mips_reg3_to_reg): ... this.
4863 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4864 (mips_pc_isa): Likewise.
4865 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4866 code.
4867 (mips_fetch_instruction): Pass return status instead of printing
4868 an error message if requested. Handle microMIPS code. Bail out
4869 on an invalid ISA.
4870 (micromips_op): New macro.
4871 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4872 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4873 (b6s4_op, b7s3_reg): Likewise.
4874 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4875 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4876 (mips_insn_size): New function.
4877 (mips32_next_pc): Update mips_fetch_instruction call.
4878 (micromips_relative_offset7): New function.
4879 (micromips_relative_offset10): Likewise.
4880 (micromips_relative_offset16): Likewise.
4881 (micromips_pc_insn_size): Likewise.
4882 (micromips_bc1_pc): Likewise.
4883 (micromips_next_pc): Likewise.
4884 (unpack_mips16): Update mips_fetch_instruction call.
4885 (extended_mips16_next_pc): Update according to change to
4886 mips16_to_32_reg.
4887 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4888 code.
4889 (mips16_scan_prologue): Update mips_fetch_instruction call.
4890 Update according to change to mips16_to_32_reg.
4891 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4892 (mips_insn16_frame_base_sniffer): Likewise.
4893 (micromips_decode_imm9): New function.
4894 (micromips_scan_prologue): Likewise.
4895 (mips_micro_frame_cache): Likewise.
4896 (mips_micro_frame_this_id): Likewise.
4897 (mips_micro_frame_prev_register): Likewise.
4898 (mips_micro_frame_sniffer): Likewise.
4899 (mips_micro_frame_unwind): New variable.
4900 (mips_micro_frame_base_address): New function.
4901 (mips_micro_frame_base): New variable.
4902 (mips_micro_frame_base_sniffer): New function.
4903 (mips32_scan_prologue): Update mips_fetch_instruction call.
4904 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4905 rather than for MIPS16.
4906 (mips_insn32_frame_base_sniffer): Likewise.
4907 (mips_addr_bits_remove): Handle microMIPS code.
4908 (deal_with_atomic_sequence): Rename to...
4909 (mips_deal_with_atomic_sequence): ... this. Update the type
4910 of the variable used to hold an instruction. Remove the ISA bit
4911 check. Update mips_fetch_instruction call.
4912 (micromips_deal_with_atomic_sequence): New function.
4913 (deal_with_atomic_sequence): Likewise.
4914 (mips_about_to_return): Handle microMIPS code. Update
4915 mips_fetch_instruction call.
4916 (heuristic_proc_start): Check for the standard MIPS ISA rather
4917 than for MIPS16. Update mips_pc_is_mips16 and
4918 mips_fetch_instruction calls. Handle microMIPS code.
4919 (mips_push_dummy_code): Handle microMIPS code.
4920 (mips_eabi_push_dummy_call): Likewise.
4921 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4922 (mips_o64_push_dummy_call): Handle microMIPS code.
4923 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4924 (is_delayed): Remove function.
4925 (mips_single_step_through_delay): Replace the call to is_delayed
4926 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4927 Handle microMIPS code.
4928 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4929 microMIPS code.
4930 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4931 call.
4932 (micromips_in_function_epilogue_p): New function.
4933 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4934 call.
4935 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4936 Handle microMIPS.
4937 (gdb_print_insn_mips): Likewise.
4938 (mips_breakpoint_from_pc): Likewise.
4939 (mips_remote_breakpoint_from_pc): New function.
4940 (mips32_instruction_has_delay_slot): Simplify making use of the
4941 updated mips_fetch_instruction interface.
4942 (micromips_instruction_has_delay_slot): New function.
4943 (mips16_instruction_has_delay_slot): Simplify making use of the
4944 updated mips_fetch_instruction interface.
4945 (mips_adjust_breakpoint_address): Check for the standard MIPS
4946 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4947 calls. Handle microMIPS code.
4948 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4949 (mips_skip_trampoline_code): Handle microMIPS code.
4950 (global_mips_compression): New function.
4951 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4952 file flags. Register the microMIPS remote breakpoint handler
4953 and heuristic frame unwinder.
4954 (show_mips_compression): New function.
4955 (_initialize_mips_tdep): Add the "set mips compression" and
4956 "show mips compression" commands.
4957
4958 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4959
4960 * ada-lang.c:
4961 * ada-tasks.c:
4962 * ada-varobj.c:
4963 * amd64-darwin-tdep.c:
4964 * arm-symbian-tdep.c:
4965 * arm-tdep.c:
4966 * avr-tdep.c:
4967 * ax-gdb.c:
4968 * bfin-linux-tdep.c:
4969 * breakpoint.c:
4970 * c-valprint.c:
4971 * cli/cli-cmds.c:
4972 * coffread.c:
4973 * cp-support.c:
4974 * cris-tdep.c:
4975 * dwarf2-frame-tailcall.c:
4976 * dwarf2-frame.c:
4977 * dwarf2expr.c:
4978 * dwarf2loc.c:
4979 * dwarf2read.c:
4980 * elfread.c:
4981 * eval.c:
4982 * expprint.c:
4983 * f-valprint.c:
4984 * frv-tdep.c:
4985 * h8300-tdep.c:
4986 * hppa-hpux-tdep.c:
4987 * hppa-tdep.c:
4988 * hppanbsd-tdep.c:
4989 * i386-nto-tdep.c:
4990 * i386-tdep.c:
4991 * i387-tdep.c:
4992 * ia64-tdep.c:
4993 * jit.c:
4994 * linespec.c:
4995 * linux-tdep.c:
4996 * lm32-tdep.c:
4997 * m2-valprint.c:
4998 * m32c-tdep.c:
4999 * m32r-rom.c:
5000 * m32r-tdep.c:
5001 * m68k-tdep.c:
5002 * m68klinux-tdep.c:
5003 * mi/mi-main.c:
5004 * microblaze-tdep.c:
5005 * mips-linux-tdep.c:
5006 * mips-tdep.c:
5007 * mn10300-tdep.c:
5008 * p-valprint.c:
5009 * parse.c:
5010 * ppc-linux-tdep.c:
5011 * ppc-sysv-tdep.c:
5012 * printcmd.c:
5013 * python/py-finishbreakpoint.c:
5014 * python/py-inferior.c:
5015 * python/py-infthread.c:
5016 * python/py-type.c:
5017 * python/python.c:
5018 * remote-fileio.c:
5019 * remote-m32r-sdi.c:
5020 * remote-mips.c:
5021 * reverse.c:
5022 * rl78-tdep.c:
5023 * rs6000-aix-tdep.c:
5024 * rs6000-tdep.c:
5025 * s390-tdep.c:
5026 * score-tdep.c:
5027 * sh64-tdep.c:
5028 * skip.c:
5029 * solib-darwin.c:
5030 * solib-dsbt.c:
5031 * solib-frv.c:
5032 * sparc-tdep.c:
5033 * spu-multiarch.c:
5034 * spu-tdep.c:
5035 * stack.c:
5036 * symfile.c:
5037 * symtab.c:
5038 * tic6x-tdep.c:
5039 * tracepoint.c:
5040 * v850-tdep.c:
5041 * valarith.c:
5042 * valprint.c:
5043 * value.c:
5044 * xcoffread.c:
5045 * xtensa-tdep.c:
5046 * ada-lang.c:
5047 * ada-tasks.c:
5048 * ada-varobj.c:
5049 * amd64-darwin-tdep.c:
5050 * arm-symbian-tdep.c:
5051 * arm-tdep.c: Delete unused variables.
5052
5053 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5054
5055 Rename $ddir to $datadir.
5056 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5057 * auto-load.c (auto_load_safe_path_vec_update)
5058 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5059 * configure: Regenerate.
5060 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5061 Likewise. Remove the 'use $ddir' help string.
5062
5063 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5064
5065 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5066 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5067
5068 2012-05-18 Tom Tromey <tromey@redhat.com>
5069
5070 PR exp/13907:
5071 * valprint.h (struct value_print_options) <symbol_print>: New
5072 field.
5073 * valprint.c (user_print_options): Add default for symbol_print.
5074 (show_symbol_print): New function.
5075 (generic_val_print): Respect symbol_print.
5076 (_initialize_valprint): Add "print symbol" setting.
5077 * f-valprint.c (f_val_print): Respect symbol_print.
5078 * c-valprint.c (c_val_print): Respect symbol_print.
5079 * NEWS: Update.
5080 * printcmd.c (print_address_symbolic): Return int. Ignore some
5081 zero-size symbols.
5082 (print_address_demangle): Return int.
5083 * defs.h: (print_address_symbolic): Return int.
5084 * value.h (print_address_demangle): Return int.
5085
5086 2012-05-18 Tom Tromey <tromey@redhat.com>
5087
5088 * valprint.c (val_print_string): Don't print leading space.
5089 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5090 print space before string or vtbl.
5091 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5092 before string.
5093 * jv-valprint.c (java_value_print): Print space before string.
5094 * go-valprint.c (print_go_string): Print space before string.
5095 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5096 space before string.
5097 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5098 space before string or vtbl.
5099 * auxv.c (fprint_target_auxv): Print space after address.
5100
5101 2012-05-18 Tom Tromey <tromey@redhat.com>
5102
5103 * printcmd.c (print_address_demangle): Remove special case for 0.
5104
5105 2012-05-18 Tom Tromey <tromey@redhat.com>
5106
5107 * printcmd.c (print_address_demangle): Add 'opts' argument.
5108 * p-valprint.c (pascal_val_print): Update.
5109 * jv-valprint.c (java_val_print): Update.
5110 * value.h: Update.
5111 * valprint.c (generic_val_print): Update.
5112 (print_function_pointer_address): Add 'options' argument. Remove
5113 'addressprint' argument. Update.
5114 * m2-valprint.c (print_unpacked_pointer): Update.
5115 * gnu-v3-abi.c (print_one_vtable): Update.
5116 (gnuv3_print_method_ptr): Update.
5117 * f-valprint.c (f_val_print): Update.
5118 * cp-valprint.c (cp_print_value_fields): Update.
5119 * valprint.h (print_function_pointer_address): Update.
5120 * c-valprint.c (c_val_print): Update.
5121
5122 2012-05-18 Tom Tromey <tromey@redhat.com>
5123
5124 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5125 directly corresponding to the found psymtab.
5126 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5127 (dw2_find_pc_sect_symtab): Use it.
5128 * block.h (blockvector_contains_pc): Declare.
5129 * block.c (find_block_in_blockvector): New function.
5130 (blockvector_for_pc_sect): Use it.
5131 (blockvector_contains_pc): New function.
5132
5133 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5134
5135 * mips-tdep.h (mips_write_pc): New prototype.
5136 * mips-tdep.c (mips_write_pc): Make external, add description.
5137 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5138 add description.
5139
5140 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5141
5142 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5143 mips_regnum->pc.
5144 (mips_unwind_pc, mips_write_pc): Likewise.
5145 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5146 gdbarch_read_pc.
5147
5148 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5149
5150 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5151 proc_warn, proc_error, proc_get_status, proc_flags,
5152 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5153 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5154 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5155 proc_stop_process, proc_wait_for_stop, proc_run_process,
5156 proc_set_traced_signals, proc_set_traced_faults,
5157 proc_set_traced_sysentry, proc_set_traced_sysexit,
5158 proc_set_held_signals, proc_get_held_signals,
5159 proc_get_traced_signals, proc_get_traced_faults,
5160 proc_get_traced_sysentry, proc_get_traced_sysexit,
5161 proc_clear_current_fault, proc_set_current_signal,
5162 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5163 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5164 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5165 proc_get_current_thread, proc_get_current_thread,
5166 proc_get_current_thread, proc_update_threads,
5167 proc_update_threads, proc_update_threads, proc_update_threads,
5168 proc_iterate_over_threads, procfs_find_new_threads,
5169 procfs_pid_to_str): Make static. Remove advance declaration.
5170 (proc_cursig): Make static. Conditionalized defintion on
5171 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5172 (proc_syscall, proc_set_kill_on_last_close,
5173 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5174 proc_get_pending_signals, proc_get_signal_actions,
5175 proc_trace_signal, proc_ignore_signal): Delete.
5176
5177 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5178
5179 * coffread.c (cs_section_address): Passing proper argument for
5180 `bfd_get_section_vma'.
5181 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5182 `bfd_get_section_flags'.
5183 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5184 `bfd_get_section_vma'.
5185
5186 2012-05-16 Tom Tromey <tromey@redhat.com>
5187
5188 PR macros/13205:
5189 * macrotab.h: (macro_define_special): Declare.
5190 (enum macro_special_kind): New.
5191 (struct macro_definition) <argc, replacement>: Update comments.
5192 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5193 (macro_define_object_internal): New function.
5194 (macro_define_object): Use it.
5195 (macro_define_special): New function.
5196 (fixup_definition): New function.
5197 (macro_lookup_definition, foreach_macro_in_scope)
5198 (foreach_macro): Use fixup_definition.
5199 * macroexp.h (macro_stringify): Declare.
5200 * macroexp.c (free_buffer_return_text): New function.
5201 (stringify): Constify "arg".
5202 (macro_stringify): New function.
5203 * dwarf2read.c (macro_start_file): Call macro_define_special.
5204
5205 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5206 Maciej W. Rozycki <macro@mips.com>
5207
5208 * breakpoint.h (bp_location): Add related_address member.
5209 * inferior.h (get_return_value): Take a pointer to struct value
5210 instead of struct type for the function requested.
5211 * value.h (using_struct_return): Likewise.
5212 * gdbarch.sh (return_value): Take a pointer to struct value
5213 instead of struct type for the function requested.
5214 * breakpoint.c (set_breakpoint_location_function): Initialize
5215 related_address for bp_gnu_ifunc_resolver breakpoints.
5216 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5217 requested function's address to gdbarch_return_value.
5218 * eval.c (evaluate_subexp_standard): Pass the requested
5219 function's address to using_struct_return.
5220 * infcall.c (call_function_by_hand): Pass the requested
5221 function's address to using_struct_return and
5222 gdbarch_return_value.
5223 * infcmd.c (get_return_value): Take a pointer to struct value
5224 instead of struct type for the function requested.
5225 (print_return_value): Update accordingly.
5226 (finish_command_continuation): Likewise.
5227 * stack.c (return_command): Pass the requested function's
5228 address to using_struct_return and gdbarch_return_value.
5229 * value.c (using_struct_return): Take a pointer to struct value
5230 instead of struct type for the function requested. Pass the
5231 requested function's address to gdbarch_return_value.
5232 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5233 New function_value member, replacing function_type.
5234 (bpfinishpy_dealloc): Update accordingly.
5235 (bpfinishpy_pre_stop_hook): Likewise.
5236 (bpfinishpy_init): Likewise. Record the requested function's
5237 address.
5238 * mips-tdep.c (mips_fval_reg): New enum.
5239 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5240 words put in GP registers.
5241 (mips_o64_push_dummy_call): Update a comment.
5242 (mips_o32_return_value): Take a pointer to struct value instead
5243 of struct type for the function requested and use it to check if
5244 using the MIPS16 calling convention. Return the designated
5245 general purpose registers for floating-point values returned in
5246 MIPS16 mode.
5247 (mips_o64_return_value): Likewise.
5248 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5249 (ppc_sysv_abi_broken_return_value): Likewise.
5250 (ppc64_sysv_abi_return_value): Likewise.
5251 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5252 value instead of struct type for the function requested.
5253 * amd64-tdep.c (amd64_return_value): Likewise.
5254 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5255 * arm-tdep.c (arm_return_value): Likewise.
5256 * avr-tdep.c (avr_return_value): Likewise.
5257 * bfin-tdep.c (bfin_return_value): Likewise.
5258 * cris-tdep.c (cris_return_value): Likewise.
5259 * frv-tdep.c (frv_return_value): Likewise.
5260 * h8300-tdep.c (h8300_return_value): Likewise.
5261 (h8300h_return_value): Likewise.
5262 * hppa-tdep.c (hppa32_return_value): Likewise.
5263 (hppa64_return_value): Likewise.
5264 * i386-tdep.c (i386_return_value): Likewise.
5265 * ia64-tdep.c (ia64_return_value): Likewise.
5266 * iq2000-tdep.c (iq2000_return_value): Likewise.
5267 * lm32-tdep.c (lm32_return_value): Likewise.
5268 * m32c-tdep.c (m32c_return_value): Likewise.
5269 * m32r-tdep.c (m32r_return_value): Likewise.
5270 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5271 * m68k-tdep.c (m68k_return_value): Likewise.
5272 (m68k_svr4_return_value): Likewise.
5273 * m88k-tdep.c (m88k_return_value): Likewise.
5274 * mep-tdep.c (mep_return_value): Likewise.
5275 * microblaze-tdep.c (microblaze_return_value): Likewise.
5276 * mn10300-tdep.c (mn10300_return_value): Likewise.
5277 * moxie-tdep.c (moxie_return_value): Likewise.
5278 * mt-tdep.c (mt_return_value): Likewise.
5279 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5280 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5281 (ppc_sysv_abi_broken_return_value): Likewise.
5282 (ppc64_sysv_abi_return_value): Likewise.
5283 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5284 * rl78-tdep.c (rl78_return_value): Likewise.
5285 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5286 * rx-tdep.c (rx_return_value): Likewise.
5287 * s390-tdep.c (s390_return_value): Likewise.
5288 * score-tdep.c (score_return_value): Likewise.
5289 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5290 (sh_return_value_fpu): Likewise.
5291 * sh64-tdep.c (sh64_return_value): Likewise.
5292 * sparc-tdep.c (sparc32_return_value): Likewise.
5293 * sparc64-tdep.c (sparc64_return_value): Likewise.
5294 * spu-tdep.c (spu_return_value): Likewise.
5295 * tic6x-tdep.c (tic6x_return_value): Likewise.
5296 * v850-tdep.c (v850_return_value): Likewise.
5297 * vax-tdep.c (vax_return_value): Likewise.
5298 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5299 * xtensa-tdep.c (xtensa_return_value): Likewise.
5300 * gdbarch.c: Regenerate.
5301 * gdbarch.h: Regenerate.
5302
5303 2012-05-15 Tom Tromey <tromey@redhat.com>
5304
5305 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5306
5307 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5308
5309 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5310 of command in two error message.
5311
5312 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5313
5314 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5315
5316 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5317
5318 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5319
5320 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 * NEWS (show auto-load scripts-directory): Add forgotten command.
5323
5324 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5327 parameters.
5328
5329 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5330
5331 * amd64-tdep.c: Include features/i386/x32.c and
5332 features/i386/x32-avx.c.
5333 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5334 initialize_tdesc_x32_avx.
5335
5336 2012-05-14 Stan Shebs <stan@codesourcery.com>
5337
5338 Add dynamic printf.
5339 * breakpoint.h (enum bptype): New type bp_dprintf.
5340 (struct breakpoint): New field extra_string.
5341 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5342 (create_breakpoint): Add extra_string arg.
5343 * breakpoint.c (dprintf_breakpoint_ops): New.
5344 (is_breakpoint): Add bp_dprintf.
5345 (bpstat_what): Add dprintf case.
5346 (bptype_string): Ditto.
5347 (print_one_breakpoint_location): Ditto.
5348 (init_bp_location): Ditto.
5349 (bkpt_print_mention): Ditto.
5350 (dprintf_style_enums): New array.
5351 (dprintf_style): New global.
5352 (dprintf_function): New global.
5353 (dprintf_channel): New global.
5354 (update_dprintf_command_list): New function.
5355 (update_dprintf_commands): New function.
5356 (init_breakpoint_sal): Add extra_string argument, handle it.
5357 (create_breakpoint_sal): Add extra_string argument.
5358 (create_breakpoints_sal): Add extra_string argument, update callers.
5359 (find_condition_and_thread): Add extra argument.
5360 (create_breakpoint): Add extra_string argument, record it.
5361 (dprintf_command): New function.
5362 (break_command_1): Add arg to create_breakpoint call.
5363 (handle_gnu_v3_exceptions): Ditto.
5364 (trace_command): Ditto.
5365 (ftrace_command): Ditto.
5366 (strace_command): Ditto.
5367 (bkpt_print_mention): Add dprintf case.
5368 (create_breakpoint_sal_default): Add extra_string argument.
5369 (_initialize_breakpoint): Add new commands.
5370 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5371 * python/py-breakpoint.c (bppy_init): Ditto.
5372 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5373
5374 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5375
5376 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5377
5378 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5379
5380 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5381 unsigned long long.
5382
5383 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5384
5385 Add a new function gdb.find_pc_line to the Python API.
5386 * NEWS (Python Scripting): Add entry about the new function.
5387 * python/python.c (gdbpy_find_pc_line): New function which
5388 implements gdb.find_pc_line.
5389 (GdbMethods): Add entry for the new function.
5390
5391 2012-05-12 Pedro Alves <palves@redhat.com>
5392
5393 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5394 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5395
5396 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5397
5398 * inferior.c: Include completer.h
5399 (initialize_inferiors): Set completer of add-inferior to
5400 filename_completer.
5401
5402 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5403
5404 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5405 gdbarch_ptr_bit for x32 core dump.
5406
5407 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5408
5409 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5410 and features/i386/x32-avx-linux.c.
5411
5412 2012-05-11 Stan Shebs <stan@codesourcery.com>
5413 Kwok Cheung Yeung <kcy@codesourcery.com>
5414
5415 * NEWS: Describe new info os commands.
5416 * common/linux-osdata.c (PID_T, TIME_T): Define.
5417 (MAX_PID_T_STRLEN): New.
5418 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5419 MAX_PID_T_STRLEN.
5420 (command_from_pid): Add comment. Change to use PID_T.
5421 (commandline_from_pid): Change to use PID_T.
5422 (user_from_pid): Add comment.
5423 (get_process_owner): Add comment. Change to use PID_T and
5424 MAX_PID_T_STRLEN.
5425 (get_number_of_cpu_cores): Add comment.
5426 (get_cores_used_by_process): Add comment. Change to use PID_T and
5427 MAX_PID_T_STRLEN.
5428 (linux_xfer_osdata_processes): Change to use PID_T and
5429 MAX_PID_T_STRLEN.
5430 (compare_processes): New function.
5431 (linux_xfer_osdata_processgroups): New function.
5432 (linux_xfer_osdata_threads): Change to use PID_T.
5433 (linux_xfer_osdata_fds): New function.
5434 (format_socket_state, print_sockets): New functions.
5435 (union socket_addr): New union.
5436 (linux_xfer_osdata_isockets): New function.
5437 (time_from_time_t, group_from_gid): New functions.
5438 (linux_xfer_osdata_shm): New function.
5439 (linux_xfer_osdata_sem): New function.
5440 (linux_xfer_osdata_msg): New function.
5441 (linux_xfer_osdata_modules): New function.
5442 (osdata_table): Add new entries.
5443 * common/buffer.c (buffer_xml_printf): Add support for long and
5444 long long format specifiers.
5445
5446 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5447
5448 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5449 (tdesc_x32_avx_linux): Likewise.
5450
5451 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 Implement multi-component --with-auto-load-dir.
5454 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5455 entries.
5456 (--with-auto-load-safe-path): Update the default value description.
5457 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5458 New.
5459 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5460 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5461 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5462 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5463 "set auto-load scripts-directory".
5464 * config.in: Regenerate.
5465 * configure: Regenerate.
5466 * configure.ac (--with-auto-load-dir): New configure option.
5467 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5468
5469 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 Provide $ddir substitution for --with-auto-load-safe-path.
5472 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5473 entries.
5474 * auto-load.c: Include observer.h.
5475 (auto_load_safe_path_vec_update): Call substitute_path_component for
5476 each component. New variable ddir_subst.
5477 (auto_load_gdb_datadir_changed): New function.
5478 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5479 AUTO_LOAD_SAFE_PATH. New comment.
5480 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5481 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5482 * config.in: Regenerate.
5483 * configure: Regenerate.
5484 * configure.ac (--auto-load-safe-path): Rename
5485 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5486 GDB_DATADIR/auto-load.
5487 * defs.h (substitute_path_component): New declaration.
5488 * top.c: Include observer.h.
5489 (set_gdb_datadir): New function.
5490 (init_main): Install it for "set data-directory".
5491 * utils.c (substitute_path_component): New function.
5492
5493 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5494
5495 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5496 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5497 DEBUG_FILE_DIRECTORY. Handle multiple components of
5498 DEBUG_FILE_DIRECTORY.
5499
5500 2012-05-10 Tom Tromey <tromey@redhat.com>
5501
5502 * dwarf2read.c (recursively_write_psymbols): New function.
5503 (write_psymtabs_to_index): Use it.
5504
5505 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5506 field.
5507 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5508 (load_partial_comp_unit): Update.
5509 (queue_comp_unit): Add argument 'pretend_language'.
5510 (process_queue): Update.
5511 (psymtab_to_symtab_1): Skip dependencies that have a user.
5512 (load_partial_comp_unit_reader): Give meaning to the 'data'
5513 argument.
5514 (load_full_comp_unit): Add 'pretend_language' argument.
5515 (process_full_comp_unit): Add 'pretend_language' argument. Set
5516 language on CU.
5517 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5518 Update.
5519 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5520 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5521 Update.
5522 (prepare_one_comp_unit): Add 'pretend_language' argument.
5523
5524 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5525 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5526 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5527 (dw2_do_instantiate_symtab): Check whether symtab was read in
5528 before queueing.
5529 (dw2_instantiate_symtab): Add assertion. Call
5530 process_cu_includes.
5531 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5532 (partial_symtab_p): New typedef.
5533 (set_partial_user): New function.
5534 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5535 (scan_partial_symbols): Add imported CU to imported_symtabs.
5536 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5537 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5538 (get_symtab, recursively_compute_inclusions)
5539 (compute_symtab_includes, process_cu_includes)
5540 (process_imported_unit_die): New functions.
5541 (process_die) <DW_TAG_imported_unit>: New case.
5542 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5543
5544 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5545 comment.
5546 (struct partial_die_info) <locdesc>: Remove.
5547 <d>: New field.
5548 (process_psymtab_comp_unit): Add 'read_partial' argument.
5549 Update.
5550 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5551 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5552 (add_partial_symbol): Update.
5553 (process_die): Handle DW_TAG_partial_unit.
5554 (read_file_scope): Update comment.
5555 (load_partial_dies): Handle DW_TAG_imported_unit.
5556 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5557 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5558
5559 2012-05-10 Tom Tromey <tromey@redhat.com>
5560
5561 * cc-with-dwz.sh: New file.
5562
5563 2012-05-10 Tom Tromey <tromey@redhat.com>
5564
5565 * symtab.h (struct symtab) <includes, user>: New fields.
5566 * block.h (struct block_iterator) <d, idx, which>: New fields.
5567 * block.c (initialize_block_iterator, find_iterator_symtab)
5568 (block_iterator_step, block_iter_name_step)
5569 (block_iter_match_step): New functions.
5570 (block_iterator_first, block_iterator_next)
5571 (block_iter_name_first, block_iter_name_next)
5572 (block_iter_match_first, block_iter_match_next): Rewrite.
5573 (get_block_symtab): New function.
5574
5575 2012-05-10 Tom Tromey <tromey@redhat.com>
5576
5577 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5578 set_block_symtab.
5579 * jit.c (finalize_symtab): Use allocate_global_block,
5580 set_block_symtab.
5581 * buildsym.c (finish_block_internal): New function, from old
5582 finish_block.
5583 (finish_block): Rewrite.
5584 (end_symtab): Use finish_block_internal, set_block_symtab.
5585 * block.h (struct global_block): New.
5586 (allocate_global_block, set_block_symtab): Declare.
5587 * block.c (allocate_global_block, set_block_symtab): New
5588 functions.
5589
5590 2012-05-10 Tom Tromey <tromey@redhat.com>
5591
5592 * psymtab.c (partial_map_expand_apply): Add assertion.
5593 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5594 (psymtab_to_symtab): Find unshared psymtab.
5595 (dump_psymtab): Print including psymtabs.
5596 (recursively_search_psymtabs): New function.
5597 (expand_symtabs_matching_via_partial): Use it.
5598 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5599 fields.
5600 (enum psymtab_search_status): New.
5601
5602 2012-05-10 Tom Tromey <tromey@redhat.com>
5603
5604 * tracepoint.c (scope_info): Update.
5605 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5606 (find_pc_sect_symtab, search_symbols)
5607 (default_make_symbol_completion_list_break_on)
5608 (make_file_symbol_completion_list): Update.
5609 * symmisc.c (dump_symtab_1): Update.
5610 * stack.c (print_frame_args, iterate_over_block_locals)
5611 (print_frame_labels, iterate_over_block_arg_vars): Update.
5612 * python/py-block.c (block_object) <dict>: Remove.
5613 <block>: New field.
5614 <iter>: Change type.
5615 (blpy_iter): Update.
5616 (blpy_block_syms_iternext): Update.
5617 * psymtab.c (map_block): Use block iterators.
5618 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5619 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5620 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5621 * infrun.c (check_exception_resume): Update.
5622 * cp-support.c (make_symbol_overload_list_block): Update.
5623 * coffread.c (patch_opaque_types): Update.
5624 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5625 * block.h (struct block_iterator): New.
5626 (block_iterator_first, block_iterator_next, block_iter_name_first)
5627 (block_iter_name_next, block_iter_match_first)
5628 (block_iter_match_next): Declare.
5629 (ALL_BLOCK_SYMBOLS): Redefine.
5630 * block.c (block_iterator_first, block_iterator_next)
5631 (block_iter_name_first, block_iter_name_next)
5632 (block_iter_match_first, block_iter_match_next): New functions.
5633 * ada-lang.c (ada_add_block_symbols)
5634 (ada_make_symbol_completion_list): Use block iterator.
5635
5636 2012-05-10 Tom Tromey <tromey@redhat.com>
5637
5638 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5639 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5640 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5641 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5642 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5643 Update.
5644
5645 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5646
5647 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5648 print-file-var-lib2.c, print-file-var-main.c and
5649 print-file-var.exp (located in gdb/testsuite/gdb.base).
5650
5651 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5652
5653 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5654 try locating the symbol in the symbol's own objfile first, before
5655 extending the search to all objfiles.
5656 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5657 out of lookup_symbol_aux_symtabs.
5658 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5659 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5660 Do not search EXCLUDE_OBJFILE.
5661 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5662 (lookup_symbol_global): Search for matches in the block's objfile
5663 first, before searching all other objfiles.
5664
5665 2012-05-10 Tristan Gingold <gingold@adacore.com>
5666
5667 * printcmd.c (set_command): Add pre/post inc/dec.
5668
5669 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5670
5671 * gdb.1: Document -ex option.
5672
5673 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5674
5675 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5676 * inferior.h (AT_SYMBOL): Delete.
5677
5678 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5679
5680 * mips-tdep.c (mips_push_dummy_code): New function.
5681 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5682 ON_STACK and install mips_push_dummy_code as our gdbarch
5683 push_dummy_code routine.
5684
5685 2012-05-09 Pedro Alves <palves@redhat.com>
5686
5687 * target.c (set_maintenance_target_async_permitted): Rename to ...
5688 (set_target_async_command): ... this.
5689 (show_maintenance_target_async_permitted): Rename to ...
5690 (show_target_async_command): ... this.
5691 (initialize_targets): Adjust.
5692
5693 2012-05-08 Doug Evans <dje@google.com>
5694
5695 * go-exp.y (classify_name): Add missing assignment of fields of
5696 yylval.ssym.
5697
5698 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5699
5700 Display the ">" prompt in interactive mode while reading canned
5701 commands, even when the current interpreter is MI.
5702
5703 * interps.c (interp_set_temp): New function.
5704
5705 * interps.h (interp_set_temp): Add prototype.
5706
5707 * cli/cli-script.c (restore_interp): New cleanup function.
5708 (read_command_lines): Temporarily override the current interpreter
5709 with CLI and arrange for restoring the original one.
5710
5711 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5712
5713 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5714
5715 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5716
5717 * probe.c (parse_probes): Move conditional to check for
5718 debuginfo files from here...
5719 * stap-probe.c (stap_get_probes): ... to here.
5720
5721 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5722 H.J. Lu <hongjiu.lu@intel.com>
5723
5724 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5725 `movl %esp, %ebp' for the X32 ABI.
5726
5727 2012-05-07 Tom Tromey <tromey@redhat.com>
5728
5729 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5730 get_DW_TAG_name.
5731 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5732 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5733 (dwarf_stack_op_name): Remove.
5734 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5735 (decode_locdesc): Use get_DW_OP_name.
5736 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5737 (dwarf2_compile_expr_to_ax): Likewise.
5738 (disassemble_dwarf_expression): Likewise.
5739 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5740
5741 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5742
5743 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5744 (sh_linux_sigtramp_cache): New function.
5745 (sh_linux_sigreturn_init): New function.
5746 (sh_linux_rt_sigreturn_init): New function.
5747 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5748 patterns.
5749 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5750 syscall codes.
5751 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5752 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5753 (sh_linux_init_abi): Add init calls to register new tramp_frame
5754 definitions under 32-bit SH, update comments.
5755
5756 2012-05-07 Pedro Alves <palves@redhat.com>
5757
5758 PR gdb/10952
5759
5760 * amd64-linux-tdep.c: Include glibc-tdep.h.
5761 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5762 gdbarch_skip_solib_resolver callback.
5763
5764 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5765
5766 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5767 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5768 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5769 (add_auto_load_safe_path): Change the error message.
5770 (_initialize_auto_load): Change the "safe-path" help text.
5771 * configure: Regenerate
5772 * configure.ac (--without-auto-load-safe-path): Set
5773 WITH_AUTO_LOAD_SAFE_PATH to /.
5774
5775 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 * stap-probe.h: Do not include unecessary `probe.h'.
5778
5779 2012-05-05 Alan Modra <amodra@gmail.com>
5780
5781 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5782 bfd_und_section_ptr.
5783 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5784 and bfd_com_section_ptr.
5785
5786 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5787
5788 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5789
5790 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5791
5792 * windows-nat.h (segment_register_p_ftype): New typedef.
5793 (windows_set_segment_register_p): Add declaration.
5794 * windows-nat.c (segment_register_p): New static global.
5795 (windows_set_segment_register_p): New function.
5796 (do_windows_fetch_inferior_registers): Add special handling
5797 for segment registers.
5798 * amd64-windows-nat.c: #include "amd64-tdep.h".
5799 (amd64_windows_segment_register_p): New function.
5800 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5801 * i386-windows-nat.c: #include "i386-tdep.h".
5802 (i386_windows_segment_register_p): New function.
5803 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5804
5805 2012-05-04 Tristan Gingold <gingold@adacore.com>
5806
5807 * printcmd.c (set_command): Emit a warning if the expression is not
5808 an assignment.
5809
5810 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5811
5812 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5813 Make static.
5814
5815 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5816
5817 * stap-probe.c (stap_is_operator): Change declaration.
5818 (stap_get_opcode): Change return value.
5819 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5820 `stap_parse_argument_1'.
5821
5822 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5823
5824 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5825 debug log.
5826
5827 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5828
5829 Add two new methods global_block and static_block to gdb.Symtab
5830 objects.
5831 * NEWS (Python scripting): Add entry about the new methods.
5832 * python/py-symtab.c (stpy_global_block): New function which
5833 implements the gdb.Symtab.global_block() method.
5834 (stpy_static_block): New function which implements the
5835 gdb.Symtab.static_block() method.
5836 (symtab_object_methods): Add entries for the two new methods.
5837
5838 2012-05-03 Doug Evans <dje@google.com>
5839
5840 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5841 files.
5842
5843 2012-05-03 Yao Qi <yao@codesourcery.com>
5844
5845 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5846 space.
5847 (i386_process_record): Ditto.
5848
5849 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5850
5851 * infcall.c (unwind_on_signal_p): Make static.
5852
5853 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5854
5855 * sol-thread.c (solaris_pid_to_str): Make static.
5856 (_initialize_sol_thread): Add prototype.
5857
5858 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5859
5860 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5861
5862 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5863
5864 * MAINTAINERS: Remove myself.
5865
5866 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5867
5868 Fix --without-auto-load-safe-path for MS-Windows host platform.
5869 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5870
5871 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5872
5873 * gdb_curses.h: Undefine KEY_EVENT before including curses
5874 headers. Move "#undef MOUSE_MOVED" before any curses header
5875 inclusion.
5876
5877 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5878
5879 * features/i386/i386-mmx-linux.c: Regenerate.
5880 * features/rs6000/powerpc-32.c: Likewise.
5881 * features/rs6000/powerpc-32l.c: Likewise.
5882 * features/rs6000/powerpc-403.c: Likewise.
5883 * features/rs6000/powerpc-403gc.c: Likewise.
5884 * features/rs6000/powerpc-405.c: Likewise.
5885 * features/rs6000/powerpc-505.c: Likewise.
5886 * features/rs6000/powerpc-601.c: Likewise.
5887 * features/rs6000/powerpc-602.c: Likewise.
5888 * features/rs6000/powerpc-603.c: Likewise.
5889 * features/rs6000/powerpc-604.c: Likewise.
5890 * features/rs6000/powerpc-64.c: Likewise.
5891 * features/rs6000/powerpc-64l.c: Likewise.
5892 * features/rs6000/powerpc-750.c: Likewise.
5893 * features/rs6000/powerpc-860.c: Likewise.
5894 * features/rs6000/powerpc-e500.c: Likewise.
5895 * features/rs6000/powerpc-e500l.c: Likewise.
5896 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5897 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5898 * features/rs6000/rs6000.c: Likewise.
5899
5900 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5901
5902 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5903 variable.
5904 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5905 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5906 (stap_parse_argument) <e>: Likewise.
5907 (handle_stap_probe) <byte_order>: Likewise.
5908
5909 2012-04-30 Doug Evans <dje@google.com>
5910
5911 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5912 init_and_read_dies_worker. All callers updated.
5913 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5914 replaced with init_cutu_and_read_dies.
5915 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5916 (find_partial_die): Remove FIXME. Don't free current CU.
5917
5918 2012-04-30 Sterling Augustine <saugustine@google.com>
5919
5920 * contrib: New directory.
5921 * contrib/test_pubnames_and_indexes.py: New file.
5922
5923 2012-04-30 Doug Evans <dje@google.com>
5924
5925 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5926 All callers updated.
5927 (init_cu_die_reader): Verify the section is non-empty.
5928 (dwarf_decode_line_header): Don't dereference section->asection
5929 until we know the section is present.
5930
5931 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5932
5933 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5934 probes.
5935
5936 2012-04-29 Yao Qi <yao@codesourcery.com>
5937
5938 * gdb-code-style.el: New hook gdb-markup-hook
5939 and gdb-comment-hook.
5940
5941 2012-04-28 Doug Evans <dje@google.com>
5942
5943 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5944 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5945 objfile->obfd.
5946 * symfile.h (dwarf2_debug_sections): New member addr.
5947 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5948 (ctx_no_get_addr_index): New function.
5949 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5950 (ctx_no_get_addr_index): Declare.
5951 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5952 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5953 (dwarf_expr_ctx_funcs): Update.
5954 (needs_get_addr_index): New function.
5955 (needs_frame_ctx_funcs): Update.
5956 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5957 * dwarf2read.c: #include "gdbcore.h".
5958 (dwarf2_per_objfile): New members addr, dwo_files.
5959 (dwarf2_elf_names): Add entry for addr.
5960 (struct dwo_section_names): New type.
5961 (dwo_section_names): New static global.
5962 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5963 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5964 old debug_types_section member updated to use this.
5965 Rename member debug_types_section to info_or_types_section,
5966 all uses updated.
5967 (signatured_type): Rename member type_offset to type_offset_in_tu,
5968 all uses updated. New member type_offset_in_section.
5969 (struct dwo_sections): New type.
5970 (struct dwo_unit): New type.
5971 (struct dwo_file): New type.
5972 (die_reader_specs): New member dwo_file.
5973 (dwarf2_locate_sections): Watch for .debug_addr.
5974 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5975 (dwarf2_read_section): Get bfd of section from bfd's asection,
5976 instead of objfile.
5977 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5978 (create_signatured_type_table_from_index): Initialize
5979 sig_type->info_or_types_section.
5980 (dw2_get_file_names): Statement lists for type units with DWO files
5981 live in the DWO file.
5982 (create_debug_types_hash_table): New function.
5983 (create_all_type_units): Rewrite.
5984 (init_cu_die_reader): New arg dwo_file, all callers updated.
5985 (init_and_read_dies_worker): Get section from
5986 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5987 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5988 continue reading the CU/TU from there.
5989 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5990 updated. Get section from this_cu->info_or_types_section.
5991 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5992 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5993 DW_FORM_GNU_str_index.
5994 (hash_dwo_file, eq_dwo_file): New functions.
5995 (allocate_dwo_file_hash_table): New function.
5996 (hash_dwo_unit, eq_dwo_unit): New functions.
5997 (allocate_dwo_unit_table): New function.
5998 (dwarf2_locate_dwo_sections): New function.
5999 (struct create_dwo_info_table_data): New type.
6000 (create_debug_info_hash_table_reader): New function.
6001 (create_debug_info_hash_table): New function.
6002 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6003 (lookup_dwo_file): New function.
6004 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6005 (free_dwo_file, free_dwo_file_cleanup): New functions.
6006 (free_dwo_file_from_slot, free_dwo_files): New functions.
6007 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6008 (dwarf2_record_block_ranges): Ditto.
6009 (read_partial_die): Ditto.
6010 (process_enumeration_scope): Update to use type_offset_in_section.
6011 (read_full_die_1): New function.
6012 (read_full_die): Rewrite.
6013 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6014 DW_FORM_GNU_str_index.
6015 (read_addr_index_1, read_addr_index): New functions.
6016 (read_addr_index_from_leb128): New function.
6017 (struct dwarf2_read_addr_index_data): New type.
6018 (dwarf2_read_addr_index_reader): New function.
6019 (dwarf2_read_addr_index): New function.
6020 (read_str_index): New function.
6021 (leb128_size): New function.
6022 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6023 If processing a type unit from a DWO file, get the line section
6024 from the DWO file.
6025 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6026 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6027 DW_FORM_GNU_str_index.
6028 (lookup_die_type): Check whether section offset of type's die is
6029 known before looking it up. Remove assert. Condition can
6030 legimately happen for inter-cu type references.
6031 (dwarf_attr_name): Handle Fission attributes.
6032 (dwarf_form_name): Handle Fission forms.
6033 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6034 DW_FORM_GNU_str_index.
6035 (follow_die_sig): Update to use type_offset_in_section.
6036 (decode_locdesc): New case DW_OP_GNU_addr_index.
6037 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6038 DW_FORM_GNU_str_index.
6039 (cu_debug_loc_section): New function.
6040 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6041 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6042 Free DWO files if present.
6043 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6044
6045 Refactor DIE reading.
6046 * dwarf2read.c (dwarf2_per_objfile): Replace members
6047 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6048 (die_reader_specs): New member "die_section". Temporarily make
6049 member "buffer" non-const, pending constifying all info_ptr uses.
6050 (die_reader_func_ftype): New typedef.
6051 (dw2_get_file_names_reader): New function.
6052 (dw2_get_file_names): Rewrite.
6053 (read_and_check_type_unit_head): Rename arg type_offset to
6054 type_offset_in_tu.
6055 (create_all_type_units): Improve debugging message.
6056 Improve dummy type unit check.
6057 (init_cu_die_reader): New arg "section". All callers updated.
6058 (init_and_read_dies_worker): New function.
6059 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6060 (init_cutu_and_read_dies_no_follow): New function.
6061 (init_cutu_and_read_dies_simple): New function.
6062 (process_psymtab_comp_unit_reader): New function.
6063 (process_psymtab_comp_unit): Delete args section,
6064 is_debug_types_section. Rewrite. All callers updated.
6065 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6066 All callers updated. Rewrite.
6067 (load_partial_comp_unit_reader): New function.
6068 (load_partial_comp_unit): Rewrite.
6069 (skip_children): New arg reader. Delete args buffer, cu.
6070 All callers updated.
6071 (skip_one_die): New arg reader. Delete args buffer, cu.
6072 All callers updated.
6073 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6074 All callers updated.
6075 (load_full_comp_unit_reader): New function.
6076 (load_full_comp_unit): Rewrite.
6077 (read_comp_unit): Delete.
6078 (read_die_and_children_1): Delete, contents moved ...
6079 (read_die_and_children): ... here.
6080 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6081 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6082 All callers updated.
6083 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6084 All callers updated.
6085 (find_partial_die): Rewrite load_all_dies support.
6086 (read_attribute_value): New arg reader. Delete args abfd, cu.
6087 All callers updated.
6088 (read_attribute): New arg reader. Delete args abfd, cu.
6089 All callers updated.
6090 (load_full_type_unit): Add assert.
6091 (read_signatured_type_reader): New function.
6092 (read_signatured_type): Rewrite.
6093 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6094 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6095 All callers updated. Set per_cu->cu = NULL after freeing it.
6096 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6097 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6098 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6099 (set_die_type): Update.
6100 (get_die_type_at_offset): Update.
6101 (read_file_scope): Call prepare_one_comp_unit.
6102 (read_type_unit_scope): Ditto.
6103 (prepare_one_comp_unit): Set producer if present.
6104
6105 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6106
6107 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6108 gettext function on `error'.
6109
6110 2012-04-27 Doug Evans <dje@google.com>
6111
6112 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6113 is empty.
6114
6115 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6116 Tom Tromey <tromey@redhat.com>
6117
6118 * breakpoint.c (struct breakpoint_objfile_data)
6119 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6120 <exception_probes>: New fields.
6121 (free_breakpoint_probes): New function.
6122 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6123 `_Unwind_DebugHook'.
6124 (create_exception_master_breakpoint): Likewise.
6125 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6126 * infrun.c: Including necessary header files for handling SystemTap
6127 probes.
6128 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6129 via SystemTap probes.
6130 (check_exception_resume): Remove `func' argument. Handle exception
6131 unwinding breakpoint set via a SystemTap probe.
6132 (insert_exception_resume_from_probe): New function.
6133
6134 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6135 Tom Tromey <tromey@redhat.com>
6136 Jan Kratochvil <jan.kratochvil@redhat.com>
6137
6138 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6139 (COMMON_OBS): Likewise.
6140 (HFILES_NO_SRCDIR): Add `probe'.
6141 * NEWS: Mention support for static and SystemTap probes.
6142 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6143 SystemTap probes' arguments parser.
6144 * arm-linux-tdep.c: Including headers needed to perform the parsing
6145 of SystemTap probes' arguments.
6146 (arm_stap_is_single_operand): New function.
6147 (arm_stap_parse_special_token): Likewise.
6148 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6149 probes' arguments parser.
6150 * ax-gdb.c (require_rvalue): Removing static declaration.
6151 (gen_expr): Likewise.
6152 * ax-gdb.h (gen_expr): Declaring function.
6153 (require_rvalue): Likewise.
6154 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6155 (bkpt_probe_breakpoint_ops): New variable.
6156 (momentary_breakpoint_from_master): Set the `probe' value.
6157 (add_location_to_breakpoint): Likewise.
6158 (break_command_1): Using proper breakpoint_ops according to the
6159 argument passed by the user in the command line.
6160 (bkpt_probe_insert_location): New function.
6161 (bkpt_probe_remove_location): Likewise.
6162 (bkpt_probe_create_sals_from_address): Likewise.
6163 (bkpt_probe_decode_linespec): Likewise.
6164 (tracepoint_probe_create_sals_from_address): Likewise.
6165 (tracepoint_probe_decode_linespec): Likewise.
6166 (tracepoint_probe_breakpoint_ops): New variable.
6167 (trace_command): Using proper breakpoint_ops according to the
6168 argument passed by the user in the command line.
6169 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6170 static probes on breakpoints and tracepoints.
6171 * breakpoint.h (struct bp_location) <probe>: New field.
6172 * cli-utils.c (skip_spaces_const): New function.
6173 (extract_arg): Likewise.
6174 * cli-utils.h (skip_spaces_const): Likewise.
6175 (extract_arg): Likewise.
6176 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6177 * configure.ac: Append `stap-probe.o' to be generated when ELF
6178 support is present.
6179 * configure: Regenerate.
6180 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6181 * elfread.c: Include `probe.h' and `arch-utils.h'.
6182 (probe_key): New variable.
6183 (elf_get_probes): New function.
6184 (elf_get_probe_argument_count): Likewise.
6185 (elf_evaluate_probe_argument): Likewise.
6186 (elf_compile_to_ax): Likewise.
6187 (elf_symfile_relocate_probe): Likewise.
6188 (stap_probe_key_free): Likewise.
6189 (elf_probe_fns): New variable.
6190 (elf_sym_fns): Add `sym_probe_fns' value.
6191 (elf_sym_fns_lazy_psyms): Likewise.
6192 (elf_sym_fns_gdb_index): Likewise.
6193 (_initialize_elfread): Initialize objfile cache for static
6194 probes.
6195 * gdb_vecs.h (struct probe): New forward declaration.
6196 (probe_p): New VEC declaration.
6197 * gdbarch.c: Regenerate.
6198 * gdbarch.h: Regenerate.
6199 * gdbarch.sh (stap_integer_prefix): New variable.
6200 (stap_integer_suffix): Likewise.
6201 (stap_register_prefix): Likewise.
6202 (stap_register_suffix): Likewise.
6203 (stap_register_indirection_prefix): Likewise.
6204 (stap_register_indirection_suffix): Likewise.
6205 (stap_gdb_register_prefix): Likewise.
6206 (stap_gdb_register_suffix): Likewise.
6207 (stap_is_single_operand): New function.
6208 (stap_parse_special_token): Likewise.
6209 (struct stap_parse_info): Forward declaration.
6210 * i386-tdep.c: Including headers needed to perform the parsing
6211 of SystemTap probes' arguments.
6212 (i386_stap_is_single_operand): New function.
6213 (i386_stap_parse_special_token): Likewise.
6214 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6215 probes' arguments parser.
6216 * i386-tdep.h (i386_stap_is_single_operand): New function.
6217 (i386_stap_parse_special_token): Likewise.
6218 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6219 * mipsread.c (ecoff_sym_fns): Likewise.
6220 * objfiles.c (objfile_relocate1): Support relocation for static
6221 probes.
6222 * parse.c (prefixify_expression): Remove static declaration.
6223 (initialize_expout): Likewise.
6224 (reallocate_expout): Likewise.
6225 * parser-defs.h (initialize_expout): Declare function.
6226 (reallocate_expout): Likewise.
6227 (prefixify_expression): Likewise.
6228 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6229 of SystemTap probes' arguments.
6230 (ppc_stap_is_single_operand): New function.
6231 (ppc_stap_parse_special_token): Likewise.
6232 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6233 probes' arguments parser.
6234 * probe.c: New file, for generic statically defined probe support.
6235 * probe.h: Likewise.
6236 * s390-tdep.c: Including headers needed to perform the parsing of
6237 SystemTap probes' arguments.
6238 (s390_stap_is_single_operand): New function.
6239 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6240 probes' arguments parser.
6241 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6242 * stap-probe.c: New file, for SystemTap probe support.
6243 * stap-probe.h: Likewise.
6244 * symfile.h: Include `gdb_vecs.h'.
6245 (struct sym_probe_fns): New struct.
6246 (struct sym_fns) <sym_probe_fns>: New field.
6247 * symtab.c (init_sal): Initialize `probe' field.
6248 * symtab.h (struct probe): Forward declaration.
6249 (struct symtab_and_line) <probe>: New field.
6250 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6251 locations.
6252 (stop_tracing): Likewise.
6253 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6254
6255 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6256 Tom Tromey <tromey@redhat.com>
6257
6258 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6259 and to compile agent expressions.
6260 * infrun.c (siginfo_make_value): New argument `ignore'.
6261 (siginfo_funcs): New struct.
6262 (_initialize_infrun): New argument when calling
6263 `create_internalvar_type_lazy'.
6264 * thread.c (thread_id_make_value): New argument `ignore'.
6265 (thread_funcs): New struct.
6266 (_initialize_thread): New argument when calling
6267 `create_internalvar_type_lazy'.
6268 * tracepoint.c (sdata_make_value): New argument `ignore'.
6269 (sdata_funcs): New struct.
6270 (_initialize_tracepoint): New argument when calling
6271 `create_internalvar_type_lazy'.
6272 * value.c (make_value): New struct.
6273 (create_internalvar_type_lazy): New argument `data'.
6274 (compile_internalvar_to_ax): New function.
6275 (value_of_internalvar): Properly handling `make_value' case.
6276 (clear_internalvar): Likewise.
6277 (show_convenience): Adding `TRY_CATCH' block.
6278 * value.h (internalvar_make_value): Delete, replace by...
6279 (struct internalvar_funcs): ... this.
6280 (create_internalvar_type_lazy) <fun>: Delete argument.
6281 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6282 (compile_internalvar_to_ax): New function.
6283 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6284 (tlb_funcs): New struct.
6285 (_initialize_windows_tdep): New argument when calling
6286 `create_internalvar_type_lazy'.
6287
6288 2012-04-27 Mark Wielaard <mjw@redhat.com>
6289
6290 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6291 see whether it is an address or a constant offset from DW_AT_low_pc.
6292 (dwarf2_record_block_ranges): Likewise.
6293 (read_partial_die): Likewise.
6294
6295 2012-04-26 Mark Wielaard <mjw@redhat.com>
6296
6297 * MAINTAINERS (Write After Approval): Add myself to the list.
6298
6299 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6300
6301 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6302 (proc_prettyprint_signal): Likewise.
6303 (proc_prettyprint_faultset): Likewise.
6304 (proc_prettyprint_fault): Likewise.
6305 (proc_prettyprint_actionset): Likewise.
6306 (proc_prettyprint_flags): Move to new proc-flags.c section.
6307 (proc_prettyfprint_flags): New prototype.
6308 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6309 (proc_syscall, proc_cursig): Likewise.
6310 (proc_set_kill_on_last_close): Likewise.
6311 (proc_unset_kill_on_last_close): Likewise.
6312 (proc_set_watchpoint): Make static.
6313 (proc_delete_dead_threads): Likewise.
6314 (procfs_set_watchpoint): Likewise.
6315 (_initialize_procfs): Add prototype.
6316 * proc-events.c: Include proc-utils.h.
6317 (init_syscall_table): Make static.
6318 * proc-api.c (_initialize_proc_api): Add prototype.
6319 * proc-flags.c: Include proc-utils.h.
6320
6321 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6322
6323 * configure.ac: Add AC_ARG_PROGRAM.
6324 * configure: Regenerate.
6325
6326 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 Fix DW_AT_lower_bound defaults for DWARF-4+.
6329 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6330 high. New variable low_default_is_valid. Implement DWARF-4+
6331 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6332 no default by the DWARF standard.
6333
6334 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6335 Maciej W. Rozycki <macro@codesourcery.com>
6336
6337 * infrun.c (handle_inferior_event): Move the check for return
6338 trampolines ahead of the check for function trampolines.
6339 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6340 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6341 (mips_str_mips16_ret_stub): Likewise.
6342 (mips_str_call_fp_stub): Likewise.
6343 (mips_str_call_stub): Likewise.
6344 (mips_str_fn_stub): Likewise.
6345 (mips_str_pic): Likewise.
6346 (mips_in_frame_stub): New function.
6347 (mips_unwind_pc): Return the return address rather than the PC
6348 if the PC of an intermediate frame is inside a call thunk.
6349 (mips_is_stub_suffix): New function.
6350 (mips_is_stub_mode): Likewise.
6351 (mips_get_mips16_fn_stub_pc): Likewise.
6352 (mips_skip_mips16_trampoline_code): Update to handle all the
6353 currently generated stub types. Don't recurse into __fn_stub
6354 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6355 Use cooked register accesses.
6356 (mips_in_return_stub): Reintroduce function.
6357 (mips_skip_trampoline_code): Traverse trampolines recursively.
6358 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6359
6360 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6361
6362 GDB 7.4.1 released.
6363
6364 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6365
6366 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6367 * features/arm-with-m-vfp-d16.xml: New file. Describes
6368 Cortex-M with VFPv4-sp-d16 FPU register layout.
6369 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6370 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6371 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6372 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6373 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6374
6375 2012-04-25 Doug Evans <dje@google.com>
6376
6377 * cli/cli-decode.c (print_doc_line): Use stream instead of
6378 current_uiout.
6379
6380 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6381
6382 * features/arm-with-iwmmxt.c: Regenerate.
6383 * features/arm-with-m-fpa-layout.c: Likewise.
6384 * features/arm-with-m.c: Likewise.
6385 * features/arm-with-neon.c: Likewise.
6386 * features/arm-with-vfpv2.c: Likewise.
6387 * features/arm-with-vfpv3.c: Likewise.
6388 * features/mips-dsp-linux.c: Likewise.
6389 * features/mips-linux.c: Likewise.
6390 * features/mips64-dsp-linux.c: Likewise.
6391 * features/mips64-linux.c: Likewise.
6392 * features/s390-linux32.c: Likewise.
6393 * features/s390-linux32v1.c: Likewise.
6394 * features/s390-linux32v2.c: Likewise.
6395 * features/s390-linux64.c: Likewise.
6396 * features/s390-linux64v1.c: Likewise.
6397 * features/s390-linux64v2.c: Likewise.
6398 * features/s390x-linux64.c: Likewise.
6399 * features/s390x-linux64v1.c: Likewise.
6400 * features/s390x-linux64v2.c: Likewise.
6401 * features/tic6x-c62x-linux.c: Likewise.
6402 * features/tic6x-c62x.c: Likewise.
6403 * features/tic6x-c64x-linux.c: Likewise.
6404 * features/tic6x-c64x.c: Likewise.
6405 * features/tic6x-c64xp-linux.c: Likewise.
6406 * features/tic6x-c64xp.c: Likewise.
6407 * target-descriptions.c: Only generate `field_type' and `type'
6408 variables when needed.
6409
6410 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6411
6412 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6413
6414 2012-04-25 Doug Evans <dje@google.com>
6415
6416 Initial pass at Go language support.
6417 * NEWS: Mention Go.
6418 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6419 go-valprint.c.
6420 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6421 (YYFILES): Add go-exp.c.
6422 (YYOBJ): Add go-exp.o.
6423 (local-maintainer-clean): Delete go-exp.c.
6424 * defs.h (enum language): Add language_go.
6425 * dwarf2read.c: #include "go-lang.h".
6426 (fixup_go_packaging): New function.
6427 (process_full_comp_unit): Call it when processing Go CUs.
6428 (dwarf2_physname): Add Go support.
6429 (read_file_scope): Handle missing language spec for GNU Go.
6430 (set_cu_language): Handle DW_LANG_Go.
6431 * go-exp.y: New file.
6432 * go-lang.h: New file.
6433 * go-lang.c: New file.
6434 * go-typeprint.c: New file.
6435 * go-valprint.c: New file.
6436 * symtab.c: #include "go-lang.h".
6437 (symbol_set_language): Handle language_go.
6438 (symbol_find_demangled_name, symbol_set_names): Ditto.
6439 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6440
6441 2012-04-24 Jim Meyering <meyering@redhat.com>
6442
6443 avoid a few strncpy-induced buffer overruns
6444 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6445 fname and psargs before trying to concatenate.
6446 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6447 "name" before applying strchr.
6448
6449 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6450
6451 * CONTRIBUTE: Use unified diff instead of context diff when
6452 generating patches.
6453
6454 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6455
6456 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6457 code. Handle JR.HB correctly.
6458
6459 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6460
6461 * mips-tdep.c
6462 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6463 with the other MIPS16 helpers.
6464
6465 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6466
6467 * observer.sh: Conditionally declare `args', thus cleaning up
6468 unused instances of this variable.
6469
6470 2012-04-24 Yao Qi <yao@codesourcery.com>
6471
6472 Revert this patch to allow breakpoint always-inserted
6473 in record target.
6474 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6475 * breakpoint.c: Include record.h.
6476 (breakpoints_always_inserted_mode): Return false when the record
6477 target is in use.
6478
6479 * breakpoint.c (iterate_over_bp_locations): New.
6480 * breakpoint.h: Declare.
6481 New typedef walk_bp_location_callback.
6482 * record.c (record_open): Call record_init_record_breakpoints.
6483 (record_sync_record_breakpoints): New.
6484 (record_init_record_breakpoints): New.
6485 * NEWS: Mention supporting breakpoint always-inserted mode in
6486 record target.
6487
6488 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6489
6490 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6491 any thread.
6492
6493 2012-04-24 Yao Qi <yao@codesourcery.com>
6494
6495 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6496 (is_catchpoint): ... it.
6497 (print_one_breakpoint_location): Caller update.
6498 * breakpoint.h: Update declaration.
6499
6500 2012-04-23 David S. Miller <davem@davemloft.net>
6501
6502 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6503
6504 2012-04-23 Tom Tromey <tromey@redhat.com>
6505
6506 * buildsym.c (add_free_pendings): Remove.
6507 * buildsym.h (add_free_pendings): Remove.
6508
6509 2012-04-23 Doug Evans <dje@google.com>
6510
6511 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6512 attr.u.unsnd instead of attr.u.addr.
6513 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6514 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6515 DW_FORM_ref_udata.
6516 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6517 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6518 DW_FORM_ref_udata.
6519 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6520
6521 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6522
6523 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6524 (mips_o32_return_value): Likewise.
6525 (mips_o64_return_value): Likewise.
6526
6527 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6528
6529 * ada-lang.c (ada_evaluate_subexp): Add cases for
6530 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6531 their treatment in eval.c.
6532
6533 2012-04-21 David S. Miller <davem@davemloft.net>
6534
6535 * sparc-tdep.c (X_DISP10): Define.
6536 (sparc_analyze_control_transfer): Handle compare-and-branch.
6537
6538 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6539
6540 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6541 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6542
6543 2012-04-20 Nigel Stephens <nigel@mips.com>
6544 Maciej W. Rozycki <macro@codesourcery.com>
6545
6546 * mips-tdep.c (mips_float_register_p): New function.
6547 (mips_convert_register_float_case_p): Use mips_float_register_p.
6548 (mips_register_type): Likewise.
6549 (mips_print_register): Likewise.
6550 (print_gp_register_row): Likewise.
6551 (mips_print_registers_info): Likewise.
6552
6553 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6554
6555 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6556 of mips16 symbols.
6557
6558 2012-04-20 Andrew Pinski <apinski@cavium.com>
6559
6560 * MAINTAINERS (Write After Approval): Add myself to the list.
6561
6562 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6563
6564 * MAINTAINERS: Update my e-mail address.
6565
6566 2012-04-20 Pedro Alves <palves@redhat.com>
6567
6568 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6569 $srcdir.
6570 * configure: Regenerate.
6571
6572 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6573
6574 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6575 declaration.
6576 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6577
6578 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6579
6580 Fix compilation compatibility with python-2.4
6581 * python/py-type.c (convert_field): Cast ADDRSTRING for
6582 PyObject_SetAttrString as non-const. New comment.
6583
6584 2012-04-19 Tom Tromey <tromey@redhat.com>
6585
6586 * top.c (quit_target): Use all_cleanups.
6587 * main.c (captured_command_loop): Use all_cleanups.
6588 * exceptions.c (throw_exception): Use all_cleanups.
6589
6590 2012-04-19 Pedro Alves <palves@redhat.com>
6591
6592 * Makefile.in (GNULIB_BUILDDIR): New.
6593 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6594 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6595 (CLEANDIRS). Remove gnulib/import.
6596 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6597 (all-lib): Ditto.
6598 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6599 (gnulib/import/Makefile): Replace gnulib/import with
6600 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6601 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6602 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6603 acx_configure_dir.m4.
6604 * acinclude.m4: Include acx_configure_dir.m4.
6605 * acx_configure_dir.m4: New file.
6606 * aclocal.m4: Regenerate.
6607 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6608 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6609 (GNULIB): New variable.
6610 (GNULIB_STDINT_H): Adjust.
6611 (AC_OUTPUT): Don't output gnulib/Makefile.
6612 * gdb/defs.h: Include build-gnulib/config.h.
6613 * aclocal.m4: Regenerate.
6614 * config.in: Regenerate.
6615 * configure: Regenerate.
6616
6617 * gnulib/Makefile.in: New file.
6618 * gnulib/configure.ac: New file.
6619 * gnulib/aclocal.m4: New file.
6620 * gnulib/config.in: New file.
6621 * gnulib/configure: New file.
6622 * gnulib/: Re-run gnulib-tool to adjust.
6623
6624 2012-04-19 Doug Evans <dje@google.com>
6625
6626 * cleanups.h (struct cleanup): Move to cleanups.c.
6627 (make_cleanup_dtor_ftype): New typedef.
6628 (make_cleanup_dtor): Use it.
6629 (ALL_CLEANUPS): Replace with ...
6630 (all_cleanups): ... this. Declare. All uses updated.
6631 * cleanups.c: #include "gdb_assert.h".
6632 (sentinel_cleanup): New static global.
6633 (SENTINEL_CLEANUP): Define.
6634 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6635 (make_my_cleanup2): Assert result is non-NULL.
6636 (all_cleanups): New function.
6637 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6638 of NULL.
6639
6640 2012-04-19 Pedro Alves <palves@redhat.com>
6641
6642 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6643 Adjust paths to gnulib imported files.
6644
6645 2012-04-19 Pedro Alves <palves@redhat.com>
6646
6647 * gnulib/: Move whole directory ...
6648 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6649 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6650 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6651 (aclocal_m4_deps): Adjust.
6652 * aclocal.m4: Regenerate.
6653 * configure: Regenerate.
6654 * configure.ac: Adjust AC_OUTPUT output.
6655
6656 2012-04-19 Yao Qi <yao@codesourcery.com>
6657
6658 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6659 (vec.o): New rule.
6660 * vec.c: Move it ...
6661 * common/vec.c: ... here.
6662 * vec.h: Move it ...
6663 * common/vec.h: ... here.
6664
6665 2012-04-19 Yao Qi <yao@codesourcery.com>
6666
6667 * gdb-code-style.el: New.
6668
6669 2012-04-18 Pedro Alves <palves@redhat.com>
6670
6671 Update gnulib from latest git.
6672 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6673
6674 * gnulib/Makefile.am: Update.
6675 * gnulib/dummy.c: Update.
6676 * gnulib/extra/arg-nonnull.h: Update.
6677 * gnulib/extra/c++defs.h: Update.
6678 * gnulib/extra/update-copyright: Update.
6679 * gnulib/extra/warn-on-use.h: Update.
6680 * gnulib/inttypes.in.h: Update.
6681 * gnulib/m4/00gnulib.m4: Update.
6682 * gnulib/m4/extensions.m4: Update.
6683 * gnulib/m4/gnulib-cache.m4: Update.
6684 * gnulib/m4/gnulib-common.m4: Update.
6685 * gnulib/m4/gnulib-comp.m4: Update.
6686 * gnulib/m4/gnulib-tool.m4: Update.
6687 * gnulib/m4/include_next.m4: Update.
6688 * gnulib/m4/inttypes-pri.m4: Update.
6689 * gnulib/m4/inttypes.m4: Update.
6690 * gnulib/m4/longlong.m4: Update.
6691 * gnulib/m4/memchr.m4: Update.
6692 * gnulib/m4/memmem.m4: Update.
6693 * gnulib/m4/mmap-anon.m4: Update.
6694 * gnulib/m4/multiarch.m4: Update.
6695 * gnulib/m4/onceonly.m4: Update.
6696 * gnulib/m4/stddef_h.m4: Update.
6697 * gnulib/m4/stdint.m4: Update.
6698 * gnulib/m4/string_h.m4: Update.
6699 * gnulib/m4/warn-on-use.m4: Update.
6700 * gnulib/m4/wchar_h.m4: Update.
6701 * gnulib/m4/wchar_t.m4: Update.
6702 * gnulib/m4/wint_t.m4: Update.
6703 * gnulib/memchr.c: Update.
6704 * gnulib/memmem.c: Update.
6705 * gnulib/stddef.in.h: Update.
6706 * gnulib/stdint.in.h: Update.
6707 * gnulib/str-two-way.h: Update.
6708 * gnulib/string.in.h: Update.
6709 * gnulib/wchar.in.h: Update.
6710
6711 * gnulib/extra/arg-nonnull.h: Delete.
6712 * gnulib/extra/c++defs.h: Delete.
6713 * gnulib/extra/warn-on-use.h: Delete.
6714 * gnulib/m4/wchar_h.m4: Delete.
6715 * gnulib/m4/wint_t.m4: Delete.
6716 * gnulib/wchar.in.h: Delete.
6717
6718 * gnulib/extra/snippets/arg-nonnull.h: New.
6719 * gnulib/extra/snippets/c++defs.h: New.
6720 * gnulib/extra/snippets/warn-on-use.h: New.
6721
6722 * aclocal.m4: Regenerate.
6723 * config.in: Regenerate.
6724 * configure: Regenerate.
6725 * gnulib/Makefile.in: Regenerate.
6726
6727 2012-04-18 Pedro Alves <palves@redhat.com>
6728
6729 Reimport the update-copyright module from gnulib
6730 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6731
6732 * configure: Regenerate.
6733 * gnulib/Makefile.am: Update.
6734 * gnulib/Makefile.in: Regenerate.
6735 * gnulib/extra/update-copyright: Update.
6736 * gnulib/m4/gnulib-cache.m4: Update.
6737 * gnulib/m4/gnulib-comp.m4: Update.
6738
6739 2012-04-18 Tristan Gingold <gingold@adacore.com>
6740
6741 * configure.ac (aix): Put -lpthread into libs.
6742 * configure: Regenerate.
6743
6744 2012-04-18 Tom Tromey <tromey@redhat.com>
6745
6746 * linespec.c (convert_linespec_to_sals): Don't use
6747 SYMBOL_OBJ_SECTION.
6748 (compare_msymbols): Arguments are minsym_and_objfile, not
6749 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6750
6751 2012-04-18 Pedro Alves <palves@redhat.com>
6752
6753 Revert gnulib/ part of:
6754 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6755 Copyright year update in most files (performed by copyright.sh).
6756
6757 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 Fix 64-bit constants on 32-bit hosts.
6760 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6761 from unsigned long to ULONGEST.
6762 (read_signed_leb128): Change declaration return type from long to
6763 LONGEST.
6764 (dwarf2_const_value_attr): Change declaration parameter value from long
6765 to LONGEST.
6766 (dwarf2_compute_name): Change variable value from long to LONGEST.
6767 (read_unsigned_leb128): Change return type, variable result and some
6768 casts from unsigned long to ULONGEST.
6769 (read_signed_leb128): Change return type, variable result and some
6770 casts from long to LONGEST.
6771 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6772 value from long to LONGEST.
6773 (dwarf2_const_value): Change variable value from long to LONGEST.
6774 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6775 plongest and hex_string.
6776 * symtab.h (struct general_symbol_info): Change ivalue from long to
6777 LONGEST, remove the comment.
6778 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6779 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6780
6781 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6782
6783 PR symtab/7259:
6784 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6785 * ada-lang.c (ada_discrete_type_high_bound)
6786 (ada_discrete_type_low_bound): Fix function comment. Use
6787 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6788 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6789 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6790 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6791 Use TYPE_FIELD_ENUMVAL.
6792 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6793 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6794 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6795 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6796 TYPE_CODE_ENUM.
6797 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6798 * dwarf2read.c (process_enumeration_scope): Likewise.
6799 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6800 field.bitpos.
6801 (class StructMainTypePrettyPrinter): Support also
6802 FIELD_LOC_KIND_ENUMVAL.
6803 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6804 TYPE_CODE_ENUM.
6805 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6806 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6807 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6808 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6809 field enumval.
6810 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6811 accommodate enumval.
6812 (struct call_site): Adjust loc_kind to accommodate enumval.
6813 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6814 (TYPE_FIELD_ENUMVAL): New macros.
6815 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6816 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6817 TYPE_CODE_ENUM.
6818 * p-typeprint.c (pascal_type_print_base): Likewise.
6819 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6820 enumval.
6821 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6822 * python/py-type.c (convert_field): New variable addrstring. Use
6823 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6824 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6825 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6826 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6827 TYPE_CODE_ENUM.
6828 * valprint.c (generic_val_print): Likewise.
6829
6830 2012-04-17 Doug Evans <dje@google.com>
6831
6832 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6833
6834 * dwarf2read.c: Whitespace fixes.
6835 (lookup_signatured_type): Tweak comment.
6836 (get_die_type_at_offset): Fix comment.
6837
6838 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6839
6840 * xcoffread.c (xcoff_secnum_to_sections): New function.
6841 (secnum_to_section, secnum_to_bfd_section): Reimplement
6842 using xcoff_secnum_to_sections. Rename "secnum" parameter
6843 into "n_scnum".
6844 (RECORD_MINIMAL_SYMBOL): Delete.
6845 (record_minimal_symbol): New function.
6846 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6847 by call to record_minimal_symbol and set misc_func_recorded
6848 to 1. Set last_csect_sec to the XCOFF section index instead
6849 of GDB's section_offset index. Update calls to
6850 prim_record_minimal_symbol_and_info to pass the BFD section
6851 as well.
6852
6853 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6854
6855 * xcoffread.c (read_xcoff_symtab): Delete variables
6856 last_csect_val and last_csect_sec and associated code.
6857
6858 2012-04-17 Doug Evans <dje@google.com>
6859
6860 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6862 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6863 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6864
6865 * cleanups.h: New file.
6866 * cleanups.c: New file.
6867 * Makefile.in (SFILES): Add cleanups.c.
6868 (HFILES_NO_SRCDIR): Add cleanups.h.
6869 (COMMON_OBS): Add cleanups.o.
6870 * defs.h (struct cleanup): Moved to cleanups.h.
6871 (do_cleanups,do_final_cleanups): Ditto.
6872 (discard_cleanups,discard_final_cleanups): Ditto
6873 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6874 (save_cleanups,save_final_cleanups): Ditto.
6875 (restore_cleanups,restore_final_cleanups): Ditto.
6876 (null_cleanup): Ditto.
6877 (make_my_cleanup,make_my_cleanup2): Ditto.
6878 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6879 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6880 (do_cleanups,do_final_cleanups): Ditto.
6881 (discard_cleanups,discard_final_cleanups): Ditto
6882 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6883 (save_cleanups,save_final_cleanups): Ditto.
6884 (restore_cleanups,restore_final_cleanups): Ditto.
6885 (null_cleanup): Ditto.
6886 (make_my_cleanup,make_my_cleanup2): Ditto.
6887 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6888
6889 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6890 make_my_cleanup.
6891 (make_cleanup_dyn_string_delete): Ditto.
6892 (make_cleanup_ui_file_delete): Ditto.
6893 (make_cleanup_ui_out_redirect_pop): Ditto.
6894 (make_cleanup_free_section_addr_info): Ditto.
6895 (make_cleanup_restore_integer): Ditto.
6896 (make_cleanup_unpush_target): Ditto.
6897 (make_cleanup_value_free_to_mark): Ditto.
6898 (make_cleanup_value_free): Ditto.
6899 (make_cleanup_free_so): Ditto.
6900
6901 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6902
6903 New option "set debug auto-load".
6904 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6905 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6906 (auto_load_safe_path_vec_update)
6907 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6908 if DEBUG_AUTO_LOAD.
6909 (file_is_auto_load_safe): New parameters debug_fmt and ....
6910 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6911 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6912 caller by explanatory string.
6913 (_initialize_auto_load): Register "set debug auto-load".
6914 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6915 and ....
6916 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6917 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6918 by explanatory string.
6919 * main.c (captured_main): Likewise.
6920 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6921 (source_section_scripts): Likewise.
6922
6923 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6924
6925 New option "set auto-load safe-path".
6926 * NEWS: New commands "set auto-load safe-path"
6927 and "show auto-load safe-path".
6928 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6929 (auto_load_safe_path, auto_load_safe_path_vec)
6930 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6931 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6932 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6933 (source_gdb_script_for_objfile): New variable is_safe. Call
6934 file_is_auto_load_safe. Return if it is not.
6935 (struct loaded_script): New field loaded.
6936 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6937 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6938 output "Missing" to "No".
6939 (_initialize_auto_load): New variable cmd. Initialize
6940 auto_load_safe_path. Register "set auto-load safe-path",
6941 "show auto-load safe-path" and "add-auto-load-safe-path".
6942 * auto-load.h (maybe_add_script): Add parameter loaded.
6943 (file_is_auto_load_safe): New declaration.
6944 * config.in: Regenerate.
6945 * configure: Regenerate.
6946 * configure.ac: New parameters --with-auto-load-safe-path
6947 and --without-auto-load-safe-path.
6948 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6949 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6950 * main.c (captured_main): Check file_is_auto_load_safe for
6951 LOCAL_GDBINIT.
6952 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6953 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6954 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6955 not.
6956
6957 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6958
6959 auto-load: Implementation.
6960 * NEWS: New descriptions for "info auto-load",
6961 "info auto-load gdb-scripts", "info auto-load python-scripts",
6962 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6963 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6964 and "show auto-load-scripts". New description for "set auto-load",
6965 "show auto-load", "set auto-load gdb-scripts",
6966 "show auto-load gdb-scripts", "set auto-load python-scripts",
6967 "show auto-load python-scripts", "set auto-load local-gdbinit",
6968 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6969 "show auto-load libthread-db".
6970 * auto-load.c: Remove include python/python-internal.h. Add includes
6971 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6972 cli/cli-setshow.h.
6973 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6974 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6975 (gdbpy_global_auto_load): Rename to ...
6976 (global_auto_load): ... here.
6977 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6978 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6979 (script_language_gdb, source_gdb_script_for_objfile): New.
6980 (struct loaded_script): New field language.
6981 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6982 LANGUAGE.
6983 (maybe_add_script): Add parameter language. Drop redundant
6984 entry.full_path initialization. Initialize entry.language and
6985 (*slot)->language.
6986 (auto_load_objfile_script): Change parameter suffix to language.
6987 Remove the call of maybe_add_script.
6988 Call language->source_script_for_objfile.
6989 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6990 New.
6991 (collect_matching_scripts): Adjust it for
6992 struct collect_matching_scripts_data.
6993 (auto_load_info_scripts_pattern_nl): New variable.
6994 (info_auto_load_scripts): Rename to ...
6995 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6996 for struct collect_matching_scripts_data.
6997 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6998 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6999 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7000 (auto_load_info_cmdlist_get): New.
7001 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7002 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7003 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7004 "info auto-load local-gdbinit".
7005 * auto-load.h (struct script_language): New.
7006 (gdbpy_global_auto_load): Rename to ...
7007 (global_auto_load): ... here.
7008 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7009 (auto_load_local_gdbinit_loaded): New declarations.
7010 (maybe_add_script): New parameter language.
7011 (auto_load_objfile_script): Change parameter suffix to language.
7012 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7013 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7014 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7015 declarations.
7016 * linux-thread-db.c: Include auto-load.h and ctype.h.
7017 (auto_load_thread_db, show_auto_load_thread_db): New.
7018 (struct thread_db_info): New field filename.
7019 (delete_thread_db_info): Call xfree for FILENAME.
7020 (try_thread_db_load): Initialize FILENAME.
7021 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7022 if !AUTO_LOAD_THREAD_DB.
7023 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7024 (_initialize_thread_db): Install auto_load_thread_db
7025 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7026 as "info auto-load libthread-db".
7027 * main.c (captured_main): Rename gdbpy_global_auto_load to
7028 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7029 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7030 (print_gdb_help): Extend the help for 'local init file'.
7031 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7032 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7033 (auto_load_scripts): Rename to ...
7034 (auto_load_python_scripts): ... here, update the comment.
7035 (gdbpy_load_auto_script_for_objfile): New declaration.
7036 (show_auto_load_python_scripts, script_language_python)
7037 (gdbpy_load_auto_script_for_objfile): New.
7038 (source_section_scripts): Refactor the code.
7039 (load_auto_scripts_for_objfile): Rename to ...
7040 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7041 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7042 (info_auto_load_python_scripts): New.
7043 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7044 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7045 Register "set auto-load-scripts" as its deprecated alias. Register
7046 "info auto-load python-scripts". Register "info auto-load-scripts" as
7047 its deprecated alias.
7048 (load_auto_scripts_for_objfile): Rename to ...
7049 (gdbpy_load_auto_scripts_for_objfile): ... here.
7050 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7051 (gdbpy_load_auto_scripts_for_objfile): ... here.
7052
7053 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7054
7055 auto-load: Move files.
7056 * Makefile.in (SFILES): Add auto-load.c.
7057 (HFILES_NO_SRCDIR): Add auto-load.h.
7058 (COMMON_OBS): Add auto-load.o.
7059 (distclean): Change .gdbinit for gdb-gdb.gdb.
7060 * auto-load.c: New file, with parts from python/py-auto-load.c.
7061 * auto-load.h: New file, with parts from python/python.h.
7062 * configure: Regenerate.
7063 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7064 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7065 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7066 * main.c: Include auto-load.h.
7067 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7068 command.h, observer.h and progspace.h to auto-load.c. Add include
7069 auto-load.h.
7070 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7071 (struct loaded_script, auto_load_pspace_data)
7072 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7073 (hash_loaded_script_entry, eq_loaded_script_entry)
7074 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7075 (maybe_add_script): Move to auto-load.c.
7076 (source_section_scripts): Change maybe_add_script parameters passing,
7077 use script_not_found_warning_print.
7078 (clear_section_scripts, auto_load_objfile_script)
7079 (auto_load_new_objfile, loaded_script_ptr)
7080 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7081 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7082 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7083 auto_load_new_objfile and info_auto_load_scripts initizations to
7084 auto-load.c.
7085 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7086
7087 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 Code cleanup.
7090 * charset.c (find_charset_names): Remove variables ix and elt.
7091 Use free_char_ptr_vec.
7092 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7093 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7094 debugdir_end. New variable debugdir_len.
7095 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7096 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7097 declarations.
7098 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7099 and elt. Use free_char_ptr_vec.
7100 * source.c (add_path): Remove variables argv, arg and argv_index.
7101 New variables dir_vec, back_to, ix and name.
7102 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7103 make_cleanup_freeargv. Remove variable separator. Simplify the code
7104 no longer expecting DIRNAME_SEPARATOR.
7105 (openp): Remove variable p, p1 and len. New variables dir_vec,
7106 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7107 no longer expecting DIRNAME_SEPARATOR.
7108 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7109 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7110 debugdir_end.
7111 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7112 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7113 (dirnames_to_char_ptr_vec): New functions.
7114
7115 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 Code cleanup.
7118 * source.c (add_path): Remove always true conditional 'p == 0' and
7119 unindent its code block.
7120
7121 2012-04-17 Pedro Alves <palves@redhat.com>
7122
7123 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7124 (FIELD_BITPOS_LVAL): ... this.
7125 (FIELD_BITPOS): New.
7126 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7127 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7128 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7129 SET_FIELD_BITPOS.
7130 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7131 SET_FIELD_BITPOS.
7132 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7133 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7134 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7135 SET_FIELD_BITPOS.
7136
7137 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7140 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7141 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7142 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7143 * jv-lang.c (java_link_class_type): Likewise, once.
7144 * stabsread.c (read_enum_type): Likewise.
7145
7146 2012-04-16 Yao Qi <yao@codesourcery.com>
7147
7148 * common/agent.c (agent_run_command): Add one more parameter `len'.
7149 Update callers.
7150 * common/agent.h: Update declaration.
7151 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7152 Update.
7153 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7154
7155 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7156
7157 PR mi/13393
7158 * value.c (value_actual_type): New function.
7159 * value.h (value_actual_type): New declaration.
7160 * varobj.c (update_type_if_necessary): New function.
7161 (varobj_create): Call value_actual_type instead of
7162 value_type.
7163 (install_dynamic_child): distinct changed and type changed MI variable
7164 objects.
7165 (update_dynamic_varobj_children): Updated for install_dynamic_child
7166 change. All callers updated.
7167 (varobj_update): Support for MI variable object type change if
7168 the value changed and RTTI is used to determine the type.
7169 (create_child_with_value): Call value_actual_type instead of
7170 value_type.
7171 (adjust_value_for_child_access): Extended with a new parameter which
7172 specify whether the given value should be casted to enclosing type.
7173 All callers updated.
7174
7175 2012-04-14 Yao Qi <yao@codesourcery.com>
7176
7177 Import gnulib module inttypes from git
7178 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7179 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7180 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7181 gnulib/m4/inttypes-pri.m4
7182 * aclocal.m4, config.in, configure: Regenerated.
7183 * gnulib/Makefile.am: Update.
7184 * gnulib/Makefile.in: Update.
7185 * gnulib/m4/gnulib-cache.m4: Update.
7186 * gnulib/m4/gnulib-comp.m4: Update.
7187 * gnulib/inttypes.in.h: New.
7188 * gnulib/m4/inttypes-pri.m4: New.
7189 * gnulib/m4/inttypes.m4: New.
7190
7191 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7192
7193 * infrun.c (resume): Update PC address to the real PC after
7194 preparing to do displaced stepping.
7195
7196 2012-04-12 Doug Evans <dje@google.com>
7197
7198 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7199 All callers updated.
7200
7201 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7202
7203 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7204
7205 2012-04-12 Doug Evans <dje@google.com>
7206
7207 * dwarf2read.c (create_all_type_units): Renamed from
7208 create_debug_types_hash_table. All callers updated.
7209
7210 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7211 local type_sig to sig_type, type_offset to type_offset_in_tu.
7212 (hash_signatured_type): Renamed from hash_type_signature,
7213 all callers updated.
7214 (eq_signatured_type): Renamed from eq_type_signature,
7215 all callers updated.
7216 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7217 (process_enumeration_scope): Ditto.
7218 (lookup_signatured_type_at_offset): Ditto.
7219 (load_full_type_unit, read_signatured_type): Ditto.
7220
7221 2012-04-12 Yao Qi <yao@codesourcery.com>
7222
7223 * remote.c (async_remote_interrupt): Correct function name in
7224 debug message.
7225 (async_remote_interrupt_twice): Ditto.
7226
7227 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7228
7229 * source.c (find_and_open_source): Consistently pass resulting
7230 full path through xfullpath.
7231
7232 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7233
7234 Provide more specific displaced-stepping memory error message.
7235 * infrun.c (displaced_step_prepare): New variable status. Call
7236 target_read_memory instead of read_memory, provide more specific
7237 error message.
7238
7239 2012-04-11 Tristan Gingold <gingold@adacore.com>
7240
7241 PR gdb/13901
7242 * darwin-nat.c (darwin_execvp): Revert previous patch.
7243
7244 2012-04-11 Tristan Gingold <gingold@adacore.com>
7245
7246 PR gdb/13901
7247 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7248 in case of change.
7249
7250 2012-04-11 Tristan Gingold <gingold@adacore.com>
7251
7252 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7253 warning.
7254
7255 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7256
7257 New command 'explore' which helps explore values and types in
7258 scope.
7259 * NEWS: Add an entry about the new 'explore' command.
7260 * data-directory/Makefile.in: Add gdb/command/explore.py
7261 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7262 command using the GDB Python API.
7263
7264 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7265
7266 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7267 extension in jump target calculation.
7268
7269 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7270
7271 * mips-tdep.c (mips32_next_pc): Handle JALX.
7272
7273 2012-04-10 Yao Qi <yao@codesourcery.com>
7274
7275 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7276
7277 2012-04-10 Yao Qi <yao@codesourcery.com>
7278
7279 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7280 and gnulib/m4/gnulib-tool.m4.
7281
7282 2012-04-10 Doug Evans <dje@google.com>
7283
7284 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7285 (load_partial_dies): Clarify comment.
7286 (find_partial_die): Support rereading type units.
7287 Clarify CU handling, if we know offset is in CU, don't search for the
7288 containing CU. Add comment regarding memory waste.
7289
7290 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7291
7292 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7293 i386/x32-avx and i386/x32-avx-linux.
7294 (i386/x32-expedite): New.
7295 (i386/x32-linux-expedite): Likewise.
7296 (i386/x32-avx-expedite): Likewise.
7297 (i386/x32-avx-linux-expedite): Likewise.
7298 ($(outdir)/i386/x32.dat): Likewise.
7299 ($(outdir)/i386/x32-linux.dat): Likewise.
7300 ($(outdir)/i386/x32-avx.dat): Likewise.
7301 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7302
7303 * features/i386/x32-avx-linux.xml: New file.
7304 * features/i386/x32-avx.xml: Likewise.
7305 * features/i386/x32-core.xml: Likewise.
7306 * features/i386/x32-linux.xml: Likewise.
7307 * features/i386/x32.xml: Likewise.
7308
7309 * features/i386/x32-avx-linux.c: New. Generated.
7310 * features/i386/x32-avx.c: Likewise.
7311 * features/i386/x32-linux.c: Likewise.
7312 * features/i386/x32.c: Likewise.
7313 * regformats/i386/x32-avx-linux.dat: Likewise.
7314 * regformats/i386/x32-avx.dat: Likewise.
7315 * regformats/i386/x32-linux.dat: Likewise.
7316 * regformats/i386/x32.dat: Likewise.
7317
7318 2012-04-10 Tristan Gingold <gingold@adacore.com>
7319
7320 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7321 code to kill the inferior.
7322
7323 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7324
7325 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7326 defines.
7327 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7328 defines.
7329 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7330 (yyvsp): New defines.
7331 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7332 defines.
7333 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7334 defines.
7335 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7336 defines.
7337 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7338 defines.
7339 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7340 defines.
7341
7342 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7343
7344 * sparc64-tdep.c (sparc64_store_arguments)
7345 (sparc64_store_arguments): Fix coding style.
7346
7347 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7348
7349 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7350 complex floats, adjust some related comments and tighten a related
7351 assertion.
7352 (sparc64_extract_return_value): Handle complex floats.
7353
7354 2012-04-07 Doug Evans <dje@google.com>
7355
7356 * dwarf2read.c (load_partial_dies): Change condition to assert.
7357
7358 2012-04-06 Doug Evans <dje@google.com>
7359
7360 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7361 "mov %rsp,%rbp".
7362
7363 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7364
7365 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7366 fencepost error.
7367 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7368 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7369 architecture.
7370
7371 2012-04-05 Keith Seitz <keiths@redhat.com>
7372
7373 * linespec.c (decode_compound): Remove.
7374 (enum offset_relative_sign): New enum.
7375 (struct line_offset): New struct.
7376 (struct linespec): New struct.
7377 (struct linespec_state): Move file_symtabs,
7378 user_filename, and user_function into struct linespec.
7379 Make result an anonymous struct holding vectors of
7380 symbolp and minsym_and_objfile_d.
7381 Add language member.
7382 (enum ls_token_type): New enum.
7383 (linespec_keywords): New array.
7384 (struct ls_token): New struct.
7385 (struct ls_parser): New struct.
7386 (linespec_lexer_lex_number): New function.
7387 (linespec_lexer_lex_keyword): New function.
7388 (is_ada_operator): New function.
7389 (skip_quote_char): New function.
7390 (copy_token_string): New function.
7391 (is_closing_quote_enclosed): New function.
7392 (find_parameter_list_end): New function.
7393 (linespec_lexer_lex_string): New function.
7394 (linespec_lexer_lex_one): New function.
7395 (linespec_lexer_consume_token): New function.
7396 (linespec_lexer_peek_token): New function.
7397 (cplusplus_error): Remove unused function.
7398 (find_methods): Update comment.
7399 (find_toplevel_char): Return const.
7400 (is_objc_method_format): Remove unused function.
7401 (find_toplevel_string): New function.
7402 (is_linespec_boundary): Remove.
7403 (symbol_not_found_error): New function.
7404 (find_method_overload_end): Remove function.
7405 (unexpected_linespec_error): New function.
7406 (keep_name_info): Remove.
7407 (linespec_parse_line_offset): New function.
7408 (linespec_parse_basic): New function.
7409 (canonicalize_linespec): New function.
7410 (decode_line_internal): Remove.
7411 (create_sals_line_offset): New function adapted from
7412 decode_all_digits.
7413 (convert_linespec_to_sals): New function.
7414 (parse_linespec): New function.
7415 (linespec_parser_new): New function.
7416 (linespec_state_destructor): Change parameter type to
7417 struct linespec_state *.
7418 Add language parameter.
7419 Remove freeing of moved members.
7420 (linespec_parser_delete): New function.
7421 (decode_line_full): Use parse_linespec and linespec_parser_new.
7422 (decode_line_1): Likewise.
7423 (decode_indirect): Rename to ...
7424 (linespec_expression_to_pc): ... this and rewrite
7425 to simply find CORE_ADDR, storing this result for later
7426 conversion to SALs.
7427 (locate_first_half): Remove.
7428 (deocde_objc): Add parameter LS.
7429 Initialize new struct collect_info members.
7430 Handle minimal symbols, too.
7431 (decode_compound): Delete.
7432 (lookup_prefix_sym): Rewrite.
7433 (compare_msymbols): New function.
7434 (find_method): Rewrite.
7435 Do not call cplusplus_error.
7436 (symtabs_from_filename): Rewrite.
7437 (collect_function_symbols): Delete.
7438 (find_function_symbols): Rewrite without ARGPTR-style
7439 processing.
7440 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7441 (decode_dollar): Adapted and renamed to ...
7442 (linespec_parse_variable): ... this.
7443 (find_linespec_symbols): New function.
7444 (decode_label): Adapted and renamed to ...
7445 (find_label_symbols): ... this.
7446 (decode_digits_list_mode): Add and use LS argument.
7447 (decode_digits_ordinary): Likewise.
7448 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7449 If in list mode, allow any symbol class. Otherwise, only
7450 permit LOC_BLOCK symbols.
7451 (minsym_found): Update comments.
7452 (search_minsyms_for_name): Do not convert the matching symbol
7453 into a SAL. Simply push the symbol and objfile into the
7454 result vector.
7455 (decode_variable): Delete. Contents adapted into
7456 find_linespec_symbols.
7457
7458 * cp-support.c (SKIP_SPACE): Remove.
7459 (operator_tokens): Remove unused global.
7460 (cp_validate_operator): Remove.
7461 * cp-support.h (cp_validate_operator): Remove declaration.
7462
7463 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7466 for TYPE_VPTR_FIELDNO.
7467 * valprint.c (valprint_check_validity): Make it global, move the
7468 function comment ...
7469 * value.h (valprint_check_validity): ... to this new declaration.
7470
7471 2012-04-02 Tristan Gingold <gingold@adacore.com>
7472
7473 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7474 the STATE32 api for i386 state.
7475 (i386_darwin_store_inferior_registers): Likewise.
7476
7477 2012-04-02 Tristan Gingold <gingold@adacore.com>
7478
7479 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7480 SS offset.
7481 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7482 format_string.
7483
7484 2012-04-02 Tristan Gingold <gingold@adacore.com>
7485
7486 PR gdb/13901
7487 * darwin-nat.c (darwin_execvp): Set binary preference.
7488
7489 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7490
7491 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7492
7493 2012-03-30 Tom Tromey <tromey@redhat.com>
7494
7495 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7496 of TRY_CATCH. Fix error handling.
7497 * python/py-value.c (convert_value_from_python): Move 'old'
7498 declaration to innermost scope.
7499
7500 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7501 Andrey Smirnov <andrew.smirnov@gmail.com>
7502
7503 -Wshadow warning fix.
7504 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7505 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7506 Adjust code accordingly.
7507
7508 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7509
7510 * ada-lang.c (symbol_completion_add): Rename parameter
7511 "encoded" into "encoded_p". Ajust code and documentation
7512 accordingly.
7513
7514 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7515 Andrey Smirnov <andrew.smirnov@gmail.com>
7516
7517 -Wshadow warning fix.
7518 * ada-lang.c (symbol_completion_add): Rename parameter
7519 "wild_match" into wild_match_p. Update code and documentation
7520 accordingly.
7521
7522 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7523
7524 * ada-lang.c (symbol_completion_match): Rename parameter
7525 "encoded" into "encoded_p". Ajust code and documentation
7526 accordingly.
7527
7528 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7529 Andrey Smirnov <andrew.smirnov@gmail.com>
7530
7531 -Wshadow warning fix.
7532 * ada-lang.c (symbol_completion_match): Rename parameter
7533 "wild_match" into "wild_match_p". Adjust code and function
7534 documentation accordingly.
7535
7536 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7537 Andrey Smirnov <andrew.smirnov@gmail.com>
7538
7539 -Wshadow warning fix.
7540 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7541 "symbol_info" into "info". Adjust code accordingly.
7542 (ada_lookup_symbol): Likewise.
7543
7544 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7545
7546 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7547 of this function's documentation.
7548
7549 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7550 Andrey Smirnov <andrew.smirnov@gmail.com>
7551
7552 -Wshadow warning fix.
7553 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7554 variable into "wild_match_p". Adjust code accordingly.
7555
7556 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7557 Andrey Smirnov <andrew.smirnov@gmail.com>
7558
7559 -Wshadow warning fix.
7560 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7561 parameter into "wild_match_p". Adjust code accordingly.
7562 Document this parameter in the function description.
7563
7564 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7565 Andrey Smirnov <andrew.smirnov@gmail.com>
7566
7567 -Wshadow warning fix.
7568 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7569 "wild_match" parameter to "wild_match_p" (-Wshadow).
7570
7571 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7572
7573 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7574 in function documentation.
7575
7576 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7577 Andrey Smirnov <andrew.smirnov@gmail.com>
7578
7579 -Wshadow warning fix.
7580 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7581 variable into wild_match_p. Adjust code accordingly.
7582
7583 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7584 Andrey Smirnov <andrew.smirnov@gmail.com>
7585
7586 * ada-valprint.c (ada_val_print_1): Move the code handling
7587 TYPE_CODE_ENUM inside its own lexical block. Declare
7588 variables len and val there, instead of in the function's
7589 top level block. Avoid declaring deref_val again in a way
7590 that shadows another variable of the same name declared
7591 in one of the up-level blocks. Just re-use the up-level
7592 variable instead.
7593
7594 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7595
7596 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7597 Replace block_found argument by symbol_info. Adjust
7598 implementation accordingly. Add function documentation.
7599 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7600 Fix documentation.
7601 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7602 * ada-exp.y (write_object_renaming): Adjust to new
7603 ada_lookup_encoded_symbol API.
7604
7605 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7606
7607 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7608 documentation.
7609
7610 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7611
7612 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7613 (v850_register_name): Add the mpu and fpu register names.
7614 (v850e_register_name): Add the mpu and fpu register names.
7615 (v850e2_register_name): New function.
7616 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7617 bfd_mach_v850e2v3.
7618
7619 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7620
7621 * NEWS: Add entry for Ada varobj support.
7622
7623 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7624
7625 * varobj.c (default_value_is_changeable_p): New function,
7626 extracted from varobj_value_is_changeable_p. Add declaration.
7627 (ada_value_is_changeable_p): New function, extracted from
7628 varobj_value_is_changeable_p. Add declaration.
7629 (struct language_specific): New field "value_is_changeable_p".
7630 (languages): Add entries for new field.
7631 (varobj_create): Set language before calling install_new_value.
7632 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7633 "value_is_changeable_p" language callback.
7634
7635 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7636
7637 * ada-varobj.h, ada-varobj.c: New files.
7638 * Makefile.in (SFILES): Add ada-varobj.c.
7639 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7640 (COMMON_OBS): Add ada-varobj.o.
7641
7642 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7643
7644 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7645 (struct language_specific): New field "value_has_mutated".
7646 (languages): Set field "value_has_mutated" in each entry of array.
7647 (varobj_value_has_mutated): New function.
7648 (varobj_udpdate): Add handling of type mutation.
7649 (value_of_root): Add handling of type mutation.
7650 (ada_value_has_mutated): New function.
7651
7652 2012-03-28 Pedro Alves <palves@redhat.com>
7653
7654 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7655 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7656
7657 2012-03-28 Tom Tromey <tromey@redhat.com>
7658
7659 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7660 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7661 before returning.
7662
7663 2012-03-28 Tom Tromey <tromey@redhat.com>
7664
7665 * .dir-locals.el: New file.
7666
7667 2012-03-28 Pedro Alves <palves@redhat.com>
7668
7669 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7670
7671 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7672
7673 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7674 handling for r0.
7675
7676 2012-03-27 Pedro Alves <palves@redhat.com>
7677
7678 Eliminate struct ui_stream.
7679
7680 * ui-out.h (struct ui_stream): Delete.
7681 (ui_out_field_stream): Adjust prototype.
7682 (ui_out_stream_new, ui_out_stream_delete)
7683 (make_cleanup_ui_out_stream_delete): Delete declarations.
7684 * ui-out.c (ui_out_field_stream): Change prototype to take a
7685 ui_file instead of a ui_stream. Adjust.
7686 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7687 (make_cleanup_ui_out_stream_delete): Delete.
7688 * breakpoint.c (print_breakpoint_location)
7689 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7690 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7691 * disasm.c (dump_insns): Ditto.
7692 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7693 prototype.
7694 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7695 ui_stream/ui_out_stream_new.
7696 * infcmd.c (print_return_value): Ditto.
7697 * osdata.c (info_osdata_command): Don't allocate a local
7698 ui_stream.
7699 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7700 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7701 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7702 allocate a local ui_stream.
7703 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7704 instead of ui_stream/ui_out_stream_new.
7705 (list_args_or_locals): Don't allocate a local ui_stream.
7706 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7707 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7708 ui_stream/ui_out_stream_new.
7709 * cli/cli-setshow.c (do_setshow_command): Ditto.
7710
7711 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7712
7713 * arm-linux-tdep.c (arm_linux_init_abi): Call
7714 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7715 * arm-tdep.c (arm_process_record): New function.
7716 (deallocate_reg_mem): New function.
7717 (decode_insn): New function.
7718 (thumb_record_branch): New function.
7719 (thumb_record_ldm_stm_swi(): New function.
7720 (thumb_record_misc): New function.
7721 (thumb_record_ld_st_stack): New function.
7722 (thumb_record_ld_st_imm_offset): New function.
7723 (thumb_record_ld_st_reg_offset(): New function.
7724 (thumb_record_add_sub_cmp_mov): New function.
7725 (thumb_record_shift_add_sub): New function.
7726 (arm_record_coproc_data_proc): New function.
7727 (arm_record_coproc): New function.
7728 (arm_record_b_bl): New function.
7729 (arm_record_ld_st_multiple): New function.
7730 (arm_record_ld_st_reg_offset): New function.
7731 (arm_record_ld_st_imm_offset): New function.
7732 (arm_record_data_proc_imm): New function.
7733 (arm_record_data_proc_misc_ld_str): New function.
7734 (arm_record_extension_space): New function.
7735 (arm_record_strx): New function.
7736 (sbo_sbz): New function.
7737 (struct insn_decode_record): New structure for arm insn record.
7738 (REG_ALLOC): New macro for reg allocations.
7739 (MEM_ALLOC): New macro for memory allocations.
7740 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7741
7742 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7743
7744 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7745 (store_register): Likewise.
7746
7747 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7748
7749 * MAINTAINERS (Write After Approval): Add myself to the list.
7750
7751 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7754 Describe also the option "auto".
7755
7756 2012-03-22 Richard Henderson <rth@redhat.com>
7757
7758 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7759 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7760
7761 2012-03-22 Richard Henderson <rth@redhat.com>
7762
7763 * jit.c (jit_read_code_entry): Compute alignment and offset of
7764 int64_t member before computing entry_size.
7765
7766 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7767
7768 Python scripting: Add new method Value.referenced_value to
7769 gdb.Value which can dereference pointer as well as reference
7770 values.
7771 * NEWS: Add entry under 'Python scripting' about the new method
7772 Value.referenced_value on gdb.Value objects.
7773 * python/py-value.c (valpy_referenced_value): New function
7774 defining a new method on gdb.Value objects which can dereference
7775 pointer and reference values.
7776
7777 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7778
7779 * MAINTAINERS (Write After Approval): Add myself to the list.
7780
7781 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7782
7783 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7784 in addition to "main".
7785
7786 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7787
7788 * expression.h (op_name): Add declaration.
7789 * expprint.c (op_name): Remove declaration. Make non-static.
7790 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7791
7792 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7793
7794 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7795 of struct siginfo.
7796 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7797 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7798 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7799 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7800 (linux_nat_get_siginfo): Likewise.
7801 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7802 (linux_nat_get_siginfo): Likewise.
7803 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7804 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7805 * procfs.c (gdb_siginfo_t): Likewise.
7806
7807 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7808
7809 * .gitignore: Ignore more files.
7810
7811 2012-03-20 Pedro Alves <palves@redhat.com>
7812
7813 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7814 returns.
7815
7816 2012-03-20 Yao Qi <yao@codesourcery.com>
7817
7818 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7819 comment.
7820
7821 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7822
7823 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7824 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7825 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7826 sect_offset.
7827 * dwarf2expr.h (cu_offset, sect_offset): New types.
7828 (struct dwarf_expr_context_funcs) <dwarf_call>
7829 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7830 sect_offset.
7831 (struct dwarf_expr_context) <len>: Improve the comment.
7832 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7833 cu_offset and sect_offset.
7834 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7835 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7836 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7837 * dwarf2loc.h: Include dwarf2expr.h.
7838 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7839 and sect_offset.
7840 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7841 Improve the comment.
7842 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7843 (struct signatured_type, struct line_header, struct partial_die_info)
7844 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7845 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7846 (get_die_type_at_offset, create_cus_from_index)
7847 (create_signatured_type_table_from_index, dw2_get_file_names)
7848 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7849 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7850 (create_debug_types_hash_table, process_psymtab_comp_unit)
7851 (load_partial_comp_unit, create_all_comp_units)
7852 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7853 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7854 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7855 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7856 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7857 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7858 (find_partial_die, read_attribute_value, lookup_die_type)
7859 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7860 (is_ref_attr): New function comment.
7861 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7862 Use cu_offset and sect_offset.
7863 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7864 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7865 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7866 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7867 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7868 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7869 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7870 sect_offset.
7871
7872 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 Code cleanup.
7875 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7876 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7877 with xfree.
7878 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7879
7880 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7881
7882 * NEWS: Describe new options --init-command=FILE, -ix and
7883 --init-eval-command=COMMAND, -iex.
7884 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7885 CMDARG_INIT_COMMAND.
7886 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7887 "init-command", "init-eval-command", "ix" and "iex" to the variable
7888 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7889 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7890 (print_gdb_help): Describe --init-command=FILE, -ix and
7891 --init-eval-command=COMMAND, -iex.
7892
7893 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 Code cleanup.
7896 * main.c (struct cmdarg): Move it here from main. Add more comments.
7897 (cmdarg_s, VEC (cmdarg_s)): New.
7898 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7899 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7900 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7901 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7902 of CMDARG.
7903
7904 2012-03-19 Tom Tromey <tromey@redhat.com>
7905
7906 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7907
7908 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 PR symtab/13777
7911 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7912 GCC >=4.5.
7913
7914 2012-03-16 Chris January <chris.january@allinea.com>
7915
7916 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7917 of clear.
7918
7919 2012-03-16 Chris January <chris.january@allinea.com>
7920
7921 * source.c (add_path): Use memmove instead of strcpy because the
7922 strings overlap.
7923
7924 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7925
7926 * value.h (set_value_parent): Add declaration.
7927 * value.c (set_value_parent): New function.
7928 (value_address): If VALUE->PARENT is not NULL, then use it as
7929 the base address instead of VALUE->LOCATION.address.
7930 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7931 the same as OBJ's address. Adjust V's offset accordingly.
7932 Set V's parent.
7933
7934 2012-03-16 Gary Benson <gbenson@redhat.com>
7935
7936 PR breakpoints/10738
7937 * dwarf2read.c (use_deprecated_index_sections): New global.
7938 (struct partial_die_info): New member may_be_inlined.
7939 (read_partial_die): Set may_be_inlined where appropriate.
7940 (add_partial_subprogram): Add partial symbols for partial
7941 DIEs that may be inlined.
7942 (new_symbol_full): Add inlined subroutines to the current
7943 scope.
7944 (write_psymtabs_to_index): Bump version number.
7945 (dwarf2_read_index): Read only version 6 indices unless
7946 use_deprecated_index_sections is set.
7947 * linespec.c (symbol_and_data_callback): New structure.
7948 (iterate_inline_only): New function.
7949 (iterate_over_all_matching_symtabs): New argument
7950 "include_inline". If nonzero, also call the callback for
7951 symbols representing inlined subroutines.
7952 (lookup_prefix_sym): Pass extra argument to the above.
7953 (find_function_symbols): Likewise.
7954 (add_matching_symbols_to_info): Likewise.
7955 * NEWS: Mention that GDB can now set breakpoints on inlined
7956 functions.
7957
7958 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7959
7960 * p-typeprint.c (pascal_type_print_method_args):
7961 Fix display of parameter of methods.
7962
7963 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7964
7965 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7966 Add missing prototype.
7967
7968 2012-03-16 Yao Qi <yao@codesourcery.com>
7969 Jan Kratochvil <jan.kratochvil@redhat.com>
7970
7971 Fix false compilation warning.
7972 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7973
7974 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7975 Pedro Alves <pedro@codesourcery.com>
7976
7977 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7978 (arm_register_g_packet_guesses): New function.
7979 (arm_gdbarch_init): Don't force a target description with
7980 registers when the executable is detected as M-profile. Instead
7981 set gdbarch->tdep->is_m. Register `g' packet guesses.
7982 (_initialize_arm_tdep): Initialize the new target description.
7983 * features/arm-with-m-fpa-layout.xml: New description.
7984 * features/arm-with-m-fpa-layout.c: New, generated.
7985
7986 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7987
7988 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7989 Update function description.
7990 (insert_bp_location): Do not wipe bl->target_info out.
7991 * mem-break.c: #include "gdb_string.h".
7992 (default_memory_insert_breakpoint): Do not call target_read_memory
7993 with a pointer to the breakpoint's shadow_contents buffer. Use
7994 a local buffer instead.
7995 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7996
7997 2012-03-15 Tom Tromey <tromey@redhat.com>
7998
7999 * NEWS: Mention "info vtbl", not "info vtable".
8000 * cp-support.c (info_vtbl_command): Fix comment.
8001 (_initialize_cp_support): Fix text.
8002
8003 2012-03-15 Tom Tromey <tromey@redhat.com>
8004
8005 * cp-valprint.c (cp_print_value_fields): Use
8006 print_function_pointer_address for vtable slot.
8007
8008 2012-03-15 Tom Tromey <tromey@redhat.com>
8009
8010 * gnu-v3-abi.c (struct value_and_voffset): New.
8011 (hash_value_and_voffset, eq_value_and_voffset)
8012 (compare_value_and_voffset, compute_vtable_size)
8013 (print_one_vtable, gnuv3_print_vtable): New functions.
8014 (init_gnuv3_ops): Initialize 'print_vtable' field.
8015 * cp-support.c (info_vtbl_command): New function.
8016 (_initialize_cp_support): Add "info vtbl".
8017 * cp-abi.h (cplus_print_vtable): Declare.
8018 (struct cp_abi_ops) <print_vtable>: New field.
8019 * cp-abi.c (cplus_print_vtable): New function.
8020 * NEWS: Update.
8021
8022 2012-03-15 Tom Tromey <tromey@redhat.com>
8023
8024 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8025 iterate_over_symbols.
8026
8027 2012-03-14 Doug Evans <dje@google.com>
8028
8029 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8030 DW_OP_GNU_parameter_ref.
8031
8032 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8033
8034 Fix double prompt of 'interpreter-exec mi'.
8035 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8036 (mi_interpreter_resume): use it.
8037 (mi_execute_command_input_handler): New function.
8038 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8039 mi_execute_command_input_handler.
8040
8041 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8042
8043 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8044 prototype.
8045 (darwin_debug_port_info): Make static.
8046 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8047 * machoread.c (_initialize_machoread): Add prototype.
8048 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8049 (i386_darwin_set_control, i386_darwin_get_control)
8050 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8051 i386_darwin_get_status, i386_darwin_get_control):
8052 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8053
8054 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8055
8056 * ax-gdb.c (gen_usual_unary): Remove special handling of
8057 enum and bool types.
8058
8059 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8060
8061 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8062
8063 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8064
8065 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8066
8067 2012-03-13 Chris January <chris.january@allinea.com>
8068
8069 * aix-thread.c (fill_sprs): Store the floating point registers
8070 at the correct offsets into vals.
8071
8072 2012-03-13 Doug Evans <dje@google.com>
8073
8074 * NEWS: Mention symbol-reloading has been deleted.
8075 * symfile.c (symbol_reloading): Delete.
8076 (show_symbol_reloading): Delete.
8077 (_initialize_symfile): Delete set/show symbol-reloading.
8078
8079 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8080 read_in_chain until we have successfully read it in.
8081 (load_full_comp_unit): Ditto.
8082 (read_signatured_type): Add comment.
8083
8084 2012-03-13 Chris January <chris.january@allinea.com>
8085
8086 * stabsread.c (fix_common_block): Change type of valu argument
8087 to CORE_ADDR.
8088
8089 2012-03-13 Chris January <chris.january@allinea.com>
8090
8091 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8092 instruction.
8093
8094 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8095
8096 * common/linux-procfs.c (linux_proc_get_int): New, from
8097 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8098 field.
8099 (linux_proc_get_tgid): Only call linux_proc_get_int.
8100 (linux_proc_get_tracerpid): New.
8101 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8102 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8103 linux_proc_pid_has_state.
8104 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8105 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8106 (linux_ptrace_attach_warnings): New.
8107 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8108 New declaration.
8109 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8110 (linux_nat_attach): New variables ex, buffer, message and message_s.
8111 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8112
8113 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * Makefile.in (linux-ptrace.o): New.
8116 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8117 from linux-nat.c.
8118 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8119 * common/linux-ptrace.c: New file.
8120 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8121 * config/arm/linux.mh: Likewise.
8122 * config/i386/linux.mh: Likewise.
8123 * config/i386/linux64.mh: Likewise.
8124 * config/ia64/linux.mh: Likewise.
8125 * config/m32r/linux.mh: Likewise.
8126 * config/m68k/linux.mh: Likewise.
8127 * config/mips/linux.mh: Likewise.
8128 * config/pa/linux.mh: Likewise.
8129 * config/powerpc/linux.mh: Likewise.
8130 * config/powerpc/ppc64-linux.mh: Likewise.
8131 * config/powerpc/spu-linux.mh: Likewise.
8132 * config/s390/s390.mh: Likewise.
8133 * config/sparc/linux.mh: Likewise.
8134 * config/sparc/linux64.mh: Likewise.
8135 * config/xtensa/linux.mh: Likewise.
8136 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8137 common/linux-procfs.c.
8138 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8139
8140 2012-03-13 Hui Zhu <teawater@gmail.com>
8141 Pedro Alves <palves@redhat.com>
8142
8143 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8144 CREATE_BREAKPOINT_FLAGS_INSERTED.
8145 (create_breakpoint_sal, create_breakpoints_sal)
8146 (base_breakpoint_create_breakpoints_sal)
8147 (tracepoint_create_breakpoints_sal)
8148 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8149 down.
8150 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8151 (ftrace_command, strace_command): Adjust.
8152 (create_tracepoint_from_upload): Pass
8153 CREATE_BREAKPOINT_FLAGS_INSERTED.
8154 * breakpoint.h (enum breakpoint_create_flags): New.
8155 (create_breakpoint): New flags parameter.
8156 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8157 * python/py-breakpoint.c (bppy_init): Adjust.
8158 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8159 * spu-tdep.c (spu_catch_start): Adjust.
8160
8161 2012-03-13 Pedro Alves <palves@redhat.com>
8162 Hui Zhu <teawater@gmail.com>
8163 Yao Qi <yao@codesourcery.com>
8164
8165 * remote.c (struct remote_state): New field `starting_up'.
8166 (remote_start_remote): Set and clear it.
8167 (remote_can_download_tracepoint): If starting up, return false.
8168
8169 2012-03-13 Yao Qi <yao@codesourcery.com>
8170
8171 * inferior.h (struct inferior): Remove fields any_syscall_count,
8172 syscalls_counts and total_syscalls_count. Move them to new
8173 struct catch_syscall_inferior_data in breakpoint.c.
8174 * breakpoint.c: Call DEF_VEC_I(int).
8175 (struct catch_syscall_inferior_data): New.
8176 (get_catch_syscall_inferior_data): New.
8177 (catch_syscall_inferior_data_cleanup): New.
8178 (insert_catch_syscall): Update to access data in
8179 struct catch_syscall_inferior_data.
8180 (insert_catch_syscall): Likewise.
8181 (remove_catch_syscall): Likewise.
8182 (remove_catch_syscall): Likewise.
8183 (is_syscall_catchpoint_enabled): Likewise.
8184 (add_catch_command): Likewise.
8185 (_initialize_breakpoint): Register cleanup.
8186 * breakpoint.h: Removed DEF_VEC_I(int).
8187 * dwarf2loc.c: Call DEF_VEC_I(int).
8188 * mi/mi-main.c: Likewise.
8189
8190 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8191
8192 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8193
8194 2012-03-12 Chris January <chris.january@allinea.com>
8195
8196 * aix-thread.c (_initialize_aix_thread): Add prototype.
8197 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8198 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8199
8200 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8201
8202 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8203 include of "amd64-nat.h".
8204
8205 2012-03-12 Tom Tromey <tromey@redhat.com>
8206
8207 * buildsym.c (record_pending_block): Now static.
8208 * buildsym.h: (record_pending_block): Remove.
8209
8210 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8211
8212 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8213
8214 2012-03-09 Tom Tromey <tromey@redhat.com>
8215
8216 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8217 producer_is_gxx_lt_4_6>: New fields.
8218 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8219
8220 2012-03-09 Tom Tromey <tromey@redhat.com>
8221
8222 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8223
8224 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8225
8226 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8227 prototype.
8228
8229 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8230
8231 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8232
8233 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8234
8235 Fix -Wmissing-prototypes build.
8236 * arm-linux-nat.c (get_thread_id): Make it static.
8237 * xtensa-linux-nat.c (get_thread_id): Likewise.
8238
8239 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8240
8241 * server.c (process_point_options): If a conditional expression
8242 is found, only print a message if remote_debug is nonzero.
8243
8244 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8245
8246 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8247 of internal error for unknown/unsupported types.
8248
8249 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8250
8251 Fix CU relative vs. absolute DIE offsets.
8252 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8253 offset to offset_in_cu.
8254 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8255 TYPE_OFFSET.
8256 (dwarf2_fetch_die_location_block): Rename parameter offset to
8257 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8258
8259 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8260
8261 * libunwind-frame.c: Rename to ...
8262 * ia64-libunwind-tdep.c: ... here.
8263 * libunwind-frame.h: Rename to ...
8264 * ia64-libunwind-tdep.h: ... here.
8265 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8266 ia64-libunwind-tdep.h.
8267 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8268 * README (--with-libunwind): Rename to ...
8269 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8270 * config.in: Regenerate.
8271 * configure: Regenerate.
8272 * configure.ac: New option --with-libunwind-ia64, make the
8273 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8274 Remove AC_DEFINE for HAVE_LIBUNWIND.
8275 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8276 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8277 Rename libunwind-frame in the general comment.
8278 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8279 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8280 Move forward declarations inside #ifndef. Rename libunwind-frame in
8281 the general comment.
8282 * ia64-tdep.c: Rename libunwind-frame.h #include to
8283 ia64-libunwind-tdep.h.
8284 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8285 (ia64_libunwind_descr): Rename libunwind-frame to
8286 ia64-libunwind-tdep in these function comments.
8287 * ia64-tdep.h: Rename libunwind-frame.h #include to
8288 ia64-libunwind-tdep.h.
8289 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8290 ia64-libunwind-tdep in that data comment.
8291
8292 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8293
8294 * libunwind-frame.h (struct frame_unwind): New declaration.
8295
8296 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8297
8298 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8299 "set breakpoint condition-evaluation" command.
8300
8301 2012-03-08 Tristan Gingold <gingold@adacore.com>
8302
8303 * sparc-stub.c: Move to stubs/
8304 * sh-stub.c: Likewise.
8305 * m68k-stub.c: Likewise.
8306 * m32r-stub.c: Likewise.
8307 * i386-stub.c: Likewise.
8308
8309 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8310
8311 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8312 linux_get_siginfo_type.
8313
8314 * m68klinux-nat.c: Include "gdb_proc_service.h".
8315 (PTRACE_GET_THREAD_AREA): Define.
8316 (ps_get_thread_area): New function.
8317
8318 2012-03-08 Yao Qi <yao@codesourcery.com>
8319
8320 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8321 `xsnprintf'.
8322 (remote_query_attached): Likewise.
8323 (remote_static_tracepoint_marker_at): Likewise.
8324 (remote_set_permissions): Likewise.
8325 (remote_detach_1, extended_remote_attach_1): Likewise.
8326 (send_g_packet, remote_vkill): Likewise.
8327 (extended_remote_disable_randomization): Likewise.
8328 (remote_add_target_side_condition): Likewise.
8329 (remote_insert_breakpoint): Likewise.
8330 (remote_remove_breakpoint): Likewise.
8331 (remote_insert_watchpoint): Likewise.
8332 (remote_remove_watchpoint): Likewise.
8333 (remote_insert_hw_breakpoint): Likewise.
8334 (remote_insert_hw_breakpoint): Likewise.
8335 (remote_remove_hw_breakpoint): Likewise.
8336 (remote_download_command_source): Likewise.
8337 (remote_download_tracepoint): Likewise.
8338 (remote_download_trace_state_variable): Likewise.
8339 (remote_disable_tracepoint): Likewise.
8340 (remote_trace_set_readonly_regions): Likewise.
8341 (remote_get_tracepoint_status): Likewise.
8342 (remote_trace_find): Likewise.
8343 (remote_get_trace_state_variable_value): Likewise.
8344 (remote_set_disconnected_tracing): Likewise.
8345 (remote_set_circular_trace_buffer): Likewise.
8346 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8347 (remote_use_agent): Likewise.
8348 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8349 Update callers.
8350
8351 2012-03-07 Pedro Alves <palves@redhat.com>
8352
8353 * NEWS: Mention QProgramSignals.
8354 * inferior.h (update_signals_program_target): Declare.
8355 * infrun.c: (update_signals_program_target): New.
8356 (handle_command): Update the target of the new program signals
8357 array changes.
8358 * remote.c (PACKET_QProgramSignals): New enum.
8359 (last_program_signals_packet): New global.
8360 (remote_program_signals): New.
8361 (remote_start_remote): Update the target with the program signals
8362 list.
8363 (remote_protocol_features): Add entry for QPassSignals.
8364 (remote_open_1): Free anc clear last_program_signals_packet.
8365 (init_remote_ops): Install remote_program_signals.
8366 * target.c (update_current_target): Adjust.
8367 (target_program_signals): New.
8368 * target.h (struct target_ops) <to_program_signals>: New field.
8369 (target_program_signals): Declare.
8370
8371 2012-03-07 Pedro Alves <palves@redhat.com>
8372
8373 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8374 extensions.
8375
8376 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8377
8378 * m68klinux-nat.c (getregs_supplies): Make static.
8379 (getfpregs_supplies): Likewise.
8380 (have_ptrace_getregs): Likewise.
8381
8382 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8383
8384 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8385 in call to get_die_type_at_offset.
8386
8387 2012-03-06 Stan Shebs <stan@codesourcery.com>
8388
8389 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8390 * mi/mi-cmd-disas.c: Ditto.
8391 * mi/mi-cmd-env.c: Ditto.
8392 * mi/mi-cmd-file.c: Ditto.
8393 * mi/mi-cmd-stack.c: Ditto.
8394 * mi/mi-cmd-target.c: Ditto.
8395 * mi/mi-cmd-var.c: Ditto.
8396 * mi/mi-cmds.c: Ditto.
8397 * mi/mi-cmds.h: Ditto.
8398 * mi/mi-console.c: Ditto.
8399 * mi/mi-getopt.c: Ditto.
8400 * mi/mi-getopt.h: Ditto.
8401 * mi/mi-interp.c: Ditto.
8402 * mi/mi-main.c: Ditto.
8403 * mi/mi-out.c: Ditto.
8404 * mi/mi-parse.c: Ditto.
8405 * mi/mi-parse.h: Ditto.
8406 * mi/mi-symbol-cmds.c: Ditto.
8407
8408 * mi/mi-getopt.h: Move mi_opt struct up.
8409 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8410 return.
8411 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8412
8413 2012-03-06 Tom Tromey <tromey@redhat.com>
8414
8415 * proc-service.c (ps_pglobal_lookup): Set the current program
8416 space.
8417
8418 2012-03-06 Pedro Alves <palves@redhat.com>
8419
8420 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8421
8422 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8423
8424 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8425
8426 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8427
8428 Code cleanup.
8429 * common/linux-osdata.c (linux_common_core_of_thread): New function
8430 comment.
8431 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8432 call by linux_common_core_of_thread.
8433 (linux_nat_core_of_thread_1): Remove.
8434 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8435 * linux-thread-db.c: Include linux-osdata.h.
8436 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8437 linux_common_core_of_thread.
8438
8439 2012-03-05 Tom Tromey <tromey@redhat.com>
8440
8441 * value.c (value_primitive_field): Don't fetch contents for
8442 non-virtual bases.
8443
8444 2012-03-05 Tom Tromey <tromey@redhat.com>
8445
8446 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8447
8448 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8449
8450 * s390-nat.c: Include "gregset.h".
8451
8452 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8453
8454 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8455 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8456 (libunwind_load): New variable so_error, use it for dlerror. Try to
8457 load also LIBUNWIND_SO_7.
8458
8459 2012-03-05 Pedro Alves <palves@redhat.com>
8460
8461 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8462 is not NULL, and remove resulting dead code.
8463
8464 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8465
8466 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8467 prologue to sh_analyze_prologue.
8468 (sh_analyze_prologue): Make better use of such an upper limit, and
8469 generally be more cautious about accessing memory.
8470
8471 2012-03-05 Tom Tromey <tromey@redhat.com>
8472
8473 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8474 _initialize_ia64_hpux_tdep.
8475
8476 2012-03-05 Pedro Alves <palves@redhat.com>
8477
8478 PR gdb/13766
8479
8480 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8481 the register state is clear, supply explicit zero, instead of
8482 marking the register unavailable.
8483
8484 2012-03-05 Tristan Gingold <gingold@adacore.com>
8485
8486 * NEWS: Mention OpenVMS ia64 new target.
8487
8488 2012-03-05 Tristan Gingold <gingold@adacore.com>
8489
8490 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8491 (ia64_unw_accessors, ia64_unw_rse_accessors)
8492 (ia64_libunwind_descr): Declare.
8493 * ia64-vms-tdep.c: New file.
8494 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8495 (ia64_libunwind_descr): Make them public.
8496 * configure.tgt: Add ia64-*-*vms*.
8497 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8498 (ALLDEPFILES): Add ia64-vms-tdep.c
8499
8500 2012-03-05 Tristan Gingold <gingold@adacore.com>
8501
8502 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8503 * remote.c (PACKET_qXfer_uib): New enum value.
8504 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8505 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8506 (_initialize_remote): Call add_packet_config_cmd for
8507 xfer:uib packet.
8508
8509 2012-03-05 Tristan Gingold <gingold@adacore.com>
8510
8511 * osabi.c (gdb_osabi_names): Add OpenVMS.
8512 (generic_elf_osabi_sniffer): Likewise.
8513 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8514
8515 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8516
8517 Removed unused code.
8518 * libunwind-frame.c (libunwind_frame_unwind)
8519 (libunwind_frame_base_address): Remove.
8520 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8521
8522 2012-03-04 Yao Qi <yao@codesourcery.com>
8523
8524 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8525 remove trailing new line.
8526 (agent_run_command, agent_run_command): Add _ markup.
8527 (agent_capability_check): Likewise.
8528
8529 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 * breakpoint.c (set_condition_evaluation_mode): Set
8532 CONDITION_EVALUATION_MODE unconditionally.
8533
8534 2012-03-03 Yao Qi <yao@codesourcery.com>
8535
8536 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8537 * common/agent.h: Update declaration.
8538 * inf-child.c (inf_child_use_agent): New.
8539 (inf_child_can_use_agent): New.
8540 (inf_child_target): Initialize fields `to_use_agent'
8541 and `to_can_use_agent'.
8542 * agent.c (agent_new_objfile): New.
8543 (_initialize_agent): Add agent_new_objfile to new_objfile
8544 observer.
8545
8546 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8547 New.
8548 (linux_target_install_ops): Initialize field
8549 `to_static_tracepoint_markers_by_strid'.
8550 * remote.c (free_current_marker): Move it to ...
8551 * tracepoint.c (free_current_marker): ... here. New.
8552 (cleanup_target_stop): New.
8553 * tracepoint.h: Declare free_current_marker.
8554 * NEWS: Add one entry about `info static-tracepoint-marker'.
8555
8556 2012-03-03 Yao Qi <yao@codesourcery.com>
8557
8558 * common/agent.c (agent_loaded_p): New.
8559 (agent_look_up_symbols): New global.
8560 * common/agent.h: Declare agent_loaded_p.
8561
8562 2012-03-03 Yao Qi <yao@codesourcery.com>
8563
8564 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8565 (agent_capability_check, agent_capability_invalidate): New.
8566 (symbol_list): New array element.
8567 * common/agent.h (enum agent_capa): New.
8568 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8569
8570 2012-03-03 Yao Qi <yao@codesourcery.com>
8571
8572 * target.h (struct target_ops) <to_use_agent>: New field.
8573 (struct target_ops) <to_can_use_agent>: New field.
8574 (target_use_agent, target_can_use_agent): New macro.
8575 * target.c (update_current_target): Update.
8576 * remote.c: New enum `PACKET_QAgent'.
8577 (remote_protocol_features): Add a new element.
8578 (remote_use_agent, remote_can_use_agent): New.
8579 (init_remote_ops): Initialize field `can_use_agent' with
8580 remote_can_use_agent. Intiailize field `use_agent' with
8581 remote_use_agent.
8582 * common/agent.c (use_agent): New global.
8583 * common/agent.h: Declare it.
8584 * tracepoint.c (info_static_tracepoint_markers_command): Add
8585 comment.
8586 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8587 (COMMON_OBS): Add common/agent.o and agent.o
8588 (common-agent.o): New rule.
8589 * agent.c: New.
8590
8591 2012-03-03 Yao Qi <yao@codesourcery.com>
8592
8593 * common/agent.c: New.
8594 * common/agent.h: New.
8595 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8596 AC_CHECK_HEADERS.
8597 * configure, configh.in: Regenerated.
8598
8599 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8600
8601 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8602 unless it exists for this architecture.
8603
8604 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8605
8606 * language.h (struct language_defn): New "method" la_read_var_value.
8607 * findvar.c: #include "language.h".
8608 (default_read_var_value): Renames read_var_value. Rewrite
8609 function description.
8610 (read_var_value): New function.
8611 * value.h (default_read_var_value): Add prototype.
8612 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8613 New functions.
8614 (ada_language_defn): Add entry for la_read_var_value.
8615 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8616 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8617 language_defn structures to add entry for new la_read_var_value
8618 field.
8619
8620 2012-03-02 Tom Tromey <tromey@redhat.com>
8621 Pedro Alves <palves@redhat.com>
8622
8623 PR breakpoints/13776:
8624 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8625 breakpoints.
8626 (delete_longjmp_breakpoint_at_next_stop): New.
8627 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8628 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8629 before deleting the inferior. Add comments.
8630 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8631 breakpoints immediately, but only on next stop. Move that code
8632 next to where we mark other breakpoints for deletion.
8633
8634 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8635
8636 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8637 marker.
8638 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8639 violation.
8640
8641 2012-03-02 Pedro Alves <palves@redhat.com>
8642
8643 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8644
8645 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8646
8647 Fix -Wmissing-prototypes build.
8648 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8649 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8650 (gdbsim_has_memory): Likewise.
8651
8652 2012-03-02 Yao Qi <yao@codesourcery.com>
8653
8654 Fix -Wmissing-prototypes build.
8655 * charset.c (phony_iconv_open): Make static.
8656 (phony_iconv_close, phony_iconv): Likewise.
8657 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8658 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8659 prototype.
8660 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8661 * ser-mingw.c (create_select_thread): Make static.
8662 * windows-termcap.c (tgetent): New prototype.
8663 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8664
8665 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8666
8667 Fix -Wmissing-prototypes build.
8668 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8669 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8670 (_initialize_loadable): New prototypes.
8671
8672 2012-03-02 Doug Evans <dje@google.com>
8673
8674 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8675 abbrev table, read_comp_unit will do it.
8676
8677 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8678
8679 Fix -Wmissing-prototypes build.
8680 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8681 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8682 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8683 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8684 (_initialize_arm_symbian_tdep): New prototype.
8685 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8686 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8687 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8688 static.
8689 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8690 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8691 prototype.
8692 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8693 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8694 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8695 static.
8696 * moxie-tdep.c (moxie_process_record): Likewise.
8697 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8698 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8699 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8700 (_initialize_rl78_tdep): New prototype.
8701 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8702 (_initialize_rx_tdep): New prototype.
8703 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8704 (_initialize_darwin_solib): New prototype.
8705 * solib-spu.c: Include solib-spu.h.
8706 (_initialize_spu_solib): New prototype.
8707 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8708 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8709 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8710 (tic6x_software_single_step): Make it static.
8711 (_initialize_tic6x_tdep): New prototype.
8712
8713 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8714
8715 Fix -Wmissing-prototypes build.
8716 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8717 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8718
8719 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8720
8721 Fix -Wmissing-prototypes build.
8722 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8723 (frv_have_stopped_data_address): Remove.
8724
8725 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8726
8727 Fix -Wmissing-prototypes build.
8728 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8729 * sh-tdep.c: Include sh64-tdep.h.
8730 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8731 * sh64-tdep.c: Include sh64-tdep.h.
8732 * sh64-tdep.h: New file.
8733
8734 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8735
8736 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8737
8738 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8739
8740 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8741 sp_regnum once the gdbarch_init_osabi hook has been called.
8742
8743 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8744
8745 * mips-tdep.c (mips32_bc1_pc): New function.
8746 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8747 BPOSGE32 and BPOSGE64 instructions.
8748 (deal_with_atomic_sequence): Likewise.
8749 (mips32_instruction_has_delay_slot): Likewise.
8750
8751 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8752 Chris Dearman <chris@mips.com>
8753 Maciej W. Rozycki <macro@codesourcery.com>
8754 Joseph Myers <joseph@codesourcery.com>
8755
8756 * features/mips-dsp.xml: New file.
8757 * features/mips64-dsp.xml: New file.
8758 * features/mips-dsp-linux.xml: New file.
8759 * features/mips64-dsp-linux.xml: New file.
8760 * features/Makefile (WHICH): Add mips-dsp-linux and
8761 mips64-dsp-linux.
8762 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8763 * features/mips-dsp-linux.c: New file.
8764 * features/mips64-dsp-linux.c: New file.
8765 * regformats/mips-dsp-linux.dat: New file.
8766 * regformats/mips64-dsp-linux.dat: New file.
8767 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8768 registers.
8769 (mips64_linux_register_addr): Likewise.
8770 (mips64_linux_regsets_fetch_registers): Likewise.
8771 (mips64_linux_regsets_store_registers): Likewise.
8772 (mips64_linux_fetch_registers): Update call to
8773 mips64_linux_regsets_fetch_registers.
8774 (mips64_linux_store_registers): Update call to
8775 mips64_linux_regsets_store_registers.
8776 (mips_linux_read_description): Probe for DSP registers.
8777 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8778 and initialize_tdesc_mips64_dsp_linux.
8779 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8780 Remove padding of no longer used embedded register slots.
8781 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8782 (MIPS_RESTART_REGNUM): Redefine enum value.
8783 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8784 strings.
8785 (mips_tx39_reg_names): Likewise.
8786 (mips_linux_reg_names): New array of register names for Linux
8787 targets.
8788 (mips_register_name): Check for a null pointer in
8789 mips_processor_reg_names and return an empty string.
8790 (mips_register_type): Exclude embedded registers for the IRIX
8791 and Linux ABIs.
8792 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8793 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8794 DSP registers.
8795 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8796 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8797 (mips_gdbarch_init): Likewise. Initialize internal register
8798 indices for the Linux ABI. Use dynamic numbers to refer to
8799 registers, as applicable, while parsing the target description.
8800 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8801
8802 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8803
8804 * frame.h (read_frame_register_unsigned): Fix typo in function
8805 description.
8806
8807 2012-03-01 Pedro Alves <palves@redhat.com>
8808
8809 * jit-reader.in [!__cplusplus]
8810 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8811
8812 2012-03-01 Pedro Alves <palves@redhat.com>
8813
8814 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8815 * configure: Regenerate.
8816
8817 2012-03-01 Pedro Alves <palves@redhat.com>
8818
8819 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8820 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8821 (ftrace_command, strace_command): Make static.
8822 * d-lang.c (_initialize_d_language): Declare.
8823 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8824 * dwarf2loc.c (_initialize_dwarf2loc):
8825 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8826 * exec.c (exec_get_section_table): Make static.
8827 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8828 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8829 * inferior.c (remove_inferior_command, add_inferior_command)
8830 (clone_inferior_command): Make static.
8831 * linux-nat.c (linux_nat_thread_address_space)
8832 (linux_nat_core_of_thread): Make static.
8833 * linux-tdep.c (_initialize_linux_tdep): Declare.
8834 * objc-lang.c (_initialize_objc_lang): Declare.
8835 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8836 Make static.
8837 (_initialize_opencl_language): Declare.
8838 * record.c (_initialize_record): Declare.
8839 * remote.c (demand_private_info, remote_get_tib_address)
8840 (remote_supports_cond_tracepoints)
8841 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8842 Make static.
8843 * skip.c (_initialize_step_skip): Declare.
8844 * symtab.c (skip_prologue_using_lineinfo): Make static.
8845 * tracepoint.c (delete_trace_state_variable)
8846 (trace_variable_command, delete_trace_variable_command)
8847 (get_uploaded_tsv, find_matching_tracepoint_location)
8848 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8849 Make static.
8850 * value.c (pack_unsigned_long): Make static.
8851 * varobj.c (varobj_ensure_python_env): Make static.
8852 * windows-tdep.c (_initialize_windows_tdep): Declare.
8853 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8854
8855 2012-03-01 Pedro Alves <palves@redhat.com>
8856
8857 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8858 gdbarch parameter.
8859 (linux_init_abi): Install it as has_shared_address_space gdbarch
8860 callback.
8861
8862 2012-03-01 Pedro Alves <palves@redhat.com>
8863
8864 * observer.c (observer_test_first_notification_function)
8865 (observer_test_second_notification_function)
8866 (observer_test_third_notification_function): Add declarations.
8867
8868 2012-03-01 Pedro Alves <palves@redhat.com>
8869
8870 * common/signals.c (default_target_signal_to_host)
8871 (default_target_signal_from_host): Move ...
8872 * arch-utils.c: ... here.
8873 * arch-utils.h (default_target_signal_to_host)
8874 (default_target_signal_from_host): Declare.
8875
8876 * common/signals.c (target_signal_from_command): Move ...
8877 * infrun.c: ... here.
8878 * inferior.h (target_signal_from_command): Declare.
8879 * target.h (target_signal_from_command)
8880 (default_target_signal_from_host, default_target_signal_to_host):
8881 Delete declarations.
8882
8883 * common/signals.c (_initialize_signals): Delete.
8884
8885 2012-03-01 Pedro Alves <palves@redhat.com>
8886
8887 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8888 both __cplusplus and !__cplusplus.
8889
8890 2012-03-01 Pedro Alves <palves@redhat.com>
8891
8892 * psymtab.c (find_and_open_source): Delete declaration.
8893 * source.c (find_and_open_source): Move comment ...
8894 * source.h (find_and_open_source): ... to this new declaration.
8895
8896 2012-03-01 Pedro Alves <palves@redhat.com>
8897
8898 * inline-frame.c: Include inline-frame.h.
8899
8900 2012-03-01 Pedro Alves <palves@redhat.com>
8901
8902 * tui/tui-data.c (set_gen_win_origin): Delete.
8903 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8904 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8905
8906 2012-03-01 Pedro Alves <palves@redhat.com>
8907
8908 * remote.c (encode_actions): Delete declaration.
8909 * tracepoint.c (encode_actions): Make extern.
8910 * tracepoint.h (encode_actions): Declare.
8911
8912 2012-03-01 Pedro Alves <palves@redhat.com>
8913
8914 * python/py-breakpoint.c: Include python.h.
8915 * python/py-continueevent.c (create_continue_event_object): Make
8916 static.
8917 * python/py-lazy-string.c (stpy_get_type): Make static.
8918 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8919 Make static.
8920 * python/py-utils.c (unicode_to_target_python_string): Make
8921 static.
8922 * python/py-value.c: Include python.h.
8923
8924 2012-03-01 Pedro Alves <palves@redhat.com>
8925
8926 * inferior.c (delete_threads_of_inferior): Delete.
8927
8928 2012-03-01 Pedro Alves <palves@redhat.com>
8929
8930 Import fallback definitions from glibc.
8931
8932 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8933 ps_prochandle): Forward declare.
8934 (ps_err_e): Use glibc's comments.
8935 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8936 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8937 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8938 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8939 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8940 (struct ps_prochandle): Adjust comment.
8941
8942 2012-03-01 Pedro Alves <palves@redhat.com>
8943
8944 * ada-lang.c (ada_modulus_from_name): Delete.
8945 * ada-lex.l (lexer_init): Make static.
8946
8947 2012-03-01 Pedro Alves <palves@redhat.com>
8948
8949 PR gdb/13767
8950
8951 * frame.c (read_frame_register_unsigned): New.
8952 * frame.h (read_frame_register_unsigned): Declare.
8953 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8954 Handle it.
8955 (print_i387_control_word): New parameter `control_p'. Handle it.
8956 (i387_print_float_info): Handle unavailable float registers.
8957
8958 2012-03-01 Keith Seitz <keiths@redhat.com>
8959
8960 * linespec.c (decode_line_2): Sort the list of methods
8961 alphabetically before presenting the user with a selection
8962 menu.
8963
8964 2012-03-01 Doug Evans <dje@google.com>
8965
8966 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8967 has_namespace_info.
8968 (dwarf2_read_abbrevs): Remove corresponding initialization.
8969
8970 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8971
8972 * NEWS: Mention new python command class gdb.COMMAND_USER.
8973 * cli/cli-cmds.c (show_user): Print error when used on a python
8974 command.
8975 (init_cli_cmds): Update documentation strings for "show user" and
8976 "set/show max-user-call-depth" to clarify that it does not apply to
8977 python commands.
8978 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8979 error check.
8980 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8981 gdb python api.
8982 * top.c (execute_command): Only execute a user-defined command as a
8983 legacy macro if c->user_commands is set.
8984
8985 2012-03-01 Tom Tromey <tromey@redhat.com>
8986
8987 * valprint.h (struct generic_val_print_decorations): New.
8988 (generic_val_print): Declare.
8989 * valprint.c (generic_val_print): New function.
8990 * p-valprint.c (p_decorations): New global.
8991 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8992 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8993 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8994 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8995 * m2-valprint.c (m2_decorations): New global.
8996 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8997 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8998 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8999 TYPE_CODE_ERROR>: Call generic_val_print.
9000 * f-valprint.c (f_decorations): New global.
9001 (f_val_print): Use print_function_pointer_address.
9002 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9003 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9004 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9005 generic_val_print.
9006 * c-valprint.c (c_decorations): New global.
9007 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9008 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9009 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9010 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9011 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9012 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9013 case.
9014
9015 2012-03-01 Tom Tromey <tromey@redhat.com>
9016
9017 * valprint.c (val_print): Update.
9018 * p-valprint (pascal_val_print): Return void.
9019 * p-lang.h (pascal_val_print): Return void.
9020 * m2-valprint.c (m2_val_print): Return void.
9021 * m2-lang.h (m2_val_print): Return void.
9022 * language.h (struct language_defn) <la_val_print>: Return void.
9023 * language.c (unk_lang_val_print): Return void.
9024 * jv-valprint.c (java_val_print): Return void.
9025 * jv-lang.h (java_val_print): Return void.
9026 * f-valprint.c (f_val_print): Return void.
9027 * f-lang.h (f_val_print): Return void.
9028 * d-valprint.c (d_val_print): Return void.
9029 (dynamic_array_type): Update.
9030 * d-lang.h (d_val_print): Return void.
9031 * c-valprint.c (c_val_print): Return void.
9032 * c-lang.h (c_val_print): Return void.
9033 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9034 void.
9035 * ada-lang.h (ada_val_print): Return void.
9036
9037 2012-03-01 Tom Tromey <tromey@redhat.com>
9038
9039 * value.h (val_print): Return void.
9040 * valprint.c (val_print): Return void.
9041
9042 2012-03-01 Tom Tromey <tromey@redhat.com>
9043
9044 * value.h (common_val_print): Return void.
9045 * valprint.c (common_val_print): Return void.
9046
9047 2012-03-01 Tom Tromey <tromey@redhat.com>
9048
9049 * value.h (value_print): Return void.
9050 * valprint.c (value_print): Return void.
9051 * p-valprint.c (pascal_value_print): Return void.
9052 * p-lang.h (pascal_value_print): Return void.
9053 * language.h (struct language_defn) <la_value_print>: Return
9054 void.
9055 * language.c (unk_lang_value_print): Return void.
9056 * jv-valprint.c (java_value_print): Return void.
9057 * jv-lang.h (java_value_print): Return void.
9058 * f-valprint.c (c_value_print): Don't declare.
9059 Include c-lang.h.
9060 * c-valprint.c (c_value_print): Return void.
9061 * c-lang.h (c_value_print): Return void.
9062 * ada-valprint.c (ada_value_print): Return void.
9063 * ada-lang.h (ada_value_print): Return void.
9064
9065 2012-03-01 Tom Tromey <tromey@redhat.com>
9066
9067 * value.c (value_primitive_field): Handle virtual base classes.
9068
9069 2012-03-01 Tom Tromey <tromey@redhat.com>
9070
9071 * gdbtypes.h (struct vbase): Remove.
9072
9073 2012-03-01 Tom Tromey <tromey@redhat.com>
9074
9075 * c-valprint.c (print_function_pointer_address): Move...
9076 * valprint.c: ... here. Make non-static.
9077 * m2-valprint.c (print_function_pointer_address): Remove.
9078 * valprint.h (print_function_pointer_address): Declare.
9079
9080 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9081
9082 * NEWS: Document the fact that one can provide a condition when
9083 creating an Ada exception catchpoint.
9084
9085 2012-03-01 Tom Tromey <tromey@redhat.com>
9086
9087 * valprint.c (val_print_type_code_flags): Fix placement of
9088 trailing brace.
9089
9090 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9091
9092 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9093 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9094 environment variable before calling update-copyright.
9095
9096 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9097
9098 * gnulib/extra/update-copyright: Update to the latest from
9099 gnulib's git repository.
9100 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9101 variable to 2 instead of 1.
9102
9103 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9104
9105 * varobj.c (c_value_of_variable): Remove dead code.
9106
9107 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9108
9109 * ada-lex.p (processId): Do not modify already encoded IDs.
9110 Update function documentation.
9111
9112 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9113
9114 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9115 "name" with "struct symbol *name_sym".
9116 * ada-exp.y (write_var_or_type): Update call to
9117 ada_find_renaming_symbol.
9118 "name" with "struct symbol *name_sym". Adjust Implementation
9119 accordingly. Adjust the function documentation.
9120
9121 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9122
9123 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9124 * ada-lang.c (ada_find_any_type): Add advance declaration.
9125 Make static. Replace ada_find_any_symbol by
9126 ada_find_any_type_symbol.
9127 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9128 Improve function description. Make static.
9129 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9130 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9131
9132 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9133
9134 * ada-lang.c (struct tag_args): Delete.
9135 (ada_get_tsd_type): Function body moved up in source file.
9136 (ada_tag_name_1, ada_tag_name_2): Delete.
9137 (ada_get_tsd_from_tag): New function.
9138 (ada_tag_name_from_tsd): New function.
9139 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9140 to determine the tag name.
9141
9142 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9143
9144 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9145 declaration.
9146 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9147 function.
9148
9149 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9150
9151 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9152
9153 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9154
9155 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9156 full searches.
9157
9158 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9159
9160 * ada-lang.c (constrained_packed_array_type): If there is a
9161 parallel XA type, use it to determine the array index type.
9162
9163 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9164
9165 * ada-valprint.c (ada_val_print_1): If our value is a reference
9166 to an array descriptor, dereference it before converting it
9167 to a simple array.
9168
9169 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9170
9171 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9172 creating fixed value.
9173 (ada_value_ind, ada_coerce_ref, assign_component)
9174 (ada_evaluate_subexp): Remove call to unwrap_value before
9175 call to ada_to_fixed_value.
9176
9177 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9178
9179 * ada-lang.c (to_fixed_array_type): Set result's type name.
9180
9181 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9182
9183 * ada-lang.c (catch_ada_exception_command_split): Add new
9184 argument cond_string. Add support for condition at end of
9185 "catch exception" commands.
9186 (ada_decode_exception_location): Add new argument cond_string.
9187 Update call to catch_ada_exception_command_split.
9188 (create_ada_exception_catchpoint): Add new argument cond_string.
9189 Set the breakpoint condition if needed.
9190 (catch_ada_exception_command): Update call to
9191 ada_decode_exception_location.
9192 (ada_decode_assert_location): Add function documentation.
9193 Add support for condition at end of "catch assert" command.
9194 (catch_assert_command): Update calls to ada_decode_assert_location
9195 and create_ada_exception_catchpoint.
9196
9197 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9198
9199 Fix disp-step-syscall.exp: fork: single step over fork.
9200 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9201 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9202 comment, change parameters gdbarch and ptid to regcache. Remove
9203 parameter regcache, initialize gdbarch from regcache here.
9204 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9205 New functions.
9206 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9207 instead.
9208 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9209 'syscall'. Make the 'int' check more strict.
9210
9211 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9212
9213 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9214 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9215 (i386_linux_intx80_sysenter_syscall_record): ... here.
9216 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9217 Use the renamed function name.
9218
9219 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9220
9221 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9222 * breakpoint.c (until_break_command): Likewise.
9223 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9224 * infcall.c (call_function_by_hand): Likewise.
9225 * infcmd.c (finish_forward): Likewise.
9226 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9227
9228 2012-02-28 Tristan Gingold <gingold@adacore.com>
9229
9230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9231 avoid variable assignments inside condition.
9232
9233 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9234
9235 Fix static analysis issue found by cppcheck.
9236 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9237 uninitialized BUF for size 2.
9238
9239 2012-02-27 Chris Dearman <chris@mips.com>
9240 Nathan Froyd <froydnj@codesourcery.com>
9241 Maciej W. Rozycki <macro@codesourcery.com>
9242
9243 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9244 (mips16_instruction_has_delay_slot): Likewise.
9245 (mips_segment_boundary): Likewise.
9246 (mips_adjust_breakpoint_address): Likewise.
9247 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9248
9249 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9250 Maciej W. Rozycki <macro@codesourcery.com>
9251
9252 * infrun.c (handle_inferior_event): Don't proceed through
9253 shared library trampolines if stepping at the machine
9254 instruction level.
9255
9256 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9257
9258 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9259 too.
9260
9261 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9262
9263 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9264 (sh_stub_unwind_sniffer): New functions.
9265 (sh_stub_unwind): New variable.
9266 (sh_gdbarch_init): Wire everything.
9267
9268 2012-02-27 Pedro Alves <palves@redhat.com>
9269
9270 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9271 (linux_nat_post_attach_wait): Adjust to use
9272 linux_proc_pid_is_stopped.
9273 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9274 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9275 based on pid_is_stopped from both linux-nat.c and
9276 gdbserver/linux-low.c, and renamed.
9277
9278 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9279
9280 * remote.c (remote_watchpoint_addr_within_range): New function.
9281 (init_remote_ops): Use it.
9282
9283 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9284
9285 * target.h (target_watchpoint_addr_within_range): Document macro.
9286
9287 2012-02-24 Pedro Alves <palves@redhat.com>
9288
9289 * stack.c (set_last_displayed_sal): Issue internal_error instead
9290 of warning, and issue it after clearing the last displayed sal.
9291
9292 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9293 Pedro Alves <palves@redhat.com>
9294
9295 * breakpoint.c (until_break_command): Install breakpoints after
9296 all frame manipulations.
9297
9298 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9299
9300 * remote.c (remote_supports_cond_breakpoints): New forward
9301 declaration.
9302 (remote_add_target_side_condition): New function.
9303 (remote_insert_breakpoint): Add target-side breakpoint
9304 conditional if supported.
9305 (remote_insert_hw_breakpoint): Likewise.
9306 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9307 hook.
9308
9309 * target.c (update_current_target): Inherit
9310 to_supports_evaluation_of_breakpoint_conditions.
9311 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9312
9313 * target.h (struct target_ops)
9314 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9315 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9316
9317 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9318 (condition_evaluation_both, condition_evaluation_auto,
9319 condition_evaluation_host, condition_evaluation_target,
9320 condition_evaluation_enums, condition_evaluation_mode_1,
9321 condition_evaluation_mode): New static globals.
9322 (translate_condition_evaluation_mode): New function.
9323 (breakpoint_condition_evaluation_mode): New function.
9324 (gdb_evaluates_breakpoint_condition_p): New function.
9325 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9326 (mark_breakpoint_modified): New function.
9327 (mark_breakpoint_location_modified): New function.
9328 (set_condition_evaluation_mode): New function.
9329 (show_condition_evaluation_mode): New function.
9330 (bp_location_compare_addrs): New function.
9331 (get_first_location_gte_addr): New helper function.
9332 (set_breakpoint_condition): Free condition bytecode if locations
9333 has become unconditional. Call mark_breakpoint_modified (...).
9334 (condition_command): Call update_global_location_list (1) for
9335 breakpoints.
9336 (breakpoint_xfer_memory): Use is_breakpoint (...).
9337 (is_breakpoint): New function.
9338 (parse_cond_to_aexpr): New function.
9339 (build_target_condition_list): New function.
9340 (insert_bp_location): Handle target-side conditional
9341 breakpoints and call build_target_condition_list (...).
9342 (update_inserted_breakpoint_locations): New function.
9343 (insert_breakpoint_locations): Handle target-side conditional
9344 breakpoints.
9345 (bpstat_check_breakpoint_conditions): Add comment.
9346 (bp_condition_evaluator): New function.
9347 (bp_location_condition_evaluator): New function.
9348 (print_breakpoint_location): Print information on where the condition
9349 will be evaluated.
9350 (print_one_breakpoint_location): Likewise.
9351 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9352 breakpoint location.
9353 (force_breakpoint_reinsertion): New functions.
9354 (update_global_location_list): Handle target-side breakpoint
9355 conditions.
9356 Reinsert locations that are already inserted if conditions have
9357 changed.
9358 (bp_location_dtor): Free agent expression bytecode.
9359 (disable_breakpoint): Call mark_breakpoint_modified (...).
9360 Call update_global_location_list (...) with parameter 1 for breakpoints.
9361 (disable_command): Call mark_breakpoint_location_modified (...).
9362 Call update_global_location_list (...) with parameter 1 for breakpoints.
9363 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9364 (enable_command): mark_breakpoint_location_modified (...).
9365 (_initialize_breakpoint): Update documentation and add
9366 condition-evaluation breakpoint subcommand.
9367
9368 * breakpoint.h: Include ax.h.
9369 (condition_list): New data structure.
9370 (condition_status): New enum.
9371 (bp_target_info) <cond_list>: New field.
9372 (bp_location) <condition_changed, cond_bytecode>: New fields.
9373 (is_breakpoint): New prototype.
9374
9375 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9376
9377 * remote.c (remote_state) <cond_breakpoints>: New field.
9378 (PACKET_ConditionalBreakpoints): New enum.
9379 (remote_cond_breakpoint_feature): New function.
9380 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9381 (remote_supports_cond_breakpoints): New function.
9382 (_initialize_remote): Add new packet configuration for
9383 target-side conditional breakpoints.
9384
9385 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9386
9387 * NEWS: Mention target-side conditional breakpoint support,
9388 new condition-evaluation breakpoint subcommand and remote
9389 packet extensions.
9390
9391 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9392
9393 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9394 number.
9395
9396 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9397
9398 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9399 (after_prologue): Remove.
9400
9401 2012-02-23 Tom Tromey <tromey@redhat.com>
9402
9403 * jv-valprint.c (java_val_print): Remove dead code.
9404
9405 2012-02-23 Tristan Gingold <gingold@adacore.com>
9406
9407 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9408 known_tasks_element and known_tasks_length fields.
9409 (read_known_tasks_array): Change argument type. Use pointer type
9410 and number of elements from DATA. Adjust.
9411 (read_known_tasks_list): Likewise.
9412 (get_known_tasks_addr): Remove.
9413 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9414 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9415 type and array length. Merge former get_known_tasks_addr code.
9416
9417 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9418
9419 PR backtrace/13716
9420 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9421 it after set_momentary_breakpoint.
9422
9423 2012-02-22 Sterling Augustine <saugustine@google.com>
9424
9425 PR 13689:
9426 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9427
9428 2012-02-22 Gary Benson <gbenson@redhat.com>
9429
9430 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9431 (find_slot_in_mapped_hash): Likewise.
9432
9433 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 PR build/13638
9436 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9437 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9438 * configure: Regenerate.
9439
9440 2012-02-21 Tristan Gingold <gingold@adacore.com>
9441 Pedro Alves <palves@redhat.com>
9442
9443 * ia64-tdep.c: Do not include libunwind-ia64.h.
9444 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9445 Include libunwind-ia64.h instead of libunwind.h.
9446 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9447 for libunwind.h existence.
9448 * configure, config.in: Regenerate.
9449
9450 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9451
9452 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9453 instead of value_rtti_target_type.
9454 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9455 instead of value_rtti_target_type.
9456 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9457 value_rtti_target_type.
9458 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9459 (value_rtti_target_type): Rename to ...
9460 (value_rtti_indirect_type): ... here and make it indirect. Update
9461 function comment.
9462 * value.c (readjust_indirect_value_type): New function.
9463 (coerce_ref): Support for enclosing type setting for references
9464 with readjust_indirect_value_type.
9465 * value.h (readjust_value_type): New declaration.
9466 (value_rtti_target_type): Rename to ...
9467 (value_rtti_indirect_type): ... here.
9468
9469 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9470
9471 * MAINTAINERS (Write After Approval): Add myself to the list.
9472
9473 2012-02-20 Doug Evans <dje@google.com>
9474
9475 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9476 Rename objfile_p_char parameter to objfilep.
9477 (build_objfile_section_table): Result is now void. All callers
9478 updated.
9479 * objfiles.h (struct objfile): Tweak comments, whitespace.
9480 (build_objfile_section_table): Update.
9481
9482 * elfread.c (elf_symfile_segments): Fix warning text.
9483
9484 2012-02-20 Tom Tromey <tromey@redhat.com>
9485
9486 PR gdb/13498:
9487 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9488 particular set of file names once.
9489 (dw2_map_symbol_filenames): Likewise.
9490
9491 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 Code cleanup.
9494 * main.c (write_files): Remove the declaration.
9495 (external_editor_command): Move the declaration ...
9496 [GDBTK] (external_editor_command): ... here. Fix the comment.
9497
9498 2012-02-20 Tom Tromey <tromey@redhat.com>
9499
9500 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9501 extraneous block.
9502
9503 2012-02-20 Tristan Gingold <gingold@adacore.com>
9504
9505 * darwin-nat.h (enum darwin_msg_state): Add comments.
9506
9507 2012-02-20 Tristan Gingold <gingold@adacore.com>
9508
9509 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9510 value.
9511
9512 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9513
9514 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9515 between function description and implementation.
9516
9517 2012-02-17 Tom Tromey <tromey@redhat.com>
9518
9519 PR python/12070:
9520 * python/py-event.c (event_object_getset): New global.
9521 (event_object_type): Reference it.
9522 * python/py-type.c (field_object_getset): New global.
9523 (field_object_type): Reference it.
9524 * python/python-internal.h (gdb_py_generic_dict): Declare.
9525 * python/py-utils.c (gdb_py_generic_dict): New function.
9526
9527 2012-02-17 Tristan Gingold <gingold@adacore.com>
9528
9529 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9530
9531 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9532
9533 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9534 TYPE_CALLING_CONVENTION annotation.
9535
9536 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9537
9538 * MAINTAINERS: Add rx to target ISA section.
9539 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9540 (ALLDEPFILES): Add rx-tdep.c.
9541
9542 2012-02-16 Tom Tromey <tromey@redhat.com>
9543
9544 * symfile.c (symbol_file_add_main_1): Use inferior's
9545 symfile_flags.
9546 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9547 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9548 inferior.
9549 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9550 inferior.
9551 (follow_exec): Use inferior's symfile_flags.
9552 * inferior.h (struct inferior) <symfile_flags>: New field.
9553
9554 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9555
9556 PR gdb/9734:
9557 * remote-sim.c (gdbsim_create_inferior): Call error() when
9558 sim_create_inferior() fails.
9559
9560 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9561
9562 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9563
9564 2012-02-16 Tom Tromey <tromey@redhat.com>
9565
9566 PR c++/13653:
9567 * thread.c (struct current_thread_cleanup) <was_removable>: New
9568 field.
9569 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9570 (make_cleanup_restore_current_thread): Initialize new field.
9571
9572 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9573
9574 * MAINTAINERS: Add rl78 to target ISA section.
9575 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9576 (ALLDEPFILES): Add rl78-tdep.c.
9577 * NEWS: Mention rl78 as a new target.
9578
9579 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9580
9581 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9582 data.
9583 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9584
9585 2012-02-15 Tom Tromey <tromey@redhat.com>
9586
9587 PR gdb/12659:
9588 * infcmd.c (registers_info): Print just the current register's
9589 name.
9590
9591 2012-02-15 Tom Tromey <tromey@redhat.com>
9592
9593 * python/py-symbol.c (sympy_value): Use _().
9594
9595 2012-02-15 Pedro Alves <palves@redhat.com>
9596
9597 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9598 output to be like native targets'.
9599 (remote_pid_to_str): Special case the null ptid.
9600
9601 2012-02-14 Stan Shebs <stan@codesourcery.com>
9602
9603 * NEWS: Mention enable count command.
9604 * breakpoint.h (struct breakpoint): New field enable_count.
9605 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9606 (enable_breakpoint): Add arg to call.
9607 (struct disp_data): New struct.
9608 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9609 (do_map_enable_once_breakpoint): Create a struct and pass it.
9610 (do_map_enable_delete_breakpoint): Ditto.
9611 (do_map_enable_count_breakpoint): New function.
9612 (enable_count_command): New function.
9613 (bpstat_stop_status): Decrement enable_count.
9614 (print_one_breakpoint_location): Report enable count.
9615 (_initialize_breakpoint): Add enable count command.
9616
9617 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9618
9619 * rl78-tdep.c (reggroups.h): Include.
9620 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9621 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9622 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9623 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9624 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9625 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9626 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9627 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9628 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9629 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9630 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9631 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9632 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9633 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9634 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9635 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9636 beginning of register list.
9637 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9638 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9639 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9640 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9641 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9642 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9643 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9644 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9645 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9646 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9647 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9648 the pseudo registers. Rearrange other pseudo registers too so
9649 that the bank registers appear at the end.
9650 (rl78_register_type): Account for the fact that the byte sized
9651 bank registers are now pseudo-registers.
9652 (rl78_register_name): Rearrange the register name array. Make
9653 initial set of raw banked registers inaccessible.
9654 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9655 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9656 case for copying bytes back and forth between raw and pseudo
9657 versions of the banked registers. Update other cases to reflect
9658 the changed names.
9659 (rl78_return_value): Update to account for changed names of
9660 raw registers.
9661 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9662 rl78_register_sim_regno().
9663
9664 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9665
9666 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9667 the name parameter being passed to find_pc_partial_function().
9668
9669 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9670
9671 * MAINTAINERS: Step down from being ia64 target maintainer.
9672
9673 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9676 compilation warning.
9677
9678 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9679
9680 Fix crash on loaded shlibs without loaded exec_bfd.
9681 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9682 (set_section_command): Replace exec_bfd by p->bfd.
9683
9684 2012-02-10 Tom Tromey <tromey@redhat.com>
9685
9686 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9687 when we have a C++ qualified name.
9688
9689 2012-02-10 Pedro Alves <palves@redhat.com>
9690
9691 * inferior.c (inferior_pid_to_str): New.
9692 (print_inferior, inferior_command): Use it.
9693
9694 2012-02-10 Pedro Alves <palves@redhat.com>
9695
9696 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9697 the test CFLAGS.
9698 * configure: Regenerate.
9699
9700 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * linespec.c (decode_line_internal): Fix comment correctness.
9703
9704 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9705
9706 PR gdb/12953
9707 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9708 * amd64bsd-nat.c: Add support for debug registers (adapted from
9709 i386bsd-nat.c).
9710 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9711 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9712 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9713 (amd64bsd_dr_get_control): New functions.
9714 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9715 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9716 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9717 watchpoints initialization.
9718 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9719
9720 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9723 flds_bnds.fields.
9724 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9725
9726 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9729
9730 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9731
9732 * language.h (symbol_name_cmp_ftype): Renames
9733 symbol_name_match_p_ftype.
9734 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9735 la_get_symbol_name_match_p.
9736 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9737 ada_get_symbol_name_match_p. Update comment.
9738 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9739 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9740 Renames symbol_name_match_p. Update field type.
9741 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9742 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9743 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9744 "la_get_symbol_name_cmp" in comments.
9745 * language.c: Likewise.
9746
9747 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9748
9749 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9750 %eflags offset.
9751 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9752 (amd64_sol2_gregset32_reg_offs): Likewise.
9753
9754 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9755
9756 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9757 of the returned BFD is allocated by GDB.
9758
9759 2012-02-07 Tom Tromey <tromey@redhat.com>
9760
9761 PR python/12027:
9762 * python/python-internal.h (frame_object_type): Declare.
9763 * python/py-symbol.c (sympy_needs_frame): New function.
9764 (sympy_value): New function.
9765 (symbol_object_getset): Add "needs_frame".
9766 (symbol_object_methods): Add "value".
9767 * python/py-frame.c (frame_object_type): No longer static.
9768
9769 2012-02-07 Tom Tromey <tromey@redhat.com>
9770
9771 PR python/13599:
9772 * python/py-symbol.c (sympy_line): New function.
9773 (symbol_object_getset): Add "line".
9774
9775 2012-02-07 Tom Tromey <tromey@redhat.com>
9776
9777 * charset.c (find_charset_names): Check 'in' against NULL.
9778
9779 2012-02-06 Doug Evans <dje@google.com>
9780
9781 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9782 and fields.name members from char * to const char *. All uses updated.
9783 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9784 from char * to const char *. All uses updated.
9785 (type_name_no_tag): Update.
9786 (lookup_unsigned_typename, lookup_signed_typename): Update.
9787 * gdbtypes.c (type_name_no_tag): Change result type
9788 from char * to const char *. All callers updated.
9789 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9790 name parameter from char * to const char *.
9791 * symtab.h (struct cplus_specific): Change type of demangled_name
9792 member from char * to const char *. All uses updated.
9793 (struct general_symbol_info): Change type of name and
9794 mangled_lang.demangled_name members from char * to const char *.
9795 All uses updated.
9796 (symbol_get_demangled_name, symbol_natural_name): Update.
9797 (symbol_demangled_name, symbol_search_name): Update.
9798 * symtab.c (symbol_get_demangled_name): Change result type
9799 from char * to const char *. All callers updated.
9800 (symbol_natural_name, symbol_demangled_name): Ditto.
9801 (symbol_search_name): Ditto.
9802 (completion_list_add_name): Change type of symname,sym_text,
9803 text,word parameters from char * to const char *.
9804 (completion_list_objc_symbol): Change type of sym_text,
9805 text,word parameters from char * to const char *.
9806 * ada-lang.c (find_struct_field): Change type of name parameter
9807 from char * to const char *.
9808 (encoded_ordered_before): Similarly for N0,N1 parameters.
9809 (old_renaming_is_invisible): Similarly for function_name parameter.
9810 (ada_type_name): Change result type from char * to const char *.
9811 All callers updated.
9812 * ada-lang.h (ada_type_name): Update.
9813 * buildsym.c (hashname): Change type of name parameter
9814 from char * to const char *.
9815 * buildsym.h (hashname): Update.
9816 * dbxread.c (end_psymtab): Change type of include_list parameter
9817 from char ** to const char **.
9818 * dwarf2read.c (determine_prefix): Change result type
9819 from char * to const char *. All callers updated.
9820 * f-lang.c (find_common_for_function): Change type of name, funcname
9821 parameters from char * to const char *.
9822 * f-lang.c (find_common_for_function): Update.
9823 * f-valprint.c (list_all_visible_commons): Change type of funcname
9824 parameters from char * to const char *.
9825 * gdbarch.sh (static_transform_name): Change type of name parameter
9826 and result from char * to const char *.
9827 * gdbarch.c: Regenerate.
9828 * gdbarch.h: Regenerate.
9829 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9830 of name parameter from char * to const char *.
9831 * jv-lang.c (java_primitive_type_from_name): Ditto.
9832 (java_demangled_signature_length): Similarly for signature parameter.
9833 (java_demangled_signature_copy): Ditto.
9834 (java_demangle_type_signature): Ditto.
9835 * jv-lang.h (java_primitive_type_from_name): Update.
9836 (java_demangle_type_signature): Update.
9837 * objc-lang.c (specialcmp): Change type of a,b parameters
9838 from char * to const char *.
9839 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9840 from char * to const char *. All callers updated.
9841 * p-lang.h (is_pascal_string_type): Update.
9842 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9843 of name parameter from char * to const char *.
9844 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9845 * utils.c (fprintf_symbol_filtered): Ditto.
9846 * defs.h (fprintf_symbol_filtered): Update.
9847 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9848 * stabsread.h (end_psymtab): Update.
9849 * stack.c (find_frame_funname): Change type of funname parameter
9850 from char ** to const char **.
9851 * stack.h (find_frame_funname): Update.
9852 * typeprint.c (type_print): Change type of varstring parameter
9853 from char * to const char *.
9854 * value.h (type_print): Update.
9855 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9856 from char * to const char *. All callers updated.
9857 (xcoff_end_psymtab): Change type of include_list parameter
9858 from char ** to const char **. All callers updated.
9859 (swap_sym): Similarly for name parameter. All callers updated.
9860 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9861 Use xstrdup.
9862 (process_coff_symbol): Use xstrdup.
9863 * stabsread.c (stabs_method_name_from_physname): Renamed from
9864 update_method_name_from_physname. Change result type from void
9865 to char *. All callers updated.
9866 (read_member_functions): In has_destructor case, store name in objfile
9867 obstack instead of malloc space. In !has_stub case, fix mem leak.
9868
9869 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9870
9871 * configure: Rebuild.
9872 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9873 LDFLAGS.
9874
9875 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9876
9877 * configure.tgt (rl78-*-elf): New target.
9878 * rl78-tdep.c: New file.
9879
9880 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881
9882 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9883 and continue the loop. Add QUIT statement.
9884
9885 2012-02-03 Tom Tromey <tromey@redhat.com>
9886
9887 PR gdb/13596:
9888 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9889 bfd_lookup_symbol_from_symtab.
9890 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9891 gdb_bfd_lookup_symbol_from_symtab.
9892
9893 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9894
9895 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9896 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9897 symbol. Add assertion that sym2 is never NULL.
9898
9899 2012-02-02 Doug Evans <dje@google.com>
9900
9901 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9902 "name" parameter to const char ** from char **. All callers updated.
9903 (find_pc_partial_function): Ditto.
9904 (cache_pc_function_name): Change type to const char * from char *.
9905 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9906 (find_pc_partial_function): Update.
9907 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9908 type of "name" parameter to const char * from char *.
9909 All uses updated.
9910 * arch-utils.c (generic_in_solib_return_trampoline): Change
9911 type of "name" parameter to const char * from char *.
9912 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9913 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9914 type of "name" parameter to const char * from char *.
9915 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9916 * gdbarch.c: Regenerate.
9917 * gdbarch.h: Regenerate.
9918 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9919 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9920 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9921 type of "name" parameter to const char * from char *.
9922 * skip.c (skip_function_pc): Ditto.
9923 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9924 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9925 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9926 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9927 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9928 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9929 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9930 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9931 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9932
9933 2012-02-02 Pedro Alves <palves@redhat.com>
9934
9935 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9936 the current inferior has no execution. Make sure the current
9937 remote process matches gdb's current inferior.
9938
9939 2012-02-02 Tom Tromey <tromey@redhat.com>
9940
9941 PR gdb/13405:
9942 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9943 read-only memory.
9944
9945 2012-02-02 Tom Tromey <tromey@redhat.com>
9946
9947 PR gdb/9307:
9948 * symtab.c (lookup_language_this): Set block_found.
9949
9950 2012-02-01 Tom Tromey <tromey@redhat.com>
9951
9952 PR gdb/13431:
9953 * jit.c (struct jit_inferior_data): Rewrite.
9954 (struct jit_objfile_data): New.
9955 (get_jit_objfile_data): New function.
9956 (add_objfile_entry): Update.
9957 (jit_read_descriptor): Return int. Replace descriptor_addr
9958 argument with inf_data. Update. Don't call error.
9959 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9960 descriptor here.
9961 (jit_inferior_init): Don't look up descriptor. Don't call error.
9962 (jit_reset_inferior_data_and_breakpoints)
9963 (jit_inferior_created_observer): Remove.
9964 (jit_inferior_exit_hook): Update.
9965 (jit_executable_changed_observer): Remove.
9966 (jit_event_handler): Update.
9967 (free_objfile_data): Reset inferior data if needed.
9968 (_initialize_jit): Update.
9969
9970 2012-02-01 Tom Tromey <tromey@redhat.com>
9971
9972 * jit.c (bfd_open_from_target_memory): Move higher in file.
9973
9974 2012-02-01 Tristan Gingold <gingold@adacore.com>
9975
9976 * libunwind-frame.c (libunwind_load): Display message if dlopen
9977 failed.
9978
9979 2012-02-01 Gary Benson <gbenson@redhat.com>
9980
9981 * symtab.h (symbol_found_callback_ftype): New typedef.
9982 (iterate_over_symbols): Use the above.
9983 * symtab.c (iterate_over_symbols): Likewise.
9984 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9985 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9986 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9987 (iterate_name_matcher): Document return values.
9988 (collect_one_symbol): Likewise.
9989 (collect_function_symbols): Likewise.
9990 (collect_symbols): Likewise.
9991
9992 2012-02-01 Tom Tromey <tromey@redhat.com>
9993
9994 * ada-lang.c (resolve_subexp): Update.
9995 (ada_lookup_symbol_list): Add 'full_search' argument.
9996 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9997 ada_lookup_symbol_list.
9998 (ada_lookup_encoded_symbol): Update.
9999 (get_var_value): Update.
10000 * ada-exp.y (block_lookup): Update.
10001 (write_var_or_type): Update.
10002 (write_name_assoc): Update.
10003 * ada-lang.h (ada_lookup_symbol_list): Update.
10004
10005 2012-01-31 Tom Tromey <tromey@redhat.com>
10006
10007 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10008 comment.
10009
10010 2012-01-31 Doug Evans <dje@google.com>
10011
10012 * symtab.h: Remove outdated comment.
10013 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10014
10015 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10016
10017 Fix build error in Darwin port.
10018 * i386-darwin-nat.c: Include i386-nat.h.
10019
10020 2012-01-30 Tom Tromey <tromey@redhat.com>
10021
10022 PR breakpoints/13568:
10023 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10024 argument. Check for recursive includes.
10025 (dwarf_decode_macros): Create an include hash.
10026
10027 2012-01-30 Michael Eager <eager@eagercon.com>
10028
10029 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10030 * ppc-linux-tdep.c: Include glibc-tdep.h.
10031 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10032 (powerpc_linux_in_plt_stub): New function.
10033 (powerpc_linux_in_dynsym_resolve_code): New function.
10034 (ppc_skip_trampoline_code): New function.
10035 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10036 Use glibc_skip_solib_resolver.
10037
10038 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10039
10040 Code cleanup: Make 1440 bytes of data segment read-only.
10041 * arch-utils.c (endian_enum): Make it const char *const [].
10042 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10043 Likewise.
10044 * breakpoint.c (always_inserted_enums): Likewise.
10045 * cli/cli-cmds.c (script_ext_enums): Likewise.
10046 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10047 enumlist parameter const char *const *.
10048 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10049 const char *const *.
10050 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10051 parameter const char *const *.
10052 * cris-tdep.c (cris_modes): Make it const char *const [].
10053 * filesystem.c (target_file_system_kinds): Likewise.
10054 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10055 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10056 (can_use_displaced_stepping_enum, scheduler_enums)
10057 (exec_direction_names): Likewise.
10058 * language.c (_initialize_language): Make the type_or_range_names and
10059 case_sensitive_names variables const char *const [].
10060 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10061 * python/python.c (python_excp_enums): Likewise.
10062 * remote.c (interrupt_sequence_modes): Likewise.
10063 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10064 * serial.c (logbase_enums): Likewise.
10065 * sh-tdep.c (sh_cc_enum): Likewise.
10066 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10067 Likewise.
10068 * symtab.c (multiple_symbols_modes): Likewise.
10069 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10070 Likewise.
10071 * utils.c (internal_problem_modes): Likewise.
10072
10073 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10074
10075 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10076 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10077 result.
10078
10079 2012-01-27 Doug Evans <dje@google.com>
10080
10081 * configure.ac (with_python): Fix absolute path handling for win32.
10082 * configure: Regenerate.
10083
10084 2012-01-26 Doug Evans <dje@google.com>
10085
10086 * symtab.c: Whitespace cleanup, no code changes.
10087
10088 * symtab.c (lookup_symbol_in_language): Improve comment.
10089 (lookup_symbol_aux): Fix comment.
10090
10091 * psymtab.c (add_psymbol_to_list): Result is now "void".
10092 * psympriv.h (add_psymbol_to_list): Update.
10093
10094 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10095
10096 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10097
10098 Do not open script filenames twice.
10099 * cli/cli-cmds.c (source_script_from_stream): Pass to
10100 source_python_script also STREAM.
10101 * python/py-auto-load.c (source_section_scripts): Pass to
10102 source_python_script_for_objfile also STREAM.
10103 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10104 also INPUT.
10105 * python/python-internal.h (source_python_script_for_objfile): New
10106 parameter file, rename parameter file to filename.
10107 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10108 instead if !_WIN32. Update the function comment.
10109 (source_python_script, source_python_script_for_objfile)
10110 (source_python_script): New parameter file, rename parameter file to
10111 filename. Pass FILENAME to python_run_simple_file.
10112 * python/python.h (source_python_script): New parameter file, rename
10113 parameter file to filename.
10114
10115 2012-01-26 Pedro Alves <palves@redhat.com>
10116
10117 * corelow.c (core_has_fake_pid): Delete.
10118 (core_close): Delete references to `core_has_fake_pid'.
10119 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10120 (core_open): Delete references to `core_has_fake_pid'.
10121 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10122 the removed global.
10123
10124 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10125
10126 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10127 Remove language parameter from name_matcher. Adjust the comment.
10128 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10129 Remove language parameter.
10130 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10131 * linespec.c (iterate_name_matcher): Likewise.
10132 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10133 name_matcher. Adjust call accordingly.
10134 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10135 (maintenance_check_symtabs): Adjust type of parameter "fun".
10136 * psymtab.h (maintenance_check_symtabs): Likewise.
10137
10138 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10139
10140 * language.h (symbol_name_match_p_ftype): New typedef.
10141 (struct language_defn): Replace field la_symbol_name_compare
10142 by la_get_symbol_name_match_p.
10143 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10144 (ada_language_defn): Use it.
10145 * linespec.c (struct symbol_matcher_data): New type.
10146 (iterate_name_matcher): Rewrite.
10147 (iterate_over_all_matching_symtabs): Pass a pointer to
10148 a symbol_matcher_data struct to expand_symtabs_matching
10149 instead of just the lookup name.
10150 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10151 opencl-lang.c, p-lang.c, language.c: Delete field
10152 la_symbol_name_compare, and replace by NULL for new field
10153 la_get_symbol_name_match_p.
10154 * symfile.h (struct quick_symbol_functions): Update comment.
10155
10156 2012-01-25 Tom Tromey <tromey@redhat.com>
10157
10158 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10159 dereferencing.
10160
10161 2012-01-24 Tom Tromey <tromey@redhat.com>
10162
10163 PR symtab/12406:
10164 * solib.c (update_solib_list): Update the program space's
10165 added_solibs and deleted_solibs fields.
10166 * progspace.h (struct program_space) <added_solibs,
10167 deleted_solibs>: New fields.
10168 (clear_program_space_solib_cache): Declare.
10169 * progspace.c (release_program_space): Call
10170 clear_program_space_solib_cache.
10171 (clear_program_space_solib_cache): New function.
10172 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10173 bpstat_stop_status. Use handle_solib_event.
10174 * breakpoint.c: Include gdb_regex.h.
10175 (print_solib_event): New function.
10176 (bpstat_print): Use print_solib_event.
10177 (bpstat_stop_status): Add special case for bp_shlib_event.
10178 (handle_solib_event): New function.
10179 (bpstat_what): Use handle_solib_event.
10180 (struct solib_catchpoint): New.
10181 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10182 (breakpoint_hit_catch_solib, check_status_catch_solib)
10183 (print_it_catch_solib, print_one_catch_solib)
10184 (print_mention_catch_solib, print_recreate_catch_solib): New
10185 functions.
10186 (catch_solib_breakpoint_ops): New global.
10187 (catch_load_or_unload, catch_load_command_1)
10188 (catch_unload_command_1): New functions.
10189 (internal_bkpt_check_status): Add special case for
10190 bp_shlib_event.
10191 (internal_bkpt_print_it): Use print_solib_event.
10192 (initialize_breakpoint_ops): Initialize
10193 catch_solib_breakpoint_ops.
10194 (_initialize_breakpoint): Register "catch load" and "catch
10195 unload".
10196 * breakpoint.h (handle_solib_event): Declare.
10197 * NEWS: Add entry for "catch load" and "catch unload".
10198
10199 2012-01-24 Tom Tromey <tromey@redhat.com>
10200
10201 * ada-lang.c: Include gdb_vecs.h.
10202 * charset.c: Include gdb_vecs.h.
10203 * tracepoint.h: Include gdb_vecs.h.
10204 * gdb_vecs.h: New file.
10205
10206 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10207
10208 * breakpoint.c (breakpoint_hit_catch_fork)
10209 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10210 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10211 * infrun.c (inferior_has_forked, inferior_has_vforked)
10212 (inferior_has_execd, inferior_has_called_syscall): Delete.
10213 (handle_syscall_event): Get syscall_number from the execution
10214 control state's wait status.
10215 (wait_for_inferior): Don't clear syscall_number.
10216
10217 2012-01-24 Pedro Alves <palves@redhat.com>
10218
10219 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10220 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10221 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10222 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10223 `ws' parameter.
10224 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10225 false for events other than TARGET_SIGNAL_TRAP.
10226 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10227 Add `ws' parameter.
10228 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10229 events other than TARGET_SIGNAL_TRAP.
10230 (tracepoint_breakpoint_hit): Add `ws' parameter.
10231 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10232 parameter.
10233 (bpstat_stop_status): Same.
10234 (pc_at_non_inline_function): Same.
10235 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10236 to pass the current event's waitstatus to bpstat_stop_status
10237 and pc_at_non_inline_function.
10238
10239 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10240
10241 Code cleanup.
10242 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10243 Update the function comment for it.
10244 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10245 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10246 for STREAM.
10247
10248 2012-01-24 Pedro Alves <palves@redhat.com>
10249
10250 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10251 outside `bs->stop' block.
10252 (bpstat_what): Rework bp_shlib_event handling.
10253 (internal_bkpt_check_status): If the breakpoint is a
10254 bp_shlib_event, then set bs->stop and bs->print if
10255 stop_on_solib_events is set.
10256
10257 2012-01-24 Gary Benson <gbenson@redhat.com>
10258
10259 Delete #if 0'd out code.
10260 * stack.c (print_frame_label_vars): Remove.
10261 (catch_info): Likewise.
10262 (_initialize_stack): Remove "info catch" command.
10263 * NEWS: Mention the above.
10264
10265 2012-01-24 Pedro Alves <palves@redhat.com>
10266
10267 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10268 it.
10269 (remote_notice_new_inferior): If the remote end doesn't support
10270 the multiprocess extensions, then the PID is fake.
10271 (add_current_inferior_and_thread): New.
10272 (remote_start_remote): Use it.
10273 (extended_remote_attach_1): Adjust.
10274 (extended_remote_create_inferior_1): Use
10275 add_current_inferior_and_thread.
10276
10277 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10278
10279 Fix watchpoints to be specific for each inferior.
10280 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10281 current_program_space.
10282 * i386-nat.c (i386_inferior_data_cleanup): New.
10283 (i386_inferior_data_get): Replace variable inf_data_local by an
10284 inferior_data call.
10285 (i386_use_watchpoints): Initialize i386_inferior_data.
10286 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10287 specific iterate_over_lwps.
10288
10289 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10290
10291 Fix watchpoints across inferior fork.
10292 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10293 comment for linux_nat_iterate_watchpoint_lwps.
10294 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10295 linux_nat_iterate_watchpoint_lwps.
10296 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10297 * i386-linux-nat.c (update_debug_registers_callback): Update the
10298 comment for linux_nat_iterate_watchpoint_lwps.
10299 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10300 linux_nat_iterate_watchpoint_lwps.
10301 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10302 * i386-nat.c: Include inferior.h.
10303 (dr_mirror): Remove.
10304 (i386_inferior_data, struct i386_inferior_data)
10305 (i386_inferior_data_get): New.
10306 (i386_debug_reg_state): Use i386_inferior_data_get.
10307 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10308 (i386_insert_watchpoint, i386_remove_watchpoint)
10309 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10310 (i386_remove_hw_breakpoint): New variable state, use
10311 i386_debug_reg_state instead of DR_MIRROR.
10312 * linux-nat.c (delete_lwp): New declaration.
10313 (num_lwps): Move here from downwards.
10314 (delete_lwp_cleanup): New.
10315 (linux_child_follow_fork): Create new child_lp, call
10316 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10317 PTRACE_DETACH.
10318 (num_lwps): Move upwards.
10319 (linux_nat_iterate_watchpoint_lwps): New.
10320 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10321 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10322
10323 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10324
10325 GDB 7.4 released.
10326
10327 2012-01-23 Pedro Alves <palves@redhat.com>
10328
10329 * top.c (caution): Rename to ...
10330 (confirm): ... this.
10331 (show_caution): Rename to ...
10332 (show_confirm): ... this.
10333 (quit_cover): Adjust.
10334 (init_main): Adjust.
10335 * top.h (caution): Rename to ...
10336 (confirm): ... this.
10337 * utils.c (internal_vproblem, defaulted_query): Adjust.
10338
10339 2012-01-23 Pedro Alves <palves@redhat.com>
10340
10341 * top.c (caution): Update comment.
10342 (execute_command): Don't consider the current value of `caution'.
10343
10344 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10345
10346 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10347
10348 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10349
10350 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10351 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10352 * target.c (target_fileio_pwrite): Remove buffer address from
10353 debug output.
10354 (target_fileio_pread): Likewise.
10355
10356 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10357
10358 * NEWS: Document remote "info proc" and "generate-core-file".
10359
10360 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10361
10362 * gdbarch.sh (find_memory_regions): New callback.
10363 * gdbarch.c, gdbarch.h: Regenerate.
10364
10365 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10366 callback before falling back to target method.
10367
10368 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10369 (linux_target_install_ops): No longer install it.
10370
10371 * linux-tdep.c (linux_find_memory_regions): New function.
10372 (linux_init_abi): Install it.
10373
10374 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10375
10376 * gdbarch.sh (make_corefile_notes): New architecture callback.
10377 * gdbarch.c: Regenerate.
10378 * gdbarch.h: Likewise.
10379
10380 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10381 before target_make_corefile_notes. If NULL is returned, the
10382 target does not support core file generation.
10383
10384 * linux-nat.c: Include "linux-tdep.h".
10385 (find_signalled_thread, find_stop_signal): Remove.
10386 (linux_nat_do_thread_registers): Likewise.
10387 (struct linux_nat_corefile_thread_data): Likewise.
10388 (linux_nat_corefile_thread_callback): Likewise.
10389 (iterate_over_spus): Likewise.
10390 (struct linux_spu_corefile_data): Likewise.
10391 (linux_spu_corefile_callback): Likewise.
10392 (linux_spu_make_corefile_notes): Likewise.
10393 (linux_nat_collect_thread_registers): New function.
10394 (linux_nat_make_corefile_notes): Replace contents by call to
10395 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10396 as native-only callback.
10397
10398 * linux-tdep.h: Include "bfd.h".
10399 (struct regcache): Add forward declaration.
10400 (linux_collect_thread_registers_ftype): New typedef.
10401 (linux_make_corefile_notes): Add prototype.
10402 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10403 "regset.h", and "elf-bfd.h".
10404 (find_signalled_thread, find_stop_signal): New functions.
10405 (linux_spu_make_corefile_notes): Likewise.
10406 (linux_collect_thread_registers): Likewise.
10407 (struct linux_corefile_thread_data): New data structure.
10408 (linux_corefile_thread_callback): New funcion.
10409 (linux_make_corefile_notes): Likewise.
10410 (linux_make_corefile_notes_1): Likewise.
10411 (linux_init_abi): Install it.
10412
10413 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10414
10415 * gdbarch.sh (info_proc): New callback.
10416 * gdbarch.c, gdbarch.h: Regenerate.
10417
10418 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10419 before falling back to the target info_proc callback.
10420
10421 * linux-nat.c: Do not include "cli/cli-utils.h".
10422 (linux_nat_info_proc): Remove.
10423 (linux_target_install_ops): No longer install it.
10424
10425 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10426 (read_mapping): New function.
10427 (linux_info_proc): Likewise.
10428 (linux_init_abi): Install it.
10429
10430 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10431
10432 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10433 * infcmd.c: (info_proc_cmd_1): New function.
10434 (info_proc_cmd): New function, moved here from equivalent routine
10435 orignally in linux-nat.c.
10436 (info_proc_cmd_mappings): Likewise.
10437 (info_proc_cmd_stat): Likewise.
10438 (info_proc_cmd_status): Likewise.
10439 (info_proc_cmd_cwd): Likewise.
10440 (info_proc_cmd_cmdline): Likewise.
10441 (info_proc_cmd_exe): Likewise.
10442 (info_proc_cmd_all): Likewise.
10443 (_initialize_infcmd): Install "info proc" command and subcommands.
10444
10445 * target.h (struct target_ops): Add to_info_proc.
10446 (target_info_proc): Add prototype.
10447 * target.c (target_info_proc): New function.
10448
10449 * procfs.c (procfs_info_proc): Add prototype.
10450 (info_proc_cmd): Rename into ...
10451 (procfs_info_proc): ... this. Update argument types as appropriate
10452 for a to_info_proc implementation. Handle "what" argument.
10453 (procfs_target): Install procfs_info_proc.
10454 (_initialize_procfs): No longer install "info proc" command.
10455
10456 * linux-nat.c: (enum info_proc_what): Remove.
10457 (linux_nat_info_proc_cmd_1): Rename into ...
10458 (linux_nat_info_proc): ... this. Update argument types as appropriate
10459 for a to_info_proc implementation.
10460 (linux_nat_info_proc_cmd): Remove.
10461 (linux_nat_info_proc_cmd_mappings): Likewise.
10462 (linux_nat_info_proc_cmd_stat): Likewise.
10463 (linux_nat_info_proc_cmd_status): Likewise.
10464 (linux_nat_info_proc_cmd_cwd): Likewise.
10465 (linux_nat_info_proc_cmd_cmdline): Likewise.
10466 (linux_nat_info_proc_cmd_exe): Likewise.
10467 (linux_nat_info_proc_cmd_all): Likewise.
10468 (linux_target_install_ops): Install linux_nat_info_proc.
10469 (_initialize_linux_nat): No longer install "info proc" command
10470 and subcommands.
10471
10472 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10473
10474 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10475 * config.in, configure: Regenerate.
10476
10477 * target.h (struct target_ops): Add to_fileio_readlink.
10478 (target_fileio_readlink): Add prototype.
10479 * target.c (target_fileio_readlink): New function.
10480
10481 * inf-child.c: Conditionally include <sys/param.h>.
10482 (inf_child_fileio_readlink): New function.
10483 (inf_child_target): Install it.
10484
10485 * remote.c (PACKET_vFile_readlink): New enum value.
10486 (remote_hostio_readlink): New function.
10487 (init_remote_ops): Install it.
10488 (_initialize_remote): Handle vFile:readlink packet type.
10489
10490 2012-01-20 Pedro Alves <palves@redhat.com>
10491 Ulrich Weigand <ulrich.weigand@linaro.org>
10492
10493 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10494 * config.in, configure: Regenerate.
10495
10496 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10497 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10498 (target_fileio_open): Add prototype.
10499 (target_fileio_pwrite): Likewise.
10500 (target_fileio_pread): Likewise.
10501 (target_fileio_close): Likewise.
10502 (target_fileio_unlink): Likewise.
10503 (target_fileio_read_alloc): Likewise.
10504 (target_fileio_read_stralloc): Likewise.
10505
10506 * target.c: Include "gdb/fileio.h".
10507 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10508 (default_fileio_target): New function.
10509 (target_fileio_open): Likewise.
10510 (target_fileio_pwrite): Likewise.
10511 (target_fileio_pread): Likewise.
10512 (target_fileio_close): Likewise.
10513 (target_fileio_unlink): Likewise.
10514 (target_fileio_close_cleanup): Likewise.
10515 (target_fileio_read_alloc_1): Likewise.
10516 (target_fileio_read_alloc): Likewise.
10517 (target_fileio_read_stralloc): Likewise.
10518
10519 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10520 <fcntl.h>, and <unistd.h>.
10521 (inf_child_fileio_open_flags_to_host): New function.
10522 (inf_child_errno_to_fileio_error): Likewise.
10523 (inf_child_fileio_open): Likewise.
10524 (inf_child_fileio_pwrite): Likewise.
10525 (inf_child_fileio_pread): Likewise.
10526 (inf_child_fileio_close): Likewise.
10527 (inf_child_fileio_unlink): Likewise.
10528 (inf_child_target): Install to_fileio routines.
10529
10530 * remote.c (init_remote_ops): Install to_fileio routines.
10531
10532 2012-01-20 Pedro Alves <palves@redhat.com>
10533 Ulrich Weigand <ulrich.weigand@linaro.org>
10534
10535 * remote.c (remote_multi_process_p): Only check for multi-process
10536 protocol feature, do not check for extended protocol.
10537 (remote_supports_multi_process): Check for extended protocol here.
10538 (set_general_process): Likewise.
10539 (extended_remote_kill): Likewise.
10540 (remote_pid_to_str): Likewise.
10541 (remote_query_supported): Always query multiprocess mode.
10542
10543 2012-01-20 Pedro Alves <palves@redhat.com>
10544 Ulrich Weigand <ulrich.weigand@linaro.org>
10545
10546 * inferior.h (struct inferior): Add fake_pid_p.
10547 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10548 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10549 magic_null_ptid since the remote side doesn't provide a real PID.
10550
10551 2012-01-19 Tom Tromey <tromey@redhat.com>
10552
10553 * NEWS: Combine the two Python sections.
10554
10555 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10556
10557 * target.h (target_close): Update comment on the target's unpush state.
10558
10559 2012-01-19 Pedro Alves <palves@redhat.com>
10560
10561 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10562 linux_nat_async directly instead of going through the target
10563 vector.
10564 * target.c (unpush_target): Close target after unpushing it, not
10565 before.
10566
10567 2012-01-19 Gary Benson <gbenson@redhat.com>
10568
10569 * mdebugread.c (sort_blocks): Replace integer constants with ones
10570 derived from FIRST_LOCAL_BLOCK.
10571
10572 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10573 Jan Kratochvil <jan.kratochvil@redhat.com>
10574
10575 PR gdb/9538
10576 * symfile.c (find_separate_debug_file): New function.
10577 (terminate_after_last_dir_separator): Likewise.
10578 (find_separate_debug_file_by_debuglink): Also try realpath.
10579 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10580 * configure: Regenerate.
10581 * config.in: Regenerate.
10582
10583 2012-01-18 Doug Evans <dje@google.com>
10584
10585 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10586 (main.o): Remove rule.
10587 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10588 (--with-sysroot): Rewrite.
10589 * configure: Regenerate.
10590 * config.in: Regenerate.
10591
10592 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10593
10594 * parse.c (initialize_expout): New function.
10595 (reallocate_expout): Likewise.
10596 (parse_exp_in_context): Use `initialize_expout' and
10597 `reallocate_expout' when appropriate.
10598
10599 2012-01-18 Pedro Alves <palves@redhat.com>
10600
10601 * record.c (struct record_breakpoint, record_breakpoint_p)
10602 (record_breakpoints): New.
10603 (record_insert_breakpoint, record_remove_breakpoint): Manage
10604 record breakpoints list. Only remove breakpoints from the
10605 inferior if they had been inserted there in the first place.
10606
10607 2012-01-17 Doug Evans <dje@google.com>
10608
10609 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10610 if we know we don't have a file name to look for.
10611
10612 2012-01-17 Pedro Alves <palves@redhat.com>
10613
10614 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10615 the frame's stop reason is UNWIND_UNAVAILABLE.
10616
10617 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 Fix compilation error.
10620 * m2-exp.y (yyerror): Use ANSI C prototype.
10621
10622 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10623
10624 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10625 (growbuf_by_size): Likewise.
10626 (yyerror): Likewise.
10627 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10628 (modblock): Remove variable (was #if 0'ed).
10629 (parse_number): Convert prototype from K&R to ANSI C.
10630 (yyerror): Likewise.
10631 * objc-exp.y (parse_number): Likewise.
10632 (yyerror): Likewise.
10633 (yylex): Remove #if 0'ed code.
10634 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10635 (yyerror): Likewise.
10636
10637 2012-01-16 Tom Tromey <tromey@redhat.com>
10638
10639 * NEWS: Add item.
10640 * symtab.h (compare_filenames_for_search): Declare.
10641 * symtab.c (compare_filenames_for_search): New function.
10642 (iterate_over_some_symtabs): Use it.
10643 * symfile.h (struct quick_symbol_functions)
10644 <map_symtabs_matching_filename>: Change spec.
10645 * psymtab.c (partial_map_symtabs_matching_filename): Use
10646 compare_filenames_for_search. Update for new spec.
10647 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10648 compare_filenames_for_search. Update for new spec.
10649 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10650
10651 2012-01-16 Tom Tromey <tromey@redhat.com>
10652
10653 PR python/13281:
10654 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10655 (struct main_type) <flag_flag_enum>: New field.
10656 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10657 * NEWS: Add entries.
10658 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10659 enums.
10660 * python/lib/gdb/printing.py (_EnumInstance): New class.
10661 (FlagEnumerationPrinter): Likewise.
10662
10663 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10664
10665 * breakpoint.c (create_sals_from_address_default): New function.
10666 (create_breakpoints_sal_default): Likewise.
10667 (decode_linespec_default): Likewise.
10668 (is_marker_spec): Removed.
10669 (strace_marker_p): New function.
10670 (init_breakpoint_sal): Using `strace_marker_p' instead of
10671 `is_marker_spec'.
10672 (create_breakpoint): Call method `create_sals_from_address' from
10673 breakpoint_ops, replacing code that created SALs conditionally
10674 on the type of the breakpoint. Call method `create_breakpoints_sal',
10675 replacing code that created breakpoints conditionally on the type
10676 wanted.
10677 (base_breakpoint_create_sals_from_address): New function.
10678 (base_breakpoint_create_breakpoints_sal): Likewise.
10679 (base_breakpoint_decode_linespec): Likewise.
10680 (base_breakpoint_ops): Add methods
10681 `base_breakpoint_create_sals_from_address',
10682 `base_breakpoint_create_breakpoints_sal' and
10683 `base_breakpoint_decode_linespec'.
10684 (bkpt_create_sals_from_address): New function.
10685 (bkpt_create_breakpoints_sal): Likewise.
10686 (bkpt_decode_linespec): Likewise.
10687 (tracepoint_create_sals_from_address): Likewise.
10688 (tracepoint_create_breakpoints_sal): Likewise.
10689 (tracepoint_decode_linespec): Likewise.
10690 (strace_marker_create_sals_from_address): Likewise.
10691 (strace_marker_create_breakpoints_sal): Likewise.
10692 (strace_marker_decode_linespec): Likewise.
10693 (strace_marker_breakpoint_ops): New variable.
10694 (addr_string_to_sals): Remove `marker_spec'. Call method
10695 `decode_linespec' from breakpoint_ops, replacing code that decoded
10696 an address string into a SAL. Use `strace_marker_p' instead of
10697 `marker_spec'.
10698 (strace_command): Decide whether we are dealing with a static
10699 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10700 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10701 * breakpoint.h (linespec_result, linespec_sals): New forward
10702 declarations.
10703 (breakpoint_ops) <create_sals_from_address>,
10704 <create_breakpoints_sal>, <decode_linespec>: New methods.
10705
10706 2012-01-14 Doug Evans <dje@google.com>
10707
10708 * NEWS: Update text for "maint set python print-stack".
10709 It is deprecated in gdb 7.4 and deleted in 7.5.
10710
10711 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10712
10713 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10714 including curses.h.
10715
10716 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10717
10718 * configure: Regenerate.
10719 * config.in: Regenerate.
10720
10721 2012-01-12 Keith Seitz <keiths@redhat.com>
10722
10723 PR mi/10586
10724 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10725 (ANONYMOUS_UNION_NAME): Define.
10726 (is_path_expr_parent): New function.
10727 (get_path_expr_parent): New function.
10728 (is_anonymous_child): New function.
10729 (create_child_with_value): If the child is anonymous and without
10730 a name, assign an object name to it.
10731 (c_describe_child): Use get_path_expr_parent to determine
10732 the parent expression.
10733 If there field represents an anonymous struct or union and
10734 has no name, set an appropriate display name and expression.
10735 (cplus_describe_child): Likewise.
10736
10737 2012-01-12 Pedro Alves <palves@redhat.com>
10738
10739 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10740 available when %ebp is found to be zero (outermost).
10741
10742 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10743
10744 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10745 an internal gdb_static_assert.
10746 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10747
10748 2012-01-11 Tom Tromey <tromey@redhat.com>
10749
10750 PR gdb/9598:
10751 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10752 catch" and "catch throw".
10753
10754 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10755
10756 * blockframe.c (block_innermost_frame): Start search from selected
10757 frame, if present, or otherwise the current frame.
10758
10759 * c-exp.y (variable): Update innermost_block for
10760 'block COLONCOLON NAME' clause.
10761 * m2-exp.y (variable): Ditto.
10762 * objc-exp.y (variable): Ditto.
10763
10764 2012-01-10 Tom Tromey <tromey@redhat.com>
10765
10766 PR python/13199:
10767 * python/python.c (finish_python_initialization): Set sys.argv.
10768
10769 2012-01-10 Doug Evans <dje@google.com>
10770
10771 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10772 "want_line_info". All callers updated.
10773 (dwarf_decode_lines_1): New function.
10774 (handle_DW_AT_stmt_list): Add function comment.
10775 New arg "want_line_info". All callers updated.
10776 (read_file_scope,read_type_unit_scope): Move comment from
10777 handle_DW_AT_stmt_list to here.
10778
10779 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10780
10781 Fix regression after libiberty/ update for GCC PR 6057 and others.
10782 * c-exp.y (operator) <OPERATOR DELETE>
10783 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10784 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10785 (make_builtin_type, make_name): New variable i, add gdb_assert.
10786 (operator) <OPERATOR NEW>: Update ARGS to 3.
10787 (operator) <OPERATOR DELETE>: Add trailing space.
10788 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10789 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10790 * cp-support.c (cp_canonicalize_string): Check NULL from
10791 cp_comp_to_string, call warning and return.
10792
10793 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 Fix duplicate .o files after omitting libbfd.a.
10796 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10797 (SFILES): Add corelow.c.
10798 (COMMON_OBS): Add corelow.o.
10799 (ALLDEPFILES): Remove corelow.c.
10800 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10801 * config/alpha/alpha-osf3.mh: Likewise.
10802 * config/alpha/fbsd.mh: Likewise.
10803 * config/arm/nbsdaout.mh: Likewise.
10804 * config/arm/nbsdelf.mh: Likewise.
10805 * config/i386/i386gnu.mh: Likewise.
10806 * config/ia64/hpux.mh: Likewise.
10807 * config/ia64/linux.mh: Likewise.
10808 * config/m32r/linux.mh: Likewise.
10809 * config/m68k/linux.mh: Likewise.
10810 * config/mips/irix5.mh: Likewise.
10811 * config/mips/irix6.mh: Likewise.
10812 * config/pa/hpux.mh: Likewise.
10813 * config/pa/linux.mh: Likewise.
10814 * config/powerpc/aix.mh: Likewise.
10815 * config/sparc/linux.mh: Likewise.
10816 * config/sparc/linux64.mh: Likewise.
10817 * config/sparc/sol2.mh: Likewise.
10818 * config/vax/vax.mh: Likewise.
10819 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10820 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10821 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10822 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10823 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10824 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10825 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10826 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10827 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10828 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10829 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10830 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10831 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10832 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10833 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10834 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10835 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10836 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10837 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10838 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10839 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10840 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10841 corelow.o from gdb_target_obs.
10842 * corefile.c (core_target): Update the comment on NULL value.
10843 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10844 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10845 MATCHES. Drop YUMMY set on NULL.
10846 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10847 reclaim CORE_DATA if it is already NULL.
10848
10849 2012-01-09 Doug Evans <dje@google.com>
10850
10851 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10852 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10853
10854 2012-01-09 Keith Seitz <keiths@redhat.com>
10855
10856 * breakpoint.c (wrapper.h): Don't include.
10857
10858 2012-01-09 Keith Seitz <keiths@redhat.com>
10859
10860 * Makefile.in (SFILES): Remove wrapper.c.
10861 (HFILES_NO_SRCDIR): Remove wrapper.h.
10862 (COMMON_OBS): Remove wrapper.o.
10863 * cli/cli-interp.c: Don't inlude wrapper.h.
10864 * corelow.c: Likewise.
10865 (core_open): Replace gdb_target_find_new_threads with
10866 TRY_CATCH around target_find_new_threads.
10867 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10868 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10869 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10870 evaluate_expression.
10871 (varobj_set_value): Likewise for evaluate_expression and
10872 value_assign.
10873 (install_new_variable): Likewise for value_fetch_lazy.
10874 (adjust_value_for_child_access): Likewise for value_ind.
10875 (c_describe_child): Likewise for value_subscript and
10876 value_ind.
10877 (c_value_of_root): Likewise for evaluate_expression.
10878 * wrapper.c: Remove.
10879 * wrapper.h: Remove.
10880
10881 2012-01-09 Doug Evans <dje@google.com>
10882
10883 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10884 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10885 "abfd" args with "section". All callers updated.
10886 Error checking code moved ...
10887 (error_check_comp_unit_head): ... here. New function.
10888 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10889 Delete arg "abfd". New arg "type_offset". All callers updated.
10890 (create_debug_types_hash_table): Simplify by using
10891 read_and_check_type_unit_head.
10892
10893 * parser-defs.h (namecopy): Delete.
10894 * parse.c (namecopy, namecopy_size): Move into copy_name.
10895
10896 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10897
10898 Partially fix duplicate .o files after omitting libbfd.a.
10899 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10900 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10901 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10902 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10903 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10904 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10905 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10906
10907 2012-01-09 Pedro Alves <palves@redhat.com>
10908
10909 * MAINTAINERS: Update my email address.
10910
10911 2012-01-08 Doug Evans <dje@google.com>
10912
10913 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10914 n_type_units. Rename type_comp_units to all_type_units.
10915 All uses updated.
10916 (add_signatured_type_cu_to_table): Renamed from
10917 add_signatured_type_cu_to_list. All callers updated.
10918
10919 * gdbtypes.h (struct cplus_struct_type): Delete member
10920 nfn_fields_total. All uses removed.
10921
10922 2012-01-06 Doug Evans <dje@google.com>
10923
10924 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10925 to top of file.
10926 (dwarf2_find_comp_unit): Delete.
10927 (process_psymtab_comp_unit): Make result "void".
10928 Delete args buffer, info_ptr, buffer_size, and replace with
10929 "section". All callers updated.
10930 (dwarf2_build_psymtabs_hard): Simplify.
10931
10932 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10933 Thiago Jung Bauermann <bauerman@br.ibm.com>
10934
10935 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10936 before `struct gdb_exception'.
10937 * breakpoint.c (update_global_location_list_nothrow)
10938 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10939 * cp-abi.c (value_rtti_type): Likewise.
10940 * cp-support.c (cp_validate_operator): Likewise.
10941 * infrun.c (insert_exception_resume_breakpoint)
10942 (check_exception_resume, keep_going): Likewise.
10943 * mi-interp.c (mi_breakpoint_created)
10944 (mi_breakpoint_modified): Likewise.
10945 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10946 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10947 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10948
10949 2012-01-05 Doug Evans <dje@google.com>
10950
10951 * dwarf2read.c (statement_prologue): Delete, unused.
10952
10953 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10954 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10955
10956 * dwarf2read.c (comp_unit_header): Delete, unused.
10957
10958 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10959
10960 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10961 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10962
10963 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10964
10965 * infrun.c (normal_stop): Don't skip calling the normal_stop
10966 observers if the thread was doing a multi-step, but stopped for
10967 some reason other than stepping.
10968
10969 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10970
10971 * cli/cli-decode.h: Add comments.
10972 (CMD_LIST_AMBIGUOUS): Moved to command.h
10973 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10974 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10975 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10976 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10977 (add_com, add_com_alias, add_info, add_info_alias)
10978 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10979 declarations.
10980 * command.h: Add and adjust comments.
10981 (CMD_LIST_AMBIGUOUS): Moved here.
10982 (help_cmd, help_cmd_list): Delete declarations.
10983
10984 2012-01-04 Doug Evans <dje@google.com>
10985
10986 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10987 All callers updated.
10988 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10989 Replace all arguments with "per_cu". All callers updated.
10990
10991 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10992
10993 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10994 New arg "per_cu". All callers updated.
10995
10996 Delete #if 0'd out code.
10997 * language.c (binop_result_type): Delete.
10998 (simple_type, ordered_type, same_type, integral_type): Delete.
10999 (numeric_type, character_type, string_type, boolean_type): Delete.
11000 (float_type, structured_type): Delete.
11001 * language.h: Update.
11002
11003 2012-01-04 Tom Tromey <tromey@redhat.com>
11004
11005 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11006
11007 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11008
11009 * corefile.c (close_exec_file): Delete.
11010 (reopen_exec_file): Remove commented out code that seems related
11011 to close_exec_file, which is being deleted here.
11012 * inferior.h (close_exec_file): Delete.
11013 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11014
11015 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11016
11017 * ada-lang.c: #include "cli/cli-utils.h".
11018 (get_selections): Use skip_spaces.
11019 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11020 (catch_ada_exception_command_split): Use skip_spaces.
11021 (ada_decode_assert_location): Likewise.
11022
11023 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11024
11025 * linespec.c (decode_line_internal): Check for C++ or Java
11026 compound constructs only if the current language is C, C++
11027 or Java.
11028
11029 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 Revert:
11032 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11033 Joel Brobecker <brobecker@adacore.com>
11034 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11035 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11036 3 times.
11037 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11038 fall through into AT_ENTRY_POINT.
11039 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11040 DUMMY_ADDR with it.
11041 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11042 PPC_INSN_SIZE skip to 3 times.
11043
11044 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11045
11046 * linespec.c (add_minsym): Preserve function descriptors.
11047
11048 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11049
11050 * breakpoint.c (all_locations_are_pending): Consider locations
11051 in program spaces executing during startup pending as well.
11052
11053 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11054
11055 Copyright year update in most files of the GDB Project.
11056
11057 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11058
11059 * copyright.sh: Delete.
11060 * copyright.py: Rewrite.
11061
11062 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11063
11064 * gnulib/extra/update-copyright: New file, imported from gnulib.
11065
11066 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11067
11068 * README (Copyright and License Notices): New section.
11069
11070 2012-01-03 Tom Tromey <tromey@redhat.com>
11071
11072 PR python/12533:
11073 * python/py-value.c (valpy_dereference, valpy_get_address
11074 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11075 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11076 (valpy_absolute, valpy_richcompare): Free intermediate values.
11077
11078 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11079
11080 * ada-lang.c: Reformat the copyright notice.
11081
11082 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11085 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11086 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11087 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11088 Revert this part of:
11089 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11090 Build gdb directly from *.o files not using libgdb.a.
11091 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11092
11093 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11094
11095 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11096 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11097 Reformat the copyright header.
11098
11099 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 Revert this part of:
11102 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11103 Remove the gdbtui binary.
11104 * gdb.c (main): Remove args.interpreter_p initialization.
11105 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11106 * main.h (struct captured_main_args): Remove interpreter_p.
11107
11108 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11109
11110 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11111
11112 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11113
11114 * top.c (print_gdb_version): Update copyright year.
11115
11116 2012-01-02 Yao Qi <yao@codesourcery.com>
11117
11118 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11119
11120 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11121 Joel Brobecker <brobecker@adacore.com>
11122
11123 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11124 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11125 3 times.
11126 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11127 fall through into AT_ENTRY_POINT.
11128 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11129 DUMMY_ADDR with it.
11130 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11131 PPC_INSN_SIZE skip to 3 times.
11132
11133 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11134
11135 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11136 the return value.
11137 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11138
11139 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 Build gdb directly from *.o files not using libgdb.a.
11142 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11143 (COMMON_OBS): Remove solib-target.o.
11144 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11145 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11146 (LIBGDB_OBS, libgdb.a): Move it above.
11147 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11148 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11149 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11150 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11151 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11152 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11153 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11154 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11155 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11156 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11157 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11158 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11159 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11160 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11161 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11162 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11163 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11164 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11165 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11166 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11167 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11168 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11169 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11170 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11171 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11172 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11173 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11174
11175 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11176
11177 Remove the gdbtui binary.
11178 * .gitignore (/gdbtui): Remove.
11179 * Makefile.in (TUI): Remove.
11180 (SUBDIR_TUI_OBS): Remove tui-main.o.
11181 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11182 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11183 (tui-main.o): Remove.
11184 (all_object_files): Remove tui-main.o.
11185 * NEWS: New note for the gdbtui removal.
11186 * configure: Rebuilt.
11187 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11188 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11189 CONFIG_UNINSTALL respectively.
11190 * gdb.c (main): Remove args.interpreter_p initialization.
11191 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11192 * main.h (struct captured_main_args): Remove interpreter_p.
11193 * tui/tui-main.c: Remove.
11194
11195 2012-01-01 Doug Evans <dje@google.com>
11196
11197 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11198 (dwarf2_physname, read_import_statement): Ditto.
11199 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11200 (process_structure_scope read_subroutine_type): Ditto.
11201 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11202 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11203 (dwarf2_fetch_die_location_block): Ditto.
11204 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11205
11206 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11207 All callers updated.
11208 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11209 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11210 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11211
11212 * dwarf2read.c (load_cu): Move assert to more useful location.
11213
11214 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11215 All callers updated.
11216
11217 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11218 (dwarf2_elf_names): Minor reformat.
11219 (dwarf2_per_cu_data): Tweak comment.
11220 (dwarf2_read_section): Fix comment.
11221 (create_all_comp_units): Fix comment.
11222 (load_full_comp_unit): Fix comment.
11223 (process_full_comp_unit): Fix comment.
11224 (read_signatured_type): Fix comment.
11225
11226 For older changes see ChangeLog-2011.
11227 \f
11228 Local Variables:
11229 mode: change-log
11230 left-margin: 8
11231 fill-column: 74
11232 version-control: never
11233 coding: utf-8
11234 End: