50dcfd2a810bbf59222aead4eb3518b0c77152c7
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-02 Pedro Alves <palves@redhat.com>
2
3 * gdb.base/foll-vfork.c: Add copyright header.
4 * gdb.base/vforked-prog.c: Add copyright header.
5
6 2012-11-02 Pedro Alves <palves@redhat.com>
7
8 * gdb.base/foll-vfork.exp
9 (vfork_and_exec_child_follow_through_step): Don't skip on
10 non-HP/UX targets. Expect the next to only step one line on
11 non-HP/UX targets, rather than stopping only after the exec.
12
13 2012-11-02 Pedro Alves <palves@redhat.com>
14
15 Don't hard code line numbers.
16
17 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
18 Expect text from the sources instead of a line number.
19 (vfork_parent_follow_to_bp)
20 (vfork_and_exec_child_follow_to_main_bp)
21 (vfork_and_exec_child_follow_through_step)
22 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
23 Use gdb_get_line_number.
24
25 2012-11-02 Pedro Alves <palves@redhat.com>
26
27 Modernize.
28
29 * gdb.base/foll-vfork.exp: Use standard_testfile and
30 build_executable. Pass descriptive string to untested.
31 (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
32 (vfork_and_exec_child_follow_to_main_bp)
33 (vfork_and_exec_child_follow_through_step)
34 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
35 (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
36 of send_gdb/gdb_expect.
37
38 (kill_child): New procedure.
39 (vfork_and_exec_child_follow_to_main_bp)
40 (vfork_and_exec_child_follow_through_step): Use it.
41
42 2012-11-02 Yao Qi <yao@codesourcery.com>
43
44 * std-operator.def: Remove OP_LABELED.
45 * eval.c: Remove the declaration of 'get_label'.
46 (get_label): Remove.
47 (evaluate_struct_tuple): Remove code handling OP_LABELED.
48 Update comment.
49 Remove local variable 'variantno' and related code.
50 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
51 with 'fieldno'.
52 * expprint.c (print_subexp_standard): Likewise.
53 (dump_subexp_body_standard): Likewise.
54 * parse.c (operator_length_standard): Likewise.
55
56 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
57
58 Incorporate ARI web page generator into GDB sources.
59 * contrib/ari/create-web-ari-in-src.sh: New file.
60 * contrib/ari/gdb_ari.sh: New file.
61 * contrib/ari/gdb_find.sh: New file.
62 * contrib/ari/update-web-ari.sh: New file.
63
64 2012-10-31 Tom Tromey <tromey@redhat.com>
65
66 * gdbarch.c: Rebuild.
67 * gdbarch.sh: Remove references to gdbarch_swap.
68 * corelow.c (core_open): Remove obsolete comment.
69
70 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
71
72 PR cli/14772
73 * c-typeprint.c (c_print_type): Don't print a space for vector
74 types, this is handled within the suffix.
75 (c_type_print_varspec_suffix): Add a space to vector suffix.
76
77 2012-10-26 Pedro Alves <palves@redhat.com>
78
79 * amd64-tdep.c (amd64_relocate_instruction): Use
80 store_unsigned_integer instead of memcpy.
81 * i386-tdep.c (i386_relocate_instruction): Ditto.
82
83 2012-10-26 Pedro Alves <palves@redhat.com>
84
85 * infrun.c (handle_inferior_event): Merge handling of
86 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
87 switch case.
88
89 2012-10-26 Pedro Alves <palves@redhat.com>
90
91 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
92 Remove comment.
93
94 2012-10-26 Pedro Alves <palves@redhat.com>
95
96 * target.c (target_waitstatus_to_string): Handle
97 TARGET_WAITKIND_VFORK_DONE.
98
99 2012-10-26 Pedro Alves <palves@redhat.com>
100
101 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
102 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
103
104 2012-10-24 Tristan Gingold <gingold@adacore.com>
105
106 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
107 Add comments.
108
109 2012-10-24 Joel Brobecker <brobecker@adacore.com>
110
111 * ravenscar-thread.c (ravenscar_wait): Only update the list
112 of threads and inferior_ptid if the inferior is still alive.
113
114 2012-10-24 Joel Brobecker <brobecker@adacore.com>
115
116 * ada-lang.c (is_known_support_routine): Use lbasename when
117 matching the symtab's filename against
118 known_runtime_file_name_patterns.
119
120 2012-10-24 Joel Brobecker <brobecker@adacore.com>
121
122 * ada-lang.c (ada_same_array_size_p): New function.
123 (ada_promote_array_of_integrals): New function.
124 (coerce_for_assign): Add handling of arrays where the elements
125 are integrals of a smaller size than the size of the target
126 array element type.
127
128 2012-10-24 Joel Brobecker <brobecker@adacore.com>
129
130 * doublest.c (convert_doublest_to_floatformat): Fix comparison
131 against maximum exponent value.
132
133 2012-10-24 Joel Brobecker <brobecker@adacore.com>
134
135 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
136 "unwind-seh.c".
137
138 2012-10-24 Joel Brobecker <brobecker@adacore.com>
139
140 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
141 strip typedef layer when computing the fixed type's field type,
142 only when computing its size.
143
144 2012-10-24 Mark Kettenis <kettenis@gnu.org>
145
146 PR gdb/12783
147 * i386-tdep.c (i386_return_value): Handle complex double and long
148 double.
149
150 2012-10-24 Joel Brobecker <brobecker@adacore.com>
151
152 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
153 New local variable args_len.
154 Quote the name of the executable when computing the command line.
155
156 2012-10-23 Mark Kettenis <kettenis@gnu.org>
157
158 PR gdb/12796
159 PR gdb/12798
160 PR gdb/12800
161 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
162 AMD64_FTAG_REGNUM.
163 * amd64-tdep.c (amd64_classify): Classify complex types.
164 (amd64_return_value): Handle the COMPLEX_X87 class.
165
166 2012-10-23 Joel Brobecker <brobecker@adacore.com>
167
168 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
169 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
170
171 2012-10-23 Joel Brobecker <brobecker@adacore.com>
172
173 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
174 function.
175 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
176 to amd64_windows_auto_wide_charset.
177
178 2012-10-23 Yao Qi <yao@codesourcery.com>
179
180 * event-top.c (mark_async_signal_handler_wrapper): Remove.
181 * event-top.h: Remove its declaration.
182 (async_request_quit): Call mark_async_signal_handler instead of
183 mark_async_signal_handler_wrapper.
184 (async_do_nothing, async_disconnect): Likewise.
185 (async_stop_sig): Likewise.
186 * remote.c (handle_remote_sigint): Likewise.
187 (handle_remote_sigint_twice): Likewise.
188
189 2012-10-23 Yao Qi <yao@codesourcery.com>
190
191 * event-top.c (sigint_token, sighup_token): Replace 'void *'
192 with 'static struct async_signal_handler *'.
193 (sighup_token, sigquit_token, sigstp_token): Likewise.
194
195 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
196
197 * gdbarch.sh (function_list): Use 'pstring' when printing
198 a variable which could return NULL.
199 * gdbarch.c: Regenerate.
200
201 2012-10-10 Joel Brobecker <brobecker@adacore.com>
202 Tom Tromey <tromey@redhat.com>
203
204 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
205 inneffective if condition by gdb assertion. Add function
206 description comment.
207
208 2012-10-19 Joel Brobecker <brobecker@adacore.com>
209
210 * parser-defs.h (struct exp_descriptor): Document constraint
211 on return value for "op_name" callbacks.
212
213 2012-10-18 Tom Tromey <tromey@redhat.com>
214
215 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
216 * symtab.c (iterate_over_some_symtabs): Constify.
217 * source.h (symtab_to_fullname): Return 'const char *'.
218 * source.c (symtab_to_fullname): Return 'const char *'.
219 * python/py-symtab.c (stpy_fullname): Constify.
220 * cli/cli-cmds.c (edit_command): Constify.
221 * breakpoint.c (print_breakpoint_location)
222 (update_static_tracepoint): Constify.
223
224 2012-10-18 Tom Tromey <tromey@redhat.com>
225
226 * breakpoint.c (compare_breakpoints): Fix comparison.
227
228 2012-10-18 Tom Tromey <tromey@redhat.com>
229
230 * valprint.c (generic_emit_char, generic_printstr): Pass size of
231 gdb_wchar_t to convert_between_encodings.
232
233 2012-10-17 Yao Qi <yao@codesourcery.com>
234
235 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
236 more parameter 'inferior'.
237 * corefile.c (write_memory_with_notification): Caller update.
238
239 * mi/mi-cmd-var.c: Include "mi-main.h".
240 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
241 to 1 and restore it later.
242 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
243 and "data-write-memory-bytes.
244 * mi/mi-interp.c: Include objfiles.h.
245 (mi_interpreter_init): Call observer_attach_memory_changed.
246 (mi_memory_changed): New.
247 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
248 New field.
249
250 * NEWS: Mention new MI notification "memory-changed".
251
252 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
255
256 2012-10-15 Doug Evans <dje@google.com>
257
258 New option -nh: inhibit loading of ~/.gdbinit.
259 * NEWS: Mention -nh.
260 * main.c (captured_main): Recognize and process -nh.
261 (print_gdb_help): Mention -nh.
262 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
263
264 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR backtrace/14646
267 PR gdb/14647
268 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
269 pc_regnum_from_eax.
270 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
271 nor pc_regnum_from_eax.
272 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
273 nor pc_regnum_from_eax.
274
275 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
276
277 Fix entry values resolving in inlined frames.
278 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
279 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
280 entries of FRAME.
281
282 2012-10-15 Joel Brobecker <brobecker@adacore.com>
283
284 * configure.ac: Build with -DMS_WIN64 if building with Python
285 enabled using GCC on amd64-windows.
286 * configure: Regenerate.
287
288 2012-10-15 Tom Tromey <tromey@redhat.com>
289
290 PR python/14635:
291 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
292 to Py_None.
293
294 2012-10-15 Tom Tromey <tromey@redhat.com>
295
296 PR python/14634:
297 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
298
299 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
300
301 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
302 reset thread numbering back to 1.
303
304 2012-10-11 Doug Evans <dje@google.com>
305
306 PR breakpoints/14643.
307 * linespec.c (struct ls_parser): New member keyword_ok.
308 (linespec_lexer_lex_string): Add comment.
309 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
310 for one.
311 (parse_linespec): Set keyword_ok.
312
313 2012-10-10 Doug Evans <dje@google.com>
314
315 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
316 "0x" prefix on address in log message.
317
318 * dwarf2read.c (read_1_byte): Add const to buf parameter.
319 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
320 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
321 (lookup_dwo_file): Add const to dwo_name parameter.
322 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
323
324 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
325
326 Fix crash during stepping on ppc32.
327 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
328 SYM.
329
330 2012-10-03 Doug Evans <dje@google.com>
331
332 PR symtab/14601
333 * buildsym.c (buildsym_init): Reset using_directives to NULL.
334
335 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
336
337 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
338 output and use uint32_t not long to ensure 4 byte size.
339
340 2012-10-02 Joel Brobecker <brobecker@adacore.com>
341
342 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
343 unref'ed it.
344
345 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
346
347 * target.c (simple_search_memory): Include access length in
348 warning message.
349
350 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
351 Edjunior Machado <emachado@linux.vnet.ibm.com>
352
353 PR gdb/13989
354 * solib.c (solib_find): Prevent GDB from loading native libraries when
355 debugging a cross-target corefile.
356
357 2012-09-28 selven <pcthegreat@gmail.com>
358
359 Make definition match declaration.
360
361 * regcache.c (regcache_register_status): Change return type to
362 enum register_status.
363
364 2012-09-28 Yao Qi <yao@codesourcery.com>
365
366 * mi/mi-main.c (mi_cmd_data_write_memory): Call
367 write_memory_with_notification instead of write_memory.
368 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
369 instead of target_write_memory.
370
371 2012-09-28 Yao Qi <yao@codesourcery.com>
372
373 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
374 when the length of content is not an even number.
375
376 2012-09-27 Tom Tromey <tromey@redhat.com>
377
378 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
379 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
380
381 2012-09-27 Joel Brobecker <brobecker@adacore.com>
382
383 * sol-thread.c (sol_thread_fetch_registers)
384 (sol_thread_store_registers): Delete commented out code.
385
386 2012-09-27 Joel Brobecker <brobecker@adacore.com>
387
388 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
389 Move these functions to sparc-sol-thread.c.
390 * sparc-sol-thread.c: New file.
391 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
392 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
393 configurations.
394 * configure: Regenerate.
395
396 2012-09-27 Joel Brobecker <brobecker@adacore.com>
397
398 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
399 Remove commented-out code.
400
401 2012-09-27 Joel Brobecker <brobecker@adacore.com>
402
403 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
404 Enable this code for sparc hosts only.
405
406 2012-09-27 Joel Brobecker <brobecker@adacore.com>
407
408 * procfs.h (procfs_find_LDT_entry): Add declaration.
409 * sol-thread.c (ps_lgetLDT): Delete local declaration of
410 function procfs_find_LDT_entry.
411
412 2012-09-27 Joel Brobecker <brobecker@adacore.com>
413
414 * procfs.c (proc_get_LDT_entry): Make static.
415
416 2012-09-27 Joel Brobecker <brobecker@adacore.com>
417
418 * procfs.c (proc_find_memory_regions): Fix declaration.
419
420 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
421
422 * amd64-tdep.c (amd64_return_value): Revert previous change
423 that used TYPE_LENGTH directly.
424 * bfin-tdep.c (bfin_extract_return_value): Likewise.
425 (bfin_store_return_value): Likewise.
426 * cris-tdep.c (cris_store_return_value): Likewise.
427 (cris_extract_return_value): Likewise.
428 * h8300-tdep.c (h8300_extract_return_value): Likewise.
429 * hppa-tdep.c (hppa64_return_value): Likewise.
430 * lm32-tdep.c (lm32_store_return_value): Likewise.
431 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
432 * spu-tdep.c (spu_value_from_register): Likewise.
433 * vax-tdep.c (vax_return_value): Likewise.
434
435 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
436
437 * gdbtypes.c (lookup_array_range_type): Expand parameters
438 LOW_BOUND and HIGH_BOUND to LONGEST.
439 (lookup_string_range_type): Likewise.
440 * gdbtypes.h (lookup_array_range_type): Likewise.
441 (lookup_string_range_type): Likewise.
442 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
443 Expand HIGHBOUND to ssize_t.
444 (value_string): Likewise.
445 * value.h (value_cstring): Expand parameter LEN to ssize_t.
446 (value_string): Likewise.
447
448 2012-09-27 Yao Qi <yao@codesourcery.com>
449
450 PR breakpoints/13898
451 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
452 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
453 per breakpoint type.
454
455 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
456
457 * procfs.c: Add gdb_bfd header.
458 * rs6000-nat.c: Likewise.
459 * solib-pa64.c: Likewise.
460 * spu-linux-nat.c: Likewise.
461 * windows-nat.c: Likewise.
462
463 2012-09-26 Tom Tromey <tromey@redhat.com>
464
465 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
466
467 2012-09-26 Tom Tromey <tromey@redhat.com>
468
469 * dwarf2read.c (mark_common_block_symbol_computed): New function.
470 (read_common_block): Handle child DIEs with
471 DW_AT_data_member_location.
472 (new_symbol_full): Add special case for common blocks.
473
474 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
475 Tom Tromey <tromey@redhat.com>
476
477 * dwarf2read.c (read_common_block): Rewrite.
478 (new_symbol_full): Handle DW_TAG_common_block.
479 * f-lang.c (head_common_list, find_common_for_function):
480 Remove.
481 * f-lang.h (struct common_entry, struct saved_f77_common,
482 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
483 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
484 BLANK_COMMON_NAME_LOCAL): Remove.
485 (struct common_block): New.
486 * f-valprint.c (list_all_visible_commons): Remove.
487 (info_common_command_for_block): New function.
488 (info_common_command): Use it.
489 * stack.c (iterate_over_block_locals): Special case for
490 COMMON_BLOCK_DOMAIN.
491 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
492 constant.
493 (struct general_symbol_info) <value.common_block>: New field.
494 (SYMBOL_VALUE_COMMON_BLOCK): New define.
495
496 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
497 Tom Tromey <tromey@redhat.com>
498
499 * f-lang.c (allocate_saved_bf_node,
500 allocate_saved_function_node, allocate_saved_f77_common_node,
501 allocate_common_entry_node, tail_common_list, current_common,
502 saved_bf_list, saved_bf_list_end, current_head_bf_list,
503 tmp_bf_ptr, add_common_block, add_common_entry,
504 find_first_common_named, patch_common_entries,
505 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
506 global_remote_debug, get_bf_for_fcn, saved_function_list,
507 saved_function_list_end, clear_function_list, struct saved_fcn,
508 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
509 SAVED_BF, SAVED_BF_PTR): Remove.
510 * f-lang.h (tail_common_list, current_common,
511 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
512 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
513 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
514 real_main_c_value): Remove.
515 * f-valprint.c (there_is_a_visible_common_named): Remove.
516
517 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
518
519 * breakpoint.c (update_global_location_list): Ignore previous
520 duplicate status of a breakpoint when starting a new scan for
521 duplicate breakpoints.
522
523 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
524 PR breakpoints/14419
525 * arm-tdep.c (arm_skip_prologue): Extending producer check to
526 support LLVM compiler.
527
528 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
529
530 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
531 * bfin-tdep.c (bfin_extract_return_value): Likewise.
532 (bfin_store_return_value): Likewise.
533 * cris-tdep.c (cris_store_return_value): Likewise.
534 (cris_extract_return_value): Likewise.
535 * h8300-tdep.c (h8300_extract_return_value): Likewise.
536 * hppa-tdep.c (hppa64_return_value): Likewise.
537 * lm32-tdep.c (lm32_store_return_value): Likewise.
538 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
539 * spu-tdep.c (spu_value_from_register): Likewise.
540 * vax-tdep.c (vax_return_value): Likewise.
541
542 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
543
544 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
545 parameter LEN to ssize_t.
546
547 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
548
549 * ada-valprint.c (ada_val_print_1): Eliminate single-use
550 variable LEN.
551 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
552 directly.
553 (alpha_store_return_value): Likewise.
554 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
555 (amd64_push_arguments): Likewise.
556 * ax-gdb.c (gen_trace_static_fields): Likewise.
557 (gen_traced_pop): Likewise.
558 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
559 * breakpoint.c (update_watchpoint): Likewise.
560 * findcmd.c (parse_find_args): Use local variable for type
561 instead of length.
562 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
563 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
564 (h8300_store_return_value): Likewise.
565 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
566 Use i386_darwin_arg_type_alignment directly.
567 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
568 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
569 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
570 (m68hc11_extract_return_value): Likewise.
571 * mep-tdep.c (mep_push_dummy_call): Likewise.
572 * printcmd.c (float_type_from_length): Likewise.
573 * s390-tdep.c (s390_value_from_register): Likewise.
574 * stack.c (read_frame_arg): Likewise.
575 * tracepoint.c (encode_actions_1): Likewise.
576 * valops.c (value_fetch_lazy): Use local variable for type
577 instead of length. Use TYPE_LENGTH directly.
578 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
579
580 2012-09-25 Joel Brobecker <brobecker@adacore.com>
581
582 * symtab.c (skip_prologue_sal): Fix typo in comment.
583
584 2012-09-25 Joel Brobecker <brobecker@adacore.com>
585
586 * linespec.c (create_sals_line_offset): Fix typo in comment.
587
588 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
589
590 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
591 use plongest to print the array size.
592
593 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
594
595 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
596 * p-valprint.c (pascal_type_print_base): Likewise.
597
598 2012-09-22 Yao Qi <yao@codesourcery.com>
599
600 * remote.c (remote_get_trace_status): Remove setting default
601 values of fields of 'ts'.
602
603 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 Fix internal error on canonicalization of clang types.
606 * cp-name-parser.y (operator): New comment at make_operator call for
607 new, delete, new[] and delete[].
608 (exp): Use "sizeof ". Add new comment at make_operator call.
609
610 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
611
612 Fix disassemble without parameters in tailcall frame.
613 * cli/cli-cmds.c (disassemble_current_function): Use
614 get_frame_address_in_block.
615
616 2012-09-21 Tom Tromey <tromey@redhat.com>
617
618 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
619 TYPE_CODE_UNION>: Unify, removing a goto.
620
621 2012-09-21 Tom Tromey <tromey@redhat.com>
622
623 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
624
625 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
626
627 * findvar.c (read_frame_register_value): Mark the result value as
628 optimized out if any of the input registers have been optimized out.
629
630 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
631
632 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
633
634 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
635
636 * eval.c (evaluate_subexp_standard): Eliminate single-use
637 variable LOWER.
638
639 2012-09-21 Yao Qi <yao@codesourcery.com>
640
641 * mi/mi-interp.c: Declare mi_record_changed.
642 (mi_interpreter_init): Call observer_attach_record_changed.
643 (mi_record_changed): New.
644 * record.c (record_open): Call observer_notify_record_changed.
645 (cmd_record_stop): Call observer_notify_record_changed.
646 * NEWS: Mention it.
647
648 2012-09-20 Tom Tromey <tromey@redhat.com>
649
650 * NEWS: Update.
651 * python/python.c (finalize_python): New function.
652 (_initialize_python): Make a final cleanup.
653
654 2012-09-19 Doug Evans <dje@google.com>
655
656 * buildsym.h (param_symbols): Delete, unused.
657 (context_stack): Delete member "params", unused.
658 * buildsym.c (push_context): Update.
659 * dwarf2read.c (read_func_scope): Update.
660
661 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
662
663 * sh-tdep.c (sh_register_convert_to_virtual)
664 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
665 all callers. Just do a memcpy if not the little-endian case.
666
667 * h8300-tdep.c (h8300_gdbarch_init): Invoke
668 set_gdbarch_double_format and set_gdbarch_long_double_format.
669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
670 set_gdbarch_double_format.
671 * sh-tdep.c (sh_gdbarch_init): Likewise.
672
673 * NEWS: Document the removal of SH's 'regs' command.
674 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
675 command.
676
677 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
678
679 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
680 `jump'.
681
682 2012-09-18 Joel Brobecker <brobecker@adacore.com>
683
684 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
685 language when iterating over symbols.
686
687 2012-09-18 Yao Qi <yao@codesourcery.com>
688
689 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
690 (mi_interpreter_init): Call observer_attach_tsv_created and
691 observer_attach_tsv_deleted.
692 (mi_tsv_created, mi_tsv_deleted): New.
693 * tracepoint.c (delete_trace_state_variable): Call
694 observer_notify_tsv_deleted.
695 (trace_variable_command): Call observer_notify_tsv_created.
696 (delete_trace_variable_command): Call
697 observer_notify_tsv_deleted.
698 (create_tsv_from_upload): Call observer_notify_tsv_created.
699 * NEWS: Mention it.
700
701 2012-09-18 Yao Qi <yao@codesourcery.com>
702
703 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
704 if traceframe changed.
705 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
706 "trace-find".
707 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
708 (mi_interpreter_init): Hook mi_traceframe_changed to observer
709 'traceframe_changed'.
710 (mi_traceframe_changed): New.
711 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
712 New field.
713 * NEWS: Mention the new MI notification.
714
715 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
716
717 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
718
719 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
720
721 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
722 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
723 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
724 Extend code also for PaX support. Convert all gdb_assert to warning
725 calls.
726
727 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
728
729 Implement auto-load user conveniences suggested by Doug Evans.
730 * auto-load.c: Include top.h.
731 (file_is_auto_load_safe): New variable advice_printed. Print advice.
732 (_initialize_auto_load): New variable scripts_directory_help. Mention
733 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
734 scripts-directory. Document in online help one can use also files for
735 set auto-load safe-path.
736 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
737 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
738
739 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
740
741 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
742 of LEN.
743
744 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
745
746 * m2-valprint.c (m2_print_array_contents): Eliminate variable
747 ELTLEN and use TYPE_LENGTH directly.
748 (m2_val_print): Likewise.
749 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
750 variable LEN and use TYPE_LENGTH directly.
751 (m68k_svr4_store_return_value): Likewise.
752 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
753 ARGLEN and use TYPE_LENGTH directly.
754 (mips_o64_push_dummy_call): Likewise.
755 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
756 variable LENGTH and use TYPE_LENGTH directly.
757 (s390_function_arg_float): Likewise.
758 (s390_function_arg_integer): Likewise.
759 (s390_push_dummy_call): Likewise.
760 (s390_return_value_convention): Likewise.
761 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
762 TYPE_LENGTH directly.
763
764 2012-09-17 Yao Qi <yao@codesourcery.com>
765
766 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
767 Update comment to add_setshow_integer_cmd.
768 * cli/cli-setshow.c (do_set_command): Handle case
769 'var_zuinteger_unlimited'.
770 (do_show_command): Likewise.
771 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
772 for command 'remotetimeout'.
773 * command.h (enum var_types): New zuinteger_unlimited. Update comment
774 to var_integer.
775 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
776 for command 'set listsize'.
777
778 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
779
780 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
781 variable LEN.
782
783 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
784
785 PR 14119
786 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
787 (frame_pop): Drop also TAILCALL_FRAME frames.
788 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
789
790 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
791 Pedro Alves <palves@redhat.com>
792
793 PR 14548
794 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
795 function start if we are already at function start. Both for
796 reverse-next and for reverse-step into function without line number
797 info.
798
799 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
800
801 Code cleanup - rename 'inline' depth to 'artificial' depth.
802 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
803 frame_id_artificial_p, extend the comment.
804 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
805 * frame.c (fprint_frame_id): Rename at a user, change debug output
806 text to "artificial=".
807 (skip_inlined_frames): Rename to ...
808 (skip_artificial_frames): ... here. Extend the comment.
809 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
810 (frame_id_inlined_p): Rename to ...
811 (frame_id_artificial_p): ... here. Rename at a user.
812 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
813 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
814 at a user.
815 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
816 Extend the comment.
817 (frame_id_inlined_p): Rename to ...
818 (frame_id_artificial_p): ... here.
819 * inline-frame.c (inline_frame_this_id): Rename at a user.
820
821 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
822
823 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
824 vector variables using vector_size syntax rather than array
825 syntax.
826
827 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
828
829 * valarith.c (value_concat): Replace unsafe ALLOCA with
830 XMALLOC/XFREE.
831
832 2012-09-14 Pedro Alves <palves@redhat.com>
833
834 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
835
836 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
837
838 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
839 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
840 data-directory as appropriate.
841
842 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
843
844 * printcmd.c (ui_printf): Eliminate single-use variable
845 PARAM_LEN.
846
847 2012-09-14 Yao Qi <yao@codesourcery.com>
848 Pedro Alves <palves@redhat.com>
849
850 * valops.c (value_assign): Move observer_notify_target_changed
851 below to replace reinit_frame_cache.
852
853 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
854
855 Refactor Python "gdb" module into a proper Python package, by
856 introducing a new "_gdb" module for code implemented in C, and
857 using reload/__import__ instead of exec.
858 * python/lib/gdb/__init__.py: Import * from _gdb.
859 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
860 prompt_hook, sys.argv): Moved from finish_python_initialization.
861 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
862 (packages, auto_load_packages): New list and function replacing
863 module_dict and auto-loading code, using __file__ instead of
864 gdb.PYTHONDIR and reload/__import__ instead of exec.
865 (GdbSetPythonDirectory): Replacing function of the same name
866 from finish_python_initialization, using reload/__import__ instead
867 of exec, as well as call auto_load_packages.
868 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
869 gdb_python_module and not gdb_module.
870 * python/python-internal.h (gdb_python_module): Declare.
871 * python/python.c (gdb_python_module): New global.
872 (before_prompt_hook): Check gdb_python_module and not gdb_module.
873 (_initialize_python): Rename gdb module to _gdb.
874 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
875 (finish_python_initialization): Move Python code to
876 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
877 __main__.
878
879 2012-09-13 Pedro Alves <palves@redhat.com>
880
881 * Makefile.in (COMMON_OBS): Add registry.o.
882 * registry.c: New file.
883 * registry.h (struct registry_container): Declare.
884 (registry_data_callback): New typedef.
885 (struct registry_data, struct registry_data_registration, struct
886 registry_data_registry): New type.
887 (register_data_with_cleanup, registry_alloc_data)
888 (registry_callback_adaptor, registry_clear_data)
889 (registry_container_free_data, registry_set_data, registry_data):
890 Declare.
891 (DEFINE_REGISTRY): Refactor structures and functions as shims over
892 the new common structures and functions.
893 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
894 callback typedefs.
895
896 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
897
898 * remote.c (remote_insert_hw_breakpoint): Throw exception if
899 there is an error inserting hardware breakpoints and use the
900 error message from the target.
901
902 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
903 Catch this exception and print the error message contained within. Do not
904 print the default hardware error breakpoint message in this case.
905
906 2012-09-12 Doug Evans <dje@google.com>
907
908 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
909 cu == NULL.
910
911 2012-09-11 Doug Evans <dje@google.com>
912
913 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
914 .gdb_index symbol attributes if there are none.
915
916 2012-09-11 Joel Brobecker <brobecker@adacore.com>
917
918 * symtab.h (struct minimal_symbol) [has_size]: New field.
919 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
920 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
921 * printcmd.c (build_address_symbolic): Only filter out zero-sized
922 minimal symbols if the symbol's size is actually known.
923 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
924 of msymbol's size field. Add comment.
925 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
926 SET_MSYMBOL_SIZE to set the minimal symbol size.
927
928 2012-09-11 Joel Brobecker <brobecker@adacore.com>
929
930 * minsyms.c (install_minimal_symbols): Use memset to fill entire
931 minimal_symbol struct object, rather than setting some of its
932 fields one by one.
933
934 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
935
936 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
937 passed_a_ptr flag when displaying typedef types.
938
939 2012-09-10 Joel Brobecker <brobecker@adacore.com>
940
941 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
942 the optimized_out flag is preserved.
943
944 2012-09-10 Anthony Green <green@moxielogic.com>
945
946 * moxie-tdep.c (moxie_analyze_prologue): Update for function
947 prologue changes in GCC.
948
949 2012-09-10 Keith Seitz <keiths@redhat.com>
950
951 PR gdb/13483
952 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
953 (BOOL_CONVERSION_BADNESS): ... this.
954 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
955 (rank_one_type): Allow all boolean conversions
956 permitted by the standard.
957
958 2012-09-06 Tom Tromey <tromey@redhat.com>
959
960 * python/py-newobjfileevent.c (create_new_objfile_event_object):
961 Don't decref py_objfile.
962
963 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
964
965 Do not enable -lmcheck by default when Python is enabled with
966 threading support.
967 * configure.ac: (python_has_threads) New variable, by testing
968 if WITH_THREAD is defined in Python.h.
969 Move --enable-lmcheck after --with-python.
970 Do not enable -lmcheck by default if python_has_threads=yes.
971 Warn if --enable-lmcheck and python_has_threads=yes.
972 * configure: Regenerate.
973
974 2012-08-31 Yao Qi <yao@codesourcery.com>
975
976 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
977 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
978 Update some commands.
979 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
980 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
981 to 1.
982
983 2012-08-31 Yao Qi <yao@codesourcery.com>
984
985 * mi/mi-cmds.c (mi_cmds): Add 'static'.
986
987 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
988
989 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
990
991 2012-08-29 Doug Evans <dje@google.com>
992
993 * main.c (print_gdb_help): Remove reference to
994 --use-deprecated-index-sections.
995
996 2012-08-28 Yao Qi <yao@codesourcery.com>
997
998 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
999 (init_cmds): Call add_setshow_uinteger_cmd for command
1000 'max-user-call-depth'.
1001 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1002 declaration of 'max_user_call_depth'.
1003 * frame.c (backtrace_limit): Add 'unsigned'.
1004 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1005 'limit'.
1006 * remote.c (remoteaddresssize): Add 'unsigned'.
1007 (remote_address_masked): Change local var 'address_size' to
1008 'unsigned'.
1009 (_initialize_remote): Call add_setshow_uinteger_cmd for
1010 'remoteaddresssize'.
1011 * top.c (history_size): Add 'unsigned'.
1012 (show_commands): Change local variables to 'unsigned'.
1013 (set_history_size_command): Don't check history_size is negative.
1014 Adjust the condition to call unstifle_history and set history_size
1015 to UNIT_MAX.
1016
1017 2012-08-28 Pedro Alves <palves@redhat.com>
1018
1019 PR gdb/14428
1020
1021 * infcmd.c (default_print_one_register_info): New, factored out
1022 from default_print_registers_info.
1023 (default_print_registers_info): Use it. Mark value unavailable if
1024 necessary.
1025 (registers_info): Print user registers with
1026 default_print_one_register_info.
1027
1028 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1029
1030 PR tui/14486
1031 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1032 is not NULL before referencing it.
1033
1034 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1035
1036 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1037 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1038 original PC for it.
1039
1040 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1041 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 * auto-load.c (auto_load_objfile_script): Rename to ...
1044 (auto_load_objfile_script_1): ... here, change variable realname to
1045 parameter realname, document it, add return value, add variable retval.
1046 (auto_load_objfile_script): New function.
1047
1048 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1051 followed by a whitespace.
1052
1053 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 PR gdb/14494.
1056 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1057 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1058 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1059 here.
1060
1061 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1062
1063 * memattr.c (create_mem_region): Fix memory region overlapping
1064 checking.
1065
1066 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1067
1068 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1069 with xmalloc/cleanup.
1070 * mt-tdep.c (mt_push_dummy_call): Likewise.
1071 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1072 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1073
1074 2012-08-24 Yao Qi <yao@codesourcery.com>
1075
1076 * jv-exp.y (push_expression_name): Add "." at the end of error
1077 message.
1078
1079 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1080
1081 Document how to return from "python-interactive" to GDB.
1082 * python/python.c (_initialize_python): Update documentation.
1083
1084 2012-08-23 Pedro Alves <palves@redhat.com>
1085
1086 * infrun.c (_initialize_infrun) <handle command help text>:
1087 Mention that multiple signals are supported.
1088
1089 2012-08-23 Pedro Alves <palves@redhat.com>
1090
1091 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1092 string.
1093
1094 2012-08-23 Yao Qi <yao@codesourcery.com>
1095
1096 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1097 (tfind_1): Don't call registers_changed, set_traceframe_num,
1098 and clear_traceframe_info.
1099 Call set_current_traceframe.
1100 (set_current_traceframe): call set_traceframe_num.
1101
1102 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1103
1104 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1105 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1106
1107 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1108
1109 Enable readline in Python in a GDB-specific way and block the
1110 standard Python readline module to prevent conflicts with GDB.
1111 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1112 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1113 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1114 * python/py-gdb-readline.c: New file.
1115 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1116 prototype.
1117 * python/python.c (_initialize_python): Call
1118 gdbpy_initialize_gdb_readline.
1119
1120 2012-08-22 Keith Seitz <keiths@redhat.com>
1121
1122 * defs.h: Include build-gnulib/config.h
1123
1124 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1125
1126 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1127 and blx pc.
1128
1129 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1130
1131 Add a new "python-interactive" command that starts a standard
1132 Python interactive prompt with "pi" as alias, and add "py" as
1133 an alias to "python".
1134 * NEWS: Mention the new commands.
1135 * python/python.c (eval_python_command): New function.
1136 (python_interactive_command): For "python-interactive" with
1137 arguments, call eval_python_command. For "python-interactive"
1138 without arguments, call PyRun_InteractiveLoop.
1139 (_initialize_python): Add "python-interactive" command with
1140 "pi" as alias, and add "py" as an alias to "python".
1141
1142 2012-08-22 Tom Tromey <tromey@redhat.com>
1143
1144 * defs.h (quit_flag): Don't declare.
1145 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1146 (QUIT): Use new functions.
1147 * event-top.c (command_handler): Use clear_quit_flag.
1148 (handle_sigint): Use set_quit_flag.
1149 (async_request_quit): Use check_quit_flag. Don't check
1150 immediate_quit.
1151 * exceptions.c (throw_exception): Use clear_quit_flag.
1152 * main.c (captured_main): Use clear_quit_flag.
1153 * python/python.c (clear_quit_flag, set_quit_flag)
1154 (check_quit_flag): New functions.
1155 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1156 clear_quit_flag.
1157 * remote.c (remote_wait_as): Use check_quit_flag,
1158 clear_quit_flag.
1159 (remote_start_remote): Call QUIT.
1160 * symfile.c (load_progress): Use check_quit_flag.
1161 * top.c (command_loop): Use clear_quit_flag.
1162 (command_line_input): Call QUIT.
1163 * utils.c (quit_flag): Conditionally define.
1164 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1165 functions.
1166 (prompt_for_continue): Call QUIT. Use quit, not
1167 async_request_quit.
1168 * remote-mips.c (mips_expect_timeout): Call QUIT.
1169 * monitor.c (monitor_expect): Call QUIT.
1170
1171 2012-08-22 Tom Tromey <tromey@redhat.com>
1172
1173 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1174 (async_init_signals): Update.
1175 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1176 (SIGWINCH_HANDLER_BODY): Remove.
1177
1178 2012-08-22 Tom Tromey <tromey@redhat.com>
1179
1180 * jit.c (jit_object_close_impl): Don't malloc the objfile
1181 name.
1182 * objfiles.c (allocate_objfile): Don't malloc the objfile
1183 name.
1184 (free_objfile): Don't free the objfile name.
1185 * objfiles.h (struct objfile) <name>: Update comment.
1186 * symfile.c (reread_symbols): Fix reference counting. Don't
1187 malloc objfile name.
1188
1189 2012-08-22 Tom Tromey <tromey@redhat.com>
1190
1191 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1192 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1193 (symfile_bfd_open): Likewise.
1194 (generic_load): Likewise.
1195 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1196 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1197 gdb_bfd_open.
1198 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1199 Use gdb_bfd_open.
1200 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1201 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1202 (pmon_load_fast): Likewise.
1203 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1204 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1205 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1206 (macho_check_dsym): Likewise.
1207 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1208 (m32r_upload_command): Likewise.
1209 * gdb_bfd.h (gdb_bfd_cache): Declare.
1210 * gdb_bfd.c (struct gdb_bfd_data): New.
1211 (gdb_bfd_cache): New global.
1212 (struct gdb_bfd_cache_search): New.
1213 (hash_bfd): New function.
1214 (eq_bfd): Likewise.
1215 (gdb_bfd_open): Likewise.
1216 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1217 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1218 gdb_bfd_data.
1219 * exec.c (exec_file_attach): Use gdb_bfd_open.
1220 * dsrec.c (load_srec): Use gdb_bfd_open.
1221
1222 2012-08-22 Tom Tromey <tromey@redhat.com>
1223
1224 * dwarf2read.c (macro_start_file): Update.
1225 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1226 (free_objfile_per_bfd_storage): Destroy macro_cache.
1227 (allocate_objfile, free_objfile): Update.
1228 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1229 New field.
1230 (struct objfile) <macro_cache>: Remove.
1231 * symfile.c (reread_symbols): Update.
1232 * symmisc.c (print_symbol_bcache_statistics): Update.
1233 (print_objfile_statistics): Update.
1234
1235 2012-08-22 Tom Tromey <tromey@redhat.com>
1236
1237 * elfread.c (elf_symtab_read): Update.
1238 * objfiles.c (objfiles_bfd_data): New global.
1239 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1240 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1241 (allocate_objfile, free_objfile): Update.
1242 (_initialize_objfiles): Initialize objfiles_bfd_data.
1243 * objfiles.h (struct objfile_per_bfd_storage): New.
1244 (struct objfile) <per_bfd>: New field.
1245 <filename_cache>: Remove.
1246 (set_objfile_per_bfd): Declare.
1247 * symfile.c (reread_symbols): Update. Call
1248 set_objfile_per_bfd.
1249 (allocate_symtab): Update.
1250 * symmisc.c (print_symbol_bcache_statistics): Update.
1251 (print_objfile_statistics): Print the size of the BFD obstack.
1252
1253 2012-08-22 Tom Tromey <tromey@redhat.com>
1254
1255 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1256 * gdb_bfd.c: Use DEFINE_REGISTRY.
1257 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1258 (gdb_bfd_ref): Call bfd_alloc_data.
1259 (gdb_bfd_unref): Call bfd_free_data.
1260
1261 2012-08-22 Tom Tromey <tromey@redhat.com>
1262
1263 * registry.h (struct registry_fields): New.
1264 (REGISTRY_FIELDS): Redefine.
1265 (REGISTRY_ACCESS_FIELD): New macro.
1266 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1267 functions.
1268
1269 2012-08-22 Tom Tromey <tromey@redhat.com>
1270
1271 * auto-load.c (_initialize_auto_load): Update.
1272 * solib-svr4.c (_initialize_svr4_solib): Update
1273 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1274 * solib-darwin.c (_initialize_darwin_solib): Update.
1275 * registry.h: New file.
1276 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1277 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1278 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1279 (register_program_space_data_with_cleanup)
1280 (register_program_space_data, program_space_alloc_data)
1281 (clear_program_space_data, set_program_space_data)
1282 (program_space_data): Don't declare.
1283 * progspace.c: Use DEFINE_REGISTRY.
1284 (struct program_space_data, struct
1285 program_space_data_registration, struct
1286 program_space_data_registry, program_space_data_registry)
1287 (register_program_space_data_with_cleanup)
1288 (register_program_space_data, program_space_alloc_data)
1289 (program_space_free_data, clear_program_space_data)
1290 (set_program_space_data, program_space_data): Remove.
1291 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1292 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1293 (register_objfile_data_with_cleanup, register_objfile_data)
1294 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1295 declare.
1296 * objfiles.c: Use DEFINE_REGISTRY.
1297 (struct objfile_data, struct objfile_data_registration, struct
1298 objfile_data_registry, objfile_data_registry)
1299 (register_objfile_data_with_cleanup, register_objfile_data)
1300 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1301 (set_objfile_data, objfile_data): Remove.
1302 (_initialize_objfiles): Update.
1303 * jit.c (_initialize_jit): Update.
1304 * inflow.c (_initialize_inflow): Update.
1305 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1306 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1307 (register_inferior_data_with_cleanup, register_inferior_data)
1308 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1309 declare.
1310 * inferior.c: Use DEFINE_REGISTRY.
1311 (struct inferior_data, struct inferior_data_registration, struct
1312 inferior_data_registry, inferior_data_registry)
1313 (register_inferior_data_with_cleanup, register_inferior_data)
1314 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1315 (set_inferior_data, inferior_data): Remove.
1316 * auxv.c (_initialize_auxv): Update.
1317 * ada-lang.c (_initialize_ada_language): Update.
1318 * breakpoint.c (_initialize_breakpoint): Update.
1319 * i386-nat.c (i386_use_watchpoints): Update.
1320
1321 2012-08-22 Tom Tromey <tromey@redhat.com>
1322
1323 * exec.c (exec_close, exec_file_attach): Update.
1324 (add_to_section_table): Initialize 'key' field.
1325 (add_target_sections, remove_target_sections): Add 'key' argument.
1326 * exec.h (add_target_sections, remove_target_sections): Add
1327 'key' argument.
1328 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1329 (reload_shared_libraries_1): Update.
1330 * target.h (struct target_section) <key>: New field.
1331
1332 2012-08-22 Tom Tromey <tromey@redhat.com>
1333
1334 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1335
1336 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1337
1338 * symfile.c (allocate_symtab): Use host_address_to_string
1339 function instead of cast of pointer to long which is not
1340 compatible with x86_64-w64-mingw32 build.
1341
1342 2012-08-19 Andrew Pinski <apinski@cavium.com>
1343
1344 * mips-tdep.c (is_octeon): New function.
1345 (is_octeon_bbit_op): New function.
1346 (mips32_next_pc): Handle Octeon's bbit instructions.
1347 (mips32_instruction_has_delay_slot): Likewise.
1348
1349 2012-08-19 Andrew Pinski <apinski@cavium.com>
1350
1351 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1352 before the function.
1353
1354 2012-08-19 Andrew Pinski <apinski@cavium.com>
1355
1356 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1357
1358 2012-08-19 Keith Seitz <keiths@redhat.com>
1359
1360 PR c++/14365
1361 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1362 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1363
1364 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1365
1366 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1367 The typo broke "make TAGS".
1368
1369 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1370
1371 GDB 7.5 released.
1372
1373 2012-08-17 Keith Seitz <keiths@redhat.com>
1374
1375 PR c++/13356
1376 * gdbtypes.c (strict_type_checking): New variable.
1377 (show_strict_type_checking): New function.
1378 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1379 if strict type checking is disabled.
1380 (_initialize_gdbtypes): Add "check type" subcommand.
1381 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1382
1383 2012-08-17 Keith Seitz <keiths@redhat.com>
1384
1385 * language.h (type_mode): Remove.
1386 (type_check): Remove.
1387 (struct language_defn): Remove la_type_check.
1388 (STRICT_TYPE): Remove unused macro.
1389 (type_error): Remove.
1390 * language.c (set_type_range_case): Renamed to ...
1391 (set_range_case): ... this. Update all callers.
1392 Remove type_mode/type_check.
1393 (type_mode): Remove.
1394 (type_check): Remove.
1395 (show_type_command): Remove.
1396 (set_type_command): Remove.
1397 (language_info): Remove type checking output.
1398 (type_error): Remove unused function.
1399 (range_error): Update comment.
1400 (unknown_language_defn): Remove la_type_check.
1401 (auto_language_defn): Likewise.
1402 (local_language_defn): Likewise.
1403 (_initialize_language): Remove "check type" subcommand.
1404 * ada-lang.c (ada_language_defn): Remove la_type_check.
1405 * c-lang.c (c_language_defn): Likewise.
1406 (cplus_language_defn): Likewise.
1407 (asm_language_defn): Likewise.
1408 (minimal_language_defn): Likewise.
1409 * d-lang.c (d_language_defn): Likewise.
1410 * f-lang.c (f_language_defn): Likewise.
1411 * go-lang.c (go_language_defn): Likewise.
1412 * jv-lang.c (java_language_defn): Likewise.
1413 * m2-lang.c (m2_language_defn): Likewise.
1414 * objc-lang.c (objc_language_defn): Likewise.
1415 * opencl-lang.c (opencl_language_defn): Likewise.
1416 * p-lang.c (pascal_language_defn): Likewise.
1417
1418 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1419
1420 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1421
1422 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1423
1424 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1425 New function.
1426 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1427 using the regache. Use ia64_hpux_get_register_from_save_state_t
1428 to access the bsp and bspstore registers if not.
1429
1430 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1431
1432 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1433 * breakpoint.c (detach_breakpoints): Change pid parameter into
1434 a ptid. Adjust code accordingly.
1435 * infrun.c (handle_inferior_event): Delete variable child_pid.
1436 Update call to detach_breakpoints to pass the child ptid for
1437 fork events.
1438 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1439 assert that inferior_ptid's lwp is zero.
1440 (linux_handle_extended_wait): Update call to detach_breakpoints.
1441 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1442 detach_breakpoints.
1443
1444 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1445
1446 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1447 parent, only call detach_breakpoints if tts.tts_event ==
1448 TTEVT_VFORK.
1449
1450 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1451
1452 * dwarf2-frame.c (dwarf2_frame_cache): Use
1453 get_frame_address_in_block instead of get_frame_pc as
1454 the bound for executing the frame's FDE.
1455
1456 2012-08-16 Yao Qi <yao@codesourcery.com>
1457
1458 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1459 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1460 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1461 (c_type_print_varspec_suffix): Likewise.
1462 * eval.c (evaluate_subexp_standard): Likewise.
1463 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1464 (f_type_print_varspec_suffix): Likewise.
1465 * gdbtypes.c (is_scalar_type): Likewise.
1466 (recursive_dump_type): Likewise.
1467 * infcall.c (value_arg_coerce): Likewise.
1468 * m2-valprint.c (m2_val_print): Likewise.
1469 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1470 (pascal_type_print_varspec_suffix): Likewise.
1471 (pascal_type_print_base): Likewise.
1472 * p-valprint.c (pascal_val_print): Likewise.
1473 (pascal_val_print): Likewise.
1474 * valops.c (value_slice): Likewise.
1475 * valprint.c (scalar_type_p): Likewise.
1476 * valarith.c (value_bitstring_subscript): Remove.
1477 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1478 Remove comment on TYPE_CODE_BITSTRING.
1479
1480 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1481 TYPE_CODE_BITSTRING.
1482
1483 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1484 slot 0.
1485
1486 2012-08-16 Yao Qi <yao@codesourcery.com>
1487
1488 * tracepoint.c (trace_find_none_command): Remove.
1489 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1490
1491 2012-08-16 Yao Qi <yao@codesourcery.com>
1492
1493 * remote.c (handle_notification): Remove parameter 'length'.
1494 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1495
1496 2012-08-15 Keith Seitz <keiths@redhat.com>
1497
1498 * gdbtypes.c (opaque_type_resolution): Make static.
1499 Add missing comment.
1500 (overload_debug): Add missing comment.
1501 (show_opaque_type_resolution): Likewise.
1502 (show_overload_debug): Likewise.
1503 (print_bit_vector): Remove unnecessary forward declaration.
1504 (print_arg_types): Likewise.
1505 (dump_fn_fieldlists): Likewise.
1506 (print_cplus_stuff): Likewise.
1507
1508 2012-08-15 Tom Tromey <tromey@redhat.com>
1509
1510 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1511 (gdb_bfd_ref): Initialize new field.
1512 (gdb_bfd_unref): Unref the archive BFD.
1513 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1514 parent archive.
1515
1516 2012-08-15 Tom Tromey <tromey@redhat.com>
1517
1518 PR python/14387:
1519 * python/py-bpevent.c (create_breakpoint_event_object): Update
1520 comment.
1521 * python/py-event.c (evpy_add_attribute): Update comment.
1522 * python/py-exitedevent.c (create_exited_event_object): Fix
1523 reference counting and error handling.
1524 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1525 Fix reference counting.
1526 * python/py-signalevent.c (create_signal_event_object): Fix
1527 reference counting and error handling.
1528 * python/py-stopevent.c (emit_stop_event): Fix reference
1529 counting.
1530 * python/py-threadevent.c (get_event_thread): Return a
1531 borrowed reference.
1532 * python/py-type.c (convert_field): Fix reference counting.
1533
1534 2012-08-15 Tom Tromey <tromey@redhat.com>
1535
1536 * dwarf2read.c (dwarf_decode_macro_bytes)
1537 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1538 as hash key.
1539
1540 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1541
1542 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1543 stepi, nexti, finish, next, step, jump, and continue commands.
1544 * infrun.c (_initialize_infrun): Update help text for the handle
1545 command.
1546
1547 2012-08-14 Doug Evans <dje@google.com>
1548
1549 * gdbtypes.c (struct extra): Delete, unused.
1550
1551 * gdbtypes.c: Whitespace cleanup.
1552 (address_space_name_to_int): Remove "extern" from definition.
1553 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1554
1555 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1556 TYPE_POINTER_TYPE (type).
1557
1558 2012-08-14 Gary Benson <gbenson@redhat.com>
1559
1560 * solib-svr4.c (svr4_free_library_list): Use free_so.
1561
1562 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1563
1564 * .gitignore: Add go-exp.c.
1565
1566 2012-08-13 Doug Evans <dje@google.com>
1567
1568 * value.c (show_convenience): Tweak comment.
1569 (_initialize_values): Mention convenience functions in the help text
1570 for "show convenience".
1571
1572 2012-08-13 Yao Qi <yao@codesourcery.com>
1573
1574 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1575 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1576 TERNOP_SLICE_COUNT.
1577 * eval.c (evaluate_subexp_standard): Likewise.
1578 * expprint.c (print_subexp_standard): Likewise.
1579 (dump_subexp_body_standard): Likewise.
1580 * parse.c (operator_length_standard): Likewise.
1581
1582 2012-08-13 Yao Qi <yao@codesourcery.com>
1583
1584 * std-operator.def: Remove OP_BITSTRING.
1585 * breakpoint.c (watchpoint_exp_is_const): Update.
1586 * eval.c (evaluate_subexp_standard): Remove handling to
1587 OP_BITSTRING.
1588 * expprint.c (print_subexp_standard): Likewise.
1589 (dump_subexp_body_standard): Likewise.
1590 * parse.c (operator_length_standard): Likewise.
1591 * valops.c (value_bitstring): Remove.
1592 * value.h: Remove the declaration of 'value_bitstring'.
1593
1594 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1595
1596 * linespec.c (find_methods): Remove unused variables `i1' and
1597 `name_len'.
1598 (decode_line_full): Likewise for `arg_start'.
1599
1600 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1601
1602 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1603 (zlib_decompress_section): Likewise for `section_data'.
1604 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1605
1606 2012-08-10 Doug Evans <dje@google.com>
1607
1608 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1609 * NEWS: Document them.
1610 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1611 function/strfns.py.
1612 * python/py-type.c (typy_array_1): New function.
1613 (typy_array): Call it.
1614 (typy_vector): New function.
1615 (type_object_methods): Add "vector".
1616 * python/lib/gdb/function/__init__.py: New file.
1617 * python/lib/gdb/function/strfns.py: New file.
1618
1619 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1620
1621 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1622 for TYPE_FIELD_BITPOS.
1623 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1624
1625 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1626
1627 PR cli/10436:
1628 * common/vec.h (VEC_merge): Define.
1629 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1630 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1631 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1632 * completer.c: Include gdb_signals.h.
1633 (signal_completer): Define.
1634 * completer.h (signal_completer): Add prototype.
1635 * infcmd.c (_initialize_infcmd): Assign the command
1636 completer for "signal" to handle_completer.
1637 * infrun.c: Include completer.h.
1638 (handle_completer): Define.
1639 (_initialize_infrun): Declare a new local variable c. Store the
1640 result of add_com("handle") to it. Assign the command
1641 completer for "handle" to handle_completer.
1642
1643 2012-08-09 Yao Qi <yao@codesourcery.com>
1644
1645 * cli/cli-decode.c (set_cmd_prefix): New.
1646 (lookup_cmd_for_prefixlist): New.
1647 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1648 of each cmd_list_element in *prefixlist.
1649 (add_setshow_cmd_full): set_cmd_prefix.
1650 (add_alias_cmd): Likewise.
1651 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1652 Declare 'auto_boolean_enums'.
1653 * cli/cli-setshow.c: Include "observer.h".
1654 (notify_command_param_changed_p): New.
1655 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1656 Remove 'static'.
1657 (do_setshow_command): Split it to ...
1658 (do_set_command, do_show_command): ... them. New.
1659 (do_set_command): Call observer_notify_command_param_changed if
1660 notify_command_param_changed_p returns true.
1661 (cmd_show_list): Caller update.
1662 * auto-load.c (set_auto_load_cmd): Likewise.
1663 * remote.c (show_remote_cmd): Likewise.
1664 * cli/cli-setshow.h: Update declarations.
1665 * top.c (execute_command): Call do_set_command and do_show_command.
1666
1667 * NEWS: Mention new MI notification.
1668 * mi/mi-interp.c: Declare mi_command_param_changed.
1669 (mi_interpreter_init): Attach mi_command_param_changed to
1670 observer command_param_changed.
1671 (mi_command_param_changed): New.
1672 Remove mi_suppress_breakpoint_notifications.
1673 Define global variable mi_suppress_notification.
1674 (mi_breakpoint_created): Update.
1675 (mi_breakpoint_deleted): Likewise.
1676 (mi_breakpoint_modified): Likewise.
1677 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1678 'gdb-set' and set mi_suppress_notification.
1679 * mi/mi-main.h: (mi_suppress_notification): New struct.
1680
1681 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1682 Jan Kratochvil <jan.kratochvil@redhat.com>
1683
1684 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1685
1686 2012-08-09 Yao Qi <yao@codesourcery.com>
1687
1688 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1689 (skiplist): Move it to skip.c.
1690 (init_cmd_lists): Remove code setting enablebreaklist and
1691 skiplist to NULL.
1692 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1693 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1694 skiplist.
1695 * gdbcmd.h: Likewise.
1696 * skip.c (_initialize_step_skip): Move 'skiplist' from
1697 cli/cli-cmds.c.
1698
1699 2012-08-09 Yao Qi <yao@codesourcery.com>
1700
1701 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1702 * gnu-nat.c, symfile.c: Likewise.
1703
1704 2012-08-08 Aaron Gamble <agamble@google.com>
1705
1706 * utils.c (prompt_for_continue_wait_time): New static global.
1707 (make_command_stats_cleanup): Initialize it.
1708 (report_command_stats): Subtract time waiting for user.
1709 (prompt_for_continue): Track time waiting for user.
1710 (defaulted_query): Track time waiting for user.
1711
1712 2012-08-08 Doug Evans <dje@google.com>
1713
1714 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1715 UNOP_MEMVAL_TYPE.
1716 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1717 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1718 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1719 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1720 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1721 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1722 elt.
1723 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1724 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1725 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1726 (dump_prefix_expression): Handle OP_TYPE.
1727
1728 2012-08-08 Keith Seitz <keiths@redhat.com>
1729
1730 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1731 addr_start.
1732
1733 2012-08-08 Doug Evans <dje@google.com>
1734
1735 * linux-thread-db.c: #include "gdb_vecs.h".
1736 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1737 updated.
1738 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1739 (thread_db_load_search): Use a vector to iterate over path elements.
1740 Handle text appearing after "$pdir".
1741
1742 * gdb_string.h: Moved to ...
1743 * common/gdb_string.h: ... here.
1744 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1745 gdb_string.h and gdb_assert.h.
1746
1747 2012-08-08 Yao Qi <yao@codesourcery.com>
1748
1749 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1750 (tic6x_value_to_register): Likewise.
1751 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1752 and set_gdbarch_value_to_register.
1753
1754 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Jean-Marc Saffroy <saffroy@gmail.com>
1756
1757 PR 11804
1758 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1759 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1760 * gcore.c (gcore_create_callback): New function comment. Add modified
1761 parameter. Only write modified regions. Set SEC_READONLY exactly
1762 according to MODIFIED.
1763 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1764 the passed modified value to FUNC.
1765 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1766 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1767 first. New variables modified and has_anonymous. Parse the lines of
1768 smaps file. Add the passed MODIFIED value to FUNC.
1769 * procfs.c (find_memory_regions_callback): Add the passed modified
1770 value.
1771
1772 2012-08-06 Tom Tromey <tromey@redhat.com>
1773
1774 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1775 (dwarf2_frame_cache): Use it.
1776 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1777 cache initialization constraint.
1778
1779 2012-08-06 Tom Tromey <tromey@redhat.com>
1780
1781 PR python/14386:
1782 * varobj.c (update_dynamic_varobj_children): Don't call
1783 PyIter_Check.
1784
1785 2012-08-06 Tom Tromey <tromey@redhat.com>
1786
1787 PR cli/14392:
1788 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1789
1790 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1791
1792 * NEWS: New entry for 'cd' default parameters.
1793 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1794
1795 2012-08-03 Tom Tromey <tromey@redhat.com>
1796
1797 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1798 return.
1799
1800 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1801
1802 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1803 to attempting lseek/write.
1804 (inf_child_fileio_pread): Likewise for pread.
1805
1806 2012-08-02 Yao Qi <yao@codesourcery.com>
1807
1808 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1809 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1810 add_setshow_zinteger_cmd.
1811 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1812 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1813 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1814 instead of add_setshow_zinteger_cmd.
1815 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1816 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1817 instead of add_setshow_zinteger_cmd.
1818 * frame.c (frame_debug): Add 'unsigned'.
1819 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1820 add_setshow_zinteger_cmd.
1821 * frame.h: Update the declaration of 'frame_debug'.
1822 * gdbtypes.c (overload_debug): Add 'unsigned'.
1823 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1824 add_setshow_zinteger_cmd.
1825 * inferior.h: Update declaration of 'debug_infrun'.
1826 * infrun.c (debug_infrun): Add 'unsigned'.
1827 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1828 add_setshow_zinteger_cmd.
1829 * jit.c (jit_debug): Add 'unsigned'.
1830 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1831 add_setshow_zinteger_cmd.
1832 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1833 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1834 instead of add_setshow_zinteger_cmd.
1835 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1836 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1837 add_setshow_zinteger_cmd.
1838 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1839 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1840 instead of add_setshow_zinteger_cmd.
1841 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1842 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1843 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1844 intead of add_setshow_zinteger_cmd.
1845 * mips-tdep.c (mips_debug): Add 'unsigned'.
1846 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1847 instead of add_setshow_zinteger_cmd.
1848 * monitor.c (monitor_debug): Add 'unsigned'.
1849 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1850 add_setshow_zinteger_cmd.
1851 * observer.c (observer_debug): Add 'unsigned'.
1852 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1853 add_setshow_zinteger_cmd.
1854 * parse.c (expressiondebug): Add 'unsigned'.
1855 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1856 add_setshow_zinteger_cmd.
1857 * record.c (record_debug): Add 'unsigned'.
1858 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1859 add_setshow_zinteger_cmd.
1860 * record.h: Update the declaration of 'record_debug'.
1861 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1862 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1863 add_setshow_zinteger_cmd.
1864 * serial.c (global_serial_debug_p): Add 'unsigned'.
1865 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1866 add_setshow_zinteger_cmd.
1867 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1868 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1869 add_setshow_zinteger_cmd.
1870 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1871 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1872 add_setshow_zinteger_cmd.
1873 * target.c (targetdebug): Add 'unsigned'.
1874 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1875 add_setshow_zinteger_cmd.
1876 * valops.c (overload_debug): Add 'unsigned'.
1877 * varobj.c (varobjdebug): Add 'unsigned'.
1878 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1879 add_setshow_zinteger_cmd.
1880 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1881 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1882 instead of add_setshow_zinteger_cmd.
1883
1884 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1885 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1886 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1887 instead of add_setshow_zinteger_cmd.
1888 * gdbarch.c, gdbarch.h: Re-generated.
1889
1890 2012-08-02 Yao Qi <yao@codesourcery.com>
1891
1892 * nto-tdep.c: Don't include cli/cli-decode.h and
1893 cli/cli-cmds.h.
1894 (_initialize_nto_tdep): Remove.
1895 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1896 Remove field.
1897 Remove macro nto_internal_debugging.
1898
1899 2012-08-01 Richard Henderson <rth@redhat.com>
1900
1901 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1902 (mep-*-*) [gdb_target_obs]: Likewise.
1903
1904 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1905
1906 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1907 linux_get_siginfo_type.
1908
1909 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1912 AT_ENTRY_POINT.
1913 (call_function_by_hand) <ON_STACK>: Call write_memory with
1914 gdbarch_breakpoint_from_pc, if possible.
1915 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1916 here.
1917
1918 2012-07-31 Yao Qi <yao@codesourcery.com>
1919
1920 * tracepoint.c: Add 'static' for some variables.
1921
1922 2012-07-31 Yao Qi <yao@codesourcery.com>
1923
1924 * go32-nat.c: Declare _initialize_go32_nat.
1925 * ser-go32.c: Declare _initialize_ser_dos.
1926 * top.c (do_chdir_cleanup): Add 'static'.
1927
1928 2012-07-30 Keith Seitz <keiths@redhat.com>
1929
1930 * linespec.c (linespec_lex_number): A number followed
1931 by quotes is a valid number, too.
1932
1933 2012-07-30 Tom Tromey <tromey@redhat.com>
1934
1935 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1936
1937 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1938
1939 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1940 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1941
1942 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1943
1944 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1945 invalid or reevaluated to prevent prevent references to possibly
1946 delete'd type objects being left in the varobj.
1947
1948 2012-07-27 Tom Tromey <tromey@redhat.com>
1949 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 * copying.awk: Print buffer-read-only and vi ro markers.
1952 * copying.c: Rebuild.
1953 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1954 * gdbarch.c, gdbarch.h: Rebuild.
1955 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1956 buffer-read-only and vi ro markers.
1957 * features/arm-with-iwmmxt.c: Rebuild.
1958 * features/arm-with-m-fpa-layout.c: Rebuild.
1959 * features/arm-with-m-vfp-d16.c: Rebuild.
1960 * features/arm-with-m.c: Rebuild.
1961 * features/arm-with-neon.c: Rebuild.
1962 * features/arm-with-vfpv2.c: Rebuild.
1963 * features/arm-with-vfpv3.c: Rebuild.
1964 * features/i386/amd64-avx-linux.c: Rebuild.
1965 * features/i386/amd64-avx.c: Rebuild.
1966 * features/i386/amd64-linux.c: Rebuild.
1967 * features/i386/amd64.c: Rebuild.
1968 * features/i386/i386-avx-linux.c: Rebuild.
1969 * features/i386/i386-avx.c: Rebuild.
1970 * features/i386/i386-linux.c: Rebuild.
1971 * features/i386/i386-mmx-linux.c: Rebuild.
1972 * features/i386/i386-mmx.c: Rebuild.
1973 * features/i386/i386.c: Rebuild.
1974 * features/i386/x32-avx-linux.c: Rebuild.
1975 * features/i386/x32-avx.c: Rebuild.
1976 * features/i386/x32-linux.c: Rebuild.
1977 * features/i386/x32.c: Rebuild.
1978 * features/mips-dsp-linux.c: Rebuild.
1979 * features/mips-linux.c: Rebuild.
1980 * features/mips64-dsp-linux.c: Rebuild.
1981 * features/mips64-linux.c: Rebuild.
1982 * features/rs6000/powerpc-32.c: Rebuild.
1983 * features/rs6000/powerpc-32l.c: Rebuild.
1984 * features/rs6000/powerpc-403.c: Rebuild.
1985 * features/rs6000/powerpc-403gc.c: Rebuild.
1986 * features/rs6000/powerpc-405.c: Rebuild.
1987 * features/rs6000/powerpc-505.c: Rebuild.
1988 * features/rs6000/powerpc-601.c: Rebuild.
1989 * features/rs6000/powerpc-602.c: Rebuild.
1990 * features/rs6000/powerpc-603.c: Rebuild.
1991 * features/rs6000/powerpc-604.c: Rebuild.
1992 * features/rs6000/powerpc-64.c: Rebuild.
1993 * features/rs6000/powerpc-64l.c: Rebuild.
1994 * features/rs6000/powerpc-7400.c: Rebuild.
1995 * features/rs6000/powerpc-750.c: Rebuild.
1996 * features/rs6000/powerpc-860.c: Rebuild.
1997 * features/rs6000/powerpc-altivec32.c: Rebuild.
1998 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1999 * features/rs6000/powerpc-altivec64.c: Rebuild.
2000 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2001 * features/rs6000/powerpc-cell32l.c: Rebuild.
2002 * features/rs6000/powerpc-cell64l.c: Rebuild.
2003 * features/rs6000/powerpc-e500.c: Rebuild.
2004 * features/rs6000/powerpc-e500l.c: Rebuild.
2005 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2006 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2007 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2008 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2009 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2010 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2011 * features/rs6000/powerpc-vsx32.c: Rebuild.
2012 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2013 * features/rs6000/powerpc-vsx64.c: Rebuild.
2014 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2015 * features/rs6000/rs6000.c: Rebuild.
2016 * features/s390-linux32.c: Rebuild.
2017 * features/s390-linux32v1.c: Rebuild.
2018 * features/s390-linux32v2.c: Rebuild.
2019 * features/s390-linux64.c: Rebuild.
2020 * features/s390-linux64v1.c: Rebuild.
2021 * features/s390-linux64v2.c: Rebuild.
2022 * features/s390x-linux64.c: Rebuild.
2023 * features/s390x-linux64v1.c: Rebuild.
2024 * features/s390x-linux64v2.c: Rebuild.
2025 * features/tic6x-c62x-linux.c: Rebuild.
2026 * features/tic6x-c62x.c: Rebuild.
2027 * features/tic6x-c64x-linux.c: Rebuild.
2028 * features/tic6x-c64x.c: Rebuild.
2029 * features/tic6x-c64xp-linux.c: Rebuild.
2030 * features/tic6x-c64xp.c: Rebuild.
2031
2032 2012-07-27 Tom Tromey <tromey@redhat.com>
2033
2034 * c-exp.y (classify_name): Avoid assignment in condition.
2035
2036 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2037
2038 * amd64-windows-tdep.c: Include "frame.h".
2039 (amd64_windows_skip_trampoline_code): New function.
2040 (amd64_windows_init_abi): Add trampoline registration.
2041
2042 2012-07-27 Yao Qi <yao@codesourcery.com>
2043
2044 * tracepoint.c (cur_traceframe_number): Remove.
2045 (set_tfile_traceframe): Remove.
2046 (tfile_trace_find, tfile_fetch_registers): Update callers.
2047 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2048 (tfile_open, tfile_trace_find): Likewise.
2049
2050 2012-07-27 Yao Qi <yao@codesourcery.com>
2051
2052 * thread.c (switch_to_thread): Don't call registers_changed.
2053
2054 2012-07-26 Tom Tromey <tromey@redhat.com>
2055
2056 * Makefile.in (SFILES): Remove objc-exp.y.
2057 (YYFILES): Remove objc-exp.c.
2058 (YYOBJ): Remove objc-exp.o.
2059 (local-maintainer-clean): Don't mention objc-exp.c.
2060 * c-exp.y: Include objc-lang.h.
2061 (%union) <class>: New field.
2062 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2063 (exp): Clone subscript production for OBJC_LBRAC. Add various
2064 Objective C productions.
2065 (msglist, msgarglist, msgarg): New productions.
2066 (array_mod, func_mod, operator): Clone productions for
2067 OBJC_LBRAC.
2068 (parse_string_or_char): Handle '@' strings.
2069 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2070 (classify_name): Check la_name_of_this. Recognize ObjC class
2071 names.
2072 * objc-exp.y: Remove.
2073 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2074 * objc-lang.h (objc_parse, objc_error): Don't declare.
2075
2076 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2077
2078 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2079
2080 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2081
2082 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2083 and decrement.
2084
2085 2012-07-26 Tom Tromey <tromey@redhat.com>
2086
2087 * copying.c: Rebuild.
2088 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2089 'no_class'.
2090
2091 2012-07-26 Tom Tromey <tromey@redhat.com>
2092
2093 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2094 immediate_quit.
2095 (print_objfile_statistics): Likewise.
2096 (maintenance_print_symbols): Likewise.
2097 (maintenance_print_msymbols): Likewise.
2098 (maintenance_print_objfiles): Likewise.
2099 * psymtab.c (print_partial_symbols): Call QUIT.
2100 (maintenance_print_psymbols): Likewise. Don't modify
2101 immediate_quit.
2102 * copying.c (show_copying_command): Don't modify immediate_quit.
2103 (show_warranty_command): Likewise.
2104 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2105
2106 2012-07-26 Keith Seitz <keiths@redhat.com>
2107
2108 * linespec.c (linespec_lexer_lex_number): The input
2109 is also a valid number if the next character is a comma
2110 or colon.
2111
2112 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2113
2114 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2115 configure options.
2116
2117 2012-07-26 Tristan Gingold <gingold@adacore.com>
2118
2119 * machoread.c: Include gdb_bfd.h.
2120
2121 2012-07-26 Tristan Gingold <gingold@adacore.com>
2122
2123 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2124 offset.
2125
2126 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2127
2128 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2129 SIZE to size_t.
2130 (dwarf2_evaluate_loc_desc): Likewise.
2131 (dwarf2_loc_desc_needs_frame): Likewise.
2132 (locexpr_describe_location_1): Likewise.
2133 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2134 size_t.
2135 (struct dwarf2_loclist_baton): Likewise.
2136 * dwarf2read.c (struct dwarf_block): Likewise.
2137 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2138 (decode_locdesc): Expand SIZE and I to size_t.
2139
2140 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2141
2142 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2143
2144 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2145
2146 * doublest.c (convert_doublest_to_floatformat): If the exponent
2147 is too small, treat the value as zero. If the exponent is too
2148 large, treat the value as infinity.
2149
2150 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2151
2152 * configure.ac: Add --enable-lmcheck configure option.
2153 * configure: Regenerate.
2154
2155 2012-07-25 Tom Tromey <tromey@redhat.com>
2156
2157 * NEWS: Mention maint info bfds.
2158 * gdb_bfd.c (all_bfds): New global.
2159 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2160 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2161 New functions.
2162
2163 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2164
2165 * configure.tgt: Add v850*-*-rtems*.
2166
2167 2012-07-25 Tom Tromey <tromey@redhat.com>
2168
2169 * macrotab.c (macro_bcache_str): Remove cast.
2170
2171 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2172
2173 * linespec.c (linespec_lexer_lex_number): Update comments,
2174 change the return and add check to make sure the input is
2175 the decimal numbers.
2176 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2177 false, call linespec_lexer_lex_string.
2178
2179 2012-07-24 Tom Tromey <tromey@redhat.com>
2180
2181 * symfile.c (symbol_file_add): Don't open BFD twice.
2182
2183 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2184
2185 * breakpoint.c (create_breakpoint): Store condition for pending
2186 breakpoints.
2187
2188 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2189
2190 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2191 (m68k_return_value): Handle complex types like structures.
2192 (m68k_svr4_return_value): Likewise.
2193
2194 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2195
2196 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2197 parameters to bfd_get_section_name.
2198
2199 2012-07-24 Yao Qi <yao@codesourcery.com>
2200
2201 * cli/cli-setshow.c: Handle case 'var_uinteger'
2202 and 'var_zuninteger' together. Handle case 'var_integer' and
2203 'var_zinteger' together.
2204
2205 2012-07-23 Keith Seitz <keiths@redhat.com>
2206
2207 * linespec.c (convert_linespec_to_sal): Don't add
2208 any symbols to the result vector if symbol_to_sal
2209 returns zero.
2210
2211 2012-07-23 Keith Seitz <keiths@redhat.com>
2212
2213 * linespec.c (decode_objc): Record the function name
2214 in the linespec.
2215
2216 2012-07-23 Tom Tromey <tromey@redhat.com>
2217
2218 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2219 counting.
2220 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2221 (map_vmap): Acquire a reference to the BFD.
2222
2223 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2224
2225 * p-valprint.c (pascal_object_print_value): Replace potentially
2226 unsafe alloca with xmalloc/xfree.
2227 * valops.c (search_struct_method): Likewise.
2228
2229 2012-07-23 Tom Tromey <tromey@redhat.com>
2230
2231 * solib-svr4.c (enable_break): Update.
2232 * bfd-target.h (target_bfd_reopen): Update documentation.
2233
2234 2012-07-23 Tom Tromey <tromey@redhat.com>
2235
2236 * symfile.c (separate_debug_file_exists): Update.
2237 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2238 (reread_symbols): Update.
2239 * elfread.c (build_id_verify): Update.
2240 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2241 bfd_open_maybe_remote.
2242
2243 2012-07-23 Tom Tromey <tromey@redhat.com>
2244
2245 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2246
2247 2012-07-23 Tom Tromey <tromey@redhat.com>
2248
2249 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2250 and 'abfd'.
2251 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2252 and 'abfd'.
2253 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2254 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2255 'abfd'.
2256 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2257 * objfiles.c (allocate_objfile): Acquire a new reference.
2258 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2259 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2260 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2261 a cleanup for 'nbfd'.
2262 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2263 for 'nbfd'.
2264 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2265 make a cleanup for 'abfd'.
2266 (symbol_file_add): Make a BFD cleanup.
2267
2268 2012-07-23 Tom Tromey <tromey@redhat.com>
2269
2270 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2271 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2272 * corelow.c (core_open): Use gdb_bfd_fopen.
2273 * dsrec.c (load_srec): Use gdb_bfd_openr.
2274 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2275 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2276 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2277 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2278 (gdb_bfd_fdopenr): New functions.
2279 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2280 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2281 (gdb_bfd_fdopenr): Declare.
2282 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2283 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2284 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2285 gdb_bfd_openr_next_archived_file.
2286 (macho_check_dsym): Use gdb_bfd_openr.
2287 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2288 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2289 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2290 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2291 gdb_bfd_openr.
2292 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2293 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2294 gdb_bfd_openr_next_archived_file.
2295 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2296 Use gdb_bfd_openr.
2297 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2298 gdb_bfd_openr.
2299 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2300 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2301 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2302 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2303 (symfile_bfd_open): Use gdb_bfd_fopen.
2304 (generic_load): Use gdb_bfd_openr.
2305 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2306
2307 2012-07-23 Tom Tromey <tromey@redhat.com>
2308
2309 * bfd-target.c (target_bfd_reopen): Update.
2310 * cli/cli-dump.c (bfd_openr_with_cleanup)
2311 (bfd_openw_with_cleanup): Update.
2312 * corelow.c (core_open): Update.
2313 * dsrec.c (load_srec): Update.
2314 * exec.c (exec_file_attach): Update.
2315 * gcore.c (create_gcore_bfd): Update.
2316 * gdb_bfd.c (gdb_bfd_ref): Return void.
2317 (gdb_bfd_open): Update.
2318 * gdb_bfd.h (gdb_bfd_ref): Return void.
2319 Update comments.
2320 * jit.c (jit_bfd_try_read_symtab): Update.
2321 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2322 * machoread.c (macho_symfile_read_all_oso): Update.
2323 (macho_check_dsym): Update.
2324 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2325 * remote-m32r-sdi.c (m32r_load): Update.
2326 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2327 * rs6000-nat.c (add_vmap): Update.
2328 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2329 Update.
2330 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2331 * solib-spu.c (spu_bfd_open): Update.
2332 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2333 * spu-linux-nat.c (spu_bfd_open): Update.
2334 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2335 (generic_load): Update.
2336 * windows-nat.c (windows_make_so): Update.
2337
2338 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2339
2340 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2341
2342 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2343
2344 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2345 SIGTRAMP_FRAME unwinding.
2346
2347 2012-07-20 Doug Evans <dje@google.com>
2348
2349 * NEWS: Document new options "set/show use-deprecated-index-sections",
2350 and delete reference to --use-deprecated-index-sections.
2351 * symfile.h (use_deprecated_index_sections): Delete.
2352 * dwarf2read.c (use_deprecated_index_sections): Make static.
2353 (read_index_from_section): Update wording of how to load
2354 deprecated index sections.
2355 (_initialize_dwarf2_read): New options
2356 "set/show use-deprecated-index-sections".
2357 * main.c (captured_main): Delete --use-deprecated-index-sections.
2358
2359 2012-07-20 Pedro Alves <palves@redhat.com>
2360
2361 PR threads/11692
2362 PR gdb/12203
2363
2364 * infrun.c (handle_inferior_event) <new thread>: Don't special
2365 case minus_one_ptid.
2366 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2367 * linux-thread-db.c (thread_get_info_callback): Don't return early
2368 if the thread is zombie.
2369 (thread_from_lwp): Change return type to void. Rewrite stale
2370 comment.
2371 (attach_thread): Don't return early if the thread is zombie,
2372 instead set its "dying" flag.
2373 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2374 (find_new_threads_callback): Don't return early if the thread is
2375 zombie.
2376
2377 2012-07-20 Pedro Alves <palves@redhat.com>
2378
2379 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2380 * target.c (target_wait): Likewise.
2381 (str_comma_list_concat_elem, do_option, target_options_to_string):
2382 New functions.
2383 * target.h (target_options_to_string): Declare.
2384
2385 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2386 Tom Tromey <tromey@redhat.com>
2387
2388 * dwarf2read.c (dwarf_decode_macros)
2389 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2390 DW_MACRO_GNU_transparent_include_alt>: New cases.
2391 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2392 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2393
2394 2012-07-20 Tom Tromey <tromey@redhat.com>
2395
2396 * dwarf2read.c (try_open_dwo_file): Don't call
2397 gdb_bfd_stash_filename.
2398
2399 2012-07-20 Pedro Alves <palves@redhat.com>
2400
2401 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2402 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2403 (i386_process_record): Tweak description comments.
2404
2405 2012-07-20 Pedro Alves <palves@redhat.com>
2406
2407 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2408 (i386_process_record): Use record_read_memory.
2409 * record.c (record_read_memory): New function.
2410 (record_arch_list_add_mem, record_exec_insn): Use
2411 record_read_memory.
2412 * record.h (record_read_memory): Declare.
2413
2414 2012-07-20 Yao Qi <yao@codesourcery.com>
2415
2416 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2417 NULL for xfree.
2418
2419 2012-07-19 Pedro Alves <palves@redhat.com>
2420
2421 * record.c (record_resume): Ask the target beneath to report all
2422 signals.
2423
2424 2012-07-19 Doug Evans <dje@google.com>
2425
2426 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2427 there's no section at address zero.
2428 (dwarf2_record_block_ranges): Ditto.
2429
2430 2012-07-19 Yao Qi <yao@codesourcery.com>
2431
2432 * command.h, remote.c: Fix a typo in comment.
2433
2434 2012-07-19 Tom Tromey <tromey@redhat.com>
2435
2436 PR exp/13206:
2437 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2438 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2439 OP_DECLTYPE>: New cases.
2440 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2441 (type_exp): Add new productions.
2442 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2443 and decltype.
2444 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2445 New case.
2446 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2447 OP_DECLTYPE>: New case.
2448 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2449 New case.
2450 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2451 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2452
2453 2012-07-19 Tom Tromey <tromey@redhat.com>
2454
2455 * c-exp.y (enum token_flags): New.
2456 (struct token) <cxx_only>: Remove.
2457 <flags>: New field.
2458 (tokentab3, tokentab2, ident_tokens): Update.
2459 (lex_one_token): Update. Handle FLAG_SHADOW.
2460
2461 2012-07-19 Tom Tromey <tromey@redhat.com>
2462
2463 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2464 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2465 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2466 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2467 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2468 type_exp production where appropriate.
2469 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2470 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2471 <UNOP_MEMVAL_TYPE>: New case.
2472 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2473 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2474 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2475 <UNOP_MEMVAL_TYPE>: New case.
2476 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2477 UNOP_REINTERPRET_CAST>: Update.
2478 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2479 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2480 UNOP_REINTERPRET_CAST>: Update.
2481 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2482 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2483 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2484 constants.
2485
2486 2012-07-19 Yao Qi <yao@codesourcery.com>
2487 Jan Kratochvil <jan.kratochvil@redhat.com>
2488
2489 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2490 and case 'var_optional_filename' together.
2491 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2492 instead of add_setshow_optional_filename_cmd for setshow command
2493 'args'. Set completer for 'set args'.
2494
2495 2012-07-18 Doug Evans <dje@google.com>
2496
2497 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2498 * common/gdb_vecs.c: New file, contents from utils.c.
2499 * common/host-defs.h: New file, contents from defs.h.
2500 * utils.h: New file, contents from defs.h.
2501 * defs.h: Move all declarations of objects defined in utils.c
2502 to utils.h (except QUIT() and related).
2503 #include "utils.h", "host-defs.h".
2504 * probe.h (probe_p): Move here from gdb_vecs.h.
2505 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2506 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2507 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2508 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2509 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2510 (COMMON_OBS): Add gdb_vecs.o.
2511 (gdb_vecs.o): New rule.
2512
2513 2012-07-18 Keith Seitz <keiths@redhat.com>
2514
2515 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2516 parameter. If non-zero, use SYMNAME as the canonical name
2517 for the SaL.
2518 Update all callers.
2519 (convert_linespec_to_sals): Use add_sal_to_sals for
2520 expressions, too.
2521 (decode_line_full): No need to "fill in missing canonical names"
2522 anymore. Simply make cleanups for the allocated names.
2523
2524 2012-07-18 Keith Seitz <keiths@redhat.com>
2525
2526 * linespec.c (struct linespec): Constify expression,
2527 source_filename, function_name, and label_name.
2528 (symbol_not_found_error): Make all parameters const.
2529 (linespec_parser_delete): No need to check for NULL
2530 when using xfree. Cast const char * to char * for xfree.
2531
2532 2012-07-18 Keith Seitz <keiths@redhat.com>
2533
2534 * breakpoint.c (invalid_thread_id_error): New function.
2535 (find_condition_and_thread): Use invalid_thread_id_error.
2536 (watch_command_1): Likewise.
2537
2538 2012-07-18 Tom Tromey <tromey@redhat.com>
2539
2540 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2541 * contrib/cc-with-tweaks.sh: New file.
2542
2543 2012-07-18 Tom Tromey <tromey@redhat.com>
2544
2545 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2546 (locate_dwz_sections): Recognize .gdb_index.
2547 (create_cus_from_index_list): New function.
2548 (create_cus_from_index): Use it. Handle .dwz data.
2549 (read_index_from_section): New function, extracted from
2550 dwarf2_read_index.
2551 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2552 if needed.
2553
2554 2012-07-18 Tom Tromey <tromey@redhat.com>
2555
2556 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2557 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2558 <is_dwz>: New field.
2559 (struct dwz_file): New.
2560 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2561 (locate_dwz_sections, dwarf2_get_dwz_file)
2562 (get_abbrev_section_for_cu): New functions.
2563 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2564 (read_and_check_type_unit_head): Add abbrev_section argument.
2565 (create_debug_types_hash_table): Update.
2566 (init_cutu_and_read_dies): Use proper abbrev section.
2567 (init_cutu_and_read_dies_no_follow): Likewise.
2568 (set_partial_user): Do nothing if PST==NULL.
2569 (read_comp_units_from_section): New function.
2570 (create_all_comp_units): Use it.
2571 (scan_partial_symbols, partial_die_parent_scope): Update.
2572 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2573 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2574 (find_partial_die): Add offset_in_dwz argument. Update.
2575 (guess_partial_die_structure_name, fixup_partial_die): Update.
2576 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2577 DW_FORM_GNU_strp_alt.
2578 (read_indirect_string_from_dwz): New function.
2579 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2580 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2581 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2582 (follow_die_offset): Add offset_in_dwz argument.
2583 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2584 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2585 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2586 Handle new macro forms.
2587 (dwarf_decode_macros): Update.
2588 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2589 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2590 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2591 (create_debug_types_hash_table): Use correct abbrev section.
2592 (get_debug_line_section): New function.
2593 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2594 (process_full_comp_unit): Pass 'required' argument to
2595 end_symtab_get_static_block.
2596 * buildsym.h (end_symtab_get_static_block): Update.
2597 * buildsym.c (end_symtab_get_static_block): Add 'required'
2598 argument.
2599 (end_symtab, end_expandable_symtab): Update.
2600
2601 2012-07-18 Tom Tromey <tromey@redhat.com>
2602
2603 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2604 (pagesize): Remove.
2605 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2606 (zlib_decompress_section): Remove.
2607 (dwarf2_read_section): Use gdb_bfd_map_section.
2608 (munmap_section_buffer): Remove.
2609 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2610 munmap_section_buffer.
2611 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2612 (struct gdb_bfd_section_data): New.
2613 (free_one_bfd_section): New function.
2614 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2615 (get_section_descriptor, zlib_decompress_section)
2616 (gdb_bfd_map_section): New functions.
2617 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2618
2619 2012-07-18 Tom Tromey <tromey@redhat.com>
2620
2621 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2622
2623 2012-07-18 Tom Tromey <tromey@redhat.com>
2624
2625 * gdb_bfd.c (struct gdb_bfd_data): New.
2626 (gdb_bfd_cache): New global.
2627 (struct gdb_bfd_cache_search): New.
2628 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2629 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2630 * gdb_bfd.h (gdb_bfd_open): Declare.
2631
2632 2012-07-18 Tom Tromey <tromey@redhat.com>
2633
2634 * utils.c (make_cleanup_bfd_unref): Rename from
2635 make_cleanup_bfd_close.
2636 * defs.h (make_cleanup_bfd_unref): Rename from
2637 make_cleanup_bfd_close.
2638 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2639 (bfd_openw_with_cleanup): Update.
2640 * corelow.c (core_open): Update.
2641 * dsrec.c (load_srec): Update.
2642 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2643 * remote-m32r-sdi.c (m32r_load): Update.
2644 * remote-mips.c (mips_load_srec): Update.
2645 (pmon_load_fast): Update.
2646 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2647 Update.
2648 (darwin_bfd_open): Update.
2649 * solib.c (solib_bfd_fopen): Update.
2650 * symfile-mem.c (symbol_file_add_from_memory): Update.
2651 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2652 (symfile_bfd_open): Update.
2653 (generic_load): Update.
2654
2655 2012-07-18 Tom Tromey <tromey@redhat.com>
2656
2657 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2658 (pmon_load_fast): Likewise.
2659 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2660 (m32r_upload_command): Likewise.
2661 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2662 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2663 Use make_cleanup_bfd_close.
2664
2665 2012-07-18 Tom Tromey <tromey@redhat.com>
2666
2667 * symfile.c (symfile_bfd_open): Don't copy name. Call
2668 gdb_bfd_stash_filename.
2669 (load_command): Open the new BFD before freeing the old.
2670 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2671 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2672 Call gdb_bfd_stash_filename.
2673 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2674 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2675 gdb_bfd_stash_filename.
2676 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2677 Free found_pathname.
2678 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2679 gdb_bfd_stash_filename.
2680 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2681 * machoread.c (macho_add_oso_symfile): Call
2682 gdb_bfd_stash_filename.
2683 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2684 gdb_bfd_stash_filename.
2685 (macho_check_dsym): Don't copy filename. Call
2686 gdb_bfd_stash_filename.
2687 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2688 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2689 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2690 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2691 * exec.c (exec_close): Don't free the BFD's filename.
2692 (exec_file_attach): Don't copy the filename. Call
2693 gdb_bfd_stash_filename.
2694 * corelow.c (core_close): Don't free the BFD's filename.
2695 (core_open): Call gdb_bfd_stash_filename.
2696 * corefile.c (reopen_exec_file): Remove #if 0 code.
2697 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2698 pathname.
2699 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2700
2701 2012-07-18 Tom Tromey <tromey@redhat.com>
2702
2703 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2704 gdb_bfd_unref.
2705 (free_dwo_file): Use gdb_bfd_unref.
2706 * cli/cli-dump.c: Include gdb_bfd.h.
2707 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2708 (bfd_openr_with_cleanup): Likewise.
2709 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2710 gdb_bfd_unref.
2711 * utils.c: Include gdb_bfd.h.
2712 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2713 * symfile.c: Include gdb_bfd.h.
2714 (separate_debug_file_exists): Use gdb_bfd_unref.
2715 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2716 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2717 (generic_load): Use gdb_bfd_ref.
2718 (reread_symbols): Use gdb_bfd_unref.
2719 * symfile-mem.c: Include gdb_bfd.h.
2720 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2721 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2722 * solib.c: Include gdb_bfd.h.
2723 (solib_bfd_fopen): Use gdb_bfd_ref.
2724 (solib_bfd_open): Use gdb_bfd_unref.
2725 (free_so_symbols): Use gdb_bfd_unref.
2726 (reload_shared_libraries_1): Use gdb_bfd_unref.
2727 * solib-spu.c: Include gdb_bfd.h.
2728 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2729 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2730 gdb_bfd_unref.
2731 * solib-frv.c: Include gdb_bfd.h.
2732 (enable_break2): Use gdb_bfd_unref.
2733 * solib-dsbt.c: Include gdb_bfd.h.
2734 (enable_break2): Use gdb_bfd_unref.
2735 * solib-darwin.c: Include gdb_bfd.h.
2736 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2737 gdb_bfd_unref.
2738 (darwin_bfd_open): Use gdb_bfd_unref.
2739 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2740 * remote-mips.c: Include gdb_bfd.h.
2741 (mips_load_srec): Use gdb_bfd_ref.
2742 (pmon_load_fast): Use gdb_bfd_ref.
2743 * remote-m32r-sdi.c: Include gdb_bfd.h.
2744 (m32r_load): Use gdb_bfd_ref.
2745 * record.c: Include gdb_bfd.h.
2746 (record_save_cleanups): Use gdb_bfd_unref.
2747 (cmd_record_save): Use gdb_bfd_unref.
2748 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2749 gdb_bfd_unref.
2750 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2751 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2752 * objfiles.c: Include gdb_bfd.h.
2753 (free_objfile): Use gdb_bfd_unref.
2754 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2755 gdb_bfd.c.
2756 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2757 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2758 (macho_check_dsym): Likewise.
2759 * m32r-rom.c: Include gdb_bfd.h.
2760 (m32r_load): Use gdb_bfd_ref.
2761 (m32r_upload_command): Use gdb_bfd_ref.
2762 * jit.c: Include gdb_bfd.h.
2763 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2764 * gdb_bfd.h: New file.
2765 * gdb_bfd.c: New file.
2766 * gcore.c: Include gdb_bfd.h.
2767 (create_gcore_bfd): Use gdb_bfd_ref.
2768 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2769 (gcore_command): Use gdb_bfd_unref.
2770 * exec.c: Include gdb_bfd.h.
2771 (exec_close): Use gdb_bfd_unref.
2772 (exec_close_1): Use gdb_bfd_unref.
2773 (exec_file_attach): Use gdb_bfd_ref.
2774 * elfread.c: Include gdb_bfd.h.
2775 (build_id_verify): Use gdb_bfd_unref.
2776 * dsrec.c: Include gdb_bfd.h.
2777 (load_srec): Use gdb_bfd_ref.
2778 * corelow.c: Include gdb_bfd.h.
2779 (core_close): Use gdb_bfd_unref.
2780 (core_open): Use gdb_bfd_ref.
2781 * bfd-target.c: Include gdb_bfd.h.
2782 (target_bfd_xclose): Use gdb_bfd_unref.
2783 (target_bfd_reopen): Use gdb_bfd_ref.
2784 * Makefile.in (SFILES): Add gdb_bfd.c.
2785 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2786 (COMMON_OBS): Add gdb_bfd.o.
2787
2788 2012-07-18 Keith Seitz <keiths@redhat.com>
2789
2790 * breakpoint.c (find_condition_and_thread): Initialize
2791 TASK and REST.
2792 (create_breakpiont): find_condition_and_thread will now
2793 initialize COND_STRING, THREAD, and REST (and TASK).
2794 (addr_string_to_sals): Likewise.
2795
2796 2012-07-18 Pedro Alves <palves@redhat.com>
2797
2798 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2799 Pull the single step breakpoints out of the target.
2800
2801 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2802
2803 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2804 * stap-probe.c (compile_probe_arg): Likewise.
2805
2806 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2807
2808 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2809 (elf_compile_to_ax): Likewise.
2810 * infrun.c (insert_exception_resume_from_probe): Likewise.
2811 (check_exception_resume): Remove `objfile' variable.
2812 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2813 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2814 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2815 (compare_entries): Rename to...
2816 (compare_probes): ...this. Adjust function to work with
2817 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2818 respectively.
2819 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2820 `VEC (probe_p) *'.
2821 (print_ui_out_info): Adjust argument to be `struct probe *'.
2822 (info_probes_for_ops): Adjust internal computations to use
2823 `VEC (probe_p) *'.
2824 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2825 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2826 gen_info_probes_table_values>: Remove `objfile' argument.
2827 (struct probe) <objfile>: New field.
2828 (find_probe_by_pc): Remove `objfile' argument.
2829 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2830 (stap_get_probe_argument_count): Likewise.
2831 (stap_get_arg): Likewise.
2832 (stap_evaluate_probe_argument): Likewise.
2833 (stap_compile_to_ax): Likewise.
2834 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2835 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2836 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2837 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2838 sym_compile_to_ax>: Likewise.
2839
2840 2012-07-18 Terry Guo <terry.guo@arm.com>
2841
2842 PR 14329
2843 * defs.h (GDB_MI_MSG_WIDTH): New.
2844 * ser_base (ser_base_read_error_fd): New function.
2845 (do_ser_base_readchar): Poll error file descriptor as well as
2846 standard output.
2847 (generic_readchar): Refactor error handling.
2848
2849 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2850
2851 * NEWS: Create a new section for the next release branch.
2852 Rename the section of the current branch, now that it has
2853 been cut.
2854
2855 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2856
2857 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2858 * version.in: Bump version to 7.5.50.20120718-cvs.
2859
2860 2012-07-17 Keith Seitz <keiths@redhat.com>
2861
2862 * linespec.c (linespec_parse_line_offset): Make parameter
2863 const.
2864
2865 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 PR 11914
2868 * f-valprint.c (info_common_command): New variable frame_id.
2869 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2870 * printcmd.c (print_variable_and_value): Extend function comment.
2871 Add comment for invalidated FRAME.
2872 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2873 FI form FRAME_ID after each print_frame_local_vars.
2874 (struct print_variable_and_value_data): Change frame to frame_id.
2875 (do_print_variable_and_value): New variable frame, initialize it from
2876 p->frame_id. Add comment for invalidated FRAME.
2877 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2878 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2879 for invalidated FRAME.
2880
2881 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2882 Pedro Alves <palves@redhat.com>
2883
2884 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2885 loop.
2886
2887 2012-07-16 Tom Tromey <tromey@redhat.com>
2888
2889 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2890
2891 2012-07-15 Doug Evans <dje@google.com>
2892
2893 * dwarf2read.c (stmt_list_hash): New struct.
2894 (type_unit_group): Embed "per_cu" member, remove pointer.
2895 New union member "t", move member "tus" into it, all uses updated.
2896 New member "hash", replaces member "line_offset, all uses updated.
2897 (quick_file_names): Replace member "offset" with "hash", all uses
2898 updated.
2899 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2900 (hash_file_name_entry, eq_file_name_entry): Call them.
2901 (hash_type_unit_group, eq_type_unit_group): Ditto.
2902 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2903 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2904 (dw2_get_file_names): Update.
2905 (create_type_unit_group): Replace "per_cu" arg with "cu".
2906 All callers updated. Fix "quick" (.gdb_index) handling.
2907 (get_type_unit_group): Replace "per_cu" arg with "cu".
2908 All callers updated.
2909 (build_type_unit_groups): Don't reset tu_stats.
2910
2911 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2912 "tab_cur_size". Change member "tab" to be a htab_t.
2913 (create_filename_seen_cache): Update.
2914 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2915 (filename_seen): Update.
2916
2917 2012-07-13 Doug Evans <dje@google.com>
2918
2919 * symtab.c (filename_seen): Update comment.
2920
2921 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2922 Doug Evans <dje@google.com>
2923
2924 * buildsym.c (end_symtab_1): Split it to ...
2925 (end_symtab_get_static_block): ... this ...
2926 (end_symtab_from_static_block): ... and this function.
2927 (end_symtab, end_expandable_symtab): Call them.
2928 * buildsym.h (end_symtab_get_static_block)
2929 (end_symtab_from_static_block): New declarations.
2930 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2931 Set its valid CU ranges.
2932
2933 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2934
2935 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2936 DW_OP_GNU_parameter_ref.
2937
2938 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2939
2940 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2941 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2942
2943 2012-07-13 Doug Evans <dje@google.com>
2944
2945 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2946 (filename_seen_cache): New struct.
2947 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2948 (create_filename_seen_cache): New function.
2949 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2950 (filename_seen): Delete arg "first". New arg "cache". All callers
2951 updated.
2952 (output_source_filename_data): New struct.
2953 (output_source_filename): Delete arg "first". New arg "data".
2954 All callers updated.
2955 (sources_info): Delete local "first". New locals "data", "cleanups".
2956 Rewrite to use filename_seen_cache.
2957 (add_partial_filename_data): Delete member "first". New member
2958 "filename_seen_cache". All uses updated.
2959 (make_source_files_completion_list): Rewrite to use
2960 filename_seen_cache.
2961
2962 2012-07-12 Doug Evans <dje@google.com>
2963
2964 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2965
2966 2012-07-10 Doug Evans <dje@google.com>
2967
2968 PR gdb/13498
2969 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2970 all_type_unit_groups, type_unit_groups, tu_stats.
2971 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2972 All uses updated. Add type_unit_group to union "s".
2973 (type_unit_group): New struct.
2974 (IS_TYPE_UNIT_GROUP): New macro.
2975 (abbrev_table): Delete unused member "section".
2976 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2977 (dw2_get_cu): Assert not used with type_unit_group.
2978 (dw2_get_primary_cu): New function.
2979 (dw2_build_type_unit_groups_reader): New function.
2980 (dw2_build_type_unit_groups): New function.
2981 (dw2_get_file_names): Assert not called on type units.
2982 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2983 Redo loop to iterate over type unit groups instead of type units.
2984 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2985 (read_abbrev_offset): New function.
2986 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2987 updated.
2988 (create_partial_symtab): New function.
2989 (process_psymtab_comp_unit_reader): Assert not used with type units.
2990 Call create_partial_symtab.
2991 (process_psymtab_type_unit): Delete.
2992 (hash_type_unit_group, eq_type_unit_group): New functions.
2993 (allocate_type_unit_groups_table): New function.
2994 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2995 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2996 (create_type_unit_group, get_type_unit_group): New functions.
2997 (tu_abbrev_offset): New struct.
2998 (sort_tu_by_abbrev_offset): New function.
2999 (add_type_unit_group_to_table): New function.
3000 (build_type_unit_groups): New function.
3001 (build_type_psymtabs_reader): New function.
3002 (build_type_psymtab_dependencies): New function.
3003 (build_type_psymtabs): Rewrite.
3004 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3005 is seen in a type unit.
3006 (process_queue): Move symtab expansion debugging printfs here.
3007 Call process_full_type_unit for type units.
3008 (compute_symtab_includes): Assert not called for type units.
3009 (process_cu_includes): Don't call compute_symtab_includes for
3010 type units.
3011 (process_full_type_unit): New function.
3012 (process_imported_unit_die): Flag an error if called for type units.
3013 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3014 updated. Assert not called for type units.
3015 (read_file_scope): Call dwarf2_start_symtab.
3016 (setup_type_unit_groups): New function.
3017 (read_type_unit_scope): Rewrite.
3018 (abbrev_table_read_table): Initialize abbrev_table->offset.
3019 (abbrev_table_free_cleanup): New function.
3020 (dwarf2_start_symtab): New function.
3021 (load_full_type_unit): Assert not called for type unit groups.
3022 * buildsym.c (finish_block_internal): New arg "expandable".
3023 All callers updated.
3024 (start_symtab): Move most contents to ...
3025 (restart_symtab): ... here. New function.
3026 (reset_symtab_globals): New function.
3027 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3028 Call reset_symtab_globals.
3029 (end_symtab, end_expandable_symtab): New functions.
3030 (set_missing_symtab, augment_type_symtab): New functions.
3031 * buildsym.h (end_expandable_symtab): Declare.
3032 (augment_type_symtab, restart_symtab): Declare.
3033 * psympriv.h (struct partial_symtab): New member "anonymous".
3034 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3035 anonymous psymtabs.
3036 (read_psymtabs_with_filename): Ditto.
3037 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3038 (expand_symtabs_matching_via_partial): Ditto.
3039 (dump_psymtab): Update.
3040 * dictionary.c (dict_add_pending): New function.
3041 * dictionary.h (dict_add_pending): Declare.
3042
3043 2012-07-09 Doug Evans <dje@google.com>
3044
3045 * buildsym.c (start_subfile): Remove unnecessary check for
3046 name == NULL.
3047
3048 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3049
3050 * dwarf2read.c (load_full_type_unit): Simplify.
3051
3052 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3053 to struct signatured_type **. All uses updated.
3054
3055 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3056 All callers updated.
3057
3058 2012-07-09 Tom Tromey <tromey@redhat.com>
3059
3060 * c-exp.y (check_parameter_typelist): New function.
3061 (parameter_typelist): Call it.
3062 * eval.c (make_params): Handle '(void)' case.
3063 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3064 '(void)' case.
3065
3066 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 * common/linux-ptrace.c: Include gdb_assert.h.
3069 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3070 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3071 stdint.h.
3072 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3073 functions.
3074 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3075 * linux-nat.c (linux_child_post_attach)
3076 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3077
3078 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3079
3080 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3081 nptl <2.7 bug workaround for core files.
3082
3083 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3084
3085 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3086 clearing.
3087 (save_siginfo): Remove.
3088 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3089 call.
3090 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3091 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3092 * linux-nat.h (struct lwp_info): Remove field siginfo.
3093
3094 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 Code cleanup for the next patch.
3097 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3098 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3099 call for it.
3100 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3101 (ia64_linux_stopped_data_address):
3102 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3103 the return value.
3104 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3105 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3106 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3107 call for it.
3108
3109 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3110
3111 PR 14321
3112 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3113 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3114
3115 2012-07-06 Tom Tromey <tromey@redhat.com>
3116
3117 * c-exp.y (DOTDOTDOT): New token.
3118 (func_mod, exp): Use parameter_typelist.
3119 (parameter_typelist): New production.
3120 (tokentab3): Add "..." token.
3121 * eval.c (make_params): Handle varargs.
3122 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3123 varargs.
3124
3125 2012-07-06 Tom Tromey <tromey@redhat.com>
3126
3127 PR exp/9608:
3128 * c-exp.y (%union) <tvec>: Change type.
3129 (func_mod): Now uses <tvec> type.
3130 (exp): Update for tvec change.
3131 (direct_abs_decl): Push the typelist.
3132 (func_mod): Return a typelist.
3133 (nonempty_typelist): Update for tvec change.
3134 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3135 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3136 * parse.c (pop_type_list): New function.
3137 (push_typelist): New function.
3138 (follow_types): Handle tp_function_with_arguments.
3139 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3140 (enum type_pieces) <tp_function_with_arguments>: New constant.
3141 (union type_stack_elt) <typelist_val>: New field.
3142 (push_typelist): Declare.
3143
3144 2012-07-06 Tom Tromey <tromey@redhat.com>
3145
3146 * c-exp.y (%union) <type_stack>: New field.
3147 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3148 (ptr_operator_ts): New production.
3149 (ptype): Update.
3150 * parse.c (type_stack_reserve): New function.
3151 (check_type_stack_depth): Use it.
3152 (pop_type_stack, append_type_stack, push_type_stack)
3153 (get_type_stack, type_stack_cleanup): New functions.
3154 (follow_types): Handle tp_type_stack.
3155 (_initialize_parse): Simplify initialization.
3156 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3157 constant.
3158 (union type_stack_elt) <stack_val>: New field.
3159 (get_type_stack, append_type_stack, push_type_stack)
3160 (type_stack_cleanup): Declare.
3161
3162 2012-07-06 Tom Tromey <tromey@redhat.com>
3163
3164 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3165 Remove.
3166 (struct type_stack): New.
3167 * parse.c (type_stack, type_stack_size, type_stack_depth):
3168 Remove.
3169 (type_stack): New global.
3170 (parse_exp_in_context, check_type_stack_depth)
3171 (insert_into_type_stack, insert_type, push_type, push_type_int)
3172 (insert_type_address_space, pop_type, pop_type_int)
3173 (_initialize_parse): Update.
3174
3175 2012-07-06 Tom Tromey <tromey@redhat.com>
3176
3177 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3178 Remove %type.
3179
3180 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3181
3182 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3183
3184 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3185 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3188 alloca with xmalloc/xfree.
3189
3190 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3191
3192 * MAINTAINERS (Write After Approval): Add myself to the list.
3193
3194 2012-07-05 Doug Evans <dje@google.com>
3195
3196 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3197
3198 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3199
3200 * ax-gdb.c (cli/cli-utils.h): New include.
3201 (linespec.h): Ditto.
3202 (agent_eval_command_one): New function.
3203 (agent_command_1): Ditto.
3204 (agent_command): Call function agent_command_1.
3205 (agent_eval_command): Ditto.
3206 (_initialize_ax_gdb): Change help for "maint agent"
3207 and "maint agent-eval".
3208
3209 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3210
3211 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3212 * cli/cli-utils.c (check_for_argument): New function.
3213 * cli/cli-utils.h (check_for_argument): Ditto.
3214
3215 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 * NEWS: Mention x32 ABI support.
3218
3219 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3220
3221 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3222 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3223
3224 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3225 and pc_regnum_from_eax to -1. Update SP regnum from
3226 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3227 needed.
3228
3229 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3230 pc_regnum_from_eax.
3231
3232 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3233
3234 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3235 * dwarf2expr.h: Include gdbtypes.h.
3236 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3237 these forward declarations.
3238 (cu_offset, sect_offset): Move these ...
3239 * gdbtypes.h: Remove include dwarf2expr.h.
3240 (cu_offset, sect_offset): ... here.
3241
3242 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3245 (amd64_linux_sigtramp_code): This.
3246 (amd64_x32_linux_sigtramp_code): New.
3247 (LINUX_SIGTRAMP_LEN): Updated.
3248 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3249
3250 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3253
3254 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3255
3256 * config.in: Regenerate.
3257 * configure: Regenerate.
3258 * configure.ac: Remove check for gnu/libc-version.h.
3259 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3260 gnu/libc-version.h.
3261 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3262 variables libc_version, libc_major and libc_minor. Replace sscanf by
3263 inferior_has_bug. Extend the comment.
3264
3265 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3266
3267 * linux-thread-db.c (inferior_has_bug): New function.
3268 (thread_db_find_new_threads_silently): Return boolean as checked by
3269 inferior_has_bug, describe it in the comments.
3270 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3271 earlier. Abort the initialization if it returned non-zero.
3272 (thread_db_new_objfile): Exclude debug files.
3273 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3274 if UNTIL_NO_NEW,
3275
3276 2012-07-02 Doug Evans <dje@google.com>
3277
3278 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3279 related to queue management.
3280
3281 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3282 instead of "debug dwarf2-die" in debugging printfs.
3283 (create_debug_info_hash_table_reader): Ditto.
3284 (create_debug_info_hash_table): Ditto.
3285 (init_dwo_file): Ditto.
3286 (init_cutu_and_read_dies): Add debugging printf.
3287 (init_cutu_and_read_dies_no_follow): Ditto.
3288 (process_psymtab_comp_unit_reader): Ditto.
3289
3290 2012-07-02 Stan Shebs <stan@codesourcery.com>
3291
3292 Add target-side support for dynamic printf.
3293 * NEWS: Mention the additional style.
3294 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3295 (struct bp_location): New field cmd_bytecode.
3296 * breakpoint.c: Include format.h.
3297 (disconnected_dprintf): New global.
3298 (parse_cmd_to_aexpr): New function.
3299 (build_target_command_list): New function.
3300 (insert_bp_location): Call it.
3301 (remove_breakpoints_pid): Skip dprintf breakpoints.
3302 (print_one_breakpoint_location): Ditto.
3303 (dprintf_style_agent): New global.
3304 (dprintf_style_enums): Add dprintf_style_agent.
3305 (update_dprintf_command_list): Add agent case.
3306 (agent_printf_command): New function.
3307 (_initialize_breakpoint): Add new commands.
3308 * common/ax.def (printf): New bytecode.
3309 * ax.h (ax_string): Declare.
3310 * ax-gdb.h (gen_printf): Declare.
3311 * ax-gdb.c: Include cli-utils.h, format.h.
3312 (gen_printf): New function.
3313 (maint_agent_print_command): New function.
3314 (_initialize_ax_gdb): Add maint agent-printf command.
3315 * ax-general.c (ax_string): New function.
3316 (ax_print): Add printf disassembly.
3317 * Makefile.in (SFILES): Add format.c
3318 (COMMON_OBS): Add format.o.
3319 * common/format.h: New file.
3320 * common/format.c: New file.
3321 * printcmd.c: Include format.h.
3322 (ui_printf): Call parse_format_string.
3323 * remote.c (remote_state): New field breakpoint_commands.
3324 (PACKET_BreakpointCommands): New enum.
3325 (remote_breakpoint_commands_feature): New function.
3326 (remote_protocol_features): Add new BreakpointCommands entry.
3327 (remote_can_run_breakpoint_commands): New function.
3328 (remote_add_target_side_commands): New function.
3329 (remote_insert_breakpoint): Call it.
3330 (remote_insert_hw_breakpoint): Ditto.
3331 (_initialize_remote): Add new packet configuration for
3332 target-side breakpoint commands.
3333 * target.h (struct target_ops): New field
3334 to_can_run_breakpoint_commands.
3335 (target_can_run_breakpoint_commands): New macro.
3336 * target.c (update_current_target): Handle
3337 to_can_run_breakpoint_commands.
3338
3339 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 Execute -ix and -iex only after system and user gdbinit files.
3342 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3343 processing down after gdbinit files.
3344
3345 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 Add fnmatch-gnu module.
3348 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3349 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3350 * gnulib/aclocal.m4: Regenerate.
3351 * gnulib/config.in: Regenerate.
3352 * gnulib/configure: Regenerate.
3353 * gnulib/import/dummy.c: Remove.
3354 * gnulib/import/Makefile.am: Regenerate.
3355 * gnulib/import/Makefile.in: Likewise.
3356 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3357 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3358 * gnulib/import/alloca.c: New file.
3359 * gnulib/import/alloca.in.h: Likewise.
3360 * gnulib/import/config.charset: Likewise.
3361 * gnulib/import/fnmatch.c: Likewise.
3362 * gnulib/import/fnmatch.in.h: Likewise.
3363 * gnulib/import/fnmatch_loop.c: Likewise.
3364 * gnulib/import/localcharset.c: Likewise.
3365 * gnulib/import/localcharset.h: Likewise.
3366 * gnulib/import/m4/alloca.m4: Likewise.
3367 * gnulib/import/m4/codeset.m4: Likewise.
3368 * gnulib/import/m4/configmake.m4: Likewise.
3369 * gnulib/import/m4/fcntl-o.m4: Likewise.
3370 * gnulib/import/m4/fnmatch.m4: Likewise.
3371 * gnulib/import/m4/glibc21.m4: Likewise.
3372 * gnulib/import/m4/localcharset.m4: Likewise.
3373 * gnulib/import/m4/locale-fr.m4: Likewise.
3374 * gnulib/import/m4/locale-ja.m4: Likewise.
3375 * gnulib/import/m4/locale-zh.m4: Likewise.
3376 * gnulib/import/m4/mbrtowc.m4: Likewise.
3377 * gnulib/import/m4/mbsinit.m4: Likewise.
3378 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3379 * gnulib/import/m4/mbstate_t.m4: Likewise.
3380 * gnulib/import/m4/stdbool.m4: Likewise.
3381 * gnulib/import/m4/wchar_h.m4: Likewise.
3382 * gnulib/import/m4/wctype_h.m4: Likewise.
3383 * gnulib/import/m4/wint_t.m4: Likewise.
3384 * gnulib/import/mbrtowc.c: Likewise.
3385 * gnulib/import/mbsinit.c: Likewise.
3386 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3387 * gnulib/import/mbsrtowcs-state.c: Likewise.
3388 * gnulib/import/mbsrtowcs.c: Likewise.
3389 * gnulib/import/ref-add.sin: Likewise.
3390 * gnulib/import/ref-del.sin: Likewise.
3391 * gnulib/import/stdbool.in.h: Likewise.
3392 * gnulib/import/streq.h: Likewise.
3393 * gnulib/import/strnlen1.c: Likewise.
3394 * gnulib/import/strnlen1.h: Likewise.
3395 * gnulib/import/verify.h: Likewise.
3396 * gnulib/import/wchar.in.h: Likewise.
3397 * gnulib/import/wctype.in.h: Likewise.
3398
3399 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3400
3401 Support shell wildcards for 'set auto-load safe-path'.
3402 * auto-load.c: Include fnmatch.h.
3403 (filename_is_in_dir): Rename to ...
3404 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3405 it. Update function comment. Rename dir_len to pattern_len. New
3406 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3407 messages. Use gdb_filename_fnmatch.
3408 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3409 pattern.
3410 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3411 * defs.h (gdb_filename_fnmatch): New declaration.
3412 * utils.c: Include fnmatch.h.
3413 (gdb_filename_fnmatch): New function.
3414
3415 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3416
3417 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3418 `-probe' and `-probe-stap' options.
3419
3420 2012-07-01 Yao Qi <yao@codesourcery.com>
3421
3422 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3423 always_inserted_off, and always_inserted_enums.
3424 Change always_inserted_mode's type to 'enum auto_boolean'.
3425 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3426 callers.
3427 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3428 of add_setshow_enum_cmd.
3429 * infrun.c: Remove can_use_displaced_stepping_auto,
3430 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3431 can_use_displaced_stepping_enum.
3432 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3433 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3434 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3435 add_setshow_enum_cmd.
3436
3437 2012-06-30 Doug Evans <dje@google.com>
3438
3439 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3440 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3441 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3442
3443 2012-06-29 Doug Evans <dje@google.com>
3444
3445 * linespec.c: #include "stack.h".
3446 (decode_line_with_current_source): Moved here from symtab.c and
3447 renamed from decode_line_spec. All callers updated.
3448 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3449 renamed from decode_line_spec_1. All callers updated.
3450 * linespec.h (decode_line_with_current_source): Move declaration here
3451 from symtab.h and renamed from decode_line_spec.
3452 (decode_line_with_last_displayed): Move declaration here from symtab.h
3453 and renamed from decode_line_spec_1.
3454 * macrocmd.c: #include "linespec.h".
3455 * symtab.c: Remove #include "linespec.h".
3456
3457 2012-06-28 Doug Evans <dje@google.com>
3458
3459 * dwarf2read.c (get_cu_length): New function.
3460 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3461 (create_debug_types_hash_table): Ditto.
3462 (init_cutu_and_read_dies): Ditto.
3463 (init_cutu_and_read_dies_no_follow): Ditto.
3464
3465 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3466
3467 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3468 (struct abbrev_table): Define.
3469 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3470 abbrev_table.
3471 (init_cutu_and_read_dies): Update.
3472 (abbrev_table_alloc_abbrev): New function. Replaces
3473 dwarf_alloc_abbrev. All callers updated.
3474 (abbrev_table_add_abbrev): New function.
3475 (abbrev_table_lookup_abbrev): New function. Replaces
3476 dwarf2_lookup_abbrev. All callers updated.
3477 (abbrev_table_read_table): New function. Contents moved here from
3478 dwarf2_read_abbrevs.
3479 (dwarf2_read_abbrevs): Call it.
3480 (abbrev_table_free): New function.
3481 (dwarf2_free_abbrev_table): Call it.
3482
3483 2012-06-28 Stan Shebs <stan@codesourcery.com>
3484
3485 * osdata.c (info_osdata_command): Filter out "Title" columns
3486 from non-MI uses.
3487 * common/linux-osdata.c (struct osdata_type): Add title field.
3488 (osdata_table): Add titles to each entry.
3489 (linux_command_xfer_osdata): Add a column for title data.
3490
3491 2012-06-28 Stan Shebs <stan@codesourcery.com>
3492
3493 Make logging work for MI.
3494 * NEWS: Mention it.
3495 * interps.h (interp_set_logging_ftype): New typedef.
3496 (struct interp_procs): New field set_logging_proc.
3497 (current_interp_set_logging): Declare.
3498 * interps.c (current_interp_set_logging): New function.
3499 * cli/cli-logging.c: Include interps.h.
3500 (set_logging_redirect): Call current_interp_set_logging.
3501 (pop_output_files): Ditto.
3502 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3503 * mi/mi-console.h (mi_console_set_raw): Declare.
3504 * mi/mi-console.c (mi_console_set_raw): New function.
3505 * mi/mi-interp.c (saved_raw_stdout): New global.
3506 (mi_set_logging): New function.
3507 (_initialize_mi_interp): Add it to interp procs.
3508
3509 2012-06-28 Doug Evans <dje@google.com>
3510
3511 * symtab.c (lookup_symbol_aux_objfile): Use
3512 ALL_OBJFILE_PRIMARY_SYMTABS.
3513
3514 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3515
3516 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3517
3518 * common/buffer.c: Include inttypes.h and stdint.h.
3519 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3520
3521 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Pedro Alves <palves@redhat.com>
3523
3524 * gdbthread.h (ALL_THREADS): New macro.
3525 (thread_list): Declare.
3526 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3527 going, but instead fall through to the stepping handling.
3528 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3529 the passed in signal. Adjust debug output.
3530 (resume_callback): Rename to ...
3531 (linux_nat_resume_callback): ... this. Pass the thread's last
3532 stop signal, if in "pass" state.
3533 (linux_nat_resume): Adjust to rename.
3534 (stop_wait_callback): New assertion. Don't respawn signals;
3535 instead let the LWP remain with SIGNALLED set.
3536 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3537 * remote.c (append_pending_thread_resumptions): New.
3538 (remote_vcont_resume): Call it.
3539 * target.h (target_resume): Extend comment.
3540
3541 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3542
3543 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3544
3545 2012-06-27 Doug Evans <dje@google.com>
3546
3547 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3548 Delete have_addr_base, unused. All uses updated.
3549 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3550 (dwarf2_get_pc_bounds): Add ranges_base.
3551 (dwarf2_record_block_ranges): Ditto.
3552
3553 2012-06-27 Tom Tromey <tromey@redhat.com>
3554
3555 PR macros/7961:
3556 * varobj.c (varobj_create): Update.
3557 (varobj_set_value): Update.
3558 * tracepoint.c (validate_actionline): Update.
3559 (encode_actions_1): Update.
3560 * parse.c (parse_exp_1): Add 'pc' argument.
3561 (parse_exp_in_context): Add 'pc' argument. Change how
3562 expression_context_pc is set.
3563 (parse_expression): Update.
3564 (parse_field_expression): Update.
3565 * expression.h (parse_exp_1): Update.
3566 * eval.c (parse_to_comma_and_eval): Update.
3567 * breakpoint.c (set_breakpoint_condition): Update.
3568 (update_watchpoint): Update.
3569 (init_breakpoint_sal): Update
3570 (find_condition_and_thread): Update.
3571 (watch_command_1): Update.
3572 (update_breakpoint_locations): Update.
3573 * ada-lang.c (ada_read_renaming_var_value): Update.
3574 (create_excep_cond_exprs): Update.
3575
3576 2012-06-27 Doug Evans <dje@google.com>
3577
3578 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3579 type units.
3580
3581 2012-06-26 Doug Evans <dje@google.com>
3582
3583 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3584 prototype.
3585 (error_check_comp_unit_head): New arg abbrev_section. All callers
3586 updated.
3587 (read_and_check_comp_unit_head): Ditto.
3588 (read_and_check_type_unit_head): Ditto.
3589
3590 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3591
3592 New attribute 'last' for gdb.Symtab_and_line.
3593 * NEWS (Python Scripting): Add entry about the new attribute.
3594 * python/py-symtab.c (salpy_get_last): New function which
3595 implements the get method for the 'last' attribute of
3596 gdb.Symtab_and_line.
3597 (sal_object_getset): Add entry for the 'last' attribute.
3598
3599 2012-06-26 Doug Evans <dje@google.com>
3600
3601 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3602 (dwo_sections): Add macinfo, macro.
3603 (dwarf2_locate_dwo_sections): Watch for macro sections.
3604 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3605 All callers updated. Handle DWO files.
3606
3607 * NEWS: Mention new options "set debug dwarf2-read" and
3608 "set debug symtab-create".
3609 * dwarf2read.c (dwarf2_read_debug): New static global.
3610 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3611 (process_queue): Ditto.
3612 (process_full_comp_unit): Ditto.
3613 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3614 * elfread.c (elf_symfile_read): Add debugging printf.
3615 * minsyms.c (install_minimal_symbols): Ditto.
3616 * psymtab.c (allocate_psymtab): Ditto.
3617 * symfile.c (allocate_symtab): Ditto.
3618 * symtab.c (symtab_create_debug): New global.
3619 (_initialize_symtab): Add new option "set debug symtab-create".
3620 * symtab.h (symtab_create_debug): Declare.
3621
3622 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3623 (lookup_dwo_type_unit): Ditto.
3624
3625 2012-06-26 Roland McGrath <roland@hack.frob.com>
3626 H.J. Lu <hongjiu.lu@intel.com>
3627
3628 * amd64-linux-nat.c: Include <sys/user.h>.
3629 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3630 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3631 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3632
3633 * configure.ac: Check if the fs_base and gs_base members of
3634 `struct user_regs_struct' exist.
3635 * config.in: Regenerated.
3636 * configure: Likewise.
3637
3638 2012-06-25 Michael Eager <eager@eagercon.com>
3639
3640 PR python/14291
3641 * python/python.c (gdbpy_write): Check for interrupted output.
3642
3643 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3644
3645 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3646 register as a stack alignment in ARM mode.
3647
3648 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3649
3650 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3651 * gnulib/config.in: Regenerate.
3652 * gnulib/configure: Likewise.
3653 * gnulib/import/m4/extensions.m4: Update it.
3654 * gnulib/import/m4/gnulib-common.m4: Likewise.
3655 * gnulib/import/m4/memmem.m4: Likewise.
3656 * gnulib/import/m4/mmap-anon.m4: Likewise.
3657 * gnulib/import/m4/multiarch.m4: Likewise.
3658 * gnulib/import/stdint.in.h: Likewise.
3659
3660 2012-06-24 Yao Qi <yao@codesourcery.com>
3661
3662 * corefile.c (write_memory_with_notification): New.
3663 * gdbcore.h: Declare write_memory_with_notification.
3664 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3665 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3666 * valops.c (value_assign): Likewise.
3667 * python/py-inferior.c (infpy_write_memory): Call
3668 'write_memory_with_notification'.
3669
3670 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * cc-with-index.sh: Use also -ex "set auto-load no".
3673
3674 2012-06-23 Doug Evans <dje@google.com>
3675
3676 PR 14125
3677 * NEWS: Document additions to .gdb_index.
3678 * dwarf2read.c: #include "gdb/gdb-index.h".
3679 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3680 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3681 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3682 (dwarf2_read_index): Recognize version 7.
3683 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3684 block_kind, domain): All callers updated.
3685 (dw2_find_symbol_file): Handle new index CU values.
3686 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3687 (add_index_entry): New args is_static, kind. All callers updated.
3688 (offset_type_compare, uniquify_cu_indices): New functions
3689 (symbol_kind): New function.
3690 (write_psymtabs_to_index): Remove duplicate CU values.
3691 (write_psymtabs_to_index): Write .gdb_index version 7.
3692
3693 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3694
3695 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3696 * configure: Regenerate.
3697
3698 2012-06-20 Yao Qi <yao@codesourcery.com>
3699
3700 * python/py-inferior.c: Update comments of infpy_read_memory
3701 and infpy_write_memory.
3702
3703 2012-06-19 Tom Tromey <tromey@redhat.com>
3704
3705 PR exp/9514:
3706 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3707 (push_type_address_space): Remove.
3708 * parse.c (insert_into_type_stack): New function.
3709 (insert_type): Likewise.
3710 (insert_type_address_space): Rename from push_type_address_space.
3711 Insert tp_space_identifier.
3712 * c-exp.y (ptr_operator): New production.
3713 (abs_decl): Use ptr_operator.
3714 (space_identifier): Call insert_type_address_space.
3715 (ptype): Don't use const_or_volatile_or_space_identifier.
3716 (const_or_volatile_noopt): Call insert_type.
3717 (conversion_type_id, conversion_declarator): New productions.
3718 (operator): Use conversion_type_id.
3719
3720 2012-06-18 Doug Evans <dje@google.com>
3721
3722 * symtab.h (minimal_symbol): New member created_by_gdb.
3723 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3724 created by gdb.
3725 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3726 (search_symbols): Call it instead of lookup_symbol.
3727 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3728
3729 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3730 Adjust address for DW_OP_GNU_addr_index.
3731 * dwarf2expr.h (dwarf_expr_context): Update comment.
3732 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3733 all callers updated. Handle TLS vars described with
3734 DW_OP_GNU_const_index.
3735 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3736 and DW_OP_GNU_const_index.
3737 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3738
3739 * block.c (find_block_in_blockvector): Make explicit the fact that we
3740 ignore GLOBAL_BLOCK.
3741
3742 2012-06-18 Tom Tromey <tromey@redhat.com>
3743
3744 * c-exp.y (operator): Remove trailing space after "delete" and
3745 "delete[]".
3746
3747 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3748 Jan Kratochvil <jan.kratochvil@redhat.com>
3749
3750 Switch i386 and derived targets to ON_STACK.
3751 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3752 (amd64_dicos_init_abi): Remove its installment.
3753 * dicos-tdep.c (dicos_init_abi): Remove the
3754 set_gdbarch_call_dummy_location call. Update the comment here.
3755 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3756 (i386_dicos_init_abi): Remove its installment.
3757 * i386-tdep.c (i386_push_dummy_code): New function.
3758 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3759 i386_push_dummy_code.
3760
3761 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 Remove stale dummy frames.
3764 * breakpoint.c: Include dummy-frame.h.
3765 (longjmp_breakpoint_ops): New variable.
3766 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3767 bp_longjmp_call_dummy.
3768 (bpstat_what, bptype_string, print_one_breakpoint_location)
3769 (init_bp_location): Support bp_longjmp_call_dummy.
3770 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3771 (set_longjmp_breakpoint_for_call_dummy)
3772 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3773 functions.
3774 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3775 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3776 FIXME comment and extend the other comment for bp_call_dummy.
3777 (set_longjmp_breakpoint_for_call_dummy)
3778 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3779 * dummy-frame.c: Include gdbthread.h.
3780 (pop_dummy_frame_bpt): New function.
3781 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3782 (dummy_frame_discard): New function.
3783 (cleanup_dummy_frames): Update the comment about longjmps.
3784 * dummy-frame.h (dummy_frame_discard): New declaration.
3785 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3786 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3787 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3788 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3789 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3790 keep_going if IS_LONGJMP and there is no other reason to stop.
3791
3792 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3793
3794 * remote-sim.c (sim_command_completer): Initialize
3795 variable 'result'.
3796
3797 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3798
3799 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3800 * dwarf2loc.c (call_site_parameter_matches): Support
3801 CALL_SITE_PARAMETER_PARAM_OFFSET.
3802 (needs_dwarf_reg_entry_value): Push stub value.
3803 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3804 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3805 * gdbtypes.h (enum call_site_parameter_kind): New item
3806 CALL_SITE_PARAMETER_PARAM_OFFSET.
3807 (struct call_site.parameter.u): New field param_offset.
3808
3809 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3810
3811 Code cleanup: Generalize call_site.parameter key.
3812 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3813 variable dwarf_reg. New variable kind_u. Update parameters to
3814 push_dwarf_reg_entry_value.
3815 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3816 * dwarf2expr.h (enum call_site_parameter_kind)
3817 (union call_site_parameter_u): Forward declarations.
3818 (struct dwarf_expr_context_funcs): Update parameters and their
3819 description for push_dwarf_reg_entry_value.
3820 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3821 * dwarf2loc.c (call_site_parameter_matches): New function.
3822 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3823 description. Use call_site_parameter_matches.
3824 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3825 Update parameters and their description.
3826 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3827 New variable kind_u. Adjust the caller for updated parameters.
3828 (needs_dwarf_reg_entry_value): Update parameters.
3829 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3830 instead of attr. Update for the changed fields of struct
3831 call_site_parameter.
3832 * gdbtypes.h: Include dwarf2expr.h.
3833 (enum call_site_parameter_kind): New.
3834 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3835 fb_offset into new union u.
3836
3837 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3838
3839 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3840 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3841 for x32.
3842
3843 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3844
3845 * amd64-linux-nat.c (compat_x32_clock_t): New.
3846 (compat_x32_siginfo_t): Likewise.
3847 (compat_x32_siginfo_from_siginfo): Likewise.
3848 (siginfo_from_compat_x32_siginfo): Likewise.
3849 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3850 and siginfo_from_compat_x32_siginfo for x32.
3851
3852 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3853
3854 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3855
3856 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3857
3858 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3859 instead of gdbarch_ptr_bit.
3860 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3861 (amd64_supply_native_gregset): Likewise.
3862 (amd64_collect_native_gregset): Likewise.
3863 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3864 (amd64_supply_xsave): Likewise.
3865 (amd64_collect_fxsave): Likewise.
3866 (amd64_collect_xsave): Likewise.
3867
3868 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3869
3870 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3871 (amd64_linux_read_description): Check DS segment register for
3872 x32 process.
3873
3874 2012-06-15 Tom Tromey <tromey@redhat.com>
3875
3876 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3877 init_cutu_and_read_dies.
3878
3879 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3880
3881 * MAINTAINERS (Write After Approval): Add myself to the list.
3882
3883 2012-06-15 Tom Tromey <tromey@redhat.com>
3884
3885 * valops.c (value_find_oload_method_list): Now static.
3886 * value.h (value_find_oload_method_list): Don't declare.
3887
3888 2012-06-15 Tom Tromey <tromey@redhat.com>
3889
3890 * valops.c (find_overload_match): Use value_ind.
3891
3892 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3893
3894 * infrun.c (handle_inferior_event): Correct indentation.
3895
3896 2012-06-14 Doug Evans <dje@google.com>
3897
3898 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3899 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3900 All uses updated.
3901 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3902 updated. Handle DEBUG_LOC_START_LENGTH.
3903 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3904 (loclist_describe_location): Ditto.
3905
3906 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3907
3908 PR backtrace/13866
3909 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3910 after hiding inline functions.
3911
3912 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3913
3914 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3915 _initialize_inf_ttrace.
3916
3917 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3918
3919 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3920 _initialize_hppa_hpux_nat.
3921
3922 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3923
3924 * remote-sim.c (sim_command_completer): Change type of return
3925 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3926
3927 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3928 Jan Kratochvil <jan.kratochvil@redhat.com>
3929
3930 PR tdep/14222
3931 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3932 stack on a 16-byte boundary.
3933
3934 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3935
3936 * jit.c (finalize_symtab): Set function's return type to 'void' by
3937 default.
3938
3939 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3940 H.J. Lu <hongjiu.lu@intel.com>
3941
3942 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3943 Move bits common to both the classic LP64 and the new x32 ILP32
3944 ABI here.
3945 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3946 (amd64_x32_linux_init_abi): New function.
3947 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3948 subtype.
3949
3950 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3951 * i386-tdep.c (i386_pseudo_register_name): Make public.
3952 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3953 * amd64-tdep.c (amd64_dword_names): Add "eip".
3954 (amd64_x32_pseudo_register_type): New function
3955 (amd64_x32_init_abi): New function.
3956
3957 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 PR build/14003
3960 * inferior.h (struct inferior_suspend_state): Comment out.
3961 (struct inferior): Comment out the field suspend.
3962 * infrun.c (struct infcall_suspend_state): Comment out the field
3963 inferior_suspend.
3964 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3965 out its assignment.
3966
3967 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3970 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3971 function comment. Return ERROR for unresolved cases. Implement
3972 returning proper NAME.
3973 (yylex): Accept also NAME from classify_inner_name.
3974 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3975 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3976 LOC_TYPEDEF type.
3977 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3978
3979 2012-06-13 Tom Tromey <tromey@redhat.com>
3980
3981 * breakpoint.c (condition_completer): New function.
3982 (_initialize_breakpoint): Use it.
3983 * value.c (complete_internalvar): New function.
3984 * value.h (complete_internalvar): Declare.
3985
3986 2012-06-13 Tom Tromey <tromey@redhat.com>
3987
3988 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3989 * breakpoint.c (catch_syscall_completer): Return a VEC.
3990 * cli/cli-cmds.c (complete_command): Update.
3991 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3992 (complete_on_enum): Likewise.
3993 * command.h: Include gdb_vecs.h.
3994 (completer_ftype): Change return type.
3995 (complete_on_cmdlist, complete_on_enum): Likewise.
3996 * completer.c (noop_completer, filename_completer)
3997 (location_completer): Return a VEC.
3998 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3999 to a VEC.
4000 (expression_completer, complete_line_internal, complete_line)
4001 (command_completer): Return a VEC.
4002 (gdb_completion_word_break_characters, line_completion_function):
4003 Update.
4004 * completer.h: Include gdb_vecs.h.
4005 (complete_line, noop_completer, filename_completer)
4006 (expression_completer, location_completer, command_completer):
4007 Update.
4008 * f-lang.c (f_word_break_characters): Return a VEC.
4009 * interps.c (interpreter_completer): Return a VEC.
4010 * language.h (struct language_defn)
4011 <la_make_symbol_completion_list>: Return a VEC.
4012 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4013 * symtab.c (free_completion_list): Take a VEC.
4014 (return_val_size, return_val_index): Remove.
4015 (return_val): Now a VEC.
4016 (completion_list_add_name): Update.
4017 (default_make_symbol_completion_list_break_on)
4018 (default_make_symbol_completion_list, make_symbol_completion_list)
4019 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4020 Return a VEC.
4021 (add_filename_to_list): Update.
4022 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4023 <list>: Now a VEC.
4024 (maybe_add_partial_symtab_filename): Update.
4025 (make_source_files_completion_list): Return a VEC.
4026 * symtab.h (default_make_symbol_completion_list_break_on)
4027 (default_make_symbol_completion_list, make_symbol_completion_list)
4028 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4029 (make_source_files_completion_list): Update.
4030
4031 2012-06-13 Tom Tromey <tromey@redhat.com>
4032
4033 * breakpoint.c (add_catch_command): Use completer_ftype.
4034 * breakpoint.h: Include command.h.
4035 (add_catch_command): Use completer_ftype.
4036 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4037 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4038 Use completer_ftype.
4039 * command.h (completer_ftype): New typedef.
4040 (set_cmd_completer): Use it.
4041 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4042 completer_ftype.
4043
4044 2012-06-13 Pedro Alves <palves@redhat.com>
4045
4046 Partial revert of previous change.
4047
4048 * serial.c (scb_base): New global.
4049 (serial_for_fd): New.
4050 (serial_open, serial_fdopen_ops): Link new serial in open serials
4051 chain.
4052 (do_serial_close): Unlink serial from the open serials chain.
4053
4054 2012-06-12 Pedro Alves <palves@redhat.com>
4055
4056 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4057 threads here.
4058 (prepare_for_detach): No longer context switch here in non-stop
4059 mode.
4060 (fetch_inferior_event): Ditto.
4061 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4062 to the event thread before removing breakpoints. Switch to the
4063 event thread before inserting breakpoints and resuming.
4064 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4065 event thread before resuming.
4066 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4067 Switch to the event thread before removing breakpoints.
4068
4069 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4070
4071 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4072 special characters correctly for the Windows shells. See
4073 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4074 report.
4075 [!__MINGW32__]: Remove extra double quote character from special
4076 characters.
4077
4078 2012-06-11 Stan Shebs <stan@codesourcery.com>
4079
4080 * ui-out.h: Remove #if 0 declarations.
4081 * ui-out.c: Remove #if 0 functions.
4082
4083 2012-06-11 Pedro Alves <palves@redhat.com>
4084
4085 * ser-base.c (run_async_handler_and_reschedule): New.
4086 (fd_event, push_event): Use it.
4087 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4088 reference count to 1.
4089 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4090 instead of xfree.
4091 (serial_is_open, serial_ref, serial_unref): New.
4092 * serial.h (serial_open): Adjust comment.
4093 (serial_is_open): Declare.
4094 (serial_close): Adjust comment.
4095 (serial_ref, serial_unref) Declare.
4096 (struct serial): New field 'refcnt'.
4097
4098 2012-06-11 Pedro Alves <palves@redhat.com>
4099
4100 Remove #if 0'd "connect" command, and unnecessary associated
4101 refcounting and serial reuse bits.
4102
4103 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4104 * serial.c (last_serial_opened): Delete.
4105 (scb_base): Delete.
4106 (serial_open): Adjust.
4107 (serial_for_fd): Delete.
4108 (serial_fdopen_ops, do_serial_close): Adjust.
4109 (serial_fdopen_ops): Adjust.
4110
4111 2012-06-11 Pedro Alves <palves@redhat.com>
4112
4113 * serial.c (do_serial_close): Remove early return when SCB is
4114 null.
4115
4116 2012-06-11 Tom Tromey <tromey@redhat.com>
4117
4118 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4119
4120 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4121
4122 Fix regression by the "ambiguous linespec" series.
4123 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4124 get_last_displayed_symtab and get_last_displayed_line and depending
4125 on CURSAL.
4126
4127 2012-06-11 Tom Tromey <tromey@redhat.com>
4128
4129 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4130 (dw2_find_symbol_file): Use it.
4131
4132 2012-06-11 Michael Eager <eager@eagercon.com>
4133
4134 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4135 * mips-linux-tdep.h (mips_signals): New
4136
4137 2012-06-11 Tom Tromey <tromey@redhat.com>
4138
4139 * infrun.c (handle_inferior_event)
4140 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4141 breakpoint.
4142 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4143 exception logic in all cases. Update comments.
4144 (insert_longjmp_resume_breakpoint): Set the exception resume
4145 breakpoint.
4146
4147 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4148
4149 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4150
4151 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4152
4153 * valarith.c (binop_types_user_defined_p): Fix a typo.
4154
4155 2012-06-08 Yao Qi <yao@codesourcery.com>
4156 Chung-Lin Tang <cltang@codesourcery.com>
4157
4158 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4159 * arch-utils.h: Declare.
4160 * gdbarch.sh: Add return_in_first_hidden_param_p.
4161 * gdbarch.c, gdbarch.h: Regenerated.
4162 * infcall.c (call_function_by_hand): Call
4163 gdbarch_return_in_first_hidden_param_p instead of
4164 language_pass_by_reference.
4165
4166 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4167 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4168 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4169 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4170 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4171 `cplus_return_struct_by_reference'.
4172 (tic6x_return_value): Handle language cplusplus.
4173 (tic6x_return_in_first_hidden_param_p): New.
4174 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4175
4176 2012-06-07 Doug Evans <dje@google.com>
4177
4178 * dwarf2read.c (dwarf2_cu): Add comment.
4179
4180 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4181
4182 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4183 variable.
4184 (mips_eabi_push_dummy_call): Likewise.
4185 (mips_n32n64_push_dummy_call): Likewise.
4186 (mips_o32_push_dummy_call): Likewise.
4187 (mips_o64_push_dummy_call): Likewise.
4188
4189 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4190
4191 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4192
4193 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4194
4195 * mips-tdep.c (mips_pseudo_register_type): Use
4196 mips_float_register_p.
4197
4198 2012-06-06 Pedro Alves <palves@redhat.com>
4199
4200 * infrun.c (handle_inferior_event): Remove calls to
4201 reinit_frame_cache that follow a context_switch call.
4202
4203 2012-06-06 Pedro Alves <palves@redhat.com>
4204
4205 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4206 context_switch and remove stale comment.
4207
4208 2012-06-06 Pedro Alves <palves@redhat.com>
4209
4210 * infrun.c (struct execution_control_state): Remove
4211 `new_thread_event' field.
4212 (handle_inferior_event): Simplify new threads handling; don't
4213 resume the inferior if we find a new thread.
4214
4215 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4216
4217 * NEWS: Document the deprecation of SH's 'regs' command.
4218 * inferior.h (all_registers_info): Add function declaration.
4219 * sh-tdep.c (sh_show_regs): Remove variable.
4220 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4221 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4222 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4223 (sh_show_regs_command): Remove functions.
4224 (sh_gdbarch_init): Don't set sh_show_regs.
4225 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4226 'info all-registers'.
4227 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4228 (sh64_show_regs): Remove functions.
4229 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4230
4231 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 * configure.ac: Move development=true below AC_INIT.
4234 * configure: Regenerate.
4235
4236 2012-06-05 Stan Shebs <stan@codesourcery.com>
4237
4238 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4239 gdb_stdout.
4240
4241 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4242
4243 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4244 argument as ssize_t.
4245 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4246 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4247 * target.c (target_read_stack, target_write_memory)
4248 (target_write_raw_memory): Likewise.
4249 * target.h (target_read_stack, target_write_memory)
4250 (target_write_raw_memory): Likewise.
4251
4252 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4253
4254 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4255 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4256 * target.c (target_read_memory): Change LEN to ssize_t.
4257 * target.h (target_read_memory): Change LEN to ssize_t.
4258
4259 2012-06-05 Pedro Alves <palves@redhat.com>
4260
4261 PR backtrace/13866
4262
4263 * breakpoint.c (until_break_command): Only fetch the selected
4264 frame after decode_line_1.
4265
4266 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4267
4268 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4269 event breakpoint at _start, __start or main if a program
4270 interpreter is not found.
4271
4272 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4273
4274 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4275 Add declaration.
4276 * windows-tdep.c: #include "objfiles.h".
4277 (windows_iterate_over_objfiles_in_search_order): New function.
4278 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4279 iterate_over_objfiles_in_search_order gdbarch method to
4280 windows_iterate_over_objfiles_in_search_order.
4281 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4282
4283 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4284
4285 * gdbarch.sh: Add generation of
4286 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4287 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4288 (iterate_over_objfiles_in_search_order): New gdbarch method.
4289 * gdbarch.h, gdbarch.c: Regenerate.
4290 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4291 Add declaration.
4292 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4293 New function.
4294 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4295 out of lookup_symbol_aux_symtabs.
4296 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4297 call to lookup_symbol_aux_objfile.
4298 (struct global_sym_lookup_data): New type.
4299 (lookup_symbol_global_iterator_cb): New function.
4300 (lookup_symbol_global): Search for symbol using
4301 gdbarch_iterate_over_objfiles_in_search_order and
4302 lookup_symbol_global_iterator_cb.
4303 * findvar.c (struct minsym_lookup_data): New type.
4304 (minsym_lookup_iterator_cb): New function.
4305 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4306 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4307 and minsym_lookup_iterator_cb.
4308
4309 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4310
4311 Revert the following patch:
4312 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4313 try locating the symbol in the symbol's own objfile first, before
4314 extending the search to all objfiles.
4315 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4316 out of lookup_symbol_aux_symtabs.
4317 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4318 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4319 Do not search EXCLUDE_OBJFILE.
4320 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4321 (lookup_symbol_global): Search for matches in the block's objfile
4322 first, before searching all other objfiles.
4323
4324 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4325
4326 * breakpoint.c (find_condition_and_thread): Stop parsing
4327 as soon as the first invalid keyword is found.
4328
4329 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4330
4331 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4332
4333 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4334
4335 * config/djgpp/djcheck.sh: Add copyright header.
4336
4337 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4338
4339 * copyright.py (update_files, main): Fix path to update-copyright
4340 script.
4341
4342 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4343
4344 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4345 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4346 for which a reminder to update by hand is printed.
4347
4348 2012-06-04 Doug Evans <dje@google.com>
4349
4350 * buildsym.c (make_blockvector): Add comment.
4351
4352 2012-06-04 Pedro Alves <palves@redhat.com>
4353
4354 * arch-utils.c (default_gdb_signal_from_target): Delete.
4355 * arch-utils.h (default_gdb_signal_from_target): Delete.
4356 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4357 gdbarch_gdb_signal_from_target_p.
4358 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4359 predicate).
4360 * gdbarch.h: Regenerate.
4361 * gdbarch.c: Regenerate.
4362
4363 2012-06-04 Pedro Alves <palves@redhat.com>
4364
4365 * gdbarch.sh (gdb_signal_from_target): Mention that the
4366 implementation of the method must be host independent.
4367 * gdbarch.h: Regenerate.
4368
4369 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4370
4371 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4372 parameters.
4373 (target_read_memory_bfd): New function.
4374 (symbol_file_add_from_memory): Use it.
4375
4376 2012-06-03 Doug Evans <dje@google.com>
4377
4378 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4379 of primary symtab.
4380 (basic_lookup_transparent_type): Ditto.
4381
4382 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4383 (ALL_PRIMARY_SYMTABS): Use it.
4384 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4385 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4386 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4387 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4388 (basic_lookup_transparent_type): Ditto.
4389
4390 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4391
4392 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4393 it to optimize resolution of demangled name.
4394
4395 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4396
4397 * configure.ac (development): Define new variable.
4398 Call AC_CHECK_LIB for mcheck if $development.
4399 (ERROR_ON_WARNING): Enable it by default only if $development.
4400 * config.in: Regenerate.
4401 * configure: Regenerate.
4402
4403 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4404
4405 * target.c (target_read_memory): Make LEN argument as size_t.
4406 * target.h (target_read_memory): Likewise.
4407
4408 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4409
4410 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4411
4412 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4413
4414 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4415 BookE interface for PowerPC server processors if not available
4416 in the Linux Kernel.
4417
4418 2012-05-31 Keith Seitz <keiths@redhat.com>
4419
4420 * linespec.c (decode_objc): Add cleanup to free
4421 INFO.FILE_SYMTABS.
4422 (find_linespec_symbols): Add cleanup to free CLASSES.
4423 * symfile.c (find_separate_debug_file_by_debuglink): Add
4424 cleanup to free DEBUGLINK.
4425 * ui-out.c (clear_header_list): No need to check if
4426 HEADER_NEXT.COLHDR is NULL.
4427 Free HEADER_NEXT.COL_NAME.
4428
4429 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4430
4431 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4432 warning.
4433
4434 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4435
4436 * configure.host (gdb_host_cpu): Handle tilegx*.
4437 (gdb_host): Handle tilegx-*-linux*.
4438 * tilegx-linux-nat.c: New file.
4439 * config/tilegx/linux.mh: New file.
4440
4441 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4442
4443 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4444 tilegx-linux-tdep.o.
4445 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4446 tilegx-linux-tdep.c.
4447 * configure.tgt: Handle tilegx-*-linux*.
4448 * tilegx-tdep.h: New file.
4449 * tilegx-tdep.c: New file.
4450 * tilegx-linux-tdep.c: New file.
4451 * regformats/reg-tilegx.dat: New file.
4452
4453 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4454
4455 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4456 accounting of hw watchpoints on ppc.
4457
4458 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4459
4460 * source.c (openp): Expand tilde in path entries.
4461
4462 2012-05-29 Doug Evans <dje@google.com>
4463
4464 * buildsym.c (block_compar): Fix comment.
4465 (end_symtab): Fix and clarify some comments.
4466
4467 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4468 cleanup_undefined_types.
4469 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4470 All callers updated.
4471
4472 2012-05-29 Tom Tromey <tromey@redhat.com>
4473
4474 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4475 fails.
4476 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4477 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4478 fails.
4479 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4480 fails.
4481
4482 2012-05-29 Tristan Gingold <gingold@adacore.com>
4483
4484 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4485 (struct darwin_info): ... New struct.
4486 (solib_darwin_pspace_data): New variable.
4487 (darwin_pspace_data_cleanup): New function.
4488 (get_darwin_info): Likewise.
4489 (darwin_dyld_version_ok, darwin_load_image_infos)
4490 (darwin_solib_get_all_image_info_addr_at_init)
4491 (darwin_solib_read_all_image_info_addr): Add info argument.
4492 Adjust code.
4493 (darwin_current_sos): Use per pspace structure.
4494 (darwin_solib_create_inferior_hook): Likewise.
4495 (darwin_clear_solib): Likewise.
4496 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4497
4498 2012-05-28 Pedro Alves <palves@redhat.com>
4499
4500 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4501 block that uses them. Clear ecss before handling each event.
4502
4503 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4504
4505 * solib-svr4.c (svr4_current_sos): New comment on
4506 svr4_current_sos_via_xfer_libraries fall back.
4507
4508 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4509
4510 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4511 it as a fallback for TYPE_IS_OPAQUE.
4512 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4513 symbols for lookup_symbol.
4514
4515 2012-05-24 John Steele Scott <toojays@toojays.net>
4516
4517 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4518 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4519 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4520 (check_producer): ... this new function, which also checks for ICC
4521 and caches the result.
4522 (producer_is_icc): New function.
4523 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4524 producer was ICC.
4525
4526 2012-05-24 Pedro Alves <palves@redhat.com>
4527
4528 PR gdb/7205
4529
4530 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4531 (default_gdb_signal_to_target): ... this. Add comment.
4532 (default_gdb_signal_from_host): Rename to ...
4533 (default_gdb_signal_from_target): ... this. Add comment.
4534 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4535 (default_gdb_signal_to_target): ... this.
4536 (default_gdb_signal_from_host): Rename to ...
4537 (default_gdb_signal_from_target): ... this.
4538 * corelow.c (core_open): Adjust to naming change. Replace comment.
4539 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4540 (gdb_signal_from_target): ... this. Adjust to
4541 default_gdb_signal_from_host naming change. Extend comment.
4542 (gdb_signal_to_host): Rename to ...
4543 (gdb_signal_to_target): ... this. Adjust to
4544 default_gdb_signal_to_host naming change.
4545 * gdbarch.h, gdbarch.c: Renegerate.
4546
4547 2012-05-24 Pedro Alves <palves@redhat.com>
4548
4549 PR gdb/7205
4550
4551 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4552
4553 2012-05-24 Pedro Alves <palves@redhat.com>
4554
4555 PR gdb/7205
4556
4557 Replace target_signal with gdb_signal throughout.
4558
4559 2012-05-24 Pedro Alves <palves@redhat.com>
4560
4561 PR tui/14159
4562
4563 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4564 string, instead of reusing the va_list argument.
4565
4566 2012-05-24 Tom Tromey <tromey@redhat.com>
4567
4568 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4569 Remove.
4570
4571 2012-05-23 Doug Evans <dje@google.com>
4572
4573 * symtab.c (search_symbols): Formatting fixes.
4574 (print_symbol_info): Formatting fixes.
4575
4576 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4577 int64_t change to leb128 API.
4578 (read_encoded_value, decode_frame_entry_1): Ditto.
4579 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4580 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4581 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4582 (execute_stack_op): Ditto.
4583 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4584 (safe_read_uleb128, safe_read_sleb128): Ditto.
4585 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4586 (dwarf2_compile_expr_to_ax): Ditto.
4587 (locexpr_describe_location_piece): Ditto.
4588 (disassemble_dwarf_expression): Ditto.
4589 (locexpr_describe_location_1): Ditto.
4590
4591 2012-05-23 Stan Shebs <stan@codesourcery.com>
4592 Kwok Cheung Yeung <kcy@codesourcery.com>
4593
4594 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4595 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4596 (mi-cmd-info.o): New rule.
4597 * osdata.h (info_osdata_command): New declaration.
4598 * osdata.c (info_osdata_command): Change to non-static.
4599 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4600 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4601 * mi/mi-cmd-info.c: New file.
4602
4603 2012-05-23 Doug Evans <dje@google.com>
4604
4605 * symtab.c (search_symbols): Pass NULL for file_matcher to
4606 expand_symtabs_matching if there are no files to match.
4607
4608 * gdbtypes.c (lookup_typename): Simplify.
4609
4610 2012-05-23 Pedro Alves <palves@redhat.com>
4611
4612 * arch-utils.h (default_target_signal_to_host): Delete.
4613 * arch-utils.c (default_target_signal_to_host): Delete.
4614 * gdbarch.sh (target_signal_to_host): Remove.
4615 * gdbarch.h, gdbarch.c: Regenerate.
4616
4617 2012-05-22 Doug Evans <dje@google.com>
4618
4619 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4620 "const gdb_byte *".
4621 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4622 (execute_cfa_program): Update to match API of leb128 functions.
4623 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4624 "const gdb_byte *".
4625 (read_unsigned_leb128, read_signed_leb128): Delete.
4626 (read_initial_length): Change type of buf argument to
4627 "const gdb_byte *".
4628 (read_encoded_value): Update to match API of leb128 functions.
4629 (decode_frame_entry): Change result to "const gdb_byte *", and
4630 similarly for "start" parameter.
4631 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4632 (dwarf2_build_frame_info): Change local frame_ptr to
4633 "const gdb_byte *".
4634 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4635 read_uleb128, read_sleb128. All callers updated.
4636 (safe_skip_leb128): New function.
4637 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4638 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4639 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4640 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4641 read_uleb128, read_sleb128.
4642 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4643 (execute_stack_op): Update to match API of leb128 functions.
4644 * dwarf2expr.h: #include "leb128.h".
4645 (read_uleb128, read_sleb128): Delete.
4646 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4647 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4648 * dwarf2loc.c (debug_loc_kind): New enum.
4649 (decode_debug_loc_addresses): New function.
4650 (decode_debug_loc_dwo_addresses): New function.
4651 (dwarf2_find_location_expression): Rewrite.
4652 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4653 (locexpr_describe_location_piece): Ditto.
4654 (disassemble_dwarf_expression): Ditto.
4655 (locexpr_describe_location_1): Ditto.
4656 (loclist_describe_location): Rewrite.
4657 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4658 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4659 (dwarf2_section_buffer_overflow_complaint): Renamed from
4660 dwarf2_macros_too_long_complaint. All callers updated.
4661 (skip_leb128): Delete.
4662 (init_cu_die_reader): Initialize reader->buffer_end.
4663 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4664 (skip_form_bytes): New arg buffer_end. All callers updated.
4665 Replace call to skip_leb128 with gdb_skip_leb128.
4666 (skip_unknown_opcode): New arg mac_end. All callers updated.
4667 (fill_in_loclist_baton): Initialize baton->from_dwo.
4668
4669 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4670
4671 * mips-linux-nat.c (mips_linux_read_description): Use a more
4672 verbose error message.
4673
4674 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4675
4676 * NEWS: Add MIPS/Linux DSP support.
4677 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4678 (SIGCONTEXT_DSPCTL): New macro.
4679 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4680 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4681 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4682 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4683 (N64_SIGCONTEXT_HI3): Likewise.
4684 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4685 (N64_SIGCONTEXT_LO3): Likewise.
4686 (N64_SIGCONTEXT_DSPCTL): Likewise.
4687 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4688 (mips_linux_o32_sigframe_init): Handle DSP registers.
4689 (mips_linux_n32n64_sigframe_init): Likewise.
4690
4691 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4692
4693 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4694 call to abort.
4695
4696 2012-05-22 Pedro Alves <palves@redhat.com>
4697
4698 * target.h (store_waitstatus): Move declaration ...
4699 * inf-child.h (store_waitstatus): ... here.
4700 * target.c: Move inclusion of gdb_wait.h, and ...
4701 (store_waitstatus): ... this ...
4702 * inf-child.c: ... here.
4703 * linux-nat.c: Include inf-child.h.
4704 * rs6000-nat.c: Include inf-child.h.
4705 * spu-linux-nat.c: Include inf-child.h.
4706
4707 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4708
4709 * tracepoint.c (start_tracing): Add missing i18n markup.
4710 (stop_tracing, set_trace_user): Ditto.
4711 (set_trace_notes, set_trace_stop_notes): Ditto.
4712
4713 2012-05-21 Tom Tromey <tromey@redhat.com>
4714
4715 PR c++/7173:
4716 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4717 types.
4718 * value.h (value_cast_pointers): Update.
4719 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4720 (value_cast): Update.
4721 (update_search_result): New function.
4722 (do_search_struct_field): New, from search_struct_field. Check
4723 for ambiguous results.
4724 (search_struct_field): Rewrite.
4725 * infcall.c (value_arg_coerce): Update.
4726 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4727 value_cast_pointers.
4728 * ada-lang.c (ada_convert_actual): Update.
4729
4730 2012-05-21 Tom Tromey <tromey@redhat.com>
4731
4732 * macroexp.c (macro_stringify): Terminate the string.
4733
4734 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4735
4736 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4737 Describe it.
4738 * auto-load.c (auto_load_expand_dir_vars): New function.
4739 (auto_load_safe_path_vec_update): Use it, remove the
4740 substitute_path_component call thanks to it.
4741 (auto_load_objfile_script): Remove the debug_file_directory processing.
4742 Use auto_load_expand_dir_vars, remove the substitute_path_component
4743 call thanks to it.
4744 * configure: Regenerate.
4745 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4746 path. Escape $ also for $debugdir.
4747 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4748 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4749
4750 2012-05-20 Doug Evans <dje@google.com>
4751
4752 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4753 before use. Check for symtab->includes == NULL before scanning it.
4754
4755 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4756
4757 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4758
4759 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4760
4761 * NEWS: Add microMIPS support and "set mips compression",
4762 "show mips compression" commands.
4763 * mips-tdep.h (mips_isa): New enum.
4764 (gdbarch_tdep): Add mips_isa.
4765 (mips_pc_is_mips16): Update prototype.
4766 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4767 * mips-tdep.c (mips_compression_mips16): New variable.
4768 (mips_compression_micromips): Likewise.
4769 (mips_compression_strings): Likewise.
4770 (mips_compression_string): Likewise.
4771 (is_mips16_isa, is_micromips_isa): New functions.
4772 (is_mips16_addr): Rename to...
4773 (is_compact_addr): ... this.
4774 (unmake_mips16_addr): Likewise to...
4775 (unmake_compact_addr): ... this.
4776 (make_mips16_addr): Likewise to...
4777 (make_compact_addr): ... this.
4778 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4779 functions.
4780 (mips_elf_make_msymbol_special): Handle microMIPS code.
4781 (msymbol_is_special): Rename to...
4782 (msymbol_is_mips16): ... this.
4783 (mips_make_symbol_special, mips_pc_is_mips16): Update
4784 accordingly.
4785 (msymbol_is_mips, msymbol_is_micromips): New functions.
4786 (mips16_to_32_reg): Rename to...
4787 (mips_reg3_to_reg): ... this.
4788 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4789 (mips_pc_isa): Likewise.
4790 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4791 code.
4792 (mips_fetch_instruction): Pass return status instead of printing
4793 an error message if requested. Handle microMIPS code. Bail out
4794 on an invalid ISA.
4795 (micromips_op): New macro.
4796 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4797 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4798 (b6s4_op, b7s3_reg): Likewise.
4799 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4800 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4801 (mips_insn_size): New function.
4802 (mips32_next_pc): Update mips_fetch_instruction call.
4803 (micromips_relative_offset7): New function.
4804 (micromips_relative_offset10): Likewise.
4805 (micromips_relative_offset16): Likewise.
4806 (micromips_pc_insn_size): Likewise.
4807 (micromips_bc1_pc): Likewise.
4808 (micromips_next_pc): Likewise.
4809 (unpack_mips16): Update mips_fetch_instruction call.
4810 (extended_mips16_next_pc): Update according to change to
4811 mips16_to_32_reg.
4812 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4813 code.
4814 (mips16_scan_prologue): Update mips_fetch_instruction call.
4815 Update according to change to mips16_to_32_reg.
4816 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4817 (mips_insn16_frame_base_sniffer): Likewise.
4818 (micromips_decode_imm9): New function.
4819 (micromips_scan_prologue): Likewise.
4820 (mips_micro_frame_cache): Likewise.
4821 (mips_micro_frame_this_id): Likewise.
4822 (mips_micro_frame_prev_register): Likewise.
4823 (mips_micro_frame_sniffer): Likewise.
4824 (mips_micro_frame_unwind): New variable.
4825 (mips_micro_frame_base_address): New function.
4826 (mips_micro_frame_base): New variable.
4827 (mips_micro_frame_base_sniffer): New function.
4828 (mips32_scan_prologue): Update mips_fetch_instruction call.
4829 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4830 rather than for MIPS16.
4831 (mips_insn32_frame_base_sniffer): Likewise.
4832 (mips_addr_bits_remove): Handle microMIPS code.
4833 (deal_with_atomic_sequence): Rename to...
4834 (mips_deal_with_atomic_sequence): ... this. Update the type
4835 of the variable used to hold an instruction. Remove the ISA bit
4836 check. Update mips_fetch_instruction call.
4837 (micromips_deal_with_atomic_sequence): New function.
4838 (deal_with_atomic_sequence): Likewise.
4839 (mips_about_to_return): Handle microMIPS code. Update
4840 mips_fetch_instruction call.
4841 (heuristic_proc_start): Check for the standard MIPS ISA rather
4842 than for MIPS16. Update mips_pc_is_mips16 and
4843 mips_fetch_instruction calls. Handle microMIPS code.
4844 (mips_push_dummy_code): Handle microMIPS code.
4845 (mips_eabi_push_dummy_call): Likewise.
4846 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4847 (mips_o64_push_dummy_call): Handle microMIPS code.
4848 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4849 (is_delayed): Remove function.
4850 (mips_single_step_through_delay): Replace the call to is_delayed
4851 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4852 Handle microMIPS code.
4853 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4854 microMIPS code.
4855 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4856 call.
4857 (micromips_in_function_epilogue_p): New function.
4858 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4859 call.
4860 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4861 Handle microMIPS.
4862 (gdb_print_insn_mips): Likewise.
4863 (mips_breakpoint_from_pc): Likewise.
4864 (mips_remote_breakpoint_from_pc): New function.
4865 (mips32_instruction_has_delay_slot): Simplify making use of the
4866 updated mips_fetch_instruction interface.
4867 (micromips_instruction_has_delay_slot): New function.
4868 (mips16_instruction_has_delay_slot): Simplify making use of the
4869 updated mips_fetch_instruction interface.
4870 (mips_adjust_breakpoint_address): Check for the standard MIPS
4871 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4872 calls. Handle microMIPS code.
4873 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4874 (mips_skip_trampoline_code): Handle microMIPS code.
4875 (global_mips_compression): New function.
4876 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4877 file flags. Register the microMIPS remote breakpoint handler
4878 and heuristic frame unwinder.
4879 (show_mips_compression): New function.
4880 (_initialize_mips_tdep): Add the "set mips compression" and
4881 "show mips compression" commands.
4882
4883 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4884
4885 * ada-lang.c:
4886 * ada-tasks.c:
4887 * ada-varobj.c:
4888 * amd64-darwin-tdep.c:
4889 * arm-symbian-tdep.c:
4890 * arm-tdep.c:
4891 * avr-tdep.c:
4892 * ax-gdb.c:
4893 * bfin-linux-tdep.c:
4894 * breakpoint.c:
4895 * c-valprint.c:
4896 * cli/cli-cmds.c:
4897 * coffread.c:
4898 * cp-support.c:
4899 * cris-tdep.c:
4900 * dwarf2-frame-tailcall.c:
4901 * dwarf2-frame.c:
4902 * dwarf2expr.c:
4903 * dwarf2loc.c:
4904 * dwarf2read.c:
4905 * elfread.c:
4906 * eval.c:
4907 * expprint.c:
4908 * f-valprint.c:
4909 * frv-tdep.c:
4910 * h8300-tdep.c:
4911 * hppa-hpux-tdep.c:
4912 * hppa-tdep.c:
4913 * hppanbsd-tdep.c:
4914 * i386-nto-tdep.c:
4915 * i386-tdep.c:
4916 * i387-tdep.c:
4917 * ia64-tdep.c:
4918 * jit.c:
4919 * linespec.c:
4920 * linux-tdep.c:
4921 * lm32-tdep.c:
4922 * m2-valprint.c:
4923 * m32c-tdep.c:
4924 * m32r-rom.c:
4925 * m32r-tdep.c:
4926 * m68k-tdep.c:
4927 * m68klinux-tdep.c:
4928 * mi/mi-main.c:
4929 * microblaze-tdep.c:
4930 * mips-linux-tdep.c:
4931 * mips-tdep.c:
4932 * mn10300-tdep.c:
4933 * p-valprint.c:
4934 * parse.c:
4935 * ppc-linux-tdep.c:
4936 * ppc-sysv-tdep.c:
4937 * printcmd.c:
4938 * python/py-finishbreakpoint.c:
4939 * python/py-inferior.c:
4940 * python/py-infthread.c:
4941 * python/py-type.c:
4942 * python/python.c:
4943 * remote-fileio.c:
4944 * remote-m32r-sdi.c:
4945 * remote-mips.c:
4946 * reverse.c:
4947 * rl78-tdep.c:
4948 * rs6000-aix-tdep.c:
4949 * rs6000-tdep.c:
4950 * s390-tdep.c:
4951 * score-tdep.c:
4952 * sh64-tdep.c:
4953 * skip.c:
4954 * solib-darwin.c:
4955 * solib-dsbt.c:
4956 * solib-frv.c:
4957 * sparc-tdep.c:
4958 * spu-multiarch.c:
4959 * spu-tdep.c:
4960 * stack.c:
4961 * symfile.c:
4962 * symtab.c:
4963 * tic6x-tdep.c:
4964 * tracepoint.c:
4965 * v850-tdep.c:
4966 * valarith.c:
4967 * valprint.c:
4968 * value.c:
4969 * xcoffread.c:
4970 * xtensa-tdep.c:
4971 * ada-lang.c:
4972 * ada-tasks.c:
4973 * ada-varobj.c:
4974 * amd64-darwin-tdep.c:
4975 * arm-symbian-tdep.c:
4976 * arm-tdep.c: Delete unused variables.
4977
4978 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4979
4980 Rename $ddir to $datadir.
4981 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4982 * auto-load.c (auto_load_safe_path_vec_update)
4983 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4984 * configure: Regenerate.
4985 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4986 Likewise. Remove the 'use $ddir' help string.
4987
4988 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4989
4990 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4991 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4992
4993 2012-05-18 Tom Tromey <tromey@redhat.com>
4994
4995 PR exp/13907:
4996 * valprint.h (struct value_print_options) <symbol_print>: New
4997 field.
4998 * valprint.c (user_print_options): Add default for symbol_print.
4999 (show_symbol_print): New function.
5000 (generic_val_print): Respect symbol_print.
5001 (_initialize_valprint): Add "print symbol" setting.
5002 * f-valprint.c (f_val_print): Respect symbol_print.
5003 * c-valprint.c (c_val_print): Respect symbol_print.
5004 * NEWS: Update.
5005 * printcmd.c (print_address_symbolic): Return int. Ignore some
5006 zero-size symbols.
5007 (print_address_demangle): Return int.
5008 * defs.h: (print_address_symbolic): Return int.
5009 * value.h (print_address_demangle): Return int.
5010
5011 2012-05-18 Tom Tromey <tromey@redhat.com>
5012
5013 * valprint.c (val_print_string): Don't print leading space.
5014 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5015 print space before string or vtbl.
5016 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5017 before string.
5018 * jv-valprint.c (java_value_print): Print space before string.
5019 * go-valprint.c (print_go_string): Print space before string.
5020 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5021 space before string.
5022 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5023 space before string or vtbl.
5024 * auxv.c (fprint_target_auxv): Print space after address.
5025
5026 2012-05-18 Tom Tromey <tromey@redhat.com>
5027
5028 * printcmd.c (print_address_demangle): Remove special case for 0.
5029
5030 2012-05-18 Tom Tromey <tromey@redhat.com>
5031
5032 * printcmd.c (print_address_demangle): Add 'opts' argument.
5033 * p-valprint.c (pascal_val_print): Update.
5034 * jv-valprint.c (java_val_print): Update.
5035 * value.h: Update.
5036 * valprint.c (generic_val_print): Update.
5037 (print_function_pointer_address): Add 'options' argument. Remove
5038 'addressprint' argument. Update.
5039 * m2-valprint.c (print_unpacked_pointer): Update.
5040 * gnu-v3-abi.c (print_one_vtable): Update.
5041 (gnuv3_print_method_ptr): Update.
5042 * f-valprint.c (f_val_print): Update.
5043 * cp-valprint.c (cp_print_value_fields): Update.
5044 * valprint.h (print_function_pointer_address): Update.
5045 * c-valprint.c (c_val_print): Update.
5046
5047 2012-05-18 Tom Tromey <tromey@redhat.com>
5048
5049 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5050 directly corresponding to the found psymtab.
5051 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5052 (dw2_find_pc_sect_symtab): Use it.
5053 * block.h (blockvector_contains_pc): Declare.
5054 * block.c (find_block_in_blockvector): New function.
5055 (blockvector_for_pc_sect): Use it.
5056 (blockvector_contains_pc): New function.
5057
5058 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5059
5060 * mips-tdep.h (mips_write_pc): New prototype.
5061 * mips-tdep.c (mips_write_pc): Make external, add description.
5062 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5063 add description.
5064
5065 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5066
5067 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5068 mips_regnum->pc.
5069 (mips_unwind_pc, mips_write_pc): Likewise.
5070 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5071 gdbarch_read_pc.
5072
5073 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5074
5075 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5076 proc_warn, proc_error, proc_get_status, proc_flags,
5077 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5078 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5079 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5080 proc_stop_process, proc_wait_for_stop, proc_run_process,
5081 proc_set_traced_signals, proc_set_traced_faults,
5082 proc_set_traced_sysentry, proc_set_traced_sysexit,
5083 proc_set_held_signals, proc_get_held_signals,
5084 proc_get_traced_signals, proc_get_traced_faults,
5085 proc_get_traced_sysentry, proc_get_traced_sysexit,
5086 proc_clear_current_fault, proc_set_current_signal,
5087 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5088 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5089 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5090 proc_get_current_thread, proc_get_current_thread,
5091 proc_get_current_thread, proc_update_threads,
5092 proc_update_threads, proc_update_threads, proc_update_threads,
5093 proc_iterate_over_threads, procfs_find_new_threads,
5094 procfs_pid_to_str): Make static. Remove advance declaration.
5095 (proc_cursig): Make static. Conditionalized defintion on
5096 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5097 (proc_syscall, proc_set_kill_on_last_close,
5098 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5099 proc_get_pending_signals, proc_get_signal_actions,
5100 proc_trace_signal, proc_ignore_signal): Delete.
5101
5102 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5103
5104 * coffread.c (cs_section_address): Passing proper argument for
5105 `bfd_get_section_vma'.
5106 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5107 `bfd_get_section_flags'.
5108 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5109 `bfd_get_section_vma'.
5110
5111 2012-05-16 Tom Tromey <tromey@redhat.com>
5112
5113 PR macros/13205:
5114 * macrotab.h: (macro_define_special): Declare.
5115 (enum macro_special_kind): New.
5116 (struct macro_definition) <argc, replacement>: Update comments.
5117 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5118 (macro_define_object_internal): New function.
5119 (macro_define_object): Use it.
5120 (macro_define_special): New function.
5121 (fixup_definition): New function.
5122 (macro_lookup_definition, foreach_macro_in_scope)
5123 (foreach_macro): Use fixup_definition.
5124 * macroexp.h (macro_stringify): Declare.
5125 * macroexp.c (free_buffer_return_text): New function.
5126 (stringify): Constify "arg".
5127 (macro_stringify): New function.
5128 * dwarf2read.c (macro_start_file): Call macro_define_special.
5129
5130 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5131 Maciej W. Rozycki <macro@mips.com>
5132
5133 * breakpoint.h (bp_location): Add related_address member.
5134 * inferior.h (get_return_value): Take a pointer to struct value
5135 instead of struct type for the function requested.
5136 * value.h (using_struct_return): Likewise.
5137 * gdbarch.sh (return_value): Take a pointer to struct value
5138 instead of struct type for the function requested.
5139 * breakpoint.c (set_breakpoint_location_function): Initialize
5140 related_address for bp_gnu_ifunc_resolver breakpoints.
5141 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5142 requested function's address to gdbarch_return_value.
5143 * eval.c (evaluate_subexp_standard): Pass the requested
5144 function's address to using_struct_return.
5145 * infcall.c (call_function_by_hand): Pass the requested
5146 function's address to using_struct_return and
5147 gdbarch_return_value.
5148 * infcmd.c (get_return_value): Take a pointer to struct value
5149 instead of struct type for the function requested.
5150 (print_return_value): Update accordingly.
5151 (finish_command_continuation): Likewise.
5152 * stack.c (return_command): Pass the requested function's
5153 address to using_struct_return and gdbarch_return_value.
5154 * value.c (using_struct_return): Take a pointer to struct value
5155 instead of struct type for the function requested. Pass the
5156 requested function's address to gdbarch_return_value.
5157 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5158 New function_value member, replacing function_type.
5159 (bpfinishpy_dealloc): Update accordingly.
5160 (bpfinishpy_pre_stop_hook): Likewise.
5161 (bpfinishpy_init): Likewise. Record the requested function's
5162 address.
5163 * mips-tdep.c (mips_fval_reg): New enum.
5164 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5165 words put in GP registers.
5166 (mips_o64_push_dummy_call): Update a comment.
5167 (mips_o32_return_value): Take a pointer to struct value instead
5168 of struct type for the function requested and use it to check if
5169 using the MIPS16 calling convention. Return the designated
5170 general purpose registers for floating-point values returned in
5171 MIPS16 mode.
5172 (mips_o64_return_value): Likewise.
5173 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5174 (ppc_sysv_abi_broken_return_value): Likewise.
5175 (ppc64_sysv_abi_return_value): Likewise.
5176 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5177 value instead of struct type for the function requested.
5178 * amd64-tdep.c (amd64_return_value): Likewise.
5179 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5180 * arm-tdep.c (arm_return_value): Likewise.
5181 * avr-tdep.c (avr_return_value): Likewise.
5182 * bfin-tdep.c (bfin_return_value): Likewise.
5183 * cris-tdep.c (cris_return_value): Likewise.
5184 * frv-tdep.c (frv_return_value): Likewise.
5185 * h8300-tdep.c (h8300_return_value): Likewise.
5186 (h8300h_return_value): Likewise.
5187 * hppa-tdep.c (hppa32_return_value): Likewise.
5188 (hppa64_return_value): Likewise.
5189 * i386-tdep.c (i386_return_value): Likewise.
5190 * ia64-tdep.c (ia64_return_value): Likewise.
5191 * iq2000-tdep.c (iq2000_return_value): Likewise.
5192 * lm32-tdep.c (lm32_return_value): Likewise.
5193 * m32c-tdep.c (m32c_return_value): Likewise.
5194 * m32r-tdep.c (m32r_return_value): Likewise.
5195 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5196 * m68k-tdep.c (m68k_return_value): Likewise.
5197 (m68k_svr4_return_value): Likewise.
5198 * m88k-tdep.c (m88k_return_value): Likewise.
5199 * mep-tdep.c (mep_return_value): Likewise.
5200 * microblaze-tdep.c (microblaze_return_value): Likewise.
5201 * mn10300-tdep.c (mn10300_return_value): Likewise.
5202 * moxie-tdep.c (moxie_return_value): Likewise.
5203 * mt-tdep.c (mt_return_value): Likewise.
5204 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5205 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5206 (ppc_sysv_abi_broken_return_value): Likewise.
5207 (ppc64_sysv_abi_return_value): Likewise.
5208 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5209 * rl78-tdep.c (rl78_return_value): Likewise.
5210 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5211 * rx-tdep.c (rx_return_value): Likewise.
5212 * s390-tdep.c (s390_return_value): Likewise.
5213 * score-tdep.c (score_return_value): Likewise.
5214 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5215 (sh_return_value_fpu): Likewise.
5216 * sh64-tdep.c (sh64_return_value): Likewise.
5217 * sparc-tdep.c (sparc32_return_value): Likewise.
5218 * sparc64-tdep.c (sparc64_return_value): Likewise.
5219 * spu-tdep.c (spu_return_value): Likewise.
5220 * tic6x-tdep.c (tic6x_return_value): Likewise.
5221 * v850-tdep.c (v850_return_value): Likewise.
5222 * vax-tdep.c (vax_return_value): Likewise.
5223 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5224 * xtensa-tdep.c (xtensa_return_value): Likewise.
5225 * gdbarch.c: Regenerate.
5226 * gdbarch.h: Regenerate.
5227
5228 2012-05-15 Tom Tromey <tromey@redhat.com>
5229
5230 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5231
5232 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5233
5234 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5235 of command in two error message.
5236
5237 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5238
5239 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5240
5241 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5242
5243 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5244
5245 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5246
5247 * NEWS (show auto-load scripts-directory): Add forgotten command.
5248
5249 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5250
5251 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5252 parameters.
5253
5254 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5255
5256 * amd64-tdep.c: Include features/i386/x32.c and
5257 features/i386/x32-avx.c.
5258 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5259 initialize_tdesc_x32_avx.
5260
5261 2012-05-14 Stan Shebs <stan@codesourcery.com>
5262
5263 Add dynamic printf.
5264 * breakpoint.h (enum bptype): New type bp_dprintf.
5265 (struct breakpoint): New field extra_string.
5266 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5267 (create_breakpoint): Add extra_string arg.
5268 * breakpoint.c (dprintf_breakpoint_ops): New.
5269 (is_breakpoint): Add bp_dprintf.
5270 (bpstat_what): Add dprintf case.
5271 (bptype_string): Ditto.
5272 (print_one_breakpoint_location): Ditto.
5273 (init_bp_location): Ditto.
5274 (bkpt_print_mention): Ditto.
5275 (dprintf_style_enums): New array.
5276 (dprintf_style): New global.
5277 (dprintf_function): New global.
5278 (dprintf_channel): New global.
5279 (update_dprintf_command_list): New function.
5280 (update_dprintf_commands): New function.
5281 (init_breakpoint_sal): Add extra_string argument, handle it.
5282 (create_breakpoint_sal): Add extra_string argument.
5283 (create_breakpoints_sal): Add extra_string argument, update callers.
5284 (find_condition_and_thread): Add extra argument.
5285 (create_breakpoint): Add extra_string argument, record it.
5286 (dprintf_command): New function.
5287 (break_command_1): Add arg to create_breakpoint call.
5288 (handle_gnu_v3_exceptions): Ditto.
5289 (trace_command): Ditto.
5290 (ftrace_command): Ditto.
5291 (strace_command): Ditto.
5292 (bkpt_print_mention): Add dprintf case.
5293 (create_breakpoint_sal_default): Add extra_string argument.
5294 (_initialize_breakpoint): Add new commands.
5295 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5296 * python/py-breakpoint.c (bppy_init): Ditto.
5297 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5298
5299 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5300
5301 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5302
5303 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5304
5305 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5306 unsigned long long.
5307
5308 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5309
5310 Add a new function gdb.find_pc_line to the Python API.
5311 * NEWS (Python Scripting): Add entry about the new function.
5312 * python/python.c (gdbpy_find_pc_line): New function which
5313 implements gdb.find_pc_line.
5314 (GdbMethods): Add entry for the new function.
5315
5316 2012-05-12 Pedro Alves <palves@redhat.com>
5317
5318 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5319 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5320
5321 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5322
5323 * inferior.c: Include completer.h
5324 (initialize_inferiors): Set completer of add-inferior to
5325 filename_completer.
5326
5327 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5328
5329 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5330 gdbarch_ptr_bit for x32 core dump.
5331
5332 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5333
5334 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5335 and features/i386/x32-avx-linux.c.
5336
5337 2012-05-11 Stan Shebs <stan@codesourcery.com>
5338 Kwok Cheung Yeung <kcy@codesourcery.com>
5339
5340 * NEWS: Describe new info os commands.
5341 * common/linux-osdata.c (PID_T, TIME_T): Define.
5342 (MAX_PID_T_STRLEN): New.
5343 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5344 MAX_PID_T_STRLEN.
5345 (command_from_pid): Add comment. Change to use PID_T.
5346 (commandline_from_pid): Change to use PID_T.
5347 (user_from_pid): Add comment.
5348 (get_process_owner): Add comment. Change to use PID_T and
5349 MAX_PID_T_STRLEN.
5350 (get_number_of_cpu_cores): Add comment.
5351 (get_cores_used_by_process): Add comment. Change to use PID_T and
5352 MAX_PID_T_STRLEN.
5353 (linux_xfer_osdata_processes): Change to use PID_T and
5354 MAX_PID_T_STRLEN.
5355 (compare_processes): New function.
5356 (linux_xfer_osdata_processgroups): New function.
5357 (linux_xfer_osdata_threads): Change to use PID_T.
5358 (linux_xfer_osdata_fds): New function.
5359 (format_socket_state, print_sockets): New functions.
5360 (union socket_addr): New union.
5361 (linux_xfer_osdata_isockets): New function.
5362 (time_from_time_t, group_from_gid): New functions.
5363 (linux_xfer_osdata_shm): New function.
5364 (linux_xfer_osdata_sem): New function.
5365 (linux_xfer_osdata_msg): New function.
5366 (linux_xfer_osdata_modules): New function.
5367 (osdata_table): Add new entries.
5368 * common/buffer.c (buffer_xml_printf): Add support for long and
5369 long long format specifiers.
5370
5371 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5372
5373 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5374 (tdesc_x32_avx_linux): Likewise.
5375
5376 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5377
5378 Implement multi-component --with-auto-load-dir.
5379 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5380 entries.
5381 (--with-auto-load-safe-path): Update the default value description.
5382 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5383 New.
5384 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5385 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5386 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5387 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5388 "set auto-load scripts-directory".
5389 * config.in: Regenerate.
5390 * configure: Regenerate.
5391 * configure.ac (--with-auto-load-dir): New configure option.
5392 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5393
5394 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5395
5396 Provide $ddir substitution for --with-auto-load-safe-path.
5397 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5398 entries.
5399 * auto-load.c: Include observer.h.
5400 (auto_load_safe_path_vec_update): Call substitute_path_component for
5401 each component. New variable ddir_subst.
5402 (auto_load_gdb_datadir_changed): New function.
5403 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5404 AUTO_LOAD_SAFE_PATH. New comment.
5405 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5406 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5407 * config.in: Regenerate.
5408 * configure: Regenerate.
5409 * configure.ac (--auto-load-safe-path): Rename
5410 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5411 GDB_DATADIR/auto-load.
5412 * defs.h (substitute_path_component): New declaration.
5413 * top.c: Include observer.h.
5414 (set_gdb_datadir): New function.
5415 (init_main): Install it for "set data-directory".
5416 * utils.c (substitute_path_component): New function.
5417
5418 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5419
5420 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5421 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5422 DEBUG_FILE_DIRECTORY. Handle multiple components of
5423 DEBUG_FILE_DIRECTORY.
5424
5425 2012-05-10 Tom Tromey <tromey@redhat.com>
5426
5427 * dwarf2read.c (recursively_write_psymbols): New function.
5428 (write_psymtabs_to_index): Use it.
5429
5430 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5431 field.
5432 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5433 (load_partial_comp_unit): Update.
5434 (queue_comp_unit): Add argument 'pretend_language'.
5435 (process_queue): Update.
5436 (psymtab_to_symtab_1): Skip dependencies that have a user.
5437 (load_partial_comp_unit_reader): Give meaning to the 'data'
5438 argument.
5439 (load_full_comp_unit): Add 'pretend_language' argument.
5440 (process_full_comp_unit): Add 'pretend_language' argument. Set
5441 language on CU.
5442 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5443 Update.
5444 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5445 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5446 Update.
5447 (prepare_one_comp_unit): Add 'pretend_language' argument.
5448
5449 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5450 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5451 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5452 (dw2_do_instantiate_symtab): Check whether symtab was read in
5453 before queueing.
5454 (dw2_instantiate_symtab): Add assertion. Call
5455 process_cu_includes.
5456 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5457 (partial_symtab_p): New typedef.
5458 (set_partial_user): New function.
5459 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5460 (scan_partial_symbols): Add imported CU to imported_symtabs.
5461 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5462 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5463 (get_symtab, recursively_compute_inclusions)
5464 (compute_symtab_includes, process_cu_includes)
5465 (process_imported_unit_die): New functions.
5466 (process_die) <DW_TAG_imported_unit>: New case.
5467 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5468
5469 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5470 comment.
5471 (struct partial_die_info) <locdesc>: Remove.
5472 <d>: New field.
5473 (process_psymtab_comp_unit): Add 'read_partial' argument.
5474 Update.
5475 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5476 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5477 (add_partial_symbol): Update.
5478 (process_die): Handle DW_TAG_partial_unit.
5479 (read_file_scope): Update comment.
5480 (load_partial_dies): Handle DW_TAG_imported_unit.
5481 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5482 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5483
5484 2012-05-10 Tom Tromey <tromey@redhat.com>
5485
5486 * cc-with-dwz.sh: New file.
5487
5488 2012-05-10 Tom Tromey <tromey@redhat.com>
5489
5490 * symtab.h (struct symtab) <includes, user>: New fields.
5491 * block.h (struct block_iterator) <d, idx, which>: New fields.
5492 * block.c (initialize_block_iterator, find_iterator_symtab)
5493 (block_iterator_step, block_iter_name_step)
5494 (block_iter_match_step): New functions.
5495 (block_iterator_first, block_iterator_next)
5496 (block_iter_name_first, block_iter_name_next)
5497 (block_iter_match_first, block_iter_match_next): Rewrite.
5498 (get_block_symtab): New function.
5499
5500 2012-05-10 Tom Tromey <tromey@redhat.com>
5501
5502 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5503 set_block_symtab.
5504 * jit.c (finalize_symtab): Use allocate_global_block,
5505 set_block_symtab.
5506 * buildsym.c (finish_block_internal): New function, from old
5507 finish_block.
5508 (finish_block): Rewrite.
5509 (end_symtab): Use finish_block_internal, set_block_symtab.
5510 * block.h (struct global_block): New.
5511 (allocate_global_block, set_block_symtab): Declare.
5512 * block.c (allocate_global_block, set_block_symtab): New
5513 functions.
5514
5515 2012-05-10 Tom Tromey <tromey@redhat.com>
5516
5517 * psymtab.c (partial_map_expand_apply): Add assertion.
5518 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5519 (psymtab_to_symtab): Find unshared psymtab.
5520 (dump_psymtab): Print including psymtabs.
5521 (recursively_search_psymtabs): New function.
5522 (expand_symtabs_matching_via_partial): Use it.
5523 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5524 fields.
5525 (enum psymtab_search_status): New.
5526
5527 2012-05-10 Tom Tromey <tromey@redhat.com>
5528
5529 * tracepoint.c (scope_info): Update.
5530 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5531 (find_pc_sect_symtab, search_symbols)
5532 (default_make_symbol_completion_list_break_on)
5533 (make_file_symbol_completion_list): Update.
5534 * symmisc.c (dump_symtab_1): Update.
5535 * stack.c (print_frame_args, iterate_over_block_locals)
5536 (print_frame_labels, iterate_over_block_arg_vars): Update.
5537 * python/py-block.c (block_object) <dict>: Remove.
5538 <block>: New field.
5539 <iter>: Change type.
5540 (blpy_iter): Update.
5541 (blpy_block_syms_iternext): Update.
5542 * psymtab.c (map_block): Use block iterators.
5543 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5544 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5545 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5546 * infrun.c (check_exception_resume): Update.
5547 * cp-support.c (make_symbol_overload_list_block): Update.
5548 * coffread.c (patch_opaque_types): Update.
5549 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5550 * block.h (struct block_iterator): New.
5551 (block_iterator_first, block_iterator_next, block_iter_name_first)
5552 (block_iter_name_next, block_iter_match_first)
5553 (block_iter_match_next): Declare.
5554 (ALL_BLOCK_SYMBOLS): Redefine.
5555 * block.c (block_iterator_first, block_iterator_next)
5556 (block_iter_name_first, block_iter_name_next)
5557 (block_iter_match_first, block_iter_match_next): New functions.
5558 * ada-lang.c (ada_add_block_symbols)
5559 (ada_make_symbol_completion_list): Use block iterator.
5560
5561 2012-05-10 Tom Tromey <tromey@redhat.com>
5562
5563 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5564 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5565 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5566 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5567 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5568 Update.
5569
5570 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5571
5572 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5573 print-file-var-lib2.c, print-file-var-main.c and
5574 print-file-var.exp (located in gdb/testsuite/gdb.base).
5575
5576 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5577
5578 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5579 try locating the symbol in the symbol's own objfile first, before
5580 extending the search to all objfiles.
5581 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5582 out of lookup_symbol_aux_symtabs.
5583 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5584 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5585 Do not search EXCLUDE_OBJFILE.
5586 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5587 (lookup_symbol_global): Search for matches in the block's objfile
5588 first, before searching all other objfiles.
5589
5590 2012-05-10 Tristan Gingold <gingold@adacore.com>
5591
5592 * printcmd.c (set_command): Add pre/post inc/dec.
5593
5594 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5595
5596 * gdb.1: Document -ex option.
5597
5598 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5599
5600 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5601 * inferior.h (AT_SYMBOL): Delete.
5602
5603 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5604
5605 * mips-tdep.c (mips_push_dummy_code): New function.
5606 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5607 ON_STACK and install mips_push_dummy_code as our gdbarch
5608 push_dummy_code routine.
5609
5610 2012-05-09 Pedro Alves <palves@redhat.com>
5611
5612 * target.c (set_maintenance_target_async_permitted): Rename to ...
5613 (set_target_async_command): ... this.
5614 (show_maintenance_target_async_permitted): Rename to ...
5615 (show_target_async_command): ... this.
5616 (initialize_targets): Adjust.
5617
5618 2012-05-08 Doug Evans <dje@google.com>
5619
5620 * go-exp.y (classify_name): Add missing assignment of fields of
5621 yylval.ssym.
5622
5623 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5624
5625 Display the ">" prompt in interactive mode while reading canned
5626 commands, even when the current interpreter is MI.
5627
5628 * interps.c (interp_set_temp): New function.
5629
5630 * interps.h (interp_set_temp): Add prototype.
5631
5632 * cli/cli-script.c (restore_interp): New cleanup function.
5633 (read_command_lines): Temporarily override the current interpreter
5634 with CLI and arrange for restoring the original one.
5635
5636 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5637
5638 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5639
5640 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5641
5642 * probe.c (parse_probes): Move conditional to check for
5643 debuginfo files from here...
5644 * stap-probe.c (stap_get_probes): ... to here.
5645
5646 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5647 H.J. Lu <hongjiu.lu@intel.com>
5648
5649 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5650 `movl %esp, %ebp' for the X32 ABI.
5651
5652 2012-05-07 Tom Tromey <tromey@redhat.com>
5653
5654 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5655 get_DW_TAG_name.
5656 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5657 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5658 (dwarf_stack_op_name): Remove.
5659 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5660 (decode_locdesc): Use get_DW_OP_name.
5661 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5662 (dwarf2_compile_expr_to_ax): Likewise.
5663 (disassemble_dwarf_expression): Likewise.
5664 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5665
5666 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5667
5668 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5669 (sh_linux_sigtramp_cache): New function.
5670 (sh_linux_sigreturn_init): New function.
5671 (sh_linux_rt_sigreturn_init): New function.
5672 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5673 patterns.
5674 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5675 syscall codes.
5676 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5677 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5678 (sh_linux_init_abi): Add init calls to register new tramp_frame
5679 definitions under 32-bit SH, update comments.
5680
5681 2012-05-07 Pedro Alves <palves@redhat.com>
5682
5683 PR gdb/10952
5684
5685 * amd64-linux-tdep.c: Include glibc-tdep.h.
5686 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5687 gdbarch_skip_solib_resolver callback.
5688
5689 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5690
5691 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5692 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5693 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5694 (add_auto_load_safe_path): Change the error message.
5695 (_initialize_auto_load): Change the "safe-path" help text.
5696 * configure: Regenerate
5697 * configure.ac (--without-auto-load-safe-path): Set
5698 WITH_AUTO_LOAD_SAFE_PATH to /.
5699
5700 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5701
5702 * stap-probe.h: Do not include unecessary `probe.h'.
5703
5704 2012-05-05 Alan Modra <amodra@gmail.com>
5705
5706 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5707 bfd_und_section_ptr.
5708 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5709 and bfd_com_section_ptr.
5710
5711 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5712
5713 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5714
5715 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5716
5717 * windows-nat.h (segment_register_p_ftype): New typedef.
5718 (windows_set_segment_register_p): Add declaration.
5719 * windows-nat.c (segment_register_p): New static global.
5720 (windows_set_segment_register_p): New function.
5721 (do_windows_fetch_inferior_registers): Add special handling
5722 for segment registers.
5723 * amd64-windows-nat.c: #include "amd64-tdep.h".
5724 (amd64_windows_segment_register_p): New function.
5725 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5726 * i386-windows-nat.c: #include "i386-tdep.h".
5727 (i386_windows_segment_register_p): New function.
5728 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5729
5730 2012-05-04 Tristan Gingold <gingold@adacore.com>
5731
5732 * printcmd.c (set_command): Emit a warning if the expression is not
5733 an assignment.
5734
5735 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5736
5737 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5738 Make static.
5739
5740 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5741
5742 * stap-probe.c (stap_is_operator): Change declaration.
5743 (stap_get_opcode): Change return value.
5744 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5745 `stap_parse_argument_1'.
5746
5747 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5748
5749 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5750 debug log.
5751
5752 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5753
5754 Add two new methods global_block and static_block to gdb.Symtab
5755 objects.
5756 * NEWS (Python scripting): Add entry about the new methods.
5757 * python/py-symtab.c (stpy_global_block): New function which
5758 implements the gdb.Symtab.global_block() method.
5759 (stpy_static_block): New function which implements the
5760 gdb.Symtab.static_block() method.
5761 (symtab_object_methods): Add entries for the two new methods.
5762
5763 2012-05-03 Doug Evans <dje@google.com>
5764
5765 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5766 files.
5767
5768 2012-05-03 Yao Qi <yao@codesourcery.com>
5769
5770 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5771 space.
5772 (i386_process_record): Ditto.
5773
5774 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5775
5776 * infcall.c (unwind_on_signal_p): Make static.
5777
5778 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5779
5780 * sol-thread.c (solaris_pid_to_str): Make static.
5781 (_initialize_sol_thread): Add prototype.
5782
5783 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5784
5785 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5786
5787 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5788
5789 * MAINTAINERS: Remove myself.
5790
5791 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5792
5793 Fix --without-auto-load-safe-path for MS-Windows host platform.
5794 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5795
5796 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5797
5798 * gdb_curses.h: Undefine KEY_EVENT before including curses
5799 headers. Move "#undef MOUSE_MOVED" before any curses header
5800 inclusion.
5801
5802 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5803
5804 * features/i386/i386-mmx-linux.c: Regenerate.
5805 * features/rs6000/powerpc-32.c: Likewise.
5806 * features/rs6000/powerpc-32l.c: Likewise.
5807 * features/rs6000/powerpc-403.c: Likewise.
5808 * features/rs6000/powerpc-403gc.c: Likewise.
5809 * features/rs6000/powerpc-405.c: Likewise.
5810 * features/rs6000/powerpc-505.c: Likewise.
5811 * features/rs6000/powerpc-601.c: Likewise.
5812 * features/rs6000/powerpc-602.c: Likewise.
5813 * features/rs6000/powerpc-603.c: Likewise.
5814 * features/rs6000/powerpc-604.c: Likewise.
5815 * features/rs6000/powerpc-64.c: Likewise.
5816 * features/rs6000/powerpc-64l.c: Likewise.
5817 * features/rs6000/powerpc-750.c: Likewise.
5818 * features/rs6000/powerpc-860.c: Likewise.
5819 * features/rs6000/powerpc-e500.c: Likewise.
5820 * features/rs6000/powerpc-e500l.c: Likewise.
5821 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5822 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5823 * features/rs6000/rs6000.c: Likewise.
5824
5825 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5826
5827 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5828 variable.
5829 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5830 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5831 (stap_parse_argument) <e>: Likewise.
5832 (handle_stap_probe) <byte_order>: Likewise.
5833
5834 2012-04-30 Doug Evans <dje@google.com>
5835
5836 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5837 init_and_read_dies_worker. All callers updated.
5838 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5839 replaced with init_cutu_and_read_dies.
5840 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5841 (find_partial_die): Remove FIXME. Don't free current CU.
5842
5843 2012-04-30 Sterling Augustine <saugustine@google.com>
5844
5845 * contrib: New directory.
5846 * contrib/test_pubnames_and_indexes.py: New file.
5847
5848 2012-04-30 Doug Evans <dje@google.com>
5849
5850 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5851 All callers updated.
5852 (init_cu_die_reader): Verify the section is non-empty.
5853 (dwarf_decode_line_header): Don't dereference section->asection
5854 until we know the section is present.
5855
5856 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5857
5858 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5859 probes.
5860
5861 2012-04-29 Yao Qi <yao@codesourcery.com>
5862
5863 * gdb-code-style.el: New hook gdb-markup-hook
5864 and gdb-comment-hook.
5865
5866 2012-04-28 Doug Evans <dje@google.com>
5867
5868 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5869 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5870 objfile->obfd.
5871 * symfile.h (dwarf2_debug_sections): New member addr.
5872 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5873 (ctx_no_get_addr_index): New function.
5874 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5875 (ctx_no_get_addr_index): Declare.
5876 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5877 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5878 (dwarf_expr_ctx_funcs): Update.
5879 (needs_get_addr_index): New function.
5880 (needs_frame_ctx_funcs): Update.
5881 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5882 * dwarf2read.c: #include "gdbcore.h".
5883 (dwarf2_per_objfile): New members addr, dwo_files.
5884 (dwarf2_elf_names): Add entry for addr.
5885 (struct dwo_section_names): New type.
5886 (dwo_section_names): New static global.
5887 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5888 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5889 old debug_types_section member updated to use this.
5890 Rename member debug_types_section to info_or_types_section,
5891 all uses updated.
5892 (signatured_type): Rename member type_offset to type_offset_in_tu,
5893 all uses updated. New member type_offset_in_section.
5894 (struct dwo_sections): New type.
5895 (struct dwo_unit): New type.
5896 (struct dwo_file): New type.
5897 (die_reader_specs): New member dwo_file.
5898 (dwarf2_locate_sections): Watch for .debug_addr.
5899 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5900 (dwarf2_read_section): Get bfd of section from bfd's asection,
5901 instead of objfile.
5902 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5903 (create_signatured_type_table_from_index): Initialize
5904 sig_type->info_or_types_section.
5905 (dw2_get_file_names): Statement lists for type units with DWO files
5906 live in the DWO file.
5907 (create_debug_types_hash_table): New function.
5908 (create_all_type_units): Rewrite.
5909 (init_cu_die_reader): New arg dwo_file, all callers updated.
5910 (init_and_read_dies_worker): Get section from
5911 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5912 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5913 continue reading the CU/TU from there.
5914 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5915 updated. Get section from this_cu->info_or_types_section.
5916 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5917 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5918 DW_FORM_GNU_str_index.
5919 (hash_dwo_file, eq_dwo_file): New functions.
5920 (allocate_dwo_file_hash_table): New function.
5921 (hash_dwo_unit, eq_dwo_unit): New functions.
5922 (allocate_dwo_unit_table): New function.
5923 (dwarf2_locate_dwo_sections): New function.
5924 (struct create_dwo_info_table_data): New type.
5925 (create_debug_info_hash_table_reader): New function.
5926 (create_debug_info_hash_table): New function.
5927 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5928 (lookup_dwo_file): New function.
5929 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5930 (free_dwo_file, free_dwo_file_cleanup): New functions.
5931 (free_dwo_file_from_slot, free_dwo_files): New functions.
5932 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5933 (dwarf2_record_block_ranges): Ditto.
5934 (read_partial_die): Ditto.
5935 (process_enumeration_scope): Update to use type_offset_in_section.
5936 (read_full_die_1): New function.
5937 (read_full_die): Rewrite.
5938 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5939 DW_FORM_GNU_str_index.
5940 (read_addr_index_1, read_addr_index): New functions.
5941 (read_addr_index_from_leb128): New function.
5942 (struct dwarf2_read_addr_index_data): New type.
5943 (dwarf2_read_addr_index_reader): New function.
5944 (dwarf2_read_addr_index): New function.
5945 (read_str_index): New function.
5946 (leb128_size): New function.
5947 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5948 If processing a type unit from a DWO file, get the line section
5949 from the DWO file.
5950 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5951 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5952 DW_FORM_GNU_str_index.
5953 (lookup_die_type): Check whether section offset of type's die is
5954 known before looking it up. Remove assert. Condition can
5955 legimately happen for inter-cu type references.
5956 (dwarf_attr_name): Handle Fission attributes.
5957 (dwarf_form_name): Handle Fission forms.
5958 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5959 DW_FORM_GNU_str_index.
5960 (follow_die_sig): Update to use type_offset_in_section.
5961 (decode_locdesc): New case DW_OP_GNU_addr_index.
5962 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5963 DW_FORM_GNU_str_index.
5964 (cu_debug_loc_section): New function.
5965 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5966 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5967 Free DWO files if present.
5968 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5969
5970 Refactor DIE reading.
5971 * dwarf2read.c (dwarf2_per_objfile): Replace members
5972 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5973 (die_reader_specs): New member "die_section". Temporarily make
5974 member "buffer" non-const, pending constifying all info_ptr uses.
5975 (die_reader_func_ftype): New typedef.
5976 (dw2_get_file_names_reader): New function.
5977 (dw2_get_file_names): Rewrite.
5978 (read_and_check_type_unit_head): Rename arg type_offset to
5979 type_offset_in_tu.
5980 (create_all_type_units): Improve debugging message.
5981 Improve dummy type unit check.
5982 (init_cu_die_reader): New arg "section". All callers updated.
5983 (init_and_read_dies_worker): New function.
5984 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5985 (init_cutu_and_read_dies_no_follow): New function.
5986 (init_cutu_and_read_dies_simple): New function.
5987 (process_psymtab_comp_unit_reader): New function.
5988 (process_psymtab_comp_unit): Delete args section,
5989 is_debug_types_section. Rewrite. All callers updated.
5990 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5991 All callers updated. Rewrite.
5992 (load_partial_comp_unit_reader): New function.
5993 (load_partial_comp_unit): Rewrite.
5994 (skip_children): New arg reader. Delete args buffer, cu.
5995 All callers updated.
5996 (skip_one_die): New arg reader. Delete args buffer, cu.
5997 All callers updated.
5998 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5999 All callers updated.
6000 (load_full_comp_unit_reader): New function.
6001 (load_full_comp_unit): Rewrite.
6002 (read_comp_unit): Delete.
6003 (read_die_and_children_1): Delete, contents moved ...
6004 (read_die_and_children): ... here.
6005 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6006 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6007 All callers updated.
6008 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6009 All callers updated.
6010 (find_partial_die): Rewrite load_all_dies support.
6011 (read_attribute_value): New arg reader. Delete args abfd, cu.
6012 All callers updated.
6013 (read_attribute): New arg reader. Delete args abfd, cu.
6014 All callers updated.
6015 (load_full_type_unit): Add assert.
6016 (read_signatured_type_reader): New function.
6017 (read_signatured_type): Rewrite.
6018 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6019 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6020 All callers updated. Set per_cu->cu = NULL after freeing it.
6021 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6022 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6023 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6024 (set_die_type): Update.
6025 (get_die_type_at_offset): Update.
6026 (read_file_scope): Call prepare_one_comp_unit.
6027 (read_type_unit_scope): Ditto.
6028 (prepare_one_comp_unit): Set producer if present.
6029
6030 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6031
6032 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6033 gettext function on `error'.
6034
6035 2012-04-27 Doug Evans <dje@google.com>
6036
6037 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6038 is empty.
6039
6040 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6041 Tom Tromey <tromey@redhat.com>
6042
6043 * breakpoint.c (struct breakpoint_objfile_data)
6044 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6045 <exception_probes>: New fields.
6046 (free_breakpoint_probes): New function.
6047 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6048 `_Unwind_DebugHook'.
6049 (create_exception_master_breakpoint): Likewise.
6050 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6051 * infrun.c: Including necessary header files for handling SystemTap
6052 probes.
6053 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6054 via SystemTap probes.
6055 (check_exception_resume): Remove `func' argument. Handle exception
6056 unwinding breakpoint set via a SystemTap probe.
6057 (insert_exception_resume_from_probe): New function.
6058
6059 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6060 Tom Tromey <tromey@redhat.com>
6061 Jan Kratochvil <jan.kratochvil@redhat.com>
6062
6063 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6064 (COMMON_OBS): Likewise.
6065 (HFILES_NO_SRCDIR): Add `probe'.
6066 * NEWS: Mention support for static and SystemTap probes.
6067 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6068 SystemTap probes' arguments parser.
6069 * arm-linux-tdep.c: Including headers needed to perform the parsing
6070 of SystemTap probes' arguments.
6071 (arm_stap_is_single_operand): New function.
6072 (arm_stap_parse_special_token): Likewise.
6073 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6074 probes' arguments parser.
6075 * ax-gdb.c (require_rvalue): Removing static declaration.
6076 (gen_expr): Likewise.
6077 * ax-gdb.h (gen_expr): Declaring function.
6078 (require_rvalue): Likewise.
6079 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6080 (bkpt_probe_breakpoint_ops): New variable.
6081 (momentary_breakpoint_from_master): Set the `probe' value.
6082 (add_location_to_breakpoint): Likewise.
6083 (break_command_1): Using proper breakpoint_ops according to the
6084 argument passed by the user in the command line.
6085 (bkpt_probe_insert_location): New function.
6086 (bkpt_probe_remove_location): Likewise.
6087 (bkpt_probe_create_sals_from_address): Likewise.
6088 (bkpt_probe_decode_linespec): Likewise.
6089 (tracepoint_probe_create_sals_from_address): Likewise.
6090 (tracepoint_probe_decode_linespec): Likewise.
6091 (tracepoint_probe_breakpoint_ops): New variable.
6092 (trace_command): Using proper breakpoint_ops according to the
6093 argument passed by the user in the command line.
6094 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6095 static probes on breakpoints and tracepoints.
6096 * breakpoint.h (struct bp_location) <probe>: New field.
6097 * cli-utils.c (skip_spaces_const): New function.
6098 (extract_arg): Likewise.
6099 * cli-utils.h (skip_spaces_const): Likewise.
6100 (extract_arg): Likewise.
6101 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6102 * configure.ac: Append `stap-probe.o' to be generated when ELF
6103 support is present.
6104 * configure: Regenerate.
6105 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6106 * elfread.c: Include `probe.h' and `arch-utils.h'.
6107 (probe_key): New variable.
6108 (elf_get_probes): New function.
6109 (elf_get_probe_argument_count): Likewise.
6110 (elf_evaluate_probe_argument): Likewise.
6111 (elf_compile_to_ax): Likewise.
6112 (elf_symfile_relocate_probe): Likewise.
6113 (stap_probe_key_free): Likewise.
6114 (elf_probe_fns): New variable.
6115 (elf_sym_fns): Add `sym_probe_fns' value.
6116 (elf_sym_fns_lazy_psyms): Likewise.
6117 (elf_sym_fns_gdb_index): Likewise.
6118 (_initialize_elfread): Initialize objfile cache for static
6119 probes.
6120 * gdb_vecs.h (struct probe): New forward declaration.
6121 (probe_p): New VEC declaration.
6122 * gdbarch.c: Regenerate.
6123 * gdbarch.h: Regenerate.
6124 * gdbarch.sh (stap_integer_prefix): New variable.
6125 (stap_integer_suffix): Likewise.
6126 (stap_register_prefix): Likewise.
6127 (stap_register_suffix): Likewise.
6128 (stap_register_indirection_prefix): Likewise.
6129 (stap_register_indirection_suffix): Likewise.
6130 (stap_gdb_register_prefix): Likewise.
6131 (stap_gdb_register_suffix): Likewise.
6132 (stap_is_single_operand): New function.
6133 (stap_parse_special_token): Likewise.
6134 (struct stap_parse_info): Forward declaration.
6135 * i386-tdep.c: Including headers needed to perform the parsing
6136 of SystemTap probes' arguments.
6137 (i386_stap_is_single_operand): New function.
6138 (i386_stap_parse_special_token): Likewise.
6139 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6140 probes' arguments parser.
6141 * i386-tdep.h (i386_stap_is_single_operand): New function.
6142 (i386_stap_parse_special_token): Likewise.
6143 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6144 * mipsread.c (ecoff_sym_fns): Likewise.
6145 * objfiles.c (objfile_relocate1): Support relocation for static
6146 probes.
6147 * parse.c (prefixify_expression): Remove static declaration.
6148 (initialize_expout): Likewise.
6149 (reallocate_expout): Likewise.
6150 * parser-defs.h (initialize_expout): Declare function.
6151 (reallocate_expout): Likewise.
6152 (prefixify_expression): Likewise.
6153 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6154 of SystemTap probes' arguments.
6155 (ppc_stap_is_single_operand): New function.
6156 (ppc_stap_parse_special_token): Likewise.
6157 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6158 probes' arguments parser.
6159 * probe.c: New file, for generic statically defined probe support.
6160 * probe.h: Likewise.
6161 * s390-tdep.c: Including headers needed to perform the parsing of
6162 SystemTap probes' arguments.
6163 (s390_stap_is_single_operand): New function.
6164 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6165 probes' arguments parser.
6166 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6167 * stap-probe.c: New file, for SystemTap probe support.
6168 * stap-probe.h: Likewise.
6169 * symfile.h: Include `gdb_vecs.h'.
6170 (struct sym_probe_fns): New struct.
6171 (struct sym_fns) <sym_probe_fns>: New field.
6172 * symtab.c (init_sal): Initialize `probe' field.
6173 * symtab.h (struct probe): Forward declaration.
6174 (struct symtab_and_line) <probe>: New field.
6175 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6176 locations.
6177 (stop_tracing): Likewise.
6178 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6179
6180 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6181 Tom Tromey <tromey@redhat.com>
6182
6183 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6184 and to compile agent expressions.
6185 * infrun.c (siginfo_make_value): New argument `ignore'.
6186 (siginfo_funcs): New struct.
6187 (_initialize_infrun): New argument when calling
6188 `create_internalvar_type_lazy'.
6189 * thread.c (thread_id_make_value): New argument `ignore'.
6190 (thread_funcs): New struct.
6191 (_initialize_thread): New argument when calling
6192 `create_internalvar_type_lazy'.
6193 * tracepoint.c (sdata_make_value): New argument `ignore'.
6194 (sdata_funcs): New struct.
6195 (_initialize_tracepoint): New argument when calling
6196 `create_internalvar_type_lazy'.
6197 * value.c (make_value): New struct.
6198 (create_internalvar_type_lazy): New argument `data'.
6199 (compile_internalvar_to_ax): New function.
6200 (value_of_internalvar): Properly handling `make_value' case.
6201 (clear_internalvar): Likewise.
6202 (show_convenience): Adding `TRY_CATCH' block.
6203 * value.h (internalvar_make_value): Delete, replace by...
6204 (struct internalvar_funcs): ... this.
6205 (create_internalvar_type_lazy) <fun>: Delete argument.
6206 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6207 (compile_internalvar_to_ax): New function.
6208 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6209 (tlb_funcs): New struct.
6210 (_initialize_windows_tdep): New argument when calling
6211 `create_internalvar_type_lazy'.
6212
6213 2012-04-27 Mark Wielaard <mjw@redhat.com>
6214
6215 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6216 see whether it is an address or a constant offset from DW_AT_low_pc.
6217 (dwarf2_record_block_ranges): Likewise.
6218 (read_partial_die): Likewise.
6219
6220 2012-04-26 Mark Wielaard <mjw@redhat.com>
6221
6222 * MAINTAINERS (Write After Approval): Add myself to the list.
6223
6224 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6225
6226 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6227 (proc_prettyprint_signal): Likewise.
6228 (proc_prettyprint_faultset): Likewise.
6229 (proc_prettyprint_fault): Likewise.
6230 (proc_prettyprint_actionset): Likewise.
6231 (proc_prettyprint_flags): Move to new proc-flags.c section.
6232 (proc_prettyfprint_flags): New prototype.
6233 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6234 (proc_syscall, proc_cursig): Likewise.
6235 (proc_set_kill_on_last_close): Likewise.
6236 (proc_unset_kill_on_last_close): Likewise.
6237 (proc_set_watchpoint): Make static.
6238 (proc_delete_dead_threads): Likewise.
6239 (procfs_set_watchpoint): Likewise.
6240 (_initialize_procfs): Add prototype.
6241 * proc-events.c: Include proc-utils.h.
6242 (init_syscall_table): Make static.
6243 * proc-api.c (_initialize_proc_api): Add prototype.
6244 * proc-flags.c: Include proc-utils.h.
6245
6246 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6247
6248 * configure.ac: Add AC_ARG_PROGRAM.
6249 * configure: Regenerate.
6250
6251 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 Fix DW_AT_lower_bound defaults for DWARF-4+.
6254 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6255 high. New variable low_default_is_valid. Implement DWARF-4+
6256 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6257 no default by the DWARF standard.
6258
6259 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6260 Maciej W. Rozycki <macro@codesourcery.com>
6261
6262 * infrun.c (handle_inferior_event): Move the check for return
6263 trampolines ahead of the check for function trampolines.
6264 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6265 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6266 (mips_str_mips16_ret_stub): Likewise.
6267 (mips_str_call_fp_stub): Likewise.
6268 (mips_str_call_stub): Likewise.
6269 (mips_str_fn_stub): Likewise.
6270 (mips_str_pic): Likewise.
6271 (mips_in_frame_stub): New function.
6272 (mips_unwind_pc): Return the return address rather than the PC
6273 if the PC of an intermediate frame is inside a call thunk.
6274 (mips_is_stub_suffix): New function.
6275 (mips_is_stub_mode): Likewise.
6276 (mips_get_mips16_fn_stub_pc): Likewise.
6277 (mips_skip_mips16_trampoline_code): Update to handle all the
6278 currently generated stub types. Don't recurse into __fn_stub
6279 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6280 Use cooked register accesses.
6281 (mips_in_return_stub): Reintroduce function.
6282 (mips_skip_trampoline_code): Traverse trampolines recursively.
6283 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6284
6285 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6286
6287 GDB 7.4.1 released.
6288
6289 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6290
6291 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6292 * features/arm-with-m-vfp-d16.xml: New file. Describes
6293 Cortex-M with VFPv4-sp-d16 FPU register layout.
6294 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6295 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6296 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6297 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6298 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6299
6300 2012-04-25 Doug Evans <dje@google.com>
6301
6302 * cli/cli-decode.c (print_doc_line): Use stream instead of
6303 current_uiout.
6304
6305 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6306
6307 * features/arm-with-iwmmxt.c: Regenerate.
6308 * features/arm-with-m-fpa-layout.c: Likewise.
6309 * features/arm-with-m.c: Likewise.
6310 * features/arm-with-neon.c: Likewise.
6311 * features/arm-with-vfpv2.c: Likewise.
6312 * features/arm-with-vfpv3.c: Likewise.
6313 * features/mips-dsp-linux.c: Likewise.
6314 * features/mips-linux.c: Likewise.
6315 * features/mips64-dsp-linux.c: Likewise.
6316 * features/mips64-linux.c: Likewise.
6317 * features/s390-linux32.c: Likewise.
6318 * features/s390-linux32v1.c: Likewise.
6319 * features/s390-linux32v2.c: Likewise.
6320 * features/s390-linux64.c: Likewise.
6321 * features/s390-linux64v1.c: Likewise.
6322 * features/s390-linux64v2.c: Likewise.
6323 * features/s390x-linux64.c: Likewise.
6324 * features/s390x-linux64v1.c: Likewise.
6325 * features/s390x-linux64v2.c: Likewise.
6326 * features/tic6x-c62x-linux.c: Likewise.
6327 * features/tic6x-c62x.c: Likewise.
6328 * features/tic6x-c64x-linux.c: Likewise.
6329 * features/tic6x-c64x.c: Likewise.
6330 * features/tic6x-c64xp-linux.c: Likewise.
6331 * features/tic6x-c64xp.c: Likewise.
6332 * target-descriptions.c: Only generate `field_type' and `type'
6333 variables when needed.
6334
6335 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6336
6337 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6338
6339 2012-04-25 Doug Evans <dje@google.com>
6340
6341 Initial pass at Go language support.
6342 * NEWS: Mention Go.
6343 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6344 go-valprint.c.
6345 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6346 (YYFILES): Add go-exp.c.
6347 (YYOBJ): Add go-exp.o.
6348 (local-maintainer-clean): Delete go-exp.c.
6349 * defs.h (enum language): Add language_go.
6350 * dwarf2read.c: #include "go-lang.h".
6351 (fixup_go_packaging): New function.
6352 (process_full_comp_unit): Call it when processing Go CUs.
6353 (dwarf2_physname): Add Go support.
6354 (read_file_scope): Handle missing language spec for GNU Go.
6355 (set_cu_language): Handle DW_LANG_Go.
6356 * go-exp.y: New file.
6357 * go-lang.h: New file.
6358 * go-lang.c: New file.
6359 * go-typeprint.c: New file.
6360 * go-valprint.c: New file.
6361 * symtab.c: #include "go-lang.h".
6362 (symbol_set_language): Handle language_go.
6363 (symbol_find_demangled_name, symbol_set_names): Ditto.
6364 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6365
6366 2012-04-24 Jim Meyering <meyering@redhat.com>
6367
6368 avoid a few strncpy-induced buffer overruns
6369 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6370 fname and psargs before trying to concatenate.
6371 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6372 "name" before applying strchr.
6373
6374 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6375
6376 * CONTRIBUTE: Use unified diff instead of context diff when
6377 generating patches.
6378
6379 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6380
6381 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6382 code. Handle JR.HB correctly.
6383
6384 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6385
6386 * mips-tdep.c
6387 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6388 with the other MIPS16 helpers.
6389
6390 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6391
6392 * observer.sh: Conditionally declare `args', thus cleaning up
6393 unused instances of this variable.
6394
6395 2012-04-24 Yao Qi <yao@codesourcery.com>
6396
6397 Revert this patch to allow breakpoint always-inserted
6398 in record target.
6399 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6400 * breakpoint.c: Include record.h.
6401 (breakpoints_always_inserted_mode): Return false when the record
6402 target is in use.
6403
6404 * breakpoint.c (iterate_over_bp_locations): New.
6405 * breakpoint.h: Declare.
6406 New typedef walk_bp_location_callback.
6407 * record.c (record_open): Call record_init_record_breakpoints.
6408 (record_sync_record_breakpoints): New.
6409 (record_init_record_breakpoints): New.
6410 * NEWS: Mention supporting breakpoint always-inserted mode in
6411 record target.
6412
6413 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6414
6415 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6416 any thread.
6417
6418 2012-04-24 Yao Qi <yao@codesourcery.com>
6419
6420 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6421 (is_catchpoint): ... it.
6422 (print_one_breakpoint_location): Caller update.
6423 * breakpoint.h: Update declaration.
6424
6425 2012-04-23 David S. Miller <davem@davemloft.net>
6426
6427 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6428
6429 2012-04-23 Tom Tromey <tromey@redhat.com>
6430
6431 * buildsym.c (add_free_pendings): Remove.
6432 * buildsym.h (add_free_pendings): Remove.
6433
6434 2012-04-23 Doug Evans <dje@google.com>
6435
6436 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6437 attr.u.unsnd instead of attr.u.addr.
6438 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6439 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6440 DW_FORM_ref_udata.
6441 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6442 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6443 DW_FORM_ref_udata.
6444 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6445
6446 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6447
6448 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6449 (mips_o32_return_value): Likewise.
6450 (mips_o64_return_value): Likewise.
6451
6452 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6453
6454 * ada-lang.c (ada_evaluate_subexp): Add cases for
6455 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6456 their treatment in eval.c.
6457
6458 2012-04-21 David S. Miller <davem@davemloft.net>
6459
6460 * sparc-tdep.c (X_DISP10): Define.
6461 (sparc_analyze_control_transfer): Handle compare-and-branch.
6462
6463 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6464
6465 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6466 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6467
6468 2012-04-20 Nigel Stephens <nigel@mips.com>
6469 Maciej W. Rozycki <macro@codesourcery.com>
6470
6471 * mips-tdep.c (mips_float_register_p): New function.
6472 (mips_convert_register_float_case_p): Use mips_float_register_p.
6473 (mips_register_type): Likewise.
6474 (mips_print_register): Likewise.
6475 (print_gp_register_row): Likewise.
6476 (mips_print_registers_info): Likewise.
6477
6478 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6479
6480 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6481 of mips16 symbols.
6482
6483 2012-04-20 Andrew Pinski <apinski@cavium.com>
6484
6485 * MAINTAINERS (Write After Approval): Add myself to the list.
6486
6487 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6488
6489 * MAINTAINERS: Update my e-mail address.
6490
6491 2012-04-20 Pedro Alves <palves@redhat.com>
6492
6493 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6494 $srcdir.
6495 * configure: Regenerate.
6496
6497 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6498
6499 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6500 declaration.
6501 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6502
6503 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6504
6505 Fix compilation compatibility with python-2.4
6506 * python/py-type.c (convert_field): Cast ADDRSTRING for
6507 PyObject_SetAttrString as non-const. New comment.
6508
6509 2012-04-19 Tom Tromey <tromey@redhat.com>
6510
6511 * top.c (quit_target): Use all_cleanups.
6512 * main.c (captured_command_loop): Use all_cleanups.
6513 * exceptions.c (throw_exception): Use all_cleanups.
6514
6515 2012-04-19 Pedro Alves <palves@redhat.com>
6516
6517 * Makefile.in (GNULIB_BUILDDIR): New.
6518 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6519 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6520 (CLEANDIRS). Remove gnulib/import.
6521 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6522 (all-lib): Ditto.
6523 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6524 (gnulib/import/Makefile): Replace gnulib/import with
6525 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6526 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6527 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6528 acx_configure_dir.m4.
6529 * acinclude.m4: Include acx_configure_dir.m4.
6530 * acx_configure_dir.m4: New file.
6531 * aclocal.m4: Regenerate.
6532 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6533 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6534 (GNULIB): New variable.
6535 (GNULIB_STDINT_H): Adjust.
6536 (AC_OUTPUT): Don't output gnulib/Makefile.
6537 * gdb/defs.h: Include build-gnulib/config.h.
6538 * aclocal.m4: Regenerate.
6539 * config.in: Regenerate.
6540 * configure: Regenerate.
6541
6542 * gnulib/Makefile.in: New file.
6543 * gnulib/configure.ac: New file.
6544 * gnulib/aclocal.m4: New file.
6545 * gnulib/config.in: New file.
6546 * gnulib/configure: New file.
6547 * gnulib/: Re-run gnulib-tool to adjust.
6548
6549 2012-04-19 Doug Evans <dje@google.com>
6550
6551 * cleanups.h (struct cleanup): Move to cleanups.c.
6552 (make_cleanup_dtor_ftype): New typedef.
6553 (make_cleanup_dtor): Use it.
6554 (ALL_CLEANUPS): Replace with ...
6555 (all_cleanups): ... this. Declare. All uses updated.
6556 * cleanups.c: #include "gdb_assert.h".
6557 (sentinel_cleanup): New static global.
6558 (SENTINEL_CLEANUP): Define.
6559 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6560 (make_my_cleanup2): Assert result is non-NULL.
6561 (all_cleanups): New function.
6562 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6563 of NULL.
6564
6565 2012-04-19 Pedro Alves <palves@redhat.com>
6566
6567 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6568 Adjust paths to gnulib imported files.
6569
6570 2012-04-19 Pedro Alves <palves@redhat.com>
6571
6572 * gnulib/: Move whole directory ...
6573 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6574 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6575 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6576 (aclocal_m4_deps): Adjust.
6577 * aclocal.m4: Regenerate.
6578 * configure: Regenerate.
6579 * configure.ac: Adjust AC_OUTPUT output.
6580
6581 2012-04-19 Yao Qi <yao@codesourcery.com>
6582
6583 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6584 (vec.o): New rule.
6585 * vec.c: Move it ...
6586 * common/vec.c: ... here.
6587 * vec.h: Move it ...
6588 * common/vec.h: ... here.
6589
6590 2012-04-19 Yao Qi <yao@codesourcery.com>
6591
6592 * gdb-code-style.el: New.
6593
6594 2012-04-18 Pedro Alves <palves@redhat.com>
6595
6596 Update gnulib from latest git.
6597 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6598
6599 * gnulib/Makefile.am: Update.
6600 * gnulib/dummy.c: Update.
6601 * gnulib/extra/arg-nonnull.h: Update.
6602 * gnulib/extra/c++defs.h: Update.
6603 * gnulib/extra/update-copyright: Update.
6604 * gnulib/extra/warn-on-use.h: Update.
6605 * gnulib/inttypes.in.h: Update.
6606 * gnulib/m4/00gnulib.m4: Update.
6607 * gnulib/m4/extensions.m4: Update.
6608 * gnulib/m4/gnulib-cache.m4: Update.
6609 * gnulib/m4/gnulib-common.m4: Update.
6610 * gnulib/m4/gnulib-comp.m4: Update.
6611 * gnulib/m4/gnulib-tool.m4: Update.
6612 * gnulib/m4/include_next.m4: Update.
6613 * gnulib/m4/inttypes-pri.m4: Update.
6614 * gnulib/m4/inttypes.m4: Update.
6615 * gnulib/m4/longlong.m4: Update.
6616 * gnulib/m4/memchr.m4: Update.
6617 * gnulib/m4/memmem.m4: Update.
6618 * gnulib/m4/mmap-anon.m4: Update.
6619 * gnulib/m4/multiarch.m4: Update.
6620 * gnulib/m4/onceonly.m4: Update.
6621 * gnulib/m4/stddef_h.m4: Update.
6622 * gnulib/m4/stdint.m4: Update.
6623 * gnulib/m4/string_h.m4: Update.
6624 * gnulib/m4/warn-on-use.m4: Update.
6625 * gnulib/m4/wchar_h.m4: Update.
6626 * gnulib/m4/wchar_t.m4: Update.
6627 * gnulib/m4/wint_t.m4: Update.
6628 * gnulib/memchr.c: Update.
6629 * gnulib/memmem.c: Update.
6630 * gnulib/stddef.in.h: Update.
6631 * gnulib/stdint.in.h: Update.
6632 * gnulib/str-two-way.h: Update.
6633 * gnulib/string.in.h: Update.
6634 * gnulib/wchar.in.h: Update.
6635
6636 * gnulib/extra/arg-nonnull.h: Delete.
6637 * gnulib/extra/c++defs.h: Delete.
6638 * gnulib/extra/warn-on-use.h: Delete.
6639 * gnulib/m4/wchar_h.m4: Delete.
6640 * gnulib/m4/wint_t.m4: Delete.
6641 * gnulib/wchar.in.h: Delete.
6642
6643 * gnulib/extra/snippets/arg-nonnull.h: New.
6644 * gnulib/extra/snippets/c++defs.h: New.
6645 * gnulib/extra/snippets/warn-on-use.h: New.
6646
6647 * aclocal.m4: Regenerate.
6648 * config.in: Regenerate.
6649 * configure: Regenerate.
6650 * gnulib/Makefile.in: Regenerate.
6651
6652 2012-04-18 Pedro Alves <palves@redhat.com>
6653
6654 Reimport the update-copyright module from gnulib
6655 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6656
6657 * configure: Regenerate.
6658 * gnulib/Makefile.am: Update.
6659 * gnulib/Makefile.in: Regenerate.
6660 * gnulib/extra/update-copyright: Update.
6661 * gnulib/m4/gnulib-cache.m4: Update.
6662 * gnulib/m4/gnulib-comp.m4: Update.
6663
6664 2012-04-18 Tristan Gingold <gingold@adacore.com>
6665
6666 * configure.ac (aix): Put -lpthread into libs.
6667 * configure: Regenerate.
6668
6669 2012-04-18 Tom Tromey <tromey@redhat.com>
6670
6671 * linespec.c (convert_linespec_to_sals): Don't use
6672 SYMBOL_OBJ_SECTION.
6673 (compare_msymbols): Arguments are minsym_and_objfile, not
6674 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6675
6676 2012-04-18 Pedro Alves <palves@redhat.com>
6677
6678 Revert gnulib/ part of:
6679 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6680 Copyright year update in most files (performed by copyright.sh).
6681
6682 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6683
6684 Fix 64-bit constants on 32-bit hosts.
6685 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6686 from unsigned long to ULONGEST.
6687 (read_signed_leb128): Change declaration return type from long to
6688 LONGEST.
6689 (dwarf2_const_value_attr): Change declaration parameter value from long
6690 to LONGEST.
6691 (dwarf2_compute_name): Change variable value from long to LONGEST.
6692 (read_unsigned_leb128): Change return type, variable result and some
6693 casts from unsigned long to ULONGEST.
6694 (read_signed_leb128): Change return type, variable result and some
6695 casts from long to LONGEST.
6696 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6697 value from long to LONGEST.
6698 (dwarf2_const_value): Change variable value from long to LONGEST.
6699 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6700 plongest and hex_string.
6701 * symtab.h (struct general_symbol_info): Change ivalue from long to
6702 LONGEST, remove the comment.
6703 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6704 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6705
6706 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6707
6708 PR symtab/7259:
6709 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6710 * ada-lang.c (ada_discrete_type_high_bound)
6711 (ada_discrete_type_low_bound): Fix function comment. Use
6712 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6713 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6714 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6715 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6716 Use TYPE_FIELD_ENUMVAL.
6717 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6718 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6719 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6720 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6721 TYPE_CODE_ENUM.
6722 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6723 * dwarf2read.c (process_enumeration_scope): Likewise.
6724 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6725 field.bitpos.
6726 (class StructMainTypePrettyPrinter): Support also
6727 FIELD_LOC_KIND_ENUMVAL.
6728 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6729 TYPE_CODE_ENUM.
6730 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6731 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6732 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6733 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6734 field enumval.
6735 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6736 accommodate enumval.
6737 (struct call_site): Adjust loc_kind to accommodate enumval.
6738 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6739 (TYPE_FIELD_ENUMVAL): New macros.
6740 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6741 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6742 TYPE_CODE_ENUM.
6743 * p-typeprint.c (pascal_type_print_base): Likewise.
6744 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6745 enumval.
6746 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6747 * python/py-type.c (convert_field): New variable addrstring. Use
6748 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6749 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6750 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6751 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6752 TYPE_CODE_ENUM.
6753 * valprint.c (generic_val_print): Likewise.
6754
6755 2012-04-17 Doug Evans <dje@google.com>
6756
6757 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6758
6759 * dwarf2read.c: Whitespace fixes.
6760 (lookup_signatured_type): Tweak comment.
6761 (get_die_type_at_offset): Fix comment.
6762
6763 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6764
6765 * xcoffread.c (xcoff_secnum_to_sections): New function.
6766 (secnum_to_section, secnum_to_bfd_section): Reimplement
6767 using xcoff_secnum_to_sections. Rename "secnum" parameter
6768 into "n_scnum".
6769 (RECORD_MINIMAL_SYMBOL): Delete.
6770 (record_minimal_symbol): New function.
6771 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6772 by call to record_minimal_symbol and set misc_func_recorded
6773 to 1. Set last_csect_sec to the XCOFF section index instead
6774 of GDB's section_offset index. Update calls to
6775 prim_record_minimal_symbol_and_info to pass the BFD section
6776 as well.
6777
6778 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6779
6780 * xcoffread.c (read_xcoff_symtab): Delete variables
6781 last_csect_val and last_csect_sec and associated code.
6782
6783 2012-04-17 Doug Evans <dje@google.com>
6784
6785 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6786 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6787 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6788 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6789
6790 * cleanups.h: New file.
6791 * cleanups.c: New file.
6792 * Makefile.in (SFILES): Add cleanups.c.
6793 (HFILES_NO_SRCDIR): Add cleanups.h.
6794 (COMMON_OBS): Add cleanups.o.
6795 * defs.h (struct cleanup): Moved to cleanups.h.
6796 (do_cleanups,do_final_cleanups): Ditto.
6797 (discard_cleanups,discard_final_cleanups): Ditto
6798 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6799 (save_cleanups,save_final_cleanups): Ditto.
6800 (restore_cleanups,restore_final_cleanups): Ditto.
6801 (null_cleanup): Ditto.
6802 (make_my_cleanup,make_my_cleanup2): Ditto.
6803 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6804 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6805 (do_cleanups,do_final_cleanups): Ditto.
6806 (discard_cleanups,discard_final_cleanups): Ditto
6807 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6808 (save_cleanups,save_final_cleanups): Ditto.
6809 (restore_cleanups,restore_final_cleanups): Ditto.
6810 (null_cleanup): Ditto.
6811 (make_my_cleanup,make_my_cleanup2): Ditto.
6812 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6813
6814 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6815 make_my_cleanup.
6816 (make_cleanup_dyn_string_delete): Ditto.
6817 (make_cleanup_ui_file_delete): Ditto.
6818 (make_cleanup_ui_out_redirect_pop): Ditto.
6819 (make_cleanup_free_section_addr_info): Ditto.
6820 (make_cleanup_restore_integer): Ditto.
6821 (make_cleanup_unpush_target): Ditto.
6822 (make_cleanup_value_free_to_mark): Ditto.
6823 (make_cleanup_value_free): Ditto.
6824 (make_cleanup_free_so): Ditto.
6825
6826 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 New option "set debug auto-load".
6829 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6830 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6831 (auto_load_safe_path_vec_update)
6832 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6833 if DEBUG_AUTO_LOAD.
6834 (file_is_auto_load_safe): New parameters debug_fmt and ....
6835 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6836 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6837 caller by explanatory string.
6838 (_initialize_auto_load): Register "set debug auto-load".
6839 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6840 and ....
6841 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6842 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6843 by explanatory string.
6844 * main.c (captured_main): Likewise.
6845 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6846 (source_section_scripts): Likewise.
6847
6848 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 New option "set auto-load safe-path".
6851 * NEWS: New commands "set auto-load safe-path"
6852 and "show auto-load safe-path".
6853 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6854 (auto_load_safe_path, auto_load_safe_path_vec)
6855 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6856 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6857 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6858 (source_gdb_script_for_objfile): New variable is_safe. Call
6859 file_is_auto_load_safe. Return if it is not.
6860 (struct loaded_script): New field loaded.
6861 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6862 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6863 output "Missing" to "No".
6864 (_initialize_auto_load): New variable cmd. Initialize
6865 auto_load_safe_path. Register "set auto-load safe-path",
6866 "show auto-load safe-path" and "add-auto-load-safe-path".
6867 * auto-load.h (maybe_add_script): Add parameter loaded.
6868 (file_is_auto_load_safe): New declaration.
6869 * config.in: Regenerate.
6870 * configure: Regenerate.
6871 * configure.ac: New parameters --with-auto-load-safe-path
6872 and --without-auto-load-safe-path.
6873 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6874 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6875 * main.c (captured_main): Check file_is_auto_load_safe for
6876 LOCAL_GDBINIT.
6877 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6878 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6879 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6880 not.
6881
6882 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 auto-load: Implementation.
6885 * NEWS: New descriptions for "info auto-load",
6886 "info auto-load gdb-scripts", "info auto-load python-scripts",
6887 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6888 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6889 and "show auto-load-scripts". New description for "set auto-load",
6890 "show auto-load", "set auto-load gdb-scripts",
6891 "show auto-load gdb-scripts", "set auto-load python-scripts",
6892 "show auto-load python-scripts", "set auto-load local-gdbinit",
6893 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6894 "show auto-load libthread-db".
6895 * auto-load.c: Remove include python/python-internal.h. Add includes
6896 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6897 cli/cli-setshow.h.
6898 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6899 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6900 (gdbpy_global_auto_load): Rename to ...
6901 (global_auto_load): ... here.
6902 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6903 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6904 (script_language_gdb, source_gdb_script_for_objfile): New.
6905 (struct loaded_script): New field language.
6906 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6907 LANGUAGE.
6908 (maybe_add_script): Add parameter language. Drop redundant
6909 entry.full_path initialization. Initialize entry.language and
6910 (*slot)->language.
6911 (auto_load_objfile_script): Change parameter suffix to language.
6912 Remove the call of maybe_add_script.
6913 Call language->source_script_for_objfile.
6914 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6915 New.
6916 (collect_matching_scripts): Adjust it for
6917 struct collect_matching_scripts_data.
6918 (auto_load_info_scripts_pattern_nl): New variable.
6919 (info_auto_load_scripts): Rename to ...
6920 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6921 for struct collect_matching_scripts_data.
6922 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6923 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6924 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6925 (auto_load_info_cmdlist_get): New.
6926 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6927 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6928 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6929 "info auto-load local-gdbinit".
6930 * auto-load.h (struct script_language): New.
6931 (gdbpy_global_auto_load): Rename to ...
6932 (global_auto_load): ... here.
6933 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6934 (auto_load_local_gdbinit_loaded): New declarations.
6935 (maybe_add_script): New parameter language.
6936 (auto_load_objfile_script): Change parameter suffix to language.
6937 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6938 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6939 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6940 declarations.
6941 * linux-thread-db.c: Include auto-load.h and ctype.h.
6942 (auto_load_thread_db, show_auto_load_thread_db): New.
6943 (struct thread_db_info): New field filename.
6944 (delete_thread_db_info): Call xfree for FILENAME.
6945 (try_thread_db_load): Initialize FILENAME.
6946 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6947 if !AUTO_LOAD_THREAD_DB.
6948 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6949 (_initialize_thread_db): Install auto_load_thread_db
6950 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6951 as "info auto-load libthread-db".
6952 * main.c (captured_main): Rename gdbpy_global_auto_load to
6953 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6954 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6955 (print_gdb_help): Extend the help for 'local init file'.
6956 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6957 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6958 (auto_load_scripts): Rename to ...
6959 (auto_load_python_scripts): ... here, update the comment.
6960 (gdbpy_load_auto_script_for_objfile): New declaration.
6961 (show_auto_load_python_scripts, script_language_python)
6962 (gdbpy_load_auto_script_for_objfile): New.
6963 (source_section_scripts): Refactor the code.
6964 (load_auto_scripts_for_objfile): Rename to ...
6965 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6966 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6967 (info_auto_load_python_scripts): New.
6968 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6969 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6970 Register "set auto-load-scripts" as its deprecated alias. Register
6971 "info auto-load python-scripts". Register "info auto-load-scripts" as
6972 its deprecated alias.
6973 (load_auto_scripts_for_objfile): Rename to ...
6974 (gdbpy_load_auto_scripts_for_objfile): ... here.
6975 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6976 (gdbpy_load_auto_scripts_for_objfile): ... here.
6977
6978 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6979
6980 auto-load: Move files.
6981 * Makefile.in (SFILES): Add auto-load.c.
6982 (HFILES_NO_SRCDIR): Add auto-load.h.
6983 (COMMON_OBS): Add auto-load.o.
6984 (distclean): Change .gdbinit for gdb-gdb.gdb.
6985 * auto-load.c: New file, with parts from python/py-auto-load.c.
6986 * auto-load.h: New file, with parts from python/python.h.
6987 * configure: Regenerate.
6988 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6989 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6990 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6991 * main.c: Include auto-load.h.
6992 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6993 command.h, observer.h and progspace.h to auto-load.c. Add include
6994 auto-load.h.
6995 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6996 (struct loaded_script, auto_load_pspace_data)
6997 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6998 (hash_loaded_script_entry, eq_loaded_script_entry)
6999 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7000 (maybe_add_script): Move to auto-load.c.
7001 (source_section_scripts): Change maybe_add_script parameters passing,
7002 use script_not_found_warning_print.
7003 (clear_section_scripts, auto_load_objfile_script)
7004 (auto_load_new_objfile, loaded_script_ptr)
7005 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7006 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7007 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7008 auto_load_new_objfile and info_auto_load_scripts initizations to
7009 auto-load.c.
7010 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7011
7012 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7013
7014 Code cleanup.
7015 * charset.c (find_charset_names): Remove variables ix and elt.
7016 Use free_char_ptr_vec.
7017 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7018 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7019 debugdir_end. New variable debugdir_len.
7020 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7021 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7022 declarations.
7023 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7024 and elt. Use free_char_ptr_vec.
7025 * source.c (add_path): Remove variables argv, arg and argv_index.
7026 New variables dir_vec, back_to, ix and name.
7027 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7028 make_cleanup_freeargv. Remove variable separator. Simplify the code
7029 no longer expecting DIRNAME_SEPARATOR.
7030 (openp): Remove variable p, p1 and len. New variables dir_vec,
7031 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7032 no longer expecting DIRNAME_SEPARATOR.
7033 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7034 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7035 debugdir_end.
7036 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7037 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7038 (dirnames_to_char_ptr_vec): New functions.
7039
7040 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7041
7042 Code cleanup.
7043 * source.c (add_path): Remove always true conditional 'p == 0' and
7044 unindent its code block.
7045
7046 2012-04-17 Pedro Alves <palves@redhat.com>
7047
7048 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7049 (FIELD_BITPOS_LVAL): ... this.
7050 (FIELD_BITPOS): New.
7051 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7052 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7053 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7054 SET_FIELD_BITPOS.
7055 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7056 SET_FIELD_BITPOS.
7057 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7058 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7059 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7060 SET_FIELD_BITPOS.
7061
7062 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7063
7064 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7065 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7066 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7067 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7068 * jv-lang.c (java_link_class_type): Likewise, once.
7069 * stabsread.c (read_enum_type): Likewise.
7070
7071 2012-04-16 Yao Qi <yao@codesourcery.com>
7072
7073 * common/agent.c (agent_run_command): Add one more parameter `len'.
7074 Update callers.
7075 * common/agent.h: Update declaration.
7076 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7077 Update.
7078 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7079
7080 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7081
7082 PR mi/13393
7083 * value.c (value_actual_type): New function.
7084 * value.h (value_actual_type): New declaration.
7085 * varobj.c (update_type_if_necessary): New function.
7086 (varobj_create): Call value_actual_type instead of
7087 value_type.
7088 (install_dynamic_child): distinct changed and type changed MI variable
7089 objects.
7090 (update_dynamic_varobj_children): Updated for install_dynamic_child
7091 change. All callers updated.
7092 (varobj_update): Support for MI variable object type change if
7093 the value changed and RTTI is used to determine the type.
7094 (create_child_with_value): Call value_actual_type instead of
7095 value_type.
7096 (adjust_value_for_child_access): Extended with a new parameter which
7097 specify whether the given value should be casted to enclosing type.
7098 All callers updated.
7099
7100 2012-04-14 Yao Qi <yao@codesourcery.com>
7101
7102 Import gnulib module inttypes from git
7103 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7104 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7105 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7106 gnulib/m4/inttypes-pri.m4
7107 * aclocal.m4, config.in, configure: Regenerated.
7108 * gnulib/Makefile.am: Update.
7109 * gnulib/Makefile.in: Update.
7110 * gnulib/m4/gnulib-cache.m4: Update.
7111 * gnulib/m4/gnulib-comp.m4: Update.
7112 * gnulib/inttypes.in.h: New.
7113 * gnulib/m4/inttypes-pri.m4: New.
7114 * gnulib/m4/inttypes.m4: New.
7115
7116 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7117
7118 * infrun.c (resume): Update PC address to the real PC after
7119 preparing to do displaced stepping.
7120
7121 2012-04-12 Doug Evans <dje@google.com>
7122
7123 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7124 All callers updated.
7125
7126 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7127
7128 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7129
7130 2012-04-12 Doug Evans <dje@google.com>
7131
7132 * dwarf2read.c (create_all_type_units): Renamed from
7133 create_debug_types_hash_table. All callers updated.
7134
7135 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7136 local type_sig to sig_type, type_offset to type_offset_in_tu.
7137 (hash_signatured_type): Renamed from hash_type_signature,
7138 all callers updated.
7139 (eq_signatured_type): Renamed from eq_type_signature,
7140 all callers updated.
7141 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7142 (process_enumeration_scope): Ditto.
7143 (lookup_signatured_type_at_offset): Ditto.
7144 (load_full_type_unit, read_signatured_type): Ditto.
7145
7146 2012-04-12 Yao Qi <yao@codesourcery.com>
7147
7148 * remote.c (async_remote_interrupt): Correct function name in
7149 debug message.
7150 (async_remote_interrupt_twice): Ditto.
7151
7152 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7153
7154 * source.c (find_and_open_source): Consistently pass resulting
7155 full path through xfullpath.
7156
7157 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7158
7159 Provide more specific displaced-stepping memory error message.
7160 * infrun.c (displaced_step_prepare): New variable status. Call
7161 target_read_memory instead of read_memory, provide more specific
7162 error message.
7163
7164 2012-04-11 Tristan Gingold <gingold@adacore.com>
7165
7166 PR gdb/13901
7167 * darwin-nat.c (darwin_execvp): Revert previous patch.
7168
7169 2012-04-11 Tristan Gingold <gingold@adacore.com>
7170
7171 PR gdb/13901
7172 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7173 in case of change.
7174
7175 2012-04-11 Tristan Gingold <gingold@adacore.com>
7176
7177 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7178 warning.
7179
7180 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7181
7182 New command 'explore' which helps explore values and types in
7183 scope.
7184 * NEWS: Add an entry about the new 'explore' command.
7185 * data-directory/Makefile.in: Add gdb/command/explore.py
7186 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7187 command using the GDB Python API.
7188
7189 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7190
7191 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7192 extension in jump target calculation.
7193
7194 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7195
7196 * mips-tdep.c (mips32_next_pc): Handle JALX.
7197
7198 2012-04-10 Yao Qi <yao@codesourcery.com>
7199
7200 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7201
7202 2012-04-10 Yao Qi <yao@codesourcery.com>
7203
7204 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7205 and gnulib/m4/gnulib-tool.m4.
7206
7207 2012-04-10 Doug Evans <dje@google.com>
7208
7209 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7210 (load_partial_dies): Clarify comment.
7211 (find_partial_die): Support rereading type units.
7212 Clarify CU handling, if we know offset is in CU, don't search for the
7213 containing CU. Add comment regarding memory waste.
7214
7215 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7216
7217 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7218 i386/x32-avx and i386/x32-avx-linux.
7219 (i386/x32-expedite): New.
7220 (i386/x32-linux-expedite): Likewise.
7221 (i386/x32-avx-expedite): Likewise.
7222 (i386/x32-avx-linux-expedite): Likewise.
7223 ($(outdir)/i386/x32.dat): Likewise.
7224 ($(outdir)/i386/x32-linux.dat): Likewise.
7225 ($(outdir)/i386/x32-avx.dat): Likewise.
7226 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7227
7228 * features/i386/x32-avx-linux.xml: New file.
7229 * features/i386/x32-avx.xml: Likewise.
7230 * features/i386/x32-core.xml: Likewise.
7231 * features/i386/x32-linux.xml: Likewise.
7232 * features/i386/x32.xml: Likewise.
7233
7234 * features/i386/x32-avx-linux.c: New. Generated.
7235 * features/i386/x32-avx.c: Likewise.
7236 * features/i386/x32-linux.c: Likewise.
7237 * features/i386/x32.c: Likewise.
7238 * regformats/i386/x32-avx-linux.dat: Likewise.
7239 * regformats/i386/x32-avx.dat: Likewise.
7240 * regformats/i386/x32-linux.dat: Likewise.
7241 * regformats/i386/x32.dat: Likewise.
7242
7243 2012-04-10 Tristan Gingold <gingold@adacore.com>
7244
7245 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7246 code to kill the inferior.
7247
7248 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7249
7250 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7251 defines.
7252 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7253 defines.
7254 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7255 (yyvsp): New defines.
7256 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7257 defines.
7258 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7259 defines.
7260 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7261 defines.
7262 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7263 defines.
7264 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7265 defines.
7266
7267 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7268
7269 * sparc64-tdep.c (sparc64_store_arguments)
7270 (sparc64_store_arguments): Fix coding style.
7271
7272 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7273
7274 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7275 complex floats, adjust some related comments and tighten a related
7276 assertion.
7277 (sparc64_extract_return_value): Handle complex floats.
7278
7279 2012-04-07 Doug Evans <dje@google.com>
7280
7281 * dwarf2read.c (load_partial_dies): Change condition to assert.
7282
7283 2012-04-06 Doug Evans <dje@google.com>
7284
7285 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7286 "mov %rsp,%rbp".
7287
7288 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7289
7290 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7291 fencepost error.
7292 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7293 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7294 architecture.
7295
7296 2012-04-05 Keith Seitz <keiths@redhat.com>
7297
7298 * linespec.c (decode_compound): Remove.
7299 (enum offset_relative_sign): New enum.
7300 (struct line_offset): New struct.
7301 (struct linespec): New struct.
7302 (struct linespec_state): Move file_symtabs,
7303 user_filename, and user_function into struct linespec.
7304 Make result an anonymous struct holding vectors of
7305 symbolp and minsym_and_objfile_d.
7306 Add language member.
7307 (enum ls_token_type): New enum.
7308 (linespec_keywords): New array.
7309 (struct ls_token): New struct.
7310 (struct ls_parser): New struct.
7311 (linespec_lexer_lex_number): New function.
7312 (linespec_lexer_lex_keyword): New function.
7313 (is_ada_operator): New function.
7314 (skip_quote_char): New function.
7315 (copy_token_string): New function.
7316 (is_closing_quote_enclosed): New function.
7317 (find_parameter_list_end): New function.
7318 (linespec_lexer_lex_string): New function.
7319 (linespec_lexer_lex_one): New function.
7320 (linespec_lexer_consume_token): New function.
7321 (linespec_lexer_peek_token): New function.
7322 (cplusplus_error): Remove unused function.
7323 (find_methods): Update comment.
7324 (find_toplevel_char): Return const.
7325 (is_objc_method_format): Remove unused function.
7326 (find_toplevel_string): New function.
7327 (is_linespec_boundary): Remove.
7328 (symbol_not_found_error): New function.
7329 (find_method_overload_end): Remove function.
7330 (unexpected_linespec_error): New function.
7331 (keep_name_info): Remove.
7332 (linespec_parse_line_offset): New function.
7333 (linespec_parse_basic): New function.
7334 (canonicalize_linespec): New function.
7335 (decode_line_internal): Remove.
7336 (create_sals_line_offset): New function adapted from
7337 decode_all_digits.
7338 (convert_linespec_to_sals): New function.
7339 (parse_linespec): New function.
7340 (linespec_parser_new): New function.
7341 (linespec_state_destructor): Change parameter type to
7342 struct linespec_state *.
7343 Add language parameter.
7344 Remove freeing of moved members.
7345 (linespec_parser_delete): New function.
7346 (decode_line_full): Use parse_linespec and linespec_parser_new.
7347 (decode_line_1): Likewise.
7348 (decode_indirect): Rename to ...
7349 (linespec_expression_to_pc): ... this and rewrite
7350 to simply find CORE_ADDR, storing this result for later
7351 conversion to SALs.
7352 (locate_first_half): Remove.
7353 (deocde_objc): Add parameter LS.
7354 Initialize new struct collect_info members.
7355 Handle minimal symbols, too.
7356 (decode_compound): Delete.
7357 (lookup_prefix_sym): Rewrite.
7358 (compare_msymbols): New function.
7359 (find_method): Rewrite.
7360 Do not call cplusplus_error.
7361 (symtabs_from_filename): Rewrite.
7362 (collect_function_symbols): Delete.
7363 (find_function_symbols): Rewrite without ARGPTR-style
7364 processing.
7365 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7366 (decode_dollar): Adapted and renamed to ...
7367 (linespec_parse_variable): ... this.
7368 (find_linespec_symbols): New function.
7369 (decode_label): Adapted and renamed to ...
7370 (find_label_symbols): ... this.
7371 (decode_digits_list_mode): Add and use LS argument.
7372 (decode_digits_ordinary): Likewise.
7373 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7374 If in list mode, allow any symbol class. Otherwise, only
7375 permit LOC_BLOCK symbols.
7376 (minsym_found): Update comments.
7377 (search_minsyms_for_name): Do not convert the matching symbol
7378 into a SAL. Simply push the symbol and objfile into the
7379 result vector.
7380 (decode_variable): Delete. Contents adapted into
7381 find_linespec_symbols.
7382
7383 * cp-support.c (SKIP_SPACE): Remove.
7384 (operator_tokens): Remove unused global.
7385 (cp_validate_operator): Remove.
7386 * cp-support.h (cp_validate_operator): Remove declaration.
7387
7388 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7389
7390 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7391 for TYPE_VPTR_FIELDNO.
7392 * valprint.c (valprint_check_validity): Make it global, move the
7393 function comment ...
7394 * value.h (valprint_check_validity): ... to this new declaration.
7395
7396 2012-04-02 Tristan Gingold <gingold@adacore.com>
7397
7398 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7399 the STATE32 api for i386 state.
7400 (i386_darwin_store_inferior_registers): Likewise.
7401
7402 2012-04-02 Tristan Gingold <gingold@adacore.com>
7403
7404 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7405 SS offset.
7406 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7407 format_string.
7408
7409 2012-04-02 Tristan Gingold <gingold@adacore.com>
7410
7411 PR gdb/13901
7412 * darwin-nat.c (darwin_execvp): Set binary preference.
7413
7414 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7415
7416 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7417
7418 2012-03-30 Tom Tromey <tromey@redhat.com>
7419
7420 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7421 of TRY_CATCH. Fix error handling.
7422 * python/py-value.c (convert_value_from_python): Move 'old'
7423 declaration to innermost scope.
7424
7425 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7426 Andrey Smirnov <andrew.smirnov@gmail.com>
7427
7428 -Wshadow warning fix.
7429 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7430 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7431 Adjust code accordingly.
7432
7433 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7434
7435 * ada-lang.c (symbol_completion_add): Rename parameter
7436 "encoded" into "encoded_p". Ajust code and documentation
7437 accordingly.
7438
7439 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7440 Andrey Smirnov <andrew.smirnov@gmail.com>
7441
7442 -Wshadow warning fix.
7443 * ada-lang.c (symbol_completion_add): Rename parameter
7444 "wild_match" into wild_match_p. Update code and documentation
7445 accordingly.
7446
7447 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7448
7449 * ada-lang.c (symbol_completion_match): Rename parameter
7450 "encoded" into "encoded_p". Ajust code and documentation
7451 accordingly.
7452
7453 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7454 Andrey Smirnov <andrew.smirnov@gmail.com>
7455
7456 -Wshadow warning fix.
7457 * ada-lang.c (symbol_completion_match): Rename parameter
7458 "wild_match" into "wild_match_p". Adjust code and function
7459 documentation accordingly.
7460
7461 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7462 Andrey Smirnov <andrew.smirnov@gmail.com>
7463
7464 -Wshadow warning fix.
7465 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7466 "symbol_info" into "info". Adjust code accordingly.
7467 (ada_lookup_symbol): Likewise.
7468
7469 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7470
7471 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7472 of this function's documentation.
7473
7474 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7475 Andrey Smirnov <andrew.smirnov@gmail.com>
7476
7477 -Wshadow warning fix.
7478 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7479 variable into "wild_match_p". Adjust code accordingly.
7480
7481 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7482 Andrey Smirnov <andrew.smirnov@gmail.com>
7483
7484 -Wshadow warning fix.
7485 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7486 parameter into "wild_match_p". Adjust code accordingly.
7487 Document this parameter in the function description.
7488
7489 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7490 Andrey Smirnov <andrew.smirnov@gmail.com>
7491
7492 -Wshadow warning fix.
7493 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7494 "wild_match" parameter to "wild_match_p" (-Wshadow).
7495
7496 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7497
7498 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7499 in function documentation.
7500
7501 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7502 Andrey Smirnov <andrew.smirnov@gmail.com>
7503
7504 -Wshadow warning fix.
7505 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7506 variable into wild_match_p. Adjust code accordingly.
7507
7508 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7509 Andrey Smirnov <andrew.smirnov@gmail.com>
7510
7511 * ada-valprint.c (ada_val_print_1): Move the code handling
7512 TYPE_CODE_ENUM inside its own lexical block. Declare
7513 variables len and val there, instead of in the function's
7514 top level block. Avoid declaring deref_val again in a way
7515 that shadows another variable of the same name declared
7516 in one of the up-level blocks. Just re-use the up-level
7517 variable instead.
7518
7519 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7520
7521 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7522 Replace block_found argument by symbol_info. Adjust
7523 implementation accordingly. Add function documentation.
7524 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7525 Fix documentation.
7526 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7527 * ada-exp.y (write_object_renaming): Adjust to new
7528 ada_lookup_encoded_symbol API.
7529
7530 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7531
7532 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7533 documentation.
7534
7535 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7536
7537 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7538 (v850_register_name): Add the mpu and fpu register names.
7539 (v850e_register_name): Add the mpu and fpu register names.
7540 (v850e2_register_name): New function.
7541 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7542 bfd_mach_v850e2v3.
7543
7544 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7545
7546 * NEWS: Add entry for Ada varobj support.
7547
7548 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7549
7550 * varobj.c (default_value_is_changeable_p): New function,
7551 extracted from varobj_value_is_changeable_p. Add declaration.
7552 (ada_value_is_changeable_p): New function, extracted from
7553 varobj_value_is_changeable_p. Add declaration.
7554 (struct language_specific): New field "value_is_changeable_p".
7555 (languages): Add entries for new field.
7556 (varobj_create): Set language before calling install_new_value.
7557 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7558 "value_is_changeable_p" language callback.
7559
7560 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7561
7562 * ada-varobj.h, ada-varobj.c: New files.
7563 * Makefile.in (SFILES): Add ada-varobj.c.
7564 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7565 (COMMON_OBS): Add ada-varobj.o.
7566
7567 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7568
7569 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7570 (struct language_specific): New field "value_has_mutated".
7571 (languages): Set field "value_has_mutated" in each entry of array.
7572 (varobj_value_has_mutated): New function.
7573 (varobj_udpdate): Add handling of type mutation.
7574 (value_of_root): Add handling of type mutation.
7575 (ada_value_has_mutated): New function.
7576
7577 2012-03-28 Pedro Alves <palves@redhat.com>
7578
7579 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7580 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7581
7582 2012-03-28 Tom Tromey <tromey@redhat.com>
7583
7584 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7585 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7586 before returning.
7587
7588 2012-03-28 Tom Tromey <tromey@redhat.com>
7589
7590 * .dir-locals.el: New file.
7591
7592 2012-03-28 Pedro Alves <palves@redhat.com>
7593
7594 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7595
7596 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7597
7598 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7599 handling for r0.
7600
7601 2012-03-27 Pedro Alves <palves@redhat.com>
7602
7603 Eliminate struct ui_stream.
7604
7605 * ui-out.h (struct ui_stream): Delete.
7606 (ui_out_field_stream): Adjust prototype.
7607 (ui_out_stream_new, ui_out_stream_delete)
7608 (make_cleanup_ui_out_stream_delete): Delete declarations.
7609 * ui-out.c (ui_out_field_stream): Change prototype to take a
7610 ui_file instead of a ui_stream. Adjust.
7611 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7612 (make_cleanup_ui_out_stream_delete): Delete.
7613 * breakpoint.c (print_breakpoint_location)
7614 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7615 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7616 * disasm.c (dump_insns): Ditto.
7617 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7618 prototype.
7619 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7620 ui_stream/ui_out_stream_new.
7621 * infcmd.c (print_return_value): Ditto.
7622 * osdata.c (info_osdata_command): Don't allocate a local
7623 ui_stream.
7624 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7625 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7626 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7627 allocate a local ui_stream.
7628 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7629 instead of ui_stream/ui_out_stream_new.
7630 (list_args_or_locals): Don't allocate a local ui_stream.
7631 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7632 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7633 ui_stream/ui_out_stream_new.
7634 * cli/cli-setshow.c (do_setshow_command): Ditto.
7635
7636 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7637
7638 * arm-linux-tdep.c (arm_linux_init_abi): Call
7639 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7640 * arm-tdep.c (arm_process_record): New function.
7641 (deallocate_reg_mem): New function.
7642 (decode_insn): New function.
7643 (thumb_record_branch): New function.
7644 (thumb_record_ldm_stm_swi(): New function.
7645 (thumb_record_misc): New function.
7646 (thumb_record_ld_st_stack): New function.
7647 (thumb_record_ld_st_imm_offset): New function.
7648 (thumb_record_ld_st_reg_offset(): New function.
7649 (thumb_record_add_sub_cmp_mov): New function.
7650 (thumb_record_shift_add_sub): New function.
7651 (arm_record_coproc_data_proc): New function.
7652 (arm_record_coproc): New function.
7653 (arm_record_b_bl): New function.
7654 (arm_record_ld_st_multiple): New function.
7655 (arm_record_ld_st_reg_offset): New function.
7656 (arm_record_ld_st_imm_offset): New function.
7657 (arm_record_data_proc_imm): New function.
7658 (arm_record_data_proc_misc_ld_str): New function.
7659 (arm_record_extension_space): New function.
7660 (arm_record_strx): New function.
7661 (sbo_sbz): New function.
7662 (struct insn_decode_record): New structure for arm insn record.
7663 (REG_ALLOC): New macro for reg allocations.
7664 (MEM_ALLOC): New macro for memory allocations.
7665 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7666
7667 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7668
7669 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7670 (store_register): Likewise.
7671
7672 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7673
7674 * MAINTAINERS (Write After Approval): Add myself to the list.
7675
7676 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7679 Describe also the option "auto".
7680
7681 2012-03-22 Richard Henderson <rth@redhat.com>
7682
7683 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7684 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7685
7686 2012-03-22 Richard Henderson <rth@redhat.com>
7687
7688 * jit.c (jit_read_code_entry): Compute alignment and offset of
7689 int64_t member before computing entry_size.
7690
7691 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7692
7693 Python scripting: Add new method Value.referenced_value to
7694 gdb.Value which can dereference pointer as well as reference
7695 values.
7696 * NEWS: Add entry under 'Python scripting' about the new method
7697 Value.referenced_value on gdb.Value objects.
7698 * python/py-value.c (valpy_referenced_value): New function
7699 defining a new method on gdb.Value objects which can dereference
7700 pointer and reference values.
7701
7702 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7703
7704 * MAINTAINERS (Write After Approval): Add myself to the list.
7705
7706 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7707
7708 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7709 in addition to "main".
7710
7711 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7712
7713 * expression.h (op_name): Add declaration.
7714 * expprint.c (op_name): Remove declaration. Make non-static.
7715 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7716
7717 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7718
7719 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7720 of struct siginfo.
7721 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7722 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7723 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7724 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7725 (linux_nat_get_siginfo): Likewise.
7726 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7727 (linux_nat_get_siginfo): Likewise.
7728 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7729 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7730 * procfs.c (gdb_siginfo_t): Likewise.
7731
7732 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7733
7734 * .gitignore: Ignore more files.
7735
7736 2012-03-20 Pedro Alves <palves@redhat.com>
7737
7738 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7739 returns.
7740
7741 2012-03-20 Yao Qi <yao@codesourcery.com>
7742
7743 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7744 comment.
7745
7746 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7747
7748 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7749 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7750 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7751 sect_offset.
7752 * dwarf2expr.h (cu_offset, sect_offset): New types.
7753 (struct dwarf_expr_context_funcs) <dwarf_call>
7754 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7755 sect_offset.
7756 (struct dwarf_expr_context) <len>: Improve the comment.
7757 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7758 cu_offset and sect_offset.
7759 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7760 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7761 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7762 * dwarf2loc.h: Include dwarf2expr.h.
7763 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7764 and sect_offset.
7765 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7766 Improve the comment.
7767 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7768 (struct signatured_type, struct line_header, struct partial_die_info)
7769 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7770 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7771 (get_die_type_at_offset, create_cus_from_index)
7772 (create_signatured_type_table_from_index, dw2_get_file_names)
7773 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7774 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7775 (create_debug_types_hash_table, process_psymtab_comp_unit)
7776 (load_partial_comp_unit, create_all_comp_units)
7777 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7778 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7779 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7780 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7781 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7782 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7783 (find_partial_die, read_attribute_value, lookup_die_type)
7784 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7785 (is_ref_attr): New function comment.
7786 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7787 Use cu_offset and sect_offset.
7788 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7789 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7790 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7791 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7792 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7793 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7794 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7795 sect_offset.
7796
7797 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7798
7799 Code cleanup.
7800 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7801 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7802 with xfree.
7803 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7804
7805 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7806
7807 * NEWS: Describe new options --init-command=FILE, -ix and
7808 --init-eval-command=COMMAND, -iex.
7809 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7810 CMDARG_INIT_COMMAND.
7811 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7812 "init-command", "init-eval-command", "ix" and "iex" to the variable
7813 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7814 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7815 (print_gdb_help): Describe --init-command=FILE, -ix and
7816 --init-eval-command=COMMAND, -iex.
7817
7818 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 Code cleanup.
7821 * main.c (struct cmdarg): Move it here from main. Add more comments.
7822 (cmdarg_s, VEC (cmdarg_s)): New.
7823 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7824 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7825 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7826 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7827 of CMDARG.
7828
7829 2012-03-19 Tom Tromey <tromey@redhat.com>
7830
7831 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7832
7833 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7834
7835 PR symtab/13777
7836 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7837 GCC >=4.5.
7838
7839 2012-03-16 Chris January <chris.january@allinea.com>
7840
7841 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7842 of clear.
7843
7844 2012-03-16 Chris January <chris.january@allinea.com>
7845
7846 * source.c (add_path): Use memmove instead of strcpy because the
7847 strings overlap.
7848
7849 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7850
7851 * value.h (set_value_parent): Add declaration.
7852 * value.c (set_value_parent): New function.
7853 (value_address): If VALUE->PARENT is not NULL, then use it as
7854 the base address instead of VALUE->LOCATION.address.
7855 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7856 the same as OBJ's address. Adjust V's offset accordingly.
7857 Set V's parent.
7858
7859 2012-03-16 Gary Benson <gbenson@redhat.com>
7860
7861 PR breakpoints/10738
7862 * dwarf2read.c (use_deprecated_index_sections): New global.
7863 (struct partial_die_info): New member may_be_inlined.
7864 (read_partial_die): Set may_be_inlined where appropriate.
7865 (add_partial_subprogram): Add partial symbols for partial
7866 DIEs that may be inlined.
7867 (new_symbol_full): Add inlined subroutines to the current
7868 scope.
7869 (write_psymtabs_to_index): Bump version number.
7870 (dwarf2_read_index): Read only version 6 indices unless
7871 use_deprecated_index_sections is set.
7872 * linespec.c (symbol_and_data_callback): New structure.
7873 (iterate_inline_only): New function.
7874 (iterate_over_all_matching_symtabs): New argument
7875 "include_inline". If nonzero, also call the callback for
7876 symbols representing inlined subroutines.
7877 (lookup_prefix_sym): Pass extra argument to the above.
7878 (find_function_symbols): Likewise.
7879 (add_matching_symbols_to_info): Likewise.
7880 * NEWS: Mention that GDB can now set breakpoints on inlined
7881 functions.
7882
7883 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7884
7885 * p-typeprint.c (pascal_type_print_method_args):
7886 Fix display of parameter of methods.
7887
7888 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7889
7890 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7891 Add missing prototype.
7892
7893 2012-03-16 Yao Qi <yao@codesourcery.com>
7894 Jan Kratochvil <jan.kratochvil@redhat.com>
7895
7896 Fix false compilation warning.
7897 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7898
7899 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7900 Pedro Alves <pedro@codesourcery.com>
7901
7902 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7903 (arm_register_g_packet_guesses): New function.
7904 (arm_gdbarch_init): Don't force a target description with
7905 registers when the executable is detected as M-profile. Instead
7906 set gdbarch->tdep->is_m. Register `g' packet guesses.
7907 (_initialize_arm_tdep): Initialize the new target description.
7908 * features/arm-with-m-fpa-layout.xml: New description.
7909 * features/arm-with-m-fpa-layout.c: New, generated.
7910
7911 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7912
7913 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7914 Update function description.
7915 (insert_bp_location): Do not wipe bl->target_info out.
7916 * mem-break.c: #include "gdb_string.h".
7917 (default_memory_insert_breakpoint): Do not call target_read_memory
7918 with a pointer to the breakpoint's shadow_contents buffer. Use
7919 a local buffer instead.
7920 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7921
7922 2012-03-15 Tom Tromey <tromey@redhat.com>
7923
7924 * NEWS: Mention "info vtbl", not "info vtable".
7925 * cp-support.c (info_vtbl_command): Fix comment.
7926 (_initialize_cp_support): Fix text.
7927
7928 2012-03-15 Tom Tromey <tromey@redhat.com>
7929
7930 * cp-valprint.c (cp_print_value_fields): Use
7931 print_function_pointer_address for vtable slot.
7932
7933 2012-03-15 Tom Tromey <tromey@redhat.com>
7934
7935 * gnu-v3-abi.c (struct value_and_voffset): New.
7936 (hash_value_and_voffset, eq_value_and_voffset)
7937 (compare_value_and_voffset, compute_vtable_size)
7938 (print_one_vtable, gnuv3_print_vtable): New functions.
7939 (init_gnuv3_ops): Initialize 'print_vtable' field.
7940 * cp-support.c (info_vtbl_command): New function.
7941 (_initialize_cp_support): Add "info vtbl".
7942 * cp-abi.h (cplus_print_vtable): Declare.
7943 (struct cp_abi_ops) <print_vtable>: New field.
7944 * cp-abi.c (cplus_print_vtable): New function.
7945 * NEWS: Update.
7946
7947 2012-03-15 Tom Tromey <tromey@redhat.com>
7948
7949 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7950 iterate_over_symbols.
7951
7952 2012-03-14 Doug Evans <dje@google.com>
7953
7954 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7955 DW_OP_GNU_parameter_ref.
7956
7957 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7958
7959 Fix double prompt of 'interpreter-exec mi'.
7960 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7961 (mi_interpreter_resume): use it.
7962 (mi_execute_command_input_handler): New function.
7963 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7964 mi_execute_command_input_handler.
7965
7966 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7967
7968 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7969 prototype.
7970 (darwin_debug_port_info): Make static.
7971 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7972 * machoread.c (_initialize_machoread): Add prototype.
7973 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7974 (i386_darwin_set_control, i386_darwin_get_control)
7975 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7976 i386_darwin_get_status, i386_darwin_get_control):
7977 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7978
7979 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7980
7981 * ax-gdb.c (gen_usual_unary): Remove special handling of
7982 enum and bool types.
7983
7984 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7985
7986 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7987
7988 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7989
7990 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7991
7992 2012-03-13 Chris January <chris.january@allinea.com>
7993
7994 * aix-thread.c (fill_sprs): Store the floating point registers
7995 at the correct offsets into vals.
7996
7997 2012-03-13 Doug Evans <dje@google.com>
7998
7999 * NEWS: Mention symbol-reloading has been deleted.
8000 * symfile.c (symbol_reloading): Delete.
8001 (show_symbol_reloading): Delete.
8002 (_initialize_symfile): Delete set/show symbol-reloading.
8003
8004 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8005 read_in_chain until we have successfully read it in.
8006 (load_full_comp_unit): Ditto.
8007 (read_signatured_type): Add comment.
8008
8009 2012-03-13 Chris January <chris.january@allinea.com>
8010
8011 * stabsread.c (fix_common_block): Change type of valu argument
8012 to CORE_ADDR.
8013
8014 2012-03-13 Chris January <chris.january@allinea.com>
8015
8016 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8017 instruction.
8018
8019 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8020
8021 * common/linux-procfs.c (linux_proc_get_int): New, from
8022 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8023 field.
8024 (linux_proc_get_tgid): Only call linux_proc_get_int.
8025 (linux_proc_get_tracerpid): New.
8026 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8027 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8028 linux_proc_pid_has_state.
8029 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8030 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8031 (linux_ptrace_attach_warnings): New.
8032 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8033 New declaration.
8034 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8035 (linux_nat_attach): New variables ex, buffer, message and message_s.
8036 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8037
8038 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8039
8040 * Makefile.in (linux-ptrace.o): New.
8041 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8042 from linux-nat.c.
8043 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8044 * common/linux-ptrace.c: New file.
8045 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8046 * config/arm/linux.mh: Likewise.
8047 * config/i386/linux.mh: Likewise.
8048 * config/i386/linux64.mh: Likewise.
8049 * config/ia64/linux.mh: Likewise.
8050 * config/m32r/linux.mh: Likewise.
8051 * config/m68k/linux.mh: Likewise.
8052 * config/mips/linux.mh: Likewise.
8053 * config/pa/linux.mh: Likewise.
8054 * config/powerpc/linux.mh: Likewise.
8055 * config/powerpc/ppc64-linux.mh: Likewise.
8056 * config/powerpc/spu-linux.mh: Likewise.
8057 * config/s390/s390.mh: Likewise.
8058 * config/sparc/linux.mh: Likewise.
8059 * config/sparc/linux64.mh: Likewise.
8060 * config/xtensa/linux.mh: Likewise.
8061 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8062 common/linux-procfs.c.
8063 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8064
8065 2012-03-13 Hui Zhu <teawater@gmail.com>
8066 Pedro Alves <palves@redhat.com>
8067
8068 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8069 CREATE_BREAKPOINT_FLAGS_INSERTED.
8070 (create_breakpoint_sal, create_breakpoints_sal)
8071 (base_breakpoint_create_breakpoints_sal)
8072 (tracepoint_create_breakpoints_sal)
8073 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8074 down.
8075 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8076 (ftrace_command, strace_command): Adjust.
8077 (create_tracepoint_from_upload): Pass
8078 CREATE_BREAKPOINT_FLAGS_INSERTED.
8079 * breakpoint.h (enum breakpoint_create_flags): New.
8080 (create_breakpoint): New flags parameter.
8081 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8082 * python/py-breakpoint.c (bppy_init): Adjust.
8083 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8084 * spu-tdep.c (spu_catch_start): Adjust.
8085
8086 2012-03-13 Pedro Alves <palves@redhat.com>
8087 Hui Zhu <teawater@gmail.com>
8088 Yao Qi <yao@codesourcery.com>
8089
8090 * remote.c (struct remote_state): New field `starting_up'.
8091 (remote_start_remote): Set and clear it.
8092 (remote_can_download_tracepoint): If starting up, return false.
8093
8094 2012-03-13 Yao Qi <yao@codesourcery.com>
8095
8096 * inferior.h (struct inferior): Remove fields any_syscall_count,
8097 syscalls_counts and total_syscalls_count. Move them to new
8098 struct catch_syscall_inferior_data in breakpoint.c.
8099 * breakpoint.c: Call DEF_VEC_I(int).
8100 (struct catch_syscall_inferior_data): New.
8101 (get_catch_syscall_inferior_data): New.
8102 (catch_syscall_inferior_data_cleanup): New.
8103 (insert_catch_syscall): Update to access data in
8104 struct catch_syscall_inferior_data.
8105 (insert_catch_syscall): Likewise.
8106 (remove_catch_syscall): Likewise.
8107 (remove_catch_syscall): Likewise.
8108 (is_syscall_catchpoint_enabled): Likewise.
8109 (add_catch_command): Likewise.
8110 (_initialize_breakpoint): Register cleanup.
8111 * breakpoint.h: Removed DEF_VEC_I(int).
8112 * dwarf2loc.c: Call DEF_VEC_I(int).
8113 * mi/mi-main.c: Likewise.
8114
8115 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8116
8117 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8118
8119 2012-03-12 Chris January <chris.january@allinea.com>
8120
8121 * aix-thread.c (_initialize_aix_thread): Add prototype.
8122 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8123 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8124
8125 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8126
8127 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8128 include of "amd64-nat.h".
8129
8130 2012-03-12 Tom Tromey <tromey@redhat.com>
8131
8132 * buildsym.c (record_pending_block): Now static.
8133 * buildsym.h: (record_pending_block): Remove.
8134
8135 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8136
8137 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8138
8139 2012-03-09 Tom Tromey <tromey@redhat.com>
8140
8141 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8142 producer_is_gxx_lt_4_6>: New fields.
8143 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8144
8145 2012-03-09 Tom Tromey <tromey@redhat.com>
8146
8147 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8148
8149 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8150
8151 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8152 prototype.
8153
8154 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8155
8156 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8157
8158 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8159
8160 Fix -Wmissing-prototypes build.
8161 * arm-linux-nat.c (get_thread_id): Make it static.
8162 * xtensa-linux-nat.c (get_thread_id): Likewise.
8163
8164 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8165
8166 * server.c (process_point_options): If a conditional expression
8167 is found, only print a message if remote_debug is nonzero.
8168
8169 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8170
8171 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8172 of internal error for unknown/unsupported types.
8173
8174 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8175
8176 Fix CU relative vs. absolute DIE offsets.
8177 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8178 offset to offset_in_cu.
8179 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8180 TYPE_OFFSET.
8181 (dwarf2_fetch_die_location_block): Rename parameter offset to
8182 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8183
8184 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8185
8186 * libunwind-frame.c: Rename to ...
8187 * ia64-libunwind-tdep.c: ... here.
8188 * libunwind-frame.h: Rename to ...
8189 * ia64-libunwind-tdep.h: ... here.
8190 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8191 ia64-libunwind-tdep.h.
8192 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8193 * README (--with-libunwind): Rename to ...
8194 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8195 * config.in: Regenerate.
8196 * configure: Regenerate.
8197 * configure.ac: New option --with-libunwind-ia64, make the
8198 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8199 Remove AC_DEFINE for HAVE_LIBUNWIND.
8200 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8201 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8202 Rename libunwind-frame in the general comment.
8203 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8204 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8205 Move forward declarations inside #ifndef. Rename libunwind-frame in
8206 the general comment.
8207 * ia64-tdep.c: Rename libunwind-frame.h #include to
8208 ia64-libunwind-tdep.h.
8209 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8210 (ia64_libunwind_descr): Rename libunwind-frame to
8211 ia64-libunwind-tdep in these function comments.
8212 * ia64-tdep.h: Rename libunwind-frame.h #include to
8213 ia64-libunwind-tdep.h.
8214 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8215 ia64-libunwind-tdep in that data comment.
8216
8217 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8218
8219 * libunwind-frame.h (struct frame_unwind): New declaration.
8220
8221 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8222
8223 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8224 "set breakpoint condition-evaluation" command.
8225
8226 2012-03-08 Tristan Gingold <gingold@adacore.com>
8227
8228 * sparc-stub.c: Move to stubs/
8229 * sh-stub.c: Likewise.
8230 * m68k-stub.c: Likewise.
8231 * m32r-stub.c: Likewise.
8232 * i386-stub.c: Likewise.
8233
8234 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8235
8236 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8237 linux_get_siginfo_type.
8238
8239 * m68klinux-nat.c: Include "gdb_proc_service.h".
8240 (PTRACE_GET_THREAD_AREA): Define.
8241 (ps_get_thread_area): New function.
8242
8243 2012-03-08 Yao Qi <yao@codesourcery.com>
8244
8245 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8246 `xsnprintf'.
8247 (remote_query_attached): Likewise.
8248 (remote_static_tracepoint_marker_at): Likewise.
8249 (remote_set_permissions): Likewise.
8250 (remote_detach_1, extended_remote_attach_1): Likewise.
8251 (send_g_packet, remote_vkill): Likewise.
8252 (extended_remote_disable_randomization): Likewise.
8253 (remote_add_target_side_condition): Likewise.
8254 (remote_insert_breakpoint): Likewise.
8255 (remote_remove_breakpoint): Likewise.
8256 (remote_insert_watchpoint): Likewise.
8257 (remote_remove_watchpoint): Likewise.
8258 (remote_insert_hw_breakpoint): Likewise.
8259 (remote_insert_hw_breakpoint): Likewise.
8260 (remote_remove_hw_breakpoint): Likewise.
8261 (remote_download_command_source): Likewise.
8262 (remote_download_tracepoint): Likewise.
8263 (remote_download_trace_state_variable): Likewise.
8264 (remote_disable_tracepoint): Likewise.
8265 (remote_trace_set_readonly_regions): Likewise.
8266 (remote_get_tracepoint_status): Likewise.
8267 (remote_trace_find): Likewise.
8268 (remote_get_trace_state_variable_value): Likewise.
8269 (remote_set_disconnected_tracing): Likewise.
8270 (remote_set_circular_trace_buffer): Likewise.
8271 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8272 (remote_use_agent): Likewise.
8273 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8274 Update callers.
8275
8276 2012-03-07 Pedro Alves <palves@redhat.com>
8277
8278 * NEWS: Mention QProgramSignals.
8279 * inferior.h (update_signals_program_target): Declare.
8280 * infrun.c: (update_signals_program_target): New.
8281 (handle_command): Update the target of the new program signals
8282 array changes.
8283 * remote.c (PACKET_QProgramSignals): New enum.
8284 (last_program_signals_packet): New global.
8285 (remote_program_signals): New.
8286 (remote_start_remote): Update the target with the program signals
8287 list.
8288 (remote_protocol_features): Add entry for QPassSignals.
8289 (remote_open_1): Free anc clear last_program_signals_packet.
8290 (init_remote_ops): Install remote_program_signals.
8291 * target.c (update_current_target): Adjust.
8292 (target_program_signals): New.
8293 * target.h (struct target_ops) <to_program_signals>: New field.
8294 (target_program_signals): Declare.
8295
8296 2012-03-07 Pedro Alves <palves@redhat.com>
8297
8298 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8299 extensions.
8300
8301 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8302
8303 * m68klinux-nat.c (getregs_supplies): Make static.
8304 (getfpregs_supplies): Likewise.
8305 (have_ptrace_getregs): Likewise.
8306
8307 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8308
8309 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8310 in call to get_die_type_at_offset.
8311
8312 2012-03-06 Stan Shebs <stan@codesourcery.com>
8313
8314 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8315 * mi/mi-cmd-disas.c: Ditto.
8316 * mi/mi-cmd-env.c: Ditto.
8317 * mi/mi-cmd-file.c: Ditto.
8318 * mi/mi-cmd-stack.c: Ditto.
8319 * mi/mi-cmd-target.c: Ditto.
8320 * mi/mi-cmd-var.c: Ditto.
8321 * mi/mi-cmds.c: Ditto.
8322 * mi/mi-cmds.h: Ditto.
8323 * mi/mi-console.c: Ditto.
8324 * mi/mi-getopt.c: Ditto.
8325 * mi/mi-getopt.h: Ditto.
8326 * mi/mi-interp.c: Ditto.
8327 * mi/mi-main.c: Ditto.
8328 * mi/mi-out.c: Ditto.
8329 * mi/mi-parse.c: Ditto.
8330 * mi/mi-parse.h: Ditto.
8331 * mi/mi-symbol-cmds.c: Ditto.
8332
8333 * mi/mi-getopt.h: Move mi_opt struct up.
8334 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8335 return.
8336 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8337
8338 2012-03-06 Tom Tromey <tromey@redhat.com>
8339
8340 * proc-service.c (ps_pglobal_lookup): Set the current program
8341 space.
8342
8343 2012-03-06 Pedro Alves <palves@redhat.com>
8344
8345 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8346
8347 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8348
8349 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8350
8351 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8352
8353 Code cleanup.
8354 * common/linux-osdata.c (linux_common_core_of_thread): New function
8355 comment.
8356 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8357 call by linux_common_core_of_thread.
8358 (linux_nat_core_of_thread_1): Remove.
8359 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8360 * linux-thread-db.c: Include linux-osdata.h.
8361 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8362 linux_common_core_of_thread.
8363
8364 2012-03-05 Tom Tromey <tromey@redhat.com>
8365
8366 * value.c (value_primitive_field): Don't fetch contents for
8367 non-virtual bases.
8368
8369 2012-03-05 Tom Tromey <tromey@redhat.com>
8370
8371 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8372
8373 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8374
8375 * s390-nat.c: Include "gregset.h".
8376
8377 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8378
8379 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8380 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8381 (libunwind_load): New variable so_error, use it for dlerror. Try to
8382 load also LIBUNWIND_SO_7.
8383
8384 2012-03-05 Pedro Alves <palves@redhat.com>
8385
8386 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8387 is not NULL, and remove resulting dead code.
8388
8389 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8390
8391 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8392 prologue to sh_analyze_prologue.
8393 (sh_analyze_prologue): Make better use of such an upper limit, and
8394 generally be more cautious about accessing memory.
8395
8396 2012-03-05 Tom Tromey <tromey@redhat.com>
8397
8398 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8399 _initialize_ia64_hpux_tdep.
8400
8401 2012-03-05 Pedro Alves <palves@redhat.com>
8402
8403 PR gdb/13766
8404
8405 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8406 the register state is clear, supply explicit zero, instead of
8407 marking the register unavailable.
8408
8409 2012-03-05 Tristan Gingold <gingold@adacore.com>
8410
8411 * NEWS: Mention OpenVMS ia64 new target.
8412
8413 2012-03-05 Tristan Gingold <gingold@adacore.com>
8414
8415 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8416 (ia64_unw_accessors, ia64_unw_rse_accessors)
8417 (ia64_libunwind_descr): Declare.
8418 * ia64-vms-tdep.c: New file.
8419 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8420 (ia64_libunwind_descr): Make them public.
8421 * configure.tgt: Add ia64-*-*vms*.
8422 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8423 (ALLDEPFILES): Add ia64-vms-tdep.c
8424
8425 2012-03-05 Tristan Gingold <gingold@adacore.com>
8426
8427 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8428 * remote.c (PACKET_qXfer_uib): New enum value.
8429 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8430 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8431 (_initialize_remote): Call add_packet_config_cmd for
8432 xfer:uib packet.
8433
8434 2012-03-05 Tristan Gingold <gingold@adacore.com>
8435
8436 * osabi.c (gdb_osabi_names): Add OpenVMS.
8437 (generic_elf_osabi_sniffer): Likewise.
8438 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8439
8440 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8441
8442 Removed unused code.
8443 * libunwind-frame.c (libunwind_frame_unwind)
8444 (libunwind_frame_base_address): Remove.
8445 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8446
8447 2012-03-04 Yao Qi <yao@codesourcery.com>
8448
8449 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8450 remove trailing new line.
8451 (agent_run_command, agent_run_command): Add _ markup.
8452 (agent_capability_check): Likewise.
8453
8454 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8455
8456 * breakpoint.c (set_condition_evaluation_mode): Set
8457 CONDITION_EVALUATION_MODE unconditionally.
8458
8459 2012-03-03 Yao Qi <yao@codesourcery.com>
8460
8461 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8462 * common/agent.h: Update declaration.
8463 * inf-child.c (inf_child_use_agent): New.
8464 (inf_child_can_use_agent): New.
8465 (inf_child_target): Initialize fields `to_use_agent'
8466 and `to_can_use_agent'.
8467 * agent.c (agent_new_objfile): New.
8468 (_initialize_agent): Add agent_new_objfile to new_objfile
8469 observer.
8470
8471 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8472 New.
8473 (linux_target_install_ops): Initialize field
8474 `to_static_tracepoint_markers_by_strid'.
8475 * remote.c (free_current_marker): Move it to ...
8476 * tracepoint.c (free_current_marker): ... here. New.
8477 (cleanup_target_stop): New.
8478 * tracepoint.h: Declare free_current_marker.
8479 * NEWS: Add one entry about `info static-tracepoint-marker'.
8480
8481 2012-03-03 Yao Qi <yao@codesourcery.com>
8482
8483 * common/agent.c (agent_loaded_p): New.
8484 (agent_look_up_symbols): New global.
8485 * common/agent.h: Declare agent_loaded_p.
8486
8487 2012-03-03 Yao Qi <yao@codesourcery.com>
8488
8489 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8490 (agent_capability_check, agent_capability_invalidate): New.
8491 (symbol_list): New array element.
8492 * common/agent.h (enum agent_capa): New.
8493 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8494
8495 2012-03-03 Yao Qi <yao@codesourcery.com>
8496
8497 * target.h (struct target_ops) <to_use_agent>: New field.
8498 (struct target_ops) <to_can_use_agent>: New field.
8499 (target_use_agent, target_can_use_agent): New macro.
8500 * target.c (update_current_target): Update.
8501 * remote.c: New enum `PACKET_QAgent'.
8502 (remote_protocol_features): Add a new element.
8503 (remote_use_agent, remote_can_use_agent): New.
8504 (init_remote_ops): Initialize field `can_use_agent' with
8505 remote_can_use_agent. Intiailize field `use_agent' with
8506 remote_use_agent.
8507 * common/agent.c (use_agent): New global.
8508 * common/agent.h: Declare it.
8509 * tracepoint.c (info_static_tracepoint_markers_command): Add
8510 comment.
8511 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8512 (COMMON_OBS): Add common/agent.o and agent.o
8513 (common-agent.o): New rule.
8514 * agent.c: New.
8515
8516 2012-03-03 Yao Qi <yao@codesourcery.com>
8517
8518 * common/agent.c: New.
8519 * common/agent.h: New.
8520 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8521 AC_CHECK_HEADERS.
8522 * configure, configh.in: Regenerated.
8523
8524 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8525
8526 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8527 unless it exists for this architecture.
8528
8529 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8530
8531 * language.h (struct language_defn): New "method" la_read_var_value.
8532 * findvar.c: #include "language.h".
8533 (default_read_var_value): Renames read_var_value. Rewrite
8534 function description.
8535 (read_var_value): New function.
8536 * value.h (default_read_var_value): Add prototype.
8537 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8538 New functions.
8539 (ada_language_defn): Add entry for la_read_var_value.
8540 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8541 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8542 language_defn structures to add entry for new la_read_var_value
8543 field.
8544
8545 2012-03-02 Tom Tromey <tromey@redhat.com>
8546 Pedro Alves <palves@redhat.com>
8547
8548 PR breakpoints/13776:
8549 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8550 breakpoints.
8551 (delete_longjmp_breakpoint_at_next_stop): New.
8552 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8553 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8554 before deleting the inferior. Add comments.
8555 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8556 breakpoints immediately, but only on next stop. Move that code
8557 next to where we mark other breakpoints for deletion.
8558
8559 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8560
8561 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8562 marker.
8563 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8564 violation.
8565
8566 2012-03-02 Pedro Alves <palves@redhat.com>
8567
8568 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8569
8570 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8571
8572 Fix -Wmissing-prototypes build.
8573 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8574 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8575 (gdbsim_has_memory): Likewise.
8576
8577 2012-03-02 Yao Qi <yao@codesourcery.com>
8578
8579 Fix -Wmissing-prototypes build.
8580 * charset.c (phony_iconv_open): Make static.
8581 (phony_iconv_close, phony_iconv): Likewise.
8582 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8583 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8584 prototype.
8585 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8586 * ser-mingw.c (create_select_thread): Make static.
8587 * windows-termcap.c (tgetent): New prototype.
8588 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8589
8590 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8591
8592 Fix -Wmissing-prototypes build.
8593 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8594 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8595 (_initialize_loadable): New prototypes.
8596
8597 2012-03-02 Doug Evans <dje@google.com>
8598
8599 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8600 abbrev table, read_comp_unit will do it.
8601
8602 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8603
8604 Fix -Wmissing-prototypes build.
8605 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8606 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8607 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8608 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8609 (_initialize_arm_symbian_tdep): New prototype.
8610 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8611 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8612 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8613 static.
8614 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8615 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8616 prototype.
8617 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8618 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8619 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8620 static.
8621 * moxie-tdep.c (moxie_process_record): Likewise.
8622 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8623 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8624 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8625 (_initialize_rl78_tdep): New prototype.
8626 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8627 (_initialize_rx_tdep): New prototype.
8628 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8629 (_initialize_darwin_solib): New prototype.
8630 * solib-spu.c: Include solib-spu.h.
8631 (_initialize_spu_solib): New prototype.
8632 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8633 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8634 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8635 (tic6x_software_single_step): Make it static.
8636 (_initialize_tic6x_tdep): New prototype.
8637
8638 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8639
8640 Fix -Wmissing-prototypes build.
8641 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8642 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8643
8644 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8645
8646 Fix -Wmissing-prototypes build.
8647 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8648 (frv_have_stopped_data_address): Remove.
8649
8650 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8651
8652 Fix -Wmissing-prototypes build.
8653 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8654 * sh-tdep.c: Include sh64-tdep.h.
8655 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8656 * sh64-tdep.c: Include sh64-tdep.h.
8657 * sh64-tdep.h: New file.
8658
8659 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8660
8661 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8662
8663 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8664
8665 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8666 sp_regnum once the gdbarch_init_osabi hook has been called.
8667
8668 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8669
8670 * mips-tdep.c (mips32_bc1_pc): New function.
8671 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8672 BPOSGE32 and BPOSGE64 instructions.
8673 (deal_with_atomic_sequence): Likewise.
8674 (mips32_instruction_has_delay_slot): Likewise.
8675
8676 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8677 Chris Dearman <chris@mips.com>
8678 Maciej W. Rozycki <macro@codesourcery.com>
8679 Joseph Myers <joseph@codesourcery.com>
8680
8681 * features/mips-dsp.xml: New file.
8682 * features/mips64-dsp.xml: New file.
8683 * features/mips-dsp-linux.xml: New file.
8684 * features/mips64-dsp-linux.xml: New file.
8685 * features/Makefile (WHICH): Add mips-dsp-linux and
8686 mips64-dsp-linux.
8687 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8688 * features/mips-dsp-linux.c: New file.
8689 * features/mips64-dsp-linux.c: New file.
8690 * regformats/mips-dsp-linux.dat: New file.
8691 * regformats/mips64-dsp-linux.dat: New file.
8692 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8693 registers.
8694 (mips64_linux_register_addr): Likewise.
8695 (mips64_linux_regsets_fetch_registers): Likewise.
8696 (mips64_linux_regsets_store_registers): Likewise.
8697 (mips64_linux_fetch_registers): Update call to
8698 mips64_linux_regsets_fetch_registers.
8699 (mips64_linux_store_registers): Update call to
8700 mips64_linux_regsets_store_registers.
8701 (mips_linux_read_description): Probe for DSP registers.
8702 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8703 and initialize_tdesc_mips64_dsp_linux.
8704 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8705 Remove padding of no longer used embedded register slots.
8706 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8707 (MIPS_RESTART_REGNUM): Redefine enum value.
8708 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8709 strings.
8710 (mips_tx39_reg_names): Likewise.
8711 (mips_linux_reg_names): New array of register names for Linux
8712 targets.
8713 (mips_register_name): Check for a null pointer in
8714 mips_processor_reg_names and return an empty string.
8715 (mips_register_type): Exclude embedded registers for the IRIX
8716 and Linux ABIs.
8717 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8718 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8719 DSP registers.
8720 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8721 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8722 (mips_gdbarch_init): Likewise. Initialize internal register
8723 indices for the Linux ABI. Use dynamic numbers to refer to
8724 registers, as applicable, while parsing the target description.
8725 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8726
8727 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8728
8729 * frame.h (read_frame_register_unsigned): Fix typo in function
8730 description.
8731
8732 2012-03-01 Pedro Alves <palves@redhat.com>
8733
8734 * jit-reader.in [!__cplusplus]
8735 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8736
8737 2012-03-01 Pedro Alves <palves@redhat.com>
8738
8739 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8740 * configure: Regenerate.
8741
8742 2012-03-01 Pedro Alves <palves@redhat.com>
8743
8744 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8745 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8746 (ftrace_command, strace_command): Make static.
8747 * d-lang.c (_initialize_d_language): Declare.
8748 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8749 * dwarf2loc.c (_initialize_dwarf2loc):
8750 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8751 * exec.c (exec_get_section_table): Make static.
8752 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8753 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8754 * inferior.c (remove_inferior_command, add_inferior_command)
8755 (clone_inferior_command): Make static.
8756 * linux-nat.c (linux_nat_thread_address_space)
8757 (linux_nat_core_of_thread): Make static.
8758 * linux-tdep.c (_initialize_linux_tdep): Declare.
8759 * objc-lang.c (_initialize_objc_lang): Declare.
8760 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8761 Make static.
8762 (_initialize_opencl_language): Declare.
8763 * record.c (_initialize_record): Declare.
8764 * remote.c (demand_private_info, remote_get_tib_address)
8765 (remote_supports_cond_tracepoints)
8766 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8767 Make static.
8768 * skip.c (_initialize_step_skip): Declare.
8769 * symtab.c (skip_prologue_using_lineinfo): Make static.
8770 * tracepoint.c (delete_trace_state_variable)
8771 (trace_variable_command, delete_trace_variable_command)
8772 (get_uploaded_tsv, find_matching_tracepoint_location)
8773 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8774 Make static.
8775 * value.c (pack_unsigned_long): Make static.
8776 * varobj.c (varobj_ensure_python_env): Make static.
8777 * windows-tdep.c (_initialize_windows_tdep): Declare.
8778 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8779
8780 2012-03-01 Pedro Alves <palves@redhat.com>
8781
8782 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8783 gdbarch parameter.
8784 (linux_init_abi): Install it as has_shared_address_space gdbarch
8785 callback.
8786
8787 2012-03-01 Pedro Alves <palves@redhat.com>
8788
8789 * observer.c (observer_test_first_notification_function)
8790 (observer_test_second_notification_function)
8791 (observer_test_third_notification_function): Add declarations.
8792
8793 2012-03-01 Pedro Alves <palves@redhat.com>
8794
8795 * common/signals.c (default_target_signal_to_host)
8796 (default_target_signal_from_host): Move ...
8797 * arch-utils.c: ... here.
8798 * arch-utils.h (default_target_signal_to_host)
8799 (default_target_signal_from_host): Declare.
8800
8801 * common/signals.c (target_signal_from_command): Move ...
8802 * infrun.c: ... here.
8803 * inferior.h (target_signal_from_command): Declare.
8804 * target.h (target_signal_from_command)
8805 (default_target_signal_from_host, default_target_signal_to_host):
8806 Delete declarations.
8807
8808 * common/signals.c (_initialize_signals): Delete.
8809
8810 2012-03-01 Pedro Alves <palves@redhat.com>
8811
8812 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8813 both __cplusplus and !__cplusplus.
8814
8815 2012-03-01 Pedro Alves <palves@redhat.com>
8816
8817 * psymtab.c (find_and_open_source): Delete declaration.
8818 * source.c (find_and_open_source): Move comment ...
8819 * source.h (find_and_open_source): ... to this new declaration.
8820
8821 2012-03-01 Pedro Alves <palves@redhat.com>
8822
8823 * inline-frame.c: Include inline-frame.h.
8824
8825 2012-03-01 Pedro Alves <palves@redhat.com>
8826
8827 * tui/tui-data.c (set_gen_win_origin): Delete.
8828 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8829 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8830
8831 2012-03-01 Pedro Alves <palves@redhat.com>
8832
8833 * remote.c (encode_actions): Delete declaration.
8834 * tracepoint.c (encode_actions): Make extern.
8835 * tracepoint.h (encode_actions): Declare.
8836
8837 2012-03-01 Pedro Alves <palves@redhat.com>
8838
8839 * python/py-breakpoint.c: Include python.h.
8840 * python/py-continueevent.c (create_continue_event_object): Make
8841 static.
8842 * python/py-lazy-string.c (stpy_get_type): Make static.
8843 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8844 Make static.
8845 * python/py-utils.c (unicode_to_target_python_string): Make
8846 static.
8847 * python/py-value.c: Include python.h.
8848
8849 2012-03-01 Pedro Alves <palves@redhat.com>
8850
8851 * inferior.c (delete_threads_of_inferior): Delete.
8852
8853 2012-03-01 Pedro Alves <palves@redhat.com>
8854
8855 Import fallback definitions from glibc.
8856
8857 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8858 ps_prochandle): Forward declare.
8859 (ps_err_e): Use glibc's comments.
8860 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8861 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8862 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8863 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8864 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8865 (struct ps_prochandle): Adjust comment.
8866
8867 2012-03-01 Pedro Alves <palves@redhat.com>
8868
8869 * ada-lang.c (ada_modulus_from_name): Delete.
8870 * ada-lex.l (lexer_init): Make static.
8871
8872 2012-03-01 Pedro Alves <palves@redhat.com>
8873
8874 PR gdb/13767
8875
8876 * frame.c (read_frame_register_unsigned): New.
8877 * frame.h (read_frame_register_unsigned): Declare.
8878 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8879 Handle it.
8880 (print_i387_control_word): New parameter `control_p'. Handle it.
8881 (i387_print_float_info): Handle unavailable float registers.
8882
8883 2012-03-01 Keith Seitz <keiths@redhat.com>
8884
8885 * linespec.c (decode_line_2): Sort the list of methods
8886 alphabetically before presenting the user with a selection
8887 menu.
8888
8889 2012-03-01 Doug Evans <dje@google.com>
8890
8891 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8892 has_namespace_info.
8893 (dwarf2_read_abbrevs): Remove corresponding initialization.
8894
8895 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8896
8897 * NEWS: Mention new python command class gdb.COMMAND_USER.
8898 * cli/cli-cmds.c (show_user): Print error when used on a python
8899 command.
8900 (init_cli_cmds): Update documentation strings for "show user" and
8901 "set/show max-user-call-depth" to clarify that it does not apply to
8902 python commands.
8903 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8904 error check.
8905 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8906 gdb python api.
8907 * top.c (execute_command): Only execute a user-defined command as a
8908 legacy macro if c->user_commands is set.
8909
8910 2012-03-01 Tom Tromey <tromey@redhat.com>
8911
8912 * valprint.h (struct generic_val_print_decorations): New.
8913 (generic_val_print): Declare.
8914 * valprint.c (generic_val_print): New function.
8915 * p-valprint.c (p_decorations): New global.
8916 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8917 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8918 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8919 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8920 * m2-valprint.c (m2_decorations): New global.
8921 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8922 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8923 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8924 TYPE_CODE_ERROR>: Call generic_val_print.
8925 * f-valprint.c (f_decorations): New global.
8926 (f_val_print): Use print_function_pointer_address.
8927 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8928 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8929 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8930 generic_val_print.
8931 * c-valprint.c (c_decorations): New global.
8932 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8933 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8934 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8935 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8936 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8937 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8938 case.
8939
8940 2012-03-01 Tom Tromey <tromey@redhat.com>
8941
8942 * valprint.c (val_print): Update.
8943 * p-valprint (pascal_val_print): Return void.
8944 * p-lang.h (pascal_val_print): Return void.
8945 * m2-valprint.c (m2_val_print): Return void.
8946 * m2-lang.h (m2_val_print): Return void.
8947 * language.h (struct language_defn) <la_val_print>: Return void.
8948 * language.c (unk_lang_val_print): Return void.
8949 * jv-valprint.c (java_val_print): Return void.
8950 * jv-lang.h (java_val_print): Return void.
8951 * f-valprint.c (f_val_print): Return void.
8952 * f-lang.h (f_val_print): Return void.
8953 * d-valprint.c (d_val_print): Return void.
8954 (dynamic_array_type): Update.
8955 * d-lang.h (d_val_print): Return void.
8956 * c-valprint.c (c_val_print): Return void.
8957 * c-lang.h (c_val_print): Return void.
8958 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8959 void.
8960 * ada-lang.h (ada_val_print): Return void.
8961
8962 2012-03-01 Tom Tromey <tromey@redhat.com>
8963
8964 * value.h (val_print): Return void.
8965 * valprint.c (val_print): Return void.
8966
8967 2012-03-01 Tom Tromey <tromey@redhat.com>
8968
8969 * value.h (common_val_print): Return void.
8970 * valprint.c (common_val_print): Return void.
8971
8972 2012-03-01 Tom Tromey <tromey@redhat.com>
8973
8974 * value.h (value_print): Return void.
8975 * valprint.c (value_print): Return void.
8976 * p-valprint.c (pascal_value_print): Return void.
8977 * p-lang.h (pascal_value_print): Return void.
8978 * language.h (struct language_defn) <la_value_print>: Return
8979 void.
8980 * language.c (unk_lang_value_print): Return void.
8981 * jv-valprint.c (java_value_print): Return void.
8982 * jv-lang.h (java_value_print): Return void.
8983 * f-valprint.c (c_value_print): Don't declare.
8984 Include c-lang.h.
8985 * c-valprint.c (c_value_print): Return void.
8986 * c-lang.h (c_value_print): Return void.
8987 * ada-valprint.c (ada_value_print): Return void.
8988 * ada-lang.h (ada_value_print): Return void.
8989
8990 2012-03-01 Tom Tromey <tromey@redhat.com>
8991
8992 * value.c (value_primitive_field): Handle virtual base classes.
8993
8994 2012-03-01 Tom Tromey <tromey@redhat.com>
8995
8996 * gdbtypes.h (struct vbase): Remove.
8997
8998 2012-03-01 Tom Tromey <tromey@redhat.com>
8999
9000 * c-valprint.c (print_function_pointer_address): Move...
9001 * valprint.c: ... here. Make non-static.
9002 * m2-valprint.c (print_function_pointer_address): Remove.
9003 * valprint.h (print_function_pointer_address): Declare.
9004
9005 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9006
9007 * NEWS: Document the fact that one can provide a condition when
9008 creating an Ada exception catchpoint.
9009
9010 2012-03-01 Tom Tromey <tromey@redhat.com>
9011
9012 * valprint.c (val_print_type_code_flags): Fix placement of
9013 trailing brace.
9014
9015 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9016
9017 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9018 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9019 environment variable before calling update-copyright.
9020
9021 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9022
9023 * gnulib/extra/update-copyright: Update to the latest from
9024 gnulib's git repository.
9025 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9026 variable to 2 instead of 1.
9027
9028 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9029
9030 * varobj.c (c_value_of_variable): Remove dead code.
9031
9032 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9033
9034 * ada-lex.p (processId): Do not modify already encoded IDs.
9035 Update function documentation.
9036
9037 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9038
9039 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9040 "name" with "struct symbol *name_sym".
9041 * ada-exp.y (write_var_or_type): Update call to
9042 ada_find_renaming_symbol.
9043 "name" with "struct symbol *name_sym". Adjust Implementation
9044 accordingly. Adjust the function documentation.
9045
9046 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9047
9048 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9049 * ada-lang.c (ada_find_any_type): Add advance declaration.
9050 Make static. Replace ada_find_any_symbol by
9051 ada_find_any_type_symbol.
9052 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9053 Improve function description. Make static.
9054 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9055 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9056
9057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9058
9059 * ada-lang.c (struct tag_args): Delete.
9060 (ada_get_tsd_type): Function body moved up in source file.
9061 (ada_tag_name_1, ada_tag_name_2): Delete.
9062 (ada_get_tsd_from_tag): New function.
9063 (ada_tag_name_from_tsd): New function.
9064 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9065 to determine the tag name.
9066
9067 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9068
9069 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9070 declaration.
9071 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9072 function.
9073
9074 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9075
9076 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9077
9078 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9079
9080 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9081 full searches.
9082
9083 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9084
9085 * ada-lang.c (constrained_packed_array_type): If there is a
9086 parallel XA type, use it to determine the array index type.
9087
9088 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9089
9090 * ada-valprint.c (ada_val_print_1): If our value is a reference
9091 to an array descriptor, dereference it before converting it
9092 to a simple array.
9093
9094 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9095
9096 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9097 creating fixed value.
9098 (ada_value_ind, ada_coerce_ref, assign_component)
9099 (ada_evaluate_subexp): Remove call to unwrap_value before
9100 call to ada_to_fixed_value.
9101
9102 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9103
9104 * ada-lang.c (to_fixed_array_type): Set result's type name.
9105
9106 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9107
9108 * ada-lang.c (catch_ada_exception_command_split): Add new
9109 argument cond_string. Add support for condition at end of
9110 "catch exception" commands.
9111 (ada_decode_exception_location): Add new argument cond_string.
9112 Update call to catch_ada_exception_command_split.
9113 (create_ada_exception_catchpoint): Add new argument cond_string.
9114 Set the breakpoint condition if needed.
9115 (catch_ada_exception_command): Update call to
9116 ada_decode_exception_location.
9117 (ada_decode_assert_location): Add function documentation.
9118 Add support for condition at end of "catch assert" command.
9119 (catch_assert_command): Update calls to ada_decode_assert_location
9120 and create_ada_exception_catchpoint.
9121
9122 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9123
9124 Fix disp-step-syscall.exp: fork: single step over fork.
9125 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9126 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9127 comment, change parameters gdbarch and ptid to regcache. Remove
9128 parameter regcache, initialize gdbarch from regcache here.
9129 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9130 New functions.
9131 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9132 instead.
9133 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9134 'syscall'. Make the 'int' check more strict.
9135
9136 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9137
9138 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9139 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9140 (i386_linux_intx80_sysenter_syscall_record): ... here.
9141 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9142 Use the renamed function name.
9143
9144 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9145
9146 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9147 * breakpoint.c (until_break_command): Likewise.
9148 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9149 * infcall.c (call_function_by_hand): Likewise.
9150 * infcmd.c (finish_forward): Likewise.
9151 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9152
9153 2012-02-28 Tristan Gingold <gingold@adacore.com>
9154
9155 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9156 avoid variable assignments inside condition.
9157
9158 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9159
9160 Fix static analysis issue found by cppcheck.
9161 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9162 uninitialized BUF for size 2.
9163
9164 2012-02-27 Chris Dearman <chris@mips.com>
9165 Nathan Froyd <froydnj@codesourcery.com>
9166 Maciej W. Rozycki <macro@codesourcery.com>
9167
9168 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9169 (mips16_instruction_has_delay_slot): Likewise.
9170 (mips_segment_boundary): Likewise.
9171 (mips_adjust_breakpoint_address): Likewise.
9172 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9173
9174 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9175 Maciej W. Rozycki <macro@codesourcery.com>
9176
9177 * infrun.c (handle_inferior_event): Don't proceed through
9178 shared library trampolines if stepping at the machine
9179 instruction level.
9180
9181 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9182
9183 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9184 too.
9185
9186 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9187
9188 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9189 (sh_stub_unwind_sniffer): New functions.
9190 (sh_stub_unwind): New variable.
9191 (sh_gdbarch_init): Wire everything.
9192
9193 2012-02-27 Pedro Alves <palves@redhat.com>
9194
9195 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9196 (linux_nat_post_attach_wait): Adjust to use
9197 linux_proc_pid_is_stopped.
9198 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9199 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9200 based on pid_is_stopped from both linux-nat.c and
9201 gdbserver/linux-low.c, and renamed.
9202
9203 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9204
9205 * remote.c (remote_watchpoint_addr_within_range): New function.
9206 (init_remote_ops): Use it.
9207
9208 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9209
9210 * target.h (target_watchpoint_addr_within_range): Document macro.
9211
9212 2012-02-24 Pedro Alves <palves@redhat.com>
9213
9214 * stack.c (set_last_displayed_sal): Issue internal_error instead
9215 of warning, and issue it after clearing the last displayed sal.
9216
9217 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9218 Pedro Alves <palves@redhat.com>
9219
9220 * breakpoint.c (until_break_command): Install breakpoints after
9221 all frame manipulations.
9222
9223 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9224
9225 * remote.c (remote_supports_cond_breakpoints): New forward
9226 declaration.
9227 (remote_add_target_side_condition): New function.
9228 (remote_insert_breakpoint): Add target-side breakpoint
9229 conditional if supported.
9230 (remote_insert_hw_breakpoint): Likewise.
9231 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9232 hook.
9233
9234 * target.c (update_current_target): Inherit
9235 to_supports_evaluation_of_breakpoint_conditions.
9236 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9237
9238 * target.h (struct target_ops)
9239 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9240 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9241
9242 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9243 (condition_evaluation_both, condition_evaluation_auto,
9244 condition_evaluation_host, condition_evaluation_target,
9245 condition_evaluation_enums, condition_evaluation_mode_1,
9246 condition_evaluation_mode): New static globals.
9247 (translate_condition_evaluation_mode): New function.
9248 (breakpoint_condition_evaluation_mode): New function.
9249 (gdb_evaluates_breakpoint_condition_p): New function.
9250 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9251 (mark_breakpoint_modified): New function.
9252 (mark_breakpoint_location_modified): New function.
9253 (set_condition_evaluation_mode): New function.
9254 (show_condition_evaluation_mode): New function.
9255 (bp_location_compare_addrs): New function.
9256 (get_first_location_gte_addr): New helper function.
9257 (set_breakpoint_condition): Free condition bytecode if locations
9258 has become unconditional. Call mark_breakpoint_modified (...).
9259 (condition_command): Call update_global_location_list (1) for
9260 breakpoints.
9261 (breakpoint_xfer_memory): Use is_breakpoint (...).
9262 (is_breakpoint): New function.
9263 (parse_cond_to_aexpr): New function.
9264 (build_target_condition_list): New function.
9265 (insert_bp_location): Handle target-side conditional
9266 breakpoints and call build_target_condition_list (...).
9267 (update_inserted_breakpoint_locations): New function.
9268 (insert_breakpoint_locations): Handle target-side conditional
9269 breakpoints.
9270 (bpstat_check_breakpoint_conditions): Add comment.
9271 (bp_condition_evaluator): New function.
9272 (bp_location_condition_evaluator): New function.
9273 (print_breakpoint_location): Print information on where the condition
9274 will be evaluated.
9275 (print_one_breakpoint_location): Likewise.
9276 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9277 breakpoint location.
9278 (force_breakpoint_reinsertion): New functions.
9279 (update_global_location_list): Handle target-side breakpoint
9280 conditions.
9281 Reinsert locations that are already inserted if conditions have
9282 changed.
9283 (bp_location_dtor): Free agent expression bytecode.
9284 (disable_breakpoint): Call mark_breakpoint_modified (...).
9285 Call update_global_location_list (...) with parameter 1 for breakpoints.
9286 (disable_command): Call mark_breakpoint_location_modified (...).
9287 Call update_global_location_list (...) with parameter 1 for breakpoints.
9288 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9289 (enable_command): mark_breakpoint_location_modified (...).
9290 (_initialize_breakpoint): Update documentation and add
9291 condition-evaluation breakpoint subcommand.
9292
9293 * breakpoint.h: Include ax.h.
9294 (condition_list): New data structure.
9295 (condition_status): New enum.
9296 (bp_target_info) <cond_list>: New field.
9297 (bp_location) <condition_changed, cond_bytecode>: New fields.
9298 (is_breakpoint): New prototype.
9299
9300 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9301
9302 * remote.c (remote_state) <cond_breakpoints>: New field.
9303 (PACKET_ConditionalBreakpoints): New enum.
9304 (remote_cond_breakpoint_feature): New function.
9305 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9306 (remote_supports_cond_breakpoints): New function.
9307 (_initialize_remote): Add new packet configuration for
9308 target-side conditional breakpoints.
9309
9310 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9311
9312 * NEWS: Mention target-side conditional breakpoint support,
9313 new condition-evaluation breakpoint subcommand and remote
9314 packet extensions.
9315
9316 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9317
9318 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9319 number.
9320
9321 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9322
9323 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9324 (after_prologue): Remove.
9325
9326 2012-02-23 Tom Tromey <tromey@redhat.com>
9327
9328 * jv-valprint.c (java_val_print): Remove dead code.
9329
9330 2012-02-23 Tristan Gingold <gingold@adacore.com>
9331
9332 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9333 known_tasks_element and known_tasks_length fields.
9334 (read_known_tasks_array): Change argument type. Use pointer type
9335 and number of elements from DATA. Adjust.
9336 (read_known_tasks_list): Likewise.
9337 (get_known_tasks_addr): Remove.
9338 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9339 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9340 type and array length. Merge former get_known_tasks_addr code.
9341
9342 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9343
9344 PR backtrace/13716
9345 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9346 it after set_momentary_breakpoint.
9347
9348 2012-02-22 Sterling Augustine <saugustine@google.com>
9349
9350 PR 13689:
9351 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9352
9353 2012-02-22 Gary Benson <gbenson@redhat.com>
9354
9355 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9356 (find_slot_in_mapped_hash): Likewise.
9357
9358 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9359
9360 PR build/13638
9361 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9362 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9363 * configure: Regenerate.
9364
9365 2012-02-21 Tristan Gingold <gingold@adacore.com>
9366 Pedro Alves <palves@redhat.com>
9367
9368 * ia64-tdep.c: Do not include libunwind-ia64.h.
9369 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9370 Include libunwind-ia64.h instead of libunwind.h.
9371 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9372 for libunwind.h existence.
9373 * configure, config.in: Regenerate.
9374
9375 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9376
9377 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9378 instead of value_rtti_target_type.
9379 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9380 instead of value_rtti_target_type.
9381 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9382 value_rtti_target_type.
9383 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9384 (value_rtti_target_type): Rename to ...
9385 (value_rtti_indirect_type): ... here and make it indirect. Update
9386 function comment.
9387 * value.c (readjust_indirect_value_type): New function.
9388 (coerce_ref): Support for enclosing type setting for references
9389 with readjust_indirect_value_type.
9390 * value.h (readjust_value_type): New declaration.
9391 (value_rtti_target_type): Rename to ...
9392 (value_rtti_indirect_type): ... here.
9393
9394 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9395
9396 * MAINTAINERS (Write After Approval): Add myself to the list.
9397
9398 2012-02-20 Doug Evans <dje@google.com>
9399
9400 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9401 Rename objfile_p_char parameter to objfilep.
9402 (build_objfile_section_table): Result is now void. All callers
9403 updated.
9404 * objfiles.h (struct objfile): Tweak comments, whitespace.
9405 (build_objfile_section_table): Update.
9406
9407 * elfread.c (elf_symfile_segments): Fix warning text.
9408
9409 2012-02-20 Tom Tromey <tromey@redhat.com>
9410
9411 PR gdb/13498:
9412 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9413 particular set of file names once.
9414 (dw2_map_symbol_filenames): Likewise.
9415
9416 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9417
9418 Code cleanup.
9419 * main.c (write_files): Remove the declaration.
9420 (external_editor_command): Move the declaration ...
9421 [GDBTK] (external_editor_command): ... here. Fix the comment.
9422
9423 2012-02-20 Tom Tromey <tromey@redhat.com>
9424
9425 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9426 extraneous block.
9427
9428 2012-02-20 Tristan Gingold <gingold@adacore.com>
9429
9430 * darwin-nat.h (enum darwin_msg_state): Add comments.
9431
9432 2012-02-20 Tristan Gingold <gingold@adacore.com>
9433
9434 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9435 value.
9436
9437 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9438
9439 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9440 between function description and implementation.
9441
9442 2012-02-17 Tom Tromey <tromey@redhat.com>
9443
9444 PR python/12070:
9445 * python/py-event.c (event_object_getset): New global.
9446 (event_object_type): Reference it.
9447 * python/py-type.c (field_object_getset): New global.
9448 (field_object_type): Reference it.
9449 * python/python-internal.h (gdb_py_generic_dict): Declare.
9450 * python/py-utils.c (gdb_py_generic_dict): New function.
9451
9452 2012-02-17 Tristan Gingold <gingold@adacore.com>
9453
9454 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9455
9456 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9457
9458 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9459 TYPE_CALLING_CONVENTION annotation.
9460
9461 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9462
9463 * MAINTAINERS: Add rx to target ISA section.
9464 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9465 (ALLDEPFILES): Add rx-tdep.c.
9466
9467 2012-02-16 Tom Tromey <tromey@redhat.com>
9468
9469 * symfile.c (symbol_file_add_main_1): Use inferior's
9470 symfile_flags.
9471 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9472 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9473 inferior.
9474 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9475 inferior.
9476 (follow_exec): Use inferior's symfile_flags.
9477 * inferior.h (struct inferior) <symfile_flags>: New field.
9478
9479 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9480
9481 PR gdb/9734:
9482 * remote-sim.c (gdbsim_create_inferior): Call error() when
9483 sim_create_inferior() fails.
9484
9485 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9486
9487 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9488
9489 2012-02-16 Tom Tromey <tromey@redhat.com>
9490
9491 PR c++/13653:
9492 * thread.c (struct current_thread_cleanup) <was_removable>: New
9493 field.
9494 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9495 (make_cleanup_restore_current_thread): Initialize new field.
9496
9497 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9498
9499 * MAINTAINERS: Add rl78 to target ISA section.
9500 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9501 (ALLDEPFILES): Add rl78-tdep.c.
9502 * NEWS: Mention rl78 as a new target.
9503
9504 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9505
9506 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9507 data.
9508 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9509
9510 2012-02-15 Tom Tromey <tromey@redhat.com>
9511
9512 PR gdb/12659:
9513 * infcmd.c (registers_info): Print just the current register's
9514 name.
9515
9516 2012-02-15 Tom Tromey <tromey@redhat.com>
9517
9518 * python/py-symbol.c (sympy_value): Use _().
9519
9520 2012-02-15 Pedro Alves <palves@redhat.com>
9521
9522 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9523 output to be like native targets'.
9524 (remote_pid_to_str): Special case the null ptid.
9525
9526 2012-02-14 Stan Shebs <stan@codesourcery.com>
9527
9528 * NEWS: Mention enable count command.
9529 * breakpoint.h (struct breakpoint): New field enable_count.
9530 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9531 (enable_breakpoint): Add arg to call.
9532 (struct disp_data): New struct.
9533 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9534 (do_map_enable_once_breakpoint): Create a struct and pass it.
9535 (do_map_enable_delete_breakpoint): Ditto.
9536 (do_map_enable_count_breakpoint): New function.
9537 (enable_count_command): New function.
9538 (bpstat_stop_status): Decrement enable_count.
9539 (print_one_breakpoint_location): Report enable count.
9540 (_initialize_breakpoint): Add enable count command.
9541
9542 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9543
9544 * rl78-tdep.c (reggroups.h): Include.
9545 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9546 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9547 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9548 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9549 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9550 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9551 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9552 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9553 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9554 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9555 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9556 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9557 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9558 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9559 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9560 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9561 beginning of register list.
9562 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9563 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9564 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9565 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9566 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9567 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9568 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9569 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9570 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9571 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9572 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9573 the pseudo registers. Rearrange other pseudo registers too so
9574 that the bank registers appear at the end.
9575 (rl78_register_type): Account for the fact that the byte sized
9576 bank registers are now pseudo-registers.
9577 (rl78_register_name): Rearrange the register name array. Make
9578 initial set of raw banked registers inaccessible.
9579 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9580 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9581 case for copying bytes back and forth between raw and pseudo
9582 versions of the banked registers. Update other cases to reflect
9583 the changed names.
9584 (rl78_return_value): Update to account for changed names of
9585 raw registers.
9586 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9587 rl78_register_sim_regno().
9588
9589 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9590
9591 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9592 the name parameter being passed to find_pc_partial_function().
9593
9594 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9595
9596 * MAINTAINERS: Step down from being ia64 target maintainer.
9597
9598 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9599
9600 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9601 compilation warning.
9602
9603 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 Fix crash on loaded shlibs without loaded exec_bfd.
9606 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9607 (set_section_command): Replace exec_bfd by p->bfd.
9608
9609 2012-02-10 Tom Tromey <tromey@redhat.com>
9610
9611 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9612 when we have a C++ qualified name.
9613
9614 2012-02-10 Pedro Alves <palves@redhat.com>
9615
9616 * inferior.c (inferior_pid_to_str): New.
9617 (print_inferior, inferior_command): Use it.
9618
9619 2012-02-10 Pedro Alves <palves@redhat.com>
9620
9621 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9622 the test CFLAGS.
9623 * configure: Regenerate.
9624
9625 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 * linespec.c (decode_line_internal): Fix comment correctness.
9628
9629 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9630
9631 PR gdb/12953
9632 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9633 * amd64bsd-nat.c: Add support for debug registers (adapted from
9634 i386bsd-nat.c).
9635 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9636 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9637 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9638 (amd64bsd_dr_get_control): New functions.
9639 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9640 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9641 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9642 watchpoints initialization.
9643 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9644
9645 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9646
9647 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9648 flds_bnds.fields.
9649 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9650
9651 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9654
9655 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9656
9657 * language.h (symbol_name_cmp_ftype): Renames
9658 symbol_name_match_p_ftype.
9659 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9660 la_get_symbol_name_match_p.
9661 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9662 ada_get_symbol_name_match_p. Update comment.
9663 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9664 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9665 Renames symbol_name_match_p. Update field type.
9666 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9667 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9668 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9669 "la_get_symbol_name_cmp" in comments.
9670 * language.c: Likewise.
9671
9672 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9673
9674 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9675 %eflags offset.
9676 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9677 (amd64_sol2_gregset32_reg_offs): Likewise.
9678
9679 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9680
9681 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9682 of the returned BFD is allocated by GDB.
9683
9684 2012-02-07 Tom Tromey <tromey@redhat.com>
9685
9686 PR python/12027:
9687 * python/python-internal.h (frame_object_type): Declare.
9688 * python/py-symbol.c (sympy_needs_frame): New function.
9689 (sympy_value): New function.
9690 (symbol_object_getset): Add "needs_frame".
9691 (symbol_object_methods): Add "value".
9692 * python/py-frame.c (frame_object_type): No longer static.
9693
9694 2012-02-07 Tom Tromey <tromey@redhat.com>
9695
9696 PR python/13599:
9697 * python/py-symbol.c (sympy_line): New function.
9698 (symbol_object_getset): Add "line".
9699
9700 2012-02-07 Tom Tromey <tromey@redhat.com>
9701
9702 * charset.c (find_charset_names): Check 'in' against NULL.
9703
9704 2012-02-06 Doug Evans <dje@google.com>
9705
9706 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9707 and fields.name members from char * to const char *. All uses updated.
9708 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9709 from char * to const char *. All uses updated.
9710 (type_name_no_tag): Update.
9711 (lookup_unsigned_typename, lookup_signed_typename): Update.
9712 * gdbtypes.c (type_name_no_tag): Change result type
9713 from char * to const char *. All callers updated.
9714 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9715 name parameter from char * to const char *.
9716 * symtab.h (struct cplus_specific): Change type of demangled_name
9717 member from char * to const char *. All uses updated.
9718 (struct general_symbol_info): Change type of name and
9719 mangled_lang.demangled_name members from char * to const char *.
9720 All uses updated.
9721 (symbol_get_demangled_name, symbol_natural_name): Update.
9722 (symbol_demangled_name, symbol_search_name): Update.
9723 * symtab.c (symbol_get_demangled_name): Change result type
9724 from char * to const char *. All callers updated.
9725 (symbol_natural_name, symbol_demangled_name): Ditto.
9726 (symbol_search_name): Ditto.
9727 (completion_list_add_name): Change type of symname,sym_text,
9728 text,word parameters from char * to const char *.
9729 (completion_list_objc_symbol): Change type of sym_text,
9730 text,word parameters from char * to const char *.
9731 * ada-lang.c (find_struct_field): Change type of name parameter
9732 from char * to const char *.
9733 (encoded_ordered_before): Similarly for N0,N1 parameters.
9734 (old_renaming_is_invisible): Similarly for function_name parameter.
9735 (ada_type_name): Change result type from char * to const char *.
9736 All callers updated.
9737 * ada-lang.h (ada_type_name): Update.
9738 * buildsym.c (hashname): Change type of name parameter
9739 from char * to const char *.
9740 * buildsym.h (hashname): Update.
9741 * dbxread.c (end_psymtab): Change type of include_list parameter
9742 from char ** to const char **.
9743 * dwarf2read.c (determine_prefix): Change result type
9744 from char * to const char *. All callers updated.
9745 * f-lang.c (find_common_for_function): Change type of name, funcname
9746 parameters from char * to const char *.
9747 * f-lang.c (find_common_for_function): Update.
9748 * f-valprint.c (list_all_visible_commons): Change type of funcname
9749 parameters from char * to const char *.
9750 * gdbarch.sh (static_transform_name): Change type of name parameter
9751 and result from char * to const char *.
9752 * gdbarch.c: Regenerate.
9753 * gdbarch.h: Regenerate.
9754 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9755 of name parameter from char * to const char *.
9756 * jv-lang.c (java_primitive_type_from_name): Ditto.
9757 (java_demangled_signature_length): Similarly for signature parameter.
9758 (java_demangled_signature_copy): Ditto.
9759 (java_demangle_type_signature): Ditto.
9760 * jv-lang.h (java_primitive_type_from_name): Update.
9761 (java_demangle_type_signature): Update.
9762 * objc-lang.c (specialcmp): Change type of a,b parameters
9763 from char * to const char *.
9764 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9765 from char * to const char *. All callers updated.
9766 * p-lang.h (is_pascal_string_type): Update.
9767 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9768 of name parameter from char * to const char *.
9769 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9770 * utils.c (fprintf_symbol_filtered): Ditto.
9771 * defs.h (fprintf_symbol_filtered): Update.
9772 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9773 * stabsread.h (end_psymtab): Update.
9774 * stack.c (find_frame_funname): Change type of funname parameter
9775 from char ** to const char **.
9776 * stack.h (find_frame_funname): Update.
9777 * typeprint.c (type_print): Change type of varstring parameter
9778 from char * to const char *.
9779 * value.h (type_print): Update.
9780 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9781 from char * to const char *. All callers updated.
9782 (xcoff_end_psymtab): Change type of include_list parameter
9783 from char ** to const char **. All callers updated.
9784 (swap_sym): Similarly for name parameter. All callers updated.
9785 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9786 Use xstrdup.
9787 (process_coff_symbol): Use xstrdup.
9788 * stabsread.c (stabs_method_name_from_physname): Renamed from
9789 update_method_name_from_physname. Change result type from void
9790 to char *. All callers updated.
9791 (read_member_functions): In has_destructor case, store name in objfile
9792 obstack instead of malloc space. In !has_stub case, fix mem leak.
9793
9794 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9795
9796 * configure: Rebuild.
9797 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9798 LDFLAGS.
9799
9800 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9801
9802 * configure.tgt (rl78-*-elf): New target.
9803 * rl78-tdep.c: New file.
9804
9805 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9806
9807 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9808 and continue the loop. Add QUIT statement.
9809
9810 2012-02-03 Tom Tromey <tromey@redhat.com>
9811
9812 PR gdb/13596:
9813 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9814 bfd_lookup_symbol_from_symtab.
9815 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9816 gdb_bfd_lookup_symbol_from_symtab.
9817
9818 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9819
9820 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9821 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9822 symbol. Add assertion that sym2 is never NULL.
9823
9824 2012-02-02 Doug Evans <dje@google.com>
9825
9826 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9827 "name" parameter to const char ** from char **. All callers updated.
9828 (find_pc_partial_function): Ditto.
9829 (cache_pc_function_name): Change type to const char * from char *.
9830 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9831 (find_pc_partial_function): Update.
9832 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9833 type of "name" parameter to const char * from char *.
9834 All uses updated.
9835 * arch-utils.c (generic_in_solib_return_trampoline): Change
9836 type of "name" parameter to const char * from char *.
9837 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9838 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9839 type of "name" parameter to const char * from char *.
9840 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9841 * gdbarch.c: Regenerate.
9842 * gdbarch.h: Regenerate.
9843 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9844 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9845 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9846 type of "name" parameter to const char * from char *.
9847 * skip.c (skip_function_pc): Ditto.
9848 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9849 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9850 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9851 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9852 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9853 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9854 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9855 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9856 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9857
9858 2012-02-02 Pedro Alves <palves@redhat.com>
9859
9860 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9861 the current inferior has no execution. Make sure the current
9862 remote process matches gdb's current inferior.
9863
9864 2012-02-02 Tom Tromey <tromey@redhat.com>
9865
9866 PR gdb/13405:
9867 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9868 read-only memory.
9869
9870 2012-02-02 Tom Tromey <tromey@redhat.com>
9871
9872 PR gdb/9307:
9873 * symtab.c (lookup_language_this): Set block_found.
9874
9875 2012-02-01 Tom Tromey <tromey@redhat.com>
9876
9877 PR gdb/13431:
9878 * jit.c (struct jit_inferior_data): Rewrite.
9879 (struct jit_objfile_data): New.
9880 (get_jit_objfile_data): New function.
9881 (add_objfile_entry): Update.
9882 (jit_read_descriptor): Return int. Replace descriptor_addr
9883 argument with inf_data. Update. Don't call error.
9884 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9885 descriptor here.
9886 (jit_inferior_init): Don't look up descriptor. Don't call error.
9887 (jit_reset_inferior_data_and_breakpoints)
9888 (jit_inferior_created_observer): Remove.
9889 (jit_inferior_exit_hook): Update.
9890 (jit_executable_changed_observer): Remove.
9891 (jit_event_handler): Update.
9892 (free_objfile_data): Reset inferior data if needed.
9893 (_initialize_jit): Update.
9894
9895 2012-02-01 Tom Tromey <tromey@redhat.com>
9896
9897 * jit.c (bfd_open_from_target_memory): Move higher in file.
9898
9899 2012-02-01 Tristan Gingold <gingold@adacore.com>
9900
9901 * libunwind-frame.c (libunwind_load): Display message if dlopen
9902 failed.
9903
9904 2012-02-01 Gary Benson <gbenson@redhat.com>
9905
9906 * symtab.h (symbol_found_callback_ftype): New typedef.
9907 (iterate_over_symbols): Use the above.
9908 * symtab.c (iterate_over_symbols): Likewise.
9909 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9910 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9911 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9912 (iterate_name_matcher): Document return values.
9913 (collect_one_symbol): Likewise.
9914 (collect_function_symbols): Likewise.
9915 (collect_symbols): Likewise.
9916
9917 2012-02-01 Tom Tromey <tromey@redhat.com>
9918
9919 * ada-lang.c (resolve_subexp): Update.
9920 (ada_lookup_symbol_list): Add 'full_search' argument.
9921 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9922 ada_lookup_symbol_list.
9923 (ada_lookup_encoded_symbol): Update.
9924 (get_var_value): Update.
9925 * ada-exp.y (block_lookup): Update.
9926 (write_var_or_type): Update.
9927 (write_name_assoc): Update.
9928 * ada-lang.h (ada_lookup_symbol_list): Update.
9929
9930 2012-01-31 Tom Tromey <tromey@redhat.com>
9931
9932 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9933 comment.
9934
9935 2012-01-31 Doug Evans <dje@google.com>
9936
9937 * symtab.h: Remove outdated comment.
9938 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9939
9940 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9941
9942 Fix build error in Darwin port.
9943 * i386-darwin-nat.c: Include i386-nat.h.
9944
9945 2012-01-30 Tom Tromey <tromey@redhat.com>
9946
9947 PR breakpoints/13568:
9948 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9949 argument. Check for recursive includes.
9950 (dwarf_decode_macros): Create an include hash.
9951
9952 2012-01-30 Michael Eager <eager@eagercon.com>
9953
9954 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9955 * ppc-linux-tdep.c: Include glibc-tdep.h.
9956 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9957 (powerpc_linux_in_plt_stub): New function.
9958 (powerpc_linux_in_dynsym_resolve_code): New function.
9959 (ppc_skip_trampoline_code): New function.
9960 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9961 Use glibc_skip_solib_resolver.
9962
9963 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9964
9965 Code cleanup: Make 1440 bytes of data segment read-only.
9966 * arch-utils.c (endian_enum): Make it const char *const [].
9967 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9968 Likewise.
9969 * breakpoint.c (always_inserted_enums): Likewise.
9970 * cli/cli-cmds.c (script_ext_enums): Likewise.
9971 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9972 enumlist parameter const char *const *.
9973 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9974 const char *const *.
9975 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9976 parameter const char *const *.
9977 * cris-tdep.c (cris_modes): Make it const char *const [].
9978 * filesystem.c (target_file_system_kinds): Likewise.
9979 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9980 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9981 (can_use_displaced_stepping_enum, scheduler_enums)
9982 (exec_direction_names): Likewise.
9983 * language.c (_initialize_language): Make the type_or_range_names and
9984 case_sensitive_names variables const char *const [].
9985 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9986 * python/python.c (python_excp_enums): Likewise.
9987 * remote.c (interrupt_sequence_modes): Likewise.
9988 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9989 * serial.c (logbase_enums): Likewise.
9990 * sh-tdep.c (sh_cc_enum): Likewise.
9991 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9992 Likewise.
9993 * symtab.c (multiple_symbols_modes): Likewise.
9994 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9995 Likewise.
9996 * utils.c (internal_problem_modes): Likewise.
9997
9998 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10001 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10002 result.
10003
10004 2012-01-27 Doug Evans <dje@google.com>
10005
10006 * configure.ac (with_python): Fix absolute path handling for win32.
10007 * configure: Regenerate.
10008
10009 2012-01-26 Doug Evans <dje@google.com>
10010
10011 * symtab.c: Whitespace cleanup, no code changes.
10012
10013 * symtab.c (lookup_symbol_in_language): Improve comment.
10014 (lookup_symbol_aux): Fix comment.
10015
10016 * psymtab.c (add_psymbol_to_list): Result is now "void".
10017 * psympriv.h (add_psymbol_to_list): Update.
10018
10019 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10020
10021 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10022
10023 Do not open script filenames twice.
10024 * cli/cli-cmds.c (source_script_from_stream): Pass to
10025 source_python_script also STREAM.
10026 * python/py-auto-load.c (source_section_scripts): Pass to
10027 source_python_script_for_objfile also STREAM.
10028 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10029 also INPUT.
10030 * python/python-internal.h (source_python_script_for_objfile): New
10031 parameter file, rename parameter file to filename.
10032 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10033 instead if !_WIN32. Update the function comment.
10034 (source_python_script, source_python_script_for_objfile)
10035 (source_python_script): New parameter file, rename parameter file to
10036 filename. Pass FILENAME to python_run_simple_file.
10037 * python/python.h (source_python_script): New parameter file, rename
10038 parameter file to filename.
10039
10040 2012-01-26 Pedro Alves <palves@redhat.com>
10041
10042 * corelow.c (core_has_fake_pid): Delete.
10043 (core_close): Delete references to `core_has_fake_pid'.
10044 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10045 (core_open): Delete references to `core_has_fake_pid'.
10046 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10047 the removed global.
10048
10049 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10050
10051 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10052 Remove language parameter from name_matcher. Adjust the comment.
10053 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10054 Remove language parameter.
10055 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10056 * linespec.c (iterate_name_matcher): Likewise.
10057 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10058 name_matcher. Adjust call accordingly.
10059 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10060 (maintenance_check_symtabs): Adjust type of parameter "fun".
10061 * psymtab.h (maintenance_check_symtabs): Likewise.
10062
10063 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10064
10065 * language.h (symbol_name_match_p_ftype): New typedef.
10066 (struct language_defn): Replace field la_symbol_name_compare
10067 by la_get_symbol_name_match_p.
10068 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10069 (ada_language_defn): Use it.
10070 * linespec.c (struct symbol_matcher_data): New type.
10071 (iterate_name_matcher): Rewrite.
10072 (iterate_over_all_matching_symtabs): Pass a pointer to
10073 a symbol_matcher_data struct to expand_symtabs_matching
10074 instead of just the lookup name.
10075 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10076 opencl-lang.c, p-lang.c, language.c: Delete field
10077 la_symbol_name_compare, and replace by NULL for new field
10078 la_get_symbol_name_match_p.
10079 * symfile.h (struct quick_symbol_functions): Update comment.
10080
10081 2012-01-25 Tom Tromey <tromey@redhat.com>
10082
10083 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10084 dereferencing.
10085
10086 2012-01-24 Tom Tromey <tromey@redhat.com>
10087
10088 PR symtab/12406:
10089 * solib.c (update_solib_list): Update the program space's
10090 added_solibs and deleted_solibs fields.
10091 * progspace.h (struct program_space) <added_solibs,
10092 deleted_solibs>: New fields.
10093 (clear_program_space_solib_cache): Declare.
10094 * progspace.c (release_program_space): Call
10095 clear_program_space_solib_cache.
10096 (clear_program_space_solib_cache): New function.
10097 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10098 bpstat_stop_status. Use handle_solib_event.
10099 * breakpoint.c: Include gdb_regex.h.
10100 (print_solib_event): New function.
10101 (bpstat_print): Use print_solib_event.
10102 (bpstat_stop_status): Add special case for bp_shlib_event.
10103 (handle_solib_event): New function.
10104 (bpstat_what): Use handle_solib_event.
10105 (struct solib_catchpoint): New.
10106 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10107 (breakpoint_hit_catch_solib, check_status_catch_solib)
10108 (print_it_catch_solib, print_one_catch_solib)
10109 (print_mention_catch_solib, print_recreate_catch_solib): New
10110 functions.
10111 (catch_solib_breakpoint_ops): New global.
10112 (catch_load_or_unload, catch_load_command_1)
10113 (catch_unload_command_1): New functions.
10114 (internal_bkpt_check_status): Add special case for
10115 bp_shlib_event.
10116 (internal_bkpt_print_it): Use print_solib_event.
10117 (initialize_breakpoint_ops): Initialize
10118 catch_solib_breakpoint_ops.
10119 (_initialize_breakpoint): Register "catch load" and "catch
10120 unload".
10121 * breakpoint.h (handle_solib_event): Declare.
10122 * NEWS: Add entry for "catch load" and "catch unload".
10123
10124 2012-01-24 Tom Tromey <tromey@redhat.com>
10125
10126 * ada-lang.c: Include gdb_vecs.h.
10127 * charset.c: Include gdb_vecs.h.
10128 * tracepoint.h: Include gdb_vecs.h.
10129 * gdb_vecs.h: New file.
10130
10131 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10132
10133 * breakpoint.c (breakpoint_hit_catch_fork)
10134 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10135 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10136 * infrun.c (inferior_has_forked, inferior_has_vforked)
10137 (inferior_has_execd, inferior_has_called_syscall): Delete.
10138 (handle_syscall_event): Get syscall_number from the execution
10139 control state's wait status.
10140 (wait_for_inferior): Don't clear syscall_number.
10141
10142 2012-01-24 Pedro Alves <palves@redhat.com>
10143
10144 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10145 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10146 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10147 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10148 `ws' parameter.
10149 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10150 false for events other than TARGET_SIGNAL_TRAP.
10151 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10152 Add `ws' parameter.
10153 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10154 events other than TARGET_SIGNAL_TRAP.
10155 (tracepoint_breakpoint_hit): Add `ws' parameter.
10156 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10157 parameter.
10158 (bpstat_stop_status): Same.
10159 (pc_at_non_inline_function): Same.
10160 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10161 to pass the current event's waitstatus to bpstat_stop_status
10162 and pc_at_non_inline_function.
10163
10164 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10165
10166 Code cleanup.
10167 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10168 Update the function comment for it.
10169 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10170 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10171 for STREAM.
10172
10173 2012-01-24 Pedro Alves <palves@redhat.com>
10174
10175 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10176 outside `bs->stop' block.
10177 (bpstat_what): Rework bp_shlib_event handling.
10178 (internal_bkpt_check_status): If the breakpoint is a
10179 bp_shlib_event, then set bs->stop and bs->print if
10180 stop_on_solib_events is set.
10181
10182 2012-01-24 Gary Benson <gbenson@redhat.com>
10183
10184 Delete #if 0'd out code.
10185 * stack.c (print_frame_label_vars): Remove.
10186 (catch_info): Likewise.
10187 (_initialize_stack): Remove "info catch" command.
10188 * NEWS: Mention the above.
10189
10190 2012-01-24 Pedro Alves <palves@redhat.com>
10191
10192 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10193 it.
10194 (remote_notice_new_inferior): If the remote end doesn't support
10195 the multiprocess extensions, then the PID is fake.
10196 (add_current_inferior_and_thread): New.
10197 (remote_start_remote): Use it.
10198 (extended_remote_attach_1): Adjust.
10199 (extended_remote_create_inferior_1): Use
10200 add_current_inferior_and_thread.
10201
10202 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10203
10204 Fix watchpoints to be specific for each inferior.
10205 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10206 current_program_space.
10207 * i386-nat.c (i386_inferior_data_cleanup): New.
10208 (i386_inferior_data_get): Replace variable inf_data_local by an
10209 inferior_data call.
10210 (i386_use_watchpoints): Initialize i386_inferior_data.
10211 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10212 specific iterate_over_lwps.
10213
10214 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10215
10216 Fix watchpoints across inferior fork.
10217 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10218 comment for linux_nat_iterate_watchpoint_lwps.
10219 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10220 linux_nat_iterate_watchpoint_lwps.
10221 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10222 * i386-linux-nat.c (update_debug_registers_callback): Update the
10223 comment for linux_nat_iterate_watchpoint_lwps.
10224 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10225 linux_nat_iterate_watchpoint_lwps.
10226 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10227 * i386-nat.c: Include inferior.h.
10228 (dr_mirror): Remove.
10229 (i386_inferior_data, struct i386_inferior_data)
10230 (i386_inferior_data_get): New.
10231 (i386_debug_reg_state): Use i386_inferior_data_get.
10232 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10233 (i386_insert_watchpoint, i386_remove_watchpoint)
10234 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10235 (i386_remove_hw_breakpoint): New variable state, use
10236 i386_debug_reg_state instead of DR_MIRROR.
10237 * linux-nat.c (delete_lwp): New declaration.
10238 (num_lwps): Move here from downwards.
10239 (delete_lwp_cleanup): New.
10240 (linux_child_follow_fork): Create new child_lp, call
10241 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10242 PTRACE_DETACH.
10243 (num_lwps): Move upwards.
10244 (linux_nat_iterate_watchpoint_lwps): New.
10245 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10246 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10247
10248 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10249
10250 GDB 7.4 released.
10251
10252 2012-01-23 Pedro Alves <palves@redhat.com>
10253
10254 * top.c (caution): Rename to ...
10255 (confirm): ... this.
10256 (show_caution): Rename to ...
10257 (show_confirm): ... this.
10258 (quit_cover): Adjust.
10259 (init_main): Adjust.
10260 * top.h (caution): Rename to ...
10261 (confirm): ... this.
10262 * utils.c (internal_vproblem, defaulted_query): Adjust.
10263
10264 2012-01-23 Pedro Alves <palves@redhat.com>
10265
10266 * top.c (caution): Update comment.
10267 (execute_command): Don't consider the current value of `caution'.
10268
10269 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10270
10271 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10272
10273 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10274
10275 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10276 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10277 * target.c (target_fileio_pwrite): Remove buffer address from
10278 debug output.
10279 (target_fileio_pread): Likewise.
10280
10281 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10282
10283 * NEWS: Document remote "info proc" and "generate-core-file".
10284
10285 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10286
10287 * gdbarch.sh (find_memory_regions): New callback.
10288 * gdbarch.c, gdbarch.h: Regenerate.
10289
10290 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10291 callback before falling back to target method.
10292
10293 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10294 (linux_target_install_ops): No longer install it.
10295
10296 * linux-tdep.c (linux_find_memory_regions): New function.
10297 (linux_init_abi): Install it.
10298
10299 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10300
10301 * gdbarch.sh (make_corefile_notes): New architecture callback.
10302 * gdbarch.c: Regenerate.
10303 * gdbarch.h: Likewise.
10304
10305 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10306 before target_make_corefile_notes. If NULL is returned, the
10307 target does not support core file generation.
10308
10309 * linux-nat.c: Include "linux-tdep.h".
10310 (find_signalled_thread, find_stop_signal): Remove.
10311 (linux_nat_do_thread_registers): Likewise.
10312 (struct linux_nat_corefile_thread_data): Likewise.
10313 (linux_nat_corefile_thread_callback): Likewise.
10314 (iterate_over_spus): Likewise.
10315 (struct linux_spu_corefile_data): Likewise.
10316 (linux_spu_corefile_callback): Likewise.
10317 (linux_spu_make_corefile_notes): Likewise.
10318 (linux_nat_collect_thread_registers): New function.
10319 (linux_nat_make_corefile_notes): Replace contents by call to
10320 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10321 as native-only callback.
10322
10323 * linux-tdep.h: Include "bfd.h".
10324 (struct regcache): Add forward declaration.
10325 (linux_collect_thread_registers_ftype): New typedef.
10326 (linux_make_corefile_notes): Add prototype.
10327 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10328 "regset.h", and "elf-bfd.h".
10329 (find_signalled_thread, find_stop_signal): New functions.
10330 (linux_spu_make_corefile_notes): Likewise.
10331 (linux_collect_thread_registers): Likewise.
10332 (struct linux_corefile_thread_data): New data structure.
10333 (linux_corefile_thread_callback): New funcion.
10334 (linux_make_corefile_notes): Likewise.
10335 (linux_make_corefile_notes_1): Likewise.
10336 (linux_init_abi): Install it.
10337
10338 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10339
10340 * gdbarch.sh (info_proc): New callback.
10341 * gdbarch.c, gdbarch.h: Regenerate.
10342
10343 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10344 before falling back to the target info_proc callback.
10345
10346 * linux-nat.c: Do not include "cli/cli-utils.h".
10347 (linux_nat_info_proc): Remove.
10348 (linux_target_install_ops): No longer install it.
10349
10350 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10351 (read_mapping): New function.
10352 (linux_info_proc): Likewise.
10353 (linux_init_abi): Install it.
10354
10355 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10356
10357 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10358 * infcmd.c: (info_proc_cmd_1): New function.
10359 (info_proc_cmd): New function, moved here from equivalent routine
10360 orignally in linux-nat.c.
10361 (info_proc_cmd_mappings): Likewise.
10362 (info_proc_cmd_stat): Likewise.
10363 (info_proc_cmd_status): Likewise.
10364 (info_proc_cmd_cwd): Likewise.
10365 (info_proc_cmd_cmdline): Likewise.
10366 (info_proc_cmd_exe): Likewise.
10367 (info_proc_cmd_all): Likewise.
10368 (_initialize_infcmd): Install "info proc" command and subcommands.
10369
10370 * target.h (struct target_ops): Add to_info_proc.
10371 (target_info_proc): Add prototype.
10372 * target.c (target_info_proc): New function.
10373
10374 * procfs.c (procfs_info_proc): Add prototype.
10375 (info_proc_cmd): Rename into ...
10376 (procfs_info_proc): ... this. Update argument types as appropriate
10377 for a to_info_proc implementation. Handle "what" argument.
10378 (procfs_target): Install procfs_info_proc.
10379 (_initialize_procfs): No longer install "info proc" command.
10380
10381 * linux-nat.c: (enum info_proc_what): Remove.
10382 (linux_nat_info_proc_cmd_1): Rename into ...
10383 (linux_nat_info_proc): ... this. Update argument types as appropriate
10384 for a to_info_proc implementation.
10385 (linux_nat_info_proc_cmd): Remove.
10386 (linux_nat_info_proc_cmd_mappings): Likewise.
10387 (linux_nat_info_proc_cmd_stat): Likewise.
10388 (linux_nat_info_proc_cmd_status): Likewise.
10389 (linux_nat_info_proc_cmd_cwd): Likewise.
10390 (linux_nat_info_proc_cmd_cmdline): Likewise.
10391 (linux_nat_info_proc_cmd_exe): Likewise.
10392 (linux_nat_info_proc_cmd_all): Likewise.
10393 (linux_target_install_ops): Install linux_nat_info_proc.
10394 (_initialize_linux_nat): No longer install "info proc" command
10395 and subcommands.
10396
10397 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10398
10399 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10400 * config.in, configure: Regenerate.
10401
10402 * target.h (struct target_ops): Add to_fileio_readlink.
10403 (target_fileio_readlink): Add prototype.
10404 * target.c (target_fileio_readlink): New function.
10405
10406 * inf-child.c: Conditionally include <sys/param.h>.
10407 (inf_child_fileio_readlink): New function.
10408 (inf_child_target): Install it.
10409
10410 * remote.c (PACKET_vFile_readlink): New enum value.
10411 (remote_hostio_readlink): New function.
10412 (init_remote_ops): Install it.
10413 (_initialize_remote): Handle vFile:readlink packet type.
10414
10415 2012-01-20 Pedro Alves <palves@redhat.com>
10416 Ulrich Weigand <ulrich.weigand@linaro.org>
10417
10418 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10419 * config.in, configure: Regenerate.
10420
10421 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10422 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10423 (target_fileio_open): Add prototype.
10424 (target_fileio_pwrite): Likewise.
10425 (target_fileio_pread): Likewise.
10426 (target_fileio_close): Likewise.
10427 (target_fileio_unlink): Likewise.
10428 (target_fileio_read_alloc): Likewise.
10429 (target_fileio_read_stralloc): Likewise.
10430
10431 * target.c: Include "gdb/fileio.h".
10432 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10433 (default_fileio_target): New function.
10434 (target_fileio_open): Likewise.
10435 (target_fileio_pwrite): Likewise.
10436 (target_fileio_pread): Likewise.
10437 (target_fileio_close): Likewise.
10438 (target_fileio_unlink): Likewise.
10439 (target_fileio_close_cleanup): Likewise.
10440 (target_fileio_read_alloc_1): Likewise.
10441 (target_fileio_read_alloc): Likewise.
10442 (target_fileio_read_stralloc): Likewise.
10443
10444 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10445 <fcntl.h>, and <unistd.h>.
10446 (inf_child_fileio_open_flags_to_host): New function.
10447 (inf_child_errno_to_fileio_error): Likewise.
10448 (inf_child_fileio_open): Likewise.
10449 (inf_child_fileio_pwrite): Likewise.
10450 (inf_child_fileio_pread): Likewise.
10451 (inf_child_fileio_close): Likewise.
10452 (inf_child_fileio_unlink): Likewise.
10453 (inf_child_target): Install to_fileio routines.
10454
10455 * remote.c (init_remote_ops): Install to_fileio routines.
10456
10457 2012-01-20 Pedro Alves <palves@redhat.com>
10458 Ulrich Weigand <ulrich.weigand@linaro.org>
10459
10460 * remote.c (remote_multi_process_p): Only check for multi-process
10461 protocol feature, do not check for extended protocol.
10462 (remote_supports_multi_process): Check for extended protocol here.
10463 (set_general_process): Likewise.
10464 (extended_remote_kill): Likewise.
10465 (remote_pid_to_str): Likewise.
10466 (remote_query_supported): Always query multiprocess mode.
10467
10468 2012-01-20 Pedro Alves <palves@redhat.com>
10469 Ulrich Weigand <ulrich.weigand@linaro.org>
10470
10471 * inferior.h (struct inferior): Add fake_pid_p.
10472 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10473 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10474 magic_null_ptid since the remote side doesn't provide a real PID.
10475
10476 2012-01-19 Tom Tromey <tromey@redhat.com>
10477
10478 * NEWS: Combine the two Python sections.
10479
10480 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 * target.h (target_close): Update comment on the target's unpush state.
10483
10484 2012-01-19 Pedro Alves <palves@redhat.com>
10485
10486 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10487 linux_nat_async directly instead of going through the target
10488 vector.
10489 * target.c (unpush_target): Close target after unpushing it, not
10490 before.
10491
10492 2012-01-19 Gary Benson <gbenson@redhat.com>
10493
10494 * mdebugread.c (sort_blocks): Replace integer constants with ones
10495 derived from FIRST_LOCAL_BLOCK.
10496
10497 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10498 Jan Kratochvil <jan.kratochvil@redhat.com>
10499
10500 PR gdb/9538
10501 * symfile.c (find_separate_debug_file): New function.
10502 (terminate_after_last_dir_separator): Likewise.
10503 (find_separate_debug_file_by_debuglink): Also try realpath.
10504 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10505 * configure: Regenerate.
10506 * config.in: Regenerate.
10507
10508 2012-01-18 Doug Evans <dje@google.com>
10509
10510 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10511 (main.o): Remove rule.
10512 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10513 (--with-sysroot): Rewrite.
10514 * configure: Regenerate.
10515 * config.in: Regenerate.
10516
10517 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10518
10519 * parse.c (initialize_expout): New function.
10520 (reallocate_expout): Likewise.
10521 (parse_exp_in_context): Use `initialize_expout' and
10522 `reallocate_expout' when appropriate.
10523
10524 2012-01-18 Pedro Alves <palves@redhat.com>
10525
10526 * record.c (struct record_breakpoint, record_breakpoint_p)
10527 (record_breakpoints): New.
10528 (record_insert_breakpoint, record_remove_breakpoint): Manage
10529 record breakpoints list. Only remove breakpoints from the
10530 inferior if they had been inserted there in the first place.
10531
10532 2012-01-17 Doug Evans <dje@google.com>
10533
10534 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10535 if we know we don't have a file name to look for.
10536
10537 2012-01-17 Pedro Alves <palves@redhat.com>
10538
10539 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10540 the frame's stop reason is UNWIND_UNAVAILABLE.
10541
10542 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10543
10544 Fix compilation error.
10545 * m2-exp.y (yyerror): Use ANSI C prototype.
10546
10547 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10548
10549 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10550 (growbuf_by_size): Likewise.
10551 (yyerror): Likewise.
10552 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10553 (modblock): Remove variable (was #if 0'ed).
10554 (parse_number): Convert prototype from K&R to ANSI C.
10555 (yyerror): Likewise.
10556 * objc-exp.y (parse_number): Likewise.
10557 (yyerror): Likewise.
10558 (yylex): Remove #if 0'ed code.
10559 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10560 (yyerror): Likewise.
10561
10562 2012-01-16 Tom Tromey <tromey@redhat.com>
10563
10564 * NEWS: Add item.
10565 * symtab.h (compare_filenames_for_search): Declare.
10566 * symtab.c (compare_filenames_for_search): New function.
10567 (iterate_over_some_symtabs): Use it.
10568 * symfile.h (struct quick_symbol_functions)
10569 <map_symtabs_matching_filename>: Change spec.
10570 * psymtab.c (partial_map_symtabs_matching_filename): Use
10571 compare_filenames_for_search. Update for new spec.
10572 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10573 compare_filenames_for_search. Update for new spec.
10574 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10575
10576 2012-01-16 Tom Tromey <tromey@redhat.com>
10577
10578 PR python/13281:
10579 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10580 (struct main_type) <flag_flag_enum>: New field.
10581 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10582 * NEWS: Add entries.
10583 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10584 enums.
10585 * python/lib/gdb/printing.py (_EnumInstance): New class.
10586 (FlagEnumerationPrinter): Likewise.
10587
10588 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10589
10590 * breakpoint.c (create_sals_from_address_default): New function.
10591 (create_breakpoints_sal_default): Likewise.
10592 (decode_linespec_default): Likewise.
10593 (is_marker_spec): Removed.
10594 (strace_marker_p): New function.
10595 (init_breakpoint_sal): Using `strace_marker_p' instead of
10596 `is_marker_spec'.
10597 (create_breakpoint): Call method `create_sals_from_address' from
10598 breakpoint_ops, replacing code that created SALs conditionally
10599 on the type of the breakpoint. Call method `create_breakpoints_sal',
10600 replacing code that created breakpoints conditionally on the type
10601 wanted.
10602 (base_breakpoint_create_sals_from_address): New function.
10603 (base_breakpoint_create_breakpoints_sal): Likewise.
10604 (base_breakpoint_decode_linespec): Likewise.
10605 (base_breakpoint_ops): Add methods
10606 `base_breakpoint_create_sals_from_address',
10607 `base_breakpoint_create_breakpoints_sal' and
10608 `base_breakpoint_decode_linespec'.
10609 (bkpt_create_sals_from_address): New function.
10610 (bkpt_create_breakpoints_sal): Likewise.
10611 (bkpt_decode_linespec): Likewise.
10612 (tracepoint_create_sals_from_address): Likewise.
10613 (tracepoint_create_breakpoints_sal): Likewise.
10614 (tracepoint_decode_linespec): Likewise.
10615 (strace_marker_create_sals_from_address): Likewise.
10616 (strace_marker_create_breakpoints_sal): Likewise.
10617 (strace_marker_decode_linespec): Likewise.
10618 (strace_marker_breakpoint_ops): New variable.
10619 (addr_string_to_sals): Remove `marker_spec'. Call method
10620 `decode_linespec' from breakpoint_ops, replacing code that decoded
10621 an address string into a SAL. Use `strace_marker_p' instead of
10622 `marker_spec'.
10623 (strace_command): Decide whether we are dealing with a static
10624 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10625 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10626 * breakpoint.h (linespec_result, linespec_sals): New forward
10627 declarations.
10628 (breakpoint_ops) <create_sals_from_address>,
10629 <create_breakpoints_sal>, <decode_linespec>: New methods.
10630
10631 2012-01-14 Doug Evans <dje@google.com>
10632
10633 * NEWS: Update text for "maint set python print-stack".
10634 It is deprecated in gdb 7.4 and deleted in 7.5.
10635
10636 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10637
10638 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10639 including curses.h.
10640
10641 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10642
10643 * configure: Regenerate.
10644 * config.in: Regenerate.
10645
10646 2012-01-12 Keith Seitz <keiths@redhat.com>
10647
10648 PR mi/10586
10649 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10650 (ANONYMOUS_UNION_NAME): Define.
10651 (is_path_expr_parent): New function.
10652 (get_path_expr_parent): New function.
10653 (is_anonymous_child): New function.
10654 (create_child_with_value): If the child is anonymous and without
10655 a name, assign an object name to it.
10656 (c_describe_child): Use get_path_expr_parent to determine
10657 the parent expression.
10658 If there field represents an anonymous struct or union and
10659 has no name, set an appropriate display name and expression.
10660 (cplus_describe_child): Likewise.
10661
10662 2012-01-12 Pedro Alves <palves@redhat.com>
10663
10664 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10665 available when %ebp is found to be zero (outermost).
10666
10667 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10668
10669 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10670 an internal gdb_static_assert.
10671 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10672
10673 2012-01-11 Tom Tromey <tromey@redhat.com>
10674
10675 PR gdb/9598:
10676 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10677 catch" and "catch throw".
10678
10679 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10680
10681 * blockframe.c (block_innermost_frame): Start search from selected
10682 frame, if present, or otherwise the current frame.
10683
10684 * c-exp.y (variable): Update innermost_block for
10685 'block COLONCOLON NAME' clause.
10686 * m2-exp.y (variable): Ditto.
10687 * objc-exp.y (variable): Ditto.
10688
10689 2012-01-10 Tom Tromey <tromey@redhat.com>
10690
10691 PR python/13199:
10692 * python/python.c (finish_python_initialization): Set sys.argv.
10693
10694 2012-01-10 Doug Evans <dje@google.com>
10695
10696 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10697 "want_line_info". All callers updated.
10698 (dwarf_decode_lines_1): New function.
10699 (handle_DW_AT_stmt_list): Add function comment.
10700 New arg "want_line_info". All callers updated.
10701 (read_file_scope,read_type_unit_scope): Move comment from
10702 handle_DW_AT_stmt_list to here.
10703
10704 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10705
10706 Fix regression after libiberty/ update for GCC PR 6057 and others.
10707 * c-exp.y (operator) <OPERATOR DELETE>
10708 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10709 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10710 (make_builtin_type, make_name): New variable i, add gdb_assert.
10711 (operator) <OPERATOR NEW>: Update ARGS to 3.
10712 (operator) <OPERATOR DELETE>: Add trailing space.
10713 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10714 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10715 * cp-support.c (cp_canonicalize_string): Check NULL from
10716 cp_comp_to_string, call warning and return.
10717
10718 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10719
10720 Fix duplicate .o files after omitting libbfd.a.
10721 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10722 (SFILES): Add corelow.c.
10723 (COMMON_OBS): Add corelow.o.
10724 (ALLDEPFILES): Remove corelow.c.
10725 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10726 * config/alpha/alpha-osf3.mh: Likewise.
10727 * config/alpha/fbsd.mh: Likewise.
10728 * config/arm/nbsdaout.mh: Likewise.
10729 * config/arm/nbsdelf.mh: Likewise.
10730 * config/i386/i386gnu.mh: Likewise.
10731 * config/ia64/hpux.mh: Likewise.
10732 * config/ia64/linux.mh: Likewise.
10733 * config/m32r/linux.mh: Likewise.
10734 * config/m68k/linux.mh: Likewise.
10735 * config/mips/irix5.mh: Likewise.
10736 * config/mips/irix6.mh: Likewise.
10737 * config/pa/hpux.mh: Likewise.
10738 * config/pa/linux.mh: Likewise.
10739 * config/powerpc/aix.mh: Likewise.
10740 * config/sparc/linux.mh: Likewise.
10741 * config/sparc/linux64.mh: Likewise.
10742 * config/sparc/sol2.mh: Likewise.
10743 * config/vax/vax.mh: Likewise.
10744 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10745 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10746 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10747 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10748 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10749 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10750 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10751 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10752 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10753 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10754 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10755 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10756 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10757 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10758 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10759 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10760 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10761 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10762 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10763 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10764 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10765 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10766 corelow.o from gdb_target_obs.
10767 * corefile.c (core_target): Update the comment on NULL value.
10768 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10769 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10770 MATCHES. Drop YUMMY set on NULL.
10771 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10772 reclaim CORE_DATA if it is already NULL.
10773
10774 2012-01-09 Doug Evans <dje@google.com>
10775
10776 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10777 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10778
10779 2012-01-09 Keith Seitz <keiths@redhat.com>
10780
10781 * breakpoint.c (wrapper.h): Don't include.
10782
10783 2012-01-09 Keith Seitz <keiths@redhat.com>
10784
10785 * Makefile.in (SFILES): Remove wrapper.c.
10786 (HFILES_NO_SRCDIR): Remove wrapper.h.
10787 (COMMON_OBS): Remove wrapper.o.
10788 * cli/cli-interp.c: Don't inlude wrapper.h.
10789 * corelow.c: Likewise.
10790 (core_open): Replace gdb_target_find_new_threads with
10791 TRY_CATCH around target_find_new_threads.
10792 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10793 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10794 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10795 evaluate_expression.
10796 (varobj_set_value): Likewise for evaluate_expression and
10797 value_assign.
10798 (install_new_variable): Likewise for value_fetch_lazy.
10799 (adjust_value_for_child_access): Likewise for value_ind.
10800 (c_describe_child): Likewise for value_subscript and
10801 value_ind.
10802 (c_value_of_root): Likewise for evaluate_expression.
10803 * wrapper.c: Remove.
10804 * wrapper.h: Remove.
10805
10806 2012-01-09 Doug Evans <dje@google.com>
10807
10808 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10809 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10810 "abfd" args with "section". All callers updated.
10811 Error checking code moved ...
10812 (error_check_comp_unit_head): ... here. New function.
10813 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10814 Delete arg "abfd". New arg "type_offset". All callers updated.
10815 (create_debug_types_hash_table): Simplify by using
10816 read_and_check_type_unit_head.
10817
10818 * parser-defs.h (namecopy): Delete.
10819 * parse.c (namecopy, namecopy_size): Move into copy_name.
10820
10821 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10822
10823 Partially fix duplicate .o files after omitting libbfd.a.
10824 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10825 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10826 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10827 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10828 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10829 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10830 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10831
10832 2012-01-09 Pedro Alves <palves@redhat.com>
10833
10834 * MAINTAINERS: Update my email address.
10835
10836 2012-01-08 Doug Evans <dje@google.com>
10837
10838 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10839 n_type_units. Rename type_comp_units to all_type_units.
10840 All uses updated.
10841 (add_signatured_type_cu_to_table): Renamed from
10842 add_signatured_type_cu_to_list. All callers updated.
10843
10844 * gdbtypes.h (struct cplus_struct_type): Delete member
10845 nfn_fields_total. All uses removed.
10846
10847 2012-01-06 Doug Evans <dje@google.com>
10848
10849 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10850 to top of file.
10851 (dwarf2_find_comp_unit): Delete.
10852 (process_psymtab_comp_unit): Make result "void".
10853 Delete args buffer, info_ptr, buffer_size, and replace with
10854 "section". All callers updated.
10855 (dwarf2_build_psymtabs_hard): Simplify.
10856
10857 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10858 Thiago Jung Bauermann <bauerman@br.ibm.com>
10859
10860 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10861 before `struct gdb_exception'.
10862 * breakpoint.c (update_global_location_list_nothrow)
10863 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10864 * cp-abi.c (value_rtti_type): Likewise.
10865 * cp-support.c (cp_validate_operator): Likewise.
10866 * infrun.c (insert_exception_resume_breakpoint)
10867 (check_exception_resume, keep_going): Likewise.
10868 * mi-interp.c (mi_breakpoint_created)
10869 (mi_breakpoint_modified): Likewise.
10870 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10871 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10872 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10873
10874 2012-01-05 Doug Evans <dje@google.com>
10875
10876 * dwarf2read.c (statement_prologue): Delete, unused.
10877
10878 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10879 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10880
10881 * dwarf2read.c (comp_unit_header): Delete, unused.
10882
10883 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10884
10885 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10886 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10887
10888 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10889
10890 * infrun.c (normal_stop): Don't skip calling the normal_stop
10891 observers if the thread was doing a multi-step, but stopped for
10892 some reason other than stepping.
10893
10894 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10895
10896 * cli/cli-decode.h: Add comments.
10897 (CMD_LIST_AMBIGUOUS): Moved to command.h
10898 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10899 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10900 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10901 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10902 (add_com, add_com_alias, add_info, add_info_alias)
10903 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10904 declarations.
10905 * command.h: Add and adjust comments.
10906 (CMD_LIST_AMBIGUOUS): Moved here.
10907 (help_cmd, help_cmd_list): Delete declarations.
10908
10909 2012-01-04 Doug Evans <dje@google.com>
10910
10911 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10912 All callers updated.
10913 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10914 Replace all arguments with "per_cu". All callers updated.
10915
10916 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10917
10918 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10919 New arg "per_cu". All callers updated.
10920
10921 Delete #if 0'd out code.
10922 * language.c (binop_result_type): Delete.
10923 (simple_type, ordered_type, same_type, integral_type): Delete.
10924 (numeric_type, character_type, string_type, boolean_type): Delete.
10925 (float_type, structured_type): Delete.
10926 * language.h: Update.
10927
10928 2012-01-04 Tom Tromey <tromey@redhat.com>
10929
10930 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10931
10932 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10933
10934 * corefile.c (close_exec_file): Delete.
10935 (reopen_exec_file): Remove commented out code that seems related
10936 to close_exec_file, which is being deleted here.
10937 * inferior.h (close_exec_file): Delete.
10938 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10939
10940 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10941
10942 * ada-lang.c: #include "cli/cli-utils.h".
10943 (get_selections): Use skip_spaces.
10944 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10945 (catch_ada_exception_command_split): Use skip_spaces.
10946 (ada_decode_assert_location): Likewise.
10947
10948 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10949
10950 * linespec.c (decode_line_internal): Check for C++ or Java
10951 compound constructs only if the current language is C, C++
10952 or Java.
10953
10954 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10955
10956 Revert:
10957 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 Joel Brobecker <brobecker@adacore.com>
10959 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10960 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10961 3 times.
10962 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10963 fall through into AT_ENTRY_POINT.
10964 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10965 DUMMY_ADDR with it.
10966 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10967 PPC_INSN_SIZE skip to 3 times.
10968
10969 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10970
10971 * linespec.c (add_minsym): Preserve function descriptors.
10972
10973 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10974
10975 * breakpoint.c (all_locations_are_pending): Consider locations
10976 in program spaces executing during startup pending as well.
10977
10978 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10979
10980 Copyright year update in most files of the GDB Project.
10981
10982 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10983
10984 * copyright.sh: Delete.
10985 * copyright.py: Rewrite.
10986
10987 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10988
10989 * gnulib/extra/update-copyright: New file, imported from gnulib.
10990
10991 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10992
10993 * README (Copyright and License Notices): New section.
10994
10995 2012-01-03 Tom Tromey <tromey@redhat.com>
10996
10997 PR python/12533:
10998 * python/py-value.c (valpy_dereference, valpy_get_address
10999 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11000 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11001 (valpy_absolute, valpy_richcompare): Free intermediate values.
11002
11003 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11004
11005 * ada-lang.c: Reformat the copyright notice.
11006
11007 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11008
11009 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11010 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11011 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11012 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11013 Revert this part of:
11014 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11015 Build gdb directly from *.o files not using libgdb.a.
11016 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11017
11018 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11019
11020 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11021 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11022 Reformat the copyright header.
11023
11024 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 Revert this part of:
11027 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11028 Remove the gdbtui binary.
11029 * gdb.c (main): Remove args.interpreter_p initialization.
11030 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11031 * main.h (struct captured_main_args): Remove interpreter_p.
11032
11033 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11034
11035 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11036
11037 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11038
11039 * top.c (print_gdb_version): Update copyright year.
11040
11041 2012-01-02 Yao Qi <yao@codesourcery.com>
11042
11043 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11044
11045 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11046 Joel Brobecker <brobecker@adacore.com>
11047
11048 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11049 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11050 3 times.
11051 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11052 fall through into AT_ENTRY_POINT.
11053 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11054 DUMMY_ADDR with it.
11055 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11056 PPC_INSN_SIZE skip to 3 times.
11057
11058 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11059
11060 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11061 the return value.
11062 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11063
11064 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11065
11066 Build gdb directly from *.o files not using libgdb.a.
11067 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11068 (COMMON_OBS): Remove solib-target.o.
11069 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11070 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11071 (LIBGDB_OBS, libgdb.a): Move it above.
11072 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11073 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11074 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11075 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11076 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11077 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11078 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11079 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11080 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11081 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11082 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11083 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11084 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11085 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11086 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11087 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11088 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11089 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11090 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11091 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11092 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11093 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11094 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11095 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11096 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11097 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11098 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11099
11100 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11101
11102 Remove the gdbtui binary.
11103 * .gitignore (/gdbtui): Remove.
11104 * Makefile.in (TUI): Remove.
11105 (SUBDIR_TUI_OBS): Remove tui-main.o.
11106 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11107 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11108 (tui-main.o): Remove.
11109 (all_object_files): Remove tui-main.o.
11110 * NEWS: New note for the gdbtui removal.
11111 * configure: Rebuilt.
11112 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11113 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11114 CONFIG_UNINSTALL respectively.
11115 * gdb.c (main): Remove args.interpreter_p initialization.
11116 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11117 * main.h (struct captured_main_args): Remove interpreter_p.
11118 * tui/tui-main.c: Remove.
11119
11120 2012-01-01 Doug Evans <dje@google.com>
11121
11122 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11123 (dwarf2_physname, read_import_statement): Ditto.
11124 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11125 (process_structure_scope read_subroutine_type): Ditto.
11126 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11127 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11128 (dwarf2_fetch_die_location_block): Ditto.
11129 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11130
11131 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11132 All callers updated.
11133 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11134 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11135 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11136
11137 * dwarf2read.c (load_cu): Move assert to more useful location.
11138
11139 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11140 All callers updated.
11141
11142 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11143 (dwarf2_elf_names): Minor reformat.
11144 (dwarf2_per_cu_data): Tweak comment.
11145 (dwarf2_read_section): Fix comment.
11146 (create_all_comp_units): Fix comment.
11147 (load_full_comp_unit): Fix comment.
11148 (process_full_comp_unit): Fix comment.
11149 (read_signatured_type): Fix comment.
11150
11151 For older changes see ChangeLog-2011.
11152 \f
11153 Local Variables:
11154 mode: change-log
11155 left-margin: 8
11156 fill-column: 74
11157 version-control: never
11158 coding: utf-8
11159 End:
This page took 0.262667 seconds and 4 git commands to generate.