2012-11-07 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-07 Pedro Alves <palves@redhat.com>
2
3 * arm-tdep.c: Make defs.h be the first include.
4 * coff-pe-read.c: Ditto.
5 * gnu-nat.c: Ditto.
6 * go32-nat.c: Ditto.
7 * i386-nat.c: Ditto.
8 * ppcnbsd-nat.c: Ditto.
9 * ada-varobj.h: Don't include defs.h.
10 * i386-darwin-tdep.h: Ditto.
11 * i386-nat.h: Ditto.
12
13 2012-11-07 Pedro Alves <palves@redhat.com>
14
15 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
16 Committee.
17
18 2012-11-07 Pierre Muller <muller@sourceware.org>
19
20 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
21 File already uses "gdb_dirent.h" header.
22
23 2012-11-07 Yao Qi <yao@codesourcery.com>
24
25 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
26 tracepoint_count'.
27
28 2012-11-06 Tom Tromey <tromey@redhat.com>
29
30 * target.h (inferior_has_forked, inferior_has_vforked)
31 (inferior_has_execd, inferior_has_called_syscall): Remove
32 declarations.
33
34 2012-11-06 Pierre Muller <muller@sourceware.org>
35
36 * remote.c (remote_insert_hw_breakpoint): ARI fix,
37 add missing internalization markup.
38
39 2012-11-06 Pedro Alves <palves@redhat.com>
40
41 PR gdb/14810
42
43 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
44
45 2012-11-06 Pierre Muller <muller@sourceware.org>
46
47 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
48 is not executable.
49
50 2012-11-05 Joel Brobecker <brobecker@adacore.com>
51
52 * gnulib/update-gnulib.sh: New script.
53
54 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
55
56 * MAINTAINERS: Update my email address.
57
58 2012-11-05 Tom Tromey <tromey@redhat.com>
59
60 * frame.c (put_frame_register): Don't use temporary buffer.
61
62 2012-11-05 Pedro Alves <palves@redhat.com>
63
64 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
65 child. Clear 'pending_detach'.
66 * infrun.c (handle_vfork_child_exec_or_exit): Clear
67 'pending_detach' in the vfork parent.
68
69 2012-11-05 Doug Evans <dje@google.com>
70
71 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
72 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
73 * dwarf2read.c: #include "elf-bfd.h".
74 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
75 (dwop_section_names): Renamed from dwo_section names. All uses
76 updated. Add entries for .debug_cu_index, .debug_tu_index.
77 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
78 All uses updated.
79 (struct dwp_sections): New type.
80 (struct virtual_dwo_sections): New type.
81 (struct dwp_hash_table): New type.
82 (struct dwp_file): New type.
83 (init_cutu_and_read_dies): Ensure DWO info/types section has been
84 read in. Handle DWOs coming from DWP files.
85 (lookup_dwo_file_slot): New function.
86 (dwarf2_locate_dwo_sections): Move definition closer to use.
87 (create_dwo_debug_info_hash_table_reader): Renamed from
88 create_debug_info_hash_table_reader. All callers updated.
89 (create_dwo_debug_info_hash_table): Renamed from
90 create_debug_info_hash_table. All callers updated.
91 (create_dwp_hash_table): New function.
92 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
93 (lookup_dwo_in_dwp): New function.
94 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
95 is_dwp. All callers updated.
96 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
97 (open_and_init_dwo_file): Renamed from init_dwo_file.
98 All callers updated.
99 (lookup_dwo_file): Delete.
100 (dwarf2_locate_dwp_sections): New function.
101 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
102 (allocate_dwp_loaded_cutus_table): New function.
103 (open_and_init_dwp_file): New function.
104 (lookup_dwo_cutu): New function.
105 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
106
107 2012-11-03 Yao Qi <yao@codesourcery.com>
108
109 Fix PR gdb/14617.
110 * breakpoint.c (trace_pass_set_count): Call
111 observer_notify_breakpoint_modified instead of
112 observer_notify_tracepoint_modified.
113 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
114
115 2012-11-02 Tom Tromey <tromey@redhat.com>
116
117 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
118 argument to complete_on_enum.
119
120 2012-11-02 Tom Tromey <tromey@redhat.com>
121
122 * configure: Rebuild.
123 * configure.ac (build_warnings): Add -Wempty-body.
124 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
125 * remote.c (handle_notification): Use braces for empty 'else' body.
126 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
127 'else' body.
128 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
129 'else' body.
130 * solib-som.c (som_relocate_section_addresses): Use braces
131 for empty 'else' body.
132 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
133 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
134
135 2012-11-02 Pedro Alves <palves@redhat.com>
136
137 PR gdb/14766
138
139 * infrun.c (handle_inferior_event)
140 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
141 null_ptid before handling a vfork child exec or exit. Switch to
142 the event ptid afterwards.
143
144 2012-11-02 Yao Qi <yao@codesourcery.com>
145
146 * std-operator.def: Remove OP_LABELED.
147 * eval.c: Remove the declaration of 'get_label'.
148 (get_label): Remove.
149 (evaluate_struct_tuple): Remove code handling OP_LABELED.
150 Update comment.
151 Remove local variable 'variantno' and related code.
152 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
153 with 'fieldno'.
154 * expprint.c (print_subexp_standard): Likewise.
155 (dump_subexp_body_standard): Likewise.
156 * parse.c (operator_length_standard): Likewise.
157
158 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
159
160 Incorporate ARI web page generator into GDB sources.
161 * contrib/ari/create-web-ari-in-src.sh: New file.
162 * contrib/ari/gdb_ari.sh: New file.
163 * contrib/ari/gdb_find.sh: New file.
164 * contrib/ari/update-web-ari.sh: New file.
165
166 2012-10-31 Tom Tromey <tromey@redhat.com>
167
168 * gdbarch.c: Rebuild.
169 * gdbarch.sh: Remove references to gdbarch_swap.
170 * corelow.c (core_open): Remove obsolete comment.
171
172 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
173
174 PR cli/14772
175 * c-typeprint.c (c_print_type): Don't print a space for vector
176 types, this is handled within the suffix.
177 (c_type_print_varspec_suffix): Add a space to vector suffix.
178
179 2012-10-26 Pedro Alves <palves@redhat.com>
180
181 * amd64-tdep.c (amd64_relocate_instruction): Use
182 store_unsigned_integer instead of memcpy.
183 * i386-tdep.c (i386_relocate_instruction): Ditto.
184
185 2012-10-26 Pedro Alves <palves@redhat.com>
186
187 * infrun.c (handle_inferior_event): Merge handling of
188 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
189 switch case.
190
191 2012-10-26 Pedro Alves <palves@redhat.com>
192
193 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
194 Remove comment.
195
196 2012-10-26 Pedro Alves <palves@redhat.com>
197
198 * target.c (target_waitstatus_to_string): Handle
199 TARGET_WAITKIND_VFORK_DONE.
200
201 2012-10-26 Pedro Alves <palves@redhat.com>
202
203 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
204 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
205
206 2012-10-24 Tristan Gingold <gingold@adacore.com>
207
208 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
209 Add comments.
210
211 2012-10-24 Joel Brobecker <brobecker@adacore.com>
212
213 * ravenscar-thread.c (ravenscar_wait): Only update the list
214 of threads and inferior_ptid if the inferior is still alive.
215
216 2012-10-24 Joel Brobecker <brobecker@adacore.com>
217
218 * ada-lang.c (is_known_support_routine): Use lbasename when
219 matching the symtab's filename against
220 known_runtime_file_name_patterns.
221
222 2012-10-24 Joel Brobecker <brobecker@adacore.com>
223
224 * ada-lang.c (ada_same_array_size_p): New function.
225 (ada_promote_array_of_integrals): New function.
226 (coerce_for_assign): Add handling of arrays where the elements
227 are integrals of a smaller size than the size of the target
228 array element type.
229
230 2012-10-24 Joel Brobecker <brobecker@adacore.com>
231
232 * doublest.c (convert_doublest_to_floatformat): Fix comparison
233 against maximum exponent value.
234
235 2012-10-24 Joel Brobecker <brobecker@adacore.com>
236
237 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
238 "unwind-seh.c".
239
240 2012-10-24 Joel Brobecker <brobecker@adacore.com>
241
242 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
243 strip typedef layer when computing the fixed type's field type,
244 only when computing its size.
245
246 2012-10-24 Mark Kettenis <kettenis@gnu.org>
247
248 PR gdb/12783
249 * i386-tdep.c (i386_return_value): Handle complex double and long
250 double.
251
252 2012-10-24 Joel Brobecker <brobecker@adacore.com>
253
254 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
255 New local variable args_len.
256 Quote the name of the executable when computing the command line.
257
258 2012-10-23 Mark Kettenis <kettenis@gnu.org>
259
260 PR gdb/12796
261 PR gdb/12798
262 PR gdb/12800
263 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
264 AMD64_FTAG_REGNUM.
265 * amd64-tdep.c (amd64_classify): Classify complex types.
266 (amd64_return_value): Handle the COMPLEX_X87 class.
267
268 2012-10-23 Joel Brobecker <brobecker@adacore.com>
269
270 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
271 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
272
273 2012-10-23 Joel Brobecker <brobecker@adacore.com>
274
275 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
276 function.
277 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
278 to amd64_windows_auto_wide_charset.
279
280 2012-10-23 Yao Qi <yao@codesourcery.com>
281
282 * event-top.c (mark_async_signal_handler_wrapper): Remove.
283 * event-top.h: Remove its declaration.
284 (async_request_quit): Call mark_async_signal_handler instead of
285 mark_async_signal_handler_wrapper.
286 (async_do_nothing, async_disconnect): Likewise.
287 (async_stop_sig): Likewise.
288 * remote.c (handle_remote_sigint): Likewise.
289 (handle_remote_sigint_twice): Likewise.
290
291 2012-10-23 Yao Qi <yao@codesourcery.com>
292
293 * event-top.c (sigint_token, sighup_token): Replace 'void *'
294 with 'static struct async_signal_handler *'.
295 (sighup_token, sigquit_token, sigstp_token): Likewise.
296
297 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
298
299 * gdbarch.sh (function_list): Use 'pstring' when printing
300 a variable which could return NULL.
301 * gdbarch.c: Regenerate.
302
303 2012-10-10 Joel Brobecker <brobecker@adacore.com>
304 Tom Tromey <tromey@redhat.com>
305
306 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
307 inneffective if condition by gdb assertion. Add function
308 description comment.
309
310 2012-10-19 Joel Brobecker <brobecker@adacore.com>
311
312 * parser-defs.h (struct exp_descriptor): Document constraint
313 on return value for "op_name" callbacks.
314
315 2012-10-18 Tom Tromey <tromey@redhat.com>
316
317 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
318 * symtab.c (iterate_over_some_symtabs): Constify.
319 * source.h (symtab_to_fullname): Return 'const char *'.
320 * source.c (symtab_to_fullname): Return 'const char *'.
321 * python/py-symtab.c (stpy_fullname): Constify.
322 * cli/cli-cmds.c (edit_command): Constify.
323 * breakpoint.c (print_breakpoint_location)
324 (update_static_tracepoint): Constify.
325
326 2012-10-18 Tom Tromey <tromey@redhat.com>
327
328 * breakpoint.c (compare_breakpoints): Fix comparison.
329
330 2012-10-18 Tom Tromey <tromey@redhat.com>
331
332 * valprint.c (generic_emit_char, generic_printstr): Pass size of
333 gdb_wchar_t to convert_between_encodings.
334
335 2012-10-17 Yao Qi <yao@codesourcery.com>
336
337 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
338 more parameter 'inferior'.
339 * corefile.c (write_memory_with_notification): Caller update.
340
341 * mi/mi-cmd-var.c: Include "mi-main.h".
342 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
343 to 1 and restore it later.
344 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
345 and "data-write-memory-bytes.
346 * mi/mi-interp.c: Include objfiles.h.
347 (mi_interpreter_init): Call observer_attach_memory_changed.
348 (mi_memory_changed): New.
349 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
350 New field.
351
352 * NEWS: Mention new MI notification "memory-changed".
353
354 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
355
356 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
357
358 2012-10-15 Doug Evans <dje@google.com>
359
360 New option -nh: inhibit loading of ~/.gdbinit.
361 * NEWS: Mention -nh.
362 * main.c (captured_main): Recognize and process -nh.
363 (print_gdb_help): Mention -nh.
364 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
365
366 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
367
368 PR backtrace/14646
369 PR gdb/14647
370 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
371 pc_regnum_from_eax.
372 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
373 nor pc_regnum_from_eax.
374 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
375 nor pc_regnum_from_eax.
376
377 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
378
379 Fix entry values resolving in inlined frames.
380 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
381 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
382 entries of FRAME.
383
384 2012-10-15 Joel Brobecker <brobecker@adacore.com>
385
386 * configure.ac: Build with -DMS_WIN64 if building with Python
387 enabled using GCC on amd64-windows.
388 * configure: Regenerate.
389
390 2012-10-15 Tom Tromey <tromey@redhat.com>
391
392 PR python/14635:
393 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
394 to Py_None.
395
396 2012-10-15 Tom Tromey <tromey@redhat.com>
397
398 PR python/14634:
399 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
400
401 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
402
403 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
404 reset thread numbering back to 1.
405
406 2012-10-11 Doug Evans <dje@google.com>
407
408 PR breakpoints/14643.
409 * linespec.c (struct ls_parser): New member keyword_ok.
410 (linespec_lexer_lex_string): Add comment.
411 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
412 for one.
413 (parse_linespec): Set keyword_ok.
414
415 2012-10-10 Doug Evans <dje@google.com>
416
417 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
418 "0x" prefix on address in log message.
419
420 * dwarf2read.c (read_1_byte): Add const to buf parameter.
421 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
422 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
423 (lookup_dwo_file): Add const to dwo_name parameter.
424 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
425
426 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
427
428 Fix crash during stepping on ppc32.
429 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
430 SYM.
431
432 2012-10-03 Doug Evans <dje@google.com>
433
434 PR symtab/14601
435 * buildsym.c (buildsym_init): Reset using_directives to NULL.
436
437 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
438
439 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
440 output and use uint32_t not long to ensure 4 byte size.
441
442 2012-10-02 Joel Brobecker <brobecker@adacore.com>
443
444 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
445 unref'ed it.
446
447 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
448
449 * target.c (simple_search_memory): Include access length in
450 warning message.
451
452 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
453 Edjunior Machado <emachado@linux.vnet.ibm.com>
454
455 PR gdb/13989
456 * solib.c (solib_find): Prevent GDB from loading native libraries when
457 debugging a cross-target corefile.
458
459 2012-09-28 selven <pcthegreat@gmail.com>
460
461 Make definition match declaration.
462
463 * regcache.c (regcache_register_status): Change return type to
464 enum register_status.
465
466 2012-09-28 Yao Qi <yao@codesourcery.com>
467
468 * mi/mi-main.c (mi_cmd_data_write_memory): Call
469 write_memory_with_notification instead of write_memory.
470 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
471 instead of target_write_memory.
472
473 2012-09-28 Yao Qi <yao@codesourcery.com>
474
475 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
476 when the length of content is not an even number.
477
478 2012-09-27 Tom Tromey <tromey@redhat.com>
479
480 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
481 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
482
483 2012-09-27 Joel Brobecker <brobecker@adacore.com>
484
485 * sol-thread.c (sol_thread_fetch_registers)
486 (sol_thread_store_registers): Delete commented out code.
487
488 2012-09-27 Joel Brobecker <brobecker@adacore.com>
489
490 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
491 Move these functions to sparc-sol-thread.c.
492 * sparc-sol-thread.c: New file.
493 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
494 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
495 configurations.
496 * configure: Regenerate.
497
498 2012-09-27 Joel Brobecker <brobecker@adacore.com>
499
500 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
501 Remove commented-out code.
502
503 2012-09-27 Joel Brobecker <brobecker@adacore.com>
504
505 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
506 Enable this code for sparc hosts only.
507
508 2012-09-27 Joel Brobecker <brobecker@adacore.com>
509
510 * procfs.h (procfs_find_LDT_entry): Add declaration.
511 * sol-thread.c (ps_lgetLDT): Delete local declaration of
512 function procfs_find_LDT_entry.
513
514 2012-09-27 Joel Brobecker <brobecker@adacore.com>
515
516 * procfs.c (proc_get_LDT_entry): Make static.
517
518 2012-09-27 Joel Brobecker <brobecker@adacore.com>
519
520 * procfs.c (proc_find_memory_regions): Fix declaration.
521
522 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
523
524 * amd64-tdep.c (amd64_return_value): Revert previous change
525 that used TYPE_LENGTH directly.
526 * bfin-tdep.c (bfin_extract_return_value): Likewise.
527 (bfin_store_return_value): Likewise.
528 * cris-tdep.c (cris_store_return_value): Likewise.
529 (cris_extract_return_value): Likewise.
530 * h8300-tdep.c (h8300_extract_return_value): Likewise.
531 * hppa-tdep.c (hppa64_return_value): Likewise.
532 * lm32-tdep.c (lm32_store_return_value): Likewise.
533 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
534 * spu-tdep.c (spu_value_from_register): Likewise.
535 * vax-tdep.c (vax_return_value): Likewise.
536
537 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
538
539 * gdbtypes.c (lookup_array_range_type): Expand parameters
540 LOW_BOUND and HIGH_BOUND to LONGEST.
541 (lookup_string_range_type): Likewise.
542 * gdbtypes.h (lookup_array_range_type): Likewise.
543 (lookup_string_range_type): Likewise.
544 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
545 Expand HIGHBOUND to ssize_t.
546 (value_string): Likewise.
547 * value.h (value_cstring): Expand parameter LEN to ssize_t.
548 (value_string): Likewise.
549
550 2012-09-27 Yao Qi <yao@codesourcery.com>
551
552 PR breakpoints/13898
553 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
554 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
555 per breakpoint type.
556
557 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
558
559 * procfs.c: Add gdb_bfd header.
560 * rs6000-nat.c: Likewise.
561 * solib-pa64.c: Likewise.
562 * spu-linux-nat.c: Likewise.
563 * windows-nat.c: Likewise.
564
565 2012-09-26 Tom Tromey <tromey@redhat.com>
566
567 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
568
569 2012-09-26 Tom Tromey <tromey@redhat.com>
570
571 * dwarf2read.c (mark_common_block_symbol_computed): New function.
572 (read_common_block): Handle child DIEs with
573 DW_AT_data_member_location.
574 (new_symbol_full): Add special case for common blocks.
575
576 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
577 Tom Tromey <tromey@redhat.com>
578
579 * dwarf2read.c (read_common_block): Rewrite.
580 (new_symbol_full): Handle DW_TAG_common_block.
581 * f-lang.c (head_common_list, find_common_for_function):
582 Remove.
583 * f-lang.h (struct common_entry, struct saved_f77_common,
584 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
585 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
586 BLANK_COMMON_NAME_LOCAL): Remove.
587 (struct common_block): New.
588 * f-valprint.c (list_all_visible_commons): Remove.
589 (info_common_command_for_block): New function.
590 (info_common_command): Use it.
591 * stack.c (iterate_over_block_locals): Special case for
592 COMMON_BLOCK_DOMAIN.
593 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
594 constant.
595 (struct general_symbol_info) <value.common_block>: New field.
596 (SYMBOL_VALUE_COMMON_BLOCK): New define.
597
598 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
599 Tom Tromey <tromey@redhat.com>
600
601 * f-lang.c (allocate_saved_bf_node,
602 allocate_saved_function_node, allocate_saved_f77_common_node,
603 allocate_common_entry_node, tail_common_list, current_common,
604 saved_bf_list, saved_bf_list_end, current_head_bf_list,
605 tmp_bf_ptr, add_common_block, add_common_entry,
606 find_first_common_named, patch_common_entries,
607 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
608 global_remote_debug, get_bf_for_fcn, saved_function_list,
609 saved_function_list_end, clear_function_list, struct saved_fcn,
610 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
611 SAVED_BF, SAVED_BF_PTR): Remove.
612 * f-lang.h (tail_common_list, current_common,
613 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
614 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
615 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
616 real_main_c_value): Remove.
617 * f-valprint.c (there_is_a_visible_common_named): Remove.
618
619 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
620
621 * breakpoint.c (update_global_location_list): Ignore previous
622 duplicate status of a breakpoint when starting a new scan for
623 duplicate breakpoints.
624
625 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
626 PR breakpoints/14419
627 * arm-tdep.c (arm_skip_prologue): Extending producer check to
628 support LLVM compiler.
629
630 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
631
632 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
633 * bfin-tdep.c (bfin_extract_return_value): Likewise.
634 (bfin_store_return_value): Likewise.
635 * cris-tdep.c (cris_store_return_value): Likewise.
636 (cris_extract_return_value): Likewise.
637 * h8300-tdep.c (h8300_extract_return_value): Likewise.
638 * hppa-tdep.c (hppa64_return_value): Likewise.
639 * lm32-tdep.c (lm32_store_return_value): Likewise.
640 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
641 * spu-tdep.c (spu_value_from_register): Likewise.
642 * vax-tdep.c (vax_return_value): Likewise.
643
644 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
645
646 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
647 parameter LEN to ssize_t.
648
649 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
650
651 * ada-valprint.c (ada_val_print_1): Eliminate single-use
652 variable LEN.
653 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
654 directly.
655 (alpha_store_return_value): Likewise.
656 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
657 (amd64_push_arguments): Likewise.
658 * ax-gdb.c (gen_trace_static_fields): Likewise.
659 (gen_traced_pop): Likewise.
660 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
661 * breakpoint.c (update_watchpoint): Likewise.
662 * findcmd.c (parse_find_args): Use local variable for type
663 instead of length.
664 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
665 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
666 (h8300_store_return_value): Likewise.
667 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
668 Use i386_darwin_arg_type_alignment directly.
669 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
670 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
671 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
672 (m68hc11_extract_return_value): Likewise.
673 * mep-tdep.c (mep_push_dummy_call): Likewise.
674 * printcmd.c (float_type_from_length): Likewise.
675 * s390-tdep.c (s390_value_from_register): Likewise.
676 * stack.c (read_frame_arg): Likewise.
677 * tracepoint.c (encode_actions_1): Likewise.
678 * valops.c (value_fetch_lazy): Use local variable for type
679 instead of length. Use TYPE_LENGTH directly.
680 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
681
682 2012-09-25 Joel Brobecker <brobecker@adacore.com>
683
684 * symtab.c (skip_prologue_sal): Fix typo in comment.
685
686 2012-09-25 Joel Brobecker <brobecker@adacore.com>
687
688 * linespec.c (create_sals_line_offset): Fix typo in comment.
689
690 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
691
692 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
693 use plongest to print the array size.
694
695 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
696
697 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
698 * p-valprint.c (pascal_type_print_base): Likewise.
699
700 2012-09-22 Yao Qi <yao@codesourcery.com>
701
702 * remote.c (remote_get_trace_status): Remove setting default
703 values of fields of 'ts'.
704
705 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
706
707 Fix internal error on canonicalization of clang types.
708 * cp-name-parser.y (operator): New comment at make_operator call for
709 new, delete, new[] and delete[].
710 (exp): Use "sizeof ". Add new comment at make_operator call.
711
712 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
713
714 Fix disassemble without parameters in tailcall frame.
715 * cli/cli-cmds.c (disassemble_current_function): Use
716 get_frame_address_in_block.
717
718 2012-09-21 Tom Tromey <tromey@redhat.com>
719
720 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
721 TYPE_CODE_UNION>: Unify, removing a goto.
722
723 2012-09-21 Tom Tromey <tromey@redhat.com>
724
725 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
726
727 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
728
729 * findvar.c (read_frame_register_value): Mark the result value as
730 optimized out if any of the input registers have been optimized out.
731
732 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
733
734 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
735
736 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
737
738 * eval.c (evaluate_subexp_standard): Eliminate single-use
739 variable LOWER.
740
741 2012-09-21 Yao Qi <yao@codesourcery.com>
742
743 * mi/mi-interp.c: Declare mi_record_changed.
744 (mi_interpreter_init): Call observer_attach_record_changed.
745 (mi_record_changed): New.
746 * record.c (record_open): Call observer_notify_record_changed.
747 (cmd_record_stop): Call observer_notify_record_changed.
748 * NEWS: Mention it.
749
750 2012-09-20 Tom Tromey <tromey@redhat.com>
751
752 * NEWS: Update.
753 * python/python.c (finalize_python): New function.
754 (_initialize_python): Make a final cleanup.
755
756 2012-09-19 Doug Evans <dje@google.com>
757
758 * buildsym.h (param_symbols): Delete, unused.
759 (context_stack): Delete member "params", unused.
760 * buildsym.c (push_context): Update.
761 * dwarf2read.c (read_func_scope): Update.
762
763 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
764
765 * sh-tdep.c (sh_register_convert_to_virtual)
766 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
767 all callers. Just do a memcpy if not the little-endian case.
768
769 * h8300-tdep.c (h8300_gdbarch_init): Invoke
770 set_gdbarch_double_format and set_gdbarch_long_double_format.
771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
772 set_gdbarch_double_format.
773 * sh-tdep.c (sh_gdbarch_init): Likewise.
774
775 * NEWS: Document the removal of SH's 'regs' command.
776 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
777 command.
778
779 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
780
781 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
782 `jump'.
783
784 2012-09-18 Joel Brobecker <brobecker@adacore.com>
785
786 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
787 language when iterating over symbols.
788
789 2012-09-18 Yao Qi <yao@codesourcery.com>
790
791 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
792 (mi_interpreter_init): Call observer_attach_tsv_created and
793 observer_attach_tsv_deleted.
794 (mi_tsv_created, mi_tsv_deleted): New.
795 * tracepoint.c (delete_trace_state_variable): Call
796 observer_notify_tsv_deleted.
797 (trace_variable_command): Call observer_notify_tsv_created.
798 (delete_trace_variable_command): Call
799 observer_notify_tsv_deleted.
800 (create_tsv_from_upload): Call observer_notify_tsv_created.
801 * NEWS: Mention it.
802
803 2012-09-18 Yao Qi <yao@codesourcery.com>
804
805 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
806 if traceframe changed.
807 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
808 "trace-find".
809 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
810 (mi_interpreter_init): Hook mi_traceframe_changed to observer
811 'traceframe_changed'.
812 (mi_traceframe_changed): New.
813 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
814 New field.
815 * NEWS: Mention the new MI notification.
816
817 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
818
819 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
820
821 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
824 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
825 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
826 Extend code also for PaX support. Convert all gdb_assert to warning
827 calls.
828
829 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
830
831 Implement auto-load user conveniences suggested by Doug Evans.
832 * auto-load.c: Include top.h.
833 (file_is_auto_load_safe): New variable advice_printed. Print advice.
834 (_initialize_auto_load): New variable scripts_directory_help. Mention
835 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
836 scripts-directory. Document in online help one can use also files for
837 set auto-load safe-path.
838 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
839 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
840
841 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
842
843 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
844 of LEN.
845
846 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
847
848 * m2-valprint.c (m2_print_array_contents): Eliminate variable
849 ELTLEN and use TYPE_LENGTH directly.
850 (m2_val_print): Likewise.
851 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
852 variable LEN and use TYPE_LENGTH directly.
853 (m68k_svr4_store_return_value): Likewise.
854 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
855 ARGLEN and use TYPE_LENGTH directly.
856 (mips_o64_push_dummy_call): Likewise.
857 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
858 variable LENGTH and use TYPE_LENGTH directly.
859 (s390_function_arg_float): Likewise.
860 (s390_function_arg_integer): Likewise.
861 (s390_push_dummy_call): Likewise.
862 (s390_return_value_convention): Likewise.
863 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
864 TYPE_LENGTH directly.
865
866 2012-09-17 Yao Qi <yao@codesourcery.com>
867
868 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
869 Update comment to add_setshow_integer_cmd.
870 * cli/cli-setshow.c (do_set_command): Handle case
871 'var_zuinteger_unlimited'.
872 (do_show_command): Likewise.
873 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
874 for command 'remotetimeout'.
875 * command.h (enum var_types): New zuinteger_unlimited. Update comment
876 to var_integer.
877 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
878 for command 'set listsize'.
879
880 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
881
882 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
883 variable LEN.
884
885 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 PR 14119
888 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
889 (frame_pop): Drop also TAILCALL_FRAME frames.
890 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
891
892 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
893 Pedro Alves <palves@redhat.com>
894
895 PR 14548
896 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
897 function start if we are already at function start. Both for
898 reverse-next and for reverse-step into function without line number
899 info.
900
901 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 Code cleanup - rename 'inline' depth to 'artificial' depth.
904 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
905 frame_id_artificial_p, extend the comment.
906 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
907 * frame.c (fprint_frame_id): Rename at a user, change debug output
908 text to "artificial=".
909 (skip_inlined_frames): Rename to ...
910 (skip_artificial_frames): ... here. Extend the comment.
911 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
912 (frame_id_inlined_p): Rename to ...
913 (frame_id_artificial_p): ... here. Rename at a user.
914 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
915 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
916 at a user.
917 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
918 Extend the comment.
919 (frame_id_inlined_p): Rename to ...
920 (frame_id_artificial_p): ... here.
921 * inline-frame.c (inline_frame_this_id): Rename at a user.
922
923 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
924
925 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
926 vector variables using vector_size syntax rather than array
927 syntax.
928
929 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
930
931 * valarith.c (value_concat): Replace unsafe ALLOCA with
932 XMALLOC/XFREE.
933
934 2012-09-14 Pedro Alves <palves@redhat.com>
935
936 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
937
938 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
939
940 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
941 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
942 data-directory as appropriate.
943
944 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
945
946 * printcmd.c (ui_printf): Eliminate single-use variable
947 PARAM_LEN.
948
949 2012-09-14 Yao Qi <yao@codesourcery.com>
950 Pedro Alves <palves@redhat.com>
951
952 * valops.c (value_assign): Move observer_notify_target_changed
953 below to replace reinit_frame_cache.
954
955 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
956
957 Refactor Python "gdb" module into a proper Python package, by
958 introducing a new "_gdb" module for code implemented in C, and
959 using reload/__import__ instead of exec.
960 * python/lib/gdb/__init__.py: Import * from _gdb.
961 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
962 prompt_hook, sys.argv): Moved from finish_python_initialization.
963 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
964 (packages, auto_load_packages): New list and function replacing
965 module_dict and auto-loading code, using __file__ instead of
966 gdb.PYTHONDIR and reload/__import__ instead of exec.
967 (GdbSetPythonDirectory): Replacing function of the same name
968 from finish_python_initialization, using reload/__import__ instead
969 of exec, as well as call auto_load_packages.
970 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
971 gdb_python_module and not gdb_module.
972 * python/python-internal.h (gdb_python_module): Declare.
973 * python/python.c (gdb_python_module): New global.
974 (before_prompt_hook): Check gdb_python_module and not gdb_module.
975 (_initialize_python): Rename gdb module to _gdb.
976 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
977 (finish_python_initialization): Move Python code to
978 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
979 __main__.
980
981 2012-09-13 Pedro Alves <palves@redhat.com>
982
983 * Makefile.in (COMMON_OBS): Add registry.o.
984 * registry.c: New file.
985 * registry.h (struct registry_container): Declare.
986 (registry_data_callback): New typedef.
987 (struct registry_data, struct registry_data_registration, struct
988 registry_data_registry): New type.
989 (register_data_with_cleanup, registry_alloc_data)
990 (registry_callback_adaptor, registry_clear_data)
991 (registry_container_free_data, registry_set_data, registry_data):
992 Declare.
993 (DEFINE_REGISTRY): Refactor structures and functions as shims over
994 the new common structures and functions.
995 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
996 callback typedefs.
997
998 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
999
1000 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1001 there is an error inserting hardware breakpoints and use the
1002 error message from the target.
1003
1004 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1005 Catch this exception and print the error message contained within. Do not
1006 print the default hardware error breakpoint message in this case.
1007
1008 2012-09-12 Doug Evans <dje@google.com>
1009
1010 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1011 cu == NULL.
1012
1013 2012-09-11 Doug Evans <dje@google.com>
1014
1015 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1016 .gdb_index symbol attributes if there are none.
1017
1018 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1019
1020 * symtab.h (struct minimal_symbol) [has_size]: New field.
1021 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1022 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1023 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1024 minimal symbols if the symbol's size is actually known.
1025 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1026 of msymbol's size field. Add comment.
1027 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1028 SET_MSYMBOL_SIZE to set the minimal symbol size.
1029
1030 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1031
1032 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1033 minimal_symbol struct object, rather than setting some of its
1034 fields one by one.
1035
1036 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1037
1038 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1039 passed_a_ptr flag when displaying typedef types.
1040
1041 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1042
1043 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1044 the optimized_out flag is preserved.
1045
1046 2012-09-10 Anthony Green <green@moxielogic.com>
1047
1048 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1049 prologue changes in GCC.
1050
1051 2012-09-10 Keith Seitz <keiths@redhat.com>
1052
1053 PR gdb/13483
1054 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1055 (BOOL_CONVERSION_BADNESS): ... this.
1056 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1057 (rank_one_type): Allow all boolean conversions
1058 permitted by the standard.
1059
1060 2012-09-06 Tom Tromey <tromey@redhat.com>
1061
1062 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1063 Don't decref py_objfile.
1064
1065 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1066
1067 Do not enable -lmcheck by default when Python is enabled with
1068 threading support.
1069 * configure.ac: (python_has_threads) New variable, by testing
1070 if WITH_THREAD is defined in Python.h.
1071 Move --enable-lmcheck after --with-python.
1072 Do not enable -lmcheck by default if python_has_threads=yes.
1073 Warn if --enable-lmcheck and python_has_threads=yes.
1074 * configure: Regenerate.
1075
1076 2012-08-31 Yao Qi <yao@codesourcery.com>
1077
1078 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1079 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1080 Update some commands.
1081 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1082 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1083 to 1.
1084
1085 2012-08-31 Yao Qi <yao@codesourcery.com>
1086
1087 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1088
1089 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1090
1091 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1092
1093 2012-08-29 Doug Evans <dje@google.com>
1094
1095 * main.c (print_gdb_help): Remove reference to
1096 --use-deprecated-index-sections.
1097
1098 2012-08-28 Yao Qi <yao@codesourcery.com>
1099
1100 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1101 (init_cmds): Call add_setshow_uinteger_cmd for command
1102 'max-user-call-depth'.
1103 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1104 declaration of 'max_user_call_depth'.
1105 * frame.c (backtrace_limit): Add 'unsigned'.
1106 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1107 'limit'.
1108 * remote.c (remoteaddresssize): Add 'unsigned'.
1109 (remote_address_masked): Change local var 'address_size' to
1110 'unsigned'.
1111 (_initialize_remote): Call add_setshow_uinteger_cmd for
1112 'remoteaddresssize'.
1113 * top.c (history_size): Add 'unsigned'.
1114 (show_commands): Change local variables to 'unsigned'.
1115 (set_history_size_command): Don't check history_size is negative.
1116 Adjust the condition to call unstifle_history and set history_size
1117 to UNIT_MAX.
1118
1119 2012-08-28 Pedro Alves <palves@redhat.com>
1120
1121 PR gdb/14428
1122
1123 * infcmd.c (default_print_one_register_info): New, factored out
1124 from default_print_registers_info.
1125 (default_print_registers_info): Use it. Mark value unavailable if
1126 necessary.
1127 (registers_info): Print user registers with
1128 default_print_one_register_info.
1129
1130 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1131
1132 PR tui/14486
1133 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1134 is not NULL before referencing it.
1135
1136 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1139 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1140 original PC for it.
1141
1142 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1143 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 * auto-load.c (auto_load_objfile_script): Rename to ...
1146 (auto_load_objfile_script_1): ... here, change variable realname to
1147 parameter realname, document it, add return value, add variable retval.
1148 (auto_load_objfile_script): New function.
1149
1150 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1153 followed by a whitespace.
1154
1155 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 PR gdb/14494.
1158 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1159 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1160 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1161 here.
1162
1163 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1164
1165 * memattr.c (create_mem_region): Fix memory region overlapping
1166 checking.
1167
1168 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1169
1170 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1171 with xmalloc/cleanup.
1172 * mt-tdep.c (mt_push_dummy_call): Likewise.
1173 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1174 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1175
1176 2012-08-24 Yao Qi <yao@codesourcery.com>
1177
1178 * jv-exp.y (push_expression_name): Add "." at the end of error
1179 message.
1180
1181 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1182
1183 Document how to return from "python-interactive" to GDB.
1184 * python/python.c (_initialize_python): Update documentation.
1185
1186 2012-08-23 Pedro Alves <palves@redhat.com>
1187
1188 * infrun.c (_initialize_infrun) <handle command help text>:
1189 Mention that multiple signals are supported.
1190
1191 2012-08-23 Pedro Alves <palves@redhat.com>
1192
1193 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1194 string.
1195
1196 2012-08-23 Yao Qi <yao@codesourcery.com>
1197
1198 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1199 (tfind_1): Don't call registers_changed, set_traceframe_num,
1200 and clear_traceframe_info.
1201 Call set_current_traceframe.
1202 (set_current_traceframe): call set_traceframe_num.
1203
1204 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1205
1206 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1207 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1208
1209 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1210
1211 Enable readline in Python in a GDB-specific way and block the
1212 standard Python readline module to prevent conflicts with GDB.
1213 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1214 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1215 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1216 * python/py-gdb-readline.c: New file.
1217 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1218 prototype.
1219 * python/python.c (_initialize_python): Call
1220 gdbpy_initialize_gdb_readline.
1221
1222 2012-08-22 Keith Seitz <keiths@redhat.com>
1223
1224 * defs.h: Include build-gnulib/config.h
1225
1226 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1227
1228 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1229 and blx pc.
1230
1231 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1232
1233 Add a new "python-interactive" command that starts a standard
1234 Python interactive prompt with "pi" as alias, and add "py" as
1235 an alias to "python".
1236 * NEWS: Mention the new commands.
1237 * python/python.c (eval_python_command): New function.
1238 (python_interactive_command): For "python-interactive" with
1239 arguments, call eval_python_command. For "python-interactive"
1240 without arguments, call PyRun_InteractiveLoop.
1241 (_initialize_python): Add "python-interactive" command with
1242 "pi" as alias, and add "py" as an alias to "python".
1243
1244 2012-08-22 Tom Tromey <tromey@redhat.com>
1245
1246 * defs.h (quit_flag): Don't declare.
1247 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1248 (QUIT): Use new functions.
1249 * event-top.c (command_handler): Use clear_quit_flag.
1250 (handle_sigint): Use set_quit_flag.
1251 (async_request_quit): Use check_quit_flag. Don't check
1252 immediate_quit.
1253 * exceptions.c (throw_exception): Use clear_quit_flag.
1254 * main.c (captured_main): Use clear_quit_flag.
1255 * python/python.c (clear_quit_flag, set_quit_flag)
1256 (check_quit_flag): New functions.
1257 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1258 clear_quit_flag.
1259 * remote.c (remote_wait_as): Use check_quit_flag,
1260 clear_quit_flag.
1261 (remote_start_remote): Call QUIT.
1262 * symfile.c (load_progress): Use check_quit_flag.
1263 * top.c (command_loop): Use clear_quit_flag.
1264 (command_line_input): Call QUIT.
1265 * utils.c (quit_flag): Conditionally define.
1266 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1267 functions.
1268 (prompt_for_continue): Call QUIT. Use quit, not
1269 async_request_quit.
1270 * remote-mips.c (mips_expect_timeout): Call QUIT.
1271 * monitor.c (monitor_expect): Call QUIT.
1272
1273 2012-08-22 Tom Tromey <tromey@redhat.com>
1274
1275 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1276 (async_init_signals): Update.
1277 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1278 (SIGWINCH_HANDLER_BODY): Remove.
1279
1280 2012-08-22 Tom Tromey <tromey@redhat.com>
1281
1282 * jit.c (jit_object_close_impl): Don't malloc the objfile
1283 name.
1284 * objfiles.c (allocate_objfile): Don't malloc the objfile
1285 name.
1286 (free_objfile): Don't free the objfile name.
1287 * objfiles.h (struct objfile) <name>: Update comment.
1288 * symfile.c (reread_symbols): Fix reference counting. Don't
1289 malloc objfile name.
1290
1291 2012-08-22 Tom Tromey <tromey@redhat.com>
1292
1293 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1294 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1295 (symfile_bfd_open): Likewise.
1296 (generic_load): Likewise.
1297 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1298 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1299 gdb_bfd_open.
1300 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1301 Use gdb_bfd_open.
1302 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1303 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1304 (pmon_load_fast): Likewise.
1305 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1306 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1307 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1308 (macho_check_dsym): Likewise.
1309 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1310 (m32r_upload_command): Likewise.
1311 * gdb_bfd.h (gdb_bfd_cache): Declare.
1312 * gdb_bfd.c (struct gdb_bfd_data): New.
1313 (gdb_bfd_cache): New global.
1314 (struct gdb_bfd_cache_search): New.
1315 (hash_bfd): New function.
1316 (eq_bfd): Likewise.
1317 (gdb_bfd_open): Likewise.
1318 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1319 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1320 gdb_bfd_data.
1321 * exec.c (exec_file_attach): Use gdb_bfd_open.
1322 * dsrec.c (load_srec): Use gdb_bfd_open.
1323
1324 2012-08-22 Tom Tromey <tromey@redhat.com>
1325
1326 * dwarf2read.c (macro_start_file): Update.
1327 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1328 (free_objfile_per_bfd_storage): Destroy macro_cache.
1329 (allocate_objfile, free_objfile): Update.
1330 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1331 New field.
1332 (struct objfile) <macro_cache>: Remove.
1333 * symfile.c (reread_symbols): Update.
1334 * symmisc.c (print_symbol_bcache_statistics): Update.
1335 (print_objfile_statistics): Update.
1336
1337 2012-08-22 Tom Tromey <tromey@redhat.com>
1338
1339 * elfread.c (elf_symtab_read): Update.
1340 * objfiles.c (objfiles_bfd_data): New global.
1341 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1342 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1343 (allocate_objfile, free_objfile): Update.
1344 (_initialize_objfiles): Initialize objfiles_bfd_data.
1345 * objfiles.h (struct objfile_per_bfd_storage): New.
1346 (struct objfile) <per_bfd>: New field.
1347 <filename_cache>: Remove.
1348 (set_objfile_per_bfd): Declare.
1349 * symfile.c (reread_symbols): Update. Call
1350 set_objfile_per_bfd.
1351 (allocate_symtab): Update.
1352 * symmisc.c (print_symbol_bcache_statistics): Update.
1353 (print_objfile_statistics): Print the size of the BFD obstack.
1354
1355 2012-08-22 Tom Tromey <tromey@redhat.com>
1356
1357 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1358 * gdb_bfd.c: Use DEFINE_REGISTRY.
1359 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1360 (gdb_bfd_ref): Call bfd_alloc_data.
1361 (gdb_bfd_unref): Call bfd_free_data.
1362
1363 2012-08-22 Tom Tromey <tromey@redhat.com>
1364
1365 * registry.h (struct registry_fields): New.
1366 (REGISTRY_FIELDS): Redefine.
1367 (REGISTRY_ACCESS_FIELD): New macro.
1368 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1369 functions.
1370
1371 2012-08-22 Tom Tromey <tromey@redhat.com>
1372
1373 * auto-load.c (_initialize_auto_load): Update.
1374 * solib-svr4.c (_initialize_svr4_solib): Update
1375 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1376 * solib-darwin.c (_initialize_darwin_solib): Update.
1377 * registry.h: New file.
1378 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1379 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1380 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1381 (register_program_space_data_with_cleanup)
1382 (register_program_space_data, program_space_alloc_data)
1383 (clear_program_space_data, set_program_space_data)
1384 (program_space_data): Don't declare.
1385 * progspace.c: Use DEFINE_REGISTRY.
1386 (struct program_space_data, struct
1387 program_space_data_registration, struct
1388 program_space_data_registry, program_space_data_registry)
1389 (register_program_space_data_with_cleanup)
1390 (register_program_space_data, program_space_alloc_data)
1391 (program_space_free_data, clear_program_space_data)
1392 (set_program_space_data, program_space_data): Remove.
1393 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1394 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1395 (register_objfile_data_with_cleanup, register_objfile_data)
1396 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1397 declare.
1398 * objfiles.c: Use DEFINE_REGISTRY.
1399 (struct objfile_data, struct objfile_data_registration, struct
1400 objfile_data_registry, objfile_data_registry)
1401 (register_objfile_data_with_cleanup, register_objfile_data)
1402 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1403 (set_objfile_data, objfile_data): Remove.
1404 (_initialize_objfiles): Update.
1405 * jit.c (_initialize_jit): Update.
1406 * inflow.c (_initialize_inflow): Update.
1407 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1408 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1409 (register_inferior_data_with_cleanup, register_inferior_data)
1410 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1411 declare.
1412 * inferior.c: Use DEFINE_REGISTRY.
1413 (struct inferior_data, struct inferior_data_registration, struct
1414 inferior_data_registry, inferior_data_registry)
1415 (register_inferior_data_with_cleanup, register_inferior_data)
1416 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1417 (set_inferior_data, inferior_data): Remove.
1418 * auxv.c (_initialize_auxv): Update.
1419 * ada-lang.c (_initialize_ada_language): Update.
1420 * breakpoint.c (_initialize_breakpoint): Update.
1421 * i386-nat.c (i386_use_watchpoints): Update.
1422
1423 2012-08-22 Tom Tromey <tromey@redhat.com>
1424
1425 * exec.c (exec_close, exec_file_attach): Update.
1426 (add_to_section_table): Initialize 'key' field.
1427 (add_target_sections, remove_target_sections): Add 'key' argument.
1428 * exec.h (add_target_sections, remove_target_sections): Add
1429 'key' argument.
1430 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1431 (reload_shared_libraries_1): Update.
1432 * target.h (struct target_section) <key>: New field.
1433
1434 2012-08-22 Tom Tromey <tromey@redhat.com>
1435
1436 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1437
1438 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1439
1440 * symfile.c (allocate_symtab): Use host_address_to_string
1441 function instead of cast of pointer to long which is not
1442 compatible with x86_64-w64-mingw32 build.
1443
1444 2012-08-19 Andrew Pinski <apinski@cavium.com>
1445
1446 * mips-tdep.c (is_octeon): New function.
1447 (is_octeon_bbit_op): New function.
1448 (mips32_next_pc): Handle Octeon's bbit instructions.
1449 (mips32_instruction_has_delay_slot): Likewise.
1450
1451 2012-08-19 Andrew Pinski <apinski@cavium.com>
1452
1453 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1454 before the function.
1455
1456 2012-08-19 Andrew Pinski <apinski@cavium.com>
1457
1458 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1459
1460 2012-08-19 Keith Seitz <keiths@redhat.com>
1461
1462 PR c++/14365
1463 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1464 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1465
1466 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1467
1468 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1469 The typo broke "make TAGS".
1470
1471 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1472
1473 GDB 7.5 released.
1474
1475 2012-08-17 Keith Seitz <keiths@redhat.com>
1476
1477 PR c++/13356
1478 * gdbtypes.c (strict_type_checking): New variable.
1479 (show_strict_type_checking): New function.
1480 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1481 if strict type checking is disabled.
1482 (_initialize_gdbtypes): Add "check type" subcommand.
1483 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1484
1485 2012-08-17 Keith Seitz <keiths@redhat.com>
1486
1487 * language.h (type_mode): Remove.
1488 (type_check): Remove.
1489 (struct language_defn): Remove la_type_check.
1490 (STRICT_TYPE): Remove unused macro.
1491 (type_error): Remove.
1492 * language.c (set_type_range_case): Renamed to ...
1493 (set_range_case): ... this. Update all callers.
1494 Remove type_mode/type_check.
1495 (type_mode): Remove.
1496 (type_check): Remove.
1497 (show_type_command): Remove.
1498 (set_type_command): Remove.
1499 (language_info): Remove type checking output.
1500 (type_error): Remove unused function.
1501 (range_error): Update comment.
1502 (unknown_language_defn): Remove la_type_check.
1503 (auto_language_defn): Likewise.
1504 (local_language_defn): Likewise.
1505 (_initialize_language): Remove "check type" subcommand.
1506 * ada-lang.c (ada_language_defn): Remove la_type_check.
1507 * c-lang.c (c_language_defn): Likewise.
1508 (cplus_language_defn): Likewise.
1509 (asm_language_defn): Likewise.
1510 (minimal_language_defn): Likewise.
1511 * d-lang.c (d_language_defn): Likewise.
1512 * f-lang.c (f_language_defn): Likewise.
1513 * go-lang.c (go_language_defn): Likewise.
1514 * jv-lang.c (java_language_defn): Likewise.
1515 * m2-lang.c (m2_language_defn): Likewise.
1516 * objc-lang.c (objc_language_defn): Likewise.
1517 * opencl-lang.c (opencl_language_defn): Likewise.
1518 * p-lang.c (pascal_language_defn): Likewise.
1519
1520 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1521
1522 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1523
1524 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1525
1526 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1527 New function.
1528 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1529 using the regache. Use ia64_hpux_get_register_from_save_state_t
1530 to access the bsp and bspstore registers if not.
1531
1532 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1533
1534 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1535 * breakpoint.c (detach_breakpoints): Change pid parameter into
1536 a ptid. Adjust code accordingly.
1537 * infrun.c (handle_inferior_event): Delete variable child_pid.
1538 Update call to detach_breakpoints to pass the child ptid for
1539 fork events.
1540 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1541 assert that inferior_ptid's lwp is zero.
1542 (linux_handle_extended_wait): Update call to detach_breakpoints.
1543 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1544 detach_breakpoints.
1545
1546 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1547
1548 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1549 parent, only call detach_breakpoints if tts.tts_event ==
1550 TTEVT_VFORK.
1551
1552 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1553
1554 * dwarf2-frame.c (dwarf2_frame_cache): Use
1555 get_frame_address_in_block instead of get_frame_pc as
1556 the bound for executing the frame's FDE.
1557
1558 2012-08-16 Yao Qi <yao@codesourcery.com>
1559
1560 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1561 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1562 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1563 (c_type_print_varspec_suffix): Likewise.
1564 * eval.c (evaluate_subexp_standard): Likewise.
1565 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1566 (f_type_print_varspec_suffix): Likewise.
1567 * gdbtypes.c (is_scalar_type): Likewise.
1568 (recursive_dump_type): Likewise.
1569 * infcall.c (value_arg_coerce): Likewise.
1570 * m2-valprint.c (m2_val_print): Likewise.
1571 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1572 (pascal_type_print_varspec_suffix): Likewise.
1573 (pascal_type_print_base): Likewise.
1574 * p-valprint.c (pascal_val_print): Likewise.
1575 (pascal_val_print): Likewise.
1576 * valops.c (value_slice): Likewise.
1577 * valprint.c (scalar_type_p): Likewise.
1578 * valarith.c (value_bitstring_subscript): Remove.
1579 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1580 Remove comment on TYPE_CODE_BITSTRING.
1581
1582 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1583 TYPE_CODE_BITSTRING.
1584
1585 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1586 slot 0.
1587
1588 2012-08-16 Yao Qi <yao@codesourcery.com>
1589
1590 * tracepoint.c (trace_find_none_command): Remove.
1591 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1592
1593 2012-08-16 Yao Qi <yao@codesourcery.com>
1594
1595 * remote.c (handle_notification): Remove parameter 'length'.
1596 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1597
1598 2012-08-15 Keith Seitz <keiths@redhat.com>
1599
1600 * gdbtypes.c (opaque_type_resolution): Make static.
1601 Add missing comment.
1602 (overload_debug): Add missing comment.
1603 (show_opaque_type_resolution): Likewise.
1604 (show_overload_debug): Likewise.
1605 (print_bit_vector): Remove unnecessary forward declaration.
1606 (print_arg_types): Likewise.
1607 (dump_fn_fieldlists): Likewise.
1608 (print_cplus_stuff): Likewise.
1609
1610 2012-08-15 Tom Tromey <tromey@redhat.com>
1611
1612 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1613 (gdb_bfd_ref): Initialize new field.
1614 (gdb_bfd_unref): Unref the archive BFD.
1615 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1616 parent archive.
1617
1618 2012-08-15 Tom Tromey <tromey@redhat.com>
1619
1620 PR python/14387:
1621 * python/py-bpevent.c (create_breakpoint_event_object): Update
1622 comment.
1623 * python/py-event.c (evpy_add_attribute): Update comment.
1624 * python/py-exitedevent.c (create_exited_event_object): Fix
1625 reference counting and error handling.
1626 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1627 Fix reference counting.
1628 * python/py-signalevent.c (create_signal_event_object): Fix
1629 reference counting and error handling.
1630 * python/py-stopevent.c (emit_stop_event): Fix reference
1631 counting.
1632 * python/py-threadevent.c (get_event_thread): Return a
1633 borrowed reference.
1634 * python/py-type.c (convert_field): Fix reference counting.
1635
1636 2012-08-15 Tom Tromey <tromey@redhat.com>
1637
1638 * dwarf2read.c (dwarf_decode_macro_bytes)
1639 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1640 as hash key.
1641
1642 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1643
1644 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1645 stepi, nexti, finish, next, step, jump, and continue commands.
1646 * infrun.c (_initialize_infrun): Update help text for the handle
1647 command.
1648
1649 2012-08-14 Doug Evans <dje@google.com>
1650
1651 * gdbtypes.c (struct extra): Delete, unused.
1652
1653 * gdbtypes.c: Whitespace cleanup.
1654 (address_space_name_to_int): Remove "extern" from definition.
1655 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1656
1657 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1658 TYPE_POINTER_TYPE (type).
1659
1660 2012-08-14 Gary Benson <gbenson@redhat.com>
1661
1662 * solib-svr4.c (svr4_free_library_list): Use free_so.
1663
1664 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1665
1666 * .gitignore: Add go-exp.c.
1667
1668 2012-08-13 Doug Evans <dje@google.com>
1669
1670 * value.c (show_convenience): Tweak comment.
1671 (_initialize_values): Mention convenience functions in the help text
1672 for "show convenience".
1673
1674 2012-08-13 Yao Qi <yao@codesourcery.com>
1675
1676 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1677 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1678 TERNOP_SLICE_COUNT.
1679 * eval.c (evaluate_subexp_standard): Likewise.
1680 * expprint.c (print_subexp_standard): Likewise.
1681 (dump_subexp_body_standard): Likewise.
1682 * parse.c (operator_length_standard): Likewise.
1683
1684 2012-08-13 Yao Qi <yao@codesourcery.com>
1685
1686 * std-operator.def: Remove OP_BITSTRING.
1687 * breakpoint.c (watchpoint_exp_is_const): Update.
1688 * eval.c (evaluate_subexp_standard): Remove handling to
1689 OP_BITSTRING.
1690 * expprint.c (print_subexp_standard): Likewise.
1691 (dump_subexp_body_standard): Likewise.
1692 * parse.c (operator_length_standard): Likewise.
1693 * valops.c (value_bitstring): Remove.
1694 * value.h: Remove the declaration of 'value_bitstring'.
1695
1696 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1697
1698 * linespec.c (find_methods): Remove unused variables `i1' and
1699 `name_len'.
1700 (decode_line_full): Likewise for `arg_start'.
1701
1702 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1703
1704 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1705 (zlib_decompress_section): Likewise for `section_data'.
1706 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1707
1708 2012-08-10 Doug Evans <dje@google.com>
1709
1710 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1711 * NEWS: Document them.
1712 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1713 function/strfns.py.
1714 * python/py-type.c (typy_array_1): New function.
1715 (typy_array): Call it.
1716 (typy_vector): New function.
1717 (type_object_methods): Add "vector".
1718 * python/lib/gdb/function/__init__.py: New file.
1719 * python/lib/gdb/function/strfns.py: New file.
1720
1721 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1722
1723 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1724 for TYPE_FIELD_BITPOS.
1725 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1726
1727 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1728
1729 PR cli/10436:
1730 * common/vec.h (VEC_merge): Define.
1731 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1732 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1733 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1734 * completer.c: Include gdb_signals.h.
1735 (signal_completer): Define.
1736 * completer.h (signal_completer): Add prototype.
1737 * infcmd.c (_initialize_infcmd): Assign the command
1738 completer for "signal" to handle_completer.
1739 * infrun.c: Include completer.h.
1740 (handle_completer): Define.
1741 (_initialize_infrun): Declare a new local variable c. Store the
1742 result of add_com("handle") to it. Assign the command
1743 completer for "handle" to handle_completer.
1744
1745 2012-08-09 Yao Qi <yao@codesourcery.com>
1746
1747 * cli/cli-decode.c (set_cmd_prefix): New.
1748 (lookup_cmd_for_prefixlist): New.
1749 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1750 of each cmd_list_element in *prefixlist.
1751 (add_setshow_cmd_full): set_cmd_prefix.
1752 (add_alias_cmd): Likewise.
1753 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1754 Declare 'auto_boolean_enums'.
1755 * cli/cli-setshow.c: Include "observer.h".
1756 (notify_command_param_changed_p): New.
1757 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1758 Remove 'static'.
1759 (do_setshow_command): Split it to ...
1760 (do_set_command, do_show_command): ... them. New.
1761 (do_set_command): Call observer_notify_command_param_changed if
1762 notify_command_param_changed_p returns true.
1763 (cmd_show_list): Caller update.
1764 * auto-load.c (set_auto_load_cmd): Likewise.
1765 * remote.c (show_remote_cmd): Likewise.
1766 * cli/cli-setshow.h: Update declarations.
1767 * top.c (execute_command): Call do_set_command and do_show_command.
1768
1769 * NEWS: Mention new MI notification.
1770 * mi/mi-interp.c: Declare mi_command_param_changed.
1771 (mi_interpreter_init): Attach mi_command_param_changed to
1772 observer command_param_changed.
1773 (mi_command_param_changed): New.
1774 Remove mi_suppress_breakpoint_notifications.
1775 Define global variable mi_suppress_notification.
1776 (mi_breakpoint_created): Update.
1777 (mi_breakpoint_deleted): Likewise.
1778 (mi_breakpoint_modified): Likewise.
1779 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1780 'gdb-set' and set mi_suppress_notification.
1781 * mi/mi-main.h: (mi_suppress_notification): New struct.
1782
1783 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1784 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1787
1788 2012-08-09 Yao Qi <yao@codesourcery.com>
1789
1790 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1791 (skiplist): Move it to skip.c.
1792 (init_cmd_lists): Remove code setting enablebreaklist and
1793 skiplist to NULL.
1794 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1795 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1796 skiplist.
1797 * gdbcmd.h: Likewise.
1798 * skip.c (_initialize_step_skip): Move 'skiplist' from
1799 cli/cli-cmds.c.
1800
1801 2012-08-09 Yao Qi <yao@codesourcery.com>
1802
1803 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1804 * gnu-nat.c, symfile.c: Likewise.
1805
1806 2012-08-08 Aaron Gamble <agamble@google.com>
1807
1808 * utils.c (prompt_for_continue_wait_time): New static global.
1809 (make_command_stats_cleanup): Initialize it.
1810 (report_command_stats): Subtract time waiting for user.
1811 (prompt_for_continue): Track time waiting for user.
1812 (defaulted_query): Track time waiting for user.
1813
1814 2012-08-08 Doug Evans <dje@google.com>
1815
1816 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1817 UNOP_MEMVAL_TYPE.
1818 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1819 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1820 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1821 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1822 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1823 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1824 elt.
1825 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1826 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1827 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1828 (dump_prefix_expression): Handle OP_TYPE.
1829
1830 2012-08-08 Keith Seitz <keiths@redhat.com>
1831
1832 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1833 addr_start.
1834
1835 2012-08-08 Doug Evans <dje@google.com>
1836
1837 * linux-thread-db.c: #include "gdb_vecs.h".
1838 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1839 updated.
1840 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1841 (thread_db_load_search): Use a vector to iterate over path elements.
1842 Handle text appearing after "$pdir".
1843
1844 * gdb_string.h: Moved to ...
1845 * common/gdb_string.h: ... here.
1846 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1847 gdb_string.h and gdb_assert.h.
1848
1849 2012-08-08 Yao Qi <yao@codesourcery.com>
1850
1851 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1852 (tic6x_value_to_register): Likewise.
1853 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1854 and set_gdbarch_value_to_register.
1855
1856 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 Jean-Marc Saffroy <saffroy@gmail.com>
1858
1859 PR 11804
1860 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1861 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1862 * gcore.c (gcore_create_callback): New function comment. Add modified
1863 parameter. Only write modified regions. Set SEC_READONLY exactly
1864 according to MODIFIED.
1865 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1866 the passed modified value to FUNC.
1867 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1868 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1869 first. New variables modified and has_anonymous. Parse the lines of
1870 smaps file. Add the passed MODIFIED value to FUNC.
1871 * procfs.c (find_memory_regions_callback): Add the passed modified
1872 value.
1873
1874 2012-08-06 Tom Tromey <tromey@redhat.com>
1875
1876 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1877 (dwarf2_frame_cache): Use it.
1878 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1879 cache initialization constraint.
1880
1881 2012-08-06 Tom Tromey <tromey@redhat.com>
1882
1883 PR python/14386:
1884 * varobj.c (update_dynamic_varobj_children): Don't call
1885 PyIter_Check.
1886
1887 2012-08-06 Tom Tromey <tromey@redhat.com>
1888
1889 PR cli/14392:
1890 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1891
1892 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1893
1894 * NEWS: New entry for 'cd' default parameters.
1895 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1896
1897 2012-08-03 Tom Tromey <tromey@redhat.com>
1898
1899 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1900 return.
1901
1902 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1903
1904 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1905 to attempting lseek/write.
1906 (inf_child_fileio_pread): Likewise for pread.
1907
1908 2012-08-02 Yao Qi <yao@codesourcery.com>
1909
1910 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1911 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1912 add_setshow_zinteger_cmd.
1913 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1914 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1915 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1916 instead of add_setshow_zinteger_cmd.
1917 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1918 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1919 instead of add_setshow_zinteger_cmd.
1920 * frame.c (frame_debug): Add 'unsigned'.
1921 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1922 add_setshow_zinteger_cmd.
1923 * frame.h: Update the declaration of 'frame_debug'.
1924 * gdbtypes.c (overload_debug): Add 'unsigned'.
1925 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1926 add_setshow_zinteger_cmd.
1927 * inferior.h: Update declaration of 'debug_infrun'.
1928 * infrun.c (debug_infrun): Add 'unsigned'.
1929 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1930 add_setshow_zinteger_cmd.
1931 * jit.c (jit_debug): Add 'unsigned'.
1932 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1933 add_setshow_zinteger_cmd.
1934 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1935 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1936 instead of add_setshow_zinteger_cmd.
1937 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1938 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1939 add_setshow_zinteger_cmd.
1940 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1941 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1942 instead of add_setshow_zinteger_cmd.
1943 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1944 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1945 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1946 intead of add_setshow_zinteger_cmd.
1947 * mips-tdep.c (mips_debug): Add 'unsigned'.
1948 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1949 instead of add_setshow_zinteger_cmd.
1950 * monitor.c (monitor_debug): Add 'unsigned'.
1951 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1952 add_setshow_zinteger_cmd.
1953 * observer.c (observer_debug): Add 'unsigned'.
1954 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1955 add_setshow_zinteger_cmd.
1956 * parse.c (expressiondebug): Add 'unsigned'.
1957 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1958 add_setshow_zinteger_cmd.
1959 * record.c (record_debug): Add 'unsigned'.
1960 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1961 add_setshow_zinteger_cmd.
1962 * record.h: Update the declaration of 'record_debug'.
1963 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1964 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1965 add_setshow_zinteger_cmd.
1966 * serial.c (global_serial_debug_p): Add 'unsigned'.
1967 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1968 add_setshow_zinteger_cmd.
1969 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1970 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1971 add_setshow_zinteger_cmd.
1972 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1973 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1974 add_setshow_zinteger_cmd.
1975 * target.c (targetdebug): Add 'unsigned'.
1976 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1977 add_setshow_zinteger_cmd.
1978 * valops.c (overload_debug): Add 'unsigned'.
1979 * varobj.c (varobjdebug): Add 'unsigned'.
1980 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1981 add_setshow_zinteger_cmd.
1982 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1983 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1984 instead of add_setshow_zinteger_cmd.
1985
1986 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1987 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1988 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1989 instead of add_setshow_zinteger_cmd.
1990 * gdbarch.c, gdbarch.h: Re-generated.
1991
1992 2012-08-02 Yao Qi <yao@codesourcery.com>
1993
1994 * nto-tdep.c: Don't include cli/cli-decode.h and
1995 cli/cli-cmds.h.
1996 (_initialize_nto_tdep): Remove.
1997 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1998 Remove field.
1999 Remove macro nto_internal_debugging.
2000
2001 2012-08-01 Richard Henderson <rth@redhat.com>
2002
2003 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2004 (mep-*-*) [gdb_target_obs]: Likewise.
2005
2006 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2007
2008 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2009 linux_get_siginfo_type.
2010
2011 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2012
2013 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2014 AT_ENTRY_POINT.
2015 (call_function_by_hand) <ON_STACK>: Call write_memory with
2016 gdbarch_breakpoint_from_pc, if possible.
2017 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2018 here.
2019
2020 2012-07-31 Yao Qi <yao@codesourcery.com>
2021
2022 * tracepoint.c: Add 'static' for some variables.
2023
2024 2012-07-31 Yao Qi <yao@codesourcery.com>
2025
2026 * go32-nat.c: Declare _initialize_go32_nat.
2027 * ser-go32.c: Declare _initialize_ser_dos.
2028 * top.c (do_chdir_cleanup): Add 'static'.
2029
2030 2012-07-30 Keith Seitz <keiths@redhat.com>
2031
2032 * linespec.c (linespec_lex_number): A number followed
2033 by quotes is a valid number, too.
2034
2035 2012-07-30 Tom Tromey <tromey@redhat.com>
2036
2037 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2038
2039 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2040
2041 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2042 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2043
2044 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2045
2046 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2047 invalid or reevaluated to prevent prevent references to possibly
2048 delete'd type objects being left in the varobj.
2049
2050 2012-07-27 Tom Tromey <tromey@redhat.com>
2051 Jan Kratochvil <jan.kratochvil@redhat.com>
2052
2053 * copying.awk: Print buffer-read-only and vi ro markers.
2054 * copying.c: Rebuild.
2055 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2056 * gdbarch.c, gdbarch.h: Rebuild.
2057 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2058 buffer-read-only and vi ro markers.
2059 * features/arm-with-iwmmxt.c: Rebuild.
2060 * features/arm-with-m-fpa-layout.c: Rebuild.
2061 * features/arm-with-m-vfp-d16.c: Rebuild.
2062 * features/arm-with-m.c: Rebuild.
2063 * features/arm-with-neon.c: Rebuild.
2064 * features/arm-with-vfpv2.c: Rebuild.
2065 * features/arm-with-vfpv3.c: Rebuild.
2066 * features/i386/amd64-avx-linux.c: Rebuild.
2067 * features/i386/amd64-avx.c: Rebuild.
2068 * features/i386/amd64-linux.c: Rebuild.
2069 * features/i386/amd64.c: Rebuild.
2070 * features/i386/i386-avx-linux.c: Rebuild.
2071 * features/i386/i386-avx.c: Rebuild.
2072 * features/i386/i386-linux.c: Rebuild.
2073 * features/i386/i386-mmx-linux.c: Rebuild.
2074 * features/i386/i386-mmx.c: Rebuild.
2075 * features/i386/i386.c: Rebuild.
2076 * features/i386/x32-avx-linux.c: Rebuild.
2077 * features/i386/x32-avx.c: Rebuild.
2078 * features/i386/x32-linux.c: Rebuild.
2079 * features/i386/x32.c: Rebuild.
2080 * features/mips-dsp-linux.c: Rebuild.
2081 * features/mips-linux.c: Rebuild.
2082 * features/mips64-dsp-linux.c: Rebuild.
2083 * features/mips64-linux.c: Rebuild.
2084 * features/rs6000/powerpc-32.c: Rebuild.
2085 * features/rs6000/powerpc-32l.c: Rebuild.
2086 * features/rs6000/powerpc-403.c: Rebuild.
2087 * features/rs6000/powerpc-403gc.c: Rebuild.
2088 * features/rs6000/powerpc-405.c: Rebuild.
2089 * features/rs6000/powerpc-505.c: Rebuild.
2090 * features/rs6000/powerpc-601.c: Rebuild.
2091 * features/rs6000/powerpc-602.c: Rebuild.
2092 * features/rs6000/powerpc-603.c: Rebuild.
2093 * features/rs6000/powerpc-604.c: Rebuild.
2094 * features/rs6000/powerpc-64.c: Rebuild.
2095 * features/rs6000/powerpc-64l.c: Rebuild.
2096 * features/rs6000/powerpc-7400.c: Rebuild.
2097 * features/rs6000/powerpc-750.c: Rebuild.
2098 * features/rs6000/powerpc-860.c: Rebuild.
2099 * features/rs6000/powerpc-altivec32.c: Rebuild.
2100 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2101 * features/rs6000/powerpc-altivec64.c: Rebuild.
2102 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2103 * features/rs6000/powerpc-cell32l.c: Rebuild.
2104 * features/rs6000/powerpc-cell64l.c: Rebuild.
2105 * features/rs6000/powerpc-e500.c: Rebuild.
2106 * features/rs6000/powerpc-e500l.c: Rebuild.
2107 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2108 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2109 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2110 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2111 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2112 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2113 * features/rs6000/powerpc-vsx32.c: Rebuild.
2114 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2115 * features/rs6000/powerpc-vsx64.c: Rebuild.
2116 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2117 * features/rs6000/rs6000.c: Rebuild.
2118 * features/s390-linux32.c: Rebuild.
2119 * features/s390-linux32v1.c: Rebuild.
2120 * features/s390-linux32v2.c: Rebuild.
2121 * features/s390-linux64.c: Rebuild.
2122 * features/s390-linux64v1.c: Rebuild.
2123 * features/s390-linux64v2.c: Rebuild.
2124 * features/s390x-linux64.c: Rebuild.
2125 * features/s390x-linux64v1.c: Rebuild.
2126 * features/s390x-linux64v2.c: Rebuild.
2127 * features/tic6x-c62x-linux.c: Rebuild.
2128 * features/tic6x-c62x.c: Rebuild.
2129 * features/tic6x-c64x-linux.c: Rebuild.
2130 * features/tic6x-c64x.c: Rebuild.
2131 * features/tic6x-c64xp-linux.c: Rebuild.
2132 * features/tic6x-c64xp.c: Rebuild.
2133
2134 2012-07-27 Tom Tromey <tromey@redhat.com>
2135
2136 * c-exp.y (classify_name): Avoid assignment in condition.
2137
2138 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2139
2140 * amd64-windows-tdep.c: Include "frame.h".
2141 (amd64_windows_skip_trampoline_code): New function.
2142 (amd64_windows_init_abi): Add trampoline registration.
2143
2144 2012-07-27 Yao Qi <yao@codesourcery.com>
2145
2146 * tracepoint.c (cur_traceframe_number): Remove.
2147 (set_tfile_traceframe): Remove.
2148 (tfile_trace_find, tfile_fetch_registers): Update callers.
2149 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2150 (tfile_open, tfile_trace_find): Likewise.
2151
2152 2012-07-27 Yao Qi <yao@codesourcery.com>
2153
2154 * thread.c (switch_to_thread): Don't call registers_changed.
2155
2156 2012-07-26 Tom Tromey <tromey@redhat.com>
2157
2158 * Makefile.in (SFILES): Remove objc-exp.y.
2159 (YYFILES): Remove objc-exp.c.
2160 (YYOBJ): Remove objc-exp.o.
2161 (local-maintainer-clean): Don't mention objc-exp.c.
2162 * c-exp.y: Include objc-lang.h.
2163 (%union) <class>: New field.
2164 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2165 (exp): Clone subscript production for OBJC_LBRAC. Add various
2166 Objective C productions.
2167 (msglist, msgarglist, msgarg): New productions.
2168 (array_mod, func_mod, operator): Clone productions for
2169 OBJC_LBRAC.
2170 (parse_string_or_char): Handle '@' strings.
2171 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2172 (classify_name): Check la_name_of_this. Recognize ObjC class
2173 names.
2174 * objc-exp.y: Remove.
2175 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2176 * objc-lang.h (objc_parse, objc_error): Don't declare.
2177
2178 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2179
2180 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2181
2182 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2185 and decrement.
2186
2187 2012-07-26 Tom Tromey <tromey@redhat.com>
2188
2189 * copying.c: Rebuild.
2190 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2191 'no_class'.
2192
2193 2012-07-26 Tom Tromey <tromey@redhat.com>
2194
2195 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2196 immediate_quit.
2197 (print_objfile_statistics): Likewise.
2198 (maintenance_print_symbols): Likewise.
2199 (maintenance_print_msymbols): Likewise.
2200 (maintenance_print_objfiles): Likewise.
2201 * psymtab.c (print_partial_symbols): Call QUIT.
2202 (maintenance_print_psymbols): Likewise. Don't modify
2203 immediate_quit.
2204 * copying.c (show_copying_command): Don't modify immediate_quit.
2205 (show_warranty_command): Likewise.
2206 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2207
2208 2012-07-26 Keith Seitz <keiths@redhat.com>
2209
2210 * linespec.c (linespec_lexer_lex_number): The input
2211 is also a valid number if the next character is a comma
2212 or colon.
2213
2214 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2215
2216 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2217 configure options.
2218
2219 2012-07-26 Tristan Gingold <gingold@adacore.com>
2220
2221 * machoread.c: Include gdb_bfd.h.
2222
2223 2012-07-26 Tristan Gingold <gingold@adacore.com>
2224
2225 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2226 offset.
2227
2228 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2229
2230 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2231 SIZE to size_t.
2232 (dwarf2_evaluate_loc_desc): Likewise.
2233 (dwarf2_loc_desc_needs_frame): Likewise.
2234 (locexpr_describe_location_1): Likewise.
2235 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2236 size_t.
2237 (struct dwarf2_loclist_baton): Likewise.
2238 * dwarf2read.c (struct dwarf_block): Likewise.
2239 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2240 (decode_locdesc): Expand SIZE and I to size_t.
2241
2242 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2243
2244 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2245
2246 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2247
2248 * doublest.c (convert_doublest_to_floatformat): If the exponent
2249 is too small, treat the value as zero. If the exponent is too
2250 large, treat the value as infinity.
2251
2252 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2253
2254 * configure.ac: Add --enable-lmcheck configure option.
2255 * configure: Regenerate.
2256
2257 2012-07-25 Tom Tromey <tromey@redhat.com>
2258
2259 * NEWS: Mention maint info bfds.
2260 * gdb_bfd.c (all_bfds): New global.
2261 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2262 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2263 New functions.
2264
2265 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2266
2267 * configure.tgt: Add v850*-*-rtems*.
2268
2269 2012-07-25 Tom Tromey <tromey@redhat.com>
2270
2271 * macrotab.c (macro_bcache_str): Remove cast.
2272
2273 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2274
2275 * linespec.c (linespec_lexer_lex_number): Update comments,
2276 change the return and add check to make sure the input is
2277 the decimal numbers.
2278 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2279 false, call linespec_lexer_lex_string.
2280
2281 2012-07-24 Tom Tromey <tromey@redhat.com>
2282
2283 * symfile.c (symbol_file_add): Don't open BFD twice.
2284
2285 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2286
2287 * breakpoint.c (create_breakpoint): Store condition for pending
2288 breakpoints.
2289
2290 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2291
2292 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2293 (m68k_return_value): Handle complex types like structures.
2294 (m68k_svr4_return_value): Likewise.
2295
2296 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2297
2298 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2299 parameters to bfd_get_section_name.
2300
2301 2012-07-24 Yao Qi <yao@codesourcery.com>
2302
2303 * cli/cli-setshow.c: Handle case 'var_uinteger'
2304 and 'var_zuninteger' together. Handle case 'var_integer' and
2305 'var_zinteger' together.
2306
2307 2012-07-23 Keith Seitz <keiths@redhat.com>
2308
2309 * linespec.c (convert_linespec_to_sal): Don't add
2310 any symbols to the result vector if symbol_to_sal
2311 returns zero.
2312
2313 2012-07-23 Keith Seitz <keiths@redhat.com>
2314
2315 * linespec.c (decode_objc): Record the function name
2316 in the linespec.
2317
2318 2012-07-23 Tom Tromey <tromey@redhat.com>
2319
2320 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2321 counting.
2322 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2323 (map_vmap): Acquire a reference to the BFD.
2324
2325 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2326
2327 * p-valprint.c (pascal_object_print_value): Replace potentially
2328 unsafe alloca with xmalloc/xfree.
2329 * valops.c (search_struct_method): Likewise.
2330
2331 2012-07-23 Tom Tromey <tromey@redhat.com>
2332
2333 * solib-svr4.c (enable_break): Update.
2334 * bfd-target.h (target_bfd_reopen): Update documentation.
2335
2336 2012-07-23 Tom Tromey <tromey@redhat.com>
2337
2338 * symfile.c (separate_debug_file_exists): Update.
2339 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2340 (reread_symbols): Update.
2341 * elfread.c (build_id_verify): Update.
2342 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2343 bfd_open_maybe_remote.
2344
2345 2012-07-23 Tom Tromey <tromey@redhat.com>
2346
2347 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2348
2349 2012-07-23 Tom Tromey <tromey@redhat.com>
2350
2351 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2352 and 'abfd'.
2353 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2354 and 'abfd'.
2355 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2356 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2357 'abfd'.
2358 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2359 * objfiles.c (allocate_objfile): Acquire a new reference.
2360 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2361 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2362 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2363 a cleanup for 'nbfd'.
2364 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2365 for 'nbfd'.
2366 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2367 make a cleanup for 'abfd'.
2368 (symbol_file_add): Make a BFD cleanup.
2369
2370 2012-07-23 Tom Tromey <tromey@redhat.com>
2371
2372 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2373 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2374 * corelow.c (core_open): Use gdb_bfd_fopen.
2375 * dsrec.c (load_srec): Use gdb_bfd_openr.
2376 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2377 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2378 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2379 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2380 (gdb_bfd_fdopenr): New functions.
2381 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2382 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2383 (gdb_bfd_fdopenr): Declare.
2384 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2385 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2386 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2387 gdb_bfd_openr_next_archived_file.
2388 (macho_check_dsym): Use gdb_bfd_openr.
2389 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2390 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2391 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2392 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2393 gdb_bfd_openr.
2394 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2395 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2396 gdb_bfd_openr_next_archived_file.
2397 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2398 Use gdb_bfd_openr.
2399 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2400 gdb_bfd_openr.
2401 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2402 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2403 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2404 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2405 (symfile_bfd_open): Use gdb_bfd_fopen.
2406 (generic_load): Use gdb_bfd_openr.
2407 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2408
2409 2012-07-23 Tom Tromey <tromey@redhat.com>
2410
2411 * bfd-target.c (target_bfd_reopen): Update.
2412 * cli/cli-dump.c (bfd_openr_with_cleanup)
2413 (bfd_openw_with_cleanup): Update.
2414 * corelow.c (core_open): Update.
2415 * dsrec.c (load_srec): Update.
2416 * exec.c (exec_file_attach): Update.
2417 * gcore.c (create_gcore_bfd): Update.
2418 * gdb_bfd.c (gdb_bfd_ref): Return void.
2419 (gdb_bfd_open): Update.
2420 * gdb_bfd.h (gdb_bfd_ref): Return void.
2421 Update comments.
2422 * jit.c (jit_bfd_try_read_symtab): Update.
2423 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2424 * machoread.c (macho_symfile_read_all_oso): Update.
2425 (macho_check_dsym): Update.
2426 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2427 * remote-m32r-sdi.c (m32r_load): Update.
2428 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2429 * rs6000-nat.c (add_vmap): Update.
2430 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2431 Update.
2432 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2433 * solib-spu.c (spu_bfd_open): Update.
2434 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2435 * spu-linux-nat.c (spu_bfd_open): Update.
2436 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2437 (generic_load): Update.
2438 * windows-nat.c (windows_make_so): Update.
2439
2440 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2441
2442 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2443
2444 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2445
2446 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2447 SIGTRAMP_FRAME unwinding.
2448
2449 2012-07-20 Doug Evans <dje@google.com>
2450
2451 * NEWS: Document new options "set/show use-deprecated-index-sections",
2452 and delete reference to --use-deprecated-index-sections.
2453 * symfile.h (use_deprecated_index_sections): Delete.
2454 * dwarf2read.c (use_deprecated_index_sections): Make static.
2455 (read_index_from_section): Update wording of how to load
2456 deprecated index sections.
2457 (_initialize_dwarf2_read): New options
2458 "set/show use-deprecated-index-sections".
2459 * main.c (captured_main): Delete --use-deprecated-index-sections.
2460
2461 2012-07-20 Pedro Alves <palves@redhat.com>
2462
2463 PR threads/11692
2464 PR gdb/12203
2465
2466 * infrun.c (handle_inferior_event) <new thread>: Don't special
2467 case minus_one_ptid.
2468 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2469 * linux-thread-db.c (thread_get_info_callback): Don't return early
2470 if the thread is zombie.
2471 (thread_from_lwp): Change return type to void. Rewrite stale
2472 comment.
2473 (attach_thread): Don't return early if the thread is zombie,
2474 instead set its "dying" flag.
2475 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2476 (find_new_threads_callback): Don't return early if the thread is
2477 zombie.
2478
2479 2012-07-20 Pedro Alves <palves@redhat.com>
2480
2481 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2482 * target.c (target_wait): Likewise.
2483 (str_comma_list_concat_elem, do_option, target_options_to_string):
2484 New functions.
2485 * target.h (target_options_to_string): Declare.
2486
2487 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 Tom Tromey <tromey@redhat.com>
2489
2490 * dwarf2read.c (dwarf_decode_macros)
2491 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2492 DW_MACRO_GNU_transparent_include_alt>: New cases.
2493 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2494 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2495
2496 2012-07-20 Tom Tromey <tromey@redhat.com>
2497
2498 * dwarf2read.c (try_open_dwo_file): Don't call
2499 gdb_bfd_stash_filename.
2500
2501 2012-07-20 Pedro Alves <palves@redhat.com>
2502
2503 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2504 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2505 (i386_process_record): Tweak description comments.
2506
2507 2012-07-20 Pedro Alves <palves@redhat.com>
2508
2509 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2510 (i386_process_record): Use record_read_memory.
2511 * record.c (record_read_memory): New function.
2512 (record_arch_list_add_mem, record_exec_insn): Use
2513 record_read_memory.
2514 * record.h (record_read_memory): Declare.
2515
2516 2012-07-20 Yao Qi <yao@codesourcery.com>
2517
2518 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2519 NULL for xfree.
2520
2521 2012-07-19 Pedro Alves <palves@redhat.com>
2522
2523 * record.c (record_resume): Ask the target beneath to report all
2524 signals.
2525
2526 2012-07-19 Doug Evans <dje@google.com>
2527
2528 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2529 there's no section at address zero.
2530 (dwarf2_record_block_ranges): Ditto.
2531
2532 2012-07-19 Yao Qi <yao@codesourcery.com>
2533
2534 * command.h, remote.c: Fix a typo in comment.
2535
2536 2012-07-19 Tom Tromey <tromey@redhat.com>
2537
2538 PR exp/13206:
2539 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2540 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2541 OP_DECLTYPE>: New cases.
2542 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2543 (type_exp): Add new productions.
2544 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2545 and decltype.
2546 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2547 New case.
2548 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2549 OP_DECLTYPE>: New case.
2550 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2551 New case.
2552 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2553 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2554
2555 2012-07-19 Tom Tromey <tromey@redhat.com>
2556
2557 * c-exp.y (enum token_flags): New.
2558 (struct token) <cxx_only>: Remove.
2559 <flags>: New field.
2560 (tokentab3, tokentab2, ident_tokens): Update.
2561 (lex_one_token): Update. Handle FLAG_SHADOW.
2562
2563 2012-07-19 Tom Tromey <tromey@redhat.com>
2564
2565 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2566 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2567 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2568 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2569 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2570 type_exp production where appropriate.
2571 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2572 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2573 <UNOP_MEMVAL_TYPE>: New case.
2574 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2575 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2576 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2577 <UNOP_MEMVAL_TYPE>: New case.
2578 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2579 UNOP_REINTERPRET_CAST>: Update.
2580 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2581 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2582 UNOP_REINTERPRET_CAST>: Update.
2583 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2584 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2585 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2586 constants.
2587
2588 2012-07-19 Yao Qi <yao@codesourcery.com>
2589 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2592 and case 'var_optional_filename' together.
2593 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2594 instead of add_setshow_optional_filename_cmd for setshow command
2595 'args'. Set completer for 'set args'.
2596
2597 2012-07-18 Doug Evans <dje@google.com>
2598
2599 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2600 * common/gdb_vecs.c: New file, contents from utils.c.
2601 * common/host-defs.h: New file, contents from defs.h.
2602 * utils.h: New file, contents from defs.h.
2603 * defs.h: Move all declarations of objects defined in utils.c
2604 to utils.h (except QUIT() and related).
2605 #include "utils.h", "host-defs.h".
2606 * probe.h (probe_p): Move here from gdb_vecs.h.
2607 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2608 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2609 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2610 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2611 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2612 (COMMON_OBS): Add gdb_vecs.o.
2613 (gdb_vecs.o): New rule.
2614
2615 2012-07-18 Keith Seitz <keiths@redhat.com>
2616
2617 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2618 parameter. If non-zero, use SYMNAME as the canonical name
2619 for the SaL.
2620 Update all callers.
2621 (convert_linespec_to_sals): Use add_sal_to_sals for
2622 expressions, too.
2623 (decode_line_full): No need to "fill in missing canonical names"
2624 anymore. Simply make cleanups for the allocated names.
2625
2626 2012-07-18 Keith Seitz <keiths@redhat.com>
2627
2628 * linespec.c (struct linespec): Constify expression,
2629 source_filename, function_name, and label_name.
2630 (symbol_not_found_error): Make all parameters const.
2631 (linespec_parser_delete): No need to check for NULL
2632 when using xfree. Cast const char * to char * for xfree.
2633
2634 2012-07-18 Keith Seitz <keiths@redhat.com>
2635
2636 * breakpoint.c (invalid_thread_id_error): New function.
2637 (find_condition_and_thread): Use invalid_thread_id_error.
2638 (watch_command_1): Likewise.
2639
2640 2012-07-18 Tom Tromey <tromey@redhat.com>
2641
2642 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2643 * contrib/cc-with-tweaks.sh: New file.
2644
2645 2012-07-18 Tom Tromey <tromey@redhat.com>
2646
2647 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2648 (locate_dwz_sections): Recognize .gdb_index.
2649 (create_cus_from_index_list): New function.
2650 (create_cus_from_index): Use it. Handle .dwz data.
2651 (read_index_from_section): New function, extracted from
2652 dwarf2_read_index.
2653 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2654 if needed.
2655
2656 2012-07-18 Tom Tromey <tromey@redhat.com>
2657
2658 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2659 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2660 <is_dwz>: New field.
2661 (struct dwz_file): New.
2662 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2663 (locate_dwz_sections, dwarf2_get_dwz_file)
2664 (get_abbrev_section_for_cu): New functions.
2665 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2666 (read_and_check_type_unit_head): Add abbrev_section argument.
2667 (create_debug_types_hash_table): Update.
2668 (init_cutu_and_read_dies): Use proper abbrev section.
2669 (init_cutu_and_read_dies_no_follow): Likewise.
2670 (set_partial_user): Do nothing if PST==NULL.
2671 (read_comp_units_from_section): New function.
2672 (create_all_comp_units): Use it.
2673 (scan_partial_symbols, partial_die_parent_scope): Update.
2674 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2675 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2676 (find_partial_die): Add offset_in_dwz argument. Update.
2677 (guess_partial_die_structure_name, fixup_partial_die): Update.
2678 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2679 DW_FORM_GNU_strp_alt.
2680 (read_indirect_string_from_dwz): New function.
2681 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2682 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2683 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2684 (follow_die_offset): Add offset_in_dwz argument.
2685 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2686 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2687 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2688 Handle new macro forms.
2689 (dwarf_decode_macros): Update.
2690 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2691 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2692 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2693 (create_debug_types_hash_table): Use correct abbrev section.
2694 (get_debug_line_section): New function.
2695 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2696 (process_full_comp_unit): Pass 'required' argument to
2697 end_symtab_get_static_block.
2698 * buildsym.h (end_symtab_get_static_block): Update.
2699 * buildsym.c (end_symtab_get_static_block): Add 'required'
2700 argument.
2701 (end_symtab, end_expandable_symtab): Update.
2702
2703 2012-07-18 Tom Tromey <tromey@redhat.com>
2704
2705 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2706 (pagesize): Remove.
2707 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2708 (zlib_decompress_section): Remove.
2709 (dwarf2_read_section): Use gdb_bfd_map_section.
2710 (munmap_section_buffer): Remove.
2711 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2712 munmap_section_buffer.
2713 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2714 (struct gdb_bfd_section_data): New.
2715 (free_one_bfd_section): New function.
2716 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2717 (get_section_descriptor, zlib_decompress_section)
2718 (gdb_bfd_map_section): New functions.
2719 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2720
2721 2012-07-18 Tom Tromey <tromey@redhat.com>
2722
2723 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2724
2725 2012-07-18 Tom Tromey <tromey@redhat.com>
2726
2727 * gdb_bfd.c (struct gdb_bfd_data): New.
2728 (gdb_bfd_cache): New global.
2729 (struct gdb_bfd_cache_search): New.
2730 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2731 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2732 * gdb_bfd.h (gdb_bfd_open): Declare.
2733
2734 2012-07-18 Tom Tromey <tromey@redhat.com>
2735
2736 * utils.c (make_cleanup_bfd_unref): Rename from
2737 make_cleanup_bfd_close.
2738 * defs.h (make_cleanup_bfd_unref): Rename from
2739 make_cleanup_bfd_close.
2740 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2741 (bfd_openw_with_cleanup): Update.
2742 * corelow.c (core_open): Update.
2743 * dsrec.c (load_srec): Update.
2744 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2745 * remote-m32r-sdi.c (m32r_load): Update.
2746 * remote-mips.c (mips_load_srec): Update.
2747 (pmon_load_fast): Update.
2748 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2749 Update.
2750 (darwin_bfd_open): Update.
2751 * solib.c (solib_bfd_fopen): Update.
2752 * symfile-mem.c (symbol_file_add_from_memory): Update.
2753 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2754 (symfile_bfd_open): Update.
2755 (generic_load): Update.
2756
2757 2012-07-18 Tom Tromey <tromey@redhat.com>
2758
2759 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2760 (pmon_load_fast): Likewise.
2761 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2762 (m32r_upload_command): Likewise.
2763 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2764 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2765 Use make_cleanup_bfd_close.
2766
2767 2012-07-18 Tom Tromey <tromey@redhat.com>
2768
2769 * symfile.c (symfile_bfd_open): Don't copy name. Call
2770 gdb_bfd_stash_filename.
2771 (load_command): Open the new BFD before freeing the old.
2772 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2773 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2774 Call gdb_bfd_stash_filename.
2775 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2776 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2777 gdb_bfd_stash_filename.
2778 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2779 Free found_pathname.
2780 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2781 gdb_bfd_stash_filename.
2782 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2783 * machoread.c (macho_add_oso_symfile): Call
2784 gdb_bfd_stash_filename.
2785 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2786 gdb_bfd_stash_filename.
2787 (macho_check_dsym): Don't copy filename. Call
2788 gdb_bfd_stash_filename.
2789 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2790 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2791 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2792 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2793 * exec.c (exec_close): Don't free the BFD's filename.
2794 (exec_file_attach): Don't copy the filename. Call
2795 gdb_bfd_stash_filename.
2796 * corelow.c (core_close): Don't free the BFD's filename.
2797 (core_open): Call gdb_bfd_stash_filename.
2798 * corefile.c (reopen_exec_file): Remove #if 0 code.
2799 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2800 pathname.
2801 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2802
2803 2012-07-18 Tom Tromey <tromey@redhat.com>
2804
2805 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2806 gdb_bfd_unref.
2807 (free_dwo_file): Use gdb_bfd_unref.
2808 * cli/cli-dump.c: Include gdb_bfd.h.
2809 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2810 (bfd_openr_with_cleanup): Likewise.
2811 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2812 gdb_bfd_unref.
2813 * utils.c: Include gdb_bfd.h.
2814 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2815 * symfile.c: Include gdb_bfd.h.
2816 (separate_debug_file_exists): Use gdb_bfd_unref.
2817 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2818 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2819 (generic_load): Use gdb_bfd_ref.
2820 (reread_symbols): Use gdb_bfd_unref.
2821 * symfile-mem.c: Include gdb_bfd.h.
2822 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2823 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2824 * solib.c: Include gdb_bfd.h.
2825 (solib_bfd_fopen): Use gdb_bfd_ref.
2826 (solib_bfd_open): Use gdb_bfd_unref.
2827 (free_so_symbols): Use gdb_bfd_unref.
2828 (reload_shared_libraries_1): Use gdb_bfd_unref.
2829 * solib-spu.c: Include gdb_bfd.h.
2830 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2831 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2832 gdb_bfd_unref.
2833 * solib-frv.c: Include gdb_bfd.h.
2834 (enable_break2): Use gdb_bfd_unref.
2835 * solib-dsbt.c: Include gdb_bfd.h.
2836 (enable_break2): Use gdb_bfd_unref.
2837 * solib-darwin.c: Include gdb_bfd.h.
2838 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2839 gdb_bfd_unref.
2840 (darwin_bfd_open): Use gdb_bfd_unref.
2841 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2842 * remote-mips.c: Include gdb_bfd.h.
2843 (mips_load_srec): Use gdb_bfd_ref.
2844 (pmon_load_fast): Use gdb_bfd_ref.
2845 * remote-m32r-sdi.c: Include gdb_bfd.h.
2846 (m32r_load): Use gdb_bfd_ref.
2847 * record.c: Include gdb_bfd.h.
2848 (record_save_cleanups): Use gdb_bfd_unref.
2849 (cmd_record_save): Use gdb_bfd_unref.
2850 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2851 gdb_bfd_unref.
2852 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2853 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2854 * objfiles.c: Include gdb_bfd.h.
2855 (free_objfile): Use gdb_bfd_unref.
2856 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2857 gdb_bfd.c.
2858 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2859 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2860 (macho_check_dsym): Likewise.
2861 * m32r-rom.c: Include gdb_bfd.h.
2862 (m32r_load): Use gdb_bfd_ref.
2863 (m32r_upload_command): Use gdb_bfd_ref.
2864 * jit.c: Include gdb_bfd.h.
2865 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2866 * gdb_bfd.h: New file.
2867 * gdb_bfd.c: New file.
2868 * gcore.c: Include gdb_bfd.h.
2869 (create_gcore_bfd): Use gdb_bfd_ref.
2870 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2871 (gcore_command): Use gdb_bfd_unref.
2872 * exec.c: Include gdb_bfd.h.
2873 (exec_close): Use gdb_bfd_unref.
2874 (exec_close_1): Use gdb_bfd_unref.
2875 (exec_file_attach): Use gdb_bfd_ref.
2876 * elfread.c: Include gdb_bfd.h.
2877 (build_id_verify): Use gdb_bfd_unref.
2878 * dsrec.c: Include gdb_bfd.h.
2879 (load_srec): Use gdb_bfd_ref.
2880 * corelow.c: Include gdb_bfd.h.
2881 (core_close): Use gdb_bfd_unref.
2882 (core_open): Use gdb_bfd_ref.
2883 * bfd-target.c: Include gdb_bfd.h.
2884 (target_bfd_xclose): Use gdb_bfd_unref.
2885 (target_bfd_reopen): Use gdb_bfd_ref.
2886 * Makefile.in (SFILES): Add gdb_bfd.c.
2887 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2888 (COMMON_OBS): Add gdb_bfd.o.
2889
2890 2012-07-18 Keith Seitz <keiths@redhat.com>
2891
2892 * breakpoint.c (find_condition_and_thread): Initialize
2893 TASK and REST.
2894 (create_breakpiont): find_condition_and_thread will now
2895 initialize COND_STRING, THREAD, and REST (and TASK).
2896 (addr_string_to_sals): Likewise.
2897
2898 2012-07-18 Pedro Alves <palves@redhat.com>
2899
2900 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2901 Pull the single step breakpoints out of the target.
2902
2903 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2904
2905 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2906 * stap-probe.c (compile_probe_arg): Likewise.
2907
2908 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2909
2910 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2911 (elf_compile_to_ax): Likewise.
2912 * infrun.c (insert_exception_resume_from_probe): Likewise.
2913 (check_exception_resume): Remove `objfile' variable.
2914 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2915 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2916 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2917 (compare_entries): Rename to...
2918 (compare_probes): ...this. Adjust function to work with
2919 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2920 respectively.
2921 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2922 `VEC (probe_p) *'.
2923 (print_ui_out_info): Adjust argument to be `struct probe *'.
2924 (info_probes_for_ops): Adjust internal computations to use
2925 `VEC (probe_p) *'.
2926 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2927 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2928 gen_info_probes_table_values>: Remove `objfile' argument.
2929 (struct probe) <objfile>: New field.
2930 (find_probe_by_pc): Remove `objfile' argument.
2931 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2932 (stap_get_probe_argument_count): Likewise.
2933 (stap_get_arg): Likewise.
2934 (stap_evaluate_probe_argument): Likewise.
2935 (stap_compile_to_ax): Likewise.
2936 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2937 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2938 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2939 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2940 sym_compile_to_ax>: Likewise.
2941
2942 2012-07-18 Terry Guo <terry.guo@arm.com>
2943
2944 PR 14329
2945 * defs.h (GDB_MI_MSG_WIDTH): New.
2946 * ser_base (ser_base_read_error_fd): New function.
2947 (do_ser_base_readchar): Poll error file descriptor as well as
2948 standard output.
2949 (generic_readchar): Refactor error handling.
2950
2951 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2952
2953 * NEWS: Create a new section for the next release branch.
2954 Rename the section of the current branch, now that it has
2955 been cut.
2956
2957 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2958
2959 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2960 * version.in: Bump version to 7.5.50.20120718-cvs.
2961
2962 2012-07-17 Keith Seitz <keiths@redhat.com>
2963
2964 * linespec.c (linespec_parse_line_offset): Make parameter
2965 const.
2966
2967 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2968
2969 PR 11914
2970 * f-valprint.c (info_common_command): New variable frame_id.
2971 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2972 * printcmd.c (print_variable_and_value): Extend function comment.
2973 Add comment for invalidated FRAME.
2974 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2975 FI form FRAME_ID after each print_frame_local_vars.
2976 (struct print_variable_and_value_data): Change frame to frame_id.
2977 (do_print_variable_and_value): New variable frame, initialize it from
2978 p->frame_id. Add comment for invalidated FRAME.
2979 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2980 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2981 for invalidated FRAME.
2982
2983 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2984 Pedro Alves <palves@redhat.com>
2985
2986 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2987 loop.
2988
2989 2012-07-16 Tom Tromey <tromey@redhat.com>
2990
2991 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2992
2993 2012-07-15 Doug Evans <dje@google.com>
2994
2995 * dwarf2read.c (stmt_list_hash): New struct.
2996 (type_unit_group): Embed "per_cu" member, remove pointer.
2997 New union member "t", move member "tus" into it, all uses updated.
2998 New member "hash", replaces member "line_offset, all uses updated.
2999 (quick_file_names): Replace member "offset" with "hash", all uses
3000 updated.
3001 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3002 (hash_file_name_entry, eq_file_name_entry): Call them.
3003 (hash_type_unit_group, eq_type_unit_group): Ditto.
3004 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3005 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3006 (dw2_get_file_names): Update.
3007 (create_type_unit_group): Replace "per_cu" arg with "cu".
3008 All callers updated. Fix "quick" (.gdb_index) handling.
3009 (get_type_unit_group): Replace "per_cu" arg with "cu".
3010 All callers updated.
3011 (build_type_unit_groups): Don't reset tu_stats.
3012
3013 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3014 "tab_cur_size". Change member "tab" to be a htab_t.
3015 (create_filename_seen_cache): Update.
3016 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3017 (filename_seen): Update.
3018
3019 2012-07-13 Doug Evans <dje@google.com>
3020
3021 * symtab.c (filename_seen): Update comment.
3022
3023 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3024 Doug Evans <dje@google.com>
3025
3026 * buildsym.c (end_symtab_1): Split it to ...
3027 (end_symtab_get_static_block): ... this ...
3028 (end_symtab_from_static_block): ... and this function.
3029 (end_symtab, end_expandable_symtab): Call them.
3030 * buildsym.h (end_symtab_get_static_block)
3031 (end_symtab_from_static_block): New declarations.
3032 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3033 Set its valid CU ranges.
3034
3035 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3038 DW_OP_GNU_parameter_ref.
3039
3040 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3043 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3044
3045 2012-07-13 Doug Evans <dje@google.com>
3046
3047 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3048 (filename_seen_cache): New struct.
3049 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3050 (create_filename_seen_cache): New function.
3051 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3052 (filename_seen): Delete arg "first". New arg "cache". All callers
3053 updated.
3054 (output_source_filename_data): New struct.
3055 (output_source_filename): Delete arg "first". New arg "data".
3056 All callers updated.
3057 (sources_info): Delete local "first". New locals "data", "cleanups".
3058 Rewrite to use filename_seen_cache.
3059 (add_partial_filename_data): Delete member "first". New member
3060 "filename_seen_cache". All uses updated.
3061 (make_source_files_completion_list): Rewrite to use
3062 filename_seen_cache.
3063
3064 2012-07-12 Doug Evans <dje@google.com>
3065
3066 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3067
3068 2012-07-10 Doug Evans <dje@google.com>
3069
3070 PR gdb/13498
3071 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3072 all_type_unit_groups, type_unit_groups, tu_stats.
3073 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3074 All uses updated. Add type_unit_group to union "s".
3075 (type_unit_group): New struct.
3076 (IS_TYPE_UNIT_GROUP): New macro.
3077 (abbrev_table): Delete unused member "section".
3078 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3079 (dw2_get_cu): Assert not used with type_unit_group.
3080 (dw2_get_primary_cu): New function.
3081 (dw2_build_type_unit_groups_reader): New function.
3082 (dw2_build_type_unit_groups): New function.
3083 (dw2_get_file_names): Assert not called on type units.
3084 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3085 Redo loop to iterate over type unit groups instead of type units.
3086 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3087 (read_abbrev_offset): New function.
3088 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3089 updated.
3090 (create_partial_symtab): New function.
3091 (process_psymtab_comp_unit_reader): Assert not used with type units.
3092 Call create_partial_symtab.
3093 (process_psymtab_type_unit): Delete.
3094 (hash_type_unit_group, eq_type_unit_group): New functions.
3095 (allocate_type_unit_groups_table): New function.
3096 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3097 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3098 (create_type_unit_group, get_type_unit_group): New functions.
3099 (tu_abbrev_offset): New struct.
3100 (sort_tu_by_abbrev_offset): New function.
3101 (add_type_unit_group_to_table): New function.
3102 (build_type_unit_groups): New function.
3103 (build_type_psymtabs_reader): New function.
3104 (build_type_psymtab_dependencies): New function.
3105 (build_type_psymtabs): Rewrite.
3106 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3107 is seen in a type unit.
3108 (process_queue): Move symtab expansion debugging printfs here.
3109 Call process_full_type_unit for type units.
3110 (compute_symtab_includes): Assert not called for type units.
3111 (process_cu_includes): Don't call compute_symtab_includes for
3112 type units.
3113 (process_full_type_unit): New function.
3114 (process_imported_unit_die): Flag an error if called for type units.
3115 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3116 updated. Assert not called for type units.
3117 (read_file_scope): Call dwarf2_start_symtab.
3118 (setup_type_unit_groups): New function.
3119 (read_type_unit_scope): Rewrite.
3120 (abbrev_table_read_table): Initialize abbrev_table->offset.
3121 (abbrev_table_free_cleanup): New function.
3122 (dwarf2_start_symtab): New function.
3123 (load_full_type_unit): Assert not called for type unit groups.
3124 * buildsym.c (finish_block_internal): New arg "expandable".
3125 All callers updated.
3126 (start_symtab): Move most contents to ...
3127 (restart_symtab): ... here. New function.
3128 (reset_symtab_globals): New function.
3129 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3130 Call reset_symtab_globals.
3131 (end_symtab, end_expandable_symtab): New functions.
3132 (set_missing_symtab, augment_type_symtab): New functions.
3133 * buildsym.h (end_expandable_symtab): Declare.
3134 (augment_type_symtab, restart_symtab): Declare.
3135 * psympriv.h (struct partial_symtab): New member "anonymous".
3136 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3137 anonymous psymtabs.
3138 (read_psymtabs_with_filename): Ditto.
3139 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3140 (expand_symtabs_matching_via_partial): Ditto.
3141 (dump_psymtab): Update.
3142 * dictionary.c (dict_add_pending): New function.
3143 * dictionary.h (dict_add_pending): Declare.
3144
3145 2012-07-09 Doug Evans <dje@google.com>
3146
3147 * buildsym.c (start_subfile): Remove unnecessary check for
3148 name == NULL.
3149
3150 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3151
3152 * dwarf2read.c (load_full_type_unit): Simplify.
3153
3154 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3155 to struct signatured_type **. All uses updated.
3156
3157 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3158 All callers updated.
3159
3160 2012-07-09 Tom Tromey <tromey@redhat.com>
3161
3162 * c-exp.y (check_parameter_typelist): New function.
3163 (parameter_typelist): Call it.
3164 * eval.c (make_params): Handle '(void)' case.
3165 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3166 '(void)' case.
3167
3168 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 * common/linux-ptrace.c: Include gdb_assert.h.
3171 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3172 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3173 stdint.h.
3174 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3175 functions.
3176 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3177 * linux-nat.c (linux_child_post_attach)
3178 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3179
3180 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3181
3182 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3183 nptl <2.7 bug workaround for core files.
3184
3185 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3188 clearing.
3189 (save_siginfo): Remove.
3190 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3191 call.
3192 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3193 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3194 * linux-nat.h (struct lwp_info): Remove field siginfo.
3195
3196 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 Code cleanup for the next patch.
3199 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3200 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3201 call for it.
3202 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3203 (ia64_linux_stopped_data_address):
3204 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3205 the return value.
3206 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3207 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3208 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3209 call for it.
3210
3211 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3212
3213 PR 14321
3214 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3215 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3216
3217 2012-07-06 Tom Tromey <tromey@redhat.com>
3218
3219 * c-exp.y (DOTDOTDOT): New token.
3220 (func_mod, exp): Use parameter_typelist.
3221 (parameter_typelist): New production.
3222 (tokentab3): Add "..." token.
3223 * eval.c (make_params): Handle varargs.
3224 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3225 varargs.
3226
3227 2012-07-06 Tom Tromey <tromey@redhat.com>
3228
3229 PR exp/9608:
3230 * c-exp.y (%union) <tvec>: Change type.
3231 (func_mod): Now uses <tvec> type.
3232 (exp): Update for tvec change.
3233 (direct_abs_decl): Push the typelist.
3234 (func_mod): Return a typelist.
3235 (nonempty_typelist): Update for tvec change.
3236 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3237 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3238 * parse.c (pop_type_list): New function.
3239 (push_typelist): New function.
3240 (follow_types): Handle tp_function_with_arguments.
3241 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3242 (enum type_pieces) <tp_function_with_arguments>: New constant.
3243 (union type_stack_elt) <typelist_val>: New field.
3244 (push_typelist): Declare.
3245
3246 2012-07-06 Tom Tromey <tromey@redhat.com>
3247
3248 * c-exp.y (%union) <type_stack>: New field.
3249 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3250 (ptr_operator_ts): New production.
3251 (ptype): Update.
3252 * parse.c (type_stack_reserve): New function.
3253 (check_type_stack_depth): Use it.
3254 (pop_type_stack, append_type_stack, push_type_stack)
3255 (get_type_stack, type_stack_cleanup): New functions.
3256 (follow_types): Handle tp_type_stack.
3257 (_initialize_parse): Simplify initialization.
3258 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3259 constant.
3260 (union type_stack_elt) <stack_val>: New field.
3261 (get_type_stack, append_type_stack, push_type_stack)
3262 (type_stack_cleanup): Declare.
3263
3264 2012-07-06 Tom Tromey <tromey@redhat.com>
3265
3266 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3267 Remove.
3268 (struct type_stack): New.
3269 * parse.c (type_stack, type_stack_size, type_stack_depth):
3270 Remove.
3271 (type_stack): New global.
3272 (parse_exp_in_context, check_type_stack_depth)
3273 (insert_into_type_stack, insert_type, push_type, push_type_int)
3274 (insert_type_address_space, pop_type, pop_type_int)
3275 (_initialize_parse): Update.
3276
3277 2012-07-06 Tom Tromey <tromey@redhat.com>
3278
3279 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3280 Remove %type.
3281
3282 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3283
3284 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3285
3286 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3287 Jan Kratochvil <jan.kratochvil@redhat.com>
3288
3289 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3290 alloca with xmalloc/xfree.
3291
3292 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3293
3294 * MAINTAINERS (Write After Approval): Add myself to the list.
3295
3296 2012-07-05 Doug Evans <dje@google.com>
3297
3298 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3299
3300 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3301
3302 * ax-gdb.c (cli/cli-utils.h): New include.
3303 (linespec.h): Ditto.
3304 (agent_eval_command_one): New function.
3305 (agent_command_1): Ditto.
3306 (agent_command): Call function agent_command_1.
3307 (agent_eval_command): Ditto.
3308 (_initialize_ax_gdb): Change help for "maint agent"
3309 and "maint agent-eval".
3310
3311 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3312
3313 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3314 * cli/cli-utils.c (check_for_argument): New function.
3315 * cli/cli-utils.h (check_for_argument): Ditto.
3316
3317 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3318
3319 * NEWS: Mention x32 ABI support.
3320
3321 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3322
3323 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3324 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3325
3326 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3327 and pc_regnum_from_eax to -1. Update SP regnum from
3328 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3329 needed.
3330
3331 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3332 pc_regnum_from_eax.
3333
3334 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3337 * dwarf2expr.h: Include gdbtypes.h.
3338 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3339 these forward declarations.
3340 (cu_offset, sect_offset): Move these ...
3341 * gdbtypes.h: Remove include dwarf2expr.h.
3342 (cu_offset, sect_offset): ... here.
3343
3344 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3345
3346 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3347 (amd64_linux_sigtramp_code): This.
3348 (amd64_x32_linux_sigtramp_code): New.
3349 (LINUX_SIGTRAMP_LEN): Updated.
3350 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3351
3352 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3353
3354 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3355
3356 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3357
3358 * config.in: Regenerate.
3359 * configure: Regenerate.
3360 * configure.ac: Remove check for gnu/libc-version.h.
3361 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3362 gnu/libc-version.h.
3363 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3364 variables libc_version, libc_major and libc_minor. Replace sscanf by
3365 inferior_has_bug. Extend the comment.
3366
3367 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 * linux-thread-db.c (inferior_has_bug): New function.
3370 (thread_db_find_new_threads_silently): Return boolean as checked by
3371 inferior_has_bug, describe it in the comments.
3372 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3373 earlier. Abort the initialization if it returned non-zero.
3374 (thread_db_new_objfile): Exclude debug files.
3375 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3376 if UNTIL_NO_NEW,
3377
3378 2012-07-02 Doug Evans <dje@google.com>
3379
3380 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3381 related to queue management.
3382
3383 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3384 instead of "debug dwarf2-die" in debugging printfs.
3385 (create_debug_info_hash_table_reader): Ditto.
3386 (create_debug_info_hash_table): Ditto.
3387 (init_dwo_file): Ditto.
3388 (init_cutu_and_read_dies): Add debugging printf.
3389 (init_cutu_and_read_dies_no_follow): Ditto.
3390 (process_psymtab_comp_unit_reader): Ditto.
3391
3392 2012-07-02 Stan Shebs <stan@codesourcery.com>
3393
3394 Add target-side support for dynamic printf.
3395 * NEWS: Mention the additional style.
3396 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3397 (struct bp_location): New field cmd_bytecode.
3398 * breakpoint.c: Include format.h.
3399 (disconnected_dprintf): New global.
3400 (parse_cmd_to_aexpr): New function.
3401 (build_target_command_list): New function.
3402 (insert_bp_location): Call it.
3403 (remove_breakpoints_pid): Skip dprintf breakpoints.
3404 (print_one_breakpoint_location): Ditto.
3405 (dprintf_style_agent): New global.
3406 (dprintf_style_enums): Add dprintf_style_agent.
3407 (update_dprintf_command_list): Add agent case.
3408 (agent_printf_command): New function.
3409 (_initialize_breakpoint): Add new commands.
3410 * common/ax.def (printf): New bytecode.
3411 * ax.h (ax_string): Declare.
3412 * ax-gdb.h (gen_printf): Declare.
3413 * ax-gdb.c: Include cli-utils.h, format.h.
3414 (gen_printf): New function.
3415 (maint_agent_print_command): New function.
3416 (_initialize_ax_gdb): Add maint agent-printf command.
3417 * ax-general.c (ax_string): New function.
3418 (ax_print): Add printf disassembly.
3419 * Makefile.in (SFILES): Add format.c
3420 (COMMON_OBS): Add format.o.
3421 * common/format.h: New file.
3422 * common/format.c: New file.
3423 * printcmd.c: Include format.h.
3424 (ui_printf): Call parse_format_string.
3425 * remote.c (remote_state): New field breakpoint_commands.
3426 (PACKET_BreakpointCommands): New enum.
3427 (remote_breakpoint_commands_feature): New function.
3428 (remote_protocol_features): Add new BreakpointCommands entry.
3429 (remote_can_run_breakpoint_commands): New function.
3430 (remote_add_target_side_commands): New function.
3431 (remote_insert_breakpoint): Call it.
3432 (remote_insert_hw_breakpoint): Ditto.
3433 (_initialize_remote): Add new packet configuration for
3434 target-side breakpoint commands.
3435 * target.h (struct target_ops): New field
3436 to_can_run_breakpoint_commands.
3437 (target_can_run_breakpoint_commands): New macro.
3438 * target.c (update_current_target): Handle
3439 to_can_run_breakpoint_commands.
3440
3441 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 Execute -ix and -iex only after system and user gdbinit files.
3444 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3445 processing down after gdbinit files.
3446
3447 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 Add fnmatch-gnu module.
3450 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3451 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3452 * gnulib/aclocal.m4: Regenerate.
3453 * gnulib/config.in: Regenerate.
3454 * gnulib/configure: Regenerate.
3455 * gnulib/import/dummy.c: Remove.
3456 * gnulib/import/Makefile.am: Regenerate.
3457 * gnulib/import/Makefile.in: Likewise.
3458 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3459 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3460 * gnulib/import/alloca.c: New file.
3461 * gnulib/import/alloca.in.h: Likewise.
3462 * gnulib/import/config.charset: Likewise.
3463 * gnulib/import/fnmatch.c: Likewise.
3464 * gnulib/import/fnmatch.in.h: Likewise.
3465 * gnulib/import/fnmatch_loop.c: Likewise.
3466 * gnulib/import/localcharset.c: Likewise.
3467 * gnulib/import/localcharset.h: Likewise.
3468 * gnulib/import/m4/alloca.m4: Likewise.
3469 * gnulib/import/m4/codeset.m4: Likewise.
3470 * gnulib/import/m4/configmake.m4: Likewise.
3471 * gnulib/import/m4/fcntl-o.m4: Likewise.
3472 * gnulib/import/m4/fnmatch.m4: Likewise.
3473 * gnulib/import/m4/glibc21.m4: Likewise.
3474 * gnulib/import/m4/localcharset.m4: Likewise.
3475 * gnulib/import/m4/locale-fr.m4: Likewise.
3476 * gnulib/import/m4/locale-ja.m4: Likewise.
3477 * gnulib/import/m4/locale-zh.m4: Likewise.
3478 * gnulib/import/m4/mbrtowc.m4: Likewise.
3479 * gnulib/import/m4/mbsinit.m4: Likewise.
3480 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3481 * gnulib/import/m4/mbstate_t.m4: Likewise.
3482 * gnulib/import/m4/stdbool.m4: Likewise.
3483 * gnulib/import/m4/wchar_h.m4: Likewise.
3484 * gnulib/import/m4/wctype_h.m4: Likewise.
3485 * gnulib/import/m4/wint_t.m4: Likewise.
3486 * gnulib/import/mbrtowc.c: Likewise.
3487 * gnulib/import/mbsinit.c: Likewise.
3488 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3489 * gnulib/import/mbsrtowcs-state.c: Likewise.
3490 * gnulib/import/mbsrtowcs.c: Likewise.
3491 * gnulib/import/ref-add.sin: Likewise.
3492 * gnulib/import/ref-del.sin: Likewise.
3493 * gnulib/import/stdbool.in.h: Likewise.
3494 * gnulib/import/streq.h: Likewise.
3495 * gnulib/import/strnlen1.c: Likewise.
3496 * gnulib/import/strnlen1.h: Likewise.
3497 * gnulib/import/verify.h: Likewise.
3498 * gnulib/import/wchar.in.h: Likewise.
3499 * gnulib/import/wctype.in.h: Likewise.
3500
3501 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3502
3503 Support shell wildcards for 'set auto-load safe-path'.
3504 * auto-load.c: Include fnmatch.h.
3505 (filename_is_in_dir): Rename to ...
3506 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3507 it. Update function comment. Rename dir_len to pattern_len. New
3508 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3509 messages. Use gdb_filename_fnmatch.
3510 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3511 pattern.
3512 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3513 * defs.h (gdb_filename_fnmatch): New declaration.
3514 * utils.c: Include fnmatch.h.
3515 (gdb_filename_fnmatch): New function.
3516
3517 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3518
3519 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3520 `-probe' and `-probe-stap' options.
3521
3522 2012-07-01 Yao Qi <yao@codesourcery.com>
3523
3524 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3525 always_inserted_off, and always_inserted_enums.
3526 Change always_inserted_mode's type to 'enum auto_boolean'.
3527 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3528 callers.
3529 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3530 of add_setshow_enum_cmd.
3531 * infrun.c: Remove can_use_displaced_stepping_auto,
3532 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3533 can_use_displaced_stepping_enum.
3534 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3535 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3536 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3537 add_setshow_enum_cmd.
3538
3539 2012-06-30 Doug Evans <dje@google.com>
3540
3541 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3542 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3543 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3544
3545 2012-06-29 Doug Evans <dje@google.com>
3546
3547 * linespec.c: #include "stack.h".
3548 (decode_line_with_current_source): Moved here from symtab.c and
3549 renamed from decode_line_spec. All callers updated.
3550 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3551 renamed from decode_line_spec_1. All callers updated.
3552 * linespec.h (decode_line_with_current_source): Move declaration here
3553 from symtab.h and renamed from decode_line_spec.
3554 (decode_line_with_last_displayed): Move declaration here from symtab.h
3555 and renamed from decode_line_spec_1.
3556 * macrocmd.c: #include "linespec.h".
3557 * symtab.c: Remove #include "linespec.h".
3558
3559 2012-06-28 Doug Evans <dje@google.com>
3560
3561 * dwarf2read.c (get_cu_length): New function.
3562 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3563 (create_debug_types_hash_table): Ditto.
3564 (init_cutu_and_read_dies): Ditto.
3565 (init_cutu_and_read_dies_no_follow): Ditto.
3566
3567 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3568
3569 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3570 (struct abbrev_table): Define.
3571 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3572 abbrev_table.
3573 (init_cutu_and_read_dies): Update.
3574 (abbrev_table_alloc_abbrev): New function. Replaces
3575 dwarf_alloc_abbrev. All callers updated.
3576 (abbrev_table_add_abbrev): New function.
3577 (abbrev_table_lookup_abbrev): New function. Replaces
3578 dwarf2_lookup_abbrev. All callers updated.
3579 (abbrev_table_read_table): New function. Contents moved here from
3580 dwarf2_read_abbrevs.
3581 (dwarf2_read_abbrevs): Call it.
3582 (abbrev_table_free): New function.
3583 (dwarf2_free_abbrev_table): Call it.
3584
3585 2012-06-28 Stan Shebs <stan@codesourcery.com>
3586
3587 * osdata.c (info_osdata_command): Filter out "Title" columns
3588 from non-MI uses.
3589 * common/linux-osdata.c (struct osdata_type): Add title field.
3590 (osdata_table): Add titles to each entry.
3591 (linux_command_xfer_osdata): Add a column for title data.
3592
3593 2012-06-28 Stan Shebs <stan@codesourcery.com>
3594
3595 Make logging work for MI.
3596 * NEWS: Mention it.
3597 * interps.h (interp_set_logging_ftype): New typedef.
3598 (struct interp_procs): New field set_logging_proc.
3599 (current_interp_set_logging): Declare.
3600 * interps.c (current_interp_set_logging): New function.
3601 * cli/cli-logging.c: Include interps.h.
3602 (set_logging_redirect): Call current_interp_set_logging.
3603 (pop_output_files): Ditto.
3604 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3605 * mi/mi-console.h (mi_console_set_raw): Declare.
3606 * mi/mi-console.c (mi_console_set_raw): New function.
3607 * mi/mi-interp.c (saved_raw_stdout): New global.
3608 (mi_set_logging): New function.
3609 (_initialize_mi_interp): Add it to interp procs.
3610
3611 2012-06-28 Doug Evans <dje@google.com>
3612
3613 * symtab.c (lookup_symbol_aux_objfile): Use
3614 ALL_OBJFILE_PRIMARY_SYMTABS.
3615
3616 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3617
3618 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 * common/buffer.c: Include inttypes.h and stdint.h.
3621 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3622
3623 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3624 Pedro Alves <palves@redhat.com>
3625
3626 * gdbthread.h (ALL_THREADS): New macro.
3627 (thread_list): Declare.
3628 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3629 going, but instead fall through to the stepping handling.
3630 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3631 the passed in signal. Adjust debug output.
3632 (resume_callback): Rename to ...
3633 (linux_nat_resume_callback): ... this. Pass the thread's last
3634 stop signal, if in "pass" state.
3635 (linux_nat_resume): Adjust to rename.
3636 (stop_wait_callback): New assertion. Don't respawn signals;
3637 instead let the LWP remain with SIGNALLED set.
3638 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3639 * remote.c (append_pending_thread_resumptions): New.
3640 (remote_vcont_resume): Call it.
3641 * target.h (target_resume): Extend comment.
3642
3643 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3644
3645 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3646
3647 2012-06-27 Doug Evans <dje@google.com>
3648
3649 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3650 Delete have_addr_base, unused. All uses updated.
3651 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3652 (dwarf2_get_pc_bounds): Add ranges_base.
3653 (dwarf2_record_block_ranges): Ditto.
3654
3655 2012-06-27 Tom Tromey <tromey@redhat.com>
3656
3657 PR macros/7961:
3658 * varobj.c (varobj_create): Update.
3659 (varobj_set_value): Update.
3660 * tracepoint.c (validate_actionline): Update.
3661 (encode_actions_1): Update.
3662 * parse.c (parse_exp_1): Add 'pc' argument.
3663 (parse_exp_in_context): Add 'pc' argument. Change how
3664 expression_context_pc is set.
3665 (parse_expression): Update.
3666 (parse_field_expression): Update.
3667 * expression.h (parse_exp_1): Update.
3668 * eval.c (parse_to_comma_and_eval): Update.
3669 * breakpoint.c (set_breakpoint_condition): Update.
3670 (update_watchpoint): Update.
3671 (init_breakpoint_sal): Update
3672 (find_condition_and_thread): Update.
3673 (watch_command_1): Update.
3674 (update_breakpoint_locations): Update.
3675 * ada-lang.c (ada_read_renaming_var_value): Update.
3676 (create_excep_cond_exprs): Update.
3677
3678 2012-06-27 Doug Evans <dje@google.com>
3679
3680 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3681 type units.
3682
3683 2012-06-26 Doug Evans <dje@google.com>
3684
3685 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3686 prototype.
3687 (error_check_comp_unit_head): New arg abbrev_section. All callers
3688 updated.
3689 (read_and_check_comp_unit_head): Ditto.
3690 (read_and_check_type_unit_head): Ditto.
3691
3692 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3693
3694 New attribute 'last' for gdb.Symtab_and_line.
3695 * NEWS (Python Scripting): Add entry about the new attribute.
3696 * python/py-symtab.c (salpy_get_last): New function which
3697 implements the get method for the 'last' attribute of
3698 gdb.Symtab_and_line.
3699 (sal_object_getset): Add entry for the 'last' attribute.
3700
3701 2012-06-26 Doug Evans <dje@google.com>
3702
3703 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3704 (dwo_sections): Add macinfo, macro.
3705 (dwarf2_locate_dwo_sections): Watch for macro sections.
3706 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3707 All callers updated. Handle DWO files.
3708
3709 * NEWS: Mention new options "set debug dwarf2-read" and
3710 "set debug symtab-create".
3711 * dwarf2read.c (dwarf2_read_debug): New static global.
3712 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3713 (process_queue): Ditto.
3714 (process_full_comp_unit): Ditto.
3715 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3716 * elfread.c (elf_symfile_read): Add debugging printf.
3717 * minsyms.c (install_minimal_symbols): Ditto.
3718 * psymtab.c (allocate_psymtab): Ditto.
3719 * symfile.c (allocate_symtab): Ditto.
3720 * symtab.c (symtab_create_debug): New global.
3721 (_initialize_symtab): Add new option "set debug symtab-create".
3722 * symtab.h (symtab_create_debug): Declare.
3723
3724 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3725 (lookup_dwo_type_unit): Ditto.
3726
3727 2012-06-26 Roland McGrath <roland@hack.frob.com>
3728 H.J. Lu <hongjiu.lu@intel.com>
3729
3730 * amd64-linux-nat.c: Include <sys/user.h>.
3731 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3732 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3733 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3734
3735 * configure.ac: Check if the fs_base and gs_base members of
3736 `struct user_regs_struct' exist.
3737 * config.in: Regenerated.
3738 * configure: Likewise.
3739
3740 2012-06-25 Michael Eager <eager@eagercon.com>
3741
3742 PR python/14291
3743 * python/python.c (gdbpy_write): Check for interrupted output.
3744
3745 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3746
3747 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3748 register as a stack alignment in ARM mode.
3749
3750 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3753 * gnulib/config.in: Regenerate.
3754 * gnulib/configure: Likewise.
3755 * gnulib/import/m4/extensions.m4: Update it.
3756 * gnulib/import/m4/gnulib-common.m4: Likewise.
3757 * gnulib/import/m4/memmem.m4: Likewise.
3758 * gnulib/import/m4/mmap-anon.m4: Likewise.
3759 * gnulib/import/m4/multiarch.m4: Likewise.
3760 * gnulib/import/stdint.in.h: Likewise.
3761
3762 2012-06-24 Yao Qi <yao@codesourcery.com>
3763
3764 * corefile.c (write_memory_with_notification): New.
3765 * gdbcore.h: Declare write_memory_with_notification.
3766 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3767 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3768 * valops.c (value_assign): Likewise.
3769 * python/py-inferior.c (infpy_write_memory): Call
3770 'write_memory_with_notification'.
3771
3772 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3773
3774 * cc-with-index.sh: Use also -ex "set auto-load no".
3775
3776 2012-06-23 Doug Evans <dje@google.com>
3777
3778 PR 14125
3779 * NEWS: Document additions to .gdb_index.
3780 * dwarf2read.c: #include "gdb/gdb-index.h".
3781 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3782 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3783 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3784 (dwarf2_read_index): Recognize version 7.
3785 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3786 block_kind, domain): All callers updated.
3787 (dw2_find_symbol_file): Handle new index CU values.
3788 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3789 (add_index_entry): New args is_static, kind. All callers updated.
3790 (offset_type_compare, uniquify_cu_indices): New functions
3791 (symbol_kind): New function.
3792 (write_psymtabs_to_index): Remove duplicate CU values.
3793 (write_psymtabs_to_index): Write .gdb_index version 7.
3794
3795 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3796
3797 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3798 * configure: Regenerate.
3799
3800 2012-06-20 Yao Qi <yao@codesourcery.com>
3801
3802 * python/py-inferior.c: Update comments of infpy_read_memory
3803 and infpy_write_memory.
3804
3805 2012-06-19 Tom Tromey <tromey@redhat.com>
3806
3807 PR exp/9514:
3808 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3809 (push_type_address_space): Remove.
3810 * parse.c (insert_into_type_stack): New function.
3811 (insert_type): Likewise.
3812 (insert_type_address_space): Rename from push_type_address_space.
3813 Insert tp_space_identifier.
3814 * c-exp.y (ptr_operator): New production.
3815 (abs_decl): Use ptr_operator.
3816 (space_identifier): Call insert_type_address_space.
3817 (ptype): Don't use const_or_volatile_or_space_identifier.
3818 (const_or_volatile_noopt): Call insert_type.
3819 (conversion_type_id, conversion_declarator): New productions.
3820 (operator): Use conversion_type_id.
3821
3822 2012-06-18 Doug Evans <dje@google.com>
3823
3824 * symtab.h (minimal_symbol): New member created_by_gdb.
3825 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3826 created by gdb.
3827 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3828 (search_symbols): Call it instead of lookup_symbol.
3829 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3830
3831 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3832 Adjust address for DW_OP_GNU_addr_index.
3833 * dwarf2expr.h (dwarf_expr_context): Update comment.
3834 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3835 all callers updated. Handle TLS vars described with
3836 DW_OP_GNU_const_index.
3837 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3838 and DW_OP_GNU_const_index.
3839 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3840
3841 * block.c (find_block_in_blockvector): Make explicit the fact that we
3842 ignore GLOBAL_BLOCK.
3843
3844 2012-06-18 Tom Tromey <tromey@redhat.com>
3845
3846 * c-exp.y (operator): Remove trailing space after "delete" and
3847 "delete[]".
3848
3849 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3850 Jan Kratochvil <jan.kratochvil@redhat.com>
3851
3852 Switch i386 and derived targets to ON_STACK.
3853 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3854 (amd64_dicos_init_abi): Remove its installment.
3855 * dicos-tdep.c (dicos_init_abi): Remove the
3856 set_gdbarch_call_dummy_location call. Update the comment here.
3857 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3858 (i386_dicos_init_abi): Remove its installment.
3859 * i386-tdep.c (i386_push_dummy_code): New function.
3860 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3861 i386_push_dummy_code.
3862
3863 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 Remove stale dummy frames.
3866 * breakpoint.c: Include dummy-frame.h.
3867 (longjmp_breakpoint_ops): New variable.
3868 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3869 bp_longjmp_call_dummy.
3870 (bpstat_what, bptype_string, print_one_breakpoint_location)
3871 (init_bp_location): Support bp_longjmp_call_dummy.
3872 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3873 (set_longjmp_breakpoint_for_call_dummy)
3874 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3875 functions.
3876 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3877 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3878 FIXME comment and extend the other comment for bp_call_dummy.
3879 (set_longjmp_breakpoint_for_call_dummy)
3880 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3881 * dummy-frame.c: Include gdbthread.h.
3882 (pop_dummy_frame_bpt): New function.
3883 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3884 (dummy_frame_discard): New function.
3885 (cleanup_dummy_frames): Update the comment about longjmps.
3886 * dummy-frame.h (dummy_frame_discard): New declaration.
3887 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3888 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3889 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3890 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3891 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3892 keep_going if IS_LONGJMP and there is no other reason to stop.
3893
3894 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3895
3896 * remote-sim.c (sim_command_completer): Initialize
3897 variable 'result'.
3898
3899 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3902 * dwarf2loc.c (call_site_parameter_matches): Support
3903 CALL_SITE_PARAMETER_PARAM_OFFSET.
3904 (needs_dwarf_reg_entry_value): Push stub value.
3905 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3906 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3907 * gdbtypes.h (enum call_site_parameter_kind): New item
3908 CALL_SITE_PARAMETER_PARAM_OFFSET.
3909 (struct call_site.parameter.u): New field param_offset.
3910
3911 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3912
3913 Code cleanup: Generalize call_site.parameter key.
3914 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3915 variable dwarf_reg. New variable kind_u. Update parameters to
3916 push_dwarf_reg_entry_value.
3917 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3918 * dwarf2expr.h (enum call_site_parameter_kind)
3919 (union call_site_parameter_u): Forward declarations.
3920 (struct dwarf_expr_context_funcs): Update parameters and their
3921 description for push_dwarf_reg_entry_value.
3922 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3923 * dwarf2loc.c (call_site_parameter_matches): New function.
3924 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3925 description. Use call_site_parameter_matches.
3926 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3927 Update parameters and their description.
3928 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3929 New variable kind_u. Adjust the caller for updated parameters.
3930 (needs_dwarf_reg_entry_value): Update parameters.
3931 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3932 instead of attr. Update for the changed fields of struct
3933 call_site_parameter.
3934 * gdbtypes.h: Include dwarf2expr.h.
3935 (enum call_site_parameter_kind): New.
3936 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3937 fb_offset into new union u.
3938
3939 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3940
3941 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3942 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3943 for x32.
3944
3945 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3946
3947 * amd64-linux-nat.c (compat_x32_clock_t): New.
3948 (compat_x32_siginfo_t): Likewise.
3949 (compat_x32_siginfo_from_siginfo): Likewise.
3950 (siginfo_from_compat_x32_siginfo): Likewise.
3951 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3952 and siginfo_from_compat_x32_siginfo for x32.
3953
3954 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3955
3956 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3957
3958 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3961 instead of gdbarch_ptr_bit.
3962 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3963 (amd64_supply_native_gregset): Likewise.
3964 (amd64_collect_native_gregset): Likewise.
3965 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3966 (amd64_supply_xsave): Likewise.
3967 (amd64_collect_fxsave): Likewise.
3968 (amd64_collect_xsave): Likewise.
3969
3970 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3971
3972 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3973 (amd64_linux_read_description): Check DS segment register for
3974 x32 process.
3975
3976 2012-06-15 Tom Tromey <tromey@redhat.com>
3977
3978 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3979 init_cutu_and_read_dies.
3980
3981 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3982
3983 * MAINTAINERS (Write After Approval): Add myself to the list.
3984
3985 2012-06-15 Tom Tromey <tromey@redhat.com>
3986
3987 * valops.c (value_find_oload_method_list): Now static.
3988 * value.h (value_find_oload_method_list): Don't declare.
3989
3990 2012-06-15 Tom Tromey <tromey@redhat.com>
3991
3992 * valops.c (find_overload_match): Use value_ind.
3993
3994 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3995
3996 * infrun.c (handle_inferior_event): Correct indentation.
3997
3998 2012-06-14 Doug Evans <dje@google.com>
3999
4000 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4001 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4002 All uses updated.
4003 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4004 updated. Handle DEBUG_LOC_START_LENGTH.
4005 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4006 (loclist_describe_location): Ditto.
4007
4008 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4009
4010 PR backtrace/13866
4011 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4012 after hiding inline functions.
4013
4014 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4015
4016 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4017 _initialize_inf_ttrace.
4018
4019 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4020
4021 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4022 _initialize_hppa_hpux_nat.
4023
4024 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4025
4026 * remote-sim.c (sim_command_completer): Change type of return
4027 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4028
4029 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4030 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 PR tdep/14222
4033 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4034 stack on a 16-byte boundary.
4035
4036 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4037
4038 * jit.c (finalize_symtab): Set function's return type to 'void' by
4039 default.
4040
4041 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4042 H.J. Lu <hongjiu.lu@intel.com>
4043
4044 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4045 Move bits common to both the classic LP64 and the new x32 ILP32
4046 ABI here.
4047 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4048 (amd64_x32_linux_init_abi): New function.
4049 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4050 subtype.
4051
4052 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4053 * i386-tdep.c (i386_pseudo_register_name): Make public.
4054 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4055 * amd64-tdep.c (amd64_dword_names): Add "eip".
4056 (amd64_x32_pseudo_register_type): New function
4057 (amd64_x32_init_abi): New function.
4058
4059 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 PR build/14003
4062 * inferior.h (struct inferior_suspend_state): Comment out.
4063 (struct inferior): Comment out the field suspend.
4064 * infrun.c (struct infcall_suspend_state): Comment out the field
4065 inferior_suspend.
4066 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4067 out its assignment.
4068
4069 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4070
4071 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4072 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4073 function comment. Return ERROR for unresolved cases. Implement
4074 returning proper NAME.
4075 (yylex): Accept also NAME from classify_inner_name.
4076 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4077 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4078 LOC_TYPEDEF type.
4079 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4080
4081 2012-06-13 Tom Tromey <tromey@redhat.com>
4082
4083 * breakpoint.c (condition_completer): New function.
4084 (_initialize_breakpoint): Use it.
4085 * value.c (complete_internalvar): New function.
4086 * value.h (complete_internalvar): Declare.
4087
4088 2012-06-13 Tom Tromey <tromey@redhat.com>
4089
4090 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4091 * breakpoint.c (catch_syscall_completer): Return a VEC.
4092 * cli/cli-cmds.c (complete_command): Update.
4093 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4094 (complete_on_enum): Likewise.
4095 * command.h: Include gdb_vecs.h.
4096 (completer_ftype): Change return type.
4097 (complete_on_cmdlist, complete_on_enum): Likewise.
4098 * completer.c (noop_completer, filename_completer)
4099 (location_completer): Return a VEC.
4100 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4101 to a VEC.
4102 (expression_completer, complete_line_internal, complete_line)
4103 (command_completer): Return a VEC.
4104 (gdb_completion_word_break_characters, line_completion_function):
4105 Update.
4106 * completer.h: Include gdb_vecs.h.
4107 (complete_line, noop_completer, filename_completer)
4108 (expression_completer, location_completer, command_completer):
4109 Update.
4110 * f-lang.c (f_word_break_characters): Return a VEC.
4111 * interps.c (interpreter_completer): Return a VEC.
4112 * language.h (struct language_defn)
4113 <la_make_symbol_completion_list>: Return a VEC.
4114 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4115 * symtab.c (free_completion_list): Take a VEC.
4116 (return_val_size, return_val_index): Remove.
4117 (return_val): Now a VEC.
4118 (completion_list_add_name): Update.
4119 (default_make_symbol_completion_list_break_on)
4120 (default_make_symbol_completion_list, make_symbol_completion_list)
4121 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4122 Return a VEC.
4123 (add_filename_to_list): Update.
4124 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4125 <list>: Now a VEC.
4126 (maybe_add_partial_symtab_filename): Update.
4127 (make_source_files_completion_list): Return a VEC.
4128 * symtab.h (default_make_symbol_completion_list_break_on)
4129 (default_make_symbol_completion_list, make_symbol_completion_list)
4130 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4131 (make_source_files_completion_list): Update.
4132
4133 2012-06-13 Tom Tromey <tromey@redhat.com>
4134
4135 * breakpoint.c (add_catch_command): Use completer_ftype.
4136 * breakpoint.h: Include command.h.
4137 (add_catch_command): Use completer_ftype.
4138 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4139 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4140 Use completer_ftype.
4141 * command.h (completer_ftype): New typedef.
4142 (set_cmd_completer): Use it.
4143 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4144 completer_ftype.
4145
4146 2012-06-13 Pedro Alves <palves@redhat.com>
4147
4148 Partial revert of previous change.
4149
4150 * serial.c (scb_base): New global.
4151 (serial_for_fd): New.
4152 (serial_open, serial_fdopen_ops): Link new serial in open serials
4153 chain.
4154 (do_serial_close): Unlink serial from the open serials chain.
4155
4156 2012-06-12 Pedro Alves <palves@redhat.com>
4157
4158 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4159 threads here.
4160 (prepare_for_detach): No longer context switch here in non-stop
4161 mode.
4162 (fetch_inferior_event): Ditto.
4163 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4164 to the event thread before removing breakpoints. Switch to the
4165 event thread before inserting breakpoints and resuming.
4166 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4167 event thread before resuming.
4168 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4169 Switch to the event thread before removing breakpoints.
4170
4171 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4172
4173 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4174 special characters correctly for the Windows shells. See
4175 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4176 report.
4177 [!__MINGW32__]: Remove extra double quote character from special
4178 characters.
4179
4180 2012-06-11 Stan Shebs <stan@codesourcery.com>
4181
4182 * ui-out.h: Remove #if 0 declarations.
4183 * ui-out.c: Remove #if 0 functions.
4184
4185 2012-06-11 Pedro Alves <palves@redhat.com>
4186
4187 * ser-base.c (run_async_handler_and_reschedule): New.
4188 (fd_event, push_event): Use it.
4189 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4190 reference count to 1.
4191 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4192 instead of xfree.
4193 (serial_is_open, serial_ref, serial_unref): New.
4194 * serial.h (serial_open): Adjust comment.
4195 (serial_is_open): Declare.
4196 (serial_close): Adjust comment.
4197 (serial_ref, serial_unref) Declare.
4198 (struct serial): New field 'refcnt'.
4199
4200 2012-06-11 Pedro Alves <palves@redhat.com>
4201
4202 Remove #if 0'd "connect" command, and unnecessary associated
4203 refcounting and serial reuse bits.
4204
4205 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4206 * serial.c (last_serial_opened): Delete.
4207 (scb_base): Delete.
4208 (serial_open): Adjust.
4209 (serial_for_fd): Delete.
4210 (serial_fdopen_ops, do_serial_close): Adjust.
4211 (serial_fdopen_ops): Adjust.
4212
4213 2012-06-11 Pedro Alves <palves@redhat.com>
4214
4215 * serial.c (do_serial_close): Remove early return when SCB is
4216 null.
4217
4218 2012-06-11 Tom Tromey <tromey@redhat.com>
4219
4220 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4221
4222 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4223
4224 Fix regression by the "ambiguous linespec" series.
4225 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4226 get_last_displayed_symtab and get_last_displayed_line and depending
4227 on CURSAL.
4228
4229 2012-06-11 Tom Tromey <tromey@redhat.com>
4230
4231 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4232 (dw2_find_symbol_file): Use it.
4233
4234 2012-06-11 Michael Eager <eager@eagercon.com>
4235
4236 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4237 * mips-linux-tdep.h (mips_signals): New
4238
4239 2012-06-11 Tom Tromey <tromey@redhat.com>
4240
4241 * infrun.c (handle_inferior_event)
4242 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4243 breakpoint.
4244 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4245 exception logic in all cases. Update comments.
4246 (insert_longjmp_resume_breakpoint): Set the exception resume
4247 breakpoint.
4248
4249 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4250
4251 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4252
4253 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4254
4255 * valarith.c (binop_types_user_defined_p): Fix a typo.
4256
4257 2012-06-08 Yao Qi <yao@codesourcery.com>
4258 Chung-Lin Tang <cltang@codesourcery.com>
4259
4260 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4261 * arch-utils.h: Declare.
4262 * gdbarch.sh: Add return_in_first_hidden_param_p.
4263 * gdbarch.c, gdbarch.h: Regenerated.
4264 * infcall.c (call_function_by_hand): Call
4265 gdbarch_return_in_first_hidden_param_p instead of
4266 language_pass_by_reference.
4267
4268 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4269 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4270 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4271 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4272 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4273 `cplus_return_struct_by_reference'.
4274 (tic6x_return_value): Handle language cplusplus.
4275 (tic6x_return_in_first_hidden_param_p): New.
4276 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4277
4278 2012-06-07 Doug Evans <dje@google.com>
4279
4280 * dwarf2read.c (dwarf2_cu): Add comment.
4281
4282 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4283
4284 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4285 variable.
4286 (mips_eabi_push_dummy_call): Likewise.
4287 (mips_n32n64_push_dummy_call): Likewise.
4288 (mips_o32_push_dummy_call): Likewise.
4289 (mips_o64_push_dummy_call): Likewise.
4290
4291 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4292
4293 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4294
4295 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4296
4297 * mips-tdep.c (mips_pseudo_register_type): Use
4298 mips_float_register_p.
4299
4300 2012-06-06 Pedro Alves <palves@redhat.com>
4301
4302 * infrun.c (handle_inferior_event): Remove calls to
4303 reinit_frame_cache that follow a context_switch call.
4304
4305 2012-06-06 Pedro Alves <palves@redhat.com>
4306
4307 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4308 context_switch and remove stale comment.
4309
4310 2012-06-06 Pedro Alves <palves@redhat.com>
4311
4312 * infrun.c (struct execution_control_state): Remove
4313 `new_thread_event' field.
4314 (handle_inferior_event): Simplify new threads handling; don't
4315 resume the inferior if we find a new thread.
4316
4317 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4318
4319 * NEWS: Document the deprecation of SH's 'regs' command.
4320 * inferior.h (all_registers_info): Add function declaration.
4321 * sh-tdep.c (sh_show_regs): Remove variable.
4322 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4323 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4324 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4325 (sh_show_regs_command): Remove functions.
4326 (sh_gdbarch_init): Don't set sh_show_regs.
4327 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4328 'info all-registers'.
4329 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4330 (sh64_show_regs): Remove functions.
4331 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4332
4333 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4334
4335 * configure.ac: Move development=true below AC_INIT.
4336 * configure: Regenerate.
4337
4338 2012-06-05 Stan Shebs <stan@codesourcery.com>
4339
4340 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4341 gdb_stdout.
4342
4343 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4344
4345 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4346 argument as ssize_t.
4347 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4348 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4349 * target.c (target_read_stack, target_write_memory)
4350 (target_write_raw_memory): Likewise.
4351 * target.h (target_read_stack, target_write_memory)
4352 (target_write_raw_memory): Likewise.
4353
4354 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4355
4356 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4357 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4358 * target.c (target_read_memory): Change LEN to ssize_t.
4359 * target.h (target_read_memory): Change LEN to ssize_t.
4360
4361 2012-06-05 Pedro Alves <palves@redhat.com>
4362
4363 PR backtrace/13866
4364
4365 * breakpoint.c (until_break_command): Only fetch the selected
4366 frame after decode_line_1.
4367
4368 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4369
4370 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4371 event breakpoint at _start, __start or main if a program
4372 interpreter is not found.
4373
4374 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4375
4376 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4377 Add declaration.
4378 * windows-tdep.c: #include "objfiles.h".
4379 (windows_iterate_over_objfiles_in_search_order): New function.
4380 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4381 iterate_over_objfiles_in_search_order gdbarch method to
4382 windows_iterate_over_objfiles_in_search_order.
4383 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4384
4385 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4386
4387 * gdbarch.sh: Add generation of
4388 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4389 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4390 (iterate_over_objfiles_in_search_order): New gdbarch method.
4391 * gdbarch.h, gdbarch.c: Regenerate.
4392 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4393 Add declaration.
4394 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4395 New function.
4396 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4397 out of lookup_symbol_aux_symtabs.
4398 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4399 call to lookup_symbol_aux_objfile.
4400 (struct global_sym_lookup_data): New type.
4401 (lookup_symbol_global_iterator_cb): New function.
4402 (lookup_symbol_global): Search for symbol using
4403 gdbarch_iterate_over_objfiles_in_search_order and
4404 lookup_symbol_global_iterator_cb.
4405 * findvar.c (struct minsym_lookup_data): New type.
4406 (minsym_lookup_iterator_cb): New function.
4407 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4408 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4409 and minsym_lookup_iterator_cb.
4410
4411 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4412
4413 Revert the following patch:
4414 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4415 try locating the symbol in the symbol's own objfile first, before
4416 extending the search to all objfiles.
4417 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4418 out of lookup_symbol_aux_symtabs.
4419 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4420 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4421 Do not search EXCLUDE_OBJFILE.
4422 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4423 (lookup_symbol_global): Search for matches in the block's objfile
4424 first, before searching all other objfiles.
4425
4426 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4427
4428 * breakpoint.c (find_condition_and_thread): Stop parsing
4429 as soon as the first invalid keyword is found.
4430
4431 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4432
4433 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4434
4435 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4436
4437 * config/djgpp/djcheck.sh: Add copyright header.
4438
4439 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4440
4441 * copyright.py (update_files, main): Fix path to update-copyright
4442 script.
4443
4444 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4445
4446 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4447 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4448 for which a reminder to update by hand is printed.
4449
4450 2012-06-04 Doug Evans <dje@google.com>
4451
4452 * buildsym.c (make_blockvector): Add comment.
4453
4454 2012-06-04 Pedro Alves <palves@redhat.com>
4455
4456 * arch-utils.c (default_gdb_signal_from_target): Delete.
4457 * arch-utils.h (default_gdb_signal_from_target): Delete.
4458 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4459 gdbarch_gdb_signal_from_target_p.
4460 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4461 predicate).
4462 * gdbarch.h: Regenerate.
4463 * gdbarch.c: Regenerate.
4464
4465 2012-06-04 Pedro Alves <palves@redhat.com>
4466
4467 * gdbarch.sh (gdb_signal_from_target): Mention that the
4468 implementation of the method must be host independent.
4469 * gdbarch.h: Regenerate.
4470
4471 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4472
4473 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4474 parameters.
4475 (target_read_memory_bfd): New function.
4476 (symbol_file_add_from_memory): Use it.
4477
4478 2012-06-03 Doug Evans <dje@google.com>
4479
4480 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4481 of primary symtab.
4482 (basic_lookup_transparent_type): Ditto.
4483
4484 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4485 (ALL_PRIMARY_SYMTABS): Use it.
4486 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4487 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4488 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4489 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4490 (basic_lookup_transparent_type): Ditto.
4491
4492 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4493
4494 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4495 it to optimize resolution of demangled name.
4496
4497 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 * configure.ac (development): Define new variable.
4500 Call AC_CHECK_LIB for mcheck if $development.
4501 (ERROR_ON_WARNING): Enable it by default only if $development.
4502 * config.in: Regenerate.
4503 * configure: Regenerate.
4504
4505 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4506
4507 * target.c (target_read_memory): Make LEN argument as size_t.
4508 * target.h (target_read_memory): Likewise.
4509
4510 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4513
4514 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4515
4516 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4517 BookE interface for PowerPC server processors if not available
4518 in the Linux Kernel.
4519
4520 2012-05-31 Keith Seitz <keiths@redhat.com>
4521
4522 * linespec.c (decode_objc): Add cleanup to free
4523 INFO.FILE_SYMTABS.
4524 (find_linespec_symbols): Add cleanup to free CLASSES.
4525 * symfile.c (find_separate_debug_file_by_debuglink): Add
4526 cleanup to free DEBUGLINK.
4527 * ui-out.c (clear_header_list): No need to check if
4528 HEADER_NEXT.COLHDR is NULL.
4529 Free HEADER_NEXT.COL_NAME.
4530
4531 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4532
4533 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4534 warning.
4535
4536 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4537
4538 * configure.host (gdb_host_cpu): Handle tilegx*.
4539 (gdb_host): Handle tilegx-*-linux*.
4540 * tilegx-linux-nat.c: New file.
4541 * config/tilegx/linux.mh: New file.
4542
4543 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4544
4545 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4546 tilegx-linux-tdep.o.
4547 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4548 tilegx-linux-tdep.c.
4549 * configure.tgt: Handle tilegx-*-linux*.
4550 * tilegx-tdep.h: New file.
4551 * tilegx-tdep.c: New file.
4552 * tilegx-linux-tdep.c: New file.
4553 * regformats/reg-tilegx.dat: New file.
4554
4555 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4556
4557 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4558 accounting of hw watchpoints on ppc.
4559
4560 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4561
4562 * source.c (openp): Expand tilde in path entries.
4563
4564 2012-05-29 Doug Evans <dje@google.com>
4565
4566 * buildsym.c (block_compar): Fix comment.
4567 (end_symtab): Fix and clarify some comments.
4568
4569 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4570 cleanup_undefined_types.
4571 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4572 All callers updated.
4573
4574 2012-05-29 Tom Tromey <tromey@redhat.com>
4575
4576 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4577 fails.
4578 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4579 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4580 fails.
4581 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4582 fails.
4583
4584 2012-05-29 Tristan Gingold <gingold@adacore.com>
4585
4586 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4587 (struct darwin_info): ... New struct.
4588 (solib_darwin_pspace_data): New variable.
4589 (darwin_pspace_data_cleanup): New function.
4590 (get_darwin_info): Likewise.
4591 (darwin_dyld_version_ok, darwin_load_image_infos)
4592 (darwin_solib_get_all_image_info_addr_at_init)
4593 (darwin_solib_read_all_image_info_addr): Add info argument.
4594 Adjust code.
4595 (darwin_current_sos): Use per pspace structure.
4596 (darwin_solib_create_inferior_hook): Likewise.
4597 (darwin_clear_solib): Likewise.
4598 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4599
4600 2012-05-28 Pedro Alves <palves@redhat.com>
4601
4602 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4603 block that uses them. Clear ecss before handling each event.
4604
4605 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4606
4607 * solib-svr4.c (svr4_current_sos): New comment on
4608 svr4_current_sos_via_xfer_libraries fall back.
4609
4610 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4611
4612 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4613 it as a fallback for TYPE_IS_OPAQUE.
4614 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4615 symbols for lookup_symbol.
4616
4617 2012-05-24 John Steele Scott <toojays@toojays.net>
4618
4619 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4620 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4621 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4622 (check_producer): ... this new function, which also checks for ICC
4623 and caches the result.
4624 (producer_is_icc): New function.
4625 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4626 producer was ICC.
4627
4628 2012-05-24 Pedro Alves <palves@redhat.com>
4629
4630 PR gdb/7205
4631
4632 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4633 (default_gdb_signal_to_target): ... this. Add comment.
4634 (default_gdb_signal_from_host): Rename to ...
4635 (default_gdb_signal_from_target): ... this. Add comment.
4636 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4637 (default_gdb_signal_to_target): ... this.
4638 (default_gdb_signal_from_host): Rename to ...
4639 (default_gdb_signal_from_target): ... this.
4640 * corelow.c (core_open): Adjust to naming change. Replace comment.
4641 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4642 (gdb_signal_from_target): ... this. Adjust to
4643 default_gdb_signal_from_host naming change. Extend comment.
4644 (gdb_signal_to_host): Rename to ...
4645 (gdb_signal_to_target): ... this. Adjust to
4646 default_gdb_signal_to_host naming change.
4647 * gdbarch.h, gdbarch.c: Renegerate.
4648
4649 2012-05-24 Pedro Alves <palves@redhat.com>
4650
4651 PR gdb/7205
4652
4653 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4654
4655 2012-05-24 Pedro Alves <palves@redhat.com>
4656
4657 PR gdb/7205
4658
4659 Replace target_signal with gdb_signal throughout.
4660
4661 2012-05-24 Pedro Alves <palves@redhat.com>
4662
4663 PR tui/14159
4664
4665 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4666 string, instead of reusing the va_list argument.
4667
4668 2012-05-24 Tom Tromey <tromey@redhat.com>
4669
4670 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4671 Remove.
4672
4673 2012-05-23 Doug Evans <dje@google.com>
4674
4675 * symtab.c (search_symbols): Formatting fixes.
4676 (print_symbol_info): Formatting fixes.
4677
4678 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4679 int64_t change to leb128 API.
4680 (read_encoded_value, decode_frame_entry_1): Ditto.
4681 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4682 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4683 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4684 (execute_stack_op): Ditto.
4685 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4686 (safe_read_uleb128, safe_read_sleb128): Ditto.
4687 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4688 (dwarf2_compile_expr_to_ax): Ditto.
4689 (locexpr_describe_location_piece): Ditto.
4690 (disassemble_dwarf_expression): Ditto.
4691 (locexpr_describe_location_1): Ditto.
4692
4693 2012-05-23 Stan Shebs <stan@codesourcery.com>
4694 Kwok Cheung Yeung <kcy@codesourcery.com>
4695
4696 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4697 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4698 (mi-cmd-info.o): New rule.
4699 * osdata.h (info_osdata_command): New declaration.
4700 * osdata.c (info_osdata_command): Change to non-static.
4701 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4702 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4703 * mi/mi-cmd-info.c: New file.
4704
4705 2012-05-23 Doug Evans <dje@google.com>
4706
4707 * symtab.c (search_symbols): Pass NULL for file_matcher to
4708 expand_symtabs_matching if there are no files to match.
4709
4710 * gdbtypes.c (lookup_typename): Simplify.
4711
4712 2012-05-23 Pedro Alves <palves@redhat.com>
4713
4714 * arch-utils.h (default_target_signal_to_host): Delete.
4715 * arch-utils.c (default_target_signal_to_host): Delete.
4716 * gdbarch.sh (target_signal_to_host): Remove.
4717 * gdbarch.h, gdbarch.c: Regenerate.
4718
4719 2012-05-22 Doug Evans <dje@google.com>
4720
4721 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4722 "const gdb_byte *".
4723 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4724 (execute_cfa_program): Update to match API of leb128 functions.
4725 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4726 "const gdb_byte *".
4727 (read_unsigned_leb128, read_signed_leb128): Delete.
4728 (read_initial_length): Change type of buf argument to
4729 "const gdb_byte *".
4730 (read_encoded_value): Update to match API of leb128 functions.
4731 (decode_frame_entry): Change result to "const gdb_byte *", and
4732 similarly for "start" parameter.
4733 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4734 (dwarf2_build_frame_info): Change local frame_ptr to
4735 "const gdb_byte *".
4736 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4737 read_uleb128, read_sleb128. All callers updated.
4738 (safe_skip_leb128): New function.
4739 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4740 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4741 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4742 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4743 read_uleb128, read_sleb128.
4744 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4745 (execute_stack_op): Update to match API of leb128 functions.
4746 * dwarf2expr.h: #include "leb128.h".
4747 (read_uleb128, read_sleb128): Delete.
4748 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4749 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4750 * dwarf2loc.c (debug_loc_kind): New enum.
4751 (decode_debug_loc_addresses): New function.
4752 (decode_debug_loc_dwo_addresses): New function.
4753 (dwarf2_find_location_expression): Rewrite.
4754 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4755 (locexpr_describe_location_piece): Ditto.
4756 (disassemble_dwarf_expression): Ditto.
4757 (locexpr_describe_location_1): Ditto.
4758 (loclist_describe_location): Rewrite.
4759 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4760 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4761 (dwarf2_section_buffer_overflow_complaint): Renamed from
4762 dwarf2_macros_too_long_complaint. All callers updated.
4763 (skip_leb128): Delete.
4764 (init_cu_die_reader): Initialize reader->buffer_end.
4765 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4766 (skip_form_bytes): New arg buffer_end. All callers updated.
4767 Replace call to skip_leb128 with gdb_skip_leb128.
4768 (skip_unknown_opcode): New arg mac_end. All callers updated.
4769 (fill_in_loclist_baton): Initialize baton->from_dwo.
4770
4771 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4772
4773 * mips-linux-nat.c (mips_linux_read_description): Use a more
4774 verbose error message.
4775
4776 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4777
4778 * NEWS: Add MIPS/Linux DSP support.
4779 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4780 (SIGCONTEXT_DSPCTL): New macro.
4781 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4782 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4783 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4784 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4785 (N64_SIGCONTEXT_HI3): Likewise.
4786 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4787 (N64_SIGCONTEXT_LO3): Likewise.
4788 (N64_SIGCONTEXT_DSPCTL): Likewise.
4789 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4790 (mips_linux_o32_sigframe_init): Handle DSP registers.
4791 (mips_linux_n32n64_sigframe_init): Likewise.
4792
4793 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4794
4795 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4796 call to abort.
4797
4798 2012-05-22 Pedro Alves <palves@redhat.com>
4799
4800 * target.h (store_waitstatus): Move declaration ...
4801 * inf-child.h (store_waitstatus): ... here.
4802 * target.c: Move inclusion of gdb_wait.h, and ...
4803 (store_waitstatus): ... this ...
4804 * inf-child.c: ... here.
4805 * linux-nat.c: Include inf-child.h.
4806 * rs6000-nat.c: Include inf-child.h.
4807 * spu-linux-nat.c: Include inf-child.h.
4808
4809 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4810
4811 * tracepoint.c (start_tracing): Add missing i18n markup.
4812 (stop_tracing, set_trace_user): Ditto.
4813 (set_trace_notes, set_trace_stop_notes): Ditto.
4814
4815 2012-05-21 Tom Tromey <tromey@redhat.com>
4816
4817 PR c++/7173:
4818 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4819 types.
4820 * value.h (value_cast_pointers): Update.
4821 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4822 (value_cast): Update.
4823 (update_search_result): New function.
4824 (do_search_struct_field): New, from search_struct_field. Check
4825 for ambiguous results.
4826 (search_struct_field): Rewrite.
4827 * infcall.c (value_arg_coerce): Update.
4828 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4829 value_cast_pointers.
4830 * ada-lang.c (ada_convert_actual): Update.
4831
4832 2012-05-21 Tom Tromey <tromey@redhat.com>
4833
4834 * macroexp.c (macro_stringify): Terminate the string.
4835
4836 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4839 Describe it.
4840 * auto-load.c (auto_load_expand_dir_vars): New function.
4841 (auto_load_safe_path_vec_update): Use it, remove the
4842 substitute_path_component call thanks to it.
4843 (auto_load_objfile_script): Remove the debug_file_directory processing.
4844 Use auto_load_expand_dir_vars, remove the substitute_path_component
4845 call thanks to it.
4846 * configure: Regenerate.
4847 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4848 path. Escape $ also for $debugdir.
4849 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4850 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4851
4852 2012-05-20 Doug Evans <dje@google.com>
4853
4854 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4855 before use. Check for symtab->includes == NULL before scanning it.
4856
4857 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4858
4859 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4860
4861 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4862
4863 * NEWS: Add microMIPS support and "set mips compression",
4864 "show mips compression" commands.
4865 * mips-tdep.h (mips_isa): New enum.
4866 (gdbarch_tdep): Add mips_isa.
4867 (mips_pc_is_mips16): Update prototype.
4868 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4869 * mips-tdep.c (mips_compression_mips16): New variable.
4870 (mips_compression_micromips): Likewise.
4871 (mips_compression_strings): Likewise.
4872 (mips_compression_string): Likewise.
4873 (is_mips16_isa, is_micromips_isa): New functions.
4874 (is_mips16_addr): Rename to...
4875 (is_compact_addr): ... this.
4876 (unmake_mips16_addr): Likewise to...
4877 (unmake_compact_addr): ... this.
4878 (make_mips16_addr): Likewise to...
4879 (make_compact_addr): ... this.
4880 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4881 functions.
4882 (mips_elf_make_msymbol_special): Handle microMIPS code.
4883 (msymbol_is_special): Rename to...
4884 (msymbol_is_mips16): ... this.
4885 (mips_make_symbol_special, mips_pc_is_mips16): Update
4886 accordingly.
4887 (msymbol_is_mips, msymbol_is_micromips): New functions.
4888 (mips16_to_32_reg): Rename to...
4889 (mips_reg3_to_reg): ... this.
4890 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4891 (mips_pc_isa): Likewise.
4892 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4893 code.
4894 (mips_fetch_instruction): Pass return status instead of printing
4895 an error message if requested. Handle microMIPS code. Bail out
4896 on an invalid ISA.
4897 (micromips_op): New macro.
4898 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4899 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4900 (b6s4_op, b7s3_reg): Likewise.
4901 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4902 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4903 (mips_insn_size): New function.
4904 (mips32_next_pc): Update mips_fetch_instruction call.
4905 (micromips_relative_offset7): New function.
4906 (micromips_relative_offset10): Likewise.
4907 (micromips_relative_offset16): Likewise.
4908 (micromips_pc_insn_size): Likewise.
4909 (micromips_bc1_pc): Likewise.
4910 (micromips_next_pc): Likewise.
4911 (unpack_mips16): Update mips_fetch_instruction call.
4912 (extended_mips16_next_pc): Update according to change to
4913 mips16_to_32_reg.
4914 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4915 code.
4916 (mips16_scan_prologue): Update mips_fetch_instruction call.
4917 Update according to change to mips16_to_32_reg.
4918 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4919 (mips_insn16_frame_base_sniffer): Likewise.
4920 (micromips_decode_imm9): New function.
4921 (micromips_scan_prologue): Likewise.
4922 (mips_micro_frame_cache): Likewise.
4923 (mips_micro_frame_this_id): Likewise.
4924 (mips_micro_frame_prev_register): Likewise.
4925 (mips_micro_frame_sniffer): Likewise.
4926 (mips_micro_frame_unwind): New variable.
4927 (mips_micro_frame_base_address): New function.
4928 (mips_micro_frame_base): New variable.
4929 (mips_micro_frame_base_sniffer): New function.
4930 (mips32_scan_prologue): Update mips_fetch_instruction call.
4931 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4932 rather than for MIPS16.
4933 (mips_insn32_frame_base_sniffer): Likewise.
4934 (mips_addr_bits_remove): Handle microMIPS code.
4935 (deal_with_atomic_sequence): Rename to...
4936 (mips_deal_with_atomic_sequence): ... this. Update the type
4937 of the variable used to hold an instruction. Remove the ISA bit
4938 check. Update mips_fetch_instruction call.
4939 (micromips_deal_with_atomic_sequence): New function.
4940 (deal_with_atomic_sequence): Likewise.
4941 (mips_about_to_return): Handle microMIPS code. Update
4942 mips_fetch_instruction call.
4943 (heuristic_proc_start): Check for the standard MIPS ISA rather
4944 than for MIPS16. Update mips_pc_is_mips16 and
4945 mips_fetch_instruction calls. Handle microMIPS code.
4946 (mips_push_dummy_code): Handle microMIPS code.
4947 (mips_eabi_push_dummy_call): Likewise.
4948 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4949 (mips_o64_push_dummy_call): Handle microMIPS code.
4950 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4951 (is_delayed): Remove function.
4952 (mips_single_step_through_delay): Replace the call to is_delayed
4953 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4954 Handle microMIPS code.
4955 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4956 microMIPS code.
4957 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4958 call.
4959 (micromips_in_function_epilogue_p): New function.
4960 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4961 call.
4962 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4963 Handle microMIPS.
4964 (gdb_print_insn_mips): Likewise.
4965 (mips_breakpoint_from_pc): Likewise.
4966 (mips_remote_breakpoint_from_pc): New function.
4967 (mips32_instruction_has_delay_slot): Simplify making use of the
4968 updated mips_fetch_instruction interface.
4969 (micromips_instruction_has_delay_slot): New function.
4970 (mips16_instruction_has_delay_slot): Simplify making use of the
4971 updated mips_fetch_instruction interface.
4972 (mips_adjust_breakpoint_address): Check for the standard MIPS
4973 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4974 calls. Handle microMIPS code.
4975 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4976 (mips_skip_trampoline_code): Handle microMIPS code.
4977 (global_mips_compression): New function.
4978 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4979 file flags. Register the microMIPS remote breakpoint handler
4980 and heuristic frame unwinder.
4981 (show_mips_compression): New function.
4982 (_initialize_mips_tdep): Add the "set mips compression" and
4983 "show mips compression" commands.
4984
4985 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4986
4987 * ada-lang.c:
4988 * ada-tasks.c:
4989 * ada-varobj.c:
4990 * amd64-darwin-tdep.c:
4991 * arm-symbian-tdep.c:
4992 * arm-tdep.c:
4993 * avr-tdep.c:
4994 * ax-gdb.c:
4995 * bfin-linux-tdep.c:
4996 * breakpoint.c:
4997 * c-valprint.c:
4998 * cli/cli-cmds.c:
4999 * coffread.c:
5000 * cp-support.c:
5001 * cris-tdep.c:
5002 * dwarf2-frame-tailcall.c:
5003 * dwarf2-frame.c:
5004 * dwarf2expr.c:
5005 * dwarf2loc.c:
5006 * dwarf2read.c:
5007 * elfread.c:
5008 * eval.c:
5009 * expprint.c:
5010 * f-valprint.c:
5011 * frv-tdep.c:
5012 * h8300-tdep.c:
5013 * hppa-hpux-tdep.c:
5014 * hppa-tdep.c:
5015 * hppanbsd-tdep.c:
5016 * i386-nto-tdep.c:
5017 * i386-tdep.c:
5018 * i387-tdep.c:
5019 * ia64-tdep.c:
5020 * jit.c:
5021 * linespec.c:
5022 * linux-tdep.c:
5023 * lm32-tdep.c:
5024 * m2-valprint.c:
5025 * m32c-tdep.c:
5026 * m32r-rom.c:
5027 * m32r-tdep.c:
5028 * m68k-tdep.c:
5029 * m68klinux-tdep.c:
5030 * mi/mi-main.c:
5031 * microblaze-tdep.c:
5032 * mips-linux-tdep.c:
5033 * mips-tdep.c:
5034 * mn10300-tdep.c:
5035 * p-valprint.c:
5036 * parse.c:
5037 * ppc-linux-tdep.c:
5038 * ppc-sysv-tdep.c:
5039 * printcmd.c:
5040 * python/py-finishbreakpoint.c:
5041 * python/py-inferior.c:
5042 * python/py-infthread.c:
5043 * python/py-type.c:
5044 * python/python.c:
5045 * remote-fileio.c:
5046 * remote-m32r-sdi.c:
5047 * remote-mips.c:
5048 * reverse.c:
5049 * rl78-tdep.c:
5050 * rs6000-aix-tdep.c:
5051 * rs6000-tdep.c:
5052 * s390-tdep.c:
5053 * score-tdep.c:
5054 * sh64-tdep.c:
5055 * skip.c:
5056 * solib-darwin.c:
5057 * solib-dsbt.c:
5058 * solib-frv.c:
5059 * sparc-tdep.c:
5060 * spu-multiarch.c:
5061 * spu-tdep.c:
5062 * stack.c:
5063 * symfile.c:
5064 * symtab.c:
5065 * tic6x-tdep.c:
5066 * tracepoint.c:
5067 * v850-tdep.c:
5068 * valarith.c:
5069 * valprint.c:
5070 * value.c:
5071 * xcoffread.c:
5072 * xtensa-tdep.c:
5073 * ada-lang.c:
5074 * ada-tasks.c:
5075 * ada-varobj.c:
5076 * amd64-darwin-tdep.c:
5077 * arm-symbian-tdep.c:
5078 * arm-tdep.c: Delete unused variables.
5079
5080 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5081
5082 Rename $ddir to $datadir.
5083 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5084 * auto-load.c (auto_load_safe_path_vec_update)
5085 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5086 * configure: Regenerate.
5087 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5088 Likewise. Remove the 'use $ddir' help string.
5089
5090 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5091
5092 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5093 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5094
5095 2012-05-18 Tom Tromey <tromey@redhat.com>
5096
5097 PR exp/13907:
5098 * valprint.h (struct value_print_options) <symbol_print>: New
5099 field.
5100 * valprint.c (user_print_options): Add default for symbol_print.
5101 (show_symbol_print): New function.
5102 (generic_val_print): Respect symbol_print.
5103 (_initialize_valprint): Add "print symbol" setting.
5104 * f-valprint.c (f_val_print): Respect symbol_print.
5105 * c-valprint.c (c_val_print): Respect symbol_print.
5106 * NEWS: Update.
5107 * printcmd.c (print_address_symbolic): Return int. Ignore some
5108 zero-size symbols.
5109 (print_address_demangle): Return int.
5110 * defs.h: (print_address_symbolic): Return int.
5111 * value.h (print_address_demangle): Return int.
5112
5113 2012-05-18 Tom Tromey <tromey@redhat.com>
5114
5115 * valprint.c (val_print_string): Don't print leading space.
5116 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5117 print space before string or vtbl.
5118 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5119 before string.
5120 * jv-valprint.c (java_value_print): Print space before string.
5121 * go-valprint.c (print_go_string): Print space before string.
5122 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5123 space before string.
5124 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5125 space before string or vtbl.
5126 * auxv.c (fprint_target_auxv): Print space after address.
5127
5128 2012-05-18 Tom Tromey <tromey@redhat.com>
5129
5130 * printcmd.c (print_address_demangle): Remove special case for 0.
5131
5132 2012-05-18 Tom Tromey <tromey@redhat.com>
5133
5134 * printcmd.c (print_address_demangle): Add 'opts' argument.
5135 * p-valprint.c (pascal_val_print): Update.
5136 * jv-valprint.c (java_val_print): Update.
5137 * value.h: Update.
5138 * valprint.c (generic_val_print): Update.
5139 (print_function_pointer_address): Add 'options' argument. Remove
5140 'addressprint' argument. Update.
5141 * m2-valprint.c (print_unpacked_pointer): Update.
5142 * gnu-v3-abi.c (print_one_vtable): Update.
5143 (gnuv3_print_method_ptr): Update.
5144 * f-valprint.c (f_val_print): Update.
5145 * cp-valprint.c (cp_print_value_fields): Update.
5146 * valprint.h (print_function_pointer_address): Update.
5147 * c-valprint.c (c_val_print): Update.
5148
5149 2012-05-18 Tom Tromey <tromey@redhat.com>
5150
5151 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5152 directly corresponding to the found psymtab.
5153 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5154 (dw2_find_pc_sect_symtab): Use it.
5155 * block.h (blockvector_contains_pc): Declare.
5156 * block.c (find_block_in_blockvector): New function.
5157 (blockvector_for_pc_sect): Use it.
5158 (blockvector_contains_pc): New function.
5159
5160 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5161
5162 * mips-tdep.h (mips_write_pc): New prototype.
5163 * mips-tdep.c (mips_write_pc): Make external, add description.
5164 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5165 add description.
5166
5167 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5168
5169 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5170 mips_regnum->pc.
5171 (mips_unwind_pc, mips_write_pc): Likewise.
5172 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5173 gdbarch_read_pc.
5174
5175 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5176
5177 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5178 proc_warn, proc_error, proc_get_status, proc_flags,
5179 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5180 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5181 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5182 proc_stop_process, proc_wait_for_stop, proc_run_process,
5183 proc_set_traced_signals, proc_set_traced_faults,
5184 proc_set_traced_sysentry, proc_set_traced_sysexit,
5185 proc_set_held_signals, proc_get_held_signals,
5186 proc_get_traced_signals, proc_get_traced_faults,
5187 proc_get_traced_sysentry, proc_get_traced_sysexit,
5188 proc_clear_current_fault, proc_set_current_signal,
5189 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5190 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5191 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5192 proc_get_current_thread, proc_get_current_thread,
5193 proc_get_current_thread, proc_update_threads,
5194 proc_update_threads, proc_update_threads, proc_update_threads,
5195 proc_iterate_over_threads, procfs_find_new_threads,
5196 procfs_pid_to_str): Make static. Remove advance declaration.
5197 (proc_cursig): Make static. Conditionalized defintion on
5198 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5199 (proc_syscall, proc_set_kill_on_last_close,
5200 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5201 proc_get_pending_signals, proc_get_signal_actions,
5202 proc_trace_signal, proc_ignore_signal): Delete.
5203
5204 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5205
5206 * coffread.c (cs_section_address): Passing proper argument for
5207 `bfd_get_section_vma'.
5208 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5209 `bfd_get_section_flags'.
5210 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5211 `bfd_get_section_vma'.
5212
5213 2012-05-16 Tom Tromey <tromey@redhat.com>
5214
5215 PR macros/13205:
5216 * macrotab.h: (macro_define_special): Declare.
5217 (enum macro_special_kind): New.
5218 (struct macro_definition) <argc, replacement>: Update comments.
5219 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5220 (macro_define_object_internal): New function.
5221 (macro_define_object): Use it.
5222 (macro_define_special): New function.
5223 (fixup_definition): New function.
5224 (macro_lookup_definition, foreach_macro_in_scope)
5225 (foreach_macro): Use fixup_definition.
5226 * macroexp.h (macro_stringify): Declare.
5227 * macroexp.c (free_buffer_return_text): New function.
5228 (stringify): Constify "arg".
5229 (macro_stringify): New function.
5230 * dwarf2read.c (macro_start_file): Call macro_define_special.
5231
5232 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5233 Maciej W. Rozycki <macro@mips.com>
5234
5235 * breakpoint.h (bp_location): Add related_address member.
5236 * inferior.h (get_return_value): Take a pointer to struct value
5237 instead of struct type for the function requested.
5238 * value.h (using_struct_return): Likewise.
5239 * gdbarch.sh (return_value): Take a pointer to struct value
5240 instead of struct type for the function requested.
5241 * breakpoint.c (set_breakpoint_location_function): Initialize
5242 related_address for bp_gnu_ifunc_resolver breakpoints.
5243 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5244 requested function's address to gdbarch_return_value.
5245 * eval.c (evaluate_subexp_standard): Pass the requested
5246 function's address to using_struct_return.
5247 * infcall.c (call_function_by_hand): Pass the requested
5248 function's address to using_struct_return and
5249 gdbarch_return_value.
5250 * infcmd.c (get_return_value): Take a pointer to struct value
5251 instead of struct type for the function requested.
5252 (print_return_value): Update accordingly.
5253 (finish_command_continuation): Likewise.
5254 * stack.c (return_command): Pass the requested function's
5255 address to using_struct_return and gdbarch_return_value.
5256 * value.c (using_struct_return): Take a pointer to struct value
5257 instead of struct type for the function requested. Pass the
5258 requested function's address to gdbarch_return_value.
5259 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5260 New function_value member, replacing function_type.
5261 (bpfinishpy_dealloc): Update accordingly.
5262 (bpfinishpy_pre_stop_hook): Likewise.
5263 (bpfinishpy_init): Likewise. Record the requested function's
5264 address.
5265 * mips-tdep.c (mips_fval_reg): New enum.
5266 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5267 words put in GP registers.
5268 (mips_o64_push_dummy_call): Update a comment.
5269 (mips_o32_return_value): Take a pointer to struct value instead
5270 of struct type for the function requested and use it to check if
5271 using the MIPS16 calling convention. Return the designated
5272 general purpose registers for floating-point values returned in
5273 MIPS16 mode.
5274 (mips_o64_return_value): Likewise.
5275 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5276 (ppc_sysv_abi_broken_return_value): Likewise.
5277 (ppc64_sysv_abi_return_value): Likewise.
5278 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5279 value instead of struct type for the function requested.
5280 * amd64-tdep.c (amd64_return_value): Likewise.
5281 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5282 * arm-tdep.c (arm_return_value): Likewise.
5283 * avr-tdep.c (avr_return_value): Likewise.
5284 * bfin-tdep.c (bfin_return_value): Likewise.
5285 * cris-tdep.c (cris_return_value): Likewise.
5286 * frv-tdep.c (frv_return_value): Likewise.
5287 * h8300-tdep.c (h8300_return_value): Likewise.
5288 (h8300h_return_value): Likewise.
5289 * hppa-tdep.c (hppa32_return_value): Likewise.
5290 (hppa64_return_value): Likewise.
5291 * i386-tdep.c (i386_return_value): Likewise.
5292 * ia64-tdep.c (ia64_return_value): Likewise.
5293 * iq2000-tdep.c (iq2000_return_value): Likewise.
5294 * lm32-tdep.c (lm32_return_value): Likewise.
5295 * m32c-tdep.c (m32c_return_value): Likewise.
5296 * m32r-tdep.c (m32r_return_value): Likewise.
5297 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5298 * m68k-tdep.c (m68k_return_value): Likewise.
5299 (m68k_svr4_return_value): Likewise.
5300 * m88k-tdep.c (m88k_return_value): Likewise.
5301 * mep-tdep.c (mep_return_value): Likewise.
5302 * microblaze-tdep.c (microblaze_return_value): Likewise.
5303 * mn10300-tdep.c (mn10300_return_value): Likewise.
5304 * moxie-tdep.c (moxie_return_value): Likewise.
5305 * mt-tdep.c (mt_return_value): Likewise.
5306 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5307 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5308 (ppc_sysv_abi_broken_return_value): Likewise.
5309 (ppc64_sysv_abi_return_value): Likewise.
5310 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5311 * rl78-tdep.c (rl78_return_value): Likewise.
5312 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5313 * rx-tdep.c (rx_return_value): Likewise.
5314 * s390-tdep.c (s390_return_value): Likewise.
5315 * score-tdep.c (score_return_value): Likewise.
5316 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5317 (sh_return_value_fpu): Likewise.
5318 * sh64-tdep.c (sh64_return_value): Likewise.
5319 * sparc-tdep.c (sparc32_return_value): Likewise.
5320 * sparc64-tdep.c (sparc64_return_value): Likewise.
5321 * spu-tdep.c (spu_return_value): Likewise.
5322 * tic6x-tdep.c (tic6x_return_value): Likewise.
5323 * v850-tdep.c (v850_return_value): Likewise.
5324 * vax-tdep.c (vax_return_value): Likewise.
5325 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5326 * xtensa-tdep.c (xtensa_return_value): Likewise.
5327 * gdbarch.c: Regenerate.
5328 * gdbarch.h: Regenerate.
5329
5330 2012-05-15 Tom Tromey <tromey@redhat.com>
5331
5332 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5333
5334 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5335
5336 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5337 of command in two error message.
5338
5339 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5340
5341 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5342
5343 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5344
5345 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5346
5347 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5348
5349 * NEWS (show auto-load scripts-directory): Add forgotten command.
5350
5351 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5352
5353 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5354 parameters.
5355
5356 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5357
5358 * amd64-tdep.c: Include features/i386/x32.c and
5359 features/i386/x32-avx.c.
5360 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5361 initialize_tdesc_x32_avx.
5362
5363 2012-05-14 Stan Shebs <stan@codesourcery.com>
5364
5365 Add dynamic printf.
5366 * breakpoint.h (enum bptype): New type bp_dprintf.
5367 (struct breakpoint): New field extra_string.
5368 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5369 (create_breakpoint): Add extra_string arg.
5370 * breakpoint.c (dprintf_breakpoint_ops): New.
5371 (is_breakpoint): Add bp_dprintf.
5372 (bpstat_what): Add dprintf case.
5373 (bptype_string): Ditto.
5374 (print_one_breakpoint_location): Ditto.
5375 (init_bp_location): Ditto.
5376 (bkpt_print_mention): Ditto.
5377 (dprintf_style_enums): New array.
5378 (dprintf_style): New global.
5379 (dprintf_function): New global.
5380 (dprintf_channel): New global.
5381 (update_dprintf_command_list): New function.
5382 (update_dprintf_commands): New function.
5383 (init_breakpoint_sal): Add extra_string argument, handle it.
5384 (create_breakpoint_sal): Add extra_string argument.
5385 (create_breakpoints_sal): Add extra_string argument, update callers.
5386 (find_condition_and_thread): Add extra argument.
5387 (create_breakpoint): Add extra_string argument, record it.
5388 (dprintf_command): New function.
5389 (break_command_1): Add arg to create_breakpoint call.
5390 (handle_gnu_v3_exceptions): Ditto.
5391 (trace_command): Ditto.
5392 (ftrace_command): Ditto.
5393 (strace_command): Ditto.
5394 (bkpt_print_mention): Add dprintf case.
5395 (create_breakpoint_sal_default): Add extra_string argument.
5396 (_initialize_breakpoint): Add new commands.
5397 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5398 * python/py-breakpoint.c (bppy_init): Ditto.
5399 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5400
5401 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5402
5403 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5404
5405 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5406
5407 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5408 unsigned long long.
5409
5410 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5411
5412 Add a new function gdb.find_pc_line to the Python API.
5413 * NEWS (Python Scripting): Add entry about the new function.
5414 * python/python.c (gdbpy_find_pc_line): New function which
5415 implements gdb.find_pc_line.
5416 (GdbMethods): Add entry for the new function.
5417
5418 2012-05-12 Pedro Alves <palves@redhat.com>
5419
5420 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5421 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5422
5423 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5424
5425 * inferior.c: Include completer.h
5426 (initialize_inferiors): Set completer of add-inferior to
5427 filename_completer.
5428
5429 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5430
5431 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5432 gdbarch_ptr_bit for x32 core dump.
5433
5434 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5435
5436 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5437 and features/i386/x32-avx-linux.c.
5438
5439 2012-05-11 Stan Shebs <stan@codesourcery.com>
5440 Kwok Cheung Yeung <kcy@codesourcery.com>
5441
5442 * NEWS: Describe new info os commands.
5443 * common/linux-osdata.c (PID_T, TIME_T): Define.
5444 (MAX_PID_T_STRLEN): New.
5445 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5446 MAX_PID_T_STRLEN.
5447 (command_from_pid): Add comment. Change to use PID_T.
5448 (commandline_from_pid): Change to use PID_T.
5449 (user_from_pid): Add comment.
5450 (get_process_owner): Add comment. Change to use PID_T and
5451 MAX_PID_T_STRLEN.
5452 (get_number_of_cpu_cores): Add comment.
5453 (get_cores_used_by_process): Add comment. Change to use PID_T and
5454 MAX_PID_T_STRLEN.
5455 (linux_xfer_osdata_processes): Change to use PID_T and
5456 MAX_PID_T_STRLEN.
5457 (compare_processes): New function.
5458 (linux_xfer_osdata_processgroups): New function.
5459 (linux_xfer_osdata_threads): Change to use PID_T.
5460 (linux_xfer_osdata_fds): New function.
5461 (format_socket_state, print_sockets): New functions.
5462 (union socket_addr): New union.
5463 (linux_xfer_osdata_isockets): New function.
5464 (time_from_time_t, group_from_gid): New functions.
5465 (linux_xfer_osdata_shm): New function.
5466 (linux_xfer_osdata_sem): New function.
5467 (linux_xfer_osdata_msg): New function.
5468 (linux_xfer_osdata_modules): New function.
5469 (osdata_table): Add new entries.
5470 * common/buffer.c (buffer_xml_printf): Add support for long and
5471 long long format specifiers.
5472
5473 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5474
5475 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5476 (tdesc_x32_avx_linux): Likewise.
5477
5478 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5479
5480 Implement multi-component --with-auto-load-dir.
5481 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5482 entries.
5483 (--with-auto-load-safe-path): Update the default value description.
5484 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5485 New.
5486 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5487 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5488 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5489 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5490 "set auto-load scripts-directory".
5491 * config.in: Regenerate.
5492 * configure: Regenerate.
5493 * configure.ac (--with-auto-load-dir): New configure option.
5494 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5495
5496 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5497
5498 Provide $ddir substitution for --with-auto-load-safe-path.
5499 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5500 entries.
5501 * auto-load.c: Include observer.h.
5502 (auto_load_safe_path_vec_update): Call substitute_path_component for
5503 each component. New variable ddir_subst.
5504 (auto_load_gdb_datadir_changed): New function.
5505 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5506 AUTO_LOAD_SAFE_PATH. New comment.
5507 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5508 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5509 * config.in: Regenerate.
5510 * configure: Regenerate.
5511 * configure.ac (--auto-load-safe-path): Rename
5512 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5513 GDB_DATADIR/auto-load.
5514 * defs.h (substitute_path_component): New declaration.
5515 * top.c: Include observer.h.
5516 (set_gdb_datadir): New function.
5517 (init_main): Install it for "set data-directory".
5518 * utils.c (substitute_path_component): New function.
5519
5520 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5521
5522 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5523 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5524 DEBUG_FILE_DIRECTORY. Handle multiple components of
5525 DEBUG_FILE_DIRECTORY.
5526
5527 2012-05-10 Tom Tromey <tromey@redhat.com>
5528
5529 * dwarf2read.c (recursively_write_psymbols): New function.
5530 (write_psymtabs_to_index): Use it.
5531
5532 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5533 field.
5534 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5535 (load_partial_comp_unit): Update.
5536 (queue_comp_unit): Add argument 'pretend_language'.
5537 (process_queue): Update.
5538 (psymtab_to_symtab_1): Skip dependencies that have a user.
5539 (load_partial_comp_unit_reader): Give meaning to the 'data'
5540 argument.
5541 (load_full_comp_unit): Add 'pretend_language' argument.
5542 (process_full_comp_unit): Add 'pretend_language' argument. Set
5543 language on CU.
5544 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5545 Update.
5546 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5547 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5548 Update.
5549 (prepare_one_comp_unit): Add 'pretend_language' argument.
5550
5551 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5552 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5553 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5554 (dw2_do_instantiate_symtab): Check whether symtab was read in
5555 before queueing.
5556 (dw2_instantiate_symtab): Add assertion. Call
5557 process_cu_includes.
5558 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5559 (partial_symtab_p): New typedef.
5560 (set_partial_user): New function.
5561 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5562 (scan_partial_symbols): Add imported CU to imported_symtabs.
5563 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5564 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5565 (get_symtab, recursively_compute_inclusions)
5566 (compute_symtab_includes, process_cu_includes)
5567 (process_imported_unit_die): New functions.
5568 (process_die) <DW_TAG_imported_unit>: New case.
5569 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5570
5571 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5572 comment.
5573 (struct partial_die_info) <locdesc>: Remove.
5574 <d>: New field.
5575 (process_psymtab_comp_unit): Add 'read_partial' argument.
5576 Update.
5577 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5578 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5579 (add_partial_symbol): Update.
5580 (process_die): Handle DW_TAG_partial_unit.
5581 (read_file_scope): Update comment.
5582 (load_partial_dies): Handle DW_TAG_imported_unit.
5583 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5584 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5585
5586 2012-05-10 Tom Tromey <tromey@redhat.com>
5587
5588 * cc-with-dwz.sh: New file.
5589
5590 2012-05-10 Tom Tromey <tromey@redhat.com>
5591
5592 * symtab.h (struct symtab) <includes, user>: New fields.
5593 * block.h (struct block_iterator) <d, idx, which>: New fields.
5594 * block.c (initialize_block_iterator, find_iterator_symtab)
5595 (block_iterator_step, block_iter_name_step)
5596 (block_iter_match_step): New functions.
5597 (block_iterator_first, block_iterator_next)
5598 (block_iter_name_first, block_iter_name_next)
5599 (block_iter_match_first, block_iter_match_next): Rewrite.
5600 (get_block_symtab): New function.
5601
5602 2012-05-10 Tom Tromey <tromey@redhat.com>
5603
5604 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5605 set_block_symtab.
5606 * jit.c (finalize_symtab): Use allocate_global_block,
5607 set_block_symtab.
5608 * buildsym.c (finish_block_internal): New function, from old
5609 finish_block.
5610 (finish_block): Rewrite.
5611 (end_symtab): Use finish_block_internal, set_block_symtab.
5612 * block.h (struct global_block): New.
5613 (allocate_global_block, set_block_symtab): Declare.
5614 * block.c (allocate_global_block, set_block_symtab): New
5615 functions.
5616
5617 2012-05-10 Tom Tromey <tromey@redhat.com>
5618
5619 * psymtab.c (partial_map_expand_apply): Add assertion.
5620 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5621 (psymtab_to_symtab): Find unshared psymtab.
5622 (dump_psymtab): Print including psymtabs.
5623 (recursively_search_psymtabs): New function.
5624 (expand_symtabs_matching_via_partial): Use it.
5625 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5626 fields.
5627 (enum psymtab_search_status): New.
5628
5629 2012-05-10 Tom Tromey <tromey@redhat.com>
5630
5631 * tracepoint.c (scope_info): Update.
5632 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5633 (find_pc_sect_symtab, search_symbols)
5634 (default_make_symbol_completion_list_break_on)
5635 (make_file_symbol_completion_list): Update.
5636 * symmisc.c (dump_symtab_1): Update.
5637 * stack.c (print_frame_args, iterate_over_block_locals)
5638 (print_frame_labels, iterate_over_block_arg_vars): Update.
5639 * python/py-block.c (block_object) <dict>: Remove.
5640 <block>: New field.
5641 <iter>: Change type.
5642 (blpy_iter): Update.
5643 (blpy_block_syms_iternext): Update.
5644 * psymtab.c (map_block): Use block iterators.
5645 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5646 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5647 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5648 * infrun.c (check_exception_resume): Update.
5649 * cp-support.c (make_symbol_overload_list_block): Update.
5650 * coffread.c (patch_opaque_types): Update.
5651 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5652 * block.h (struct block_iterator): New.
5653 (block_iterator_first, block_iterator_next, block_iter_name_first)
5654 (block_iter_name_next, block_iter_match_first)
5655 (block_iter_match_next): Declare.
5656 (ALL_BLOCK_SYMBOLS): Redefine.
5657 * block.c (block_iterator_first, block_iterator_next)
5658 (block_iter_name_first, block_iter_name_next)
5659 (block_iter_match_first, block_iter_match_next): New functions.
5660 * ada-lang.c (ada_add_block_symbols)
5661 (ada_make_symbol_completion_list): Use block iterator.
5662
5663 2012-05-10 Tom Tromey <tromey@redhat.com>
5664
5665 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5666 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5667 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5668 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5669 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5670 Update.
5671
5672 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5673
5674 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5675 print-file-var-lib2.c, print-file-var-main.c and
5676 print-file-var.exp (located in gdb/testsuite/gdb.base).
5677
5678 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5679
5680 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5681 try locating the symbol in the symbol's own objfile first, before
5682 extending the search to all objfiles.
5683 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5684 out of lookup_symbol_aux_symtabs.
5685 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5686 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5687 Do not search EXCLUDE_OBJFILE.
5688 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5689 (lookup_symbol_global): Search for matches in the block's objfile
5690 first, before searching all other objfiles.
5691
5692 2012-05-10 Tristan Gingold <gingold@adacore.com>
5693
5694 * printcmd.c (set_command): Add pre/post inc/dec.
5695
5696 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5697
5698 * gdb.1: Document -ex option.
5699
5700 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5701
5702 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5703 * inferior.h (AT_SYMBOL): Delete.
5704
5705 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5706
5707 * mips-tdep.c (mips_push_dummy_code): New function.
5708 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5709 ON_STACK and install mips_push_dummy_code as our gdbarch
5710 push_dummy_code routine.
5711
5712 2012-05-09 Pedro Alves <palves@redhat.com>
5713
5714 * target.c (set_maintenance_target_async_permitted): Rename to ...
5715 (set_target_async_command): ... this.
5716 (show_maintenance_target_async_permitted): Rename to ...
5717 (show_target_async_command): ... this.
5718 (initialize_targets): Adjust.
5719
5720 2012-05-08 Doug Evans <dje@google.com>
5721
5722 * go-exp.y (classify_name): Add missing assignment of fields of
5723 yylval.ssym.
5724
5725 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5726
5727 Display the ">" prompt in interactive mode while reading canned
5728 commands, even when the current interpreter is MI.
5729
5730 * interps.c (interp_set_temp): New function.
5731
5732 * interps.h (interp_set_temp): Add prototype.
5733
5734 * cli/cli-script.c (restore_interp): New cleanup function.
5735 (read_command_lines): Temporarily override the current interpreter
5736 with CLI and arrange for restoring the original one.
5737
5738 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5739
5740 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5741
5742 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5743
5744 * probe.c (parse_probes): Move conditional to check for
5745 debuginfo files from here...
5746 * stap-probe.c (stap_get_probes): ... to here.
5747
5748 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5749 H.J. Lu <hongjiu.lu@intel.com>
5750
5751 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5752 `movl %esp, %ebp' for the X32 ABI.
5753
5754 2012-05-07 Tom Tromey <tromey@redhat.com>
5755
5756 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5757 get_DW_TAG_name.
5758 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5759 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5760 (dwarf_stack_op_name): Remove.
5761 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5762 (decode_locdesc): Use get_DW_OP_name.
5763 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5764 (dwarf2_compile_expr_to_ax): Likewise.
5765 (disassemble_dwarf_expression): Likewise.
5766 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5767
5768 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5769
5770 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5771 (sh_linux_sigtramp_cache): New function.
5772 (sh_linux_sigreturn_init): New function.
5773 (sh_linux_rt_sigreturn_init): New function.
5774 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5775 patterns.
5776 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5777 syscall codes.
5778 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5779 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5780 (sh_linux_init_abi): Add init calls to register new tramp_frame
5781 definitions under 32-bit SH, update comments.
5782
5783 2012-05-07 Pedro Alves <palves@redhat.com>
5784
5785 PR gdb/10952
5786
5787 * amd64-linux-tdep.c: Include glibc-tdep.h.
5788 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5789 gdbarch_skip_solib_resolver callback.
5790
5791 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5792
5793 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5794 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5795 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5796 (add_auto_load_safe_path): Change the error message.
5797 (_initialize_auto_load): Change the "safe-path" help text.
5798 * configure: Regenerate
5799 * configure.ac (--without-auto-load-safe-path): Set
5800 WITH_AUTO_LOAD_SAFE_PATH to /.
5801
5802 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5803
5804 * stap-probe.h: Do not include unecessary `probe.h'.
5805
5806 2012-05-05 Alan Modra <amodra@gmail.com>
5807
5808 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5809 bfd_und_section_ptr.
5810 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5811 and bfd_com_section_ptr.
5812
5813 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5814
5815 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5816
5817 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5818
5819 * windows-nat.h (segment_register_p_ftype): New typedef.
5820 (windows_set_segment_register_p): Add declaration.
5821 * windows-nat.c (segment_register_p): New static global.
5822 (windows_set_segment_register_p): New function.
5823 (do_windows_fetch_inferior_registers): Add special handling
5824 for segment registers.
5825 * amd64-windows-nat.c: #include "amd64-tdep.h".
5826 (amd64_windows_segment_register_p): New function.
5827 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5828 * i386-windows-nat.c: #include "i386-tdep.h".
5829 (i386_windows_segment_register_p): New function.
5830 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5831
5832 2012-05-04 Tristan Gingold <gingold@adacore.com>
5833
5834 * printcmd.c (set_command): Emit a warning if the expression is not
5835 an assignment.
5836
5837 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5838
5839 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5840 Make static.
5841
5842 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5843
5844 * stap-probe.c (stap_is_operator): Change declaration.
5845 (stap_get_opcode): Change return value.
5846 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5847 `stap_parse_argument_1'.
5848
5849 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5850
5851 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5852 debug log.
5853
5854 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5855
5856 Add two new methods global_block and static_block to gdb.Symtab
5857 objects.
5858 * NEWS (Python scripting): Add entry about the new methods.
5859 * python/py-symtab.c (stpy_global_block): New function which
5860 implements the gdb.Symtab.global_block() method.
5861 (stpy_static_block): New function which implements the
5862 gdb.Symtab.static_block() method.
5863 (symtab_object_methods): Add entries for the two new methods.
5864
5865 2012-05-03 Doug Evans <dje@google.com>
5866
5867 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5868 files.
5869
5870 2012-05-03 Yao Qi <yao@codesourcery.com>
5871
5872 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5873 space.
5874 (i386_process_record): Ditto.
5875
5876 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5877
5878 * infcall.c (unwind_on_signal_p): Make static.
5879
5880 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5881
5882 * sol-thread.c (solaris_pid_to_str): Make static.
5883 (_initialize_sol_thread): Add prototype.
5884
5885 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5886
5887 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5888
5889 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5890
5891 * MAINTAINERS: Remove myself.
5892
5893 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5894
5895 Fix --without-auto-load-safe-path for MS-Windows host platform.
5896 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5897
5898 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5899
5900 * gdb_curses.h: Undefine KEY_EVENT before including curses
5901 headers. Move "#undef MOUSE_MOVED" before any curses header
5902 inclusion.
5903
5904 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5905
5906 * features/i386/i386-mmx-linux.c: Regenerate.
5907 * features/rs6000/powerpc-32.c: Likewise.
5908 * features/rs6000/powerpc-32l.c: Likewise.
5909 * features/rs6000/powerpc-403.c: Likewise.
5910 * features/rs6000/powerpc-403gc.c: Likewise.
5911 * features/rs6000/powerpc-405.c: Likewise.
5912 * features/rs6000/powerpc-505.c: Likewise.
5913 * features/rs6000/powerpc-601.c: Likewise.
5914 * features/rs6000/powerpc-602.c: Likewise.
5915 * features/rs6000/powerpc-603.c: Likewise.
5916 * features/rs6000/powerpc-604.c: Likewise.
5917 * features/rs6000/powerpc-64.c: Likewise.
5918 * features/rs6000/powerpc-64l.c: Likewise.
5919 * features/rs6000/powerpc-750.c: Likewise.
5920 * features/rs6000/powerpc-860.c: Likewise.
5921 * features/rs6000/powerpc-e500.c: Likewise.
5922 * features/rs6000/powerpc-e500l.c: Likewise.
5923 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5924 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5925 * features/rs6000/rs6000.c: Likewise.
5926
5927 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5928
5929 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5930 variable.
5931 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5932 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5933 (stap_parse_argument) <e>: Likewise.
5934 (handle_stap_probe) <byte_order>: Likewise.
5935
5936 2012-04-30 Doug Evans <dje@google.com>
5937
5938 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5939 init_and_read_dies_worker. All callers updated.
5940 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5941 replaced with init_cutu_and_read_dies.
5942 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5943 (find_partial_die): Remove FIXME. Don't free current CU.
5944
5945 2012-04-30 Sterling Augustine <saugustine@google.com>
5946
5947 * contrib: New directory.
5948 * contrib/test_pubnames_and_indexes.py: New file.
5949
5950 2012-04-30 Doug Evans <dje@google.com>
5951
5952 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5953 All callers updated.
5954 (init_cu_die_reader): Verify the section is non-empty.
5955 (dwarf_decode_line_header): Don't dereference section->asection
5956 until we know the section is present.
5957
5958 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5959
5960 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5961 probes.
5962
5963 2012-04-29 Yao Qi <yao@codesourcery.com>
5964
5965 * gdb-code-style.el: New hook gdb-markup-hook
5966 and gdb-comment-hook.
5967
5968 2012-04-28 Doug Evans <dje@google.com>
5969
5970 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5971 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5972 objfile->obfd.
5973 * symfile.h (dwarf2_debug_sections): New member addr.
5974 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5975 (ctx_no_get_addr_index): New function.
5976 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5977 (ctx_no_get_addr_index): Declare.
5978 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5979 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5980 (dwarf_expr_ctx_funcs): Update.
5981 (needs_get_addr_index): New function.
5982 (needs_frame_ctx_funcs): Update.
5983 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5984 * dwarf2read.c: #include "gdbcore.h".
5985 (dwarf2_per_objfile): New members addr, dwo_files.
5986 (dwarf2_elf_names): Add entry for addr.
5987 (struct dwo_section_names): New type.
5988 (dwo_section_names): New static global.
5989 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5990 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5991 old debug_types_section member updated to use this.
5992 Rename member debug_types_section to info_or_types_section,
5993 all uses updated.
5994 (signatured_type): Rename member type_offset to type_offset_in_tu,
5995 all uses updated. New member type_offset_in_section.
5996 (struct dwo_sections): New type.
5997 (struct dwo_unit): New type.
5998 (struct dwo_file): New type.
5999 (die_reader_specs): New member dwo_file.
6000 (dwarf2_locate_sections): Watch for .debug_addr.
6001 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6002 (dwarf2_read_section): Get bfd of section from bfd's asection,
6003 instead of objfile.
6004 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6005 (create_signatured_type_table_from_index): Initialize
6006 sig_type->info_or_types_section.
6007 (dw2_get_file_names): Statement lists for type units with DWO files
6008 live in the DWO file.
6009 (create_debug_types_hash_table): New function.
6010 (create_all_type_units): Rewrite.
6011 (init_cu_die_reader): New arg dwo_file, all callers updated.
6012 (init_and_read_dies_worker): Get section from
6013 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6014 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6015 continue reading the CU/TU from there.
6016 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6017 updated. Get section from this_cu->info_or_types_section.
6018 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6019 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6020 DW_FORM_GNU_str_index.
6021 (hash_dwo_file, eq_dwo_file): New functions.
6022 (allocate_dwo_file_hash_table): New function.
6023 (hash_dwo_unit, eq_dwo_unit): New functions.
6024 (allocate_dwo_unit_table): New function.
6025 (dwarf2_locate_dwo_sections): New function.
6026 (struct create_dwo_info_table_data): New type.
6027 (create_debug_info_hash_table_reader): New function.
6028 (create_debug_info_hash_table): New function.
6029 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6030 (lookup_dwo_file): New function.
6031 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6032 (free_dwo_file, free_dwo_file_cleanup): New functions.
6033 (free_dwo_file_from_slot, free_dwo_files): New functions.
6034 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6035 (dwarf2_record_block_ranges): Ditto.
6036 (read_partial_die): Ditto.
6037 (process_enumeration_scope): Update to use type_offset_in_section.
6038 (read_full_die_1): New function.
6039 (read_full_die): Rewrite.
6040 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6041 DW_FORM_GNU_str_index.
6042 (read_addr_index_1, read_addr_index): New functions.
6043 (read_addr_index_from_leb128): New function.
6044 (struct dwarf2_read_addr_index_data): New type.
6045 (dwarf2_read_addr_index_reader): New function.
6046 (dwarf2_read_addr_index): New function.
6047 (read_str_index): New function.
6048 (leb128_size): New function.
6049 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6050 If processing a type unit from a DWO file, get the line section
6051 from the DWO file.
6052 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6053 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6054 DW_FORM_GNU_str_index.
6055 (lookup_die_type): Check whether section offset of type's die is
6056 known before looking it up. Remove assert. Condition can
6057 legimately happen for inter-cu type references.
6058 (dwarf_attr_name): Handle Fission attributes.
6059 (dwarf_form_name): Handle Fission forms.
6060 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6061 DW_FORM_GNU_str_index.
6062 (follow_die_sig): Update to use type_offset_in_section.
6063 (decode_locdesc): New case DW_OP_GNU_addr_index.
6064 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6065 DW_FORM_GNU_str_index.
6066 (cu_debug_loc_section): New function.
6067 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6068 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6069 Free DWO files if present.
6070 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6071
6072 Refactor DIE reading.
6073 * dwarf2read.c (dwarf2_per_objfile): Replace members
6074 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6075 (die_reader_specs): New member "die_section". Temporarily make
6076 member "buffer" non-const, pending constifying all info_ptr uses.
6077 (die_reader_func_ftype): New typedef.
6078 (dw2_get_file_names_reader): New function.
6079 (dw2_get_file_names): Rewrite.
6080 (read_and_check_type_unit_head): Rename arg type_offset to
6081 type_offset_in_tu.
6082 (create_all_type_units): Improve debugging message.
6083 Improve dummy type unit check.
6084 (init_cu_die_reader): New arg "section". All callers updated.
6085 (init_and_read_dies_worker): New function.
6086 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6087 (init_cutu_and_read_dies_no_follow): New function.
6088 (init_cutu_and_read_dies_simple): New function.
6089 (process_psymtab_comp_unit_reader): New function.
6090 (process_psymtab_comp_unit): Delete args section,
6091 is_debug_types_section. Rewrite. All callers updated.
6092 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6093 All callers updated. Rewrite.
6094 (load_partial_comp_unit_reader): New function.
6095 (load_partial_comp_unit): Rewrite.
6096 (skip_children): New arg reader. Delete args buffer, cu.
6097 All callers updated.
6098 (skip_one_die): New arg reader. Delete args buffer, cu.
6099 All callers updated.
6100 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6101 All callers updated.
6102 (load_full_comp_unit_reader): New function.
6103 (load_full_comp_unit): Rewrite.
6104 (read_comp_unit): Delete.
6105 (read_die_and_children_1): Delete, contents moved ...
6106 (read_die_and_children): ... here.
6107 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6108 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6109 All callers updated.
6110 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6111 All callers updated.
6112 (find_partial_die): Rewrite load_all_dies support.
6113 (read_attribute_value): New arg reader. Delete args abfd, cu.
6114 All callers updated.
6115 (read_attribute): New arg reader. Delete args abfd, cu.
6116 All callers updated.
6117 (load_full_type_unit): Add assert.
6118 (read_signatured_type_reader): New function.
6119 (read_signatured_type): Rewrite.
6120 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6121 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6122 All callers updated. Set per_cu->cu = NULL after freeing it.
6123 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6124 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6125 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6126 (set_die_type): Update.
6127 (get_die_type_at_offset): Update.
6128 (read_file_scope): Call prepare_one_comp_unit.
6129 (read_type_unit_scope): Ditto.
6130 (prepare_one_comp_unit): Set producer if present.
6131
6132 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6133
6134 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6135 gettext function on `error'.
6136
6137 2012-04-27 Doug Evans <dje@google.com>
6138
6139 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6140 is empty.
6141
6142 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6143 Tom Tromey <tromey@redhat.com>
6144
6145 * breakpoint.c (struct breakpoint_objfile_data)
6146 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6147 <exception_probes>: New fields.
6148 (free_breakpoint_probes): New function.
6149 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6150 `_Unwind_DebugHook'.
6151 (create_exception_master_breakpoint): Likewise.
6152 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6153 * infrun.c: Including necessary header files for handling SystemTap
6154 probes.
6155 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6156 via SystemTap probes.
6157 (check_exception_resume): Remove `func' argument. Handle exception
6158 unwinding breakpoint set via a SystemTap probe.
6159 (insert_exception_resume_from_probe): New function.
6160
6161 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6162 Tom Tromey <tromey@redhat.com>
6163 Jan Kratochvil <jan.kratochvil@redhat.com>
6164
6165 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6166 (COMMON_OBS): Likewise.
6167 (HFILES_NO_SRCDIR): Add `probe'.
6168 * NEWS: Mention support for static and SystemTap probes.
6169 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6170 SystemTap probes' arguments parser.
6171 * arm-linux-tdep.c: Including headers needed to perform the parsing
6172 of SystemTap probes' arguments.
6173 (arm_stap_is_single_operand): New function.
6174 (arm_stap_parse_special_token): Likewise.
6175 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6176 probes' arguments parser.
6177 * ax-gdb.c (require_rvalue): Removing static declaration.
6178 (gen_expr): Likewise.
6179 * ax-gdb.h (gen_expr): Declaring function.
6180 (require_rvalue): Likewise.
6181 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6182 (bkpt_probe_breakpoint_ops): New variable.
6183 (momentary_breakpoint_from_master): Set the `probe' value.
6184 (add_location_to_breakpoint): Likewise.
6185 (break_command_1): Using proper breakpoint_ops according to the
6186 argument passed by the user in the command line.
6187 (bkpt_probe_insert_location): New function.
6188 (bkpt_probe_remove_location): Likewise.
6189 (bkpt_probe_create_sals_from_address): Likewise.
6190 (bkpt_probe_decode_linespec): Likewise.
6191 (tracepoint_probe_create_sals_from_address): Likewise.
6192 (tracepoint_probe_decode_linespec): Likewise.
6193 (tracepoint_probe_breakpoint_ops): New variable.
6194 (trace_command): Using proper breakpoint_ops according to the
6195 argument passed by the user in the command line.
6196 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6197 static probes on breakpoints and tracepoints.
6198 * breakpoint.h (struct bp_location) <probe>: New field.
6199 * cli-utils.c (skip_spaces_const): New function.
6200 (extract_arg): Likewise.
6201 * cli-utils.h (skip_spaces_const): Likewise.
6202 (extract_arg): Likewise.
6203 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6204 * configure.ac: Append `stap-probe.o' to be generated when ELF
6205 support is present.
6206 * configure: Regenerate.
6207 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6208 * elfread.c: Include `probe.h' and `arch-utils.h'.
6209 (probe_key): New variable.
6210 (elf_get_probes): New function.
6211 (elf_get_probe_argument_count): Likewise.
6212 (elf_evaluate_probe_argument): Likewise.
6213 (elf_compile_to_ax): Likewise.
6214 (elf_symfile_relocate_probe): Likewise.
6215 (stap_probe_key_free): Likewise.
6216 (elf_probe_fns): New variable.
6217 (elf_sym_fns): Add `sym_probe_fns' value.
6218 (elf_sym_fns_lazy_psyms): Likewise.
6219 (elf_sym_fns_gdb_index): Likewise.
6220 (_initialize_elfread): Initialize objfile cache for static
6221 probes.
6222 * gdb_vecs.h (struct probe): New forward declaration.
6223 (probe_p): New VEC declaration.
6224 * gdbarch.c: Regenerate.
6225 * gdbarch.h: Regenerate.
6226 * gdbarch.sh (stap_integer_prefix): New variable.
6227 (stap_integer_suffix): Likewise.
6228 (stap_register_prefix): Likewise.
6229 (stap_register_suffix): Likewise.
6230 (stap_register_indirection_prefix): Likewise.
6231 (stap_register_indirection_suffix): Likewise.
6232 (stap_gdb_register_prefix): Likewise.
6233 (stap_gdb_register_suffix): Likewise.
6234 (stap_is_single_operand): New function.
6235 (stap_parse_special_token): Likewise.
6236 (struct stap_parse_info): Forward declaration.
6237 * i386-tdep.c: Including headers needed to perform the parsing
6238 of SystemTap probes' arguments.
6239 (i386_stap_is_single_operand): New function.
6240 (i386_stap_parse_special_token): Likewise.
6241 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6242 probes' arguments parser.
6243 * i386-tdep.h (i386_stap_is_single_operand): New function.
6244 (i386_stap_parse_special_token): Likewise.
6245 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6246 * mipsread.c (ecoff_sym_fns): Likewise.
6247 * objfiles.c (objfile_relocate1): Support relocation for static
6248 probes.
6249 * parse.c (prefixify_expression): Remove static declaration.
6250 (initialize_expout): Likewise.
6251 (reallocate_expout): Likewise.
6252 * parser-defs.h (initialize_expout): Declare function.
6253 (reallocate_expout): Likewise.
6254 (prefixify_expression): Likewise.
6255 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6256 of SystemTap probes' arguments.
6257 (ppc_stap_is_single_operand): New function.
6258 (ppc_stap_parse_special_token): Likewise.
6259 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6260 probes' arguments parser.
6261 * probe.c: New file, for generic statically defined probe support.
6262 * probe.h: Likewise.
6263 * s390-tdep.c: Including headers needed to perform the parsing of
6264 SystemTap probes' arguments.
6265 (s390_stap_is_single_operand): New function.
6266 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6267 probes' arguments parser.
6268 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6269 * stap-probe.c: New file, for SystemTap probe support.
6270 * stap-probe.h: Likewise.
6271 * symfile.h: Include `gdb_vecs.h'.
6272 (struct sym_probe_fns): New struct.
6273 (struct sym_fns) <sym_probe_fns>: New field.
6274 * symtab.c (init_sal): Initialize `probe' field.
6275 * symtab.h (struct probe): Forward declaration.
6276 (struct symtab_and_line) <probe>: New field.
6277 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6278 locations.
6279 (stop_tracing): Likewise.
6280 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6281
6282 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6283 Tom Tromey <tromey@redhat.com>
6284
6285 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6286 and to compile agent expressions.
6287 * infrun.c (siginfo_make_value): New argument `ignore'.
6288 (siginfo_funcs): New struct.
6289 (_initialize_infrun): New argument when calling
6290 `create_internalvar_type_lazy'.
6291 * thread.c (thread_id_make_value): New argument `ignore'.
6292 (thread_funcs): New struct.
6293 (_initialize_thread): New argument when calling
6294 `create_internalvar_type_lazy'.
6295 * tracepoint.c (sdata_make_value): New argument `ignore'.
6296 (sdata_funcs): New struct.
6297 (_initialize_tracepoint): New argument when calling
6298 `create_internalvar_type_lazy'.
6299 * value.c (make_value): New struct.
6300 (create_internalvar_type_lazy): New argument `data'.
6301 (compile_internalvar_to_ax): New function.
6302 (value_of_internalvar): Properly handling `make_value' case.
6303 (clear_internalvar): Likewise.
6304 (show_convenience): Adding `TRY_CATCH' block.
6305 * value.h (internalvar_make_value): Delete, replace by...
6306 (struct internalvar_funcs): ... this.
6307 (create_internalvar_type_lazy) <fun>: Delete argument.
6308 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6309 (compile_internalvar_to_ax): New function.
6310 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6311 (tlb_funcs): New struct.
6312 (_initialize_windows_tdep): New argument when calling
6313 `create_internalvar_type_lazy'.
6314
6315 2012-04-27 Mark Wielaard <mjw@redhat.com>
6316
6317 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6318 see whether it is an address or a constant offset from DW_AT_low_pc.
6319 (dwarf2_record_block_ranges): Likewise.
6320 (read_partial_die): Likewise.
6321
6322 2012-04-26 Mark Wielaard <mjw@redhat.com>
6323
6324 * MAINTAINERS (Write After Approval): Add myself to the list.
6325
6326 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6327
6328 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6329 (proc_prettyprint_signal): Likewise.
6330 (proc_prettyprint_faultset): Likewise.
6331 (proc_prettyprint_fault): Likewise.
6332 (proc_prettyprint_actionset): Likewise.
6333 (proc_prettyprint_flags): Move to new proc-flags.c section.
6334 (proc_prettyfprint_flags): New prototype.
6335 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6336 (proc_syscall, proc_cursig): Likewise.
6337 (proc_set_kill_on_last_close): Likewise.
6338 (proc_unset_kill_on_last_close): Likewise.
6339 (proc_set_watchpoint): Make static.
6340 (proc_delete_dead_threads): Likewise.
6341 (procfs_set_watchpoint): Likewise.
6342 (_initialize_procfs): Add prototype.
6343 * proc-events.c: Include proc-utils.h.
6344 (init_syscall_table): Make static.
6345 * proc-api.c (_initialize_proc_api): Add prototype.
6346 * proc-flags.c: Include proc-utils.h.
6347
6348 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6349
6350 * configure.ac: Add AC_ARG_PROGRAM.
6351 * configure: Regenerate.
6352
6353 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 Fix DW_AT_lower_bound defaults for DWARF-4+.
6356 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6357 high. New variable low_default_is_valid. Implement DWARF-4+
6358 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6359 no default by the DWARF standard.
6360
6361 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6362 Maciej W. Rozycki <macro@codesourcery.com>
6363
6364 * infrun.c (handle_inferior_event): Move the check for return
6365 trampolines ahead of the check for function trampolines.
6366 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6367 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6368 (mips_str_mips16_ret_stub): Likewise.
6369 (mips_str_call_fp_stub): Likewise.
6370 (mips_str_call_stub): Likewise.
6371 (mips_str_fn_stub): Likewise.
6372 (mips_str_pic): Likewise.
6373 (mips_in_frame_stub): New function.
6374 (mips_unwind_pc): Return the return address rather than the PC
6375 if the PC of an intermediate frame is inside a call thunk.
6376 (mips_is_stub_suffix): New function.
6377 (mips_is_stub_mode): Likewise.
6378 (mips_get_mips16_fn_stub_pc): Likewise.
6379 (mips_skip_mips16_trampoline_code): Update to handle all the
6380 currently generated stub types. Don't recurse into __fn_stub
6381 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6382 Use cooked register accesses.
6383 (mips_in_return_stub): Reintroduce function.
6384 (mips_skip_trampoline_code): Traverse trampolines recursively.
6385 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6386
6387 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6388
6389 GDB 7.4.1 released.
6390
6391 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6392
6393 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6394 * features/arm-with-m-vfp-d16.xml: New file. Describes
6395 Cortex-M with VFPv4-sp-d16 FPU register layout.
6396 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6397 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6398 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6399 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6400 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6401
6402 2012-04-25 Doug Evans <dje@google.com>
6403
6404 * cli/cli-decode.c (print_doc_line): Use stream instead of
6405 current_uiout.
6406
6407 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6408
6409 * features/arm-with-iwmmxt.c: Regenerate.
6410 * features/arm-with-m-fpa-layout.c: Likewise.
6411 * features/arm-with-m.c: Likewise.
6412 * features/arm-with-neon.c: Likewise.
6413 * features/arm-with-vfpv2.c: Likewise.
6414 * features/arm-with-vfpv3.c: Likewise.
6415 * features/mips-dsp-linux.c: Likewise.
6416 * features/mips-linux.c: Likewise.
6417 * features/mips64-dsp-linux.c: Likewise.
6418 * features/mips64-linux.c: Likewise.
6419 * features/s390-linux32.c: Likewise.
6420 * features/s390-linux32v1.c: Likewise.
6421 * features/s390-linux32v2.c: Likewise.
6422 * features/s390-linux64.c: Likewise.
6423 * features/s390-linux64v1.c: Likewise.
6424 * features/s390-linux64v2.c: Likewise.
6425 * features/s390x-linux64.c: Likewise.
6426 * features/s390x-linux64v1.c: Likewise.
6427 * features/s390x-linux64v2.c: Likewise.
6428 * features/tic6x-c62x-linux.c: Likewise.
6429 * features/tic6x-c62x.c: Likewise.
6430 * features/tic6x-c64x-linux.c: Likewise.
6431 * features/tic6x-c64x.c: Likewise.
6432 * features/tic6x-c64xp-linux.c: Likewise.
6433 * features/tic6x-c64xp.c: Likewise.
6434 * target-descriptions.c: Only generate `field_type' and `type'
6435 variables when needed.
6436
6437 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6438
6439 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6440
6441 2012-04-25 Doug Evans <dje@google.com>
6442
6443 Initial pass at Go language support.
6444 * NEWS: Mention Go.
6445 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6446 go-valprint.c.
6447 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6448 (YYFILES): Add go-exp.c.
6449 (YYOBJ): Add go-exp.o.
6450 (local-maintainer-clean): Delete go-exp.c.
6451 * defs.h (enum language): Add language_go.
6452 * dwarf2read.c: #include "go-lang.h".
6453 (fixup_go_packaging): New function.
6454 (process_full_comp_unit): Call it when processing Go CUs.
6455 (dwarf2_physname): Add Go support.
6456 (read_file_scope): Handle missing language spec for GNU Go.
6457 (set_cu_language): Handle DW_LANG_Go.
6458 * go-exp.y: New file.
6459 * go-lang.h: New file.
6460 * go-lang.c: New file.
6461 * go-typeprint.c: New file.
6462 * go-valprint.c: New file.
6463 * symtab.c: #include "go-lang.h".
6464 (symbol_set_language): Handle language_go.
6465 (symbol_find_demangled_name, symbol_set_names): Ditto.
6466 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6467
6468 2012-04-24 Jim Meyering <meyering@redhat.com>
6469
6470 avoid a few strncpy-induced buffer overruns
6471 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6472 fname and psargs before trying to concatenate.
6473 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6474 "name" before applying strchr.
6475
6476 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6477
6478 * CONTRIBUTE: Use unified diff instead of context diff when
6479 generating patches.
6480
6481 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6482
6483 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6484 code. Handle JR.HB correctly.
6485
6486 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6487
6488 * mips-tdep.c
6489 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6490 with the other MIPS16 helpers.
6491
6492 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6493
6494 * observer.sh: Conditionally declare `args', thus cleaning up
6495 unused instances of this variable.
6496
6497 2012-04-24 Yao Qi <yao@codesourcery.com>
6498
6499 Revert this patch to allow breakpoint always-inserted
6500 in record target.
6501 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6502 * breakpoint.c: Include record.h.
6503 (breakpoints_always_inserted_mode): Return false when the record
6504 target is in use.
6505
6506 * breakpoint.c (iterate_over_bp_locations): New.
6507 * breakpoint.h: Declare.
6508 New typedef walk_bp_location_callback.
6509 * record.c (record_open): Call record_init_record_breakpoints.
6510 (record_sync_record_breakpoints): New.
6511 (record_init_record_breakpoints): New.
6512 * NEWS: Mention supporting breakpoint always-inserted mode in
6513 record target.
6514
6515 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6516
6517 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6518 any thread.
6519
6520 2012-04-24 Yao Qi <yao@codesourcery.com>
6521
6522 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6523 (is_catchpoint): ... it.
6524 (print_one_breakpoint_location): Caller update.
6525 * breakpoint.h: Update declaration.
6526
6527 2012-04-23 David S. Miller <davem@davemloft.net>
6528
6529 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6530
6531 2012-04-23 Tom Tromey <tromey@redhat.com>
6532
6533 * buildsym.c (add_free_pendings): Remove.
6534 * buildsym.h (add_free_pendings): Remove.
6535
6536 2012-04-23 Doug Evans <dje@google.com>
6537
6538 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6539 attr.u.unsnd instead of attr.u.addr.
6540 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6541 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6542 DW_FORM_ref_udata.
6543 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6544 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6545 DW_FORM_ref_udata.
6546 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6547
6548 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6549
6550 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6551 (mips_o32_return_value): Likewise.
6552 (mips_o64_return_value): Likewise.
6553
6554 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6555
6556 * ada-lang.c (ada_evaluate_subexp): Add cases for
6557 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6558 their treatment in eval.c.
6559
6560 2012-04-21 David S. Miller <davem@davemloft.net>
6561
6562 * sparc-tdep.c (X_DISP10): Define.
6563 (sparc_analyze_control_transfer): Handle compare-and-branch.
6564
6565 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6566
6567 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6568 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6569
6570 2012-04-20 Nigel Stephens <nigel@mips.com>
6571 Maciej W. Rozycki <macro@codesourcery.com>
6572
6573 * mips-tdep.c (mips_float_register_p): New function.
6574 (mips_convert_register_float_case_p): Use mips_float_register_p.
6575 (mips_register_type): Likewise.
6576 (mips_print_register): Likewise.
6577 (print_gp_register_row): Likewise.
6578 (mips_print_registers_info): Likewise.
6579
6580 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6581
6582 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6583 of mips16 symbols.
6584
6585 2012-04-20 Andrew Pinski <apinski@cavium.com>
6586
6587 * MAINTAINERS (Write After Approval): Add myself to the list.
6588
6589 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6590
6591 * MAINTAINERS: Update my e-mail address.
6592
6593 2012-04-20 Pedro Alves <palves@redhat.com>
6594
6595 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6596 $srcdir.
6597 * configure: Regenerate.
6598
6599 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6600
6601 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6602 declaration.
6603 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6604
6605 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6606
6607 Fix compilation compatibility with python-2.4
6608 * python/py-type.c (convert_field): Cast ADDRSTRING for
6609 PyObject_SetAttrString as non-const. New comment.
6610
6611 2012-04-19 Tom Tromey <tromey@redhat.com>
6612
6613 * top.c (quit_target): Use all_cleanups.
6614 * main.c (captured_command_loop): Use all_cleanups.
6615 * exceptions.c (throw_exception): Use all_cleanups.
6616
6617 2012-04-19 Pedro Alves <palves@redhat.com>
6618
6619 * Makefile.in (GNULIB_BUILDDIR): New.
6620 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6621 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6622 (CLEANDIRS). Remove gnulib/import.
6623 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6624 (all-lib): Ditto.
6625 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6626 (gnulib/import/Makefile): Replace gnulib/import with
6627 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6628 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6629 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6630 acx_configure_dir.m4.
6631 * acinclude.m4: Include acx_configure_dir.m4.
6632 * acx_configure_dir.m4: New file.
6633 * aclocal.m4: Regenerate.
6634 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6635 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6636 (GNULIB): New variable.
6637 (GNULIB_STDINT_H): Adjust.
6638 (AC_OUTPUT): Don't output gnulib/Makefile.
6639 * gdb/defs.h: Include build-gnulib/config.h.
6640 * aclocal.m4: Regenerate.
6641 * config.in: Regenerate.
6642 * configure: Regenerate.
6643
6644 * gnulib/Makefile.in: New file.
6645 * gnulib/configure.ac: New file.
6646 * gnulib/aclocal.m4: New file.
6647 * gnulib/config.in: New file.
6648 * gnulib/configure: New file.
6649 * gnulib/: Re-run gnulib-tool to adjust.
6650
6651 2012-04-19 Doug Evans <dje@google.com>
6652
6653 * cleanups.h (struct cleanup): Move to cleanups.c.
6654 (make_cleanup_dtor_ftype): New typedef.
6655 (make_cleanup_dtor): Use it.
6656 (ALL_CLEANUPS): Replace with ...
6657 (all_cleanups): ... this. Declare. All uses updated.
6658 * cleanups.c: #include "gdb_assert.h".
6659 (sentinel_cleanup): New static global.
6660 (SENTINEL_CLEANUP): Define.
6661 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6662 (make_my_cleanup2): Assert result is non-NULL.
6663 (all_cleanups): New function.
6664 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6665 of NULL.
6666
6667 2012-04-19 Pedro Alves <palves@redhat.com>
6668
6669 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6670 Adjust paths to gnulib imported files.
6671
6672 2012-04-19 Pedro Alves <palves@redhat.com>
6673
6674 * gnulib/: Move whole directory ...
6675 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6676 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6677 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6678 (aclocal_m4_deps): Adjust.
6679 * aclocal.m4: Regenerate.
6680 * configure: Regenerate.
6681 * configure.ac: Adjust AC_OUTPUT output.
6682
6683 2012-04-19 Yao Qi <yao@codesourcery.com>
6684
6685 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6686 (vec.o): New rule.
6687 * vec.c: Move it ...
6688 * common/vec.c: ... here.
6689 * vec.h: Move it ...
6690 * common/vec.h: ... here.
6691
6692 2012-04-19 Yao Qi <yao@codesourcery.com>
6693
6694 * gdb-code-style.el: New.
6695
6696 2012-04-18 Pedro Alves <palves@redhat.com>
6697
6698 Update gnulib from latest git.
6699 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6700
6701 * gnulib/Makefile.am: Update.
6702 * gnulib/dummy.c: Update.
6703 * gnulib/extra/arg-nonnull.h: Update.
6704 * gnulib/extra/c++defs.h: Update.
6705 * gnulib/extra/update-copyright: Update.
6706 * gnulib/extra/warn-on-use.h: Update.
6707 * gnulib/inttypes.in.h: Update.
6708 * gnulib/m4/00gnulib.m4: Update.
6709 * gnulib/m4/extensions.m4: Update.
6710 * gnulib/m4/gnulib-cache.m4: Update.
6711 * gnulib/m4/gnulib-common.m4: Update.
6712 * gnulib/m4/gnulib-comp.m4: Update.
6713 * gnulib/m4/gnulib-tool.m4: Update.
6714 * gnulib/m4/include_next.m4: Update.
6715 * gnulib/m4/inttypes-pri.m4: Update.
6716 * gnulib/m4/inttypes.m4: Update.
6717 * gnulib/m4/longlong.m4: Update.
6718 * gnulib/m4/memchr.m4: Update.
6719 * gnulib/m4/memmem.m4: Update.
6720 * gnulib/m4/mmap-anon.m4: Update.
6721 * gnulib/m4/multiarch.m4: Update.
6722 * gnulib/m4/onceonly.m4: Update.
6723 * gnulib/m4/stddef_h.m4: Update.
6724 * gnulib/m4/stdint.m4: Update.
6725 * gnulib/m4/string_h.m4: Update.
6726 * gnulib/m4/warn-on-use.m4: Update.
6727 * gnulib/m4/wchar_h.m4: Update.
6728 * gnulib/m4/wchar_t.m4: Update.
6729 * gnulib/m4/wint_t.m4: Update.
6730 * gnulib/memchr.c: Update.
6731 * gnulib/memmem.c: Update.
6732 * gnulib/stddef.in.h: Update.
6733 * gnulib/stdint.in.h: Update.
6734 * gnulib/str-two-way.h: Update.
6735 * gnulib/string.in.h: Update.
6736 * gnulib/wchar.in.h: Update.
6737
6738 * gnulib/extra/arg-nonnull.h: Delete.
6739 * gnulib/extra/c++defs.h: Delete.
6740 * gnulib/extra/warn-on-use.h: Delete.
6741 * gnulib/m4/wchar_h.m4: Delete.
6742 * gnulib/m4/wint_t.m4: Delete.
6743 * gnulib/wchar.in.h: Delete.
6744
6745 * gnulib/extra/snippets/arg-nonnull.h: New.
6746 * gnulib/extra/snippets/c++defs.h: New.
6747 * gnulib/extra/snippets/warn-on-use.h: New.
6748
6749 * aclocal.m4: Regenerate.
6750 * config.in: Regenerate.
6751 * configure: Regenerate.
6752 * gnulib/Makefile.in: Regenerate.
6753
6754 2012-04-18 Pedro Alves <palves@redhat.com>
6755
6756 Reimport the update-copyright module from gnulib
6757 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6758
6759 * configure: Regenerate.
6760 * gnulib/Makefile.am: Update.
6761 * gnulib/Makefile.in: Regenerate.
6762 * gnulib/extra/update-copyright: Update.
6763 * gnulib/m4/gnulib-cache.m4: Update.
6764 * gnulib/m4/gnulib-comp.m4: Update.
6765
6766 2012-04-18 Tristan Gingold <gingold@adacore.com>
6767
6768 * configure.ac (aix): Put -lpthread into libs.
6769 * configure: Regenerate.
6770
6771 2012-04-18 Tom Tromey <tromey@redhat.com>
6772
6773 * linespec.c (convert_linespec_to_sals): Don't use
6774 SYMBOL_OBJ_SECTION.
6775 (compare_msymbols): Arguments are minsym_and_objfile, not
6776 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6777
6778 2012-04-18 Pedro Alves <palves@redhat.com>
6779
6780 Revert gnulib/ part of:
6781 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6782 Copyright year update in most files (performed by copyright.sh).
6783
6784 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6785
6786 Fix 64-bit constants on 32-bit hosts.
6787 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6788 from unsigned long to ULONGEST.
6789 (read_signed_leb128): Change declaration return type from long to
6790 LONGEST.
6791 (dwarf2_const_value_attr): Change declaration parameter value from long
6792 to LONGEST.
6793 (dwarf2_compute_name): Change variable value from long to LONGEST.
6794 (read_unsigned_leb128): Change return type, variable result and some
6795 casts from unsigned long to ULONGEST.
6796 (read_signed_leb128): Change return type, variable result and some
6797 casts from long to LONGEST.
6798 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6799 value from long to LONGEST.
6800 (dwarf2_const_value): Change variable value from long to LONGEST.
6801 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6802 plongest and hex_string.
6803 * symtab.h (struct general_symbol_info): Change ivalue from long to
6804 LONGEST, remove the comment.
6805 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6806 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6807
6808 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6809
6810 PR symtab/7259:
6811 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6812 * ada-lang.c (ada_discrete_type_high_bound)
6813 (ada_discrete_type_low_bound): Fix function comment. Use
6814 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6815 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6816 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6817 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6818 Use TYPE_FIELD_ENUMVAL.
6819 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6820 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6821 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6822 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6823 TYPE_CODE_ENUM.
6824 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6825 * dwarf2read.c (process_enumeration_scope): Likewise.
6826 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6827 field.bitpos.
6828 (class StructMainTypePrettyPrinter): Support also
6829 FIELD_LOC_KIND_ENUMVAL.
6830 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6831 TYPE_CODE_ENUM.
6832 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6833 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6834 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6835 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6836 field enumval.
6837 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6838 accommodate enumval.
6839 (struct call_site): Adjust loc_kind to accommodate enumval.
6840 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6841 (TYPE_FIELD_ENUMVAL): New macros.
6842 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6843 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6844 TYPE_CODE_ENUM.
6845 * p-typeprint.c (pascal_type_print_base): Likewise.
6846 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6847 enumval.
6848 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6849 * python/py-type.c (convert_field): New variable addrstring. Use
6850 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6851 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6852 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6853 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6854 TYPE_CODE_ENUM.
6855 * valprint.c (generic_val_print): Likewise.
6856
6857 2012-04-17 Doug Evans <dje@google.com>
6858
6859 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6860
6861 * dwarf2read.c: Whitespace fixes.
6862 (lookup_signatured_type): Tweak comment.
6863 (get_die_type_at_offset): Fix comment.
6864
6865 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6866
6867 * xcoffread.c (xcoff_secnum_to_sections): New function.
6868 (secnum_to_section, secnum_to_bfd_section): Reimplement
6869 using xcoff_secnum_to_sections. Rename "secnum" parameter
6870 into "n_scnum".
6871 (RECORD_MINIMAL_SYMBOL): Delete.
6872 (record_minimal_symbol): New function.
6873 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6874 by call to record_minimal_symbol and set misc_func_recorded
6875 to 1. Set last_csect_sec to the XCOFF section index instead
6876 of GDB's section_offset index. Update calls to
6877 prim_record_minimal_symbol_and_info to pass the BFD section
6878 as well.
6879
6880 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6881
6882 * xcoffread.c (read_xcoff_symtab): Delete variables
6883 last_csect_val and last_csect_sec and associated code.
6884
6885 2012-04-17 Doug Evans <dje@google.com>
6886
6887 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6888 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6889 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6890 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6891
6892 * cleanups.h: New file.
6893 * cleanups.c: New file.
6894 * Makefile.in (SFILES): Add cleanups.c.
6895 (HFILES_NO_SRCDIR): Add cleanups.h.
6896 (COMMON_OBS): Add cleanups.o.
6897 * defs.h (struct cleanup): Moved to cleanups.h.
6898 (do_cleanups,do_final_cleanups): Ditto.
6899 (discard_cleanups,discard_final_cleanups): Ditto
6900 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6901 (save_cleanups,save_final_cleanups): Ditto.
6902 (restore_cleanups,restore_final_cleanups): Ditto.
6903 (null_cleanup): Ditto.
6904 (make_my_cleanup,make_my_cleanup2): Ditto.
6905 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6906 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6907 (do_cleanups,do_final_cleanups): Ditto.
6908 (discard_cleanups,discard_final_cleanups): Ditto
6909 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6910 (save_cleanups,save_final_cleanups): Ditto.
6911 (restore_cleanups,restore_final_cleanups): Ditto.
6912 (null_cleanup): Ditto.
6913 (make_my_cleanup,make_my_cleanup2): Ditto.
6914 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6915
6916 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6917 make_my_cleanup.
6918 (make_cleanup_dyn_string_delete): Ditto.
6919 (make_cleanup_ui_file_delete): Ditto.
6920 (make_cleanup_ui_out_redirect_pop): Ditto.
6921 (make_cleanup_free_section_addr_info): Ditto.
6922 (make_cleanup_restore_integer): Ditto.
6923 (make_cleanup_unpush_target): Ditto.
6924 (make_cleanup_value_free_to_mark): Ditto.
6925 (make_cleanup_value_free): Ditto.
6926 (make_cleanup_free_so): Ditto.
6927
6928 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6929
6930 New option "set debug auto-load".
6931 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6932 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6933 (auto_load_safe_path_vec_update)
6934 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6935 if DEBUG_AUTO_LOAD.
6936 (file_is_auto_load_safe): New parameters debug_fmt and ....
6937 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6938 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6939 caller by explanatory string.
6940 (_initialize_auto_load): Register "set debug auto-load".
6941 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6942 and ....
6943 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6944 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6945 by explanatory string.
6946 * main.c (captured_main): Likewise.
6947 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6948 (source_section_scripts): Likewise.
6949
6950 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6951
6952 New option "set auto-load safe-path".
6953 * NEWS: New commands "set auto-load safe-path"
6954 and "show auto-load safe-path".
6955 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6956 (auto_load_safe_path, auto_load_safe_path_vec)
6957 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6958 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6959 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6960 (source_gdb_script_for_objfile): New variable is_safe. Call
6961 file_is_auto_load_safe. Return if it is not.
6962 (struct loaded_script): New field loaded.
6963 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6964 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6965 output "Missing" to "No".
6966 (_initialize_auto_load): New variable cmd. Initialize
6967 auto_load_safe_path. Register "set auto-load safe-path",
6968 "show auto-load safe-path" and "add-auto-load-safe-path".
6969 * auto-load.h (maybe_add_script): Add parameter loaded.
6970 (file_is_auto_load_safe): New declaration.
6971 * config.in: Regenerate.
6972 * configure: Regenerate.
6973 * configure.ac: New parameters --with-auto-load-safe-path
6974 and --without-auto-load-safe-path.
6975 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6976 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6977 * main.c (captured_main): Check file_is_auto_load_safe for
6978 LOCAL_GDBINIT.
6979 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6980 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6981 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6982 not.
6983
6984 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6985
6986 auto-load: Implementation.
6987 * NEWS: New descriptions for "info auto-load",
6988 "info auto-load gdb-scripts", "info auto-load python-scripts",
6989 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6990 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6991 and "show auto-load-scripts". New description for "set auto-load",
6992 "show auto-load", "set auto-load gdb-scripts",
6993 "show auto-load gdb-scripts", "set auto-load python-scripts",
6994 "show auto-load python-scripts", "set auto-load local-gdbinit",
6995 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6996 "show auto-load libthread-db".
6997 * auto-load.c: Remove include python/python-internal.h. Add includes
6998 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6999 cli/cli-setshow.h.
7000 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7001 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7002 (gdbpy_global_auto_load): Rename to ...
7003 (global_auto_load): ... here.
7004 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7005 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7006 (script_language_gdb, source_gdb_script_for_objfile): New.
7007 (struct loaded_script): New field language.
7008 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7009 LANGUAGE.
7010 (maybe_add_script): Add parameter language. Drop redundant
7011 entry.full_path initialization. Initialize entry.language and
7012 (*slot)->language.
7013 (auto_load_objfile_script): Change parameter suffix to language.
7014 Remove the call of maybe_add_script.
7015 Call language->source_script_for_objfile.
7016 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7017 New.
7018 (collect_matching_scripts): Adjust it for
7019 struct collect_matching_scripts_data.
7020 (auto_load_info_scripts_pattern_nl): New variable.
7021 (info_auto_load_scripts): Rename to ...
7022 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7023 for struct collect_matching_scripts_data.
7024 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7025 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7026 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7027 (auto_load_info_cmdlist_get): New.
7028 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7029 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7030 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7031 "info auto-load local-gdbinit".
7032 * auto-load.h (struct script_language): New.
7033 (gdbpy_global_auto_load): Rename to ...
7034 (global_auto_load): ... here.
7035 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7036 (auto_load_local_gdbinit_loaded): New declarations.
7037 (maybe_add_script): New parameter language.
7038 (auto_load_objfile_script): Change parameter suffix to language.
7039 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7040 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7041 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7042 declarations.
7043 * linux-thread-db.c: Include auto-load.h and ctype.h.
7044 (auto_load_thread_db, show_auto_load_thread_db): New.
7045 (struct thread_db_info): New field filename.
7046 (delete_thread_db_info): Call xfree for FILENAME.
7047 (try_thread_db_load): Initialize FILENAME.
7048 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7049 if !AUTO_LOAD_THREAD_DB.
7050 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7051 (_initialize_thread_db): Install auto_load_thread_db
7052 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7053 as "info auto-load libthread-db".
7054 * main.c (captured_main): Rename gdbpy_global_auto_load to
7055 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7056 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7057 (print_gdb_help): Extend the help for 'local init file'.
7058 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7059 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7060 (auto_load_scripts): Rename to ...
7061 (auto_load_python_scripts): ... here, update the comment.
7062 (gdbpy_load_auto_script_for_objfile): New declaration.
7063 (show_auto_load_python_scripts, script_language_python)
7064 (gdbpy_load_auto_script_for_objfile): New.
7065 (source_section_scripts): Refactor the code.
7066 (load_auto_scripts_for_objfile): Rename to ...
7067 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7068 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7069 (info_auto_load_python_scripts): New.
7070 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7071 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7072 Register "set auto-load-scripts" as its deprecated alias. Register
7073 "info auto-load python-scripts". Register "info auto-load-scripts" as
7074 its deprecated alias.
7075 (load_auto_scripts_for_objfile): Rename to ...
7076 (gdbpy_load_auto_scripts_for_objfile): ... here.
7077 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7078 (gdbpy_load_auto_scripts_for_objfile): ... here.
7079
7080 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 auto-load: Move files.
7083 * Makefile.in (SFILES): Add auto-load.c.
7084 (HFILES_NO_SRCDIR): Add auto-load.h.
7085 (COMMON_OBS): Add auto-load.o.
7086 (distclean): Change .gdbinit for gdb-gdb.gdb.
7087 * auto-load.c: New file, with parts from python/py-auto-load.c.
7088 * auto-load.h: New file, with parts from python/python.h.
7089 * configure: Regenerate.
7090 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7091 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7092 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7093 * main.c: Include auto-load.h.
7094 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7095 command.h, observer.h and progspace.h to auto-load.c. Add include
7096 auto-load.h.
7097 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7098 (struct loaded_script, auto_load_pspace_data)
7099 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7100 (hash_loaded_script_entry, eq_loaded_script_entry)
7101 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7102 (maybe_add_script): Move to auto-load.c.
7103 (source_section_scripts): Change maybe_add_script parameters passing,
7104 use script_not_found_warning_print.
7105 (clear_section_scripts, auto_load_objfile_script)
7106 (auto_load_new_objfile, loaded_script_ptr)
7107 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7108 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7109 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7110 auto_load_new_objfile and info_auto_load_scripts initizations to
7111 auto-load.c.
7112 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7113
7114 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 Code cleanup.
7117 * charset.c (find_charset_names): Remove variables ix and elt.
7118 Use free_char_ptr_vec.
7119 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7120 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7121 debugdir_end. New variable debugdir_len.
7122 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7123 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7124 declarations.
7125 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7126 and elt. Use free_char_ptr_vec.
7127 * source.c (add_path): Remove variables argv, arg and argv_index.
7128 New variables dir_vec, back_to, ix and name.
7129 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7130 make_cleanup_freeargv. Remove variable separator. Simplify the code
7131 no longer expecting DIRNAME_SEPARATOR.
7132 (openp): Remove variable p, p1 and len. New variables dir_vec,
7133 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7134 no longer expecting DIRNAME_SEPARATOR.
7135 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7136 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7137 debugdir_end.
7138 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7139 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7140 (dirnames_to_char_ptr_vec): New functions.
7141
7142 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7143
7144 Code cleanup.
7145 * source.c (add_path): Remove always true conditional 'p == 0' and
7146 unindent its code block.
7147
7148 2012-04-17 Pedro Alves <palves@redhat.com>
7149
7150 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7151 (FIELD_BITPOS_LVAL): ... this.
7152 (FIELD_BITPOS): New.
7153 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7154 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7155 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7156 SET_FIELD_BITPOS.
7157 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7158 SET_FIELD_BITPOS.
7159 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7160 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7161 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7162 SET_FIELD_BITPOS.
7163
7164 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7165
7166 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7167 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7168 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7169 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7170 * jv-lang.c (java_link_class_type): Likewise, once.
7171 * stabsread.c (read_enum_type): Likewise.
7172
7173 2012-04-16 Yao Qi <yao@codesourcery.com>
7174
7175 * common/agent.c (agent_run_command): Add one more parameter `len'.
7176 Update callers.
7177 * common/agent.h: Update declaration.
7178 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7179 Update.
7180 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7181
7182 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7183
7184 PR mi/13393
7185 * value.c (value_actual_type): New function.
7186 * value.h (value_actual_type): New declaration.
7187 * varobj.c (update_type_if_necessary): New function.
7188 (varobj_create): Call value_actual_type instead of
7189 value_type.
7190 (install_dynamic_child): distinct changed and type changed MI variable
7191 objects.
7192 (update_dynamic_varobj_children): Updated for install_dynamic_child
7193 change. All callers updated.
7194 (varobj_update): Support for MI variable object type change if
7195 the value changed and RTTI is used to determine the type.
7196 (create_child_with_value): Call value_actual_type instead of
7197 value_type.
7198 (adjust_value_for_child_access): Extended with a new parameter which
7199 specify whether the given value should be casted to enclosing type.
7200 All callers updated.
7201
7202 2012-04-14 Yao Qi <yao@codesourcery.com>
7203
7204 Import gnulib module inttypes from git
7205 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7206 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7207 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7208 gnulib/m4/inttypes-pri.m4
7209 * aclocal.m4, config.in, configure: Regenerated.
7210 * gnulib/Makefile.am: Update.
7211 * gnulib/Makefile.in: Update.
7212 * gnulib/m4/gnulib-cache.m4: Update.
7213 * gnulib/m4/gnulib-comp.m4: Update.
7214 * gnulib/inttypes.in.h: New.
7215 * gnulib/m4/inttypes-pri.m4: New.
7216 * gnulib/m4/inttypes.m4: New.
7217
7218 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7219
7220 * infrun.c (resume): Update PC address to the real PC after
7221 preparing to do displaced stepping.
7222
7223 2012-04-12 Doug Evans <dje@google.com>
7224
7225 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7226 All callers updated.
7227
7228 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7229
7230 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7231
7232 2012-04-12 Doug Evans <dje@google.com>
7233
7234 * dwarf2read.c (create_all_type_units): Renamed from
7235 create_debug_types_hash_table. All callers updated.
7236
7237 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7238 local type_sig to sig_type, type_offset to type_offset_in_tu.
7239 (hash_signatured_type): Renamed from hash_type_signature,
7240 all callers updated.
7241 (eq_signatured_type): Renamed from eq_type_signature,
7242 all callers updated.
7243 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7244 (process_enumeration_scope): Ditto.
7245 (lookup_signatured_type_at_offset): Ditto.
7246 (load_full_type_unit, read_signatured_type): Ditto.
7247
7248 2012-04-12 Yao Qi <yao@codesourcery.com>
7249
7250 * remote.c (async_remote_interrupt): Correct function name in
7251 debug message.
7252 (async_remote_interrupt_twice): Ditto.
7253
7254 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7255
7256 * source.c (find_and_open_source): Consistently pass resulting
7257 full path through xfullpath.
7258
7259 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7260
7261 Provide more specific displaced-stepping memory error message.
7262 * infrun.c (displaced_step_prepare): New variable status. Call
7263 target_read_memory instead of read_memory, provide more specific
7264 error message.
7265
7266 2012-04-11 Tristan Gingold <gingold@adacore.com>
7267
7268 PR gdb/13901
7269 * darwin-nat.c (darwin_execvp): Revert previous patch.
7270
7271 2012-04-11 Tristan Gingold <gingold@adacore.com>
7272
7273 PR gdb/13901
7274 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7275 in case of change.
7276
7277 2012-04-11 Tristan Gingold <gingold@adacore.com>
7278
7279 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7280 warning.
7281
7282 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7283
7284 New command 'explore' which helps explore values and types in
7285 scope.
7286 * NEWS: Add an entry about the new 'explore' command.
7287 * data-directory/Makefile.in: Add gdb/command/explore.py
7288 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7289 command using the GDB Python API.
7290
7291 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7292
7293 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7294 extension in jump target calculation.
7295
7296 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7297
7298 * mips-tdep.c (mips32_next_pc): Handle JALX.
7299
7300 2012-04-10 Yao Qi <yao@codesourcery.com>
7301
7302 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7303
7304 2012-04-10 Yao Qi <yao@codesourcery.com>
7305
7306 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7307 and gnulib/m4/gnulib-tool.m4.
7308
7309 2012-04-10 Doug Evans <dje@google.com>
7310
7311 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7312 (load_partial_dies): Clarify comment.
7313 (find_partial_die): Support rereading type units.
7314 Clarify CU handling, if we know offset is in CU, don't search for the
7315 containing CU. Add comment regarding memory waste.
7316
7317 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7318
7319 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7320 i386/x32-avx and i386/x32-avx-linux.
7321 (i386/x32-expedite): New.
7322 (i386/x32-linux-expedite): Likewise.
7323 (i386/x32-avx-expedite): Likewise.
7324 (i386/x32-avx-linux-expedite): Likewise.
7325 ($(outdir)/i386/x32.dat): Likewise.
7326 ($(outdir)/i386/x32-linux.dat): Likewise.
7327 ($(outdir)/i386/x32-avx.dat): Likewise.
7328 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7329
7330 * features/i386/x32-avx-linux.xml: New file.
7331 * features/i386/x32-avx.xml: Likewise.
7332 * features/i386/x32-core.xml: Likewise.
7333 * features/i386/x32-linux.xml: Likewise.
7334 * features/i386/x32.xml: Likewise.
7335
7336 * features/i386/x32-avx-linux.c: New. Generated.
7337 * features/i386/x32-avx.c: Likewise.
7338 * features/i386/x32-linux.c: Likewise.
7339 * features/i386/x32.c: Likewise.
7340 * regformats/i386/x32-avx-linux.dat: Likewise.
7341 * regformats/i386/x32-avx.dat: Likewise.
7342 * regformats/i386/x32-linux.dat: Likewise.
7343 * regformats/i386/x32.dat: Likewise.
7344
7345 2012-04-10 Tristan Gingold <gingold@adacore.com>
7346
7347 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7348 code to kill the inferior.
7349
7350 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7351
7352 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7353 defines.
7354 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7355 defines.
7356 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7357 (yyvsp): New defines.
7358 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7359 defines.
7360 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7361 defines.
7362 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7363 defines.
7364 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7365 defines.
7366 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7367 defines.
7368
7369 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7370
7371 * sparc64-tdep.c (sparc64_store_arguments)
7372 (sparc64_store_arguments): Fix coding style.
7373
7374 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7375
7376 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7377 complex floats, adjust some related comments and tighten a related
7378 assertion.
7379 (sparc64_extract_return_value): Handle complex floats.
7380
7381 2012-04-07 Doug Evans <dje@google.com>
7382
7383 * dwarf2read.c (load_partial_dies): Change condition to assert.
7384
7385 2012-04-06 Doug Evans <dje@google.com>
7386
7387 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7388 "mov %rsp,%rbp".
7389
7390 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7391
7392 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7393 fencepost error.
7394 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7395 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7396 architecture.
7397
7398 2012-04-05 Keith Seitz <keiths@redhat.com>
7399
7400 * linespec.c (decode_compound): Remove.
7401 (enum offset_relative_sign): New enum.
7402 (struct line_offset): New struct.
7403 (struct linespec): New struct.
7404 (struct linespec_state): Move file_symtabs,
7405 user_filename, and user_function into struct linespec.
7406 Make result an anonymous struct holding vectors of
7407 symbolp and minsym_and_objfile_d.
7408 Add language member.
7409 (enum ls_token_type): New enum.
7410 (linespec_keywords): New array.
7411 (struct ls_token): New struct.
7412 (struct ls_parser): New struct.
7413 (linespec_lexer_lex_number): New function.
7414 (linespec_lexer_lex_keyword): New function.
7415 (is_ada_operator): New function.
7416 (skip_quote_char): New function.
7417 (copy_token_string): New function.
7418 (is_closing_quote_enclosed): New function.
7419 (find_parameter_list_end): New function.
7420 (linespec_lexer_lex_string): New function.
7421 (linespec_lexer_lex_one): New function.
7422 (linespec_lexer_consume_token): New function.
7423 (linespec_lexer_peek_token): New function.
7424 (cplusplus_error): Remove unused function.
7425 (find_methods): Update comment.
7426 (find_toplevel_char): Return const.
7427 (is_objc_method_format): Remove unused function.
7428 (find_toplevel_string): New function.
7429 (is_linespec_boundary): Remove.
7430 (symbol_not_found_error): New function.
7431 (find_method_overload_end): Remove function.
7432 (unexpected_linespec_error): New function.
7433 (keep_name_info): Remove.
7434 (linespec_parse_line_offset): New function.
7435 (linespec_parse_basic): New function.
7436 (canonicalize_linespec): New function.
7437 (decode_line_internal): Remove.
7438 (create_sals_line_offset): New function adapted from
7439 decode_all_digits.
7440 (convert_linespec_to_sals): New function.
7441 (parse_linespec): New function.
7442 (linespec_parser_new): New function.
7443 (linespec_state_destructor): Change parameter type to
7444 struct linespec_state *.
7445 Add language parameter.
7446 Remove freeing of moved members.
7447 (linespec_parser_delete): New function.
7448 (decode_line_full): Use parse_linespec and linespec_parser_new.
7449 (decode_line_1): Likewise.
7450 (decode_indirect): Rename to ...
7451 (linespec_expression_to_pc): ... this and rewrite
7452 to simply find CORE_ADDR, storing this result for later
7453 conversion to SALs.
7454 (locate_first_half): Remove.
7455 (deocde_objc): Add parameter LS.
7456 Initialize new struct collect_info members.
7457 Handle minimal symbols, too.
7458 (decode_compound): Delete.
7459 (lookup_prefix_sym): Rewrite.
7460 (compare_msymbols): New function.
7461 (find_method): Rewrite.
7462 Do not call cplusplus_error.
7463 (symtabs_from_filename): Rewrite.
7464 (collect_function_symbols): Delete.
7465 (find_function_symbols): Rewrite without ARGPTR-style
7466 processing.
7467 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7468 (decode_dollar): Adapted and renamed to ...
7469 (linespec_parse_variable): ... this.
7470 (find_linespec_symbols): New function.
7471 (decode_label): Adapted and renamed to ...
7472 (find_label_symbols): ... this.
7473 (decode_digits_list_mode): Add and use LS argument.
7474 (decode_digits_ordinary): Likewise.
7475 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7476 If in list mode, allow any symbol class. Otherwise, only
7477 permit LOC_BLOCK symbols.
7478 (minsym_found): Update comments.
7479 (search_minsyms_for_name): Do not convert the matching symbol
7480 into a SAL. Simply push the symbol and objfile into the
7481 result vector.
7482 (decode_variable): Delete. Contents adapted into
7483 find_linespec_symbols.
7484
7485 * cp-support.c (SKIP_SPACE): Remove.
7486 (operator_tokens): Remove unused global.
7487 (cp_validate_operator): Remove.
7488 * cp-support.h (cp_validate_operator): Remove declaration.
7489
7490 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7491
7492 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7493 for TYPE_VPTR_FIELDNO.
7494 * valprint.c (valprint_check_validity): Make it global, move the
7495 function comment ...
7496 * value.h (valprint_check_validity): ... to this new declaration.
7497
7498 2012-04-02 Tristan Gingold <gingold@adacore.com>
7499
7500 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7501 the STATE32 api for i386 state.
7502 (i386_darwin_store_inferior_registers): Likewise.
7503
7504 2012-04-02 Tristan Gingold <gingold@adacore.com>
7505
7506 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7507 SS offset.
7508 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7509 format_string.
7510
7511 2012-04-02 Tristan Gingold <gingold@adacore.com>
7512
7513 PR gdb/13901
7514 * darwin-nat.c (darwin_execvp): Set binary preference.
7515
7516 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7517
7518 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7519
7520 2012-03-30 Tom Tromey <tromey@redhat.com>
7521
7522 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7523 of TRY_CATCH. Fix error handling.
7524 * python/py-value.c (convert_value_from_python): Move 'old'
7525 declaration to innermost scope.
7526
7527 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7528 Andrey Smirnov <andrew.smirnov@gmail.com>
7529
7530 -Wshadow warning fix.
7531 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7532 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7533 Adjust code accordingly.
7534
7535 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7536
7537 * ada-lang.c (symbol_completion_add): Rename parameter
7538 "encoded" into "encoded_p". Ajust code and documentation
7539 accordingly.
7540
7541 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7542 Andrey Smirnov <andrew.smirnov@gmail.com>
7543
7544 -Wshadow warning fix.
7545 * ada-lang.c (symbol_completion_add): Rename parameter
7546 "wild_match" into wild_match_p. Update code and documentation
7547 accordingly.
7548
7549 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7550
7551 * ada-lang.c (symbol_completion_match): Rename parameter
7552 "encoded" into "encoded_p". Ajust code and documentation
7553 accordingly.
7554
7555 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7556 Andrey Smirnov <andrew.smirnov@gmail.com>
7557
7558 -Wshadow warning fix.
7559 * ada-lang.c (symbol_completion_match): Rename parameter
7560 "wild_match" into "wild_match_p". Adjust code and function
7561 documentation accordingly.
7562
7563 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7564 Andrey Smirnov <andrew.smirnov@gmail.com>
7565
7566 -Wshadow warning fix.
7567 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7568 "symbol_info" into "info". Adjust code accordingly.
7569 (ada_lookup_symbol): Likewise.
7570
7571 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7572
7573 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7574 of this function's 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_symbol_list): Rename "wild_match"
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 -Wshadow warning fix.
7587 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7588 parameter into "wild_match_p". Adjust code accordingly.
7589 Document this parameter in the function description.
7590
7591 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7592 Andrey Smirnov <andrew.smirnov@gmail.com>
7593
7594 -Wshadow warning fix.
7595 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7596 "wild_match" parameter to "wild_match_p" (-Wshadow).
7597
7598 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7599
7600 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7601 in function documentation.
7602
7603 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7604 Andrey Smirnov <andrew.smirnov@gmail.com>
7605
7606 -Wshadow warning fix.
7607 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7608 variable into wild_match_p. Adjust code accordingly.
7609
7610 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7611 Andrey Smirnov <andrew.smirnov@gmail.com>
7612
7613 * ada-valprint.c (ada_val_print_1): Move the code handling
7614 TYPE_CODE_ENUM inside its own lexical block. Declare
7615 variables len and val there, instead of in the function's
7616 top level block. Avoid declaring deref_val again in a way
7617 that shadows another variable of the same name declared
7618 in one of the up-level blocks. Just re-use the up-level
7619 variable instead.
7620
7621 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7622
7623 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7624 Replace block_found argument by symbol_info. Adjust
7625 implementation accordingly. Add function documentation.
7626 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7627 Fix documentation.
7628 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7629 * ada-exp.y (write_object_renaming): Adjust to new
7630 ada_lookup_encoded_symbol API.
7631
7632 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7633
7634 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7635 documentation.
7636
7637 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7638
7639 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7640 (v850_register_name): Add the mpu and fpu register names.
7641 (v850e_register_name): Add the mpu and fpu register names.
7642 (v850e2_register_name): New function.
7643 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7644 bfd_mach_v850e2v3.
7645
7646 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7647
7648 * NEWS: Add entry for Ada varobj support.
7649
7650 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7651
7652 * varobj.c (default_value_is_changeable_p): New function,
7653 extracted from varobj_value_is_changeable_p. Add declaration.
7654 (ada_value_is_changeable_p): New function, extracted from
7655 varobj_value_is_changeable_p. Add declaration.
7656 (struct language_specific): New field "value_is_changeable_p".
7657 (languages): Add entries for new field.
7658 (varobj_create): Set language before calling install_new_value.
7659 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7660 "value_is_changeable_p" language callback.
7661
7662 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7663
7664 * ada-varobj.h, ada-varobj.c: New files.
7665 * Makefile.in (SFILES): Add ada-varobj.c.
7666 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7667 (COMMON_OBS): Add ada-varobj.o.
7668
7669 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7670
7671 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7672 (struct language_specific): New field "value_has_mutated".
7673 (languages): Set field "value_has_mutated" in each entry of array.
7674 (varobj_value_has_mutated): New function.
7675 (varobj_udpdate): Add handling of type mutation.
7676 (value_of_root): Add handling of type mutation.
7677 (ada_value_has_mutated): New function.
7678
7679 2012-03-28 Pedro Alves <palves@redhat.com>
7680
7681 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7682 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7683
7684 2012-03-28 Tom Tromey <tromey@redhat.com>
7685
7686 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7687 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7688 before returning.
7689
7690 2012-03-28 Tom Tromey <tromey@redhat.com>
7691
7692 * .dir-locals.el: New file.
7693
7694 2012-03-28 Pedro Alves <palves@redhat.com>
7695
7696 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7697
7698 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7699
7700 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7701 handling for r0.
7702
7703 2012-03-27 Pedro Alves <palves@redhat.com>
7704
7705 Eliminate struct ui_stream.
7706
7707 * ui-out.h (struct ui_stream): Delete.
7708 (ui_out_field_stream): Adjust prototype.
7709 (ui_out_stream_new, ui_out_stream_delete)
7710 (make_cleanup_ui_out_stream_delete): Delete declarations.
7711 * ui-out.c (ui_out_field_stream): Change prototype to take a
7712 ui_file instead of a ui_stream. Adjust.
7713 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7714 (make_cleanup_ui_out_stream_delete): Delete.
7715 * breakpoint.c (print_breakpoint_location)
7716 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7717 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7718 * disasm.c (dump_insns): Ditto.
7719 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7720 prototype.
7721 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7722 ui_stream/ui_out_stream_new.
7723 * infcmd.c (print_return_value): Ditto.
7724 * osdata.c (info_osdata_command): Don't allocate a local
7725 ui_stream.
7726 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7727 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7728 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7729 allocate a local ui_stream.
7730 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7731 instead of ui_stream/ui_out_stream_new.
7732 (list_args_or_locals): Don't allocate a local ui_stream.
7733 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7734 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7735 ui_stream/ui_out_stream_new.
7736 * cli/cli-setshow.c (do_setshow_command): Ditto.
7737
7738 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7739
7740 * arm-linux-tdep.c (arm_linux_init_abi): Call
7741 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7742 * arm-tdep.c (arm_process_record): New function.
7743 (deallocate_reg_mem): New function.
7744 (decode_insn): New function.
7745 (thumb_record_branch): New function.
7746 (thumb_record_ldm_stm_swi(): New function.
7747 (thumb_record_misc): New function.
7748 (thumb_record_ld_st_stack): New function.
7749 (thumb_record_ld_st_imm_offset): New function.
7750 (thumb_record_ld_st_reg_offset(): New function.
7751 (thumb_record_add_sub_cmp_mov): New function.
7752 (thumb_record_shift_add_sub): New function.
7753 (arm_record_coproc_data_proc): New function.
7754 (arm_record_coproc): New function.
7755 (arm_record_b_bl): New function.
7756 (arm_record_ld_st_multiple): New function.
7757 (arm_record_ld_st_reg_offset): New function.
7758 (arm_record_ld_st_imm_offset): New function.
7759 (arm_record_data_proc_imm): New function.
7760 (arm_record_data_proc_misc_ld_str): New function.
7761 (arm_record_extension_space): New function.
7762 (arm_record_strx): New function.
7763 (sbo_sbz): New function.
7764 (struct insn_decode_record): New structure for arm insn record.
7765 (REG_ALLOC): New macro for reg allocations.
7766 (MEM_ALLOC): New macro for memory allocations.
7767 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7768
7769 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7770
7771 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7772 (store_register): Likewise.
7773
7774 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7775
7776 * MAINTAINERS (Write After Approval): Add myself to the list.
7777
7778 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7781 Describe also the option "auto".
7782
7783 2012-03-22 Richard Henderson <rth@redhat.com>
7784
7785 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7786 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7787
7788 2012-03-22 Richard Henderson <rth@redhat.com>
7789
7790 * jit.c (jit_read_code_entry): Compute alignment and offset of
7791 int64_t member before computing entry_size.
7792
7793 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7794
7795 Python scripting: Add new method Value.referenced_value to
7796 gdb.Value which can dereference pointer as well as reference
7797 values.
7798 * NEWS: Add entry under 'Python scripting' about the new method
7799 Value.referenced_value on gdb.Value objects.
7800 * python/py-value.c (valpy_referenced_value): New function
7801 defining a new method on gdb.Value objects which can dereference
7802 pointer and reference values.
7803
7804 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7805
7806 * MAINTAINERS (Write After Approval): Add myself to the list.
7807
7808 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7809
7810 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7811 in addition to "main".
7812
7813 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7814
7815 * expression.h (op_name): Add declaration.
7816 * expprint.c (op_name): Remove declaration. Make non-static.
7817 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7818
7819 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7820
7821 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7822 of struct siginfo.
7823 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7824 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7825 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7826 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7827 (linux_nat_get_siginfo): Likewise.
7828 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7829 (linux_nat_get_siginfo): Likewise.
7830 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7831 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7832 * procfs.c (gdb_siginfo_t): Likewise.
7833
7834 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7835
7836 * .gitignore: Ignore more files.
7837
7838 2012-03-20 Pedro Alves <palves@redhat.com>
7839
7840 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7841 returns.
7842
7843 2012-03-20 Yao Qi <yao@codesourcery.com>
7844
7845 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7846 comment.
7847
7848 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7851 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7852 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7853 sect_offset.
7854 * dwarf2expr.h (cu_offset, sect_offset): New types.
7855 (struct dwarf_expr_context_funcs) <dwarf_call>
7856 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7857 sect_offset.
7858 (struct dwarf_expr_context) <len>: Improve the comment.
7859 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7860 cu_offset and sect_offset.
7861 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7862 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7863 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7864 * dwarf2loc.h: Include dwarf2expr.h.
7865 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7866 and sect_offset.
7867 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7868 Improve the comment.
7869 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7870 (struct signatured_type, struct line_header, struct partial_die_info)
7871 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7872 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7873 (get_die_type_at_offset, create_cus_from_index)
7874 (create_signatured_type_table_from_index, dw2_get_file_names)
7875 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7876 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7877 (create_debug_types_hash_table, process_psymtab_comp_unit)
7878 (load_partial_comp_unit, create_all_comp_units)
7879 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7880 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7881 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7882 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7883 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7884 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7885 (find_partial_die, read_attribute_value, lookup_die_type)
7886 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7887 (is_ref_attr): New function comment.
7888 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7889 Use cu_offset and sect_offset.
7890 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7891 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7892 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7893 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7894 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7895 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7896 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7897 sect_offset.
7898
7899 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7900
7901 Code cleanup.
7902 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7903 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7904 with xfree.
7905 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7906
7907 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7908
7909 * NEWS: Describe new options --init-command=FILE, -ix and
7910 --init-eval-command=COMMAND, -iex.
7911 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7912 CMDARG_INIT_COMMAND.
7913 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7914 "init-command", "init-eval-command", "ix" and "iex" to the variable
7915 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7916 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7917 (print_gdb_help): Describe --init-command=FILE, -ix and
7918 --init-eval-command=COMMAND, -iex.
7919
7920 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7921
7922 Code cleanup.
7923 * main.c (struct cmdarg): Move it here from main. Add more comments.
7924 (cmdarg_s, VEC (cmdarg_s)): New.
7925 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7926 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7927 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7928 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7929 of CMDARG.
7930
7931 2012-03-19 Tom Tromey <tromey@redhat.com>
7932
7933 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7934
7935 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7936
7937 PR symtab/13777
7938 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7939 GCC >=4.5.
7940
7941 2012-03-16 Chris January <chris.january@allinea.com>
7942
7943 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7944 of clear.
7945
7946 2012-03-16 Chris January <chris.january@allinea.com>
7947
7948 * source.c (add_path): Use memmove instead of strcpy because the
7949 strings overlap.
7950
7951 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7952
7953 * value.h (set_value_parent): Add declaration.
7954 * value.c (set_value_parent): New function.
7955 (value_address): If VALUE->PARENT is not NULL, then use it as
7956 the base address instead of VALUE->LOCATION.address.
7957 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7958 the same as OBJ's address. Adjust V's offset accordingly.
7959 Set V's parent.
7960
7961 2012-03-16 Gary Benson <gbenson@redhat.com>
7962
7963 PR breakpoints/10738
7964 * dwarf2read.c (use_deprecated_index_sections): New global.
7965 (struct partial_die_info): New member may_be_inlined.
7966 (read_partial_die): Set may_be_inlined where appropriate.
7967 (add_partial_subprogram): Add partial symbols for partial
7968 DIEs that may be inlined.
7969 (new_symbol_full): Add inlined subroutines to the current
7970 scope.
7971 (write_psymtabs_to_index): Bump version number.
7972 (dwarf2_read_index): Read only version 6 indices unless
7973 use_deprecated_index_sections is set.
7974 * linespec.c (symbol_and_data_callback): New structure.
7975 (iterate_inline_only): New function.
7976 (iterate_over_all_matching_symtabs): New argument
7977 "include_inline". If nonzero, also call the callback for
7978 symbols representing inlined subroutines.
7979 (lookup_prefix_sym): Pass extra argument to the above.
7980 (find_function_symbols): Likewise.
7981 (add_matching_symbols_to_info): Likewise.
7982 * NEWS: Mention that GDB can now set breakpoints on inlined
7983 functions.
7984
7985 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7986
7987 * p-typeprint.c (pascal_type_print_method_args):
7988 Fix display of parameter of methods.
7989
7990 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7991
7992 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7993 Add missing prototype.
7994
7995 2012-03-16 Yao Qi <yao@codesourcery.com>
7996 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 Fix false compilation warning.
7999 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8000
8001 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8002 Pedro Alves <pedro@codesourcery.com>
8003
8004 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8005 (arm_register_g_packet_guesses): New function.
8006 (arm_gdbarch_init): Don't force a target description with
8007 registers when the executable is detected as M-profile. Instead
8008 set gdbarch->tdep->is_m. Register `g' packet guesses.
8009 (_initialize_arm_tdep): Initialize the new target description.
8010 * features/arm-with-m-fpa-layout.xml: New description.
8011 * features/arm-with-m-fpa-layout.c: New, generated.
8012
8013 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8014
8015 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8016 Update function description.
8017 (insert_bp_location): Do not wipe bl->target_info out.
8018 * mem-break.c: #include "gdb_string.h".
8019 (default_memory_insert_breakpoint): Do not call target_read_memory
8020 with a pointer to the breakpoint's shadow_contents buffer. Use
8021 a local buffer instead.
8022 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8023
8024 2012-03-15 Tom Tromey <tromey@redhat.com>
8025
8026 * NEWS: Mention "info vtbl", not "info vtable".
8027 * cp-support.c (info_vtbl_command): Fix comment.
8028 (_initialize_cp_support): Fix text.
8029
8030 2012-03-15 Tom Tromey <tromey@redhat.com>
8031
8032 * cp-valprint.c (cp_print_value_fields): Use
8033 print_function_pointer_address for vtable slot.
8034
8035 2012-03-15 Tom Tromey <tromey@redhat.com>
8036
8037 * gnu-v3-abi.c (struct value_and_voffset): New.
8038 (hash_value_and_voffset, eq_value_and_voffset)
8039 (compare_value_and_voffset, compute_vtable_size)
8040 (print_one_vtable, gnuv3_print_vtable): New functions.
8041 (init_gnuv3_ops): Initialize 'print_vtable' field.
8042 * cp-support.c (info_vtbl_command): New function.
8043 (_initialize_cp_support): Add "info vtbl".
8044 * cp-abi.h (cplus_print_vtable): Declare.
8045 (struct cp_abi_ops) <print_vtable>: New field.
8046 * cp-abi.c (cplus_print_vtable): New function.
8047 * NEWS: Update.
8048
8049 2012-03-15 Tom Tromey <tromey@redhat.com>
8050
8051 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8052 iterate_over_symbols.
8053
8054 2012-03-14 Doug Evans <dje@google.com>
8055
8056 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8057 DW_OP_GNU_parameter_ref.
8058
8059 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8060
8061 Fix double prompt of 'interpreter-exec mi'.
8062 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8063 (mi_interpreter_resume): use it.
8064 (mi_execute_command_input_handler): New function.
8065 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8066 mi_execute_command_input_handler.
8067
8068 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8069
8070 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8071 prototype.
8072 (darwin_debug_port_info): Make static.
8073 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8074 * machoread.c (_initialize_machoread): Add prototype.
8075 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8076 (i386_darwin_set_control, i386_darwin_get_control)
8077 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8078 i386_darwin_get_status, i386_darwin_get_control):
8079 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8080
8081 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8082
8083 * ax-gdb.c (gen_usual_unary): Remove special handling of
8084 enum and bool types.
8085
8086 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8087
8088 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8089
8090 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8091
8092 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8093
8094 2012-03-13 Chris January <chris.january@allinea.com>
8095
8096 * aix-thread.c (fill_sprs): Store the floating point registers
8097 at the correct offsets into vals.
8098
8099 2012-03-13 Doug Evans <dje@google.com>
8100
8101 * NEWS: Mention symbol-reloading has been deleted.
8102 * symfile.c (symbol_reloading): Delete.
8103 (show_symbol_reloading): Delete.
8104 (_initialize_symfile): Delete set/show symbol-reloading.
8105
8106 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8107 read_in_chain until we have successfully read it in.
8108 (load_full_comp_unit): Ditto.
8109 (read_signatured_type): Add comment.
8110
8111 2012-03-13 Chris January <chris.january@allinea.com>
8112
8113 * stabsread.c (fix_common_block): Change type of valu argument
8114 to CORE_ADDR.
8115
8116 2012-03-13 Chris January <chris.january@allinea.com>
8117
8118 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8119 instruction.
8120
8121 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8122
8123 * common/linux-procfs.c (linux_proc_get_int): New, from
8124 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8125 field.
8126 (linux_proc_get_tgid): Only call linux_proc_get_int.
8127 (linux_proc_get_tracerpid): New.
8128 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8129 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8130 linux_proc_pid_has_state.
8131 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8132 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8133 (linux_ptrace_attach_warnings): New.
8134 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8135 New declaration.
8136 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8137 (linux_nat_attach): New variables ex, buffer, message and message_s.
8138 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8139
8140 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8141
8142 * Makefile.in (linux-ptrace.o): New.
8143 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8144 from linux-nat.c.
8145 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8146 * common/linux-ptrace.c: New file.
8147 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8148 * config/arm/linux.mh: Likewise.
8149 * config/i386/linux.mh: Likewise.
8150 * config/i386/linux64.mh: Likewise.
8151 * config/ia64/linux.mh: Likewise.
8152 * config/m32r/linux.mh: Likewise.
8153 * config/m68k/linux.mh: Likewise.
8154 * config/mips/linux.mh: Likewise.
8155 * config/pa/linux.mh: Likewise.
8156 * config/powerpc/linux.mh: Likewise.
8157 * config/powerpc/ppc64-linux.mh: Likewise.
8158 * config/powerpc/spu-linux.mh: Likewise.
8159 * config/s390/s390.mh: Likewise.
8160 * config/sparc/linux.mh: Likewise.
8161 * config/sparc/linux64.mh: Likewise.
8162 * config/xtensa/linux.mh: Likewise.
8163 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8164 common/linux-procfs.c.
8165 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8166
8167 2012-03-13 Hui Zhu <teawater@gmail.com>
8168 Pedro Alves <palves@redhat.com>
8169
8170 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8171 CREATE_BREAKPOINT_FLAGS_INSERTED.
8172 (create_breakpoint_sal, create_breakpoints_sal)
8173 (base_breakpoint_create_breakpoints_sal)
8174 (tracepoint_create_breakpoints_sal)
8175 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8176 down.
8177 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8178 (ftrace_command, strace_command): Adjust.
8179 (create_tracepoint_from_upload): Pass
8180 CREATE_BREAKPOINT_FLAGS_INSERTED.
8181 * breakpoint.h (enum breakpoint_create_flags): New.
8182 (create_breakpoint): New flags parameter.
8183 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8184 * python/py-breakpoint.c (bppy_init): Adjust.
8185 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8186 * spu-tdep.c (spu_catch_start): Adjust.
8187
8188 2012-03-13 Pedro Alves <palves@redhat.com>
8189 Hui Zhu <teawater@gmail.com>
8190 Yao Qi <yao@codesourcery.com>
8191
8192 * remote.c (struct remote_state): New field `starting_up'.
8193 (remote_start_remote): Set and clear it.
8194 (remote_can_download_tracepoint): If starting up, return false.
8195
8196 2012-03-13 Yao Qi <yao@codesourcery.com>
8197
8198 * inferior.h (struct inferior): Remove fields any_syscall_count,
8199 syscalls_counts and total_syscalls_count. Move them to new
8200 struct catch_syscall_inferior_data in breakpoint.c.
8201 * breakpoint.c: Call DEF_VEC_I(int).
8202 (struct catch_syscall_inferior_data): New.
8203 (get_catch_syscall_inferior_data): New.
8204 (catch_syscall_inferior_data_cleanup): New.
8205 (insert_catch_syscall): Update to access data in
8206 struct catch_syscall_inferior_data.
8207 (insert_catch_syscall): Likewise.
8208 (remove_catch_syscall): Likewise.
8209 (remove_catch_syscall): Likewise.
8210 (is_syscall_catchpoint_enabled): Likewise.
8211 (add_catch_command): Likewise.
8212 (_initialize_breakpoint): Register cleanup.
8213 * breakpoint.h: Removed DEF_VEC_I(int).
8214 * dwarf2loc.c: Call DEF_VEC_I(int).
8215 * mi/mi-main.c: Likewise.
8216
8217 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8218
8219 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8220
8221 2012-03-12 Chris January <chris.january@allinea.com>
8222
8223 * aix-thread.c (_initialize_aix_thread): Add prototype.
8224 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8225 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8226
8227 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8228
8229 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8230 include of "amd64-nat.h".
8231
8232 2012-03-12 Tom Tromey <tromey@redhat.com>
8233
8234 * buildsym.c (record_pending_block): Now static.
8235 * buildsym.h: (record_pending_block): Remove.
8236
8237 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8238
8239 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8240
8241 2012-03-09 Tom Tromey <tromey@redhat.com>
8242
8243 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8244 producer_is_gxx_lt_4_6>: New fields.
8245 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8246
8247 2012-03-09 Tom Tromey <tromey@redhat.com>
8248
8249 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8250
8251 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8252
8253 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8254 prototype.
8255
8256 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8257
8258 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8259
8260 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8261
8262 Fix -Wmissing-prototypes build.
8263 * arm-linux-nat.c (get_thread_id): Make it static.
8264 * xtensa-linux-nat.c (get_thread_id): Likewise.
8265
8266 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8267
8268 * server.c (process_point_options): If a conditional expression
8269 is found, only print a message if remote_debug is nonzero.
8270
8271 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8272
8273 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8274 of internal error for unknown/unsupported types.
8275
8276 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8277
8278 Fix CU relative vs. absolute DIE offsets.
8279 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8280 offset to offset_in_cu.
8281 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8282 TYPE_OFFSET.
8283 (dwarf2_fetch_die_location_block): Rename parameter offset to
8284 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8285
8286 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8287
8288 * libunwind-frame.c: Rename to ...
8289 * ia64-libunwind-tdep.c: ... here.
8290 * libunwind-frame.h: Rename to ...
8291 * ia64-libunwind-tdep.h: ... here.
8292 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8293 ia64-libunwind-tdep.h.
8294 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8295 * README (--with-libunwind): Rename to ...
8296 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8297 * config.in: Regenerate.
8298 * configure: Regenerate.
8299 * configure.ac: New option --with-libunwind-ia64, make the
8300 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8301 Remove AC_DEFINE for HAVE_LIBUNWIND.
8302 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8303 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8304 Rename libunwind-frame in the general comment.
8305 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8306 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8307 Move forward declarations inside #ifndef. Rename libunwind-frame in
8308 the general comment.
8309 * ia64-tdep.c: Rename libunwind-frame.h #include to
8310 ia64-libunwind-tdep.h.
8311 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8312 (ia64_libunwind_descr): Rename libunwind-frame to
8313 ia64-libunwind-tdep in these function comments.
8314 * ia64-tdep.h: Rename libunwind-frame.h #include to
8315 ia64-libunwind-tdep.h.
8316 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8317 ia64-libunwind-tdep in that data comment.
8318
8319 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8320
8321 * libunwind-frame.h (struct frame_unwind): New declaration.
8322
8323 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8324
8325 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8326 "set breakpoint condition-evaluation" command.
8327
8328 2012-03-08 Tristan Gingold <gingold@adacore.com>
8329
8330 * sparc-stub.c: Move to stubs/
8331 * sh-stub.c: Likewise.
8332 * m68k-stub.c: Likewise.
8333 * m32r-stub.c: Likewise.
8334 * i386-stub.c: Likewise.
8335
8336 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8337
8338 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8339 linux_get_siginfo_type.
8340
8341 * m68klinux-nat.c: Include "gdb_proc_service.h".
8342 (PTRACE_GET_THREAD_AREA): Define.
8343 (ps_get_thread_area): New function.
8344
8345 2012-03-08 Yao Qi <yao@codesourcery.com>
8346
8347 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8348 `xsnprintf'.
8349 (remote_query_attached): Likewise.
8350 (remote_static_tracepoint_marker_at): Likewise.
8351 (remote_set_permissions): Likewise.
8352 (remote_detach_1, extended_remote_attach_1): Likewise.
8353 (send_g_packet, remote_vkill): Likewise.
8354 (extended_remote_disable_randomization): Likewise.
8355 (remote_add_target_side_condition): Likewise.
8356 (remote_insert_breakpoint): Likewise.
8357 (remote_remove_breakpoint): Likewise.
8358 (remote_insert_watchpoint): Likewise.
8359 (remote_remove_watchpoint): Likewise.
8360 (remote_insert_hw_breakpoint): Likewise.
8361 (remote_insert_hw_breakpoint): Likewise.
8362 (remote_remove_hw_breakpoint): Likewise.
8363 (remote_download_command_source): Likewise.
8364 (remote_download_tracepoint): Likewise.
8365 (remote_download_trace_state_variable): Likewise.
8366 (remote_disable_tracepoint): Likewise.
8367 (remote_trace_set_readonly_regions): Likewise.
8368 (remote_get_tracepoint_status): Likewise.
8369 (remote_trace_find): Likewise.
8370 (remote_get_trace_state_variable_value): Likewise.
8371 (remote_set_disconnected_tracing): Likewise.
8372 (remote_set_circular_trace_buffer): Likewise.
8373 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8374 (remote_use_agent): Likewise.
8375 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8376 Update callers.
8377
8378 2012-03-07 Pedro Alves <palves@redhat.com>
8379
8380 * NEWS: Mention QProgramSignals.
8381 * inferior.h (update_signals_program_target): Declare.
8382 * infrun.c: (update_signals_program_target): New.
8383 (handle_command): Update the target of the new program signals
8384 array changes.
8385 * remote.c (PACKET_QProgramSignals): New enum.
8386 (last_program_signals_packet): New global.
8387 (remote_program_signals): New.
8388 (remote_start_remote): Update the target with the program signals
8389 list.
8390 (remote_protocol_features): Add entry for QPassSignals.
8391 (remote_open_1): Free anc clear last_program_signals_packet.
8392 (init_remote_ops): Install remote_program_signals.
8393 * target.c (update_current_target): Adjust.
8394 (target_program_signals): New.
8395 * target.h (struct target_ops) <to_program_signals>: New field.
8396 (target_program_signals): Declare.
8397
8398 2012-03-07 Pedro Alves <palves@redhat.com>
8399
8400 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8401 extensions.
8402
8403 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8404
8405 * m68klinux-nat.c (getregs_supplies): Make static.
8406 (getfpregs_supplies): Likewise.
8407 (have_ptrace_getregs): Likewise.
8408
8409 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8410
8411 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8412 in call to get_die_type_at_offset.
8413
8414 2012-03-06 Stan Shebs <stan@codesourcery.com>
8415
8416 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8417 * mi/mi-cmd-disas.c: Ditto.
8418 * mi/mi-cmd-env.c: Ditto.
8419 * mi/mi-cmd-file.c: Ditto.
8420 * mi/mi-cmd-stack.c: Ditto.
8421 * mi/mi-cmd-target.c: Ditto.
8422 * mi/mi-cmd-var.c: Ditto.
8423 * mi/mi-cmds.c: Ditto.
8424 * mi/mi-cmds.h: Ditto.
8425 * mi/mi-console.c: Ditto.
8426 * mi/mi-getopt.c: Ditto.
8427 * mi/mi-getopt.h: Ditto.
8428 * mi/mi-interp.c: Ditto.
8429 * mi/mi-main.c: Ditto.
8430 * mi/mi-out.c: Ditto.
8431 * mi/mi-parse.c: Ditto.
8432 * mi/mi-parse.h: Ditto.
8433 * mi/mi-symbol-cmds.c: Ditto.
8434
8435 * mi/mi-getopt.h: Move mi_opt struct up.
8436 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8437 return.
8438 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8439
8440 2012-03-06 Tom Tromey <tromey@redhat.com>
8441
8442 * proc-service.c (ps_pglobal_lookup): Set the current program
8443 space.
8444
8445 2012-03-06 Pedro Alves <palves@redhat.com>
8446
8447 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8448
8449 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8450
8451 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8452
8453 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8454
8455 Code cleanup.
8456 * common/linux-osdata.c (linux_common_core_of_thread): New function
8457 comment.
8458 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8459 call by linux_common_core_of_thread.
8460 (linux_nat_core_of_thread_1): Remove.
8461 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8462 * linux-thread-db.c: Include linux-osdata.h.
8463 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8464 linux_common_core_of_thread.
8465
8466 2012-03-05 Tom Tromey <tromey@redhat.com>
8467
8468 * value.c (value_primitive_field): Don't fetch contents for
8469 non-virtual bases.
8470
8471 2012-03-05 Tom Tromey <tromey@redhat.com>
8472
8473 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8474
8475 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8476
8477 * s390-nat.c: Include "gregset.h".
8478
8479 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8480
8481 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8482 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8483 (libunwind_load): New variable so_error, use it for dlerror. Try to
8484 load also LIBUNWIND_SO_7.
8485
8486 2012-03-05 Pedro Alves <palves@redhat.com>
8487
8488 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8489 is not NULL, and remove resulting dead code.
8490
8491 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8492
8493 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8494 prologue to sh_analyze_prologue.
8495 (sh_analyze_prologue): Make better use of such an upper limit, and
8496 generally be more cautious about accessing memory.
8497
8498 2012-03-05 Tom Tromey <tromey@redhat.com>
8499
8500 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8501 _initialize_ia64_hpux_tdep.
8502
8503 2012-03-05 Pedro Alves <palves@redhat.com>
8504
8505 PR gdb/13766
8506
8507 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8508 the register state is clear, supply explicit zero, instead of
8509 marking the register unavailable.
8510
8511 2012-03-05 Tristan Gingold <gingold@adacore.com>
8512
8513 * NEWS: Mention OpenVMS ia64 new target.
8514
8515 2012-03-05 Tristan Gingold <gingold@adacore.com>
8516
8517 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8518 (ia64_unw_accessors, ia64_unw_rse_accessors)
8519 (ia64_libunwind_descr): Declare.
8520 * ia64-vms-tdep.c: New file.
8521 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8522 (ia64_libunwind_descr): Make them public.
8523 * configure.tgt: Add ia64-*-*vms*.
8524 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8525 (ALLDEPFILES): Add ia64-vms-tdep.c
8526
8527 2012-03-05 Tristan Gingold <gingold@adacore.com>
8528
8529 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8530 * remote.c (PACKET_qXfer_uib): New enum value.
8531 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8532 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8533 (_initialize_remote): Call add_packet_config_cmd for
8534 xfer:uib packet.
8535
8536 2012-03-05 Tristan Gingold <gingold@adacore.com>
8537
8538 * osabi.c (gdb_osabi_names): Add OpenVMS.
8539 (generic_elf_osabi_sniffer): Likewise.
8540 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8541
8542 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 Removed unused code.
8545 * libunwind-frame.c (libunwind_frame_unwind)
8546 (libunwind_frame_base_address): Remove.
8547 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8548
8549 2012-03-04 Yao Qi <yao@codesourcery.com>
8550
8551 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8552 remove trailing new line.
8553 (agent_run_command, agent_run_command): Add _ markup.
8554 (agent_capability_check): Likewise.
8555
8556 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8557
8558 * breakpoint.c (set_condition_evaluation_mode): Set
8559 CONDITION_EVALUATION_MODE unconditionally.
8560
8561 2012-03-03 Yao Qi <yao@codesourcery.com>
8562
8563 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8564 * common/agent.h: Update declaration.
8565 * inf-child.c (inf_child_use_agent): New.
8566 (inf_child_can_use_agent): New.
8567 (inf_child_target): Initialize fields `to_use_agent'
8568 and `to_can_use_agent'.
8569 * agent.c (agent_new_objfile): New.
8570 (_initialize_agent): Add agent_new_objfile to new_objfile
8571 observer.
8572
8573 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8574 New.
8575 (linux_target_install_ops): Initialize field
8576 `to_static_tracepoint_markers_by_strid'.
8577 * remote.c (free_current_marker): Move it to ...
8578 * tracepoint.c (free_current_marker): ... here. New.
8579 (cleanup_target_stop): New.
8580 * tracepoint.h: Declare free_current_marker.
8581 * NEWS: Add one entry about `info static-tracepoint-marker'.
8582
8583 2012-03-03 Yao Qi <yao@codesourcery.com>
8584
8585 * common/agent.c (agent_loaded_p): New.
8586 (agent_look_up_symbols): New global.
8587 * common/agent.h: Declare agent_loaded_p.
8588
8589 2012-03-03 Yao Qi <yao@codesourcery.com>
8590
8591 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8592 (agent_capability_check, agent_capability_invalidate): New.
8593 (symbol_list): New array element.
8594 * common/agent.h (enum agent_capa): New.
8595 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8596
8597 2012-03-03 Yao Qi <yao@codesourcery.com>
8598
8599 * target.h (struct target_ops) <to_use_agent>: New field.
8600 (struct target_ops) <to_can_use_agent>: New field.
8601 (target_use_agent, target_can_use_agent): New macro.
8602 * target.c (update_current_target): Update.
8603 * remote.c: New enum `PACKET_QAgent'.
8604 (remote_protocol_features): Add a new element.
8605 (remote_use_agent, remote_can_use_agent): New.
8606 (init_remote_ops): Initialize field `can_use_agent' with
8607 remote_can_use_agent. Intiailize field `use_agent' with
8608 remote_use_agent.
8609 * common/agent.c (use_agent): New global.
8610 * common/agent.h: Declare it.
8611 * tracepoint.c (info_static_tracepoint_markers_command): Add
8612 comment.
8613 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8614 (COMMON_OBS): Add common/agent.o and agent.o
8615 (common-agent.o): New rule.
8616 * agent.c: New.
8617
8618 2012-03-03 Yao Qi <yao@codesourcery.com>
8619
8620 * common/agent.c: New.
8621 * common/agent.h: New.
8622 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8623 AC_CHECK_HEADERS.
8624 * configure, configh.in: Regenerated.
8625
8626 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8627
8628 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8629 unless it exists for this architecture.
8630
8631 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8632
8633 * language.h (struct language_defn): New "method" la_read_var_value.
8634 * findvar.c: #include "language.h".
8635 (default_read_var_value): Renames read_var_value. Rewrite
8636 function description.
8637 (read_var_value): New function.
8638 * value.h (default_read_var_value): Add prototype.
8639 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8640 New functions.
8641 (ada_language_defn): Add entry for la_read_var_value.
8642 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8643 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8644 language_defn structures to add entry for new la_read_var_value
8645 field.
8646
8647 2012-03-02 Tom Tromey <tromey@redhat.com>
8648 Pedro Alves <palves@redhat.com>
8649
8650 PR breakpoints/13776:
8651 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8652 breakpoints.
8653 (delete_longjmp_breakpoint_at_next_stop): New.
8654 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8655 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8656 before deleting the inferior. Add comments.
8657 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8658 breakpoints immediately, but only on next stop. Move that code
8659 next to where we mark other breakpoints for deletion.
8660
8661 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8662
8663 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8664 marker.
8665 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8666 violation.
8667
8668 2012-03-02 Pedro Alves <palves@redhat.com>
8669
8670 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8671
8672 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8673
8674 Fix -Wmissing-prototypes build.
8675 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8676 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8677 (gdbsim_has_memory): Likewise.
8678
8679 2012-03-02 Yao Qi <yao@codesourcery.com>
8680
8681 Fix -Wmissing-prototypes build.
8682 * charset.c (phony_iconv_open): Make static.
8683 (phony_iconv_close, phony_iconv): Likewise.
8684 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8685 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8686 prototype.
8687 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8688 * ser-mingw.c (create_select_thread): Make static.
8689 * windows-termcap.c (tgetent): New prototype.
8690 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8691
8692 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8693
8694 Fix -Wmissing-prototypes build.
8695 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8696 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8697 (_initialize_loadable): New prototypes.
8698
8699 2012-03-02 Doug Evans <dje@google.com>
8700
8701 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8702 abbrev table, read_comp_unit will do it.
8703
8704 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8705
8706 Fix -Wmissing-prototypes build.
8707 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8708 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8709 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8710 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8711 (_initialize_arm_symbian_tdep): New prototype.
8712 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8713 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8714 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8715 static.
8716 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8717 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8718 prototype.
8719 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8720 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8721 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8722 static.
8723 * moxie-tdep.c (moxie_process_record): Likewise.
8724 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8725 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8726 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8727 (_initialize_rl78_tdep): New prototype.
8728 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8729 (_initialize_rx_tdep): New prototype.
8730 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8731 (_initialize_darwin_solib): New prototype.
8732 * solib-spu.c: Include solib-spu.h.
8733 (_initialize_spu_solib): New prototype.
8734 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8735 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8736 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8737 (tic6x_software_single_step): Make it static.
8738 (_initialize_tic6x_tdep): New prototype.
8739
8740 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 Fix -Wmissing-prototypes build.
8743 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8744 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8745
8746 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 Fix -Wmissing-prototypes build.
8749 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8750 (frv_have_stopped_data_address): Remove.
8751
8752 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 Fix -Wmissing-prototypes build.
8755 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8756 * sh-tdep.c: Include sh64-tdep.h.
8757 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8758 * sh64-tdep.c: Include sh64-tdep.h.
8759 * sh64-tdep.h: New file.
8760
8761 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8762
8763 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8764
8765 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8766
8767 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8768 sp_regnum once the gdbarch_init_osabi hook has been called.
8769
8770 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8771
8772 * mips-tdep.c (mips32_bc1_pc): New function.
8773 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8774 BPOSGE32 and BPOSGE64 instructions.
8775 (deal_with_atomic_sequence): Likewise.
8776 (mips32_instruction_has_delay_slot): Likewise.
8777
8778 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8779 Chris Dearman <chris@mips.com>
8780 Maciej W. Rozycki <macro@codesourcery.com>
8781 Joseph Myers <joseph@codesourcery.com>
8782
8783 * features/mips-dsp.xml: New file.
8784 * features/mips64-dsp.xml: New file.
8785 * features/mips-dsp-linux.xml: New file.
8786 * features/mips64-dsp-linux.xml: New file.
8787 * features/Makefile (WHICH): Add mips-dsp-linux and
8788 mips64-dsp-linux.
8789 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8790 * features/mips-dsp-linux.c: New file.
8791 * features/mips64-dsp-linux.c: New file.
8792 * regformats/mips-dsp-linux.dat: New file.
8793 * regformats/mips64-dsp-linux.dat: New file.
8794 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8795 registers.
8796 (mips64_linux_register_addr): Likewise.
8797 (mips64_linux_regsets_fetch_registers): Likewise.
8798 (mips64_linux_regsets_store_registers): Likewise.
8799 (mips64_linux_fetch_registers): Update call to
8800 mips64_linux_regsets_fetch_registers.
8801 (mips64_linux_store_registers): Update call to
8802 mips64_linux_regsets_store_registers.
8803 (mips_linux_read_description): Probe for DSP registers.
8804 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8805 and initialize_tdesc_mips64_dsp_linux.
8806 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8807 Remove padding of no longer used embedded register slots.
8808 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8809 (MIPS_RESTART_REGNUM): Redefine enum value.
8810 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8811 strings.
8812 (mips_tx39_reg_names): Likewise.
8813 (mips_linux_reg_names): New array of register names for Linux
8814 targets.
8815 (mips_register_name): Check for a null pointer in
8816 mips_processor_reg_names and return an empty string.
8817 (mips_register_type): Exclude embedded registers for the IRIX
8818 and Linux ABIs.
8819 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8820 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8821 DSP registers.
8822 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8823 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8824 (mips_gdbarch_init): Likewise. Initialize internal register
8825 indices for the Linux ABI. Use dynamic numbers to refer to
8826 registers, as applicable, while parsing the target description.
8827 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8828
8829 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8830
8831 * frame.h (read_frame_register_unsigned): Fix typo in function
8832 description.
8833
8834 2012-03-01 Pedro Alves <palves@redhat.com>
8835
8836 * jit-reader.in [!__cplusplus]
8837 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8838
8839 2012-03-01 Pedro Alves <palves@redhat.com>
8840
8841 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8842 * configure: Regenerate.
8843
8844 2012-03-01 Pedro Alves <palves@redhat.com>
8845
8846 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8847 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8848 (ftrace_command, strace_command): Make static.
8849 * d-lang.c (_initialize_d_language): Declare.
8850 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8851 * dwarf2loc.c (_initialize_dwarf2loc):
8852 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8853 * exec.c (exec_get_section_table): Make static.
8854 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8855 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8856 * inferior.c (remove_inferior_command, add_inferior_command)
8857 (clone_inferior_command): Make static.
8858 * linux-nat.c (linux_nat_thread_address_space)
8859 (linux_nat_core_of_thread): Make static.
8860 * linux-tdep.c (_initialize_linux_tdep): Declare.
8861 * objc-lang.c (_initialize_objc_lang): Declare.
8862 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8863 Make static.
8864 (_initialize_opencl_language): Declare.
8865 * record.c (_initialize_record): Declare.
8866 * remote.c (demand_private_info, remote_get_tib_address)
8867 (remote_supports_cond_tracepoints)
8868 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8869 Make static.
8870 * skip.c (_initialize_step_skip): Declare.
8871 * symtab.c (skip_prologue_using_lineinfo): Make static.
8872 * tracepoint.c (delete_trace_state_variable)
8873 (trace_variable_command, delete_trace_variable_command)
8874 (get_uploaded_tsv, find_matching_tracepoint_location)
8875 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8876 Make static.
8877 * value.c (pack_unsigned_long): Make static.
8878 * varobj.c (varobj_ensure_python_env): Make static.
8879 * windows-tdep.c (_initialize_windows_tdep): Declare.
8880 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8881
8882 2012-03-01 Pedro Alves <palves@redhat.com>
8883
8884 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8885 gdbarch parameter.
8886 (linux_init_abi): Install it as has_shared_address_space gdbarch
8887 callback.
8888
8889 2012-03-01 Pedro Alves <palves@redhat.com>
8890
8891 * observer.c (observer_test_first_notification_function)
8892 (observer_test_second_notification_function)
8893 (observer_test_third_notification_function): Add declarations.
8894
8895 2012-03-01 Pedro Alves <palves@redhat.com>
8896
8897 * common/signals.c (default_target_signal_to_host)
8898 (default_target_signal_from_host): Move ...
8899 * arch-utils.c: ... here.
8900 * arch-utils.h (default_target_signal_to_host)
8901 (default_target_signal_from_host): Declare.
8902
8903 * common/signals.c (target_signal_from_command): Move ...
8904 * infrun.c: ... here.
8905 * inferior.h (target_signal_from_command): Declare.
8906 * target.h (target_signal_from_command)
8907 (default_target_signal_from_host, default_target_signal_to_host):
8908 Delete declarations.
8909
8910 * common/signals.c (_initialize_signals): Delete.
8911
8912 2012-03-01 Pedro Alves <palves@redhat.com>
8913
8914 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8915 both __cplusplus and !__cplusplus.
8916
8917 2012-03-01 Pedro Alves <palves@redhat.com>
8918
8919 * psymtab.c (find_and_open_source): Delete declaration.
8920 * source.c (find_and_open_source): Move comment ...
8921 * source.h (find_and_open_source): ... to this new declaration.
8922
8923 2012-03-01 Pedro Alves <palves@redhat.com>
8924
8925 * inline-frame.c: Include inline-frame.h.
8926
8927 2012-03-01 Pedro Alves <palves@redhat.com>
8928
8929 * tui/tui-data.c (set_gen_win_origin): Delete.
8930 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8931 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8932
8933 2012-03-01 Pedro Alves <palves@redhat.com>
8934
8935 * remote.c (encode_actions): Delete declaration.
8936 * tracepoint.c (encode_actions): Make extern.
8937 * tracepoint.h (encode_actions): Declare.
8938
8939 2012-03-01 Pedro Alves <palves@redhat.com>
8940
8941 * python/py-breakpoint.c: Include python.h.
8942 * python/py-continueevent.c (create_continue_event_object): Make
8943 static.
8944 * python/py-lazy-string.c (stpy_get_type): Make static.
8945 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8946 Make static.
8947 * python/py-utils.c (unicode_to_target_python_string): Make
8948 static.
8949 * python/py-value.c: Include python.h.
8950
8951 2012-03-01 Pedro Alves <palves@redhat.com>
8952
8953 * inferior.c (delete_threads_of_inferior): Delete.
8954
8955 2012-03-01 Pedro Alves <palves@redhat.com>
8956
8957 Import fallback definitions from glibc.
8958
8959 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8960 ps_prochandle): Forward declare.
8961 (ps_err_e): Use glibc's comments.
8962 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8963 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8964 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8965 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8966 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8967 (struct ps_prochandle): Adjust comment.
8968
8969 2012-03-01 Pedro Alves <palves@redhat.com>
8970
8971 * ada-lang.c (ada_modulus_from_name): Delete.
8972 * ada-lex.l (lexer_init): Make static.
8973
8974 2012-03-01 Pedro Alves <palves@redhat.com>
8975
8976 PR gdb/13767
8977
8978 * frame.c (read_frame_register_unsigned): New.
8979 * frame.h (read_frame_register_unsigned): Declare.
8980 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8981 Handle it.
8982 (print_i387_control_word): New parameter `control_p'. Handle it.
8983 (i387_print_float_info): Handle unavailable float registers.
8984
8985 2012-03-01 Keith Seitz <keiths@redhat.com>
8986
8987 * linespec.c (decode_line_2): Sort the list of methods
8988 alphabetically before presenting the user with a selection
8989 menu.
8990
8991 2012-03-01 Doug Evans <dje@google.com>
8992
8993 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8994 has_namespace_info.
8995 (dwarf2_read_abbrevs): Remove corresponding initialization.
8996
8997 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8998
8999 * NEWS: Mention new python command class gdb.COMMAND_USER.
9000 * cli/cli-cmds.c (show_user): Print error when used on a python
9001 command.
9002 (init_cli_cmds): Update documentation strings for "show user" and
9003 "set/show max-user-call-depth" to clarify that it does not apply to
9004 python commands.
9005 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9006 error check.
9007 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9008 gdb python api.
9009 * top.c (execute_command): Only execute a user-defined command as a
9010 legacy macro if c->user_commands is set.
9011
9012 2012-03-01 Tom Tromey <tromey@redhat.com>
9013
9014 * valprint.h (struct generic_val_print_decorations): New.
9015 (generic_val_print): Declare.
9016 * valprint.c (generic_val_print): New function.
9017 * p-valprint.c (p_decorations): New global.
9018 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9019 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9020 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9021 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9022 * m2-valprint.c (m2_decorations): New global.
9023 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9024 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9025 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9026 TYPE_CODE_ERROR>: Call generic_val_print.
9027 * f-valprint.c (f_decorations): New global.
9028 (f_val_print): Use print_function_pointer_address.
9029 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9030 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9031 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9032 generic_val_print.
9033 * c-valprint.c (c_decorations): New global.
9034 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9035 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9036 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9037 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9038 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9039 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9040 case.
9041
9042 2012-03-01 Tom Tromey <tromey@redhat.com>
9043
9044 * valprint.c (val_print): Update.
9045 * p-valprint (pascal_val_print): Return void.
9046 * p-lang.h (pascal_val_print): Return void.
9047 * m2-valprint.c (m2_val_print): Return void.
9048 * m2-lang.h (m2_val_print): Return void.
9049 * language.h (struct language_defn) <la_val_print>: Return void.
9050 * language.c (unk_lang_val_print): Return void.
9051 * jv-valprint.c (java_val_print): Return void.
9052 * jv-lang.h (java_val_print): Return void.
9053 * f-valprint.c (f_val_print): Return void.
9054 * f-lang.h (f_val_print): Return void.
9055 * d-valprint.c (d_val_print): Return void.
9056 (dynamic_array_type): Update.
9057 * d-lang.h (d_val_print): Return void.
9058 * c-valprint.c (c_val_print): Return void.
9059 * c-lang.h (c_val_print): Return void.
9060 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9061 void.
9062 * ada-lang.h (ada_val_print): Return void.
9063
9064 2012-03-01 Tom Tromey <tromey@redhat.com>
9065
9066 * value.h (val_print): Return void.
9067 * valprint.c (val_print): Return void.
9068
9069 2012-03-01 Tom Tromey <tromey@redhat.com>
9070
9071 * value.h (common_val_print): Return void.
9072 * valprint.c (common_val_print): Return void.
9073
9074 2012-03-01 Tom Tromey <tromey@redhat.com>
9075
9076 * value.h (value_print): Return void.
9077 * valprint.c (value_print): Return void.
9078 * p-valprint.c (pascal_value_print): Return void.
9079 * p-lang.h (pascal_value_print): Return void.
9080 * language.h (struct language_defn) <la_value_print>: Return
9081 void.
9082 * language.c (unk_lang_value_print): Return void.
9083 * jv-valprint.c (java_value_print): Return void.
9084 * jv-lang.h (java_value_print): Return void.
9085 * f-valprint.c (c_value_print): Don't declare.
9086 Include c-lang.h.
9087 * c-valprint.c (c_value_print): Return void.
9088 * c-lang.h (c_value_print): Return void.
9089 * ada-valprint.c (ada_value_print): Return void.
9090 * ada-lang.h (ada_value_print): Return void.
9091
9092 2012-03-01 Tom Tromey <tromey@redhat.com>
9093
9094 * value.c (value_primitive_field): Handle virtual base classes.
9095
9096 2012-03-01 Tom Tromey <tromey@redhat.com>
9097
9098 * gdbtypes.h (struct vbase): Remove.
9099
9100 2012-03-01 Tom Tromey <tromey@redhat.com>
9101
9102 * c-valprint.c (print_function_pointer_address): Move...
9103 * valprint.c: ... here. Make non-static.
9104 * m2-valprint.c (print_function_pointer_address): Remove.
9105 * valprint.h (print_function_pointer_address): Declare.
9106
9107 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9108
9109 * NEWS: Document the fact that one can provide a condition when
9110 creating an Ada exception catchpoint.
9111
9112 2012-03-01 Tom Tromey <tromey@redhat.com>
9113
9114 * valprint.c (val_print_type_code_flags): Fix placement of
9115 trailing brace.
9116
9117 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9118
9119 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9120 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9121 environment variable before calling update-copyright.
9122
9123 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9124
9125 * gnulib/extra/update-copyright: Update to the latest from
9126 gnulib's git repository.
9127 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9128 variable to 2 instead of 1.
9129
9130 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9131
9132 * varobj.c (c_value_of_variable): Remove dead code.
9133
9134 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9135
9136 * ada-lex.p (processId): Do not modify already encoded IDs.
9137 Update function documentation.
9138
9139 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9140
9141 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9142 "name" with "struct symbol *name_sym".
9143 * ada-exp.y (write_var_or_type): Update call to
9144 ada_find_renaming_symbol.
9145 "name" with "struct symbol *name_sym". Adjust Implementation
9146 accordingly. Adjust the function documentation.
9147
9148 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9149
9150 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9151 * ada-lang.c (ada_find_any_type): Add advance declaration.
9152 Make static. Replace ada_find_any_symbol by
9153 ada_find_any_type_symbol.
9154 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9155 Improve function description. Make static.
9156 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9157 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9158
9159 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9160
9161 * ada-lang.c (struct tag_args): Delete.
9162 (ada_get_tsd_type): Function body moved up in source file.
9163 (ada_tag_name_1, ada_tag_name_2): Delete.
9164 (ada_get_tsd_from_tag): New function.
9165 (ada_tag_name_from_tsd): New function.
9166 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9167 to determine the tag name.
9168
9169 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9170
9171 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9172 declaration.
9173 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9174 function.
9175
9176 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9177
9178 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9179
9180 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9181
9182 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9183 full searches.
9184
9185 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9186
9187 * ada-lang.c (constrained_packed_array_type): If there is a
9188 parallel XA type, use it to determine the array index type.
9189
9190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9191
9192 * ada-valprint.c (ada_val_print_1): If our value is a reference
9193 to an array descriptor, dereference it before converting it
9194 to a simple array.
9195
9196 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9197
9198 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9199 creating fixed value.
9200 (ada_value_ind, ada_coerce_ref, assign_component)
9201 (ada_evaluate_subexp): Remove call to unwrap_value before
9202 call to ada_to_fixed_value.
9203
9204 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9205
9206 * ada-lang.c (to_fixed_array_type): Set result's type name.
9207
9208 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9209
9210 * ada-lang.c (catch_ada_exception_command_split): Add new
9211 argument cond_string. Add support for condition at end of
9212 "catch exception" commands.
9213 (ada_decode_exception_location): Add new argument cond_string.
9214 Update call to catch_ada_exception_command_split.
9215 (create_ada_exception_catchpoint): Add new argument cond_string.
9216 Set the breakpoint condition if needed.
9217 (catch_ada_exception_command): Update call to
9218 ada_decode_exception_location.
9219 (ada_decode_assert_location): Add function documentation.
9220 Add support for condition at end of "catch assert" command.
9221 (catch_assert_command): Update calls to ada_decode_assert_location
9222 and create_ada_exception_catchpoint.
9223
9224 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9225
9226 Fix disp-step-syscall.exp: fork: single step over fork.
9227 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9228 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9229 comment, change parameters gdbarch and ptid to regcache. Remove
9230 parameter regcache, initialize gdbarch from regcache here.
9231 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9232 New functions.
9233 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9234 instead.
9235 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9236 'syscall'. Make the 'int' check more strict.
9237
9238 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9239
9240 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9241 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9242 (i386_linux_intx80_sysenter_syscall_record): ... here.
9243 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9244 Use the renamed function name.
9245
9246 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9249 * breakpoint.c (until_break_command): Likewise.
9250 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9251 * infcall.c (call_function_by_hand): Likewise.
9252 * infcmd.c (finish_forward): Likewise.
9253 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9254
9255 2012-02-28 Tristan Gingold <gingold@adacore.com>
9256
9257 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9258 avoid variable assignments inside condition.
9259
9260 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9261
9262 Fix static analysis issue found by cppcheck.
9263 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9264 uninitialized BUF for size 2.
9265
9266 2012-02-27 Chris Dearman <chris@mips.com>
9267 Nathan Froyd <froydnj@codesourcery.com>
9268 Maciej W. Rozycki <macro@codesourcery.com>
9269
9270 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9271 (mips16_instruction_has_delay_slot): Likewise.
9272 (mips_segment_boundary): Likewise.
9273 (mips_adjust_breakpoint_address): Likewise.
9274 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9275
9276 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9277 Maciej W. Rozycki <macro@codesourcery.com>
9278
9279 * infrun.c (handle_inferior_event): Don't proceed through
9280 shared library trampolines if stepping at the machine
9281 instruction level.
9282
9283 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9284
9285 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9286 too.
9287
9288 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9289
9290 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9291 (sh_stub_unwind_sniffer): New functions.
9292 (sh_stub_unwind): New variable.
9293 (sh_gdbarch_init): Wire everything.
9294
9295 2012-02-27 Pedro Alves <palves@redhat.com>
9296
9297 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9298 (linux_nat_post_attach_wait): Adjust to use
9299 linux_proc_pid_is_stopped.
9300 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9301 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9302 based on pid_is_stopped from both linux-nat.c and
9303 gdbserver/linux-low.c, and renamed.
9304
9305 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9306
9307 * remote.c (remote_watchpoint_addr_within_range): New function.
9308 (init_remote_ops): Use it.
9309
9310 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9311
9312 * target.h (target_watchpoint_addr_within_range): Document macro.
9313
9314 2012-02-24 Pedro Alves <palves@redhat.com>
9315
9316 * stack.c (set_last_displayed_sal): Issue internal_error instead
9317 of warning, and issue it after clearing the last displayed sal.
9318
9319 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9320 Pedro Alves <palves@redhat.com>
9321
9322 * breakpoint.c (until_break_command): Install breakpoints after
9323 all frame manipulations.
9324
9325 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9326
9327 * remote.c (remote_supports_cond_breakpoints): New forward
9328 declaration.
9329 (remote_add_target_side_condition): New function.
9330 (remote_insert_breakpoint): Add target-side breakpoint
9331 conditional if supported.
9332 (remote_insert_hw_breakpoint): Likewise.
9333 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9334 hook.
9335
9336 * target.c (update_current_target): Inherit
9337 to_supports_evaluation_of_breakpoint_conditions.
9338 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9339
9340 * target.h (struct target_ops)
9341 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9342 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9343
9344 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9345 (condition_evaluation_both, condition_evaluation_auto,
9346 condition_evaluation_host, condition_evaluation_target,
9347 condition_evaluation_enums, condition_evaluation_mode_1,
9348 condition_evaluation_mode): New static globals.
9349 (translate_condition_evaluation_mode): New function.
9350 (breakpoint_condition_evaluation_mode): New function.
9351 (gdb_evaluates_breakpoint_condition_p): New function.
9352 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9353 (mark_breakpoint_modified): New function.
9354 (mark_breakpoint_location_modified): New function.
9355 (set_condition_evaluation_mode): New function.
9356 (show_condition_evaluation_mode): New function.
9357 (bp_location_compare_addrs): New function.
9358 (get_first_location_gte_addr): New helper function.
9359 (set_breakpoint_condition): Free condition bytecode if locations
9360 has become unconditional. Call mark_breakpoint_modified (...).
9361 (condition_command): Call update_global_location_list (1) for
9362 breakpoints.
9363 (breakpoint_xfer_memory): Use is_breakpoint (...).
9364 (is_breakpoint): New function.
9365 (parse_cond_to_aexpr): New function.
9366 (build_target_condition_list): New function.
9367 (insert_bp_location): Handle target-side conditional
9368 breakpoints and call build_target_condition_list (...).
9369 (update_inserted_breakpoint_locations): New function.
9370 (insert_breakpoint_locations): Handle target-side conditional
9371 breakpoints.
9372 (bpstat_check_breakpoint_conditions): Add comment.
9373 (bp_condition_evaluator): New function.
9374 (bp_location_condition_evaluator): New function.
9375 (print_breakpoint_location): Print information on where the condition
9376 will be evaluated.
9377 (print_one_breakpoint_location): Likewise.
9378 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9379 breakpoint location.
9380 (force_breakpoint_reinsertion): New functions.
9381 (update_global_location_list): Handle target-side breakpoint
9382 conditions.
9383 Reinsert locations that are already inserted if conditions have
9384 changed.
9385 (bp_location_dtor): Free agent expression bytecode.
9386 (disable_breakpoint): Call mark_breakpoint_modified (...).
9387 Call update_global_location_list (...) with parameter 1 for breakpoints.
9388 (disable_command): Call mark_breakpoint_location_modified (...).
9389 Call update_global_location_list (...) with parameter 1 for breakpoints.
9390 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9391 (enable_command): mark_breakpoint_location_modified (...).
9392 (_initialize_breakpoint): Update documentation and add
9393 condition-evaluation breakpoint subcommand.
9394
9395 * breakpoint.h: Include ax.h.
9396 (condition_list): New data structure.
9397 (condition_status): New enum.
9398 (bp_target_info) <cond_list>: New field.
9399 (bp_location) <condition_changed, cond_bytecode>: New fields.
9400 (is_breakpoint): New prototype.
9401
9402 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9403
9404 * remote.c (remote_state) <cond_breakpoints>: New field.
9405 (PACKET_ConditionalBreakpoints): New enum.
9406 (remote_cond_breakpoint_feature): New function.
9407 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9408 (remote_supports_cond_breakpoints): New function.
9409 (_initialize_remote): Add new packet configuration for
9410 target-side conditional breakpoints.
9411
9412 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9413
9414 * NEWS: Mention target-side conditional breakpoint support,
9415 new condition-evaluation breakpoint subcommand and remote
9416 packet extensions.
9417
9418 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9419
9420 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9421 number.
9422
9423 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9424
9425 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9426 (after_prologue): Remove.
9427
9428 2012-02-23 Tom Tromey <tromey@redhat.com>
9429
9430 * jv-valprint.c (java_val_print): Remove dead code.
9431
9432 2012-02-23 Tristan Gingold <gingold@adacore.com>
9433
9434 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9435 known_tasks_element and known_tasks_length fields.
9436 (read_known_tasks_array): Change argument type. Use pointer type
9437 and number of elements from DATA. Adjust.
9438 (read_known_tasks_list): Likewise.
9439 (get_known_tasks_addr): Remove.
9440 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9441 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9442 type and array length. Merge former get_known_tasks_addr code.
9443
9444 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9445
9446 PR backtrace/13716
9447 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9448 it after set_momentary_breakpoint.
9449
9450 2012-02-22 Sterling Augustine <saugustine@google.com>
9451
9452 PR 13689:
9453 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9454
9455 2012-02-22 Gary Benson <gbenson@redhat.com>
9456
9457 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9458 (find_slot_in_mapped_hash): Likewise.
9459
9460 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9461
9462 PR build/13638
9463 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9464 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9465 * configure: Regenerate.
9466
9467 2012-02-21 Tristan Gingold <gingold@adacore.com>
9468 Pedro Alves <palves@redhat.com>
9469
9470 * ia64-tdep.c: Do not include libunwind-ia64.h.
9471 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9472 Include libunwind-ia64.h instead of libunwind.h.
9473 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9474 for libunwind.h existence.
9475 * configure, config.in: Regenerate.
9476
9477 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9478
9479 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9480 instead of value_rtti_target_type.
9481 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9482 instead of value_rtti_target_type.
9483 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9484 value_rtti_target_type.
9485 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9486 (value_rtti_target_type): Rename to ...
9487 (value_rtti_indirect_type): ... here and make it indirect. Update
9488 function comment.
9489 * value.c (readjust_indirect_value_type): New function.
9490 (coerce_ref): Support for enclosing type setting for references
9491 with readjust_indirect_value_type.
9492 * value.h (readjust_value_type): New declaration.
9493 (value_rtti_target_type): Rename to ...
9494 (value_rtti_indirect_type): ... here.
9495
9496 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9497
9498 * MAINTAINERS (Write After Approval): Add myself to the list.
9499
9500 2012-02-20 Doug Evans <dje@google.com>
9501
9502 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9503 Rename objfile_p_char parameter to objfilep.
9504 (build_objfile_section_table): Result is now void. All callers
9505 updated.
9506 * objfiles.h (struct objfile): Tweak comments, whitespace.
9507 (build_objfile_section_table): Update.
9508
9509 * elfread.c (elf_symfile_segments): Fix warning text.
9510
9511 2012-02-20 Tom Tromey <tromey@redhat.com>
9512
9513 PR gdb/13498:
9514 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9515 particular set of file names once.
9516 (dw2_map_symbol_filenames): Likewise.
9517
9518 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 Code cleanup.
9521 * main.c (write_files): Remove the declaration.
9522 (external_editor_command): Move the declaration ...
9523 [GDBTK] (external_editor_command): ... here. Fix the comment.
9524
9525 2012-02-20 Tom Tromey <tromey@redhat.com>
9526
9527 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9528 extraneous block.
9529
9530 2012-02-20 Tristan Gingold <gingold@adacore.com>
9531
9532 * darwin-nat.h (enum darwin_msg_state): Add comments.
9533
9534 2012-02-20 Tristan Gingold <gingold@adacore.com>
9535
9536 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9537 value.
9538
9539 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9540
9541 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9542 between function description and implementation.
9543
9544 2012-02-17 Tom Tromey <tromey@redhat.com>
9545
9546 PR python/12070:
9547 * python/py-event.c (event_object_getset): New global.
9548 (event_object_type): Reference it.
9549 * python/py-type.c (field_object_getset): New global.
9550 (field_object_type): Reference it.
9551 * python/python-internal.h (gdb_py_generic_dict): Declare.
9552 * python/py-utils.c (gdb_py_generic_dict): New function.
9553
9554 2012-02-17 Tristan Gingold <gingold@adacore.com>
9555
9556 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9557
9558 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9559
9560 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9561 TYPE_CALLING_CONVENTION annotation.
9562
9563 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9564
9565 * MAINTAINERS: Add rx to target ISA section.
9566 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9567 (ALLDEPFILES): Add rx-tdep.c.
9568
9569 2012-02-16 Tom Tromey <tromey@redhat.com>
9570
9571 * symfile.c (symbol_file_add_main_1): Use inferior's
9572 symfile_flags.
9573 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9574 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9575 inferior.
9576 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9577 inferior.
9578 (follow_exec): Use inferior's symfile_flags.
9579 * inferior.h (struct inferior) <symfile_flags>: New field.
9580
9581 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9582
9583 PR gdb/9734:
9584 * remote-sim.c (gdbsim_create_inferior): Call error() when
9585 sim_create_inferior() fails.
9586
9587 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9588
9589 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9590
9591 2012-02-16 Tom Tromey <tromey@redhat.com>
9592
9593 PR c++/13653:
9594 * thread.c (struct current_thread_cleanup) <was_removable>: New
9595 field.
9596 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9597 (make_cleanup_restore_current_thread): Initialize new field.
9598
9599 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9600
9601 * MAINTAINERS: Add rl78 to target ISA section.
9602 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9603 (ALLDEPFILES): Add rl78-tdep.c.
9604 * NEWS: Mention rl78 as a new target.
9605
9606 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9607
9608 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9609 data.
9610 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9611
9612 2012-02-15 Tom Tromey <tromey@redhat.com>
9613
9614 PR gdb/12659:
9615 * infcmd.c (registers_info): Print just the current register's
9616 name.
9617
9618 2012-02-15 Tom Tromey <tromey@redhat.com>
9619
9620 * python/py-symbol.c (sympy_value): Use _().
9621
9622 2012-02-15 Pedro Alves <palves@redhat.com>
9623
9624 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9625 output to be like native targets'.
9626 (remote_pid_to_str): Special case the null ptid.
9627
9628 2012-02-14 Stan Shebs <stan@codesourcery.com>
9629
9630 * NEWS: Mention enable count command.
9631 * breakpoint.h (struct breakpoint): New field enable_count.
9632 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9633 (enable_breakpoint): Add arg to call.
9634 (struct disp_data): New struct.
9635 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9636 (do_map_enable_once_breakpoint): Create a struct and pass it.
9637 (do_map_enable_delete_breakpoint): Ditto.
9638 (do_map_enable_count_breakpoint): New function.
9639 (enable_count_command): New function.
9640 (bpstat_stop_status): Decrement enable_count.
9641 (print_one_breakpoint_location): Report enable count.
9642 (_initialize_breakpoint): Add enable count command.
9643
9644 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9645
9646 * rl78-tdep.c (reggroups.h): Include.
9647 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9648 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9649 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9650 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9651 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9652 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9653 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9654 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9655 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9656 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9657 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9658 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9659 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9660 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9661 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9662 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9663 beginning of register list.
9664 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9665 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9666 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9667 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9668 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9669 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9670 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9671 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9672 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9673 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9674 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9675 the pseudo registers. Rearrange other pseudo registers too so
9676 that the bank registers appear at the end.
9677 (rl78_register_type): Account for the fact that the byte sized
9678 bank registers are now pseudo-registers.
9679 (rl78_register_name): Rearrange the register name array. Make
9680 initial set of raw banked registers inaccessible.
9681 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9682 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9683 case for copying bytes back and forth between raw and pseudo
9684 versions of the banked registers. Update other cases to reflect
9685 the changed names.
9686 (rl78_return_value): Update to account for changed names of
9687 raw registers.
9688 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9689 rl78_register_sim_regno().
9690
9691 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9692
9693 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9694 the name parameter being passed to find_pc_partial_function().
9695
9696 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 * MAINTAINERS: Step down from being ia64 target maintainer.
9699
9700 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9703 compilation warning.
9704
9705 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9706
9707 Fix crash on loaded shlibs without loaded exec_bfd.
9708 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9709 (set_section_command): Replace exec_bfd by p->bfd.
9710
9711 2012-02-10 Tom Tromey <tromey@redhat.com>
9712
9713 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9714 when we have a C++ qualified name.
9715
9716 2012-02-10 Pedro Alves <palves@redhat.com>
9717
9718 * inferior.c (inferior_pid_to_str): New.
9719 (print_inferior, inferior_command): Use it.
9720
9721 2012-02-10 Pedro Alves <palves@redhat.com>
9722
9723 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9724 the test CFLAGS.
9725 * configure: Regenerate.
9726
9727 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9728
9729 * linespec.c (decode_line_internal): Fix comment correctness.
9730
9731 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9732
9733 PR gdb/12953
9734 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9735 * amd64bsd-nat.c: Add support for debug registers (adapted from
9736 i386bsd-nat.c).
9737 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9738 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9739 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9740 (amd64bsd_dr_get_control): New functions.
9741 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9742 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9743 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9744 watchpoints initialization.
9745 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9746
9747 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9748
9749 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9750 flds_bnds.fields.
9751 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9752
9753 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9756
9757 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9758
9759 * language.h (symbol_name_cmp_ftype): Renames
9760 symbol_name_match_p_ftype.
9761 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9762 la_get_symbol_name_match_p.
9763 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9764 ada_get_symbol_name_match_p. Update comment.
9765 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9766 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9767 Renames symbol_name_match_p. Update field type.
9768 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9769 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9770 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9771 "la_get_symbol_name_cmp" in comments.
9772 * language.c: Likewise.
9773
9774 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9775
9776 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9777 %eflags offset.
9778 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9779 (amd64_sol2_gregset32_reg_offs): Likewise.
9780
9781 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9782
9783 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9784 of the returned BFD is allocated by GDB.
9785
9786 2012-02-07 Tom Tromey <tromey@redhat.com>
9787
9788 PR python/12027:
9789 * python/python-internal.h (frame_object_type): Declare.
9790 * python/py-symbol.c (sympy_needs_frame): New function.
9791 (sympy_value): New function.
9792 (symbol_object_getset): Add "needs_frame".
9793 (symbol_object_methods): Add "value".
9794 * python/py-frame.c (frame_object_type): No longer static.
9795
9796 2012-02-07 Tom Tromey <tromey@redhat.com>
9797
9798 PR python/13599:
9799 * python/py-symbol.c (sympy_line): New function.
9800 (symbol_object_getset): Add "line".
9801
9802 2012-02-07 Tom Tromey <tromey@redhat.com>
9803
9804 * charset.c (find_charset_names): Check 'in' against NULL.
9805
9806 2012-02-06 Doug Evans <dje@google.com>
9807
9808 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9809 and fields.name members from char * to const char *. All uses updated.
9810 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9811 from char * to const char *. All uses updated.
9812 (type_name_no_tag): Update.
9813 (lookup_unsigned_typename, lookup_signed_typename): Update.
9814 * gdbtypes.c (type_name_no_tag): Change result type
9815 from char * to const char *. All callers updated.
9816 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9817 name parameter from char * to const char *.
9818 * symtab.h (struct cplus_specific): Change type of demangled_name
9819 member from char * to const char *. All uses updated.
9820 (struct general_symbol_info): Change type of name and
9821 mangled_lang.demangled_name members from char * to const char *.
9822 All uses updated.
9823 (symbol_get_demangled_name, symbol_natural_name): Update.
9824 (symbol_demangled_name, symbol_search_name): Update.
9825 * symtab.c (symbol_get_demangled_name): Change result type
9826 from char * to const char *. All callers updated.
9827 (symbol_natural_name, symbol_demangled_name): Ditto.
9828 (symbol_search_name): Ditto.
9829 (completion_list_add_name): Change type of symname,sym_text,
9830 text,word parameters from char * to const char *.
9831 (completion_list_objc_symbol): Change type of sym_text,
9832 text,word parameters from char * to const char *.
9833 * ada-lang.c (find_struct_field): Change type of name parameter
9834 from char * to const char *.
9835 (encoded_ordered_before): Similarly for N0,N1 parameters.
9836 (old_renaming_is_invisible): Similarly for function_name parameter.
9837 (ada_type_name): Change result type from char * to const char *.
9838 All callers updated.
9839 * ada-lang.h (ada_type_name): Update.
9840 * buildsym.c (hashname): Change type of name parameter
9841 from char * to const char *.
9842 * buildsym.h (hashname): Update.
9843 * dbxread.c (end_psymtab): Change type of include_list parameter
9844 from char ** to const char **.
9845 * dwarf2read.c (determine_prefix): Change result type
9846 from char * to const char *. All callers updated.
9847 * f-lang.c (find_common_for_function): Change type of name, funcname
9848 parameters from char * to const char *.
9849 * f-lang.c (find_common_for_function): Update.
9850 * f-valprint.c (list_all_visible_commons): Change type of funcname
9851 parameters from char * to const char *.
9852 * gdbarch.sh (static_transform_name): Change type of name parameter
9853 and result from char * to const char *.
9854 * gdbarch.c: Regenerate.
9855 * gdbarch.h: Regenerate.
9856 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9857 of name parameter from char * to const char *.
9858 * jv-lang.c (java_primitive_type_from_name): Ditto.
9859 (java_demangled_signature_length): Similarly for signature parameter.
9860 (java_demangled_signature_copy): Ditto.
9861 (java_demangle_type_signature): Ditto.
9862 * jv-lang.h (java_primitive_type_from_name): Update.
9863 (java_demangle_type_signature): Update.
9864 * objc-lang.c (specialcmp): Change type of a,b parameters
9865 from char * to const char *.
9866 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9867 from char * to const char *. All callers updated.
9868 * p-lang.h (is_pascal_string_type): Update.
9869 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9870 of name parameter from char * to const char *.
9871 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9872 * utils.c (fprintf_symbol_filtered): Ditto.
9873 * defs.h (fprintf_symbol_filtered): Update.
9874 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9875 * stabsread.h (end_psymtab): Update.
9876 * stack.c (find_frame_funname): Change type of funname parameter
9877 from char ** to const char **.
9878 * stack.h (find_frame_funname): Update.
9879 * typeprint.c (type_print): Change type of varstring parameter
9880 from char * to const char *.
9881 * value.h (type_print): Update.
9882 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9883 from char * to const char *. All callers updated.
9884 (xcoff_end_psymtab): Change type of include_list parameter
9885 from char ** to const char **. All callers updated.
9886 (swap_sym): Similarly for name parameter. All callers updated.
9887 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9888 Use xstrdup.
9889 (process_coff_symbol): Use xstrdup.
9890 * stabsread.c (stabs_method_name_from_physname): Renamed from
9891 update_method_name_from_physname. Change result type from void
9892 to char *. All callers updated.
9893 (read_member_functions): In has_destructor case, store name in objfile
9894 obstack instead of malloc space. In !has_stub case, fix mem leak.
9895
9896 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9897
9898 * configure: Rebuild.
9899 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9900 LDFLAGS.
9901
9902 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9903
9904 * configure.tgt (rl78-*-elf): New target.
9905 * rl78-tdep.c: New file.
9906
9907 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9908
9909 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9910 and continue the loop. Add QUIT statement.
9911
9912 2012-02-03 Tom Tromey <tromey@redhat.com>
9913
9914 PR gdb/13596:
9915 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9916 bfd_lookup_symbol_from_symtab.
9917 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9918 gdb_bfd_lookup_symbol_from_symtab.
9919
9920 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9921
9922 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9923 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9924 symbol. Add assertion that sym2 is never NULL.
9925
9926 2012-02-02 Doug Evans <dje@google.com>
9927
9928 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9929 "name" parameter to const char ** from char **. All callers updated.
9930 (find_pc_partial_function): Ditto.
9931 (cache_pc_function_name): Change type to const char * from char *.
9932 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9933 (find_pc_partial_function): Update.
9934 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9935 type of "name" parameter to const char * from char *.
9936 All uses updated.
9937 * arch-utils.c (generic_in_solib_return_trampoline): Change
9938 type of "name" parameter to const char * from char *.
9939 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9940 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9941 type of "name" parameter to const char * from char *.
9942 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9943 * gdbarch.c: Regenerate.
9944 * gdbarch.h: Regenerate.
9945 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9946 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9947 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9948 type of "name" parameter to const char * from char *.
9949 * skip.c (skip_function_pc): Ditto.
9950 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9951 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9952 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9953 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9954 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9955 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9956 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9957 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9958 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9959
9960 2012-02-02 Pedro Alves <palves@redhat.com>
9961
9962 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9963 the current inferior has no execution. Make sure the current
9964 remote process matches gdb's current inferior.
9965
9966 2012-02-02 Tom Tromey <tromey@redhat.com>
9967
9968 PR gdb/13405:
9969 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9970 read-only memory.
9971
9972 2012-02-02 Tom Tromey <tromey@redhat.com>
9973
9974 PR gdb/9307:
9975 * symtab.c (lookup_language_this): Set block_found.
9976
9977 2012-02-01 Tom Tromey <tromey@redhat.com>
9978
9979 PR gdb/13431:
9980 * jit.c (struct jit_inferior_data): Rewrite.
9981 (struct jit_objfile_data): New.
9982 (get_jit_objfile_data): New function.
9983 (add_objfile_entry): Update.
9984 (jit_read_descriptor): Return int. Replace descriptor_addr
9985 argument with inf_data. Update. Don't call error.
9986 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9987 descriptor here.
9988 (jit_inferior_init): Don't look up descriptor. Don't call error.
9989 (jit_reset_inferior_data_and_breakpoints)
9990 (jit_inferior_created_observer): Remove.
9991 (jit_inferior_exit_hook): Update.
9992 (jit_executable_changed_observer): Remove.
9993 (jit_event_handler): Update.
9994 (free_objfile_data): Reset inferior data if needed.
9995 (_initialize_jit): Update.
9996
9997 2012-02-01 Tom Tromey <tromey@redhat.com>
9998
9999 * jit.c (bfd_open_from_target_memory): Move higher in file.
10000
10001 2012-02-01 Tristan Gingold <gingold@adacore.com>
10002
10003 * libunwind-frame.c (libunwind_load): Display message if dlopen
10004 failed.
10005
10006 2012-02-01 Gary Benson <gbenson@redhat.com>
10007
10008 * symtab.h (symbol_found_callback_ftype): New typedef.
10009 (iterate_over_symbols): Use the above.
10010 * symtab.c (iterate_over_symbols): Likewise.
10011 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10012 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10013 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10014 (iterate_name_matcher): Document return values.
10015 (collect_one_symbol): Likewise.
10016 (collect_function_symbols): Likewise.
10017 (collect_symbols): Likewise.
10018
10019 2012-02-01 Tom Tromey <tromey@redhat.com>
10020
10021 * ada-lang.c (resolve_subexp): Update.
10022 (ada_lookup_symbol_list): Add 'full_search' argument.
10023 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10024 ada_lookup_symbol_list.
10025 (ada_lookup_encoded_symbol): Update.
10026 (get_var_value): Update.
10027 * ada-exp.y (block_lookup): Update.
10028 (write_var_or_type): Update.
10029 (write_name_assoc): Update.
10030 * ada-lang.h (ada_lookup_symbol_list): Update.
10031
10032 2012-01-31 Tom Tromey <tromey@redhat.com>
10033
10034 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10035 comment.
10036
10037 2012-01-31 Doug Evans <dje@google.com>
10038
10039 * symtab.h: Remove outdated comment.
10040 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10041
10042 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10043
10044 Fix build error in Darwin port.
10045 * i386-darwin-nat.c: Include i386-nat.h.
10046
10047 2012-01-30 Tom Tromey <tromey@redhat.com>
10048
10049 PR breakpoints/13568:
10050 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10051 argument. Check for recursive includes.
10052 (dwarf_decode_macros): Create an include hash.
10053
10054 2012-01-30 Michael Eager <eager@eagercon.com>
10055
10056 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10057 * ppc-linux-tdep.c: Include glibc-tdep.h.
10058 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10059 (powerpc_linux_in_plt_stub): New function.
10060 (powerpc_linux_in_dynsym_resolve_code): New function.
10061 (ppc_skip_trampoline_code): New function.
10062 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10063 Use glibc_skip_solib_resolver.
10064
10065 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 Code cleanup: Make 1440 bytes of data segment read-only.
10068 * arch-utils.c (endian_enum): Make it const char *const [].
10069 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10070 Likewise.
10071 * breakpoint.c (always_inserted_enums): Likewise.
10072 * cli/cli-cmds.c (script_ext_enums): Likewise.
10073 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10074 enumlist parameter const char *const *.
10075 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10076 const char *const *.
10077 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10078 parameter const char *const *.
10079 * cris-tdep.c (cris_modes): Make it const char *const [].
10080 * filesystem.c (target_file_system_kinds): Likewise.
10081 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10082 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10083 (can_use_displaced_stepping_enum, scheduler_enums)
10084 (exec_direction_names): Likewise.
10085 * language.c (_initialize_language): Make the type_or_range_names and
10086 case_sensitive_names variables const char *const [].
10087 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10088 * python/python.c (python_excp_enums): Likewise.
10089 * remote.c (interrupt_sequence_modes): Likewise.
10090 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10091 * serial.c (logbase_enums): Likewise.
10092 * sh-tdep.c (sh_cc_enum): Likewise.
10093 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10094 Likewise.
10095 * symtab.c (multiple_symbols_modes): Likewise.
10096 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10097 Likewise.
10098 * utils.c (internal_problem_modes): Likewise.
10099
10100 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10101
10102 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10103 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10104 result.
10105
10106 2012-01-27 Doug Evans <dje@google.com>
10107
10108 * configure.ac (with_python): Fix absolute path handling for win32.
10109 * configure: Regenerate.
10110
10111 2012-01-26 Doug Evans <dje@google.com>
10112
10113 * symtab.c: Whitespace cleanup, no code changes.
10114
10115 * symtab.c (lookup_symbol_in_language): Improve comment.
10116 (lookup_symbol_aux): Fix comment.
10117
10118 * psymtab.c (add_psymbol_to_list): Result is now "void".
10119 * psympriv.h (add_psymbol_to_list): Update.
10120
10121 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10122
10123 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10124
10125 Do not open script filenames twice.
10126 * cli/cli-cmds.c (source_script_from_stream): Pass to
10127 source_python_script also STREAM.
10128 * python/py-auto-load.c (source_section_scripts): Pass to
10129 source_python_script_for_objfile also STREAM.
10130 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10131 also INPUT.
10132 * python/python-internal.h (source_python_script_for_objfile): New
10133 parameter file, rename parameter file to filename.
10134 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10135 instead if !_WIN32. Update the function comment.
10136 (source_python_script, source_python_script_for_objfile)
10137 (source_python_script): New parameter file, rename parameter file to
10138 filename. Pass FILENAME to python_run_simple_file.
10139 * python/python.h (source_python_script): New parameter file, rename
10140 parameter file to filename.
10141
10142 2012-01-26 Pedro Alves <palves@redhat.com>
10143
10144 * corelow.c (core_has_fake_pid): Delete.
10145 (core_close): Delete references to `core_has_fake_pid'.
10146 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10147 (core_open): Delete references to `core_has_fake_pid'.
10148 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10149 the removed global.
10150
10151 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10152
10153 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10154 Remove language parameter from name_matcher. Adjust the comment.
10155 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10156 Remove language parameter.
10157 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10158 * linespec.c (iterate_name_matcher): Likewise.
10159 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10160 name_matcher. Adjust call accordingly.
10161 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10162 (maintenance_check_symtabs): Adjust type of parameter "fun".
10163 * psymtab.h (maintenance_check_symtabs): Likewise.
10164
10165 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10166
10167 * language.h (symbol_name_match_p_ftype): New typedef.
10168 (struct language_defn): Replace field la_symbol_name_compare
10169 by la_get_symbol_name_match_p.
10170 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10171 (ada_language_defn): Use it.
10172 * linespec.c (struct symbol_matcher_data): New type.
10173 (iterate_name_matcher): Rewrite.
10174 (iterate_over_all_matching_symtabs): Pass a pointer to
10175 a symbol_matcher_data struct to expand_symtabs_matching
10176 instead of just the lookup name.
10177 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10178 opencl-lang.c, p-lang.c, language.c: Delete field
10179 la_symbol_name_compare, and replace by NULL for new field
10180 la_get_symbol_name_match_p.
10181 * symfile.h (struct quick_symbol_functions): Update comment.
10182
10183 2012-01-25 Tom Tromey <tromey@redhat.com>
10184
10185 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10186 dereferencing.
10187
10188 2012-01-24 Tom Tromey <tromey@redhat.com>
10189
10190 PR symtab/12406:
10191 * solib.c (update_solib_list): Update the program space's
10192 added_solibs and deleted_solibs fields.
10193 * progspace.h (struct program_space) <added_solibs,
10194 deleted_solibs>: New fields.
10195 (clear_program_space_solib_cache): Declare.
10196 * progspace.c (release_program_space): Call
10197 clear_program_space_solib_cache.
10198 (clear_program_space_solib_cache): New function.
10199 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10200 bpstat_stop_status. Use handle_solib_event.
10201 * breakpoint.c: Include gdb_regex.h.
10202 (print_solib_event): New function.
10203 (bpstat_print): Use print_solib_event.
10204 (bpstat_stop_status): Add special case for bp_shlib_event.
10205 (handle_solib_event): New function.
10206 (bpstat_what): Use handle_solib_event.
10207 (struct solib_catchpoint): New.
10208 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10209 (breakpoint_hit_catch_solib, check_status_catch_solib)
10210 (print_it_catch_solib, print_one_catch_solib)
10211 (print_mention_catch_solib, print_recreate_catch_solib): New
10212 functions.
10213 (catch_solib_breakpoint_ops): New global.
10214 (catch_load_or_unload, catch_load_command_1)
10215 (catch_unload_command_1): New functions.
10216 (internal_bkpt_check_status): Add special case for
10217 bp_shlib_event.
10218 (internal_bkpt_print_it): Use print_solib_event.
10219 (initialize_breakpoint_ops): Initialize
10220 catch_solib_breakpoint_ops.
10221 (_initialize_breakpoint): Register "catch load" and "catch
10222 unload".
10223 * breakpoint.h (handle_solib_event): Declare.
10224 * NEWS: Add entry for "catch load" and "catch unload".
10225
10226 2012-01-24 Tom Tromey <tromey@redhat.com>
10227
10228 * ada-lang.c: Include gdb_vecs.h.
10229 * charset.c: Include gdb_vecs.h.
10230 * tracepoint.h: Include gdb_vecs.h.
10231 * gdb_vecs.h: New file.
10232
10233 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10234
10235 * breakpoint.c (breakpoint_hit_catch_fork)
10236 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10237 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10238 * infrun.c (inferior_has_forked, inferior_has_vforked)
10239 (inferior_has_execd, inferior_has_called_syscall): Delete.
10240 (handle_syscall_event): Get syscall_number from the execution
10241 control state's wait status.
10242 (wait_for_inferior): Don't clear syscall_number.
10243
10244 2012-01-24 Pedro Alves <palves@redhat.com>
10245
10246 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10247 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10248 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10249 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10250 `ws' parameter.
10251 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10252 false for events other than TARGET_SIGNAL_TRAP.
10253 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10254 Add `ws' parameter.
10255 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10256 events other than TARGET_SIGNAL_TRAP.
10257 (tracepoint_breakpoint_hit): Add `ws' parameter.
10258 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10259 parameter.
10260 (bpstat_stop_status): Same.
10261 (pc_at_non_inline_function): Same.
10262 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10263 to pass the current event's waitstatus to bpstat_stop_status
10264 and pc_at_non_inline_function.
10265
10266 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 Code cleanup.
10269 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10270 Update the function comment for it.
10271 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10272 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10273 for STREAM.
10274
10275 2012-01-24 Pedro Alves <palves@redhat.com>
10276
10277 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10278 outside `bs->stop' block.
10279 (bpstat_what): Rework bp_shlib_event handling.
10280 (internal_bkpt_check_status): If the breakpoint is a
10281 bp_shlib_event, then set bs->stop and bs->print if
10282 stop_on_solib_events is set.
10283
10284 2012-01-24 Gary Benson <gbenson@redhat.com>
10285
10286 Delete #if 0'd out code.
10287 * stack.c (print_frame_label_vars): Remove.
10288 (catch_info): Likewise.
10289 (_initialize_stack): Remove "info catch" command.
10290 * NEWS: Mention the above.
10291
10292 2012-01-24 Pedro Alves <palves@redhat.com>
10293
10294 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10295 it.
10296 (remote_notice_new_inferior): If the remote end doesn't support
10297 the multiprocess extensions, then the PID is fake.
10298 (add_current_inferior_and_thread): New.
10299 (remote_start_remote): Use it.
10300 (extended_remote_attach_1): Adjust.
10301 (extended_remote_create_inferior_1): Use
10302 add_current_inferior_and_thread.
10303
10304 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10305
10306 Fix watchpoints to be specific for each inferior.
10307 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10308 current_program_space.
10309 * i386-nat.c (i386_inferior_data_cleanup): New.
10310 (i386_inferior_data_get): Replace variable inf_data_local by an
10311 inferior_data call.
10312 (i386_use_watchpoints): Initialize i386_inferior_data.
10313 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10314 specific iterate_over_lwps.
10315
10316 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10317
10318 Fix watchpoints across inferior fork.
10319 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10320 comment for linux_nat_iterate_watchpoint_lwps.
10321 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10322 linux_nat_iterate_watchpoint_lwps.
10323 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10324 * i386-linux-nat.c (update_debug_registers_callback): Update the
10325 comment for linux_nat_iterate_watchpoint_lwps.
10326 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10327 linux_nat_iterate_watchpoint_lwps.
10328 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10329 * i386-nat.c: Include inferior.h.
10330 (dr_mirror): Remove.
10331 (i386_inferior_data, struct i386_inferior_data)
10332 (i386_inferior_data_get): New.
10333 (i386_debug_reg_state): Use i386_inferior_data_get.
10334 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10335 (i386_insert_watchpoint, i386_remove_watchpoint)
10336 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10337 (i386_remove_hw_breakpoint): New variable state, use
10338 i386_debug_reg_state instead of DR_MIRROR.
10339 * linux-nat.c (delete_lwp): New declaration.
10340 (num_lwps): Move here from downwards.
10341 (delete_lwp_cleanup): New.
10342 (linux_child_follow_fork): Create new child_lp, call
10343 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10344 PTRACE_DETACH.
10345 (num_lwps): Move upwards.
10346 (linux_nat_iterate_watchpoint_lwps): New.
10347 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10348 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10349
10350 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10351
10352 GDB 7.4 released.
10353
10354 2012-01-23 Pedro Alves <palves@redhat.com>
10355
10356 * top.c (caution): Rename to ...
10357 (confirm): ... this.
10358 (show_caution): Rename to ...
10359 (show_confirm): ... this.
10360 (quit_cover): Adjust.
10361 (init_main): Adjust.
10362 * top.h (caution): Rename to ...
10363 (confirm): ... this.
10364 * utils.c (internal_vproblem, defaulted_query): Adjust.
10365
10366 2012-01-23 Pedro Alves <palves@redhat.com>
10367
10368 * top.c (caution): Update comment.
10369 (execute_command): Don't consider the current value of `caution'.
10370
10371 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10372
10373 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10374
10375 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10376
10377 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10378 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10379 * target.c (target_fileio_pwrite): Remove buffer address from
10380 debug output.
10381 (target_fileio_pread): Likewise.
10382
10383 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10384
10385 * NEWS: Document remote "info proc" and "generate-core-file".
10386
10387 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10388
10389 * gdbarch.sh (find_memory_regions): New callback.
10390 * gdbarch.c, gdbarch.h: Regenerate.
10391
10392 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10393 callback before falling back to target method.
10394
10395 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10396 (linux_target_install_ops): No longer install it.
10397
10398 * linux-tdep.c (linux_find_memory_regions): New function.
10399 (linux_init_abi): Install it.
10400
10401 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10402
10403 * gdbarch.sh (make_corefile_notes): New architecture callback.
10404 * gdbarch.c: Regenerate.
10405 * gdbarch.h: Likewise.
10406
10407 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10408 before target_make_corefile_notes. If NULL is returned, the
10409 target does not support core file generation.
10410
10411 * linux-nat.c: Include "linux-tdep.h".
10412 (find_signalled_thread, find_stop_signal): Remove.
10413 (linux_nat_do_thread_registers): Likewise.
10414 (struct linux_nat_corefile_thread_data): Likewise.
10415 (linux_nat_corefile_thread_callback): Likewise.
10416 (iterate_over_spus): Likewise.
10417 (struct linux_spu_corefile_data): Likewise.
10418 (linux_spu_corefile_callback): Likewise.
10419 (linux_spu_make_corefile_notes): Likewise.
10420 (linux_nat_collect_thread_registers): New function.
10421 (linux_nat_make_corefile_notes): Replace contents by call to
10422 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10423 as native-only callback.
10424
10425 * linux-tdep.h: Include "bfd.h".
10426 (struct regcache): Add forward declaration.
10427 (linux_collect_thread_registers_ftype): New typedef.
10428 (linux_make_corefile_notes): Add prototype.
10429 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10430 "regset.h", and "elf-bfd.h".
10431 (find_signalled_thread, find_stop_signal): New functions.
10432 (linux_spu_make_corefile_notes): Likewise.
10433 (linux_collect_thread_registers): Likewise.
10434 (struct linux_corefile_thread_data): New data structure.
10435 (linux_corefile_thread_callback): New funcion.
10436 (linux_make_corefile_notes): Likewise.
10437 (linux_make_corefile_notes_1): Likewise.
10438 (linux_init_abi): Install it.
10439
10440 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10441
10442 * gdbarch.sh (info_proc): New callback.
10443 * gdbarch.c, gdbarch.h: Regenerate.
10444
10445 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10446 before falling back to the target info_proc callback.
10447
10448 * linux-nat.c: Do not include "cli/cli-utils.h".
10449 (linux_nat_info_proc): Remove.
10450 (linux_target_install_ops): No longer install it.
10451
10452 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10453 (read_mapping): New function.
10454 (linux_info_proc): Likewise.
10455 (linux_init_abi): Install it.
10456
10457 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10458
10459 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10460 * infcmd.c: (info_proc_cmd_1): New function.
10461 (info_proc_cmd): New function, moved here from equivalent routine
10462 orignally in linux-nat.c.
10463 (info_proc_cmd_mappings): Likewise.
10464 (info_proc_cmd_stat): Likewise.
10465 (info_proc_cmd_status): Likewise.
10466 (info_proc_cmd_cwd): Likewise.
10467 (info_proc_cmd_cmdline): Likewise.
10468 (info_proc_cmd_exe): Likewise.
10469 (info_proc_cmd_all): Likewise.
10470 (_initialize_infcmd): Install "info proc" command and subcommands.
10471
10472 * target.h (struct target_ops): Add to_info_proc.
10473 (target_info_proc): Add prototype.
10474 * target.c (target_info_proc): New function.
10475
10476 * procfs.c (procfs_info_proc): Add prototype.
10477 (info_proc_cmd): Rename into ...
10478 (procfs_info_proc): ... this. Update argument types as appropriate
10479 for a to_info_proc implementation. Handle "what" argument.
10480 (procfs_target): Install procfs_info_proc.
10481 (_initialize_procfs): No longer install "info proc" command.
10482
10483 * linux-nat.c: (enum info_proc_what): Remove.
10484 (linux_nat_info_proc_cmd_1): Rename into ...
10485 (linux_nat_info_proc): ... this. Update argument types as appropriate
10486 for a to_info_proc implementation.
10487 (linux_nat_info_proc_cmd): Remove.
10488 (linux_nat_info_proc_cmd_mappings): Likewise.
10489 (linux_nat_info_proc_cmd_stat): Likewise.
10490 (linux_nat_info_proc_cmd_status): Likewise.
10491 (linux_nat_info_proc_cmd_cwd): Likewise.
10492 (linux_nat_info_proc_cmd_cmdline): Likewise.
10493 (linux_nat_info_proc_cmd_exe): Likewise.
10494 (linux_nat_info_proc_cmd_all): Likewise.
10495 (linux_target_install_ops): Install linux_nat_info_proc.
10496 (_initialize_linux_nat): No longer install "info proc" command
10497 and subcommands.
10498
10499 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10500
10501 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10502 * config.in, configure: Regenerate.
10503
10504 * target.h (struct target_ops): Add to_fileio_readlink.
10505 (target_fileio_readlink): Add prototype.
10506 * target.c (target_fileio_readlink): New function.
10507
10508 * inf-child.c: Conditionally include <sys/param.h>.
10509 (inf_child_fileio_readlink): New function.
10510 (inf_child_target): Install it.
10511
10512 * remote.c (PACKET_vFile_readlink): New enum value.
10513 (remote_hostio_readlink): New function.
10514 (init_remote_ops): Install it.
10515 (_initialize_remote): Handle vFile:readlink packet type.
10516
10517 2012-01-20 Pedro Alves <palves@redhat.com>
10518 Ulrich Weigand <ulrich.weigand@linaro.org>
10519
10520 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10521 * config.in, configure: Regenerate.
10522
10523 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10524 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10525 (target_fileio_open): Add prototype.
10526 (target_fileio_pwrite): Likewise.
10527 (target_fileio_pread): Likewise.
10528 (target_fileio_close): Likewise.
10529 (target_fileio_unlink): Likewise.
10530 (target_fileio_read_alloc): Likewise.
10531 (target_fileio_read_stralloc): Likewise.
10532
10533 * target.c: Include "gdb/fileio.h".
10534 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10535 (default_fileio_target): New function.
10536 (target_fileio_open): Likewise.
10537 (target_fileio_pwrite): Likewise.
10538 (target_fileio_pread): Likewise.
10539 (target_fileio_close): Likewise.
10540 (target_fileio_unlink): Likewise.
10541 (target_fileio_close_cleanup): Likewise.
10542 (target_fileio_read_alloc_1): Likewise.
10543 (target_fileio_read_alloc): Likewise.
10544 (target_fileio_read_stralloc): Likewise.
10545
10546 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10547 <fcntl.h>, and <unistd.h>.
10548 (inf_child_fileio_open_flags_to_host): New function.
10549 (inf_child_errno_to_fileio_error): Likewise.
10550 (inf_child_fileio_open): Likewise.
10551 (inf_child_fileio_pwrite): Likewise.
10552 (inf_child_fileio_pread): Likewise.
10553 (inf_child_fileio_close): Likewise.
10554 (inf_child_fileio_unlink): Likewise.
10555 (inf_child_target): Install to_fileio routines.
10556
10557 * remote.c (init_remote_ops): Install to_fileio routines.
10558
10559 2012-01-20 Pedro Alves <palves@redhat.com>
10560 Ulrich Weigand <ulrich.weigand@linaro.org>
10561
10562 * remote.c (remote_multi_process_p): Only check for multi-process
10563 protocol feature, do not check for extended protocol.
10564 (remote_supports_multi_process): Check for extended protocol here.
10565 (set_general_process): Likewise.
10566 (extended_remote_kill): Likewise.
10567 (remote_pid_to_str): Likewise.
10568 (remote_query_supported): Always query multiprocess mode.
10569
10570 2012-01-20 Pedro Alves <palves@redhat.com>
10571 Ulrich Weigand <ulrich.weigand@linaro.org>
10572
10573 * inferior.h (struct inferior): Add fake_pid_p.
10574 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10575 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10576 magic_null_ptid since the remote side doesn't provide a real PID.
10577
10578 2012-01-19 Tom Tromey <tromey@redhat.com>
10579
10580 * NEWS: Combine the two Python sections.
10581
10582 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10583
10584 * target.h (target_close): Update comment on the target's unpush state.
10585
10586 2012-01-19 Pedro Alves <palves@redhat.com>
10587
10588 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10589 linux_nat_async directly instead of going through the target
10590 vector.
10591 * target.c (unpush_target): Close target after unpushing it, not
10592 before.
10593
10594 2012-01-19 Gary Benson <gbenson@redhat.com>
10595
10596 * mdebugread.c (sort_blocks): Replace integer constants with ones
10597 derived from FIRST_LOCAL_BLOCK.
10598
10599 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10600 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 PR gdb/9538
10603 * symfile.c (find_separate_debug_file): New function.
10604 (terminate_after_last_dir_separator): Likewise.
10605 (find_separate_debug_file_by_debuglink): Also try realpath.
10606 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10607 * configure: Regenerate.
10608 * config.in: Regenerate.
10609
10610 2012-01-18 Doug Evans <dje@google.com>
10611
10612 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10613 (main.o): Remove rule.
10614 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10615 (--with-sysroot): Rewrite.
10616 * configure: Regenerate.
10617 * config.in: Regenerate.
10618
10619 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10620
10621 * parse.c (initialize_expout): New function.
10622 (reallocate_expout): Likewise.
10623 (parse_exp_in_context): Use `initialize_expout' and
10624 `reallocate_expout' when appropriate.
10625
10626 2012-01-18 Pedro Alves <palves@redhat.com>
10627
10628 * record.c (struct record_breakpoint, record_breakpoint_p)
10629 (record_breakpoints): New.
10630 (record_insert_breakpoint, record_remove_breakpoint): Manage
10631 record breakpoints list. Only remove breakpoints from the
10632 inferior if they had been inserted there in the first place.
10633
10634 2012-01-17 Doug Evans <dje@google.com>
10635
10636 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10637 if we know we don't have a file name to look for.
10638
10639 2012-01-17 Pedro Alves <palves@redhat.com>
10640
10641 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10642 the frame's stop reason is UNWIND_UNAVAILABLE.
10643
10644 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 Fix compilation error.
10647 * m2-exp.y (yyerror): Use ANSI C prototype.
10648
10649 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10650
10651 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10652 (growbuf_by_size): Likewise.
10653 (yyerror): Likewise.
10654 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10655 (modblock): Remove variable (was #if 0'ed).
10656 (parse_number): Convert prototype from K&R to ANSI C.
10657 (yyerror): Likewise.
10658 * objc-exp.y (parse_number): Likewise.
10659 (yyerror): Likewise.
10660 (yylex): Remove #if 0'ed code.
10661 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10662 (yyerror): Likewise.
10663
10664 2012-01-16 Tom Tromey <tromey@redhat.com>
10665
10666 * NEWS: Add item.
10667 * symtab.h (compare_filenames_for_search): Declare.
10668 * symtab.c (compare_filenames_for_search): New function.
10669 (iterate_over_some_symtabs): Use it.
10670 * symfile.h (struct quick_symbol_functions)
10671 <map_symtabs_matching_filename>: Change spec.
10672 * psymtab.c (partial_map_symtabs_matching_filename): Use
10673 compare_filenames_for_search. Update for new spec.
10674 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10675 compare_filenames_for_search. Update for new spec.
10676 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10677
10678 2012-01-16 Tom Tromey <tromey@redhat.com>
10679
10680 PR python/13281:
10681 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10682 (struct main_type) <flag_flag_enum>: New field.
10683 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10684 * NEWS: Add entries.
10685 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10686 enums.
10687 * python/lib/gdb/printing.py (_EnumInstance): New class.
10688 (FlagEnumerationPrinter): Likewise.
10689
10690 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10691
10692 * breakpoint.c (create_sals_from_address_default): New function.
10693 (create_breakpoints_sal_default): Likewise.
10694 (decode_linespec_default): Likewise.
10695 (is_marker_spec): Removed.
10696 (strace_marker_p): New function.
10697 (init_breakpoint_sal): Using `strace_marker_p' instead of
10698 `is_marker_spec'.
10699 (create_breakpoint): Call method `create_sals_from_address' from
10700 breakpoint_ops, replacing code that created SALs conditionally
10701 on the type of the breakpoint. Call method `create_breakpoints_sal',
10702 replacing code that created breakpoints conditionally on the type
10703 wanted.
10704 (base_breakpoint_create_sals_from_address): New function.
10705 (base_breakpoint_create_breakpoints_sal): Likewise.
10706 (base_breakpoint_decode_linespec): Likewise.
10707 (base_breakpoint_ops): Add methods
10708 `base_breakpoint_create_sals_from_address',
10709 `base_breakpoint_create_breakpoints_sal' and
10710 `base_breakpoint_decode_linespec'.
10711 (bkpt_create_sals_from_address): New function.
10712 (bkpt_create_breakpoints_sal): Likewise.
10713 (bkpt_decode_linespec): Likewise.
10714 (tracepoint_create_sals_from_address): Likewise.
10715 (tracepoint_create_breakpoints_sal): Likewise.
10716 (tracepoint_decode_linespec): Likewise.
10717 (strace_marker_create_sals_from_address): Likewise.
10718 (strace_marker_create_breakpoints_sal): Likewise.
10719 (strace_marker_decode_linespec): Likewise.
10720 (strace_marker_breakpoint_ops): New variable.
10721 (addr_string_to_sals): Remove `marker_spec'. Call method
10722 `decode_linespec' from breakpoint_ops, replacing code that decoded
10723 an address string into a SAL. Use `strace_marker_p' instead of
10724 `marker_spec'.
10725 (strace_command): Decide whether we are dealing with a static
10726 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10727 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10728 * breakpoint.h (linespec_result, linespec_sals): New forward
10729 declarations.
10730 (breakpoint_ops) <create_sals_from_address>,
10731 <create_breakpoints_sal>, <decode_linespec>: New methods.
10732
10733 2012-01-14 Doug Evans <dje@google.com>
10734
10735 * NEWS: Update text for "maint set python print-stack".
10736 It is deprecated in gdb 7.4 and deleted in 7.5.
10737
10738 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10739
10740 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10741 including curses.h.
10742
10743 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10744
10745 * configure: Regenerate.
10746 * config.in: Regenerate.
10747
10748 2012-01-12 Keith Seitz <keiths@redhat.com>
10749
10750 PR mi/10586
10751 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10752 (ANONYMOUS_UNION_NAME): Define.
10753 (is_path_expr_parent): New function.
10754 (get_path_expr_parent): New function.
10755 (is_anonymous_child): New function.
10756 (create_child_with_value): If the child is anonymous and without
10757 a name, assign an object name to it.
10758 (c_describe_child): Use get_path_expr_parent to determine
10759 the parent expression.
10760 If there field represents an anonymous struct or union and
10761 has no name, set an appropriate display name and expression.
10762 (cplus_describe_child): Likewise.
10763
10764 2012-01-12 Pedro Alves <palves@redhat.com>
10765
10766 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10767 available when %ebp is found to be zero (outermost).
10768
10769 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10770
10771 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10772 an internal gdb_static_assert.
10773 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10774
10775 2012-01-11 Tom Tromey <tromey@redhat.com>
10776
10777 PR gdb/9598:
10778 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10779 catch" and "catch throw".
10780
10781 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10782
10783 * blockframe.c (block_innermost_frame): Start search from selected
10784 frame, if present, or otherwise the current frame.
10785
10786 * c-exp.y (variable): Update innermost_block for
10787 'block COLONCOLON NAME' clause.
10788 * m2-exp.y (variable): Ditto.
10789 * objc-exp.y (variable): Ditto.
10790
10791 2012-01-10 Tom Tromey <tromey@redhat.com>
10792
10793 PR python/13199:
10794 * python/python.c (finish_python_initialization): Set sys.argv.
10795
10796 2012-01-10 Doug Evans <dje@google.com>
10797
10798 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10799 "want_line_info". All callers updated.
10800 (dwarf_decode_lines_1): New function.
10801 (handle_DW_AT_stmt_list): Add function comment.
10802 New arg "want_line_info". All callers updated.
10803 (read_file_scope,read_type_unit_scope): Move comment from
10804 handle_DW_AT_stmt_list to here.
10805
10806 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10807
10808 Fix regression after libiberty/ update for GCC PR 6057 and others.
10809 * c-exp.y (operator) <OPERATOR DELETE>
10810 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10811 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10812 (make_builtin_type, make_name): New variable i, add gdb_assert.
10813 (operator) <OPERATOR NEW>: Update ARGS to 3.
10814 (operator) <OPERATOR DELETE>: Add trailing space.
10815 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10816 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10817 * cp-support.c (cp_canonicalize_string): Check NULL from
10818 cp_comp_to_string, call warning and return.
10819
10820 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10821
10822 Fix duplicate .o files after omitting libbfd.a.
10823 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10824 (SFILES): Add corelow.c.
10825 (COMMON_OBS): Add corelow.o.
10826 (ALLDEPFILES): Remove corelow.c.
10827 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10828 * config/alpha/alpha-osf3.mh: Likewise.
10829 * config/alpha/fbsd.mh: Likewise.
10830 * config/arm/nbsdaout.mh: Likewise.
10831 * config/arm/nbsdelf.mh: Likewise.
10832 * config/i386/i386gnu.mh: Likewise.
10833 * config/ia64/hpux.mh: Likewise.
10834 * config/ia64/linux.mh: Likewise.
10835 * config/m32r/linux.mh: Likewise.
10836 * config/m68k/linux.mh: Likewise.
10837 * config/mips/irix5.mh: Likewise.
10838 * config/mips/irix6.mh: Likewise.
10839 * config/pa/hpux.mh: Likewise.
10840 * config/pa/linux.mh: Likewise.
10841 * config/powerpc/aix.mh: Likewise.
10842 * config/sparc/linux.mh: Likewise.
10843 * config/sparc/linux64.mh: Likewise.
10844 * config/sparc/sol2.mh: Likewise.
10845 * config/vax/vax.mh: Likewise.
10846 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10847 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10848 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10849 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10850 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10851 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10852 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10853 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10854 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10855 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10856 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10857 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10858 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10859 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10860 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10861 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10862 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10863 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10864 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10865 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10866 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10867 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10868 corelow.o from gdb_target_obs.
10869 * corefile.c (core_target): Update the comment on NULL value.
10870 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10871 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10872 MATCHES. Drop YUMMY set on NULL.
10873 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10874 reclaim CORE_DATA if it is already NULL.
10875
10876 2012-01-09 Doug Evans <dje@google.com>
10877
10878 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10879 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10880
10881 2012-01-09 Keith Seitz <keiths@redhat.com>
10882
10883 * breakpoint.c (wrapper.h): Don't include.
10884
10885 2012-01-09 Keith Seitz <keiths@redhat.com>
10886
10887 * Makefile.in (SFILES): Remove wrapper.c.
10888 (HFILES_NO_SRCDIR): Remove wrapper.h.
10889 (COMMON_OBS): Remove wrapper.o.
10890 * cli/cli-interp.c: Don't inlude wrapper.h.
10891 * corelow.c: Likewise.
10892 (core_open): Replace gdb_target_find_new_threads with
10893 TRY_CATCH around target_find_new_threads.
10894 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10895 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10896 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10897 evaluate_expression.
10898 (varobj_set_value): Likewise for evaluate_expression and
10899 value_assign.
10900 (install_new_variable): Likewise for value_fetch_lazy.
10901 (adjust_value_for_child_access): Likewise for value_ind.
10902 (c_describe_child): Likewise for value_subscript and
10903 value_ind.
10904 (c_value_of_root): Likewise for evaluate_expression.
10905 * wrapper.c: Remove.
10906 * wrapper.h: Remove.
10907
10908 2012-01-09 Doug Evans <dje@google.com>
10909
10910 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10911 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10912 "abfd" args with "section". All callers updated.
10913 Error checking code moved ...
10914 (error_check_comp_unit_head): ... here. New function.
10915 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10916 Delete arg "abfd". New arg "type_offset". All callers updated.
10917 (create_debug_types_hash_table): Simplify by using
10918 read_and_check_type_unit_head.
10919
10920 * parser-defs.h (namecopy): Delete.
10921 * parse.c (namecopy, namecopy_size): Move into copy_name.
10922
10923 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10924
10925 Partially fix duplicate .o files after omitting libbfd.a.
10926 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10927 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10928 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10929 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10930 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10931 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10932 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10933
10934 2012-01-09 Pedro Alves <palves@redhat.com>
10935
10936 * MAINTAINERS: Update my email address.
10937
10938 2012-01-08 Doug Evans <dje@google.com>
10939
10940 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10941 n_type_units. Rename type_comp_units to all_type_units.
10942 All uses updated.
10943 (add_signatured_type_cu_to_table): Renamed from
10944 add_signatured_type_cu_to_list. All callers updated.
10945
10946 * gdbtypes.h (struct cplus_struct_type): Delete member
10947 nfn_fields_total. All uses removed.
10948
10949 2012-01-06 Doug Evans <dje@google.com>
10950
10951 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10952 to top of file.
10953 (dwarf2_find_comp_unit): Delete.
10954 (process_psymtab_comp_unit): Make result "void".
10955 Delete args buffer, info_ptr, buffer_size, and replace with
10956 "section". All callers updated.
10957 (dwarf2_build_psymtabs_hard): Simplify.
10958
10959 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10960 Thiago Jung Bauermann <bauerman@br.ibm.com>
10961
10962 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10963 before `struct gdb_exception'.
10964 * breakpoint.c (update_global_location_list_nothrow)
10965 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10966 * cp-abi.c (value_rtti_type): Likewise.
10967 * cp-support.c (cp_validate_operator): Likewise.
10968 * infrun.c (insert_exception_resume_breakpoint)
10969 (check_exception_resume, keep_going): Likewise.
10970 * mi-interp.c (mi_breakpoint_created)
10971 (mi_breakpoint_modified): Likewise.
10972 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10973 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10974 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10975
10976 2012-01-05 Doug Evans <dje@google.com>
10977
10978 * dwarf2read.c (statement_prologue): Delete, unused.
10979
10980 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10981 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10982
10983 * dwarf2read.c (comp_unit_header): Delete, unused.
10984
10985 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10986
10987 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10988 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10989
10990 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10991
10992 * infrun.c (normal_stop): Don't skip calling the normal_stop
10993 observers if the thread was doing a multi-step, but stopped for
10994 some reason other than stepping.
10995
10996 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10997
10998 * cli/cli-decode.h: Add comments.
10999 (CMD_LIST_AMBIGUOUS): Moved to command.h
11000 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11001 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11002 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11003 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11004 (add_com, add_com_alias, add_info, add_info_alias)
11005 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11006 declarations.
11007 * command.h: Add and adjust comments.
11008 (CMD_LIST_AMBIGUOUS): Moved here.
11009 (help_cmd, help_cmd_list): Delete declarations.
11010
11011 2012-01-04 Doug Evans <dje@google.com>
11012
11013 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11014 All callers updated.
11015 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11016 Replace all arguments with "per_cu". All callers updated.
11017
11018 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11019
11020 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11021 New arg "per_cu". All callers updated.
11022
11023 Delete #if 0'd out code.
11024 * language.c (binop_result_type): Delete.
11025 (simple_type, ordered_type, same_type, integral_type): Delete.
11026 (numeric_type, character_type, string_type, boolean_type): Delete.
11027 (float_type, structured_type): Delete.
11028 * language.h: Update.
11029
11030 2012-01-04 Tom Tromey <tromey@redhat.com>
11031
11032 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11033
11034 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11035
11036 * corefile.c (close_exec_file): Delete.
11037 (reopen_exec_file): Remove commented out code that seems related
11038 to close_exec_file, which is being deleted here.
11039 * inferior.h (close_exec_file): Delete.
11040 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11041
11042 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11043
11044 * ada-lang.c: #include "cli/cli-utils.h".
11045 (get_selections): Use skip_spaces.
11046 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11047 (catch_ada_exception_command_split): Use skip_spaces.
11048 (ada_decode_assert_location): Likewise.
11049
11050 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11051
11052 * linespec.c (decode_line_internal): Check for C++ or Java
11053 compound constructs only if the current language is C, C++
11054 or Java.
11055
11056 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 Revert:
11059 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11060 Joel Brobecker <brobecker@adacore.com>
11061 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11062 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11063 3 times.
11064 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11065 fall through into AT_ENTRY_POINT.
11066 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11067 DUMMY_ADDR with it.
11068 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11069 PPC_INSN_SIZE skip to 3 times.
11070
11071 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11072
11073 * linespec.c (add_minsym): Preserve function descriptors.
11074
11075 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11076
11077 * breakpoint.c (all_locations_are_pending): Consider locations
11078 in program spaces executing during startup pending as well.
11079
11080 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11081
11082 Copyright year update in most files of the GDB Project.
11083
11084 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11085
11086 * copyright.sh: Delete.
11087 * copyright.py: Rewrite.
11088
11089 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11090
11091 * gnulib/extra/update-copyright: New file, imported from gnulib.
11092
11093 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11094
11095 * README (Copyright and License Notices): New section.
11096
11097 2012-01-03 Tom Tromey <tromey@redhat.com>
11098
11099 PR python/12533:
11100 * python/py-value.c (valpy_dereference, valpy_get_address
11101 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11102 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11103 (valpy_absolute, valpy_richcompare): Free intermediate values.
11104
11105 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11106
11107 * ada-lang.c: Reformat the copyright notice.
11108
11109 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11110
11111 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11112 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11113 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11114 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11115 Revert this part of:
11116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11117 Build gdb directly from *.o files not using libgdb.a.
11118 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11119
11120 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11121
11122 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11123 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11124 Reformat the copyright header.
11125
11126 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 Revert this part of:
11129 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11130 Remove the gdbtui binary.
11131 * gdb.c (main): Remove args.interpreter_p initialization.
11132 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11133 * main.h (struct captured_main_args): Remove interpreter_p.
11134
11135 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11136
11137 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11138
11139 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11140
11141 * top.c (print_gdb_version): Update copyright year.
11142
11143 2012-01-02 Yao Qi <yao@codesourcery.com>
11144
11145 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11146
11147 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11148 Joel Brobecker <brobecker@adacore.com>
11149
11150 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11151 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11152 3 times.
11153 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11154 fall through into AT_ENTRY_POINT.
11155 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11156 DUMMY_ADDR with it.
11157 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11158 PPC_INSN_SIZE skip to 3 times.
11159
11160 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11161
11162 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11163 the return value.
11164 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11165
11166 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11167
11168 Build gdb directly from *.o files not using libgdb.a.
11169 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11170 (COMMON_OBS): Remove solib-target.o.
11171 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11172 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11173 (LIBGDB_OBS, libgdb.a): Move it above.
11174 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11175 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11176 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11177 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11178 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11179 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11180 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11181 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11182 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11183 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11184 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11185 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11186 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11187 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11188 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11189 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11190 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11191 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11192 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11193 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11194 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11195 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11196 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11197 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11198 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11199 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11200 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11201
11202 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11203
11204 Remove the gdbtui binary.
11205 * .gitignore (/gdbtui): Remove.
11206 * Makefile.in (TUI): Remove.
11207 (SUBDIR_TUI_OBS): Remove tui-main.o.
11208 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11209 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11210 (tui-main.o): Remove.
11211 (all_object_files): Remove tui-main.o.
11212 * NEWS: New note for the gdbtui removal.
11213 * configure: Rebuilt.
11214 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11215 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11216 CONFIG_UNINSTALL respectively.
11217 * gdb.c (main): Remove args.interpreter_p initialization.
11218 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11219 * main.h (struct captured_main_args): Remove interpreter_p.
11220 * tui/tui-main.c: Remove.
11221
11222 2012-01-01 Doug Evans <dje@google.com>
11223
11224 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11225 (dwarf2_physname, read_import_statement): Ditto.
11226 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11227 (process_structure_scope read_subroutine_type): Ditto.
11228 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11229 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11230 (dwarf2_fetch_die_location_block): Ditto.
11231 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11232
11233 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11234 All callers updated.
11235 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11236 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11237 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11238
11239 * dwarf2read.c (load_cu): Move assert to more useful location.
11240
11241 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11242 All callers updated.
11243
11244 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11245 (dwarf2_elf_names): Minor reformat.
11246 (dwarf2_per_cu_data): Tweak comment.
11247 (dwarf2_read_section): Fix comment.
11248 (create_all_comp_units): Fix comment.
11249 (load_full_comp_unit): Fix comment.
11250 (process_full_comp_unit): Fix comment.
11251 (read_signatured_type): Fix comment.
11252
11253 For older changes see ChangeLog-2011.
11254 \f
11255 Local Variables:
11256 mode: change-log
11257 left-margin: 8
11258 fill-column: 74
11259 version-control: never
11260 coding: utf-8
11261 End: