* MAINTAINERS: Update my email address.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
2
3 * MAINTAINERS: Update my email address.
4
5 2012-11-05 Tom Tromey <tromey@redhat.com>
6
7 * frame.c (put_frame_register): Don't use temporary buffer.
8
9 2012-11-05 Pedro Alves <palves@redhat.com>
10
11 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
12 child. Clear 'pending_detach'.
13 * infrun.c (handle_vfork_child_exec_or_exit): Clear
14 'pending_detach' in the vfork parent.
15
16 2012-11-05 Doug Evans <dje@google.com>
17
18 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
19 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
20 * dwarf2read.c: #include "elf-bfd.h".
21 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
22 (dwop_section_names): Renamed from dwo_section names. All uses
23 updated. Add entries for .debug_cu_index, .debug_tu_index.
24 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
25 All uses updated.
26 (struct dwp_sections): New type.
27 (struct virtual_dwo_sections): New type.
28 (struct dwp_hash_table): New type.
29 (struct dwp_file): New type.
30 (init_cutu_and_read_dies): Ensure DWO info/types section has been
31 read in. Handle DWOs coming from DWP files.
32 (lookup_dwo_file_slot): New function.
33 (dwarf2_locate_dwo_sections): Move definition closer to use.
34 (create_dwo_debug_info_hash_table_reader): Renamed from
35 create_debug_info_hash_table_reader. All callers updated.
36 (create_dwo_debug_info_hash_table): Renamed from
37 create_debug_info_hash_table. All callers updated.
38 (create_dwp_hash_table): New function.
39 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
40 (lookup_dwo_in_dwp): New function.
41 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
42 is_dwp. All callers updated.
43 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
44 (open_and_init_dwo_file): Renamed from init_dwo_file.
45 All callers updated.
46 (lookup_dwo_file): Delete.
47 (dwarf2_locate_dwp_sections): New function.
48 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
49 (allocate_dwp_loaded_cutus_table): New function.
50 (open_and_init_dwp_file): New function.
51 (lookup_dwo_cutu): New function.
52 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
53
54 2012-11-03 Yao Qi <yao@codesourcery.com>
55
56 Fix PR gdb/14617.
57 * breakpoint.c (trace_pass_set_count): Call
58 observer_notify_breakpoint_modified instead of
59 observer_notify_tracepoint_modified.
60 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
61
62 2012-11-02 Tom Tromey <tromey@redhat.com>
63
64 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
65 argument to complete_on_enum.
66
67 2012-11-02 Tom Tromey <tromey@redhat.com>
68
69 * configure: Rebuild.
70 * configure.ac (build_warnings): Add -Wempty-body.
71 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
72 * remote.c (handle_notification): Use braces for empty 'else' body.
73 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
74 'else' body.
75 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
76 'else' body.
77 * solib-som.c (som_relocate_section_addresses): Use braces
78 for empty 'else' body.
79 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
80 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
81
82 2012-11-02 Pedro Alves <palves@redhat.com>
83
84 PR gdb/14766
85
86 * infrun.c (handle_inferior_event)
87 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
88 null_ptid before handling a vfork child exec or exit. Switch to
89 the event ptid afterwards.
90
91 2012-11-02 Yao Qi <yao@codesourcery.com>
92
93 * std-operator.def: Remove OP_LABELED.
94 * eval.c: Remove the declaration of 'get_label'.
95 (get_label): Remove.
96 (evaluate_struct_tuple): Remove code handling OP_LABELED.
97 Update comment.
98 Remove local variable 'variantno' and related code.
99 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
100 with 'fieldno'.
101 * expprint.c (print_subexp_standard): Likewise.
102 (dump_subexp_body_standard): Likewise.
103 * parse.c (operator_length_standard): Likewise.
104
105 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
106
107 Incorporate ARI web page generator into GDB sources.
108 * contrib/ari/create-web-ari-in-src.sh: New file.
109 * contrib/ari/gdb_ari.sh: New file.
110 * contrib/ari/gdb_find.sh: New file.
111 * contrib/ari/update-web-ari.sh: New file.
112
113 2012-10-31 Tom Tromey <tromey@redhat.com>
114
115 * gdbarch.c: Rebuild.
116 * gdbarch.sh: Remove references to gdbarch_swap.
117 * corelow.c (core_open): Remove obsolete comment.
118
119 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
120
121 PR cli/14772
122 * c-typeprint.c (c_print_type): Don't print a space for vector
123 types, this is handled within the suffix.
124 (c_type_print_varspec_suffix): Add a space to vector suffix.
125
126 2012-10-26 Pedro Alves <palves@redhat.com>
127
128 * amd64-tdep.c (amd64_relocate_instruction): Use
129 store_unsigned_integer instead of memcpy.
130 * i386-tdep.c (i386_relocate_instruction): Ditto.
131
132 2012-10-26 Pedro Alves <palves@redhat.com>
133
134 * infrun.c (handle_inferior_event): Merge handling of
135 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
136 switch case.
137
138 2012-10-26 Pedro Alves <palves@redhat.com>
139
140 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
141 Remove comment.
142
143 2012-10-26 Pedro Alves <palves@redhat.com>
144
145 * target.c (target_waitstatus_to_string): Handle
146 TARGET_WAITKIND_VFORK_DONE.
147
148 2012-10-26 Pedro Alves <palves@redhat.com>
149
150 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
151 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
152
153 2012-10-24 Tristan Gingold <gingold@adacore.com>
154
155 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
156 Add comments.
157
158 2012-10-24 Joel Brobecker <brobecker@adacore.com>
159
160 * ravenscar-thread.c (ravenscar_wait): Only update the list
161 of threads and inferior_ptid if the inferior is still alive.
162
163 2012-10-24 Joel Brobecker <brobecker@adacore.com>
164
165 * ada-lang.c (is_known_support_routine): Use lbasename when
166 matching the symtab's filename against
167 known_runtime_file_name_patterns.
168
169 2012-10-24 Joel Brobecker <brobecker@adacore.com>
170
171 * ada-lang.c (ada_same_array_size_p): New function.
172 (ada_promote_array_of_integrals): New function.
173 (coerce_for_assign): Add handling of arrays where the elements
174 are integrals of a smaller size than the size of the target
175 array element type.
176
177 2012-10-24 Joel Brobecker <brobecker@adacore.com>
178
179 * doublest.c (convert_doublest_to_floatformat): Fix comparison
180 against maximum exponent value.
181
182 2012-10-24 Joel Brobecker <brobecker@adacore.com>
183
184 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
185 "unwind-seh.c".
186
187 2012-10-24 Joel Brobecker <brobecker@adacore.com>
188
189 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
190 strip typedef layer when computing the fixed type's field type,
191 only when computing its size.
192
193 2012-10-24 Mark Kettenis <kettenis@gnu.org>
194
195 PR gdb/12783
196 * i386-tdep.c (i386_return_value): Handle complex double and long
197 double.
198
199 2012-10-24 Joel Brobecker <brobecker@adacore.com>
200
201 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
202 New local variable args_len.
203 Quote the name of the executable when computing the command line.
204
205 2012-10-23 Mark Kettenis <kettenis@gnu.org>
206
207 PR gdb/12796
208 PR gdb/12798
209 PR gdb/12800
210 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
211 AMD64_FTAG_REGNUM.
212 * amd64-tdep.c (amd64_classify): Classify complex types.
213 (amd64_return_value): Handle the COMPLEX_X87 class.
214
215 2012-10-23 Joel Brobecker <brobecker@adacore.com>
216
217 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
218 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
219
220 2012-10-23 Joel Brobecker <brobecker@adacore.com>
221
222 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
223 function.
224 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
225 to amd64_windows_auto_wide_charset.
226
227 2012-10-23 Yao Qi <yao@codesourcery.com>
228
229 * event-top.c (mark_async_signal_handler_wrapper): Remove.
230 * event-top.h: Remove its declaration.
231 (async_request_quit): Call mark_async_signal_handler instead of
232 mark_async_signal_handler_wrapper.
233 (async_do_nothing, async_disconnect): Likewise.
234 (async_stop_sig): Likewise.
235 * remote.c (handle_remote_sigint): Likewise.
236 (handle_remote_sigint_twice): Likewise.
237
238 2012-10-23 Yao Qi <yao@codesourcery.com>
239
240 * event-top.c (sigint_token, sighup_token): Replace 'void *'
241 with 'static struct async_signal_handler *'.
242 (sighup_token, sigquit_token, sigstp_token): Likewise.
243
244 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
245
246 * gdbarch.sh (function_list): Use 'pstring' when printing
247 a variable which could return NULL.
248 * gdbarch.c: Regenerate.
249
250 2012-10-10 Joel Brobecker <brobecker@adacore.com>
251 Tom Tromey <tromey@redhat.com>
252
253 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
254 inneffective if condition by gdb assertion. Add function
255 description comment.
256
257 2012-10-19 Joel Brobecker <brobecker@adacore.com>
258
259 * parser-defs.h (struct exp_descriptor): Document constraint
260 on return value for "op_name" callbacks.
261
262 2012-10-18 Tom Tromey <tromey@redhat.com>
263
264 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
265 * symtab.c (iterate_over_some_symtabs): Constify.
266 * source.h (symtab_to_fullname): Return 'const char *'.
267 * source.c (symtab_to_fullname): Return 'const char *'.
268 * python/py-symtab.c (stpy_fullname): Constify.
269 * cli/cli-cmds.c (edit_command): Constify.
270 * breakpoint.c (print_breakpoint_location)
271 (update_static_tracepoint): Constify.
272
273 2012-10-18 Tom Tromey <tromey@redhat.com>
274
275 * breakpoint.c (compare_breakpoints): Fix comparison.
276
277 2012-10-18 Tom Tromey <tromey@redhat.com>
278
279 * valprint.c (generic_emit_char, generic_printstr): Pass size of
280 gdb_wchar_t to convert_between_encodings.
281
282 2012-10-17 Yao Qi <yao@codesourcery.com>
283
284 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
285 more parameter 'inferior'.
286 * corefile.c (write_memory_with_notification): Caller update.
287
288 * mi/mi-cmd-var.c: Include "mi-main.h".
289 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
290 to 1 and restore it later.
291 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
292 and "data-write-memory-bytes.
293 * mi/mi-interp.c: Include objfiles.h.
294 (mi_interpreter_init): Call observer_attach_memory_changed.
295 (mi_memory_changed): New.
296 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
297 New field.
298
299 * NEWS: Mention new MI notification "memory-changed".
300
301 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
302
303 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
304
305 2012-10-15 Doug Evans <dje@google.com>
306
307 New option -nh: inhibit loading of ~/.gdbinit.
308 * NEWS: Mention -nh.
309 * main.c (captured_main): Recognize and process -nh.
310 (print_gdb_help): Mention -nh.
311 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
312
313 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
314
315 PR backtrace/14646
316 PR gdb/14647
317 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
318 pc_regnum_from_eax.
319 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
320 nor pc_regnum_from_eax.
321 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
322 nor pc_regnum_from_eax.
323
324 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
325
326 Fix entry values resolving in inlined frames.
327 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
328 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
329 entries of FRAME.
330
331 2012-10-15 Joel Brobecker <brobecker@adacore.com>
332
333 * configure.ac: Build with -DMS_WIN64 if building with Python
334 enabled using GCC on amd64-windows.
335 * configure: Regenerate.
336
337 2012-10-15 Tom Tromey <tromey@redhat.com>
338
339 PR python/14635:
340 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
341 to Py_None.
342
343 2012-10-15 Tom Tromey <tromey@redhat.com>
344
345 PR python/14634:
346 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
347
348 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
349
350 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
351 reset thread numbering back to 1.
352
353 2012-10-11 Doug Evans <dje@google.com>
354
355 PR breakpoints/14643.
356 * linespec.c (struct ls_parser): New member keyword_ok.
357 (linespec_lexer_lex_string): Add comment.
358 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
359 for one.
360 (parse_linespec): Set keyword_ok.
361
362 2012-10-10 Doug Evans <dje@google.com>
363
364 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
365 "0x" prefix on address in log message.
366
367 * dwarf2read.c (read_1_byte): Add const to buf parameter.
368 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
369 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
370 (lookup_dwo_file): Add const to dwo_name parameter.
371 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
372
373 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 Fix crash during stepping on ppc32.
376 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
377 SYM.
378
379 2012-10-03 Doug Evans <dje@google.com>
380
381 PR symtab/14601
382 * buildsym.c (buildsym_init): Reset using_directives to NULL.
383
384 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
385
386 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
387 output and use uint32_t not long to ensure 4 byte size.
388
389 2012-10-02 Joel Brobecker <brobecker@adacore.com>
390
391 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
392 unref'ed it.
393
394 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
395
396 * target.c (simple_search_memory): Include access length in
397 warning message.
398
399 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
400 Edjunior Machado <emachado@linux.vnet.ibm.com>
401
402 PR gdb/13989
403 * solib.c (solib_find): Prevent GDB from loading native libraries when
404 debugging a cross-target corefile.
405
406 2012-09-28 selven <pcthegreat@gmail.com>
407
408 Make definition match declaration.
409
410 * regcache.c (regcache_register_status): Change return type to
411 enum register_status.
412
413 2012-09-28 Yao Qi <yao@codesourcery.com>
414
415 * mi/mi-main.c (mi_cmd_data_write_memory): Call
416 write_memory_with_notification instead of write_memory.
417 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
418 instead of target_write_memory.
419
420 2012-09-28 Yao Qi <yao@codesourcery.com>
421
422 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
423 when the length of content is not an even number.
424
425 2012-09-27 Tom Tromey <tromey@redhat.com>
426
427 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
428 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
429
430 2012-09-27 Joel Brobecker <brobecker@adacore.com>
431
432 * sol-thread.c (sol_thread_fetch_registers)
433 (sol_thread_store_registers): Delete commented out code.
434
435 2012-09-27 Joel Brobecker <brobecker@adacore.com>
436
437 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
438 Move these functions to sparc-sol-thread.c.
439 * sparc-sol-thread.c: New file.
440 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
441 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
442 configurations.
443 * configure: Regenerate.
444
445 2012-09-27 Joel Brobecker <brobecker@adacore.com>
446
447 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
448 Remove commented-out code.
449
450 2012-09-27 Joel Brobecker <brobecker@adacore.com>
451
452 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
453 Enable this code for sparc hosts only.
454
455 2012-09-27 Joel Brobecker <brobecker@adacore.com>
456
457 * procfs.h (procfs_find_LDT_entry): Add declaration.
458 * sol-thread.c (ps_lgetLDT): Delete local declaration of
459 function procfs_find_LDT_entry.
460
461 2012-09-27 Joel Brobecker <brobecker@adacore.com>
462
463 * procfs.c (proc_get_LDT_entry): Make static.
464
465 2012-09-27 Joel Brobecker <brobecker@adacore.com>
466
467 * procfs.c (proc_find_memory_regions): Fix declaration.
468
469 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
470
471 * amd64-tdep.c (amd64_return_value): Revert previous change
472 that used TYPE_LENGTH directly.
473 * bfin-tdep.c (bfin_extract_return_value): Likewise.
474 (bfin_store_return_value): Likewise.
475 * cris-tdep.c (cris_store_return_value): Likewise.
476 (cris_extract_return_value): Likewise.
477 * h8300-tdep.c (h8300_extract_return_value): Likewise.
478 * hppa-tdep.c (hppa64_return_value): Likewise.
479 * lm32-tdep.c (lm32_store_return_value): Likewise.
480 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
481 * spu-tdep.c (spu_value_from_register): Likewise.
482 * vax-tdep.c (vax_return_value): Likewise.
483
484 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
485
486 * gdbtypes.c (lookup_array_range_type): Expand parameters
487 LOW_BOUND and HIGH_BOUND to LONGEST.
488 (lookup_string_range_type): Likewise.
489 * gdbtypes.h (lookup_array_range_type): Likewise.
490 (lookup_string_range_type): Likewise.
491 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
492 Expand HIGHBOUND to ssize_t.
493 (value_string): Likewise.
494 * value.h (value_cstring): Expand parameter LEN to ssize_t.
495 (value_string): Likewise.
496
497 2012-09-27 Yao Qi <yao@codesourcery.com>
498
499 PR breakpoints/13898
500 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
501 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
502 per breakpoint type.
503
504 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
505
506 * procfs.c: Add gdb_bfd header.
507 * rs6000-nat.c: Likewise.
508 * solib-pa64.c: Likewise.
509 * spu-linux-nat.c: Likewise.
510 * windows-nat.c: Likewise.
511
512 2012-09-26 Tom Tromey <tromey@redhat.com>
513
514 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
515
516 2012-09-26 Tom Tromey <tromey@redhat.com>
517
518 * dwarf2read.c (mark_common_block_symbol_computed): New function.
519 (read_common_block): Handle child DIEs with
520 DW_AT_data_member_location.
521 (new_symbol_full): Add special case for common blocks.
522
523 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
524 Tom Tromey <tromey@redhat.com>
525
526 * dwarf2read.c (read_common_block): Rewrite.
527 (new_symbol_full): Handle DW_TAG_common_block.
528 * f-lang.c (head_common_list, find_common_for_function):
529 Remove.
530 * f-lang.h (struct common_entry, struct saved_f77_common,
531 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
532 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
533 BLANK_COMMON_NAME_LOCAL): Remove.
534 (struct common_block): New.
535 * f-valprint.c (list_all_visible_commons): Remove.
536 (info_common_command_for_block): New function.
537 (info_common_command): Use it.
538 * stack.c (iterate_over_block_locals): Special case for
539 COMMON_BLOCK_DOMAIN.
540 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
541 constant.
542 (struct general_symbol_info) <value.common_block>: New field.
543 (SYMBOL_VALUE_COMMON_BLOCK): New define.
544
545 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
546 Tom Tromey <tromey@redhat.com>
547
548 * f-lang.c (allocate_saved_bf_node,
549 allocate_saved_function_node, allocate_saved_f77_common_node,
550 allocate_common_entry_node, tail_common_list, current_common,
551 saved_bf_list, saved_bf_list_end, current_head_bf_list,
552 tmp_bf_ptr, add_common_block, add_common_entry,
553 find_first_common_named, patch_common_entries,
554 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
555 global_remote_debug, get_bf_for_fcn, saved_function_list,
556 saved_function_list_end, clear_function_list, struct saved_fcn,
557 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
558 SAVED_BF, SAVED_BF_PTR): Remove.
559 * f-lang.h (tail_common_list, current_common,
560 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
561 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
562 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
563 real_main_c_value): Remove.
564 * f-valprint.c (there_is_a_visible_common_named): Remove.
565
566 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
567
568 * breakpoint.c (update_global_location_list): Ignore previous
569 duplicate status of a breakpoint when starting a new scan for
570 duplicate breakpoints.
571
572 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
573 PR breakpoints/14419
574 * arm-tdep.c (arm_skip_prologue): Extending producer check to
575 support LLVM compiler.
576
577 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
578
579 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
580 * bfin-tdep.c (bfin_extract_return_value): Likewise.
581 (bfin_store_return_value): Likewise.
582 * cris-tdep.c (cris_store_return_value): Likewise.
583 (cris_extract_return_value): Likewise.
584 * h8300-tdep.c (h8300_extract_return_value): Likewise.
585 * hppa-tdep.c (hppa64_return_value): Likewise.
586 * lm32-tdep.c (lm32_store_return_value): Likewise.
587 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
588 * spu-tdep.c (spu_value_from_register): Likewise.
589 * vax-tdep.c (vax_return_value): Likewise.
590
591 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
592
593 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
594 parameter LEN to ssize_t.
595
596 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
597
598 * ada-valprint.c (ada_val_print_1): Eliminate single-use
599 variable LEN.
600 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
601 directly.
602 (alpha_store_return_value): Likewise.
603 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
604 (amd64_push_arguments): Likewise.
605 * ax-gdb.c (gen_trace_static_fields): Likewise.
606 (gen_traced_pop): Likewise.
607 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
608 * breakpoint.c (update_watchpoint): Likewise.
609 * findcmd.c (parse_find_args): Use local variable for type
610 instead of length.
611 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
612 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
613 (h8300_store_return_value): Likewise.
614 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
615 Use i386_darwin_arg_type_alignment directly.
616 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
617 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
618 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
619 (m68hc11_extract_return_value): Likewise.
620 * mep-tdep.c (mep_push_dummy_call): Likewise.
621 * printcmd.c (float_type_from_length): Likewise.
622 * s390-tdep.c (s390_value_from_register): Likewise.
623 * stack.c (read_frame_arg): Likewise.
624 * tracepoint.c (encode_actions_1): Likewise.
625 * valops.c (value_fetch_lazy): Use local variable for type
626 instead of length. Use TYPE_LENGTH directly.
627 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
628
629 2012-09-25 Joel Brobecker <brobecker@adacore.com>
630
631 * symtab.c (skip_prologue_sal): Fix typo in comment.
632
633 2012-09-25 Joel Brobecker <brobecker@adacore.com>
634
635 * linespec.c (create_sals_line_offset): Fix typo in comment.
636
637 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
638
639 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
640 use plongest to print the array size.
641
642 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
643
644 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
645 * p-valprint.c (pascal_type_print_base): Likewise.
646
647 2012-09-22 Yao Qi <yao@codesourcery.com>
648
649 * remote.c (remote_get_trace_status): Remove setting default
650 values of fields of 'ts'.
651
652 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
653
654 Fix internal error on canonicalization of clang types.
655 * cp-name-parser.y (operator): New comment at make_operator call for
656 new, delete, new[] and delete[].
657 (exp): Use "sizeof ". Add new comment at make_operator call.
658
659 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
660
661 Fix disassemble without parameters in tailcall frame.
662 * cli/cli-cmds.c (disassemble_current_function): Use
663 get_frame_address_in_block.
664
665 2012-09-21 Tom Tromey <tromey@redhat.com>
666
667 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
668 TYPE_CODE_UNION>: Unify, removing a goto.
669
670 2012-09-21 Tom Tromey <tromey@redhat.com>
671
672 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
673
674 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
675
676 * findvar.c (read_frame_register_value): Mark the result value as
677 optimized out if any of the input registers have been optimized out.
678
679 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
680
681 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
682
683 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
684
685 * eval.c (evaluate_subexp_standard): Eliminate single-use
686 variable LOWER.
687
688 2012-09-21 Yao Qi <yao@codesourcery.com>
689
690 * mi/mi-interp.c: Declare mi_record_changed.
691 (mi_interpreter_init): Call observer_attach_record_changed.
692 (mi_record_changed): New.
693 * record.c (record_open): Call observer_notify_record_changed.
694 (cmd_record_stop): Call observer_notify_record_changed.
695 * NEWS: Mention it.
696
697 2012-09-20 Tom Tromey <tromey@redhat.com>
698
699 * NEWS: Update.
700 * python/python.c (finalize_python): New function.
701 (_initialize_python): Make a final cleanup.
702
703 2012-09-19 Doug Evans <dje@google.com>
704
705 * buildsym.h (param_symbols): Delete, unused.
706 (context_stack): Delete member "params", unused.
707 * buildsym.c (push_context): Update.
708 * dwarf2read.c (read_func_scope): Update.
709
710 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
711
712 * sh-tdep.c (sh_register_convert_to_virtual)
713 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
714 all callers. Just do a memcpy if not the little-endian case.
715
716 * h8300-tdep.c (h8300_gdbarch_init): Invoke
717 set_gdbarch_double_format and set_gdbarch_long_double_format.
718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
719 set_gdbarch_double_format.
720 * sh-tdep.c (sh_gdbarch_init): Likewise.
721
722 * NEWS: Document the removal of SH's 'regs' command.
723 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
724 command.
725
726 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
727
728 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
729 `jump'.
730
731 2012-09-18 Joel Brobecker <brobecker@adacore.com>
732
733 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
734 language when iterating over symbols.
735
736 2012-09-18 Yao Qi <yao@codesourcery.com>
737
738 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
739 (mi_interpreter_init): Call observer_attach_tsv_created and
740 observer_attach_tsv_deleted.
741 (mi_tsv_created, mi_tsv_deleted): New.
742 * tracepoint.c (delete_trace_state_variable): Call
743 observer_notify_tsv_deleted.
744 (trace_variable_command): Call observer_notify_tsv_created.
745 (delete_trace_variable_command): Call
746 observer_notify_tsv_deleted.
747 (create_tsv_from_upload): Call observer_notify_tsv_created.
748 * NEWS: Mention it.
749
750 2012-09-18 Yao Qi <yao@codesourcery.com>
751
752 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
753 if traceframe changed.
754 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
755 "trace-find".
756 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
757 (mi_interpreter_init): Hook mi_traceframe_changed to observer
758 'traceframe_changed'.
759 (mi_traceframe_changed): New.
760 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
761 New field.
762 * NEWS: Mention the new MI notification.
763
764 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
765
766 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
767
768 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
771 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
772 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
773 Extend code also for PaX support. Convert all gdb_assert to warning
774 calls.
775
776 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 Implement auto-load user conveniences suggested by Doug Evans.
779 * auto-load.c: Include top.h.
780 (file_is_auto_load_safe): New variable advice_printed. Print advice.
781 (_initialize_auto_load): New variable scripts_directory_help. Mention
782 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
783 scripts-directory. Document in online help one can use also files for
784 set auto-load safe-path.
785 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
786 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
787
788 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
789
790 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
791 of LEN.
792
793 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
794
795 * m2-valprint.c (m2_print_array_contents): Eliminate variable
796 ELTLEN and use TYPE_LENGTH directly.
797 (m2_val_print): Likewise.
798 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
799 variable LEN and use TYPE_LENGTH directly.
800 (m68k_svr4_store_return_value): Likewise.
801 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
802 ARGLEN and use TYPE_LENGTH directly.
803 (mips_o64_push_dummy_call): Likewise.
804 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
805 variable LENGTH and use TYPE_LENGTH directly.
806 (s390_function_arg_float): Likewise.
807 (s390_function_arg_integer): Likewise.
808 (s390_push_dummy_call): Likewise.
809 (s390_return_value_convention): Likewise.
810 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
811 TYPE_LENGTH directly.
812
813 2012-09-17 Yao Qi <yao@codesourcery.com>
814
815 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
816 Update comment to add_setshow_integer_cmd.
817 * cli/cli-setshow.c (do_set_command): Handle case
818 'var_zuinteger_unlimited'.
819 (do_show_command): Likewise.
820 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
821 for command 'remotetimeout'.
822 * command.h (enum var_types): New zuinteger_unlimited. Update comment
823 to var_integer.
824 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
825 for command 'set listsize'.
826
827 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
828
829 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
830 variable LEN.
831
832 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 PR 14119
835 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
836 (frame_pop): Drop also TAILCALL_FRAME frames.
837 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
838
839 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
840 Pedro Alves <palves@redhat.com>
841
842 PR 14548
843 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
844 function start if we are already at function start. Both for
845 reverse-next and for reverse-step into function without line number
846 info.
847
848 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
849
850 Code cleanup - rename 'inline' depth to 'artificial' depth.
851 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
852 frame_id_artificial_p, extend the comment.
853 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
854 * frame.c (fprint_frame_id): Rename at a user, change debug output
855 text to "artificial=".
856 (skip_inlined_frames): Rename to ...
857 (skip_artificial_frames): ... here. Extend the comment.
858 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
859 (frame_id_inlined_p): Rename to ...
860 (frame_id_artificial_p): ... here. Rename at a user.
861 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
862 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
863 at a user.
864 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
865 Extend the comment.
866 (frame_id_inlined_p): Rename to ...
867 (frame_id_artificial_p): ... here.
868 * inline-frame.c (inline_frame_this_id): Rename at a user.
869
870 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
871
872 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
873 vector variables using vector_size syntax rather than array
874 syntax.
875
876 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
877
878 * valarith.c (value_concat): Replace unsafe ALLOCA with
879 XMALLOC/XFREE.
880
881 2012-09-14 Pedro Alves <palves@redhat.com>
882
883 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
884
885 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
886
887 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
888 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
889 data-directory as appropriate.
890
891 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
892
893 * printcmd.c (ui_printf): Eliminate single-use variable
894 PARAM_LEN.
895
896 2012-09-14 Yao Qi <yao@codesourcery.com>
897 Pedro Alves <palves@redhat.com>
898
899 * valops.c (value_assign): Move observer_notify_target_changed
900 below to replace reinit_frame_cache.
901
902 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
903
904 Refactor Python "gdb" module into a proper Python package, by
905 introducing a new "_gdb" module for code implemented in C, and
906 using reload/__import__ instead of exec.
907 * python/lib/gdb/__init__.py: Import * from _gdb.
908 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
909 prompt_hook, sys.argv): Moved from finish_python_initialization.
910 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
911 (packages, auto_load_packages): New list and function replacing
912 module_dict and auto-loading code, using __file__ instead of
913 gdb.PYTHONDIR and reload/__import__ instead of exec.
914 (GdbSetPythonDirectory): Replacing function of the same name
915 from finish_python_initialization, using reload/__import__ instead
916 of exec, as well as call auto_load_packages.
917 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
918 gdb_python_module and not gdb_module.
919 * python/python-internal.h (gdb_python_module): Declare.
920 * python/python.c (gdb_python_module): New global.
921 (before_prompt_hook): Check gdb_python_module and not gdb_module.
922 (_initialize_python): Rename gdb module to _gdb.
923 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
924 (finish_python_initialization): Move Python code to
925 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
926 __main__.
927
928 2012-09-13 Pedro Alves <palves@redhat.com>
929
930 * Makefile.in (COMMON_OBS): Add registry.o.
931 * registry.c: New file.
932 * registry.h (struct registry_container): Declare.
933 (registry_data_callback): New typedef.
934 (struct registry_data, struct registry_data_registration, struct
935 registry_data_registry): New type.
936 (register_data_with_cleanup, registry_alloc_data)
937 (registry_callback_adaptor, registry_clear_data)
938 (registry_container_free_data, registry_set_data, registry_data):
939 Declare.
940 (DEFINE_REGISTRY): Refactor structures and functions as shims over
941 the new common structures and functions.
942 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
943 callback typedefs.
944
945 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
946
947 * remote.c (remote_insert_hw_breakpoint): Throw exception if
948 there is an error inserting hardware breakpoints and use the
949 error message from the target.
950
951 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
952 Catch this exception and print the error message contained within. Do not
953 print the default hardware error breakpoint message in this case.
954
955 2012-09-12 Doug Evans <dje@google.com>
956
957 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
958 cu == NULL.
959
960 2012-09-11 Doug Evans <dje@google.com>
961
962 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
963 .gdb_index symbol attributes if there are none.
964
965 2012-09-11 Joel Brobecker <brobecker@adacore.com>
966
967 * symtab.h (struct minimal_symbol) [has_size]: New field.
968 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
969 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
970 * printcmd.c (build_address_symbolic): Only filter out zero-sized
971 minimal symbols if the symbol's size is actually known.
972 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
973 of msymbol's size field. Add comment.
974 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
975 SET_MSYMBOL_SIZE to set the minimal symbol size.
976
977 2012-09-11 Joel Brobecker <brobecker@adacore.com>
978
979 * minsyms.c (install_minimal_symbols): Use memset to fill entire
980 minimal_symbol struct object, rather than setting some of its
981 fields one by one.
982
983 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
984
985 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
986 passed_a_ptr flag when displaying typedef types.
987
988 2012-09-10 Joel Brobecker <brobecker@adacore.com>
989
990 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
991 the optimized_out flag is preserved.
992
993 2012-09-10 Anthony Green <green@moxielogic.com>
994
995 * moxie-tdep.c (moxie_analyze_prologue): Update for function
996 prologue changes in GCC.
997
998 2012-09-10 Keith Seitz <keiths@redhat.com>
999
1000 PR gdb/13483
1001 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1002 (BOOL_CONVERSION_BADNESS): ... this.
1003 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1004 (rank_one_type): Allow all boolean conversions
1005 permitted by the standard.
1006
1007 2012-09-06 Tom Tromey <tromey@redhat.com>
1008
1009 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1010 Don't decref py_objfile.
1011
1012 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1013
1014 Do not enable -lmcheck by default when Python is enabled with
1015 threading support.
1016 * configure.ac: (python_has_threads) New variable, by testing
1017 if WITH_THREAD is defined in Python.h.
1018 Move --enable-lmcheck after --with-python.
1019 Do not enable -lmcheck by default if python_has_threads=yes.
1020 Warn if --enable-lmcheck and python_has_threads=yes.
1021 * configure: Regenerate.
1022
1023 2012-08-31 Yao Qi <yao@codesourcery.com>
1024
1025 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1026 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1027 Update some commands.
1028 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1029 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1030 to 1.
1031
1032 2012-08-31 Yao Qi <yao@codesourcery.com>
1033
1034 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1035
1036 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1037
1038 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1039
1040 2012-08-29 Doug Evans <dje@google.com>
1041
1042 * main.c (print_gdb_help): Remove reference to
1043 --use-deprecated-index-sections.
1044
1045 2012-08-28 Yao Qi <yao@codesourcery.com>
1046
1047 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1048 (init_cmds): Call add_setshow_uinteger_cmd for command
1049 'max-user-call-depth'.
1050 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1051 declaration of 'max_user_call_depth'.
1052 * frame.c (backtrace_limit): Add 'unsigned'.
1053 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1054 'limit'.
1055 * remote.c (remoteaddresssize): Add 'unsigned'.
1056 (remote_address_masked): Change local var 'address_size' to
1057 'unsigned'.
1058 (_initialize_remote): Call add_setshow_uinteger_cmd for
1059 'remoteaddresssize'.
1060 * top.c (history_size): Add 'unsigned'.
1061 (show_commands): Change local variables to 'unsigned'.
1062 (set_history_size_command): Don't check history_size is negative.
1063 Adjust the condition to call unstifle_history and set history_size
1064 to UNIT_MAX.
1065
1066 2012-08-28 Pedro Alves <palves@redhat.com>
1067
1068 PR gdb/14428
1069
1070 * infcmd.c (default_print_one_register_info): New, factored out
1071 from default_print_registers_info.
1072 (default_print_registers_info): Use it. Mark value unavailable if
1073 necessary.
1074 (registers_info): Print user registers with
1075 default_print_one_register_info.
1076
1077 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR tui/14486
1080 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1081 is not NULL before referencing it.
1082
1083 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1084
1085 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1086 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1087 original PC for it.
1088
1089 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1090 Jan Kratochvil <jan.kratochvil@redhat.com>
1091
1092 * auto-load.c (auto_load_objfile_script): Rename to ...
1093 (auto_load_objfile_script_1): ... here, change variable realname to
1094 parameter realname, document it, add return value, add variable retval.
1095 (auto_load_objfile_script): New function.
1096
1097 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1100 followed by a whitespace.
1101
1102 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 PR gdb/14494.
1105 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1106 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1107 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1108 here.
1109
1110 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1111
1112 * memattr.c (create_mem_region): Fix memory region overlapping
1113 checking.
1114
1115 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1116
1117 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1118 with xmalloc/cleanup.
1119 * mt-tdep.c (mt_push_dummy_call): Likewise.
1120 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1121 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1122
1123 2012-08-24 Yao Qi <yao@codesourcery.com>
1124
1125 * jv-exp.y (push_expression_name): Add "." at the end of error
1126 message.
1127
1128 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1129
1130 Document how to return from "python-interactive" to GDB.
1131 * python/python.c (_initialize_python): Update documentation.
1132
1133 2012-08-23 Pedro Alves <palves@redhat.com>
1134
1135 * infrun.c (_initialize_infrun) <handle command help text>:
1136 Mention that multiple signals are supported.
1137
1138 2012-08-23 Pedro Alves <palves@redhat.com>
1139
1140 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1141 string.
1142
1143 2012-08-23 Yao Qi <yao@codesourcery.com>
1144
1145 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1146 (tfind_1): Don't call registers_changed, set_traceframe_num,
1147 and clear_traceframe_info.
1148 Call set_current_traceframe.
1149 (set_current_traceframe): call set_traceframe_num.
1150
1151 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1152
1153 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1154 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1155
1156 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1157
1158 Enable readline in Python in a GDB-specific way and block the
1159 standard Python readline module to prevent conflicts with GDB.
1160 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1161 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1162 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1163 * python/py-gdb-readline.c: New file.
1164 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1165 prototype.
1166 * python/python.c (_initialize_python): Call
1167 gdbpy_initialize_gdb_readline.
1168
1169 2012-08-22 Keith Seitz <keiths@redhat.com>
1170
1171 * defs.h: Include build-gnulib/config.h
1172
1173 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1174
1175 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1176 and blx pc.
1177
1178 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1179
1180 Add a new "python-interactive" command that starts a standard
1181 Python interactive prompt with "pi" as alias, and add "py" as
1182 an alias to "python".
1183 * NEWS: Mention the new commands.
1184 * python/python.c (eval_python_command): New function.
1185 (python_interactive_command): For "python-interactive" with
1186 arguments, call eval_python_command. For "python-interactive"
1187 without arguments, call PyRun_InteractiveLoop.
1188 (_initialize_python): Add "python-interactive" command with
1189 "pi" as alias, and add "py" as an alias to "python".
1190
1191 2012-08-22 Tom Tromey <tromey@redhat.com>
1192
1193 * defs.h (quit_flag): Don't declare.
1194 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1195 (QUIT): Use new functions.
1196 * event-top.c (command_handler): Use clear_quit_flag.
1197 (handle_sigint): Use set_quit_flag.
1198 (async_request_quit): Use check_quit_flag. Don't check
1199 immediate_quit.
1200 * exceptions.c (throw_exception): Use clear_quit_flag.
1201 * main.c (captured_main): Use clear_quit_flag.
1202 * python/python.c (clear_quit_flag, set_quit_flag)
1203 (check_quit_flag): New functions.
1204 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1205 clear_quit_flag.
1206 * remote.c (remote_wait_as): Use check_quit_flag,
1207 clear_quit_flag.
1208 (remote_start_remote): Call QUIT.
1209 * symfile.c (load_progress): Use check_quit_flag.
1210 * top.c (command_loop): Use clear_quit_flag.
1211 (command_line_input): Call QUIT.
1212 * utils.c (quit_flag): Conditionally define.
1213 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1214 functions.
1215 (prompt_for_continue): Call QUIT. Use quit, not
1216 async_request_quit.
1217 * remote-mips.c (mips_expect_timeout): Call QUIT.
1218 * monitor.c (monitor_expect): Call QUIT.
1219
1220 2012-08-22 Tom Tromey <tromey@redhat.com>
1221
1222 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1223 (async_init_signals): Update.
1224 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1225 (SIGWINCH_HANDLER_BODY): Remove.
1226
1227 2012-08-22 Tom Tromey <tromey@redhat.com>
1228
1229 * jit.c (jit_object_close_impl): Don't malloc the objfile
1230 name.
1231 * objfiles.c (allocate_objfile): Don't malloc the objfile
1232 name.
1233 (free_objfile): Don't free the objfile name.
1234 * objfiles.h (struct objfile) <name>: Update comment.
1235 * symfile.c (reread_symbols): Fix reference counting. Don't
1236 malloc objfile name.
1237
1238 2012-08-22 Tom Tromey <tromey@redhat.com>
1239
1240 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1241 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1242 (symfile_bfd_open): Likewise.
1243 (generic_load): Likewise.
1244 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1245 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1246 gdb_bfd_open.
1247 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1248 Use gdb_bfd_open.
1249 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1250 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1251 (pmon_load_fast): Likewise.
1252 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1253 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1254 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1255 (macho_check_dsym): Likewise.
1256 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1257 (m32r_upload_command): Likewise.
1258 * gdb_bfd.h (gdb_bfd_cache): Declare.
1259 * gdb_bfd.c (struct gdb_bfd_data): New.
1260 (gdb_bfd_cache): New global.
1261 (struct gdb_bfd_cache_search): New.
1262 (hash_bfd): New function.
1263 (eq_bfd): Likewise.
1264 (gdb_bfd_open): Likewise.
1265 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1266 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1267 gdb_bfd_data.
1268 * exec.c (exec_file_attach): Use gdb_bfd_open.
1269 * dsrec.c (load_srec): Use gdb_bfd_open.
1270
1271 2012-08-22 Tom Tromey <tromey@redhat.com>
1272
1273 * dwarf2read.c (macro_start_file): Update.
1274 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1275 (free_objfile_per_bfd_storage): Destroy macro_cache.
1276 (allocate_objfile, free_objfile): Update.
1277 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1278 New field.
1279 (struct objfile) <macro_cache>: Remove.
1280 * symfile.c (reread_symbols): Update.
1281 * symmisc.c (print_symbol_bcache_statistics): Update.
1282 (print_objfile_statistics): Update.
1283
1284 2012-08-22 Tom Tromey <tromey@redhat.com>
1285
1286 * elfread.c (elf_symtab_read): Update.
1287 * objfiles.c (objfiles_bfd_data): New global.
1288 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1289 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1290 (allocate_objfile, free_objfile): Update.
1291 (_initialize_objfiles): Initialize objfiles_bfd_data.
1292 * objfiles.h (struct objfile_per_bfd_storage): New.
1293 (struct objfile) <per_bfd>: New field.
1294 <filename_cache>: Remove.
1295 (set_objfile_per_bfd): Declare.
1296 * symfile.c (reread_symbols): Update. Call
1297 set_objfile_per_bfd.
1298 (allocate_symtab): Update.
1299 * symmisc.c (print_symbol_bcache_statistics): Update.
1300 (print_objfile_statistics): Print the size of the BFD obstack.
1301
1302 2012-08-22 Tom Tromey <tromey@redhat.com>
1303
1304 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1305 * gdb_bfd.c: Use DEFINE_REGISTRY.
1306 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1307 (gdb_bfd_ref): Call bfd_alloc_data.
1308 (gdb_bfd_unref): Call bfd_free_data.
1309
1310 2012-08-22 Tom Tromey <tromey@redhat.com>
1311
1312 * registry.h (struct registry_fields): New.
1313 (REGISTRY_FIELDS): Redefine.
1314 (REGISTRY_ACCESS_FIELD): New macro.
1315 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1316 functions.
1317
1318 2012-08-22 Tom Tromey <tromey@redhat.com>
1319
1320 * auto-load.c (_initialize_auto_load): Update.
1321 * solib-svr4.c (_initialize_svr4_solib): Update
1322 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1323 * solib-darwin.c (_initialize_darwin_solib): Update.
1324 * registry.h: New file.
1325 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1326 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1327 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1328 (register_program_space_data_with_cleanup)
1329 (register_program_space_data, program_space_alloc_data)
1330 (clear_program_space_data, set_program_space_data)
1331 (program_space_data): Don't declare.
1332 * progspace.c: Use DEFINE_REGISTRY.
1333 (struct program_space_data, struct
1334 program_space_data_registration, struct
1335 program_space_data_registry, program_space_data_registry)
1336 (register_program_space_data_with_cleanup)
1337 (register_program_space_data, program_space_alloc_data)
1338 (program_space_free_data, clear_program_space_data)
1339 (set_program_space_data, program_space_data): Remove.
1340 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1341 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1342 (register_objfile_data_with_cleanup, register_objfile_data)
1343 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1344 declare.
1345 * objfiles.c: Use DEFINE_REGISTRY.
1346 (struct objfile_data, struct objfile_data_registration, struct
1347 objfile_data_registry, objfile_data_registry)
1348 (register_objfile_data_with_cleanup, register_objfile_data)
1349 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1350 (set_objfile_data, objfile_data): Remove.
1351 (_initialize_objfiles): Update.
1352 * jit.c (_initialize_jit): Update.
1353 * inflow.c (_initialize_inflow): Update.
1354 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1355 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1356 (register_inferior_data_with_cleanup, register_inferior_data)
1357 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1358 declare.
1359 * inferior.c: Use DEFINE_REGISTRY.
1360 (struct inferior_data, struct inferior_data_registration, struct
1361 inferior_data_registry, inferior_data_registry)
1362 (register_inferior_data_with_cleanup, register_inferior_data)
1363 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1364 (set_inferior_data, inferior_data): Remove.
1365 * auxv.c (_initialize_auxv): Update.
1366 * ada-lang.c (_initialize_ada_language): Update.
1367 * breakpoint.c (_initialize_breakpoint): Update.
1368 * i386-nat.c (i386_use_watchpoints): Update.
1369
1370 2012-08-22 Tom Tromey <tromey@redhat.com>
1371
1372 * exec.c (exec_close, exec_file_attach): Update.
1373 (add_to_section_table): Initialize 'key' field.
1374 (add_target_sections, remove_target_sections): Add 'key' argument.
1375 * exec.h (add_target_sections, remove_target_sections): Add
1376 'key' argument.
1377 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1378 (reload_shared_libraries_1): Update.
1379 * target.h (struct target_section) <key>: New field.
1380
1381 2012-08-22 Tom Tromey <tromey@redhat.com>
1382
1383 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1384
1385 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1386
1387 * symfile.c (allocate_symtab): Use host_address_to_string
1388 function instead of cast of pointer to long which is not
1389 compatible with x86_64-w64-mingw32 build.
1390
1391 2012-08-19 Andrew Pinski <apinski@cavium.com>
1392
1393 * mips-tdep.c (is_octeon): New function.
1394 (is_octeon_bbit_op): New function.
1395 (mips32_next_pc): Handle Octeon's bbit instructions.
1396 (mips32_instruction_has_delay_slot): Likewise.
1397
1398 2012-08-19 Andrew Pinski <apinski@cavium.com>
1399
1400 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1401 before the function.
1402
1403 2012-08-19 Andrew Pinski <apinski@cavium.com>
1404
1405 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1406
1407 2012-08-19 Keith Seitz <keiths@redhat.com>
1408
1409 PR c++/14365
1410 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1411 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1412
1413 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1414
1415 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1416 The typo broke "make TAGS".
1417
1418 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1419
1420 GDB 7.5 released.
1421
1422 2012-08-17 Keith Seitz <keiths@redhat.com>
1423
1424 PR c++/13356
1425 * gdbtypes.c (strict_type_checking): New variable.
1426 (show_strict_type_checking): New function.
1427 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1428 if strict type checking is disabled.
1429 (_initialize_gdbtypes): Add "check type" subcommand.
1430 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1431
1432 2012-08-17 Keith Seitz <keiths@redhat.com>
1433
1434 * language.h (type_mode): Remove.
1435 (type_check): Remove.
1436 (struct language_defn): Remove la_type_check.
1437 (STRICT_TYPE): Remove unused macro.
1438 (type_error): Remove.
1439 * language.c (set_type_range_case): Renamed to ...
1440 (set_range_case): ... this. Update all callers.
1441 Remove type_mode/type_check.
1442 (type_mode): Remove.
1443 (type_check): Remove.
1444 (show_type_command): Remove.
1445 (set_type_command): Remove.
1446 (language_info): Remove type checking output.
1447 (type_error): Remove unused function.
1448 (range_error): Update comment.
1449 (unknown_language_defn): Remove la_type_check.
1450 (auto_language_defn): Likewise.
1451 (local_language_defn): Likewise.
1452 (_initialize_language): Remove "check type" subcommand.
1453 * ada-lang.c (ada_language_defn): Remove la_type_check.
1454 * c-lang.c (c_language_defn): Likewise.
1455 (cplus_language_defn): Likewise.
1456 (asm_language_defn): Likewise.
1457 (minimal_language_defn): Likewise.
1458 * d-lang.c (d_language_defn): Likewise.
1459 * f-lang.c (f_language_defn): Likewise.
1460 * go-lang.c (go_language_defn): Likewise.
1461 * jv-lang.c (java_language_defn): Likewise.
1462 * m2-lang.c (m2_language_defn): Likewise.
1463 * objc-lang.c (objc_language_defn): Likewise.
1464 * opencl-lang.c (opencl_language_defn): Likewise.
1465 * p-lang.c (pascal_language_defn): Likewise.
1466
1467 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1468
1469 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1470
1471 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1472
1473 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1474 New function.
1475 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1476 using the regache. Use ia64_hpux_get_register_from_save_state_t
1477 to access the bsp and bspstore registers if not.
1478
1479 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1480
1481 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1482 * breakpoint.c (detach_breakpoints): Change pid parameter into
1483 a ptid. Adjust code accordingly.
1484 * infrun.c (handle_inferior_event): Delete variable child_pid.
1485 Update call to detach_breakpoints to pass the child ptid for
1486 fork events.
1487 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1488 assert that inferior_ptid's lwp is zero.
1489 (linux_handle_extended_wait): Update call to detach_breakpoints.
1490 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1491 detach_breakpoints.
1492
1493 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1494
1495 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1496 parent, only call detach_breakpoints if tts.tts_event ==
1497 TTEVT_VFORK.
1498
1499 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1500
1501 * dwarf2-frame.c (dwarf2_frame_cache): Use
1502 get_frame_address_in_block instead of get_frame_pc as
1503 the bound for executing the frame's FDE.
1504
1505 2012-08-16 Yao Qi <yao@codesourcery.com>
1506
1507 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1508 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1509 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1510 (c_type_print_varspec_suffix): Likewise.
1511 * eval.c (evaluate_subexp_standard): Likewise.
1512 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1513 (f_type_print_varspec_suffix): Likewise.
1514 * gdbtypes.c (is_scalar_type): Likewise.
1515 (recursive_dump_type): Likewise.
1516 * infcall.c (value_arg_coerce): Likewise.
1517 * m2-valprint.c (m2_val_print): Likewise.
1518 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1519 (pascal_type_print_varspec_suffix): Likewise.
1520 (pascal_type_print_base): Likewise.
1521 * p-valprint.c (pascal_val_print): Likewise.
1522 (pascal_val_print): Likewise.
1523 * valops.c (value_slice): Likewise.
1524 * valprint.c (scalar_type_p): Likewise.
1525 * valarith.c (value_bitstring_subscript): Remove.
1526 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1527 Remove comment on TYPE_CODE_BITSTRING.
1528
1529 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1530 TYPE_CODE_BITSTRING.
1531
1532 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1533 slot 0.
1534
1535 2012-08-16 Yao Qi <yao@codesourcery.com>
1536
1537 * tracepoint.c (trace_find_none_command): Remove.
1538 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1539
1540 2012-08-16 Yao Qi <yao@codesourcery.com>
1541
1542 * remote.c (handle_notification): Remove parameter 'length'.
1543 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1544
1545 2012-08-15 Keith Seitz <keiths@redhat.com>
1546
1547 * gdbtypes.c (opaque_type_resolution): Make static.
1548 Add missing comment.
1549 (overload_debug): Add missing comment.
1550 (show_opaque_type_resolution): Likewise.
1551 (show_overload_debug): Likewise.
1552 (print_bit_vector): Remove unnecessary forward declaration.
1553 (print_arg_types): Likewise.
1554 (dump_fn_fieldlists): Likewise.
1555 (print_cplus_stuff): Likewise.
1556
1557 2012-08-15 Tom Tromey <tromey@redhat.com>
1558
1559 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1560 (gdb_bfd_ref): Initialize new field.
1561 (gdb_bfd_unref): Unref the archive BFD.
1562 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1563 parent archive.
1564
1565 2012-08-15 Tom Tromey <tromey@redhat.com>
1566
1567 PR python/14387:
1568 * python/py-bpevent.c (create_breakpoint_event_object): Update
1569 comment.
1570 * python/py-event.c (evpy_add_attribute): Update comment.
1571 * python/py-exitedevent.c (create_exited_event_object): Fix
1572 reference counting and error handling.
1573 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1574 Fix reference counting.
1575 * python/py-signalevent.c (create_signal_event_object): Fix
1576 reference counting and error handling.
1577 * python/py-stopevent.c (emit_stop_event): Fix reference
1578 counting.
1579 * python/py-threadevent.c (get_event_thread): Return a
1580 borrowed reference.
1581 * python/py-type.c (convert_field): Fix reference counting.
1582
1583 2012-08-15 Tom Tromey <tromey@redhat.com>
1584
1585 * dwarf2read.c (dwarf_decode_macro_bytes)
1586 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1587 as hash key.
1588
1589 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1590
1591 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1592 stepi, nexti, finish, next, step, jump, and continue commands.
1593 * infrun.c (_initialize_infrun): Update help text for the handle
1594 command.
1595
1596 2012-08-14 Doug Evans <dje@google.com>
1597
1598 * gdbtypes.c (struct extra): Delete, unused.
1599
1600 * gdbtypes.c: Whitespace cleanup.
1601 (address_space_name_to_int): Remove "extern" from definition.
1602 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1603
1604 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1605 TYPE_POINTER_TYPE (type).
1606
1607 2012-08-14 Gary Benson <gbenson@redhat.com>
1608
1609 * solib-svr4.c (svr4_free_library_list): Use free_so.
1610
1611 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1612
1613 * .gitignore: Add go-exp.c.
1614
1615 2012-08-13 Doug Evans <dje@google.com>
1616
1617 * value.c (show_convenience): Tweak comment.
1618 (_initialize_values): Mention convenience functions in the help text
1619 for "show convenience".
1620
1621 2012-08-13 Yao Qi <yao@codesourcery.com>
1622
1623 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1624 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1625 TERNOP_SLICE_COUNT.
1626 * eval.c (evaluate_subexp_standard): Likewise.
1627 * expprint.c (print_subexp_standard): Likewise.
1628 (dump_subexp_body_standard): Likewise.
1629 * parse.c (operator_length_standard): Likewise.
1630
1631 2012-08-13 Yao Qi <yao@codesourcery.com>
1632
1633 * std-operator.def: Remove OP_BITSTRING.
1634 * breakpoint.c (watchpoint_exp_is_const): Update.
1635 * eval.c (evaluate_subexp_standard): Remove handling to
1636 OP_BITSTRING.
1637 * expprint.c (print_subexp_standard): Likewise.
1638 (dump_subexp_body_standard): Likewise.
1639 * parse.c (operator_length_standard): Likewise.
1640 * valops.c (value_bitstring): Remove.
1641 * value.h: Remove the declaration of 'value_bitstring'.
1642
1643 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1644
1645 * linespec.c (find_methods): Remove unused variables `i1' and
1646 `name_len'.
1647 (decode_line_full): Likewise for `arg_start'.
1648
1649 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1650
1651 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1652 (zlib_decompress_section): Likewise for `section_data'.
1653 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1654
1655 2012-08-10 Doug Evans <dje@google.com>
1656
1657 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1658 * NEWS: Document them.
1659 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1660 function/strfns.py.
1661 * python/py-type.c (typy_array_1): New function.
1662 (typy_array): Call it.
1663 (typy_vector): New function.
1664 (type_object_methods): Add "vector".
1665 * python/lib/gdb/function/__init__.py: New file.
1666 * python/lib/gdb/function/strfns.py: New file.
1667
1668 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1669
1670 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1671 for TYPE_FIELD_BITPOS.
1672 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1673
1674 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1675
1676 PR cli/10436:
1677 * common/vec.h (VEC_merge): Define.
1678 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1679 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1680 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1681 * completer.c: Include gdb_signals.h.
1682 (signal_completer): Define.
1683 * completer.h (signal_completer): Add prototype.
1684 * infcmd.c (_initialize_infcmd): Assign the command
1685 completer for "signal" to handle_completer.
1686 * infrun.c: Include completer.h.
1687 (handle_completer): Define.
1688 (_initialize_infrun): Declare a new local variable c. Store the
1689 result of add_com("handle") to it. Assign the command
1690 completer for "handle" to handle_completer.
1691
1692 2012-08-09 Yao Qi <yao@codesourcery.com>
1693
1694 * cli/cli-decode.c (set_cmd_prefix): New.
1695 (lookup_cmd_for_prefixlist): New.
1696 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1697 of each cmd_list_element in *prefixlist.
1698 (add_setshow_cmd_full): set_cmd_prefix.
1699 (add_alias_cmd): Likewise.
1700 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1701 Declare 'auto_boolean_enums'.
1702 * cli/cli-setshow.c: Include "observer.h".
1703 (notify_command_param_changed_p): New.
1704 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1705 Remove 'static'.
1706 (do_setshow_command): Split it to ...
1707 (do_set_command, do_show_command): ... them. New.
1708 (do_set_command): Call observer_notify_command_param_changed if
1709 notify_command_param_changed_p returns true.
1710 (cmd_show_list): Caller update.
1711 * auto-load.c (set_auto_load_cmd): Likewise.
1712 * remote.c (show_remote_cmd): Likewise.
1713 * cli/cli-setshow.h: Update declarations.
1714 * top.c (execute_command): Call do_set_command and do_show_command.
1715
1716 * NEWS: Mention new MI notification.
1717 * mi/mi-interp.c: Declare mi_command_param_changed.
1718 (mi_interpreter_init): Attach mi_command_param_changed to
1719 observer command_param_changed.
1720 (mi_command_param_changed): New.
1721 Remove mi_suppress_breakpoint_notifications.
1722 Define global variable mi_suppress_notification.
1723 (mi_breakpoint_created): Update.
1724 (mi_breakpoint_deleted): Likewise.
1725 (mi_breakpoint_modified): Likewise.
1726 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1727 'gdb-set' and set mi_suppress_notification.
1728 * mi/mi-main.h: (mi_suppress_notification): New struct.
1729
1730 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1731 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1734
1735 2012-08-09 Yao Qi <yao@codesourcery.com>
1736
1737 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1738 (skiplist): Move it to skip.c.
1739 (init_cmd_lists): Remove code setting enablebreaklist and
1740 skiplist to NULL.
1741 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1742 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1743 skiplist.
1744 * gdbcmd.h: Likewise.
1745 * skip.c (_initialize_step_skip): Move 'skiplist' from
1746 cli/cli-cmds.c.
1747
1748 2012-08-09 Yao Qi <yao@codesourcery.com>
1749
1750 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1751 * gnu-nat.c, symfile.c: Likewise.
1752
1753 2012-08-08 Aaron Gamble <agamble@google.com>
1754
1755 * utils.c (prompt_for_continue_wait_time): New static global.
1756 (make_command_stats_cleanup): Initialize it.
1757 (report_command_stats): Subtract time waiting for user.
1758 (prompt_for_continue): Track time waiting for user.
1759 (defaulted_query): Track time waiting for user.
1760
1761 2012-08-08 Doug Evans <dje@google.com>
1762
1763 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1764 UNOP_MEMVAL_TYPE.
1765 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1766 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1767 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1768 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1769 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1770 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1771 elt.
1772 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1773 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1774 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1775 (dump_prefix_expression): Handle OP_TYPE.
1776
1777 2012-08-08 Keith Seitz <keiths@redhat.com>
1778
1779 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1780 addr_start.
1781
1782 2012-08-08 Doug Evans <dje@google.com>
1783
1784 * linux-thread-db.c: #include "gdb_vecs.h".
1785 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1786 updated.
1787 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1788 (thread_db_load_search): Use a vector to iterate over path elements.
1789 Handle text appearing after "$pdir".
1790
1791 * gdb_string.h: Moved to ...
1792 * common/gdb_string.h: ... here.
1793 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1794 gdb_string.h and gdb_assert.h.
1795
1796 2012-08-08 Yao Qi <yao@codesourcery.com>
1797
1798 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1799 (tic6x_value_to_register): Likewise.
1800 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1801 and set_gdbarch_value_to_register.
1802
1803 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1804 Jean-Marc Saffroy <saffroy@gmail.com>
1805
1806 PR 11804
1807 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1808 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1809 * gcore.c (gcore_create_callback): New function comment. Add modified
1810 parameter. Only write modified regions. Set SEC_READONLY exactly
1811 according to MODIFIED.
1812 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1813 the passed modified value to FUNC.
1814 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1815 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1816 first. New variables modified and has_anonymous. Parse the lines of
1817 smaps file. Add the passed MODIFIED value to FUNC.
1818 * procfs.c (find_memory_regions_callback): Add the passed modified
1819 value.
1820
1821 2012-08-06 Tom Tromey <tromey@redhat.com>
1822
1823 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1824 (dwarf2_frame_cache): Use it.
1825 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1826 cache initialization constraint.
1827
1828 2012-08-06 Tom Tromey <tromey@redhat.com>
1829
1830 PR python/14386:
1831 * varobj.c (update_dynamic_varobj_children): Don't call
1832 PyIter_Check.
1833
1834 2012-08-06 Tom Tromey <tromey@redhat.com>
1835
1836 PR cli/14392:
1837 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1838
1839 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1840
1841 * NEWS: New entry for 'cd' default parameters.
1842 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1843
1844 2012-08-03 Tom Tromey <tromey@redhat.com>
1845
1846 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1847 return.
1848
1849 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1850
1851 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1852 to attempting lseek/write.
1853 (inf_child_fileio_pread): Likewise for pread.
1854
1855 2012-08-02 Yao Qi <yao@codesourcery.com>
1856
1857 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1858 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1859 add_setshow_zinteger_cmd.
1860 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1861 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1862 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1863 instead of add_setshow_zinteger_cmd.
1864 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1865 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1866 instead of add_setshow_zinteger_cmd.
1867 * frame.c (frame_debug): Add 'unsigned'.
1868 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1869 add_setshow_zinteger_cmd.
1870 * frame.h: Update the declaration of 'frame_debug'.
1871 * gdbtypes.c (overload_debug): Add 'unsigned'.
1872 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1873 add_setshow_zinteger_cmd.
1874 * inferior.h: Update declaration of 'debug_infrun'.
1875 * infrun.c (debug_infrun): Add 'unsigned'.
1876 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1877 add_setshow_zinteger_cmd.
1878 * jit.c (jit_debug): Add 'unsigned'.
1879 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1880 add_setshow_zinteger_cmd.
1881 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1882 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1883 instead of add_setshow_zinteger_cmd.
1884 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1885 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1886 add_setshow_zinteger_cmd.
1887 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1888 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1889 instead of add_setshow_zinteger_cmd.
1890 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1891 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1892 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1893 intead of add_setshow_zinteger_cmd.
1894 * mips-tdep.c (mips_debug): Add 'unsigned'.
1895 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1896 instead of add_setshow_zinteger_cmd.
1897 * monitor.c (monitor_debug): Add 'unsigned'.
1898 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1899 add_setshow_zinteger_cmd.
1900 * observer.c (observer_debug): Add 'unsigned'.
1901 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1902 add_setshow_zinteger_cmd.
1903 * parse.c (expressiondebug): Add 'unsigned'.
1904 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1905 add_setshow_zinteger_cmd.
1906 * record.c (record_debug): Add 'unsigned'.
1907 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1908 add_setshow_zinteger_cmd.
1909 * record.h: Update the declaration of 'record_debug'.
1910 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1911 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1912 add_setshow_zinteger_cmd.
1913 * serial.c (global_serial_debug_p): Add 'unsigned'.
1914 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1915 add_setshow_zinteger_cmd.
1916 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1917 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1918 add_setshow_zinteger_cmd.
1919 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1920 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1921 add_setshow_zinteger_cmd.
1922 * target.c (targetdebug): Add 'unsigned'.
1923 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1924 add_setshow_zinteger_cmd.
1925 * valops.c (overload_debug): Add 'unsigned'.
1926 * varobj.c (varobjdebug): Add 'unsigned'.
1927 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1928 add_setshow_zinteger_cmd.
1929 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1930 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1931 instead of add_setshow_zinteger_cmd.
1932
1933 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1934 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1935 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1936 instead of add_setshow_zinteger_cmd.
1937 * gdbarch.c, gdbarch.h: Re-generated.
1938
1939 2012-08-02 Yao Qi <yao@codesourcery.com>
1940
1941 * nto-tdep.c: Don't include cli/cli-decode.h and
1942 cli/cli-cmds.h.
1943 (_initialize_nto_tdep): Remove.
1944 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1945 Remove field.
1946 Remove macro nto_internal_debugging.
1947
1948 2012-08-01 Richard Henderson <rth@redhat.com>
1949
1950 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1951 (mep-*-*) [gdb_target_obs]: Likewise.
1952
1953 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1954
1955 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1956 linux_get_siginfo_type.
1957
1958 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1961 AT_ENTRY_POINT.
1962 (call_function_by_hand) <ON_STACK>: Call write_memory with
1963 gdbarch_breakpoint_from_pc, if possible.
1964 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1965 here.
1966
1967 2012-07-31 Yao Qi <yao@codesourcery.com>
1968
1969 * tracepoint.c: Add 'static' for some variables.
1970
1971 2012-07-31 Yao Qi <yao@codesourcery.com>
1972
1973 * go32-nat.c: Declare _initialize_go32_nat.
1974 * ser-go32.c: Declare _initialize_ser_dos.
1975 * top.c (do_chdir_cleanup): Add 'static'.
1976
1977 2012-07-30 Keith Seitz <keiths@redhat.com>
1978
1979 * linespec.c (linespec_lex_number): A number followed
1980 by quotes is a valid number, too.
1981
1982 2012-07-30 Tom Tromey <tromey@redhat.com>
1983
1984 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1985
1986 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1987
1988 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1989 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1990
1991 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1992
1993 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1994 invalid or reevaluated to prevent prevent references to possibly
1995 delete'd type objects being left in the varobj.
1996
1997 2012-07-27 Tom Tromey <tromey@redhat.com>
1998 Jan Kratochvil <jan.kratochvil@redhat.com>
1999
2000 * copying.awk: Print buffer-read-only and vi ro markers.
2001 * copying.c: Rebuild.
2002 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2003 * gdbarch.c, gdbarch.h: Rebuild.
2004 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2005 buffer-read-only and vi ro markers.
2006 * features/arm-with-iwmmxt.c: Rebuild.
2007 * features/arm-with-m-fpa-layout.c: Rebuild.
2008 * features/arm-with-m-vfp-d16.c: Rebuild.
2009 * features/arm-with-m.c: Rebuild.
2010 * features/arm-with-neon.c: Rebuild.
2011 * features/arm-with-vfpv2.c: Rebuild.
2012 * features/arm-with-vfpv3.c: Rebuild.
2013 * features/i386/amd64-avx-linux.c: Rebuild.
2014 * features/i386/amd64-avx.c: Rebuild.
2015 * features/i386/amd64-linux.c: Rebuild.
2016 * features/i386/amd64.c: Rebuild.
2017 * features/i386/i386-avx-linux.c: Rebuild.
2018 * features/i386/i386-avx.c: Rebuild.
2019 * features/i386/i386-linux.c: Rebuild.
2020 * features/i386/i386-mmx-linux.c: Rebuild.
2021 * features/i386/i386-mmx.c: Rebuild.
2022 * features/i386/i386.c: Rebuild.
2023 * features/i386/x32-avx-linux.c: Rebuild.
2024 * features/i386/x32-avx.c: Rebuild.
2025 * features/i386/x32-linux.c: Rebuild.
2026 * features/i386/x32.c: Rebuild.
2027 * features/mips-dsp-linux.c: Rebuild.
2028 * features/mips-linux.c: Rebuild.
2029 * features/mips64-dsp-linux.c: Rebuild.
2030 * features/mips64-linux.c: Rebuild.
2031 * features/rs6000/powerpc-32.c: Rebuild.
2032 * features/rs6000/powerpc-32l.c: Rebuild.
2033 * features/rs6000/powerpc-403.c: Rebuild.
2034 * features/rs6000/powerpc-403gc.c: Rebuild.
2035 * features/rs6000/powerpc-405.c: Rebuild.
2036 * features/rs6000/powerpc-505.c: Rebuild.
2037 * features/rs6000/powerpc-601.c: Rebuild.
2038 * features/rs6000/powerpc-602.c: Rebuild.
2039 * features/rs6000/powerpc-603.c: Rebuild.
2040 * features/rs6000/powerpc-604.c: Rebuild.
2041 * features/rs6000/powerpc-64.c: Rebuild.
2042 * features/rs6000/powerpc-64l.c: Rebuild.
2043 * features/rs6000/powerpc-7400.c: Rebuild.
2044 * features/rs6000/powerpc-750.c: Rebuild.
2045 * features/rs6000/powerpc-860.c: Rebuild.
2046 * features/rs6000/powerpc-altivec32.c: Rebuild.
2047 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2048 * features/rs6000/powerpc-altivec64.c: Rebuild.
2049 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2050 * features/rs6000/powerpc-cell32l.c: Rebuild.
2051 * features/rs6000/powerpc-cell64l.c: Rebuild.
2052 * features/rs6000/powerpc-e500.c: Rebuild.
2053 * features/rs6000/powerpc-e500l.c: Rebuild.
2054 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2055 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2056 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2057 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2058 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2059 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2060 * features/rs6000/powerpc-vsx32.c: Rebuild.
2061 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2062 * features/rs6000/powerpc-vsx64.c: Rebuild.
2063 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2064 * features/rs6000/rs6000.c: Rebuild.
2065 * features/s390-linux32.c: Rebuild.
2066 * features/s390-linux32v1.c: Rebuild.
2067 * features/s390-linux32v2.c: Rebuild.
2068 * features/s390-linux64.c: Rebuild.
2069 * features/s390-linux64v1.c: Rebuild.
2070 * features/s390-linux64v2.c: Rebuild.
2071 * features/s390x-linux64.c: Rebuild.
2072 * features/s390x-linux64v1.c: Rebuild.
2073 * features/s390x-linux64v2.c: Rebuild.
2074 * features/tic6x-c62x-linux.c: Rebuild.
2075 * features/tic6x-c62x.c: Rebuild.
2076 * features/tic6x-c64x-linux.c: Rebuild.
2077 * features/tic6x-c64x.c: Rebuild.
2078 * features/tic6x-c64xp-linux.c: Rebuild.
2079 * features/tic6x-c64xp.c: Rebuild.
2080
2081 2012-07-27 Tom Tromey <tromey@redhat.com>
2082
2083 * c-exp.y (classify_name): Avoid assignment in condition.
2084
2085 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2086
2087 * amd64-windows-tdep.c: Include "frame.h".
2088 (amd64_windows_skip_trampoline_code): New function.
2089 (amd64_windows_init_abi): Add trampoline registration.
2090
2091 2012-07-27 Yao Qi <yao@codesourcery.com>
2092
2093 * tracepoint.c (cur_traceframe_number): Remove.
2094 (set_tfile_traceframe): Remove.
2095 (tfile_trace_find, tfile_fetch_registers): Update callers.
2096 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2097 (tfile_open, tfile_trace_find): Likewise.
2098
2099 2012-07-27 Yao Qi <yao@codesourcery.com>
2100
2101 * thread.c (switch_to_thread): Don't call registers_changed.
2102
2103 2012-07-26 Tom Tromey <tromey@redhat.com>
2104
2105 * Makefile.in (SFILES): Remove objc-exp.y.
2106 (YYFILES): Remove objc-exp.c.
2107 (YYOBJ): Remove objc-exp.o.
2108 (local-maintainer-clean): Don't mention objc-exp.c.
2109 * c-exp.y: Include objc-lang.h.
2110 (%union) <class>: New field.
2111 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2112 (exp): Clone subscript production for OBJC_LBRAC. Add various
2113 Objective C productions.
2114 (msglist, msgarglist, msgarg): New productions.
2115 (array_mod, func_mod, operator): Clone productions for
2116 OBJC_LBRAC.
2117 (parse_string_or_char): Handle '@' strings.
2118 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2119 (classify_name): Check la_name_of_this. Recognize ObjC class
2120 names.
2121 * objc-exp.y: Remove.
2122 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2123 * objc-lang.h (objc_parse, objc_error): Don't declare.
2124
2125 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2126
2127 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2128
2129 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2132 and decrement.
2133
2134 2012-07-26 Tom Tromey <tromey@redhat.com>
2135
2136 * copying.c: Rebuild.
2137 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2138 'no_class'.
2139
2140 2012-07-26 Tom Tromey <tromey@redhat.com>
2141
2142 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2143 immediate_quit.
2144 (print_objfile_statistics): Likewise.
2145 (maintenance_print_symbols): Likewise.
2146 (maintenance_print_msymbols): Likewise.
2147 (maintenance_print_objfiles): Likewise.
2148 * psymtab.c (print_partial_symbols): Call QUIT.
2149 (maintenance_print_psymbols): Likewise. Don't modify
2150 immediate_quit.
2151 * copying.c (show_copying_command): Don't modify immediate_quit.
2152 (show_warranty_command): Likewise.
2153 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2154
2155 2012-07-26 Keith Seitz <keiths@redhat.com>
2156
2157 * linespec.c (linespec_lexer_lex_number): The input
2158 is also a valid number if the next character is a comma
2159 or colon.
2160
2161 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2162
2163 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2164 configure options.
2165
2166 2012-07-26 Tristan Gingold <gingold@adacore.com>
2167
2168 * machoread.c: Include gdb_bfd.h.
2169
2170 2012-07-26 Tristan Gingold <gingold@adacore.com>
2171
2172 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2173 offset.
2174
2175 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2176
2177 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2178 SIZE to size_t.
2179 (dwarf2_evaluate_loc_desc): Likewise.
2180 (dwarf2_loc_desc_needs_frame): Likewise.
2181 (locexpr_describe_location_1): Likewise.
2182 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2183 size_t.
2184 (struct dwarf2_loclist_baton): Likewise.
2185 * dwarf2read.c (struct dwarf_block): Likewise.
2186 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2187 (decode_locdesc): Expand SIZE and I to size_t.
2188
2189 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2190
2191 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2192
2193 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2194
2195 * doublest.c (convert_doublest_to_floatformat): If the exponent
2196 is too small, treat the value as zero. If the exponent is too
2197 large, treat the value as infinity.
2198
2199 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2200
2201 * configure.ac: Add --enable-lmcheck configure option.
2202 * configure: Regenerate.
2203
2204 2012-07-25 Tom Tromey <tromey@redhat.com>
2205
2206 * NEWS: Mention maint info bfds.
2207 * gdb_bfd.c (all_bfds): New global.
2208 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2209 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2210 New functions.
2211
2212 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2213
2214 * configure.tgt: Add v850*-*-rtems*.
2215
2216 2012-07-25 Tom Tromey <tromey@redhat.com>
2217
2218 * macrotab.c (macro_bcache_str): Remove cast.
2219
2220 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2221
2222 * linespec.c (linespec_lexer_lex_number): Update comments,
2223 change the return and add check to make sure the input is
2224 the decimal numbers.
2225 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2226 false, call linespec_lexer_lex_string.
2227
2228 2012-07-24 Tom Tromey <tromey@redhat.com>
2229
2230 * symfile.c (symbol_file_add): Don't open BFD twice.
2231
2232 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2233
2234 * breakpoint.c (create_breakpoint): Store condition for pending
2235 breakpoints.
2236
2237 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2238
2239 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2240 (m68k_return_value): Handle complex types like structures.
2241 (m68k_svr4_return_value): Likewise.
2242
2243 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2244
2245 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2246 parameters to bfd_get_section_name.
2247
2248 2012-07-24 Yao Qi <yao@codesourcery.com>
2249
2250 * cli/cli-setshow.c: Handle case 'var_uinteger'
2251 and 'var_zuninteger' together. Handle case 'var_integer' and
2252 'var_zinteger' together.
2253
2254 2012-07-23 Keith Seitz <keiths@redhat.com>
2255
2256 * linespec.c (convert_linespec_to_sal): Don't add
2257 any symbols to the result vector if symbol_to_sal
2258 returns zero.
2259
2260 2012-07-23 Keith Seitz <keiths@redhat.com>
2261
2262 * linespec.c (decode_objc): Record the function name
2263 in the linespec.
2264
2265 2012-07-23 Tom Tromey <tromey@redhat.com>
2266
2267 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2268 counting.
2269 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2270 (map_vmap): Acquire a reference to the BFD.
2271
2272 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2273
2274 * p-valprint.c (pascal_object_print_value): Replace potentially
2275 unsafe alloca with xmalloc/xfree.
2276 * valops.c (search_struct_method): Likewise.
2277
2278 2012-07-23 Tom Tromey <tromey@redhat.com>
2279
2280 * solib-svr4.c (enable_break): Update.
2281 * bfd-target.h (target_bfd_reopen): Update documentation.
2282
2283 2012-07-23 Tom Tromey <tromey@redhat.com>
2284
2285 * symfile.c (separate_debug_file_exists): Update.
2286 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2287 (reread_symbols): Update.
2288 * elfread.c (build_id_verify): Update.
2289 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2290 bfd_open_maybe_remote.
2291
2292 2012-07-23 Tom Tromey <tromey@redhat.com>
2293
2294 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2295
2296 2012-07-23 Tom Tromey <tromey@redhat.com>
2297
2298 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2299 and 'abfd'.
2300 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2301 and 'abfd'.
2302 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2303 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2304 'abfd'.
2305 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2306 * objfiles.c (allocate_objfile): Acquire a new reference.
2307 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2308 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2309 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2310 a cleanup for 'nbfd'.
2311 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2312 for 'nbfd'.
2313 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2314 make a cleanup for 'abfd'.
2315 (symbol_file_add): Make a BFD cleanup.
2316
2317 2012-07-23 Tom Tromey <tromey@redhat.com>
2318
2319 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2320 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2321 * corelow.c (core_open): Use gdb_bfd_fopen.
2322 * dsrec.c (load_srec): Use gdb_bfd_openr.
2323 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2324 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2325 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2326 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2327 (gdb_bfd_fdopenr): New functions.
2328 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2329 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2330 (gdb_bfd_fdopenr): Declare.
2331 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2332 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2333 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2334 gdb_bfd_openr_next_archived_file.
2335 (macho_check_dsym): Use gdb_bfd_openr.
2336 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2337 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2338 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2339 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2340 gdb_bfd_openr.
2341 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2342 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2343 gdb_bfd_openr_next_archived_file.
2344 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2345 Use gdb_bfd_openr.
2346 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2347 gdb_bfd_openr.
2348 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2349 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2350 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2351 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2352 (symfile_bfd_open): Use gdb_bfd_fopen.
2353 (generic_load): Use gdb_bfd_openr.
2354 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2355
2356 2012-07-23 Tom Tromey <tromey@redhat.com>
2357
2358 * bfd-target.c (target_bfd_reopen): Update.
2359 * cli/cli-dump.c (bfd_openr_with_cleanup)
2360 (bfd_openw_with_cleanup): Update.
2361 * corelow.c (core_open): Update.
2362 * dsrec.c (load_srec): Update.
2363 * exec.c (exec_file_attach): Update.
2364 * gcore.c (create_gcore_bfd): Update.
2365 * gdb_bfd.c (gdb_bfd_ref): Return void.
2366 (gdb_bfd_open): Update.
2367 * gdb_bfd.h (gdb_bfd_ref): Return void.
2368 Update comments.
2369 * jit.c (jit_bfd_try_read_symtab): Update.
2370 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2371 * machoread.c (macho_symfile_read_all_oso): Update.
2372 (macho_check_dsym): Update.
2373 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2374 * remote-m32r-sdi.c (m32r_load): Update.
2375 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2376 * rs6000-nat.c (add_vmap): Update.
2377 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2378 Update.
2379 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2380 * solib-spu.c (spu_bfd_open): Update.
2381 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2382 * spu-linux-nat.c (spu_bfd_open): Update.
2383 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2384 (generic_load): Update.
2385 * windows-nat.c (windows_make_so): Update.
2386
2387 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2388
2389 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2390
2391 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2392
2393 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2394 SIGTRAMP_FRAME unwinding.
2395
2396 2012-07-20 Doug Evans <dje@google.com>
2397
2398 * NEWS: Document new options "set/show use-deprecated-index-sections",
2399 and delete reference to --use-deprecated-index-sections.
2400 * symfile.h (use_deprecated_index_sections): Delete.
2401 * dwarf2read.c (use_deprecated_index_sections): Make static.
2402 (read_index_from_section): Update wording of how to load
2403 deprecated index sections.
2404 (_initialize_dwarf2_read): New options
2405 "set/show use-deprecated-index-sections".
2406 * main.c (captured_main): Delete --use-deprecated-index-sections.
2407
2408 2012-07-20 Pedro Alves <palves@redhat.com>
2409
2410 PR threads/11692
2411 PR gdb/12203
2412
2413 * infrun.c (handle_inferior_event) <new thread>: Don't special
2414 case minus_one_ptid.
2415 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2416 * linux-thread-db.c (thread_get_info_callback): Don't return early
2417 if the thread is zombie.
2418 (thread_from_lwp): Change return type to void. Rewrite stale
2419 comment.
2420 (attach_thread): Don't return early if the thread is zombie,
2421 instead set its "dying" flag.
2422 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2423 (find_new_threads_callback): Don't return early if the thread is
2424 zombie.
2425
2426 2012-07-20 Pedro Alves <palves@redhat.com>
2427
2428 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2429 * target.c (target_wait): Likewise.
2430 (str_comma_list_concat_elem, do_option, target_options_to_string):
2431 New functions.
2432 * target.h (target_options_to_string): Declare.
2433
2434 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 Tom Tromey <tromey@redhat.com>
2436
2437 * dwarf2read.c (dwarf_decode_macros)
2438 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2439 DW_MACRO_GNU_transparent_include_alt>: New cases.
2440 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2441 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2442
2443 2012-07-20 Tom Tromey <tromey@redhat.com>
2444
2445 * dwarf2read.c (try_open_dwo_file): Don't call
2446 gdb_bfd_stash_filename.
2447
2448 2012-07-20 Pedro Alves <palves@redhat.com>
2449
2450 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2451 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2452 (i386_process_record): Tweak description comments.
2453
2454 2012-07-20 Pedro Alves <palves@redhat.com>
2455
2456 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2457 (i386_process_record): Use record_read_memory.
2458 * record.c (record_read_memory): New function.
2459 (record_arch_list_add_mem, record_exec_insn): Use
2460 record_read_memory.
2461 * record.h (record_read_memory): Declare.
2462
2463 2012-07-20 Yao Qi <yao@codesourcery.com>
2464
2465 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2466 NULL for xfree.
2467
2468 2012-07-19 Pedro Alves <palves@redhat.com>
2469
2470 * record.c (record_resume): Ask the target beneath to report all
2471 signals.
2472
2473 2012-07-19 Doug Evans <dje@google.com>
2474
2475 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2476 there's no section at address zero.
2477 (dwarf2_record_block_ranges): Ditto.
2478
2479 2012-07-19 Yao Qi <yao@codesourcery.com>
2480
2481 * command.h, remote.c: Fix a typo in comment.
2482
2483 2012-07-19 Tom Tromey <tromey@redhat.com>
2484
2485 PR exp/13206:
2486 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2487 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2488 OP_DECLTYPE>: New cases.
2489 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2490 (type_exp): Add new productions.
2491 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2492 and decltype.
2493 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2494 New case.
2495 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2496 OP_DECLTYPE>: New case.
2497 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2498 New case.
2499 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2500 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2501
2502 2012-07-19 Tom Tromey <tromey@redhat.com>
2503
2504 * c-exp.y (enum token_flags): New.
2505 (struct token) <cxx_only>: Remove.
2506 <flags>: New field.
2507 (tokentab3, tokentab2, ident_tokens): Update.
2508 (lex_one_token): Update. Handle FLAG_SHADOW.
2509
2510 2012-07-19 Tom Tromey <tromey@redhat.com>
2511
2512 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2513 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2514 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2515 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2516 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2517 type_exp production where appropriate.
2518 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2519 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2520 <UNOP_MEMVAL_TYPE>: New case.
2521 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2522 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2523 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2524 <UNOP_MEMVAL_TYPE>: New case.
2525 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2526 UNOP_REINTERPRET_CAST>: Update.
2527 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2528 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2529 UNOP_REINTERPRET_CAST>: Update.
2530 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2531 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2532 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2533 constants.
2534
2535 2012-07-19 Yao Qi <yao@codesourcery.com>
2536 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2539 and case 'var_optional_filename' together.
2540 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2541 instead of add_setshow_optional_filename_cmd for setshow command
2542 'args'. Set completer for 'set args'.
2543
2544 2012-07-18 Doug Evans <dje@google.com>
2545
2546 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2547 * common/gdb_vecs.c: New file, contents from utils.c.
2548 * common/host-defs.h: New file, contents from defs.h.
2549 * utils.h: New file, contents from defs.h.
2550 * defs.h: Move all declarations of objects defined in utils.c
2551 to utils.h (except QUIT() and related).
2552 #include "utils.h", "host-defs.h".
2553 * probe.h (probe_p): Move here from gdb_vecs.h.
2554 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2555 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2556 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2557 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2558 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2559 (COMMON_OBS): Add gdb_vecs.o.
2560 (gdb_vecs.o): New rule.
2561
2562 2012-07-18 Keith Seitz <keiths@redhat.com>
2563
2564 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2565 parameter. If non-zero, use SYMNAME as the canonical name
2566 for the SaL.
2567 Update all callers.
2568 (convert_linespec_to_sals): Use add_sal_to_sals for
2569 expressions, too.
2570 (decode_line_full): No need to "fill in missing canonical names"
2571 anymore. Simply make cleanups for the allocated names.
2572
2573 2012-07-18 Keith Seitz <keiths@redhat.com>
2574
2575 * linespec.c (struct linespec): Constify expression,
2576 source_filename, function_name, and label_name.
2577 (symbol_not_found_error): Make all parameters const.
2578 (linespec_parser_delete): No need to check for NULL
2579 when using xfree. Cast const char * to char * for xfree.
2580
2581 2012-07-18 Keith Seitz <keiths@redhat.com>
2582
2583 * breakpoint.c (invalid_thread_id_error): New function.
2584 (find_condition_and_thread): Use invalid_thread_id_error.
2585 (watch_command_1): Likewise.
2586
2587 2012-07-18 Tom Tromey <tromey@redhat.com>
2588
2589 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2590 * contrib/cc-with-tweaks.sh: New file.
2591
2592 2012-07-18 Tom Tromey <tromey@redhat.com>
2593
2594 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2595 (locate_dwz_sections): Recognize .gdb_index.
2596 (create_cus_from_index_list): New function.
2597 (create_cus_from_index): Use it. Handle .dwz data.
2598 (read_index_from_section): New function, extracted from
2599 dwarf2_read_index.
2600 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2601 if needed.
2602
2603 2012-07-18 Tom Tromey <tromey@redhat.com>
2604
2605 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2606 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2607 <is_dwz>: New field.
2608 (struct dwz_file): New.
2609 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2610 (locate_dwz_sections, dwarf2_get_dwz_file)
2611 (get_abbrev_section_for_cu): New functions.
2612 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2613 (read_and_check_type_unit_head): Add abbrev_section argument.
2614 (create_debug_types_hash_table): Update.
2615 (init_cutu_and_read_dies): Use proper abbrev section.
2616 (init_cutu_and_read_dies_no_follow): Likewise.
2617 (set_partial_user): Do nothing if PST==NULL.
2618 (read_comp_units_from_section): New function.
2619 (create_all_comp_units): Use it.
2620 (scan_partial_symbols, partial_die_parent_scope): Update.
2621 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2622 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2623 (find_partial_die): Add offset_in_dwz argument. Update.
2624 (guess_partial_die_structure_name, fixup_partial_die): Update.
2625 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2626 DW_FORM_GNU_strp_alt.
2627 (read_indirect_string_from_dwz): New function.
2628 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2629 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2630 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2631 (follow_die_offset): Add offset_in_dwz argument.
2632 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2633 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2634 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2635 Handle new macro forms.
2636 (dwarf_decode_macros): Update.
2637 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2638 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2639 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2640 (create_debug_types_hash_table): Use correct abbrev section.
2641 (get_debug_line_section): New function.
2642 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2643 (process_full_comp_unit): Pass 'required' argument to
2644 end_symtab_get_static_block.
2645 * buildsym.h (end_symtab_get_static_block): Update.
2646 * buildsym.c (end_symtab_get_static_block): Add 'required'
2647 argument.
2648 (end_symtab, end_expandable_symtab): Update.
2649
2650 2012-07-18 Tom Tromey <tromey@redhat.com>
2651
2652 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2653 (pagesize): Remove.
2654 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2655 (zlib_decompress_section): Remove.
2656 (dwarf2_read_section): Use gdb_bfd_map_section.
2657 (munmap_section_buffer): Remove.
2658 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2659 munmap_section_buffer.
2660 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2661 (struct gdb_bfd_section_data): New.
2662 (free_one_bfd_section): New function.
2663 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2664 (get_section_descriptor, zlib_decompress_section)
2665 (gdb_bfd_map_section): New functions.
2666 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2667
2668 2012-07-18 Tom Tromey <tromey@redhat.com>
2669
2670 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2671
2672 2012-07-18 Tom Tromey <tromey@redhat.com>
2673
2674 * gdb_bfd.c (struct gdb_bfd_data): New.
2675 (gdb_bfd_cache): New global.
2676 (struct gdb_bfd_cache_search): New.
2677 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2678 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2679 * gdb_bfd.h (gdb_bfd_open): Declare.
2680
2681 2012-07-18 Tom Tromey <tromey@redhat.com>
2682
2683 * utils.c (make_cleanup_bfd_unref): Rename from
2684 make_cleanup_bfd_close.
2685 * defs.h (make_cleanup_bfd_unref): Rename from
2686 make_cleanup_bfd_close.
2687 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2688 (bfd_openw_with_cleanup): Update.
2689 * corelow.c (core_open): Update.
2690 * dsrec.c (load_srec): Update.
2691 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2692 * remote-m32r-sdi.c (m32r_load): Update.
2693 * remote-mips.c (mips_load_srec): Update.
2694 (pmon_load_fast): Update.
2695 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2696 Update.
2697 (darwin_bfd_open): Update.
2698 * solib.c (solib_bfd_fopen): Update.
2699 * symfile-mem.c (symbol_file_add_from_memory): Update.
2700 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2701 (symfile_bfd_open): Update.
2702 (generic_load): Update.
2703
2704 2012-07-18 Tom Tromey <tromey@redhat.com>
2705
2706 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2707 (pmon_load_fast): Likewise.
2708 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2709 (m32r_upload_command): Likewise.
2710 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2711 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2712 Use make_cleanup_bfd_close.
2713
2714 2012-07-18 Tom Tromey <tromey@redhat.com>
2715
2716 * symfile.c (symfile_bfd_open): Don't copy name. Call
2717 gdb_bfd_stash_filename.
2718 (load_command): Open the new BFD before freeing the old.
2719 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2720 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2721 Call gdb_bfd_stash_filename.
2722 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2723 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2724 gdb_bfd_stash_filename.
2725 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2726 Free found_pathname.
2727 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2728 gdb_bfd_stash_filename.
2729 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2730 * machoread.c (macho_add_oso_symfile): Call
2731 gdb_bfd_stash_filename.
2732 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2733 gdb_bfd_stash_filename.
2734 (macho_check_dsym): Don't copy filename. Call
2735 gdb_bfd_stash_filename.
2736 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2737 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2738 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2739 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2740 * exec.c (exec_close): Don't free the BFD's filename.
2741 (exec_file_attach): Don't copy the filename. Call
2742 gdb_bfd_stash_filename.
2743 * corelow.c (core_close): Don't free the BFD's filename.
2744 (core_open): Call gdb_bfd_stash_filename.
2745 * corefile.c (reopen_exec_file): Remove #if 0 code.
2746 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2747 pathname.
2748 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2749
2750 2012-07-18 Tom Tromey <tromey@redhat.com>
2751
2752 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2753 gdb_bfd_unref.
2754 (free_dwo_file): Use gdb_bfd_unref.
2755 * cli/cli-dump.c: Include gdb_bfd.h.
2756 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2757 (bfd_openr_with_cleanup): Likewise.
2758 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2759 gdb_bfd_unref.
2760 * utils.c: Include gdb_bfd.h.
2761 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2762 * symfile.c: Include gdb_bfd.h.
2763 (separate_debug_file_exists): Use gdb_bfd_unref.
2764 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2765 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2766 (generic_load): Use gdb_bfd_ref.
2767 (reread_symbols): Use gdb_bfd_unref.
2768 * symfile-mem.c: Include gdb_bfd.h.
2769 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2770 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2771 * solib.c: Include gdb_bfd.h.
2772 (solib_bfd_fopen): Use gdb_bfd_ref.
2773 (solib_bfd_open): Use gdb_bfd_unref.
2774 (free_so_symbols): Use gdb_bfd_unref.
2775 (reload_shared_libraries_1): Use gdb_bfd_unref.
2776 * solib-spu.c: Include gdb_bfd.h.
2777 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2778 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2779 gdb_bfd_unref.
2780 * solib-frv.c: Include gdb_bfd.h.
2781 (enable_break2): Use gdb_bfd_unref.
2782 * solib-dsbt.c: Include gdb_bfd.h.
2783 (enable_break2): Use gdb_bfd_unref.
2784 * solib-darwin.c: Include gdb_bfd.h.
2785 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2786 gdb_bfd_unref.
2787 (darwin_bfd_open): Use gdb_bfd_unref.
2788 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2789 * remote-mips.c: Include gdb_bfd.h.
2790 (mips_load_srec): Use gdb_bfd_ref.
2791 (pmon_load_fast): Use gdb_bfd_ref.
2792 * remote-m32r-sdi.c: Include gdb_bfd.h.
2793 (m32r_load): Use gdb_bfd_ref.
2794 * record.c: Include gdb_bfd.h.
2795 (record_save_cleanups): Use gdb_bfd_unref.
2796 (cmd_record_save): Use gdb_bfd_unref.
2797 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2798 gdb_bfd_unref.
2799 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2800 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2801 * objfiles.c: Include gdb_bfd.h.
2802 (free_objfile): Use gdb_bfd_unref.
2803 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2804 gdb_bfd.c.
2805 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2806 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2807 (macho_check_dsym): Likewise.
2808 * m32r-rom.c: Include gdb_bfd.h.
2809 (m32r_load): Use gdb_bfd_ref.
2810 (m32r_upload_command): Use gdb_bfd_ref.
2811 * jit.c: Include gdb_bfd.h.
2812 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2813 * gdb_bfd.h: New file.
2814 * gdb_bfd.c: New file.
2815 * gcore.c: Include gdb_bfd.h.
2816 (create_gcore_bfd): Use gdb_bfd_ref.
2817 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2818 (gcore_command): Use gdb_bfd_unref.
2819 * exec.c: Include gdb_bfd.h.
2820 (exec_close): Use gdb_bfd_unref.
2821 (exec_close_1): Use gdb_bfd_unref.
2822 (exec_file_attach): Use gdb_bfd_ref.
2823 * elfread.c: Include gdb_bfd.h.
2824 (build_id_verify): Use gdb_bfd_unref.
2825 * dsrec.c: Include gdb_bfd.h.
2826 (load_srec): Use gdb_bfd_ref.
2827 * corelow.c: Include gdb_bfd.h.
2828 (core_close): Use gdb_bfd_unref.
2829 (core_open): Use gdb_bfd_ref.
2830 * bfd-target.c: Include gdb_bfd.h.
2831 (target_bfd_xclose): Use gdb_bfd_unref.
2832 (target_bfd_reopen): Use gdb_bfd_ref.
2833 * Makefile.in (SFILES): Add gdb_bfd.c.
2834 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2835 (COMMON_OBS): Add gdb_bfd.o.
2836
2837 2012-07-18 Keith Seitz <keiths@redhat.com>
2838
2839 * breakpoint.c (find_condition_and_thread): Initialize
2840 TASK and REST.
2841 (create_breakpiont): find_condition_and_thread will now
2842 initialize COND_STRING, THREAD, and REST (and TASK).
2843 (addr_string_to_sals): Likewise.
2844
2845 2012-07-18 Pedro Alves <palves@redhat.com>
2846
2847 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2848 Pull the single step breakpoints out of the target.
2849
2850 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2851
2852 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2853 * stap-probe.c (compile_probe_arg): Likewise.
2854
2855 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2856
2857 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2858 (elf_compile_to_ax): Likewise.
2859 * infrun.c (insert_exception_resume_from_probe): Likewise.
2860 (check_exception_resume): Remove `objfile' variable.
2861 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2862 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2863 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2864 (compare_entries): Rename to...
2865 (compare_probes): ...this. Adjust function to work with
2866 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2867 respectively.
2868 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2869 `VEC (probe_p) *'.
2870 (print_ui_out_info): Adjust argument to be `struct probe *'.
2871 (info_probes_for_ops): Adjust internal computations to use
2872 `VEC (probe_p) *'.
2873 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2874 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2875 gen_info_probes_table_values>: Remove `objfile' argument.
2876 (struct probe) <objfile>: New field.
2877 (find_probe_by_pc): Remove `objfile' argument.
2878 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2879 (stap_get_probe_argument_count): Likewise.
2880 (stap_get_arg): Likewise.
2881 (stap_evaluate_probe_argument): Likewise.
2882 (stap_compile_to_ax): Likewise.
2883 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2884 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2885 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2886 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2887 sym_compile_to_ax>: Likewise.
2888
2889 2012-07-18 Terry Guo <terry.guo@arm.com>
2890
2891 PR 14329
2892 * defs.h (GDB_MI_MSG_WIDTH): New.
2893 * ser_base (ser_base_read_error_fd): New function.
2894 (do_ser_base_readchar): Poll error file descriptor as well as
2895 standard output.
2896 (generic_readchar): Refactor error handling.
2897
2898 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2899
2900 * NEWS: Create a new section for the next release branch.
2901 Rename the section of the current branch, now that it has
2902 been cut.
2903
2904 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2905
2906 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2907 * version.in: Bump version to 7.5.50.20120718-cvs.
2908
2909 2012-07-17 Keith Seitz <keiths@redhat.com>
2910
2911 * linespec.c (linespec_parse_line_offset): Make parameter
2912 const.
2913
2914 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 PR 11914
2917 * f-valprint.c (info_common_command): New variable frame_id.
2918 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2919 * printcmd.c (print_variable_and_value): Extend function comment.
2920 Add comment for invalidated FRAME.
2921 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2922 FI form FRAME_ID after each print_frame_local_vars.
2923 (struct print_variable_and_value_data): Change frame to frame_id.
2924 (do_print_variable_and_value): New variable frame, initialize it from
2925 p->frame_id. Add comment for invalidated FRAME.
2926 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2927 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2928 for invalidated FRAME.
2929
2930 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2931 Pedro Alves <palves@redhat.com>
2932
2933 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2934 loop.
2935
2936 2012-07-16 Tom Tromey <tromey@redhat.com>
2937
2938 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2939
2940 2012-07-15 Doug Evans <dje@google.com>
2941
2942 * dwarf2read.c (stmt_list_hash): New struct.
2943 (type_unit_group): Embed "per_cu" member, remove pointer.
2944 New union member "t", move member "tus" into it, all uses updated.
2945 New member "hash", replaces member "line_offset, all uses updated.
2946 (quick_file_names): Replace member "offset" with "hash", all uses
2947 updated.
2948 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2949 (hash_file_name_entry, eq_file_name_entry): Call them.
2950 (hash_type_unit_group, eq_type_unit_group): Ditto.
2951 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2952 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2953 (dw2_get_file_names): Update.
2954 (create_type_unit_group): Replace "per_cu" arg with "cu".
2955 All callers updated. Fix "quick" (.gdb_index) handling.
2956 (get_type_unit_group): Replace "per_cu" arg with "cu".
2957 All callers updated.
2958 (build_type_unit_groups): Don't reset tu_stats.
2959
2960 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2961 "tab_cur_size". Change member "tab" to be a htab_t.
2962 (create_filename_seen_cache): Update.
2963 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2964 (filename_seen): Update.
2965
2966 2012-07-13 Doug Evans <dje@google.com>
2967
2968 * symtab.c (filename_seen): Update comment.
2969
2970 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 Doug Evans <dje@google.com>
2972
2973 * buildsym.c (end_symtab_1): Split it to ...
2974 (end_symtab_get_static_block): ... this ...
2975 (end_symtab_from_static_block): ... and this function.
2976 (end_symtab, end_expandable_symtab): Call them.
2977 * buildsym.h (end_symtab_get_static_block)
2978 (end_symtab_from_static_block): New declarations.
2979 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2980 Set its valid CU ranges.
2981
2982 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2983
2984 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2985 DW_OP_GNU_parameter_ref.
2986
2987 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2990 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2991
2992 2012-07-13 Doug Evans <dje@google.com>
2993
2994 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2995 (filename_seen_cache): New struct.
2996 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2997 (create_filename_seen_cache): New function.
2998 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2999 (filename_seen): Delete arg "first". New arg "cache". All callers
3000 updated.
3001 (output_source_filename_data): New struct.
3002 (output_source_filename): Delete arg "first". New arg "data".
3003 All callers updated.
3004 (sources_info): Delete local "first". New locals "data", "cleanups".
3005 Rewrite to use filename_seen_cache.
3006 (add_partial_filename_data): Delete member "first". New member
3007 "filename_seen_cache". All uses updated.
3008 (make_source_files_completion_list): Rewrite to use
3009 filename_seen_cache.
3010
3011 2012-07-12 Doug Evans <dje@google.com>
3012
3013 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3014
3015 2012-07-10 Doug Evans <dje@google.com>
3016
3017 PR gdb/13498
3018 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3019 all_type_unit_groups, type_unit_groups, tu_stats.
3020 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3021 All uses updated. Add type_unit_group to union "s".
3022 (type_unit_group): New struct.
3023 (IS_TYPE_UNIT_GROUP): New macro.
3024 (abbrev_table): Delete unused member "section".
3025 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3026 (dw2_get_cu): Assert not used with type_unit_group.
3027 (dw2_get_primary_cu): New function.
3028 (dw2_build_type_unit_groups_reader): New function.
3029 (dw2_build_type_unit_groups): New function.
3030 (dw2_get_file_names): Assert not called on type units.
3031 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3032 Redo loop to iterate over type unit groups instead of type units.
3033 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3034 (read_abbrev_offset): New function.
3035 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3036 updated.
3037 (create_partial_symtab): New function.
3038 (process_psymtab_comp_unit_reader): Assert not used with type units.
3039 Call create_partial_symtab.
3040 (process_psymtab_type_unit): Delete.
3041 (hash_type_unit_group, eq_type_unit_group): New functions.
3042 (allocate_type_unit_groups_table): New function.
3043 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3044 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3045 (create_type_unit_group, get_type_unit_group): New functions.
3046 (tu_abbrev_offset): New struct.
3047 (sort_tu_by_abbrev_offset): New function.
3048 (add_type_unit_group_to_table): New function.
3049 (build_type_unit_groups): New function.
3050 (build_type_psymtabs_reader): New function.
3051 (build_type_psymtab_dependencies): New function.
3052 (build_type_psymtabs): Rewrite.
3053 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3054 is seen in a type unit.
3055 (process_queue): Move symtab expansion debugging printfs here.
3056 Call process_full_type_unit for type units.
3057 (compute_symtab_includes): Assert not called for type units.
3058 (process_cu_includes): Don't call compute_symtab_includes for
3059 type units.
3060 (process_full_type_unit): New function.
3061 (process_imported_unit_die): Flag an error if called for type units.
3062 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3063 updated. Assert not called for type units.
3064 (read_file_scope): Call dwarf2_start_symtab.
3065 (setup_type_unit_groups): New function.
3066 (read_type_unit_scope): Rewrite.
3067 (abbrev_table_read_table): Initialize abbrev_table->offset.
3068 (abbrev_table_free_cleanup): New function.
3069 (dwarf2_start_symtab): New function.
3070 (load_full_type_unit): Assert not called for type unit groups.
3071 * buildsym.c (finish_block_internal): New arg "expandable".
3072 All callers updated.
3073 (start_symtab): Move most contents to ...
3074 (restart_symtab): ... here. New function.
3075 (reset_symtab_globals): New function.
3076 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3077 Call reset_symtab_globals.
3078 (end_symtab, end_expandable_symtab): New functions.
3079 (set_missing_symtab, augment_type_symtab): New functions.
3080 * buildsym.h (end_expandable_symtab): Declare.
3081 (augment_type_symtab, restart_symtab): Declare.
3082 * psympriv.h (struct partial_symtab): New member "anonymous".
3083 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3084 anonymous psymtabs.
3085 (read_psymtabs_with_filename): Ditto.
3086 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3087 (expand_symtabs_matching_via_partial): Ditto.
3088 (dump_psymtab): Update.
3089 * dictionary.c (dict_add_pending): New function.
3090 * dictionary.h (dict_add_pending): Declare.
3091
3092 2012-07-09 Doug Evans <dje@google.com>
3093
3094 * buildsym.c (start_subfile): Remove unnecessary check for
3095 name == NULL.
3096
3097 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3098
3099 * dwarf2read.c (load_full_type_unit): Simplify.
3100
3101 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3102 to struct signatured_type **. All uses updated.
3103
3104 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3105 All callers updated.
3106
3107 2012-07-09 Tom Tromey <tromey@redhat.com>
3108
3109 * c-exp.y (check_parameter_typelist): New function.
3110 (parameter_typelist): Call it.
3111 * eval.c (make_params): Handle '(void)' case.
3112 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3113 '(void)' case.
3114
3115 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 * common/linux-ptrace.c: Include gdb_assert.h.
3118 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3119 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3120 stdint.h.
3121 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3122 functions.
3123 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3124 * linux-nat.c (linux_child_post_attach)
3125 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3126
3127 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3130 nptl <2.7 bug workaround for core files.
3131
3132 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3135 clearing.
3136 (save_siginfo): Remove.
3137 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3138 call.
3139 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3140 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3141 * linux-nat.h (struct lwp_info): Remove field siginfo.
3142
3143 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3144
3145 Code cleanup for the next patch.
3146 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3147 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3148 call for it.
3149 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3150 (ia64_linux_stopped_data_address):
3151 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3152 the return value.
3153 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3154 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3155 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3156 call for it.
3157
3158 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3159
3160 PR 14321
3161 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3162 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3163
3164 2012-07-06 Tom Tromey <tromey@redhat.com>
3165
3166 * c-exp.y (DOTDOTDOT): New token.
3167 (func_mod, exp): Use parameter_typelist.
3168 (parameter_typelist): New production.
3169 (tokentab3): Add "..." token.
3170 * eval.c (make_params): Handle varargs.
3171 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3172 varargs.
3173
3174 2012-07-06 Tom Tromey <tromey@redhat.com>
3175
3176 PR exp/9608:
3177 * c-exp.y (%union) <tvec>: Change type.
3178 (func_mod): Now uses <tvec> type.
3179 (exp): Update for tvec change.
3180 (direct_abs_decl): Push the typelist.
3181 (func_mod): Return a typelist.
3182 (nonempty_typelist): Update for tvec change.
3183 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3184 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3185 * parse.c (pop_type_list): New function.
3186 (push_typelist): New function.
3187 (follow_types): Handle tp_function_with_arguments.
3188 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3189 (enum type_pieces) <tp_function_with_arguments>: New constant.
3190 (union type_stack_elt) <typelist_val>: New field.
3191 (push_typelist): Declare.
3192
3193 2012-07-06 Tom Tromey <tromey@redhat.com>
3194
3195 * c-exp.y (%union) <type_stack>: New field.
3196 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3197 (ptr_operator_ts): New production.
3198 (ptype): Update.
3199 * parse.c (type_stack_reserve): New function.
3200 (check_type_stack_depth): Use it.
3201 (pop_type_stack, append_type_stack, push_type_stack)
3202 (get_type_stack, type_stack_cleanup): New functions.
3203 (follow_types): Handle tp_type_stack.
3204 (_initialize_parse): Simplify initialization.
3205 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3206 constant.
3207 (union type_stack_elt) <stack_val>: New field.
3208 (get_type_stack, append_type_stack, push_type_stack)
3209 (type_stack_cleanup): Declare.
3210
3211 2012-07-06 Tom Tromey <tromey@redhat.com>
3212
3213 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3214 Remove.
3215 (struct type_stack): New.
3216 * parse.c (type_stack, type_stack_size, type_stack_depth):
3217 Remove.
3218 (type_stack): New global.
3219 (parse_exp_in_context, check_type_stack_depth)
3220 (insert_into_type_stack, insert_type, push_type, push_type_int)
3221 (insert_type_address_space, pop_type, pop_type_int)
3222 (_initialize_parse): Update.
3223
3224 2012-07-06 Tom Tromey <tromey@redhat.com>
3225
3226 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3227 Remove %type.
3228
3229 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3230
3231 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3232
3233 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3234 Jan Kratochvil <jan.kratochvil@redhat.com>
3235
3236 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3237 alloca with xmalloc/xfree.
3238
3239 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3240
3241 * MAINTAINERS (Write After Approval): Add myself to the list.
3242
3243 2012-07-05 Doug Evans <dje@google.com>
3244
3245 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3246
3247 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3248
3249 * ax-gdb.c (cli/cli-utils.h): New include.
3250 (linespec.h): Ditto.
3251 (agent_eval_command_one): New function.
3252 (agent_command_1): Ditto.
3253 (agent_command): Call function agent_command_1.
3254 (agent_eval_command): Ditto.
3255 (_initialize_ax_gdb): Change help for "maint agent"
3256 and "maint agent-eval".
3257
3258 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3259
3260 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3261 * cli/cli-utils.c (check_for_argument): New function.
3262 * cli/cli-utils.h (check_for_argument): Ditto.
3263
3264 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3265
3266 * NEWS: Mention x32 ABI support.
3267
3268 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3269
3270 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3271 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3272
3273 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3274 and pc_regnum_from_eax to -1. Update SP regnum from
3275 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3276 needed.
3277
3278 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3279 pc_regnum_from_eax.
3280
3281 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3282
3283 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3284 * dwarf2expr.h: Include gdbtypes.h.
3285 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3286 these forward declarations.
3287 (cu_offset, sect_offset): Move these ...
3288 * gdbtypes.h: Remove include dwarf2expr.h.
3289 (cu_offset, sect_offset): ... here.
3290
3291 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3292
3293 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3294 (amd64_linux_sigtramp_code): This.
3295 (amd64_x32_linux_sigtramp_code): New.
3296 (LINUX_SIGTRAMP_LEN): Updated.
3297 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3298
3299 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3302
3303 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3304
3305 * config.in: Regenerate.
3306 * configure: Regenerate.
3307 * configure.ac: Remove check for gnu/libc-version.h.
3308 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3309 gnu/libc-version.h.
3310 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3311 variables libc_version, libc_major and libc_minor. Replace sscanf by
3312 inferior_has_bug. Extend the comment.
3313
3314 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * linux-thread-db.c (inferior_has_bug): New function.
3317 (thread_db_find_new_threads_silently): Return boolean as checked by
3318 inferior_has_bug, describe it in the comments.
3319 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3320 earlier. Abort the initialization if it returned non-zero.
3321 (thread_db_new_objfile): Exclude debug files.
3322 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3323 if UNTIL_NO_NEW,
3324
3325 2012-07-02 Doug Evans <dje@google.com>
3326
3327 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3328 related to queue management.
3329
3330 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3331 instead of "debug dwarf2-die" in debugging printfs.
3332 (create_debug_info_hash_table_reader): Ditto.
3333 (create_debug_info_hash_table): Ditto.
3334 (init_dwo_file): Ditto.
3335 (init_cutu_and_read_dies): Add debugging printf.
3336 (init_cutu_and_read_dies_no_follow): Ditto.
3337 (process_psymtab_comp_unit_reader): Ditto.
3338
3339 2012-07-02 Stan Shebs <stan@codesourcery.com>
3340
3341 Add target-side support for dynamic printf.
3342 * NEWS: Mention the additional style.
3343 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3344 (struct bp_location): New field cmd_bytecode.
3345 * breakpoint.c: Include format.h.
3346 (disconnected_dprintf): New global.
3347 (parse_cmd_to_aexpr): New function.
3348 (build_target_command_list): New function.
3349 (insert_bp_location): Call it.
3350 (remove_breakpoints_pid): Skip dprintf breakpoints.
3351 (print_one_breakpoint_location): Ditto.
3352 (dprintf_style_agent): New global.
3353 (dprintf_style_enums): Add dprintf_style_agent.
3354 (update_dprintf_command_list): Add agent case.
3355 (agent_printf_command): New function.
3356 (_initialize_breakpoint): Add new commands.
3357 * common/ax.def (printf): New bytecode.
3358 * ax.h (ax_string): Declare.
3359 * ax-gdb.h (gen_printf): Declare.
3360 * ax-gdb.c: Include cli-utils.h, format.h.
3361 (gen_printf): New function.
3362 (maint_agent_print_command): New function.
3363 (_initialize_ax_gdb): Add maint agent-printf command.
3364 * ax-general.c (ax_string): New function.
3365 (ax_print): Add printf disassembly.
3366 * Makefile.in (SFILES): Add format.c
3367 (COMMON_OBS): Add format.o.
3368 * common/format.h: New file.
3369 * common/format.c: New file.
3370 * printcmd.c: Include format.h.
3371 (ui_printf): Call parse_format_string.
3372 * remote.c (remote_state): New field breakpoint_commands.
3373 (PACKET_BreakpointCommands): New enum.
3374 (remote_breakpoint_commands_feature): New function.
3375 (remote_protocol_features): Add new BreakpointCommands entry.
3376 (remote_can_run_breakpoint_commands): New function.
3377 (remote_add_target_side_commands): New function.
3378 (remote_insert_breakpoint): Call it.
3379 (remote_insert_hw_breakpoint): Ditto.
3380 (_initialize_remote): Add new packet configuration for
3381 target-side breakpoint commands.
3382 * target.h (struct target_ops): New field
3383 to_can_run_breakpoint_commands.
3384 (target_can_run_breakpoint_commands): New macro.
3385 * target.c (update_current_target): Handle
3386 to_can_run_breakpoint_commands.
3387
3388 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3389
3390 Execute -ix and -iex only after system and user gdbinit files.
3391 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3392 processing down after gdbinit files.
3393
3394 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Add fnmatch-gnu module.
3397 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3398 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3399 * gnulib/aclocal.m4: Regenerate.
3400 * gnulib/config.in: Regenerate.
3401 * gnulib/configure: Regenerate.
3402 * gnulib/import/dummy.c: Remove.
3403 * gnulib/import/Makefile.am: Regenerate.
3404 * gnulib/import/Makefile.in: Likewise.
3405 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3406 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3407 * gnulib/import/alloca.c: New file.
3408 * gnulib/import/alloca.in.h: Likewise.
3409 * gnulib/import/config.charset: Likewise.
3410 * gnulib/import/fnmatch.c: Likewise.
3411 * gnulib/import/fnmatch.in.h: Likewise.
3412 * gnulib/import/fnmatch_loop.c: Likewise.
3413 * gnulib/import/localcharset.c: Likewise.
3414 * gnulib/import/localcharset.h: Likewise.
3415 * gnulib/import/m4/alloca.m4: Likewise.
3416 * gnulib/import/m4/codeset.m4: Likewise.
3417 * gnulib/import/m4/configmake.m4: Likewise.
3418 * gnulib/import/m4/fcntl-o.m4: Likewise.
3419 * gnulib/import/m4/fnmatch.m4: Likewise.
3420 * gnulib/import/m4/glibc21.m4: Likewise.
3421 * gnulib/import/m4/localcharset.m4: Likewise.
3422 * gnulib/import/m4/locale-fr.m4: Likewise.
3423 * gnulib/import/m4/locale-ja.m4: Likewise.
3424 * gnulib/import/m4/locale-zh.m4: Likewise.
3425 * gnulib/import/m4/mbrtowc.m4: Likewise.
3426 * gnulib/import/m4/mbsinit.m4: Likewise.
3427 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3428 * gnulib/import/m4/mbstate_t.m4: Likewise.
3429 * gnulib/import/m4/stdbool.m4: Likewise.
3430 * gnulib/import/m4/wchar_h.m4: Likewise.
3431 * gnulib/import/m4/wctype_h.m4: Likewise.
3432 * gnulib/import/m4/wint_t.m4: Likewise.
3433 * gnulib/import/mbrtowc.c: Likewise.
3434 * gnulib/import/mbsinit.c: Likewise.
3435 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3436 * gnulib/import/mbsrtowcs-state.c: Likewise.
3437 * gnulib/import/mbsrtowcs.c: Likewise.
3438 * gnulib/import/ref-add.sin: Likewise.
3439 * gnulib/import/ref-del.sin: Likewise.
3440 * gnulib/import/stdbool.in.h: Likewise.
3441 * gnulib/import/streq.h: Likewise.
3442 * gnulib/import/strnlen1.c: Likewise.
3443 * gnulib/import/strnlen1.h: Likewise.
3444 * gnulib/import/verify.h: Likewise.
3445 * gnulib/import/wchar.in.h: Likewise.
3446 * gnulib/import/wctype.in.h: Likewise.
3447
3448 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3449
3450 Support shell wildcards for 'set auto-load safe-path'.
3451 * auto-load.c: Include fnmatch.h.
3452 (filename_is_in_dir): Rename to ...
3453 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3454 it. Update function comment. Rename dir_len to pattern_len. New
3455 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3456 messages. Use gdb_filename_fnmatch.
3457 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3458 pattern.
3459 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3460 * defs.h (gdb_filename_fnmatch): New declaration.
3461 * utils.c: Include fnmatch.h.
3462 (gdb_filename_fnmatch): New function.
3463
3464 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3465
3466 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3467 `-probe' and `-probe-stap' options.
3468
3469 2012-07-01 Yao Qi <yao@codesourcery.com>
3470
3471 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3472 always_inserted_off, and always_inserted_enums.
3473 Change always_inserted_mode's type to 'enum auto_boolean'.
3474 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3475 callers.
3476 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3477 of add_setshow_enum_cmd.
3478 * infrun.c: Remove can_use_displaced_stepping_auto,
3479 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3480 can_use_displaced_stepping_enum.
3481 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3482 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3483 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3484 add_setshow_enum_cmd.
3485
3486 2012-06-30 Doug Evans <dje@google.com>
3487
3488 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3489 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3490 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3491
3492 2012-06-29 Doug Evans <dje@google.com>
3493
3494 * linespec.c: #include "stack.h".
3495 (decode_line_with_current_source): Moved here from symtab.c and
3496 renamed from decode_line_spec. All callers updated.
3497 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3498 renamed from decode_line_spec_1. All callers updated.
3499 * linespec.h (decode_line_with_current_source): Move declaration here
3500 from symtab.h and renamed from decode_line_spec.
3501 (decode_line_with_last_displayed): Move declaration here from symtab.h
3502 and renamed from decode_line_spec_1.
3503 * macrocmd.c: #include "linespec.h".
3504 * symtab.c: Remove #include "linespec.h".
3505
3506 2012-06-28 Doug Evans <dje@google.com>
3507
3508 * dwarf2read.c (get_cu_length): New function.
3509 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3510 (create_debug_types_hash_table): Ditto.
3511 (init_cutu_and_read_dies): Ditto.
3512 (init_cutu_and_read_dies_no_follow): Ditto.
3513
3514 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3515
3516 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3517 (struct abbrev_table): Define.
3518 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3519 abbrev_table.
3520 (init_cutu_and_read_dies): Update.
3521 (abbrev_table_alloc_abbrev): New function. Replaces
3522 dwarf_alloc_abbrev. All callers updated.
3523 (abbrev_table_add_abbrev): New function.
3524 (abbrev_table_lookup_abbrev): New function. Replaces
3525 dwarf2_lookup_abbrev. All callers updated.
3526 (abbrev_table_read_table): New function. Contents moved here from
3527 dwarf2_read_abbrevs.
3528 (dwarf2_read_abbrevs): Call it.
3529 (abbrev_table_free): New function.
3530 (dwarf2_free_abbrev_table): Call it.
3531
3532 2012-06-28 Stan Shebs <stan@codesourcery.com>
3533
3534 * osdata.c (info_osdata_command): Filter out "Title" columns
3535 from non-MI uses.
3536 * common/linux-osdata.c (struct osdata_type): Add title field.
3537 (osdata_table): Add titles to each entry.
3538 (linux_command_xfer_osdata): Add a column for title data.
3539
3540 2012-06-28 Stan Shebs <stan@codesourcery.com>
3541
3542 Make logging work for MI.
3543 * NEWS: Mention it.
3544 * interps.h (interp_set_logging_ftype): New typedef.
3545 (struct interp_procs): New field set_logging_proc.
3546 (current_interp_set_logging): Declare.
3547 * interps.c (current_interp_set_logging): New function.
3548 * cli/cli-logging.c: Include interps.h.
3549 (set_logging_redirect): Call current_interp_set_logging.
3550 (pop_output_files): Ditto.
3551 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3552 * mi/mi-console.h (mi_console_set_raw): Declare.
3553 * mi/mi-console.c (mi_console_set_raw): New function.
3554 * mi/mi-interp.c (saved_raw_stdout): New global.
3555 (mi_set_logging): New function.
3556 (_initialize_mi_interp): Add it to interp procs.
3557
3558 2012-06-28 Doug Evans <dje@google.com>
3559
3560 * symtab.c (lookup_symbol_aux_objfile): Use
3561 ALL_OBJFILE_PRIMARY_SYMTABS.
3562
3563 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3564
3565 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 * common/buffer.c: Include inttypes.h and stdint.h.
3568 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3569
3570 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3571 Pedro Alves <palves@redhat.com>
3572
3573 * gdbthread.h (ALL_THREADS): New macro.
3574 (thread_list): Declare.
3575 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3576 going, but instead fall through to the stepping handling.
3577 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3578 the passed in signal. Adjust debug output.
3579 (resume_callback): Rename to ...
3580 (linux_nat_resume_callback): ... this. Pass the thread's last
3581 stop signal, if in "pass" state.
3582 (linux_nat_resume): Adjust to rename.
3583 (stop_wait_callback): New assertion. Don't respawn signals;
3584 instead let the LWP remain with SIGNALLED set.
3585 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3586 * remote.c (append_pending_thread_resumptions): New.
3587 (remote_vcont_resume): Call it.
3588 * target.h (target_resume): Extend comment.
3589
3590 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3591
3592 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3593
3594 2012-06-27 Doug Evans <dje@google.com>
3595
3596 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3597 Delete have_addr_base, unused. All uses updated.
3598 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3599 (dwarf2_get_pc_bounds): Add ranges_base.
3600 (dwarf2_record_block_ranges): Ditto.
3601
3602 2012-06-27 Tom Tromey <tromey@redhat.com>
3603
3604 PR macros/7961:
3605 * varobj.c (varobj_create): Update.
3606 (varobj_set_value): Update.
3607 * tracepoint.c (validate_actionline): Update.
3608 (encode_actions_1): Update.
3609 * parse.c (parse_exp_1): Add 'pc' argument.
3610 (parse_exp_in_context): Add 'pc' argument. Change how
3611 expression_context_pc is set.
3612 (parse_expression): Update.
3613 (parse_field_expression): Update.
3614 * expression.h (parse_exp_1): Update.
3615 * eval.c (parse_to_comma_and_eval): Update.
3616 * breakpoint.c (set_breakpoint_condition): Update.
3617 (update_watchpoint): Update.
3618 (init_breakpoint_sal): Update
3619 (find_condition_and_thread): Update.
3620 (watch_command_1): Update.
3621 (update_breakpoint_locations): Update.
3622 * ada-lang.c (ada_read_renaming_var_value): Update.
3623 (create_excep_cond_exprs): Update.
3624
3625 2012-06-27 Doug Evans <dje@google.com>
3626
3627 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3628 type units.
3629
3630 2012-06-26 Doug Evans <dje@google.com>
3631
3632 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3633 prototype.
3634 (error_check_comp_unit_head): New arg abbrev_section. All callers
3635 updated.
3636 (read_and_check_comp_unit_head): Ditto.
3637 (read_and_check_type_unit_head): Ditto.
3638
3639 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3640
3641 New attribute 'last' for gdb.Symtab_and_line.
3642 * NEWS (Python Scripting): Add entry about the new attribute.
3643 * python/py-symtab.c (salpy_get_last): New function which
3644 implements the get method for the 'last' attribute of
3645 gdb.Symtab_and_line.
3646 (sal_object_getset): Add entry for the 'last' attribute.
3647
3648 2012-06-26 Doug Evans <dje@google.com>
3649
3650 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3651 (dwo_sections): Add macinfo, macro.
3652 (dwarf2_locate_dwo_sections): Watch for macro sections.
3653 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3654 All callers updated. Handle DWO files.
3655
3656 * NEWS: Mention new options "set debug dwarf2-read" and
3657 "set debug symtab-create".
3658 * dwarf2read.c (dwarf2_read_debug): New static global.
3659 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3660 (process_queue): Ditto.
3661 (process_full_comp_unit): Ditto.
3662 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3663 * elfread.c (elf_symfile_read): Add debugging printf.
3664 * minsyms.c (install_minimal_symbols): Ditto.
3665 * psymtab.c (allocate_psymtab): Ditto.
3666 * symfile.c (allocate_symtab): Ditto.
3667 * symtab.c (symtab_create_debug): New global.
3668 (_initialize_symtab): Add new option "set debug symtab-create".
3669 * symtab.h (symtab_create_debug): Declare.
3670
3671 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3672 (lookup_dwo_type_unit): Ditto.
3673
3674 2012-06-26 Roland McGrath <roland@hack.frob.com>
3675 H.J. Lu <hongjiu.lu@intel.com>
3676
3677 * amd64-linux-nat.c: Include <sys/user.h>.
3678 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3679 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3680 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3681
3682 * configure.ac: Check if the fs_base and gs_base members of
3683 `struct user_regs_struct' exist.
3684 * config.in: Regenerated.
3685 * configure: Likewise.
3686
3687 2012-06-25 Michael Eager <eager@eagercon.com>
3688
3689 PR python/14291
3690 * python/python.c (gdbpy_write): Check for interrupted output.
3691
3692 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3693
3694 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3695 register as a stack alignment in ARM mode.
3696
3697 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3698
3699 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3700 * gnulib/config.in: Regenerate.
3701 * gnulib/configure: Likewise.
3702 * gnulib/import/m4/extensions.m4: Update it.
3703 * gnulib/import/m4/gnulib-common.m4: Likewise.
3704 * gnulib/import/m4/memmem.m4: Likewise.
3705 * gnulib/import/m4/mmap-anon.m4: Likewise.
3706 * gnulib/import/m4/multiarch.m4: Likewise.
3707 * gnulib/import/stdint.in.h: Likewise.
3708
3709 2012-06-24 Yao Qi <yao@codesourcery.com>
3710
3711 * corefile.c (write_memory_with_notification): New.
3712 * gdbcore.h: Declare write_memory_with_notification.
3713 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3714 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3715 * valops.c (value_assign): Likewise.
3716 * python/py-inferior.c (infpy_write_memory): Call
3717 'write_memory_with_notification'.
3718
3719 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3720
3721 * cc-with-index.sh: Use also -ex "set auto-load no".
3722
3723 2012-06-23 Doug Evans <dje@google.com>
3724
3725 PR 14125
3726 * NEWS: Document additions to .gdb_index.
3727 * dwarf2read.c: #include "gdb/gdb-index.h".
3728 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3729 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3730 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3731 (dwarf2_read_index): Recognize version 7.
3732 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3733 block_kind, domain): All callers updated.
3734 (dw2_find_symbol_file): Handle new index CU values.
3735 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3736 (add_index_entry): New args is_static, kind. All callers updated.
3737 (offset_type_compare, uniquify_cu_indices): New functions
3738 (symbol_kind): New function.
3739 (write_psymtabs_to_index): Remove duplicate CU values.
3740 (write_psymtabs_to_index): Write .gdb_index version 7.
3741
3742 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3743
3744 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3745 * configure: Regenerate.
3746
3747 2012-06-20 Yao Qi <yao@codesourcery.com>
3748
3749 * python/py-inferior.c: Update comments of infpy_read_memory
3750 and infpy_write_memory.
3751
3752 2012-06-19 Tom Tromey <tromey@redhat.com>
3753
3754 PR exp/9514:
3755 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3756 (push_type_address_space): Remove.
3757 * parse.c (insert_into_type_stack): New function.
3758 (insert_type): Likewise.
3759 (insert_type_address_space): Rename from push_type_address_space.
3760 Insert tp_space_identifier.
3761 * c-exp.y (ptr_operator): New production.
3762 (abs_decl): Use ptr_operator.
3763 (space_identifier): Call insert_type_address_space.
3764 (ptype): Don't use const_or_volatile_or_space_identifier.
3765 (const_or_volatile_noopt): Call insert_type.
3766 (conversion_type_id, conversion_declarator): New productions.
3767 (operator): Use conversion_type_id.
3768
3769 2012-06-18 Doug Evans <dje@google.com>
3770
3771 * symtab.h (minimal_symbol): New member created_by_gdb.
3772 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3773 created by gdb.
3774 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3775 (search_symbols): Call it instead of lookup_symbol.
3776 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3777
3778 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3779 Adjust address for DW_OP_GNU_addr_index.
3780 * dwarf2expr.h (dwarf_expr_context): Update comment.
3781 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3782 all callers updated. Handle TLS vars described with
3783 DW_OP_GNU_const_index.
3784 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3785 and DW_OP_GNU_const_index.
3786 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3787
3788 * block.c (find_block_in_blockvector): Make explicit the fact that we
3789 ignore GLOBAL_BLOCK.
3790
3791 2012-06-18 Tom Tromey <tromey@redhat.com>
3792
3793 * c-exp.y (operator): Remove trailing space after "delete" and
3794 "delete[]".
3795
3796 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3797 Jan Kratochvil <jan.kratochvil@redhat.com>
3798
3799 Switch i386 and derived targets to ON_STACK.
3800 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3801 (amd64_dicos_init_abi): Remove its installment.
3802 * dicos-tdep.c (dicos_init_abi): Remove the
3803 set_gdbarch_call_dummy_location call. Update the comment here.
3804 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3805 (i386_dicos_init_abi): Remove its installment.
3806 * i386-tdep.c (i386_push_dummy_code): New function.
3807 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3808 i386_push_dummy_code.
3809
3810 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 Remove stale dummy frames.
3813 * breakpoint.c: Include dummy-frame.h.
3814 (longjmp_breakpoint_ops): New variable.
3815 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3816 bp_longjmp_call_dummy.
3817 (bpstat_what, bptype_string, print_one_breakpoint_location)
3818 (init_bp_location): Support bp_longjmp_call_dummy.
3819 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3820 (set_longjmp_breakpoint_for_call_dummy)
3821 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3822 functions.
3823 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3824 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3825 FIXME comment and extend the other comment for bp_call_dummy.
3826 (set_longjmp_breakpoint_for_call_dummy)
3827 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3828 * dummy-frame.c: Include gdbthread.h.
3829 (pop_dummy_frame_bpt): New function.
3830 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3831 (dummy_frame_discard): New function.
3832 (cleanup_dummy_frames): Update the comment about longjmps.
3833 * dummy-frame.h (dummy_frame_discard): New declaration.
3834 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3835 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3836 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3837 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3838 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3839 keep_going if IS_LONGJMP and there is no other reason to stop.
3840
3841 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3842
3843 * remote-sim.c (sim_command_completer): Initialize
3844 variable 'result'.
3845
3846 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3847
3848 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3849 * dwarf2loc.c (call_site_parameter_matches): Support
3850 CALL_SITE_PARAMETER_PARAM_OFFSET.
3851 (needs_dwarf_reg_entry_value): Push stub value.
3852 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3853 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3854 * gdbtypes.h (enum call_site_parameter_kind): New item
3855 CALL_SITE_PARAMETER_PARAM_OFFSET.
3856 (struct call_site.parameter.u): New field param_offset.
3857
3858 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 Code cleanup: Generalize call_site.parameter key.
3861 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3862 variable dwarf_reg. New variable kind_u. Update parameters to
3863 push_dwarf_reg_entry_value.
3864 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3865 * dwarf2expr.h (enum call_site_parameter_kind)
3866 (union call_site_parameter_u): Forward declarations.
3867 (struct dwarf_expr_context_funcs): Update parameters and their
3868 description for push_dwarf_reg_entry_value.
3869 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3870 * dwarf2loc.c (call_site_parameter_matches): New function.
3871 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3872 description. Use call_site_parameter_matches.
3873 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3874 Update parameters and their description.
3875 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3876 New variable kind_u. Adjust the caller for updated parameters.
3877 (needs_dwarf_reg_entry_value): Update parameters.
3878 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3879 instead of attr. Update for the changed fields of struct
3880 call_site_parameter.
3881 * gdbtypes.h: Include dwarf2expr.h.
3882 (enum call_site_parameter_kind): New.
3883 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3884 fb_offset into new union u.
3885
3886 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3887
3888 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3889 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3890 for x32.
3891
3892 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3893
3894 * amd64-linux-nat.c (compat_x32_clock_t): New.
3895 (compat_x32_siginfo_t): Likewise.
3896 (compat_x32_siginfo_from_siginfo): Likewise.
3897 (siginfo_from_compat_x32_siginfo): Likewise.
3898 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3899 and siginfo_from_compat_x32_siginfo for x32.
3900
3901 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3902
3903 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3904
3905 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3906
3907 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3908 instead of gdbarch_ptr_bit.
3909 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3910 (amd64_supply_native_gregset): Likewise.
3911 (amd64_collect_native_gregset): Likewise.
3912 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3913 (amd64_supply_xsave): Likewise.
3914 (amd64_collect_fxsave): Likewise.
3915 (amd64_collect_xsave): Likewise.
3916
3917 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3918
3919 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3920 (amd64_linux_read_description): Check DS segment register for
3921 x32 process.
3922
3923 2012-06-15 Tom Tromey <tromey@redhat.com>
3924
3925 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3926 init_cutu_and_read_dies.
3927
3928 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3929
3930 * MAINTAINERS (Write After Approval): Add myself to the list.
3931
3932 2012-06-15 Tom Tromey <tromey@redhat.com>
3933
3934 * valops.c (value_find_oload_method_list): Now static.
3935 * value.h (value_find_oload_method_list): Don't declare.
3936
3937 2012-06-15 Tom Tromey <tromey@redhat.com>
3938
3939 * valops.c (find_overload_match): Use value_ind.
3940
3941 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3942
3943 * infrun.c (handle_inferior_event): Correct indentation.
3944
3945 2012-06-14 Doug Evans <dje@google.com>
3946
3947 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3948 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3949 All uses updated.
3950 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3951 updated. Handle DEBUG_LOC_START_LENGTH.
3952 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3953 (loclist_describe_location): Ditto.
3954
3955 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3956
3957 PR backtrace/13866
3958 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3959 after hiding inline functions.
3960
3961 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3962
3963 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3964 _initialize_inf_ttrace.
3965
3966 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3967
3968 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3969 _initialize_hppa_hpux_nat.
3970
3971 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3972
3973 * remote-sim.c (sim_command_completer): Change type of return
3974 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3975
3976 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3977 Jan Kratochvil <jan.kratochvil@redhat.com>
3978
3979 PR tdep/14222
3980 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3981 stack on a 16-byte boundary.
3982
3983 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3984
3985 * jit.c (finalize_symtab): Set function's return type to 'void' by
3986 default.
3987
3988 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3989 H.J. Lu <hongjiu.lu@intel.com>
3990
3991 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3992 Move bits common to both the classic LP64 and the new x32 ILP32
3993 ABI here.
3994 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3995 (amd64_x32_linux_init_abi): New function.
3996 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3997 subtype.
3998
3999 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4000 * i386-tdep.c (i386_pseudo_register_name): Make public.
4001 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4002 * amd64-tdep.c (amd64_dword_names): Add "eip".
4003 (amd64_x32_pseudo_register_type): New function
4004 (amd64_x32_init_abi): New function.
4005
4006 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4007
4008 PR build/14003
4009 * inferior.h (struct inferior_suspend_state): Comment out.
4010 (struct inferior): Comment out the field suspend.
4011 * infrun.c (struct infcall_suspend_state): Comment out the field
4012 inferior_suspend.
4013 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4014 out its assignment.
4015
4016 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4017
4018 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4019 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4020 function comment. Return ERROR for unresolved cases. Implement
4021 returning proper NAME.
4022 (yylex): Accept also NAME from classify_inner_name.
4023 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4024 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4025 LOC_TYPEDEF type.
4026 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4027
4028 2012-06-13 Tom Tromey <tromey@redhat.com>
4029
4030 * breakpoint.c (condition_completer): New function.
4031 (_initialize_breakpoint): Use it.
4032 * value.c (complete_internalvar): New function.
4033 * value.h (complete_internalvar): Declare.
4034
4035 2012-06-13 Tom Tromey <tromey@redhat.com>
4036
4037 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4038 * breakpoint.c (catch_syscall_completer): Return a VEC.
4039 * cli/cli-cmds.c (complete_command): Update.
4040 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4041 (complete_on_enum): Likewise.
4042 * command.h: Include gdb_vecs.h.
4043 (completer_ftype): Change return type.
4044 (complete_on_cmdlist, complete_on_enum): Likewise.
4045 * completer.c (noop_completer, filename_completer)
4046 (location_completer): Return a VEC.
4047 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4048 to a VEC.
4049 (expression_completer, complete_line_internal, complete_line)
4050 (command_completer): Return a VEC.
4051 (gdb_completion_word_break_characters, line_completion_function):
4052 Update.
4053 * completer.h: Include gdb_vecs.h.
4054 (complete_line, noop_completer, filename_completer)
4055 (expression_completer, location_completer, command_completer):
4056 Update.
4057 * f-lang.c (f_word_break_characters): Return a VEC.
4058 * interps.c (interpreter_completer): Return a VEC.
4059 * language.h (struct language_defn)
4060 <la_make_symbol_completion_list>: Return a VEC.
4061 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4062 * symtab.c (free_completion_list): Take a VEC.
4063 (return_val_size, return_val_index): Remove.
4064 (return_val): Now a VEC.
4065 (completion_list_add_name): Update.
4066 (default_make_symbol_completion_list_break_on)
4067 (default_make_symbol_completion_list, make_symbol_completion_list)
4068 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4069 Return a VEC.
4070 (add_filename_to_list): Update.
4071 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4072 <list>: Now a VEC.
4073 (maybe_add_partial_symtab_filename): Update.
4074 (make_source_files_completion_list): Return a VEC.
4075 * symtab.h (default_make_symbol_completion_list_break_on)
4076 (default_make_symbol_completion_list, make_symbol_completion_list)
4077 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4078 (make_source_files_completion_list): Update.
4079
4080 2012-06-13 Tom Tromey <tromey@redhat.com>
4081
4082 * breakpoint.c (add_catch_command): Use completer_ftype.
4083 * breakpoint.h: Include command.h.
4084 (add_catch_command): Use completer_ftype.
4085 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4086 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4087 Use completer_ftype.
4088 * command.h (completer_ftype): New typedef.
4089 (set_cmd_completer): Use it.
4090 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4091 completer_ftype.
4092
4093 2012-06-13 Pedro Alves <palves@redhat.com>
4094
4095 Partial revert of previous change.
4096
4097 * serial.c (scb_base): New global.
4098 (serial_for_fd): New.
4099 (serial_open, serial_fdopen_ops): Link new serial in open serials
4100 chain.
4101 (do_serial_close): Unlink serial from the open serials chain.
4102
4103 2012-06-12 Pedro Alves <palves@redhat.com>
4104
4105 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4106 threads here.
4107 (prepare_for_detach): No longer context switch here in non-stop
4108 mode.
4109 (fetch_inferior_event): Ditto.
4110 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4111 to the event thread before removing breakpoints. Switch to the
4112 event thread before inserting breakpoints and resuming.
4113 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4114 event thread before resuming.
4115 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4116 Switch to the event thread before removing breakpoints.
4117
4118 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4119
4120 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4121 special characters correctly for the Windows shells. See
4122 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4123 report.
4124 [!__MINGW32__]: Remove extra double quote character from special
4125 characters.
4126
4127 2012-06-11 Stan Shebs <stan@codesourcery.com>
4128
4129 * ui-out.h: Remove #if 0 declarations.
4130 * ui-out.c: Remove #if 0 functions.
4131
4132 2012-06-11 Pedro Alves <palves@redhat.com>
4133
4134 * ser-base.c (run_async_handler_and_reschedule): New.
4135 (fd_event, push_event): Use it.
4136 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4137 reference count to 1.
4138 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4139 instead of xfree.
4140 (serial_is_open, serial_ref, serial_unref): New.
4141 * serial.h (serial_open): Adjust comment.
4142 (serial_is_open): Declare.
4143 (serial_close): Adjust comment.
4144 (serial_ref, serial_unref) Declare.
4145 (struct serial): New field 'refcnt'.
4146
4147 2012-06-11 Pedro Alves <palves@redhat.com>
4148
4149 Remove #if 0'd "connect" command, and unnecessary associated
4150 refcounting and serial reuse bits.
4151
4152 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4153 * serial.c (last_serial_opened): Delete.
4154 (scb_base): Delete.
4155 (serial_open): Adjust.
4156 (serial_for_fd): Delete.
4157 (serial_fdopen_ops, do_serial_close): Adjust.
4158 (serial_fdopen_ops): Adjust.
4159
4160 2012-06-11 Pedro Alves <palves@redhat.com>
4161
4162 * serial.c (do_serial_close): Remove early return when SCB is
4163 null.
4164
4165 2012-06-11 Tom Tromey <tromey@redhat.com>
4166
4167 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4168
4169 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4170
4171 Fix regression by the "ambiguous linespec" series.
4172 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4173 get_last_displayed_symtab and get_last_displayed_line and depending
4174 on CURSAL.
4175
4176 2012-06-11 Tom Tromey <tromey@redhat.com>
4177
4178 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4179 (dw2_find_symbol_file): Use it.
4180
4181 2012-06-11 Michael Eager <eager@eagercon.com>
4182
4183 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4184 * mips-linux-tdep.h (mips_signals): New
4185
4186 2012-06-11 Tom Tromey <tromey@redhat.com>
4187
4188 * infrun.c (handle_inferior_event)
4189 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4190 breakpoint.
4191 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4192 exception logic in all cases. Update comments.
4193 (insert_longjmp_resume_breakpoint): Set the exception resume
4194 breakpoint.
4195
4196 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4197
4198 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4199
4200 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4201
4202 * valarith.c (binop_types_user_defined_p): Fix a typo.
4203
4204 2012-06-08 Yao Qi <yao@codesourcery.com>
4205 Chung-Lin Tang <cltang@codesourcery.com>
4206
4207 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4208 * arch-utils.h: Declare.
4209 * gdbarch.sh: Add return_in_first_hidden_param_p.
4210 * gdbarch.c, gdbarch.h: Regenerated.
4211 * infcall.c (call_function_by_hand): Call
4212 gdbarch_return_in_first_hidden_param_p instead of
4213 language_pass_by_reference.
4214
4215 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4216 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4217 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4218 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4219 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4220 `cplus_return_struct_by_reference'.
4221 (tic6x_return_value): Handle language cplusplus.
4222 (tic6x_return_in_first_hidden_param_p): New.
4223 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4224
4225 2012-06-07 Doug Evans <dje@google.com>
4226
4227 * dwarf2read.c (dwarf2_cu): Add comment.
4228
4229 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4230
4231 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4232 variable.
4233 (mips_eabi_push_dummy_call): Likewise.
4234 (mips_n32n64_push_dummy_call): Likewise.
4235 (mips_o32_push_dummy_call): Likewise.
4236 (mips_o64_push_dummy_call): Likewise.
4237
4238 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4239
4240 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4241
4242 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4243
4244 * mips-tdep.c (mips_pseudo_register_type): Use
4245 mips_float_register_p.
4246
4247 2012-06-06 Pedro Alves <palves@redhat.com>
4248
4249 * infrun.c (handle_inferior_event): Remove calls to
4250 reinit_frame_cache that follow a context_switch call.
4251
4252 2012-06-06 Pedro Alves <palves@redhat.com>
4253
4254 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4255 context_switch and remove stale comment.
4256
4257 2012-06-06 Pedro Alves <palves@redhat.com>
4258
4259 * infrun.c (struct execution_control_state): Remove
4260 `new_thread_event' field.
4261 (handle_inferior_event): Simplify new threads handling; don't
4262 resume the inferior if we find a new thread.
4263
4264 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4265
4266 * NEWS: Document the deprecation of SH's 'regs' command.
4267 * inferior.h (all_registers_info): Add function declaration.
4268 * sh-tdep.c (sh_show_regs): Remove variable.
4269 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4270 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4271 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4272 (sh_show_regs_command): Remove functions.
4273 (sh_gdbarch_init): Don't set sh_show_regs.
4274 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4275 'info all-registers'.
4276 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4277 (sh64_show_regs): Remove functions.
4278 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4279
4280 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4281
4282 * configure.ac: Move development=true below AC_INIT.
4283 * configure: Regenerate.
4284
4285 2012-06-05 Stan Shebs <stan@codesourcery.com>
4286
4287 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4288 gdb_stdout.
4289
4290 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4291
4292 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4293 argument as ssize_t.
4294 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4295 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4296 * target.c (target_read_stack, target_write_memory)
4297 (target_write_raw_memory): Likewise.
4298 * target.h (target_read_stack, target_write_memory)
4299 (target_write_raw_memory): Likewise.
4300
4301 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4302
4303 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4304 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4305 * target.c (target_read_memory): Change LEN to ssize_t.
4306 * target.h (target_read_memory): Change LEN to ssize_t.
4307
4308 2012-06-05 Pedro Alves <palves@redhat.com>
4309
4310 PR backtrace/13866
4311
4312 * breakpoint.c (until_break_command): Only fetch the selected
4313 frame after decode_line_1.
4314
4315 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4316
4317 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4318 event breakpoint at _start, __start or main if a program
4319 interpreter is not found.
4320
4321 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4322
4323 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4324 Add declaration.
4325 * windows-tdep.c: #include "objfiles.h".
4326 (windows_iterate_over_objfiles_in_search_order): New function.
4327 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4328 iterate_over_objfiles_in_search_order gdbarch method to
4329 windows_iterate_over_objfiles_in_search_order.
4330 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4331
4332 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4333
4334 * gdbarch.sh: Add generation of
4335 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4336 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4337 (iterate_over_objfiles_in_search_order): New gdbarch method.
4338 * gdbarch.h, gdbarch.c: Regenerate.
4339 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4340 Add declaration.
4341 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4342 New function.
4343 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4344 out of lookup_symbol_aux_symtabs.
4345 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4346 call to lookup_symbol_aux_objfile.
4347 (struct global_sym_lookup_data): New type.
4348 (lookup_symbol_global_iterator_cb): New function.
4349 (lookup_symbol_global): Search for symbol using
4350 gdbarch_iterate_over_objfiles_in_search_order and
4351 lookup_symbol_global_iterator_cb.
4352 * findvar.c (struct minsym_lookup_data): New type.
4353 (minsym_lookup_iterator_cb): New function.
4354 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4355 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4356 and minsym_lookup_iterator_cb.
4357
4358 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4359
4360 Revert the following patch:
4361 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4362 try locating the symbol in the symbol's own objfile first, before
4363 extending the search to all objfiles.
4364 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4365 out of lookup_symbol_aux_symtabs.
4366 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4367 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4368 Do not search EXCLUDE_OBJFILE.
4369 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4370 (lookup_symbol_global): Search for matches in the block's objfile
4371 first, before searching all other objfiles.
4372
4373 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4374
4375 * breakpoint.c (find_condition_and_thread): Stop parsing
4376 as soon as the first invalid keyword is found.
4377
4378 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4379
4380 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4381
4382 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4383
4384 * config/djgpp/djcheck.sh: Add copyright header.
4385
4386 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4387
4388 * copyright.py (update_files, main): Fix path to update-copyright
4389 script.
4390
4391 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4392
4393 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4394 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4395 for which a reminder to update by hand is printed.
4396
4397 2012-06-04 Doug Evans <dje@google.com>
4398
4399 * buildsym.c (make_blockvector): Add comment.
4400
4401 2012-06-04 Pedro Alves <palves@redhat.com>
4402
4403 * arch-utils.c (default_gdb_signal_from_target): Delete.
4404 * arch-utils.h (default_gdb_signal_from_target): Delete.
4405 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4406 gdbarch_gdb_signal_from_target_p.
4407 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4408 predicate).
4409 * gdbarch.h: Regenerate.
4410 * gdbarch.c: Regenerate.
4411
4412 2012-06-04 Pedro Alves <palves@redhat.com>
4413
4414 * gdbarch.sh (gdb_signal_from_target): Mention that the
4415 implementation of the method must be host independent.
4416 * gdbarch.h: Regenerate.
4417
4418 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4419
4420 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4421 parameters.
4422 (target_read_memory_bfd): New function.
4423 (symbol_file_add_from_memory): Use it.
4424
4425 2012-06-03 Doug Evans <dje@google.com>
4426
4427 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4428 of primary symtab.
4429 (basic_lookup_transparent_type): Ditto.
4430
4431 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4432 (ALL_PRIMARY_SYMTABS): Use it.
4433 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4434 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4435 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4436 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4437 (basic_lookup_transparent_type): Ditto.
4438
4439 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4440
4441 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4442 it to optimize resolution of demangled name.
4443
4444 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4445
4446 * configure.ac (development): Define new variable.
4447 Call AC_CHECK_LIB for mcheck if $development.
4448 (ERROR_ON_WARNING): Enable it by default only if $development.
4449 * config.in: Regenerate.
4450 * configure: Regenerate.
4451
4452 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4453
4454 * target.c (target_read_memory): Make LEN argument as size_t.
4455 * target.h (target_read_memory): Likewise.
4456
4457 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4458
4459 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4460
4461 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4462
4463 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4464 BookE interface for PowerPC server processors if not available
4465 in the Linux Kernel.
4466
4467 2012-05-31 Keith Seitz <keiths@redhat.com>
4468
4469 * linespec.c (decode_objc): Add cleanup to free
4470 INFO.FILE_SYMTABS.
4471 (find_linespec_symbols): Add cleanup to free CLASSES.
4472 * symfile.c (find_separate_debug_file_by_debuglink): Add
4473 cleanup to free DEBUGLINK.
4474 * ui-out.c (clear_header_list): No need to check if
4475 HEADER_NEXT.COLHDR is NULL.
4476 Free HEADER_NEXT.COL_NAME.
4477
4478 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4479
4480 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4481 warning.
4482
4483 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4484
4485 * configure.host (gdb_host_cpu): Handle tilegx*.
4486 (gdb_host): Handle tilegx-*-linux*.
4487 * tilegx-linux-nat.c: New file.
4488 * config/tilegx/linux.mh: New file.
4489
4490 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4491
4492 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4493 tilegx-linux-tdep.o.
4494 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4495 tilegx-linux-tdep.c.
4496 * configure.tgt: Handle tilegx-*-linux*.
4497 * tilegx-tdep.h: New file.
4498 * tilegx-tdep.c: New file.
4499 * tilegx-linux-tdep.c: New file.
4500 * regformats/reg-tilegx.dat: New file.
4501
4502 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4503
4504 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4505 accounting of hw watchpoints on ppc.
4506
4507 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4508
4509 * source.c (openp): Expand tilde in path entries.
4510
4511 2012-05-29 Doug Evans <dje@google.com>
4512
4513 * buildsym.c (block_compar): Fix comment.
4514 (end_symtab): Fix and clarify some comments.
4515
4516 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4517 cleanup_undefined_types.
4518 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4519 All callers updated.
4520
4521 2012-05-29 Tom Tromey <tromey@redhat.com>
4522
4523 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4524 fails.
4525 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4526 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4527 fails.
4528 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4529 fails.
4530
4531 2012-05-29 Tristan Gingold <gingold@adacore.com>
4532
4533 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4534 (struct darwin_info): ... New struct.
4535 (solib_darwin_pspace_data): New variable.
4536 (darwin_pspace_data_cleanup): New function.
4537 (get_darwin_info): Likewise.
4538 (darwin_dyld_version_ok, darwin_load_image_infos)
4539 (darwin_solib_get_all_image_info_addr_at_init)
4540 (darwin_solib_read_all_image_info_addr): Add info argument.
4541 Adjust code.
4542 (darwin_current_sos): Use per pspace structure.
4543 (darwin_solib_create_inferior_hook): Likewise.
4544 (darwin_clear_solib): Likewise.
4545 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4546
4547 2012-05-28 Pedro Alves <palves@redhat.com>
4548
4549 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4550 block that uses them. Clear ecss before handling each event.
4551
4552 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4553
4554 * solib-svr4.c (svr4_current_sos): New comment on
4555 svr4_current_sos_via_xfer_libraries fall back.
4556
4557 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4560 it as a fallback for TYPE_IS_OPAQUE.
4561 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4562 symbols for lookup_symbol.
4563
4564 2012-05-24 John Steele Scott <toojays@toojays.net>
4565
4566 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4567 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4568 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4569 (check_producer): ... this new function, which also checks for ICC
4570 and caches the result.
4571 (producer_is_icc): New function.
4572 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4573 producer was ICC.
4574
4575 2012-05-24 Pedro Alves <palves@redhat.com>
4576
4577 PR gdb/7205
4578
4579 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4580 (default_gdb_signal_to_target): ... this. Add comment.
4581 (default_gdb_signal_from_host): Rename to ...
4582 (default_gdb_signal_from_target): ... this. Add comment.
4583 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4584 (default_gdb_signal_to_target): ... this.
4585 (default_gdb_signal_from_host): Rename to ...
4586 (default_gdb_signal_from_target): ... this.
4587 * corelow.c (core_open): Adjust to naming change. Replace comment.
4588 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4589 (gdb_signal_from_target): ... this. Adjust to
4590 default_gdb_signal_from_host naming change. Extend comment.
4591 (gdb_signal_to_host): Rename to ...
4592 (gdb_signal_to_target): ... this. Adjust to
4593 default_gdb_signal_to_host naming change.
4594 * gdbarch.h, gdbarch.c: Renegerate.
4595
4596 2012-05-24 Pedro Alves <palves@redhat.com>
4597
4598 PR gdb/7205
4599
4600 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4601
4602 2012-05-24 Pedro Alves <palves@redhat.com>
4603
4604 PR gdb/7205
4605
4606 Replace target_signal with gdb_signal throughout.
4607
4608 2012-05-24 Pedro Alves <palves@redhat.com>
4609
4610 PR tui/14159
4611
4612 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4613 string, instead of reusing the va_list argument.
4614
4615 2012-05-24 Tom Tromey <tromey@redhat.com>
4616
4617 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4618 Remove.
4619
4620 2012-05-23 Doug Evans <dje@google.com>
4621
4622 * symtab.c (search_symbols): Formatting fixes.
4623 (print_symbol_info): Formatting fixes.
4624
4625 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4626 int64_t change to leb128 API.
4627 (read_encoded_value, decode_frame_entry_1): Ditto.
4628 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4629 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4630 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4631 (execute_stack_op): Ditto.
4632 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4633 (safe_read_uleb128, safe_read_sleb128): Ditto.
4634 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4635 (dwarf2_compile_expr_to_ax): Ditto.
4636 (locexpr_describe_location_piece): Ditto.
4637 (disassemble_dwarf_expression): Ditto.
4638 (locexpr_describe_location_1): Ditto.
4639
4640 2012-05-23 Stan Shebs <stan@codesourcery.com>
4641 Kwok Cheung Yeung <kcy@codesourcery.com>
4642
4643 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4644 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4645 (mi-cmd-info.o): New rule.
4646 * osdata.h (info_osdata_command): New declaration.
4647 * osdata.c (info_osdata_command): Change to non-static.
4648 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4649 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4650 * mi/mi-cmd-info.c: New file.
4651
4652 2012-05-23 Doug Evans <dje@google.com>
4653
4654 * symtab.c (search_symbols): Pass NULL for file_matcher to
4655 expand_symtabs_matching if there are no files to match.
4656
4657 * gdbtypes.c (lookup_typename): Simplify.
4658
4659 2012-05-23 Pedro Alves <palves@redhat.com>
4660
4661 * arch-utils.h (default_target_signal_to_host): Delete.
4662 * arch-utils.c (default_target_signal_to_host): Delete.
4663 * gdbarch.sh (target_signal_to_host): Remove.
4664 * gdbarch.h, gdbarch.c: Regenerate.
4665
4666 2012-05-22 Doug Evans <dje@google.com>
4667
4668 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4669 "const gdb_byte *".
4670 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4671 (execute_cfa_program): Update to match API of leb128 functions.
4672 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4673 "const gdb_byte *".
4674 (read_unsigned_leb128, read_signed_leb128): Delete.
4675 (read_initial_length): Change type of buf argument to
4676 "const gdb_byte *".
4677 (read_encoded_value): Update to match API of leb128 functions.
4678 (decode_frame_entry): Change result to "const gdb_byte *", and
4679 similarly for "start" parameter.
4680 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4681 (dwarf2_build_frame_info): Change local frame_ptr to
4682 "const gdb_byte *".
4683 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4684 read_uleb128, read_sleb128. All callers updated.
4685 (safe_skip_leb128): New function.
4686 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4687 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4688 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4689 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4690 read_uleb128, read_sleb128.
4691 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4692 (execute_stack_op): Update to match API of leb128 functions.
4693 * dwarf2expr.h: #include "leb128.h".
4694 (read_uleb128, read_sleb128): Delete.
4695 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4696 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4697 * dwarf2loc.c (debug_loc_kind): New enum.
4698 (decode_debug_loc_addresses): New function.
4699 (decode_debug_loc_dwo_addresses): New function.
4700 (dwarf2_find_location_expression): Rewrite.
4701 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4702 (locexpr_describe_location_piece): Ditto.
4703 (disassemble_dwarf_expression): Ditto.
4704 (locexpr_describe_location_1): Ditto.
4705 (loclist_describe_location): Rewrite.
4706 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4707 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4708 (dwarf2_section_buffer_overflow_complaint): Renamed from
4709 dwarf2_macros_too_long_complaint. All callers updated.
4710 (skip_leb128): Delete.
4711 (init_cu_die_reader): Initialize reader->buffer_end.
4712 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4713 (skip_form_bytes): New arg buffer_end. All callers updated.
4714 Replace call to skip_leb128 with gdb_skip_leb128.
4715 (skip_unknown_opcode): New arg mac_end. All callers updated.
4716 (fill_in_loclist_baton): Initialize baton->from_dwo.
4717
4718 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4719
4720 * mips-linux-nat.c (mips_linux_read_description): Use a more
4721 verbose error message.
4722
4723 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4724
4725 * NEWS: Add MIPS/Linux DSP support.
4726 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4727 (SIGCONTEXT_DSPCTL): New macro.
4728 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4729 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4730 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4731 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4732 (N64_SIGCONTEXT_HI3): Likewise.
4733 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4734 (N64_SIGCONTEXT_LO3): Likewise.
4735 (N64_SIGCONTEXT_DSPCTL): Likewise.
4736 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4737 (mips_linux_o32_sigframe_init): Handle DSP registers.
4738 (mips_linux_n32n64_sigframe_init): Likewise.
4739
4740 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4741
4742 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4743 call to abort.
4744
4745 2012-05-22 Pedro Alves <palves@redhat.com>
4746
4747 * target.h (store_waitstatus): Move declaration ...
4748 * inf-child.h (store_waitstatus): ... here.
4749 * target.c: Move inclusion of gdb_wait.h, and ...
4750 (store_waitstatus): ... this ...
4751 * inf-child.c: ... here.
4752 * linux-nat.c: Include inf-child.h.
4753 * rs6000-nat.c: Include inf-child.h.
4754 * spu-linux-nat.c: Include inf-child.h.
4755
4756 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4757
4758 * tracepoint.c (start_tracing): Add missing i18n markup.
4759 (stop_tracing, set_trace_user): Ditto.
4760 (set_trace_notes, set_trace_stop_notes): Ditto.
4761
4762 2012-05-21 Tom Tromey <tromey@redhat.com>
4763
4764 PR c++/7173:
4765 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4766 types.
4767 * value.h (value_cast_pointers): Update.
4768 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4769 (value_cast): Update.
4770 (update_search_result): New function.
4771 (do_search_struct_field): New, from search_struct_field. Check
4772 for ambiguous results.
4773 (search_struct_field): Rewrite.
4774 * infcall.c (value_arg_coerce): Update.
4775 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4776 value_cast_pointers.
4777 * ada-lang.c (ada_convert_actual): Update.
4778
4779 2012-05-21 Tom Tromey <tromey@redhat.com>
4780
4781 * macroexp.c (macro_stringify): Terminate the string.
4782
4783 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4784
4785 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4786 Describe it.
4787 * auto-load.c (auto_load_expand_dir_vars): New function.
4788 (auto_load_safe_path_vec_update): Use it, remove the
4789 substitute_path_component call thanks to it.
4790 (auto_load_objfile_script): Remove the debug_file_directory processing.
4791 Use auto_load_expand_dir_vars, remove the substitute_path_component
4792 call thanks to it.
4793 * configure: Regenerate.
4794 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4795 path. Escape $ also for $debugdir.
4796 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4797 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4798
4799 2012-05-20 Doug Evans <dje@google.com>
4800
4801 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4802 before use. Check for symtab->includes == NULL before scanning it.
4803
4804 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4805
4806 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4807
4808 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4809
4810 * NEWS: Add microMIPS support and "set mips compression",
4811 "show mips compression" commands.
4812 * mips-tdep.h (mips_isa): New enum.
4813 (gdbarch_tdep): Add mips_isa.
4814 (mips_pc_is_mips16): Update prototype.
4815 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4816 * mips-tdep.c (mips_compression_mips16): New variable.
4817 (mips_compression_micromips): Likewise.
4818 (mips_compression_strings): Likewise.
4819 (mips_compression_string): Likewise.
4820 (is_mips16_isa, is_micromips_isa): New functions.
4821 (is_mips16_addr): Rename to...
4822 (is_compact_addr): ... this.
4823 (unmake_mips16_addr): Likewise to...
4824 (unmake_compact_addr): ... this.
4825 (make_mips16_addr): Likewise to...
4826 (make_compact_addr): ... this.
4827 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4828 functions.
4829 (mips_elf_make_msymbol_special): Handle microMIPS code.
4830 (msymbol_is_special): Rename to...
4831 (msymbol_is_mips16): ... this.
4832 (mips_make_symbol_special, mips_pc_is_mips16): Update
4833 accordingly.
4834 (msymbol_is_mips, msymbol_is_micromips): New functions.
4835 (mips16_to_32_reg): Rename to...
4836 (mips_reg3_to_reg): ... this.
4837 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4838 (mips_pc_isa): Likewise.
4839 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4840 code.
4841 (mips_fetch_instruction): Pass return status instead of printing
4842 an error message if requested. Handle microMIPS code. Bail out
4843 on an invalid ISA.
4844 (micromips_op): New macro.
4845 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4846 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4847 (b6s4_op, b7s3_reg): Likewise.
4848 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4849 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4850 (mips_insn_size): New function.
4851 (mips32_next_pc): Update mips_fetch_instruction call.
4852 (micromips_relative_offset7): New function.
4853 (micromips_relative_offset10): Likewise.
4854 (micromips_relative_offset16): Likewise.
4855 (micromips_pc_insn_size): Likewise.
4856 (micromips_bc1_pc): Likewise.
4857 (micromips_next_pc): Likewise.
4858 (unpack_mips16): Update mips_fetch_instruction call.
4859 (extended_mips16_next_pc): Update according to change to
4860 mips16_to_32_reg.
4861 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4862 code.
4863 (mips16_scan_prologue): Update mips_fetch_instruction call.
4864 Update according to change to mips16_to_32_reg.
4865 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4866 (mips_insn16_frame_base_sniffer): Likewise.
4867 (micromips_decode_imm9): New function.
4868 (micromips_scan_prologue): Likewise.
4869 (mips_micro_frame_cache): Likewise.
4870 (mips_micro_frame_this_id): Likewise.
4871 (mips_micro_frame_prev_register): Likewise.
4872 (mips_micro_frame_sniffer): Likewise.
4873 (mips_micro_frame_unwind): New variable.
4874 (mips_micro_frame_base_address): New function.
4875 (mips_micro_frame_base): New variable.
4876 (mips_micro_frame_base_sniffer): New function.
4877 (mips32_scan_prologue): Update mips_fetch_instruction call.
4878 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4879 rather than for MIPS16.
4880 (mips_insn32_frame_base_sniffer): Likewise.
4881 (mips_addr_bits_remove): Handle microMIPS code.
4882 (deal_with_atomic_sequence): Rename to...
4883 (mips_deal_with_atomic_sequence): ... this. Update the type
4884 of the variable used to hold an instruction. Remove the ISA bit
4885 check. Update mips_fetch_instruction call.
4886 (micromips_deal_with_atomic_sequence): New function.
4887 (deal_with_atomic_sequence): Likewise.
4888 (mips_about_to_return): Handle microMIPS code. Update
4889 mips_fetch_instruction call.
4890 (heuristic_proc_start): Check for the standard MIPS ISA rather
4891 than for MIPS16. Update mips_pc_is_mips16 and
4892 mips_fetch_instruction calls. Handle microMIPS code.
4893 (mips_push_dummy_code): Handle microMIPS code.
4894 (mips_eabi_push_dummy_call): Likewise.
4895 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4896 (mips_o64_push_dummy_call): Handle microMIPS code.
4897 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4898 (is_delayed): Remove function.
4899 (mips_single_step_through_delay): Replace the call to is_delayed
4900 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4901 Handle microMIPS code.
4902 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4903 microMIPS code.
4904 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4905 call.
4906 (micromips_in_function_epilogue_p): New function.
4907 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4908 call.
4909 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4910 Handle microMIPS.
4911 (gdb_print_insn_mips): Likewise.
4912 (mips_breakpoint_from_pc): Likewise.
4913 (mips_remote_breakpoint_from_pc): New function.
4914 (mips32_instruction_has_delay_slot): Simplify making use of the
4915 updated mips_fetch_instruction interface.
4916 (micromips_instruction_has_delay_slot): New function.
4917 (mips16_instruction_has_delay_slot): Simplify making use of the
4918 updated mips_fetch_instruction interface.
4919 (mips_adjust_breakpoint_address): Check for the standard MIPS
4920 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4921 calls. Handle microMIPS code.
4922 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4923 (mips_skip_trampoline_code): Handle microMIPS code.
4924 (global_mips_compression): New function.
4925 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4926 file flags. Register the microMIPS remote breakpoint handler
4927 and heuristic frame unwinder.
4928 (show_mips_compression): New function.
4929 (_initialize_mips_tdep): Add the "set mips compression" and
4930 "show mips compression" commands.
4931
4932 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4933
4934 * ada-lang.c:
4935 * ada-tasks.c:
4936 * ada-varobj.c:
4937 * amd64-darwin-tdep.c:
4938 * arm-symbian-tdep.c:
4939 * arm-tdep.c:
4940 * avr-tdep.c:
4941 * ax-gdb.c:
4942 * bfin-linux-tdep.c:
4943 * breakpoint.c:
4944 * c-valprint.c:
4945 * cli/cli-cmds.c:
4946 * coffread.c:
4947 * cp-support.c:
4948 * cris-tdep.c:
4949 * dwarf2-frame-tailcall.c:
4950 * dwarf2-frame.c:
4951 * dwarf2expr.c:
4952 * dwarf2loc.c:
4953 * dwarf2read.c:
4954 * elfread.c:
4955 * eval.c:
4956 * expprint.c:
4957 * f-valprint.c:
4958 * frv-tdep.c:
4959 * h8300-tdep.c:
4960 * hppa-hpux-tdep.c:
4961 * hppa-tdep.c:
4962 * hppanbsd-tdep.c:
4963 * i386-nto-tdep.c:
4964 * i386-tdep.c:
4965 * i387-tdep.c:
4966 * ia64-tdep.c:
4967 * jit.c:
4968 * linespec.c:
4969 * linux-tdep.c:
4970 * lm32-tdep.c:
4971 * m2-valprint.c:
4972 * m32c-tdep.c:
4973 * m32r-rom.c:
4974 * m32r-tdep.c:
4975 * m68k-tdep.c:
4976 * m68klinux-tdep.c:
4977 * mi/mi-main.c:
4978 * microblaze-tdep.c:
4979 * mips-linux-tdep.c:
4980 * mips-tdep.c:
4981 * mn10300-tdep.c:
4982 * p-valprint.c:
4983 * parse.c:
4984 * ppc-linux-tdep.c:
4985 * ppc-sysv-tdep.c:
4986 * printcmd.c:
4987 * python/py-finishbreakpoint.c:
4988 * python/py-inferior.c:
4989 * python/py-infthread.c:
4990 * python/py-type.c:
4991 * python/python.c:
4992 * remote-fileio.c:
4993 * remote-m32r-sdi.c:
4994 * remote-mips.c:
4995 * reverse.c:
4996 * rl78-tdep.c:
4997 * rs6000-aix-tdep.c:
4998 * rs6000-tdep.c:
4999 * s390-tdep.c:
5000 * score-tdep.c:
5001 * sh64-tdep.c:
5002 * skip.c:
5003 * solib-darwin.c:
5004 * solib-dsbt.c:
5005 * solib-frv.c:
5006 * sparc-tdep.c:
5007 * spu-multiarch.c:
5008 * spu-tdep.c:
5009 * stack.c:
5010 * symfile.c:
5011 * symtab.c:
5012 * tic6x-tdep.c:
5013 * tracepoint.c:
5014 * v850-tdep.c:
5015 * valarith.c:
5016 * valprint.c:
5017 * value.c:
5018 * xcoffread.c:
5019 * xtensa-tdep.c:
5020 * ada-lang.c:
5021 * ada-tasks.c:
5022 * ada-varobj.c:
5023 * amd64-darwin-tdep.c:
5024 * arm-symbian-tdep.c:
5025 * arm-tdep.c: Delete unused variables.
5026
5027 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 Rename $ddir to $datadir.
5030 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5031 * auto-load.c (auto_load_safe_path_vec_update)
5032 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5033 * configure: Regenerate.
5034 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5035 Likewise. Remove the 'use $ddir' help string.
5036
5037 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5040 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5041
5042 2012-05-18 Tom Tromey <tromey@redhat.com>
5043
5044 PR exp/13907:
5045 * valprint.h (struct value_print_options) <symbol_print>: New
5046 field.
5047 * valprint.c (user_print_options): Add default for symbol_print.
5048 (show_symbol_print): New function.
5049 (generic_val_print): Respect symbol_print.
5050 (_initialize_valprint): Add "print symbol" setting.
5051 * f-valprint.c (f_val_print): Respect symbol_print.
5052 * c-valprint.c (c_val_print): Respect symbol_print.
5053 * NEWS: Update.
5054 * printcmd.c (print_address_symbolic): Return int. Ignore some
5055 zero-size symbols.
5056 (print_address_demangle): Return int.
5057 * defs.h: (print_address_symbolic): Return int.
5058 * value.h (print_address_demangle): Return int.
5059
5060 2012-05-18 Tom Tromey <tromey@redhat.com>
5061
5062 * valprint.c (val_print_string): Don't print leading space.
5063 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5064 print space before string or vtbl.
5065 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5066 before string.
5067 * jv-valprint.c (java_value_print): Print space before string.
5068 * go-valprint.c (print_go_string): Print space before string.
5069 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5070 space before string.
5071 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5072 space before string or vtbl.
5073 * auxv.c (fprint_target_auxv): Print space after address.
5074
5075 2012-05-18 Tom Tromey <tromey@redhat.com>
5076
5077 * printcmd.c (print_address_demangle): Remove special case for 0.
5078
5079 2012-05-18 Tom Tromey <tromey@redhat.com>
5080
5081 * printcmd.c (print_address_demangle): Add 'opts' argument.
5082 * p-valprint.c (pascal_val_print): Update.
5083 * jv-valprint.c (java_val_print): Update.
5084 * value.h: Update.
5085 * valprint.c (generic_val_print): Update.
5086 (print_function_pointer_address): Add 'options' argument. Remove
5087 'addressprint' argument. Update.
5088 * m2-valprint.c (print_unpacked_pointer): Update.
5089 * gnu-v3-abi.c (print_one_vtable): Update.
5090 (gnuv3_print_method_ptr): Update.
5091 * f-valprint.c (f_val_print): Update.
5092 * cp-valprint.c (cp_print_value_fields): Update.
5093 * valprint.h (print_function_pointer_address): Update.
5094 * c-valprint.c (c_val_print): Update.
5095
5096 2012-05-18 Tom Tromey <tromey@redhat.com>
5097
5098 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5099 directly corresponding to the found psymtab.
5100 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5101 (dw2_find_pc_sect_symtab): Use it.
5102 * block.h (blockvector_contains_pc): Declare.
5103 * block.c (find_block_in_blockvector): New function.
5104 (blockvector_for_pc_sect): Use it.
5105 (blockvector_contains_pc): New function.
5106
5107 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5108
5109 * mips-tdep.h (mips_write_pc): New prototype.
5110 * mips-tdep.c (mips_write_pc): Make external, add description.
5111 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5112 add description.
5113
5114 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5115
5116 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5117 mips_regnum->pc.
5118 (mips_unwind_pc, mips_write_pc): Likewise.
5119 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5120 gdbarch_read_pc.
5121
5122 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5123
5124 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5125 proc_warn, proc_error, proc_get_status, proc_flags,
5126 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5127 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5128 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5129 proc_stop_process, proc_wait_for_stop, proc_run_process,
5130 proc_set_traced_signals, proc_set_traced_faults,
5131 proc_set_traced_sysentry, proc_set_traced_sysexit,
5132 proc_set_held_signals, proc_get_held_signals,
5133 proc_get_traced_signals, proc_get_traced_faults,
5134 proc_get_traced_sysentry, proc_get_traced_sysexit,
5135 proc_clear_current_fault, proc_set_current_signal,
5136 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5137 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5138 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5139 proc_get_current_thread, proc_get_current_thread,
5140 proc_get_current_thread, proc_update_threads,
5141 proc_update_threads, proc_update_threads, proc_update_threads,
5142 proc_iterate_over_threads, procfs_find_new_threads,
5143 procfs_pid_to_str): Make static. Remove advance declaration.
5144 (proc_cursig): Make static. Conditionalized defintion on
5145 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5146 (proc_syscall, proc_set_kill_on_last_close,
5147 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5148 proc_get_pending_signals, proc_get_signal_actions,
5149 proc_trace_signal, proc_ignore_signal): Delete.
5150
5151 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5152
5153 * coffread.c (cs_section_address): Passing proper argument for
5154 `bfd_get_section_vma'.
5155 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5156 `bfd_get_section_flags'.
5157 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5158 `bfd_get_section_vma'.
5159
5160 2012-05-16 Tom Tromey <tromey@redhat.com>
5161
5162 PR macros/13205:
5163 * macrotab.h: (macro_define_special): Declare.
5164 (enum macro_special_kind): New.
5165 (struct macro_definition) <argc, replacement>: Update comments.
5166 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5167 (macro_define_object_internal): New function.
5168 (macro_define_object): Use it.
5169 (macro_define_special): New function.
5170 (fixup_definition): New function.
5171 (macro_lookup_definition, foreach_macro_in_scope)
5172 (foreach_macro): Use fixup_definition.
5173 * macroexp.h (macro_stringify): Declare.
5174 * macroexp.c (free_buffer_return_text): New function.
5175 (stringify): Constify "arg".
5176 (macro_stringify): New function.
5177 * dwarf2read.c (macro_start_file): Call macro_define_special.
5178
5179 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5180 Maciej W. Rozycki <macro@mips.com>
5181
5182 * breakpoint.h (bp_location): Add related_address member.
5183 * inferior.h (get_return_value): Take a pointer to struct value
5184 instead of struct type for the function requested.
5185 * value.h (using_struct_return): Likewise.
5186 * gdbarch.sh (return_value): Take a pointer to struct value
5187 instead of struct type for the function requested.
5188 * breakpoint.c (set_breakpoint_location_function): Initialize
5189 related_address for bp_gnu_ifunc_resolver breakpoints.
5190 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5191 requested function's address to gdbarch_return_value.
5192 * eval.c (evaluate_subexp_standard): Pass the requested
5193 function's address to using_struct_return.
5194 * infcall.c (call_function_by_hand): Pass the requested
5195 function's address to using_struct_return and
5196 gdbarch_return_value.
5197 * infcmd.c (get_return_value): Take a pointer to struct value
5198 instead of struct type for the function requested.
5199 (print_return_value): Update accordingly.
5200 (finish_command_continuation): Likewise.
5201 * stack.c (return_command): Pass the requested function's
5202 address to using_struct_return and gdbarch_return_value.
5203 * value.c (using_struct_return): Take a pointer to struct value
5204 instead of struct type for the function requested. Pass the
5205 requested function's address to gdbarch_return_value.
5206 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5207 New function_value member, replacing function_type.
5208 (bpfinishpy_dealloc): Update accordingly.
5209 (bpfinishpy_pre_stop_hook): Likewise.
5210 (bpfinishpy_init): Likewise. Record the requested function's
5211 address.
5212 * mips-tdep.c (mips_fval_reg): New enum.
5213 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5214 words put in GP registers.
5215 (mips_o64_push_dummy_call): Update a comment.
5216 (mips_o32_return_value): Take a pointer to struct value instead
5217 of struct type for the function requested and use it to check if
5218 using the MIPS16 calling convention. Return the designated
5219 general purpose registers for floating-point values returned in
5220 MIPS16 mode.
5221 (mips_o64_return_value): Likewise.
5222 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5223 (ppc_sysv_abi_broken_return_value): Likewise.
5224 (ppc64_sysv_abi_return_value): Likewise.
5225 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5226 value instead of struct type for the function requested.
5227 * amd64-tdep.c (amd64_return_value): Likewise.
5228 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5229 * arm-tdep.c (arm_return_value): Likewise.
5230 * avr-tdep.c (avr_return_value): Likewise.
5231 * bfin-tdep.c (bfin_return_value): Likewise.
5232 * cris-tdep.c (cris_return_value): Likewise.
5233 * frv-tdep.c (frv_return_value): Likewise.
5234 * h8300-tdep.c (h8300_return_value): Likewise.
5235 (h8300h_return_value): Likewise.
5236 * hppa-tdep.c (hppa32_return_value): Likewise.
5237 (hppa64_return_value): Likewise.
5238 * i386-tdep.c (i386_return_value): Likewise.
5239 * ia64-tdep.c (ia64_return_value): Likewise.
5240 * iq2000-tdep.c (iq2000_return_value): Likewise.
5241 * lm32-tdep.c (lm32_return_value): Likewise.
5242 * m32c-tdep.c (m32c_return_value): Likewise.
5243 * m32r-tdep.c (m32r_return_value): Likewise.
5244 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5245 * m68k-tdep.c (m68k_return_value): Likewise.
5246 (m68k_svr4_return_value): Likewise.
5247 * m88k-tdep.c (m88k_return_value): Likewise.
5248 * mep-tdep.c (mep_return_value): Likewise.
5249 * microblaze-tdep.c (microblaze_return_value): Likewise.
5250 * mn10300-tdep.c (mn10300_return_value): Likewise.
5251 * moxie-tdep.c (moxie_return_value): Likewise.
5252 * mt-tdep.c (mt_return_value): Likewise.
5253 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5254 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5255 (ppc_sysv_abi_broken_return_value): Likewise.
5256 (ppc64_sysv_abi_return_value): Likewise.
5257 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5258 * rl78-tdep.c (rl78_return_value): Likewise.
5259 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5260 * rx-tdep.c (rx_return_value): Likewise.
5261 * s390-tdep.c (s390_return_value): Likewise.
5262 * score-tdep.c (score_return_value): Likewise.
5263 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5264 (sh_return_value_fpu): Likewise.
5265 * sh64-tdep.c (sh64_return_value): Likewise.
5266 * sparc-tdep.c (sparc32_return_value): Likewise.
5267 * sparc64-tdep.c (sparc64_return_value): Likewise.
5268 * spu-tdep.c (spu_return_value): Likewise.
5269 * tic6x-tdep.c (tic6x_return_value): Likewise.
5270 * v850-tdep.c (v850_return_value): Likewise.
5271 * vax-tdep.c (vax_return_value): Likewise.
5272 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5273 * xtensa-tdep.c (xtensa_return_value): Likewise.
5274 * gdbarch.c: Regenerate.
5275 * gdbarch.h: Regenerate.
5276
5277 2012-05-15 Tom Tromey <tromey@redhat.com>
5278
5279 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5280
5281 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5282
5283 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5284 of command in two error message.
5285
5286 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5287
5288 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5289
5290 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5291
5292 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5293
5294 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5295
5296 * NEWS (show auto-load scripts-directory): Add forgotten command.
5297
5298 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5299
5300 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5301 parameters.
5302
5303 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5304
5305 * amd64-tdep.c: Include features/i386/x32.c and
5306 features/i386/x32-avx.c.
5307 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5308 initialize_tdesc_x32_avx.
5309
5310 2012-05-14 Stan Shebs <stan@codesourcery.com>
5311
5312 Add dynamic printf.
5313 * breakpoint.h (enum bptype): New type bp_dprintf.
5314 (struct breakpoint): New field extra_string.
5315 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5316 (create_breakpoint): Add extra_string arg.
5317 * breakpoint.c (dprintf_breakpoint_ops): New.
5318 (is_breakpoint): Add bp_dprintf.
5319 (bpstat_what): Add dprintf case.
5320 (bptype_string): Ditto.
5321 (print_one_breakpoint_location): Ditto.
5322 (init_bp_location): Ditto.
5323 (bkpt_print_mention): Ditto.
5324 (dprintf_style_enums): New array.
5325 (dprintf_style): New global.
5326 (dprintf_function): New global.
5327 (dprintf_channel): New global.
5328 (update_dprintf_command_list): New function.
5329 (update_dprintf_commands): New function.
5330 (init_breakpoint_sal): Add extra_string argument, handle it.
5331 (create_breakpoint_sal): Add extra_string argument.
5332 (create_breakpoints_sal): Add extra_string argument, update callers.
5333 (find_condition_and_thread): Add extra argument.
5334 (create_breakpoint): Add extra_string argument, record it.
5335 (dprintf_command): New function.
5336 (break_command_1): Add arg to create_breakpoint call.
5337 (handle_gnu_v3_exceptions): Ditto.
5338 (trace_command): Ditto.
5339 (ftrace_command): Ditto.
5340 (strace_command): Ditto.
5341 (bkpt_print_mention): Add dprintf case.
5342 (create_breakpoint_sal_default): Add extra_string argument.
5343 (_initialize_breakpoint): Add new commands.
5344 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5345 * python/py-breakpoint.c (bppy_init): Ditto.
5346 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5347
5348 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5349
5350 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5351
5352 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5353
5354 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5355 unsigned long long.
5356
5357 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5358
5359 Add a new function gdb.find_pc_line to the Python API.
5360 * NEWS (Python Scripting): Add entry about the new function.
5361 * python/python.c (gdbpy_find_pc_line): New function which
5362 implements gdb.find_pc_line.
5363 (GdbMethods): Add entry for the new function.
5364
5365 2012-05-12 Pedro Alves <palves@redhat.com>
5366
5367 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5368 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5369
5370 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5371
5372 * inferior.c: Include completer.h
5373 (initialize_inferiors): Set completer of add-inferior to
5374 filename_completer.
5375
5376 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5377
5378 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5379 gdbarch_ptr_bit for x32 core dump.
5380
5381 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5382
5383 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5384 and features/i386/x32-avx-linux.c.
5385
5386 2012-05-11 Stan Shebs <stan@codesourcery.com>
5387 Kwok Cheung Yeung <kcy@codesourcery.com>
5388
5389 * NEWS: Describe new info os commands.
5390 * common/linux-osdata.c (PID_T, TIME_T): Define.
5391 (MAX_PID_T_STRLEN): New.
5392 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5393 MAX_PID_T_STRLEN.
5394 (command_from_pid): Add comment. Change to use PID_T.
5395 (commandline_from_pid): Change to use PID_T.
5396 (user_from_pid): Add comment.
5397 (get_process_owner): Add comment. Change to use PID_T and
5398 MAX_PID_T_STRLEN.
5399 (get_number_of_cpu_cores): Add comment.
5400 (get_cores_used_by_process): Add comment. Change to use PID_T and
5401 MAX_PID_T_STRLEN.
5402 (linux_xfer_osdata_processes): Change to use PID_T and
5403 MAX_PID_T_STRLEN.
5404 (compare_processes): New function.
5405 (linux_xfer_osdata_processgroups): New function.
5406 (linux_xfer_osdata_threads): Change to use PID_T.
5407 (linux_xfer_osdata_fds): New function.
5408 (format_socket_state, print_sockets): New functions.
5409 (union socket_addr): New union.
5410 (linux_xfer_osdata_isockets): New function.
5411 (time_from_time_t, group_from_gid): New functions.
5412 (linux_xfer_osdata_shm): New function.
5413 (linux_xfer_osdata_sem): New function.
5414 (linux_xfer_osdata_msg): New function.
5415 (linux_xfer_osdata_modules): New function.
5416 (osdata_table): Add new entries.
5417 * common/buffer.c (buffer_xml_printf): Add support for long and
5418 long long format specifiers.
5419
5420 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5421
5422 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5423 (tdesc_x32_avx_linux): Likewise.
5424
5425 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5426
5427 Implement multi-component --with-auto-load-dir.
5428 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5429 entries.
5430 (--with-auto-load-safe-path): Update the default value description.
5431 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5432 New.
5433 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5434 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5435 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5436 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5437 "set auto-load scripts-directory".
5438 * config.in: Regenerate.
5439 * configure: Regenerate.
5440 * configure.ac (--with-auto-load-dir): New configure option.
5441 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5442
5443 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5444
5445 Provide $ddir substitution for --with-auto-load-safe-path.
5446 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5447 entries.
5448 * auto-load.c: Include observer.h.
5449 (auto_load_safe_path_vec_update): Call substitute_path_component for
5450 each component. New variable ddir_subst.
5451 (auto_load_gdb_datadir_changed): New function.
5452 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5453 AUTO_LOAD_SAFE_PATH. New comment.
5454 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5455 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5456 * config.in: Regenerate.
5457 * configure: Regenerate.
5458 * configure.ac (--auto-load-safe-path): Rename
5459 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5460 GDB_DATADIR/auto-load.
5461 * defs.h (substitute_path_component): New declaration.
5462 * top.c: Include observer.h.
5463 (set_gdb_datadir): New function.
5464 (init_main): Install it for "set data-directory".
5465 * utils.c (substitute_path_component): New function.
5466
5467 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5468
5469 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5470 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5471 DEBUG_FILE_DIRECTORY. Handle multiple components of
5472 DEBUG_FILE_DIRECTORY.
5473
5474 2012-05-10 Tom Tromey <tromey@redhat.com>
5475
5476 * dwarf2read.c (recursively_write_psymbols): New function.
5477 (write_psymtabs_to_index): Use it.
5478
5479 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5480 field.
5481 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5482 (load_partial_comp_unit): Update.
5483 (queue_comp_unit): Add argument 'pretend_language'.
5484 (process_queue): Update.
5485 (psymtab_to_symtab_1): Skip dependencies that have a user.
5486 (load_partial_comp_unit_reader): Give meaning to the 'data'
5487 argument.
5488 (load_full_comp_unit): Add 'pretend_language' argument.
5489 (process_full_comp_unit): Add 'pretend_language' argument. Set
5490 language on CU.
5491 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5492 Update.
5493 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5494 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5495 Update.
5496 (prepare_one_comp_unit): Add 'pretend_language' argument.
5497
5498 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5499 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5500 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5501 (dw2_do_instantiate_symtab): Check whether symtab was read in
5502 before queueing.
5503 (dw2_instantiate_symtab): Add assertion. Call
5504 process_cu_includes.
5505 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5506 (partial_symtab_p): New typedef.
5507 (set_partial_user): New function.
5508 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5509 (scan_partial_symbols): Add imported CU to imported_symtabs.
5510 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5511 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5512 (get_symtab, recursively_compute_inclusions)
5513 (compute_symtab_includes, process_cu_includes)
5514 (process_imported_unit_die): New functions.
5515 (process_die) <DW_TAG_imported_unit>: New case.
5516 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5517
5518 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5519 comment.
5520 (struct partial_die_info) <locdesc>: Remove.
5521 <d>: New field.
5522 (process_psymtab_comp_unit): Add 'read_partial' argument.
5523 Update.
5524 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5525 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5526 (add_partial_symbol): Update.
5527 (process_die): Handle DW_TAG_partial_unit.
5528 (read_file_scope): Update comment.
5529 (load_partial_dies): Handle DW_TAG_imported_unit.
5530 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5531 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5532
5533 2012-05-10 Tom Tromey <tromey@redhat.com>
5534
5535 * cc-with-dwz.sh: New file.
5536
5537 2012-05-10 Tom Tromey <tromey@redhat.com>
5538
5539 * symtab.h (struct symtab) <includes, user>: New fields.
5540 * block.h (struct block_iterator) <d, idx, which>: New fields.
5541 * block.c (initialize_block_iterator, find_iterator_symtab)
5542 (block_iterator_step, block_iter_name_step)
5543 (block_iter_match_step): New functions.
5544 (block_iterator_first, block_iterator_next)
5545 (block_iter_name_first, block_iter_name_next)
5546 (block_iter_match_first, block_iter_match_next): Rewrite.
5547 (get_block_symtab): New function.
5548
5549 2012-05-10 Tom Tromey <tromey@redhat.com>
5550
5551 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5552 set_block_symtab.
5553 * jit.c (finalize_symtab): Use allocate_global_block,
5554 set_block_symtab.
5555 * buildsym.c (finish_block_internal): New function, from old
5556 finish_block.
5557 (finish_block): Rewrite.
5558 (end_symtab): Use finish_block_internal, set_block_symtab.
5559 * block.h (struct global_block): New.
5560 (allocate_global_block, set_block_symtab): Declare.
5561 * block.c (allocate_global_block, set_block_symtab): New
5562 functions.
5563
5564 2012-05-10 Tom Tromey <tromey@redhat.com>
5565
5566 * psymtab.c (partial_map_expand_apply): Add assertion.
5567 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5568 (psymtab_to_symtab): Find unshared psymtab.
5569 (dump_psymtab): Print including psymtabs.
5570 (recursively_search_psymtabs): New function.
5571 (expand_symtabs_matching_via_partial): Use it.
5572 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5573 fields.
5574 (enum psymtab_search_status): New.
5575
5576 2012-05-10 Tom Tromey <tromey@redhat.com>
5577
5578 * tracepoint.c (scope_info): Update.
5579 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5580 (find_pc_sect_symtab, search_symbols)
5581 (default_make_symbol_completion_list_break_on)
5582 (make_file_symbol_completion_list): Update.
5583 * symmisc.c (dump_symtab_1): Update.
5584 * stack.c (print_frame_args, iterate_over_block_locals)
5585 (print_frame_labels, iterate_over_block_arg_vars): Update.
5586 * python/py-block.c (block_object) <dict>: Remove.
5587 <block>: New field.
5588 <iter>: Change type.
5589 (blpy_iter): Update.
5590 (blpy_block_syms_iternext): Update.
5591 * psymtab.c (map_block): Use block iterators.
5592 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5593 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5594 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5595 * infrun.c (check_exception_resume): Update.
5596 * cp-support.c (make_symbol_overload_list_block): Update.
5597 * coffread.c (patch_opaque_types): Update.
5598 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5599 * block.h (struct block_iterator): New.
5600 (block_iterator_first, block_iterator_next, block_iter_name_first)
5601 (block_iter_name_next, block_iter_match_first)
5602 (block_iter_match_next): Declare.
5603 (ALL_BLOCK_SYMBOLS): Redefine.
5604 * block.c (block_iterator_first, block_iterator_next)
5605 (block_iter_name_first, block_iter_name_next)
5606 (block_iter_match_first, block_iter_match_next): New functions.
5607 * ada-lang.c (ada_add_block_symbols)
5608 (ada_make_symbol_completion_list): Use block iterator.
5609
5610 2012-05-10 Tom Tromey <tromey@redhat.com>
5611
5612 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5613 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5614 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5615 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5616 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5617 Update.
5618
5619 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5620
5621 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5622 print-file-var-lib2.c, print-file-var-main.c and
5623 print-file-var.exp (located in gdb/testsuite/gdb.base).
5624
5625 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5626
5627 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5628 try locating the symbol in the symbol's own objfile first, before
5629 extending the search to all objfiles.
5630 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5631 out of lookup_symbol_aux_symtabs.
5632 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5633 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5634 Do not search EXCLUDE_OBJFILE.
5635 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5636 (lookup_symbol_global): Search for matches in the block's objfile
5637 first, before searching all other objfiles.
5638
5639 2012-05-10 Tristan Gingold <gingold@adacore.com>
5640
5641 * printcmd.c (set_command): Add pre/post inc/dec.
5642
5643 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5644
5645 * gdb.1: Document -ex option.
5646
5647 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5648
5649 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5650 * inferior.h (AT_SYMBOL): Delete.
5651
5652 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5653
5654 * mips-tdep.c (mips_push_dummy_code): New function.
5655 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5656 ON_STACK and install mips_push_dummy_code as our gdbarch
5657 push_dummy_code routine.
5658
5659 2012-05-09 Pedro Alves <palves@redhat.com>
5660
5661 * target.c (set_maintenance_target_async_permitted): Rename to ...
5662 (set_target_async_command): ... this.
5663 (show_maintenance_target_async_permitted): Rename to ...
5664 (show_target_async_command): ... this.
5665 (initialize_targets): Adjust.
5666
5667 2012-05-08 Doug Evans <dje@google.com>
5668
5669 * go-exp.y (classify_name): Add missing assignment of fields of
5670 yylval.ssym.
5671
5672 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5673
5674 Display the ">" prompt in interactive mode while reading canned
5675 commands, even when the current interpreter is MI.
5676
5677 * interps.c (interp_set_temp): New function.
5678
5679 * interps.h (interp_set_temp): Add prototype.
5680
5681 * cli/cli-script.c (restore_interp): New cleanup function.
5682 (read_command_lines): Temporarily override the current interpreter
5683 with CLI and arrange for restoring the original one.
5684
5685 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5686
5687 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5688
5689 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5690
5691 * probe.c (parse_probes): Move conditional to check for
5692 debuginfo files from here...
5693 * stap-probe.c (stap_get_probes): ... to here.
5694
5695 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5696 H.J. Lu <hongjiu.lu@intel.com>
5697
5698 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5699 `movl %esp, %ebp' for the X32 ABI.
5700
5701 2012-05-07 Tom Tromey <tromey@redhat.com>
5702
5703 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5704 get_DW_TAG_name.
5705 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5706 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5707 (dwarf_stack_op_name): Remove.
5708 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5709 (decode_locdesc): Use get_DW_OP_name.
5710 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5711 (dwarf2_compile_expr_to_ax): Likewise.
5712 (disassemble_dwarf_expression): Likewise.
5713 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5714
5715 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5716
5717 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5718 (sh_linux_sigtramp_cache): New function.
5719 (sh_linux_sigreturn_init): New function.
5720 (sh_linux_rt_sigreturn_init): New function.
5721 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5722 patterns.
5723 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5724 syscall codes.
5725 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5726 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5727 (sh_linux_init_abi): Add init calls to register new tramp_frame
5728 definitions under 32-bit SH, update comments.
5729
5730 2012-05-07 Pedro Alves <palves@redhat.com>
5731
5732 PR gdb/10952
5733
5734 * amd64-linux-tdep.c: Include glibc-tdep.h.
5735 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5736 gdbarch_skip_solib_resolver callback.
5737
5738 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5739
5740 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5741 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5742 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5743 (add_auto_load_safe_path): Change the error message.
5744 (_initialize_auto_load): Change the "safe-path" help text.
5745 * configure: Regenerate
5746 * configure.ac (--without-auto-load-safe-path): Set
5747 WITH_AUTO_LOAD_SAFE_PATH to /.
5748
5749 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5750
5751 * stap-probe.h: Do not include unecessary `probe.h'.
5752
5753 2012-05-05 Alan Modra <amodra@gmail.com>
5754
5755 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5756 bfd_und_section_ptr.
5757 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5758 and bfd_com_section_ptr.
5759
5760 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5761
5762 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5763
5764 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5765
5766 * windows-nat.h (segment_register_p_ftype): New typedef.
5767 (windows_set_segment_register_p): Add declaration.
5768 * windows-nat.c (segment_register_p): New static global.
5769 (windows_set_segment_register_p): New function.
5770 (do_windows_fetch_inferior_registers): Add special handling
5771 for segment registers.
5772 * amd64-windows-nat.c: #include "amd64-tdep.h".
5773 (amd64_windows_segment_register_p): New function.
5774 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5775 * i386-windows-nat.c: #include "i386-tdep.h".
5776 (i386_windows_segment_register_p): New function.
5777 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5778
5779 2012-05-04 Tristan Gingold <gingold@adacore.com>
5780
5781 * printcmd.c (set_command): Emit a warning if the expression is not
5782 an assignment.
5783
5784 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5785
5786 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5787 Make static.
5788
5789 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5790
5791 * stap-probe.c (stap_is_operator): Change declaration.
5792 (stap_get_opcode): Change return value.
5793 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5794 `stap_parse_argument_1'.
5795
5796 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5797
5798 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5799 debug log.
5800
5801 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5802
5803 Add two new methods global_block and static_block to gdb.Symtab
5804 objects.
5805 * NEWS (Python scripting): Add entry about the new methods.
5806 * python/py-symtab.c (stpy_global_block): New function which
5807 implements the gdb.Symtab.global_block() method.
5808 (stpy_static_block): New function which implements the
5809 gdb.Symtab.static_block() method.
5810 (symtab_object_methods): Add entries for the two new methods.
5811
5812 2012-05-03 Doug Evans <dje@google.com>
5813
5814 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5815 files.
5816
5817 2012-05-03 Yao Qi <yao@codesourcery.com>
5818
5819 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5820 space.
5821 (i386_process_record): Ditto.
5822
5823 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5824
5825 * infcall.c (unwind_on_signal_p): Make static.
5826
5827 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5828
5829 * sol-thread.c (solaris_pid_to_str): Make static.
5830 (_initialize_sol_thread): Add prototype.
5831
5832 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5833
5834 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5835
5836 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5837
5838 * MAINTAINERS: Remove myself.
5839
5840 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 Fix --without-auto-load-safe-path for MS-Windows host platform.
5843 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5844
5845 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5846
5847 * gdb_curses.h: Undefine KEY_EVENT before including curses
5848 headers. Move "#undef MOUSE_MOVED" before any curses header
5849 inclusion.
5850
5851 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5852
5853 * features/i386/i386-mmx-linux.c: Regenerate.
5854 * features/rs6000/powerpc-32.c: Likewise.
5855 * features/rs6000/powerpc-32l.c: Likewise.
5856 * features/rs6000/powerpc-403.c: Likewise.
5857 * features/rs6000/powerpc-403gc.c: Likewise.
5858 * features/rs6000/powerpc-405.c: Likewise.
5859 * features/rs6000/powerpc-505.c: Likewise.
5860 * features/rs6000/powerpc-601.c: Likewise.
5861 * features/rs6000/powerpc-602.c: Likewise.
5862 * features/rs6000/powerpc-603.c: Likewise.
5863 * features/rs6000/powerpc-604.c: Likewise.
5864 * features/rs6000/powerpc-64.c: Likewise.
5865 * features/rs6000/powerpc-64l.c: Likewise.
5866 * features/rs6000/powerpc-750.c: Likewise.
5867 * features/rs6000/powerpc-860.c: Likewise.
5868 * features/rs6000/powerpc-e500.c: Likewise.
5869 * features/rs6000/powerpc-e500l.c: Likewise.
5870 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5871 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5872 * features/rs6000/rs6000.c: Likewise.
5873
5874 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5875
5876 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5877 variable.
5878 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5879 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5880 (stap_parse_argument) <e>: Likewise.
5881 (handle_stap_probe) <byte_order>: Likewise.
5882
5883 2012-04-30 Doug Evans <dje@google.com>
5884
5885 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5886 init_and_read_dies_worker. All callers updated.
5887 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5888 replaced with init_cutu_and_read_dies.
5889 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5890 (find_partial_die): Remove FIXME. Don't free current CU.
5891
5892 2012-04-30 Sterling Augustine <saugustine@google.com>
5893
5894 * contrib: New directory.
5895 * contrib/test_pubnames_and_indexes.py: New file.
5896
5897 2012-04-30 Doug Evans <dje@google.com>
5898
5899 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5900 All callers updated.
5901 (init_cu_die_reader): Verify the section is non-empty.
5902 (dwarf_decode_line_header): Don't dereference section->asection
5903 until we know the section is present.
5904
5905 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5906
5907 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5908 probes.
5909
5910 2012-04-29 Yao Qi <yao@codesourcery.com>
5911
5912 * gdb-code-style.el: New hook gdb-markup-hook
5913 and gdb-comment-hook.
5914
5915 2012-04-28 Doug Evans <dje@google.com>
5916
5917 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5918 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5919 objfile->obfd.
5920 * symfile.h (dwarf2_debug_sections): New member addr.
5921 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5922 (ctx_no_get_addr_index): New function.
5923 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5924 (ctx_no_get_addr_index): Declare.
5925 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5926 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5927 (dwarf_expr_ctx_funcs): Update.
5928 (needs_get_addr_index): New function.
5929 (needs_frame_ctx_funcs): Update.
5930 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5931 * dwarf2read.c: #include "gdbcore.h".
5932 (dwarf2_per_objfile): New members addr, dwo_files.
5933 (dwarf2_elf_names): Add entry for addr.
5934 (struct dwo_section_names): New type.
5935 (dwo_section_names): New static global.
5936 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5937 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5938 old debug_types_section member updated to use this.
5939 Rename member debug_types_section to info_or_types_section,
5940 all uses updated.
5941 (signatured_type): Rename member type_offset to type_offset_in_tu,
5942 all uses updated. New member type_offset_in_section.
5943 (struct dwo_sections): New type.
5944 (struct dwo_unit): New type.
5945 (struct dwo_file): New type.
5946 (die_reader_specs): New member dwo_file.
5947 (dwarf2_locate_sections): Watch for .debug_addr.
5948 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5949 (dwarf2_read_section): Get bfd of section from bfd's asection,
5950 instead of objfile.
5951 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5952 (create_signatured_type_table_from_index): Initialize
5953 sig_type->info_or_types_section.
5954 (dw2_get_file_names): Statement lists for type units with DWO files
5955 live in the DWO file.
5956 (create_debug_types_hash_table): New function.
5957 (create_all_type_units): Rewrite.
5958 (init_cu_die_reader): New arg dwo_file, all callers updated.
5959 (init_and_read_dies_worker): Get section from
5960 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5961 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5962 continue reading the CU/TU from there.
5963 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5964 updated. Get section from this_cu->info_or_types_section.
5965 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5966 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5967 DW_FORM_GNU_str_index.
5968 (hash_dwo_file, eq_dwo_file): New functions.
5969 (allocate_dwo_file_hash_table): New function.
5970 (hash_dwo_unit, eq_dwo_unit): New functions.
5971 (allocate_dwo_unit_table): New function.
5972 (dwarf2_locate_dwo_sections): New function.
5973 (struct create_dwo_info_table_data): New type.
5974 (create_debug_info_hash_table_reader): New function.
5975 (create_debug_info_hash_table): New function.
5976 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5977 (lookup_dwo_file): New function.
5978 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5979 (free_dwo_file, free_dwo_file_cleanup): New functions.
5980 (free_dwo_file_from_slot, free_dwo_files): New functions.
5981 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5982 (dwarf2_record_block_ranges): Ditto.
5983 (read_partial_die): Ditto.
5984 (process_enumeration_scope): Update to use type_offset_in_section.
5985 (read_full_die_1): New function.
5986 (read_full_die): Rewrite.
5987 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5988 DW_FORM_GNU_str_index.
5989 (read_addr_index_1, read_addr_index): New functions.
5990 (read_addr_index_from_leb128): New function.
5991 (struct dwarf2_read_addr_index_data): New type.
5992 (dwarf2_read_addr_index_reader): New function.
5993 (dwarf2_read_addr_index): New function.
5994 (read_str_index): New function.
5995 (leb128_size): New function.
5996 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5997 If processing a type unit from a DWO file, get the line section
5998 from the DWO file.
5999 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6000 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6001 DW_FORM_GNU_str_index.
6002 (lookup_die_type): Check whether section offset of type's die is
6003 known before looking it up. Remove assert. Condition can
6004 legimately happen for inter-cu type references.
6005 (dwarf_attr_name): Handle Fission attributes.
6006 (dwarf_form_name): Handle Fission forms.
6007 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6008 DW_FORM_GNU_str_index.
6009 (follow_die_sig): Update to use type_offset_in_section.
6010 (decode_locdesc): New case DW_OP_GNU_addr_index.
6011 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6012 DW_FORM_GNU_str_index.
6013 (cu_debug_loc_section): New function.
6014 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6015 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6016 Free DWO files if present.
6017 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6018
6019 Refactor DIE reading.
6020 * dwarf2read.c (dwarf2_per_objfile): Replace members
6021 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6022 (die_reader_specs): New member "die_section". Temporarily make
6023 member "buffer" non-const, pending constifying all info_ptr uses.
6024 (die_reader_func_ftype): New typedef.
6025 (dw2_get_file_names_reader): New function.
6026 (dw2_get_file_names): Rewrite.
6027 (read_and_check_type_unit_head): Rename arg type_offset to
6028 type_offset_in_tu.
6029 (create_all_type_units): Improve debugging message.
6030 Improve dummy type unit check.
6031 (init_cu_die_reader): New arg "section". All callers updated.
6032 (init_and_read_dies_worker): New function.
6033 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6034 (init_cutu_and_read_dies_no_follow): New function.
6035 (init_cutu_and_read_dies_simple): New function.
6036 (process_psymtab_comp_unit_reader): New function.
6037 (process_psymtab_comp_unit): Delete args section,
6038 is_debug_types_section. Rewrite. All callers updated.
6039 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6040 All callers updated. Rewrite.
6041 (load_partial_comp_unit_reader): New function.
6042 (load_partial_comp_unit): Rewrite.
6043 (skip_children): New arg reader. Delete args buffer, cu.
6044 All callers updated.
6045 (skip_one_die): New arg reader. Delete args buffer, cu.
6046 All callers updated.
6047 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6048 All callers updated.
6049 (load_full_comp_unit_reader): New function.
6050 (load_full_comp_unit): Rewrite.
6051 (read_comp_unit): Delete.
6052 (read_die_and_children_1): Delete, contents moved ...
6053 (read_die_and_children): ... here.
6054 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6055 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6056 All callers updated.
6057 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6058 All callers updated.
6059 (find_partial_die): Rewrite load_all_dies support.
6060 (read_attribute_value): New arg reader. Delete args abfd, cu.
6061 All callers updated.
6062 (read_attribute): New arg reader. Delete args abfd, cu.
6063 All callers updated.
6064 (load_full_type_unit): Add assert.
6065 (read_signatured_type_reader): New function.
6066 (read_signatured_type): Rewrite.
6067 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6068 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6069 All callers updated. Set per_cu->cu = NULL after freeing it.
6070 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6071 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6072 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6073 (set_die_type): Update.
6074 (get_die_type_at_offset): Update.
6075 (read_file_scope): Call prepare_one_comp_unit.
6076 (read_type_unit_scope): Ditto.
6077 (prepare_one_comp_unit): Set producer if present.
6078
6079 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6080
6081 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6082 gettext function on `error'.
6083
6084 2012-04-27 Doug Evans <dje@google.com>
6085
6086 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6087 is empty.
6088
6089 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6090 Tom Tromey <tromey@redhat.com>
6091
6092 * breakpoint.c (struct breakpoint_objfile_data)
6093 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6094 <exception_probes>: New fields.
6095 (free_breakpoint_probes): New function.
6096 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6097 `_Unwind_DebugHook'.
6098 (create_exception_master_breakpoint): Likewise.
6099 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6100 * infrun.c: Including necessary header files for handling SystemTap
6101 probes.
6102 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6103 via SystemTap probes.
6104 (check_exception_resume): Remove `func' argument. Handle exception
6105 unwinding breakpoint set via a SystemTap probe.
6106 (insert_exception_resume_from_probe): New function.
6107
6108 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6109 Tom Tromey <tromey@redhat.com>
6110 Jan Kratochvil <jan.kratochvil@redhat.com>
6111
6112 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6113 (COMMON_OBS): Likewise.
6114 (HFILES_NO_SRCDIR): Add `probe'.
6115 * NEWS: Mention support for static and SystemTap probes.
6116 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6117 SystemTap probes' arguments parser.
6118 * arm-linux-tdep.c: Including headers needed to perform the parsing
6119 of SystemTap probes' arguments.
6120 (arm_stap_is_single_operand): New function.
6121 (arm_stap_parse_special_token): Likewise.
6122 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6123 probes' arguments parser.
6124 * ax-gdb.c (require_rvalue): Removing static declaration.
6125 (gen_expr): Likewise.
6126 * ax-gdb.h (gen_expr): Declaring function.
6127 (require_rvalue): Likewise.
6128 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6129 (bkpt_probe_breakpoint_ops): New variable.
6130 (momentary_breakpoint_from_master): Set the `probe' value.
6131 (add_location_to_breakpoint): Likewise.
6132 (break_command_1): Using proper breakpoint_ops according to the
6133 argument passed by the user in the command line.
6134 (bkpt_probe_insert_location): New function.
6135 (bkpt_probe_remove_location): Likewise.
6136 (bkpt_probe_create_sals_from_address): Likewise.
6137 (bkpt_probe_decode_linespec): Likewise.
6138 (tracepoint_probe_create_sals_from_address): Likewise.
6139 (tracepoint_probe_decode_linespec): Likewise.
6140 (tracepoint_probe_breakpoint_ops): New variable.
6141 (trace_command): Using proper breakpoint_ops according to the
6142 argument passed by the user in the command line.
6143 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6144 static probes on breakpoints and tracepoints.
6145 * breakpoint.h (struct bp_location) <probe>: New field.
6146 * cli-utils.c (skip_spaces_const): New function.
6147 (extract_arg): Likewise.
6148 * cli-utils.h (skip_spaces_const): Likewise.
6149 (extract_arg): Likewise.
6150 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6151 * configure.ac: Append `stap-probe.o' to be generated when ELF
6152 support is present.
6153 * configure: Regenerate.
6154 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6155 * elfread.c: Include `probe.h' and `arch-utils.h'.
6156 (probe_key): New variable.
6157 (elf_get_probes): New function.
6158 (elf_get_probe_argument_count): Likewise.
6159 (elf_evaluate_probe_argument): Likewise.
6160 (elf_compile_to_ax): Likewise.
6161 (elf_symfile_relocate_probe): Likewise.
6162 (stap_probe_key_free): Likewise.
6163 (elf_probe_fns): New variable.
6164 (elf_sym_fns): Add `sym_probe_fns' value.
6165 (elf_sym_fns_lazy_psyms): Likewise.
6166 (elf_sym_fns_gdb_index): Likewise.
6167 (_initialize_elfread): Initialize objfile cache for static
6168 probes.
6169 * gdb_vecs.h (struct probe): New forward declaration.
6170 (probe_p): New VEC declaration.
6171 * gdbarch.c: Regenerate.
6172 * gdbarch.h: Regenerate.
6173 * gdbarch.sh (stap_integer_prefix): New variable.
6174 (stap_integer_suffix): Likewise.
6175 (stap_register_prefix): Likewise.
6176 (stap_register_suffix): Likewise.
6177 (stap_register_indirection_prefix): Likewise.
6178 (stap_register_indirection_suffix): Likewise.
6179 (stap_gdb_register_prefix): Likewise.
6180 (stap_gdb_register_suffix): Likewise.
6181 (stap_is_single_operand): New function.
6182 (stap_parse_special_token): Likewise.
6183 (struct stap_parse_info): Forward declaration.
6184 * i386-tdep.c: Including headers needed to perform the parsing
6185 of SystemTap probes' arguments.
6186 (i386_stap_is_single_operand): New function.
6187 (i386_stap_parse_special_token): Likewise.
6188 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6189 probes' arguments parser.
6190 * i386-tdep.h (i386_stap_is_single_operand): New function.
6191 (i386_stap_parse_special_token): Likewise.
6192 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6193 * mipsread.c (ecoff_sym_fns): Likewise.
6194 * objfiles.c (objfile_relocate1): Support relocation for static
6195 probes.
6196 * parse.c (prefixify_expression): Remove static declaration.
6197 (initialize_expout): Likewise.
6198 (reallocate_expout): Likewise.
6199 * parser-defs.h (initialize_expout): Declare function.
6200 (reallocate_expout): Likewise.
6201 (prefixify_expression): Likewise.
6202 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6203 of SystemTap probes' arguments.
6204 (ppc_stap_is_single_operand): New function.
6205 (ppc_stap_parse_special_token): Likewise.
6206 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6207 probes' arguments parser.
6208 * probe.c: New file, for generic statically defined probe support.
6209 * probe.h: Likewise.
6210 * s390-tdep.c: Including headers needed to perform the parsing of
6211 SystemTap probes' arguments.
6212 (s390_stap_is_single_operand): New function.
6213 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6214 probes' arguments parser.
6215 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6216 * stap-probe.c: New file, for SystemTap probe support.
6217 * stap-probe.h: Likewise.
6218 * symfile.h: Include `gdb_vecs.h'.
6219 (struct sym_probe_fns): New struct.
6220 (struct sym_fns) <sym_probe_fns>: New field.
6221 * symtab.c (init_sal): Initialize `probe' field.
6222 * symtab.h (struct probe): Forward declaration.
6223 (struct symtab_and_line) <probe>: New field.
6224 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6225 locations.
6226 (stop_tracing): Likewise.
6227 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6228
6229 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6230 Tom Tromey <tromey@redhat.com>
6231
6232 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6233 and to compile agent expressions.
6234 * infrun.c (siginfo_make_value): New argument `ignore'.
6235 (siginfo_funcs): New struct.
6236 (_initialize_infrun): New argument when calling
6237 `create_internalvar_type_lazy'.
6238 * thread.c (thread_id_make_value): New argument `ignore'.
6239 (thread_funcs): New struct.
6240 (_initialize_thread): New argument when calling
6241 `create_internalvar_type_lazy'.
6242 * tracepoint.c (sdata_make_value): New argument `ignore'.
6243 (sdata_funcs): New struct.
6244 (_initialize_tracepoint): New argument when calling
6245 `create_internalvar_type_lazy'.
6246 * value.c (make_value): New struct.
6247 (create_internalvar_type_lazy): New argument `data'.
6248 (compile_internalvar_to_ax): New function.
6249 (value_of_internalvar): Properly handling `make_value' case.
6250 (clear_internalvar): Likewise.
6251 (show_convenience): Adding `TRY_CATCH' block.
6252 * value.h (internalvar_make_value): Delete, replace by...
6253 (struct internalvar_funcs): ... this.
6254 (create_internalvar_type_lazy) <fun>: Delete argument.
6255 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6256 (compile_internalvar_to_ax): New function.
6257 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6258 (tlb_funcs): New struct.
6259 (_initialize_windows_tdep): New argument when calling
6260 `create_internalvar_type_lazy'.
6261
6262 2012-04-27 Mark Wielaard <mjw@redhat.com>
6263
6264 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6265 see whether it is an address or a constant offset from DW_AT_low_pc.
6266 (dwarf2_record_block_ranges): Likewise.
6267 (read_partial_die): Likewise.
6268
6269 2012-04-26 Mark Wielaard <mjw@redhat.com>
6270
6271 * MAINTAINERS (Write After Approval): Add myself to the list.
6272
6273 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6274
6275 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6276 (proc_prettyprint_signal): Likewise.
6277 (proc_prettyprint_faultset): Likewise.
6278 (proc_prettyprint_fault): Likewise.
6279 (proc_prettyprint_actionset): Likewise.
6280 (proc_prettyprint_flags): Move to new proc-flags.c section.
6281 (proc_prettyfprint_flags): New prototype.
6282 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6283 (proc_syscall, proc_cursig): Likewise.
6284 (proc_set_kill_on_last_close): Likewise.
6285 (proc_unset_kill_on_last_close): Likewise.
6286 (proc_set_watchpoint): Make static.
6287 (proc_delete_dead_threads): Likewise.
6288 (procfs_set_watchpoint): Likewise.
6289 (_initialize_procfs): Add prototype.
6290 * proc-events.c: Include proc-utils.h.
6291 (init_syscall_table): Make static.
6292 * proc-api.c (_initialize_proc_api): Add prototype.
6293 * proc-flags.c: Include proc-utils.h.
6294
6295 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6296
6297 * configure.ac: Add AC_ARG_PROGRAM.
6298 * configure: Regenerate.
6299
6300 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6301
6302 Fix DW_AT_lower_bound defaults for DWARF-4+.
6303 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6304 high. New variable low_default_is_valid. Implement DWARF-4+
6305 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6306 no default by the DWARF standard.
6307
6308 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6309 Maciej W. Rozycki <macro@codesourcery.com>
6310
6311 * infrun.c (handle_inferior_event): Move the check for return
6312 trampolines ahead of the check for function trampolines.
6313 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6314 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6315 (mips_str_mips16_ret_stub): Likewise.
6316 (mips_str_call_fp_stub): Likewise.
6317 (mips_str_call_stub): Likewise.
6318 (mips_str_fn_stub): Likewise.
6319 (mips_str_pic): Likewise.
6320 (mips_in_frame_stub): New function.
6321 (mips_unwind_pc): Return the return address rather than the PC
6322 if the PC of an intermediate frame is inside a call thunk.
6323 (mips_is_stub_suffix): New function.
6324 (mips_is_stub_mode): Likewise.
6325 (mips_get_mips16_fn_stub_pc): Likewise.
6326 (mips_skip_mips16_trampoline_code): Update to handle all the
6327 currently generated stub types. Don't recurse into __fn_stub
6328 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6329 Use cooked register accesses.
6330 (mips_in_return_stub): Reintroduce function.
6331 (mips_skip_trampoline_code): Traverse trampolines recursively.
6332 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6333
6334 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6335
6336 GDB 7.4.1 released.
6337
6338 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6339
6340 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6341 * features/arm-with-m-vfp-d16.xml: New file. Describes
6342 Cortex-M with VFPv4-sp-d16 FPU register layout.
6343 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6344 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6345 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6346 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6347 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6348
6349 2012-04-25 Doug Evans <dje@google.com>
6350
6351 * cli/cli-decode.c (print_doc_line): Use stream instead of
6352 current_uiout.
6353
6354 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6355
6356 * features/arm-with-iwmmxt.c: Regenerate.
6357 * features/arm-with-m-fpa-layout.c: Likewise.
6358 * features/arm-with-m.c: Likewise.
6359 * features/arm-with-neon.c: Likewise.
6360 * features/arm-with-vfpv2.c: Likewise.
6361 * features/arm-with-vfpv3.c: Likewise.
6362 * features/mips-dsp-linux.c: Likewise.
6363 * features/mips-linux.c: Likewise.
6364 * features/mips64-dsp-linux.c: Likewise.
6365 * features/mips64-linux.c: Likewise.
6366 * features/s390-linux32.c: Likewise.
6367 * features/s390-linux32v1.c: Likewise.
6368 * features/s390-linux32v2.c: Likewise.
6369 * features/s390-linux64.c: Likewise.
6370 * features/s390-linux64v1.c: Likewise.
6371 * features/s390-linux64v2.c: Likewise.
6372 * features/s390x-linux64.c: Likewise.
6373 * features/s390x-linux64v1.c: Likewise.
6374 * features/s390x-linux64v2.c: Likewise.
6375 * features/tic6x-c62x-linux.c: Likewise.
6376 * features/tic6x-c62x.c: Likewise.
6377 * features/tic6x-c64x-linux.c: Likewise.
6378 * features/tic6x-c64x.c: Likewise.
6379 * features/tic6x-c64xp-linux.c: Likewise.
6380 * features/tic6x-c64xp.c: Likewise.
6381 * target-descriptions.c: Only generate `field_type' and `type'
6382 variables when needed.
6383
6384 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6385
6386 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6387
6388 2012-04-25 Doug Evans <dje@google.com>
6389
6390 Initial pass at Go language support.
6391 * NEWS: Mention Go.
6392 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6393 go-valprint.c.
6394 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6395 (YYFILES): Add go-exp.c.
6396 (YYOBJ): Add go-exp.o.
6397 (local-maintainer-clean): Delete go-exp.c.
6398 * defs.h (enum language): Add language_go.
6399 * dwarf2read.c: #include "go-lang.h".
6400 (fixup_go_packaging): New function.
6401 (process_full_comp_unit): Call it when processing Go CUs.
6402 (dwarf2_physname): Add Go support.
6403 (read_file_scope): Handle missing language spec for GNU Go.
6404 (set_cu_language): Handle DW_LANG_Go.
6405 * go-exp.y: New file.
6406 * go-lang.h: New file.
6407 * go-lang.c: New file.
6408 * go-typeprint.c: New file.
6409 * go-valprint.c: New file.
6410 * symtab.c: #include "go-lang.h".
6411 (symbol_set_language): Handle language_go.
6412 (symbol_find_demangled_name, symbol_set_names): Ditto.
6413 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6414
6415 2012-04-24 Jim Meyering <meyering@redhat.com>
6416
6417 avoid a few strncpy-induced buffer overruns
6418 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6419 fname and psargs before trying to concatenate.
6420 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6421 "name" before applying strchr.
6422
6423 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6424
6425 * CONTRIBUTE: Use unified diff instead of context diff when
6426 generating patches.
6427
6428 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6429
6430 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6431 code. Handle JR.HB correctly.
6432
6433 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6434
6435 * mips-tdep.c
6436 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6437 with the other MIPS16 helpers.
6438
6439 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6440
6441 * observer.sh: Conditionally declare `args', thus cleaning up
6442 unused instances of this variable.
6443
6444 2012-04-24 Yao Qi <yao@codesourcery.com>
6445
6446 Revert this patch to allow breakpoint always-inserted
6447 in record target.
6448 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6449 * breakpoint.c: Include record.h.
6450 (breakpoints_always_inserted_mode): Return false when the record
6451 target is in use.
6452
6453 * breakpoint.c (iterate_over_bp_locations): New.
6454 * breakpoint.h: Declare.
6455 New typedef walk_bp_location_callback.
6456 * record.c (record_open): Call record_init_record_breakpoints.
6457 (record_sync_record_breakpoints): New.
6458 (record_init_record_breakpoints): New.
6459 * NEWS: Mention supporting breakpoint always-inserted mode in
6460 record target.
6461
6462 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6463
6464 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6465 any thread.
6466
6467 2012-04-24 Yao Qi <yao@codesourcery.com>
6468
6469 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6470 (is_catchpoint): ... it.
6471 (print_one_breakpoint_location): Caller update.
6472 * breakpoint.h: Update declaration.
6473
6474 2012-04-23 David S. Miller <davem@davemloft.net>
6475
6476 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6477
6478 2012-04-23 Tom Tromey <tromey@redhat.com>
6479
6480 * buildsym.c (add_free_pendings): Remove.
6481 * buildsym.h (add_free_pendings): Remove.
6482
6483 2012-04-23 Doug Evans <dje@google.com>
6484
6485 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6486 attr.u.unsnd instead of attr.u.addr.
6487 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6488 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6489 DW_FORM_ref_udata.
6490 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6491 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6492 DW_FORM_ref_udata.
6493 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6494
6495 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6496
6497 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6498 (mips_o32_return_value): Likewise.
6499 (mips_o64_return_value): Likewise.
6500
6501 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6502
6503 * ada-lang.c (ada_evaluate_subexp): Add cases for
6504 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6505 their treatment in eval.c.
6506
6507 2012-04-21 David S. Miller <davem@davemloft.net>
6508
6509 * sparc-tdep.c (X_DISP10): Define.
6510 (sparc_analyze_control_transfer): Handle compare-and-branch.
6511
6512 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6513
6514 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6515 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6516
6517 2012-04-20 Nigel Stephens <nigel@mips.com>
6518 Maciej W. Rozycki <macro@codesourcery.com>
6519
6520 * mips-tdep.c (mips_float_register_p): New function.
6521 (mips_convert_register_float_case_p): Use mips_float_register_p.
6522 (mips_register_type): Likewise.
6523 (mips_print_register): Likewise.
6524 (print_gp_register_row): Likewise.
6525 (mips_print_registers_info): Likewise.
6526
6527 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6528
6529 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6530 of mips16 symbols.
6531
6532 2012-04-20 Andrew Pinski <apinski@cavium.com>
6533
6534 * MAINTAINERS (Write After Approval): Add myself to the list.
6535
6536 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * MAINTAINERS: Update my e-mail address.
6539
6540 2012-04-20 Pedro Alves <palves@redhat.com>
6541
6542 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6543 $srcdir.
6544 * configure: Regenerate.
6545
6546 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6547
6548 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6549 declaration.
6550 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6551
6552 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6553
6554 Fix compilation compatibility with python-2.4
6555 * python/py-type.c (convert_field): Cast ADDRSTRING for
6556 PyObject_SetAttrString as non-const. New comment.
6557
6558 2012-04-19 Tom Tromey <tromey@redhat.com>
6559
6560 * top.c (quit_target): Use all_cleanups.
6561 * main.c (captured_command_loop): Use all_cleanups.
6562 * exceptions.c (throw_exception): Use all_cleanups.
6563
6564 2012-04-19 Pedro Alves <palves@redhat.com>
6565
6566 * Makefile.in (GNULIB_BUILDDIR): New.
6567 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6568 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6569 (CLEANDIRS). Remove gnulib/import.
6570 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6571 (all-lib): Ditto.
6572 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6573 (gnulib/import/Makefile): Replace gnulib/import with
6574 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6575 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6576 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6577 acx_configure_dir.m4.
6578 * acinclude.m4: Include acx_configure_dir.m4.
6579 * acx_configure_dir.m4: New file.
6580 * aclocal.m4: Regenerate.
6581 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6582 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6583 (GNULIB): New variable.
6584 (GNULIB_STDINT_H): Adjust.
6585 (AC_OUTPUT): Don't output gnulib/Makefile.
6586 * gdb/defs.h: Include build-gnulib/config.h.
6587 * aclocal.m4: Regenerate.
6588 * config.in: Regenerate.
6589 * configure: Regenerate.
6590
6591 * gnulib/Makefile.in: New file.
6592 * gnulib/configure.ac: New file.
6593 * gnulib/aclocal.m4: New file.
6594 * gnulib/config.in: New file.
6595 * gnulib/configure: New file.
6596 * gnulib/: Re-run gnulib-tool to adjust.
6597
6598 2012-04-19 Doug Evans <dje@google.com>
6599
6600 * cleanups.h (struct cleanup): Move to cleanups.c.
6601 (make_cleanup_dtor_ftype): New typedef.
6602 (make_cleanup_dtor): Use it.
6603 (ALL_CLEANUPS): Replace with ...
6604 (all_cleanups): ... this. Declare. All uses updated.
6605 * cleanups.c: #include "gdb_assert.h".
6606 (sentinel_cleanup): New static global.
6607 (SENTINEL_CLEANUP): Define.
6608 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6609 (make_my_cleanup2): Assert result is non-NULL.
6610 (all_cleanups): New function.
6611 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6612 of NULL.
6613
6614 2012-04-19 Pedro Alves <palves@redhat.com>
6615
6616 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6617 Adjust paths to gnulib imported files.
6618
6619 2012-04-19 Pedro Alves <palves@redhat.com>
6620
6621 * gnulib/: Move whole directory ...
6622 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6623 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6624 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6625 (aclocal_m4_deps): Adjust.
6626 * aclocal.m4: Regenerate.
6627 * configure: Regenerate.
6628 * configure.ac: Adjust AC_OUTPUT output.
6629
6630 2012-04-19 Yao Qi <yao@codesourcery.com>
6631
6632 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6633 (vec.o): New rule.
6634 * vec.c: Move it ...
6635 * common/vec.c: ... here.
6636 * vec.h: Move it ...
6637 * common/vec.h: ... here.
6638
6639 2012-04-19 Yao Qi <yao@codesourcery.com>
6640
6641 * gdb-code-style.el: New.
6642
6643 2012-04-18 Pedro Alves <palves@redhat.com>
6644
6645 Update gnulib from latest git.
6646 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6647
6648 * gnulib/Makefile.am: Update.
6649 * gnulib/dummy.c: Update.
6650 * gnulib/extra/arg-nonnull.h: Update.
6651 * gnulib/extra/c++defs.h: Update.
6652 * gnulib/extra/update-copyright: Update.
6653 * gnulib/extra/warn-on-use.h: Update.
6654 * gnulib/inttypes.in.h: Update.
6655 * gnulib/m4/00gnulib.m4: Update.
6656 * gnulib/m4/extensions.m4: Update.
6657 * gnulib/m4/gnulib-cache.m4: Update.
6658 * gnulib/m4/gnulib-common.m4: Update.
6659 * gnulib/m4/gnulib-comp.m4: Update.
6660 * gnulib/m4/gnulib-tool.m4: Update.
6661 * gnulib/m4/include_next.m4: Update.
6662 * gnulib/m4/inttypes-pri.m4: Update.
6663 * gnulib/m4/inttypes.m4: Update.
6664 * gnulib/m4/longlong.m4: Update.
6665 * gnulib/m4/memchr.m4: Update.
6666 * gnulib/m4/memmem.m4: Update.
6667 * gnulib/m4/mmap-anon.m4: Update.
6668 * gnulib/m4/multiarch.m4: Update.
6669 * gnulib/m4/onceonly.m4: Update.
6670 * gnulib/m4/stddef_h.m4: Update.
6671 * gnulib/m4/stdint.m4: Update.
6672 * gnulib/m4/string_h.m4: Update.
6673 * gnulib/m4/warn-on-use.m4: Update.
6674 * gnulib/m4/wchar_h.m4: Update.
6675 * gnulib/m4/wchar_t.m4: Update.
6676 * gnulib/m4/wint_t.m4: Update.
6677 * gnulib/memchr.c: Update.
6678 * gnulib/memmem.c: Update.
6679 * gnulib/stddef.in.h: Update.
6680 * gnulib/stdint.in.h: Update.
6681 * gnulib/str-two-way.h: Update.
6682 * gnulib/string.in.h: Update.
6683 * gnulib/wchar.in.h: Update.
6684
6685 * gnulib/extra/arg-nonnull.h: Delete.
6686 * gnulib/extra/c++defs.h: Delete.
6687 * gnulib/extra/warn-on-use.h: Delete.
6688 * gnulib/m4/wchar_h.m4: Delete.
6689 * gnulib/m4/wint_t.m4: Delete.
6690 * gnulib/wchar.in.h: Delete.
6691
6692 * gnulib/extra/snippets/arg-nonnull.h: New.
6693 * gnulib/extra/snippets/c++defs.h: New.
6694 * gnulib/extra/snippets/warn-on-use.h: New.
6695
6696 * aclocal.m4: Regenerate.
6697 * config.in: Regenerate.
6698 * configure: Regenerate.
6699 * gnulib/Makefile.in: Regenerate.
6700
6701 2012-04-18 Pedro Alves <palves@redhat.com>
6702
6703 Reimport the update-copyright module from gnulib
6704 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6705
6706 * configure: Regenerate.
6707 * gnulib/Makefile.am: Update.
6708 * gnulib/Makefile.in: Regenerate.
6709 * gnulib/extra/update-copyright: Update.
6710 * gnulib/m4/gnulib-cache.m4: Update.
6711 * gnulib/m4/gnulib-comp.m4: Update.
6712
6713 2012-04-18 Tristan Gingold <gingold@adacore.com>
6714
6715 * configure.ac (aix): Put -lpthread into libs.
6716 * configure: Regenerate.
6717
6718 2012-04-18 Tom Tromey <tromey@redhat.com>
6719
6720 * linespec.c (convert_linespec_to_sals): Don't use
6721 SYMBOL_OBJ_SECTION.
6722 (compare_msymbols): Arguments are minsym_and_objfile, not
6723 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6724
6725 2012-04-18 Pedro Alves <palves@redhat.com>
6726
6727 Revert gnulib/ part of:
6728 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6729 Copyright year update in most files (performed by copyright.sh).
6730
6731 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6732
6733 Fix 64-bit constants on 32-bit hosts.
6734 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6735 from unsigned long to ULONGEST.
6736 (read_signed_leb128): Change declaration return type from long to
6737 LONGEST.
6738 (dwarf2_const_value_attr): Change declaration parameter value from long
6739 to LONGEST.
6740 (dwarf2_compute_name): Change variable value from long to LONGEST.
6741 (read_unsigned_leb128): Change return type, variable result and some
6742 casts from unsigned long to ULONGEST.
6743 (read_signed_leb128): Change return type, variable result and some
6744 casts from long to LONGEST.
6745 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6746 value from long to LONGEST.
6747 (dwarf2_const_value): Change variable value from long to LONGEST.
6748 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6749 plongest and hex_string.
6750 * symtab.h (struct general_symbol_info): Change ivalue from long to
6751 LONGEST, remove the comment.
6752 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6753 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6754
6755 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6756
6757 PR symtab/7259:
6758 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6759 * ada-lang.c (ada_discrete_type_high_bound)
6760 (ada_discrete_type_low_bound): Fix function comment. Use
6761 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6762 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6763 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6764 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6765 Use TYPE_FIELD_ENUMVAL.
6766 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6767 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6768 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6769 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6770 TYPE_CODE_ENUM.
6771 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6772 * dwarf2read.c (process_enumeration_scope): Likewise.
6773 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6774 field.bitpos.
6775 (class StructMainTypePrettyPrinter): Support also
6776 FIELD_LOC_KIND_ENUMVAL.
6777 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6778 TYPE_CODE_ENUM.
6779 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6780 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6781 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6782 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6783 field enumval.
6784 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6785 accommodate enumval.
6786 (struct call_site): Adjust loc_kind to accommodate enumval.
6787 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6788 (TYPE_FIELD_ENUMVAL): New macros.
6789 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6790 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6791 TYPE_CODE_ENUM.
6792 * p-typeprint.c (pascal_type_print_base): Likewise.
6793 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6794 enumval.
6795 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6796 * python/py-type.c (convert_field): New variable addrstring. Use
6797 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6798 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6799 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6800 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6801 TYPE_CODE_ENUM.
6802 * valprint.c (generic_val_print): Likewise.
6803
6804 2012-04-17 Doug Evans <dje@google.com>
6805
6806 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6807
6808 * dwarf2read.c: Whitespace fixes.
6809 (lookup_signatured_type): Tweak comment.
6810 (get_die_type_at_offset): Fix comment.
6811
6812 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6813
6814 * xcoffread.c (xcoff_secnum_to_sections): New function.
6815 (secnum_to_section, secnum_to_bfd_section): Reimplement
6816 using xcoff_secnum_to_sections. Rename "secnum" parameter
6817 into "n_scnum".
6818 (RECORD_MINIMAL_SYMBOL): Delete.
6819 (record_minimal_symbol): New function.
6820 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6821 by call to record_minimal_symbol and set misc_func_recorded
6822 to 1. Set last_csect_sec to the XCOFF section index instead
6823 of GDB's section_offset index. Update calls to
6824 prim_record_minimal_symbol_and_info to pass the BFD section
6825 as well.
6826
6827 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6828
6829 * xcoffread.c (read_xcoff_symtab): Delete variables
6830 last_csect_val and last_csect_sec and associated code.
6831
6832 2012-04-17 Doug Evans <dje@google.com>
6833
6834 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6835 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6836 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6837 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6838
6839 * cleanups.h: New file.
6840 * cleanups.c: New file.
6841 * Makefile.in (SFILES): Add cleanups.c.
6842 (HFILES_NO_SRCDIR): Add cleanups.h.
6843 (COMMON_OBS): Add cleanups.o.
6844 * defs.h (struct cleanup): Moved to cleanups.h.
6845 (do_cleanups,do_final_cleanups): Ditto.
6846 (discard_cleanups,discard_final_cleanups): Ditto
6847 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6848 (save_cleanups,save_final_cleanups): Ditto.
6849 (restore_cleanups,restore_final_cleanups): Ditto.
6850 (null_cleanup): Ditto.
6851 (make_my_cleanup,make_my_cleanup2): Ditto.
6852 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6853 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6854 (do_cleanups,do_final_cleanups): Ditto.
6855 (discard_cleanups,discard_final_cleanups): Ditto
6856 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6857 (save_cleanups,save_final_cleanups): Ditto.
6858 (restore_cleanups,restore_final_cleanups): Ditto.
6859 (null_cleanup): Ditto.
6860 (make_my_cleanup,make_my_cleanup2): Ditto.
6861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6862
6863 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6864 make_my_cleanup.
6865 (make_cleanup_dyn_string_delete): Ditto.
6866 (make_cleanup_ui_file_delete): Ditto.
6867 (make_cleanup_ui_out_redirect_pop): Ditto.
6868 (make_cleanup_free_section_addr_info): Ditto.
6869 (make_cleanup_restore_integer): Ditto.
6870 (make_cleanup_unpush_target): Ditto.
6871 (make_cleanup_value_free_to_mark): Ditto.
6872 (make_cleanup_value_free): Ditto.
6873 (make_cleanup_free_so): Ditto.
6874
6875 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6876
6877 New option "set debug auto-load".
6878 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6879 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6880 (auto_load_safe_path_vec_update)
6881 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6882 if DEBUG_AUTO_LOAD.
6883 (file_is_auto_load_safe): New parameters debug_fmt and ....
6884 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6885 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6886 caller by explanatory string.
6887 (_initialize_auto_load): Register "set debug auto-load".
6888 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6889 and ....
6890 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6891 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6892 by explanatory string.
6893 * main.c (captured_main): Likewise.
6894 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6895 (source_section_scripts): Likewise.
6896
6897 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6898
6899 New option "set auto-load safe-path".
6900 * NEWS: New commands "set auto-load safe-path"
6901 and "show auto-load safe-path".
6902 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6903 (auto_load_safe_path, auto_load_safe_path_vec)
6904 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6905 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6906 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6907 (source_gdb_script_for_objfile): New variable is_safe. Call
6908 file_is_auto_load_safe. Return if it is not.
6909 (struct loaded_script): New field loaded.
6910 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6911 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6912 output "Missing" to "No".
6913 (_initialize_auto_load): New variable cmd. Initialize
6914 auto_load_safe_path. Register "set auto-load safe-path",
6915 "show auto-load safe-path" and "add-auto-load-safe-path".
6916 * auto-load.h (maybe_add_script): Add parameter loaded.
6917 (file_is_auto_load_safe): New declaration.
6918 * config.in: Regenerate.
6919 * configure: Regenerate.
6920 * configure.ac: New parameters --with-auto-load-safe-path
6921 and --without-auto-load-safe-path.
6922 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6923 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6924 * main.c (captured_main): Check file_is_auto_load_safe for
6925 LOCAL_GDBINIT.
6926 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6927 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6928 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6929 not.
6930
6931 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6932
6933 auto-load: Implementation.
6934 * NEWS: New descriptions for "info auto-load",
6935 "info auto-load gdb-scripts", "info auto-load python-scripts",
6936 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6937 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6938 and "show auto-load-scripts". New description for "set auto-load",
6939 "show auto-load", "set auto-load gdb-scripts",
6940 "show auto-load gdb-scripts", "set auto-load python-scripts",
6941 "show auto-load python-scripts", "set auto-load local-gdbinit",
6942 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6943 "show auto-load libthread-db".
6944 * auto-load.c: Remove include python/python-internal.h. Add includes
6945 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6946 cli/cli-setshow.h.
6947 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6948 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6949 (gdbpy_global_auto_load): Rename to ...
6950 (global_auto_load): ... here.
6951 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6952 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6953 (script_language_gdb, source_gdb_script_for_objfile): New.
6954 (struct loaded_script): New field language.
6955 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6956 LANGUAGE.
6957 (maybe_add_script): Add parameter language. Drop redundant
6958 entry.full_path initialization. Initialize entry.language and
6959 (*slot)->language.
6960 (auto_load_objfile_script): Change parameter suffix to language.
6961 Remove the call of maybe_add_script.
6962 Call language->source_script_for_objfile.
6963 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6964 New.
6965 (collect_matching_scripts): Adjust it for
6966 struct collect_matching_scripts_data.
6967 (auto_load_info_scripts_pattern_nl): New variable.
6968 (info_auto_load_scripts): Rename to ...
6969 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6970 for struct collect_matching_scripts_data.
6971 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6972 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6973 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6974 (auto_load_info_cmdlist_get): New.
6975 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6976 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6977 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6978 "info auto-load local-gdbinit".
6979 * auto-load.h (struct script_language): New.
6980 (gdbpy_global_auto_load): Rename to ...
6981 (global_auto_load): ... here.
6982 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6983 (auto_load_local_gdbinit_loaded): New declarations.
6984 (maybe_add_script): New parameter language.
6985 (auto_load_objfile_script): Change parameter suffix to language.
6986 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6987 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6988 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6989 declarations.
6990 * linux-thread-db.c: Include auto-load.h and ctype.h.
6991 (auto_load_thread_db, show_auto_load_thread_db): New.
6992 (struct thread_db_info): New field filename.
6993 (delete_thread_db_info): Call xfree for FILENAME.
6994 (try_thread_db_load): Initialize FILENAME.
6995 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6996 if !AUTO_LOAD_THREAD_DB.
6997 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6998 (_initialize_thread_db): Install auto_load_thread_db
6999 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7000 as "info auto-load libthread-db".
7001 * main.c (captured_main): Rename gdbpy_global_auto_load to
7002 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7003 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7004 (print_gdb_help): Extend the help for 'local init file'.
7005 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7006 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7007 (auto_load_scripts): Rename to ...
7008 (auto_load_python_scripts): ... here, update the comment.
7009 (gdbpy_load_auto_script_for_objfile): New declaration.
7010 (show_auto_load_python_scripts, script_language_python)
7011 (gdbpy_load_auto_script_for_objfile): New.
7012 (source_section_scripts): Refactor the code.
7013 (load_auto_scripts_for_objfile): Rename to ...
7014 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7015 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7016 (info_auto_load_python_scripts): New.
7017 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7018 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7019 Register "set auto-load-scripts" as its deprecated alias. Register
7020 "info auto-load python-scripts". Register "info auto-load-scripts" as
7021 its deprecated alias.
7022 (load_auto_scripts_for_objfile): Rename to ...
7023 (gdbpy_load_auto_scripts_for_objfile): ... here.
7024 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7025 (gdbpy_load_auto_scripts_for_objfile): ... here.
7026
7027 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7028
7029 auto-load: Move files.
7030 * Makefile.in (SFILES): Add auto-load.c.
7031 (HFILES_NO_SRCDIR): Add auto-load.h.
7032 (COMMON_OBS): Add auto-load.o.
7033 (distclean): Change .gdbinit for gdb-gdb.gdb.
7034 * auto-load.c: New file, with parts from python/py-auto-load.c.
7035 * auto-load.h: New file, with parts from python/python.h.
7036 * configure: Regenerate.
7037 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7038 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7039 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7040 * main.c: Include auto-load.h.
7041 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7042 command.h, observer.h and progspace.h to auto-load.c. Add include
7043 auto-load.h.
7044 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7045 (struct loaded_script, auto_load_pspace_data)
7046 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7047 (hash_loaded_script_entry, eq_loaded_script_entry)
7048 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7049 (maybe_add_script): Move to auto-load.c.
7050 (source_section_scripts): Change maybe_add_script parameters passing,
7051 use script_not_found_warning_print.
7052 (clear_section_scripts, auto_load_objfile_script)
7053 (auto_load_new_objfile, loaded_script_ptr)
7054 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7055 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7056 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7057 auto_load_new_objfile and info_auto_load_scripts initizations to
7058 auto-load.c.
7059 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7060
7061 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Code cleanup.
7064 * charset.c (find_charset_names): Remove variables ix and elt.
7065 Use free_char_ptr_vec.
7066 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7067 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7068 debugdir_end. New variable debugdir_len.
7069 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7070 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7071 declarations.
7072 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7073 and elt. Use free_char_ptr_vec.
7074 * source.c (add_path): Remove variables argv, arg and argv_index.
7075 New variables dir_vec, back_to, ix and name.
7076 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7077 make_cleanup_freeargv. Remove variable separator. Simplify the code
7078 no longer expecting DIRNAME_SEPARATOR.
7079 (openp): Remove variable p, p1 and len. New variables dir_vec,
7080 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7081 no longer expecting DIRNAME_SEPARATOR.
7082 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7083 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7084 debugdir_end.
7085 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7086 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7087 (dirnames_to_char_ptr_vec): New functions.
7088
7089 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7090
7091 Code cleanup.
7092 * source.c (add_path): Remove always true conditional 'p == 0' and
7093 unindent its code block.
7094
7095 2012-04-17 Pedro Alves <palves@redhat.com>
7096
7097 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7098 (FIELD_BITPOS_LVAL): ... this.
7099 (FIELD_BITPOS): New.
7100 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7101 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7102 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7103 SET_FIELD_BITPOS.
7104 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7105 SET_FIELD_BITPOS.
7106 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7107 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7108 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7109 SET_FIELD_BITPOS.
7110
7111 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7112
7113 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7114 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7115 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7116 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7117 * jv-lang.c (java_link_class_type): Likewise, once.
7118 * stabsread.c (read_enum_type): Likewise.
7119
7120 2012-04-16 Yao Qi <yao@codesourcery.com>
7121
7122 * common/agent.c (agent_run_command): Add one more parameter `len'.
7123 Update callers.
7124 * common/agent.h: Update declaration.
7125 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7126 Update.
7127 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7128
7129 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7130
7131 PR mi/13393
7132 * value.c (value_actual_type): New function.
7133 * value.h (value_actual_type): New declaration.
7134 * varobj.c (update_type_if_necessary): New function.
7135 (varobj_create): Call value_actual_type instead of
7136 value_type.
7137 (install_dynamic_child): distinct changed and type changed MI variable
7138 objects.
7139 (update_dynamic_varobj_children): Updated for install_dynamic_child
7140 change. All callers updated.
7141 (varobj_update): Support for MI variable object type change if
7142 the value changed and RTTI is used to determine the type.
7143 (create_child_with_value): Call value_actual_type instead of
7144 value_type.
7145 (adjust_value_for_child_access): Extended with a new parameter which
7146 specify whether the given value should be casted to enclosing type.
7147 All callers updated.
7148
7149 2012-04-14 Yao Qi <yao@codesourcery.com>
7150
7151 Import gnulib module inttypes from git
7152 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7153 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7154 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7155 gnulib/m4/inttypes-pri.m4
7156 * aclocal.m4, config.in, configure: Regenerated.
7157 * gnulib/Makefile.am: Update.
7158 * gnulib/Makefile.in: Update.
7159 * gnulib/m4/gnulib-cache.m4: Update.
7160 * gnulib/m4/gnulib-comp.m4: Update.
7161 * gnulib/inttypes.in.h: New.
7162 * gnulib/m4/inttypes-pri.m4: New.
7163 * gnulib/m4/inttypes.m4: New.
7164
7165 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7166
7167 * infrun.c (resume): Update PC address to the real PC after
7168 preparing to do displaced stepping.
7169
7170 2012-04-12 Doug Evans <dje@google.com>
7171
7172 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7173 All callers updated.
7174
7175 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7176
7177 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7178
7179 2012-04-12 Doug Evans <dje@google.com>
7180
7181 * dwarf2read.c (create_all_type_units): Renamed from
7182 create_debug_types_hash_table. All callers updated.
7183
7184 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7185 local type_sig to sig_type, type_offset to type_offset_in_tu.
7186 (hash_signatured_type): Renamed from hash_type_signature,
7187 all callers updated.
7188 (eq_signatured_type): Renamed from eq_type_signature,
7189 all callers updated.
7190 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7191 (process_enumeration_scope): Ditto.
7192 (lookup_signatured_type_at_offset): Ditto.
7193 (load_full_type_unit, read_signatured_type): Ditto.
7194
7195 2012-04-12 Yao Qi <yao@codesourcery.com>
7196
7197 * remote.c (async_remote_interrupt): Correct function name in
7198 debug message.
7199 (async_remote_interrupt_twice): Ditto.
7200
7201 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7202
7203 * source.c (find_and_open_source): Consistently pass resulting
7204 full path through xfullpath.
7205
7206 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7207
7208 Provide more specific displaced-stepping memory error message.
7209 * infrun.c (displaced_step_prepare): New variable status. Call
7210 target_read_memory instead of read_memory, provide more specific
7211 error message.
7212
7213 2012-04-11 Tristan Gingold <gingold@adacore.com>
7214
7215 PR gdb/13901
7216 * darwin-nat.c (darwin_execvp): Revert previous patch.
7217
7218 2012-04-11 Tristan Gingold <gingold@adacore.com>
7219
7220 PR gdb/13901
7221 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7222 in case of change.
7223
7224 2012-04-11 Tristan Gingold <gingold@adacore.com>
7225
7226 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7227 warning.
7228
7229 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7230
7231 New command 'explore' which helps explore values and types in
7232 scope.
7233 * NEWS: Add an entry about the new 'explore' command.
7234 * data-directory/Makefile.in: Add gdb/command/explore.py
7235 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7236 command using the GDB Python API.
7237
7238 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7239
7240 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7241 extension in jump target calculation.
7242
7243 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7244
7245 * mips-tdep.c (mips32_next_pc): Handle JALX.
7246
7247 2012-04-10 Yao Qi <yao@codesourcery.com>
7248
7249 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7250
7251 2012-04-10 Yao Qi <yao@codesourcery.com>
7252
7253 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7254 and gnulib/m4/gnulib-tool.m4.
7255
7256 2012-04-10 Doug Evans <dje@google.com>
7257
7258 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7259 (load_partial_dies): Clarify comment.
7260 (find_partial_die): Support rereading type units.
7261 Clarify CU handling, if we know offset is in CU, don't search for the
7262 containing CU. Add comment regarding memory waste.
7263
7264 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7265
7266 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7267 i386/x32-avx and i386/x32-avx-linux.
7268 (i386/x32-expedite): New.
7269 (i386/x32-linux-expedite): Likewise.
7270 (i386/x32-avx-expedite): Likewise.
7271 (i386/x32-avx-linux-expedite): Likewise.
7272 ($(outdir)/i386/x32.dat): Likewise.
7273 ($(outdir)/i386/x32-linux.dat): Likewise.
7274 ($(outdir)/i386/x32-avx.dat): Likewise.
7275 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7276
7277 * features/i386/x32-avx-linux.xml: New file.
7278 * features/i386/x32-avx.xml: Likewise.
7279 * features/i386/x32-core.xml: Likewise.
7280 * features/i386/x32-linux.xml: Likewise.
7281 * features/i386/x32.xml: Likewise.
7282
7283 * features/i386/x32-avx-linux.c: New. Generated.
7284 * features/i386/x32-avx.c: Likewise.
7285 * features/i386/x32-linux.c: Likewise.
7286 * features/i386/x32.c: Likewise.
7287 * regformats/i386/x32-avx-linux.dat: Likewise.
7288 * regformats/i386/x32-avx.dat: Likewise.
7289 * regformats/i386/x32-linux.dat: Likewise.
7290 * regformats/i386/x32.dat: Likewise.
7291
7292 2012-04-10 Tristan Gingold <gingold@adacore.com>
7293
7294 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7295 code to kill the inferior.
7296
7297 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7298
7299 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7300 defines.
7301 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7302 defines.
7303 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7304 (yyvsp): New defines.
7305 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7306 defines.
7307 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7308 defines.
7309 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7310 defines.
7311 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7312 defines.
7313 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7314 defines.
7315
7316 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7317
7318 * sparc64-tdep.c (sparc64_store_arguments)
7319 (sparc64_store_arguments): Fix coding style.
7320
7321 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7322
7323 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7324 complex floats, adjust some related comments and tighten a related
7325 assertion.
7326 (sparc64_extract_return_value): Handle complex floats.
7327
7328 2012-04-07 Doug Evans <dje@google.com>
7329
7330 * dwarf2read.c (load_partial_dies): Change condition to assert.
7331
7332 2012-04-06 Doug Evans <dje@google.com>
7333
7334 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7335 "mov %rsp,%rbp".
7336
7337 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7338
7339 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7340 fencepost error.
7341 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7342 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7343 architecture.
7344
7345 2012-04-05 Keith Seitz <keiths@redhat.com>
7346
7347 * linespec.c (decode_compound): Remove.
7348 (enum offset_relative_sign): New enum.
7349 (struct line_offset): New struct.
7350 (struct linespec): New struct.
7351 (struct linespec_state): Move file_symtabs,
7352 user_filename, and user_function into struct linespec.
7353 Make result an anonymous struct holding vectors of
7354 symbolp and minsym_and_objfile_d.
7355 Add language member.
7356 (enum ls_token_type): New enum.
7357 (linespec_keywords): New array.
7358 (struct ls_token): New struct.
7359 (struct ls_parser): New struct.
7360 (linespec_lexer_lex_number): New function.
7361 (linespec_lexer_lex_keyword): New function.
7362 (is_ada_operator): New function.
7363 (skip_quote_char): New function.
7364 (copy_token_string): New function.
7365 (is_closing_quote_enclosed): New function.
7366 (find_parameter_list_end): New function.
7367 (linespec_lexer_lex_string): New function.
7368 (linespec_lexer_lex_one): New function.
7369 (linespec_lexer_consume_token): New function.
7370 (linespec_lexer_peek_token): New function.
7371 (cplusplus_error): Remove unused function.
7372 (find_methods): Update comment.
7373 (find_toplevel_char): Return const.
7374 (is_objc_method_format): Remove unused function.
7375 (find_toplevel_string): New function.
7376 (is_linespec_boundary): Remove.
7377 (symbol_not_found_error): New function.
7378 (find_method_overload_end): Remove function.
7379 (unexpected_linespec_error): New function.
7380 (keep_name_info): Remove.
7381 (linespec_parse_line_offset): New function.
7382 (linespec_parse_basic): New function.
7383 (canonicalize_linespec): New function.
7384 (decode_line_internal): Remove.
7385 (create_sals_line_offset): New function adapted from
7386 decode_all_digits.
7387 (convert_linespec_to_sals): New function.
7388 (parse_linespec): New function.
7389 (linespec_parser_new): New function.
7390 (linespec_state_destructor): Change parameter type to
7391 struct linespec_state *.
7392 Add language parameter.
7393 Remove freeing of moved members.
7394 (linespec_parser_delete): New function.
7395 (decode_line_full): Use parse_linespec and linespec_parser_new.
7396 (decode_line_1): Likewise.
7397 (decode_indirect): Rename to ...
7398 (linespec_expression_to_pc): ... this and rewrite
7399 to simply find CORE_ADDR, storing this result for later
7400 conversion to SALs.
7401 (locate_first_half): Remove.
7402 (deocde_objc): Add parameter LS.
7403 Initialize new struct collect_info members.
7404 Handle minimal symbols, too.
7405 (decode_compound): Delete.
7406 (lookup_prefix_sym): Rewrite.
7407 (compare_msymbols): New function.
7408 (find_method): Rewrite.
7409 Do not call cplusplus_error.
7410 (symtabs_from_filename): Rewrite.
7411 (collect_function_symbols): Delete.
7412 (find_function_symbols): Rewrite without ARGPTR-style
7413 processing.
7414 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7415 (decode_dollar): Adapted and renamed to ...
7416 (linespec_parse_variable): ... this.
7417 (find_linespec_symbols): New function.
7418 (decode_label): Adapted and renamed to ...
7419 (find_label_symbols): ... this.
7420 (decode_digits_list_mode): Add and use LS argument.
7421 (decode_digits_ordinary): Likewise.
7422 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7423 If in list mode, allow any symbol class. Otherwise, only
7424 permit LOC_BLOCK symbols.
7425 (minsym_found): Update comments.
7426 (search_minsyms_for_name): Do not convert the matching symbol
7427 into a SAL. Simply push the symbol and objfile into the
7428 result vector.
7429 (decode_variable): Delete. Contents adapted into
7430 find_linespec_symbols.
7431
7432 * cp-support.c (SKIP_SPACE): Remove.
7433 (operator_tokens): Remove unused global.
7434 (cp_validate_operator): Remove.
7435 * cp-support.h (cp_validate_operator): Remove declaration.
7436
7437 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7438
7439 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7440 for TYPE_VPTR_FIELDNO.
7441 * valprint.c (valprint_check_validity): Make it global, move the
7442 function comment ...
7443 * value.h (valprint_check_validity): ... to this new declaration.
7444
7445 2012-04-02 Tristan Gingold <gingold@adacore.com>
7446
7447 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7448 the STATE32 api for i386 state.
7449 (i386_darwin_store_inferior_registers): Likewise.
7450
7451 2012-04-02 Tristan Gingold <gingold@adacore.com>
7452
7453 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7454 SS offset.
7455 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7456 format_string.
7457
7458 2012-04-02 Tristan Gingold <gingold@adacore.com>
7459
7460 PR gdb/13901
7461 * darwin-nat.c (darwin_execvp): Set binary preference.
7462
7463 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7466
7467 2012-03-30 Tom Tromey <tromey@redhat.com>
7468
7469 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7470 of TRY_CATCH. Fix error handling.
7471 * python/py-value.c (convert_value_from_python): Move 'old'
7472 declaration to innermost scope.
7473
7474 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7475 Andrey Smirnov <andrew.smirnov@gmail.com>
7476
7477 -Wshadow warning fix.
7478 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7479 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7480 Adjust code accordingly.
7481
7482 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7483
7484 * ada-lang.c (symbol_completion_add): Rename parameter
7485 "encoded" into "encoded_p". Ajust code and documentation
7486 accordingly.
7487
7488 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7489 Andrey Smirnov <andrew.smirnov@gmail.com>
7490
7491 -Wshadow warning fix.
7492 * ada-lang.c (symbol_completion_add): Rename parameter
7493 "wild_match" into wild_match_p. Update code and documentation
7494 accordingly.
7495
7496 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7497
7498 * ada-lang.c (symbol_completion_match): Rename parameter
7499 "encoded" into "encoded_p". Ajust code and documentation
7500 accordingly.
7501
7502 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7503 Andrey Smirnov <andrew.smirnov@gmail.com>
7504
7505 -Wshadow warning fix.
7506 * ada-lang.c (symbol_completion_match): Rename parameter
7507 "wild_match" into "wild_match_p". Adjust code and function
7508 documentation accordingly.
7509
7510 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7511 Andrey Smirnov <andrew.smirnov@gmail.com>
7512
7513 -Wshadow warning fix.
7514 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7515 "symbol_info" into "info". Adjust code accordingly.
7516 (ada_lookup_symbol): Likewise.
7517
7518 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7519
7520 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7521 of this function's documentation.
7522
7523 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7524 Andrey Smirnov <andrew.smirnov@gmail.com>
7525
7526 -Wshadow warning fix.
7527 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7528 variable into "wild_match_p". Adjust code accordingly.
7529
7530 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7531 Andrey Smirnov <andrew.smirnov@gmail.com>
7532
7533 -Wshadow warning fix.
7534 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7535 parameter into "wild_match_p". Adjust code accordingly.
7536 Document this parameter in the function description.
7537
7538 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7539 Andrey Smirnov <andrew.smirnov@gmail.com>
7540
7541 -Wshadow warning fix.
7542 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7543 "wild_match" parameter to "wild_match_p" (-Wshadow).
7544
7545 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7546
7547 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7548 in function documentation.
7549
7550 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7551 Andrey Smirnov <andrew.smirnov@gmail.com>
7552
7553 -Wshadow warning fix.
7554 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7555 variable into wild_match_p. Adjust code accordingly.
7556
7557 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7558 Andrey Smirnov <andrew.smirnov@gmail.com>
7559
7560 * ada-valprint.c (ada_val_print_1): Move the code handling
7561 TYPE_CODE_ENUM inside its own lexical block. Declare
7562 variables len and val there, instead of in the function's
7563 top level block. Avoid declaring deref_val again in a way
7564 that shadows another variable of the same name declared
7565 in one of the up-level blocks. Just re-use the up-level
7566 variable instead.
7567
7568 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7569
7570 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7571 Replace block_found argument by symbol_info. Adjust
7572 implementation accordingly. Add function documentation.
7573 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7574 Fix documentation.
7575 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7576 * ada-exp.y (write_object_renaming): Adjust to new
7577 ada_lookup_encoded_symbol API.
7578
7579 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7580
7581 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7582 documentation.
7583
7584 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7585
7586 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7587 (v850_register_name): Add the mpu and fpu register names.
7588 (v850e_register_name): Add the mpu and fpu register names.
7589 (v850e2_register_name): New function.
7590 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7591 bfd_mach_v850e2v3.
7592
7593 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7594
7595 * NEWS: Add entry for Ada varobj support.
7596
7597 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7598
7599 * varobj.c (default_value_is_changeable_p): New function,
7600 extracted from varobj_value_is_changeable_p. Add declaration.
7601 (ada_value_is_changeable_p): New function, extracted from
7602 varobj_value_is_changeable_p. Add declaration.
7603 (struct language_specific): New field "value_is_changeable_p".
7604 (languages): Add entries for new field.
7605 (varobj_create): Set language before calling install_new_value.
7606 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7607 "value_is_changeable_p" language callback.
7608
7609 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7610
7611 * ada-varobj.h, ada-varobj.c: New files.
7612 * Makefile.in (SFILES): Add ada-varobj.c.
7613 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7614 (COMMON_OBS): Add ada-varobj.o.
7615
7616 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7617
7618 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7619 (struct language_specific): New field "value_has_mutated".
7620 (languages): Set field "value_has_mutated" in each entry of array.
7621 (varobj_value_has_mutated): New function.
7622 (varobj_udpdate): Add handling of type mutation.
7623 (value_of_root): Add handling of type mutation.
7624 (ada_value_has_mutated): New function.
7625
7626 2012-03-28 Pedro Alves <palves@redhat.com>
7627
7628 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7629 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7630
7631 2012-03-28 Tom Tromey <tromey@redhat.com>
7632
7633 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7634 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7635 before returning.
7636
7637 2012-03-28 Tom Tromey <tromey@redhat.com>
7638
7639 * .dir-locals.el: New file.
7640
7641 2012-03-28 Pedro Alves <palves@redhat.com>
7642
7643 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7644
7645 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7646
7647 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7648 handling for r0.
7649
7650 2012-03-27 Pedro Alves <palves@redhat.com>
7651
7652 Eliminate struct ui_stream.
7653
7654 * ui-out.h (struct ui_stream): Delete.
7655 (ui_out_field_stream): Adjust prototype.
7656 (ui_out_stream_new, ui_out_stream_delete)
7657 (make_cleanup_ui_out_stream_delete): Delete declarations.
7658 * ui-out.c (ui_out_field_stream): Change prototype to take a
7659 ui_file instead of a ui_stream. Adjust.
7660 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7661 (make_cleanup_ui_out_stream_delete): Delete.
7662 * breakpoint.c (print_breakpoint_location)
7663 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7664 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7665 * disasm.c (dump_insns): Ditto.
7666 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7667 prototype.
7668 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7669 ui_stream/ui_out_stream_new.
7670 * infcmd.c (print_return_value): Ditto.
7671 * osdata.c (info_osdata_command): Don't allocate a local
7672 ui_stream.
7673 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7674 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7675 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7676 allocate a local ui_stream.
7677 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7678 instead of ui_stream/ui_out_stream_new.
7679 (list_args_or_locals): Don't allocate a local ui_stream.
7680 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7681 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7682 ui_stream/ui_out_stream_new.
7683 * cli/cli-setshow.c (do_setshow_command): Ditto.
7684
7685 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7686
7687 * arm-linux-tdep.c (arm_linux_init_abi): Call
7688 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7689 * arm-tdep.c (arm_process_record): New function.
7690 (deallocate_reg_mem): New function.
7691 (decode_insn): New function.
7692 (thumb_record_branch): New function.
7693 (thumb_record_ldm_stm_swi(): New function.
7694 (thumb_record_misc): New function.
7695 (thumb_record_ld_st_stack): New function.
7696 (thumb_record_ld_st_imm_offset): New function.
7697 (thumb_record_ld_st_reg_offset(): New function.
7698 (thumb_record_add_sub_cmp_mov): New function.
7699 (thumb_record_shift_add_sub): New function.
7700 (arm_record_coproc_data_proc): New function.
7701 (arm_record_coproc): New function.
7702 (arm_record_b_bl): New function.
7703 (arm_record_ld_st_multiple): New function.
7704 (arm_record_ld_st_reg_offset): New function.
7705 (arm_record_ld_st_imm_offset): New function.
7706 (arm_record_data_proc_imm): New function.
7707 (arm_record_data_proc_misc_ld_str): New function.
7708 (arm_record_extension_space): New function.
7709 (arm_record_strx): New function.
7710 (sbo_sbz): New function.
7711 (struct insn_decode_record): New structure for arm insn record.
7712 (REG_ALLOC): New macro for reg allocations.
7713 (MEM_ALLOC): New macro for memory allocations.
7714 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7715
7716 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7717
7718 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7719 (store_register): Likewise.
7720
7721 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7722
7723 * MAINTAINERS (Write After Approval): Add myself to the list.
7724
7725 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7726
7727 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7728 Describe also the option "auto".
7729
7730 2012-03-22 Richard Henderson <rth@redhat.com>
7731
7732 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7733 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7734
7735 2012-03-22 Richard Henderson <rth@redhat.com>
7736
7737 * jit.c (jit_read_code_entry): Compute alignment and offset of
7738 int64_t member before computing entry_size.
7739
7740 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7741
7742 Python scripting: Add new method Value.referenced_value to
7743 gdb.Value which can dereference pointer as well as reference
7744 values.
7745 * NEWS: Add entry under 'Python scripting' about the new method
7746 Value.referenced_value on gdb.Value objects.
7747 * python/py-value.c (valpy_referenced_value): New function
7748 defining a new method on gdb.Value objects which can dereference
7749 pointer and reference values.
7750
7751 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7752
7753 * MAINTAINERS (Write After Approval): Add myself to the list.
7754
7755 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7756
7757 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7758 in addition to "main".
7759
7760 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7761
7762 * expression.h (op_name): Add declaration.
7763 * expprint.c (op_name): Remove declaration. Make non-static.
7764 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7765
7766 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7767
7768 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7769 of struct siginfo.
7770 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7771 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7772 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7773 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7774 (linux_nat_get_siginfo): Likewise.
7775 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7776 (linux_nat_get_siginfo): Likewise.
7777 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7778 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7779 * procfs.c (gdb_siginfo_t): Likewise.
7780
7781 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7782
7783 * .gitignore: Ignore more files.
7784
7785 2012-03-20 Pedro Alves <palves@redhat.com>
7786
7787 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7788 returns.
7789
7790 2012-03-20 Yao Qi <yao@codesourcery.com>
7791
7792 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7793 comment.
7794
7795 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7796
7797 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7798 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7799 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7800 sect_offset.
7801 * dwarf2expr.h (cu_offset, sect_offset): New types.
7802 (struct dwarf_expr_context_funcs) <dwarf_call>
7803 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7804 sect_offset.
7805 (struct dwarf_expr_context) <len>: Improve the comment.
7806 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7807 cu_offset and sect_offset.
7808 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7809 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7810 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7811 * dwarf2loc.h: Include dwarf2expr.h.
7812 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7813 and sect_offset.
7814 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7815 Improve the comment.
7816 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7817 (struct signatured_type, struct line_header, struct partial_die_info)
7818 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7819 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7820 (get_die_type_at_offset, create_cus_from_index)
7821 (create_signatured_type_table_from_index, dw2_get_file_names)
7822 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7823 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7824 (create_debug_types_hash_table, process_psymtab_comp_unit)
7825 (load_partial_comp_unit, create_all_comp_units)
7826 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7827 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7828 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7829 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7830 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7831 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7832 (find_partial_die, read_attribute_value, lookup_die_type)
7833 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7834 (is_ref_attr): New function comment.
7835 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7836 Use cu_offset and sect_offset.
7837 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7838 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7839 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7840 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7841 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7842 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7843 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7844 sect_offset.
7845
7846 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7847
7848 Code cleanup.
7849 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7850 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7851 with xfree.
7852 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7853
7854 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7855
7856 * NEWS: Describe new options --init-command=FILE, -ix and
7857 --init-eval-command=COMMAND, -iex.
7858 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7859 CMDARG_INIT_COMMAND.
7860 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7861 "init-command", "init-eval-command", "ix" and "iex" to the variable
7862 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7863 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7864 (print_gdb_help): Describe --init-command=FILE, -ix and
7865 --init-eval-command=COMMAND, -iex.
7866
7867 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 Code cleanup.
7870 * main.c (struct cmdarg): Move it here from main. Add more comments.
7871 (cmdarg_s, VEC (cmdarg_s)): New.
7872 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7873 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7874 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7875 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7876 of CMDARG.
7877
7878 2012-03-19 Tom Tromey <tromey@redhat.com>
7879
7880 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7881
7882 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7883
7884 PR symtab/13777
7885 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7886 GCC >=4.5.
7887
7888 2012-03-16 Chris January <chris.january@allinea.com>
7889
7890 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7891 of clear.
7892
7893 2012-03-16 Chris January <chris.january@allinea.com>
7894
7895 * source.c (add_path): Use memmove instead of strcpy because the
7896 strings overlap.
7897
7898 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7899
7900 * value.h (set_value_parent): Add declaration.
7901 * value.c (set_value_parent): New function.
7902 (value_address): If VALUE->PARENT is not NULL, then use it as
7903 the base address instead of VALUE->LOCATION.address.
7904 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7905 the same as OBJ's address. Adjust V's offset accordingly.
7906 Set V's parent.
7907
7908 2012-03-16 Gary Benson <gbenson@redhat.com>
7909
7910 PR breakpoints/10738
7911 * dwarf2read.c (use_deprecated_index_sections): New global.
7912 (struct partial_die_info): New member may_be_inlined.
7913 (read_partial_die): Set may_be_inlined where appropriate.
7914 (add_partial_subprogram): Add partial symbols for partial
7915 DIEs that may be inlined.
7916 (new_symbol_full): Add inlined subroutines to the current
7917 scope.
7918 (write_psymtabs_to_index): Bump version number.
7919 (dwarf2_read_index): Read only version 6 indices unless
7920 use_deprecated_index_sections is set.
7921 * linespec.c (symbol_and_data_callback): New structure.
7922 (iterate_inline_only): New function.
7923 (iterate_over_all_matching_symtabs): New argument
7924 "include_inline". If nonzero, also call the callback for
7925 symbols representing inlined subroutines.
7926 (lookup_prefix_sym): Pass extra argument to the above.
7927 (find_function_symbols): Likewise.
7928 (add_matching_symbols_to_info): Likewise.
7929 * NEWS: Mention that GDB can now set breakpoints on inlined
7930 functions.
7931
7932 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7933
7934 * p-typeprint.c (pascal_type_print_method_args):
7935 Fix display of parameter of methods.
7936
7937 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7938
7939 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7940 Add missing prototype.
7941
7942 2012-03-16 Yao Qi <yao@codesourcery.com>
7943 Jan Kratochvil <jan.kratochvil@redhat.com>
7944
7945 Fix false compilation warning.
7946 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7947
7948 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7949 Pedro Alves <pedro@codesourcery.com>
7950
7951 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7952 (arm_register_g_packet_guesses): New function.
7953 (arm_gdbarch_init): Don't force a target description with
7954 registers when the executable is detected as M-profile. Instead
7955 set gdbarch->tdep->is_m. Register `g' packet guesses.
7956 (_initialize_arm_tdep): Initialize the new target description.
7957 * features/arm-with-m-fpa-layout.xml: New description.
7958 * features/arm-with-m-fpa-layout.c: New, generated.
7959
7960 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7961
7962 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7963 Update function description.
7964 (insert_bp_location): Do not wipe bl->target_info out.
7965 * mem-break.c: #include "gdb_string.h".
7966 (default_memory_insert_breakpoint): Do not call target_read_memory
7967 with a pointer to the breakpoint's shadow_contents buffer. Use
7968 a local buffer instead.
7969 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7970
7971 2012-03-15 Tom Tromey <tromey@redhat.com>
7972
7973 * NEWS: Mention "info vtbl", not "info vtable".
7974 * cp-support.c (info_vtbl_command): Fix comment.
7975 (_initialize_cp_support): Fix text.
7976
7977 2012-03-15 Tom Tromey <tromey@redhat.com>
7978
7979 * cp-valprint.c (cp_print_value_fields): Use
7980 print_function_pointer_address for vtable slot.
7981
7982 2012-03-15 Tom Tromey <tromey@redhat.com>
7983
7984 * gnu-v3-abi.c (struct value_and_voffset): New.
7985 (hash_value_and_voffset, eq_value_and_voffset)
7986 (compare_value_and_voffset, compute_vtable_size)
7987 (print_one_vtable, gnuv3_print_vtable): New functions.
7988 (init_gnuv3_ops): Initialize 'print_vtable' field.
7989 * cp-support.c (info_vtbl_command): New function.
7990 (_initialize_cp_support): Add "info vtbl".
7991 * cp-abi.h (cplus_print_vtable): Declare.
7992 (struct cp_abi_ops) <print_vtable>: New field.
7993 * cp-abi.c (cplus_print_vtable): New function.
7994 * NEWS: Update.
7995
7996 2012-03-15 Tom Tromey <tromey@redhat.com>
7997
7998 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7999 iterate_over_symbols.
8000
8001 2012-03-14 Doug Evans <dje@google.com>
8002
8003 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8004 DW_OP_GNU_parameter_ref.
8005
8006 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8007
8008 Fix double prompt of 'interpreter-exec mi'.
8009 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8010 (mi_interpreter_resume): use it.
8011 (mi_execute_command_input_handler): New function.
8012 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8013 mi_execute_command_input_handler.
8014
8015 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8016
8017 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8018 prototype.
8019 (darwin_debug_port_info): Make static.
8020 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8021 * machoread.c (_initialize_machoread): Add prototype.
8022 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8023 (i386_darwin_set_control, i386_darwin_get_control)
8024 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8025 i386_darwin_get_status, i386_darwin_get_control):
8026 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8027
8028 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8029
8030 * ax-gdb.c (gen_usual_unary): Remove special handling of
8031 enum and bool types.
8032
8033 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8034
8035 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8036
8037 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8038
8039 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8040
8041 2012-03-13 Chris January <chris.january@allinea.com>
8042
8043 * aix-thread.c (fill_sprs): Store the floating point registers
8044 at the correct offsets into vals.
8045
8046 2012-03-13 Doug Evans <dje@google.com>
8047
8048 * NEWS: Mention symbol-reloading has been deleted.
8049 * symfile.c (symbol_reloading): Delete.
8050 (show_symbol_reloading): Delete.
8051 (_initialize_symfile): Delete set/show symbol-reloading.
8052
8053 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8054 read_in_chain until we have successfully read it in.
8055 (load_full_comp_unit): Ditto.
8056 (read_signatured_type): Add comment.
8057
8058 2012-03-13 Chris January <chris.january@allinea.com>
8059
8060 * stabsread.c (fix_common_block): Change type of valu argument
8061 to CORE_ADDR.
8062
8063 2012-03-13 Chris January <chris.january@allinea.com>
8064
8065 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8066 instruction.
8067
8068 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8069
8070 * common/linux-procfs.c (linux_proc_get_int): New, from
8071 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8072 field.
8073 (linux_proc_get_tgid): Only call linux_proc_get_int.
8074 (linux_proc_get_tracerpid): New.
8075 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8076 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8077 linux_proc_pid_has_state.
8078 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8079 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8080 (linux_ptrace_attach_warnings): New.
8081 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8082 New declaration.
8083 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8084 (linux_nat_attach): New variables ex, buffer, message and message_s.
8085 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8086
8087 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8088
8089 * Makefile.in (linux-ptrace.o): New.
8090 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8091 from linux-nat.c.
8092 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8093 * common/linux-ptrace.c: New file.
8094 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8095 * config/arm/linux.mh: Likewise.
8096 * config/i386/linux.mh: Likewise.
8097 * config/i386/linux64.mh: Likewise.
8098 * config/ia64/linux.mh: Likewise.
8099 * config/m32r/linux.mh: Likewise.
8100 * config/m68k/linux.mh: Likewise.
8101 * config/mips/linux.mh: Likewise.
8102 * config/pa/linux.mh: Likewise.
8103 * config/powerpc/linux.mh: Likewise.
8104 * config/powerpc/ppc64-linux.mh: Likewise.
8105 * config/powerpc/spu-linux.mh: Likewise.
8106 * config/s390/s390.mh: Likewise.
8107 * config/sparc/linux.mh: Likewise.
8108 * config/sparc/linux64.mh: Likewise.
8109 * config/xtensa/linux.mh: Likewise.
8110 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8111 common/linux-procfs.c.
8112 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8113
8114 2012-03-13 Hui Zhu <teawater@gmail.com>
8115 Pedro Alves <palves@redhat.com>
8116
8117 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8118 CREATE_BREAKPOINT_FLAGS_INSERTED.
8119 (create_breakpoint_sal, create_breakpoints_sal)
8120 (base_breakpoint_create_breakpoints_sal)
8121 (tracepoint_create_breakpoints_sal)
8122 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8123 down.
8124 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8125 (ftrace_command, strace_command): Adjust.
8126 (create_tracepoint_from_upload): Pass
8127 CREATE_BREAKPOINT_FLAGS_INSERTED.
8128 * breakpoint.h (enum breakpoint_create_flags): New.
8129 (create_breakpoint): New flags parameter.
8130 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8131 * python/py-breakpoint.c (bppy_init): Adjust.
8132 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8133 * spu-tdep.c (spu_catch_start): Adjust.
8134
8135 2012-03-13 Pedro Alves <palves@redhat.com>
8136 Hui Zhu <teawater@gmail.com>
8137 Yao Qi <yao@codesourcery.com>
8138
8139 * remote.c (struct remote_state): New field `starting_up'.
8140 (remote_start_remote): Set and clear it.
8141 (remote_can_download_tracepoint): If starting up, return false.
8142
8143 2012-03-13 Yao Qi <yao@codesourcery.com>
8144
8145 * inferior.h (struct inferior): Remove fields any_syscall_count,
8146 syscalls_counts and total_syscalls_count. Move them to new
8147 struct catch_syscall_inferior_data in breakpoint.c.
8148 * breakpoint.c: Call DEF_VEC_I(int).
8149 (struct catch_syscall_inferior_data): New.
8150 (get_catch_syscall_inferior_data): New.
8151 (catch_syscall_inferior_data_cleanup): New.
8152 (insert_catch_syscall): Update to access data in
8153 struct catch_syscall_inferior_data.
8154 (insert_catch_syscall): Likewise.
8155 (remove_catch_syscall): Likewise.
8156 (remove_catch_syscall): Likewise.
8157 (is_syscall_catchpoint_enabled): Likewise.
8158 (add_catch_command): Likewise.
8159 (_initialize_breakpoint): Register cleanup.
8160 * breakpoint.h: Removed DEF_VEC_I(int).
8161 * dwarf2loc.c: Call DEF_VEC_I(int).
8162 * mi/mi-main.c: Likewise.
8163
8164 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8165
8166 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8167
8168 2012-03-12 Chris January <chris.january@allinea.com>
8169
8170 * aix-thread.c (_initialize_aix_thread): Add prototype.
8171 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8172 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8173
8174 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8175
8176 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8177 include of "amd64-nat.h".
8178
8179 2012-03-12 Tom Tromey <tromey@redhat.com>
8180
8181 * buildsym.c (record_pending_block): Now static.
8182 * buildsym.h: (record_pending_block): Remove.
8183
8184 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8185
8186 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8187
8188 2012-03-09 Tom Tromey <tromey@redhat.com>
8189
8190 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8191 producer_is_gxx_lt_4_6>: New fields.
8192 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8193
8194 2012-03-09 Tom Tromey <tromey@redhat.com>
8195
8196 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8197
8198 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8199
8200 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8201 prototype.
8202
8203 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8204
8205 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8206
8207 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8208
8209 Fix -Wmissing-prototypes build.
8210 * arm-linux-nat.c (get_thread_id): Make it static.
8211 * xtensa-linux-nat.c (get_thread_id): Likewise.
8212
8213 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8214
8215 * server.c (process_point_options): If a conditional expression
8216 is found, only print a message if remote_debug is nonzero.
8217
8218 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8219
8220 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8221 of internal error for unknown/unsupported types.
8222
8223 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 Fix CU relative vs. absolute DIE offsets.
8226 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8227 offset to offset_in_cu.
8228 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8229 TYPE_OFFSET.
8230 (dwarf2_fetch_die_location_block): Rename parameter offset to
8231 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8232
8233 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8234
8235 * libunwind-frame.c: Rename to ...
8236 * ia64-libunwind-tdep.c: ... here.
8237 * libunwind-frame.h: Rename to ...
8238 * ia64-libunwind-tdep.h: ... here.
8239 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8240 ia64-libunwind-tdep.h.
8241 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8242 * README (--with-libunwind): Rename to ...
8243 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8244 * config.in: Regenerate.
8245 * configure: Regenerate.
8246 * configure.ac: New option --with-libunwind-ia64, make the
8247 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8248 Remove AC_DEFINE for HAVE_LIBUNWIND.
8249 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8250 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8251 Rename libunwind-frame in the general comment.
8252 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8253 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8254 Move forward declarations inside #ifndef. Rename libunwind-frame in
8255 the general comment.
8256 * ia64-tdep.c: Rename libunwind-frame.h #include to
8257 ia64-libunwind-tdep.h.
8258 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8259 (ia64_libunwind_descr): Rename libunwind-frame to
8260 ia64-libunwind-tdep in these function comments.
8261 * ia64-tdep.h: Rename libunwind-frame.h #include to
8262 ia64-libunwind-tdep.h.
8263 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8264 ia64-libunwind-tdep in that data comment.
8265
8266 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8267
8268 * libunwind-frame.h (struct frame_unwind): New declaration.
8269
8270 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8271
8272 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8273 "set breakpoint condition-evaluation" command.
8274
8275 2012-03-08 Tristan Gingold <gingold@adacore.com>
8276
8277 * sparc-stub.c: Move to stubs/
8278 * sh-stub.c: Likewise.
8279 * m68k-stub.c: Likewise.
8280 * m32r-stub.c: Likewise.
8281 * i386-stub.c: Likewise.
8282
8283 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8284
8285 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8286 linux_get_siginfo_type.
8287
8288 * m68klinux-nat.c: Include "gdb_proc_service.h".
8289 (PTRACE_GET_THREAD_AREA): Define.
8290 (ps_get_thread_area): New function.
8291
8292 2012-03-08 Yao Qi <yao@codesourcery.com>
8293
8294 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8295 `xsnprintf'.
8296 (remote_query_attached): Likewise.
8297 (remote_static_tracepoint_marker_at): Likewise.
8298 (remote_set_permissions): Likewise.
8299 (remote_detach_1, extended_remote_attach_1): Likewise.
8300 (send_g_packet, remote_vkill): Likewise.
8301 (extended_remote_disable_randomization): Likewise.
8302 (remote_add_target_side_condition): Likewise.
8303 (remote_insert_breakpoint): Likewise.
8304 (remote_remove_breakpoint): Likewise.
8305 (remote_insert_watchpoint): Likewise.
8306 (remote_remove_watchpoint): Likewise.
8307 (remote_insert_hw_breakpoint): Likewise.
8308 (remote_insert_hw_breakpoint): Likewise.
8309 (remote_remove_hw_breakpoint): Likewise.
8310 (remote_download_command_source): Likewise.
8311 (remote_download_tracepoint): Likewise.
8312 (remote_download_trace_state_variable): Likewise.
8313 (remote_disable_tracepoint): Likewise.
8314 (remote_trace_set_readonly_regions): Likewise.
8315 (remote_get_tracepoint_status): Likewise.
8316 (remote_trace_find): Likewise.
8317 (remote_get_trace_state_variable_value): Likewise.
8318 (remote_set_disconnected_tracing): Likewise.
8319 (remote_set_circular_trace_buffer): Likewise.
8320 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8321 (remote_use_agent): Likewise.
8322 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8323 Update callers.
8324
8325 2012-03-07 Pedro Alves <palves@redhat.com>
8326
8327 * NEWS: Mention QProgramSignals.
8328 * inferior.h (update_signals_program_target): Declare.
8329 * infrun.c: (update_signals_program_target): New.
8330 (handle_command): Update the target of the new program signals
8331 array changes.
8332 * remote.c (PACKET_QProgramSignals): New enum.
8333 (last_program_signals_packet): New global.
8334 (remote_program_signals): New.
8335 (remote_start_remote): Update the target with the program signals
8336 list.
8337 (remote_protocol_features): Add entry for QPassSignals.
8338 (remote_open_1): Free anc clear last_program_signals_packet.
8339 (init_remote_ops): Install remote_program_signals.
8340 * target.c (update_current_target): Adjust.
8341 (target_program_signals): New.
8342 * target.h (struct target_ops) <to_program_signals>: New field.
8343 (target_program_signals): Declare.
8344
8345 2012-03-07 Pedro Alves <palves@redhat.com>
8346
8347 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8348 extensions.
8349
8350 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8351
8352 * m68klinux-nat.c (getregs_supplies): Make static.
8353 (getfpregs_supplies): Likewise.
8354 (have_ptrace_getregs): Likewise.
8355
8356 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8357
8358 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8359 in call to get_die_type_at_offset.
8360
8361 2012-03-06 Stan Shebs <stan@codesourcery.com>
8362
8363 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8364 * mi/mi-cmd-disas.c: Ditto.
8365 * mi/mi-cmd-env.c: Ditto.
8366 * mi/mi-cmd-file.c: Ditto.
8367 * mi/mi-cmd-stack.c: Ditto.
8368 * mi/mi-cmd-target.c: Ditto.
8369 * mi/mi-cmd-var.c: Ditto.
8370 * mi/mi-cmds.c: Ditto.
8371 * mi/mi-cmds.h: Ditto.
8372 * mi/mi-console.c: Ditto.
8373 * mi/mi-getopt.c: Ditto.
8374 * mi/mi-getopt.h: Ditto.
8375 * mi/mi-interp.c: Ditto.
8376 * mi/mi-main.c: Ditto.
8377 * mi/mi-out.c: Ditto.
8378 * mi/mi-parse.c: Ditto.
8379 * mi/mi-parse.h: Ditto.
8380 * mi/mi-symbol-cmds.c: Ditto.
8381
8382 * mi/mi-getopt.h: Move mi_opt struct up.
8383 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8384 return.
8385 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8386
8387 2012-03-06 Tom Tromey <tromey@redhat.com>
8388
8389 * proc-service.c (ps_pglobal_lookup): Set the current program
8390 space.
8391
8392 2012-03-06 Pedro Alves <palves@redhat.com>
8393
8394 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8395
8396 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8397
8398 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8399
8400 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8401
8402 Code cleanup.
8403 * common/linux-osdata.c (linux_common_core_of_thread): New function
8404 comment.
8405 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8406 call by linux_common_core_of_thread.
8407 (linux_nat_core_of_thread_1): Remove.
8408 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8409 * linux-thread-db.c: Include linux-osdata.h.
8410 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8411 linux_common_core_of_thread.
8412
8413 2012-03-05 Tom Tromey <tromey@redhat.com>
8414
8415 * value.c (value_primitive_field): Don't fetch contents for
8416 non-virtual bases.
8417
8418 2012-03-05 Tom Tromey <tromey@redhat.com>
8419
8420 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8421
8422 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8423
8424 * s390-nat.c: Include "gregset.h".
8425
8426 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8427
8428 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8429 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8430 (libunwind_load): New variable so_error, use it for dlerror. Try to
8431 load also LIBUNWIND_SO_7.
8432
8433 2012-03-05 Pedro Alves <palves@redhat.com>
8434
8435 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8436 is not NULL, and remove resulting dead code.
8437
8438 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8439
8440 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8441 prologue to sh_analyze_prologue.
8442 (sh_analyze_prologue): Make better use of such an upper limit, and
8443 generally be more cautious about accessing memory.
8444
8445 2012-03-05 Tom Tromey <tromey@redhat.com>
8446
8447 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8448 _initialize_ia64_hpux_tdep.
8449
8450 2012-03-05 Pedro Alves <palves@redhat.com>
8451
8452 PR gdb/13766
8453
8454 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8455 the register state is clear, supply explicit zero, instead of
8456 marking the register unavailable.
8457
8458 2012-03-05 Tristan Gingold <gingold@adacore.com>
8459
8460 * NEWS: Mention OpenVMS ia64 new target.
8461
8462 2012-03-05 Tristan Gingold <gingold@adacore.com>
8463
8464 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8465 (ia64_unw_accessors, ia64_unw_rse_accessors)
8466 (ia64_libunwind_descr): Declare.
8467 * ia64-vms-tdep.c: New file.
8468 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8469 (ia64_libunwind_descr): Make them public.
8470 * configure.tgt: Add ia64-*-*vms*.
8471 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8472 (ALLDEPFILES): Add ia64-vms-tdep.c
8473
8474 2012-03-05 Tristan Gingold <gingold@adacore.com>
8475
8476 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8477 * remote.c (PACKET_qXfer_uib): New enum value.
8478 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8479 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8480 (_initialize_remote): Call add_packet_config_cmd for
8481 xfer:uib packet.
8482
8483 2012-03-05 Tristan Gingold <gingold@adacore.com>
8484
8485 * osabi.c (gdb_osabi_names): Add OpenVMS.
8486 (generic_elf_osabi_sniffer): Likewise.
8487 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8488
8489 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 Removed unused code.
8492 * libunwind-frame.c (libunwind_frame_unwind)
8493 (libunwind_frame_base_address): Remove.
8494 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8495
8496 2012-03-04 Yao Qi <yao@codesourcery.com>
8497
8498 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8499 remove trailing new line.
8500 (agent_run_command, agent_run_command): Add _ markup.
8501 (agent_capability_check): Likewise.
8502
8503 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8504
8505 * breakpoint.c (set_condition_evaluation_mode): Set
8506 CONDITION_EVALUATION_MODE unconditionally.
8507
8508 2012-03-03 Yao Qi <yao@codesourcery.com>
8509
8510 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8511 * common/agent.h: Update declaration.
8512 * inf-child.c (inf_child_use_agent): New.
8513 (inf_child_can_use_agent): New.
8514 (inf_child_target): Initialize fields `to_use_agent'
8515 and `to_can_use_agent'.
8516 * agent.c (agent_new_objfile): New.
8517 (_initialize_agent): Add agent_new_objfile to new_objfile
8518 observer.
8519
8520 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8521 New.
8522 (linux_target_install_ops): Initialize field
8523 `to_static_tracepoint_markers_by_strid'.
8524 * remote.c (free_current_marker): Move it to ...
8525 * tracepoint.c (free_current_marker): ... here. New.
8526 (cleanup_target_stop): New.
8527 * tracepoint.h: Declare free_current_marker.
8528 * NEWS: Add one entry about `info static-tracepoint-marker'.
8529
8530 2012-03-03 Yao Qi <yao@codesourcery.com>
8531
8532 * common/agent.c (agent_loaded_p): New.
8533 (agent_look_up_symbols): New global.
8534 * common/agent.h: Declare agent_loaded_p.
8535
8536 2012-03-03 Yao Qi <yao@codesourcery.com>
8537
8538 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8539 (agent_capability_check, agent_capability_invalidate): New.
8540 (symbol_list): New array element.
8541 * common/agent.h (enum agent_capa): New.
8542 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8543
8544 2012-03-03 Yao Qi <yao@codesourcery.com>
8545
8546 * target.h (struct target_ops) <to_use_agent>: New field.
8547 (struct target_ops) <to_can_use_agent>: New field.
8548 (target_use_agent, target_can_use_agent): New macro.
8549 * target.c (update_current_target): Update.
8550 * remote.c: New enum `PACKET_QAgent'.
8551 (remote_protocol_features): Add a new element.
8552 (remote_use_agent, remote_can_use_agent): New.
8553 (init_remote_ops): Initialize field `can_use_agent' with
8554 remote_can_use_agent. Intiailize field `use_agent' with
8555 remote_use_agent.
8556 * common/agent.c (use_agent): New global.
8557 * common/agent.h: Declare it.
8558 * tracepoint.c (info_static_tracepoint_markers_command): Add
8559 comment.
8560 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8561 (COMMON_OBS): Add common/agent.o and agent.o
8562 (common-agent.o): New rule.
8563 * agent.c: New.
8564
8565 2012-03-03 Yao Qi <yao@codesourcery.com>
8566
8567 * common/agent.c: New.
8568 * common/agent.h: New.
8569 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8570 AC_CHECK_HEADERS.
8571 * configure, configh.in: Regenerated.
8572
8573 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8574
8575 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8576 unless it exists for this architecture.
8577
8578 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8579
8580 * language.h (struct language_defn): New "method" la_read_var_value.
8581 * findvar.c: #include "language.h".
8582 (default_read_var_value): Renames read_var_value. Rewrite
8583 function description.
8584 (read_var_value): New function.
8585 * value.h (default_read_var_value): Add prototype.
8586 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8587 New functions.
8588 (ada_language_defn): Add entry for la_read_var_value.
8589 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8590 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8591 language_defn structures to add entry for new la_read_var_value
8592 field.
8593
8594 2012-03-02 Tom Tromey <tromey@redhat.com>
8595 Pedro Alves <palves@redhat.com>
8596
8597 PR breakpoints/13776:
8598 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8599 breakpoints.
8600 (delete_longjmp_breakpoint_at_next_stop): New.
8601 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8602 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8603 before deleting the inferior. Add comments.
8604 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8605 breakpoints immediately, but only on next stop. Move that code
8606 next to where we mark other breakpoints for deletion.
8607
8608 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8609
8610 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8611 marker.
8612 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8613 violation.
8614
8615 2012-03-02 Pedro Alves <palves@redhat.com>
8616
8617 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8618
8619 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8620
8621 Fix -Wmissing-prototypes build.
8622 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8623 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8624 (gdbsim_has_memory): Likewise.
8625
8626 2012-03-02 Yao Qi <yao@codesourcery.com>
8627
8628 Fix -Wmissing-prototypes build.
8629 * charset.c (phony_iconv_open): Make static.
8630 (phony_iconv_close, phony_iconv): Likewise.
8631 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8632 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8633 prototype.
8634 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8635 * ser-mingw.c (create_select_thread): Make static.
8636 * windows-termcap.c (tgetent): New prototype.
8637 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8638
8639 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8640
8641 Fix -Wmissing-prototypes build.
8642 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8643 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8644 (_initialize_loadable): New prototypes.
8645
8646 2012-03-02 Doug Evans <dje@google.com>
8647
8648 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8649 abbrev table, read_comp_unit will do it.
8650
8651 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8652
8653 Fix -Wmissing-prototypes build.
8654 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8655 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8656 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8657 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8658 (_initialize_arm_symbian_tdep): New prototype.
8659 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8660 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8661 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8662 static.
8663 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8664 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8665 prototype.
8666 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8667 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8668 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8669 static.
8670 * moxie-tdep.c (moxie_process_record): Likewise.
8671 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8672 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8673 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8674 (_initialize_rl78_tdep): New prototype.
8675 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8676 (_initialize_rx_tdep): New prototype.
8677 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8678 (_initialize_darwin_solib): New prototype.
8679 * solib-spu.c: Include solib-spu.h.
8680 (_initialize_spu_solib): New prototype.
8681 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8682 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8683 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8684 (tic6x_software_single_step): Make it static.
8685 (_initialize_tic6x_tdep): New prototype.
8686
8687 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8688
8689 Fix -Wmissing-prototypes build.
8690 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8691 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8692
8693 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8694
8695 Fix -Wmissing-prototypes build.
8696 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8697 (frv_have_stopped_data_address): Remove.
8698
8699 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 Fix -Wmissing-prototypes build.
8702 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8703 * sh-tdep.c: Include sh64-tdep.h.
8704 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8705 * sh64-tdep.c: Include sh64-tdep.h.
8706 * sh64-tdep.h: New file.
8707
8708 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8709
8710 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8711
8712 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8713
8714 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8715 sp_regnum once the gdbarch_init_osabi hook has been called.
8716
8717 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8718
8719 * mips-tdep.c (mips32_bc1_pc): New function.
8720 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8721 BPOSGE32 and BPOSGE64 instructions.
8722 (deal_with_atomic_sequence): Likewise.
8723 (mips32_instruction_has_delay_slot): Likewise.
8724
8725 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8726 Chris Dearman <chris@mips.com>
8727 Maciej W. Rozycki <macro@codesourcery.com>
8728 Joseph Myers <joseph@codesourcery.com>
8729
8730 * features/mips-dsp.xml: New file.
8731 * features/mips64-dsp.xml: New file.
8732 * features/mips-dsp-linux.xml: New file.
8733 * features/mips64-dsp-linux.xml: New file.
8734 * features/Makefile (WHICH): Add mips-dsp-linux and
8735 mips64-dsp-linux.
8736 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8737 * features/mips-dsp-linux.c: New file.
8738 * features/mips64-dsp-linux.c: New file.
8739 * regformats/mips-dsp-linux.dat: New file.
8740 * regformats/mips64-dsp-linux.dat: New file.
8741 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8742 registers.
8743 (mips64_linux_register_addr): Likewise.
8744 (mips64_linux_regsets_fetch_registers): Likewise.
8745 (mips64_linux_regsets_store_registers): Likewise.
8746 (mips64_linux_fetch_registers): Update call to
8747 mips64_linux_regsets_fetch_registers.
8748 (mips64_linux_store_registers): Update call to
8749 mips64_linux_regsets_store_registers.
8750 (mips_linux_read_description): Probe for DSP registers.
8751 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8752 and initialize_tdesc_mips64_dsp_linux.
8753 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8754 Remove padding of no longer used embedded register slots.
8755 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8756 (MIPS_RESTART_REGNUM): Redefine enum value.
8757 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8758 strings.
8759 (mips_tx39_reg_names): Likewise.
8760 (mips_linux_reg_names): New array of register names for Linux
8761 targets.
8762 (mips_register_name): Check for a null pointer in
8763 mips_processor_reg_names and return an empty string.
8764 (mips_register_type): Exclude embedded registers for the IRIX
8765 and Linux ABIs.
8766 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8767 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8768 DSP registers.
8769 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8770 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8771 (mips_gdbarch_init): Likewise. Initialize internal register
8772 indices for the Linux ABI. Use dynamic numbers to refer to
8773 registers, as applicable, while parsing the target description.
8774 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8775
8776 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8777
8778 * frame.h (read_frame_register_unsigned): Fix typo in function
8779 description.
8780
8781 2012-03-01 Pedro Alves <palves@redhat.com>
8782
8783 * jit-reader.in [!__cplusplus]
8784 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8785
8786 2012-03-01 Pedro Alves <palves@redhat.com>
8787
8788 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8789 * configure: Regenerate.
8790
8791 2012-03-01 Pedro Alves <palves@redhat.com>
8792
8793 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8794 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8795 (ftrace_command, strace_command): Make static.
8796 * d-lang.c (_initialize_d_language): Declare.
8797 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8798 * dwarf2loc.c (_initialize_dwarf2loc):
8799 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8800 * exec.c (exec_get_section_table): Make static.
8801 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8802 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8803 * inferior.c (remove_inferior_command, add_inferior_command)
8804 (clone_inferior_command): Make static.
8805 * linux-nat.c (linux_nat_thread_address_space)
8806 (linux_nat_core_of_thread): Make static.
8807 * linux-tdep.c (_initialize_linux_tdep): Declare.
8808 * objc-lang.c (_initialize_objc_lang): Declare.
8809 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8810 Make static.
8811 (_initialize_opencl_language): Declare.
8812 * record.c (_initialize_record): Declare.
8813 * remote.c (demand_private_info, remote_get_tib_address)
8814 (remote_supports_cond_tracepoints)
8815 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8816 Make static.
8817 * skip.c (_initialize_step_skip): Declare.
8818 * symtab.c (skip_prologue_using_lineinfo): Make static.
8819 * tracepoint.c (delete_trace_state_variable)
8820 (trace_variable_command, delete_trace_variable_command)
8821 (get_uploaded_tsv, find_matching_tracepoint_location)
8822 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8823 Make static.
8824 * value.c (pack_unsigned_long): Make static.
8825 * varobj.c (varobj_ensure_python_env): Make static.
8826 * windows-tdep.c (_initialize_windows_tdep): Declare.
8827 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8828
8829 2012-03-01 Pedro Alves <palves@redhat.com>
8830
8831 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8832 gdbarch parameter.
8833 (linux_init_abi): Install it as has_shared_address_space gdbarch
8834 callback.
8835
8836 2012-03-01 Pedro Alves <palves@redhat.com>
8837
8838 * observer.c (observer_test_first_notification_function)
8839 (observer_test_second_notification_function)
8840 (observer_test_third_notification_function): Add declarations.
8841
8842 2012-03-01 Pedro Alves <palves@redhat.com>
8843
8844 * common/signals.c (default_target_signal_to_host)
8845 (default_target_signal_from_host): Move ...
8846 * arch-utils.c: ... here.
8847 * arch-utils.h (default_target_signal_to_host)
8848 (default_target_signal_from_host): Declare.
8849
8850 * common/signals.c (target_signal_from_command): Move ...
8851 * infrun.c: ... here.
8852 * inferior.h (target_signal_from_command): Declare.
8853 * target.h (target_signal_from_command)
8854 (default_target_signal_from_host, default_target_signal_to_host):
8855 Delete declarations.
8856
8857 * common/signals.c (_initialize_signals): Delete.
8858
8859 2012-03-01 Pedro Alves <palves@redhat.com>
8860
8861 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8862 both __cplusplus and !__cplusplus.
8863
8864 2012-03-01 Pedro Alves <palves@redhat.com>
8865
8866 * psymtab.c (find_and_open_source): Delete declaration.
8867 * source.c (find_and_open_source): Move comment ...
8868 * source.h (find_and_open_source): ... to this new declaration.
8869
8870 2012-03-01 Pedro Alves <palves@redhat.com>
8871
8872 * inline-frame.c: Include inline-frame.h.
8873
8874 2012-03-01 Pedro Alves <palves@redhat.com>
8875
8876 * tui/tui-data.c (set_gen_win_origin): Delete.
8877 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8878 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8879
8880 2012-03-01 Pedro Alves <palves@redhat.com>
8881
8882 * remote.c (encode_actions): Delete declaration.
8883 * tracepoint.c (encode_actions): Make extern.
8884 * tracepoint.h (encode_actions): Declare.
8885
8886 2012-03-01 Pedro Alves <palves@redhat.com>
8887
8888 * python/py-breakpoint.c: Include python.h.
8889 * python/py-continueevent.c (create_continue_event_object): Make
8890 static.
8891 * python/py-lazy-string.c (stpy_get_type): Make static.
8892 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8893 Make static.
8894 * python/py-utils.c (unicode_to_target_python_string): Make
8895 static.
8896 * python/py-value.c: Include python.h.
8897
8898 2012-03-01 Pedro Alves <palves@redhat.com>
8899
8900 * inferior.c (delete_threads_of_inferior): Delete.
8901
8902 2012-03-01 Pedro Alves <palves@redhat.com>
8903
8904 Import fallback definitions from glibc.
8905
8906 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8907 ps_prochandle): Forward declare.
8908 (ps_err_e): Use glibc's comments.
8909 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8910 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8911 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8912 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8913 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8914 (struct ps_prochandle): Adjust comment.
8915
8916 2012-03-01 Pedro Alves <palves@redhat.com>
8917
8918 * ada-lang.c (ada_modulus_from_name): Delete.
8919 * ada-lex.l (lexer_init): Make static.
8920
8921 2012-03-01 Pedro Alves <palves@redhat.com>
8922
8923 PR gdb/13767
8924
8925 * frame.c (read_frame_register_unsigned): New.
8926 * frame.h (read_frame_register_unsigned): Declare.
8927 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8928 Handle it.
8929 (print_i387_control_word): New parameter `control_p'. Handle it.
8930 (i387_print_float_info): Handle unavailable float registers.
8931
8932 2012-03-01 Keith Seitz <keiths@redhat.com>
8933
8934 * linespec.c (decode_line_2): Sort the list of methods
8935 alphabetically before presenting the user with a selection
8936 menu.
8937
8938 2012-03-01 Doug Evans <dje@google.com>
8939
8940 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8941 has_namespace_info.
8942 (dwarf2_read_abbrevs): Remove corresponding initialization.
8943
8944 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8945
8946 * NEWS: Mention new python command class gdb.COMMAND_USER.
8947 * cli/cli-cmds.c (show_user): Print error when used on a python
8948 command.
8949 (init_cli_cmds): Update documentation strings for "show user" and
8950 "set/show max-user-call-depth" to clarify that it does not apply to
8951 python commands.
8952 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8953 error check.
8954 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8955 gdb python api.
8956 * top.c (execute_command): Only execute a user-defined command as a
8957 legacy macro if c->user_commands is set.
8958
8959 2012-03-01 Tom Tromey <tromey@redhat.com>
8960
8961 * valprint.h (struct generic_val_print_decorations): New.
8962 (generic_val_print): Declare.
8963 * valprint.c (generic_val_print): New function.
8964 * p-valprint.c (p_decorations): New global.
8965 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8966 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8967 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8968 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8969 * m2-valprint.c (m2_decorations): New global.
8970 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8971 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8972 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8973 TYPE_CODE_ERROR>: Call generic_val_print.
8974 * f-valprint.c (f_decorations): New global.
8975 (f_val_print): Use print_function_pointer_address.
8976 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8977 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8978 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8979 generic_val_print.
8980 * c-valprint.c (c_decorations): New global.
8981 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8982 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8983 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8984 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8985 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8986 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8987 case.
8988
8989 2012-03-01 Tom Tromey <tromey@redhat.com>
8990
8991 * valprint.c (val_print): Update.
8992 * p-valprint (pascal_val_print): Return void.
8993 * p-lang.h (pascal_val_print): Return void.
8994 * m2-valprint.c (m2_val_print): Return void.
8995 * m2-lang.h (m2_val_print): Return void.
8996 * language.h (struct language_defn) <la_val_print>: Return void.
8997 * language.c (unk_lang_val_print): Return void.
8998 * jv-valprint.c (java_val_print): Return void.
8999 * jv-lang.h (java_val_print): Return void.
9000 * f-valprint.c (f_val_print): Return void.
9001 * f-lang.h (f_val_print): Return void.
9002 * d-valprint.c (d_val_print): Return void.
9003 (dynamic_array_type): Update.
9004 * d-lang.h (d_val_print): Return void.
9005 * c-valprint.c (c_val_print): Return void.
9006 * c-lang.h (c_val_print): Return void.
9007 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9008 void.
9009 * ada-lang.h (ada_val_print): Return void.
9010
9011 2012-03-01 Tom Tromey <tromey@redhat.com>
9012
9013 * value.h (val_print): Return void.
9014 * valprint.c (val_print): Return void.
9015
9016 2012-03-01 Tom Tromey <tromey@redhat.com>
9017
9018 * value.h (common_val_print): Return void.
9019 * valprint.c (common_val_print): Return void.
9020
9021 2012-03-01 Tom Tromey <tromey@redhat.com>
9022
9023 * value.h (value_print): Return void.
9024 * valprint.c (value_print): Return void.
9025 * p-valprint.c (pascal_value_print): Return void.
9026 * p-lang.h (pascal_value_print): Return void.
9027 * language.h (struct language_defn) <la_value_print>: Return
9028 void.
9029 * language.c (unk_lang_value_print): Return void.
9030 * jv-valprint.c (java_value_print): Return void.
9031 * jv-lang.h (java_value_print): Return void.
9032 * f-valprint.c (c_value_print): Don't declare.
9033 Include c-lang.h.
9034 * c-valprint.c (c_value_print): Return void.
9035 * c-lang.h (c_value_print): Return void.
9036 * ada-valprint.c (ada_value_print): Return void.
9037 * ada-lang.h (ada_value_print): Return void.
9038
9039 2012-03-01 Tom Tromey <tromey@redhat.com>
9040
9041 * value.c (value_primitive_field): Handle virtual base classes.
9042
9043 2012-03-01 Tom Tromey <tromey@redhat.com>
9044
9045 * gdbtypes.h (struct vbase): Remove.
9046
9047 2012-03-01 Tom Tromey <tromey@redhat.com>
9048
9049 * c-valprint.c (print_function_pointer_address): Move...
9050 * valprint.c: ... here. Make non-static.
9051 * m2-valprint.c (print_function_pointer_address): Remove.
9052 * valprint.h (print_function_pointer_address): Declare.
9053
9054 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9055
9056 * NEWS: Document the fact that one can provide a condition when
9057 creating an Ada exception catchpoint.
9058
9059 2012-03-01 Tom Tromey <tromey@redhat.com>
9060
9061 * valprint.c (val_print_type_code_flags): Fix placement of
9062 trailing brace.
9063
9064 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9065
9066 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9067 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9068 environment variable before calling update-copyright.
9069
9070 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9071
9072 * gnulib/extra/update-copyright: Update to the latest from
9073 gnulib's git repository.
9074 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9075 variable to 2 instead of 1.
9076
9077 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9078
9079 * varobj.c (c_value_of_variable): Remove dead code.
9080
9081 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9082
9083 * ada-lex.p (processId): Do not modify already encoded IDs.
9084 Update function documentation.
9085
9086 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9087
9088 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9089 "name" with "struct symbol *name_sym".
9090 * ada-exp.y (write_var_or_type): Update call to
9091 ada_find_renaming_symbol.
9092 "name" with "struct symbol *name_sym". Adjust Implementation
9093 accordingly. Adjust the function documentation.
9094
9095 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9096
9097 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9098 * ada-lang.c (ada_find_any_type): Add advance declaration.
9099 Make static. Replace ada_find_any_symbol by
9100 ada_find_any_type_symbol.
9101 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9102 Improve function description. Make static.
9103 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9104 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9105
9106 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9107
9108 * ada-lang.c (struct tag_args): Delete.
9109 (ada_get_tsd_type): Function body moved up in source file.
9110 (ada_tag_name_1, ada_tag_name_2): Delete.
9111 (ada_get_tsd_from_tag): New function.
9112 (ada_tag_name_from_tsd): New function.
9113 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9114 to determine the tag name.
9115
9116 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9117
9118 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9119 declaration.
9120 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9121 function.
9122
9123 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9124
9125 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9126
9127 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9128
9129 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9130 full searches.
9131
9132 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9133
9134 * ada-lang.c (constrained_packed_array_type): If there is a
9135 parallel XA type, use it to determine the array index type.
9136
9137 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9138
9139 * ada-valprint.c (ada_val_print_1): If our value is a reference
9140 to an array descriptor, dereference it before converting it
9141 to a simple array.
9142
9143 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9144
9145 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9146 creating fixed value.
9147 (ada_value_ind, ada_coerce_ref, assign_component)
9148 (ada_evaluate_subexp): Remove call to unwrap_value before
9149 call to ada_to_fixed_value.
9150
9151 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9152
9153 * ada-lang.c (to_fixed_array_type): Set result's type name.
9154
9155 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9156
9157 * ada-lang.c (catch_ada_exception_command_split): Add new
9158 argument cond_string. Add support for condition at end of
9159 "catch exception" commands.
9160 (ada_decode_exception_location): Add new argument cond_string.
9161 Update call to catch_ada_exception_command_split.
9162 (create_ada_exception_catchpoint): Add new argument cond_string.
9163 Set the breakpoint condition if needed.
9164 (catch_ada_exception_command): Update call to
9165 ada_decode_exception_location.
9166 (ada_decode_assert_location): Add function documentation.
9167 Add support for condition at end of "catch assert" command.
9168 (catch_assert_command): Update calls to ada_decode_assert_location
9169 and create_ada_exception_catchpoint.
9170
9171 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9172
9173 Fix disp-step-syscall.exp: fork: single step over fork.
9174 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9175 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9176 comment, change parameters gdbarch and ptid to regcache. Remove
9177 parameter regcache, initialize gdbarch from regcache here.
9178 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9179 New functions.
9180 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9181 instead.
9182 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9183 'syscall'. Make the 'int' check more strict.
9184
9185 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9186
9187 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9188 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9189 (i386_linux_intx80_sysenter_syscall_record): ... here.
9190 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9191 Use the renamed function name.
9192
9193 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9196 * breakpoint.c (until_break_command): Likewise.
9197 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9198 * infcall.c (call_function_by_hand): Likewise.
9199 * infcmd.c (finish_forward): Likewise.
9200 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9201
9202 2012-02-28 Tristan Gingold <gingold@adacore.com>
9203
9204 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9205 avoid variable assignments inside condition.
9206
9207 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9208
9209 Fix static analysis issue found by cppcheck.
9210 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9211 uninitialized BUF for size 2.
9212
9213 2012-02-27 Chris Dearman <chris@mips.com>
9214 Nathan Froyd <froydnj@codesourcery.com>
9215 Maciej W. Rozycki <macro@codesourcery.com>
9216
9217 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9218 (mips16_instruction_has_delay_slot): Likewise.
9219 (mips_segment_boundary): Likewise.
9220 (mips_adjust_breakpoint_address): Likewise.
9221 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9222
9223 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9224 Maciej W. Rozycki <macro@codesourcery.com>
9225
9226 * infrun.c (handle_inferior_event): Don't proceed through
9227 shared library trampolines if stepping at the machine
9228 instruction level.
9229
9230 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9231
9232 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9233 too.
9234
9235 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9236
9237 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9238 (sh_stub_unwind_sniffer): New functions.
9239 (sh_stub_unwind): New variable.
9240 (sh_gdbarch_init): Wire everything.
9241
9242 2012-02-27 Pedro Alves <palves@redhat.com>
9243
9244 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9245 (linux_nat_post_attach_wait): Adjust to use
9246 linux_proc_pid_is_stopped.
9247 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9248 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9249 based on pid_is_stopped from both linux-nat.c and
9250 gdbserver/linux-low.c, and renamed.
9251
9252 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9253
9254 * remote.c (remote_watchpoint_addr_within_range): New function.
9255 (init_remote_ops): Use it.
9256
9257 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9258
9259 * target.h (target_watchpoint_addr_within_range): Document macro.
9260
9261 2012-02-24 Pedro Alves <palves@redhat.com>
9262
9263 * stack.c (set_last_displayed_sal): Issue internal_error instead
9264 of warning, and issue it after clearing the last displayed sal.
9265
9266 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9267 Pedro Alves <palves@redhat.com>
9268
9269 * breakpoint.c (until_break_command): Install breakpoints after
9270 all frame manipulations.
9271
9272 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9273
9274 * remote.c (remote_supports_cond_breakpoints): New forward
9275 declaration.
9276 (remote_add_target_side_condition): New function.
9277 (remote_insert_breakpoint): Add target-side breakpoint
9278 conditional if supported.
9279 (remote_insert_hw_breakpoint): Likewise.
9280 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9281 hook.
9282
9283 * target.c (update_current_target): Inherit
9284 to_supports_evaluation_of_breakpoint_conditions.
9285 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9286
9287 * target.h (struct target_ops)
9288 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9289 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9290
9291 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9292 (condition_evaluation_both, condition_evaluation_auto,
9293 condition_evaluation_host, condition_evaluation_target,
9294 condition_evaluation_enums, condition_evaluation_mode_1,
9295 condition_evaluation_mode): New static globals.
9296 (translate_condition_evaluation_mode): New function.
9297 (breakpoint_condition_evaluation_mode): New function.
9298 (gdb_evaluates_breakpoint_condition_p): New function.
9299 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9300 (mark_breakpoint_modified): New function.
9301 (mark_breakpoint_location_modified): New function.
9302 (set_condition_evaluation_mode): New function.
9303 (show_condition_evaluation_mode): New function.
9304 (bp_location_compare_addrs): New function.
9305 (get_first_location_gte_addr): New helper function.
9306 (set_breakpoint_condition): Free condition bytecode if locations
9307 has become unconditional. Call mark_breakpoint_modified (...).
9308 (condition_command): Call update_global_location_list (1) for
9309 breakpoints.
9310 (breakpoint_xfer_memory): Use is_breakpoint (...).
9311 (is_breakpoint): New function.
9312 (parse_cond_to_aexpr): New function.
9313 (build_target_condition_list): New function.
9314 (insert_bp_location): Handle target-side conditional
9315 breakpoints and call build_target_condition_list (...).
9316 (update_inserted_breakpoint_locations): New function.
9317 (insert_breakpoint_locations): Handle target-side conditional
9318 breakpoints.
9319 (bpstat_check_breakpoint_conditions): Add comment.
9320 (bp_condition_evaluator): New function.
9321 (bp_location_condition_evaluator): New function.
9322 (print_breakpoint_location): Print information on where the condition
9323 will be evaluated.
9324 (print_one_breakpoint_location): Likewise.
9325 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9326 breakpoint location.
9327 (force_breakpoint_reinsertion): New functions.
9328 (update_global_location_list): Handle target-side breakpoint
9329 conditions.
9330 Reinsert locations that are already inserted if conditions have
9331 changed.
9332 (bp_location_dtor): Free agent expression bytecode.
9333 (disable_breakpoint): Call mark_breakpoint_modified (...).
9334 Call update_global_location_list (...) with parameter 1 for breakpoints.
9335 (disable_command): Call mark_breakpoint_location_modified (...).
9336 Call update_global_location_list (...) with parameter 1 for breakpoints.
9337 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9338 (enable_command): mark_breakpoint_location_modified (...).
9339 (_initialize_breakpoint): Update documentation and add
9340 condition-evaluation breakpoint subcommand.
9341
9342 * breakpoint.h: Include ax.h.
9343 (condition_list): New data structure.
9344 (condition_status): New enum.
9345 (bp_target_info) <cond_list>: New field.
9346 (bp_location) <condition_changed, cond_bytecode>: New fields.
9347 (is_breakpoint): New prototype.
9348
9349 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9350
9351 * remote.c (remote_state) <cond_breakpoints>: New field.
9352 (PACKET_ConditionalBreakpoints): New enum.
9353 (remote_cond_breakpoint_feature): New function.
9354 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9355 (remote_supports_cond_breakpoints): New function.
9356 (_initialize_remote): Add new packet configuration for
9357 target-side conditional breakpoints.
9358
9359 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9360
9361 * NEWS: Mention target-side conditional breakpoint support,
9362 new condition-evaluation breakpoint subcommand and remote
9363 packet extensions.
9364
9365 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9366
9367 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9368 number.
9369
9370 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9371
9372 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9373 (after_prologue): Remove.
9374
9375 2012-02-23 Tom Tromey <tromey@redhat.com>
9376
9377 * jv-valprint.c (java_val_print): Remove dead code.
9378
9379 2012-02-23 Tristan Gingold <gingold@adacore.com>
9380
9381 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9382 known_tasks_element and known_tasks_length fields.
9383 (read_known_tasks_array): Change argument type. Use pointer type
9384 and number of elements from DATA. Adjust.
9385 (read_known_tasks_list): Likewise.
9386 (get_known_tasks_addr): Remove.
9387 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9388 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9389 type and array length. Merge former get_known_tasks_addr code.
9390
9391 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9392
9393 PR backtrace/13716
9394 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9395 it after set_momentary_breakpoint.
9396
9397 2012-02-22 Sterling Augustine <saugustine@google.com>
9398
9399 PR 13689:
9400 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9401
9402 2012-02-22 Gary Benson <gbenson@redhat.com>
9403
9404 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9405 (find_slot_in_mapped_hash): Likewise.
9406
9407 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 PR build/13638
9410 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9411 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9412 * configure: Regenerate.
9413
9414 2012-02-21 Tristan Gingold <gingold@adacore.com>
9415 Pedro Alves <palves@redhat.com>
9416
9417 * ia64-tdep.c: Do not include libunwind-ia64.h.
9418 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9419 Include libunwind-ia64.h instead of libunwind.h.
9420 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9421 for libunwind.h existence.
9422 * configure, config.in: Regenerate.
9423
9424 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9425
9426 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9427 instead of value_rtti_target_type.
9428 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9429 instead of value_rtti_target_type.
9430 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9431 value_rtti_target_type.
9432 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9433 (value_rtti_target_type): Rename to ...
9434 (value_rtti_indirect_type): ... here and make it indirect. Update
9435 function comment.
9436 * value.c (readjust_indirect_value_type): New function.
9437 (coerce_ref): Support for enclosing type setting for references
9438 with readjust_indirect_value_type.
9439 * value.h (readjust_value_type): New declaration.
9440 (value_rtti_target_type): Rename to ...
9441 (value_rtti_indirect_type): ... here.
9442
9443 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9444
9445 * MAINTAINERS (Write After Approval): Add myself to the list.
9446
9447 2012-02-20 Doug Evans <dje@google.com>
9448
9449 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9450 Rename objfile_p_char parameter to objfilep.
9451 (build_objfile_section_table): Result is now void. All callers
9452 updated.
9453 * objfiles.h (struct objfile): Tweak comments, whitespace.
9454 (build_objfile_section_table): Update.
9455
9456 * elfread.c (elf_symfile_segments): Fix warning text.
9457
9458 2012-02-20 Tom Tromey <tromey@redhat.com>
9459
9460 PR gdb/13498:
9461 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9462 particular set of file names once.
9463 (dw2_map_symbol_filenames): Likewise.
9464
9465 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9466
9467 Code cleanup.
9468 * main.c (write_files): Remove the declaration.
9469 (external_editor_command): Move the declaration ...
9470 [GDBTK] (external_editor_command): ... here. Fix the comment.
9471
9472 2012-02-20 Tom Tromey <tromey@redhat.com>
9473
9474 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9475 extraneous block.
9476
9477 2012-02-20 Tristan Gingold <gingold@adacore.com>
9478
9479 * darwin-nat.h (enum darwin_msg_state): Add comments.
9480
9481 2012-02-20 Tristan Gingold <gingold@adacore.com>
9482
9483 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9484 value.
9485
9486 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9487
9488 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9489 between function description and implementation.
9490
9491 2012-02-17 Tom Tromey <tromey@redhat.com>
9492
9493 PR python/12070:
9494 * python/py-event.c (event_object_getset): New global.
9495 (event_object_type): Reference it.
9496 * python/py-type.c (field_object_getset): New global.
9497 (field_object_type): Reference it.
9498 * python/python-internal.h (gdb_py_generic_dict): Declare.
9499 * python/py-utils.c (gdb_py_generic_dict): New function.
9500
9501 2012-02-17 Tristan Gingold <gingold@adacore.com>
9502
9503 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9504
9505 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9506
9507 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9508 TYPE_CALLING_CONVENTION annotation.
9509
9510 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9511
9512 * MAINTAINERS: Add rx to target ISA section.
9513 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9514 (ALLDEPFILES): Add rx-tdep.c.
9515
9516 2012-02-16 Tom Tromey <tromey@redhat.com>
9517
9518 * symfile.c (symbol_file_add_main_1): Use inferior's
9519 symfile_flags.
9520 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9521 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9522 inferior.
9523 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9524 inferior.
9525 (follow_exec): Use inferior's symfile_flags.
9526 * inferior.h (struct inferior) <symfile_flags>: New field.
9527
9528 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9529
9530 PR gdb/9734:
9531 * remote-sim.c (gdbsim_create_inferior): Call error() when
9532 sim_create_inferior() fails.
9533
9534 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9535
9536 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9537
9538 2012-02-16 Tom Tromey <tromey@redhat.com>
9539
9540 PR c++/13653:
9541 * thread.c (struct current_thread_cleanup) <was_removable>: New
9542 field.
9543 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9544 (make_cleanup_restore_current_thread): Initialize new field.
9545
9546 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9547
9548 * MAINTAINERS: Add rl78 to target ISA section.
9549 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9550 (ALLDEPFILES): Add rl78-tdep.c.
9551 * NEWS: Mention rl78 as a new target.
9552
9553 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9554
9555 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9556 data.
9557 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9558
9559 2012-02-15 Tom Tromey <tromey@redhat.com>
9560
9561 PR gdb/12659:
9562 * infcmd.c (registers_info): Print just the current register's
9563 name.
9564
9565 2012-02-15 Tom Tromey <tromey@redhat.com>
9566
9567 * python/py-symbol.c (sympy_value): Use _().
9568
9569 2012-02-15 Pedro Alves <palves@redhat.com>
9570
9571 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9572 output to be like native targets'.
9573 (remote_pid_to_str): Special case the null ptid.
9574
9575 2012-02-14 Stan Shebs <stan@codesourcery.com>
9576
9577 * NEWS: Mention enable count command.
9578 * breakpoint.h (struct breakpoint): New field enable_count.
9579 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9580 (enable_breakpoint): Add arg to call.
9581 (struct disp_data): New struct.
9582 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9583 (do_map_enable_once_breakpoint): Create a struct and pass it.
9584 (do_map_enable_delete_breakpoint): Ditto.
9585 (do_map_enable_count_breakpoint): New function.
9586 (enable_count_command): New function.
9587 (bpstat_stop_status): Decrement enable_count.
9588 (print_one_breakpoint_location): Report enable count.
9589 (_initialize_breakpoint): Add enable count command.
9590
9591 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9592
9593 * rl78-tdep.c (reggroups.h): Include.
9594 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9595 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9596 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9597 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9598 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9599 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9600 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9601 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9602 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9603 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9604 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9605 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9606 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9607 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9608 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9609 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9610 beginning of register list.
9611 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9612 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9613 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9614 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9615 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9616 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9617 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9618 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9619 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9620 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9621 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9622 the pseudo registers. Rearrange other pseudo registers too so
9623 that the bank registers appear at the end.
9624 (rl78_register_type): Account for the fact that the byte sized
9625 bank registers are now pseudo-registers.
9626 (rl78_register_name): Rearrange the register name array. Make
9627 initial set of raw banked registers inaccessible.
9628 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9629 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9630 case for copying bytes back and forth between raw and pseudo
9631 versions of the banked registers. Update other cases to reflect
9632 the changed names.
9633 (rl78_return_value): Update to account for changed names of
9634 raw registers.
9635 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9636 rl78_register_sim_regno().
9637
9638 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9639
9640 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9641 the name parameter being passed to find_pc_partial_function().
9642
9643 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9644
9645 * MAINTAINERS: Step down from being ia64 target maintainer.
9646
9647 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9648
9649 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9650 compilation warning.
9651
9652 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 Fix crash on loaded shlibs without loaded exec_bfd.
9655 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9656 (set_section_command): Replace exec_bfd by p->bfd.
9657
9658 2012-02-10 Tom Tromey <tromey@redhat.com>
9659
9660 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9661 when we have a C++ qualified name.
9662
9663 2012-02-10 Pedro Alves <palves@redhat.com>
9664
9665 * inferior.c (inferior_pid_to_str): New.
9666 (print_inferior, inferior_command): Use it.
9667
9668 2012-02-10 Pedro Alves <palves@redhat.com>
9669
9670 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9671 the test CFLAGS.
9672 * configure: Regenerate.
9673
9674 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9675
9676 * linespec.c (decode_line_internal): Fix comment correctness.
9677
9678 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9679
9680 PR gdb/12953
9681 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9682 * amd64bsd-nat.c: Add support for debug registers (adapted from
9683 i386bsd-nat.c).
9684 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9685 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9686 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9687 (amd64bsd_dr_get_control): New functions.
9688 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9689 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9690 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9691 watchpoints initialization.
9692 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9693
9694 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9695
9696 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9697 flds_bnds.fields.
9698 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9699
9700 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9703
9704 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9705
9706 * language.h (symbol_name_cmp_ftype): Renames
9707 symbol_name_match_p_ftype.
9708 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9709 la_get_symbol_name_match_p.
9710 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9711 ada_get_symbol_name_match_p. Update comment.
9712 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9713 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9714 Renames symbol_name_match_p. Update field type.
9715 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9716 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9717 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9718 "la_get_symbol_name_cmp" in comments.
9719 * language.c: Likewise.
9720
9721 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9722
9723 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9724 %eflags offset.
9725 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9726 (amd64_sol2_gregset32_reg_offs): Likewise.
9727
9728 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9729
9730 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9731 of the returned BFD is allocated by GDB.
9732
9733 2012-02-07 Tom Tromey <tromey@redhat.com>
9734
9735 PR python/12027:
9736 * python/python-internal.h (frame_object_type): Declare.
9737 * python/py-symbol.c (sympy_needs_frame): New function.
9738 (sympy_value): New function.
9739 (symbol_object_getset): Add "needs_frame".
9740 (symbol_object_methods): Add "value".
9741 * python/py-frame.c (frame_object_type): No longer static.
9742
9743 2012-02-07 Tom Tromey <tromey@redhat.com>
9744
9745 PR python/13599:
9746 * python/py-symbol.c (sympy_line): New function.
9747 (symbol_object_getset): Add "line".
9748
9749 2012-02-07 Tom Tromey <tromey@redhat.com>
9750
9751 * charset.c (find_charset_names): Check 'in' against NULL.
9752
9753 2012-02-06 Doug Evans <dje@google.com>
9754
9755 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9756 and fields.name members from char * to const char *. All uses updated.
9757 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9758 from char * to const char *. All uses updated.
9759 (type_name_no_tag): Update.
9760 (lookup_unsigned_typename, lookup_signed_typename): Update.
9761 * gdbtypes.c (type_name_no_tag): Change result type
9762 from char * to const char *. All callers updated.
9763 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9764 name parameter from char * to const char *.
9765 * symtab.h (struct cplus_specific): Change type of demangled_name
9766 member from char * to const char *. All uses updated.
9767 (struct general_symbol_info): Change type of name and
9768 mangled_lang.demangled_name members from char * to const char *.
9769 All uses updated.
9770 (symbol_get_demangled_name, symbol_natural_name): Update.
9771 (symbol_demangled_name, symbol_search_name): Update.
9772 * symtab.c (symbol_get_demangled_name): Change result type
9773 from char * to const char *. All callers updated.
9774 (symbol_natural_name, symbol_demangled_name): Ditto.
9775 (symbol_search_name): Ditto.
9776 (completion_list_add_name): Change type of symname,sym_text,
9777 text,word parameters from char * to const char *.
9778 (completion_list_objc_symbol): Change type of sym_text,
9779 text,word parameters from char * to const char *.
9780 * ada-lang.c (find_struct_field): Change type of name parameter
9781 from char * to const char *.
9782 (encoded_ordered_before): Similarly for N0,N1 parameters.
9783 (old_renaming_is_invisible): Similarly for function_name parameter.
9784 (ada_type_name): Change result type from char * to const char *.
9785 All callers updated.
9786 * ada-lang.h (ada_type_name): Update.
9787 * buildsym.c (hashname): Change type of name parameter
9788 from char * to const char *.
9789 * buildsym.h (hashname): Update.
9790 * dbxread.c (end_psymtab): Change type of include_list parameter
9791 from char ** to const char **.
9792 * dwarf2read.c (determine_prefix): Change result type
9793 from char * to const char *. All callers updated.
9794 * f-lang.c (find_common_for_function): Change type of name, funcname
9795 parameters from char * to const char *.
9796 * f-lang.c (find_common_for_function): Update.
9797 * f-valprint.c (list_all_visible_commons): Change type of funcname
9798 parameters from char * to const char *.
9799 * gdbarch.sh (static_transform_name): Change type of name parameter
9800 and result from char * to const char *.
9801 * gdbarch.c: Regenerate.
9802 * gdbarch.h: Regenerate.
9803 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9804 of name parameter from char * to const char *.
9805 * jv-lang.c (java_primitive_type_from_name): Ditto.
9806 (java_demangled_signature_length): Similarly for signature parameter.
9807 (java_demangled_signature_copy): Ditto.
9808 (java_demangle_type_signature): Ditto.
9809 * jv-lang.h (java_primitive_type_from_name): Update.
9810 (java_demangle_type_signature): Update.
9811 * objc-lang.c (specialcmp): Change type of a,b parameters
9812 from char * to const char *.
9813 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9814 from char * to const char *. All callers updated.
9815 * p-lang.h (is_pascal_string_type): Update.
9816 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9817 of name parameter from char * to const char *.
9818 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9819 * utils.c (fprintf_symbol_filtered): Ditto.
9820 * defs.h (fprintf_symbol_filtered): Update.
9821 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9822 * stabsread.h (end_psymtab): Update.
9823 * stack.c (find_frame_funname): Change type of funname parameter
9824 from char ** to const char **.
9825 * stack.h (find_frame_funname): Update.
9826 * typeprint.c (type_print): Change type of varstring parameter
9827 from char * to const char *.
9828 * value.h (type_print): Update.
9829 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9830 from char * to const char *. All callers updated.
9831 (xcoff_end_psymtab): Change type of include_list parameter
9832 from char ** to const char **. All callers updated.
9833 (swap_sym): Similarly for name parameter. All callers updated.
9834 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9835 Use xstrdup.
9836 (process_coff_symbol): Use xstrdup.
9837 * stabsread.c (stabs_method_name_from_physname): Renamed from
9838 update_method_name_from_physname. Change result type from void
9839 to char *. All callers updated.
9840 (read_member_functions): In has_destructor case, store name in objfile
9841 obstack instead of malloc space. In !has_stub case, fix mem leak.
9842
9843 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9844
9845 * configure: Rebuild.
9846 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9847 LDFLAGS.
9848
9849 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9850
9851 * configure.tgt (rl78-*-elf): New target.
9852 * rl78-tdep.c: New file.
9853
9854 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9855
9856 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9857 and continue the loop. Add QUIT statement.
9858
9859 2012-02-03 Tom Tromey <tromey@redhat.com>
9860
9861 PR gdb/13596:
9862 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9863 bfd_lookup_symbol_from_symtab.
9864 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9865 gdb_bfd_lookup_symbol_from_symtab.
9866
9867 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9868
9869 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9870 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9871 symbol. Add assertion that sym2 is never NULL.
9872
9873 2012-02-02 Doug Evans <dje@google.com>
9874
9875 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9876 "name" parameter to const char ** from char **. All callers updated.
9877 (find_pc_partial_function): Ditto.
9878 (cache_pc_function_name): Change type to const char * from char *.
9879 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9880 (find_pc_partial_function): Update.
9881 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9882 type of "name" parameter to const char * from char *.
9883 All uses updated.
9884 * arch-utils.c (generic_in_solib_return_trampoline): Change
9885 type of "name" parameter to const char * from char *.
9886 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9887 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9888 type of "name" parameter to const char * from char *.
9889 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9890 * gdbarch.c: Regenerate.
9891 * gdbarch.h: Regenerate.
9892 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9893 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9894 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9895 type of "name" parameter to const char * from char *.
9896 * skip.c (skip_function_pc): Ditto.
9897 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9898 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9899 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9900 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9901 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9902 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9903 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9904 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9905 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9906
9907 2012-02-02 Pedro Alves <palves@redhat.com>
9908
9909 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9910 the current inferior has no execution. Make sure the current
9911 remote process matches gdb's current inferior.
9912
9913 2012-02-02 Tom Tromey <tromey@redhat.com>
9914
9915 PR gdb/13405:
9916 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9917 read-only memory.
9918
9919 2012-02-02 Tom Tromey <tromey@redhat.com>
9920
9921 PR gdb/9307:
9922 * symtab.c (lookup_language_this): Set block_found.
9923
9924 2012-02-01 Tom Tromey <tromey@redhat.com>
9925
9926 PR gdb/13431:
9927 * jit.c (struct jit_inferior_data): Rewrite.
9928 (struct jit_objfile_data): New.
9929 (get_jit_objfile_data): New function.
9930 (add_objfile_entry): Update.
9931 (jit_read_descriptor): Return int. Replace descriptor_addr
9932 argument with inf_data. Update. Don't call error.
9933 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9934 descriptor here.
9935 (jit_inferior_init): Don't look up descriptor. Don't call error.
9936 (jit_reset_inferior_data_and_breakpoints)
9937 (jit_inferior_created_observer): Remove.
9938 (jit_inferior_exit_hook): Update.
9939 (jit_executable_changed_observer): Remove.
9940 (jit_event_handler): Update.
9941 (free_objfile_data): Reset inferior data if needed.
9942 (_initialize_jit): Update.
9943
9944 2012-02-01 Tom Tromey <tromey@redhat.com>
9945
9946 * jit.c (bfd_open_from_target_memory): Move higher in file.
9947
9948 2012-02-01 Tristan Gingold <gingold@adacore.com>
9949
9950 * libunwind-frame.c (libunwind_load): Display message if dlopen
9951 failed.
9952
9953 2012-02-01 Gary Benson <gbenson@redhat.com>
9954
9955 * symtab.h (symbol_found_callback_ftype): New typedef.
9956 (iterate_over_symbols): Use the above.
9957 * symtab.c (iterate_over_symbols): Likewise.
9958 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9959 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9960 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9961 (iterate_name_matcher): Document return values.
9962 (collect_one_symbol): Likewise.
9963 (collect_function_symbols): Likewise.
9964 (collect_symbols): Likewise.
9965
9966 2012-02-01 Tom Tromey <tromey@redhat.com>
9967
9968 * ada-lang.c (resolve_subexp): Update.
9969 (ada_lookup_symbol_list): Add 'full_search' argument.
9970 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9971 ada_lookup_symbol_list.
9972 (ada_lookup_encoded_symbol): Update.
9973 (get_var_value): Update.
9974 * ada-exp.y (block_lookup): Update.
9975 (write_var_or_type): Update.
9976 (write_name_assoc): Update.
9977 * ada-lang.h (ada_lookup_symbol_list): Update.
9978
9979 2012-01-31 Tom Tromey <tromey@redhat.com>
9980
9981 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9982 comment.
9983
9984 2012-01-31 Doug Evans <dje@google.com>
9985
9986 * symtab.h: Remove outdated comment.
9987 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9988
9989 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9990
9991 Fix build error in Darwin port.
9992 * i386-darwin-nat.c: Include i386-nat.h.
9993
9994 2012-01-30 Tom Tromey <tromey@redhat.com>
9995
9996 PR breakpoints/13568:
9997 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9998 argument. Check for recursive includes.
9999 (dwarf_decode_macros): Create an include hash.
10000
10001 2012-01-30 Michael Eager <eager@eagercon.com>
10002
10003 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10004 * ppc-linux-tdep.c: Include glibc-tdep.h.
10005 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10006 (powerpc_linux_in_plt_stub): New function.
10007 (powerpc_linux_in_dynsym_resolve_code): New function.
10008 (ppc_skip_trampoline_code): New function.
10009 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10010 Use glibc_skip_solib_resolver.
10011
10012 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 Code cleanup: Make 1440 bytes of data segment read-only.
10015 * arch-utils.c (endian_enum): Make it const char *const [].
10016 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10017 Likewise.
10018 * breakpoint.c (always_inserted_enums): Likewise.
10019 * cli/cli-cmds.c (script_ext_enums): Likewise.
10020 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10021 enumlist parameter const char *const *.
10022 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10023 const char *const *.
10024 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10025 parameter const char *const *.
10026 * cris-tdep.c (cris_modes): Make it const char *const [].
10027 * filesystem.c (target_file_system_kinds): Likewise.
10028 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10029 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10030 (can_use_displaced_stepping_enum, scheduler_enums)
10031 (exec_direction_names): Likewise.
10032 * language.c (_initialize_language): Make the type_or_range_names and
10033 case_sensitive_names variables const char *const [].
10034 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10035 * python/python.c (python_excp_enums): Likewise.
10036 * remote.c (interrupt_sequence_modes): Likewise.
10037 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10038 * serial.c (logbase_enums): Likewise.
10039 * sh-tdep.c (sh_cc_enum): Likewise.
10040 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10041 Likewise.
10042 * symtab.c (multiple_symbols_modes): Likewise.
10043 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10044 Likewise.
10045 * utils.c (internal_problem_modes): Likewise.
10046
10047 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10048
10049 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10050 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10051 result.
10052
10053 2012-01-27 Doug Evans <dje@google.com>
10054
10055 * configure.ac (with_python): Fix absolute path handling for win32.
10056 * configure: Regenerate.
10057
10058 2012-01-26 Doug Evans <dje@google.com>
10059
10060 * symtab.c: Whitespace cleanup, no code changes.
10061
10062 * symtab.c (lookup_symbol_in_language): Improve comment.
10063 (lookup_symbol_aux): Fix comment.
10064
10065 * psymtab.c (add_psymbol_to_list): Result is now "void".
10066 * psympriv.h (add_psymbol_to_list): Update.
10067
10068 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10069
10070 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10071
10072 Do not open script filenames twice.
10073 * cli/cli-cmds.c (source_script_from_stream): Pass to
10074 source_python_script also STREAM.
10075 * python/py-auto-load.c (source_section_scripts): Pass to
10076 source_python_script_for_objfile also STREAM.
10077 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10078 also INPUT.
10079 * python/python-internal.h (source_python_script_for_objfile): New
10080 parameter file, rename parameter file to filename.
10081 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10082 instead if !_WIN32. Update the function comment.
10083 (source_python_script, source_python_script_for_objfile)
10084 (source_python_script): New parameter file, rename parameter file to
10085 filename. Pass FILENAME to python_run_simple_file.
10086 * python/python.h (source_python_script): New parameter file, rename
10087 parameter file to filename.
10088
10089 2012-01-26 Pedro Alves <palves@redhat.com>
10090
10091 * corelow.c (core_has_fake_pid): Delete.
10092 (core_close): Delete references to `core_has_fake_pid'.
10093 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10094 (core_open): Delete references to `core_has_fake_pid'.
10095 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10096 the removed global.
10097
10098 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10099
10100 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10101 Remove language parameter from name_matcher. Adjust the comment.
10102 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10103 Remove language parameter.
10104 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10105 * linespec.c (iterate_name_matcher): Likewise.
10106 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10107 name_matcher. Adjust call accordingly.
10108 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10109 (maintenance_check_symtabs): Adjust type of parameter "fun".
10110 * psymtab.h (maintenance_check_symtabs): Likewise.
10111
10112 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10113
10114 * language.h (symbol_name_match_p_ftype): New typedef.
10115 (struct language_defn): Replace field la_symbol_name_compare
10116 by la_get_symbol_name_match_p.
10117 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10118 (ada_language_defn): Use it.
10119 * linespec.c (struct symbol_matcher_data): New type.
10120 (iterate_name_matcher): Rewrite.
10121 (iterate_over_all_matching_symtabs): Pass a pointer to
10122 a symbol_matcher_data struct to expand_symtabs_matching
10123 instead of just the lookup name.
10124 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10125 opencl-lang.c, p-lang.c, language.c: Delete field
10126 la_symbol_name_compare, and replace by NULL for new field
10127 la_get_symbol_name_match_p.
10128 * symfile.h (struct quick_symbol_functions): Update comment.
10129
10130 2012-01-25 Tom Tromey <tromey@redhat.com>
10131
10132 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10133 dereferencing.
10134
10135 2012-01-24 Tom Tromey <tromey@redhat.com>
10136
10137 PR symtab/12406:
10138 * solib.c (update_solib_list): Update the program space's
10139 added_solibs and deleted_solibs fields.
10140 * progspace.h (struct program_space) <added_solibs,
10141 deleted_solibs>: New fields.
10142 (clear_program_space_solib_cache): Declare.
10143 * progspace.c (release_program_space): Call
10144 clear_program_space_solib_cache.
10145 (clear_program_space_solib_cache): New function.
10146 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10147 bpstat_stop_status. Use handle_solib_event.
10148 * breakpoint.c: Include gdb_regex.h.
10149 (print_solib_event): New function.
10150 (bpstat_print): Use print_solib_event.
10151 (bpstat_stop_status): Add special case for bp_shlib_event.
10152 (handle_solib_event): New function.
10153 (bpstat_what): Use handle_solib_event.
10154 (struct solib_catchpoint): New.
10155 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10156 (breakpoint_hit_catch_solib, check_status_catch_solib)
10157 (print_it_catch_solib, print_one_catch_solib)
10158 (print_mention_catch_solib, print_recreate_catch_solib): New
10159 functions.
10160 (catch_solib_breakpoint_ops): New global.
10161 (catch_load_or_unload, catch_load_command_1)
10162 (catch_unload_command_1): New functions.
10163 (internal_bkpt_check_status): Add special case for
10164 bp_shlib_event.
10165 (internal_bkpt_print_it): Use print_solib_event.
10166 (initialize_breakpoint_ops): Initialize
10167 catch_solib_breakpoint_ops.
10168 (_initialize_breakpoint): Register "catch load" and "catch
10169 unload".
10170 * breakpoint.h (handle_solib_event): Declare.
10171 * NEWS: Add entry for "catch load" and "catch unload".
10172
10173 2012-01-24 Tom Tromey <tromey@redhat.com>
10174
10175 * ada-lang.c: Include gdb_vecs.h.
10176 * charset.c: Include gdb_vecs.h.
10177 * tracepoint.h: Include gdb_vecs.h.
10178 * gdb_vecs.h: New file.
10179
10180 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10181
10182 * breakpoint.c (breakpoint_hit_catch_fork)
10183 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10184 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10185 * infrun.c (inferior_has_forked, inferior_has_vforked)
10186 (inferior_has_execd, inferior_has_called_syscall): Delete.
10187 (handle_syscall_event): Get syscall_number from the execution
10188 control state's wait status.
10189 (wait_for_inferior): Don't clear syscall_number.
10190
10191 2012-01-24 Pedro Alves <palves@redhat.com>
10192
10193 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10194 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10195 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10196 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10197 `ws' parameter.
10198 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10199 false for events other than TARGET_SIGNAL_TRAP.
10200 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10201 Add `ws' parameter.
10202 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10203 events other than TARGET_SIGNAL_TRAP.
10204 (tracepoint_breakpoint_hit): Add `ws' parameter.
10205 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10206 parameter.
10207 (bpstat_stop_status): Same.
10208 (pc_at_non_inline_function): Same.
10209 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10210 to pass the current event's waitstatus to bpstat_stop_status
10211 and pc_at_non_inline_function.
10212
10213 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10214
10215 Code cleanup.
10216 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10217 Update the function comment for it.
10218 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10219 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10220 for STREAM.
10221
10222 2012-01-24 Pedro Alves <palves@redhat.com>
10223
10224 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10225 outside `bs->stop' block.
10226 (bpstat_what): Rework bp_shlib_event handling.
10227 (internal_bkpt_check_status): If the breakpoint is a
10228 bp_shlib_event, then set bs->stop and bs->print if
10229 stop_on_solib_events is set.
10230
10231 2012-01-24 Gary Benson <gbenson@redhat.com>
10232
10233 Delete #if 0'd out code.
10234 * stack.c (print_frame_label_vars): Remove.
10235 (catch_info): Likewise.
10236 (_initialize_stack): Remove "info catch" command.
10237 * NEWS: Mention the above.
10238
10239 2012-01-24 Pedro Alves <palves@redhat.com>
10240
10241 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10242 it.
10243 (remote_notice_new_inferior): If the remote end doesn't support
10244 the multiprocess extensions, then the PID is fake.
10245 (add_current_inferior_and_thread): New.
10246 (remote_start_remote): Use it.
10247 (extended_remote_attach_1): Adjust.
10248 (extended_remote_create_inferior_1): Use
10249 add_current_inferior_and_thread.
10250
10251 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10252
10253 Fix watchpoints to be specific for each inferior.
10254 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10255 current_program_space.
10256 * i386-nat.c (i386_inferior_data_cleanup): New.
10257 (i386_inferior_data_get): Replace variable inf_data_local by an
10258 inferior_data call.
10259 (i386_use_watchpoints): Initialize i386_inferior_data.
10260 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10261 specific iterate_over_lwps.
10262
10263 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10264
10265 Fix watchpoints across inferior fork.
10266 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10267 comment for linux_nat_iterate_watchpoint_lwps.
10268 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10269 linux_nat_iterate_watchpoint_lwps.
10270 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10271 * i386-linux-nat.c (update_debug_registers_callback): Update the
10272 comment for linux_nat_iterate_watchpoint_lwps.
10273 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10274 linux_nat_iterate_watchpoint_lwps.
10275 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10276 * i386-nat.c: Include inferior.h.
10277 (dr_mirror): Remove.
10278 (i386_inferior_data, struct i386_inferior_data)
10279 (i386_inferior_data_get): New.
10280 (i386_debug_reg_state): Use i386_inferior_data_get.
10281 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10282 (i386_insert_watchpoint, i386_remove_watchpoint)
10283 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10284 (i386_remove_hw_breakpoint): New variable state, use
10285 i386_debug_reg_state instead of DR_MIRROR.
10286 * linux-nat.c (delete_lwp): New declaration.
10287 (num_lwps): Move here from downwards.
10288 (delete_lwp_cleanup): New.
10289 (linux_child_follow_fork): Create new child_lp, call
10290 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10291 PTRACE_DETACH.
10292 (num_lwps): Move upwards.
10293 (linux_nat_iterate_watchpoint_lwps): New.
10294 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10295 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10296
10297 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10298
10299 GDB 7.4 released.
10300
10301 2012-01-23 Pedro Alves <palves@redhat.com>
10302
10303 * top.c (caution): Rename to ...
10304 (confirm): ... this.
10305 (show_caution): Rename to ...
10306 (show_confirm): ... this.
10307 (quit_cover): Adjust.
10308 (init_main): Adjust.
10309 * top.h (caution): Rename to ...
10310 (confirm): ... this.
10311 * utils.c (internal_vproblem, defaulted_query): Adjust.
10312
10313 2012-01-23 Pedro Alves <palves@redhat.com>
10314
10315 * top.c (caution): Update comment.
10316 (execute_command): Don't consider the current value of `caution'.
10317
10318 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10319
10320 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10321
10322 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10323
10324 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10325 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10326 * target.c (target_fileio_pwrite): Remove buffer address from
10327 debug output.
10328 (target_fileio_pread): Likewise.
10329
10330 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10331
10332 * NEWS: Document remote "info proc" and "generate-core-file".
10333
10334 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10335
10336 * gdbarch.sh (find_memory_regions): New callback.
10337 * gdbarch.c, gdbarch.h: Regenerate.
10338
10339 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10340 callback before falling back to target method.
10341
10342 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10343 (linux_target_install_ops): No longer install it.
10344
10345 * linux-tdep.c (linux_find_memory_regions): New function.
10346 (linux_init_abi): Install it.
10347
10348 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10349
10350 * gdbarch.sh (make_corefile_notes): New architecture callback.
10351 * gdbarch.c: Regenerate.
10352 * gdbarch.h: Likewise.
10353
10354 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10355 before target_make_corefile_notes. If NULL is returned, the
10356 target does not support core file generation.
10357
10358 * linux-nat.c: Include "linux-tdep.h".
10359 (find_signalled_thread, find_stop_signal): Remove.
10360 (linux_nat_do_thread_registers): Likewise.
10361 (struct linux_nat_corefile_thread_data): Likewise.
10362 (linux_nat_corefile_thread_callback): Likewise.
10363 (iterate_over_spus): Likewise.
10364 (struct linux_spu_corefile_data): Likewise.
10365 (linux_spu_corefile_callback): Likewise.
10366 (linux_spu_make_corefile_notes): Likewise.
10367 (linux_nat_collect_thread_registers): New function.
10368 (linux_nat_make_corefile_notes): Replace contents by call to
10369 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10370 as native-only callback.
10371
10372 * linux-tdep.h: Include "bfd.h".
10373 (struct regcache): Add forward declaration.
10374 (linux_collect_thread_registers_ftype): New typedef.
10375 (linux_make_corefile_notes): Add prototype.
10376 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10377 "regset.h", and "elf-bfd.h".
10378 (find_signalled_thread, find_stop_signal): New functions.
10379 (linux_spu_make_corefile_notes): Likewise.
10380 (linux_collect_thread_registers): Likewise.
10381 (struct linux_corefile_thread_data): New data structure.
10382 (linux_corefile_thread_callback): New funcion.
10383 (linux_make_corefile_notes): Likewise.
10384 (linux_make_corefile_notes_1): Likewise.
10385 (linux_init_abi): Install it.
10386
10387 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10388
10389 * gdbarch.sh (info_proc): New callback.
10390 * gdbarch.c, gdbarch.h: Regenerate.
10391
10392 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10393 before falling back to the target info_proc callback.
10394
10395 * linux-nat.c: Do not include "cli/cli-utils.h".
10396 (linux_nat_info_proc): Remove.
10397 (linux_target_install_ops): No longer install it.
10398
10399 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10400 (read_mapping): New function.
10401 (linux_info_proc): Likewise.
10402 (linux_init_abi): Install it.
10403
10404 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10405
10406 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10407 * infcmd.c: (info_proc_cmd_1): New function.
10408 (info_proc_cmd): New function, moved here from equivalent routine
10409 orignally in linux-nat.c.
10410 (info_proc_cmd_mappings): Likewise.
10411 (info_proc_cmd_stat): Likewise.
10412 (info_proc_cmd_status): Likewise.
10413 (info_proc_cmd_cwd): Likewise.
10414 (info_proc_cmd_cmdline): Likewise.
10415 (info_proc_cmd_exe): Likewise.
10416 (info_proc_cmd_all): Likewise.
10417 (_initialize_infcmd): Install "info proc" command and subcommands.
10418
10419 * target.h (struct target_ops): Add to_info_proc.
10420 (target_info_proc): Add prototype.
10421 * target.c (target_info_proc): New function.
10422
10423 * procfs.c (procfs_info_proc): Add prototype.
10424 (info_proc_cmd): Rename into ...
10425 (procfs_info_proc): ... this. Update argument types as appropriate
10426 for a to_info_proc implementation. Handle "what" argument.
10427 (procfs_target): Install procfs_info_proc.
10428 (_initialize_procfs): No longer install "info proc" command.
10429
10430 * linux-nat.c: (enum info_proc_what): Remove.
10431 (linux_nat_info_proc_cmd_1): Rename into ...
10432 (linux_nat_info_proc): ... this. Update argument types as appropriate
10433 for a to_info_proc implementation.
10434 (linux_nat_info_proc_cmd): Remove.
10435 (linux_nat_info_proc_cmd_mappings): Likewise.
10436 (linux_nat_info_proc_cmd_stat): Likewise.
10437 (linux_nat_info_proc_cmd_status): Likewise.
10438 (linux_nat_info_proc_cmd_cwd): Likewise.
10439 (linux_nat_info_proc_cmd_cmdline): Likewise.
10440 (linux_nat_info_proc_cmd_exe): Likewise.
10441 (linux_nat_info_proc_cmd_all): Likewise.
10442 (linux_target_install_ops): Install linux_nat_info_proc.
10443 (_initialize_linux_nat): No longer install "info proc" command
10444 and subcommands.
10445
10446 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10447
10448 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10449 * config.in, configure: Regenerate.
10450
10451 * target.h (struct target_ops): Add to_fileio_readlink.
10452 (target_fileio_readlink): Add prototype.
10453 * target.c (target_fileio_readlink): New function.
10454
10455 * inf-child.c: Conditionally include <sys/param.h>.
10456 (inf_child_fileio_readlink): New function.
10457 (inf_child_target): Install it.
10458
10459 * remote.c (PACKET_vFile_readlink): New enum value.
10460 (remote_hostio_readlink): New function.
10461 (init_remote_ops): Install it.
10462 (_initialize_remote): Handle vFile:readlink packet type.
10463
10464 2012-01-20 Pedro Alves <palves@redhat.com>
10465 Ulrich Weigand <ulrich.weigand@linaro.org>
10466
10467 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10468 * config.in, configure: Regenerate.
10469
10470 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10471 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10472 (target_fileio_open): Add prototype.
10473 (target_fileio_pwrite): Likewise.
10474 (target_fileio_pread): Likewise.
10475 (target_fileio_close): Likewise.
10476 (target_fileio_unlink): Likewise.
10477 (target_fileio_read_alloc): Likewise.
10478 (target_fileio_read_stralloc): Likewise.
10479
10480 * target.c: Include "gdb/fileio.h".
10481 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10482 (default_fileio_target): New function.
10483 (target_fileio_open): Likewise.
10484 (target_fileio_pwrite): Likewise.
10485 (target_fileio_pread): Likewise.
10486 (target_fileio_close): Likewise.
10487 (target_fileio_unlink): Likewise.
10488 (target_fileio_close_cleanup): Likewise.
10489 (target_fileio_read_alloc_1): Likewise.
10490 (target_fileio_read_alloc): Likewise.
10491 (target_fileio_read_stralloc): Likewise.
10492
10493 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10494 <fcntl.h>, and <unistd.h>.
10495 (inf_child_fileio_open_flags_to_host): New function.
10496 (inf_child_errno_to_fileio_error): Likewise.
10497 (inf_child_fileio_open): Likewise.
10498 (inf_child_fileio_pwrite): Likewise.
10499 (inf_child_fileio_pread): Likewise.
10500 (inf_child_fileio_close): Likewise.
10501 (inf_child_fileio_unlink): Likewise.
10502 (inf_child_target): Install to_fileio routines.
10503
10504 * remote.c (init_remote_ops): Install to_fileio routines.
10505
10506 2012-01-20 Pedro Alves <palves@redhat.com>
10507 Ulrich Weigand <ulrich.weigand@linaro.org>
10508
10509 * remote.c (remote_multi_process_p): Only check for multi-process
10510 protocol feature, do not check for extended protocol.
10511 (remote_supports_multi_process): Check for extended protocol here.
10512 (set_general_process): Likewise.
10513 (extended_remote_kill): Likewise.
10514 (remote_pid_to_str): Likewise.
10515 (remote_query_supported): Always query multiprocess mode.
10516
10517 2012-01-20 Pedro Alves <palves@redhat.com>
10518 Ulrich Weigand <ulrich.weigand@linaro.org>
10519
10520 * inferior.h (struct inferior): Add fake_pid_p.
10521 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10522 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10523 magic_null_ptid since the remote side doesn't provide a real PID.
10524
10525 2012-01-19 Tom Tromey <tromey@redhat.com>
10526
10527 * NEWS: Combine the two Python sections.
10528
10529 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10530
10531 * target.h (target_close): Update comment on the target's unpush state.
10532
10533 2012-01-19 Pedro Alves <palves@redhat.com>
10534
10535 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10536 linux_nat_async directly instead of going through the target
10537 vector.
10538 * target.c (unpush_target): Close target after unpushing it, not
10539 before.
10540
10541 2012-01-19 Gary Benson <gbenson@redhat.com>
10542
10543 * mdebugread.c (sort_blocks): Replace integer constants with ones
10544 derived from FIRST_LOCAL_BLOCK.
10545
10546 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10547 Jan Kratochvil <jan.kratochvil@redhat.com>
10548
10549 PR gdb/9538
10550 * symfile.c (find_separate_debug_file): New function.
10551 (terminate_after_last_dir_separator): Likewise.
10552 (find_separate_debug_file_by_debuglink): Also try realpath.
10553 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10554 * configure: Regenerate.
10555 * config.in: Regenerate.
10556
10557 2012-01-18 Doug Evans <dje@google.com>
10558
10559 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10560 (main.o): Remove rule.
10561 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10562 (--with-sysroot): Rewrite.
10563 * configure: Regenerate.
10564 * config.in: Regenerate.
10565
10566 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10567
10568 * parse.c (initialize_expout): New function.
10569 (reallocate_expout): Likewise.
10570 (parse_exp_in_context): Use `initialize_expout' and
10571 `reallocate_expout' when appropriate.
10572
10573 2012-01-18 Pedro Alves <palves@redhat.com>
10574
10575 * record.c (struct record_breakpoint, record_breakpoint_p)
10576 (record_breakpoints): New.
10577 (record_insert_breakpoint, record_remove_breakpoint): Manage
10578 record breakpoints list. Only remove breakpoints from the
10579 inferior if they had been inserted there in the first place.
10580
10581 2012-01-17 Doug Evans <dje@google.com>
10582
10583 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10584 if we know we don't have a file name to look for.
10585
10586 2012-01-17 Pedro Alves <palves@redhat.com>
10587
10588 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10589 the frame's stop reason is UNWIND_UNAVAILABLE.
10590
10591 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Fix compilation error.
10594 * m2-exp.y (yyerror): Use ANSI C prototype.
10595
10596 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10597
10598 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10599 (growbuf_by_size): Likewise.
10600 (yyerror): Likewise.
10601 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10602 (modblock): Remove variable (was #if 0'ed).
10603 (parse_number): Convert prototype from K&R to ANSI C.
10604 (yyerror): Likewise.
10605 * objc-exp.y (parse_number): Likewise.
10606 (yyerror): Likewise.
10607 (yylex): Remove #if 0'ed code.
10608 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10609 (yyerror): Likewise.
10610
10611 2012-01-16 Tom Tromey <tromey@redhat.com>
10612
10613 * NEWS: Add item.
10614 * symtab.h (compare_filenames_for_search): Declare.
10615 * symtab.c (compare_filenames_for_search): New function.
10616 (iterate_over_some_symtabs): Use it.
10617 * symfile.h (struct quick_symbol_functions)
10618 <map_symtabs_matching_filename>: Change spec.
10619 * psymtab.c (partial_map_symtabs_matching_filename): Use
10620 compare_filenames_for_search. Update for new spec.
10621 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10622 compare_filenames_for_search. Update for new spec.
10623 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10624
10625 2012-01-16 Tom Tromey <tromey@redhat.com>
10626
10627 PR python/13281:
10628 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10629 (struct main_type) <flag_flag_enum>: New field.
10630 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10631 * NEWS: Add entries.
10632 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10633 enums.
10634 * python/lib/gdb/printing.py (_EnumInstance): New class.
10635 (FlagEnumerationPrinter): Likewise.
10636
10637 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10638
10639 * breakpoint.c (create_sals_from_address_default): New function.
10640 (create_breakpoints_sal_default): Likewise.
10641 (decode_linespec_default): Likewise.
10642 (is_marker_spec): Removed.
10643 (strace_marker_p): New function.
10644 (init_breakpoint_sal): Using `strace_marker_p' instead of
10645 `is_marker_spec'.
10646 (create_breakpoint): Call method `create_sals_from_address' from
10647 breakpoint_ops, replacing code that created SALs conditionally
10648 on the type of the breakpoint. Call method `create_breakpoints_sal',
10649 replacing code that created breakpoints conditionally on the type
10650 wanted.
10651 (base_breakpoint_create_sals_from_address): New function.
10652 (base_breakpoint_create_breakpoints_sal): Likewise.
10653 (base_breakpoint_decode_linespec): Likewise.
10654 (base_breakpoint_ops): Add methods
10655 `base_breakpoint_create_sals_from_address',
10656 `base_breakpoint_create_breakpoints_sal' and
10657 `base_breakpoint_decode_linespec'.
10658 (bkpt_create_sals_from_address): New function.
10659 (bkpt_create_breakpoints_sal): Likewise.
10660 (bkpt_decode_linespec): Likewise.
10661 (tracepoint_create_sals_from_address): Likewise.
10662 (tracepoint_create_breakpoints_sal): Likewise.
10663 (tracepoint_decode_linespec): Likewise.
10664 (strace_marker_create_sals_from_address): Likewise.
10665 (strace_marker_create_breakpoints_sal): Likewise.
10666 (strace_marker_decode_linespec): Likewise.
10667 (strace_marker_breakpoint_ops): New variable.
10668 (addr_string_to_sals): Remove `marker_spec'. Call method
10669 `decode_linespec' from breakpoint_ops, replacing code that decoded
10670 an address string into a SAL. Use `strace_marker_p' instead of
10671 `marker_spec'.
10672 (strace_command): Decide whether we are dealing with a static
10673 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10674 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10675 * breakpoint.h (linespec_result, linespec_sals): New forward
10676 declarations.
10677 (breakpoint_ops) <create_sals_from_address>,
10678 <create_breakpoints_sal>, <decode_linespec>: New methods.
10679
10680 2012-01-14 Doug Evans <dje@google.com>
10681
10682 * NEWS: Update text for "maint set python print-stack".
10683 It is deprecated in gdb 7.4 and deleted in 7.5.
10684
10685 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10686
10687 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10688 including curses.h.
10689
10690 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10691
10692 * configure: Regenerate.
10693 * config.in: Regenerate.
10694
10695 2012-01-12 Keith Seitz <keiths@redhat.com>
10696
10697 PR mi/10586
10698 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10699 (ANONYMOUS_UNION_NAME): Define.
10700 (is_path_expr_parent): New function.
10701 (get_path_expr_parent): New function.
10702 (is_anonymous_child): New function.
10703 (create_child_with_value): If the child is anonymous and without
10704 a name, assign an object name to it.
10705 (c_describe_child): Use get_path_expr_parent to determine
10706 the parent expression.
10707 If there field represents an anonymous struct or union and
10708 has no name, set an appropriate display name and expression.
10709 (cplus_describe_child): Likewise.
10710
10711 2012-01-12 Pedro Alves <palves@redhat.com>
10712
10713 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10714 available when %ebp is found to be zero (outermost).
10715
10716 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10717
10718 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10719 an internal gdb_static_assert.
10720 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10721
10722 2012-01-11 Tom Tromey <tromey@redhat.com>
10723
10724 PR gdb/9598:
10725 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10726 catch" and "catch throw".
10727
10728 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10729
10730 * blockframe.c (block_innermost_frame): Start search from selected
10731 frame, if present, or otherwise the current frame.
10732
10733 * c-exp.y (variable): Update innermost_block for
10734 'block COLONCOLON NAME' clause.
10735 * m2-exp.y (variable): Ditto.
10736 * objc-exp.y (variable): Ditto.
10737
10738 2012-01-10 Tom Tromey <tromey@redhat.com>
10739
10740 PR python/13199:
10741 * python/python.c (finish_python_initialization): Set sys.argv.
10742
10743 2012-01-10 Doug Evans <dje@google.com>
10744
10745 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10746 "want_line_info". All callers updated.
10747 (dwarf_decode_lines_1): New function.
10748 (handle_DW_AT_stmt_list): Add function comment.
10749 New arg "want_line_info". All callers updated.
10750 (read_file_scope,read_type_unit_scope): Move comment from
10751 handle_DW_AT_stmt_list to here.
10752
10753 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10754
10755 Fix regression after libiberty/ update for GCC PR 6057 and others.
10756 * c-exp.y (operator) <OPERATOR DELETE>
10757 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10758 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10759 (make_builtin_type, make_name): New variable i, add gdb_assert.
10760 (operator) <OPERATOR NEW>: Update ARGS to 3.
10761 (operator) <OPERATOR DELETE>: Add trailing space.
10762 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10763 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10764 * cp-support.c (cp_canonicalize_string): Check NULL from
10765 cp_comp_to_string, call warning and return.
10766
10767 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10768
10769 Fix duplicate .o files after omitting libbfd.a.
10770 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10771 (SFILES): Add corelow.c.
10772 (COMMON_OBS): Add corelow.o.
10773 (ALLDEPFILES): Remove corelow.c.
10774 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10775 * config/alpha/alpha-osf3.mh: Likewise.
10776 * config/alpha/fbsd.mh: Likewise.
10777 * config/arm/nbsdaout.mh: Likewise.
10778 * config/arm/nbsdelf.mh: Likewise.
10779 * config/i386/i386gnu.mh: Likewise.
10780 * config/ia64/hpux.mh: Likewise.
10781 * config/ia64/linux.mh: Likewise.
10782 * config/m32r/linux.mh: Likewise.
10783 * config/m68k/linux.mh: Likewise.
10784 * config/mips/irix5.mh: Likewise.
10785 * config/mips/irix6.mh: Likewise.
10786 * config/pa/hpux.mh: Likewise.
10787 * config/pa/linux.mh: Likewise.
10788 * config/powerpc/aix.mh: Likewise.
10789 * config/sparc/linux.mh: Likewise.
10790 * config/sparc/linux64.mh: Likewise.
10791 * config/sparc/sol2.mh: Likewise.
10792 * config/vax/vax.mh: Likewise.
10793 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10794 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10795 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10796 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10797 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10798 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10799 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10800 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10801 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10802 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10803 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10804 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10805 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10806 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10807 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10808 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10809 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10810 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10811 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10812 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10813 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10814 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10815 corelow.o from gdb_target_obs.
10816 * corefile.c (core_target): Update the comment on NULL value.
10817 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10818 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10819 MATCHES. Drop YUMMY set on NULL.
10820 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10821 reclaim CORE_DATA if it is already NULL.
10822
10823 2012-01-09 Doug Evans <dje@google.com>
10824
10825 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10826 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10827
10828 2012-01-09 Keith Seitz <keiths@redhat.com>
10829
10830 * breakpoint.c (wrapper.h): Don't include.
10831
10832 2012-01-09 Keith Seitz <keiths@redhat.com>
10833
10834 * Makefile.in (SFILES): Remove wrapper.c.
10835 (HFILES_NO_SRCDIR): Remove wrapper.h.
10836 (COMMON_OBS): Remove wrapper.o.
10837 * cli/cli-interp.c: Don't inlude wrapper.h.
10838 * corelow.c: Likewise.
10839 (core_open): Replace gdb_target_find_new_threads with
10840 TRY_CATCH around target_find_new_threads.
10841 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10842 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10843 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10844 evaluate_expression.
10845 (varobj_set_value): Likewise for evaluate_expression and
10846 value_assign.
10847 (install_new_variable): Likewise for value_fetch_lazy.
10848 (adjust_value_for_child_access): Likewise for value_ind.
10849 (c_describe_child): Likewise for value_subscript and
10850 value_ind.
10851 (c_value_of_root): Likewise for evaluate_expression.
10852 * wrapper.c: Remove.
10853 * wrapper.h: Remove.
10854
10855 2012-01-09 Doug Evans <dje@google.com>
10856
10857 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10858 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10859 "abfd" args with "section". All callers updated.
10860 Error checking code moved ...
10861 (error_check_comp_unit_head): ... here. New function.
10862 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10863 Delete arg "abfd". New arg "type_offset". All callers updated.
10864 (create_debug_types_hash_table): Simplify by using
10865 read_and_check_type_unit_head.
10866
10867 * parser-defs.h (namecopy): Delete.
10868 * parse.c (namecopy, namecopy_size): Move into copy_name.
10869
10870 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 Partially fix duplicate .o files after omitting libbfd.a.
10873 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10874 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10875 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10876 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10877 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10878 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10879 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10880
10881 2012-01-09 Pedro Alves <palves@redhat.com>
10882
10883 * MAINTAINERS: Update my email address.
10884
10885 2012-01-08 Doug Evans <dje@google.com>
10886
10887 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10888 n_type_units. Rename type_comp_units to all_type_units.
10889 All uses updated.
10890 (add_signatured_type_cu_to_table): Renamed from
10891 add_signatured_type_cu_to_list. All callers updated.
10892
10893 * gdbtypes.h (struct cplus_struct_type): Delete member
10894 nfn_fields_total. All uses removed.
10895
10896 2012-01-06 Doug Evans <dje@google.com>
10897
10898 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10899 to top of file.
10900 (dwarf2_find_comp_unit): Delete.
10901 (process_psymtab_comp_unit): Make result "void".
10902 Delete args buffer, info_ptr, buffer_size, and replace with
10903 "section". All callers updated.
10904 (dwarf2_build_psymtabs_hard): Simplify.
10905
10906 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10907 Thiago Jung Bauermann <bauerman@br.ibm.com>
10908
10909 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10910 before `struct gdb_exception'.
10911 * breakpoint.c (update_global_location_list_nothrow)
10912 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10913 * cp-abi.c (value_rtti_type): Likewise.
10914 * cp-support.c (cp_validate_operator): Likewise.
10915 * infrun.c (insert_exception_resume_breakpoint)
10916 (check_exception_resume, keep_going): Likewise.
10917 * mi-interp.c (mi_breakpoint_created)
10918 (mi_breakpoint_modified): Likewise.
10919 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10920 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10921 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10922
10923 2012-01-05 Doug Evans <dje@google.com>
10924
10925 * dwarf2read.c (statement_prologue): Delete, unused.
10926
10927 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10928 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10929
10930 * dwarf2read.c (comp_unit_header): Delete, unused.
10931
10932 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10933
10934 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10935 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10936
10937 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10938
10939 * infrun.c (normal_stop): Don't skip calling the normal_stop
10940 observers if the thread was doing a multi-step, but stopped for
10941 some reason other than stepping.
10942
10943 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10944
10945 * cli/cli-decode.h: Add comments.
10946 (CMD_LIST_AMBIGUOUS): Moved to command.h
10947 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10948 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10949 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10950 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10951 (add_com, add_com_alias, add_info, add_info_alias)
10952 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10953 declarations.
10954 * command.h: Add and adjust comments.
10955 (CMD_LIST_AMBIGUOUS): Moved here.
10956 (help_cmd, help_cmd_list): Delete declarations.
10957
10958 2012-01-04 Doug Evans <dje@google.com>
10959
10960 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10961 All callers updated.
10962 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10963 Replace all arguments with "per_cu". All callers updated.
10964
10965 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10966
10967 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10968 New arg "per_cu". All callers updated.
10969
10970 Delete #if 0'd out code.
10971 * language.c (binop_result_type): Delete.
10972 (simple_type, ordered_type, same_type, integral_type): Delete.
10973 (numeric_type, character_type, string_type, boolean_type): Delete.
10974 (float_type, structured_type): Delete.
10975 * language.h: Update.
10976
10977 2012-01-04 Tom Tromey <tromey@redhat.com>
10978
10979 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10980
10981 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10982
10983 * corefile.c (close_exec_file): Delete.
10984 (reopen_exec_file): Remove commented out code that seems related
10985 to close_exec_file, which is being deleted here.
10986 * inferior.h (close_exec_file): Delete.
10987 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10988
10989 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10990
10991 * ada-lang.c: #include "cli/cli-utils.h".
10992 (get_selections): Use skip_spaces.
10993 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10994 (catch_ada_exception_command_split): Use skip_spaces.
10995 (ada_decode_assert_location): Likewise.
10996
10997 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10998
10999 * linespec.c (decode_line_internal): Check for C++ or Java
11000 compound constructs only if the current language is C, C++
11001 or Java.
11002
11003 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 Revert:
11006 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11007 Joel Brobecker <brobecker@adacore.com>
11008 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11009 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11010 3 times.
11011 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11012 fall through into AT_ENTRY_POINT.
11013 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11014 DUMMY_ADDR with it.
11015 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11016 PPC_INSN_SIZE skip to 3 times.
11017
11018 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11019
11020 * linespec.c (add_minsym): Preserve function descriptors.
11021
11022 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11023
11024 * breakpoint.c (all_locations_are_pending): Consider locations
11025 in program spaces executing during startup pending as well.
11026
11027 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11028
11029 Copyright year update in most files of the GDB Project.
11030
11031 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11032
11033 * copyright.sh: Delete.
11034 * copyright.py: Rewrite.
11035
11036 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11037
11038 * gnulib/extra/update-copyright: New file, imported from gnulib.
11039
11040 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11041
11042 * README (Copyright and License Notices): New section.
11043
11044 2012-01-03 Tom Tromey <tromey@redhat.com>
11045
11046 PR python/12533:
11047 * python/py-value.c (valpy_dereference, valpy_get_address
11048 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11049 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11050 (valpy_absolute, valpy_richcompare): Free intermediate values.
11051
11052 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11053
11054 * ada-lang.c: Reformat the copyright notice.
11055
11056 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11059 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11060 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11061 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11062 Revert this part of:
11063 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11064 Build gdb directly from *.o files not using libgdb.a.
11065 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11066
11067 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11068
11069 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11070 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11071 Reformat the copyright header.
11072
11073 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11074
11075 Revert this part of:
11076 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11077 Remove the gdbtui binary.
11078 * gdb.c (main): Remove args.interpreter_p initialization.
11079 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11080 * main.h (struct captured_main_args): Remove interpreter_p.
11081
11082 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11083
11084 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11085
11086 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11087
11088 * top.c (print_gdb_version): Update copyright year.
11089
11090 2012-01-02 Yao Qi <yao@codesourcery.com>
11091
11092 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11093
11094 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11095 Joel Brobecker <brobecker@adacore.com>
11096
11097 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11098 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11099 3 times.
11100 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11101 fall through into AT_ENTRY_POINT.
11102 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11103 DUMMY_ADDR with it.
11104 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11105 PPC_INSN_SIZE skip to 3 times.
11106
11107 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11108
11109 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11110 the return value.
11111 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11112
11113 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 Build gdb directly from *.o files not using libgdb.a.
11116 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11117 (COMMON_OBS): Remove solib-target.o.
11118 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11119 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11120 (LIBGDB_OBS, libgdb.a): Move it above.
11121 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11122 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11123 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11124 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11125 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11126 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11127 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11128 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11129 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11130 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11131 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11132 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11133 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11134 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11135 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11136 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11137 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11138 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11139 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11140 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11141 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11142 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11143 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11144 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11145 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11146 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11147 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11148
11149 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11150
11151 Remove the gdbtui binary.
11152 * .gitignore (/gdbtui): Remove.
11153 * Makefile.in (TUI): Remove.
11154 (SUBDIR_TUI_OBS): Remove tui-main.o.
11155 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11156 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11157 (tui-main.o): Remove.
11158 (all_object_files): Remove tui-main.o.
11159 * NEWS: New note for the gdbtui removal.
11160 * configure: Rebuilt.
11161 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11162 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11163 CONFIG_UNINSTALL respectively.
11164 * gdb.c (main): Remove args.interpreter_p initialization.
11165 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11166 * main.h (struct captured_main_args): Remove interpreter_p.
11167 * tui/tui-main.c: Remove.
11168
11169 2012-01-01 Doug Evans <dje@google.com>
11170
11171 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11172 (dwarf2_physname, read_import_statement): Ditto.
11173 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11174 (process_structure_scope read_subroutine_type): Ditto.
11175 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11176 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11177 (dwarf2_fetch_die_location_block): Ditto.
11178 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11179
11180 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11181 All callers updated.
11182 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11183 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11184 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11185
11186 * dwarf2read.c (load_cu): Move assert to more useful location.
11187
11188 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11189 All callers updated.
11190
11191 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11192 (dwarf2_elf_names): Minor reformat.
11193 (dwarf2_per_cu_data): Tweak comment.
11194 (dwarf2_read_section): Fix comment.
11195 (create_all_comp_units): Fix comment.
11196 (load_full_comp_unit): Fix comment.
11197 (process_full_comp_unit): Fix comment.
11198 (read_signatured_type): Fix comment.
11199
11200 For older changes see ChangeLog-2011.
11201 \f
11202 Local Variables:
11203 mode: change-log
11204 left-margin: 8
11205 fill-column: 74
11206 version-control: never
11207 coding: utf-8
11208 End:
This page took 0.247976 seconds and 5 git commands to generate.