2012-11-02 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-02 Pedro Alves <palves@redhat.com>
2
3 Modernize.
4
5 * gdb.base/foll-vfork.exp: Use standard_testfile and
6 build_executable. Pass descriptive string to untested.
7 (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
8 (vfork_and_exec_child_follow_to_main_bp)
9 (vfork_and_exec_child_follow_through_step)
10 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
11 (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
12 of send_gdb/gdb_expect.
13
14 (kill_child): New procedure.
15 (vfork_and_exec_child_follow_to_main_bp)
16 (vfork_and_exec_child_follow_through_step): Use it.
17
18 2012-11-02 Yao Qi <yao@codesourcery.com>
19
20 * std-operator.def: Remove OP_LABELED.
21 * eval.c: Remove the declaration of 'get_label'.
22 (get_label): Remove.
23 (evaluate_struct_tuple): Remove code handling OP_LABELED.
24 Update comment.
25 Remove local variable 'variantno' and related code.
26 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
27 with 'fieldno'.
28 * expprint.c (print_subexp_standard): Likewise.
29 (dump_subexp_body_standard): Likewise.
30 * parse.c (operator_length_standard): Likewise.
31
32 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
33
34 Incorporate ARI web page generator into GDB sources.
35 * contrib/ari/create-web-ari-in-src.sh: New file.
36 * contrib/ari/gdb_ari.sh: New file.
37 * contrib/ari/gdb_find.sh: New file.
38 * contrib/ari/update-web-ari.sh: New file.
39
40 2012-10-31 Tom Tromey <tromey@redhat.com>
41
42 * gdbarch.c: Rebuild.
43 * gdbarch.sh: Remove references to gdbarch_swap.
44 * corelow.c (core_open): Remove obsolete comment.
45
46 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
47
48 PR cli/14772
49 * c-typeprint.c (c_print_type): Don't print a space for vector
50 types, this is handled within the suffix.
51 (c_type_print_varspec_suffix): Add a space to vector suffix.
52
53 2012-10-26 Pedro Alves <palves@redhat.com>
54
55 * amd64-tdep.c (amd64_relocate_instruction): Use
56 store_unsigned_integer instead of memcpy.
57 * i386-tdep.c (i386_relocate_instruction): Ditto.
58
59 2012-10-26 Pedro Alves <palves@redhat.com>
60
61 * infrun.c (handle_inferior_event): Merge handling of
62 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
63 switch case.
64
65 2012-10-26 Pedro Alves <palves@redhat.com>
66
67 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
68 Remove comment.
69
70 2012-10-26 Pedro Alves <palves@redhat.com>
71
72 * target.c (target_waitstatus_to_string): Handle
73 TARGET_WAITKIND_VFORK_DONE.
74
75 2012-10-26 Pedro Alves <palves@redhat.com>
76
77 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
78 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
79
80 2012-10-24 Tristan Gingold <gingold@adacore.com>
81
82 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
83 Add comments.
84
85 2012-10-24 Joel Brobecker <brobecker@adacore.com>
86
87 * ravenscar-thread.c (ravenscar_wait): Only update the list
88 of threads and inferior_ptid if the inferior is still alive.
89
90 2012-10-24 Joel Brobecker <brobecker@adacore.com>
91
92 * ada-lang.c (is_known_support_routine): Use lbasename when
93 matching the symtab's filename against
94 known_runtime_file_name_patterns.
95
96 2012-10-24 Joel Brobecker <brobecker@adacore.com>
97
98 * ada-lang.c (ada_same_array_size_p): New function.
99 (ada_promote_array_of_integrals): New function.
100 (coerce_for_assign): Add handling of arrays where the elements
101 are integrals of a smaller size than the size of the target
102 array element type.
103
104 2012-10-24 Joel Brobecker <brobecker@adacore.com>
105
106 * doublest.c (convert_doublest_to_floatformat): Fix comparison
107 against maximum exponent value.
108
109 2012-10-24 Joel Brobecker <brobecker@adacore.com>
110
111 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
112 "unwind-seh.c".
113
114 2012-10-24 Joel Brobecker <brobecker@adacore.com>
115
116 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
117 strip typedef layer when computing the fixed type's field type,
118 only when computing its size.
119
120 2012-10-24 Mark Kettenis <kettenis@gnu.org>
121
122 PR gdb/12783
123 * i386-tdep.c (i386_return_value): Handle complex double and long
124 double.
125
126 2012-10-24 Joel Brobecker <brobecker@adacore.com>
127
128 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
129 New local variable args_len.
130 Quote the name of the executable when computing the command line.
131
132 2012-10-23 Mark Kettenis <kettenis@gnu.org>
133
134 PR gdb/12796
135 PR gdb/12798
136 PR gdb/12800
137 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
138 AMD64_FTAG_REGNUM.
139 * amd64-tdep.c (amd64_classify): Classify complex types.
140 (amd64_return_value): Handle the COMPLEX_X87 class.
141
142 2012-10-23 Joel Brobecker <brobecker@adacore.com>
143
144 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
145 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
146
147 2012-10-23 Joel Brobecker <brobecker@adacore.com>
148
149 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
150 function.
151 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
152 to amd64_windows_auto_wide_charset.
153
154 2012-10-23 Yao Qi <yao@codesourcery.com>
155
156 * event-top.c (mark_async_signal_handler_wrapper): Remove.
157 * event-top.h: Remove its declaration.
158 (async_request_quit): Call mark_async_signal_handler instead of
159 mark_async_signal_handler_wrapper.
160 (async_do_nothing, async_disconnect): Likewise.
161 (async_stop_sig): Likewise.
162 * remote.c (handle_remote_sigint): Likewise.
163 (handle_remote_sigint_twice): Likewise.
164
165 2012-10-23 Yao Qi <yao@codesourcery.com>
166
167 * event-top.c (sigint_token, sighup_token): Replace 'void *'
168 with 'static struct async_signal_handler *'.
169 (sighup_token, sigquit_token, sigstp_token): Likewise.
170
171 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
172
173 * gdbarch.sh (function_list): Use 'pstring' when printing
174 a variable which could return NULL.
175 * gdbarch.c: Regenerate.
176
177 2012-10-10 Joel Brobecker <brobecker@adacore.com>
178 Tom Tromey <tromey@redhat.com>
179
180 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
181 inneffective if condition by gdb assertion. Add function
182 description comment.
183
184 2012-10-19 Joel Brobecker <brobecker@adacore.com>
185
186 * parser-defs.h (struct exp_descriptor): Document constraint
187 on return value for "op_name" callbacks.
188
189 2012-10-18 Tom Tromey <tromey@redhat.com>
190
191 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
192 * symtab.c (iterate_over_some_symtabs): Constify.
193 * source.h (symtab_to_fullname): Return 'const char *'.
194 * source.c (symtab_to_fullname): Return 'const char *'.
195 * python/py-symtab.c (stpy_fullname): Constify.
196 * cli/cli-cmds.c (edit_command): Constify.
197 * breakpoint.c (print_breakpoint_location)
198 (update_static_tracepoint): Constify.
199
200 2012-10-18 Tom Tromey <tromey@redhat.com>
201
202 * breakpoint.c (compare_breakpoints): Fix comparison.
203
204 2012-10-18 Tom Tromey <tromey@redhat.com>
205
206 * valprint.c (generic_emit_char, generic_printstr): Pass size of
207 gdb_wchar_t to convert_between_encodings.
208
209 2012-10-17 Yao Qi <yao@codesourcery.com>
210
211 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
212 more parameter 'inferior'.
213 * corefile.c (write_memory_with_notification): Caller update.
214
215 * mi/mi-cmd-var.c: Include "mi-main.h".
216 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
217 to 1 and restore it later.
218 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
219 and "data-write-memory-bytes.
220 * mi/mi-interp.c: Include objfiles.h.
221 (mi_interpreter_init): Call observer_attach_memory_changed.
222 (mi_memory_changed): New.
223 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
224 New field.
225
226 * NEWS: Mention new MI notification "memory-changed".
227
228 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
231
232 2012-10-15 Doug Evans <dje@google.com>
233
234 New option -nh: inhibit loading of ~/.gdbinit.
235 * NEWS: Mention -nh.
236 * main.c (captured_main): Recognize and process -nh.
237 (print_gdb_help): Mention -nh.
238 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
239
240 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
241
242 PR backtrace/14646
243 PR gdb/14647
244 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
245 pc_regnum_from_eax.
246 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
247 nor pc_regnum_from_eax.
248 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
249 nor pc_regnum_from_eax.
250
251 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 Fix entry values resolving in inlined frames.
254 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
255 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
256 entries of FRAME.
257
258 2012-10-15 Joel Brobecker <brobecker@adacore.com>
259
260 * configure.ac: Build with -DMS_WIN64 if building with Python
261 enabled using GCC on amd64-windows.
262 * configure: Regenerate.
263
264 2012-10-15 Tom Tromey <tromey@redhat.com>
265
266 PR python/14635:
267 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
268 to Py_None.
269
270 2012-10-15 Tom Tromey <tromey@redhat.com>
271
272 PR python/14634:
273 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
274
275 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
276
277 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
278 reset thread numbering back to 1.
279
280 2012-10-11 Doug Evans <dje@google.com>
281
282 PR breakpoints/14643.
283 * linespec.c (struct ls_parser): New member keyword_ok.
284 (linespec_lexer_lex_string): Add comment.
285 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
286 for one.
287 (parse_linespec): Set keyword_ok.
288
289 2012-10-10 Doug Evans <dje@google.com>
290
291 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
292 "0x" prefix on address in log message.
293
294 * dwarf2read.c (read_1_byte): Add const to buf parameter.
295 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
296 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
297 (lookup_dwo_file): Add const to dwo_name parameter.
298 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
299
300 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
301
302 Fix crash during stepping on ppc32.
303 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
304 SYM.
305
306 2012-10-03 Doug Evans <dje@google.com>
307
308 PR symtab/14601
309 * buildsym.c (buildsym_init): Reset using_directives to NULL.
310
311 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
312
313 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
314 output and use uint32_t not long to ensure 4 byte size.
315
316 2012-10-02 Joel Brobecker <brobecker@adacore.com>
317
318 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
319 unref'ed it.
320
321 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
322
323 * target.c (simple_search_memory): Include access length in
324 warning message.
325
326 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
327 Edjunior Machado <emachado@linux.vnet.ibm.com>
328
329 PR gdb/13989
330 * solib.c (solib_find): Prevent GDB from loading native libraries when
331 debugging a cross-target corefile.
332
333 2012-09-28 selven <pcthegreat@gmail.com>
334
335 Make definition match declaration.
336
337 * regcache.c (regcache_register_status): Change return type to
338 enum register_status.
339
340 2012-09-28 Yao Qi <yao@codesourcery.com>
341
342 * mi/mi-main.c (mi_cmd_data_write_memory): Call
343 write_memory_with_notification instead of write_memory.
344 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
345 instead of target_write_memory.
346
347 2012-09-28 Yao Qi <yao@codesourcery.com>
348
349 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
350 when the length of content is not an even number.
351
352 2012-09-27 Tom Tromey <tromey@redhat.com>
353
354 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
355 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
356
357 2012-09-27 Joel Brobecker <brobecker@adacore.com>
358
359 * sol-thread.c (sol_thread_fetch_registers)
360 (sol_thread_store_registers): Delete commented out code.
361
362 2012-09-27 Joel Brobecker <brobecker@adacore.com>
363
364 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
365 Move these functions to sparc-sol-thread.c.
366 * sparc-sol-thread.c: New file.
367 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
368 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
369 configurations.
370 * configure: Regenerate.
371
372 2012-09-27 Joel Brobecker <brobecker@adacore.com>
373
374 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
375 Remove commented-out code.
376
377 2012-09-27 Joel Brobecker <brobecker@adacore.com>
378
379 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
380 Enable this code for sparc hosts only.
381
382 2012-09-27 Joel Brobecker <brobecker@adacore.com>
383
384 * procfs.h (procfs_find_LDT_entry): Add declaration.
385 * sol-thread.c (ps_lgetLDT): Delete local declaration of
386 function procfs_find_LDT_entry.
387
388 2012-09-27 Joel Brobecker <brobecker@adacore.com>
389
390 * procfs.c (proc_get_LDT_entry): Make static.
391
392 2012-09-27 Joel Brobecker <brobecker@adacore.com>
393
394 * procfs.c (proc_find_memory_regions): Fix declaration.
395
396 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
397
398 * amd64-tdep.c (amd64_return_value): Revert previous change
399 that used TYPE_LENGTH directly.
400 * bfin-tdep.c (bfin_extract_return_value): Likewise.
401 (bfin_store_return_value): Likewise.
402 * cris-tdep.c (cris_store_return_value): Likewise.
403 (cris_extract_return_value): Likewise.
404 * h8300-tdep.c (h8300_extract_return_value): Likewise.
405 * hppa-tdep.c (hppa64_return_value): Likewise.
406 * lm32-tdep.c (lm32_store_return_value): Likewise.
407 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
408 * spu-tdep.c (spu_value_from_register): Likewise.
409 * vax-tdep.c (vax_return_value): Likewise.
410
411 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
412
413 * gdbtypes.c (lookup_array_range_type): Expand parameters
414 LOW_BOUND and HIGH_BOUND to LONGEST.
415 (lookup_string_range_type): Likewise.
416 * gdbtypes.h (lookup_array_range_type): Likewise.
417 (lookup_string_range_type): Likewise.
418 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
419 Expand HIGHBOUND to ssize_t.
420 (value_string): Likewise.
421 * value.h (value_cstring): Expand parameter LEN to ssize_t.
422 (value_string): Likewise.
423
424 2012-09-27 Yao Qi <yao@codesourcery.com>
425
426 PR breakpoints/13898
427 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
428 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
429 per breakpoint type.
430
431 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
432
433 * procfs.c: Add gdb_bfd header.
434 * rs6000-nat.c: Likewise.
435 * solib-pa64.c: Likewise.
436 * spu-linux-nat.c: Likewise.
437 * windows-nat.c: Likewise.
438
439 2012-09-26 Tom Tromey <tromey@redhat.com>
440
441 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
442
443 2012-09-26 Tom Tromey <tromey@redhat.com>
444
445 * dwarf2read.c (mark_common_block_symbol_computed): New function.
446 (read_common_block): Handle child DIEs with
447 DW_AT_data_member_location.
448 (new_symbol_full): Add special case for common blocks.
449
450 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
451 Tom Tromey <tromey@redhat.com>
452
453 * dwarf2read.c (read_common_block): Rewrite.
454 (new_symbol_full): Handle DW_TAG_common_block.
455 * f-lang.c (head_common_list, find_common_for_function):
456 Remove.
457 * f-lang.h (struct common_entry, struct saved_f77_common,
458 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
459 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
460 BLANK_COMMON_NAME_LOCAL): Remove.
461 (struct common_block): New.
462 * f-valprint.c (list_all_visible_commons): Remove.
463 (info_common_command_for_block): New function.
464 (info_common_command): Use it.
465 * stack.c (iterate_over_block_locals): Special case for
466 COMMON_BLOCK_DOMAIN.
467 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
468 constant.
469 (struct general_symbol_info) <value.common_block>: New field.
470 (SYMBOL_VALUE_COMMON_BLOCK): New define.
471
472 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
473 Tom Tromey <tromey@redhat.com>
474
475 * f-lang.c (allocate_saved_bf_node,
476 allocate_saved_function_node, allocate_saved_f77_common_node,
477 allocate_common_entry_node, tail_common_list, current_common,
478 saved_bf_list, saved_bf_list_end, current_head_bf_list,
479 tmp_bf_ptr, add_common_block, add_common_entry,
480 find_first_common_named, patch_common_entries,
481 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
482 global_remote_debug, get_bf_for_fcn, saved_function_list,
483 saved_function_list_end, clear_function_list, struct saved_fcn,
484 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
485 SAVED_BF, SAVED_BF_PTR): Remove.
486 * f-lang.h (tail_common_list, current_common,
487 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
488 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
489 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
490 real_main_c_value): Remove.
491 * f-valprint.c (there_is_a_visible_common_named): Remove.
492
493 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
494
495 * breakpoint.c (update_global_location_list): Ignore previous
496 duplicate status of a breakpoint when starting a new scan for
497 duplicate breakpoints.
498
499 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
500 PR breakpoints/14419
501 * arm-tdep.c (arm_skip_prologue): Extending producer check to
502 support LLVM compiler.
503
504 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
505
506 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
507 * bfin-tdep.c (bfin_extract_return_value): Likewise.
508 (bfin_store_return_value): Likewise.
509 * cris-tdep.c (cris_store_return_value): Likewise.
510 (cris_extract_return_value): Likewise.
511 * h8300-tdep.c (h8300_extract_return_value): Likewise.
512 * hppa-tdep.c (hppa64_return_value): Likewise.
513 * lm32-tdep.c (lm32_store_return_value): Likewise.
514 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
515 * spu-tdep.c (spu_value_from_register): Likewise.
516 * vax-tdep.c (vax_return_value): Likewise.
517
518 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
519
520 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
521 parameter LEN to ssize_t.
522
523 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
524
525 * ada-valprint.c (ada_val_print_1): Eliminate single-use
526 variable LEN.
527 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
528 directly.
529 (alpha_store_return_value): Likewise.
530 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
531 (amd64_push_arguments): Likewise.
532 * ax-gdb.c (gen_trace_static_fields): Likewise.
533 (gen_traced_pop): Likewise.
534 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
535 * breakpoint.c (update_watchpoint): Likewise.
536 * findcmd.c (parse_find_args): Use local variable for type
537 instead of length.
538 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
539 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
540 (h8300_store_return_value): Likewise.
541 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
542 Use i386_darwin_arg_type_alignment directly.
543 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
544 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
545 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
546 (m68hc11_extract_return_value): Likewise.
547 * mep-tdep.c (mep_push_dummy_call): Likewise.
548 * printcmd.c (float_type_from_length): Likewise.
549 * s390-tdep.c (s390_value_from_register): Likewise.
550 * stack.c (read_frame_arg): Likewise.
551 * tracepoint.c (encode_actions_1): Likewise.
552 * valops.c (value_fetch_lazy): Use local variable for type
553 instead of length. Use TYPE_LENGTH directly.
554 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
555
556 2012-09-25 Joel Brobecker <brobecker@adacore.com>
557
558 * symtab.c (skip_prologue_sal): Fix typo in comment.
559
560 2012-09-25 Joel Brobecker <brobecker@adacore.com>
561
562 * linespec.c (create_sals_line_offset): Fix typo in comment.
563
564 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
565
566 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
567 use plongest to print the array size.
568
569 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
570
571 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
572 * p-valprint.c (pascal_type_print_base): Likewise.
573
574 2012-09-22 Yao Qi <yao@codesourcery.com>
575
576 * remote.c (remote_get_trace_status): Remove setting default
577 values of fields of 'ts'.
578
579 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
580
581 Fix internal error on canonicalization of clang types.
582 * cp-name-parser.y (operator): New comment at make_operator call for
583 new, delete, new[] and delete[].
584 (exp): Use "sizeof ". Add new comment at make_operator call.
585
586 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 Fix disassemble without parameters in tailcall frame.
589 * cli/cli-cmds.c (disassemble_current_function): Use
590 get_frame_address_in_block.
591
592 2012-09-21 Tom Tromey <tromey@redhat.com>
593
594 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
595 TYPE_CODE_UNION>: Unify, removing a goto.
596
597 2012-09-21 Tom Tromey <tromey@redhat.com>
598
599 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
600
601 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
602
603 * findvar.c (read_frame_register_value): Mark the result value as
604 optimized out if any of the input registers have been optimized out.
605
606 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
607
608 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
609
610 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
611
612 * eval.c (evaluate_subexp_standard): Eliminate single-use
613 variable LOWER.
614
615 2012-09-21 Yao Qi <yao@codesourcery.com>
616
617 * mi/mi-interp.c: Declare mi_record_changed.
618 (mi_interpreter_init): Call observer_attach_record_changed.
619 (mi_record_changed): New.
620 * record.c (record_open): Call observer_notify_record_changed.
621 (cmd_record_stop): Call observer_notify_record_changed.
622 * NEWS: Mention it.
623
624 2012-09-20 Tom Tromey <tromey@redhat.com>
625
626 * NEWS: Update.
627 * python/python.c (finalize_python): New function.
628 (_initialize_python): Make a final cleanup.
629
630 2012-09-19 Doug Evans <dje@google.com>
631
632 * buildsym.h (param_symbols): Delete, unused.
633 (context_stack): Delete member "params", unused.
634 * buildsym.c (push_context): Update.
635 * dwarf2read.c (read_func_scope): Update.
636
637 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
638
639 * sh-tdep.c (sh_register_convert_to_virtual)
640 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
641 all callers. Just do a memcpy if not the little-endian case.
642
643 * h8300-tdep.c (h8300_gdbarch_init): Invoke
644 set_gdbarch_double_format and set_gdbarch_long_double_format.
645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
646 set_gdbarch_double_format.
647 * sh-tdep.c (sh_gdbarch_init): Likewise.
648
649 * NEWS: Document the removal of SH's 'regs' command.
650 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
651 command.
652
653 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
654
655 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
656 `jump'.
657
658 2012-09-18 Joel Brobecker <brobecker@adacore.com>
659
660 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
661 language when iterating over symbols.
662
663 2012-09-18 Yao Qi <yao@codesourcery.com>
664
665 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
666 (mi_interpreter_init): Call observer_attach_tsv_created and
667 observer_attach_tsv_deleted.
668 (mi_tsv_created, mi_tsv_deleted): New.
669 * tracepoint.c (delete_trace_state_variable): Call
670 observer_notify_tsv_deleted.
671 (trace_variable_command): Call observer_notify_tsv_created.
672 (delete_trace_variable_command): Call
673 observer_notify_tsv_deleted.
674 (create_tsv_from_upload): Call observer_notify_tsv_created.
675 * NEWS: Mention it.
676
677 2012-09-18 Yao Qi <yao@codesourcery.com>
678
679 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
680 if traceframe changed.
681 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
682 "trace-find".
683 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
684 (mi_interpreter_init): Hook mi_traceframe_changed to observer
685 'traceframe_changed'.
686 (mi_traceframe_changed): New.
687 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
688 New field.
689 * NEWS: Mention the new MI notification.
690
691 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
692
693 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
694
695 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
696
697 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
698 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
699 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
700 Extend code also for PaX support. Convert all gdb_assert to warning
701 calls.
702
703 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
704
705 Implement auto-load user conveniences suggested by Doug Evans.
706 * auto-load.c: Include top.h.
707 (file_is_auto_load_safe): New variable advice_printed. Print advice.
708 (_initialize_auto_load): New variable scripts_directory_help. Mention
709 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
710 scripts-directory. Document in online help one can use also files for
711 set auto-load safe-path.
712 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
713 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
714
715 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
716
717 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
718 of LEN.
719
720 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
721
722 * m2-valprint.c (m2_print_array_contents): Eliminate variable
723 ELTLEN and use TYPE_LENGTH directly.
724 (m2_val_print): Likewise.
725 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
726 variable LEN and use TYPE_LENGTH directly.
727 (m68k_svr4_store_return_value): Likewise.
728 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
729 ARGLEN and use TYPE_LENGTH directly.
730 (mips_o64_push_dummy_call): Likewise.
731 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
732 variable LENGTH and use TYPE_LENGTH directly.
733 (s390_function_arg_float): Likewise.
734 (s390_function_arg_integer): Likewise.
735 (s390_push_dummy_call): Likewise.
736 (s390_return_value_convention): Likewise.
737 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
738 TYPE_LENGTH directly.
739
740 2012-09-17 Yao Qi <yao@codesourcery.com>
741
742 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
743 Update comment to add_setshow_integer_cmd.
744 * cli/cli-setshow.c (do_set_command): Handle case
745 'var_zuinteger_unlimited'.
746 (do_show_command): Likewise.
747 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
748 for command 'remotetimeout'.
749 * command.h (enum var_types): New zuinteger_unlimited. Update comment
750 to var_integer.
751 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
752 for command 'set listsize'.
753
754 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
755
756 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
757 variable LEN.
758
759 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
760
761 PR 14119
762 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
763 (frame_pop): Drop also TAILCALL_FRAME frames.
764 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
765
766 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
767 Pedro Alves <palves@redhat.com>
768
769 PR 14548
770 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
771 function start if we are already at function start. Both for
772 reverse-next and for reverse-step into function without line number
773 info.
774
775 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 Code cleanup - rename 'inline' depth to 'artificial' depth.
778 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
779 frame_id_artificial_p, extend the comment.
780 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
781 * frame.c (fprint_frame_id): Rename at a user, change debug output
782 text to "artificial=".
783 (skip_inlined_frames): Rename to ...
784 (skip_artificial_frames): ... here. Extend the comment.
785 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
786 (frame_id_inlined_p): Rename to ...
787 (frame_id_artificial_p): ... here. Rename at a user.
788 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
789 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
790 at a user.
791 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
792 Extend the comment.
793 (frame_id_inlined_p): Rename to ...
794 (frame_id_artificial_p): ... here.
795 * inline-frame.c (inline_frame_this_id): Rename at a user.
796
797 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
798
799 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
800 vector variables using vector_size syntax rather than array
801 syntax.
802
803 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
804
805 * valarith.c (value_concat): Replace unsafe ALLOCA with
806 XMALLOC/XFREE.
807
808 2012-09-14 Pedro Alves <palves@redhat.com>
809
810 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
811
812 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
813
814 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
815 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
816 data-directory as appropriate.
817
818 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
819
820 * printcmd.c (ui_printf): Eliminate single-use variable
821 PARAM_LEN.
822
823 2012-09-14 Yao Qi <yao@codesourcery.com>
824 Pedro Alves <palves@redhat.com>
825
826 * valops.c (value_assign): Move observer_notify_target_changed
827 below to replace reinit_frame_cache.
828
829 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
830
831 Refactor Python "gdb" module into a proper Python package, by
832 introducing a new "_gdb" module for code implemented in C, and
833 using reload/__import__ instead of exec.
834 * python/lib/gdb/__init__.py: Import * from _gdb.
835 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
836 prompt_hook, sys.argv): Moved from finish_python_initialization.
837 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
838 (packages, auto_load_packages): New list and function replacing
839 module_dict and auto-loading code, using __file__ instead of
840 gdb.PYTHONDIR and reload/__import__ instead of exec.
841 (GdbSetPythonDirectory): Replacing function of the same name
842 from finish_python_initialization, using reload/__import__ instead
843 of exec, as well as call auto_load_packages.
844 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
845 gdb_python_module and not gdb_module.
846 * python/python-internal.h (gdb_python_module): Declare.
847 * python/python.c (gdb_python_module): New global.
848 (before_prompt_hook): Check gdb_python_module and not gdb_module.
849 (_initialize_python): Rename gdb module to _gdb.
850 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
851 (finish_python_initialization): Move Python code to
852 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
853 __main__.
854
855 2012-09-13 Pedro Alves <palves@redhat.com>
856
857 * Makefile.in (COMMON_OBS): Add registry.o.
858 * registry.c: New file.
859 * registry.h (struct registry_container): Declare.
860 (registry_data_callback): New typedef.
861 (struct registry_data, struct registry_data_registration, struct
862 registry_data_registry): New type.
863 (register_data_with_cleanup, registry_alloc_data)
864 (registry_callback_adaptor, registry_clear_data)
865 (registry_container_free_data, registry_set_data, registry_data):
866 Declare.
867 (DEFINE_REGISTRY): Refactor structures and functions as shims over
868 the new common structures and functions.
869 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
870 callback typedefs.
871
872 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
873
874 * remote.c (remote_insert_hw_breakpoint): Throw exception if
875 there is an error inserting hardware breakpoints and use the
876 error message from the target.
877
878 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
879 Catch this exception and print the error message contained within. Do not
880 print the default hardware error breakpoint message in this case.
881
882 2012-09-12 Doug Evans <dje@google.com>
883
884 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
885 cu == NULL.
886
887 2012-09-11 Doug Evans <dje@google.com>
888
889 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
890 .gdb_index symbol attributes if there are none.
891
892 2012-09-11 Joel Brobecker <brobecker@adacore.com>
893
894 * symtab.h (struct minimal_symbol) [has_size]: New field.
895 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
896 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
897 * printcmd.c (build_address_symbolic): Only filter out zero-sized
898 minimal symbols if the symbol's size is actually known.
899 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
900 of msymbol's size field. Add comment.
901 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
902 SET_MSYMBOL_SIZE to set the minimal symbol size.
903
904 2012-09-11 Joel Brobecker <brobecker@adacore.com>
905
906 * minsyms.c (install_minimal_symbols): Use memset to fill entire
907 minimal_symbol struct object, rather than setting some of its
908 fields one by one.
909
910 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
911
912 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
913 passed_a_ptr flag when displaying typedef types.
914
915 2012-09-10 Joel Brobecker <brobecker@adacore.com>
916
917 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
918 the optimized_out flag is preserved.
919
920 2012-09-10 Anthony Green <green@moxielogic.com>
921
922 * moxie-tdep.c (moxie_analyze_prologue): Update for function
923 prologue changes in GCC.
924
925 2012-09-10 Keith Seitz <keiths@redhat.com>
926
927 PR gdb/13483
928 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
929 (BOOL_CONVERSION_BADNESS): ... this.
930 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
931 (rank_one_type): Allow all boolean conversions
932 permitted by the standard.
933
934 2012-09-06 Tom Tromey <tromey@redhat.com>
935
936 * python/py-newobjfileevent.c (create_new_objfile_event_object):
937 Don't decref py_objfile.
938
939 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
940
941 Do not enable -lmcheck by default when Python is enabled with
942 threading support.
943 * configure.ac: (python_has_threads) New variable, by testing
944 if WITH_THREAD is defined in Python.h.
945 Move --enable-lmcheck after --with-python.
946 Do not enable -lmcheck by default if python_has_threads=yes.
947 Warn if --enable-lmcheck and python_has_threads=yes.
948 * configure: Regenerate.
949
950 2012-08-31 Yao Qi <yao@codesourcery.com>
951
952 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
953 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
954 Update some commands.
955 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
956 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
957 to 1.
958
959 2012-08-31 Yao Qi <yao@codesourcery.com>
960
961 * mi/mi-cmds.c (mi_cmds): Add 'static'.
962
963 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
964
965 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
966
967 2012-08-29 Doug Evans <dje@google.com>
968
969 * main.c (print_gdb_help): Remove reference to
970 --use-deprecated-index-sections.
971
972 2012-08-28 Yao Qi <yao@codesourcery.com>
973
974 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
975 (init_cmds): Call add_setshow_uinteger_cmd for command
976 'max-user-call-depth'.
977 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
978 declaration of 'max_user_call_depth'.
979 * frame.c (backtrace_limit): Add 'unsigned'.
980 (_initialize_frame): Call add_setshow_uinteger_cmd for command
981 'limit'.
982 * remote.c (remoteaddresssize): Add 'unsigned'.
983 (remote_address_masked): Change local var 'address_size' to
984 'unsigned'.
985 (_initialize_remote): Call add_setshow_uinteger_cmd for
986 'remoteaddresssize'.
987 * top.c (history_size): Add 'unsigned'.
988 (show_commands): Change local variables to 'unsigned'.
989 (set_history_size_command): Don't check history_size is negative.
990 Adjust the condition to call unstifle_history and set history_size
991 to UNIT_MAX.
992
993 2012-08-28 Pedro Alves <palves@redhat.com>
994
995 PR gdb/14428
996
997 * infcmd.c (default_print_one_register_info): New, factored out
998 from default_print_registers_info.
999 (default_print_registers_info): Use it. Mark value unavailable if
1000 necessary.
1001 (registers_info): Print user registers with
1002 default_print_one_register_info.
1003
1004 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 PR tui/14486
1007 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1008 is not NULL before referencing it.
1009
1010 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1013 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1014 original PC for it.
1015
1016 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1017 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 * auto-load.c (auto_load_objfile_script): Rename to ...
1020 (auto_load_objfile_script_1): ... here, change variable realname to
1021 parameter realname, document it, add return value, add variable retval.
1022 (auto_load_objfile_script): New function.
1023
1024 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1025
1026 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1027 followed by a whitespace.
1028
1029 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1030
1031 PR gdb/14494.
1032 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1033 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1034 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1035 here.
1036
1037 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1038
1039 * memattr.c (create_mem_region): Fix memory region overlapping
1040 checking.
1041
1042 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1043
1044 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1045 with xmalloc/cleanup.
1046 * mt-tdep.c (mt_push_dummy_call): Likewise.
1047 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1048 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1049
1050 2012-08-24 Yao Qi <yao@codesourcery.com>
1051
1052 * jv-exp.y (push_expression_name): Add "." at the end of error
1053 message.
1054
1055 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1056
1057 Document how to return from "python-interactive" to GDB.
1058 * python/python.c (_initialize_python): Update documentation.
1059
1060 2012-08-23 Pedro Alves <palves@redhat.com>
1061
1062 * infrun.c (_initialize_infrun) <handle command help text>:
1063 Mention that multiple signals are supported.
1064
1065 2012-08-23 Pedro Alves <palves@redhat.com>
1066
1067 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1068 string.
1069
1070 2012-08-23 Yao Qi <yao@codesourcery.com>
1071
1072 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1073 (tfind_1): Don't call registers_changed, set_traceframe_num,
1074 and clear_traceframe_info.
1075 Call set_current_traceframe.
1076 (set_current_traceframe): call set_traceframe_num.
1077
1078 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1079
1080 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1081 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1082
1083 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1084
1085 Enable readline in Python in a GDB-specific way and block the
1086 standard Python readline module to prevent conflicts with GDB.
1087 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1088 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1089 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1090 * python/py-gdb-readline.c: New file.
1091 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1092 prototype.
1093 * python/python.c (_initialize_python): Call
1094 gdbpy_initialize_gdb_readline.
1095
1096 2012-08-22 Keith Seitz <keiths@redhat.com>
1097
1098 * defs.h: Include build-gnulib/config.h
1099
1100 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1101
1102 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1103 and blx pc.
1104
1105 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1106
1107 Add a new "python-interactive" command that starts a standard
1108 Python interactive prompt with "pi" as alias, and add "py" as
1109 an alias to "python".
1110 * NEWS: Mention the new commands.
1111 * python/python.c (eval_python_command): New function.
1112 (python_interactive_command): For "python-interactive" with
1113 arguments, call eval_python_command. For "python-interactive"
1114 without arguments, call PyRun_InteractiveLoop.
1115 (_initialize_python): Add "python-interactive" command with
1116 "pi" as alias, and add "py" as an alias to "python".
1117
1118 2012-08-22 Tom Tromey <tromey@redhat.com>
1119
1120 * defs.h (quit_flag): Don't declare.
1121 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1122 (QUIT): Use new functions.
1123 * event-top.c (command_handler): Use clear_quit_flag.
1124 (handle_sigint): Use set_quit_flag.
1125 (async_request_quit): Use check_quit_flag. Don't check
1126 immediate_quit.
1127 * exceptions.c (throw_exception): Use clear_quit_flag.
1128 * main.c (captured_main): Use clear_quit_flag.
1129 * python/python.c (clear_quit_flag, set_quit_flag)
1130 (check_quit_flag): New functions.
1131 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1132 clear_quit_flag.
1133 * remote.c (remote_wait_as): Use check_quit_flag,
1134 clear_quit_flag.
1135 (remote_start_remote): Call QUIT.
1136 * symfile.c (load_progress): Use check_quit_flag.
1137 * top.c (command_loop): Use clear_quit_flag.
1138 (command_line_input): Call QUIT.
1139 * utils.c (quit_flag): Conditionally define.
1140 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1141 functions.
1142 (prompt_for_continue): Call QUIT. Use quit, not
1143 async_request_quit.
1144 * remote-mips.c (mips_expect_timeout): Call QUIT.
1145 * monitor.c (monitor_expect): Call QUIT.
1146
1147 2012-08-22 Tom Tromey <tromey@redhat.com>
1148
1149 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1150 (async_init_signals): Update.
1151 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1152 (SIGWINCH_HANDLER_BODY): Remove.
1153
1154 2012-08-22 Tom Tromey <tromey@redhat.com>
1155
1156 * jit.c (jit_object_close_impl): Don't malloc the objfile
1157 name.
1158 * objfiles.c (allocate_objfile): Don't malloc the objfile
1159 name.
1160 (free_objfile): Don't free the objfile name.
1161 * objfiles.h (struct objfile) <name>: Update comment.
1162 * symfile.c (reread_symbols): Fix reference counting. Don't
1163 malloc objfile name.
1164
1165 2012-08-22 Tom Tromey <tromey@redhat.com>
1166
1167 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1168 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1169 (symfile_bfd_open): Likewise.
1170 (generic_load): Likewise.
1171 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1172 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1173 gdb_bfd_open.
1174 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1175 Use gdb_bfd_open.
1176 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1177 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1178 (pmon_load_fast): Likewise.
1179 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1180 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1181 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1182 (macho_check_dsym): Likewise.
1183 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1184 (m32r_upload_command): Likewise.
1185 * gdb_bfd.h (gdb_bfd_cache): Declare.
1186 * gdb_bfd.c (struct gdb_bfd_data): New.
1187 (gdb_bfd_cache): New global.
1188 (struct gdb_bfd_cache_search): New.
1189 (hash_bfd): New function.
1190 (eq_bfd): Likewise.
1191 (gdb_bfd_open): Likewise.
1192 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1193 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1194 gdb_bfd_data.
1195 * exec.c (exec_file_attach): Use gdb_bfd_open.
1196 * dsrec.c (load_srec): Use gdb_bfd_open.
1197
1198 2012-08-22 Tom Tromey <tromey@redhat.com>
1199
1200 * dwarf2read.c (macro_start_file): Update.
1201 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1202 (free_objfile_per_bfd_storage): Destroy macro_cache.
1203 (allocate_objfile, free_objfile): Update.
1204 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1205 New field.
1206 (struct objfile) <macro_cache>: Remove.
1207 * symfile.c (reread_symbols): Update.
1208 * symmisc.c (print_symbol_bcache_statistics): Update.
1209 (print_objfile_statistics): Update.
1210
1211 2012-08-22 Tom Tromey <tromey@redhat.com>
1212
1213 * elfread.c (elf_symtab_read): Update.
1214 * objfiles.c (objfiles_bfd_data): New global.
1215 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1216 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1217 (allocate_objfile, free_objfile): Update.
1218 (_initialize_objfiles): Initialize objfiles_bfd_data.
1219 * objfiles.h (struct objfile_per_bfd_storage): New.
1220 (struct objfile) <per_bfd>: New field.
1221 <filename_cache>: Remove.
1222 (set_objfile_per_bfd): Declare.
1223 * symfile.c (reread_symbols): Update. Call
1224 set_objfile_per_bfd.
1225 (allocate_symtab): Update.
1226 * symmisc.c (print_symbol_bcache_statistics): Update.
1227 (print_objfile_statistics): Print the size of the BFD obstack.
1228
1229 2012-08-22 Tom Tromey <tromey@redhat.com>
1230
1231 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1232 * gdb_bfd.c: Use DEFINE_REGISTRY.
1233 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1234 (gdb_bfd_ref): Call bfd_alloc_data.
1235 (gdb_bfd_unref): Call bfd_free_data.
1236
1237 2012-08-22 Tom Tromey <tromey@redhat.com>
1238
1239 * registry.h (struct registry_fields): New.
1240 (REGISTRY_FIELDS): Redefine.
1241 (REGISTRY_ACCESS_FIELD): New macro.
1242 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1243 functions.
1244
1245 2012-08-22 Tom Tromey <tromey@redhat.com>
1246
1247 * auto-load.c (_initialize_auto_load): Update.
1248 * solib-svr4.c (_initialize_svr4_solib): Update
1249 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1250 * solib-darwin.c (_initialize_darwin_solib): Update.
1251 * registry.h: New file.
1252 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1253 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1254 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1255 (register_program_space_data_with_cleanup)
1256 (register_program_space_data, program_space_alloc_data)
1257 (clear_program_space_data, set_program_space_data)
1258 (program_space_data): Don't declare.
1259 * progspace.c: Use DEFINE_REGISTRY.
1260 (struct program_space_data, struct
1261 program_space_data_registration, struct
1262 program_space_data_registry, program_space_data_registry)
1263 (register_program_space_data_with_cleanup)
1264 (register_program_space_data, program_space_alloc_data)
1265 (program_space_free_data, clear_program_space_data)
1266 (set_program_space_data, program_space_data): Remove.
1267 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1268 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1269 (register_objfile_data_with_cleanup, register_objfile_data)
1270 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1271 declare.
1272 * objfiles.c: Use DEFINE_REGISTRY.
1273 (struct objfile_data, struct objfile_data_registration, struct
1274 objfile_data_registry, objfile_data_registry)
1275 (register_objfile_data_with_cleanup, register_objfile_data)
1276 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1277 (set_objfile_data, objfile_data): Remove.
1278 (_initialize_objfiles): Update.
1279 * jit.c (_initialize_jit): Update.
1280 * inflow.c (_initialize_inflow): Update.
1281 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1282 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1283 (register_inferior_data_with_cleanup, register_inferior_data)
1284 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1285 declare.
1286 * inferior.c: Use DEFINE_REGISTRY.
1287 (struct inferior_data, struct inferior_data_registration, struct
1288 inferior_data_registry, inferior_data_registry)
1289 (register_inferior_data_with_cleanup, register_inferior_data)
1290 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1291 (set_inferior_data, inferior_data): Remove.
1292 * auxv.c (_initialize_auxv): Update.
1293 * ada-lang.c (_initialize_ada_language): Update.
1294 * breakpoint.c (_initialize_breakpoint): Update.
1295 * i386-nat.c (i386_use_watchpoints): Update.
1296
1297 2012-08-22 Tom Tromey <tromey@redhat.com>
1298
1299 * exec.c (exec_close, exec_file_attach): Update.
1300 (add_to_section_table): Initialize 'key' field.
1301 (add_target_sections, remove_target_sections): Add 'key' argument.
1302 * exec.h (add_target_sections, remove_target_sections): Add
1303 'key' argument.
1304 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1305 (reload_shared_libraries_1): Update.
1306 * target.h (struct target_section) <key>: New field.
1307
1308 2012-08-22 Tom Tromey <tromey@redhat.com>
1309
1310 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1311
1312 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1313
1314 * symfile.c (allocate_symtab): Use host_address_to_string
1315 function instead of cast of pointer to long which is not
1316 compatible with x86_64-w64-mingw32 build.
1317
1318 2012-08-19 Andrew Pinski <apinski@cavium.com>
1319
1320 * mips-tdep.c (is_octeon): New function.
1321 (is_octeon_bbit_op): New function.
1322 (mips32_next_pc): Handle Octeon's bbit instructions.
1323 (mips32_instruction_has_delay_slot): Likewise.
1324
1325 2012-08-19 Andrew Pinski <apinski@cavium.com>
1326
1327 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1328 before the function.
1329
1330 2012-08-19 Andrew Pinski <apinski@cavium.com>
1331
1332 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1333
1334 2012-08-19 Keith Seitz <keiths@redhat.com>
1335
1336 PR c++/14365
1337 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1338 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1339
1340 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1341
1342 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1343 The typo broke "make TAGS".
1344
1345 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1346
1347 GDB 7.5 released.
1348
1349 2012-08-17 Keith Seitz <keiths@redhat.com>
1350
1351 PR c++/13356
1352 * gdbtypes.c (strict_type_checking): New variable.
1353 (show_strict_type_checking): New function.
1354 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1355 if strict type checking is disabled.
1356 (_initialize_gdbtypes): Add "check type" subcommand.
1357 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1358
1359 2012-08-17 Keith Seitz <keiths@redhat.com>
1360
1361 * language.h (type_mode): Remove.
1362 (type_check): Remove.
1363 (struct language_defn): Remove la_type_check.
1364 (STRICT_TYPE): Remove unused macro.
1365 (type_error): Remove.
1366 * language.c (set_type_range_case): Renamed to ...
1367 (set_range_case): ... this. Update all callers.
1368 Remove type_mode/type_check.
1369 (type_mode): Remove.
1370 (type_check): Remove.
1371 (show_type_command): Remove.
1372 (set_type_command): Remove.
1373 (language_info): Remove type checking output.
1374 (type_error): Remove unused function.
1375 (range_error): Update comment.
1376 (unknown_language_defn): Remove la_type_check.
1377 (auto_language_defn): Likewise.
1378 (local_language_defn): Likewise.
1379 (_initialize_language): Remove "check type" subcommand.
1380 * ada-lang.c (ada_language_defn): Remove la_type_check.
1381 * c-lang.c (c_language_defn): Likewise.
1382 (cplus_language_defn): Likewise.
1383 (asm_language_defn): Likewise.
1384 (minimal_language_defn): Likewise.
1385 * d-lang.c (d_language_defn): Likewise.
1386 * f-lang.c (f_language_defn): Likewise.
1387 * go-lang.c (go_language_defn): Likewise.
1388 * jv-lang.c (java_language_defn): Likewise.
1389 * m2-lang.c (m2_language_defn): Likewise.
1390 * objc-lang.c (objc_language_defn): Likewise.
1391 * opencl-lang.c (opencl_language_defn): Likewise.
1392 * p-lang.c (pascal_language_defn): Likewise.
1393
1394 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1395
1396 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1397
1398 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1399
1400 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1401 New function.
1402 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1403 using the regache. Use ia64_hpux_get_register_from_save_state_t
1404 to access the bsp and bspstore registers if not.
1405
1406 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1407
1408 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1409 * breakpoint.c (detach_breakpoints): Change pid parameter into
1410 a ptid. Adjust code accordingly.
1411 * infrun.c (handle_inferior_event): Delete variable child_pid.
1412 Update call to detach_breakpoints to pass the child ptid for
1413 fork events.
1414 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1415 assert that inferior_ptid's lwp is zero.
1416 (linux_handle_extended_wait): Update call to detach_breakpoints.
1417 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1418 detach_breakpoints.
1419
1420 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1421
1422 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1423 parent, only call detach_breakpoints if tts.tts_event ==
1424 TTEVT_VFORK.
1425
1426 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1427
1428 * dwarf2-frame.c (dwarf2_frame_cache): Use
1429 get_frame_address_in_block instead of get_frame_pc as
1430 the bound for executing the frame's FDE.
1431
1432 2012-08-16 Yao Qi <yao@codesourcery.com>
1433
1434 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1435 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1436 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1437 (c_type_print_varspec_suffix): Likewise.
1438 * eval.c (evaluate_subexp_standard): Likewise.
1439 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1440 (f_type_print_varspec_suffix): Likewise.
1441 * gdbtypes.c (is_scalar_type): Likewise.
1442 (recursive_dump_type): Likewise.
1443 * infcall.c (value_arg_coerce): Likewise.
1444 * m2-valprint.c (m2_val_print): Likewise.
1445 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1446 (pascal_type_print_varspec_suffix): Likewise.
1447 (pascal_type_print_base): Likewise.
1448 * p-valprint.c (pascal_val_print): Likewise.
1449 (pascal_val_print): Likewise.
1450 * valops.c (value_slice): Likewise.
1451 * valprint.c (scalar_type_p): Likewise.
1452 * valarith.c (value_bitstring_subscript): Remove.
1453 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1454 Remove comment on TYPE_CODE_BITSTRING.
1455
1456 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1457 TYPE_CODE_BITSTRING.
1458
1459 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1460 slot 0.
1461
1462 2012-08-16 Yao Qi <yao@codesourcery.com>
1463
1464 * tracepoint.c (trace_find_none_command): Remove.
1465 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1466
1467 2012-08-16 Yao Qi <yao@codesourcery.com>
1468
1469 * remote.c (handle_notification): Remove parameter 'length'.
1470 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1471
1472 2012-08-15 Keith Seitz <keiths@redhat.com>
1473
1474 * gdbtypes.c (opaque_type_resolution): Make static.
1475 Add missing comment.
1476 (overload_debug): Add missing comment.
1477 (show_opaque_type_resolution): Likewise.
1478 (show_overload_debug): Likewise.
1479 (print_bit_vector): Remove unnecessary forward declaration.
1480 (print_arg_types): Likewise.
1481 (dump_fn_fieldlists): Likewise.
1482 (print_cplus_stuff): Likewise.
1483
1484 2012-08-15 Tom Tromey <tromey@redhat.com>
1485
1486 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1487 (gdb_bfd_ref): Initialize new field.
1488 (gdb_bfd_unref): Unref the archive BFD.
1489 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1490 parent archive.
1491
1492 2012-08-15 Tom Tromey <tromey@redhat.com>
1493
1494 PR python/14387:
1495 * python/py-bpevent.c (create_breakpoint_event_object): Update
1496 comment.
1497 * python/py-event.c (evpy_add_attribute): Update comment.
1498 * python/py-exitedevent.c (create_exited_event_object): Fix
1499 reference counting and error handling.
1500 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1501 Fix reference counting.
1502 * python/py-signalevent.c (create_signal_event_object): Fix
1503 reference counting and error handling.
1504 * python/py-stopevent.c (emit_stop_event): Fix reference
1505 counting.
1506 * python/py-threadevent.c (get_event_thread): Return a
1507 borrowed reference.
1508 * python/py-type.c (convert_field): Fix reference counting.
1509
1510 2012-08-15 Tom Tromey <tromey@redhat.com>
1511
1512 * dwarf2read.c (dwarf_decode_macro_bytes)
1513 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1514 as hash key.
1515
1516 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1517
1518 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1519 stepi, nexti, finish, next, step, jump, and continue commands.
1520 * infrun.c (_initialize_infrun): Update help text for the handle
1521 command.
1522
1523 2012-08-14 Doug Evans <dje@google.com>
1524
1525 * gdbtypes.c (struct extra): Delete, unused.
1526
1527 * gdbtypes.c: Whitespace cleanup.
1528 (address_space_name_to_int): Remove "extern" from definition.
1529 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1530
1531 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1532 TYPE_POINTER_TYPE (type).
1533
1534 2012-08-14 Gary Benson <gbenson@redhat.com>
1535
1536 * solib-svr4.c (svr4_free_library_list): Use free_so.
1537
1538 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1539
1540 * .gitignore: Add go-exp.c.
1541
1542 2012-08-13 Doug Evans <dje@google.com>
1543
1544 * value.c (show_convenience): Tweak comment.
1545 (_initialize_values): Mention convenience functions in the help text
1546 for "show convenience".
1547
1548 2012-08-13 Yao Qi <yao@codesourcery.com>
1549
1550 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1551 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1552 TERNOP_SLICE_COUNT.
1553 * eval.c (evaluate_subexp_standard): Likewise.
1554 * expprint.c (print_subexp_standard): Likewise.
1555 (dump_subexp_body_standard): Likewise.
1556 * parse.c (operator_length_standard): Likewise.
1557
1558 2012-08-13 Yao Qi <yao@codesourcery.com>
1559
1560 * std-operator.def: Remove OP_BITSTRING.
1561 * breakpoint.c (watchpoint_exp_is_const): Update.
1562 * eval.c (evaluate_subexp_standard): Remove handling to
1563 OP_BITSTRING.
1564 * expprint.c (print_subexp_standard): Likewise.
1565 (dump_subexp_body_standard): Likewise.
1566 * parse.c (operator_length_standard): Likewise.
1567 * valops.c (value_bitstring): Remove.
1568 * value.h: Remove the declaration of 'value_bitstring'.
1569
1570 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1571
1572 * linespec.c (find_methods): Remove unused variables `i1' and
1573 `name_len'.
1574 (decode_line_full): Likewise for `arg_start'.
1575
1576 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1577
1578 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1579 (zlib_decompress_section): Likewise for `section_data'.
1580 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1581
1582 2012-08-10 Doug Evans <dje@google.com>
1583
1584 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1585 * NEWS: Document them.
1586 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1587 function/strfns.py.
1588 * python/py-type.c (typy_array_1): New function.
1589 (typy_array): Call it.
1590 (typy_vector): New function.
1591 (type_object_methods): Add "vector".
1592 * python/lib/gdb/function/__init__.py: New file.
1593 * python/lib/gdb/function/strfns.py: New file.
1594
1595 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1596
1597 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1598 for TYPE_FIELD_BITPOS.
1599 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1600
1601 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1602
1603 PR cli/10436:
1604 * common/vec.h (VEC_merge): Define.
1605 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1606 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1607 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1608 * completer.c: Include gdb_signals.h.
1609 (signal_completer): Define.
1610 * completer.h (signal_completer): Add prototype.
1611 * infcmd.c (_initialize_infcmd): Assign the command
1612 completer for "signal" to handle_completer.
1613 * infrun.c: Include completer.h.
1614 (handle_completer): Define.
1615 (_initialize_infrun): Declare a new local variable c. Store the
1616 result of add_com("handle") to it. Assign the command
1617 completer for "handle" to handle_completer.
1618
1619 2012-08-09 Yao Qi <yao@codesourcery.com>
1620
1621 * cli/cli-decode.c (set_cmd_prefix): New.
1622 (lookup_cmd_for_prefixlist): New.
1623 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1624 of each cmd_list_element in *prefixlist.
1625 (add_setshow_cmd_full): set_cmd_prefix.
1626 (add_alias_cmd): Likewise.
1627 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1628 Declare 'auto_boolean_enums'.
1629 * cli/cli-setshow.c: Include "observer.h".
1630 (notify_command_param_changed_p): New.
1631 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1632 Remove 'static'.
1633 (do_setshow_command): Split it to ...
1634 (do_set_command, do_show_command): ... them. New.
1635 (do_set_command): Call observer_notify_command_param_changed if
1636 notify_command_param_changed_p returns true.
1637 (cmd_show_list): Caller update.
1638 * auto-load.c (set_auto_load_cmd): Likewise.
1639 * remote.c (show_remote_cmd): Likewise.
1640 * cli/cli-setshow.h: Update declarations.
1641 * top.c (execute_command): Call do_set_command and do_show_command.
1642
1643 * NEWS: Mention new MI notification.
1644 * mi/mi-interp.c: Declare mi_command_param_changed.
1645 (mi_interpreter_init): Attach mi_command_param_changed to
1646 observer command_param_changed.
1647 (mi_command_param_changed): New.
1648 Remove mi_suppress_breakpoint_notifications.
1649 Define global variable mi_suppress_notification.
1650 (mi_breakpoint_created): Update.
1651 (mi_breakpoint_deleted): Likewise.
1652 (mi_breakpoint_modified): Likewise.
1653 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1654 'gdb-set' and set mi_suppress_notification.
1655 * mi/mi-main.h: (mi_suppress_notification): New struct.
1656
1657 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1658 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1661
1662 2012-08-09 Yao Qi <yao@codesourcery.com>
1663
1664 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1665 (skiplist): Move it to skip.c.
1666 (init_cmd_lists): Remove code setting enablebreaklist and
1667 skiplist to NULL.
1668 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1669 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1670 skiplist.
1671 * gdbcmd.h: Likewise.
1672 * skip.c (_initialize_step_skip): Move 'skiplist' from
1673 cli/cli-cmds.c.
1674
1675 2012-08-09 Yao Qi <yao@codesourcery.com>
1676
1677 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1678 * gnu-nat.c, symfile.c: Likewise.
1679
1680 2012-08-08 Aaron Gamble <agamble@google.com>
1681
1682 * utils.c (prompt_for_continue_wait_time): New static global.
1683 (make_command_stats_cleanup): Initialize it.
1684 (report_command_stats): Subtract time waiting for user.
1685 (prompt_for_continue): Track time waiting for user.
1686 (defaulted_query): Track time waiting for user.
1687
1688 2012-08-08 Doug Evans <dje@google.com>
1689
1690 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1691 UNOP_MEMVAL_TYPE.
1692 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1693 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1694 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1695 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1696 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1697 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1698 elt.
1699 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1700 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1701 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1702 (dump_prefix_expression): Handle OP_TYPE.
1703
1704 2012-08-08 Keith Seitz <keiths@redhat.com>
1705
1706 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1707 addr_start.
1708
1709 2012-08-08 Doug Evans <dje@google.com>
1710
1711 * linux-thread-db.c: #include "gdb_vecs.h".
1712 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1713 updated.
1714 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1715 (thread_db_load_search): Use a vector to iterate over path elements.
1716 Handle text appearing after "$pdir".
1717
1718 * gdb_string.h: Moved to ...
1719 * common/gdb_string.h: ... here.
1720 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1721 gdb_string.h and gdb_assert.h.
1722
1723 2012-08-08 Yao Qi <yao@codesourcery.com>
1724
1725 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1726 (tic6x_value_to_register): Likewise.
1727 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1728 and set_gdbarch_value_to_register.
1729
1730 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 Jean-Marc Saffroy <saffroy@gmail.com>
1732
1733 PR 11804
1734 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1735 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1736 * gcore.c (gcore_create_callback): New function comment. Add modified
1737 parameter. Only write modified regions. Set SEC_READONLY exactly
1738 according to MODIFIED.
1739 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1740 the passed modified value to FUNC.
1741 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1742 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1743 first. New variables modified and has_anonymous. Parse the lines of
1744 smaps file. Add the passed MODIFIED value to FUNC.
1745 * procfs.c (find_memory_regions_callback): Add the passed modified
1746 value.
1747
1748 2012-08-06 Tom Tromey <tromey@redhat.com>
1749
1750 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1751 (dwarf2_frame_cache): Use it.
1752 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1753 cache initialization constraint.
1754
1755 2012-08-06 Tom Tromey <tromey@redhat.com>
1756
1757 PR python/14386:
1758 * varobj.c (update_dynamic_varobj_children): Don't call
1759 PyIter_Check.
1760
1761 2012-08-06 Tom Tromey <tromey@redhat.com>
1762
1763 PR cli/14392:
1764 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1765
1766 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1767
1768 * NEWS: New entry for 'cd' default parameters.
1769 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1770
1771 2012-08-03 Tom Tromey <tromey@redhat.com>
1772
1773 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1774 return.
1775
1776 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1777
1778 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1779 to attempting lseek/write.
1780 (inf_child_fileio_pread): Likewise for pread.
1781
1782 2012-08-02 Yao Qi <yao@codesourcery.com>
1783
1784 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1785 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1786 add_setshow_zinteger_cmd.
1787 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1788 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1789 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1790 instead of add_setshow_zinteger_cmd.
1791 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1792 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1793 instead of add_setshow_zinteger_cmd.
1794 * frame.c (frame_debug): Add 'unsigned'.
1795 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1796 add_setshow_zinteger_cmd.
1797 * frame.h: Update the declaration of 'frame_debug'.
1798 * gdbtypes.c (overload_debug): Add 'unsigned'.
1799 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1800 add_setshow_zinteger_cmd.
1801 * inferior.h: Update declaration of 'debug_infrun'.
1802 * infrun.c (debug_infrun): Add 'unsigned'.
1803 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1804 add_setshow_zinteger_cmd.
1805 * jit.c (jit_debug): Add 'unsigned'.
1806 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1807 add_setshow_zinteger_cmd.
1808 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1809 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1810 instead of add_setshow_zinteger_cmd.
1811 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1812 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1813 add_setshow_zinteger_cmd.
1814 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1815 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1816 instead of add_setshow_zinteger_cmd.
1817 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1818 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1819 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1820 intead of add_setshow_zinteger_cmd.
1821 * mips-tdep.c (mips_debug): Add 'unsigned'.
1822 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1823 instead of add_setshow_zinteger_cmd.
1824 * monitor.c (monitor_debug): Add 'unsigned'.
1825 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1826 add_setshow_zinteger_cmd.
1827 * observer.c (observer_debug): Add 'unsigned'.
1828 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1829 add_setshow_zinteger_cmd.
1830 * parse.c (expressiondebug): Add 'unsigned'.
1831 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1832 add_setshow_zinteger_cmd.
1833 * record.c (record_debug): Add 'unsigned'.
1834 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1835 add_setshow_zinteger_cmd.
1836 * record.h: Update the declaration of 'record_debug'.
1837 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1838 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1839 add_setshow_zinteger_cmd.
1840 * serial.c (global_serial_debug_p): Add 'unsigned'.
1841 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1842 add_setshow_zinteger_cmd.
1843 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1844 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1845 add_setshow_zinteger_cmd.
1846 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1847 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1848 add_setshow_zinteger_cmd.
1849 * target.c (targetdebug): Add 'unsigned'.
1850 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1851 add_setshow_zinteger_cmd.
1852 * valops.c (overload_debug): Add 'unsigned'.
1853 * varobj.c (varobjdebug): Add 'unsigned'.
1854 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1855 add_setshow_zinteger_cmd.
1856 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1857 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1858 instead of add_setshow_zinteger_cmd.
1859
1860 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1861 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1862 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1863 instead of add_setshow_zinteger_cmd.
1864 * gdbarch.c, gdbarch.h: Re-generated.
1865
1866 2012-08-02 Yao Qi <yao@codesourcery.com>
1867
1868 * nto-tdep.c: Don't include cli/cli-decode.h and
1869 cli/cli-cmds.h.
1870 (_initialize_nto_tdep): Remove.
1871 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1872 Remove field.
1873 Remove macro nto_internal_debugging.
1874
1875 2012-08-01 Richard Henderson <rth@redhat.com>
1876
1877 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1878 (mep-*-*) [gdb_target_obs]: Likewise.
1879
1880 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1881
1882 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1883 linux_get_siginfo_type.
1884
1885 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1888 AT_ENTRY_POINT.
1889 (call_function_by_hand) <ON_STACK>: Call write_memory with
1890 gdbarch_breakpoint_from_pc, if possible.
1891 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1892 here.
1893
1894 2012-07-31 Yao Qi <yao@codesourcery.com>
1895
1896 * tracepoint.c: Add 'static' for some variables.
1897
1898 2012-07-31 Yao Qi <yao@codesourcery.com>
1899
1900 * go32-nat.c: Declare _initialize_go32_nat.
1901 * ser-go32.c: Declare _initialize_ser_dos.
1902 * top.c (do_chdir_cleanup): Add 'static'.
1903
1904 2012-07-30 Keith Seitz <keiths@redhat.com>
1905
1906 * linespec.c (linespec_lex_number): A number followed
1907 by quotes is a valid number, too.
1908
1909 2012-07-30 Tom Tromey <tromey@redhat.com>
1910
1911 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1912
1913 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1914
1915 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1916 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1917
1918 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1919
1920 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1921 invalid or reevaluated to prevent prevent references to possibly
1922 delete'd type objects being left in the varobj.
1923
1924 2012-07-27 Tom Tromey <tromey@redhat.com>
1925 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * copying.awk: Print buffer-read-only and vi ro markers.
1928 * copying.c: Rebuild.
1929 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1930 * gdbarch.c, gdbarch.h: Rebuild.
1931 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1932 buffer-read-only and vi ro markers.
1933 * features/arm-with-iwmmxt.c: Rebuild.
1934 * features/arm-with-m-fpa-layout.c: Rebuild.
1935 * features/arm-with-m-vfp-d16.c: Rebuild.
1936 * features/arm-with-m.c: Rebuild.
1937 * features/arm-with-neon.c: Rebuild.
1938 * features/arm-with-vfpv2.c: Rebuild.
1939 * features/arm-with-vfpv3.c: Rebuild.
1940 * features/i386/amd64-avx-linux.c: Rebuild.
1941 * features/i386/amd64-avx.c: Rebuild.
1942 * features/i386/amd64-linux.c: Rebuild.
1943 * features/i386/amd64.c: Rebuild.
1944 * features/i386/i386-avx-linux.c: Rebuild.
1945 * features/i386/i386-avx.c: Rebuild.
1946 * features/i386/i386-linux.c: Rebuild.
1947 * features/i386/i386-mmx-linux.c: Rebuild.
1948 * features/i386/i386-mmx.c: Rebuild.
1949 * features/i386/i386.c: Rebuild.
1950 * features/i386/x32-avx-linux.c: Rebuild.
1951 * features/i386/x32-avx.c: Rebuild.
1952 * features/i386/x32-linux.c: Rebuild.
1953 * features/i386/x32.c: Rebuild.
1954 * features/mips-dsp-linux.c: Rebuild.
1955 * features/mips-linux.c: Rebuild.
1956 * features/mips64-dsp-linux.c: Rebuild.
1957 * features/mips64-linux.c: Rebuild.
1958 * features/rs6000/powerpc-32.c: Rebuild.
1959 * features/rs6000/powerpc-32l.c: Rebuild.
1960 * features/rs6000/powerpc-403.c: Rebuild.
1961 * features/rs6000/powerpc-403gc.c: Rebuild.
1962 * features/rs6000/powerpc-405.c: Rebuild.
1963 * features/rs6000/powerpc-505.c: Rebuild.
1964 * features/rs6000/powerpc-601.c: Rebuild.
1965 * features/rs6000/powerpc-602.c: Rebuild.
1966 * features/rs6000/powerpc-603.c: Rebuild.
1967 * features/rs6000/powerpc-604.c: Rebuild.
1968 * features/rs6000/powerpc-64.c: Rebuild.
1969 * features/rs6000/powerpc-64l.c: Rebuild.
1970 * features/rs6000/powerpc-7400.c: Rebuild.
1971 * features/rs6000/powerpc-750.c: Rebuild.
1972 * features/rs6000/powerpc-860.c: Rebuild.
1973 * features/rs6000/powerpc-altivec32.c: Rebuild.
1974 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1975 * features/rs6000/powerpc-altivec64.c: Rebuild.
1976 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1977 * features/rs6000/powerpc-cell32l.c: Rebuild.
1978 * features/rs6000/powerpc-cell64l.c: Rebuild.
1979 * features/rs6000/powerpc-e500.c: Rebuild.
1980 * features/rs6000/powerpc-e500l.c: Rebuild.
1981 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1982 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1983 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1984 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1985 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1986 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1987 * features/rs6000/powerpc-vsx32.c: Rebuild.
1988 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1989 * features/rs6000/powerpc-vsx64.c: Rebuild.
1990 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1991 * features/rs6000/rs6000.c: Rebuild.
1992 * features/s390-linux32.c: Rebuild.
1993 * features/s390-linux32v1.c: Rebuild.
1994 * features/s390-linux32v2.c: Rebuild.
1995 * features/s390-linux64.c: Rebuild.
1996 * features/s390-linux64v1.c: Rebuild.
1997 * features/s390-linux64v2.c: Rebuild.
1998 * features/s390x-linux64.c: Rebuild.
1999 * features/s390x-linux64v1.c: Rebuild.
2000 * features/s390x-linux64v2.c: Rebuild.
2001 * features/tic6x-c62x-linux.c: Rebuild.
2002 * features/tic6x-c62x.c: Rebuild.
2003 * features/tic6x-c64x-linux.c: Rebuild.
2004 * features/tic6x-c64x.c: Rebuild.
2005 * features/tic6x-c64xp-linux.c: Rebuild.
2006 * features/tic6x-c64xp.c: Rebuild.
2007
2008 2012-07-27 Tom Tromey <tromey@redhat.com>
2009
2010 * c-exp.y (classify_name): Avoid assignment in condition.
2011
2012 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2013
2014 * amd64-windows-tdep.c: Include "frame.h".
2015 (amd64_windows_skip_trampoline_code): New function.
2016 (amd64_windows_init_abi): Add trampoline registration.
2017
2018 2012-07-27 Yao Qi <yao@codesourcery.com>
2019
2020 * tracepoint.c (cur_traceframe_number): Remove.
2021 (set_tfile_traceframe): Remove.
2022 (tfile_trace_find, tfile_fetch_registers): Update callers.
2023 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2024 (tfile_open, tfile_trace_find): Likewise.
2025
2026 2012-07-27 Yao Qi <yao@codesourcery.com>
2027
2028 * thread.c (switch_to_thread): Don't call registers_changed.
2029
2030 2012-07-26 Tom Tromey <tromey@redhat.com>
2031
2032 * Makefile.in (SFILES): Remove objc-exp.y.
2033 (YYFILES): Remove objc-exp.c.
2034 (YYOBJ): Remove objc-exp.o.
2035 (local-maintainer-clean): Don't mention objc-exp.c.
2036 * c-exp.y: Include objc-lang.h.
2037 (%union) <class>: New field.
2038 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2039 (exp): Clone subscript production for OBJC_LBRAC. Add various
2040 Objective C productions.
2041 (msglist, msgarglist, msgarg): New productions.
2042 (array_mod, func_mod, operator): Clone productions for
2043 OBJC_LBRAC.
2044 (parse_string_or_char): Handle '@' strings.
2045 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2046 (classify_name): Check la_name_of_this. Recognize ObjC class
2047 names.
2048 * objc-exp.y: Remove.
2049 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2050 * objc-lang.h (objc_parse, objc_error): Don't declare.
2051
2052 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2053
2054 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2055
2056 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2057
2058 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2059 and decrement.
2060
2061 2012-07-26 Tom Tromey <tromey@redhat.com>
2062
2063 * copying.c: Rebuild.
2064 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2065 'no_class'.
2066
2067 2012-07-26 Tom Tromey <tromey@redhat.com>
2068
2069 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2070 immediate_quit.
2071 (print_objfile_statistics): Likewise.
2072 (maintenance_print_symbols): Likewise.
2073 (maintenance_print_msymbols): Likewise.
2074 (maintenance_print_objfiles): Likewise.
2075 * psymtab.c (print_partial_symbols): Call QUIT.
2076 (maintenance_print_psymbols): Likewise. Don't modify
2077 immediate_quit.
2078 * copying.c (show_copying_command): Don't modify immediate_quit.
2079 (show_warranty_command): Likewise.
2080 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2081
2082 2012-07-26 Keith Seitz <keiths@redhat.com>
2083
2084 * linespec.c (linespec_lexer_lex_number): The input
2085 is also a valid number if the next character is a comma
2086 or colon.
2087
2088 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2089
2090 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2091 configure options.
2092
2093 2012-07-26 Tristan Gingold <gingold@adacore.com>
2094
2095 * machoread.c: Include gdb_bfd.h.
2096
2097 2012-07-26 Tristan Gingold <gingold@adacore.com>
2098
2099 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2100 offset.
2101
2102 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2103
2104 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2105 SIZE to size_t.
2106 (dwarf2_evaluate_loc_desc): Likewise.
2107 (dwarf2_loc_desc_needs_frame): Likewise.
2108 (locexpr_describe_location_1): Likewise.
2109 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2110 size_t.
2111 (struct dwarf2_loclist_baton): Likewise.
2112 * dwarf2read.c (struct dwarf_block): Likewise.
2113 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2114 (decode_locdesc): Expand SIZE and I to size_t.
2115
2116 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2117
2118 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2119
2120 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2121
2122 * doublest.c (convert_doublest_to_floatformat): If the exponent
2123 is too small, treat the value as zero. If the exponent is too
2124 large, treat the value as infinity.
2125
2126 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2127
2128 * configure.ac: Add --enable-lmcheck configure option.
2129 * configure: Regenerate.
2130
2131 2012-07-25 Tom Tromey <tromey@redhat.com>
2132
2133 * NEWS: Mention maint info bfds.
2134 * gdb_bfd.c (all_bfds): New global.
2135 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2136 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2137 New functions.
2138
2139 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2140
2141 * configure.tgt: Add v850*-*-rtems*.
2142
2143 2012-07-25 Tom Tromey <tromey@redhat.com>
2144
2145 * macrotab.c (macro_bcache_str): Remove cast.
2146
2147 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2148
2149 * linespec.c (linespec_lexer_lex_number): Update comments,
2150 change the return and add check to make sure the input is
2151 the decimal numbers.
2152 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2153 false, call linespec_lexer_lex_string.
2154
2155 2012-07-24 Tom Tromey <tromey@redhat.com>
2156
2157 * symfile.c (symbol_file_add): Don't open BFD twice.
2158
2159 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2160
2161 * breakpoint.c (create_breakpoint): Store condition for pending
2162 breakpoints.
2163
2164 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2165
2166 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2167 (m68k_return_value): Handle complex types like structures.
2168 (m68k_svr4_return_value): Likewise.
2169
2170 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2171
2172 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2173 parameters to bfd_get_section_name.
2174
2175 2012-07-24 Yao Qi <yao@codesourcery.com>
2176
2177 * cli/cli-setshow.c: Handle case 'var_uinteger'
2178 and 'var_zuninteger' together. Handle case 'var_integer' and
2179 'var_zinteger' together.
2180
2181 2012-07-23 Keith Seitz <keiths@redhat.com>
2182
2183 * linespec.c (convert_linespec_to_sal): Don't add
2184 any symbols to the result vector if symbol_to_sal
2185 returns zero.
2186
2187 2012-07-23 Keith Seitz <keiths@redhat.com>
2188
2189 * linespec.c (decode_objc): Record the function name
2190 in the linespec.
2191
2192 2012-07-23 Tom Tromey <tromey@redhat.com>
2193
2194 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2195 counting.
2196 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2197 (map_vmap): Acquire a reference to the BFD.
2198
2199 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2200
2201 * p-valprint.c (pascal_object_print_value): Replace potentially
2202 unsafe alloca with xmalloc/xfree.
2203 * valops.c (search_struct_method): Likewise.
2204
2205 2012-07-23 Tom Tromey <tromey@redhat.com>
2206
2207 * solib-svr4.c (enable_break): Update.
2208 * bfd-target.h (target_bfd_reopen): Update documentation.
2209
2210 2012-07-23 Tom Tromey <tromey@redhat.com>
2211
2212 * symfile.c (separate_debug_file_exists): Update.
2213 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2214 (reread_symbols): Update.
2215 * elfread.c (build_id_verify): Update.
2216 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2217 bfd_open_maybe_remote.
2218
2219 2012-07-23 Tom Tromey <tromey@redhat.com>
2220
2221 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2222
2223 2012-07-23 Tom Tromey <tromey@redhat.com>
2224
2225 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2226 and 'abfd'.
2227 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2228 and 'abfd'.
2229 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2230 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2231 'abfd'.
2232 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2233 * objfiles.c (allocate_objfile): Acquire a new reference.
2234 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2235 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2236 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2237 a cleanup for 'nbfd'.
2238 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2239 for 'nbfd'.
2240 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2241 make a cleanup for 'abfd'.
2242 (symbol_file_add): Make a BFD cleanup.
2243
2244 2012-07-23 Tom Tromey <tromey@redhat.com>
2245
2246 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2247 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2248 * corelow.c (core_open): Use gdb_bfd_fopen.
2249 * dsrec.c (load_srec): Use gdb_bfd_openr.
2250 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2251 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2252 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2253 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2254 (gdb_bfd_fdopenr): New functions.
2255 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2256 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2257 (gdb_bfd_fdopenr): Declare.
2258 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2259 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2260 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2261 gdb_bfd_openr_next_archived_file.
2262 (macho_check_dsym): Use gdb_bfd_openr.
2263 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2264 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2265 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2266 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2267 gdb_bfd_openr.
2268 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2269 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2270 gdb_bfd_openr_next_archived_file.
2271 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2272 Use gdb_bfd_openr.
2273 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2274 gdb_bfd_openr.
2275 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2276 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2277 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2278 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2279 (symfile_bfd_open): Use gdb_bfd_fopen.
2280 (generic_load): Use gdb_bfd_openr.
2281 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2282
2283 2012-07-23 Tom Tromey <tromey@redhat.com>
2284
2285 * bfd-target.c (target_bfd_reopen): Update.
2286 * cli/cli-dump.c (bfd_openr_with_cleanup)
2287 (bfd_openw_with_cleanup): Update.
2288 * corelow.c (core_open): Update.
2289 * dsrec.c (load_srec): Update.
2290 * exec.c (exec_file_attach): Update.
2291 * gcore.c (create_gcore_bfd): Update.
2292 * gdb_bfd.c (gdb_bfd_ref): Return void.
2293 (gdb_bfd_open): Update.
2294 * gdb_bfd.h (gdb_bfd_ref): Return void.
2295 Update comments.
2296 * jit.c (jit_bfd_try_read_symtab): Update.
2297 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2298 * machoread.c (macho_symfile_read_all_oso): Update.
2299 (macho_check_dsym): Update.
2300 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2301 * remote-m32r-sdi.c (m32r_load): Update.
2302 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2303 * rs6000-nat.c (add_vmap): Update.
2304 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2305 Update.
2306 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2307 * solib-spu.c (spu_bfd_open): Update.
2308 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2309 * spu-linux-nat.c (spu_bfd_open): Update.
2310 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2311 (generic_load): Update.
2312 * windows-nat.c (windows_make_so): Update.
2313
2314 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2315
2316 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2317
2318 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2319
2320 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2321 SIGTRAMP_FRAME unwinding.
2322
2323 2012-07-20 Doug Evans <dje@google.com>
2324
2325 * NEWS: Document new options "set/show use-deprecated-index-sections",
2326 and delete reference to --use-deprecated-index-sections.
2327 * symfile.h (use_deprecated_index_sections): Delete.
2328 * dwarf2read.c (use_deprecated_index_sections): Make static.
2329 (read_index_from_section): Update wording of how to load
2330 deprecated index sections.
2331 (_initialize_dwarf2_read): New options
2332 "set/show use-deprecated-index-sections".
2333 * main.c (captured_main): Delete --use-deprecated-index-sections.
2334
2335 2012-07-20 Pedro Alves <palves@redhat.com>
2336
2337 PR threads/11692
2338 PR gdb/12203
2339
2340 * infrun.c (handle_inferior_event) <new thread>: Don't special
2341 case minus_one_ptid.
2342 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2343 * linux-thread-db.c (thread_get_info_callback): Don't return early
2344 if the thread is zombie.
2345 (thread_from_lwp): Change return type to void. Rewrite stale
2346 comment.
2347 (attach_thread): Don't return early if the thread is zombie,
2348 instead set its "dying" flag.
2349 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2350 (find_new_threads_callback): Don't return early if the thread is
2351 zombie.
2352
2353 2012-07-20 Pedro Alves <palves@redhat.com>
2354
2355 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2356 * target.c (target_wait): Likewise.
2357 (str_comma_list_concat_elem, do_option, target_options_to_string):
2358 New functions.
2359 * target.h (target_options_to_string): Declare.
2360
2361 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Tom Tromey <tromey@redhat.com>
2363
2364 * dwarf2read.c (dwarf_decode_macros)
2365 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2366 DW_MACRO_GNU_transparent_include_alt>: New cases.
2367 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2368 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2369
2370 2012-07-20 Tom Tromey <tromey@redhat.com>
2371
2372 * dwarf2read.c (try_open_dwo_file): Don't call
2373 gdb_bfd_stash_filename.
2374
2375 2012-07-20 Pedro Alves <palves@redhat.com>
2376
2377 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2378 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2379 (i386_process_record): Tweak description comments.
2380
2381 2012-07-20 Pedro Alves <palves@redhat.com>
2382
2383 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2384 (i386_process_record): Use record_read_memory.
2385 * record.c (record_read_memory): New function.
2386 (record_arch_list_add_mem, record_exec_insn): Use
2387 record_read_memory.
2388 * record.h (record_read_memory): Declare.
2389
2390 2012-07-20 Yao Qi <yao@codesourcery.com>
2391
2392 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2393 NULL for xfree.
2394
2395 2012-07-19 Pedro Alves <palves@redhat.com>
2396
2397 * record.c (record_resume): Ask the target beneath to report all
2398 signals.
2399
2400 2012-07-19 Doug Evans <dje@google.com>
2401
2402 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2403 there's no section at address zero.
2404 (dwarf2_record_block_ranges): Ditto.
2405
2406 2012-07-19 Yao Qi <yao@codesourcery.com>
2407
2408 * command.h, remote.c: Fix a typo in comment.
2409
2410 2012-07-19 Tom Tromey <tromey@redhat.com>
2411
2412 PR exp/13206:
2413 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2414 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2415 OP_DECLTYPE>: New cases.
2416 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2417 (type_exp): Add new productions.
2418 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2419 and decltype.
2420 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2421 New case.
2422 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2423 OP_DECLTYPE>: New case.
2424 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2425 New case.
2426 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2427 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2428
2429 2012-07-19 Tom Tromey <tromey@redhat.com>
2430
2431 * c-exp.y (enum token_flags): New.
2432 (struct token) <cxx_only>: Remove.
2433 <flags>: New field.
2434 (tokentab3, tokentab2, ident_tokens): Update.
2435 (lex_one_token): Update. Handle FLAG_SHADOW.
2436
2437 2012-07-19 Tom Tromey <tromey@redhat.com>
2438
2439 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2440 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2441 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2442 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2443 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2444 type_exp production where appropriate.
2445 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2446 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2447 <UNOP_MEMVAL_TYPE>: New case.
2448 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2449 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2450 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2451 <UNOP_MEMVAL_TYPE>: New case.
2452 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2453 UNOP_REINTERPRET_CAST>: Update.
2454 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2455 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2456 UNOP_REINTERPRET_CAST>: Update.
2457 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2458 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2459 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2460 constants.
2461
2462 2012-07-19 Yao Qi <yao@codesourcery.com>
2463 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2466 and case 'var_optional_filename' together.
2467 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2468 instead of add_setshow_optional_filename_cmd for setshow command
2469 'args'. Set completer for 'set args'.
2470
2471 2012-07-18 Doug Evans <dje@google.com>
2472
2473 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2474 * common/gdb_vecs.c: New file, contents from utils.c.
2475 * common/host-defs.h: New file, contents from defs.h.
2476 * utils.h: New file, contents from defs.h.
2477 * defs.h: Move all declarations of objects defined in utils.c
2478 to utils.h (except QUIT() and related).
2479 #include "utils.h", "host-defs.h".
2480 * probe.h (probe_p): Move here from gdb_vecs.h.
2481 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2482 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2483 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2484 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2485 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2486 (COMMON_OBS): Add gdb_vecs.o.
2487 (gdb_vecs.o): New rule.
2488
2489 2012-07-18 Keith Seitz <keiths@redhat.com>
2490
2491 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2492 parameter. If non-zero, use SYMNAME as the canonical name
2493 for the SaL.
2494 Update all callers.
2495 (convert_linespec_to_sals): Use add_sal_to_sals for
2496 expressions, too.
2497 (decode_line_full): No need to "fill in missing canonical names"
2498 anymore. Simply make cleanups for the allocated names.
2499
2500 2012-07-18 Keith Seitz <keiths@redhat.com>
2501
2502 * linespec.c (struct linespec): Constify expression,
2503 source_filename, function_name, and label_name.
2504 (symbol_not_found_error): Make all parameters const.
2505 (linespec_parser_delete): No need to check for NULL
2506 when using xfree. Cast const char * to char * for xfree.
2507
2508 2012-07-18 Keith Seitz <keiths@redhat.com>
2509
2510 * breakpoint.c (invalid_thread_id_error): New function.
2511 (find_condition_and_thread): Use invalid_thread_id_error.
2512 (watch_command_1): Likewise.
2513
2514 2012-07-18 Tom Tromey <tromey@redhat.com>
2515
2516 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2517 * contrib/cc-with-tweaks.sh: New file.
2518
2519 2012-07-18 Tom Tromey <tromey@redhat.com>
2520
2521 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2522 (locate_dwz_sections): Recognize .gdb_index.
2523 (create_cus_from_index_list): New function.
2524 (create_cus_from_index): Use it. Handle .dwz data.
2525 (read_index_from_section): New function, extracted from
2526 dwarf2_read_index.
2527 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2528 if needed.
2529
2530 2012-07-18 Tom Tromey <tromey@redhat.com>
2531
2532 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2533 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2534 <is_dwz>: New field.
2535 (struct dwz_file): New.
2536 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2537 (locate_dwz_sections, dwarf2_get_dwz_file)
2538 (get_abbrev_section_for_cu): New functions.
2539 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2540 (read_and_check_type_unit_head): Add abbrev_section argument.
2541 (create_debug_types_hash_table): Update.
2542 (init_cutu_and_read_dies): Use proper abbrev section.
2543 (init_cutu_and_read_dies_no_follow): Likewise.
2544 (set_partial_user): Do nothing if PST==NULL.
2545 (read_comp_units_from_section): New function.
2546 (create_all_comp_units): Use it.
2547 (scan_partial_symbols, partial_die_parent_scope): Update.
2548 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2549 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2550 (find_partial_die): Add offset_in_dwz argument. Update.
2551 (guess_partial_die_structure_name, fixup_partial_die): Update.
2552 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2553 DW_FORM_GNU_strp_alt.
2554 (read_indirect_string_from_dwz): New function.
2555 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2556 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2557 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2558 (follow_die_offset): Add offset_in_dwz argument.
2559 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2560 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2561 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2562 Handle new macro forms.
2563 (dwarf_decode_macros): Update.
2564 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2565 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2566 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2567 (create_debug_types_hash_table): Use correct abbrev section.
2568 (get_debug_line_section): New function.
2569 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2570 (process_full_comp_unit): Pass 'required' argument to
2571 end_symtab_get_static_block.
2572 * buildsym.h (end_symtab_get_static_block): Update.
2573 * buildsym.c (end_symtab_get_static_block): Add 'required'
2574 argument.
2575 (end_symtab, end_expandable_symtab): Update.
2576
2577 2012-07-18 Tom Tromey <tromey@redhat.com>
2578
2579 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2580 (pagesize): Remove.
2581 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2582 (zlib_decompress_section): Remove.
2583 (dwarf2_read_section): Use gdb_bfd_map_section.
2584 (munmap_section_buffer): Remove.
2585 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2586 munmap_section_buffer.
2587 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2588 (struct gdb_bfd_section_data): New.
2589 (free_one_bfd_section): New function.
2590 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2591 (get_section_descriptor, zlib_decompress_section)
2592 (gdb_bfd_map_section): New functions.
2593 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2594
2595 2012-07-18 Tom Tromey <tromey@redhat.com>
2596
2597 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2598
2599 2012-07-18 Tom Tromey <tromey@redhat.com>
2600
2601 * gdb_bfd.c (struct gdb_bfd_data): New.
2602 (gdb_bfd_cache): New global.
2603 (struct gdb_bfd_cache_search): New.
2604 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2605 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2606 * gdb_bfd.h (gdb_bfd_open): Declare.
2607
2608 2012-07-18 Tom Tromey <tromey@redhat.com>
2609
2610 * utils.c (make_cleanup_bfd_unref): Rename from
2611 make_cleanup_bfd_close.
2612 * defs.h (make_cleanup_bfd_unref): Rename from
2613 make_cleanup_bfd_close.
2614 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2615 (bfd_openw_with_cleanup): Update.
2616 * corelow.c (core_open): Update.
2617 * dsrec.c (load_srec): Update.
2618 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2619 * remote-m32r-sdi.c (m32r_load): Update.
2620 * remote-mips.c (mips_load_srec): Update.
2621 (pmon_load_fast): Update.
2622 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2623 Update.
2624 (darwin_bfd_open): Update.
2625 * solib.c (solib_bfd_fopen): Update.
2626 * symfile-mem.c (symbol_file_add_from_memory): Update.
2627 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2628 (symfile_bfd_open): Update.
2629 (generic_load): Update.
2630
2631 2012-07-18 Tom Tromey <tromey@redhat.com>
2632
2633 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2634 (pmon_load_fast): Likewise.
2635 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2636 (m32r_upload_command): Likewise.
2637 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2638 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2639 Use make_cleanup_bfd_close.
2640
2641 2012-07-18 Tom Tromey <tromey@redhat.com>
2642
2643 * symfile.c (symfile_bfd_open): Don't copy name. Call
2644 gdb_bfd_stash_filename.
2645 (load_command): Open the new BFD before freeing the old.
2646 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2647 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2648 Call gdb_bfd_stash_filename.
2649 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2650 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2651 gdb_bfd_stash_filename.
2652 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2653 Free found_pathname.
2654 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2655 gdb_bfd_stash_filename.
2656 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2657 * machoread.c (macho_add_oso_symfile): Call
2658 gdb_bfd_stash_filename.
2659 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2660 gdb_bfd_stash_filename.
2661 (macho_check_dsym): Don't copy filename. Call
2662 gdb_bfd_stash_filename.
2663 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2664 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2665 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2666 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2667 * exec.c (exec_close): Don't free the BFD's filename.
2668 (exec_file_attach): Don't copy the filename. Call
2669 gdb_bfd_stash_filename.
2670 * corelow.c (core_close): Don't free the BFD's filename.
2671 (core_open): Call gdb_bfd_stash_filename.
2672 * corefile.c (reopen_exec_file): Remove #if 0 code.
2673 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2674 pathname.
2675 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2676
2677 2012-07-18 Tom Tromey <tromey@redhat.com>
2678
2679 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2680 gdb_bfd_unref.
2681 (free_dwo_file): Use gdb_bfd_unref.
2682 * cli/cli-dump.c: Include gdb_bfd.h.
2683 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2684 (bfd_openr_with_cleanup): Likewise.
2685 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2686 gdb_bfd_unref.
2687 * utils.c: Include gdb_bfd.h.
2688 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2689 * symfile.c: Include gdb_bfd.h.
2690 (separate_debug_file_exists): Use gdb_bfd_unref.
2691 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2692 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2693 (generic_load): Use gdb_bfd_ref.
2694 (reread_symbols): Use gdb_bfd_unref.
2695 * symfile-mem.c: Include gdb_bfd.h.
2696 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2697 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2698 * solib.c: Include gdb_bfd.h.
2699 (solib_bfd_fopen): Use gdb_bfd_ref.
2700 (solib_bfd_open): Use gdb_bfd_unref.
2701 (free_so_symbols): Use gdb_bfd_unref.
2702 (reload_shared_libraries_1): Use gdb_bfd_unref.
2703 * solib-spu.c: Include gdb_bfd.h.
2704 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2705 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2706 gdb_bfd_unref.
2707 * solib-frv.c: Include gdb_bfd.h.
2708 (enable_break2): Use gdb_bfd_unref.
2709 * solib-dsbt.c: Include gdb_bfd.h.
2710 (enable_break2): Use gdb_bfd_unref.
2711 * solib-darwin.c: Include gdb_bfd.h.
2712 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2713 gdb_bfd_unref.
2714 (darwin_bfd_open): Use gdb_bfd_unref.
2715 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2716 * remote-mips.c: Include gdb_bfd.h.
2717 (mips_load_srec): Use gdb_bfd_ref.
2718 (pmon_load_fast): Use gdb_bfd_ref.
2719 * remote-m32r-sdi.c: Include gdb_bfd.h.
2720 (m32r_load): Use gdb_bfd_ref.
2721 * record.c: Include gdb_bfd.h.
2722 (record_save_cleanups): Use gdb_bfd_unref.
2723 (cmd_record_save): Use gdb_bfd_unref.
2724 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2725 gdb_bfd_unref.
2726 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2727 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2728 * objfiles.c: Include gdb_bfd.h.
2729 (free_objfile): Use gdb_bfd_unref.
2730 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2731 gdb_bfd.c.
2732 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2733 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2734 (macho_check_dsym): Likewise.
2735 * m32r-rom.c: Include gdb_bfd.h.
2736 (m32r_load): Use gdb_bfd_ref.
2737 (m32r_upload_command): Use gdb_bfd_ref.
2738 * jit.c: Include gdb_bfd.h.
2739 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2740 * gdb_bfd.h: New file.
2741 * gdb_bfd.c: New file.
2742 * gcore.c: Include gdb_bfd.h.
2743 (create_gcore_bfd): Use gdb_bfd_ref.
2744 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2745 (gcore_command): Use gdb_bfd_unref.
2746 * exec.c: Include gdb_bfd.h.
2747 (exec_close): Use gdb_bfd_unref.
2748 (exec_close_1): Use gdb_bfd_unref.
2749 (exec_file_attach): Use gdb_bfd_ref.
2750 * elfread.c: Include gdb_bfd.h.
2751 (build_id_verify): Use gdb_bfd_unref.
2752 * dsrec.c: Include gdb_bfd.h.
2753 (load_srec): Use gdb_bfd_ref.
2754 * corelow.c: Include gdb_bfd.h.
2755 (core_close): Use gdb_bfd_unref.
2756 (core_open): Use gdb_bfd_ref.
2757 * bfd-target.c: Include gdb_bfd.h.
2758 (target_bfd_xclose): Use gdb_bfd_unref.
2759 (target_bfd_reopen): Use gdb_bfd_ref.
2760 * Makefile.in (SFILES): Add gdb_bfd.c.
2761 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2762 (COMMON_OBS): Add gdb_bfd.o.
2763
2764 2012-07-18 Keith Seitz <keiths@redhat.com>
2765
2766 * breakpoint.c (find_condition_and_thread): Initialize
2767 TASK and REST.
2768 (create_breakpiont): find_condition_and_thread will now
2769 initialize COND_STRING, THREAD, and REST (and TASK).
2770 (addr_string_to_sals): Likewise.
2771
2772 2012-07-18 Pedro Alves <palves@redhat.com>
2773
2774 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2775 Pull the single step breakpoints out of the target.
2776
2777 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2778
2779 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2780 * stap-probe.c (compile_probe_arg): Likewise.
2781
2782 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2783
2784 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2785 (elf_compile_to_ax): Likewise.
2786 * infrun.c (insert_exception_resume_from_probe): Likewise.
2787 (check_exception_resume): Remove `objfile' variable.
2788 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2789 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2790 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2791 (compare_entries): Rename to...
2792 (compare_probes): ...this. Adjust function to work with
2793 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2794 respectively.
2795 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2796 `VEC (probe_p) *'.
2797 (print_ui_out_info): Adjust argument to be `struct probe *'.
2798 (info_probes_for_ops): Adjust internal computations to use
2799 `VEC (probe_p) *'.
2800 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2801 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2802 gen_info_probes_table_values>: Remove `objfile' argument.
2803 (struct probe) <objfile>: New field.
2804 (find_probe_by_pc): Remove `objfile' argument.
2805 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2806 (stap_get_probe_argument_count): Likewise.
2807 (stap_get_arg): Likewise.
2808 (stap_evaluate_probe_argument): Likewise.
2809 (stap_compile_to_ax): Likewise.
2810 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2811 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2812 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2813 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2814 sym_compile_to_ax>: Likewise.
2815
2816 2012-07-18 Terry Guo <terry.guo@arm.com>
2817
2818 PR 14329
2819 * defs.h (GDB_MI_MSG_WIDTH): New.
2820 * ser_base (ser_base_read_error_fd): New function.
2821 (do_ser_base_readchar): Poll error file descriptor as well as
2822 standard output.
2823 (generic_readchar): Refactor error handling.
2824
2825 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2826
2827 * NEWS: Create a new section for the next release branch.
2828 Rename the section of the current branch, now that it has
2829 been cut.
2830
2831 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2832
2833 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2834 * version.in: Bump version to 7.5.50.20120718-cvs.
2835
2836 2012-07-17 Keith Seitz <keiths@redhat.com>
2837
2838 * linespec.c (linespec_parse_line_offset): Make parameter
2839 const.
2840
2841 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2842
2843 PR 11914
2844 * f-valprint.c (info_common_command): New variable frame_id.
2845 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2846 * printcmd.c (print_variable_and_value): Extend function comment.
2847 Add comment for invalidated FRAME.
2848 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2849 FI form FRAME_ID after each print_frame_local_vars.
2850 (struct print_variable_and_value_data): Change frame to frame_id.
2851 (do_print_variable_and_value): New variable frame, initialize it from
2852 p->frame_id. Add comment for invalidated FRAME.
2853 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2854 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2855 for invalidated FRAME.
2856
2857 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2858 Pedro Alves <palves@redhat.com>
2859
2860 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2861 loop.
2862
2863 2012-07-16 Tom Tromey <tromey@redhat.com>
2864
2865 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2866
2867 2012-07-15 Doug Evans <dje@google.com>
2868
2869 * dwarf2read.c (stmt_list_hash): New struct.
2870 (type_unit_group): Embed "per_cu" member, remove pointer.
2871 New union member "t", move member "tus" into it, all uses updated.
2872 New member "hash", replaces member "line_offset, all uses updated.
2873 (quick_file_names): Replace member "offset" with "hash", all uses
2874 updated.
2875 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2876 (hash_file_name_entry, eq_file_name_entry): Call them.
2877 (hash_type_unit_group, eq_type_unit_group): Ditto.
2878 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2879 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2880 (dw2_get_file_names): Update.
2881 (create_type_unit_group): Replace "per_cu" arg with "cu".
2882 All callers updated. Fix "quick" (.gdb_index) handling.
2883 (get_type_unit_group): Replace "per_cu" arg with "cu".
2884 All callers updated.
2885 (build_type_unit_groups): Don't reset tu_stats.
2886
2887 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2888 "tab_cur_size". Change member "tab" to be a htab_t.
2889 (create_filename_seen_cache): Update.
2890 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2891 (filename_seen): Update.
2892
2893 2012-07-13 Doug Evans <dje@google.com>
2894
2895 * symtab.c (filename_seen): Update comment.
2896
2897 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2898 Doug Evans <dje@google.com>
2899
2900 * buildsym.c (end_symtab_1): Split it to ...
2901 (end_symtab_get_static_block): ... this ...
2902 (end_symtab_from_static_block): ... and this function.
2903 (end_symtab, end_expandable_symtab): Call them.
2904 * buildsym.h (end_symtab_get_static_block)
2905 (end_symtab_from_static_block): New declarations.
2906 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2907 Set its valid CU ranges.
2908
2909 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2912 DW_OP_GNU_parameter_ref.
2913
2914 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2917 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2918
2919 2012-07-13 Doug Evans <dje@google.com>
2920
2921 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2922 (filename_seen_cache): New struct.
2923 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2924 (create_filename_seen_cache): New function.
2925 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2926 (filename_seen): Delete arg "first". New arg "cache". All callers
2927 updated.
2928 (output_source_filename_data): New struct.
2929 (output_source_filename): Delete arg "first". New arg "data".
2930 All callers updated.
2931 (sources_info): Delete local "first". New locals "data", "cleanups".
2932 Rewrite to use filename_seen_cache.
2933 (add_partial_filename_data): Delete member "first". New member
2934 "filename_seen_cache". All uses updated.
2935 (make_source_files_completion_list): Rewrite to use
2936 filename_seen_cache.
2937
2938 2012-07-12 Doug Evans <dje@google.com>
2939
2940 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2941
2942 2012-07-10 Doug Evans <dje@google.com>
2943
2944 PR gdb/13498
2945 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2946 all_type_unit_groups, type_unit_groups, tu_stats.
2947 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2948 All uses updated. Add type_unit_group to union "s".
2949 (type_unit_group): New struct.
2950 (IS_TYPE_UNIT_GROUP): New macro.
2951 (abbrev_table): Delete unused member "section".
2952 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2953 (dw2_get_cu): Assert not used with type_unit_group.
2954 (dw2_get_primary_cu): New function.
2955 (dw2_build_type_unit_groups_reader): New function.
2956 (dw2_build_type_unit_groups): New function.
2957 (dw2_get_file_names): Assert not called on type units.
2958 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2959 Redo loop to iterate over type unit groups instead of type units.
2960 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2961 (read_abbrev_offset): New function.
2962 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2963 updated.
2964 (create_partial_symtab): New function.
2965 (process_psymtab_comp_unit_reader): Assert not used with type units.
2966 Call create_partial_symtab.
2967 (process_psymtab_type_unit): Delete.
2968 (hash_type_unit_group, eq_type_unit_group): New functions.
2969 (allocate_type_unit_groups_table): New function.
2970 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2971 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2972 (create_type_unit_group, get_type_unit_group): New functions.
2973 (tu_abbrev_offset): New struct.
2974 (sort_tu_by_abbrev_offset): New function.
2975 (add_type_unit_group_to_table): New function.
2976 (build_type_unit_groups): New function.
2977 (build_type_psymtabs_reader): New function.
2978 (build_type_psymtab_dependencies): New function.
2979 (build_type_psymtabs): Rewrite.
2980 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2981 is seen in a type unit.
2982 (process_queue): Move symtab expansion debugging printfs here.
2983 Call process_full_type_unit for type units.
2984 (compute_symtab_includes): Assert not called for type units.
2985 (process_cu_includes): Don't call compute_symtab_includes for
2986 type units.
2987 (process_full_type_unit): New function.
2988 (process_imported_unit_die): Flag an error if called for type units.
2989 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2990 updated. Assert not called for type units.
2991 (read_file_scope): Call dwarf2_start_symtab.
2992 (setup_type_unit_groups): New function.
2993 (read_type_unit_scope): Rewrite.
2994 (abbrev_table_read_table): Initialize abbrev_table->offset.
2995 (abbrev_table_free_cleanup): New function.
2996 (dwarf2_start_symtab): New function.
2997 (load_full_type_unit): Assert not called for type unit groups.
2998 * buildsym.c (finish_block_internal): New arg "expandable".
2999 All callers updated.
3000 (start_symtab): Move most contents to ...
3001 (restart_symtab): ... here. New function.
3002 (reset_symtab_globals): New function.
3003 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3004 Call reset_symtab_globals.
3005 (end_symtab, end_expandable_symtab): New functions.
3006 (set_missing_symtab, augment_type_symtab): New functions.
3007 * buildsym.h (end_expandable_symtab): Declare.
3008 (augment_type_symtab, restart_symtab): Declare.
3009 * psympriv.h (struct partial_symtab): New member "anonymous".
3010 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3011 anonymous psymtabs.
3012 (read_psymtabs_with_filename): Ditto.
3013 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3014 (expand_symtabs_matching_via_partial): Ditto.
3015 (dump_psymtab): Update.
3016 * dictionary.c (dict_add_pending): New function.
3017 * dictionary.h (dict_add_pending): Declare.
3018
3019 2012-07-09 Doug Evans <dje@google.com>
3020
3021 * buildsym.c (start_subfile): Remove unnecessary check for
3022 name == NULL.
3023
3024 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3025
3026 * dwarf2read.c (load_full_type_unit): Simplify.
3027
3028 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3029 to struct signatured_type **. All uses updated.
3030
3031 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3032 All callers updated.
3033
3034 2012-07-09 Tom Tromey <tromey@redhat.com>
3035
3036 * c-exp.y (check_parameter_typelist): New function.
3037 (parameter_typelist): Call it.
3038 * eval.c (make_params): Handle '(void)' case.
3039 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3040 '(void)' case.
3041
3042 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 * common/linux-ptrace.c: Include gdb_assert.h.
3045 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3046 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3047 stdint.h.
3048 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3049 functions.
3050 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3051 * linux-nat.c (linux_child_post_attach)
3052 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3053
3054 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3055
3056 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3057 nptl <2.7 bug workaround for core files.
3058
3059 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3060
3061 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3062 clearing.
3063 (save_siginfo): Remove.
3064 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3065 call.
3066 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3067 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3068 * linux-nat.h (struct lwp_info): Remove field siginfo.
3069
3070 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 Code cleanup for the next patch.
3073 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3074 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3075 call for it.
3076 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3077 (ia64_linux_stopped_data_address):
3078 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3079 the return value.
3080 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3081 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3082 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3083 call for it.
3084
3085 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3086
3087 PR 14321
3088 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3089 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3090
3091 2012-07-06 Tom Tromey <tromey@redhat.com>
3092
3093 * c-exp.y (DOTDOTDOT): New token.
3094 (func_mod, exp): Use parameter_typelist.
3095 (parameter_typelist): New production.
3096 (tokentab3): Add "..." token.
3097 * eval.c (make_params): Handle varargs.
3098 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3099 varargs.
3100
3101 2012-07-06 Tom Tromey <tromey@redhat.com>
3102
3103 PR exp/9608:
3104 * c-exp.y (%union) <tvec>: Change type.
3105 (func_mod): Now uses <tvec> type.
3106 (exp): Update for tvec change.
3107 (direct_abs_decl): Push the typelist.
3108 (func_mod): Return a typelist.
3109 (nonempty_typelist): Update for tvec change.
3110 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3111 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3112 * parse.c (pop_type_list): New function.
3113 (push_typelist): New function.
3114 (follow_types): Handle tp_function_with_arguments.
3115 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3116 (enum type_pieces) <tp_function_with_arguments>: New constant.
3117 (union type_stack_elt) <typelist_val>: New field.
3118 (push_typelist): Declare.
3119
3120 2012-07-06 Tom Tromey <tromey@redhat.com>
3121
3122 * c-exp.y (%union) <type_stack>: New field.
3123 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3124 (ptr_operator_ts): New production.
3125 (ptype): Update.
3126 * parse.c (type_stack_reserve): New function.
3127 (check_type_stack_depth): Use it.
3128 (pop_type_stack, append_type_stack, push_type_stack)
3129 (get_type_stack, type_stack_cleanup): New functions.
3130 (follow_types): Handle tp_type_stack.
3131 (_initialize_parse): Simplify initialization.
3132 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3133 constant.
3134 (union type_stack_elt) <stack_val>: New field.
3135 (get_type_stack, append_type_stack, push_type_stack)
3136 (type_stack_cleanup): Declare.
3137
3138 2012-07-06 Tom Tromey <tromey@redhat.com>
3139
3140 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3141 Remove.
3142 (struct type_stack): New.
3143 * parse.c (type_stack, type_stack_size, type_stack_depth):
3144 Remove.
3145 (type_stack): New global.
3146 (parse_exp_in_context, check_type_stack_depth)
3147 (insert_into_type_stack, insert_type, push_type, push_type_int)
3148 (insert_type_address_space, pop_type, pop_type_int)
3149 (_initialize_parse): Update.
3150
3151 2012-07-06 Tom Tromey <tromey@redhat.com>
3152
3153 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3154 Remove %type.
3155
3156 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3157
3158 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3159
3160 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3161 Jan Kratochvil <jan.kratochvil@redhat.com>
3162
3163 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3164 alloca with xmalloc/xfree.
3165
3166 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3167
3168 * MAINTAINERS (Write After Approval): Add myself to the list.
3169
3170 2012-07-05 Doug Evans <dje@google.com>
3171
3172 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3173
3174 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3175
3176 * ax-gdb.c (cli/cli-utils.h): New include.
3177 (linespec.h): Ditto.
3178 (agent_eval_command_one): New function.
3179 (agent_command_1): Ditto.
3180 (agent_command): Call function agent_command_1.
3181 (agent_eval_command): Ditto.
3182 (_initialize_ax_gdb): Change help for "maint agent"
3183 and "maint agent-eval".
3184
3185 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3186
3187 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3188 * cli/cli-utils.c (check_for_argument): New function.
3189 * cli/cli-utils.h (check_for_argument): Ditto.
3190
3191 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3192
3193 * NEWS: Mention x32 ABI support.
3194
3195 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3196
3197 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3198 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3199
3200 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3201 and pc_regnum_from_eax to -1. Update SP regnum from
3202 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3203 needed.
3204
3205 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3206 pc_regnum_from_eax.
3207
3208 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3209
3210 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3211 * dwarf2expr.h: Include gdbtypes.h.
3212 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3213 these forward declarations.
3214 (cu_offset, sect_offset): Move these ...
3215 * gdbtypes.h: Remove include dwarf2expr.h.
3216 (cu_offset, sect_offset): ... here.
3217
3218 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3219
3220 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3221 (amd64_linux_sigtramp_code): This.
3222 (amd64_x32_linux_sigtramp_code): New.
3223 (LINUX_SIGTRAMP_LEN): Updated.
3224 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3225
3226 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3229
3230 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3231
3232 * config.in: Regenerate.
3233 * configure: Regenerate.
3234 * configure.ac: Remove check for gnu/libc-version.h.
3235 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3236 gnu/libc-version.h.
3237 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3238 variables libc_version, libc_major and libc_minor. Replace sscanf by
3239 inferior_has_bug. Extend the comment.
3240
3241 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3242
3243 * linux-thread-db.c (inferior_has_bug): New function.
3244 (thread_db_find_new_threads_silently): Return boolean as checked by
3245 inferior_has_bug, describe it in the comments.
3246 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3247 earlier. Abort the initialization if it returned non-zero.
3248 (thread_db_new_objfile): Exclude debug files.
3249 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3250 if UNTIL_NO_NEW,
3251
3252 2012-07-02 Doug Evans <dje@google.com>
3253
3254 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3255 related to queue management.
3256
3257 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3258 instead of "debug dwarf2-die" in debugging printfs.
3259 (create_debug_info_hash_table_reader): Ditto.
3260 (create_debug_info_hash_table): Ditto.
3261 (init_dwo_file): Ditto.
3262 (init_cutu_and_read_dies): Add debugging printf.
3263 (init_cutu_and_read_dies_no_follow): Ditto.
3264 (process_psymtab_comp_unit_reader): Ditto.
3265
3266 2012-07-02 Stan Shebs <stan@codesourcery.com>
3267
3268 Add target-side support for dynamic printf.
3269 * NEWS: Mention the additional style.
3270 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3271 (struct bp_location): New field cmd_bytecode.
3272 * breakpoint.c: Include format.h.
3273 (disconnected_dprintf): New global.
3274 (parse_cmd_to_aexpr): New function.
3275 (build_target_command_list): New function.
3276 (insert_bp_location): Call it.
3277 (remove_breakpoints_pid): Skip dprintf breakpoints.
3278 (print_one_breakpoint_location): Ditto.
3279 (dprintf_style_agent): New global.
3280 (dprintf_style_enums): Add dprintf_style_agent.
3281 (update_dprintf_command_list): Add agent case.
3282 (agent_printf_command): New function.
3283 (_initialize_breakpoint): Add new commands.
3284 * common/ax.def (printf): New bytecode.
3285 * ax.h (ax_string): Declare.
3286 * ax-gdb.h (gen_printf): Declare.
3287 * ax-gdb.c: Include cli-utils.h, format.h.
3288 (gen_printf): New function.
3289 (maint_agent_print_command): New function.
3290 (_initialize_ax_gdb): Add maint agent-printf command.
3291 * ax-general.c (ax_string): New function.
3292 (ax_print): Add printf disassembly.
3293 * Makefile.in (SFILES): Add format.c
3294 (COMMON_OBS): Add format.o.
3295 * common/format.h: New file.
3296 * common/format.c: New file.
3297 * printcmd.c: Include format.h.
3298 (ui_printf): Call parse_format_string.
3299 * remote.c (remote_state): New field breakpoint_commands.
3300 (PACKET_BreakpointCommands): New enum.
3301 (remote_breakpoint_commands_feature): New function.
3302 (remote_protocol_features): Add new BreakpointCommands entry.
3303 (remote_can_run_breakpoint_commands): New function.
3304 (remote_add_target_side_commands): New function.
3305 (remote_insert_breakpoint): Call it.
3306 (remote_insert_hw_breakpoint): Ditto.
3307 (_initialize_remote): Add new packet configuration for
3308 target-side breakpoint commands.
3309 * target.h (struct target_ops): New field
3310 to_can_run_breakpoint_commands.
3311 (target_can_run_breakpoint_commands): New macro.
3312 * target.c (update_current_target): Handle
3313 to_can_run_breakpoint_commands.
3314
3315 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 Execute -ix and -iex only after system and user gdbinit files.
3318 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3319 processing down after gdbinit files.
3320
3321 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3322
3323 Add fnmatch-gnu module.
3324 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3325 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3326 * gnulib/aclocal.m4: Regenerate.
3327 * gnulib/config.in: Regenerate.
3328 * gnulib/configure: Regenerate.
3329 * gnulib/import/dummy.c: Remove.
3330 * gnulib/import/Makefile.am: Regenerate.
3331 * gnulib/import/Makefile.in: Likewise.
3332 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3333 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3334 * gnulib/import/alloca.c: New file.
3335 * gnulib/import/alloca.in.h: Likewise.
3336 * gnulib/import/config.charset: Likewise.
3337 * gnulib/import/fnmatch.c: Likewise.
3338 * gnulib/import/fnmatch.in.h: Likewise.
3339 * gnulib/import/fnmatch_loop.c: Likewise.
3340 * gnulib/import/localcharset.c: Likewise.
3341 * gnulib/import/localcharset.h: Likewise.
3342 * gnulib/import/m4/alloca.m4: Likewise.
3343 * gnulib/import/m4/codeset.m4: Likewise.
3344 * gnulib/import/m4/configmake.m4: Likewise.
3345 * gnulib/import/m4/fcntl-o.m4: Likewise.
3346 * gnulib/import/m4/fnmatch.m4: Likewise.
3347 * gnulib/import/m4/glibc21.m4: Likewise.
3348 * gnulib/import/m4/localcharset.m4: Likewise.
3349 * gnulib/import/m4/locale-fr.m4: Likewise.
3350 * gnulib/import/m4/locale-ja.m4: Likewise.
3351 * gnulib/import/m4/locale-zh.m4: Likewise.
3352 * gnulib/import/m4/mbrtowc.m4: Likewise.
3353 * gnulib/import/m4/mbsinit.m4: Likewise.
3354 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3355 * gnulib/import/m4/mbstate_t.m4: Likewise.
3356 * gnulib/import/m4/stdbool.m4: Likewise.
3357 * gnulib/import/m4/wchar_h.m4: Likewise.
3358 * gnulib/import/m4/wctype_h.m4: Likewise.
3359 * gnulib/import/m4/wint_t.m4: Likewise.
3360 * gnulib/import/mbrtowc.c: Likewise.
3361 * gnulib/import/mbsinit.c: Likewise.
3362 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3363 * gnulib/import/mbsrtowcs-state.c: Likewise.
3364 * gnulib/import/mbsrtowcs.c: Likewise.
3365 * gnulib/import/ref-add.sin: Likewise.
3366 * gnulib/import/ref-del.sin: Likewise.
3367 * gnulib/import/stdbool.in.h: Likewise.
3368 * gnulib/import/streq.h: Likewise.
3369 * gnulib/import/strnlen1.c: Likewise.
3370 * gnulib/import/strnlen1.h: Likewise.
3371 * gnulib/import/verify.h: Likewise.
3372 * gnulib/import/wchar.in.h: Likewise.
3373 * gnulib/import/wctype.in.h: Likewise.
3374
3375 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 Support shell wildcards for 'set auto-load safe-path'.
3378 * auto-load.c: Include fnmatch.h.
3379 (filename_is_in_dir): Rename to ...
3380 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3381 it. Update function comment. Rename dir_len to pattern_len. New
3382 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3383 messages. Use gdb_filename_fnmatch.
3384 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3385 pattern.
3386 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3387 * defs.h (gdb_filename_fnmatch): New declaration.
3388 * utils.c: Include fnmatch.h.
3389 (gdb_filename_fnmatch): New function.
3390
3391 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3392
3393 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3394 `-probe' and `-probe-stap' options.
3395
3396 2012-07-01 Yao Qi <yao@codesourcery.com>
3397
3398 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3399 always_inserted_off, and always_inserted_enums.
3400 Change always_inserted_mode's type to 'enum auto_boolean'.
3401 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3402 callers.
3403 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3404 of add_setshow_enum_cmd.
3405 * infrun.c: Remove can_use_displaced_stepping_auto,
3406 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3407 can_use_displaced_stepping_enum.
3408 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3409 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3410 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3411 add_setshow_enum_cmd.
3412
3413 2012-06-30 Doug Evans <dje@google.com>
3414
3415 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3416 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3417 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3418
3419 2012-06-29 Doug Evans <dje@google.com>
3420
3421 * linespec.c: #include "stack.h".
3422 (decode_line_with_current_source): Moved here from symtab.c and
3423 renamed from decode_line_spec. All callers updated.
3424 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3425 renamed from decode_line_spec_1. All callers updated.
3426 * linespec.h (decode_line_with_current_source): Move declaration here
3427 from symtab.h and renamed from decode_line_spec.
3428 (decode_line_with_last_displayed): Move declaration here from symtab.h
3429 and renamed from decode_line_spec_1.
3430 * macrocmd.c: #include "linespec.h".
3431 * symtab.c: Remove #include "linespec.h".
3432
3433 2012-06-28 Doug Evans <dje@google.com>
3434
3435 * dwarf2read.c (get_cu_length): New function.
3436 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3437 (create_debug_types_hash_table): Ditto.
3438 (init_cutu_and_read_dies): Ditto.
3439 (init_cutu_and_read_dies_no_follow): Ditto.
3440
3441 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3442
3443 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3444 (struct abbrev_table): Define.
3445 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3446 abbrev_table.
3447 (init_cutu_and_read_dies): Update.
3448 (abbrev_table_alloc_abbrev): New function. Replaces
3449 dwarf_alloc_abbrev. All callers updated.
3450 (abbrev_table_add_abbrev): New function.
3451 (abbrev_table_lookup_abbrev): New function. Replaces
3452 dwarf2_lookup_abbrev. All callers updated.
3453 (abbrev_table_read_table): New function. Contents moved here from
3454 dwarf2_read_abbrevs.
3455 (dwarf2_read_abbrevs): Call it.
3456 (abbrev_table_free): New function.
3457 (dwarf2_free_abbrev_table): Call it.
3458
3459 2012-06-28 Stan Shebs <stan@codesourcery.com>
3460
3461 * osdata.c (info_osdata_command): Filter out "Title" columns
3462 from non-MI uses.
3463 * common/linux-osdata.c (struct osdata_type): Add title field.
3464 (osdata_table): Add titles to each entry.
3465 (linux_command_xfer_osdata): Add a column for title data.
3466
3467 2012-06-28 Stan Shebs <stan@codesourcery.com>
3468
3469 Make logging work for MI.
3470 * NEWS: Mention it.
3471 * interps.h (interp_set_logging_ftype): New typedef.
3472 (struct interp_procs): New field set_logging_proc.
3473 (current_interp_set_logging): Declare.
3474 * interps.c (current_interp_set_logging): New function.
3475 * cli/cli-logging.c: Include interps.h.
3476 (set_logging_redirect): Call current_interp_set_logging.
3477 (pop_output_files): Ditto.
3478 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3479 * mi/mi-console.h (mi_console_set_raw): Declare.
3480 * mi/mi-console.c (mi_console_set_raw): New function.
3481 * mi/mi-interp.c (saved_raw_stdout): New global.
3482 (mi_set_logging): New function.
3483 (_initialize_mi_interp): Add it to interp procs.
3484
3485 2012-06-28 Doug Evans <dje@google.com>
3486
3487 * symtab.c (lookup_symbol_aux_objfile): Use
3488 ALL_OBJFILE_PRIMARY_SYMTABS.
3489
3490 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3491
3492 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3493
3494 * common/buffer.c: Include inttypes.h and stdint.h.
3495 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3496
3497 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3498 Pedro Alves <palves@redhat.com>
3499
3500 * gdbthread.h (ALL_THREADS): New macro.
3501 (thread_list): Declare.
3502 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3503 going, but instead fall through to the stepping handling.
3504 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3505 the passed in signal. Adjust debug output.
3506 (resume_callback): Rename to ...
3507 (linux_nat_resume_callback): ... this. Pass the thread's last
3508 stop signal, if in "pass" state.
3509 (linux_nat_resume): Adjust to rename.
3510 (stop_wait_callback): New assertion. Don't respawn signals;
3511 instead let the LWP remain with SIGNALLED set.
3512 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3513 * remote.c (append_pending_thread_resumptions): New.
3514 (remote_vcont_resume): Call it.
3515 * target.h (target_resume): Extend comment.
3516
3517 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3518
3519 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3520
3521 2012-06-27 Doug Evans <dje@google.com>
3522
3523 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3524 Delete have_addr_base, unused. All uses updated.
3525 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3526 (dwarf2_get_pc_bounds): Add ranges_base.
3527 (dwarf2_record_block_ranges): Ditto.
3528
3529 2012-06-27 Tom Tromey <tromey@redhat.com>
3530
3531 PR macros/7961:
3532 * varobj.c (varobj_create): Update.
3533 (varobj_set_value): Update.
3534 * tracepoint.c (validate_actionline): Update.
3535 (encode_actions_1): Update.
3536 * parse.c (parse_exp_1): Add 'pc' argument.
3537 (parse_exp_in_context): Add 'pc' argument. Change how
3538 expression_context_pc is set.
3539 (parse_expression): Update.
3540 (parse_field_expression): Update.
3541 * expression.h (parse_exp_1): Update.
3542 * eval.c (parse_to_comma_and_eval): Update.
3543 * breakpoint.c (set_breakpoint_condition): Update.
3544 (update_watchpoint): Update.
3545 (init_breakpoint_sal): Update
3546 (find_condition_and_thread): Update.
3547 (watch_command_1): Update.
3548 (update_breakpoint_locations): Update.
3549 * ada-lang.c (ada_read_renaming_var_value): Update.
3550 (create_excep_cond_exprs): Update.
3551
3552 2012-06-27 Doug Evans <dje@google.com>
3553
3554 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3555 type units.
3556
3557 2012-06-26 Doug Evans <dje@google.com>
3558
3559 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3560 prototype.
3561 (error_check_comp_unit_head): New arg abbrev_section. All callers
3562 updated.
3563 (read_and_check_comp_unit_head): Ditto.
3564 (read_and_check_type_unit_head): Ditto.
3565
3566 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3567
3568 New attribute 'last' for gdb.Symtab_and_line.
3569 * NEWS (Python Scripting): Add entry about the new attribute.
3570 * python/py-symtab.c (salpy_get_last): New function which
3571 implements the get method for the 'last' attribute of
3572 gdb.Symtab_and_line.
3573 (sal_object_getset): Add entry for the 'last' attribute.
3574
3575 2012-06-26 Doug Evans <dje@google.com>
3576
3577 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3578 (dwo_sections): Add macinfo, macro.
3579 (dwarf2_locate_dwo_sections): Watch for macro sections.
3580 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3581 All callers updated. Handle DWO files.
3582
3583 * NEWS: Mention new options "set debug dwarf2-read" and
3584 "set debug symtab-create".
3585 * dwarf2read.c (dwarf2_read_debug): New static global.
3586 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3587 (process_queue): Ditto.
3588 (process_full_comp_unit): Ditto.
3589 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3590 * elfread.c (elf_symfile_read): Add debugging printf.
3591 * minsyms.c (install_minimal_symbols): Ditto.
3592 * psymtab.c (allocate_psymtab): Ditto.
3593 * symfile.c (allocate_symtab): Ditto.
3594 * symtab.c (symtab_create_debug): New global.
3595 (_initialize_symtab): Add new option "set debug symtab-create".
3596 * symtab.h (symtab_create_debug): Declare.
3597
3598 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3599 (lookup_dwo_type_unit): Ditto.
3600
3601 2012-06-26 Roland McGrath <roland@hack.frob.com>
3602 H.J. Lu <hongjiu.lu@intel.com>
3603
3604 * amd64-linux-nat.c: Include <sys/user.h>.
3605 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3606 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3607 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3608
3609 * configure.ac: Check if the fs_base and gs_base members of
3610 `struct user_regs_struct' exist.
3611 * config.in: Regenerated.
3612 * configure: Likewise.
3613
3614 2012-06-25 Michael Eager <eager@eagercon.com>
3615
3616 PR python/14291
3617 * python/python.c (gdbpy_write): Check for interrupted output.
3618
3619 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3620
3621 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3622 register as a stack alignment in ARM mode.
3623
3624 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3625
3626 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3627 * gnulib/config.in: Regenerate.
3628 * gnulib/configure: Likewise.
3629 * gnulib/import/m4/extensions.m4: Update it.
3630 * gnulib/import/m4/gnulib-common.m4: Likewise.
3631 * gnulib/import/m4/memmem.m4: Likewise.
3632 * gnulib/import/m4/mmap-anon.m4: Likewise.
3633 * gnulib/import/m4/multiarch.m4: Likewise.
3634 * gnulib/import/stdint.in.h: Likewise.
3635
3636 2012-06-24 Yao Qi <yao@codesourcery.com>
3637
3638 * corefile.c (write_memory_with_notification): New.
3639 * gdbcore.h: Declare write_memory_with_notification.
3640 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3641 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3642 * valops.c (value_assign): Likewise.
3643 * python/py-inferior.c (infpy_write_memory): Call
3644 'write_memory_with_notification'.
3645
3646 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 * cc-with-index.sh: Use also -ex "set auto-load no".
3649
3650 2012-06-23 Doug Evans <dje@google.com>
3651
3652 PR 14125
3653 * NEWS: Document additions to .gdb_index.
3654 * dwarf2read.c: #include "gdb/gdb-index.h".
3655 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3656 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3657 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3658 (dwarf2_read_index): Recognize version 7.
3659 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3660 block_kind, domain): All callers updated.
3661 (dw2_find_symbol_file): Handle new index CU values.
3662 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3663 (add_index_entry): New args is_static, kind. All callers updated.
3664 (offset_type_compare, uniquify_cu_indices): New functions
3665 (symbol_kind): New function.
3666 (write_psymtabs_to_index): Remove duplicate CU values.
3667 (write_psymtabs_to_index): Write .gdb_index version 7.
3668
3669 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3670
3671 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3672 * configure: Regenerate.
3673
3674 2012-06-20 Yao Qi <yao@codesourcery.com>
3675
3676 * python/py-inferior.c: Update comments of infpy_read_memory
3677 and infpy_write_memory.
3678
3679 2012-06-19 Tom Tromey <tromey@redhat.com>
3680
3681 PR exp/9514:
3682 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3683 (push_type_address_space): Remove.
3684 * parse.c (insert_into_type_stack): New function.
3685 (insert_type): Likewise.
3686 (insert_type_address_space): Rename from push_type_address_space.
3687 Insert tp_space_identifier.
3688 * c-exp.y (ptr_operator): New production.
3689 (abs_decl): Use ptr_operator.
3690 (space_identifier): Call insert_type_address_space.
3691 (ptype): Don't use const_or_volatile_or_space_identifier.
3692 (const_or_volatile_noopt): Call insert_type.
3693 (conversion_type_id, conversion_declarator): New productions.
3694 (operator): Use conversion_type_id.
3695
3696 2012-06-18 Doug Evans <dje@google.com>
3697
3698 * symtab.h (minimal_symbol): New member created_by_gdb.
3699 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3700 created by gdb.
3701 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3702 (search_symbols): Call it instead of lookup_symbol.
3703 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3704
3705 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3706 Adjust address for DW_OP_GNU_addr_index.
3707 * dwarf2expr.h (dwarf_expr_context): Update comment.
3708 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3709 all callers updated. Handle TLS vars described with
3710 DW_OP_GNU_const_index.
3711 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3712 and DW_OP_GNU_const_index.
3713 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3714
3715 * block.c (find_block_in_blockvector): Make explicit the fact that we
3716 ignore GLOBAL_BLOCK.
3717
3718 2012-06-18 Tom Tromey <tromey@redhat.com>
3719
3720 * c-exp.y (operator): Remove trailing space after "delete" and
3721 "delete[]".
3722
3723 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3724 Jan Kratochvil <jan.kratochvil@redhat.com>
3725
3726 Switch i386 and derived targets to ON_STACK.
3727 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3728 (amd64_dicos_init_abi): Remove its installment.
3729 * dicos-tdep.c (dicos_init_abi): Remove the
3730 set_gdbarch_call_dummy_location call. Update the comment here.
3731 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3732 (i386_dicos_init_abi): Remove its installment.
3733 * i386-tdep.c (i386_push_dummy_code): New function.
3734 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3735 i386_push_dummy_code.
3736
3737 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 Remove stale dummy frames.
3740 * breakpoint.c: Include dummy-frame.h.
3741 (longjmp_breakpoint_ops): New variable.
3742 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3743 bp_longjmp_call_dummy.
3744 (bpstat_what, bptype_string, print_one_breakpoint_location)
3745 (init_bp_location): Support bp_longjmp_call_dummy.
3746 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3747 (set_longjmp_breakpoint_for_call_dummy)
3748 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3749 functions.
3750 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3751 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3752 FIXME comment and extend the other comment for bp_call_dummy.
3753 (set_longjmp_breakpoint_for_call_dummy)
3754 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3755 * dummy-frame.c: Include gdbthread.h.
3756 (pop_dummy_frame_bpt): New function.
3757 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3758 (dummy_frame_discard): New function.
3759 (cleanup_dummy_frames): Update the comment about longjmps.
3760 * dummy-frame.h (dummy_frame_discard): New declaration.
3761 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3762 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3763 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3764 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3765 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3766 keep_going if IS_LONGJMP and there is no other reason to stop.
3767
3768 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3769
3770 * remote-sim.c (sim_command_completer): Initialize
3771 variable 'result'.
3772
3773 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3776 * dwarf2loc.c (call_site_parameter_matches): Support
3777 CALL_SITE_PARAMETER_PARAM_OFFSET.
3778 (needs_dwarf_reg_entry_value): Push stub value.
3779 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3780 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3781 * gdbtypes.h (enum call_site_parameter_kind): New item
3782 CALL_SITE_PARAMETER_PARAM_OFFSET.
3783 (struct call_site.parameter.u): New field param_offset.
3784
3785 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 Code cleanup: Generalize call_site.parameter key.
3788 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3789 variable dwarf_reg. New variable kind_u. Update parameters to
3790 push_dwarf_reg_entry_value.
3791 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3792 * dwarf2expr.h (enum call_site_parameter_kind)
3793 (union call_site_parameter_u): Forward declarations.
3794 (struct dwarf_expr_context_funcs): Update parameters and their
3795 description for push_dwarf_reg_entry_value.
3796 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3797 * dwarf2loc.c (call_site_parameter_matches): New function.
3798 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3799 description. Use call_site_parameter_matches.
3800 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3801 Update parameters and their description.
3802 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3803 New variable kind_u. Adjust the caller for updated parameters.
3804 (needs_dwarf_reg_entry_value): Update parameters.
3805 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3806 instead of attr. Update for the changed fields of struct
3807 call_site_parameter.
3808 * gdbtypes.h: Include dwarf2expr.h.
3809 (enum call_site_parameter_kind): New.
3810 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3811 fb_offset into new union u.
3812
3813 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3814
3815 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3816 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3817 for x32.
3818
3819 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3820
3821 * amd64-linux-nat.c (compat_x32_clock_t): New.
3822 (compat_x32_siginfo_t): Likewise.
3823 (compat_x32_siginfo_from_siginfo): Likewise.
3824 (siginfo_from_compat_x32_siginfo): Likewise.
3825 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3826 and siginfo_from_compat_x32_siginfo for x32.
3827
3828 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3829
3830 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3831
3832 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3833
3834 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3835 instead of gdbarch_ptr_bit.
3836 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3837 (amd64_supply_native_gregset): Likewise.
3838 (amd64_collect_native_gregset): Likewise.
3839 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3840 (amd64_supply_xsave): Likewise.
3841 (amd64_collect_fxsave): Likewise.
3842 (amd64_collect_xsave): Likewise.
3843
3844 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3845
3846 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3847 (amd64_linux_read_description): Check DS segment register for
3848 x32 process.
3849
3850 2012-06-15 Tom Tromey <tromey@redhat.com>
3851
3852 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3853 init_cutu_and_read_dies.
3854
3855 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3856
3857 * MAINTAINERS (Write After Approval): Add myself to the list.
3858
3859 2012-06-15 Tom Tromey <tromey@redhat.com>
3860
3861 * valops.c (value_find_oload_method_list): Now static.
3862 * value.h (value_find_oload_method_list): Don't declare.
3863
3864 2012-06-15 Tom Tromey <tromey@redhat.com>
3865
3866 * valops.c (find_overload_match): Use value_ind.
3867
3868 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3869
3870 * infrun.c (handle_inferior_event): Correct indentation.
3871
3872 2012-06-14 Doug Evans <dje@google.com>
3873
3874 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3875 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3876 All uses updated.
3877 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3878 updated. Handle DEBUG_LOC_START_LENGTH.
3879 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3880 (loclist_describe_location): Ditto.
3881
3882 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3883
3884 PR backtrace/13866
3885 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3886 after hiding inline functions.
3887
3888 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3889
3890 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3891 _initialize_inf_ttrace.
3892
3893 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3894
3895 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3896 _initialize_hppa_hpux_nat.
3897
3898 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3899
3900 * remote-sim.c (sim_command_completer): Change type of return
3901 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3902
3903 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3904 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 PR tdep/14222
3907 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3908 stack on a 16-byte boundary.
3909
3910 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3911
3912 * jit.c (finalize_symtab): Set function's return type to 'void' by
3913 default.
3914
3915 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3916 H.J. Lu <hongjiu.lu@intel.com>
3917
3918 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3919 Move bits common to both the classic LP64 and the new x32 ILP32
3920 ABI here.
3921 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3922 (amd64_x32_linux_init_abi): New function.
3923 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3924 subtype.
3925
3926 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3927 * i386-tdep.c (i386_pseudo_register_name): Make public.
3928 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3929 * amd64-tdep.c (amd64_dword_names): Add "eip".
3930 (amd64_x32_pseudo_register_type): New function
3931 (amd64_x32_init_abi): New function.
3932
3933 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3934
3935 PR build/14003
3936 * inferior.h (struct inferior_suspend_state): Comment out.
3937 (struct inferior): Comment out the field suspend.
3938 * infrun.c (struct infcall_suspend_state): Comment out the field
3939 inferior_suspend.
3940 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3941 out its assignment.
3942
3943 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3944
3945 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3946 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3947 function comment. Return ERROR for unresolved cases. Implement
3948 returning proper NAME.
3949 (yylex): Accept also NAME from classify_inner_name.
3950 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3951 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3952 LOC_TYPEDEF type.
3953 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3954
3955 2012-06-13 Tom Tromey <tromey@redhat.com>
3956
3957 * breakpoint.c (condition_completer): New function.
3958 (_initialize_breakpoint): Use it.
3959 * value.c (complete_internalvar): New function.
3960 * value.h (complete_internalvar): Declare.
3961
3962 2012-06-13 Tom Tromey <tromey@redhat.com>
3963
3964 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3965 * breakpoint.c (catch_syscall_completer): Return a VEC.
3966 * cli/cli-cmds.c (complete_command): Update.
3967 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3968 (complete_on_enum): Likewise.
3969 * command.h: Include gdb_vecs.h.
3970 (completer_ftype): Change return type.
3971 (complete_on_cmdlist, complete_on_enum): Likewise.
3972 * completer.c (noop_completer, filename_completer)
3973 (location_completer): Return a VEC.
3974 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3975 to a VEC.
3976 (expression_completer, complete_line_internal, complete_line)
3977 (command_completer): Return a VEC.
3978 (gdb_completion_word_break_characters, line_completion_function):
3979 Update.
3980 * completer.h: Include gdb_vecs.h.
3981 (complete_line, noop_completer, filename_completer)
3982 (expression_completer, location_completer, command_completer):
3983 Update.
3984 * f-lang.c (f_word_break_characters): Return a VEC.
3985 * interps.c (interpreter_completer): Return a VEC.
3986 * language.h (struct language_defn)
3987 <la_make_symbol_completion_list>: Return a VEC.
3988 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3989 * symtab.c (free_completion_list): Take a VEC.
3990 (return_val_size, return_val_index): Remove.
3991 (return_val): Now a VEC.
3992 (completion_list_add_name): Update.
3993 (default_make_symbol_completion_list_break_on)
3994 (default_make_symbol_completion_list, make_symbol_completion_list)
3995 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3996 Return a VEC.
3997 (add_filename_to_list): Update.
3998 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3999 <list>: Now a VEC.
4000 (maybe_add_partial_symtab_filename): Update.
4001 (make_source_files_completion_list): Return a VEC.
4002 * symtab.h (default_make_symbol_completion_list_break_on)
4003 (default_make_symbol_completion_list, make_symbol_completion_list)
4004 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4005 (make_source_files_completion_list): Update.
4006
4007 2012-06-13 Tom Tromey <tromey@redhat.com>
4008
4009 * breakpoint.c (add_catch_command): Use completer_ftype.
4010 * breakpoint.h: Include command.h.
4011 (add_catch_command): Use completer_ftype.
4012 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4013 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4014 Use completer_ftype.
4015 * command.h (completer_ftype): New typedef.
4016 (set_cmd_completer): Use it.
4017 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4018 completer_ftype.
4019
4020 2012-06-13 Pedro Alves <palves@redhat.com>
4021
4022 Partial revert of previous change.
4023
4024 * serial.c (scb_base): New global.
4025 (serial_for_fd): New.
4026 (serial_open, serial_fdopen_ops): Link new serial in open serials
4027 chain.
4028 (do_serial_close): Unlink serial from the open serials chain.
4029
4030 2012-06-12 Pedro Alves <palves@redhat.com>
4031
4032 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4033 threads here.
4034 (prepare_for_detach): No longer context switch here in non-stop
4035 mode.
4036 (fetch_inferior_event): Ditto.
4037 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4038 to the event thread before removing breakpoints. Switch to the
4039 event thread before inserting breakpoints and resuming.
4040 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4041 event thread before resuming.
4042 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4043 Switch to the event thread before removing breakpoints.
4044
4045 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4046
4047 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4048 special characters correctly for the Windows shells. See
4049 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4050 report.
4051 [!__MINGW32__]: Remove extra double quote character from special
4052 characters.
4053
4054 2012-06-11 Stan Shebs <stan@codesourcery.com>
4055
4056 * ui-out.h: Remove #if 0 declarations.
4057 * ui-out.c: Remove #if 0 functions.
4058
4059 2012-06-11 Pedro Alves <palves@redhat.com>
4060
4061 * ser-base.c (run_async_handler_and_reschedule): New.
4062 (fd_event, push_event): Use it.
4063 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4064 reference count to 1.
4065 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4066 instead of xfree.
4067 (serial_is_open, serial_ref, serial_unref): New.
4068 * serial.h (serial_open): Adjust comment.
4069 (serial_is_open): Declare.
4070 (serial_close): Adjust comment.
4071 (serial_ref, serial_unref) Declare.
4072 (struct serial): New field 'refcnt'.
4073
4074 2012-06-11 Pedro Alves <palves@redhat.com>
4075
4076 Remove #if 0'd "connect" command, and unnecessary associated
4077 refcounting and serial reuse bits.
4078
4079 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4080 * serial.c (last_serial_opened): Delete.
4081 (scb_base): Delete.
4082 (serial_open): Adjust.
4083 (serial_for_fd): Delete.
4084 (serial_fdopen_ops, do_serial_close): Adjust.
4085 (serial_fdopen_ops): Adjust.
4086
4087 2012-06-11 Pedro Alves <palves@redhat.com>
4088
4089 * serial.c (do_serial_close): Remove early return when SCB is
4090 null.
4091
4092 2012-06-11 Tom Tromey <tromey@redhat.com>
4093
4094 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4095
4096 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 Fix regression by the "ambiguous linespec" series.
4099 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4100 get_last_displayed_symtab and get_last_displayed_line and depending
4101 on CURSAL.
4102
4103 2012-06-11 Tom Tromey <tromey@redhat.com>
4104
4105 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4106 (dw2_find_symbol_file): Use it.
4107
4108 2012-06-11 Michael Eager <eager@eagercon.com>
4109
4110 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4111 * mips-linux-tdep.h (mips_signals): New
4112
4113 2012-06-11 Tom Tromey <tromey@redhat.com>
4114
4115 * infrun.c (handle_inferior_event)
4116 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4117 breakpoint.
4118 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4119 exception logic in all cases. Update comments.
4120 (insert_longjmp_resume_breakpoint): Set the exception resume
4121 breakpoint.
4122
4123 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4124
4125 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4126
4127 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4128
4129 * valarith.c (binop_types_user_defined_p): Fix a typo.
4130
4131 2012-06-08 Yao Qi <yao@codesourcery.com>
4132 Chung-Lin Tang <cltang@codesourcery.com>
4133
4134 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4135 * arch-utils.h: Declare.
4136 * gdbarch.sh: Add return_in_first_hidden_param_p.
4137 * gdbarch.c, gdbarch.h: Regenerated.
4138 * infcall.c (call_function_by_hand): Call
4139 gdbarch_return_in_first_hidden_param_p instead of
4140 language_pass_by_reference.
4141
4142 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4143 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4144 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4145 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4146 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4147 `cplus_return_struct_by_reference'.
4148 (tic6x_return_value): Handle language cplusplus.
4149 (tic6x_return_in_first_hidden_param_p): New.
4150 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4151
4152 2012-06-07 Doug Evans <dje@google.com>
4153
4154 * dwarf2read.c (dwarf2_cu): Add comment.
4155
4156 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4157
4158 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4159 variable.
4160 (mips_eabi_push_dummy_call): Likewise.
4161 (mips_n32n64_push_dummy_call): Likewise.
4162 (mips_o32_push_dummy_call): Likewise.
4163 (mips_o64_push_dummy_call): Likewise.
4164
4165 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4166
4167 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4168
4169 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4170
4171 * mips-tdep.c (mips_pseudo_register_type): Use
4172 mips_float_register_p.
4173
4174 2012-06-06 Pedro Alves <palves@redhat.com>
4175
4176 * infrun.c (handle_inferior_event): Remove calls to
4177 reinit_frame_cache that follow a context_switch call.
4178
4179 2012-06-06 Pedro Alves <palves@redhat.com>
4180
4181 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4182 context_switch and remove stale comment.
4183
4184 2012-06-06 Pedro Alves <palves@redhat.com>
4185
4186 * infrun.c (struct execution_control_state): Remove
4187 `new_thread_event' field.
4188 (handle_inferior_event): Simplify new threads handling; don't
4189 resume the inferior if we find a new thread.
4190
4191 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4192
4193 * NEWS: Document the deprecation of SH's 'regs' command.
4194 * inferior.h (all_registers_info): Add function declaration.
4195 * sh-tdep.c (sh_show_regs): Remove variable.
4196 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4197 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4198 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4199 (sh_show_regs_command): Remove functions.
4200 (sh_gdbarch_init): Don't set sh_show_regs.
4201 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4202 'info all-registers'.
4203 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4204 (sh64_show_regs): Remove functions.
4205 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4206
4207 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 * configure.ac: Move development=true below AC_INIT.
4210 * configure: Regenerate.
4211
4212 2012-06-05 Stan Shebs <stan@codesourcery.com>
4213
4214 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4215 gdb_stdout.
4216
4217 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4218
4219 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4220 argument as ssize_t.
4221 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4222 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4223 * target.c (target_read_stack, target_write_memory)
4224 (target_write_raw_memory): Likewise.
4225 * target.h (target_read_stack, target_write_memory)
4226 (target_write_raw_memory): Likewise.
4227
4228 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4231 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4232 * target.c (target_read_memory): Change LEN to ssize_t.
4233 * target.h (target_read_memory): Change LEN to ssize_t.
4234
4235 2012-06-05 Pedro Alves <palves@redhat.com>
4236
4237 PR backtrace/13866
4238
4239 * breakpoint.c (until_break_command): Only fetch the selected
4240 frame after decode_line_1.
4241
4242 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4243
4244 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4245 event breakpoint at _start, __start or main if a program
4246 interpreter is not found.
4247
4248 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4249
4250 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4251 Add declaration.
4252 * windows-tdep.c: #include "objfiles.h".
4253 (windows_iterate_over_objfiles_in_search_order): New function.
4254 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4255 iterate_over_objfiles_in_search_order gdbarch method to
4256 windows_iterate_over_objfiles_in_search_order.
4257 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4258
4259 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4260
4261 * gdbarch.sh: Add generation of
4262 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4263 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4264 (iterate_over_objfiles_in_search_order): New gdbarch method.
4265 * gdbarch.h, gdbarch.c: Regenerate.
4266 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4267 Add declaration.
4268 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4269 New function.
4270 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4271 out of lookup_symbol_aux_symtabs.
4272 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4273 call to lookup_symbol_aux_objfile.
4274 (struct global_sym_lookup_data): New type.
4275 (lookup_symbol_global_iterator_cb): New function.
4276 (lookup_symbol_global): Search for symbol using
4277 gdbarch_iterate_over_objfiles_in_search_order and
4278 lookup_symbol_global_iterator_cb.
4279 * findvar.c (struct minsym_lookup_data): New type.
4280 (minsym_lookup_iterator_cb): New function.
4281 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4282 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4283 and minsym_lookup_iterator_cb.
4284
4285 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4286
4287 Revert the following patch:
4288 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4289 try locating the symbol in the symbol's own objfile first, before
4290 extending the search to all objfiles.
4291 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4292 out of lookup_symbol_aux_symtabs.
4293 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4294 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4295 Do not search EXCLUDE_OBJFILE.
4296 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4297 (lookup_symbol_global): Search for matches in the block's objfile
4298 first, before searching all other objfiles.
4299
4300 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4301
4302 * breakpoint.c (find_condition_and_thread): Stop parsing
4303 as soon as the first invalid keyword is found.
4304
4305 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4306
4307 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4308
4309 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4310
4311 * config/djgpp/djcheck.sh: Add copyright header.
4312
4313 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4314
4315 * copyright.py (update_files, main): Fix path to update-copyright
4316 script.
4317
4318 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4319
4320 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4321 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4322 for which a reminder to update by hand is printed.
4323
4324 2012-06-04 Doug Evans <dje@google.com>
4325
4326 * buildsym.c (make_blockvector): Add comment.
4327
4328 2012-06-04 Pedro Alves <palves@redhat.com>
4329
4330 * arch-utils.c (default_gdb_signal_from_target): Delete.
4331 * arch-utils.h (default_gdb_signal_from_target): Delete.
4332 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4333 gdbarch_gdb_signal_from_target_p.
4334 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4335 predicate).
4336 * gdbarch.h: Regenerate.
4337 * gdbarch.c: Regenerate.
4338
4339 2012-06-04 Pedro Alves <palves@redhat.com>
4340
4341 * gdbarch.sh (gdb_signal_from_target): Mention that the
4342 implementation of the method must be host independent.
4343 * gdbarch.h: Regenerate.
4344
4345 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4346
4347 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4348 parameters.
4349 (target_read_memory_bfd): New function.
4350 (symbol_file_add_from_memory): Use it.
4351
4352 2012-06-03 Doug Evans <dje@google.com>
4353
4354 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4355 of primary symtab.
4356 (basic_lookup_transparent_type): Ditto.
4357
4358 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4359 (ALL_PRIMARY_SYMTABS): Use it.
4360 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4361 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4362 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4363 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4364 (basic_lookup_transparent_type): Ditto.
4365
4366 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4367
4368 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4369 it to optimize resolution of demangled name.
4370
4371 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 * configure.ac (development): Define new variable.
4374 Call AC_CHECK_LIB for mcheck if $development.
4375 (ERROR_ON_WARNING): Enable it by default only if $development.
4376 * config.in: Regenerate.
4377 * configure: Regenerate.
4378
4379 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4380
4381 * target.c (target_read_memory): Make LEN argument as size_t.
4382 * target.h (target_read_memory): Likewise.
4383
4384 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4387
4388 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4389
4390 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4391 BookE interface for PowerPC server processors if not available
4392 in the Linux Kernel.
4393
4394 2012-05-31 Keith Seitz <keiths@redhat.com>
4395
4396 * linespec.c (decode_objc): Add cleanup to free
4397 INFO.FILE_SYMTABS.
4398 (find_linespec_symbols): Add cleanup to free CLASSES.
4399 * symfile.c (find_separate_debug_file_by_debuglink): Add
4400 cleanup to free DEBUGLINK.
4401 * ui-out.c (clear_header_list): No need to check if
4402 HEADER_NEXT.COLHDR is NULL.
4403 Free HEADER_NEXT.COL_NAME.
4404
4405 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4406
4407 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4408 warning.
4409
4410 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4411
4412 * configure.host (gdb_host_cpu): Handle tilegx*.
4413 (gdb_host): Handle tilegx-*-linux*.
4414 * tilegx-linux-nat.c: New file.
4415 * config/tilegx/linux.mh: New file.
4416
4417 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4418
4419 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4420 tilegx-linux-tdep.o.
4421 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4422 tilegx-linux-tdep.c.
4423 * configure.tgt: Handle tilegx-*-linux*.
4424 * tilegx-tdep.h: New file.
4425 * tilegx-tdep.c: New file.
4426 * tilegx-linux-tdep.c: New file.
4427 * regformats/reg-tilegx.dat: New file.
4428
4429 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4430
4431 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4432 accounting of hw watchpoints on ppc.
4433
4434 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4435
4436 * source.c (openp): Expand tilde in path entries.
4437
4438 2012-05-29 Doug Evans <dje@google.com>
4439
4440 * buildsym.c (block_compar): Fix comment.
4441 (end_symtab): Fix and clarify some comments.
4442
4443 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4444 cleanup_undefined_types.
4445 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4446 All callers updated.
4447
4448 2012-05-29 Tom Tromey <tromey@redhat.com>
4449
4450 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4451 fails.
4452 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4453 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4454 fails.
4455 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4456 fails.
4457
4458 2012-05-29 Tristan Gingold <gingold@adacore.com>
4459
4460 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4461 (struct darwin_info): ... New struct.
4462 (solib_darwin_pspace_data): New variable.
4463 (darwin_pspace_data_cleanup): New function.
4464 (get_darwin_info): Likewise.
4465 (darwin_dyld_version_ok, darwin_load_image_infos)
4466 (darwin_solib_get_all_image_info_addr_at_init)
4467 (darwin_solib_read_all_image_info_addr): Add info argument.
4468 Adjust code.
4469 (darwin_current_sos): Use per pspace structure.
4470 (darwin_solib_create_inferior_hook): Likewise.
4471 (darwin_clear_solib): Likewise.
4472 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4473
4474 2012-05-28 Pedro Alves <palves@redhat.com>
4475
4476 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4477 block that uses them. Clear ecss before handling each event.
4478
4479 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4480
4481 * solib-svr4.c (svr4_current_sos): New comment on
4482 svr4_current_sos_via_xfer_libraries fall back.
4483
4484 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4485
4486 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4487 it as a fallback for TYPE_IS_OPAQUE.
4488 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4489 symbols for lookup_symbol.
4490
4491 2012-05-24 John Steele Scott <toojays@toojays.net>
4492
4493 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4494 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4495 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4496 (check_producer): ... this new function, which also checks for ICC
4497 and caches the result.
4498 (producer_is_icc): New function.
4499 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4500 producer was ICC.
4501
4502 2012-05-24 Pedro Alves <palves@redhat.com>
4503
4504 PR gdb/7205
4505
4506 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4507 (default_gdb_signal_to_target): ... this. Add comment.
4508 (default_gdb_signal_from_host): Rename to ...
4509 (default_gdb_signal_from_target): ... this. Add comment.
4510 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4511 (default_gdb_signal_to_target): ... this.
4512 (default_gdb_signal_from_host): Rename to ...
4513 (default_gdb_signal_from_target): ... this.
4514 * corelow.c (core_open): Adjust to naming change. Replace comment.
4515 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4516 (gdb_signal_from_target): ... this. Adjust to
4517 default_gdb_signal_from_host naming change. Extend comment.
4518 (gdb_signal_to_host): Rename to ...
4519 (gdb_signal_to_target): ... this. Adjust to
4520 default_gdb_signal_to_host naming change.
4521 * gdbarch.h, gdbarch.c: Renegerate.
4522
4523 2012-05-24 Pedro Alves <palves@redhat.com>
4524
4525 PR gdb/7205
4526
4527 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4528
4529 2012-05-24 Pedro Alves <palves@redhat.com>
4530
4531 PR gdb/7205
4532
4533 Replace target_signal with gdb_signal throughout.
4534
4535 2012-05-24 Pedro Alves <palves@redhat.com>
4536
4537 PR tui/14159
4538
4539 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4540 string, instead of reusing the va_list argument.
4541
4542 2012-05-24 Tom Tromey <tromey@redhat.com>
4543
4544 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4545 Remove.
4546
4547 2012-05-23 Doug Evans <dje@google.com>
4548
4549 * symtab.c (search_symbols): Formatting fixes.
4550 (print_symbol_info): Formatting fixes.
4551
4552 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4553 int64_t change to leb128 API.
4554 (read_encoded_value, decode_frame_entry_1): Ditto.
4555 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4556 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4557 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4558 (execute_stack_op): Ditto.
4559 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4560 (safe_read_uleb128, safe_read_sleb128): Ditto.
4561 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4562 (dwarf2_compile_expr_to_ax): Ditto.
4563 (locexpr_describe_location_piece): Ditto.
4564 (disassemble_dwarf_expression): Ditto.
4565 (locexpr_describe_location_1): Ditto.
4566
4567 2012-05-23 Stan Shebs <stan@codesourcery.com>
4568 Kwok Cheung Yeung <kcy@codesourcery.com>
4569
4570 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4571 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4572 (mi-cmd-info.o): New rule.
4573 * osdata.h (info_osdata_command): New declaration.
4574 * osdata.c (info_osdata_command): Change to non-static.
4575 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4576 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4577 * mi/mi-cmd-info.c: New file.
4578
4579 2012-05-23 Doug Evans <dje@google.com>
4580
4581 * symtab.c (search_symbols): Pass NULL for file_matcher to
4582 expand_symtabs_matching if there are no files to match.
4583
4584 * gdbtypes.c (lookup_typename): Simplify.
4585
4586 2012-05-23 Pedro Alves <palves@redhat.com>
4587
4588 * arch-utils.h (default_target_signal_to_host): Delete.
4589 * arch-utils.c (default_target_signal_to_host): Delete.
4590 * gdbarch.sh (target_signal_to_host): Remove.
4591 * gdbarch.h, gdbarch.c: Regenerate.
4592
4593 2012-05-22 Doug Evans <dje@google.com>
4594
4595 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4596 "const gdb_byte *".
4597 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4598 (execute_cfa_program): Update to match API of leb128 functions.
4599 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4600 "const gdb_byte *".
4601 (read_unsigned_leb128, read_signed_leb128): Delete.
4602 (read_initial_length): Change type of buf argument to
4603 "const gdb_byte *".
4604 (read_encoded_value): Update to match API of leb128 functions.
4605 (decode_frame_entry): Change result to "const gdb_byte *", and
4606 similarly for "start" parameter.
4607 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4608 (dwarf2_build_frame_info): Change local frame_ptr to
4609 "const gdb_byte *".
4610 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4611 read_uleb128, read_sleb128. All callers updated.
4612 (safe_skip_leb128): New function.
4613 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4614 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4615 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4616 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4617 read_uleb128, read_sleb128.
4618 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4619 (execute_stack_op): Update to match API of leb128 functions.
4620 * dwarf2expr.h: #include "leb128.h".
4621 (read_uleb128, read_sleb128): Delete.
4622 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4623 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4624 * dwarf2loc.c (debug_loc_kind): New enum.
4625 (decode_debug_loc_addresses): New function.
4626 (decode_debug_loc_dwo_addresses): New function.
4627 (dwarf2_find_location_expression): Rewrite.
4628 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4629 (locexpr_describe_location_piece): Ditto.
4630 (disassemble_dwarf_expression): Ditto.
4631 (locexpr_describe_location_1): Ditto.
4632 (loclist_describe_location): Rewrite.
4633 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4634 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4635 (dwarf2_section_buffer_overflow_complaint): Renamed from
4636 dwarf2_macros_too_long_complaint. All callers updated.
4637 (skip_leb128): Delete.
4638 (init_cu_die_reader): Initialize reader->buffer_end.
4639 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4640 (skip_form_bytes): New arg buffer_end. All callers updated.
4641 Replace call to skip_leb128 with gdb_skip_leb128.
4642 (skip_unknown_opcode): New arg mac_end. All callers updated.
4643 (fill_in_loclist_baton): Initialize baton->from_dwo.
4644
4645 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4646
4647 * mips-linux-nat.c (mips_linux_read_description): Use a more
4648 verbose error message.
4649
4650 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4651
4652 * NEWS: Add MIPS/Linux DSP support.
4653 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4654 (SIGCONTEXT_DSPCTL): New macro.
4655 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4656 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4657 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4658 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4659 (N64_SIGCONTEXT_HI3): Likewise.
4660 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4661 (N64_SIGCONTEXT_LO3): Likewise.
4662 (N64_SIGCONTEXT_DSPCTL): Likewise.
4663 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4664 (mips_linux_o32_sigframe_init): Handle DSP registers.
4665 (mips_linux_n32n64_sigframe_init): Likewise.
4666
4667 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4668
4669 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4670 call to abort.
4671
4672 2012-05-22 Pedro Alves <palves@redhat.com>
4673
4674 * target.h (store_waitstatus): Move declaration ...
4675 * inf-child.h (store_waitstatus): ... here.
4676 * target.c: Move inclusion of gdb_wait.h, and ...
4677 (store_waitstatus): ... this ...
4678 * inf-child.c: ... here.
4679 * linux-nat.c: Include inf-child.h.
4680 * rs6000-nat.c: Include inf-child.h.
4681 * spu-linux-nat.c: Include inf-child.h.
4682
4683 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4684
4685 * tracepoint.c (start_tracing): Add missing i18n markup.
4686 (stop_tracing, set_trace_user): Ditto.
4687 (set_trace_notes, set_trace_stop_notes): Ditto.
4688
4689 2012-05-21 Tom Tromey <tromey@redhat.com>
4690
4691 PR c++/7173:
4692 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4693 types.
4694 * value.h (value_cast_pointers): Update.
4695 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4696 (value_cast): Update.
4697 (update_search_result): New function.
4698 (do_search_struct_field): New, from search_struct_field. Check
4699 for ambiguous results.
4700 (search_struct_field): Rewrite.
4701 * infcall.c (value_arg_coerce): Update.
4702 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4703 value_cast_pointers.
4704 * ada-lang.c (ada_convert_actual): Update.
4705
4706 2012-05-21 Tom Tromey <tromey@redhat.com>
4707
4708 * macroexp.c (macro_stringify): Terminate the string.
4709
4710 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4711
4712 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4713 Describe it.
4714 * auto-load.c (auto_load_expand_dir_vars): New function.
4715 (auto_load_safe_path_vec_update): Use it, remove the
4716 substitute_path_component call thanks to it.
4717 (auto_load_objfile_script): Remove the debug_file_directory processing.
4718 Use auto_load_expand_dir_vars, remove the substitute_path_component
4719 call thanks to it.
4720 * configure: Regenerate.
4721 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4722 path. Escape $ also for $debugdir.
4723 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4724 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4725
4726 2012-05-20 Doug Evans <dje@google.com>
4727
4728 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4729 before use. Check for symtab->includes == NULL before scanning it.
4730
4731 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4732
4733 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4734
4735 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4736
4737 * NEWS: Add microMIPS support and "set mips compression",
4738 "show mips compression" commands.
4739 * mips-tdep.h (mips_isa): New enum.
4740 (gdbarch_tdep): Add mips_isa.
4741 (mips_pc_is_mips16): Update prototype.
4742 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4743 * mips-tdep.c (mips_compression_mips16): New variable.
4744 (mips_compression_micromips): Likewise.
4745 (mips_compression_strings): Likewise.
4746 (mips_compression_string): Likewise.
4747 (is_mips16_isa, is_micromips_isa): New functions.
4748 (is_mips16_addr): Rename to...
4749 (is_compact_addr): ... this.
4750 (unmake_mips16_addr): Likewise to...
4751 (unmake_compact_addr): ... this.
4752 (make_mips16_addr): Likewise to...
4753 (make_compact_addr): ... this.
4754 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4755 functions.
4756 (mips_elf_make_msymbol_special): Handle microMIPS code.
4757 (msymbol_is_special): Rename to...
4758 (msymbol_is_mips16): ... this.
4759 (mips_make_symbol_special, mips_pc_is_mips16): Update
4760 accordingly.
4761 (msymbol_is_mips, msymbol_is_micromips): New functions.
4762 (mips16_to_32_reg): Rename to...
4763 (mips_reg3_to_reg): ... this.
4764 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4765 (mips_pc_isa): Likewise.
4766 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4767 code.
4768 (mips_fetch_instruction): Pass return status instead of printing
4769 an error message if requested. Handle microMIPS code. Bail out
4770 on an invalid ISA.
4771 (micromips_op): New macro.
4772 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4773 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4774 (b6s4_op, b7s3_reg): Likewise.
4775 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4776 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4777 (mips_insn_size): New function.
4778 (mips32_next_pc): Update mips_fetch_instruction call.
4779 (micromips_relative_offset7): New function.
4780 (micromips_relative_offset10): Likewise.
4781 (micromips_relative_offset16): Likewise.
4782 (micromips_pc_insn_size): Likewise.
4783 (micromips_bc1_pc): Likewise.
4784 (micromips_next_pc): Likewise.
4785 (unpack_mips16): Update mips_fetch_instruction call.
4786 (extended_mips16_next_pc): Update according to change to
4787 mips16_to_32_reg.
4788 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4789 code.
4790 (mips16_scan_prologue): Update mips_fetch_instruction call.
4791 Update according to change to mips16_to_32_reg.
4792 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4793 (mips_insn16_frame_base_sniffer): Likewise.
4794 (micromips_decode_imm9): New function.
4795 (micromips_scan_prologue): Likewise.
4796 (mips_micro_frame_cache): Likewise.
4797 (mips_micro_frame_this_id): Likewise.
4798 (mips_micro_frame_prev_register): Likewise.
4799 (mips_micro_frame_sniffer): Likewise.
4800 (mips_micro_frame_unwind): New variable.
4801 (mips_micro_frame_base_address): New function.
4802 (mips_micro_frame_base): New variable.
4803 (mips_micro_frame_base_sniffer): New function.
4804 (mips32_scan_prologue): Update mips_fetch_instruction call.
4805 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4806 rather than for MIPS16.
4807 (mips_insn32_frame_base_sniffer): Likewise.
4808 (mips_addr_bits_remove): Handle microMIPS code.
4809 (deal_with_atomic_sequence): Rename to...
4810 (mips_deal_with_atomic_sequence): ... this. Update the type
4811 of the variable used to hold an instruction. Remove the ISA bit
4812 check. Update mips_fetch_instruction call.
4813 (micromips_deal_with_atomic_sequence): New function.
4814 (deal_with_atomic_sequence): Likewise.
4815 (mips_about_to_return): Handle microMIPS code. Update
4816 mips_fetch_instruction call.
4817 (heuristic_proc_start): Check for the standard MIPS ISA rather
4818 than for MIPS16. Update mips_pc_is_mips16 and
4819 mips_fetch_instruction calls. Handle microMIPS code.
4820 (mips_push_dummy_code): Handle microMIPS code.
4821 (mips_eabi_push_dummy_call): Likewise.
4822 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4823 (mips_o64_push_dummy_call): Handle microMIPS code.
4824 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4825 (is_delayed): Remove function.
4826 (mips_single_step_through_delay): Replace the call to is_delayed
4827 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4828 Handle microMIPS code.
4829 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4830 microMIPS code.
4831 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4832 call.
4833 (micromips_in_function_epilogue_p): New function.
4834 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4835 call.
4836 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4837 Handle microMIPS.
4838 (gdb_print_insn_mips): Likewise.
4839 (mips_breakpoint_from_pc): Likewise.
4840 (mips_remote_breakpoint_from_pc): New function.
4841 (mips32_instruction_has_delay_slot): Simplify making use of the
4842 updated mips_fetch_instruction interface.
4843 (micromips_instruction_has_delay_slot): New function.
4844 (mips16_instruction_has_delay_slot): Simplify making use of the
4845 updated mips_fetch_instruction interface.
4846 (mips_adjust_breakpoint_address): Check for the standard MIPS
4847 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4848 calls. Handle microMIPS code.
4849 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4850 (mips_skip_trampoline_code): Handle microMIPS code.
4851 (global_mips_compression): New function.
4852 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4853 file flags. Register the microMIPS remote breakpoint handler
4854 and heuristic frame unwinder.
4855 (show_mips_compression): New function.
4856 (_initialize_mips_tdep): Add the "set mips compression" and
4857 "show mips compression" commands.
4858
4859 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4860
4861 * ada-lang.c:
4862 * ada-tasks.c:
4863 * ada-varobj.c:
4864 * amd64-darwin-tdep.c:
4865 * arm-symbian-tdep.c:
4866 * arm-tdep.c:
4867 * avr-tdep.c:
4868 * ax-gdb.c:
4869 * bfin-linux-tdep.c:
4870 * breakpoint.c:
4871 * c-valprint.c:
4872 * cli/cli-cmds.c:
4873 * coffread.c:
4874 * cp-support.c:
4875 * cris-tdep.c:
4876 * dwarf2-frame-tailcall.c:
4877 * dwarf2-frame.c:
4878 * dwarf2expr.c:
4879 * dwarf2loc.c:
4880 * dwarf2read.c:
4881 * elfread.c:
4882 * eval.c:
4883 * expprint.c:
4884 * f-valprint.c:
4885 * frv-tdep.c:
4886 * h8300-tdep.c:
4887 * hppa-hpux-tdep.c:
4888 * hppa-tdep.c:
4889 * hppanbsd-tdep.c:
4890 * i386-nto-tdep.c:
4891 * i386-tdep.c:
4892 * i387-tdep.c:
4893 * ia64-tdep.c:
4894 * jit.c:
4895 * linespec.c:
4896 * linux-tdep.c:
4897 * lm32-tdep.c:
4898 * m2-valprint.c:
4899 * m32c-tdep.c:
4900 * m32r-rom.c:
4901 * m32r-tdep.c:
4902 * m68k-tdep.c:
4903 * m68klinux-tdep.c:
4904 * mi/mi-main.c:
4905 * microblaze-tdep.c:
4906 * mips-linux-tdep.c:
4907 * mips-tdep.c:
4908 * mn10300-tdep.c:
4909 * p-valprint.c:
4910 * parse.c:
4911 * ppc-linux-tdep.c:
4912 * ppc-sysv-tdep.c:
4913 * printcmd.c:
4914 * python/py-finishbreakpoint.c:
4915 * python/py-inferior.c:
4916 * python/py-infthread.c:
4917 * python/py-type.c:
4918 * python/python.c:
4919 * remote-fileio.c:
4920 * remote-m32r-sdi.c:
4921 * remote-mips.c:
4922 * reverse.c:
4923 * rl78-tdep.c:
4924 * rs6000-aix-tdep.c:
4925 * rs6000-tdep.c:
4926 * s390-tdep.c:
4927 * score-tdep.c:
4928 * sh64-tdep.c:
4929 * skip.c:
4930 * solib-darwin.c:
4931 * solib-dsbt.c:
4932 * solib-frv.c:
4933 * sparc-tdep.c:
4934 * spu-multiarch.c:
4935 * spu-tdep.c:
4936 * stack.c:
4937 * symfile.c:
4938 * symtab.c:
4939 * tic6x-tdep.c:
4940 * tracepoint.c:
4941 * v850-tdep.c:
4942 * valarith.c:
4943 * valprint.c:
4944 * value.c:
4945 * xcoffread.c:
4946 * xtensa-tdep.c:
4947 * ada-lang.c:
4948 * ada-tasks.c:
4949 * ada-varobj.c:
4950 * amd64-darwin-tdep.c:
4951 * arm-symbian-tdep.c:
4952 * arm-tdep.c: Delete unused variables.
4953
4954 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4955
4956 Rename $ddir to $datadir.
4957 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4958 * auto-load.c (auto_load_safe_path_vec_update)
4959 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4960 * configure: Regenerate.
4961 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4962 Likewise. Remove the 'use $ddir' help string.
4963
4964 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4965
4966 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4967 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4968
4969 2012-05-18 Tom Tromey <tromey@redhat.com>
4970
4971 PR exp/13907:
4972 * valprint.h (struct value_print_options) <symbol_print>: New
4973 field.
4974 * valprint.c (user_print_options): Add default for symbol_print.
4975 (show_symbol_print): New function.
4976 (generic_val_print): Respect symbol_print.
4977 (_initialize_valprint): Add "print symbol" setting.
4978 * f-valprint.c (f_val_print): Respect symbol_print.
4979 * c-valprint.c (c_val_print): Respect symbol_print.
4980 * NEWS: Update.
4981 * printcmd.c (print_address_symbolic): Return int. Ignore some
4982 zero-size symbols.
4983 (print_address_demangle): Return int.
4984 * defs.h: (print_address_symbolic): Return int.
4985 * value.h (print_address_demangle): Return int.
4986
4987 2012-05-18 Tom Tromey <tromey@redhat.com>
4988
4989 * valprint.c (val_print_string): Don't print leading space.
4990 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4991 print space before string or vtbl.
4992 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4993 before string.
4994 * jv-valprint.c (java_value_print): Print space before string.
4995 * go-valprint.c (print_go_string): Print space before string.
4996 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4997 space before string.
4998 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4999 space before string or vtbl.
5000 * auxv.c (fprint_target_auxv): Print space after address.
5001
5002 2012-05-18 Tom Tromey <tromey@redhat.com>
5003
5004 * printcmd.c (print_address_demangle): Remove special case for 0.
5005
5006 2012-05-18 Tom Tromey <tromey@redhat.com>
5007
5008 * printcmd.c (print_address_demangle): Add 'opts' argument.
5009 * p-valprint.c (pascal_val_print): Update.
5010 * jv-valprint.c (java_val_print): Update.
5011 * value.h: Update.
5012 * valprint.c (generic_val_print): Update.
5013 (print_function_pointer_address): Add 'options' argument. Remove
5014 'addressprint' argument. Update.
5015 * m2-valprint.c (print_unpacked_pointer): Update.
5016 * gnu-v3-abi.c (print_one_vtable): Update.
5017 (gnuv3_print_method_ptr): Update.
5018 * f-valprint.c (f_val_print): Update.
5019 * cp-valprint.c (cp_print_value_fields): Update.
5020 * valprint.h (print_function_pointer_address): Update.
5021 * c-valprint.c (c_val_print): Update.
5022
5023 2012-05-18 Tom Tromey <tromey@redhat.com>
5024
5025 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5026 directly corresponding to the found psymtab.
5027 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5028 (dw2_find_pc_sect_symtab): Use it.
5029 * block.h (blockvector_contains_pc): Declare.
5030 * block.c (find_block_in_blockvector): New function.
5031 (blockvector_for_pc_sect): Use it.
5032 (blockvector_contains_pc): New function.
5033
5034 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5035
5036 * mips-tdep.h (mips_write_pc): New prototype.
5037 * mips-tdep.c (mips_write_pc): Make external, add description.
5038 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5039 add description.
5040
5041 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5042
5043 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5044 mips_regnum->pc.
5045 (mips_unwind_pc, mips_write_pc): Likewise.
5046 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5047 gdbarch_read_pc.
5048
5049 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5050
5051 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5052 proc_warn, proc_error, proc_get_status, proc_flags,
5053 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5054 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5055 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5056 proc_stop_process, proc_wait_for_stop, proc_run_process,
5057 proc_set_traced_signals, proc_set_traced_faults,
5058 proc_set_traced_sysentry, proc_set_traced_sysexit,
5059 proc_set_held_signals, proc_get_held_signals,
5060 proc_get_traced_signals, proc_get_traced_faults,
5061 proc_get_traced_sysentry, proc_get_traced_sysexit,
5062 proc_clear_current_fault, proc_set_current_signal,
5063 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5064 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5065 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5066 proc_get_current_thread, proc_get_current_thread,
5067 proc_get_current_thread, proc_update_threads,
5068 proc_update_threads, proc_update_threads, proc_update_threads,
5069 proc_iterate_over_threads, procfs_find_new_threads,
5070 procfs_pid_to_str): Make static. Remove advance declaration.
5071 (proc_cursig): Make static. Conditionalized defintion on
5072 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5073 (proc_syscall, proc_set_kill_on_last_close,
5074 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5075 proc_get_pending_signals, proc_get_signal_actions,
5076 proc_trace_signal, proc_ignore_signal): Delete.
5077
5078 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5079
5080 * coffread.c (cs_section_address): Passing proper argument for
5081 `bfd_get_section_vma'.
5082 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5083 `bfd_get_section_flags'.
5084 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5085 `bfd_get_section_vma'.
5086
5087 2012-05-16 Tom Tromey <tromey@redhat.com>
5088
5089 PR macros/13205:
5090 * macrotab.h: (macro_define_special): Declare.
5091 (enum macro_special_kind): New.
5092 (struct macro_definition) <argc, replacement>: Update comments.
5093 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5094 (macro_define_object_internal): New function.
5095 (macro_define_object): Use it.
5096 (macro_define_special): New function.
5097 (fixup_definition): New function.
5098 (macro_lookup_definition, foreach_macro_in_scope)
5099 (foreach_macro): Use fixup_definition.
5100 * macroexp.h (macro_stringify): Declare.
5101 * macroexp.c (free_buffer_return_text): New function.
5102 (stringify): Constify "arg".
5103 (macro_stringify): New function.
5104 * dwarf2read.c (macro_start_file): Call macro_define_special.
5105
5106 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5107 Maciej W. Rozycki <macro@mips.com>
5108
5109 * breakpoint.h (bp_location): Add related_address member.
5110 * inferior.h (get_return_value): Take a pointer to struct value
5111 instead of struct type for the function requested.
5112 * value.h (using_struct_return): Likewise.
5113 * gdbarch.sh (return_value): Take a pointer to struct value
5114 instead of struct type for the function requested.
5115 * breakpoint.c (set_breakpoint_location_function): Initialize
5116 related_address for bp_gnu_ifunc_resolver breakpoints.
5117 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5118 requested function's address to gdbarch_return_value.
5119 * eval.c (evaluate_subexp_standard): Pass the requested
5120 function's address to using_struct_return.
5121 * infcall.c (call_function_by_hand): Pass the requested
5122 function's address to using_struct_return and
5123 gdbarch_return_value.
5124 * infcmd.c (get_return_value): Take a pointer to struct value
5125 instead of struct type for the function requested.
5126 (print_return_value): Update accordingly.
5127 (finish_command_continuation): Likewise.
5128 * stack.c (return_command): Pass the requested function's
5129 address to using_struct_return and gdbarch_return_value.
5130 * value.c (using_struct_return): Take a pointer to struct value
5131 instead of struct type for the function requested. Pass the
5132 requested function's address to gdbarch_return_value.
5133 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5134 New function_value member, replacing function_type.
5135 (bpfinishpy_dealloc): Update accordingly.
5136 (bpfinishpy_pre_stop_hook): Likewise.
5137 (bpfinishpy_init): Likewise. Record the requested function's
5138 address.
5139 * mips-tdep.c (mips_fval_reg): New enum.
5140 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5141 words put in GP registers.
5142 (mips_o64_push_dummy_call): Update a comment.
5143 (mips_o32_return_value): Take a pointer to struct value instead
5144 of struct type for the function requested and use it to check if
5145 using the MIPS16 calling convention. Return the designated
5146 general purpose registers for floating-point values returned in
5147 MIPS16 mode.
5148 (mips_o64_return_value): Likewise.
5149 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5150 (ppc_sysv_abi_broken_return_value): Likewise.
5151 (ppc64_sysv_abi_return_value): Likewise.
5152 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5153 value instead of struct type for the function requested.
5154 * amd64-tdep.c (amd64_return_value): Likewise.
5155 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5156 * arm-tdep.c (arm_return_value): Likewise.
5157 * avr-tdep.c (avr_return_value): Likewise.
5158 * bfin-tdep.c (bfin_return_value): Likewise.
5159 * cris-tdep.c (cris_return_value): Likewise.
5160 * frv-tdep.c (frv_return_value): Likewise.
5161 * h8300-tdep.c (h8300_return_value): Likewise.
5162 (h8300h_return_value): Likewise.
5163 * hppa-tdep.c (hppa32_return_value): Likewise.
5164 (hppa64_return_value): Likewise.
5165 * i386-tdep.c (i386_return_value): Likewise.
5166 * ia64-tdep.c (ia64_return_value): Likewise.
5167 * iq2000-tdep.c (iq2000_return_value): Likewise.
5168 * lm32-tdep.c (lm32_return_value): Likewise.
5169 * m32c-tdep.c (m32c_return_value): Likewise.
5170 * m32r-tdep.c (m32r_return_value): Likewise.
5171 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5172 * m68k-tdep.c (m68k_return_value): Likewise.
5173 (m68k_svr4_return_value): Likewise.
5174 * m88k-tdep.c (m88k_return_value): Likewise.
5175 * mep-tdep.c (mep_return_value): Likewise.
5176 * microblaze-tdep.c (microblaze_return_value): Likewise.
5177 * mn10300-tdep.c (mn10300_return_value): Likewise.
5178 * moxie-tdep.c (moxie_return_value): Likewise.
5179 * mt-tdep.c (mt_return_value): Likewise.
5180 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5181 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5182 (ppc_sysv_abi_broken_return_value): Likewise.
5183 (ppc64_sysv_abi_return_value): Likewise.
5184 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5185 * rl78-tdep.c (rl78_return_value): Likewise.
5186 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5187 * rx-tdep.c (rx_return_value): Likewise.
5188 * s390-tdep.c (s390_return_value): Likewise.
5189 * score-tdep.c (score_return_value): Likewise.
5190 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5191 (sh_return_value_fpu): Likewise.
5192 * sh64-tdep.c (sh64_return_value): Likewise.
5193 * sparc-tdep.c (sparc32_return_value): Likewise.
5194 * sparc64-tdep.c (sparc64_return_value): Likewise.
5195 * spu-tdep.c (spu_return_value): Likewise.
5196 * tic6x-tdep.c (tic6x_return_value): Likewise.
5197 * v850-tdep.c (v850_return_value): Likewise.
5198 * vax-tdep.c (vax_return_value): Likewise.
5199 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5200 * xtensa-tdep.c (xtensa_return_value): Likewise.
5201 * gdbarch.c: Regenerate.
5202 * gdbarch.h: Regenerate.
5203
5204 2012-05-15 Tom Tromey <tromey@redhat.com>
5205
5206 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5207
5208 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5209
5210 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5211 of command in two error message.
5212
5213 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5214
5215 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5216
5217 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5218
5219 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5220
5221 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5222
5223 * NEWS (show auto-load scripts-directory): Add forgotten command.
5224
5225 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5226
5227 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5228 parameters.
5229
5230 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5231
5232 * amd64-tdep.c: Include features/i386/x32.c and
5233 features/i386/x32-avx.c.
5234 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5235 initialize_tdesc_x32_avx.
5236
5237 2012-05-14 Stan Shebs <stan@codesourcery.com>
5238
5239 Add dynamic printf.
5240 * breakpoint.h (enum bptype): New type bp_dprintf.
5241 (struct breakpoint): New field extra_string.
5242 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5243 (create_breakpoint): Add extra_string arg.
5244 * breakpoint.c (dprintf_breakpoint_ops): New.
5245 (is_breakpoint): Add bp_dprintf.
5246 (bpstat_what): Add dprintf case.
5247 (bptype_string): Ditto.
5248 (print_one_breakpoint_location): Ditto.
5249 (init_bp_location): Ditto.
5250 (bkpt_print_mention): Ditto.
5251 (dprintf_style_enums): New array.
5252 (dprintf_style): New global.
5253 (dprintf_function): New global.
5254 (dprintf_channel): New global.
5255 (update_dprintf_command_list): New function.
5256 (update_dprintf_commands): New function.
5257 (init_breakpoint_sal): Add extra_string argument, handle it.
5258 (create_breakpoint_sal): Add extra_string argument.
5259 (create_breakpoints_sal): Add extra_string argument, update callers.
5260 (find_condition_and_thread): Add extra argument.
5261 (create_breakpoint): Add extra_string argument, record it.
5262 (dprintf_command): New function.
5263 (break_command_1): Add arg to create_breakpoint call.
5264 (handle_gnu_v3_exceptions): Ditto.
5265 (trace_command): Ditto.
5266 (ftrace_command): Ditto.
5267 (strace_command): Ditto.
5268 (bkpt_print_mention): Add dprintf case.
5269 (create_breakpoint_sal_default): Add extra_string argument.
5270 (_initialize_breakpoint): Add new commands.
5271 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5272 * python/py-breakpoint.c (bppy_init): Ditto.
5273 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5274
5275 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5276
5277 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5278
5279 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5280
5281 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5282 unsigned long long.
5283
5284 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5285
5286 Add a new function gdb.find_pc_line to the Python API.
5287 * NEWS (Python Scripting): Add entry about the new function.
5288 * python/python.c (gdbpy_find_pc_line): New function which
5289 implements gdb.find_pc_line.
5290 (GdbMethods): Add entry for the new function.
5291
5292 2012-05-12 Pedro Alves <palves@redhat.com>
5293
5294 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5295 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5296
5297 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5298
5299 * inferior.c: Include completer.h
5300 (initialize_inferiors): Set completer of add-inferior to
5301 filename_completer.
5302
5303 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5304
5305 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5306 gdbarch_ptr_bit for x32 core dump.
5307
5308 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5309
5310 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5311 and features/i386/x32-avx-linux.c.
5312
5313 2012-05-11 Stan Shebs <stan@codesourcery.com>
5314 Kwok Cheung Yeung <kcy@codesourcery.com>
5315
5316 * NEWS: Describe new info os commands.
5317 * common/linux-osdata.c (PID_T, TIME_T): Define.
5318 (MAX_PID_T_STRLEN): New.
5319 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5320 MAX_PID_T_STRLEN.
5321 (command_from_pid): Add comment. Change to use PID_T.
5322 (commandline_from_pid): Change to use PID_T.
5323 (user_from_pid): Add comment.
5324 (get_process_owner): Add comment. Change to use PID_T and
5325 MAX_PID_T_STRLEN.
5326 (get_number_of_cpu_cores): Add comment.
5327 (get_cores_used_by_process): Add comment. Change to use PID_T and
5328 MAX_PID_T_STRLEN.
5329 (linux_xfer_osdata_processes): Change to use PID_T and
5330 MAX_PID_T_STRLEN.
5331 (compare_processes): New function.
5332 (linux_xfer_osdata_processgroups): New function.
5333 (linux_xfer_osdata_threads): Change to use PID_T.
5334 (linux_xfer_osdata_fds): New function.
5335 (format_socket_state, print_sockets): New functions.
5336 (union socket_addr): New union.
5337 (linux_xfer_osdata_isockets): New function.
5338 (time_from_time_t, group_from_gid): New functions.
5339 (linux_xfer_osdata_shm): New function.
5340 (linux_xfer_osdata_sem): New function.
5341 (linux_xfer_osdata_msg): New function.
5342 (linux_xfer_osdata_modules): New function.
5343 (osdata_table): Add new entries.
5344 * common/buffer.c (buffer_xml_printf): Add support for long and
5345 long long format specifiers.
5346
5347 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5348
5349 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5350 (tdesc_x32_avx_linux): Likewise.
5351
5352 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5353
5354 Implement multi-component --with-auto-load-dir.
5355 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5356 entries.
5357 (--with-auto-load-safe-path): Update the default value description.
5358 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5359 New.
5360 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5361 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5362 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5363 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5364 "set auto-load scripts-directory".
5365 * config.in: Regenerate.
5366 * configure: Regenerate.
5367 * configure.ac (--with-auto-load-dir): New configure option.
5368 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5369
5370 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5371
5372 Provide $ddir substitution for --with-auto-load-safe-path.
5373 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5374 entries.
5375 * auto-load.c: Include observer.h.
5376 (auto_load_safe_path_vec_update): Call substitute_path_component for
5377 each component. New variable ddir_subst.
5378 (auto_load_gdb_datadir_changed): New function.
5379 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5380 AUTO_LOAD_SAFE_PATH. New comment.
5381 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5382 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5383 * config.in: Regenerate.
5384 * configure: Regenerate.
5385 * configure.ac (--auto-load-safe-path): Rename
5386 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5387 GDB_DATADIR/auto-load.
5388 * defs.h (substitute_path_component): New declaration.
5389 * top.c: Include observer.h.
5390 (set_gdb_datadir): New function.
5391 (init_main): Install it for "set data-directory".
5392 * utils.c (substitute_path_component): New function.
5393
5394 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5395
5396 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5397 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5398 DEBUG_FILE_DIRECTORY. Handle multiple components of
5399 DEBUG_FILE_DIRECTORY.
5400
5401 2012-05-10 Tom Tromey <tromey@redhat.com>
5402
5403 * dwarf2read.c (recursively_write_psymbols): New function.
5404 (write_psymtabs_to_index): Use it.
5405
5406 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5407 field.
5408 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5409 (load_partial_comp_unit): Update.
5410 (queue_comp_unit): Add argument 'pretend_language'.
5411 (process_queue): Update.
5412 (psymtab_to_symtab_1): Skip dependencies that have a user.
5413 (load_partial_comp_unit_reader): Give meaning to the 'data'
5414 argument.
5415 (load_full_comp_unit): Add 'pretend_language' argument.
5416 (process_full_comp_unit): Add 'pretend_language' argument. Set
5417 language on CU.
5418 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5419 Update.
5420 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5421 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5422 Update.
5423 (prepare_one_comp_unit): Add 'pretend_language' argument.
5424
5425 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5426 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5427 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5428 (dw2_do_instantiate_symtab): Check whether symtab was read in
5429 before queueing.
5430 (dw2_instantiate_symtab): Add assertion. Call
5431 process_cu_includes.
5432 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5433 (partial_symtab_p): New typedef.
5434 (set_partial_user): New function.
5435 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5436 (scan_partial_symbols): Add imported CU to imported_symtabs.
5437 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5438 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5439 (get_symtab, recursively_compute_inclusions)
5440 (compute_symtab_includes, process_cu_includes)
5441 (process_imported_unit_die): New functions.
5442 (process_die) <DW_TAG_imported_unit>: New case.
5443 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5444
5445 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5446 comment.
5447 (struct partial_die_info) <locdesc>: Remove.
5448 <d>: New field.
5449 (process_psymtab_comp_unit): Add 'read_partial' argument.
5450 Update.
5451 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5452 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5453 (add_partial_symbol): Update.
5454 (process_die): Handle DW_TAG_partial_unit.
5455 (read_file_scope): Update comment.
5456 (load_partial_dies): Handle DW_TAG_imported_unit.
5457 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5458 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5459
5460 2012-05-10 Tom Tromey <tromey@redhat.com>
5461
5462 * cc-with-dwz.sh: New file.
5463
5464 2012-05-10 Tom Tromey <tromey@redhat.com>
5465
5466 * symtab.h (struct symtab) <includes, user>: New fields.
5467 * block.h (struct block_iterator) <d, idx, which>: New fields.
5468 * block.c (initialize_block_iterator, find_iterator_symtab)
5469 (block_iterator_step, block_iter_name_step)
5470 (block_iter_match_step): New functions.
5471 (block_iterator_first, block_iterator_next)
5472 (block_iter_name_first, block_iter_name_next)
5473 (block_iter_match_first, block_iter_match_next): Rewrite.
5474 (get_block_symtab): New function.
5475
5476 2012-05-10 Tom Tromey <tromey@redhat.com>
5477
5478 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5479 set_block_symtab.
5480 * jit.c (finalize_symtab): Use allocate_global_block,
5481 set_block_symtab.
5482 * buildsym.c (finish_block_internal): New function, from old
5483 finish_block.
5484 (finish_block): Rewrite.
5485 (end_symtab): Use finish_block_internal, set_block_symtab.
5486 * block.h (struct global_block): New.
5487 (allocate_global_block, set_block_symtab): Declare.
5488 * block.c (allocate_global_block, set_block_symtab): New
5489 functions.
5490
5491 2012-05-10 Tom Tromey <tromey@redhat.com>
5492
5493 * psymtab.c (partial_map_expand_apply): Add assertion.
5494 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5495 (psymtab_to_symtab): Find unshared psymtab.
5496 (dump_psymtab): Print including psymtabs.
5497 (recursively_search_psymtabs): New function.
5498 (expand_symtabs_matching_via_partial): Use it.
5499 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5500 fields.
5501 (enum psymtab_search_status): New.
5502
5503 2012-05-10 Tom Tromey <tromey@redhat.com>
5504
5505 * tracepoint.c (scope_info): Update.
5506 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5507 (find_pc_sect_symtab, search_symbols)
5508 (default_make_symbol_completion_list_break_on)
5509 (make_file_symbol_completion_list): Update.
5510 * symmisc.c (dump_symtab_1): Update.
5511 * stack.c (print_frame_args, iterate_over_block_locals)
5512 (print_frame_labels, iterate_over_block_arg_vars): Update.
5513 * python/py-block.c (block_object) <dict>: Remove.
5514 <block>: New field.
5515 <iter>: Change type.
5516 (blpy_iter): Update.
5517 (blpy_block_syms_iternext): Update.
5518 * psymtab.c (map_block): Use block iterators.
5519 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5520 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5521 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5522 * infrun.c (check_exception_resume): Update.
5523 * cp-support.c (make_symbol_overload_list_block): Update.
5524 * coffread.c (patch_opaque_types): Update.
5525 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5526 * block.h (struct block_iterator): New.
5527 (block_iterator_first, block_iterator_next, block_iter_name_first)
5528 (block_iter_name_next, block_iter_match_first)
5529 (block_iter_match_next): Declare.
5530 (ALL_BLOCK_SYMBOLS): Redefine.
5531 * block.c (block_iterator_first, block_iterator_next)
5532 (block_iter_name_first, block_iter_name_next)
5533 (block_iter_match_first, block_iter_match_next): New functions.
5534 * ada-lang.c (ada_add_block_symbols)
5535 (ada_make_symbol_completion_list): Use block iterator.
5536
5537 2012-05-10 Tom Tromey <tromey@redhat.com>
5538
5539 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5540 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5541 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5542 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5543 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5544 Update.
5545
5546 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5547
5548 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5549 print-file-var-lib2.c, print-file-var-main.c and
5550 print-file-var.exp (located in gdb/testsuite/gdb.base).
5551
5552 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5553
5554 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5555 try locating the symbol in the symbol's own objfile first, before
5556 extending the search to all objfiles.
5557 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5558 out of lookup_symbol_aux_symtabs.
5559 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5560 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5561 Do not search EXCLUDE_OBJFILE.
5562 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5563 (lookup_symbol_global): Search for matches in the block's objfile
5564 first, before searching all other objfiles.
5565
5566 2012-05-10 Tristan Gingold <gingold@adacore.com>
5567
5568 * printcmd.c (set_command): Add pre/post inc/dec.
5569
5570 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5571
5572 * gdb.1: Document -ex option.
5573
5574 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5575
5576 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5577 * inferior.h (AT_SYMBOL): Delete.
5578
5579 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5580
5581 * mips-tdep.c (mips_push_dummy_code): New function.
5582 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5583 ON_STACK and install mips_push_dummy_code as our gdbarch
5584 push_dummy_code routine.
5585
5586 2012-05-09 Pedro Alves <palves@redhat.com>
5587
5588 * target.c (set_maintenance_target_async_permitted): Rename to ...
5589 (set_target_async_command): ... this.
5590 (show_maintenance_target_async_permitted): Rename to ...
5591 (show_target_async_command): ... this.
5592 (initialize_targets): Adjust.
5593
5594 2012-05-08 Doug Evans <dje@google.com>
5595
5596 * go-exp.y (classify_name): Add missing assignment of fields of
5597 yylval.ssym.
5598
5599 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5600
5601 Display the ">" prompt in interactive mode while reading canned
5602 commands, even when the current interpreter is MI.
5603
5604 * interps.c (interp_set_temp): New function.
5605
5606 * interps.h (interp_set_temp): Add prototype.
5607
5608 * cli/cli-script.c (restore_interp): New cleanup function.
5609 (read_command_lines): Temporarily override the current interpreter
5610 with CLI and arrange for restoring the original one.
5611
5612 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5613
5614 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5615
5616 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5617
5618 * probe.c (parse_probes): Move conditional to check for
5619 debuginfo files from here...
5620 * stap-probe.c (stap_get_probes): ... to here.
5621
5622 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5623 H.J. Lu <hongjiu.lu@intel.com>
5624
5625 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5626 `movl %esp, %ebp' for the X32 ABI.
5627
5628 2012-05-07 Tom Tromey <tromey@redhat.com>
5629
5630 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5631 get_DW_TAG_name.
5632 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5633 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5634 (dwarf_stack_op_name): Remove.
5635 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5636 (decode_locdesc): Use get_DW_OP_name.
5637 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5638 (dwarf2_compile_expr_to_ax): Likewise.
5639 (disassemble_dwarf_expression): Likewise.
5640 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5641
5642 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5643
5644 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5645 (sh_linux_sigtramp_cache): New function.
5646 (sh_linux_sigreturn_init): New function.
5647 (sh_linux_rt_sigreturn_init): New function.
5648 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5649 patterns.
5650 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5651 syscall codes.
5652 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5653 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5654 (sh_linux_init_abi): Add init calls to register new tramp_frame
5655 definitions under 32-bit SH, update comments.
5656
5657 2012-05-07 Pedro Alves <palves@redhat.com>
5658
5659 PR gdb/10952
5660
5661 * amd64-linux-tdep.c: Include glibc-tdep.h.
5662 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5663 gdbarch_skip_solib_resolver callback.
5664
5665 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5668 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5669 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5670 (add_auto_load_safe_path): Change the error message.
5671 (_initialize_auto_load): Change the "safe-path" help text.
5672 * configure: Regenerate
5673 * configure.ac (--without-auto-load-safe-path): Set
5674 WITH_AUTO_LOAD_SAFE_PATH to /.
5675
5676 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5677
5678 * stap-probe.h: Do not include unecessary `probe.h'.
5679
5680 2012-05-05 Alan Modra <amodra@gmail.com>
5681
5682 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5683 bfd_und_section_ptr.
5684 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5685 and bfd_com_section_ptr.
5686
5687 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5688
5689 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5690
5691 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5692
5693 * windows-nat.h (segment_register_p_ftype): New typedef.
5694 (windows_set_segment_register_p): Add declaration.
5695 * windows-nat.c (segment_register_p): New static global.
5696 (windows_set_segment_register_p): New function.
5697 (do_windows_fetch_inferior_registers): Add special handling
5698 for segment registers.
5699 * amd64-windows-nat.c: #include "amd64-tdep.h".
5700 (amd64_windows_segment_register_p): New function.
5701 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5702 * i386-windows-nat.c: #include "i386-tdep.h".
5703 (i386_windows_segment_register_p): New function.
5704 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5705
5706 2012-05-04 Tristan Gingold <gingold@adacore.com>
5707
5708 * printcmd.c (set_command): Emit a warning if the expression is not
5709 an assignment.
5710
5711 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5712
5713 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5714 Make static.
5715
5716 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5717
5718 * stap-probe.c (stap_is_operator): Change declaration.
5719 (stap_get_opcode): Change return value.
5720 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5721 `stap_parse_argument_1'.
5722
5723 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5724
5725 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5726 debug log.
5727
5728 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5729
5730 Add two new methods global_block and static_block to gdb.Symtab
5731 objects.
5732 * NEWS (Python scripting): Add entry about the new methods.
5733 * python/py-symtab.c (stpy_global_block): New function which
5734 implements the gdb.Symtab.global_block() method.
5735 (stpy_static_block): New function which implements the
5736 gdb.Symtab.static_block() method.
5737 (symtab_object_methods): Add entries for the two new methods.
5738
5739 2012-05-03 Doug Evans <dje@google.com>
5740
5741 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5742 files.
5743
5744 2012-05-03 Yao Qi <yao@codesourcery.com>
5745
5746 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5747 space.
5748 (i386_process_record): Ditto.
5749
5750 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5751
5752 * infcall.c (unwind_on_signal_p): Make static.
5753
5754 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5755
5756 * sol-thread.c (solaris_pid_to_str): Make static.
5757 (_initialize_sol_thread): Add prototype.
5758
5759 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5760
5761 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5762
5763 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5764
5765 * MAINTAINERS: Remove myself.
5766
5767 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 Fix --without-auto-load-safe-path for MS-Windows host platform.
5770 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5771
5772 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5773
5774 * gdb_curses.h: Undefine KEY_EVENT before including curses
5775 headers. Move "#undef MOUSE_MOVED" before any curses header
5776 inclusion.
5777
5778 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5779
5780 * features/i386/i386-mmx-linux.c: Regenerate.
5781 * features/rs6000/powerpc-32.c: Likewise.
5782 * features/rs6000/powerpc-32l.c: Likewise.
5783 * features/rs6000/powerpc-403.c: Likewise.
5784 * features/rs6000/powerpc-403gc.c: Likewise.
5785 * features/rs6000/powerpc-405.c: Likewise.
5786 * features/rs6000/powerpc-505.c: Likewise.
5787 * features/rs6000/powerpc-601.c: Likewise.
5788 * features/rs6000/powerpc-602.c: Likewise.
5789 * features/rs6000/powerpc-603.c: Likewise.
5790 * features/rs6000/powerpc-604.c: Likewise.
5791 * features/rs6000/powerpc-64.c: Likewise.
5792 * features/rs6000/powerpc-64l.c: Likewise.
5793 * features/rs6000/powerpc-750.c: Likewise.
5794 * features/rs6000/powerpc-860.c: Likewise.
5795 * features/rs6000/powerpc-e500.c: Likewise.
5796 * features/rs6000/powerpc-e500l.c: Likewise.
5797 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5798 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5799 * features/rs6000/rs6000.c: Likewise.
5800
5801 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5802
5803 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5804 variable.
5805 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5806 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5807 (stap_parse_argument) <e>: Likewise.
5808 (handle_stap_probe) <byte_order>: Likewise.
5809
5810 2012-04-30 Doug Evans <dje@google.com>
5811
5812 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5813 init_and_read_dies_worker. All callers updated.
5814 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5815 replaced with init_cutu_and_read_dies.
5816 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5817 (find_partial_die): Remove FIXME. Don't free current CU.
5818
5819 2012-04-30 Sterling Augustine <saugustine@google.com>
5820
5821 * contrib: New directory.
5822 * contrib/test_pubnames_and_indexes.py: New file.
5823
5824 2012-04-30 Doug Evans <dje@google.com>
5825
5826 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5827 All callers updated.
5828 (init_cu_die_reader): Verify the section is non-empty.
5829 (dwarf_decode_line_header): Don't dereference section->asection
5830 until we know the section is present.
5831
5832 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5833
5834 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5835 probes.
5836
5837 2012-04-29 Yao Qi <yao@codesourcery.com>
5838
5839 * gdb-code-style.el: New hook gdb-markup-hook
5840 and gdb-comment-hook.
5841
5842 2012-04-28 Doug Evans <dje@google.com>
5843
5844 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5845 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5846 objfile->obfd.
5847 * symfile.h (dwarf2_debug_sections): New member addr.
5848 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5849 (ctx_no_get_addr_index): New function.
5850 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5851 (ctx_no_get_addr_index): Declare.
5852 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5853 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5854 (dwarf_expr_ctx_funcs): Update.
5855 (needs_get_addr_index): New function.
5856 (needs_frame_ctx_funcs): Update.
5857 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5858 * dwarf2read.c: #include "gdbcore.h".
5859 (dwarf2_per_objfile): New members addr, dwo_files.
5860 (dwarf2_elf_names): Add entry for addr.
5861 (struct dwo_section_names): New type.
5862 (dwo_section_names): New static global.
5863 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5864 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5865 old debug_types_section member updated to use this.
5866 Rename member debug_types_section to info_or_types_section,
5867 all uses updated.
5868 (signatured_type): Rename member type_offset to type_offset_in_tu,
5869 all uses updated. New member type_offset_in_section.
5870 (struct dwo_sections): New type.
5871 (struct dwo_unit): New type.
5872 (struct dwo_file): New type.
5873 (die_reader_specs): New member dwo_file.
5874 (dwarf2_locate_sections): Watch for .debug_addr.
5875 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5876 (dwarf2_read_section): Get bfd of section from bfd's asection,
5877 instead of objfile.
5878 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5879 (create_signatured_type_table_from_index): Initialize
5880 sig_type->info_or_types_section.
5881 (dw2_get_file_names): Statement lists for type units with DWO files
5882 live in the DWO file.
5883 (create_debug_types_hash_table): New function.
5884 (create_all_type_units): Rewrite.
5885 (init_cu_die_reader): New arg dwo_file, all callers updated.
5886 (init_and_read_dies_worker): Get section from
5887 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5888 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5889 continue reading the CU/TU from there.
5890 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5891 updated. Get section from this_cu->info_or_types_section.
5892 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5893 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5894 DW_FORM_GNU_str_index.
5895 (hash_dwo_file, eq_dwo_file): New functions.
5896 (allocate_dwo_file_hash_table): New function.
5897 (hash_dwo_unit, eq_dwo_unit): New functions.
5898 (allocate_dwo_unit_table): New function.
5899 (dwarf2_locate_dwo_sections): New function.
5900 (struct create_dwo_info_table_data): New type.
5901 (create_debug_info_hash_table_reader): New function.
5902 (create_debug_info_hash_table): New function.
5903 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5904 (lookup_dwo_file): New function.
5905 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5906 (free_dwo_file, free_dwo_file_cleanup): New functions.
5907 (free_dwo_file_from_slot, free_dwo_files): New functions.
5908 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5909 (dwarf2_record_block_ranges): Ditto.
5910 (read_partial_die): Ditto.
5911 (process_enumeration_scope): Update to use type_offset_in_section.
5912 (read_full_die_1): New function.
5913 (read_full_die): Rewrite.
5914 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5915 DW_FORM_GNU_str_index.
5916 (read_addr_index_1, read_addr_index): New functions.
5917 (read_addr_index_from_leb128): New function.
5918 (struct dwarf2_read_addr_index_data): New type.
5919 (dwarf2_read_addr_index_reader): New function.
5920 (dwarf2_read_addr_index): New function.
5921 (read_str_index): New function.
5922 (leb128_size): New function.
5923 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5924 If processing a type unit from a DWO file, get the line section
5925 from the DWO file.
5926 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5927 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5928 DW_FORM_GNU_str_index.
5929 (lookup_die_type): Check whether section offset of type's die is
5930 known before looking it up. Remove assert. Condition can
5931 legimately happen for inter-cu type references.
5932 (dwarf_attr_name): Handle Fission attributes.
5933 (dwarf_form_name): Handle Fission forms.
5934 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5935 DW_FORM_GNU_str_index.
5936 (follow_die_sig): Update to use type_offset_in_section.
5937 (decode_locdesc): New case DW_OP_GNU_addr_index.
5938 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5939 DW_FORM_GNU_str_index.
5940 (cu_debug_loc_section): New function.
5941 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5942 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5943 Free DWO files if present.
5944 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5945
5946 Refactor DIE reading.
5947 * dwarf2read.c (dwarf2_per_objfile): Replace members
5948 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5949 (die_reader_specs): New member "die_section". Temporarily make
5950 member "buffer" non-const, pending constifying all info_ptr uses.
5951 (die_reader_func_ftype): New typedef.
5952 (dw2_get_file_names_reader): New function.
5953 (dw2_get_file_names): Rewrite.
5954 (read_and_check_type_unit_head): Rename arg type_offset to
5955 type_offset_in_tu.
5956 (create_all_type_units): Improve debugging message.
5957 Improve dummy type unit check.
5958 (init_cu_die_reader): New arg "section". All callers updated.
5959 (init_and_read_dies_worker): New function.
5960 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5961 (init_cutu_and_read_dies_no_follow): New function.
5962 (init_cutu_and_read_dies_simple): New function.
5963 (process_psymtab_comp_unit_reader): New function.
5964 (process_psymtab_comp_unit): Delete args section,
5965 is_debug_types_section. Rewrite. All callers updated.
5966 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5967 All callers updated. Rewrite.
5968 (load_partial_comp_unit_reader): New function.
5969 (load_partial_comp_unit): Rewrite.
5970 (skip_children): New arg reader. Delete args buffer, cu.
5971 All callers updated.
5972 (skip_one_die): New arg reader. Delete args buffer, cu.
5973 All callers updated.
5974 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5975 All callers updated.
5976 (load_full_comp_unit_reader): New function.
5977 (load_full_comp_unit): Rewrite.
5978 (read_comp_unit): Delete.
5979 (read_die_and_children_1): Delete, contents moved ...
5980 (read_die_and_children): ... here.
5981 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5982 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5983 All callers updated.
5984 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5985 All callers updated.
5986 (find_partial_die): Rewrite load_all_dies support.
5987 (read_attribute_value): New arg reader. Delete args abfd, cu.
5988 All callers updated.
5989 (read_attribute): New arg reader. Delete args abfd, cu.
5990 All callers updated.
5991 (load_full_type_unit): Add assert.
5992 (read_signatured_type_reader): New function.
5993 (read_signatured_type): Rewrite.
5994 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5995 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5996 All callers updated. Set per_cu->cu = NULL after freeing it.
5997 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5998 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5999 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6000 (set_die_type): Update.
6001 (get_die_type_at_offset): Update.
6002 (read_file_scope): Call prepare_one_comp_unit.
6003 (read_type_unit_scope): Ditto.
6004 (prepare_one_comp_unit): Set producer if present.
6005
6006 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6007
6008 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6009 gettext function on `error'.
6010
6011 2012-04-27 Doug Evans <dje@google.com>
6012
6013 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6014 is empty.
6015
6016 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6017 Tom Tromey <tromey@redhat.com>
6018
6019 * breakpoint.c (struct breakpoint_objfile_data)
6020 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6021 <exception_probes>: New fields.
6022 (free_breakpoint_probes): New function.
6023 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6024 `_Unwind_DebugHook'.
6025 (create_exception_master_breakpoint): Likewise.
6026 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6027 * infrun.c: Including necessary header files for handling SystemTap
6028 probes.
6029 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6030 via SystemTap probes.
6031 (check_exception_resume): Remove `func' argument. Handle exception
6032 unwinding breakpoint set via a SystemTap probe.
6033 (insert_exception_resume_from_probe): New function.
6034
6035 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6036 Tom Tromey <tromey@redhat.com>
6037 Jan Kratochvil <jan.kratochvil@redhat.com>
6038
6039 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6040 (COMMON_OBS): Likewise.
6041 (HFILES_NO_SRCDIR): Add `probe'.
6042 * NEWS: Mention support for static and SystemTap probes.
6043 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6044 SystemTap probes' arguments parser.
6045 * arm-linux-tdep.c: Including headers needed to perform the parsing
6046 of SystemTap probes' arguments.
6047 (arm_stap_is_single_operand): New function.
6048 (arm_stap_parse_special_token): Likewise.
6049 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6050 probes' arguments parser.
6051 * ax-gdb.c (require_rvalue): Removing static declaration.
6052 (gen_expr): Likewise.
6053 * ax-gdb.h (gen_expr): Declaring function.
6054 (require_rvalue): Likewise.
6055 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6056 (bkpt_probe_breakpoint_ops): New variable.
6057 (momentary_breakpoint_from_master): Set the `probe' value.
6058 (add_location_to_breakpoint): Likewise.
6059 (break_command_1): Using proper breakpoint_ops according to the
6060 argument passed by the user in the command line.
6061 (bkpt_probe_insert_location): New function.
6062 (bkpt_probe_remove_location): Likewise.
6063 (bkpt_probe_create_sals_from_address): Likewise.
6064 (bkpt_probe_decode_linespec): Likewise.
6065 (tracepoint_probe_create_sals_from_address): Likewise.
6066 (tracepoint_probe_decode_linespec): Likewise.
6067 (tracepoint_probe_breakpoint_ops): New variable.
6068 (trace_command): Using proper breakpoint_ops according to the
6069 argument passed by the user in the command line.
6070 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6071 static probes on breakpoints and tracepoints.
6072 * breakpoint.h (struct bp_location) <probe>: New field.
6073 * cli-utils.c (skip_spaces_const): New function.
6074 (extract_arg): Likewise.
6075 * cli-utils.h (skip_spaces_const): Likewise.
6076 (extract_arg): Likewise.
6077 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6078 * configure.ac: Append `stap-probe.o' to be generated when ELF
6079 support is present.
6080 * configure: Regenerate.
6081 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6082 * elfread.c: Include `probe.h' and `arch-utils.h'.
6083 (probe_key): New variable.
6084 (elf_get_probes): New function.
6085 (elf_get_probe_argument_count): Likewise.
6086 (elf_evaluate_probe_argument): Likewise.
6087 (elf_compile_to_ax): Likewise.
6088 (elf_symfile_relocate_probe): Likewise.
6089 (stap_probe_key_free): Likewise.
6090 (elf_probe_fns): New variable.
6091 (elf_sym_fns): Add `sym_probe_fns' value.
6092 (elf_sym_fns_lazy_psyms): Likewise.
6093 (elf_sym_fns_gdb_index): Likewise.
6094 (_initialize_elfread): Initialize objfile cache for static
6095 probes.
6096 * gdb_vecs.h (struct probe): New forward declaration.
6097 (probe_p): New VEC declaration.
6098 * gdbarch.c: Regenerate.
6099 * gdbarch.h: Regenerate.
6100 * gdbarch.sh (stap_integer_prefix): New variable.
6101 (stap_integer_suffix): Likewise.
6102 (stap_register_prefix): Likewise.
6103 (stap_register_suffix): Likewise.
6104 (stap_register_indirection_prefix): Likewise.
6105 (stap_register_indirection_suffix): Likewise.
6106 (stap_gdb_register_prefix): Likewise.
6107 (stap_gdb_register_suffix): Likewise.
6108 (stap_is_single_operand): New function.
6109 (stap_parse_special_token): Likewise.
6110 (struct stap_parse_info): Forward declaration.
6111 * i386-tdep.c: Including headers needed to perform the parsing
6112 of SystemTap probes' arguments.
6113 (i386_stap_is_single_operand): New function.
6114 (i386_stap_parse_special_token): Likewise.
6115 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6116 probes' arguments parser.
6117 * i386-tdep.h (i386_stap_is_single_operand): New function.
6118 (i386_stap_parse_special_token): Likewise.
6119 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6120 * mipsread.c (ecoff_sym_fns): Likewise.
6121 * objfiles.c (objfile_relocate1): Support relocation for static
6122 probes.
6123 * parse.c (prefixify_expression): Remove static declaration.
6124 (initialize_expout): Likewise.
6125 (reallocate_expout): Likewise.
6126 * parser-defs.h (initialize_expout): Declare function.
6127 (reallocate_expout): Likewise.
6128 (prefixify_expression): Likewise.
6129 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6130 of SystemTap probes' arguments.
6131 (ppc_stap_is_single_operand): New function.
6132 (ppc_stap_parse_special_token): Likewise.
6133 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6134 probes' arguments parser.
6135 * probe.c: New file, for generic statically defined probe support.
6136 * probe.h: Likewise.
6137 * s390-tdep.c: Including headers needed to perform the parsing of
6138 SystemTap probes' arguments.
6139 (s390_stap_is_single_operand): New function.
6140 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6141 probes' arguments parser.
6142 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6143 * stap-probe.c: New file, for SystemTap probe support.
6144 * stap-probe.h: Likewise.
6145 * symfile.h: Include `gdb_vecs.h'.
6146 (struct sym_probe_fns): New struct.
6147 (struct sym_fns) <sym_probe_fns>: New field.
6148 * symtab.c (init_sal): Initialize `probe' field.
6149 * symtab.h (struct probe): Forward declaration.
6150 (struct symtab_and_line) <probe>: New field.
6151 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6152 locations.
6153 (stop_tracing): Likewise.
6154 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6155
6156 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6157 Tom Tromey <tromey@redhat.com>
6158
6159 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6160 and to compile agent expressions.
6161 * infrun.c (siginfo_make_value): New argument `ignore'.
6162 (siginfo_funcs): New struct.
6163 (_initialize_infrun): New argument when calling
6164 `create_internalvar_type_lazy'.
6165 * thread.c (thread_id_make_value): New argument `ignore'.
6166 (thread_funcs): New struct.
6167 (_initialize_thread): New argument when calling
6168 `create_internalvar_type_lazy'.
6169 * tracepoint.c (sdata_make_value): New argument `ignore'.
6170 (sdata_funcs): New struct.
6171 (_initialize_tracepoint): New argument when calling
6172 `create_internalvar_type_lazy'.
6173 * value.c (make_value): New struct.
6174 (create_internalvar_type_lazy): New argument `data'.
6175 (compile_internalvar_to_ax): New function.
6176 (value_of_internalvar): Properly handling `make_value' case.
6177 (clear_internalvar): Likewise.
6178 (show_convenience): Adding `TRY_CATCH' block.
6179 * value.h (internalvar_make_value): Delete, replace by...
6180 (struct internalvar_funcs): ... this.
6181 (create_internalvar_type_lazy) <fun>: Delete argument.
6182 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6183 (compile_internalvar_to_ax): New function.
6184 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6185 (tlb_funcs): New struct.
6186 (_initialize_windows_tdep): New argument when calling
6187 `create_internalvar_type_lazy'.
6188
6189 2012-04-27 Mark Wielaard <mjw@redhat.com>
6190
6191 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6192 see whether it is an address or a constant offset from DW_AT_low_pc.
6193 (dwarf2_record_block_ranges): Likewise.
6194 (read_partial_die): Likewise.
6195
6196 2012-04-26 Mark Wielaard <mjw@redhat.com>
6197
6198 * MAINTAINERS (Write After Approval): Add myself to the list.
6199
6200 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6201
6202 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6203 (proc_prettyprint_signal): Likewise.
6204 (proc_prettyprint_faultset): Likewise.
6205 (proc_prettyprint_fault): Likewise.
6206 (proc_prettyprint_actionset): Likewise.
6207 (proc_prettyprint_flags): Move to new proc-flags.c section.
6208 (proc_prettyfprint_flags): New prototype.
6209 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6210 (proc_syscall, proc_cursig): Likewise.
6211 (proc_set_kill_on_last_close): Likewise.
6212 (proc_unset_kill_on_last_close): Likewise.
6213 (proc_set_watchpoint): Make static.
6214 (proc_delete_dead_threads): Likewise.
6215 (procfs_set_watchpoint): Likewise.
6216 (_initialize_procfs): Add prototype.
6217 * proc-events.c: Include proc-utils.h.
6218 (init_syscall_table): Make static.
6219 * proc-api.c (_initialize_proc_api): Add prototype.
6220 * proc-flags.c: Include proc-utils.h.
6221
6222 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6223
6224 * configure.ac: Add AC_ARG_PROGRAM.
6225 * configure: Regenerate.
6226
6227 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6228
6229 Fix DW_AT_lower_bound defaults for DWARF-4+.
6230 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6231 high. New variable low_default_is_valid. Implement DWARF-4+
6232 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6233 no default by the DWARF standard.
6234
6235 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6236 Maciej W. Rozycki <macro@codesourcery.com>
6237
6238 * infrun.c (handle_inferior_event): Move the check for return
6239 trampolines ahead of the check for function trampolines.
6240 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6241 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6242 (mips_str_mips16_ret_stub): Likewise.
6243 (mips_str_call_fp_stub): Likewise.
6244 (mips_str_call_stub): Likewise.
6245 (mips_str_fn_stub): Likewise.
6246 (mips_str_pic): Likewise.
6247 (mips_in_frame_stub): New function.
6248 (mips_unwind_pc): Return the return address rather than the PC
6249 if the PC of an intermediate frame is inside a call thunk.
6250 (mips_is_stub_suffix): New function.
6251 (mips_is_stub_mode): Likewise.
6252 (mips_get_mips16_fn_stub_pc): Likewise.
6253 (mips_skip_mips16_trampoline_code): Update to handle all the
6254 currently generated stub types. Don't recurse into __fn_stub
6255 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6256 Use cooked register accesses.
6257 (mips_in_return_stub): Reintroduce function.
6258 (mips_skip_trampoline_code): Traverse trampolines recursively.
6259 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6260
6261 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6262
6263 GDB 7.4.1 released.
6264
6265 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6266
6267 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6268 * features/arm-with-m-vfp-d16.xml: New file. Describes
6269 Cortex-M with VFPv4-sp-d16 FPU register layout.
6270 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6271 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6272 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6273 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6274 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6275
6276 2012-04-25 Doug Evans <dje@google.com>
6277
6278 * cli/cli-decode.c (print_doc_line): Use stream instead of
6279 current_uiout.
6280
6281 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6282
6283 * features/arm-with-iwmmxt.c: Regenerate.
6284 * features/arm-with-m-fpa-layout.c: Likewise.
6285 * features/arm-with-m.c: Likewise.
6286 * features/arm-with-neon.c: Likewise.
6287 * features/arm-with-vfpv2.c: Likewise.
6288 * features/arm-with-vfpv3.c: Likewise.
6289 * features/mips-dsp-linux.c: Likewise.
6290 * features/mips-linux.c: Likewise.
6291 * features/mips64-dsp-linux.c: Likewise.
6292 * features/mips64-linux.c: Likewise.
6293 * features/s390-linux32.c: Likewise.
6294 * features/s390-linux32v1.c: Likewise.
6295 * features/s390-linux32v2.c: Likewise.
6296 * features/s390-linux64.c: Likewise.
6297 * features/s390-linux64v1.c: Likewise.
6298 * features/s390-linux64v2.c: Likewise.
6299 * features/s390x-linux64.c: Likewise.
6300 * features/s390x-linux64v1.c: Likewise.
6301 * features/s390x-linux64v2.c: Likewise.
6302 * features/tic6x-c62x-linux.c: Likewise.
6303 * features/tic6x-c62x.c: Likewise.
6304 * features/tic6x-c64x-linux.c: Likewise.
6305 * features/tic6x-c64x.c: Likewise.
6306 * features/tic6x-c64xp-linux.c: Likewise.
6307 * features/tic6x-c64xp.c: Likewise.
6308 * target-descriptions.c: Only generate `field_type' and `type'
6309 variables when needed.
6310
6311 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6312
6313 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6314
6315 2012-04-25 Doug Evans <dje@google.com>
6316
6317 Initial pass at Go language support.
6318 * NEWS: Mention Go.
6319 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6320 go-valprint.c.
6321 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6322 (YYFILES): Add go-exp.c.
6323 (YYOBJ): Add go-exp.o.
6324 (local-maintainer-clean): Delete go-exp.c.
6325 * defs.h (enum language): Add language_go.
6326 * dwarf2read.c: #include "go-lang.h".
6327 (fixup_go_packaging): New function.
6328 (process_full_comp_unit): Call it when processing Go CUs.
6329 (dwarf2_physname): Add Go support.
6330 (read_file_scope): Handle missing language spec for GNU Go.
6331 (set_cu_language): Handle DW_LANG_Go.
6332 * go-exp.y: New file.
6333 * go-lang.h: New file.
6334 * go-lang.c: New file.
6335 * go-typeprint.c: New file.
6336 * go-valprint.c: New file.
6337 * symtab.c: #include "go-lang.h".
6338 (symbol_set_language): Handle language_go.
6339 (symbol_find_demangled_name, symbol_set_names): Ditto.
6340 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6341
6342 2012-04-24 Jim Meyering <meyering@redhat.com>
6343
6344 avoid a few strncpy-induced buffer overruns
6345 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6346 fname and psargs before trying to concatenate.
6347 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6348 "name" before applying strchr.
6349
6350 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6351
6352 * CONTRIBUTE: Use unified diff instead of context diff when
6353 generating patches.
6354
6355 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6356
6357 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6358 code. Handle JR.HB correctly.
6359
6360 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6361
6362 * mips-tdep.c
6363 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6364 with the other MIPS16 helpers.
6365
6366 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6367
6368 * observer.sh: Conditionally declare `args', thus cleaning up
6369 unused instances of this variable.
6370
6371 2012-04-24 Yao Qi <yao@codesourcery.com>
6372
6373 Revert this patch to allow breakpoint always-inserted
6374 in record target.
6375 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6376 * breakpoint.c: Include record.h.
6377 (breakpoints_always_inserted_mode): Return false when the record
6378 target is in use.
6379
6380 * breakpoint.c (iterate_over_bp_locations): New.
6381 * breakpoint.h: Declare.
6382 New typedef walk_bp_location_callback.
6383 * record.c (record_open): Call record_init_record_breakpoints.
6384 (record_sync_record_breakpoints): New.
6385 (record_init_record_breakpoints): New.
6386 * NEWS: Mention supporting breakpoint always-inserted mode in
6387 record target.
6388
6389 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6390
6391 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6392 any thread.
6393
6394 2012-04-24 Yao Qi <yao@codesourcery.com>
6395
6396 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6397 (is_catchpoint): ... it.
6398 (print_one_breakpoint_location): Caller update.
6399 * breakpoint.h: Update declaration.
6400
6401 2012-04-23 David S. Miller <davem@davemloft.net>
6402
6403 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6404
6405 2012-04-23 Tom Tromey <tromey@redhat.com>
6406
6407 * buildsym.c (add_free_pendings): Remove.
6408 * buildsym.h (add_free_pendings): Remove.
6409
6410 2012-04-23 Doug Evans <dje@google.com>
6411
6412 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6413 attr.u.unsnd instead of attr.u.addr.
6414 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6415 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6416 DW_FORM_ref_udata.
6417 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6418 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6419 DW_FORM_ref_udata.
6420 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6421
6422 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6423
6424 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6425 (mips_o32_return_value): Likewise.
6426 (mips_o64_return_value): Likewise.
6427
6428 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6429
6430 * ada-lang.c (ada_evaluate_subexp): Add cases for
6431 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6432 their treatment in eval.c.
6433
6434 2012-04-21 David S. Miller <davem@davemloft.net>
6435
6436 * sparc-tdep.c (X_DISP10): Define.
6437 (sparc_analyze_control_transfer): Handle compare-and-branch.
6438
6439 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6440
6441 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6442 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6443
6444 2012-04-20 Nigel Stephens <nigel@mips.com>
6445 Maciej W. Rozycki <macro@codesourcery.com>
6446
6447 * mips-tdep.c (mips_float_register_p): New function.
6448 (mips_convert_register_float_case_p): Use mips_float_register_p.
6449 (mips_register_type): Likewise.
6450 (mips_print_register): Likewise.
6451 (print_gp_register_row): Likewise.
6452 (mips_print_registers_info): Likewise.
6453
6454 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6455
6456 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6457 of mips16 symbols.
6458
6459 2012-04-20 Andrew Pinski <apinski@cavium.com>
6460
6461 * MAINTAINERS (Write After Approval): Add myself to the list.
6462
6463 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6464
6465 * MAINTAINERS: Update my e-mail address.
6466
6467 2012-04-20 Pedro Alves <palves@redhat.com>
6468
6469 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6470 $srcdir.
6471 * configure: Regenerate.
6472
6473 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6474
6475 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6476 declaration.
6477 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6478
6479 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 Fix compilation compatibility with python-2.4
6482 * python/py-type.c (convert_field): Cast ADDRSTRING for
6483 PyObject_SetAttrString as non-const. New comment.
6484
6485 2012-04-19 Tom Tromey <tromey@redhat.com>
6486
6487 * top.c (quit_target): Use all_cleanups.
6488 * main.c (captured_command_loop): Use all_cleanups.
6489 * exceptions.c (throw_exception): Use all_cleanups.
6490
6491 2012-04-19 Pedro Alves <palves@redhat.com>
6492
6493 * Makefile.in (GNULIB_BUILDDIR): New.
6494 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6495 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6496 (CLEANDIRS). Remove gnulib/import.
6497 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6498 (all-lib): Ditto.
6499 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6500 (gnulib/import/Makefile): Replace gnulib/import with
6501 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6502 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6503 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6504 acx_configure_dir.m4.
6505 * acinclude.m4: Include acx_configure_dir.m4.
6506 * acx_configure_dir.m4: New file.
6507 * aclocal.m4: Regenerate.
6508 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6509 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6510 (GNULIB): New variable.
6511 (GNULIB_STDINT_H): Adjust.
6512 (AC_OUTPUT): Don't output gnulib/Makefile.
6513 * gdb/defs.h: Include build-gnulib/config.h.
6514 * aclocal.m4: Regenerate.
6515 * config.in: Regenerate.
6516 * configure: Regenerate.
6517
6518 * gnulib/Makefile.in: New file.
6519 * gnulib/configure.ac: New file.
6520 * gnulib/aclocal.m4: New file.
6521 * gnulib/config.in: New file.
6522 * gnulib/configure: New file.
6523 * gnulib/: Re-run gnulib-tool to adjust.
6524
6525 2012-04-19 Doug Evans <dje@google.com>
6526
6527 * cleanups.h (struct cleanup): Move to cleanups.c.
6528 (make_cleanup_dtor_ftype): New typedef.
6529 (make_cleanup_dtor): Use it.
6530 (ALL_CLEANUPS): Replace with ...
6531 (all_cleanups): ... this. Declare. All uses updated.
6532 * cleanups.c: #include "gdb_assert.h".
6533 (sentinel_cleanup): New static global.
6534 (SENTINEL_CLEANUP): Define.
6535 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6536 (make_my_cleanup2): Assert result is non-NULL.
6537 (all_cleanups): New function.
6538 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6539 of NULL.
6540
6541 2012-04-19 Pedro Alves <palves@redhat.com>
6542
6543 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6544 Adjust paths to gnulib imported files.
6545
6546 2012-04-19 Pedro Alves <palves@redhat.com>
6547
6548 * gnulib/: Move whole directory ...
6549 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6550 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6551 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6552 (aclocal_m4_deps): Adjust.
6553 * aclocal.m4: Regenerate.
6554 * configure: Regenerate.
6555 * configure.ac: Adjust AC_OUTPUT output.
6556
6557 2012-04-19 Yao Qi <yao@codesourcery.com>
6558
6559 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6560 (vec.o): New rule.
6561 * vec.c: Move it ...
6562 * common/vec.c: ... here.
6563 * vec.h: Move it ...
6564 * common/vec.h: ... here.
6565
6566 2012-04-19 Yao Qi <yao@codesourcery.com>
6567
6568 * gdb-code-style.el: New.
6569
6570 2012-04-18 Pedro Alves <palves@redhat.com>
6571
6572 Update gnulib from latest git.
6573 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6574
6575 * gnulib/Makefile.am: Update.
6576 * gnulib/dummy.c: Update.
6577 * gnulib/extra/arg-nonnull.h: Update.
6578 * gnulib/extra/c++defs.h: Update.
6579 * gnulib/extra/update-copyright: Update.
6580 * gnulib/extra/warn-on-use.h: Update.
6581 * gnulib/inttypes.in.h: Update.
6582 * gnulib/m4/00gnulib.m4: Update.
6583 * gnulib/m4/extensions.m4: Update.
6584 * gnulib/m4/gnulib-cache.m4: Update.
6585 * gnulib/m4/gnulib-common.m4: Update.
6586 * gnulib/m4/gnulib-comp.m4: Update.
6587 * gnulib/m4/gnulib-tool.m4: Update.
6588 * gnulib/m4/include_next.m4: Update.
6589 * gnulib/m4/inttypes-pri.m4: Update.
6590 * gnulib/m4/inttypes.m4: Update.
6591 * gnulib/m4/longlong.m4: Update.
6592 * gnulib/m4/memchr.m4: Update.
6593 * gnulib/m4/memmem.m4: Update.
6594 * gnulib/m4/mmap-anon.m4: Update.
6595 * gnulib/m4/multiarch.m4: Update.
6596 * gnulib/m4/onceonly.m4: Update.
6597 * gnulib/m4/stddef_h.m4: Update.
6598 * gnulib/m4/stdint.m4: Update.
6599 * gnulib/m4/string_h.m4: Update.
6600 * gnulib/m4/warn-on-use.m4: Update.
6601 * gnulib/m4/wchar_h.m4: Update.
6602 * gnulib/m4/wchar_t.m4: Update.
6603 * gnulib/m4/wint_t.m4: Update.
6604 * gnulib/memchr.c: Update.
6605 * gnulib/memmem.c: Update.
6606 * gnulib/stddef.in.h: Update.
6607 * gnulib/stdint.in.h: Update.
6608 * gnulib/str-two-way.h: Update.
6609 * gnulib/string.in.h: Update.
6610 * gnulib/wchar.in.h: Update.
6611
6612 * gnulib/extra/arg-nonnull.h: Delete.
6613 * gnulib/extra/c++defs.h: Delete.
6614 * gnulib/extra/warn-on-use.h: Delete.
6615 * gnulib/m4/wchar_h.m4: Delete.
6616 * gnulib/m4/wint_t.m4: Delete.
6617 * gnulib/wchar.in.h: Delete.
6618
6619 * gnulib/extra/snippets/arg-nonnull.h: New.
6620 * gnulib/extra/snippets/c++defs.h: New.
6621 * gnulib/extra/snippets/warn-on-use.h: New.
6622
6623 * aclocal.m4: Regenerate.
6624 * config.in: Regenerate.
6625 * configure: Regenerate.
6626 * gnulib/Makefile.in: Regenerate.
6627
6628 2012-04-18 Pedro Alves <palves@redhat.com>
6629
6630 Reimport the update-copyright module from gnulib
6631 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6632
6633 * configure: Regenerate.
6634 * gnulib/Makefile.am: Update.
6635 * gnulib/Makefile.in: Regenerate.
6636 * gnulib/extra/update-copyright: Update.
6637 * gnulib/m4/gnulib-cache.m4: Update.
6638 * gnulib/m4/gnulib-comp.m4: Update.
6639
6640 2012-04-18 Tristan Gingold <gingold@adacore.com>
6641
6642 * configure.ac (aix): Put -lpthread into libs.
6643 * configure: Regenerate.
6644
6645 2012-04-18 Tom Tromey <tromey@redhat.com>
6646
6647 * linespec.c (convert_linespec_to_sals): Don't use
6648 SYMBOL_OBJ_SECTION.
6649 (compare_msymbols): Arguments are minsym_and_objfile, not
6650 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6651
6652 2012-04-18 Pedro Alves <palves@redhat.com>
6653
6654 Revert gnulib/ part of:
6655 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6656 Copyright year update in most files (performed by copyright.sh).
6657
6658 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6659
6660 Fix 64-bit constants on 32-bit hosts.
6661 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6662 from unsigned long to ULONGEST.
6663 (read_signed_leb128): Change declaration return type from long to
6664 LONGEST.
6665 (dwarf2_const_value_attr): Change declaration parameter value from long
6666 to LONGEST.
6667 (dwarf2_compute_name): Change variable value from long to LONGEST.
6668 (read_unsigned_leb128): Change return type, variable result and some
6669 casts from unsigned long to ULONGEST.
6670 (read_signed_leb128): Change return type, variable result and some
6671 casts from long to LONGEST.
6672 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6673 value from long to LONGEST.
6674 (dwarf2_const_value): Change variable value from long to LONGEST.
6675 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6676 plongest and hex_string.
6677 * symtab.h (struct general_symbol_info): Change ivalue from long to
6678 LONGEST, remove the comment.
6679 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6680 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6681
6682 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6683
6684 PR symtab/7259:
6685 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6686 * ada-lang.c (ada_discrete_type_high_bound)
6687 (ada_discrete_type_low_bound): Fix function comment. Use
6688 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6689 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6690 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6691 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6692 Use TYPE_FIELD_ENUMVAL.
6693 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6694 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6695 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6696 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6697 TYPE_CODE_ENUM.
6698 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6699 * dwarf2read.c (process_enumeration_scope): Likewise.
6700 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6701 field.bitpos.
6702 (class StructMainTypePrettyPrinter): Support also
6703 FIELD_LOC_KIND_ENUMVAL.
6704 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6705 TYPE_CODE_ENUM.
6706 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6707 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6708 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6709 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6710 field enumval.
6711 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6712 accommodate enumval.
6713 (struct call_site): Adjust loc_kind to accommodate enumval.
6714 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6715 (TYPE_FIELD_ENUMVAL): New macros.
6716 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6717 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6718 TYPE_CODE_ENUM.
6719 * p-typeprint.c (pascal_type_print_base): Likewise.
6720 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6721 enumval.
6722 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6723 * python/py-type.c (convert_field): New variable addrstring. Use
6724 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6725 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6726 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6727 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6728 TYPE_CODE_ENUM.
6729 * valprint.c (generic_val_print): Likewise.
6730
6731 2012-04-17 Doug Evans <dje@google.com>
6732
6733 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6734
6735 * dwarf2read.c: Whitespace fixes.
6736 (lookup_signatured_type): Tweak comment.
6737 (get_die_type_at_offset): Fix comment.
6738
6739 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6740
6741 * xcoffread.c (xcoff_secnum_to_sections): New function.
6742 (secnum_to_section, secnum_to_bfd_section): Reimplement
6743 using xcoff_secnum_to_sections. Rename "secnum" parameter
6744 into "n_scnum".
6745 (RECORD_MINIMAL_SYMBOL): Delete.
6746 (record_minimal_symbol): New function.
6747 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6748 by call to record_minimal_symbol and set misc_func_recorded
6749 to 1. Set last_csect_sec to the XCOFF section index instead
6750 of GDB's section_offset index. Update calls to
6751 prim_record_minimal_symbol_and_info to pass the BFD section
6752 as well.
6753
6754 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6755
6756 * xcoffread.c (read_xcoff_symtab): Delete variables
6757 last_csect_val and last_csect_sec and associated code.
6758
6759 2012-04-17 Doug Evans <dje@google.com>
6760
6761 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6762 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6763 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6764 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6765
6766 * cleanups.h: New file.
6767 * cleanups.c: New file.
6768 * Makefile.in (SFILES): Add cleanups.c.
6769 (HFILES_NO_SRCDIR): Add cleanups.h.
6770 (COMMON_OBS): Add cleanups.o.
6771 * defs.h (struct cleanup): Moved to cleanups.h.
6772 (do_cleanups,do_final_cleanups): Ditto.
6773 (discard_cleanups,discard_final_cleanups): Ditto
6774 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6775 (save_cleanups,save_final_cleanups): Ditto.
6776 (restore_cleanups,restore_final_cleanups): Ditto.
6777 (null_cleanup): Ditto.
6778 (make_my_cleanup,make_my_cleanup2): Ditto.
6779 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6780 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6781 (do_cleanups,do_final_cleanups): Ditto.
6782 (discard_cleanups,discard_final_cleanups): Ditto
6783 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6784 (save_cleanups,save_final_cleanups): Ditto.
6785 (restore_cleanups,restore_final_cleanups): Ditto.
6786 (null_cleanup): Ditto.
6787 (make_my_cleanup,make_my_cleanup2): Ditto.
6788 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6789
6790 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6791 make_my_cleanup.
6792 (make_cleanup_dyn_string_delete): Ditto.
6793 (make_cleanup_ui_file_delete): Ditto.
6794 (make_cleanup_ui_out_redirect_pop): Ditto.
6795 (make_cleanup_free_section_addr_info): Ditto.
6796 (make_cleanup_restore_integer): Ditto.
6797 (make_cleanup_unpush_target): Ditto.
6798 (make_cleanup_value_free_to_mark): Ditto.
6799 (make_cleanup_value_free): Ditto.
6800 (make_cleanup_free_so): Ditto.
6801
6802 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 New option "set debug auto-load".
6805 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6806 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6807 (auto_load_safe_path_vec_update)
6808 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6809 if DEBUG_AUTO_LOAD.
6810 (file_is_auto_load_safe): New parameters debug_fmt and ....
6811 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6812 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6813 caller by explanatory string.
6814 (_initialize_auto_load): Register "set debug auto-load".
6815 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6816 and ....
6817 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6818 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6819 by explanatory string.
6820 * main.c (captured_main): Likewise.
6821 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6822 (source_section_scripts): Likewise.
6823
6824 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6825
6826 New option "set auto-load safe-path".
6827 * NEWS: New commands "set auto-load safe-path"
6828 and "show auto-load safe-path".
6829 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6830 (auto_load_safe_path, auto_load_safe_path_vec)
6831 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6832 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6833 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6834 (source_gdb_script_for_objfile): New variable is_safe. Call
6835 file_is_auto_load_safe. Return if it is not.
6836 (struct loaded_script): New field loaded.
6837 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6838 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6839 output "Missing" to "No".
6840 (_initialize_auto_load): New variable cmd. Initialize
6841 auto_load_safe_path. Register "set auto-load safe-path",
6842 "show auto-load safe-path" and "add-auto-load-safe-path".
6843 * auto-load.h (maybe_add_script): Add parameter loaded.
6844 (file_is_auto_load_safe): New declaration.
6845 * config.in: Regenerate.
6846 * configure: Regenerate.
6847 * configure.ac: New parameters --with-auto-load-safe-path
6848 and --without-auto-load-safe-path.
6849 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6850 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6851 * main.c (captured_main): Check file_is_auto_load_safe for
6852 LOCAL_GDBINIT.
6853 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6854 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6855 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6856 not.
6857
6858 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6859
6860 auto-load: Implementation.
6861 * NEWS: New descriptions for "info auto-load",
6862 "info auto-load gdb-scripts", "info auto-load python-scripts",
6863 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6864 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6865 and "show auto-load-scripts". New description for "set auto-load",
6866 "show auto-load", "set auto-load gdb-scripts",
6867 "show auto-load gdb-scripts", "set auto-load python-scripts",
6868 "show auto-load python-scripts", "set auto-load local-gdbinit",
6869 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6870 "show auto-load libthread-db".
6871 * auto-load.c: Remove include python/python-internal.h. Add includes
6872 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6873 cli/cli-setshow.h.
6874 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6875 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6876 (gdbpy_global_auto_load): Rename to ...
6877 (global_auto_load): ... here.
6878 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6879 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6880 (script_language_gdb, source_gdb_script_for_objfile): New.
6881 (struct loaded_script): New field language.
6882 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6883 LANGUAGE.
6884 (maybe_add_script): Add parameter language. Drop redundant
6885 entry.full_path initialization. Initialize entry.language and
6886 (*slot)->language.
6887 (auto_load_objfile_script): Change parameter suffix to language.
6888 Remove the call of maybe_add_script.
6889 Call language->source_script_for_objfile.
6890 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6891 New.
6892 (collect_matching_scripts): Adjust it for
6893 struct collect_matching_scripts_data.
6894 (auto_load_info_scripts_pattern_nl): New variable.
6895 (info_auto_load_scripts): Rename to ...
6896 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6897 for struct collect_matching_scripts_data.
6898 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6899 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6900 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6901 (auto_load_info_cmdlist_get): New.
6902 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6903 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6904 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6905 "info auto-load local-gdbinit".
6906 * auto-load.h (struct script_language): New.
6907 (gdbpy_global_auto_load): Rename to ...
6908 (global_auto_load): ... here.
6909 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6910 (auto_load_local_gdbinit_loaded): New declarations.
6911 (maybe_add_script): New parameter language.
6912 (auto_load_objfile_script): Change parameter suffix to language.
6913 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6914 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6915 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6916 declarations.
6917 * linux-thread-db.c: Include auto-load.h and ctype.h.
6918 (auto_load_thread_db, show_auto_load_thread_db): New.
6919 (struct thread_db_info): New field filename.
6920 (delete_thread_db_info): Call xfree for FILENAME.
6921 (try_thread_db_load): Initialize FILENAME.
6922 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6923 if !AUTO_LOAD_THREAD_DB.
6924 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6925 (_initialize_thread_db): Install auto_load_thread_db
6926 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6927 as "info auto-load libthread-db".
6928 * main.c (captured_main): Rename gdbpy_global_auto_load to
6929 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6930 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6931 (print_gdb_help): Extend the help for 'local init file'.
6932 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6933 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6934 (auto_load_scripts): Rename to ...
6935 (auto_load_python_scripts): ... here, update the comment.
6936 (gdbpy_load_auto_script_for_objfile): New declaration.
6937 (show_auto_load_python_scripts, script_language_python)
6938 (gdbpy_load_auto_script_for_objfile): New.
6939 (source_section_scripts): Refactor the code.
6940 (load_auto_scripts_for_objfile): Rename to ...
6941 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6942 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6943 (info_auto_load_python_scripts): New.
6944 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6945 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6946 Register "set auto-load-scripts" as its deprecated alias. Register
6947 "info auto-load python-scripts". Register "info auto-load-scripts" as
6948 its deprecated alias.
6949 (load_auto_scripts_for_objfile): Rename to ...
6950 (gdbpy_load_auto_scripts_for_objfile): ... here.
6951 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6952 (gdbpy_load_auto_scripts_for_objfile): ... here.
6953
6954 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956 auto-load: Move files.
6957 * Makefile.in (SFILES): Add auto-load.c.
6958 (HFILES_NO_SRCDIR): Add auto-load.h.
6959 (COMMON_OBS): Add auto-load.o.
6960 (distclean): Change .gdbinit for gdb-gdb.gdb.
6961 * auto-load.c: New file, with parts from python/py-auto-load.c.
6962 * auto-load.h: New file, with parts from python/python.h.
6963 * configure: Regenerate.
6964 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6965 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6966 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6967 * main.c: Include auto-load.h.
6968 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6969 command.h, observer.h and progspace.h to auto-load.c. Add include
6970 auto-load.h.
6971 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6972 (struct loaded_script, auto_load_pspace_data)
6973 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6974 (hash_loaded_script_entry, eq_loaded_script_entry)
6975 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6976 (maybe_add_script): Move to auto-load.c.
6977 (source_section_scripts): Change maybe_add_script parameters passing,
6978 use script_not_found_warning_print.
6979 (clear_section_scripts, auto_load_objfile_script)
6980 (auto_load_new_objfile, loaded_script_ptr)
6981 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6982 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6983 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6984 auto_load_new_objfile and info_auto_load_scripts initizations to
6985 auto-load.c.
6986 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6987
6988 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6989
6990 Code cleanup.
6991 * charset.c (find_charset_names): Remove variables ix and elt.
6992 Use free_char_ptr_vec.
6993 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6994 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6995 debugdir_end. New variable debugdir_len.
6996 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6997 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6998 declarations.
6999 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7000 and elt. Use free_char_ptr_vec.
7001 * source.c (add_path): Remove variables argv, arg and argv_index.
7002 New variables dir_vec, back_to, ix and name.
7003 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7004 make_cleanup_freeargv. Remove variable separator. Simplify the code
7005 no longer expecting DIRNAME_SEPARATOR.
7006 (openp): Remove variable p, p1 and len. New variables dir_vec,
7007 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7008 no longer expecting DIRNAME_SEPARATOR.
7009 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7010 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7011 debugdir_end.
7012 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7013 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7014 (dirnames_to_char_ptr_vec): New functions.
7015
7016 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7017
7018 Code cleanup.
7019 * source.c (add_path): Remove always true conditional 'p == 0' and
7020 unindent its code block.
7021
7022 2012-04-17 Pedro Alves <palves@redhat.com>
7023
7024 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7025 (FIELD_BITPOS_LVAL): ... this.
7026 (FIELD_BITPOS): New.
7027 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7028 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7029 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7030 SET_FIELD_BITPOS.
7031 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7032 SET_FIELD_BITPOS.
7033 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7034 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7035 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7036 SET_FIELD_BITPOS.
7037
7038 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7039
7040 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7041 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7042 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7043 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7044 * jv-lang.c (java_link_class_type): Likewise, once.
7045 * stabsread.c (read_enum_type): Likewise.
7046
7047 2012-04-16 Yao Qi <yao@codesourcery.com>
7048
7049 * common/agent.c (agent_run_command): Add one more parameter `len'.
7050 Update callers.
7051 * common/agent.h: Update declaration.
7052 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7053 Update.
7054 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7055
7056 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7057
7058 PR mi/13393
7059 * value.c (value_actual_type): New function.
7060 * value.h (value_actual_type): New declaration.
7061 * varobj.c (update_type_if_necessary): New function.
7062 (varobj_create): Call value_actual_type instead of
7063 value_type.
7064 (install_dynamic_child): distinct changed and type changed MI variable
7065 objects.
7066 (update_dynamic_varobj_children): Updated for install_dynamic_child
7067 change. All callers updated.
7068 (varobj_update): Support for MI variable object type change if
7069 the value changed and RTTI is used to determine the type.
7070 (create_child_with_value): Call value_actual_type instead of
7071 value_type.
7072 (adjust_value_for_child_access): Extended with a new parameter which
7073 specify whether the given value should be casted to enclosing type.
7074 All callers updated.
7075
7076 2012-04-14 Yao Qi <yao@codesourcery.com>
7077
7078 Import gnulib module inttypes from git
7079 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7080 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7081 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7082 gnulib/m4/inttypes-pri.m4
7083 * aclocal.m4, config.in, configure: Regenerated.
7084 * gnulib/Makefile.am: Update.
7085 * gnulib/Makefile.in: Update.
7086 * gnulib/m4/gnulib-cache.m4: Update.
7087 * gnulib/m4/gnulib-comp.m4: Update.
7088 * gnulib/inttypes.in.h: New.
7089 * gnulib/m4/inttypes-pri.m4: New.
7090 * gnulib/m4/inttypes.m4: New.
7091
7092 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7093
7094 * infrun.c (resume): Update PC address to the real PC after
7095 preparing to do displaced stepping.
7096
7097 2012-04-12 Doug Evans <dje@google.com>
7098
7099 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7100 All callers updated.
7101
7102 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7103
7104 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7105
7106 2012-04-12 Doug Evans <dje@google.com>
7107
7108 * dwarf2read.c (create_all_type_units): Renamed from
7109 create_debug_types_hash_table. All callers updated.
7110
7111 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7112 local type_sig to sig_type, type_offset to type_offset_in_tu.
7113 (hash_signatured_type): Renamed from hash_type_signature,
7114 all callers updated.
7115 (eq_signatured_type): Renamed from eq_type_signature,
7116 all callers updated.
7117 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7118 (process_enumeration_scope): Ditto.
7119 (lookup_signatured_type_at_offset): Ditto.
7120 (load_full_type_unit, read_signatured_type): Ditto.
7121
7122 2012-04-12 Yao Qi <yao@codesourcery.com>
7123
7124 * remote.c (async_remote_interrupt): Correct function name in
7125 debug message.
7126 (async_remote_interrupt_twice): Ditto.
7127
7128 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7129
7130 * source.c (find_and_open_source): Consistently pass resulting
7131 full path through xfullpath.
7132
7133 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 Provide more specific displaced-stepping memory error message.
7136 * infrun.c (displaced_step_prepare): New variable status. Call
7137 target_read_memory instead of read_memory, provide more specific
7138 error message.
7139
7140 2012-04-11 Tristan Gingold <gingold@adacore.com>
7141
7142 PR gdb/13901
7143 * darwin-nat.c (darwin_execvp): Revert previous patch.
7144
7145 2012-04-11 Tristan Gingold <gingold@adacore.com>
7146
7147 PR gdb/13901
7148 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7149 in case of change.
7150
7151 2012-04-11 Tristan Gingold <gingold@adacore.com>
7152
7153 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7154 warning.
7155
7156 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7157
7158 New command 'explore' which helps explore values and types in
7159 scope.
7160 * NEWS: Add an entry about the new 'explore' command.
7161 * data-directory/Makefile.in: Add gdb/command/explore.py
7162 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7163 command using the GDB Python API.
7164
7165 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7166
7167 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7168 extension in jump target calculation.
7169
7170 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7171
7172 * mips-tdep.c (mips32_next_pc): Handle JALX.
7173
7174 2012-04-10 Yao Qi <yao@codesourcery.com>
7175
7176 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7177
7178 2012-04-10 Yao Qi <yao@codesourcery.com>
7179
7180 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7181 and gnulib/m4/gnulib-tool.m4.
7182
7183 2012-04-10 Doug Evans <dje@google.com>
7184
7185 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7186 (load_partial_dies): Clarify comment.
7187 (find_partial_die): Support rereading type units.
7188 Clarify CU handling, if we know offset is in CU, don't search for the
7189 containing CU. Add comment regarding memory waste.
7190
7191 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7192
7193 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7194 i386/x32-avx and i386/x32-avx-linux.
7195 (i386/x32-expedite): New.
7196 (i386/x32-linux-expedite): Likewise.
7197 (i386/x32-avx-expedite): Likewise.
7198 (i386/x32-avx-linux-expedite): Likewise.
7199 ($(outdir)/i386/x32.dat): Likewise.
7200 ($(outdir)/i386/x32-linux.dat): Likewise.
7201 ($(outdir)/i386/x32-avx.dat): Likewise.
7202 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7203
7204 * features/i386/x32-avx-linux.xml: New file.
7205 * features/i386/x32-avx.xml: Likewise.
7206 * features/i386/x32-core.xml: Likewise.
7207 * features/i386/x32-linux.xml: Likewise.
7208 * features/i386/x32.xml: Likewise.
7209
7210 * features/i386/x32-avx-linux.c: New. Generated.
7211 * features/i386/x32-avx.c: Likewise.
7212 * features/i386/x32-linux.c: Likewise.
7213 * features/i386/x32.c: Likewise.
7214 * regformats/i386/x32-avx-linux.dat: Likewise.
7215 * regformats/i386/x32-avx.dat: Likewise.
7216 * regformats/i386/x32-linux.dat: Likewise.
7217 * regformats/i386/x32.dat: Likewise.
7218
7219 2012-04-10 Tristan Gingold <gingold@adacore.com>
7220
7221 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7222 code to kill the inferior.
7223
7224 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7225
7226 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7227 defines.
7228 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7229 defines.
7230 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7231 (yyvsp): New defines.
7232 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7233 defines.
7234 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7235 defines.
7236 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7237 defines.
7238 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7239 defines.
7240 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7241 defines.
7242
7243 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7244
7245 * sparc64-tdep.c (sparc64_store_arguments)
7246 (sparc64_store_arguments): Fix coding style.
7247
7248 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7249
7250 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7251 complex floats, adjust some related comments and tighten a related
7252 assertion.
7253 (sparc64_extract_return_value): Handle complex floats.
7254
7255 2012-04-07 Doug Evans <dje@google.com>
7256
7257 * dwarf2read.c (load_partial_dies): Change condition to assert.
7258
7259 2012-04-06 Doug Evans <dje@google.com>
7260
7261 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7262 "mov %rsp,%rbp".
7263
7264 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7265
7266 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7267 fencepost error.
7268 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7269 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7270 architecture.
7271
7272 2012-04-05 Keith Seitz <keiths@redhat.com>
7273
7274 * linespec.c (decode_compound): Remove.
7275 (enum offset_relative_sign): New enum.
7276 (struct line_offset): New struct.
7277 (struct linespec): New struct.
7278 (struct linespec_state): Move file_symtabs,
7279 user_filename, and user_function into struct linespec.
7280 Make result an anonymous struct holding vectors of
7281 symbolp and minsym_and_objfile_d.
7282 Add language member.
7283 (enum ls_token_type): New enum.
7284 (linespec_keywords): New array.
7285 (struct ls_token): New struct.
7286 (struct ls_parser): New struct.
7287 (linespec_lexer_lex_number): New function.
7288 (linespec_lexer_lex_keyword): New function.
7289 (is_ada_operator): New function.
7290 (skip_quote_char): New function.
7291 (copy_token_string): New function.
7292 (is_closing_quote_enclosed): New function.
7293 (find_parameter_list_end): New function.
7294 (linespec_lexer_lex_string): New function.
7295 (linespec_lexer_lex_one): New function.
7296 (linespec_lexer_consume_token): New function.
7297 (linespec_lexer_peek_token): New function.
7298 (cplusplus_error): Remove unused function.
7299 (find_methods): Update comment.
7300 (find_toplevel_char): Return const.
7301 (is_objc_method_format): Remove unused function.
7302 (find_toplevel_string): New function.
7303 (is_linespec_boundary): Remove.
7304 (symbol_not_found_error): New function.
7305 (find_method_overload_end): Remove function.
7306 (unexpected_linespec_error): New function.
7307 (keep_name_info): Remove.
7308 (linespec_parse_line_offset): New function.
7309 (linespec_parse_basic): New function.
7310 (canonicalize_linespec): New function.
7311 (decode_line_internal): Remove.
7312 (create_sals_line_offset): New function adapted from
7313 decode_all_digits.
7314 (convert_linespec_to_sals): New function.
7315 (parse_linespec): New function.
7316 (linespec_parser_new): New function.
7317 (linespec_state_destructor): Change parameter type to
7318 struct linespec_state *.
7319 Add language parameter.
7320 Remove freeing of moved members.
7321 (linespec_parser_delete): New function.
7322 (decode_line_full): Use parse_linespec and linespec_parser_new.
7323 (decode_line_1): Likewise.
7324 (decode_indirect): Rename to ...
7325 (linespec_expression_to_pc): ... this and rewrite
7326 to simply find CORE_ADDR, storing this result for later
7327 conversion to SALs.
7328 (locate_first_half): Remove.
7329 (deocde_objc): Add parameter LS.
7330 Initialize new struct collect_info members.
7331 Handle minimal symbols, too.
7332 (decode_compound): Delete.
7333 (lookup_prefix_sym): Rewrite.
7334 (compare_msymbols): New function.
7335 (find_method): Rewrite.
7336 Do not call cplusplus_error.
7337 (symtabs_from_filename): Rewrite.
7338 (collect_function_symbols): Delete.
7339 (find_function_symbols): Rewrite without ARGPTR-style
7340 processing.
7341 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7342 (decode_dollar): Adapted and renamed to ...
7343 (linespec_parse_variable): ... this.
7344 (find_linespec_symbols): New function.
7345 (decode_label): Adapted and renamed to ...
7346 (find_label_symbols): ... this.
7347 (decode_digits_list_mode): Add and use LS argument.
7348 (decode_digits_ordinary): Likewise.
7349 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7350 If in list mode, allow any symbol class. Otherwise, only
7351 permit LOC_BLOCK symbols.
7352 (minsym_found): Update comments.
7353 (search_minsyms_for_name): Do not convert the matching symbol
7354 into a SAL. Simply push the symbol and objfile into the
7355 result vector.
7356 (decode_variable): Delete. Contents adapted into
7357 find_linespec_symbols.
7358
7359 * cp-support.c (SKIP_SPACE): Remove.
7360 (operator_tokens): Remove unused global.
7361 (cp_validate_operator): Remove.
7362 * cp-support.h (cp_validate_operator): Remove declaration.
7363
7364 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7365
7366 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7367 for TYPE_VPTR_FIELDNO.
7368 * valprint.c (valprint_check_validity): Make it global, move the
7369 function comment ...
7370 * value.h (valprint_check_validity): ... to this new declaration.
7371
7372 2012-04-02 Tristan Gingold <gingold@adacore.com>
7373
7374 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7375 the STATE32 api for i386 state.
7376 (i386_darwin_store_inferior_registers): Likewise.
7377
7378 2012-04-02 Tristan Gingold <gingold@adacore.com>
7379
7380 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7381 SS offset.
7382 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7383 format_string.
7384
7385 2012-04-02 Tristan Gingold <gingold@adacore.com>
7386
7387 PR gdb/13901
7388 * darwin-nat.c (darwin_execvp): Set binary preference.
7389
7390 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7391
7392 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7393
7394 2012-03-30 Tom Tromey <tromey@redhat.com>
7395
7396 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7397 of TRY_CATCH. Fix error handling.
7398 * python/py-value.c (convert_value_from_python): Move 'old'
7399 declaration to innermost scope.
7400
7401 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7402 Andrey Smirnov <andrew.smirnov@gmail.com>
7403
7404 -Wshadow warning fix.
7405 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7406 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7407 Adjust code accordingly.
7408
7409 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7410
7411 * ada-lang.c (symbol_completion_add): Rename parameter
7412 "encoded" into "encoded_p". Ajust code and documentation
7413 accordingly.
7414
7415 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7416 Andrey Smirnov <andrew.smirnov@gmail.com>
7417
7418 -Wshadow warning fix.
7419 * ada-lang.c (symbol_completion_add): Rename parameter
7420 "wild_match" into wild_match_p. Update code and documentation
7421 accordingly.
7422
7423 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7424
7425 * ada-lang.c (symbol_completion_match): Rename parameter
7426 "encoded" into "encoded_p". Ajust code and documentation
7427 accordingly.
7428
7429 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7430 Andrey Smirnov <andrew.smirnov@gmail.com>
7431
7432 -Wshadow warning fix.
7433 * ada-lang.c (symbol_completion_match): Rename parameter
7434 "wild_match" into "wild_match_p". Adjust code and function
7435 documentation accordingly.
7436
7437 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7438 Andrey Smirnov <andrew.smirnov@gmail.com>
7439
7440 -Wshadow warning fix.
7441 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7442 "symbol_info" into "info". Adjust code accordingly.
7443 (ada_lookup_symbol): Likewise.
7444
7445 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7446
7447 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7448 of this function's documentation.
7449
7450 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7451 Andrey Smirnov <andrew.smirnov@gmail.com>
7452
7453 -Wshadow warning fix.
7454 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7455 variable into "wild_match_p". Adjust code accordingly.
7456
7457 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7458 Andrey Smirnov <andrew.smirnov@gmail.com>
7459
7460 -Wshadow warning fix.
7461 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7462 parameter into "wild_match_p". Adjust code accordingly.
7463 Document this parameter in the function description.
7464
7465 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7466 Andrey Smirnov <andrew.smirnov@gmail.com>
7467
7468 -Wshadow warning fix.
7469 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7470 "wild_match" parameter to "wild_match_p" (-Wshadow).
7471
7472 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7473
7474 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7475 in function documentation.
7476
7477 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7478 Andrey Smirnov <andrew.smirnov@gmail.com>
7479
7480 -Wshadow warning fix.
7481 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7482 variable into wild_match_p. Adjust code accordingly.
7483
7484 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7485 Andrey Smirnov <andrew.smirnov@gmail.com>
7486
7487 * ada-valprint.c (ada_val_print_1): Move the code handling
7488 TYPE_CODE_ENUM inside its own lexical block. Declare
7489 variables len and val there, instead of in the function's
7490 top level block. Avoid declaring deref_val again in a way
7491 that shadows another variable of the same name declared
7492 in one of the up-level blocks. Just re-use the up-level
7493 variable instead.
7494
7495 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7496
7497 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7498 Replace block_found argument by symbol_info. Adjust
7499 implementation accordingly. Add function documentation.
7500 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7501 Fix documentation.
7502 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7503 * ada-exp.y (write_object_renaming): Adjust to new
7504 ada_lookup_encoded_symbol API.
7505
7506 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7507
7508 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7509 documentation.
7510
7511 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7512
7513 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7514 (v850_register_name): Add the mpu and fpu register names.
7515 (v850e_register_name): Add the mpu and fpu register names.
7516 (v850e2_register_name): New function.
7517 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7518 bfd_mach_v850e2v3.
7519
7520 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7521
7522 * NEWS: Add entry for Ada varobj support.
7523
7524 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7525
7526 * varobj.c (default_value_is_changeable_p): New function,
7527 extracted from varobj_value_is_changeable_p. Add declaration.
7528 (ada_value_is_changeable_p): New function, extracted from
7529 varobj_value_is_changeable_p. Add declaration.
7530 (struct language_specific): New field "value_is_changeable_p".
7531 (languages): Add entries for new field.
7532 (varobj_create): Set language before calling install_new_value.
7533 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7534 "value_is_changeable_p" language callback.
7535
7536 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7537
7538 * ada-varobj.h, ada-varobj.c: New files.
7539 * Makefile.in (SFILES): Add ada-varobj.c.
7540 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7541 (COMMON_OBS): Add ada-varobj.o.
7542
7543 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7544
7545 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7546 (struct language_specific): New field "value_has_mutated".
7547 (languages): Set field "value_has_mutated" in each entry of array.
7548 (varobj_value_has_mutated): New function.
7549 (varobj_udpdate): Add handling of type mutation.
7550 (value_of_root): Add handling of type mutation.
7551 (ada_value_has_mutated): New function.
7552
7553 2012-03-28 Pedro Alves <palves@redhat.com>
7554
7555 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7556 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7557
7558 2012-03-28 Tom Tromey <tromey@redhat.com>
7559
7560 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7561 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7562 before returning.
7563
7564 2012-03-28 Tom Tromey <tromey@redhat.com>
7565
7566 * .dir-locals.el: New file.
7567
7568 2012-03-28 Pedro Alves <palves@redhat.com>
7569
7570 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7571
7572 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7573
7574 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7575 handling for r0.
7576
7577 2012-03-27 Pedro Alves <palves@redhat.com>
7578
7579 Eliminate struct ui_stream.
7580
7581 * ui-out.h (struct ui_stream): Delete.
7582 (ui_out_field_stream): Adjust prototype.
7583 (ui_out_stream_new, ui_out_stream_delete)
7584 (make_cleanup_ui_out_stream_delete): Delete declarations.
7585 * ui-out.c (ui_out_field_stream): Change prototype to take a
7586 ui_file instead of a ui_stream. Adjust.
7587 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7588 (make_cleanup_ui_out_stream_delete): Delete.
7589 * breakpoint.c (print_breakpoint_location)
7590 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7591 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7592 * disasm.c (dump_insns): Ditto.
7593 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7594 prototype.
7595 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7596 ui_stream/ui_out_stream_new.
7597 * infcmd.c (print_return_value): Ditto.
7598 * osdata.c (info_osdata_command): Don't allocate a local
7599 ui_stream.
7600 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7601 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7602 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7603 allocate a local ui_stream.
7604 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7605 instead of ui_stream/ui_out_stream_new.
7606 (list_args_or_locals): Don't allocate a local ui_stream.
7607 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7608 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7609 ui_stream/ui_out_stream_new.
7610 * cli/cli-setshow.c (do_setshow_command): Ditto.
7611
7612 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7613
7614 * arm-linux-tdep.c (arm_linux_init_abi): Call
7615 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7616 * arm-tdep.c (arm_process_record): New function.
7617 (deallocate_reg_mem): New function.
7618 (decode_insn): New function.
7619 (thumb_record_branch): New function.
7620 (thumb_record_ldm_stm_swi(): New function.
7621 (thumb_record_misc): New function.
7622 (thumb_record_ld_st_stack): New function.
7623 (thumb_record_ld_st_imm_offset): New function.
7624 (thumb_record_ld_st_reg_offset(): New function.
7625 (thumb_record_add_sub_cmp_mov): New function.
7626 (thumb_record_shift_add_sub): New function.
7627 (arm_record_coproc_data_proc): New function.
7628 (arm_record_coproc): New function.
7629 (arm_record_b_bl): New function.
7630 (arm_record_ld_st_multiple): New function.
7631 (arm_record_ld_st_reg_offset): New function.
7632 (arm_record_ld_st_imm_offset): New function.
7633 (arm_record_data_proc_imm): New function.
7634 (arm_record_data_proc_misc_ld_str): New function.
7635 (arm_record_extension_space): New function.
7636 (arm_record_strx): New function.
7637 (sbo_sbz): New function.
7638 (struct insn_decode_record): New structure for arm insn record.
7639 (REG_ALLOC): New macro for reg allocations.
7640 (MEM_ALLOC): New macro for memory allocations.
7641 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7642
7643 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7644
7645 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7646 (store_register): Likewise.
7647
7648 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7649
7650 * MAINTAINERS (Write After Approval): Add myself to the list.
7651
7652 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7655 Describe also the option "auto".
7656
7657 2012-03-22 Richard Henderson <rth@redhat.com>
7658
7659 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7660 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7661
7662 2012-03-22 Richard Henderson <rth@redhat.com>
7663
7664 * jit.c (jit_read_code_entry): Compute alignment and offset of
7665 int64_t member before computing entry_size.
7666
7667 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7668
7669 Python scripting: Add new method Value.referenced_value to
7670 gdb.Value which can dereference pointer as well as reference
7671 values.
7672 * NEWS: Add entry under 'Python scripting' about the new method
7673 Value.referenced_value on gdb.Value objects.
7674 * python/py-value.c (valpy_referenced_value): New function
7675 defining a new method on gdb.Value objects which can dereference
7676 pointer and reference values.
7677
7678 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7679
7680 * MAINTAINERS (Write After Approval): Add myself to the list.
7681
7682 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7683
7684 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7685 in addition to "main".
7686
7687 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7688
7689 * expression.h (op_name): Add declaration.
7690 * expprint.c (op_name): Remove declaration. Make non-static.
7691 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7692
7693 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7694
7695 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7696 of struct siginfo.
7697 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7698 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7699 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7700 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7701 (linux_nat_get_siginfo): Likewise.
7702 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7703 (linux_nat_get_siginfo): Likewise.
7704 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7705 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7706 * procfs.c (gdb_siginfo_t): Likewise.
7707
7708 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7709
7710 * .gitignore: Ignore more files.
7711
7712 2012-03-20 Pedro Alves <palves@redhat.com>
7713
7714 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7715 returns.
7716
7717 2012-03-20 Yao Qi <yao@codesourcery.com>
7718
7719 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7720 comment.
7721
7722 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7723
7724 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7725 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7726 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7727 sect_offset.
7728 * dwarf2expr.h (cu_offset, sect_offset): New types.
7729 (struct dwarf_expr_context_funcs) <dwarf_call>
7730 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7731 sect_offset.
7732 (struct dwarf_expr_context) <len>: Improve the comment.
7733 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7734 cu_offset and sect_offset.
7735 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7736 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7737 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7738 * dwarf2loc.h: Include dwarf2expr.h.
7739 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7740 and sect_offset.
7741 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7742 Improve the comment.
7743 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7744 (struct signatured_type, struct line_header, struct partial_die_info)
7745 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7746 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7747 (get_die_type_at_offset, create_cus_from_index)
7748 (create_signatured_type_table_from_index, dw2_get_file_names)
7749 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7750 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7751 (create_debug_types_hash_table, process_psymtab_comp_unit)
7752 (load_partial_comp_unit, create_all_comp_units)
7753 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7754 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7755 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7756 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7757 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7758 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7759 (find_partial_die, read_attribute_value, lookup_die_type)
7760 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7761 (is_ref_attr): New function comment.
7762 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7763 Use cu_offset and sect_offset.
7764 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7765 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7766 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7767 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7768 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7769 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7770 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7771 sect_offset.
7772
7773 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7774
7775 Code cleanup.
7776 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7777 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7778 with xfree.
7779 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7780
7781 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7782
7783 * NEWS: Describe new options --init-command=FILE, -ix and
7784 --init-eval-command=COMMAND, -iex.
7785 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7786 CMDARG_INIT_COMMAND.
7787 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7788 "init-command", "init-eval-command", "ix" and "iex" to the variable
7789 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7790 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7791 (print_gdb_help): Describe --init-command=FILE, -ix and
7792 --init-eval-command=COMMAND, -iex.
7793
7794 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7795
7796 Code cleanup.
7797 * main.c (struct cmdarg): Move it here from main. Add more comments.
7798 (cmdarg_s, VEC (cmdarg_s)): New.
7799 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7800 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7801 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7802 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7803 of CMDARG.
7804
7805 2012-03-19 Tom Tromey <tromey@redhat.com>
7806
7807 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7808
7809 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7810
7811 PR symtab/13777
7812 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7813 GCC >=4.5.
7814
7815 2012-03-16 Chris January <chris.january@allinea.com>
7816
7817 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7818 of clear.
7819
7820 2012-03-16 Chris January <chris.january@allinea.com>
7821
7822 * source.c (add_path): Use memmove instead of strcpy because the
7823 strings overlap.
7824
7825 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7826
7827 * value.h (set_value_parent): Add declaration.
7828 * value.c (set_value_parent): New function.
7829 (value_address): If VALUE->PARENT is not NULL, then use it as
7830 the base address instead of VALUE->LOCATION.address.
7831 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7832 the same as OBJ's address. Adjust V's offset accordingly.
7833 Set V's parent.
7834
7835 2012-03-16 Gary Benson <gbenson@redhat.com>
7836
7837 PR breakpoints/10738
7838 * dwarf2read.c (use_deprecated_index_sections): New global.
7839 (struct partial_die_info): New member may_be_inlined.
7840 (read_partial_die): Set may_be_inlined where appropriate.
7841 (add_partial_subprogram): Add partial symbols for partial
7842 DIEs that may be inlined.
7843 (new_symbol_full): Add inlined subroutines to the current
7844 scope.
7845 (write_psymtabs_to_index): Bump version number.
7846 (dwarf2_read_index): Read only version 6 indices unless
7847 use_deprecated_index_sections is set.
7848 * linespec.c (symbol_and_data_callback): New structure.
7849 (iterate_inline_only): New function.
7850 (iterate_over_all_matching_symtabs): New argument
7851 "include_inline". If nonzero, also call the callback for
7852 symbols representing inlined subroutines.
7853 (lookup_prefix_sym): Pass extra argument to the above.
7854 (find_function_symbols): Likewise.
7855 (add_matching_symbols_to_info): Likewise.
7856 * NEWS: Mention that GDB can now set breakpoints on inlined
7857 functions.
7858
7859 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7860
7861 * p-typeprint.c (pascal_type_print_method_args):
7862 Fix display of parameter of methods.
7863
7864 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7865
7866 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7867 Add missing prototype.
7868
7869 2012-03-16 Yao Qi <yao@codesourcery.com>
7870 Jan Kratochvil <jan.kratochvil@redhat.com>
7871
7872 Fix false compilation warning.
7873 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7874
7875 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7876 Pedro Alves <pedro@codesourcery.com>
7877
7878 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7879 (arm_register_g_packet_guesses): New function.
7880 (arm_gdbarch_init): Don't force a target description with
7881 registers when the executable is detected as M-profile. Instead
7882 set gdbarch->tdep->is_m. Register `g' packet guesses.
7883 (_initialize_arm_tdep): Initialize the new target description.
7884 * features/arm-with-m-fpa-layout.xml: New description.
7885 * features/arm-with-m-fpa-layout.c: New, generated.
7886
7887 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7888
7889 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7890 Update function description.
7891 (insert_bp_location): Do not wipe bl->target_info out.
7892 * mem-break.c: #include "gdb_string.h".
7893 (default_memory_insert_breakpoint): Do not call target_read_memory
7894 with a pointer to the breakpoint's shadow_contents buffer. Use
7895 a local buffer instead.
7896 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7897
7898 2012-03-15 Tom Tromey <tromey@redhat.com>
7899
7900 * NEWS: Mention "info vtbl", not "info vtable".
7901 * cp-support.c (info_vtbl_command): Fix comment.
7902 (_initialize_cp_support): Fix text.
7903
7904 2012-03-15 Tom Tromey <tromey@redhat.com>
7905
7906 * cp-valprint.c (cp_print_value_fields): Use
7907 print_function_pointer_address for vtable slot.
7908
7909 2012-03-15 Tom Tromey <tromey@redhat.com>
7910
7911 * gnu-v3-abi.c (struct value_and_voffset): New.
7912 (hash_value_and_voffset, eq_value_and_voffset)
7913 (compare_value_and_voffset, compute_vtable_size)
7914 (print_one_vtable, gnuv3_print_vtable): New functions.
7915 (init_gnuv3_ops): Initialize 'print_vtable' field.
7916 * cp-support.c (info_vtbl_command): New function.
7917 (_initialize_cp_support): Add "info vtbl".
7918 * cp-abi.h (cplus_print_vtable): Declare.
7919 (struct cp_abi_ops) <print_vtable>: New field.
7920 * cp-abi.c (cplus_print_vtable): New function.
7921 * NEWS: Update.
7922
7923 2012-03-15 Tom Tromey <tromey@redhat.com>
7924
7925 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7926 iterate_over_symbols.
7927
7928 2012-03-14 Doug Evans <dje@google.com>
7929
7930 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7931 DW_OP_GNU_parameter_ref.
7932
7933 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7934
7935 Fix double prompt of 'interpreter-exec mi'.
7936 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7937 (mi_interpreter_resume): use it.
7938 (mi_execute_command_input_handler): New function.
7939 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7940 mi_execute_command_input_handler.
7941
7942 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7943
7944 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7945 prototype.
7946 (darwin_debug_port_info): Make static.
7947 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7948 * machoread.c (_initialize_machoread): Add prototype.
7949 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7950 (i386_darwin_set_control, i386_darwin_get_control)
7951 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7952 i386_darwin_get_status, i386_darwin_get_control):
7953 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7954
7955 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7956
7957 * ax-gdb.c (gen_usual_unary): Remove special handling of
7958 enum and bool types.
7959
7960 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7961
7962 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7963
7964 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7965
7966 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7967
7968 2012-03-13 Chris January <chris.january@allinea.com>
7969
7970 * aix-thread.c (fill_sprs): Store the floating point registers
7971 at the correct offsets into vals.
7972
7973 2012-03-13 Doug Evans <dje@google.com>
7974
7975 * NEWS: Mention symbol-reloading has been deleted.
7976 * symfile.c (symbol_reloading): Delete.
7977 (show_symbol_reloading): Delete.
7978 (_initialize_symfile): Delete set/show symbol-reloading.
7979
7980 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7981 read_in_chain until we have successfully read it in.
7982 (load_full_comp_unit): Ditto.
7983 (read_signatured_type): Add comment.
7984
7985 2012-03-13 Chris January <chris.january@allinea.com>
7986
7987 * stabsread.c (fix_common_block): Change type of valu argument
7988 to CORE_ADDR.
7989
7990 2012-03-13 Chris January <chris.january@allinea.com>
7991
7992 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7993 instruction.
7994
7995 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7996
7997 * common/linux-procfs.c (linux_proc_get_int): New, from
7998 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7999 field.
8000 (linux_proc_get_tgid): Only call linux_proc_get_int.
8001 (linux_proc_get_tracerpid): New.
8002 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8003 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8004 linux_proc_pid_has_state.
8005 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8006 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8007 (linux_ptrace_attach_warnings): New.
8008 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8009 New declaration.
8010 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8011 (linux_nat_attach): New variables ex, buffer, message and message_s.
8012 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8013
8014 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8015
8016 * Makefile.in (linux-ptrace.o): New.
8017 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8018 from linux-nat.c.
8019 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8020 * common/linux-ptrace.c: New file.
8021 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8022 * config/arm/linux.mh: Likewise.
8023 * config/i386/linux.mh: Likewise.
8024 * config/i386/linux64.mh: Likewise.
8025 * config/ia64/linux.mh: Likewise.
8026 * config/m32r/linux.mh: Likewise.
8027 * config/m68k/linux.mh: Likewise.
8028 * config/mips/linux.mh: Likewise.
8029 * config/pa/linux.mh: Likewise.
8030 * config/powerpc/linux.mh: Likewise.
8031 * config/powerpc/ppc64-linux.mh: Likewise.
8032 * config/powerpc/spu-linux.mh: Likewise.
8033 * config/s390/s390.mh: Likewise.
8034 * config/sparc/linux.mh: Likewise.
8035 * config/sparc/linux64.mh: Likewise.
8036 * config/xtensa/linux.mh: Likewise.
8037 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8038 common/linux-procfs.c.
8039 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8040
8041 2012-03-13 Hui Zhu <teawater@gmail.com>
8042 Pedro Alves <palves@redhat.com>
8043
8044 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8045 CREATE_BREAKPOINT_FLAGS_INSERTED.
8046 (create_breakpoint_sal, create_breakpoints_sal)
8047 (base_breakpoint_create_breakpoints_sal)
8048 (tracepoint_create_breakpoints_sal)
8049 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8050 down.
8051 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8052 (ftrace_command, strace_command): Adjust.
8053 (create_tracepoint_from_upload): Pass
8054 CREATE_BREAKPOINT_FLAGS_INSERTED.
8055 * breakpoint.h (enum breakpoint_create_flags): New.
8056 (create_breakpoint): New flags parameter.
8057 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8058 * python/py-breakpoint.c (bppy_init): Adjust.
8059 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8060 * spu-tdep.c (spu_catch_start): Adjust.
8061
8062 2012-03-13 Pedro Alves <palves@redhat.com>
8063 Hui Zhu <teawater@gmail.com>
8064 Yao Qi <yao@codesourcery.com>
8065
8066 * remote.c (struct remote_state): New field `starting_up'.
8067 (remote_start_remote): Set and clear it.
8068 (remote_can_download_tracepoint): If starting up, return false.
8069
8070 2012-03-13 Yao Qi <yao@codesourcery.com>
8071
8072 * inferior.h (struct inferior): Remove fields any_syscall_count,
8073 syscalls_counts and total_syscalls_count. Move them to new
8074 struct catch_syscall_inferior_data in breakpoint.c.
8075 * breakpoint.c: Call DEF_VEC_I(int).
8076 (struct catch_syscall_inferior_data): New.
8077 (get_catch_syscall_inferior_data): New.
8078 (catch_syscall_inferior_data_cleanup): New.
8079 (insert_catch_syscall): Update to access data in
8080 struct catch_syscall_inferior_data.
8081 (insert_catch_syscall): Likewise.
8082 (remove_catch_syscall): Likewise.
8083 (remove_catch_syscall): Likewise.
8084 (is_syscall_catchpoint_enabled): Likewise.
8085 (add_catch_command): Likewise.
8086 (_initialize_breakpoint): Register cleanup.
8087 * breakpoint.h: Removed DEF_VEC_I(int).
8088 * dwarf2loc.c: Call DEF_VEC_I(int).
8089 * mi/mi-main.c: Likewise.
8090
8091 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8092
8093 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8094
8095 2012-03-12 Chris January <chris.january@allinea.com>
8096
8097 * aix-thread.c (_initialize_aix_thread): Add prototype.
8098 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8099 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8100
8101 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8102
8103 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8104 include of "amd64-nat.h".
8105
8106 2012-03-12 Tom Tromey <tromey@redhat.com>
8107
8108 * buildsym.c (record_pending_block): Now static.
8109 * buildsym.h: (record_pending_block): Remove.
8110
8111 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8112
8113 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8114
8115 2012-03-09 Tom Tromey <tromey@redhat.com>
8116
8117 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8118 producer_is_gxx_lt_4_6>: New fields.
8119 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8120
8121 2012-03-09 Tom Tromey <tromey@redhat.com>
8122
8123 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8124
8125 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8126
8127 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8128 prototype.
8129
8130 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8131
8132 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8133
8134 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8135
8136 Fix -Wmissing-prototypes build.
8137 * arm-linux-nat.c (get_thread_id): Make it static.
8138 * xtensa-linux-nat.c (get_thread_id): Likewise.
8139
8140 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8141
8142 * server.c (process_point_options): If a conditional expression
8143 is found, only print a message if remote_debug is nonzero.
8144
8145 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8146
8147 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8148 of internal error for unknown/unsupported types.
8149
8150 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8151
8152 Fix CU relative vs. absolute DIE offsets.
8153 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8154 offset to offset_in_cu.
8155 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8156 TYPE_OFFSET.
8157 (dwarf2_fetch_die_location_block): Rename parameter offset to
8158 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8159
8160 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8161
8162 * libunwind-frame.c: Rename to ...
8163 * ia64-libunwind-tdep.c: ... here.
8164 * libunwind-frame.h: Rename to ...
8165 * ia64-libunwind-tdep.h: ... here.
8166 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8167 ia64-libunwind-tdep.h.
8168 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8169 * README (--with-libunwind): Rename to ...
8170 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8171 * config.in: Regenerate.
8172 * configure: Regenerate.
8173 * configure.ac: New option --with-libunwind-ia64, make the
8174 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8175 Remove AC_DEFINE for HAVE_LIBUNWIND.
8176 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8177 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8178 Rename libunwind-frame in the general comment.
8179 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8180 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8181 Move forward declarations inside #ifndef. Rename libunwind-frame in
8182 the general comment.
8183 * ia64-tdep.c: Rename libunwind-frame.h #include to
8184 ia64-libunwind-tdep.h.
8185 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8186 (ia64_libunwind_descr): Rename libunwind-frame to
8187 ia64-libunwind-tdep in these function comments.
8188 * ia64-tdep.h: Rename libunwind-frame.h #include to
8189 ia64-libunwind-tdep.h.
8190 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8191 ia64-libunwind-tdep in that data comment.
8192
8193 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 * libunwind-frame.h (struct frame_unwind): New declaration.
8196
8197 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8198
8199 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8200 "set breakpoint condition-evaluation" command.
8201
8202 2012-03-08 Tristan Gingold <gingold@adacore.com>
8203
8204 * sparc-stub.c: Move to stubs/
8205 * sh-stub.c: Likewise.
8206 * m68k-stub.c: Likewise.
8207 * m32r-stub.c: Likewise.
8208 * i386-stub.c: Likewise.
8209
8210 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8211
8212 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8213 linux_get_siginfo_type.
8214
8215 * m68klinux-nat.c: Include "gdb_proc_service.h".
8216 (PTRACE_GET_THREAD_AREA): Define.
8217 (ps_get_thread_area): New function.
8218
8219 2012-03-08 Yao Qi <yao@codesourcery.com>
8220
8221 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8222 `xsnprintf'.
8223 (remote_query_attached): Likewise.
8224 (remote_static_tracepoint_marker_at): Likewise.
8225 (remote_set_permissions): Likewise.
8226 (remote_detach_1, extended_remote_attach_1): Likewise.
8227 (send_g_packet, remote_vkill): Likewise.
8228 (extended_remote_disable_randomization): Likewise.
8229 (remote_add_target_side_condition): Likewise.
8230 (remote_insert_breakpoint): Likewise.
8231 (remote_remove_breakpoint): Likewise.
8232 (remote_insert_watchpoint): Likewise.
8233 (remote_remove_watchpoint): Likewise.
8234 (remote_insert_hw_breakpoint): Likewise.
8235 (remote_insert_hw_breakpoint): Likewise.
8236 (remote_remove_hw_breakpoint): Likewise.
8237 (remote_download_command_source): Likewise.
8238 (remote_download_tracepoint): Likewise.
8239 (remote_download_trace_state_variable): Likewise.
8240 (remote_disable_tracepoint): Likewise.
8241 (remote_trace_set_readonly_regions): Likewise.
8242 (remote_get_tracepoint_status): Likewise.
8243 (remote_trace_find): Likewise.
8244 (remote_get_trace_state_variable_value): Likewise.
8245 (remote_set_disconnected_tracing): Likewise.
8246 (remote_set_circular_trace_buffer): Likewise.
8247 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8248 (remote_use_agent): Likewise.
8249 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8250 Update callers.
8251
8252 2012-03-07 Pedro Alves <palves@redhat.com>
8253
8254 * NEWS: Mention QProgramSignals.
8255 * inferior.h (update_signals_program_target): Declare.
8256 * infrun.c: (update_signals_program_target): New.
8257 (handle_command): Update the target of the new program signals
8258 array changes.
8259 * remote.c (PACKET_QProgramSignals): New enum.
8260 (last_program_signals_packet): New global.
8261 (remote_program_signals): New.
8262 (remote_start_remote): Update the target with the program signals
8263 list.
8264 (remote_protocol_features): Add entry for QPassSignals.
8265 (remote_open_1): Free anc clear last_program_signals_packet.
8266 (init_remote_ops): Install remote_program_signals.
8267 * target.c (update_current_target): Adjust.
8268 (target_program_signals): New.
8269 * target.h (struct target_ops) <to_program_signals>: New field.
8270 (target_program_signals): Declare.
8271
8272 2012-03-07 Pedro Alves <palves@redhat.com>
8273
8274 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8275 extensions.
8276
8277 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8278
8279 * m68klinux-nat.c (getregs_supplies): Make static.
8280 (getfpregs_supplies): Likewise.
8281 (have_ptrace_getregs): Likewise.
8282
8283 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8284
8285 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8286 in call to get_die_type_at_offset.
8287
8288 2012-03-06 Stan Shebs <stan@codesourcery.com>
8289
8290 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8291 * mi/mi-cmd-disas.c: Ditto.
8292 * mi/mi-cmd-env.c: Ditto.
8293 * mi/mi-cmd-file.c: Ditto.
8294 * mi/mi-cmd-stack.c: Ditto.
8295 * mi/mi-cmd-target.c: Ditto.
8296 * mi/mi-cmd-var.c: Ditto.
8297 * mi/mi-cmds.c: Ditto.
8298 * mi/mi-cmds.h: Ditto.
8299 * mi/mi-console.c: Ditto.
8300 * mi/mi-getopt.c: Ditto.
8301 * mi/mi-getopt.h: Ditto.
8302 * mi/mi-interp.c: Ditto.
8303 * mi/mi-main.c: Ditto.
8304 * mi/mi-out.c: Ditto.
8305 * mi/mi-parse.c: Ditto.
8306 * mi/mi-parse.h: Ditto.
8307 * mi/mi-symbol-cmds.c: Ditto.
8308
8309 * mi/mi-getopt.h: Move mi_opt struct up.
8310 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8311 return.
8312 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8313
8314 2012-03-06 Tom Tromey <tromey@redhat.com>
8315
8316 * proc-service.c (ps_pglobal_lookup): Set the current program
8317 space.
8318
8319 2012-03-06 Pedro Alves <palves@redhat.com>
8320
8321 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8322
8323 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8324
8325 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8326
8327 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 Code cleanup.
8330 * common/linux-osdata.c (linux_common_core_of_thread): New function
8331 comment.
8332 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8333 call by linux_common_core_of_thread.
8334 (linux_nat_core_of_thread_1): Remove.
8335 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8336 * linux-thread-db.c: Include linux-osdata.h.
8337 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8338 linux_common_core_of_thread.
8339
8340 2012-03-05 Tom Tromey <tromey@redhat.com>
8341
8342 * value.c (value_primitive_field): Don't fetch contents for
8343 non-virtual bases.
8344
8345 2012-03-05 Tom Tromey <tromey@redhat.com>
8346
8347 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8348
8349 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8350
8351 * s390-nat.c: Include "gregset.h".
8352
8353 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8354
8355 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8356 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8357 (libunwind_load): New variable so_error, use it for dlerror. Try to
8358 load also LIBUNWIND_SO_7.
8359
8360 2012-03-05 Pedro Alves <palves@redhat.com>
8361
8362 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8363 is not NULL, and remove resulting dead code.
8364
8365 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8366
8367 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8368 prologue to sh_analyze_prologue.
8369 (sh_analyze_prologue): Make better use of such an upper limit, and
8370 generally be more cautious about accessing memory.
8371
8372 2012-03-05 Tom Tromey <tromey@redhat.com>
8373
8374 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8375 _initialize_ia64_hpux_tdep.
8376
8377 2012-03-05 Pedro Alves <palves@redhat.com>
8378
8379 PR gdb/13766
8380
8381 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8382 the register state is clear, supply explicit zero, instead of
8383 marking the register unavailable.
8384
8385 2012-03-05 Tristan Gingold <gingold@adacore.com>
8386
8387 * NEWS: Mention OpenVMS ia64 new target.
8388
8389 2012-03-05 Tristan Gingold <gingold@adacore.com>
8390
8391 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8392 (ia64_unw_accessors, ia64_unw_rse_accessors)
8393 (ia64_libunwind_descr): Declare.
8394 * ia64-vms-tdep.c: New file.
8395 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8396 (ia64_libunwind_descr): Make them public.
8397 * configure.tgt: Add ia64-*-*vms*.
8398 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8399 (ALLDEPFILES): Add ia64-vms-tdep.c
8400
8401 2012-03-05 Tristan Gingold <gingold@adacore.com>
8402
8403 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8404 * remote.c (PACKET_qXfer_uib): New enum value.
8405 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8406 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8407 (_initialize_remote): Call add_packet_config_cmd for
8408 xfer:uib packet.
8409
8410 2012-03-05 Tristan Gingold <gingold@adacore.com>
8411
8412 * osabi.c (gdb_osabi_names): Add OpenVMS.
8413 (generic_elf_osabi_sniffer): Likewise.
8414 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8415
8416 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8417
8418 Removed unused code.
8419 * libunwind-frame.c (libunwind_frame_unwind)
8420 (libunwind_frame_base_address): Remove.
8421 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8422
8423 2012-03-04 Yao Qi <yao@codesourcery.com>
8424
8425 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8426 remove trailing new line.
8427 (agent_run_command, agent_run_command): Add _ markup.
8428 (agent_capability_check): Likewise.
8429
8430 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8431
8432 * breakpoint.c (set_condition_evaluation_mode): Set
8433 CONDITION_EVALUATION_MODE unconditionally.
8434
8435 2012-03-03 Yao Qi <yao@codesourcery.com>
8436
8437 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8438 * common/agent.h: Update declaration.
8439 * inf-child.c (inf_child_use_agent): New.
8440 (inf_child_can_use_agent): New.
8441 (inf_child_target): Initialize fields `to_use_agent'
8442 and `to_can_use_agent'.
8443 * agent.c (agent_new_objfile): New.
8444 (_initialize_agent): Add agent_new_objfile to new_objfile
8445 observer.
8446
8447 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8448 New.
8449 (linux_target_install_ops): Initialize field
8450 `to_static_tracepoint_markers_by_strid'.
8451 * remote.c (free_current_marker): Move it to ...
8452 * tracepoint.c (free_current_marker): ... here. New.
8453 (cleanup_target_stop): New.
8454 * tracepoint.h: Declare free_current_marker.
8455 * NEWS: Add one entry about `info static-tracepoint-marker'.
8456
8457 2012-03-03 Yao Qi <yao@codesourcery.com>
8458
8459 * common/agent.c (agent_loaded_p): New.
8460 (agent_look_up_symbols): New global.
8461 * common/agent.h: Declare agent_loaded_p.
8462
8463 2012-03-03 Yao Qi <yao@codesourcery.com>
8464
8465 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8466 (agent_capability_check, agent_capability_invalidate): New.
8467 (symbol_list): New array element.
8468 * common/agent.h (enum agent_capa): New.
8469 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8470
8471 2012-03-03 Yao Qi <yao@codesourcery.com>
8472
8473 * target.h (struct target_ops) <to_use_agent>: New field.
8474 (struct target_ops) <to_can_use_agent>: New field.
8475 (target_use_agent, target_can_use_agent): New macro.
8476 * target.c (update_current_target): Update.
8477 * remote.c: New enum `PACKET_QAgent'.
8478 (remote_protocol_features): Add a new element.
8479 (remote_use_agent, remote_can_use_agent): New.
8480 (init_remote_ops): Initialize field `can_use_agent' with
8481 remote_can_use_agent. Intiailize field `use_agent' with
8482 remote_use_agent.
8483 * common/agent.c (use_agent): New global.
8484 * common/agent.h: Declare it.
8485 * tracepoint.c (info_static_tracepoint_markers_command): Add
8486 comment.
8487 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8488 (COMMON_OBS): Add common/agent.o and agent.o
8489 (common-agent.o): New rule.
8490 * agent.c: New.
8491
8492 2012-03-03 Yao Qi <yao@codesourcery.com>
8493
8494 * common/agent.c: New.
8495 * common/agent.h: New.
8496 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8497 AC_CHECK_HEADERS.
8498 * configure, configh.in: Regenerated.
8499
8500 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8501
8502 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8503 unless it exists for this architecture.
8504
8505 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8506
8507 * language.h (struct language_defn): New "method" la_read_var_value.
8508 * findvar.c: #include "language.h".
8509 (default_read_var_value): Renames read_var_value. Rewrite
8510 function description.
8511 (read_var_value): New function.
8512 * value.h (default_read_var_value): Add prototype.
8513 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8514 New functions.
8515 (ada_language_defn): Add entry for la_read_var_value.
8516 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8517 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8518 language_defn structures to add entry for new la_read_var_value
8519 field.
8520
8521 2012-03-02 Tom Tromey <tromey@redhat.com>
8522 Pedro Alves <palves@redhat.com>
8523
8524 PR breakpoints/13776:
8525 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8526 breakpoints.
8527 (delete_longjmp_breakpoint_at_next_stop): New.
8528 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8529 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8530 before deleting the inferior. Add comments.
8531 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8532 breakpoints immediately, but only on next stop. Move that code
8533 next to where we mark other breakpoints for deletion.
8534
8535 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8536
8537 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8538 marker.
8539 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8540 violation.
8541
8542 2012-03-02 Pedro Alves <palves@redhat.com>
8543
8544 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8545
8546 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8547
8548 Fix -Wmissing-prototypes build.
8549 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8550 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8551 (gdbsim_has_memory): Likewise.
8552
8553 2012-03-02 Yao Qi <yao@codesourcery.com>
8554
8555 Fix -Wmissing-prototypes build.
8556 * charset.c (phony_iconv_open): Make static.
8557 (phony_iconv_close, phony_iconv): Likewise.
8558 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8559 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8560 prototype.
8561 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8562 * ser-mingw.c (create_select_thread): Make static.
8563 * windows-termcap.c (tgetent): New prototype.
8564 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8565
8566 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8567
8568 Fix -Wmissing-prototypes build.
8569 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8570 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8571 (_initialize_loadable): New prototypes.
8572
8573 2012-03-02 Doug Evans <dje@google.com>
8574
8575 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8576 abbrev table, read_comp_unit will do it.
8577
8578 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8579
8580 Fix -Wmissing-prototypes build.
8581 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8582 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8583 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8584 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8585 (_initialize_arm_symbian_tdep): New prototype.
8586 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8587 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8588 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8589 static.
8590 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8591 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8592 prototype.
8593 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8594 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8595 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8596 static.
8597 * moxie-tdep.c (moxie_process_record): Likewise.
8598 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8599 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8600 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8601 (_initialize_rl78_tdep): New prototype.
8602 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8603 (_initialize_rx_tdep): New prototype.
8604 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8605 (_initialize_darwin_solib): New prototype.
8606 * solib-spu.c: Include solib-spu.h.
8607 (_initialize_spu_solib): New prototype.
8608 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8609 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8610 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8611 (tic6x_software_single_step): Make it static.
8612 (_initialize_tic6x_tdep): New prototype.
8613
8614 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8615
8616 Fix -Wmissing-prototypes build.
8617 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8618 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8619
8620 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8621
8622 Fix -Wmissing-prototypes build.
8623 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8624 (frv_have_stopped_data_address): Remove.
8625
8626 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8627
8628 Fix -Wmissing-prototypes build.
8629 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8630 * sh-tdep.c: Include sh64-tdep.h.
8631 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8632 * sh64-tdep.c: Include sh64-tdep.h.
8633 * sh64-tdep.h: New file.
8634
8635 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8636
8637 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8638
8639 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8640
8641 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8642 sp_regnum once the gdbarch_init_osabi hook has been called.
8643
8644 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8645
8646 * mips-tdep.c (mips32_bc1_pc): New function.
8647 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8648 BPOSGE32 and BPOSGE64 instructions.
8649 (deal_with_atomic_sequence): Likewise.
8650 (mips32_instruction_has_delay_slot): Likewise.
8651
8652 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8653 Chris Dearman <chris@mips.com>
8654 Maciej W. Rozycki <macro@codesourcery.com>
8655 Joseph Myers <joseph@codesourcery.com>
8656
8657 * features/mips-dsp.xml: New file.
8658 * features/mips64-dsp.xml: New file.
8659 * features/mips-dsp-linux.xml: New file.
8660 * features/mips64-dsp-linux.xml: New file.
8661 * features/Makefile (WHICH): Add mips-dsp-linux and
8662 mips64-dsp-linux.
8663 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8664 * features/mips-dsp-linux.c: New file.
8665 * features/mips64-dsp-linux.c: New file.
8666 * regformats/mips-dsp-linux.dat: New file.
8667 * regformats/mips64-dsp-linux.dat: New file.
8668 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8669 registers.
8670 (mips64_linux_register_addr): Likewise.
8671 (mips64_linux_regsets_fetch_registers): Likewise.
8672 (mips64_linux_regsets_store_registers): Likewise.
8673 (mips64_linux_fetch_registers): Update call to
8674 mips64_linux_regsets_fetch_registers.
8675 (mips64_linux_store_registers): Update call to
8676 mips64_linux_regsets_store_registers.
8677 (mips_linux_read_description): Probe for DSP registers.
8678 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8679 and initialize_tdesc_mips64_dsp_linux.
8680 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8681 Remove padding of no longer used embedded register slots.
8682 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8683 (MIPS_RESTART_REGNUM): Redefine enum value.
8684 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8685 strings.
8686 (mips_tx39_reg_names): Likewise.
8687 (mips_linux_reg_names): New array of register names for Linux
8688 targets.
8689 (mips_register_name): Check for a null pointer in
8690 mips_processor_reg_names and return an empty string.
8691 (mips_register_type): Exclude embedded registers for the IRIX
8692 and Linux ABIs.
8693 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8694 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8695 DSP registers.
8696 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8697 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8698 (mips_gdbarch_init): Likewise. Initialize internal register
8699 indices for the Linux ABI. Use dynamic numbers to refer to
8700 registers, as applicable, while parsing the target description.
8701 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8702
8703 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8704
8705 * frame.h (read_frame_register_unsigned): Fix typo in function
8706 description.
8707
8708 2012-03-01 Pedro Alves <palves@redhat.com>
8709
8710 * jit-reader.in [!__cplusplus]
8711 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8712
8713 2012-03-01 Pedro Alves <palves@redhat.com>
8714
8715 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8716 * configure: Regenerate.
8717
8718 2012-03-01 Pedro Alves <palves@redhat.com>
8719
8720 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8721 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8722 (ftrace_command, strace_command): Make static.
8723 * d-lang.c (_initialize_d_language): Declare.
8724 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8725 * dwarf2loc.c (_initialize_dwarf2loc):
8726 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8727 * exec.c (exec_get_section_table): Make static.
8728 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8729 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8730 * inferior.c (remove_inferior_command, add_inferior_command)
8731 (clone_inferior_command): Make static.
8732 * linux-nat.c (linux_nat_thread_address_space)
8733 (linux_nat_core_of_thread): Make static.
8734 * linux-tdep.c (_initialize_linux_tdep): Declare.
8735 * objc-lang.c (_initialize_objc_lang): Declare.
8736 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8737 Make static.
8738 (_initialize_opencl_language): Declare.
8739 * record.c (_initialize_record): Declare.
8740 * remote.c (demand_private_info, remote_get_tib_address)
8741 (remote_supports_cond_tracepoints)
8742 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8743 Make static.
8744 * skip.c (_initialize_step_skip): Declare.
8745 * symtab.c (skip_prologue_using_lineinfo): Make static.
8746 * tracepoint.c (delete_trace_state_variable)
8747 (trace_variable_command, delete_trace_variable_command)
8748 (get_uploaded_tsv, find_matching_tracepoint_location)
8749 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8750 Make static.
8751 * value.c (pack_unsigned_long): Make static.
8752 * varobj.c (varobj_ensure_python_env): Make static.
8753 * windows-tdep.c (_initialize_windows_tdep): Declare.
8754 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8755
8756 2012-03-01 Pedro Alves <palves@redhat.com>
8757
8758 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8759 gdbarch parameter.
8760 (linux_init_abi): Install it as has_shared_address_space gdbarch
8761 callback.
8762
8763 2012-03-01 Pedro Alves <palves@redhat.com>
8764
8765 * observer.c (observer_test_first_notification_function)
8766 (observer_test_second_notification_function)
8767 (observer_test_third_notification_function): Add declarations.
8768
8769 2012-03-01 Pedro Alves <palves@redhat.com>
8770
8771 * common/signals.c (default_target_signal_to_host)
8772 (default_target_signal_from_host): Move ...
8773 * arch-utils.c: ... here.
8774 * arch-utils.h (default_target_signal_to_host)
8775 (default_target_signal_from_host): Declare.
8776
8777 * common/signals.c (target_signal_from_command): Move ...
8778 * infrun.c: ... here.
8779 * inferior.h (target_signal_from_command): Declare.
8780 * target.h (target_signal_from_command)
8781 (default_target_signal_from_host, default_target_signal_to_host):
8782 Delete declarations.
8783
8784 * common/signals.c (_initialize_signals): Delete.
8785
8786 2012-03-01 Pedro Alves <palves@redhat.com>
8787
8788 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8789 both __cplusplus and !__cplusplus.
8790
8791 2012-03-01 Pedro Alves <palves@redhat.com>
8792
8793 * psymtab.c (find_and_open_source): Delete declaration.
8794 * source.c (find_and_open_source): Move comment ...
8795 * source.h (find_and_open_source): ... to this new declaration.
8796
8797 2012-03-01 Pedro Alves <palves@redhat.com>
8798
8799 * inline-frame.c: Include inline-frame.h.
8800
8801 2012-03-01 Pedro Alves <palves@redhat.com>
8802
8803 * tui/tui-data.c (set_gen_win_origin): Delete.
8804 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8805 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8806
8807 2012-03-01 Pedro Alves <palves@redhat.com>
8808
8809 * remote.c (encode_actions): Delete declaration.
8810 * tracepoint.c (encode_actions): Make extern.
8811 * tracepoint.h (encode_actions): Declare.
8812
8813 2012-03-01 Pedro Alves <palves@redhat.com>
8814
8815 * python/py-breakpoint.c: Include python.h.
8816 * python/py-continueevent.c (create_continue_event_object): Make
8817 static.
8818 * python/py-lazy-string.c (stpy_get_type): Make static.
8819 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8820 Make static.
8821 * python/py-utils.c (unicode_to_target_python_string): Make
8822 static.
8823 * python/py-value.c: Include python.h.
8824
8825 2012-03-01 Pedro Alves <palves@redhat.com>
8826
8827 * inferior.c (delete_threads_of_inferior): Delete.
8828
8829 2012-03-01 Pedro Alves <palves@redhat.com>
8830
8831 Import fallback definitions from glibc.
8832
8833 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8834 ps_prochandle): Forward declare.
8835 (ps_err_e): Use glibc's comments.
8836 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8837 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8838 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8839 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8840 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8841 (struct ps_prochandle): Adjust comment.
8842
8843 2012-03-01 Pedro Alves <palves@redhat.com>
8844
8845 * ada-lang.c (ada_modulus_from_name): Delete.
8846 * ada-lex.l (lexer_init): Make static.
8847
8848 2012-03-01 Pedro Alves <palves@redhat.com>
8849
8850 PR gdb/13767
8851
8852 * frame.c (read_frame_register_unsigned): New.
8853 * frame.h (read_frame_register_unsigned): Declare.
8854 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8855 Handle it.
8856 (print_i387_control_word): New parameter `control_p'. Handle it.
8857 (i387_print_float_info): Handle unavailable float registers.
8858
8859 2012-03-01 Keith Seitz <keiths@redhat.com>
8860
8861 * linespec.c (decode_line_2): Sort the list of methods
8862 alphabetically before presenting the user with a selection
8863 menu.
8864
8865 2012-03-01 Doug Evans <dje@google.com>
8866
8867 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8868 has_namespace_info.
8869 (dwarf2_read_abbrevs): Remove corresponding initialization.
8870
8871 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8872
8873 * NEWS: Mention new python command class gdb.COMMAND_USER.
8874 * cli/cli-cmds.c (show_user): Print error when used on a python
8875 command.
8876 (init_cli_cmds): Update documentation strings for "show user" and
8877 "set/show max-user-call-depth" to clarify that it does not apply to
8878 python commands.
8879 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8880 error check.
8881 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8882 gdb python api.
8883 * top.c (execute_command): Only execute a user-defined command as a
8884 legacy macro if c->user_commands is set.
8885
8886 2012-03-01 Tom Tromey <tromey@redhat.com>
8887
8888 * valprint.h (struct generic_val_print_decorations): New.
8889 (generic_val_print): Declare.
8890 * valprint.c (generic_val_print): New function.
8891 * p-valprint.c (p_decorations): New global.
8892 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8893 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8894 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8895 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8896 * m2-valprint.c (m2_decorations): New global.
8897 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8898 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8899 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8900 TYPE_CODE_ERROR>: Call generic_val_print.
8901 * f-valprint.c (f_decorations): New global.
8902 (f_val_print): Use print_function_pointer_address.
8903 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8904 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8905 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8906 generic_val_print.
8907 * c-valprint.c (c_decorations): New global.
8908 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8909 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8910 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8911 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8912 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8913 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8914 case.
8915
8916 2012-03-01 Tom Tromey <tromey@redhat.com>
8917
8918 * valprint.c (val_print): Update.
8919 * p-valprint (pascal_val_print): Return void.
8920 * p-lang.h (pascal_val_print): Return void.
8921 * m2-valprint.c (m2_val_print): Return void.
8922 * m2-lang.h (m2_val_print): Return void.
8923 * language.h (struct language_defn) <la_val_print>: Return void.
8924 * language.c (unk_lang_val_print): Return void.
8925 * jv-valprint.c (java_val_print): Return void.
8926 * jv-lang.h (java_val_print): Return void.
8927 * f-valprint.c (f_val_print): Return void.
8928 * f-lang.h (f_val_print): Return void.
8929 * d-valprint.c (d_val_print): Return void.
8930 (dynamic_array_type): Update.
8931 * d-lang.h (d_val_print): Return void.
8932 * c-valprint.c (c_val_print): Return void.
8933 * c-lang.h (c_val_print): Return void.
8934 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8935 void.
8936 * ada-lang.h (ada_val_print): Return void.
8937
8938 2012-03-01 Tom Tromey <tromey@redhat.com>
8939
8940 * value.h (val_print): Return void.
8941 * valprint.c (val_print): Return void.
8942
8943 2012-03-01 Tom Tromey <tromey@redhat.com>
8944
8945 * value.h (common_val_print): Return void.
8946 * valprint.c (common_val_print): Return void.
8947
8948 2012-03-01 Tom Tromey <tromey@redhat.com>
8949
8950 * value.h (value_print): Return void.
8951 * valprint.c (value_print): Return void.
8952 * p-valprint.c (pascal_value_print): Return void.
8953 * p-lang.h (pascal_value_print): Return void.
8954 * language.h (struct language_defn) <la_value_print>: Return
8955 void.
8956 * language.c (unk_lang_value_print): Return void.
8957 * jv-valprint.c (java_value_print): Return void.
8958 * jv-lang.h (java_value_print): Return void.
8959 * f-valprint.c (c_value_print): Don't declare.
8960 Include c-lang.h.
8961 * c-valprint.c (c_value_print): Return void.
8962 * c-lang.h (c_value_print): Return void.
8963 * ada-valprint.c (ada_value_print): Return void.
8964 * ada-lang.h (ada_value_print): Return void.
8965
8966 2012-03-01 Tom Tromey <tromey@redhat.com>
8967
8968 * value.c (value_primitive_field): Handle virtual base classes.
8969
8970 2012-03-01 Tom Tromey <tromey@redhat.com>
8971
8972 * gdbtypes.h (struct vbase): Remove.
8973
8974 2012-03-01 Tom Tromey <tromey@redhat.com>
8975
8976 * c-valprint.c (print_function_pointer_address): Move...
8977 * valprint.c: ... here. Make non-static.
8978 * m2-valprint.c (print_function_pointer_address): Remove.
8979 * valprint.h (print_function_pointer_address): Declare.
8980
8981 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8982
8983 * NEWS: Document the fact that one can provide a condition when
8984 creating an Ada exception catchpoint.
8985
8986 2012-03-01 Tom Tromey <tromey@redhat.com>
8987
8988 * valprint.c (val_print_type_code_flags): Fix placement of
8989 trailing brace.
8990
8991 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8992
8993 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8994 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8995 environment variable before calling update-copyright.
8996
8997 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8998
8999 * gnulib/extra/update-copyright: Update to the latest from
9000 gnulib's git repository.
9001 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9002 variable to 2 instead of 1.
9003
9004 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9005
9006 * varobj.c (c_value_of_variable): Remove dead code.
9007
9008 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9009
9010 * ada-lex.p (processId): Do not modify already encoded IDs.
9011 Update function documentation.
9012
9013 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9014
9015 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9016 "name" with "struct symbol *name_sym".
9017 * ada-exp.y (write_var_or_type): Update call to
9018 ada_find_renaming_symbol.
9019 "name" with "struct symbol *name_sym". Adjust Implementation
9020 accordingly. Adjust the function documentation.
9021
9022 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9023
9024 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9025 * ada-lang.c (ada_find_any_type): Add advance declaration.
9026 Make static. Replace ada_find_any_symbol by
9027 ada_find_any_type_symbol.
9028 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9029 Improve function description. Make static.
9030 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9031 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9032
9033 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9034
9035 * ada-lang.c (struct tag_args): Delete.
9036 (ada_get_tsd_type): Function body moved up in source file.
9037 (ada_tag_name_1, ada_tag_name_2): Delete.
9038 (ada_get_tsd_from_tag): New function.
9039 (ada_tag_name_from_tsd): New function.
9040 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9041 to determine the tag name.
9042
9043 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9044
9045 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9046 declaration.
9047 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9048 function.
9049
9050 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9051
9052 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9053
9054 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9055
9056 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9057 full searches.
9058
9059 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9060
9061 * ada-lang.c (constrained_packed_array_type): If there is a
9062 parallel XA type, use it to determine the array index type.
9063
9064 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9065
9066 * ada-valprint.c (ada_val_print_1): If our value is a reference
9067 to an array descriptor, dereference it before converting it
9068 to a simple array.
9069
9070 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9071
9072 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9073 creating fixed value.
9074 (ada_value_ind, ada_coerce_ref, assign_component)
9075 (ada_evaluate_subexp): Remove call to unwrap_value before
9076 call to ada_to_fixed_value.
9077
9078 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9079
9080 * ada-lang.c (to_fixed_array_type): Set result's type name.
9081
9082 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9083
9084 * ada-lang.c (catch_ada_exception_command_split): Add new
9085 argument cond_string. Add support for condition at end of
9086 "catch exception" commands.
9087 (ada_decode_exception_location): Add new argument cond_string.
9088 Update call to catch_ada_exception_command_split.
9089 (create_ada_exception_catchpoint): Add new argument cond_string.
9090 Set the breakpoint condition if needed.
9091 (catch_ada_exception_command): Update call to
9092 ada_decode_exception_location.
9093 (ada_decode_assert_location): Add function documentation.
9094 Add support for condition at end of "catch assert" command.
9095 (catch_assert_command): Update calls to ada_decode_assert_location
9096 and create_ada_exception_catchpoint.
9097
9098 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9099
9100 Fix disp-step-syscall.exp: fork: single step over fork.
9101 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9102 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9103 comment, change parameters gdbarch and ptid to regcache. Remove
9104 parameter regcache, initialize gdbarch from regcache here.
9105 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9106 New functions.
9107 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9108 instead.
9109 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9110 'syscall'. Make the 'int' check more strict.
9111
9112 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9115 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9116 (i386_linux_intx80_sysenter_syscall_record): ... here.
9117 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9118 Use the renamed function name.
9119
9120 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9123 * breakpoint.c (until_break_command): Likewise.
9124 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9125 * infcall.c (call_function_by_hand): Likewise.
9126 * infcmd.c (finish_forward): Likewise.
9127 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9128
9129 2012-02-28 Tristan Gingold <gingold@adacore.com>
9130
9131 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9132 avoid variable assignments inside condition.
9133
9134 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9135
9136 Fix static analysis issue found by cppcheck.
9137 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9138 uninitialized BUF for size 2.
9139
9140 2012-02-27 Chris Dearman <chris@mips.com>
9141 Nathan Froyd <froydnj@codesourcery.com>
9142 Maciej W. Rozycki <macro@codesourcery.com>
9143
9144 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9145 (mips16_instruction_has_delay_slot): Likewise.
9146 (mips_segment_boundary): Likewise.
9147 (mips_adjust_breakpoint_address): Likewise.
9148 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9149
9150 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9151 Maciej W. Rozycki <macro@codesourcery.com>
9152
9153 * infrun.c (handle_inferior_event): Don't proceed through
9154 shared library trampolines if stepping at the machine
9155 instruction level.
9156
9157 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9158
9159 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9160 too.
9161
9162 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9163
9164 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9165 (sh_stub_unwind_sniffer): New functions.
9166 (sh_stub_unwind): New variable.
9167 (sh_gdbarch_init): Wire everything.
9168
9169 2012-02-27 Pedro Alves <palves@redhat.com>
9170
9171 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9172 (linux_nat_post_attach_wait): Adjust to use
9173 linux_proc_pid_is_stopped.
9174 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9175 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9176 based on pid_is_stopped from both linux-nat.c and
9177 gdbserver/linux-low.c, and renamed.
9178
9179 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9180
9181 * remote.c (remote_watchpoint_addr_within_range): New function.
9182 (init_remote_ops): Use it.
9183
9184 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9185
9186 * target.h (target_watchpoint_addr_within_range): Document macro.
9187
9188 2012-02-24 Pedro Alves <palves@redhat.com>
9189
9190 * stack.c (set_last_displayed_sal): Issue internal_error instead
9191 of warning, and issue it after clearing the last displayed sal.
9192
9193 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9194 Pedro Alves <palves@redhat.com>
9195
9196 * breakpoint.c (until_break_command): Install breakpoints after
9197 all frame manipulations.
9198
9199 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9200
9201 * remote.c (remote_supports_cond_breakpoints): New forward
9202 declaration.
9203 (remote_add_target_side_condition): New function.
9204 (remote_insert_breakpoint): Add target-side breakpoint
9205 conditional if supported.
9206 (remote_insert_hw_breakpoint): Likewise.
9207 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9208 hook.
9209
9210 * target.c (update_current_target): Inherit
9211 to_supports_evaluation_of_breakpoint_conditions.
9212 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9213
9214 * target.h (struct target_ops)
9215 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9216 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9217
9218 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9219 (condition_evaluation_both, condition_evaluation_auto,
9220 condition_evaluation_host, condition_evaluation_target,
9221 condition_evaluation_enums, condition_evaluation_mode_1,
9222 condition_evaluation_mode): New static globals.
9223 (translate_condition_evaluation_mode): New function.
9224 (breakpoint_condition_evaluation_mode): New function.
9225 (gdb_evaluates_breakpoint_condition_p): New function.
9226 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9227 (mark_breakpoint_modified): New function.
9228 (mark_breakpoint_location_modified): New function.
9229 (set_condition_evaluation_mode): New function.
9230 (show_condition_evaluation_mode): New function.
9231 (bp_location_compare_addrs): New function.
9232 (get_first_location_gte_addr): New helper function.
9233 (set_breakpoint_condition): Free condition bytecode if locations
9234 has become unconditional. Call mark_breakpoint_modified (...).
9235 (condition_command): Call update_global_location_list (1) for
9236 breakpoints.
9237 (breakpoint_xfer_memory): Use is_breakpoint (...).
9238 (is_breakpoint): New function.
9239 (parse_cond_to_aexpr): New function.
9240 (build_target_condition_list): New function.
9241 (insert_bp_location): Handle target-side conditional
9242 breakpoints and call build_target_condition_list (...).
9243 (update_inserted_breakpoint_locations): New function.
9244 (insert_breakpoint_locations): Handle target-side conditional
9245 breakpoints.
9246 (bpstat_check_breakpoint_conditions): Add comment.
9247 (bp_condition_evaluator): New function.
9248 (bp_location_condition_evaluator): New function.
9249 (print_breakpoint_location): Print information on where the condition
9250 will be evaluated.
9251 (print_one_breakpoint_location): Likewise.
9252 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9253 breakpoint location.
9254 (force_breakpoint_reinsertion): New functions.
9255 (update_global_location_list): Handle target-side breakpoint
9256 conditions.
9257 Reinsert locations that are already inserted if conditions have
9258 changed.
9259 (bp_location_dtor): Free agent expression bytecode.
9260 (disable_breakpoint): Call mark_breakpoint_modified (...).
9261 Call update_global_location_list (...) with parameter 1 for breakpoints.
9262 (disable_command): Call mark_breakpoint_location_modified (...).
9263 Call update_global_location_list (...) with parameter 1 for breakpoints.
9264 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9265 (enable_command): mark_breakpoint_location_modified (...).
9266 (_initialize_breakpoint): Update documentation and add
9267 condition-evaluation breakpoint subcommand.
9268
9269 * breakpoint.h: Include ax.h.
9270 (condition_list): New data structure.
9271 (condition_status): New enum.
9272 (bp_target_info) <cond_list>: New field.
9273 (bp_location) <condition_changed, cond_bytecode>: New fields.
9274 (is_breakpoint): New prototype.
9275
9276 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9277
9278 * remote.c (remote_state) <cond_breakpoints>: New field.
9279 (PACKET_ConditionalBreakpoints): New enum.
9280 (remote_cond_breakpoint_feature): New function.
9281 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9282 (remote_supports_cond_breakpoints): New function.
9283 (_initialize_remote): Add new packet configuration for
9284 target-side conditional breakpoints.
9285
9286 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9287
9288 * NEWS: Mention target-side conditional breakpoint support,
9289 new condition-evaluation breakpoint subcommand and remote
9290 packet extensions.
9291
9292 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9293
9294 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9295 number.
9296
9297 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9298
9299 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9300 (after_prologue): Remove.
9301
9302 2012-02-23 Tom Tromey <tromey@redhat.com>
9303
9304 * jv-valprint.c (java_val_print): Remove dead code.
9305
9306 2012-02-23 Tristan Gingold <gingold@adacore.com>
9307
9308 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9309 known_tasks_element and known_tasks_length fields.
9310 (read_known_tasks_array): Change argument type. Use pointer type
9311 and number of elements from DATA. Adjust.
9312 (read_known_tasks_list): Likewise.
9313 (get_known_tasks_addr): Remove.
9314 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9315 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9316 type and array length. Merge former get_known_tasks_addr code.
9317
9318 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9319
9320 PR backtrace/13716
9321 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9322 it after set_momentary_breakpoint.
9323
9324 2012-02-22 Sterling Augustine <saugustine@google.com>
9325
9326 PR 13689:
9327 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9328
9329 2012-02-22 Gary Benson <gbenson@redhat.com>
9330
9331 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9332 (find_slot_in_mapped_hash): Likewise.
9333
9334 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9335
9336 PR build/13638
9337 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9338 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9339 * configure: Regenerate.
9340
9341 2012-02-21 Tristan Gingold <gingold@adacore.com>
9342 Pedro Alves <palves@redhat.com>
9343
9344 * ia64-tdep.c: Do not include libunwind-ia64.h.
9345 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9346 Include libunwind-ia64.h instead of libunwind.h.
9347 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9348 for libunwind.h existence.
9349 * configure, config.in: Regenerate.
9350
9351 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9352
9353 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9354 instead of value_rtti_target_type.
9355 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9356 instead of value_rtti_target_type.
9357 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9358 value_rtti_target_type.
9359 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9360 (value_rtti_target_type): Rename to ...
9361 (value_rtti_indirect_type): ... here and make it indirect. Update
9362 function comment.
9363 * value.c (readjust_indirect_value_type): New function.
9364 (coerce_ref): Support for enclosing type setting for references
9365 with readjust_indirect_value_type.
9366 * value.h (readjust_value_type): New declaration.
9367 (value_rtti_target_type): Rename to ...
9368 (value_rtti_indirect_type): ... here.
9369
9370 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9371
9372 * MAINTAINERS (Write After Approval): Add myself to the list.
9373
9374 2012-02-20 Doug Evans <dje@google.com>
9375
9376 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9377 Rename objfile_p_char parameter to objfilep.
9378 (build_objfile_section_table): Result is now void. All callers
9379 updated.
9380 * objfiles.h (struct objfile): Tweak comments, whitespace.
9381 (build_objfile_section_table): Update.
9382
9383 * elfread.c (elf_symfile_segments): Fix warning text.
9384
9385 2012-02-20 Tom Tromey <tromey@redhat.com>
9386
9387 PR gdb/13498:
9388 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9389 particular set of file names once.
9390 (dw2_map_symbol_filenames): Likewise.
9391
9392 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9393
9394 Code cleanup.
9395 * main.c (write_files): Remove the declaration.
9396 (external_editor_command): Move the declaration ...
9397 [GDBTK] (external_editor_command): ... here. Fix the comment.
9398
9399 2012-02-20 Tom Tromey <tromey@redhat.com>
9400
9401 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9402 extraneous block.
9403
9404 2012-02-20 Tristan Gingold <gingold@adacore.com>
9405
9406 * darwin-nat.h (enum darwin_msg_state): Add comments.
9407
9408 2012-02-20 Tristan Gingold <gingold@adacore.com>
9409
9410 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9411 value.
9412
9413 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9414
9415 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9416 between function description and implementation.
9417
9418 2012-02-17 Tom Tromey <tromey@redhat.com>
9419
9420 PR python/12070:
9421 * python/py-event.c (event_object_getset): New global.
9422 (event_object_type): Reference it.
9423 * python/py-type.c (field_object_getset): New global.
9424 (field_object_type): Reference it.
9425 * python/python-internal.h (gdb_py_generic_dict): Declare.
9426 * python/py-utils.c (gdb_py_generic_dict): New function.
9427
9428 2012-02-17 Tristan Gingold <gingold@adacore.com>
9429
9430 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9431
9432 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9433
9434 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9435 TYPE_CALLING_CONVENTION annotation.
9436
9437 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9438
9439 * MAINTAINERS: Add rx to target ISA section.
9440 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9441 (ALLDEPFILES): Add rx-tdep.c.
9442
9443 2012-02-16 Tom Tromey <tromey@redhat.com>
9444
9445 * symfile.c (symbol_file_add_main_1): Use inferior's
9446 symfile_flags.
9447 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9448 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9449 inferior.
9450 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9451 inferior.
9452 (follow_exec): Use inferior's symfile_flags.
9453 * inferior.h (struct inferior) <symfile_flags>: New field.
9454
9455 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9456
9457 PR gdb/9734:
9458 * remote-sim.c (gdbsim_create_inferior): Call error() when
9459 sim_create_inferior() fails.
9460
9461 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9462
9463 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9464
9465 2012-02-16 Tom Tromey <tromey@redhat.com>
9466
9467 PR c++/13653:
9468 * thread.c (struct current_thread_cleanup) <was_removable>: New
9469 field.
9470 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9471 (make_cleanup_restore_current_thread): Initialize new field.
9472
9473 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9474
9475 * MAINTAINERS: Add rl78 to target ISA section.
9476 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9477 (ALLDEPFILES): Add rl78-tdep.c.
9478 * NEWS: Mention rl78 as a new target.
9479
9480 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9481
9482 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9483 data.
9484 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9485
9486 2012-02-15 Tom Tromey <tromey@redhat.com>
9487
9488 PR gdb/12659:
9489 * infcmd.c (registers_info): Print just the current register's
9490 name.
9491
9492 2012-02-15 Tom Tromey <tromey@redhat.com>
9493
9494 * python/py-symbol.c (sympy_value): Use _().
9495
9496 2012-02-15 Pedro Alves <palves@redhat.com>
9497
9498 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9499 output to be like native targets'.
9500 (remote_pid_to_str): Special case the null ptid.
9501
9502 2012-02-14 Stan Shebs <stan@codesourcery.com>
9503
9504 * NEWS: Mention enable count command.
9505 * breakpoint.h (struct breakpoint): New field enable_count.
9506 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9507 (enable_breakpoint): Add arg to call.
9508 (struct disp_data): New struct.
9509 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9510 (do_map_enable_once_breakpoint): Create a struct and pass it.
9511 (do_map_enable_delete_breakpoint): Ditto.
9512 (do_map_enable_count_breakpoint): New function.
9513 (enable_count_command): New function.
9514 (bpstat_stop_status): Decrement enable_count.
9515 (print_one_breakpoint_location): Report enable count.
9516 (_initialize_breakpoint): Add enable count command.
9517
9518 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9519
9520 * rl78-tdep.c (reggroups.h): Include.
9521 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9522 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9523 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9524 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9525 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9526 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9527 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9528 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9529 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9530 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9531 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9532 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9533 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9534 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9535 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9536 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9537 beginning of register list.
9538 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9539 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9540 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9541 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9542 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9543 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9544 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9545 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9546 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9547 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9548 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9549 the pseudo registers. Rearrange other pseudo registers too so
9550 that the bank registers appear at the end.
9551 (rl78_register_type): Account for the fact that the byte sized
9552 bank registers are now pseudo-registers.
9553 (rl78_register_name): Rearrange the register name array. Make
9554 initial set of raw banked registers inaccessible.
9555 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9556 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9557 case for copying bytes back and forth between raw and pseudo
9558 versions of the banked registers. Update other cases to reflect
9559 the changed names.
9560 (rl78_return_value): Update to account for changed names of
9561 raw registers.
9562 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9563 rl78_register_sim_regno().
9564
9565 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9566
9567 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9568 the name parameter being passed to find_pc_partial_function().
9569
9570 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9571
9572 * MAINTAINERS: Step down from being ia64 target maintainer.
9573
9574 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9577 compilation warning.
9578
9579 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9580
9581 Fix crash on loaded shlibs without loaded exec_bfd.
9582 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9583 (set_section_command): Replace exec_bfd by p->bfd.
9584
9585 2012-02-10 Tom Tromey <tromey@redhat.com>
9586
9587 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9588 when we have a C++ qualified name.
9589
9590 2012-02-10 Pedro Alves <palves@redhat.com>
9591
9592 * inferior.c (inferior_pid_to_str): New.
9593 (print_inferior, inferior_command): Use it.
9594
9595 2012-02-10 Pedro Alves <palves@redhat.com>
9596
9597 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9598 the test CFLAGS.
9599 * configure: Regenerate.
9600
9601 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9602
9603 * linespec.c (decode_line_internal): Fix comment correctness.
9604
9605 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9606
9607 PR gdb/12953
9608 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9609 * amd64bsd-nat.c: Add support for debug registers (adapted from
9610 i386bsd-nat.c).
9611 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9612 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9613 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9614 (amd64bsd_dr_get_control): New functions.
9615 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9616 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9617 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9618 watchpoints initialization.
9619 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9620
9621 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9622
9623 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9624 flds_bnds.fields.
9625 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9626
9627 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9628
9629 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9630
9631 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9632
9633 * language.h (symbol_name_cmp_ftype): Renames
9634 symbol_name_match_p_ftype.
9635 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9636 la_get_symbol_name_match_p.
9637 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9638 ada_get_symbol_name_match_p. Update comment.
9639 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9640 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9641 Renames symbol_name_match_p. Update field type.
9642 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9643 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9644 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9645 "la_get_symbol_name_cmp" in comments.
9646 * language.c: Likewise.
9647
9648 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9649
9650 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9651 %eflags offset.
9652 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9653 (amd64_sol2_gregset32_reg_offs): Likewise.
9654
9655 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9656
9657 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9658 of the returned BFD is allocated by GDB.
9659
9660 2012-02-07 Tom Tromey <tromey@redhat.com>
9661
9662 PR python/12027:
9663 * python/python-internal.h (frame_object_type): Declare.
9664 * python/py-symbol.c (sympy_needs_frame): New function.
9665 (sympy_value): New function.
9666 (symbol_object_getset): Add "needs_frame".
9667 (symbol_object_methods): Add "value".
9668 * python/py-frame.c (frame_object_type): No longer static.
9669
9670 2012-02-07 Tom Tromey <tromey@redhat.com>
9671
9672 PR python/13599:
9673 * python/py-symbol.c (sympy_line): New function.
9674 (symbol_object_getset): Add "line".
9675
9676 2012-02-07 Tom Tromey <tromey@redhat.com>
9677
9678 * charset.c (find_charset_names): Check 'in' against NULL.
9679
9680 2012-02-06 Doug Evans <dje@google.com>
9681
9682 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9683 and fields.name members from char * to const char *. All uses updated.
9684 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9685 from char * to const char *. All uses updated.
9686 (type_name_no_tag): Update.
9687 (lookup_unsigned_typename, lookup_signed_typename): Update.
9688 * gdbtypes.c (type_name_no_tag): Change result type
9689 from char * to const char *. All callers updated.
9690 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9691 name parameter from char * to const char *.
9692 * symtab.h (struct cplus_specific): Change type of demangled_name
9693 member from char * to const char *. All uses updated.
9694 (struct general_symbol_info): Change type of name and
9695 mangled_lang.demangled_name members from char * to const char *.
9696 All uses updated.
9697 (symbol_get_demangled_name, symbol_natural_name): Update.
9698 (symbol_demangled_name, symbol_search_name): Update.
9699 * symtab.c (symbol_get_demangled_name): Change result type
9700 from char * to const char *. All callers updated.
9701 (symbol_natural_name, symbol_demangled_name): Ditto.
9702 (symbol_search_name): Ditto.
9703 (completion_list_add_name): Change type of symname,sym_text,
9704 text,word parameters from char * to const char *.
9705 (completion_list_objc_symbol): Change type of sym_text,
9706 text,word parameters from char * to const char *.
9707 * ada-lang.c (find_struct_field): Change type of name parameter
9708 from char * to const char *.
9709 (encoded_ordered_before): Similarly for N0,N1 parameters.
9710 (old_renaming_is_invisible): Similarly for function_name parameter.
9711 (ada_type_name): Change result type from char * to const char *.
9712 All callers updated.
9713 * ada-lang.h (ada_type_name): Update.
9714 * buildsym.c (hashname): Change type of name parameter
9715 from char * to const char *.
9716 * buildsym.h (hashname): Update.
9717 * dbxread.c (end_psymtab): Change type of include_list parameter
9718 from char ** to const char **.
9719 * dwarf2read.c (determine_prefix): Change result type
9720 from char * to const char *. All callers updated.
9721 * f-lang.c (find_common_for_function): Change type of name, funcname
9722 parameters from char * to const char *.
9723 * f-lang.c (find_common_for_function): Update.
9724 * f-valprint.c (list_all_visible_commons): Change type of funcname
9725 parameters from char * to const char *.
9726 * gdbarch.sh (static_transform_name): Change type of name parameter
9727 and result from char * to const char *.
9728 * gdbarch.c: Regenerate.
9729 * gdbarch.h: Regenerate.
9730 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9731 of name parameter from char * to const char *.
9732 * jv-lang.c (java_primitive_type_from_name): Ditto.
9733 (java_demangled_signature_length): Similarly for signature parameter.
9734 (java_demangled_signature_copy): Ditto.
9735 (java_demangle_type_signature): Ditto.
9736 * jv-lang.h (java_primitive_type_from_name): Update.
9737 (java_demangle_type_signature): Update.
9738 * objc-lang.c (specialcmp): Change type of a,b parameters
9739 from char * to const char *.
9740 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9741 from char * to const char *. All callers updated.
9742 * p-lang.h (is_pascal_string_type): Update.
9743 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9744 of name parameter from char * to const char *.
9745 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9746 * utils.c (fprintf_symbol_filtered): Ditto.
9747 * defs.h (fprintf_symbol_filtered): Update.
9748 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9749 * stabsread.h (end_psymtab): Update.
9750 * stack.c (find_frame_funname): Change type of funname parameter
9751 from char ** to const char **.
9752 * stack.h (find_frame_funname): Update.
9753 * typeprint.c (type_print): Change type of varstring parameter
9754 from char * to const char *.
9755 * value.h (type_print): Update.
9756 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9757 from char * to const char *. All callers updated.
9758 (xcoff_end_psymtab): Change type of include_list parameter
9759 from char ** to const char **. All callers updated.
9760 (swap_sym): Similarly for name parameter. All callers updated.
9761 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9762 Use xstrdup.
9763 (process_coff_symbol): Use xstrdup.
9764 * stabsread.c (stabs_method_name_from_physname): Renamed from
9765 update_method_name_from_physname. Change result type from void
9766 to char *. All callers updated.
9767 (read_member_functions): In has_destructor case, store name in objfile
9768 obstack instead of malloc space. In !has_stub case, fix mem leak.
9769
9770 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9771
9772 * configure: Rebuild.
9773 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9774 LDFLAGS.
9775
9776 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9777
9778 * configure.tgt (rl78-*-elf): New target.
9779 * rl78-tdep.c: New file.
9780
9781 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9782
9783 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9784 and continue the loop. Add QUIT statement.
9785
9786 2012-02-03 Tom Tromey <tromey@redhat.com>
9787
9788 PR gdb/13596:
9789 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9790 bfd_lookup_symbol_from_symtab.
9791 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9792 gdb_bfd_lookup_symbol_from_symtab.
9793
9794 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9795
9796 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9797 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9798 symbol. Add assertion that sym2 is never NULL.
9799
9800 2012-02-02 Doug Evans <dje@google.com>
9801
9802 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9803 "name" parameter to const char ** from char **. All callers updated.
9804 (find_pc_partial_function): Ditto.
9805 (cache_pc_function_name): Change type to const char * from char *.
9806 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9807 (find_pc_partial_function): Update.
9808 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9809 type of "name" parameter to const char * from char *.
9810 All uses updated.
9811 * arch-utils.c (generic_in_solib_return_trampoline): Change
9812 type of "name" parameter to const char * from char *.
9813 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9814 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9815 type of "name" parameter to const char * from char *.
9816 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9817 * gdbarch.c: Regenerate.
9818 * gdbarch.h: Regenerate.
9819 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9820 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9821 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9822 type of "name" parameter to const char * from char *.
9823 * skip.c (skip_function_pc): Ditto.
9824 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9825 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9826 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9827 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9828 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9829 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9830 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9831 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9832 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9833
9834 2012-02-02 Pedro Alves <palves@redhat.com>
9835
9836 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9837 the current inferior has no execution. Make sure the current
9838 remote process matches gdb's current inferior.
9839
9840 2012-02-02 Tom Tromey <tromey@redhat.com>
9841
9842 PR gdb/13405:
9843 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9844 read-only memory.
9845
9846 2012-02-02 Tom Tromey <tromey@redhat.com>
9847
9848 PR gdb/9307:
9849 * symtab.c (lookup_language_this): Set block_found.
9850
9851 2012-02-01 Tom Tromey <tromey@redhat.com>
9852
9853 PR gdb/13431:
9854 * jit.c (struct jit_inferior_data): Rewrite.
9855 (struct jit_objfile_data): New.
9856 (get_jit_objfile_data): New function.
9857 (add_objfile_entry): Update.
9858 (jit_read_descriptor): Return int. Replace descriptor_addr
9859 argument with inf_data. Update. Don't call error.
9860 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9861 descriptor here.
9862 (jit_inferior_init): Don't look up descriptor. Don't call error.
9863 (jit_reset_inferior_data_and_breakpoints)
9864 (jit_inferior_created_observer): Remove.
9865 (jit_inferior_exit_hook): Update.
9866 (jit_executable_changed_observer): Remove.
9867 (jit_event_handler): Update.
9868 (free_objfile_data): Reset inferior data if needed.
9869 (_initialize_jit): Update.
9870
9871 2012-02-01 Tom Tromey <tromey@redhat.com>
9872
9873 * jit.c (bfd_open_from_target_memory): Move higher in file.
9874
9875 2012-02-01 Tristan Gingold <gingold@adacore.com>
9876
9877 * libunwind-frame.c (libunwind_load): Display message if dlopen
9878 failed.
9879
9880 2012-02-01 Gary Benson <gbenson@redhat.com>
9881
9882 * symtab.h (symbol_found_callback_ftype): New typedef.
9883 (iterate_over_symbols): Use the above.
9884 * symtab.c (iterate_over_symbols): Likewise.
9885 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9886 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9887 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9888 (iterate_name_matcher): Document return values.
9889 (collect_one_symbol): Likewise.
9890 (collect_function_symbols): Likewise.
9891 (collect_symbols): Likewise.
9892
9893 2012-02-01 Tom Tromey <tromey@redhat.com>
9894
9895 * ada-lang.c (resolve_subexp): Update.
9896 (ada_lookup_symbol_list): Add 'full_search' argument.
9897 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9898 ada_lookup_symbol_list.
9899 (ada_lookup_encoded_symbol): Update.
9900 (get_var_value): Update.
9901 * ada-exp.y (block_lookup): Update.
9902 (write_var_or_type): Update.
9903 (write_name_assoc): Update.
9904 * ada-lang.h (ada_lookup_symbol_list): Update.
9905
9906 2012-01-31 Tom Tromey <tromey@redhat.com>
9907
9908 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9909 comment.
9910
9911 2012-01-31 Doug Evans <dje@google.com>
9912
9913 * symtab.h: Remove outdated comment.
9914 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9915
9916 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9917
9918 Fix build error in Darwin port.
9919 * i386-darwin-nat.c: Include i386-nat.h.
9920
9921 2012-01-30 Tom Tromey <tromey@redhat.com>
9922
9923 PR breakpoints/13568:
9924 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9925 argument. Check for recursive includes.
9926 (dwarf_decode_macros): Create an include hash.
9927
9928 2012-01-30 Michael Eager <eager@eagercon.com>
9929
9930 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9931 * ppc-linux-tdep.c: Include glibc-tdep.h.
9932 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9933 (powerpc_linux_in_plt_stub): New function.
9934 (powerpc_linux_in_dynsym_resolve_code): New function.
9935 (ppc_skip_trampoline_code): New function.
9936 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9937 Use glibc_skip_solib_resolver.
9938
9939 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9940
9941 Code cleanup: Make 1440 bytes of data segment read-only.
9942 * arch-utils.c (endian_enum): Make it const char *const [].
9943 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9944 Likewise.
9945 * breakpoint.c (always_inserted_enums): Likewise.
9946 * cli/cli-cmds.c (script_ext_enums): Likewise.
9947 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9948 enumlist parameter const char *const *.
9949 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9950 const char *const *.
9951 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9952 parameter const char *const *.
9953 * cris-tdep.c (cris_modes): Make it const char *const [].
9954 * filesystem.c (target_file_system_kinds): Likewise.
9955 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9956 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9957 (can_use_displaced_stepping_enum, scheduler_enums)
9958 (exec_direction_names): Likewise.
9959 * language.c (_initialize_language): Make the type_or_range_names and
9960 case_sensitive_names variables const char *const [].
9961 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9962 * python/python.c (python_excp_enums): Likewise.
9963 * remote.c (interrupt_sequence_modes): Likewise.
9964 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9965 * serial.c (logbase_enums): Likewise.
9966 * sh-tdep.c (sh_cc_enum): Likewise.
9967 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9968 Likewise.
9969 * symtab.c (multiple_symbols_modes): Likewise.
9970 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9971 Likewise.
9972 * utils.c (internal_problem_modes): Likewise.
9973
9974 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9977 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9978 result.
9979
9980 2012-01-27 Doug Evans <dje@google.com>
9981
9982 * configure.ac (with_python): Fix absolute path handling for win32.
9983 * configure: Regenerate.
9984
9985 2012-01-26 Doug Evans <dje@google.com>
9986
9987 * symtab.c: Whitespace cleanup, no code changes.
9988
9989 * symtab.c (lookup_symbol_in_language): Improve comment.
9990 (lookup_symbol_aux): Fix comment.
9991
9992 * psymtab.c (add_psymbol_to_list): Result is now "void".
9993 * psympriv.h (add_psymbol_to_list): Update.
9994
9995 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9996
9997 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9998
9999 Do not open script filenames twice.
10000 * cli/cli-cmds.c (source_script_from_stream): Pass to
10001 source_python_script also STREAM.
10002 * python/py-auto-load.c (source_section_scripts): Pass to
10003 source_python_script_for_objfile also STREAM.
10004 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10005 also INPUT.
10006 * python/python-internal.h (source_python_script_for_objfile): New
10007 parameter file, rename parameter file to filename.
10008 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10009 instead if !_WIN32. Update the function comment.
10010 (source_python_script, source_python_script_for_objfile)
10011 (source_python_script): New parameter file, rename parameter file to
10012 filename. Pass FILENAME to python_run_simple_file.
10013 * python/python.h (source_python_script): New parameter file, rename
10014 parameter file to filename.
10015
10016 2012-01-26 Pedro Alves <palves@redhat.com>
10017
10018 * corelow.c (core_has_fake_pid): Delete.
10019 (core_close): Delete references to `core_has_fake_pid'.
10020 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10021 (core_open): Delete references to `core_has_fake_pid'.
10022 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10023 the removed global.
10024
10025 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10026
10027 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10028 Remove language parameter from name_matcher. Adjust the comment.
10029 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10030 Remove language parameter.
10031 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10032 * linespec.c (iterate_name_matcher): Likewise.
10033 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10034 name_matcher. Adjust call accordingly.
10035 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10036 (maintenance_check_symtabs): Adjust type of parameter "fun".
10037 * psymtab.h (maintenance_check_symtabs): Likewise.
10038
10039 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10040
10041 * language.h (symbol_name_match_p_ftype): New typedef.
10042 (struct language_defn): Replace field la_symbol_name_compare
10043 by la_get_symbol_name_match_p.
10044 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10045 (ada_language_defn): Use it.
10046 * linespec.c (struct symbol_matcher_data): New type.
10047 (iterate_name_matcher): Rewrite.
10048 (iterate_over_all_matching_symtabs): Pass a pointer to
10049 a symbol_matcher_data struct to expand_symtabs_matching
10050 instead of just the lookup name.
10051 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10052 opencl-lang.c, p-lang.c, language.c: Delete field
10053 la_symbol_name_compare, and replace by NULL for new field
10054 la_get_symbol_name_match_p.
10055 * symfile.h (struct quick_symbol_functions): Update comment.
10056
10057 2012-01-25 Tom Tromey <tromey@redhat.com>
10058
10059 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10060 dereferencing.
10061
10062 2012-01-24 Tom Tromey <tromey@redhat.com>
10063
10064 PR symtab/12406:
10065 * solib.c (update_solib_list): Update the program space's
10066 added_solibs and deleted_solibs fields.
10067 * progspace.h (struct program_space) <added_solibs,
10068 deleted_solibs>: New fields.
10069 (clear_program_space_solib_cache): Declare.
10070 * progspace.c (release_program_space): Call
10071 clear_program_space_solib_cache.
10072 (clear_program_space_solib_cache): New function.
10073 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10074 bpstat_stop_status. Use handle_solib_event.
10075 * breakpoint.c: Include gdb_regex.h.
10076 (print_solib_event): New function.
10077 (bpstat_print): Use print_solib_event.
10078 (bpstat_stop_status): Add special case for bp_shlib_event.
10079 (handle_solib_event): New function.
10080 (bpstat_what): Use handle_solib_event.
10081 (struct solib_catchpoint): New.
10082 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10083 (breakpoint_hit_catch_solib, check_status_catch_solib)
10084 (print_it_catch_solib, print_one_catch_solib)
10085 (print_mention_catch_solib, print_recreate_catch_solib): New
10086 functions.
10087 (catch_solib_breakpoint_ops): New global.
10088 (catch_load_or_unload, catch_load_command_1)
10089 (catch_unload_command_1): New functions.
10090 (internal_bkpt_check_status): Add special case for
10091 bp_shlib_event.
10092 (internal_bkpt_print_it): Use print_solib_event.
10093 (initialize_breakpoint_ops): Initialize
10094 catch_solib_breakpoint_ops.
10095 (_initialize_breakpoint): Register "catch load" and "catch
10096 unload".
10097 * breakpoint.h (handle_solib_event): Declare.
10098 * NEWS: Add entry for "catch load" and "catch unload".
10099
10100 2012-01-24 Tom Tromey <tromey@redhat.com>
10101
10102 * ada-lang.c: Include gdb_vecs.h.
10103 * charset.c: Include gdb_vecs.h.
10104 * tracepoint.h: Include gdb_vecs.h.
10105 * gdb_vecs.h: New file.
10106
10107 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10108
10109 * breakpoint.c (breakpoint_hit_catch_fork)
10110 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10111 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10112 * infrun.c (inferior_has_forked, inferior_has_vforked)
10113 (inferior_has_execd, inferior_has_called_syscall): Delete.
10114 (handle_syscall_event): Get syscall_number from the execution
10115 control state's wait status.
10116 (wait_for_inferior): Don't clear syscall_number.
10117
10118 2012-01-24 Pedro Alves <palves@redhat.com>
10119
10120 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10121 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10122 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10123 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10124 `ws' parameter.
10125 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10126 false for events other than TARGET_SIGNAL_TRAP.
10127 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10128 Add `ws' parameter.
10129 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10130 events other than TARGET_SIGNAL_TRAP.
10131 (tracepoint_breakpoint_hit): Add `ws' parameter.
10132 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10133 parameter.
10134 (bpstat_stop_status): Same.
10135 (pc_at_non_inline_function): Same.
10136 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10137 to pass the current event's waitstatus to bpstat_stop_status
10138 and pc_at_non_inline_function.
10139
10140 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 Code cleanup.
10143 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10144 Update the function comment for it.
10145 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10146 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10147 for STREAM.
10148
10149 2012-01-24 Pedro Alves <palves@redhat.com>
10150
10151 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10152 outside `bs->stop' block.
10153 (bpstat_what): Rework bp_shlib_event handling.
10154 (internal_bkpt_check_status): If the breakpoint is a
10155 bp_shlib_event, then set bs->stop and bs->print if
10156 stop_on_solib_events is set.
10157
10158 2012-01-24 Gary Benson <gbenson@redhat.com>
10159
10160 Delete #if 0'd out code.
10161 * stack.c (print_frame_label_vars): Remove.
10162 (catch_info): Likewise.
10163 (_initialize_stack): Remove "info catch" command.
10164 * NEWS: Mention the above.
10165
10166 2012-01-24 Pedro Alves <palves@redhat.com>
10167
10168 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10169 it.
10170 (remote_notice_new_inferior): If the remote end doesn't support
10171 the multiprocess extensions, then the PID is fake.
10172 (add_current_inferior_and_thread): New.
10173 (remote_start_remote): Use it.
10174 (extended_remote_attach_1): Adjust.
10175 (extended_remote_create_inferior_1): Use
10176 add_current_inferior_and_thread.
10177
10178 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 Fix watchpoints to be specific for each inferior.
10181 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10182 current_program_space.
10183 * i386-nat.c (i386_inferior_data_cleanup): New.
10184 (i386_inferior_data_get): Replace variable inf_data_local by an
10185 inferior_data call.
10186 (i386_use_watchpoints): Initialize i386_inferior_data.
10187 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10188 specific iterate_over_lwps.
10189
10190 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10191
10192 Fix watchpoints across inferior fork.
10193 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10194 comment for linux_nat_iterate_watchpoint_lwps.
10195 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10196 linux_nat_iterate_watchpoint_lwps.
10197 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10198 * i386-linux-nat.c (update_debug_registers_callback): Update the
10199 comment for linux_nat_iterate_watchpoint_lwps.
10200 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10201 linux_nat_iterate_watchpoint_lwps.
10202 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10203 * i386-nat.c: Include inferior.h.
10204 (dr_mirror): Remove.
10205 (i386_inferior_data, struct i386_inferior_data)
10206 (i386_inferior_data_get): New.
10207 (i386_debug_reg_state): Use i386_inferior_data_get.
10208 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10209 (i386_insert_watchpoint, i386_remove_watchpoint)
10210 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10211 (i386_remove_hw_breakpoint): New variable state, use
10212 i386_debug_reg_state instead of DR_MIRROR.
10213 * linux-nat.c (delete_lwp): New declaration.
10214 (num_lwps): Move here from downwards.
10215 (delete_lwp_cleanup): New.
10216 (linux_child_follow_fork): Create new child_lp, call
10217 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10218 PTRACE_DETACH.
10219 (num_lwps): Move upwards.
10220 (linux_nat_iterate_watchpoint_lwps): New.
10221 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10222 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10223
10224 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10225
10226 GDB 7.4 released.
10227
10228 2012-01-23 Pedro Alves <palves@redhat.com>
10229
10230 * top.c (caution): Rename to ...
10231 (confirm): ... this.
10232 (show_caution): Rename to ...
10233 (show_confirm): ... this.
10234 (quit_cover): Adjust.
10235 (init_main): Adjust.
10236 * top.h (caution): Rename to ...
10237 (confirm): ... this.
10238 * utils.c (internal_vproblem, defaulted_query): Adjust.
10239
10240 2012-01-23 Pedro Alves <palves@redhat.com>
10241
10242 * top.c (caution): Update comment.
10243 (execute_command): Don't consider the current value of `caution'.
10244
10245 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10246
10247 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10248
10249 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10250
10251 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10252 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10253 * target.c (target_fileio_pwrite): Remove buffer address from
10254 debug output.
10255 (target_fileio_pread): Likewise.
10256
10257 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10258
10259 * NEWS: Document remote "info proc" and "generate-core-file".
10260
10261 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10262
10263 * gdbarch.sh (find_memory_regions): New callback.
10264 * gdbarch.c, gdbarch.h: Regenerate.
10265
10266 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10267 callback before falling back to target method.
10268
10269 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10270 (linux_target_install_ops): No longer install it.
10271
10272 * linux-tdep.c (linux_find_memory_regions): New function.
10273 (linux_init_abi): Install it.
10274
10275 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10276
10277 * gdbarch.sh (make_corefile_notes): New architecture callback.
10278 * gdbarch.c: Regenerate.
10279 * gdbarch.h: Likewise.
10280
10281 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10282 before target_make_corefile_notes. If NULL is returned, the
10283 target does not support core file generation.
10284
10285 * linux-nat.c: Include "linux-tdep.h".
10286 (find_signalled_thread, find_stop_signal): Remove.
10287 (linux_nat_do_thread_registers): Likewise.
10288 (struct linux_nat_corefile_thread_data): Likewise.
10289 (linux_nat_corefile_thread_callback): Likewise.
10290 (iterate_over_spus): Likewise.
10291 (struct linux_spu_corefile_data): Likewise.
10292 (linux_spu_corefile_callback): Likewise.
10293 (linux_spu_make_corefile_notes): Likewise.
10294 (linux_nat_collect_thread_registers): New function.
10295 (linux_nat_make_corefile_notes): Replace contents by call to
10296 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10297 as native-only callback.
10298
10299 * linux-tdep.h: Include "bfd.h".
10300 (struct regcache): Add forward declaration.
10301 (linux_collect_thread_registers_ftype): New typedef.
10302 (linux_make_corefile_notes): Add prototype.
10303 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10304 "regset.h", and "elf-bfd.h".
10305 (find_signalled_thread, find_stop_signal): New functions.
10306 (linux_spu_make_corefile_notes): Likewise.
10307 (linux_collect_thread_registers): Likewise.
10308 (struct linux_corefile_thread_data): New data structure.
10309 (linux_corefile_thread_callback): New funcion.
10310 (linux_make_corefile_notes): Likewise.
10311 (linux_make_corefile_notes_1): Likewise.
10312 (linux_init_abi): Install it.
10313
10314 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10315
10316 * gdbarch.sh (info_proc): New callback.
10317 * gdbarch.c, gdbarch.h: Regenerate.
10318
10319 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10320 before falling back to the target info_proc callback.
10321
10322 * linux-nat.c: Do not include "cli/cli-utils.h".
10323 (linux_nat_info_proc): Remove.
10324 (linux_target_install_ops): No longer install it.
10325
10326 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10327 (read_mapping): New function.
10328 (linux_info_proc): Likewise.
10329 (linux_init_abi): Install it.
10330
10331 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10332
10333 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10334 * infcmd.c: (info_proc_cmd_1): New function.
10335 (info_proc_cmd): New function, moved here from equivalent routine
10336 orignally in linux-nat.c.
10337 (info_proc_cmd_mappings): Likewise.
10338 (info_proc_cmd_stat): Likewise.
10339 (info_proc_cmd_status): Likewise.
10340 (info_proc_cmd_cwd): Likewise.
10341 (info_proc_cmd_cmdline): Likewise.
10342 (info_proc_cmd_exe): Likewise.
10343 (info_proc_cmd_all): Likewise.
10344 (_initialize_infcmd): Install "info proc" command and subcommands.
10345
10346 * target.h (struct target_ops): Add to_info_proc.
10347 (target_info_proc): Add prototype.
10348 * target.c (target_info_proc): New function.
10349
10350 * procfs.c (procfs_info_proc): Add prototype.
10351 (info_proc_cmd): Rename into ...
10352 (procfs_info_proc): ... this. Update argument types as appropriate
10353 for a to_info_proc implementation. Handle "what" argument.
10354 (procfs_target): Install procfs_info_proc.
10355 (_initialize_procfs): No longer install "info proc" command.
10356
10357 * linux-nat.c: (enum info_proc_what): Remove.
10358 (linux_nat_info_proc_cmd_1): Rename into ...
10359 (linux_nat_info_proc): ... this. Update argument types as appropriate
10360 for a to_info_proc implementation.
10361 (linux_nat_info_proc_cmd): Remove.
10362 (linux_nat_info_proc_cmd_mappings): Likewise.
10363 (linux_nat_info_proc_cmd_stat): Likewise.
10364 (linux_nat_info_proc_cmd_status): Likewise.
10365 (linux_nat_info_proc_cmd_cwd): Likewise.
10366 (linux_nat_info_proc_cmd_cmdline): Likewise.
10367 (linux_nat_info_proc_cmd_exe): Likewise.
10368 (linux_nat_info_proc_cmd_all): Likewise.
10369 (linux_target_install_ops): Install linux_nat_info_proc.
10370 (_initialize_linux_nat): No longer install "info proc" command
10371 and subcommands.
10372
10373 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10374
10375 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10376 * config.in, configure: Regenerate.
10377
10378 * target.h (struct target_ops): Add to_fileio_readlink.
10379 (target_fileio_readlink): Add prototype.
10380 * target.c (target_fileio_readlink): New function.
10381
10382 * inf-child.c: Conditionally include <sys/param.h>.
10383 (inf_child_fileio_readlink): New function.
10384 (inf_child_target): Install it.
10385
10386 * remote.c (PACKET_vFile_readlink): New enum value.
10387 (remote_hostio_readlink): New function.
10388 (init_remote_ops): Install it.
10389 (_initialize_remote): Handle vFile:readlink packet type.
10390
10391 2012-01-20 Pedro Alves <palves@redhat.com>
10392 Ulrich Weigand <ulrich.weigand@linaro.org>
10393
10394 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10395 * config.in, configure: Regenerate.
10396
10397 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10398 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10399 (target_fileio_open): Add prototype.
10400 (target_fileio_pwrite): Likewise.
10401 (target_fileio_pread): Likewise.
10402 (target_fileio_close): Likewise.
10403 (target_fileio_unlink): Likewise.
10404 (target_fileio_read_alloc): Likewise.
10405 (target_fileio_read_stralloc): Likewise.
10406
10407 * target.c: Include "gdb/fileio.h".
10408 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10409 (default_fileio_target): New function.
10410 (target_fileio_open): Likewise.
10411 (target_fileio_pwrite): Likewise.
10412 (target_fileio_pread): Likewise.
10413 (target_fileio_close): Likewise.
10414 (target_fileio_unlink): Likewise.
10415 (target_fileio_close_cleanup): Likewise.
10416 (target_fileio_read_alloc_1): Likewise.
10417 (target_fileio_read_alloc): Likewise.
10418 (target_fileio_read_stralloc): Likewise.
10419
10420 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10421 <fcntl.h>, and <unistd.h>.
10422 (inf_child_fileio_open_flags_to_host): New function.
10423 (inf_child_errno_to_fileio_error): Likewise.
10424 (inf_child_fileio_open): Likewise.
10425 (inf_child_fileio_pwrite): Likewise.
10426 (inf_child_fileio_pread): Likewise.
10427 (inf_child_fileio_close): Likewise.
10428 (inf_child_fileio_unlink): Likewise.
10429 (inf_child_target): Install to_fileio routines.
10430
10431 * remote.c (init_remote_ops): Install to_fileio routines.
10432
10433 2012-01-20 Pedro Alves <palves@redhat.com>
10434 Ulrich Weigand <ulrich.weigand@linaro.org>
10435
10436 * remote.c (remote_multi_process_p): Only check for multi-process
10437 protocol feature, do not check for extended protocol.
10438 (remote_supports_multi_process): Check for extended protocol here.
10439 (set_general_process): Likewise.
10440 (extended_remote_kill): Likewise.
10441 (remote_pid_to_str): Likewise.
10442 (remote_query_supported): Always query multiprocess mode.
10443
10444 2012-01-20 Pedro Alves <palves@redhat.com>
10445 Ulrich Weigand <ulrich.weigand@linaro.org>
10446
10447 * inferior.h (struct inferior): Add fake_pid_p.
10448 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10449 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10450 magic_null_ptid since the remote side doesn't provide a real PID.
10451
10452 2012-01-19 Tom Tromey <tromey@redhat.com>
10453
10454 * NEWS: Combine the two Python sections.
10455
10456 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10457
10458 * target.h (target_close): Update comment on the target's unpush state.
10459
10460 2012-01-19 Pedro Alves <palves@redhat.com>
10461
10462 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10463 linux_nat_async directly instead of going through the target
10464 vector.
10465 * target.c (unpush_target): Close target after unpushing it, not
10466 before.
10467
10468 2012-01-19 Gary Benson <gbenson@redhat.com>
10469
10470 * mdebugread.c (sort_blocks): Replace integer constants with ones
10471 derived from FIRST_LOCAL_BLOCK.
10472
10473 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10474 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 PR gdb/9538
10477 * symfile.c (find_separate_debug_file): New function.
10478 (terminate_after_last_dir_separator): Likewise.
10479 (find_separate_debug_file_by_debuglink): Also try realpath.
10480 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10481 * configure: Regenerate.
10482 * config.in: Regenerate.
10483
10484 2012-01-18 Doug Evans <dje@google.com>
10485
10486 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10487 (main.o): Remove rule.
10488 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10489 (--with-sysroot): Rewrite.
10490 * configure: Regenerate.
10491 * config.in: Regenerate.
10492
10493 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10494
10495 * parse.c (initialize_expout): New function.
10496 (reallocate_expout): Likewise.
10497 (parse_exp_in_context): Use `initialize_expout' and
10498 `reallocate_expout' when appropriate.
10499
10500 2012-01-18 Pedro Alves <palves@redhat.com>
10501
10502 * record.c (struct record_breakpoint, record_breakpoint_p)
10503 (record_breakpoints): New.
10504 (record_insert_breakpoint, record_remove_breakpoint): Manage
10505 record breakpoints list. Only remove breakpoints from the
10506 inferior if they had been inserted there in the first place.
10507
10508 2012-01-17 Doug Evans <dje@google.com>
10509
10510 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10511 if we know we don't have a file name to look for.
10512
10513 2012-01-17 Pedro Alves <palves@redhat.com>
10514
10515 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10516 the frame's stop reason is UNWIND_UNAVAILABLE.
10517
10518 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10519
10520 Fix compilation error.
10521 * m2-exp.y (yyerror): Use ANSI C prototype.
10522
10523 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10524
10525 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10526 (growbuf_by_size): Likewise.
10527 (yyerror): Likewise.
10528 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10529 (modblock): Remove variable (was #if 0'ed).
10530 (parse_number): Convert prototype from K&R to ANSI C.
10531 (yyerror): Likewise.
10532 * objc-exp.y (parse_number): Likewise.
10533 (yyerror): Likewise.
10534 (yylex): Remove #if 0'ed code.
10535 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10536 (yyerror): Likewise.
10537
10538 2012-01-16 Tom Tromey <tromey@redhat.com>
10539
10540 * NEWS: Add item.
10541 * symtab.h (compare_filenames_for_search): Declare.
10542 * symtab.c (compare_filenames_for_search): New function.
10543 (iterate_over_some_symtabs): Use it.
10544 * symfile.h (struct quick_symbol_functions)
10545 <map_symtabs_matching_filename>: Change spec.
10546 * psymtab.c (partial_map_symtabs_matching_filename): Use
10547 compare_filenames_for_search. Update for new spec.
10548 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10549 compare_filenames_for_search. Update for new spec.
10550 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10551
10552 2012-01-16 Tom Tromey <tromey@redhat.com>
10553
10554 PR python/13281:
10555 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10556 (struct main_type) <flag_flag_enum>: New field.
10557 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10558 * NEWS: Add entries.
10559 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10560 enums.
10561 * python/lib/gdb/printing.py (_EnumInstance): New class.
10562 (FlagEnumerationPrinter): Likewise.
10563
10564 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10565
10566 * breakpoint.c (create_sals_from_address_default): New function.
10567 (create_breakpoints_sal_default): Likewise.
10568 (decode_linespec_default): Likewise.
10569 (is_marker_spec): Removed.
10570 (strace_marker_p): New function.
10571 (init_breakpoint_sal): Using `strace_marker_p' instead of
10572 `is_marker_spec'.
10573 (create_breakpoint): Call method `create_sals_from_address' from
10574 breakpoint_ops, replacing code that created SALs conditionally
10575 on the type of the breakpoint. Call method `create_breakpoints_sal',
10576 replacing code that created breakpoints conditionally on the type
10577 wanted.
10578 (base_breakpoint_create_sals_from_address): New function.
10579 (base_breakpoint_create_breakpoints_sal): Likewise.
10580 (base_breakpoint_decode_linespec): Likewise.
10581 (base_breakpoint_ops): Add methods
10582 `base_breakpoint_create_sals_from_address',
10583 `base_breakpoint_create_breakpoints_sal' and
10584 `base_breakpoint_decode_linespec'.
10585 (bkpt_create_sals_from_address): New function.
10586 (bkpt_create_breakpoints_sal): Likewise.
10587 (bkpt_decode_linespec): Likewise.
10588 (tracepoint_create_sals_from_address): Likewise.
10589 (tracepoint_create_breakpoints_sal): Likewise.
10590 (tracepoint_decode_linespec): Likewise.
10591 (strace_marker_create_sals_from_address): Likewise.
10592 (strace_marker_create_breakpoints_sal): Likewise.
10593 (strace_marker_decode_linespec): Likewise.
10594 (strace_marker_breakpoint_ops): New variable.
10595 (addr_string_to_sals): Remove `marker_spec'. Call method
10596 `decode_linespec' from breakpoint_ops, replacing code that decoded
10597 an address string into a SAL. Use `strace_marker_p' instead of
10598 `marker_spec'.
10599 (strace_command): Decide whether we are dealing with a static
10600 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10601 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10602 * breakpoint.h (linespec_result, linespec_sals): New forward
10603 declarations.
10604 (breakpoint_ops) <create_sals_from_address>,
10605 <create_breakpoints_sal>, <decode_linespec>: New methods.
10606
10607 2012-01-14 Doug Evans <dje@google.com>
10608
10609 * NEWS: Update text for "maint set python print-stack".
10610 It is deprecated in gdb 7.4 and deleted in 7.5.
10611
10612 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10613
10614 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10615 including curses.h.
10616
10617 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * configure: Regenerate.
10620 * config.in: Regenerate.
10621
10622 2012-01-12 Keith Seitz <keiths@redhat.com>
10623
10624 PR mi/10586
10625 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10626 (ANONYMOUS_UNION_NAME): Define.
10627 (is_path_expr_parent): New function.
10628 (get_path_expr_parent): New function.
10629 (is_anonymous_child): New function.
10630 (create_child_with_value): If the child is anonymous and without
10631 a name, assign an object name to it.
10632 (c_describe_child): Use get_path_expr_parent to determine
10633 the parent expression.
10634 If there field represents an anonymous struct or union and
10635 has no name, set an appropriate display name and expression.
10636 (cplus_describe_child): Likewise.
10637
10638 2012-01-12 Pedro Alves <palves@redhat.com>
10639
10640 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10641 available when %ebp is found to be zero (outermost).
10642
10643 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10644
10645 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10646 an internal gdb_static_assert.
10647 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10648
10649 2012-01-11 Tom Tromey <tromey@redhat.com>
10650
10651 PR gdb/9598:
10652 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10653 catch" and "catch throw".
10654
10655 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10656
10657 * blockframe.c (block_innermost_frame): Start search from selected
10658 frame, if present, or otherwise the current frame.
10659
10660 * c-exp.y (variable): Update innermost_block for
10661 'block COLONCOLON NAME' clause.
10662 * m2-exp.y (variable): Ditto.
10663 * objc-exp.y (variable): Ditto.
10664
10665 2012-01-10 Tom Tromey <tromey@redhat.com>
10666
10667 PR python/13199:
10668 * python/python.c (finish_python_initialization): Set sys.argv.
10669
10670 2012-01-10 Doug Evans <dje@google.com>
10671
10672 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10673 "want_line_info". All callers updated.
10674 (dwarf_decode_lines_1): New function.
10675 (handle_DW_AT_stmt_list): Add function comment.
10676 New arg "want_line_info". All callers updated.
10677 (read_file_scope,read_type_unit_scope): Move comment from
10678 handle_DW_AT_stmt_list to here.
10679
10680 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10681
10682 Fix regression after libiberty/ update for GCC PR 6057 and others.
10683 * c-exp.y (operator) <OPERATOR DELETE>
10684 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10685 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10686 (make_builtin_type, make_name): New variable i, add gdb_assert.
10687 (operator) <OPERATOR NEW>: Update ARGS to 3.
10688 (operator) <OPERATOR DELETE>: Add trailing space.
10689 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10690 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10691 * cp-support.c (cp_canonicalize_string): Check NULL from
10692 cp_comp_to_string, call warning and return.
10693
10694 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10695
10696 Fix duplicate .o files after omitting libbfd.a.
10697 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10698 (SFILES): Add corelow.c.
10699 (COMMON_OBS): Add corelow.o.
10700 (ALLDEPFILES): Remove corelow.c.
10701 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10702 * config/alpha/alpha-osf3.mh: Likewise.
10703 * config/alpha/fbsd.mh: Likewise.
10704 * config/arm/nbsdaout.mh: Likewise.
10705 * config/arm/nbsdelf.mh: Likewise.
10706 * config/i386/i386gnu.mh: Likewise.
10707 * config/ia64/hpux.mh: Likewise.
10708 * config/ia64/linux.mh: Likewise.
10709 * config/m32r/linux.mh: Likewise.
10710 * config/m68k/linux.mh: Likewise.
10711 * config/mips/irix5.mh: Likewise.
10712 * config/mips/irix6.mh: Likewise.
10713 * config/pa/hpux.mh: Likewise.
10714 * config/pa/linux.mh: Likewise.
10715 * config/powerpc/aix.mh: Likewise.
10716 * config/sparc/linux.mh: Likewise.
10717 * config/sparc/linux64.mh: Likewise.
10718 * config/sparc/sol2.mh: Likewise.
10719 * config/vax/vax.mh: Likewise.
10720 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10721 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10722 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10723 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10724 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10725 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10726 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10727 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10728 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10729 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10730 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10731 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10732 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10733 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10734 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10735 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10736 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10737 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10738 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10739 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10740 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10741 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10742 corelow.o from gdb_target_obs.
10743 * corefile.c (core_target): Update the comment on NULL value.
10744 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10745 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10746 MATCHES. Drop YUMMY set on NULL.
10747 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10748 reclaim CORE_DATA if it is already NULL.
10749
10750 2012-01-09 Doug Evans <dje@google.com>
10751
10752 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10753 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10754
10755 2012-01-09 Keith Seitz <keiths@redhat.com>
10756
10757 * breakpoint.c (wrapper.h): Don't include.
10758
10759 2012-01-09 Keith Seitz <keiths@redhat.com>
10760
10761 * Makefile.in (SFILES): Remove wrapper.c.
10762 (HFILES_NO_SRCDIR): Remove wrapper.h.
10763 (COMMON_OBS): Remove wrapper.o.
10764 * cli/cli-interp.c: Don't inlude wrapper.h.
10765 * corelow.c: Likewise.
10766 (core_open): Replace gdb_target_find_new_threads with
10767 TRY_CATCH around target_find_new_threads.
10768 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10769 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10770 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10771 evaluate_expression.
10772 (varobj_set_value): Likewise for evaluate_expression and
10773 value_assign.
10774 (install_new_variable): Likewise for value_fetch_lazy.
10775 (adjust_value_for_child_access): Likewise for value_ind.
10776 (c_describe_child): Likewise for value_subscript and
10777 value_ind.
10778 (c_value_of_root): Likewise for evaluate_expression.
10779 * wrapper.c: Remove.
10780 * wrapper.h: Remove.
10781
10782 2012-01-09 Doug Evans <dje@google.com>
10783
10784 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10785 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10786 "abfd" args with "section". All callers updated.
10787 Error checking code moved ...
10788 (error_check_comp_unit_head): ... here. New function.
10789 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10790 Delete arg "abfd". New arg "type_offset". All callers updated.
10791 (create_debug_types_hash_table): Simplify by using
10792 read_and_check_type_unit_head.
10793
10794 * parser-defs.h (namecopy): Delete.
10795 * parse.c (namecopy, namecopy_size): Move into copy_name.
10796
10797 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10798
10799 Partially fix duplicate .o files after omitting libbfd.a.
10800 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10801 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10802 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10803 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10804 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10805 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10806 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10807
10808 2012-01-09 Pedro Alves <palves@redhat.com>
10809
10810 * MAINTAINERS: Update my email address.
10811
10812 2012-01-08 Doug Evans <dje@google.com>
10813
10814 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10815 n_type_units. Rename type_comp_units to all_type_units.
10816 All uses updated.
10817 (add_signatured_type_cu_to_table): Renamed from
10818 add_signatured_type_cu_to_list. All callers updated.
10819
10820 * gdbtypes.h (struct cplus_struct_type): Delete member
10821 nfn_fields_total. All uses removed.
10822
10823 2012-01-06 Doug Evans <dje@google.com>
10824
10825 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10826 to top of file.
10827 (dwarf2_find_comp_unit): Delete.
10828 (process_psymtab_comp_unit): Make result "void".
10829 Delete args buffer, info_ptr, buffer_size, and replace with
10830 "section". All callers updated.
10831 (dwarf2_build_psymtabs_hard): Simplify.
10832
10833 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10834 Thiago Jung Bauermann <bauerman@br.ibm.com>
10835
10836 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10837 before `struct gdb_exception'.
10838 * breakpoint.c (update_global_location_list_nothrow)
10839 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10840 * cp-abi.c (value_rtti_type): Likewise.
10841 * cp-support.c (cp_validate_operator): Likewise.
10842 * infrun.c (insert_exception_resume_breakpoint)
10843 (check_exception_resume, keep_going): Likewise.
10844 * mi-interp.c (mi_breakpoint_created)
10845 (mi_breakpoint_modified): Likewise.
10846 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10847 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10848 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10849
10850 2012-01-05 Doug Evans <dje@google.com>
10851
10852 * dwarf2read.c (statement_prologue): Delete, unused.
10853
10854 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10855 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10856
10857 * dwarf2read.c (comp_unit_header): Delete, unused.
10858
10859 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10860
10861 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10862 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10863
10864 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10865
10866 * infrun.c (normal_stop): Don't skip calling the normal_stop
10867 observers if the thread was doing a multi-step, but stopped for
10868 some reason other than stepping.
10869
10870 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10871
10872 * cli/cli-decode.h: Add comments.
10873 (CMD_LIST_AMBIGUOUS): Moved to command.h
10874 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10875 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10876 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10877 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10878 (add_com, add_com_alias, add_info, add_info_alias)
10879 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10880 declarations.
10881 * command.h: Add and adjust comments.
10882 (CMD_LIST_AMBIGUOUS): Moved here.
10883 (help_cmd, help_cmd_list): Delete declarations.
10884
10885 2012-01-04 Doug Evans <dje@google.com>
10886
10887 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10888 All callers updated.
10889 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10890 Replace all arguments with "per_cu". All callers updated.
10891
10892 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10893
10894 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10895 New arg "per_cu". All callers updated.
10896
10897 Delete #if 0'd out code.
10898 * language.c (binop_result_type): Delete.
10899 (simple_type, ordered_type, same_type, integral_type): Delete.
10900 (numeric_type, character_type, string_type, boolean_type): Delete.
10901 (float_type, structured_type): Delete.
10902 * language.h: Update.
10903
10904 2012-01-04 Tom Tromey <tromey@redhat.com>
10905
10906 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10907
10908 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10909
10910 * corefile.c (close_exec_file): Delete.
10911 (reopen_exec_file): Remove commented out code that seems related
10912 to close_exec_file, which is being deleted here.
10913 * inferior.h (close_exec_file): Delete.
10914 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10915
10916 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10917
10918 * ada-lang.c: #include "cli/cli-utils.h".
10919 (get_selections): Use skip_spaces.
10920 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10921 (catch_ada_exception_command_split): Use skip_spaces.
10922 (ada_decode_assert_location): Likewise.
10923
10924 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10925
10926 * linespec.c (decode_line_internal): Check for C++ or Java
10927 compound constructs only if the current language is C, C++
10928 or Java.
10929
10930 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 Revert:
10933 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10934 Joel Brobecker <brobecker@adacore.com>
10935 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10936 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10937 3 times.
10938 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10939 fall through into AT_ENTRY_POINT.
10940 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10941 DUMMY_ADDR with it.
10942 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10943 PPC_INSN_SIZE skip to 3 times.
10944
10945 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10946
10947 * linespec.c (add_minsym): Preserve function descriptors.
10948
10949 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10950
10951 * breakpoint.c (all_locations_are_pending): Consider locations
10952 in program spaces executing during startup pending as well.
10953
10954 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10955
10956 Copyright year update in most files of the GDB Project.
10957
10958 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10959
10960 * copyright.sh: Delete.
10961 * copyright.py: Rewrite.
10962
10963 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10964
10965 * gnulib/extra/update-copyright: New file, imported from gnulib.
10966
10967 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10968
10969 * README (Copyright and License Notices): New section.
10970
10971 2012-01-03 Tom Tromey <tromey@redhat.com>
10972
10973 PR python/12533:
10974 * python/py-value.c (valpy_dereference, valpy_get_address
10975 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10976 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10977 (valpy_absolute, valpy_richcompare): Free intermediate values.
10978
10979 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10980
10981 * ada-lang.c: Reformat the copyright notice.
10982
10983 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10986 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10987 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10988 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10989 Revert this part of:
10990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10991 Build gdb directly from *.o files not using libgdb.a.
10992 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10993
10994 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10995
10996 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10997 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10998 Reformat the copyright header.
10999
11000 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11001
11002 Revert this part of:
11003 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11004 Remove the gdbtui binary.
11005 * gdb.c (main): Remove args.interpreter_p initialization.
11006 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11007 * main.h (struct captured_main_args): Remove interpreter_p.
11008
11009 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11010
11011 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11012
11013 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11014
11015 * top.c (print_gdb_version): Update copyright year.
11016
11017 2012-01-02 Yao Qi <yao@codesourcery.com>
11018
11019 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11020
11021 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11022 Joel Brobecker <brobecker@adacore.com>
11023
11024 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11025 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11026 3 times.
11027 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11028 fall through into AT_ENTRY_POINT.
11029 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11030 DUMMY_ADDR with it.
11031 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11032 PPC_INSN_SIZE skip to 3 times.
11033
11034 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11035
11036 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11037 the return value.
11038 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11039
11040 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11041
11042 Build gdb directly from *.o files not using libgdb.a.
11043 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11044 (COMMON_OBS): Remove solib-target.o.
11045 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11046 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11047 (LIBGDB_OBS, libgdb.a): Move it above.
11048 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11049 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11050 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11051 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11052 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11053 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11054 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11055 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11056 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11057 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11058 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11059 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11060 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11061 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11062 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11063 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11064 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11065 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11066 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11067 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11068 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11069 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11070 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11071 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11072 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11073 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11074 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11075
11076 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11077
11078 Remove the gdbtui binary.
11079 * .gitignore (/gdbtui): Remove.
11080 * Makefile.in (TUI): Remove.
11081 (SUBDIR_TUI_OBS): Remove tui-main.o.
11082 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11083 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11084 (tui-main.o): Remove.
11085 (all_object_files): Remove tui-main.o.
11086 * NEWS: New note for the gdbtui removal.
11087 * configure: Rebuilt.
11088 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11089 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11090 CONFIG_UNINSTALL respectively.
11091 * gdb.c (main): Remove args.interpreter_p initialization.
11092 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11093 * main.h (struct captured_main_args): Remove interpreter_p.
11094 * tui/tui-main.c: Remove.
11095
11096 2012-01-01 Doug Evans <dje@google.com>
11097
11098 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11099 (dwarf2_physname, read_import_statement): Ditto.
11100 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11101 (process_structure_scope read_subroutine_type): Ditto.
11102 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11103 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11104 (dwarf2_fetch_die_location_block): Ditto.
11105 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11106
11107 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11108 All callers updated.
11109 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11110 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11111 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11112
11113 * dwarf2read.c (load_cu): Move assert to more useful location.
11114
11115 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11116 All callers updated.
11117
11118 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11119 (dwarf2_elf_names): Minor reformat.
11120 (dwarf2_per_cu_data): Tweak comment.
11121 (dwarf2_read_section): Fix comment.
11122 (create_all_comp_units): Fix comment.
11123 (load_full_comp_unit): Fix comment.
11124 (process_full_comp_unit): Fix comment.
11125 (read_signatured_type): Fix comment.
11126
11127 For older changes see ChangeLog-2011.
11128 \f
11129 Local Variables:
11130 mode: change-log
11131 left-margin: 8
11132 fill-column: 74
11133 version-control: never
11134 coding: utf-8
11135 End: