54a8a2fc5418374d6b4d43ce64f203724ebf6e85
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-02 Pedro Alves <palves@redhat.com>
2
3 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step)
4 (vfork_parent_follow_to_bp)
5 (vfork_and_exec_child_follow_to_main_bp)
6 (vfork_and_exec_child_follow_through_step)
7 (tcatch_vfork_then_parent_follow)
8 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
9 Use with_test_prefix.
10
11 2012-11-02 Pedro Alves <palves@redhat.com>
12
13 * gdb.base/foll-vfork.c: Add copyright header.
14 * gdb.base/vforked-prog.c: Add copyright header.
15
16 2012-11-02 Pedro Alves <palves@redhat.com>
17
18 * gdb.base/foll-vfork.exp
19 (vfork_and_exec_child_follow_through_step): Don't skip on
20 non-HP/UX targets. Expect the next to only step one line on
21 non-HP/UX targets, rather than stopping only after the exec.
22
23 2012-11-02 Pedro Alves <palves@redhat.com>
24
25 Don't hard code line numbers.
26
27 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
28 Expect text from the sources instead of a line number.
29 (vfork_parent_follow_to_bp)
30 (vfork_and_exec_child_follow_to_main_bp)
31 (vfork_and_exec_child_follow_through_step)
32 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
33 Use gdb_get_line_number.
34
35 2012-11-02 Pedro Alves <palves@redhat.com>
36
37 Modernize.
38
39 * gdb.base/foll-vfork.exp: Use standard_testfile and
40 build_executable. Pass descriptive string to untested.
41 (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
42 (vfork_and_exec_child_follow_to_main_bp)
43 (vfork_and_exec_child_follow_through_step)
44 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
45 (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
46 of send_gdb/gdb_expect.
47
48 (kill_child): New procedure.
49 (vfork_and_exec_child_follow_to_main_bp)
50 (vfork_and_exec_child_follow_through_step): Use it.
51
52 2012-11-02 Yao Qi <yao@codesourcery.com>
53
54 * std-operator.def: Remove OP_LABELED.
55 * eval.c: Remove the declaration of 'get_label'.
56 (get_label): Remove.
57 (evaluate_struct_tuple): Remove code handling OP_LABELED.
58 Update comment.
59 Remove local variable 'variantno' and related code.
60 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
61 with 'fieldno'.
62 * expprint.c (print_subexp_standard): Likewise.
63 (dump_subexp_body_standard): Likewise.
64 * parse.c (operator_length_standard): Likewise.
65
66 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
67
68 Incorporate ARI web page generator into GDB sources.
69 * contrib/ari/create-web-ari-in-src.sh: New file.
70 * contrib/ari/gdb_ari.sh: New file.
71 * contrib/ari/gdb_find.sh: New file.
72 * contrib/ari/update-web-ari.sh: New file.
73
74 2012-10-31 Tom Tromey <tromey@redhat.com>
75
76 * gdbarch.c: Rebuild.
77 * gdbarch.sh: Remove references to gdbarch_swap.
78 * corelow.c (core_open): Remove obsolete comment.
79
80 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
81
82 PR cli/14772
83 * c-typeprint.c (c_print_type): Don't print a space for vector
84 types, this is handled within the suffix.
85 (c_type_print_varspec_suffix): Add a space to vector suffix.
86
87 2012-10-26 Pedro Alves <palves@redhat.com>
88
89 * amd64-tdep.c (amd64_relocate_instruction): Use
90 store_unsigned_integer instead of memcpy.
91 * i386-tdep.c (i386_relocate_instruction): Ditto.
92
93 2012-10-26 Pedro Alves <palves@redhat.com>
94
95 * infrun.c (handle_inferior_event): Merge handling of
96 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
97 switch case.
98
99 2012-10-26 Pedro Alves <palves@redhat.com>
100
101 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
102 Remove comment.
103
104 2012-10-26 Pedro Alves <palves@redhat.com>
105
106 * target.c (target_waitstatus_to_string): Handle
107 TARGET_WAITKIND_VFORK_DONE.
108
109 2012-10-26 Pedro Alves <palves@redhat.com>
110
111 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
112 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
113
114 2012-10-24 Tristan Gingold <gingold@adacore.com>
115
116 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
117 Add comments.
118
119 2012-10-24 Joel Brobecker <brobecker@adacore.com>
120
121 * ravenscar-thread.c (ravenscar_wait): Only update the list
122 of threads and inferior_ptid if the inferior is still alive.
123
124 2012-10-24 Joel Brobecker <brobecker@adacore.com>
125
126 * ada-lang.c (is_known_support_routine): Use lbasename when
127 matching the symtab's filename against
128 known_runtime_file_name_patterns.
129
130 2012-10-24 Joel Brobecker <brobecker@adacore.com>
131
132 * ada-lang.c (ada_same_array_size_p): New function.
133 (ada_promote_array_of_integrals): New function.
134 (coerce_for_assign): Add handling of arrays where the elements
135 are integrals of a smaller size than the size of the target
136 array element type.
137
138 2012-10-24 Joel Brobecker <brobecker@adacore.com>
139
140 * doublest.c (convert_doublest_to_floatformat): Fix comparison
141 against maximum exponent value.
142
143 2012-10-24 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
146 "unwind-seh.c".
147
148 2012-10-24 Joel Brobecker <brobecker@adacore.com>
149
150 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
151 strip typedef layer when computing the fixed type's field type,
152 only when computing its size.
153
154 2012-10-24 Mark Kettenis <kettenis@gnu.org>
155
156 PR gdb/12783
157 * i386-tdep.c (i386_return_value): Handle complex double and long
158 double.
159
160 2012-10-24 Joel Brobecker <brobecker@adacore.com>
161
162 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
163 New local variable args_len.
164 Quote the name of the executable when computing the command line.
165
166 2012-10-23 Mark Kettenis <kettenis@gnu.org>
167
168 PR gdb/12796
169 PR gdb/12798
170 PR gdb/12800
171 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
172 AMD64_FTAG_REGNUM.
173 * amd64-tdep.c (amd64_classify): Classify complex types.
174 (amd64_return_value): Handle the COMPLEX_X87 class.
175
176 2012-10-23 Joel Brobecker <brobecker@adacore.com>
177
178 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
179 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
180
181 2012-10-23 Joel Brobecker <brobecker@adacore.com>
182
183 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
184 function.
185 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
186 to amd64_windows_auto_wide_charset.
187
188 2012-10-23 Yao Qi <yao@codesourcery.com>
189
190 * event-top.c (mark_async_signal_handler_wrapper): Remove.
191 * event-top.h: Remove its declaration.
192 (async_request_quit): Call mark_async_signal_handler instead of
193 mark_async_signal_handler_wrapper.
194 (async_do_nothing, async_disconnect): Likewise.
195 (async_stop_sig): Likewise.
196 * remote.c (handle_remote_sigint): Likewise.
197 (handle_remote_sigint_twice): Likewise.
198
199 2012-10-23 Yao Qi <yao@codesourcery.com>
200
201 * event-top.c (sigint_token, sighup_token): Replace 'void *'
202 with 'static struct async_signal_handler *'.
203 (sighup_token, sigquit_token, sigstp_token): Likewise.
204
205 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
206
207 * gdbarch.sh (function_list): Use 'pstring' when printing
208 a variable which could return NULL.
209 * gdbarch.c: Regenerate.
210
211 2012-10-10 Joel Brobecker <brobecker@adacore.com>
212 Tom Tromey <tromey@redhat.com>
213
214 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
215 inneffective if condition by gdb assertion. Add function
216 description comment.
217
218 2012-10-19 Joel Brobecker <brobecker@adacore.com>
219
220 * parser-defs.h (struct exp_descriptor): Document constraint
221 on return value for "op_name" callbacks.
222
223 2012-10-18 Tom Tromey <tromey@redhat.com>
224
225 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
226 * symtab.c (iterate_over_some_symtabs): Constify.
227 * source.h (symtab_to_fullname): Return 'const char *'.
228 * source.c (symtab_to_fullname): Return 'const char *'.
229 * python/py-symtab.c (stpy_fullname): Constify.
230 * cli/cli-cmds.c (edit_command): Constify.
231 * breakpoint.c (print_breakpoint_location)
232 (update_static_tracepoint): Constify.
233
234 2012-10-18 Tom Tromey <tromey@redhat.com>
235
236 * breakpoint.c (compare_breakpoints): Fix comparison.
237
238 2012-10-18 Tom Tromey <tromey@redhat.com>
239
240 * valprint.c (generic_emit_char, generic_printstr): Pass size of
241 gdb_wchar_t to convert_between_encodings.
242
243 2012-10-17 Yao Qi <yao@codesourcery.com>
244
245 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
246 more parameter 'inferior'.
247 * corefile.c (write_memory_with_notification): Caller update.
248
249 * mi/mi-cmd-var.c: Include "mi-main.h".
250 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
251 to 1 and restore it later.
252 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
253 and "data-write-memory-bytes.
254 * mi/mi-interp.c: Include objfiles.h.
255 (mi_interpreter_init): Call observer_attach_memory_changed.
256 (mi_memory_changed): New.
257 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
258 New field.
259
260 * NEWS: Mention new MI notification "memory-changed".
261
262 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
263
264 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
265
266 2012-10-15 Doug Evans <dje@google.com>
267
268 New option -nh: inhibit loading of ~/.gdbinit.
269 * NEWS: Mention -nh.
270 * main.c (captured_main): Recognize and process -nh.
271 (print_gdb_help): Mention -nh.
272 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
273
274 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR backtrace/14646
277 PR gdb/14647
278 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
279 pc_regnum_from_eax.
280 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
281 nor pc_regnum_from_eax.
282 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
283 nor pc_regnum_from_eax.
284
285 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 Fix entry values resolving in inlined frames.
288 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
289 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
290 entries of FRAME.
291
292 2012-10-15 Joel Brobecker <brobecker@adacore.com>
293
294 * configure.ac: Build with -DMS_WIN64 if building with Python
295 enabled using GCC on amd64-windows.
296 * configure: Regenerate.
297
298 2012-10-15 Tom Tromey <tromey@redhat.com>
299
300 PR python/14635:
301 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
302 to Py_None.
303
304 2012-10-15 Tom Tromey <tromey@redhat.com>
305
306 PR python/14634:
307 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
308
309 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
310
311 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
312 reset thread numbering back to 1.
313
314 2012-10-11 Doug Evans <dje@google.com>
315
316 PR breakpoints/14643.
317 * linespec.c (struct ls_parser): New member keyword_ok.
318 (linespec_lexer_lex_string): Add comment.
319 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
320 for one.
321 (parse_linespec): Set keyword_ok.
322
323 2012-10-10 Doug Evans <dje@google.com>
324
325 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
326 "0x" prefix on address in log message.
327
328 * dwarf2read.c (read_1_byte): Add const to buf parameter.
329 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
330 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
331 (lookup_dwo_file): Add const to dwo_name parameter.
332 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
333
334 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
335
336 Fix crash during stepping on ppc32.
337 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
338 SYM.
339
340 2012-10-03 Doug Evans <dje@google.com>
341
342 PR symtab/14601
343 * buildsym.c (buildsym_init): Reset using_directives to NULL.
344
345 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
346
347 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
348 output and use uint32_t not long to ensure 4 byte size.
349
350 2012-10-02 Joel Brobecker <brobecker@adacore.com>
351
352 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
353 unref'ed it.
354
355 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
356
357 * target.c (simple_search_memory): Include access length in
358 warning message.
359
360 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
361 Edjunior Machado <emachado@linux.vnet.ibm.com>
362
363 PR gdb/13989
364 * solib.c (solib_find): Prevent GDB from loading native libraries when
365 debugging a cross-target corefile.
366
367 2012-09-28 selven <pcthegreat@gmail.com>
368
369 Make definition match declaration.
370
371 * regcache.c (regcache_register_status): Change return type to
372 enum register_status.
373
374 2012-09-28 Yao Qi <yao@codesourcery.com>
375
376 * mi/mi-main.c (mi_cmd_data_write_memory): Call
377 write_memory_with_notification instead of write_memory.
378 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
379 instead of target_write_memory.
380
381 2012-09-28 Yao Qi <yao@codesourcery.com>
382
383 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
384 when the length of content is not an even number.
385
386 2012-09-27 Tom Tromey <tromey@redhat.com>
387
388 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
389 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
390
391 2012-09-27 Joel Brobecker <brobecker@adacore.com>
392
393 * sol-thread.c (sol_thread_fetch_registers)
394 (sol_thread_store_registers): Delete commented out code.
395
396 2012-09-27 Joel Brobecker <brobecker@adacore.com>
397
398 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
399 Move these functions to sparc-sol-thread.c.
400 * sparc-sol-thread.c: New file.
401 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
402 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
403 configurations.
404 * configure: Regenerate.
405
406 2012-09-27 Joel Brobecker <brobecker@adacore.com>
407
408 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
409 Remove commented-out code.
410
411 2012-09-27 Joel Brobecker <brobecker@adacore.com>
412
413 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
414 Enable this code for sparc hosts only.
415
416 2012-09-27 Joel Brobecker <brobecker@adacore.com>
417
418 * procfs.h (procfs_find_LDT_entry): Add declaration.
419 * sol-thread.c (ps_lgetLDT): Delete local declaration of
420 function procfs_find_LDT_entry.
421
422 2012-09-27 Joel Brobecker <brobecker@adacore.com>
423
424 * procfs.c (proc_get_LDT_entry): Make static.
425
426 2012-09-27 Joel Brobecker <brobecker@adacore.com>
427
428 * procfs.c (proc_find_memory_regions): Fix declaration.
429
430 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
431
432 * amd64-tdep.c (amd64_return_value): Revert previous change
433 that used TYPE_LENGTH directly.
434 * bfin-tdep.c (bfin_extract_return_value): Likewise.
435 (bfin_store_return_value): Likewise.
436 * cris-tdep.c (cris_store_return_value): Likewise.
437 (cris_extract_return_value): Likewise.
438 * h8300-tdep.c (h8300_extract_return_value): Likewise.
439 * hppa-tdep.c (hppa64_return_value): Likewise.
440 * lm32-tdep.c (lm32_store_return_value): Likewise.
441 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
442 * spu-tdep.c (spu_value_from_register): Likewise.
443 * vax-tdep.c (vax_return_value): Likewise.
444
445 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
446
447 * gdbtypes.c (lookup_array_range_type): Expand parameters
448 LOW_BOUND and HIGH_BOUND to LONGEST.
449 (lookup_string_range_type): Likewise.
450 * gdbtypes.h (lookup_array_range_type): Likewise.
451 (lookup_string_range_type): Likewise.
452 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
453 Expand HIGHBOUND to ssize_t.
454 (value_string): Likewise.
455 * value.h (value_cstring): Expand parameter LEN to ssize_t.
456 (value_string): Likewise.
457
458 2012-09-27 Yao Qi <yao@codesourcery.com>
459
460 PR breakpoints/13898
461 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
462 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
463 per breakpoint type.
464
465 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
466
467 * procfs.c: Add gdb_bfd header.
468 * rs6000-nat.c: Likewise.
469 * solib-pa64.c: Likewise.
470 * spu-linux-nat.c: Likewise.
471 * windows-nat.c: Likewise.
472
473 2012-09-26 Tom Tromey <tromey@redhat.com>
474
475 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
476
477 2012-09-26 Tom Tromey <tromey@redhat.com>
478
479 * dwarf2read.c (mark_common_block_symbol_computed): New function.
480 (read_common_block): Handle child DIEs with
481 DW_AT_data_member_location.
482 (new_symbol_full): Add special case for common blocks.
483
484 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
485 Tom Tromey <tromey@redhat.com>
486
487 * dwarf2read.c (read_common_block): Rewrite.
488 (new_symbol_full): Handle DW_TAG_common_block.
489 * f-lang.c (head_common_list, find_common_for_function):
490 Remove.
491 * f-lang.h (struct common_entry, struct saved_f77_common,
492 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
493 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
494 BLANK_COMMON_NAME_LOCAL): Remove.
495 (struct common_block): New.
496 * f-valprint.c (list_all_visible_commons): Remove.
497 (info_common_command_for_block): New function.
498 (info_common_command): Use it.
499 * stack.c (iterate_over_block_locals): Special case for
500 COMMON_BLOCK_DOMAIN.
501 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
502 constant.
503 (struct general_symbol_info) <value.common_block>: New field.
504 (SYMBOL_VALUE_COMMON_BLOCK): New define.
505
506 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
507 Tom Tromey <tromey@redhat.com>
508
509 * f-lang.c (allocate_saved_bf_node,
510 allocate_saved_function_node, allocate_saved_f77_common_node,
511 allocate_common_entry_node, tail_common_list, current_common,
512 saved_bf_list, saved_bf_list_end, current_head_bf_list,
513 tmp_bf_ptr, add_common_block, add_common_entry,
514 find_first_common_named, patch_common_entries,
515 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
516 global_remote_debug, get_bf_for_fcn, saved_function_list,
517 saved_function_list_end, clear_function_list, struct saved_fcn,
518 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
519 SAVED_BF, SAVED_BF_PTR): Remove.
520 * f-lang.h (tail_common_list, current_common,
521 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
522 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
523 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
524 real_main_c_value): Remove.
525 * f-valprint.c (there_is_a_visible_common_named): Remove.
526
527 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
528
529 * breakpoint.c (update_global_location_list): Ignore previous
530 duplicate status of a breakpoint when starting a new scan for
531 duplicate breakpoints.
532
533 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
534 PR breakpoints/14419
535 * arm-tdep.c (arm_skip_prologue): Extending producer check to
536 support LLVM compiler.
537
538 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
539
540 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
541 * bfin-tdep.c (bfin_extract_return_value): Likewise.
542 (bfin_store_return_value): Likewise.
543 * cris-tdep.c (cris_store_return_value): Likewise.
544 (cris_extract_return_value): Likewise.
545 * h8300-tdep.c (h8300_extract_return_value): Likewise.
546 * hppa-tdep.c (hppa64_return_value): Likewise.
547 * lm32-tdep.c (lm32_store_return_value): Likewise.
548 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
549 * spu-tdep.c (spu_value_from_register): Likewise.
550 * vax-tdep.c (vax_return_value): Likewise.
551
552 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
553
554 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
555 parameter LEN to ssize_t.
556
557 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
558
559 * ada-valprint.c (ada_val_print_1): Eliminate single-use
560 variable LEN.
561 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
562 directly.
563 (alpha_store_return_value): Likewise.
564 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
565 (amd64_push_arguments): Likewise.
566 * ax-gdb.c (gen_trace_static_fields): Likewise.
567 (gen_traced_pop): Likewise.
568 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
569 * breakpoint.c (update_watchpoint): Likewise.
570 * findcmd.c (parse_find_args): Use local variable for type
571 instead of length.
572 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
573 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
574 (h8300_store_return_value): Likewise.
575 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
576 Use i386_darwin_arg_type_alignment directly.
577 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
578 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
579 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
580 (m68hc11_extract_return_value): Likewise.
581 * mep-tdep.c (mep_push_dummy_call): Likewise.
582 * printcmd.c (float_type_from_length): Likewise.
583 * s390-tdep.c (s390_value_from_register): Likewise.
584 * stack.c (read_frame_arg): Likewise.
585 * tracepoint.c (encode_actions_1): Likewise.
586 * valops.c (value_fetch_lazy): Use local variable for type
587 instead of length. Use TYPE_LENGTH directly.
588 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
589
590 2012-09-25 Joel Brobecker <brobecker@adacore.com>
591
592 * symtab.c (skip_prologue_sal): Fix typo in comment.
593
594 2012-09-25 Joel Brobecker <brobecker@adacore.com>
595
596 * linespec.c (create_sals_line_offset): Fix typo in comment.
597
598 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
599
600 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
601 use plongest to print the array size.
602
603 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
604
605 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
606 * p-valprint.c (pascal_type_print_base): Likewise.
607
608 2012-09-22 Yao Qi <yao@codesourcery.com>
609
610 * remote.c (remote_get_trace_status): Remove setting default
611 values of fields of 'ts'.
612
613 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
614
615 Fix internal error on canonicalization of clang types.
616 * cp-name-parser.y (operator): New comment at make_operator call for
617 new, delete, new[] and delete[].
618 (exp): Use "sizeof ". Add new comment at make_operator call.
619
620 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 Fix disassemble without parameters in tailcall frame.
623 * cli/cli-cmds.c (disassemble_current_function): Use
624 get_frame_address_in_block.
625
626 2012-09-21 Tom Tromey <tromey@redhat.com>
627
628 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
629 TYPE_CODE_UNION>: Unify, removing a goto.
630
631 2012-09-21 Tom Tromey <tromey@redhat.com>
632
633 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
634
635 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
636
637 * findvar.c (read_frame_register_value): Mark the result value as
638 optimized out if any of the input registers have been optimized out.
639
640 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
641
642 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
643
644 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
645
646 * eval.c (evaluate_subexp_standard): Eliminate single-use
647 variable LOWER.
648
649 2012-09-21 Yao Qi <yao@codesourcery.com>
650
651 * mi/mi-interp.c: Declare mi_record_changed.
652 (mi_interpreter_init): Call observer_attach_record_changed.
653 (mi_record_changed): New.
654 * record.c (record_open): Call observer_notify_record_changed.
655 (cmd_record_stop): Call observer_notify_record_changed.
656 * NEWS: Mention it.
657
658 2012-09-20 Tom Tromey <tromey@redhat.com>
659
660 * NEWS: Update.
661 * python/python.c (finalize_python): New function.
662 (_initialize_python): Make a final cleanup.
663
664 2012-09-19 Doug Evans <dje@google.com>
665
666 * buildsym.h (param_symbols): Delete, unused.
667 (context_stack): Delete member "params", unused.
668 * buildsym.c (push_context): Update.
669 * dwarf2read.c (read_func_scope): Update.
670
671 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
672
673 * sh-tdep.c (sh_register_convert_to_virtual)
674 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
675 all callers. Just do a memcpy if not the little-endian case.
676
677 * h8300-tdep.c (h8300_gdbarch_init): Invoke
678 set_gdbarch_double_format and set_gdbarch_long_double_format.
679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
680 set_gdbarch_double_format.
681 * sh-tdep.c (sh_gdbarch_init): Likewise.
682
683 * NEWS: Document the removal of SH's 'regs' command.
684 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
685 command.
686
687 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
688
689 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
690 `jump'.
691
692 2012-09-18 Joel Brobecker <brobecker@adacore.com>
693
694 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
695 language when iterating over symbols.
696
697 2012-09-18 Yao Qi <yao@codesourcery.com>
698
699 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
700 (mi_interpreter_init): Call observer_attach_tsv_created and
701 observer_attach_tsv_deleted.
702 (mi_tsv_created, mi_tsv_deleted): New.
703 * tracepoint.c (delete_trace_state_variable): Call
704 observer_notify_tsv_deleted.
705 (trace_variable_command): Call observer_notify_tsv_created.
706 (delete_trace_variable_command): Call
707 observer_notify_tsv_deleted.
708 (create_tsv_from_upload): Call observer_notify_tsv_created.
709 * NEWS: Mention it.
710
711 2012-09-18 Yao Qi <yao@codesourcery.com>
712
713 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
714 if traceframe changed.
715 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
716 "trace-find".
717 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
718 (mi_interpreter_init): Hook mi_traceframe_changed to observer
719 'traceframe_changed'.
720 (mi_traceframe_changed): New.
721 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
722 New field.
723 * NEWS: Mention the new MI notification.
724
725 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
726
727 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
728
729 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
730
731 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
732 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
733 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
734 Extend code also for PaX support. Convert all gdb_assert to warning
735 calls.
736
737 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
738
739 Implement auto-load user conveniences suggested by Doug Evans.
740 * auto-load.c: Include top.h.
741 (file_is_auto_load_safe): New variable advice_printed. Print advice.
742 (_initialize_auto_load): New variable scripts_directory_help. Mention
743 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
744 scripts-directory. Document in online help one can use also files for
745 set auto-load safe-path.
746 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
747 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
748
749 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
750
751 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
752 of LEN.
753
754 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
755
756 * m2-valprint.c (m2_print_array_contents): Eliminate variable
757 ELTLEN and use TYPE_LENGTH directly.
758 (m2_val_print): Likewise.
759 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
760 variable LEN and use TYPE_LENGTH directly.
761 (m68k_svr4_store_return_value): Likewise.
762 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
763 ARGLEN and use TYPE_LENGTH directly.
764 (mips_o64_push_dummy_call): Likewise.
765 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
766 variable LENGTH and use TYPE_LENGTH directly.
767 (s390_function_arg_float): Likewise.
768 (s390_function_arg_integer): Likewise.
769 (s390_push_dummy_call): Likewise.
770 (s390_return_value_convention): Likewise.
771 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
772 TYPE_LENGTH directly.
773
774 2012-09-17 Yao Qi <yao@codesourcery.com>
775
776 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
777 Update comment to add_setshow_integer_cmd.
778 * cli/cli-setshow.c (do_set_command): Handle case
779 'var_zuinteger_unlimited'.
780 (do_show_command): Likewise.
781 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
782 for command 'remotetimeout'.
783 * command.h (enum var_types): New zuinteger_unlimited. Update comment
784 to var_integer.
785 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
786 for command 'set listsize'.
787
788 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
789
790 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
791 variable LEN.
792
793 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 PR 14119
796 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
797 (frame_pop): Drop also TAILCALL_FRAME frames.
798 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
799
800 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
801 Pedro Alves <palves@redhat.com>
802
803 PR 14548
804 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
805 function start if we are already at function start. Both for
806 reverse-next and for reverse-step into function without line number
807 info.
808
809 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 Code cleanup - rename 'inline' depth to 'artificial' depth.
812 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
813 frame_id_artificial_p, extend the comment.
814 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
815 * frame.c (fprint_frame_id): Rename at a user, change debug output
816 text to "artificial=".
817 (skip_inlined_frames): Rename to ...
818 (skip_artificial_frames): ... here. Extend the comment.
819 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
820 (frame_id_inlined_p): Rename to ...
821 (frame_id_artificial_p): ... here. Rename at a user.
822 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
823 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
824 at a user.
825 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
826 Extend the comment.
827 (frame_id_inlined_p): Rename to ...
828 (frame_id_artificial_p): ... here.
829 * inline-frame.c (inline_frame_this_id): Rename at a user.
830
831 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
832
833 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
834 vector variables using vector_size syntax rather than array
835 syntax.
836
837 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
838
839 * valarith.c (value_concat): Replace unsafe ALLOCA with
840 XMALLOC/XFREE.
841
842 2012-09-14 Pedro Alves <palves@redhat.com>
843
844 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
845
846 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
847
848 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
849 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
850 data-directory as appropriate.
851
852 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
853
854 * printcmd.c (ui_printf): Eliminate single-use variable
855 PARAM_LEN.
856
857 2012-09-14 Yao Qi <yao@codesourcery.com>
858 Pedro Alves <palves@redhat.com>
859
860 * valops.c (value_assign): Move observer_notify_target_changed
861 below to replace reinit_frame_cache.
862
863 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
864
865 Refactor Python "gdb" module into a proper Python package, by
866 introducing a new "_gdb" module for code implemented in C, and
867 using reload/__import__ instead of exec.
868 * python/lib/gdb/__init__.py: Import * from _gdb.
869 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
870 prompt_hook, sys.argv): Moved from finish_python_initialization.
871 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
872 (packages, auto_load_packages): New list and function replacing
873 module_dict and auto-loading code, using __file__ instead of
874 gdb.PYTHONDIR and reload/__import__ instead of exec.
875 (GdbSetPythonDirectory): Replacing function of the same name
876 from finish_python_initialization, using reload/__import__ instead
877 of exec, as well as call auto_load_packages.
878 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
879 gdb_python_module and not gdb_module.
880 * python/python-internal.h (gdb_python_module): Declare.
881 * python/python.c (gdb_python_module): New global.
882 (before_prompt_hook): Check gdb_python_module and not gdb_module.
883 (_initialize_python): Rename gdb module to _gdb.
884 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
885 (finish_python_initialization): Move Python code to
886 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
887 __main__.
888
889 2012-09-13 Pedro Alves <palves@redhat.com>
890
891 * Makefile.in (COMMON_OBS): Add registry.o.
892 * registry.c: New file.
893 * registry.h (struct registry_container): Declare.
894 (registry_data_callback): New typedef.
895 (struct registry_data, struct registry_data_registration, struct
896 registry_data_registry): New type.
897 (register_data_with_cleanup, registry_alloc_data)
898 (registry_callback_adaptor, registry_clear_data)
899 (registry_container_free_data, registry_set_data, registry_data):
900 Declare.
901 (DEFINE_REGISTRY): Refactor structures and functions as shims over
902 the new common structures and functions.
903 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
904 callback typedefs.
905
906 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
907
908 * remote.c (remote_insert_hw_breakpoint): Throw exception if
909 there is an error inserting hardware breakpoints and use the
910 error message from the target.
911
912 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
913 Catch this exception and print the error message contained within. Do not
914 print the default hardware error breakpoint message in this case.
915
916 2012-09-12 Doug Evans <dje@google.com>
917
918 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
919 cu == NULL.
920
921 2012-09-11 Doug Evans <dje@google.com>
922
923 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
924 .gdb_index symbol attributes if there are none.
925
926 2012-09-11 Joel Brobecker <brobecker@adacore.com>
927
928 * symtab.h (struct minimal_symbol) [has_size]: New field.
929 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
930 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
931 * printcmd.c (build_address_symbolic): Only filter out zero-sized
932 minimal symbols if the symbol's size is actually known.
933 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
934 of msymbol's size field. Add comment.
935 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
936 SET_MSYMBOL_SIZE to set the minimal symbol size.
937
938 2012-09-11 Joel Brobecker <brobecker@adacore.com>
939
940 * minsyms.c (install_minimal_symbols): Use memset to fill entire
941 minimal_symbol struct object, rather than setting some of its
942 fields one by one.
943
944 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
945
946 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
947 passed_a_ptr flag when displaying typedef types.
948
949 2012-09-10 Joel Brobecker <brobecker@adacore.com>
950
951 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
952 the optimized_out flag is preserved.
953
954 2012-09-10 Anthony Green <green@moxielogic.com>
955
956 * moxie-tdep.c (moxie_analyze_prologue): Update for function
957 prologue changes in GCC.
958
959 2012-09-10 Keith Seitz <keiths@redhat.com>
960
961 PR gdb/13483
962 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
963 (BOOL_CONVERSION_BADNESS): ... this.
964 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
965 (rank_one_type): Allow all boolean conversions
966 permitted by the standard.
967
968 2012-09-06 Tom Tromey <tromey@redhat.com>
969
970 * python/py-newobjfileevent.c (create_new_objfile_event_object):
971 Don't decref py_objfile.
972
973 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
974
975 Do not enable -lmcheck by default when Python is enabled with
976 threading support.
977 * configure.ac: (python_has_threads) New variable, by testing
978 if WITH_THREAD is defined in Python.h.
979 Move --enable-lmcheck after --with-python.
980 Do not enable -lmcheck by default if python_has_threads=yes.
981 Warn if --enable-lmcheck and python_has_threads=yes.
982 * configure: Regenerate.
983
984 2012-08-31 Yao Qi <yao@codesourcery.com>
985
986 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
987 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
988 Update some commands.
989 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
990 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
991 to 1.
992
993 2012-08-31 Yao Qi <yao@codesourcery.com>
994
995 * mi/mi-cmds.c (mi_cmds): Add 'static'.
996
997 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
998
999 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1000
1001 2012-08-29 Doug Evans <dje@google.com>
1002
1003 * main.c (print_gdb_help): Remove reference to
1004 --use-deprecated-index-sections.
1005
1006 2012-08-28 Yao Qi <yao@codesourcery.com>
1007
1008 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1009 (init_cmds): Call add_setshow_uinteger_cmd for command
1010 'max-user-call-depth'.
1011 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1012 declaration of 'max_user_call_depth'.
1013 * frame.c (backtrace_limit): Add 'unsigned'.
1014 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1015 'limit'.
1016 * remote.c (remoteaddresssize): Add 'unsigned'.
1017 (remote_address_masked): Change local var 'address_size' to
1018 'unsigned'.
1019 (_initialize_remote): Call add_setshow_uinteger_cmd for
1020 'remoteaddresssize'.
1021 * top.c (history_size): Add 'unsigned'.
1022 (show_commands): Change local variables to 'unsigned'.
1023 (set_history_size_command): Don't check history_size is negative.
1024 Adjust the condition to call unstifle_history and set history_size
1025 to UNIT_MAX.
1026
1027 2012-08-28 Pedro Alves <palves@redhat.com>
1028
1029 PR gdb/14428
1030
1031 * infcmd.c (default_print_one_register_info): New, factored out
1032 from default_print_registers_info.
1033 (default_print_registers_info): Use it. Mark value unavailable if
1034 necessary.
1035 (registers_info): Print user registers with
1036 default_print_one_register_info.
1037
1038 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 PR tui/14486
1041 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1042 is not NULL before referencing it.
1043
1044 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1045
1046 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1047 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1048 original PC for it.
1049
1050 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1051 Jan Kratochvil <jan.kratochvil@redhat.com>
1052
1053 * auto-load.c (auto_load_objfile_script): Rename to ...
1054 (auto_load_objfile_script_1): ... here, change variable realname to
1055 parameter realname, document it, add return value, add variable retval.
1056 (auto_load_objfile_script): New function.
1057
1058 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1061 followed by a whitespace.
1062
1063 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1064
1065 PR gdb/14494.
1066 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1067 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1068 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1069 here.
1070
1071 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1072
1073 * memattr.c (create_mem_region): Fix memory region overlapping
1074 checking.
1075
1076 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1077
1078 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1079 with xmalloc/cleanup.
1080 * mt-tdep.c (mt_push_dummy_call): Likewise.
1081 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1082 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1083
1084 2012-08-24 Yao Qi <yao@codesourcery.com>
1085
1086 * jv-exp.y (push_expression_name): Add "." at the end of error
1087 message.
1088
1089 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1090
1091 Document how to return from "python-interactive" to GDB.
1092 * python/python.c (_initialize_python): Update documentation.
1093
1094 2012-08-23 Pedro Alves <palves@redhat.com>
1095
1096 * infrun.c (_initialize_infrun) <handle command help text>:
1097 Mention that multiple signals are supported.
1098
1099 2012-08-23 Pedro Alves <palves@redhat.com>
1100
1101 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1102 string.
1103
1104 2012-08-23 Yao Qi <yao@codesourcery.com>
1105
1106 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1107 (tfind_1): Don't call registers_changed, set_traceframe_num,
1108 and clear_traceframe_info.
1109 Call set_current_traceframe.
1110 (set_current_traceframe): call set_traceframe_num.
1111
1112 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1113
1114 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1115 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1116
1117 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1118
1119 Enable readline in Python in a GDB-specific way and block the
1120 standard Python readline module to prevent conflicts with GDB.
1121 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1122 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1123 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1124 * python/py-gdb-readline.c: New file.
1125 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1126 prototype.
1127 * python/python.c (_initialize_python): Call
1128 gdbpy_initialize_gdb_readline.
1129
1130 2012-08-22 Keith Seitz <keiths@redhat.com>
1131
1132 * defs.h: Include build-gnulib/config.h
1133
1134 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1135
1136 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1137 and blx pc.
1138
1139 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1140
1141 Add a new "python-interactive" command that starts a standard
1142 Python interactive prompt with "pi" as alias, and add "py" as
1143 an alias to "python".
1144 * NEWS: Mention the new commands.
1145 * python/python.c (eval_python_command): New function.
1146 (python_interactive_command): For "python-interactive" with
1147 arguments, call eval_python_command. For "python-interactive"
1148 without arguments, call PyRun_InteractiveLoop.
1149 (_initialize_python): Add "python-interactive" command with
1150 "pi" as alias, and add "py" as an alias to "python".
1151
1152 2012-08-22 Tom Tromey <tromey@redhat.com>
1153
1154 * defs.h (quit_flag): Don't declare.
1155 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1156 (QUIT): Use new functions.
1157 * event-top.c (command_handler): Use clear_quit_flag.
1158 (handle_sigint): Use set_quit_flag.
1159 (async_request_quit): Use check_quit_flag. Don't check
1160 immediate_quit.
1161 * exceptions.c (throw_exception): Use clear_quit_flag.
1162 * main.c (captured_main): Use clear_quit_flag.
1163 * python/python.c (clear_quit_flag, set_quit_flag)
1164 (check_quit_flag): New functions.
1165 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1166 clear_quit_flag.
1167 * remote.c (remote_wait_as): Use check_quit_flag,
1168 clear_quit_flag.
1169 (remote_start_remote): Call QUIT.
1170 * symfile.c (load_progress): Use check_quit_flag.
1171 * top.c (command_loop): Use clear_quit_flag.
1172 (command_line_input): Call QUIT.
1173 * utils.c (quit_flag): Conditionally define.
1174 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1175 functions.
1176 (prompt_for_continue): Call QUIT. Use quit, not
1177 async_request_quit.
1178 * remote-mips.c (mips_expect_timeout): Call QUIT.
1179 * monitor.c (monitor_expect): Call QUIT.
1180
1181 2012-08-22 Tom Tromey <tromey@redhat.com>
1182
1183 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1184 (async_init_signals): Update.
1185 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1186 (SIGWINCH_HANDLER_BODY): Remove.
1187
1188 2012-08-22 Tom Tromey <tromey@redhat.com>
1189
1190 * jit.c (jit_object_close_impl): Don't malloc the objfile
1191 name.
1192 * objfiles.c (allocate_objfile): Don't malloc the objfile
1193 name.
1194 (free_objfile): Don't free the objfile name.
1195 * objfiles.h (struct objfile) <name>: Update comment.
1196 * symfile.c (reread_symbols): Fix reference counting. Don't
1197 malloc objfile name.
1198
1199 2012-08-22 Tom Tromey <tromey@redhat.com>
1200
1201 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1202 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1203 (symfile_bfd_open): Likewise.
1204 (generic_load): Likewise.
1205 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1206 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1207 gdb_bfd_open.
1208 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1209 Use gdb_bfd_open.
1210 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1211 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1212 (pmon_load_fast): Likewise.
1213 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1214 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1215 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1216 (macho_check_dsym): Likewise.
1217 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1218 (m32r_upload_command): Likewise.
1219 * gdb_bfd.h (gdb_bfd_cache): Declare.
1220 * gdb_bfd.c (struct gdb_bfd_data): New.
1221 (gdb_bfd_cache): New global.
1222 (struct gdb_bfd_cache_search): New.
1223 (hash_bfd): New function.
1224 (eq_bfd): Likewise.
1225 (gdb_bfd_open): Likewise.
1226 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1227 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1228 gdb_bfd_data.
1229 * exec.c (exec_file_attach): Use gdb_bfd_open.
1230 * dsrec.c (load_srec): Use gdb_bfd_open.
1231
1232 2012-08-22 Tom Tromey <tromey@redhat.com>
1233
1234 * dwarf2read.c (macro_start_file): Update.
1235 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1236 (free_objfile_per_bfd_storage): Destroy macro_cache.
1237 (allocate_objfile, free_objfile): Update.
1238 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1239 New field.
1240 (struct objfile) <macro_cache>: Remove.
1241 * symfile.c (reread_symbols): Update.
1242 * symmisc.c (print_symbol_bcache_statistics): Update.
1243 (print_objfile_statistics): Update.
1244
1245 2012-08-22 Tom Tromey <tromey@redhat.com>
1246
1247 * elfread.c (elf_symtab_read): Update.
1248 * objfiles.c (objfiles_bfd_data): New global.
1249 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1250 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1251 (allocate_objfile, free_objfile): Update.
1252 (_initialize_objfiles): Initialize objfiles_bfd_data.
1253 * objfiles.h (struct objfile_per_bfd_storage): New.
1254 (struct objfile) <per_bfd>: New field.
1255 <filename_cache>: Remove.
1256 (set_objfile_per_bfd): Declare.
1257 * symfile.c (reread_symbols): Update. Call
1258 set_objfile_per_bfd.
1259 (allocate_symtab): Update.
1260 * symmisc.c (print_symbol_bcache_statistics): Update.
1261 (print_objfile_statistics): Print the size of the BFD obstack.
1262
1263 2012-08-22 Tom Tromey <tromey@redhat.com>
1264
1265 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1266 * gdb_bfd.c: Use DEFINE_REGISTRY.
1267 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1268 (gdb_bfd_ref): Call bfd_alloc_data.
1269 (gdb_bfd_unref): Call bfd_free_data.
1270
1271 2012-08-22 Tom Tromey <tromey@redhat.com>
1272
1273 * registry.h (struct registry_fields): New.
1274 (REGISTRY_FIELDS): Redefine.
1275 (REGISTRY_ACCESS_FIELD): New macro.
1276 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1277 functions.
1278
1279 2012-08-22 Tom Tromey <tromey@redhat.com>
1280
1281 * auto-load.c (_initialize_auto_load): Update.
1282 * solib-svr4.c (_initialize_svr4_solib): Update
1283 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1284 * solib-darwin.c (_initialize_darwin_solib): Update.
1285 * registry.h: New file.
1286 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1287 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1288 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1289 (register_program_space_data_with_cleanup)
1290 (register_program_space_data, program_space_alloc_data)
1291 (clear_program_space_data, set_program_space_data)
1292 (program_space_data): Don't declare.
1293 * progspace.c: Use DEFINE_REGISTRY.
1294 (struct program_space_data, struct
1295 program_space_data_registration, struct
1296 program_space_data_registry, program_space_data_registry)
1297 (register_program_space_data_with_cleanup)
1298 (register_program_space_data, program_space_alloc_data)
1299 (program_space_free_data, clear_program_space_data)
1300 (set_program_space_data, program_space_data): Remove.
1301 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1302 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1303 (register_objfile_data_with_cleanup, register_objfile_data)
1304 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1305 declare.
1306 * objfiles.c: Use DEFINE_REGISTRY.
1307 (struct objfile_data, struct objfile_data_registration, struct
1308 objfile_data_registry, objfile_data_registry)
1309 (register_objfile_data_with_cleanup, register_objfile_data)
1310 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1311 (set_objfile_data, objfile_data): Remove.
1312 (_initialize_objfiles): Update.
1313 * jit.c (_initialize_jit): Update.
1314 * inflow.c (_initialize_inflow): Update.
1315 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1316 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1317 (register_inferior_data_with_cleanup, register_inferior_data)
1318 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1319 declare.
1320 * inferior.c: Use DEFINE_REGISTRY.
1321 (struct inferior_data, struct inferior_data_registration, struct
1322 inferior_data_registry, inferior_data_registry)
1323 (register_inferior_data_with_cleanup, register_inferior_data)
1324 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1325 (set_inferior_data, inferior_data): Remove.
1326 * auxv.c (_initialize_auxv): Update.
1327 * ada-lang.c (_initialize_ada_language): Update.
1328 * breakpoint.c (_initialize_breakpoint): Update.
1329 * i386-nat.c (i386_use_watchpoints): Update.
1330
1331 2012-08-22 Tom Tromey <tromey@redhat.com>
1332
1333 * exec.c (exec_close, exec_file_attach): Update.
1334 (add_to_section_table): Initialize 'key' field.
1335 (add_target_sections, remove_target_sections): Add 'key' argument.
1336 * exec.h (add_target_sections, remove_target_sections): Add
1337 'key' argument.
1338 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1339 (reload_shared_libraries_1): Update.
1340 * target.h (struct target_section) <key>: New field.
1341
1342 2012-08-22 Tom Tromey <tromey@redhat.com>
1343
1344 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1345
1346 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1347
1348 * symfile.c (allocate_symtab): Use host_address_to_string
1349 function instead of cast of pointer to long which is not
1350 compatible with x86_64-w64-mingw32 build.
1351
1352 2012-08-19 Andrew Pinski <apinski@cavium.com>
1353
1354 * mips-tdep.c (is_octeon): New function.
1355 (is_octeon_bbit_op): New function.
1356 (mips32_next_pc): Handle Octeon's bbit instructions.
1357 (mips32_instruction_has_delay_slot): Likewise.
1358
1359 2012-08-19 Andrew Pinski <apinski@cavium.com>
1360
1361 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1362 before the function.
1363
1364 2012-08-19 Andrew Pinski <apinski@cavium.com>
1365
1366 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1367
1368 2012-08-19 Keith Seitz <keiths@redhat.com>
1369
1370 PR c++/14365
1371 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1372 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1373
1374 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1375
1376 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1377 The typo broke "make TAGS".
1378
1379 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1380
1381 GDB 7.5 released.
1382
1383 2012-08-17 Keith Seitz <keiths@redhat.com>
1384
1385 PR c++/13356
1386 * gdbtypes.c (strict_type_checking): New variable.
1387 (show_strict_type_checking): New function.
1388 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1389 if strict type checking is disabled.
1390 (_initialize_gdbtypes): Add "check type" subcommand.
1391 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1392
1393 2012-08-17 Keith Seitz <keiths@redhat.com>
1394
1395 * language.h (type_mode): Remove.
1396 (type_check): Remove.
1397 (struct language_defn): Remove la_type_check.
1398 (STRICT_TYPE): Remove unused macro.
1399 (type_error): Remove.
1400 * language.c (set_type_range_case): Renamed to ...
1401 (set_range_case): ... this. Update all callers.
1402 Remove type_mode/type_check.
1403 (type_mode): Remove.
1404 (type_check): Remove.
1405 (show_type_command): Remove.
1406 (set_type_command): Remove.
1407 (language_info): Remove type checking output.
1408 (type_error): Remove unused function.
1409 (range_error): Update comment.
1410 (unknown_language_defn): Remove la_type_check.
1411 (auto_language_defn): Likewise.
1412 (local_language_defn): Likewise.
1413 (_initialize_language): Remove "check type" subcommand.
1414 * ada-lang.c (ada_language_defn): Remove la_type_check.
1415 * c-lang.c (c_language_defn): Likewise.
1416 (cplus_language_defn): Likewise.
1417 (asm_language_defn): Likewise.
1418 (minimal_language_defn): Likewise.
1419 * d-lang.c (d_language_defn): Likewise.
1420 * f-lang.c (f_language_defn): Likewise.
1421 * go-lang.c (go_language_defn): Likewise.
1422 * jv-lang.c (java_language_defn): Likewise.
1423 * m2-lang.c (m2_language_defn): Likewise.
1424 * objc-lang.c (objc_language_defn): Likewise.
1425 * opencl-lang.c (opencl_language_defn): Likewise.
1426 * p-lang.c (pascal_language_defn): Likewise.
1427
1428 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1429
1430 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1431
1432 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1433
1434 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1435 New function.
1436 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1437 using the regache. Use ia64_hpux_get_register_from_save_state_t
1438 to access the bsp and bspstore registers if not.
1439
1440 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1441
1442 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1443 * breakpoint.c (detach_breakpoints): Change pid parameter into
1444 a ptid. Adjust code accordingly.
1445 * infrun.c (handle_inferior_event): Delete variable child_pid.
1446 Update call to detach_breakpoints to pass the child ptid for
1447 fork events.
1448 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1449 assert that inferior_ptid's lwp is zero.
1450 (linux_handle_extended_wait): Update call to detach_breakpoints.
1451 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1452 detach_breakpoints.
1453
1454 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1455
1456 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1457 parent, only call detach_breakpoints if tts.tts_event ==
1458 TTEVT_VFORK.
1459
1460 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1461
1462 * dwarf2-frame.c (dwarf2_frame_cache): Use
1463 get_frame_address_in_block instead of get_frame_pc as
1464 the bound for executing the frame's FDE.
1465
1466 2012-08-16 Yao Qi <yao@codesourcery.com>
1467
1468 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1469 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1470 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1471 (c_type_print_varspec_suffix): Likewise.
1472 * eval.c (evaluate_subexp_standard): Likewise.
1473 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1474 (f_type_print_varspec_suffix): Likewise.
1475 * gdbtypes.c (is_scalar_type): Likewise.
1476 (recursive_dump_type): Likewise.
1477 * infcall.c (value_arg_coerce): Likewise.
1478 * m2-valprint.c (m2_val_print): Likewise.
1479 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1480 (pascal_type_print_varspec_suffix): Likewise.
1481 (pascal_type_print_base): Likewise.
1482 * p-valprint.c (pascal_val_print): Likewise.
1483 (pascal_val_print): Likewise.
1484 * valops.c (value_slice): Likewise.
1485 * valprint.c (scalar_type_p): Likewise.
1486 * valarith.c (value_bitstring_subscript): Remove.
1487 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1488 Remove comment on TYPE_CODE_BITSTRING.
1489
1490 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1491 TYPE_CODE_BITSTRING.
1492
1493 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1494 slot 0.
1495
1496 2012-08-16 Yao Qi <yao@codesourcery.com>
1497
1498 * tracepoint.c (trace_find_none_command): Remove.
1499 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1500
1501 2012-08-16 Yao Qi <yao@codesourcery.com>
1502
1503 * remote.c (handle_notification): Remove parameter 'length'.
1504 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1505
1506 2012-08-15 Keith Seitz <keiths@redhat.com>
1507
1508 * gdbtypes.c (opaque_type_resolution): Make static.
1509 Add missing comment.
1510 (overload_debug): Add missing comment.
1511 (show_opaque_type_resolution): Likewise.
1512 (show_overload_debug): Likewise.
1513 (print_bit_vector): Remove unnecessary forward declaration.
1514 (print_arg_types): Likewise.
1515 (dump_fn_fieldlists): Likewise.
1516 (print_cplus_stuff): Likewise.
1517
1518 2012-08-15 Tom Tromey <tromey@redhat.com>
1519
1520 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1521 (gdb_bfd_ref): Initialize new field.
1522 (gdb_bfd_unref): Unref the archive BFD.
1523 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1524 parent archive.
1525
1526 2012-08-15 Tom Tromey <tromey@redhat.com>
1527
1528 PR python/14387:
1529 * python/py-bpevent.c (create_breakpoint_event_object): Update
1530 comment.
1531 * python/py-event.c (evpy_add_attribute): Update comment.
1532 * python/py-exitedevent.c (create_exited_event_object): Fix
1533 reference counting and error handling.
1534 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1535 Fix reference counting.
1536 * python/py-signalevent.c (create_signal_event_object): Fix
1537 reference counting and error handling.
1538 * python/py-stopevent.c (emit_stop_event): Fix reference
1539 counting.
1540 * python/py-threadevent.c (get_event_thread): Return a
1541 borrowed reference.
1542 * python/py-type.c (convert_field): Fix reference counting.
1543
1544 2012-08-15 Tom Tromey <tromey@redhat.com>
1545
1546 * dwarf2read.c (dwarf_decode_macro_bytes)
1547 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1548 as hash key.
1549
1550 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1551
1552 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1553 stepi, nexti, finish, next, step, jump, and continue commands.
1554 * infrun.c (_initialize_infrun): Update help text for the handle
1555 command.
1556
1557 2012-08-14 Doug Evans <dje@google.com>
1558
1559 * gdbtypes.c (struct extra): Delete, unused.
1560
1561 * gdbtypes.c: Whitespace cleanup.
1562 (address_space_name_to_int): Remove "extern" from definition.
1563 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1564
1565 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1566 TYPE_POINTER_TYPE (type).
1567
1568 2012-08-14 Gary Benson <gbenson@redhat.com>
1569
1570 * solib-svr4.c (svr4_free_library_list): Use free_so.
1571
1572 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1573
1574 * .gitignore: Add go-exp.c.
1575
1576 2012-08-13 Doug Evans <dje@google.com>
1577
1578 * value.c (show_convenience): Tweak comment.
1579 (_initialize_values): Mention convenience functions in the help text
1580 for "show convenience".
1581
1582 2012-08-13 Yao Qi <yao@codesourcery.com>
1583
1584 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1585 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1586 TERNOP_SLICE_COUNT.
1587 * eval.c (evaluate_subexp_standard): Likewise.
1588 * expprint.c (print_subexp_standard): Likewise.
1589 (dump_subexp_body_standard): Likewise.
1590 * parse.c (operator_length_standard): Likewise.
1591
1592 2012-08-13 Yao Qi <yao@codesourcery.com>
1593
1594 * std-operator.def: Remove OP_BITSTRING.
1595 * breakpoint.c (watchpoint_exp_is_const): Update.
1596 * eval.c (evaluate_subexp_standard): Remove handling to
1597 OP_BITSTRING.
1598 * expprint.c (print_subexp_standard): Likewise.
1599 (dump_subexp_body_standard): Likewise.
1600 * parse.c (operator_length_standard): Likewise.
1601 * valops.c (value_bitstring): Remove.
1602 * value.h: Remove the declaration of 'value_bitstring'.
1603
1604 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1605
1606 * linespec.c (find_methods): Remove unused variables `i1' and
1607 `name_len'.
1608 (decode_line_full): Likewise for `arg_start'.
1609
1610 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1611
1612 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1613 (zlib_decompress_section): Likewise for `section_data'.
1614 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1615
1616 2012-08-10 Doug Evans <dje@google.com>
1617
1618 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1619 * NEWS: Document them.
1620 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1621 function/strfns.py.
1622 * python/py-type.c (typy_array_1): New function.
1623 (typy_array): Call it.
1624 (typy_vector): New function.
1625 (type_object_methods): Add "vector".
1626 * python/lib/gdb/function/__init__.py: New file.
1627 * python/lib/gdb/function/strfns.py: New file.
1628
1629 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1630
1631 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1632 for TYPE_FIELD_BITPOS.
1633 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1634
1635 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1636
1637 PR cli/10436:
1638 * common/vec.h (VEC_merge): Define.
1639 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1640 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1641 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1642 * completer.c: Include gdb_signals.h.
1643 (signal_completer): Define.
1644 * completer.h (signal_completer): Add prototype.
1645 * infcmd.c (_initialize_infcmd): Assign the command
1646 completer for "signal" to handle_completer.
1647 * infrun.c: Include completer.h.
1648 (handle_completer): Define.
1649 (_initialize_infrun): Declare a new local variable c. Store the
1650 result of add_com("handle") to it. Assign the command
1651 completer for "handle" to handle_completer.
1652
1653 2012-08-09 Yao Qi <yao@codesourcery.com>
1654
1655 * cli/cli-decode.c (set_cmd_prefix): New.
1656 (lookup_cmd_for_prefixlist): New.
1657 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1658 of each cmd_list_element in *prefixlist.
1659 (add_setshow_cmd_full): set_cmd_prefix.
1660 (add_alias_cmd): Likewise.
1661 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1662 Declare 'auto_boolean_enums'.
1663 * cli/cli-setshow.c: Include "observer.h".
1664 (notify_command_param_changed_p): New.
1665 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1666 Remove 'static'.
1667 (do_setshow_command): Split it to ...
1668 (do_set_command, do_show_command): ... them. New.
1669 (do_set_command): Call observer_notify_command_param_changed if
1670 notify_command_param_changed_p returns true.
1671 (cmd_show_list): Caller update.
1672 * auto-load.c (set_auto_load_cmd): Likewise.
1673 * remote.c (show_remote_cmd): Likewise.
1674 * cli/cli-setshow.h: Update declarations.
1675 * top.c (execute_command): Call do_set_command and do_show_command.
1676
1677 * NEWS: Mention new MI notification.
1678 * mi/mi-interp.c: Declare mi_command_param_changed.
1679 (mi_interpreter_init): Attach mi_command_param_changed to
1680 observer command_param_changed.
1681 (mi_command_param_changed): New.
1682 Remove mi_suppress_breakpoint_notifications.
1683 Define global variable mi_suppress_notification.
1684 (mi_breakpoint_created): Update.
1685 (mi_breakpoint_deleted): Likewise.
1686 (mi_breakpoint_modified): Likewise.
1687 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1688 'gdb-set' and set mi_suppress_notification.
1689 * mi/mi-main.h: (mi_suppress_notification): New struct.
1690
1691 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1692 Jan Kratochvil <jan.kratochvil@redhat.com>
1693
1694 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1695
1696 2012-08-09 Yao Qi <yao@codesourcery.com>
1697
1698 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1699 (skiplist): Move it to skip.c.
1700 (init_cmd_lists): Remove code setting enablebreaklist and
1701 skiplist to NULL.
1702 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1703 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1704 skiplist.
1705 * gdbcmd.h: Likewise.
1706 * skip.c (_initialize_step_skip): Move 'skiplist' from
1707 cli/cli-cmds.c.
1708
1709 2012-08-09 Yao Qi <yao@codesourcery.com>
1710
1711 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1712 * gnu-nat.c, symfile.c: Likewise.
1713
1714 2012-08-08 Aaron Gamble <agamble@google.com>
1715
1716 * utils.c (prompt_for_continue_wait_time): New static global.
1717 (make_command_stats_cleanup): Initialize it.
1718 (report_command_stats): Subtract time waiting for user.
1719 (prompt_for_continue): Track time waiting for user.
1720 (defaulted_query): Track time waiting for user.
1721
1722 2012-08-08 Doug Evans <dje@google.com>
1723
1724 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1725 UNOP_MEMVAL_TYPE.
1726 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1727 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1728 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1729 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1730 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1731 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1732 elt.
1733 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1734 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1735 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1736 (dump_prefix_expression): Handle OP_TYPE.
1737
1738 2012-08-08 Keith Seitz <keiths@redhat.com>
1739
1740 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1741 addr_start.
1742
1743 2012-08-08 Doug Evans <dje@google.com>
1744
1745 * linux-thread-db.c: #include "gdb_vecs.h".
1746 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1747 updated.
1748 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1749 (thread_db_load_search): Use a vector to iterate over path elements.
1750 Handle text appearing after "$pdir".
1751
1752 * gdb_string.h: Moved to ...
1753 * common/gdb_string.h: ... here.
1754 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1755 gdb_string.h and gdb_assert.h.
1756
1757 2012-08-08 Yao Qi <yao@codesourcery.com>
1758
1759 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1760 (tic6x_value_to_register): Likewise.
1761 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1762 and set_gdbarch_value_to_register.
1763
1764 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1765 Jean-Marc Saffroy <saffroy@gmail.com>
1766
1767 PR 11804
1768 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1769 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1770 * gcore.c (gcore_create_callback): New function comment. Add modified
1771 parameter. Only write modified regions. Set SEC_READONLY exactly
1772 according to MODIFIED.
1773 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1774 the passed modified value to FUNC.
1775 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1776 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1777 first. New variables modified and has_anonymous. Parse the lines of
1778 smaps file. Add the passed MODIFIED value to FUNC.
1779 * procfs.c (find_memory_regions_callback): Add the passed modified
1780 value.
1781
1782 2012-08-06 Tom Tromey <tromey@redhat.com>
1783
1784 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1785 (dwarf2_frame_cache): Use it.
1786 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1787 cache initialization constraint.
1788
1789 2012-08-06 Tom Tromey <tromey@redhat.com>
1790
1791 PR python/14386:
1792 * varobj.c (update_dynamic_varobj_children): Don't call
1793 PyIter_Check.
1794
1795 2012-08-06 Tom Tromey <tromey@redhat.com>
1796
1797 PR cli/14392:
1798 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1799
1800 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1801
1802 * NEWS: New entry for 'cd' default parameters.
1803 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1804
1805 2012-08-03 Tom Tromey <tromey@redhat.com>
1806
1807 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1808 return.
1809
1810 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1811
1812 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1813 to attempting lseek/write.
1814 (inf_child_fileio_pread): Likewise for pread.
1815
1816 2012-08-02 Yao Qi <yao@codesourcery.com>
1817
1818 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1819 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1820 add_setshow_zinteger_cmd.
1821 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1822 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1823 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1824 instead of add_setshow_zinteger_cmd.
1825 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1826 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1827 instead of add_setshow_zinteger_cmd.
1828 * frame.c (frame_debug): Add 'unsigned'.
1829 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1830 add_setshow_zinteger_cmd.
1831 * frame.h: Update the declaration of 'frame_debug'.
1832 * gdbtypes.c (overload_debug): Add 'unsigned'.
1833 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1834 add_setshow_zinteger_cmd.
1835 * inferior.h: Update declaration of 'debug_infrun'.
1836 * infrun.c (debug_infrun): Add 'unsigned'.
1837 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1838 add_setshow_zinteger_cmd.
1839 * jit.c (jit_debug): Add 'unsigned'.
1840 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1841 add_setshow_zinteger_cmd.
1842 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1843 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1844 instead of add_setshow_zinteger_cmd.
1845 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1846 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1847 add_setshow_zinteger_cmd.
1848 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1849 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1850 instead of add_setshow_zinteger_cmd.
1851 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1852 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1853 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1854 intead of add_setshow_zinteger_cmd.
1855 * mips-tdep.c (mips_debug): Add 'unsigned'.
1856 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1857 instead of add_setshow_zinteger_cmd.
1858 * monitor.c (monitor_debug): Add 'unsigned'.
1859 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1860 add_setshow_zinteger_cmd.
1861 * observer.c (observer_debug): Add 'unsigned'.
1862 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1863 add_setshow_zinteger_cmd.
1864 * parse.c (expressiondebug): Add 'unsigned'.
1865 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1866 add_setshow_zinteger_cmd.
1867 * record.c (record_debug): Add 'unsigned'.
1868 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1869 add_setshow_zinteger_cmd.
1870 * record.h: Update the declaration of 'record_debug'.
1871 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1872 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1873 add_setshow_zinteger_cmd.
1874 * serial.c (global_serial_debug_p): Add 'unsigned'.
1875 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1876 add_setshow_zinteger_cmd.
1877 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1878 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1879 add_setshow_zinteger_cmd.
1880 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1881 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1882 add_setshow_zinteger_cmd.
1883 * target.c (targetdebug): Add 'unsigned'.
1884 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1885 add_setshow_zinteger_cmd.
1886 * valops.c (overload_debug): Add 'unsigned'.
1887 * varobj.c (varobjdebug): Add 'unsigned'.
1888 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1889 add_setshow_zinteger_cmd.
1890 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1891 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1892 instead of add_setshow_zinteger_cmd.
1893
1894 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1895 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1896 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1897 instead of add_setshow_zinteger_cmd.
1898 * gdbarch.c, gdbarch.h: Re-generated.
1899
1900 2012-08-02 Yao Qi <yao@codesourcery.com>
1901
1902 * nto-tdep.c: Don't include cli/cli-decode.h and
1903 cli/cli-cmds.h.
1904 (_initialize_nto_tdep): Remove.
1905 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1906 Remove field.
1907 Remove macro nto_internal_debugging.
1908
1909 2012-08-01 Richard Henderson <rth@redhat.com>
1910
1911 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1912 (mep-*-*) [gdb_target_obs]: Likewise.
1913
1914 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1915
1916 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1917 linux_get_siginfo_type.
1918
1919 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1922 AT_ENTRY_POINT.
1923 (call_function_by_hand) <ON_STACK>: Call write_memory with
1924 gdbarch_breakpoint_from_pc, if possible.
1925 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1926 here.
1927
1928 2012-07-31 Yao Qi <yao@codesourcery.com>
1929
1930 * tracepoint.c: Add 'static' for some variables.
1931
1932 2012-07-31 Yao Qi <yao@codesourcery.com>
1933
1934 * go32-nat.c: Declare _initialize_go32_nat.
1935 * ser-go32.c: Declare _initialize_ser_dos.
1936 * top.c (do_chdir_cleanup): Add 'static'.
1937
1938 2012-07-30 Keith Seitz <keiths@redhat.com>
1939
1940 * linespec.c (linespec_lex_number): A number followed
1941 by quotes is a valid number, too.
1942
1943 2012-07-30 Tom Tromey <tromey@redhat.com>
1944
1945 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1946
1947 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1948
1949 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1950 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1951
1952 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1953
1954 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1955 invalid or reevaluated to prevent prevent references to possibly
1956 delete'd type objects being left in the varobj.
1957
1958 2012-07-27 Tom Tromey <tromey@redhat.com>
1959 Jan Kratochvil <jan.kratochvil@redhat.com>
1960
1961 * copying.awk: Print buffer-read-only and vi ro markers.
1962 * copying.c: Rebuild.
1963 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1964 * gdbarch.c, gdbarch.h: Rebuild.
1965 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1966 buffer-read-only and vi ro markers.
1967 * features/arm-with-iwmmxt.c: Rebuild.
1968 * features/arm-with-m-fpa-layout.c: Rebuild.
1969 * features/arm-with-m-vfp-d16.c: Rebuild.
1970 * features/arm-with-m.c: Rebuild.
1971 * features/arm-with-neon.c: Rebuild.
1972 * features/arm-with-vfpv2.c: Rebuild.
1973 * features/arm-with-vfpv3.c: Rebuild.
1974 * features/i386/amd64-avx-linux.c: Rebuild.
1975 * features/i386/amd64-avx.c: Rebuild.
1976 * features/i386/amd64-linux.c: Rebuild.
1977 * features/i386/amd64.c: Rebuild.
1978 * features/i386/i386-avx-linux.c: Rebuild.
1979 * features/i386/i386-avx.c: Rebuild.
1980 * features/i386/i386-linux.c: Rebuild.
1981 * features/i386/i386-mmx-linux.c: Rebuild.
1982 * features/i386/i386-mmx.c: Rebuild.
1983 * features/i386/i386.c: Rebuild.
1984 * features/i386/x32-avx-linux.c: Rebuild.
1985 * features/i386/x32-avx.c: Rebuild.
1986 * features/i386/x32-linux.c: Rebuild.
1987 * features/i386/x32.c: Rebuild.
1988 * features/mips-dsp-linux.c: Rebuild.
1989 * features/mips-linux.c: Rebuild.
1990 * features/mips64-dsp-linux.c: Rebuild.
1991 * features/mips64-linux.c: Rebuild.
1992 * features/rs6000/powerpc-32.c: Rebuild.
1993 * features/rs6000/powerpc-32l.c: Rebuild.
1994 * features/rs6000/powerpc-403.c: Rebuild.
1995 * features/rs6000/powerpc-403gc.c: Rebuild.
1996 * features/rs6000/powerpc-405.c: Rebuild.
1997 * features/rs6000/powerpc-505.c: Rebuild.
1998 * features/rs6000/powerpc-601.c: Rebuild.
1999 * features/rs6000/powerpc-602.c: Rebuild.
2000 * features/rs6000/powerpc-603.c: Rebuild.
2001 * features/rs6000/powerpc-604.c: Rebuild.
2002 * features/rs6000/powerpc-64.c: Rebuild.
2003 * features/rs6000/powerpc-64l.c: Rebuild.
2004 * features/rs6000/powerpc-7400.c: Rebuild.
2005 * features/rs6000/powerpc-750.c: Rebuild.
2006 * features/rs6000/powerpc-860.c: Rebuild.
2007 * features/rs6000/powerpc-altivec32.c: Rebuild.
2008 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2009 * features/rs6000/powerpc-altivec64.c: Rebuild.
2010 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2011 * features/rs6000/powerpc-cell32l.c: Rebuild.
2012 * features/rs6000/powerpc-cell64l.c: Rebuild.
2013 * features/rs6000/powerpc-e500.c: Rebuild.
2014 * features/rs6000/powerpc-e500l.c: Rebuild.
2015 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2016 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2017 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2018 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2019 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2020 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2021 * features/rs6000/powerpc-vsx32.c: Rebuild.
2022 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2023 * features/rs6000/powerpc-vsx64.c: Rebuild.
2024 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2025 * features/rs6000/rs6000.c: Rebuild.
2026 * features/s390-linux32.c: Rebuild.
2027 * features/s390-linux32v1.c: Rebuild.
2028 * features/s390-linux32v2.c: Rebuild.
2029 * features/s390-linux64.c: Rebuild.
2030 * features/s390-linux64v1.c: Rebuild.
2031 * features/s390-linux64v2.c: Rebuild.
2032 * features/s390x-linux64.c: Rebuild.
2033 * features/s390x-linux64v1.c: Rebuild.
2034 * features/s390x-linux64v2.c: Rebuild.
2035 * features/tic6x-c62x-linux.c: Rebuild.
2036 * features/tic6x-c62x.c: Rebuild.
2037 * features/tic6x-c64x-linux.c: Rebuild.
2038 * features/tic6x-c64x.c: Rebuild.
2039 * features/tic6x-c64xp-linux.c: Rebuild.
2040 * features/tic6x-c64xp.c: Rebuild.
2041
2042 2012-07-27 Tom Tromey <tromey@redhat.com>
2043
2044 * c-exp.y (classify_name): Avoid assignment in condition.
2045
2046 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2047
2048 * amd64-windows-tdep.c: Include "frame.h".
2049 (amd64_windows_skip_trampoline_code): New function.
2050 (amd64_windows_init_abi): Add trampoline registration.
2051
2052 2012-07-27 Yao Qi <yao@codesourcery.com>
2053
2054 * tracepoint.c (cur_traceframe_number): Remove.
2055 (set_tfile_traceframe): Remove.
2056 (tfile_trace_find, tfile_fetch_registers): Update callers.
2057 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2058 (tfile_open, tfile_trace_find): Likewise.
2059
2060 2012-07-27 Yao Qi <yao@codesourcery.com>
2061
2062 * thread.c (switch_to_thread): Don't call registers_changed.
2063
2064 2012-07-26 Tom Tromey <tromey@redhat.com>
2065
2066 * Makefile.in (SFILES): Remove objc-exp.y.
2067 (YYFILES): Remove objc-exp.c.
2068 (YYOBJ): Remove objc-exp.o.
2069 (local-maintainer-clean): Don't mention objc-exp.c.
2070 * c-exp.y: Include objc-lang.h.
2071 (%union) <class>: New field.
2072 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2073 (exp): Clone subscript production for OBJC_LBRAC. Add various
2074 Objective C productions.
2075 (msglist, msgarglist, msgarg): New productions.
2076 (array_mod, func_mod, operator): Clone productions for
2077 OBJC_LBRAC.
2078 (parse_string_or_char): Handle '@' strings.
2079 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2080 (classify_name): Check la_name_of_this. Recognize ObjC class
2081 names.
2082 * objc-exp.y: Remove.
2083 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2084 * objc-lang.h (objc_parse, objc_error): Don't declare.
2085
2086 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2087
2088 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2089
2090 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2091
2092 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2093 and decrement.
2094
2095 2012-07-26 Tom Tromey <tromey@redhat.com>
2096
2097 * copying.c: Rebuild.
2098 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2099 'no_class'.
2100
2101 2012-07-26 Tom Tromey <tromey@redhat.com>
2102
2103 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2104 immediate_quit.
2105 (print_objfile_statistics): Likewise.
2106 (maintenance_print_symbols): Likewise.
2107 (maintenance_print_msymbols): Likewise.
2108 (maintenance_print_objfiles): Likewise.
2109 * psymtab.c (print_partial_symbols): Call QUIT.
2110 (maintenance_print_psymbols): Likewise. Don't modify
2111 immediate_quit.
2112 * copying.c (show_copying_command): Don't modify immediate_quit.
2113 (show_warranty_command): Likewise.
2114 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2115
2116 2012-07-26 Keith Seitz <keiths@redhat.com>
2117
2118 * linespec.c (linespec_lexer_lex_number): The input
2119 is also a valid number if the next character is a comma
2120 or colon.
2121
2122 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2123
2124 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2125 configure options.
2126
2127 2012-07-26 Tristan Gingold <gingold@adacore.com>
2128
2129 * machoread.c: Include gdb_bfd.h.
2130
2131 2012-07-26 Tristan Gingold <gingold@adacore.com>
2132
2133 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2134 offset.
2135
2136 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2137
2138 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2139 SIZE to size_t.
2140 (dwarf2_evaluate_loc_desc): Likewise.
2141 (dwarf2_loc_desc_needs_frame): Likewise.
2142 (locexpr_describe_location_1): Likewise.
2143 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2144 size_t.
2145 (struct dwarf2_loclist_baton): Likewise.
2146 * dwarf2read.c (struct dwarf_block): Likewise.
2147 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2148 (decode_locdesc): Expand SIZE and I to size_t.
2149
2150 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2153
2154 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2155
2156 * doublest.c (convert_doublest_to_floatformat): If the exponent
2157 is too small, treat the value as zero. If the exponent is too
2158 large, treat the value as infinity.
2159
2160 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2161
2162 * configure.ac: Add --enable-lmcheck configure option.
2163 * configure: Regenerate.
2164
2165 2012-07-25 Tom Tromey <tromey@redhat.com>
2166
2167 * NEWS: Mention maint info bfds.
2168 * gdb_bfd.c (all_bfds): New global.
2169 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2170 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2171 New functions.
2172
2173 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2174
2175 * configure.tgt: Add v850*-*-rtems*.
2176
2177 2012-07-25 Tom Tromey <tromey@redhat.com>
2178
2179 * macrotab.c (macro_bcache_str): Remove cast.
2180
2181 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2182
2183 * linespec.c (linespec_lexer_lex_number): Update comments,
2184 change the return and add check to make sure the input is
2185 the decimal numbers.
2186 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2187 false, call linespec_lexer_lex_string.
2188
2189 2012-07-24 Tom Tromey <tromey@redhat.com>
2190
2191 * symfile.c (symbol_file_add): Don't open BFD twice.
2192
2193 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2194
2195 * breakpoint.c (create_breakpoint): Store condition for pending
2196 breakpoints.
2197
2198 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2199
2200 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2201 (m68k_return_value): Handle complex types like structures.
2202 (m68k_svr4_return_value): Likewise.
2203
2204 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2205
2206 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2207 parameters to bfd_get_section_name.
2208
2209 2012-07-24 Yao Qi <yao@codesourcery.com>
2210
2211 * cli/cli-setshow.c: Handle case 'var_uinteger'
2212 and 'var_zuninteger' together. Handle case 'var_integer' and
2213 'var_zinteger' together.
2214
2215 2012-07-23 Keith Seitz <keiths@redhat.com>
2216
2217 * linespec.c (convert_linespec_to_sal): Don't add
2218 any symbols to the result vector if symbol_to_sal
2219 returns zero.
2220
2221 2012-07-23 Keith Seitz <keiths@redhat.com>
2222
2223 * linespec.c (decode_objc): Record the function name
2224 in the linespec.
2225
2226 2012-07-23 Tom Tromey <tromey@redhat.com>
2227
2228 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2229 counting.
2230 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2231 (map_vmap): Acquire a reference to the BFD.
2232
2233 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2234
2235 * p-valprint.c (pascal_object_print_value): Replace potentially
2236 unsafe alloca with xmalloc/xfree.
2237 * valops.c (search_struct_method): Likewise.
2238
2239 2012-07-23 Tom Tromey <tromey@redhat.com>
2240
2241 * solib-svr4.c (enable_break): Update.
2242 * bfd-target.h (target_bfd_reopen): Update documentation.
2243
2244 2012-07-23 Tom Tromey <tromey@redhat.com>
2245
2246 * symfile.c (separate_debug_file_exists): Update.
2247 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2248 (reread_symbols): Update.
2249 * elfread.c (build_id_verify): Update.
2250 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2251 bfd_open_maybe_remote.
2252
2253 2012-07-23 Tom Tromey <tromey@redhat.com>
2254
2255 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2256
2257 2012-07-23 Tom Tromey <tromey@redhat.com>
2258
2259 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2260 and 'abfd'.
2261 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2262 and 'abfd'.
2263 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2264 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2265 'abfd'.
2266 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2267 * objfiles.c (allocate_objfile): Acquire a new reference.
2268 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2269 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2270 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2271 a cleanup for 'nbfd'.
2272 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2273 for 'nbfd'.
2274 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2275 make a cleanup for 'abfd'.
2276 (symbol_file_add): Make a BFD cleanup.
2277
2278 2012-07-23 Tom Tromey <tromey@redhat.com>
2279
2280 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2281 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2282 * corelow.c (core_open): Use gdb_bfd_fopen.
2283 * dsrec.c (load_srec): Use gdb_bfd_openr.
2284 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2285 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2286 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2287 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2288 (gdb_bfd_fdopenr): New functions.
2289 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2290 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2291 (gdb_bfd_fdopenr): Declare.
2292 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2293 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2294 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2295 gdb_bfd_openr_next_archived_file.
2296 (macho_check_dsym): Use gdb_bfd_openr.
2297 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2298 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2299 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2300 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2301 gdb_bfd_openr.
2302 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2303 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2304 gdb_bfd_openr_next_archived_file.
2305 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2306 Use gdb_bfd_openr.
2307 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2308 gdb_bfd_openr.
2309 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2310 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2311 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2312 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2313 (symfile_bfd_open): Use gdb_bfd_fopen.
2314 (generic_load): Use gdb_bfd_openr.
2315 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2316
2317 2012-07-23 Tom Tromey <tromey@redhat.com>
2318
2319 * bfd-target.c (target_bfd_reopen): Update.
2320 * cli/cli-dump.c (bfd_openr_with_cleanup)
2321 (bfd_openw_with_cleanup): Update.
2322 * corelow.c (core_open): Update.
2323 * dsrec.c (load_srec): Update.
2324 * exec.c (exec_file_attach): Update.
2325 * gcore.c (create_gcore_bfd): Update.
2326 * gdb_bfd.c (gdb_bfd_ref): Return void.
2327 (gdb_bfd_open): Update.
2328 * gdb_bfd.h (gdb_bfd_ref): Return void.
2329 Update comments.
2330 * jit.c (jit_bfd_try_read_symtab): Update.
2331 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2332 * machoread.c (macho_symfile_read_all_oso): Update.
2333 (macho_check_dsym): Update.
2334 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2335 * remote-m32r-sdi.c (m32r_load): Update.
2336 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2337 * rs6000-nat.c (add_vmap): Update.
2338 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2339 Update.
2340 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2341 * solib-spu.c (spu_bfd_open): Update.
2342 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2343 * spu-linux-nat.c (spu_bfd_open): Update.
2344 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2345 (generic_load): Update.
2346 * windows-nat.c (windows_make_so): Update.
2347
2348 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2349
2350 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2351
2352 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2353
2354 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2355 SIGTRAMP_FRAME unwinding.
2356
2357 2012-07-20 Doug Evans <dje@google.com>
2358
2359 * NEWS: Document new options "set/show use-deprecated-index-sections",
2360 and delete reference to --use-deprecated-index-sections.
2361 * symfile.h (use_deprecated_index_sections): Delete.
2362 * dwarf2read.c (use_deprecated_index_sections): Make static.
2363 (read_index_from_section): Update wording of how to load
2364 deprecated index sections.
2365 (_initialize_dwarf2_read): New options
2366 "set/show use-deprecated-index-sections".
2367 * main.c (captured_main): Delete --use-deprecated-index-sections.
2368
2369 2012-07-20 Pedro Alves <palves@redhat.com>
2370
2371 PR threads/11692
2372 PR gdb/12203
2373
2374 * infrun.c (handle_inferior_event) <new thread>: Don't special
2375 case minus_one_ptid.
2376 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2377 * linux-thread-db.c (thread_get_info_callback): Don't return early
2378 if the thread is zombie.
2379 (thread_from_lwp): Change return type to void. Rewrite stale
2380 comment.
2381 (attach_thread): Don't return early if the thread is zombie,
2382 instead set its "dying" flag.
2383 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2384 (find_new_threads_callback): Don't return early if the thread is
2385 zombie.
2386
2387 2012-07-20 Pedro Alves <palves@redhat.com>
2388
2389 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2390 * target.c (target_wait): Likewise.
2391 (str_comma_list_concat_elem, do_option, target_options_to_string):
2392 New functions.
2393 * target.h (target_options_to_string): Declare.
2394
2395 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2396 Tom Tromey <tromey@redhat.com>
2397
2398 * dwarf2read.c (dwarf_decode_macros)
2399 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2400 DW_MACRO_GNU_transparent_include_alt>: New cases.
2401 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2402 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2403
2404 2012-07-20 Tom Tromey <tromey@redhat.com>
2405
2406 * dwarf2read.c (try_open_dwo_file): Don't call
2407 gdb_bfd_stash_filename.
2408
2409 2012-07-20 Pedro Alves <palves@redhat.com>
2410
2411 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2412 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2413 (i386_process_record): Tweak description comments.
2414
2415 2012-07-20 Pedro Alves <palves@redhat.com>
2416
2417 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2418 (i386_process_record): Use record_read_memory.
2419 * record.c (record_read_memory): New function.
2420 (record_arch_list_add_mem, record_exec_insn): Use
2421 record_read_memory.
2422 * record.h (record_read_memory): Declare.
2423
2424 2012-07-20 Yao Qi <yao@codesourcery.com>
2425
2426 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2427 NULL for xfree.
2428
2429 2012-07-19 Pedro Alves <palves@redhat.com>
2430
2431 * record.c (record_resume): Ask the target beneath to report all
2432 signals.
2433
2434 2012-07-19 Doug Evans <dje@google.com>
2435
2436 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2437 there's no section at address zero.
2438 (dwarf2_record_block_ranges): Ditto.
2439
2440 2012-07-19 Yao Qi <yao@codesourcery.com>
2441
2442 * command.h, remote.c: Fix a typo in comment.
2443
2444 2012-07-19 Tom Tromey <tromey@redhat.com>
2445
2446 PR exp/13206:
2447 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2448 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2449 OP_DECLTYPE>: New cases.
2450 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2451 (type_exp): Add new productions.
2452 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2453 and decltype.
2454 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2455 New case.
2456 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2457 OP_DECLTYPE>: New case.
2458 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2459 New case.
2460 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2461 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2462
2463 2012-07-19 Tom Tromey <tromey@redhat.com>
2464
2465 * c-exp.y (enum token_flags): New.
2466 (struct token) <cxx_only>: Remove.
2467 <flags>: New field.
2468 (tokentab3, tokentab2, ident_tokens): Update.
2469 (lex_one_token): Update. Handle FLAG_SHADOW.
2470
2471 2012-07-19 Tom Tromey <tromey@redhat.com>
2472
2473 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2474 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2475 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2476 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2477 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2478 type_exp production where appropriate.
2479 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2480 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2481 <UNOP_MEMVAL_TYPE>: New case.
2482 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2483 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2484 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2485 <UNOP_MEMVAL_TYPE>: New case.
2486 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2487 UNOP_REINTERPRET_CAST>: Update.
2488 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2489 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2490 UNOP_REINTERPRET_CAST>: Update.
2491 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2492 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2493 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2494 constants.
2495
2496 2012-07-19 Yao Qi <yao@codesourcery.com>
2497 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2500 and case 'var_optional_filename' together.
2501 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2502 instead of add_setshow_optional_filename_cmd for setshow command
2503 'args'. Set completer for 'set args'.
2504
2505 2012-07-18 Doug Evans <dje@google.com>
2506
2507 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2508 * common/gdb_vecs.c: New file, contents from utils.c.
2509 * common/host-defs.h: New file, contents from defs.h.
2510 * utils.h: New file, contents from defs.h.
2511 * defs.h: Move all declarations of objects defined in utils.c
2512 to utils.h (except QUIT() and related).
2513 #include "utils.h", "host-defs.h".
2514 * probe.h (probe_p): Move here from gdb_vecs.h.
2515 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2516 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2517 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2518 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2519 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2520 (COMMON_OBS): Add gdb_vecs.o.
2521 (gdb_vecs.o): New rule.
2522
2523 2012-07-18 Keith Seitz <keiths@redhat.com>
2524
2525 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2526 parameter. If non-zero, use SYMNAME as the canonical name
2527 for the SaL.
2528 Update all callers.
2529 (convert_linespec_to_sals): Use add_sal_to_sals for
2530 expressions, too.
2531 (decode_line_full): No need to "fill in missing canonical names"
2532 anymore. Simply make cleanups for the allocated names.
2533
2534 2012-07-18 Keith Seitz <keiths@redhat.com>
2535
2536 * linespec.c (struct linespec): Constify expression,
2537 source_filename, function_name, and label_name.
2538 (symbol_not_found_error): Make all parameters const.
2539 (linespec_parser_delete): No need to check for NULL
2540 when using xfree. Cast const char * to char * for xfree.
2541
2542 2012-07-18 Keith Seitz <keiths@redhat.com>
2543
2544 * breakpoint.c (invalid_thread_id_error): New function.
2545 (find_condition_and_thread): Use invalid_thread_id_error.
2546 (watch_command_1): Likewise.
2547
2548 2012-07-18 Tom Tromey <tromey@redhat.com>
2549
2550 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2551 * contrib/cc-with-tweaks.sh: New file.
2552
2553 2012-07-18 Tom Tromey <tromey@redhat.com>
2554
2555 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2556 (locate_dwz_sections): Recognize .gdb_index.
2557 (create_cus_from_index_list): New function.
2558 (create_cus_from_index): Use it. Handle .dwz data.
2559 (read_index_from_section): New function, extracted from
2560 dwarf2_read_index.
2561 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2562 if needed.
2563
2564 2012-07-18 Tom Tromey <tromey@redhat.com>
2565
2566 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2567 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2568 <is_dwz>: New field.
2569 (struct dwz_file): New.
2570 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2571 (locate_dwz_sections, dwarf2_get_dwz_file)
2572 (get_abbrev_section_for_cu): New functions.
2573 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2574 (read_and_check_type_unit_head): Add abbrev_section argument.
2575 (create_debug_types_hash_table): Update.
2576 (init_cutu_and_read_dies): Use proper abbrev section.
2577 (init_cutu_and_read_dies_no_follow): Likewise.
2578 (set_partial_user): Do nothing if PST==NULL.
2579 (read_comp_units_from_section): New function.
2580 (create_all_comp_units): Use it.
2581 (scan_partial_symbols, partial_die_parent_scope): Update.
2582 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2583 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2584 (find_partial_die): Add offset_in_dwz argument. Update.
2585 (guess_partial_die_structure_name, fixup_partial_die): Update.
2586 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2587 DW_FORM_GNU_strp_alt.
2588 (read_indirect_string_from_dwz): New function.
2589 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2590 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2591 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2592 (follow_die_offset): Add offset_in_dwz argument.
2593 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2594 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2595 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2596 Handle new macro forms.
2597 (dwarf_decode_macros): Update.
2598 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2599 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2600 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2601 (create_debug_types_hash_table): Use correct abbrev section.
2602 (get_debug_line_section): New function.
2603 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2604 (process_full_comp_unit): Pass 'required' argument to
2605 end_symtab_get_static_block.
2606 * buildsym.h (end_symtab_get_static_block): Update.
2607 * buildsym.c (end_symtab_get_static_block): Add 'required'
2608 argument.
2609 (end_symtab, end_expandable_symtab): Update.
2610
2611 2012-07-18 Tom Tromey <tromey@redhat.com>
2612
2613 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2614 (pagesize): Remove.
2615 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2616 (zlib_decompress_section): Remove.
2617 (dwarf2_read_section): Use gdb_bfd_map_section.
2618 (munmap_section_buffer): Remove.
2619 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2620 munmap_section_buffer.
2621 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2622 (struct gdb_bfd_section_data): New.
2623 (free_one_bfd_section): New function.
2624 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2625 (get_section_descriptor, zlib_decompress_section)
2626 (gdb_bfd_map_section): New functions.
2627 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2628
2629 2012-07-18 Tom Tromey <tromey@redhat.com>
2630
2631 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2632
2633 2012-07-18 Tom Tromey <tromey@redhat.com>
2634
2635 * gdb_bfd.c (struct gdb_bfd_data): New.
2636 (gdb_bfd_cache): New global.
2637 (struct gdb_bfd_cache_search): New.
2638 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2639 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2640 * gdb_bfd.h (gdb_bfd_open): Declare.
2641
2642 2012-07-18 Tom Tromey <tromey@redhat.com>
2643
2644 * utils.c (make_cleanup_bfd_unref): Rename from
2645 make_cleanup_bfd_close.
2646 * defs.h (make_cleanup_bfd_unref): Rename from
2647 make_cleanup_bfd_close.
2648 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2649 (bfd_openw_with_cleanup): Update.
2650 * corelow.c (core_open): Update.
2651 * dsrec.c (load_srec): Update.
2652 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2653 * remote-m32r-sdi.c (m32r_load): Update.
2654 * remote-mips.c (mips_load_srec): Update.
2655 (pmon_load_fast): Update.
2656 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2657 Update.
2658 (darwin_bfd_open): Update.
2659 * solib.c (solib_bfd_fopen): Update.
2660 * symfile-mem.c (symbol_file_add_from_memory): Update.
2661 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2662 (symfile_bfd_open): Update.
2663 (generic_load): Update.
2664
2665 2012-07-18 Tom Tromey <tromey@redhat.com>
2666
2667 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2668 (pmon_load_fast): Likewise.
2669 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2670 (m32r_upload_command): Likewise.
2671 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2672 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2673 Use make_cleanup_bfd_close.
2674
2675 2012-07-18 Tom Tromey <tromey@redhat.com>
2676
2677 * symfile.c (symfile_bfd_open): Don't copy name. Call
2678 gdb_bfd_stash_filename.
2679 (load_command): Open the new BFD before freeing the old.
2680 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2681 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2682 Call gdb_bfd_stash_filename.
2683 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2684 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2685 gdb_bfd_stash_filename.
2686 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2687 Free found_pathname.
2688 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2689 gdb_bfd_stash_filename.
2690 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2691 * machoread.c (macho_add_oso_symfile): Call
2692 gdb_bfd_stash_filename.
2693 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2694 gdb_bfd_stash_filename.
2695 (macho_check_dsym): Don't copy filename. Call
2696 gdb_bfd_stash_filename.
2697 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2698 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2699 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2700 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2701 * exec.c (exec_close): Don't free the BFD's filename.
2702 (exec_file_attach): Don't copy the filename. Call
2703 gdb_bfd_stash_filename.
2704 * corelow.c (core_close): Don't free the BFD's filename.
2705 (core_open): Call gdb_bfd_stash_filename.
2706 * corefile.c (reopen_exec_file): Remove #if 0 code.
2707 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2708 pathname.
2709 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2710
2711 2012-07-18 Tom Tromey <tromey@redhat.com>
2712
2713 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2714 gdb_bfd_unref.
2715 (free_dwo_file): Use gdb_bfd_unref.
2716 * cli/cli-dump.c: Include gdb_bfd.h.
2717 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2718 (bfd_openr_with_cleanup): Likewise.
2719 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2720 gdb_bfd_unref.
2721 * utils.c: Include gdb_bfd.h.
2722 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2723 * symfile.c: Include gdb_bfd.h.
2724 (separate_debug_file_exists): Use gdb_bfd_unref.
2725 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2726 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2727 (generic_load): Use gdb_bfd_ref.
2728 (reread_symbols): Use gdb_bfd_unref.
2729 * symfile-mem.c: Include gdb_bfd.h.
2730 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2731 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2732 * solib.c: Include gdb_bfd.h.
2733 (solib_bfd_fopen): Use gdb_bfd_ref.
2734 (solib_bfd_open): Use gdb_bfd_unref.
2735 (free_so_symbols): Use gdb_bfd_unref.
2736 (reload_shared_libraries_1): Use gdb_bfd_unref.
2737 * solib-spu.c: Include gdb_bfd.h.
2738 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2739 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2740 gdb_bfd_unref.
2741 * solib-frv.c: Include gdb_bfd.h.
2742 (enable_break2): Use gdb_bfd_unref.
2743 * solib-dsbt.c: Include gdb_bfd.h.
2744 (enable_break2): Use gdb_bfd_unref.
2745 * solib-darwin.c: Include gdb_bfd.h.
2746 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2747 gdb_bfd_unref.
2748 (darwin_bfd_open): Use gdb_bfd_unref.
2749 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2750 * remote-mips.c: Include gdb_bfd.h.
2751 (mips_load_srec): Use gdb_bfd_ref.
2752 (pmon_load_fast): Use gdb_bfd_ref.
2753 * remote-m32r-sdi.c: Include gdb_bfd.h.
2754 (m32r_load): Use gdb_bfd_ref.
2755 * record.c: Include gdb_bfd.h.
2756 (record_save_cleanups): Use gdb_bfd_unref.
2757 (cmd_record_save): Use gdb_bfd_unref.
2758 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2759 gdb_bfd_unref.
2760 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2761 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2762 * objfiles.c: Include gdb_bfd.h.
2763 (free_objfile): Use gdb_bfd_unref.
2764 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2765 gdb_bfd.c.
2766 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2767 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2768 (macho_check_dsym): Likewise.
2769 * m32r-rom.c: Include gdb_bfd.h.
2770 (m32r_load): Use gdb_bfd_ref.
2771 (m32r_upload_command): Use gdb_bfd_ref.
2772 * jit.c: Include gdb_bfd.h.
2773 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2774 * gdb_bfd.h: New file.
2775 * gdb_bfd.c: New file.
2776 * gcore.c: Include gdb_bfd.h.
2777 (create_gcore_bfd): Use gdb_bfd_ref.
2778 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2779 (gcore_command): Use gdb_bfd_unref.
2780 * exec.c: Include gdb_bfd.h.
2781 (exec_close): Use gdb_bfd_unref.
2782 (exec_close_1): Use gdb_bfd_unref.
2783 (exec_file_attach): Use gdb_bfd_ref.
2784 * elfread.c: Include gdb_bfd.h.
2785 (build_id_verify): Use gdb_bfd_unref.
2786 * dsrec.c: Include gdb_bfd.h.
2787 (load_srec): Use gdb_bfd_ref.
2788 * corelow.c: Include gdb_bfd.h.
2789 (core_close): Use gdb_bfd_unref.
2790 (core_open): Use gdb_bfd_ref.
2791 * bfd-target.c: Include gdb_bfd.h.
2792 (target_bfd_xclose): Use gdb_bfd_unref.
2793 (target_bfd_reopen): Use gdb_bfd_ref.
2794 * Makefile.in (SFILES): Add gdb_bfd.c.
2795 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2796 (COMMON_OBS): Add gdb_bfd.o.
2797
2798 2012-07-18 Keith Seitz <keiths@redhat.com>
2799
2800 * breakpoint.c (find_condition_and_thread): Initialize
2801 TASK and REST.
2802 (create_breakpiont): find_condition_and_thread will now
2803 initialize COND_STRING, THREAD, and REST (and TASK).
2804 (addr_string_to_sals): Likewise.
2805
2806 2012-07-18 Pedro Alves <palves@redhat.com>
2807
2808 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2809 Pull the single step breakpoints out of the target.
2810
2811 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2812
2813 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2814 * stap-probe.c (compile_probe_arg): Likewise.
2815
2816 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2817
2818 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2819 (elf_compile_to_ax): Likewise.
2820 * infrun.c (insert_exception_resume_from_probe): Likewise.
2821 (check_exception_resume): Remove `objfile' variable.
2822 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2823 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2824 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2825 (compare_entries): Rename to...
2826 (compare_probes): ...this. Adjust function to work with
2827 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2828 respectively.
2829 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2830 `VEC (probe_p) *'.
2831 (print_ui_out_info): Adjust argument to be `struct probe *'.
2832 (info_probes_for_ops): Adjust internal computations to use
2833 `VEC (probe_p) *'.
2834 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2835 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2836 gen_info_probes_table_values>: Remove `objfile' argument.
2837 (struct probe) <objfile>: New field.
2838 (find_probe_by_pc): Remove `objfile' argument.
2839 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2840 (stap_get_probe_argument_count): Likewise.
2841 (stap_get_arg): Likewise.
2842 (stap_evaluate_probe_argument): Likewise.
2843 (stap_compile_to_ax): Likewise.
2844 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2845 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2846 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2847 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2848 sym_compile_to_ax>: Likewise.
2849
2850 2012-07-18 Terry Guo <terry.guo@arm.com>
2851
2852 PR 14329
2853 * defs.h (GDB_MI_MSG_WIDTH): New.
2854 * ser_base (ser_base_read_error_fd): New function.
2855 (do_ser_base_readchar): Poll error file descriptor as well as
2856 standard output.
2857 (generic_readchar): Refactor error handling.
2858
2859 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2860
2861 * NEWS: Create a new section for the next release branch.
2862 Rename the section of the current branch, now that it has
2863 been cut.
2864
2865 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2866
2867 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2868 * version.in: Bump version to 7.5.50.20120718-cvs.
2869
2870 2012-07-17 Keith Seitz <keiths@redhat.com>
2871
2872 * linespec.c (linespec_parse_line_offset): Make parameter
2873 const.
2874
2875 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 PR 11914
2878 * f-valprint.c (info_common_command): New variable frame_id.
2879 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2880 * printcmd.c (print_variable_and_value): Extend function comment.
2881 Add comment for invalidated FRAME.
2882 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2883 FI form FRAME_ID after each print_frame_local_vars.
2884 (struct print_variable_and_value_data): Change frame to frame_id.
2885 (do_print_variable_and_value): New variable frame, initialize it from
2886 p->frame_id. Add comment for invalidated FRAME.
2887 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2888 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2889 for invalidated FRAME.
2890
2891 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2892 Pedro Alves <palves@redhat.com>
2893
2894 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2895 loop.
2896
2897 2012-07-16 Tom Tromey <tromey@redhat.com>
2898
2899 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2900
2901 2012-07-15 Doug Evans <dje@google.com>
2902
2903 * dwarf2read.c (stmt_list_hash): New struct.
2904 (type_unit_group): Embed "per_cu" member, remove pointer.
2905 New union member "t", move member "tus" into it, all uses updated.
2906 New member "hash", replaces member "line_offset, all uses updated.
2907 (quick_file_names): Replace member "offset" with "hash", all uses
2908 updated.
2909 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2910 (hash_file_name_entry, eq_file_name_entry): Call them.
2911 (hash_type_unit_group, eq_type_unit_group): Ditto.
2912 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2913 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2914 (dw2_get_file_names): Update.
2915 (create_type_unit_group): Replace "per_cu" arg with "cu".
2916 All callers updated. Fix "quick" (.gdb_index) handling.
2917 (get_type_unit_group): Replace "per_cu" arg with "cu".
2918 All callers updated.
2919 (build_type_unit_groups): Don't reset tu_stats.
2920
2921 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2922 "tab_cur_size". Change member "tab" to be a htab_t.
2923 (create_filename_seen_cache): Update.
2924 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2925 (filename_seen): Update.
2926
2927 2012-07-13 Doug Evans <dje@google.com>
2928
2929 * symtab.c (filename_seen): Update comment.
2930
2931 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 Doug Evans <dje@google.com>
2933
2934 * buildsym.c (end_symtab_1): Split it to ...
2935 (end_symtab_get_static_block): ... this ...
2936 (end_symtab_from_static_block): ... and this function.
2937 (end_symtab, end_expandable_symtab): Call them.
2938 * buildsym.h (end_symtab_get_static_block)
2939 (end_symtab_from_static_block): New declarations.
2940 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2941 Set its valid CU ranges.
2942
2943 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2946 DW_OP_GNU_parameter_ref.
2947
2948 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2949
2950 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2951 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2952
2953 2012-07-13 Doug Evans <dje@google.com>
2954
2955 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2956 (filename_seen_cache): New struct.
2957 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2958 (create_filename_seen_cache): New function.
2959 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2960 (filename_seen): Delete arg "first". New arg "cache". All callers
2961 updated.
2962 (output_source_filename_data): New struct.
2963 (output_source_filename): Delete arg "first". New arg "data".
2964 All callers updated.
2965 (sources_info): Delete local "first". New locals "data", "cleanups".
2966 Rewrite to use filename_seen_cache.
2967 (add_partial_filename_data): Delete member "first". New member
2968 "filename_seen_cache". All uses updated.
2969 (make_source_files_completion_list): Rewrite to use
2970 filename_seen_cache.
2971
2972 2012-07-12 Doug Evans <dje@google.com>
2973
2974 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2975
2976 2012-07-10 Doug Evans <dje@google.com>
2977
2978 PR gdb/13498
2979 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2980 all_type_unit_groups, type_unit_groups, tu_stats.
2981 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2982 All uses updated. Add type_unit_group to union "s".
2983 (type_unit_group): New struct.
2984 (IS_TYPE_UNIT_GROUP): New macro.
2985 (abbrev_table): Delete unused member "section".
2986 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2987 (dw2_get_cu): Assert not used with type_unit_group.
2988 (dw2_get_primary_cu): New function.
2989 (dw2_build_type_unit_groups_reader): New function.
2990 (dw2_build_type_unit_groups): New function.
2991 (dw2_get_file_names): Assert not called on type units.
2992 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2993 Redo loop to iterate over type unit groups instead of type units.
2994 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2995 (read_abbrev_offset): New function.
2996 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2997 updated.
2998 (create_partial_symtab): New function.
2999 (process_psymtab_comp_unit_reader): Assert not used with type units.
3000 Call create_partial_symtab.
3001 (process_psymtab_type_unit): Delete.
3002 (hash_type_unit_group, eq_type_unit_group): New functions.
3003 (allocate_type_unit_groups_table): New function.
3004 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3005 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3006 (create_type_unit_group, get_type_unit_group): New functions.
3007 (tu_abbrev_offset): New struct.
3008 (sort_tu_by_abbrev_offset): New function.
3009 (add_type_unit_group_to_table): New function.
3010 (build_type_unit_groups): New function.
3011 (build_type_psymtabs_reader): New function.
3012 (build_type_psymtab_dependencies): New function.
3013 (build_type_psymtabs): Rewrite.
3014 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3015 is seen in a type unit.
3016 (process_queue): Move symtab expansion debugging printfs here.
3017 Call process_full_type_unit for type units.
3018 (compute_symtab_includes): Assert not called for type units.
3019 (process_cu_includes): Don't call compute_symtab_includes for
3020 type units.
3021 (process_full_type_unit): New function.
3022 (process_imported_unit_die): Flag an error if called for type units.
3023 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3024 updated. Assert not called for type units.
3025 (read_file_scope): Call dwarf2_start_symtab.
3026 (setup_type_unit_groups): New function.
3027 (read_type_unit_scope): Rewrite.
3028 (abbrev_table_read_table): Initialize abbrev_table->offset.
3029 (abbrev_table_free_cleanup): New function.
3030 (dwarf2_start_symtab): New function.
3031 (load_full_type_unit): Assert not called for type unit groups.
3032 * buildsym.c (finish_block_internal): New arg "expandable".
3033 All callers updated.
3034 (start_symtab): Move most contents to ...
3035 (restart_symtab): ... here. New function.
3036 (reset_symtab_globals): New function.
3037 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3038 Call reset_symtab_globals.
3039 (end_symtab, end_expandable_symtab): New functions.
3040 (set_missing_symtab, augment_type_symtab): New functions.
3041 * buildsym.h (end_expandable_symtab): Declare.
3042 (augment_type_symtab, restart_symtab): Declare.
3043 * psympriv.h (struct partial_symtab): New member "anonymous".
3044 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3045 anonymous psymtabs.
3046 (read_psymtabs_with_filename): Ditto.
3047 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3048 (expand_symtabs_matching_via_partial): Ditto.
3049 (dump_psymtab): Update.
3050 * dictionary.c (dict_add_pending): New function.
3051 * dictionary.h (dict_add_pending): Declare.
3052
3053 2012-07-09 Doug Evans <dje@google.com>
3054
3055 * buildsym.c (start_subfile): Remove unnecessary check for
3056 name == NULL.
3057
3058 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3059
3060 * dwarf2read.c (load_full_type_unit): Simplify.
3061
3062 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3063 to struct signatured_type **. All uses updated.
3064
3065 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3066 All callers updated.
3067
3068 2012-07-09 Tom Tromey <tromey@redhat.com>
3069
3070 * c-exp.y (check_parameter_typelist): New function.
3071 (parameter_typelist): Call it.
3072 * eval.c (make_params): Handle '(void)' case.
3073 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3074 '(void)' case.
3075
3076 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 * common/linux-ptrace.c: Include gdb_assert.h.
3079 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3080 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3081 stdint.h.
3082 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3083 functions.
3084 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3085 * linux-nat.c (linux_child_post_attach)
3086 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3087
3088 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3089
3090 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3091 nptl <2.7 bug workaround for core files.
3092
3093 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3096 clearing.
3097 (save_siginfo): Remove.
3098 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3099 call.
3100 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3101 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3102 * linux-nat.h (struct lwp_info): Remove field siginfo.
3103
3104 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3105
3106 Code cleanup for the next patch.
3107 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3108 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3109 call for it.
3110 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3111 (ia64_linux_stopped_data_address):
3112 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3113 the return value.
3114 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3115 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3116 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3117 call for it.
3118
3119 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 PR 14321
3122 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3123 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3124
3125 2012-07-06 Tom Tromey <tromey@redhat.com>
3126
3127 * c-exp.y (DOTDOTDOT): New token.
3128 (func_mod, exp): Use parameter_typelist.
3129 (parameter_typelist): New production.
3130 (tokentab3): Add "..." token.
3131 * eval.c (make_params): Handle varargs.
3132 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3133 varargs.
3134
3135 2012-07-06 Tom Tromey <tromey@redhat.com>
3136
3137 PR exp/9608:
3138 * c-exp.y (%union) <tvec>: Change type.
3139 (func_mod): Now uses <tvec> type.
3140 (exp): Update for tvec change.
3141 (direct_abs_decl): Push the typelist.
3142 (func_mod): Return a typelist.
3143 (nonempty_typelist): Update for tvec change.
3144 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3145 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3146 * parse.c (pop_type_list): New function.
3147 (push_typelist): New function.
3148 (follow_types): Handle tp_function_with_arguments.
3149 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3150 (enum type_pieces) <tp_function_with_arguments>: New constant.
3151 (union type_stack_elt) <typelist_val>: New field.
3152 (push_typelist): Declare.
3153
3154 2012-07-06 Tom Tromey <tromey@redhat.com>
3155
3156 * c-exp.y (%union) <type_stack>: New field.
3157 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3158 (ptr_operator_ts): New production.
3159 (ptype): Update.
3160 * parse.c (type_stack_reserve): New function.
3161 (check_type_stack_depth): Use it.
3162 (pop_type_stack, append_type_stack, push_type_stack)
3163 (get_type_stack, type_stack_cleanup): New functions.
3164 (follow_types): Handle tp_type_stack.
3165 (_initialize_parse): Simplify initialization.
3166 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3167 constant.
3168 (union type_stack_elt) <stack_val>: New field.
3169 (get_type_stack, append_type_stack, push_type_stack)
3170 (type_stack_cleanup): Declare.
3171
3172 2012-07-06 Tom Tromey <tromey@redhat.com>
3173
3174 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3175 Remove.
3176 (struct type_stack): New.
3177 * parse.c (type_stack, type_stack_size, type_stack_depth):
3178 Remove.
3179 (type_stack): New global.
3180 (parse_exp_in_context, check_type_stack_depth)
3181 (insert_into_type_stack, insert_type, push_type, push_type_int)
3182 (insert_type_address_space, pop_type, pop_type_int)
3183 (_initialize_parse): Update.
3184
3185 2012-07-06 Tom Tromey <tromey@redhat.com>
3186
3187 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3188 Remove %type.
3189
3190 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3191
3192 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3193
3194 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3195 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3198 alloca with xmalloc/xfree.
3199
3200 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3201
3202 * MAINTAINERS (Write After Approval): Add myself to the list.
3203
3204 2012-07-05 Doug Evans <dje@google.com>
3205
3206 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3207
3208 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3209
3210 * ax-gdb.c (cli/cli-utils.h): New include.
3211 (linespec.h): Ditto.
3212 (agent_eval_command_one): New function.
3213 (agent_command_1): Ditto.
3214 (agent_command): Call function agent_command_1.
3215 (agent_eval_command): Ditto.
3216 (_initialize_ax_gdb): Change help for "maint agent"
3217 and "maint agent-eval".
3218
3219 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3220
3221 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3222 * cli/cli-utils.c (check_for_argument): New function.
3223 * cli/cli-utils.h (check_for_argument): Ditto.
3224
3225 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3226
3227 * NEWS: Mention x32 ABI support.
3228
3229 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3230
3231 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3232 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3233
3234 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3235 and pc_regnum_from_eax to -1. Update SP regnum from
3236 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3237 needed.
3238
3239 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3240 pc_regnum_from_eax.
3241
3242 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3243
3244 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3245 * dwarf2expr.h: Include gdbtypes.h.
3246 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3247 these forward declarations.
3248 (cu_offset, sect_offset): Move these ...
3249 * gdbtypes.h: Remove include dwarf2expr.h.
3250 (cu_offset, sect_offset): ... here.
3251
3252 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3253
3254 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3255 (amd64_linux_sigtramp_code): This.
3256 (amd64_x32_linux_sigtramp_code): New.
3257 (LINUX_SIGTRAMP_LEN): Updated.
3258 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3259
3260 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3261
3262 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3263
3264 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 * config.in: Regenerate.
3267 * configure: Regenerate.
3268 * configure.ac: Remove check for gnu/libc-version.h.
3269 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3270 gnu/libc-version.h.
3271 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3272 variables libc_version, libc_major and libc_minor. Replace sscanf by
3273 inferior_has_bug. Extend the comment.
3274
3275 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 * linux-thread-db.c (inferior_has_bug): New function.
3278 (thread_db_find_new_threads_silently): Return boolean as checked by
3279 inferior_has_bug, describe it in the comments.
3280 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3281 earlier. Abort the initialization if it returned non-zero.
3282 (thread_db_new_objfile): Exclude debug files.
3283 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3284 if UNTIL_NO_NEW,
3285
3286 2012-07-02 Doug Evans <dje@google.com>
3287
3288 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3289 related to queue management.
3290
3291 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3292 instead of "debug dwarf2-die" in debugging printfs.
3293 (create_debug_info_hash_table_reader): Ditto.
3294 (create_debug_info_hash_table): Ditto.
3295 (init_dwo_file): Ditto.
3296 (init_cutu_and_read_dies): Add debugging printf.
3297 (init_cutu_and_read_dies_no_follow): Ditto.
3298 (process_psymtab_comp_unit_reader): Ditto.
3299
3300 2012-07-02 Stan Shebs <stan@codesourcery.com>
3301
3302 Add target-side support for dynamic printf.
3303 * NEWS: Mention the additional style.
3304 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3305 (struct bp_location): New field cmd_bytecode.
3306 * breakpoint.c: Include format.h.
3307 (disconnected_dprintf): New global.
3308 (parse_cmd_to_aexpr): New function.
3309 (build_target_command_list): New function.
3310 (insert_bp_location): Call it.
3311 (remove_breakpoints_pid): Skip dprintf breakpoints.
3312 (print_one_breakpoint_location): Ditto.
3313 (dprintf_style_agent): New global.
3314 (dprintf_style_enums): Add dprintf_style_agent.
3315 (update_dprintf_command_list): Add agent case.
3316 (agent_printf_command): New function.
3317 (_initialize_breakpoint): Add new commands.
3318 * common/ax.def (printf): New bytecode.
3319 * ax.h (ax_string): Declare.
3320 * ax-gdb.h (gen_printf): Declare.
3321 * ax-gdb.c: Include cli-utils.h, format.h.
3322 (gen_printf): New function.
3323 (maint_agent_print_command): New function.
3324 (_initialize_ax_gdb): Add maint agent-printf command.
3325 * ax-general.c (ax_string): New function.
3326 (ax_print): Add printf disassembly.
3327 * Makefile.in (SFILES): Add format.c
3328 (COMMON_OBS): Add format.o.
3329 * common/format.h: New file.
3330 * common/format.c: New file.
3331 * printcmd.c: Include format.h.
3332 (ui_printf): Call parse_format_string.
3333 * remote.c (remote_state): New field breakpoint_commands.
3334 (PACKET_BreakpointCommands): New enum.
3335 (remote_breakpoint_commands_feature): New function.
3336 (remote_protocol_features): Add new BreakpointCommands entry.
3337 (remote_can_run_breakpoint_commands): New function.
3338 (remote_add_target_side_commands): New function.
3339 (remote_insert_breakpoint): Call it.
3340 (remote_insert_hw_breakpoint): Ditto.
3341 (_initialize_remote): Add new packet configuration for
3342 target-side breakpoint commands.
3343 * target.h (struct target_ops): New field
3344 to_can_run_breakpoint_commands.
3345 (target_can_run_breakpoint_commands): New macro.
3346 * target.c (update_current_target): Handle
3347 to_can_run_breakpoint_commands.
3348
3349 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3350
3351 Execute -ix and -iex only after system and user gdbinit files.
3352 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3353 processing down after gdbinit files.
3354
3355 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3356
3357 Add fnmatch-gnu module.
3358 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3359 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3360 * gnulib/aclocal.m4: Regenerate.
3361 * gnulib/config.in: Regenerate.
3362 * gnulib/configure: Regenerate.
3363 * gnulib/import/dummy.c: Remove.
3364 * gnulib/import/Makefile.am: Regenerate.
3365 * gnulib/import/Makefile.in: Likewise.
3366 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3367 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3368 * gnulib/import/alloca.c: New file.
3369 * gnulib/import/alloca.in.h: Likewise.
3370 * gnulib/import/config.charset: Likewise.
3371 * gnulib/import/fnmatch.c: Likewise.
3372 * gnulib/import/fnmatch.in.h: Likewise.
3373 * gnulib/import/fnmatch_loop.c: Likewise.
3374 * gnulib/import/localcharset.c: Likewise.
3375 * gnulib/import/localcharset.h: Likewise.
3376 * gnulib/import/m4/alloca.m4: Likewise.
3377 * gnulib/import/m4/codeset.m4: Likewise.
3378 * gnulib/import/m4/configmake.m4: Likewise.
3379 * gnulib/import/m4/fcntl-o.m4: Likewise.
3380 * gnulib/import/m4/fnmatch.m4: Likewise.
3381 * gnulib/import/m4/glibc21.m4: Likewise.
3382 * gnulib/import/m4/localcharset.m4: Likewise.
3383 * gnulib/import/m4/locale-fr.m4: Likewise.
3384 * gnulib/import/m4/locale-ja.m4: Likewise.
3385 * gnulib/import/m4/locale-zh.m4: Likewise.
3386 * gnulib/import/m4/mbrtowc.m4: Likewise.
3387 * gnulib/import/m4/mbsinit.m4: Likewise.
3388 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3389 * gnulib/import/m4/mbstate_t.m4: Likewise.
3390 * gnulib/import/m4/stdbool.m4: Likewise.
3391 * gnulib/import/m4/wchar_h.m4: Likewise.
3392 * gnulib/import/m4/wctype_h.m4: Likewise.
3393 * gnulib/import/m4/wint_t.m4: Likewise.
3394 * gnulib/import/mbrtowc.c: Likewise.
3395 * gnulib/import/mbsinit.c: Likewise.
3396 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3397 * gnulib/import/mbsrtowcs-state.c: Likewise.
3398 * gnulib/import/mbsrtowcs.c: Likewise.
3399 * gnulib/import/ref-add.sin: Likewise.
3400 * gnulib/import/ref-del.sin: Likewise.
3401 * gnulib/import/stdbool.in.h: Likewise.
3402 * gnulib/import/streq.h: Likewise.
3403 * gnulib/import/strnlen1.c: Likewise.
3404 * gnulib/import/strnlen1.h: Likewise.
3405 * gnulib/import/verify.h: Likewise.
3406 * gnulib/import/wchar.in.h: Likewise.
3407 * gnulib/import/wctype.in.h: Likewise.
3408
3409 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3410
3411 Support shell wildcards for 'set auto-load safe-path'.
3412 * auto-load.c: Include fnmatch.h.
3413 (filename_is_in_dir): Rename to ...
3414 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3415 it. Update function comment. Rename dir_len to pattern_len. New
3416 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3417 messages. Use gdb_filename_fnmatch.
3418 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3419 pattern.
3420 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3421 * defs.h (gdb_filename_fnmatch): New declaration.
3422 * utils.c: Include fnmatch.h.
3423 (gdb_filename_fnmatch): New function.
3424
3425 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3426
3427 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3428 `-probe' and `-probe-stap' options.
3429
3430 2012-07-01 Yao Qi <yao@codesourcery.com>
3431
3432 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3433 always_inserted_off, and always_inserted_enums.
3434 Change always_inserted_mode's type to 'enum auto_boolean'.
3435 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3436 callers.
3437 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3438 of add_setshow_enum_cmd.
3439 * infrun.c: Remove can_use_displaced_stepping_auto,
3440 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3441 can_use_displaced_stepping_enum.
3442 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3443 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3444 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3445 add_setshow_enum_cmd.
3446
3447 2012-06-30 Doug Evans <dje@google.com>
3448
3449 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3450 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3451 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3452
3453 2012-06-29 Doug Evans <dje@google.com>
3454
3455 * linespec.c: #include "stack.h".
3456 (decode_line_with_current_source): Moved here from symtab.c and
3457 renamed from decode_line_spec. All callers updated.
3458 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3459 renamed from decode_line_spec_1. All callers updated.
3460 * linespec.h (decode_line_with_current_source): Move declaration here
3461 from symtab.h and renamed from decode_line_spec.
3462 (decode_line_with_last_displayed): Move declaration here from symtab.h
3463 and renamed from decode_line_spec_1.
3464 * macrocmd.c: #include "linespec.h".
3465 * symtab.c: Remove #include "linespec.h".
3466
3467 2012-06-28 Doug Evans <dje@google.com>
3468
3469 * dwarf2read.c (get_cu_length): New function.
3470 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3471 (create_debug_types_hash_table): Ditto.
3472 (init_cutu_and_read_dies): Ditto.
3473 (init_cutu_and_read_dies_no_follow): Ditto.
3474
3475 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3476
3477 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3478 (struct abbrev_table): Define.
3479 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3480 abbrev_table.
3481 (init_cutu_and_read_dies): Update.
3482 (abbrev_table_alloc_abbrev): New function. Replaces
3483 dwarf_alloc_abbrev. All callers updated.
3484 (abbrev_table_add_abbrev): New function.
3485 (abbrev_table_lookup_abbrev): New function. Replaces
3486 dwarf2_lookup_abbrev. All callers updated.
3487 (abbrev_table_read_table): New function. Contents moved here from
3488 dwarf2_read_abbrevs.
3489 (dwarf2_read_abbrevs): Call it.
3490 (abbrev_table_free): New function.
3491 (dwarf2_free_abbrev_table): Call it.
3492
3493 2012-06-28 Stan Shebs <stan@codesourcery.com>
3494
3495 * osdata.c (info_osdata_command): Filter out "Title" columns
3496 from non-MI uses.
3497 * common/linux-osdata.c (struct osdata_type): Add title field.
3498 (osdata_table): Add titles to each entry.
3499 (linux_command_xfer_osdata): Add a column for title data.
3500
3501 2012-06-28 Stan Shebs <stan@codesourcery.com>
3502
3503 Make logging work for MI.
3504 * NEWS: Mention it.
3505 * interps.h (interp_set_logging_ftype): New typedef.
3506 (struct interp_procs): New field set_logging_proc.
3507 (current_interp_set_logging): Declare.
3508 * interps.c (current_interp_set_logging): New function.
3509 * cli/cli-logging.c: Include interps.h.
3510 (set_logging_redirect): Call current_interp_set_logging.
3511 (pop_output_files): Ditto.
3512 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3513 * mi/mi-console.h (mi_console_set_raw): Declare.
3514 * mi/mi-console.c (mi_console_set_raw): New function.
3515 * mi/mi-interp.c (saved_raw_stdout): New global.
3516 (mi_set_logging): New function.
3517 (_initialize_mi_interp): Add it to interp procs.
3518
3519 2012-06-28 Doug Evans <dje@google.com>
3520
3521 * symtab.c (lookup_symbol_aux_objfile): Use
3522 ALL_OBJFILE_PRIMARY_SYMTABS.
3523
3524 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3525
3526 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3527
3528 * common/buffer.c: Include inttypes.h and stdint.h.
3529 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3530
3531 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 Pedro Alves <palves@redhat.com>
3533
3534 * gdbthread.h (ALL_THREADS): New macro.
3535 (thread_list): Declare.
3536 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3537 going, but instead fall through to the stepping handling.
3538 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3539 the passed in signal. Adjust debug output.
3540 (resume_callback): Rename to ...
3541 (linux_nat_resume_callback): ... this. Pass the thread's last
3542 stop signal, if in "pass" state.
3543 (linux_nat_resume): Adjust to rename.
3544 (stop_wait_callback): New assertion. Don't respawn signals;
3545 instead let the LWP remain with SIGNALLED set.
3546 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3547 * remote.c (append_pending_thread_resumptions): New.
3548 (remote_vcont_resume): Call it.
3549 * target.h (target_resume): Extend comment.
3550
3551 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3552
3553 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3554
3555 2012-06-27 Doug Evans <dje@google.com>
3556
3557 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3558 Delete have_addr_base, unused. All uses updated.
3559 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3560 (dwarf2_get_pc_bounds): Add ranges_base.
3561 (dwarf2_record_block_ranges): Ditto.
3562
3563 2012-06-27 Tom Tromey <tromey@redhat.com>
3564
3565 PR macros/7961:
3566 * varobj.c (varobj_create): Update.
3567 (varobj_set_value): Update.
3568 * tracepoint.c (validate_actionline): Update.
3569 (encode_actions_1): Update.
3570 * parse.c (parse_exp_1): Add 'pc' argument.
3571 (parse_exp_in_context): Add 'pc' argument. Change how
3572 expression_context_pc is set.
3573 (parse_expression): Update.
3574 (parse_field_expression): Update.
3575 * expression.h (parse_exp_1): Update.
3576 * eval.c (parse_to_comma_and_eval): Update.
3577 * breakpoint.c (set_breakpoint_condition): Update.
3578 (update_watchpoint): Update.
3579 (init_breakpoint_sal): Update
3580 (find_condition_and_thread): Update.
3581 (watch_command_1): Update.
3582 (update_breakpoint_locations): Update.
3583 * ada-lang.c (ada_read_renaming_var_value): Update.
3584 (create_excep_cond_exprs): Update.
3585
3586 2012-06-27 Doug Evans <dje@google.com>
3587
3588 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3589 type units.
3590
3591 2012-06-26 Doug Evans <dje@google.com>
3592
3593 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3594 prototype.
3595 (error_check_comp_unit_head): New arg abbrev_section. All callers
3596 updated.
3597 (read_and_check_comp_unit_head): Ditto.
3598 (read_and_check_type_unit_head): Ditto.
3599
3600 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3601
3602 New attribute 'last' for gdb.Symtab_and_line.
3603 * NEWS (Python Scripting): Add entry about the new attribute.
3604 * python/py-symtab.c (salpy_get_last): New function which
3605 implements the get method for the 'last' attribute of
3606 gdb.Symtab_and_line.
3607 (sal_object_getset): Add entry for the 'last' attribute.
3608
3609 2012-06-26 Doug Evans <dje@google.com>
3610
3611 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3612 (dwo_sections): Add macinfo, macro.
3613 (dwarf2_locate_dwo_sections): Watch for macro sections.
3614 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3615 All callers updated. Handle DWO files.
3616
3617 * NEWS: Mention new options "set debug dwarf2-read" and
3618 "set debug symtab-create".
3619 * dwarf2read.c (dwarf2_read_debug): New static global.
3620 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3621 (process_queue): Ditto.
3622 (process_full_comp_unit): Ditto.
3623 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3624 * elfread.c (elf_symfile_read): Add debugging printf.
3625 * minsyms.c (install_minimal_symbols): Ditto.
3626 * psymtab.c (allocate_psymtab): Ditto.
3627 * symfile.c (allocate_symtab): Ditto.
3628 * symtab.c (symtab_create_debug): New global.
3629 (_initialize_symtab): Add new option "set debug symtab-create".
3630 * symtab.h (symtab_create_debug): Declare.
3631
3632 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3633 (lookup_dwo_type_unit): Ditto.
3634
3635 2012-06-26 Roland McGrath <roland@hack.frob.com>
3636 H.J. Lu <hongjiu.lu@intel.com>
3637
3638 * amd64-linux-nat.c: Include <sys/user.h>.
3639 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3640 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3641 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3642
3643 * configure.ac: Check if the fs_base and gs_base members of
3644 `struct user_regs_struct' exist.
3645 * config.in: Regenerated.
3646 * configure: Likewise.
3647
3648 2012-06-25 Michael Eager <eager@eagercon.com>
3649
3650 PR python/14291
3651 * python/python.c (gdbpy_write): Check for interrupted output.
3652
3653 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3654
3655 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3656 register as a stack alignment in ARM mode.
3657
3658 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3661 * gnulib/config.in: Regenerate.
3662 * gnulib/configure: Likewise.
3663 * gnulib/import/m4/extensions.m4: Update it.
3664 * gnulib/import/m4/gnulib-common.m4: Likewise.
3665 * gnulib/import/m4/memmem.m4: Likewise.
3666 * gnulib/import/m4/mmap-anon.m4: Likewise.
3667 * gnulib/import/m4/multiarch.m4: Likewise.
3668 * gnulib/import/stdint.in.h: Likewise.
3669
3670 2012-06-24 Yao Qi <yao@codesourcery.com>
3671
3672 * corefile.c (write_memory_with_notification): New.
3673 * gdbcore.h: Declare write_memory_with_notification.
3674 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3675 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3676 * valops.c (value_assign): Likewise.
3677 * python/py-inferior.c (infpy_write_memory): Call
3678 'write_memory_with_notification'.
3679
3680 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 * cc-with-index.sh: Use also -ex "set auto-load no".
3683
3684 2012-06-23 Doug Evans <dje@google.com>
3685
3686 PR 14125
3687 * NEWS: Document additions to .gdb_index.
3688 * dwarf2read.c: #include "gdb/gdb-index.h".
3689 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3690 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3691 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3692 (dwarf2_read_index): Recognize version 7.
3693 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3694 block_kind, domain): All callers updated.
3695 (dw2_find_symbol_file): Handle new index CU values.
3696 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3697 (add_index_entry): New args is_static, kind. All callers updated.
3698 (offset_type_compare, uniquify_cu_indices): New functions
3699 (symbol_kind): New function.
3700 (write_psymtabs_to_index): Remove duplicate CU values.
3701 (write_psymtabs_to_index): Write .gdb_index version 7.
3702
3703 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3704
3705 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3706 * configure: Regenerate.
3707
3708 2012-06-20 Yao Qi <yao@codesourcery.com>
3709
3710 * python/py-inferior.c: Update comments of infpy_read_memory
3711 and infpy_write_memory.
3712
3713 2012-06-19 Tom Tromey <tromey@redhat.com>
3714
3715 PR exp/9514:
3716 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3717 (push_type_address_space): Remove.
3718 * parse.c (insert_into_type_stack): New function.
3719 (insert_type): Likewise.
3720 (insert_type_address_space): Rename from push_type_address_space.
3721 Insert tp_space_identifier.
3722 * c-exp.y (ptr_operator): New production.
3723 (abs_decl): Use ptr_operator.
3724 (space_identifier): Call insert_type_address_space.
3725 (ptype): Don't use const_or_volatile_or_space_identifier.
3726 (const_or_volatile_noopt): Call insert_type.
3727 (conversion_type_id, conversion_declarator): New productions.
3728 (operator): Use conversion_type_id.
3729
3730 2012-06-18 Doug Evans <dje@google.com>
3731
3732 * symtab.h (minimal_symbol): New member created_by_gdb.
3733 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3734 created by gdb.
3735 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3736 (search_symbols): Call it instead of lookup_symbol.
3737 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3738
3739 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3740 Adjust address for DW_OP_GNU_addr_index.
3741 * dwarf2expr.h (dwarf_expr_context): Update comment.
3742 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3743 all callers updated. Handle TLS vars described with
3744 DW_OP_GNU_const_index.
3745 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3746 and DW_OP_GNU_const_index.
3747 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3748
3749 * block.c (find_block_in_blockvector): Make explicit the fact that we
3750 ignore GLOBAL_BLOCK.
3751
3752 2012-06-18 Tom Tromey <tromey@redhat.com>
3753
3754 * c-exp.y (operator): Remove trailing space after "delete" and
3755 "delete[]".
3756
3757 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3758 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 Switch i386 and derived targets to ON_STACK.
3761 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3762 (amd64_dicos_init_abi): Remove its installment.
3763 * dicos-tdep.c (dicos_init_abi): Remove the
3764 set_gdbarch_call_dummy_location call. Update the comment here.
3765 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3766 (i386_dicos_init_abi): Remove its installment.
3767 * i386-tdep.c (i386_push_dummy_code): New function.
3768 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3769 i386_push_dummy_code.
3770
3771 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 Remove stale dummy frames.
3774 * breakpoint.c: Include dummy-frame.h.
3775 (longjmp_breakpoint_ops): New variable.
3776 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3777 bp_longjmp_call_dummy.
3778 (bpstat_what, bptype_string, print_one_breakpoint_location)
3779 (init_bp_location): Support bp_longjmp_call_dummy.
3780 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3781 (set_longjmp_breakpoint_for_call_dummy)
3782 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3783 functions.
3784 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3785 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3786 FIXME comment and extend the other comment for bp_call_dummy.
3787 (set_longjmp_breakpoint_for_call_dummy)
3788 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3789 * dummy-frame.c: Include gdbthread.h.
3790 (pop_dummy_frame_bpt): New function.
3791 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3792 (dummy_frame_discard): New function.
3793 (cleanup_dummy_frames): Update the comment about longjmps.
3794 * dummy-frame.h (dummy_frame_discard): New declaration.
3795 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3796 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3797 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3798 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3799 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3800 keep_going if IS_LONGJMP and there is no other reason to stop.
3801
3802 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3803
3804 * remote-sim.c (sim_command_completer): Initialize
3805 variable 'result'.
3806
3807 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3808
3809 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3810 * dwarf2loc.c (call_site_parameter_matches): Support
3811 CALL_SITE_PARAMETER_PARAM_OFFSET.
3812 (needs_dwarf_reg_entry_value): Push stub value.
3813 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3814 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3815 * gdbtypes.h (enum call_site_parameter_kind): New item
3816 CALL_SITE_PARAMETER_PARAM_OFFSET.
3817 (struct call_site.parameter.u): New field param_offset.
3818
3819 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 Code cleanup: Generalize call_site.parameter key.
3822 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3823 variable dwarf_reg. New variable kind_u. Update parameters to
3824 push_dwarf_reg_entry_value.
3825 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3826 * dwarf2expr.h (enum call_site_parameter_kind)
3827 (union call_site_parameter_u): Forward declarations.
3828 (struct dwarf_expr_context_funcs): Update parameters and their
3829 description for push_dwarf_reg_entry_value.
3830 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3831 * dwarf2loc.c (call_site_parameter_matches): New function.
3832 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3833 description. Use call_site_parameter_matches.
3834 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3835 Update parameters and their description.
3836 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3837 New variable kind_u. Adjust the caller for updated parameters.
3838 (needs_dwarf_reg_entry_value): Update parameters.
3839 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3840 instead of attr. Update for the changed fields of struct
3841 call_site_parameter.
3842 * gdbtypes.h: Include dwarf2expr.h.
3843 (enum call_site_parameter_kind): New.
3844 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3845 fb_offset into new union u.
3846
3847 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3848
3849 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3850 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3851 for x32.
3852
3853 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3854
3855 * amd64-linux-nat.c (compat_x32_clock_t): New.
3856 (compat_x32_siginfo_t): Likewise.
3857 (compat_x32_siginfo_from_siginfo): Likewise.
3858 (siginfo_from_compat_x32_siginfo): Likewise.
3859 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3860 and siginfo_from_compat_x32_siginfo for x32.
3861
3862 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3863
3864 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3865
3866 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3867
3868 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3869 instead of gdbarch_ptr_bit.
3870 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3871 (amd64_supply_native_gregset): Likewise.
3872 (amd64_collect_native_gregset): Likewise.
3873 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3874 (amd64_supply_xsave): Likewise.
3875 (amd64_collect_fxsave): Likewise.
3876 (amd64_collect_xsave): Likewise.
3877
3878 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3879
3880 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3881 (amd64_linux_read_description): Check DS segment register for
3882 x32 process.
3883
3884 2012-06-15 Tom Tromey <tromey@redhat.com>
3885
3886 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3887 init_cutu_and_read_dies.
3888
3889 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3890
3891 * MAINTAINERS (Write After Approval): Add myself to the list.
3892
3893 2012-06-15 Tom Tromey <tromey@redhat.com>
3894
3895 * valops.c (value_find_oload_method_list): Now static.
3896 * value.h (value_find_oload_method_list): Don't declare.
3897
3898 2012-06-15 Tom Tromey <tromey@redhat.com>
3899
3900 * valops.c (find_overload_match): Use value_ind.
3901
3902 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3903
3904 * infrun.c (handle_inferior_event): Correct indentation.
3905
3906 2012-06-14 Doug Evans <dje@google.com>
3907
3908 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3909 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3910 All uses updated.
3911 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3912 updated. Handle DEBUG_LOC_START_LENGTH.
3913 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3914 (loclist_describe_location): Ditto.
3915
3916 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3917
3918 PR backtrace/13866
3919 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3920 after hiding inline functions.
3921
3922 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3923
3924 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3925 _initialize_inf_ttrace.
3926
3927 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3928
3929 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3930 _initialize_hppa_hpux_nat.
3931
3932 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3933
3934 * remote-sim.c (sim_command_completer): Change type of return
3935 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3936
3937 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3938 Jan Kratochvil <jan.kratochvil@redhat.com>
3939
3940 PR tdep/14222
3941 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3942 stack on a 16-byte boundary.
3943
3944 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3945
3946 * jit.c (finalize_symtab): Set function's return type to 'void' by
3947 default.
3948
3949 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3950 H.J. Lu <hongjiu.lu@intel.com>
3951
3952 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3953 Move bits common to both the classic LP64 and the new x32 ILP32
3954 ABI here.
3955 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3956 (amd64_x32_linux_init_abi): New function.
3957 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3958 subtype.
3959
3960 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3961 * i386-tdep.c (i386_pseudo_register_name): Make public.
3962 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3963 * amd64-tdep.c (amd64_dword_names): Add "eip".
3964 (amd64_x32_pseudo_register_type): New function
3965 (amd64_x32_init_abi): New function.
3966
3967 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 PR build/14003
3970 * inferior.h (struct inferior_suspend_state): Comment out.
3971 (struct inferior): Comment out the field suspend.
3972 * infrun.c (struct infcall_suspend_state): Comment out the field
3973 inferior_suspend.
3974 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3975 out its assignment.
3976
3977 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3978
3979 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3980 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3981 function comment. Return ERROR for unresolved cases. Implement
3982 returning proper NAME.
3983 (yylex): Accept also NAME from classify_inner_name.
3984 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3985 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3986 LOC_TYPEDEF type.
3987 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3988
3989 2012-06-13 Tom Tromey <tromey@redhat.com>
3990
3991 * breakpoint.c (condition_completer): New function.
3992 (_initialize_breakpoint): Use it.
3993 * value.c (complete_internalvar): New function.
3994 * value.h (complete_internalvar): Declare.
3995
3996 2012-06-13 Tom Tromey <tromey@redhat.com>
3997
3998 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3999 * breakpoint.c (catch_syscall_completer): Return a VEC.
4000 * cli/cli-cmds.c (complete_command): Update.
4001 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4002 (complete_on_enum): Likewise.
4003 * command.h: Include gdb_vecs.h.
4004 (completer_ftype): Change return type.
4005 (complete_on_cmdlist, complete_on_enum): Likewise.
4006 * completer.c (noop_completer, filename_completer)
4007 (location_completer): Return a VEC.
4008 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4009 to a VEC.
4010 (expression_completer, complete_line_internal, complete_line)
4011 (command_completer): Return a VEC.
4012 (gdb_completion_word_break_characters, line_completion_function):
4013 Update.
4014 * completer.h: Include gdb_vecs.h.
4015 (complete_line, noop_completer, filename_completer)
4016 (expression_completer, location_completer, command_completer):
4017 Update.
4018 * f-lang.c (f_word_break_characters): Return a VEC.
4019 * interps.c (interpreter_completer): Return a VEC.
4020 * language.h (struct language_defn)
4021 <la_make_symbol_completion_list>: Return a VEC.
4022 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4023 * symtab.c (free_completion_list): Take a VEC.
4024 (return_val_size, return_val_index): Remove.
4025 (return_val): Now a VEC.
4026 (completion_list_add_name): Update.
4027 (default_make_symbol_completion_list_break_on)
4028 (default_make_symbol_completion_list, make_symbol_completion_list)
4029 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4030 Return a VEC.
4031 (add_filename_to_list): Update.
4032 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4033 <list>: Now a VEC.
4034 (maybe_add_partial_symtab_filename): Update.
4035 (make_source_files_completion_list): Return a VEC.
4036 * symtab.h (default_make_symbol_completion_list_break_on)
4037 (default_make_symbol_completion_list, make_symbol_completion_list)
4038 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4039 (make_source_files_completion_list): Update.
4040
4041 2012-06-13 Tom Tromey <tromey@redhat.com>
4042
4043 * breakpoint.c (add_catch_command): Use completer_ftype.
4044 * breakpoint.h: Include command.h.
4045 (add_catch_command): Use completer_ftype.
4046 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4047 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4048 Use completer_ftype.
4049 * command.h (completer_ftype): New typedef.
4050 (set_cmd_completer): Use it.
4051 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4052 completer_ftype.
4053
4054 2012-06-13 Pedro Alves <palves@redhat.com>
4055
4056 Partial revert of previous change.
4057
4058 * serial.c (scb_base): New global.
4059 (serial_for_fd): New.
4060 (serial_open, serial_fdopen_ops): Link new serial in open serials
4061 chain.
4062 (do_serial_close): Unlink serial from the open serials chain.
4063
4064 2012-06-12 Pedro Alves <palves@redhat.com>
4065
4066 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4067 threads here.
4068 (prepare_for_detach): No longer context switch here in non-stop
4069 mode.
4070 (fetch_inferior_event): Ditto.
4071 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4072 to the event thread before removing breakpoints. Switch to the
4073 event thread before inserting breakpoints and resuming.
4074 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4075 event thread before resuming.
4076 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4077 Switch to the event thread before removing breakpoints.
4078
4079 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4080
4081 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4082 special characters correctly for the Windows shells. See
4083 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4084 report.
4085 [!__MINGW32__]: Remove extra double quote character from special
4086 characters.
4087
4088 2012-06-11 Stan Shebs <stan@codesourcery.com>
4089
4090 * ui-out.h: Remove #if 0 declarations.
4091 * ui-out.c: Remove #if 0 functions.
4092
4093 2012-06-11 Pedro Alves <palves@redhat.com>
4094
4095 * ser-base.c (run_async_handler_and_reschedule): New.
4096 (fd_event, push_event): Use it.
4097 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4098 reference count to 1.
4099 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4100 instead of xfree.
4101 (serial_is_open, serial_ref, serial_unref): New.
4102 * serial.h (serial_open): Adjust comment.
4103 (serial_is_open): Declare.
4104 (serial_close): Adjust comment.
4105 (serial_ref, serial_unref) Declare.
4106 (struct serial): New field 'refcnt'.
4107
4108 2012-06-11 Pedro Alves <palves@redhat.com>
4109
4110 Remove #if 0'd "connect" command, and unnecessary associated
4111 refcounting and serial reuse bits.
4112
4113 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4114 * serial.c (last_serial_opened): Delete.
4115 (scb_base): Delete.
4116 (serial_open): Adjust.
4117 (serial_for_fd): Delete.
4118 (serial_fdopen_ops, do_serial_close): Adjust.
4119 (serial_fdopen_ops): Adjust.
4120
4121 2012-06-11 Pedro Alves <palves@redhat.com>
4122
4123 * serial.c (do_serial_close): Remove early return when SCB is
4124 null.
4125
4126 2012-06-11 Tom Tromey <tromey@redhat.com>
4127
4128 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4129
4130 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4131
4132 Fix regression by the "ambiguous linespec" series.
4133 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4134 get_last_displayed_symtab and get_last_displayed_line and depending
4135 on CURSAL.
4136
4137 2012-06-11 Tom Tromey <tromey@redhat.com>
4138
4139 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4140 (dw2_find_symbol_file): Use it.
4141
4142 2012-06-11 Michael Eager <eager@eagercon.com>
4143
4144 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4145 * mips-linux-tdep.h (mips_signals): New
4146
4147 2012-06-11 Tom Tromey <tromey@redhat.com>
4148
4149 * infrun.c (handle_inferior_event)
4150 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4151 breakpoint.
4152 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4153 exception logic in all cases. Update comments.
4154 (insert_longjmp_resume_breakpoint): Set the exception resume
4155 breakpoint.
4156
4157 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4158
4159 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4160
4161 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4162
4163 * valarith.c (binop_types_user_defined_p): Fix a typo.
4164
4165 2012-06-08 Yao Qi <yao@codesourcery.com>
4166 Chung-Lin Tang <cltang@codesourcery.com>
4167
4168 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4169 * arch-utils.h: Declare.
4170 * gdbarch.sh: Add return_in_first_hidden_param_p.
4171 * gdbarch.c, gdbarch.h: Regenerated.
4172 * infcall.c (call_function_by_hand): Call
4173 gdbarch_return_in_first_hidden_param_p instead of
4174 language_pass_by_reference.
4175
4176 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4177 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4178 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4179 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4180 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4181 `cplus_return_struct_by_reference'.
4182 (tic6x_return_value): Handle language cplusplus.
4183 (tic6x_return_in_first_hidden_param_p): New.
4184 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4185
4186 2012-06-07 Doug Evans <dje@google.com>
4187
4188 * dwarf2read.c (dwarf2_cu): Add comment.
4189
4190 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4191
4192 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4193 variable.
4194 (mips_eabi_push_dummy_call): Likewise.
4195 (mips_n32n64_push_dummy_call): Likewise.
4196 (mips_o32_push_dummy_call): Likewise.
4197 (mips_o64_push_dummy_call): Likewise.
4198
4199 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4200
4201 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4202
4203 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4204
4205 * mips-tdep.c (mips_pseudo_register_type): Use
4206 mips_float_register_p.
4207
4208 2012-06-06 Pedro Alves <palves@redhat.com>
4209
4210 * infrun.c (handle_inferior_event): Remove calls to
4211 reinit_frame_cache that follow a context_switch call.
4212
4213 2012-06-06 Pedro Alves <palves@redhat.com>
4214
4215 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4216 context_switch and remove stale comment.
4217
4218 2012-06-06 Pedro Alves <palves@redhat.com>
4219
4220 * infrun.c (struct execution_control_state): Remove
4221 `new_thread_event' field.
4222 (handle_inferior_event): Simplify new threads handling; don't
4223 resume the inferior if we find a new thread.
4224
4225 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4226
4227 * NEWS: Document the deprecation of SH's 'regs' command.
4228 * inferior.h (all_registers_info): Add function declaration.
4229 * sh-tdep.c (sh_show_regs): Remove variable.
4230 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4231 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4232 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4233 (sh_show_regs_command): Remove functions.
4234 (sh_gdbarch_init): Don't set sh_show_regs.
4235 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4236 'info all-registers'.
4237 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4238 (sh64_show_regs): Remove functions.
4239 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4240
4241 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4242
4243 * configure.ac: Move development=true below AC_INIT.
4244 * configure: Regenerate.
4245
4246 2012-06-05 Stan Shebs <stan@codesourcery.com>
4247
4248 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4249 gdb_stdout.
4250
4251 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4252
4253 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4254 argument as ssize_t.
4255 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4256 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4257 * target.c (target_read_stack, target_write_memory)
4258 (target_write_raw_memory): Likewise.
4259 * target.h (target_read_stack, target_write_memory)
4260 (target_write_raw_memory): Likewise.
4261
4262 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4265 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4266 * target.c (target_read_memory): Change LEN to ssize_t.
4267 * target.h (target_read_memory): Change LEN to ssize_t.
4268
4269 2012-06-05 Pedro Alves <palves@redhat.com>
4270
4271 PR backtrace/13866
4272
4273 * breakpoint.c (until_break_command): Only fetch the selected
4274 frame after decode_line_1.
4275
4276 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4277
4278 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4279 event breakpoint at _start, __start or main if a program
4280 interpreter is not found.
4281
4282 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4283
4284 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4285 Add declaration.
4286 * windows-tdep.c: #include "objfiles.h".
4287 (windows_iterate_over_objfiles_in_search_order): New function.
4288 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4289 iterate_over_objfiles_in_search_order gdbarch method to
4290 windows_iterate_over_objfiles_in_search_order.
4291 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4292
4293 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4294
4295 * gdbarch.sh: Add generation of
4296 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4297 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4298 (iterate_over_objfiles_in_search_order): New gdbarch method.
4299 * gdbarch.h, gdbarch.c: Regenerate.
4300 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4301 Add declaration.
4302 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4303 New function.
4304 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4305 out of lookup_symbol_aux_symtabs.
4306 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4307 call to lookup_symbol_aux_objfile.
4308 (struct global_sym_lookup_data): New type.
4309 (lookup_symbol_global_iterator_cb): New function.
4310 (lookup_symbol_global): Search for symbol using
4311 gdbarch_iterate_over_objfiles_in_search_order and
4312 lookup_symbol_global_iterator_cb.
4313 * findvar.c (struct minsym_lookup_data): New type.
4314 (minsym_lookup_iterator_cb): New function.
4315 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4316 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4317 and minsym_lookup_iterator_cb.
4318
4319 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4320
4321 Revert the following patch:
4322 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4323 try locating the symbol in the symbol's own objfile first, before
4324 extending the search to all objfiles.
4325 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4326 out of lookup_symbol_aux_symtabs.
4327 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4328 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4329 Do not search EXCLUDE_OBJFILE.
4330 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4331 (lookup_symbol_global): Search for matches in the block's objfile
4332 first, before searching all other objfiles.
4333
4334 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4335
4336 * breakpoint.c (find_condition_and_thread): Stop parsing
4337 as soon as the first invalid keyword is found.
4338
4339 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4340
4341 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4342
4343 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4344
4345 * config/djgpp/djcheck.sh: Add copyright header.
4346
4347 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4348
4349 * copyright.py (update_files, main): Fix path to update-copyright
4350 script.
4351
4352 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4353
4354 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4355 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4356 for which a reminder to update by hand is printed.
4357
4358 2012-06-04 Doug Evans <dje@google.com>
4359
4360 * buildsym.c (make_blockvector): Add comment.
4361
4362 2012-06-04 Pedro Alves <palves@redhat.com>
4363
4364 * arch-utils.c (default_gdb_signal_from_target): Delete.
4365 * arch-utils.h (default_gdb_signal_from_target): Delete.
4366 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4367 gdbarch_gdb_signal_from_target_p.
4368 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4369 predicate).
4370 * gdbarch.h: Regenerate.
4371 * gdbarch.c: Regenerate.
4372
4373 2012-06-04 Pedro Alves <palves@redhat.com>
4374
4375 * gdbarch.sh (gdb_signal_from_target): Mention that the
4376 implementation of the method must be host independent.
4377 * gdbarch.h: Regenerate.
4378
4379 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4380
4381 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4382 parameters.
4383 (target_read_memory_bfd): New function.
4384 (symbol_file_add_from_memory): Use it.
4385
4386 2012-06-03 Doug Evans <dje@google.com>
4387
4388 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4389 of primary symtab.
4390 (basic_lookup_transparent_type): Ditto.
4391
4392 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4393 (ALL_PRIMARY_SYMTABS): Use it.
4394 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4395 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4396 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4397 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4398 (basic_lookup_transparent_type): Ditto.
4399
4400 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4401
4402 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4403 it to optimize resolution of demangled name.
4404
4405 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 * configure.ac (development): Define new variable.
4408 Call AC_CHECK_LIB for mcheck if $development.
4409 (ERROR_ON_WARNING): Enable it by default only if $development.
4410 * config.in: Regenerate.
4411 * configure: Regenerate.
4412
4413 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4414
4415 * target.c (target_read_memory): Make LEN argument as size_t.
4416 * target.h (target_read_memory): Likewise.
4417
4418 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4419
4420 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4421
4422 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4423
4424 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4425 BookE interface for PowerPC server processors if not available
4426 in the Linux Kernel.
4427
4428 2012-05-31 Keith Seitz <keiths@redhat.com>
4429
4430 * linespec.c (decode_objc): Add cleanup to free
4431 INFO.FILE_SYMTABS.
4432 (find_linespec_symbols): Add cleanup to free CLASSES.
4433 * symfile.c (find_separate_debug_file_by_debuglink): Add
4434 cleanup to free DEBUGLINK.
4435 * ui-out.c (clear_header_list): No need to check if
4436 HEADER_NEXT.COLHDR is NULL.
4437 Free HEADER_NEXT.COL_NAME.
4438
4439 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4440
4441 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4442 warning.
4443
4444 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4445
4446 * configure.host (gdb_host_cpu): Handle tilegx*.
4447 (gdb_host): Handle tilegx-*-linux*.
4448 * tilegx-linux-nat.c: New file.
4449 * config/tilegx/linux.mh: New file.
4450
4451 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4452
4453 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4454 tilegx-linux-tdep.o.
4455 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4456 tilegx-linux-tdep.c.
4457 * configure.tgt: Handle tilegx-*-linux*.
4458 * tilegx-tdep.h: New file.
4459 * tilegx-tdep.c: New file.
4460 * tilegx-linux-tdep.c: New file.
4461 * regformats/reg-tilegx.dat: New file.
4462
4463 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4464
4465 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4466 accounting of hw watchpoints on ppc.
4467
4468 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4469
4470 * source.c (openp): Expand tilde in path entries.
4471
4472 2012-05-29 Doug Evans <dje@google.com>
4473
4474 * buildsym.c (block_compar): Fix comment.
4475 (end_symtab): Fix and clarify some comments.
4476
4477 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4478 cleanup_undefined_types.
4479 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4480 All callers updated.
4481
4482 2012-05-29 Tom Tromey <tromey@redhat.com>
4483
4484 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4485 fails.
4486 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4487 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4488 fails.
4489 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4490 fails.
4491
4492 2012-05-29 Tristan Gingold <gingold@adacore.com>
4493
4494 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4495 (struct darwin_info): ... New struct.
4496 (solib_darwin_pspace_data): New variable.
4497 (darwin_pspace_data_cleanup): New function.
4498 (get_darwin_info): Likewise.
4499 (darwin_dyld_version_ok, darwin_load_image_infos)
4500 (darwin_solib_get_all_image_info_addr_at_init)
4501 (darwin_solib_read_all_image_info_addr): Add info argument.
4502 Adjust code.
4503 (darwin_current_sos): Use per pspace structure.
4504 (darwin_solib_create_inferior_hook): Likewise.
4505 (darwin_clear_solib): Likewise.
4506 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4507
4508 2012-05-28 Pedro Alves <palves@redhat.com>
4509
4510 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4511 block that uses them. Clear ecss before handling each event.
4512
4513 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 * solib-svr4.c (svr4_current_sos): New comment on
4516 svr4_current_sos_via_xfer_libraries fall back.
4517
4518 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4519
4520 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4521 it as a fallback for TYPE_IS_OPAQUE.
4522 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4523 symbols for lookup_symbol.
4524
4525 2012-05-24 John Steele Scott <toojays@toojays.net>
4526
4527 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4528 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4529 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4530 (check_producer): ... this new function, which also checks for ICC
4531 and caches the result.
4532 (producer_is_icc): New function.
4533 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4534 producer was ICC.
4535
4536 2012-05-24 Pedro Alves <palves@redhat.com>
4537
4538 PR gdb/7205
4539
4540 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4541 (default_gdb_signal_to_target): ... this. Add comment.
4542 (default_gdb_signal_from_host): Rename to ...
4543 (default_gdb_signal_from_target): ... this. Add comment.
4544 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4545 (default_gdb_signal_to_target): ... this.
4546 (default_gdb_signal_from_host): Rename to ...
4547 (default_gdb_signal_from_target): ... this.
4548 * corelow.c (core_open): Adjust to naming change. Replace comment.
4549 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4550 (gdb_signal_from_target): ... this. Adjust to
4551 default_gdb_signal_from_host naming change. Extend comment.
4552 (gdb_signal_to_host): Rename to ...
4553 (gdb_signal_to_target): ... this. Adjust to
4554 default_gdb_signal_to_host naming change.
4555 * gdbarch.h, gdbarch.c: Renegerate.
4556
4557 2012-05-24 Pedro Alves <palves@redhat.com>
4558
4559 PR gdb/7205
4560
4561 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4562
4563 2012-05-24 Pedro Alves <palves@redhat.com>
4564
4565 PR gdb/7205
4566
4567 Replace target_signal with gdb_signal throughout.
4568
4569 2012-05-24 Pedro Alves <palves@redhat.com>
4570
4571 PR tui/14159
4572
4573 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4574 string, instead of reusing the va_list argument.
4575
4576 2012-05-24 Tom Tromey <tromey@redhat.com>
4577
4578 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4579 Remove.
4580
4581 2012-05-23 Doug Evans <dje@google.com>
4582
4583 * symtab.c (search_symbols): Formatting fixes.
4584 (print_symbol_info): Formatting fixes.
4585
4586 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4587 int64_t change to leb128 API.
4588 (read_encoded_value, decode_frame_entry_1): Ditto.
4589 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4590 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4591 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4592 (execute_stack_op): Ditto.
4593 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4594 (safe_read_uleb128, safe_read_sleb128): Ditto.
4595 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4596 (dwarf2_compile_expr_to_ax): Ditto.
4597 (locexpr_describe_location_piece): Ditto.
4598 (disassemble_dwarf_expression): Ditto.
4599 (locexpr_describe_location_1): Ditto.
4600
4601 2012-05-23 Stan Shebs <stan@codesourcery.com>
4602 Kwok Cheung Yeung <kcy@codesourcery.com>
4603
4604 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4605 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4606 (mi-cmd-info.o): New rule.
4607 * osdata.h (info_osdata_command): New declaration.
4608 * osdata.c (info_osdata_command): Change to non-static.
4609 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4610 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4611 * mi/mi-cmd-info.c: New file.
4612
4613 2012-05-23 Doug Evans <dje@google.com>
4614
4615 * symtab.c (search_symbols): Pass NULL for file_matcher to
4616 expand_symtabs_matching if there are no files to match.
4617
4618 * gdbtypes.c (lookup_typename): Simplify.
4619
4620 2012-05-23 Pedro Alves <palves@redhat.com>
4621
4622 * arch-utils.h (default_target_signal_to_host): Delete.
4623 * arch-utils.c (default_target_signal_to_host): Delete.
4624 * gdbarch.sh (target_signal_to_host): Remove.
4625 * gdbarch.h, gdbarch.c: Regenerate.
4626
4627 2012-05-22 Doug Evans <dje@google.com>
4628
4629 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4630 "const gdb_byte *".
4631 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4632 (execute_cfa_program): Update to match API of leb128 functions.
4633 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4634 "const gdb_byte *".
4635 (read_unsigned_leb128, read_signed_leb128): Delete.
4636 (read_initial_length): Change type of buf argument to
4637 "const gdb_byte *".
4638 (read_encoded_value): Update to match API of leb128 functions.
4639 (decode_frame_entry): Change result to "const gdb_byte *", and
4640 similarly for "start" parameter.
4641 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4642 (dwarf2_build_frame_info): Change local frame_ptr to
4643 "const gdb_byte *".
4644 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4645 read_uleb128, read_sleb128. All callers updated.
4646 (safe_skip_leb128): New function.
4647 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4648 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4649 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4650 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4651 read_uleb128, read_sleb128.
4652 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4653 (execute_stack_op): Update to match API of leb128 functions.
4654 * dwarf2expr.h: #include "leb128.h".
4655 (read_uleb128, read_sleb128): Delete.
4656 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4657 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4658 * dwarf2loc.c (debug_loc_kind): New enum.
4659 (decode_debug_loc_addresses): New function.
4660 (decode_debug_loc_dwo_addresses): New function.
4661 (dwarf2_find_location_expression): Rewrite.
4662 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4663 (locexpr_describe_location_piece): Ditto.
4664 (disassemble_dwarf_expression): Ditto.
4665 (locexpr_describe_location_1): Ditto.
4666 (loclist_describe_location): Rewrite.
4667 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4668 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4669 (dwarf2_section_buffer_overflow_complaint): Renamed from
4670 dwarf2_macros_too_long_complaint. All callers updated.
4671 (skip_leb128): Delete.
4672 (init_cu_die_reader): Initialize reader->buffer_end.
4673 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4674 (skip_form_bytes): New arg buffer_end. All callers updated.
4675 Replace call to skip_leb128 with gdb_skip_leb128.
4676 (skip_unknown_opcode): New arg mac_end. All callers updated.
4677 (fill_in_loclist_baton): Initialize baton->from_dwo.
4678
4679 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4680
4681 * mips-linux-nat.c (mips_linux_read_description): Use a more
4682 verbose error message.
4683
4684 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4685
4686 * NEWS: Add MIPS/Linux DSP support.
4687 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4688 (SIGCONTEXT_DSPCTL): New macro.
4689 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4690 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4691 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4692 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4693 (N64_SIGCONTEXT_HI3): Likewise.
4694 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4695 (N64_SIGCONTEXT_LO3): Likewise.
4696 (N64_SIGCONTEXT_DSPCTL): Likewise.
4697 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4698 (mips_linux_o32_sigframe_init): Handle DSP registers.
4699 (mips_linux_n32n64_sigframe_init): Likewise.
4700
4701 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4702
4703 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4704 call to abort.
4705
4706 2012-05-22 Pedro Alves <palves@redhat.com>
4707
4708 * target.h (store_waitstatus): Move declaration ...
4709 * inf-child.h (store_waitstatus): ... here.
4710 * target.c: Move inclusion of gdb_wait.h, and ...
4711 (store_waitstatus): ... this ...
4712 * inf-child.c: ... here.
4713 * linux-nat.c: Include inf-child.h.
4714 * rs6000-nat.c: Include inf-child.h.
4715 * spu-linux-nat.c: Include inf-child.h.
4716
4717 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4718
4719 * tracepoint.c (start_tracing): Add missing i18n markup.
4720 (stop_tracing, set_trace_user): Ditto.
4721 (set_trace_notes, set_trace_stop_notes): Ditto.
4722
4723 2012-05-21 Tom Tromey <tromey@redhat.com>
4724
4725 PR c++/7173:
4726 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4727 types.
4728 * value.h (value_cast_pointers): Update.
4729 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4730 (value_cast): Update.
4731 (update_search_result): New function.
4732 (do_search_struct_field): New, from search_struct_field. Check
4733 for ambiguous results.
4734 (search_struct_field): Rewrite.
4735 * infcall.c (value_arg_coerce): Update.
4736 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4737 value_cast_pointers.
4738 * ada-lang.c (ada_convert_actual): Update.
4739
4740 2012-05-21 Tom Tromey <tromey@redhat.com>
4741
4742 * macroexp.c (macro_stringify): Terminate the string.
4743
4744 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4747 Describe it.
4748 * auto-load.c (auto_load_expand_dir_vars): New function.
4749 (auto_load_safe_path_vec_update): Use it, remove the
4750 substitute_path_component call thanks to it.
4751 (auto_load_objfile_script): Remove the debug_file_directory processing.
4752 Use auto_load_expand_dir_vars, remove the substitute_path_component
4753 call thanks to it.
4754 * configure: Regenerate.
4755 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4756 path. Escape $ also for $debugdir.
4757 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4758 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4759
4760 2012-05-20 Doug Evans <dje@google.com>
4761
4762 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4763 before use. Check for symtab->includes == NULL before scanning it.
4764
4765 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4766
4767 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4768
4769 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4770
4771 * NEWS: Add microMIPS support and "set mips compression",
4772 "show mips compression" commands.
4773 * mips-tdep.h (mips_isa): New enum.
4774 (gdbarch_tdep): Add mips_isa.
4775 (mips_pc_is_mips16): Update prototype.
4776 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4777 * mips-tdep.c (mips_compression_mips16): New variable.
4778 (mips_compression_micromips): Likewise.
4779 (mips_compression_strings): Likewise.
4780 (mips_compression_string): Likewise.
4781 (is_mips16_isa, is_micromips_isa): New functions.
4782 (is_mips16_addr): Rename to...
4783 (is_compact_addr): ... this.
4784 (unmake_mips16_addr): Likewise to...
4785 (unmake_compact_addr): ... this.
4786 (make_mips16_addr): Likewise to...
4787 (make_compact_addr): ... this.
4788 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4789 functions.
4790 (mips_elf_make_msymbol_special): Handle microMIPS code.
4791 (msymbol_is_special): Rename to...
4792 (msymbol_is_mips16): ... this.
4793 (mips_make_symbol_special, mips_pc_is_mips16): Update
4794 accordingly.
4795 (msymbol_is_mips, msymbol_is_micromips): New functions.
4796 (mips16_to_32_reg): Rename to...
4797 (mips_reg3_to_reg): ... this.
4798 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4799 (mips_pc_isa): Likewise.
4800 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4801 code.
4802 (mips_fetch_instruction): Pass return status instead of printing
4803 an error message if requested. Handle microMIPS code. Bail out
4804 on an invalid ISA.
4805 (micromips_op): New macro.
4806 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4807 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4808 (b6s4_op, b7s3_reg): Likewise.
4809 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4810 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4811 (mips_insn_size): New function.
4812 (mips32_next_pc): Update mips_fetch_instruction call.
4813 (micromips_relative_offset7): New function.
4814 (micromips_relative_offset10): Likewise.
4815 (micromips_relative_offset16): Likewise.
4816 (micromips_pc_insn_size): Likewise.
4817 (micromips_bc1_pc): Likewise.
4818 (micromips_next_pc): Likewise.
4819 (unpack_mips16): Update mips_fetch_instruction call.
4820 (extended_mips16_next_pc): Update according to change to
4821 mips16_to_32_reg.
4822 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4823 code.
4824 (mips16_scan_prologue): Update mips_fetch_instruction call.
4825 Update according to change to mips16_to_32_reg.
4826 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4827 (mips_insn16_frame_base_sniffer): Likewise.
4828 (micromips_decode_imm9): New function.
4829 (micromips_scan_prologue): Likewise.
4830 (mips_micro_frame_cache): Likewise.
4831 (mips_micro_frame_this_id): Likewise.
4832 (mips_micro_frame_prev_register): Likewise.
4833 (mips_micro_frame_sniffer): Likewise.
4834 (mips_micro_frame_unwind): New variable.
4835 (mips_micro_frame_base_address): New function.
4836 (mips_micro_frame_base): New variable.
4837 (mips_micro_frame_base_sniffer): New function.
4838 (mips32_scan_prologue): Update mips_fetch_instruction call.
4839 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4840 rather than for MIPS16.
4841 (mips_insn32_frame_base_sniffer): Likewise.
4842 (mips_addr_bits_remove): Handle microMIPS code.
4843 (deal_with_atomic_sequence): Rename to...
4844 (mips_deal_with_atomic_sequence): ... this. Update the type
4845 of the variable used to hold an instruction. Remove the ISA bit
4846 check. Update mips_fetch_instruction call.
4847 (micromips_deal_with_atomic_sequence): New function.
4848 (deal_with_atomic_sequence): Likewise.
4849 (mips_about_to_return): Handle microMIPS code. Update
4850 mips_fetch_instruction call.
4851 (heuristic_proc_start): Check for the standard MIPS ISA rather
4852 than for MIPS16. Update mips_pc_is_mips16 and
4853 mips_fetch_instruction calls. Handle microMIPS code.
4854 (mips_push_dummy_code): Handle microMIPS code.
4855 (mips_eabi_push_dummy_call): Likewise.
4856 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4857 (mips_o64_push_dummy_call): Handle microMIPS code.
4858 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4859 (is_delayed): Remove function.
4860 (mips_single_step_through_delay): Replace the call to is_delayed
4861 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4862 Handle microMIPS code.
4863 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4864 microMIPS code.
4865 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4866 call.
4867 (micromips_in_function_epilogue_p): New function.
4868 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4869 call.
4870 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4871 Handle microMIPS.
4872 (gdb_print_insn_mips): Likewise.
4873 (mips_breakpoint_from_pc): Likewise.
4874 (mips_remote_breakpoint_from_pc): New function.
4875 (mips32_instruction_has_delay_slot): Simplify making use of the
4876 updated mips_fetch_instruction interface.
4877 (micromips_instruction_has_delay_slot): New function.
4878 (mips16_instruction_has_delay_slot): Simplify making use of the
4879 updated mips_fetch_instruction interface.
4880 (mips_adjust_breakpoint_address): Check for the standard MIPS
4881 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4882 calls. Handle microMIPS code.
4883 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4884 (mips_skip_trampoline_code): Handle microMIPS code.
4885 (global_mips_compression): New function.
4886 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4887 file flags. Register the microMIPS remote breakpoint handler
4888 and heuristic frame unwinder.
4889 (show_mips_compression): New function.
4890 (_initialize_mips_tdep): Add the "set mips compression" and
4891 "show mips compression" commands.
4892
4893 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 * ada-lang.c:
4896 * ada-tasks.c:
4897 * ada-varobj.c:
4898 * amd64-darwin-tdep.c:
4899 * arm-symbian-tdep.c:
4900 * arm-tdep.c:
4901 * avr-tdep.c:
4902 * ax-gdb.c:
4903 * bfin-linux-tdep.c:
4904 * breakpoint.c:
4905 * c-valprint.c:
4906 * cli/cli-cmds.c:
4907 * coffread.c:
4908 * cp-support.c:
4909 * cris-tdep.c:
4910 * dwarf2-frame-tailcall.c:
4911 * dwarf2-frame.c:
4912 * dwarf2expr.c:
4913 * dwarf2loc.c:
4914 * dwarf2read.c:
4915 * elfread.c:
4916 * eval.c:
4917 * expprint.c:
4918 * f-valprint.c:
4919 * frv-tdep.c:
4920 * h8300-tdep.c:
4921 * hppa-hpux-tdep.c:
4922 * hppa-tdep.c:
4923 * hppanbsd-tdep.c:
4924 * i386-nto-tdep.c:
4925 * i386-tdep.c:
4926 * i387-tdep.c:
4927 * ia64-tdep.c:
4928 * jit.c:
4929 * linespec.c:
4930 * linux-tdep.c:
4931 * lm32-tdep.c:
4932 * m2-valprint.c:
4933 * m32c-tdep.c:
4934 * m32r-rom.c:
4935 * m32r-tdep.c:
4936 * m68k-tdep.c:
4937 * m68klinux-tdep.c:
4938 * mi/mi-main.c:
4939 * microblaze-tdep.c:
4940 * mips-linux-tdep.c:
4941 * mips-tdep.c:
4942 * mn10300-tdep.c:
4943 * p-valprint.c:
4944 * parse.c:
4945 * ppc-linux-tdep.c:
4946 * ppc-sysv-tdep.c:
4947 * printcmd.c:
4948 * python/py-finishbreakpoint.c:
4949 * python/py-inferior.c:
4950 * python/py-infthread.c:
4951 * python/py-type.c:
4952 * python/python.c:
4953 * remote-fileio.c:
4954 * remote-m32r-sdi.c:
4955 * remote-mips.c:
4956 * reverse.c:
4957 * rl78-tdep.c:
4958 * rs6000-aix-tdep.c:
4959 * rs6000-tdep.c:
4960 * s390-tdep.c:
4961 * score-tdep.c:
4962 * sh64-tdep.c:
4963 * skip.c:
4964 * solib-darwin.c:
4965 * solib-dsbt.c:
4966 * solib-frv.c:
4967 * sparc-tdep.c:
4968 * spu-multiarch.c:
4969 * spu-tdep.c:
4970 * stack.c:
4971 * symfile.c:
4972 * symtab.c:
4973 * tic6x-tdep.c:
4974 * tracepoint.c:
4975 * v850-tdep.c:
4976 * valarith.c:
4977 * valprint.c:
4978 * value.c:
4979 * xcoffread.c:
4980 * xtensa-tdep.c:
4981 * ada-lang.c:
4982 * ada-tasks.c:
4983 * ada-varobj.c:
4984 * amd64-darwin-tdep.c:
4985 * arm-symbian-tdep.c:
4986 * arm-tdep.c: Delete unused variables.
4987
4988 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4989
4990 Rename $ddir to $datadir.
4991 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4992 * auto-load.c (auto_load_safe_path_vec_update)
4993 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4994 * configure: Regenerate.
4995 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4996 Likewise. Remove the 'use $ddir' help string.
4997
4998 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4999
5000 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5001 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5002
5003 2012-05-18 Tom Tromey <tromey@redhat.com>
5004
5005 PR exp/13907:
5006 * valprint.h (struct value_print_options) <symbol_print>: New
5007 field.
5008 * valprint.c (user_print_options): Add default for symbol_print.
5009 (show_symbol_print): New function.
5010 (generic_val_print): Respect symbol_print.
5011 (_initialize_valprint): Add "print symbol" setting.
5012 * f-valprint.c (f_val_print): Respect symbol_print.
5013 * c-valprint.c (c_val_print): Respect symbol_print.
5014 * NEWS: Update.
5015 * printcmd.c (print_address_symbolic): Return int. Ignore some
5016 zero-size symbols.
5017 (print_address_demangle): Return int.
5018 * defs.h: (print_address_symbolic): Return int.
5019 * value.h (print_address_demangle): Return int.
5020
5021 2012-05-18 Tom Tromey <tromey@redhat.com>
5022
5023 * valprint.c (val_print_string): Don't print leading space.
5024 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5025 print space before string or vtbl.
5026 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5027 before string.
5028 * jv-valprint.c (java_value_print): Print space before string.
5029 * go-valprint.c (print_go_string): Print space before string.
5030 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5031 space before string.
5032 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5033 space before string or vtbl.
5034 * auxv.c (fprint_target_auxv): Print space after address.
5035
5036 2012-05-18 Tom Tromey <tromey@redhat.com>
5037
5038 * printcmd.c (print_address_demangle): Remove special case for 0.
5039
5040 2012-05-18 Tom Tromey <tromey@redhat.com>
5041
5042 * printcmd.c (print_address_demangle): Add 'opts' argument.
5043 * p-valprint.c (pascal_val_print): Update.
5044 * jv-valprint.c (java_val_print): Update.
5045 * value.h: Update.
5046 * valprint.c (generic_val_print): Update.
5047 (print_function_pointer_address): Add 'options' argument. Remove
5048 'addressprint' argument. Update.
5049 * m2-valprint.c (print_unpacked_pointer): Update.
5050 * gnu-v3-abi.c (print_one_vtable): Update.
5051 (gnuv3_print_method_ptr): Update.
5052 * f-valprint.c (f_val_print): Update.
5053 * cp-valprint.c (cp_print_value_fields): Update.
5054 * valprint.h (print_function_pointer_address): Update.
5055 * c-valprint.c (c_val_print): Update.
5056
5057 2012-05-18 Tom Tromey <tromey@redhat.com>
5058
5059 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5060 directly corresponding to the found psymtab.
5061 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5062 (dw2_find_pc_sect_symtab): Use it.
5063 * block.h (blockvector_contains_pc): Declare.
5064 * block.c (find_block_in_blockvector): New function.
5065 (blockvector_for_pc_sect): Use it.
5066 (blockvector_contains_pc): New function.
5067
5068 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5069
5070 * mips-tdep.h (mips_write_pc): New prototype.
5071 * mips-tdep.c (mips_write_pc): Make external, add description.
5072 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5073 add description.
5074
5075 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5076
5077 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5078 mips_regnum->pc.
5079 (mips_unwind_pc, mips_write_pc): Likewise.
5080 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5081 gdbarch_read_pc.
5082
5083 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5084
5085 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5086 proc_warn, proc_error, proc_get_status, proc_flags,
5087 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5088 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5089 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5090 proc_stop_process, proc_wait_for_stop, proc_run_process,
5091 proc_set_traced_signals, proc_set_traced_faults,
5092 proc_set_traced_sysentry, proc_set_traced_sysexit,
5093 proc_set_held_signals, proc_get_held_signals,
5094 proc_get_traced_signals, proc_get_traced_faults,
5095 proc_get_traced_sysentry, proc_get_traced_sysexit,
5096 proc_clear_current_fault, proc_set_current_signal,
5097 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5098 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5099 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5100 proc_get_current_thread, proc_get_current_thread,
5101 proc_get_current_thread, proc_update_threads,
5102 proc_update_threads, proc_update_threads, proc_update_threads,
5103 proc_iterate_over_threads, procfs_find_new_threads,
5104 procfs_pid_to_str): Make static. Remove advance declaration.
5105 (proc_cursig): Make static. Conditionalized defintion on
5106 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5107 (proc_syscall, proc_set_kill_on_last_close,
5108 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5109 proc_get_pending_signals, proc_get_signal_actions,
5110 proc_trace_signal, proc_ignore_signal): Delete.
5111
5112 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5113
5114 * coffread.c (cs_section_address): Passing proper argument for
5115 `bfd_get_section_vma'.
5116 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5117 `bfd_get_section_flags'.
5118 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5119 `bfd_get_section_vma'.
5120
5121 2012-05-16 Tom Tromey <tromey@redhat.com>
5122
5123 PR macros/13205:
5124 * macrotab.h: (macro_define_special): Declare.
5125 (enum macro_special_kind): New.
5126 (struct macro_definition) <argc, replacement>: Update comments.
5127 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5128 (macro_define_object_internal): New function.
5129 (macro_define_object): Use it.
5130 (macro_define_special): New function.
5131 (fixup_definition): New function.
5132 (macro_lookup_definition, foreach_macro_in_scope)
5133 (foreach_macro): Use fixup_definition.
5134 * macroexp.h (macro_stringify): Declare.
5135 * macroexp.c (free_buffer_return_text): New function.
5136 (stringify): Constify "arg".
5137 (macro_stringify): New function.
5138 * dwarf2read.c (macro_start_file): Call macro_define_special.
5139
5140 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5141 Maciej W. Rozycki <macro@mips.com>
5142
5143 * breakpoint.h (bp_location): Add related_address member.
5144 * inferior.h (get_return_value): Take a pointer to struct value
5145 instead of struct type for the function requested.
5146 * value.h (using_struct_return): Likewise.
5147 * gdbarch.sh (return_value): Take a pointer to struct value
5148 instead of struct type for the function requested.
5149 * breakpoint.c (set_breakpoint_location_function): Initialize
5150 related_address for bp_gnu_ifunc_resolver breakpoints.
5151 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5152 requested function's address to gdbarch_return_value.
5153 * eval.c (evaluate_subexp_standard): Pass the requested
5154 function's address to using_struct_return.
5155 * infcall.c (call_function_by_hand): Pass the requested
5156 function's address to using_struct_return and
5157 gdbarch_return_value.
5158 * infcmd.c (get_return_value): Take a pointer to struct value
5159 instead of struct type for the function requested.
5160 (print_return_value): Update accordingly.
5161 (finish_command_continuation): Likewise.
5162 * stack.c (return_command): Pass the requested function's
5163 address to using_struct_return and gdbarch_return_value.
5164 * value.c (using_struct_return): Take a pointer to struct value
5165 instead of struct type for the function requested. Pass the
5166 requested function's address to gdbarch_return_value.
5167 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5168 New function_value member, replacing function_type.
5169 (bpfinishpy_dealloc): Update accordingly.
5170 (bpfinishpy_pre_stop_hook): Likewise.
5171 (bpfinishpy_init): Likewise. Record the requested function's
5172 address.
5173 * mips-tdep.c (mips_fval_reg): New enum.
5174 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5175 words put in GP registers.
5176 (mips_o64_push_dummy_call): Update a comment.
5177 (mips_o32_return_value): Take a pointer to struct value instead
5178 of struct type for the function requested and use it to check if
5179 using the MIPS16 calling convention. Return the designated
5180 general purpose registers for floating-point values returned in
5181 MIPS16 mode.
5182 (mips_o64_return_value): Likewise.
5183 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5184 (ppc_sysv_abi_broken_return_value): Likewise.
5185 (ppc64_sysv_abi_return_value): Likewise.
5186 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5187 value instead of struct type for the function requested.
5188 * amd64-tdep.c (amd64_return_value): Likewise.
5189 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5190 * arm-tdep.c (arm_return_value): Likewise.
5191 * avr-tdep.c (avr_return_value): Likewise.
5192 * bfin-tdep.c (bfin_return_value): Likewise.
5193 * cris-tdep.c (cris_return_value): Likewise.
5194 * frv-tdep.c (frv_return_value): Likewise.
5195 * h8300-tdep.c (h8300_return_value): Likewise.
5196 (h8300h_return_value): Likewise.
5197 * hppa-tdep.c (hppa32_return_value): Likewise.
5198 (hppa64_return_value): Likewise.
5199 * i386-tdep.c (i386_return_value): Likewise.
5200 * ia64-tdep.c (ia64_return_value): Likewise.
5201 * iq2000-tdep.c (iq2000_return_value): Likewise.
5202 * lm32-tdep.c (lm32_return_value): Likewise.
5203 * m32c-tdep.c (m32c_return_value): Likewise.
5204 * m32r-tdep.c (m32r_return_value): Likewise.
5205 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5206 * m68k-tdep.c (m68k_return_value): Likewise.
5207 (m68k_svr4_return_value): Likewise.
5208 * m88k-tdep.c (m88k_return_value): Likewise.
5209 * mep-tdep.c (mep_return_value): Likewise.
5210 * microblaze-tdep.c (microblaze_return_value): Likewise.
5211 * mn10300-tdep.c (mn10300_return_value): Likewise.
5212 * moxie-tdep.c (moxie_return_value): Likewise.
5213 * mt-tdep.c (mt_return_value): Likewise.
5214 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5215 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5216 (ppc_sysv_abi_broken_return_value): Likewise.
5217 (ppc64_sysv_abi_return_value): Likewise.
5218 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5219 * rl78-tdep.c (rl78_return_value): Likewise.
5220 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5221 * rx-tdep.c (rx_return_value): Likewise.
5222 * s390-tdep.c (s390_return_value): Likewise.
5223 * score-tdep.c (score_return_value): Likewise.
5224 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5225 (sh_return_value_fpu): Likewise.
5226 * sh64-tdep.c (sh64_return_value): Likewise.
5227 * sparc-tdep.c (sparc32_return_value): Likewise.
5228 * sparc64-tdep.c (sparc64_return_value): Likewise.
5229 * spu-tdep.c (spu_return_value): Likewise.
5230 * tic6x-tdep.c (tic6x_return_value): Likewise.
5231 * v850-tdep.c (v850_return_value): Likewise.
5232 * vax-tdep.c (vax_return_value): Likewise.
5233 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5234 * xtensa-tdep.c (xtensa_return_value): Likewise.
5235 * gdbarch.c: Regenerate.
5236 * gdbarch.h: Regenerate.
5237
5238 2012-05-15 Tom Tromey <tromey@redhat.com>
5239
5240 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5241
5242 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5243
5244 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5245 of command in two error message.
5246
5247 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5248
5249 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5250
5251 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5252
5253 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5254
5255 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5256
5257 * NEWS (show auto-load scripts-directory): Add forgotten command.
5258
5259 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5260
5261 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5262 parameters.
5263
5264 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5265
5266 * amd64-tdep.c: Include features/i386/x32.c and
5267 features/i386/x32-avx.c.
5268 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5269 initialize_tdesc_x32_avx.
5270
5271 2012-05-14 Stan Shebs <stan@codesourcery.com>
5272
5273 Add dynamic printf.
5274 * breakpoint.h (enum bptype): New type bp_dprintf.
5275 (struct breakpoint): New field extra_string.
5276 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5277 (create_breakpoint): Add extra_string arg.
5278 * breakpoint.c (dprintf_breakpoint_ops): New.
5279 (is_breakpoint): Add bp_dprintf.
5280 (bpstat_what): Add dprintf case.
5281 (bptype_string): Ditto.
5282 (print_one_breakpoint_location): Ditto.
5283 (init_bp_location): Ditto.
5284 (bkpt_print_mention): Ditto.
5285 (dprintf_style_enums): New array.
5286 (dprintf_style): New global.
5287 (dprintf_function): New global.
5288 (dprintf_channel): New global.
5289 (update_dprintf_command_list): New function.
5290 (update_dprintf_commands): New function.
5291 (init_breakpoint_sal): Add extra_string argument, handle it.
5292 (create_breakpoint_sal): Add extra_string argument.
5293 (create_breakpoints_sal): Add extra_string argument, update callers.
5294 (find_condition_and_thread): Add extra argument.
5295 (create_breakpoint): Add extra_string argument, record it.
5296 (dprintf_command): New function.
5297 (break_command_1): Add arg to create_breakpoint call.
5298 (handle_gnu_v3_exceptions): Ditto.
5299 (trace_command): Ditto.
5300 (ftrace_command): Ditto.
5301 (strace_command): Ditto.
5302 (bkpt_print_mention): Add dprintf case.
5303 (create_breakpoint_sal_default): Add extra_string argument.
5304 (_initialize_breakpoint): Add new commands.
5305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5306 * python/py-breakpoint.c (bppy_init): Ditto.
5307 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5308
5309 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5310
5311 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5312
5313 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5314
5315 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5316 unsigned long long.
5317
5318 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5319
5320 Add a new function gdb.find_pc_line to the Python API.
5321 * NEWS (Python Scripting): Add entry about the new function.
5322 * python/python.c (gdbpy_find_pc_line): New function which
5323 implements gdb.find_pc_line.
5324 (GdbMethods): Add entry for the new function.
5325
5326 2012-05-12 Pedro Alves <palves@redhat.com>
5327
5328 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5329 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5330
5331 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5332
5333 * inferior.c: Include completer.h
5334 (initialize_inferiors): Set completer of add-inferior to
5335 filename_completer.
5336
5337 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5338
5339 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5340 gdbarch_ptr_bit for x32 core dump.
5341
5342 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5343
5344 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5345 and features/i386/x32-avx-linux.c.
5346
5347 2012-05-11 Stan Shebs <stan@codesourcery.com>
5348 Kwok Cheung Yeung <kcy@codesourcery.com>
5349
5350 * NEWS: Describe new info os commands.
5351 * common/linux-osdata.c (PID_T, TIME_T): Define.
5352 (MAX_PID_T_STRLEN): New.
5353 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5354 MAX_PID_T_STRLEN.
5355 (command_from_pid): Add comment. Change to use PID_T.
5356 (commandline_from_pid): Change to use PID_T.
5357 (user_from_pid): Add comment.
5358 (get_process_owner): Add comment. Change to use PID_T and
5359 MAX_PID_T_STRLEN.
5360 (get_number_of_cpu_cores): Add comment.
5361 (get_cores_used_by_process): Add comment. Change to use PID_T and
5362 MAX_PID_T_STRLEN.
5363 (linux_xfer_osdata_processes): Change to use PID_T and
5364 MAX_PID_T_STRLEN.
5365 (compare_processes): New function.
5366 (linux_xfer_osdata_processgroups): New function.
5367 (linux_xfer_osdata_threads): Change to use PID_T.
5368 (linux_xfer_osdata_fds): New function.
5369 (format_socket_state, print_sockets): New functions.
5370 (union socket_addr): New union.
5371 (linux_xfer_osdata_isockets): New function.
5372 (time_from_time_t, group_from_gid): New functions.
5373 (linux_xfer_osdata_shm): New function.
5374 (linux_xfer_osdata_sem): New function.
5375 (linux_xfer_osdata_msg): New function.
5376 (linux_xfer_osdata_modules): New function.
5377 (osdata_table): Add new entries.
5378 * common/buffer.c (buffer_xml_printf): Add support for long and
5379 long long format specifiers.
5380
5381 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5382
5383 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5384 (tdesc_x32_avx_linux): Likewise.
5385
5386 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5387
5388 Implement multi-component --with-auto-load-dir.
5389 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5390 entries.
5391 (--with-auto-load-safe-path): Update the default value description.
5392 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5393 New.
5394 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5395 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5396 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5397 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5398 "set auto-load scripts-directory".
5399 * config.in: Regenerate.
5400 * configure: Regenerate.
5401 * configure.ac (--with-auto-load-dir): New configure option.
5402 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5403
5404 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 Provide $ddir substitution for --with-auto-load-safe-path.
5407 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5408 entries.
5409 * auto-load.c: Include observer.h.
5410 (auto_load_safe_path_vec_update): Call substitute_path_component for
5411 each component. New variable ddir_subst.
5412 (auto_load_gdb_datadir_changed): New function.
5413 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5414 AUTO_LOAD_SAFE_PATH. New comment.
5415 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5416 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5417 * config.in: Regenerate.
5418 * configure: Regenerate.
5419 * configure.ac (--auto-load-safe-path): Rename
5420 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5421 GDB_DATADIR/auto-load.
5422 * defs.h (substitute_path_component): New declaration.
5423 * top.c: Include observer.h.
5424 (set_gdb_datadir): New function.
5425 (init_main): Install it for "set data-directory".
5426 * utils.c (substitute_path_component): New function.
5427
5428 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5429
5430 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5431 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5432 DEBUG_FILE_DIRECTORY. Handle multiple components of
5433 DEBUG_FILE_DIRECTORY.
5434
5435 2012-05-10 Tom Tromey <tromey@redhat.com>
5436
5437 * dwarf2read.c (recursively_write_psymbols): New function.
5438 (write_psymtabs_to_index): Use it.
5439
5440 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5441 field.
5442 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5443 (load_partial_comp_unit): Update.
5444 (queue_comp_unit): Add argument 'pretend_language'.
5445 (process_queue): Update.
5446 (psymtab_to_symtab_1): Skip dependencies that have a user.
5447 (load_partial_comp_unit_reader): Give meaning to the 'data'
5448 argument.
5449 (load_full_comp_unit): Add 'pretend_language' argument.
5450 (process_full_comp_unit): Add 'pretend_language' argument. Set
5451 language on CU.
5452 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5453 Update.
5454 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5455 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5456 Update.
5457 (prepare_one_comp_unit): Add 'pretend_language' argument.
5458
5459 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5460 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5461 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5462 (dw2_do_instantiate_symtab): Check whether symtab was read in
5463 before queueing.
5464 (dw2_instantiate_symtab): Add assertion. Call
5465 process_cu_includes.
5466 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5467 (partial_symtab_p): New typedef.
5468 (set_partial_user): New function.
5469 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5470 (scan_partial_symbols): Add imported CU to imported_symtabs.
5471 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5472 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5473 (get_symtab, recursively_compute_inclusions)
5474 (compute_symtab_includes, process_cu_includes)
5475 (process_imported_unit_die): New functions.
5476 (process_die) <DW_TAG_imported_unit>: New case.
5477 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5478
5479 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5480 comment.
5481 (struct partial_die_info) <locdesc>: Remove.
5482 <d>: New field.
5483 (process_psymtab_comp_unit): Add 'read_partial' argument.
5484 Update.
5485 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5486 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5487 (add_partial_symbol): Update.
5488 (process_die): Handle DW_TAG_partial_unit.
5489 (read_file_scope): Update comment.
5490 (load_partial_dies): Handle DW_TAG_imported_unit.
5491 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5492 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5493
5494 2012-05-10 Tom Tromey <tromey@redhat.com>
5495
5496 * cc-with-dwz.sh: New file.
5497
5498 2012-05-10 Tom Tromey <tromey@redhat.com>
5499
5500 * symtab.h (struct symtab) <includes, user>: New fields.
5501 * block.h (struct block_iterator) <d, idx, which>: New fields.
5502 * block.c (initialize_block_iterator, find_iterator_symtab)
5503 (block_iterator_step, block_iter_name_step)
5504 (block_iter_match_step): New functions.
5505 (block_iterator_first, block_iterator_next)
5506 (block_iter_name_first, block_iter_name_next)
5507 (block_iter_match_first, block_iter_match_next): Rewrite.
5508 (get_block_symtab): New function.
5509
5510 2012-05-10 Tom Tromey <tromey@redhat.com>
5511
5512 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5513 set_block_symtab.
5514 * jit.c (finalize_symtab): Use allocate_global_block,
5515 set_block_symtab.
5516 * buildsym.c (finish_block_internal): New function, from old
5517 finish_block.
5518 (finish_block): Rewrite.
5519 (end_symtab): Use finish_block_internal, set_block_symtab.
5520 * block.h (struct global_block): New.
5521 (allocate_global_block, set_block_symtab): Declare.
5522 * block.c (allocate_global_block, set_block_symtab): New
5523 functions.
5524
5525 2012-05-10 Tom Tromey <tromey@redhat.com>
5526
5527 * psymtab.c (partial_map_expand_apply): Add assertion.
5528 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5529 (psymtab_to_symtab): Find unshared psymtab.
5530 (dump_psymtab): Print including psymtabs.
5531 (recursively_search_psymtabs): New function.
5532 (expand_symtabs_matching_via_partial): Use it.
5533 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5534 fields.
5535 (enum psymtab_search_status): New.
5536
5537 2012-05-10 Tom Tromey <tromey@redhat.com>
5538
5539 * tracepoint.c (scope_info): Update.
5540 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5541 (find_pc_sect_symtab, search_symbols)
5542 (default_make_symbol_completion_list_break_on)
5543 (make_file_symbol_completion_list): Update.
5544 * symmisc.c (dump_symtab_1): Update.
5545 * stack.c (print_frame_args, iterate_over_block_locals)
5546 (print_frame_labels, iterate_over_block_arg_vars): Update.
5547 * python/py-block.c (block_object) <dict>: Remove.
5548 <block>: New field.
5549 <iter>: Change type.
5550 (blpy_iter): Update.
5551 (blpy_block_syms_iternext): Update.
5552 * psymtab.c (map_block): Use block iterators.
5553 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5554 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5555 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5556 * infrun.c (check_exception_resume): Update.
5557 * cp-support.c (make_symbol_overload_list_block): Update.
5558 * coffread.c (patch_opaque_types): Update.
5559 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5560 * block.h (struct block_iterator): New.
5561 (block_iterator_first, block_iterator_next, block_iter_name_first)
5562 (block_iter_name_next, block_iter_match_first)
5563 (block_iter_match_next): Declare.
5564 (ALL_BLOCK_SYMBOLS): Redefine.
5565 * block.c (block_iterator_first, block_iterator_next)
5566 (block_iter_name_first, block_iter_name_next)
5567 (block_iter_match_first, block_iter_match_next): New functions.
5568 * ada-lang.c (ada_add_block_symbols)
5569 (ada_make_symbol_completion_list): Use block iterator.
5570
5571 2012-05-10 Tom Tromey <tromey@redhat.com>
5572
5573 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5574 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5575 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5576 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5577 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5578 Update.
5579
5580 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5581
5582 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5583 print-file-var-lib2.c, print-file-var-main.c and
5584 print-file-var.exp (located in gdb/testsuite/gdb.base).
5585
5586 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5587
5588 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5589 try locating the symbol in the symbol's own objfile first, before
5590 extending the search to all objfiles.
5591 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5592 out of lookup_symbol_aux_symtabs.
5593 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5594 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5595 Do not search EXCLUDE_OBJFILE.
5596 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5597 (lookup_symbol_global): Search for matches in the block's objfile
5598 first, before searching all other objfiles.
5599
5600 2012-05-10 Tristan Gingold <gingold@adacore.com>
5601
5602 * printcmd.c (set_command): Add pre/post inc/dec.
5603
5604 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5605
5606 * gdb.1: Document -ex option.
5607
5608 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5609
5610 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5611 * inferior.h (AT_SYMBOL): Delete.
5612
5613 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5614
5615 * mips-tdep.c (mips_push_dummy_code): New function.
5616 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5617 ON_STACK and install mips_push_dummy_code as our gdbarch
5618 push_dummy_code routine.
5619
5620 2012-05-09 Pedro Alves <palves@redhat.com>
5621
5622 * target.c (set_maintenance_target_async_permitted): Rename to ...
5623 (set_target_async_command): ... this.
5624 (show_maintenance_target_async_permitted): Rename to ...
5625 (show_target_async_command): ... this.
5626 (initialize_targets): Adjust.
5627
5628 2012-05-08 Doug Evans <dje@google.com>
5629
5630 * go-exp.y (classify_name): Add missing assignment of fields of
5631 yylval.ssym.
5632
5633 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5634
5635 Display the ">" prompt in interactive mode while reading canned
5636 commands, even when the current interpreter is MI.
5637
5638 * interps.c (interp_set_temp): New function.
5639
5640 * interps.h (interp_set_temp): Add prototype.
5641
5642 * cli/cli-script.c (restore_interp): New cleanup function.
5643 (read_command_lines): Temporarily override the current interpreter
5644 with CLI and arrange for restoring the original one.
5645
5646 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5647
5648 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5649
5650 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5651
5652 * probe.c (parse_probes): Move conditional to check for
5653 debuginfo files from here...
5654 * stap-probe.c (stap_get_probes): ... to here.
5655
5656 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5657 H.J. Lu <hongjiu.lu@intel.com>
5658
5659 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5660 `movl %esp, %ebp' for the X32 ABI.
5661
5662 2012-05-07 Tom Tromey <tromey@redhat.com>
5663
5664 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5665 get_DW_TAG_name.
5666 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5667 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5668 (dwarf_stack_op_name): Remove.
5669 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5670 (decode_locdesc): Use get_DW_OP_name.
5671 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5672 (dwarf2_compile_expr_to_ax): Likewise.
5673 (disassemble_dwarf_expression): Likewise.
5674 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5675
5676 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5677
5678 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5679 (sh_linux_sigtramp_cache): New function.
5680 (sh_linux_sigreturn_init): New function.
5681 (sh_linux_rt_sigreturn_init): New function.
5682 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5683 patterns.
5684 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5685 syscall codes.
5686 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5687 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5688 (sh_linux_init_abi): Add init calls to register new tramp_frame
5689 definitions under 32-bit SH, update comments.
5690
5691 2012-05-07 Pedro Alves <palves@redhat.com>
5692
5693 PR gdb/10952
5694
5695 * amd64-linux-tdep.c: Include glibc-tdep.h.
5696 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5697 gdbarch_skip_solib_resolver callback.
5698
5699 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5702 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5703 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5704 (add_auto_load_safe_path): Change the error message.
5705 (_initialize_auto_load): Change the "safe-path" help text.
5706 * configure: Regenerate
5707 * configure.ac (--without-auto-load-safe-path): Set
5708 WITH_AUTO_LOAD_SAFE_PATH to /.
5709
5710 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5711
5712 * stap-probe.h: Do not include unecessary `probe.h'.
5713
5714 2012-05-05 Alan Modra <amodra@gmail.com>
5715
5716 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5717 bfd_und_section_ptr.
5718 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5719 and bfd_com_section_ptr.
5720
5721 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5722
5723 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5724
5725 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5726
5727 * windows-nat.h (segment_register_p_ftype): New typedef.
5728 (windows_set_segment_register_p): Add declaration.
5729 * windows-nat.c (segment_register_p): New static global.
5730 (windows_set_segment_register_p): New function.
5731 (do_windows_fetch_inferior_registers): Add special handling
5732 for segment registers.
5733 * amd64-windows-nat.c: #include "amd64-tdep.h".
5734 (amd64_windows_segment_register_p): New function.
5735 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5736 * i386-windows-nat.c: #include "i386-tdep.h".
5737 (i386_windows_segment_register_p): New function.
5738 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5739
5740 2012-05-04 Tristan Gingold <gingold@adacore.com>
5741
5742 * printcmd.c (set_command): Emit a warning if the expression is not
5743 an assignment.
5744
5745 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5746
5747 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5748 Make static.
5749
5750 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5751
5752 * stap-probe.c (stap_is_operator): Change declaration.
5753 (stap_get_opcode): Change return value.
5754 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5755 `stap_parse_argument_1'.
5756
5757 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5758
5759 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5760 debug log.
5761
5762 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5763
5764 Add two new methods global_block and static_block to gdb.Symtab
5765 objects.
5766 * NEWS (Python scripting): Add entry about the new methods.
5767 * python/py-symtab.c (stpy_global_block): New function which
5768 implements the gdb.Symtab.global_block() method.
5769 (stpy_static_block): New function which implements the
5770 gdb.Symtab.static_block() method.
5771 (symtab_object_methods): Add entries for the two new methods.
5772
5773 2012-05-03 Doug Evans <dje@google.com>
5774
5775 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5776 files.
5777
5778 2012-05-03 Yao Qi <yao@codesourcery.com>
5779
5780 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5781 space.
5782 (i386_process_record): Ditto.
5783
5784 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5785
5786 * infcall.c (unwind_on_signal_p): Make static.
5787
5788 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5789
5790 * sol-thread.c (solaris_pid_to_str): Make static.
5791 (_initialize_sol_thread): Add prototype.
5792
5793 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5794
5795 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5796
5797 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5798
5799 * MAINTAINERS: Remove myself.
5800
5801 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5802
5803 Fix --without-auto-load-safe-path for MS-Windows host platform.
5804 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5805
5806 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5807
5808 * gdb_curses.h: Undefine KEY_EVENT before including curses
5809 headers. Move "#undef MOUSE_MOVED" before any curses header
5810 inclusion.
5811
5812 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5813
5814 * features/i386/i386-mmx-linux.c: Regenerate.
5815 * features/rs6000/powerpc-32.c: Likewise.
5816 * features/rs6000/powerpc-32l.c: Likewise.
5817 * features/rs6000/powerpc-403.c: Likewise.
5818 * features/rs6000/powerpc-403gc.c: Likewise.
5819 * features/rs6000/powerpc-405.c: Likewise.
5820 * features/rs6000/powerpc-505.c: Likewise.
5821 * features/rs6000/powerpc-601.c: Likewise.
5822 * features/rs6000/powerpc-602.c: Likewise.
5823 * features/rs6000/powerpc-603.c: Likewise.
5824 * features/rs6000/powerpc-604.c: Likewise.
5825 * features/rs6000/powerpc-64.c: Likewise.
5826 * features/rs6000/powerpc-64l.c: Likewise.
5827 * features/rs6000/powerpc-750.c: Likewise.
5828 * features/rs6000/powerpc-860.c: Likewise.
5829 * features/rs6000/powerpc-e500.c: Likewise.
5830 * features/rs6000/powerpc-e500l.c: Likewise.
5831 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5832 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5833 * features/rs6000/rs6000.c: Likewise.
5834
5835 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5836
5837 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5838 variable.
5839 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5840 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5841 (stap_parse_argument) <e>: Likewise.
5842 (handle_stap_probe) <byte_order>: Likewise.
5843
5844 2012-04-30 Doug Evans <dje@google.com>
5845
5846 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5847 init_and_read_dies_worker. All callers updated.
5848 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5849 replaced with init_cutu_and_read_dies.
5850 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5851 (find_partial_die): Remove FIXME. Don't free current CU.
5852
5853 2012-04-30 Sterling Augustine <saugustine@google.com>
5854
5855 * contrib: New directory.
5856 * contrib/test_pubnames_and_indexes.py: New file.
5857
5858 2012-04-30 Doug Evans <dje@google.com>
5859
5860 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5861 All callers updated.
5862 (init_cu_die_reader): Verify the section is non-empty.
5863 (dwarf_decode_line_header): Don't dereference section->asection
5864 until we know the section is present.
5865
5866 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5867
5868 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5869 probes.
5870
5871 2012-04-29 Yao Qi <yao@codesourcery.com>
5872
5873 * gdb-code-style.el: New hook gdb-markup-hook
5874 and gdb-comment-hook.
5875
5876 2012-04-28 Doug Evans <dje@google.com>
5877
5878 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5879 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5880 objfile->obfd.
5881 * symfile.h (dwarf2_debug_sections): New member addr.
5882 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5883 (ctx_no_get_addr_index): New function.
5884 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5885 (ctx_no_get_addr_index): Declare.
5886 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5887 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5888 (dwarf_expr_ctx_funcs): Update.
5889 (needs_get_addr_index): New function.
5890 (needs_frame_ctx_funcs): Update.
5891 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5892 * dwarf2read.c: #include "gdbcore.h".
5893 (dwarf2_per_objfile): New members addr, dwo_files.
5894 (dwarf2_elf_names): Add entry for addr.
5895 (struct dwo_section_names): New type.
5896 (dwo_section_names): New static global.
5897 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5898 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5899 old debug_types_section member updated to use this.
5900 Rename member debug_types_section to info_or_types_section,
5901 all uses updated.
5902 (signatured_type): Rename member type_offset to type_offset_in_tu,
5903 all uses updated. New member type_offset_in_section.
5904 (struct dwo_sections): New type.
5905 (struct dwo_unit): New type.
5906 (struct dwo_file): New type.
5907 (die_reader_specs): New member dwo_file.
5908 (dwarf2_locate_sections): Watch for .debug_addr.
5909 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5910 (dwarf2_read_section): Get bfd of section from bfd's asection,
5911 instead of objfile.
5912 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5913 (create_signatured_type_table_from_index): Initialize
5914 sig_type->info_or_types_section.
5915 (dw2_get_file_names): Statement lists for type units with DWO files
5916 live in the DWO file.
5917 (create_debug_types_hash_table): New function.
5918 (create_all_type_units): Rewrite.
5919 (init_cu_die_reader): New arg dwo_file, all callers updated.
5920 (init_and_read_dies_worker): Get section from
5921 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5922 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5923 continue reading the CU/TU from there.
5924 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5925 updated. Get section from this_cu->info_or_types_section.
5926 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5927 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5928 DW_FORM_GNU_str_index.
5929 (hash_dwo_file, eq_dwo_file): New functions.
5930 (allocate_dwo_file_hash_table): New function.
5931 (hash_dwo_unit, eq_dwo_unit): New functions.
5932 (allocate_dwo_unit_table): New function.
5933 (dwarf2_locate_dwo_sections): New function.
5934 (struct create_dwo_info_table_data): New type.
5935 (create_debug_info_hash_table_reader): New function.
5936 (create_debug_info_hash_table): New function.
5937 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5938 (lookup_dwo_file): New function.
5939 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5940 (free_dwo_file, free_dwo_file_cleanup): New functions.
5941 (free_dwo_file_from_slot, free_dwo_files): New functions.
5942 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5943 (dwarf2_record_block_ranges): Ditto.
5944 (read_partial_die): Ditto.
5945 (process_enumeration_scope): Update to use type_offset_in_section.
5946 (read_full_die_1): New function.
5947 (read_full_die): Rewrite.
5948 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5949 DW_FORM_GNU_str_index.
5950 (read_addr_index_1, read_addr_index): New functions.
5951 (read_addr_index_from_leb128): New function.
5952 (struct dwarf2_read_addr_index_data): New type.
5953 (dwarf2_read_addr_index_reader): New function.
5954 (dwarf2_read_addr_index): New function.
5955 (read_str_index): New function.
5956 (leb128_size): New function.
5957 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5958 If processing a type unit from a DWO file, get the line section
5959 from the DWO file.
5960 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5961 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5962 DW_FORM_GNU_str_index.
5963 (lookup_die_type): Check whether section offset of type's die is
5964 known before looking it up. Remove assert. Condition can
5965 legimately happen for inter-cu type references.
5966 (dwarf_attr_name): Handle Fission attributes.
5967 (dwarf_form_name): Handle Fission forms.
5968 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5969 DW_FORM_GNU_str_index.
5970 (follow_die_sig): Update to use type_offset_in_section.
5971 (decode_locdesc): New case DW_OP_GNU_addr_index.
5972 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5973 DW_FORM_GNU_str_index.
5974 (cu_debug_loc_section): New function.
5975 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5976 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5977 Free DWO files if present.
5978 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5979
5980 Refactor DIE reading.
5981 * dwarf2read.c (dwarf2_per_objfile): Replace members
5982 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5983 (die_reader_specs): New member "die_section". Temporarily make
5984 member "buffer" non-const, pending constifying all info_ptr uses.
5985 (die_reader_func_ftype): New typedef.
5986 (dw2_get_file_names_reader): New function.
5987 (dw2_get_file_names): Rewrite.
5988 (read_and_check_type_unit_head): Rename arg type_offset to
5989 type_offset_in_tu.
5990 (create_all_type_units): Improve debugging message.
5991 Improve dummy type unit check.
5992 (init_cu_die_reader): New arg "section". All callers updated.
5993 (init_and_read_dies_worker): New function.
5994 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5995 (init_cutu_and_read_dies_no_follow): New function.
5996 (init_cutu_and_read_dies_simple): New function.
5997 (process_psymtab_comp_unit_reader): New function.
5998 (process_psymtab_comp_unit): Delete args section,
5999 is_debug_types_section. Rewrite. All callers updated.
6000 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6001 All callers updated. Rewrite.
6002 (load_partial_comp_unit_reader): New function.
6003 (load_partial_comp_unit): Rewrite.
6004 (skip_children): New arg reader. Delete args buffer, cu.
6005 All callers updated.
6006 (skip_one_die): New arg reader. Delete args buffer, cu.
6007 All callers updated.
6008 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6009 All callers updated.
6010 (load_full_comp_unit_reader): New function.
6011 (load_full_comp_unit): Rewrite.
6012 (read_comp_unit): Delete.
6013 (read_die_and_children_1): Delete, contents moved ...
6014 (read_die_and_children): ... here.
6015 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6016 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6017 All callers updated.
6018 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6019 All callers updated.
6020 (find_partial_die): Rewrite load_all_dies support.
6021 (read_attribute_value): New arg reader. Delete args abfd, cu.
6022 All callers updated.
6023 (read_attribute): New arg reader. Delete args abfd, cu.
6024 All callers updated.
6025 (load_full_type_unit): Add assert.
6026 (read_signatured_type_reader): New function.
6027 (read_signatured_type): Rewrite.
6028 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6029 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6030 All callers updated. Set per_cu->cu = NULL after freeing it.
6031 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6032 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6033 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6034 (set_die_type): Update.
6035 (get_die_type_at_offset): Update.
6036 (read_file_scope): Call prepare_one_comp_unit.
6037 (read_type_unit_scope): Ditto.
6038 (prepare_one_comp_unit): Set producer if present.
6039
6040 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6041
6042 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6043 gettext function on `error'.
6044
6045 2012-04-27 Doug Evans <dje@google.com>
6046
6047 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6048 is empty.
6049
6050 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6051 Tom Tromey <tromey@redhat.com>
6052
6053 * breakpoint.c (struct breakpoint_objfile_data)
6054 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6055 <exception_probes>: New fields.
6056 (free_breakpoint_probes): New function.
6057 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6058 `_Unwind_DebugHook'.
6059 (create_exception_master_breakpoint): Likewise.
6060 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6061 * infrun.c: Including necessary header files for handling SystemTap
6062 probes.
6063 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6064 via SystemTap probes.
6065 (check_exception_resume): Remove `func' argument. Handle exception
6066 unwinding breakpoint set via a SystemTap probe.
6067 (insert_exception_resume_from_probe): New function.
6068
6069 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6070 Tom Tromey <tromey@redhat.com>
6071 Jan Kratochvil <jan.kratochvil@redhat.com>
6072
6073 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6074 (COMMON_OBS): Likewise.
6075 (HFILES_NO_SRCDIR): Add `probe'.
6076 * NEWS: Mention support for static and SystemTap probes.
6077 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6078 SystemTap probes' arguments parser.
6079 * arm-linux-tdep.c: Including headers needed to perform the parsing
6080 of SystemTap probes' arguments.
6081 (arm_stap_is_single_operand): New function.
6082 (arm_stap_parse_special_token): Likewise.
6083 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6084 probes' arguments parser.
6085 * ax-gdb.c (require_rvalue): Removing static declaration.
6086 (gen_expr): Likewise.
6087 * ax-gdb.h (gen_expr): Declaring function.
6088 (require_rvalue): Likewise.
6089 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6090 (bkpt_probe_breakpoint_ops): New variable.
6091 (momentary_breakpoint_from_master): Set the `probe' value.
6092 (add_location_to_breakpoint): Likewise.
6093 (break_command_1): Using proper breakpoint_ops according to the
6094 argument passed by the user in the command line.
6095 (bkpt_probe_insert_location): New function.
6096 (bkpt_probe_remove_location): Likewise.
6097 (bkpt_probe_create_sals_from_address): Likewise.
6098 (bkpt_probe_decode_linespec): Likewise.
6099 (tracepoint_probe_create_sals_from_address): Likewise.
6100 (tracepoint_probe_decode_linespec): Likewise.
6101 (tracepoint_probe_breakpoint_ops): New variable.
6102 (trace_command): Using proper breakpoint_ops according to the
6103 argument passed by the user in the command line.
6104 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6105 static probes on breakpoints and tracepoints.
6106 * breakpoint.h (struct bp_location) <probe>: New field.
6107 * cli-utils.c (skip_spaces_const): New function.
6108 (extract_arg): Likewise.
6109 * cli-utils.h (skip_spaces_const): Likewise.
6110 (extract_arg): Likewise.
6111 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6112 * configure.ac: Append `stap-probe.o' to be generated when ELF
6113 support is present.
6114 * configure: Regenerate.
6115 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6116 * elfread.c: Include `probe.h' and `arch-utils.h'.
6117 (probe_key): New variable.
6118 (elf_get_probes): New function.
6119 (elf_get_probe_argument_count): Likewise.
6120 (elf_evaluate_probe_argument): Likewise.
6121 (elf_compile_to_ax): Likewise.
6122 (elf_symfile_relocate_probe): Likewise.
6123 (stap_probe_key_free): Likewise.
6124 (elf_probe_fns): New variable.
6125 (elf_sym_fns): Add `sym_probe_fns' value.
6126 (elf_sym_fns_lazy_psyms): Likewise.
6127 (elf_sym_fns_gdb_index): Likewise.
6128 (_initialize_elfread): Initialize objfile cache for static
6129 probes.
6130 * gdb_vecs.h (struct probe): New forward declaration.
6131 (probe_p): New VEC declaration.
6132 * gdbarch.c: Regenerate.
6133 * gdbarch.h: Regenerate.
6134 * gdbarch.sh (stap_integer_prefix): New variable.
6135 (stap_integer_suffix): Likewise.
6136 (stap_register_prefix): Likewise.
6137 (stap_register_suffix): Likewise.
6138 (stap_register_indirection_prefix): Likewise.
6139 (stap_register_indirection_suffix): Likewise.
6140 (stap_gdb_register_prefix): Likewise.
6141 (stap_gdb_register_suffix): Likewise.
6142 (stap_is_single_operand): New function.
6143 (stap_parse_special_token): Likewise.
6144 (struct stap_parse_info): Forward declaration.
6145 * i386-tdep.c: Including headers needed to perform the parsing
6146 of SystemTap probes' arguments.
6147 (i386_stap_is_single_operand): New function.
6148 (i386_stap_parse_special_token): Likewise.
6149 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6150 probes' arguments parser.
6151 * i386-tdep.h (i386_stap_is_single_operand): New function.
6152 (i386_stap_parse_special_token): Likewise.
6153 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6154 * mipsread.c (ecoff_sym_fns): Likewise.
6155 * objfiles.c (objfile_relocate1): Support relocation for static
6156 probes.
6157 * parse.c (prefixify_expression): Remove static declaration.
6158 (initialize_expout): Likewise.
6159 (reallocate_expout): Likewise.
6160 * parser-defs.h (initialize_expout): Declare function.
6161 (reallocate_expout): Likewise.
6162 (prefixify_expression): Likewise.
6163 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6164 of SystemTap probes' arguments.
6165 (ppc_stap_is_single_operand): New function.
6166 (ppc_stap_parse_special_token): Likewise.
6167 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6168 probes' arguments parser.
6169 * probe.c: New file, for generic statically defined probe support.
6170 * probe.h: Likewise.
6171 * s390-tdep.c: Including headers needed to perform the parsing of
6172 SystemTap probes' arguments.
6173 (s390_stap_is_single_operand): New function.
6174 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6175 probes' arguments parser.
6176 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6177 * stap-probe.c: New file, for SystemTap probe support.
6178 * stap-probe.h: Likewise.
6179 * symfile.h: Include `gdb_vecs.h'.
6180 (struct sym_probe_fns): New struct.
6181 (struct sym_fns) <sym_probe_fns>: New field.
6182 * symtab.c (init_sal): Initialize `probe' field.
6183 * symtab.h (struct probe): Forward declaration.
6184 (struct symtab_and_line) <probe>: New field.
6185 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6186 locations.
6187 (stop_tracing): Likewise.
6188 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6189
6190 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6191 Tom Tromey <tromey@redhat.com>
6192
6193 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6194 and to compile agent expressions.
6195 * infrun.c (siginfo_make_value): New argument `ignore'.
6196 (siginfo_funcs): New struct.
6197 (_initialize_infrun): New argument when calling
6198 `create_internalvar_type_lazy'.
6199 * thread.c (thread_id_make_value): New argument `ignore'.
6200 (thread_funcs): New struct.
6201 (_initialize_thread): New argument when calling
6202 `create_internalvar_type_lazy'.
6203 * tracepoint.c (sdata_make_value): New argument `ignore'.
6204 (sdata_funcs): New struct.
6205 (_initialize_tracepoint): New argument when calling
6206 `create_internalvar_type_lazy'.
6207 * value.c (make_value): New struct.
6208 (create_internalvar_type_lazy): New argument `data'.
6209 (compile_internalvar_to_ax): New function.
6210 (value_of_internalvar): Properly handling `make_value' case.
6211 (clear_internalvar): Likewise.
6212 (show_convenience): Adding `TRY_CATCH' block.
6213 * value.h (internalvar_make_value): Delete, replace by...
6214 (struct internalvar_funcs): ... this.
6215 (create_internalvar_type_lazy) <fun>: Delete argument.
6216 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6217 (compile_internalvar_to_ax): New function.
6218 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6219 (tlb_funcs): New struct.
6220 (_initialize_windows_tdep): New argument when calling
6221 `create_internalvar_type_lazy'.
6222
6223 2012-04-27 Mark Wielaard <mjw@redhat.com>
6224
6225 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6226 see whether it is an address or a constant offset from DW_AT_low_pc.
6227 (dwarf2_record_block_ranges): Likewise.
6228 (read_partial_die): Likewise.
6229
6230 2012-04-26 Mark Wielaard <mjw@redhat.com>
6231
6232 * MAINTAINERS (Write After Approval): Add myself to the list.
6233
6234 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6235
6236 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6237 (proc_prettyprint_signal): Likewise.
6238 (proc_prettyprint_faultset): Likewise.
6239 (proc_prettyprint_fault): Likewise.
6240 (proc_prettyprint_actionset): Likewise.
6241 (proc_prettyprint_flags): Move to new proc-flags.c section.
6242 (proc_prettyfprint_flags): New prototype.
6243 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6244 (proc_syscall, proc_cursig): Likewise.
6245 (proc_set_kill_on_last_close): Likewise.
6246 (proc_unset_kill_on_last_close): Likewise.
6247 (proc_set_watchpoint): Make static.
6248 (proc_delete_dead_threads): Likewise.
6249 (procfs_set_watchpoint): Likewise.
6250 (_initialize_procfs): Add prototype.
6251 * proc-events.c: Include proc-utils.h.
6252 (init_syscall_table): Make static.
6253 * proc-api.c (_initialize_proc_api): Add prototype.
6254 * proc-flags.c: Include proc-utils.h.
6255
6256 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6257
6258 * configure.ac: Add AC_ARG_PROGRAM.
6259 * configure: Regenerate.
6260
6261 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6262
6263 Fix DW_AT_lower_bound defaults for DWARF-4+.
6264 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6265 high. New variable low_default_is_valid. Implement DWARF-4+
6266 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6267 no default by the DWARF standard.
6268
6269 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6270 Maciej W. Rozycki <macro@codesourcery.com>
6271
6272 * infrun.c (handle_inferior_event): Move the check for return
6273 trampolines ahead of the check for function trampolines.
6274 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6275 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6276 (mips_str_mips16_ret_stub): Likewise.
6277 (mips_str_call_fp_stub): Likewise.
6278 (mips_str_call_stub): Likewise.
6279 (mips_str_fn_stub): Likewise.
6280 (mips_str_pic): Likewise.
6281 (mips_in_frame_stub): New function.
6282 (mips_unwind_pc): Return the return address rather than the PC
6283 if the PC of an intermediate frame is inside a call thunk.
6284 (mips_is_stub_suffix): New function.
6285 (mips_is_stub_mode): Likewise.
6286 (mips_get_mips16_fn_stub_pc): Likewise.
6287 (mips_skip_mips16_trampoline_code): Update to handle all the
6288 currently generated stub types. Don't recurse into __fn_stub
6289 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6290 Use cooked register accesses.
6291 (mips_in_return_stub): Reintroduce function.
6292 (mips_skip_trampoline_code): Traverse trampolines recursively.
6293 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6294
6295 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6296
6297 GDB 7.4.1 released.
6298
6299 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6300
6301 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6302 * features/arm-with-m-vfp-d16.xml: New file. Describes
6303 Cortex-M with VFPv4-sp-d16 FPU register layout.
6304 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6305 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6306 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6307 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6308 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6309
6310 2012-04-25 Doug Evans <dje@google.com>
6311
6312 * cli/cli-decode.c (print_doc_line): Use stream instead of
6313 current_uiout.
6314
6315 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6316
6317 * features/arm-with-iwmmxt.c: Regenerate.
6318 * features/arm-with-m-fpa-layout.c: Likewise.
6319 * features/arm-with-m.c: Likewise.
6320 * features/arm-with-neon.c: Likewise.
6321 * features/arm-with-vfpv2.c: Likewise.
6322 * features/arm-with-vfpv3.c: Likewise.
6323 * features/mips-dsp-linux.c: Likewise.
6324 * features/mips-linux.c: Likewise.
6325 * features/mips64-dsp-linux.c: Likewise.
6326 * features/mips64-linux.c: Likewise.
6327 * features/s390-linux32.c: Likewise.
6328 * features/s390-linux32v1.c: Likewise.
6329 * features/s390-linux32v2.c: Likewise.
6330 * features/s390-linux64.c: Likewise.
6331 * features/s390-linux64v1.c: Likewise.
6332 * features/s390-linux64v2.c: Likewise.
6333 * features/s390x-linux64.c: Likewise.
6334 * features/s390x-linux64v1.c: Likewise.
6335 * features/s390x-linux64v2.c: Likewise.
6336 * features/tic6x-c62x-linux.c: Likewise.
6337 * features/tic6x-c62x.c: Likewise.
6338 * features/tic6x-c64x-linux.c: Likewise.
6339 * features/tic6x-c64x.c: Likewise.
6340 * features/tic6x-c64xp-linux.c: Likewise.
6341 * features/tic6x-c64xp.c: Likewise.
6342 * target-descriptions.c: Only generate `field_type' and `type'
6343 variables when needed.
6344
6345 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6346
6347 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6348
6349 2012-04-25 Doug Evans <dje@google.com>
6350
6351 Initial pass at Go language support.
6352 * NEWS: Mention Go.
6353 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6354 go-valprint.c.
6355 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6356 (YYFILES): Add go-exp.c.
6357 (YYOBJ): Add go-exp.o.
6358 (local-maintainer-clean): Delete go-exp.c.
6359 * defs.h (enum language): Add language_go.
6360 * dwarf2read.c: #include "go-lang.h".
6361 (fixup_go_packaging): New function.
6362 (process_full_comp_unit): Call it when processing Go CUs.
6363 (dwarf2_physname): Add Go support.
6364 (read_file_scope): Handle missing language spec for GNU Go.
6365 (set_cu_language): Handle DW_LANG_Go.
6366 * go-exp.y: New file.
6367 * go-lang.h: New file.
6368 * go-lang.c: New file.
6369 * go-typeprint.c: New file.
6370 * go-valprint.c: New file.
6371 * symtab.c: #include "go-lang.h".
6372 (symbol_set_language): Handle language_go.
6373 (symbol_find_demangled_name, symbol_set_names): Ditto.
6374 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6375
6376 2012-04-24 Jim Meyering <meyering@redhat.com>
6377
6378 avoid a few strncpy-induced buffer overruns
6379 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6380 fname and psargs before trying to concatenate.
6381 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6382 "name" before applying strchr.
6383
6384 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6385
6386 * CONTRIBUTE: Use unified diff instead of context diff when
6387 generating patches.
6388
6389 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6390
6391 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6392 code. Handle JR.HB correctly.
6393
6394 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6395
6396 * mips-tdep.c
6397 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6398 with the other MIPS16 helpers.
6399
6400 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6401
6402 * observer.sh: Conditionally declare `args', thus cleaning up
6403 unused instances of this variable.
6404
6405 2012-04-24 Yao Qi <yao@codesourcery.com>
6406
6407 Revert this patch to allow breakpoint always-inserted
6408 in record target.
6409 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6410 * breakpoint.c: Include record.h.
6411 (breakpoints_always_inserted_mode): Return false when the record
6412 target is in use.
6413
6414 * breakpoint.c (iterate_over_bp_locations): New.
6415 * breakpoint.h: Declare.
6416 New typedef walk_bp_location_callback.
6417 * record.c (record_open): Call record_init_record_breakpoints.
6418 (record_sync_record_breakpoints): New.
6419 (record_init_record_breakpoints): New.
6420 * NEWS: Mention supporting breakpoint always-inserted mode in
6421 record target.
6422
6423 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6424
6425 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6426 any thread.
6427
6428 2012-04-24 Yao Qi <yao@codesourcery.com>
6429
6430 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6431 (is_catchpoint): ... it.
6432 (print_one_breakpoint_location): Caller update.
6433 * breakpoint.h: Update declaration.
6434
6435 2012-04-23 David S. Miller <davem@davemloft.net>
6436
6437 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6438
6439 2012-04-23 Tom Tromey <tromey@redhat.com>
6440
6441 * buildsym.c (add_free_pendings): Remove.
6442 * buildsym.h (add_free_pendings): Remove.
6443
6444 2012-04-23 Doug Evans <dje@google.com>
6445
6446 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6447 attr.u.unsnd instead of attr.u.addr.
6448 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6449 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6450 DW_FORM_ref_udata.
6451 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6452 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6453 DW_FORM_ref_udata.
6454 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6455
6456 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6457
6458 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6459 (mips_o32_return_value): Likewise.
6460 (mips_o64_return_value): Likewise.
6461
6462 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6463
6464 * ada-lang.c (ada_evaluate_subexp): Add cases for
6465 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6466 their treatment in eval.c.
6467
6468 2012-04-21 David S. Miller <davem@davemloft.net>
6469
6470 * sparc-tdep.c (X_DISP10): Define.
6471 (sparc_analyze_control_transfer): Handle compare-and-branch.
6472
6473 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6474
6475 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6476 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6477
6478 2012-04-20 Nigel Stephens <nigel@mips.com>
6479 Maciej W. Rozycki <macro@codesourcery.com>
6480
6481 * mips-tdep.c (mips_float_register_p): New function.
6482 (mips_convert_register_float_case_p): Use mips_float_register_p.
6483 (mips_register_type): Likewise.
6484 (mips_print_register): Likewise.
6485 (print_gp_register_row): Likewise.
6486 (mips_print_registers_info): Likewise.
6487
6488 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6489
6490 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6491 of mips16 symbols.
6492
6493 2012-04-20 Andrew Pinski <apinski@cavium.com>
6494
6495 * MAINTAINERS (Write After Approval): Add myself to the list.
6496
6497 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6498
6499 * MAINTAINERS: Update my e-mail address.
6500
6501 2012-04-20 Pedro Alves <palves@redhat.com>
6502
6503 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6504 $srcdir.
6505 * configure: Regenerate.
6506
6507 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6508
6509 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6510 declaration.
6511 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6512
6513 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6514
6515 Fix compilation compatibility with python-2.4
6516 * python/py-type.c (convert_field): Cast ADDRSTRING for
6517 PyObject_SetAttrString as non-const. New comment.
6518
6519 2012-04-19 Tom Tromey <tromey@redhat.com>
6520
6521 * top.c (quit_target): Use all_cleanups.
6522 * main.c (captured_command_loop): Use all_cleanups.
6523 * exceptions.c (throw_exception): Use all_cleanups.
6524
6525 2012-04-19 Pedro Alves <palves@redhat.com>
6526
6527 * Makefile.in (GNULIB_BUILDDIR): New.
6528 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6529 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6530 (CLEANDIRS). Remove gnulib/import.
6531 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6532 (all-lib): Ditto.
6533 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6534 (gnulib/import/Makefile): Replace gnulib/import with
6535 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6536 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6537 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6538 acx_configure_dir.m4.
6539 * acinclude.m4: Include acx_configure_dir.m4.
6540 * acx_configure_dir.m4: New file.
6541 * aclocal.m4: Regenerate.
6542 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6543 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6544 (GNULIB): New variable.
6545 (GNULIB_STDINT_H): Adjust.
6546 (AC_OUTPUT): Don't output gnulib/Makefile.
6547 * gdb/defs.h: Include build-gnulib/config.h.
6548 * aclocal.m4: Regenerate.
6549 * config.in: Regenerate.
6550 * configure: Regenerate.
6551
6552 * gnulib/Makefile.in: New file.
6553 * gnulib/configure.ac: New file.
6554 * gnulib/aclocal.m4: New file.
6555 * gnulib/config.in: New file.
6556 * gnulib/configure: New file.
6557 * gnulib/: Re-run gnulib-tool to adjust.
6558
6559 2012-04-19 Doug Evans <dje@google.com>
6560
6561 * cleanups.h (struct cleanup): Move to cleanups.c.
6562 (make_cleanup_dtor_ftype): New typedef.
6563 (make_cleanup_dtor): Use it.
6564 (ALL_CLEANUPS): Replace with ...
6565 (all_cleanups): ... this. Declare. All uses updated.
6566 * cleanups.c: #include "gdb_assert.h".
6567 (sentinel_cleanup): New static global.
6568 (SENTINEL_CLEANUP): Define.
6569 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6570 (make_my_cleanup2): Assert result is non-NULL.
6571 (all_cleanups): New function.
6572 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6573 of NULL.
6574
6575 2012-04-19 Pedro Alves <palves@redhat.com>
6576
6577 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6578 Adjust paths to gnulib imported files.
6579
6580 2012-04-19 Pedro Alves <palves@redhat.com>
6581
6582 * gnulib/: Move whole directory ...
6583 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6584 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6585 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6586 (aclocal_m4_deps): Adjust.
6587 * aclocal.m4: Regenerate.
6588 * configure: Regenerate.
6589 * configure.ac: Adjust AC_OUTPUT output.
6590
6591 2012-04-19 Yao Qi <yao@codesourcery.com>
6592
6593 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6594 (vec.o): New rule.
6595 * vec.c: Move it ...
6596 * common/vec.c: ... here.
6597 * vec.h: Move it ...
6598 * common/vec.h: ... here.
6599
6600 2012-04-19 Yao Qi <yao@codesourcery.com>
6601
6602 * gdb-code-style.el: New.
6603
6604 2012-04-18 Pedro Alves <palves@redhat.com>
6605
6606 Update gnulib from latest git.
6607 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6608
6609 * gnulib/Makefile.am: Update.
6610 * gnulib/dummy.c: Update.
6611 * gnulib/extra/arg-nonnull.h: Update.
6612 * gnulib/extra/c++defs.h: Update.
6613 * gnulib/extra/update-copyright: Update.
6614 * gnulib/extra/warn-on-use.h: Update.
6615 * gnulib/inttypes.in.h: Update.
6616 * gnulib/m4/00gnulib.m4: Update.
6617 * gnulib/m4/extensions.m4: Update.
6618 * gnulib/m4/gnulib-cache.m4: Update.
6619 * gnulib/m4/gnulib-common.m4: Update.
6620 * gnulib/m4/gnulib-comp.m4: Update.
6621 * gnulib/m4/gnulib-tool.m4: Update.
6622 * gnulib/m4/include_next.m4: Update.
6623 * gnulib/m4/inttypes-pri.m4: Update.
6624 * gnulib/m4/inttypes.m4: Update.
6625 * gnulib/m4/longlong.m4: Update.
6626 * gnulib/m4/memchr.m4: Update.
6627 * gnulib/m4/memmem.m4: Update.
6628 * gnulib/m4/mmap-anon.m4: Update.
6629 * gnulib/m4/multiarch.m4: Update.
6630 * gnulib/m4/onceonly.m4: Update.
6631 * gnulib/m4/stddef_h.m4: Update.
6632 * gnulib/m4/stdint.m4: Update.
6633 * gnulib/m4/string_h.m4: Update.
6634 * gnulib/m4/warn-on-use.m4: Update.
6635 * gnulib/m4/wchar_h.m4: Update.
6636 * gnulib/m4/wchar_t.m4: Update.
6637 * gnulib/m4/wint_t.m4: Update.
6638 * gnulib/memchr.c: Update.
6639 * gnulib/memmem.c: Update.
6640 * gnulib/stddef.in.h: Update.
6641 * gnulib/stdint.in.h: Update.
6642 * gnulib/str-two-way.h: Update.
6643 * gnulib/string.in.h: Update.
6644 * gnulib/wchar.in.h: Update.
6645
6646 * gnulib/extra/arg-nonnull.h: Delete.
6647 * gnulib/extra/c++defs.h: Delete.
6648 * gnulib/extra/warn-on-use.h: Delete.
6649 * gnulib/m4/wchar_h.m4: Delete.
6650 * gnulib/m4/wint_t.m4: Delete.
6651 * gnulib/wchar.in.h: Delete.
6652
6653 * gnulib/extra/snippets/arg-nonnull.h: New.
6654 * gnulib/extra/snippets/c++defs.h: New.
6655 * gnulib/extra/snippets/warn-on-use.h: New.
6656
6657 * aclocal.m4: Regenerate.
6658 * config.in: Regenerate.
6659 * configure: Regenerate.
6660 * gnulib/Makefile.in: Regenerate.
6661
6662 2012-04-18 Pedro Alves <palves@redhat.com>
6663
6664 Reimport the update-copyright module from gnulib
6665 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6666
6667 * configure: Regenerate.
6668 * gnulib/Makefile.am: Update.
6669 * gnulib/Makefile.in: Regenerate.
6670 * gnulib/extra/update-copyright: Update.
6671 * gnulib/m4/gnulib-cache.m4: Update.
6672 * gnulib/m4/gnulib-comp.m4: Update.
6673
6674 2012-04-18 Tristan Gingold <gingold@adacore.com>
6675
6676 * configure.ac (aix): Put -lpthread into libs.
6677 * configure: Regenerate.
6678
6679 2012-04-18 Tom Tromey <tromey@redhat.com>
6680
6681 * linespec.c (convert_linespec_to_sals): Don't use
6682 SYMBOL_OBJ_SECTION.
6683 (compare_msymbols): Arguments are minsym_and_objfile, not
6684 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6685
6686 2012-04-18 Pedro Alves <palves@redhat.com>
6687
6688 Revert gnulib/ part of:
6689 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6690 Copyright year update in most files (performed by copyright.sh).
6691
6692 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6693
6694 Fix 64-bit constants on 32-bit hosts.
6695 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6696 from unsigned long to ULONGEST.
6697 (read_signed_leb128): Change declaration return type from long to
6698 LONGEST.
6699 (dwarf2_const_value_attr): Change declaration parameter value from long
6700 to LONGEST.
6701 (dwarf2_compute_name): Change variable value from long to LONGEST.
6702 (read_unsigned_leb128): Change return type, variable result and some
6703 casts from unsigned long to ULONGEST.
6704 (read_signed_leb128): Change return type, variable result and some
6705 casts from long to LONGEST.
6706 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6707 value from long to LONGEST.
6708 (dwarf2_const_value): Change variable value from long to LONGEST.
6709 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6710 plongest and hex_string.
6711 * symtab.h (struct general_symbol_info): Change ivalue from long to
6712 LONGEST, remove the comment.
6713 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6714 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6715
6716 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6717
6718 PR symtab/7259:
6719 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6720 * ada-lang.c (ada_discrete_type_high_bound)
6721 (ada_discrete_type_low_bound): Fix function comment. Use
6722 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6723 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6724 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6725 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6726 Use TYPE_FIELD_ENUMVAL.
6727 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6728 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6729 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6730 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6731 TYPE_CODE_ENUM.
6732 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6733 * dwarf2read.c (process_enumeration_scope): Likewise.
6734 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6735 field.bitpos.
6736 (class StructMainTypePrettyPrinter): Support also
6737 FIELD_LOC_KIND_ENUMVAL.
6738 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6739 TYPE_CODE_ENUM.
6740 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6741 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6742 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6743 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6744 field enumval.
6745 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6746 accommodate enumval.
6747 (struct call_site): Adjust loc_kind to accommodate enumval.
6748 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6749 (TYPE_FIELD_ENUMVAL): New macros.
6750 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6751 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6752 TYPE_CODE_ENUM.
6753 * p-typeprint.c (pascal_type_print_base): Likewise.
6754 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6755 enumval.
6756 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6757 * python/py-type.c (convert_field): New variable addrstring. Use
6758 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6759 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6760 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6761 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6762 TYPE_CODE_ENUM.
6763 * valprint.c (generic_val_print): Likewise.
6764
6765 2012-04-17 Doug Evans <dje@google.com>
6766
6767 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6768
6769 * dwarf2read.c: Whitespace fixes.
6770 (lookup_signatured_type): Tweak comment.
6771 (get_die_type_at_offset): Fix comment.
6772
6773 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6774
6775 * xcoffread.c (xcoff_secnum_to_sections): New function.
6776 (secnum_to_section, secnum_to_bfd_section): Reimplement
6777 using xcoff_secnum_to_sections. Rename "secnum" parameter
6778 into "n_scnum".
6779 (RECORD_MINIMAL_SYMBOL): Delete.
6780 (record_minimal_symbol): New function.
6781 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6782 by call to record_minimal_symbol and set misc_func_recorded
6783 to 1. Set last_csect_sec to the XCOFF section index instead
6784 of GDB's section_offset index. Update calls to
6785 prim_record_minimal_symbol_and_info to pass the BFD section
6786 as well.
6787
6788 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6789
6790 * xcoffread.c (read_xcoff_symtab): Delete variables
6791 last_csect_val and last_csect_sec and associated code.
6792
6793 2012-04-17 Doug Evans <dje@google.com>
6794
6795 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6796 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6797 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6798 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6799
6800 * cleanups.h: New file.
6801 * cleanups.c: New file.
6802 * Makefile.in (SFILES): Add cleanups.c.
6803 (HFILES_NO_SRCDIR): Add cleanups.h.
6804 (COMMON_OBS): Add cleanups.o.
6805 * defs.h (struct cleanup): Moved to cleanups.h.
6806 (do_cleanups,do_final_cleanups): Ditto.
6807 (discard_cleanups,discard_final_cleanups): Ditto
6808 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6809 (save_cleanups,save_final_cleanups): Ditto.
6810 (restore_cleanups,restore_final_cleanups): Ditto.
6811 (null_cleanup): Ditto.
6812 (make_my_cleanup,make_my_cleanup2): Ditto.
6813 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6814 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6815 (do_cleanups,do_final_cleanups): Ditto.
6816 (discard_cleanups,discard_final_cleanups): Ditto
6817 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6818 (save_cleanups,save_final_cleanups): Ditto.
6819 (restore_cleanups,restore_final_cleanups): Ditto.
6820 (null_cleanup): Ditto.
6821 (make_my_cleanup,make_my_cleanup2): Ditto.
6822 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6823
6824 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6825 make_my_cleanup.
6826 (make_cleanup_dyn_string_delete): Ditto.
6827 (make_cleanup_ui_file_delete): Ditto.
6828 (make_cleanup_ui_out_redirect_pop): Ditto.
6829 (make_cleanup_free_section_addr_info): Ditto.
6830 (make_cleanup_restore_integer): Ditto.
6831 (make_cleanup_unpush_target): Ditto.
6832 (make_cleanup_value_free_to_mark): Ditto.
6833 (make_cleanup_value_free): Ditto.
6834 (make_cleanup_free_so): Ditto.
6835
6836 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6837
6838 New option "set debug auto-load".
6839 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6840 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6841 (auto_load_safe_path_vec_update)
6842 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6843 if DEBUG_AUTO_LOAD.
6844 (file_is_auto_load_safe): New parameters debug_fmt and ....
6845 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6846 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6847 caller by explanatory string.
6848 (_initialize_auto_load): Register "set debug auto-load".
6849 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6850 and ....
6851 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6852 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6853 by explanatory string.
6854 * main.c (captured_main): Likewise.
6855 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6856 (source_section_scripts): Likewise.
6857
6858 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6859
6860 New option "set auto-load safe-path".
6861 * NEWS: New commands "set auto-load safe-path"
6862 and "show auto-load safe-path".
6863 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6864 (auto_load_safe_path, auto_load_safe_path_vec)
6865 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6866 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6867 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6868 (source_gdb_script_for_objfile): New variable is_safe. Call
6869 file_is_auto_load_safe. Return if it is not.
6870 (struct loaded_script): New field loaded.
6871 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6872 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6873 output "Missing" to "No".
6874 (_initialize_auto_load): New variable cmd. Initialize
6875 auto_load_safe_path. Register "set auto-load safe-path",
6876 "show auto-load safe-path" and "add-auto-load-safe-path".
6877 * auto-load.h (maybe_add_script): Add parameter loaded.
6878 (file_is_auto_load_safe): New declaration.
6879 * config.in: Regenerate.
6880 * configure: Regenerate.
6881 * configure.ac: New parameters --with-auto-load-safe-path
6882 and --without-auto-load-safe-path.
6883 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6884 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6885 * main.c (captured_main): Check file_is_auto_load_safe for
6886 LOCAL_GDBINIT.
6887 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6888 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6889 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6890 not.
6891
6892 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6893
6894 auto-load: Implementation.
6895 * NEWS: New descriptions for "info auto-load",
6896 "info auto-load gdb-scripts", "info auto-load python-scripts",
6897 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6898 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6899 and "show auto-load-scripts". New description for "set auto-load",
6900 "show auto-load", "set auto-load gdb-scripts",
6901 "show auto-load gdb-scripts", "set auto-load python-scripts",
6902 "show auto-load python-scripts", "set auto-load local-gdbinit",
6903 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6904 "show auto-load libthread-db".
6905 * auto-load.c: Remove include python/python-internal.h. Add includes
6906 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6907 cli/cli-setshow.h.
6908 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6909 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6910 (gdbpy_global_auto_load): Rename to ...
6911 (global_auto_load): ... here.
6912 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6913 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6914 (script_language_gdb, source_gdb_script_for_objfile): New.
6915 (struct loaded_script): New field language.
6916 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6917 LANGUAGE.
6918 (maybe_add_script): Add parameter language. Drop redundant
6919 entry.full_path initialization. Initialize entry.language and
6920 (*slot)->language.
6921 (auto_load_objfile_script): Change parameter suffix to language.
6922 Remove the call of maybe_add_script.
6923 Call language->source_script_for_objfile.
6924 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6925 New.
6926 (collect_matching_scripts): Adjust it for
6927 struct collect_matching_scripts_data.
6928 (auto_load_info_scripts_pattern_nl): New variable.
6929 (info_auto_load_scripts): Rename to ...
6930 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6931 for struct collect_matching_scripts_data.
6932 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6933 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6934 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6935 (auto_load_info_cmdlist_get): New.
6936 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6937 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6938 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6939 "info auto-load local-gdbinit".
6940 * auto-load.h (struct script_language): New.
6941 (gdbpy_global_auto_load): Rename to ...
6942 (global_auto_load): ... here.
6943 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6944 (auto_load_local_gdbinit_loaded): New declarations.
6945 (maybe_add_script): New parameter language.
6946 (auto_load_objfile_script): Change parameter suffix to language.
6947 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6948 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6949 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6950 declarations.
6951 * linux-thread-db.c: Include auto-load.h and ctype.h.
6952 (auto_load_thread_db, show_auto_load_thread_db): New.
6953 (struct thread_db_info): New field filename.
6954 (delete_thread_db_info): Call xfree for FILENAME.
6955 (try_thread_db_load): Initialize FILENAME.
6956 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6957 if !AUTO_LOAD_THREAD_DB.
6958 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6959 (_initialize_thread_db): Install auto_load_thread_db
6960 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6961 as "info auto-load libthread-db".
6962 * main.c (captured_main): Rename gdbpy_global_auto_load to
6963 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6964 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6965 (print_gdb_help): Extend the help for 'local init file'.
6966 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6967 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6968 (auto_load_scripts): Rename to ...
6969 (auto_load_python_scripts): ... here, update the comment.
6970 (gdbpy_load_auto_script_for_objfile): New declaration.
6971 (show_auto_load_python_scripts, script_language_python)
6972 (gdbpy_load_auto_script_for_objfile): New.
6973 (source_section_scripts): Refactor the code.
6974 (load_auto_scripts_for_objfile): Rename to ...
6975 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6976 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6977 (info_auto_load_python_scripts): New.
6978 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6979 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6980 Register "set auto-load-scripts" as its deprecated alias. Register
6981 "info auto-load python-scripts". Register "info auto-load-scripts" as
6982 its deprecated alias.
6983 (load_auto_scripts_for_objfile): Rename to ...
6984 (gdbpy_load_auto_scripts_for_objfile): ... here.
6985 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6986 (gdbpy_load_auto_scripts_for_objfile): ... here.
6987
6988 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6989
6990 auto-load: Move files.
6991 * Makefile.in (SFILES): Add auto-load.c.
6992 (HFILES_NO_SRCDIR): Add auto-load.h.
6993 (COMMON_OBS): Add auto-load.o.
6994 (distclean): Change .gdbinit for gdb-gdb.gdb.
6995 * auto-load.c: New file, with parts from python/py-auto-load.c.
6996 * auto-load.h: New file, with parts from python/python.h.
6997 * configure: Regenerate.
6998 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6999 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7000 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7001 * main.c: Include auto-load.h.
7002 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7003 command.h, observer.h and progspace.h to auto-load.c. Add include
7004 auto-load.h.
7005 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7006 (struct loaded_script, auto_load_pspace_data)
7007 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7008 (hash_loaded_script_entry, eq_loaded_script_entry)
7009 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7010 (maybe_add_script): Move to auto-load.c.
7011 (source_section_scripts): Change maybe_add_script parameters passing,
7012 use script_not_found_warning_print.
7013 (clear_section_scripts, auto_load_objfile_script)
7014 (auto_load_new_objfile, loaded_script_ptr)
7015 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7016 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7017 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7018 auto_load_new_objfile and info_auto_load_scripts initizations to
7019 auto-load.c.
7020 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7021
7022 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7023
7024 Code cleanup.
7025 * charset.c (find_charset_names): Remove variables ix and elt.
7026 Use free_char_ptr_vec.
7027 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7028 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7029 debugdir_end. New variable debugdir_len.
7030 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7031 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7032 declarations.
7033 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7034 and elt. Use free_char_ptr_vec.
7035 * source.c (add_path): Remove variables argv, arg and argv_index.
7036 New variables dir_vec, back_to, ix and name.
7037 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7038 make_cleanup_freeargv. Remove variable separator. Simplify the code
7039 no longer expecting DIRNAME_SEPARATOR.
7040 (openp): Remove variable p, p1 and len. New variables dir_vec,
7041 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7042 no longer expecting DIRNAME_SEPARATOR.
7043 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7044 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7045 debugdir_end.
7046 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7047 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7048 (dirnames_to_char_ptr_vec): New functions.
7049
7050 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7051
7052 Code cleanup.
7053 * source.c (add_path): Remove always true conditional 'p == 0' and
7054 unindent its code block.
7055
7056 2012-04-17 Pedro Alves <palves@redhat.com>
7057
7058 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7059 (FIELD_BITPOS_LVAL): ... this.
7060 (FIELD_BITPOS): New.
7061 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7062 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7063 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7064 SET_FIELD_BITPOS.
7065 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7066 SET_FIELD_BITPOS.
7067 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7068 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7069 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7070 SET_FIELD_BITPOS.
7071
7072 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7073
7074 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7075 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7076 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7077 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7078 * jv-lang.c (java_link_class_type): Likewise, once.
7079 * stabsread.c (read_enum_type): Likewise.
7080
7081 2012-04-16 Yao Qi <yao@codesourcery.com>
7082
7083 * common/agent.c (agent_run_command): Add one more parameter `len'.
7084 Update callers.
7085 * common/agent.h: Update declaration.
7086 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7087 Update.
7088 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7089
7090 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7091
7092 PR mi/13393
7093 * value.c (value_actual_type): New function.
7094 * value.h (value_actual_type): New declaration.
7095 * varobj.c (update_type_if_necessary): New function.
7096 (varobj_create): Call value_actual_type instead of
7097 value_type.
7098 (install_dynamic_child): distinct changed and type changed MI variable
7099 objects.
7100 (update_dynamic_varobj_children): Updated for install_dynamic_child
7101 change. All callers updated.
7102 (varobj_update): Support for MI variable object type change if
7103 the value changed and RTTI is used to determine the type.
7104 (create_child_with_value): Call value_actual_type instead of
7105 value_type.
7106 (adjust_value_for_child_access): Extended with a new parameter which
7107 specify whether the given value should be casted to enclosing type.
7108 All callers updated.
7109
7110 2012-04-14 Yao Qi <yao@codesourcery.com>
7111
7112 Import gnulib module inttypes from git
7113 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7114 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7115 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7116 gnulib/m4/inttypes-pri.m4
7117 * aclocal.m4, config.in, configure: Regenerated.
7118 * gnulib/Makefile.am: Update.
7119 * gnulib/Makefile.in: Update.
7120 * gnulib/m4/gnulib-cache.m4: Update.
7121 * gnulib/m4/gnulib-comp.m4: Update.
7122 * gnulib/inttypes.in.h: New.
7123 * gnulib/m4/inttypes-pri.m4: New.
7124 * gnulib/m4/inttypes.m4: New.
7125
7126 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7127
7128 * infrun.c (resume): Update PC address to the real PC after
7129 preparing to do displaced stepping.
7130
7131 2012-04-12 Doug Evans <dje@google.com>
7132
7133 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7134 All callers updated.
7135
7136 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7137
7138 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7139
7140 2012-04-12 Doug Evans <dje@google.com>
7141
7142 * dwarf2read.c (create_all_type_units): Renamed from
7143 create_debug_types_hash_table. All callers updated.
7144
7145 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7146 local type_sig to sig_type, type_offset to type_offset_in_tu.
7147 (hash_signatured_type): Renamed from hash_type_signature,
7148 all callers updated.
7149 (eq_signatured_type): Renamed from eq_type_signature,
7150 all callers updated.
7151 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7152 (process_enumeration_scope): Ditto.
7153 (lookup_signatured_type_at_offset): Ditto.
7154 (load_full_type_unit, read_signatured_type): Ditto.
7155
7156 2012-04-12 Yao Qi <yao@codesourcery.com>
7157
7158 * remote.c (async_remote_interrupt): Correct function name in
7159 debug message.
7160 (async_remote_interrupt_twice): Ditto.
7161
7162 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7163
7164 * source.c (find_and_open_source): Consistently pass resulting
7165 full path through xfullpath.
7166
7167 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7168
7169 Provide more specific displaced-stepping memory error message.
7170 * infrun.c (displaced_step_prepare): New variable status. Call
7171 target_read_memory instead of read_memory, provide more specific
7172 error message.
7173
7174 2012-04-11 Tristan Gingold <gingold@adacore.com>
7175
7176 PR gdb/13901
7177 * darwin-nat.c (darwin_execvp): Revert previous patch.
7178
7179 2012-04-11 Tristan Gingold <gingold@adacore.com>
7180
7181 PR gdb/13901
7182 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7183 in case of change.
7184
7185 2012-04-11 Tristan Gingold <gingold@adacore.com>
7186
7187 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7188 warning.
7189
7190 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7191
7192 New command 'explore' which helps explore values and types in
7193 scope.
7194 * NEWS: Add an entry about the new 'explore' command.
7195 * data-directory/Makefile.in: Add gdb/command/explore.py
7196 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7197 command using the GDB Python API.
7198
7199 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7200
7201 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7202 extension in jump target calculation.
7203
7204 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7205
7206 * mips-tdep.c (mips32_next_pc): Handle JALX.
7207
7208 2012-04-10 Yao Qi <yao@codesourcery.com>
7209
7210 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7211
7212 2012-04-10 Yao Qi <yao@codesourcery.com>
7213
7214 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7215 and gnulib/m4/gnulib-tool.m4.
7216
7217 2012-04-10 Doug Evans <dje@google.com>
7218
7219 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7220 (load_partial_dies): Clarify comment.
7221 (find_partial_die): Support rereading type units.
7222 Clarify CU handling, if we know offset is in CU, don't search for the
7223 containing CU. Add comment regarding memory waste.
7224
7225 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7226
7227 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7228 i386/x32-avx and i386/x32-avx-linux.
7229 (i386/x32-expedite): New.
7230 (i386/x32-linux-expedite): Likewise.
7231 (i386/x32-avx-expedite): Likewise.
7232 (i386/x32-avx-linux-expedite): Likewise.
7233 ($(outdir)/i386/x32.dat): Likewise.
7234 ($(outdir)/i386/x32-linux.dat): Likewise.
7235 ($(outdir)/i386/x32-avx.dat): Likewise.
7236 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7237
7238 * features/i386/x32-avx-linux.xml: New file.
7239 * features/i386/x32-avx.xml: Likewise.
7240 * features/i386/x32-core.xml: Likewise.
7241 * features/i386/x32-linux.xml: Likewise.
7242 * features/i386/x32.xml: Likewise.
7243
7244 * features/i386/x32-avx-linux.c: New. Generated.
7245 * features/i386/x32-avx.c: Likewise.
7246 * features/i386/x32-linux.c: Likewise.
7247 * features/i386/x32.c: Likewise.
7248 * regformats/i386/x32-avx-linux.dat: Likewise.
7249 * regformats/i386/x32-avx.dat: Likewise.
7250 * regformats/i386/x32-linux.dat: Likewise.
7251 * regformats/i386/x32.dat: Likewise.
7252
7253 2012-04-10 Tristan Gingold <gingold@adacore.com>
7254
7255 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7256 code to kill the inferior.
7257
7258 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7259
7260 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7261 defines.
7262 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7263 defines.
7264 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7265 (yyvsp): New defines.
7266 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7267 defines.
7268 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7269 defines.
7270 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7271 defines.
7272 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7273 defines.
7274 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7275 defines.
7276
7277 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7278
7279 * sparc64-tdep.c (sparc64_store_arguments)
7280 (sparc64_store_arguments): Fix coding style.
7281
7282 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7283
7284 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7285 complex floats, adjust some related comments and tighten a related
7286 assertion.
7287 (sparc64_extract_return_value): Handle complex floats.
7288
7289 2012-04-07 Doug Evans <dje@google.com>
7290
7291 * dwarf2read.c (load_partial_dies): Change condition to assert.
7292
7293 2012-04-06 Doug Evans <dje@google.com>
7294
7295 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7296 "mov %rsp,%rbp".
7297
7298 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7299
7300 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7301 fencepost error.
7302 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7303 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7304 architecture.
7305
7306 2012-04-05 Keith Seitz <keiths@redhat.com>
7307
7308 * linespec.c (decode_compound): Remove.
7309 (enum offset_relative_sign): New enum.
7310 (struct line_offset): New struct.
7311 (struct linespec): New struct.
7312 (struct linespec_state): Move file_symtabs,
7313 user_filename, and user_function into struct linespec.
7314 Make result an anonymous struct holding vectors of
7315 symbolp and minsym_and_objfile_d.
7316 Add language member.
7317 (enum ls_token_type): New enum.
7318 (linespec_keywords): New array.
7319 (struct ls_token): New struct.
7320 (struct ls_parser): New struct.
7321 (linespec_lexer_lex_number): New function.
7322 (linespec_lexer_lex_keyword): New function.
7323 (is_ada_operator): New function.
7324 (skip_quote_char): New function.
7325 (copy_token_string): New function.
7326 (is_closing_quote_enclosed): New function.
7327 (find_parameter_list_end): New function.
7328 (linespec_lexer_lex_string): New function.
7329 (linespec_lexer_lex_one): New function.
7330 (linespec_lexer_consume_token): New function.
7331 (linespec_lexer_peek_token): New function.
7332 (cplusplus_error): Remove unused function.
7333 (find_methods): Update comment.
7334 (find_toplevel_char): Return const.
7335 (is_objc_method_format): Remove unused function.
7336 (find_toplevel_string): New function.
7337 (is_linespec_boundary): Remove.
7338 (symbol_not_found_error): New function.
7339 (find_method_overload_end): Remove function.
7340 (unexpected_linespec_error): New function.
7341 (keep_name_info): Remove.
7342 (linespec_parse_line_offset): New function.
7343 (linespec_parse_basic): New function.
7344 (canonicalize_linespec): New function.
7345 (decode_line_internal): Remove.
7346 (create_sals_line_offset): New function adapted from
7347 decode_all_digits.
7348 (convert_linespec_to_sals): New function.
7349 (parse_linespec): New function.
7350 (linespec_parser_new): New function.
7351 (linespec_state_destructor): Change parameter type to
7352 struct linespec_state *.
7353 Add language parameter.
7354 Remove freeing of moved members.
7355 (linespec_parser_delete): New function.
7356 (decode_line_full): Use parse_linespec and linespec_parser_new.
7357 (decode_line_1): Likewise.
7358 (decode_indirect): Rename to ...
7359 (linespec_expression_to_pc): ... this and rewrite
7360 to simply find CORE_ADDR, storing this result for later
7361 conversion to SALs.
7362 (locate_first_half): Remove.
7363 (deocde_objc): Add parameter LS.
7364 Initialize new struct collect_info members.
7365 Handle minimal symbols, too.
7366 (decode_compound): Delete.
7367 (lookup_prefix_sym): Rewrite.
7368 (compare_msymbols): New function.
7369 (find_method): Rewrite.
7370 Do not call cplusplus_error.
7371 (symtabs_from_filename): Rewrite.
7372 (collect_function_symbols): Delete.
7373 (find_function_symbols): Rewrite without ARGPTR-style
7374 processing.
7375 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7376 (decode_dollar): Adapted and renamed to ...
7377 (linespec_parse_variable): ... this.
7378 (find_linespec_symbols): New function.
7379 (decode_label): Adapted and renamed to ...
7380 (find_label_symbols): ... this.
7381 (decode_digits_list_mode): Add and use LS argument.
7382 (decode_digits_ordinary): Likewise.
7383 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7384 If in list mode, allow any symbol class. Otherwise, only
7385 permit LOC_BLOCK symbols.
7386 (minsym_found): Update comments.
7387 (search_minsyms_for_name): Do not convert the matching symbol
7388 into a SAL. Simply push the symbol and objfile into the
7389 result vector.
7390 (decode_variable): Delete. Contents adapted into
7391 find_linespec_symbols.
7392
7393 * cp-support.c (SKIP_SPACE): Remove.
7394 (operator_tokens): Remove unused global.
7395 (cp_validate_operator): Remove.
7396 * cp-support.h (cp_validate_operator): Remove declaration.
7397
7398 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7399
7400 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7401 for TYPE_VPTR_FIELDNO.
7402 * valprint.c (valprint_check_validity): Make it global, move the
7403 function comment ...
7404 * value.h (valprint_check_validity): ... to this new declaration.
7405
7406 2012-04-02 Tristan Gingold <gingold@adacore.com>
7407
7408 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7409 the STATE32 api for i386 state.
7410 (i386_darwin_store_inferior_registers): Likewise.
7411
7412 2012-04-02 Tristan Gingold <gingold@adacore.com>
7413
7414 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7415 SS offset.
7416 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7417 format_string.
7418
7419 2012-04-02 Tristan Gingold <gingold@adacore.com>
7420
7421 PR gdb/13901
7422 * darwin-nat.c (darwin_execvp): Set binary preference.
7423
7424 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7425
7426 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7427
7428 2012-03-30 Tom Tromey <tromey@redhat.com>
7429
7430 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7431 of TRY_CATCH. Fix error handling.
7432 * python/py-value.c (convert_value_from_python): Move 'old'
7433 declaration to innermost scope.
7434
7435 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7436 Andrey Smirnov <andrew.smirnov@gmail.com>
7437
7438 -Wshadow warning fix.
7439 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7440 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7441 Adjust code accordingly.
7442
7443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7444
7445 * ada-lang.c (symbol_completion_add): Rename parameter
7446 "encoded" into "encoded_p". Ajust code and documentation
7447 accordingly.
7448
7449 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7450 Andrey Smirnov <andrew.smirnov@gmail.com>
7451
7452 -Wshadow warning fix.
7453 * ada-lang.c (symbol_completion_add): Rename parameter
7454 "wild_match" into wild_match_p. Update code and documentation
7455 accordingly.
7456
7457 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7458
7459 * ada-lang.c (symbol_completion_match): Rename parameter
7460 "encoded" into "encoded_p". Ajust code and documentation
7461 accordingly.
7462
7463 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7464 Andrey Smirnov <andrew.smirnov@gmail.com>
7465
7466 -Wshadow warning fix.
7467 * ada-lang.c (symbol_completion_match): Rename parameter
7468 "wild_match" into "wild_match_p". Adjust code and function
7469 documentation accordingly.
7470
7471 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7472 Andrey Smirnov <andrew.smirnov@gmail.com>
7473
7474 -Wshadow warning fix.
7475 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7476 "symbol_info" into "info". Adjust code accordingly.
7477 (ada_lookup_symbol): Likewise.
7478
7479 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7480
7481 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7482 of this function's documentation.
7483
7484 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7485 Andrey Smirnov <andrew.smirnov@gmail.com>
7486
7487 -Wshadow warning fix.
7488 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7489 variable into "wild_match_p". Adjust code accordingly.
7490
7491 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7492 Andrey Smirnov <andrew.smirnov@gmail.com>
7493
7494 -Wshadow warning fix.
7495 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7496 parameter into "wild_match_p". Adjust code accordingly.
7497 Document this parameter in the function description.
7498
7499 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7500 Andrey Smirnov <andrew.smirnov@gmail.com>
7501
7502 -Wshadow warning fix.
7503 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7504 "wild_match" parameter to "wild_match_p" (-Wshadow).
7505
7506 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7507
7508 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7509 in function documentation.
7510
7511 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7512 Andrey Smirnov <andrew.smirnov@gmail.com>
7513
7514 -Wshadow warning fix.
7515 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7516 variable into wild_match_p. Adjust code accordingly.
7517
7518 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7519 Andrey Smirnov <andrew.smirnov@gmail.com>
7520
7521 * ada-valprint.c (ada_val_print_1): Move the code handling
7522 TYPE_CODE_ENUM inside its own lexical block. Declare
7523 variables len and val there, instead of in the function's
7524 top level block. Avoid declaring deref_val again in a way
7525 that shadows another variable of the same name declared
7526 in one of the up-level blocks. Just re-use the up-level
7527 variable instead.
7528
7529 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7530
7531 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7532 Replace block_found argument by symbol_info. Adjust
7533 implementation accordingly. Add function documentation.
7534 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7535 Fix documentation.
7536 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7537 * ada-exp.y (write_object_renaming): Adjust to new
7538 ada_lookup_encoded_symbol API.
7539
7540 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7541
7542 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7543 documentation.
7544
7545 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7546
7547 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7548 (v850_register_name): Add the mpu and fpu register names.
7549 (v850e_register_name): Add the mpu and fpu register names.
7550 (v850e2_register_name): New function.
7551 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7552 bfd_mach_v850e2v3.
7553
7554 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7555
7556 * NEWS: Add entry for Ada varobj support.
7557
7558 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7559
7560 * varobj.c (default_value_is_changeable_p): New function,
7561 extracted from varobj_value_is_changeable_p. Add declaration.
7562 (ada_value_is_changeable_p): New function, extracted from
7563 varobj_value_is_changeable_p. Add declaration.
7564 (struct language_specific): New field "value_is_changeable_p".
7565 (languages): Add entries for new field.
7566 (varobj_create): Set language before calling install_new_value.
7567 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7568 "value_is_changeable_p" language callback.
7569
7570 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7571
7572 * ada-varobj.h, ada-varobj.c: New files.
7573 * Makefile.in (SFILES): Add ada-varobj.c.
7574 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7575 (COMMON_OBS): Add ada-varobj.o.
7576
7577 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7578
7579 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7580 (struct language_specific): New field "value_has_mutated".
7581 (languages): Set field "value_has_mutated" in each entry of array.
7582 (varobj_value_has_mutated): New function.
7583 (varobj_udpdate): Add handling of type mutation.
7584 (value_of_root): Add handling of type mutation.
7585 (ada_value_has_mutated): New function.
7586
7587 2012-03-28 Pedro Alves <palves@redhat.com>
7588
7589 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7590 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7591
7592 2012-03-28 Tom Tromey <tromey@redhat.com>
7593
7594 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7595 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7596 before returning.
7597
7598 2012-03-28 Tom Tromey <tromey@redhat.com>
7599
7600 * .dir-locals.el: New file.
7601
7602 2012-03-28 Pedro Alves <palves@redhat.com>
7603
7604 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7605
7606 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7607
7608 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7609 handling for r0.
7610
7611 2012-03-27 Pedro Alves <palves@redhat.com>
7612
7613 Eliminate struct ui_stream.
7614
7615 * ui-out.h (struct ui_stream): Delete.
7616 (ui_out_field_stream): Adjust prototype.
7617 (ui_out_stream_new, ui_out_stream_delete)
7618 (make_cleanup_ui_out_stream_delete): Delete declarations.
7619 * ui-out.c (ui_out_field_stream): Change prototype to take a
7620 ui_file instead of a ui_stream. Adjust.
7621 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7622 (make_cleanup_ui_out_stream_delete): Delete.
7623 * breakpoint.c (print_breakpoint_location)
7624 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7625 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7626 * disasm.c (dump_insns): Ditto.
7627 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7628 prototype.
7629 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7630 ui_stream/ui_out_stream_new.
7631 * infcmd.c (print_return_value): Ditto.
7632 * osdata.c (info_osdata_command): Don't allocate a local
7633 ui_stream.
7634 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7635 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7636 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7637 allocate a local ui_stream.
7638 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7639 instead of ui_stream/ui_out_stream_new.
7640 (list_args_or_locals): Don't allocate a local ui_stream.
7641 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7642 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7643 ui_stream/ui_out_stream_new.
7644 * cli/cli-setshow.c (do_setshow_command): Ditto.
7645
7646 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7647
7648 * arm-linux-tdep.c (arm_linux_init_abi): Call
7649 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7650 * arm-tdep.c (arm_process_record): New function.
7651 (deallocate_reg_mem): New function.
7652 (decode_insn): New function.
7653 (thumb_record_branch): New function.
7654 (thumb_record_ldm_stm_swi(): New function.
7655 (thumb_record_misc): New function.
7656 (thumb_record_ld_st_stack): New function.
7657 (thumb_record_ld_st_imm_offset): New function.
7658 (thumb_record_ld_st_reg_offset(): New function.
7659 (thumb_record_add_sub_cmp_mov): New function.
7660 (thumb_record_shift_add_sub): New function.
7661 (arm_record_coproc_data_proc): New function.
7662 (arm_record_coproc): New function.
7663 (arm_record_b_bl): New function.
7664 (arm_record_ld_st_multiple): New function.
7665 (arm_record_ld_st_reg_offset): New function.
7666 (arm_record_ld_st_imm_offset): New function.
7667 (arm_record_data_proc_imm): New function.
7668 (arm_record_data_proc_misc_ld_str): New function.
7669 (arm_record_extension_space): New function.
7670 (arm_record_strx): New function.
7671 (sbo_sbz): New function.
7672 (struct insn_decode_record): New structure for arm insn record.
7673 (REG_ALLOC): New macro for reg allocations.
7674 (MEM_ALLOC): New macro for memory allocations.
7675 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7676
7677 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7678
7679 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7680 (store_register): Likewise.
7681
7682 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7683
7684 * MAINTAINERS (Write After Approval): Add myself to the list.
7685
7686 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7689 Describe also the option "auto".
7690
7691 2012-03-22 Richard Henderson <rth@redhat.com>
7692
7693 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7694 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7695
7696 2012-03-22 Richard Henderson <rth@redhat.com>
7697
7698 * jit.c (jit_read_code_entry): Compute alignment and offset of
7699 int64_t member before computing entry_size.
7700
7701 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7702
7703 Python scripting: Add new method Value.referenced_value to
7704 gdb.Value which can dereference pointer as well as reference
7705 values.
7706 * NEWS: Add entry under 'Python scripting' about the new method
7707 Value.referenced_value on gdb.Value objects.
7708 * python/py-value.c (valpy_referenced_value): New function
7709 defining a new method on gdb.Value objects which can dereference
7710 pointer and reference values.
7711
7712 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7713
7714 * MAINTAINERS (Write After Approval): Add myself to the list.
7715
7716 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7717
7718 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7719 in addition to "main".
7720
7721 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7722
7723 * expression.h (op_name): Add declaration.
7724 * expprint.c (op_name): Remove declaration. Make non-static.
7725 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7726
7727 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7728
7729 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7730 of struct siginfo.
7731 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7732 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7733 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7734 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7735 (linux_nat_get_siginfo): Likewise.
7736 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7737 (linux_nat_get_siginfo): Likewise.
7738 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7739 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7740 * procfs.c (gdb_siginfo_t): Likewise.
7741
7742 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7743
7744 * .gitignore: Ignore more files.
7745
7746 2012-03-20 Pedro Alves <palves@redhat.com>
7747
7748 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7749 returns.
7750
7751 2012-03-20 Yao Qi <yao@codesourcery.com>
7752
7753 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7754 comment.
7755
7756 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7757
7758 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7759 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7760 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7761 sect_offset.
7762 * dwarf2expr.h (cu_offset, sect_offset): New types.
7763 (struct dwarf_expr_context_funcs) <dwarf_call>
7764 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7765 sect_offset.
7766 (struct dwarf_expr_context) <len>: Improve the comment.
7767 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7768 cu_offset and sect_offset.
7769 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7770 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7771 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7772 * dwarf2loc.h: Include dwarf2expr.h.
7773 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7774 and sect_offset.
7775 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7776 Improve the comment.
7777 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7778 (struct signatured_type, struct line_header, struct partial_die_info)
7779 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7780 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7781 (get_die_type_at_offset, create_cus_from_index)
7782 (create_signatured_type_table_from_index, dw2_get_file_names)
7783 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7784 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7785 (create_debug_types_hash_table, process_psymtab_comp_unit)
7786 (load_partial_comp_unit, create_all_comp_units)
7787 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7788 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7789 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7790 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7791 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7792 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7793 (find_partial_die, read_attribute_value, lookup_die_type)
7794 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7795 (is_ref_attr): New function comment.
7796 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7797 Use cu_offset and sect_offset.
7798 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7799 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7800 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7801 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7802 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7803 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7804 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7805 sect_offset.
7806
7807 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7808
7809 Code cleanup.
7810 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7811 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7812 with xfree.
7813 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7814
7815 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7816
7817 * NEWS: Describe new options --init-command=FILE, -ix and
7818 --init-eval-command=COMMAND, -iex.
7819 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7820 CMDARG_INIT_COMMAND.
7821 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7822 "init-command", "init-eval-command", "ix" and "iex" to the variable
7823 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7824 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7825 (print_gdb_help): Describe --init-command=FILE, -ix and
7826 --init-eval-command=COMMAND, -iex.
7827
7828 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7829
7830 Code cleanup.
7831 * main.c (struct cmdarg): Move it here from main. Add more comments.
7832 (cmdarg_s, VEC (cmdarg_s)): New.
7833 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7834 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7835 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7836 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7837 of CMDARG.
7838
7839 2012-03-19 Tom Tromey <tromey@redhat.com>
7840
7841 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7842
7843 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 PR symtab/13777
7846 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7847 GCC >=4.5.
7848
7849 2012-03-16 Chris January <chris.january@allinea.com>
7850
7851 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7852 of clear.
7853
7854 2012-03-16 Chris January <chris.january@allinea.com>
7855
7856 * source.c (add_path): Use memmove instead of strcpy because the
7857 strings overlap.
7858
7859 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7860
7861 * value.h (set_value_parent): Add declaration.
7862 * value.c (set_value_parent): New function.
7863 (value_address): If VALUE->PARENT is not NULL, then use it as
7864 the base address instead of VALUE->LOCATION.address.
7865 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7866 the same as OBJ's address. Adjust V's offset accordingly.
7867 Set V's parent.
7868
7869 2012-03-16 Gary Benson <gbenson@redhat.com>
7870
7871 PR breakpoints/10738
7872 * dwarf2read.c (use_deprecated_index_sections): New global.
7873 (struct partial_die_info): New member may_be_inlined.
7874 (read_partial_die): Set may_be_inlined where appropriate.
7875 (add_partial_subprogram): Add partial symbols for partial
7876 DIEs that may be inlined.
7877 (new_symbol_full): Add inlined subroutines to the current
7878 scope.
7879 (write_psymtabs_to_index): Bump version number.
7880 (dwarf2_read_index): Read only version 6 indices unless
7881 use_deprecated_index_sections is set.
7882 * linespec.c (symbol_and_data_callback): New structure.
7883 (iterate_inline_only): New function.
7884 (iterate_over_all_matching_symtabs): New argument
7885 "include_inline". If nonzero, also call the callback for
7886 symbols representing inlined subroutines.
7887 (lookup_prefix_sym): Pass extra argument to the above.
7888 (find_function_symbols): Likewise.
7889 (add_matching_symbols_to_info): Likewise.
7890 * NEWS: Mention that GDB can now set breakpoints on inlined
7891 functions.
7892
7893 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7894
7895 * p-typeprint.c (pascal_type_print_method_args):
7896 Fix display of parameter of methods.
7897
7898 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7899
7900 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7901 Add missing prototype.
7902
7903 2012-03-16 Yao Qi <yao@codesourcery.com>
7904 Jan Kratochvil <jan.kratochvil@redhat.com>
7905
7906 Fix false compilation warning.
7907 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7908
7909 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7910 Pedro Alves <pedro@codesourcery.com>
7911
7912 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7913 (arm_register_g_packet_guesses): New function.
7914 (arm_gdbarch_init): Don't force a target description with
7915 registers when the executable is detected as M-profile. Instead
7916 set gdbarch->tdep->is_m. Register `g' packet guesses.
7917 (_initialize_arm_tdep): Initialize the new target description.
7918 * features/arm-with-m-fpa-layout.xml: New description.
7919 * features/arm-with-m-fpa-layout.c: New, generated.
7920
7921 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7922
7923 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7924 Update function description.
7925 (insert_bp_location): Do not wipe bl->target_info out.
7926 * mem-break.c: #include "gdb_string.h".
7927 (default_memory_insert_breakpoint): Do not call target_read_memory
7928 with a pointer to the breakpoint's shadow_contents buffer. Use
7929 a local buffer instead.
7930 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7931
7932 2012-03-15 Tom Tromey <tromey@redhat.com>
7933
7934 * NEWS: Mention "info vtbl", not "info vtable".
7935 * cp-support.c (info_vtbl_command): Fix comment.
7936 (_initialize_cp_support): Fix text.
7937
7938 2012-03-15 Tom Tromey <tromey@redhat.com>
7939
7940 * cp-valprint.c (cp_print_value_fields): Use
7941 print_function_pointer_address for vtable slot.
7942
7943 2012-03-15 Tom Tromey <tromey@redhat.com>
7944
7945 * gnu-v3-abi.c (struct value_and_voffset): New.
7946 (hash_value_and_voffset, eq_value_and_voffset)
7947 (compare_value_and_voffset, compute_vtable_size)
7948 (print_one_vtable, gnuv3_print_vtable): New functions.
7949 (init_gnuv3_ops): Initialize 'print_vtable' field.
7950 * cp-support.c (info_vtbl_command): New function.
7951 (_initialize_cp_support): Add "info vtbl".
7952 * cp-abi.h (cplus_print_vtable): Declare.
7953 (struct cp_abi_ops) <print_vtable>: New field.
7954 * cp-abi.c (cplus_print_vtable): New function.
7955 * NEWS: Update.
7956
7957 2012-03-15 Tom Tromey <tromey@redhat.com>
7958
7959 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7960 iterate_over_symbols.
7961
7962 2012-03-14 Doug Evans <dje@google.com>
7963
7964 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7965 DW_OP_GNU_parameter_ref.
7966
7967 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7968
7969 Fix double prompt of 'interpreter-exec mi'.
7970 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7971 (mi_interpreter_resume): use it.
7972 (mi_execute_command_input_handler): New function.
7973 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7974 mi_execute_command_input_handler.
7975
7976 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7977
7978 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7979 prototype.
7980 (darwin_debug_port_info): Make static.
7981 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7982 * machoread.c (_initialize_machoread): Add prototype.
7983 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7984 (i386_darwin_set_control, i386_darwin_get_control)
7985 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7986 i386_darwin_get_status, i386_darwin_get_control):
7987 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7988
7989 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7990
7991 * ax-gdb.c (gen_usual_unary): Remove special handling of
7992 enum and bool types.
7993
7994 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7995
7996 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7997
7998 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7999
8000 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8001
8002 2012-03-13 Chris January <chris.january@allinea.com>
8003
8004 * aix-thread.c (fill_sprs): Store the floating point registers
8005 at the correct offsets into vals.
8006
8007 2012-03-13 Doug Evans <dje@google.com>
8008
8009 * NEWS: Mention symbol-reloading has been deleted.
8010 * symfile.c (symbol_reloading): Delete.
8011 (show_symbol_reloading): Delete.
8012 (_initialize_symfile): Delete set/show symbol-reloading.
8013
8014 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8015 read_in_chain until we have successfully read it in.
8016 (load_full_comp_unit): Ditto.
8017 (read_signatured_type): Add comment.
8018
8019 2012-03-13 Chris January <chris.january@allinea.com>
8020
8021 * stabsread.c (fix_common_block): Change type of valu argument
8022 to CORE_ADDR.
8023
8024 2012-03-13 Chris January <chris.january@allinea.com>
8025
8026 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8027 instruction.
8028
8029 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 * common/linux-procfs.c (linux_proc_get_int): New, from
8032 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8033 field.
8034 (linux_proc_get_tgid): Only call linux_proc_get_int.
8035 (linux_proc_get_tracerpid): New.
8036 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8037 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8038 linux_proc_pid_has_state.
8039 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8040 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8041 (linux_ptrace_attach_warnings): New.
8042 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8043 New declaration.
8044 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8045 (linux_nat_attach): New variables ex, buffer, message and message_s.
8046 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8047
8048 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8049
8050 * Makefile.in (linux-ptrace.o): New.
8051 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8052 from linux-nat.c.
8053 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8054 * common/linux-ptrace.c: New file.
8055 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8056 * config/arm/linux.mh: Likewise.
8057 * config/i386/linux.mh: Likewise.
8058 * config/i386/linux64.mh: Likewise.
8059 * config/ia64/linux.mh: Likewise.
8060 * config/m32r/linux.mh: Likewise.
8061 * config/m68k/linux.mh: Likewise.
8062 * config/mips/linux.mh: Likewise.
8063 * config/pa/linux.mh: Likewise.
8064 * config/powerpc/linux.mh: Likewise.
8065 * config/powerpc/ppc64-linux.mh: Likewise.
8066 * config/powerpc/spu-linux.mh: Likewise.
8067 * config/s390/s390.mh: Likewise.
8068 * config/sparc/linux.mh: Likewise.
8069 * config/sparc/linux64.mh: Likewise.
8070 * config/xtensa/linux.mh: Likewise.
8071 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8072 common/linux-procfs.c.
8073 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8074
8075 2012-03-13 Hui Zhu <teawater@gmail.com>
8076 Pedro Alves <palves@redhat.com>
8077
8078 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8079 CREATE_BREAKPOINT_FLAGS_INSERTED.
8080 (create_breakpoint_sal, create_breakpoints_sal)
8081 (base_breakpoint_create_breakpoints_sal)
8082 (tracepoint_create_breakpoints_sal)
8083 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8084 down.
8085 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8086 (ftrace_command, strace_command): Adjust.
8087 (create_tracepoint_from_upload): Pass
8088 CREATE_BREAKPOINT_FLAGS_INSERTED.
8089 * breakpoint.h (enum breakpoint_create_flags): New.
8090 (create_breakpoint): New flags parameter.
8091 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8092 * python/py-breakpoint.c (bppy_init): Adjust.
8093 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8094 * spu-tdep.c (spu_catch_start): Adjust.
8095
8096 2012-03-13 Pedro Alves <palves@redhat.com>
8097 Hui Zhu <teawater@gmail.com>
8098 Yao Qi <yao@codesourcery.com>
8099
8100 * remote.c (struct remote_state): New field `starting_up'.
8101 (remote_start_remote): Set and clear it.
8102 (remote_can_download_tracepoint): If starting up, return false.
8103
8104 2012-03-13 Yao Qi <yao@codesourcery.com>
8105
8106 * inferior.h (struct inferior): Remove fields any_syscall_count,
8107 syscalls_counts and total_syscalls_count. Move them to new
8108 struct catch_syscall_inferior_data in breakpoint.c.
8109 * breakpoint.c: Call DEF_VEC_I(int).
8110 (struct catch_syscall_inferior_data): New.
8111 (get_catch_syscall_inferior_data): New.
8112 (catch_syscall_inferior_data_cleanup): New.
8113 (insert_catch_syscall): Update to access data in
8114 struct catch_syscall_inferior_data.
8115 (insert_catch_syscall): Likewise.
8116 (remove_catch_syscall): Likewise.
8117 (remove_catch_syscall): Likewise.
8118 (is_syscall_catchpoint_enabled): Likewise.
8119 (add_catch_command): Likewise.
8120 (_initialize_breakpoint): Register cleanup.
8121 * breakpoint.h: Removed DEF_VEC_I(int).
8122 * dwarf2loc.c: Call DEF_VEC_I(int).
8123 * mi/mi-main.c: Likewise.
8124
8125 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8126
8127 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8128
8129 2012-03-12 Chris January <chris.january@allinea.com>
8130
8131 * aix-thread.c (_initialize_aix_thread): Add prototype.
8132 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8133 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8134
8135 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8136
8137 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8138 include of "amd64-nat.h".
8139
8140 2012-03-12 Tom Tromey <tromey@redhat.com>
8141
8142 * buildsym.c (record_pending_block): Now static.
8143 * buildsym.h: (record_pending_block): Remove.
8144
8145 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8146
8147 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8148
8149 2012-03-09 Tom Tromey <tromey@redhat.com>
8150
8151 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8152 producer_is_gxx_lt_4_6>: New fields.
8153 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8154
8155 2012-03-09 Tom Tromey <tromey@redhat.com>
8156
8157 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8158
8159 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8160
8161 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8162 prototype.
8163
8164 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8165
8166 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8167
8168 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8169
8170 Fix -Wmissing-prototypes build.
8171 * arm-linux-nat.c (get_thread_id): Make it static.
8172 * xtensa-linux-nat.c (get_thread_id): Likewise.
8173
8174 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8175
8176 * server.c (process_point_options): If a conditional expression
8177 is found, only print a message if remote_debug is nonzero.
8178
8179 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8180
8181 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8182 of internal error for unknown/unsupported types.
8183
8184 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8185
8186 Fix CU relative vs. absolute DIE offsets.
8187 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8188 offset to offset_in_cu.
8189 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8190 TYPE_OFFSET.
8191 (dwarf2_fetch_die_location_block): Rename parameter offset to
8192 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8193
8194 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8195
8196 * libunwind-frame.c: Rename to ...
8197 * ia64-libunwind-tdep.c: ... here.
8198 * libunwind-frame.h: Rename to ...
8199 * ia64-libunwind-tdep.h: ... here.
8200 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8201 ia64-libunwind-tdep.h.
8202 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8203 * README (--with-libunwind): Rename to ...
8204 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8205 * config.in: Regenerate.
8206 * configure: Regenerate.
8207 * configure.ac: New option --with-libunwind-ia64, make the
8208 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8209 Remove AC_DEFINE for HAVE_LIBUNWIND.
8210 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8211 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8212 Rename libunwind-frame in the general comment.
8213 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8214 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8215 Move forward declarations inside #ifndef. Rename libunwind-frame in
8216 the general comment.
8217 * ia64-tdep.c: Rename libunwind-frame.h #include to
8218 ia64-libunwind-tdep.h.
8219 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8220 (ia64_libunwind_descr): Rename libunwind-frame to
8221 ia64-libunwind-tdep in these function comments.
8222 * ia64-tdep.h: Rename libunwind-frame.h #include to
8223 ia64-libunwind-tdep.h.
8224 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8225 ia64-libunwind-tdep in that data comment.
8226
8227 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8228
8229 * libunwind-frame.h (struct frame_unwind): New declaration.
8230
8231 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8232
8233 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8234 "set breakpoint condition-evaluation" command.
8235
8236 2012-03-08 Tristan Gingold <gingold@adacore.com>
8237
8238 * sparc-stub.c: Move to stubs/
8239 * sh-stub.c: Likewise.
8240 * m68k-stub.c: Likewise.
8241 * m32r-stub.c: Likewise.
8242 * i386-stub.c: Likewise.
8243
8244 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8245
8246 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8247 linux_get_siginfo_type.
8248
8249 * m68klinux-nat.c: Include "gdb_proc_service.h".
8250 (PTRACE_GET_THREAD_AREA): Define.
8251 (ps_get_thread_area): New function.
8252
8253 2012-03-08 Yao Qi <yao@codesourcery.com>
8254
8255 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8256 `xsnprintf'.
8257 (remote_query_attached): Likewise.
8258 (remote_static_tracepoint_marker_at): Likewise.
8259 (remote_set_permissions): Likewise.
8260 (remote_detach_1, extended_remote_attach_1): Likewise.
8261 (send_g_packet, remote_vkill): Likewise.
8262 (extended_remote_disable_randomization): Likewise.
8263 (remote_add_target_side_condition): Likewise.
8264 (remote_insert_breakpoint): Likewise.
8265 (remote_remove_breakpoint): Likewise.
8266 (remote_insert_watchpoint): Likewise.
8267 (remote_remove_watchpoint): Likewise.
8268 (remote_insert_hw_breakpoint): Likewise.
8269 (remote_insert_hw_breakpoint): Likewise.
8270 (remote_remove_hw_breakpoint): Likewise.
8271 (remote_download_command_source): Likewise.
8272 (remote_download_tracepoint): Likewise.
8273 (remote_download_trace_state_variable): Likewise.
8274 (remote_disable_tracepoint): Likewise.
8275 (remote_trace_set_readonly_regions): Likewise.
8276 (remote_get_tracepoint_status): Likewise.
8277 (remote_trace_find): Likewise.
8278 (remote_get_trace_state_variable_value): Likewise.
8279 (remote_set_disconnected_tracing): Likewise.
8280 (remote_set_circular_trace_buffer): Likewise.
8281 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8282 (remote_use_agent): Likewise.
8283 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8284 Update callers.
8285
8286 2012-03-07 Pedro Alves <palves@redhat.com>
8287
8288 * NEWS: Mention QProgramSignals.
8289 * inferior.h (update_signals_program_target): Declare.
8290 * infrun.c: (update_signals_program_target): New.
8291 (handle_command): Update the target of the new program signals
8292 array changes.
8293 * remote.c (PACKET_QProgramSignals): New enum.
8294 (last_program_signals_packet): New global.
8295 (remote_program_signals): New.
8296 (remote_start_remote): Update the target with the program signals
8297 list.
8298 (remote_protocol_features): Add entry for QPassSignals.
8299 (remote_open_1): Free anc clear last_program_signals_packet.
8300 (init_remote_ops): Install remote_program_signals.
8301 * target.c (update_current_target): Adjust.
8302 (target_program_signals): New.
8303 * target.h (struct target_ops) <to_program_signals>: New field.
8304 (target_program_signals): Declare.
8305
8306 2012-03-07 Pedro Alves <palves@redhat.com>
8307
8308 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8309 extensions.
8310
8311 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8312
8313 * m68klinux-nat.c (getregs_supplies): Make static.
8314 (getfpregs_supplies): Likewise.
8315 (have_ptrace_getregs): Likewise.
8316
8317 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8318
8319 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8320 in call to get_die_type_at_offset.
8321
8322 2012-03-06 Stan Shebs <stan@codesourcery.com>
8323
8324 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8325 * mi/mi-cmd-disas.c: Ditto.
8326 * mi/mi-cmd-env.c: Ditto.
8327 * mi/mi-cmd-file.c: Ditto.
8328 * mi/mi-cmd-stack.c: Ditto.
8329 * mi/mi-cmd-target.c: Ditto.
8330 * mi/mi-cmd-var.c: Ditto.
8331 * mi/mi-cmds.c: Ditto.
8332 * mi/mi-cmds.h: Ditto.
8333 * mi/mi-console.c: Ditto.
8334 * mi/mi-getopt.c: Ditto.
8335 * mi/mi-getopt.h: Ditto.
8336 * mi/mi-interp.c: Ditto.
8337 * mi/mi-main.c: Ditto.
8338 * mi/mi-out.c: Ditto.
8339 * mi/mi-parse.c: Ditto.
8340 * mi/mi-parse.h: Ditto.
8341 * mi/mi-symbol-cmds.c: Ditto.
8342
8343 * mi/mi-getopt.h: Move mi_opt struct up.
8344 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8345 return.
8346 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8347
8348 2012-03-06 Tom Tromey <tromey@redhat.com>
8349
8350 * proc-service.c (ps_pglobal_lookup): Set the current program
8351 space.
8352
8353 2012-03-06 Pedro Alves <palves@redhat.com>
8354
8355 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8356
8357 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8358
8359 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8360
8361 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8362
8363 Code cleanup.
8364 * common/linux-osdata.c (linux_common_core_of_thread): New function
8365 comment.
8366 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8367 call by linux_common_core_of_thread.
8368 (linux_nat_core_of_thread_1): Remove.
8369 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8370 * linux-thread-db.c: Include linux-osdata.h.
8371 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8372 linux_common_core_of_thread.
8373
8374 2012-03-05 Tom Tromey <tromey@redhat.com>
8375
8376 * value.c (value_primitive_field): Don't fetch contents for
8377 non-virtual bases.
8378
8379 2012-03-05 Tom Tromey <tromey@redhat.com>
8380
8381 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8382
8383 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8384
8385 * s390-nat.c: Include "gregset.h".
8386
8387 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8388
8389 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8390 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8391 (libunwind_load): New variable so_error, use it for dlerror. Try to
8392 load also LIBUNWIND_SO_7.
8393
8394 2012-03-05 Pedro Alves <palves@redhat.com>
8395
8396 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8397 is not NULL, and remove resulting dead code.
8398
8399 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8400
8401 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8402 prologue to sh_analyze_prologue.
8403 (sh_analyze_prologue): Make better use of such an upper limit, and
8404 generally be more cautious about accessing memory.
8405
8406 2012-03-05 Tom Tromey <tromey@redhat.com>
8407
8408 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8409 _initialize_ia64_hpux_tdep.
8410
8411 2012-03-05 Pedro Alves <palves@redhat.com>
8412
8413 PR gdb/13766
8414
8415 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8416 the register state is clear, supply explicit zero, instead of
8417 marking the register unavailable.
8418
8419 2012-03-05 Tristan Gingold <gingold@adacore.com>
8420
8421 * NEWS: Mention OpenVMS ia64 new target.
8422
8423 2012-03-05 Tristan Gingold <gingold@adacore.com>
8424
8425 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8426 (ia64_unw_accessors, ia64_unw_rse_accessors)
8427 (ia64_libunwind_descr): Declare.
8428 * ia64-vms-tdep.c: New file.
8429 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8430 (ia64_libunwind_descr): Make them public.
8431 * configure.tgt: Add ia64-*-*vms*.
8432 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8433 (ALLDEPFILES): Add ia64-vms-tdep.c
8434
8435 2012-03-05 Tristan Gingold <gingold@adacore.com>
8436
8437 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8438 * remote.c (PACKET_qXfer_uib): New enum value.
8439 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8440 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8441 (_initialize_remote): Call add_packet_config_cmd for
8442 xfer:uib packet.
8443
8444 2012-03-05 Tristan Gingold <gingold@adacore.com>
8445
8446 * osabi.c (gdb_osabi_names): Add OpenVMS.
8447 (generic_elf_osabi_sniffer): Likewise.
8448 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8449
8450 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8451
8452 Removed unused code.
8453 * libunwind-frame.c (libunwind_frame_unwind)
8454 (libunwind_frame_base_address): Remove.
8455 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8456
8457 2012-03-04 Yao Qi <yao@codesourcery.com>
8458
8459 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8460 remove trailing new line.
8461 (agent_run_command, agent_run_command): Add _ markup.
8462 (agent_capability_check): Likewise.
8463
8464 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8465
8466 * breakpoint.c (set_condition_evaluation_mode): Set
8467 CONDITION_EVALUATION_MODE unconditionally.
8468
8469 2012-03-03 Yao Qi <yao@codesourcery.com>
8470
8471 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8472 * common/agent.h: Update declaration.
8473 * inf-child.c (inf_child_use_agent): New.
8474 (inf_child_can_use_agent): New.
8475 (inf_child_target): Initialize fields `to_use_agent'
8476 and `to_can_use_agent'.
8477 * agent.c (agent_new_objfile): New.
8478 (_initialize_agent): Add agent_new_objfile to new_objfile
8479 observer.
8480
8481 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8482 New.
8483 (linux_target_install_ops): Initialize field
8484 `to_static_tracepoint_markers_by_strid'.
8485 * remote.c (free_current_marker): Move it to ...
8486 * tracepoint.c (free_current_marker): ... here. New.
8487 (cleanup_target_stop): New.
8488 * tracepoint.h: Declare free_current_marker.
8489 * NEWS: Add one entry about `info static-tracepoint-marker'.
8490
8491 2012-03-03 Yao Qi <yao@codesourcery.com>
8492
8493 * common/agent.c (agent_loaded_p): New.
8494 (agent_look_up_symbols): New global.
8495 * common/agent.h: Declare agent_loaded_p.
8496
8497 2012-03-03 Yao Qi <yao@codesourcery.com>
8498
8499 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8500 (agent_capability_check, agent_capability_invalidate): New.
8501 (symbol_list): New array element.
8502 * common/agent.h (enum agent_capa): New.
8503 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8504
8505 2012-03-03 Yao Qi <yao@codesourcery.com>
8506
8507 * target.h (struct target_ops) <to_use_agent>: New field.
8508 (struct target_ops) <to_can_use_agent>: New field.
8509 (target_use_agent, target_can_use_agent): New macro.
8510 * target.c (update_current_target): Update.
8511 * remote.c: New enum `PACKET_QAgent'.
8512 (remote_protocol_features): Add a new element.
8513 (remote_use_agent, remote_can_use_agent): New.
8514 (init_remote_ops): Initialize field `can_use_agent' with
8515 remote_can_use_agent. Intiailize field `use_agent' with
8516 remote_use_agent.
8517 * common/agent.c (use_agent): New global.
8518 * common/agent.h: Declare it.
8519 * tracepoint.c (info_static_tracepoint_markers_command): Add
8520 comment.
8521 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8522 (COMMON_OBS): Add common/agent.o and agent.o
8523 (common-agent.o): New rule.
8524 * agent.c: New.
8525
8526 2012-03-03 Yao Qi <yao@codesourcery.com>
8527
8528 * common/agent.c: New.
8529 * common/agent.h: New.
8530 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8531 AC_CHECK_HEADERS.
8532 * configure, configh.in: Regenerated.
8533
8534 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8535
8536 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8537 unless it exists for this architecture.
8538
8539 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8540
8541 * language.h (struct language_defn): New "method" la_read_var_value.
8542 * findvar.c: #include "language.h".
8543 (default_read_var_value): Renames read_var_value. Rewrite
8544 function description.
8545 (read_var_value): New function.
8546 * value.h (default_read_var_value): Add prototype.
8547 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8548 New functions.
8549 (ada_language_defn): Add entry for la_read_var_value.
8550 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8551 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8552 language_defn structures to add entry for new la_read_var_value
8553 field.
8554
8555 2012-03-02 Tom Tromey <tromey@redhat.com>
8556 Pedro Alves <palves@redhat.com>
8557
8558 PR breakpoints/13776:
8559 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8560 breakpoints.
8561 (delete_longjmp_breakpoint_at_next_stop): New.
8562 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8563 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8564 before deleting the inferior. Add comments.
8565 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8566 breakpoints immediately, but only on next stop. Move that code
8567 next to where we mark other breakpoints for deletion.
8568
8569 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8570
8571 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8572 marker.
8573 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8574 violation.
8575
8576 2012-03-02 Pedro Alves <palves@redhat.com>
8577
8578 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8579
8580 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8581
8582 Fix -Wmissing-prototypes build.
8583 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8584 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8585 (gdbsim_has_memory): Likewise.
8586
8587 2012-03-02 Yao Qi <yao@codesourcery.com>
8588
8589 Fix -Wmissing-prototypes build.
8590 * charset.c (phony_iconv_open): Make static.
8591 (phony_iconv_close, phony_iconv): Likewise.
8592 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8593 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8594 prototype.
8595 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8596 * ser-mingw.c (create_select_thread): Make static.
8597 * windows-termcap.c (tgetent): New prototype.
8598 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8599
8600 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8601
8602 Fix -Wmissing-prototypes build.
8603 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8604 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8605 (_initialize_loadable): New prototypes.
8606
8607 2012-03-02 Doug Evans <dje@google.com>
8608
8609 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8610 abbrev table, read_comp_unit will do it.
8611
8612 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8613
8614 Fix -Wmissing-prototypes build.
8615 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8616 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8617 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8618 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8619 (_initialize_arm_symbian_tdep): New prototype.
8620 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8621 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8622 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8623 static.
8624 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8625 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8626 prototype.
8627 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8628 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8629 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8630 static.
8631 * moxie-tdep.c (moxie_process_record): Likewise.
8632 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8633 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8634 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8635 (_initialize_rl78_tdep): New prototype.
8636 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8637 (_initialize_rx_tdep): New prototype.
8638 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8639 (_initialize_darwin_solib): New prototype.
8640 * solib-spu.c: Include solib-spu.h.
8641 (_initialize_spu_solib): New prototype.
8642 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8643 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8644 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8645 (tic6x_software_single_step): Make it static.
8646 (_initialize_tic6x_tdep): New prototype.
8647
8648 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8649
8650 Fix -Wmissing-prototypes build.
8651 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8652 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8653
8654 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8655
8656 Fix -Wmissing-prototypes build.
8657 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8658 (frv_have_stopped_data_address): Remove.
8659
8660 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8661
8662 Fix -Wmissing-prototypes build.
8663 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8664 * sh-tdep.c: Include sh64-tdep.h.
8665 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8666 * sh64-tdep.c: Include sh64-tdep.h.
8667 * sh64-tdep.h: New file.
8668
8669 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8670
8671 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8672
8673 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8674
8675 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8676 sp_regnum once the gdbarch_init_osabi hook has been called.
8677
8678 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8679
8680 * mips-tdep.c (mips32_bc1_pc): New function.
8681 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8682 BPOSGE32 and BPOSGE64 instructions.
8683 (deal_with_atomic_sequence): Likewise.
8684 (mips32_instruction_has_delay_slot): Likewise.
8685
8686 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8687 Chris Dearman <chris@mips.com>
8688 Maciej W. Rozycki <macro@codesourcery.com>
8689 Joseph Myers <joseph@codesourcery.com>
8690
8691 * features/mips-dsp.xml: New file.
8692 * features/mips64-dsp.xml: New file.
8693 * features/mips-dsp-linux.xml: New file.
8694 * features/mips64-dsp-linux.xml: New file.
8695 * features/Makefile (WHICH): Add mips-dsp-linux and
8696 mips64-dsp-linux.
8697 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8698 * features/mips-dsp-linux.c: New file.
8699 * features/mips64-dsp-linux.c: New file.
8700 * regformats/mips-dsp-linux.dat: New file.
8701 * regformats/mips64-dsp-linux.dat: New file.
8702 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8703 registers.
8704 (mips64_linux_register_addr): Likewise.
8705 (mips64_linux_regsets_fetch_registers): Likewise.
8706 (mips64_linux_regsets_store_registers): Likewise.
8707 (mips64_linux_fetch_registers): Update call to
8708 mips64_linux_regsets_fetch_registers.
8709 (mips64_linux_store_registers): Update call to
8710 mips64_linux_regsets_store_registers.
8711 (mips_linux_read_description): Probe for DSP registers.
8712 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8713 and initialize_tdesc_mips64_dsp_linux.
8714 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8715 Remove padding of no longer used embedded register slots.
8716 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8717 (MIPS_RESTART_REGNUM): Redefine enum value.
8718 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8719 strings.
8720 (mips_tx39_reg_names): Likewise.
8721 (mips_linux_reg_names): New array of register names for Linux
8722 targets.
8723 (mips_register_name): Check for a null pointer in
8724 mips_processor_reg_names and return an empty string.
8725 (mips_register_type): Exclude embedded registers for the IRIX
8726 and Linux ABIs.
8727 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8728 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8729 DSP registers.
8730 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8731 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8732 (mips_gdbarch_init): Likewise. Initialize internal register
8733 indices for the Linux ABI. Use dynamic numbers to refer to
8734 registers, as applicable, while parsing the target description.
8735 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8736
8737 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8738
8739 * frame.h (read_frame_register_unsigned): Fix typo in function
8740 description.
8741
8742 2012-03-01 Pedro Alves <palves@redhat.com>
8743
8744 * jit-reader.in [!__cplusplus]
8745 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8746
8747 2012-03-01 Pedro Alves <palves@redhat.com>
8748
8749 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8750 * configure: Regenerate.
8751
8752 2012-03-01 Pedro Alves <palves@redhat.com>
8753
8754 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8755 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8756 (ftrace_command, strace_command): Make static.
8757 * d-lang.c (_initialize_d_language): Declare.
8758 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8759 * dwarf2loc.c (_initialize_dwarf2loc):
8760 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8761 * exec.c (exec_get_section_table): Make static.
8762 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8763 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8764 * inferior.c (remove_inferior_command, add_inferior_command)
8765 (clone_inferior_command): Make static.
8766 * linux-nat.c (linux_nat_thread_address_space)
8767 (linux_nat_core_of_thread): Make static.
8768 * linux-tdep.c (_initialize_linux_tdep): Declare.
8769 * objc-lang.c (_initialize_objc_lang): Declare.
8770 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8771 Make static.
8772 (_initialize_opencl_language): Declare.
8773 * record.c (_initialize_record): Declare.
8774 * remote.c (demand_private_info, remote_get_tib_address)
8775 (remote_supports_cond_tracepoints)
8776 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8777 Make static.
8778 * skip.c (_initialize_step_skip): Declare.
8779 * symtab.c (skip_prologue_using_lineinfo): Make static.
8780 * tracepoint.c (delete_trace_state_variable)
8781 (trace_variable_command, delete_trace_variable_command)
8782 (get_uploaded_tsv, find_matching_tracepoint_location)
8783 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8784 Make static.
8785 * value.c (pack_unsigned_long): Make static.
8786 * varobj.c (varobj_ensure_python_env): Make static.
8787 * windows-tdep.c (_initialize_windows_tdep): Declare.
8788 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8789
8790 2012-03-01 Pedro Alves <palves@redhat.com>
8791
8792 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8793 gdbarch parameter.
8794 (linux_init_abi): Install it as has_shared_address_space gdbarch
8795 callback.
8796
8797 2012-03-01 Pedro Alves <palves@redhat.com>
8798
8799 * observer.c (observer_test_first_notification_function)
8800 (observer_test_second_notification_function)
8801 (observer_test_third_notification_function): Add declarations.
8802
8803 2012-03-01 Pedro Alves <palves@redhat.com>
8804
8805 * common/signals.c (default_target_signal_to_host)
8806 (default_target_signal_from_host): Move ...
8807 * arch-utils.c: ... here.
8808 * arch-utils.h (default_target_signal_to_host)
8809 (default_target_signal_from_host): Declare.
8810
8811 * common/signals.c (target_signal_from_command): Move ...
8812 * infrun.c: ... here.
8813 * inferior.h (target_signal_from_command): Declare.
8814 * target.h (target_signal_from_command)
8815 (default_target_signal_from_host, default_target_signal_to_host):
8816 Delete declarations.
8817
8818 * common/signals.c (_initialize_signals): Delete.
8819
8820 2012-03-01 Pedro Alves <palves@redhat.com>
8821
8822 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8823 both __cplusplus and !__cplusplus.
8824
8825 2012-03-01 Pedro Alves <palves@redhat.com>
8826
8827 * psymtab.c (find_and_open_source): Delete declaration.
8828 * source.c (find_and_open_source): Move comment ...
8829 * source.h (find_and_open_source): ... to this new declaration.
8830
8831 2012-03-01 Pedro Alves <palves@redhat.com>
8832
8833 * inline-frame.c: Include inline-frame.h.
8834
8835 2012-03-01 Pedro Alves <palves@redhat.com>
8836
8837 * tui/tui-data.c (set_gen_win_origin): Delete.
8838 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8839 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8840
8841 2012-03-01 Pedro Alves <palves@redhat.com>
8842
8843 * remote.c (encode_actions): Delete declaration.
8844 * tracepoint.c (encode_actions): Make extern.
8845 * tracepoint.h (encode_actions): Declare.
8846
8847 2012-03-01 Pedro Alves <palves@redhat.com>
8848
8849 * python/py-breakpoint.c: Include python.h.
8850 * python/py-continueevent.c (create_continue_event_object): Make
8851 static.
8852 * python/py-lazy-string.c (stpy_get_type): Make static.
8853 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8854 Make static.
8855 * python/py-utils.c (unicode_to_target_python_string): Make
8856 static.
8857 * python/py-value.c: Include python.h.
8858
8859 2012-03-01 Pedro Alves <palves@redhat.com>
8860
8861 * inferior.c (delete_threads_of_inferior): Delete.
8862
8863 2012-03-01 Pedro Alves <palves@redhat.com>
8864
8865 Import fallback definitions from glibc.
8866
8867 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8868 ps_prochandle): Forward declare.
8869 (ps_err_e): Use glibc's comments.
8870 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8871 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8872 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8873 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8874 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8875 (struct ps_prochandle): Adjust comment.
8876
8877 2012-03-01 Pedro Alves <palves@redhat.com>
8878
8879 * ada-lang.c (ada_modulus_from_name): Delete.
8880 * ada-lex.l (lexer_init): Make static.
8881
8882 2012-03-01 Pedro Alves <palves@redhat.com>
8883
8884 PR gdb/13767
8885
8886 * frame.c (read_frame_register_unsigned): New.
8887 * frame.h (read_frame_register_unsigned): Declare.
8888 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8889 Handle it.
8890 (print_i387_control_word): New parameter `control_p'. Handle it.
8891 (i387_print_float_info): Handle unavailable float registers.
8892
8893 2012-03-01 Keith Seitz <keiths@redhat.com>
8894
8895 * linespec.c (decode_line_2): Sort the list of methods
8896 alphabetically before presenting the user with a selection
8897 menu.
8898
8899 2012-03-01 Doug Evans <dje@google.com>
8900
8901 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8902 has_namespace_info.
8903 (dwarf2_read_abbrevs): Remove corresponding initialization.
8904
8905 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8906
8907 * NEWS: Mention new python command class gdb.COMMAND_USER.
8908 * cli/cli-cmds.c (show_user): Print error when used on a python
8909 command.
8910 (init_cli_cmds): Update documentation strings for "show user" and
8911 "set/show max-user-call-depth" to clarify that it does not apply to
8912 python commands.
8913 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8914 error check.
8915 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8916 gdb python api.
8917 * top.c (execute_command): Only execute a user-defined command as a
8918 legacy macro if c->user_commands is set.
8919
8920 2012-03-01 Tom Tromey <tromey@redhat.com>
8921
8922 * valprint.h (struct generic_val_print_decorations): New.
8923 (generic_val_print): Declare.
8924 * valprint.c (generic_val_print): New function.
8925 * p-valprint.c (p_decorations): New global.
8926 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8927 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8928 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8929 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8930 * m2-valprint.c (m2_decorations): New global.
8931 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8932 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8933 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8934 TYPE_CODE_ERROR>: Call generic_val_print.
8935 * f-valprint.c (f_decorations): New global.
8936 (f_val_print): Use print_function_pointer_address.
8937 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8938 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8939 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8940 generic_val_print.
8941 * c-valprint.c (c_decorations): New global.
8942 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8943 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8944 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8945 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8946 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8947 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8948 case.
8949
8950 2012-03-01 Tom Tromey <tromey@redhat.com>
8951
8952 * valprint.c (val_print): Update.
8953 * p-valprint (pascal_val_print): Return void.
8954 * p-lang.h (pascal_val_print): Return void.
8955 * m2-valprint.c (m2_val_print): Return void.
8956 * m2-lang.h (m2_val_print): Return void.
8957 * language.h (struct language_defn) <la_val_print>: Return void.
8958 * language.c (unk_lang_val_print): Return void.
8959 * jv-valprint.c (java_val_print): Return void.
8960 * jv-lang.h (java_val_print): Return void.
8961 * f-valprint.c (f_val_print): Return void.
8962 * f-lang.h (f_val_print): Return void.
8963 * d-valprint.c (d_val_print): Return void.
8964 (dynamic_array_type): Update.
8965 * d-lang.h (d_val_print): Return void.
8966 * c-valprint.c (c_val_print): Return void.
8967 * c-lang.h (c_val_print): Return void.
8968 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8969 void.
8970 * ada-lang.h (ada_val_print): Return void.
8971
8972 2012-03-01 Tom Tromey <tromey@redhat.com>
8973
8974 * value.h (val_print): Return void.
8975 * valprint.c (val_print): Return void.
8976
8977 2012-03-01 Tom Tromey <tromey@redhat.com>
8978
8979 * value.h (common_val_print): Return void.
8980 * valprint.c (common_val_print): Return void.
8981
8982 2012-03-01 Tom Tromey <tromey@redhat.com>
8983
8984 * value.h (value_print): Return void.
8985 * valprint.c (value_print): Return void.
8986 * p-valprint.c (pascal_value_print): Return void.
8987 * p-lang.h (pascal_value_print): Return void.
8988 * language.h (struct language_defn) <la_value_print>: Return
8989 void.
8990 * language.c (unk_lang_value_print): Return void.
8991 * jv-valprint.c (java_value_print): Return void.
8992 * jv-lang.h (java_value_print): Return void.
8993 * f-valprint.c (c_value_print): Don't declare.
8994 Include c-lang.h.
8995 * c-valprint.c (c_value_print): Return void.
8996 * c-lang.h (c_value_print): Return void.
8997 * ada-valprint.c (ada_value_print): Return void.
8998 * ada-lang.h (ada_value_print): Return void.
8999
9000 2012-03-01 Tom Tromey <tromey@redhat.com>
9001
9002 * value.c (value_primitive_field): Handle virtual base classes.
9003
9004 2012-03-01 Tom Tromey <tromey@redhat.com>
9005
9006 * gdbtypes.h (struct vbase): Remove.
9007
9008 2012-03-01 Tom Tromey <tromey@redhat.com>
9009
9010 * c-valprint.c (print_function_pointer_address): Move...
9011 * valprint.c: ... here. Make non-static.
9012 * m2-valprint.c (print_function_pointer_address): Remove.
9013 * valprint.h (print_function_pointer_address): Declare.
9014
9015 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9016
9017 * NEWS: Document the fact that one can provide a condition when
9018 creating an Ada exception catchpoint.
9019
9020 2012-03-01 Tom Tromey <tromey@redhat.com>
9021
9022 * valprint.c (val_print_type_code_flags): Fix placement of
9023 trailing brace.
9024
9025 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9026
9027 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9028 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9029 environment variable before calling update-copyright.
9030
9031 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9032
9033 * gnulib/extra/update-copyright: Update to the latest from
9034 gnulib's git repository.
9035 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9036 variable to 2 instead of 1.
9037
9038 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9039
9040 * varobj.c (c_value_of_variable): Remove dead code.
9041
9042 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9043
9044 * ada-lex.p (processId): Do not modify already encoded IDs.
9045 Update function documentation.
9046
9047 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9048
9049 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9050 "name" with "struct symbol *name_sym".
9051 * ada-exp.y (write_var_or_type): Update call to
9052 ada_find_renaming_symbol.
9053 "name" with "struct symbol *name_sym". Adjust Implementation
9054 accordingly. Adjust the function documentation.
9055
9056 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9057
9058 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9059 * ada-lang.c (ada_find_any_type): Add advance declaration.
9060 Make static. Replace ada_find_any_symbol by
9061 ada_find_any_type_symbol.
9062 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9063 Improve function description. Make static.
9064 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9065 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9066
9067 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9068
9069 * ada-lang.c (struct tag_args): Delete.
9070 (ada_get_tsd_type): Function body moved up in source file.
9071 (ada_tag_name_1, ada_tag_name_2): Delete.
9072 (ada_get_tsd_from_tag): New function.
9073 (ada_tag_name_from_tsd): New function.
9074 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9075 to determine the tag name.
9076
9077 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9078
9079 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9080 declaration.
9081 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9082 function.
9083
9084 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9085
9086 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9087
9088 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9089
9090 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9091 full searches.
9092
9093 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9094
9095 * ada-lang.c (constrained_packed_array_type): If there is a
9096 parallel XA type, use it to determine the array index type.
9097
9098 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9099
9100 * ada-valprint.c (ada_val_print_1): If our value is a reference
9101 to an array descriptor, dereference it before converting it
9102 to a simple array.
9103
9104 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9105
9106 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9107 creating fixed value.
9108 (ada_value_ind, ada_coerce_ref, assign_component)
9109 (ada_evaluate_subexp): Remove call to unwrap_value before
9110 call to ada_to_fixed_value.
9111
9112 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9113
9114 * ada-lang.c (to_fixed_array_type): Set result's type name.
9115
9116 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9117
9118 * ada-lang.c (catch_ada_exception_command_split): Add new
9119 argument cond_string. Add support for condition at end of
9120 "catch exception" commands.
9121 (ada_decode_exception_location): Add new argument cond_string.
9122 Update call to catch_ada_exception_command_split.
9123 (create_ada_exception_catchpoint): Add new argument cond_string.
9124 Set the breakpoint condition if needed.
9125 (catch_ada_exception_command): Update call to
9126 ada_decode_exception_location.
9127 (ada_decode_assert_location): Add function documentation.
9128 Add support for condition at end of "catch assert" command.
9129 (catch_assert_command): Update calls to ada_decode_assert_location
9130 and create_ada_exception_catchpoint.
9131
9132 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9133
9134 Fix disp-step-syscall.exp: fork: single step over fork.
9135 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9136 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9137 comment, change parameters gdbarch and ptid to regcache. Remove
9138 parameter regcache, initialize gdbarch from regcache here.
9139 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9140 New functions.
9141 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9142 instead.
9143 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9144 'syscall'. Make the 'int' check more strict.
9145
9146 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9149 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9150 (i386_linux_intx80_sysenter_syscall_record): ... here.
9151 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9152 Use the renamed function name.
9153
9154 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9157 * breakpoint.c (until_break_command): Likewise.
9158 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9159 * infcall.c (call_function_by_hand): Likewise.
9160 * infcmd.c (finish_forward): Likewise.
9161 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9162
9163 2012-02-28 Tristan Gingold <gingold@adacore.com>
9164
9165 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9166 avoid variable assignments inside condition.
9167
9168 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9169
9170 Fix static analysis issue found by cppcheck.
9171 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9172 uninitialized BUF for size 2.
9173
9174 2012-02-27 Chris Dearman <chris@mips.com>
9175 Nathan Froyd <froydnj@codesourcery.com>
9176 Maciej W. Rozycki <macro@codesourcery.com>
9177
9178 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9179 (mips16_instruction_has_delay_slot): Likewise.
9180 (mips_segment_boundary): Likewise.
9181 (mips_adjust_breakpoint_address): Likewise.
9182 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9183
9184 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9185 Maciej W. Rozycki <macro@codesourcery.com>
9186
9187 * infrun.c (handle_inferior_event): Don't proceed through
9188 shared library trampolines if stepping at the machine
9189 instruction level.
9190
9191 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9192
9193 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9194 too.
9195
9196 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9197
9198 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9199 (sh_stub_unwind_sniffer): New functions.
9200 (sh_stub_unwind): New variable.
9201 (sh_gdbarch_init): Wire everything.
9202
9203 2012-02-27 Pedro Alves <palves@redhat.com>
9204
9205 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9206 (linux_nat_post_attach_wait): Adjust to use
9207 linux_proc_pid_is_stopped.
9208 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9209 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9210 based on pid_is_stopped from both linux-nat.c and
9211 gdbserver/linux-low.c, and renamed.
9212
9213 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9214
9215 * remote.c (remote_watchpoint_addr_within_range): New function.
9216 (init_remote_ops): Use it.
9217
9218 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9219
9220 * target.h (target_watchpoint_addr_within_range): Document macro.
9221
9222 2012-02-24 Pedro Alves <palves@redhat.com>
9223
9224 * stack.c (set_last_displayed_sal): Issue internal_error instead
9225 of warning, and issue it after clearing the last displayed sal.
9226
9227 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 Pedro Alves <palves@redhat.com>
9229
9230 * breakpoint.c (until_break_command): Install breakpoints after
9231 all frame manipulations.
9232
9233 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9234
9235 * remote.c (remote_supports_cond_breakpoints): New forward
9236 declaration.
9237 (remote_add_target_side_condition): New function.
9238 (remote_insert_breakpoint): Add target-side breakpoint
9239 conditional if supported.
9240 (remote_insert_hw_breakpoint): Likewise.
9241 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9242 hook.
9243
9244 * target.c (update_current_target): Inherit
9245 to_supports_evaluation_of_breakpoint_conditions.
9246 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9247
9248 * target.h (struct target_ops)
9249 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9250 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9251
9252 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9253 (condition_evaluation_both, condition_evaluation_auto,
9254 condition_evaluation_host, condition_evaluation_target,
9255 condition_evaluation_enums, condition_evaluation_mode_1,
9256 condition_evaluation_mode): New static globals.
9257 (translate_condition_evaluation_mode): New function.
9258 (breakpoint_condition_evaluation_mode): New function.
9259 (gdb_evaluates_breakpoint_condition_p): New function.
9260 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9261 (mark_breakpoint_modified): New function.
9262 (mark_breakpoint_location_modified): New function.
9263 (set_condition_evaluation_mode): New function.
9264 (show_condition_evaluation_mode): New function.
9265 (bp_location_compare_addrs): New function.
9266 (get_first_location_gte_addr): New helper function.
9267 (set_breakpoint_condition): Free condition bytecode if locations
9268 has become unconditional. Call mark_breakpoint_modified (...).
9269 (condition_command): Call update_global_location_list (1) for
9270 breakpoints.
9271 (breakpoint_xfer_memory): Use is_breakpoint (...).
9272 (is_breakpoint): New function.
9273 (parse_cond_to_aexpr): New function.
9274 (build_target_condition_list): New function.
9275 (insert_bp_location): Handle target-side conditional
9276 breakpoints and call build_target_condition_list (...).
9277 (update_inserted_breakpoint_locations): New function.
9278 (insert_breakpoint_locations): Handle target-side conditional
9279 breakpoints.
9280 (bpstat_check_breakpoint_conditions): Add comment.
9281 (bp_condition_evaluator): New function.
9282 (bp_location_condition_evaluator): New function.
9283 (print_breakpoint_location): Print information on where the condition
9284 will be evaluated.
9285 (print_one_breakpoint_location): Likewise.
9286 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9287 breakpoint location.
9288 (force_breakpoint_reinsertion): New functions.
9289 (update_global_location_list): Handle target-side breakpoint
9290 conditions.
9291 Reinsert locations that are already inserted if conditions have
9292 changed.
9293 (bp_location_dtor): Free agent expression bytecode.
9294 (disable_breakpoint): Call mark_breakpoint_modified (...).
9295 Call update_global_location_list (...) with parameter 1 for breakpoints.
9296 (disable_command): Call mark_breakpoint_location_modified (...).
9297 Call update_global_location_list (...) with parameter 1 for breakpoints.
9298 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9299 (enable_command): mark_breakpoint_location_modified (...).
9300 (_initialize_breakpoint): Update documentation and add
9301 condition-evaluation breakpoint subcommand.
9302
9303 * breakpoint.h: Include ax.h.
9304 (condition_list): New data structure.
9305 (condition_status): New enum.
9306 (bp_target_info) <cond_list>: New field.
9307 (bp_location) <condition_changed, cond_bytecode>: New fields.
9308 (is_breakpoint): New prototype.
9309
9310 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9311
9312 * remote.c (remote_state) <cond_breakpoints>: New field.
9313 (PACKET_ConditionalBreakpoints): New enum.
9314 (remote_cond_breakpoint_feature): New function.
9315 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9316 (remote_supports_cond_breakpoints): New function.
9317 (_initialize_remote): Add new packet configuration for
9318 target-side conditional breakpoints.
9319
9320 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9321
9322 * NEWS: Mention target-side conditional breakpoint support,
9323 new condition-evaluation breakpoint subcommand and remote
9324 packet extensions.
9325
9326 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9327
9328 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9329 number.
9330
9331 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9332
9333 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9334 (after_prologue): Remove.
9335
9336 2012-02-23 Tom Tromey <tromey@redhat.com>
9337
9338 * jv-valprint.c (java_val_print): Remove dead code.
9339
9340 2012-02-23 Tristan Gingold <gingold@adacore.com>
9341
9342 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9343 known_tasks_element and known_tasks_length fields.
9344 (read_known_tasks_array): Change argument type. Use pointer type
9345 and number of elements from DATA. Adjust.
9346 (read_known_tasks_list): Likewise.
9347 (get_known_tasks_addr): Remove.
9348 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9349 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9350 type and array length. Merge former get_known_tasks_addr code.
9351
9352 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 PR backtrace/13716
9355 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9356 it after set_momentary_breakpoint.
9357
9358 2012-02-22 Sterling Augustine <saugustine@google.com>
9359
9360 PR 13689:
9361 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9362
9363 2012-02-22 Gary Benson <gbenson@redhat.com>
9364
9365 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9366 (find_slot_in_mapped_hash): Likewise.
9367
9368 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9369
9370 PR build/13638
9371 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9372 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9373 * configure: Regenerate.
9374
9375 2012-02-21 Tristan Gingold <gingold@adacore.com>
9376 Pedro Alves <palves@redhat.com>
9377
9378 * ia64-tdep.c: Do not include libunwind-ia64.h.
9379 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9380 Include libunwind-ia64.h instead of libunwind.h.
9381 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9382 for libunwind.h existence.
9383 * configure, config.in: Regenerate.
9384
9385 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9386
9387 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9388 instead of value_rtti_target_type.
9389 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9390 instead of value_rtti_target_type.
9391 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9392 value_rtti_target_type.
9393 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9394 (value_rtti_target_type): Rename to ...
9395 (value_rtti_indirect_type): ... here and make it indirect. Update
9396 function comment.
9397 * value.c (readjust_indirect_value_type): New function.
9398 (coerce_ref): Support for enclosing type setting for references
9399 with readjust_indirect_value_type.
9400 * value.h (readjust_value_type): New declaration.
9401 (value_rtti_target_type): Rename to ...
9402 (value_rtti_indirect_type): ... here.
9403
9404 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9405
9406 * MAINTAINERS (Write After Approval): Add myself to the list.
9407
9408 2012-02-20 Doug Evans <dje@google.com>
9409
9410 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9411 Rename objfile_p_char parameter to objfilep.
9412 (build_objfile_section_table): Result is now void. All callers
9413 updated.
9414 * objfiles.h (struct objfile): Tweak comments, whitespace.
9415 (build_objfile_section_table): Update.
9416
9417 * elfread.c (elf_symfile_segments): Fix warning text.
9418
9419 2012-02-20 Tom Tromey <tromey@redhat.com>
9420
9421 PR gdb/13498:
9422 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9423 particular set of file names once.
9424 (dw2_map_symbol_filenames): Likewise.
9425
9426 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9427
9428 Code cleanup.
9429 * main.c (write_files): Remove the declaration.
9430 (external_editor_command): Move the declaration ...
9431 [GDBTK] (external_editor_command): ... here. Fix the comment.
9432
9433 2012-02-20 Tom Tromey <tromey@redhat.com>
9434
9435 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9436 extraneous block.
9437
9438 2012-02-20 Tristan Gingold <gingold@adacore.com>
9439
9440 * darwin-nat.h (enum darwin_msg_state): Add comments.
9441
9442 2012-02-20 Tristan Gingold <gingold@adacore.com>
9443
9444 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9445 value.
9446
9447 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9448
9449 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9450 between function description and implementation.
9451
9452 2012-02-17 Tom Tromey <tromey@redhat.com>
9453
9454 PR python/12070:
9455 * python/py-event.c (event_object_getset): New global.
9456 (event_object_type): Reference it.
9457 * python/py-type.c (field_object_getset): New global.
9458 (field_object_type): Reference it.
9459 * python/python-internal.h (gdb_py_generic_dict): Declare.
9460 * python/py-utils.c (gdb_py_generic_dict): New function.
9461
9462 2012-02-17 Tristan Gingold <gingold@adacore.com>
9463
9464 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9465
9466 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9467
9468 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9469 TYPE_CALLING_CONVENTION annotation.
9470
9471 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9472
9473 * MAINTAINERS: Add rx to target ISA section.
9474 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9475 (ALLDEPFILES): Add rx-tdep.c.
9476
9477 2012-02-16 Tom Tromey <tromey@redhat.com>
9478
9479 * symfile.c (symbol_file_add_main_1): Use inferior's
9480 symfile_flags.
9481 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9482 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9483 inferior.
9484 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9485 inferior.
9486 (follow_exec): Use inferior's symfile_flags.
9487 * inferior.h (struct inferior) <symfile_flags>: New field.
9488
9489 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9490
9491 PR gdb/9734:
9492 * remote-sim.c (gdbsim_create_inferior): Call error() when
9493 sim_create_inferior() fails.
9494
9495 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9496
9497 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9498
9499 2012-02-16 Tom Tromey <tromey@redhat.com>
9500
9501 PR c++/13653:
9502 * thread.c (struct current_thread_cleanup) <was_removable>: New
9503 field.
9504 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9505 (make_cleanup_restore_current_thread): Initialize new field.
9506
9507 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9508
9509 * MAINTAINERS: Add rl78 to target ISA section.
9510 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9511 (ALLDEPFILES): Add rl78-tdep.c.
9512 * NEWS: Mention rl78 as a new target.
9513
9514 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9515
9516 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9517 data.
9518 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9519
9520 2012-02-15 Tom Tromey <tromey@redhat.com>
9521
9522 PR gdb/12659:
9523 * infcmd.c (registers_info): Print just the current register's
9524 name.
9525
9526 2012-02-15 Tom Tromey <tromey@redhat.com>
9527
9528 * python/py-symbol.c (sympy_value): Use _().
9529
9530 2012-02-15 Pedro Alves <palves@redhat.com>
9531
9532 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9533 output to be like native targets'.
9534 (remote_pid_to_str): Special case the null ptid.
9535
9536 2012-02-14 Stan Shebs <stan@codesourcery.com>
9537
9538 * NEWS: Mention enable count command.
9539 * breakpoint.h (struct breakpoint): New field enable_count.
9540 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9541 (enable_breakpoint): Add arg to call.
9542 (struct disp_data): New struct.
9543 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9544 (do_map_enable_once_breakpoint): Create a struct and pass it.
9545 (do_map_enable_delete_breakpoint): Ditto.
9546 (do_map_enable_count_breakpoint): New function.
9547 (enable_count_command): New function.
9548 (bpstat_stop_status): Decrement enable_count.
9549 (print_one_breakpoint_location): Report enable count.
9550 (_initialize_breakpoint): Add enable count command.
9551
9552 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9553
9554 * rl78-tdep.c (reggroups.h): Include.
9555 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9556 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9557 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9558 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9559 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9560 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9561 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9562 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9563 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9564 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9565 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9566 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9567 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9568 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9569 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9570 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9571 beginning of register list.
9572 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9573 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9574 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9575 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9576 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9577 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9578 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9579 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9580 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9581 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9582 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9583 the pseudo registers. Rearrange other pseudo registers too so
9584 that the bank registers appear at the end.
9585 (rl78_register_type): Account for the fact that the byte sized
9586 bank registers are now pseudo-registers.
9587 (rl78_register_name): Rearrange the register name array. Make
9588 initial set of raw banked registers inaccessible.
9589 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9590 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9591 case for copying bytes back and forth between raw and pseudo
9592 versions of the banked registers. Update other cases to reflect
9593 the changed names.
9594 (rl78_return_value): Update to account for changed names of
9595 raw registers.
9596 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9597 rl78_register_sim_regno().
9598
9599 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9600
9601 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9602 the name parameter being passed to find_pc_partial_function().
9603
9604 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9605
9606 * MAINTAINERS: Step down from being ia64 target maintainer.
9607
9608 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9609
9610 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9611 compilation warning.
9612
9613 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9614
9615 Fix crash on loaded shlibs without loaded exec_bfd.
9616 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9617 (set_section_command): Replace exec_bfd by p->bfd.
9618
9619 2012-02-10 Tom Tromey <tromey@redhat.com>
9620
9621 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9622 when we have a C++ qualified name.
9623
9624 2012-02-10 Pedro Alves <palves@redhat.com>
9625
9626 * inferior.c (inferior_pid_to_str): New.
9627 (print_inferior, inferior_command): Use it.
9628
9629 2012-02-10 Pedro Alves <palves@redhat.com>
9630
9631 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9632 the test CFLAGS.
9633 * configure: Regenerate.
9634
9635 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9636
9637 * linespec.c (decode_line_internal): Fix comment correctness.
9638
9639 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9640
9641 PR gdb/12953
9642 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9643 * amd64bsd-nat.c: Add support for debug registers (adapted from
9644 i386bsd-nat.c).
9645 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9646 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9647 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9648 (amd64bsd_dr_get_control): New functions.
9649 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9650 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9651 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9652 watchpoints initialization.
9653 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9654
9655 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9656
9657 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9658 flds_bnds.fields.
9659 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9660
9661 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9664
9665 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9666
9667 * language.h (symbol_name_cmp_ftype): Renames
9668 symbol_name_match_p_ftype.
9669 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9670 la_get_symbol_name_match_p.
9671 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9672 ada_get_symbol_name_match_p. Update comment.
9673 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9674 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9675 Renames symbol_name_match_p. Update field type.
9676 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9677 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9678 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9679 "la_get_symbol_name_cmp" in comments.
9680 * language.c: Likewise.
9681
9682 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9683
9684 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9685 %eflags offset.
9686 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9687 (amd64_sol2_gregset32_reg_offs): Likewise.
9688
9689 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9690
9691 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9692 of the returned BFD is allocated by GDB.
9693
9694 2012-02-07 Tom Tromey <tromey@redhat.com>
9695
9696 PR python/12027:
9697 * python/python-internal.h (frame_object_type): Declare.
9698 * python/py-symbol.c (sympy_needs_frame): New function.
9699 (sympy_value): New function.
9700 (symbol_object_getset): Add "needs_frame".
9701 (symbol_object_methods): Add "value".
9702 * python/py-frame.c (frame_object_type): No longer static.
9703
9704 2012-02-07 Tom Tromey <tromey@redhat.com>
9705
9706 PR python/13599:
9707 * python/py-symbol.c (sympy_line): New function.
9708 (symbol_object_getset): Add "line".
9709
9710 2012-02-07 Tom Tromey <tromey@redhat.com>
9711
9712 * charset.c (find_charset_names): Check 'in' against NULL.
9713
9714 2012-02-06 Doug Evans <dje@google.com>
9715
9716 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9717 and fields.name members from char * to const char *. All uses updated.
9718 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9719 from char * to const char *. All uses updated.
9720 (type_name_no_tag): Update.
9721 (lookup_unsigned_typename, lookup_signed_typename): Update.
9722 * gdbtypes.c (type_name_no_tag): Change result type
9723 from char * to const char *. All callers updated.
9724 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9725 name parameter from char * to const char *.
9726 * symtab.h (struct cplus_specific): Change type of demangled_name
9727 member from char * to const char *. All uses updated.
9728 (struct general_symbol_info): Change type of name and
9729 mangled_lang.demangled_name members from char * to const char *.
9730 All uses updated.
9731 (symbol_get_demangled_name, symbol_natural_name): Update.
9732 (symbol_demangled_name, symbol_search_name): Update.
9733 * symtab.c (symbol_get_demangled_name): Change result type
9734 from char * to const char *. All callers updated.
9735 (symbol_natural_name, symbol_demangled_name): Ditto.
9736 (symbol_search_name): Ditto.
9737 (completion_list_add_name): Change type of symname,sym_text,
9738 text,word parameters from char * to const char *.
9739 (completion_list_objc_symbol): Change type of sym_text,
9740 text,word parameters from char * to const char *.
9741 * ada-lang.c (find_struct_field): Change type of name parameter
9742 from char * to const char *.
9743 (encoded_ordered_before): Similarly for N0,N1 parameters.
9744 (old_renaming_is_invisible): Similarly for function_name parameter.
9745 (ada_type_name): Change result type from char * to const char *.
9746 All callers updated.
9747 * ada-lang.h (ada_type_name): Update.
9748 * buildsym.c (hashname): Change type of name parameter
9749 from char * to const char *.
9750 * buildsym.h (hashname): Update.
9751 * dbxread.c (end_psymtab): Change type of include_list parameter
9752 from char ** to const char **.
9753 * dwarf2read.c (determine_prefix): Change result type
9754 from char * to const char *. All callers updated.
9755 * f-lang.c (find_common_for_function): Change type of name, funcname
9756 parameters from char * to const char *.
9757 * f-lang.c (find_common_for_function): Update.
9758 * f-valprint.c (list_all_visible_commons): Change type of funcname
9759 parameters from char * to const char *.
9760 * gdbarch.sh (static_transform_name): Change type of name parameter
9761 and result from char * to const char *.
9762 * gdbarch.c: Regenerate.
9763 * gdbarch.h: Regenerate.
9764 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9765 of name parameter from char * to const char *.
9766 * jv-lang.c (java_primitive_type_from_name): Ditto.
9767 (java_demangled_signature_length): Similarly for signature parameter.
9768 (java_demangled_signature_copy): Ditto.
9769 (java_demangle_type_signature): Ditto.
9770 * jv-lang.h (java_primitive_type_from_name): Update.
9771 (java_demangle_type_signature): Update.
9772 * objc-lang.c (specialcmp): Change type of a,b parameters
9773 from char * to const char *.
9774 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9775 from char * to const char *. All callers updated.
9776 * p-lang.h (is_pascal_string_type): Update.
9777 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9778 of name parameter from char * to const char *.
9779 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9780 * utils.c (fprintf_symbol_filtered): Ditto.
9781 * defs.h (fprintf_symbol_filtered): Update.
9782 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9783 * stabsread.h (end_psymtab): Update.
9784 * stack.c (find_frame_funname): Change type of funname parameter
9785 from char ** to const char **.
9786 * stack.h (find_frame_funname): Update.
9787 * typeprint.c (type_print): Change type of varstring parameter
9788 from char * to const char *.
9789 * value.h (type_print): Update.
9790 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9791 from char * to const char *. All callers updated.
9792 (xcoff_end_psymtab): Change type of include_list parameter
9793 from char ** to const char **. All callers updated.
9794 (swap_sym): Similarly for name parameter. All callers updated.
9795 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9796 Use xstrdup.
9797 (process_coff_symbol): Use xstrdup.
9798 * stabsread.c (stabs_method_name_from_physname): Renamed from
9799 update_method_name_from_physname. Change result type from void
9800 to char *. All callers updated.
9801 (read_member_functions): In has_destructor case, store name in objfile
9802 obstack instead of malloc space. In !has_stub case, fix mem leak.
9803
9804 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9805
9806 * configure: Rebuild.
9807 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9808 LDFLAGS.
9809
9810 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9811
9812 * configure.tgt (rl78-*-elf): New target.
9813 * rl78-tdep.c: New file.
9814
9815 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9816
9817 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9818 and continue the loop. Add QUIT statement.
9819
9820 2012-02-03 Tom Tromey <tromey@redhat.com>
9821
9822 PR gdb/13596:
9823 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9824 bfd_lookup_symbol_from_symtab.
9825 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9826 gdb_bfd_lookup_symbol_from_symtab.
9827
9828 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9829
9830 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9831 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9832 symbol. Add assertion that sym2 is never NULL.
9833
9834 2012-02-02 Doug Evans <dje@google.com>
9835
9836 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9837 "name" parameter to const char ** from char **. All callers updated.
9838 (find_pc_partial_function): Ditto.
9839 (cache_pc_function_name): Change type to const char * from char *.
9840 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9841 (find_pc_partial_function): Update.
9842 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9843 type of "name" parameter to const char * from char *.
9844 All uses updated.
9845 * arch-utils.c (generic_in_solib_return_trampoline): Change
9846 type of "name" parameter to const char * from char *.
9847 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9848 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9849 type of "name" parameter to const char * from char *.
9850 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9851 * gdbarch.c: Regenerate.
9852 * gdbarch.h: Regenerate.
9853 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9854 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9855 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9856 type of "name" parameter to const char * from char *.
9857 * skip.c (skip_function_pc): Ditto.
9858 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9859 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9860 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9861 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9862 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9863 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9864 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9865 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9866 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9867
9868 2012-02-02 Pedro Alves <palves@redhat.com>
9869
9870 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9871 the current inferior has no execution. Make sure the current
9872 remote process matches gdb's current inferior.
9873
9874 2012-02-02 Tom Tromey <tromey@redhat.com>
9875
9876 PR gdb/13405:
9877 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9878 read-only memory.
9879
9880 2012-02-02 Tom Tromey <tromey@redhat.com>
9881
9882 PR gdb/9307:
9883 * symtab.c (lookup_language_this): Set block_found.
9884
9885 2012-02-01 Tom Tromey <tromey@redhat.com>
9886
9887 PR gdb/13431:
9888 * jit.c (struct jit_inferior_data): Rewrite.
9889 (struct jit_objfile_data): New.
9890 (get_jit_objfile_data): New function.
9891 (add_objfile_entry): Update.
9892 (jit_read_descriptor): Return int. Replace descriptor_addr
9893 argument with inf_data. Update. Don't call error.
9894 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9895 descriptor here.
9896 (jit_inferior_init): Don't look up descriptor. Don't call error.
9897 (jit_reset_inferior_data_and_breakpoints)
9898 (jit_inferior_created_observer): Remove.
9899 (jit_inferior_exit_hook): Update.
9900 (jit_executable_changed_observer): Remove.
9901 (jit_event_handler): Update.
9902 (free_objfile_data): Reset inferior data if needed.
9903 (_initialize_jit): Update.
9904
9905 2012-02-01 Tom Tromey <tromey@redhat.com>
9906
9907 * jit.c (bfd_open_from_target_memory): Move higher in file.
9908
9909 2012-02-01 Tristan Gingold <gingold@adacore.com>
9910
9911 * libunwind-frame.c (libunwind_load): Display message if dlopen
9912 failed.
9913
9914 2012-02-01 Gary Benson <gbenson@redhat.com>
9915
9916 * symtab.h (symbol_found_callback_ftype): New typedef.
9917 (iterate_over_symbols): Use the above.
9918 * symtab.c (iterate_over_symbols): Likewise.
9919 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9920 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9921 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9922 (iterate_name_matcher): Document return values.
9923 (collect_one_symbol): Likewise.
9924 (collect_function_symbols): Likewise.
9925 (collect_symbols): Likewise.
9926
9927 2012-02-01 Tom Tromey <tromey@redhat.com>
9928
9929 * ada-lang.c (resolve_subexp): Update.
9930 (ada_lookup_symbol_list): Add 'full_search' argument.
9931 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9932 ada_lookup_symbol_list.
9933 (ada_lookup_encoded_symbol): Update.
9934 (get_var_value): Update.
9935 * ada-exp.y (block_lookup): Update.
9936 (write_var_or_type): Update.
9937 (write_name_assoc): Update.
9938 * ada-lang.h (ada_lookup_symbol_list): Update.
9939
9940 2012-01-31 Tom Tromey <tromey@redhat.com>
9941
9942 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9943 comment.
9944
9945 2012-01-31 Doug Evans <dje@google.com>
9946
9947 * symtab.h: Remove outdated comment.
9948 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9949
9950 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9951
9952 Fix build error in Darwin port.
9953 * i386-darwin-nat.c: Include i386-nat.h.
9954
9955 2012-01-30 Tom Tromey <tromey@redhat.com>
9956
9957 PR breakpoints/13568:
9958 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9959 argument. Check for recursive includes.
9960 (dwarf_decode_macros): Create an include hash.
9961
9962 2012-01-30 Michael Eager <eager@eagercon.com>
9963
9964 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9965 * ppc-linux-tdep.c: Include glibc-tdep.h.
9966 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9967 (powerpc_linux_in_plt_stub): New function.
9968 (powerpc_linux_in_dynsym_resolve_code): New function.
9969 (ppc_skip_trampoline_code): New function.
9970 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9971 Use glibc_skip_solib_resolver.
9972
9973 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9974
9975 Code cleanup: Make 1440 bytes of data segment read-only.
9976 * arch-utils.c (endian_enum): Make it const char *const [].
9977 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9978 Likewise.
9979 * breakpoint.c (always_inserted_enums): Likewise.
9980 * cli/cli-cmds.c (script_ext_enums): Likewise.
9981 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9982 enumlist parameter const char *const *.
9983 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9984 const char *const *.
9985 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9986 parameter const char *const *.
9987 * cris-tdep.c (cris_modes): Make it const char *const [].
9988 * filesystem.c (target_file_system_kinds): Likewise.
9989 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9990 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9991 (can_use_displaced_stepping_enum, scheduler_enums)
9992 (exec_direction_names): Likewise.
9993 * language.c (_initialize_language): Make the type_or_range_names and
9994 case_sensitive_names variables const char *const [].
9995 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9996 * python/python.c (python_excp_enums): Likewise.
9997 * remote.c (interrupt_sequence_modes): Likewise.
9998 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9999 * serial.c (logbase_enums): Likewise.
10000 * sh-tdep.c (sh_cc_enum): Likewise.
10001 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10002 Likewise.
10003 * symtab.c (multiple_symbols_modes): Likewise.
10004 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10005 Likewise.
10006 * utils.c (internal_problem_modes): Likewise.
10007
10008 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10009
10010 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10011 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10012 result.
10013
10014 2012-01-27 Doug Evans <dje@google.com>
10015
10016 * configure.ac (with_python): Fix absolute path handling for win32.
10017 * configure: Regenerate.
10018
10019 2012-01-26 Doug Evans <dje@google.com>
10020
10021 * symtab.c: Whitespace cleanup, no code changes.
10022
10023 * symtab.c (lookup_symbol_in_language): Improve comment.
10024 (lookup_symbol_aux): Fix comment.
10025
10026 * psymtab.c (add_psymbol_to_list): Result is now "void".
10027 * psympriv.h (add_psymbol_to_list): Update.
10028
10029 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10030
10031 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10032
10033 Do not open script filenames twice.
10034 * cli/cli-cmds.c (source_script_from_stream): Pass to
10035 source_python_script also STREAM.
10036 * python/py-auto-load.c (source_section_scripts): Pass to
10037 source_python_script_for_objfile also STREAM.
10038 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10039 also INPUT.
10040 * python/python-internal.h (source_python_script_for_objfile): New
10041 parameter file, rename parameter file to filename.
10042 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10043 instead if !_WIN32. Update the function comment.
10044 (source_python_script, source_python_script_for_objfile)
10045 (source_python_script): New parameter file, rename parameter file to
10046 filename. Pass FILENAME to python_run_simple_file.
10047 * python/python.h (source_python_script): New parameter file, rename
10048 parameter file to filename.
10049
10050 2012-01-26 Pedro Alves <palves@redhat.com>
10051
10052 * corelow.c (core_has_fake_pid): Delete.
10053 (core_close): Delete references to `core_has_fake_pid'.
10054 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10055 (core_open): Delete references to `core_has_fake_pid'.
10056 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10057 the removed global.
10058
10059 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10060
10061 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10062 Remove language parameter from name_matcher. Adjust the comment.
10063 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10064 Remove language parameter.
10065 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10066 * linespec.c (iterate_name_matcher): Likewise.
10067 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10068 name_matcher. Adjust call accordingly.
10069 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10070 (maintenance_check_symtabs): Adjust type of parameter "fun".
10071 * psymtab.h (maintenance_check_symtabs): Likewise.
10072
10073 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10074
10075 * language.h (symbol_name_match_p_ftype): New typedef.
10076 (struct language_defn): Replace field la_symbol_name_compare
10077 by la_get_symbol_name_match_p.
10078 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10079 (ada_language_defn): Use it.
10080 * linespec.c (struct symbol_matcher_data): New type.
10081 (iterate_name_matcher): Rewrite.
10082 (iterate_over_all_matching_symtabs): Pass a pointer to
10083 a symbol_matcher_data struct to expand_symtabs_matching
10084 instead of just the lookup name.
10085 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10086 opencl-lang.c, p-lang.c, language.c: Delete field
10087 la_symbol_name_compare, and replace by NULL for new field
10088 la_get_symbol_name_match_p.
10089 * symfile.h (struct quick_symbol_functions): Update comment.
10090
10091 2012-01-25 Tom Tromey <tromey@redhat.com>
10092
10093 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10094 dereferencing.
10095
10096 2012-01-24 Tom Tromey <tromey@redhat.com>
10097
10098 PR symtab/12406:
10099 * solib.c (update_solib_list): Update the program space's
10100 added_solibs and deleted_solibs fields.
10101 * progspace.h (struct program_space) <added_solibs,
10102 deleted_solibs>: New fields.
10103 (clear_program_space_solib_cache): Declare.
10104 * progspace.c (release_program_space): Call
10105 clear_program_space_solib_cache.
10106 (clear_program_space_solib_cache): New function.
10107 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10108 bpstat_stop_status. Use handle_solib_event.
10109 * breakpoint.c: Include gdb_regex.h.
10110 (print_solib_event): New function.
10111 (bpstat_print): Use print_solib_event.
10112 (bpstat_stop_status): Add special case for bp_shlib_event.
10113 (handle_solib_event): New function.
10114 (bpstat_what): Use handle_solib_event.
10115 (struct solib_catchpoint): New.
10116 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10117 (breakpoint_hit_catch_solib, check_status_catch_solib)
10118 (print_it_catch_solib, print_one_catch_solib)
10119 (print_mention_catch_solib, print_recreate_catch_solib): New
10120 functions.
10121 (catch_solib_breakpoint_ops): New global.
10122 (catch_load_or_unload, catch_load_command_1)
10123 (catch_unload_command_1): New functions.
10124 (internal_bkpt_check_status): Add special case for
10125 bp_shlib_event.
10126 (internal_bkpt_print_it): Use print_solib_event.
10127 (initialize_breakpoint_ops): Initialize
10128 catch_solib_breakpoint_ops.
10129 (_initialize_breakpoint): Register "catch load" and "catch
10130 unload".
10131 * breakpoint.h (handle_solib_event): Declare.
10132 * NEWS: Add entry for "catch load" and "catch unload".
10133
10134 2012-01-24 Tom Tromey <tromey@redhat.com>
10135
10136 * ada-lang.c: Include gdb_vecs.h.
10137 * charset.c: Include gdb_vecs.h.
10138 * tracepoint.h: Include gdb_vecs.h.
10139 * gdb_vecs.h: New file.
10140
10141 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10142
10143 * breakpoint.c (breakpoint_hit_catch_fork)
10144 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10145 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10146 * infrun.c (inferior_has_forked, inferior_has_vforked)
10147 (inferior_has_execd, inferior_has_called_syscall): Delete.
10148 (handle_syscall_event): Get syscall_number from the execution
10149 control state's wait status.
10150 (wait_for_inferior): Don't clear syscall_number.
10151
10152 2012-01-24 Pedro Alves <palves@redhat.com>
10153
10154 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10155 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10156 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10157 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10158 `ws' parameter.
10159 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10160 false for events other than TARGET_SIGNAL_TRAP.
10161 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10162 Add `ws' parameter.
10163 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10164 events other than TARGET_SIGNAL_TRAP.
10165 (tracepoint_breakpoint_hit): Add `ws' parameter.
10166 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10167 parameter.
10168 (bpstat_stop_status): Same.
10169 (pc_at_non_inline_function): Same.
10170 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10171 to pass the current event's waitstatus to bpstat_stop_status
10172 and pc_at_non_inline_function.
10173
10174 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10175
10176 Code cleanup.
10177 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10178 Update the function comment for it.
10179 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10180 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10181 for STREAM.
10182
10183 2012-01-24 Pedro Alves <palves@redhat.com>
10184
10185 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10186 outside `bs->stop' block.
10187 (bpstat_what): Rework bp_shlib_event handling.
10188 (internal_bkpt_check_status): If the breakpoint is a
10189 bp_shlib_event, then set bs->stop and bs->print if
10190 stop_on_solib_events is set.
10191
10192 2012-01-24 Gary Benson <gbenson@redhat.com>
10193
10194 Delete #if 0'd out code.
10195 * stack.c (print_frame_label_vars): Remove.
10196 (catch_info): Likewise.
10197 (_initialize_stack): Remove "info catch" command.
10198 * NEWS: Mention the above.
10199
10200 2012-01-24 Pedro Alves <palves@redhat.com>
10201
10202 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10203 it.
10204 (remote_notice_new_inferior): If the remote end doesn't support
10205 the multiprocess extensions, then the PID is fake.
10206 (add_current_inferior_and_thread): New.
10207 (remote_start_remote): Use it.
10208 (extended_remote_attach_1): Adjust.
10209 (extended_remote_create_inferior_1): Use
10210 add_current_inferior_and_thread.
10211
10212 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10213
10214 Fix watchpoints to be specific for each inferior.
10215 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10216 current_program_space.
10217 * i386-nat.c (i386_inferior_data_cleanup): New.
10218 (i386_inferior_data_get): Replace variable inf_data_local by an
10219 inferior_data call.
10220 (i386_use_watchpoints): Initialize i386_inferior_data.
10221 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10222 specific iterate_over_lwps.
10223
10224 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10225
10226 Fix watchpoints across inferior fork.
10227 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10228 comment for linux_nat_iterate_watchpoint_lwps.
10229 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10230 linux_nat_iterate_watchpoint_lwps.
10231 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10232 * i386-linux-nat.c (update_debug_registers_callback): Update the
10233 comment for linux_nat_iterate_watchpoint_lwps.
10234 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10235 linux_nat_iterate_watchpoint_lwps.
10236 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10237 * i386-nat.c: Include inferior.h.
10238 (dr_mirror): Remove.
10239 (i386_inferior_data, struct i386_inferior_data)
10240 (i386_inferior_data_get): New.
10241 (i386_debug_reg_state): Use i386_inferior_data_get.
10242 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10243 (i386_insert_watchpoint, i386_remove_watchpoint)
10244 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10245 (i386_remove_hw_breakpoint): New variable state, use
10246 i386_debug_reg_state instead of DR_MIRROR.
10247 * linux-nat.c (delete_lwp): New declaration.
10248 (num_lwps): Move here from downwards.
10249 (delete_lwp_cleanup): New.
10250 (linux_child_follow_fork): Create new child_lp, call
10251 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10252 PTRACE_DETACH.
10253 (num_lwps): Move upwards.
10254 (linux_nat_iterate_watchpoint_lwps): New.
10255 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10256 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10257
10258 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10259
10260 GDB 7.4 released.
10261
10262 2012-01-23 Pedro Alves <palves@redhat.com>
10263
10264 * top.c (caution): Rename to ...
10265 (confirm): ... this.
10266 (show_caution): Rename to ...
10267 (show_confirm): ... this.
10268 (quit_cover): Adjust.
10269 (init_main): Adjust.
10270 * top.h (caution): Rename to ...
10271 (confirm): ... this.
10272 * utils.c (internal_vproblem, defaulted_query): Adjust.
10273
10274 2012-01-23 Pedro Alves <palves@redhat.com>
10275
10276 * top.c (caution): Update comment.
10277 (execute_command): Don't consider the current value of `caution'.
10278
10279 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10280
10281 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10282
10283 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10284
10285 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10286 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10287 * target.c (target_fileio_pwrite): Remove buffer address from
10288 debug output.
10289 (target_fileio_pread): Likewise.
10290
10291 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10292
10293 * NEWS: Document remote "info proc" and "generate-core-file".
10294
10295 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10296
10297 * gdbarch.sh (find_memory_regions): New callback.
10298 * gdbarch.c, gdbarch.h: Regenerate.
10299
10300 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10301 callback before falling back to target method.
10302
10303 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10304 (linux_target_install_ops): No longer install it.
10305
10306 * linux-tdep.c (linux_find_memory_regions): New function.
10307 (linux_init_abi): Install it.
10308
10309 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10310
10311 * gdbarch.sh (make_corefile_notes): New architecture callback.
10312 * gdbarch.c: Regenerate.
10313 * gdbarch.h: Likewise.
10314
10315 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10316 before target_make_corefile_notes. If NULL is returned, the
10317 target does not support core file generation.
10318
10319 * linux-nat.c: Include "linux-tdep.h".
10320 (find_signalled_thread, find_stop_signal): Remove.
10321 (linux_nat_do_thread_registers): Likewise.
10322 (struct linux_nat_corefile_thread_data): Likewise.
10323 (linux_nat_corefile_thread_callback): Likewise.
10324 (iterate_over_spus): Likewise.
10325 (struct linux_spu_corefile_data): Likewise.
10326 (linux_spu_corefile_callback): Likewise.
10327 (linux_spu_make_corefile_notes): Likewise.
10328 (linux_nat_collect_thread_registers): New function.
10329 (linux_nat_make_corefile_notes): Replace contents by call to
10330 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10331 as native-only callback.
10332
10333 * linux-tdep.h: Include "bfd.h".
10334 (struct regcache): Add forward declaration.
10335 (linux_collect_thread_registers_ftype): New typedef.
10336 (linux_make_corefile_notes): Add prototype.
10337 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10338 "regset.h", and "elf-bfd.h".
10339 (find_signalled_thread, find_stop_signal): New functions.
10340 (linux_spu_make_corefile_notes): Likewise.
10341 (linux_collect_thread_registers): Likewise.
10342 (struct linux_corefile_thread_data): New data structure.
10343 (linux_corefile_thread_callback): New funcion.
10344 (linux_make_corefile_notes): Likewise.
10345 (linux_make_corefile_notes_1): Likewise.
10346 (linux_init_abi): Install it.
10347
10348 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10349
10350 * gdbarch.sh (info_proc): New callback.
10351 * gdbarch.c, gdbarch.h: Regenerate.
10352
10353 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10354 before falling back to the target info_proc callback.
10355
10356 * linux-nat.c: Do not include "cli/cli-utils.h".
10357 (linux_nat_info_proc): Remove.
10358 (linux_target_install_ops): No longer install it.
10359
10360 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10361 (read_mapping): New function.
10362 (linux_info_proc): Likewise.
10363 (linux_init_abi): Install it.
10364
10365 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10366
10367 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10368 * infcmd.c: (info_proc_cmd_1): New function.
10369 (info_proc_cmd): New function, moved here from equivalent routine
10370 orignally in linux-nat.c.
10371 (info_proc_cmd_mappings): Likewise.
10372 (info_proc_cmd_stat): Likewise.
10373 (info_proc_cmd_status): Likewise.
10374 (info_proc_cmd_cwd): Likewise.
10375 (info_proc_cmd_cmdline): Likewise.
10376 (info_proc_cmd_exe): Likewise.
10377 (info_proc_cmd_all): Likewise.
10378 (_initialize_infcmd): Install "info proc" command and subcommands.
10379
10380 * target.h (struct target_ops): Add to_info_proc.
10381 (target_info_proc): Add prototype.
10382 * target.c (target_info_proc): New function.
10383
10384 * procfs.c (procfs_info_proc): Add prototype.
10385 (info_proc_cmd): Rename into ...
10386 (procfs_info_proc): ... this. Update argument types as appropriate
10387 for a to_info_proc implementation. Handle "what" argument.
10388 (procfs_target): Install procfs_info_proc.
10389 (_initialize_procfs): No longer install "info proc" command.
10390
10391 * linux-nat.c: (enum info_proc_what): Remove.
10392 (linux_nat_info_proc_cmd_1): Rename into ...
10393 (linux_nat_info_proc): ... this. Update argument types as appropriate
10394 for a to_info_proc implementation.
10395 (linux_nat_info_proc_cmd): Remove.
10396 (linux_nat_info_proc_cmd_mappings): Likewise.
10397 (linux_nat_info_proc_cmd_stat): Likewise.
10398 (linux_nat_info_proc_cmd_status): Likewise.
10399 (linux_nat_info_proc_cmd_cwd): Likewise.
10400 (linux_nat_info_proc_cmd_cmdline): Likewise.
10401 (linux_nat_info_proc_cmd_exe): Likewise.
10402 (linux_nat_info_proc_cmd_all): Likewise.
10403 (linux_target_install_ops): Install linux_nat_info_proc.
10404 (_initialize_linux_nat): No longer install "info proc" command
10405 and subcommands.
10406
10407 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10408
10409 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10410 * config.in, configure: Regenerate.
10411
10412 * target.h (struct target_ops): Add to_fileio_readlink.
10413 (target_fileio_readlink): Add prototype.
10414 * target.c (target_fileio_readlink): New function.
10415
10416 * inf-child.c: Conditionally include <sys/param.h>.
10417 (inf_child_fileio_readlink): New function.
10418 (inf_child_target): Install it.
10419
10420 * remote.c (PACKET_vFile_readlink): New enum value.
10421 (remote_hostio_readlink): New function.
10422 (init_remote_ops): Install it.
10423 (_initialize_remote): Handle vFile:readlink packet type.
10424
10425 2012-01-20 Pedro Alves <palves@redhat.com>
10426 Ulrich Weigand <ulrich.weigand@linaro.org>
10427
10428 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10429 * config.in, configure: Regenerate.
10430
10431 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10432 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10433 (target_fileio_open): Add prototype.
10434 (target_fileio_pwrite): Likewise.
10435 (target_fileio_pread): Likewise.
10436 (target_fileio_close): Likewise.
10437 (target_fileio_unlink): Likewise.
10438 (target_fileio_read_alloc): Likewise.
10439 (target_fileio_read_stralloc): Likewise.
10440
10441 * target.c: Include "gdb/fileio.h".
10442 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10443 (default_fileio_target): New function.
10444 (target_fileio_open): Likewise.
10445 (target_fileio_pwrite): Likewise.
10446 (target_fileio_pread): Likewise.
10447 (target_fileio_close): Likewise.
10448 (target_fileio_unlink): Likewise.
10449 (target_fileio_close_cleanup): Likewise.
10450 (target_fileio_read_alloc_1): Likewise.
10451 (target_fileio_read_alloc): Likewise.
10452 (target_fileio_read_stralloc): Likewise.
10453
10454 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10455 <fcntl.h>, and <unistd.h>.
10456 (inf_child_fileio_open_flags_to_host): New function.
10457 (inf_child_errno_to_fileio_error): Likewise.
10458 (inf_child_fileio_open): Likewise.
10459 (inf_child_fileio_pwrite): Likewise.
10460 (inf_child_fileio_pread): Likewise.
10461 (inf_child_fileio_close): Likewise.
10462 (inf_child_fileio_unlink): Likewise.
10463 (inf_child_target): Install to_fileio routines.
10464
10465 * remote.c (init_remote_ops): Install to_fileio routines.
10466
10467 2012-01-20 Pedro Alves <palves@redhat.com>
10468 Ulrich Weigand <ulrich.weigand@linaro.org>
10469
10470 * remote.c (remote_multi_process_p): Only check for multi-process
10471 protocol feature, do not check for extended protocol.
10472 (remote_supports_multi_process): Check for extended protocol here.
10473 (set_general_process): Likewise.
10474 (extended_remote_kill): Likewise.
10475 (remote_pid_to_str): Likewise.
10476 (remote_query_supported): Always query multiprocess mode.
10477
10478 2012-01-20 Pedro Alves <palves@redhat.com>
10479 Ulrich Weigand <ulrich.weigand@linaro.org>
10480
10481 * inferior.h (struct inferior): Add fake_pid_p.
10482 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10483 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10484 magic_null_ptid since the remote side doesn't provide a real PID.
10485
10486 2012-01-19 Tom Tromey <tromey@redhat.com>
10487
10488 * NEWS: Combine the two Python sections.
10489
10490 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10491
10492 * target.h (target_close): Update comment on the target's unpush state.
10493
10494 2012-01-19 Pedro Alves <palves@redhat.com>
10495
10496 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10497 linux_nat_async directly instead of going through the target
10498 vector.
10499 * target.c (unpush_target): Close target after unpushing it, not
10500 before.
10501
10502 2012-01-19 Gary Benson <gbenson@redhat.com>
10503
10504 * mdebugread.c (sort_blocks): Replace integer constants with ones
10505 derived from FIRST_LOCAL_BLOCK.
10506
10507 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10508 Jan Kratochvil <jan.kratochvil@redhat.com>
10509
10510 PR gdb/9538
10511 * symfile.c (find_separate_debug_file): New function.
10512 (terminate_after_last_dir_separator): Likewise.
10513 (find_separate_debug_file_by_debuglink): Also try realpath.
10514 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10515 * configure: Regenerate.
10516 * config.in: Regenerate.
10517
10518 2012-01-18 Doug Evans <dje@google.com>
10519
10520 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10521 (main.o): Remove rule.
10522 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10523 (--with-sysroot): Rewrite.
10524 * configure: Regenerate.
10525 * config.in: Regenerate.
10526
10527 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10528
10529 * parse.c (initialize_expout): New function.
10530 (reallocate_expout): Likewise.
10531 (parse_exp_in_context): Use `initialize_expout' and
10532 `reallocate_expout' when appropriate.
10533
10534 2012-01-18 Pedro Alves <palves@redhat.com>
10535
10536 * record.c (struct record_breakpoint, record_breakpoint_p)
10537 (record_breakpoints): New.
10538 (record_insert_breakpoint, record_remove_breakpoint): Manage
10539 record breakpoints list. Only remove breakpoints from the
10540 inferior if they had been inserted there in the first place.
10541
10542 2012-01-17 Doug Evans <dje@google.com>
10543
10544 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10545 if we know we don't have a file name to look for.
10546
10547 2012-01-17 Pedro Alves <palves@redhat.com>
10548
10549 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10550 the frame's stop reason is UNWIND_UNAVAILABLE.
10551
10552 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10553
10554 Fix compilation error.
10555 * m2-exp.y (yyerror): Use ANSI C prototype.
10556
10557 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10558
10559 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10560 (growbuf_by_size): Likewise.
10561 (yyerror): Likewise.
10562 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10563 (modblock): Remove variable (was #if 0'ed).
10564 (parse_number): Convert prototype from K&R to ANSI C.
10565 (yyerror): Likewise.
10566 * objc-exp.y (parse_number): Likewise.
10567 (yyerror): Likewise.
10568 (yylex): Remove #if 0'ed code.
10569 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10570 (yyerror): Likewise.
10571
10572 2012-01-16 Tom Tromey <tromey@redhat.com>
10573
10574 * NEWS: Add item.
10575 * symtab.h (compare_filenames_for_search): Declare.
10576 * symtab.c (compare_filenames_for_search): New function.
10577 (iterate_over_some_symtabs): Use it.
10578 * symfile.h (struct quick_symbol_functions)
10579 <map_symtabs_matching_filename>: Change spec.
10580 * psymtab.c (partial_map_symtabs_matching_filename): Use
10581 compare_filenames_for_search. Update for new spec.
10582 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10583 compare_filenames_for_search. Update for new spec.
10584 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10585
10586 2012-01-16 Tom Tromey <tromey@redhat.com>
10587
10588 PR python/13281:
10589 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10590 (struct main_type) <flag_flag_enum>: New field.
10591 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10592 * NEWS: Add entries.
10593 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10594 enums.
10595 * python/lib/gdb/printing.py (_EnumInstance): New class.
10596 (FlagEnumerationPrinter): Likewise.
10597
10598 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10599
10600 * breakpoint.c (create_sals_from_address_default): New function.
10601 (create_breakpoints_sal_default): Likewise.
10602 (decode_linespec_default): Likewise.
10603 (is_marker_spec): Removed.
10604 (strace_marker_p): New function.
10605 (init_breakpoint_sal): Using `strace_marker_p' instead of
10606 `is_marker_spec'.
10607 (create_breakpoint): Call method `create_sals_from_address' from
10608 breakpoint_ops, replacing code that created SALs conditionally
10609 on the type of the breakpoint. Call method `create_breakpoints_sal',
10610 replacing code that created breakpoints conditionally on the type
10611 wanted.
10612 (base_breakpoint_create_sals_from_address): New function.
10613 (base_breakpoint_create_breakpoints_sal): Likewise.
10614 (base_breakpoint_decode_linespec): Likewise.
10615 (base_breakpoint_ops): Add methods
10616 `base_breakpoint_create_sals_from_address',
10617 `base_breakpoint_create_breakpoints_sal' and
10618 `base_breakpoint_decode_linespec'.
10619 (bkpt_create_sals_from_address): New function.
10620 (bkpt_create_breakpoints_sal): Likewise.
10621 (bkpt_decode_linespec): Likewise.
10622 (tracepoint_create_sals_from_address): Likewise.
10623 (tracepoint_create_breakpoints_sal): Likewise.
10624 (tracepoint_decode_linespec): Likewise.
10625 (strace_marker_create_sals_from_address): Likewise.
10626 (strace_marker_create_breakpoints_sal): Likewise.
10627 (strace_marker_decode_linespec): Likewise.
10628 (strace_marker_breakpoint_ops): New variable.
10629 (addr_string_to_sals): Remove `marker_spec'. Call method
10630 `decode_linespec' from breakpoint_ops, replacing code that decoded
10631 an address string into a SAL. Use `strace_marker_p' instead of
10632 `marker_spec'.
10633 (strace_command): Decide whether we are dealing with a static
10634 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10635 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10636 * breakpoint.h (linespec_result, linespec_sals): New forward
10637 declarations.
10638 (breakpoint_ops) <create_sals_from_address>,
10639 <create_breakpoints_sal>, <decode_linespec>: New methods.
10640
10641 2012-01-14 Doug Evans <dje@google.com>
10642
10643 * NEWS: Update text for "maint set python print-stack".
10644 It is deprecated in gdb 7.4 and deleted in 7.5.
10645
10646 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10647
10648 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10649 including curses.h.
10650
10651 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10652
10653 * configure: Regenerate.
10654 * config.in: Regenerate.
10655
10656 2012-01-12 Keith Seitz <keiths@redhat.com>
10657
10658 PR mi/10586
10659 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10660 (ANONYMOUS_UNION_NAME): Define.
10661 (is_path_expr_parent): New function.
10662 (get_path_expr_parent): New function.
10663 (is_anonymous_child): New function.
10664 (create_child_with_value): If the child is anonymous and without
10665 a name, assign an object name to it.
10666 (c_describe_child): Use get_path_expr_parent to determine
10667 the parent expression.
10668 If there field represents an anonymous struct or union and
10669 has no name, set an appropriate display name and expression.
10670 (cplus_describe_child): Likewise.
10671
10672 2012-01-12 Pedro Alves <palves@redhat.com>
10673
10674 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10675 available when %ebp is found to be zero (outermost).
10676
10677 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10678
10679 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10680 an internal gdb_static_assert.
10681 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10682
10683 2012-01-11 Tom Tromey <tromey@redhat.com>
10684
10685 PR gdb/9598:
10686 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10687 catch" and "catch throw".
10688
10689 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10690
10691 * blockframe.c (block_innermost_frame): Start search from selected
10692 frame, if present, or otherwise the current frame.
10693
10694 * c-exp.y (variable): Update innermost_block for
10695 'block COLONCOLON NAME' clause.
10696 * m2-exp.y (variable): Ditto.
10697 * objc-exp.y (variable): Ditto.
10698
10699 2012-01-10 Tom Tromey <tromey@redhat.com>
10700
10701 PR python/13199:
10702 * python/python.c (finish_python_initialization): Set sys.argv.
10703
10704 2012-01-10 Doug Evans <dje@google.com>
10705
10706 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10707 "want_line_info". All callers updated.
10708 (dwarf_decode_lines_1): New function.
10709 (handle_DW_AT_stmt_list): Add function comment.
10710 New arg "want_line_info". All callers updated.
10711 (read_file_scope,read_type_unit_scope): Move comment from
10712 handle_DW_AT_stmt_list to here.
10713
10714 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10715
10716 Fix regression after libiberty/ update for GCC PR 6057 and others.
10717 * c-exp.y (operator) <OPERATOR DELETE>
10718 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10719 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10720 (make_builtin_type, make_name): New variable i, add gdb_assert.
10721 (operator) <OPERATOR NEW>: Update ARGS to 3.
10722 (operator) <OPERATOR DELETE>: Add trailing space.
10723 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10724 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10725 * cp-support.c (cp_canonicalize_string): Check NULL from
10726 cp_comp_to_string, call warning and return.
10727
10728 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10729
10730 Fix duplicate .o files after omitting libbfd.a.
10731 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10732 (SFILES): Add corelow.c.
10733 (COMMON_OBS): Add corelow.o.
10734 (ALLDEPFILES): Remove corelow.c.
10735 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10736 * config/alpha/alpha-osf3.mh: Likewise.
10737 * config/alpha/fbsd.mh: Likewise.
10738 * config/arm/nbsdaout.mh: Likewise.
10739 * config/arm/nbsdelf.mh: Likewise.
10740 * config/i386/i386gnu.mh: Likewise.
10741 * config/ia64/hpux.mh: Likewise.
10742 * config/ia64/linux.mh: Likewise.
10743 * config/m32r/linux.mh: Likewise.
10744 * config/m68k/linux.mh: Likewise.
10745 * config/mips/irix5.mh: Likewise.
10746 * config/mips/irix6.mh: Likewise.
10747 * config/pa/hpux.mh: Likewise.
10748 * config/pa/linux.mh: Likewise.
10749 * config/powerpc/aix.mh: Likewise.
10750 * config/sparc/linux.mh: Likewise.
10751 * config/sparc/linux64.mh: Likewise.
10752 * config/sparc/sol2.mh: Likewise.
10753 * config/vax/vax.mh: Likewise.
10754 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10755 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10756 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10757 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10758 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10759 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10760 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10761 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10762 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10763 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10764 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10765 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10766 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10767 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10768 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10769 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10770 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10771 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10772 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10773 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10774 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10775 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10776 corelow.o from gdb_target_obs.
10777 * corefile.c (core_target): Update the comment on NULL value.
10778 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10779 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10780 MATCHES. Drop YUMMY set on NULL.
10781 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10782 reclaim CORE_DATA if it is already NULL.
10783
10784 2012-01-09 Doug Evans <dje@google.com>
10785
10786 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10787 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10788
10789 2012-01-09 Keith Seitz <keiths@redhat.com>
10790
10791 * breakpoint.c (wrapper.h): Don't include.
10792
10793 2012-01-09 Keith Seitz <keiths@redhat.com>
10794
10795 * Makefile.in (SFILES): Remove wrapper.c.
10796 (HFILES_NO_SRCDIR): Remove wrapper.h.
10797 (COMMON_OBS): Remove wrapper.o.
10798 * cli/cli-interp.c: Don't inlude wrapper.h.
10799 * corelow.c: Likewise.
10800 (core_open): Replace gdb_target_find_new_threads with
10801 TRY_CATCH around target_find_new_threads.
10802 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10803 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10804 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10805 evaluate_expression.
10806 (varobj_set_value): Likewise for evaluate_expression and
10807 value_assign.
10808 (install_new_variable): Likewise for value_fetch_lazy.
10809 (adjust_value_for_child_access): Likewise for value_ind.
10810 (c_describe_child): Likewise for value_subscript and
10811 value_ind.
10812 (c_value_of_root): Likewise for evaluate_expression.
10813 * wrapper.c: Remove.
10814 * wrapper.h: Remove.
10815
10816 2012-01-09 Doug Evans <dje@google.com>
10817
10818 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10819 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10820 "abfd" args with "section". All callers updated.
10821 Error checking code moved ...
10822 (error_check_comp_unit_head): ... here. New function.
10823 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10824 Delete arg "abfd". New arg "type_offset". All callers updated.
10825 (create_debug_types_hash_table): Simplify by using
10826 read_and_check_type_unit_head.
10827
10828 * parser-defs.h (namecopy): Delete.
10829 * parse.c (namecopy, namecopy_size): Move into copy_name.
10830
10831 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10832
10833 Partially fix duplicate .o files after omitting libbfd.a.
10834 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10835 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10836 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10837 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10838 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10839 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10840 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10841
10842 2012-01-09 Pedro Alves <palves@redhat.com>
10843
10844 * MAINTAINERS: Update my email address.
10845
10846 2012-01-08 Doug Evans <dje@google.com>
10847
10848 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10849 n_type_units. Rename type_comp_units to all_type_units.
10850 All uses updated.
10851 (add_signatured_type_cu_to_table): Renamed from
10852 add_signatured_type_cu_to_list. All callers updated.
10853
10854 * gdbtypes.h (struct cplus_struct_type): Delete member
10855 nfn_fields_total. All uses removed.
10856
10857 2012-01-06 Doug Evans <dje@google.com>
10858
10859 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10860 to top of file.
10861 (dwarf2_find_comp_unit): Delete.
10862 (process_psymtab_comp_unit): Make result "void".
10863 Delete args buffer, info_ptr, buffer_size, and replace with
10864 "section". All callers updated.
10865 (dwarf2_build_psymtabs_hard): Simplify.
10866
10867 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10868 Thiago Jung Bauermann <bauerman@br.ibm.com>
10869
10870 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10871 before `struct gdb_exception'.
10872 * breakpoint.c (update_global_location_list_nothrow)
10873 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10874 * cp-abi.c (value_rtti_type): Likewise.
10875 * cp-support.c (cp_validate_operator): Likewise.
10876 * infrun.c (insert_exception_resume_breakpoint)
10877 (check_exception_resume, keep_going): Likewise.
10878 * mi-interp.c (mi_breakpoint_created)
10879 (mi_breakpoint_modified): Likewise.
10880 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10881 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10882 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10883
10884 2012-01-05 Doug Evans <dje@google.com>
10885
10886 * dwarf2read.c (statement_prologue): Delete, unused.
10887
10888 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10889 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10890
10891 * dwarf2read.c (comp_unit_header): Delete, unused.
10892
10893 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10894
10895 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10896 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10897
10898 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10899
10900 * infrun.c (normal_stop): Don't skip calling the normal_stop
10901 observers if the thread was doing a multi-step, but stopped for
10902 some reason other than stepping.
10903
10904 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10905
10906 * cli/cli-decode.h: Add comments.
10907 (CMD_LIST_AMBIGUOUS): Moved to command.h
10908 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10909 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10910 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10911 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10912 (add_com, add_com_alias, add_info, add_info_alias)
10913 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10914 declarations.
10915 * command.h: Add and adjust comments.
10916 (CMD_LIST_AMBIGUOUS): Moved here.
10917 (help_cmd, help_cmd_list): Delete declarations.
10918
10919 2012-01-04 Doug Evans <dje@google.com>
10920
10921 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10922 All callers updated.
10923 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10924 Replace all arguments with "per_cu". All callers updated.
10925
10926 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10927
10928 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10929 New arg "per_cu". All callers updated.
10930
10931 Delete #if 0'd out code.
10932 * language.c (binop_result_type): Delete.
10933 (simple_type, ordered_type, same_type, integral_type): Delete.
10934 (numeric_type, character_type, string_type, boolean_type): Delete.
10935 (float_type, structured_type): Delete.
10936 * language.h: Update.
10937
10938 2012-01-04 Tom Tromey <tromey@redhat.com>
10939
10940 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10941
10942 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10943
10944 * corefile.c (close_exec_file): Delete.
10945 (reopen_exec_file): Remove commented out code that seems related
10946 to close_exec_file, which is being deleted here.
10947 * inferior.h (close_exec_file): Delete.
10948 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10949
10950 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10951
10952 * ada-lang.c: #include "cli/cli-utils.h".
10953 (get_selections): Use skip_spaces.
10954 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10955 (catch_ada_exception_command_split): Use skip_spaces.
10956 (ada_decode_assert_location): Likewise.
10957
10958 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10959
10960 * linespec.c (decode_line_internal): Check for C++ or Java
10961 compound constructs only if the current language is C, C++
10962 or Java.
10963
10964 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10965
10966 Revert:
10967 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10968 Joel Brobecker <brobecker@adacore.com>
10969 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10970 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10971 3 times.
10972 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10973 fall through into AT_ENTRY_POINT.
10974 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10975 DUMMY_ADDR with it.
10976 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10977 PPC_INSN_SIZE skip to 3 times.
10978
10979 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10980
10981 * linespec.c (add_minsym): Preserve function descriptors.
10982
10983 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10984
10985 * breakpoint.c (all_locations_are_pending): Consider locations
10986 in program spaces executing during startup pending as well.
10987
10988 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10989
10990 Copyright year update in most files of the GDB Project.
10991
10992 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10993
10994 * copyright.sh: Delete.
10995 * copyright.py: Rewrite.
10996
10997 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10998
10999 * gnulib/extra/update-copyright: New file, imported from gnulib.
11000
11001 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11002
11003 * README (Copyright and License Notices): New section.
11004
11005 2012-01-03 Tom Tromey <tromey@redhat.com>
11006
11007 PR python/12533:
11008 * python/py-value.c (valpy_dereference, valpy_get_address
11009 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11010 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11011 (valpy_absolute, valpy_richcompare): Free intermediate values.
11012
11013 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11014
11015 * ada-lang.c: Reformat the copyright notice.
11016
11017 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11018
11019 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11020 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11021 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11022 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11023 Revert this part of:
11024 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11025 Build gdb directly from *.o files not using libgdb.a.
11026 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11027
11028 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11029
11030 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11031 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11032 Reformat the copyright header.
11033
11034 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11035
11036 Revert this part of:
11037 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11038 Remove the gdbtui binary.
11039 * gdb.c (main): Remove args.interpreter_p initialization.
11040 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11041 * main.h (struct captured_main_args): Remove interpreter_p.
11042
11043 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11044
11045 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11046
11047 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11048
11049 * top.c (print_gdb_version): Update copyright year.
11050
11051 2012-01-02 Yao Qi <yao@codesourcery.com>
11052
11053 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11054
11055 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11056 Joel Brobecker <brobecker@adacore.com>
11057
11058 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11059 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11060 3 times.
11061 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11062 fall through into AT_ENTRY_POINT.
11063 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11064 DUMMY_ADDR with it.
11065 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11066 PPC_INSN_SIZE skip to 3 times.
11067
11068 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11071 the return value.
11072 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11073
11074 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11075
11076 Build gdb directly from *.o files not using libgdb.a.
11077 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11078 (COMMON_OBS): Remove solib-target.o.
11079 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11080 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11081 (LIBGDB_OBS, libgdb.a): Move it above.
11082 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11083 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11084 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11085 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11086 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11087 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11088 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11089 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11090 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11091 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11092 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11093 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11094 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11095 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11096 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11097 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11098 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11099 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11100 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11101 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11102 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11103 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11104 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11105 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11106 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11107 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11108 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11109
11110 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 Remove the gdbtui binary.
11113 * .gitignore (/gdbtui): Remove.
11114 * Makefile.in (TUI): Remove.
11115 (SUBDIR_TUI_OBS): Remove tui-main.o.
11116 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11117 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11118 (tui-main.o): Remove.
11119 (all_object_files): Remove tui-main.o.
11120 * NEWS: New note for the gdbtui removal.
11121 * configure: Rebuilt.
11122 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11123 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11124 CONFIG_UNINSTALL respectively.
11125 * gdb.c (main): Remove args.interpreter_p initialization.
11126 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11127 * main.h (struct captured_main_args): Remove interpreter_p.
11128 * tui/tui-main.c: Remove.
11129
11130 2012-01-01 Doug Evans <dje@google.com>
11131
11132 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11133 (dwarf2_physname, read_import_statement): Ditto.
11134 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11135 (process_structure_scope read_subroutine_type): Ditto.
11136 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11137 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11138 (dwarf2_fetch_die_location_block): Ditto.
11139 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11140
11141 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11142 All callers updated.
11143 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11144 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11145 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11146
11147 * dwarf2read.c (load_cu): Move assert to more useful location.
11148
11149 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11150 All callers updated.
11151
11152 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11153 (dwarf2_elf_names): Minor reformat.
11154 (dwarf2_per_cu_data): Tweak comment.
11155 (dwarf2_read_section): Fix comment.
11156 (create_all_comp_units): Fix comment.
11157 (load_full_comp_unit): Fix comment.
11158 (process_full_comp_unit): Fix comment.
11159 (read_signatured_type): Fix comment.
11160
11161 For older changes see ChangeLog-2011.
11162 \f
11163 Local Variables:
11164 mode: change-log
11165 left-margin: 8
11166 fill-column: 74
11167 version-control: never
11168 coding: utf-8
11169 End:
This page took 0.317761 seconds and 4 git commands to generate.